403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /volume1/@appstore/SynologyPhotos/ui/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/@appstore/SynologyPhotos/ui/external_shared_album_bundle.js
var FotoExternalSharedAlbumReactLibrary;!function(){var __webpack_modules__={26154:function(e,t,n){"use strict";function r(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function i(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}n.d(t,{Z:function(){return em}});var o=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(i(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=r(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),a=Math.abs,s=String.fromCharCode,l=Object.assign;function u(e,t){return 45^h(e,0)?(((t<<2^h(e,0))<<2^h(e,1))<<2^h(e,2))<<2^h(e,3):0}function c(e){return e.trim()}function d(e,t){return(e=t.exec(e))?e[0]:e}function f(e,t,n){return e.replace(t,n)}function p(e,t){return e.indexOf(t)}function h(e,t){return 0|e.charCodeAt(t)}function m(e,t,n){return e.slice(t,n)}function g(e){return e.length}function v(e){return e.length}function y(e,t){return t.push(e),e}function b(e,t){return e.map(t).join("")}var _=1,E=1,w=0,S=0,T=0,O="";function I(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:_,column:E,length:a,return:""}}function A(e,t){return l(I("",null,null,"",null,null,0),e,{length:-e.length},t)}function C(){return T}function x(){return T=S>0?h(O,--S):0,E--,10===T&&(E=1,_--),T}function D(){return T=S<w?h(O,S++):0,E++,10===T&&(E=1,_++),T}function R(){return h(O,S)}function L(){return S}function k(e,t){return m(O,e,t)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(e){return _=E=1,w=g(O=e),S=0,[]}function N(e){return O="",e}function F(e){return c(k(S-1,H(91===e?e+2:40===e?e+1:e)))}function B(e){for(;T=R();)if(T<33)D();else break;return M(e)>2||M(T)>3?"":" "}function U(e,t){for(;--t&&D()&&!(T<48)&&!(T>102)&&(!(T>57)||!(T<65))&&(!(T>70)||!(T<97)););return k(e,L()+(t<6&&32==R()&&32==D()))}function H(e){for(;D();)switch(T){case e:return S;case 34:case 39:34!==e&&39!==e&&H(T);break;case 40:41===e&&H(e);break;case 92:D()}return S}function j(e,t){for(;D();)if(e+T===57)break;else if(e+T===84&&47===R())break;return"/*"+k(t,S-1)+"*"+s(47===e?e:D())}function V(e){for(;!M(R());)D();return k(e,S)}var z="-ms-",Z="-moz-",G="-webkit-",W="comm",q="rule",Y="decl",$="@import",K="@keyframes",X="@layer";function Q(e,t){for(var n="",r=v(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function J(e,t,n,r){switch(e.type){case X:if(e.children.length)break;case $:case Y:return e.return=e.return||e.value;case W:return"";case K:return e.return=e.value+"{"+Q(e.children,r)+"}";case q:e.value=e.props.join(",")}return g(n=Q(e.children,r))?e.return=e.value+"{"+n+"}":""}function ee(e){var t=v(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function et(e){return function(t){!t.root&&(t=t.return)&&e(t)}}function en(e){return N(er("",null,null,null,[""],e=P(e),0,[0],e))}function er(e,t,n,r,i,o,a,l,u){for(var c=0,d=0,m=a,v=0,b=0,_=0,E=1,w=1,S=1,T=0,O="",I=i,A=o,C=r,k=O;w;)switch(_=T,T=D()){case 40:if(108!=_&&58==h(k,m-1)){-1!=p(k+=f(F(T),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:k+=F(T);break;case 9:case 10:case 13:case 32:k+=B(_);break;case 92:k+=U(L()-1,7);continue;case 47:switch(R()){case 42:case 47:y(eo(j(D(),L()),t,n),u);break;default:k+="/"}break;case 123*E:l[c++]=g(k)*S;case 125*E:case 59:case 0:switch(T){case 0:case 125:w=0;case 59+d:-1==S&&(k=f(k,/\f/g,"")),b>0&&g(k)-m&&y(b>32?ea(k+";",r,n,m-1):ea(f(k," ","")+";",r,n,m-2),u);break;case 59:k+=";";default:if(y(C=ei(k,t,n,c,d,i,l,O,I=[],A=[],m),o),123===T){if(0===d)er(k,t,C,C,I,o,m,l,A);else switch(99===v&&110===h(k,3)?100:v){case 100:case 108:case 109:case 115:er(e,C,C,r&&y(ei(e,C,C,0,0,i,l,O,i,I=[],m),A),i,A,m,l,r?I:A);break;default:er(k,C,C,C,[""],A,0,l,A)}}}c=d=b=0,E=S=1,O=k="",m=a;break;case 58:m=1+g(k),b=_;default:if(E<1){if(123==T)--E;else if(125==T&&0==E++&&125==x())continue}switch(k+=s(T),T*E){case 38:S=d>0?1:(k+="\f",-1);break;case 44:l[c++]=(g(k)-1)*S,S=1;break;case 64:45===R()&&(k+=F(D())),v=R(),d=m=g(O=k+=V(L())),T++;break;case 45:45===_&&2==g(k)&&(E=0)}}return o}function ei(e,t,n,r,i,o,s,l,u,d,p){for(var h=i-1,g=0===i?o:[""],y=v(g),b=0,_=0,E=0;b<r;++b)for(var w=0,S=m(e,h+1,h=a(_=s[b])),T=e;w<y;++w)(T=c(_>0?g[w]+" "+S:f(S,/&\f/g,g[w])))&&(u[E++]=T);return I(e,t,n,0===i?q:l,u,d,p)}function eo(e,t,n){return I(e,t,n,W,s(C()),m(e,2,-2),0)}function ea(e,t,n,r){return I(e,t,n,Y,m(e,0,r),m(e,r+1,-1),r)}var es=function(e,t,n){for(var r=0,i=0;r=i,i=R(),38===r&&12===i&&(t[n]=1),!M(i);)D();return k(e,S)},el=function(e,t){var n=-1,r=44;do switch(M(r)){case 0:38===r&&12===R()&&(t[n]=1),e[n]+=es(S-1,t,n);break;case 2:e[n]+=F(r);break;case 4:if(44===r){e[++n]=58===R()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=s(r)}while(r=D());return e},eu=function(e,t){return N(el(P(e),t))},ec=new WeakMap,ed=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ec.get(n))&&!r){ec.set(e,!0);for(var i=[],o=eu(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},ef=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ep(e,t){switch(u(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Z+e+z+e+e;case 6828:case 4268:return G+e+z+e+e;case 6165:return G+e+z+"flex-"+e+e;case 5187:return G+e+f(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return G+e+z+"flex-item-"+f(e,/flex-|-self/,"")+e;case 4675:return G+e+z+"flex-line-pack"+f(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+z+f(e,"shrink","negative")+e;case 5292:return G+e+z+f(e,"basis","preferred-size")+e;case 6060:return G+"box-"+f(e,"-grow","")+G+e+z+f(e,"grow","positive")+e;case 4554:return G+f(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return f(f(f(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return f(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return f(f(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return f(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(e)-1-t>6)switch(h(e,t+1)){case 109:if(45!==h(e,t+4))break;case 102:return f(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Z+(108==h(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?ep(f(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==h(e,t+1))break;case 6444:switch(h(e,g(e)-3-(~p(e,"!important")&&10))){case 107:return f(e,":",":"+G)+e;case 101:return f(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===h(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(h(e,t+11)){case 114:return G+e+z+f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+z+f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+z+f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+z+e+e}return e}var eh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=ep(e.value,e.length);break;case K:return Q([A(e,{value:f(e.value,"@","@"+G)})],r);case q:if(e.length)return b(e.props,function(t){switch(d(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([A(e,{props:[f(t,/:(read-\w+)/,":"+Z+"$1")]})],r);case"::placeholder":return Q([A(e,{props:[f(t,/:(plac\w+)/,":"+G+"input-$1")]}),A(e,{props:[f(t,/:(plac\w+)/,":"+Z+"$1")]}),A(e,{props:[f(t,/:(plac\w+)/,z+"input-$1")]})],r)}return""})}}],em=function(e){var t,n,r,i=e.key;if("css"===i){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var s=e.stylisPlugins||eh,l={},u=[];t=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;u.push(e)});var c=ee([ed,ef].concat(s,[J,et(function(e){r.insert(e)})])),d=function(e){return Q(en(e),c)};n=function(e,t,n,i){r=n,d(e?e+"{"+t.styles+"}":t.styles),i&&(f.inserted[t.name]=!0)};var f={key:i,sheet:new o({key:i,container:t,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:n};return f.sheet.hydrate(u),f}},95934:function(e,t,n){"use strict";n.d(t,{F4:function(){return F},iv:function(){return N},tZ:function(){return P}});var r,i=n(67294),o=n.t(i,2),a=n(26154),s=!0;function l(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}var u=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===s)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},c=function(e,t,n){u(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}};function d(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}var f={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},p=/[A-Z]|^ms/g,h=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m=function(e){return 45===e.charCodeAt(1)},g=function(e){return null!=e&&"boolean"!=typeof e},v=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return m(e)?e:e.replace(p,"-$&").toLowerCase()}),y=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(h,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===f[e]||m(e)||"number"!=typeof t||0===t?t:t+"px"};function b(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return _(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,b(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}function _(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=b(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":g(a)&&(r+=v(o)+":"+y(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)g(a[s])&&(r+=v(o)+":"+y(o,a[s])+";");else{var l=b(e,t,a);switch(o){case"animation":case"animationName":r+=v(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}var E=/label:\s*([^\s;\n{]+)\s*(;|$)/g,w=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=b(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=b(n,t,e[l]),o&&(a+=s[l]);E.lastIndex=0;for(var u="";null!==(i=E.exec(a));)u+="-"+i[1];return{name:d(a)+u,styles:a,next:r}},S=function(e){return e()},T=!!o.useInsertionEffect&&o.useInsertionEffect,O=T||S;T||i.useLayoutEffect;var I=!0,A={}.hasOwnProperty,C=i.createContext("undefined"!=typeof HTMLElement?(0,a.Z)({key:"css"}):null);C.Provider;var x=function(e){return(0,i.forwardRef)(function(t,n){return e(t,(0,i.useContext)(C),n)})};I||(x=function(e){return function(t){var n=(0,i.useContext)(C);return null===n?(n=(0,a.Z)({key:"css"}),i.createElement(C.Provider,{value:n},e(t,n))):e(t,n)}});var D=i.createContext({}),R="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",L=function(e,t){var n={};for(var r in t)A.call(t,r)&&(n[r]=t[r]);return n[R]=e,n},k=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return u(t,n,r),O(function(){return c(t,n,r)}),null},M=x(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[R],a=[r],s="";"string"==typeof e.className?s=l(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var u=w(a,void 0,i.useContext(D));s+=t.key+"-"+u.name;var c={};for(var d in e)A.call(e,d)&&"css"!==d&&d!==R&&(c[d]=e[d]);return c.ref=n,c.className=s,i.createElement(i.Fragment,null,i.createElement(k,{cache:t,serialized:u,isStringTag:"string"==typeof o}),i.createElement(o,c))});n(40468);var P=function(e,t){var n=arguments;if(null==t||!A.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,o=Array(r);o[0]=M,o[1]=L(e,t);for(var a=2;a<r;a++)o[a]=n[a];return i.createElement.apply(null,o)};function N(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(t)}var F=function(){var e=N.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},40468:function(e,t,n){"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?s:l[e.$$typeof]||i}l[r.ForwardRef]=a,l[r.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;function g(e,t,n){if("string"!=typeof t){if(m){var r=h(t);r&&r!==m&&g(e,r,n)}var i=d(t);f&&(i=i.concat(f(t)));for(var a=u(e),s=u(t),l=0;l<i.length;++l){var v=i[l];if(!o[v]&&!(n&&n[v])&&!(s&&s[v])&&!(a&&a[v])){var y=p(t,v);try{c(e,v,y)}catch(e){}}}}return e}e.exports=g},12599:function(e,t,n){"use strict";var r,i;/**
 * @remix-run/router v1.7.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function o(){return(o=Object.assign?Object.assign.bind():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}).apply(this,arguments)}n.d(t,{Ep:function(){return u},J0:function(){return a},RQ:function(){return N},WK:function(){return z},X3:function(){return H},Zn:function(){return D},Zq:function(){return M},aU:function(){return r},cP:function(){return c},fp:function(){return f},pC:function(){return P}}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));function a(e,t){if(!1===e||null==e)throw Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function l(){return Math.random().toString(36).substr(2,8)}function u(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(i||(i={}));let d=new Set(["lazy","caseSensitive","path","id","index","children"]);function f(e,t,n){void 0===n&&(n="/");let r=D(("string"==typeof t?c(t):t).pathname||"/",n);if(null==r)return null;let i=p(e);m(i);let o=null;for(let e=0;null==o&&e<i.length;++e)o=O(i[e],C(r));return o}function p(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=N([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),p(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:S(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of h(e.path))i(e,t,n);else i(e,t)}),t}function h(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=h(r.join("/")),s=[];return s.push(...a.map(e=>""===e?o:[o,e].join("/"))),i&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}function m(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:T(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}let g=/^:\w+$/,v=3,y=2,b=1,_=10,E=-2,w=e=>"*"===e;function S(e,t){let n=e.split("/"),r=n.length;return n.some(w)&&(r+=E),t&&(r+=y),n.filter(e=>!w(e)).reduce((e,t)=>e+(g.test(t)?v:""===t?b:_),r)}function T(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function O(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let e=0;e<n.length;++e){let a=n[e],s=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",u=I({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!u)return null;Object.assign(r,u.params);let c=a.route;o.push({params:r,pathname:N([i,u.pathname]),pathnameBase:F(N([i,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(i=N([i,u.pathnameBase]))}return o}function I(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=A(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((e,t,n)=>{if("*"===t){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=x(s[n]||"",t),e},{}),pathname:o,pathnameBase:a,pattern:e}}function A(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),s("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(r.push(t),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function C(e){try{return decodeURI(e)}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function x(e,t){try{return decodeURIComponent(e)}catch(n){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function R(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?c(e):e;return{pathname:n?n.startsWith("/")?n:L(n,t):t,search:B(r),hash:U(i)}}function L(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function k(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function M(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e,t,n,r){let i,s;void 0===r&&(r=!1),"string"==typeof e?i=c(e):(a(!(i=o({},e)).pathname||!i.pathname.includes("?"),k("?","pathname","search",i)),a(!i.pathname||!i.pathname.includes("#"),k("#","pathname","hash",i)),a(!i.search||!i.search.includes("#"),k("#","search","hash",i)));let l=""===e||""===i.pathname,u=l?"/":i.pathname;if(r||null==u)s=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=R(i,s),f=u&&"/"!==u&&u.endsWith("/"),p=(l||"."===u)&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}let N=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class H extends Error{}function j(e){return e instanceof Promise&&!0===e._tracked}class V{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let Z=["post","put","patch","delete"],G=new Set(Z),W=new Set(["get",...Z]);Symbol("deferred");function q(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function Y(e){return e.type===i.deferred}function $(e){return e.type===i.error}function K(e){return(e&&e.type)===i.redirect}function X(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}},91073:function(e,t,n){"use strict";n.r(t)},40492:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";let devMessageSet,timeoutId;__webpack_require__.d(__webpack_exports__,{Av:function(){return TextButton},Rf:function(){return TextIconButton},W3:function(){return IconTextButton},c6:function(){return CircleTextButton},hU:function(){return IconButton}});var react__WEBPACK_IMPORTED_MODULE_2___namespace_cache,hasRequiredReactIs_production_min,hasRequiredReactIs_development,hasRequiredReactIs,objectAssign,hasRequiredObjectAssign,ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret,has,hasRequiredHas,checkPropTypes_1,hasRequiredCheckPropTypes,factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers,factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims,throwOnDirectAccess,ReactIs,_path$e,_path2$a,_path$d,_rect$2,_path$c,_path$b,_path2$9,_rect$1,_path$a,_path$9,_path2$8,_path$8,_path2$7,_path$7,_path2$6,_rect,_path$6,_path2$5,_path$5,_path2$4,_path$4,_circle,_path$3,_path2$3,contentValues,contentValuePattern,msPattern,hyphenatedCache,hyphenPattern,oldProcessStyleValue,sourceMapPattern,cursor,globalContext,isTestEnv,isBrowser,globalKey,_templateObject,_path$2,_path2$2,_path$1,_path2$1,hasRequiredClsx,passiveEventSupport,hasRequiredToDate,hasRequiredConstructFrom,hasRequiredAddDays,hasRequiredAddMilliseconds,hasRequiredConstants$1,hasRequiredAddHours,hasRequiredAddMinutes,hasRequiredAddMonths,hasRequiredAddQuarters,hasRequiredAddSeconds,hasRequiredAddWeeks,hasRequiredAddYears,hasRequiredStartOfDay,hasRequiredGetTimezoneOffsetInMilliseconds,hasRequiredDifferenceInCalendarDays,hasRequiredDifferenceInCalendarMonths,hasRequiredGetQuarter,hasRequiredDifferenceInCalendarQuarters,hasRequiredDifferenceInCalendarYears,hasRequiredEndOfDay,hasRequiredEndOfMonth,hasRequiredDefaultOptions,hasRequiredEndOfWeek,hasRequiredEndOfYear,hasRequiredFormatDistance,hasRequiredBuildFormatLongFn,hasRequiredFormatLong,hasRequiredFormatRelative,hasRequiredBuildLocalizeFn,hasRequiredLocalize,hasRequiredBuildMatchFn,hasRequiredBuildMatchPatternFn,hasRequiredMatch,hasRequiredEnUS,hasRequiredDefaultLocale,hasRequiredStartOfYear,hasRequiredGetDayOfYear,hasRequiredStartOfWeek,hasRequiredStartOfISOWeek,hasRequiredGetISOWeekYear,hasRequiredStartOfISOWeekYear,hasRequiredGetISOWeek,hasRequiredGetWeekYear,hasRequiredStartOfWeekYear,hasRequiredGetWeek,hasRequiredAddLeadingZeros,hasRequiredLightFormatters,hasRequiredFormatters,hasRequiredLongFormatters,hasRequiredProtectedTokens,hasRequiredIsDate,hasRequiredIsValid,hasRequiredFormat,hasRequiredGetDate,hasRequiredGetDay,hasRequiredGetHours,hasRequiredGetMinutes,hasRequiredGetMonth,hasRequiredGetSeconds,hasRequiredGetTime,hasRequiredGetYear,hasRequiredIsAfter,hasRequiredIsBefore,hasRequiredIsEqual,hasRequiredIsSameDay,hasRequiredIsSameMonth,hasRequiredStartOfQuarter,hasRequiredIsSameQuarter,hasRequiredIsSameYear,hasRequiredIsWithinInterval,hasRequiredMax,hasRequiredMin,hasRequiredGetDefaultOptions,hasRequiredTranspose,hasRequiredSetter,hasRequiredParser,hasRequiredEraParser,hasRequiredConstants,hasRequiredUtils,hasRequiredYearParser,hasRequiredLocalWeekYearParser,hasRequiredISOWeekYearParser,hasRequiredExtendedYearParser,hasRequiredQuarterParser,hasRequiredStandAloneQuarterParser,hasRequiredMonthParser,hasRequiredStandAloneMonthParser,hasRequiredSetWeek,hasRequiredLocalWeekParser,hasRequiredSetISOWeek,hasRequiredISOWeekParser,hasRequiredDateParser,hasRequiredDayOfYearParser,hasRequiredSetDay,hasRequiredDayParser,hasRequiredLocalDayParser,hasRequiredStandAloneLocalDayParser,hasRequiredGetISODay,hasRequiredSetISODay,hasRequiredISODayParser,hasRequiredAMPMParser,hasRequiredAMPMMidnightParser,hasRequiredDayPeriodParser,hasRequiredHour1to12Parser,hasRequiredHour0to23Parser,hasRequiredHour0To11Parser,hasRequiredHour1To24Parser,hasRequiredMinuteParser,hasRequiredSecondParser,hasRequiredFractionOfSecondParser,hasRequiredISOTimezoneWithZParser,hasRequiredISOTimezoneParser,hasRequiredTimestampSecondsParser,hasRequiredTimestampMillisecondsParser,hasRequiredParsers,hasRequiredParse,hasRequiredParseISO,hasRequiredGetDaysInMonth,hasRequiredSetMonth,hasRequiredSet,hasRequiredSetHours,hasRequiredSetMinutes,hasRequiredSetQuarter,hasRequiredSetSeconds,hasRequiredSetYear,hasRequiredStartOfMonth,hasRequiredSubDays,hasRequiredSubMonths,hasRequiredSubQuarters,hasRequiredSubWeeks,hasRequiredSubYears,_g$2,_g$1,_path,_path2,_g,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(86641),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34484),_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(92007),_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(67294),_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(94409),_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(59542),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(84249),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(90443),react_dom_client__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(56495),react_dom__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(52790),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(63003),_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(85376),_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(13243),_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(84193),_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(66601),_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(98546),_babel_runtime_helpers_esm_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(48492);function styleInject(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var css_248z='input[type=text] {\n  height: 30px;\n  box-sizing: border-box;\n  border: 1px solid var(--color-divider-tier1);\n  border-radius: var(--radius-tier1);\n  padding: 4px 12px;\n  -webkit-appearance: none;\n  background: var(--color-background-tier1);\n}\ninput[type=text]::placeholder {\n  color: var(--color-grey-tier8);\n}\ninput[type=text]:hover {\n  border-color: var(--color-divider-tier3);\n}\ninput[type=text]:focus {\n  border-color: var(--color-main-tier1);\n  outline: none;\n}\ninput[type=text]:disabled {\n  border-color: var(--color-divider-tier1);\n  background-color: var(--color-grey-tier12);\n}\ninput[type=text].invalid {\n  border-color: var(--color-status-red1);\n  background-color: var(--color-status-red4);\n}\n\nbutton {\n  background-color: transparent;\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  display: inline-block;\n  vertical-align: middle;\n  cursor: pointer;\n}\n\n.text-button {\n  font-weight: 400;\n  font-size: 14px;\n  line-height: 22px;\n  border: none;\n}\n.text-button.disabled {\n  cursor: default;\n}\n\n.text-button-oval {\n  font-weight: 400;\n  font-size: 14px;\n  line-height: 22px;\n  border: none;\n  border-radius: 99px;\n  padding: 4px 16px;\n}\n.text-button-oval.disabled {\n  cursor: default;\n}\n\n.text-button-rectangle {\n  font-weight: 400;\n  font-size: 14px;\n  line-height: 22px;\n  border: none;\n  border-radius: var(--radius-tier1);\n  padding: 4px 16px;\n}\n.text-button-rectangle.disabled {\n  cursor: default;\n}\n\n.button-main {\n  color: var(--color-font-white1);\n  background-color: var(--color-grey-tier4);\n}\n.button-main:hover {\n  background-color: var(--color-grey-tier3);\n}\n\n.button-grey {\n  color: var(--color-font-black1);\n  background-color: var(--color-grey-tier10);\n}\n.button-grey:hover {\n  background-color: var(--color-grey-tier9);\n}\n\n.button-large {\n  height: 40px;\n}\n\n.button-medium {\n  height: 30px;\n}\n\n.icon-button {\n  background-position: 0px 0px;\n}\n.icon-button .button-icon {\n  width: 24px;\n  height: 24px;\n  display: inline-block;\n  background-position: 0px 0px;\n  vertical-align: top;\n}\n@media (hover: hover) and (pointer: fine) {\n  .icon-button:hover .button-icon {\n    background-position: 0px -24px;\n  }\n}\n.icon-button.active .button-icon {\n  background-position: 0px -24px;\n}\n.icon-button:active .button-icon {\n  background-position: 0px -48px;\n}\n.icon-button.disabled {\n  cursor: default;\n}\n.icon-button.disabled .button-icon {\n  background-position: 0px -72px;\n}\n\n.text-icon-button {\n  display: flex;\n  align-items: center;\n  background-position: 0px 0px;\n}\n.text-icon-button .button-icon {\n  width: 24px;\n  height: 24px;\n  display: inline-block;\n  background-position: 0px 0px;\n  vertical-align: top;\n}\n@media (hover: hover) and (pointer: fine) {\n  .text-icon-button:hover .button-icon {\n    background-position: 0px -24px;\n  }\n}\n.text-icon-button.active .button-icon {\n  background-position: 0px -24px;\n}\n.text-icon-button:active .button-icon {\n  background-position: 0px -48px;\n}\n.text-icon-button.disabled {\n  cursor: default;\n}\n.text-icon-button.disabled .button-icon {\n  background-position: 0px -72px;\n}\n\n.icon-text-button {\n  display: flex;\n  align-items: center;\n  background-position: 0px 0px;\n}\n.icon-text-button .button-icon {\n  width: 24px;\n  height: 24px;\n  display: inline-block;\n  background-position: 0px 0px;\n  vertical-align: top;\n}\n@media (hover: hover) and (pointer: fine) {\n  .icon-text-button:hover .button-icon {\n    background-position: 0px -24px;\n  }\n}\n.icon-text-button.active .button-icon {\n  background-position: 0px -24px;\n}\n.icon-text-button:active .button-icon {\n  background-position: 0px -48px;\n}\n.icon-text-button.disabled {\n  cursor: default;\n}\n.icon-text-button.disabled .button-icon {\n  background-position: 0px -72px;\n}\n\n.lottie-icon-button {\n  width: 24px;\n  height: 24px;\n}\n.lottie-icon-button div {\n  width: 100%;\n  height: 100%;\n}\n\n.icon-button-modal-header-close .button-icon {\n  width: 28px;\n  height: 28px;\n  display: inline-block;\n  background-position: 0px 0px;\n  vertical-align: top;\n}\n.icon-button-modal-header-close svg path {\n  fill: var(--color-grey-tier8);\n}\n.icon-button-modal-header-close:not(.disabled):hover svg path, .icon-button-modal-header-close:not(.disabled):active svg path {\n  fill: var(--color-grey-tier6);\n}\n\n.form-checkbox .form-checkbox-input {\n  display: none;\n}\n.form-checkbox .form-checkbox-label {\n  line-height: 22px;\n  font-size: 14px;\n  font-weight: 600;\n  display: flex;\n  vertical-align: top;\n}\n.form-checkbox .form-checkbox-label span {\n  margin: 4px 0 4px 8px;\n}\n.form-checkbox.disabled .form-checkbox-label {\n  color: var(--color-font-black3);\n}\n\n.form-checkbox-icon {\n  flex: 0 0 auto;\n  margin: 4px 0;\n  width: 22px;\n  height: 22px;\n  display: inline-block;\n  vertical-align: top;\n  cursor: pointer;\n}\n.form-checkbox-icon.checked svg path:first-child {\n  fill: var(--color-main-tier1);\n}\n\ninput[disabled] ~ label .form-checkbox-icon {\n  cursor: default;\n}\ninput[disabled] ~ label .form-checkbox-icon.checked svg {\n  opacity: 40%;\n}\ninput[disabled] ~ label .form-checkbox-icon:not(.checked) svg rect {\n  stroke: var(--color-grey-tier9);\n  fill: var(--color-grey-tier10);\n}\n\n.circle-text-button {\n  display: inline-block;\n  vertical-align: middle;\n  cursor: pointer;\n  background-color: var(--color-main-tier1);\n  text-align: center;\n  width: 28px;\n  height: 28px;\n  border-radius: 28px;\n}\n.circle-text-button:hover, .circle-text-button:active {\n  background-color: var(--color-main-tier2);\n}\n.circle-text-button.disabled {\n  background-color: var(--color-main-tier3);\n}\n.circle-text-button .button-circle-text {\n  color: var(--color-white-tier1);\n  font-weight: 600;\n  padding: 0px;\n  height: 28px;\n  line-height: 28px;\n  display: inline-block;\n}\n.circle-text-button .button-circle-text.disabled {\n  cursor: default;\n}\n\n.circle-text-button-size40 {\n  display: inline-block;\n  vertical-align: middle;\n  cursor: pointer;\n  background-color: var(--color-main-tier1);\n  text-align: center;\n  width: 40px;\n  height: 40px;\n  border-radius: 40px;\n}\n.circle-text-button-size40:hover, .circle-text-button-size40:active {\n  background-color: var(--color-main-tier2);\n}\n.circle-text-button-size40.disabled {\n  background-color: var(--color-main-tier3);\n}\n.circle-text-button-size40 .button-circle-text {\n  color: var(--color-white-tier1);\n  font-weight: 600;\n  padding: 0px;\n  height: 40px;\n  line-height: 40px;\n  display: inline-block;\n}\n.circle-text-button-size40 .button-circle-text.disabled {\n  cursor: default;\n}\n\n.circle-text-button-size32 {\n  display: inline-block;\n  vertical-align: middle;\n  cursor: pointer;\n  background-color: var(--color-main-tier1);\n  text-align: center;\n  width: 32px;\n  height: 32px;\n  border-radius: 32px;\n}\n.circle-text-button-size32:hover, .circle-text-button-size32:active {\n  background-color: var(--color-main-tier2);\n}\n.circle-text-button-size32.disabled {\n  background-color: var(--color-main-tier3);\n}\n.circle-text-button-size32 .button-circle-text {\n  color: var(--color-white-tier1);\n  font-weight: 600;\n  padding: 0px;\n  height: 32px;\n  line-height: 32px;\n  display: inline-block;\n}\n.circle-text-button-size32 .button-circle-text.disabled {\n  cursor: default;\n}\n\n.circle-text-button-size24 {\n  display: inline-block;\n  vertical-align: middle;\n  cursor: pointer;\n  background-color: var(--color-main-tier1);\n  text-align: center;\n  width: 24px;\n  height: 24px;\n  border-radius: 24px;\n}\n.circle-text-button-size24:hover, .circle-text-button-size24:active {\n  background-color: var(--color-main-tier2);\n}\n.circle-text-button-size24.disabled {\n  background-color: var(--color-main-tier3);\n}\n.circle-text-button-size24 .button-circle-text {\n  color: var(--color-white-tier1);\n  font-weight: 600;\n  padding: 0px;\n  height: 24px;\n  line-height: 24px;\n  display: inline-block;\n}\n.circle-text-button-size24 .button-circle-text.disabled {\n  cursor: default;\n}\n\n.message-dialog.modal .modal-inner-ct .modal-header, .modal-header {\n  font-size: 17px;\n  font-weight: 600;\n  line-height: 28px;\n}\n\n.multimedia-react-datepicker .react-datepicker__day--today.react-datepicker__day--selected,\n.multimedia-react-datepicker .react-datepicker__day--today .react-datepicker__day--keyboard-selected, .multimedia-react-datepicker .react-datepicker__day--selected,\n.multimedia-react-datepicker .react-datepicker__day--keyboard-selected, .multimedia-react-datepicker .multimedia-react-datepicker-year,\n.multimedia-react-datepicker .multimedia-react-datepicker-month {\n  font-size: 14px;\n  font-weight: 600;\n  line-height: 22px;\n}\n\n.multimedia-warning-tooltip.react-tooltip, .multimedia-tooltip-mobile.react-tooltip, .multimedia-tooltip.react-tooltip, .multimedia-white-tip.react-tooltip, .multimedia-react-datepicker .multimedia-react-datepicker-year.multimedia-react-select .multimedia__input,\n.multimedia-react-datepicker .multimedia-react-datepicker-month.multimedia-react-select .multimedia__input {\n  font-size: 14px;\n  font-weight: 400;\n  line-height: 22px;\n}\n\n.multimedia-react-select .multimedia__multi-value__label {\n  font-size: 13px;\n  font-weight: 400;\n  line-height: 20px;\n}\n\n.modal {\n  display: flex;\n  flex-direction: column;\n  background: var(--color-background-tier2);\n  overflow: auto;\n  border-radius: var(--radius-tier2);\n  outline: none;\n  margin: auto;\n  box-shadow: var(--shadow-tier1);\n  box-sizing: border-box;\n}\n.modal input[type=text], .modal input[type=password], .modal textarea {\n  background-color: var(--color-background-tier2);\n  border-color: var(--color-divider-tier2);\n}\n.modal input[type=text]:hover, .modal input[type=password]:hover, .modal textarea:hover {\n  border-color: var(--color-divider-tier3);\n}\n.modal input[type=text]:focus, .modal input[type=password]:focus, .modal textarea:focus {\n  border-color: var(--color-main-tier1);\n}\n.modal input[type=text]:disabled, .modal input[type=password]:disabled, .modal textarea:disabled {\n  border-color: var(--color-divider-tier1);\n  background-color: var(--color-background-tier2);\n}\n\n.modal-inner-ct {\n  width: 100%;\n  height: 100%;\n}\n\n.modal-header {\n  display: flex;\n  justify-content: space-between;\n  padding: 16px 24px 12px;\n}\n\n.modal-header-right {\n  display: flex;\n}\n\n.modal-title {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n}\n\n.modal-content {\n  flex: 1 1 auto;\n}\n\n.modal-overlay {\n  position: fixed;\n  top: 0px;\n  left: 0px;\n  right: 0px;\n  bottom: 0px;\n  z-index: 2;\n  display: flex;\n  align-items: center;\n}\n\n.ReactModalPortal.modal-with-mask .modal-overlay {\n  background-color: var(--color-black-tier2);\n}\n\n.form-radio-button {\n  vertical-align: middle;\n  display: inline-block;\n}\n.form-radio-button .form-radio-button-input {\n  display: none;\n}\n.form-radio-button .form-radio-label, .form-radio-button .normal-radio-button-icon {\n  display: inline-block;\n  vertical-align: middle;\n}\n.form-radio-button .form-radio-label {\n  margin-left: 8px;\n}\n.form-radio-button .normal-radio-button-icon {\n  width: 22px;\n  height: 22px;\n  cursor: pointer;\n}\n.form-radio-button .normal-radio-button-icon svg path {\n  fill: var(--color-grey-tier9);\n}\n.form-radio-button .normal-radio-button-icon:hover svg path {\n  fill: var(--color-grey-tier8);\n}\n.form-radio-button .normal-radio-button-icon.checked svg path {\n  fill: var(--color-main-tier1);\n}\n.form-radio-button .normal-radio-button-icon.checked:hover svg path {\n  fill: var(--color-main-tier2);\n}\n.form-radio-button input[disabled] ~ label .normal-radio-button-icon {\n  cursor: default;\n}\n.form-radio-button input[disabled] ~ label .normal-radio-button-icon svg circle {\n  stroke: var(--color-grey-tier9);\n  fill: var(--color-grey-tier10);\n}\n.form-radio-button input[disabled] ~ label .normal-radio-button-icon.checked svg path {\n  fill: var(--color-main-tier3);\n}\n\n.tab-panel {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.tab-panel-header {\n  margin: 8px 60px;\n  display: flex;\n}\n.tab-panel-header .tab-panel-left {\n  flex: 1;\n}\n.tab-panel-header .tab-panel-right {\n  display: flex;\n  flex-direction: row;\n  margin: auto;\n}\n\n.tab-panel-content {\n  flex: 1;\n  position: relative;\n  min-height: 0px;\n}\n\n.tab-button {\n  display: inline-block;\n  vertical-align: middle;\n  cursor: pointer;\n  height: 32px;\n  text-align: center;\n  position: relative;\n}\n.tab-button .button-text-wrap {\n  display: flex;\n  justify-content: center;\n}\n.tab-button .button-text {\n  color: var(--color-font-black2);\n  padding: 5px 20px;\n}\n.tab-button.active .button-text, .tab-button:hover:not(.disabled) .button-text, .tab-button:active:not(.disabled) .button-text {\n  color: var(--color-font-black1);\n}\n.tab-button.active .tab-button-indicator {\n  visibility: visible;\n}\n.tab-button .tab-button-dot {\n  background-color: var(--color-main-tier1);\n  width: 4px;\n  height: 4px;\n  border-radius: 2px;\n  bottom: 8px;\n  left: 1px;\n  display: inline-block;\n  position: relative;\n}\n\n.tab-button-indicator {\n  background-color: var(--color-main-tier1);\n  border-radius: 1px;\n  display: block;\n  height: 100%;\n  width: 100%;\n}\n\n.tab-button-indicator-ct {\n  box-sizing: border-box;\n  height: 2px;\n  vertical-align: top;\n  position: absolute;\n  transition: transform cubic-bezier(0.33, 0, 0, 1.1);\n}\n.tab-button-indicator-ct.indicator-bottom {\n  bottom: 0px;\n}\n.tab-button-indicator-ct.indicator-top {\n  top: 0px;\n}\n\n.large-tab-panel .tab-button {\n  height: 50px;\n}\n.large-tab-panel .tab-button .button-text {\n  padding: 14px 20px;\n}\n.large-tab-panel .tab-button-indicator-ct {\n  height: 3px;\n}\n\n.loading-info {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n}\n.loading-info .loading-animation {\n  margin-right: 6px;\n}\n\n.message-dialog.modal {\n  width: 520px;\n  height: auto;\n  padding: 0px;\n  border-radius: var(--radius-tier2);\n}\n.message-dialog.modal .modal-inner-ct {\n  display: flex;\n  flex-direction: column;\n  padding: 24px 24px 20px;\n  width: auto;\n}\n.message-dialog.modal .modal-inner-ct .modal-header {\n  flex: 0 1 auto;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 0 0 12px;\n}\n\n.message-dialog-footer {\n  display: flex;\n  justify-content: space-between;\n  margin-top: 24px;\n}\n\n.message-dialog-actions.confirm button:first-child {\n  margin-left: 0;\n  margin-right: auto;\n}\n.message-dialog-actions .text-button-oval {\n  margin-left: 12px;\n}\n\n.message-dialog-footer-left-actions {\n  display: flex;\n}\n.message-dialog-footer-left-actions .message-dialog-footer-error-message-text {\n  width: 150px;\n  margin: auto 0;\n  color: var(--color-status-red1);\n}\n.message-dialog-footer-left-actions .message-dialog-footer-message-text {\n  width: 180px;\n  margin: auto 0;\n}\n\n.message-dialog-mobile.modal {\n  width: calc(100% - 48px);\n  max-width: 65%;\n}\n.message-dialog-mobile.modal .modal-inner-ct {\n  padding: 24px;\n}\n.message-dialog-mobile.modal .message-dialog-text {\n  margin-right: 10px;\n}\n.message-dialog-mobile.modal .message-dialog-footer-left-actions button,\n.message-dialog-mobile.modal .message-dialog-actions button {\n  height: 32px;\n}\n\n@media only screen and (max-width: 480px) {\n  .message-dialog-mobile.modal {\n    max-width: none;\n  }\n}\n.mask-transparent.modal {\n  display: none;\n}\n\n.loading-animation {\n  height: 16px;\n  width: 16px;\n  padding: 4px;\n}\n\n.loading-box,\n.mask.modal {\n  display: inline-flex;\n  flex-direction: row;\n  align-items: center;\n  border-radius: var(--radius-tier1);\n  width: auto;\n  height: auto;\n  padding: 0;\n  background: var(--color-background-tier1);\n}\n.loading-box .loading-info,\n.mask.modal .loading-info {\n  height: 24px;\n  min-width: 92px;\n  padding: 4px 8px;\n}\n.loading-box .action-mask-ct,\n.mask.modal .action-mask-ct {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  height: 58px;\n  padding-right: 12px;\n}\n.loading-box .action-mask-ct .action-mask-info,\n.mask.modal .action-mask-ct .action-mask-info {\n  display: flex;\n  flex-direction: column;\n  min-width: 200px;\n  margin: 12px 12px 18px 20px;\n}\n.loading-box .action-mask-ct .action-mask-info .action-mask-desc,\n.mask.modal .action-mask-ct .action-mask-info .action-mask-desc {\n  display: flex;\n  flex-direction: row;\n  height: 20px;\n}\n.loading-box .action-mask-ct .action-mask-info .action-mask-desc .action-mask-message,\n.mask.modal .action-mask-ct .action-mask-info .action-mask-desc .action-mask-message {\n  min-width: 90px;\n  text-align: left;\n}\n.loading-box .action-mask-ct .action-mask-info .action-mask-desc .action-mask-count,\n.mask.modal .action-mask-ct .action-mask-info .action-mask-desc .action-mask-count {\n  margin-left: 12px;\n  min-width: 98px;\n  text-align: right;\n}\n.loading-box .action-mask-ct .action-mask-info .action-mask-progress-bar,\n.mask.modal .action-mask-ct .action-mask-info .action-mask-progress-bar {\n  margin-top: 4px;\n  height: 4px;\n  width: 100%;\n}\n\n.mask-transparent-overlay, .mask-black-overlay, .mask-overlay {\n  position: fixed;\n  top: 0px;\n  left: 0px;\n  right: 0px;\n  bottom: 0px;\n  z-index: 2;\n  display: flex;\n  align-items: center;\n}\n\n.mask-overlay {\n  background: var(--color-black-tier3);\n}\n\n.mask-black-overlay {\n  background: rgba(0, 0, 0, 0.35);\n}\n\n.mask-transparent-overlay {\n  background: transparent;\n}\n\n.general-dialog.modal {\n  height: auto;\n  min-height: 100px;\n  padding: 0px;\n  border-radius: var(--radius-tier2);\n}\n.general-dialog.modal .modal-inner-ct {\n  display: flex;\n  flex-direction: column;\n}\n.general-dialog.modal .modal-inner-ct .modal-content {\n  flex: 0 1 auto;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 16px 24px 12px;\n}\n.general-dialog.modal .modal-inner-ct .modal-content {\n  display: flex;\n}\n\n.general-dialog-footer {\n  flex: 0 1 auto;\n  display: flex;\n  justify-content: flex-end;\n  padding: 12px 24px 16px;\n  text-align: left;\n}\n.general-dialog-footer button {\n  margin-left: 12px;\n}\n.general-dialog-footer .footer-message-wrapper {\n  flex: 1;\n  margin-right: 10px;\n}\n\n.general-dialog-mask {\n  display: flex;\n  flex-direction: column;\n  flex: 1;\n}\n.general-dialog-mask.show-mask {\n  opacity: 0.4;\n  pointer-events: none;\n}\n\n.general-dialog-content {\n  display: flex;\n  flex-direction: column;\n  flex: 1;\n  padding: 8px 24px;\n}\n\n.general-dialog-loading-box {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  z-index: 2;\n}\n\n.multimedia-react-select .multimedia-react-select-container {\n  position: static;\n}\n.multimedia-react-select .multimedia__control {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background-color: var(--color-background-tier1);\n  border-radius: var(--radius-tier1);\n  border: 1px solid var(--color-divider-tier1);\n  min-height: 30px;\n  outline: none;\n  overflow: hidden;\n  position: relative;\n  width: 100%;\n  box-sizing: border-box;\n}\n.multimedia-react-select .multimedia__control:hover:not(.multimedia__control--is-disabled) {\n  border-color: var(--color-divider-tier3);\n  cursor: pointer;\n}\n.multimedia-react-select .multimedia__control:active:not(.multimedia__control--is-disabled) {\n  border-color: var(--color-main-tier1);\n  cursor: pointer;\n}\n.multimedia-react-select .multimedia__control.multimedia__control--is-focused:not(.multimedia__control--is-disabled) {\n  border-color: var(--color-main-tier1);\n}\n.multimedia-react-select .multimedia__control.multimedia__control--is-focused:not(.multimedia__control--is-disabled) .multimedia-select-arrow svg path {\n  fill: var(--color-main-tier1);\n}\n.multimedia-react-select .multimedia__control .multimedia-custom-clear svg path {\n  fill: var(--color-grey-tier8);\n}\n.multimedia-react-select .multimedia__control .multimedia-custom-clear:hover svg path, .multimedia-react-select .multimedia__control .multimedia-custom-clear:active svg path {\n  fill: var(--color-grey-tier6);\n}\n.multimedia-react-select .multimedia__control .multimedia-select-arrow svg path {\n  fill: var(--color-grey-tier4);\n}\n.multimedia-react-select .multimedia__control .multimedia-select-arrow:hover svg path, .multimedia-react-select .multimedia__control .multimedia-select-arrow:active svg path {\n  fill: var(--color-main-tier1);\n}\n.multimedia-react-select .multimedia__value-container {\n  display: flex;\n  flex: auto;\n  overflow: hidden;\n  align-items: center;\n  padding: 3px 4px 3px 11px;\n}\n.multimedia-react-select .multimedia__value-container--is-multi {\n  position: relative;\n  flex: auto;\n  flex-wrap: wrap;\n  overflow: hidden;\n  box-sizing: border-box;\n}\n.multimedia-react-select .multimedia__value-container--is-multi .multimedia__input {\n  margin: 0 4px 4px 0;\n}\n.multimedia-react-select .multimedia__value-container--is-multi.multimedia__value-container--has-value {\n  padding-left: 8px;\n}\n.multimedia-react-select .multimedia__input-container {\n  margin: unset;\n  padding: unset;\n  color: var(--color-font-black1);\n}\n.multimedia-react-select .multimedia__input-container .multimedia__input {\n  height: 22px;\n}\n.multimedia-react-select .multimedia__indicators {\n  display: flex;\n  align-items: center;\n  flex: none;\n  width: auto;\n  height: 24px;\n  padding: 2px 7px 2px 4px;\n}\n.multimedia-react-select .multimedia__single-value {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n}\n.multimedia-react-select .multimedia__placeholder {\n  color: var(--color-grey-tier8);\n  position: absolute;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n}\n.multimedia-react-select .multimedia__multi-value {\n  display: inline-flex;\n  align-items: center;\n  border-radius: var(--radius-tier1);\n  margin: 0px 4px 4px 0px;\n  min-width: 0;\n  height: 22px;\n  box-sizing: border-box;\n  position: relative;\n  max-width: 255px;\n  border: none;\n  background-color: #3E4041;\n}\n.multimedia-react-select .multimedia__multi-value:hover {\n  background-color: #616365;\n}\n.multimedia-react-select .multimedia__multi-value:hover .multimedia__multi-value__remove .icon-button svg path {\n  fill: #E9EAEB;\n}\n.multimedia-react-select .multimedia__multi-value__label {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  color: #F8F8F9;\n  padding: 1px 0 1px 8px;\n  margin: 0px auto;\n  text-decoration: none;\n  max-width: 223px;\n}\n.multimedia-react-select .multimedia__multi-value__remove .icon-button {\n  margin: 2px 4px 2px 2px;\n  width: 18px;\n  height: 18px;\n  border: none;\n  cursor: pointer;\n}\n.multimedia-react-select .multimedia__multi-value__remove .icon-button svg path {\n  fill: #3E4041;\n}\n\n.multimedia__menu-portal .multimedia__menu, .multimedia-react-select .multimedia__menu {\n  cursor: pointer;\n  background-color: var(--color-menu-tier1);\n  color: var(--color-font-black1);\n  transform: translateY(2px);\n  box-sizing: border-box;\n  border-radius: var(--radius-tier1);\n  box-shadow: var(--shadow-tier1);\n  max-height: 212px;\n  padding: 8px 0 8px 8px;\n  position: absolute;\n  width: 100%;\n  z-index: 1;\n  -webkit-overflow-scrolling: touch;\n}\n.multimedia__menu-portal .multimedia__menu .multimedia__menu-list, .multimedia-react-select .multimedia__menu .multimedia__menu-list {\n  max-height: 196px;\n  overflow-y: auto;\n  box-sizing: border-box;\n}\n.multimedia__menu-portal .multimedia__menu .multimedia__menu-notice, .multimedia-react-select .multimedia__menu .multimedia__menu-notice {\n  visibility: hidden;\n}\n.multimedia__menu-portal .multimedia__option, .multimedia-react-select .multimedia__option {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  box-sizing: border-box;\n  background-color: var(--color-menu-tier1);\n  cursor: pointer;\n  display: block;\n  height: 32px;\n  line-height: 24px;\n  padding: 5px 12px;\n  position: relative;\n  border-radius: var(--radius-tier1);\n}\n.multimedia__menu-portal .multimedia__option--is-focused, .multimedia__menu-portal .multimedia__option--is-selected, .multimedia-react-select .multimedia__option--is-focused, .multimedia-react-select .multimedia__option--is-selected {\n  background-color: var(--color-hover-tier1);\n}\n.multimedia__menu-portal .multimedia__option--is-selected:not(.multimedia__option--is-focused), .multimedia-react-select .multimedia__option--is-selected:not(.multimedia__option--is-focused) {\n  background-color: var(--color-menu-tier1);\n}\n.multimedia__menu-portal .multimedia__option--is-disabled, .multimedia-react-select .multimedia__option--is-disabled {\n  cursor: default;\n}\n\n.multimedia__menu-list::-webkit-scrollbar {\n  width: 10px;\n  height: 10px;\n}\n\n.multimedia__menu-list::-webkit-scrollbar-thumb {\n  background-color: var(--color-grey-tier10);\n  border-radius: var(--radius-tier1);\n  border: 2px transparent solid;\n  background-clip: padding-box;\n}\n.multimedia__menu-list::-webkit-scrollbar-thumb:hover {\n  background-color: var(--color-grey-tier8);\n}\n\n.multimedia__menu-list::-webkit-scrollbar-corner {\n  display: none;\n}\n\n.multimedia__menu-list {\n  scrollbar-width: thin;\n}\n\n.multimedia__menu-list {\n  scrollbar-gutter: stable;\n}\n\n.note {\n  color: var(--color-font-black1);\n}\n.note__prefix {\n  display: inline;\n  color: var(--color-font-teal1);\n}\n\n.form-switch {\n  position: relative;\n  display: inline-block;\n  vertical-align: top;\n  width: 48px;\n  height: 24px;\n}\n.form-switch.disabled {\n  opacity: 40%;\n}\n.form-switch .form-switch-input {\n  display: none;\n}\n.form-switch .form-switch-toggle {\n  position: absolute;\n  cursor: pointer;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  background-color: var(--color-grey-tier10);\n  border-radius: 30px;\n  transition-duration: 0.4s;\n}\n.form-switch .form-switch-toggle:hover {\n  background-color: var(--color-grey-tier9);\n}\n.form-switch .form-switch-toggle:before {\n  position: absolute;\n  content: "";\n  height: 16px;\n  width: 16px;\n  left: 4px;\n  top: 4px;\n  background-color: var(--color-white-tier1);\n  border-radius: 50%;\n  transition-duration: 0.4s;\n}\n.form-switch .form-switch-toggle.checked {\n  background-color: var(--color-main-tier1);\n}\n.form-switch .form-switch-toggle.checked:hover {\n  background-color: var(--color-main-tier2);\n}\n.form-switch .form-switch-toggle.checked:before {\n  transform: translateX(24px);\n}\n\n.top-toast.modal {\n  width: fit-content;\n  max-width: calc(100vw - 56px);\n  height: auto;\n  min-height: 48px;\n  position: absolute;\n  right: 50%;\n  top: 75px;\n  padding: 0;\n  border-radius: 24px;\n  background: rgba(0, 0, 0, 0.85);\n  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.3);\n  z-index: 2;\n  transform: translate(50%, 0);\n  animation: top-toast-drop 0.396s cubic-bezier(0.33, 0, 0, 1.1);\n  transition: opacity 0.3s;\n  text-align: center;\n  color: var(--color-white-tier1);\n}\n.top-toast .modal-inner-ct {\n  display: flex;\n  align-items: center;\n}\n.top-toast .modal-inner-ct {\n  padding: 14px 20px;\n  overflow: hidden;\n  word-break: normal;\n  width: max-content;\n}\n.top-toast.hidden {\n  opacity: 0;\n}\n\n@keyframes top-toast-drop {\n  to {\n    top: 75px;\n  }\n  from {\n    top: 50px;\n  }\n}\n.top-toast-close {\n  margin-left: 4px;\n}\n.top-toast-close svg {\n  width: 18px;\n  height: 18px;\n  margin: 3px;\n}\n.top-toast-close svg path {\n  fill: #bfc1c3;\n}\n.top-toast-close svg path:hover, .top-toast-close svg path:active, .top-toast-close svg path.active {\n  fill: #f2f3f4;\n}\n\n.multimedia-react-datepicker .react-datepicker__aria-live {\n  display: none;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-header {\n  display: flex;\n  margin-bottom: 16px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-header .multimedia-react-datepicker-header-arrow-btn svg {\n  width: 24px;\n  height: 24px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-header .multimedia-react-datepicker-header-arrow-btn svg g g {\n  fill: var(--color-grey-tier4);\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-header .multimedia-react-datepicker-header-arrow-btn:hover svg g g, .multimedia-react-datepicker .multimedia-react-datepicker-header .multimedia-react-datepicker-header-arrow-btn:active svg g g {\n  fill: var(--color-main-tier1);\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-header .multimedia-react-datepicker-header-arrow-btn.disabled {\n  cursor: default;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-header .multimedia-react-datepicker-header-arrow-btn.disabled svg g g {\n  fill: var(--color-grey-tier9);\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-select {\n  flex: 1;\n  display: flex;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-year.multimedia-react-select .multimedia__control,\n.multimedia-react-datepicker .multimedia-react-datepicker-month.multimedia-react-select .multimedia__control {\n  border: none;\n  min-height: 24px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-year.multimedia-react-select .multimedia__indicators,\n.multimedia-react-datepicker .multimedia-react-datepicker-month.multimedia-react-select .multimedia__indicators {\n  padding: 0px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-year.multimedia-react-select .multimedia__value-container,\n.multimedia-react-datepicker .multimedia-react-datepicker-month.multimedia-react-select .multimedia__value-container {\n  padding: 0px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-year.multimedia-react-select .multimedia__single-value:hover,\n.multimedia-react-datepicker .multimedia-react-datepicker-month.multimedia-react-select .multimedia__single-value:hover {\n  color: var(--color-main-tier1);\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-year.multimedia-react-select input,\n.multimedia-react-datepicker .multimedia-react-datepicker-month.multimedia-react-select input {\n  width: 0;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-month {\n  width: 110px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-month .multimedia__menu {\n  width: 120px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-year {\n  margin-right: 10px;\n  width: 62px;\n}\n.multimedia-react-datepicker .multimedia-react-datepicker-year .multimedia__menu {\n  width: 88px;\n}\n.multimedia-react-datepicker .react-datepicker__input-container {\n  display: flex;\n  position: relative;\n}\n.multimedia-react-datepicker .react-datepicker__input-container input {\n  padding-right: 36px;\n  flex: 1;\n}\n.multimedia-react-datepicker .react-datepicker-popper {\n  z-index: 1;\n  border: 1px solid var(--color-divider-tier1);\n  border-radius: var(--radius-tier1);\n  box-shadow: var(--shadow-tier1);\n  background-color: var(--color-background-tier2);\n}\n.multimedia-react-datepicker .react-datepicker-popper .react-datepicker__triangle {\n  display: none;\n}\n.multimedia-react-datepicker .react-datepicker__month-container {\n  padding: 12px 16px 16px;\n}\n.multimedia-react-datepicker .react-datepicker__day-name {\n  color: var(--color-font-black3);\n}\n.multimedia-react-datepicker .react-datepicker__day-name, .multimedia-react-datepicker .react-datepicker__day {\n  width: 28px;\n  height: 28px;\n  line-height: 28px;\n  display: inline-block;\n  text-align: center;\n  margin: 3px;\n  border: 1px solid var(--color-background-tier1);\n  box-sizing: border-box;\n  border-radius: var(--radius-tier1);\n}\n.multimedia-react-datepicker .react-datepicker__day {\n  cursor: pointer;\n}\n.multimedia-react-datepicker .react-datepicker__day:focus-visible {\n  outline: none;\n}\n.multimedia-react-datepicker .react-datepicker__day:not(.react-datepicker__day--today):not(.react-datepicker__day--selected):not(.react-datepicker__day--keyboard-selected):not(.react-datepicker__day--in-range):not(.react-datepicker__day--disabled):hover {\n  background-color: var(--color-button-tier2);\n}\n.multimedia-react-datepicker .react-datepicker__day--disabled {\n  color: var(--color-font-black3);\n  cursor: unset;\n}\n.multimedia-react-datepicker .react-datepicker__day--selected,\n.multimedia-react-datepicker .react-datepicker__day--keyboard-selected {\n  color: var(--color-white-tier1);\n  background-color: var(--color-main-tier1);\n}\n.multimedia-react-datepicker .react-datepicker__day--today {\n  border: 1px solid var(--color-main-tier1);\n  background-color: var(--color-background-tier1);\n  color: var(--color-main-tier1);\n}\n.multimedia-react-datepicker .react-datepicker__day--today.react-datepicker__day--selected,\n.multimedia-react-datepicker .react-datepicker__day--today .react-datepicker__day--keyboard-selected {\n  line-height: 28px;\n}\n.multimedia-react-datepicker .react-datepicker__day--today.react-datepicker__day--selected:after, .multimedia-react-datepicker .react-datepicker__day--today.react-datepicker__day--keyboard-selected:after {\n  display: none;\n}\n.multimedia-react-datepicker .react-datepicker__day--outside-month {\n  color: var(--color-font-black3);\n}\n.multimedia-react-datepicker .react-datepicker__view-calendar-icon:has(input:focus) .multimedia-calendar-icon g path {\n  fill: var(--color-main-tier1);\n}\n.multimedia-react-datepicker .multimedia-calendar-icon {\n  position: absolute;\n  width: 24px;\n  height: 24px;\n  right: 8px;\n  top: 3px;\n}\n.multimedia-react-datepicker .multimedia-calendar-icon g path {\n  fill: var(--color-grey-tier4);\n}\n.multimedia-react-datepicker .multimedia-calendar-icon:active g path {\n  fill: var(--color-main-tier1);\n}\n.multimedia-react-datepicker .multimedia-calendar-icon.disabled g path {\n  fill: var(--color-grey-tier10);\n}\n\n.multimedia-timepicker > div {\n  display: inline-block;\n  text-align: center;\n  width: 18px;\n}\n.multimedia-timepicker .multimedia-timepicker-field.multimedia-react-select {\n  display: inline-block;\n  width: 72px;\n}\n.multimedia-timepicker .multimedia-timepicker-field.multimedia-react-select .multimedia__option {\n  width: 56px;\n}\n.multimedia-timepicker .multimedia-timepicker-field.multimedia-react-select .multimedia__option--is-selected {\n  color: var(--color-white-tier1);\n  border-color: var(--color-main-tier1);\n  background-color: var(--color-main-tier1);\n}\n.multimedia-timepicker .multimedia-timepicker-field.multimedia-react-select .multimedia__menu {\n  width: unset;\n}\n.multimedia-timepicker .multimedia-timepicker-field.multimedia-react-select .multimedia__indicators {\n  padding-left: 0;\n}\n\n.multimedia-datetimepicker .datetime-row > div {\n  display: inline-flex;\n  margin-top: 12px;\n}\n.multimedia-datetimepicker .datetime-row > .label {\n  width: 124px;\n  height: 20px;\n  line-height: 20px;\n}\n.multimedia-datetimepicker .datetime-row > .field {\n  width: 252px;\n}\n.multimedia-datetimepicker .datetime-row > .field .multimedia-react-datepicker {\n  flex: 1;\n}\n\n.multimedia-avatar-size24 {\n  text-align: center;\n  width: 24px;\n  height: 24px;\n  border-radius: 24px;\n}\n.multimedia-avatar-size24 .multimedia-avatar-text {\n  color: var(--color-white-tier1);\n  height: 24px;\n  line-height: 24px;\n  font-weight: bold;\n}\n\n.multimedia-avatar-size42 {\n  text-align: center;\n  width: 42px;\n  height: 42px;\n  border-radius: 42px;\n}\n.multimedia-avatar-size42 .multimedia-avatar-text {\n  color: var(--color-white-tier1);\n  height: 42px;\n  line-height: 42px;\n  font-weight: bold;\n}\n\n.multimedia-white-tip {\n  overflow-wrap: break-word;\n  white-space: normal;\n}\n.multimedia-white-tip .react-tooltip-arrow {\n  display: none;\n}\n.multimedia-white-tip.react-tooltip {\n  border-radius: var(--radius-tier1);\n  border: none;\n  box-shadow: var(--shadow-tier1);\n  opacity: 1;\n}\n.multimedia-white-tip.react-tooltip {\n  background-color: var(--color-menu-tier1);\n  padding: 20px;\n  color: var(--color-font-black1);\n  pointer-events: auto;\n  z-index: 10000;\n}\n\n.multimedia-tooltip {\n  overflow-wrap: break-word;\n  white-space: normal;\n  max-width: 360px;\n  z-index: 10000;\n}\n.multimedia-tooltip .react-tooltip-arrow {\n  display: none;\n}\n.multimedia-tooltip.react-tooltip {\n  border-radius: var(--radius-tier1);\n  border: none;\n  box-shadow: var(--shadow-tier1);\n  opacity: 1;\n}\n.multimedia-tooltip.react-tooltip {\n  color: var(--color-font-white1);\n  background-color: var(--color-tooltips-tier1);\n  padding: 6px 12px;\n}\n\n.multimedia-tooltip-mobile {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  box-sizing: border-box;\n  max-width: calc(100vw - 32px);\n  z-index: 10000;\n}\n.multimedia-tooltip-mobile .react-tooltip-arrow {\n  display: none;\n}\n.multimedia-tooltip-mobile.react-tooltip {\n  border-radius: var(--radius-tier1);\n  border: none;\n  box-shadow: var(--shadow-tier1);\n  opacity: 1;\n}\n.multimedia-tooltip-mobile.react-tooltip {\n  color: var(--color-font-white1);\n  background-color: var(--color-tooltips-tier1);\n}\n\n.multimedia-warning-tooltip {\n  overflow-wrap: break-word;\n  white-space: normal;\n  max-width: 400px;\n  z-index: 10000;\n}\n.multimedia-warning-tooltip.react-tooltip {\n  border-radius: var(--radius-tier1);\n  padding: 1px 8px;\n  box-shadow: 0px 2px 8px rgba(232, 82, 88, 0.15);\n  color: var(--color-font-white1);\n  background-color: var(--color-status-red1);\n}\n.multimedia-warning-tooltip.react-tooltip__place-top-start .react-tooltip-arrow {\n  left: 12px !important;\n}';styleInject(css_248z);var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var propTypes$h={exports:{}},reactIs$1={exports:{}},reactIs_production_min={};function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function _(e){return b(e)===u}return reactIs_production_min.AsyncMode=l,reactIs_production_min.ConcurrentMode=u,reactIs_production_min.ContextConsumer=s,reactIs_production_min.ContextProvider=a,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=c,reactIs_production_min.Fragment=r,reactIs_production_min.Lazy=h,reactIs_production_min.Memo=p,reactIs_production_min.Portal=n,reactIs_production_min.Profiler=o,reactIs_production_min.StrictMode=i,reactIs_production_min.Suspense=d,reactIs_production_min.isAsyncMode=function(e){return _(e)||b(e)===l},reactIs_production_min.isConcurrentMode=_,reactIs_production_min.isContextConsumer=function(e){return b(e)===s},reactIs_production_min.isContextProvider=function(e){return b(e)===a},reactIs_production_min.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_production_min.isForwardRef=function(e){return b(e)===c},reactIs_production_min.isFragment=function(e){return b(e)===r},reactIs_production_min.isLazy=function(e){return b(e)===h},reactIs_production_min.isMemo=function(e){return b(e)===p},reactIs_production_min.isPortal=function(e){return b(e)===n},reactIs_production_min.isProfiler=function(e){return b(e)===o},reactIs_production_min.isStrictMode=function(e){return b(e)===i},reactIs_production_min.isSuspense=function(e){return b(e)===d},reactIs_production_min.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===o||e===i||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},reactIs_production_min.typeOf=b,reactIs_production_min}var reactIs_development={};function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1),reactIs_development}function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs$1.exports=requireReactIs_production_min()),reactIs$1.exports}function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}return objectAssign=!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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};if("abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join(""))return!1;return!0}catch(e){return!1}}()?function(i,o){for(var a,s,l=r(i),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))t.call(a,c)&&(l[c]=a[c]);if(e){s=e(a);for(var d=0;d<s.length;d++)n.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}:Object.assign}function requireReactPropTypesSecret(){return hasRequiredReactPropTypesSecret?ReactPropTypesSecret_1:(hasRequiredReactPropTypesSecret=1,ReactPropTypesSecret_1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function requireHas(){return hasRequiredHas?has:(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty))}function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;function e(e,t,n,r,i){}return hasRequiredCheckPropTypes=1,e.resetWarningCache=function(){},checkPropTypes_1=e}function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),n=requireReactPropTypesSecret(),r=requireHas(),i=requireCheckPropTypes(),o=function(){};function a(){return null}return factoryWithTypeCheckers=function(s,l){var u="function"==typeof Symbol&&Symbol.iterator,c="@@iterator";function d(e){var t=e&&(u&&e[u]||e[c]);if("function"==typeof t)return t}var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(),arrayOf:b,element:_(),elementType:E(),instanceOf:w,node:I(),objectOf:T,oneOf:S,oneOfType:O,shape:C,exact:x};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){function t(t,r,i,o,a,s,u){if(o=o||f,s=s||i,u!==n&&l){var c=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 c.name="Invariant Violation",c}return null!=r[i]?e(r,i,o,a,s):t?new m(null===r[i]?"The "+a+" `"+s+"` is marked as required in `"+o+"`, but its value is `null`.":"The "+a+" `"+s+"` is marked as required in `"+o+"`, but its value is `undefined`."):null}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function v(e){return g(function(t,n,r,i,o,a){var s=t[n];return L(s)!==e?new m("Invalid "+i+" `"+o+"` of type "+("`"+k(s))+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function y(){return g(a)}function b(e){return g(function(t,r,i,o,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new m("Invalid "+o+" `"+a+"` of type "+("`"+L(s))+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,i,o,a+"["+l+"]",n);if(u instanceof Error)return u}return null})}function _(){return g(function(e,t,n,r,i){var o=e[t];return s(o)?null:new m("Invalid "+r+" `"+i+"` of type "+("`"+L(o))+"` supplied to `"+n+"`, expected a single ReactElement.")})}function E(){return g(function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new m("Invalid "+i+" `"+o+"` of type "+("`"+L(a))+"` supplied to `"+r+"`, expected a single ReactElement type.")})}function w(e){return g(function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||f;return new m("Invalid "+i+" `"+o+"` of type "+("`"+P(t[n]))+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null})}function S(e){return Array.isArray(e)?g(function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===k(t)?String(t):t});return new m("Invalid "+i+" `"+o+"` of value `"+String(a)+"` "+("supplied to `"+r)+"`, expected one of "+l+".")}):a}function T(e){return g(function(t,i,o,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=t[i],u=L(l);if("object"!==u)return new m("Invalid "+a+" `"+s+"` of type "+("`"+u)+"` supplied to `"+o+"`, expected an object.");for(var c in l)if(r(l,c)){var d=e(l,c,o,a,s+"."+c,n);if(d instanceof Error)return d}return null})}function O(e){if(!Array.isArray(e))return a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(i)+" at index "+t+"."),a}return g(function(t,i,o,a,s){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,i,o,a,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to "+("`"+o)+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})}function I(){return g(function(e,t,n,r,i){return D(e[t])?null:new m("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})}function A(e,t,n,r,i){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function C(e){return g(function(t,r,i,o,a){var s=t[r],l=L(s);if("object"!==l)return new m("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return A(i,o,a,u,k(c));var d=c(s,u,i,o,a+"."+u,n);if(d)return d}return null})}function x(e){return g(function(i,o,a,s,l){var u=i[o],c=L(u);if("object"!==c)return new m("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=t({},i[o],e);for(var f in d){var p=e[f];if(r(e,f)&&"function"!=typeof p)return A(a,s,l,f,k(p));if(!p)return new m("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var h=p(u,f,a,s,l+"."+f,n);if(h)return h}return null})}function D(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(D);if(null===e||s(e))return!0;var t=d(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!D(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!D(i[1]))return!1}return!0;default:return!1}}function R(e,t){return"symbol"===e||!!t&&!!("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function L(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":R(t,e)?"symbol":t}function k(e){if(null==e)return""+e;var t=L(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function M(e){var t=k(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function P(e){return e.constructor&&e.constructor.name?e.constructor.name:f}return m.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p}}function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function n(){}return n.resetWarningCache=t,factoryWithThrowingShims=function(){function r(t,n,r,i,o,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}propTypes$h.exports=requireFactoryWithThrowingShims()();var propTypesExports=propTypes$h.exports,PropTypes=getDefaultExportFromCjs(propTypesExports),propTypes$g={className:PropTypes.string,text:PropTypes.string.isRequired},defaultProps$h={className:""},DangerousSpan=function(e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:e.className,dangerouslySetInnerHTML:{__html:e.text}})};DangerousSpan.propTypes=propTypes$g,DangerousSpan.defaultProps=defaultProps$h;var classnames$1={exports:{}};!/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var o in e)t.call(e,o)&&e[o]&&(r=i(r,o));return r}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(classnames$1);var classnamesExports=classnames$1.exports,classNames$1=getDefaultExportFromCjs(classnamesExports),buttonHandlerWrapper=function(e,t){return function(n){if(t){n.preventDefault();return}e&&(n.preventDefault(),e(n))}},DesktopButton=(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(e,t){var n=e.handler,r=e.hoverHandler,i=e.ariaLabel,o=e.dataTestId,a=e.disabled,s=e.className,l=e.children,u=e.style,c=e.title,d=e.tipId,f=e.tipPlace,p=e.onWheel,h=e.onTransitionEnd,m=e.onMouseDown,g=e.onMouseLeave,v=e.onTouchEnd,y=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),b=classNames$1((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},s,!0),"disabled",a));(0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(t,function(){return y.current});var _=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return buttonHandlerWrapper(n,a)},[n,a]),E=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return buttonHandlerWrapper(r,a)},[r,a]),w=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return buttonHandlerWrapper(m,a)},[m,a]),S=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return buttonHandlerWrapper(g,a)},[g,a]),T=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return buttonHandlerWrapper(v,a)},[v,a]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{className:b,disabled:a,onClick:_,onMouseEnter:E,onMouseDown:w,onMouseLeave:S,onTouchEnd:T,onWheel:p,onTransitionEnd:h,ref:y,style:u,"aria-label":i,"data-testid":o,type:"button","data-tooltip-content":c,"data-tooltip-id":d,"data-tooltip-place":f,children:l})});DesktopButton.displayName="DesktopButton",DesktopButton.propTypes={handler:PropTypes.func,hoverHandler:PropTypes.func,ariaLabel:PropTypes.string,dataTestId:PropTypes.string,disabled:PropTypes.bool,className:PropTypes.string,children:PropTypes.node,style:PropTypes.shape({background:PropTypes.string}),title:PropTypes.string,tipId:PropTypes.string,tipPlace:PropTypes.string,onWheel:PropTypes.func,onTransitionEnd:PropTypes.func,onMouseDown:PropTypes.func,onMouseLeave:PropTypes.func,onTouchEnd:PropTypes.func},DesktopButton.defaultProps={handler:void 0,hoverHandler:void 0,ariaLabel:void 0,dataTestId:void 0,disabled:!1,className:"",children:null,style:{},title:void 0,tipId:void 0,tipPlace:void 0,onWheel:void 0,onTransitionEnd:void 0,onMouseDown:void 0,onMouseLeave:void 0,onTouchEnd:void 0};var useMobileLongPressEvent=function(e){var t=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),n=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){t.current=e},[]);return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){var n;return null===(n=t.current)||void 0===n||n.addEventListener("long-press",e),function(){var n;null===(n=t.current)||void 0===n||n.removeEventListener("long-press",e)}},[e]),{setCallBackTargetRef:n}},uaParser={exports:{}};!function(e,t){!function(n,r){var i="1.0.38",o="",a="?",s="function",l="undefined",u="object",c="string",d="major",f="model",p="name",h="type",m="vendor",g="version",v="architecture",y="console",b="mobile",_="tablet",E="smarttv",w="wearable",S="embedded",T=500,O="Amazon",I="Apple",A="ASUS",C="BlackBerry",x="Browser",D="Chrome",R="Firefox",L="Google",k="Huawei",M="LG",P="Microsoft",N="Motorola",F="Opera",B="Samsung",U="Sharp",H="Sony",j="Xiaomi",V="Zebra",z="Facebook",Z="Chromium OS",G="Mac OS",W=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===c&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},K=function(e){return typeof e===c?e.replace(/[^\d\.]/g,o).split(".")[0]:void 0},X=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,o),typeof t===l?e:e.substring(0,T)},Q=function(e,t){for(var n,i,o,a,l,c,d=0;d<t.length&&!l;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!l&&f[n];)if(l=f[n++].exec(e))for(o=0;o<p.length;o++)c=l[++i],typeof(a=p[o])===u&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):void 0:this[a[0]]=c?a[1].call(this,c,a[2]):void 0:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):r):this[a]=c||r;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(Y(t[n][i],e))return n===a?r:n}else if(Y(t[n],e))return n===a?r:n;return e},ee={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[p,F+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[p,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/\bddg\/([\w\.]+)/i],[g,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[p,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+x],g],[/\bfocus\/([\w\.]+)/i],[g,[p,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[p,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[p,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[p,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[g,[p,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+x]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+x],g],[/samsungbrowser\/([\w\.]+)/i],[g,[p,B+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,D+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,J,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,g],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,$]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,o,$]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[m,B],[h,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[m,B],[h,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[m,I],[h,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[m,I],[h,_]],[/(macintosh);/i],[f,[m,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[m,U],[h,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[m,k],[h,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[m,k],[h,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[m,j],[h,b]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[m,j],[h,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[m,"OPPO"],[h,b]],[/\b(opd2\d{3}a?) bui/i],[f,[m,"OPPO"],[h,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[m,"Vivo"],[h,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[m,"Realme"],[h,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[m,N],[h,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[m,N],[h,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[m,M],[h,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[m,M],[h,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[m,"Lenovo"],[h,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[m,"Nokia"],[h,b]],[/(pixel c)\b/i],[f,[m,L],[h,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[m,L],[h,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[m,H],[h,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[m,H],[h,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[m,"OnePlus"],[h,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[m,O],[h,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[m,O],[h,b]],[/(playbook);[-\w\),; ]+(rim)/i],[f,m,[h,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[m,C],[h,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[m,A],[h,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[m,A],[h,b]],[/(nexus 9)/i],[f,[m,"HTC"],[h,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[f,/_/g," "],[h,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[m,"Acer"],[h,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[m,"Meizu"],[h,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[m,"Ulefone"],[h,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,f,[h,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,f,[h,_]],[/(surface duo)/i],[f,[m,P],[h,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[m,"Fairphone"],[h,b]],[/(u304aa)/i],[f,[m,"AT&T"],[h,b]],[/\bsie-(\w*)/i],[f,[m,"Siemens"],[h,b]],[/\b(rct\w+) b/i],[f,[m,"RCA"],[h,_]],[/\b(venue[\d ]{2,7}) b/i],[f,[m,"Dell"],[h,_]],[/\b(q(?:mv|ta)\w+) b/i],[f,[m,"Verizon"],[h,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[m,"Barnes & Noble"],[h,_]],[/\b(tm\d{3}\w+) b/i],[f,[m,"NuVision"],[h,_]],[/\b(k88) b/i],[f,[m,"ZTE"],[h,_]],[/\b(nx\d{3}j) b/i],[f,[m,"ZTE"],[h,b]],[/\b(gen\d{3}) b.+49h/i],[f,[m,"Swiss"],[h,b]],[/\b(zur\d{3}) b/i],[f,[m,"Swiss"],[h,_]],[/\b((zeki)?tb.*\b) b/i],[f,[m,"Zeki"],[h,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],f,[h,_]],[/\b(ns-?\w{0,9}) b/i],[f,[m,"Insignia"],[h,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[m,"NextBook"],[h,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],f,[h,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],f,[h,b]],[/\b(ph-1) /i],[f,[m,"Essential"],[h,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[m,"Envizen"],[h,_]],[/\b(trio[-\w\. ]+) b/i],[f,[m,"MachSpeed"],[h,_]],[/\btu_(1491) b/i],[f,[m,"Rotor"],[h,_]],[/(shield[\w ]+) b/i],[f,[m,"Nvidia"],[h,_]],[/(sprint) (\w+)/i],[m,f,[h,b]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[m,P],[h,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[m,V],[h,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[m,V],[h,b]],[/smart-tv.+(samsung)/i],[m,[h,E]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[m,B],[h,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,M],[h,E]],[/(apple) ?tv/i],[m,[f,I+" TV"],[h,E]],[/crkey/i],[[f,D+"cast"],[m,L],[h,E]],[/droid.+aft(\w+)( bui|\))/i],[f,[m,O],[h,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[m,U],[h,E]],[/(bravia[\w ]+)( bui|\))/i],[f,[m,H],[h,E]],[/(mitv-\w{5}) bui/i],[f,[m,j],[h,E]],[/Hbbtv.*(technisat) (.*);/i],[m,f,[h,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,X],[f,X],[h,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,f,[h,y]],[/droid.+; (shield) bui/i],[f,[m,"Nvidia"],[h,y]],[/(playstation [345portablevi]+)/i],[f,[m,H],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[m,P],[h,y]],[/((pebble))app/i],[m,f,[h,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[m,I],[h,w]],[/droid.+; (glass) \d/i],[f,[m,L],[h,w]],[/droid.+; (wt63?0{2,3})\)/i],[f,[m,V],[h,w]],[/(quest( \d| pro)?)/i],[f,[m,z],[h,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,S]],[/(aeobc)\b/i],[f,[m,O],[h,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[h,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,b]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[g,J,ee]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,J,ee],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,G],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,g],[/\(bb(10);/i],[g,[p,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[p,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,Z],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,g]]},en=function(e,t){if(typeof e===u&&(t=e,e=r),!(this instanceof en))return new en(e,t).getResult();var i=typeof n!==l&&n.navigator?n.navigator:r,a=e||(i&&i.userAgent?i.userAgent:o),y=i&&i.userAgentData?i.userAgentData:r,E=t?W(et,t):et,w=i&&i.userAgent==a;return this.getBrowser=function(){var e={};return e[p]=r,e[g]=r,Q.call(e,a,E.browser),e[d]=K(e[g]),w&&i&&i.brave&&typeof i.brave.isBrave==s&&(e[p]="Brave"),e},this.getCPU=function(){var e={};return e[v]=r,Q.call(e,a,E.cpu),e},this.getDevice=function(){var e={};return e[m]=r,e[f]=r,e[h]=r,Q.call(e,a,E.device),w&&!e[h]&&y&&y.mobile&&(e[h]=b),w&&"Macintosh"==e[f]&&i&&typeof i.standalone!==l&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[f]="iPad",e[h]=_),e},this.getEngine=function(){var e={};return e[p]=r,e[g]=r,Q.call(e,a,E.engine),e},this.getOS=function(){var e={};return e[p]=r,e[g]=r,Q.call(e,a,E.os),w&&!e[p]&&y&&y.platform&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,Z).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return a},this.setUA=function(e){return a=typeof e===c&&e.length>T?X(e,T):e,this},this.setUA(a),this};en.VERSION=i,en.BROWSER=q([p,g,d]),en.CPU=q([v]),en.DEVICE=q([f,m,h,y,b,E,_,w,S]),en.ENGINE=en.OS=q([p,g]),e.exports&&(t=e.exports=en),t.UAParser=en;var er=typeof n!==l&&(n.jQuery||n.Zepto);if(er&&!er.ua){var ei=new en;er.ua=ei.getResult(),er.ua.get=function(){return ei.getUA()},er.ua.set=function(e){ei.setUA(e);var t=ei.getResult();for(var n in t)er.ua[n]=t[n]}}}("object"==typeof window?window:commonjsGlobal)}(uaParser,uaParser.exports);var uaParserExports=uaParser.exports,_MD=function(){function e(t){(0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__.Z)(this,e),this.uaParser=new uaParserExports.UAParser(t)}return(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__.Z)(e,[{key:"isMobile",value:function(){var e=this.uaParser.getDevice().type;return"Mac OS"!==this.uaParser.getOS().name&&("tablet"===e||"mobile"===e)}},{key:"isiOS",value:function(){return"iOS"===this.uaParser.getOS().name}}])}(),userAgent=null;"undefined"!=typeof window&&(userAgent=window.navigator.userAgent);var md=new _MD(userAgent),isMobile=function(){return md.isMobile()},createWithRwd=function(e){return function(t,n){return e()?n:t}},withRwd=createWithRwd(isMobile);function ownKeys$d(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 _objectSpread$d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$d(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var MobileButton=(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(e,t){var n=useMobileLongPressEvent(e.onLongPress).setCallBackTargetRef,r=function(e){"function"==typeof t?t(e):t&&(t.current=e),n(e)};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(DesktopButton,_objectSpread$d(_objectSpread$d({},e),{},{ref:r}))});MobileButton.propTypes={onLongPress:PropTypes.func},MobileButton.defaultProps={onLongPress:void 0},MobileButton.displayName="MobileButton";var Button=withRwd(DesktopButton,MobileButton),_excluded$9=["items","showBottom","tipId"],_excluded2$2=["onClick"];function ownKeys$c(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 _objectSpread$c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$c(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var TabItemType=PropTypes.shape({text:PropTypes.string.isRequired,className:PropTypes.string,textCls:PropTypes.string,title:PropTypes.string,active:PropTypes.bool,disabled:PropTypes.bool,handler:PropTypes.func,WrapElement:PropTypes.elementType,wrapElementProps:PropTypes.shape(),isShowHint:PropTypes.bool}),propTypes$f={items:PropTypes.arrayOf(TabItemType),showBottom:PropTypes.bool,tipId:PropTypes.string},defaultProps$g={showBottom:!1,items:[],tipId:void 0},style=Object.freeze({position:"relative",display:"inline-block"}),setCtPos=function(e,t,n){if(e){var r=(t/e.offsetWidth).toFixed(2),i=n-(e.offsetWidth-t)/2;e.style.transform="matrix(".concat(r,", 0, 0, 1, ").concat(i,", 0)")}},TabButtonGroup=function(e){var t=e.items,n=e.showBottom,r=e.tipId,i=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$9),o=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)([]),a=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);if((0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){var e=a.current;e&&(e.style.width="".concat(o.current[0].offsetWidth,"px"));for(var n=0;n<t.length;++n)if(t[n].active){setCtPos(e,o.current[n].offsetWidth,o.current[n].offsetLeft),setTimeout(function(){e&&(e.style.transitionDuration="430ms")},0);return}},[t]),!t.length)return null;for(var s=[],l=function(e){var n=t[e],l=n.text,u=n.className,c=void 0===u?"":u,d=n.textCls,f=void 0===d?"":d,p=n.title,h=void 0===p?null:p,m=n.active,g=void 0!==m&&m,v=n.disabled,y=void 0!==v&&v,b=n.handler,_=void 0===b?void 0:b,E=n.WrapElement,w=void 0===E?void 0:E,S=n.wrapElementProps,T=void 0===S?{}:S,O=n.isShowHint,I=void 0!==O&&O,A=classNames$1((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},c,c),"active",g),"disabled",y)),C=function(){g&&setCtPos(a.current,o.current[e].offsetWidth,o.current[e].offsetLeft)},x=null,D=function(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"button-text-wrap",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"".concat(f," button-text"),children:[l,I?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"tab-button-dot"}):null]})})};if(w){var R=T.onClick,L=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(T,_excluded2$2),k=function(e){C(),R&&R(e),_&&_(e)};x=(0,react__WEBPACK_IMPORTED_MODULE_2__.createElement)(w,_objectSpread$c(_objectSpread$c({},L),{},{onClick:k,key:"key_".concat(l)}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Button,_objectSpread$c(_objectSpread$c({},i),{},{disabled:y,className:"".concat(A," tab-button"),title:h,ref:function(t){o.current[e]=t},children:D()})))}else{var M=function(e){C(),_&&_(e)};x=(0,react__WEBPACK_IMPORTED_MODULE_2__.createElement)(Button,_objectSpread$c(_objectSpread$c({},i),{},{disabled:y,className:"".concat(A," tab-button"),title:h,handler:M,key:"key_".concat(l),ref:function(t){o.current[e]=t},dataTestId:"tab-button-".concat(l),tipId:r}),D())}s.push(x)},u=0;u<t.length;++u)l(u);var c=classNames$1("tab-button-indicator-ct",{"indicator-top":!n,"indicator-bottom":n});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{style:style,children:[s,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:c,ref:a,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"tab-button-indicator"})})]})};TabButtonGroup.propTypes=propTypes$f,TabButtonGroup.defaultProps=defaultProps$g;var TabPanelItemType=PropTypes.shape({text:PropTypes.string.isRequired,className:PropTypes.string,textCls:PropTypes.string,title:PropTypes.string,active:PropTypes.bool,disabled:PropTypes.bool,content:PropTypes.node,handler:PropTypes.func,WrapElement:PropTypes.elementType,wrapElementProps:PropTypes.shape()}),propTypes$e={className:PropTypes.string,tabButtonClassName:PropTypes.string,tabItems:PropTypes.arrayOf(TabPanelItemType),defaultActiveId:PropTypes.number,disabled:PropTypes.bool,currentActiveId:PropTypes.number,customPanelHeaderRight:PropTypes.node,beforeChangeTab:PropTypes.func},defaultProps$f={className:"",tabButtonClassName:"",tabItems:[{}],defaultActiveId:0,currentActiveId:-1,disabled:!1,customPanelHeaderRight:null,beforeChangeTab:null},TabPanel=function(e){var t=e.className,n=e.tabButtonClassName,r=e.tabItems,i=e.defaultActiveId,o=e.disabled,a=e.currentActiveId,s=e.customPanelHeaderRight,l=e.beforeChangeTab,u=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(i),c=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(u,2),d=c[0],f=c[1];(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){a>-1&&f(a)},[a]);var p=r.map(function(e,t){var i=function(){var n=(0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_10__.Z)(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function n(){return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l){n.next=6;break}return n.next=3,l(e,t,r[d]);case 3:if(n.sent){n.next=6;break}return n.abrupt("return");case 6:f(t),e.handler&&e.handler();case 8:case"end":return n.stop()}},n)}));return function(){return n.apply(this,arguments)}}();return{key:"key_".concat(t),className:n,active:t===d,text:e.text,title:e.title,handler:i,disabled:o,isShowHint:e.isShowHint}}),h=r[d].content?r[d].content:null,m=t?"".concat(t," tab-panel"):"tab-panel";return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:m,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"tab-panel-header",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"tab-panel-left",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TabButtonGroup,{items:p,showBottom:!0})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"tab-panel-right",children:s})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"tab-panel-content",children:h})]})};TabPanel.propTypes=propTypes$e,TabPanel.defaultProps=defaultProps$f;var Note=function(e){var t=e.className,n=e.noteString,r=e.text;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"note ".concat(t),role:"note",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"note__prefix",children:n}),r]})};Note.propTypes={className:PropTypes.string,noteString:PropTypes.string.isRequired,text:PropTypes.string.isRequired},Note.defaultProps={className:""};var lottie$1={exports:{}};!function(module,exports){"undefined"!=typeof navigator&&function(e,t){module.exports=t()}(0,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var o in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,o)&&(t.prototype[o]=r[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}function t(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return(_typeof$6="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)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,n){var r,i,o,a,s,l,u,c;switch(a=Math.floor(6*e),s=6*e-a,l=n*(1-t),u=n*(1-s*t),c=n*(1-(1-s)*t),a%6){case 0:r=n,i=c,o=l;break;case 1:r=u,i=n,o=l;break;case 2:r=l,i=n,o=c;break;case 3:r=l,i=u,o=n;break;case 4:r=c,i=l,o=n;break;case 5:r=n,i=l,o=u}return[r,i,o]}function RGBtoHSV(e,t,n){var r,i=Math.max(e,t,n),o=Math.min(e,t,n),a=i-o,s=0===i?0:a/i,l=i/255;switch(i){case o:r=0;break;case e:r=(t-n+a*(t<n?6:0))/(6*a);break;case t:r=(n-e+2*a)/(6*a);break;case n:r=(e-t+4*a)/(6*a)}return[r,s,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5="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)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(n))}return e=t,i}function s(){t||((t=a(function(e){function t(){function e(t,n){var a,s,l,u,c,d,f=t.length;for(s=0;s<f;s+=1)if("ks"in(a=t[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(l=0,u=h.length;l<u;l+=1)if(h[l].pt.k.i)o(h[l].pt.k);else for(c=0,d=h[l].pt.k.length;c<d;c+=1)h[l].pt.k[c].s&&o(h[l].pt.k[c].s[0]),h[l].pt.k[c].e&&o(h[l].pt.k[c].e[0])}0===a.ty?(a.layers=r(a.refId,n),e(a.layers,n)):4===a.ty?i(a.shapes):5===a.ty&&p(a)}}function t(t,n){if(t){var i=0,o=t.length;for(i=0;i<o;i+=1)1===t[i].t&&(t[i].data.layers=r(t[i].data.refId,n),e(t[i].data.layers,n))}}function n(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}function r(e,t){var r=n(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function i(e){var t,n,r;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty){if(e[t].ks.k.i)o(e[t].ks.k);else for(n=0,r=e[t].ks.k.length;n<r;n+=1)e[t].ks.k[n].s&&o(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&o(e[t].ks.k[n].e[0])}else"gr"===e[t].ty&&i(e[t].it)}function o(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function a(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var s=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),l=function(){var e=[4,7,99];return function(t){if(t.chars&&!a(e,t.v)){var n,r=t.chars.length;for(n=0;n<r;n+=1){var o=t.chars[n];o.data&&o.data.shapes&&(i(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[n].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),u=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var n,r,i,o=e.length;for(n=0;n<o;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty){if(e[n].c.k&&e[n].c.k[0].i)for(r=0,i=e[n].c.k.length;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),d=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty){if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(r=0,i=e[n].ks.k.length;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed)}else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,o,a,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var u=n.masksProperties;for(i=0,o=u.length;i<o;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(a=0,s=u[i].pt.k.length;a<s;a+=1)u[i].pt.k[a].s&&(u[i].pt.k[a].s[0].c=u[i].cl),u[i].pt.k[a].e&&(u[i].pt.k[a].e[0].c=u[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function f(n){n.__complete||(c(n),s(n),l(n),u(n),d(n),e(n.layers,n.assets),t(n.chars,n.assets),n.__complete=!0)}function p(e){0===e.t.a.length&&e.t.p}var h={};return h.completeData=f,h.checkColors=c,h.checkChars=l,h.checkPathProperties=u,h.checkShapes=d,h.completeLayers=e,h}if(o.dataManager||(o.dataManager=t()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState){if(200===a.status)r(o=e(a));else try{o=e(a),r(o)}catch(e){i&&i(e)}}};try{a.open("GET",t,!0)}catch(e){a.open("GET",n+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var n=e.data.animation;o.dataManager.completeData(n),o.postMessage({id:e.data.id,payload:n,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})})})).onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function l(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,n,r){s();var i=l(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,n,r){s();var i=l(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,n,r){s();var i=l(n,r);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n+(e.u?e.u:"")+e.p;return r}function i(e){var t=0,n=setInterval((function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}).bind(this),50)}function o(t){var n=r(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",(function(){o.img=e,this._imageLoaded()}).bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o}function a(t){var n=r(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",(function(){o.img=e,this._imageLoaded()}).bind(this),!1),i.src=n;var o={img:i,assetData:t};return o}function s(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,(function(e){t.img=e,this._footageLoaded()}).bind(this),(function(){t.img={},this._footageLoaded()}).bind(this)),t}function l(e,t){this.imagesLoadedCb=t;var n,r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))}function u(e){this.path=e||""}function c(e){this.assetsPath=e||""}function d(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function p(){return this.totalImages===this.loadedAssets}function h(){return this.totalFootages===this.loadedFootagesCount}function m(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function g(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return g.prototype={loadAssets:l,setAssetsPath:c,setPath:u,loadedImages:p,loadedFootages:h,destroy:f,getAsset:d,createImgData:a,createImageData:o,imageLoaded:t,footageLoaded:n,setCacheType:m},g}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),(function(){this.removeEventListener(e,t)}).bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,o=0;o<n.length;o+=1)2===(t=n[o].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw Error();return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[r].cm)}catch(n){try{o.payload=e(t[r].cm)}catch(e){o.payload={name:t[r].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return(_typeof$4="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)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==o,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,o=e.layers,a=o.length;for(n=0;n<a;n+=1)for(t=0;t<i;){if(r[t].id===o[n].id){r[t]=o[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(t=0,i=e.assets.length;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){(!e||this.name===e)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1!==this.isPaused||(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){if(isNaN(Number(e))){var r=this.getMarkerData(e);r&&this.goToAndStop(r.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){(!e||this.name===e)&&this.renderer&&(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path+(e.u?e.u:"")+e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,o=!0,a=!1;function s(e){for(var n=0,i=e.target;n<r;)t[n].animation!==i||(t.splice(n,1),n-=1,r-=1,i.isPaused||d()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return f(o,e),o.setData(e,n),o}function u(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r}function c(){i+=1,I()}function d(){i-=1}function f(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",d),t.push({elem:n,animation:e}),r+=1}function p(e){var t=new AnimationItem;return f(t,null),t.setParams(e),t}function h(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)}function m(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)}function g(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)}function v(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,i&&!a?window.requestAnimationFrame(v):o=!0}function y(e){n=e,window.requestAnimationFrame(v)}function b(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)}function _(e,n,i){var o;for(o=0;o<r;o+=1)t[o].animation.goToAndStop(e,n,i)}function E(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)}function w(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)}function S(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)}function T(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(r=0;r<o;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===o){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),a.appendChild(s),l(s,e)}}function O(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()}function I(){!a&&i&&o&&(window.requestAnimationFrame(y),o=!1)}function A(){a=!0}function C(){a=!1,I()}function x(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)}function D(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)}function R(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)}return e.registerAnimation=l,e.loadAnimation=p,e.setSpeed=h,e.setDirection=m,e.play=g,e.pause=b,e.stop=E,e.togglePause=w,e.searchAnimations=T,e.resize=O,e.goToAndStop=_,e.destroy=S,e.freeze=A,e.unfreeze=C,e.setVolume=x,e.mute=D,e.unmute=R,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var t={};function n(e,n,r,i,o){var a=o||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new v([e,n,r,i]);return t[a]=s,s}var r=4,i=.001,o=1e-7,a=10,s=11,l=.1,u="function"==typeof Float32Array;function c(e,t){return 1-3*t+3*e}function d(e,t){return 3*t-6*e}function f(e){return 3*e}function p(e,t,n){return((c(t,n)*e+d(t,n))*e+f(t))*e}function h(e,t,n){return 3*c(t,n)*e*e+2*d(t,n)*e+f(t)}function m(e,t,n,r,i){var s,l,u=0;do(s=p(l=t+(n-t)/2,r,i)-e)>0?n=l:t=l;while(Math.abs(s)>o&&++u<a);return l}function g(e,t,n,i){for(var o=0;o<r;++o){var a=h(t,n,i);if(0===a)break;var s=p(t,n,i)-e;t-=s/a}return t}function v(e){this._p=e,this._mSampleValues=u?new Float32Array(s):Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return v.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return(this._precomputed||this._precompute(),t===n&&r===i)?e:0===e?0:1===e?1:p(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,(e!==t||n!==r)&&this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<s;++n)this._mSampleValues[n]=p(n*l,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],r=this._mSampleValues,o=0,a=1,u=s-1;a!==u&&r[a]<=e;++a)o+=l;var c=o+(e-r[--a])/(r[a+1]-r[a])*l,d=h(c,t,n);return d>=i?g(e,c,t,n):0===d?c:m(e,o,o+l,t,n)}},e}(),pooling=function(){return{double:function(e){return e.concat(createSizedArray(e.length))}}}(),poolFactory=function(){return function(e,t,n){var r=0,i=e,o=createSizedArray(i);return{newElement:function(){var e;return r?(r-=1,e=o[r]):e=t(),e},release:function(e){r===i&&(o=pooling.double(o),i*=2),n&&n(e),o[r]=e,r+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){return poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0})}();function bezFunction(){var e=Math;function t(e,t,n,r,i,o){var a=e*r+t*i+n*o-i*r-o*e-n*t;return a>-.001&&a<.001}function n(n,r,i,o,a,s,l,u,c){if(0===i&&0===s&&0===c)return t(n,r,o,a,l,u);var d,f=e.sqrt(e.pow(o-n,2)+e.pow(a-r,2)+e.pow(s-i,2)),p=e.sqrt(e.pow(l-n,2)+e.pow(u-r,2)+e.pow(c-i,2)),h=e.sqrt(e.pow(l-o,2)+e.pow(u-a,2)+e.pow(c-s,2));return(d=f>p?f>h?f-p-h:h-p-f:h>p?h-p-f:p-f-h)>-.0001&&d<1e-4}var r=function(){return function(e,t,n,r){var i,o,a,s,l,u,c=getDefaultCurveSegments(),d=0,f=[],p=[],h=bezierLengthPool.newElement();for(i=0,a=n.length;i<c;i+=1){for(o=0,l=i/(c-1),u=0;o<a;o+=1)s=bmPow(1-l,3)*e[o]+3*bmPow(1-l,2)*l*n[o]+3*(1-l)*bmPow(l,2)*r[o]+bmPow(l,3)*t[o],f[o]=s,null!==p[o]&&(u+=bmPow(f[o]-p[o],2)),p[o]=f[o];u&&(d+=u=bmSqrt(u)),h.percents[i]=l,h.lengths[i]=d}return h.addedLength=d,h}}();function i(e){var t,n=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,l=e._length,u=n.lengths,c=0;for(t=0;t<l-1;t+=1)u[t]=r(o[t],o[t+1],a[t],s[t+1]),c+=u[t].addedLength;return i&&l&&(u[t]=r(o[t],o[0],a[t],s[0]),c+=u[t].addedLength),n.totalLength=c,n}function o(e){this.segmentLength=0,this.points=Array(e)}function a(e,t){this.partialLength=e,this.point=t}var s=function(){var e={};return function(n,r,i,s){var l=(n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[l]){var u,c,d,f,p,h,m,g=getDefaultCurveSegments(),v=0,y=null;2===n.length&&(n[0]!==r[0]||n[1]!==r[1])&&t(n[0],n[1],r[0],r[1],n[0]+i[0],n[1]+i[1])&&t(n[0],n[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new o(g);for(u=0,d=i.length;u<g;u+=1){for(c=0,m=createSizedArray(d),p=u/(g-1),h=0;c<d;c+=1)f=bmPow(1-p,3)*n[c]+3*bmPow(1-p,2)*p*(n[c]+i[c])+3*(1-p)*bmPow(p,2)*(r[c]+s[c])+bmPow(p,3)*r[c],m[c]=f,null!==y&&(h+=bmPow(m[c]-y[c],2));v+=h=bmSqrt(h),b.points[u]=new a(h,m),y=m}b.segmentLength=v,e[l]=b}return e[l]}}();function l(e,t){var n=t.percents,r=t.lengths,i=n.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===r[o])return n[o];for(var l=r[o]>a?-1:1,u=!0;u;)if(r[o]<=a&&r[o+1]>a?(s=(a-r[o])/(r[o+1]-r[o]),u=!1):o+=l,o<0||o>=i-1){if(o===i-1)return n[o];u=!1}return n[o]+(n[o+1]-n[o])*s}function u(t,n,r,i,o,a){var s=l(o,a),u=1-s;return[e.round((u*u*u*t[0]+(s*u*u+u*s*u+u*u*s)*r[0]+(s*s*u+u*s*s+s*u*s)*i[0]+s*s*s*n[0])*1e3)/1e3,e.round((u*u*u*t[1]+(s*u*u+u*s*u+u*u*s)*r[1]+(s*s*u+u*s*s+s*u*s)*i[1]+s*s*s*n[1])*1e3)/1e3]}var c=createTypedArray("float32",8);return{getSegmentsLength:i,getNewSegment:function(t,n,r,i,o,a,s){o<0?o=0:o>1&&(o=1);var u,d=l(o,s),f=l(a=a>1?1:a,s),p=t.length,h=1-d,m=1-f,g=h*h*h,v=d*h*h*3,y=d*d*h*3,b=d*d*d,_=h*h*m,E=d*h*m+h*d*m+h*h*f,w=d*d*m+h*d*f+d*h*f,S=d*d*f,T=h*m*m,O=d*m*m+h*f*m+h*m*f,I=d*f*m+h*f*f+d*m*f,A=d*f*f,C=m*m*m,x=f*m*m+m*f*m+m*m*f,D=f*f*m+m*f*f+f*m*f,R=f*f*f;for(u=0;u<p;u+=1)c[4*u]=e.round((g*t[u]+v*r[u]+y*i[u]+b*n[u])*1e3)/1e3,c[4*u+1]=e.round((_*t[u]+E*r[u]+w*i[u]+S*n[u])*1e3)/1e3,c[4*u+2]=e.round((T*t[u]+O*r[u]+I*i[u]+A*n[u])*1e3)/1e3,c[4*u+3]=e.round((C*t[u]+x*r[u]+D*i[u]+R*n[u])*1e3)/1e3;return c},getPointInSegment:u,buildBezierData:s,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r,i,o,a,s=this.offsetTime;"multidimensional"===this.propType&&(g=createTypedArray("float32",this.pv.length));for(var l=t.lastIndex,u=l,c=this.keyframes.length-1,d=!0;d;){if(v=this.keyframes[u],y=this.keyframes[u+1],u===c-1&&e>=y.t-s){v.h&&(v=y),l=0;break}if(y.t-s>e){l=u;break}u<c-1?u+=1:(l=0,d=!1)}b=this.keyframesMetadata[u]||{};var f=y.t-s,p=v.t-s;if(v.to){b.bezierData||(b.bezierData=bez.buildBezierData(v.s,y.s||v.e,v.to,v.ti));var h=b.bezierData;if(e>=f||e<p){var m=e>=f?h.points.length-1:0;for(_=0,E=h.points[m].point.length;_<E;_+=1)g[_]=h.points[m].point[_]}else{b.__fnct?O=b.__fnct:(O=BezierFactory.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,b.__fnct=O),w=O((e-p)/(f-p));var g,v,y,b,_,E,w,S,T,O,I,A,C=h.segmentLength*w,x=t.lastFrame<e&&t._lastKeyframeIndex===u?t._lastAddedLength:0;for(T=t.lastFrame<e&&t._lastKeyframeIndex===u?t._lastPoint:0,d=!0,S=h.points.length;d;){if(x+=h.points[T].partialLength,0===C||0===w||T===h.points.length-1){for(_=0,E=h.points[T].point.length;_<E;_+=1)g[_]=h.points[T].point[_];break}if(C>=x&&C<x+h.points[T+1].partialLength){for(_=0,A=(C-x)/h.points[T+1].partialLength,E=h.points[T].point.length;_<E;_+=1)g[_]=h.points[T].point[_]+(h.points[T+1].point[_]-h.points[T].point[_])*A;break}T<S-1?T+=1:d=!1}t._lastPoint=T,t._lastAddedLength=x-h.points[T].partialLength,t._lastKeyframeIndex=u}}else if(c=v.s.length,I=y.s||v.e,this.sh&&1!==v.h)e>=f?(g[0]=I[0],g[1]=I[1],g[2]=I[2]):e<=p?(g[0]=v.s[0],g[1]=v.s[1],g[2]=v.s[2]):quaternionToEuler(g,slerp(createQuaternion(v.s),createQuaternion(I),(e-p)/(f-p)));else for(u=0;u<c;u+=1)1!==v.h&&(e>=f?w=1:e<p?w=0:(v.o.x.constructor===Array?(b.__fnct||(b.__fnct=[]),b.__fnct[u]?O=b.__fnct[u]:(n=void 0===v.o.x[u]?v.o.x[0]:v.o.x[u],r=void 0===v.o.y[u]?v.o.y[0]:v.o.y[u],i=void 0===v.i.x[u]?v.i.x[0]:v.i.x[u],o=void 0===v.i.y[u]?v.i.y[0]:v.i.y[u],O=BezierFactory.getBezierEasing(n,r,i,o).get,b.__fnct[u]=O)):b.__fnct?O=b.__fnct:(n=v.o.x,r=v.o.y,i=v.i.x,o=v.i.y,O=BezierFactory.getBezierEasing(n,r,i,o).get,v.keyframeMetadata=O),w=O((e-p)/(f-p)))),I=y.s||v.e,a=1===v.h?v.s[u]:v.s[u]+(I[u]-v.s[u])*w,"multidimensional"===this.propType?g[u]=a:g=a;return t.lastIndex=l,g}function slerp(e,t,n){var r,i,o,a,s,l=[],u=e[0],c=e[1],d=e[2],f=e[3],p=t[0],h=t[1],m=t[2],g=t[3];return(i=u*p+c*h+d*m+f*g)<0&&(i=-i,p=-p,h=-h,m=-m,g=-g),1-i>1e-6?(o=Math.sin(r=Math.acos(i)),a=Math.sin((1-n)*r)/o,s=Math.sin(n*r)/o):(a=1-n,s=n),l[0]=a*u+s*p,l[1]=a*c+s*h,l[2]=a*d+s*m,l[3]=a*f+s*g,l}function quaternionToEuler(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),s=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),u=Math.sin(r/2),c=i*o*a-s*l*u;return[s*l*a+i*o*u,s*o*a+i*l*u,i*l*a-s*o*u,c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i,o=t.k.length;for(i=0,this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o);i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){this.propType="multidimensional";var i,o,a,s,l,u=t.k.length;for(i=0;i<u-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===o.length&&!(o[0]===a[0]&&o[1]===a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===o.length&&!(o[0]===a[0]&&o[1]===a[1]&&o[2]===a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=t.k[0].s.length;for(i=0,this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c);i<c;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory=function(){return{getProp:function(e,t,n,r,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length){if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,r,i);else switch(n){case 0:o=new KeyframedValueProperty(e,t,r,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,r,i)}}else o=new ValueProperty(e,t,r,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var e,t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){return poolFactory(8,function(){return createTypedArray("float32",2)})}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}o[r]&&(!o[r]||i)||(o[r]=pointPool.newElement()),o[r][0]=e,o[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e,t=new ShapePath;t.setPathData(this.c,this._length);var n=this.v,r=this.o,i=this.i,o=0;this.c&&(t.setTripleAt(n[0][0],n[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),o=1);var a=this._length-1,s=this._length;for(e=o;e<s;e+=1)t.setTripleAt(n[a][0],n[a][1],i[a][0],i[a][1],r[a][0],r[a][1],e,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(e){var n,r=t.newElement(),i=void 0===e._length?e.v.length:e._length;for(r.setLength(i),r.c=e.c,n=0;n<i;n+=1)r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],n);return r}var t=poolFactory(4,function(){return new ShapePath},function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1});return t.clone=e,t}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:i,release:o},t=0,n=4,r=createSizedArray(4);function i(){var e;return t?(t-=1,e=r[t]):e=new ShapeCollection,e}function o(e){var i,o=e._length;for(i=0;i<o;i+=1)shapePool.release(e.shapes[i]);e._length=0,t===n&&(r=pooling.double(r),n*=2),r[t]=e,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r=n.lastIndex,i=this.keyframes;if(e<i[0].t-this.offsetTime)o=i[0].s[0],s=!0,r=0;else if(e>=i[i.length-1].t-this.offsetTime)o=i[i.length-1].s?i[i.length-1].s[0]:i[i.length-2].e[0],s=!0;else{for(var o,a,s,l,u,c,d,f,p,h,m,g,v,y=r,b=i.length-1,_=!0;_&&(h=i[y],!((m=i[y+1]).t-this.offsetTime>e));)y<b-1?y+=1:_=!1;g=this.keyframesMetadata[y]||{},s=1===h.h,r=y,s||(e>=m.t-this.offsetTime?f=1:e<h.t-this.offsetTime?f=0:(g.__fnct?v=g.__fnct:(v=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,g.__fnct=v),f=v((e-(h.t-this.offsetTime))/(m.t-this.offsetTime-(h.t-this.offsetTime)))),a=m.s?m.s[0]:h.e[0]),o=h.s[0]}for(l=0,c=t._length,d=o.i[0].length,n.lastIndex=r;l<c;l+=1)for(u=0;u<d;u+=1)p=s?o.i[l][u]:o.i[l][u]+(a.i[l][u]-o.i[l][u])*f,t.i[l][u]=p,p=s?o.o[l][u]:o.o[l][u]+(a.o[l][u]-o.o[l][u])*f,t.o[l][u]=p,p=s?o.v[l][u]:o.v[l][u]+(a.v[l][u]-o.v[l][u])*f,t.v[l][u]=p}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0}function o(e){i(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var e,t,n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function s(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function u(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=a,s.prototype.setVValue=o,s.prototype.addEffect=l,u.prototype.getValue=a,u.prototype.interpolateShape=t,u.prototype.setVValue=o,u.prototype.addEffect=l;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-i,a.v[1][0]=o?t+r:t-r,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+i,a.v[3][0]=o?t-r:t+r,a.v[3][1]=n,a.i[0][0]=o?t-r*e:t+r*e,a.i[0][1]=n-i,a.i[1][0]=o?t+r:t-r,a.i[1][1]=n-i*e,a.i[2][0]=o?t+r*e:t-r*e,a.i[2][1]=n+i,a.i[3][0]=o?t-r:t+r,a.i[3][1]=n+i*e,a.o[0][0]=o?t+r*e:t-r*e,a.o[0][1]=n-i,a.o[1][0]=o?t+r:t-r,a.o[1][1]=n+i*e,a.o[2][0]=o?t-r*e:t+r*e,a.o[2][1]=n+i,a.o[3][0]=o?t-r:t+r,a.o[3][1]=n-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,u=this.os.v,c=this.is.v,d=2*Math.PI*s/(2*i),f=2*Math.PI*l/(2*i),p=-Math.PI/2;p+=this.r.v;var h=3===this.data.d?-1:1;for(e=0,this.v._length=0;e<i;e+=1){t=a?s:l,n=a?u:c,r=a?d:f;var m=t*Math.cos(p),g=t*Math.sin(p),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*n*h,g-y*r*n*h,m+v*r*n*h,g+y*r*n*h,e,!0),a=!a,p+=o*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,o=2*Math.PI*r/(4*t),a=-(.5*Math.PI),s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(a),u=r*Math.sin(a),c=0===l&&0===u?0:u/Math.sqrt(l*l+u*u),d=0===l&&0===u?0:-l/Math.sqrt(l*l+u*u);l+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(l,u,l-c*o*i*s,u-d*o*i*s,l+c*o*i*s,u+d*o*i*s,e,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),f=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+o,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-o,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-o,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+o,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-o,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+o,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+o,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-o,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+o,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+o,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+o,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-o,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+o,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+o,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-o,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+o,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-o,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-o,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+o,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-o,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-o,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}();function p(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new u(e,t,n):new s(e,t,n):5===n?r=new f(e,t):6===n?r=new c(e,t):7===n&&(r=new d(e,t)),r.k&&e.addDynamicProperty(r),r}function h(){return s}function m(){return u}var g={};return g.getShapeProp=p,g.getConstructorFunction=h,g.getKeyframedConstructorFunction=m,g}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(n(e),n(t))}function d(r,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function f(e,t,n){return(n||0===n||(n=1),1===e&&1===t&&1===n)?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function p(e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=u,this.props[10]=c,this.props[11]=d,this.props[12]=f,this.props[13]=p,this.props[14]=h,this.props[15]=m,this}function h(e,t,n){return(n=n||0,0!==e||0!==t||0!==n)?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===o&&0===a&&0===s&&0===l&&0===u&&1===c&&0===d)return g[12]=g[12]*e+g[15]*f,g[13]=g[13]*o+g[15]*p,g[14]=g[14]*c+g[15]*h,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],E=g[4],w=g[5],S=g[6],T=g[7],O=g[8],I=g[9],A=g[10],C=g[11],x=g[12],D=g[13],R=g[14],L=g[15];return g[0]=v*e+y*i+b*l+_*f,g[1]=v*t+y*o+b*u+_*p,g[2]=v*n+y*a+b*c+_*h,g[3]=v*r+y*s+b*d+_*m,g[4]=E*e+w*i+S*l+T*f,g[5]=E*t+w*o+S*u+T*p,g[6]=E*n+w*a+S*c+T*h,g[7]=E*r+w*s+S*d+T*m,g[8]=O*e+I*i+A*l+C*f,g[9]=O*t+I*o+A*u+C*p,g[10]=O*n+I*a+A*c+C*h,g[11]=O*r+I*s+A*d+C*m,g[12]=x*e+D*i+R*l+L*f,g[13]=x*t+D*o+R*u+L*p,g[14]=x*n+D*a+R*c+L*h,g[15]=x*r+D*s+R*d+L*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function E(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function w(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function S(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function T(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function O(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function I(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function A(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=I(e[t]);return r}function C(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],u=this.props[13];r[0]=e[0]*i+e[1]*a+l,r[1]=e[0]*o+e[1]*s+u,r[2]=t[0]*i+t[1]*a+l,r[3]=t[0]*o+t[1]*s+u,r[4]=n[0]*i+n[1]*a+l,r[5]=n[0]*o+n[1]*s+u}return r}function x(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function D(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round((e*n[0]+t*n[4]+n[12])*100)/100+","+Math.round((e*n[1]+t*n[5]+n[13])*100)/100}function R(){for(var e=0,t=this.props,n="matrix3d(",i=1e4;e<16;)n+=r(t[e]*i)/i+(15===e?")":","),e+=1;return n}function L(e){var t=1e4;return e<1e-6&&e>0||e>-.000001&&e<0?r(e*t)/t:e}function k(){var e=this.props;return"matrix("+L(e[0])+","+L(e[1])+","+L(e[4])+","+L(e[5])+","+L(e[12])+","+L(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=d,this.shear=u,this.scale=f,this.setTransform=p,this.translate=h,this.transform=m,this.multiply=g,this.applyToPoint=E,this.applyToX=w,this.applyToY=S,this.applyToZ=T,this.applyToPointArray=x,this.applyToTriplePoints=C,this.applyToPointStringified=D,this.toCSS=R,this.to2dCSS=k,this.clone=b,this.cloneFromProps=_,this.equals=y,this.inversePoints=A,this.inversePoint=I,this.getInverseMatrix=O,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return(_typeof$3="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)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var e={},t={};function n(e,n){t[e]||(t[e]=n)}function r(e,n,r){return new t[e](n,r)}return e.registerModifier=n,e.getModifier=r,e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var o,a,s=[];t<=1?s.push({s:e,e:t}):e>=1?s.push({s:e-1,e:t-1}):(s.push({s:e,e:1}),s.push({s:0,e:t-1}));var l=[],u=s.length;for(o=0;o<u;o+=1)(a=s[o]).e*i<r||a.s*i>r+n||l.push([a.s*i<=r?0:(a.s*i-r)/n,a.e*i>=r+n?1:(a.e*i-r)/n]);return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){if(this._mdf||e){var t=this.o.v%360/360;if(t<0&&(t+=1),(o=this.s.v>1?1+t:this.s.v<0?0+t:this.s.v+t)>(a=this.e.v>1?1+t:this.e.v<0?0+t:this.e.v+t)){var n=o;o=a,a=n}o=1e-4*Math.round(1e4*o),a=1e-4*Math.round(1e4*a),this.sValue=o,this.eValue=a}else o=this.sValue,a=this.eValue;var r=this.shapes.length,i=0;if(a===o)for(l=0;l<r;l+=1)this.shapes[l].localShapeCollection.releaseShapes(),this.shapes[l].shape._mdf=!0,this.shapes[l].shape.paths=this.shapes[l].localShapeCollection,this._mdf&&(this.shapes[l].pathsData.length=0);else if(1===a&&0===o||0===a&&1===o){if(this._mdf)for(l=0;l<r;l+=1)this.shapes[l].pathsData.length=0,this.shapes[l].shape._mdf=!0}else{var o,a,s,l,u,c,d,f,p,h,m,g,v=[];for(l=0;l<r;l+=1)if((h=this.shapes[l]).shape._mdf||this._mdf||e||2===this.m){if(c=(s=h.shape.paths)._length,p=0,!h.shape._mdf&&h.pathsData.length)p=h.totalShapeLength;else{for(u=0,d=this.releasePathsData(h.pathsData);u<c;u+=1)f=bez.getSegmentsLength(s.shapes[u]),d.push(f),p+=f.totalLength;h.totalShapeLength=p,h.pathsData=d}i+=p,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var y=o,b=a,_=0;for(l=r-1;l>=0;l-=1)if((h=this.shapes[l]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&r>1?(g=this.calculateShapeEdges(o,a,h.totalShapeLength,_,i),_+=h.totalShapeLength):g=[[y,b]],c=g.length,u=0;u<c;u+=1){y=g[u][0],b=g[u][1],v.length=0,b<=1?v.push({s:h.totalShapeLength*y,e:h.totalShapeLength*b}):y>=1?v.push({s:h.totalShapeLength*(y-1),e:h.totalShapeLength*(b-1)}):(v.push({s:h.totalShapeLength*y,e:h.totalShapeLength}),v.push({s:0,e:h.totalShapeLength*(b-1)}));var E=this.addShapes(h,v[0]);if(v[0].s!==v[0].e){if(v.length>1){if(h.shape.paths.shapes[h.shape.paths._length-1].c){var w=E.pop();this.addPaths(E,m),E=this.addShapes(h,v[1],w)}else this.addPaths(E,m),E=this.addShapes(h,v[1])}this.addPaths(E,m)}}h.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,i,o,a,s,l,u,c,d=e.pathsData,f=e.shape.paths.shapes,p=e.shape.paths._length,h=0,m=[],g=!0;for(n?(s=n._length,c=n._length):(n=shapePool.newElement(),s=0,c=0),m.push(n),r=0;r<p;r+=1){for(i=1,l=d[r].lengths,n.c=f[r].c,o=f[r].c?l.length:l.length+1;i<o;i+=1)if(h+(a=l[i-1]).addedLength<t.s)h+=a.addedLength,n.c=!1;else if(h>t.e){n.c=!1;break}else t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(f[r].v[i-1],f[r].o[i-1],f[r].i[i],f[r].v[i],n,s,g),g=!1):(u=bez.getNewSegment(f[r].v[i-1],f[r].v[i],f[r].o[i-1],f[r].i[i],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1),h+=a.addedLength,s+=1;if(f[r].c&&l.length){if(a=l[i-1],h<=t.e){var v=l[i-1].addedLength;t.s<=h&&t.e>=h+v?(this.addSegment(f[r].v[i-1],f[r].o[i-1],f[r].i[0],f[r].v[0],n,s,g),g=!1):(u=bez.getNewSegment(f[r].v[i-1],f[r].v[0],f[r].o[i-1],f[r].i[0],(t.s-h)/v,(t.e-h)/v,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1)}else n.c=!1;h+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[c][0],n.v[c][1],"i",c),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),h>t.e)break;r<p-1&&(n=shapePool.newElement(),g=!0,m.push(n),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n,r,i,o,a,s,l=t/100,u=[0,0],c=e._length,d=0;for(d=0;d<c;d+=1)u[0]+=e.v[d][0],u[1]+=e.v[d][1];u[0]/=c,u[1]/=c;var f=shapePool.newElement();for(d=0,f.c=e.c;d<c;d+=1)n=e.v[d][0]+(u[0]-e.v[d][0])*l,r=e.v[d][1]+(u[1]-e.v[d][1])*l,i=e.o[d][0]+-((u[0]-e.o[d][0])*l),o=e.o[d][1]+-((u[1]-e.o[d][1])*l),a=e.i[d][0]+-((u[0]-e.i[d][0])*l),s=e.i[d][1]+-((u[1]-e.i[d][1])*l),f.setTripleAt(n,r,i,o,a,s,d);return f},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var r,i,o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(r[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),i[0]=o.getValueAtTime(o.keyframes[0].t/n,0),i[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(r[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function i(){}function o(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function a(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return a.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:r,autoOrient:i},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=o,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,t,n){return new a(e,t,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return 1e-5>=Math.abs(e)}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var o=Math.sqrt(r)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,n,r){return[-e+3*t-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var o=polynomialCoefficients(e[0],t[0],n[0],r[0]),a=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,n,r,i,o){if(boxIntersect(e,t)){if(n>=o||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r){i.push([e.t,t.t]);return}var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],n+1,r,i,o),intersectsImpl(a[0],s[1],n+1,r,i,o),intersectsImpl(a[1],s[0],n+1,r,i,o),intersectsImpl(a[1],s[1],n+1,r,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[n[0],n[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,i,o,a){var s=n-Math.PI/2,l=n+Math.PI/2,u=t[0]+Math.cos(n)*r*i,c=t[1]-Math.sin(n)*r*i;e.setTripleAt(u,c,u+Math.cos(s)*o,c-Math.sin(s)*o,u+Math.cos(l)*a,c-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=-(.5*Math.PI);return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,n,r,i,o,a){var s=getProjectingAngle(t,n),l=t.v[n%t._length],u=t.v[0===n?t._length-1:n-1],c=t.v[(n+1)%t._length],d=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,f=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(e,t.v[n%t._length],s,a,r,f/((i+1)*2),d/((i+1)*2))}function zigZagSegment(e,t,n,r,i,o){for(var a=0;a<r;a+=1){var s=(a+1)/(r+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(s);setPoint(e,t.point(s),u,o,n,l/((r+1)*2),l/((r+1)*2)),o=-o}return o}function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){n=(l=linearOffset(e.points[0],e.points[1],t))[0],r=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],o=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var n,r,i,o,a,s,l,u=lineIntersection(n,r,i,o);null===u&&(u=r);var c=lineIntersection(a,s,i,o);return null===c&&(c=a),new PolynomialBezier(n,u,c,s)}function joinLines(e,t,n,r,i){var o=t.points[3],a=n.points[0];if(3===r||pointEqual(o,a))return o;if(2===r){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),c=u?pointDistance(u,o):pointDistance(o,a)/2,d=polarOffset(o,s,2*c*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,l,2*c*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var f=pointEqual(o,t.points[2])?t.points[0]:t.points[2],p=pointEqual(a,n.points[1])?n.points[3]:n.points[1],h=lineIntersection(f,o,a,p);return h&&pointDistance(h,o)<i?(e.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],e.length()),h):o}function getIntersection(e,t){var n=e.intersections(t);return(n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length)?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),i=getIntersection(e[e.length-1],t[0]);return(i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1])))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return n=(i=e.split(a[0]))[0],r=i[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],r=i[1],[offsetSegment(n,t),offsetSegment(o,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,o){var a=o?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*a*i,r.p.v[1]*a*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*a*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/s:s,o?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t=!1;if(this._mdf||e){var n,r,i,o,a,s,l,u,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var d={it:this.cloneElements(this._elements),ty:"gr"};d.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,d),this._groups.splice(0,0,d),this._currentCopies+=1}this.elem.reloadShapes(),t=!0}for(i=0,a=0;i<=this._groups.length-1;i+=1){if(s=a<c,this._groups[i]._render=s,this.changeGroupRender(this._groups[i].it,s),!s){var f=this.elemsData[i].it,p=f[f.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=c;var h=this.o.v,m=h%1,g=h>0?Math.floor(h):Math.ceil(h),v=this.pMatrix.props,y=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(h>0){for(;_<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),_+=m)}else if(h<0){for(;_>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),_-=m)}for(i=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,a=this._currentCopies;a;){if(u=(r=(n=this.elemsData[i].it)[n.length-1].transform.mProps.v.props).length,n[n.length-1].transform.mProps._mdf=!0,n[n.length-1].transform.op._mdf=!0,n[n.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==_){for((0!==i&&1===o||i!==this._currentCopies-1&&-1===o)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),l=0;l<u;l+=1)r[l]=this.matrix.props[l];this.matrix.reset()}else for(this.matrix.reset(),l=0;l<u;l+=1)r[l]=this.matrix.props[l];_+=1,a-=1,i+=o}}else for(a=this._currentCopies,i=0,o=1;a;)r=(n=this.elemsData[i].it)[n.length-1].transform.mProps.v.props,n[n.length-1].transform.mProps._mdf=!1,n[n.length-1].transform.op._mdf=!1,a-=1,i+=o;return t},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,m=shapePool.newElement();m.c=e.c;var g=e._length,v=0;for(n=0;n<g;n+=1)r=e.v[n],o=e.o[n],i=e.i[n],r[0]===o[0]&&r[1]===o[1]&&r[0]===i[0]&&r[1]===i[1]?0!==n&&n!==g-1||e.c?(a=0===n?e.v[g-1]:e.v[n-1],l=(s=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(s/2,t)/s:0,u=p=r[0]+(a[0]-r[0])*l,c=h=r[1]-(r[1]-a[1])*l,d=u-(u-r[0])*roundCorner,f=c-(c-r[1])*roundCorner,m.setTripleAt(u,c,d,f,p,h,v),v+=1,a=n===g-1?e.v[0]:e.v[n+1],l=(s=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(s/2,t)/s:0,u=d=r[0]+(a[0]-r[0])*l,c=f=r[1]+(a[1]-r[1])*l,p=u-(u-r[0])*roundCorner,h=c-(c-r[1])*roundCorner,m.setTripleAt(u,c,d,f,p,h,v)):m.setTripleAt(r[0],r[1],o[0],o[1],i[0],i[1],v):m.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],v),v+=1;return m},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),o=lerpPoint(n,r,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,n,r,a);for(var l=0;l<i;l+=1)a=zigZagSegment(o,s,t,n,r,-a),s=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(o,e,l+1,t,n,r,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l,u,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var i,o,a,s=shapePool.newElement();s.c=e.c;var l=e.length();e.c||(l-=1);var u=[];for(i=0;i<l;i+=1)a=PolynomialBezier.shapeSegment(e,i),u.push(offsetSegmentSplit(a,t));if(!e.c)for(i=l-1;i>=0;i-=1)a=PolynomialBezier.shapeSegmentInverted(e,i),u.push(offsetSegmentSplit(a,t));u=pruneIntersections(u);var c=null,d=null;for(i=0;i<u.length;i+=1){var f=u[i];for(d&&(c=joinLines(s,d,f[0],n,r)),d=f[f.length-1],o=0;o<f.length;o+=1)a=f[o],c&&pointEqual(a.points[0],c)?s.setXYAt(a.points[1][0],a.points[1][1],"o",s.length()-1):s.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],s.length()),s.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],s.length()),c=a.points[3]}return u.length&&joinLines(s,d,u[0][0],n,r),s},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.amount.v,u=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l,c,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,i=917631,o=917601,a=917626,s=65039,l=8205,u=127462,c=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}function p(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=f(e)+", "+t,{node:r,w:i,parent:n}}function h(){var t,n,r,i=this.fonts.length,o=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?o-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(n=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,n.offsetWidth!==r?(o-=1,this.fonts[t].loaded=!0):(n=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,n.offsetWidth!==r&&(o-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==o&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(e,t){var n,r=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===r){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),n=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=a}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function g(e,t){if(!e){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=e.list;return}if(!document.body){this.isLoaded=!0,e.list.forEach(function(e){e.helper=m(e),e.cache={}}),this.fonts=e.list;return}var n=e.list,r=n.length,i=r;for(o=0;o<r;o+=1){var o,a,s,l=!0;if(n[o].loaded=!1,n[o].monoCase=p(n[o].fFamily,"monospace"),n[o].sansCase=p(n[o].fFamily,"sans-serif"),n[o].fPath){if("p"===n[o].fOrigin||3===n[o].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[o].fFamily+'"], style[f-origin="3"][f-family="'+n[o].fFamily+'"]')).length>0&&(l=!1),l){var u=createTag("style");u.setAttribute("f-forigin",n[o].fOrigin),u.setAttribute("f-origin",n[o].origin),u.setAttribute("f-family",n[o].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+n[o].fFamily+"; font-style: normal; src: url('"+n[o].fPath+"');}",t.appendChild(u)}}else if("g"===n[o].fOrigin||1===n[o].origin){for(s=0,a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');s<a.length;s+=1)-1!==a[s].href.indexOf(n[o].fPath)&&(l=!1);if(l){var c=createTag("link");c.setAttribute("f-forigin",n[o].fOrigin),c.setAttribute("f-origin",n[o].origin),c.type="text/css",c.rel="stylesheet",c.href=n[o].fPath,document.body.appendChild(c)}}else if("t"===n[o].fOrigin||2===n[o].origin){for(s=0,a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');s<a.length;s+=1)n[o].fPath===a[s].src&&(l=!1);if(l){var d=createTag("link");d.setAttribute("f-forigin",n[o].fOrigin),d.setAttribute("f-origin",n[o].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",n[o].fPath),t.appendChild(d)}}}else n[o].loaded=!0,i-=1;n[o].helper=m(n[o],t),n[o].cache={},this.fonts.push(n[o])}0===i?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function v(e){if(e){this.chars||(this.chars=[]);var t,n,r,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<o;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),o+=1)}}}function y(e,n,r){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,n,r)),t}function b(e,t,n){var r=this.getFontByName(t),i=e;if(!r.cache[i]){var o=r.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");r.cache[i]=(a-s)/100}else r.cache[i]=o.measureText(e)/100}return r.cache[i]*n}function _(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]}function E(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=(n-55296)*1024+r-56320+65536)}return t}function w(e,t){var n=e.toString(16)+t.toString(16);return -1!==d.indexOf(n)}function S(e){return e===l}function T(e){return e===s}function O(e){var t=E(e);return t>=u&&t<=c}function I(e){return O(e.substr(0,2))&&O(e.substr(2,2))}function A(e){return -1!==n.indexOf(e)}function C(e,t){var n=E(e.substr(t,2));if(n!==r)return!1;var s=0;for(t+=2;s<5;){if((n=E(e.substr(t,2)))<o||n>a)return!1;s+=1,t+=2}return E(e.substr(t,2))===i}function x(){this.isLoaded=!0}var D=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};D.isModifier=w,D.isZeroWidthJoiner=S,D.isFlagEmoji=I,D.isRegionalCode=O,D.isCombinedCharacter=A,D.isRegionalFlag=C,D.isVariationSelector=T,D.BLACK_FLAG_CODE_POINT=r;var R={addChars:v,addFonts:g,getCharData:y,getFontByName:_,measureText:b,checkLoadedFonts:h,setIsLoaded:x};return D.prototype=R,D}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r,i=e.ef||[];this.effectElements=[];var o=i.length;for(n=0;n<o;n+=1)r=new GroupEffect(i[n],t),this.effectElements.push(r)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,r,i=this.data.ef.length,o=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,o[n].ty){case 0:r=new SliderEffect(o[n],t,this);break;case 1:r=new AngleEffect(o[n],t,this);break;case 2:r=new ColorEffect(o[n],t,this);break;case 3:r=new PointEffect(o[n],t,this);break;case 4:case 7:r=new CheckboxEffect(o[n],t,this);break;case 10:r=new LayerIndexEffect(o[n],t,this);break;case 11:r=new MaskIndexEffect(o[n],t,this);break;case 5:r=new EffectsManager(o[n],t);break;default:r=new NoValueEffect(o[n])}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),n=e("effects"),r=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)!this.elements[t]&&(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(r[o]&&!0!==r[o]?(n.push(r[o]),r[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,n):e.setHierarchy(n)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift();if("number"==typeof t)n=this.elements[t];else{var n,r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===t){n=this.elements[r];break}}return 0===e.length?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,i=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(i),this.solidPath="";var o=this.masksProperties,a=0,s=[],l=createElementID(),u="clipPath",c="clip-path";for(d=0;d<i;d+=1)if(("a"!==o[d].mode&&"n"!==o[d].mode||o[d].inv||100!==o[d].o.k||o[d].o.x)&&(u="mask",c="mask"),("s"===o[d].mode||"i"===o[d].mode)&&0===a?((m=createNS("rect")).setAttribute("fill","#ffffff"),m.setAttribute("width",this.element.comp.data.w||0),m.setAttribute("height",this.element.comp.data.h||0),s.push(m)):m=null,f=createNS("path"),"n"===o[d].mode)this.viewData[d]={op:PropertyFactory.getProp(this.element,o[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[d],3),elem:f,lastPath:""},r.appendChild(f);else{if(a+=1,f.setAttribute("fill","s"===o[d].mode?"#000000":"#ffffff"),f.setAttribute("clip-rule","nonzero"),0!==o[d].x.k?(u="mask",c="mask",y=PropertyFactory.getProp(this.element,o[d].x,0,null,this.element),b=createElementID(),(g=createNS("filter")).setAttribute("id",b),(v=createNS("feMorphology")).setAttribute("operator","erode"),v.setAttribute("in","SourceGraphic"),v.setAttribute("radius","0"),g.appendChild(v),r.appendChild(g),f.setAttribute("stroke","s"===o[d].mode?"#000000":"#ffffff")):(v=null,y=null),this.storedData[d]={elem:f,x:y,expan:v,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===o[d].mode){h=s.length;var d,f,p,h,m,g,v,y,b,_=createNS("g");for(p=0;p<h;p+=1)_.appendChild(s[p]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",l+"_"+a),E.appendChild(f),r.appendChild(E),_.setAttribute("mask","url("+getLocationHref()+"#"+l+"_"+a+")"),s.length=0,s.push(_)}else s.push(f);o[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:f,lastPath:"",op:PropertyFactory.getProp(this.element,o[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[d],3),invRect:m},this.viewData[d].prop.k||this.drawPath(o[d],this.viewData[d].prop.v,this.viewData[d])}for(d=0,this.maskElement=createNS(u),i=s.length;d<i;d+=1)this.maskElement.appendChild(s[d]);a>0&&(this.maskElement.setAttribute("id",l),this.element.maskedElement.setAttribute(c,"url("+getLocationHref()+"#"+l+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t,n,r=[];r.push(this.finalTransform);for(var i=!0,o=this.comp;i;)o.finalTransform?(o.data.hasMask&&r.splice(0,0,o.finalTransform),o=o.comp):i=!1;var a=r.length;for(t=0;t<a;t+=1)n=r[t].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){return"M0,0 "+(" h"+this.globalData.compSize.w+" v"+this.globalData.compSize.h+" h-"+this.globalData.compSize.w+" v-"+this.globalData.compSize.h)+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(r=1,i=t._length;r<i;r+=1)o+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(o+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==o){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),n.elem.setAttribute("d",a)),n.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};function t(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}return e.createFilter=t,e.createAlphaToLuminanceFilter=n,e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(t=0,this.filters=[];t<i;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(n=new registeredEffects$1[l].effect(a,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(r),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(r),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),n=filtersFactory.createFilter(t);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),n.appendChild(u);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),u.appendChild(c),this.globalData.defs.appendChild(n);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(d),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(d),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=0,n=this.shapeModifiers.length;t<n;)if(this.shapeModifiers[t].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e){n[r].pos=t;return}n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n,r,i,o=createElementID(),a=createNS(1===t.t?"linearGradient":"radialGradient");a.setAttribute("id",o),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var s=[];for(r=0,i=4*t.g.p;r<i;r+=4)n=createNS("stop"),a.appendChild(n),s.push(n);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),this.gf=a,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var u=createNS(1===e.t?"linearGradient":"radialGradient");u.setAttribute("id",s),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),c.push(n);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=c,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(a[i][0],a[i][1])+" "+r.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1])+"z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function i(n,r,i){var o,a,s,l,u,c,d,f,p,h,m=r.styles.length,g=r.lvl;for(c=0;c<m;c+=1){if(l=r.sh._mdf||i,r.styles[c].lvl<g){for(f=t.reset(),p=g-r.styles[c].lvl,h=r.transformers.length-1;!l&&p>0;)l=r.transformers[h].mProps._mdf||l,p-=1,h-=1;if(l)for(p=g-r.styles[c].lvl,h=r.transformers.length-1;p>0;)f.multiply(r.transformers[h].mProps.v),p-=1,h-=1}else f=e;if(a=(d=r.sh.paths)._length,l){for(o=0,s="";o<a;o+=1)(u=d.shapes[o])&&u._length&&(s+=buildShapeString(u,u._length,u.c,f));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===n.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function o(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,n){s(e,t,n),l(e,t,n)}function s(e,t,n){var r,i,o,a,s,l=t.gf,u=t.g._hasOpacity,c=t.s.v,d=t.e.v;if(t.o._mdf||n){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||n){var p=1===e.t?"x1":"cx",h="x1"===p?"y1":"cy";l.setAttribute(p,c[0]),l.setAttribute(h,c[1]),u&&!t.g._collapsable&&(t.of.setAttribute(p,c[0]),t.of.setAttribute(h,c[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(i=0,o=r.length;i<o;i+=1)(a=r[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(t.g._omdf||n)){var g=t.g.o;for(i=0,o=(r=t.g._collapsable?t.cst:t.ost).length;i<o;i+=1)a=r[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)),l.setAttribute("r",s),u&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)));var v=Math.atan2(d[1]-c[1],d[0]-c[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,_=Math.cos(v+t.a.v)*b+c[0],E=Math.sin(v+t.a.v)*b+c[1];l.setAttribute("fx",_),l.setAttribute("fy",E),u&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",E))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,o){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(n=0;n<o;n+=1){for(e=0,r=this.stylesList[n],s=!1,a.length=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),("st"===e.ty||"gs"===e.ty)&&(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,o,a){var s,l,u,c,d,f,p=[].concat(o),h=e.length-1,m=[],g=[];for(s=h;s>=0;s-=1){if((f=this.searchProcessedElement(e[s]))?t[s]=n[f-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)f?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(f)for(l=0,u=t[s].it.length;l<u;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,p,a),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(f||(t[s]=this.createTransformElement(e[s],r)),c=t[s].transform,p.push(c)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(f||(t[s]=this.createShapeElement(e[s],p,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(f?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(f?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(s=0,h=m.length;s<h;s+=1)m[s].closed=!0;for(s=0,h=g.length;s<h;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t,n=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(t=0;t<i;t+=1)o=r!==this.keysIndex?this.effectsSequence[t](o,o.t):this.effectsSequence[t](this.currentData,o.t);n!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&n!==r-1&&!(e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,o=e.length,a=!1,s=!1,l="";i<o;)a=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(l=e.substr(i,2),a=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(n=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),i+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,r=[],i=0,o=n.m.g,a=0,s=0,l=0,u=[],c=0,d=0,f=t.getFontByName(e.f),p=0,h=getFontProperties(f);e.fWeight=h.weight,e.fStyle=h.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),v=e.finalText.length,e.finalLineHeight=e.lh;var m=e.tr/1e3*e.finalSize;if(e.sz)for(var g,v,y,b,_,E,w,S,T,O,I=!0,A=e.sz[0],C=e.sz[1];I;){O=this.buildFinalText(e.t),T=0,c=0,v=O.length,m=e.tr/1e3*e.finalSize;var x=-1;for(g=0;g<v;g+=1)S=O[g].charCodeAt(0),y=!1," "===O[g]?x=g:(13===S||3===S)&&(c=0,y=!0,T+=e.finalLineHeight||1.2*e.finalSize),t.chars?(w=t.getCharData(O[g],f.fStyle,f.fFamily),p=y?0:w.w*e.finalSize/100):p=t.measureText(O[g],e.f,e.finalSize),c+p>A&&" "!==O[g]?(-1===x?v+=1:g=x,T+=e.finalLineHeight||1.2*e.finalSize,O.splice(g,x===g?1:0,"\r"),x=-1,c=0):c+=p+m;T+=f.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&C<T?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,v=e.finalText.length,I=!1)}c=-m,p=0;var D=0;for(g=0;g<v;g+=1)if(y=!1,13===(S=(k=e.finalText[g]).charCodeAt(0))||3===S?(D=0,u.push(c),d=c>d?c:d,c=-2*m,b="",y=!0,l+=1):b=k,t.chars?(w=t.getCharData(k,f.fStyle,t.getFontByName(e.f).fFamily),p=y?0:w.w*e.finalSize/100):p=t.measureText(b,e.f,e.finalSize)," "===k?D+=p+m:(c+=p+m+D,D=0),r.push({l:p,an:p,add:a,n:y,anIndexes:[],val:b,line:l,animatorJustifyOffset:0}),2==o){if(a+=p,""===b||" "===b||g===v-1){for((""===b||" "===b)&&(a-=p);s<=g;)r[s].an=a,r[s].ind=i,r[s].extra=p,s+=1;i+=1,a=0}}else if(3==o){if(a+=p,""===b||g===v-1){for(""===b&&(a-=p);s<=g;)r[s].an=a,r[s].ind=i,r[s].extra=p,s+=1;a=0,i+=1}}else r[i].ind=i,r[i].extra=0,i+=1;if(e.l=r,d=c>d?c:d,u.push(c),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=d,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=u;var R=n.a;E=R.length;var L=[];for(_=0;_<E;_+=1){for((M=R[_]).a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),F=0,N=M.s.b,g=0;g<v;g+=1)(P=r[g]).anIndexes[_]=F,(1==N&&""!==P.val||2==N&&""!==P.val&&" "!==P.val||3==N&&(P.n||" "==P.val||g==v-1)||4==N&&(P.n||g==v-1))&&(1===M.s.rn&&L.push(F),F+=1);n.a[_].s.totalChars=F;var k,M,P,N,F,B,U=-1;if(1===M.s.rn)for(g=0;g<v;g+=1)U!=(P=r[g]).anIndexes[_]&&(U=P.anIndexes[_],B=L.splice(Math.floor(Math.random()*L.length),1)[0]),P.anIndexes[_]=B}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=f.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),"e"in t?this.e=PropertyFactory.getProp(e,t.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,o,a,s).get,u=0,c=this.finalS,d=this.finalE,f=this.data.sh;if(2===f)u=l(u=d===c?r>=d?1:0:e(0,t(.5/(d-c)+(r-c)/(d-c),1)));else if(3===f)u=l(u=d===c?r>=d?0:1:1-e(0,t(.5/(d-c)+(r-c)/(d-c),1)));else if(4===f)d===c?u=0:(u=e(0,t(.5/(d-c)+(r-c)/(d-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===f){if(d===c)u=0;else{var p=d-c,h=-p/2+(r=t(e(0,r+.5-c),d-c)),m=p/2;u=Math.sqrt(1-h*h/(m*m))}u=l(u)}else 6===f?u=l(u=d===c?0:(1+Math.cos(Math.PI+2*Math.PI*(r=t(e(0,r+.5-c),d-c))/(d-c)))/2):(r>=n(c)&&(u=r-c<0?e(0,t(t(d,1)-(c-r),1)):e(0,t(d-r,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;u<v?u=0:(u=(u-v)/g)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var o=r;r=i,i=o}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,n):r,rx:o.rx?i(e,o.rx,0,degToRads,n):r,ry:o.ry?i(e,o.ry,0,degToRads,n):r,sk:o.sk?i(e,o.sk,0,degToRads,n):r,sa:o.sa?i(e,o.sa,0,degToRads,n):r,s:o.s?i(e,o.s,1,.01,n):r,a:o.a?i(e,o.a,1,0,n):r,o:o.o?i(e,o.o,0,.01,n):r,p:o.p?i(e,o.p,1,0,n):r,sw:o.sw?i(e,o.sw,0,0,n):r,sc:o.sc?i(e,o.sc,1,0,n):r,fc:o.fc?i(e,o.fc,1,0,n):r,fh:o.fh?i(e,o.fh,0,0,n):r,fs:o.fs?i(e,o.fs,0,.01,n):r,fb:o.fb?i(e,o.fb,0,.01,n):r,t:o.t?i(e,o.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_=this._moreOptions.alignment.v,E=this._animatorsData,w=this._textData,S=this.mHelper,T=this._renderType,O=this.renderedLetters.length,I=e.l;if(this._hasMaskedPath){if(Z=this._pathData.m,!this._pathData.n||this._pathData._mdf){var A,C,x,D,R,L,k,M,P,N,F,B,U,H,j,V,z,Z,G,W=Z.v;for(this._pathData.r.v&&(W=W.reverse()),R={tLength:0,segments:[]},D=W._length-1,V=0,x=0;x<D;x+=1)G=bez.buildBezierData(W.v[x],W.v[x+1],[W.o[x][0]-W.v[x][0],W.o[x][1]-W.v[x][1]],[W.i[x+1][0]-W.v[x+1][0],W.i[x+1][1]-W.v[x+1][1]]),R.tLength+=G.segmentLength,R.segments.push(G),V+=G.segmentLength;x=D,Z.v.c&&(G=bez.buildBezierData(W.v[x],W.v[0],[W.o[x][0]-W.v[x][0],W.o[x][1]-W.v[x][1]],[W.i[0][0]-W.v[0][0],W.i[0][1]-W.v[0][1]]),R.tLength+=G.segmentLength,R.segments.push(G),V+=G.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,L=this._pathData.f.v,F=0,N=1,M=0,P=!0,H=R.segments,L<0&&Z.v.c)for(R.tLength<Math.abs(L)&&(L=-Math.abs(L)%R.tLength),F=H.length-1,N=(U=H[F].points).length-1;L<0;)L+=U[N].partialLength,(N-=1)<0&&(F-=1,N=(U=H[F].points).length-1);B=(U=H[F].points)[N-1],j=(k=U[N]).partialLength}D=I.length,A=0,C=0;var q=1.2*e.finalSize*.714,Y=!0;o=E.length;var $=-1,K=L,X=F,Q=N,J=-1,ee="",et=this.defaultPropsArray;if(2===e.j||1===e.j){var en=0,er=0,ei=2===e.j?-.5:-1,eo=0,ea=!0;for(x=0;x<D;x+=1)if(I[x].n){for(en&&(en+=er);eo<x;)I[eo].animatorJustifyOffset=en,eo+=1;en=0,ea=!0}else{for(i=0;i<o;i+=1)(n=E[i].a).t.propType&&(ea&&2===e.j&&(er+=n.t.v*ei),(s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars)).length?en+=n.t.v*s[0]*ei:en+=n.t.v*s*ei);ea=!1}for(en&&(en+=er);eo<x;)I[eo].animatorJustifyOffset=en,eo+=1}for(x=0;x<D;x+=1){if(S.reset(),d=1,I[x].n)A=0,C+=e.yOffset+(Y?1:0),L=K,Y=!1,this._hasMaskedPath&&(F=X,N=Q,B=(U=H[F].points)[N-1],j=(k=U[N]).partialLength,M=0),ee="",y="",g="",b="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==I[x].line){switch(e.j){case 1:L+=V-e.lineWidths[I[x].line];break;case 2:L+=(V-e.lineWidths[I[x].line])/2}J=I[x].line}$!==I[x].ind&&(I[$]&&(L+=I[$].extra),L+=I[x].an/2,$=I[x].ind),L+=_[0]*I[x].an*.005;var es=0;for(i=0;i<o;i+=1)(n=E[i].a).p.propType&&((s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars)).length?es+=n.p.v[0]*s[0]:es+=n.p.v[0]*s),n.a.propType&&((s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars)).length?es+=n.a.v[0]*s[0]:es+=n.a.v[0]*s);for(P=!0,this._pathData.a.v&&(L=.5*I[0].an+(V-this._pathData.f.v-.5*I[0].an-.5*I[I.length-1].an)*$/(D-1)+this._pathData.f.v);P;)M+j>=L+es||!U?(z=(L+es-M)/k.partialLength,u=B.point[0]+(k.point[0]-B.point[0])*z,c=B.point[1]+(k.point[1]-B.point[1])*z,S.translate(-_[0]*I[x].an*.005,-(.01*(_[1]*q))),P=!1):U&&(M+=k.partialLength,(N+=1)>=U.length&&(N=0,H[F+=1]?U=H[F].points:Z.v.c?(N=0,U=H[F=0].points):(M-=k.partialLength,U=null)),U&&(B=k,j=(k=U[N]).partialLength));l=I[x].an/2-I[x].add,S.translate(-l,0,0)}else l=I[x].an/2-I[x].add,S.translate(-l,0,0),S.translate(-_[0]*I[x].an*.005,-_[1]*q*.01,0);for(i=0;i<o;i+=1)(n=E[i].a).t.propType&&(s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars),(0!==A||0!==e.j)&&(this._hasMaskedPath?s.length?L+=n.t.v*s[0]:L+=n.t.v*s:s.length?A+=n.t.v*s[0]:A+=n.t.v*s));for(e.strokeWidthAnim&&(p=e.sw||0),e.strokeColorAnim&&(f=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(h=[e.fc[0],e.fc[1],e.fc[2]]),i=0;i<o;i+=1)(n=E[i].a).a.propType&&((s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars)).length?S.translate(-n.a.v[0]*s[0],-n.a.v[1]*s[1],n.a.v[2]*s[2]):S.translate(-n.a.v[0]*s,-n.a.v[1]*s,n.a.v[2]*s));for(i=0;i<o;i+=1)(n=E[i].a).s.propType&&((s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars)).length?S.scale(1+(n.s.v[0]-1)*s[0],1+(n.s.v[1]-1)*s[1],1):S.scale(1+(n.s.v[0]-1)*s,1+(n.s.v[1]-1)*s,1));for(i=0;i<o;i+=1){if(n=E[i].a,s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars),n.sk.propType&&(s.length?S.skewFromAxis(-n.sk.v*s[0],n.sa.v*s[1]):S.skewFromAxis(-n.sk.v*s,n.sa.v*s)),n.r.propType&&(s.length?S.rotateZ(-n.r.v*s[2]):S.rotateZ(-n.r.v*s)),n.ry.propType&&(s.length?S.rotateY(n.ry.v*s[1]):S.rotateY(n.ry.v*s)),n.rx.propType&&(s.length?S.rotateX(n.rx.v*s[0]):S.rotateX(n.rx.v*s)),n.o.propType&&(s.length?d+=(n.o.v*s[0]-d)*s[0]:d+=(n.o.v*s-d)*s),e.strokeWidthAnim&&n.sw.propType&&(s.length?p+=n.sw.v*s[0]:p+=n.sw.v*s),e.strokeColorAnim&&n.sc.propType)for(m=0;m<3;m+=1)s.length?f[m]+=(n.sc.v[m]-f[m])*s[0]:f[m]+=(n.sc.v[m]-f[m])*s;if(e.fillColorAnim&&e.fc){if(n.fc.propType)for(m=0;m<3;m+=1)s.length?h[m]+=(n.fc.v[m]-h[m])*s[0]:h[m]+=(n.fc.v[m]-h[m])*s;n.fh.propType&&(h=s.length?addHueToRGB(h,n.fh.v*s[0]):addHueToRGB(h,n.fh.v*s)),n.fs.propType&&(h=s.length?addSaturationToRGB(h,n.fs.v*s[0]):addSaturationToRGB(h,n.fs.v*s)),n.fb.propType&&(h=s.length?addBrightnessToRGB(h,n.fb.v*s[0]):addBrightnessToRGB(h,n.fb.v*s))}}for(i=0;i<o;i+=1)(n=E[i].a).p.propType&&(s=(r=E[i].s).getMult(I[x].anIndexes[i],w.a[i].s.totalChars),this._hasMaskedPath?s.length?S.translate(0,n.p.v[1]*s[0],-n.p.v[2]*s[1]):S.translate(0,n.p.v[1]*s,-n.p.v[2]*s):s.length?S.translate(n.p.v[0]*s[0],n.p.v[1]*s[1],-n.p.v[2]*s[2]):S.translate(n.p.v[0]*s,n.p.v[1]*s,-n.p.v[2]*s));if(e.strokeWidthAnim&&(g=p<0?0:p),e.strokeColorAnim&&(v="rgb("+Math.round(255*f[0])+","+Math.round(255*f[1])+","+Math.round(255*f[2])+")"),e.fillColorAnim&&e.fc&&(y="rgb("+Math.round(255*h[0])+","+Math.round(255*h[1])+","+Math.round(255*h[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,_[1]*q*.01+C,0),this._pathData.p.v){var el=180*Math.atan((k.point[1]-B.point[1])/(k.point[0]-B.point[0]))/Math.PI;k.point[0]<B.point[0]&&(el+=180),S.rotate(-el*Math.PI/180)}S.translate(u,c,0),L-=_[0]*I[x].an*.005,I[x+1]&&$!==I[x+1].ind&&(L+=I[x].an/2+.001*e.tr*e.finalSize)}else{switch(S.translate(A,C,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate(I[x].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[x].line]),0,0);break;case 2:S.translate(I[x].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[x].line])/2,0,0)}S.translate(0,-e.ls),S.translate(l,0,0),S.translate(_[0]*I[x].an*.005,_[1]*q*.01,0),A+=I[x].l+.001*e.tr*e.finalSize}"html"===T?ee=S.toCSS():"svg"===T?ee=S.to2dCSS():et=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],b=d}O<=x?(a=new LetterProps(b,g,v,y,ee,et),this.renderedLetters.push(a),O+=1,this.lettersChangedFlag=!0):(a=this.renderedLetters[x],this.lettersChangedFlag=a.update(b,g,v,y,ee,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,r,i=t.length,o="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(o+=buildShapeString(r=t[n].ks.k,r.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)"\r"===e[t]||"\x03"===e[t]?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0),e.fc?this.layerElement.setAttribute("fill",this.buildColor(e.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),e.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(e.sc)),this.layerElement.setAttribute("stroke-width",e.sw)),this.layerElement.setAttribute("font-size",e.finalSize);var t=this.globalData.fontManager.getFontByName(e.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var n=e.fWeight,r=e.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",e.t);var i=e.l||[],o=!!this.globalData.fontManager.chars;g=i.length;var a=this.mHelper,s="",l=this.data.singleShape,u=0,c=0,d=!0,f=.001*e.tr*e.finalSize;if(!l||o||e.sz){var p=this.textSpans.length;for(m=0;m<g;m+=1){if(this.textSpans[m]||(this.textSpans[m]={span:null,childSpan:null,glyph:null}),!o||!l||0===m){if(v=p>m?this.textSpans[m].span:createNS(o?"g":"text"),p<=m){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[m].span=v,o){var h=createNS("g");v.appendChild(h),this.textSpans[m].childSpan=h}this.textSpans[m].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(a.reset(),l&&(i[m].n&&(u=-f,c+=e.yOffset+(d?1:0),d=!1),this.applyTextPropertiesToMatrix(e,a,i[m].line,u,c),u+=(i[m].l||0)+f),o){if(1===(y=this.globalData.fontManager.getCharData(e.finalText[m],t.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily)).t)b=new SVGCompElement(y.data,this.globalData,this);else{var m,g,v,y,b,_=emptyShapeData;y.data&&y.data.shapes&&(_=this.buildShapeData(y.data,e.finalSize)),b=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[m].glyph){var E=this.textSpans[m].glyph;this.textSpans[m].childSpan.removeChild(E.layerElement),E.destroy()}this.textSpans[m].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[m].childSpan.appendChild(b.layerElement),1===y.t&&this.textSpans[m].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}else l&&v.setAttribute("transform","translate("+a.props[12]+","+a.props[13]+")"),v.textContent=i[m].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}l&&v&&v.setAttribute("d",s)}else{var w=this.textContainer,S="start";switch(e.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",f);var T=this.buildTextContents(e.finalText);for(m=0,g=T.length,c=e.ps?e.ps[1]+e.ascent:0;m<g;m+=1)(v=this.textSpans[m].span||createNS("tspan")).textContent=T[m],v.setAttribute("x",0),v.setAttribute("y",c),v.style.display="inherit",w.appendChild(v),this.textSpans[m]||(this.textSpans[m]={span:null,glyph:null}),this.textSpans[m].span=v,c+=e.finalLineHeight;this.layerElement.appendChild(w)}for(;m<this.textSpans.length;)this.textSpans[m].span.style.display="none",m+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(e=0,this.renderedFrame=this.comp.renderedFrame;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n,r,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=0,t=a.length;e<t;e+=1)!a[e].n&&(n=o[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return -1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=t[r].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n,r=e.getBaseElement();if(r){for(var i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t,n=this.tm.v;n===this.data.op&&(n=this.data.op-1),this.renderedFrame=n}var r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&(this.elements[t].prepareFrame(this.renderedFrame-this.layers[t].st),this.elements[t]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var i=this.sequences[r];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var n=0,r=e.transforms.length,i=t;n<r&&!t;){if(e.transforms[n].transform.mProps._mdf){i=!0;break}n+=1}if(i)for(e.finalTransform.reset(),n=r-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,n=null,r=null;function i(){var t=createNS("svg"),n=createNS("filter"),r=createNS("feColorMatrix");return n.setAttribute("id",e),r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),n.appendChild(r),t.appendChild(n),t.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(t.style.display="none"),t}function o(){t||(r=i(),document.body.appendChild(r),(n=(t=createTag("canvas")).getContext("2d")).filter="url(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function a(r){return t||o(),t.width=r.width,t.height=r.height,n.filter="url(#"+e+")",t}return{load:o,get:a}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas}}(),registeredEffects={};function CVEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0;for(t=0,this.filters=[];t<r;t+=1){n=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(n=new registeredEffects[i].effect(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n=this.masksProperties.length;for(t.beginPath(),r=0;r<n;r+=1)if("n"!==this.masksProperties[r].mode){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),a=this.viewData[r].v,i=e.applyToPointArray(a.v[0][0],a.v[0][1],0),t.moveTo(i[0],i[1]);var r,i,o,a,s,l=a._length;for(s=1;s<l;s+=1)o=e.applyToTriplePoints(a.o[s-1],a.i[s],a.v[s]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(a.o[s-1],a.i[0],a.v[0]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o,a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var s=n.length;for(i=0;i<s;i+=1)n[i].closed||(o={transforms:r.addTransformSequence(n[i].transforms),trNodes:[]},this.styledShapes.push(o),n[i].elements.push(o))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):("gf"===e.ty||"gs"===e.ty)&&(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,i){var o,a,s,l,u,c,d=e.length-1,f=[],p=[],h=[].concat(i);for(o=d;o>=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=n[l-1]:e[o]._shouldRender=r,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],h),f.push(t[o].style);else if("gr"===e[o].ty){if(l)for(a=0,s=t[o].it.length;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,r,h)}else"tr"===e[o].ty?(l||(c=this.createTransformElement(e[o]),t[o]=c),h.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?l||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(l?(u=t[o]).closed=!1:((u=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=u,this.shapeModifiers.push(u)),p.push(u)):"rp"===e[o].ty&&(l?(u=t[o]).closed=!0:(u=ShapeModifiers.getModifier(e[o].ty),t[o]=u,u.init(this,e,o,t),this.shapeModifiers.push(u),r=!1),p.push(u));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),d=p.length,o=0;o<d;o+=1)p[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,i,o,a,s,l,u=this.stylesList.length,c=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<u;e+=1)if(!(("st"===(s=(l=this.stylesList[e]).type)||"gs"===s)&&0===l.wi||!l.data._shouldRender||0===l.coOp||0===this.globalData.currentGlobalAlpha)){for(c.save(),o=l.elements,"st"===s||"gs"===s?(c.ctxStrokeStyle("st"===s?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===s?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),n=o.length,t=0;t<n;t+=1){for(("st"===s||"gs"===s)&&(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),i=(a=o[t].trNodes).length,r=0;r<i;r+=1)"m"===a[r].t?d.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?d.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):d.closePath();("st"===s||"gs"===s)&&(c.ctxStroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var i,o,a=t.length-1;for(o=e,i=a;i>=0;i-=1)"tr"===t[i].ty?(o=n[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],o):"st"===t[i].ty?this.renderStroke(t[i],n[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var l=e.transforms.finalTransform;for(i=0;i<s;i+=1){var u=a.shapes[i];if(u&&u.v){for(n=1,r=u._length;n<r;n+=1)1===n&&o.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(u.o[n-1],u.i[n],u.v[n])});1===r&&o.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&r&&(o.push({t:"c",pts:l.applyToTriplePoints(u.o[n-1],u.i[0],u.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r=t.style;if(!r.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var i,o,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)i=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var u=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),c=Math.atan2(l[1]-s[1],l[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var f=u*d,p=Math.cos(c+t.a.v)*f+s[0],h=Math.sin(c+t.a.v)*f+s[1];i=a.createRadialGradient(p,h,0,s[0],s[1],u)}var m=e.g.p,g=t.g.c,v=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*o+1]),i.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+v+")");r.grd=i}r.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e,t,n,r,i,o,a,s,l,u,c,d,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f.l?f.l.length:0);var p=!1;f.fc?(p=!0,this.values.fill=this.buildColor(f.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=p;var h=!1;f.sc&&(h=!0,this.values.stroke=this.buildColor(f.sc),this.values.sWidth=f.sw);var m=this.globalData.fontManager.getFontByName(f.f),g=f.l,v=this.mHelper;this.stroke=h,this.values.fValue=f.finalSize+"px "+this.globalData.fontManager.getFontByName(f.f).fFamily,t=f.finalText.length;var y=this.data.singleShape,b=.001*f.tr*f.finalSize,_=0,E=0,w=!0,S=0;for(e=0;e<t;e+=1){r=(n=this.globalData.fontManager.getCharData(f.finalText[e],m.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily))&&n.data||{},v.reset(),y&&g[e].n&&(_=-b,E+=f.yOffset+(w?1:0),w=!1),l=(a=r.shapes?r.shapes[0].it:[]).length,v.scale(f.finalSize/100,f.finalSize/100),y&&this.applyTextPropertiesToMatrix(f,v,g[e].line,_,E),c=createSizedArray(l-1);var T=0;for(s=0;s<l;s+=1)if("sh"===a[s].ty){for(i=1,o=a[s].ks.k.i.length,u=a[s].ks.k,d=[];i<o;i+=1)1===i&&d.push(v.applyToX(u.v[0][0],u.v[0][1],0),v.applyToY(u.v[0][0],u.v[0][1],0)),d.push(v.applyToX(u.o[i-1][0],u.o[i-1][1],0),v.applyToY(u.o[i-1][0],u.o[i-1][1],0),v.applyToX(u.i[i][0],u.i[i][1],0),v.applyToY(u.i[i][0],u.i[i][1],0),v.applyToX(u.v[i][0],u.v[i][1],0),v.applyToY(u.v[i][0],u.v[i][1],0));d.push(v.applyToX(u.o[i-1][0],u.o[i-1][1],0),v.applyToY(u.o[i-1][0],u.o[i-1][1],0),v.applyToX(u.i[0][0],u.i[0][1],0),v.applyToY(u.i[0][0],u.i[0][1],0),v.applyToX(u.v[0][0],u.v[0][1],0),v.applyToY(u.v[0][0],u.v[0][1],0)),c[T]=d,T+=1}y&&(_+=g[e].l+b),this.textSpans[S]?this.textSpans[S].elem=c:this.textSpans[S]={elem:c},S+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var e,t,n,r,i,o,a,s,l,u=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var d=null,f=null,p=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!c[e].n){if((a=u[e])&&(h.save(),h.ctxTransform(a.p),h.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(h.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,h.ctxFillStyle(this.values.fill)),r=(s=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(o=(l=s[n]).length,this.globalData.canvasContext.moveTo(l[0],l[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(l[i],l[i+1],l[i+2],l[i+3],l[i+4],l[i+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,h.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),a&&a.sc?f!==a.sc&&(f=a.sc,h.ctxStrokeStyle(a.sc)):f!==this.values.stroke&&(f=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),r=(s=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(o=(l=s[n]).length,this.globalData.canvasContext.moveTo(l[0],l[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(l[i],l[i+1],l[i+2],l[i+3],l[i+4],l[i+5]);this.globalData.canvasContext.closePath(),h.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e,t,n=createTag("canvas");n.width=this.assetData.w,n.height=this.assetData.h;var r=n.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?e=(t=o)*s:t=(e=i)/s,r.drawImage(this.img,(i-e)/2,(o-t)/2,e,t,0,0,this.assetData.w,this.assetData.h),this.img=n}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])&&this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,r){this.canvasContext.fillRect(e,t,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){if(this.reset(),e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var n,r,i,o,a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",u=l.substr(0,4),c=l.substr(4);i=n/r,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),"xMid"===u&&(o<i&&"meet"===s||o>i&&"slice"===s)?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===u&&(o<i&&"meet"===s||o>i&&"slice"===s)?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,"YMid"===c&&(o>i&&"meet"===s||o<i&&"slice"===s)?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(o>i&&"meet"===s||o<i&&"slice"===s)?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,n=this.stack[this.cArrPos],r=n.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=r[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t,n=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos];for(t=0;t<16;t+=1)r.transform[t]=n[t];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=r.opacity,i.fillStyle=r.fillStyle,i.strokeStyle=r.strokeStyle,i.lineWidth=r.lineWidth,i.lineCap=r.lineCap,i.lineJoin=r.lineJoin,i.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,i,o,a,s=e.sh.v,l=e.transformers,u=s._length;if(!(u<=1)){for(n=0;n<u-1;n+=1)r=this.getTransformedPoint(l,s.v[n]),i=this.getTransformedPoint(l,s.o[n]),o=this.getTransformedPoint(l,s.i[n+1]),a=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(r,i,o,a,t);s.c&&(r=this.getTransformedPoint(l,s.v[n]),i=this.getTransformedPoint(l,s.o[n]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,i){this.getBoundsOfCurve(e,t,n,r);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var i,o,a,s,l,u,c,d=[[e[0],r[0]],[e[1],r[1]]],f=0;f<2;++f)o=6*e[f]-12*t[f]+6*n[f],i=-3*e[f]+9*t[f]-9*n[f]+3*r[f],a=3*t[f]-3*e[f],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&d[f].push(this.calculateF(s,e,t,n,r,f)):(l=o*o-4*a*i)>=0&&((u=(-o+bmSqrt(l))/(2*i))>0&&u<1&&d[f].push(this.calculateF(u,e,t,n,r,f)),(c=(-o-bmSqrt(l))/(2*i))>0&&c<1&&d[f].push(this.calculateF(c,e,t,n,r,f))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*r[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var i=e.keyframes[r].s;i>n&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,!this.currentBoxContains(e)){var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars){if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",r.fClass)this.innerElem.className=r.fClass;else{t.fontFamily=r.fFamily;var i=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=i}}var a=e.l;d=a.length;var s=this.mHelper,l="",u=0;for(c=0;c<d;c+=1){if(this.globalData.fontManager.chars?(this.textPaths[u]?f=this.textPaths[u]:((f=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),f.setAttribute("stroke-linejoin",lineJoinEnum[2]),f.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[u]?h=(p=this.textSpans[u]).children[0]:((p=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(f),styleDiv(p)))):this.isMasked?f=this.textPaths[u]?this.textPaths[u]:createNS("text"):this.textSpans[u]?(p=this.textSpans[u],f=this.textPaths[u]):(styleDiv(p=createTag("span")),styleDiv(f=createTag("span")),p.appendChild(f)),this.globalData.fontManager.chars){var c,d,f,p,h,m,g,v=this.globalData.fontManager.getCharData(e.finalText[c],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,s.reset(),g&&g.shapes&&g.shapes.length&&(m=g.shapes[0].it,s.scale(e.finalSize/100,e.finalSize/100),l=this.createPathShape(s,m),f.setAttribute("d",l)),this.isMasked)this.innerElem.appendChild(f);else{if(this.innerElem.appendChild(p),g&&g.shapes){document.body.appendChild(h);var y=h.getBBox();h.setAttribute("width",y.width+2),h.setAttribute("height",y.height+2),h.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=h.style,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,a[c].yOffset=y.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);p.appendChild(h)}}else if(f.textContent=a[c].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(f);else{this.innerElem.appendChild(p);var E=f.style,w="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=w,E.webkitTransform=w}this.isMasked?this.textSpans[u]=f:this.textSpans[u]=p,this.textSpans[u].style.display="block",this.textPaths[u]=f,u+=1}for(;u<this.textSpans.length;)this.textSpans[u].style.display="none",u+=1},HTextElement.prototype.renderInnerContent=function(){if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var e,t,n,r,i,o,a="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=a,e.webkitTransform=a}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var s=0,l=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;for(t=0,n=u.length;t<n;t+=1)u[t].n?s+=1:(i=this.textSpans[t],o=this.textPaths[t],r=l[s],s+=1,r._mdf.m&&(this.isMasked?i.setAttribute("transform",r.m):(i.style.webkitTransform=r.m,i.style.transform=r.m)),i.style.opacity=r.o,r.sw&&r._mdf.sw&&o.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&o.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(o.setAttribute("fill",r.fc),o.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height));var d=1;if(this.currentBBox.w!==c.width+2*d||this.currentBBox.h!==c.height+2*d||this.currentBBox.x!==c.x-d||this.currentBBox.y!==c.y-d){this.currentBBox.w=c.width+2*d,this.currentBBox.h=c.height+2*d,this.currentBBox.x=c.x-d,this.currentBBox.y=c.y-d,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=o,n.webkitPerspective=o,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame;if(this.hierarchy)for(n=0,r=this.hierarchy.length;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=r=this.hierarchy.length-1;n>=0;n-=1){var t=this.hierarchy[n].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n,r,i,o=Math.sqrt(Math.pow((i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]])[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),u=Math.atan2(a[0],-a[2]);this.mat.rotateY(u).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){for(n=0,r=this.comp.threeDElements.length;n<r;n+=1)if("3d"===(d=this.comp.threeDElements[n]).type){if(c){var d,f,p,h=this.mat.toCSS();(p=d.container.style).transform=h,p.webkitTransform=h}this.pe._mdf&&((f=d.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,i):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=o.style).transform=s,r.webkitTransform=s}i.appendChild(o);var l={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?"3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")):"2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e);for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var i,o=this.threeDElements[n].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[n].container.insertBefore(e,i):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){return(_typeof$2="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 seedRandom(e,t){var n=this,r=256,i=6,o=52,a="random",s=t.pow(r,i),l=t.pow(2,o),u=2*l,c=r-1;function d(n,o,c){var d=[],y=m(h((o=!0===o?{entropy:!0}:o||{}).entropy?[n,v(e)]:null===n?g():n,3),d),b=new f(d),_=function(){for(var e=b.g(i),t=s,n=0;e<l;)e=(e+n)*r,t*=r,n=b.g(1);for(;e>=u;)e/=2,t/=2,n>>>=1;return(e+n)/t};return _.int32=function(){return 0|b.g(4)},_.quick=function(){return b.g(4)/4294967296},_.double=_,m(v(b.S),e),(o.pass||c||function(e,n,r,i){return(i&&(i.S&&p(i,b),e.state=function(){return p(b,{})}),r)?(t[a]=e,n):e})(_,y,"global"in o?o.global:this==t,o.state)}function f(e){var t,n=e.length,i=this,o=0,a=i.i=i.j=0,s=i.S=[];for(n||(e=[n++]);o<r;)s[o]=o++;for(o=0;o<r;o++)s[o]=s[a=c&a+e[o%n]+(t=s[o])],s[a]=t;i.g=function(e){for(var t,n=0,o=i.i,a=i.j,s=i.S;e--;)t=s[o=c&o+1],n=n*r+s[c&(s[o]=s[a=c&a+t])+(s[a]=t)];return i.i=o,i.j=a,n}}function p(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function h(e,t){var n,r=[],i=_typeof$2(e);if(t&&"object"==i)for(n in e)try{r.push(h(e[n],t-1))}catch(e){}return r.length?r:"string"==i?e:e+"\0"}function m(e,t){for(var n,r=e+"",i=0;i<r.length;)t[c&i]=c&(n^=19*t[c&i])+r.charCodeAt(i++);return v(t)}function g(){try{var t=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(t),v(t)}catch(t){var i=n.navigator,o=i&&i.plugins;return[+new Date,n,o,n.screen,v(e)]}}function v(e){return String.fromCharCode.apply(0,e)}t["seed"+a]=d,m(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return(_typeof$1="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)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||"string"===n||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var n,r,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(r=0,n=createTypedArray("float32",i=e.length);r<i;r+=1)n[r]=e[r]*t;return n}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(r=0,n=createTypedArray("float32",i=t.length);r<i;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(r=0,n=createTypedArray("float32",i=e.length);r<i;r+=1)n[r]=e[r]/t;return n}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(r=0,n=createTypedArray("float32",i=t.length);r<i;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.max(r,i,o),s=Math.min(r,i,o),l=(a+s)/2;if(a===s)t=0,n=0;else{var u=a-s;switch(n=l>.5?u/(2-a-s):u/(a+s),a){case r:t=(i-o)/u+(i<o?6:0);break;case i:t=(o-r)/u+2;break;case o:t=(r-i)/u+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],o=e[1],a=e[2];if(0===o)t=a,r=a,n=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;t=hue2rgb(l,s,i+1/3),n=hue2rgb(l,s,i),r=hue2rgb(l,s,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if((void 0===r||void 0===i)&&(r=t,i=n,t=0,n=1),n<t){var o,a=n;n=t,t=a}if(e<=t)return r;if(e>=n)return i;var s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var l=r.length,u=createTypedArray("float32",l);for(o=0;o<l;o+=1)u[o]=r[o]+(i[o]-r[o])*s;return u}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),o=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+o*(t[n]-e[n]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var i,o,a,s=e.length,l=shapePool.newElement();l.setPathData(!!r,s);var u=[0,0];for(i=0;i<s;i+=1)o=t&&t[i]?t[i]:u,a=n&&n[i]?n[i]:u,l.setTripleAt(e[i][0],e[i][1],a[0]+e[i][0],a[1]+e[i][1],o[0]+e[i][0],o[1]+e[i][1],i,!0);return l}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var transform,$bm_transform,content,effect,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,time,velocity,value,text,textIndex,textTotal,selectorValue,parent,val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=(function(e,t){var n,r,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i);e=5;var a=Math.floor(time*e);for(n=0,r=0;n<a;){for(r=0;r<i;r+=1)o[r]+=-t+2*t*BMMath.random();n+=1}var s=time*e,l=s-Math.floor(s),u=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)u[r]=this.pv[r]+o[r]+(-t+2*t*BMMath.random())*l;return u}return this.pv+o[0]+(-t+2*t*BMMath.random())*l}).bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loop_in=loopIn=thisProperty.loopIn.bind(thisProperty)),thisProperty.loopOut&&(loop_out=loopOut=thisProperty.loopOut.bind(thisProperty)),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,o){void 0===i?(i=n,o=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,u=createTypedArray("float32",l);for(s=0;s<l;s+=1)u[s]=(o[s]-i[s])*a+i[s];return u}return(o-i)*a+i}function nearestKey(e){var t,n,r,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0]){if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}}else n=0,r=0;var o={};return o.index=n,o.time=r/elem.comp.globalData.frameRate,o}function key(e){if(!data.k.length||"number"==typeof data.k[0])throw Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var t,n,r,i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=0,r=i.length;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return(value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType)?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),!transform&&($bm_transform=transform=elem.layerInterface("ADBE Transform Group"),transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!!(elem.hierarchy&&elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};function t(e){var t=0,n=[];function r(){t+=1}function i(){0==(t-=1)&&a()}function o(e){-1===n.indexOf(e)&&n.push(e)}function a(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=r,e.renderer.globalData.popExpression=i,e.renderer.globalData.registerExpressionProperty=o}return e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),i=t.viewData.length;for(n=0;n<i;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<i;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var o="unidimensional"===n?new Number(i):Object.assign({},i);return o.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===n?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.pv*r,o=new Number(i);return o.value=i,n(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*r,o.value!==i&&((o=new Number(i)).value=i,n(o,t,"unidimensional")),o}}function i(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,n(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*r,o[t]=a[t];return o}}function o(){return e}return function(e){return e?"unidimensional"===e.propType?r(e):i(e):o}}(),TransformExpressionInterface=function(){return function(e){var t,n,r,i;function o(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return o.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return o.rotation;case"ADBE Rotate X":return o.xRotation;case"ADBE Rotate Y":return o.yRotation;case"position":case"Position":case"ADBE Position":case 2:return o.position;case"ADBE Position_0":return o.xPosition;case"ADBE Position_1":return o.yPosition;case"ADBE Position_2":return o.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return o.anchorPoint;case"opacity":case"Opacity":case 11:return o.opacity;default:return null}}return Object.defineProperty(o,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(o,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(o,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(o,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(o,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?i=ExpressionPropertyInterface(e.p):(t=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(r=ExpressionPropertyInterface(e.pz))),Object.defineProperty(o,"position",{get:function(){return e.p?i():[t(),n(),r?r():0]}}),Object.defineProperty(o,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(o,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(o,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(o,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(o,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(o,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(o,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(o,"orientation",{get:ExpressionPropertyInterface(e.or)}),o}}(),LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function i(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(u){function c(e){f.mask=new MaskManagerInterface(e,u)}function d(e){f.effect=e}function f(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return f.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return f.effect;case"ADBE Text Properties":return f.textInterface;default:return null}}f.getMatrix=e,f.invertPoint=a,f.applyPoint=o,f.toWorld=n,f.toWorldVec=t,f.fromWorld=i,f.fromWorldVec=r,f.toComp=n,f.fromComp=s,f.sampleImage=l,f.sourceRectAtTime=u.sourceRectAtTime.bind(u),f._elem=u;var p,h=getDescriptor(p=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(f,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:h,anchor_point:h,transform:{get:function(){return p}},active:{get:function(){return u.isInRange}}}),f.startTime=u.data.st,f.index=u.data.ind,f.source=u.data.refId,f.height=0===u.data.ty?u.data.h:100,f.width=0===u.data.ty?u.data.w:100,f.inPoint=u.data.ip/u.comp.globalData.frameRate,f.outPoint=u.data.op/u.comp.globalData.frameRate,f._name=u.data.nm,f.registerMaskInterface=c,f.registerEffectsInterface=d,f}}(),propertyGroupFactory=function(){return function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}}}(),PropertyInterface=function(){return function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}}}(),EffectsExpressionInterface=function(){function e(n,r,i,o){function a(e){for(var t=n.ef,r=0,i=t.length;r<i;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix){if(5===t[r].ty)return u[r];return u[r]()}r+=1}throw Error()}var s,l=propertyGroupFactory(a,i),u=[],c=n.ef.length;for(s=0;s<c;s+=1)5===n.ef[s].ty?u.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,o)):u.push(t(r.effectElements[s],n.ef[s].ty,o,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(a,"color",{get:function(){return u[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),a.enabled=0!==n.en,a.active=a.enabled,a}function t(e,t,n,r){var i=ExpressionPropertyInterface(e.p);function o(){return 10===t?n.comp.compInterface(e.p.v):i()}return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),o}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(r=0;r<a;r+=1)i.push(e(o[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],l=function(e){for(r=0,a=s.length;r<a;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return i[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(){return function(e,t,n){var r=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),i}}(),ShapeExpressionInterface=function(){function e(e,t,l){var h,m=[],g=e?e.length:0;for(h=0;h<g;h+=1)"gr"===e[h].ty?m.push(n(e[h],t[h],l)):"fl"===e[h].ty?m.push(r(e[h],t[h],l)):"st"===e[h].ty?m.push(a(e[h],t[h],l)):"tm"===e[h].ty?m.push(s(e[h],t[h],l)):"tr"===e[h].ty||("el"===e[h].ty?m.push(u(e[h],t[h],l)):"sr"===e[h].ty?m.push(c(e[h],t[h],l)):"sh"===e[h].ty?m.push(ShapePathInterface(e[h],t[h],l)):"rc"===e[h].ty?m.push(d(e[h],t[h],l)):"rd"===e[h].ty?m.push(f(e[h],t[h],l)):"rp"===e[h].ty?m.push(p(e[h],t[h],l)):"gf"===e[h].ty?m.push(i(e[h],t[h],l)):m.push(o(e[h],t[h])));return m}function t(t,n,r){var i,o=function(e){for(var t=0,n=i.length;t<n;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};o.propertyGroup=propertyGroupFactory(o,r),i=e(t.it,n.it,o.propertyGroup),o.numProperties=i.length;var a=l(t.it[t.it.length-1],n.it[n.it.length-1],o.propertyGroup);return o.transform=a,o.propertyIndex=t.cix,o._name=t.nm,o}function n(e,n,r){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,r);var o=t(e,n,i.propertyGroup),a=l(e.it[e.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=o,i.transform=a,Object.defineProperty(i,"_name",{get:function(){return e.nm}}),i.numProperties=e.np,i.propertyIndex=e.ix,i.nm=e.nm,i.mn=e.mn,i}function r(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function o(){return function(){return null}}function a(e,t,n){var r,i=propertyGroupFactory(u,n),o=propertyGroupFactory(l,i);function a(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,l={};for(r=0;r<s;r+=1)a(r),t.d.dataProps[r].p.setGroupProperty(o);function u(e){return"Color"===e||"color"===e?u.color:"Opacity"===e||"opacity"===e?u.opacity:"Stroke Width"===e||"stroke width"===e?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),u}function s(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function l(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var i=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function u(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:e.ir&&(e.ir.ix===t||"ADBE Vector Star Inner Radius"===t)?r.innerRadius:e.is&&e.is.ix===t?r.innerRoundness:null}var i=propertyGroupFactory(r,n),o="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function d(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var i=propertyGroupFactory(r,n),o="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function f(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var i=propertyGroupFactory(r,n),o=t;return r.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function p(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var i=propertyGroupFactory(r,n),o=t;return r.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var i;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:i[e-1];for(var t=0,n=i.length;t<n;){if(i[t]._name===e)return i[t];t+=1}return null}function a(){return r}return o.propertyGroup=propertyGroupFactory(o,a),i=e(t,n,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(){return function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n}}();function _typeof(e){return(_typeof="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)}var FootageInterface=function(){var e=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return(t=e,n=n[e],"object"===_typeof(n))?r:n;var i=e.indexOf(t);return -1!==i?(n=n[parseInt(e.substr(i+t.length),10)],"object"===_typeof(n))?r:n:""}return function(){return t="",n=e.getFootageData(),r}},t=function(t){function n(e){return"Outline"===e?n.outlineInterface():null}return n._name="Outline",n.outlineInterface=e(t),n};return function(e){function n(e){return"Data"===e?n.dataInterface:null}return n._name="Data",n.dataInterface=t(e),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){return{searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t,n=-.01,r=this.getValueAtTime(e),i=this.getValueAtTime(e+n),o=0;if(r.length){for(t=0;t<r.length;t+=1)o+=Math.pow(i[t]-r[t],2);o=100*Math.sqrt(o)}else o=0;return o},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+r);if(i.length)for(n=0,t=createTypedArray("float32",i.length);n<i.length;n+=1)t[n]=(o[n]-i[n])/r;else t=(o-i)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}}}();function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,i,o,a,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[u.length-1].t;if(l<=c)return this.pv;if(n?(r=t?Math.abs(c-this.elem.comp.globalData.frameRate*t):Math.max(0,c-this.elem.data.ip),i=c-r):((!t||t>u.length-1)&&(t=u.length-1),r=c-(i=u[u.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!=0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else if("offset"===e){var d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),h=Math.floor((l-i)/r);if(this.pv.length){for(o=0,a=(s=Array(d.length)).length;o<a;o+=1)s[o]=(f[o]-d[o])*h+p[o];return s}return(f-d)*h+p}else if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=0,a=(s=Array(m.length)).length;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-g)}return this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,i,o,a,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[0].t;if(l>=c)return this.pv;if(n?(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c),i=c+r):((!t||t>u.length-1)&&(t=u.length-1),r=(i=u[t].t)-c),"pingpong"===e){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else if("offset"===e){var d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),h=Math.floor((c-l)/r)+1;if(this.pv.length){for(o=0,a=(s=Array(d.length)).length;o<a;o+=1)s[o]=p[o]-(f[o]-d[o])*h;return s}return p-(f-d)*h}else if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=0,a=(s=Array(m.length)).length;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*(c-l)/.001;return s}return m+(m-g)*(c-l)/.001}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k||(e=.5*(e||.4),(t=Math.floor(t||5))<=1))return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=i+e,s=t>1?(a-o)/(t-1):1,l=0,u=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;l<t;){if(r=this.getValueAtTime(o+l*s),this.pv.length)for(u=0;u<this.pv.length;u+=1)n[u]+=r[u];else n+=r;l+=1}if(this.pv.length)for(u=0;u<this.pv.length;u+=1)n[u]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),u=this.rx.getValueAtTime(e),c=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,f*this.py.mult,-p*this.pz.mult)}else t.translate(d*this.px.mult,f*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var a=o(e,t,n);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;function s(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}PropertyFactory.getProp=function(r,i,o,s,l){var u=a(r,i,o,s,l);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=n,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===i.a?i.k.length:0,u.propertyIndex=i.ix;var c=0;return 0!==o&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,i,u),u.k&&l.addDynamicProperty(u),u};var l=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var i=r._length,o=r[e],a=r.v,s=createSizedArray(i);for(n=0;n<i;n+=1)"i"===e||"o"===e?s[n]=[o[n][0]-a[n][0],o[n][1]-a[n][1]]:s[n]=[o[n][0],o[n][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,l=o.length,u=0;s<l;){if(u+o[s].addedLength>a){var c=s,d=r.c&&s===l-1?0:s+1,f=(a-u)/o[s].addedLength;n=bez.getPointInSegment(r.v[c],r.v[d],r.o[c],r.i[d],f,o[s]);break}u+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-r[0],a=i[1]-r[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===n?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],l),extendPrototype([c],u),u.prototype.getValueAtTime=s,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,i){var o=d(e,t,n,r,i);return o.propertyIndex=t.ix,o.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,o):4===n&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,i=createNS("feMerge");for(i.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),i.appendChild(n),i.appendChild(n);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",r+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,n,r,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(c);var d=this.createMergeNode(r,[r+"_drop_shadow_4",i]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=(n=this.filterManager.effectElements[0].p.v-1)+1,(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t=this.paths.length;for(n=0;n<t;n+=1)if(-1!==this.paths[n].m&&(r=this.elem.maskManager.viewData[this.paths[n].m],i=this.paths[n].p,(e||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var n,r,i,o,a,s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),u=i.getTotalLength();o="0 0 0 "+u*s+" ";var c=Math.floor(u*(l-s)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(a=0;a<c;a+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*u+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],o=r[1]+" "+n[1]+" "+t[1],a=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var o,a,s=0,l=256,u=Math.min(e,t),c=Math.max(e,t),d=Array.call(null,{length:256}),f=0,p=i-r,h=t-e;s<=256;)a=(o=s/256)<=u?h<0?i:r:o>=c?h<0?r:i:r+p*Math.pow((o-e)/h,1/n),d[f]=a,f+=1,s+=256/(l-1);return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),o=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n,r=e.layerElement.parentNode;if(r){for(var i=r.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(t,n),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+n),r.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,r=this.filterManager.effectElements[1].p.v,i=3==r?0:n,o=2==r?0:n;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+o);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,r=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,l=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})}(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports,lottie=getDefaultExportFromCjs(lottieExports),react=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},equal=getDefaultExportFromCjs(react),rfdc_1=rfdc;function copyBuffer(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function rfdc(e){if((e=e||{}).circles)return rfdcCircles(e);return e.proto?r:n;function t(e,t){for(var n=Object.keys(e),r=Array(n.length),i=0;i<n.length;i++){var o=n[i],a=e[o];"object"!=typeof a||null===a?r[o]=a:a instanceof Date?r[o]=new Date(a):ArrayBuffer.isView(a)?r[o]=copyBuffer(a):r[o]=t(a)}return r}function n(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var r={};for(var i in e)if(!1!==Object.hasOwnProperty.call(e,i)){var o=e[i];"object"!=typeof o||null===o?r[i]=o:o instanceof Date?r[i]=new Date(o):o instanceof Map?r[i]=new Map(t(Array.from(o),n)):o instanceof Set?r[i]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[i]=copyBuffer(o):r[i]=n(o)}return r}function r(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,r);if(e instanceof Map)return new Map(t(Array.from(e),r));if(e instanceof Set)return new Set(t(Array.from(e),r));var n={};for(var i in e){var o=e[i];"object"!=typeof o||null===o?n[i]=o:o instanceof Date?n[i]=new Date(o):o instanceof Map?n[i]=new Map(t(Array.from(o),r)):o instanceof Set?n[i]=new Set(t(Array.from(o),r)):ArrayBuffer.isView(o)?n[i]=copyBuffer(o):n[i]=r(o)}return n}}function rfdcCircles(e){var t=[],n=[];return e.proto?o:i;function r(e,r){for(var i=Object.keys(e),o=Array(i.length),a=0;a<i.length;a++){var s=i[a],l=e[s];if("object"!=typeof l||null===l)o[s]=l;else if(l instanceof Date)o[s]=new Date(l);else if(ArrayBuffer.isView(l))o[s]=copyBuffer(l);else{var u=t.indexOf(l);-1!==u?o[s]=n[u]:o[s]=r(l)}}return o}function i(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return r(e,i);if(e instanceof Map)return new Map(r(Array.from(e),i));if(e instanceof Set)return new Set(r(Array.from(e),i));var o={};for(var a in t.push(e),n.push(o),e)if(!1!==Object.hasOwnProperty.call(e,a)){var s=e[a];if("object"!=typeof s||null===s)o[a]=s;else if(s instanceof Date)o[a]=new Date(s);else if(s instanceof Map)o[a]=new Map(r(Array.from(s),i));else if(s instanceof Set)o[a]=new Set(r(Array.from(s),i));else if(ArrayBuffer.isView(s))o[a]=copyBuffer(s);else{var l=t.indexOf(s);-1!==l?o[a]=n[l]:o[a]=i(s)}}return t.pop(),n.pop(),o}function o(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return r(e,o);if(e instanceof Map)return new Map(r(Array.from(e),o));if(e instanceof Set)return new Set(r(Array.from(e),o));var i={};for(var a in t.push(e),n.push(i),e){var s=e[a];if("object"!=typeof s||null===s)i[a]=s;else if(s instanceof Date)i[a]=new Date(s);else if(s instanceof Map)i[a]=new Map(r(Array.from(s),o));else if(s instanceof Set)i[a]=new Set(r(Array.from(s),o));else if(ArrayBuffer.isView(s))i[a]=copyBuffer(s);else{var l=t.indexOf(s);-1!==l?i[a]=n[l]:i[a]=o(s)}}return t.pop(),n.pop(),i}}var _default=rfdc_1(),clone=getDefaultExportFromCjs(_default);function _extends$m(){return(_extends$m=Object.assign?Object.assign.bind():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}).apply(this,arguments)}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var emptyObject={},noOp=function(){},makeLottiePlayer=function(e){var t=e.loadAnimation;return(0,react__WEBPACK_IMPORTED_MODULE_2__.memo)((0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(e,n){var r,i,o=e.play,a=void 0===o?null:o,s=e.speed,l=void 0===s?1:s,u=e.direction,c=void 0===u?1:u,d=e.segments,f=void 0===d?null:d,p=e.goTo,h=void 0===p?null:p,m=e.useSubframes,g=void 0===m||m,v=e.renderer,y=void 0===v?"svg":v,b=e.loop,_=void 0===b||b,E=e.rendererSettings,w=void 0===E?emptyObject:E,S=e.audioFactory,T=e.onLoad,O=void 0===T?noOp:T,I=e.onComplete,A=void 0===I?noOp:I,C=e.onLoopComplete,x=void 0===C?noOp:C,D=e.onEnterFrame,R=void 0===D?noOp:D,L=e.onSegmentStart,k=void 0===L?noOp:L,M=_objectWithoutPropertiesLoose$1(e,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),P=M;if("animationData"in M){var N=M;r=N.animationData,P=_objectWithoutPropertiesLoose$1(N,["animationData"])}if("path"in M){var F=M;i=F.path,P=_objectWithoutPropertiesLoose$1(F,["path"])}var B=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),U=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(),H=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(){if(null==U.current)throw Error("Lottie ref is not set");return U.current},[]),j=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),V=j[0],z=j[1],Z=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(f),G=Z[0],W=Z[1];(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){equal(G,f)||W(f)},[f,G]);var q=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(w),Y=q[0],$=q[1];(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){equal(Y,w)||$(w)},[w,Y]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){return function(){return H().removeEventListener("complete",A)}},[H,A]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){return function(){return H().removeEventListener("loopComplete",x)}},[H,x]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){return function(){return H().removeEventListener("enterFrame",R)}},[H,R]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){return function(){return H().removeEventListener("segmentStart",k)}},[H,k]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){return function(){return H().removeEventListener("DOMLoaded",O)}},[H,O]);var K=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){U.current=e,"function"==typeof n?n(e):null!=n&&(n.current=e)},[n]);(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){function e(){return null==r||"object"!=typeof r?r:"default"in r&&"object"==typeof r.default?clone(r.default):clone(r)}if(null==B.current)throw Error("animElementRef is not set");K(t(_extends$m({animationData:e(),path:i,container:B.current,renderer:y,loop:!1,autoplay:!1,rendererSettings:Y},S?{audioFactory:S}:{})));var n=function(){return z(!0)};return H().addEventListener("DOMLoaded",n),function(){H().removeEventListener("DOMLoaded",n),z(!1),H().destroy(),K(void 0)}},[_,y,Y,r,i,S,K,H]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){H().addEventListener("DOMLoaded",O)},[H,O]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){H().addEventListener("complete",A)},[H,A]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){H().addEventListener("loopComplete",x)},[H,x]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){H().addEventListener("enterFrame",R)},[H,R]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){H().addEventListener("segmentStart",k)},[H,k]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){V&&(H().loop=_)},[V,_,H]);var X=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1);return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){if(V){if(!0===a){var e=!0;G?(H().playSegments(G,e),X.current=!0,-1===c&&t("number"==typeof G[1]?G[1]:G[1][1])):(X.current&&H().resetSegments(e),X.current=!1,-1===c?t(H().getDuration(!0)):H().play())}else!1===a&&H().pause()}function t(e){H().goToAndPlay(e,!0),H().setDirection(c)}},[a,G,V,c,H]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){V&&(Number.isNaN(l)||H().setSpeed(l))},[l,V,H]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){V&&H().setDirection(c)},[c,H,V]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){if(V&&null!=h){var e=!0;a?H().goToAndPlay(h,e):H().goToAndStop(h,e)}},[H,h,a,V]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){H().setSubframe&&H().setSubframe(g)},[H,g]),react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",_extends$m({},P,{ref:B}))}))},LottiePlayer=makeLottiePlayer(lottie),v="5.1.4",fr=30,ip=0,op=58,w$2=32,h$1=32,nm="16px 2x",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:3,nm:"Null 1",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[16,16,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:58,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"圖層 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[1],y:[1]},o:{x:[.167],y:[.167]},n:["1_1_0p167_0p167"],t:-1,s:[0],e:[360]},{t:59}],ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[200,200,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-3.866],[3.866,0],[0,3.866],[-3.866,0]],o:[[0,3.866],[-3.866,0],[0,-3.866],[3.866,0]],v:[[7,0],[0,7],[-7,0],[0,-7]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.676],y:[.423]},o:{x:[.343],y:[0]},n:["0p676_0p423_0p343_0"],t:-1,s:[0],e:[.1]},{i:{x:[.128],y:[1]},o:{x:[.315],y:[.033]},n:["0p128_1_0p315_0p033"],t:0,s:[.1],e:[100]},{t:59}],ix:1},e:{a:1,k:[{i:{x:[.356],y:[.966]},o:{x:[.678],y:[0]},n:["0p356_0p966_0p678_0"],t:-1,s:[0],e:[100]},{i:{x:[.658],y:[1]},o:{x:[.325],y:[.029]},n:["0p658_1_0p325_0p029"],t:58,s:[100],e:[100]},{t:59}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,.435294121504,.380392163992,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2,ix:5},lc:2,lj:1,ml:4,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:4,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:58,st:-1,bm:0},{ddd:0,ind:3,ty:1,nm:"White Solid 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[16,16,0],ix:2},a:{a:0,k:[16,16,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,sw:32,sh:32,sc:"#ffffff",ip:0,op:58,st:0,bm:0}],markers=[],PhotosLoadingLight={v:v,fr:fr,ip:ip,op:op,w:w$2,h:h$1,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers},LoadingAnimation=function(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"loading-animation","data-testid":"loading-animation",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(LottiePlayer,{animationData:PhotosLoadingLight,loop:!0,play:!0})})},LoadingInfo=function(e){var t=e.message;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"loading-info",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(LoadingAnimation,{}),t]})};LoadingInfo.propTypes={message:PropTypes.string},LoadingInfo.defaultProps={message:""};var ButtonColor=Object.freeze({MAIN:"main",GREY:"grey"}),ButtonShape=Object.freeze({RECTANGLE:"rectangle",OVAL:"oval"}),KeyCode=Object.freeze({TAB:"Tab",ENTER:"Enter",SPACE:" ",ESC:"Escape",LEFT:"ArrowLeft",RIGHT:"ArrowRight",DELETE:"Delete",SHIFT:"Shift",HOME:"Home",END:"End"}),ActionResult=Object.freeze({CLOSE:"close",CONFIRM:"confirm"}),WaitingTime=Object.freeze({LONG_PRESS:500,TOOLTIP_DELAY:330}),DatePickerRange=Object.freeze({MAX_YEAR:2100,MIN_YEAR:1901}),ToolTipType=Object.freeze({DEFAULT:"default",WARNING:"warning",WHITE_TIP:"white_tip"}),_listeners=[],_removeTopListener=function(){0!==_listeners.length&&_listeners.at(-1).handlers.forEach(function(e){document.removeEventListener("keydown",e)})},_registerTopListener=function(){0!==_listeners.length&&_listeners.at(-1).handlers.forEach(function(e){document.addEventListener("keydown",e)})},_insertAnonymousHandler=function(e){_listeners.push({handlers:[e]}),document.addEventListener("keydown",e)},_insertNamespaceHandler=function(e,t){var n=_listeners.findIndex(function(e){return e.handlerNamespace===t});-1===n?_listeners.push({handlerNamespace:t,handlers:[e]}):_listeners[n].handlers.push(e)},KeyDownEvent=function(e){var t=e.handlerNamespace,n=e.onKeyDown;return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){return _removeTopListener(),void 0===t?_insertAnonymousHandler(n):_insertNamespaceHandler(n,t),_registerTopListener(),function(){document.removeEventListener("keydown",n);var e=_listeners.findIndex(function(e){return e.handlers.includes(n)});-1!==e&&(_listeners[e].handlers.splice(_listeners[e].handlers.findIndex(function(e){return e===n}),1),0===_listeners[e].handlers.length&&_listeners.splice(e,1)),_registerTopListener()}},[t,n]),null},lib={exports:{}},Modal$2={},ModalPortal={exports:{}},focusManager={},tabbable$1={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;/*!
	 * Adapted from jQuery UI core
	 *
	 * http://jqueryui.com
	 *
	 * Copyright 2014 jQuery Foundation and other contributors
	 * Released under the MIT license.
	 * http://jquery.org/license
	 *
	 * http://api.jqueryui.com/category/ui-core/
	 */var n="none",r="contents",i=/input|select|textarea|button|object|iframe/;function o(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var i=window.getComputedStyle(e),a=i.getPropertyValue("display");return t?a!==r&&o(e,i):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}function l(e,t){var n=e.nodeName.toLowerCase();return(i.test(n)&&!e.disabled||"a"===n&&e.href||t)&&s(e)}function u(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&l(e,!n)}function c(e){return[].slice.call(e.querySelectorAll("*"),0).reduce(function(e,t){return e.concat(t.shadowRoot?c(t.shadowRoot):[t])},[]).filter(u)}e.exports=t.default}(tabbable$1,tabbable$1.exports);var tabbableExports=tabbable$1.exports;Object.defineProperty(focusManager,"__esModule",{value:!0}),focusManager.resetState=resetState$4,focusManager.log=log$4,focusManager.handleBlur=handleBlur,focusManager.handleFocus=handleFocus,focusManager.markForFocusLater=markForFocusLater,focusManager.returnFocus=returnFocus,focusManager.popWithoutFocus=popWithoutFocus,focusManager.setupScopedFocus=setupScopedFocus,focusManager.teardownScopedFocus=teardownScopedFocus;var _tabbable=tabbableExports,_tabbable2=_interopRequireDefault$4(_tabbable);function _interopRequireDefault$4(e){return e&&e.__esModule?e:{default:e}}var focusLaterElements=[],modalElement=null,needToFocus=!1;function resetState$4(){focusLaterElements=[]}function log$4(){}function handleBlur(){needToFocus=!0}function handleFocus(){needToFocus&&(needToFocus=!1,modalElement&&setTimeout(function(){modalElement.contains(document.activeElement)||((0,_tabbable2.default)(modalElement)[0]||modalElement).focus()},0))}function markForFocusLater(){focusLaterElements.push(document.activeElement)}function returnFocus(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==focusLaterElements.length&&(t=focusLaterElements.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function popWithoutFocus(){focusLaterElements.length>0&&focusLaterElements.pop()}function setupScopedFocus(e){modalElement=e,window.addEventListener?(window.addEventListener("blur",handleBlur,!1),document.addEventListener("focus",handleFocus,!0)):(window.attachEvent("onBlur",handleBlur),document.attachEvent("onFocus",handleFocus))}function teardownScopedFocus(){modalElement=null,window.addEventListener?(window.removeEventListener("blur",handleBlur),document.removeEventListener("focus",handleFocus)):(window.detachEvent("onBlur",handleBlur),document.detachEvent("onFocus",handleFocus))}var scopeTab={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(tabbableExports);function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}function o(e,t){var r=(0,n.default)(e);if(!r.length){t.preventDefault();return}var o=void 0,a=t.shiftKey,s=r[0],l=r[r.length-1],u=i();if(e===u){if(!a)return;o=l}if(l!==u||a||(o=s),s===u&&a&&(o=l),o){t.preventDefault(),o.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=r.indexOf(u);if(d>-1&&(d+=a?-1:1),o=r[d],void 0===o){t.preventDefault(),(o=a?l:s).focus();return}t.preventDefault(),o.focus()}}e.exports=t.default}(scopeTab,scopeTab.exports);var scopeTabExports=scopeTab.exports,ariaAppHider$1={},__DEV__=!1,warning=function(){};if(__DEV__){var printWarning=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,function(){return t[i++]});"undefined"!=typeof console&&console.error(o);try{throw Error(o)}catch(e){}};warning=function(e,t,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(void 0===t)throw Error("`warning(condition, format, ...args)` requires a warning message argument");e||printWarning.apply(null,[t].concat(n))}}var warning_1=warning,safeHTMLElement={},exenv={exports:{}};!/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/function(e){!function(){var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n}()}(exenv);var exenvExports=exenv.exports;Object.defineProperty(safeHTMLElement,"__esModule",{value:!0}),safeHTMLElement.canUseDOM=safeHTMLElement.SafeNodeList=safeHTMLElement.SafeHTMLCollection=void 0;var _exenv=exenvExports,_exenv2=_interopRequireDefault$3(_exenv);function _interopRequireDefault$3(e){return e&&e.__esModule?e:{default:e}}var EE=_exenv2.default,SafeHTMLElement=EE.canUseDOM?window.HTMLElement:{};safeHTMLElement.SafeHTMLCollection=EE.canUseDOM?window.HTMLCollection:{},safeHTMLElement.SafeNodeList=EE.canUseDOM?window.NodeList:{},safeHTMLElement.canUseDOM=EE.canUseDOM,safeHTMLElement.default=SafeHTMLElement,Object.defineProperty(ariaAppHider$1,"__esModule",{value:!0}),ariaAppHider$1.resetState=resetState$3,ariaAppHider$1.log=log$3,ariaAppHider$1.assertNodeList=assertNodeList,ariaAppHider$1.setElement=setElement,ariaAppHider$1.validateElement=validateElement,ariaAppHider$1.hide=hide$3,ariaAppHider$1.show=show,ariaAppHider$1.documentNotReadyOrSSRTesting=documentNotReadyOrSSRTesting;var _warning=warning_1,_warning2=_interopRequireDefault$2(_warning),_safeHTMLElement$1=safeHTMLElement;function _interopRequireDefault$2(e){return e&&e.__esModule?e:{default:e}}var globalElement=null;function resetState$3(){globalElement&&(globalElement.removeAttribute?globalElement.removeAttribute("aria-hidden"):null!=globalElement.length?globalElement.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(globalElement).forEach(function(e){return e.removeAttribute("aria-hidden")})),globalElement=null}function log$3(){}function assertNodeList(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function setElement(e){var t=e;if("string"==typeof t&&_safeHTMLElement$1.canUseDOM){var n=document.querySelectorAll(t);assertNodeList(n,t),t=n}return globalElement=t||globalElement}function validateElement(e){var t=e||globalElement;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,_warning2.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}function hide$3(e){var t=!0,n=!1,r=void 0;try{for(var i,o=validateElement(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function show(e){var t=!0,n=!1,r=void 0;try{for(var i,o=validateElement(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function documentNotReadyOrSSRTesting(){globalElement=null}var classList={};Object.defineProperty(classList,"__esModule",{value:!0}),classList.resetState=resetState$2,classList.log=log$2;var htmlClassList={},docBodyClassList={};function removeClass(e,t){e.classList.remove(t)}function resetState$2(){var e=document.getElementsByTagName("html")[0];for(var t in htmlClassList)removeClass(e,htmlClassList[t]);var n=document.body;for(var r in docBodyClassList)removeClass(n,docBodyClassList[r]);htmlClassList={},docBodyClassList={}}function log$2(){}var incrementReference=function(e,t){return e[t]||(e[t]=0),e[t]+=1,t},decrementReference=function(e,t){return e[t]&&(e[t]-=1),t},trackClass=function(e,t,n){n.forEach(function(n){incrementReference(t,n),e.add(n)})},untrackClass=function(e,t,n){n.forEach(function(n){decrementReference(t,n),0===t[n]&&e.remove(n)})};classList.add=function(e,t){return trackClass(e.classList,"html"==e.nodeName.toLowerCase()?htmlClassList:docBodyClassList,t.split(" "))},classList.remove=function(e,t){return untrackClass(e.classList,"html"==e.nodeName.toLowerCase()?htmlClassList:docBodyClassList,t.split(" "))};var portalOpenInstances$1={};function _classCallCheck$1(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}Object.defineProperty(portalOpenInstances$1,"__esModule",{value:!0}),portalOpenInstances$1.log=log$1,portalOpenInstances$1.resetState=resetState$1;var PortalOpenInstances=function e(){var t=this;_classCallCheck$1(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},portalOpenInstances=new PortalOpenInstances;function log$1(){console.log("portalOpenInstances ----------"),console.log(portalOpenInstances.openInstances.length),portalOpenInstances.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function resetState$1(){portalOpenInstances=new PortalOpenInstances}portalOpenInstances$1.default=portalOpenInstances;var bodyTrap$1={};Object.defineProperty(bodyTrap$1,"__esModule",{value:!0}),bodyTrap$1.resetState=resetState,bodyTrap$1.log=log;var _portalOpenInstances=portalOpenInstances$1,_portalOpenInstances2=_interopRequireDefault$1(_portalOpenInstances);function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}var before=void 0,after=void 0,instances=[];function resetState(){for(var e=[before,after],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}before=after=null,instances=[]}function log(){console.log("bodyTrap ----------"),console.log(instances.length);for(var e=[before,after],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")}function focusContent(){0!==instances.length&&instances[instances.length-1].focusContent()}function bodyTrap(e,t){before||after||((before=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),before.style.position="absolute",before.style.opacity="0",before.setAttribute("tabindex","0"),before.addEventListener("focus",focusContent),(after=before.cloneNode()).addEventListener("focus",focusContent)),(instances=t).length>0?(document.body.firstChild!==before&&document.body.insertBefore(before,document.body.firstChild),document.body.lastChild!==after&&document.body.appendChild(after)):(before.parentElement&&before.parentElement.removeChild(before),after.parentElement&&after.parentElement.removeChild(after))}_portalOpenInstances2.default.subscribe(bodyTrap),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=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},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},i=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}}(),o=react__WEBPACK_IMPORTED_MODULE_2__,a=m(propTypesExports),s=h(focusManager),l=m(scopeTabExports),u=h(ariaAppHider$1),c=h(classList),d=safeHTMLElement,f=m(d),p=m(portalOpenInstances$1);function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function y(e,t){if("function"!=typeof t&&null!==t)throw 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)}var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},_=function(e){return"Tab"===e.code||9===e.keyCode},E=function(e){return"Escape"===e.code||27===e.keyCode},w=0,S=function(e){function t(e){g(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,l=a&&a().ownerDocument||document;o&&c.remove(l.body,o),i&&c.remove(l.getElementsByTagName("html")[0],i),r&&w>0&&0==(w-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){_(e)&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&E(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var i=(void 0===t?"undefined":r(t))==="object"?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},o=i.base;return n.state.afterOpen&&(o=o+" "+i.afterOpen),n.state.beforeClose&&(o=o+" "+i.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return y(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName,o=e.parentSelector,a=o&&o().ownerDocument||document;i&&c.add(a.body,i),r&&c.add(a.getElementsByTagName("html")[0],r),n&&(w+=1,u.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=r?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,a);return this.props.overlayElement(u,d)}}]),t}(o.Component);S.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},S.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=S,e.exports=t.default}(ModalPortal,ModalPortal.exports);var ModalPortalExports=ModalPortal.exports;function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}this.setState(t.bind(this))}function componentWillUpdate(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function polyfill(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==r?"\n  "+r:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=componentWillMount,t.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=componentWillUpdate;var o=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;o.call(this,e,t,r)}}return e}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var reactLifecyclesCompat_es=Object.freeze({__proto__:null,polyfill:polyfill}),require$$6=getAugmentedNamespace(reactLifecyclesCompat_es);Object.defineProperty(Modal$2,"__esModule",{value:!0}),Modal$2.bodyOpenClassName=Modal$2.portalClassName=void 0;var _extends$l=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},_createClass=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}}(),_react=react__WEBPACK_IMPORTED_MODULE_2__,_react2=_interopRequireDefault(_react),_reactDom=react_dom__WEBPACK_IMPORTED_MODULE_4__,_reactDom2=_interopRequireDefault(_reactDom),_propTypes=propTypesExports,_propTypes2=_interopRequireDefault(_propTypes),_ModalPortal=ModalPortalExports,_ModalPortal2=_interopRequireDefault(_ModalPortal),_ariaAppHider=ariaAppHider$1,ariaAppHider=_interopRequireWildcard(_ariaAppHider),_safeHTMLElement=safeHTMLElement,_safeHTMLElement2=_interopRequireDefault(_safeHTMLElement),_reactLifecyclesCompat=require$$6;function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw 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)}var portalClassName=Modal$2.portalClassName="ReactModalPortal",bodyOpenClassName=Modal$2.bodyOpenClassName="ReactModal__Body--open",isReact16=_safeHTMLElement.canUseDOM&&void 0!==_reactDom2.default.createPortal,createHTMLElement=function(e){return document.createElement(e)},getCreatePortal=function(){return isReact16?_reactDom2.default.createPortal:_reactDom2.default.unstable_renderSubtreeIntoContainer};function getParentElement(e){return e()}var Modal$1=function(e){function t(){_classCallCheck(this,t);for(var e,n,r,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.removePortal=function(){isReact16||_reactDom2.default.unmountComponentAtNode(r.node);var e=getParentElement(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=getCreatePortal()(r,_react2.default.createElement(_ModalPortal2.default,_extends$l({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},_possibleConstructorReturn(r,n)}return _inherits(t,e),_createClass(t,[{key:"componentDidMount",value:function(){if(_safeHTMLElement.canUseDOM){isReact16||(this.node=createHTMLElement("div")),this.node.className=this.props.portalClassName;var e=getParentElement(this.props.parentSelector);e.appendChild(this.node),isReact16||this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:getParentElement(e.parentSelector),nextParent:getParentElement(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(_safeHTMLElement.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&(isReact16||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(_safeHTMLElement.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return _safeHTMLElement.canUseDOM&&isReact16?(!this.node&&isReact16&&(this.node=createHTMLElement("div")),getCreatePortal()(_react2.default.createElement(_ModalPortal2.default,_extends$l({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){ariaAppHider.setElement(e)}}]),t}(_react.Component);Modal$1.propTypes={isOpen:_propTypes2.default.bool.isRequired,style:_propTypes2.default.shape({content:_propTypes2.default.object,overlay:_propTypes2.default.object}),portalClassName:_propTypes2.default.string,bodyOpenClassName:_propTypes2.default.string,htmlOpenClassName:_propTypes2.default.string,className:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),overlayClassName:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),appElement:_propTypes2.default.oneOfType([_propTypes2.default.instanceOf(_safeHTMLElement2.default),_propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),_propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),_propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))]),onAfterOpen:_propTypes2.default.func,onRequestClose:_propTypes2.default.func,closeTimeoutMS:_propTypes2.default.number,ariaHideApp:_propTypes2.default.bool,shouldFocusAfterRender:_propTypes2.default.bool,shouldCloseOnOverlayClick:_propTypes2.default.bool,shouldReturnFocusAfterClose:_propTypes2.default.bool,preventScroll:_propTypes2.default.bool,parentSelector:_propTypes2.default.func,aria:_propTypes2.default.object,data:_propTypes2.default.object,role:_propTypes2.default.string,contentLabel:_propTypes2.default.string,shouldCloseOnEsc:_propTypes2.default.bool,overlayRef:_propTypes2.default.func,contentRef:_propTypes2.default.func,id:_propTypes2.default.string,overlayElement:_propTypes2.default.func,contentElement:_propTypes2.default.func},Modal$1.defaultProps={isOpen:!1,portalClassName:portalClassName,bodyOpenClassName:bodyOpenClassName,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return _react2.default.createElement("div",e,t)},contentElement:function(e,t){return _react2.default.createElement("div",e,t)}},Modal$1.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,_reactLifecyclesCompat.polyfill)(Modal$1),Modal$2.default=Modal$1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=r(Modal$2);function r(e){return e&&e.__esModule?e:{default:e}}t.default=n.default,e.exports=t.default}(lib,lib.exports);var libExports=lib.exports,ReactModal=getDefaultExportFromCjs(libExports);function _extends$k(){return(_extends$k=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcWindowClose=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$k({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),_path$e||(_path$e=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",d:"M8.173 18.416a1 1 0 0 0 1.414 1.414l4.414-4.414 4.415 4.414a1 1 0 0 0 1.414-1.414L15.416 14l4.414-4.414a1 1 0 0 0-1.414-1.414L14 12.587 9.587 8.173a1 1 0 1 0-1.414 1.414l4.414 4.414z"})),_path2$a||(_path2$a=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",d:"M0 0h28v28H0z",opacity:.01})))},propTypes$d={text:PropTypes.string.isRequired,textCls:PropTypes.string,circleImage:PropTypes.string,className:PropTypes.string,classSuffix:PropTypes.oneOf(["size24","size32","size40",""]),title:PropTypes.string,backgroundColor:PropTypes.string,getRef:PropTypes.func,disabled:PropTypes.bool,handler:PropTypes.func,dataTestId:PropTypes.string,tipId:PropTypes.string},defaultProps$e={textCls:"",className:"",circleImage:null,classSuffix:"",title:"",backgroundColor:"",getRef:function(){},disabled:!1,handler:function(){},dataTestId:"",tipId:void 0},CircleTextButton=function(e){var t=e.text,n=e.textCls,r=e.className,i=e.circleImage,o=e.classSuffix,a=e.backgroundColor,s=e.getRef,l=e.disabled,u=e.dataTestId,c=e.handler,d=e.title,f=e.tipId,p=classNames$1((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({"circle-text-button":""===o},"circle-text-button-".concat(o),""!==o),r,r)),h={};i&&(h.backgroundImage="url(".concat(i,")"),h.backgroundSize="cover"),a&&(h.backgroundColor=a);var m=i?null:t;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Button,{className:p,style:h,ref:s,disabled:l,dataTestId:u,handler:c,title:d,tipId:f,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"button-circle-text ".concat(n),children:m})})};CircleTextButton.propTypes=propTypes$d,CircleTextButton.defaultProps=defaultProps$e;var _excluded$8=["iconCls","src","handler","className","active","disabled","title","getRef"];function ownKeys$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 _objectSpread$b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$b(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var propTypes$c={iconCls:PropTypes.string,src:PropTypes.oneOfType([PropTypes.elementType,PropTypes.element]),className:PropTypes.string,handler:PropTypes.func,active:PropTypes.bool,disabled:PropTypes.bool,title:PropTypes.string,getRef:PropTypes.func,tipId:PropTypes.string},defaultProps$d={iconCls:"",src:"",className:"",handler:function(){},active:!1,disabled:!1,title:"",tipId:void 0,getRef:function(){}},IconButton=function(e){var t=e.iconCls,n=e.src,r=e.handler,i=e.className,o=e.active,a=e.disabled,s=e.title,l=e.getRef,u=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$8),c=classNames$1("icon-button",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},i,i),"active",o)),d=classNames$1("button-icon",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},t,t),"disabled",a),"active",o));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Button,_objectSpread$b(_objectSpread$b({},u),{},{handler:r,className:c,disabled:a,title:s,ref:l,children:t.length>0?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:d,"data-testid":"icon-button-icon"}):n}))};IconButton.propTypes=propTypes$c,IconButton.defaultProps=defaultProps$d;var _excluded$7=["text","textCls","iconCls","className","getRef","handler","src","disabled"];function ownKeys$a(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 _objectSpread$a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$a(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var propTypes$b={text:PropTypes.string.isRequired,textCls:PropTypes.string,iconCls:PropTypes.string,className:PropTypes.string,getRef:PropTypes.func,handler:PropTypes.func,src:PropTypes.oneOfType([function(){return null},PropTypes.elementType]),disabled:PropTypes.bool,title:PropTypes.string,tipId:PropTypes.string},defaultProps$c={textCls:"",iconCls:"",className:"",getRef:function(){},handler:function(){},src:null,disabled:!1,title:"",tipId:void 0},IconTextButton=function(e){var t=e.text,n=e.textCls,r=e.iconCls,i=e.className,o=e.getRef,a=e.handler,s=e.src,l=e.disabled,u=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$7),c=classNames$1("icon-text-button",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},i,i)),d=classNames$1((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({"button-icon":!0},r,r),"disabled",l));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Button,_objectSpread$a(_objectSpread$a({},u),{},{className:c,ref:o,handler:a,disabled:l,children:[s||(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:d,"data-testid":"icon-text-button-icon"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"button-text ".concat(n),children:t})]}))};function ownKeys$9(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 _objectSpread$9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$9(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}IconTextButton.propTypes=propTypes$b,IconTextButton.defaultProps=defaultProps$c;var propTypes$a={className:PropTypes.string,title:PropTypes.string,loop:PropTypes.bool,play:PropTypes.bool,getRef:PropTypes.func,animationData:PropTypes.object,dataTestId:PropTypes.string,handler:PropTypes.func,animationPath:PropTypes.string,tipId:PropTypes.string},defaultProps$b={className:"",title:"",loop:!0,play:!0,getRef:function(){},dataTestId:"",handler:function(){},animationData:null,animationPath:"",tipId:void 0},LottieButton=function(e){var t=e.className,n=e.title,r=e.loop,i=e.play,o=e.getRef,a=e.animationData,s=e.animationPath,l=e.dataTestId,u=e.handler,c=e.tipId,d=classNames$1("lottie-icon-button",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},t,t)),f=a?{animationData:a}:{path:s};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Button,{className:d,title:n,ref:o,dataTestId:l,handler:u,tipId:c,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(LottiePlayer,_objectSpread$9({loop:r,play:i,rendererSettings:{viewBoxOnly:!0}},f))})};LottieButton.propTypes=propTypes$a,LottieButton.defaultProps=defaultProps$b;var _excluded$6=["text","textCls","className","color","shape","size","backgroundImage","title","tipId","getRef","getTextRef"];function ownKeys$8(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 _objectSpread$8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$8(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var propTypes$9={text:PropTypes.string.isRequired,textCls:PropTypes.string,className:PropTypes.string,color:PropTypes.oneOf(["","grey","main"]),shape:PropTypes.oneOf(["","oval","rectangle"]),size:PropTypes.oneOf(["","small","medium","large"]),backgroundImage:PropTypes.string,title:PropTypes.string,getRef:PropTypes.func,tipId:PropTypes.string,getTextRef:PropTypes.func},defaultProps$a={textCls:"",className:"",color:"",shape:"",size:"",backgroundImage:"",title:null,getRef:function(){},tipId:void 0,getTextRef:function(){}},TextButton=function(e){var t=e.text,n=e.textCls,r=e.className,i=e.color,o=e.shape,a=e.size,s=e.backgroundImage,l=e.title,u=e.tipId,c=e.getRef,d=e.getTextRef,f=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$6),p=classNames$1((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({"text-button":!i&&!o},"button-".concat(i),!!i),"text-button-".concat(o),!!o),"button-".concat(a),!!a),r),h=null;return s&&(h=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"for-you-apply-background-ct",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"for-you-apply-background",style:{backgroundImage:"url(".concat(s,")")}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"for-you-apply-background-mask"})]})),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Button,_objectSpread$8(_objectSpread$8({},f),{},{className:p,title:l,tipId:u,ref:c,children:[h,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"button-text ".concat(n),ref:d,children:t})]}))};TextButton.propTypes=propTypes$9,TextButton.defaultProps=defaultProps$a;var propTypes$8={text:PropTypes.string,iconCls:PropTypes.string,className:PropTypes.string,getRef:PropTypes.func,disabled:PropTypes.bool,handler:PropTypes.func,src:PropTypes.oneOfType([function(){return null},PropTypes.elementType])},defaultProps$9={text:"",iconCls:"",className:"",getRef:function(){},disabled:!1,handler:function(){},src:null},TextIconButton=function(e){var t=e.iconCls,n=e.text,r=e.className,i=e.getRef,o=e.disabled,a=e.handler,s=e.src,l=classNames$1("text-icon-button",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},r,r)),u=classNames$1("button-icon",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},t,t));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Button,{className:l,ref:i,disabled:o,handler:a,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"button-text",children:n}),t.length>0?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{"data-testid":"text-icon-button-icon",className:u}):s]})};TextIconButton.propTypes=propTypes$8,TextIconButton.defaultProps=defaultProps$9;var ModalHeader=function(e){var t=e.title,n=e.headerRightContent,r=e.showCloseButton,i=e.closeButtonHandler;return t||r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"modal-header",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"modal-title",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(DangerousSpan,{text:t})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"modal-header-right",children:[n,r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IconButton,{dataTestId:"icon-close-button",src:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcWindowClose,{}),className:"icon-button-modal-header-close",handler:i}):null]})]}):null};ModalHeader.propTypes={title:PropTypes.string,headerRightContent:PropTypes.node,showCloseButton:PropTypes.bool,closeButtonHandler:PropTypes.func},ModalHeader.defaultProps={title:"",headerRightContent:null,showCloseButton:!1,closeButtonHandler:function(){}};var RESIZE_START_WIDTH=5,Modal=function(e){var t=e.title,n=e.className,r=e.headerRightContent,i=e.children,o=e.closeButtonHandler,a=e.isResizable,s=e.onMouseOver,l=e.onMouseLeave,u=e.onMouseEnter,c=e.onRequestClose,d=e.overlayCls,f=e.showCloseButton,p=e.closeIconCls,h=e.parentSelector,m=e.modalWithMask,g=e.portalClassName,v=e.isOpen,y=e.contentInnerRef,b=e.shouldReturnFocusAfterClose,_=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),E=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),w=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),S=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),T=function(e){if(_.current&&E.current){var t=E.current.getBoundingClientRect(),n=t.left,r=t.right;(e.clientX-n<RESIZE_START_WIDTH||r-e.clientX<RESIZE_START_WIDTH)&&(S.current=!0,_.current.style.cursor="ew-resize",w.current=e.clientX-n<RESIZE_START_WIDTH)}},O=function(e){var t=e.clientX;requestAnimationFrame(function(){if(S.current){var e=window.innerWidth-2*t;e=w.current?e:-e,E.current.style.width="".concat(e,"px")}})},I=function(){S.current=!1,_.current&&(_.current.style.cursor="")},A=function(e){E.current=e,y(e),E.current&&a&&E.current.addEventListener("mousedown",T)},C=function(e){_.current=e,_.current&&a&&(_.current.addEventListener("mousemove",O),_.current.addEventListener("mouseup",I))},x=classNames$1("modal",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},n,n)),D="modal-overlay ".concat(d),R=classNames$1(g,{ReactModalPortal:!g,"modal-with-mask":m});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ReactModal,{portalClassName:R,className:x,overlayClassName:D,ariaHideApp:!1,shouldReturnFocusAfterClose:b,onRequestClose:c,contentRef:A,overlayRef:C,parentSelector:h,isOpen:v,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"modal-inner-ct",onMouseEnter:u,onMouseOver:s,onMouseLeave:l,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ModalHeader,{title:t,headerRightContent:r,showCloseButton:f,closeButtonHandler:o,closeIconCls:p}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"modal-content",children:i})]})})};Modal.propTypes={isOpen:PropTypes.bool,title:PropTypes.string,className:PropTypes.string,headerRightContent:PropTypes.node,children:PropTypes.node.isRequired,closeButtonHandler:PropTypes.func,isResizable:PropTypes.bool,onMouseOver:PropTypes.func,onMouseLeave:PropTypes.func,onMouseEnter:PropTypes.func,onRequestClose:PropTypes.func,overlayCls:PropTypes.string,showCloseButton:PropTypes.bool,closeIconCls:PropTypes.string,parentSelector:PropTypes.func,portalClassName:PropTypes.string,contentInnerRef:PropTypes.func,modalWithMask:PropTypes.bool,shouldReturnFocusAfterClose:PropTypes.bool},Modal.defaultProps={isOpen:!1,title:"",className:"",headerRightContent:null,closeButtonHandler:void 0,isResizable:!1,onMouseOver:function(){},onMouseLeave:function(){},onMouseEnter:function(){},onRequestClose:function(){},overlayCls:"",showCloseButton:!1,closeIconCls:void 0,parentSelector:function(){return document.querySelector("body")},portalClassName:void 0,contentInnerRef:function(){},modalWithMask:!1,shouldReturnFocusAfterClose:!1};var propTypes$7={cancelText:PropTypes.string,className:PropTypes.string,confirmDisabled:PropTypes.bool,confirmText:PropTypes.string,headerRightContent:PropTypes.node,content:PropTypes.node,cancelHandler:PropTypes.func,confirmHandler:PropTypes.func,keyDownHandler:PropTypes.func,closeHandler:PropTypes.func,isOpen:PropTypes.bool,isResizable:PropTypes.bool,shouldReturnFocusAfterClose:PropTypes.bool,shouldCloseOnEsc:PropTypes.bool,showCancel:PropTypes.bool,showClose:PropTypes.bool,showConfirm:PropTypes.bool,title:PropTypes.string,footerMessage:PropTypes.element,showLoadingBox:PropTypes.bool,contentClass:PropTypes.string,loadingMessage:PropTypes.string},defaultProps$8={cancelText:"",className:"",confirmDisabled:!1,confirmText:"",headerRightContent:null,content:null,cancelHandler:void 0,confirmHandler:void 0,closeHandler:void 0,keyDownHandler:void 0,isOpen:!1,isResizable:!1,shouldReturnFocusAfterClose:!0,shouldCloseOnEsc:!1,showCancel:!1,showClose:!0,showConfirm:!0,title:"",footerMessage:null,showLoadingBox:!1,contentClass:"",loadingMessage:""},GeneralDialog=function(e){var t=e.cancelText,n=e.className,r=e.confirmDisabled,i=e.confirmText,o=e.headerRightContent,a=e.content,s=e.footerMessage,l=e.cancelHandler,u=e.confirmHandler,c=e.closeHandler,d=e.keyDownHandler,f=e.isOpen,p=e.isResizable,h=e.shouldReturnFocusAfterClose,m=e.shouldCloseOnEsc,g=e.showCancel,v=e.showClose,y=e.showConfirm,b=e.title,_=e.showLoadingBox,E=e.contentClass,w=e.loadingMessage,S="".concat(n," general-dialog"),T=classNames$1("general-dialog-mask",{"show-mask":_}),O=_?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"general-dialog-loading-box",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"loading-box",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(LoadingInfo,{message:w})})}):null,I=function(e){if(e.key===KeyCode.ESC){if(c){c();return}l()}d&&d(e)},A=classNames$1("general-dialog-content",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},E,E));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(KeyDownEvent,{onKeyDown:I}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Modal,{isOpen:f,isResizable:p,title:b,className:S,headerRightContent:o,shouldCloseOnEsc:m,shouldReturnFocusAfterClose:h,showCloseButton:v,closeButtonHandler:c||l,modalWithMask:!0,children:[O,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:T,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:A,children:a}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"general-dialog-footer",children:[s?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"footer-message-wrapper",children:s}):null,g&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TextButton,{text:t,handler:l,color:ButtonColor.GREY,shape:ButtonShape.OVAL}),y&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TextButton,{text:i,handler:u,color:ButtonColor.MAIN,shape:ButtonShape.OVAL,disabled:r})]})]})]})]})};GeneralDialog.propTypes=propTypes$7,GeneralDialog.defaultProps=defaultProps$8;let urlAlphabet="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nanoid=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=urlAlphabet[63&n[e]];return t};function _extends$j(){return(_extends$j=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcCheckboxAllUnselected=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$j({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$d||(_path$d=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#DBDCDE",fillRule:"evenodd",d:"M3 11a8 8 0 1 0 16 0 8 8 0 0 0-16 0m8-9a9 9 0 1 0 0 18 9 9 0 0 0 0-18",clipRule:"evenodd"})))};function _extends$i(){return(_extends$i=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcSquareCheckboxUnselected=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$i({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_rect$2||(_rect$2=react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:17,height:17,x:2.5,y:2.5,stroke:"#DBDCDE",rx:3.5})),_path$c||(_path$c=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#DBDCDE",d:"M0 0h22v22H0z",opacity:.01})))};function _extends$h(){return(_extends$h=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcCheckboxAllHover=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$h({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$b||(_path$b=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#DBDCDE",d:"M2 11a9 9 0 1 1 18 0 9 9 0 0 1-18 0"})),_path2$9||(_path2$9=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M16.679 7.266a1 1 0 0 1 .055 1.413l-6.103 6.603a1.5 1.5 0 0 1-2.203 0L5.266 11.86a1 1 0 0 1 1.468-1.358l2.795 3.024 5.737-6.206a1 1 0 0 1 1.413-.055",clipRule:"evenodd"})))};function _extends$g(){return(_extends$g=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcSquareCheckboxUnselectedHover=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$g({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_rect$1||(_rect$1=react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:17,height:17,x:2.5,y:2.5,stroke:"#BFC1C3",rx:3.5})),_path$a||(_path$a=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#BFC1C3",d:"M0 0h22v22H0z",opacity:.01})))};function _extends$f(){return(_extends$f=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcCheckboxAllSelected=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$f({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$9||(_path$9=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#FF6F61",d:"M2 11a9 9 0 1 1 18 0 9 9 0 1 1-18 0"})),_path2$8||(_path2$8=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M16.679 7.266a1 1 0 0 1 .055 1.413l-6.103 6.603a1.5 1.5 0 0 1-2.203 0L5.266 11.86a1 1 0 0 1 1.468-1.358l2.795 3.024 5.737-6.206a1 1 0 0 1 1.413-.055",clipRule:"evenodd"})))};function _extends$e(){return(_extends$e=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcSquareCheckboxSelected=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$e({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$8||(_path$8=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",fillRule:"evenodd",d:"M6 2a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4V6a4 4 0 0 0-4-4zm10.734 6.679a1 1 0 1 0-1.468-1.358l-5.737 6.206-2.795-3.024a1 1 0 0 0-1.468 1.358l3.162 3.42a1.5 1.5 0 0 0 2.203 0z",clipRule:"evenodd"})),_path2$7||(_path2$7=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",d:"M0 0h22v22H0z",opacity:.01})))};function _extends$d(){return(_extends$d=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcSquareCheckboxSelectedHover=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$d({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$7||(_path$7=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#282828",fillRule:"evenodd",d:"M6 2a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4V6a4 4 0 0 0-4-4zm10.734 6.679a1 1 0 1 0-1.468-1.358l-5.737 6.206-2.795-3.024a1 1 0 0 0-1.468 1.358l3.162 3.42a1.5 1.5 0 0 0 2.203 0z",clipRule:"evenodd"})),_path2$6||(_path2$6=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#282828",d:"M0 0h22v22H0z",opacity:.01})))};function _extends$c(){return(_extends$c=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcCheckboxUnselectedDisabled=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$c({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_rect||(_rect=react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:17,height:17,x:2.5,y:2.5,fill:"#000",fillOpacity:.18,stroke:"#000",rx:8.5})))},propTypes$6={className:PropTypes.string,iconCls:PropTypes.string,checked:PropTypes.bool,wrapperTestId:PropTypes.string,dataTestId:PropTypes.string,disabled:PropTypes.bool,onChange:PropTypes.func,onMouseOver:PropTypes.func,onMouseLeave:PropTypes.func,labelText:PropTypes.string,title:PropTypes.oneOfType([PropTypes.oneOf([null]),PropTypes.string]),isSquare:PropTypes.bool,tipId:PropTypes.string},defaultProps$7={className:"",iconCls:"",checked:!1,wrapperTestId:void 0,dataTestId:void 0,disabled:!1,onChange:function(){},onMouseOver:void 0,onMouseLeave:void 0,labelText:"",title:null,tipId:void 0,isSquare:!1},getIconByStatus$1=function(e,t,n,r){return e?t&&n&&!r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcSquareCheckboxSelectedHover,{}):t?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcSquareCheckboxSelected,{}):n?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcSquareCheckboxUnselectedHover,{}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcSquareCheckboxUnselected,{}):t?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcCheckboxAllSelected,{}):r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcCheckboxUnselectedDisabled,{}):n?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcCheckboxAllHover,{}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcCheckboxAllUnselected,{})},CheckBox$1=(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(e,t){var n=e.className,r=e.iconCls,i=e.checked,o=e.wrapperTestId,a=e.dataTestId,s=e.disabled,l=e.onChange,u=e.onMouseOver,c=e.onMouseLeave,d=e.labelText,f=e.title,p=e.tipId,h=e.isSquare,m=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(nanoid()).current,g=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(i),v=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(g,2),y=v[0],b=v[1],_=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),E=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(_,2),w=E[0],S=E[1],T=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(getIconByStatus$1(h,y,w,s)),O=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(T,2),I=O[0],A=O[1];(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){A(getIconByStatus$1(h,y,w,s))},[y,w]);var C=classNames$1("form-checkbox",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},n,n),"disabled",s)),x=classNames$1("form-checkbox-icon",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},r,r),"checked",y));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:C,ref:t,"data-tooltip-id":p,"data-tooltip-content":f,"data-long-press-delay":WaitingTime.LONG_PRESS,"data-testid":o,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{disabled:s,type:"checkbox",className:"form-checkbox-input",checked:y,id:m,onChange:function(e){b(e.target.checked),l(e)}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label",{className:"form-checkbox-label",htmlFor:m,"data-testid":a,onMouseOver:u,onMouseLeave:c,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:x,onMouseOver:function(){return S(!0)},onMouseOut:function(){return S(!1)},children:I}),d&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{children:d})]})]})});function ownKeys$7(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 _objectSpread$7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$7(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}CheckBox$1.displayName="DesktopCheckBox",CheckBox$1.propTypes=propTypes$6,CheckBox$1.defaultProps=defaultProps$7;var MobileCheckBox=(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(e,t){var n=useMobileLongPressEvent(e.onLongPress).setCallBackTargetRef,r=function(e){n(e),t&&(t.current=e)};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CheckBox$1,_objectSpread$7(_objectSpread$7({},e),{},{ref:r}))});MobileCheckBox.propTypes={onLongPress:PropTypes.func},MobileCheckBox.defaultProps={onLongPress:void 0},MobileCheckBox.displayName="MobileCheckBox";var CheckBox=withRwd(CheckBox$1,MobileCheckBox);function _extends$b(){return(_extends$b=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcRadioHover=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$b({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$6||(_path$6=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#DBDCDE",d:"M11 16a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})),_path2$5||(_path2$5=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#DBDCDE",fillRule:"evenodd",d:"M20 11a9 9 0 1 1-18 0 9 9 0 0 1 18 0m-1 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0",clipRule:"evenodd"})))};function _extends$a(){return(_extends$a=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcRadioSelected=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$a({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$5||(_path$5=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#FF6F61",d:"M11 16a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})),_path2$4||(_path2$4=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#FF6F61",fillRule:"evenodd",d:"M20 11a9 9 0 1 1-18 0 9 9 0 0 1 18 0m-1 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0",clipRule:"evenodd"})))};function _extends$9(){return(_extends$9=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcRadioUnselected=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$9({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_path$4||(_path$4=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#DBDCDE",fillRule:"evenodd",d:"M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16m0 1a9 9 0 1 0 0-18 9 9 0 0 0 0 18",clipRule:"evenodd"})))};function _extends$8(){return(_extends$8=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcRadioUnselectedDisabled=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$8({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),_circle||(_circle=react__WEBPACK_IMPORTED_MODULE_2__.createElement("circle",{cx:11,cy:11,r:8.5,fill:"#000",fillOpacity:.18,stroke:"#000"})))},getIconByStatus=function(e,t,n){return e?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcRadioSelected,{}):!e&&n?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcRadioUnselectedDisabled,{}):t?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcRadioHover,{}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcRadioUnselected,{})},RadioButton=function(e){var t=e.name,n=e.value,r=e.checked,i=e.className,o=e.disabled,a=e.onChange,s=e.labelText,l=react__WEBPACK_IMPORTED_MODULE_2__.useRef(nanoid()).current,u=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),c=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(u,2),d=c[0],f=c[1],p=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(getIconByStatus(r,d,o)),h=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(p,2),m=h[0],g=h[1];(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){g(getIconByStatus(r,d,o))},[r,d]);var v=classNames$1("form-radio-button",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},i,i)),y=classNames$1("normal-radio-button-icon",{checked:r});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:v,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{disabled:o,className:"form-radio-button-input",type:"radio",name:t,value:n,checked:r,id:l,onChange:a}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label",{htmlFor:l,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:y,onMouseOver:function(){return f(!0)},onMouseOut:function(){return f(!1)},children:m}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"form-radio-label",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{children:s})})]})]})};RadioButton.propTypes={name:PropTypes.string,value:PropTypes.string,checked:PropTypes.bool,disabled:PropTypes.bool,onChange:PropTypes.func,className:PropTypes.string,labelText:PropTypes.oneOfType([PropTypes.string,PropTypes.object])},RadioButton.defaultProps={name:"",value:"",className:"",checked:!1,disabled:!1,onChange:function(){},labelText:""};var Switch=function(e){var t=e.className,n=e.checked,r=e.disabled,i=e.onChange,o=e.dataTestId,a=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(nanoid()),s=classNames$1("form-switch",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},t,t),"disabled",r)),l=classNames$1("form-switch-toggle",{checked:n});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label",{className:s,htmlFor:a.current,"data-testid":"".concat(o,"_label"),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{type:"checkbox",className:"form-switch-input",checked:n,id:a.current,onChange:i,disabled:r,"data-testid":o}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{"data-testid":"".concat(o,"_toggle"),className:l})]})};Switch.propTypes={className:PropTypes.string,checked:PropTypes.bool,disabled:PropTypes.bool,onChange:PropTypes.func,dataTestId:PropTypes.string},Switch.defaultProps={className:"",checked:!1,disabled:!1,onChange:function(){},dataTestId:""};var MessageDialog=function(e){var t=e.message,n=e.showConfirm,r=e.showCancel,i=e.showClose,o=e.showDontShowAgain,a=e.confirmHandler,s=e.cancelHandler,l=e.cancelText,u=e.closeHandler,c=e.closeText,d=e.confirmText,f=e.confirmCls,p=e.className,h=e.isOpen,m=e.onAfterOpen,g=e.title,v=e.footerMessageIconCls,y=e.footerMessage,b=e.isFooterErrorMessage,_=e.dontShowAgainText,E=e.role,w=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),S=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(w,2),T=S[0],O=S[1],I=function(e){n&&e.key===KeyCode.ENTER&&a(),r&&e.key===KeyCode.ESC&&s()},A=function(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CheckBox,{className:"external-convert-intro-dont-show-again",labelText:_,checked:T,onChange:function(){return O(!T)}})},C=function(){if(!n&&!r&&!i)return null;var e=n&&r&&i?"message-dialog-actions confirm":"message-dialog-actions",t=b?"message-dialog-footer-error-message-text":"message-dialog-footer-message-text";return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"message-dialog-footer",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(KeyDownEvent,{onKeyDown:I}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"message-dialog-footer-left-actions",children:[""===v?null:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:v}),""===y?null:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:t,children:y}),i&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TextButton,{text:c,handler:u,color:ButtonColor.GREY,shape:ButtonShape.OVAL})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:e,children:[r&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TextButton,{text:l,handler:s,color:ButtonColor.GREY,shape:ButtonShape.OVAL}),n&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TextButton,{text:d,handler:function(){a(T)},color:ButtonColor.MAIN,shape:ButtonShape.OVAL,className:f})]})]})},x=classNames$1("message-dialog",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},p,p));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Modal,{role:E,isOpen:h,className:x,onAfterOpen:m,modalWithMask:!0,shouldCloseOnEsc:!1,title:g,children:[t,o&&A(),C()]})};MessageDialog.propTypes={message:PropTypes.node.isRequired,showConfirm:PropTypes.bool,showCancel:PropTypes.bool,showClose:PropTypes.bool,showDontShowAgain:PropTypes.bool,confirmHandler:PropTypes.func,cancelHandler:PropTypes.func,cancelText:PropTypes.string,closeHandler:PropTypes.func,closeText:PropTypes.string,confirmText:PropTypes.string,confirmCls:PropTypes.string,className:PropTypes.string,isOpen:PropTypes.bool,onAfterOpen:PropTypes.func,title:PropTypes.string,footerMessageIconCls:PropTypes.string,footerMessage:PropTypes.string,isFooterErrorMessage:PropTypes.bool,dontShowAgainText:PropTypes.string,role:PropTypes.string},MessageDialog.defaultProps={showConfirm:!1,showCancel:!1,showClose:!0,showDontShowAgain:!1,confirmHandler:function(){},cancelHandler:function(){},closeHandler:function(){},closeText:"",confirmText:"",confirmCls:"",className:"",isOpen:!1,cancelText:"",onAfterOpen:function(){},title:"",footerMessageIconCls:"",isFooterErrorMessage:!1,footerMessage:"",dontShowAgainText:"",role:void 0};var clearNode=function(e,t){e.unmount(),setTimeout(function(){t.remove()})};function ownKeys$6(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 _objectSpread$6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$6(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function alert(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("div");document.body.appendChild(n);var r=(0,react_dom_client__WEBPACK_IMPORTED_MODULE_3__.createRoot)(n);return new Promise(function(n){var i=_objectSpread$6({message:e,role:"alertdialog",showConfirm:!0,showCancel:!1,showClose:!1,isOpen:!0,confirmHandler:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n({dontShowAgain:e})}},t);r.render((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MessageDialog,_objectSpread$6({},i)))}).catch(function(e){throw clearNode(r,n),e}).finally(function(){clearNode(r,n)})}function ownKeys$5(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 _objectSpread$5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$5(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function confirm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("div");document.body.appendChild(n);var r=(0,react_dom_client__WEBPACK_IMPORTED_MODULE_3__.createRoot)(n);return new Promise(function(n){var i=_objectSpread$5(_objectSpread$5({},t),{},{role:"alertdialog",message:e,showConfirm:!0,showCancel:!0,showClose:!1,isOpen:!0,confirmHandler:function(){var e;null===(e=t.confirmHandler)||void 0===e||e.call(t),n({type:ActionResult.CONFIRM})},cancelHandler:function(){var e;null===(e=t.cancelHandler)||void 0===e||e.call(t),n({type:ActionResult.CLOSE})}});r.render((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MessageDialog,_objectSpread$5({},i)))}).finally(function(){clearNode(r,n)})}let sides=["top","right","bottom","left"],alignments=["start","end"],placements=sides.reduce((e,t)=>e.concat(t,t+"-"+alignments[0],t+"-"+alignments[1]),[]),min$2=Math.min,max$2=Math.max,round$1=Math.round,floor$1=Math.floor,createCoords$1=e=>({x:e,y:e}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(e,t,n){return max$2(e,min$2(t,n))}function evaluate(e,t){return"function"==typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);let r=getAlignment(e),i=getAlignmentAxis(e),o=getAxisLength(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=getOppositePlacement(a)),[a,getOppositePlacement(a)]}function getExpandedPlacements(e){let t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>oppositeAlignmentMap[e])}function getSideList(e,t,n){let r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?o:a;default:return[]}}function getOppositeAxisPlacements(e,t,n,r){let i=getAlignment(e),o=getSideList(getSide(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(getOppositeAlignmentPlacement)))),o}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>oppositeSideMap[e])}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return"number"!=typeof e?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let r,{reference:i,floating:o}=e,a=getSideAxis(t),s=getAlignmentAxis(t),l=getAxisLength(s),u=getSide(t),c="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(getAlignment(t)){case"start":r[s]-=p*(n&&c?-1:1);break;case"end":r[s]+=p*(n&&c?-1:1)}return r}let computePosition$2=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=computeCoordsFromPlacement(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[o]:{...p[o],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=computeCoordsFromPlacement(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function detectOverflow$1(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=evaluate(t,e),h=getPaddingObject(p),m="floating"===d?"reference":"floating",g=s[f?m:d],v=rectToClientRect(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},E=rectToClientRect(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-E.top+h.top)/_.y,bottom:(E.bottom-v.bottom+h.bottom)/_.y,left:(v.left-E.left+h.left)/_.x,right:(E.right-v.right+h.right)/_.x}}let arrow$4=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=evaluate(e,t)||{};if(null==u)return{};let d=getPaddingObject(c),f={x:n,y:r},p=getAlignmentAxis(i),h=getAxisLength(p),m=await a.getDimensions(u),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",_=o.reference[h]+o.reference[p]-f[p]-o.floating[h],E=f[p]-o.reference[p],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),S=w?w[b]:0;S&&await (null==a.isElement?void 0:a.isElement(w))||(S=s.floating[b]||o.floating[h]);let T=_/2-E/2,O=S/2-m[h]/2-1,I=min$2(d[v],O),A=min$2(d[y],O),C=I,x=S-m[h]-A,D=S/2-m[h]/2+T,R=clamp(C,D,x),L=!l.arrow&&null!=getAlignment(i)&&D!==R&&o.reference[h]/2-(D<C?I:A)-m[h]/2<0,k=L?D<C?D-C:D-x:0;return{[p]:f[p]+k,data:{[p]:R,centerOffset:D-R-k,...L&&{alignmentOffset:k}},reset:L}}});function getPlacementList(e,t,n){return(e?[...n.filter(t=>getAlignment(t)===e),...n.filter(t=>getAlignment(t)!==e)]:n.filter(e=>getSide(e)===e)).filter(n=>!e||getAlignment(n)===e||!!t&&getOppositeAlignmentPlacement(n)!==n)}let autoPlacement$2=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;let{rects:o,middlewareData:a,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:f=placements,autoAlignment:p=!0,...h}=evaluate(e,t),m=void 0!==d||f===placements?getPlacementList(d||null,p,f):f,g=await detectOverflow$1(t,h),v=(null==(n=a.autoPlacement)?void 0:n.index)||0,y=m[v];if(null==y)return{};let b=getAlignmentSides(y,o,await (null==l.isRTL?void 0:l.isRTL(u.floating)));if(s!==y)return{reset:{placement:m[0]}};let _=[g[getSide(y)],g[b[0]],g[b[1]]],E=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:y,overflows:_}],w=m[v+1];if(w)return{data:{index:v+1,overflows:E},reset:{placement:w}};let S=E.map(e=>{let t=getAlignment(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),T=(null==(i=S.filter(e=>e[2].slice(0,getAlignment(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||S[0][0];return T!==s?{data:{index:v+1,overflows:E},reset:{placement:T}}:{}}}},flip$3=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...b}=evaluate(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let _=getSide(s),E=getSideAxis(c),w=getSide(c)===c,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),T=m||(w||!y?[getOppositePlacement(c)]:getExpandedPlacements(c)),O="none"!==v;!m&&O&&T.push(...getOppositeAxisPlacements(c,y,v,S));let I=[c,...T],A=await detectOverflow$1(t,b),C=[],x=(null==(r=l.flip)?void 0:r.overflows)||[];if(p&&C.push(A[_]),h){let e=getAlignmentSides(s,u,S);C.push(A[e[0]],A[e[1]])}if(x=[...x,{placement:s,overflows:C}],!C.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=I[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(o=x.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(g){case"bestFit":{let e=null==(a=x.filter(e=>{if(O){let t=getSideAxis(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return sides.some(t=>e[t]>=0)}let hide$2=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=evaluate(e,t);switch(r){case"referenceHidden":{let e=getSideOffsets(await detectOverflow$1(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:isAnySideFullyClipped(e)}}}case"escaped":{let e=getSideOffsets(await detectOverflow$1(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:isAnySideFullyClipped(e)}}}default:return{}}}}};function getBoundingRect(e){let t=min$2(...e.map(e=>e.left)),n=min$2(...e.map(e=>e.top));return{x:t,y:n,width:max$2(...e.map(e=>e.right))-t,height:max$2(...e.map(e=>e.bottom))-n}}function getRectsByLine(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>rectToClientRect(getBoundingRect(e)))}let inline$2=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:o,strategy:a}=t,{padding:s=2,x:l,y:u}=evaluate(e,t),c=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(r.reference))||[]),d=getRectsByLine(c),f=rectToClientRect(getBoundingRect(c)),p=getPaddingObject(s);function h(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=u)return d.find(e=>l>e.left-p.left&&l<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)||f;if(d.length>=2){if("y"===getSideAxis(n)){let e=d[0],t=d[d.length-1],r="top"===getSide(n),i=e.top,o=t.bottom,a=r?e.left:t.left,s=r?e.right:t.right,l=s-a,u=o-i;return{top:i,bottom:o,left:a,right:s,width:l,height:u,x:a,y:i}}let e="left"===getSide(n),t=max$2(...d.map(e=>e.right)),r=min$2(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),o=i[0].top,a=i[i.length-1].bottom,s=r,l=t,u=l-s,c=a-o;return{top:o,bottom:a,left:s,right:l,width:u,height:c,x:s,y:o}}return f}let m=await o.getElementRects({reference:{getBoundingClientRect:h},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};async function convertValueToCoords(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=getSide(n),s=getAlignment(n),l="y"===getSideAxis(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=evaluate(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}let offset$3=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await convertValueToCoords(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},shift$3=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=evaluate(e,t),u={x:n,y:r},c=await detectOverflow$1(t,l),d=getSideAxis(getSide(i)),f=getOppositeAxis(d),p=u[f],h=u[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=clamp(n,p,r)}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=clamp(n,h,r)}let m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},limitShift$2=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=evaluate(e,t),c={x:n,y:r},d=getSideAxis(i),f=getOppositeAxis(d),p=c[f],h=c[d],m=evaluate(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,n=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;let e="y"===f?"width":"height",t=["top","left"].includes(getSide(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},size$2=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=evaluate(e,t),c=await detectOverflow$1(t,u),d=getSide(i),f=getAlignment(i),p="y"===getSideAxis(i),{width:h,height:m}=o.floating;"top"===d||"bottom"===d?(n=d,r=f===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(r=d,n="end"===f?"top":"bottom");let g=m-c.top-c.bottom,v=h-c.left-c.right,y=min$2(m-c[n],g),b=min$2(h-c[r],v),_=!t.middlewareData.shift,E=y,w=b;if(p?w=f||_?min$2(b,v):v:E=f||_?min$2(y,g):g,_&&!f){let e=max$2(c.left,0),t=max$2(c.right,0),n=max$2(c.top,0),r=max$2(c.bottom,0);p?w=h-2*(0!==e||0!==t?e+t:max$2(c.left,c.right)):E=m-2*(0!==n||0!==r?n+r:max$2(c.top,c.bottom))}await l({...t,availableWidth:w,availableHeight:E});let S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},min$1=Math.min,max$1=Math.max,round=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e});function getNodeName$1(e){return isNode$1(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow$1(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement$1(e){var t;return null==(t=(isNode$1(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode$1(e){return e instanceof Node||e instanceof getWindow$1(e).Node}function isElement$1(e){return e instanceof Element||e instanceof getWindow$1(e).Element}function isHTMLElement$1(e){return e instanceof HTMLElement||e instanceof getWindow$1(e).HTMLElement}function isShadowRoot$1(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow$1(e).ShadowRoot)}function isOverflowElement$1(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=getComputedStyle$2(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function isTableElement$1(e){return["table","td","th"].includes(getNodeName$1(e))}function isTopLayer$1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function isContainingBlock$1(e){let t=isWebKit$1(),n=isElement$1(e)?getComputedStyle$2(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function getContainingBlock$1(e){let t=getParentNode$1(e);for(;isHTMLElement$1(t)&&!isLastTraversableNode$1(t);){if(isContainingBlock$1(t))return t;if(isTopLayer$1(t))break;t=getParentNode$1(t)}return null}function isWebKit$1(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode$1(e){return["html","body","#document"].includes(getNodeName$1(e))}function getComputedStyle$2(e){return getWindow$1(e).getComputedStyle(e)}function getNodeScroll$1(e){return isElement$1(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode$1(e){if("html"===getNodeName$1(e))return e;let t=e.assignedSlot||e.parentNode||isShadowRoot$1(e)&&e.host||getDocumentElement$1(e);return isShadowRoot$1(t)?t.host:t}function getNearestOverflowAncestor$1(e){let t=getParentNode$1(e);return isLastTraversableNode$1(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement$1(t)&&isOverflowElement$1(t)?t:getNearestOverflowAncestor$1(t)}function getOverflowAncestors$1(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=getNearestOverflowAncestor$1(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=getWindow$1(i);return o?t.concat(a,a.visualViewport||[],isOverflowElement$1(i)?i:[],a.frameElement&&n?getOverflowAncestors$1(a.frameElement):[]):t.concat(i,getOverflowAncestors$1(i,[],n))}function getCssDimensions$1(e){let t=getComputedStyle$2(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=isHTMLElement$1(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=round(n)!==o||round(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function unwrapElement$1(e){return isElement$1(e)?e:e.contextElement}function getScale$1(e){let t=unwrapElement$1(e);if(!isHTMLElement$1(t))return createCoords(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=getCssDimensions$1(t),a=(o?round(n.width):n.width)/r,s=(o?round(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let noOffsets$1=createCoords(0);function getVisualOffsets$1(e){let t=getWindow$1(e);return isWebKit$1()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:noOffsets$1}function shouldAddVisualOffsets$1(e,t,n){return void 0===t&&(t=!1),!!n&&(!t||n===getWindow$1(e))&&t}function getBoundingClientRect$1(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),o=unwrapElement$1(e),a=createCoords(1);t&&(r?isElement$1(r)&&(a=getScale$1(r)):a=getScale$1(e));let s=shouldAddVisualOffsets$1(o,n,r)?getVisualOffsets$1(o):createCoords(0),l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){let e=getWindow$1(o),t=r&&isElement$1(r)?getWindow$1(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=getScale$1(i),t=i.getBoundingClientRect(),r=getComputedStyle$2(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,i=(n=getWindow$1(i)).frameElement}}return rectToClientRect({width:c,height:d,x:l,y:u})}function convertOffsetParentRelativeRectToViewportRelativeRect$1(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=getDocumentElement$1(r),s=!!t&&isTopLayer$1(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=createCoords(1),c=createCoords(0),d=isHTMLElement$1(r);if((d||!d&&!o)&&(("body"!==getNodeName$1(r)||isOverflowElement$1(a))&&(l=getNodeScroll$1(r)),isHTMLElement$1(r))){let e=getBoundingClientRect$1(r);u=getScale$1(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function getClientRects$1(e){return Array.from(e.getClientRects())}function getWindowScrollBarX$1(e){return getBoundingClientRect$1(getDocumentElement$1(e)).left+getNodeScroll$1(e).scrollLeft}function getDocumentRect$1(e){let t=getDocumentElement$1(e),n=getNodeScroll$1(e),r=e.ownerDocument.body,i=max$1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=max$1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+getWindowScrollBarX$1(e),s=-n.scrollTop;return"rtl"===getComputedStyle$2(r).direction&&(a+=max$1(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function getViewportRect$1(e,t){let n=getWindow$1(e),r=getDocumentElement$1(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=isWebKit$1();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function getInnerBoundingClientRect$1(e,t){let n=getBoundingClientRect$1(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=isHTMLElement$1(e)?getScale$1(e):createCoords(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}function getClientRectFromClippingAncestor$1(e,t,n){let r;if("viewport"===t)r=getViewportRect$1(e,n);else if("document"===t)r=getDocumentRect$1(getDocumentElement$1(e));else if(isElement$1(t))r=getInnerBoundingClientRect$1(t,n);else{let n=getVisualOffsets$1(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return rectToClientRect(r)}function hasFixedPositionAncestor$1(e,t){let n=getParentNode$1(e);return!(n===t||!isElement$1(n)||isLastTraversableNode$1(n))&&("fixed"===getComputedStyle$2(n).position||hasFixedPositionAncestor$1(n,t))}function getClippingElementAncestors$1(e,t){let n=t.get(e);if(n)return n;let r=getOverflowAncestors$1(e,[],!1).filter(e=>isElement$1(e)&&"body"!==getNodeName$1(e)),i=null,o="fixed"===getComputedStyle$2(e).position,a=o?getParentNode$1(e):e;for(;isElement$1(a)&&!isLastTraversableNode$1(a);){let t=getComputedStyle$2(a),n=isContainingBlock$1(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||isOverflowElement$1(a)&&!n&&hasFixedPositionAncestor$1(e,a))?r=r.filter(e=>e!==a):i=t,a=getParentNode$1(a)}return t.set(e,r),r}function getClippingRect$1(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?isTopLayer$1(t)?[]:getClippingElementAncestors$1(t,this._c):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=getClientRectFromClippingAncestor$1(t,n,i);return e.top=max$1(r.top,e.top),e.right=min$1(r.right,e.right),e.bottom=min$1(r.bottom,e.bottom),e.left=max$1(r.left,e.left),e},getClientRectFromClippingAncestor$1(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function getDimensions$1(e){let{width:t,height:n}=getCssDimensions$1(e);return{width:t,height:n}}function getRectRelativeToOffsetParent$1(e,t,n){let r=isHTMLElement$1(t),i=getDocumentElement$1(t),o="fixed"===n,a=getBoundingClientRect$1(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=createCoords(0);if(r||!r&&!o){if(("body"!==getNodeName$1(t)||isOverflowElement$1(i))&&(s=getNodeScroll$1(t)),r){let e=getBoundingClientRect$1(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=getWindowScrollBarX$1(i))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function isStaticPositioned$1(e){return"static"===getComputedStyle$2(e).position}function getTrueOffsetParent$1(e,t){return isHTMLElement$1(e)&&"fixed"!==getComputedStyle$2(e).position?t?t(e):e.offsetParent:null}function getOffsetParent$1(e,t){let n=getWindow$1(e);if(isTopLayer$1(e))return n;if(!isHTMLElement$1(e)){let t=getParentNode$1(e);for(;t&&!isLastTraversableNode$1(t);){if(isElement$1(t)&&!isStaticPositioned$1(t))return t;t=getParentNode$1(t)}return n}let r=getTrueOffsetParent$1(e,t);for(;r&&isTableElement$1(r)&&isStaticPositioned$1(r);)r=getTrueOffsetParent$1(r,t);return r&&isLastTraversableNode$1(r)&&isStaticPositioned$1(r)&&!isContainingBlock$1(r)?n:r||getContainingBlock$1(e)||n}let getElementRects$1=async function(e){let t=this.getOffsetParent||getOffsetParent$1,n=this.getDimensions,r=await n(e.floating);return{reference:getRectRelativeToOffsetParent$1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function isRTL$1(e){return"rtl"===getComputedStyle$2(e).direction}let platform$1={convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect$1,getDocumentElement:getDocumentElement$1,getClippingRect:getClippingRect$1,getOffsetParent:getOffsetParent$1,getElementRects:getElementRects$1,getClientRects:getClientRects$1,getDimensions:getDimensions$1,getScale:getScale$1,isElement:isElement$1,isRTL:isRTL$1};function observeMove$1(e,t){let n,r=null,i=getDocumentElement$1(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=floor(c),h={rootMargin:-p+"px "+-floor(i.clientWidth-(u+d))+"px "+-floor(i.clientHeight-(c+f))+"px "+-floor(u)+"px",threshold:max$1(0,min$1(1,l))||1},m=!0;function g(e){let t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{r=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}return a(!0),o}function autoUpdate$1(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=unwrapElement$1(e),d=o||a?[...c?getOverflowAncestors$1(c):[],...getOverflowAncestors$1(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?observeMove$1(c,n):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let m=u?getBoundingClientRect$1(e):null;function g(){let t=getBoundingClientRect$1(e);m&&(t.x!==m.x||t.y!==m.y||t.width!==m.width||t.height!==m.height)&&n(),m=t,i=requestAnimationFrame(g)}return u&&g(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(i)}}let offset$2=offset$3,shift$2=shift$3,flip$2=flip$3,arrow$3=arrow$4,computePosition$1=(e,t,n)=>{let r=new Map,i={platform:platform$1,...n},o={...i.platform,_c:r};return computePosition$2(e,t,{...i,platform:o})},h="react-tooltip-core-styles",w$1="react-tooltip-base-styles",b={core:!1,base:!1};function S({css:e,id:t=w$1,type:n="base",ref:r}){var i,o;if(!e||"undefined"==typeof document||b[n]||"core"===n&&"undefined"!=typeof process&&(null===(i=null==process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||"base"!==n&&"undefined"!=typeof process&&(null===(o=null==process?void 0:process.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(t=h),r||(r={});let{insertAt:a}=r;if(document.getElementById(t))return;let s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css","top"===a&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),b[n]=!0}let E=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[offset$2(Number(i)),flip$2({fallbackAxisSideDirection:"start"}),shift$2({padding:5})],border:s})=>{if(!e||null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};let l=a;return n?(l.push(arrow$3({element:n,padding:5})),computePosition$1(e,t,{placement:r,strategy:o,middleware:l}).then(({x:e,y:t,placement:n,middlewareData:r})=>{var i,o;let a={left:`${e}px`,top:`${t}px`,border:s},{x:l,y:u}=null!==(i=r.arrow)&&void 0!==i?i:{x:0,y:0},c=null!==(o=({top:"bottom",right:"left",bottom:"top",left:"right"})[n.split("-")[0]])&&void 0!==o?o:"bottom",d=s&&{borderBottom:s,borderRight:s},f=0;if(s){let e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...d,[c]:`-${4+f}px`},place:n}})):computePosition$1(e,t,{placement:"bottom",strategy:o,middleware:l}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n}))},A=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),_=(e,t,n)=>{let r=null,i=function(...i){let o=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(o,t)),n||(r&&clearTimeout(r),r=setTimeout(o,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},O=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,k=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>k(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!O(e)||!O(t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>k(e[n],t[n]))},T=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{let n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},L=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(T(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},C="undefined"!=typeof window?react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_2__.useEffect,R=e=>{e.current&&(clearTimeout(e.current),e.current=null)},x="DEFAULT_TOOLTIP_ID",N={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},$=(0,react__WEBPACK_IMPORTED_MODULE_2__.createContext)({getTooltipData:()=>N});function j$1(e=x){return(0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)($).getTooltipData(e)}var z={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},D={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};let q=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:s="top",offset:l=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:d="absolute",middlewares:f,wrapper:p,delayShow:h=0,delayHide:m=0,float:g=!1,hidden:v=!1,noArrow:y=!1,clickable:b=!1,closeOnEsc:w=!1,closeOnScroll:S=!1,closeOnResize:T=!1,openEvents:O,closeEvents:I,globalCloseEvents:A,imperativeModeOnly:x,style:M,position:P,afterShow:N,afterHide:F,content:B,contentWrapperRef:U,isOpen:H,defaultIsOpen:j=!1,setIsOpen:V,activeAnchor:Z,setActiveAnchor:G,border:W,opacity:q,arrowColor:Y,role:$="tooltip"})=>{var K;let X=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),Q=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),J=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),ee=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),et=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),[en,er]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[ei,eo]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),[ea,es]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),[el,eu]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),ec=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),ed=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),{anchorRefs:ef,setActiveAnchor:ep}=j$1(t),eh=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),[em,eg]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),ev=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),ey=c||u.includes("click"),eb=ey||(null==O?void 0:O.click)||(null==O?void 0:O.dblclick)||(null==O?void 0:O.mousedown),e_=O?{...O}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!O&&ey&&Object.assign(e_,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});let eE=I?{...I}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!I&&ey&&Object.assign(eE,{mouseleave:!1,blur:!1,mouseout:!1});let ew=A?{...A}:{escape:w||!1,scroll:S||!1,resize:T||!1,clickOutsideAnchor:eb||!1};x&&(Object.assign(e_,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(eE,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ew,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),C(()=>(ev.current=!0,()=>{ev.current=!1}),[]);let eS=e=>{ev.current&&(e&&es(!0),setTimeout(()=>{ev.current&&(null==V||V(e),void 0===H&&eo(e))},10))};(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{if(void 0===H)return()=>null;H&&es(!0);let e=setTimeout(()=>{eo(H)},10);return()=>{clearTimeout(e)}},[H]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{if(ei!==ec.current){if(R(et),ec.current=ei,ei)null==N||N();else{let e=(e=>{let t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;let[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));et.current=setTimeout(()=>{es(!1),eu(null),null==F||F()},e+25)}}},[ei]);let eT=e=>{er(t=>k(t,e)?t:e)},eO=(e=h)=>{R(J),ea?eS(!0):J.current=setTimeout(()=>{eS(!0)},e)},eI=(e=m)=>{R(ee),ee.current=setTimeout(()=>{eh.current||eS(!1)},e)},eA=e=>{var t;if(!e)return;let n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return G(null),void ep({current:null});h?eO():eS(!0),G(n),ep({current:n}),R(ee)},eC=()=>{b?eI(m||100):m?eI():eS(!1),R(J)},ex=({x:e,y:t})=>{var n;let r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};E({place:null!==(n=null==el?void 0:el.place)&&void 0!==n?n:s,offset:l,elementReference:r,tooltipReference:X.current,tooltipArrowReference:Q.current,strategy:d,middlewares:f,border:W}).then(e=>{eT(e)})},eD=e=>{if(!e)return;let t=e,n={x:t.clientX,y:t.clientY};ex(n),ed.current=n},eR=e=>{var t;if(!ei)return;let n=e.target;n.isConnected&&(null===(t=X.current)||void 0===t||!t.contains(n))&&([document.querySelector(`[id='${o}']`),...em].some(e=>null==e?void 0:e.contains(n))||(eS(!1),R(J)))},eL=_(eA,50,!0),ek=_(eC,50,!0),eM=e=>{ek.cancel(),eL(e)},eP=()=>{eL.cancel(),ek()},eN=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(()=>{var e,t;let n=null!==(e=null==el?void 0:el.position)&&void 0!==e?e:P;n?ex(n):g?ed.current&&ex(ed.current):(null==Z?void 0:Z.isConnected)&&E({place:null!==(t=null==el?void 0:el.place)&&void 0!==t?t:s,offset:l,elementReference:Z,tooltipReference:X.current,tooltipArrowReference:Q.current,strategy:d,middlewares:f,border:W}).then(e=>{ev.current&&eT(e)})},[ei,Z,B,M,s,null==el?void 0:el.place,l,d,P,null==el?void 0:el.position,g]);(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{var e,t;let n=new Set(ef);em.forEach(e=>{n.add({current:e})});let r=document.querySelector(`[id='${o}']`);r&&n.add({current:r});let i=()=>{eS(!1)},a=L(Z),s=L(X.current);ew.scroll&&(window.addEventListener("scroll",i),null==a||a.addEventListener("scroll",i),null==s||s.addEventListener("scroll",i));let l=null;ew.resize?window.addEventListener("resize",i):Z&&X.current&&(l=autoUpdate$1(Z,X.current,eN,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));let u=e=>{"Escape"===e.key&&eS(!1)};ew.escape&&window.addEventListener("keydown",u),ew.clickOutsideAnchor&&window.addEventListener("click",eR);let c=[],d=e=>{ei&&(null==e?void 0:e.target)===Z||eA(e)},f=e=>{ei&&(null==e?void 0:e.target)===Z&&eC()},p=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],h=["click","dblclick","mousedown","mouseup"];Object.entries(e_).forEach(([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:eM}):h.includes(e)&&c.push({event:e,listener:d}))}),Object.entries(eE).forEach(([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:eP}):h.includes(e)&&c.push({event:e,listener:f}))}),g&&c.push({event:"pointermove",listener:eD});let m=()=>{eh.current=!0},v=()=>{eh.current=!1,eC()};return b&&!eb&&(null===(e=X.current)||void 0===e||e.addEventListener("mouseenter",m),null===(t=X.current)||void 0===t||t.addEventListener("mouseleave",v)),c.forEach(({event:e,listener:t})=>{n.forEach(n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)})}),()=>{var e,t;ew.scroll&&(window.removeEventListener("scroll",i),null==a||a.removeEventListener("scroll",i),null==s||s.removeEventListener("scroll",i)),ew.resize?window.removeEventListener("resize",i):null==l||l(),ew.clickOutsideAnchor&&window.removeEventListener("click",eR),ew.escape&&window.removeEventListener("keydown",u),b&&!eb&&(null===(e=X.current)||void 0===e||e.removeEventListener("mouseenter",m),null===(t=X.current)||void 0===t||t.removeEventListener("mouseleave",v)),c.forEach(({event:e,listener:t})=>{n.forEach(n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)})})}},[Z,eN,ea,ef,em,O,I,A,ey,h,m]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{var e,n;let r=null!==(n=null!==(e=null==el?void 0:el.anchorSelect)&&void 0!==e?e:a)&&void 0!==n?n:"";!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);let i=new MutationObserver(e=>{let n=[],i=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&i.push(e.target)),"childList"===e.type){if(Z){let t=[...e.removedNodes].filter(e=>1===e.nodeType);if(r)try{i.push(...t.filter(e=>e.matches(r))),i.push(...t.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,Z))&&(es(!1),eS(!1),G(null),R(J),R(ee),!0)})}if(r)try{let t=[...e.addedNodes].filter(e=>1===e.nodeType);n.push(...t.filter(e=>e.matches(r))),n.push(...t.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}}}),(n.length||i.length)&&eg(e=>[...e.filter(e=>!i.includes(e)),...n])});return i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{i.disconnect()}},[t,a,null==el?void 0:el.anchorSelect,Z]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{eN()},[eN]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{if(!(null==U?void 0:U.current))return()=>null;let e=new ResizeObserver(()=>{setTimeout(()=>eN())});return e.observe(U.current),()=>{e.disconnect()}},[B,null==U?void 0:U.current]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{var e;let t=document.querySelector(`[id='${o}']`),n=[...em,t];Z&&n.includes(Z)||G(null!==(e=em[0])&&void 0!==e?e:t)},[o,em,Z]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>(j&&eS(!0),()=>{R(J),R(ee)}),[]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{var e;let n=null!==(e=null==el?void 0:el.anchorSelect)&&void 0!==e?e:a;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{let e=Array.from(document.querySelectorAll(n));eg(e)}catch(e){eg([])}},[t,a,null==el?void 0:el.anchorSelect]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{J.current&&(R(J),eO(h))},[h]);let eF=null!==(K=null==el?void 0:el.content)&&void 0!==K?K:B,eB=ei&&Object.keys(en.tooltipStyles).length>0;return(0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}eu(null!=e?e:null),(null==e?void 0:e.delay)?eO(e.delay):eS(!0)},close:e=>{(null==e?void 0:e.delay)?eI(e.delay):eS(!1)},activeAnchor:Z,place:en.place,isOpen:!!(ea&&!v&&eF&&eB)})),ea&&!v&&eF?react__WEBPACK_IMPORTED_MODULE_2__.createElement(p,{id:t,role:$,className:classNames$1("react-tooltip",z.tooltip,D.tooltip,D[i],n,`react-tooltip__place-${en.place}`,z[eB?"show":"closing"],eB?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&z.fixed,b&&z.clickable),onTransitionEnd:e=>{R(et),ei||"opacity"!==e.propertyName||(es(!1),eu(null),null==F||F())},style:{...M,...en.tooltipStyles,opacity:void 0!==q&&eB?q:void 0},ref:X},eF,react__WEBPACK_IMPORTED_MODULE_2__.createElement(p,{className:classNames$1("react-tooltip-arrow",z.arrow,D.arrow,r,y&&z.noArrow),style:{...en.tooltipArrowStyles,background:Y?`linear-gradient(to right bottom, transparent 50%, ${Y} 50%)`:void 0},ref:Q})):null},H=({content:e})=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),M=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:s,variant:l="dark",place:u="top",offset:c=10,wrapper:d="div",children:f=null,events:p=["hover"],openOnClick:h=!1,positionStrategy:m="absolute",middlewares:g,delayShow:v=0,delayHide:y=0,float:b=!1,hidden:_=!1,noArrow:E=!1,clickable:w=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:O=!1,openEvents:I,closeEvents:C,globalCloseEvents:x,imperativeModeOnly:D=!1,style:R,position:L,isOpen:k,defaultIsOpen:M=!1,disableStyleInjection:P=!1,border:N,opacity:F,arrowColor:B,setIsOpen:U,afterShow:j,afterHide:V,role:z="tooltip"},Z)=>{let[G,W]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(r),[Y,$]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(i),[K,X]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(u),[Q,J]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(l),[ee,et]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(c),[en,er]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(v),[ei,eo]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(y),[ea,es]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(b),[el,eu]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(_),[ec,ed]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(d),[ef,ep]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(p),[eh,em]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(m),[eg,ev]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),[ey,eb]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),e_=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(P),{anchorRefs:eE,activeAnchor:ew}=j$1(e),eS=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t},{}),eT=e=>{let t={place:e=>{var t;X(null!==(t=e)&&void 0!==t?t:u)},content:e=>{W(null!=e?e:r)},html:e=>{$(null!=e?e:i)},variant:e=>{var t;J(null!==(t=e)&&void 0!==t?t:l)},offset:e=>{et(null===e?c:Number(e))},wrapper:e=>{var t;ed(null!==(t=e)&&void 0!==t?t:d)},events:e=>{let t=null==e?void 0:e.split(" ");ep(null!=t?t:p)},"position-strategy":e=>{var t;em(null!==(t=e)&&void 0!==t?t:m)},"delay-show":e=>{er(null===e?v:Number(e))},"delay-hide":e=>{eo(null===e?y:Number(e))},float:e=>{es(null===e?b:"true"===e)},hidden:e=>{eu(null===e?_:"true"===e)},"class-name":e=>{ev(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)})};(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{W(r)},[r]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{$(i)},[i]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{X(u)},[u]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{J(l)},[l]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{et(c)},[c]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{er(v)},[v]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{eo(y)},[y]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{es(b)},[b]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{eu(_)},[_]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{em(m)},[m]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{e_.current!==P&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[P]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===P,disableBase:P}}))},[]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{var r;let i=new Set(eE),o=n;if(!o&&e&&(o=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach(e=>{i.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}let a=document.querySelector(`[id='${t}']`);if(a&&i.add({current:a}),!i.size)return()=>null;let s=null!==(r=null!=ey?ey:a)&&void 0!==r?r:ew.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;s&&"attributes"===e.type&&(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-"))&&eT(eS(s))})}),u={attributes:!0,childList:!1,subtree:!1};return s&&(eT(eS(s)),l.observe(s,u)),()=>{l.disconnect()}},[eE,ew,ey,t,n]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{(null==R?void 0:R.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),N&&!A("border",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`border\`.`),(null==R?void 0:R.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!A("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)},[]);let eO=f,eI=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);if(o){let e=o({content:(null==ey?void 0:ey.getAttribute("data-tooltip-content"))||G||null,activeAnchor:ey});eO=e?react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",{ref:eI,className:"react-tooltip-content-wrapper"},e):null}else G&&(eO=G);Y&&(eO=react__WEBPACK_IMPORTED_MODULE_2__.createElement(H,{content:Y}));let eA={forwardRef:Z,id:e,anchorId:t,anchorSelect:n,className:classNames$1(a,eg),classNameArrow:s,content:eO,contentWrapperRef:eI,place:K,variant:Q,offset:ee,wrapper:ec,events:ef,openOnClick:h,positionStrategy:eh,middlewares:g,delayShow:en,delayHide:ei,float:ea,hidden:el,noArrow:E,clickable:w,closeOnEsc:S,closeOnScroll:T,closeOnResize:O,openEvents:I,closeEvents:C,globalCloseEvents:x,imperativeModeOnly:D,style:R,position:L,isOpen:k,defaultIsOpen:M,border:N,opacity:F,arrowColor:B,setIsOpen:U,afterShow:j,afterHide:V,activeAnchor:ey,setActiveAnchor:e=>eb(e),role:z};return react__WEBPACK_IMPORTED_MODULE_2__.createElement(q,{...eA})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||S({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||S({css:`
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var propTypes$5={tipId:PropTypes.string,className:PropTypes.string,role:PropTypes.string,place:PropTypes.oneOf(["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"]),type:PropTypes.oneOf([ToolTipType.DEFAULT,ToolTipType.WARNING,ToolTipType.WHITE_TIP]),offset:PropTypes.number,positionStrategy:PropTypes.oneOf(["absolute","fixed"]),afterShow:PropTypes.func,afterHide:PropTypes.func,position:PropTypes.shape({x:PropTypes.number,y:PropTypes.number}),children:PropTypes.node,isOpen:PropTypes.bool},defaultProps$6={tipId:void 0,className:"",role:"tooltip",place:"bottom",type:ToolTipType.DEFAULT,offset:0,positionStrategy:"absolute",afterShow:void 0,afterHide:void 0,position:void 0,children:void 0,isOpen:void 0};function ownKeys$4(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 _objectSpread$4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$4(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _createTooltip=function(e){var t=function(t){var n=t.tipId,r=t.className,i=t.role,o=t.place,a=t.type,s=t.offset,l=t.afterShow,u=t.afterHide,c=t.position,d=t.positionStrategy,f=t.children,p=t.isOpen,h=e?"multimedia-tooltip-mobile":"multimedia-tooltip",m=classNames$1(r,(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},h,a===ToolTipType.DEFAULT),"multimedia-warning-tooltip",a===ToolTipType.WARNING),"multimedia-white-tip",a===ToolTipType.WHITE_TIP)),g=e?{}:{delayHide:a===ToolTipType.WHITE_TIP?WaitingTime.HIDE_HINT_TIP:0,delayShow:WaitingTime.TOOLTIP_DELAY,clickable:a===ToolTipType.WHITE_TIP};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(M,_objectSpread$4(_objectSpread$4({id:n,className:m,role:i,place:o,offset:s,positionStrategy:d,afterShow:l,afterHide:u,position:c,isOpen:p},g),{},{children:f}))};return t.defaultProps=defaultProps$6,t.propTypes=propTypes$5,t.displayName=e?"MobileTooltip":"DesktopTooltip",t},DesktopTooltip=_createTooltip(!1),MobileTooltip=_createTooltip(!0),Tooltip=withRwd(DesktopTooltip,MobileTooltip);function _extends$7(){return(_extends$7=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgBtClose18=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$7({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none"},e),_path$3||(_path$3=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#212121",d:"M5.6 11.576a.583.583 0 0 0 .826.825L9 9.826l2.575 2.575a.583.583 0 0 0 .825-.825L9.826 9 12.4 6.426a.583.583 0 1 0-.825-.825L9 8.176 6.426 5.6a.583.583 0 1 0-.825.825L8.176 9z"})),_path2$3||(_path2$3=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",d:"M0 0h18v18H0z",opacity:.01})))},clearTimer=function(e){e&&(clearTimeout(e),e=null)},closeTimer=null,closeAnimationTimer=null,TopToast=function(e){var t=e.message,n=e.onClose,r=e.autoHide,i=e.duration,o=e.shouldReturnFocusAfterClose,a=e.showCloseButton,s=e.closeHandler,l=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)("top-toast"),u=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(l,2),c=u[0],d=u[1],f=function(){clearTimer(closeTimer),clearTimer(closeAnimationTimer)};return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){var e=i-330;return r?(closeTimer=setTimeout(function(){n()},i),closeAnimationTimer=setTimeout(function(){d("top-toast hidden")},e)):f(),f},[r,i,n]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(Modal,{className:c,overlayClassName:"toast-overlay",shouldCloseOnOverlayClick:!1,isOpen:!0,shouldReturnFocusAfterClose:o,closeIconSrc:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgBtClose18,{}),children:[t,a?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IconButton,{className:"top-toast-close",src:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgBtClose18,{}),handler:s}):null]})};TopToast.propTypes={message:PropTypes.oneOfType([PropTypes.string,PropTypes.element]),onClose:PropTypes.func,autoHide:PropTypes.bool,duration:PropTypes.number,shouldReturnFocusAfterClose:PropTypes.bool,showCloseButton:PropTypes.bool,closeHandler:PropTypes.func},TopToast.defaultProps={message:"",onClose:function(){},autoHide:!0,duration:2e3,shouldReturnFocusAfterClose:!1,showCloseButton:!1,closeHandler:function(){}};var nameColorMap={},COLOR_SET=["#94BF13","#4CBF73","#1DBFBF","#24BFF2","#3D82D1","#FA9C3E","#A18AE5","#FA8282"],getAvatarColor=function(e){return nameColorMap[e]||(nameColorMap[e]=COLOR_SET[Math.floor(10*Math.random())%COLOR_SET.length]),nameColorMap[e]},avatarColorManager={getAvatarColor:getAvatarColor},propTypes$4={circleImage:PropTypes.string,className:PropTypes.string,classSuffix:PropTypes.oneOf(["size24","size42"]),name:PropTypes.string.isRequired,title:PropTypes.string,tipId:PropTypes.string,onLongPress:PropTypes.func},defaultProps$5={circleImage:null,className:"",classSuffix:"size24",title:null,tipId:void 0,onLongPress:void 0},Avatar=function(e){var t=e.circleImage,n=e.className,r=e.classSuffix,i=e.name,o=e.title,a=e.tipId,s=e.onLongPress,l={};t?(l.backgroundImage="url(".concat(t,")"),l.backgroundSize="cover"):l.backgroundColor=avatarColorManager.getAvatarColor(i);var u=t?null:i[0].toUpperCase(),c=classNames$1("multimedia-avatar-".concat(r),(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},n,n)),d=useMobileLongPressEvent(s).setCallBackTargetRef;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:c,style:l,"data-testid":"avatar","data-tooltip-content":o,"data-tooltip-id":a,"data-long-press-delay":WaitingTime.LONG_PRESS,ref:d,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"multimedia-avatar-text",children:u})})};Avatar.propTypes=propTypes$4,Avatar.defaultProps=defaultProps$5;var MenuItem=function(e){var t=e.title,n=e.onClick;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{onClick:n,children:t})};MenuItem.propTypes={title:PropTypes.string.isRequired,onClick:PropTypes.func.isRequired};var MenuList$1=function(e){var t=e.children,n=e.isOpen,r={boxShadow:"0 0 10px 0 rgba(0, 0, 0, 0.1)",borderRadius:"5px",padding:"10px",cursor:"pointer"};return n?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{style:r,children:t}):null};MenuList$1.propTypes={isOpen:PropTypes.bool.isRequired,children:PropTypes.node.isRequired};var Menu$2=function(e){var t=e.buttonComponent,n=e.menuItems,r=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),i=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(r,2),o=i[0],a=i[1],s=function(){if(t){var e=t;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(e,{onClick:function(){return a(function(e){return!e})}})}return null},l=function(){a(!1)};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{children:[s(),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MenuList$1,{isOpen:o,children:n.map(function(e,t){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MenuItem,{title:e.title,onClick:function(){e.onClick(),l()}},t)})})]})};function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}Menu$2.propTypes={buttonComponent:PropTypes.elementType.isRequired,menuItems:PropTypes.arrayOf(PropTypes.shape({title:PropTypes.string.isRequired,onClick:PropTypes.func.isRequired})).isRequired};var StyleSheet=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign=Object.assign;function hash(e,t){return 45^charat(e,0)?(((t<<2^charat(e,0))<<2^charat(e,1))<<2^charat(e,2))<<2^charat(e,3):0}function trim(e){return e.trim()}function match$1(e,t){return(e=t.exec(e))?e[0]:e}function replace(e,t,n){return e.replace(t,n)}function indexof(e,t){return e.indexOf(t)}function charat(e,t){return 0|e.charCodeAt(t)}function substr(e,t,n){return e.slice(t,n)}function strlen(e){return e.length}function sizeof(e){return e.length}function append(e,t){return t.push(e),e}function combine(e,t){return e.map(t).join("")}var line=1,column=1,length=0,position=0,character=0,characters="";function node(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:line,column:column,length:a,return:""}}function copy(e,t){return assign(node("",null,null,"",null,null,0),e,{length:-e.length},t)}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position<length?charat(characters,position++):0,column++,10===character&&(column=1,line++),character}function peek(){return charat(characters,position)}function caret(){return position}function slice(e,t){return substr(characters,e,t)}function token(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(e){return line=column=1,length=strlen(characters=e),position=0,[]}function dealloc(e){return characters="",e}function delimit(e){return trim(slice(position-1,delimiter(91===e?e+2:40===e?e+1:e)))}function whitespace(e){for(;character=peek();)if(character<33)next();else break;return token(e)>2||token(character)>3?"":" "}function escaping(e,t){for(;--t&&next()&&!(character<48)&&!(character>102)&&(!(character>57)||!(character<65))&&(!(character>70)||!(character<97)););return slice(e,caret()+(t<6&&32==peek()&&32==next()))}function delimiter(e){for(;next();)switch(character){case e:return position;case 34:case 39:34!==e&&39!==e&&delimiter(character);break;case 40:41===e&&delimiter(e);break;case 92:next()}return position}function commenter(e,t){for(;next();)if(e+character===57)break;else if(e+character===84&&47===peek())break;return"/*"+slice(t,position-1)+"*"+from(47===e?e:next())}function identifier(e){for(;!token(peek());)next();return slice(e,position)}function compile(e){return dealloc(parse$1("",null,null,null,[""],e=alloc(e),0,[0],e))}function parse$1(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",_=i,E=o,w=r,S=b;g;)switch(h=y,y=next()){case 40:if(108!=h&&58==charat(S,d-1)){-1!=indexof(S+=replace(delimit(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=delimit(y);break;case 9:case 10:case 13:case 32:S+=whitespace(h);break;case 92:S+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=strlen(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(S=replace(S,/\f/g,"")),p>0&&strlen(S)-d&&append(p>32?declaration(S+";",r,n,d-1):declaration(replace(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(append(w=ruleset(S,t,n,u,c,i,s,b,_=[],E=[],d),o),123===y){if(0===c)parse$1(S,t,w,w,_,o,d,s,E);else switch(99===f&&110===charat(S,3)?100:f){case 100:case 108:case 109:case 115:parse$1(e,w,w,r&&append(ruleset(e,w,w,0,0,i,s,b,i,_=[],d),E),i,E,d,s,r?_:E);break;default:parse$1(S,w,w,w,[""],E,0,s,E)}}}u=c=p=0,m=v=1,b=S="",d=a;break;case 58:d=1+strlen(S),p=h;default:if(m<1){if(123==y)--m;else if(125==y&&0==m++&&125==prev())continue}switch(S+=from(y),y*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(strlen(S)-1)*v,v=1;break;case 64:45===peek()&&(S+=delimit(next())),f=peek(),c=d=strlen(b=S+=identifier(caret())),y++;break;case 45:45===h&&2==strlen(S)&&(m=0)}}return o}function ruleset(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=0===i?o:[""],p=sizeof(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=substr(e,d+1,d=abs(m=a[h])),b=e;v<p;++v)(b=trim(m>0?f[v]+" "+y:replace(y,/&\f/g,f[v])))&&(l[g++]=b);return node(e,t,n,0===i?RULESET:s,l,u,c)}function comment(e,t,n){return node(e,t,n,COMMENT,from(char()),substr(e,2,-2),0)}function declaration(e,t,n,r){return node(e,t,n,DECLARATION,substr(e,0,r),substr(e,r+1,-1),r)}function serialize(e,t){for(var n="",r=sizeof(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function stringify(e,t,n,r){switch(e.type){case LAYER:if(e.children.length)break;case IMPORT:case DECLARATION:return e.return=e.return||e.value;case COMMENT:return"";case KEYFRAMES:return e.return=e.value+"{"+serialize(e.children,r)+"}";case RULESET:e.value=e.props.join(",")}return strlen(n=serialize(e.children,r))?e.return=e.value+"{"+n+"}":""}function middleware(e){var t=sizeof(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function rulesheet(e){return function(t){!t.root&&(t=t.return)&&e(t)}}function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var identifierWithPointTracking=function(e,t,n){for(var r=0,i=0;r=i,i=peek(),38===r&&12===i&&(t[n]=1),!token(i);)next();return slice(e,position)},toRules=function(e,t){var n=-1,r=44;do switch(token(r)){case 0:38===r&&12===peek()&&(t[n]=1),e[n]+=identifierWithPointTracking(position-1,t,n);break;case 2:e[n]+=delimit(r);break;case 4:if(44===r){e[++n]=58===peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=from(r)}while(r=next());return e},getRules=function(e,t){return dealloc(toRules(alloc(e),t))},fixedElements=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements.get(n))&&!r){fixedElements.set(e,!0);for(var i=[],o=getRules(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},removeLabel=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ignoreFlag="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",isIgnoringComment=function(e){return"comm"===e.type&&e.children.indexOf(ignoreFlag)>-1},createUnsafeSelectorsAlarm=function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent?t.parent.children:r,a=o.length-1;a>=0;a--){var s=o[a];if(s.line<t.line)break;if(s.column<t.column){if(isIgnoringComment(s))return;break}}i.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}},isImportRule=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},isPrependedWithRegularRules=function(e,t){for(var n=e-1;n>=0;n--)if(!isImportRule(t[n]))return!0;return!1},nullifyElement=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},incorrectImportAlarm=function(e,t,n){isImportRule(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),nullifyElement(e)):isPrependedWithRegularRules(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),nullifyElement(e)))};function prefix(e,t){switch(hash(e,t)){case 5103:return WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+e+MOZ+e+MS+e+e;case 6828:case 4268:return WEBKIT+e+MS+e+e;case 6165:return WEBKIT+e+MS+"flex-"+e+e;case 5187:return WEBKIT+e+replace(e,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+e;case 5443:return WEBKIT+e+MS+"flex-item-"+replace(e,/flex-|-self/,"")+e;case 4675:return WEBKIT+e+MS+"flex-line-pack"+replace(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT+e+MS+replace(e,"shrink","negative")+e;case 5292:return WEBKIT+e+MS+replace(e,"basis","preferred-size")+e;case 6060:return WEBKIT+"box-"+replace(e,"-grow","")+WEBKIT+e+MS+replace(e,"grow","positive")+e;case 4554:return WEBKIT+replace(e,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+e;case 6187:return replace(replace(replace(e,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return replace(e,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(e,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return replace(e,/(.+)-inline(.+)/,WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(e)-1-t>6)switch(charat(e,t+1)){case 109:if(45!==charat(e,t+4))break;case 102:return replace(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch")?prefix(replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat(e,t+1))break;case 6444:switch(charat(e,strlen(e)-3-(~indexof(e,"!important")&&10))){case 107:return replace(e,":",":"+WEBKIT)+e;case 101:return replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(e,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+e}break;case 5936:switch(charat(e,t+11)){case 114:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT+e+MS+e+e}return e}var prefixer=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length);break;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],r);case RULESET:if(e.length)return combine(e.props,function(t){switch(match$1(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(e,{props:[replace(t,/:(read-\w+)/,":"+MOZ+"$1")]})],r);case"::placeholder":return serialize([copy(e,{props:[replace(t,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,MS+"input-$1")]})],r)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(e){var t,n,r,i=e.key;if("css"===i){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var a=e.stylisPlugins||defaultStylisPlugins,s={},l=[];t=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)});var u=middleware([compat,removeLabel].concat(a,[stringify,rulesheet(function(e){r.insert(e)})])),c=function(e){return serialize(compile(e),u)};n=function(e,t,n,i){r=n,c(e?e+"{"+t.styles+"}":t.styles),i&&(d.inserted[t.name]=!0)};var d={key:i,sheet:new StyleSheet({key:i,container:t,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:n};return d.sheet.hydrate(l),d},reactIs=requireReactIs(),FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS,TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var isBrowser$1=!0;function getRegisteredStyles(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}var registerStyles=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===isBrowser$1)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},insertStyles=function(e,t,n){registerStyles(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}};function murmur2(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ILLEGAL_ESCAPE_SEQUENCE_ERROR="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize(function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,function(e,t,n){return cursor={name:t,styles:n,next:cursor},t})}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var i=cursor,o=n(e);return cursor=i,handleInterpolation(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=handleInterpolation(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":isProcessableValue(a)&&(r+=processStyleName(o)+":"+processStyleValue(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)isProcessableValue(a[s])&&(r+=processStyleName(o)+":"+processStyleValue(o,a[s])+";");else{var l=handleInterpolation(e,t,a);switch(o){case"animation":case"animationName":r+=processStyleName(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}var labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g,serializeStyles=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r,i=!0,o="";cursor=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=handleInterpolation(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=handleInterpolation(n,t,e[s]),i&&(o+=a[s]);labelPattern.lastIndex=0;for(var l="";null!==(r=labelPattern.exec(o));)l+="-"+r[1];return{name:murmur2(o)+l,styles:o,next:cursor}},syncFallback=function(e){return e()},useInsertionEffect$1=!!(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_2__,2))).useInsertionEffect&&(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_2__,2))).useInsertionEffect,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect$1||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect$1||react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect,hasOwn={}.hasOwnProperty,EmotionCacheContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext("undefined"!=typeof HTMLElement?createCache({key:"css"}):null);EmotionCacheContext.Provider;var withEmotionCache=function(e){return(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(t,n){return e(t,(0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(EmotionCacheContext),n)})},ThemeContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext({}),getLastPart=function(e){var t=e.split(".");return t[t.length-1]},getFunctionNameFromStackTraceLine=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e)))return getLastPart(t[1])},internalReactFunctionNames=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),sanitizeIdentifier=function(e){return e.replace(/\$/g,"-")},getLabelFromStackTrace=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=getFunctionNameFromStackTraceLine(t[n]);if(r){if(internalReactFunctionNames.has(r))break;if(/^[A-Z]/.test(r))return sanitizeIdentifier(r)}}},typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",labelPropName="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",createEmotionProps=function(e,t){var n={};for(var r in t)hasOwn.call(t,r)&&(n[r]=t[r]);return n[typePropName]=e,n},Insertion$1=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return registerStyles(t,n,r),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(t,n,r)}),null},Emotion=withEmotionCache(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[typePropName],o=[r],a="";"string"==typeof e.className?a=getRegisteredStyles(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=serializeStyles(o,void 0,react__WEBPACK_IMPORTED_MODULE_2__.useContext(ThemeContext));a+=t.key+"-"+s.name;var l={};for(var u in e)hasOwn.call(e,u)&&"css"!==u&&u!==typePropName&&(l[u]=e[u]);return l.ref=n,l.className=a,react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(Insertion$1,{cache:t,serialized:s,isStringTag:"string"==typeof i}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(i,l))}),Emotion$1=Emotion,pkg={},jsx=function(e,t){var n=arguments;if(null==t||!hasOwn.call(t,"css"))return react__WEBPACK_IMPORTED_MODULE_2__.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Emotion$1,i[1]=createEmotionProps(e,t);for(var o=2;o<r;o++)i[o]=n[o];return react__WEBPACK_IMPORTED_MODULE_2__.createElement.apply(null,i)},warnedAboutCssPropForGlobal=!1,Global=withEmotionCache(function(e,t){var n=serializeStyles([e.styles],void 0,react__WEBPACK_IMPORTED_MODULE_2__.useContext(ThemeContext)),r=react__WEBPACK_IMPORTED_MODULE_2__.useRef();return useInsertionEffectWithLayoutFallback(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}},[t]),useInsertionEffectWithLayoutFallback(function(){var e=r.current,i=e[0];if(e[1]){e[1]=!1;return}if(void 0!==n.next&&insertStyles(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function css$2(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return serializeStyles(t)}var keyframes=function(){var e=css$2.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},classnames=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function merge(e,t,n){var r=[],i=getRegisteredStyles(e,r,n);return r.length<2?n:i+t(r)}var Insertion=function(e){var t=e.cache,n=e.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var e=0;e<n.length;e++)insertStyles(t,n[e],!1)}),null},ClassNames=withEmotionCache(function(e,t){var n=!1,r=[],i=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=serializeStyles(n,t.registered);return r.push(o),registerStyles(t,o,!1),t.key+"-"+o.name},o=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return merge(t.registered,i,classnames(n))},a={css:i,cx:o,theme:react__WEBPACK_IMPORTED_MODULE_2__.useContext(ThemeContext)},s=e.children(a);return n=!0,react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(Insertion,{cache:t,serializedArr:r}),s)});function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=getComputedStyle$1(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isTopLayer(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function isContainingBlock(e){let t=isWebKit(),n=getComputedStyle$1(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t)&&!isTopLayer(t);){if(isContainingBlock(t))return t;t=getParentNode(t)}return null}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if("html"===getNodeName(e))return e;let t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){let t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=getNearestOverflowAncestor(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=getWindow(i);return o?t.concat(a,a.visualViewport||[],isOverflowElement(i)?i:[],a.frameElement&&n?getOverflowAncestors(a.frameElement):[]):t.concat(i,getOverflowAncestors(i,[],n))}function getCssDimensions(e){let t=getComputedStyle$1(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=isHTMLElement(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=round$1(n)!==o||round$1(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){let t=unwrapElement(e);if(!isHTMLElement(t))return createCoords$1(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=getCssDimensions(t),a=(o?round$1(n.width):n.width)/r,s=(o?round$1(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let noOffsets=createCoords$1(0);function getVisualOffsets(e){let t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!!n&&(!t||n===getWindow(e))&&t}function getBoundingClientRect(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),o=unwrapElement(e),a=createCoords$1(1);t&&(r?isElement(r)&&(a=getScale(r)):a=getScale(e));let s=shouldAddVisualOffsets(o,n,r)?getVisualOffsets(o):createCoords$1(0),l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){let e=getWindow(o),t=r&&isElement(r)?getWindow(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=getScale(i),t=i.getBoundingClientRect(),r=getComputedStyle$1(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,i=(n=getWindow(i)).frameElement}}return rectToClientRect({width:c,height:d,x:l,y:u})}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=getDocumentElement(r),s=!!t&&isTopLayer(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=createCoords$1(1),c=createCoords$1(0),d=isHTMLElement(r);if((d||!d&&!o)&&(("body"!==getNodeName(r)||isOverflowElement(a))&&(l=getNodeScroll(r)),isHTMLElement(r))){let e=getBoundingClientRect(r);u=getScale(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getNodeScroll(e).scrollLeft}function getDocumentRect(e){let t=getDocumentElement(e),n=getNodeScroll(e),r=e.ownerDocument.body,i=max$2(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=max$2(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+getWindowScrollBarX(e),s=-n.scrollTop;return"rtl"===getComputedStyle$1(r).direction&&(a+=max$2(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function getViewportRect(e,t){let n=getWindow(e),r=getDocumentElement(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=isWebKit();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function getInnerBoundingClientRect(e,t){let n=getBoundingClientRect(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=isHTMLElement(e)?getScale(e):createCoords$1(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}function getClientRectFromClippingAncestor(e,t,n){let r;if("viewport"===t)r=getViewportRect(e,n);else if("document"===t)r=getDocumentRect(getDocumentElement(e));else if(isElement(t))r=getInnerBoundingClientRect(t,n);else{let n=getVisualOffsets(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return rectToClientRect(r)}function hasFixedPositionAncestor(e,t){let n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===getComputedStyle$1(n).position||hasFixedPositionAncestor(n,t))}function getClippingElementAncestors(e,t){let n=t.get(e);if(n)return n;let r=getOverflowAncestors(e,[],!1).filter(e=>isElement(e)&&"body"!==getNodeName(e)),i=null,o="fixed"===getComputedStyle$1(e).position,a=o?getParentNode(e):e;for(;isElement(a)&&!isLastTraversableNode(a);){let t=getComputedStyle$1(a),n=isContainingBlock(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||isOverflowElement(a)&&!n&&hasFixedPositionAncestor(e,a))?r=r.filter(e=>e!==a):i=t,a=getParentNode(a)}return t.set(e,r),r}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=getClientRectFromClippingAncestor(t,n,i);return e.top=max$2(r.top,e.top),e.right=min$2(r.right,e.right),e.bottom=min$2(r.bottom,e.bottom),e.left=max$2(r.left,e.left),e},getClientRectFromClippingAncestor(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function getDimensions(e){let{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}}function getRectRelativeToOffsetParent(e,t,n){let r=isHTMLElement(t),i=getDocumentElement(t),o="fixed"===n,a=getBoundingClientRect(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=createCoords$1(0);if(r||!r&&!o){if(("body"!==getNodeName(t)||isOverflowElement(i))&&(s=getNodeScroll(t)),r){let e=getBoundingClientRect(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=getWindowScrollBarX(i))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function isStaticPositioned(e){return"static"===getComputedStyle$1(e).position}function getTrueOffsetParent(e,t){return isHTMLElement(e)&&"fixed"!==getComputedStyle$1(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){let n=getWindow(e);if(isTopLayer(e))return n;if(!isHTMLElement(e)){let t=getParentNode(e);for(;t&&!isLastTraversableNode(t);){if(isElement(t)&&!isStaticPositioned(t))return t;t=getParentNode(t)}return n}let r=getTrueOffsetParent(e,t);for(;r&&isTableElement(r)&&isStaticPositioned(r);)r=getTrueOffsetParent(r,t);return r&&isLastTraversableNode(r)&&isStaticPositioned(r)&&!isContainingBlock(r)?n:r||getContainingBlock(e)||n}let getElementRects=async function(e){let t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,r=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function isRTL(e){return"rtl"===getComputedStyle$1(e).direction}let platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(e,t){let n,r=null,i=getDocumentElement(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=floor$1(c),h={rootMargin:-p+"px "+-floor$1(i.clientWidth-(u+d))+"px "+-floor$1(i.clientHeight-(c+f))+"px "+-floor$1(u)+"px",threshold:max$2(0,min$2(1,l))||1},m=!0;function g(e){let t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{r=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}return a(!0),o}function autoUpdate(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=unwrapElement(e),d=o||a?[...c?getOverflowAncestors(c):[],...getOverflowAncestors(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?observeMove(c,n):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let m=u?getBoundingClientRect(e):null;function g(){let t=getBoundingClientRect(e);m&&(t.x!==m.x||t.y!==m.y||t.width!==m.width||t.height!==m.height)&&n(),m=t,i=requestAnimationFrame(g)}return u&&g(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(i)}}let detectOverflow=detectOverflow$1,offset$1=offset$3,autoPlacement$1=autoPlacement$2,shift$1=shift$3,flip$1=flip$3,size$1=size$2,hide$1=hide$2,arrow$2=arrow$4,inline$1=inline$2,limitShift$1=limitShift$2,computePosition=(e,t,n)=>{let r=new Map,i={platform,...n},o={...i.platform,_c:r};return computePosition$2(e,t,{...i,platform:o})};var index$2=react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect,_excluded$4$1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],noop=function(){};function applyPrefixToName(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function classNames(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(applyPrefixToName(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var cleanValue=function(e){return isArray(e)?e.filter(Boolean):"object"===(0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_11__.Z)(e)&&null!==e?[e]:[]},cleanCommonProps=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$4$1);return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},t)},getStyleProps=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function isDocumentElement(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function normalizedHeight(e){return isDocumentElement(e)?window.innerHeight:e.clientHeight}function getScrollTop(e){return isDocumentElement(e)?window.pageYOffset:e.scrollTop}function scrollTo(e,t){if(isDocumentElement(e)){window.scrollTo(0,t);return}e.scrollTop=t}function getScrollParent(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function easeOutCubic(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function animatedScrollTo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:noop,i=getScrollTop(e),o=t-i,a=10,s=0;function l(){scrollTo(e,easeOutCubic(s+=a,i,o,n)),s<n?window.requestAnimationFrame(l):r(e)}l()}function scrollIntoView(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?scrollTo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&scrollTo(e,Math.max(t.offsetTop-i,0))}function getBoundingClientObj(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function isTouchCapable(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var passiveOptionAccessed=!1,options={get passive(){return passiveOptionAccessed=!0}},w="undefined"!=typeof window?window:{};w.addEventListener&&w.removeEventListener&&(w.addEventListener("p",noop,options),w.removeEventListener("p",noop,!1));var supportsPassiveEvents=passiveOptionAccessed;function notNullish(e){return null!=e}function isArray(e){return Array.isArray(e)}function valueTernary(e,t,n){return e?t:n}function singleValueAsValue(e){return e}function multiValueAsValue(e){return e}var removeProps=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},_excluded$3$1=["children","innerProps"],_excluded2$1=["children","innerProps"];function getMenuPlacement(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=getScrollParent(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:normalizedHeight(l),v=getScrollTop(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),_=m-b,E=g-h,w=_+v,S=c-v-h,T=f-g+v+y,O=v+h-b,I=160;switch(i){case"auto":case"bottom":if(E>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!a)return o&&animatedScrollTo(l,T,I),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&E>=r)return o&&animatedScrollTo(l,T,I),{placement:"bottom",maxHeight:a?E-y:S-y};if("auto"===i||a){var A=t,C=a?_:w;return C>=r&&(A=Math.min(C-y-s,t)),{placement:"top",maxHeight:A}}if("bottom"===i)return o&&scrollTo(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(w>=p&&!a)return o&&animatedScrollTo(l,O,I),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&_>=r){var x=t;return(!a&&w>=r||a&&_>=r)&&(x=a?_-b:w-b),o&&animatedScrollTo(l,O,I),{placement:"top",maxHeight:x}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return u}function alignToControl(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var coercePlacement=function(e){return"auto"===e?"bottom":e},menuCSS=function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((n={label:"menu"},(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(n,alignToControl(r),"100%"),(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(n,"position","absolute"),(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(n,"width","100%"),(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},PortalPlacementContext=(0,react__WEBPACK_IMPORTED_MODULE_2__.createContext)(null),MenuPlacer=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=((0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(PortalPlacementContext)||{}).setPortalPlacement,u=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),c=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(r),d=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(c,2),f=d[0],p=d[1],h=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),m=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(h,2),g=m[0],v=m[1],y=s.spacing.controlHeight;return index$2(function(){var e=u.current;if(e){var t="fixed"===o,s=a&&!t,c=getMenuPlacement({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s,isFixedPosition:t,controlHeight:y});p(c.maxHeight),v(c.placement),null==l||l(c.placement)}},[r,i,o,a,n,l,y]),t({ref:u,placerProps:(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},e),{},{placement:g||coercePlacement(i),maxHeight:f})})},Menu=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"menu",{menu:!0}),{ref:n},r),t)},Menu$1=Menu,menuListCSS=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},MenuList=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},noticeCSS=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage=function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$3$1);return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},LoadingMessage=function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded2$1);return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},menuPortalCSS=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},MenuPortal=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,a=e.menuPosition,s=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),l=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),u=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(coercePlacement(o)),c=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(u,2),d=c[0],f=c[1],p=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return{setPortalPlacement:f}},[]),h=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),m=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(h,2),g=m[0],v=m[1],y=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(){if(r){var e=getBoundingClientObj(r),t="fixed"===a?0:window.pageYOffset,n=e[d]+t;(n!==(null==g?void 0:g.offset)||e.left!==(null==g?void 0:g.rect.left)||e.width!==(null==g?void 0:g.rect.width))&&v({offset:n,rect:e})}},[r,a,d,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);index$2(function(){y()},[y]);var b=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&s.current&&(l.current=autoUpdate(r,s.current,y,{elementResize:"ResizeObserver"in window}))},[r,y]);index$2(function(){b()},[b]);var _=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){s.current=e,b()},[b]);if(!t&&"fixed"!==a||!g)return null;var E=jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({ref:_},getStyleProps((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},e),{},{offset:g.offset,position:a,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return jsx(PortalPlacementContext.Provider,{value:p},t?(0,react_dom__WEBPACK_IMPORTED_MODULE_4__.createPortal)(E,t):E)},containerCSS=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},SelectContainer=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},valueContainerCSS=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},ValueContainer=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)},indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer=function(e){var t=e.children,n=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"indicatorsContainer",{indicators:!0}),n),t)},_excluded$2$1=["size"],_excluded2=["innerProps","isRtl","size"];function _EMOTION_STRINGIFIED_CSS_ERROR__$3(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2$2={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Svg=function(e){var t=e.size,n=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$2$1);return jsx("svg",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},n))},CrossIcon=function(e){return jsx(Svg,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({size:20},e),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(e){return jsx(Svg,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({size:20},e),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},dropdownIndicatorCSS=baseCSS,DropdownIndicator=function(e){var t=e.children,n=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||jsx(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator=function(e){var t=e.children,n=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||jsx(CrossIcon,null))},indicatorSeparatorCSS=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},IndicatorSeparator=function(e){var t=e.innerProps;return jsx("span",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},t,getStyleProps(e,"indicatorSeparator",{"indicator-separator":!0})))},loadingDotAnimations=keyframes(_templateObject||(_templateObject=(0,_babel_runtime_helpers_esm_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_14__.Z)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),loadingIndicatorCSS=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},LoadingDot=function(e){var t=e.delay,n=e.offset;return jsx("span",{css:css$2({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},LoadingIndicator=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded2);return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),jsx(LoadingDot,{delay:0,offset:n}),jsx(LoadingDot,{delay:160,offset:!0}),jsx(LoadingDot,{delay:320,offset:!n}))},css$1=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius,s=i.spacing;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},Control=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({ref:i},getStyleProps(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},Control$1=Control,_excluded$1$1=["data"],groupCSS=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},Group=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"group",{group:!0}),s),jsx(o,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:i,cx:n}),l),jsx("div",null,t))},groupHeadingCSS=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},GroupHeading=function(e){var t=cleanCommonProps(e);t.data;var n=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(t,_excluded$1$1);return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"groupHeading",{"group-heading":!0}),n))},Group$1=Group,_excluded$5=["innerRef","isDisabled","isHidden","inputClassName"],inputCSS=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},containerStyle),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},spacingStyle={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},containerStyle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},spacingStyle)},inputStyle=function(e){return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},spacingStyle)},Input=function(e){var t=e.cx,n=e.value,r=cleanCommonProps(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(r,_excluded$5);return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"input",{"input-container":!0}),{"data-value":n||""}),jsx("input",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({className:t({input:!0},s),ref:i,style:inputStyle(a),disabled:o},l)))},Input$1=Input,multiValueCSS=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabelCSS=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemoveCSS=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},MultiValueGeneric=function(e){var t=e.children;return jsx("div",e.innerProps,t)},MultiValueContainer=MultiValueGeneric,MultiValueLabel=MultiValueGeneric;function MultiValueRemove(e){var t=e.children,n=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({role:"button"},n),t||jsx(CrossIcon,{size:14}))}var MultiValue=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return jsx(l,{data:r,innerProps:(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},getStyleProps(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},jsx(u,{data:r,innerProps:(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},getStyleProps(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),jsx(c,{data:r,innerProps:(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},getStyleProps(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValue$1=MultiValue,optionCSS=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Option=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Option$1=Option,placeholderCSS=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},Placeholder=function(e){var t=e.children,n=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"placeholder",{placeholder:!0}),n),t)},Placeholder$1=Placeholder,css=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SingleValue=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return jsx("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},getStyleProps(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},SingleValue$1=SingleValue,components={ClearIndicator:ClearIndicator,Control:Control$1,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group$1,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:IndicatorSeparator,Input:Input$1,LoadingIndicator:LoadingIndicator,Menu:Menu$1,MenuList:MenuList,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue$1,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option$1,Placeholder:Placeholder$1,SelectContainer:SelectContainer,SingleValue:SingleValue$1,ValueContainer:ValueContainer},defaultComponents=function(e){return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},components),e.components)},safeIsNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function isEqual$1(e,t){return!!(e===t||safeIsNaN(e)&&safeIsNaN(t))}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!isEqual$1(e[n],t[n]))return!1;return!0}function memoizeOne(e,t){void 0===t&&(t=areInputsEqual);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}function _EMOTION_STRINGIFIED_CSS_ERROR__$2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var _ref={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},A11yText=function(e){return jsx("span",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({css:_ref},e))},A11yText$1=A11yText,defaultAriaLiveMessages={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(o).concat(f,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},LiveRegion=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,u=e.isAppleDevice,c=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,v=s.options,y=s.screenReaderStatus,b=s.tabSelectsValue,_=s.isLoading,E=s["aria-label"],w=s["aria-live"],S=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},defaultAriaLiveMessages),c||{})},[c]),T=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){var e="";if(t&&S.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,s=t.value,l=function(e){return Array.isArray(e)?null:e},u=i||n||l(s),c=u?d(u):"",f=r||o||void 0,p=f?f.map(d):[],m=(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({isDisabled:u&&h(u,a),label:c,labels:p},t);e=S.onChange(m)}return e},[t,S,h,a,d]),O=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(s)}return e},[n,r,d,h,S,i,a,u]),I=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){var e="";if(g&&v.length&&!_&&S.onFilter){var t=y({count:i.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,g,S,v,y,_]),A=(null==t?void 0:t.action)==="initial-input-focus",C=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":E,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:A})}return e},[E,n,r,p,h,m,g,S,a,b,A]),x=jsx(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,jsx("span",{id:"aria-selection"},T),jsx("span",{id:"aria-focused"},O),jsx("span",{id:"aria-results"},I),jsx("span",{id:"aria-guidance"},C));return jsx(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,jsx(A11yText$1,{id:l},A&&x),jsx(A11yText$1,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!A&&x))},LiveRegion$1=LiveRegion,diacritics=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],anyDiacritic=RegExp("["+diacritics.map(function(e){return e.letters}).join("")+"]","g"),diacriticToBase={},i$1=0;i$1<diacritics.length;i$1++)for(var diacritic=diacritics[i$1],j=0;j<diacritic.letters.length;j++)diacriticToBase[diacritic.letters[j]]=diacritic.base;var stripDiacritics=function(e){return e.replace(anyDiacritic,function(e){return diacriticToBase[e]})},memoizedStripDiacriticsForInput=memoizeOne(stripDiacritics),trimString=function(e){return e.replace(/^\s+|\s+$/g,"")},defaultStringify=function(e){return"".concat(e.label," ").concat(e.value)},createFilter=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,u=s?trimString(n):n,c=s?trimString(a(t)):a(t);return i&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=memoizedStripDiacriticsForInput(u),c=stripDiacritics(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1}},_excluded$4=["innerRef"];function DummyInput(e){var t=e.innerRef,n=removeProps((0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$4),"onExited","in","enter","exit","appear");return jsx("input",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({ref:t},n,{css:css$2({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var cancelScroll=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function useScrollCapture(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),s=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),l=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(0),u=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),c=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,d=l.scrollHeight,f=l.clientHeight,p=u.current,h=t>0,m=d-f-c,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(o&&o(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>c&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&cancelScroll(e)}},[n,r,i,o]),d=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){c(e,e.deltaY)},[c]),f=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),p=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;c(e,t)},[c]),h=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){if(e){var t=!!supportsPassiveEvents&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}},[p,f,d]),m=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))},[p,f,d]);return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){if(t){var e=u.current;return h(e),function(){m(e)}}},[t,h,m]),function(e){u.current=e}}var STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e){e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var canUseDOM=!!("undefined"!=typeof window&&window.document&&window.document.createElement),activeScrollLocks=0,listenerOptions={capture:!1,passive:!1};function useScrollLock(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({}),o=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),a=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){if(canUseDOM){var t=document.body,n=t&&t.style;if(r&&STYLE_KEYS.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&activeScrollLocks<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(LOCK_STYLES).forEach(function(e){var t=LOCK_STYLES[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&isTouchDevice()&&(t.addEventListener("touchmove",preventTouchMove,listenerOptions),e&&(e.addEventListener("touchstart",preventInertiaScroll,listenerOptions),e.addEventListener("touchmove",allowTouchMove,listenerOptions))),activeScrollLocks+=1}},[r]),s=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e){if(canUseDOM){var t=document.body,n=t&&t.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),r&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&isTouchDevice()&&(t.removeEventListener("touchmove",preventTouchMove,listenerOptions),e&&(e.removeEventListener("touchstart",preventInertiaScroll,listenerOptions),e.removeEventListener("touchmove",allowTouchMove,listenerOptions)))}},[r]);return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){if(t){var e=o.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){o.current=e}}function _EMOTION_STRINGIFIED_CSS_ERROR__$1(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var blurSelectInput=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},_ref2$1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ScrollManager(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=useScrollCapture({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=useScrollLock({isEnabled:n}),a=function(e){i(e),o(e)};return jsx(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,n&&jsx("div",{onClick:blurSelectInput,css:_ref2$1}),t(a))}function _EMOTION_STRINGIFIED_CSS_ERROR__(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},RequiredInput=function(e){return jsx("input",{required:!0,name:e.name,tabIndex:-1,"aria-hidden":"true",onFocus:e.onFocus,css:_ref2,value:"",onChange:function(){}})},RequiredInput$1=RequiredInput;function testPlatform(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function isIPhone(){return testPlatform(/^iPhone/i)}function isMac$1(){return testPlatform(/^Mac/i)}function isIPad(){return testPlatform(/^iPad/i)||isMac$1()&&navigator.maxTouchPoints>1}function isIOS(){return isIPhone()||isIPad()}function isAppleDevice(){return isMac$1()||isIOS()}var formatGroupLabel=function(e){return e.label},getOptionLabel$1=function(e){return e.label},getOptionValue$1=function(e){return e.value},isOptionDisabled=function(e){return!!e.isDisabled},defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css$1,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css,valueContainer:valueContainerCSS},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},borderRadius=4,baseUnit=4,controlHeight=38,menuGutter=2*baseUnit,spacing={baseUnit:baseUnit,controlHeight:controlHeight,menuGutter:menuGutter},defaultTheme={borderRadius:borderRadius,colors:colors,spacing:spacing},defaultProps$4={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:createFilter(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel$1,getOptionValue:getOptionValue$1,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function toCategorizedOption(e,t,n,r){var i=_isOptionDisabled(e,t,n),o=_isOptionSelected(e,t,n),a=getOptionLabel(e,t),s=getOptionValue(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function buildCategorizedOptions(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return toCategorizedOption(e,n,t,r)}).filter(function(t){return isFocusable(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=toCategorizedOption(e,n,t,r);return isFocusable(e,o)?o:void 0}).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_15__.Z)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function buildFocusableOptionsWithIds(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,(0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_15__.Z)(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function buildFocusableOptions(e,t){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(e,t))}function isFocusable(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!shouldHideSelectedOptions(e)||!o)&&_filterOption(e,{label:a,value:s,data:i},r)}function getNextFocusedValue(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}function getNextFocusedOption(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var getFocusedOptionId=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},getOptionLabel=function(e,t){return e.getOptionLabel(t)},getOptionValue=function(e,t){return e.getOptionValue(t)};function _isOptionDisabled(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _isOptionSelected(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=getOptionValue(e,t);return n.some(function(t){return getOptionValue(e,t)===r})}function _filterOption(e,t,n){return!e.filterOption||e.filterOption(t,n)}var shouldHideSelectedOptions=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},instanceId=1,Select$1=function(e){(0,_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_16__.Z)(n,e);var t=(0,_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_17__.Z)(n);function n(e){var r;if((0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__.Z)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=isAppleDevice(),r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue(multiValueAsValue(a.filter(function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else if(l){r.ariaOnChange(singleValueAsValue(e),{action:"select-option",option:e,name:o});return}else i?r.setValue(multiValueAsValue([].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_15__.Z)(a),[e])),"select-option",e):r.setValue(singleValueAsValue(e),"select-option");n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),a=valueTernary(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(valueTernary(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=valueTernary(e,i,i[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return getFocusedOptionId(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return classNames.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return getOptionLabel(r.props,e)},r.getOptionValue=function(e){return getOptionValue(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,i=defaultStyles[e](t,n);i.boxSizing="border-box";var o=r.props.styles[e];return o?o(i,t):i},r.getClassNames=function(e,t){var n,i;return null===(n=(i=r.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return defaultComponents(r.props)},r.buildCategorizedOptions=function(){return buildCategorizedOptions(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&isDocumentElement(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY),a=5;r.userIsDragging=i>a||o>a}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return shouldHideSelectedOptions(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing||e.shiftKey||!u||!d||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h||r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++instanceId),r.state.selectValue=cleanValue(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=getFocusedOptionId(i,o[a])}return r}return(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&scrollIntoView(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(defaultTheme):(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},defaultTheme),this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return _isOptionDisabled(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return _isOptionSelected(this.props,e,t)}},{key:"filterOption",value:function(e,t){return _filterOption(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,u=this.getComponents().Input,c=this.state,d=c.inputIsHidden,f=c.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==f?void 0:f.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},m)):react__WEBPACK_IMPORTED_MODULE_2__.createElement(DummyInput,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!c)return p?null:react__WEBPACK_IMPORTED_MODULE_2__.createElement(s,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},l,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map(function(t,a){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},l,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var b=g[0];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(a,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},l,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!e||!i)return null;var a={"aria-hidden":"true"};return react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},t,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,v=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,_=p.menuIsOpen,E=p.menuPlacement,w=p.menuPosition,S=p.menuPortalTarget,T=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,I=p.noOptionsMessage,A=p.onMenuScrollToTop,C=p.onMenuScrollToBottom;if(!_)return null;var x=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,a=e.isSelected,s=e.label,l=e.value,u=f===i,p=o?void 0:function(){return t.onOptionHover(i)},h=o?void 0:function(){return t.selectOption(i)},m="".concat(t.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:a};return react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{innerProps:g,data:i,isDisabled:o,isSelected:a,key:m,label:s,type:r,value:l,isFocused:u,innerRef:u?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,a=e.index,s="".concat(t.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return react__WEBPACK_IMPORTED_MODULE_2__.createElement(r,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{key:s,data:n,options:o,Heading:i,headingProps:{id:l,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return x(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return x(e,"".concat(e.index))});else if(g){var D=v({inputValue:m});if(null===D)return null;e=react__WEBPACK_IMPORTED_MODULE_2__.createElement(l,d,D)}else{var R=I({inputValue:m});if(null===R)return null;e=react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,d,R)}var L={minMenuHeight:y,maxMenuHeight:b,menuPlacement:E,menuPosition:w,menuShouldScrollIntoView:O},k=react__WEBPACK_IMPORTED_MODULE_2__.createElement(MenuPlacer,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,L),function(n){var r=n.ref,i=n.placerProps,s=i.placement,l=i.maxHeight;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(o,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,L,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(ScrollManager,{captureEnabled:h,onTopArrive:A,onBottomArrive:C,lockEnabled:T},function(n){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(a,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),e)}))});return S||"fixed"===w?react__WEBPACK_IMPORTED_MODULE_2__.createElement(s,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:E,menuPosition:w}),k):k}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return react__WEBPACK_IMPORTED_MODULE_2__.createElement(RequiredInput$1,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return react__WEBPACK_IMPORTED_MODULE_2__.createElement("input",{name:o,type:"hidden",value:l})}var u=s.length>0?s.map(function(t,n){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):react__WEBPACK_IMPORTED_MODULE_2__.createElement("input",{name:o,type:"hidden",value:""});return react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return react__WEBPACK_IMPORTED_MODULE_2__.createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(LiveRegion$1,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,l=o.isDisabled,u=o.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(r,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(i,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=cleanValue(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?buildFocusableOptions(e,h):[],v=d?buildFocusableOptionsWithIds(buildCategorizedOptions(e,h),"".concat(l,"-option")):[],y=r?getNextFocusedValue(t,h):null,b=getNextFocusedOption(t,g),_=getFocusedOptionId(v,b);m={selectValue:h,focusedOption:b,focusedOptionId:_,focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var E=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,S=a&&s;return a&&!S&&(w={value:valueTernary(p,h,h[0]||null),options:h,action:"initial-input-focus"},S=!s),(null==o?void 0:o.action)==="initial-input-focus"&&(w=null),(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},m),E),{},{prevProps:e,ariaSelection:w,prevWasFocused:S})}}]),n}(react__WEBPACK_IMPORTED_MODULE_2__.Component);Select$1.defaultProps=defaultProps$4;var _excluded$3=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,o=e.defaultValue,a=void 0===o?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$3),m=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(void 0!==s?s:n),g=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(m,2),v=g[0],y=g[1],b=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(void 0!==l?l:i),_=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(b,2),E=_[0],w=_[1],S=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(void 0!==p?p:a),T=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(S,2),O=T[0],I=T[1],A=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e,t){"function"==typeof u&&u(e,t),I(e)},[u]),C=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e,t){var n;"function"==typeof c&&(n=c(e,t)),y(void 0!==n?n:e)},[c]),x=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(){"function"==typeof f&&f(),w(!0)},[f]),D=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(){"function"==typeof d&&d(),w(!1)},[d]),R=void 0!==s?s:v,L=void 0!==l?l:E,k=void 0!==p?p:O;return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},h),{},{inputValue:R,menuIsOpen:L,onChange:A,onInputChange:C,onMenuClose:D,onMenuOpen:x,value:k})}var _excluded$2=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],compareOption=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},builtins={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return compareOption(e,t,r)})||n.some(function(t){return compareOption(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function useCreatable(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,a=void 0===o?builtins.formatCreateLabel:o,s=e.isValidNewOption,l=void 0===s?builtins.isValidNewOption:s,u=e.getNewOptionData,c=void 0===u?builtins.getNewOptionData:u,d=e.onCreateOption,f=e.options,p=void 0===f?[]:f,h=e.onChange,m=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(e,_excluded$2),g=m.getOptionValue,v=void 0===g?getOptionValue$1:g,y=m.getOptionLabel,b=void 0===y?getOptionLabel$1:y,_=m.inputValue,E=m.isLoading,w=m.isMulti,S=m.value,T=m.name,O=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return l(_,cleanValue(S),p,{getOptionValue:v,getOptionLabel:b})?c(_,a(_)):void 0},[a,c,b,v,_,l,p,S]),I=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return(n||!E)&&O?"first"===i?[O].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_15__.Z)(p)):[].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_15__.Z)(p),[O]):p},[n,i,E,O,p]),A=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function(e,t){if("select-option"!==t.action)return h(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===O){if(d)d(_);else{var r=c(_,_),i={action:"create-option",name:T,option:r};h(valueTernary(w,[].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_15__.Z)(cleanValue(S)),[r]),r),i)}return}h(e,t)},[c,_,w,T,O,d,h,S]);return(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_12__.Z)({},m),{},{options:I,onChange:A})}var CreatableSelect=(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(e,t){var n=useCreatable(useStateManager(e));return react__WEBPACK_IMPORTED_MODULE_2__.createElement(Select$1,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({ref:t},n))}),CreatableSelect$1=CreatableSelect,StateManagedSelect=(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function(e,t){var n=useStateManager(e);return react__WEBPACK_IMPORTED_MODULE_2__.createElement(Select$1,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_13__.Z)({ref:t},n))}),StateManagedSelect$1=StateManagedSelect;function _extends$6(){return(_extends$6=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcBoxArrowLineSmallDown=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$6({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),_path$2||(_path$2=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",fillRule:"evenodd",d:"m11.349 14.748-.034-.032L7.19 10.59c-.228-.228-.254-.57-.06-.766.196-.195.539-.169.767.059l3.83 3.83 3.83-3.83c.228-.228.571-.254.766-.059s.17.538-.059.766l-4.124 4.125-.035.032-.024.027a.46.46 0 0 1-.354.13.46.46 0 0 1-.378-.157",clipRule:"evenodd"})),_path2$2||(_path2$2=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",d:"M0 0h24v24H0z",opacity:.01})))};function ownKeys$3(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 _objectSpread$3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$3(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var SelectArrow=function(e,t,n,r){return function(i){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(components.DropdownIndicator,_objectSpread$3(_objectSpread$3({},i),{},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IconButton,{iconCls:n,src:e||(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcBoxArrowLineSmallDown,{}),handler:function(){},className:"multimedia-select-arrow ".concat(t),disabled:r})}))}};function _extends$5(){return(_extends$5=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgIcClear=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$5({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),_path$1||(_path$1=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14m-2.828-4.172a1 1 0 0 1 0-1.414L10.586 12l-1.414-1.414a1 1 0 0 1 1.414-1.414L12 10.586l1.414-1.414a1 1 0 1 1 1.414 1.414L13.414 12l1.414 1.414a1 1 0 1 1-1.414 1.414L12 13.414l-1.414 1.414a1 1 0 0 1-1.414 0",clipRule:"evenodd"})),_path2$1||(_path2$1=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#000",d:"M0 0h24v24H0z",opacity:.01})))},_excluded$1=["ref"];function ownKeys$2(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 _objectSpread$2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$2(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var propTypes$3={className:PropTypes.string,value:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({})),PropTypes.string,PropTypes.number,PropTypes.shape({})]),autoFocus:PropTypes.bool,backspaceRemovesValue:PropTypes.bool,closeMenuOnSelect:PropTypes.bool,customizeComponents:PropTypes.shape({}),createOptionPosition:PropTypes.string,defaultValue:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({})),PropTypes.shape({})]),getOptionLabel:PropTypes.func,getOptionValue:PropTypes.func,getNewOptionData:PropTypes.func,innerRef:PropTypes.oneOfType([PropTypes.func,PropTypes.shape({})]),inputValue:PropTypes.string,isMenuPortal:PropTypes.bool,isMulti:PropTypes.bool,isCreatable:PropTypes.bool,isClearable:PropTypes.bool,isDisabled:PropTypes.bool,isSearchable:PropTypes.bool,isValidNewOption:PropTypes.func,menuPortalTarget:PropTypes.instanceOf(Element),onBlur:PropTypes.func,onChange:PropTypes.func,onCreateOption:PropTypes.func,onFocus:PropTypes.func,onInputChange:PropTypes.func,onMenuOpen:PropTypes.func,onMenuClose:PropTypes.func,onKeyDown:PropTypes.func,onValueClick:PropTypes.func,options:PropTypes.arrayOf(PropTypes.shape({})),openMenuOnFocus:PropTypes.bool,placeholder:PropTypes.string,showDropdownIndicator:PropTypes.bool,showClearIndicator:PropTypes.bool,title:PropTypes.string,tipId:PropTypes.string,triggerIconClassName:PropTypes.string,triggerButtonClassName:PropTypes.string,needValueContainerLoadingIndicator:PropTypes.bool,filterOption:PropTypes.func,ariaLabel:PropTypes.string,clearIconTitle:PropTypes.string,arrowIconSrc:PropTypes.element},defaultProps$3={className:"",value:void 0,triggerIconClassName:"",triggerButtonClassName:"",autoFocus:!1,backspaceRemovesValue:!1,closeMenuOnSelect:!0,createOptionPosition:"lase",defaultValue:void 0,getOptionLabel:void 0,getOptionValue:void 0,getNewOptionData:void 0,innerRef:null,inputValue:void 0,isMulti:!1,isClearable:!1,isCreatable:!1,isDisabled:!1,isMenuPortal:!1,isSearchable:!1,isValidNewOption:function(){return!1},customizeComponents:null,placeholder:"",menuPortalTarget:void 0,options:[],onBlur:void 0,onChange:void 0,onCreateOption:void 0,onFocus:void 0,onMenuOpen:void 0,onMenuClose:void 0,onInputChange:void 0,onKeyDown:void 0,onValueClick:void 0,openMenuOnFocus:!1,showDropdownIndicator:!0,showClearIndicator:!1,title:void 0,tipId:void 0,needValueContainerLoadingIndicator:!1,filterOption:void 0,ariaLabel:void 0,clearIconTitle:"",arrowIconSrc:void 0},NOOP$1=function(){return{}},reactSelectStylesTemplate={clearIndicator:NOOP$1,container:NOOP$1,control:NOOP$1,dropdownIndicator:NOOP$1,group:NOOP$1,groupHeading:NOOP$1,indicatorsContainer:NOOP$1,indicatorSeparator:NOOP$1,loadingIndicator:NOOP$1,loadingMessage:NOOP$1,menu:NOOP$1,menuList:NOOP$1,menuPortal:NOOP$1,multiValue:NOOP$1,multiValueLabel:NOOP$1,multiValueRemove:NOOP$1,noOptionsMessage:NOOP$1,option:NOOP$1,placeholder:NOOP$1,singleValue:NOOP$1,valueContainer:NOOP$1},Select=function(e){var t=e.ariaLabel,n=e.autoFocus,r=e.backspaceRemovesValue,i=e.className,o=e.closeMenuOnSelect,a=e.createOptionPosition,s=e.defaultValue,l=e.getOptionLabel,u=e.getOptionValue,c=e.getNewOptionData,d=e.innerRef,f=e.inputValue,p=e.isClearable,h=e.isCreatable,m=e.isDisabled,g=e.isSearchable,v=e.isMenuPortal,y=e.isMulti,b=e.isValidNewOption,_=e.menuPortalTarget,E=e.onBlur,w=e.onCreateOption,S=e.onChange,T=e.onFocus,O=e.onInputChange,I=e.onMenuOpen,A=e.openMenuOnFocus,C=e.onValueClick,x=e.onKeyDown,D=e.onMenuClose,R=e.options,L=e.placeholder,k=e.title,M=e.tipId,P=e.triggerButtonClassName,N=e.value,F=e.showDropdownIndicator,B=e.showClearIndicator,U=e.customizeComponents,H=e.needValueContainerLoadingIndicator,j=e.filterOption,V=e.triggerIconClassName,z=e.clearIconTitle,Z=e.arrowIconSrc,G=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),W=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(G,2),q=W[0],Y=W[1],$=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(d),K=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(_objectSpread$2({},reactSelectStylesTemplate));(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){(v||_)&&(K.current.menu=function(e){return _objectSpread$2(_objectSpread$2({},e),{},{margin:0})},K.current.menuPortal=function(e){return _objectSpread$2(_objectSpread$2({},e),{},{zIndex:9999,position:"fixed"})})},[v,_]);var X=function(e){var t=e.innerProps,n=t.ref,r=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(t,_excluded$1);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",_objectSpread$2(_objectSpread$2({ref:n},r),{},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IconButton,{className:"multimedia-custom-clear",src:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcClear,{}),title:z})}))},Q=function(e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(components.MultiValueRemove,_objectSpread$2(_objectSpread$2({},e),{},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IconButton,{src:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgBtClose18,{})})}))},J=function(){return null},ee=function(e){!q&&e&&Y(e)},et=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function(){return _objectSpread$2(_objectSpread$2({DropdownIndicator:F?SelectArrow(Z,P,V,m):J,ClearIndicator:B?X:J},U),{},{MultiValueRemove:Q})},[F,B,U,m,V]),en=h?CreatableSelect$1:StateManagedSelect$1;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{ref:ee,className:"".concat(i," multimedia-react-select"),"data-tooltip-id":M,"data-tooltip-content":k,"data-long-press-delay":WaitingTime.LONG_PRESS,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(en,{autoFocus:n,backspaceRemovesValue:r,classNamePrefix:"multimedia",className:"multimedia-react-select-container",closeMenuOnSelect:o,createOptionPosition:a,components:et,defaultValue:s,getOptionValue:u,getOptionLabel:l,getNewOptionData:c,hideSelectedOptions:!1,inputValue:f,isValidNewOption:b,isSearchable:g,isClearable:p,isMulti:y,isDisabled:m,isOptionDisabled:function(e){return!1},noOptionsMessage:function(){return""},menuPlacement:"auto",menuPosition:"auto",menuPortalTarget:_||(v?q:null),menuShouldScrollIntoView:!0,onBlur:E,onChange:S,onCreateOption:w,onInputChange:O,onFocus:T,onKeyDown:x,onMenuOpen:I,onMenuClose:D,openMenuOnFocus:A,openMenuOnClick:!0,options:R,placeholder:L,styles:K.current,tabSelectsValue:!1,ref:$,onValueClick:C,value:N,needValueContainerLoadingIndicator:H,filterOption:j,"aria-label":t})})};Select.propTypes=propTypes$3,Select.defaultProps=defaultProps$3;var e={},clsx={exports:{}};function requireClsx(){if(hasRequiredClsx)return clsx.exports;function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}function t(){for(var t,n,r=0,i="",o=arguments.length;r<o;r++)(t=arguments[r])&&(n=e(t))&&(i&&(i+=" "),i+=n);return i}return hasRequiredClsx=1,clsx.exports=t,clsx.exports.clsx=t,clsx.exports}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function isNodeFound(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}function findHighest(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&isNodeFound(e,t,n))return!0;e=e.parentNode||e.host}return e}function clickedScrollbar(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var testPassiveEventSupport=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};function autoInc(e){return void 0===e&&(e=0),function(){return++e}}var uid=autoInc(),handlersMap={},enabledInstances={},touchEvents=["touchstart","touchmove"],IGNORE_CLASS_NAME="ignore-react-onclickoutside";function getEventHandlerOptions(e,t){var n={};return -1!==touchEvents.indexOf(t)&&passiveEventSupport&&(n.passive=!e.props.preventDefault),n}function onClickOutsideHOC(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(n){function r(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"==typeof r.__clickOutsideHandlerProp){r.__clickOutsideHandlerProp(e);return}var t=r.getInstance();if("function"==typeof t.props.handleClickOutside){t.props.handleClickOutside(e);return}if("function"==typeof t.handleClickOutside){t.handleClickOutside(e);return}throw Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,react_dom__WEBPACK_IMPORTED_MODULE_4__.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!enabledInstances[r._uid]){void 0===passiveEventSupport&&(passiveEventSupport=testPassiveEventSupport()),enabledInstances[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),handlersMap[r._uid]=function(e){if(null!==r.componentNode&&!(r.initTimeStamp>e.timeStamp)&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),!(r.props.excludeScrollbar&&clickedScrollbar(e)))){var t=e.composed&&e.composedPath&&e.composedPath().shift()||e.target;findHighest(t,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e)}},e.forEach(function(e){document.addEventListener(e,handlersMap[r._uid],getEventHandlerOptions(_assertThisInitialized(r),e))})}},r.disableOnClickOutside=function(){delete enabledInstances[r._uid];var e=handlersMap[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,getEventHandlerOptions(_assertThisInitialized(r),t))}),delete handlersMap[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=uid(),r.initTimeStamp=performance.now(),r}_inheritsLoose(r,n);var o=r.prototype;return o.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},o.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},o.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var t=this.props;t.excludeScrollbar;var n=_objectWithoutPropertiesLoose(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,react__WEBPACK_IMPORTED_MODULE_2__.createElement)(e,n)},r}(react__WEBPACK_IMPORTED_MODULE_2__.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:IGNORE_CLASS_NAME,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var reactOnclickoutside_es=Object.freeze({__proto__:null,IGNORE_CLASS_NAME:IGNORE_CLASS_NAME,default:onClickOutsideHOC}),require$$2=getAugmentedNamespace(reactOnclickoutside_es),addDays={},toDate={};function requireToDate(){if(hasRequiredToDate)return toDate;function e(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}return hasRequiredToDate=1,toDate.toDate=e,toDate}var constructFrom={};function requireConstructFrom(){if(hasRequiredConstructFrom)return constructFrom;function e(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}return hasRequiredConstructFrom=1,constructFrom.constructFrom=e,constructFrom}function requireAddDays(){if(hasRequiredAddDays)return addDays;hasRequiredAddDays=1,addDays.addDays=n;var e=requireToDate(),t=requireConstructFrom();function n(n,r){let i=(0,e.toDate)(n);return isNaN(r)?(0,t.constructFrom)(n,NaN):(r&&i.setDate(i.getDate()+r),i)}return addDays}var addHours={},addMilliseconds={};function requireAddMilliseconds(){if(hasRequiredAddMilliseconds)return addMilliseconds;hasRequiredAddMilliseconds=1,addMilliseconds.addMilliseconds=n;var e=requireToDate(),t=requireConstructFrom();function n(n,r){let i=+(0,e.toDate)(n);return(0,t.constructFrom)(n,i+r)}return addMilliseconds}var constants$1={};function requireConstants$1(){if(hasRequiredConstants$1)return constants$1;hasRequiredConstants$1=1,constants$1.secondsInYear=constants$1.secondsInWeek=constants$1.secondsInQuarter=constants$1.secondsInMonth=constants$1.secondsInMinute=constants$1.secondsInHour=constants$1.secondsInDay=constants$1.quartersInYear=constants$1.monthsInYear=constants$1.monthsInQuarter=constants$1.minutesInYear=constants$1.minutesInMonth=constants$1.minutesInHour=constants$1.minutesInDay=constants$1.minTime=constants$1.millisecondsInWeek=constants$1.millisecondsInSecond=constants$1.millisecondsInMinute=constants$1.millisecondsInHour=constants$1.millisecondsInDay=constants$1.maxTime=constants$1.daysInYear=constants$1.daysInWeek=void 0,constants$1.daysInWeek=7;let e=constants$1.daysInYear=365.2425,t=constants$1.maxTime=864e13;constants$1.minTime=-t,constants$1.millisecondsInWeek=6048e5,constants$1.millisecondsInDay=864e5,constants$1.millisecondsInMinute=6e4,constants$1.millisecondsInHour=36e5,constants$1.millisecondsInSecond=1e3,constants$1.minutesInYear=525600,constants$1.minutesInMonth=43200,constants$1.minutesInDay=1440,constants$1.minutesInHour=60,constants$1.monthsInQuarter=3,constants$1.monthsInYear=12,constants$1.quartersInYear=4;let n=constants$1.secondsInHour=3600;constants$1.secondsInMinute=60;let r=constants$1.secondsInDay=24*n;constants$1.secondsInWeek=7*r;let i=constants$1.secondsInYear=r*e,o=constants$1.secondsInMonth=i/12;return constants$1.secondsInQuarter=3*o,constants$1}function requireAddHours(){if(hasRequiredAddHours)return addHours;hasRequiredAddHours=1,addHours.addHours=n;var e=requireAddMilliseconds(),t=requireConstants$1();function n(n,r){return(0,e.addMilliseconds)(n,r*t.millisecondsInHour)}return addHours}var addMinutes={};function requireAddMinutes(){if(hasRequiredAddMinutes)return addMinutes;hasRequiredAddMinutes=1,addMinutes.addMinutes=n;var e=requireAddMilliseconds(),t=requireConstants$1();function n(n,r){return(0,e.addMilliseconds)(n,r*t.millisecondsInMinute)}return addMinutes}var addMonths={};function requireAddMonths(){if(hasRequiredAddMonths)return addMonths;hasRequiredAddMonths=1,addMonths.addMonths=n;var e=requireToDate(),t=requireConstructFrom();function n(n,r){let i=(0,e.toDate)(n);if(isNaN(r))return(0,t.constructFrom)(n,NaN);if(!r)return i;let o=i.getDate(),a=(0,t.constructFrom)(n,i.getTime());return(a.setMonth(i.getMonth()+r+1,0),o>=a.getDate())?a:(i.setFullYear(a.getFullYear(),a.getMonth(),o),i)}return addMonths}var addQuarters={};function requireAddQuarters(){if(hasRequiredAddQuarters)return addQuarters;hasRequiredAddQuarters=1,addQuarters.addQuarters=t;var e=requireAddMonths();function t(t,n){let r=3*n;return(0,e.addMonths)(t,r)}return addQuarters}var addSeconds={};function requireAddSeconds(){if(hasRequiredAddSeconds)return addSeconds;hasRequiredAddSeconds=1,addSeconds.addSeconds=t;var e=requireAddMilliseconds();function t(t,n){return(0,e.addMilliseconds)(t,1e3*n)}return addSeconds}var addWeeks={};function requireAddWeeks(){if(hasRequiredAddWeeks)return addWeeks;hasRequiredAddWeeks=1,addWeeks.addWeeks=t;var e=requireAddDays();function t(t,n){let r=7*n;return(0,e.addDays)(t,r)}return addWeeks}var addYears={};function requireAddYears(){if(hasRequiredAddYears)return addYears;hasRequiredAddYears=1,addYears.addYears=t;var e=requireAddMonths();function t(t,n){return(0,e.addMonths)(t,12*n)}return addYears}var differenceInCalendarDays={},startOfDay={};function requireStartOfDay(){if(hasRequiredStartOfDay)return startOfDay;hasRequiredStartOfDay=1,startOfDay.startOfDay=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t);return n.setHours(0,0,0,0),n}return startOfDay}var getTimezoneOffsetInMilliseconds={};function requireGetTimezoneOffsetInMilliseconds(){if(hasRequiredGetTimezoneOffsetInMilliseconds)return getTimezoneOffsetInMilliseconds;hasRequiredGetTimezoneOffsetInMilliseconds=1,getTimezoneOffsetInMilliseconds.getTimezoneOffsetInMilliseconds=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-+r}return getTimezoneOffsetInMilliseconds}function requireDifferenceInCalendarDays(){if(hasRequiredDifferenceInCalendarDays)return differenceInCalendarDays;hasRequiredDifferenceInCalendarDays=1,differenceInCalendarDays.differenceInCalendarDays=r;var e=requireConstants$1(),t=requireStartOfDay(),n=requireGetTimezoneOffsetInMilliseconds();function r(r,i){let o=(0,t.startOfDay)(r),a=(0,t.startOfDay)(i);return Math.round((+o-(0,n.getTimezoneOffsetInMilliseconds)(o)-(+a-(0,n.getTimezoneOffsetInMilliseconds)(a)))/e.millisecondsInDay)}return differenceInCalendarDays}var differenceInCalendarMonths={};function requireDifferenceInCalendarMonths(){if(hasRequiredDifferenceInCalendarMonths)return differenceInCalendarMonths;hasRequiredDifferenceInCalendarMonths=1,differenceInCalendarMonths.differenceInCalendarMonths=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t),i=(0,e.toDate)(n);return 12*(r.getFullYear()-i.getFullYear())+(r.getMonth()-i.getMonth())}return differenceInCalendarMonths}var differenceInCalendarQuarters={},getQuarter={};function requireGetQuarter(){if(hasRequiredGetQuarter)return getQuarter;hasRequiredGetQuarter=1,getQuarter.getQuarter=t;var e=requireToDate();function t(t){return Math.trunc((0,e.toDate)(t).getMonth()/3)+1}return getQuarter}function requireDifferenceInCalendarQuarters(){if(hasRequiredDifferenceInCalendarQuarters)return differenceInCalendarQuarters;hasRequiredDifferenceInCalendarQuarters=1,differenceInCalendarQuarters.differenceInCalendarQuarters=n;var e=requireGetQuarter(),t=requireToDate();function n(n,r){let i=(0,t.toDate)(n),o=(0,t.toDate)(r);return 4*(i.getFullYear()-o.getFullYear())+((0,e.getQuarter)(i)-(0,e.getQuarter)(o))}return differenceInCalendarQuarters}var differenceInCalendarYears={};function requireDifferenceInCalendarYears(){if(hasRequiredDifferenceInCalendarYears)return differenceInCalendarYears;hasRequiredDifferenceInCalendarYears=1,differenceInCalendarYears.differenceInCalendarYears=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t),i=(0,e.toDate)(n);return r.getFullYear()-i.getFullYear()}return differenceInCalendarYears}var endOfDay={};function requireEndOfDay(){if(hasRequiredEndOfDay)return endOfDay;hasRequiredEndOfDay=1,endOfDay.endOfDay=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t);return n.setHours(23,59,59,999),n}return endOfDay}var endOfMonth={};function requireEndOfMonth(){if(hasRequiredEndOfMonth)return endOfMonth;hasRequiredEndOfMonth=1,endOfMonth.endOfMonth=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}return endOfMonth}var endOfWeek={},defaultOptions={};function requireDefaultOptions(){if(hasRequiredDefaultOptions)return defaultOptions;hasRequiredDefaultOptions=1,defaultOptions.getDefaultOptions=t,defaultOptions.setDefaultOptions=n;let e={};function t(){return e}function n(t){e=t}return defaultOptions}function requireEndOfWeek(){if(hasRequiredEndOfWeek)return endOfWeek;hasRequiredEndOfWeek=1,endOfWeek.endOfWeek=n;var e=requireToDate(),t=requireDefaultOptions();function n(n,r){let i=(0,t.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,e.toDate)(n),s=a.getDay(),l=(s<o?-7:0)+6-(s-o);return a.setDate(a.getDate()+l),a.setHours(23,59,59,999),a}return endOfWeek}var endOfYear={};function requireEndOfYear(){if(hasRequiredEndOfYear)return endOfYear;hasRequiredEndOfYear=1,endOfYear.endOfYear=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}return endOfYear}var format={},defaultLocale={},enUS={},formatDistance={};function requireFormatDistance(){if(hasRequiredFormatDistance)return formatDistance;hasRequiredFormatDistance=1,formatDistance.formatDistance=void 0;let e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},t=(t,n,r)=>{let i;let o=e[t];return(i="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),r?.addSuffix)?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};return formatDistance.formatDistance=t,formatDistance}var formatLong={},buildFormatLongFn={};function requireBuildFormatLongFn(){if(hasRequiredBuildFormatLongFn)return buildFormatLongFn;function e(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}return hasRequiredBuildFormatLongFn=1,buildFormatLongFn.buildFormatLongFn=e,buildFormatLongFn}function requireFormatLong(){if(hasRequiredFormatLong)return formatLong;hasRequiredFormatLong=1,formatLong.formatLong=void 0;var e=requireBuildFormatLongFn();let t={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},n={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},r={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};return formatLong.formatLong={date:(0,e.buildFormatLongFn)({formats:t,defaultWidth:"full"}),time:(0,e.buildFormatLongFn)({formats:n,defaultWidth:"full"}),dateTime:(0,e.buildFormatLongFn)({formats:r,defaultWidth:"full"})},formatLong}var formatRelative={};function requireFormatRelative(){if(hasRequiredFormatRelative)return formatRelative;hasRequiredFormatRelative=1,formatRelative.formatRelative=void 0;let e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},t=(t,n,r,i)=>e[t];return formatRelative.formatRelative=t,formatRelative}var localize={},buildLocalizeFn={};function requireBuildLocalizeFn(){if(hasRequiredBuildLocalizeFn)return buildLocalizeFn;function e(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}return hasRequiredBuildLocalizeFn=1,buildLocalizeFn.buildLocalizeFn=e,buildLocalizeFn}function requireLocalize(){if(hasRequiredLocalize)return localize;hasRequiredLocalize=1,localize.localize=void 0;var e=requireBuildLocalizeFn();let t={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},n={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},i={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},a={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},s=(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"};return localize.localize={ordinalNumber:s,era:(0,e.buildLocalizeFn)({values:t,defaultWidth:"wide"}),quarter:(0,e.buildLocalizeFn)({values:n,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,e.buildLocalizeFn)({values:r,defaultWidth:"wide"}),day:(0,e.buildLocalizeFn)({values:i,defaultWidth:"wide"}),dayPeriod:(0,e.buildLocalizeFn)({values:o,defaultWidth:"wide",formattingValues:a,defaultFormattingWidth:"wide"})},localize}var match={},buildMatchFn={};function requireBuildMatchFn(){if(hasRequiredBuildMatchFn)return buildMatchFn;function e(e){return(r,i={})=>{let o;let a=i.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=r.match(s);if(!l)return null;let u=l[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?n(c,e=>e.test(u)):t(c,e=>e.test(u));return o=e.valueCallback?e.valueCallback(d):d,{value:o=i.valueCallback?i.valueCallback(o):o,rest:r.slice(u.length)}}}function t(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function n(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}return hasRequiredBuildMatchFn=1,buildMatchFn.buildMatchFn=e,buildMatchFn}var buildMatchPatternFn={};function requireBuildMatchPatternFn(){if(hasRequiredBuildMatchPatternFn)return buildMatchPatternFn;function e(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}return hasRequiredBuildMatchPatternFn=1,buildMatchPatternFn.buildMatchPatternFn=e,buildMatchPatternFn}function requireMatch(){if(hasRequiredMatch)return match;hasRequiredMatch=1,match.match=void 0;var e=requireBuildMatchFn(),t=requireBuildMatchPatternFn();let n=/^(\d+)(th|st|nd|rd)?/i,r=/\d+/i,i={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},o={any:[/^b/i,/^(a|c)/i]},a={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},s={any:[/1/i,/2/i,/3/i,/4/i]},l={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},c={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},d={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},f={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};return match.match={ordinalNumber:(0,t.buildMatchPatternFn)({matchPattern:n,parsePattern:r,valueCallback:e=>parseInt(e,10)}),era:(0,e.buildMatchFn)({matchPatterns:i,defaultMatchWidth:"wide",parsePatterns:o,defaultParseWidth:"any"}),quarter:(0,e.buildMatchFn)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,e.buildMatchFn)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),day:(0,e.buildMatchFn)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any"}),dayPeriod:(0,e.buildMatchFn)({matchPatterns:f,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})},match}function requireEnUS(){if(hasRequiredEnUS)return enUS;hasRequiredEnUS=1,enUS.enUS=void 0;var e=requireFormatDistance(),t=requireFormatLong(),n=requireFormatRelative(),r=requireLocalize(),i=requireMatch();return enUS.enUS={code:"en-US",formatDistance:e.formatDistance,formatLong:t.formatLong,formatRelative:n.formatRelative,localize:r.localize,match:i.match,options:{weekStartsOn:0,firstWeekContainsDate:1}},enUS}function requireDefaultLocale(){return hasRequiredDefaultLocale||(hasRequiredDefaultLocale=1,function(e){Object.defineProperty(e,"defaultLocale",{enumerable:!0,get:function(){return t.enUS}});var t=requireEnUS()}(defaultLocale)),defaultLocale}var formatters={},getDayOfYear={},startOfYear={};function requireStartOfYear(){if(hasRequiredStartOfYear)return startOfYear;hasRequiredStartOfYear=1,startOfYear.startOfYear=n;var e=requireToDate(),t=requireConstructFrom();function n(n){let r=(0,e.toDate)(n),i=(0,t.constructFrom)(n,0);return i.setFullYear(r.getFullYear(),0,1),i.setHours(0,0,0,0),i}return startOfYear}function requireGetDayOfYear(){if(hasRequiredGetDayOfYear)return getDayOfYear;hasRequiredGetDayOfYear=1,getDayOfYear.getDayOfYear=r;var e=requireDifferenceInCalendarDays(),t=requireStartOfYear(),n=requireToDate();function r(r){let i=(0,n.toDate)(r);return(0,e.differenceInCalendarDays)(i,(0,t.startOfYear)(i))+1}return getDayOfYear}var getISOWeek={},startOfISOWeek={},startOfWeek={};function requireStartOfWeek(){if(hasRequiredStartOfWeek)return startOfWeek;hasRequiredStartOfWeek=1,startOfWeek.startOfWeek=n;var e=requireToDate(),t=requireDefaultOptions();function n(n,r){let i=(0,t.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,e.toDate)(n),s=a.getDay(),l=(s<o?7:0)+s-o;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}return startOfWeek}function requireStartOfISOWeek(){if(hasRequiredStartOfISOWeek)return startOfISOWeek;hasRequiredStartOfISOWeek=1,startOfISOWeek.startOfISOWeek=t;var e=requireStartOfWeek();function t(t){return(0,e.startOfWeek)(t,{weekStartsOn:1})}return startOfISOWeek}var startOfISOWeekYear={},getISOWeekYear={};function requireGetISOWeekYear(){if(hasRequiredGetISOWeekYear)return getISOWeekYear;hasRequiredGetISOWeekYear=1,getISOWeekYear.getISOWeekYear=r;var e=requireConstructFrom(),t=requireStartOfISOWeek(),n=requireToDate();function r(r){let i=(0,n.toDate)(r),o=i.getFullYear(),a=(0,e.constructFrom)(r,0);a.setFullYear(o+1,0,4),a.setHours(0,0,0,0);let s=(0,t.startOfISOWeek)(a),l=(0,e.constructFrom)(r,0);l.setFullYear(o,0,4),l.setHours(0,0,0,0);let u=(0,t.startOfISOWeek)(l);return i.getTime()>=s.getTime()?o+1:i.getTime()>=u.getTime()?o:o-1}return getISOWeekYear}function requireStartOfISOWeekYear(){if(hasRequiredStartOfISOWeekYear)return startOfISOWeekYear;hasRequiredStartOfISOWeekYear=1,startOfISOWeekYear.startOfISOWeekYear=r;var e=requireGetISOWeekYear(),t=requireStartOfISOWeek(),n=requireConstructFrom();function r(r){let i=(0,e.getISOWeekYear)(r),o=(0,n.constructFrom)(r,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),(0,t.startOfISOWeek)(o)}return startOfISOWeekYear}function requireGetISOWeek(){if(hasRequiredGetISOWeek)return getISOWeek;hasRequiredGetISOWeek=1,getISOWeek.getISOWeek=i;var e=requireConstants$1(),t=requireStartOfISOWeek(),n=requireStartOfISOWeekYear(),r=requireToDate();function i(i){let o=(0,r.toDate)(i);return Math.round((+(0,t.startOfISOWeek)(o)-+(0,n.startOfISOWeekYear)(o))/e.millisecondsInWeek)+1}return getISOWeek}var getWeek={},startOfWeekYear={},getWeekYear={};function requireGetWeekYear(){if(hasRequiredGetWeekYear)return getWeekYear;hasRequiredGetWeekYear=1,getWeekYear.getWeekYear=i;var e=requireConstructFrom(),t=requireStartOfWeek(),n=requireToDate(),r=requireDefaultOptions();function i(i,o){let a=(0,n.toDate)(i),s=a.getFullYear(),l=(0,r.getDefaultOptions)(),u=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,c=(0,e.constructFrom)(i,0);c.setFullYear(s+1,0,u),c.setHours(0,0,0,0);let d=(0,t.startOfWeek)(c,o),f=(0,e.constructFrom)(i,0);f.setFullYear(s,0,u),f.setHours(0,0,0,0);let p=(0,t.startOfWeek)(f,o);return a.getTime()>=d.getTime()?s+1:a.getTime()>=p.getTime()?s:s-1}return getWeekYear}function requireStartOfWeekYear(){if(hasRequiredStartOfWeekYear)return startOfWeekYear;hasRequiredStartOfWeekYear=1,startOfWeekYear.startOfWeekYear=i;var e=requireConstructFrom(),t=requireGetWeekYear(),n=requireStartOfWeek(),r=requireDefaultOptions();function i(i,o){let a=(0,r.getDefaultOptions)(),s=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=(0,t.getWeekYear)(i,o),u=(0,e.constructFrom)(i,0);return u.setFullYear(l,0,s),u.setHours(0,0,0,0),(0,n.startOfWeek)(u,o)}return startOfWeekYear}function requireGetWeek(){if(hasRequiredGetWeek)return getWeek;hasRequiredGetWeek=1,getWeek.getWeek=i;var e=requireConstants$1(),t=requireStartOfWeek(),n=requireStartOfWeekYear(),r=requireToDate();function i(i,o){let a=(0,r.toDate)(i);return Math.round((+(0,t.startOfWeek)(a,o)-+(0,n.startOfWeekYear)(a,o))/e.millisecondsInWeek)+1}return getWeek}var addLeadingZeros={};function requireAddLeadingZeros(){if(hasRequiredAddLeadingZeros)return addLeadingZeros;function e(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}return hasRequiredAddLeadingZeros=1,addLeadingZeros.addLeadingZeros=e,addLeadingZeros}var lightFormatters={};function requireLightFormatters(){if(hasRequiredLightFormatters)return lightFormatters;hasRequiredLightFormatters=1,lightFormatters.lightFormatters=void 0;var e=requireAddLeadingZeros();return lightFormatters.lightFormatters={y(t,n){let r=t.getFullYear(),i=r>0?r:1-r;return(0,e.addLeadingZeros)("yy"===n?i%100:i,n.length)},M(t,n){let r=t.getMonth();return"M"===n?String(r+1):(0,e.addLeadingZeros)(r+1,2)},d:(t,n)=>(0,e.addLeadingZeros)(t.getDate(),n.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,n)=>(0,e.addLeadingZeros)(t.getHours()%12||12,n.length),H:(t,n)=>(0,e.addLeadingZeros)(t.getHours(),n.length),m:(t,n)=>(0,e.addLeadingZeros)(t.getMinutes(),n.length),s:(t,n)=>(0,e.addLeadingZeros)(t.getSeconds(),n.length),S(t,n){let r=n.length,i=Math.trunc(t.getMilliseconds()*Math.pow(10,r-3));return(0,e.addLeadingZeros)(i,n.length)}},lightFormatters}function requireFormatters(){if(hasRequiredFormatters)return formatters;hasRequiredFormatters=1,formatters.formatters=void 0;var e=requireGetDayOfYear(),t=requireGetISOWeek(),n=requireGetISOWeekYear(),r=requireGetWeek(),i=requireGetWeekYear(),o=requireAddLeadingZeros(),a=requireLightFormatters();let s={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function l(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+(0,o.addLeadingZeros)(a,2)}function u(e,t){return e%60==0?(e>0?"-":"+")+(0,o.addLeadingZeros)(Math.abs(e)/60,2):c(e,t)}function c(e,t=""){let n=e>0?"-":"+",r=Math.abs(e);return n+(0,o.addLeadingZeros)(Math.trunc(r/60),2)+t+(0,o.addLeadingZeros)(r%60,2)}return formatters.formatters={G:function(e,t,n){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return a.lightFormatters.y(e,t)},Y:function(e,t,n,r){let a=(0,i.getWeekYear)(e,r),s=a>0?a:1-a;if("YY"===t){let e=s%100;return(0,o.addLeadingZeros)(e,2)}return"Yo"===t?n.ordinalNumber(s,{unit:"year"}):(0,o.addLeadingZeros)(s,t.length)},R:function(e,t){let r=(0,n.getISOWeekYear)(e);return(0,o.addLeadingZeros)(r,t.length)},u:function(e,t){let n=e.getFullYear();return(0,o.addLeadingZeros)(n,t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,o.addLeadingZeros)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,o.addLeadingZeros)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return a.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,o.addLeadingZeros)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){let a=(0,r.getWeek)(e,i);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):(0,o.addLeadingZeros)(a,t.length)},I:function(e,n,r){let i=(0,t.getISOWeek)(e);return"Io"===n?r.ordinalNumber(i,{unit:"week"}):(0,o.addLeadingZeros)(i,n.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):a.lightFormatters.d(e,t)},D:function(t,n,r){let i=(0,e.getDayOfYear)(t);return"Do"===n?r.ordinalNumber(i,{unit:"dayOfYear"}):(0,o.addLeadingZeros)(i,n.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,o.addLeadingZeros)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,o.addLeadingZeros)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,o.addLeadingZeros)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r;let i=e.getHours();switch(r=12===i?s.noon:0===i?s.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r;let i=e.getHours();switch(r=i>=17?s.evening:i>=12?s.afternoon:i>=4?s.morning:s.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return a.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):a.lightFormatters.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,o.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):(0,o.addLeadingZeros)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):a.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):a.lightFormatters.s(e,t)},S:function(e,t){return a.lightFormatters.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return u(r);case"XXXX":case"XX":return c(r);default:return c(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return u(r);case"xxxx":case"xx":return c(r);default:return c(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+l(r,":");default:return"GMT"+c(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+l(r,":");default:return"GMT"+c(r,":")}},t:function(e,t,n){let r=Math.trunc(e.getTime()/1e3);return(0,o.addLeadingZeros)(r,t.length)},T:function(e,t,n){let r=e.getTime();return(0,o.addLeadingZeros)(r,t.length)}},formatters}var longFormatters={};function requireLongFormatters(){if(hasRequiredLongFormatters)return longFormatters;hasRequiredLongFormatters=1,longFormatters.longFormatters=void 0;let e=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},t=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},n=(n,r)=>{let i;let o=n.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return e(n,r);switch(a){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;default:i=r.dateTime({width:"full"})}return i.replace("{{date}}",e(a,r)).replace("{{time}}",t(s,r))};return longFormatters.longFormatters={p:t,P:n},longFormatters}var protectedTokens={};function requireProtectedTokens(){if(hasRequiredProtectedTokens)return protectedTokens;hasRequiredProtectedTokens=1,protectedTokens.isProtectedDayOfYearToken=r,protectedTokens.isProtectedWeekYearToken=i,protectedTokens.warnOrThrowProtectedError=o;let e=/^D+$/,t=/^Y+$/,n=["D","DD","YY","YYYY"];function r(t){return e.test(t)}function i(e){return t.test(e)}function o(e,t,r){let i=a(e,t,r);if(console.warn(i),n.includes(e))throw RangeError(i)}function a(e,t,n){let r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}return protectedTokens}var isValid={},isDate={};function requireIsDate(){if(hasRequiredIsDate)return isDate;function e(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}return hasRequiredIsDate=1,isDate.isDate=e,isDate}function requireIsValid(){if(hasRequiredIsValid)return isValid;hasRequiredIsValid=1,isValid.isValid=n;var e=requireIsDate(),t=requireToDate();function n(n){return(!!(0,e.isDate)(n)||"number"==typeof n)&&!isNaN(Number((0,t.toDate)(n)))}return isValid}function requireFormat(){return hasRequiredFormat||(hasRequiredFormat=1,function(e){e.format=e.formatDate=p,Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return r.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return i.longFormatters}});var t=requireDefaultLocale(),n=requireDefaultOptions(),r=requireFormatters(),i=requireLongFormatters(),o=requireProtectedTokens(),a=requireIsValid(),s=requireToDate();let l=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c=/^'([^]*?)'?$/,d=/''/g,f=/[a-zA-Z]/;function p(e,c,d){let p=(0,n.getDefaultOptions)(),m=d?.locale??p.locale??t.defaultLocale,g=d?.firstWeekContainsDate??d?.locale?.options?.firstWeekContainsDate??p.firstWeekContainsDate??p.locale?.options?.firstWeekContainsDate??1,v=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??p.weekStartsOn??p.locale?.options?.weekStartsOn??0,y=(0,s.toDate)(e);if(!(0,a.isValid)(y))throw RangeError("Invalid time value");let b=c.match(u).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,i.longFormatters[t])(e,m.formatLong):e}).join("").match(l).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:h(e)};if(r.formatters[t])return{isToken:!0,value:e};if(t.match(f))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});m.localize.preprocessor&&(b=m.localize.preprocessor(y,b));let _={firstWeekContainsDate:g,weekStartsOn:v,locale:m};return b.map(t=>{if(!t.isToken)return t.value;let n=t.value;return(!d?.useAdditionalWeekYearTokens&&(0,o.isProtectedWeekYearToken)(n)||!d?.useAdditionalDayOfYearTokens&&(0,o.isProtectedDayOfYearToken)(n))&&(0,o.warnOrThrowProtectedError)(n,c,String(e)),(0,r.formatters[n[0]])(y,n,m.localize,_)}).join("")}function h(e){let t=e.match(c);return t?t[1].replace(d,"'"):e}}(format)),format}var getDate={};function requireGetDate(){if(hasRequiredGetDate)return getDate;hasRequiredGetDate=1,getDate.getDate=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getDate()}return getDate}var getDay={};function requireGetDay(){if(hasRequiredGetDay)return getDay;hasRequiredGetDay=1,getDay.getDay=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getDay()}return getDay}var getHours={};function requireGetHours(){if(hasRequiredGetHours)return getHours;hasRequiredGetHours=1,getHours.getHours=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getHours()}return getHours}var getMinutes={};function requireGetMinutes(){if(hasRequiredGetMinutes)return getMinutes;hasRequiredGetMinutes=1,getMinutes.getMinutes=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getMinutes()}return getMinutes}var getMonth={};function requireGetMonth(){if(hasRequiredGetMonth)return getMonth;hasRequiredGetMonth=1,getMonth.getMonth=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getMonth()}return getMonth}var getSeconds={};function requireGetSeconds(){if(hasRequiredGetSeconds)return getSeconds;hasRequiredGetSeconds=1,getSeconds.getSeconds=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getSeconds()}return getSeconds}var getTime={};function requireGetTime(){if(hasRequiredGetTime)return getTime;hasRequiredGetTime=1,getTime.getTime=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getTime()}return getTime}var getYear={};function requireGetYear(){if(hasRequiredGetYear)return getYear;hasRequiredGetYear=1,getYear.getYear=t;var e=requireToDate();function t(t){return(0,e.toDate)(t).getFullYear()}return getYear}var isAfter={};function requireIsAfter(){if(hasRequiredIsAfter)return isAfter;hasRequiredIsAfter=1,isAfter.isAfter=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t),i=(0,e.toDate)(n);return r.getTime()>i.getTime()}return isAfter}var isBefore={};function requireIsBefore(){if(hasRequiredIsBefore)return isBefore;hasRequiredIsBefore=1,isBefore.isBefore=t;var e=requireToDate();function t(t,n){return+(0,e.toDate)(t)<+(0,e.toDate)(n)}return isBefore}var isEqual={};function requireIsEqual(){if(hasRequiredIsEqual)return isEqual;hasRequiredIsEqual=1,isEqual.isEqual=t;var e=requireToDate();function t(t,n){return+(0,e.toDate)(t)==+(0,e.toDate)(n)}return isEqual}var isSameDay={};function requireIsSameDay(){if(hasRequiredIsSameDay)return isSameDay;hasRequiredIsSameDay=1,isSameDay.isSameDay=t;var e=requireStartOfDay();function t(t,n){return+(0,e.startOfDay)(t)==+(0,e.startOfDay)(n)}return isSameDay}var isSameMonth={};function requireIsSameMonth(){if(hasRequiredIsSameMonth)return isSameMonth;hasRequiredIsSameMonth=1,isSameMonth.isSameMonth=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t),i=(0,e.toDate)(n);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}return isSameMonth}var isSameQuarter={},startOfQuarter={};function requireStartOfQuarter(){if(hasRequiredStartOfQuarter)return startOfQuarter;hasRequiredStartOfQuarter=1,startOfQuarter.startOfQuarter=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}return startOfQuarter}function requireIsSameQuarter(){if(hasRequiredIsSameQuarter)return isSameQuarter;hasRequiredIsSameQuarter=1,isSameQuarter.isSameQuarter=t;var e=requireStartOfQuarter();function t(t,n){return+(0,e.startOfQuarter)(t)==+(0,e.startOfQuarter)(n)}return isSameQuarter}var isSameYear={};function requireIsSameYear(){if(hasRequiredIsSameYear)return isSameYear;hasRequiredIsSameYear=1,isSameYear.isSameYear=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t),i=(0,e.toDate)(n);return r.getFullYear()===i.getFullYear()}return isSameYear}var isWithinInterval={};function requireIsWithinInterval(){if(hasRequiredIsWithinInterval)return isWithinInterval;hasRequiredIsWithinInterval=1,isWithinInterval.isWithinInterval=t;var e=requireToDate();function t(t,n){let r=+(0,e.toDate)(t),[i,o]=[+(0,e.toDate)(n.start),+(0,e.toDate)(n.end)].sort((e,t)=>e-t);return r>=i&&r<=o}return isWithinInterval}var max={};function requireMax(){if(hasRequiredMax)return max;hasRequiredMax=1,max.max=t;var e=requireToDate();function t(t){let n;return t.forEach(function(t){let r=(0,e.toDate)(t);(void 0===n||n<r||isNaN(Number(r)))&&(n=r)}),n||new Date(NaN)}return max}var min={};function requireMin(){if(hasRequiredMin)return min;hasRequiredMin=1,min.min=t;var e=requireToDate();function t(t){let n;return t.forEach(t=>{let r=(0,e.toDate)(t);(!n||n>r||isNaN(+r))&&(n=r)}),n||new Date(NaN)}return min}var parse={},getDefaultOptions={};function requireGetDefaultOptions(){if(hasRequiredGetDefaultOptions)return getDefaultOptions;hasRequiredGetDefaultOptions=1,getDefaultOptions.getDefaultOptions=t;var e=requireDefaultOptions();function t(){return Object.assign({},(0,e.getDefaultOptions)())}return getDefaultOptions}var parsers={},EraParser={},Parser={},Setter={},transpose={};function requireTranspose(){if(hasRequiredTranspose)return transpose;hasRequiredTranspose=1,transpose.transpose=t;var e=requireConstructFrom();function t(t,n){let r=n instanceof Date?(0,e.constructFrom)(n,0):new n(0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}return transpose}function requireSetter(){if(hasRequiredSetter)return Setter;hasRequiredSetter=1,Setter.ValueSetter=Setter.Setter=Setter.DateToSystemTimezoneSetter=void 0;var e=requireTranspose(),t=requireConstructFrom();let n=10,r=class{subPriority=0;validate(e,t){return!0}};Setter.Setter=r;class i extends r{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}Setter.ValueSetter=i;class o extends r{priority=n;subPriority=-1;set(n,r){return r.timestampIsSet?n:(0,t.constructFrom)(n,(0,e.transpose)(n,Date))}}return Setter.DateToSystemTimezoneSetter=o,Setter}function requireParser(){if(hasRequiredParser)return Parser;hasRequiredParser=1,Parser.Parser=void 0;var e=requireSetter();let t=class{run(t,n,r,i){let o=this.parse(t,n,r,i);return o?{setter:new e.ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}};return Parser.Parser=t,Parser}function requireEraParser(){if(hasRequiredEraParser)return EraParser;hasRequiredEraParser=1,EraParser.EraParser=void 0;var e=requireParser();let t=class extends e.Parser{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};return EraParser.EraParser=t,EraParser}var YearParser={},utils={},constants={};function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,constants.timezonePatterns=constants.numericPatterns=void 0,constants.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},constants.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}),constants}function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1,utils.dayPeriodEnumToHours=l,utils.isLeapYearIndex=c,utils.mapValue=n,utils.normalizeTwoDigitYear=u,utils.parseAnyDigitsSigned=o,utils.parseNDigits=a,utils.parseNDigitsSigned=s,utils.parseNumericPattern=r,utils.parseTimezonePattern=i;var e=requireConstants$1(),t=requireConstants();function n(e,t){return e?{value:t(e.value),rest:e.rest}:e}function r(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function i(t,n){let r=n.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:n.slice(1)};let i="+"===r[1]?1:-1,o=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:i*(o*e.millisecondsInHour+a*e.millisecondsInMinute+s*e.millisecondsInSecond),rest:n.slice(r[0].length)}}function o(e){return r(t.numericPatterns.anyDigitsSigned,e)}function a(e,n){switch(e){case 1:return r(t.numericPatterns.singleDigit,n);case 2:return r(t.numericPatterns.twoDigits,n);case 3:return r(t.numericPatterns.threeDigits,n);case 4:return r(t.numericPatterns.fourDigits,n);default:return r(RegExp("^\\d{1,"+e+"}"),n)}}function s(e,n){switch(e){case 1:return r(t.numericPatterns.singleDigitSigned,n);case 2:return r(t.numericPatterns.twoDigitsSigned,n);case 3:return r(t.numericPatterns.threeDigitsSigned,n);case 4:return r(t.numericPatterns.fourDigitsSigned,n);default:return r(RegExp("^-?\\d{1,"+e+"}"),n)}}function l(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function u(e,t){let n;let r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{let t=i+50,r=100*Math.trunc(t/100),o=e>=t%100;n=e+r-(o?100:0)}return r?n:1-n}function c(e){return e%400==0||e%4==0&&e%100!=0}return utils}function requireYearParser(){if(hasRequiredYearParser)return YearParser;hasRequiredYearParser=1,YearParser.YearParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){let i=e=>({year:e,isTwoDigitYear:"yy"===n});switch(n){case"y":return(0,t.mapValue)((0,t.parseNDigits)(4,e),i);case"yo":return(0,t.mapValue)(r.ordinalNumber(e,{unit:"year"}),i);default:return(0,t.mapValue)((0,t.parseNDigits)(n.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,n,r){let i=e.getFullYear();if(r.isTwoDigitYear){let n=(0,t.normalizeTwoDigitYear)(r.year,i);return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}let o="era"in n&&1!==n.era?1-r.year:r.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}};return YearParser.YearParser=n,YearParser}var LocalWeekYearParser={};function requireLocalWeekYearParser(){if(hasRequiredLocalWeekYearParser)return LocalWeekYearParser;hasRequiredLocalWeekYearParser=1,LocalWeekYearParser.LocalWeekYearParser=void 0;var e=requireGetWeekYear(),t=requireStartOfWeek(),n=requireParser(),r=requireUtils();let i=class extends n.Parser{priority=130;parse(e,t,n){let i=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,r.mapValue)((0,r.parseNDigits)(4,e),i);case"Yo":return(0,r.mapValue)(n.ordinalNumber(e,{unit:"year"}),i);default:return(0,r.mapValue)((0,r.parseNDigits)(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(n,i,o,a){let s=(0,e.getWeekYear)(n,a);if(o.isTwoDigitYear){let e=(0,r.normalizeTwoDigitYear)(o.year,s);return n.setFullYear(e,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),(0,t.startOfWeek)(n,a)}let l="era"in i&&1!==i.era?1-o.year:o.year;return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),(0,t.startOfWeek)(n,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};return LocalWeekYearParser.LocalWeekYearParser=i,LocalWeekYearParser}var ISOWeekYearParser={};function requireISOWeekYearParser(){if(hasRequiredISOWeekYearParser)return ISOWeekYearParser;hasRequiredISOWeekYearParser=1,ISOWeekYearParser.ISOWeekYearParser=void 0;var e=requireStartOfISOWeek(),t=requireConstructFrom(),n=requireParser(),r=requireUtils();let i=class extends n.Parser{priority=130;parse(e,t){return"R"===t?(0,r.parseNDigitsSigned)(4,e):(0,r.parseNDigitsSigned)(t.length,e)}set(n,r,i){let o=(0,t.constructFrom)(n,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),(0,e.startOfISOWeek)(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};return ISOWeekYearParser.ISOWeekYearParser=i,ISOWeekYearParser}var ExtendedYearParser={};function requireExtendedYearParser(){if(hasRequiredExtendedYearParser)return ExtendedYearParser;hasRequiredExtendedYearParser=1,ExtendedYearParser.ExtendedYearParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=130;parse(e,n){return"u"===n?(0,t.parseNDigitsSigned)(4,e):(0,t.parseNDigitsSigned)(n.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};return ExtendedYearParser.ExtendedYearParser=n,ExtendedYearParser}var QuarterParser={};function requireQuarterParser(){if(hasRequiredQuarterParser)return QuarterParser;hasRequiredQuarterParser=1,QuarterParser.QuarterParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return(0,t.parseNDigits)(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};return QuarterParser.QuarterParser=n,QuarterParser}var StandAloneQuarterParser={};function requireStandAloneQuarterParser(){if(hasRequiredStandAloneQuarterParser)return StandAloneQuarterParser;hasRequiredStandAloneQuarterParser=1,StandAloneQuarterParser.StandAloneQuarterParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return(0,t.parseNDigits)(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};return StandAloneQuarterParser.StandAloneQuarterParser=n,StandAloneQuarterParser}var MonthParser={};function requireMonthParser(){if(hasRequiredMonthParser)return MonthParser;hasRequiredMonthParser=1,MonthParser.MonthParser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,i){let o=e=>e-1;switch(r){case"M":return(0,n.mapValue)((0,n.parseNumericPattern)(e.numericPatterns.month,t),o);case"MM":return(0,n.mapValue)((0,n.parseNDigits)(2,t),o);case"Mo":return(0,n.mapValue)(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};return MonthParser.MonthParser=r,MonthParser}var StandAloneMonthParser={};function requireStandAloneMonthParser(){if(hasRequiredStandAloneMonthParser)return StandAloneMonthParser;hasRequiredStandAloneMonthParser=1,StandAloneMonthParser.StandAloneMonthParser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=110;parse(t,r,i){let o=e=>e-1;switch(r){case"L":return(0,n.mapValue)((0,n.parseNumericPattern)(e.numericPatterns.month,t),o);case"LL":return(0,n.mapValue)((0,n.parseNDigits)(2,t),o);case"Lo":return(0,n.mapValue)(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};return StandAloneMonthParser.StandAloneMonthParser=r,StandAloneMonthParser}var LocalWeekParser={},setWeek={};function requireSetWeek(){if(hasRequiredSetWeek)return setWeek;hasRequiredSetWeek=1,setWeek.setWeek=n;var e=requireGetWeek(),t=requireToDate();function n(n,r,i){let o=(0,t.toDate)(n),a=(0,e.getWeek)(o,i)-r;return o.setDate(o.getDate()-7*a),o}return setWeek}function requireLocalWeekParser(){if(hasRequiredLocalWeekParser)return LocalWeekParser;hasRequiredLocalWeekParser=1,LocalWeekParser.LocalWeekParser=void 0;var e=requireSetWeek(),t=requireStartOfWeek(),n=requireConstants(),r=requireParser(),i=requireUtils();let o=class extends r.Parser{priority=100;parse(e,t,r){switch(t){case"w":return(0,i.parseNumericPattern)(n.numericPatterns.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(n,r,i,o){return(0,t.startOfWeek)((0,e.setWeek)(n,i,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};return LocalWeekParser.LocalWeekParser=o,LocalWeekParser}var ISOWeekParser={},setISOWeek={};function requireSetISOWeek(){if(hasRequiredSetISOWeek)return setISOWeek;hasRequiredSetISOWeek=1,setISOWeek.setISOWeek=n;var e=requireGetISOWeek(),t=requireToDate();function n(n,r){let i=(0,t.toDate)(n),o=(0,e.getISOWeek)(i)-r;return i.setDate(i.getDate()-7*o),i}return setISOWeek}function requireISOWeekParser(){if(hasRequiredISOWeekParser)return ISOWeekParser;hasRequiredISOWeekParser=1,ISOWeekParser.ISOWeekParser=void 0;var e=requireSetISOWeek(),t=requireStartOfISOWeek(),n=requireConstants(),r=requireParser(),i=requireUtils();let o=class extends r.Parser{priority=100;parse(e,t,r){switch(t){case"I":return(0,i.parseNumericPattern)(n.numericPatterns.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(n,r,i){return(0,t.startOfISOWeek)((0,e.setISOWeek)(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};return ISOWeekParser.ISOWeekParser=o,ISOWeekParser}var DateParser={};function requireDateParser(){if(hasRequiredDateParser)return DateParser;hasRequiredDateParser=1,DateParser.DateParser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=[31,28,31,30,31,30,31,31,30,31,30,31],i=[31,29,31,30,31,30,31,31,30,31,30,31],o=class extends t.Parser{priority=90;subPriority=1;parse(t,r,i){switch(r){case"d":return(0,n.parseNumericPattern)(e.numericPatterns.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){let o=e.getFullYear(),a=(0,n.isLeapYearIndex)(o),s=e.getMonth();return a?t>=1&&t<=i[s]:t>=1&&t<=r[s]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};return DateParser.DateParser=o,DateParser}var DayOfYearParser={};function requireDayOfYearParser(){if(hasRequiredDayOfYearParser)return DayOfYearParser;hasRequiredDayOfYearParser=1,DayOfYearParser.DayOfYearParser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=90;subpriority=1;parse(t,r,i){switch(r){case"D":case"DD":return(0,n.parseNumericPattern)(e.numericPatterns.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){let r=e.getFullYear();return(0,n.isLeapYearIndex)(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};return DayOfYearParser.DayOfYearParser=r,DayOfYearParser}var DayParser={},setDay={};function requireSetDay(){if(hasRequiredSetDay)return setDay;hasRequiredSetDay=1,setDay.setDay=r;var e=requireAddDays(),t=requireToDate(),n=requireDefaultOptions();function r(r,i,o){let a=(0,n.getDefaultOptions)(),s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=(0,t.toDate)(r),u=l.getDay(),c=(i%7+7)%7,d=7-s,f=i<0||i>6?i-(u+d)%7:(c+d)%7-(u+d)%7;return(0,e.addDays)(l,f)}return setDay}function requireDayParser(){if(hasRequiredDayParser)return DayParser;hasRequiredDayParser=1,DayParser.DayParser=void 0;var e=requireSetDay(),t=requireParser();let n=class extends t.Parser{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};return DayParser.DayParser=n,DayParser}var LocalDayParser={};function requireLocalDayParser(){if(hasRequiredLocalDayParser)return LocalDayParser;hasRequiredLocalDayParser=1,LocalDayParser.LocalDayParser=void 0;var e=requireSetDay(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=90;parse(e,t,r,i){let o=e=>{let t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),o);case"eo":return(0,n.mapValue)(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};return LocalDayParser.LocalDayParser=r,LocalDayParser}var StandAloneLocalDayParser={};function requireStandAloneLocalDayParser(){if(hasRequiredStandAloneLocalDayParser)return StandAloneLocalDayParser;hasRequiredStandAloneLocalDayParser=1,StandAloneLocalDayParser.StandAloneLocalDayParser=void 0;var e=requireSetDay(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=90;parse(e,t,r,i){let o=e=>{let t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),o);case"co":return(0,n.mapValue)(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};return StandAloneLocalDayParser.StandAloneLocalDayParser=r,StandAloneLocalDayParser}var ISODayParser={},setISODay={},getISODay={};function requireGetISODay(){if(hasRequiredGetISODay)return getISODay;hasRequiredGetISODay=1,getISODay.getISODay=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t).getDay();return 0===n&&(n=7),n}return getISODay}function requireSetISODay(){if(hasRequiredSetISODay)return setISODay;hasRequiredSetISODay=1,setISODay.setISODay=r;var e=requireAddDays(),t=requireGetISODay(),n=requireToDate();function r(r,i){let o=(0,n.toDate)(r),a=i-(0,t.getISODay)(o);return(0,e.addDays)(o,a)}return setISODay}function requireISODayParser(){if(hasRequiredISODayParser)return ISODayParser;hasRequiredISODayParser=1,ISODayParser.ISODayParser=void 0;var e=requireSetISODay(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=90;parse(e,t,r){let i=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,n.parseNDigits)(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return(0,n.mapValue)(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return(0,n.mapValue)(r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return(0,n.mapValue)(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);default:return(0,n.mapValue)(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(t,n,r){return(t=(0,e.setISODay)(t,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};return ISODayParser.ISODayParser=r,ISODayParser}var AMPMParser={};function requireAMPMParser(){if(hasRequiredAMPMParser)return AMPMParser;hasRequiredAMPMParser=1,AMPMParser.AMPMParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};return AMPMParser.AMPMParser=n,AMPMParser}var AMPMMidnightParser={};function requireAMPMMidnightParser(){if(hasRequiredAMPMMidnightParser)return AMPMMidnightParser;hasRequiredAMPMMidnightParser=1,AMPMMidnightParser.AMPMMidnightParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};return AMPMMidnightParser.AMPMMidnightParser=n,AMPMMidnightParser}var DayPeriodParser={};function requireDayPeriodParser(){if(hasRequiredDayPeriodParser)return DayPeriodParser;hasRequiredDayPeriodParser=1,DayPeriodParser.DayPeriodParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]};return DayPeriodParser.DayPeriodParser=n,DayPeriodParser}var Hour1to12Parser={};function requireHour1to12Parser(){if(hasRequiredHour1to12Parser)return Hour1to12Parser;hasRequiredHour1to12Parser=1,Hour1to12Parser.Hour1to12Parser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"h":return(0,n.parseNumericPattern)(e.numericPatterns.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};return Hour1to12Parser.Hour1to12Parser=r,Hour1to12Parser}var Hour0to23Parser={};function requireHour0to23Parser(){if(hasRequiredHour0to23Parser)return Hour0to23Parser;hasRequiredHour0to23Parser=1,Hour0to23Parser.Hour0to23Parser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"H":return(0,n.parseNumericPattern)(e.numericPatterns.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};return Hour0to23Parser.Hour0to23Parser=r,Hour0to23Parser}var Hour0To11Parser={};function requireHour0To11Parser(){if(hasRequiredHour0To11Parser)return Hour0To11Parser;hasRequiredHour0To11Parser=1,Hour0To11Parser.Hour0To11Parser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"K":return(0,n.parseNumericPattern)(e.numericPatterns.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};return Hour0To11Parser.Hour0To11Parser=r,Hour0To11Parser}var Hour1To24Parser={};function requireHour1To24Parser(){if(hasRequiredHour1To24Parser)return Hour1To24Parser;hasRequiredHour1To24Parser=1,Hour1To24Parser.Hour1To24Parser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"k":return(0,n.parseNumericPattern)(e.numericPatterns.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};return Hour1To24Parser.Hour1To24Parser=r,Hour1To24Parser}var MinuteParser={};function requireMinuteParser(){if(hasRequiredMinuteParser)return MinuteParser;hasRequiredMinuteParser=1,MinuteParser.MinuteParser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=60;parse(t,r,i){switch(r){case"m":return(0,n.parseNumericPattern)(e.numericPatterns.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};return MinuteParser.MinuteParser=r,MinuteParser}var SecondParser={};function requireSecondParser(){if(hasRequiredSecondParser)return SecondParser;hasRequiredSecondParser=1,SecondParser.SecondParser=void 0;var e=requireConstants(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=50;parse(t,r,i){switch(r){case"s":return(0,n.parseNumericPattern)(e.numericPatterns.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};return SecondParser.SecondParser=r,SecondParser}var FractionOfSecondParser={};function requireFractionOfSecondParser(){if(hasRequiredFractionOfSecondParser)return FractionOfSecondParser;hasRequiredFractionOfSecondParser=1,FractionOfSecondParser.FractionOfSecondParser=void 0;var e=requireParser(),t=requireUtils();let n=class extends e.Parser{priority=30;parse(e,n){let r=e=>Math.trunc(e*Math.pow(10,-n.length+3));return(0,t.mapValue)((0,t.parseNDigits)(n.length,e),r)}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};return FractionOfSecondParser.FractionOfSecondParser=n,FractionOfSecondParser}var ISOTimezoneWithZParser={};function requireISOTimezoneWithZParser(){if(hasRequiredISOTimezoneWithZParser)return ISOTimezoneWithZParser;hasRequiredISOTimezoneWithZParser=1,ISOTimezoneWithZParser.ISOTimezoneWithZParser=void 0;var e=requireConstructFrom(),t=requireGetTimezoneOffsetInMilliseconds(),n=requireConstants(),r=requireParser(),i=requireUtils();let o=class extends r.Parser{priority=10;parse(e,t){switch(t){case"X":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,i.parseTimezonePattern)(n.timezonePatterns.basic,e);case"XXXX":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,i.parseTimezonePattern)(n.timezonePatterns.extendedOptionalSeconds,e);default:return(0,i.parseTimezonePattern)(n.timezonePatterns.extended,e)}}set(n,r,i){return r.timestampIsSet?n:(0,e.constructFrom)(n,n.getTime()-(0,t.getTimezoneOffsetInMilliseconds)(n)-i)}incompatibleTokens=["t","T","x"]};return ISOTimezoneWithZParser.ISOTimezoneWithZParser=o,ISOTimezoneWithZParser}var ISOTimezoneParser={};function requireISOTimezoneParser(){if(hasRequiredISOTimezoneParser)return ISOTimezoneParser;hasRequiredISOTimezoneParser=1,ISOTimezoneParser.ISOTimezoneParser=void 0;var e=requireConstructFrom(),t=requireGetTimezoneOffsetInMilliseconds(),n=requireConstants(),r=requireParser(),i=requireUtils();let o=class extends r.Parser{priority=10;parse(e,t){switch(t){case"x":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,i.parseTimezonePattern)(n.timezonePatterns.basic,e);case"xxxx":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,i.parseTimezonePattern)(n.timezonePatterns.extendedOptionalSeconds,e);default:return(0,i.parseTimezonePattern)(n.timezonePatterns.extended,e)}}set(n,r,i){return r.timestampIsSet?n:(0,e.constructFrom)(n,n.getTime()-(0,t.getTimezoneOffsetInMilliseconds)(n)-i)}incompatibleTokens=["t","T","X"]};return ISOTimezoneParser.ISOTimezoneParser=o,ISOTimezoneParser}var TimestampSecondsParser={};function requireTimestampSecondsParser(){if(hasRequiredTimestampSecondsParser)return TimestampSecondsParser;hasRequiredTimestampSecondsParser=1,TimestampSecondsParser.TimestampSecondsParser=void 0;var e=requireConstructFrom(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=40;parse(e){return(0,n.parseAnyDigitsSigned)(e)}set(t,n,r){return[(0,e.constructFrom)(t,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"};return TimestampSecondsParser.TimestampSecondsParser=r,TimestampSecondsParser}var TimestampMillisecondsParser={};function requireTimestampMillisecondsParser(){if(hasRequiredTimestampMillisecondsParser)return TimestampMillisecondsParser;hasRequiredTimestampMillisecondsParser=1,TimestampMillisecondsParser.TimestampMillisecondsParser=void 0;var e=requireConstructFrom(),t=requireParser(),n=requireUtils();let r=class extends t.Parser{priority=20;parse(e){return(0,n.parseAnyDigitsSigned)(e)}set(t,n,r){return[(0,e.constructFrom)(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"};return TimestampMillisecondsParser.TimestampMillisecondsParser=r,TimestampMillisecondsParser}function requireParsers(){if(hasRequiredParsers)return parsers;hasRequiredParsers=1,parsers.parsers=void 0;var e=requireEraParser(),t=requireYearParser(),n=requireLocalWeekYearParser(),r=requireISOWeekYearParser(),i=requireExtendedYearParser(),o=requireQuarterParser(),a=requireStandAloneQuarterParser(),s=requireMonthParser(),l=requireStandAloneMonthParser(),u=requireLocalWeekParser(),c=requireISOWeekParser(),d=requireDateParser(),f=requireDayOfYearParser(),p=requireDayParser(),h=requireLocalDayParser(),m=requireStandAloneLocalDayParser(),g=requireISODayParser(),v=requireAMPMParser(),y=requireAMPMMidnightParser(),b=requireDayPeriodParser(),_=requireHour1to12Parser(),E=requireHour0to23Parser(),w=requireHour0To11Parser(),S=requireHour1To24Parser(),T=requireMinuteParser(),O=requireSecondParser(),I=requireFractionOfSecondParser(),A=requireISOTimezoneWithZParser(),C=requireISOTimezoneParser(),x=requireTimestampSecondsParser(),D=requireTimestampMillisecondsParser();return parsers.parsers={G:new e.EraParser,y:new t.YearParser,Y:new n.LocalWeekYearParser,R:new r.ISOWeekYearParser,u:new i.ExtendedYearParser,Q:new o.QuarterParser,q:new a.StandAloneQuarterParser,M:new s.MonthParser,L:new l.StandAloneMonthParser,w:new u.LocalWeekParser,I:new c.ISOWeekParser,d:new d.DateParser,D:new f.DayOfYearParser,E:new p.DayParser,e:new h.LocalDayParser,c:new m.StandAloneLocalDayParser,i:new g.ISODayParser,a:new v.AMPMParser,b:new y.AMPMMidnightParser,B:new b.DayPeriodParser,h:new _.Hour1to12Parser,H:new E.Hour0to23Parser,K:new w.Hour0To11Parser,k:new S.Hour1To24Parser,m:new T.MinuteParser,s:new O.SecondParser,S:new I.FractionOfSecondParser,X:new A.ISOTimezoneWithZParser,x:new C.ISOTimezoneParser,t:new x.TimestampSecondsParser,T:new D.TimestampMillisecondsParser},parsers}function requireParse(){return hasRequiredParse||(hasRequiredParse=1,function(e){Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return o.longFormatters}}),e.parse=m,Object.defineProperty(e,"parsers",{enumerable:!0,get:function(){return s.parsers}});var t=requireConstructFrom(),n=requireGetDefaultOptions(),r=requireDefaultLocale(),i=requireToDate(),o=requireLongFormatters(),a=requireProtectedTokens(),s=requireParsers(),l=requireSetter();let u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d=/^'([^]*?)'?$/,f=/''/g,p=/\S/,h=/[a-zA-Z]/;function m(e,d,f,m){let v=(0,n.getDefaultOptions)(),y=m?.locale??v.locale??r.defaultLocale,b=m?.firstWeekContainsDate??m?.locale?.options?.firstWeekContainsDate??v.firstWeekContainsDate??v.locale?.options?.firstWeekContainsDate??1,_=m?.weekStartsOn??m?.locale?.options?.weekStartsOn??v.weekStartsOn??v.locale?.options?.weekStartsOn??0;if(""===d)return""===e?(0,i.toDate)(f):(0,t.constructFrom)(f,NaN);let E={firstWeekContainsDate:b,weekStartsOn:_,locale:y},w=[new l.DateToSystemTimezoneSetter],S=d.match(c).map(e=>{let t=e[0];return t in o.longFormatters?(0,o.longFormatters[t])(e,y.formatLong):e}).join("").match(u),T=[];for(let n of S){!m?.useAdditionalWeekYearTokens&&(0,a.isProtectedWeekYearToken)(n)&&(0,a.warnOrThrowProtectedError)(n,d,e),!m?.useAdditionalDayOfYearTokens&&(0,a.isProtectedDayOfYearToken)(n)&&(0,a.warnOrThrowProtectedError)(n,d,e);let r=n[0],i=s.parsers[r];if(i){let{incompatibleTokens:o}=i;if(Array.isArray(o)){let e=T.find(e=>o.includes(e.token)||e.token===r);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if("*"===i.incompatibleTokens&&T.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);T.push({token:r,fullToken:n});let a=i.run(e,n,y.match,E);if(!a)return(0,t.constructFrom)(f,NaN);w.push(a.setter),e=a.rest}else{if(r.match(h))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===n?n="'":"'"===r&&(n=g(n)),0!==e.indexOf(n))return(0,t.constructFrom)(f,NaN);e=e.slice(n.length)}}if(e.length>0&&p.test(e))return(0,t.constructFrom)(f,NaN);let O=w.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>w.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),I=(0,i.toDate)(f);if(isNaN(I.getTime()))return(0,t.constructFrom)(f,NaN);let A={};for(let e of O){if(!e.validate(I,E))return(0,t.constructFrom)(f,NaN);let n=e.set(I,A,E);Array.isArray(n)?(I=n[0],Object.assign(A,n[1])):I=n}return(0,t.constructFrom)(f,I)}function g(e){return e.match(d)[1].replace(f,"'")}}(parse)),parse}var parseISO={};function requireParseISO(){if(hasRequiredParseISO)return parseISO;hasRequiredParseISO=1,parseISO.parseISO=t;var e=requireConstants$1();function t(e,t){let n,r;let i=t?.additionalDigits??2,o=a(e);if(o.date){let e=s(o.date,i);n=l(e.restDateString,e.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);let u=n.getTime(),d=0;if(o.time&&isNaN(d=c(o.time)))return new Date(NaN);if(o.timezone){if(isNaN(r=f(o.timezone)))return new Date(NaN)}else{let e=new Date(u+d),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(u+d+r)}let n={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},r=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,i=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,o=/^([+-])(\d{2})(?::?(\d{2}))?$/;function a(e){let t;let r={},i=e.split(n.dateTimeDelimiter);if(i.length>2)return r;if(/:/.test(i[0])?t=i[0]:(r.date=i[0],t=i[1],n.timeZoneDelimiter.test(r.date)&&(r.date=e.split(n.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){let e=n.timezone.exec(t);e?(r.time=t.replace(e[1],""),r.timezone=e[1]):r.time=t}return r}function s(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}function l(e,t){if(null===t)return new Date(NaN);let n=e.match(r);if(!n)return new Date(NaN);let i=!!n[4],o=u(n[1]),a=u(n[2])-1,s=u(n[3]),l=u(n[4]),c=u(n[5])-1;if(i)return y(t,l,c)?p(t,l,c):new Date(NaN);{let e=new Date(0);return g(t,a,s)&&v(t,o)?(e.setUTCFullYear(t,a,Math.max(o,s)),e):new Date(NaN)}}function u(e){return e?parseInt(e):1}function c(t){let n=t.match(i);if(!n)return NaN;let r=d(n[1]),o=d(n[2]),a=d(n[3]);return b(r,o,a)?r*e.millisecondsInHour+o*e.millisecondsInMinute+1e3*a:NaN}function d(e){return e&&parseFloat(e.replace(",","."))||0}function f(t){if("Z"===t)return 0;let n=t.match(o);if(!n)return 0;let r="+"===n[1]?-1:1,i=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return _(i,a)?r*(i*e.millisecondsInHour+a*e.millisecondsInMinute):NaN}function p(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=(t-1)*7+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}let h=[31,null,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400==0||e%4==0&&e%100!=0}function g(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(h[t]||(m(e)?29:28))}function v(e,t){return t>=1&&t<=(m(e)?366:365)}function y(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function b(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function _(e,t){return t>=0&&t<=59}return parseISO}var set={},setMonth={},getDaysInMonth={};function requireGetDaysInMonth(){if(hasRequiredGetDaysInMonth)return getDaysInMonth;hasRequiredGetDaysInMonth=1,getDaysInMonth.getDaysInMonth=n;var e=requireToDate(),t=requireConstructFrom();function n(n){let r=(0,e.toDate)(n),i=r.getFullYear(),o=r.getMonth(),a=(0,t.constructFrom)(n,0);return a.setFullYear(i,o+1,0),a.setHours(0,0,0,0),a.getDate()}return getDaysInMonth}function requireSetMonth(){if(hasRequiredSetMonth)return setMonth;hasRequiredSetMonth=1,setMonth.setMonth=r;var e=requireConstructFrom(),t=requireGetDaysInMonth(),n=requireToDate();function r(r,i){let o=(0,n.toDate)(r),a=o.getFullYear(),s=o.getDate(),l=(0,e.constructFrom)(r,0);l.setFullYear(a,i,15),l.setHours(0,0,0,0);let u=(0,t.getDaysInMonth)(l);return o.setMonth(i,Math.min(s,u)),o}return setMonth}function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1,set.set=r;var e=requireConstructFrom(),t=requireSetMonth(),n=requireToDate();function r(r,i){let o=(0,n.toDate)(r);return isNaN(+o)?(0,e.constructFrom)(r,NaN):(null!=i.year&&o.setFullYear(i.year),null!=i.month&&(o=(0,t.setMonth)(o,i.month)),null!=i.date&&o.setDate(i.date),null!=i.hours&&o.setHours(i.hours),null!=i.minutes&&o.setMinutes(i.minutes),null!=i.seconds&&o.setSeconds(i.seconds),null!=i.milliseconds&&o.setMilliseconds(i.milliseconds),o)}return set}var setHours={};function requireSetHours(){if(hasRequiredSetHours)return setHours;hasRequiredSetHours=1,setHours.setHours=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t);return r.setHours(n),r}return setHours}var setMinutes={};function requireSetMinutes(){if(hasRequiredSetMinutes)return setMinutes;hasRequiredSetMinutes=1,setMinutes.setMinutes=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t);return r.setMinutes(n),r}return setMinutes}var setQuarter={};function requireSetQuarter(){if(hasRequiredSetQuarter)return setQuarter;hasRequiredSetQuarter=1,setQuarter.setQuarter=n;var e=requireSetMonth(),t=requireToDate();function n(n,r){let i=(0,t.toDate)(n),o=r-(Math.trunc(i.getMonth()/3)+1);return(0,e.setMonth)(i,i.getMonth()+3*o)}return setQuarter}var setSeconds={};function requireSetSeconds(){if(hasRequiredSetSeconds)return setSeconds;hasRequiredSetSeconds=1,setSeconds.setSeconds=t;var e=requireToDate();function t(t,n){let r=(0,e.toDate)(t);return r.setSeconds(n),r}return setSeconds}var setYear={};function requireSetYear(){if(hasRequiredSetYear)return setYear;hasRequiredSetYear=1,setYear.setYear=n;var e=requireConstructFrom(),t=requireToDate();function n(n,r){let i=(0,t.toDate)(n);return isNaN(+i)?(0,e.constructFrom)(n,NaN):(i.setFullYear(r),i)}return setYear}var startOfMonth={};function requireStartOfMonth(){if(hasRequiredStartOfMonth)return startOfMonth;hasRequiredStartOfMonth=1,startOfMonth.startOfMonth=t;var e=requireToDate();function t(t){let n=(0,e.toDate)(t);return n.setDate(1),n.setHours(0,0,0,0),n}return startOfMonth}var subDays={};function requireSubDays(){if(hasRequiredSubDays)return subDays;hasRequiredSubDays=1,subDays.subDays=t;var e=requireAddDays();function t(t,n){return(0,e.addDays)(t,-n)}return subDays}var subMonths={};function requireSubMonths(){if(hasRequiredSubMonths)return subMonths;hasRequiredSubMonths=1,subMonths.subMonths=t;var e=requireAddMonths();function t(t,n){return(0,e.addMonths)(t,-n)}return subMonths}var subQuarters={};function requireSubQuarters(){if(hasRequiredSubQuarters)return subQuarters;hasRequiredSubQuarters=1,subQuarters.subQuarters=t;var e=requireAddQuarters();function t(t,n){return(0,e.addQuarters)(t,-n)}return subQuarters}var subWeeks={};function requireSubWeeks(){if(hasRequiredSubWeeks)return subWeeks;hasRequiredSubWeeks=1,subWeeks.subWeeks=t;var e=requireAddWeeks();function t(t,n){return(0,e.addWeeks)(t,-n)}return subWeeks}var subYears={};function requireSubYears(){if(hasRequiredSubYears)return subYears;hasRequiredSubYears=1,subYears.subYears=t;var e=requireAddYears();function t(t,n){return(0,e.addYears)(t,-n)}return subYears}function activeElement(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function contains(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function getPlatform(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function getUserAgent(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function isVirtualClick(e){return 0===e.mozInputSource&&!!e.isTrusted||(isAndroid()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function isVirtualPointerEvent(e){return!isJSDOM()&&(!isAndroid()&&0===e.width&&0===e.height||isAndroid()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function isSafari(){return/apple/i.test(navigator.vendor)}function isAndroid(){let e=/android/i;return e.test(getPlatform())||e.test(getUserAgent())}function isMac(){return getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function isJSDOM(){return getUserAgent().includes("jsdom/")}function isMouseLikePointerType(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function isReactEvent(e){return"nativeEvent"in e}function isRootElement(e){return e.matches("html,body")}function getDocument(e){return(null==e?void 0:e.ownerDocument)||document}function isEventTargetWithin(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);let n=e;return null!=n.target&&t.contains(n.target)}function getTarget(e){return"composedPath"in e?e.composedPath()[0]:e.target}let TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function isTypeableElement(e){return isHTMLElement(e)&&e.matches(TYPEABLE_SELECTOR)}function stopEvent(e){e.preventDefault(),e.stopPropagation()}function isTypeableCombobox(e){return!!e&&"combobox"===e.getAttribute("role")&&isTypeableElement(e)}/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var candidateSelectors=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],candidateSelector=candidateSelectors.join(","),NoElement="undefined"==typeof Element,matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},isInert=function e(t,n){void 0===n&&(n=!0);var r,i=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},isContentEditable=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},getCandidates=function(e,t,n){if(isInert(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(candidateSelector));return t&&matches.call(e,candidateSelector)&&r.unshift(e),r=r.filter(n)},getCandidatesIteratively=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!isInert(a,!1)){if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{matches.call(a,candidateSelector)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),c=!isInert(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}}return i},hasTabIndex=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},getTabIndex=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||isContentEditable(e))&&!hasTabIndex(e)?0:e.tabIndex},getSortOrderTabIndex=function(e,t){var n=getTabIndex(e);return n<0&&t&&!hasTabIndex(e)?0:n},sortOrderedTabbables=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},isInput=function(e){return"INPUT"===e.tagName},isHiddenInput=function(e){return isInput(e)&&"hidden"===e.type},isDetailsWithSummary=function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})},getCheckedRadio=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},isTabbableRadio=function(e){if(!e.name)return!0;var t,n=e.form||getRootNode(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=getCheckedRadio(t,e.form);return!i||i===e},isRadio=function(e){return isInput(e)&&"radio"===e.type},isNonTabbableRadio=function(e){return isRadio(e)&&!isTabbableRadio(e)},isNodeAttached=function(e){var t,n,r,i,o,a,s,l=e&&getRootNode(e),u=null===(t=l)||void 0===t?void 0:t.host,c=!1;if(l&&l!==e)for(c=!!(null!==(n=u)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(u)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!c&&u;)c=!!(null!==(a=u=null===(o=l=getRootNode(u))||void 0===o?void 0:o.host)&&void 0!==a&&null!==(s=a.ownerDocument)&&void 0!==s&&s.contains(u));return c},isZeroArea=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},isHidden=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=matches.call(e,"details>summary:first-of-type")?e.parentElement:e;if(matches.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return isZeroArea(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,s=getRootNode(e);if(a&&!a.shadowRoot&&!0===r(a))return isZeroArea(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(isNodeAttached(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},isDisabledFromFieldset=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!matches.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},isNodeMatchingSelectorFocusable=function(e,t){return!(t.disabled||isInert(t)||isHiddenInput(t)||isHidden(t,e)||isDetailsWithSummary(t)||isDisabledFromFieldset(t))},isNodeMatchingSelectorTabbable=function(e,t){return!(isNonTabbableRadio(t)||0>getTabIndex(t))&&!!isNodeMatchingSelectorFocusable(e,t)},isValidShadowRootTabbable=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},sortByOrder=function e(t){var n=[],r=[];return t.forEach(function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=getSortOrderTabIndex(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})}),r.sort(sortOrderedTabbables).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},tabbable=function(e,t){var n;return sortByOrder(n=(t=t||{}).getShadowRoot?getCandidatesIteratively([e],t.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(e,t.includeContainer,isNodeMatchingSelectorTabbable.bind(null,t)))},isTabbable=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==matches.call(e,candidateSelector)&&isNodeMatchingSelectorTabbable(t,e)},index$1="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_2__.useEffect;function deepEqual(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!deepEqual(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!deepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function getDPR(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,t){let n=getDPR(e);return Math.round(t*n)/n}function useLatestRef$1(e){let t=react__WEBPACK_IMPORTED_MODULE_2__.useRef(e);return index$1(()=>{t.current=e}),t}function useFloating$1(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=react__WEBPACK_IMPORTED_MODULE_2__.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=react__WEBPACK_IMPORTED_MODULE_2__.useState(r);deepEqual(f,r)||p(r);let[h,m]=react__WEBPACK_IMPORTED_MODULE_2__.useState(null),[g,v]=react__WEBPACK_IMPORTED_MODULE_2__.useState(null),y=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{e!==w.current&&(w.current=e,m(e))},[]),b=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),_=o||h,E=a||g,w=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),S=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),T=react__WEBPACK_IMPORTED_MODULE_2__.useRef(c),O=null!=l,I=useLatestRef$1(l),A=useLatestRef$1(i),C=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(()=>{if(!w.current||!S.current)return;let e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),computePosition(w.current,S.current,e).then(e=>{let t={...e,isPositioned:!0};x.current&&!deepEqual(T.current,t)&&(T.current=t,react_dom__WEBPACK_IMPORTED_MODULE_4__.flushSync(()=>{d(t)}))})},[f,t,n,A]);index$1(()=>{!1===u&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let x=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1);index$1(()=>(x.current=!0,()=>{x.current=!1}),[]),index$1(()=>{if(_&&(w.current=_),E&&(S.current=E),_&&E){if(I.current)return I.current(_,E,C);C()}},[_,E,C,I,O]);let D=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({reference:w,floating:S,setReference:y,setFloating:b}),[y,b]),R=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({reference:_,floating:E}),[_,E]),L=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>{let e={position:n,left:0,top:0};if(!R.floating)return e;let t=roundByDPR(R.floating,c.x),r=roundByDPR(R.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...getDPR(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,R.floating,c.x,c.y]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({...c,update:C,refs:D,elements:R,floatingStyles:L}),[c,C,D,R,L])}let arrow$1=e=>{function t(e){return({}).hasOwnProperty.call(e,"current")}return{name:"arrow",options:e,fn(n){let{element:r,padding:i}="function"==typeof e?e(n):e;return r&&t(r)?null!=r.current?arrow$2({element:r.current,padding:i}).fn(n):{}:r?arrow$2({element:r,padding:i}).fn(n):{}}}},offset=(e,t)=>({...offset$1(e),options:[e,t]}),shift=(e,t)=>({...shift$1(e),options:[e,t]}),limitShift=(e,t)=>({...limitShift$1(e),options:[e,t]}),flip=(e,t)=>({...flip$1(e),options:[e,t]}),size=(e,t)=>({...size$1(e),options:[e,t]}),autoPlacement=(e,t)=>({...autoPlacement$1(e),options:[e,t]}),hide=(e,t)=>({...hide$1(e),options:[e,t]}),inline=(e,t)=>({...inline$1(e),options:[e,t]}),arrow=(e,t)=>({...arrow$1(e),options:[e,t]});function useMergeRefs(e){return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}let SafeReact={...react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_2__,2))},useInsertionEffect=SafeReact.useInsertionEffect,useSafeInsertionEffect=useInsertionEffect||(e=>e());function useEffectEvent(e){let t=react__WEBPACK_IMPORTED_MODULE_2__.useRef(()=>{});return useSafeInsertionEffect(()=>{t.current=e}),react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}let ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight";function isDifferentRow(e,t,n){return Math.floor(e/t)!==n}function isIndexOutOfBounds(e,t){return t<0||t>=e.current.length}function getMinIndex(e,t){return findNonDisabledIndex(e,{disabledIndices:t})}function getMaxIndex(e,t){return findNonDisabledIndex(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function findNonDisabledIndex(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=void 0===t?{}:t,a=e.current,s=n;do s+=r?-o:o;while(s>=0&&s<=a.length-1&&isDisabled(a,s,i));return s}function getGridNavigatedIndex(e,t){let{event:n,orientation:r,loop:i,cols:o,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:u,stopEvent:c=!1}=t,d=u;if(n.key===ARROW_UP){if(c&&stopEvent(n),-1===u)d=l;else if(d=findNonDisabledIndex(e,{startingIndex:d,amount:o,decrement:!0,disabledIndices:a}),i&&(u-o<s||d<0)){let e=u%o,t=l%o,n=l-(t-e);d=t===e?l:t>e?n:n-o}isIndexOutOfBounds(e,d)&&(d=u)}if(n.key===ARROW_DOWN&&(c&&stopEvent(n),-1===u?d=s:(d=findNonDisabledIndex(e,{startingIndex:u,amount:o,disabledIndices:a}),i&&u+o>l&&(d=findNonDisabledIndex(e,{startingIndex:u%o-o,amount:o,disabledIndices:a}))),isIndexOutOfBounds(e,d)&&(d=u)),"both"===r){let t=floor$1(u/o);n.key===ARROW_RIGHT&&(c&&stopEvent(n),u%o!=o-1?(d=findNonDisabledIndex(e,{startingIndex:u,disabledIndices:a}),i&&isDifferentRow(d,o,t)&&(d=findNonDisabledIndex(e,{startingIndex:u-u%o-1,disabledIndices:a}))):i&&(d=findNonDisabledIndex(e,{startingIndex:u-u%o-1,disabledIndices:a})),isDifferentRow(d,o,t)&&(d=u)),n.key===ARROW_LEFT&&(c&&stopEvent(n),u%o!=0?(d=findNonDisabledIndex(e,{startingIndex:u,decrement:!0,disabledIndices:a}),i&&isDifferentRow(d,o,t)&&(d=findNonDisabledIndex(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:a}))):i&&(d=findNonDisabledIndex(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:a})),isDifferentRow(d,o,t)&&(d=u));let r=floor$1(l/o)===t;isIndexOutOfBounds(e,d)&&(d=i&&r?n.key===ARROW_LEFT?l:findNonDisabledIndex(e,{startingIndex:u-u%o-1,disabledIndices:a}):u)}return d}function buildCellMap(e,t,n){let r=[],i=0;return e.forEach((e,o)=>{let{width:a,height:s}=e,l=!1;for(n&&(i=0);!l;){let e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(i+n+r*t);i%t+a<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=o}),l=!0):i++}}),[...r]}function getCellIndexOfCorner(e,t,n,r,i){if(-1===e)return -1;let o=n.indexOf(e),a=t[e];switch(i){case"tl":return o;case"tr":if(!a)return o;return o+a.width-1;case"bl":if(!a)return o;return o+(a.height-1)*r;case"br":return n.lastIndexOf(e)}}function getCellIndices(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function isDisabled(e,t,n){if(n)return n.includes(t);let r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let rafId=0;function enqueueFocus(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(rafId);let o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():rafId=requestAnimationFrame(o)}var index="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_2__.useEffect;function sortByDocumentPosition(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function areMapsEqual(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}let FloatingListContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function FloatingList(e){let{children:t,elementsRef:n,labelsRef:r}=e,[i,o]=react__WEBPACK_IMPORTED_MODULE_2__.useState(()=>new Map),a=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{o(t=>new Map(t).set(e,null))},[]),s=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{o(t=>{let n=new Map(t);return n.delete(e),n})},[]);return index(()=>{let e=new Map(i);Array.from(e.keys()).sort(sortByDocumentPosition).forEach((t,n)=>{e.set(t,n)}),areMapsEqual(i,e)||o(e)},[i]),react__WEBPACK_IMPORTED_MODULE_2__.createElement(FloatingListContext.Provider,{value:react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({register:a,unregister:s,map:i,elementsRef:n,labelsRef:r}),[a,s,i,n,r])},t)}function useListItem(e){void 0===e&&(e={});let{label:t}=e,{register:n,unregister:r,map:i,elementsRef:o,labelsRef:a}=react__WEBPACK_IMPORTED_MODULE_2__.useContext(FloatingListContext),[s,l]=react__WEBPACK_IMPORTED_MODULE_2__.useState(null),u=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),c=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{if(u.current=e,null!==s&&(o.current[s]=e,a)){var n;let r=void 0!==t;a.current[s]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[s,o,a,t]);return index(()=>{let e=u.current;if(e)return n(e),()=>{r(e)}},[n,r]),index(()=>{let e=u.current?i.get(u.current):null;null!=e&&l(e)},[i]),react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({ref:c,index:null==s?-1:s}),[s,c])}function renderJsx(e,t){return"function"==typeof e?e(t):e?react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(e,t):react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",t)}let CompositeContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext({activeIndex:0,onNavigate:()=>{}}),horizontalKeys=[ARROW_LEFT,ARROW_RIGHT],verticalKeys=[ARROW_UP,ARROW_DOWN],allKeys=[...horizontalKeys,...verticalKeys],Composite=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function(e,t){let{render:n,orientation:r="both",loop:i=!0,cols:o=1,disabledIndices:a,activeIndex:s,onNavigate:l,itemSizes:u,dense:c=!1,...d}=e,[f,p]=react__WEBPACK_IMPORTED_MODULE_2__.useState(0),h=null!=s?s:f,m=useEffectEvent(null!=l?l:p),g=react__WEBPACK_IMPORTED_MODULE_2__.useRef([]),v=n&&"function"!=typeof n?n.props:{},y=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({activeIndex:h,onNavigate:m}),[h,m]),b=o>1;function _(e){if(!allKeys.includes(e.key))return;let t=h,n=getMinIndex(g,a),s=getMaxIndex(g,a);if(b){let l=u||Array.from({length:g.current.length},()=>({width:1,height:1})),d=buildCellMap(l,o,c),f=d.findIndex(e=>null!=e&&!isDisabled(g.current,e,a)),p=d.reduce((e,t,n)=>null==t||isDisabled(g.current,t,a)?e:n,-1);t=d[getGridNavigatedIndex({current:d.map(e=>e?g.current[e]:null)},{event:e,orientation:r,loop:i,cols:o,disabledIndices:getCellIndices([...a||g.current.map((e,t)=>isDisabled(g.current,t)?t:void 0),void 0],d),minIndex:f,maxIndex:p,prevIndex:getCellIndexOfCorner(h>s?n:h,l,d,o,e.key===ARROW_DOWN?"bl":e.key===ARROW_RIGHT?"tr":"tl")})]}let l={horizontal:[ARROW_RIGHT],vertical:[ARROW_DOWN],both:[ARROW_RIGHT,ARROW_DOWN]}[r],d={horizontal:[ARROW_LEFT],vertical:[ARROW_UP],both:[ARROW_LEFT,ARROW_UP]}[r],f=b?allKeys:({horizontal:horizontalKeys,vertical:verticalKeys,both:allKeys})[r];t===h&&[...l,...d].includes(e.key)&&(t=i&&t===s&&l.includes(e.key)?n:i&&t===n&&d.includes(e.key)?s:findNonDisabledIndex(g,{startingIndex:t,decrement:d.includes(e.key),disabledIndices:a})),t===h||isIndexOutOfBounds(g,t)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),m(t),queueMicrotask(()=>{enqueueFocus(g.current[t])}))}let E={...d,...v,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==d.onKeyDown||d.onKeyDown(e),null==v.onKeyDown||v.onKeyDown(e),_(e)}};return react__WEBPACK_IMPORTED_MODULE_2__.createElement(CompositeContext.Provider,{value:y},react__WEBPACK_IMPORTED_MODULE_2__.createElement(FloatingList,{elementsRef:g},renderJsx(n,E)))}),CompositeItem=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function(e,t){let{render:n,...r}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:o,onNavigate:a}=react__WEBPACK_IMPORTED_MODULE_2__.useContext(CompositeContext),{ref:s,index:l}=useListItem(),u=useMergeRefs([s,t,i.ref]),c=o===l;return renderJsx(n,{...r,...i,ref:u,tabIndex:c?0:-1,"data-active":c?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==i.onFocus||i.onFocus(e),a(l)}})});function _extends$4(){return(_extends$4=Object.assign?Object.assign.bind():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}).apply(this,arguments)}let serverHandoffComplete=!1,count=0,genId=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+count++;function useFloatingId(){let[e,t]=react__WEBPACK_IMPORTED_MODULE_2__.useState(()=>serverHandoffComplete?genId():void 0);return index(()=>{null==e&&t(genId())},[]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{serverHandoffComplete=!0},[]),e}let useReactId=SafeReact.useId,useId=useReactId||useFloatingId;function warn(){for(var e,t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let o="Floating UI: "+r.join(" ");null!=(e=devMessageSet)&&e.has(o)||(null==(t=devMessageSet)||t.add(o),console.warn(o))}function error(){for(var e,t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let o="Floating UI: "+r.join(" ");null!=(e=devMessageSet)&&e.has(o)||(null==(t=devMessageSet)||t.add(o),console.error(o))}let FloatingArrow=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i}},width:o=14,height:a=7,tipRadius:s=0,strokeWidth:l=0,staticOffset:u,stroke:c,d,style:{transform:f,...p}={},...h}=e,m=useId(),[g,v]=react__WEBPACK_IMPORTED_MODULE_2__.useState(!1);if(index(()=>{r&&"rtl"===getComputedStyle$1(r).direction&&v(!0)},[r]),!r)return null;let y=2*l,b=y/2,_=o/2*(-(s/8)+1),E=a/2*s/4,[w,S]=n.split("-"),T=!!d,O="top"===w||"bottom"===w,I=u&&"end"===S?"bottom":"top",A=u&&"end"===S?"right":"left";u&&g&&(A="end"===S?"left":"right");let C=(null==i?void 0:i.x)!=null?u||i.x:"",x=(null==i?void 0:i.y)!=null?u||i.y:"",D=d||"M0,0 H"+o+" L"+(o-_)+","+(a-E)+(" Q"+o/2+","+a+" ")+_+","+(a-E)+" Z",R={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[w];return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$4({},h,{"aria-hidden":!0,ref:t,width:T?o:o+y,height:o,viewBox:"0 0 "+o+" "+(a>o?a:o),style:{position:"absolute",pointerEvents:"none",[A]:C,[I]:x,[w]:O||T?"100%":"calc(100% - "+y/2+"px)",transform:""+R+(null!=f?f:""),...p}}),y>0&&react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{clipPath:"url(#"+m+")",fill:"none",stroke:c,strokeWidth:y+(d?0:1),d:D}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{stroke:y&&!d?h.fill:"none",d:D}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("clipPath",{id:m},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{x:-b,y:b*(T?-1:1),width:o+y,height:o})))});function createPubSub(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}let FloatingNodeContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext(null),FloatingTreeContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext(null),useFloatingParentNodeId=()=>{var e;return(null==(e=react__WEBPACK_IMPORTED_MODULE_2__.useContext(FloatingNodeContext))?void 0:e.id)||null},useFloatingTree=()=>react__WEBPACK_IMPORTED_MODULE_2__.useContext(FloatingTreeContext);function useFloatingNodeId(e){let t=useId(),n=useFloatingTree(),r=useFloatingParentNodeId(),i=e||r;return index(()=>{let e={id:t,parentId:i};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,i]),t}function FloatingNode(e){let{children:t,id:n}=e,r=useFloatingParentNodeId();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(FloatingNodeContext.Provider,{value:react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function FloatingTree(e){let{children:t}=e,n=react__WEBPACK_IMPORTED_MODULE_2__.useRef([]),r=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{n.current=[...n.current,e]},[]),i=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),o=react__WEBPACK_IMPORTED_MODULE_2__.useState(()=>createPubSub())[0];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(FloatingTreeContext.Provider,{value:react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o])},t)}function createAttribute(e){return"data-floating-ui-"+e}function useLatestRef(e){let t=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(e);return index(()=>{t.current=e}),t}let safePolygonIdentifier=createAttribute("safe-polygon");function getDelay(e,t,n){return n&&!isMouseLikePointerType(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function useHover(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:f=!0}=t,p=useFloatingTree(),h=useFloatingParentNodeId(),m=useLatestRef(u),g=useLatestRef(l),v=useLatestRef(n),y=react__WEBPACK_IMPORTED_MODULE_2__.useRef(),b=react__WEBPACK_IMPORTED_MODULE_2__.useRef(-1),_=react__WEBPACK_IMPORTED_MODULE_2__.useRef(),E=react__WEBPACK_IMPORTED_MODULE_2__.useRef(-1),w=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!0),S=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),T=react__WEBPACK_IMPORTED_MODULE_2__.useRef(()=>{}),O=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[i]);react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(E.current),w.current=!0)}},[s,o]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(!s||!m.current||!n)return;function e(e){O()&&r(!1,e,"hover")}let t=getDocument(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,s,m,O]);let I=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let i=getDelay(g.current,"close",y.current);i&&!_.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(clearTimeout(b.current),r(!1,e,n))},[g,r]),A=useEffectEvent(()=>{T.current(),_.current=void 0}),C=useEffectEvent(()=>{if(S.current){let e=getDocument(a.floating).body;e.style.pointerEvents="",e.removeAttribute(safePolygonIdentifier),S.current=!1}});react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(s&&isElement(a.domReference)){var e;let t=a.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=a.floating)||e.addEventListener("mouseleave",u),f&&t.addEventListener("mousemove",o,{once:!0}),t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",l),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=a.floating)||e.removeEventListener("mouseleave",u),f&&t.removeEventListener("mousemove",o),t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",l)}}function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function o(e){if(clearTimeout(b.current),w.current=!1,c&&!isMouseLikePointerType(y.current)||d>0&&!getDelay(g.current,"open"))return;let t=getDelay(g.current,"open",y.current);t?b.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):r(!0,e,"hover")}function l(e){if(t())return;T.current();let r=getDocument(a.floating);if(clearTimeout(E.current),m.current&&i.current.floatingContext){n||clearTimeout(b.current),_.current=m.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){C(),A(),I(e,!0,"safe-polygon")}});let t=_.current;r.addEventListener("mousemove",t),T.current=()=>{r.removeEventListener("mousemove",t)};return}"touch"===y.current&&contains(a.floating,e.relatedTarget)||I(e)}function u(e){!t()&&i.current.floatingContext&&(null==m.current||m.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){C(),A(),I(e)}})(e))}},[a,s,e,c,d,f,I,A,C,r,n,v,p,g,m,i]),index(()=>{var e,t;if(s&&n&&null!=(e=m.current)&&e.__options.blockPointerEvents&&O()){let e=getDocument(a.floating).body;e.setAttribute(safePolygonIdentifier,""),e.style.pointerEvents="none",S.current=!0;let n=a.floating;if(isElement(a.domReference)&&n){let e=a.domReference,r=null==p||null==(t=p.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}},[s,n,h,a,p,m,O]),index(()=>{n||(y.current=void 0,A(),C())},[n,A,C]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>()=>{A(),clearTimeout(b.current),clearTimeout(E.current),C()},[s,a.domReference,A,C]);let x=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){w.current||v.current||r(!0,t,"hover")}(!c||isMouseLikePointerType(y.current))&&!n&&0!==d&&(clearTimeout(E.current),"touch"===y.current?i():E.current=window.setTimeout(i,d))}}},[c,r,n,v,d]),D=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){I(e.nativeEvent,!1)}}),[I]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>s?{reference:x,floating:D}:{},[s,x,D])}let NOOP=()=>{},FloatingDelayGroupContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:NOOP,setState:NOOP,isInstantPhase:!1}),useDelayGroupContext=()=>react__WEBPACK_IMPORTED_MODULE_2__.useContext(FloatingDelayGroupContext);function FloatingDelayGroup(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=react__WEBPACK_IMPORTED_MODULE_2__.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),a=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),s=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{o({currentId:e})},[]);return index(()=>{i.currentId?null===a.current?a.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),a.current=null)},[i.currentId,i.isInstantPhase]),react__WEBPACK_IMPORTED_MODULE_2__.createElement(FloatingDelayGroupContext.Provider,{value:react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({...i,setState:o,setCurrentId:s}),[i,s])},t)}function useDelayGroup(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:o}=t,a=null!=o?o:i,s=useDelayGroupContext(),{currentId:l,setCurrentId:u,initialDelay:c,setState:d,timeoutMs:f}=s;return index(()=>{l&&(d({delay:{open:1,close:getDelay(c,"close")}}),l!==a&&r(!1))},[a,r,d,l,c]),index(()=>{function e(){r(!1),d({delay:c,currentId:null})}if(l&&!n&&l===a){if(f){let t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}},[n,d,l,a,r,c,f]),index(()=>{u!==NOOP&&n&&u(a)},[n,u,a]),s}function getAncestors(e,t){var n;let r=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){let t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function getChildren(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}function getDeepestNode(e,t){let n;let r=-1;function i(t,o){o>r&&(n=t,r=o),getChildren(e,t).forEach(e=>{i(e.id,o+1)})}return i(t,0),e.find(e=>e.id===n)}let counterMap=new WeakMap,uncontrolledElementsSet=new WeakSet,markerMap={},lockCount=0,supportsInert=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,unwrapHost=e=>e&&(e.host||unwrapHost(e.parentNode)),correctElements=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=unwrapHost(t);return e.contains(n)?n:null}).filter(e=>null!=e);function applyAttributeToOthers(e,t,n,r){let i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=correctElements(t,e),s=new Set,l=new Set(a),u=[];markerMap[i]||(markerMap[i]=new WeakMap);let c=markerMap[i];function d(e){!(!e||s.has(e))&&(s.add(e),e.parentNode&&d(e.parentNode))}function f(e){!e||l.has(e)||[].forEach.call(e.children,e=>{if("script"!==getNodeName(e)){if(s.has(e))f(e);else{let t=o?e.getAttribute(o):null,n=null!==t&&"false"!==t,r=(counterMap.get(e)||0)+1,a=(c.get(e)||0)+1;counterMap.set(e,r),c.set(e,a),u.push(e),1===r&&n&&uncontrolledElementsSet.add(e),1===a&&e.setAttribute(i,""),!n&&o&&e.setAttribute(o,"true")}}})}return a.forEach(d),f(t),s.clear(),lockCount++,()=>{u.forEach(e=>{let t=(counterMap.get(e)||0)-1,n=(c.get(e)||0)-1;counterMap.set(e,t),c.set(e,n),t||(!uncontrolledElementsSet.has(e)&&o&&e.removeAttribute(o),uncontrolledElementsSet.delete(e)),n||e.removeAttribute(i)}),--lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledElementsSet=new WeakSet,markerMap={})}}function markOthers(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);let r=getDocument(e[0]).body;return applyAttributeToOthers(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}let getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(e,t){let n=tabbable(e,getTabbableOptions());"prev"===t&&n.reverse();let r=n.indexOf(activeElement(getDocument(e)));return n.slice(r+1)[0]}function getNextTabbable(){return getTabbableIn(document.body,"next")}function getPreviousTabbable(){return getTabbableIn(document.body,"prev")}function isOutsideEvent(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!contains(n,r)}function disableFocusInside(e){tabbable(e,getTabbableOptions()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function enableFocusInside(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}let HIDDEN_STYLES={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function setActiveElementOnTab(e){"Tab"===e.key&&(e.target,clearTimeout(timeoutId))}let FocusGuard=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function(e,t){let[n,r]=react__WEBPACK_IMPORTED_MODULE_2__.useState();index(()=>(isSafari()&&r("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)}),[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[createAttribute("focus-guard")]:"",style:HIDDEN_STYLES};return react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",_extends$4({},e,i))}),PortalContext=react__WEBPACK_IMPORTED_MODULE_2__.createContext(null),attr=createAttribute("portal");function useFloatingPortalNode(e){void 0===e&&(e={});let{id:t,root:n}=e,r=useId(),i=usePortalContext(),[o,a]=react__WEBPACK_IMPORTED_MODULE_2__.useState(null),s=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null);return index(()=>()=>{null==o||o.remove(),queueMicrotask(()=>{s.current=null})},[o]),index(()=>{if(!r||s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(attr,""),e.appendChild(n),s.current=n,a(n)},[t,r]),index(()=>{if(!r||s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!isElement(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let l=document.createElement("div");l.id=r,l.setAttribute(attr,""),(e=o||e).appendChild(l),s.current=l,a(l)},[t,n,r,i]),o}function FloatingPortal(e){let{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,o=useFloatingPortalNode({id:n,root:r}),[a,s]=react__WEBPACK_IMPORTED_MODULE_2__.useState(null),l=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),u=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),c=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),d=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),f=!!a&&!a.modal&&a.open&&i&&!!(r||o);return react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(o&&i&&(null==a||!a.modal))return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&isOutsideEvent(e)&&("focusin"===e.type?enableFocusInside:disableFocusInside)(o)}},[o,i,null==a?void 0:a.modal]),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PortalContext.Provider,{value:react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:o,setFocusManagerState:s}),[i,o])},f&&o&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(FocusGuard,{"data-type":"outside",ref:l,onFocus:e=>{if(isOutsideEvent(e,o)){var t;null==(t=c.current)||t.focus()}else{let e=getPreviousTabbable()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&o&&react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{"aria-owns":o.id,style:HIDDEN_STYLES}),o&&react_dom__WEBPACK_IMPORTED_MODULE_4__.createPortal(t,o),f&&o&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(FocusGuard,{"data-type":"outside",ref:u,onFocus:e=>{if(isOutsideEvent(e,o)){var t;null==(t=d.current)||t.focus()}else{let t=getNextTabbable()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}let usePortalContext=()=>react__WEBPACK_IMPORTED_MODULE_2__.useContext(PortalContext),LIST_LIMIT=20,previouslyFocusedElements=[];function addPreviouslyFocusedElement(e){previouslyFocusedElements=previouslyFocusedElements.filter(e=>e.isConnected);let t=e;if(t&&"body"!==getNodeName(t)){if(!isTabbable(t,getTabbableOptions())){let e=tabbable(t,getTabbableOptions())[0];e&&(t=e)}previouslyFocusedElements.push(t),previouslyFocusedElements.length>LIST_LIMIT&&(previouslyFocusedElements=previouslyFocusedElements.slice(-LIST_LIMIT))}}function getPreviouslyFocusedElement(){return previouslyFocusedElements.slice().reverse().find(e=>e.isConnected)}let VisuallyHiddenDismiss=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function(e,t){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("button",_extends$4({},e,{type:"button",ref:t,tabIndex:-1,style:HIDDEN_STYLES}))});function FloatingFocusManager(e){let{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:f,refs:p,nodeId:h,onOpenChange:m,events:g,dataRef:v,floatingId:y,elements:{domReference:b,floating:_}}=t,E="number"==typeof a&&a<0,w=isTypeableCombobox(b)&&E,S=!supportsInert()||o,T=useLatestRef(i),O=useLatestRef(a),I=useLatestRef(s),A=useFloatingTree(),C=usePortalContext(),x=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),D=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),R=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),L=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),k=react__WEBPACK_IMPORTED_MODULE_2__.useRef(-1),M=null!=C,P=null==_?void 0:_.firstElementChild,N=(null==P?void 0:P.id)===y?P:_,F=useEffectEvent(function(e){return void 0===e&&(e=N),e?tabbable(e,getTabbableOptions()):[]}),B=useEffectEvent(e=>{let t=F(e);return T.current.map(e=>b&&"reference"===e?b:N&&"floating"===e?N:t).filter(Boolean).flat()});function U(e){return!r&&c&&u?react__WEBPACK_IMPORTED_MODULE_2__.createElement(VisuallyHiddenDismiss,{ref:"start"===e?x:D,onClick:e=>m(!1,e.nativeEvent)},"string"==typeof c?c:"Dismiss"):null}react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(r||!u)return;function e(e){if("Tab"===e.key){contains(N,activeElement(getDocument(N)))&&0===F().length&&!w&&stopEvent(e);let t=B(),n=getTarget(e);"reference"===T.current[0]&&n===b&&(stopEvent(e),e.shiftKey?enqueueFocus(t[t.length-1]):enqueueFocus(t[1])),"floating"===T.current[1]&&n===N&&e.shiftKey&&(stopEvent(e),enqueueFocus(t[0]))}}let t=getDocument(N);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,b,N,u,T,w,F,B]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(!r&&_)return _.addEventListener("focusin",e),()=>{_.removeEventListener("focusin",e)};function e(e){let t=getTarget(e),n=F().indexOf(t);-1!==n&&(k.current=n)}},[r,_,F]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(!r&&d&&_&&isHTMLElement(b))return b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),_.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),_.removeEventListener("focusout",t)};function e(){L.current=!0,setTimeout(()=>{L.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!(contains(b,t)||contains(_,t)||contains(t,_)||contains(null==C?void 0:C.portalNode,t)||null!=t&&t.hasAttribute(createAttribute("focus-guard"))||A&&(getChildren(A.nodesRef.current,h).find(e=>{var n,r;return contains(null==(n=e.context)?void 0:n.elements.floating,t)||contains(null==(r=e.context)?void 0:r.elements.domReference,t)})||getAncestors(A.nodesRef.current,h).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(l&&n&&activeElement(getDocument(N))===getDocument(N).body){isHTMLElement(N)&&(null==N||N.focus());let e=k.current,t=F(),n=t[e]||t[t.length-1]||N;isHTMLElement(n)&&n.focus()}(w||!u)&&t&&n&&!L.current&&t!==getPreviouslyFocusedElement()&&(R.current=!0,m(!1,e))})}},[r,b,_,N,u,h,A,C,m,d,l,F,w]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{var e;if(r)return;let t=Array.from((null==C||null==(e=C.portalNode)?void 0:e.querySelectorAll("["+createAttribute("portal")+"]"))||[]);if(_){let e=[_,...t,x.current,D.current,T.current.includes("reference")||w?b:null].filter(e=>null!=e),n=u||w?markOthers(e,S,!S):markOthers(e);return()=>{n()}}},[r,b,_,u,T,C,w,S]),index(()=>{if(r||!isHTMLElement(N))return;let e=activeElement(getDocument(N));queueMicrotask(()=>{let t=B(N),n=O.current,r=("number"==typeof n?t[n]:n.current)||N,i=contains(N,e);E||i||!f||enqueueFocus(r,{preventScroll:r===N})})},[r,f,N,E,B,O]),index(()=>{if(r||!N)return;let e=!1,t=getDocument(N),n=activeElement(t),i=v.current.openEvent;function o(t){let{open:n,reason:r,event:o,nested:a}=t;n&&(i=o),"escape-key"===r&&p.domReference.current&&addPreviouslyFocusedElement(p.domReference.current),"hover"===r&&"mouseleave"===o.type&&(R.current=!0),"outside-press"===r&&(a?(R.current=!1,e=!0):R.current=!(isVirtualClick(o)||isVirtualPointerEvent(o)))}return addPreviouslyFocusedElement(n),g.on("openchange",o),()=>{g.off("openchange",o);let n=activeElement(t),r=contains(_,n)||A&&getChildren(A.nodesRef.current,h).some(e=>{var t;return contains(null==(t=e.context)?void 0:t.elements.floating,n)});(r||i&&["click","mousedown"].includes(i.type))&&p.domReference.current&&addPreviouslyFocusedElement(p.domReference.current);let a=getPreviouslyFocusedElement();I.current&&!R.current&&isHTMLElement(a)&&(a===n||n===t.body||r)&&enqueueFocus(a,{cancelPrevious:!1,preventScroll:e})}},[r,_,N,I,v,p,g,A,h]),index(()=>{if(!r&&C)return C.setFocusManagerState({modal:u,closeOnFocusOut:d,open:f,onOpenChange:m,refs:p}),()=>{C.setFocusManagerState(null)}},[r,C,u,f,m,p,d]),index(()=>{if(r||!N||"function"!=typeof MutationObserver||E)return;let e=()=>{let e=N.getAttribute("tabindex"),t=F(),n=activeElement(getDocument(_)),r=t.indexOf(n);-1!==r&&(k.current=r),T.current.includes("floating")||n!==p.domReference.current&&0===t.length?"0"!==e&&N.setAttribute("tabindex","0"):"-1"!==e&&N.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(N,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,_,N,p,T,F,E]);let H=!r&&S&&(!u||!w)&&(M||u);return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,H&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(FocusGuard,{"data-type":"inside",ref:null==C?void 0:C.beforeInsideRef,onFocus:e=>{if(u){let e=B();enqueueFocus("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=C&&C.preserveTabOrder&&C.portalNode){if(R.current=!1,isOutsideEvent(e,C.portalNode)){let e=getNextTabbable()||b;null==e||e.focus()}else{var t;null==(t=C.beforeOutsideRef.current)||t.focus()}}}}),!w&&U("start"),n,U("end"),H&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(FocusGuard,{"data-type":"inside",ref:null==C?void 0:C.afterInsideRef,onFocus:e=>{if(u)enqueueFocus(B()[0]);else if(null!=C&&C.preserveTabOrder&&C.portalNode){if(d&&(R.current=!0),isOutsideEvent(e,C.portalNode)){let e=getPreviousTabbable()||b;null==e||e.focus()}else{var t;null==(t=C.afterOutsideRef.current)||t.focus()}}}}))}let activeLocks=new Set,FloatingOverlay=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e,i=useId();return index(()=>{if(!n)return;activeLocks.add(i);let e=/iP(hone|ad|od)|iOS/.test(getPlatform()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,a=t.left?parseFloat(t.left):window.scrollX,s=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var l,u;let e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor((null==(u=window.visualViewport)?void 0:u.offsetTop)||0))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{activeLocks.delete(i),0===activeLocks.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,s)))}},[i,n]),react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",_extends$4({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function isButtonTarget(e){return isHTMLElement(e.target)&&"BUTTON"===e.target.tagName}function isSpaceIgnored(e){return isTypeableElement(e)}function useClick(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=react__WEBPACK_IMPORTED_MODULE_2__.useRef(),f=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),p=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current;0===e.button&&"click"!==s&&(isMouseLikePointerType(t,!0)&&u||(n&&l&&(!i.current.openEvent||"mousedown"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click"))))},onClick(e){let t=d.current;if("mousedown"===s&&d.current){d.current=void 0;return}isMouseLikePointerType(t,!0)&&u||(n&&l&&(!i.current.openEvent||"click"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){d.current=void 0,e.defaultPrevented||!c||isButtonTarget(e)||(" "!==e.key||isSpaceIgnored(o)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&(n&&l?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!c||isButtonTarget(e)||isSpaceIgnored(o))&&" "===e.key&&f.current&&(f.current=!1,n&&l?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}),[i,o,s,u,c,r,n,l]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>a?{reference:p}:{},[a,p])}function createVirtualElement(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){var o;let a=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(o=t.dataRef.current.openEvent)?void 0:o.type)||"")&&"touch"!==t.pointerType,c=a.width,d=a.height,f=a.x,p=a.y;return null==n&&t.x&&s&&(n=a.x-t.x),null==r&&t.y&&l&&(r=a.y-t.y),f-=n||0,p-=r||0,c=0,d=0,!i||u?(c="y"===t.axis?a.width:0,d="x"===t.axis?a.height:0,f=s&&null!=t.x?t.x:f,p=l&&null!=t.y?t.y:p):i&&!u&&(d="x"===t.axis?a.height:d,c="y"===t.axis?a.width:c),i=!0,{width:c,height:d,x:f,y:p,top:p,right:f+c,bottom:p+d,left:f}}}}function isMouseBasedEvent(e){return null!=e&&null!=e.clientX}function useClientPoint(e,t){void 0===t&&(t={});let{open:n,dataRef:r,elements:{floating:i,domReference:o},refs:a}=e,{enabled:s=!0,axis:l="both",x:u=null,y:c=null}=t,d=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),f=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),[p,h]=react__WEBPACK_IMPORTED_MODULE_2__.useState(),[m,g]=react__WEBPACK_IMPORTED_MODULE_2__.useState([]),v=useEffectEvent((e,t)=>{!d.current&&(!r.current.openEvent||isMouseBasedEvent(r.current.openEvent))&&a.setPositionReference(createVirtualElement(o,{x:e,y:t,axis:l,dataRef:r,pointerType:p}))}),y=useEffectEvent(e=>{null!=u||null!=c||(n?f.current||g([]):v(e.clientX,e.clientY))}),b=isMouseLikePointerType(p)?i:n,_=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(()=>{if(!b||!s||null!=u||null!=c)return;let e=getWindow(i);function t(n){contains(i,getTarget(n))?(e.removeEventListener("mousemove",t),f.current=null):v(n.clientX,n.clientY)}if(!r.current.openEvent||isMouseBasedEvent(r.current.openEvent)){e.addEventListener("mousemove",t);let n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}a.setPositionReference(o)},[b,s,u,c,i,r,a,o,v]);react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>_(),[_,m]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{s&&!i&&(d.current=!1)},[s,i]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{!s&&n&&(d.current=!0)},[s,n]),index(()=>{s&&(null!=u||null!=c)&&(d.current=!1,v(u,c))},[s,u,c,v]);let E=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>{function e(e){let{pointerType:t}=e;h(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:y,onMouseEnter:y}},[y]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>s?{reference:E}:{},[s,E])}let bubbleHandlerKeys={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},captureHandlerKeys={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function useDismiss(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:h}=t,m=useFloatingTree(),g=useEffectEvent("function"==typeof l?l:()=>!1),v="function"==typeof l?g:l,y=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),b=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),{escapeKey:_,outsidePress:E}=normalizeProp(p),{escapeKey:w,outsidePress:S}=normalizeProp(h),T=useEffectEvent(e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;let i=null==(t=o.current.floatingContext)?void 0:t.nodeId,l=m?getChildren(m.nodesRef.current,i):[];if(!_&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,isReactEvent(e)?e.nativeEvent:e,"escape-key")}),O=useEffectEvent(e=>{var t;let n=()=>{var t;T(e),null==(t=getTarget(e))||t.removeEventListener("keydown",n)};null==(t=getTarget(e))||t.addEventListener("keydown",n)}),I=useEffectEvent(e=>{var t;let n=y.current;y.current=!1;let a=b.current;if(b.current=!1,"click"===u&&a||n||"function"==typeof v&&!v(e))return;let s=getTarget(e),l="["+createAttribute("inert")+"]",c=getDocument(i.floating).querySelectorAll(l),d=isElement(s)?s:null;for(;d&&!isLastTraversableNode(d);){let e=getParentNode(d);if(isLastTraversableNode(e)||!isElement(e))break;d=e}if(c.length&&isElement(s)&&!isRootElement(s)&&!contains(s,i.floating)&&Array.from(c).every(e=>!contains(d,e)))return;if(isHTMLElement(s)&&x){let t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight,r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===getComputedStyle$1(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}let f=null==(t=o.current.floatingContext)?void 0:t.nodeId,p=m&&getChildren(m.nodesRef.current,f).some(t=>{var n;return isEventTargetWithin(e,null==(n=t.context)?void 0:n.elements.floating)});if(isEventTargetWithin(e,i.floating)||isEventTargetWithin(e,i.domReference)||p)return;let h=m?getChildren(m.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),A=useEffectEvent(e=>{var t;let n=()=>{var t;I(e),null==(t=getTarget(e))||t.removeEventListener(u,n)};null==(t=getTarget(e))||t.addEventListener(u,n)});react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(!n||!a)return;function e(e){r(!1,e,"ancestor-scroll")}o.current.__escapeKeyBubbles=_,o.current.__outsidePressBubbles=E;let t=getDocument(i.floating);s&&t.addEventListener("keydown",w?O:T,w),v&&t.addEventListener(u,S?A:I,S);let l=[];return f&&(isElement(i.domReference)&&(l=getOverflowAncestors(i.domReference)),isElement(i.floating)&&(l=l.concat(getOverflowAncestors(i.floating))),!isElement(i.reference)&&i.reference&&i.reference.contextElement&&(l=l.concat(getOverflowAncestors(i.reference.contextElement)))),(l=l.filter(e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})).forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),()=>{s&&t.removeEventListener("keydown",w?O:T,w),v&&t.removeEventListener(u,S?A:I,S),l.forEach(t=>{t.removeEventListener("scroll",e)})}},[o,i,s,v,u,n,r,f,a,_,E,T,w,O,I,S,A]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{y.current=!1},[v,u]);let C=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onKeyDown:T,[bubbleHandlerKeys[d]]:e=>{c&&r(!1,e.nativeEvent,"reference-press")}}),[T,r,c,d]),x=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onKeyDown:T,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[captureHandlerKeys[u]]:()=>{y.current=!0}}),[T,u]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>a?{reference:C,floating:x}:{},[a,C,x])}function useFloatingRootContext(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=useId(),o=react__WEBPACK_IMPORTED_MODULE_2__.useRef({}),[a]=react__WEBPACK_IMPORTED_MODULE_2__.useState(()=>createPubSub()),s=null!=useFloatingParentNodeId(),[l,u]=react__WEBPACK_IMPORTED_MODULE_2__.useState(r.reference),c=useEffectEvent((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),d=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({setPositionReference:u}),[]),f=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:a,floatingId:i,refs:d}),[t,c,f,a,i,d])}function useFloating(e){void 0===e&&(e={});let{nodeId:t}=e,n=useFloatingRootContext({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=react__WEBPACK_IMPORTED_MODULE_2__.useState(null),[s,l]=react__WEBPACK_IMPORTED_MODULE_2__.useState(null),u=(null==i?void 0:i.reference)||o,c=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),d=useFloatingTree();index(()=>{u&&(c.current=u)},[u]);let f=useFloating$1({...e,elements:{...i,...s&&{reference:s}}}),p=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{let t=isElement(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),h=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{(isElement(e)||null===e)&&(c.current=e,a(e)),(isElement(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!isElement(e))&&f.refs.setReference(e)},[f.refs]),m=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:c}),[f.refs,h,p]),g=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({...f,...r,refs:m,elements:g,nodeId:t}),[f,m,g,t,r]);return index(()=>{r.dataRef.current.floatingContext=v;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({...f,context:v,refs:m,elements:g}),[f,m,g,v])}function useFocus(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),c=react__WEBPACK_IMPORTED_MODULE_2__.useRef(),d=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!0);react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(!s)return;let e=getWindow(a.domReference);function t(){!n&&isHTMLElement(a.domReference)&&a.domReference===activeElement(getDocument(a.domReference))&&(u.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[a.domReference,n,s]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(u.current=!0)}},[i,s]),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>()=>{clearTimeout(c.current)},[]);let f=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onPointerDown(e){isVirtualPointerEvent(e.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;let t=getTarget(e.nativeEvent);if(l&&isElement(t))try{if(isSafari()&&isMac())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!isTypeableElement(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=isElement(t)&&t.hasAttribute(createAttribute("focus-guard"))&&"outside"===t.getAttribute("data-type");c.current=window.setTimeout(()=>{var e;let s=activeElement(a.domReference?a.domReference.ownerDocument:document);if(t||s!==a.domReference){if(contains(null==(e=o.current.floatingContext)?void 0:e.refs.floating.current,s)||contains(a.domReference,s)||i)return;r(!1,n,"focus")}})}}),[o,a.domReference,r,l]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>s?{reference:f}:{},[s,f])}let ACTIVE_KEY="active",SELECTED_KEY="selected";function mergeProps(e,t,n){let r=new Map,i="item"===n,o=e;if(i&&e){let{[ACTIVE_KEY]:t,[SELECTED_KEY]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1},...o,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(i&&[ACTIVE_KEY,SELECTED_KEY].includes(n))){if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var a;null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)}}}else e[n]=o}}),e),{})}}function useInteractions(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(t=>mergeProps(t,e,"reference"),t),o=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(t=>mergeProps(t,e,"floating"),n),a=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(t=>mergeProps(t,e,"item"),r);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}let isPreventScrollSupported=!1;function doSwitch(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function isMainOrientationKey(e,t){return doSwitch(t,e===ARROW_UP||e===ARROW_DOWN,e===ARROW_LEFT||e===ARROW_RIGHT)}function isMainOrientationToEndKey(e,t,n){return doSwitch(t,e===ARROW_DOWN,n?e===ARROW_LEFT:e===ARROW_RIGHT)||"Enter"===e||" "===e||""===e}function isCrossOrientationOpenKey(e,t,n){return doSwitch(t,n?e===ARROW_LEFT:e===ARROW_RIGHT,e===ARROW_DOWN)}function isCrossOrientationCloseKey(e,t,n){return doSwitch(t,n?e===ARROW_RIGHT:e===ARROW_LEFT,e===ARROW_UP)}function useListNavigation(e,t){let{open:n,onOpenChange:r,elements:i}=e,{listRef:o,activeIndex:a,onNavigate:s=()=>{},enabled:l=!0,selectedIndex:u=null,allowEscape:c=!1,loop:d=!1,nested:f=!1,rtl:p=!1,virtual:h=!1,focusItemOnOpen:m="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:v=!0,disabledIndices:y,orientation:b="vertical",cols:_=1,scrollItemIntoView:E=!0,virtualItemRef:w,itemSizes:S,dense:T=!1}=t,O=useFloatingParentNodeId(),I=useFloatingTree(),A=useEffectEvent(s),C=react__WEBPACK_IMPORTED_MODULE_2__.useRef(m),x=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null!=u?u:-1),D=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),R=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!0),L=react__WEBPACK_IMPORTED_MODULE_2__.useRef(A),k=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!!i.floating),M=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),P=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),N=useLatestRef(y),F=useLatestRef(n),B=useLatestRef(E),U=useLatestRef(i.floating),H=useLatestRef(u),[j,V]=react__WEBPACK_IMPORTED_MODULE_2__.useState(),[z,Z]=react__WEBPACK_IMPORTED_MODULE_2__.useState(),G=useEffectEvent(function(e,t,n){function r(e){h?(V(e.id),null==I||I.events.emit("virtualfocus",e),w&&(w.current=e)):enqueueFocus(e,{preventScroll:!0,sync:!!(isMac()&&isSafari())&&(isPreventScrollSupported||M.current)})}void 0===n&&(n=!1);let i=e.current[t.current];i&&r(i),requestAnimationFrame(()=>{let o=e.current[t.current]||i;if(!o)return;i||r(o);let a=B.current;a&&q&&(n||!R.current)&&(null==o.scrollIntoView||o.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))})});index(()=>{document.createElement("div").focus({get preventScroll(){return isPreventScrollSupported=!0,!1}})},[]),index(()=>{l&&(n&&i.floating?C.current&&null!=u&&(P.current=!0,x.current=u,A(u)):k.current&&(x.current=-1,L.current(null)))},[l,n,i.floating,u,A]),index(()=>{if(l&&n&&i.floating){if(null==a){if(M.current=!1,null==H.current&&(k.current&&(x.current=-1,G(o,x)),!k.current&&C.current&&(null!=D.current||!0===C.current&&null==D.current))){let e=0,t=()=>{null==o.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(x.current=null==D.current||isMainOrientationToEndKey(D.current,b,p)||f?getMinIndex(o,N.current):getMaxIndex(o,N.current),D.current=null,A(x.current))};t()}}else isIndexOutOfBounds(o,a)||(x.current=a,G(o,x,P.current),P.current=!1)}},[l,n,i.floating,a,H,f,o,b,p,A,G,N]),index(()=>{var e;if(!l||i.floating||!I||h||!k.current)return;let t=I.nodesRef.current,n=null==(e=t.find(e=>e.id===O))||null==(e=e.context)?void 0:e.elements.floating,r=activeElement(getDocument(i.floating)),o=t.some(e=>e.context&&contains(e.context.elements.floating,r));n&&!o&&R.current&&n.focus({preventScroll:!0})},[l,i.floating,I,O,h]),index(()=>{if(l&&I&&h&&!O)return I.events.on("virtualfocus",e),()=>{I.events.off("virtualfocus",e)};function e(e){Z(e.id),w&&(w.current=e)}},[l,I,h,O,w]),index(()=>{L.current=A,k.current=!!i.floating}),index(()=>{n||(D.current=null)},[n]);let W=null!=a,q=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>{function e(e){if(!n)return;let t=o.current.indexOf(e);-1!==t&&A(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...g&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;R.current&&"touch"!==t&&(x.current=-1,G(o,x),A(null),h||enqueueFocus(U.current,{preventScroll:!0}))}}}},[n,U,G,g,o,A,h]),Y=useEffectEvent(e=>{if(R.current=!1,M.current=!0,!F.current&&e.currentTarget===U.current)return;if(f&&isCrossOrientationCloseKey(e.key,b,p)){stopEvent(e),r(!1,e.nativeEvent,"list-navigation"),isHTMLElement(i.domReference)&&!h&&i.domReference.focus();return}let t=x.current,a=getMinIndex(o,y),s=getMaxIndex(o,y);if("Home"===e.key&&(stopEvent(e),x.current=a,A(x.current)),"End"===e.key&&(stopEvent(e),x.current=s,A(x.current)),_>1){let t=S||Array.from({length:o.current.length},()=>({width:1,height:1})),n=buildCellMap(t,_,T),r=n.findIndex(e=>null!=e&&!isDisabled(o.current,e,y)),i=n.reduce((e,t,n)=>null==t||isDisabled(o.current,t,y)?e:n,-1);if(x.current=n[getGridNavigatedIndex({current:n.map(e=>null!=e?o.current[e]:null)},{event:e,orientation:b,loop:d,cols:_,disabledIndices:getCellIndices([...y||o.current.map((e,t)=>isDisabled(o.current,t)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:getCellIndexOfCorner(x.current>s?a:x.current,t,n,_,e.key===ARROW_DOWN?"bl":e.key===ARROW_RIGHT?"tr":"tl"),stopEvent:!0})],A(x.current),"both"===b)return}if(isMainOrientationKey(e.key,b)){if(stopEvent(e),n&&!h&&activeElement(e.currentTarget.ownerDocument)===e.currentTarget){x.current=isMainOrientationToEndKey(e.key,b,p)?a:s,A(x.current);return}isMainOrientationToEndKey(e.key,b,p)?d?x.current=t>=s?c&&t!==o.current.length?-1:a:findNonDisabledIndex(o,{startingIndex:t,disabledIndices:y}):x.current=Math.min(s,findNonDisabledIndex(o,{startingIndex:t,disabledIndices:y})):d?x.current=t<=a?c&&-1!==t?o.current.length:s:findNonDisabledIndex(o,{startingIndex:t,decrement:!0,disabledIndices:y}):x.current=Math.max(a,findNonDisabledIndex(o,{startingIndex:t,decrement:!0,disabledIndices:y})),isIndexOutOfBounds(o,x.current)?A(null):A(x.current)}}),$=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>h&&n&&W&&{"aria-activedescendant":z||j},[h,n,W,z,j]),K=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({"aria-orientation":"both"===b?void 0:b,...!isTypeableCombobox(i.domReference)&&$,onKeyDown:Y,onPointerMove(){R.current=!0}}),[$,Y,i.domReference,b]),X=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>{let e=N.current,t=o.current.find(e=>(null==e?void 0:e.id)===j);function i(e){"auto"===m&&isVirtualClick(e.nativeEvent)&&(C.current=!0)}function a(e){C.current=m,"auto"===m&&isVirtualPointerEvent(e.nativeEvent)&&(C.current=!0)}return{...$,onKeyDown(i){R.current=!1;let a=0===i.key.indexOf("Arrow"),s=isCrossOrientationOpenKey(i.key,b,p),l=isCrossOrientationCloseKey(i.key,b,p),c=isMainOrientationKey(i.key,b),d=(f?s:c)||"Enter"===i.key||""===i.key.trim();if(h&&n){let e=null==I?void 0:I.nodesRef.current.find(e=>null==e.parentId),n=I&&e?getDeepestNode(I.nodesRef.current,e.id):null;if(a&&n&&w){var m,g,y;let e=new KeyboardEvent("keydown",{key:i.key,bubbles:!0});if(s||l){let r=(null==(m=n.context)?void 0:m.elements.domReference)===i.currentTarget,o=l&&!r?null==(g=n.context)?void 0:g.elements.domReference:s?t:null;o&&(stopEvent(i),o.dispatchEvent(e),Z(void 0))}if(c&&n.context&&n.context.open&&n.parentId&&i.currentTarget!==n.context.elements.domReference){stopEvent(i),null==(y=n.context.elements.domReference)||y.dispatchEvent(e);return}}return Y(i)}if(n||v||!a){if(d&&(D.current=f&&c?null:i.key),f){s&&(stopEvent(i),n?(x.current=getMinIndex(o,e),A(x.current)):r(!0,i.nativeEvent,"list-navigation"));return}c&&(null!=u&&(x.current=u),stopEvent(i),!n&&v?r(!0,i.nativeEvent,"list-navigation"):Y(i),n&&A(x.current))}},onFocus(){n&&!h&&A(null)},onPointerDown:a,onMouseDown:i,onClick:i}},[j,$,Y,N,m,o,f,A,r,n,v,b,p,u,I,h,w]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>l?{reference:X,floating:K,item:q}:{},[l,X,K,q])}let componentRoleToAriaRoleMap=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(e,t){var n;void 0===t&&(t={});let{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=null!=(n=componentRoleToAriaRoleMap.get(a))?n:a,l=useId(),u=null!=useFloatingParentNodeId(),c=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":r?i:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[s,i,u,r,l,a]),d=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>{let e={id:i,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}},[s,i,l,a]),f=react__WEBPACK_IMPORTED_MODULE_2__.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[i,a]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>o?{reference:c,floating:d,item:f}:{},[o,c,d,f])}let camelCaseToKebabCase=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function execWithArgsOrReturn(e,t){return"function"==typeof e?e(t):e}function useDelayUnmount(e,t){let[n,r]=react__WEBPACK_IMPORTED_MODULE_2__.useState(e);return e&&!n&&r(!0),react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}function useTransitionStatus(e,t){void 0===t&&(t={});let{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[a,s]=react__WEBPACK_IMPORTED_MODULE_2__.useState("unmounted"),l=useDelayUnmount(n,o);return l||"close"!==a||s("unmounted"),index(()=>{if(r){if(n){s("initial");let e=requestAnimationFrame(()=>{s("open")});return()=>{cancelAnimationFrame(e)}}s("close")}},[n,r]),{isMounted:l,status:a}}function useTransitionStyles(e,t){void 0===t&&(t={});let{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,s=e.placement,l=s.split("-")[0],u=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({side:l,placement:s}),[l,s]),c="number"==typeof a,d=(c?a:a.open)||0,f=(c?a:a.close)||0,[p,h]=react__WEBPACK_IMPORTED_MODULE_2__.useState(()=>({...execWithArgsOrReturn(o,u),...execWithArgsOrReturn(n,u)})),{isMounted:m,status:g}=useTransitionStatus(e,{duration:a}),v=useLatestRef(n),y=useLatestRef(r),b=useLatestRef(i),_=useLatestRef(o);return index(()=>{let e=execWithArgsOrReturn(v.current,u),t=execWithArgsOrReturn(b.current,u),n=execWithArgsOrReturn(_.current,u),r=execWithArgsOrReturn(y.current,u)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&h({transitionProperty:Object.keys(r).map(camelCaseToKebabCase).join(","),transitionDuration:d+"ms",...n,...r}),"close"===g){let r=t||e;h({transitionProperty:Object.keys(r).map(camelCaseToKebabCase).join(","),transitionDuration:f+"ms",...n,...r})}},[f,b,v,y,_,d,g,u]),{isMounted:m,styles:p}}function useTypeahead(e,t){var n;let{open:r,dataRef:i}=e,{listRef:o,activeIndex:a,onMatch:s,onTypingChange:l,enabled:u=!0,findMatch:c=null,resetMs:d=750,ignoreKeys:f=[],selectedIndex:p=null}=t,h=react__WEBPACK_IMPORTED_MODULE_2__.useRef(),m=react__WEBPACK_IMPORTED_MODULE_2__.useRef(""),g=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null!=(n=null!=p?p:a)?n:-1),v=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),y=useEffectEvent(s),b=useEffectEvent(l),_=useLatestRef(c),E=useLatestRef(f);index(()=>{r&&(clearTimeout(h.current),v.current=null,m.current="")},[r]),index(()=>{if(r&&""===m.current){var e;g.current=null!=(e=null!=p?p:a)?e:-1}},[r,p,a]);let w=useEffectEvent(e=>{e?i.current.typing||(i.current.typing=e,b(e)):i.current.typing&&(i.current.typing=e,b(e))}),S=useEffectEvent(e=>{function t(e,t,n){let r=_.current?_.current(t,n):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))===0);return r?e.indexOf(r):-1}let n=o.current;if(m.current.length>0&&" "!==m.current[0]&&(-1===t(n,n,m.current)?w(!1):" "===e.key&&stopEvent(e)),null==n||E.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(stopEvent(e),w(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&m.current===e.key&&(m.current="",g.current=v.current),m.current+=e.key,clearTimeout(h.current),h.current=setTimeout(()=>{m.current="",g.current=v.current,w(!1)},d);let i=g.current,a=t(n,[...n.slice((i||0)+1),...n.slice(0,(i||0)+1)],m.current);-1!==a?(y(a),v.current=a):" "!==e.key&&(m.current="",w(!1))}),T=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onKeyDown:S}),[S]),O=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onKeyDown:S,onKeyUp(e){" "===e.key&&w(!1)}}),[S,w]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>u?{reference:T,floating:O}:{},[u,T,O])}function getArgsWithCustomFloatingHeight(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let inner=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=evaluate(e,t),{rects:d,elements:{floating:f}}=t,p=n.current[a];if(!p)return{};let h={...t,...await offset(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-o).fn(t)},m=(null==u?void 0:u.current)||f,g=await detectOverflow(getArgsWithCustomFloatingHeight(h,m.scrollHeight),c),v=await detectOverflow(h,{...c,elementContext:"reference"}),y=Math.max(0,g.top),b=h.y+y,_=Math.max(0,m.scrollHeight-y-Math.max(0,g.bottom));return m.style.maxHeight=_+"px",m.scrollTop=y,i&&(m.offsetHeight<p.offsetHeight*Math.min(s,n.current.length-1)-1||v.top>=-l||v.bottom>=-l?react_dom__WEBPACK_IMPORTED_MODULE_4__.flushSync(()=>i(!0)):react_dom__WEBPACK_IMPORTED_MODULE_4__.flushSync(()=>i(!1))),r&&(r.current=await detectOverflow(getArgsWithCustomFloatingHeight({...h,y:b},m.offsetHeight),c)),{y:b}}});function useInnerOffset(e,t){let{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=useEffectEvent(s),u=react__WEBPACK_IMPORTED_MODULE_2__.useRef(!1),c=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null),d=react__WEBPACK_IMPORTED_MODULE_2__.useRef(null);react__WEBPACK_IMPORTED_MODULE_2__.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;let n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,u=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!i&&n<0?(e.preventDefault(),react_dom__WEBPACK_IMPORTED_MODULE_4__.flushSync(()=>{l(e=>e+Math[u](n,a*s))})):/firefox/i.test(getUserAgent())&&(t.scrollTop+=n))}let t=(null==a?void 0:a.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(d.current={...o.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}},[i,n,r.floating,o,a,l]);let f=react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&u.current){if(null!==c.current){let t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&react_dom__WEBPACK_IMPORTED_MODULE_4__.flushSync(()=>l(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,l,o,a]);return react__WEBPACK_IMPORTED_MODULE_2__.useMemo(()=>i?{floating:f}:{},[i,f])}function isPointInPolygon(e,t){let[n,r]=e,i=!1,o=t.length;for(let e=0,a=o-1;e<o;a=e++){let[o,s]=t[e]||[0,0],[l,u]=t[a]||[0,0];s>=r!=u>=r&&n<=(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}function isInside(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function safePolygon(e){let t;void 0===e&&(e={});let{buffer:n=.5,blockPointerEvents:r=!1,requireIntent:i=!0}=e,o=!1,a=null,s=null,l=performance.now();function u(e,t){let n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;let i=e-a,o=t-s,u=Math.sqrt(i*i+o*o)/r;return a=e,s=t,l=n,u}let c=e=>{let{x:r,y:a,placement:s,elements:l,onClose:c,nodeId:d,tree:f}=e;return function(e){function p(){clearTimeout(t),c()}if(clearTimeout(t),!l.domReference||!l.floating||null==s||null==r||null==a)return;let{clientX:h,clientY:m}=e,g=[h,m],v=getTarget(e),y="mouseleave"===e.type,b=contains(l.floating,v),_=contains(l.domReference,v),E=l.domReference.getBoundingClientRect(),w=l.floating.getBoundingClientRect(),S=s.split("-")[0],T=r>w.right-w.width/2,O=a>w.bottom-w.height/2,I=isInside(g,E),A=w.width>E.width,C=w.height>E.height,x=(A?E:w).left,D=(A?E:w).right,R=(C?E:w).top,L=(C?E:w).bottom;if(b&&(o=!0,!y))return;if(_&&(o=!1),_&&!y){o=!0;return}if(y&&isElement(e.relatedTarget)&&contains(l.floating,e.relatedTarget)||f&&getChildren(f.nodesRef.current,d).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===S&&a>=E.bottom-1||"bottom"===S&&a<=E.top+1||"left"===S&&r>=E.right-1||"right"===S&&r<=E.left+1)return p();let k=[];switch(S){case"top":k=[[x,E.top+1],[x,w.bottom-1],[D,w.bottom-1],[D,E.top+1]];break;case"bottom":k=[[x,w.top+1],[x,E.bottom-1],[D,E.bottom-1],[D,w.top+1]];break;case"left":k=[[w.right-1,L],[w.right-1,R],[E.left+1,R],[E.left+1,L]];break;case"right":k=[[E.right-1,L],[E.right-1,R],[w.left+1,R],[w.left+1,L]]}function M(e){let[t,r]=e;switch(S){case"top":return[[A?t+n/2:T?t+4*n:t-4*n,r+n+1],[A?t-n/2:T?t+4*n:t-4*n,r+n+1],[w.left,T?w.bottom-n:A?w.bottom-n:w.top],[w.right,T?A?w.bottom-n:w.top:w.bottom-n]];case"bottom":return[[A?t+n/2:T?t+4*n:t-4*n,r-n],[A?t-n/2:T?t+4*n:t-4*n,r-n],[w.left,T?w.top+n:A?w.top+n:w.bottom],[w.right,T?A?w.top+n:w.bottom:w.top+n]];case"left":{let e=[t+n+1,C?r+n/2:O?r+4*n:r-4*n],i=[t+n+1,C?r-n/2:O?r+4*n:r-4*n];return[[O?w.right-n:C?w.right-n:w.left,w.top],[O?C?w.right-n:w.left:w.right-n,w.bottom],e,i]}case"right":return[[t-n,C?r+n/2:O?r+4*n:r-4*n],[t-n,C?r-n/2:O?r+4*n:r-4*n],[O?w.left+n:C?w.left+n:w.right,w.top],[O?C?w.left+n:w.right:w.left+n,w.bottom]]}}if(!isPointInPolygon([h,m],k)){if(o&&!I)return p();if(!y&&i){let t=u(e.clientX,e.clientY),n=.1;if(null!==t&&t<n)return p()}isPointInPolygon([h,m],M([r,a]))?!o&&i&&(t=window.setTimeout(p,40)):p()}}};return c.__options={blockPointerEvents:r},c}var floatingUi_react_esm=Object.freeze({__proto__:null,Composite:Composite,CompositeItem:CompositeItem,FloatingArrow:FloatingArrow,FloatingDelayGroup:FloatingDelayGroup,FloatingFocusManager:FloatingFocusManager,FloatingList:FloatingList,FloatingNode:FloatingNode,FloatingOverlay:FloatingOverlay,FloatingPortal:FloatingPortal,FloatingTree:FloatingTree,arrow:arrow,autoPlacement:autoPlacement,autoUpdate:autoUpdate,computePosition:computePosition,detectOverflow:detectOverflow,flip:flip,getOverflowAncestors:getOverflowAncestors,hide:hide,inline:inline,inner:inner,limitShift:limitShift,offset:offset,platform:platform,safePolygon:safePolygon,shift:shift,size:size,useClick:useClick,useClientPoint:useClientPoint,useDelayGroup:useDelayGroup,useDelayGroupContext:useDelayGroupContext,useDismiss:useDismiss,useFloating:useFloating,useFloatingNodeId:useFloatingNodeId,useFloatingParentNodeId:useFloatingParentNodeId,useFloatingPortalNode:useFloatingPortalNode,useFloatingRootContext:useFloatingRootContext,useFloatingTree:useFloatingTree,useFocus:useFocus,useHover:useHover,useId:useId,useInnerOffset:useInnerOffset,useInteractions:useInteractions,useListItem:useListItem,useListNavigation:useListNavigation,useMergeRefs:useMergeRefs,useRole:useRole,useTransitionStatus:useTransitionStatus,useTransitionStyles:useTransitionStyles,useTypeahead:useTypeahead}),require$$62=getAugmentedNamespace(floatingUi_react_esm);!/*!
  react-datepicker v7.3.0
  https://github.com/Hacker0x01/react-datepicker
  Released under the MIT License.
*/function(e,t){!function(e,n){n(t,requireClsx(),react__WEBPACK_IMPORTED_MODULE_2__,require$$2,requireAddDays(),requireAddHours(),requireAddMinutes(),requireAddMonths(),requireAddQuarters(),requireAddSeconds(),requireAddWeeks(),requireAddYears(),requireDifferenceInCalendarDays(),requireDifferenceInCalendarMonths(),requireDifferenceInCalendarQuarters(),requireDifferenceInCalendarYears(),requireEndOfDay(),requireEndOfMonth(),requireEndOfWeek(),requireEndOfYear(),requireFormat(),requireGetDate(),requireGetDay(),requireGetHours(),requireGetISOWeek(),requireGetMinutes(),requireGetMonth(),requireGetQuarter(),requireGetSeconds(),requireGetTime(),requireGetYear(),requireIsAfter(),requireIsBefore(),requireIsDate(),requireIsEqual(),requireIsSameDay(),requireIsSameMonth(),requireIsSameQuarter(),requireIsSameYear(),requireIsValid(),requireIsWithinInterval(),requireMax(),requireMin(),requireParse(),requireParseISO(),requireSet(),requireSetHours(),requireSetMinutes(),requireSetMonth(),requireSetQuarter(),requireSetSeconds(),requireSetYear(),requireStartOfDay(),requireStartOfMonth(),requireStartOfQuarter(),requireStartOfWeek(),requireStartOfYear(),requireSubDays(),requireSubMonths(),requireSubQuarters(),requireSubWeeks(),requireSubYears(),requireToDate(),require$$62,react_dom__WEBPACK_IMPORTED_MODULE_4__)}(0,function(e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_,E,w,S,T,O,I,A,C,x,D,R,L,k,M,P,N,F,B,U,H,j,V,z,Z,G,W,q,Y,$,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec){function ed(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ef=ed(n),ep=ed(r),eh=ed(ec),em=function(e,t){return(em=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function eg(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}em(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ev=function(){return(ev=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ey(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var eb,e_=function(e){var t=e.showTimeSelectOnly,n=void 0!==t&&t,r=e.showTime,i=void 0!==r&&r,o=e.className,a=e.children,s=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return ef.default.createElement("div",{className:o,role:"dialog","aria-label":s,"aria-modal":"true"},a)};function eE(){return"undefined"!=typeof window?window:globalThis}!function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"}(eb||(eb={}));var ew=12,eS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function eT(e){if(null==e)return new Date;var t="string"==typeof e?Z.parseISO(e):el.toDate(e);return eO(t)?t:new Date}function eO(e,t){return U.isValid(e)&&!L.isBefore(e,null!=t?t:new Date("1/1/1800"))}function eI(e,t,n){if("en"===n)return _.format(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?ez(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&eV()&&ez(eV())&&(r=ez(eV())),_.format(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function eA(e,t){var n=t.dateFormat,r=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&eI(e,i,r)||""}function eC(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second,s=void 0===a?0:a;return W.setHours(q.setMinutes(K.setSeconds(e,s),o),r)}function ex(e){return Q.startOfDay(e)}function eD(e,t,n){var r=ez(t||eV());return et.startOfWeek(e,{locale:r,weekStartsOn:n})}function eR(e){return J.startOfMonth(e)}function eL(e){return en.startOfYear(e)}function ek(e){return ee.startOfQuarter(e)}function eM(){return Q.startOfDay(eT())}function eP(e){return g.endOfDay(e)}function eN(e,t){return e&&t?B.isSameYear(e,t):!e&&!t}function eF(e,t){return e&&t?N.isSameMonth(e,t):!e&&!t}function eB(e,t){return e&&t?F.isSameQuarter(e,t):!e&&!t}function eU(e,t){return e&&t?P.isSameDay(e,t):!e&&!t}function eH(e,t){return e&&t?M.isEqual(e,t):!e&&!t}function ej(e,t,n){var r,i=Q.startOfDay(t),o=g.endOfDay(n);try{r=H.isWithinInterval(e,{start:i,end:o})}catch(e){r=!1}return r}function eV(){return eE().__localeId__}function ez(e){if("string"==typeof e){var t=eE();return t.__localeData__?t.__localeData__[e]:void 0}return e}function eZ(e,t){return eI(Y.setMonth(eT(),e),"LLLL",t)}function eG(e,t){return eI(Y.setMonth(eT(),e),"LLL",t)}function eW(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.excludeDateIntervals,s=n.includeDates,l=n.includeDateIntervals,u=n.filterDate;return e1(e,{minDate:r,maxDate:i})||o&&o.some(function(t){var n;return t instanceof Date?eU(e,t):eU(e,null!==(n=t.date)&&void 0!==n?n:new Date)})||a&&a.some(function(t){var n=t.start,r=t.end;return H.isWithinInterval(e,{start:n,end:r})})||s&&!s.some(function(t){return eU(e,t)})||l&&!l.some(function(t){var n=t.start,r=t.end;return H.isWithinInterval(e,{start:n,end:r})})||u&&!u(eT(e))||!1}function eq(e,t){var n=void 0===t?{}:t,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(t){var n=t.start,r=t.end;return H.isWithinInterval(e,{start:n,end:r})}):r&&r.some(function(t){var n;return t instanceof Date?eU(e,t):eU(e,null!==(n=t.date)&&void 0!==n?n:new Date)})||!1}function eY(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return e1(e,{minDate:r?J.startOfMonth(r):void 0,maxDate:i?v.endOfMonth(i):void 0})||(null==o?void 0:o.some(function(t){return eF(e,t instanceof Date?t:t.date)}))||a&&!a.some(function(t){return eF(e,t)})||s&&!s(eT(e))||!1}function e$(e,t,n,r){var i=D.getYear(e),o=I.getMonth(e),a=D.getYear(t),s=I.getMonth(t),l=D.getYear(r);return i===a&&i===l?o<=n&&n<=s:i<a&&(l===i&&o<=n||l===a&&s>=n||l<a&&l>i)}function eK(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates;return e1(e,{minDate:r,maxDate:i})||o&&o.some(function(t){return eF(t instanceof Date?t:t.date,e)})||a&&!a.some(function(t){return eF(t,e)})||!1}function eX(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return e1(e,{minDate:r,maxDate:i})||(null==o?void 0:o.some(function(t){return eB(e,t instanceof Date?t:t.date)}))||a&&!a.some(function(t){return eB(e,t)})||s&&!s(eT(e))||!1}function eQ(e,t,n){if(!t||!n||!U.isValid(t)||!U.isValid(n))return!1;var r=D.getYear(t),i=D.getYear(n);return r<=e&&i>=e}function eJ(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate,l=new Date(e,0,1);return e1(l,{minDate:r?en.startOfYear(r):void 0,maxDate:i?b.endOfYear(i):void 0})||(null==o?void 0:o.some(function(e){return eN(l,e instanceof Date?e:e.date)}))||a&&!a.some(function(e){return eN(l,e)})||s&&!s(eT(l))||!1}function e0(e,t,n,r){var i=D.getYear(e),o=A.getQuarter(e),a=D.getYear(t),s=A.getQuarter(t),l=D.getYear(r);return i===a&&i===l?o<=n&&n<=s:i<a&&(l===i&&o<=n||l===a&&s>=n||l<a&&l>i)}function e1(e,t){var n,r=void 0===t?{}:t,i=r.minDate,o=r.maxDate;return null!==(n=i&&0>f.differenceInCalendarDays(e,i)||o&&f.differenceInCalendarDays(e,o)>0)&&void 0!==n&&n}function e2(e,t){return t.some(function(t){return S.getHours(t)===S.getHours(e)&&O.getMinutes(t)===O.getMinutes(e)&&C.getSeconds(t)===C.getSeconds(e)})}function e4(e,t){var n=void 0===t?{}:t,r=n.excludeTimes,i=n.includeTimes,o=n.filterTime;return r&&e2(e,r)||i&&!e2(e,i)||o&&!o(e)||!1}function e3(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw Error("Both minTime and maxTime props required");var i=eT();i=W.setHours(i,S.getHours(e)),i=q.setMinutes(i,O.getMinutes(e)),i=K.setSeconds(i,C.getSeconds(e));var o=eT();o=W.setHours(o,S.getHours(n)),o=q.setMinutes(o,O.getMinutes(n)),o=K.setSeconds(o,C.getSeconds(n));var a,s=eT();s=W.setHours(s,S.getHours(r)),s=q.setMinutes(s,O.getMinutes(r)),s=K.setSeconds(s,C.getSeconds(r));try{a=!H.isWithinInterval(i,{start:o,end:s})}catch(e){a=!1}return a}function e5(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,o=ei.subMonths(e,1);return r&&p.differenceInCalendarMonths(r,o)>0||i&&i.every(function(e){return p.differenceInCalendarMonths(e,o)>0})||!1}function e6(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,o=s.addMonths(e,1);return r&&p.differenceInCalendarMonths(o,r)>0||i&&i.every(function(e){return p.differenceInCalendarMonths(o,e)>0})||!1}function e9(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,o=es.subYears(e,1);return r&&m.differenceInCalendarYears(r,o)>0||i&&i.every(function(e){return m.differenceInCalendarYears(e,o)>0})||!1}function e8(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,o=d.addYears(e,1);return r&&m.differenceInCalendarYears(o,r)>0||i&&i.every(function(e){return m.differenceInCalendarYears(o,e)>0})||!1}function e7(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return f.differenceInCalendarDays(e,t)>=0});return V.min(r)}return n?V.min(n):t}function te(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return 0>=f.differenceInCalendarDays(e,t)});return j.max(r)}return n?j.max(n):t}function tt(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var r=new Map,i=0,o=e.length;i<o;i++){var a=e[i];if(k.isDate(a)){var s=eI(a,"MM.dd.yyyy");(f=r.get(s)||[]).includes(t)||(f.push(t),r.set(s,f))}else if("object"==typeof a){var l=null!==(n=Object.keys(a)[0])&&void 0!==n?n:"",u=a[l];if("string"==typeof l&&Array.isArray(u))for(var c=0,d=u.length;c<d;c++){var f,p=u[c];p&&(s=eI(p,"MM.dd.yyyy"),(f=r.get(s)||[]).includes(l)||(f.push(l),r.set(s,f)))}}}return r}function tn(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach(function(e){var r=e.date,i=e.holidayName;if(k.isDate(r)){var o=eI(r,"MM.dd.yyyy"),a=n.get(o)||{className:"",holidayNames:[]};if(!("className"in a)||a.className!==t||(s=a.holidayNames,l=[i],s.length!==l.length||!s.every(function(e,t){return e===l[t]}))){a.className=t;var s,l,u=a.holidayNames;a.holidayNames=u?ey(ey([],u,!0),[i],!1):[i],n.set(o,a)}}}),n}function tr(e,t,n,r,i){for(var s=i.length,l=[],c=0;c<s;c++){var d=e,f=i[c];f&&(d=o.addHours(d,S.getHours(f)),d=a.addMinutes(d,O.getMinutes(f)),d=u.addSeconds(d,C.getSeconds(f)));var p=a.addMinutes(e,(n+1)*r);R.isAfter(d,t)&&L.isBefore(d,p)&&null!=f&&l.push(f)}return l}function ti(e){return e<10?"0".concat(e):"".concat(e)}function to(e,t){void 0===t&&(t=ew);var n=Math.ceil(D.getYear(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function ta(e){var t=e.getSeconds(),n=e.getMilliseconds();return el.toDate(e.getTime()-1e3*t-n)}function ts(e){if(!k.isDate(e))throw Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function tl(e,t){if(!k.isDate(e)||!k.isDate(t))throw Error("Invalid date received");var n=ts(e),r=ts(t);return L.isBefore(n,r)}function tu(e){return e.key===eb.Space}var tc,td=function(e){function t(t){var r=e.call(this,t)||this;return r.onTimeChange=function(e){r.setState({time:e});var t,n,i=r.props.date,o=i instanceof Date&&!isNaN(+i)?i:new Date;if(null==e?void 0:e.includes(":")){var a=e.split(":"),s=a[0],l=a[1];o.setHours(Number(s)),o.setMinutes(Number(l))}null===(n=(t=r.props).onChange)||void 0===n||n.call(t,o)},r.renderTimeInput=function(){var e=r.state.time,t=r.props,i=t.date,o=t.timeString,a=t.customTimeInput;return a?n.cloneElement(a,{date:i,value:e,onChange:r.onTimeChange}):ef.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||o)}})},r.state={time:r.props.timeString},r}return eg(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return ef.default.createElement("div",{className:"react-datepicker__input-time-container"},ef.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),ef.default.createElement("div",{className:"react-datepicker-time__input-container"},ef.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(n.Component),tf=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.dayEl=n.createRef(),r.handleClick=function(e){!r.isDisabled()&&r.props.onClick&&r.props.onClick(e)},r.handleMouseEnter=function(e){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(e)},r.handleOnKeyDown=function(e){var t,n;e.key===eb.Space&&(e.preventDefault(),e.key=eb.Enter),null===(n=(t=r.props).handleOnKeyDown)||void 0===n||n.call(t,e)},r.isSameDay=function(e){return eU(r.props.day,e)},r.isKeyboardSelected=function(){if(r.props.disabledKeyboardNavigation)return!1;var e,t=r.props.selectsMultiple?null===(e=r.props.selectedDates)||void 0===e?void 0:e.some(function(e){return r.isSameDayOrWeek(e)}):r.isSameDayOrWeek(r.props.selected),n=r.props.preSelection&&r.isDisabled(r.props.preSelection);return!t&&r.isSameDayOrWeek(r.props.preSelection)&&!n},r.isDisabled=function(e){return void 0===e&&(e=r.props.day),eW(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(){return eq(r.props.day,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.isStartOfWeek=function(){return eU(r.props.day,eD(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameWeek=function(e){return r.props.showWeekPicker&&eU(e,eD(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameDayOrWeek=function(e){return r.isSameDay(e)||r.isSameWeek(e)},r.getHighLightedClass=function(){var e=r.props,t=e.day,n=e.highlightDates;if(!n)return!1;var i=eI(t,"MM.dd.yyyy");return n.get(i)},r.getHolidaysClass=function(){var e,t=r.props,n=t.day,i=t.holidays;if(!i)return[void 0];var o=eI(n,"MM.dd.yyyy");return i.has(o)?[null===(e=i.get(o))||void 0===e?void 0:e.className]:[void 0]},r.isInRange=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&ej(t,n,i)},r.isInSelectingRange=function(){var e,t=r.props,n=t.day,i=t.selectsStart,o=t.selectsEnd,a=t.selectsRange,s=t.selectsDisabledDaysInRange,l=t.startDate,u=t.endDate,c=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return!(!(i||o||a)||!c||!s&&r.isDisabled())&&(i&&u&&(L.isBefore(c,u)||eH(c,u))?ej(n,c,u):(o&&l&&(R.isAfter(c,l)||eH(c,l))||!(!a||!l||u||!R.isAfter(c,l)&&!eH(c,l)))&&ej(n,l,c))},r.isSelectingRangeStart=function(){if(!r.isInSelectingRange())return!1;var e,t=r.props,n=t.day,i=t.startDate,o=t.selectsStart,a=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return eU(n,o?a:i)},r.isSelectingRangeEnd=function(){if(!r.isInSelectingRange())return!1;var e,t=r.props,n=t.day,i=t.endDate,o=t.selectsEnd,a=t.selectsRange,s=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return eU(n,o||a?s:i)},r.isRangeStart=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&eU(n,t)},r.isRangeEnd=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&eU(i,t)},r.isWeekend=function(){var e=w.getDay(r.props.day);return 0===e||6===e},r.isAfterMonth=function(){return void 0!==r.props.month&&(r.props.month+1)%12===I.getMonth(r.props.day)},r.isBeforeMonth=function(){return void 0!==r.props.month&&(I.getMonth(r.props.day)+1)%12===r.props.month},r.isCurrentDay=function(){return r.isSameDay(eT())},r.isSelected=function(){var e;return r.props.selectsMultiple?null===(e=r.props.selectedDates)||void 0===e?void 0:e.some(function(e){return r.isSameDayOrWeek(e)}):r.isSameDayOrWeek(r.props.selected)},r.getClassNames=function(e){var n,i=r.props.dayClassName?r.props.dayClassName(e):void 0;return t.clsx("react-datepicker__day",i,"react-datepicker__day--"+eI(r.props.day,"ddd",n),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass(),r.getHolidaysClass())},r.getAriaLabel=function(){var e=r.props,t=e.day,n=e.ariaLabelPrefixWhenEnabled,i=void 0===n?"Choose":n,o=e.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=r.isDisabled()||r.isExcluded()?a:i;return"".concat(s," ").concat(eI(t,"PPPP",r.props.locale))},r.getTitle=function(){var e=r.props,t=e.day,n=e.holidays,i=void 0===n?new Map:n,o=e.excludeDates,a=eI(t,"MM.dd.yyyy"),s=[];return i.has(a)&&s.push.apply(s,i.get(a).holidayNames),r.isExcluded()&&s.push(null==o?void 0:o.filter(function(e){return e instanceof Date?eU(e,t):eU(null==e?void 0:e.date,t)}).map(function(e){if(!(e instanceof Date))return null==e?void 0:e.message})),s.join(", ")},r.getTabIndex=function(){var e=r.props.selected,t=r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(e)&&eU(t,e))?0:-1},r.handleFocusDay=function(){var e;r.shouldFocusDay()&&(null===(e=r.dayEl.current)||void 0===e||e.focus({preventScroll:!0}))},r.renderDayContents=function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(E.getDate(r.props.day),r.props.day):E.getDate(r.props.day)},r.render=function(){return ef.default.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.props.usePointerEvent?void 0:r.handleMouseEnter,onPointerEnter:r.props.usePointerEvent?r.handleMouseEnter:void 0,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),""!==r.getTitle()&&ef.default.createElement("span",{className:"overlay"},r.getTitle()))},r}return eg(r,e),r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var e=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},r.prototype.isDayActiveElement=function(){var e,t,n;return(null===(t=null===(e=this.props.containerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains(document.activeElement))&&(null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r}(n.Component),tp=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.weekNumberEl=n.createRef(),t.handleClick=function(e){t.props.onClick&&t.props.onClick(e)},t.handleOnKeyDown=function(e){var n,r;e.key===eb.Space&&(e.preventDefault(),e.key=eb.Enter),null===(r=(n=t.props).handleOnKeyDown)||void 0===r||r.call(n,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!eU(t.props.date,t.props.selected)&&eU(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||eU(t.props.date,t.props.selected)&&eU(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var n=!1;0===t.getTabIndex()&&!(null==e?void 0:e.isInputFocused)&&eU(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(n=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return eg(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},r.prototype.render=function(){var e=this.props,n=e.weekNumber,i=e.ariaLabelPrefix,o=void 0===i?r.defaultProps.ariaLabelPrefix:i,a=e.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a,"react-datepicker__week-number--selected":!!a&&eU(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return ef.default.createElement("div",{ref:this.weekNumberEl,className:t.clsx(s),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},r}(n.Component),th=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDisabled=function(e){return eW(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(e,n){t.props.onDayClick&&t.props.onDayClick(e,n)},t.handleDayMouseEnter=function(e){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(e)},t.handleWeekClick=function(e,r,i){for(var o,a,s,l=new Date(e),u=0;u<7;u++){var c=new Date(e);if(c.setDate(c.getDate()+u),!t.isDisabled(c)){l=c;break}}"function"==typeof t.props.onWeekSelect&&t.props.onWeekSelect(l,r,i),t.props.showWeekPicker&&t.handleDayClick(l,i),(null!==(o=t.props.shouldCloseOnSelect)&&void 0!==o?o:n.defaultProps.shouldCloseOnSelect)&&(null===(s=(a=t.props).setOpen)||void 0===s||s.call(a,!1))},t.formatWeekNumber=function(e){return t.props.formatWeekNumber?t.props.formatWeekNumber(e):function(e){return T.getISOWeek(e)}(e)},t.renderDays=function(){var e=t.startOfWeek(),r=[],o=t.formatWeekNumber(e);if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,e,o):void 0;r.push(ef.default.createElement(tp,ev({key:"W"},n.defaultProps,t.props,{weekNumber:o,date:e,onClick:a})))}return r.concat([0,1,2,3,4,5,6].map(function(r){var o=i.addDays(e,r);return ef.default.createElement(tf,ev({},n.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:o.valueOf(),day:o,onClick:t.handleDayClick.bind(t,o),onMouseEnter:t.handleDayMouseEnter.bind(t,o)}))}))},t.startOfWeek=function(){return eD(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!eU(t.startOfWeek(),t.props.selected)&&eU(t.startOfWeek(),t.props.preSelection)},t}return eg(n,e),Object.defineProperty(n,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),n.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":eU(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return ef.default.createElement("div",{className:t.clsx(e)},this.renderDays())},n}(n.Component),tm="two_columns",tg="three_columns",tv="four_columns",ty=((tc={})[tm]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},tc[tg]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},tc[tv]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},tc);function tb(e,t){return e?tv:t?tm:tg}var t_=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.MONTH_REFS=ey([],Array(12),!0).map(function(){return n.createRef()}),r.QUARTER_REFS=ey([],[,,,,],!0).map(function(){return n.createRef()}),r.isDisabled=function(e){return eW(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(e){return eq(e,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.handleDayClick=function(e,t){var n,i;null===(i=(n=r.props).onDayClick)||void 0===i||i.call(n,e,t,r.props.orderInDisplay)},r.handleDayMouseEnter=function(e){var t,n;null===(n=(t=r.props).onDayMouseEnter)||void 0===n||n.call(t,e)},r.handleMouseLeave=function(){var e,t;null===(t=(e=r.props).onMouseLeave)||void 0===t||t.call(e)},r.isRangeStartMonth=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&eF(Y.setMonth(n,e),i)},r.isRangeStartQuarter=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&eB($.setQuarter(n,e),i)},r.isRangeEndMonth=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&eF(Y.setMonth(n,e),o)},r.isRangeEndQuarter=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&eB($.setQuarter(n,e),o)},r.isInSelectingRangeMonth=function(e){var t,n=r.props,i=n.day,o=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,l=n.startDate,u=n.endDate,c=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return!(!(o||a||s)||!c)&&(o&&u?e$(c,u,e,i):(a&&l||!(!s||!l||u))&&e$(l,c,e,i))},r.isSelectingMonthRangeStart=function(e){if(!r.isInSelectingRangeMonth(e))return!1;var t,n=r.props,i=n.day,o=n.startDate,a=n.selectsStart,s=Y.setMonth(i,e),l=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return eF(s,a?l:o)},r.isSelectingMonthRangeEnd=function(e){if(!r.isInSelectingRangeMonth(e))return!1;var t,n=r.props,i=n.day,o=n.endDate,a=n.selectsEnd,s=n.selectsRange,l=Y.setMonth(i,e),u=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return eF(l,a||s?u:o)},r.isInSelectingRangeQuarter=function(e){var t,n=r.props,i=n.day,o=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,l=n.startDate,u=n.endDate,c=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return!(!(o||a||s)||!c)&&(o&&u?e0(c,u,e,i):(a&&l||!(!s||!l||u))&&e0(l,c,e,i))},r.isWeekInMonth=function(e){var t=r.props.day,n=i.addDays(e,6);return eF(e,t)||eF(n,t)},r.isCurrentMonth=function(e,t){return D.getYear(e)===D.getYear(eT())&&t===I.getMonth(eT())},r.isCurrentQuarter=function(e,t){return D.getYear(e)===D.getYear(eT())&&t===A.getQuarter(eT())},r.isSelectedMonth=function(e,t,n){return I.getMonth(n)===t&&D.getYear(e)===D.getYear(n)},r.isSelectMonthInList=function(e,t,n){return n.some(function(n){return r.isSelectedMonth(e,t,n)})},r.isSelectedQuarter=function(e,t,n){return A.getQuarter(e)===t&&D.getYear(e)===D.getYear(n)},r.renderWeeks=function(){for(var e=[],t=r.props.fixedHeight,n=0,i=!1,o=eD(eR(r.props.day),r.props.locale,r.props.calendarStartDay),a=r.props.selected?function(e){return r.props.showWeekPicker?eD(e,r.props.locale,r.props.calendarStartDay):r.props.selected}(r.props.selected):void 0,s=r.props.preSelection?function(e){return r.props.showWeekPicker?eD(e,r.props.locale,r.props.calendarStartDay):r.props.preSelection}(r.props.preSelection):void 0;e.push(ef.default.createElement(th,ev({},r.props,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,key:n,day:o,month:I.getMonth(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,selected:a,preSelection:s,showWeekNumber:r.props.showWeekNumbers}))),!i;){n++,o=c.addWeeks(o,1);var l=t&&n>=6,u=!t&&!r.isWeekInMonth(o);if(l||u){if(!r.props.peekNextMonth)break;i=!0}}return e},r.onMonthClick=function(e,t){var n=r.isMonthDisabledForLabelDate(t),i=n.isDisabled,o=n.labelDate;i||r.handleDayClick(eR(o),e)},r.onMonthMouseEnter=function(e){var t=r.isMonthDisabledForLabelDate(e),n=t.isDisabled,i=t.labelDate;n||r.handleDayMouseEnter(eR(i))},r.handleMonthNavigation=function(e,t){var n,i,o,a;null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,t),null===(a=null===(o=r.MONTH_REFS[e])||void 0===o?void 0:o.current)||void 0===a||a.focus()},r.handleKeyboardNavigation=function(e,t,n){var i,o=r.props,a=o.selected,l=o.preSelection,u=o.setPreSelection,c=o.minDate,d=o.maxDate,f=o.showFourColumnMonthYearPicker,p=o.showTwoColumnMonthYearPicker;if(l){var h=tb(f,p),m=r.getVerticalOffset(h),g=null===(i=ty[h])||void 0===i?void 0:i.grid,v=function(e,t,n){var r,i,o=t,a=n;switch(e){case eb.ArrowRight:o=s.addMonths(t,1),a=11===n?0:n+1;break;case eb.ArrowLeft:o=ei.subMonths(t,1),a=0===n?11:n-1;break;case eb.ArrowUp:o=ei.subMonths(t,m),a=(null===(r=null==g?void 0:g[0])||void 0===r?void 0:r.includes(n))?n+12-m:n-m;break;case eb.ArrowDown:o=s.addMonths(t,m),a=(null===(i=null==g?void 0:g[g.length-1])||void 0===i?void 0:i.includes(n))?n-12+m:n+m}return{newCalculatedDate:o,newCalculatedMonth:a}};if(t!==eb.Enter){var y=function(e,t,n){for(var i,o=e,a=!1,s=0,l=v(o,t,n),u=l.newCalculatedDate,f=l.newCalculatedMonth;!a;){if(s>=40){u=t,f=n;break}c&&u<c&&(u=(i=v(o=eb.ArrowRight,u,f)).newCalculatedDate,f=i.newCalculatedMonth),d&&u>d&&(u=(i=v(o=eb.ArrowLeft,u,f)).newCalculatedDate,f=i.newCalculatedMonth),eK(u,r.props)?(u=(i=v(o,u,f)).newCalculatedDate,f=i.newCalculatedMonth):a=!0,s++}return{newCalculatedDate:u,newCalculatedMonth:f}}(t,l,n),b=y.newCalculatedDate,_=y.newCalculatedMonth;switch(t){case eb.ArrowRight:case eb.ArrowLeft:case eb.ArrowUp:case eb.ArrowDown:r.handleMonthNavigation(_,b)}}else r.isMonthDisabled(n)||(r.onMonthClick(e,n),null==u||u(a))}},r.getVerticalOffset=function(e){var t,n;return null!==(n=null===(t=ty[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==n?n:0},r.onMonthKeyDown=function(e,t){var n=r.props,i=n.disabledKeyboardNavigation,o=n.handleOnMonthKeyDown,a=e.key;a!==eb.Tab&&e.preventDefault(),i||r.handleKeyboardNavigation(e,a,t),o&&o(e)},r.onQuarterClick=function(e,t){var n=$.setQuarter(r.props.day,t);eX(n,r.props)||r.handleDayClick(ek(n),e)},r.onQuarterMouseEnter=function(e){var t=$.setQuarter(r.props.day,e);eX(t,r.props)||r.handleDayMouseEnter(ek(t))},r.handleQuarterNavigation=function(e,t){var n,i,o,a;r.isDisabled(t)||r.isExcluded(t)||(null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,t),null===(a=null===(o=r.QUARTER_REFS[e-1])||void 0===o?void 0:o.current)||void 0===a||a.focus())},r.onQuarterKeyDown=function(e,t){var n,i,o=e.key;if(!r.props.disabledKeyboardNavigation)switch(o){case eb.Enter:r.onQuarterClick(e,t),null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,r.props.selected);break;case eb.ArrowRight:if(!r.props.preSelection)break;r.handleQuarterNavigation(4===t?1:t+1,l.addQuarters(r.props.preSelection,1));break;case eb.ArrowLeft:if(!r.props.preSelection)break;r.handleQuarterNavigation(1===t?4:t-1,eo.subQuarters(r.props.preSelection,1))}},r.isMonthDisabledForLabelDate=function(e){var t,n=r.props,i=n.day,o=n.minDate,a=n.maxDate,s=n.excludeDates,l=n.includeDates,u=Y.setMonth(i,e);return{isDisabled:null!==(t=(o||a||s||l)&&eY(u,r.props))&&void 0!==t&&t,labelDate:u}},r.isMonthDisabled=function(e){return r.isMonthDisabledForLabelDate(e).isDisabled},r.getMonthClassNames=function(e){var n=r.props,i=n.day,o=n.startDate,a=n.endDate,s=n.preSelection,l=n.monthClassName,u=l?l(Y.setMonth(i,e)):void 0,c=r.getSelection();return t.clsx("react-datepicker__month-text","react-datepicker__month-".concat(e),u,{"react-datepicker__month-text--disabled":r.isMonthDisabled(e),"react-datepicker__month-text--selected":c?r.isSelectMonthInList(i,e,c):void 0,"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&s&&r.isSelectedMonth(i,e,s)&&!r.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":o&&a?e$(o,a,e,i):void 0,"react-datepicker__month-text--range-start":r.isRangeStartMonth(e),"react-datepicker__month-text--range-end":r.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":r.isCurrentMonth(i,e)})},r.getTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=I.getMonth(r.props.preSelection);return r.props.disabledKeyboardNavigation||e!==t?"-1":"0"},r.getQuarterTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=A.getQuarter(r.props.preSelection);return r.props.disabledKeyboardNavigation||e!==t?"-1":"0"},r.getAriaLabel=function(e){var t=r.props,n=t.chooseDayAriaLabelPrefix,i=void 0===n?"Choose":n,o=t.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=t.day,l=t.locale,u=Y.setMonth(s,e),c=r.isDisabled(u)||r.isExcluded(u)?a:i;return"".concat(c," ").concat(eI(u,"MMMM yyyy",l))},r.getQuarterClassNames=function(e){var n=r.props,i=n.day,o=n.startDate,a=n.endDate,s=n.selected,l=n.minDate,u=n.maxDate,c=n.excludeDates,d=n.includeDates,f=n.filterDate,p=n.preSelection,h=n.disabledKeyboardNavigation,m=(l||u||c||d||f)&&eX($.setQuarter(i,e),r.props);return t.clsx("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":m,"react-datepicker__quarter-text--selected":s?r.isSelectedQuarter(i,e,s):void 0,"react-datepicker__quarter-text--keyboard-selected":!h&&p&&r.isSelectedQuarter(i,e,p)&&!m,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":o&&a?e0(o,a,e,i):void 0,"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(e)})},r.getMonthContent=function(e){var t=r.props,n=t.showFullMonthYearPicker,i=t.renderMonthContent,o=t.locale,a=t.day,s=eG(e,o),l=eZ(e,o);return i?i(e,s,l,a):n?l:s},r.getQuarterContent=function(e){var t,n=r.props,i=n.renderQuarterContent,o=function(e,t){return eI($.setQuarter(eT(),e),"QQQ",t)}(e,n.locale);return null!==(t=null==i?void 0:i(e,o))&&void 0!==t?t:o},r.renderMonths=function(){var e,t=r.props,n=t.showTwoColumnMonthYearPicker,i=t.showFourColumnMonthYearPicker,o=t.day,a=t.selected,s=null===(e=ty[tb(i,n)])||void 0===e?void 0:e.grid;return null==s?void 0:s.map(function(e,t){return ef.default.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map(function(e,t){return ef.default.createElement("div",{ref:r.MONTH_REFS[e],key:t,onClick:function(t){r.onMonthClick(t,e)},onKeyDown:function(t){tu(t)&&(t.preventDefault(),t.key=eb.Enter),r.onMonthKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onMonthMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onMonthMouseEnter(e)}:void 0,tabIndex:Number(r.getTabIndex(e)),className:r.getMonthClassNames(e),"aria-disabled":r.isMonthDisabled(e),role:"option","aria-label":r.getAriaLabel(e),"aria-current":r.isCurrentMonth(o,e)?"date":void 0,"aria-selected":a?r.isSelectedMonth(o,e,a):void 0},r.getMonthContent(e))}))})},r.renderQuarters=function(){var e=r.props,t=e.day,n=e.selected;return ef.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(e,i){return ef.default.createElement("div",{key:i,ref:r.QUARTER_REFS[i],role:"option",onClick:function(t){r.onQuarterClick(t,e)},onKeyDown:function(t){r.onQuarterKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onQuarterMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onQuarterMouseEnter(e)}:void 0,className:r.getQuarterClassNames(e),"aria-selected":n?r.isSelectedQuarter(t,e,n):void 0,tabIndex:Number(r.getQuarterTabIndex(e)),"aria-current":r.isCurrentQuarter(t,e)?"date":void 0},r.getQuarterContent(e))}))},r.getClassNames=function(){var e=r.props,n=e.selectingDate,i=e.selectsStart,o=e.selectsEnd,a=e.showMonthYearPicker,s=e.showQuarterYearPicker,l=e.showWeekPicker;return t.clsx("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(i||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":s},{"react-datepicker__weekPicker":l})},r}return eg(r,e),r.prototype.getSelection=function(){var e=this.props,t=e.selected,n=e.selectedDates;return e.selectsMultiple?n:t?[t]:void 0},r.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"Month ":i,a=o?o.trim()+" ":"";return ef.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(a).concat(eI(r,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},r}(n.Component),tE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(e){return t.props.month===e},t.renderOptions=function(){return t.props.monthNames.map(function(e,n){return ef.default.createElement("div",{className:t.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,n),"aria-selected":t.isSelectedMonth(n)?"true":void 0},t.isSelectedMonth(n)?ef.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)})},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return eg(t,e),t.prototype.render=function(){return ef.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t}(n.Component),tw=ep.default(tE),tS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map(function(e,t){return ef.default.createElement("option",{key:e,value:t},e)})},t.renderSelectMode=function(e){return ef.default.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,n){return ef.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},ef.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),ef.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return ef.default.createElement(tw,ev({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,r=[t.renderReadView(!n,e)];return n&&r.unshift(t.renderDropdown(e)),r},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return eg(t,e),t.prototype.render=function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return eG(e,t.props.locale)}:function(e){return eZ(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return ef.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component);function tT(e,t){for(var n=[],r=eR(e),i=eR(t);!R.isAfter(r,i);)n.push(eT(r)),r=s.addMonths(r,1);return n}var tO=function(e){function n(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(e){var t=x.getTime(e),r=eN(n.props.date,e)&&eF(n.props.date,e);return ef.default.createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":r?"true":void 0},r?ef.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",eI(e,n.props.dateFormat,n.props.locale))})},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:tT(n.props.minDate,n.props.maxDate)},n}return eg(n,e),n.prototype.render=function(){var e=t.clsx({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ef.default.createElement("div",{className:e},this.renderOptions())},n}(n.Component),tI=ep.default(tO),tA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=eR(t.props.minDate),n=eR(t.props.maxDate),r=[];!R.isAfter(e,n);){var i=x.getTime(e);r.push(ef.default.createElement("option",{key:i,value:i},eI(e,t.props.dateFormat,t.props.locale))),e=s.addMonths(e,1)}return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return ef.default.createElement("select",{value:x.getTime(eR(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=eI(t.props.date,t.props.dateFormat,t.props.locale);return ef.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},ef.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ef.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return ef.default.createElement(tI,ev({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown();var n=eT(e);eN(t.props.date,n)&&eF(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return eg(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ef.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),tC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var e,r,i;n.list&&(n.list.scrollTop=null!==(i=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(r=null===(e=n.header)||void 0===e?void 0:e.clientHeight)&&void 0!==r?r:0):n.list.clientHeight,n.centerLi))&&void 0!==i?i:0)})},n.handleClick=function(e){var t,r;(n.props.minTime||n.props.maxTime)&&e3(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&e4(e,n.props)||null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e)},n.isSelectedTime=function(e){var t,r;return n.props.selected&&(t=n.props.selected,r=e,ta(t).getTime()===ta(r).getTime())},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&e3(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&e4(e,n.props)},n.liClasses=function(e){var r,i=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&i.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&i.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*S.getHours(e)+60*O.getMinutes(e)+C.getSeconds(e))%(60*(null!==(r=n.props.intervals)&&void 0!==r?r:t.defaultProps.intervals))!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},n.handleOnKeyDown=function(e,t){var r,i;e.key===eb.Space&&(e.preventDefault(),e.key=eb.Enter),(e.key===eb.ArrowUp||e.key===eb.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===eb.ArrowDown||e.key===eb.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===eb.Enter&&n.handleClick(t),null===(i=(r=n.props).handleOnKeyDown)||void 0===i||i.call(r,e)},n.renderTimes=function(){for(var e,r=[],i=n.props.format?n.props.format:"p",o=null!==(e=n.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,s=n.props.selected||n.props.openToDate||eT(),l=ex(s),u=n.props.injectTimes&&n.props.injectTimes.sort(function(e,t){return e.getTime()-t.getTime()}),c=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());return Math.round((+new Date(e.getFullYear(),e.getMonth(),e.getDate(),24)-+t)/36e5)}(s),d=c/o,f=0;f<d;f++){var p=a.addMinutes(l,f*o);if(r.push(p),u){var h=tr(l,p,f,o,u);r=r.concat(h)}}var m=r.reduce(function(e,t){return t.getTime()<=s.getTime()?t:e},r[0]);return r.map(function(e){return ef.default.createElement("li",{key:e.valueOf(),onClick:n.handleClick.bind(n,e),className:n.liClasses(e),ref:function(t){e===m&&(n.centerLi=t)},onKeyDown:function(t){n.handleOnKeyDown(t,e)},tabIndex:e===m?0:-1,role:"option","aria-selected":n.isSelectedTime(e)?"true":void 0,"aria-disabled":n.isDisabledTime(e)?"true":void 0},eI(e,i,n.props.locale))})},n}return eg(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e,n=this,r=this.state.height;return ef.default.createElement("div",{className:"react-datepicker__time-container ".concat((null!==(e=this.props.todayButton)&&void 0!==e?e:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},ef.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(e){n.header=e}},ef.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),ef.default.createElement("div",{className:"react-datepicker__time"},ef.default.createElement("div",{className:"react-datepicker__time-box"},ef.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){n.list=e},style:r?{height:r}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},t}(n.Component),tx=function(e){function r(r){var i=e.call(this,r)||this;return i.YEAR_REFS=ey([],Array(i.props.yearItemNumber),!0).map(function(){return n.createRef()}),i.isDisabled=function(e){return eW(e,{minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,includeDates:i.props.includeDates,filterDate:i.props.filterDate})},i.isExcluded=function(e){return eq(e,{excludeDates:i.props.excludeDates})},i.selectingDate=function(){var e;return null!==(e=i.props.selectingDate)&&void 0!==e?e:i.props.preSelection},i.updateFocusOnPaginate=function(e){window.requestAnimationFrame(function(){var t,n;null===(n=null===(t=i.YEAR_REFS[e])||void 0===t?void 0:t.current)||void 0===n||n.focus()})},i.handleYearClick=function(e,t){i.props.onDayClick&&i.props.onDayClick(e,t)},i.handleYearNavigation=function(e,t){var n,r,o,a,s=i.props,l=s.date,u=s.yearItemNumber;if(void 0!==l&&void 0!==u){var c=to(l,u).startPeriod;i.isDisabled(t)||i.isExcluded(t)||(null===(r=(n=i.props).setPreSelection)||void 0===r||r.call(n,t),e-c<0?i.updateFocusOnPaginate(u-(c-e)):e-c>=u?i.updateFocusOnPaginate(Math.abs(u-(e-c))):null===(a=null===(o=i.YEAR_REFS[e-c])||void 0===o?void 0:o.current)||void 0===a||a.focus())}},i.isSameDay=function(e,t){return eU(e,t)},i.isCurrentYear=function(e){return e===D.getYear(eT())},i.isRangeStart=function(e){return i.props.startDate&&i.props.endDate&&eN(X.setYear(eT(),e),i.props.startDate)},i.isRangeEnd=function(e){return i.props.startDate&&i.props.endDate&&eN(X.setYear(eT(),e),i.props.endDate)},i.isInRange=function(e){return eQ(e,i.props.startDate,i.props.endDate)},i.isInSelectingRange=function(e){var t=i.props,n=t.selectsStart,r=t.selectsEnd,o=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(n||r||o)||!i.selectingDate())&&(n&&s?eQ(e,i.selectingDate(),s):(r&&a||!(!o||!a||s))&&eQ(e,a,i.selectingDate()))},i.isSelectingRangeStart=function(e){if(!i.isInSelectingRange(e))return!1;var t,n=i.props,r=n.startDate,o=n.selectsStart;return eN(X.setYear(eT(),e),o?null!==(t=i.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},i.isSelectingRangeEnd=function(e){if(!i.isInSelectingRange(e))return!1;var t,n=i.props,r=n.endDate,o=n.selectsEnd,a=n.selectsRange;return eN(X.setYear(eT(),e),o||a?null!==(t=i.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},i.isKeyboardSelected=function(e){if(void 0!==i.props.date&&null!=i.props.selected&&null!=i.props.preSelection){var t=i.props,n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,s=t.filterDate,l=eL(X.setYear(i.props.date,e)),u=(n||r||o||a||s)&&eJ(e,i.props);return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!eU(l,eL(i.props.selected))&&eU(l,eL(i.props.preSelection))&&!u}},i.onYearClick=function(e,t){var n=i.props.date;void 0!==n&&i.handleYearClick(eL(X.setYear(n,t)),e)},i.onYearKeyDown=function(e,t){var n,r,o=e.key,a=i.props,s=a.date,l=a.yearItemNumber,u=a.handleOnKeyDown;if(o!==eb.Tab&&e.preventDefault(),!i.props.disabledKeyboardNavigation)switch(o){case eb.Enter:if(null==i.props.selected)break;i.onYearClick(e,t),null===(r=(n=i.props).setPreSelection)||void 0===r||r.call(n,i.props.selected);break;case eb.ArrowRight:if(null==i.props.preSelection)break;i.handleYearNavigation(t+1,d.addYears(i.props.preSelection,1));break;case eb.ArrowLeft:if(null==i.props.preSelection)break;i.handleYearNavigation(t-1,es.subYears(i.props.preSelection,1));break;case eb.ArrowUp:if(void 0===s||void 0===l||null==i.props.preSelection)break;var c=to(s,l).startPeriod;if((h=t-(p=3))<c){var f=l%p;t>=c&&t<c+f?p=f:p+=f,h=t-p}i.handleYearNavigation(h,es.subYears(i.props.preSelection,p));break;case eb.ArrowDown:if(void 0===s||void 0===l||null==i.props.preSelection)break;var p,h,m=to(s,l).endPeriod;(h=t+(p=3))>m&&(f=l%p,t<=m&&t>m-f?p=f:p+=f,h=t+p),i.handleYearNavigation(h,d.addYears(i.props.preSelection,p))}u&&u(e)},i.getYearClassNames=function(e){var n=i.props,r=n.date,o=n.minDate,a=n.maxDate,s=n.selected,l=n.excludeDates,u=n.includeDates,c=n.filterDate,d=n.yearClassName;return t.clsx("react-datepicker__year-text","react-datepicker__year-".concat(e),r?null==d?void 0:d(X.setYear(r,e)):void 0,{"react-datepicker__year-text--selected":s?e===D.getYear(s):void 0,"react-datepicker__year-text--disabled":(o||a||l||u||c)&&eJ(e,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(e),"react-datepicker__year-text--range-start":i.isRangeStart(e),"react-datepicker__year-text--range-end":i.isRangeEnd(e),"react-datepicker__year-text--in-range":i.isInRange(e),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(e),"react-datepicker__year-text--today":i.isCurrentYear(e)})},i.getYearTabIndex=function(e){return i.props.disabledKeyboardNavigation||null==i.props.preSelection?"-1":e===D.getYear(i.props.preSelection)?"0":"-1"},i.getYearContainerClassNames=function(){var e=i.props,n=e.selectingDate,r=e.selectsStart,o=e.selectsEnd,a=e.selectsRange;return t.clsx("react-datepicker__year",{"react-datepicker__year--selecting-range":n&&(r||o||a)})},i.getYearContent=function(e){return i.props.renderYearContent?i.props.renderYearContent(e):e},i}return eg(r,e),r.prototype.render=function(){var e=this,t=[],n=this.props,r=n.date,i=n.yearItemNumber,o=n.onYearMouseEnter,a=n.onYearMouseLeave;if(void 0===r)return null;for(var s=to(r,i),l=s.startPeriod,u=s.endPeriod,c=function(n){t.push(ef.default.createElement("div",{ref:d.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){tu(t)&&(t.preventDefault(),t.key=eb.Enter),e.onYearKeyDown(t,n)},tabIndex:Number(d.getYearTabIndex(n)),className:d.getYearClassNames(n),onMouseEnter:d.props.usePointerEvent?void 0:function(e){return o(e,n)},onPointerEnter:d.props.usePointerEvent?function(e){return o(e,n)}:void 0,onMouseLeave:d.props.usePointerEvent?void 0:function(e){return a(e,n)},onPointerLeave:d.props.usePointerEvent?function(e){return a(e,n)}:void 0,key:n,"aria-current":d.isCurrentYear(n)?"date":void 0},d.getYearContent(n)))},d=this,f=l;f<=u;f++)c(f);return ef.default.createElement("div",{className:this.getYearContainerClassNames()},ef.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},r}(n.Component);function tD(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=D.getYear(n)<=a),r&&s&&(s=D.getYear(r)>=a),s&&i.push(a)}return i}var tR,tL=function(e){function r(t){var r=e.call(this,t)||this;r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map(function(t){return ef.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(r,t),"aria-selected":e===t?"true":void 0},e===t?ef.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=r.props.minDate?D.getYear(r.props.minDate):null,i=r.props.maxDate?D.getYear(r.props.maxDate):null;return i&&r.state.yearsList.find(function(e){return e===i})||t.unshift(ef.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},ef.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find(function(e){return e===n})||t.push(ef.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},ef.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map(function(t){return t+e});r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=t.yearDropdownItemNumber,o=t.scrollableYearDropdown,a=i||(o?10:5);return r.state={yearsList:tD(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=n.createRef(),r}return eg(r,e),r.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},r.prototype.render=function(){var e=t.clsx({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ef.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())},r}(n.Component),tk=ep.default(tL),tM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?D.getYear(t.props.minDate):1900,n=t.props.maxDate?D.getYear(t.props.maxDate):2100,r=[],i=e;i<=n;i++)r.push(ef.default.createElement("option",{key:i,value:i},i));return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return ef.default.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return ef.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},ef.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),ef.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return ef.default.createElement(tk,ev({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)})},t.handleYearChange=function(e,n){t.onSelect(e,n),t.setOpen()},t.onSelect=function(e,n){t.props.onSelect&&t.props.onSelect(e,n)},t.setOpen=function(){t.props.setOpen&&t.props.setOpen(!0)},t}return eg(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ef.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),tP=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],tN=function(e){function r(o){var a=e.call(this,o)||this;return a.monthContainer=void 0,a.handleClickOutside=function(e){a.props.onClickOutside(e)},a.setClickOutsideRef=function(){return a.containerRef.current},a.handleDropdownFocus=function(e){var t,n,r;r=(e.target.className||"").split(/\s+/),tP.some(function(e){return r.indexOf(e)>=0})&&(null===(n=(t=a.props).onDropdownFocus)||void 0===n||n.call(t,e))},a.getDateInView=function(){var e=a.props,t=e.preSelection,n=e.selected,r=e.openToDate,i=e7(a.props),o=te(a.props),s=eT();return r||n||t||(i&&L.isBefore(s,i)?i:o&&R.isAfter(s,o)?o:s)},a.increaseMonth=function(){a.setState(function(e){var t=e.date;return{date:s.addMonths(t,1)}},function(){return a.handleMonthChange(a.state.date)})},a.decreaseMonth=function(){a.setState(function(e){var t=e.date;return{date:ei.subMonths(t,1)}},function(){return a.handleMonthChange(a.state.date)})},a.handleDayClick=function(e,t,n){a.props.onSelect(e,t,n),a.props.setPreSelection&&a.props.setPreSelection(e)},a.handleDayMouseEnter=function(e){a.setState({selectingDate:e}),a.props.onDayMouseEnter&&a.props.onDayMouseEnter(e)},a.handleMonthMouseLeave=function(){a.setState({selectingDate:void 0}),a.props.onMonthMouseLeave&&a.props.onMonthMouseLeave()},a.handleYearMouseEnter=function(e,t){a.setState({selectingDate:X.setYear(eT(),t)}),a.props.onYearMouseEnter&&a.props.onYearMouseEnter(e,t)},a.handleYearMouseLeave=function(e,t){a.props.onYearMouseLeave&&a.props.onYearMouseLeave(e,t)},a.handleYearChange=function(e){a.props.onYearChange&&(a.props.onYearChange(e),a.setState({isRenderAriaLiveMessage:!0})),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(e),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(e)},a.handleMonthChange=function(e){a.handleCustomMonthChange(e),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(e),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(e)},a.handleCustomMonthChange=function(e){a.props.onMonthChange&&(a.props.onMonthChange(e),a.setState({isRenderAriaLiveMessage:!0}))},a.handleMonthYearChange=function(e){a.handleYearChange(e),a.handleMonthChange(e)},a.changeYear=function(e){a.setState(function(t){var n=t.date;return{date:X.setYear(n,Number(e))}},function(){return a.handleYearChange(a.state.date)})},a.changeMonth=function(e){a.setState(function(t){var n=t.date;return{date:Y.setMonth(n,Number(e))}},function(){return a.handleMonthChange(a.state.date)})},a.changeMonthYear=function(e){a.setState(function(t){var n=t.date;return{date:X.setYear(Y.setMonth(n,I.getMonth(e)),D.getYear(e))}},function(){return a.handleMonthYearChange(a.state.date)})},a.header=function(e){void 0===e&&(e=a.state.date);var n=eD(e,a.props.locale,a.props.calendarStartDay),r=[];return a.props.showWeekNumbers&&r.push(ef.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},a.props.weekLabel||"#")),r.concat([0,1,2,3,4,5,6].map(function(e){var r=i.addDays(n,e),o=a.formatWeekday(r,a.props.locale),s=a.props.weekDayClassName?a.props.weekDayClassName(r):void 0;return ef.default.createElement("div",{key:e,"aria-label":eI(r,"EEEE",a.props.locale),className:t.clsx("react-datepicker__day-name",s)},o)}))},a.formatWeekday=function(e,t){return a.props.formatWeekDay?function(e,t,n){return t(eI(e,"EEEE",n))}(e,a.props.formatWeekDay,t):a.props.useWeekdaysShort?function(e,t){return eI(e,"EEE",t)}(e,t):function(e,t){return eI(e,"EEEEEE",t)}(e,t)},a.decreaseYear=function(){a.setState(function(e){var t,n=e.date;return{date:es.subYears(n,a.props.showYearPicker?null!==(t=a.props.yearItemNumber)&&void 0!==t?t:r.defaultProps.yearItemNumber:1)}},function(){return a.handleYearChange(a.state.date)})},a.clearSelectingDate=function(){a.setState({selectingDate:void 0})},a.renderPreviousButton=function(){if(!a.props.renderCustomHeader){switch(!0){case a.props.showMonthYearPicker:t=e9(a.state.date,a.props);break;case a.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.yearItemNumber,o=void 0===i?ew:i,a=to(eL(es.subYears(e,o)),o).endPeriod,s=r&&D.getYear(r);return s&&s>a||!1}(a.state.date,a.props);break;case a.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,o=en.startOfYear(e),a=eo.subQuarters(o,1);return r&&h.differenceInCalendarQuarters(r,a)>0||i&&i.every(function(e){return h.differenceInCalendarQuarters(e,a)>0})||!1}(a.state.date,a.props);break;default:t=e5(a.state.date,a.props)}if(((null!==(e=a.props.forceShowMonthNavigation)&&void 0!==e?e:r.defaultProps.forceShowMonthNavigation)||a.props.showDisabledMonthNavigation||!t)&&!a.props.showTimeSelectOnly){var e,t,n=["react-datepicker__navigation","react-datepicker__navigation--previous"],i=a.decreaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(i=a.decreaseYear),t&&a.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--previous--disabled"),i=void 0);var o=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,s=a.props,l=s.previousMonthButtonLabel,u=void 0===l?r.defaultProps.previousMonthButtonLabel:l,c=s.previousYearButtonLabel,d=void 0===c?r.defaultProps.previousYearButtonLabel:c,f=a.props,p=f.previousMonthAriaLabel,m=void 0===p?"string"==typeof u?u:"Previous Month":p,g=f.previousYearAriaLabel,v=void 0===g?"string"==typeof d?d:"Previous Year":g;return ef.default.createElement("button",{type:"button",className:n.join(" "),onClick:i,onKeyDown:a.props.handleOnKeyDown,"aria-label":o?v:m},ef.default.createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous"},o?d:u))}}},a.increaseYear=function(){a.setState(function(e){var t,n=e.date;return{date:d.addYears(n,a.props.showYearPicker?null!==(t=a.props.yearItemNumber)&&void 0!==t?t:r.defaultProps.yearItemNumber:1)}},function(){return a.handleYearChange(a.state.date)})},a.renderNextButton=function(){if(!a.props.renderCustomHeader){switch(!0){case a.props.showMonthYearPicker:t=e8(a.state.date,a.props);break;case a.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.yearItemNumber,o=void 0===i?ew:i,a=to(d.addYears(e,o),o).startPeriod,s=r&&D.getYear(r);return s&&s<a||!1}(a.state.date,a.props);break;case a.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,o=b.endOfYear(e),a=l.addQuarters(o,1);return r&&h.differenceInCalendarQuarters(a,r)>0||i&&i.every(function(e){return h.differenceInCalendarQuarters(a,e)>0})||!1}(a.state.date,a.props);break;default:t=e6(a.state.date,a.props)}if(((null!==(e=a.props.forceShowMonthNavigation)&&void 0!==e?e:r.defaultProps.forceShowMonthNavigation)||a.props.showDisabledMonthNavigation||!t)&&!a.props.showTimeSelectOnly){var e,t,n=["react-datepicker__navigation","react-datepicker__navigation--next"];a.props.showTimeSelect&&n.push("react-datepicker__navigation--next--with-time"),a.props.todayButton&&n.push("react-datepicker__navigation--next--with-today-button");var i=a.increaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(i=a.increaseYear),t&&a.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--next--disabled"),i=void 0);var o=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,s=a.props,u=s.nextMonthButtonLabel,c=void 0===u?r.defaultProps.nextMonthButtonLabel:u,f=s.nextYearButtonLabel,p=void 0===f?r.defaultProps.nextYearButtonLabel:f,m=a.props,g=m.nextMonthAriaLabel,v=void 0===g?"string"==typeof c?c:"Next Month":g,y=m.nextYearAriaLabel,_=void 0===y?"string"==typeof p?p:"Next Year":y;return ef.default.createElement("button",{type:"button",className:n.join(" "),onClick:i,onKeyDown:a.props.handleOnKeyDown,"aria-label":o?_:v},ef.default.createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--next"},o?p:c))}}},a.renderCurrentMonth=function(e){void 0===e&&(e=a.state.date);var t=["react-datepicker__current-month"];return a.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),a.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),a.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ef.default.createElement("h2",{className:t.join(" ")},eI(e,a.props.dateFormat,a.props.locale))},a.renderYearDropdown=function(e){if(void 0===e&&(e=!1),a.props.showYearDropdown&&!e)return ef.default.createElement(tM,ev({},r.defaultProps,a.props,{date:a.state.date,onChange:a.changeYear,year:D.getYear(a.state.date)}))},a.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),a.props.showMonthDropdown&&!e)return ef.default.createElement(tS,ev({},r.defaultProps,a.props,{month:I.getMonth(a.state.date),onChange:a.changeMonth}))},a.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),a.props.showMonthYearDropdown&&!e)return ef.default.createElement(tA,ev({},r.defaultProps,a.props,{date:a.state.date,onChange:a.changeMonthYear}))},a.handleTodayButtonClick=function(e){a.props.onSelect(eM(),e),a.props.setPreSelection&&a.props.setPreSelection(eM())},a.renderTodayButton=function(){if(a.props.todayButton&&!a.props.showTimeSelectOnly)return ef.default.createElement("div",{className:"react-datepicker__today-button",onClick:a.handleTodayButtonClick},a.props.todayButton)},a.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return ef.default.createElement("div",{className:"react-datepicker__header ".concat(a.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},a.renderCurrentMonth(t),ef.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(a.props.dropdownMode),onFocus:a.handleDropdownFocus},a.renderMonthDropdown(0!==n),a.renderMonthYearDropdown(0!==n),a.renderYearDropdown(0!==n)),ef.default.createElement("div",{className:"react-datepicker__day-names"},a.header(t)))},a.renderCustomHeader=function(e){var t,n,r=e.monthDate,i=e.i;if(a.props.showTimeSelect&&!a.state.monthContainer||a.props.showTimeSelectOnly)return null;var o=e5(a.state.date,a.props),s=e6(a.state.date,a.props),l=e9(a.state.date,a.props),u=e8(a.state.date,a.props),c=!a.props.showMonthYearPicker&&!a.props.showQuarterYearPicker&&!a.props.showYearPicker;return ef.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:a.props.onDropdownFocus},null===(n=(t=a.props).renderCustomHeader)||void 0===n?void 0:n.call(t,ev(ev({},a.state),{customHeaderCount:i,monthDate:r,changeMonth:a.changeMonth,changeYear:a.changeYear,decreaseMonth:a.decreaseMonth,increaseMonth:a.increaseMonth,decreaseYear:a.decreaseYear,increaseYear:a.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:s,prevYearButtonDisabled:l,nextYearButtonDisabled:u})),c&&ef.default.createElement("div",{className:"react-datepicker__day-names"},a.header(r)))},a.renderYearHeader=function(e){var t=e.monthDate,n=a.props,i=n.showYearPicker,o=n.yearItemNumber,s=to(t,void 0===o?r.defaultProps.yearItemNumber:o),l=s.startPeriod,u=s.endPeriod;return ef.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},i?"".concat(l," - ").concat(u):D.getYear(t))},a.renderHeader=function(e){var t=e.monthDate,n=e.i,r={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==a.props.renderCustomHeader:return a.renderCustomHeader(r);case a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker:return a.renderYearHeader(r);default:return a.renderDefaultHeader(r)}},a.renderMonths=function(){var e,t;if(!a.props.showTimeSelectOnly&&!a.props.showYearPicker){for(var n=[],i=null!==(e=a.props.monthsShown)&&void 0!==e?e:r.defaultProps.monthsShown,o=a.props.showPreviousMonths?i-1:0,l=a.props.showMonthYearPicker||a.props.showQuarterYearPicker?d.addYears(a.state.date,o):ei.subMonths(a.state.date,o),u=null!==(t=a.props.monthSelectedIn)&&void 0!==t?t:o,c=0;c<i;++c){var f=c-u+o,p=a.props.showMonthYearPicker||a.props.showQuarterYearPicker?d.addYears(l,f):s.addMonths(l,f),h="month-".concat(c),m=c<i-1,g=c>0;n.push(ef.default.createElement("div",{key:h,ref:function(e){a.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},a.renderHeader({monthDate:p,i:c}),ef.default.createElement(t_,ev({},r.defaultProps,a.props,{ariaLabelPrefix:a.props.monthAriaLabelPrefix,day:p,onDayClick:a.handleDayClick,handleOnKeyDown:a.props.handleOnDayKeyDown,handleOnMonthKeyDown:a.props.handleOnKeyDown,onDayMouseEnter:a.handleDayMouseEnter,onMouseLeave:a.handleMonthMouseLeave,orderInDisplay:c,selectingDate:a.state.selectingDate,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:g}))))}return n}},a.renderYears=function(){if(!a.props.showTimeSelectOnly)return a.props.showYearPicker?ef.default.createElement("div",{className:"react-datepicker__year--container"},a.renderHeader({monthDate:a.state.date}),ef.default.createElement(tx,ev({},r.defaultProps,a.props,{selectingDate:a.state.selectingDate,date:a.state.date,onDayClick:a.handleDayClick,clearSelectingDate:a.clearSelectingDate,onYearMouseEnter:a.handleYearMouseEnter,onYearMouseLeave:a.handleYearMouseLeave}))):void 0},a.renderTimeSection=function(){if(a.props.showTimeSelect&&(a.state.monthContainer||a.props.showTimeSelectOnly))return ef.default.createElement(tC,ev({},r.defaultProps,a.props,{onChange:a.props.onTimeChange,format:a.props.timeFormat,intervals:a.props.timeIntervals,monthRef:a.state.monthContainer}))},a.renderInputTimeSection=function(){var e=a.props.selected?new Date(a.props.selected):void 0,t=e&&eO(e)&&a.props.selected?"".concat(ti(e.getHours()),":").concat(ti(e.getMinutes())):"";if(a.props.showTimeInput)return ef.default.createElement(td,ev({},r.defaultProps,a.props,{date:e,timeString:t,onChange:a.props.onTimeChange}))},a.renderAriaLiveRegion=function(){var e,t,n=to(a.state.date,null!==(e=a.props.yearItemNumber)&&void 0!==e?e:r.defaultProps.yearItemNumber),i=n.startPeriod,o=n.endPeriod;return t=a.props.showYearPicker?"".concat(i," - ").concat(o):a.props.showMonthYearPicker||a.props.showQuarterYearPicker?D.getYear(a.state.date):"".concat(eZ(I.getMonth(a.state.date),a.props.locale)," ").concat(D.getYear(a.state.date)),ef.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},a.state.isRenderAriaLiveMessage&&t)},a.renderChildren=function(){if(a.props.children)return ef.default.createElement("div",{className:"react-datepicker__children-container"},a.props.children)},a.containerRef=n.createRef(),a.state={date:a.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},a}return eg(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:ew}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},r.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||eU(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!eU(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!eF(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return n&&t.handleCustomMonthChange(t.state.date)})}},r.prototype.render=function(){var e=this.props.container||e_;return ef.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},ef.default.createElement(e,{className:t.clsx("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},r}(n.Component),tF=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return"string"==typeof t?ef.default.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):ef.default.isValidElement(t)?ef.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof i&&i(e)}}):ef.default.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},ef.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},tB=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return eg(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return eh.default.createPortal(this.props.children,this.el)},t}(n.Component),tU=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},tH=function(e){function t(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=r.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(tU)},r.handleFocusStart=function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},r.handleFocusEnd=function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()},r.tabLoopRef=n.createRef(),r}return eg(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?ef.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ef.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,ef.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(n.Component),tj=(tR=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return eg(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e=this.props,i=e.className,o=e.wrapperClassName,a=e.hidePopper,s=void 0===a?r.defaultProps.hidePopper:a,l=e.popperComponent,u=e.targetComponent,c=e.enableTabLoop,d=e.popperOnKeyDown,f=e.portalId,p=e.portalHost,h=e.popperProps,m=e.showArrow,g=void 0;if(!s){var v=t.clsx("react-datepicker-popper",i);g=ef.default.createElement(tH,{enableTabLoop:c},ef.default.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:v,"data-placement":h.placement,onKeyDown:d},l,m&&ef.default.createElement(eu.FloatingArrow,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=n.createElement(this.props.popperContainer,{},g)),f&&!s&&(g=ef.default.createElement(tB,{portalId:f,portalHost:p},g));var y=t.clsx("react-datepicker-wrapper",o);return ef.default.createElement(ef.default.Fragment,null,ef.default.createElement("div",{ref:h.refs.setReference,className:y},u),g)},r}(n.Component),function(e){var t,r="boolean"!=typeof e.hidePopper||e.hidePopper,i=n.useRef(null),o=eu.useFloating(ev({open:!r,whileElementsMounted:eu.autoUpdate,placement:e.popperPlacement,middleware:ey([eu.flip({padding:15}),eu.offset(10),eu.arrow({element:i})],null!==(t=e.popperModifiers)&&void 0!==t?t:[],!0)},e.popperProps)),a=ev(ev({},e),{hidePopper:r,popperProps:ev(ev({},o),{arrowRef:i})});return ef.default.createElement(tR,ev({},a))}),tV="react-datepicker-ignore-onclickoutside",tz=ep.default(tN),tZ="Date input not valid.",tG=function(e){function r(o){var a=e.call(this,o)||this;return a.calendar=null,a.input=null,a.getPreSelection=function(){return a.props.openToDate?a.props.openToDate:a.props.selectsEnd&&a.props.startDate?a.props.startDate:a.props.selectsStart&&a.props.endDate?a.props.endDate:eT()},a.modifyHolidays=function(){var e;return null===(e=a.props.holidays)||void 0===e?void 0:e.reduce(function(e,t){var n=new Date(t.date);return eO(n)?ey(ey([],e,!0),[ev(ev({},t),{date:n})],!1):e},[])},a.calcInitialState=function(){var e,t=a.getPreSelection(),n=e7(a.props),r=te(a.props),i=n&&L.isBefore(t,ex(n))?n:r&&R.isAfter(t,eP(r))?r:t;return{open:a.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==(e=a.props.selectsRange?a.props.startDate:a.props.selected)&&void 0!==e?e:i,highlightDates:tt(a.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},a.resetHiddenStatus=function(){a.setState(ev(ev({},a.state),{wasHidden:!1}))},a.setHiddenStatus=function(){a.setState(ev(ev({},a.state),{wasHidden:!0}))},a.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&a.setHiddenStatus()},a.clearPreventFocusTimeout=function(){a.preventFocusTimeout&&clearTimeout(a.preventFocusTimeout)},a.setFocus=function(){a.input&&a.input.focus&&a.input.focus({preventScroll:!0})},a.setBlur=function(){a.input&&a.input.blur&&a.input.blur(),a.cancelFocusInput()},a.setOpen=function(e,t){void 0===t&&(t=!1),a.setState({open:e,preSelection:e&&a.state.open?a.state.preSelection:a.calcInitialState().preSelection,lastPreSelectChange:tq},function(){e||a.setState(function(e){return{focused:!!t&&e.focused}},function(){t||a.setBlur(),a.setState({inputValue:null})})})},a.inputOk=function(){return k.isDate(a.state.preSelection)},a.isCalendarOpen=function(){return void 0===a.props.open?a.state.open&&!a.props.disabled&&!a.props.readOnly:a.props.open},a.handleFocus=function(e){var t,n,r=a.state.wasHidden,i=!r||a.state.open;r&&a.resetHiddenStatus(),!a.state.preventFocus&&i&&(null===(n=(t=a.props).onFocus)||void 0===n||n.call(t,e),a.props.preventOpenOnFocus||a.props.readOnly||a.setOpen(!0)),a.setState({focused:!0})},a.sendFocusBackToInput=function(){a.preventFocusTimeout&&a.clearPreventFocusTimeout(),a.setState({preventFocus:!0},function(){a.preventFocusTimeout=setTimeout(function(){a.setFocus(),a.setState({preventFocus:!1})})})},a.cancelFocusInput=function(){clearTimeout(a.inputFocusTimeout),a.inputFocusTimeout=void 0},a.deferFocusInput=function(){a.cancelFocusInput(),a.inputFocusTimeout=setTimeout(function(){return a.setFocus()},1)},a.handleDropdownFocus=function(){a.cancelFocusInput()},a.handleBlur=function(e){var t,n;(!a.state.open||a.props.withPortal||a.props.showTimeInput)&&(null===(n=(t=a.props).onBlur)||void 0===n||n.call(t,e)),a.setState({focused:!1})},a.handleCalendarClickOutside=function(e){var t,n;a.props.inline||a.setOpen(!1),null===(n=(t=a.props).onClickOutside)||void 0===n||n.call(t,e),a.props.withPortal&&e.preventDefault()},a.handleChange=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0];if(!a.props.onChangeRaw||(a.props.onChangeRaw.apply(a,e),n&&"function"==typeof n.isDefaultPrevented&&!n.isDefaultPrevented())){a.setState({inputValue:(null==n?void 0:n.target)instanceof HTMLInputElement?n.target.value:null,lastPreSelectChange:tW});var i=a.props,o=i.dateFormat,s=void 0===o?r.defaultProps.dateFormat:o,l=i.strictParsing,u=void 0===l?r.defaultProps.strictParsing:l,c=function(e,t,n,r,i){var o,a=null,s=ez(n)||ez(eV()),l=!0;if(Array.isArray(t))return t.forEach(function(t){var o=z.parse(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(l=eO(o,i)&&e===eI(o,t,n)),eO(o,i)&&l&&(a=o)}),a;if(a=z.parse(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)l=eO(a)&&e===eI(a,t,n);else if(!eO(a)){var u=(null!==(o=t.match(eS))&&void 0!==o?o:[]).map(function(e){var t=e[0];if("p"===t||"P"===t){var n=_.longFormatters[t];return s?n(e,s.formatLong):t}return e}).join("");e.length>0&&(a=z.parse(e,u.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),eO(a)||(a=new Date(e))}return eO(a)&&l?a:null}((null==n?void 0:n.target)instanceof HTMLInputElement?n.target.value:"",s,a.props.locale,u,a.props.minDate);a.props.showTimeSelectOnly&&a.props.selected&&c&&!eU(c,a.props.selected)&&(c=G.set(a.props.selected,{hours:S.getHours(c),minutes:O.getMinutes(c),seconds:C.getSeconds(c)})),!c&&(null==n?void 0:n.target)instanceof HTMLInputElement&&(null==n?void 0:n.target.value)||a.setSelected(c,n,!0)}},a.handleSelect=function(e,t,n){if(a.props.shouldCloseOnSelect&&!a.props.showTimeSelect&&a.sendFocusBackToInput(),a.props.onChangeRaw&&a.props.onChangeRaw(t),a.setSelected(e,t,!1,n),a.props.showDateSelect&&a.setState({isRenderAriaLiveMessage:!0}),!a.props.shouldCloseOnSelect||a.props.showTimeSelect)a.setPreSelection(e);else if(!a.props.inline){a.props.selectsRange||a.setOpen(!1);var r=a.props,i=r.startDate,o=r.endDate;!i||o||!a.props.swapRange&&tl(e,i)||a.setOpen(!1)}},a.setSelected=function(e,t,n,i){var o,s=e;if(a.props.showYearPicker){if(null!==s&&eJ(D.getYear(s),a.props))return}else if(a.props.showMonthYearPicker){if(null!==s&&eY(s,a.props))return}else if(null!==s&&eW(s,a.props))return;var l=a.props,u=l.onChange,c=l.selectsRange,d=l.startDate,f=l.endDate,p=l.selectsMultiple,h=l.selectedDates,m=l.minTime,g=l.swapRange;if(!eH(a.props.selected,s)||a.props.allowSameDay||c||p){if(null!==s&&(!a.props.selected||n&&(a.props.showTimeSelect||a.props.showTimeSelectOnly||a.props.showTimeInput)||(s=eC(s,{hour:S.getHours(a.props.selected),minute:O.getMinutes(a.props.selected),second:C.getSeconds(a.props.selected)})),n||!a.props.showTimeSelect&&!a.props.showTimeSelectOnly||m&&(s=eC(s,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),a.props.inline||a.setState({preSelection:s}),a.props.focusSelectedMonth||a.setState({monthSelectedIn:i})),c){var v=d&&!f,y=d&&f;d||f?v&&(null===s?u?u([null,null],t):r.defaultProps.onChange:tl(s,d)?g?u?u([s,d],t):r.defaultProps.onChange:u?u([s,null],t):r.defaultProps.onChange:u?u([d,s],t):r.defaultProps.onChange):u?u([s,null],t):r.defaultProps.onChange,y&&(u?u([s,null],t):r.defaultProps.onChange)}else if(p){if(null!==s){if(null==h?void 0:h.length){if(h.some(function(e){return eU(e,s)})){var b=h.filter(function(e){return!eU(e,s)});u?u(b,t):r.defaultProps.onChange}else u?u(ey(ey([],h,!0),[s],!1),t):r.defaultProps.onChange}else u?u([s],t):r.defaultProps.onChange}}else u?u(s,t):r.defaultProps.onChange}n||((null!==(o=a.props.onSelect)&&void 0!==o?o:r.defaultProps.onSelect)(s,t),a.setState({inputValue:null}))},a.setPreSelection=function(e){var t=k.isDate(a.props.minDate),n=k.isDate(a.props.maxDate),r=!0;if(e){var i=ex(e);if(t&&n)r=ej(e,a.props.minDate,a.props.maxDate);else if(t){var o=ex(a.props.minDate);r=R.isAfter(e,o)||eH(i,o)}else if(n){var s=eP(a.props.maxDate);r=L.isBefore(e,s)||eH(i,s)}}r&&a.setState({preSelection:e})},a.toggleCalendar=function(){a.setOpen(!a.state.open)},a.handleTimeChange=function(e){var t;if(!a.props.selectsRange&&!a.props.selectsMultiple){var n=a.props.selected?a.props.selected:a.getPreSelection(),i=a.props.selected?e:eC(n,{hour:S.getHours(e),minute:O.getMinutes(e)});a.setState({preSelection:i}),(null!==(t=a.props.onChange)&&void 0!==t?t:r.defaultProps.onChange)(i),a.props.shouldCloseOnSelect&&!a.props.showTimeInput&&(a.sendFocusBackToInput(),a.setOpen(!1)),a.props.showTimeInput&&a.setOpen(!0),(a.props.showTimeSelectOnly||a.props.showTimeSelect)&&a.setState({isRenderAriaLiveMessage:!0}),a.setState({inputValue:null})}},a.onInputClick=function(){var e,t;a.props.disabled||a.props.readOnly||a.setOpen(!0),null===(t=(e=a.props).onInputClick)||void 0===t||t.call(e)},a.onInputKeyDown=function(e){null===(n=(t=a.props).onKeyDown)||void 0===n||n.call(t,e);var t,n,r,i,o,s=e.key;if(a.state.open||a.props.inline||a.props.preventOpenOnFocus){if(a.state.open){if(s===eb.ArrowDown||s===eb.ArrowUp){e.preventDefault();var l=a.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":a.props.showWeekPicker&&a.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':a.props.showFullMonthYearPicker||a.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=(null===(r=a.calendar)||void 0===r?void 0:r.componentNode)instanceof Element&&a.calendar.componentNode.querySelector(l);return void(u instanceof HTMLElement&&u.focus({preventScroll:!0}))}var c=eT(a.state.preSelection);s===eb.Enter?(e.preventDefault(),a.inputOk()&&a.state.lastPreSelectChange===tq?(a.handleSelect(c,e),a.props.shouldCloseOnSelect||a.setPreSelection(c)):a.setOpen(!1)):s===eb.Escape?(e.preventDefault(),a.sendFocusBackToInput(),a.setOpen(!1)):s===eb.Tab&&a.setOpen(!1),a.inputOk()||null===(o=(i=a.props).onInputError)||void 0===o||o.call(i,{code:1,msg:tZ})}}else s!==eb.ArrowDown&&s!==eb.ArrowUp&&s!==eb.Enter||a.onInputClick()},a.onPortalKeyDown=function(e){e.key===eb.Escape&&(e.preventDefault(),a.setState({preventFocus:!0},function(){a.setOpen(!1),setTimeout(function(){a.setFocus(),a.setState({preventFocus:!1})})}))},a.onDayKeyDown=function(e){var t,n,r,o,l=a.props,u=l.minDate,f=l.maxDate,p=l.disabledKeyboardNavigation,h=l.showWeekPicker,m=l.shouldCloseOnSelect,g=l.locale,v=l.calendarStartDay,b=l.adjustDateOnChange,_=l.inline;if(null===(n=(t=a.props).onKeyDown)||void 0===n||n.call(t,e),!p){var E=e.key,w=e.shiftKey,S=eT(a.state.preSelection),T=function(e,t){var n=t;switch(e){case eb.ArrowRight:n=h?c.addWeeks(t,1):i.addDays(t,1);break;case eb.ArrowLeft:n=h?ea.subWeeks(t,1):er.subDays(t,1);break;case eb.ArrowUp:n=ea.subWeeks(t,1);break;case eb.ArrowDown:n=c.addWeeks(t,1);break;case eb.PageUp:n=w?es.subYears(t,1):ei.subMonths(t,1);break;case eb.PageDown:n=w?d.addYears(t,1):s.addMonths(t,1);break;case eb.Home:n=eD(t,g,v);break;case eb.End:n=function(e){return y.endOfWeek(e)}(t)}return n};if(E===eb.Enter)return e.preventDefault(),a.handleSelect(S,e),void(m||a.setPreSelection(S));if(E===eb.Escape)return e.preventDefault(),a.setOpen(!1),void(a.inputOk()||null===(o=(r=a.props).onInputError)||void 0===o||o.call(r,{code:1,msg:tZ}));var O=null;switch(E){case eb.ArrowLeft:case eb.ArrowRight:case eb.ArrowUp:case eb.ArrowDown:case eb.PageUp:case eb.PageDown:case eb.Home:case eb.End:O=function(e,t){for(var n=e,r=!1,i=0,o=T(e,t);!r;){if(i>=40){o=t;break}u&&o<u&&(n=eb.ArrowRight,o=eW(u,a.props)?T(n,o):u),f&&o>f&&(n=eb.ArrowLeft,o=eW(f,a.props)?T(n,o):f),eW(o,a.props)?(n!==eb.PageUp&&n!==eb.Home||(n=eb.ArrowRight),n!==eb.PageDown&&n!==eb.End||(n=eb.ArrowLeft),o=T(n,o)):r=!0,i++}return o}(E,S)}if(O){if(e.preventDefault(),a.setState({lastPreSelectChange:tq}),b&&a.setSelected(O),a.setPreSelection(O),_){var A=I.getMonth(S),C=I.getMonth(O),x=D.getYear(S),R=D.getYear(O);A!==C||x!==R?a.setState({shouldFocusDayInline:!0}):a.setState({shouldFocusDayInline:!1})}}else a.props.onInputError&&a.props.onInputError({code:1,msg:tZ})}},a.onPopperKeyDown=function(e){e.key===eb.Escape&&(e.preventDefault(),a.sendFocusBackToInput())},a.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),a.sendFocusBackToInput();var t=a.props,n=t.selectsRange,i=t.onChange;n?i?i([null,null],e):r.defaultProps.onChange():i?i(null,e):r.defaultProps.onChange(),a.setState({inputValue:null})},a.clear=function(){a.onClearClick()},a.onScroll=function(e){"boolean"==typeof a.props.closeOnScroll&&a.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||a.setOpen(!1):"function"==typeof a.props.closeOnScroll&&a.props.closeOnScroll(e)&&a.setOpen(!1)},a.renderCalendar=function(){var e,t;return a.props.inline||a.isCalendarOpen()?ef.default.createElement(tz,ev({ref:function(e){a.calendar=e}},a.props,a.state,{setOpen:a.setOpen,dateFormat:null!==(e=a.props.dateFormatCalendar)&&void 0!==e?e:r.defaultProps.dateFormatCalendar,onSelect:a.handleSelect,onClickOutside:a.handleCalendarClickOutside,holidays:tn(a.modifyHolidays()),outsideClickIgnoreClass:tV,onDropdownFocus:a.handleDropdownFocus,onTimeChange:a.handleTimeChange,className:a.props.calendarClassName,container:a.props.calendarContainer,handleOnKeyDown:a.props.onKeyDown,handleOnDayKeyDown:a.onDayKeyDown,setPreSelection:a.setPreSelection,dropdownMode:null!==(t=a.props.dropdownMode)&&void 0!==t?t:r.defaultProps.dropdownMode}),a.props.children):null},a.renderAriaLiveRegion=function(){var e,t=a.props,n=t.dateFormat,i=void 0===n?r.defaultProps.dateFormat:n,o=t.locale,s=a.props.showTimeInput||a.props.showTimeSelect?"PPPPp":"PPPP";return e=a.props.selectsRange?"Selected start date: ".concat(eA(a.props.startDate,{dateFormat:s,locale:o}),". ").concat(a.props.endDate?"End date: "+eA(a.props.endDate,{dateFormat:s,locale:o}):""):a.props.showTimeSelectOnly?"Selected time: ".concat(eA(a.props.selected,{dateFormat:i,locale:o})):a.props.showYearPicker?"Selected year: ".concat(eA(a.props.selected,{dateFormat:"yyyy",locale:o})):a.props.showMonthYearPicker?"Selected month: ".concat(eA(a.props.selected,{dateFormat:"MMMM yyyy",locale:o})):a.props.showQuarterYearPicker?"Selected quarter: ".concat(eA(a.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(eA(a.props.selected,{dateFormat:s,locale:o})),ef.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},a.renderDateInput=function(){var e,i,o,s=t.clsx(a.props.className,((e={})[tV]=a.state.open,e)),l=a.props.customInput||ef.default.createElement("input",{type:"text"}),u=a.props.customInputRef||"ref",c=a.props,d=c.dateFormat,f=void 0===d?r.defaultProps.dateFormat:d,p=c.locale,h="string"==typeof a.props.value?a.props.value:"string"==typeof a.state.inputValue?a.state.inputValue:a.props.selectsRange?function(e,t,n){if(!e)return"";var r=eA(e,n),i=t?eA(t,n):"";return"".concat(r," - ").concat(i)}(a.props.startDate,a.props.endDate,{dateFormat:f,locale:p}):a.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?eA(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var r=eA(e[1],t);return"".concat(n,", ").concat(r)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}(null!==(o=a.props.selectedDates)&&void 0!==o?o:[],{dateFormat:f,locale:p}):eA(a.props.selected,{dateFormat:f,locale:p});return n.cloneElement(l,((i={})[u]=function(e){a.input=e},i.value=h,i.onBlur=a.handleBlur,i.onChange=a.handleChange,i.onClick=a.onInputClick,i.onFocus=a.handleFocus,i.onKeyDown=a.onInputKeyDown,i.id=a.props.id,i.name=a.props.name,i.form=a.props.form,i.autoFocus=a.props.autoFocus,i.placeholder=a.props.placeholderText,i.disabled=a.props.disabled,i.autoComplete=a.props.autoComplete,i.className=t.clsx(l.props.className,s),i.title=a.props.title,i.readOnly=a.props.readOnly,i.required=a.props.required,i.tabIndex=a.props.tabIndex,i["aria-describedby"]=a.props.ariaDescribedBy,i["aria-invalid"]=a.props.ariaInvalid,i["aria-labelledby"]=a.props.ariaLabelledBy,i["aria-required"]=a.props.ariaRequired,i))},a.renderClearButton=function(){var e=a.props,n=e.isClearable,r=e.disabled,i=e.selected,o=e.startDate,s=e.endDate,l=e.clearButtonTitle,u=e.clearButtonClassName,c=void 0===u?"":u,d=e.ariaLabelClose,f=void 0===d?"Close":d,p=e.selectedDates;return n&&(null!=i||null!=o||null!=s||(null==p?void 0:p.length))?ef.default.createElement("button",{type:"button",className:t.clsx("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":r}),disabled:r,"aria-label":f,onClick:a.onClearClick,title:l,tabIndex:-1}):null},a.state=a.calcInitialState(),a.preventFocusTimeout=void 0,a}return eg(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:ew,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(e,t){var n,r,i,o,a,s;e.inline&&(a=e.selected,s=this.props.selected,a&&s?I.getMonth(a)!==I.getMonth(s)||D.getYear(a)!==D.getYear(s):a!==s)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:tt(this.props.highlightDates)}),t.focused||eH(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(r=(n=this.props).onCalendarOpen)||void 0===r||r.call(n)),!0===t.open&&!1===this.state.open&&(null===(o=(i=this.props).onCalendarClose)||void 0===o||o.call(i)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var e=this.props,n=e.showIcon,r=e.icon,i=e.calendarIconClassname,o=e.calendarIconClassName,a=e.toggleCalendarOnIconClick,s=this.state.open;return i&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),ef.default.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&ef.default.createElement(tF,ev({icon:r,className:t.clsx(o,!o&&i,s&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ef.default.createElement(tH,{enableTabLoop:this.props.enableTabLoop},ef.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=ef.default.createElement(tB,ev({portalId:this.props.portalId},this.props),t)),ef.default.createElement("div",null,this.renderInputContainer(),t)}return ef.default.createElement(tj,ev({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r}(n.Component),tW="input",tq="navigate";e.CalendarContainer=e_,e.default=tG,e.getDefaultLocale=eV,e.registerLocale=function(e,t){var n=eE();n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){eE().__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})})}(0,e);var reactDatepicker_minExports=e,ReactDatePicker=getDefaultExportFromCjs(reactDatepicker_minExports),dayjs_min={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(0,function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",u="month",c="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),o=n-i<0,a=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:u,y:d,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:c})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var E="$isDayjsObject",w=function(e){return e instanceof I||!(!e||!e[E])},S=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(i=o),n&&(_[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;_[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new I(n)},O=y;O.l=S,O.i=w,O.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return O},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<T(e)},v.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!O.u(t)||t,c=O.p(e),p=function(e,t){var i=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case u:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(r?v-_:v+(6-_),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case i:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=O.p(e),c="set"+(this.$u?"UTC":""),p=((n={})[s]=c+"Date",n[f]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[o]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[O.p(e)]()},v.add=function(r,c){var f,p=this;r=Number(r);var h=O.p(c),m=function(e){var t=T(p);return O.w(t.date(t.date()+Math.round(e*r)),p)};if(h===u)return this.set(u,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=((f={})[o]=t,f[a]=n,f[i]=e,f)[h]||1,v=this.$d.getTime()+r*g;return O.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return O.s(o%12||12,e,"0")},h=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return O.s(t.$y,4,"0");case"M":return s+1;case"MM":return O.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return O.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return O.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return O.s(a,2,"0");case"s":return String(t.$s);case"ss":return O.s(t.$s,2,"0");case"SSS":return O.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},v.diff=function(r,f,p){var h,m=this,g=O.p(f),v=T(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,_=function(){return O.m(m,v)};switch(g){case d:h=_()/12;break;case u:h=_();break;case c:h=_()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case o:h=b/t;break;case i:h=b/e;break;default:h=b}return p?h:O.a(h)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return O.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),A=I.prototype;return T.prototype=A,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",u],["$y",d],["$D",f]].forEach(function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),T.extend=function(e,t){return e.$i||(e(t,I,T),e.$i=!0),T},T.locale=S,T.isDayjs=w,T.unix=function(e){return T(1e3*e)},T.en=_[b],T.Ls=_,T.p={},T})}(dayjs_min);var dayjs_minExports=dayjs_min.exports,dayjs=getDefaultExportFromCjs(dayjs_minExports),customParseFormat$1={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(0,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=c(e,!1)}],a:[i,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=a.length,l=0;l<s;l+=1){var u=a[l],c=d[u],f=c&&c[0],p=c&&c[1];a[l]=p?{regex:f,parser:p}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,u=e.slice(r),c=o.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],u=!0===a[3],c=l||u,d=a[2];u&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=u||0,_=c||0;return d?new Date(Date.UTC(m,g,h,v,y,b,_+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,_)):new Date(m,g,h,v,y,b,_)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}})}(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports,customParseFormat=getDefaultExportFromCjs(customParseFormatExports),localizedFormat$1={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(0,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return o.call(this,r)}}})}(localizedFormat$1);var localizedFormatExports=localizedFormat$1.exports,localizedFormat=getDefaultExportFromCjs(localizedFormatExports),objectSupport$1={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(0,function(){return function(e,t,n){var r=t.prototype,i=function(e){var t,i=e.date,o=e.utc,a={};if(!(null===(t=i)||t instanceof Date||t instanceof Array||r.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(i).length)return new Date;var s=o?n.utc():n();Object.keys(i).forEach(function(e){var t,n;a[t=e,"date"===(n=r.$utils().p(t))?"day":n]=i[e]});var l=a.day||(a.year||a.month>=0?1:s.date()),u=a.year||s.year(),c=a.month>=0?a.month:a.year||a.day?0:s.month(),d=a.hour||0,f=a.minute||0,p=a.second||0,h=a.millisecond||0;return o?new Date(Date.UTC(u,c,l,d,f,p,h)):new Date(u,c,l,d,f,p,h)}return i},o=r.parse;r.parse=function(e){e.date=i.bind(this)(e),o.bind(this)(e)};var a=r.set,s=r.add,l=r.subtract,u=function(e,t,n,r){void 0===r&&(r=1);var i=Object.keys(t),o=this;return i.forEach(function(n){o=e.bind(o)(t[n]*r,n)}),o};r.set=function(e,t){return t=void 0===t?e:t,"Object"===e.constructor.name?u.bind(this)(function(e,t){return a.bind(this)(t,e)},t,e):a.bind(this)(e,t)},r.add=function(e,t){return"Object"===e.constructor.name?u.bind(this)(s,e,t):s.bind(this)(e,t)},r.subtract=function(e,t){return"Object"===e.constructor.name?u.bind(this)(s,e,t,-1):l.bind(this)(e,t)}}})}(objectSupport$1);var objectSupportExports=objectSupport$1.exports,objectSupport=getDefaultExportFromCjs(objectSupportExports),utc$1={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(0,function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r)))return this;var a=16>=Math.abs(r)?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}})}(utc$1);var utcExports=utc$1.exports,utc=getDefaultExportFromCjs(utcExports);function convertDateStringOfTimestampToGmtDate(e){return dayjs(1e3*e).utc(!0).unix()}dayjs.extend(customParseFormat),dayjs.extend(localizedFormat),dayjs.extend(objectSupport),dayjs.extend(utc);var timestampGmt={getDayjs:function(e){return dayjs.utc(1e3*e)},convertToLocale:function(e){return dayjs(dayjs.utc(1e3*e).format("YYYY-MM-DD HH:mm:ss"))}},timestampLocale={getDayjs:function(e){return dayjs(1e3*e)},convertToGmt:function(e){return dayjs(1e3*e).utc(!0)}},dayjsGmt={getTimestamp:function(e){return e.utc(!0).unix()},getTimestampStartOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.utc(!0).startOf(t).unix()},getTimestampEndOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.utc(!0).endOf(t).unix()}},dayjsLocale={getNowTimestamp:function(){return dayjs().unix()},getNowString:function(e){return dayjs().format(e)},getNowTimestampStartOf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day";return dayjs().startOf(e).unix()},getNowTimestampEndOf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day";return dayjs().endOf(e).unix()},getTimestamp:function(e){return e.unix()},getTimestampStartOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.startOf(t).unix()},getTimestampEndOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.endOf(t).unix()}},_excluded=["value","maxTimestamp","minTimestamp","unit","onChange"];function ownKeys$1(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 _objectSpread$1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var withDayjs=function(e,t){var n={value:PropTypes.number,unit:PropTypes.oneOf(["day","week","month","year"]),minTimestamp:PropTypes.number,maxTimestamp:PropTypes.number,onChange:PropTypes.func},r={value:void 0,unit:void 0,minTimestamp:void 0,maxTimestamp:void 0,onChange:function(e,t){}},i=function(n){var r=n.value,i=n.maxTimestamp,o=n.minTimestamp,a=n.unit,s=n.onChange,l=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__.Z)(n,_excluded),u=t?timestampGmt.convertToLocale:timestampLocale.getDayjs,c=t?dayjsGmt:dayjsLocale,d=null!=o?u(o):void 0,f=null!=i?u(i):void 0,p=null!=r?u(r):null,h=function(e){if(null==e){s(null);return}if(a){var n=t?timestampLocale.convertToGmt(e):timestampLocale.getDayjs(e);s(c.getTimestampStartOf(n,a),c.getTimestampEndOf(n,a));return}s(t?convertDateStringOfTimestampToGmtDate(e):e)};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(e,_objectSpread$1(_objectSpread$1({},l),{},{selectedMoment:p,onChange:h,minMoment:d,maxMoment:f}))};return i.propTypes=n,i.defaultProps=r,i.displayName="WithDayjs[".concat(e.displayName||e.name||"Component","]"),i};function _extends$3(){return(_extends$3=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgBtNext=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$3({xmlns:"http://www.w3.org/2000/svg",width:24,height:96},e),_g$2||(_g$2=react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"none",fillRule:"nonzero"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#555",transform:"scale(1 -1)rotate(45 26.314 3.243)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#555",opacity:.2,transform:"scale(1 -1)rotate(45 113.225 -32.757)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#444",transform:"scale(1 -1)rotate(45 55.284 -8.757)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#444",transform:"scale(1 -1)rotate(45 84.255 -20.757)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})))))};function _extends$2(){return(_extends$2=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var SvgBtPrev=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$2({xmlns:"http://www.w3.org/2000/svg",width:24,height:96},e),_g$1||(_g$1=react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"none",fillRule:"nonzero"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#555",transform:"rotate(-135 10.657 5.929)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#555",opacity:.2,transform:"rotate(-135 25.569 41.929)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#444",transform:"rotate(-135 15.627 17.929)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"#444",transform:"rotate(-135 20.598 29.929)"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:7,rx:.5}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("rect",{width:1,height:8,x:3.5,y:-3.5,rx:.5,transform:"rotate(90 4 .5)"})))))};function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():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}).apply(this,arguments)}for(var SvgIcArrowLineThinDown=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends$1({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),_path||(_path=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",fillRule:"evenodd",d:"M6.646 9.854a.5.5 0 1 1 .708-.708l4.644 4.645 4.645-4.645a.5.5 0 1 1 .707.708l-4.996 4.996a.5.5 0 0 1-.356.146.5.5 0 0 1-.355-.146z",clipRule:"evenodd"})),_path2||(_path2=react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#3E4041",d:"M0 0h24v24H0z",opacity:.01})))},DefaultMonthString=["January","February","March","April","May","June","July","August","September","October","November","December"],yearOptions=[],i=DatePickerRange.MIN_YEAR;i<=DatePickerRange.MAX_YEAR;i++)yearOptions.push({value:i,label:i});var monthOptions=DefaultMonthString.map(function(e,t){return{value:t,label:e}}),propTypes$2={date:PropTypes.instanceOf(Date),changeYear:PropTypes.func,changeMonth:PropTypes.func,decreaseMonth:PropTypes.func,increaseMonth:PropTypes.func,prevMonthButtonDisabled:PropTypes.bool,nextMonthButtonDisabled:PropTypes.bool},defaultProps$2={date:new Date,changeYear:function(){},changeMonth:function(){},decreaseMonth:function(){},increaseMonth:function(){},prevMonthButtonDisabled:!1,nextMonthButtonDisabled:!1},DatePickerHeader=function(e){var t=e.date,n=e.changeYear,r=e.changeMonth,i=e.decreaseMonth,o=e.increaseMonth,a=e.prevMonthButtonDisabled,s=e.nextMonthButtonDisabled;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"multimedia-react-datepicker-header",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"multimedia-react-datepicker-select",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Select,{className:"multimedia-react-datepicker-year",value:yearOptions[t.getFullYear()-1901],onChange:function(e){return n(e.value)},options:yearOptions,arrowIconSrc:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcArrowLineThinDown,{})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Select,{className:"multimedia-react-datepicker-month",value:monthOptions[t.getMonth()],onChange:function(e){return r(e.value)},options:monthOptions,arrowIconSrc:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgIcArrowLineThinDown,{})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IconButton,{className:"multimedia-react-datepicker-header-arrow-btn",src:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgBtPrev,{}),handler:i,disabled:a}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IconButton,{className:"multimedia-react-datepicker-header-arrow-btn",src:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgBtNext,{}),handler:o,disabled:s})]})};function _extends(){return(_extends=Object.assign?Object.assign.bind():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}).apply(this,arguments)}DatePickerHeader.propTypes=propTypes$2,DatePickerHeader.defaultProps=defaultProps$2;var SvgBtComboCalendar=function(e){return react__WEBPACK_IMPORTED_MODULE_2__.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:96},e),_g||(_g=react__WEBPACK_IMPORTED_MODULE_2__.createElement("g",{fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#555",d:"M6 5h12a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2m0 4v9h12V9zm9 7.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm0 4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5z"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#FB685A",d:"M6 53h12a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V55a2 2 0 0 1 2-2m0 4v9h12v-9zm9 7.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm0 4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5z"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#FF6F61",d:"M6 29h12a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V31a2 2 0 0 1 2-2m0 4v9h12v-9zm9 7.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm0 4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5z"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement("path",{fill:"#555",fillOpacity:.4,d:"M6 77h12a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V79a2 2 0 0 1 2-2m0 4v9h12v-9zm9 7.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm-3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm0 4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5-4a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5zm3.5 0a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5z"}))))};function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var getEndOfYearInLocal=function(e){return dayjs().year(e).endOf("year")},getStartOfYearInLocal=function(e){return dayjs().year(e).startOf("year")},t=!0,n=!1,propTypes$1={className:PropTypes.string,dateFormat:PropTypes.string,disabled:PropTypes.bool,maxMoment:PropTypes.instanceOf(dayjs),minMoment:PropTypes.instanceOf(dayjs),onChange:PropTypes.func,popperPlacement:PropTypes.string,selectedMoment:PropTypes.instanceOf(dayjs),showCalendarIcon:PropTypes.bool,value:PropTypes.number},defaultProps$1={value:0,className:"",dateFormat:"yyyy-MM-dd",disabled:!1,maxMoment:getEndOfYearInLocal(DatePickerRange.MAX_YEAR),minMoment:getStartOfYearInLocal(DatePickerRange.MIN_YEAR),onChange:function(e){},popperPlacement:"bottom",selectedMoment:null,showCalendarIcon:!1},DatePicker=function(e){var t=e.dateFormat,n=e.className,r=e.disabled,i=e.maxMoment,o=e.minMoment,a=e.onChange,s=e.popperPlacement,l=e.selectedMoment,u=e.showCalendarIcon,c=t.toLowerCase().replace("mm","MM"),d=function(e){if(e){o.toDate()<=e&&i.toDate()>=e&&a(Math.floor(e.getTime()/1e3));return}a(null)},f=function(e){if(e.target.value){var t=c.replace(/[yMd]/g,"")[0],n=RegExp("[^0-9\\".concat(t,"]"),"g");e.target.value=e.target.value.replace(n,"").slice(0,10)}},p=function(e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(DatePickerHeader,_objectSpread({},e))},h=classNames$1("multimedia-react-datepicker",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},n,n)),m=classNames$1("multimedia-calendar-icon",{disabled:r});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:h,"data-testid":"data-picker",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ReactDatePicker,{disabled:r,dateFormat:c,selected:l?l.toDate():null,minDate:o.toDate(),maxDate:i.toDate(),renderCustomHeader:p,onChange:d,onChangeRaw:f,strictParsing:!0,popperPlacement:s,formatWeekDay:function(e){return e.substr(0,1)},showIcon:u,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SvgBtComboCalendar,{className:m}),toggleCalendarOnIconClick:!0})})};DatePicker.propTypes=propTypes$1,DatePicker.defaultProps=defaultProps$1;var TakentimeDatePicker=withDayjs(DatePicker,t),LocaleDatePicker=withDayjs(DatePicker,n);function _padLeadingZeroToNumber(e){return e.toString().padStart(2,"0")}function _getOptions(e){for(var t=[],n=0;n<e;n++)t.push({value:n,label:_padLeadingZeroToNumber(n)});return t}var hourOptions=_getOptions(24),minOptions=_getOptions(60),propTypes={className:PropTypes.string,selected:PropTypes.number.isRequired,onChange:PropTypes.func.isRequired},defaultProps={className:""},TimePicker=function(e){var t=e.className,n=e.selected,r=e.onChange,i=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(timestampGmt.getDayjs(n)),o=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__.Z)(i,2),a=o[0],s=o[1];(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){s(timestampGmt.getDayjs(n))},[n]);var l=function(e,t){if(null!==t){var n=a[e](t.value);s(n),r(n.unix())}},u=function(e,t){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Select,{onChange:function(t){return l(e,t)},defaultValue:t[a[e]()],options:t,className:"multimedia-timepicker-field",isSearchable:!0,onInputChange:function(e){return e.replace(/[^0-9]/g,"").slice(0,2)},ariaLabel:"timepicker-".concat(e)})};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:classNames$1("multimedia-timepicker",(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__.Z)({},t,t)),children:[u("hour",hourOptions),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{children:":"}),u("minute",minOptions),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{children:":"}),u("second",minOptions)]})};TimePicker.propTypes=propTypes,TimePicker.defaultProps=defaultProps;var DateTimePicker=function(e){var t=e.value,n=e.onChange,r=e.calendarIcon,i=e.popperPlacement,o=e.dateLabel,a=e.timeLabel,s=function(e){null!=e&&n(e,"date")},l=function(e){n(e,"time")};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"multimedia-datetimepicker",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"datetime-row",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"label",children:"".concat(o)}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"field",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TakentimeDatePicker,{showCalendarIcon:r,value:t,onChange:s,popperPlacement:i})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"datetime-row",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"label",children:"".concat(a)}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"field",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TimePicker,{selected:t,onChange:l})})]})]})};DateTimePicker.propTypes={value:PropTypes.number.isRequired,onChange:PropTypes.func,calendarIcon:PropTypes.bool,popperPlacement:PropTypes.string,dateLabel:PropTypes.string.isRequired,timeLabel:PropTypes.string.isRequired},DateTimePicker.defaultProps={onChange:function(){},calendarIcon:!1,popperPlacement:"bottom"}},92007:function(e,t,n){e.exports=n(35666)},28509:function(e,t,n){"use strict";/**
 * @license React
 * 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,i,o,a,s,l,u=n(67294),c=n(18213);function d(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 f=new Set,p={};function h(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(p[e]=t,e=0;e<t.length;e++)f.add(t[e])}var g=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),v=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},_={};function E(e){return!!v.call(_,e)||!v.call(b,e)&&(y.test(e)?_[e]=!0:(b[e]=!0,!1))}function w(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}function S(e,t,n,r){if(null==t||w(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function T(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){O[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];O[t]=new T(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){O[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){O[e]=new T(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){O[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){O[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){O[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){O[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){O[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}function C(e,t,n,r){var i=O.hasOwnProperty(t)?O[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(S(t,n,i,r)&&(n=null),r||null===i?E(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I,A);O[t]=new T(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I,A);O[t]=new T(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I,A);O[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){O[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),O.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){O[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),R=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),N=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var V=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function Z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var G,W=Object.assign;function q(e){if(void 0===G)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);G=t&&t[1]||""}return"\n"+G+e}var Y=!1;function $(e,t){if(!e||Y)return"";Y=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Y=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function K(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function X(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 L:return"Fragment";case R:return"Portal";case M:return"Profiler";case k:return"StrictMode";case B:return"Suspense";case U:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case F:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case H:return null!==(t=e.displayName||null)?t:X(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function Q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function J(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ee(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function et(e){var t=ee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function en(e){e._valueTracker||(e._valueTracker=et(e))}function er(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ee(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ei(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function eo(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ea(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=J(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function es(e,t){null!=(t=t.checked)&&C(e,"checked",t,!1)}function el(e,t){es(e,t);var n=J(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}t.hasOwnProperty("value")?ec(e,t.type,n):t.hasOwnProperty("defaultValue")&&ec(e,t.type,J(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function eu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ec(e,t,n){("number"!==t||ei(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ed=Array.isArray;function ef(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(i=0,n=""+J(n),t=null;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ep(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(d(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eh(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(d(92));if(ed(n)){if(1<n.length)throw Error(d(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:J(n)}}function em(e,t){var n=J(t.value),r=J(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function eg(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ev(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ey(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ev(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eb,e_=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((eb=eb||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eE(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ew={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eS=["Webkit","ms","Moz","O"];function eT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ew.hasOwnProperty(e)&&ew[e]?(""+t).trim():t+"px"}function eO(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=eT(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ew).forEach(function(e){eS.forEach(function(t){ew[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=ew[e]})});var eI=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eA(e,t){if(t){if(eI[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(d(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(d(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(d(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(d(62))}}function eC(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ex=null;function eD(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var eR=null,eL=null,ek=null;function eM(e){if(e=r4(e)){if("function"!=typeof eR)throw Error(d(280));var t=e.stateNode;t&&(t=r5(t),eR(e.stateNode,e.type,t))}}function eP(e){eL?ek?ek.push(e):ek=[e]:eL=e}function eN(){if(eL){var e=eL,t=ek;if(ek=eL=null,eM(e),t)for(e=0;e<t.length;e++)eM(t[e])}}function eF(e,t){return e(t)}function eB(){}var eU=!1;function eH(e,t,n){if(eU)return e(t,n);eU=!0;try{return eF(e,t,n)}finally{eU=!1,(null!==eL||null!==ek)&&(eB(),eN())}}function ej(e,t){var n=e.stateNode;if(null===n)return null;var r=r5(n);if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(d(231,t,typeof n));return n}var eV=!1;if(g)try{var ez={};Object.defineProperty(ez,"passive",{get:function(){eV=!0}}),window.addEventListener("test",ez,ez),window.removeEventListener("test",ez,ez)}catch(e){eV=!1}function eZ(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var eG=!1,eW=null,eq=!1,eY=null,e$={onError:function(e){eG=!0,eW=e}};function eK(e,t,n,r,i,o,a,s,l){eG=!1,eW=null,eZ.apply(e$,arguments)}function eX(e,t,n,r,i,o,a,s,l){if(eK.apply(this,arguments),eG){if(eG){var u=eW;eG=!1,eW=null}else throw Error(d(198));eq||(eq=!0,eY=u)}}function eQ(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function eJ(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function e0(e){if(eQ(e)!==e)throw Error(d(188))}function e1(e){var t=e.alternate;if(!t){if(null===(t=eQ(e)))throw Error(d(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return e0(i),e;if(o===r)return e0(i),t;o=o.sibling}throw Error(d(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(d(189))}}if(n.alternate!==r)throw Error(d(190))}if(3!==n.tag)throw Error(d(188));return n.stateNode.current===n?e:t}function e2(e){return null!==(e=e1(e))?e4(e):null}function e4(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=e4(e);if(null!==t)return t;e=e.sibling}return null}var e3=c.unstable_scheduleCallback,e5=c.unstable_cancelCallback,e6=c.unstable_shouldYield,e9=c.unstable_requestPaint,e8=c.unstable_now,e7=c.unstable_getCurrentPriorityLevel,te=c.unstable_ImmediatePriority,tt=c.unstable_UserBlockingPriority,tn=c.unstable_NormalPriority,tr=c.unstable_LowPriority,ti=c.unstable_IdlePriority,to=null,ta=null;function ts(e){if(ta&&"function"==typeof ta.onCommitFiberRoot)try{ta.onCommitFiberRoot(to,e,void 0,128==(128&e.current.flags))}catch(e){}}var tl=Math.clz32?Math.clz32:td,tu=Math.log,tc=Math.LN2;function td(e){return 0==(e>>>=0)?32:31-(tu(e)/tc|0)|0}var tf=64,tp=4194304;function th(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tm(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=th(s):0!=(o&=a)&&(r=th(o))}else 0!=(a=n&~i)?r=th(a):0!==o&&(r=th(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-tl(t)),r|=e[n],t&=~i;return r}function tg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}function tv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-tl(o),s=1<<a,l=i[a];-1===l?(0==(s&n)||0!=(s&r))&&(i[a]=tg(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function ty(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tb(){var e=tf;return 0==(4194240&(tf<<=1))&&(tf=64),e}function t_(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tE(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-tl(t)]=n}function tw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-tl(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function tS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tl(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var tT=0;function tO(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var tI,tA,tC,tx,tD,tR=!1,tL=[],tk=null,tM=null,tP=null,tN=new Map,tF=new Map,tB=[],tU="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tH(e,t){switch(e){case"focusin":case"focusout":tk=null;break;case"dragenter":case"dragleave":tM=null;break;case"mouseover":case"mouseout":tP=null;break;case"pointerover":case"pointerout":tN.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tF.delete(t.pointerId)}}function tj(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=r4(t))&&tA(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function tV(e,t,n,r,i){switch(t){case"focusin":return tk=tj(tk,e,t,n,r,i),!0;case"dragenter":return tM=tj(tM,e,t,n,r,i),!0;case"mouseover":return tP=tj(tP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return tN.set(o,tj(tN.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,tF.set(o,tj(tF.get(o)||null,e,t,n,r,i)),!0}return!1}function tz(e){var t=r2(e.target);if(null!==t){var n=eQ(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=eJ(n))){e.blockedOn=t,tD(e.priority,function(){tC(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tZ(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=t1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=r4(n))&&tA(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ex=r,n.target.dispatchEvent(r),ex=null,t.shift()}return!0}function tG(e,t,n){tZ(e)&&n.delete(t)}function tW(){tR=!1,null!==tk&&tZ(tk)&&(tk=null),null!==tM&&tZ(tM)&&(tM=null),null!==tP&&tZ(tP)&&(tP=null),tN.forEach(tG),tF.forEach(tG)}function tq(e,t){e.blockedOn===t&&(e.blockedOn=null,tR||(tR=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,tW)))}function tY(e){function t(t){return tq(t,e)}if(0<tL.length){tq(tL[0],e);for(var n=1;n<tL.length;n++){var r=tL[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==tk&&tq(tk,e),null!==tM&&tq(tM,e),null!==tP&&tq(tP,e),tN.forEach(t),tF.forEach(t),n=0;n<tB.length;n++)(r=tB[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tB.length&&null===(n=tB[0]).blockedOn;)tz(n),null===n.blockedOn&&tB.shift()}var t$=x.ReactCurrentBatchConfig,tK=!0;function tX(e,t,n,r){var i=tT,o=t$.transition;t$.transition=null;try{tT=1,tJ(e,t,n,r)}finally{tT=i,t$.transition=o}}function tQ(e,t,n,r){var i=tT,o=t$.transition;t$.transition=null;try{tT=4,tJ(e,t,n,r)}finally{tT=i,t$.transition=o}}function tJ(e,t,n,r){if(tK){var i=t1(e,t,n,r);if(null===i)rC(e,t,r,t0,n),tH(e,r);else if(tV(i,e,t,n,r))r.stopPropagation();else if(tH(e,r),4&t&&-1<tU.indexOf(e)){for(;null!==i;){var o=r4(i);if(null!==o&&tI(o),null===(o=t1(e,t,n,r))&&rC(e,t,r,t0,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else rC(e,t,r,null,n)}}var t0=null;function t1(e,t,n,r){if(t0=null,null!==(e=r2(e=eD(r)))){if(null===(t=eQ(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=eJ(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return t0=e,null}function t2(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(e7()){case te:return 1;case tt:return 4;case tn:case tr:return 16;case ti:return 536870912;default:return 16}default:return 16}}var t4=null,t3=null,t5=null;function t6(){if(t5)return t5;var e,t,n=t3,r=n.length,i="value"in t4?t4.value:t4.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return t5=i.slice(e,1<t?1-t:void 0)}function t9(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function t8(){return!0}function t7(){return!1}function ne(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?t8:t7,this.isPropagationStopped=t7,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=t8)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=t8)},persist:function(){},isPersistent:t8}),t}var nt,nn,nr,ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},no=ne(ni),na=W({},ni,{view:0,detail:0}),ns=ne(na),nl=W({},na,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nb,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nr&&(nr&&"mousemove"===e.type?(nt=e.screenX-nr.screenX,nn=e.screenY-nr.screenY):nn=nt=0,nr=e),nt)},movementY:function(e){return"movementY"in e?e.movementY:nn}}),nu=ne(nl),nc=ne(W({},nl,{dataTransfer:0})),nd=ne(W({},na,{relatedTarget:0})),nf=ne(W({},ni,{animationName:0,elapsedTime:0,pseudoElement:0})),np=ne(W({},ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),nh=ne(W({},ni,{data:0})),nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ng={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ny(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=nv[e])&&!!t[e]}function nb(){return ny}var n_=ne(W({},na,{key:function(e){if(e.key){var t=nm[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=t9(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ng[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nb,charCode:function(e){return"keypress"===e.type?t9(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?t9(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),nE=ne(W({},nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nw=ne(W({},na,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nb})),nS=ne(W({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0})),nT=ne(W({},nl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nO=[9,13,27,32],nI=g&&"CompositionEvent"in window,nA=null;g&&"documentMode"in document&&(nA=document.documentMode);var nC=g&&"TextEvent"in window&&!nA,nx=g&&(!nI||nA&&8<nA&&11>=nA),nD=" ",nR=!1;function nL(e,t){switch(e){case"keyup":return -1!==nO.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nk(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nM=!1;function nP(e,t){switch(e){case"compositionend":return nk(t);case"keypress":if(32!==t.which)return null;return nR=!0,nD;case"textInput":return(e=t.data)===nD&&nR?null:e;default:return null}}function nN(e,t){if(nM)return"compositionend"===e||!nI&&nL(e,t)?(e=t6(),t5=t3=t4=null,nM=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nx&&"ko"!==t.locale?null:t.data}}var nF={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nF[e.type]:"textarea"===t}function nU(e,t,n,r){eP(r),0<(t=rD(t,"onChange")).length&&(n=new no("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nH=null,nj=null;function nV(e){rw(e,0)}function nz(e){if(er(r3(e)))return e}function nZ(e,t){if("change"===e)return t}var nG=!1;if(g){if(g){var nW="oninput"in document;if(!nW){var nq=document.createElement("div");nq.setAttribute("oninput","return;"),nW="function"==typeof nq.oninput}r=nW}else r=!1;nG=r&&(!document.documentMode||9<document.documentMode)}function nY(){nH&&(nH.detachEvent("onpropertychange",n$),nj=nH=null)}function n$(e){if("value"===e.propertyName&&nz(nj)){var t=[];nU(t,nj,e,eD(e)),eH(nV,t)}}function nK(e,t,n){"focusin"===e?(nY(),nH=t,nj=n,nH.attachEvent("onpropertychange",n$)):"focusout"===e&&nY()}function nX(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nz(nj)}function nQ(e,t){if("click"===e)return nz(t)}function nJ(e,t){if("input"===e||"change"===e)return nz(t)}function n0(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var n1="function"==typeof Object.is?Object.is:n0;function n2(e,t){if(n1(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!v.call(t,i)||!n1(e[i],t[i]))return!1}return!0}function n4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function n3(e,t){var n,r=n4(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=n4(r)}}function n5(e,t){return!!e&&!!t&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?n5(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function n6(){for(var e=window,t=ei();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=ei(e.document)}return t}function n9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function n8(e){var t=n6(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&n5(n.ownerDocument.documentElement,n)){if(null!==r&&n9(n)){if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=n3(n,o);var a=n3(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var n7=g&&"documentMode"in document&&11>=document.documentMode,re=null,rt=null,rn=null,rr=!1;function ri(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;rr||null==re||re!==ei(r)||(r="selectionStart"in(r=re)&&n9(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},rn&&n2(rn,r)||(rn=r,0<(r=rD(rt,"onSelect")).length&&(t=new no("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=re)))}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ra={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},rs={},rl={};function ru(e){if(rs[e])return rs[e];if(!ra[e])return e;var t,n=ra[e];for(t in n)if(n.hasOwnProperty(t)&&t in rl)return rs[e]=n[t];return e}g&&(rl=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);var rc=ru("animationend"),rd=ru("animationiteration"),rf=ru("animationstart"),rp=ru("transitionend"),rh=new Map,rm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rg(e,t){rh.set(e,t),h(t,[e])}for(var rv=0;rv<rm.length;rv++){var ry=rm[rv];rg(ry.toLowerCase(),"on"+(ry[0].toUpperCase()+ry.slice(1)))}rg(rc,"onAnimationEnd"),rg(rd,"onAnimationIteration"),rg(rf,"onAnimationStart"),rg("dblclick","onDoubleClick"),rg("focusin","onFocus"),rg("focusout","onBlur"),rg(rp,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rb="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),r_=new Set("cancel close invalid load scroll toggle".split(" ").concat(rb));function rE(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,eX(r,t,void 0,e),e.currentTarget=null}function rw(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;rE(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;rE(i,s,u),o=l}}}if(eq)throw e=eY,eq=!1,eY=null,e}function rS(e,t){var n=t[rJ];void 0===n&&(n=t[rJ]=new Set);var r=e+"__bubble";n.has(r)||(rA(t,e,2,!1),n.add(r))}function rT(e,t,n){var r=0;t&&(r|=4),rA(n,e,r,t)}var rO="_reactListening"+Math.random().toString(36).slice(2);function rI(e){if(!e[rO]){e[rO]=!0,f.forEach(function(t){"selectionchange"!==t&&(r_.has(t)||rT(t,!1,e),rT(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rO]||(t[rO]=!0,rT("selectionchange",!1,t))}}function rA(e,t,n,r){switch(t2(t)){case 1:var i=tX;break;case 4:i=tQ;break;default:i=tJ}n=i.bind(null,t,n,e),i=void 0,eV&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function rC(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=r2(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}eH(function(){var r=o,i=eD(n),a=[];e:{var s=rh.get(e);if(void 0!==s){var l=no,u=e;switch(e){case"keypress":if(0===t9(n))break e;case"keydown":case"keyup":l=n_;break;case"focusin":u="focus",l=nd;break;case"focusout":u="blur",l=nd;break;case"beforeblur":case"afterblur":l=nd;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=nu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=nc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=nw;break;case rc:case rd:case rf:l=nf;break;case rp:l=nS;break;case"scroll":l=ns;break;case"wheel":l=nT;break;case"copy":case"cut":case"paste":l=np;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=nE}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=ej(h,f))&&c.push(rx(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(s="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e,!(s&&n!==ex&&(u=n.relatedTarget||n.fromElement)&&(r2(u)||u[rQ]))&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,null!==(u=u?r2(u):null)&&(d=eQ(u),u!==d||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=nu,m="onMouseLeave",f="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=nE,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:r3(l),p=null==u?s:r3(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,r2(i)===r&&((c=new c(f,h+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)t:{for(c=l,f=u,h=0,p=c;p;p=rR(p))h++;for(p=0,m=f;m;m=rR(m))p++;for(;0<h-p;)c=rR(c),h--;for(;0<p-h;)f=rR(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break t;c=rR(c),f=rR(f)}c=null}else c=null;null!==l&&rL(a,s,l,c,!1),null!==u&&null!==d&&rL(a,d,u,c,!0)}e:{if("select"===(l=(s=r?r3(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g,v=nZ;else if(nB(s)){if(nG)v=nJ;else{v=nX;var y=nK}}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=nQ);if(v&&(v=v(e,r))){nU(a,v,n,i);break e}y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ec(s,"number",s.value)}switch(y=r?r3(r):window,e){case"focusin":(nB(y)||"true"===y.contentEditable)&&(re=y,rt=r,rn=null);break;case"focusout":rn=rt=re=null;break;case"mousedown":rr=!0;break;case"contextmenu":case"mouseup":case"dragend":rr=!1,ri(a,n,i);break;case"selectionchange":if(n7)break;case"keydown":case"keyup":ri(a,n,i)}if(nI)t:{switch(e){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else nM?nL(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(nx&&"ko"!==n.locale&&(nM||"onCompositionStart"!==b?"onCompositionEnd"===b&&nM&&(g=t6()):(t3="value"in(t4=i)?t4.value:t4.textContent,nM=!0)),0<(y=rD(r,b)).length&&(b=new nh(b,e,null,n,i),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=nk(n))&&(b.data=g))),(g=nC?nP(e,n):nN(e,n))&&0<(r=rD(r,"onBeforeInput")).length&&(i=new nh("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g)}rw(a,t)})}function rx(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rD(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ej(e,n))&&r.unshift(rx(e,o,i)),null!=(o=ej(e,t))&&r.push(rx(e,o,i))),e=e.return}return r}function rR(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function rL(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ej(n,o))&&a.unshift(rx(n,l,s)):i||null!=(l=ej(n,o))&&a.push(rx(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var rk=/\r\n?/g,rM=/\u0000|\uFFFD/g;function rP(e){return("string"==typeof e?e:""+e).replace(rk,"\n").replace(rM,"")}function rN(e,t,n){if(t=rP(t),rP(e)!==t&&n)throw Error(d(425))}function rF(){}var rB=null,rU=null;function rH(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rj="function"==typeof setTimeout?setTimeout:void 0,rV="function"==typeof clearTimeout?clearTimeout:void 0,rz="function"==typeof Promise?Promise:void 0,rZ="function"==typeof queueMicrotask?queueMicrotask:void 0!==rz?function(e){return rz.resolve(null).then(e).catch(rG)}:rj;function rG(e){setTimeout(function(){throw e})}function rW(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType){if("/$"===(n=i.data)){if(0===r){e.removeChild(i),tY(t);return}r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++}n=i}while(n);tY(t)}function rq(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function rY(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var r$=Math.random().toString(36).slice(2),rK="__reactFiber$"+r$,rX="__reactProps$"+r$,rQ="__reactContainer$"+r$,rJ="__reactEvents$"+r$,r0="__reactListeners$"+r$,r1="__reactHandles$"+r$;function r2(e){var t=e[rK];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rQ]||n[rK]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rY(e);null!==e;){if(n=e[rK])return n;e=rY(e)}return t}n=(e=n).parentNode}return null}function r4(e){return(e=e[rK]||e[rQ])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function r3(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(d(33))}function r5(e){return e[rX]||null}var r6=[],r9=-1;function r8(e){return{current:e}}function r7(e){0>r9||(e.current=r6[r9],r6[r9]=null,r9--)}function ie(e,t){r6[++r9]=e.current,e.current=t}var it={},ir=r8(it),ii=r8(!1),io=it;function ia(e,t){var n=e.type.contextTypes;if(!n)return it;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function is(e){return null!=(e=e.childContextTypes)}function il(){r7(ii),r7(ir)}function iu(e,t,n){if(ir.current!==it)throw Error(d(168));ie(ir,t),ie(ii,n)}function ic(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(d(108,Q(e)||"Unknown",i));return W({},n,r)}function id(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||it,io=ir.current,ie(ir,e),ie(ii,ii.current),!0}function ip(e,t,n){var r=e.stateNode;if(!r)throw Error(d(169));n?(e=ic(e,t,io),r.__reactInternalMemoizedMergedChildContext=e,r7(ii),r7(ir),ie(ir,e)):r7(ii),ie(ii,n)}var ih=null,im=!1,ig=!1;function iv(e){null===ih?ih=[e]:ih.push(e)}function iy(e){im=!0,iv(e)}function ib(){if(!ig&&null!==ih){ig=!0;var e=0,t=tT;try{var n=ih;for(tT=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}ih=null,im=!1}catch(t){throw null!==ih&&(ih=ih.slice(e+1)),e3(te,ib),t}finally{tT=t,ig=!1}}return null}var i_=[],iE=0,iw=null,iS=0,iT=[],iO=0,iI=null,iA=1,iC="";function ix(e,t){i_[iE++]=iS,i_[iE++]=iw,iw=e,iS=t}function iD(e,t,n){iT[iO++]=iA,iT[iO++]=iC,iT[iO++]=iI,iI=e;var r=iA;e=iC;var i=32-tl(r)-1;r&=~(1<<i),n+=1;var o=32-tl(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,iA=1<<32-tl(t)+i|n<<i|r,iC=o+e}else iA=1<<o|n<<i|r,iC=e}function iR(e){null!==e.return&&(ix(e,1),iD(e,1,0))}function iL(e){for(;e===iw;)iw=i_[--iE],i_[iE]=null,iS=i_[--iE],i_[iE]=null;for(;e===iI;)iI=iT[--iO],iT[iO]=null,iC=iT[--iO],iT[iO]=null,iA=iT[--iO],iT[iO]=null}var ik=null,iM=null,iP=!1,iN=null;function iF(e,t){var n=lE(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function iB(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ik=e,iM=rq(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ik=e,iM=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==iI?{id:iA,overflow:iC}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=lE(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ik=e,iM=null,!0);default:return!1}}function iU(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function iH(e){if(iP){var t=iM;if(t){var n=t;if(!iB(e,t)){if(iU(e))throw Error(d(418));t=rq(n.nextSibling);var r=ik;t&&iB(e,t)?iF(r,n):(e.flags=-4097&e.flags|2,iP=!1,ik=e)}}else{if(iU(e))throw Error(d(418));e.flags=-4097&e.flags|2,iP=!1,ik=e}}}function ij(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ik=e}function iV(e){if(e!==ik)return!1;if(!iP)return ij(e),iP=!0,!1;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!rH(e.type,e.memoizedProps)),t&&(t=iM)){if(iU(e))throw iz(),Error(d(418));for(;t;)iF(e,t),t=rq(t.nextSibling)}if(ij(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(d(317));e:{for(t=0,e=e.nextSibling;e;){if(8===e.nodeType){var t,n=e.data;if("/$"===n){if(0===t){iM=rq(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}iM=null}}else iM=ik?rq(e.stateNode.nextSibling):null;return!0}function iz(){for(var e=iM;e;)e=rq(e.nextSibling)}function iZ(){iM=ik=null,iP=!1}function iG(e){null===iN?iN=[e]:iN.push(e)}var iW=x.ReactCurrentBatchConfig;function iq(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(d(309));var r=n.stateNode}if(!r)throw Error(d(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(d(284));if(!n._owner)throw Error(d(290,e))}return e}function iY(e,t){throw Error(d(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function i$(e){return(0,e._init)(e._payload)}function iK(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=lT(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?(t=lC(n,e.mode,r)).return=e:(t=i(t,n)).return=e,t}function l(e,t,n,r){var o=n.type;return o===L?c(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===j&&i$(o)===t.type)?(r=i(t,n.props)).ref=iq(e,t,n):(r=lO(n.type,n.key,n.props,null,e.mode,r)).ref=iq(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lx(n,e.mode,r)).return=e:(t=i(t,n.children||[])).return=e,t}function c(e,t,n,r,o){return null===t||7!==t.tag?(t=lI(n,e.mode,r,o)).return=e:(t=i(t,n)).return=e,t}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=lC(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case D:return(n=lO(t.type,t.key,t.props,null,e.mode,n)).ref=iq(e,null,t),n.return=e,n;case R:return(t=lx(t,e.mode,n)).return=e,t;case j:return f(e,(0,t._init)(t._payload),n)}if(ed(t)||Z(t))return(t=lI(t,e.mode,n,null)).return=e,t;iY(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case D:return n.key===i?l(e,t,n,r):null;case R:return n.key===i?u(e,t,n,r):null;case j:return p(e,t,(i=n._init)(n._payload),r)}if(ed(n)||Z(n))return null!==i?null:c(e,t,n,r,null);iY(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case D:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case j:return h(e,t,n,(0,r._init)(r._payload),i)}if(ed(r)||Z(r))return c(t,e=e.get(n)||null,r,i,null);iY(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),iP&&ix(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return iP&&ix(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),iP&&ix(i,m),u}function g(i,a,s,l){var u=Z(s);if("function"!=typeof u)throw Error(d(150));if(null==(s=u.call(s)))throw Error(d(151));for(var c=u=null,m=a,g=a=0,v=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),a=o(b,a,g),null===c?u=b:c.sibling=b,c=b,m=v}if(y.done)return n(i,m),iP&&ix(i,g),u;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=f(i,y.value,l))&&(a=o(y,a,g),null===c?u=y:c.sibling=y,c=y);return iP&&ix(i,g),u}for(m=r(i,m);!y.done;g++,y=s.next())null!==(y=h(m,i,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=o(y,a,g),null===c?u=y:c.sibling=y,c=y);return e&&m.forEach(function(e){return t(i,e)}),iP&&ix(i,g),u}function v(e,r,o,s){if("object"==typeof o&&null!==o&&o.type===L&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case D:e:{for(var l=o.key,u=r;null!==u;){if(u.key===l){if((l=o.type)===L){if(7===u.tag){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===j&&i$(l)===u.type){n(e,u.sibling),(r=i(u,o.props)).ref=iq(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===L?((r=lI(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=lO(o.type,o.key,o.props,null,e.mode,s)).ref=iq(e,r,o),s.return=e,e=s)}return a(e);case R:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=lx(o,e.mode,s)).return=e,e=r}return a(e);case j:return v(e,r,(u=o._init)(o._payload),s)}if(ed(o))return m(e,r,o,s);if(Z(o))return g(e,r,o,s);iY(e,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e):(n(e,r),(r=lC(o,e.mode,s)).return=e),a(e=r)):n(e,r)}return v}var iX=iK(!0),iQ=iK(!1),iJ=r8(null),i0=null,i1=null,i2=null;function i4(){i2=i1=i0=null}function i3(e){var t=iJ.current;r7(iJ),e._currentValue=t}function i5(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function i6(e,t){i0=e,i2=i1=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ax=!0),e.firstContext=null)}function i9(e){var t=e._currentValue;if(i2!==e){if(e={context:e,memoizedValue:t,next:null},null===i1){if(null===i0)throw Error(d(308));i1=e,i0.dependencies={lanes:0,firstContext:e}}else i1=i1.next=e}return t}var i8=null;function i7(e){null===i8?i8=[e]:i8.push(e)}function oe(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,i7(t)):(n.next=i.next,i.next=n),t.interleaved=n,ot(e,r)}function ot(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var on=!1;function or(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&sI)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ot(e,n)}return null===(i=r.interleaved)?(t.next=t,i7(r)):(t.next=i.next,i.next=t),r.interleaved=t,ot(e,n)}function os(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tS(e,n)}}function ol(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ou(e,t,n,r){var i=e.updateQueue;on=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=W({},d,f);break e;case 2:on=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do a|=i.lane,i=i.next;while(i!==t)}else null===o&&(i.shared.lanes=0);sM|=a,e.lanes=a,e.memoizedState=d}}function oc(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(d(191,i));i.call(r)}}}var od={},of=r8(od),op=r8(od),oh=r8(od);function om(e){if(e===od)throw Error(d(174));return e}function og(e,t){switch(ie(oh,t),ie(op,e),ie(of,od),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ey(null,"");break;default:t=ey(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}r7(of),ie(of,t)}function ov(){r7(of),r7(op),r7(oh)}function oy(e){om(oh.current);var t=om(of.current),n=ey(t,e.type);t!==n&&(ie(op,e),ie(of,n))}function ob(e){op.current===e&&(r7(of),r7(op))}var o_=r8(0);function oE(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ow=[];function oS(){for(var e=0;e<ow.length;e++)ow[e]._workInProgressVersionPrimary=null;ow.length=0}var oT=x.ReactCurrentDispatcher,oO=x.ReactCurrentBatchConfig,oI=0,oA=null,oC=null,ox=null,oD=!1,oR=!1,oL=0,ok=0;function oM(){throw Error(d(321))}function oP(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!n1(e[n],t[n]))return!1;return!0}function oN(e,t,n,r,i,o){if(oI=o,oA=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oT.current=null===e||null===e.memoizedState?au:ac,e=n(r,i),oR){o=0;do{if(oR=!1,oL=0,25<=o)throw Error(d(301));o+=1,ox=oC=null,t.updateQueue=null,oT.current=ad,e=n(r,i)}while(oR)}if(oT.current=al,t=null!==oC&&null!==oC.next,oI=0,ox=oC=oA=null,oD=!1,t)throw Error(d(300));return e}function oF(){var e=0!==oL;return oL=0,e}function oB(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ox?oA.memoizedState=ox=e:ox=ox.next=e,ox}function oU(){if(null===oC){var e=oA.alternate;e=null!==e?e.memoizedState:null}else e=oC.next;var t=null===ox?oA.memoizedState:ox.next;if(null!==t)ox=t,oC=e;else{if(null===e)throw Error(d(310));e={memoizedState:(oC=e).memoizedState,baseState:oC.baseState,baseQueue:oC.baseQueue,queue:oC.queue,next:null},null===ox?oA.memoizedState=ox=e:ox=ox.next=e}return ox}function oH(e,t){return"function"==typeof t?t(e):t}function oj(e){var t=oU(),n=t.queue;if(null===n)throw Error(d(311));n.lastRenderedReducer=e;var r=oC,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((oI&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=f,a=r):l=l.next=f,oA.lanes|=c,sM|=c}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=s,n1(r,t.memoizedState)||(ax=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do o=i.lane,oA.lanes|=o,sM|=o,i=i.next;while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oV(e){var t=oU(),n=t.queue;if(null===n)throw Error(d(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);n1(o,t.memoizedState)||(ax=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function oz(){}function oZ(e,t){var n=oA,r=oU(),i=t(),o=!n1(r.memoizedState,i);if(o&&(r.memoizedState=i,ax=!0),r=r.queue,o2(oq.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==ox&&1&ox.memoizedState.tag){if(n.flags|=2048,oX(9,oW.bind(null,n,r,i,t),void 0,null),null===sA)throw Error(d(349));0!=(30&oI)||oG(n,t,i)}return i}function oG(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oA.updateQueue)?(t={lastEffect:null,stores:null},oA.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function oW(e,t,n,r){t.value=n,t.getSnapshot=r,oY(t)&&o$(e)}function oq(e,t,n){return n(function(){oY(t)&&o$(e)})}function oY(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!n1(e,n)}catch(e){return!0}}function o$(e){var t=ot(e,1);null!==t&&s0(t,e,1,-1)}function oK(e){var t=oB();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oH,lastRenderedState:e},t.queue=e,e=e.dispatch=ai.bind(null,oA,e),[t.memoizedState,e]}function oX(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oA.updateQueue)?(t={lastEffect:null,stores:null},oA.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function oQ(){return oU().memoizedState}function oJ(e,t,n,r){var i=oB();oA.flags|=e,i.memoizedState=oX(1|t,n,void 0,void 0===r?null:r)}function o0(e,t,n,r){var i=oU();r=void 0===r?null:r;var o=void 0;if(null!==oC){var a=oC.memoizedState;if(o=a.destroy,null!==r&&oP(r,a.deps)){i.memoizedState=oX(t,n,o,r);return}}oA.flags|=e,i.memoizedState=oX(1|t,n,o,r)}function o1(e,t){return oJ(8390656,8,e,t)}function o2(e,t){return o0(2048,8,e,t)}function o4(e,t){return o0(4,2,e,t)}function o3(e,t){return o0(4,4,e,t)}function o5(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function o6(e,t,n){return n=null!=n?n.concat([e]):null,o0(4,4,o5.bind(null,t,e),n)}function o9(){}function o8(e,t){var n=oU();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function o7(e,t){var n=oU();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ae(e,t,n){return 0==(21&oI)?(e.baseState&&(e.baseState=!1,ax=!0),e.memoizedState=n):(n1(n,t)||(n=tb(),oA.lanes|=n,sM|=n,e.baseState=!0),t)}function at(e,t){var n=tT;tT=0!==n&&4>n?n:4,e(!0);var r=oO.transition;oO.transition={};try{e(!1),t()}finally{tT=n,oO.transition=r}}function an(){return oU().memoizedState}function ar(e,t,n){var r=sJ(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ao(e)?aa(t,n):null!==(n=oe(e,t,n,r))&&(s0(n,e,r,sQ()),as(n,t,r))}function ai(e,t,n){var r=sJ(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ao(e))aa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,n1(s,a)){var l=t.interleaved;null===l?(i.next=i,i7(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(e){}finally{}null!==(n=oe(e,t,i,r))&&(s0(n,e,r,i=sQ()),as(n,t,r))}}function ao(e){var t=e.alternate;return e===oA||null!==t&&t===oA}function aa(e,t){oR=oD=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(0!=(4194240&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tS(e,n)}}var al={readContext:i9,useCallback:oM,useContext:oM,useEffect:oM,useImperativeHandle:oM,useInsertionEffect:oM,useLayoutEffect:oM,useMemo:oM,useReducer:oM,useRef:oM,useState:oM,useDebugValue:oM,useDeferredValue:oM,useTransition:oM,useMutableSource:oM,useSyncExternalStore:oM,useId:oM,unstable_isNewReconciler:!1},au={readContext:i9,useCallback:function(e,t){return oB().memoizedState=[e,void 0===t?null:t],e},useContext:i9,useEffect:o1,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oJ(4194308,4,o5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oJ(4194308,4,e,t)},useInsertionEffect:function(e,t){return oJ(4,2,e,t)},useMemo:function(e,t){var n=oB();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oB();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ar.bind(null,oA,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},oB().memoizedState=e},useState:oK,useDebugValue:o9,useDeferredValue:function(e){return oB().memoizedState=e},useTransition:function(){var e=oK(!1),t=e[0];return e=at.bind(null,e[1]),oB().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oA,i=oB();if(iP){if(void 0===n)throw Error(d(407));n=n()}else{if(n=t(),null===sA)throw Error(d(349));0!=(30&oI)||oG(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,o1(oq.bind(null,r,o,e),[e]),r.flags|=2048,oX(9,oW.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=oB(),t=sA.identifierPrefix;if(iP){var n=iC,r=iA;t=":"+t+"R"+(n=(r&~(1<<32-tl(r)-1)).toString(32)+n),0<(n=oL++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ok++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ac={readContext:i9,useCallback:o8,useContext:i9,useEffect:o2,useImperativeHandle:o6,useInsertionEffect:o4,useLayoutEffect:o3,useMemo:o7,useReducer:oj,useRef:oQ,useState:function(){return oj(oH)},useDebugValue:o9,useDeferredValue:function(e){return ae(oU(),oC.memoizedState,e)},useTransition:function(){return[oj(oH)[0],oU().memoizedState]},useMutableSource:oz,useSyncExternalStore:oZ,useId:an,unstable_isNewReconciler:!1},ad={readContext:i9,useCallback:o8,useContext:i9,useEffect:o2,useImperativeHandle:o6,useInsertionEffect:o4,useLayoutEffect:o3,useMemo:o7,useReducer:oV,useRef:oQ,useState:function(){return oV(oH)},useDebugValue:o9,useDeferredValue:function(e){var t=oU();return null===oC?t.memoizedState=e:ae(t,oC.memoizedState,e)},useTransition:function(){return[oV(oH)[0],oU().memoizedState]},useMutableSource:oz,useSyncExternalStore:oZ,useId:an,unstable_isNewReconciler:!1};function af(e,t){if(e&&e.defaultProps)for(var n in t=W({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function ap(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:W({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ah={isMounted:function(e){return!!(e=e._reactInternals)&&eQ(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sQ(),i=sJ(e),o=oo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=oa(e,o,i))&&(s0(t,e,i,r),os(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sQ(),i=sJ(e),o=oo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=oa(e,o,i))&&(s0(t,e,i,r),os(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sQ(),r=sJ(e),i=oo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=oa(e,i,r))&&(s0(t,e,r,n),os(t,e,r))}};function am(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||!n2(n,r)||!n2(i,o)}function ag(e,t,n){var r=!1,i=it,o=t.contextType;return"object"==typeof o&&null!==o?o=i9(o):(i=is(t)?io:ir.current,o=(r=null!=(r=t.contextTypes))?ia(e,i):it),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ah,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function av(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ah.enqueueReplaceState(t,t.state,null)}function ay(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},or(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=i9(o):(o=is(t)?io:ir.current,i.context=ia(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(ap(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ah.enqueueReplaceState(i,i.state,null),ou(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function ab(e,t){try{var n="",r=t;do n+=K(r),r=r.return;while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function a_(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function aE(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var aw="function"==typeof WeakMap?WeakMap:Map;function aS(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sV||(sV=!0,sz=r),aE(e,t)},n}function aT(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){aE(e,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){aE(e,t),"function"!=typeof r&&(null===sZ?sZ=new Set([this]):sZ.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function aO(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new aw;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=lm.bind(null,e,t,n),t.then(e,e))}function aI(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function aA(e,t,n,r,i){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=oo(-1,1)).tag=2,oa(n,t,1))),n.lanes|=1):(e.flags|=65536,e.lanes=i),e}var aC=x.ReactCurrentOwner,ax=!1;function aD(e,t,n,r){t.child=null===e?iQ(t,null,n,r):iX(t,e.child,n,r)}function aR(e,t,n,r,i){n=n.render;var o=t.ref;return(i6(t,i),r=oN(e,t,n,r,o,i),n=oF(),null===e||ax)?(iP&&n&&iR(t),t.flags|=1,aD(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,aX(e,t,i))}function aL(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||lw(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=lO(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ak(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:n2)(a,r)&&e.ref===t.ref)return aX(e,t,i)}return t.flags|=1,(e=lT(o,r)).ref=t.ref,e.return=t,t.child=e}function ak(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(n2(o,r)&&e.ref===t.ref){if(ax=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,aX(e,t,i);0!=(131072&e.flags)&&(ax=!0)}}return aN(e,t,n,r,i)}function aM(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ie(sR,sD),sD|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ie(sR,sD),sD|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ie(sR,sD),sD|=r}}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ie(sR,sD),sD|=r;return aD(e,t,i,n),t.child}function aP(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function aN(e,t,n,r,i){var o=is(n)?io:ir.current;return(o=ia(t,o),i6(t,i),n=oN(e,t,n,r,o,i),r=oF(),null===e||ax)?(iP&&r&&iR(t),t.flags|=1,aD(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,aX(e,t,i))}function aF(e,t,n,r,i){if(is(n)){var o=!0;id(t)}else o=!1;if(i6(t,i),null===t.stateNode)aK(e,t),ag(t,n,r),ay(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?i9(u):ia(t,u=is(n)?io:ir.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&av(t,a,r,u),on=!1;var f=t.memoizedState;a.state=f,ou(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ii.current||on?("function"==typeof c&&(ap(t,n,c,r),l=t.memoizedState),(s=on||am(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,oi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:af(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?i9(l):ia(t,l=is(n)?io:ir.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&av(t,a,r,l),on=!1,f=t.memoizedState,a.state=f,ou(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||ii.current||on?("function"==typeof p&&(ap(t,n,p,r),h=t.memoizedState),(u=on||am(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return aB(e,t,n,r,o,i)}function aB(e,t,n,r,i,o){aP(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&ip(t,n,!1),aX(e,t,o);r=t.stateNode,aC.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=iX(t,e.child,null,o),t.child=iX(t,null,s,o)):aD(e,t,s,o),t.memoizedState=r.state,i&&ip(t,n,!0),t.child}function aU(e){var t=e.stateNode;t.pendingContext?iu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&iu(e,t.context,!1),og(e,t.containerInfo)}function aH(e,t,n,r,i){return iZ(),iG(i),t.flags|=256,aD(e,t,n,r),t.child}var aj={dehydrated:null,treeContext:null,retryLane:0};function aV(e){return{baseLanes:e,cachePool:null,transitions:null}}function az(e,t,n){var r,i=t.pendingProps,o=o_.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(o|=1),ie(o_,1&o),null===e)return(iH(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=lA(s,i,0,null),e=lI(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=aV(n),t.memoizedState=aj,e):aZ(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return aW(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=lT(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=lT(r,a):(a=lI(a,s,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?aV(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=aj,i}return e=(a=e.child).sibling,i=lT(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function aZ(e,t){return(t=lA({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function aG(e,t,n,r){return null!==r&&iG(r),iX(t,e.child,null,n),e=aZ(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function aW(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,aG(e,t,a,r=a_(Error(d(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=lA({mode:"visible",children:r.children},i,0,null),o=lI(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&iX(t,e.child,null,a),t.child.memoizedState=aV(a),t.memoizedState=aj,o);if(0==(1&t.mode))return aG(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,aG(e,t,a,r=a_(o=Error(d(419)),r,void 0))}if(s=0!=(a&e.childLanes),ax||s){if(null!==(r=sA)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,ot(e,i),s0(r,e,i,-1))}return li(),aG(e,t,a,r=a_(Error(d(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=lv.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,iM=rq(i.nextSibling),ik=t,iP=!0,iN=null,null!==e&&(iT[iO++]=iA,iT[iO++]=iC,iT[iO++]=iI,iA=e.id,iC=e.overflow,iI=t),t=aZ(t,r.children),t.flags|=4096,t)}function aq(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),i5(e.return,t,n)}function aY(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function a$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(aD(e,t,r.children,n),0!=(2&(r=o_.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&aq(e,n,t);else if(19===e.tag)aq(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ie(o_,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(i=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===oE(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),aY(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===oE(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}aY(t,!0,n,null,o);break;case"together":aY(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function aK(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function aX(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),sM|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(d(153));if(null!==t.child){for(n=lT(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=lT(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function aQ(e,t,n){switch(t.tag){case 3:aU(t),iZ();break;case 5:oy(t);break;case 1:is(t.type)&&id(t);break;case 4:og(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ie(iJ,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState)){if(null!==r.dehydrated)return ie(o_,1&o_.current),t.flags|=128,null;if(0!=(n&t.child.childLanes))return az(e,t,n);return ie(o_,1&o_.current),null!==(e=aX(e,t,n))?e.sibling:null}ie(o_,1&o_.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return a$(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ie(o_,o_.current),!r)return null;break;case 22:case 23:return t.lanes=0,aM(e,t,n)}return aX(e,t,n)}function aJ(e,t){if(!iP)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function a0(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function a1(e,t,n){var r=t.pendingProps;switch(iL(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return a0(t),null;case 1:case 17:return is(t.type)&&il(),a0(t),null;case 3:return r=t.stateNode,ov(),r7(ii),r7(ir),oS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===e||null===e.child)&&(iV(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==iN&&(s3(iN),iN=null))),o(e,t),a0(t),null;case 5:ob(t);var l=om(oh.current);if(n=t.type,null!==e&&null!=t.stateNode)a(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(d(166));return a0(t),null}if(e=om(of.current),iV(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[rK]=t,r[rX]=u,e=0!=(1&t.mode),n){case"dialog":rS("cancel",r),rS("close",r);break;case"iframe":case"object":case"embed":rS("load",r);break;case"video":case"audio":for(l=0;l<rb.length;l++)rS(rb[l],r);break;case"source":rS("error",r);break;case"img":case"image":case"link":rS("error",r),rS("load",r);break;case"details":rS("toggle",r);break;case"input":ea(r,u),rS("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},rS("invalid",r);break;case"textarea":eh(r,u),rS("invalid",r)}for(var c in eA(n,u),l=null,u)if(u.hasOwnProperty(c)){var f=u[c];"children"===c?"string"==typeof f?r.textContent!==f&&(!0!==u.suppressHydrationWarning&&rN(r.textContent,f,e),l=["children",f]):"number"==typeof f&&r.textContent!==""+f&&(!0!==u.suppressHydrationWarning&&rN(r.textContent,f,e),l=["children",""+f]):p.hasOwnProperty(c)&&null!=f&&"onScroll"===c&&rS("scroll",r)}switch(n){case"input":en(r),eu(r,u,!0);break;case"textarea":en(r),eg(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=rF)}r=l,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===l.nodeType?l:l.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ev(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[rK]=t,e[rX]=r,i(e,t,!1,!1),t.stateNode=e;e:{switch(c=eC(n,r),n){case"dialog":rS("cancel",e),rS("close",e),l=r;break;case"iframe":case"object":case"embed":rS("load",e),l=r;break;case"video":case"audio":for(l=0;l<rb.length;l++)rS(rb[l],e);l=r;break;case"source":rS("error",e),l=r;break;case"img":case"image":case"link":rS("error",e),rS("load",e),l=r;break;case"details":rS("toggle",e),l=r;break;case"input":ea(e,r),l=eo(e,r),rS("invalid",e);break;case"option":default:l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=W({},r,{value:void 0}),rS("invalid",e);break;case"textarea":eh(e,r),l=ep(e,r),rS("invalid",e)}for(u in eA(n,l),f=l)if(f.hasOwnProperty(u)){var h=f[u];"style"===u?eO(e,h):"dangerouslySetInnerHTML"===u?null!=(h=h?h.__html:void 0)&&e_(e,h):"children"===u?"string"==typeof h?("textarea"!==n||""!==h)&&eE(e,h):"number"==typeof h&&eE(e,""+h):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(p.hasOwnProperty(u)?null!=h&&"onScroll"===u&&rS("scroll",e):null!=h&&C(e,u,h,c))}switch(n){case"input":en(e),eu(e,r,!1);break;case"textarea":en(e),eg(e);break;case"option":null!=r.value&&e.setAttribute("value",""+J(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?ef(e,!!r.multiple,u,!1):null!=r.defaultValue&&ef(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=rF)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return a0(t),null;case 6:if(e&&null!=t.stateNode)s(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(d(166));if(n=om(oh.current),om(of.current),iV(t)){if(r=t.stateNode,n=t.memoizedProps,r[rK]=t,(u=r.nodeValue!==n)&&null!==(e=ik))switch(e.tag){case 3:rN(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rN(r.nodeValue,n,0!=(1&e.mode))}u&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[rK]=t,t.stateNode=r}return a0(t),null;case 13:if(r7(o_),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(iP&&null!==iM&&0!=(1&t.mode)&&0==(128&t.flags))iz(),iZ(),t.flags|=98560,u=!1;else if(u=iV(t),null!==r&&null!==r.dehydrated){if(null===e){if(!u)throw Error(d(318));if(!(u=null!==(u=t.memoizedState)?u.dehydrated:null))throw Error(d(317));u[rK]=t}else iZ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;a0(t),u=!1}else null!==iN&&(s3(iN),iN=null),u=!0;if(!u)return 65536&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return(r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&o_.current)?0===sL&&(sL=3):li())),null!==t.updateQueue&&(t.flags|=4),a0(t),null;case 4:return ov(),o(e,t),null===e&&rI(t.stateNode.containerInfo),a0(t),null;case 10:return i3(t.type._context),a0(t),null;case 19:if(r7(o_),null===(u=t.memoizedState))return a0(t),null;if(r=0!=(128&t.flags),null===(c=u.rendering)){if(r)aJ(u,!1);else{if(0!==sL||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=oE(e))){for(t.flags|=128,aJ(u,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)u=n,e=r,u.flags&=14680066,null===(c=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=c.childLanes,u.lanes=c.lanes,u.child=c.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=c.memoizedProps,u.memoizedState=c.memoizedState,u.updateQueue=c.updateQueue,u.type=c.type,e=c.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ie(o_,1&o_.current|2),t.child}e=e.sibling}null!==u.tail&&e8()>sH&&(t.flags|=128,r=!0,aJ(u,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=oE(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),aJ(u,!0),null===u.tail&&"hidden"===u.tailMode&&!c.alternate&&!iP)return a0(t),null}else 2*e8()-u.renderingStartTime>sH&&1073741824!==n&&(t.flags|=128,r=!0,aJ(u,!1),t.lanes=4194304)}u.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=u.last)?n.sibling=c:t.child=c,u.last=c)}if(null!==u.tail)return t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=e8(),t.sibling=null,n=o_.current,ie(o_,r?1&n|2:1&n),t;return a0(t),null;case 22:case 23:return le(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&sD)&&(a0(t),6&t.subtreeFlags&&(t.flags|=8192)):a0(t),null;case 24:case 25:return null}throw Error(d(156,t.tag))}function a2(e,t){switch(iL(t),t.tag){case 1:return is(t.type)&&il(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ov(),r7(ii),r7(ir),oS(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ob(t),null;case 13:if(r7(o_),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(d(340));iZ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return r7(o_),null;case 4:return ov(),null;case 10:return i3(t.type._context),null;case 22:case 23:return le(),null;default:return null}}i=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},o=function(){},a=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,om(of.current);var o,a=null;switch(n){case"input":i=eo(e,i),r=eo(e,r),a=[];break;case"select":i=W({},i,{value:void 0}),r=W({},r,{value:void 0}),a=[];break;case"textarea":i=ep(e,i),r=ep(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=rF)}for(u in eA(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u]){if("style"===u){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(p.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null))}for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s)){if("style"===u){if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l}else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(p.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&rS("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},s=function(e,t,n,r){n!==r&&(t.flags|=4)};var a4=!1,a3=!1,a5="function"==typeof WeakSet?WeakSet:Set,a6=null;function a9(e,t){var n=e.ref;if(null!==n){if("function"==typeof n)try{n(null)}catch(n){lh(e,t,n)}else n.current=null}}function a8(e,t,n){try{n()}catch(n){lh(e,t,n)}}var a7=!1;function se(e,t){if(rB=tK,n9(e=n6())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i,o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,p=e,h=null;t:for(;;){for(;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==r&&3!==p.nodeType||(u=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(i=p.firstChild);)h=p,p=i;for(;;){if(p===e)break t;if(h===n&&++c===o&&(l=s),h===a&&++f===r&&(u=s),null!==(i=p.nextSibling))break;h=(p=h).parentNode}p=i}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(rU={focusedElem:e,selectionRange:n},tK=!1,a6=t;null!==a6;)if(e=(t=a6).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,a6=e;else for(;null!==a6;){t=a6;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:af(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(d(163))}}catch(e){lh(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,a6=e;break}a6=t.return}return m=a7,a7=!1,m}function st(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&a8(t,n,o)}i=i.next}while(i!==r)}}function sn(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sr(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function si(e){var t=e.alternate;null!==t&&(e.alternate=null,si(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[rK],delete t[rX],delete t[rJ],delete t[r0],delete t[r1]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function so(e){return 5===e.tag||3===e.tag||4===e.tag}function sa(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||so(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=rF));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}var su=null,sc=!1;function sd(e,t,n){for(n=n.child;null!==n;)sf(e,t,n),n=n.sibling}function sf(e,t,n){if(ta&&"function"==typeof ta.onCommitFiberUnmount)try{ta.onCommitFiberUnmount(to,n)}catch(e){}switch(n.tag){case 5:a3||a9(n,t);case 6:var r=su,i=sc;su=null,sd(e,t,n),su=r,sc=i,null!==su&&(sc?(e=su,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):su.removeChild(n.stateNode));break;case 18:null!==su&&(sc?(e=su,n=n.stateNode,8===e.nodeType?rW(e.parentNode,n):1===e.nodeType&&rW(e,n),tY(e)):rW(su,n.stateNode));break;case 4:r=su,i=sc,su=n.stateNode.containerInfo,sc=!0,sd(e,t,n),su=r,sc=i;break;case 0:case 11:case 14:case 15:if(!a3&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)?a8(n,t,a):0!=(4&o)&&a8(n,t,a)),i=i.next}while(i!==r)}sd(e,t,n);break;case 1:if(!a3&&(a9(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){lh(n,t,e)}sd(e,t,n);break;case 21:default:sd(e,t,n);break;case 22:1&n.mode?(a3=(r=a3)||null!==n.memoizedState,sd(e,t,n),a3=r):sd(e,t,n)}}function sp(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new a5),t.forEach(function(t){var r=ly.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function sh(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:su=s.stateNode,sc=!1;break e;case 3:case 4:su=s.stateNode.containerInfo,sc=!0;break e}s=s.return}if(null===su)throw Error(d(160));sf(o,a,i),su=null,sc=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){lh(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)sm(t,e),t=t.sibling}function sm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(sh(t,e),sg(e),4&r){try{st(3,e,e.return),sn(3,e)}catch(t){lh(e,e.return,t)}try{st(5,e,e.return)}catch(t){lh(e,e.return,t)}}break;case 1:sh(t,e),sg(e),512&r&&null!==n&&a9(n,n.return);break;case 5:if(sh(t,e),sg(e),512&r&&null!==n&&a9(n,n.return),32&e.flags){var i=e.stateNode;try{eE(i,"")}catch(t){lh(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&es(i,o),eC(s,a);var u=eC(s,o);for(a=0;a<l.length;a+=2){var c=l[a],f=l[a+1];"style"===c?eO(i,f):"dangerouslySetInnerHTML"===c?e_(i,f):"children"===c?eE(i,f):C(i,c,f,u)}switch(s){case"input":el(i,o);break;case"textarea":em(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?ef(i,!!o.multiple,h,!1):!!o.multiple!==p&&(null!=o.defaultValue?ef(i,!!o.multiple,o.defaultValue,!0):ef(i,!!o.multiple,o.multiple?[]:"",!1))}i[rX]=o}catch(t){lh(e,e.return,t)}}break;case 6:if(sh(t,e),sg(e),4&r){if(null===e.stateNode)throw Error(d(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){lh(e,e.return,t)}}break;case 3:if(sh(t,e),sg(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{tY(t.containerInfo)}catch(t){lh(e,e.return,t)}break;case 4:default:sh(t,e),sg(e);break;case 13:sh(t,e),sg(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,o&&(null===i.alternate||null===i.alternate.memoizedState)&&(sU=e8())),4&r&&sp(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(a3=(u=a3)||c,sh(t,e),a3=u):sh(t,e),sg(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(a6=e,c=e.child;null!==c;){for(f=a6=c;null!==a6;){switch(h=(p=a6).child,p.tag){case 0:case 11:case 14:case 15:st(4,p,p.return);break;case 1:a9(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){lh(r,n,e)}}break;case 5:a9(p,p.return);break;case 22:if(null!==p.memoizedState){s_(f);continue}}null!==h?(h.return=p,a6=h):s_(f)}c=c.sibling}e:for(c=null,f=e;;){if(5===f.tag){if(null===c){c=f;try{i=f.stateNode,u?(o=i.style,"function"==typeof o.setProperty?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,a=null!=(l=f.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=eT("display",a))}catch(t){lh(e,e.return,t)}}}else if(6===f.tag){if(null===c)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){lh(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:sh(t,e),sg(e),4&r&&sp(e);case 21:}}function sg(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(so(n)){var r=n;break e}n=n.return}throw Error(d(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(eE(i,""),r.flags&=-33);var o=sa(e);sl(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=sa(e);ss(e,s,a);break;default:throw Error(d(161))}}catch(t){lh(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function sv(e,t,n){a6=e,sy(e,t,n)}function sy(e,t,n){for(var r=0!=(1&e.mode);null!==a6;){var i=a6,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||a4;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||a3;s=a4;var u=a3;if(a4=a,(a3=l)&&!u)for(a6=i;null!==a6;)l=(a=a6).child,22===a.tag&&null!==a.memoizedState?sE(i):null!==l?(l.return=a,a6=l):sE(i);for(;null!==o;)a6=o,sy(o,t,n),o=o.sibling;a6=i,a4=s,a3=u}sb(e,t,n)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,a6=o):sb(e,t,n)}}function sb(e){for(;null!==a6;){var t=a6;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:a3||sn(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!a3){if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:af(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var o=t.updateQueue;null!==o&&oc(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}oc(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var f=c.dehydrated;null!==f&&tY(f)}}}break;default:throw Error(d(163))}a3||512&t.flags&&sr(t)}catch(e){lh(t,t.return,e)}}if(t===e){a6=null;break}if(null!==(n=t.sibling)){n.return=t.return,a6=n;break}a6=t.return}}function s_(e){for(;null!==a6;){var t=a6;if(t===e){a6=null;break}var n=t.sibling;if(null!==n){n.return=t.return,a6=n;break}a6=t.return}}function sE(e){for(;null!==a6;){var t=a6;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sn(4,t)}catch(e){lh(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){lh(t,i,e)}}var o=t.return;try{sr(t)}catch(e){lh(t,o,e)}break;case 5:var a=t.return;try{sr(t)}catch(e){lh(t,a,e)}}}catch(e){lh(t,t.return,e)}if(t===e){a6=null;break}var s=t.sibling;if(null!==s){s.return=t.return,a6=s;break}a6=t.return}}var sw=Math.ceil,sS=x.ReactCurrentDispatcher,sT=x.ReactCurrentOwner,sO=x.ReactCurrentBatchConfig,sI=0,sA=null,sC=null,sx=0,sD=0,sR=r8(0),sL=0,sk=null,sM=0,sP=0,sN=0,sF=null,sB=null,sU=0,sH=1/0,sj=null,sV=!1,sz=null,sZ=null,sG=!1,sW=null,sq=0,sY=0,s$=null,sK=-1,sX=0;function sQ(){return 0!=(6&sI)?e8():-1!==sK?sK:sK=e8()}function sJ(e){return 0==(1&e.mode)?1:0!=(2&sI)&&0!==sx?sx&-sx:null!==iW.transition?(0===sX&&(sX=tb()),sX):0!==(e=tT)?e:e=void 0===(e=window.event)?16:t2(e.type)}function s0(e,t,n,r){if(50<sY)throw sY=0,s$=null,Error(d(185));tE(e,n,r),(0==(2&sI)||e!==sA)&&(e===sA&&(0==(2&sI)&&(sP|=n),4===sL&&s6(e,sx)),s1(e,r),1===n&&0===sI&&0==(1&t.mode)&&(sH=e8()+500,im&&ib()))}function s1(e,t){var n=e.callbackNode;tv(e,t);var r=tm(e,e===sA?sx:0);if(0===r)null!==n&&e5(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&e5(n),1===t)0===e.tag?iy(s9.bind(null,e)):iv(s9.bind(null,e)),rZ(function(){0==(6&sI)&&ib()}),n=null;else{switch(tO(r)){case 1:n=te;break;case 4:n=tt;break;case 16:default:n=tn;break;case 536870912:n=ti}n=lb(n,s2.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function s2(e,t){if(sK=-1,sX=0,0!=(6&sI))throw Error(d(327));var n=e.callbackNode;if(lf()&&e.callbackNode!==n)return null;var r=tm(e,e===sA?sx:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=lo(e,r);else{t=r;var i=sI;sI|=2;var o=lr();for((sA!==e||sx!==t)&&(sj=null,sH=e8()+500,lt(e,t));;)try{ls();break}catch(t){ln(e,t)}i4(),sS.current=o,sI=i,null!==sC?t=0:(sA=null,sx=0,t=sL)}if(0!==t){if(2===t&&0!==(i=ty(e))&&(r=i,t=s4(e,i)),1===t)throw n=sk,lt(e,0),s6(e,r),s1(e,e8()),n;if(6===t)s6(e,r);else{if(i=e.current.alternate,0==(30&r)&&!s5(i)&&(2===(t=lo(e,r))&&0!==(o=ty(e))&&(r=o,t=s4(e,o)),1===t))throw n=sk,lt(e,0),s6(e,r),s1(e,e8()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(d(345));case 2:case 5:lc(e,sB,sj);break;case 3:if(s6(e,r),(130023424&r)===r&&10<(t=sU+500-e8())){if(0!==tm(e,0))break;if(((i=e.suspendedLanes)&r)!==r){sQ(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=rj(lc.bind(null,e,sB,sj),t);break}lc(e,sB,sj);break;case 4:if(s6(e,r),(4194240&r)===r)break;for(i=-1,t=e.eventTimes;0<r;){var a=31-tl(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=e8()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sw(r/1960))-r)){e.timeoutHandle=rj(lc.bind(null,e,sB,sj),r);break}lc(e,sB,sj);break;default:throw Error(d(329))}}}return s1(e,e8()),e.callbackNode===n?s2.bind(null,e):null}function s4(e,t){var n=sF;return e.current.memoizedState.isDehydrated&&(lt(e,t).flags|=256),2!==(e=lo(e,t))&&(t=sB,sB=n,null!==t&&s3(t)),e}function s3(e){null===sB?sB=e:sB.push.apply(sB,e)}function s5(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!n1(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function s6(e,t){for(t&=~sN,t&=~sP,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-tl(t),r=1<<n;e[n]=-1,t&=~r}}function s9(e){if(0!=(6&sI))throw Error(d(327));lf();var t=tm(e,0);if(0==(1&t))return s1(e,e8()),null;var n=lo(e,t);if(0!==e.tag&&2===n){var r=ty(e);0!==r&&(t=r,n=s4(e,r))}if(1===n)throw n=sk,lt(e,0),s6(e,t),s1(e,e8()),n;if(6===n)throw Error(d(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,lc(e,sB,sj),s1(e,e8()),null}function s8(e,t){var n=sI;sI|=1;try{return e(t)}finally{0===(sI=n)&&(sH=e8()+500,im&&ib())}}function s7(e){null!==sW&&0===sW.tag&&0==(6&sI)&&lf();var t=sI;sI|=1;var n=sO.transition,r=tT;try{if(sO.transition=null,tT=1,e)return e()}finally{tT=r,sO.transition=n,0==(6&(sI=t))&&ib()}}function le(){sD=sR.current,r7(sR)}function lt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rV(n)),null!==sC)for(n=sC.return;null!==n;){var r=n;switch(iL(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&il();break;case 3:ov(),r7(ii),r7(ir),oS();break;case 5:ob(r);break;case 4:ov();break;case 13:case 19:r7(o_);break;case 10:i3(r.type._context);break;case 22:case 23:le()}n=n.return}if(sA=e,sC=e=lT(e.current,null),sx=sD=t,sL=0,sk=null,sN=sP=sM=0,sB=sF=null,null!==i8){for(t=0;t<i8.length;t++)if(null!==(r=(n=i8[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}i8=null}return e}function ln(e,t){for(;;){var n=sC;try{if(i4(),oT.current=al,oD){for(var r=oA.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}oD=!1}if(oI=0,ox=oC=oA=null,oR=!1,oL=0,sT.current=null,null===n||null===n.return){sL=1,sk=t,sC=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=sx,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,f=c.tag;if(0==(1&c.mode)&&(0===f||11===f||15===f)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=aI(a);if(null!==h){h.flags&=-257,aA(h,a,s,o,t),1&h.mode&&aO(o,u,t),t=h,l=u;var m=t.updateQueue;if(null===m){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}if(0==(1&t)){aO(o,u,t),li();break e}l=Error(d(426))}else if(iP&&1&s.mode){var v=aI(a);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),aA(v,a,s,o,t),iG(ab(l,s));break e}}o=l=ab(l,s),4!==sL&&(sL=2),null===sF?sF=[o]:sF.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=aS(o,l,t);ol(o,y);break e;case 1:s=l;var b=o.type,_=o.stateNode;if(0==(128&o.flags)&&("function"==typeof b.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===sZ||!sZ.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=aT(o,s,t);ol(o,E);break e}}o=o.return}while(null!==o)}lu(n)}catch(e){t=e,sC===n&&null!==n&&(sC=n=n.return);continue}break}}function lr(){var e=sS.current;return sS.current=al,null===e?al:e}function li(){(0===sL||3===sL||2===sL)&&(sL=4),null===sA||0==(268435455&sM)&&0==(268435455&sP)||s6(sA,sx)}function lo(e,t){var n=sI;sI|=2;var r=lr();for((sA!==e||sx!==t)&&(sj=null,lt(e,t));;)try{la();break}catch(t){ln(e,t)}if(i4(),sI=n,sS.current=r,null!==sC)throw Error(d(261));return sA=null,sx=0,sL}function la(){for(;null!==sC;)ll(sC)}function ls(){for(;null!==sC&&!e6();)ll(sC)}function ll(e){var t=l(e.alternate,e,sD);e.memoizedProps=e.pendingProps,null===t?lu(e):sC=t,sT.current=null}function lu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=a1(n,t,sD))){sC=n;return}}else{if(null!==(n=a2(n,t))){n.flags&=32767,sC=n;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sL=6,sC=null;return}}if(null!==(t=t.sibling)){sC=t;return}sC=t=e}while(null!==t);0===sL&&(sL=5)}function lc(e,t,n){var r=tT,i=sO.transition;try{sO.transition=null,tT=1,ld(e,t,n,r)}finally{sO.transition=i,tT=r}return null}function ld(e,t,n,r){do lf();while(null!==sW);if(0!=(6&sI))throw Error(d(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(d(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(tw(e,o),e===sA&&(sC=sA=null,sx=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sG||(sG=!0,lb(tn,function(){return lf(),null})),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=sO.transition,sO.transition=null;var a=tT;tT=1;var s=sI;sI|=4,sT.current=null,se(e,n),sm(n,e),n8(rU),tK=!!rB,rU=rB=null,e.current=n,sv(n,e,i),e9(),sI=s,tT=a,sO.transition=o}else e.current=n;if(sG&&(sG=!1,sW=e,sq=i),0===(o=e.pendingLanes)&&(sZ=null),ts(n.stateNode,r),s1(e,e8()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(sV)throw sV=!1,e=sz,sz=null,e;return 0!=(1&sq)&&0!==e.tag&&lf(),0!=(1&(o=e.pendingLanes))?e===s$?sY++:(sY=0,s$=e):sY=0,ib(),null}function lf(){if(null!==sW){var e=tO(sq),t=sO.transition,n=tT;try{if(sO.transition=null,tT=16>e?16:e,null===sW)var r=!1;else{if(e=sW,sW=null,sq=0,0!=(6&sI))throw Error(d(331));var i=sI;for(sI|=4,a6=e.current;null!==a6;){var o=a6,a=o.child;if(0!=(16&a6.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(a6=u;null!==a6;){var c=a6;switch(c.tag){case 0:case 11:case 15:st(8,c,o)}var f=c.child;if(null!==f)f.return=c,a6=f;else for(;null!==a6;){var p=(c=a6).sibling,h=c.return;if(si(c),c===u){a6=null;break}if(null!==p){p.return=h,a6=p;break}a6=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}a6=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,a6=a;else for(;null!==a6;){if(o=a6,0!=(2048&o.flags))switch(o.tag){case 0:case 11:case 15:st(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,a6=y;break}a6=o.return}}var b=e.current;for(a6=b;null!==a6;){var _=(a=a6).child;if(0!=(2064&a.subtreeFlags)&&null!==_)_.return=a,a6=_;else for(a=b;null!==a6;){if(s=a6,0!=(2048&s.flags))try{switch(s.tag){case 0:case 11:case 15:sn(9,s)}}catch(e){lh(s,s.return,e)}if(s===a){a6=null;break}var E=s.sibling;if(null!==E){E.return=s.return,a6=E;break}a6=s.return}}if(sI=i,ib(),ta&&"function"==typeof ta.onPostCommitFiberRoot)try{ta.onPostCommitFiberRoot(to,e)}catch(e){}r=!0}return r}finally{tT=n,sO.transition=t}}return!1}function lp(e,t,n){t=aS(e,t=ab(n,t),1),e=oa(e,t,1),t=sQ(),null!==e&&(tE(e,1,t),s1(e,t))}function lh(e,t,n){if(3===e.tag)lp(e,e,n);else for(;null!==t;){if(3===t.tag){lp(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sZ||!sZ.has(r))){e=aT(t,e=ab(n,e),1),t=oa(t,e,1),e=sQ(),null!==t&&(tE(t,1,e),s1(t,e));break}}t=t.return}}function lm(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=sQ(),e.pingedLanes|=e.suspendedLanes&n,sA===e&&(sx&n)===n&&(4===sL||3===sL&&(130023424&sx)===sx&&500>e8()-sU?lt(e,0):sN|=n),s1(e,t)}function lg(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tp,0==(130023424&(tp<<=1))&&(tp=4194304)));var n=sQ();null!==(e=ot(e,t))&&(tE(e,t,n),s1(e,n))}function lv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),lg(e,n)}function ly(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(d(314))}null!==r&&r.delete(t),lg(e,n)}function lb(e,t){return e3(e,t)}function l_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lE(e,t,n,r){return new l_(e,t,n,r)}function lw(e){return!(!(e=e.prototype)||!e.isReactComponent)}function lS(e){if("function"==typeof e)return lw(e)?1:0;if(null!=e){if((e=e.$$typeof)===F)return 11;if(e===H)return 14}return 2}function lT(e,t){var n=e.alternate;return null===n?((n=lE(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lO(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)lw(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case L:return lI(n.children,i,o,t);case k:a=8,i|=8;break;case M:return(e=lE(12,n,t,2|i)).elementType=M,e.lanes=o,e;case B:return(e=lE(13,n,t,i)).elementType=B,e.lanes=o,e;case U:return(e=lE(19,n,t,i)).elementType=U,e.lanes=o,e;case V:return lA(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:a=10;break e;case N:a=9;break e;case F:a=11;break e;case H:a=14;break e;case j:a=16,r=null;break e}throw Error(d(130,null==e?e:typeof e,""))}return(t=lE(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function lI(e,t,n,r){return(e=lE(7,e,r,t)).lanes=n,e}function lA(e,t,n,r){return(e=lE(22,e,r,t)).elementType=V,e.lanes=n,e.stateNode={isHidden:!1},e}function lC(e,t,n){return(e=lE(6,e,null,t)).lanes=n,e}function lx(e,t,n){return(t=lE(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lD(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=t_(0),this.expirationTimes=t_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=t_(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function lR(e,t,n,r,i,o,a,s,l){return e=new lD(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=lE(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},or(o),e}function lL(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:R,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function lk(e){if(!e)return it;e=e._reactInternals;e:{if(eQ(e)!==e||1!==e.tag)throw Error(d(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(is(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(d(171))}if(1===e.tag){var n=e.type;if(is(n))return ic(e,n,t)}return t}function lM(e,t,n,r,i,o,a,s,l){return(e=lR(n,r,!0,e,i,o,a,s,l)).context=lk(null),n=e.current,(o=oo(r=sQ(),i=sJ(n))).callback=null!=t?t:null,oa(n,o,i),e.current.lanes=i,tE(e,i,r),s1(e,r),e}function lP(e,t,n,r){var i=t.current,o=sQ(),a=sJ(i);return n=lk(n),null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=oa(i,t,a))&&(s0(e,i,a,o),os(e,i,a)),a}function lN(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function lF(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lB(e,t){lF(e,t),(e=e.alternate)&&lF(e,t)}function lU(){return null}l=function(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps||ii.current)ax=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ax=!1,aQ(e,t,n);ax=0!=(131072&e.flags)}}else ax=!1,iP&&0!=(1048576&t.flags)&&iD(t,iS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;aK(e,t),e=t.pendingProps;var i=ia(t,ir.current);i6(t,n),i=oN(null,t,r,e,i,n);var o=oF();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,is(r)?(o=!0,id(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,or(t),i.updater=ah,t.stateNode=i,i._reactInternals=t,ay(t,r,e,n),t=aB(null,t,r,!0,o,n)):(t.tag=0,iP&&o&&iR(t),aD(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(aK(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=lS(r),e=af(r,e),i){case 0:t=aN(null,t,r,e,n);break e;case 1:t=aF(null,t,r,e,n);break e;case 11:t=aR(null,t,r,e,n);break e;case 14:t=aL(null,t,r,af(r.type,e),n);break e}throw Error(d(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:af(r,i),aN(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:af(r,i),aF(e,t,r,i,n);case 3:e:{if(aU(t),null===e)throw Error(d(387));r=t.pendingProps,i=(o=t.memoizedState).element,oi(e,t),ou(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){i=ab(Error(d(423)),t),t=aH(e,t,r,n,i);break e}if(r!==i){i=ab(Error(d(424)),t),t=aH(e,t,r,n,i);break e}for(iM=rq(t.stateNode.containerInfo.firstChild),ik=t,iP=!0,iN=null,n=iQ(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(iZ(),r===i){t=aX(e,t,n);break e}aD(e,t,r,n)}t=t.child}return t;case 5:return oy(t),null===e&&iH(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,rH(r,i)?a=null:null!==o&&rH(r,o)&&(t.flags|=32),aP(e,t),aD(e,t,a,n),t.child;case 6:return null===e&&iH(t),null;case 13:return az(e,t,n);case 4:return og(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=iX(t,null,r,n):aD(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:af(r,i),aR(e,t,r,i,n);case 7:return aD(e,t,t.pendingProps,n),t.child;case 8:case 12:return aD(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ie(iJ,r._currentValue),r._currentValue=a,null!==o){if(n1(o.value,a)){if(o.children===i.children&&!ii.current){t=aX(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=oo(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),i5(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(d(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),i5(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}}aD(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,i6(t,n),r=r(i=i9(i)),t.flags|=1,aD(e,t,r,n),t.child;case 14:return i=af(r=t.type,t.pendingProps),i=af(r.type,i),aL(e,t,r,i,n);case 15:return ak(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:af(r,i),aK(e,t),t.tag=1,is(r)?(e=!0,id(t)):e=!1,i6(t,n),ag(t,r,i),ay(t,r,i,n),aB(null,t,r,!0,e,n);case 19:return a$(e,t,n);case 22:return aM(e,t,n)}throw Error(d(156,t.tag))};var lH="function"==typeof reportError?reportError:function(e){console.error(e)};function lj(e){this._internalRoot=e}function lV(e){this._internalRoot=e}function lz(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function lZ(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function lG(){}function lW(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=lN(a);o.call(e)}}var a=lM(t,r,e,0,null,!1,!1,"",lG);return e._reactRootContainer=a,e[rQ]=a.current,rI(8===e.nodeType?e.parentNode:e),s7(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=lN(l);s.call(e)}}var l=lR(e,0,!1,null,null,!1,!1,"",lG);return e._reactRootContainer=l,e[rQ]=l.current,rI(8===e.nodeType?e.parentNode:e),s7(function(){lP(t,l,n,r)}),l}function lq(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=lN(a);s.call(e)}}lP(t,a,e,i)}else a=lW(n,t,e,i,r);return lN(a)}lV.prototype.render=lj.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(d(409));lP(e,t,null,null)},lV.prototype.unmount=lj.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;s7(function(){lP(null,e,null,null)}),t[rQ]=null}},lV.prototype.unstable_scheduleHydration=function(e){if(e){var t=tx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tB.length&&0!==t&&t<tB[n].priority;n++);tB.splice(n,0,e),0===n&&tz(e)}},tI=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=th(t.pendingLanes);0!==n&&(tS(t,1|n),s1(t,e8()),0==(6&sI)&&(sH=e8()+500,ib()))}break;case 13:s7(function(){var t=ot(e,1);null!==t&&s0(t,e,1,sQ())}),lB(e,1)}},tA=function(e){if(13===e.tag){var t=ot(e,134217728);null!==t&&s0(t,e,134217728,sQ()),lB(e,134217728)}},tC=function(e){if(13===e.tag){var t=sJ(e),n=ot(e,t);null!==n&&s0(n,e,t,sQ()),lB(e,t)}},tx=function(){return tT},tD=function(e,t){var n=tT;try{return tT=e,t()}finally{tT=n}},eR=function(e,t,n){switch(t){case"input":if(el(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r5(r);if(!i)throw Error(d(90));er(r),el(r,i)}}}break;case"textarea":em(e,n);break;case"select":null!=(t=n.value)&&ef(e,!!n.multiple,t,!1)}},eF=s8,eB=s7;var lY={usingClientEntryPoint:!1,Events:[r4,r3,r5,eP,eN,s8]},l$={findFiberByHostInstance:r2,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lK={bundleType:l$.bundleType,version:l$.version,rendererPackageName:l$.rendererPackageName,rendererConfig:l$.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=e2(e))?null:e.stateNode},findFiberByHostInstance:l$.findFiberByHostInstance||lU,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lX=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lX.isDisabled&&lX.supportsFiber)try{to=lX.inject(lK),ta=lX}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lY,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!lz(t))throw Error(d(200));return lL(e,t,null,n)},t.createRoot=function(e,t){if(!lz(e))throw Error(d(299));var n=!1,r="",i=lH;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=lR(e,1,!1,null,null,n,!1,r,i),e[rQ]=t.current,rI(8===e.nodeType?e.parentNode:e),new lj(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(d(188));throw Error(d(268,e=Object.keys(e).join(",")))}return e=null===(e=e2(t))?null:e.stateNode},t.flushSync=function(e){return s7(e)},t.hydrate=function(e,t,n){if(!lZ(t))throw Error(d(200));return lq(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!lz(e))throw Error(d(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=lH;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=lM(t,null,e,1,null!=n?n:null,i,!1,o,a),e[rQ]=t.current,rI(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new lV(t)},t.render=function(e,t,n){if(!lZ(t))throw Error(d(200));return lq(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!lZ(e))throw Error(d(40));return!!e._reactRootContainer&&(s7(function(){lq(null,null,e,!1,function(){e._reactRootContainer=null,e[rQ]=null})}),!0)},t.unstable_batchedUpdates=s8,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!lZ(n))throw Error(d(200));if(null==e||void 0===e._reactInternals)throw Error(d(38));return lq(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},56495:function(e,t,n){"use strict";var r=n(52790);t.createRoot=r.createRoot,r.hydrateRoot},52790:function(e,t,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(28509)},21817:function(e,t){"use strict";/**
 * @license React
 * 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.
 */function n(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,i=e[r];if(0<o(i,t))e[r]=t,e[n]=i,n=r;else break}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else if(u<i&&0>o(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a,s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],d=[],f=1,p=null,h=3,m=!1,g=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=r(d);null!==t;){if(null===t.callback)i(d);else if(t.startTime<=e)i(d),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(d)}}function w(e){if(v=!1,E(e),!g){if(null!==r(c))g=!0,k(S);else{var t=r(d);null!==t&&M(w,t.startTime-e)}}}function S(e,n){g=!1,v&&(v=!1,b(I),I=-1),m=!0;var o=h;try{for(E(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!x());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&i(c),E(n)}else i(c);p=r(c)}if(null!==p)var l=!0;else{var u=r(d);null!==u&&M(w,u.startTime-n),l=!1}return l}finally{p=null,h=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var T=!1,O=null,I=-1,A=5,C=-1;function x(){return!(t.unstable_now()-C<A)}function D(){if(null!==O){var e=t.unstable_now();C=e;var n=!0;try{n=O(!0,e)}finally{n?a():(T=!1,O=null)}}else T=!1}if("function"==typeof _)a=function(){_(D)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,L=R.port2;R.port1.onmessage=D,a=function(){L.postMessage(null)}}else a=function(){y(D,0)};function k(e){O=e,T||(T=!0,a())}function M(e,n){I=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,k(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=o+s,e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s,sortIndex:-1},o>a?(e.sortIndex=o,n(d,e),null===r(c)&&e===r(d)&&(v?(b(I),I=-1):v=!0,M(w,o-a))):(e.sortIndex=s,n(c,e),g||m||(g=!0,k(S))),e},t.unstable_shouldYield=x,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},18213:function(e,t,n){"use strict";e.exports=n(21817)},7019:function(e){let t=Object.freeze({Ame:"https://sy.to/spwfame",HevcCannotPlay:"https://sy.to/spwfamehv",AutoConvertExtensionAndDesktopApp:"https://sy.to/spwpcext",HeicThumbnailCannotDisplay:"https://sy.to/sprwdtsf",ExtensionKb:"https://sy.to/spextkb",ClientReleaseNote:"https://sy.to/spcrn",ClientTermsOfService:"https://sy.to/spctos",ClientPrivacyStatement:"https://sy.to/spcps",ClientHelpCenter:"https://sy.to/spchelp",ExtensionGuide:"https://sy.to/spcnonext",ClientKb:"https://sy.to/spckb",ClientCodecGuide:"https://sy.to/spcpctsf",UserNoPermission:"https://sy.to/sppermit",TransformAndReupload:"https://sy.to/spnovideo",UseMobileGuide:"https://sy.to/spmbtsf",SimilarGuide:"https://sy.to/smlit",SimilarClusterScheduleGuide:"https://sy.to/smnashb"}),n=Object.freeze({HevcInstall:"ms-windows-store://pdp?productid=9n4wgh0z6vhq&pos=0%2C0%2C1849%2C1080",HevcPurchase:"ms-windows-store://pdp?productid=9nmzlz57r3t7",HeifInstall:"ms-windows-store://pdp?productid=9pmmsr1cgpwg&pos=0%2C0%2C1849%2C1080"}),r="synofoto://",i="synofoto://settings/codec",o="https://utyautoupdate.synology.com/getUpdate",a="https://utyautoupdate-rc.synology.com/getUpdate";e.exports={SynoDocsLinks:t,ExternalUrl:n,PcClientProtocol:r,PcClientSettingsCodecProtocol:i,SynoAutoUpdateUrl:o,SynoAutoUpdateRcUrl:a}},17225: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)}i={value:!0},t.default=void 0;var i,o=f(n(67294)),a=f(n(45697)),s=n(22222),l=f(n(42473)),u=f(n(77854)),c=f(n(77021)),d=n(3354);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=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}).apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function m(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)}}function g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=w();return function(){var n,r=S(e);return n=t?Reflect.construct(r,arguments,S(this).constructor):r.apply(this,arguments),_(this,n)}}function _(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=.05,C=250,x=.3,D=function(e,t,n){return void 0!==n&&void 0!==t&&void 0!==e},R=(0,s.createSelector)(function(e){return e.top},function(e){return e.left},function(e){return e.scale},function(e,t,n){var r={cursor:"pointer"};return D(e,t,n)?O(O({},r),{},{transform:"translate3d(".concat(t,"px, ").concat(e,"px, 0) scale(").concat(n,")"),transformOrigin:"0 0"}):r}),L=(0,s.createSelector)(function(e){return e.top},function(e){return e.left},function(e){return e.scale},function(e){return e.imageDimensions},function(e){return e.containerDimensions},function(e,t,n,r,i){return D(e,t,n)?(0,d.getImageOverflow)(e,t,n,r,i):""}),k=(0,s.createSelector)(L,function(e){return[e.left||e.right?e.left?e.right?"":"pan-right":"pan-left":"pan-x",e.top||e.bottom?e.top?e.bottom?"":"pan-down":"pan-up":"pan-y"].join(" ").trim()}),M=function(e){v(n,e);var t=b(n);function n(){var e;h(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return I(E(e=t.call.apply(t,[this].concat(i))),"state",{}),I(E(e),"lastPointerUpTimeStamp",void 0),I(E(e),"lastPanPointerPosition",void 0),I(E(e),"lastPinchLength",void 0),I(E(e),"animation",void 0),I(E(e),"imageRef",void 0),I(E(e),"isImageLoaded",void 0),I(E(e),"originalOverscrollBehaviorY",void 0),I(E(e),"handleTouchStart",function(t){e.cancelAnimation();var n=t.touches;2===n.length?(e.lastPinchLength=(0,d.getPinchLength)(n),e.lastPanPointerPosition=null):1===n.length&&(e.lastPinchLength=null,e.pointerDown(n[0]),(0,d.tryCancelEvent)(t))}),I(E(e),"handleTouchMove",function(t){var n=t.touches;if(2===n.length)e.pinchChange(n),(0,d.tryCancelEvent)(t);else if(1===n.length){var r=e.pan(n[0]);if(!e.controlOverscrollViaCss){var i=L(e.state),o=r.left&&i.left>0||r.right&&i.right>0,a=r.up&&i.top>0||r.down&&i.bottom>0;if(!o&&!a)return;var s=r.left||r.right,l=r.up||r.down;if(l>2*s&&!a||s>2*l&&!o)return;(0,d.tryCancelEvent)(t)}}}),I(E(e),"handleTouchEnd",function(t){if(e.cancelAnimation(),0===t.touches.length&&1===t.changedTouches.length){if(e.lastPointerUpTimeStamp&&e.lastPointerUpTimeStamp+C>t.timeStamp){var n=(0,d.getRelativePosition)(t.changedTouches[0],e.imageRef.parentNode);e.doubleClick(n)}e.lastPointerUpTimeStamp=t.timeStamp,(0,d.tryCancelEvent)(t)}e.maybeAdjustCurrentTransform(x)}),I(E(e),"handleMouseDown",function(t){e.cancelAnimation(),e.pointerDown(t)}),I(E(e),"handleMouseMove",function(t){if(!t.buttons)return null;e.pan(t)}),I(E(e),"handleMouseDoubleClick",function(t){e.cancelAnimation();var n=(0,d.getRelativePosition)(t,e.imageRef.parentNode);e.doubleClick(n)}),I(E(e),"handleMouseWheel",function(t){e.cancelAnimation();var n=(0,d.getRelativePosition)(t,e.imageRef.parentNode);t.deltaY>0?e.state.scale>(0,d.getMinScale)(e.state,e.props)?(e.zoomOut(n),(0,d.tryCancelEvent)(t)):e.props.synoCloseZoomMode():t.deltaY<0&&e.state.scale<e.props.maxScale&&(e.zoomIn(n),(0,d.tryCancelEvent)(t))}),I(E(e),"handleImageLoad",function(t){e.debug("handleImageLoad"),e.isImageLoaded=!0,e.maybeHandleDimensionsChanged();var n=o.default.Children.only(e.props.children).onLoad;"function"==typeof n&&n(t)}),I(E(e),"handleZoomInClick",function(){e.cancelAnimation(),e.zoomIn()}),I(E(e),"handleZoomOutClick",function(){e.cancelAnimation(),e.zoomOut()}),I(E(e),"handleWindowResize",function(){return e.maybeHandleDimensionsChanged()}),I(E(e),"handleRefImage",function(t){e.imageRef&&(e.cancelAnimation(),e.imageRef.removeEventListener("touchmove",e.handleTouchMove)),e.imageRef=t,t&&e.imageRef.addEventListener("touchmove",e.handleTouchMove,{passive:!1});var n=o.default.Children.only(e.props.children).ref;(0,d.setRef)(n,t)}),I(E(e),"handleMouseEnterZoomButtonsEl",function(){e.setState({showZoomButtons:!0})}),I(E(e),"handleMouseLeaveZoomButtonsEl",function(){e.setState({showZoomButtons:!1})}),e}return g(n,[{key:"pointerDown",value:function(e){this.lastPanPointerPosition=(0,d.getRelativePosition)(e,this.imageRef.parentNode)}},{key:"pan",value:function(e){if(this.isTransformInitialized){if(!this.lastPanPointerPosition)return this.pointerDown(e),0;var t=(0,d.getRelativePosition)(e,this.imageRef.parentNode),n=t.x-this.lastPanPointerPosition.x,r=t.y-this.lastPanPointerPosition.y;this.lastPanPointerPosition=t;var i=this.state.top+r,o=this.state.left+n;return this.constrainAndApplyTransform(i,o,this.state.scale,0,0),{up:r>0?r:0,down:r<0?(0,d.negate)(r):0,right:n<0?(0,d.negate)(n):0,left:n>0?n:0}}}},{key:"doubleClick",value:function(e){"zoom"===String(this.props.doubleTapBehavior).toLowerCase()&&this.state.scale*(1+A)<this.props.maxScale?this.zoomIn(e,x,.3):this.applyInitialTransform(x)}},{key:"pinchChange",value:function(e){var t=(0,d.getPinchLength)(e),n=(0,d.getPinchMidpoint)(e),r=this.lastPinchLength?this.state.scale*t/this.lastPinchLength:this.state.scale;if(r<=(0,d.getMinScale)(this.state,this.props)){this.props.synoCloseZoomMode();return}this.zoom(r,n,A),this.lastPinchLength=t}},{key:"zoomIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;e=e||{x:this.state.containerDimensions.width/2,y:this.state.containerDimensions.height/2},this.zoom(this.state.scale*(1+n),e,0,t)}},{key:"zoomOut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;e=e||{x:this.state.containerDimensions.width/2,y:this.state.containerDimensions.height/2},this.zoom(this.state.scale*(n<1?n:.9),e,0,t)}},{key:"zoom",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.isTransformInitialized){var i=this.state,o=i.scale,a=i.top,s=i.left,l={top:t.y-a,left:t.x-s},u=this.getConstrainedScale(e,n),c=(u-o)/o,d=l.top*c,f=l.left*c,p=a-d,h=s-f;this.constrainAndApplyTransform(p,h,u,n,r)}}},{key:"maybeHandleDimensionsChanged",value:function(){var e=this;if(this.isImageReady){var t=(0,d.getContainerDimensions)(this.imageRef),n=(0,d.getDimensions)(this.imageRef),r=(0,d.isEqualDimensions)(n,(0,d.getDimensions)(this.state.imageDimensions));(0,d.isEqualDimensions)(t,(0,d.getDimensions)(this.state.containerDimensions))&&r||(this.cancelAnimation(),this.setState({containerDimensions:t,imageDimensions:n},function(){e.isTransformInitialized&&r?e.maybeAdjustCurrentTransform():e.applyInitialTransform()}),this.debug("Dimensions changed: Container: ".concat(t.width,", ").concat(t.height,", Image: ").concat(n.width,", ").concat(n.height)))}else this.debug("Image not loaded")}},{key:"handleAutoCloseZoomMode",value:function(e,t){this.isTransformInitialized&&(e!==this.state.scale||t!==this.state.showZoomButtons)&&(e<this.state.scale?clearTimeout(this.timer):this.state.scale<=(0,d.getMinScale)(this.state,this.props)&&!this.state.showZoomButtons&&(clearTimeout(this.timer),this.timer=setTimeout(this.props.synoCloseZoomMode,500)))}},{key:"constrainAndApplyTransform",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={top:e,left:t,scale:n};this.debug("Requesting transform: left ".concat(t,", top ").concat(e,", scale ").concat(n));var a=this.getCorrectedTransform(o,r)||o;return this.debug("Applying transform: left ".concat(a.left,", top ").concat(a.top,", scale ").concat(a.scale)),!(0,d.isEqualTransform)(a,this.state)&&(this.applyTransform(a,i),!0)}},{key:"applyTransform",value:function(e,t){var n=this,r=e.top,i=e.left,o=e.scale;if(t>0){var a=function e(){var a=r-n.state.top,s=i-n.state.left,l=o-n.state.scale,u={top:n.state.top+t*a,left:n.state.left+t*s,scale:n.state.scale+t*l},c={top:1,left:1,scale:.001},f=(0,d.snapToTarget)(u,{top:r,left:i,scale:o},c);(0,d.isEqualTransform)(f,n.state)||n.setState(f,function(){return n.animation=requestAnimationFrame(e)})};this.animation=requestAnimationFrame(a)}else this.setState({top:r,left:i,scale:o})}},{key:"getConstrainedScale",value:function(e,t){var n=1-t,r=1+t;return(0,d.constrain)((0,d.getMinScale)(this.state,this.props)*n,this.props.maxScale*r,e)}},{key:"getCorrectedTransform",value:function(e,t){var n=this.getConstrainedScale(e.scale,t),r=this.calculateNegativeSpace(n),i={width:Math.max(0,(0,d.negate)(r.width)),height:Math.max(0,(0,d.negate)(r.height))},o=this.props,a=o.position,s=o.initialTop,l=o.initialLeft,u=this.state,c=u.imageDimensions,f=u.containerDimensions,p=1+t,h={top:i.height?(0,d.constrain)((0,d.negate)(i.height)*p,i.height*p-i.height,e.top):"center"===a?(f.height-c.height*n)/2:s||0,left:i.width?(0,d.constrain)((0,d.negate)(i.width)*p,i.width*p-i.width,e.left):"center"===a?(f.width-c.width*n)/2:l||0,scale:n};return(0,d.isEqualTransform)(h,e)?null:h}},{key:"maybeAdjustCurrentTransform",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;(e=this.getCorrectedTransform(this.state,0))&&this.applyTransform(e,t)}},{key:"applyInitialTransform",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.state,r=n.imageDimensions,i=n.containerDimensions,o=this.props,a=o.position,s=o.initialScale,u=o.maxScale,c=o.initialTop,f=o.initialLeft,p="auto"===String(s).toLowerCase()?(0,d.getAutofitScale)(i,r):s,h=(0,d.getMinScale)(this.state,this.props);if(h>u){(0,l.default)(!1,"minScale cannot exceed maxScale.");return}if(p<h||p>u){(0,l.default)(!1,"initialScale must be between minScale and maxScale.");return}"center"===a?((0,l.default)(void 0===c,"initialTop prop should not be supplied with position=center. It was ignored."),(0,l.default)(void 0===f,"initialLeft prop should not be supplied with position=center. It was ignored."),e={top:(i.width-r.width*p)/2,left:(i.height-r.height*p)/2}):e={top:c||0,left:f||0},this.constrainAndApplyTransform(e.top,e.left,p,0,t)}},{key:"render",value:function(){var e=this,t=o.default.Children.only(this.props.children),n=this.props,r=n.className,i=n.zoomButtons,a=n.zoomButtonsClassName,s=n.zoomButtonsEl,l=n.maxScale,u=n.debug,f=n.style,h=this.state.scale,m=O({width:"100%",height:"100%",overflow:"hidden",touchAction:this.controlOverscrollViaCss?k(this.state)||"none":void 0,opacity:this.isImageReady&&this.isTransformInitialized?1:0},f),g=s;return o.default.createElement("div",{style:m,className:r},i&&this.isImageReady&&this.isTransformInitialized&&o.default.createElement(g,{scale:h,minScale:(0,d.getMinScale)(this.state,this.props),maxScale:l,onZoomOutClick:this.handleZoomOutClick,onZoomInClick:this.handleZoomInClick,onResetClick:function(){e.applyInitialTransform(x)},className:a,onMouseEnter:this.handleMouseEnterZoomButtonsEl,onMouseLeave:this.handleMouseLeaveZoomButtonsEl}),u&&o.default.createElement(c.default,p({},this.state,{overflow:L(this.state)})),o.default.cloneElement(t,{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onDoubleClick:this.handleMouseDoubleClick,onWheel:this.handleMouseWheel,onDragStart:d.tryCancelEvent,onLoad:this.handleImageLoad,onContextMenu:d.tryCancelEvent,ref:this.handleRefImage,style:R(this.state)}))}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize),this.maybeHandleDimensionsChanged()}},{key:"componentDidUpdate",value:function(e,t){this.maybeHandleDimensionsChanged(),this.handleAutoCloseZoomMode(t.scale,t.showZoomButtons)}},{key:"componentWillUnmount",value:function(){this.cancelAnimation(),this.imageRef.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("resize",this.handleWindowResize)}},{key:"isImageReady",get:function(){return this.isImageLoaded||this.imageRef&&"IMG"!==this.imageRef.tagName}},{key:"isTransformInitialized",get:function(){return D(this.state.top,this.state.left,this.state.scale)}},{key:"controlOverscrollViaCss",get:function(){return window.CSS&&window.CSS.supports("touch-action","pan-up")}},{key:"calculateNegativeSpace",value:function(e){var t=this.state,n=t.containerDimensions,r=t.imageDimensions;return{width:n.width-e*r.width,height:n.height-e*r.height}}},{key:"cancelAnimation",value:function(){this.animation&&cancelAnimationFrame(this.animation)}},{key:"debug",value:function(e){this.props.debug&&console.log(e)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.initialTop!==t.initialTop||e.initialLeft!==t.initialLeft||e.initialScale!==t.initialScale||e.position!==t.position?{position:e.position,initialScale:e.initialScale,initialTop:e.initialTop,initialLeft:e.initialLeft}:null}}]),n}(o.default.Component);t.default=M,M.defaultProps={initialScale:"auto",minScale:"auto",maxScale:1,position:"topLeft",zoomButtons:!0,zoomButtonsClassName:"",zoomButtonsEl:u.default,synoCloseZoomMode:function(){},style:{},className:"",doubleTapBehavior:"reset"},M.propTypes={children:a.default.element.isRequired,initialScale:a.default.oneOfType([a.default.number,a.default.string]),minScale:a.default.oneOfType([a.default.number,a.default.string]),maxScale:a.default.number,position:a.default.oneOf(["topLeft","center"]),zoomButtons:a.default.bool,zoomButtonsClassName:a.default.string,zoomButtonsEl:a.default.elementType,synoCloseZoomMode:a.default.func,style:a.default.object,className:a.default.string,doubleTapBehavior:a.default.oneOf(["reset","zoom"]),initialTop:a.default.number,initialLeft:a.default.number}},77021:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(67294));function i(e){return e&&e.__esModule?e:{default:e}}var o={position:"absolute",marginTop:"40px",marginLeft:"5px",backgroundColor:"rgba(0,0,0,0)",zIndex:"1000",color:"white"},a=function(e){var t=e.top,n=e.left,i=e.scale,a=e.overflow,s=[a.top>0?"top":"",a.right>0?"right":"",a.bottom>0?"bottom":"",a.left>0?"left":""].filter(function(e){return e.length}).join(", ")||"none";return r.default.createElement("div",{style:o},r.default.createElement("div",null,"top: ".concat(t)),r.default.createElement("div",null,"left: ".concat(n)),r.default.createElement("div",null,"scale: ".concat(i)),r.default.createElement("div",null,"overflow: ".concat(s)))};t.default=a},3354:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.negate=t.isEqualTransform=t.isEqualDimensions=t.getRequiredImagePosition=t.getRelativePosition=t.getPinchMidpoint=t.getPinchLength=t.getMinScale=t.getImageOverflow=t.getDimensions=t.getContainerDimensions=t.getAutofitScale=t.constrain=void 0,t.setRef=g,t.tryCancelEvent=t.snapToTarget=void 0;var r=n(22222);function i(e,t){return u(e)||l(e,t)||a(e,t)||o()}function o(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}function u(e){if(Array.isArray(e))return e}var c=function(e,t,n){return Math.abs(t.top-e.top)<n.top&&Math.abs(t.left-e.left)<n.left&&Math.abs(t.scale-e.scale)<n.scale?t:e};t.snapToTarget=c;var d=function(e,t,n){return Math.min(t,Math.max(e,n))};t.constrain=d;var f=function(e){return -1*e};t.negate=f;var p=function(e,t){var n=e.clientX,r=e.clientY,i=t.getBoundingClientRect();return{x:n-i.left,y:r-i.top}};t.getRelativePosition=p;var h=function(e){var t=i(e,2),n=t[0],r=t[1];return{x:(n.clientX+r.clientX)/2,y:(n.clientY+r.clientY)/2}};t.getPinchMidpoint=h;var m=function(e){var t=i(e,2),n=t[0],r=t[1];return Math.sqrt(Math.pow(n.clientY-r.clientY,2)+Math.pow(n.clientX-r.clientX,2))};function g(e,t){"function"==typeof e?e(t):e&&(e.current=t)}t.getPinchLength=m;var v=function(e,t){return void 0!==e&&void 0!==t&&e.width===t.width&&e.height===t.height};t.isEqualDimensions=v;var y=function(e){if(void 0!==e)return{width:e.offsetWidth||e.width,height:e.offsetHeight||e.height}};t.getDimensions=y;var b=function(e){return{width:e.parentNode.offsetWidth,height:e.parentNode.offsetHeight}};t.getContainerDimensions=b;var _=function(e,t){return void 0!==e&&void 0!==t&&S(e.top,5)===S(t.top,5)&&S(e.left,5)===S(t.left,5)&&S(e.scale,5)===S(t.scale,5)};t.isEqualTransform=_;var E=function(e,t){var n=t||{},r=n.width,i=n.height;return r>0&&i>0?Math.min(e.width/r,e.height/i,1):1};t.getAutofitScale=E;var w=(0,r.createSelector)(function(e){return e.containerDimensions},function(e){return e.imageDimensions},function(e,t){return t.minScale},function(e,t,n){return"auto"===String(n).toLowerCase()?E(e,t):n||1});function S(e,t){if(t&&null!=e){var n=(String(e)+"e").split("e");return+((n=(String(Math.round(n[0]+"e"+(+n[1]+t)))+"e").split("e"))[0]+"e"+(+n[1]-t))}return Math.round(e)}t.getMinScale=w;var T=function(e){return!1!==e.cancelable&&(e.preventDefault(),!0)};function O(e,t,n,r){var i=f(e);return i>0?i:0}function I(e,t,n,r){var i=f(e);return i>0?i:0}function A(e,t,n,r){var i=Math.max(0,t*n.width-r.width);return i>0?i-f(e):0}function C(e,t,n,r){var i=Math.max(0,t*n.height-r.height);return i>0?i-f(e):0}t.tryCancelEvent=T;var x=function(e,t,n,r,i){return{top:I(e,n,r,i),right:A(t,n,r,i),bottom:C(e,n,r,i),left:O(t,n,r,i)}};t.getImageOverflow=x;var D=function(e,t,n,r){x()};t.getRequiredImagePosition=D},77854:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(67294)),i=o(n(45697));function o(e){return e&&e.__esModule?e:{default:e}}n(91073);var a={position:"absolute",zIndex:1e3},s=function(e){var t=e.disabled,n=e.onClick;return r.default.createElement("button",{className:"iconButton",style:{margin:"10px"},onClick:n,disabled:t},"-")},l=function(e){var t=e.disabled,n=e.onClick;return r.default.createElement("button",{className:"iconButton",style:{margin:"10px",marginLeft:"0px"},onClick:n,disabled:t},"+")},u=function(e){var t=e.scale,n=e.minScale,i=e.maxScale,o=e.onZoomInClick,u=e.onZoomOutClick;return r.default.createElement("div",{style:a},r.default.createElement(s,{onClick:u,disabled:t<=n}),r.default.createElement(l,{onClick:o,disabled:t>=i}))};u.propTypes={scale:i.default.number.isRequired,minScale:i.default.number.isRequired,maxScale:i.default.number.isRequired,onZoomInClick:i.default.func.isRequired,onZoomOutClick:i.default.func.isRequired};var c=u;t.default=c},79367:function(e,t,n){e=n.nmd(e),/*!
	Autosize 3.0.21
	license: MIT
	http://www.jacklmoore.com/autosize
*/function(n,r){"function"==typeof define&&define.amd?define(["exports","module"],r):r(t,e)}(0,function(e,t){"use strict";var n="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),r=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(!(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||n.has(e))){var t=null,i=e.clientWidth,o=null,a=function(){e.clientWidth!==i&&f()},s=(function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",f,!1),e.removeEventListener("keyup",f,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",f,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),n.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",f,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",f,!1),e.addEventListener("autosize:update",f,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:s,update:f}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),isNaN(t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth))&&(t=0),f()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){var n=e.style.height,r=c(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var a=e.scrollHeight+t;if(0===e.scrollHeight){e.style.height=n;return}e.style.height=a+"px",i=e.clientWidth,r.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}function f(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i!==t?"hidden"===n.overflowY&&(u("scroll"),d(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),d(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==i){o=i;var a=r("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}}function o(e){var t=n.get(e);t&&t.destroy()}function a(e){var t=n.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return i(e,t)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.exports=s})},52945:function(e,t,n){e.exports={default:n(88077),__esModule:!0}},85861:function(e,t,n){e.exports={default:n(98339),__esModule:!0}},32242:function(e,t,n){e.exports={default:n(44003),__esModule:!0}},85345:function(e,t,n){e.exports={default:n(92912),__esModule:!0}},93516:function(e,t,n){e.exports={default:n(99583),__esModule:!0}},64275:function(e,t,n){e.exports={default:n(3276),__esModule:!0}},99663:function(e,t){"use strict";var n;n=!0,t.default=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}},22600:function(e,t,n){"use strict";r=!0;var r,i=o(n(32242));function o(e){return e&&e.__esModule?e:{default:e}}t.default=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),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},88239:function(e,t,n){"use strict";r=!0;var r,i=o(n(52945));function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||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}},93196:function(e,t,n){"use strict";r=!0;var r,i=s(n(85345)),o=s(n(85861)),a=s(n(72444));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,a.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},49135:function(e,t,n){"use strict";r=!0;var r,i=o(n(72444));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((void 0===t?"undefined":(0,i.default)(t))==="object"||"function"==typeof t)?t:e}},72444:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(64275)),i=a(n(93516)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},88077:function(e,t,n){n(80529),e.exports=n(94731).Object.assign},98339:function(e,t,n){n(96924);var r=n(94731).Object;e.exports=function(e,t){return r.create(e,t)}},44003:function(e,t,n){n(1001);var r=n(94731).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},92912:function(e,t,n){n(70845),e.exports=n(94731).Object.setPrototypeOf},99583:function(e,t,n){n(83835),n(6519),n(54427),n(19089),e.exports=n(94731).Symbol},3276:function(e,t,n){n(83036),n(46740),e.exports=n(27613).f("iterator")},71449:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},65345:function(e){e.exports=function(){}},26504:function(e,t,n){var r=n(89151);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},44389:function(e,t,n){var r=n(64874),i=n(68317),o=n(77557);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},84499:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},94731:function(e){var t=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=t)},11821:function(e,t,n){var r=n(71449);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},11605:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},95810:function(e,t,n){e.exports=!n(93777)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},72571:function(e,t,n){var r=n(89151),i=n(99362).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},35568:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},52052:function(e,t,n){var r=n(99656),i=n(32614),o=n(43416);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},49901:function(e,t,n){var r=n(99362),i=n(94731),o=n(11821),a=n(96519),s="prototype",l=function(e,t,n){var u,c,d,f=e&l.F,p=e&l.G,h=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,y=p?i:i[t]||(i[t]={}),b=y[s],_=p?r:h?r[t]:(r[t]||{})[s];for(u in p&&(n=t),n)(c=!f&&_&&void 0!==_[u])&&u in y||(d=c?_[u]:n[u],y[u]=p&&"function"!=typeof _[u]?n[u]:g&&c?o(d,r):v&&_[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&a(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},93777:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},99362:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},3571:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},96519:function(e,t,n){var r=n(21738),i=n(38051);e.exports=n(95810)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},10203:function(e,t,n){e.exports=n(99362).document&&document.documentElement},93254:function(e,t,n){e.exports=!n(95810)&&!n(93777)(function(){return 7!=Object.defineProperty(n(72571)("div"),"a",{get:function(){return 7}}).a})},72312:function(e,t,n){var r=n(84499);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},57539:function(e,t,n){var r=n(84499);e.exports=Array.isArray||function(e){return"Array"==r(e)}},89151:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},69163:function(e,t,n){"use strict";var r=n(34055),i=n(38051),o=n(10420),a={};n(96519)(a,n(25346)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},54346:function(e,t,n){"use strict";var r=n(57346),i=n(49901),o=n(11865),a=n(96519),s=n(3571),l=n(33135),u=n(69163),c=n(10420),d=n(91146),f=n(25346)("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",g="values",v=function(){return this};e.exports=function(e,t,n,y,b,_,E){u(n,t,y);var w,S,T,O=function(e){return!p&&e in x?x[e]:function(){return new n(this,e)}},I=t+" Iterator",A=b==g,C=!1,x=e.prototype,D=x[f]||x[h]||b&&x[b],R=D||O(b),L=b?A?O("entries"):R:void 0,k="Array"==t&&x.entries||D;if(!k||(T=d(k.call(new e)))===Object.prototype||(c(T,I,!0),r||s(T,f)||a(T,f,v)),A&&D&&D.name!==g&&(C=!0,R=function(){return D.call(this)}),(!r||E)&&(p||C||!x[f])&&a(x,f,R),l[t]=R,l[I]=v,b){if(w={values:A?R:O(g),keys:_?R:O(m),entries:L},E)for(S in w)S in x||o(x,S,w[S]);else i(i.P+i.F*(p||C),t,w)}return w}},54098:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},33135:function(e){e.exports={}},42779:function(e,t,n){var r=n(99656),i=n(64874);e.exports=function(e,t){for(var n,o=i(e),a=r(o),s=a.length,l=0;s>l;)if(o[n=a[l++]]===t)return n}},57346:function(e){e.exports=!0},55965:function(e,t,n){var r=n(3535)("meta"),i=n(89151),o=n(3571),a=n(21738).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(93777)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},p=function(e){return u&&h.NEED&&l(e)&&!o(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},50266:function(e,t,n){"use strict";var r=n(99656),i=n(32614),o=n(43416),a=n(19411),s=n(72312),l=Object.assign;e.exports=!l||n(93777)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=i.f,d=o.f;l>u;)for(var f,p=s(arguments[u++]),h=c?r(p).concat(c(p)):r(p),m=h.length,g=0;m>g;)d.call(p,f=h[g++])&&(n[f]=p[f]);return n}:l},34055:function(e,t,n){var r=n(26504),i=n(20121),o=n(35568),a=n(46210)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(72571)("iframe"),r=o.length,i="<",a=">";for(t.style.display="none",n(10203).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;r--;)delete u[l][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},21738:function(e,t,n){var r=n(26504),i=n(93254),o=n(25408),a=Object.defineProperty;t.f=n(95810)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},20121:function(e,t,n){var r=n(21738),i=n(26504),o=n(99656);e.exports=n(95810)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},18437:function(e,t,n){var r=n(43416),i=n(38051),o=n(64874),a=n(25408),s=n(3571),l=n(93254),u=Object.getOwnPropertyDescriptor;t.f=n(95810)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},42029:function(e,t,n){var r=n(64874),i=n(51471).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},51471:function(e,t,n){var r=n(36152),i=n(35568).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},32614:function(e,t){t.f=Object.getOwnPropertySymbols},91146:function(e,t,n){var r=n(3571),i=n(19411),o=n(46210)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return r(e=i(e),o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},36152:function(e,t,n){var r=n(3571),i=n(64874),o=n(44389)(!1),a=n(46210)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},99656:function(e,t,n){var r=n(36152),i=n(35568);e.exports=Object.keys||function(e){return r(e,i)}},43416:function(e,t){t.f=({}).propertyIsEnumerable},38051:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},11865:function(e,t,n){e.exports=n(96519)},29300:function(e,t,n){var r=n(89151),i=n(26504),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(11821)(Function.call,n(18437).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},10420:function(e,t,n){var r=n(21738).f,i=n(3571),o=n(25346)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},46210:function(e,t,n){var r=n(77571)("keys"),i=n(3535);e.exports=function(e){return r[e]||(r[e]=i(e))}},77571:function(e,t,n){var r=n(99362),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},2222:function(e,t,n){var r=n(41485),i=n(11605);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):(o-55296<<10)+(a-56320)+65536}}},77557:function(e,t,n){var r=n(41485),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},41485:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},64874:function(e,t,n){var r=n(72312),i=n(11605);e.exports=function(e){return r(i(e))}},68317:function(e,t,n){var r=n(41485),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},19411:function(e,t,n){var r=n(11605);e.exports=function(e){return Object(r(e))}},25408:function(e,t,n){var r=n(89151);e.exports=function(e,t){var n,i;if(!r(e))return e;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e))||"function"==typeof(n=e.valueOf)&&!r(i=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3535:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},21875:function(e,t,n){var r=n(99362),i=n(94731),o=n(57346),a=n(27613),s=n(21738).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},27613:function(e,t,n){t.f=n(25346)},25346:function(e,t,n){var r=n(77571)("wks"),i=n(3535),o=n(99362).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},61092:function(e,t,n){"use strict";var r=n(65345),i=n(54098),o=n(33135),a=n(64874);e.exports=n(54346)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},80529:function(e,t,n){var r=n(49901);r(r.S+r.F,"Object",{assign:n(50266)})},96924:function(e,t,n){var r=n(49901);r(r.S,"Object",{create:n(34055)})},1001:function(e,t,n){var r=n(49901);r(r.S+!n(95810)*r.F,"Object",{defineProperty:n(21738).f})},70845:function(e,t,n){var r=n(49901);r(r.S,"Object",{setPrototypeOf:n(29300).set})},6519:function(){},83036:function(e,t,n){"use strict";var r=n(2222)(!0);n(54346)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},83835:function(e,t,n){"use strict";var r=n(99362),i=n(3571),o=n(95810),a=n(49901),s=n(11865),l=n(55965).KEY,u=n(93777),c=n(77571),d=n(10420),f=n(3535),p=n(25346),h=n(27613),m=n(21875),g=n(42779),v=n(52052),y=n(57539),b=n(26504),_=n(64874),E=n(25408),w=n(38051),S=n(34055),T=n(42029),O=n(18437),I=n(21738),A=n(99656),C=O.f,x=I.f,D=T.f,R=r.Symbol,L=r.JSON,k=L&&L.stringify,M="prototype",P=p("_hidden"),N=p("toPrimitive"),F={}.propertyIsEnumerable,B=c("symbol-registry"),U=c("symbols"),H=c("op-symbols"),j=Object[M],V="function"==typeof R,z=r.QObject,Z=!z||!z[M]||!z[M].findChild,G=o&&u(function(){return 7!=S(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=C(j,t);r&&delete j[t],x(e,t,n),r&&e!==j&&x(j,t,r)}:x,W=function(e){var t=U[e]=S(R[M]);return t._k=e,t},q=V&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},Y=function(e,t,n){return(e===j&&Y(H,t,n),b(e),t=E(t,!0),b(n),i(U,t))?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=S(n,{enumerable:w(0,!1)})):(i(e,P)||x(e,P,w(1,{})),e[P][t]=!0),G(e,t,n)):x(e,t,n)},$=function(e,t){b(e);for(var n,r=v(t=_(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},K=function(e,t){return void 0===t?S(e):$(S(e),t)},X=function(e){var t=F.call(this,e=E(e,!0));return(!(this===j&&i(U,e))||!!i(H,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,P)&&this[P][e])||t)},Q=function(e,t){if(e=_(e),t=E(t,!0),!(e===j&&i(U,t))||i(H,t)){var n=C(e,t);return n&&i(U,t)&&!(i(e,P)&&e[P][t])&&(n.enumerable=!0),n}},J=function(e){for(var t,n=D(_(e)),r=[],o=0;n.length>o;)i(U,t=n[o++])||t==P||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===j,r=D(n?H:_(e)),o=[],a=0;r.length>a;)i(U,t=r[a++])&&(!n||i(j,t))&&o.push(U[t]);return o};V||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===j&&t.call(H,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),G(this,e,w(1,n))};return o&&Z&&G(j,e,{configurable:!0,set:t}),W(e)})[M],"toString",function(){return this._k}),O.f=Q,I.f=Y,n(51471).f=T.f=J,n(43416).f=X,n(32614).f=ee,o&&!n(57346)&&s(j,"propertyIsEnumerable",X,!0),h.f=function(e){return W(p(e))}),a(a.G+a.W+!V*a.F,{Symbol:R});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),en=0;et.length>en;)p(et[en++]);for(var et=A(p.store),en=0;et.length>en;)m(et[en++]);a(a.S+!V*a.F,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(q(e))return g(B,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),a(a.S+!V*a.F,"Object",{create:K,defineProperty:Y,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),L&&a(a.S+a.F*(!V||u(function(){var e=R();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))})),"JSON",{stringify:function(e){if(!(void 0===e||q(e))){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return t=r[1],"function"==typeof t&&(n=t),(n||!y(t))&&(t=function(e,t){if(n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,k.apply(L,r)}}}),R[M][N]||n(96519)(R[M],N,R[M].valueOf),d(R,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},54427:function(e,t,n){n(21875)("asyncIterator")},19089:function(e,t,n){n(21875)("observable")},46740:function(e,t,n){n(61092);for(var r=n(99362),i=n(96519),o=n(33135),a=n(25346)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=s[l],c=r[u],d=c&&c.prototype;d&&!d[a]&&i(d,a,u),o[u]=o.Array}},94184:function(e){!/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i))e.push(n.apply(null,i));else if("object"===o)for(var a in i)t.call(i,a)&&i[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=n:"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},31934:function(e){var t=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]};e.exports=t},40452:function(e,t,n){!function(r,i,o){e.exports=t=i(n(78249),n(98269),n(68214),n(90888),n(75109))}(0,function(e){return!function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],s=[],l=[],u=[],c=[],d=[],f=[],p=[];!function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,i[n]=h,o[h]=n;var m=e[n],g=e[m],v=e[g],y=257*e[h]^16843008*h;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,u[n]=y;var y=16843009*v^65537*g^257*m^16843008*n;c[h]=y<<24|y>>>8,d[h]=y<<16|y>>>16,f[h]=y<<8|y>>>24,p[h]=y,n?(n=m^e[e[e[v^m]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=((this._nRounds=n+6)+1)*4,o=this._keySchedule=[],a=0;a<r;a++)if(a<n)o[a]=t[a];else{var s=o[a-1];a%n?n>6&&a%n==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):s=(i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s])^h[a/n|0]<<24,o[a]=o[a-n]^s}for(var l=this._invKeySchedule=[],u=0;u<r;u++){var a=r-u;if(u%4)var s=o[a];else var s=o[a-4];u<4||a<=4?l[u]=s:l[u]=c[i[s>>>24]]^d[i[s>>>16&255]]^f[i[s>>>8&255]]^p[i[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,u,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,d,f,p,o);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,h=1;h<l;h++){var m=r[u>>>24]^i[c>>>16&255]^o[d>>>8&255]^a[255&f]^n[p++],g=r[c>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&u]^n[p++],v=r[d>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&c]^n[p++],y=r[f>>>24]^i[u>>>16&255]^o[c>>>8&255]^a[255&d]^n[p++];u=m,c=g,d=v,f=y}var m=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^n[p++],g=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^n[p++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[p++],y=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[p++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=n._createHelper(m)}(),e.AES})},75109:function(e,t,n){!function(r,i,o){e.exports=t=i(n(78249),n(90888))}(0,function(e){e.lib.Cipher||function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,o=n.BufferedBlockAlgorithm,a=t.enc;a.Utf8;var s=a.Base64,l=t.algo.EvpKDF,u=n.Cipher=o.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:g}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var c=t.mode={},d=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=c.CBC=function(){var e=d.extend();function t(e,t,n){var r=this._iv;if(r){var i=r;this._iv=void 0}else var i=this._prevBlock;for(var o=0;o<n;o++)e[t+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);r.decryptBlock(e,n),t.call(this,e,n,i),this._prevBlock=o}}),e}(),p=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var l=i.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:p}),reset:function(){u.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4});var h=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=i.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(s)},parse:function(e){var t=s.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=i.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return h.create({ciphertext:t,salt:r})}},g=n.SerializableCipher=r.extend({cfg:r.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return h.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=l.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,h.create({key:o,iv:a,salt:r})}},y=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=g.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,g.decrypt.call(this,e,t,i.key,r)}})}()})},78249:function(e,t){!function(n,r){e.exports=t=r()}(0,function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],t!=n?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var t=t,n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*l,i);if(l){for(var c=0;c<l;c+=o)this._doProcessBlock(r,c);var d=r.splice(0,l);n.sigBytes-=u}return new a.init(d,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=r.algo={};return r}(Math);return e})},98269:function(e,t,n){!function(r,i){e.exports=t=i(n(78249))}(0,function(e){return!function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,l=r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|l)<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},90888:function(e,t,n){!function(r,i,o){e.exports=t=i(n(78249),n(62783),n(89824))}(0,function(e){return!function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),o=i.create(),a=o.words,s=n.keySize,l=n.iterations;a.length<s;){u&&r.update(u);var u=r.update(e).finalize(t);r.reset();for(var c=1;c<l;c++)u=r.finalize(u),r.reset();o.concat(u)}return o.sigBytes=4*s,o}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF})},89824:function(e,t,n){!function(r,i){e.exports=t=i(n(78249))}(0,function(e){!function(){var t=e,n=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,u=0;u<n;u++)s[u]^=1549556828,l[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()})},68214:function(e,t,n){!function(r,i){e.exports=t=i(n(78249))}(0,function(e){return!function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],E=e[t+10],w=e[t+11],S=e[t+12],T=e[t+13],O=e[t+14],I=e[t+15],A=o[0],C=o[1],x=o[2],D=o[3];A=u(A,C,x,D,a,7,s[0]),D=u(D,A,C,x,l,12,s[1]),x=u(x,D,A,C,p,17,s[2]),C=u(C,x,D,A,h,22,s[3]),A=u(A,C,x,D,m,7,s[4]),D=u(D,A,C,x,g,12,s[5]),x=u(x,D,A,C,v,17,s[6]),C=u(C,x,D,A,y,22,s[7]),A=u(A,C,x,D,b,7,s[8]),D=u(D,A,C,x,_,12,s[9]),x=u(x,D,A,C,E,17,s[10]),C=u(C,x,D,A,w,22,s[11]),A=u(A,C,x,D,S,7,s[12]),D=u(D,A,C,x,T,12,s[13]),x=u(x,D,A,C,O,17,s[14]),C=u(C,x,D,A,I,22,s[15]),A=c(A,C,x,D,l,5,s[16]),D=c(D,A,C,x,v,9,s[17]),x=c(x,D,A,C,w,14,s[18]),C=c(C,x,D,A,a,20,s[19]),A=c(A,C,x,D,g,5,s[20]),D=c(D,A,C,x,E,9,s[21]),x=c(x,D,A,C,I,14,s[22]),C=c(C,x,D,A,m,20,s[23]),A=c(A,C,x,D,_,5,s[24]),D=c(D,A,C,x,O,9,s[25]),x=c(x,D,A,C,h,14,s[26]),C=c(C,x,D,A,b,20,s[27]),A=c(A,C,x,D,T,5,s[28]),D=c(D,A,C,x,p,9,s[29]),x=c(x,D,A,C,y,14,s[30]),C=c(C,x,D,A,S,20,s[31]),A=d(A,C,x,D,g,4,s[32]),D=d(D,A,C,x,b,11,s[33]),x=d(x,D,A,C,w,16,s[34]),C=d(C,x,D,A,O,23,s[35]),A=d(A,C,x,D,l,4,s[36]),D=d(D,A,C,x,m,11,s[37]),x=d(x,D,A,C,y,16,s[38]),C=d(C,x,D,A,E,23,s[39]),A=d(A,C,x,D,T,4,s[40]),D=d(D,A,C,x,a,11,s[41]),x=d(x,D,A,C,h,16,s[42]),C=d(C,x,D,A,v,23,s[43]),A=d(A,C,x,D,_,4,s[44]),D=d(D,A,C,x,S,11,s[45]),x=d(x,D,A,C,I,16,s[46]),C=d(C,x,D,A,p,23,s[47]),A=f(A,C,x,D,a,6,s[48]),D=f(D,A,C,x,y,10,s[49]),x=f(x,D,A,C,O,15,s[50]),C=f(C,x,D,A,g,21,s[51]),A=f(A,C,x,D,S,6,s[52]),D=f(D,A,C,x,h,10,s[53]),x=f(x,D,A,C,E,15,s[54]),C=f(C,x,D,A,l,21,s[55]),A=f(A,C,x,D,b,6,s[56]),D=f(D,A,C,x,I,10,s[57]),x=f(x,D,A,C,v,15,s[58]),C=f(C,x,D,A,T,21,s[59]),A=f(A,C,x,D,m,6,s[60]),D=f(D,A,C,x,w,10,s[61]),x=f(x,D,A,C,p,15,s[62]),C=f(C,x,D,A,_,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+C|0,o[2]=o[2]+x|0,o[3]=o[3]+D|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,n[(i+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,e.sigBytes=(n.length+1)*4,this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5})},62783:function(e,t,n){!function(r,i){e.exports=t=i(n(78249))}(0,function(e){return!function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)a[u]=0|e[t+u];else{var c=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=c<<1|c>>>31}var d=(r<<5|r>>>27)+l+a[u];u<20?d+=(i&o|~i&s)+1518500249:u<40?d+=(i^o^s)+1859775393:u<60?d+=(i&o|i&s|o&s)-1894007588:d+=(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),e.SHA1})},27484:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",u="month",c="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),o=n-i<0,a=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:u,y:d,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:c})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var E=function(e){return e instanceof O},w=function(e,t,n){var r;if(!e)return b;if("string"==typeof e)_[e]&&(r=e),t&&(_[e]=t,r=e);else{var i=e.name;_[i]=e,r=i}return!n&&r&&(b=r),r||!n&&b},S=function(e,t){if(E(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},T=y;T.l=w,T.i=E,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e)}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return T},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!T.u(t)||t,c=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case u:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(r?v-_:v+(6-_),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case i:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=T.p(e),c="set"+(this.$u?"UTC":""),p=((n={})[s]=c+"Date",n[f]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[o]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[T.p(e)]()},v.add=function(r,c){var f,p=this;r=Number(r);var h=T.p(c),m=function(e){var t=S(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(h===u)return this.set(u,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=((f={})[o]=t,f[a]=n,f[i]=e,f)[h]||1,v=this.$d.getTime()+r*g;return T.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].substr(0,o)},d=function(e){return T.s(o%12||12,e,"0")},f=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:T.s(s+1,2,"0"),MMM:c(n.monthsShort,s,u,3),MMMM:c(u,s),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,l,2),ddd:c(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:T.s(o,2,"0"),h:d(1),hh:d(2),a:f(o,a,!0),A:f(o,a,!1),m:String(a),mm:T.s(a,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:i};return r.replace(m,function(e,t){return t||h[e]||i.replace(":","")})},v.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},v.diff=function(r,f,p){var h,m=T.p(f),g=S(r),v=(g.utcOffset()-this.utcOffset())*t,y=this-g,b=T.m(this,g);return b=((h={})[d]=b/12,h[u]=b,h[c]=b/3,h[l]=(y-v)/6048e5,h[s]=(y-v)/864e5,h[a]=y/n,h[o]=y/t,h[i]=y/e,h)[m]||y,p?b:T.a(b)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return T.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),I=O.prototype;return S.prototype=I,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",u],["$y",d],["$D",f]].forEach(function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,O,S),e.$i=!0),S},S.locale=w,S.isDayjs=E,S.unix=function(e){return S(1e3*e)},S.en=_[b],S.Ls=_,S.p={},S})},10285:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=c(e,!1)}],a:[i,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.substr(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=a.length,l=0;l<s;l+=1){var u=a[l],c=d[u],f=c&&c[0],p=c&&c[1];a[l]=p?{regex:f,parser:p}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,u=e.substr(r),c=o.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],u=!0===a[3],c=l||u,d=a[2];u&&(d=a[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=u||0,_=c||0;return d?new Date(Date.UTC(m,g,h,v,y,b,_+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,_)):new Date(m,g,h,v,y,b,_)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!==this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}})},56176:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return o.call(this,r)}}})},15069:function(e){!function(t,n){e.exports=n()}(0,function(){return function(e,t,n){var r=t.prototype,i=function(e){var t,i=e.date,o=e.utc,a={};if(!((t=i)instanceof Date)&&!(t instanceof Array)&&t instanceof Object){if(!Object.keys(i).length)return new Date;var s=o?n.utc():n();Object.keys(i).forEach(function(e){var t,n;a[t=e,"date"===(n=r.$utils().p(t))?"day":n]=i[e]});var l=a.day||(a.year||a.month>=0?1:s.date()),u=a.year||s.year(),c=a.month>=0?a.month:a.year||a.day?0:s.month(),d=a.hour||0,f=a.minute||0,p=a.second||0,h=a.millisecond||0;return o?new Date(Date.UTC(u,c,l,d,f,p,h)):new Date(u,c,l,d,f,p,h)}return i},o=r.parse;r.parse=function(e){e.date=i.bind(this)(e),o.bind(this)(e)};var a=r.set,s=r.add,l=function(e,t,n,r){if(void 0===r&&(r=1),t instanceof Object){var i=Object.keys(t),o=this;return i.forEach(function(n){o=e.bind(o)(t[n]*r,n)}),o}return e.bind(this)(t*r,n)};r.set=function(e,t){return t=void 0===t?e:t,l.bind(this)(function(e,t){return a.bind(this)(t,e)},t,e)},r.add=function(e,t){return l.bind(this)(s,e,t)},r.subtract=function(e,t){return l.bind(this)(s,e,t,-1)}}})},70178:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r)))return this;var a=16>=Math.abs(r)?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}})},58875:function(e){!/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/function(){"use strict";var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return n}):e.exports?e.exports=n:window.ExecutionEnvironment=n}()},60139:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},73759:function(e){"use strict";var t=function(e){};function n(e,n,r,i,o,a,s,l){if(t(n),!e){var u;if(void 0===n)u=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,s,l],d=0;(u=Error(n.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=n},35369:function(e,t,n){"use strict";n.r(t),n.d(t,{Collection:function(){return N},Iterable:function(){return rA},List:function(){return nb},Map:function(){return t1},OrderedMap:function(){return nL},OrderedSet:function(){return ru},PairSorting:function(){return rp},Range:function(){return nJ},Record:function(){return rm},Repeat:function(){return rE},Seq:function(){return ec},Set:function(){return nY},Stack:function(){return nB},fromJS:function(){return rw},get:function(){return tS},getIn:function(){return n0},has:function(){return tw},hasIn:function(){return n2},hash:function(){return eD},is:function(){return eI},isAssociative:function(){return P},isCollection:function(){return D},isImmutable:function(){return Z},isIndexed:function(){return M},isKeyed:function(){return L},isList:function(){return ny},isMap:function(){return eS},isOrdered:function(){return W},isOrderedMap:function(){return eT},isOrderedSet:function(){return nZ},isPlainObject:function(){return tb},isRecord:function(){return z},isSeq:function(){return j},isSet:function(){return nz},isStack:function(){return nF},isValueObject:function(){return eO},merge:function(){return tU},mergeDeep:function(){return tj},mergeDeepWith:function(){return tV},mergeWith:function(){return tH},remove:function(){return tO},removeIn:function(){return tR},set:function(){return tI},setIn:function(){return tx},update:function(){return tk},updateIn:function(){return tA},version:function(){return rO}});var r,i,o,a,s,l,u,c,d,f,p="delete",h=5,m=32,g=31,v={};function y(){return{value:!1}}function b(e){e&&(e.value=!0)}function _(){}function E(e){return void 0===e.size&&(e.size=e.__iterate(S)),e.size}function w(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function S(){return!0}function T(e,t,n){return(0===e&&!C(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function O(e,t){return A(e,t,0)}function I(e,t){return A(e,t,t)}function A(e,t,n){return void 0===e?n:C(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function C(e){return e<0||0===e&&1/e==-1/0}var x="@@__IMMUTABLE_ITERABLE__@@";function D(e){return!!(e&&e[x])}var R="@@__IMMUTABLE_KEYED__@@";function L(e){return!!(e&&e[R])}var k="@@__IMMUTABLE_INDEXED__@@";function M(e){return!!(e&&e[k])}function P(e){return L(e)||M(e)}var N=function(e){return D(e)?e:ec(e)},F=function(e){function t(e){return L(e)?e:ed(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(N),B=function(e){function t(e){return M(e)?e:ef(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(N),U=function(e){function t(e){return D(e)&&!P(e)?e:ep(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(N);N.Keyed=F,N.Indexed=B,N.Set=U;var H="@@__IMMUTABLE_SEQ__@@";function j(e){return!!(e&&e[H])}var V="@@__IMMUTABLE_RECORD__@@";function z(e){return!!(e&&e[V])}function Z(e){return D(e)||z(e)}var G="@@__IMMUTABLE_ORDERED__@@";function W(e){return!!(e&&e[G])}var q=0,Y=1,$=2,K="function"==typeof Symbol&&Symbol.iterator,X="@@iterator",Q=K||X,J=function(e){this.next=e};function ee(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function et(){return{value:void 0,done:!0}}function en(e){return!!Array.isArray(e)||!!eo(e)}function er(e){return e&&"function"==typeof e.next}function ei(e){var t=eo(e);return t&&t.call(e)}function eo(e){var t=e&&(K&&e[K]||e[X]);if("function"==typeof t)return t}function ea(e){var t=eo(e);return t&&t===e.entries}function es(e){var t=eo(e);return t&&t===e.keys}J.prototype.toString=function(){return"[Iterator]"},J.KEYS=q,J.VALUES=Y,J.ENTRIES=$,J.prototype.inspect=J.prototype.toSource=function(){return this.toString()},J.prototype[Q]=function(){return this};var el=Object.prototype.hasOwnProperty;function eu(e){return!!Array.isArray(e)||"string"==typeof e||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var ec=function(e){function t(e){return null==e?ev():Z(e)?e.toSeq():e_(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new J(function(){if(i===r)return et();var o=n[t?r-++i:i++];return ee(e,o[0],o[1])})}return this.__iteratorUncached(e,t)},t}(N),ed=function(e){function t(e){return null==e?ev().toKeyedSeq():D(e)?L(e)?e.toSeq():e.fromEntrySeq():z(e)?e.toSeq():ey(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(ec),ef=function(e){function t(e){return null==e?ev():D(e)?L(e)?e.entrySeq():e.toIndexedSeq():z(e)?e.toSeq().entrySeq():eb(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(ec),ep=function(e){function t(e){return(D(e)&&!P(e)?e:ef(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(ec);ec.isSeq=j,ec.Keyed=ed,ec.Set=ep,ec.Indexed=ef,ec.prototype[H]=!0;var eh=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[w(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new J(function(){if(i===r)return et();var o=t?r-++i:i++;return ee(e,o,n[o])})},t}(ef),em=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return el.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new J(function(){if(o===i)return et();var a=r[t?i-++o:o++];return ee(e,a,n[a])})},t}(ed);em.prototype[G]=!0;var eg=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n,r=ei(this._collection),i=0;if(er(r))for(;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=ei(this._collection);if(!er(n))return new J(et);var r=0;return new J(function(){var t=n.next();return t.done?t:ee(e,r++,t.value)})},t}(ef);function ev(){return r||(r=new eh([]))}function ey(e){var t=eE(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new em(e);throw TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function eb(e){var t=eE(e);if(t)return t;throw TypeError("Expected Array or collection object of values: "+e)}function e_(e){var t=eE(e);if(t)return ea(e)?t.fromEntrySeq():es(e)?t.toSetSeq():t;if("object"==typeof e)return new em(e);throw TypeError("Expected Array or collection object of values, or keyed object: "+e)}function eE(e){return eu(e)?new eh(e):en(e)?new eg(e):void 0}var ew="@@__IMMUTABLE_MAP__@@";function eS(e){return!!(e&&e[ew])}function eT(e){return eS(e)&&W(e)}function eO(e){return!!(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function eI(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(eO(e)&&eO(t)&&e.equals(t))}var eA="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function eC(e){return e>>>1&1073741824|3221225471&e}var ex=Object.prototype.valueOf;function eD(e){if(null==e)return eR(e);if("function"==typeof e.hashCode)return eC(e.hashCode(e));var t=eH(e);if(null==t)return eR(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return eL(t);case"string":return t.length>eW?ek(t):eM(t);case"object":case"function":return eN(t);case"symbol":return eP(t);default:if("function"==typeof t.toString)return eM(t.toString());throw Error("Value type "+typeof t+" cannot be hashed.")}}function eR(e){return null===e?1108378658:1108378659}function eL(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)e/=4294967295,t^=e;return eC(t)}function ek(e){var t=e$[e];return void 0===t&&(t=eM(e),eY===eq&&(eY=0,e$={}),eY++,e$[e]=t),t}function eM(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return eC(t)}function eP(e){var t=ez[e];return void 0!==t||(t=ej(),ez[e]=t),t}function eN(e){var t;if(eV&&void 0!==(t=i.get(e))||void 0!==(t=e[eG])||!eB&&(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[eG])||void 0!==(t=eU(e))))return t;if(t=ej(),eV)i.set(e,t);else if(void 0!==eF&&!1===eF(e))throw Error("Non-extensible objects are not allowed as keys.");else if(eB)Object.defineProperty(e,eG,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[eG]=t;else if(void 0!==e.nodeType)e[eG]=t;else throw Error("Unable to set a non-enumerable property on object.");return t}var eF=Object.isExtensible,eB=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function eU(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function eH(e){return e.valueOf!==ex&&"function"==typeof e.valueOf?e.valueOf(e):e}function ej(){var e=++eZ;return 1073741824&eZ&&(eZ=0),e}var eV="function"==typeof WeakMap;eV&&(i=new WeakMap);var ez=Object.create(null),eZ=0,eG="__immutablehash__";"function"==typeof Symbol&&(eG=Symbol(eG));var eW=16,eq=255,eY=0,e$={},eK=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=e2(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=e1(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(ed);eK.prototype[G]=!0;var eX=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&E(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(Y,t),i=0;return t&&E(this),new J(function(){var o=r.next();return o.done?o:ee(e,t?n.size-++i:i++,o.value,o)})},t}(ef),eQ=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Y,t);return new J(function(){var t=n.next();return t.done?t:ee(e,t.value,t.value,t)})},t}(ep),eJ=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){tu(t);var r=D(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Y,t);return new J(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){tu(r);var i=D(r);return ee(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(ed);function e0(e){var t=td(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=tf,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===$){var r=e.__iterator(t,n);return new J(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Y?q:Y,n)},t}function e1(e,t,n){var r=td(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,v);return o===v?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator($,i);return new J(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return ee(r,s,t.call(n,a[1],s,e),i)})},r}function e2(e,t){var n=this,r=td(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=e0(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=tf,r.__iterate=function(n,r){var i=this,o=0;return r&&E(e),e.__iterate(function(e,a){return n(e,t?a:r?i.size-++o:o++,i)},!r)},r.__iterator=function(r,i){var o=0;i&&E(e);var a=e.__iterator($,!i);return new J(function(){var e=a.next();if(e.done)return e;var s=e.value;return ee(r,t?s[0]:i?n.size-++o:o++,s[1],e)})},r}function e4(e,t,n,r){var i=td(e);return r&&(i.has=function(r){var i=e.get(r,v);return i!==v&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,v);return o!==v&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator($,o),s=0;return new J(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return ee(i,r?u:s++,c,o)}})},i}function e3(e,t,n){var r=t1().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function e5(e,t,n){var r=L(e),i=(W(e)?nL():t1()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=tc(e);return i.map(function(t){return tl(e,o(t))}).asImmutable()}function e6(e,t,n){var r=L(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var o=tc(e);return i.map(function(t){return tl(e,o(t))})}function e9(e,t,n,r){var i,o=e.size;if(T(t,n,o))return e;var a=O(t,o),s=I(n,o);if(a!=a||s!=s)return e9(e.toSeq().cacheResult(),t,n,r);var l=s-a;l==l&&(i=l<0?0:l);var u=td(e);return u.size=0===i?i:e.size&&i||void 0,!r&&j(e)&&i>=0&&(u.get=function(t,n){return(t=w(this,t))>=0&&t<i?e.get(t+a,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===i)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,l=!0,u=0;return e.__iterate(function(e,n){if(!(l&&(l=s++<a)))return u++,!1!==t(e,r?n:u-1,o)&&u!==i}),u},u.__iteratorUncached=function(t,n){if(0!==i&&n)return this.cacheResult().__iterator(t,n);if(0===i)return new J(et);var o=e.__iterator(t,n),s=0,l=0;return new J(function(){for(;s++<a;)o.next();if(++l>i)return et();var e=o.next();return r||t===Y||e.done?e:t===q?ee(t,l-1,void 0,e):ee(t,l-1,e.value[1],e)})},u}function e8(e,t,n){var r=td(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator($,i),s=!0;return new J(function(){if(!s)return et();var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?r===$?e:ee(r,l,u,e):(s=!1,et())})},r}function e7(e,t,n,r){var i=td(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,u){if(!(s&&(s=t.call(n,e,o,u))))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator($,o),l=!0,u=0;return new J(function(){do{if((e=s.next()).done){if(r||i===Y)return e;if(i===q)return ee(i,u++,void 0,e);return ee(i,u++,e.value[1],e)}var e,o,c,d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return i===$?e:ee(i,o,c,e)})},i}function te(e,t){var n=L(e),r=[e].concat(t).map(function(e){return D(e)?n&&(e=F(e)):e=n?ey(e):eb(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&L(i)||M(e)&&M(i))return i}var o=new eh(r);return n?o=o.toKeyedSeq():M(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),o}function tt(e,t,n){var r=td(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;function l(e,u){e.__iterate(function(e,o){return(!t||u<t)&&D(e)?l(e,u+1):(a++,!1===i(e,n?o:a-1,r)&&(s=!0)),!s},o)}return l(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new J(function(){for(;o;){var e=o.next();if(!1!==e.done){o=a.pop();continue}var l=e.value;if(r===$&&(l=l[1]),!((!t||a.length<t)&&D(l)))return n?e:ee(r,s++,l,e);a.push(o),o=l.__iterator(r,i)}return et()})},r}function tn(e,t,n){var r=tc(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function tr(e,t){var n=td(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(Y,r),a=0;return new J(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?ee(n,a++,t):ee(n,a++,i.value,i)})},n}function ti(e,t,n){t||(t=tp);var r=L(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?ed(o):M(e)?ef(o):ep(o)}function to(e,t,n){if(t||(t=tp),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return ta(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return ta(t,e,n)?n:e})}function ta(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function ts(e,t,n,r){var i=td(e),o=new eh(n).map(function(e){return e.size});return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Y,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map(function(e){return e=N(e),ei(i?e.reverse():e)}),a=0,s=!1;return new J(function(){var n;return(s||(n=o.map(function(e){return e.next()}),s=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s)?et():ee(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function tl(e,t){return e===t?e:j(e)?t:e.constructor(t)}function tu(e){if(e!==Object(e))throw TypeError("Expected [K, V] tuple: "+e)}function tc(e){return L(e)?F:M(e)?B:U}function td(e){return Object.create((L(e)?ed:M(e)?ef:ep).prototype)}function tf(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ec.prototype.cacheResult.call(this)}function tp(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function th(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function tm(e,t){if(!e)throw Error(t)}function tg(e){tm(e!==1/0,"Cannot perform this action with an infinite size.")}function tv(e){if(eu(e)&&"string"!=typeof e)return e;if(W(e))return e.toArray();throw TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}eX.prototype.cacheResult=eK.prototype.cacheResult=eQ.prototype.cacheResult=eJ.prototype.cacheResult=tf;var ty=Object.prototype.toString;function tb(e){if(!e||"object"!=typeof e||"[object Object]"!==ty.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)r=Object.getPrototypeOf(n=r);return n===t}function t_(e){return"object"==typeof e&&(Z(e)||Array.isArray(e)||tb(e))}function tE(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function tw(e,t){return Z(e)?e.has(t):t_(e)&&el.call(e,t)}function tS(e,t,n){return Z(e)?e.get(t,n):tw(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function tT(e){if(Array.isArray(e))return th(e);var t={};for(var n in e)el.call(e,n)&&(t[n]=e[n]);return t}function tO(e,t){if(!t_(e))throw TypeError("Cannot update non-data-structure value: "+e);if(Z(e)){if(!e.remove)throw TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!el.call(e,t))return e;var n=tT(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function tI(e,t,n){if(!t_(e))throw TypeError("Cannot update non-data-structure value: "+e);if(Z(e)){if(!e.set)throw TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(el.call(e,t)&&n===e[t])return e;var r=tT(e);return r[t]=n,r}function tA(e,t,n,r){r||(r=n,n=void 0);var i=tC(Z(e),e,tv(t),0,n,r);return i===v?n:i}function tC(e,t,n,r,i,o){var a=t===v;if(r===n.length){var s=a?i:t,l=o(s);return l===s?t:l}if(!a&&!t_(t))throw TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(tE)+"]: "+t);var u=n[r],c=a?v:tS(t,u,v),d=tC(c===v?e:Z(c),c,n,r+1,i,o);return d===c?t:d===v?tO(t,u):tI(a?e?nn():{}:t,u,d)}function tx(e,t,n){return tA(e,t,v,function(){return n})}function tD(e,t){return tx(this,e,t)}function tR(e,t){return tA(e,t,function(){return v})}function tL(e){return tR(this,e)}function tk(e,t,n,r){return tA(e,[t],n,r)}function tM(e,t,n){return 1==arguments.length?e(this):tk(this,e,t,n)}function tP(e,t,n){return tA(this,e,t,n)}function tN(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return tB(this,e)}function tF(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw TypeError("Invalid merger function: "+e);return tB(this,t,e)}function tB(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=F(t[i]);0!==o.size&&r.push(o)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var t=n?function(t,r){tk(e,r,v,function(e){return e===v?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):e.constructor(r[0])}function tU(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return tZ(e,t)}function tH(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return tZ(t,n,e)}function tj(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return tz(e,t)}function tV(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return tz(t,n,e)}function tz(e,t,n){return tZ(e,t,tG(n))}function tZ(e,t,n){if(!t_(e))throw TypeError("Cannot merge into non-data-structure value: "+e);if(Z(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?B:F,a=r?function(t){i===e&&(i=tT(i)),i.push(t)}:function(t,r){var o=el.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=tT(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function tG(e){function t(n,r,i){return t_(n)&&t_(r)&&tW(n,r)?tZ(n,[r],t):e?e(n,r,i):r}return t}function tW(e,t){var n=ec(e),r=ec(t);return M(n)===M(r)&&L(n)===L(r)}function tq(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return tz(this,e)}function tY(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return tz(this,t,e)}function t$(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return tA(this,e,nn(),function(e){return tZ(e,t)})}function tK(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return tA(this,e,nn(),function(e){return tz(e,t)})}function tX(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function tQ(){return this.__ownerID?this:this.__ensureOwner(new _)}function tJ(){return this.__ensureOwner()}function t0(){return this.__altered}var t1=function(e){function t(t){return null==t?nn():eS(t)&&!W(t)?t:nn().withMutations(function(n){var r=e(t);tg(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return nn().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return nr(this,e,t)},t.prototype.remove=function(e){return nr(this,e,v)},t.prototype.deleteAll=function(e){var t=N(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):nn()},t.prototype.sort=function(e){return nL(ti(this,e))},t.prototype.sortBy=function(e,t){return nL(ti(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,o){r.set(o,e.call(t,i,o,n))})})},t.prototype.__iterator=function(e,t){return new t8(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?nt(this.size,this._root,e,this.__hash):0===this.size?nn():(this.__ownerID=e,this.__altered=!1,this)},t}(F);t1.isMap=eS;var t2=t1.prototype;t2[ew]=!0,t2[p]=t2.remove,t2.removeAll=t2.deleteAll,t2.setIn=tD,t2.removeIn=t2.deleteIn=tL,t2.update=tM,t2.updateIn=tP,t2.merge=t2.concat=tN,t2.mergeWith=tF,t2.mergeDeep=tq,t2.mergeDeepWith=tY,t2.mergeIn=t$,t2.mergeDeepIn=tK,t2.withMutations=tX,t2.wasAltered=t0,t2.asImmutable=tJ,t2["@@transducer/init"]=t2.asMutable=tQ,t2["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},t2["@@transducer/result"]=function(e){return e.asImmutable()};var t4=function(e,t){this.ownerID=e,this.entries=t};t4.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(eI(n,i[o][0]))return i[o][1];return r},t4.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===v,l=this.entries,u=0,c=l.length;u<c&&!eI(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(b(a),(s||!d)&&b(o),!s||1!==l.length){if(!d&&!s&&l.length>=nh)return ns(e,l,r,i);var f=e&&e===this.ownerID,p=f?l:th(l);return(d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f)?(this.entries=p,this):new t4(e,p)}};var t3=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};t3.prototype.get=function(e,t,n,r){void 0===t&&(t=eD(n));var i=1<<((0===e?t:t>>>e)&g),o=this.bitmap;return(o&i)==0?r:this.nodes[nc(o&i-1)].get(e+h,t,n,r)},t3.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=eD(r));var s=(0===t?n:n>>>t)&g,l=1<<s,u=this.bitmap,c=(u&l)!=0;if(!c&&i===v)return this;var d=nc(u&l-1),f=this.nodes,p=c?f[d]:void 0,m=ni(p,e,t+h,n,r,i,o,a);if(m===p)return this;if(!c&&m&&f.length>=nm)return nu(e,f,u,s,m);if(c&&!m&&2===f.length&&no(f[1^d]))return f[1^d];if(c&&m&&1===f.length&&no(m))return m;var y=e&&e===this.ownerID,b=c?m?u:u^l:u|l,_=c?m?nd(f,d,m,y):np(f,d,y):nf(f,d,m,y);return y?(this.bitmap=b,this.nodes=_,this):new t3(e,b,_)};var t5=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};t5.prototype.get=function(e,t,n,r){void 0===t&&(t=eD(n));var i=(0===e?t:t>>>e)&g,o=this.nodes[i];return o?o.get(e+h,t,n,r):r},t5.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=eD(r));var s=(0===t?n:n>>>t)&g,l=i===v,u=this.nodes,c=u[s];if(l&&!c)return this;var d=ni(c,e,t+h,n,r,i,o,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<ng)return nl(e,u,f,s)}else f++;var p=e&&e===this.ownerID,m=nd(u,s,d,p);return p?(this.count=f,this.nodes=m,this):new t5(e,f,m)};var t6=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};t6.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(eI(n,i[o][0]))return i[o][1];return r},t6.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=eD(r));var s=i===v;if(n!==this.keyHash)return s?this:(b(a),b(o),na(this,e,t,n,[r,i]));for(var l=this.entries,u=0,c=l.length;u<c&&!eI(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(b(a),(s||!d)&&b(o),s&&2===c)return new t9(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:th(l);return(d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f)?(this.entries=p,this):new t6(e,this.keyHash,p)};var t9=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};t9.prototype.get=function(e,t,n,r){return eI(n,this.entry[0])?this.entry[1]:r},t9.prototype.update=function(e,t,n,r,i,o,a){var s=i===v,l=eI(r,this.entry[0]);if(l?i===this.entry[1]:s)return this;if(b(a),s){b(o);return}return l?e&&e===this.ownerID?(this.entry[1]=i,this):new t9(e,this.keyHash,[r,i]):(b(o),na(this,e,t,eD(r),[r,i]))},t4.prototype.iterate=t6.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},t3.prototype.iterate=t5.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},t9.prototype.iterate=function(e,t){return e(this.entry)};var t8=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&ne(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return t7(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return t7(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return t7(e,o.entry);t=this._stack=ne(o,t)}continue}t=this._stack=this._stack.__prev}return et()},t}(J);function t7(e,t){return ee(e,t[0],t[1])}function ne(e,t){return{node:e,index:0,__prev:t}}function nt(e,t,n,r){var i=Object.create(t2);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function nn(){return o||(o=nt(0))}function nr(e,t,n){if(e._root){var r,i,o=y(),a=y();if(r=ni(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===v?-1:1:0)}else{if(n===v)return e;i=1,r=new t4(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?nt(i,r):nn()}function ni(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===v?e:(b(s),b(a),new t9(t,r,[i,o]))}function no(e){return e.constructor===t9||e.constructor===t6}function na(e,t,n,r,i){if(e.keyHash===r)return new t6(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&g,s=(0===n?r:r>>>n)&g,l=a===s?[na(e,t,n+h,r,i)]:(o=new t9(t,r,i),a<s?[e,o]:[o,e]);return new t3(t,1<<a|1<<s,l)}function ns(e,t,n,r){e||(e=new _);for(var i=new t9(e,eD(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function nl(e,t,n,r){for(var i=0,o=0,a=Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=l,a[o++]=c)}return new t3(e,i,a)}function nu(e,t,n,r,i){for(var o=0,a=Array(m),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new t5(e,o+1,a)}function nc(e){return e-=e>>1&1431655765,e=(e=(858993459&e)+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function nd(e,t,n,r){var i=r?e:th(e);return i[t]=n,i}function nf(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}function np(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}var nh=m/4,nm=m/2,ng=m/4,nv="@@__IMMUTABLE_LIST__@@";function ny(e){return!!(e&&e[nv])}var nb=function(e){function t(t){var n=nO();if(null==t)return n;if(ny(t))return t;var r=e(t),i=r.size;return 0===i?n:(tg(i),i>0&&i<m)?nT(0,i,h,null,new nE(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=w(this,e))>=0&&e<this.size){var n=nx(this,e+=this._origin);return n&&n.array[e&g]}return t},t.prototype.set=function(e,t){return nI(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):nO()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){nD(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return nD(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){nD(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return nD(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&en(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(n[0])},t.prototype.setSize=function(e){return nD(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:nD(this,O(e,n),I(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=nS(this,t);return new J(function(){var i=r();return i===nw?et():ee(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=nS(this,t);(n=i())!==nw&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?nT(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?nO():(this.__ownerID=e,this.__altered=!1,this)},t}(B);nb.isList=ny;var n_=nb.prototype;n_[nv]=!0,n_[p]=n_.remove,n_.merge=n_.concat,n_.setIn=tD,n_.deleteIn=n_.removeIn=tL,n_.update=tM,n_.updateIn=tP,n_.mergeIn=t$,n_.mergeDeepIn=tK,n_.withMutations=tX,n_.wasAltered=t0,n_.asImmutable=tJ,n_["@@transducer/init"]=n_.asMutable=tQ,n_["@@transducer/step"]=function(e,t){return e.push(t)},n_["@@transducer/result"]=function(e){return e.asImmutable()};var nE=function(e,t){this.array=e,this.ownerID=t};nE.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r,i=n>>>t&g;if(i>=this.array.length)return new nE([],e);var o=0===i;if(t>0){var a=this.array[i];if((r=a&&a.removeBefore(e,t-h,n))===a&&o)return this}if(o&&!r)return this;var s=nC(this,e);if(!o)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},nE.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&g;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-h,n))===o&&i===this.array.length-1)return this}var a=nC(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var nw={};function nS(e,t){var n=e._origin,r=e._capacity,i=nR(r),o=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>m&&(u=m),function(){if(l===u)return nw;var e=t?--u:l++;return s&&s[e]}}function l(e,i,o){var s,l=e&&e.array,u=o>n?0:n-o>>i,c=(r-o>>i)+1;return c>m&&(c=m),function(){for(;;){if(s){var e=s();if(e!==nw)return e;s=null}if(u===c)return nw;var n=t?--c:u++;s=a(l&&l[n],i-h,o+(n<<i))}}}}function nT(e,t,n,r,i,o,a){var s=Object.create(n_);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function nO(){return a||(a=nT(0,0,h))}function nI(e,t,n){if((t=w(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?nD(e,t).set(0,n):nD(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=y();return(t>=nR(e._capacity)?r=nA(r,e.__ownerID,0,t,n,o):i=nA(i,e.__ownerID,e._level,t,n,o),o.value)?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):nT(e._origin,e._capacity,e._level,i,r):e}function nA(e,t,n,r,i,o){var a,s=r>>>n&g,l=e&&s<e.array.length;if(!l&&void 0===i)return e;if(n>0){var u=e&&e.array[s],c=nA(u,t,n-h,r,i,o);return c===u?e:((a=nC(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(o&&b(o),a=nC(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function nC(e,t){return t&&e&&t===e.ownerID?e:new nE(e?e.array.slice():[],t)}function nx(e,t){if(t>=nR(e._capacity))return e._tail;if(t<1<<e._level+h){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&g],r-=h;return n}}function nD(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new nE(u&&u.array.length?[void 0,u]:[],r),l+=h,c+=1<<l;c&&(a+=c,i+=c,s+=c,o+=c);for(var d=nR(o),f=nR(s);f>=1<<l+h;)u=new nE(u&&u.array.length?[u]:[],r),l+=h;var p=e._tail,m=f<d?nx(e,s-1):f>d?new nE([],r):p;if(p&&f>d&&a<o&&p.array.length){for(var v=u=nC(u,r),y=l;y>h;y-=h){var b=d>>>y&g;v=v.array[b]=nC(v.array[b],r)}v.array[d>>>h&g]=p}if(s<o&&(m=m&&m.removeAfter(r,0,s)),a>=f)a-=f,s-=f,l=h,u=null,m=m&&m.removeBefore(r,0,a);else if(a>i||f<d){for(c=0;u;){var E=a>>>l&g;if(E!==f>>>l&g)break;E&&(c+=(1<<l)*E),l-=h,u=u.array[E]}u&&a>i&&(u=u.removeBefore(r,l,a-c)),u&&f<d&&(u=u.removeAfter(r,l,f-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=m,e.__hash=void 0,e.__altered=!0,e):nT(a,s,l,u,m)}function nR(e){return e<m?0:e-1>>>h<<h}var nL=function(e){function t(e){return null==e?nM():eT(e)?e:nM().withMutations(function(t){var n=F(e);tg(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):nM()},t.prototype.set=function(e,t){return nP(this,e,t)},t.prototype.remove=function(e){return nP(this,e,v)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?nk(t,n,e,this.__hash):0===this.size?nM():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(t1);function nk(e,t,n,r){var i=Object.create(nL.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function nM(){return s||(s=nk(nn(),nO()))}function nP(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),l=void 0!==s;if(n===v){if(!l)return e;a.size>=m&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):nk(r,i)}nL.isOrderedMap=eT,nL.prototype[G]=!0,nL.prototype[p]=nL.prototype.remove;var nN="@@__IMMUTABLE_STACK__@@";function nF(e){return!!(e&&e[nN])}var nB=function(e){function t(e){return null==e?nj():nF(e)?e:nj().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=w(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0==arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):nH(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&nF(t))return t;tg(t.size);var n=this.size,r=this._head;return(t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID)?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):nH(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):nj()},t.prototype.slice=function(t,n){if(T(t,n,this.size))return this;var r=O(t,this.size);if(I(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):nH(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?nH(this.size,this._head,e,this.__hash):0===this.size?nj():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new eh(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new eh(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new J(function(){if(r){var t=r.value;return r=r.next,ee(e,n++,t)}return et()})},t}(B);nB.isStack=nF;var nU=nB.prototype;function nH(e,t,n,r){var i=Object.create(nU);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function nj(){return l||(l=nH(0))}nU[nN]=!0,nU.shift=nU.pop,nU.unshift=nU.push,nU.unshiftAll=nU.pushAll,nU.withMutations=tX,nU.wasAltered=t0,nU.asImmutable=tJ,nU["@@transducer/init"]=nU.asMutable=tQ,nU["@@transducer/step"]=function(e,t){return e.unshift(t)},nU["@@transducer/result"]=function(e){return e.asImmutable()};var nV="@@__IMMUTABLE_SET__@@";function nz(e){return!!(e&&e[nV])}function nZ(e){return nz(e)&&W(e)}function nG(e,t){if(e===t)return!0;if(!D(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||L(e)!==L(t)||M(e)!==M(t)||W(e)!==W(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!P(e);if(W(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&eI(i[1],e)&&(n||eI(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size){if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}}var a=!0,s=t.__iterate(function(t,r){if(n?!e.has(t):i?!eI(t,e.get(r,v)):!eI(e.get(r,v),t))return a=!1,!1});return a&&e.size===s}function nW(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function nq(e){if(!e||"object"!=typeof e)return e;if(!D(e)){if(!t_(e))return e;e=ec(e)}if(L(e)){var t={};return e.__iterate(function(e,n){t[n]=nq(e)}),t}var n=[];return e.__iterate(function(e){n.push(nq(e))}),n}var nY=function(e){function t(t){return null==t?nQ():nz(t)&&!W(t)?t:nQ().withMutations(function(n){var r=e(t);tg(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(F(e).keySeq())},t.intersect=function(e){return(e=N(e).toArray()).length?n$.intersect.apply(t(e.pop()),e):nQ()},t.union=function(e){return(e=N(e).toArray()).length?n$.union.apply(t(e.pop()),e):nQ()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return nK(this,this._map.set(e,e))},t.prototype.remove=function(e){return nK(this,this._map.remove(e))},t.prototype.clear=function(){return nK(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=nK(this,this._map.mapEntries(function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})}):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return ru(ti(this,e))},t.prototype.sortBy=function(e,t){return ru(ti(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(U);nY.isSet=nz;var n$=nY.prototype;function nK(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function nX(e,t){var n=Object.create(n$);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function nQ(){return u||(u=nX(nn()))}n$[nV]=!0,n$[p]=n$.remove,n$.merge=n$.concat=n$.union,n$.withMutations=tX,n$.asImmutable=tJ,n$["@@transducer/init"]=n$.asMutable=tQ,n$["@@transducer/step"]=function(e,t){return e.add(t)},n$["@@transducer/result"]=function(e){return e.asImmutable()},n$.__empty=nQ,n$.__make=nX;var nJ=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(tm(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(c)return c;c=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+w(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return T(e,n,this.size)?this:(e=O(e,this.size),(n=I(n,this.size))<=e)?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step)},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return -1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new J(function(){if(o===n)return et();var a=i;return i+=t?-r:r,ee(e,t?n-++o:o++,a)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:nG(this,e)},t}(ef);function n0(e,t,n){for(var r=tv(t),i=0;i!==r.length;)if((e=tS(e,r[i++],v))===v)return n;return e}function n1(e,t){return n0(this,e,t)}function n2(e,t){return n0(e,t,v)!==v}function n4(e){return n2(this,e)}function n3(){tg(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}N.isIterable=D,N.isKeyed=L,N.isIndexed=M,N.isAssociative=P,N.isOrdered=W,N.Iterator=J,nW(N,{toArray:function(){tg(this.size);var e=Array(this.size||0),t=L(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new eX(this)},toJS:function(){return nq(this)},toKeyedSeq:function(){return new eK(this,!0)},toMap:function(){return t1(this.toKeyedSeq())},toObject:n3,toOrderedMap:function(){return nL(this.toKeyedSeq())},toOrderedSet:function(){return ru(L(this)?this.valueSeq():this)},toSet:function(){return nY(L(this)?this.valueSeq():this)},toSetSeq:function(){return new eQ(this)},toSeq:function(){return M(this)?this.toIndexedSeq():L(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return nB(L(this)?this.valueSeq():this)},toList:function(){return nb(L(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return tl(this,te(this,e))},includes:function(e){return this.some(function(t){return eI(t,e)})},entries:function(){return this.__iterator($)},every:function(e,t){tg(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return tl(this,e4(this,e,t,!0))},partition:function(e,t){return e6(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return tg(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){tg(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(q)},map:function(e,t){return tl(this,e1(this,e,t))},reduce:function(e,t,n){return n7(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return n7(this,e,t,n,arguments.length<2,!0)},reverse:function(){return tl(this,e2(this,!0))},slice:function(e,t){return tl(this,e9(this,e,t,!0))},some:function(e,t){return!this.every(rn(e),t)},sort:function(e){return tl(this,ti(this,e))},values:function(){return this.__iterator(Y)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return E(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return e3(this,e,t)},equals:function(e){return nG(this,e)},entrySeq:function(){var e=this;if(e._cache)return new eh(e._cache);var t=e.toSeq().map(rt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(rn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(S,null,e)},flatMap:function(e,t){return tl(this,tn(this,e,t))},flatten:function(e){return tl(this,tt(this,e,!0))},fromEntrySeq:function(){return new eJ(this)},get:function(e,t){return this.find(function(t,n){return eI(n,e)},void 0,t)},getIn:n1,groupBy:function(e,t){return e5(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:n4,isSubset:function(e){return e="function"==typeof e.includes?e:N(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:N(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return eI(t,e)})},keySeq:function(){return this.toSeq().map(re).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return to(this,e)},maxBy:function(e,t){return to(this,t,e)},min:function(e){return to(this,e?rr(e):ro)},minBy:function(e,t){return to(this,t?rr(t):ro,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return tl(this,e7(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(rn(e),t)},sortBy:function(e,t){return tl(this,ti(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return tl(this,e8(this,e,t))},takeUntil:function(e,t){return this.takeWhile(rn(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ra(this))}});var n5=N.prototype;n5[x]=!0,n5[Q]=n5.values,n5.toJSON=n5.toArray,n5.__toStringMapper=tE,n5.inspect=n5.toSource=function(){return this.toString()},n5.chain=n5.flatMap,n5.contains=n5.includes,nW(F,{flip:function(){return tl(this,e0(this))},mapEntries:function(e,t){var n=this,r=0;return tl(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return tl(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var n6=F.prototype;n6[R]=!0,n6[Q]=n5.entries,n6.toJSON=n3,n6.__toStringMapper=function(e,t){return tE(t)+": "+tE(e)},nW(B,{toKeyedSeq:function(){return new eK(this,!1)},filter:function(e,t){return tl(this,e4(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return tl(this,e2(this,!1))},slice:function(e,t){return tl(this,e9(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=O(e,e<0?this.count():this.size);var r=this.slice(0,e);return tl(this,1===n?r:r.concat(th(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return tl(this,tt(this,e,!1))},get:function(e,t){return(e=w(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=w(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return tl(this,tr(this,e))},interleave:function(){var e=[this].concat(th(arguments)),t=ts(this.toSeq(),ef.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),tl(this,n)},keySeq:function(){return nJ(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return tl(this,e7(this,e,t,!1))},zip:function(){var e=[this].concat(th(arguments));return tl(this,ts(this,ri,e))},zipAll:function(){var e=[this].concat(th(arguments));return tl(this,ts(this,ri,e,!0))},zipWith:function(e){var t=th(arguments);return t[0]=this,tl(this,ts(this,e,t))}});var n9=B.prototype;n9[k]=!0,n9[G]=!0,nW(U,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var n8=U.prototype;function n7(e,t,n,r,i,o){return tg(e.size),e.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)},o),n}function re(e,t){return t}function rt(e,t){return[t,e]}function rn(e){return function(){return!e.apply(this,arguments)}}function rr(e){return function(){return-e.apply(this,arguments)}}function ri(){return th(arguments)}function ro(e,t){return e<t?1:e>t?-1:0}function ra(e){if(e.size===1/0)return 0;var t=W(e),n=L(e),r=t?1:0;return rs(e.__iterate(n?t?function(e,t){r=31*r+rl(eD(e),eD(t))|0}:function(e,t){r=r+rl(eD(e),eD(t))|0}:t?function(e){r=31*r+eD(e)|0}:function(e){r=r+eD(e)|0}),r)}function rs(e,t){return t=eA(t,3432918353),t=eA(t<<15|t>>>-15,461845907),t=((t=eA(t<<13|t>>>-13,5))+3864292196|0)^e,t=eA(t^t>>>16,2246822507),t=eC((t=eA(t^t>>>13,3266489909))^t>>>16)}function rl(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}n8.has=n5.includes,n8.contains=n8.includes,n8.keys=n8.values,nW(ed,n6),nW(ef,n9),nW(ep,n8);var ru=function(e){function t(e){return null==e?rf():nZ(e)?e:rf().withMutations(function(t){var n=U(e);tg(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(F(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(nY);ru.isOrderedSet=nZ;var rc=ru.prototype;function rd(e,t){var n=Object.create(rc);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function rf(){return d||(d=rd(nM()))}rc[G]=!0,rc.zip=n9.zip,rc.zipWith=n9.zipWith,rc.zipAll=n9.zipAll,rc.__empty=rf,rc.__make=rd;var rp={LeftThenRight:-1,RightThenLeft:1};function rh(e){if(z(e))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Z(e))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var rm=function(e,t){rh(e);var n,r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),l=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var u=0;u<s.length;u++){var c=s[u];l[c]=u,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+ry(this)+' with property "'+c+'" since that property name is part of the Record API.'):r_(i,c)}}return this.__ownerID=void 0,this._values=nb().withMutations(function(e){e.setSize(a._keys.length),F(o).forEach(function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(rg);return i.constructor=r,t&&(r.displayName=t),r};rm.prototype.toString=function(){for(var e,t=ry(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)e=n[r],t+=(r?", ":"")+e+": "+tE(this.get(e));return t+" }"},rm.prototype.equals=function(e){return this===e||z(e)&&rb(this).equals(rb(e))},rm.prototype.hashCode=function(){return rb(this).hashCode()},rm.prototype.has=function(e){return this._indices.hasOwnProperty(e)},rm.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},rm.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return rv(this,n)}return this},rm.prototype.remove=function(e){return this.set(e)},rm.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:rv(this,e)},rm.prototype.wasAltered=function(){return this._values.wasAltered()},rm.prototype.toSeq=function(){return rb(this)},rm.prototype.toJS=function(){return nq(this)},rm.prototype.entries=function(){return this.__iterator($)},rm.prototype.__iterator=function(e,t){return rb(this).__iterator(e,t)},rm.prototype.__iterate=function(e,t){return rb(this).__iterate(e,t)},rm.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?rv(this,t,e):(this.__ownerID=e,this._values=t,this)},rm.isRecord=z,rm.getDescriptiveName=ry;var rg=rm.prototype;function rv(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function ry(e){return e.constructor.displayName||e.constructor.name||"Record"}function rb(e){return ey(e._keys.map(function(t){return[t,e.get(t)]}))}function r_(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){tm(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}rg[V]=!0,rg[p]=rg.remove,rg.deleteIn=rg.removeIn=tL,rg.getIn=n1,rg.hasIn=n5.hasIn,rg.merge=tN,rg.mergeWith=tF,rg.mergeIn=t$,rg.mergeDeep=tq,rg.mergeDeepWith=tY,rg.mergeDeepIn=tK,rg.setIn=tD,rg.update=tM,rg.updateIn=tP,rg.withMutations=tX,rg.asMutable=tQ,rg.asImmutable=tJ,rg[Q]=rg.entries,rg.toJSON=rg.toObject=n5.toObject,rg.inspect=rg.toSource=function(){return this.toString()};var rE=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(f)return f;f=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return eI(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return T(e,n,r)?this:new t(this._value,I(n,r)-O(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return eI(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return eI(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new J(function(){return i===r?et():ee(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?eI(this._value,e._value):nG(e)},t}(ef);function rw(e,t){return rS([],t||rT,e,"",t&&t.length>2?[]:void 0,{"":e})}function rS(e,t,n,r,i,o){if("string"!=typeof n&&!Z(n)&&(eu(n)||en(n)||tb(n))){if(~e.indexOf(n))throw TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,ec(n).map(function(r,o){return rS(e,t,r,o,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function rT(e,t){return M(t)?t.toList():L(t)?t.toMap():t.toSet()}var rO="4.3.0",rI={version:rO,Collection:N,Iterable:N,Seq:ec,Map:t1,OrderedMap:nL,List:nb,Stack:nB,Set:nY,OrderedSet:ru,PairSorting:rp,Record:rm,Range:nJ,Repeat:rE,is:eI,fromJS:rw,hash:eD,isImmutable:Z,isCollection:D,isKeyed:L,isIndexed:M,isAssociative:P,isOrdered:W,isValueObject:eO,isPlainObject:tb,isSeq:j,isList:ny,isMap:eS,isOrderedMap:eT,isStack:nF,isSet:nz,isOrderedSet:nZ,isRecord:z,get:tS,getIn:n0,has:tw,hasIn:n2,merge:tU,mergeDeep:tj,mergeWith:tH,mergeDeepWith:tV,remove:tO,removeIn:tR,set:tI,setIn:tx,update:tk,updateIn:tA},rA=N;t.default=rI},58303:function(e,t,n){var r=n(31934);function i(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var i=e.style.lineHeight;e.style.lineHeight=t+"em",n=parseFloat(t=r(e,"line-height"),10),i?e.style.lineHeight=i:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var o=e.nodeName,a=document.createElement(o);a.innerHTML="&nbsp;","TEXTAREA"===o.toUpperCase()&&a.setAttribute("rows","1");var s=r(e,"font-size");a.style.fontSize=s,a.style.padding="0px",a.style.border="0px";var l=document.body;l.appendChild(a),n=a.offsetHeight,l.removeChild(a)}return n}e.exports=i},61898:function(){/*!
 * long-press-event - v2.4.2
 * Pure JavaScript long-press-event
 * https://github.com/john-doherty/long-press-event
 * @author John Doherty <www.johndoherty.info>
 * @license MIT
 */!function(e,t){"use strict";var n=null,r="ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,i=r?"touchstart":"mousedown",o=r?"touchend":"mouseup",a=r?"touchmove":"mousemove",s=0,l=0,u=10,c=10;function d(e){var n;p(),n=e,e=r&&n.touches&&n.touches[0]?n.touches[0]:n,this.dispatchEvent(new CustomEvent("long-press",{bubbles:!0,cancelable:!0,detail:{clientX:e.clientX,clientY:e.clientY},clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}))||t.addEventListener("click",function e(n){t.removeEventListener("click",e,!0),function(e){e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation()}(n)},!0)}function f(r){p(r);var i=r.target,o=parseInt(function(e,n,r){for(;e&&e!==t.documentElement;){var i=e.getAttribute(n);if(i)return i;e=e.parentNode}return r}(i,"data-long-press-delay","1500"),10);n=function(t,n){if(!(e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame&&e.mozCancelRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame))return e.setTimeout(t,n);var r=(new Date).getTime(),i={},o=function(){(new Date).getTime()-r>=n?t.call():i.value=requestAnimFrame(o)};return i.value=requestAnimFrame(o),i}(d.bind(i,r),o)}function p(t){var r;(r=n)&&(e.cancelAnimationFrame?e.cancelAnimationFrame(r.value):e.webkitCancelAnimationFrame?e.webkitCancelAnimationFrame(r.value):e.webkitCancelRequestAnimationFrame?e.webkitCancelRequestAnimationFrame(r.value):e.mozCancelRequestAnimationFrame?e.mozCancelRequestAnimationFrame(r.value):e.oCancelRequestAnimationFrame?e.oCancelRequestAnimationFrame(r.value):e.msCancelRequestAnimationFrame?e.msCancelRequestAnimationFrame(r.value):clearTimeout(r)),n=null}"function"!=typeof e.CustomEvent&&(e.CustomEvent=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r},e.CustomEvent.prototype=e.Event.prototype),e.requestAnimFrame=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){e.setTimeout(t,1e3/60)},t.addEventListener(o,p,!0),t.addEventListener(a,function(e){var t=Math.abs(s-e.clientX),n=Math.abs(l-e.clientY);(t>=u||n>=c)&&p()},!0),t.addEventListener("wheel",p,!0),t.addEventListener("scroll",p,!0),t.addEventListener(i,function(e){s=e.clientX,l=e.clientY,f(e)},!0)}(window,document)},30845:function(e,t){"use strict";function n(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function r(e,t){void 0===t&&(t=n);var r,i,o=[],a=!1;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return a&&r===this&&t(n,o)||(i=e.apply(this,n),a=!0,r=this,o=n),i}}t.Z=r},27418:function(e){"use strict";/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};if("abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join(""))return!1;return!0}catch(e){return!1}}e.exports=o()?Object.assign:function(e,o){for(var a,s,l=i(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},8346:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(88239),i=n(99663),o=n(22600),a=n(49135),s=n(93196),l=n(67294),u=1,c=2,d=4,f=8,p=16,h=6,m=24,g=30,v=251,y={threshold:10,velocity:.3};function b(e,t){return Math.sqrt(e*e+t*t)}function _(e,t){return 180/(Math.PI/Math.atan2(t,e))}function E(){return Date.now()}function w(e){if(!(e.length<2)){var t=e[0],n=t.x,r=t.y,i=e[1],o=i.x,a=i.y,s=o-n,l=a-r;return{x:s,y:l,z:b(s,l),angle:_(s,l)}}}function S(e,t,n){var r=e[0],i=r.x,o=r.y,a=t[0],s=a.x,l=a.y,u=s-i,c=l-o,d=b(u,c);return{x:u,y:c,z:d,time:n,velocity:d/n,angle:_(u,c)}}function T(e,t){var n=e.angle;return t.angle-n}function O(e,t){return e+t[0].toUpperCase()+t.slice(1)}function I(e,t){return Math.abs(e)>=y.threshold&&Math.abs(t)>y.velocity}function A(e,t){return!!(t&e)}function C(e,t){var n=e.x,r=e.y,i=t.x,o=t.y,a=i-n,s=o-r;return 0===a&&0===s?u:Math.abs(a)>=Math.abs(s)?a<0?c:d:s<0?f:p}function x(e){var t=void 0;switch(e){case u:break;case c:t="left";break;case d:t="right";break;case f:t="up";break;case p:t="down"}return t}var D={all:30,vertical:24,horizontal:6},R=function(e){function t(e){(0,i.default)(this,t);var n=(0,a.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n.triggerEvent=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var o=n.props[e];"function"==typeof o&&o.apply(void 0,[n.getGestureState()].concat(r))},n.triggerCombineEvent=function(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];n.triggerEvent.apply(n,[e].concat(i)),n.triggerSubEvent.apply(n,[e,t].concat(i))},n.triggerSubEvent=function(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(t){var a=O(e,t);n.triggerEvent.apply(n,[a].concat(i))}},n.triggerPinchEvent=function(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=n.gesture.scale;"move"===t&&"number"==typeof a&&(a>1&&n.triggerEvent("onPinchOut"),a<1&&n.triggerEvent("onPinchIn")),n.triggerCombineEvent.apply(n,[e,t].concat(i))},n.initPressTimer=function(){n.cleanPressTimer(),n.pressTimer=setTimeout(function(){n.setGestureState({press:!0}),n.triggerEvent("onPress")},v)},n.cleanPressTimer=function(){n.pressTimer&&clearTimeout(n.pressTimer)},n.setGestureState=function(e){n.gesture||(n.gesture={}),n.gesture.touches&&(n.gesture.preTouches=n.gesture.touches),n.gesture=(0,r.default)({},n.gesture,e)},n.getGestureState=function(){return n.gesture?(0,r.default)({},n.gesture):n.gesture},n.cleanGestureState=function(){delete n.gesture},n.getTouches=function(e){return Array.prototype.slice.call(e.touches).map(function(e){return{x:e.screenX,y:e.screenY}})},n.triggerUserCb=function(e,t){var r=O("onTouch",e);r in n.props&&n.props[r](t)},n._handleTouchStart=function(e){n.triggerUserCb("start",e),n.event=e,e.touches.length>1&&e.preventDefault(),n.initGestureStatus(e),n.initPressTimer(),n.checkIfMultiTouchStart()},n.initGestureStatus=function(e){n.cleanGestureState();var t=n.getTouches(e),r=E(),i=w(t);n.setGestureState({startTime:r,startTouches:t,startMutliFingerStatus:i,time:r,touches:t,mutliFingerStatus:i,srcEvent:n.event})},n.checkIfMultiTouchStart=function(){var e=n.props,t=e.enablePinch,r=e.enableRotate,i=n.gesture.touches;if(i.length>1&&(t||r)){if(t){var o=w(i);n.setGestureState({startMutliFingerStatus:o,pinch:!0,scale:1}),n.triggerCombineEvent("onPinch","start")}r&&(n.setGestureState({rotate:!0,rotation:0}),n.triggerCombineEvent("onRotate","start"))}},n._handleTouchMove=function(e){n.triggerUserCb("move",e),n.event=e,n.gesture&&(n.cleanPressTimer(),n.updateGestureStatus(e),n.checkIfSingleTouchMove(),n.checkIfMultiTouchMove())},n.checkIfMultiTouchMove=function(){var e=n.gesture,t=e.pinch,r=e.rotate,i=e.touches,o=e.startMutliFingerStatus,a=e.mutliFingerStatus;if(t||r){if(i.length<2){n.setGestureState({pinch:!1,rotate:!1}),t&&n.triggerCombineEvent("onPinch","cancel"),r&&n.triggerCombineEvent("onRotate","cancel");return}if(t){var s=a.z/o.z;n.setGestureState({scale:s}),n.triggerPinchEvent("onPinch","move")}if(r){var l=T(o,a);n.setGestureState({rotation:l}),n.triggerCombineEvent("onRotate","move")}}},n.allowGesture=function(){return A(n.gesture.direction,n.directionSetting)},n.checkIfSingleTouchMove=function(){var e=n.gesture,t=e.pan,r=e.touches,i=e.moveStatus,o=e.preTouches,a=e.availablePan,s=void 0===a||a;if(r.length>1){n.setGestureState({pan:!1}),t&&n.triggerCombineEvent("onPan","cancel");return}if(i&&s){var l=C(o[0],r[0]);n.setGestureState({direction:l});var u=x(l);if(!n.allowGesture()){t||n.setGestureState({availablePan:!1});return}t?(n.triggerCombineEvent("onPan",u),n.triggerSubEvent("onPan","move")):(n.triggerCombineEvent("onPan","start"),n.setGestureState({pan:!0,availablePan:!0}))}},n.checkIfMultiTouchEnd=function(e){var t=n.gesture,r=t.pinch,i=t.rotate;r&&n.triggerCombineEvent("onPinch",e),i&&n.triggerCombineEvent("onRotate",e)},n.updateGestureStatus=function(e){var t=E();if(n.setGestureState({time:t}),e.touches&&e.touches.length){var r=n.gesture,i=r.startTime,o=r.startTouches,a=r.pinch,s=r.rotate,l=n.getTouches(e),u=S(o,l,t-i),c=void 0;(a||s)&&(c=w(l)),n.setGestureState({touches:l,mutliFingerStatus:c,moveStatus:u})}},n._handleTouchEnd=function(e){n.triggerUserCb("end",e),n.event=e,n.gesture&&(n.cleanPressTimer(),n.updateGestureStatus(e),n.doSingleTouchEnd("end"),n.checkIfMultiTouchEnd("end"))},n._handleTouchCancel=function(e){n.triggerUserCb("cancel",e),n.event=e,n.gesture&&(n.cleanPressTimer(),n.updateGestureStatus(e),n.doSingleTouchEnd("cancel"),n.checkIfMultiTouchEnd("cancel"))},n.triggerAllowEvent=function(e,t){n.allowGesture()?n.triggerCombineEvent(e,t):n.triggerSubEvent(e,t)},n.doSingleTouchEnd=function(e){var t=n.gesture,r=t.moveStatus,i=t.pinch,o=t.rotate,a=t.press,s=t.pan,l=t.direction;if(!i&&!o){if(r){var u=I(r.z,r.velocity);if(n.setGestureState({swipe:u}),s&&n.triggerAllowEvent("onPan",e),u){var c=x(l);n.triggerAllowEvent("onSwipe",c);return}}if(a){n.triggerEvent("onPressUp");return}n.triggerEvent("onTap")}},n.getTouchAction=function(){var e=n.props,t=e.enablePinch,r=e.enableRotate,i=n.directionSetting;return t||r||i===g?"pan-x pan-y":i===m?"pan-x":i===h?"pan-y":"auto"},n.directionSetting=D[e.direction],n}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentWillUnmount",value:function(){this.cleanPressTimer()}},{key:"render",value:function(){var e=this.props.children,t=l.Children.only(e),n=this.getTouchAction(),i={onTouchStart:this._handleTouchStart,onTouchMove:this._handleTouchMove,onTouchCancel:this._handleTouchCancel,onTouchEnd:this._handleTouchEnd};return l.cloneElement(t,(0,r.default)({},i,{style:(0,r.default)({touchAction:n},t.props.style||{})}))}}]),t}(l.Component),L=R;R.defaultProps={enableRotate:!1,enablePinch:!1,direction:"all"}},4857:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o=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},a=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}}(),s=d(n(67294)),l=d(n(39889)),u=d(n(79367)),c=d(n(58303));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function p(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function m(e,t){if("function"!=typeof t&&null!==t)throw 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)}var g="autosize:update",v="autosize:destroy",y="autosize:resized",b=(i=r=function(e){function t(){p(this,t);for(var e,n,r,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={lineHeight:null},r.dispatchEvent=function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!1),r.textarea.dispatchEvent(t)},r.getValue=function(e){var t=e.valueLink,n=e.value;return t?t.value:n},r.updateLineHeight=function(){r.setState({lineHeight:(0,c.default)(r.textarea)})},r.onChange=function(e){r.currentValue=e.target.value,r.props.onChange&&r.props.onChange(e)},r.saveDOMNodeRef=function(e){var t=r.props.innerRef;t&&t(e),r.textarea=e},r.getLocals=function(){var e=r,t=e.props,n=(t.onResize,t.maxRows),i=(t.onChange,t.style),a=(t.innerRef,f(t,["onResize","maxRows","onChange","style","innerRef"])),s=e.state.lineHeight,l=e.saveDOMNodeRef,u=n&&s?s*n:null;return o({},a,{saveDOMNodeRef:l,style:u?o({},i,{maxHeight:u}):i,onChange:r.onChange})},h(r,n)}return m(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows?(this.updateLineHeight(),setTimeout(function(){return(0,u.default)(e.textarea)})):(0,u.default)(this.textarea),n&&this.textarea.addEventListener(y,this.props.onResize)}},{key:"componentWillUnmount",value:function(){this.props.onResize&&this.textarea.removeEventListener(y,this.props.onResize),this.dispatchEvent(v)}},{key:"render",value:function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=f(e,["children","saveDOMNodeRef"]);return s.default.createElement("textarea",o({},r,{ref:n}),t)}},{key:"componentDidUpdate",value:function(){this.getValue(this.props)!==this.currentValue&&this.dispatchEvent(g)}}]),t}(s.default.Component),r.defaultProps={rows:1},i);t.default=b,b.propTypes={rows:l.default.number,maxRows:l.default.number,onResize:l.default.func,innerRef:l.default.func}},54042:function(e,t,n){"use strict";r={value:!0},t.default=void 0;var r,i=o(n(4857));function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default},68349:function(e,t,n){"use strict";var r=n(60139),i=n(73759),o=n(24107);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"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")}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,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},39889:function(e,t,n){e.exports=n(68349)()},24107:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},32003: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)}function i(e,t){return s(e)||a(e,t)||o()}function o(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function a(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function s(e){if(Array.isArray(e))return e}function l(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function u(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)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function d(e,t){return t&&("object"===r(t)||"function"==typeof t)?t:p(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){if("function"!=typeof t&&null!==t)throw 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&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=n(67294),y=n(45697),b="production",_={};"production"!==b&&(_=n(16403));var E=function(e){function t(){l(this,t);for(var e,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return g(p(n=d(this,(e=f(t)).call.apply(e,[this].concat(i)))),"_allHandlers",{}),n}return h(t,e),c(t,[{key:"componentDidMount",value:function(){this.props.enabled&&this.bindHandlers(this.props)}},{key:"componentWillUnmount",value:function(){this.unbindHandlers(this.props)}},{key:"componentDidUpdate",value:function(e){Object.keys(this.props).sort().toString()!==Object.keys(e).sort().toString()?(this.unbindHandlers(e),this.bindHandlers(this.props)):!e.enabled&&this.props.enabled?this.bindHandlers(this.props):e.enabled&&!this.props.enabled&&this.unbindHandlers(e)}},{key:"getKeys",value:function(e){var t=(e=e||this.props).target===window;return Object.keys(e).filter(function(e){return"on"===e.slice(0,2)}).map(function(e){return"production"===b||-1===_.windowEvents.indexOf(e)||t||console.warn("You attached the handler "+e+", but this handler is only valid on the Window object."),[e,e.slice(2).toLowerCase()]})}},{key:"getTarget",value:function(e){var t="function"==typeof(e=e||this.props).target?e.target():e.target;return t||(t=this.node&&this.node.ownerDocument),t}},{key:"bindHandlers",value:function(e){this._adjustHandlers(w,e)}},{key:"unbindHandlers",value:function(e){this._adjustHandlers(S,e)}},{key:"_adjustHandlers",value:function(e,t){var n=this,r=this.getTarget(t);if(r){var o=T?{passive:t.passive,capture:t.capture}:t.capture;this.getKeys(t).forEach(function(t){var a=i(t,2),s=a[0],l=a[1],u=n._allHandlers[s]||function(e){return n.props[s](e)};n._allHandlers[s]=u,e(r,l,u,o)})}}},{key:"render",value:function(){var e=this;return this.props.target?null:v.createElement("noscript",{ref:function(t){e.node=t}})}}]),t}(v.Component);function w(e,t,n,r){return e.addEventListener||(t="on"+t),(e.addEventListener||e.attachEvent).call(e,t,n,r),n}function S(e,t,n,r){return e.removeEventListener||(t="on"+t),(e.removeEventListener||e.detachEvent).call(e,t,n,r),n}g(E,"displayName","DocumentEvents"),g(E,"defaultProps",{capture:!1,enabled:!0,passive:!1});var T=function(){try{var e=!1;return document.createElement("div").addEventListener("test",function(){},{get passive(){e=!0}}),e}catch(e){return!1}}();if("production"!==b){var O=_.allEvents.reduce(function(e,t){return e[t]=y.func,e},{});O.enabled=y.bool,O.target=y.oneOfType([y.object,y.func]),O.passive=y.bool,O.capture=y.bool,E.propTypes=O}e.exports=E},16403:function(e){"use strict";var t=["onAbort","onAnimationEnd","onAnimationIteration","onAnimationStart","onBlur","onCanPlay","onCanPlayThrough","onClick","onContextMenu","onCopy","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onFocus","onInput","onInvalid","onKeyDown","onKeyPress","onKeyUp","onLoad","onLoadedData","onLoadedMetadata","onLoadStart","onMouseDown","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPaste","onPause","onPlay","onPlaying","onProgress","onRateChange","onReset","onScroll","onSeeked","onSeeking","onStalled","onSubmit","onSuspend","onTimeUpdate","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onTransitionEnd","onVolumeChange","onWaiting","onWheel"],n=["onAfterPrint","onBeforePrint","onBeforeUnload","onDeviceLight","onDeviceMotion","onDeviceOrientation","onDeviceProximity","onHashChange","onLanguageChange","onPopState","onRejectionHandled","onResize","onSelect","onStorage","onUnhandledRejection","onUnload","onUserProximity"],r=["onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp"];e.exports={allEvents:t.concat(n).concat(r),documentEvents:t.concat(r),windowEvents:n}},98605:function(e,t,n){e.exports=n(32003)},64448:function(e,t,n){"use strict";/** @license React v17.0.2
 * 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,i,o,a,s,l,u=n(67294),c=n(27418),d=n(63840);function f(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(!u)throw Error(f(227));var p=new Set,h={};function m(e,t){g(e,t),g(e+"Capture",t)}function g(e,t){for(h[e]=t,e=0;e<t.length;e++)p.add(t[e])}var v=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b=Object.prototype.hasOwnProperty,_={},E={};function w(e){return!!b.call(E,e)||!b.call(_,e)&&(y.test(e)?E[e]=!0:(_[e]=!0,!1))}function S(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}function T(e,t,n,r){if(null==t||S(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function O(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new O(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];I[t]=new O(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new O(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new O(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){I[e]=new O(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new O(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new O(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new O(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new O(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function C(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=I.hasOwnProperty(t)?I[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(T(t,n,i,r)&&(n=null),r||null===i?w(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,C);I[t]=new O(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,C);I[t]=new O(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,C);I[t]=new O(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new O(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new O(e,1,!1,e.toLowerCase(),null,!0,!0)});var D=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=60103,L=60106,k=60107,M=60108,P=60114,N=60109,F=60110,B=60112,U=60113,H=60120,j=60115,V=60116,z=60121,Z=60128,G=60129,W=60130,q=60131;if("function"==typeof Symbol&&Symbol.for){var Y=Symbol.for;R=Y("react.element"),L=Y("react.portal"),k=Y("react.fragment"),M=Y("react.strict_mode"),P=Y("react.profiler"),N=Y("react.provider"),F=Y("react.context"),B=Y("react.forward_ref"),U=Y("react.suspense"),H=Y("react.suspense_list"),j=Y("react.memo"),V=Y("react.lazy"),z=Y("react.block"),Y("react.scope"),Z=Y("react.opaque.id"),G=Y("react.debug_trace_mode"),W=Y("react.offscreen"),q=Y("react.legacy_hidden")}var $="function"==typeof Symbol&&Symbol.iterator;function K(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}function X(e){if(void 0===eT)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);eT=t&&t[1]||""}return"\n"+eT+e}var Q=!1;function J(e,t){if(!e||Q)return"";Q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{Q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?X(e):""}function ee(e){switch(e.tag){case 5:return X(e.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1);case 11:return e=J(e.type.render,!1);case 22:return e=J(e.type._render,!1);case 1:return e=J(e.type,!0);default:return""}}function et(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 k:return"Fragment";case L:return"Portal";case P:return"Profiler";case M:return"StrictMode";case U:return"Suspense";case H:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case F:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case B:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case j:return et(e.type);case z:return et(e._render);case V:t=e._payload,e=e._init;try{return et(e(t))}catch(e){}}return null}function en(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function er(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ei(e){var t=er(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=ei(e))}function ea(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=er(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function es(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function el(e,t){var n=t.checked;return c({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function eu(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=en(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ec(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ed(e,t){ec(e,t);var n=en(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}t.hasOwnProperty("value")?ep(e,t.type,n):t.hasOwnProperty("defaultValue")&&ep(e,t.type,en(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ef(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ep(e,t,n){("number"!==t||es(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function eh(e){var t="";return u.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function em(e,t){return e=c({children:void 0},t),(t=eh(t.children))&&(e.children=t),e}function eg(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(i=0,n=""+en(n),t=null;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ev(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(f(91));return c({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ey(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(f(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(f(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:en(n)}}function eb(e,t){var n=en(t.value),r=en(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function e_(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var eE={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function ew(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eS(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ew(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eT,eO,eI=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==eE.svg||"innerHTML"in e)e.innerHTML=t;else{for((eO=eO||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eA(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var eC={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ex=["Webkit","ms","Moz","O"];function eD(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||eC.hasOwnProperty(e)&&eC[e]?(""+t).trim():t+"px"}function eR(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=eD(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(eC).forEach(function(e){ex.forEach(function(t){eC[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=eC[e]})});var eL=c({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ek(e,t){if(t){if(eL[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(f(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(f(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(f(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(f(62))}}function eM(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function eP(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var eN=null,eF=null,eB=null;function eU(e){if(e=rV(e)){if("function"!=typeof eN)throw Error(f(280));var t=e.stateNode;t&&(t=rZ(t),eN(e.stateNode,e.type,t))}}function eH(e){eF?eB?eB.push(e):eB=[e]:eF=e}function ej(){if(eF){var e=eF,t=eB;if(eB=eF=null,eU(e),t)for(e=0;e<t.length;e++)eU(t[e])}}function eV(e,t){return e(t)}function ez(e,t,n,r,i){return e(t,n,r,i)}function eZ(){}var eG=eV,eW=!1,eq=!1;function eY(){(null!==eF||null!==eB)&&(eZ(),ej())}function e$(e,t,n){if(eq)return e(t,n);eq=!0;try{return eG(e,t,n)}finally{eq=!1,eY()}}function eK(e,t){var n=e.stateNode;if(null===n)return null;var r=rZ(n);if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(f(231,t,typeof n));return n}var eX=!1;if(v)try{var eQ={};Object.defineProperty(eQ,"passive",{get:function(){eX=!0}}),window.addEventListener("test",eQ,eQ),window.removeEventListener("test",eQ,eQ)}catch(e){eX=!1}function eJ(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var e0=!1,e1=null,e2=!1,e4=null,e3={onError:function(e){e0=!0,e1=e}};function e5(e,t,n,r,i,o,a,s,l){e0=!1,e1=null,eJ.apply(e3,arguments)}function e6(e,t,n,r,i,o,a,s,l){if(e5.apply(this,arguments),e0){if(e0){var u=e1;e0=!1,e1=null}else throw Error(f(198));e2||(e2=!0,e4=u)}}function e9(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(1026&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function e8(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function e7(e){if(e9(e)!==e)throw Error(f(188))}function te(e){var t=e.alternate;if(!t){if(null===(t=e9(e)))throw Error(f(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return e7(i),e;if(o===r)return e7(i),t;o=o.sibling}throw Error(f(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(f(189))}}if(n.alternate!==r)throw Error(f(190))}if(3!==n.tag)throw Error(f(188));return n.stateNode.current===n?e:t}function tt(e){if(!(e=te(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function tn(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tr,ti,to,ta,ts=!1,tl=[],tu=null,tc=null,td=null,tf=new Map,tp=new Map,th=[],tm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tg(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function tv(e,t){switch(e){case"focusin":case"focusout":tu=null;break;case"dragenter":case"dragleave":tc=null;break;case"mouseover":case"mouseout":td=null;break;case"pointerover":case"pointerout":tf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tp.delete(t.pointerId)}}function ty(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=tg(t,n,r,i,o),null!==t&&null!==(t=rV(t))&&ti(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function tb(e,t,n,r,i){switch(t){case"focusin":return tu=ty(tu,e,t,n,r,i),!0;case"dragenter":return tc=ty(tc,e,t,n,r,i),!0;case"mouseover":return td=ty(td,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return tf.set(o,ty(tf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,tp.set(o,ty(tp.get(o)||null,e,t,n,r,i)),!0}return!1}function t_(e){var t=rj(e.target);if(null!==t){var n=e9(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=e8(n))){e.blockedOn=t,ta(e.lanePriority,function(){d.unstable_runWithPriority(e.priority,function(){to(n)})});return}}else if(3===t&&n.stateNode.hydrate){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tE(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=t5(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=rV(n))&&ti(t),e.blockedOn=n,!1;t.shift()}return!0}function tw(e,t,n){tE(e)&&n.delete(t)}function tS(){for(ts=!1;0<tl.length;){var e=tl[0];if(null!==e.blockedOn){null!==(e=rV(e.blockedOn))&&tr(e);break}for(var t=e.targetContainers;0<t.length;){var n=t5(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&tl.shift()}null!==tu&&tE(tu)&&(tu=null),null!==tc&&tE(tc)&&(tc=null),null!==td&&tE(td)&&(td=null),tf.forEach(tw),tp.forEach(tw)}function tT(e,t){e.blockedOn===t&&(e.blockedOn=null,ts||(ts=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,tS)))}function tO(e){function t(t){return tT(t,e)}if(0<tl.length){tT(tl[0],e);for(var n=1;n<tl.length;n++){var r=tl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==tu&&tT(tu,e),null!==tc&&tT(tc,e),null!==td&&tT(td,e),tf.forEach(t),tp.forEach(t),n=0;n<th.length;n++)(r=th[n]).blockedOn===e&&(r.blockedOn=null);for(;0<th.length&&null===(n=th[0]).blockedOn;)t_(n),null===n.blockedOn&&th.shift()}function tI(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tA={animationend:tI("Animation","AnimationEnd"),animationiteration:tI("Animation","AnimationIteration"),animationstart:tI("Animation","AnimationStart"),transitionend:tI("Transition","TransitionEnd")},tC={},tx={};function tD(e){if(tC[e])return tC[e];if(!tA[e])return e;var t,n=tA[e];for(t in n)if(n.hasOwnProperty(t)&&t in tx)return tC[e]=n[t];return e}v&&(tx=document.createElement("div").style,"AnimationEvent"in window||(delete tA.animationend.animation,delete tA.animationiteration.animation,delete tA.animationstart.animation),"TransitionEvent"in window||delete tA.transitionend.transition);var tR=tD("animationend"),tL=tD("animationiteration"),tk=tD("animationstart"),tM=tD("transitionend"),tP=new Map,tN=new Map,tF=["abort","abort",tR,"animationEnd",tL,"animationIteration",tk,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",tM,"transitionEnd","waiting","waiting"];function tB(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),tN.set(r,t),tP.set(r,i),m(i,[r])}}(0,d.unstable_now)();var tU=8;function tH(e){if(0!=(1&e))return tU=15,1;if(0!=(2&e))return tU=14,2;if(0!=(4&e))return tU=13,4;var t=24&e;return 0!==t?(tU=12,t):0!=(32&e)?(tU=11,32):0!=(t=192&e)?(tU=10,t):0!=(256&e)?(tU=9,256):0!=(t=3584&e)?(tU=8,t):0!=(4096&e)?(tU=7,4096):0!=(t=4186112&e)?(tU=6,t):0!=(t=62914560&e)?(tU=5,t):67108864&e?(tU=4,67108864):0!=(134217728&e)?(tU=3,134217728):0!=(t=805306368&e)?(tU=2,t):0!=(1073741824&e)?(tU=1,1073741824):(tU=8,e)}function tj(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function tV(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(f(358,e))}}function tz(e,t){var n=e.pendingLanes;if(0===n)return tU=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=tU=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=tH(l),i=tU):0!=(s&=o)&&(r=tH(s),i=tU)}else 0!=(o=n&~a)?(r=tH(o),i=tU):0!==s&&(r=tH(s),i=tU);if(0===r)return 0;if(r=n&((0>(r=31-t$(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(tH(t),i<=tU)return t;tU=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-t$(t)),r|=e[n],t&=~i;return r}function tZ(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tG(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=tW(24&~t))?tG(10,t):e;case 10:return 0===(e=tW(192&~t))?tG(8,t):e;case 8:return 0===(e=tW(3584&~t))&&0===(e=tW(4186112&~t))&&(e=512),e;case 2:return 0===(t=tW(805306368&~t))&&(t=268435456),t}throw Error(f(358,e))}function tW(e){return e&-e}function tq(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tY(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-t$(t)]=n}var t$=Math.clz32?Math.clz32:tQ,tK=Math.log,tX=Math.LN2;function tQ(e){return 0===e?32:31-(tK(e)/tX|0)|0}var tJ=d.unstable_UserBlockingPriority,t0=d.unstable_runWithPriority,t1=!0;function t2(e,t,n,r){eW||eZ();var i=t3,o=eW;eW=!0;try{ez(i,e,t,n,r)}finally{(eW=o)||eY()}}function t4(e,t,n,r){t0(tJ,t3.bind(null,e,t,n,r))}function t3(e,t,n,r){if(t1){var i;if((i=0==(4&t))&&0<tl.length&&-1<tm.indexOf(e))e=tg(null,e,t,n,r),tl.push(e);else{var o=t5(e,t,n,r);if(null===o)i&&tv(e,r);else{if(i){if(-1<tm.indexOf(e)){e=tg(o,e,t,n,r),tl.push(e);return}if(tb(o,e,t,n,r))return;tv(e,r)}rb(e,t,r,null,n)}}}}function t5(e,t,n,r){var i=eP(r);if(null!==(i=rj(i))){var o=e9(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=e8(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return rb(e,t,r,i,n),null}var t6=null,t9=null,t8=null;function t7(){if(t8)return t8;var e,t,n=t9,r=n.length,i="value"in t6?t6.value:t6.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return t8=i.slice(e,1<t?1-t:void 0)}function ne(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nt(){return!0}function nn(){return!1}function nr(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nt:nn,this.isPropagationStopped=nn,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nt)},persist:function(){},isPersistent:nt}),t}var ni,no,na,ns={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nl=nr(ns),nu=c({},ns,{view:0,detail:0}),nc=nr(nu),nd=c({},nu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nw,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==na&&(na&&"mousemove"===e.type?(ni=e.screenX-na.screenX,no=e.screenY-na.screenY):no=ni=0,na=e),ni)},movementY:function(e){return"movementY"in e?e.movementY:no}}),nf=nr(nd),np=nr(c({},nd,{dataTransfer:0})),nh=nr(c({},nu,{relatedTarget:0})),nm=nr(c({},ns,{animationName:0,elapsedTime:0,pseudoElement:0})),ng=nr(c({},ns,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),nv=nr(c({},ns,{data:0})),ny={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},n_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=n_[e])&&!!t[e]}function nw(){return nE}var nS=nr(c({},nu,{key:function(e){if(e.key){var t=ny[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ne(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?nb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nw,charCode:function(e){return"keypress"===e.type?ne(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ne(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),nT=nr(c({},nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nO=nr(c({},nu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nw})),nI=nr(c({},ns,{propertyName:0,elapsedTime:0,pseudoElement:0})),nA=nr(c({},nd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nC=[9,13,27,32],nx=v&&"CompositionEvent"in window,nD=null;v&&"documentMode"in document&&(nD=document.documentMode);var nR=v&&"TextEvent"in window&&!nD,nL=v&&(!nx||nD&&8<nD&&11>=nD),nk=" ",nM=!1;function nP(e,t){switch(e){case"keyup":return -1!==nC.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nN(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nF=!1;function nB(e,t){switch(e){case"compositionend":return nN(t);case"keypress":if(32!==t.which)return null;return nM=!0,nk;case"textInput":return(e=t.data)===nk&&nM?null:e;default:return null}}function nU(e,t){if(nF)return"compositionend"===e||!nx&&nP(e,t)?(e=t7(),t8=t9=t6=null,nF=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nL&&"ko"!==t.locale?null:t.data}}var nH={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nH[e.type]:"textarea"===t}function nV(e,t,n,r){eH(r),0<(t=rE(t,"onChange")).length&&(n=new nl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nz=null,nZ=null;function nG(e){rp(e,0)}function nW(e){if(ea(rz(e)))return e}function nq(e,t){if("change"===e)return t}var nY=!1;if(v){if(v){var n$="oninput"in document;if(!n$){var nK=document.createElement("div");nK.setAttribute("oninput","return;"),n$="function"==typeof nK.oninput}r=n$}else r=!1;nY=r&&(!document.documentMode||9<document.documentMode)}function nX(){nz&&(nz.detachEvent("onpropertychange",nQ),nZ=nz=null)}function nQ(e){if("value"===e.propertyName&&nW(nZ)){var t=[];if(nV(t,nZ,e,eP(e)),e=nG,eW)e(t);else{eW=!0;try{eV(e,t)}finally{eW=!1,eY()}}}}function nJ(e,t,n){"focusin"===e?(nX(),nz=t,nZ=n,nz.attachEvent("onpropertychange",nQ)):"focusout"===e&&nX()}function n0(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nW(nZ)}function n1(e,t){if("click"===e)return nW(t)}function n2(e,t){if("input"===e||"change"===e)return nW(t)}function n4(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var n3="function"==typeof Object.is?Object.is:n4,n5=Object.prototype.hasOwnProperty;function n6(e,t){if(n3(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!n5.call(t,n[r])||!n3(e[n[r]],t[n[r]]))return!1;return!0}function n9(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function n8(e,t){var n,r=n9(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=n9(r)}}function n7(e,t){return!!e&&!!t&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?n7(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function re(){for(var e=window,t=es();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=es(e.document)}return t}function rt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var rn=v&&"documentMode"in document&&11>=document.documentMode,rr=null,ri=null,ro=null,ra=!1;function rs(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ra||null==rr||rr!==es(r)||(r="selectionStart"in(r=rr)&&rt(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ro&&n6(ro,r)||(ro=r,0<(r=rE(ri,"onSelect")).length&&(t=new nl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}tB("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),tB("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),tB(tF,2);for(var rl="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ru=0;ru<rl.length;ru++)tN.set(rl[ru],0);g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rd=new Set("cancel close invalid load scroll toggle".split(" ").concat(rc));function rf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,e6(r,t,void 0,e),e.currentTarget=null}function rp(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;rf(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;rf(i,s,u),o=l}}}if(e2)throw e=e4,e2=!1,e4=null,e}function rh(e,t){var n=rG(t),r=e+"__bubble";n.has(r)||(ry(t,e,2,!1),n.add(r))}var rm="_reactListening"+Math.random().toString(36).slice(2);function rg(e){e[rm]||(e[rm]=!0,p.forEach(function(t){rd.has(t)||rv(t,!1,e,null),rv(t,!0,e,null)}))}function rv(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&rd.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=rG(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),ry(o,e,i,t),a.add(s))}function ry(e,t,n,r){var i=tN.get(t);switch(void 0===i?2:i){case 0:i=t2;break;case 1:i=t4;break;default:i=t3}n=i.bind(null,t,n,e),i=void 0,eX&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function rb(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=rj(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}e$(function(){var r=o,i=eP(n),a=[];e:{var s=tP.get(e);if(void 0!==s){var l=nl,u=e;switch(e){case"keypress":if(0===ne(n))break e;case"keydown":case"keyup":l=nS;break;case"focusin":u="focus",l=nh;break;case"focusout":u="blur",l=nh;break;case"beforeblur":case"afterblur":l=nh;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=np;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=nO;break;case tR:case tL:case tk:l=nm;break;case tM:l=nI;break;case"scroll":l=nc;break;case"wheel":l=nA;break;case"copy":case"cut":case"paste":l=ng;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=nT}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=eK(h,f))&&c.push(r_(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(s="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e,!(s&&0==(16&t)&&(u=n.relatedTarget||n.fromElement)&&(rj(u)||u[rU]))&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,null!==(u=u?rj(u):null)&&(d=e9(u),u!==d||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=nf,m="onMouseLeave",f="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=nT,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:rz(l),p=null==u?s:rz(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,rj(i)===r&&((c=new c(f,h+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)t:{for(c=l,f=u,h=0,p=c;p;p=rw(p))h++;for(p=0,m=f;m;m=rw(m))p++;for(;0<h-p;)c=rw(c),h--;for(;0<p-h;)f=rw(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break t;c=rw(c),f=rw(f)}c=null}else c=null;null!==l&&rS(a,s,l,c,!1),null!==u&&null!==d&&rS(a,d,u,c,!0)}e:{if("select"===(l=(s=r?rz(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g,v=nq;else if(nj(s)){if(nY)v=n2;else{v=n0;var y=nJ}}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=n1);if(v&&(v=v(e,r))){nV(a,v,n,i);break e}y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ep(s,"number",s.value)}switch(y=r?rz(r):window,e){case"focusin":(nj(y)||"true"===y.contentEditable)&&(rr=y,ri=r,ro=null);break;case"focusout":ro=ri=rr=null;break;case"mousedown":ra=!0;break;case"contextmenu":case"mouseup":case"dragend":ra=!1,rs(a,n,i);break;case"selectionchange":if(rn)break;case"keydown":case"keyup":rs(a,n,i)}if(nx)t:{switch(e){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else nF?nP(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(nL&&"ko"!==n.locale&&(nF||"onCompositionStart"!==b?"onCompositionEnd"===b&&nF&&(g=t7()):(t9="value"in(t6=i)?t6.value:t6.textContent,nF=!0)),0<(y=rE(r,b)).length&&(b=new nv(b,e,null,n,i),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=nN(n))&&(b.data=g))),(g=nR?nB(e,n):nU(e,n))&&0<(r=rE(r,"onBeforeInput")).length&&(i=new nv("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g)}rp(a,t)})}function r_(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rE(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=eK(e,n))&&r.unshift(r_(e,o,i)),null!=(o=eK(e,t))&&r.push(r_(e,o,i))),e=e.return}return r}function rw(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function rS(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=eK(n,o))&&a.unshift(r_(n,l,s)):i||null!=(l=eK(n,o))&&a.push(r_(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function rT(){}var rO=null,rI=null;function rA(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function rC(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rx="function"==typeof setTimeout?setTimeout:void 0,rD="function"==typeof clearTimeout?clearTimeout:void 0;function rR(e){1===e.nodeType?e.textContent="":9===e.nodeType&&null!=(e=e.body)&&(e.textContent="")}function rL(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function rk(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var rM=0;function rP(e){return{$$typeof:Z,toString:e,valueOf:e}}var rN=Math.random().toString(36).slice(2),rF="__reactFiber$"+rN,rB="__reactProps$"+rN,rU="__reactContainer$"+rN,rH="__reactEvents$"+rN;function rj(e){var t=e[rF];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rU]||n[rF]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rk(e);null!==e;){if(n=e[rF])return n;e=rk(e)}return t}n=(e=n).parentNode}return null}function rV(e){return(e=e[rF]||e[rU])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function rz(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(f(33))}function rZ(e){return e[rB]||null}function rG(e){var t=e[rH];return void 0===t&&(t=e[rH]=new Set),t}var rW=[],rq=-1;function rY(e){return{current:e}}function r$(e){0>rq||(e.current=rW[rq],rW[rq]=null,rq--)}function rK(e,t){rW[++rq]=e.current,e.current=t}var rX={},rQ=rY(rX),rJ=rY(!1),r0=rX;function r1(e,t){var n=e.type.contextTypes;if(!n)return rX;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function r2(e){return null!=(e=e.childContextTypes)}function r4(){r$(rJ),r$(rQ)}function r3(e,t,n){if(rQ.current!==rX)throw Error(f(168));rK(rQ,t),rK(rJ,n)}function r5(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(f(108,et(t)||"Unknown",i));return c({},n,r)}function r6(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rX,r0=rQ.current,rK(rQ,e),rK(rJ,rJ.current),!0}function r9(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=r5(e,t,r0),r.__reactInternalMemoizedMergedChildContext=e,r$(rJ),r$(rQ),rK(rQ,e)):r$(rJ),rK(rJ,n)}var r8=null,r7=null,ie=d.unstable_runWithPriority,it=d.unstable_scheduleCallback,ir=d.unstable_cancelCallback,ii=d.unstable_shouldYield,io=d.unstable_requestPaint,ia=d.unstable_now,is=d.unstable_getCurrentPriorityLevel,il=d.unstable_ImmediatePriority,iu=d.unstable_UserBlockingPriority,ic=d.unstable_NormalPriority,id=d.unstable_LowPriority,ip=d.unstable_IdlePriority,ih={},im=void 0!==io?io:function(){},ig=null,iv=null,iy=!1,ib=ia(),i_=1e4>ib?ia:function(){return ia()-ib};function iE(){switch(is()){case il:return 99;case iu:return 98;case ic:return 97;case id:return 96;case ip:return 95;default:throw Error(f(332))}}function iw(e){switch(e){case 99:return il;case 98:return iu;case 97:return ic;case 96:return id;case 95:return ip;default:throw Error(f(332))}}function iS(e,t){return ie(e=iw(e),t)}function iT(e,t,n){return it(e=iw(e),t,n)}function iO(){if(null!==iv){var e=iv;iv=null,ir(e)}iI()}function iI(){if(!iy&&null!==ig){iy=!0;var e=0;try{var t=ig;iS(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(null!==n)}}),ig=null}catch(t){throw null!==ig&&(ig=ig.slice(e+1)),it(il,iO),t}finally{iy=!1}}}var iA=D.ReactCurrentBatchConfig;function iC(e,t){if(e&&e.defaultProps)for(var n in t=c({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ix=rY(null),iD=null,iR=null,iL=null;function ik(){iL=iR=iD=null}function iM(e){var t=ix.current;r$(ix),e.type._context._currentValue=t}function iP(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function iN(e,t){iD=e,iL=iR=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(o4=!0),e.firstContext=null)}function iF(e,t){if(iL!==e&&!1!==t&&0!==t){if(("number"!=typeof t||1073741823===t)&&(iL=e,t=1073741823),t={context:e,observedBits:t,next:null},null===iR){if(null===iD)throw Error(f(308));iR=t,iD.dependencies={lanes:0,firstContext:t,responders:null}}else iR=iR.next=t}return e._currentValue}var iB=!1;function iU(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function iH(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ij(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function iV(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function iz(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function iZ(e,t,n,r){var i=e.updateQueue;iB=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==a&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(null!==o){for(f=i.baseState,a=0,d=u=l=null;;){s=o.lane;var p=o.eventTime;if((r&s)===s){null!==d&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,s);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,f,s):h))break e;f=c({},f,s);break e;case 2:iB=!0}}null!==o.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[o]:s.push(o))}else p={eventTime:p,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(u=d=p,l=f):d=d.next=p,a|=s;if(null===(o=o.next)){if(null===(s=i.shared.pending))break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===d&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,aY|=a,e.lanes=a,e.memoizedState=f}}function iG(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(f(191,i));i.call(r)}}}var iW=(new u.Component).refs;function iq(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var iY={isMounted:function(e){return!!(e=e._reactInternals)&&e9(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sl(),i=su(e),o=ij(r,i);o.payload=t,null!=n&&(o.callback=n),iV(e,o),sc(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sl(),i=su(e),o=ij(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),iV(e,o),sc(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sl(),r=su(e),i=ij(n,r);i.tag=2,null!=t&&(i.callback=t),iV(e,i),sc(e,r,n)}};function i$(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||!n6(n,r)||!n6(i,o)}function iK(e,t,n){var r=!1,i=rX,o=t.contextType;return"object"==typeof o&&null!==o?o=iF(o):(i=r2(t)?r0:rQ.current,o=(r=null!=(r=t.contextTypes))?r1(e,i):rX),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=iY,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function iX(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&iY.enqueueReplaceState(t,t.state,null)}function iQ(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=iW,iU(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=iF(o):(o=r2(t)?r0:rQ.current,i.context=r1(e,o)),iZ(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(iq(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&iY.enqueueReplaceState(i,i.state,null),iZ(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var iJ=Array.isArray;function i0(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(f(309));var r=n.stateNode}if(!r)throw Error(f(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===iW&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(f(284));if(!n._owner)throw Error(f(290,e))}return e}function i1(e,t){if("textarea"!==e.type)throw Error(f(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function i2(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=sZ(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?(t=sY(n,e.mode,r)).return=e:(t=i(t,n)).return=e,t}function l(e,t,n,r){return null!==t&&t.elementType===n.type?(r=i(t,n.props)).ref=i0(e,t,n):(r=sG(n.type,n.key,n.props,null,e.mode,r)).ref=i0(e,t,n),r.return=e,r}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=s$(n,e.mode,r)).return=e:(t=i(t,n.children||[])).return=e,t}function c(e,t,n,r,o){return null===t||7!==t.tag?(t=sW(n,e.mode,r,o)).return=e:(t=i(t,n)).return=e,t}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=sY(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case R:return(n=sG(t.type,t.key,t.props,null,e.mode,n)).ref=i0(e,null,t),n.return=e,n;case L:return(t=s$(t,e.mode,n)).return=e,t}if(iJ(t)||K(t))return(t=sW(t,e.mode,n,null)).return=e,t;i1(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case R:return n.key===i?n.type===k?c(e,t,n.props.children,r,i):l(e,t,n,r):null;case L:return n.key===i?u(e,t,n,r):null}if(iJ(n)||K(n))return null!==i?null:c(e,t,n,r,null);i1(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case R:return e=e.get(null===r.key?n:r.key)||null,r.type===k?c(t,e,r.props.children,i,r.key):l(t,e,r,i);case L:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(iJ(r)||K(r))return c(t,e=e.get(n)||null,r,i,null);i1(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,f=a,m=a=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=p(i,f,s[m],l);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,f=g}if(m===s.length)return n(i,f),u;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],l))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<s.length;m++)null!==(g=h(f,i,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(i,e)}),u}function g(i,a,s,l){var u=K(s);if("function"!=typeof u)throw Error(f(150));if(null==(s=u.call(s)))throw Error(f(151));for(var c=u=null,m=a,g=a=0,v=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),a=o(b,a,g),null===c?u=b:c.sibling=b,c=b,m=v}if(y.done)return n(i,m),u;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,g),null===c?u=y:c.sibling=y,c=y);return u}for(m=r(i,m);!y.done;g++,y=s.next())null!==(y=h(m,i,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=o(y,a,g),null===c?u=y:c.sibling=y,c=y);return e&&m.forEach(function(e){return t(i,e)}),u}return function(e,r,o,s){var l="object"==typeof o&&null!==o&&o.type===k&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case R:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag){if(o.type===k){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=i0(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===k?((r=sW(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=sG(o.type,o.key,o.props,null,e.mode,s)).ref=i0(e,r,o),s.return=e,e=s)}return a(e);case L:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=s$(o,e.mode,s)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e):(n(e,r),(r=sY(o,e.mode,s)).return=e),a(e=r);if(iJ(o))return m(e,r,o,s);if(K(o))return g(e,r,o,s);if(u&&i1(e,o),void 0===o&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(f(152,et(e.type)||"Component"))}return n(e,r)}}var i4=i2(!0),i3=i2(!1),i5={},i6=rY(i5),i9=rY(i5),i8=rY(i5);function i7(e){if(e===i5)throw Error(f(174));return e}function oe(e,t){switch(rK(i8,t),rK(i9,e),rK(i6,i5),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eS(null,"");break;default:t=eS(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}r$(i6),rK(i6,t)}function ot(){r$(i6),r$(i9),r$(i8)}function on(e){i7(i8.current);var t=i7(i6.current),n=eS(t,e.type);t!==n&&(rK(i9,e),rK(i6,n))}function or(e){i9.current===e&&(r$(i6),r$(i9))}var oi=rY(0);function oo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oa=null,os=null,ol=!1;function ou(e,t){var n=sj(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function oc(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function od(e){if(ol){var t=os;if(t){var n=t;if(!oc(e,t)){if(!(t=rL(n.nextSibling))||!oc(e,t)){e.flags=-1025&e.flags|2,ol=!1,oa=e;return}ou(oa,n)}oa=e,os=rL(t.firstChild)}else e.flags=-1025&e.flags|2,ol=!1,oa=e}}function of(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oa=e}function op(e){if(e!==oa)return!1;if(!ol)return of(e),ol=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!rC(t,e.memoizedProps))for(t=os;t;)ou(e,t),t=rL(t.nextSibling);if(of(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(f(317));e:{for(t=0,e=e.nextSibling;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){os=rL(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}os=null}}else os=oa?rL(e.stateNode.nextSibling):null;return!0}function oh(){os=oa=null,ol=!1}var om=[];function og(){for(var e=0;e<om.length;e++)om[e]._workInProgressVersionPrimary=null;om.length=0}var ov=D.ReactCurrentDispatcher,oy=D.ReactCurrentBatchConfig,ob=0,o_=null,oE=null,ow=null,oS=!1,oT=!1;function oO(){throw Error(f(321))}function oI(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!n3(e[n],t[n]))return!1;return!0}function oA(e,t,n,r,i,o){if(ob=o,o_=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ov.current=null===e||null===e.memoizedState?oJ:o0,e=n(r,i),oT){o=0;do{if(oT=!1,!(25>o))throw Error(f(301));o+=1,ow=oE=null,t.updateQueue=null,ov.current=o1,e=n(r,i)}while(oT)}if(ov.current=oQ,t=null!==oE&&null!==oE.next,ob=0,ow=oE=o_=null,oS=!1,t)throw Error(f(300));return e}function oC(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ow?o_.memoizedState=ow=e:ow=ow.next=e,ow}function ox(){if(null===oE){var e=o_.alternate;e=null!==e?e.memoizedState:null}else e=oE.next;var t=null===ow?o_.memoizedState:ow.next;if(null!==t)ow=t,oE=e;else{if(null===e)throw Error(f(310));e={memoizedState:(oE=e).memoizedState,baseState:oE.baseState,baseQueue:oE.baseQueue,queue:oE.queue,next:null},null===ow?o_.memoizedState=ow=e:ow=ow.next=e}return ow}function oD(e,t){return"function"==typeof t?t(e):t}function oR(e){var t=ox(),n=t.queue;if(null===n)throw Error(f(311));n.lastRenderedReducer=e;var r=oE,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var u=l.lane;if((ob&u)===u)null!==s&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(a=s=c,o=r):s=s.next=c,o_.lanes|=u,aY|=u}l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=a,n3(r,t.memoizedState)||(o4=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oL(e){var t=ox(),n=t.queue;if(null===n)throw Error(f(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);n3(o,t.memoizedState)||(o4=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ok(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(ob&e)===e)&&(t._workInProgressVersionPrimary=r,om.push(t))),e)return n(t._source);throw om.push(t),Error(f(350))}function oM(e,t,n,r){var i=aH;if(null===i)throw Error(f(349));var o=t._getVersion,a=o(t._source),s=ov.current,l=s.useState(function(){return ok(i,t,n)}),u=l[1],c=l[0];l=ow;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var g=o_;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!n3(a,e)){e=n(t._source),n3(c,e)||(u(e),e=su(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-t$(s),d=1<<l;r[l]|=e,s&=~d}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=su(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),n3(h,n)&&n3(m,t)&&n3(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oD,lastRenderedState:c}).dispatch=u=oX.bind(null,o_,e),l.queue=e,l.baseQueue=null,c=ok(i,t,n),l.memoizedState=l.baseState=c),c}function oP(e,t,n){return oM(ox(),e,t,n)}function oN(e){var t=oC();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oD,lastRenderedState:e}).dispatch=oX.bind(null,o_,e),[t.memoizedState,e]}function oF(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=o_.updateQueue)?(t={lastEffect:null},o_.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function oB(e){return e={current:e},oC().memoizedState=e}function oU(){return ox().memoizedState}function oH(e,t,n,r){var i=oC();o_.flags|=e,i.memoizedState=oF(1|t,n,void 0,void 0===r?null:r)}function oj(e,t,n,r){var i=ox();r=void 0===r?null:r;var o=void 0;if(null!==oE){var a=oE.memoizedState;if(o=a.destroy,null!==r&&oI(r,a.deps)){oF(t,n,o,r);return}}o_.flags|=e,i.memoizedState=oF(1|t,n,o,r)}function oV(e,t){return oH(516,4,e,t)}function oz(e,t){return oj(516,4,e,t)}function oZ(e,t){return oj(4,2,e,t)}function oG(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function oW(e,t,n){return n=null!=n?n.concat([e]):null,oj(4,2,oG.bind(null,t,e),n)}function oq(){}function oY(e,t){var n=ox();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oI(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function o$(e,t){var n=ox();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oI(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oK(e,t){var n=iE();iS(98>n?98:n,function(){e(!0)}),iS(97<n?97:n,function(){var n=oy.transition;oy.transition=1;try{e(!1),t()}finally{oy.transition=n}})}function oX(e,t,n){var r=sl(),i=su(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===o_||null!==a&&a===o_)oT=oS=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,n3(l,s))return}catch(e){}finally{}sc(e,i,r)}}var oQ={readContext:iF,useCallback:oO,useContext:oO,useEffect:oO,useImperativeHandle:oO,useLayoutEffect:oO,useMemo:oO,useReducer:oO,useRef:oO,useState:oO,useDebugValue:oO,useDeferredValue:oO,useTransition:oO,useMutableSource:oO,useOpaqueIdentifier:oO,unstable_isNewReconciler:!1},oJ={readContext:iF,useCallback:function(e,t){return oC().memoizedState=[e,void 0===t?null:t],e},useContext:iF,useEffect:oV,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oH(4,2,oG.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oH(4,2,e,t)},useMemo:function(e,t){var n=oC();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oC();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=oX.bind(null,o_,e),[r.memoizedState,e]},useRef:oB,useState:oN,useDebugValue:oq,useDeferredValue:function(e){var t=oN(e),n=t[0],r=t[1];return oV(function(){var t=oy.transition;oy.transition=1;try{r(e)}finally{oy.transition=t}},[e]),n},useTransition:function(){var e=oN(!1),t=e[0];return oB(e=oK.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=oC();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},oM(r,e,t,n)},useOpaqueIdentifier:function(){if(ol){var e=!1,t=rP(function(){throw e||(e=!0,n("r:"+(rM++).toString(36))),Error(f(355))}),n=oN(t)[1];return 0==(2&o_.mode)&&(o_.flags|=516,oF(5,function(){n("r:"+(rM++).toString(36))},void 0,null)),t}return oN(t="r:"+(rM++).toString(36)),t},unstable_isNewReconciler:!1},o0={readContext:iF,useCallback:oY,useContext:iF,useEffect:oz,useImperativeHandle:oW,useLayoutEffect:oZ,useMemo:o$,useReducer:oR,useRef:oU,useState:function(){return oR(oD)},useDebugValue:oq,useDeferredValue:function(e){var t=oR(oD),n=t[0],r=t[1];return oz(function(){var t=oy.transition;oy.transition=1;try{r(e)}finally{oy.transition=t}},[e]),n},useTransition:function(){var e=oR(oD)[0];return[oU().current,e]},useMutableSource:oP,useOpaqueIdentifier:function(){return oR(oD)[0]},unstable_isNewReconciler:!1},o1={readContext:iF,useCallback:oY,useContext:iF,useEffect:oz,useImperativeHandle:oW,useLayoutEffect:oZ,useMemo:o$,useReducer:oL,useRef:oU,useState:function(){return oL(oD)},useDebugValue:oq,useDeferredValue:function(e){var t=oL(oD),n=t[0],r=t[1];return oz(function(){var t=oy.transition;oy.transition=1;try{r(e)}finally{oy.transition=t}},[e]),n},useTransition:function(){var e=oL(oD)[0];return[oU().current,e]},useMutableSource:oP,useOpaqueIdentifier:function(){return oL(oD)[0]},unstable_isNewReconciler:!1},o2=D.ReactCurrentOwner,o4=!1;function o3(e,t,n,r){t.child=null===e?i3(t,null,n,r):i4(t,e.child,n,r)}function o5(e,t,n,r,i){n=n.render;var o=t.ref;return(iN(t,i),r=oA(e,t,n,r,o,i),null===e||o4)?(t.flags|=1,o3(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,af(e,t,i))}function o6(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||sV(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=sG(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,o9(e,t,a,r,i,o))}return(a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:n6)(i,r)&&e.ref===t.ref))?af(e,t,o):(t.flags|=1,(e=sZ(a,r)).ref=t.ref,e.return=t,t.child=e)}function o9(e,t,n,r,i,o){if(null!==e&&n6(e.memoizedProps,r)&&e.ref===t.ref){if(o4=!1,0==(o&i))return t.lanes=e.lanes,af(e,t,o);0!=(16384&e.flags)&&(o4=!0)}return ae(e,t,n,r,o)}function o8(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode){if(0==(4&t.mode))t.memoizedState={baseLanes:0},sb(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},sb(t,e),null;t.memoizedState={baseLanes:0},sb(t,null!==o?o.baseLanes:n)}}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,sb(t,r);return o3(e,t,i,n),t.child}function o7(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function ae(e,t,n,r,i){var o=r2(n)?r0:rQ.current;return(o=r1(t,o),iN(t,i),n=oA(e,t,n,r,o,i),null===e||o4)?(t.flags|=1,o3(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,af(e,t,i))}function at(e,t,n,r,i){if(r2(n)){var o=!0;r6(t)}else o=!1;if(iN(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),iK(t,n,r),iQ(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?iF(u):r1(t,u=r2(n)?r0:rQ.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&iX(t,a,r,u),iB=!1;var f=t.memoizedState;a.state=f,iZ(t,r,a,i),l=t.memoizedState,s!==r||f!==l||rJ.current||iB?("function"==typeof c&&(iq(t,n,c,r),l=t.memoizedState),(s=iB||i$(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,iH(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:iC(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?iF(l):r1(t,l=r2(n)?r0:rQ.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&iX(t,a,r,l),iB=!1,f=t.memoizedState,a.state=f,iZ(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||rJ.current||iB?("function"==typeof p&&(iq(t,n,p,r),h=t.memoizedState),(u=iB||i$(t,n,u,r,f,h,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return an(e,t,n,r,o,i)}function an(e,t,n,r,i,o){o7(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&r9(t,n,!1),af(e,t,o);r=t.stateNode,o2.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=i4(t,e.child,null,o),t.child=i4(t,null,s,o)):o3(e,t,s,o),t.memoizedState=r.state,i&&r9(t,n,!0),t.child}function ar(e){var t=e.stateNode;t.pendingContext?r3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&r3(e,t.context,!1),oe(e,t.containerInfo)}var ai={dehydrated:null,retryLane:0};function ao(e,t,n){var r,i=t.pendingProps,o=oi.current,a=!1;return((r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),rK(oi,1&o),null===e)?(void 0!==i.fallback&&od(t),e=i.children,o=i.fallback,a)?(e=aa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ai,e):"number"==typeof i.unstable_expectedLoadTime?(e=aa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ai,t.lanes=33554432,e):((n=sq({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n):(e.memoizedState,a?(i=al(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=ai,i):(n=as(e,t,i.children,n),t.memoizedState=null,n))}function aa(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=sq(t,i,0,null),n=sW(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function as(e,t,n,r){var i=e.child;return e=i.sibling,n=sZ(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function al(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=sZ(a,s),null!==e?r=sZ(e,r):(r=sW(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function au(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),iP(e.return,t)}function ac(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ad(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(o3(e,t,r.children,n),0!=(2&(r=oi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&au(e,n);else if(19===e.tag)au(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rK(oi,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(i=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===oo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ac(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===oo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ac(t,!0,n,null,o,t.lastEffect);break;case"together":ac(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function af(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),aY|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(f(153));if(null!==t.child){for(n=sZ(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=sZ(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ap(e,t){if(!ol)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ah(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return r2(t.type)&&r4(),null;case 3:return ot(),r$(rJ),r$(rQ),og(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===e||null===e.child)&&(op(t)?t.flags|=4:r.hydrate||(t.flags|=256)),o(t),null;case 5:or(t);var l=i7(i8.current);if(n=t.type,null!==e&&null!=t.stateNode)a(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(f(166));return null}if(e=i7(i6.current),op(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[rF]=t,r[rB]=u,n){case"dialog":rh("cancel",r),rh("close",r);break;case"iframe":case"object":case"embed":rh("load",r);break;case"video":case"audio":for(e=0;e<rc.length;e++)rh(rc[e],r);break;case"source":rh("error",r);break;case"img":case"image":case"link":rh("error",r),rh("load",r);break;case"details":rh("toggle",r);break;case"input":eu(r,u),rh("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},rh("invalid",r);break;case"textarea":ey(r,u),rh("invalid",r)}for(var d in ek(n,u),e=null,u)u.hasOwnProperty(d)&&(l=u[d],"children"===d?"string"==typeof l?r.textContent!==l&&(e=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(e=["children",""+l]):h.hasOwnProperty(d)&&null!=l&&"onScroll"===d&&rh("scroll",r));switch(n){case"input":eo(r),ef(r,u,!0);break;case"textarea":eo(r),e_(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=rT)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(d=9===l.nodeType?l:l.ownerDocument,e===eE.html&&(e=ew(n)),e===eE.html?"script"===n?((e=d.createElement("div")).innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=d.createElement(n,{is:r.is}):(e=d.createElement(n),"select"===n&&(d=e,r.multiple?d.multiple=!0:r.size&&(d.size=r.size))):e=d.createElementNS(e,n),e[rF]=t,e[rB]=r,i(e,t,!1,!1),t.stateNode=e,d=eM(n,r),n){case"dialog":rh("cancel",e),rh("close",e),l=r;break;case"iframe":case"object":case"embed":rh("load",e),l=r;break;case"video":case"audio":for(l=0;l<rc.length;l++)rh(rc[l],e);l=r;break;case"source":rh("error",e),l=r;break;case"img":case"image":case"link":rh("error",e),rh("load",e),l=r;break;case"details":rh("toggle",e),l=r;break;case"input":eu(e,r),l=el(e,r),rh("invalid",e);break;case"option":l=em(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=c({},r,{value:void 0}),rh("invalid",e);break;case"textarea":ey(e,r),l=ev(e,r),rh("invalid",e);break;default:l=r}ek(n,l);var p=l;for(u in p)if(p.hasOwnProperty(u)){var m=p[u];"style"===u?eR(e,m):"dangerouslySetInnerHTML"===u?null!=(m=m?m.__html:void 0)&&eI(e,m):"children"===u?"string"==typeof m?("textarea"!==n||""!==m)&&eA(e,m):"number"==typeof m&&eA(e,""+m):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(h.hasOwnProperty(u)?null!=m&&"onScroll"===u&&rh("scroll",e):null!=m&&x(e,u,m,d))}switch(n){case"input":eo(e),ef(e,r,!1);break;case"textarea":eo(e),e_(e);break;case"option":null!=r.value&&e.setAttribute("value",""+en(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?eg(e,!!r.multiple,u,!1):null!=r.defaultValue&&eg(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=rT)}rA(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)s(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(f(166));n=i7(i8.current),i7(i6.current),op(t)?(r=t.stateNode,n=t.memoizedProps,r[rF]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[rF]=t,t.stateNode=r)}return null;case 13:if(r$(oi),r=t.memoizedState,0!=(64&t.flags))return t.lanes=n,t;return r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&op(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&oi.current)?0===aG&&(aG=3):((0===aG||3===aG)&&(aG=4),null===aH||0==(134217727&aY)&&0==(134217727&a$)||sh(aH,aV))),(r||n)&&(t.flags|=4),null;case 4:return ot(),o(t),null===e&&rg(t.stateNode.containerInfo),null;case 10:return iM(t),null;case 19:if(r$(oi),null===(r=t.memoizedState))return null;if(u=0!=(64&t.flags),null===(d=r.rendering)){if(u)ap(r,!1);else{if(0!==aG||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(d=oo(e))){for(t.flags|=64,ap(r,!1),null!==(u=d.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)u=n,e=r,u.flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(d=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,e=d.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return rK(oi,1&oi.current|2),t.child}e=e.sibling}null!==r.tail&&i_()>aJ&&(t.flags|=64,u=!0,ap(r,!1),t.lanes=33554432)}}else{if(!u){if(null!==(e=oo(d))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ap(r,!0),null===r.tail&&"hidden"===r.tailMode&&!d.alternate&&!ol)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*i_()-r.renderingStartTime>aJ&&1073741824!==n&&(t.flags|=64,u=!0,ap(r,!1),t.lanes=33554432)}r.isBackwards?(d.sibling=t.child,t.child=d):(null!==(n=r.last)?n.sibling=d:t.child=d,r.last=d)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=i_(),n.sibling=null,t=oi.current,rK(oi,u?1&t|2:1&t),n):null;case 23:case 24:return s_(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(f(156,t.tag))}function am(e){switch(e.tag){case 1:r2(e.type)&&r4();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ot(),r$(rJ),r$(rQ),og(),0!=(64&(t=e.flags)))throw Error(f(285));return e.flags=-4097&t|64,e;case 5:return or(e),null;case 13:return r$(oi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return r$(oi),null;case 4:return ot(),null;case 10:return iM(e),null;case 23:case 24:return s_(),null;default:return null}}function ag(e,t){try{var n="",r=t;do n+=ee(r),r=r.return;while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function av(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}i=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},o=function(){},a=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,i7(i6.current);var o,a=null;switch(n){case"input":i=el(e,i),r=el(e,r),a=[];break;case"option":i=em(e,i),r=em(e,r),a=[];break;case"select":i=c({},i,{value:void 0}),r=c({},r,{value:void 0}),a=[];break;case"textarea":i=ev(e,i),r=ev(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=rT)}for(u in ek(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u]){if("style"===u){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(h.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null))}for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s)){if("style"===u){if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l}else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(h.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&rh("scroll",e),a||s===l||(a=[])):"object"==typeof l&&null!==l&&l.$$typeof===Z?l.toString():(a=a||[]).push(u,l))}}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},s=function(e,t,n,r){n!==r&&(t.flags|=4)};var ay="function"==typeof WeakMap?WeakMap:Map;function ab(e,t,n){(n=ij(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){a2||(a2=!0,a4=r),av(e,t)},n}function a_(e,t,n){(n=ij(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return av(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===a3?a3=new Set([this]):a3.add(this),av(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var aE="function"==typeof WeakSet?WeakSet:Set;function aw(e){var t=e.ref;if(null!==t){if("function"==typeof t)try{t(null)}catch(t){sF(e,t)}else t.current=null}}function aS(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:iC(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:256&t.flags&&rR(t.stateNode.containerInfo);return}throw Error(f(163))}function aT(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(sM(n,e),sk(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:iC(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),null!==(t=n.updateQueue)&&iG(n,t,e);return;case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}iG(n,t,e)}return;case 5:e=n.stateNode,null===t&&4&n.flags&&rA(n.type,n.memoizedProps)&&e.focus();return;case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:null===n.memoizedState&&null!==(n=n.alternate)&&null!==(n=n.memoizedState)&&null!==(n=n.dehydrated)&&tO(n);return}throw Error(f(163))}function aO(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=eD("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function aI(e,t){if(r7&&"function"==typeof r7.onCommitFiberUnmount)try{r7.onCommitFiberUnmount(r8,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i){if(0!=(4&r))sM(t,n);else{r=t;try{i()}catch(e){sF(r,e)}}}n=n.next}while(n!==e)}break;case 1:if(aw(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){sF(t,e)}break;case 5:aw(t);break;case 4:aL(e,t)}}function aA(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function aC(e){return 5===e.tag||3===e.tag||4===e.tag}function ax(e){e:{for(var t=e.return;null!==t;){if(aC(t))break e;t=t.return}throw Error(f(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(f(161))}16&n.flags&&(eA(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||aC(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags||null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?aD(e,n,t):aR(e,n,t)}function aD(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=rT));else if(4!==r&&null!==(e=e.child))for(aD(e,t,n),e=e.sibling;null!==e;)aD(e,t,n),e=e.sibling}function aR(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(aR(e,t,n),e=e.sibling;null!==e;)aR(e,t,n),e=e.sibling}function aL(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(f(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,s=i,l=s;;)if(aI(a,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===s)break;for(;null===l.sibling;){if(null===l.return||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(a=n,s=i.stateNode,8===a.nodeType?a.parentNode.removeChild(s):a.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(aI(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function ak(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do 3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next;while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[rB]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ec(n,r),eM(e,i),t=eM(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];"style"===a?eR(n,s):"dangerouslySetInnerHTML"===a?eI(n,s):"children"===a?eA(n,s):x(n,a,s,t)}switch(e){case"input":ed(n,r);break;case"textarea":eb(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?eg(n,!!r.multiple,o,!1):!!r.multiple!==e&&(null!=r.defaultValue?eg(n,!!r.multiple,r.defaultValue,!0):eg(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(f(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:(n=t.stateNode).hydrate&&(n.hydrate=!1,tO(n.containerInfo));return;case 13:null!==t.memoizedState&&(aQ=i_(),aO(t.child,!0)),aM(t);return;case 19:aM(t);return;case 23:case 24:aO(t,null!==t.memoizedState);return}throw Error(f(163))}function aM(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new aE),t.forEach(function(t){var r=sU.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function aP(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var aN=Math.ceil,aF=D.ReactCurrentDispatcher,aB=D.ReactCurrentOwner,aU=0,aH=null,aj=null,aV=0,az=0,aZ=rY(0),aG=0,aW=null,aq=0,aY=0,a$=0,aK=0,aX=null,aQ=0,aJ=1/0;function a0(){aJ=i_()+500}var a1=null,a2=!1,a4=null,a3=null,a5=!1,a6=null,a9=90,a8=[],a7=[],se=null,st=0,sn=null,sr=-1,si=0,so=0,sa=null,ss=!1;function sl(){return 0!=(48&aU)?i_():-1!==sr?sr:sr=i_()}function su(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===iE()?1:2;if(0===si&&(si=aq),0!==iA.transition){0!==so&&(so=null!==aX?aX.pendingLanes:0),e=si;var t=4186112&~so;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=iE(),e=0!=(4&aU)&&98===e?tG(12,si):tG(e=tj(e),si)}function sc(e,t,n){if(50<st)throw st=0,sn=null,Error(f(185));if(null===(e=sd(e,t)))return null;tY(e,t,n),e===aH&&(a$|=t,4===aG&&sh(e,aV));var r=iE();1===t?0!=(8&aU)&&0==(48&aU)?sm(e):(sf(e,n),0===aU&&(a0(),iO())):(0==(4&aU)||98!==r&&99!==r||(null===se?se=new Set([e]):se.add(e)),sf(e,n)),aX=e}function sd(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function sf(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-t$(a),l=1<<s,u=o[s];if(-1===u){if(0==(l&r)||0!=(l&i)){u=t,tH(l);var c=tU;o[s]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);a&=~l}if(r=tz(e,e===aH?aV:0),t=tU,0===r)null!==n&&(n!==ih&&ir(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==ih&&ir(n)}15===t?(n=sm.bind(null,e),null===ig?(ig=[n],iv=it(il,iI)):ig.push(n),n=ih):n=14===t?iT(99,sm.bind(null,e)):iT(n=tV(t),sp.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function sp(e){if(sr=-1,so=si=0,0!=(48&aU))throw Error(f(327));var t=e.callbackNode;if(sL()&&e.callbackNode!==t)return null;var n=tz(e,e===aH?aV:0);if(0===n)return null;var r=n,i=aU;aU|=16;var o=sS();for((aH!==e||aV!==r)&&(a0(),sE(e,r));;)try{sI();break}catch(t){sw(e,t)}if(ik(),aF.current=o,aU=i,null!==aj?r=0:(aH=null,aV=0,r=aG),0!=(aq&a$))sE(e,0);else if(0!==r){if(2===r&&(aU|=64,e.hydrate&&(e.hydrate=!1,rR(e.containerInfo)),0!==(n=tZ(e))&&(r=sT(e,n))),1===r)throw t=aW,sE(e,0),sh(e,n),sf(e,i_()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(f(345));case 2:case 5:sx(e);break;case 3:if(sh(e,n),(62914560&n)===n&&10<(r=aQ+500-i_())){if(0!==tz(e,0))break;if(((i=e.suspendedLanes)&n)!==n){sl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=rx(sx.bind(null,e),r);break}sx(e);break;case 4:if(sh(e,n),(4186112&n)===n)break;for(i=-1,r=e.eventTimes;0<n;){var a=31-t$(n);o=1<<a,(a=r[a])>i&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=i_()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*aN(n/1960))-n)){e.timeoutHandle=rx(sx.bind(null,e),n);break}sx(e);break;default:throw Error(f(329))}}return sf(e,i_()),e.callbackNode===t?sp.bind(null,e):null}function sh(e,t){for(t&=~aK,t&=~a$,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-t$(t),r=1<<n;e[n]=-1,t&=~r}}function sm(e){if(0!=(48&aU))throw Error(f(327));if(sL(),e===aH&&0!=(e.expiredLanes&aV)){var t=aV,n=sT(e,t);0!=(aq&a$)&&(t=tz(e,t),n=sT(e,t))}else t=tz(e,0),n=sT(e,t);if(0!==e.tag&&2===n&&(aU|=64,e.hydrate&&(e.hydrate=!1,rR(e.containerInfo)),0!==(t=tZ(e))&&(n=sT(e,t))),1===n)throw n=aW,sE(e,0),sh(e,t),sf(e,i_()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,sx(e),sf(e,i_()),null}function sg(){if(null!==se){var e=se;se=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,sf(e,i_())})}iO()}function sv(e,t){var n=aU;aU|=1;try{return e(t)}finally{0===(aU=n)&&(a0(),iO())}}function sy(e,t){var n=aU;aU&=-2,aU|=8;try{return e(t)}finally{0===(aU=n)&&(a0(),iO())}}function sb(e,t){rK(aZ,az),az|=t,aq|=t}function s_(){az=aZ.current,r$(aZ)}function sE(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rD(n)),null!==aj)for(n=aj.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&r4();break;case 3:ot(),r$(rJ),r$(rQ),og();break;case 5:or(r);break;case 4:ot();break;case 13:case 19:r$(oi);break;case 10:iM(r);break;case 23:case 24:s_()}n=n.return}aH=e,aj=sZ(e.current,null),aV=az=aq=t,aG=0,aW=null,aK=a$=aY=0}function sw(e,t){for(;;){var n=aj;try{if(ik(),ov.current=oQ,oS){for(var r=o_.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}oS=!1}if(ob=0,ow=oE=o_=null,oT=!1,aB.current=null,null===n||null===n.return){aG=1,aW=t,aj=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=aV,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u,c=l;if(0==(2&s.mode)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&oi.current),p=a;do{if(u=13===p.tag){var h=p.memoizedState;if(null!==h)u=null!==h.dehydrated;else{var m=p.memoizedProps;u=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(u){var g=p.updateQueue;if(null===g){var v=new Set;v.add(c),p.updateQueue=v}else g.add(c);if(0==(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag){if(null===s.alternate)s.tag=17;else{var y=ij(-1,1);y.tag=2,iV(s,y)}}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ay,l=new Set,b.set(c,l)):(l=b.get(c),void 0===l&&(l=new Set,b.set(c,l))),!l.has(s)){l.add(s);var _=sB.bind(null,o,c,s);c.then(_,_)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((et(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==aG&&(aG=2),l=ag(l,s),p=a;do{switch(p.tag){case 3:o=l,p.flags|=4096,t&=-t,p.lanes|=t;var E=ab(p,o,t);iz(p,E);break e;case 1:o=l;var w=p.type,S=p.stateNode;if(0==(64&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===a3||!a3.has(S)))){p.flags|=4096,t&=-t,p.lanes|=t;var T=a_(p,o,t);iz(p,T);break e}}p=p.return}while(null!==p)}sC(n)}catch(e){t=e,aj===n&&null!==n&&(aj=n=n.return);continue}break}}function sS(){var e=aF.current;return aF.current=oQ,null===e?oQ:e}function sT(e,t){var n=aU;aU|=16;var r=sS();for(aH===e&&aV===t||sE(e,t);;)try{sO();break}catch(t){sw(e,t)}if(ik(),aU=n,aF.current=r,null!==aj)throw Error(f(261));return aH=null,aV=0,aG}function sO(){for(;null!==aj;)sA(aj)}function sI(){for(;null!==aj&&!ii();)sA(aj)}function sA(e){var t=l(e.alternate,e,az);e.memoizedProps=e.pendingProps,null===t?sC(e):aj=t,aB.current=null}function sC(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ah(n,t,az))){aj=n;return}if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&az)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=am(t))){n.flags&=2047,aj=n;return}null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling)){aj=t;return}aj=t=e}while(null!==t);0===aG&&(aG=5)}function sx(e){return iS(99,sD.bind(null,e,iE())),null}function sD(e,t){do sL();while(null!==a6);if(0!=(48&aU))throw Error(f(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(f(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-t$(o),u=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~u}if(null!==se&&0==(24&r)&&se.has(e)&&se.delete(e),e===aH&&(aj=aH=null,aV=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=aU,aU|=32,aB.current=null,rO=t1,rt(a=re())){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if((u=(s=(s=a.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection())&&0!==u.rangeCount){s=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{s.nodeType,l.nodeType}catch(e){s=null;break e}var c,d=0,p=-1,h=-1,m=0,g=0,v=a,y=null;t:for(;;){for(;v!==s||0!==o&&3!==v.nodeType||(p=d+o),v!==l||0!==u&&3!==v.nodeType||(h=d+u),3===v.nodeType&&(d+=v.nodeValue.length),null!==(c=v.firstChild);)y=v,v=c;for(;;){if(v===a)break t;if(y===s&&++m===o&&(p=d),y===l&&++g===u&&(h=d),null!==(c=v.nextSibling))break;y=(v=y).parentNode}v=c}s=-1===p||-1===h?null:{start:p,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;rI={focusedElem:a,selectionRange:s},t1=!1,sa=null,ss=!1,a1=r;do try{sR()}catch(e){if(null===a1)throw Error(f(330));sF(a1,e),a1=a1.nextEffect}while(null!==a1);sa=null,a1=r;do try{for(a=e;null!==a1;){var b=a1.flags;if(16&b&&eA(a1.stateNode,""),128&b){var _=a1.alternate;if(null!==_){var E=_.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&b){case 2:ax(a1),a1.flags&=-3;break;case 6:ax(a1),a1.flags&=-3,ak(a1.alternate,a1);break;case 1024:a1.flags&=-1025;break;case 1028:a1.flags&=-1025,ak(a1.alternate,a1);break;case 4:ak(a1.alternate,a1);break;case 8:s=a1,aL(a,s);var w=s.alternate;aA(s),null!==w&&aA(w)}a1=a1.nextEffect}}catch(e){if(null===a1)throw Error(f(330));sF(a1,e),a1=a1.nextEffect}while(null!==a1);if(E=rI,_=re(),b=E.focusedElem,a=E.selectionRange,_!==b&&b&&b.ownerDocument&&n7(b.ownerDocument.documentElement,b)){for(null!==a&&rt(b)&&(_=a.start,void 0===(E=a.end)&&(E=_),("selectionStart"in b)?(b.selectionStart=_,b.selectionEnd=Math.min(E,b.value.length)):(E=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(E=E.getSelection(),s=b.textContent.length,w=Math.min(a.start,s),a=void 0===a.end?w:Math.min(a.end,s),!E.extend&&w>a&&(s=a,a=w,w=s),s=n8(b,w),o=n8(b,a),s&&o&&(1!==E.rangeCount||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((_=_.createRange()).setStart(s.node,s.offset),E.removeAllRanges(),w>a?(E.addRange(_),E.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),E.addRange(_))))),_=[],E=b;E=E.parentNode;)1===E.nodeType&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(E=_[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}t1=!!rO,rI=rO=null,e.current=n,a1=r;do try{for(b=e;null!==a1;){var S=a1.flags;if(36&S&&aT(b,a1.alternate,a1),128&S){_=void 0;var T=a1.ref;if(null!==T){var O=a1.stateNode;a1.tag,_=O,"function"==typeof T?T(_):T.current=_}}a1=a1.nextEffect}}catch(e){if(null===a1)throw Error(f(330));sF(a1,e),a1=a1.nextEffect}while(null!==a1);a1=null,im(),aU=i}else e.current=n;if(a5)a5=!1,a6=e,a9=t;else for(a1=r;null!==a1;)t=a1.nextEffect,a1.nextEffect=null,8&a1.flags&&((S=a1).sibling=null,S.stateNode=null),a1=t;if(0===(r=e.pendingLanes)&&(a3=null),1===r?e===sn?st++:(st=0,sn=e):st=0,n=n.stateNode,r7&&"function"==typeof r7.onCommitFiberRoot)try{r7.onCommitFiberRoot(r8,n,void 0,64==(64&n.current.flags))}catch(e){}if(sf(e,i_()),a2)throw a2=!1,e=a4,a4=null,e;return 0!=(8&aU)||iO(),null}function sR(){for(;null!==a1;){var e=a1.alternate;ss||null===sa||(0!=(8&a1.flags)?tn(a1,sa)&&(ss=!0):13===a1.tag&&aP(e,a1)&&tn(a1,sa)&&(ss=!0));var t=a1.flags;0!=(256&t)&&aS(e,a1),0==(512&t)||a5||(a5=!0,iT(97,function(){return sL(),null})),a1=a1.nextEffect}}function sL(){if(90!==a9){var e=97<a9?97:a9;return a9=90,iS(e,sP)}return!1}function sk(e,t){a8.push(t,e),a5||(a5=!0,iT(97,function(){return sL(),null}))}function sM(e,t){a7.push(t,e),a5||(a5=!0,iT(97,function(){return sL(),null}))}function sP(){if(null===a6)return!1;var e=a6;if(a6=null,0!=(48&aU))throw Error(f(331));var t=aU;aU|=32;var n=a7;a7=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(f(330));sF(o,e)}}for(r=0,n=a8,a8=[];r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===o)throw Error(f(330));sF(o,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return aU=t,iO(),!0}function sN(e,t,n){t=ab(e,t=ag(n,t),1),iV(e,t),t=sl(),null!==(e=sd(e,1))&&(tY(e,1,t),sf(e,t))}function sF(e,t){if(3===e.tag)sN(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){sN(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===a3||!a3.has(r))){var i=a_(n,e=ag(t,e),1);if(iV(n,i),i=sl(),null!==(n=sd(n,1)))tY(n,1,i),sf(n,i);else if("function"==typeof r.componentDidCatch&&(null===a3||!a3.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function sB(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=sl(),e.pingedLanes|=e.suspendedLanes&n,aH===e&&(aV&n)===n&&(4===aG||3===aG&&(62914560&aV)===aV&&500>i_()-aQ?sE(e,0):aK|=n),sf(e,t)}function sU(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===iE()?1:2:(0===si&&(si=aq),0===(t=tW(62914560&~si))&&(t=4194304))),n=sl(),null!==(e=sd(e,t))&&(tY(e,t,n),sf(e,n))}function sH(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function sj(e,t,n,r){return new sH(e,t,n,r)}function sV(e){return!(!(e=e.prototype)||!e.isReactComponent)}function sz(e){if("function"==typeof e)return sV(e)?1:0;if(null!=e){if((e=e.$$typeof)===B)return 11;if(e===j)return 14}return 2}function sZ(e,t){var n=e.alternate;return null===n?((n=sj(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sG(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)sV(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case k:return sW(n.children,i,o,t);case G:a=8,i|=16;break;case M:a=8,i|=1;break;case P:return(e=sj(12,n,t,8|i)).elementType=P,e.type=P,e.lanes=o,e;case U:return(e=sj(13,n,t,i)).type=U,e.elementType=U,e.lanes=o,e;case H:return(e=sj(19,n,t,i)).elementType=H,e.lanes=o,e;case W:return sq(n,i,o,t);case q:return(e=sj(24,n,t,i)).elementType=q,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:a=10;break e;case F:a=9;break e;case B:a=11;break e;case j:a=14;break e;case V:a=16,r=null;break e;case z:a=22;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=sj(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function sW(e,t,n,r){return(e=sj(7,e,r,t)).lanes=n,e}function sq(e,t,n,r){return(e=sj(23,e,r,t)).elementType=W,e.lanes=n,e}function sY(e,t,n){return(e=sj(6,e,null,t)).lanes=n,e}function s$(e,t,n){return(t=sj(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sK(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=tq(0),this.expirationTimes=tq(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tq(0),this.mutableSourceEagerHydrationData=null}function sX(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:L,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function sQ(e,t,n,r){var i=t.current,o=sl(),a=su(i);e:if(n){n=n._reactInternals;t:{if(e9(n)!==n||1!==n.tag)throw Error(f(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(r2(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(f(171))}if(1===n.tag){var l=n.type;if(r2(l)){n=r5(n,l,s);break e}}n=s}else n=rX;return null===t.context?t.context=n:t.pendingContext=n,(t=ij(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),iV(i,t),sc(i,a,o),a}function sJ(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function s0(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function s1(e,t){s0(e,t),(e=e.alternate)&&s0(e,t)}function s2(){return null}function s4(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new sK(e,t,null!=n&&!0===n.hydrate),t=sj(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,iU(t),e[rU]=n.current,rg(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function s3(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function s5(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new s4(e,0,t?{hydrate:!0}:void 0)}function s6(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=sJ(a);s.call(e)}}sQ(t,a,e,i)}else{if(a=(o=n._reactRootContainer=s5(n,r))._internalRoot,"function"==typeof i){var l=i;i=function(){var e=sJ(a);l.call(e)}}sy(function(){sQ(t,a,e,i)})}return sJ(a)}function s9(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!s3(t))throw Error(f(200));return sX(e,t,null,n)}l=function(e,t,n){var r=t.lanes;if(null!==e){if(e.memoizedProps!==t.pendingProps||rJ.current)o4=!0;else if(0!=(n&r))o4=0!=(16384&e.flags);else{switch(o4=!1,t.tag){case 3:ar(t),oh();break;case 5:on(t);break;case 1:r2(t.type)&&r6(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;rK(ix,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState){if(0!=(n&t.child.childLanes))return ao(e,t,n);return rK(oi,1&oi.current),null!==(t=af(e,t,n))?t.sibling:null}rK(oi,1&oi.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ad(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),rK(oi,oi.current),!r)return null;break;case 23:case 24:return t.lanes=0,o8(e,t,n)}return af(e,t,n)}}else o4=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=r1(t,rQ.current),iN(t,n),i=oA(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,r2(r)){var o=!0;r6(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,iU(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&iq(t,r,a,e),i.updater=iY,t.stateNode=i,i._reactInternals=t,iQ(t,r,e,n),t=an(null,t,r,!0,o,n)}else t.tag=0,o3(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=sz(i),e=iC(i,e),o){case 0:t=ae(null,t,i,e,n);break e;case 1:t=at(null,t,i,e,n);break e;case 11:t=o5(null,t,i,e,n);break e;case 14:t=o6(null,t,i,iC(i.type,e),r,n);break e}throw Error(f(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:iC(r,i),ae(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:iC(r,i),at(e,t,r,i,n);case 3:if(ar(t),r=t.updateQueue,null===e||null===r)throw Error(f(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,iH(e,t),iZ(t,r,null,n),(r=t.memoizedState.element)===i)oh(),t=af(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(os=rL(t.stateNode.containerInfo.firstChild),oa=t,o=ol=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],om.push(o);for(n=i3(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else o3(e,t,r,n),oh();t=t.child}return t;case 5:return on(t),null===e&&od(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,rC(r,i)?a=null:null!==o&&rC(r,o)&&(t.flags|=16),o7(e,t),o3(e,t,a,n),t.child;case 6:return null===e&&od(t),null;case 13:return ao(e,t,n);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=i4(t,null,r,n):o3(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:iC(r,i),o5(e,t,r,i,n);case 7:return o3(e,t,t.pendingProps,n),t.child;case 8:case 12:return o3(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(rK(ix,s._currentValue),s._currentValue=o,null!==a){if(0==(o=n3(s=a.value,o)?0:("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823)|0)){if(a.children===i.children&&!rJ.current){t=af(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===s.tag&&((u=ij(-1,n&-n)).tag=2,iV(s,u)),s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),iP(s.return,n),l.lanes|=n;break}u=u.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}}o3(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,iN(t,n),r=r(i=iF(i,o.unstable_observedBits)),t.flags|=1,o3(e,t,r,n),t.child;case 14:return o=iC(i=t.type,t.pendingProps),o=iC(i.type,o),o6(e,t,i,o,r,n);case 15:return o9(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:iC(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,r2(r)?(e=!0,r6(t)):e=!1,iN(t,n),iK(t,r,i),iQ(t,r,i,n),an(null,t,r,!0,e,n);case 19:return ad(e,t,n);case 23:case 24:return o8(e,t,n)}throw Error(f(156,t.tag))},s4.prototype.render=function(e){sQ(e,this._internalRoot,null,null)},s4.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;sQ(null,e,null,function(){t[rU]=null})},tr=function(e){13===e.tag&&(sc(e,4,sl()),s1(e,4))},ti=function(e){13===e.tag&&(sc(e,67108864,sl()),s1(e,67108864))},to=function(e){if(13===e.tag){var t=sl(),n=su(e);sc(e,n,t),s1(e,n)}},ta=function(e,t){return t()},eN=function(e,t,n){switch(t){case"input":if(ed(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=rZ(r);if(!i)throw Error(f(90));ea(r),ed(r,i)}}}break;case"textarea":eb(e,n);break;case"select":null!=(t=n.value)&&eg(e,!!n.multiple,t,!1)}},eV=sv,ez=function(e,t,n,r,i){var o=aU;aU|=4;try{return iS(98,e.bind(null,t,n,r,i))}finally{0===(aU=o)&&(a0(),iO())}},eZ=function(){0==(49&aU)&&(sg(),sL())},eG=function(e,t){var n=aU;aU|=2;try{return e(t)}finally{0===(aU=n)&&(a0(),iO())}};var s8={Events:[rV,rz,rZ,eH,ej,sL,{current:!1}]},s7={findFiberByHostInstance:rj,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},le={bundleType:s7.bundleType,version:s7.version,rendererPackageName:s7.rendererPackageName,rendererConfig:s7.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:s7.findFiberByHostInstance||s2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lt=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lt.isDisabled&&lt.supportsFiber)try{r8=lt.inject(le),r7=lt}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s8,t.createPortal=s9,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(f(188));throw Error(f(268,Object.keys(e)))}return e=null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){var n=aU;if(0!=(48&n))return e(t);aU|=1;try{if(e)return iS(99,e.bind(null,t))}finally{aU=n,iO()}},t.hydrate=function(e,t,n){if(!s3(t))throw Error(f(200));return s6(null,e,t,!0,n)},t.render=function(e,t,n){if(!s3(t))throw Error(f(200));return s6(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!s3(e))throw Error(f(40));return!!e._reactRootContainer&&(sy(function(){s6(null,null,e,!1,function(){e._reactRootContainer=null,e[rU]=null})}),!0)},t.unstable_batchedUpdates=sv,t.unstable_createPortal=function(e,t){return s9(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!s3(n))throw Error(f(200));if(null==e||void 0===e._reactInternals)throw Error(f(38));return s6(e,t,n,!1,r)},t.version="17.0.2"},73935:function(e,t,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(64448)},23930:function(e,t,n){"use strict";var r,i=n(35369),o="<<anonymous>>",a=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};a.isRequired=a;var s=function(){return a};function l(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof i.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}function u(e){function t(t,n,r,i,a,s){for(var l=arguments.length,u=Array(l>6?l-6:0),c=6;c<l;c++)u[c-6]=arguments[c];if(s=s||r,i=i||o,null!=n[r])return e.apply(void 0,[n,r,i,a,s].concat(u));var d=a;if(t)return Error("Required "+d+" `"+s+"` was not specified in `"+i+"`.")}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function c(e,t){return u(function(n,r,i,o,a){var s=n[r];return t(s)?null:Error("Invalid "+o+" `"+a+"` of type `"+l(s)+"` "+("supplied to `"+i)+"`, expected `"+e+"`.")})}function d(e,t){return c("Iterable."+e,function(e){return i.Iterable.isIterable(e)&&t(e)})}(r={listOf:s,mapOf:s,orderedMapOf:s,setOf:s,orderedSetOf:s,stackOf:s,iterableOf:s,recordOf:s,shape:s,contains:s,mapContains:s,orderedMapContains:s,list:a,map:a,orderedMap:a,set:a,orderedSet:a,stack:a,seq:a,record:a,iterable:a}).iterable.indexed=d("Indexed",i.Iterable.isIndexed),r.iterable.keyed=d("Keyed",i.Iterable.isKeyed),e.exports=r},69921:function(e,t){"use strict";/** @license React v16.8.4
 * 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 n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case l:return e;default:return t}}case m:case h:case i:return t}}}function v(e){return g(e)===d}t.typeOf=g,t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return v(e)||g(e)===c},t.isConcurrentMode=v,t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===f},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===s},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===p}},59864:function(e,t,n){"use strict";e.exports=n(69921)},46871:function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}this.setState(t.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:function(){return a}}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},62982:function(e,t,n){"use strict";var r=n(33671);function i(){}e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},87876:function(e,t,n){e.exports=n(62982)()},33671:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},76970:function(e,t,n){!function(e,t){"function"==typeof define&&define.amd?define("react-list",["prop-types","react"],t):t(n(87876),n(67294))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,function(t,n){"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function o(e){return(o="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 a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(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)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){if("function"!=typeof t&&null!==t)throw 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&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=h();return function(){var n,r=m(e);return n=t?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments),f(this,n)}}function f(e,t){return t&&("object"===o(t)||"function"==typeof t)?t:p(e)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t=function(e){return e&&e.__esModule?e:{default:e}}(t),n=i(n);var b,_,E={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},T={x:"offsetWidth",y:"offsetHeight"},O={x:"offsetLeft",y:"offsetTop"},I={x:"overflowX",y:"overflowY"},A={x:"scrollWidth",y:"scrollHeight"},C={x:"scrollLeft",y:"scrollTop"},x={x:"width",y:"height"},D=function(){},R=!!function(){if("undefined"==typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",D,{get passive(){return e=!0,!1}})}catch(e){}return e}()&&{passive:!0},L="ReactList failed to reach a stable state.",k=40,M=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},P=function(e){for(var t=e.props.axis,n=e.getEl(),r=I[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},N=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[S[t]]:n[E[t]]},F=function(e,t){var n=e.length,r=e.minSize,i=e.type,o=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return(l&&(a+=s-l),a>n&&(a=n),(l=(o="simple"!==i&&o?Math.max(Math.min(o,n-a),0):0)%s)&&(o-=l,a+=l),o===t.from&&a==t.size)?t:v(v({},t),{},{from:o,size:a})};e.exports=(_=b=function(e){u(r,e);var t=d(r);function r(e){var n;return a(this,r),(n=t.call(this,e)).state=F(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return l(r,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=F(e,t);return n===t?null:n}}]),l(r,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>k)return this.unstable=!0,console.error(L);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){t.updateCounter=0,delete t.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(M(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,R),this.scrollParent.removeEventListener("mousewheel",D,R)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[w[t]]||0,r=O[t];do n+=e[r]||0;while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"==typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=C[this.props.axis],n=Math.max(0,Math.min(e===window?document.body[t]||document.documentElement[t]:e[t],this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this))),r=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+n-this.getOffset(r),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[C[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,i=A[this.props.axis];return e===window?Math.max(n[i],r[i]):e[i]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,i=r.itemSize,o=r.itemsPerRow;if(n&&i&&o)return{itemSize:i,itemsPerRow:o};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[T[t]],u=Math.abs(l-i);if((isNaN(u)||u>=1)&&(i=l),!i)return{};var c=O[t],d=s[c];o=1;for(var f=a[o];f&&f[c]===d;f=a[o])++o;return{itemSize:i,itemsPerRow:o}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!=typeof e&&(e=D),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",D)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,R),this.scrollParent.addEventListener("mousewheel",D,R))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var i=this.props.axis,o=n[0],a=n[n.length-1];r=this.getOffset(a)+a[T[i]]-this.getOffset(o)}if(r>t)return e();var s=this.props,l=s.pageSize,u=s.length,c=Math.min(this.state.size+l,u);this.maybeSetState({size:c},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,i=this.props,o=i.length,a=i.pageSize,s=0,l=0,u=0,c=o-1;l<c;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=o-l;u<f&&s<r;){var p=this.getSizeOfItem(l+u);if(null==p){u=Math.min(u+a,f);break}s+=p,++u}this.maybeSetState(F(this.props,{from:l,itemsPerRow:1,size:u}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var i=this.getStartAndEnd(),o=i.start,a=i.end,s=F(this.props,{from:Math.floor(o/n)*r,size:(Math.ceil((a-o)/n)+1)*r,itemsPerRow:r}),l=s.from,u=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:u},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,i=n.itemsPerRow;if(r)return t[e]=Math.floor(e/i)*r;for(var o=e;o>0&&null==t[--o];);for(var a=t[o]||0,s=o;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=T[this.props.axis],i=0,o=n.length;i<o;++i)e[t+i]=n[i][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,i=r.axis,o=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,u=l.from,c=l.itemSize,d=l.size;if(c)return c;if(o)return o(e);if(e in t)return t[e];if("simple"===s&&e>=u&&e<u+d&&n){var f=n.children[e-u];if(f)return f[T[i]]}if(a)return a(e,t)}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),i=Math.min(r,n),o=Math.max(r,n);return t<=i?this.setScroll(i):t>o?this.setScroll(o):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,i=n.size,o=this.getStartAndEnd(0),a=o.start,s=o.end,l={},u=r;u<r+i;++u){var c=this.getSpaceBefore(u,l),d=c+this.getSizeOfItem(u);null==e&&d>a&&(e=u),null!=e&&c<s&&(t=u)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,i=this.state,o=i.from,a=i.size,s=[],l=0;l<a;++l)s.push(n(o+l,l));return r(s,function(t){return e.items=t})}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,i=t.length,o=t.type,a=t.useTranslate3d,s=this.state,l=s.from,u=s.itemsPerRow,c=this.renderItems();if("simple"===o)return c;var d={position:"relative"},f={},p=Math.ceil(i/u)*u,h=this.getSpaceBefore(p,f);h&&(d[x[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return n.default.createElement("div",{style:d,ref:function(t){return e.el=t}},n.default.createElement("div",{style:b},c))}}]),r}(n.Component),y(b,"displayName","ReactList"),y(b,"propTypes",{axis:t.default.oneOf(["x","y"]),initialIndex:t.default.number,itemRenderer:t.default.func,itemSizeEstimator:t.default.func,itemSizeGetter:t.default.func,itemsRenderer:t.default.func,length:t.default.number,minSize:t.default.number,pageSize:t.default.number,scrollParentGetter:t.default.func,scrollParentViewportSizeGetter:t.default.func,threshold:t.default.number,type:t.default.oneOf(["simple","variable","uniform"]),useStaticSize:t.default.bool,useTranslate3d:t.default.bool}),y(b,"defaultProps",{axis:"y",itemRenderer:function(e,t){return n.default.createElement("div",{key:t},e)},itemsRenderer:function(e,t){return n.default.createElement("div",{ref:t},e)},length:0,minSize:1,pageSize:10,scrollParentGetter:P,scrollParentViewportSizeGetter:N,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1}),_)})},18939:function(e,t,n){"use strict";function r(){return(r=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}).apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}n.d(t,{Z:function(){return g}});var s=n(67294),l=n(45697),u=n.n(l),c=n(91033),d=["client","offset","scroll","bounds","margin"];function f(e){var t=[];return d.forEach(function(n){e[n]&&t.push(n)}),t}function p(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var i=getComputedStyle(e);n.margin={top:i?parseInt(i.marginTop):0,right:i?parseInt(i.marginRight):0,bottom:i?parseInt(i.marginBottom):0,left:i?parseInt(i.marginLeft):0}}return n}function h(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||window}var m=(function(e){return function(t){var n,o;return o=n=function(n){function o(){for(var t,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return(t=n.call.apply(n,[this].concat(i))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},t._animationFrameID=null,t._resizeObserver=null,t._node=null,t._window=null,t.measure=function(n){var r=p(t._node,e||f(t.props));n&&(r.entry=n[0].contentRect),t._animationFrameID=t._window.requestAnimationFrame(function(){null!==t._resizeObserver&&(t.setState({contentRect:r}),"function"==typeof t.props.onResize&&t.props.onResize(r))})},t._handleRef=function(e){null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.unobserve(t._node),t._node=e,t._window=h(t._node);var n=t.props.innerRef;n&&("function"==typeof n?n(t._node):n.current=t._node),null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.observe(t._node)},t}a(o,n);var l=o.prototype;return l.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new c.Z(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(p(this._node,e||f(this.props))))},l.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},l.render=function(){var e=this.props,n=(e.innerRef,e.onResize,i(e,["innerRef","onResize"]));return(0,s.createElement)(t,r({},n,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},o}(s.Component),n.propTypes={client:u().bool,offset:u().bool,scroll:u().bool,bounds:u().bool,margin:u().bool,innerRef:u().oneOfType([u().object,u().func]),onResize:u().func},o}})()(function(e){var t=e.measure,n=e.measureRef,r=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:r})});m.displayName="Measure",m.propTypes.children=u().func;var g=m},29983:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=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},i=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}}(),o=n(67294),a=m(o),s=m(n(73935)),l=m(n(45697)),u=m(n(28747)),c=h(n(57149)),d=n(51112),f=m(d),p=n(46871);function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function y(e,t){if("function"!=typeof t&&null!==t)throw 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)}var b=t.portalClassName="ReactModalPortal",_=t.bodyOpenClassName="ReactModal__Body--open",E=d.canUseDOM&&void 0!==s.default.createPortal,w=function(e){return document.createElement(e)},S=function(){return E?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function T(e){return e()}var O=function(e){function t(){g(this,t);for(var e,n,i,o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=v(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){E||s.default.unmountComponentAtNode(i.node);var e=T(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=S()(i,a.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},v(i,n)}return y(t,e),i(t,[{key:"componentDidMount",value:function(){if(d.canUseDOM){E||(this.node=w("div")),this.node.className=this.props.portalClassName;var e=T(this.props.parentSelector);e.appendChild(this.node),E||this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:T(e.parentSelector),nextParent:T(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&(E||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&E?(!this.node&&E&&(this.node=w("div")),S()(a.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);O.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},O.defaultProps={isOpen:!1,portalClassName:b,bodyOpenClassName:_,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},O.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(O),t.default=O},28747:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){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}}(),a=n(67294),s=g(n(45697)),l=m(n(99685)),u=g(n(88338)),c=m(n(57149)),d=m(n(32409)),f=n(51112),p=g(f),h=g(n(89623));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function b(e,t){if("function"!=typeof t&&null!==t)throw 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)}n(35063);var _={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},E=9,w=27,S=0,T=function(e){function t(e){v(this,t);var n=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&d.remove(document.body,o),i&&d.remove(document.getElementsByTagName("html")[0],i),r&&S>0&&0==(S-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){e.keyCode===E&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&e.keyCode===w&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r=(void 0===t?"undefined":i(t))==="object"?t:{base:_[e],afterOpen:_[e]+"--after-open",beforeClose:_[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return b(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&d.add(document.body,i),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(S+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=n?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,a);return this.props.overlayElement(u,d)}}]),t}(a.Component);T.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},T.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=T,e.exports=t.default},57149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=s,t.log=l,t.assertNodeList=u,t.setElement=c,t.validateElement=d,t.hide=f,t.show=p,t.documentNotReadyOrSSRTesting=h;var r=o(n(42473)),i=n(51112);function o(e){return e&&e.__esModule?e:{default:e}}var a=null;function s(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(a).forEach(function(e){return e.removeAttribute("aria-hidden")})),a=null}function l(){}function u(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return a=t||a}function d(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}function f(e){var t=!0,n=!1,r=void 0;try{for(var i,o=d(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function p(e){var t=!0,n=!1,r=void 0;try{for(var i,o=d(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function h(){a=null}},35063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=l,t.log=u;var r=i(n(89623));function i(e){return e&&e.__esModule?e:{default:e}}var o=void 0,a=void 0,s=[];function l(){for(var e=[o,a],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}o=a=null,s=[]}function u(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[o,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")}function c(){0!==s.length&&s[s.length-1].focusContent()}function d(e,t){o||a||((o=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),o.style.position="absolute",o.style.opacity="0",o.setAttribute("tabindex","0"),o.addEventListener("focus",c),(a=o.cloneNode()).addEventListener("focus",c)),(s=t).length>0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(o.parentElement&&o.parentElement.removeChild(o),a.parentElement&&a.parentElement.removeChild(a))}r.default.subscribe(d)},32409:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=o,t.log=a;var n={},r={};function i(e,t){e.classList.remove(t)}function o(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var o=document.body;for(var a in r)i(o,r[a]);n={},r={}}function a(){}var s=function(e,t){return e[t]||(e[t]=0),e[t]+=1,t},l=function(e,t){return e[t]&&(e[t]-=1),t},u=function(e,t,n){n.forEach(function(n){s(t,n),e.add(n)})},c=function(e,t,n){n.forEach(function(n){l(t,n),0===t[n]&&e.remove(n)})};t.add=function(e,t){return u(e.classList,"html"==e.nodeName.toLowerCase()?n:r,t.split(" "))},t.remove=function(e,t){return c(e.classList,"html"==e.nodeName.toLowerCase()?n:r,t.split(" "))}},99685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=l,t.log=u,t.handleBlur=c,t.handleFocus=d,t.markForFocusLater=f,t.returnFocus=p,t.popWithoutFocus=h,t.setupScopedFocus=m,t.teardownScopedFocus=g;var r=i(n(37845));function i(e){return e&&e.__esModule?e:{default:e}}var o=[],a=null,s=!1;function l(){o=[]}function u(){}function c(){s=!0}function d(){s&&(s=!1,a&&setTimeout(function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()},0))}function f(){o.push(document.activeElement)}function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==o.length&&(t=o.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function h(){o.length>0&&o.pop()}function m(e){a=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",d,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",d))}function g(){a=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",d)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",d))}},89623:function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.log=o,t.resetState=a;var r=function e(){var t=this;n(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},i=new r;function o(){console.log("portalOpenInstances ----------"),console.log(i.openInstances.length),i.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function a(){i=new r}t.default=i},51112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(58875)).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},88338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n(37845));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=(0,r.default)(e);if(!n.length){t.preventDefault();return}var i=void 0,o=t.shiftKey,a=n[0],s=n[n.length-1];if(e===document.activeElement){if(!o)return;i=s}if(s!==document.activeElement||o||(i=a),a===document.activeElement&&o&&(i=s),i){t.preventDefault(),i.focus();return}var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=l&&"Chrome"!=l[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=n.indexOf(document.activeElement);if(u>-1&&(u+=o?-1:1),i=n[u],void 0===i){t.preventDefault(),(i=o?s:a).focus();return}t.preventDefault(),i.focus()}}e.exports=t.default},37845:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;/*!
 * Adapted from jQuery UI core
 *
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */var n=/input|select|textarea|button|object/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){for(var t=e;t&&t!==document.body;){if(r(t))return!1;t=t.parentNode}return!0}function o(e,t){var r=e.nodeName.toLowerCase();return(n.test(r)&&!e.disabled||"a"===r&&e.href||t)&&i(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}function s(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)}e.exports=t.default},83253:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(29983));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default,e.exports=t.default},15593:function(e,t,n){"use strict";n.d(t,{dC:function(){return _.unstable_batchedUpdates},zt:function(){return d},v9:function(){return b},I0:function(){return g}});var r=n(67294);n(45697);var i=r.createContext(null),o=function(e){e()},a=function(e){return o=e},s=function(){return o},l={notify:function(){}};function u(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var c=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=l,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return!!this.unsubscribe},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=l)},e}(),d=function(e){var t=e.store,n=e.context,o=e.children,a=(0,r.useMemo)(function(){var e=new c(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}},[t]),s=(0,r.useMemo)(function(){return t.getState()},[t]);(0,r.useEffect)(function(){var e=a.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[a,s]);var l=n||i;return r.createElement(l.Provider,{value:a},o)};n(88447),n(72973);var f="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function p(){return(0,r.useContext)(i)}function h(e){void 0===e&&(e=i);var t=e===i?p:function(){return(0,r.useContext)(e)};return function(){return t().store}}n(9709);var m=h(),g=function(e){void 0===e&&(e=i);var t=e===i?m:h(e);return function(){return t().dispatch}}(),v=function(e,t){return e===t};function y(e,t,n,i){var o,a=(0,r.useReducer)(function(e){return e+1},0)[1],s=(0,r.useMemo)(function(){return new c(n,i)},[n,i]),l=(0,r.useRef)(),u=(0,r.useRef)(),d=(0,r.useRef)(),p=(0,r.useRef)(),h=n.getState();try{o=e!==u.current||h!==d.current||l.current?e(h):p.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return f(function(){u.current=e,d.current=h,p.current=o,l.current=void 0}),f(function(){function e(){try{var e=u.current(n.getState());if(t(e,p.current))return;p.current=e}catch(e){l.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}},[n,s]),o}var b=function(e){void 0===e&&(e=i);var t=e===i?p:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=v);var i=t(),o=y(e,n,i.store,i.subscription);return(0,r.useDebugValue)(o),o}}(),_=n(73935);a(_.unstable_batchedUpdates)},88447:function(e,t,n){"use strict";var r=n(21578),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?s:l[e.$$typeof]||i}l[r.ForwardRef]=a,l[r.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;function g(e,t,n){if("string"!=typeof t){if(m){var r=h(t);r&&r!==m&&g(e,r,n)}var i=d(t);f&&(i=i.concat(f(t)));for(var a=u(e),s=u(t),l=0;l<i.length;++l){var v=i[l];if(!o[v]&&!(n&&n[v])&&!(s&&s[v])&&!(a&&a[v])){var y=p(t,v);try{c(e,v,y)}catch(e){}}}}return e}e.exports=g},66446:function(e,t){"use strict";/** @license React v16.8.4
 * 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 n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case l:return e;default:return t}}case m:case h:case i:return t}}}function v(e){return g(e)===d}t.typeOf=g,t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return v(e)||g(e)===c},t.isConcurrentMode=v,t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===f},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===s},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===p}},21578:function(e,t,n){"use strict";e.exports=n(66446)},88359:function(e,t){"use strict";/** @license React v16.13.1
 * 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.
 */var n,r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=(r&&Symbol.for("react.suspense_list"),r?Symbol.for("react.memo"):60115),g=r?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case u:return e;default:return t}}case o:return t}}}function y(e){return v(e)===f}r&&Symbol.for("react.block"),r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope"),n=d,n=f,n=c,n=u,n=i,n=p,n=a,n=g,n=m,n=o,n=l,n=s,n=h,n=function(e){return y(e)||v(e)===d},n=y,n=function(e){return v(e)===c},n=function(e){return v(e)===u},n=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},n=function(e){return v(e)===p},n=function(e){return v(e)===a},n=function(e){return v(e)===g},n=function(e){return v(e)===m},n=function(e){return v(e)===o},n=function(e){return v(e)===l},n=function(e){return v(e)===s},n=function(e){return v(e)===h}},72973:function(e,t,n){"use strict";n(88359)},89250:function(e,t,n){"use strict";n.d(t,{AW:function(){return z},F0:function(){return Z},Fg:function(){return j},TH:function(){return b},UO:function(){return O},Us:function(){return p},WU:function(){return I},Z5:function(){return G},j3:function(){return V},oQ:function(){return v},s0:function(){return E}});var r,i,o,a,s=n(67294),l=n(12599);/**
 * React Router v6.14.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function u(){return(u=Object.assign?Object.assign.bind():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}).apply(this,arguments)}let c=s.createContext(null),d=s.createContext(null),f=s.createContext(null),p=s.createContext(null),h=s.createContext(null),m=s.createContext({outlet:null,matches:[],isDataRoute:!1}),g=s.createContext(null);function v(e,t){let{relative:n}=void 0===t?{}:t;y()||(0,l.J0)(!1);let{basename:r,navigator:i}=s.useContext(p),{hash:o,pathname:a,search:u}=I(e,{relative:n}),c=a;return"/"!==r&&(c="/"===a?r:(0,l.RQ)([r,a])),i.createHref({pathname:c,search:u,hash:o})}function y(){return null!=s.useContext(h)}function b(){return y()||(0,l.J0)(!1),s.useContext(h).location}function _(e){s.useContext(p).static||s.useLayoutEffect(e)}function E(){let{isDataRoute:e}=s.useContext(m);return e?U():w()}function w(){y()||(0,l.J0)(!1);let e=s.useContext(c),{basename:t,navigator:n}=s.useContext(p),{matches:r}=s.useContext(m),{pathname:i}=b(),o=JSON.stringify((0,l.Zq)(r).map(e=>e.pathnameBase)),a=s.useRef(!1);return _(()=>{a.current=!0}),s.useCallback(function(r,s){if(void 0===s&&(s={}),!a.current)return;if("number"==typeof r){n.go(r);return}let u=(0,l.pC)(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(u.pathname="/"===u.pathname?t:(0,l.RQ)([t,u.pathname])),(s.replace?n.replace:n.push)(u,s.state,s)},[t,n,o,i,e])}let S=s.createContext(null);function T(e){let t=s.useContext(m).outlet;return t?s.createElement(S.Provider,{value:e},t):t}function O(){let{matches:e}=s.useContext(m),t=e[e.length-1];return t?t.params:{}}function I(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=s.useContext(m),{pathname:i}=b(),o=JSON.stringify((0,l.Zq)(r).map(e=>e.pathnameBase));return s.useMemo(()=>(0,l.pC)(e,JSON.parse(o),i,"path"===n),[e,o,i,n])}function A(e,t){return C(e,t)}function C(e,t,n){let r;y()||(0,l.J0)(!1);let{navigator:i}=s.useContext(p),{matches:o}=s.useContext(m),a=o[o.length-1],c=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let f=b();if(t){var g;let e="string"==typeof t?(0,l.cP)(t):t;"/"===d||(null==(g=e.pathname)?void 0:g.startsWith(d))||(0,l.J0)(!1),r=e}else r=f;let v=r.pathname||"/",_="/"===d?v:v.slice(d.length)||"/",E=(0,l.fp)(e,{pathname:_}),w=k(E&&E.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:(0,l.RQ)([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:(0,l.RQ)([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n);return t&&w?s.createElement(h.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:l.aU.Pop}},w):w}function x(){let e=B(),t=(0,l.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),n?s.createElement("pre",{style:r},n):null,i)}let D=s.createElement(x,null);class R extends s.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?s.createElement(m.Provider,{value:this.props.routeContext},s.createElement(g.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function L(e){let{routeContext:t,match:n,children:r}=e,i=s.useContext(c);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),s.createElement(m.Provider,{value:t},r)}function k(e,t,n){var r,i;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){if(null==(i=n)||!i.errors)return null;e=n.matches}let o=e,a=null==(r=n)?void 0:r.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&(null==a?void 0:a[e.route.id]));e>=0||(0,l.J0)(!1),o=o.slice(0,Math.min(o.length,e+1))}return o.reduceRight((e,r,i)=>{let l=r.route.id?null==a?void 0:a[r.route.id]:null,u=null;n&&(u=r.route.errorElement||D);let c=t.concat(o.slice(0,i+1)),d=()=>{let t;return t=l?u:r.route.Component?s.createElement(r.route.Component,null):r.route.element?r.route.element:e,s.createElement(L,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?s.createElement(R,{location:n.location,revalidation:n.revalidation,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()},null)}function M(e){let t=s.useContext(c);return t||(0,l.J0)(!1),t}function P(e){let t=s.useContext(d);return t||(0,l.J0)(!1),t}function N(e){let t=s.useContext(m);return t||(0,l.J0)(!1),t}function F(e){let t=N(e),n=t.matches[t.matches.length-1];return n.route.id||(0,l.J0)(!1),n.route.id}function B(){var e;let t=s.useContext(g),n=P(o.UseRouteError),r=F(o.UseRouteError);return t||(null==(e=n.errors)?void 0:e[r])}function U(){let{router:e}=M(i.UseNavigateStable),t=F(o.UseNavigateStable),n=s.useRef(!1);return _(()=>{n.current=!0}),s.useCallback(function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,u({fromRouteId:t},i)))},[e,t])}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(i||(i={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(o||(o={}));let H="startTransition";function j(e){let{to:t,replace:n,state:r,relative:i}=e;y()||(0,l.J0)(!1);let{matches:o}=s.useContext(m),{pathname:a}=b(),u=E(),c=JSON.stringify((0,l.pC)(t,(0,l.Zq)(o).map(e=>e.pathnameBase),a,"path"===i));return s.useEffect(()=>u(JSON.parse(c),{replace:n,state:r,relative:i}),[u,c,i,n,r]),null}function V(e){return T(e.context)}function z(e){(0,l.J0)(!1)}function Z(e){let{basename:t="/",children:n=null,location:r,navigationType:i=l.aU.Pop,navigator:o,static:a=!1}=e;y()&&(0,l.J0)(!1);let u=t.replace(/^\/*/,"/"),c=s.useMemo(()=>({basename:u,navigator:o,static:a}),[u,o,a]);"string"==typeof r&&(r=(0,l.cP)(r));let{pathname:d="/",search:f="",hash:m="",state:g=null,key:v="default"}=r,b=s.useMemo(()=>{let e=(0,l.Zn)(d,u);return null==e?null:{location:{pathname:e,search:f,hash:m,state:g,key:v},navigationType:i}},[u,d,f,m,g,v,i]);return null==b?null:s.createElement(p.Provider,{value:c},s.createElement(h.Provider,{children:n,value:b}))}function G(e){let{children:t,location:n}=e;return A(W(t),n)}function W(e,t){void 0===t&&(t=[]);let n=[];return s.Children.forEach(e,(e,r)=>{if(!s.isValidElement(e))return;let i=[...t,r];if(e.type===s.Fragment){n.push.apply(n,W(e.props.children,i));return}e.type!==z&&(0,l.J0)(!1),e.props.index&&e.props.children&&(0,l.J0)(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=W(e.props.children,i)),n.push(o)}),n}(r||(r=n.t(s,2)))[H],!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(a||(a={})),new Promise(()=>{}),s.Component},34670:function(e,t,n){"use strict";n.d(t,{x:function(){return tu},I:function(){return en},j:function(){return e8},u:function(){return eI},F:function(){return td},g:function(){return e4},r:function(){return em},C:function(){return ep},d:function(){return e0},o:function(){return eD},z:function(){return ei},K:function(){return ec},a:function(){return eW},l:function(){return eX},w:function(){return tl},H:function(){return W},i:function(){return eN},t:function(){return ti},E:function(){return G},f:function(){return e3},q:function(){return tr},c:function(){return tc},B:function(){return eh},M:function(){return eE},n:function(){return eS},y:function(){return eM},J:function(){return z},k:function(){return eA},v:function(){return ts},G:function(){return $},h:function(){return eY},s:function(){return eu},D:function(){return ef},e:function(){return eZ},p:function(){return tn},A:function(){return eo},b:function(){return eL},m:function(){return eb}});var r,i=n(76906),o=n(14046),a=n(95934),s=n(9889),l=n(91826),u=n(62839);function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=n(17350),f=n(67294),p=n(73935),h=n(86871);function m(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function g(e){return m(e).getComputedStyle(e)}function v(e){return e instanceof m(e).Node}function y(e){return v(e)?(e.nodeName||"").toLowerCase():"#document"}function b(e){return e instanceof m(e).HTMLElement}function _(e){return e instanceof m(e).Element}function E(e){return"undefined"!=typeof ShadowRoot&&(e instanceof m(e).ShadowRoot||e instanceof ShadowRoot)}function w(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=g(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function S(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function T(e){return["html","body","#document"].includes(y(e))}let O=Math.min,I=Math.max,A=Math.round,C=Math.floor,x=e=>({x:e,y:e});function D(e){let t=g(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=b(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=A(n)!==o||A(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function R(e){return _(e)?e:e.contextElement}function L(e){let t=R(e);if(!b(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=D(t),a=(o?A(n.width):n.width)/r,s=(o?A(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let k=x(0);function M(e,t,n){var r,i;if(void 0===t&&(t=!0),!S())return k;let o=e?m(e):window;return!n||t&&n!==o?k:{x:(null==(r=o.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(i=o.visualViewport)?void 0:i.offsetTop)||0}}function P(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),o=R(e),a=x(1);t&&(r?_(r)&&(a=L(r)):a=L(e));let s=M(o,n,r),l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){let e=m(o),t=r&&_(r)?m(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=L(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=o,n=m(n).frameElement}}return(0,h.JB)({width:c,height:d,x:l,y:u})}function N(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function F(e){if("html"===y(e))return e;let t=e.assignedSlot||e.parentNode||E(e)&&e.host||N(e);return E(t)?t.host:t}function B(e){let t=F(e);return T(t)?e.ownerDocument?e.ownerDocument.body:e.body:b(t)&&w(t)?t:B(t)}function U(e,t){var n;void 0===t&&(t=[]);let r=B(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=m(r);return i?t.concat(o,o.visualViewport||[],w(r)?r:[]):t.concat(r,U(r))}function H(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=R(e),c=i||o?[...u?U(u):[],...U(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let d=u&&s?function(e,t){let n,r=null,i=N(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=C(c),h=C(i.clientWidth-(u+d)),m=C(i.clientHeight-(c+f)),g=C(u),v=!0;(r=new IntersectionObserver(e=>{let t=e[0].intersectionRatio;if(t!==l){if(!v)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},100)}v=!1},{rootMargin:-p+"px "+-h+"px "+-m+"px "+-g+"px",threshold:I(0,O(1,l))||1})).observe(e)}(!0),o}(u,n):null,f,p=null;a&&(p=new ResizeObserver(n),u&&!l&&p.observe(u),p.observe(t));let h=l?P(e):null;return l&&function t(){let r=P(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(f)}}var j=n(73469),V=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],z=function(){};function Z(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function G(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(Z(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var W=function(e){return ed(e)?e.filter(Boolean):"object"===(0,u.Z)(e)&&null!==e?[e]:[]},q=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,l.Z)(e,V);return(0,i.Z)({},t)},Y=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function $(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function K(e){return $(e)?window.innerHeight:e.clientHeight}function X(e){return $(e)?window.pageYOffset:e.scrollTop}function Q(e,t){if($(e)){window.scrollTo(0,t);return}e.scrollTop=t}function J(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function ee(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:z,i=X(e),o=t-i,a=10,s=0;function l(){Q(e,ee(s+=a,i,o,n)),s<n?window.requestAnimationFrame(l):r(e)}l()}function en(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Q(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Q(e,Math.max(t.offsetTop-i,0))}function er(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ei(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function eo(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var ea=!1,es={get passive(){return ea=!0}},el="undefined"!=typeof window?window:{};el.addEventListener&&el.removeEventListener&&(el.addEventListener("p",z,es),el.removeEventListener("p",z,!1));var eu=ea;function ec(e){return null!=e}function ed(e){return Array.isArray(e)}function ef(e,t,n){return e?t:n}function ep(e){return e}function eh(e){return e}var em=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=(0,s.Z)(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=(0,s.Z)(t,2),r=n[0],i=n[1];return e[r]=i,e},{})};function eg(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=J(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:K(l),v=X(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),_=m-b,E=g-h,w=_+v,S=c-v-h,T=f-g+v+y,O=v+h-b,I=160;switch(i){case"auto":case"bottom":if(E>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!a)return o&&et(l,T,I),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&E>=r)return o&&et(l,T,I),{placement:"bottom",maxHeight:a?E-y:S-y};if("auto"===i||a){var A=t,C=a?_:w;return C>=r&&(A=Math.min(C-y-s,t)),{placement:"top",maxHeight:A}}if("bottom"===i)return o&&Q(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(w>=p&&!a)return o&&et(l,O,I),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&_>=r){var x=t;return(!a&&w>=r||a&&_>=r)&&(x=a?_-b:w-b),o&&et(l,O,I),{placement:"top",maxHeight:x}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return u}function ev(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ey=function(e){return"auto"===e?"bottom":e},eb=function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return(0,i.Z)((n={label:"menu"},(0,d.Z)(n,ev(r),"100%"),(0,d.Z)(n,"position","absolute"),(0,d.Z)(n,"width","100%"),(0,d.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},e_=(0,f.createContext)(null),eE=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,u=e.theme,c=((0,f.useContext)(e_)||{}).setPortalPlacement,d=(0,f.useRef)(null),p=(0,f.useState)(r),h=(0,s.Z)(p,2),m=h[0],g=h[1],v=(0,f.useState)(null),y=(0,s.Z)(v,2),b=y[0],_=y[1],E=u.spacing.controlHeight;return(0,j.Z)(function(){var e=d.current;if(e){var t="fixed"===a,i=l&&!t,s=eg({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i,isFixedPosition:t,controlHeight:E});g(s.maxHeight),_(s.placement),null==c||c(s.placement)}},[r,o,a,l,n,c,E]),t({ref:d,placerProps:(0,i.Z)((0,i.Z)({},e),{},{placement:b||ey(o),maxHeight:m})})},ew=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"menu",{menu:!0}),{ref:n},r),t)},eS=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,i.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},eT=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},eO=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return(0,i.Z)({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},eI=eO,eA=eO,eC=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};eC.defaultProps={children:"No options"};var ex=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};ex.defaultProps={children:"Loading..."};var eD=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},eR=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,d=(0,f.useRef)(null),h=(0,f.useRef)(null),m=(0,f.useState)(ey(u)),g=(0,s.Z)(m,2),v=g[0],y=g[1],b=(0,f.useMemo)(function(){return{setPortalPlacement:y}},[]),_=(0,f.useState)(null),E=(0,s.Z)(_,2),w=E[0],S=E[1],T=(0,f.useCallback)(function(){if(r){var e=er(r),t="fixed"===c?0:window.pageYOffset,n=e[v]+t;(n!==(null==w?void 0:w.offset)||e.left!==(null==w?void 0:w.rect.left)||e.width!==(null==w?void 0:w.rect.width))&&S({offset:n,rect:e})}},[r,c,v,null==w?void 0:w.offset,null==w?void 0:w.rect.left,null==w?void 0:w.rect.width]);(0,j.Z)(function(){T()},[T]);var O=(0,f.useCallback)(function(){"function"==typeof h.current&&(h.current(),h.current=null),r&&d.current&&(h.current=H(r,d.current,T,{elementResize:"ResizeObserver"in window}))},[r,T]);(0,j.Z)(function(){O()},[O]);var I=(0,f.useCallback)(function(e){d.current=e,O()},[O]);if(!t&&"fixed"!==c||!w)return null;var A=(0,a.tZ)("div",(0,o.Z)({ref:I},Y((0,i.Z)((0,i.Z)({},e),{},{offset:w.offset,position:c,rect:w.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,a.tZ)(e_.Provider,{value:b},t?(0,p.createPortal)(A,t):A)},eL=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ek=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},eM=function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,i.Z)({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},eP=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)},eN=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},eF=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"indicatorsContainer",{indicators:!0}),n),t)},eB=["size"],eU={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},eH=function(e){var t=e.size,n=(0,l.Z)(e,eB);return(0,a.tZ)("svg",(0,o.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:eU},n))},ej=function(e){return(0,a.tZ)(eH,(0,o.Z)({size:20},e),(0,a.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eV=function(e){return(0,a.tZ)(eH,(0,o.Z)({size:20},e),(0,a.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ez=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return(0,i.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},eZ=ez,eG=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,a.tZ)(eV,null))},eW=ez,eq=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,a.tZ)(ej,null))},eY=function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return(0,i.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},e$=function(e){var t=e.innerProps;return(0,a.tZ)("span",(0,o.Z)({},t,Y(e,"indicatorSeparator",{"indicator-separator":!0})))},eK=(0,a.F4)(r||(r=c(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),eX=function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,s=o.spacing.baseUnit;return(0,i.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},eQ=function(e){var t=e.delay,n=e.offset;return(0,a.tZ)("span",{css:(0,a.iv)({animation:"".concat(eK," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eJ=function(e){var t=e.innerProps,n=e.isRtl;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,a.tZ)(eQ,{delay:0,offset:n}),(0,a.tZ)(eQ,{delay:160,offset:!0}),(0,a.tZ)(eQ,{delay:320,offset:!n}))};eJ.defaultProps={size:4};var e0=function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return(0,i.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},e1=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,a.tZ)("div",(0,o.Z)({ref:i},Y(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s),t)},e2=["data"],e4=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},e3=function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return(0,i.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},e5=function(e){var t=q(e);t.data;var n=(0,l.Z)(t,e2);return(0,a.tZ)("div",(0,o.Z)({},Y(e,"groupHeading",{"group-heading":!0}),n))},e6=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,s=e.Heading,l=e.headingProps,u=e.innerProps,c=e.label,d=e.theme,f=e.selectProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"group",{group:!0}),u),(0,a.tZ)(s,(0,o.Z)({},l,{selectProps:f,theme:d,getStyles:r,getClassNames:i,cx:n}),c),(0,a.tZ)("div",null,t))},e9=["innerRef","isDisabled","isHidden","inputClassName"],e8=function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,s=o.colors;return(0,i.Z)((0,i.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},te),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},e7={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},te={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},e7)},tt=function(e){return(0,i.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},e7)},tn=function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return(0,i.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},tr=function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return(0,i.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ti=function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,s=e.isFocused;return(0,i.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},to=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",n,t)};function ta(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({role:"button"},n),t||(0,a.tZ)(ej,{size:14}))}var ts=function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return(0,i.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},tl=function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return(0,i.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},tu=function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return(0,i.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},tc={ClearIndicator:eq,Control:e1,DropdownIndicator:eG,DownChevron:eV,CrossIcon:ej,Group:e6,GroupHeading:e5,IndicatorsContainer:eF,IndicatorSeparator:e$,Input:function(e){var t=e.cx,n=e.value,r=q(e),i=r.innerRef,s=r.isDisabled,u=r.isHidden,c=r.inputClassName,d=(0,l.Z)(r,e9);return(0,a.tZ)("div",(0,o.Z)({},Y(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,a.tZ)("input",(0,o.Z)({className:t({input:!0},c),ref:i,style:tt(u),disabled:s},d)))},LoadingIndicator:eJ,Menu:ew,MenuList:eT,MenuPortal:eR,LoadingMessage:ex,NoOptionsMessage:eC,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,s=e.isDisabled,l=e.removeProps,u=e.selectProps,c=n.Container,d=n.Label,f=n.Remove;return(0,a.tZ)(c,{data:r,innerProps:(0,i.Z)((0,i.Z)({},Y(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:u},(0,a.tZ)(d,{data:r,innerProps:(0,i.Z)({},Y(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,a.tZ)(f,{data:r,innerProps:(0,i.Z)((0,i.Z)({},Y(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:u}))},MultiValueContainer:to,MultiValueLabel:to,MultiValueRemove:ta,Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:s,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:ek,SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({},Y(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:eP},td=function(e){return(0,i.Z)((0,i.Z)({},tc),e.components)}},90590:function(e){!/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},75251:function(e,t,n){"use strict";/** @license React v17.0.2
 * react-jsx-runtime.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.
 */n(27418);var r=n(67294),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.jsx=u,t.jsxs=u},72408:function(e,t,n){"use strict";/** @license React v17.0.2
 * 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(27418),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}function h(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 m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var _=b.prototype=new y;_.constructor=b,r(_,v.prototype),_.isPureReactComponent=!0;var E={current:null},w=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}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:s,props:o,_owner:E.current}}function O(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}function A(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var C=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?A(""+e.key):t.toString(36)}function D(e,t,n,r,a){var s=typeof e;("undefined"===s||"boolean"===s)&&(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+x(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),D(a,t,n,"",function(e){return e})):null!=a&&(I(a)&&(a=O(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+x(s=e[u],u);l+=D(s,t,n,c,a)}else if("function"==typeof(c=p(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)c=r+x(s=s.value,u++),l+=D(s,t,n,c,a);else if("object"===s)throw Error(h(31,"[object Object]"==(t=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function R(e,t,n){if(null==e)return e;var r=[],i=0;return D(e,r,"","",function(e){return t.call(n,e,i++)}),r}function L(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var k={current:null};function M(){var e=k.current;if(null===e)throw Error(h(321));return e}var P={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!I(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return M().useCallback(e,t)},t.useContext=function(e,t){return M().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return M().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return M().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return M().useLayoutEffect(e,t)},t.useMemo=function(e,t){return M().useMemo(e,t)},t.useReducer=function(e,t,n){return M().useReducer(e,t,n)},t.useRef=function(e){return M().useRef(e)},t.useState=function(e){return M().useState(e)},t.version="17.0.2"},67294:function(e,t,n){"use strict";e.exports=n(72408)},85893:function(e,t,n){"use strict";e.exports=n(75251)},29804:function(e,t,n){"use strict";var r;r=!0,t.composeWithDevTools=function(){if(0!=arguments.length){var e=n(9709).qC;return"object"==typeof arguments[0]?e:e.apply(null,arguments)}}},27428:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(35369)),i=n(79607);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.Map,n=Object.keys(e);return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t(),o=arguments[1];return r.withMutations(function(t){n.forEach(function(n){var r=(0,e[n])(t.get(n),o);(0,i.validateNextState)(r,n,o),t.set(n,r)})})}},e.exports=t.default},72739:function(e,t,n){"use strict";r={value:!0},t.combineReducers=void 0;var r,i=o(n(27428));function o(e){return e&&e.__esModule?e:{default:e}}t.combineReducers=i.default},94528:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"@@redux/INIT"===e.type?"initialState argument passed to createStore":"previous state received by the reducer"},e.exports=t.default},93651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(35369)),i=o(n(94528));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){var o=Object.keys(t);if(!o.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var a=(0,i.default)(n);if(r.default.isImmutable?!r.default.isImmutable(e):!r.default.Iterable.isIterable(e))return"The "+a+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+o.join('", "')+'".';var s=e.toSeq().keySeq().toArray().filter(function(e){return!t.hasOwnProperty(e)});return s.length>0?"Unexpected "+(1===s.length?"property":"properties")+' "'+s.join('", "')+'" found in '+a+'. Expected to find one of the known reducer property names instead: "'+o.join('", "')+'". Unexpected properties will be ignored.':null},e.exports=t.default},79607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNextState=t.getUnexpectedInvocationParameterMessage=t.getStateName=void 0;var r=a(n(94528)),i=a(n(93651)),o=a(n(85527));function a(e){return e&&e.__esModule?e:{default:e}}t.getStateName=r.default,t.getUnexpectedInvocationParameterMessage=i.default,t.validateNextState=o.default},85527:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===e)throw Error('Reducer "'+t+'" returned undefined when handling "'+n.type+'" action. To ignore an action, you must explicitly return the previous state.')},e.exports=t.default},9709:function(e,t,n){"use strict";n.d(t,{md:function(){return u},qC:function(){return s},MT:function(){return a}});var r=n(66433),i=n(16235),o="@@redux/INIT";function a(e,t,n){if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw Error("Expected the reducer to be a function.");var s,l=e,u=t,c=[],d=c,f=!1;function p(){d===c&&(d=c.slice())}function h(){return u}function m(e){if("function"!=typeof e)throw Error("Expected listener to be a function.");var t=!0;return p(),d.push(e),function(){if(t){t=!1,p();var n=d.indexOf(e);d.splice(n,1)}}}function g(e){if(!(0,r.Z)(e))throw Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw Error("Reducers may not dispatch actions.");try{f=!0,u=l(u,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}function v(e){if("function"!=typeof e)throw Error("Expected the nextReducer to be a function.");l=e,g({type:o})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e)throw TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.Z]=function(){return this},e}return g({type:o}),(s={dispatch:g,subscribe:m,getState:h,replaceReducer:v})[i.Z]=y,s}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var l=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 u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var o=e(n,r,i),a=o.dispatch,u=[],c={getState:o.getState,dispatch:function(e){return a(e)}};return u=t.map(function(e){return e(c)}),a=s.apply(void 0,u)(o.dispatch),l({},o,{dispatch:a})}}}},35666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=Object.create((t&&t.prototype instanceof v?t:v).prototype);return i(o,"_invoke",{value:I(e,n,new D(r||[]))}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};u(_,a,function(){return this});var E=Object.getPrototypeOf,w=E&&E(E(R([])));w&&w!==n&&r.call(w,a)&&(_=w);var S=b.prototype=v.prototype=Object.create(_);function T(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var n;function o(n,i,a,s){var l=d(e[n],e,i);if("throw"===l.type)s(l.arg);else{var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):t.resolve(c).then(function(e){u.value=e,a(u)},function(e){return o("throw",e,a,s)})}}i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,n){o(e,r,t,n)})}return n=n?n.then(i,i):i()}})}function I(e,t,n){var r=f;return function(i,o){if(r===h)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=d(e,t,n);if("normal"===l.type){if(r=n.done?m:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=m,n.method="throw",n.arg=l.arg)}}}function A(e,n){var r=n.method,i=e.iterator[r];if(t===i)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),g;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function R(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:L}}function L(){return{value:t,done:!0}}return y.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},T(O.prototype),u(O.prototype,s,function(){return this}),e.AsyncIterator=O,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new O(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},T(S),u(S,l,"Generator"),u(S,a,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=R,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else if(u){if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return(a.type=e,a.arg=t,o)?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},22222:function(e,t,n){"use strict";function r(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return i(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+t.map(function(e){return typeof e}).join(", ")+"]");return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=0,s=r.pop(),l=a(r),u=e.apply(void 0,[function(){return o++,s.apply(null,arguments)}].concat(n)),c=e(function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return u.apply(null,e)});return c.resultFunc=s,c.dependencies=l,c.recomputations=function(){return o},c.resetRecomputations=function(){return o=0},c}}n.r(t),n.d(t,{createSelector:function(){return l},createSelectorCreator:function(){return s},createStructuredSelector:function(){return u},defaultMemoize:function(){return o}});var l=s(o);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if("object"!=typeof e)throw Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})}},91033:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=function(){return void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),s=2;function l(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&u()}function l(){a(o)}function u(){var e=Date.now();if(n){if(e-i<s)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return u}var u=20,c=["top","right","bottom","left","width","height","size","weight"],d="undefined"!=typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),u)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},m=O(0,0,0,0);function g(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+g(e["border-"+n+"-width"])},0)}function y(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=g(a)}return n}function b(e){var t=e.getBBox();return O(0,0,t.width,t.height)}function _(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var r=h(e).getComputedStyle(e),i=y(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=v(r,"left","right")+o),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!w(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return O(i.left,i.top,s,l)}var E=function(){return"undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"==typeof e.getBBox}}();function w(e){return e===h(e).document.documentElement}function S(e){return i?E(e)?b(e):_(e):m}function T(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype);return p(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function O(e,t,n,r){return{x:e,y:t,width:n,height:r}}var I=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=O(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=S(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),A=function(){return function(e,t){p(this,{target:e,contentRect:T(t)})}}(),C=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new I(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new A(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new r,D=function(){function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new C(t,f.getInstance(),this);x.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){D.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var R=function(){return void 0!==o.ResizeObserver?o.ResizeObserver:D}();t.Z=R},60053:function(e,t){"use strict";if("object"==typeof performance&&"function"==typeof performance.now){var n,r,i,o,a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=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://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,E=_.port2;_.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?E.postMessage(null):(m=!1,g=null)}catch(e){throw E.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,E.postMessage(null))},r=function(e,n){v=f(function(){e(t.unstable_now())},n)},i=function(){p(v),v=-1}}function w(e,t){var n=e.length;for(e.push(t);;){var r=n-1>>>1,i=e[r];if(void 0!==i&&0<O(i,t))e[r]=t,e[n]=i,n=r;else break}}function S(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;for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>O(a,n))void 0!==l&&0>O(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else if(void 0!==l&&0>O(l,n))e[r]=l,e[s]=n,r=s;else break}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],A=[],C=1,x=null,D=3,R=!1,L=!1,k=!1;function M(e){for(var t=S(A);null!==t;){if(null===t.callback)T(A);else if(t.startTime<=e)T(A),t.sortIndex=t.expirationTime,w(I,t);else break;t=S(A)}}function P(e){if(k=!1,M(e),!L){if(null!==S(I))L=!0,n(N);else{var t=S(A);null!==t&&r(P,t.startTime-e)}}}function N(e,n){L=!1,k&&(k=!1,i()),R=!0;var o=D;try{for(M(n),x=S(I);null!==x&&(!(x.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=x.callback;if("function"==typeof a){x.callback=null,D=x.priorityLevel;var s=a(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?x.callback=s:x===S(I)&&T(I),M(n)}else T(I);x=S(I)}if(null!==x)var l=!0;else{var u=S(A);null!==u&&r(P,u.startTime-n),l=!1}return l}finally{x=null,D=o,R=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||R||(L=!0,n(N))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return S(I)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=a+l,e={id:C++,callback:o,priorityLevel:e,startTime:a,expirationTime:l,sortIndex:-1},a>s?(e.sortIndex=a,w(A,e),null===S(I)&&e===S(A)&&(k?i():k=!0,r(P,a-s))):(e.sortIndex=l,w(I,e),L||R||(L=!0,n(N))),e},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},63840:function(e,t,n){"use strict";e.exports=n(60053)},16235:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,{Z:function(){return o}}),e=n.hmd(e),"undefined"!=typeof self?i=self:i="undefined"!=typeof window?window:void 0!==n.g?n.g:e;var i,o=r(i)},42238:function(e,t){!function(n,r){"use strict";var i="1.0.35",o="",a="?",s="function",l="undefined",u="object",c="string",d="major",f="model",p="name",h="type",m="vendor",g="version",v="architecture",y="console",b="mobile",_="tablet",E="smarttv",w="wearable",S="embedded",T=350,O="Amazon",I="Apple",A="ASUS",C="BlackBerry",x="Browser",D="Chrome",R="Firefox",L="Google",k="Huawei",M="LG",P="Microsoft",N="Motorola",F="Opera",B="Samsung",U="Sharp",H="Sony",j="Xiaomi",V="Zebra",z="Facebook",Z="Chromium OS",G="Mac OS",W=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===c&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},K=function(e){return typeof e===c?e.replace(/[^\d\.]/g,o).split(".")[0]:void 0},X=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,o),typeof t===l?e:e.substring(0,T)},Q=function(e,t){for(var n,i,o,a,l,c,d=0;d<t.length&&!l;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!l&&f[n];)if(l=f[n++].exec(e))for(o=0;o<p.length;o++)c=l[++i],typeof(a=p[o])===u&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):void 0:this[a[0]]=c?a[1].call(this,c,a[2]):void 0:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):r):this[a]=c||r;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(Y(t[n][i],e))return n===a?r:n}else if(Y(t[n],e))return n===a?r:n;return e},ee={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,F+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[p,F]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+x],g],[/\bfocus\/([\w\.]+)/i],[g,[p,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[p,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[p,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[p,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[g,[p,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+x],g],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,z],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,D+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,J,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,g],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,$]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,o,$]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[m,B],[h,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[m,B],[h,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[m,I],[h,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[m,I],[h,_]],[/(macintosh);/i],[f,[m,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[m,U],[h,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[m,k],[h,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[m,k],[h,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[m,j],[h,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[m,j],[h,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[m,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[m,"Vivo"],[h,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[m,"Realme"],[h,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[m,N],[h,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[m,N],[h,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[m,M],[h,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[m,M],[h,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[m,"Lenovo"],[h,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[m,"Nokia"],[h,b]],[/(pixel c)\b/i],[f,[m,L],[h,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[m,L],[h,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[m,H],[h,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[m,H],[h,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[m,"OnePlus"],[h,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[m,O],[h,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[m,O],[h,b]],[/(playbook);[-\w\),; ]+(rim)/i],[f,m,[h,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[m,C],[h,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[m,A],[h,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[m,A],[h,b]],[/(nexus 9)/i],[f,[m,"HTC"],[h,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[f,/_/g," "],[h,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[m,"Acer"],[h,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[m,"Meizu"],[h,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,f,[h,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,f,[h,_]],[/(surface duo)/i],[f,[m,P],[h,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[m,"Fairphone"],[h,b]],[/(u304aa)/i],[f,[m,"AT&T"],[h,b]],[/\bsie-(\w*)/i],[f,[m,"Siemens"],[h,b]],[/\b(rct\w+) b/i],[f,[m,"RCA"],[h,_]],[/\b(venue[\d ]{2,7}) b/i],[f,[m,"Dell"],[h,_]],[/\b(q(?:mv|ta)\w+) b/i],[f,[m,"Verizon"],[h,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[m,"Barnes & Noble"],[h,_]],[/\b(tm\d{3}\w+) b/i],[f,[m,"NuVision"],[h,_]],[/\b(k88) b/i],[f,[m,"ZTE"],[h,_]],[/\b(nx\d{3}j) b/i],[f,[m,"ZTE"],[h,b]],[/\b(gen\d{3}) b.+49h/i],[f,[m,"Swiss"],[h,b]],[/\b(zur\d{3}) b/i],[f,[m,"Swiss"],[h,_]],[/\b((zeki)?tb.*\b) b/i],[f,[m,"Zeki"],[h,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],f,[h,_]],[/\b(ns-?\w{0,9}) b/i],[f,[m,"Insignia"],[h,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[m,"NextBook"],[h,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],f,[h,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],f,[h,b]],[/\b(ph-1) /i],[f,[m,"Essential"],[h,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[m,"Envizen"],[h,_]],[/\b(trio[-\w\. ]+) b/i],[f,[m,"MachSpeed"],[h,_]],[/\btu_(1491) b/i],[f,[m,"Rotor"],[h,_]],[/(shield[\w ]+) b/i],[f,[m,"Nvidia"],[h,_]],[/(sprint) (\w+)/i],[m,f,[h,b]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[m,P],[h,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[m,V],[h,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[m,V],[h,b]],[/smart-tv.+(samsung)/i],[m,[h,E]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[m,B],[h,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,M],[h,E]],[/(apple) ?tv/i],[m,[f,I+" TV"],[h,E]],[/crkey/i],[[f,D+"cast"],[m,L],[h,E]],[/droid.+aft(\w)( bui|\))/i],[f,[m,O],[h,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[m,U],[h,E]],[/(bravia[\w ]+)( bui|\))/i],[f,[m,H],[h,E]],[/(mitv-\w{5}) bui/i],[f,[m,j],[h,E]],[/Hbbtv.*(technisat) (.*);/i],[m,f,[h,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,X],[f,X],[h,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,f,[h,y]],[/droid.+; (shield) bui/i],[f,[m,"Nvidia"],[h,y]],[/(playstation [345portablevi]+)/i],[f,[m,H],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[m,P],[h,y]],[/((pebble))app/i],[m,f,[h,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[m,I],[h,w]],[/droid.+; (glass) \d/i],[f,[m,L],[h,w]],[/droid.+; (wt63?0{2,3})\)/i],[f,[m,V],[h,w]],[/(quest( 2| pro)?)/i],[f,[m,z],[h,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,S]],[/(aeobc)\b/i],[f,[m,O],[h,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[h,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,b]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[g,J,ee]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[g,J,ee]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,G],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,g],[/\(bb(10);/i],[g,[p,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[p,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,Z],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,g]]},en=function(e,t){if(typeof e===u&&(t=e,e=r),!(this instanceof en))return new en(e,t).getResult();var i=typeof n!==l&&n.navigator?n.navigator:r,a=e||(i&&i.userAgent?i.userAgent:o),y=i&&i.userAgentData?i.userAgentData:r,E=t?W(et,t):et,w=i&&i.userAgent==a;return this.getBrowser=function(){var e={};return e[p]=r,e[g]=r,Q.call(e,a,E.browser),e[d]=K(e[g]),w&&i&&i.brave&&typeof i.brave.isBrave==s&&(e[p]="Brave"),e},this.getCPU=function(){var e={};return e[v]=r,Q.call(e,a,E.cpu),e},this.getDevice=function(){var e={};return e[m]=r,e[f]=r,e[h]=r,Q.call(e,a,E.device),w&&!e[h]&&y&&y.mobile&&(e[h]=b),w&&"Macintosh"==e[f]&&i&&typeof i.standalone!==l&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[f]="iPad",e[h]=_),e},this.getEngine=function(){var e={};return e[p]=r,e[g]=r,Q.call(e,a,E.engine),e},this.getOS=function(){var e={};return e[p]=r,e[g]=r,Q.call(e,a,E.os),w&&!e[p]&&y&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,Z).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return a},this.setUA=function(e){return a=typeof e===c&&e.length>T?X(e,T):e,this},this.setUA(a),this};en.VERSION=i,en.BROWSER=q([p,g,d]),en.CPU=q([v]),en.DEVICE=q([f,m,h,y,b,E,_,w,S]),en.ENGINE=en.OS=q([p,g]),typeof t!==l?("object"!==l&&e.exports&&(t=e.exports=en),t.UAParser=en):typeof define===s&&define.amd?define(function(){return en}):typeof n!==l&&(n.UAParser=en);var er=typeof n!==l&&(n.jQuery||n.Zepto);if(er&&!er.ua){var ei=new en;er.ua=ei.getResult(),er.ua.get=function(){return ei.getUA()},er.ua.set=function(e){ei.setUA(e);var t=ei.getResult();for(var n in t)er.ua[n]=t[n]}}}("object"==typeof window?window:this)},73469:function(e,t,n){"use strict";var r=n(67294).useLayoutEffect;t.Z=r},42473:function(e){"use strict";var t=function(){};e.exports=t},72938:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({SetActionBarInfo:"SET_ACTION_BAR_INFO",UpdateActionBarConceptInfo:"UPDATE_ACTION_BAR_CONCEPT_INFO",UpdateActionBarItemCount:"UPDATE_ACTION_BAR_ITEM_COUNT"}),o=(0,r.Ky)({GetActionBarInfo:"GET_ACTION_BAR_INFO"})},39247:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},a:function(){return s}});var r=n(88093),i=n(72938),o=n(9849);function a(e,t){var n;try{e&&(n=r.Z.getSmartAPI(e))}catch(e){}return{type:i.qA.GetActionBarInfo,albumType:e,id:t,SmartAPI:n,updateGeneralTagAction:o.AM}}function s(e,t){var n;try{e&&(n=r.Z.getTeamSpaceSmartAPI(e))}catch(e){}return{type:i.qA.GetActionBarInfo,albumType:e,id:t,SmartAPI:n,updateGeneralTagAction:o.bA}}},6992:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({ArrangeAutoAlbumItemRow:"ARRANGE_AUTO_ALBUM_ITEM_ROW",InitialAutoAlbum:"INITIAL_AUTO_ALBUM",InitPersonSuggestion:"INIT_PERSON_SUGGESTION",LoadCategoryAutoAlbumList:"LOAD_CATEGORY_AUTO_ALBUM_LIST",ResetAutoAlbumList:"RESET_AUTO_ALBUM_LIST",SetAutoAlbumCountForCheck:"SET_AUTO_ALBUM_COUNT_FOR_CHECK",SetAutoAlbumList:"SET_AUTO_ALBUM_LIST",SetAutoAlbumType:"SET_AUTO_ALBUM_TYPE",SetPersonMigration:"SET_PERSON_MIGRATION",ScrollToAlbum:"SCROLL_TO_ALBUM",RemoveAutoAlbum:"REMOVE_AUTO_ALBUM",UpdateAutoAlbumCover:"UPDATE_AUTO_ALBUM_COVER",UpdateMergePersonDialog:"UPDATE_MERGE_PERSON_DIALOG",UpdateMergePersonList:"UPDATE_MERGE_PERSON_LIST",UpdatePersonName:"UPDATE_PERSON_NAME",UpdatePersonSuggestion:"UPDATE_PERSON_SUGGESTION",UpdateSelectedFace:"UPDATE_SELECTED_FACE",UpdateAutoAlbumPhotoCount:"UPDATE_AUTO_ALBUM_PHOTO_COUNT",UpdatePeopleMergedResult:"UPDATE_PEOPLE_MERGED_RESULT"}),o=(0,r.Ky)({ConfirmRemoveAutoAlbumPhoto:"CONFIRM_REMOVE_AUTO_ALBUM_PHOTO",DeleteItemInAutoAlbum:"DELETE_ITEM_IN_AUTO_ALBUM",GetPersonSuggestion:"GET_PERSON_SUGGESTION",InitialAutoAlbumList:"INITIAL_AUTO_ALBUM_LIST",InitPersonVisibilityEdition:"INIT_PERSON_VISIBILITY_EDITION",InitConceptVisibilityEdition:"INIT_CONCEPT_VISIBILITY_EDITION",InitMergePersonEdition:"INIT_MERGE_PERSON_EDITION",InitMergePersonDialog:"INIT_MERGE_PERSON_DIALOG",InitRemovePersonPhotoDialog:"INIT_REMOVE_PERSON_PHOTO_DIALOG",LoadAutoAlbumCountForCheck:"LOAD_AUTO_ALBUM_COUNT_FOR_CHECK",LoadAutoAlbumList:"LOAD_AUTO_ALBUM_LIST",LoadCategoryAutoAlbumList:"LOAD_CATEGORY_AUTO_ALBUM_LIST",LoadMorePerson:"LOAD_MORE_PERSON",MergePerson:"MERGE_PERSON",RemoveAutoAlbumPhoto:"REMOVE_AUTO_ALBUM_PHOTO",SetPersonName:"SET_PERSON_NAME",SetPersonCover:"SET_PERSON_COVER",SetPersonVisibility:"SET_PERSON_VISIBILITY",SetConceptVisibility:"SET_CONCEPT_VISIBILITY",SetSingleConceptVisibility:"SET_SINGLE_CONCEPT_VISIBILITY",SetConceptCover:"SET_CONCEPT_COVER",SeparatePhotoFromPerson:"SEPARATE_PHOTO_FROM_PERSON",GetMigrationStatus:"GET_MIGRATION_STATUS",EndPersonEdition:"END_PERSON_EDITION",EndConceptEdition:"END_CONCEPT_EDITION"})},27154:function(e,t,n){"use strict";n.d(t,{EF:function(){return y},Gz:function(){return E},OM:function(){return S},PG:function(){return I},QG:function(){return O},RG:function(){return v},RP:function(){return g},U9:function(){return _},WG:function(){return b},aQ:function(){return d},as:function(){return p},h$:function(){return w},hL:function(){return T},ls:function(){return f},on:function(){return m},rI:function(){return h}});var r=n(88093),i=n(8768),o=n(6992),a=n(39247),s=r.Z.Foto.Browse.Person,l=r.Z.FotoTeam.Browse.Person,u=r.Z.Foto.Browse.Concept,c=r.Z.FotoTeam.Browse.Concept;function d(e,t){return{type:o.qA.InitialAutoAlbumList,filter:e,albumType:t,SmartAPI:r.Z.getSmartAPI(t)}}function f(e,t){return{type:o.qA.InitialAutoAlbumList,filter:e,albumType:t,SmartAPI:r.Z.getTeamSpaceSmartAPI(t)}}function p(e,t){return{type:o.qA.SetPersonCover,id:e,photoId:t,PersonAPI:s,initialAutoAlbumListAction:d}}function h(e,t){return{type:o.qA.SetPersonCover,id:e,photoId:t,PersonAPI:l,initialAutoAlbumListAction:f}}function m(e,t){return{type:o.qA.GetPersonSuggestion,namePrefix:e,id:t,PersonAPI:s}}function g(e,t){return{type:o.qA.GetPersonSuggestion,namePrefix:e,id:t,PersonAPI:l}}function v(e,t){return{type:o.qA.SetConceptCover,id:e,photoId:t,ConceptAPI:u,initialAutoAlbumListAction:d}}function y(e,t){return{type:o.qA.SetConceptCover,id:e,photoId:t,ConceptAPI:c,initialAutoAlbumListAction:f}}function b(e,t,n,r){return{type:o.qA.SeparatePhotoFromPerson,id:e,name:t,targetId:n,faceIdList:r,PersonAPI:s,getActionBarInfoAction:a.Q,library:i.Z.PERSONAL_SPACE}}function _(e,t,n,r){return{type:o.qA.SeparatePhotoFromPerson,id:e,name:t,targetId:n,faceIdList:r,PersonAPI:l,getActionBarInfoAction:a.a,library:i.Z.TEAM_SPACE}}function E(e){var t=e.id,n=e.name,i=e.photoIdArray,s=e.albumType,l=e.remainCount;return{type:o.qA.RemoveAutoAlbumPhoto,id:t,name:n,photoIdArray:i,albumType:s,remainCount:l,SmartAPI:r.Z.getSmartAPI(s),initialAutoAlbumListAction:d,getActionBarInfoAction:a.Q}}function w(e){var t=e.id,n=e.name,i=e.photoIdArray,s=e.albumType,l=e.remainCount;return{type:o.qA.RemoveAutoAlbumPhoto,id:t,name:n,photoIdArray:i,albumType:s,remainCount:l,SmartAPI:r.Z.getTeamSpaceSmartAPI(s),initialAutoAlbumListAction:f,getActionBarInfoAction:a.a}}function S(e,t,n,r,i){return{type:o.qA.ConfirmRemoveAutoAlbumPhoto,id:e,name:t,photoIdArray:n,albumType:r,removeAutoAlbumPhotoAction:E,clearupAfterConfirmAction:i}}function T(e,t,n,r,i){return{type:o.qA.ConfirmRemoveAutoAlbumPhoto,id:e,name:t,photoIdArray:n,albumType:r,removeAutoAlbumPhotoAction:w,clearupAfterConfirmAction:i}}function O(e,t,n,i){return{type:o.qA.DeleteItemInAutoAlbum,albumType:e,id:t,photoIdArray:n,remainCount:i,BackgroundTaskFileAPI:r.Z.Foto.BackgroundTask.File,SmartAPI:r.Z.getSmartAPI(e),initialAutoAlbumListAction:d,getActionBarInfoAction:a.Q}}function I(e,t,n,i){return{type:o.qA.DeleteItemInAutoAlbum,albumType:e,id:t,photoIdArray:n,remainCount:i,BackgroundTaskFileAPI:r.Z.FotoTeam.BackgroundTask.File,SmartAPI:r.Z.getTeamSpaceSmartAPI(e),initialAutoAlbumListAction:f,getActionBarInfoAction:a.a}}},64587:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r=(0,n(95853).q$)({SetMenuMousePosition:"SET_MENU_MOUSE_POSITION",SetMenuOpen:"SET_MENU_OPEN"})},24428:function(e,t,n){"use strict";n.d(t,{e:function(){return i},g:function(){return o}});var r=n(64587);function i(e,t){return{type:r.j.SetMenuMousePosition,xMouse:e,yMouse:t}}function o(e){return{type:r.j.SetMenuOpen,isOpen:e}}},57651:function(e,t,n){"use strict";n.d(t,{hA:function(){return i},M$:function(){return l},y5:function(){return s},fC:function(){return o},iI:function(){return a}});var r=(0,n(95853).q$)({AddEmbededSelectedSelect:"ADD_EMBEDED_SELECTED_SELECT",ClearEmbededSelectedSelect:"CLEAR_EMBEDED_SELECTED_SELECT",EnterEmbededSelectItemMode:"ENTER_EMBEDED_SELECT_ITEM_MODE",RemoveEmbededSelectedSelect:"REMOVE_EMBEDED_SELECTET_SELECT",RemoveEmbededPreviewSelect:"REMOVE_EMBEDED_PREVIEW_SELECT",SetEmbededPreviewSelect:"SET_EMBEDED_PREVIEW_SELECT",SetEmbededSelectMode:"SET_EMBEDED_SELECT_MODE"});function i(e,t,n){return{type:r.AddEmbededSelectedSelect,selectType:e,idArray:t,infoMap:n}}function o(e,t){return{type:r.RemoveEmbededSelectedSelect,selectType:e,idArray:t}}function a(e,t){return{type:r.SetEmbededPreviewSelect,itemType:e,idArray:t}}function s(){return{type:r.RemoveEmbededPreviewSelect}}function l(){return{type:r.ClearEmbededSelectedSelect}}},32835:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({SetDependencyStatus:"SET_DEPENDENCY_STATUS",AppendToGenerateThumbnailQueue:"APPEND_TO_GENERATE_THUMBNAIL_QUEUE",AppendLeftGenerateThumbnailQueue:"APPEND_LEFT_GENERATE_THUMBNAIL_QUEUE",ClearGenerateThumbnailQueue:"CLEAR_GENERATE_THUMBNAIL_QUEUE",PopGenerateThumbnailQueueToCurrentTasks:"POP_GENERATE_THUMBNAIL_QUEUE_TO_CURRENT_TASKS",ClearCurrentExternalConvertTasks:"CLEAR_CURRENT_EXTERNAL_CONVERT_TASKS",SetCompletedCategory:"SET_COMPLETED_CATEGORY",SetOpenGenerateThumbnailQueue:"SET_OPEN_GENERATE_THUMBNAIL_QUEUE",SetDependencyStatusLoaded:"SET_DEPENDENCY_STATUS_LOADED",AddRegenerateTasks:"ADD_REGENERATE_TASKS"}),o=(0,r.Ky)({UpdateDependencyStatus:"UPDATE_DEPENDENCY_STATUS",ProcessConvert:"PROCESS_CONVERT",LoadConvertNeededFile:"LOAD_CONVERT_NEEDED_FILE",LoadRegenerateTasks:"LOAD_REGENERATE_TASKS"})},17963:function(e,t,n){"use strict";n.d(t,{DK:function(){return s}});var r=n(7409),i=n(99282),o=n(96904),a=n(32835);function s(e){return{type:a.j.AppendLeftGenerateThumbnailQueue,tasks:e.map(function(e){return(0,i._)((0,r._)({},e),{task_type:o.Kh.AUTO_GENERATE})})}}},81023:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({SetCurrentFolder:"SET_CURRENT_FOLDER",ClearCurrentFolder:"CLEAR_CURRENT_FOLDER",ClearSubFolder:"CLEAR_SUB_FOLDER",ClearFolderPhotowall:"CLEAR_FOLDER_PHOTOWALL",SetFolderItem:"SET_FOLDER_ITEM",SetFolderItemCount:"SET_FOLDER_ITEM_COUNT",SetSubFolder:"SET_SUB_FOLDER",ArrangeFolderPhotowallRow:"ARRANGE_FOLDER_PHOTOWALL_ROW",ArrangeSubFolderRow:"ARRANGE_SUB_FOLDER_ROW",UpdateFolderIdNameMap:"UPDATE_FOLDER_ID_NAME_MAP",ScrollToFolderPhotoWallItem:"SCROLL_TO_FOLDER_PHOTOWALL_ITEM",ResetFolderScrollToItem:"RESET_FOLDER_SCROLL_TO_ITEM",RotateFolderItems:"ROTATE_FOLDER_ITEMS",SetRootFolder:"SET_ROOT_FOLDER",UpdateFolderTreeToggled:"UPDATE_FOLDER_TREE_TOGGLED",UpdateFolderTreeActive:"UPDATE_FOLDER_TREE_ACTIVE",UpdateSortingSetting:"UPDATE_SORTING_SETTING",SetFolderTreeByListParent:"SET_FOLDERTREE_BY_LIST_PARENT",SetFolderTreeAccessPermission:"SET_FOLDERTREE_ACCESS_PERMISSION",DeleteFolderInStore:"DELETE_FOLDER_IN_STORE",UpdateFolderName:"UPDATE_FOLDER_NAME",ClearFolderStore:"CLEAR_FOLDER_STORE",UpdateFolderSharing:"UPDATE_FOLDER_SHARING",UnlockFolderInFolderTree:"UNLOCK_FOLDER_IN_FOLDER_TREE",UpdateSubFolderCover:"UPDATE_SUB_FOLDER_COVER",UpdateSubFolder:"UPDATE_SUB_FOLDER",HideSubFolders:"HIDE_SUB_FOLDERS"}),o=(0,r.Ky)({GetCurrentFolder:"GET_CURRENT_FOLDER",GetFolderByLocation:"GET_FOLDER_BY_LOCATION",GoToFolderByPath:"GO_TO_FOLDER_BY_PATH",ListParentFolderTrees:"LIST_PARENT_FOLDER_TREES",ListSubFolder:"LIST_SUB_FOLDER",ListFolderItem:"LIST_FOLDER_ITEM",GetFolderItemCount:"GET_FOLDER_ITEM_COUNT",GetFolderItemCountWithFilter:"GET_FOLDER_ITEM_COUNT_WITH_FILTER",ArrangeFolderPhotowallRow:"ARRANGE_FOLDER_PHOTOWALL_ROW",ChangeToggled:"CHANGE_TOGGLED",CreateFolder:"CREATE_FOLDER",ChangeSorting:"CHANGE_SORTING",CopyToFolder:"COPY_TO_FOLDER",MoveToFolder:"MOVE_TO_FOLDER",MoveToFolderByDraggingFromFolderWall:"MOVE_TO_FOLDER_BY_DRAGGING_FROM_FOLDER_WALL",MoveToFolderByDraggingFromFolderTree:"MOVE_TO_FOLDER_BY_DRAGGING_FROM_FOLDER_TREE",DeleteFolder:"DELETE_FOLDER",DeleteFolderDone:"DELETE_FOLDER_DONE",RenameFolder:"RENAME_FOLDER",DownloadFolder:"DOWNLOAD_FOLDER",SetFolderCover:"SET_FOLDER_COVER"})},70494:function(e,t,n){"use strict";n.d(t,{Jl:function(){return f},QP:function(){return d},S9:function(){return u},T2:function(){return g},Ug:function(){return h},ZV:function(){return s},_d:function(){return l},kM:function(){return v},nA:function(){return p},p0:function(){return m},tm:function(){return a},vl:function(){return c},wm:function(){return y}});var r=n(88093),i=n(96904),o=n(81023);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:o.qA.ListSubFolder,id:e,sortDirection:t,needReset:n,additional:["sharing_info","access_permission","thumbnail","password_verified"],FolderAPI:r.Z.FotoTeam.Browse.Folder}}function s(){return{type:o.qA.CopyToFolder,library:i.Zu.PERSONAL,selectedSource:i.n0.SELECTED_BAR,backgroundTaskFileAPI:r.Z.Foto.BackgroundTask.File}}function l(){return{type:o.qA.CopyToFolder,library:i.Zu.PERSONAL,selectedSource:i.n0.LIGHTBOX,backgroundTaskFileAPI:r.Z.Foto.BackgroundTask.File}}function u(){return{type:o.qA.CopyToFolder,library:i.Zu.TEAM,selectedSource:i.n0.SELECTED_BAR,backgroundTaskFileAPI:r.Z.FotoTeam.BackgroundTask.File}}function c(){return{type:o.qA.CopyToFolder,library:i.Zu.TEAM,selectedSource:i.n0.LIGHTBOX,backgroundTaskFileAPI:r.Z.FotoTeam.BackgroundTask.File}}function d(){return{type:o.qA.MoveToFolder,library:i.Zu.PERSONAL,selectedSource:i.n0.SELECTED_BAR,backgroundTaskFileAPI:r.Z.Foto.BackgroundTask.File}}function f(){return{type:o.qA.MoveToFolder,library:i.Zu.PERSONAL,selectedSource:i.n0.LIGHTBOX,backgroundTaskFileAPI:r.Z.Foto.BackgroundTask.File}}function p(){return{type:o.qA.MoveToFolder,library:i.Zu.TEAM,selectedSource:i.n0.SELECTED_BAR,backgroundTaskFileAPI:r.Z.FotoTeam.BackgroundTask.File}}function h(){return{type:o.qA.MoveToFolder,library:i.Zu.TEAM,selectedSource:i.n0.LIGHTBOX,backgroundTaskFileAPI:r.Z.FotoTeam.BackgroundTask.File}}function m(){return{type:o.qA.RenameFolder,FolderAPI:r.Z.Foto.Browse.Folder}}function g(){return{type:o.qA.RenameFolder,FolderAPI:r.Z.FotoTeam.Browse.Folder}}function v(e,t){return{type:o.qA.SetFolderCover,folderId:e,itemIds:t,FolderAPI:r.Z.Foto.Browse.Folder.setCover}}function y(e,t){return{type:o.qA.SetFolderCover,folderId:e,itemIds:t,FolderAPI:r.Z.FotoTeam.Browse.Folder.setCover}}},10694:function(e,t,n){"use strict";n.d(t,{eM:function(){return i},j:function(){return o},qA:function(){return a}});var r=n(95853),i={ADD:"add",REMOVE:"remove",SET:"set"},o=(0,r.q$)({UpdateGeneralTag:"UPDATE_GENERAL_TAG",SetGeneralTagSuggestion:"SET_GENERAL_TAG_SUGGESTION",UpdateIntersectionGeneralTag:"UPDATE_INTERSECTION_GENERAL_TAG",ClearIntersectionGeneralTag:"CLEAR_INTERSECTION_GENERAL_TAG",SetIntersectionGeneralTagLoading:"SET_INTERSECTION_GENERAL_TAG_LOADING",ClearGeneralTagSuggestion:"CLEAR_GENERAL_TAG_SUGGESTION"}),a=(0,r.Ky)({GetIntersectionGeneralTag:"GET_INTERSCTION_GENERAL_TAG",CreateAndAddIntersectionGeneralTag:"CREATE_AND_ADD_INTERSECTION_GENERAL_TAG",CreateAndAddGeneralTag:"CREATE_AND_ADD_GENERAL_TAG",AddGeneralTag:"ADD_GENERAL_TAG",RemoveGeneralTag:"REMOVE_GENERAL_TAG",BatchUpdateGeneralTag:"BATCH_UPDATE_GENERAL_TAG",UpdateGeneralTagSuggestion:"UPDATE_GENERAL_TAG_SUGGESTION"})},9849:function(e,t,n){"use strict";n.d(t,{AM:function(){return o},AY:function(){return s},bA:function(){return a}});var r=n(8768),i=n(10694);function o(e){var t=e.action,n=e.tagIdArray,o=void 0===n?[]:n,a=e.tagInfoArray,s=void 0===a?[]:a;return{type:i.j.UpdateGeneralTag,action:t,tagIdArray:o,tagInfoArray:s,library:r.Z.PERSONAL_SPACE}}function a(e){var t=e.action,n=e.tagIdArray,o=void 0===n?[]:n,a=e.tagInfoArray,s=void 0===a?[]:a;return{type:i.j.UpdateGeneralTag,action:t,tagIdArray:o,tagInfoArray:s,library:r.Z.TEAM_SPACE}}function s(){return{type:i.j.ClearGeneralTagSuggestion}}},34405:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({DeleteItemStore:"DELETE_ITEM_STORE"}),o=(0,r.Ky)({BatchUpdateDateTime:"BATCH_UPDATE_DATE_TIME",CopyItem:"COPY_ITEM",DeleteItemDone:"DELETE_ITEM_DONE",UpdateItem:"UPDATE_ITEM"})},83789:function(e,t,n){"use strict";n.d(t,{AY:function(){return a},Av:function(){return s},fF:function(){return u},nY:function(){return l},q_:function(){return c},x2:function(){return d}});var r=n(96904),i=n(88093),o=n(34405);function a(e){return{type:o.qA.UpdateItem,idArray:e,key:"rotate_action",value:r.ZP.ROTATION.COUNTER_CLOCKWISE,ItemAPI:i.Z.Foto.Browse.Item}}function s(e){return{type:o.qA.UpdateItem,idArray:e,key:"rotate_action",value:r.ZP.ROTATION.COUNTER_CLOCKWISE,ItemAPI:i.Z.FotoTeam.Browse.Item}}function l(e,t){return{type:o.qA.UpdateItem,idArray:e,key:"description",value:t,ItemAPI:i.Z.Foto.Browse.Item}}function u(e,t){return{type:o.qA.UpdateItem,idArray:e,key:"description",value:t,ItemAPI:i.Z.FotoTeam.Browse.Item}}function c(e,t,n){return{type:o.qA.UpdateItem,idArray:e,key:"time",value:t,source:n,ItemAPI:i.Z.Foto.Browse.Item}}function d(e,t,n){return{type:o.qA.UpdateItem,idArray:e,key:"time",value:t,source:n,ItemAPI:i.Z.FotoTeam.Browse.Item}}},24801:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({DeleteLightboxItemFileLocation:"DELETE_LIGHTBOX_ITEM_FILE_LOCATION",SetLightboxItem:"SET_LIGHTBOX_ITEM",SetLightboxItemDetail:"SET_LIGHTBOX_ITEM_DETAIL",SetLightboxItemFileLocation:"SET_LIGHTBOX_ITEM_FILE_LOCATION",SetLightboxItemValue:"SET_LIGHTBOX_ITEM_VALUE",SetLightboxStatus:"SET_LIGHTBOX_STATUS",SetDisplayTips:"SET_DISPLAY_TIPS",SetLightboxUnit:"SET_LIGHTBOX_UNIT",SetPeopleShowMore:"SET_PEOPLE_SHOW_MORE",ClearLightboxUnit:"CLEAR_LIGHTBOX_UNIT",SetLightboxItemOrientation:"SET_LIGHTBOX_ITEM_ORIENTATION",SetZoomMode:"SET_ZOOM_MODE",SetLightboxGeneratingThumbnail:"SET_LIGHTBOX_GENERATING_THUMBNAIL",AddLightboxTags:"ADD_LIGHTBOX_TAGS",RemoveLightboxTags:"REMOVE_LIGHTBOX_TAGS",UpdateLightboxRating:"UPDATE_LIGHTBOX_RATING",UpdateLightboxFaces:"UPDATE_LIGHTBOX_FACES",UpdateLightboxForSimilarItem:"UPDATE_LIGHTBOX_FOR_SIMILAR_ITEM",SetLightboxNeedRefreshTimeline:"SET_LIGHTBOX_NEED_REFRESH_TIMELINE"}),o=(0,r.Ky)({LoadLightboxItem:"LOAD_LIGHTBOX_ITEM",LoadLightboxItemDetail:"LOAD_LIGHTBOX_ITEM_DETAIL",LoadLightboxItemFileLocation:"LOAD_LIGHTBOX_ITEM_FILE_LOCATION",UpdateLightboxNeighborItem:"UPDATE_LIGHTBOX_NEIGHBOR_ITEM",OpenLightbox:"OPEN_LIGHTBOX",GotoNextLightboxItem:"GOTO_NEXT_LIGHTBOX_ITEM",GotoPrevLightboxItem:"GOTO_PREV_LIGHTBOX_ITEM",GotoNextLightboxItemDelay:"GOTO_NEXT_LIGHTBOX_ITEM_DELAY",UpdateLightboxScrollToItem:"UPDATE_LIGHTBOX_SCROLL_TO_ITEM",LightboxClearup:"LIGHTBOX_CLEARUP",EnterSlideshow:"ENTER_SLIDESHOW"})},82183:function(e,t,n){"use strict";n.d(t,{DZ:function(){return l},JN:function(){return c},Lw:function(){return s},RD:function(){return u},_f:function(){return f},h0:function(){return a},ju:function(){return d},kl:function(){return p},mU:function(){return i},qK:function(){return h},zG:function(){return o}});var r=n(24801);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{type:r.j.SetLightboxItem,item:e,prevItem:t,nextItem:n}}function o(e){return{type:r.j.SetLightboxItemValue,item:e}}function a(e){return{type:r.j.SetLightboxStatus,status:e}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:r.j.SetLightboxUnit,unit:e}}function l(){return{type:r.j.ClearLightboxUnit}}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:r.j.SetZoomMode,status:e}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:r.j.SetLightboxItemDetail,detail:e}}function d(e,t){return{type:r.j.SetLightboxItemFileLocation,folderId:e,path:t}}function f(e){return{type:r.j.DeleteLightboxItemFileLocation,folderIds:e}}function p(e){return{type:r.j.SetPeopleShowMore,isShowMore:e}}function h(e){return{type:r.j.SetLightboxNeedRefreshTimeline,needRefreshTimeline:e}}},30799:function(e,t,n){"use strict";n.d(t,{F$:function(){return _},GN:function(){return u},OW:function(){return p},S2:function(){return m},SN:function(){return b},Ui:function(){return y},YK:function(){return c},bV:function(){return v},fo:function(){return E},iO:function(){return h},jt:function(){return w},lP:function(){return g},sG:function(){return d},xV:function(){return l},zJ:function(){return f}});var r=n(88093),i=n(47524),o=n(24801),a=n(85672),s=n(76408);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:o.qA.OpenLightbox,option:e}}function u(e,t,n){return{type:o.qA.LoadLightboxItem,itemId:e,passphrase:t,albumId:n,ItemAPI:r.Z.Foto.Browse.Item.get,UnitAPI:r.Z.Foto.Browse.Unit.get,SimilarItemAPI:r.Z.Foto.Browse.SimilarItem.get,enableSimilarSelector:s.Z.getUserEnableSimilar,getSimilarGroupInfoAction:a.Io}}function c(e,t){return{type:o.qA.LoadLightboxItem,itemId:e,passphrase:t,ItemAPI:r.Z.FotoTeam.Browse.Item.get,UnitAPI:r.Z.FotoTeam.Browse.Unit.get,SimilarItemAPI:r.Z.FotoTeam.Browse.SimilarItem.get,enableSimilarSelector:s.Z.getTeamSpaceEnableSimilar,getSimilarGroupInfoAction:a.UC}}function d(){return{type:o.qA.UpdateLightboxNeighborItem}}function f(){return{type:o.qA.GotoPrevLightboxItem}}function p(){return{type:o.qA.GotoNextLightboxItem}}function h(){return{type:o.qA.GotoNextLightboxItemDelay}}function m(){return{type:o.qA.GotoNextLightboxItemDelay,cancel:!0}}function g(e){return{type:o.qA.UpdateLightboxScrollToItem,item:e}}function v(){var e=i.Z.getStore(),t=e.getState().getIn(["lightbox","status","hasPrev"]),n=e.getState().getIn(["lightbox","status","hasNext"]),r=e.getState().getIn(["lightbox","prevItem"]),a=t?r.get(r.size-1):null,s=n?e.getState().getIn(["lightbox","nextItem",0]):null;return{type:o.qA.LightboxClearup,prevItem:a,nextItem:s}}function y(){return{type:o.qA.EnterSlideshow}}function b(e,t,n){return{type:o.qA.LoadLightboxItemDetail,itemId:e,passphrase:t,albumId:n,ItemAPI:r.Z.Foto.Browse.Item.getExif}}function _(e,t){return{type:o.qA.LoadLightboxItemDetail,itemId:e,passphrase:t,ItemAPI:r.Z.FotoTeam.Browse.Item.getExif}}function E(e){return{type:o.qA.LoadLightboxItemFileLocation,folderId:e,FolderAPI:r.Z.Foto.Browse.Folder.get}}function w(e){return{type:o.qA.LoadLightboxItemFileLocation,folderId:e,FolderAPI:r.Z.FotoTeam.Browse.Folder.get}}},92475:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r=(0,n(95853).q$)({SetMobileTooltipsOpen:"SET_MOBILE_TOOLTIPS_OPEN"})},1551:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(92475);function i(e,t){return{type:r.j.SetMobileTooltipsOpen,tooltipsId:e,isOpen:t}}},69399:function(e,t,n){"use strict";n.d(t,{s:function(){return o},G:function(){return i}});var r=(0,n(95853).q$)({SetNotificationAnchorId:"SET_NOTIFICATION_ANCHOR_ID",ResetNotificationAnchorId:"RESET_NOTIFICATION_ANCHOR_ID"});function i(e){return{type:r.SetNotificationAnchorId,id:e}}function o(){return{type:r.ResetNotificationAnchorId}}},45527:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({SetRefresh:"SET_REFRESH",SetRefreshOnLightboxExit:"SET_REFRESH_ON_LIGHTBOX_EXIT",ClearRefresh:"CLEAR_REFRESH"}),o=(0,r.Ky)({ForceRefresh:"FORCE_REFRESH",RefreshCurrentFolder:"REFRESH_CURRENT_FOLDER",RefreshTimeline:"REFRESH_TIMELINE",RefreshIfEmpty:"REFRESH_IF_EMPTY",SetRefresh:"SET_REFRESH"})},33873:function(e,t,n){"use strict";n.d(t,{RR:function(){return o},n9:function(){return a}});var r=n(96904),i=n(45527);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.ZP.ALBUM_TYPE.TIMELINE;return{type:i.qA.RefreshTimeline,location:e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[/.*/];return{type:i.qA.SetRefresh,whitelist:e}}},66902:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r=(0,n(95853).q$)({AddSelectedBarSelect:"ADD_SELECTED_BAR_SELECT",ClearSelectedBarSelect:"CLEAR_SELECTED_BAR_SELECT",EnterCreateAlbum:"ENTER_CREATE_ALBUM",EnterPersonEdition:"ENTER_PERSON_EDITION",EnterConceptEdition:"ENTER_CONCEPT_EDITION",EnterSelectItemMode:"ENTER_SELECT_ITEM_MODE",LeaveCreateAlbum:"LEAVE_CREATE_ALBUM",RemoveSelectedBarSelect:"REMOVE_SELECTET_BAR_SELECT",RemovePreviewSelect:"REMOVE_PREVIEW_SELECT",SetPreviewSelect:"SET_PREVIEW_SELECT",SetSelectedIsDragged:"SET_SELECTED_IS_DRAGGED"})},51335:function(e,t,n){"use strict";n.d(t,{EG:function(){return i},IE:function(){return u},S$:function(){return l},b3:function(){return a},n0:function(){return s},uW:function(){return o}});var r=n(66902);function i(e,t,n){return{type:r.j.AddSelectedBarSelect,selectType:e,idArray:t,infoMap:n}}function o(e,t){return{type:r.j.RemoveSelectedBarSelect,selectType:e,idArray:t}}function a(e,t){return{type:r.j.SetPreviewSelect,itemType:e,idArray:t}}function s(){return{type:r.j.RemovePreviewSelect}}function l(){return{type:r.j.ClearSelectedBarSelect}}function u(){return{type:r.j.EnterSelectItemMode}}},55585:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var r=(0,n(95853).Ky)({HandleEditGeneralTag:"HANDLE_EDIT_GENERAL_TAG",HandleEditDateTime:"HANDLE_EDIT_DATE_TIME",HandleEditRating:"HANDLE_EDIT_RATING",HandleRemoveItemFromAlbum:"HANDLE_REMOVE_ITEM_FROM_ALBUM",HandleRemoveItemFromPersonAlbum:"HANDLE_REMOVE_ITEM_FROM_PERSON_ALBUM",HandleRemoveItemFromConceptAlbum:"HANDLE_REMOVE_ITEM_FROM_CONCEPT_ALBUM",HandleDelete:"HANDLE_DELETE",HandleDeleteInNormalAlbum:"HANDLE_DELETE_IN_NORMAL_ALBUM",HandleDownload:"HANDLE_DOWNLOAD",HandleAddToAlbum:"HANDLE_ADD_TO_ALBUM",HandleSetAsCover:"HANDLE_SET_AS_COVER",HandleMerge:"HANDLE_MERGE",HandleSetAsPersonCover:"HANDLE_SET_AS_PERSON_COVER",HandleSetAsConceptCover:"HANDLE_SET_AS_CONCEPT_COVER",HandleRotate:"HANDLE_ROTATE",HandleSetAsFolderCover:"HANDLE_SET_AS_FOLDER_COVER",HandleChangeFolderCover:"HANDLE_CHANGE_FOLDER_COVER",HandleCollectPhotoToHereFromFolder:"HANDLE_COLLECT_TO_HERE_FROM_FOLDER",HandleCreateTempSharedAlbum:"HANDLE_CREATE_TEMP_SHARED_ALBUM",HandleUndoUnstackInTimeline:"HANDLE_UNDO_UNSTACK_IN_TIMELINE",HandleUndoUnstackInGridView:"HANDLE_UNDO_UNSTACK_IN_GRID_VIEW",HandleUnstackInTimeline:"HANDLE_UNSTACK_IN_TIMELINE",HandleUnstackInGridView:"HANDLE_UNSTACK_IN_GRID_VIEW",DeleteItemAndFolder:"DELETE_ITEM_AND_FOLDER",DeleteItemAndFolderDone:"DELETE_ITEM_AND_FOLDER_DONE",HandleKeepItemsDeleteRest:"HANDLE_KEEP_ITEMS_DELETE_REST",HandleUndoRemoveFromStack:"HANDLE_UNDO_REMOVE_FROM_STACK",HandleSetAsStackCover:"HANDLE_SET_AS_STACK_COVER",HandleRemoveFromStack:"HANDLE_REMOVE_FROM_STACK",HandleRegeneratePreview:"HANDLE_REGENERATE_PREVIEW",HandleRegeneratePreviewInLightbox:"HANDLE_REGENERATE_PREVIEW_IN_LIGHTBOX",HandleSetFavorite:"HANDLE_SET_FAVORITE"})},72260:function(e,t,n){"use strict";n.d(t,{g2:function(){return k},tp:function(){return eR},if:function(){return e$},Z9:function(){return L},YP:function(){return Q},Ri:function(){return er},ff:function(){return eH},hA:function(){return ep},dw:function(){return en},YY:function(){return K},Zs:function(){return H},Ey:function(){return eo},dX:function(){return ez},hg:function(){return eY},Qj:function(){return eF},dM:function(){return ea},_i:function(){return ee},QB:function(){return V},Sb:function(){return R},yP:function(){return eB},g_:function(){return e0},n2:function(){return G},QK:function(){return eU},Jd:function(){return ek},yY:function(){return eQ},qX:function(){return eW},yb:function(){return Z},b4:function(){return ei},dT:function(){return et},OF:function(){return es},XM:function(){return eI},IQ:function(){return A},Pi:function(){return eA},lg:function(){return el},y$:function(){return P},el:function(){return e_},ns:function(){return eJ},TP:function(){return ef},jP:function(){return eh},qT:function(){return x},g3:function(){return eu},uc:function(){return $},DW:function(){return D},Hz:function(){return O},Nx:function(){return eg},uD:function(){return eZ},eB:function(){return ec},wx:function(){return J},$H:function(){return eT},P4:function(){return eL},xM:function(){return W},cp:function(){return eX},sJ:function(){return em},wm:function(){return N},m$:function(){return eS},S2:function(){return q},b_:function(){return ex},tx:function(){return eO},fn:function(){return M},iw:function(){return eG},rV:function(){return eE},g8:function(){return eV},yZ:function(){return F},$O:function(){return j},gU:function(){return I},vn:function(){return eD},kP:function(){return X},h3:function(){return eC},vw:function(){return eN},nb:function(){return Y},KU:function(){return eK},Uv:function(){return eP},nk:function(){return z},sc:function(){return eM},oq:function(){return ej},gp:function(){return U},_x:function(){return ed},dH:function(){return B},zH:function(){return eq},DX:function(){return C},jZ:function(){return ev}});var r=n(88093),i=n(8768),o=n(47524),a=n(96904),s=n(55585),l=n(57651),u=n(51335),c=n(27154),d=n(39247),f=n(85672),p=n(30799),h=n(82183),m=n(95853),g=(0,m.Ky)({AddGuestUploadTasks:"ADD_GUEST_UPLOAD_TASKS",DeletePhotoRequest:"DELETE_PHOTO_REQUEST",ListPhotoRequest:"LIST_PHOTO_REQUEST",ProcessGuestUploadTasks:"PROCESS_GUEST_UPLOAD_TASKS",GetPhotoRequestInfo:"GET_PHOTO_REQUEST_INFO",OpenDestinationAlbumDialog:"OPEN_DESTINATION_ALBUM_DIALOG",OpenDestinationFolderDialog:"OPEN_DESTINATION_FOLDER_DIALOG",OpenPhotoRequestDialog:"OPEN_PHOTO_REQUEST_DIALOG",OpenPhotoRequestDialogFromFolder:"OPEN_PHOTO_REQUEST_DIALOG_FROM_FOLDER",OpenEditPhotoRequestDialog:"OPEN_EDIT_PHOTO_REQUEST_DIALOG",CreatePhotoRequest:"CREATE_PHOTO_REQUEST",EditPhotoRequest:"EDIT_PHOTO_REQUEST"});(0,m.q$)({AddNewPhotoRequest:"ADD_NEW_PHOTO_REQUEST",AppendListResponse:"APPEND_LIST_RESPONSE",ClearPhotoRequest:"CLEAR_PHOTO_REQUEST",LoadListResponse:"LOAD_LIST_RESPONSE",RemovePhotoRequestByPassphrase:"REMOVE_PHOTO_REQUEST_BY_PASSPHRASE",SetPhotoRequestInfo:"SET_PHOTO_REQUEST_INFO",SetPhotoRequestMapLoaded:"SET_PHOTO_REQUEST_MAP_LOADED",SetPhotoRequestSwitchTab:"SET_PHOTO_REQUEST_SWITCH_TAB",UpdatePhotoRequest:"UPDATE_PHOTO_REQUEST"});var v=function(e){var t=e.folderInfo,n=e.albumInfo;return{type:g.OpenPhotoRequestDialog,folderInfo:t,albumInfo:n}},y=function(e,t,n){return{type:g.OpenPhotoRequestDialogFromFolder,id:n,openAction:v({folderInfo:{library:e,path:t,id:n}})}},b=n(83789),_=n(70494),E=n(88699),w=n(76408),S=n(87827),T=n(9849);function O(){return{type:s.q.HandleEditGeneralTag,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function I(){return{type:s.q.HandleEditDateTime,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function A(e){return{type:s.q.HandleEditRating,rating:e,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function C(){return{type:s.q.HandleRemoveItemFromAlbum,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function x(){return{type:s.q.HandleRemoveItemFromAlbum,selectedSource:a.n0.LIGHTBOX,clearupAction:(0,p.bV)()}}function D(){return{type:s.q.HandleRemoveItemFromPersonAlbum,library:i.Z.PERSONAL_SPACE,selectedSource:a.n0.SELECTED_BAR,clearupAfterConfirmAction:u.S$,separatePhotoFromPersonAction:c.WG,confirmRemoveAutoAlbumPhotoAction:c.OM}}function R(){return{type:s.q.HandleRemoveItemFromPersonAlbum,library:i.Z.TEAM_SPACE,selectedSource:a.n0.SELECTED_BAR,clearupAfterConfirmAction:u.S$,separatePhotoFromPersonAction:c.U9,confirmRemoveAutoAlbumPhotoAction:c.hL}}function L(){return{type:s.q.HandleRemoveItemFromPersonAlbum,selectedSource:a.n0.LIGHTBOX,clearupAfterConfirmAction:p.bV,library:i.Z.PERSONAL_SPACE,separatePhotoFromPersonAction:c.WG,confirmRemoveAutoAlbumPhotoAction:c.OM,getActionBarInfoAction:d.Q}}function k(){return{type:s.q.HandleRemoveItemFromPersonAlbum,selectedSource:a.n0.LIGHTBOX,clearupAfterConfirmAction:p.bV,library:i.Z.TEAM_SPACE,separatePhotoFromPersonAction:c.U9,confirmRemoveAutoAlbumPhotoAction:c.hL,getActionBarInfoAction:d.a}}function M(){return{type:s.q.HandleDelete,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)(),deleteItemInAutoAlbumAction:c.QG,deleteItemAndFolderAction:ey,showPersonalSpaceHint:!0,enableRecycleBinSelector:w.Z.getEnablePersonalDSMRecycleBin}}function P(){return{type:s.q.HandleDelete,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)(),deleteItemInAutoAlbumAction:c.PG,deleteItemAndFolderAction:eb,showSharedSpaceHint:!0,enableRecycleBinSelector:w.Z.getEnableSharedDSMRecycleBin}}function N(){return{type:s.q.HandleDeleteInNormalAlbum,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)(),deletePersonalItemAction:ey,deleteTeamItemAction:eb}}function F(){var e=o.Z.getStore().getState(),t=S.Z.getIsSimilarItem(e);return{type:s.q.HandleDelete,library:i.Z.PERSONAL_SPACE,selectedSource:a.n0.LIGHTBOX,clearupAction:t?null:(0,p.bV)(),similarClearUpAction:t?f.$N:null,deleteItemAndFolderAction:ey,deleteItemInAutoAlbumAction:c.QG,showPersonalSpaceHint:!0,enableRecycleBinSelector:w.Z.getEnablePersonalDSMRecycleBin}}function B(){var e=o.Z.getStore().getState(),t=S.Z.getIsSimilarItem(e);return{type:s.q.HandleDelete,library:i.Z.TEAM_SPACE,selectedSource:a.n0.LIGHTBOX,clearupAction:t?null:(0,p.bV)(),similarClearUpAction:t?f.ht:null,deleteItemAndFolderAction:eb,deleteItemInAutoAlbumAction:c.PG,showSharedSpaceHint:!0,enableRecycleBinSelector:w.Z.getEnableSharedDSMRecycleBin}}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a._5.SOURCE;return{type:s.q.HandleDownload,library:i.Z.PERSONAL_SPACE,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)(),downloadType:e,downloadApi:r.Z.Foto.Download}}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a._5.SOURCE;return{type:s.q.HandleDownload,library:i.Z.TEAM_SPACE,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)(),downloadType:e,downloadApi:r.Z.FotoTeam.Download}}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a._5.SOURCE;return{type:s.q.HandleDownload,library:i.Z.PERSONAL_SPACE,selectedSource:a.n0.LIGHTBOX,downloadType:e,downloadApi:r.Z.Foto.Download}}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a._5.SOURCE;return{type:s.q.HandleDownload,library:i.Z.TEAM_SPACE,selectedSource:a.n0.LIGHTBOX,downloadType:e,downloadApi:r.Z.FotoTeam.Download}}function z(){return{type:s.q.HandleAddToAlbum,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function Z(){return{type:s.q.HandleAddToAlbum,selectedSource:a.n0.LIGHTBOX}}function G(){return{type:s.q.HandleSetAsCover,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function W(){return{type:s.q.HandleSetAsPersonCover,selectedSource:a.n0.SELECTED_BAR,setCoverAction:c.as,clearupAction:(0,u.S$)()}}function q(){return{type:s.q.HandleSetAsPersonCover,selectedSource:a.n0.SELECTED_BAR,setCoverAction:c.rI,clearupAction:(0,u.S$)()}}function Y(){return{type:s.q.HandleSetAsCover,selectedSource:a.n0.LIGHTBOX}}function $(){return{type:s.q.HandleSetAsPersonCover,selectedSource:a.n0.LIGHTBOX,setCoverAction:c.as}}function K(){return{type:s.q.HandleSetAsPersonCover,selectedSource:a.n0.LIGHTBOX,setCoverAction:c.rI}}function X(){return{type:s.q.HandleRotate,selectedSource:a.n0.LIGHTBOX,setCounterClockwiseAction:b.AY,setupAction:(0,h.RD)(!1)}}function Q(){return{type:s.q.HandleRotate,selectedSource:a.n0.LIGHTBOX,setCounterClockwiseAction:b.Av,setupAction:(0,h.RD)(!1)}}function J(){return{type:s.q.HandleSetAsFolderCover,setFolderCoverAction:_.kM,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function ee(){return{type:s.q.HandleSetAsFolderCover,setFolderCoverAction:_.wm,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function et(){return{type:s.q.HandleSetAsFolderCover,setFolderCoverAction:_.kM,selectedSource:a.n0.LIGHTBOX}}function en(){return{type:s.q.HandleSetAsFolderCover,setFolderCoverAction:_.wm,selectedSource:a.n0.LIGHTBOX}}function er(){return{type:s.q.HandleChangeFolderCover,setFolderCoverAction:_.kM,selectedSource:a.n0.SELECTED_BAR,library:i.Z.PERSONAL_SPACE,clearupAction:(0,u.S$)()}}function ei(){return{type:s.q.HandleChangeFolderCover,setFolderCoverAction:_.wm,selectedSource:a.n0.SELECTED_BAR,library:i.Z.TEAM_SPACE,clearupAction:(0,u.S$)()}}function eo(){return{type:s.q.HandleCollectPhotoToHereFromFolder,openPhotoRequestDialogAction:y,selectedSource:a.n0.SELECTED_BAR,library:i.Z.PERSONAL_SPACE,clearupAction:(0,u.S$)()}}function ea(){return{type:s.q.HandleCollectPhotoToHereFromFolder,openPhotoRequestDialogAction:y,selectedSource:a.n0.SELECTED_BAR,library:i.Z.TEAM_SPACE,clearupAction:(0,u.S$)()}}function es(){return{type:s.q.HandleCreateTempSharedAlbum,selectedSource:a.n0.SELECTED_BAR}}function el(){return{type:s.q.HandleSetAsConceptCover,selectedSource:a.n0.SELECTED_BAR,setCoverAction:c.RG,clearupAction:(0,u.S$)()}}function eu(){return{type:s.q.HandleSetAsConceptCover,selectedSource:a.n0.SELECTED_BAR,setCoverAction:c.EF,clearupAction:(0,u.S$)()}}function ec(){return{type:s.q.HandleSetAsConceptCover,selectedSource:a.n0.LIGHTBOX,setCoverAction:c.RG}}function ed(){return{type:s.q.HandleSetAsConceptCover,selectedSource:a.n0.LIGHTBOX,setCoverAction:c.EF}}function ef(){return{type:s.q.HandleRemoveItemFromConceptAlbum,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)(),removeAutoAlbumPhotoAction:c.Gz}}function ep(){return{type:s.q.HandleRemoveItemFromConceptAlbum,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)(),removeAutoAlbumPhotoAction:c.h$}}function eh(){return{type:s.q.HandleRemoveItemFromConceptAlbum,selectedSource:a.n0.LIGHTBOX,clearupAfterConfirmAction:p.bV,removeAutoAlbumPhotoAction:c.Gz}}function em(){return{type:s.q.HandleRemoveItemFromConceptAlbum,selectedSource:a.n0.LIGHTBOX,clearupAfterConfirmAction:p.bV,removeAutoAlbumPhotoAction:c.h$}}function eg(){return{type:s.q.HandleUnstackInTimeline,SimilarAPI:r.Z.Foto.Browse.Similar,udcEvent:a.Cm.CLICK_UNSTACK_TIMELINE}}function ev(){return{type:s.q.HandleUnstackInTimeline,SimilarAPI:r.Z.FotoTeam.Browse.Similar,udcEvent:a.Cm.CLICK_UNSTACK_TIMELINE}}function ey(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:s.q.DeleteItemAndFolder,id:e,photoIdArray:t,folderIdArray:n,albumType:i,ItemAPI:r.Z.Foto.Browse.Item,BackgroundTaskFileAPI:r.Z.Foto.BackgroundTask.File,updateGeneralTagAction:T.AM,GeneralTagAPI:r.Z.Foto.Browse.GeneralTag,initialAutoAlbumListAction:c.aQ,skipDeleteItemStoreReducer:o}}function eb(e,t,n,i){return{type:s.q.DeleteItemAndFolder,id:e,photoIdArray:t,folderIdArray:n,albumType:i,ItemAPI:r.Z.FotoTeam.Browse.Item,BackgroundTaskFileAPI:r.Z.FotoTeam.BackgroundTask.File,updateGeneralTagAction:T.bA,GeneralTagAPI:r.Z.FotoTeam.Browse.GeneralTag,initialAutoAlbumListAction:c.ls}}function e_(){return{type:s.q.HandleKeepItemsDeleteRest,selectedSource:a.n0.LIGHTBOX,deleteItemAndFolderAction:ey,lightboxSimilarClearUpAction:f.$N,udcEvent:a.Cm.CLICK_KEEP_ITEMS_DELETE_REST_LIGHTBOX,library:i.Z.PERSONAL_SPACE}}function eE(){return{type:s.q.HandleKeepItemsDeleteRest,selectedSource:a.n0.LIGHTBOX,deleteItemAndFolderAction:eb,lightboxSimilarClearUpAction:f.ht,udcEvent:a.Cm.CLICK_KEEP_ITEMS_DELETE_REST_LIGHTBOX,library:i.Z.TEAM_SPACE}}function ew(e){var t=e.SimilarAPI,n=e.similarInfo,r=e.goToSimilarItemAction;return{type:s.q.HandleUndoRemoveFromStack,SimilarAPI:t,similarInfo:n,goToSimilarItemAction:r,setSimilarGroupInfoAction:E.YR}}function eS(){return{type:s.q.HandleSetAsStackCover,selectedSource:a.n0.LIGHTBOX,SimilarAPI:r.Z.Foto.Browse.Similar,udcEvent:a.Cm.CLICK_SET_AS_STACK_COVER_LIGHTBOX}}function eT(){return{type:s.q.HandleRemoveFromStack,selectedSource:a.n0.LIGHTBOX,SimilarAPI:r.Z.Foto.Browse.Similar,lightboxSimilarClearUpAction:f.$N,handleUndoAction:ew,goToSimilarItemAction:f.F8,udcEvent:a.Cm.CLICK_REMOVE_FROM_STACK_LIGHTBOX}}function eO(){return{type:s.q.HandleSetAsStackCover,selectedSource:a.n0.LIGHTBOX,SimilarAPI:r.Z.FotoTeam.Browse.Similar,udcEvent:a.Cm.CLICK_SET_AS_STACK_COVER_LIGHTBOX}}function eI(){return{type:s.q.HandleRemoveFromStack,selectedSource:a.n0.LIGHTBOX,SimilarAPI:r.Z.FotoTeam.Browse.Similar,lightboxSimilarClearUpAction:f.ht,handleUndoAction:ew,goToSimilarItemAction:f.ER,udcEvent:a.Cm.CLICK_REMOVE_FROM_STACK_LIGHTBOX}}function eA(){return{type:s.q.HandleEditGeneralTag,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)()}}function eC(){return{type:s.q.HandleEditDateTime,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)()}}function ex(){return{type:s.q.HandleCreateTempSharedAlbum,selectedSource:a.n0.GRID_VIEW}}function eD(e){return{type:s.q.HandleEditRating,rating:e,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)()}}function eR(){return{type:s.q.HandleAddToAlbum,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)()}}function eL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a._5.SOURCE;return{type:s.q.HandleDownload,library:i.Z.PERSONAL_SPACE,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)(),downloadType:e,downloadApi:r.Z.Foto.Download}}function ek(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a._5.SOURCE;return{type:s.q.HandleDownload,library:i.Z.TEAM_SPACE,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)(),downloadType:e,downloadApi:r.Z.FotoTeam.Download}}function eM(){return{type:s.q.HandleUnstackInGridView,SimilarAPI:r.Z.Foto.Browse.Similar,goToSimilarItemAction:f.F8,udcEvent:a.Cm.CLICK_UNSTACK_GRID_VIEW}}function eP(){return{type:s.q.HandleUnstackInGridView,SimilarAPI:r.Z.FotoTeam.Browse.Similar,goToSimilarItemAction:f.ER,udcEvent:a.Cm.CLICK_UNSTACK_GRID_VIEW}}function eN(){return{type:s.q.HandleRemoveFromStack,selectedSource:a.n0.GRID_VIEW,SimilarAPI:r.Z.Foto.Browse.Similar,lightboxSimilarClearUpAction:f.$N,handleUndoAction:ew,goToSimilarItemAction:f.F8,clearupAction:(0,l.M$)(),udcEvent:a.Cm.CLICK_REMOVE_FROM_STACK_GRID_VIEW}}function eF(){return{type:s.q.HandleRemoveFromStack,selectedSource:a.n0.GRID_VIEW,SimilarAPI:r.Z.FotoTeam.Browse.Similar,lightboxSimilarClearUpAction:f.ht,handleUndoAction:ew,goToSimilarItemAction:f.ER,clearupAction:(0,l.M$)(),udcEvent:a.Cm.CLICK_REMOVE_FROM_STACK_GRID_VIEW}}function eB(){return{type:s.q.HandleSetAsStackCover,selectedSource:a.n0.GRID_VIEW,SimilarAPI:r.Z.Foto.Browse.Similar,clearupAction:(0,l.M$)(),udcEvent:a.Cm.CLICK_SET_AS_STACK_COVER_GRID_VIEW}}function eU(){return{type:s.q.HandleSetAsStackCover,selectedSource:a.n0.GRID_VIEW,SimilarAPI:r.Z.FotoTeam.Browse.Similar,clearupAction:(0,l.M$)(),udcEvent:a.Cm.CLICK_SET_AS_STACK_COVER_GRID_VIEW}}function eH(){return{type:s.q.HandleKeepItemsDeleteRest,selectedSource:a.n0.GRID_VIEW,deleteItemAndFolderAction:ey,SimilarAPI:r.Z.Foto.Browse.Similar,lightboxSimilarClearUpAction:f.$N,clearupAction:(0,l.M$)(),udcEvent:a.Cm.CLICK_KEEP_ITEMS_DELETE_REST_GRID_VIEW,library:i.Z.PERSONAL_SPACE}}function ej(){return{type:s.q.HandleKeepItemsDeleteRest,selectedSource:a.n0.GRID_VIEW,deleteItemAndFolderAction:eb,SimilarAPI:r.Z.FotoTeam.Browse.Similar,lightboxSimilarClearUpAction:f.ht,clearupAction:(0,l.M$)(),udcEvent:a.Cm.CLICK_KEEP_ITEMS_DELETE_REST_GRID_VIEW,library:i.Z.TEAM_SPACE}}function eV(){return{type:s.q.HandleDelete,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)(),deleteItemAndFolderAction:ey,similarClearUpAction:f.$N,showPersonalSpaceHint:!0,enableRecycleBinSelector:w.Z.getEnablePersonalDSMRecycleBin}}function ez(){return{type:s.q.HandleDelete,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)(),deleteItemAndFolderAction:eb,similarClearUpAction:f.ht,showSharedSpaceHint:!0,enableRecycleBinSelector:w.Z.getEnableSharedDSMRecycleBin}}function eZ(){return{type:s.q.HandleRegeneratePreview,selectedSource:a.n0.SELECTED_BAR,clearupAction:(0,u.S$)()}}function eG(){return{type:s.q.HandleRegeneratePreviewInLightbox,RegeneratePreviewAPI:r.Z.Foto.RegeneratePreview,library:i.Z.PERSONAL_SPACE,selectedSource:a.n0.LIGHTBOX}}function eW(){return{type:s.q.HandleRegeneratePreviewInLightbox,RegeneratePreviewAPI:r.Z.FotoTeam.RegeneratePreview,library:i.Z.TEAM_SPACE,selectedSource:a.n0.LIGHTBOX}}function eq(){return{type:s.q.HandleRegeneratePreview,selectedSource:a.n0.GRID_VIEW,clearupAction:(0,l.M$)()}}function eY(){return{type:s.q.HandleSetFavorite,selectedSource:a.n0.SELECTED_BAR,favorite:!0,clearupAction:(0,u.S$)(),udcEvent:a.Cm.CLICK_ADD_FAVORITE_FROM_RIGHT_CLICK_MENU}}function e$(){return{type:s.q.HandleSetFavorite,selectedSource:a.n0.SELECTED_BAR,favorite:!0,clearupAction:(0,u.S$)(),udcEvent:a.Cm.CLICK_ADD_FAVORITE_FROM_SELECTED_BAR}}function eK(){return{type:s.q.HandleSetFavorite,selectedSource:a.n0.SELECTED_BAR,favorite:!1,clearupAction:(0,u.S$)()}}function eX(){return{type:s.q.HandleSetFavorite,selectedSource:a.n0.GRID_VIEW,favorite:!0,clearupAction:(0,l.M$)(),udcEvent:a.Cm.CLICK_ADD_FAVORITE_FROM_STACK_GRID_VIEW}}function eQ(){return{type:s.q.HandleSetFavorite,selectedSource:a.n0.GRID_VIEW,favorite:!1,clearupAction:(0,l.M$)()}}function eJ(){return{type:s.q.HandleSetFavorite,selectedSource:a.n0.LIGHTBOX,favorite:!0,udcEvent:a.Cm.CLICK_ADD_FAVORITE_FROM_LIGHTBOX}}function e0(){return{type:s.q.HandleSetFavorite,selectedSource:a.n0.LIGHTBOX,favorite:!1}}},73029:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({LoadAdminSetting:"LOAD_ADMIN_SETTING",LoadTeamSetting:"LOAD_TEAM_SETTING",LoadUserSetting:"LOAD_USER_SETTING",LoadGuestSetting:"LOAD_GUEST_SETTING",LoadWizardInfo:"LOAD_WIZARD_INFO",SetSettingLoaded:"SET_SETTING_LOADED",UpdateAdminSettingStore:"UPDATE_ADMIN_SETTING_STORE",UpdateUserSettingStore:"UPDATE_USER_SETTING_STORE",UpdateTeamSettingStore:"UPDATE_TEAM_SETTING_STORE",UpdateWizardInfoStore:"UPDATE_WIZARD_INFO_STORE",InitTeamSettingStore:"INIT_TEAM_SETTING_STORE",SetCacheSize:"SET_CACHE_SIZE",SetFolderViewThumbnailSizeStore:"SET_FOLDER_VIEW_THUMBNAIL_SIZE_STORE",SetIsClearingConvertedFile:"SET_IS_CLEARING_CONVERTED_FILE"}),o=(0,r.Ky)({CalculateCacheSize:"CALCULATE_CACHE_SIZE",GetClearingConvertedFileStatus:"GET_CLEARING_CONVERTED_FILE_STATUS",LoadAllSetting:"LOAD_ALL_SETTING",LoadAdminSetting:"LOAD_ADMIN_SETTING",LoadAmeStatus:"LOAD_AME_STATUS",LoadFolderViewThumbnailSize:"LOAD_FOLDER_VIEW_THUMBNAIL_SIZE",LoadUserSetting:"LOAD_USER_SETTING",LoadSharingSetting:"LOAD_SHARING_SETTING",LoadGuestSetting:"LOAD_GUSET_SETTING",SetAdminSetting:"SET_ADMIN_SETTING",SetFolderViewThumbnailSize:"SET_FOLDER_VIEW_THUMBNAIL_SIZE",SetUserSetting:"SET_USER_SETTING",SetTeamSetting:"SET_TEAM_SETTING",SetFromSettingDialog:"SET_FROM_SETTING_DIALOG",SetWizardInfo:"SET_WIZARD_INFO",StopGetClearingConvertedFileStatus:"STOP_GET_CLEARING_CONVERTED_FILE_STATUS",ClearConvertedFile:"CLEAR_CONVERTED_FILE",EnableAutoGenerateThumbnail:"ENABLE_AUTO_GENERATE_THUMBNAIL"})},67145:function(e,t,n){"use strict";n.d(t,{MW:function(){return i},Yi:function(){return o},m5:function(){return a},ne:function(){return s}});var r=n(73029);function i(e){return{type:r.j.LoadTeamSetting,setting:e}}function o(e){return{type:r.j.LoadUserSetting,setting:e}}function a(e){return{type:r.j.LoadGuestSetting,setting:e}}function s(e){return{type:r.j.UpdateUserSettingStore,setting:e}}},46677:function(e,t,n){"use strict";n.d(t,{AU:function(){return o},Gk:function(){return m},K7:function(){return l},L7:function(){return u},OH:function(){return d},VR:function(){return s},b9:function(){return h},bp:function(){return c},hF:function(){return f},oP:function(){return p},pK:function(){return a}});var r=n(73029),i=function(e){return function(t){return{type:r.qA.SetFolderViewThumbnailSize,thumbnailSize:t,sessionStorage:e}}};function o(e){return{type:r.qA.LoadUserSetting,refreshAfterLoaded:e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:r.qA.LoadSharingSetting,reloadOnSuccess:e}}function s(e){var t=e.adminSettingDiff,n=e.isReload,i=e.teamSettingDiff,o=e.userSettingDiff;return{type:r.qA.SetFromSettingDialog,adminSettingDiff:t,isReload:n,teamSettingDiff:i,userSettingDiff:o}}function l(e){return{type:r.qA.SetAdminSetting,setting:e}}function u(e){return{type:r.qA.SetWizardInfo,setting:e}}function c(){return{type:r.qA.ClearConvertedFile}}function d(){return{type:r.qA.CalculateCacheSize}}function f(){return{type:r.qA.GetClearingConvertedFileStatus}}function p(){return{type:r.qA.StopGetClearingConvertedFileStatus}}function h(e){var t=e.hasHevcHandler,n=e.noHevcHandler,i=e.onComplete;return{type:r.qA.LoadAmeStatus,hasHevcHandler:t,noHevcHandler:n,onComplete:i}}function m(){return{type:r.qA.EnableAutoGenerateThumbnail}}window.sessionStorage,i(window.sessionStorage)},65829:function(e,t,n){"use strict";n.d(t,{j:function(){return i},qA:function(){return o}});var r=n(95853),i=(0,r.q$)({SetSimilarClustering:"SET_SIMILAR_CLUSTERING",ClearSimilarClusteringCount:"CLEAR_SIMILAR_CLUSTERING_COUNT",SetSimilarGroupInfo:"SET_SIMILAR_GROUP_INFO",UpdateSimilarCurrentPick:"UPDATE_SIMILAR_CURRENT_PICK",UpdateSimilarTopPick:"UPDATE_SIMILAR_TOP_PICK",ResetSimilar:"RESET_SIMILAR",ArrangeItemRow:"ARRANGE_ITEM_ROW",RemoveSimilarObject:"REMOVE_SIMILAR_OBJECT"}),o=(0,r.Ky)({GetSimilarClustering:"GET_SIMILAR_CLUSTERING",GetSimilarGroupInfo:"GET_SIMILAR_GROUP_INFO",GotoSimilarItem:"GOTO_SIMILAR_ITEM",LightboxSimilarClearUp:"LIGHTBOX_SIMILAR_CLEAR_UP",LightboxSimilarClearUpDone:"LIGHTBOX_SIMILAR_CLEAR_UP_DONE"})},88699:function(e,t,n){"use strict";n.d(t,{YR:function(){return i},eU:function(){return a},uX:function(){return o}});var r=n(65829);function i(e,t){return{type:r.j.SetSimilarGroupInfo,groupInfo:e,items:t}}function o(){return{type:r.j.ResetSimilar}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{width:0,height:0};return{type:r.j.ArrangeItemRow,rowItemCount:e,marginSpace:t,size:n}}},85672:function(e,t,n){"use strict";n.d(t,{$N:function(){return u},ER:function(){return l},F8:function(){return s},Io:function(){return o},UC:function(){return a},ht:function(){return c}});var r=n(88093),i=n(65829);function o(e){return{type:i.qA.GetSimilarGroupInfo,ItemAPI:r.Z.Foto.Browse.Item.get,groupInfo:e}}function a(e){return{type:i.qA.GetSimilarGroupInfo,ItemAPI:r.Z.FotoTeam.Browse.Item.get,groupInfo:e}}function s(e){return{type:i.qA.GotoSimilarItem,ItemAPI:r.Z.Foto.Browse.Item.get,UnitAPI:r.Z.Foto.Browse.Unit.get,itemId:e}}function l(e){return{type:i.qA.GotoSimilarItem,ItemAPI:r.Z.FotoTeam.Browse.Item.get,UnitAPI:r.Z.FotoTeam.Browse.Unit.get,itemId:e}}function u(){return{type:i.qA.LightboxSimilarClearUp,SimilarAPI:r.Z.Foto.Browse.Similar.get,goToSimilarItemAction:s}}function c(){return{type:i.qA.LightboxSimilarClearUp,SimilarAPI:r.Z.FotoTeam.Browse.Similar.get,goToSimilarItemAction:l}}},28081:function(e,t,n){"use strict";n.d(t,{mC:function(){return i},I:function(){return a},ck:function(){return s},Ek:function(){return o}});var r=(0,n(95853).q$)({AddTopToast:"Add_TOP_TOAST",ClearTopToast:"CLEAR_TOP_TOAST",SetHasSeenExternalConvertTopToast:"SET_HAS_SEEN_EXTERNAL_CONVERT_TOP_TOAST",DecreaseCountOfExternalConvertFlags:"DECREATE_COUNT_OF_EXTERNAL_CONVERT_FLAGS",IncreaseCountOfExternalConvertFlags:"INCREATE_COUNT_OF_EXTERNAL_CONVERT_FLAGS"});function i(e){return{type:r.AddTopToast,id:e}}function o(){return{type:r.ClearTopToast}}function a(e,t,n,i,o){return{type:r.DecreaseCountOfExternalConvertFlags,noPermissionLibrary:e,isVc1:t,isHevc:n,isMpeg1OrMpeg2:i,isVp9:o}}function s(e,t,n,i,o){return{type:r.IncreaseCountOfExternalConvertFlags,noPermissionLibrary:e,isVc1:t,isHevc:n,isMpeg1OrMpeg2:i,isVp9:o}}},95853:function(e,t,n){"use strict";function r(e,t){var n={},r=!0,i=!1,o=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;n[l]=t+e[l]}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}n.d(t,{Ky:function(){return o},q$:function(){return i}});var i=function(e){return r(e,"REDUCER_")},o=function(e){return r(e,"SAGA_")}},5137:function(e,t,n){"use strict";n.d(t,{t2:function(){return d}});var r=n(7409),i=n(99282),o=Object.freeze({Item:Object.freeze({copy:7,count:7,count_with_filter:7,delete:7,get:7,list:7,move:7,set:7,add_tag:7,remove_tag:7,get_tag:7,list_with_filter:7,list_basic_timeline_info:7,list_basic_timeline_info_with_filter:7,get_exif:7,list_face:7,set_favorite:7}),Similar:Object.freeze({get_status:1,ungroup:1,add_item:1,set_top_pick:1,get:1,remove_item:1}),SimilarItem:Object.freeze({list:2,list_with_filter:2,list_similar:2,get:2,count_with_filter:2,list_basic_timeline_info:2,list_basic_timeline_info_with_filter:2,list_similar_basic_timeline_info:2}),SimilarTimeline:Object.freeze({get:2,get_with_filter:2,get_similar:2,get_init_timeline:2}),GeneralTag:Object.freeze({count:2,create:2,get:2,list:2,suggest:2}),Geocoding:Object.freeze({count:1,get:1,list:1}),Person:Object.freeze({add_face:3,count:1,delete_face:1,get:1,get_migration_status:1,list:1,list_face:1,merge:2,separate:1,set:1,set_cover:1,show:1,suggest:3}),Concept:Object.freeze({count:2,get:2,list:2,set_cover:1,hide_item:1,set_visibility:2}),Timeline:Object.freeze({get:6,get_geocoding:6,get_geocoding_with_filter:6,get_with_filter:6,get_init_timeline:6}),RecentlyAdded:Object.freeze({get_timeline:6,list:6,count:6,list_basic_timeline_info:6}),Unit:Object.freeze({get:1,count:1})}),a=Object.freeze({File:Object.freeze({move:1,copy:1,delete:1})}),s=Object.freeze({Item:Object.freeze({upload:8,upload_check:8,upload_to_folder:8}),Face:Object.freeze({upload:1}),ConvertedFile:Object.freeze({list_convert_needed:3,set_broken:3,upload:3})}),l=Object.freeze({get:1,reindex:1}),u=Object.freeze({Search:Object.freeze({Filter:Object.freeze({list:4,list_in_similar:4}),Search:Object.freeze({get_search_timeline:7,suggest:7,list_item:7,count_item:7,get_geocoding:7,list_basic_timeline_info:7})}),Streaming:Object.freeze({streaming:2}),Thumbnail:Object.freeze({get:2}),Download:Object.freeze({download:2,convert:2,clear_cache:2,get_cache_status:2,calculate_cache_size:2}),RegeneratePreview:Object.freeze({set_regenerating:1,regenerate_preview_by_nas:1,list_regenerating:1,restore_from_regenerating:1})}),c=Object.freeze((0,i._)((0,r._)({},u),{Browse:Object.freeze((0,i._)((0,r._)({},o),{Folder:Object.freeze({copy:1,count:1,create:1,list:2,get:2,move:1,list_parents:1,delete:1,rename:1,set_order:1,set_cover:2})})),Sharing:Object.freeze({FolderBatchPermission:Object.freeze({update_all_by_member:1,update_by_member:1}),Passphrase:Object.freeze({get:1,get_permission:1,set_shared:1,update:1}),FolderPermission:Object.freeze({get_config:1,get_folder_link:1,set_config:1,update:1})}),BackgroundTask:Object.freeze((0,r._)({},a)),Upload:Object.freeze((0,r._)({},s)),Index:Object.freeze((0,r._)({},l))})),d=Object.freeze({Foto:Object.freeze((0,i._)((0,r._)({},u),{Setting:Object.freeze({Admin:Object.freeze({get:1,set:1}),User:Object.freeze({get:1,set:1}),TeamSpace:Object.freeze({list_permission:1,set:1,update_permission:1,get:1,set_enable:1}),Wizard:Object.freeze({get:1,set:1}),Guest:Object.freeze({get:1})}),UserInfo:Object.freeze({me:1,get:1}),Browse:Object.freeze((0,i._)((0,r._)({},o),{Folder:Object.freeze({copy:1,count:1,create:1,list:2,get:2,move:1,list_parents:1,delete:1,rename:1,set_order:1,set_cover:2}),Album:Object.freeze({get:4,count:3,delete:1,download:2,list:4,set_name:1,set_cover:1,set_order:1,set_album_list_order:2,get_album_list_order:2,get_album_list_display:3,set_album_list_display:3}),NormalAlbum:Object.freeze({add_item:1,copy:1,count:1,create:1,delete_item:1,get:1,list:2,set_unfreeze:1}),ConditionAlbum:Object.freeze({count:4,create:4,get:4,list:4,peek_item_count:4,set_condition:4,suggest:4}),Category:Object.freeze({get:4})})),Favorite:Object.freeze({list:1}),Sharing:Object.freeze({Misc:Object.freeze({list_shared_with_me_album:2,list_user_group:1}),Passphrase:Object.freeze({get:1,get_permission:1,get_photo_request_info:1,set_shared:1,update:1})}),BackgroundTask:Object.freeze((0,i._)((0,r._)({},a),{Info:Object.freeze({abort_task:1,get_error_detail:1,get_status:1,list_user_task:1,clear_completed_task:1})})),Upload:Object.freeze((0,i._)((0,r._)({},s),{PhotoRequestItem:Object.freeze({upload:1})})),PhotoRequest:Object.freeze({create:1,delete:1,get:1,list:1,update:1}),Development:Object.freeze({Admin:Object.freeze({update_concept_threshold:1,regenerate_concept_album:1})}),Udc:Object.freeze({send_event:1}),Index:Object.freeze((0,i._)((0,r._)({},l),{reindex_all_user:1}))})),FotoTeam:c})},88093:function(e,t,n){"use strict";var r=n(43830),i=n(52062),o=n(27412),a=n(41196),s=n(24460),l=n(55210),u=n(96904),c=n(5027),d=n(5137),f=n(26822);function p(e,t,n,r){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e();return(0,c.Z)({api:"SYNO.".concat(o,".").concat(t),method:n,version:r,params:i})}}function h(e){return"function"==typeof e?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p.apply(void 0,[e].concat((0,l._)(n)))}:"string"==typeof e?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p.apply(void 0,[function(){return e}].concat((0,l._)(n)))}:null}function m(e,t){var n={};return Object.entries(e).forEach(function(e){var r=(0,s._)(e,2),i=r[0],o=r[1],l={};Object.entries(o).forEach(function(e){var n=(0,s._)(e,2),r=n[0],o=n[1];(0,a._)(o,Object)?(l[r]={},Object.entries(o).forEach(function(e){var n=(0,s._)(e,2),o=n[0],a=n[1],u="".concat((0,f.Z)(o)),c="".concat(i,".").concat(r);l[r][u]=t(c,o,a)})):l[(0,f.Z)(r)]=t(i,r,o)}),n[i]=l}),n}function g(e,t){switch(e){case u.ZP.ALBUM_TYPE.PERSON:return t.Browse.Person;case u.ZP.ALBUM_TYPE.GEOCODING:return t.Browse.Geocoding;case u.ZP.ALBUM_TYPE.GENERAL_TAG:return t.Browse.GeneralTag;case u.ZP.ALBUM_TYPE.CONCEPT:return t.Browse.Concept;case u.ZP.ALBUM_TYPE.VIDEO:return t.Browse.Item;case u.ZP.ALBUM_TYPE.RECENTLY_ADDED:return t.Browse.RecentlyAdded;case u.ZP.ALBUM_TYPE.SIMILAR:return t.Browse.SimilarItem;case u.ZP.ALBUM_TYPE.FAVORITE:return t.Browse.Item;default:throw Error("no such type")}}var v=new(function(){function e(){(0,r._)(this,e),(0,o._)(this,"Foto",void 0),(0,o._)(this,"FotoTeam",void 0),this.applyAllAPITable()}return(0,i._)(e,[{key:"applyAllAPITable",value:function(){var e=this;Object.entries(d.t2).forEach(function(t){var n=(0,s._)(t,2),r=n[0],i=n[1];e[r]=m(i,h(r))})}},{key:"getTeamSpaceSmartAPI",value:function(e){return g(e,this.FotoTeam)}},{key:"getSmartAPI",value:function(e){return g(e,this.Foto)}}]),e}());t.Z=v},92383:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function o(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function s(e,t){return t&&("object"===a(t)||"function"==typeof t)?t:o(e)}function l(e,t,n){return t=r(t),s(e,i()?Reflect.construct(t,n||[],r(e).constructor):t.apply(e,n))}n.d(t,{Z:function(){return m}});var u=n(43830);function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw 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&&c(e,t)}function f(e,t,n){return(f=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function p(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||!p(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}var m=function(e){function t(e){var n,r=e.error;(0,u._)(this,t);var i="WebAPI Error ".concat(r.code);return(n=l(this,t,[i])).message=i,n.code=r.code,n.name="WebAPIError",n.errors=r.errors,Error.captureStackTrace&&Error.captureStackTrace(n,n.constructor),n}return d(t,e),t}(h(Error))},5027:function(e,t,n){"use strict";n.d(t,{Z:function(){return e_}});var r=n(7409),i=n(25835);function o(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return t}function a(e){for(var t,n,r,i=[],o=0,a=0;o<e.length;)if((t=e[o++])<128)i[a++]=String.fromCharCode(t);else if(t>191&&t<224)n=e[o++],i[a++]=String.fromCharCode((31&t)<<6|63&n);else if(t>239&&t<365){var s=((7&t)<<18|(63&(n=e[o++]))<<12|(63&(r=e[o++]))<<6|63&e[o++])-65536;i[a++]=String.fromCharCode(55296+(s>>10)),i[a++]=String.fromCharCode(56320+(1023&s))}else n=e[o++],r=e[o++],i[a++]=String.fromCharCode((15&t)<<12|(63&n)<<6|63&r);return i.join("")}var s={packUint64:function(e){var t=e/4294967296,n=e%4294967296;return new Uint8Array([(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t,(4278190080&n)>>>24,(16711680&n)>>>16,(65280&n)>>>8,255&n])},unpackUint64:function(e){return e instanceof ArrayBuffer&&(e=new Uint8Array(e)),((((((256*e[0]+e[1])*256+e[2])*256+e[3])*256+e[4])*256+e[5])*256+e[6])*256+e[7]},mergeArrayBufferList:function(e){if(0===e.length)return new Uint8Array([]).buffer;var t=0;e.forEach(function(e){t+=e.byteLength});var n=new Uint8Array(t),r=0;return e.forEach(function(e){n.set(new Uint8Array(e),r),r+=e.byteLength}),n.buffer},textEncode:function(e){return window.TextEncoder?new TextEncoder().encode(e).buffer:new Uint8Array(o(e)).buffer},textDecode:function(e){return window.TextDecoder?new TextDecoder().decode(e):a(new Uint8Array(e))}},l=null,u=null;function c(e){if(null==e)throw"external synowebapi inst is null or undefined";d.call(this,e)}function d(e){if(e){if(l=e,e.env.setWebRTC)f(this,e);else if(e.env.setRequestAdapter)p(this,e);else throw"cannot find synowebapi webrtc binding interface"}}function f(e,t){t.env.setWebRTC(e)}function p(e,t){t.env.setRequestAdapter(function(n){let r=t.adapters.xhr,i=null;return!0===e.Enable&&(i=e.GetDefaultChannel(!1)),i&&!0===i.isDataChannelOpen()&&(n.xhr=i.newTaskRequest()),r(n,i)}),t.env.setDownloadAdapter(function(n){let r=t.adapters.iframe;return!0===e.Enable&&!0===e.SupportDownload?new Promise((t,i)=>{e.DownloadFile(n,(e,n)=>e?i(e):t(n),()=>{t(r(n))})}):r(n)})}function h(){if(null!==u)return u;if(null==l)throw"synowebapi is null or undefined";return(u=l.create()).env.setCredential(l.env.getCredential()),u.env.setSynoToken(l.env.getSynoToken()),u}var m=Object.freeze({MESSAGE_TYPE_BYTE:0,MESSAGE_TYPE_STRING:1,MESSAGE_TYPE_EMPTY:99,MESSAGE_TYPE_HEADERS:100,MESSAGE_TYPE_STATUS:101,MESSAGE_TYPE_STATUSTEXT:102,MESSAGE_TYPE_UPLOAD_PROGRESS:248,MESSAGE_TYPE_ERROR:249,MESSAGE_TYPE_TERMINATE:250,MESSAGE_TYPE_PAUSE_STOP:251,MESSAGE_TYPE_PAUSE_CONTINUE:252,MESSAGE_TYPE_EOF:253,MESSAGE_TYPE_EOU:254,MESSAGE_TYPE_UNDEFINED:255}),g=Object.freeze({ERR_TYPE_SUCCESS:0,ERR_TYPE_UNMARSHAL:1,ERR_TYPE_INVALID_HELLO:2,ERR_TYPE_WEBAPI:252,ERR_TYPE_CONNECTION:253,ERR_TYPE_TIMEOUT:254,ERR_TYPE_UNKNWON:255}),v=function(){return new Promise(function(e,t){var n="Unknown";function r(t){e({isPrivate:t,browserName:n})}function i(){var e=navigator.userAgent;return e.match(/Chrome/)?void 0!==navigator.brave?"Brave":e.match(/Edg/)?"Edge":e.match(/OPR/)?"Opera":"Chrome":"Chromium"}function o(e){return e===eval.toString().length}function a(){var e=navigator.vendor;return void 0!==e&&0===e.indexOf("Apple")&&o(37)}function s(){var e=navigator.vendor;return void 0!==e&&0===e.indexOf("Google")&&o(33)}function l(){return void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&o(37)}function u(){return void 0!==navigator.msSaveBlob&&o(39)}function c(){var e=String(Math.random());try{window.indexedDB.open(e,1).onupgradeneeded=function(t){var n,i,o=null===(n=t.target)||void 0===n?void 0:n.result;try{o.createObjectStore("test",{autoIncrement:!0}).put(new Blob),r(!1)}catch(e){var a=e;if(e instanceof Error&&(a=null!==(i=e.message)&&void 0!==i?i:e),"string"!=typeof a)return r(!1);var s=/BlobURLs are not yet supported/.test(a);return r(s)}finally{o.close(),window.indexedDB.deleteDatabase(e)}}}catch(e){return r(!1)}}function d(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return r(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return r(!0)}return r(!1)}function f(){void 0!==navigator.maxTouchPoints?c():d()}function p(){var e=window;return void 0!==e.performance&&void 0!==e.performance.memory&&void 0!==e.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824}function h(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(e,t){r(Math.round(t/1048576)<2*Math.round(p()/1048576))},function(e){t(Error("detectIncognito somehow failed to query storage quota: "+e.message))})}function m(){(0,window.webkitRequestFileSystem)(0,1,function(){r(!1)},function(){r(!0)})}function g(){void 0!==self.Promise&&void 0!==self.Promise.allSettled?h():m()}function v(){r(void 0===navigator.serviceWorker)}function y(){r(void 0===window.indexedDB)}!function(){a()?(n="Safari",f()):s()?(n=i(),g()):l()?(n="Firefox",v()):u()?(n="Internet Explorer",y()):t(Error("detectIncognito cannot determine the browser"))}()})};function y(){let e=window.navigator.userAgent.toLowerCase();return!1===["chrome","chromium","crmo","crios","edg","ie","fxios","opera","opios","opr","droid","omniweb","arora","tizenoka","oculus","samsung","sailfish","huawei","kindle","lunascape","maxthon","netfront","jasmine","blazer","avant","slim","idu","qq","2345","metasr","lb","qi","obrowser","360","flock","rockmelt","midori","epiphany","silk","skyfire","ovibrowser","bolt","iron","vivaldi","iridium","phantomjs","bowser","quark","qupzilla","falkon","rekonq","puffin","brave","whale","qqbrowserlite","qq","duckduckgo","weibo","uc","qbcore","micromessenger","konqueror","trident","yabrowser","avast","avg","focus","opt","coc_coc","dolfin","coast","miuibrowser","comodo_dragon","electron","tesla","linkedin","fb","line","instagram","gsa"].some(t=>e.includes(t))&&e.includes("safari")}async function b(e){var t=await navigator.serviceWorker.getRegistrations();if(0===t.length)return null;let n=e.substr(0,e.lastIndexOf("/")+1),r=t.filter(e=>{let t=new URL(e.scope,window.location.origin).pathname,r=t.indexOf(n);return!(0>r)&&0>t.substr(r+n.length).indexOf("/")});return(1<r.length&&D(`warning: multiple matched sw of ${n}`),0<r.length)?r[0]:null}let _={enable:!1,pauseState:!1},E={..._},w={..._};function S(e){C(e,E)}function T(){return E.enable}function O(e){C(e,w)}function I(e){w.enable=e}function A(){return w.enable}function C(e,t){Object.defineProperty(e,"Enable",{set:e=>{if(null!==P("id")){t.enable=!1;return}t.enable=e,t.pauseState=e},get:()=>t.enable}),e.Pause=()=>{t.pauseState=t.enable,t.enable=!1},e.Resume=()=>{t.enable=t.pauseState}}var x=null;function D(){null===x&&R(),x.apply(null,arguments)}function R(){x=window.SYNO&&window.SYNO.Debug?window.SYNO.Debug:L()?window.console.log:()=>{}}function L(){for(let e of new URLSearchParams(window.location.search).keys())if("jsDebug"===e)return!0;return!1}function k(e){var t=document.createElement("iframe");if(t.setAttribute("src",e),!1===t.src.startsWith(window.location.origin))throw`cannot send a cross domain request via webrtc: ${e}`;return t.src.replace(window.location.origin,"")}function M(e,t){var n=RegExp("(?:(?:^|.*;\\s*)"+e+"\\s*\\=\\s*([^;]*).*$)|^.*$"),r=t.replace(n,"$1");return""===r?null:decodeURIComponent(r)}function P(e){return M(e,window.document.cookie)}let N=new Set(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);function F(e){let t={};return e.split("\n").forEach(e=>{let n=e.indexOf(":");if(n<0)return;let r=e.substr(0,n).trim(),i=e.substr(n+1).trim();if(r){if(t[r]){if(N.has(r))return;"set-cookie"===r?t["set-cookie"].push(i):t[r]+=", "+i}else"set-cookie"===r?t["set-cookie"]=[i]:t[r]=i}}),t}class B{constructor(e,t,n,r,i){if(null==e)throw"clientId is null or undefined";if(null==t)throw"reqId is null or undefined";for(let[i,o]of(this.clientId=e,this.reqId=t,this.url=n,this.headers=new Map,r.entries()))this.headers.set(i,o);this.body=void 0===i?null:i}}class U extends B{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,o,a),this.redirected=!1,this.status=o,this.statusText=a}}class H extends EventTarget{constructor(){super(),this.resetLoadVars()}resetLoadVars(){this._loaded=0,this._total=0}setTotalSize(e){this._total=e}getTotalSize(){return this._total}updateProgress(){this.dispatchEvent(this.getProgressEvent("progress"))}getProgressEvent(e){return new ProgressEvent(e,{lengthComputable:0<this._total,loaded:this._loaded,total:this._total})}}class j extends H{constructor(){super(),this.initEvents()}initEvents(){this.addEventListener("loadstart",e=>{null!=this.onloadstart&&this.onloadstart(e)}),this.addEventListener("progress",e=>{null!=this.onprogress&&this.onprogress(e)}),this.addEventListener("abort",e=>{null!=this.onabort&&this.onabort(e)}),this.addEventListener("error",e=>{null!=this.onerror&&this.onerror(e)}),this.addEventListener("load",e=>{null!=this.onload&&this.onload(e)}),this.addEventListener("timeout",e=>{null!=this.ontimeout&&this.ontimeout(e)}),this.addEventListener("loadend",e=>{null!=this.onloadend&&this.onloadend(e)})}}var V=null;let z=6e4;class Z extends H{static XHR_STATE_UNSENT=0;static XHR_STATE_OPENED=1;static XHR_STATE_HEADERS_RECEIVED=2;static XHR_STATE_LOADING=3;static XHR_STATE_DONE=4;static BLOB_CHUNK_SIZE=65534;constructor(e){super(),this.webrtc=e,this.taskId=e.taskManager.newTaskId(),this.resetVars(),this.initEvents(),this.upload=new j}resetVars(){this.timeout=0,this.timeoutId=0,this._url="",this._method="POST",this._redirect=!1,this._statusCode=0,this._statusText="",this._data=null,this._response=null,this._responseText=null,this._responseType="",this._reqHeaders={},this._reqHeadersSet=new Set,this._reqContentType="",this._resHeaders={},this._state=Z.XHR_STATE_UNSENT,this._ignoreSizeCheck=!1,this._isPause=!1,this.resetLoadVars()}setTaskTimeout(e){null==e||0>e||(this.timeout=e)}startTimeout(){0>=this.timeout||(this.stopTimeout(),this.timeoutId=setTimeout(()=>{this._onTimeout()},this.timeout))}stopTimeout(){0!==this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=0}setStatusCode(e){this.stopTimeout(),this._statusCode=parseInt(e),this.changeState(Z.XHR_STATE_HEADERS_RECEIVED)}setStatusText(e){this._statusText=e}setResponseHeaders(e){"string"==typeof e&&(e=JSON.parse(e));var t={};for(let n of Object.entries(e))t[n[0].toLowerCase()]=n[1];this._resHeaders=t,this._handleContentLength(),this._handleSetCookies(),this._onReceiveHeaders()}updateUploadProgress(e){this.upload._loaded+=e,this.upload.updateProgress(),this.upload._total===this.upload._loaded&&this.upload.dispatchEvent(this.upload.getProgressEvent("load"))}_handleContentLength(){let e=this._resHeaders["content-length"];void 0!==e&&(this.setTotalSize(parseInt(e)),this.setIgnoreSizeCheck(!1))}_handleSetCookies(){let e=this._resHeaders["set-cookie"];void 0!==e&&e.forEach(e=>{if(e.includes("HttpOnly")){if(e.includes("id=")){var t=new Date;null!==V&&z>t-V||(V=t,h().request({api:"SYNO.Core.Desktop.Timeout",method:"reset",version:1}))}else D("cannot set-cookie with HttpOnly:",e)}else document.cookie=e})}changeState(e){if(Z.XHR_STATE_UNSENT>e||Z.XHR_STATE_DONE<e)throw"Invalid task request state";this._state!==e&&(this._state=e,this.dispatchEvent(new Event("readystatechange")),Z.XHR_STATE_LOADING===e&&this.dispatchEvent(this.getProgressEvent("loadstart")))}close(){Z.XHR_STATE_UNSENT!==this._state&&Z.XHR_STATE_DONE!==this._state&&(this.dispatchEvent(this.getProgressEvent("loadend")),this.upload.dispatchEvent(this.upload.getProgressEvent("loadend"))),this.stopTimeout(),this.webrtc.taskManager.removeTaskRequest(this.taskId),this.changeState(Z.XHR_STATE_DONE)}setIgnoreSizeCheck(e){this._ignoreSizeCheck=e}_onReceiveHeaders(){null!=this.onReceiveHeaders&&this.onReceiveHeaders()}_onMessage(e,t){if(null!=this.onMessage&&m.MESSAGE_TYPE_EOF!==t&&this.onMessage(e,t),!1===this._ignoreSizeCheck&&0<this._total&&this._total<this._loaded){this._onError("unexpected amount of data");return}m.MESSAGE_TYPE_EOF!==t&&("none"===this.responseType?this._data=null:"blob"===this.responseType?(this._data=null==this._data?[]:this._data,this._data.push(new Blob([e]))):null==this._data?this._data=e:this._data=s.mergeArrayBufferList([this._data,e]),"arraybuffer"===this.responseType&&Z.BLOB_CHUNK_SIZE<this._data.byteLength&&(D("Response data are truncated."),this._data=e)),(0<this._total&&this._total===this._loaded||m.MESSAGE_TYPE_EOF===t)&&(this.dispatchEvent(this.getProgressEvent("load")),this.close())}_onChunk(e,t){this.changeState(Z.XHR_STATE_LOADING),this._loaded+=e,null!=this.onChunk&&this.onChunk(e,t)}_onError(e){var t=new ErrorEvent("error",{error:"string"==typeof e?Error(e):e});this.dispatchEvent(this.getProgressEvent("error")),this.upload.dispatchEvent(this.upload.getProgressEvent("error")),this.close(),null!=this.onError&&this.onError(t)}_onTimeout(){this.dispatchEvent(this.getProgressEvent("timeout")),this.upload.dispatchEvent(this.upload.getProgressEvent("timeout")),null!=this.onTimeout&&this.onTimeout()}pause(){!1!==this._pauseCheck(!1)&&(this.webrtc.dcSendPause(this.taskId),this._isPause=!0)}resume(){!1!==this._pauseCheck(!0)&&(this.webrtc.dcSendResume(this.taskId),this._isPause=!1)}_pauseCheck(e){return Z.XHR_STATE_LOADING===this._state&&e===this._isPause}get status(){return this._statusCode}get statusText(){return this._statusText}set responseType(e){let t=new Set(["arraybuffer","blob","document","json","text"]);var n=e.toLowerCase();t.has(n)?this._responseType=n:this._responseType=""}get responseType(){return this._responseType}get responseText(){return null===this._data?"":(null===this._responseText&&(this._data instanceof ArrayBuffer?this._responseText=s.textDecode(this._data):"string"==typeof this._data?this._responseText=this._data:D("fail to decode responseText: unknown type")),this._responseText)}get response(){if(null===this._data)return""===this.responseType||"text"===this.responseType?"":null;if(null===this._response)try{switch(this.responseType){case"":case"text":this._response=this.responseText;break;case"arraybuffer":case"blob":"string"==typeof this._data?this._response=s.textEncode(this._data):this._response=this._data,"blob"===this.responseType&&(this._response=new Blob(this._response instanceof Array?this._response:[this._response]));break;case"json":this._response=JSON.parse(this.responseText);break;case"document":this._response=new DOMParser().parseFromString(this.responseText,"text/xml");break;default:this._response=void 0}}catch(e){return D("fail to handle response:",e),null}return this._response}get responseXML(){let e=this._resHeaders["content-type"];var t="text/xml";null!=e&&e.includes("application/xml")&&(t="application/xml");var n=new DOMParser().parseFromString(this.responseText,t);return n.querySelector("parsererror")?null:n}get readyState(){return this._state}open(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Z.XHR_STATE_UNSENT!==this._state&&this.abort(),(null!=r||null!=i)&&D("user or password param is not supported by TaskRequest"),this._method=e,this._url=t,this._redirect=o,this.changeState(Z.XHR_STATE_OPENED)}async send(e){if(Z.XHR_STATE_OPENED!==this._state)throw"The object's state must be OPENED.";var t=this.taskId,n=await this.webrtc.getChannelByBody(e),r={pathUrl:k(this._url),httpMethod:this._method,headers:this._reqHeaders,upload:this._isUploadRequest(e),bodySize:this._getBodySize(e),protocolVersion:2,redirect:this._redirect};return this.startTimeout(),await n.dcSend(JSON.stringify(r),t),{taskId:t,channel:n}}_isUploadRequest(e){return e instanceof FormData||this._reqContentType.toLowerCase().includes("multipart")}_getBodySize(e){if(this._reqContentType.toLowerCase().includes("multipart")){if(e instanceof ArrayBuffer)return e.byteLength;if(ArrayBuffer.isView(e))return e.buffer.byteLength;if(e instanceof Blob)return e.size}return 0}abort(){Z.XHR_STATE_UNSENT!==this._state&&Z.XHR_STATE_DONE!==this._state&&(this.dispatchEvent(new Event("abort")),this.upload.dispatchEvent(new Event("abort")),this.webrtc.dcTerminate(this.taskId),this.close(),this.taskId=this.webrtc.taskManager.newTaskId(),this.webrtc.taskManager.addTaskRequest(this),this.resetVars())}getAllResponseHeaders(){var e="";for(let[t,n]of Object.entries(this._resHeaders))"set-cookie"!==t&&n.forEach(n=>{e+=t+": "+n+"\r\n"});return e}getResponseHeader(e){if("set-cookie"===(e=e.toLowerCase()))throw'Refused to get unsafe header "set-cookie"';var t=this._resHeaders[e];return null==t?null:t[0]}_getResponseHeadersObj(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Headers;for(let[n,r]of Object.entries(this._resHeaders))(!0!==e||"set-cookie"!==n)&&r.forEach(e=>{t.append(n,e)});return t}setRequestHeaders(e){let t=null;for(let[n,r]of(Headers&&e instanceof Headers||Map&&e instanceof Map?t=e.entries():t=Object.entries(e),t))this.setRequestHeader(n,r)}setRequestHeader(e,t){var n=e.toLowerCase();!1===this._reqHeadersSet.has(n)&&(this._reqHeaders[e]=String(t),this._reqHeadersSet.add(n),"content-type"===n&&(this._reqContentType=String(t)))}initEvents(){this.addEventListener("abort",e=>{null!=this.onabort&&this.onabort(e)}),this.addEventListener("error",e=>{null!=this.onerror&&this.onerror(e)}),this.addEventListener("load",e=>{null!=this.onload&&this.onload(e)}),this.addEventListener("loadstart",e=>{null!=this.onloadstart&&this.onloadstart(e)}),this.addEventListener("progress",e=>{null!=this.onprogress&&this.onprogress(e)}),this.addEventListener("timeout",e=>{null!=this.ontimeout&&this.ontimeout(e)}),this.addEventListener("loadend",e=>{null!=this.onloadend&&this.onloadend(e)}),this.addEventListener("readystatechange",e=>{null!=this.onreadystatechange&&this.onreadystatechange(e)})}}class G extends Z{constructor(e){super(e)}async send(e){var{taskId:t,channel:n}=await super.send(e);if(this.upload.resetLoadVars(),this.upload.dispatchEvent(this.upload.getProgressEvent("loadstart")),null==e)await n.dcSend(e,t);else if("string"==typeof e)this.upload._total=s.textEncode(e).byteLength,await n.dcSend(e,t);else if(e instanceof URLSearchParams){var r=e.toString();this.upload._total=s.textEncode(r).byteLength,await n.dcSend(r,t)}else if(e instanceof ArrayBuffer)this.upload._total=e.byteLength,await this._sendBlob(new Blob([e]),n,t);else if(ArrayBuffer.isView(e)){var i=e.buffer;this.upload._total=i.byteLength,await this._sendBlob(new Blob([i]),n,t)}else e instanceof Blob?(this.upload._total=e.size,await this._sendBlob(e,n,t)):e instanceof FormData?await this._sendFormData(e,n,t):D("fail to send data with unknown data");!0===this._isUploadRequest(e)&&n.dcSendEOU(t)}async _sendFormData(e,t,n){var r={},i={},o={};for(let t of e.entries()){let e=t[0],n=t[1];if(n instanceof Blob){let t=null==n.name?"blob":n.name;i[e]={name:t,blob:n},o[e]={name:t,size:n.size}}else"string"==typeof n?r[e]=n:D("Invalid form data:",e)}var a=0,l=JSON.stringify(r),u=JSON.stringify(o);for(let e of(a=s.textEncode(l).byteLength+s.textEncode(u).byteLength,Object.entries(i)))a+=s.textEncode(e[0]).byteLength+s.textEncode(e[1].name).byteLength+e[1].blob.size;if(this.upload._total=a,await t.dcSend(l,n)&&await t.dcSend(u,n)){for(let e of Object.entries(i))if(!await t.dcSend(e[0],n)||!await t.dcSend(e[1].name,n)||!await this._sendBlob(e[1].blob,t,n))return}}async _sendBlob(e,t,n){let r=Z.BLOB_CHUNK_SIZE;var i=e.size,o=Math.floor(i/r),a=i%r,s=null,l=null;for(let i=1;i<=o;i++)if(s=e.slice((i-1)*r,i*r),l=await s.arrayBuffer(),!await t.dcSend(l,n))return!1;return s=e.slice(o*r,o*r+a),l=await s.arrayBuffer(),!!await t.dcSend(l,n)&&(t.dcSendEOF(n),!0)}}class W{static SW_LAUNCHER="/cacheLauncher.html";static IFRAME_REMOVE_DELAY=3e3;static CACHE_BUSTING_MAX=9999;static REPORT_TRIGGER_PATH="scripts/synowebrtc/WebrtcCacher/ReportStatistics";constructor(){let e=Math.floor(Math.random()*W.CACHE_BUSTING_MAX);this.swLauncher=null,this.swLauncherUrl=W.SW_LAUNCHER+"?v="+e,this.swVersion=null,this.disableCache=!1,this.context=null,this.webrtcChannel=null,this.isSwReportEventRegistered=!1,this.updateServiceWorker()}async updateServiceWorker(){if(!1===this.isSupport())return;let e=await b(this.swLauncherUrl);null!=e&&(navigator.serviceWorker.addEventListener("controllerchange",async e=>{D("[webrtc cache] update cache service worker");let t=this.webrtcChannel;await this.reset(),null!=t&&await this.init(t)}),e.update())}async unregisterServiceWorker(){let e=await b(this.swLauncherUrl);null!=e&&(await this.flushCache(),await e.unregister(),D("[webrtc cache] unregister service worker"))}async flushCache(){!1!==this.isSupport()&&null!=await b(this.swLauncherUrl)&&await this.postToServiceWorker({flushCache:!0})}isSupport(){return!(!0===this.disableCache||y())&&!!(isSecureContext&&MessageChannel&&navigator.serviceWorker&&Headers&&Request&&Response&&Cache&&IDBFactory)}async isSwInstalled(){return!1!==this.isSupport()&&null!=await b(this.swLauncherUrl)}async reset(){this.swLauncher&&(await this.postToServiceWorker({unbind:!0}),this.removeIframe(this.swLauncher),this.swLauncher=null,this.context=null,this.webrtcChannel=null)}async init(e,t){if(null==e){D("[webrtc] webrtcInst is null or undefined");return}if(!1===this.isSupport()){D("[webrtc] not support cache");return}this.swLauncher&&(D("[webrtc] cache has been inited"),await this.reset()),this.webrtcChannel=e,this.loadSwLauncher(t),this.connectToServiceWorker()}connectToServiceWorker(){this.context={channel:new MessageChannel},this.listenServiceWorker(this.context),this.sendContextToServiceWorker(this.context)}listenServiceWorker(e){window.addEventListener("beforeunload",async e=>{await this.postToServiceWorker({unbind:!0}),D("[webrtc cache] window unbinding")});let t=e.channel.port1;t.onmessage=async e=>{if(e.data.bindRequest){let{launcherClientId:t,version:n}=e.data.bindRequest;null===this.swVersion||n.split(".")[0]===this.swVersion.split(".")[0]?(await this.postToServiceWorker({bindAcceptV2:{launcherClientId:t,appName:window._S?window._S("standaloneAppName"):""}}),this.swVersion=n,D("[webrtc cache] window binding")):await this.postToServiceWorker({bindReject:t})}else if(e.data.fetchRequest){let n=e.data.fetchRequest,r={clientId:n.clientId,reqId:n.reqId};if(!0===T()&&!0===A())t.postMessage({fetchAccept:r});else{t.postMessage({fetchReject:r});return}r.respInfo=null;try{r.respInfo=await this.webrtcFetch(n)}catch(e){D("[webrtc] cache fetch error",e)}t.postMessage({fetchDone:r})}else D("[webrtc] unknown cache message channel command")}}async webrtcFetch(e){var t,n;let r=new Promise((e,r)=>{t=e,n=r}),i=this.webrtcChannel.newTaskRequest();return i.setRequestHeaders(e.headers),i.responseType="blob",i.onload=n=>{let r=new U(e.clientId,e.reqId,e.url,i._getResponseHeadersObj(),i.response,i.status,i.statusText);t(r)},i.onError=e=>{n(e)},i.open(e.method,e.url,!0,null,null,"follow"===e.redirect),i.send(e.body),r}async postToServiceWorker(e){let t=navigator.serviceWorker.controller;null!=t?t.postMessage(e):D("cache sw is not active")}sendContextToServiceWorker(e){let t=[null,"*",[e.channel.port2]];this.swLauncher.loaded?this.swLauncher.postMessage(...t):this.swLauncher.addEventListener("load",()=>{this.swLauncher.postMessage(...t)},{once:!0})}loadSwLauncher(e){if(null!==this.swLauncher)return;let t=new XMLHttpRequest;t.open("HEAD",this.swLauncherUrl),t.onload=()=>{200!==t.status&&this.handleSwLauncherFailure(e)},t.onerror=()=>{this.handleSwLauncherFailure(e)},t.send(),this.swLauncher=this.makeIframe(this.swLauncherUrl)}handleSwLauncherFailure(e){this.disableCache=!0,e&&e(`cannot get ${W.SW_LAUNCHER}`)}makeIframe(e){if(!e)throw Error("src is undefined");let t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="WebrtcCacher",t.isIframe=!0,t.postMessage=function(){t.contentWindow.postMessage(...arguments)},t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}removeIframe(e){null!==e&&setTimeout(()=>{document.body.removeChild(e)},W.IFRAME_REMOVE_DELAY)}registerSwReportStatisticsEvent(){!1===this.isSwReportEventRegistered&&(window.addEventListener("beforeunload",async e=>{fetch(new URL(W.REPORT_TRIGGER_PATH,window.location.origin),{keepalive:!0})}),this.isSwReportEventRegistered=!0)}}var q=new W,Y=1;function $(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}class K extends EventTarget{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(super(),this.hasError=!1,this.ignoreError=!1,this.wsCmdTable=new Map,this.signalAddr="",this.sharing=e,this.helloInfo="",this.ws=null,this.statistics=new X,""===t)this.signalId=Y++,this.signalSessionIdBase=$(32);else{let e=t.split("@");this.signalId=parseInt(e[1]),this.signalSessionIdBase=e[0]}}start(){h().request({api:this.sharing?"SYNO.WebRTC.Proxy.Sharing":"SYNO.WebRTC.Proxy",method:"signal",version:1,callback:(e,t)=>{if(!e||null==t.host||null==t.port){this._onWsError("fail to get signal server info");return}this.signalAddr=t.host+":"+t.port,this.ws=new WebSocket("wss://"+this.signalAddr),this.ws.onopen=e=>{this.onWsOpen(e)},this.ws.onclose=e=>{this.onWsClose(e)},this.ws.onmessage=e=>{this.onWsMessage(e)},this.ws.onerror=e=>{this._onWsError(e)}}})}wsSend(e){if(null===this.ws){D("websocket is null");return}this.ws.send(e)}async onWsOpen(e){let{isPrivate:t}=await v();this.helloInfo={version:1,isMobile:!!window._S&&window._S("isMobile"),app:window._S?window._S("standaloneAppName"):"",referer:window.location.href,isIncognito:t,isCacheSwInstalled:await q.isSwInstalled()};let n=this.makeMessage("browser_hello",this.helloInfo);this.wsSend(n),this.dispatchEvent(new Event("open"))}onWsClose(e){this.dispatchEvent(new Event("close"))}onWsMessage(e){try{let t=JSON.parse(e.data),n=t.cmd,r=t.param;if(null==n){D("null command");return}let i=this.wsCmdTable.get(n);if(null==i){D("unknown command");return}i(r)}catch(e){this._onWsError(e)}}_onWsError(e){!0!==this.ignoreError&&(this.hasError=!0,D("signal server error:",e),this.dispatchEvent(new Event("error")))}setIgnoreError(e){this.ignoreError=e}registerWsCmd(e,t){this.wsCmdTable.set(e,t)}sendIceCandidate(e){if(null!==e.candidate&&null!=e.candidate.candidate){let t=this.makeMessage("ice_exchange",JSON.stringify(e.candidate.candidate));this.wsSend(t)}}sendAnswerDesc(e){let t=this.makeMessage("browser_answer",JSON.stringify(e));this.wsSend(t)}sendWebrtcStatus(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(null===this.helloInfo||void 0===this.helloInfo||null===this.signalAddr||void 0===this.signalAddr)return;let n={type:"status",data:{...this.helloInfo,error:t}};this.sendCorsResult(n)}sendStatistics(e){if(null===this.statistics||void 0===this.statistics||null===this.signalAddr||void 0===this.signalAddr)return;e instanceof X&&(e=[e]),Array.isArray(e)&&e.forEach(e=>{this.statistics.merge(e)});let t={type:"statistics",data:this.statistics.toPlainObj()};this.sendCorsResult(t),this.statistics=null}sendCorsResult(e){fetch&&fetch("https://"+this.signalAddr,{mode:"no-cors",method:"POST",body:JSON.stringify(e),keepalive:!0}).catch(e=>{D("fail to upload result",e)})}makeMessage(e,t){if(!e){D("cmd or sessionId is null or empty");return}return t||(t=null),JSON.stringify({cmd:e,sid:this.getSignalSessionID(),param:t})}getSignalSessionID(){return this.signalSessionIdBase+"@"+this.signalId}getSignalAddr(){return this.signalAddr}close(){null!=this.ws&&this.ws.close()}}class X{constructor(e){if(null!=e){this.startTime=e.startTime,this.txStatsText=e.txStatsText,this.rxStatsText=e.rxStatsText,this.txStatsBinary=e.txStatsBinary,this.rxStatsBinary=e.rxStatsBinary;return}this.startTime=new Date,this.txStatsText=0,this.rxStatsText=0,this.txStatsBinary=0,this.rxStatsBinary=0}addTxText(e){this.txStatsText+=e}addRxText(e){this.rxStatsText+=e}addTxBinary(e){this.txStatsBinary+=e}addRxBinary(e){this.rxStatsBinary+=e}merge(e){this.txStatsText+=e.txStatsText,this.rxStatsText+=e.rxStatsText,this.txStatsBinary+=e.txStatsBinary,this.rxStatsBinary+=e.rxStatsBinary}toPlainObj(){return{pcUploadText:this.txStatsText,pcDownloadText:this.rxStatsText,pcUploadBinary:this.txStatsBinary,pcDownloadBinary:this.rxStatsBinary,duration:new Date-this.startTime}}}var Q=K;class J{constructor(e){this.taskIdCnt=1,this.taskRequestTable=new Map}newTaskId(){return this.taskIdCnt++}addTaskRequest(e){if(!(e instanceof Z)){D("wrong type of taskRequest");return}this.taskRequestTable.set(e.taskId,e)}removeTaskRequest(e){this.taskRequestTable.delete(e)}getTaskRequest(e){return this.taskRequestTable.get(e)||null}getTaskRequestTable(){return this.taskRequestTable}}var ee=J;class et{constructor(){this.semaphoreTable=new Map}getSempaphore(e){return void 0===this.semaphoreTable.get(e)&&this.initSemaphoreCls(e),new(this.semaphoreTable.get(e))}initSemaphoreCls(e){var t=function(){let e=Promise.resolve();return class{constructor(){let t,n=e,r=new Promise(e=>{t=e});e=e.then(()=>r),this.start=function(){return n},this.end=function(){t()}}}}();this.semaphoreTable.set(e,t)}}var en=et;class er{static CONNECTION_CREATE_TIMEOUT=3e4;constructor(){this.webrtcTable=new Map,this.eventTable=new Map,this.failureTable=new Map,this.giveupTable=new Set,this.registerWindowUnloadEvent()}registerWindowUnloadEvent(){window.addEventListener("beforeunload",()=>{for(let[e,t]of this.webrtcTable)null!=t&&t.close()})}get(e){return this.webrtcTable.get(e)}_getEventTarget(e){var t=this.eventTable.get(e);return null==t?(D(`[webrtc] cannot find ${e} in the event table`),null):t}set(e,t){this.get(e)&&this.remove(e),this.webrtcTable.set(e,t),this.eventTable.set(e,new EventTarget),this.failureTable.set(e,new ei),this._initEvents(e,t)}_initEvents(e,t){var n=setTimeout(()=>{D(`[webrtc] ${e} connection timeout`),this.failureTable.get(e).genNextConnectionFailure(),this._dispatchEventCallback(e,"timeout")},er.CONNECTION_CREATE_TIMEOUT);t.addEventListener("channelopen",()=>{clearTimeout(n),this._dispatchEventCallback(e,"channelopen")}),t.addEventListener("channelclose",()=>{this._dispatchEventCallback(e,"channelclose")}),t.addEventListener("signalerror",()=>{clearTimeout(n),this._dispatchEventCallback(e,"signalerror")})}_dispatchEventCallback(e,t){var n=this._getEventTarget(e);null!==n&&n.dispatchEvent(new Event(t))}registerEventCallbacks(e,t){var n=this._getEventTarget(e);null!==n&&(t.channelopen&&n.addEventListener("channelopen",t.channelopen),t.channelclose&&n.addEventListener("channelclose",t.channelclose),t.signalerror&&n.addEventListener("signalerror",t.signalerror),t.timeout&&n.addEventListener("timeout",t.timeout))}remove(e){this.webrtcTable.get(e)&&this.webrtcTable.get(e).close(),this.webrtcTable.delete(e),this.eventTable.delete(e),this.failureTable.delete(e)}giveup(e){this.giveupTable.add(e),this.remove(e),D(`[webrtc] ${e} give up`)}isGiveup(e){return this.giveupTable.has(e)}inFailureCooldown(e){let t=this.failureTable.get(e);return!!t.hasConnectionFailure()&&new Date-t.lastFailureDate<t.failureCooldown}isMaxFailureCooldown(e){let t=this.failureTable.get(e);return ei.MAX_FAILURE_COOLDOWN_INTERVAL===t.failureCooldown}}class ei{static MAX_FAILURE_COOLDOWN_INTERVAL=6e4;static DEFAULT_FAILURE_COOLDOWN_INTERVAL=1e3;constructor(){this.failureCooldown=ei.DEFAULT_FAILURE_COOLDOWN_INTERVAL,this.lastFailureDate=null}hasConnectionFailure(){return null!==this.lastFailureDate}genNextConnectionFailure(){null!==this.lastFailureDate&&(this.failureCooldown=Math.min(2*this.failureCooldown,ei.MAX_FAILURE_COOLDOWN_INTERVAL)),this.lastFailureDate=new Date}}var eo=new er;class ea extends EventTarget{static STUN_SERVER_ADDR="stun:checkip.webrtc.quickconnect."+(window.location.hostname.includes("quickconnect.to")?"to":"cn");static AUX_CHANNEL_POSTFIX="@aux";static DEFAULT_CHANNEL_NAME="Default";static MAX_MSG_SIZE=65535;static MAX_BUFFERED_AMOUNT=8388608;static BUFFERED_AMOUNT_LOW_THRESHOLD=Math.floor(ea.MAX_BUFFERED_AMOUNT/2);static ABORT_FLAG=1;static PINGPONG_TIMEOUT=3e3;static PINGPONG_INTERVAL=5e3;constructor(e){if(super(),Object.assign(this,e),null==this.name||null==this.sharing||null==this.reconnect||null==this.aux)throw"name, sharing, reconnect, or aux attribute is null";this.resetDcRecv(),this.taskManager=new ee,this.semaphoreManager=new en,this.isFailureReported=!1,this.auxChannel=null;var t="";if(this.isAuxChannel()){var n=this.getMainChannel();if(null==n||n.isDataChannelClose()){D("fail to init aux channel since main channel is not opend");return}t=n.getSignalSessionID(),this.taskManager=n.taskManager}this.peerConnection=null,this.dc=null,this.iceServers={iceServers:[{urls:ea.STUN_SERVER_ADDR}]},this.createServerConnection(),this.sc=new Q(this.sharing,t),this.initSc(),this.pingpongTimeoutId=-1,this.startICE()}startICE(){this.pingpong({success:()=>{this.sc.start(),this.pingpongTimeoutId=-1},fail:()=>{D("[webrtc] pingpong failure"),this.pingpongTimeoutId=setTimeout(()=>{this.startICE()},ea.PINGPONG_INTERVAL)}})}pingpong(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea.PINGPONG_TIMEOUT;var n=new XMLHttpRequest;n.open("GET","webman/pingpong.cgi"),n.timeout=t,e.success&&(n.onload=e.success),e.fail&&(n.ontimeout=e.fail,n.onerror=e.fail),n.send()}newTaskRequest(){var e=new G(this);return this.taskManager.addTaskRequest(e),e}async getChannelByBody(e){return!1===this.aux?this:(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof Blob||e instanceof FormData)&&null!=this.auxChannel&&this.auxChannel.isDataChannelOpen()?this.auxChannel:this}isDefaultMainChannel(){return ea.DEFAULT_CHANNEL_NAME===this.name&&!1===this.isAuxChannel()}isAuxChannel(){return this.name.endsWith(ea.AUX_CHANNEL_POSTFIX)}getMainChannel(){if(this.isAuxChannel()){var e=this.name.substr(0,this.name.indexOf(ea.AUX_CHANNEL_POSTFIX));return eo.get(e)}return null}getAuxChannel(){return!1===this.isAuxChannel()?eo.get(this.name+ea.AUX_CHANNEL_POSTFIX):null}async startAuxChannel(){var e=await eu(this.name+ea.AUX_CHANNEL_POSTFIX,this.sharing,!1,!1,!1);if(null!=e&&e.isDataChannelOpen())return this.auxChannel=e}async waitForReady(){if(!0!==this.isDataChannelOpen())return new Promise((e,t)=>{let n=setInterval(()=>{!0===this.isDataChannelOpen()&&(clearInterval(n),e())},100)})}close(){0<this.pingpongTimeoutId&&(clearTimeout(this.pingpongTimeoutId),this.pingpongTimeoutId=-1),null!==this.sc&&this.sc.close(),null!==this.peerConnection&&this.peerConnection.close(),null!==this.dc&&(this.dc.close(),this.reportStatistics())}isDataChannelOpen(){return null!==this.dc&&"open"===this.dc.readyState&&null!==this.peerConnection&&"connected"===this.peerConnection.connectionState}isDataChannelClose(){return null!==this.dc&&("closing"===this.dc.readyState||"closed"===this.dc.readyState)}isConnectionFinished(){if(null==this.sc||null==this.peerConnection)return D("signal client or peer connection is null"),!1;var e=this.peerConnection.connectionState;return!0===this.sc.hasError||"disconnected"===e||"failed"===e||"closed"===e}isSharingConnection(){return!0===this.sharing}getSignalSessionID(){return this.sc.getSignalSessionID()}getSignalAddr(){return this.sc.getSignalAddr()}initSc(){this.initScCmd(),this.sc.addEventListener("close",()=>{null!==this.peerConnection&&null!==this.dc&&this.isDataChannelOpen()||this.dispatchEvent(new Event("signalerror"))}),this.sc.addEventListener("error",()=>{this.dispatchEvent(new Event("signalerror")),this.reportStatus(!1,g.ERR_TYPE_CONNECTION)})}initScCmd(){this.sc.registerWsCmd("signal_echo",e=>{let t=null;try{t=JSON.parse(e)}catch(n){t=e}!0==t instanceof Object?0===t.error?(this.onSignalServerReady(),I(t.cache),this.isDefaultMainChannel()&&(!0===t.flushCache&&q.flushCache(),!0===t.unregisterCache&&q.unregisterServiceWorker())):(D("signal echo error"),this.reportStatus(!1,t.error),this.close()):"ok"===t?this.onSignalServerReady():(D("signal echo error"),this.reportStatus(!1,g.ERR_TYPE_UNKNWON),this.close())}),this.sc.registerWsCmd("dsm_offer",e=>{let t=JSON.parse(e);this.peerConnection.setRemoteDescription(t),this.peerConnection.createAnswer().then(this.offerAnswer.bind(this),this.onCreateSessionDescriptionError.bind(this))}),this.sc.registerWsCmd("ice_exchange",e=>{let t=JSON.parse(e);this.peerConnection.addIceCandidate(new RTCIceCandidate(t)).then(this.onAddIceCandidateSuccess.bind(this),this.onAddIceCandidateError.bind(this))})}reportStatus(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.ERR_TYPE_SUCCESS;if(this.isDefaultMainChannel()){if(g.ERR_TYPE_SUCCESS!==t&&!0===this.isFailureReported)return;this.sc.sendWebrtcStatus(e,t),g.ERR_TYPE_SUCCESS!==t?this.isFailureReported=!0:this.isFailureReported=!1}}reportStatistics(){if(this.isDefaultMainChannel()){let t=this.getAuxChannel(),n=null;if(null!=t){var e;n=null==t?void 0:null===(e=t.sc)||void 0===e?void 0:e.statistics}this.sc.sendStatistics(n)}}onSignalServerReady(){h().request({api:this.isSharingConnection()?"SYNO.WebRTC.Proxy.Sharing":"SYNO.WebRTC.Proxy",method:"create",version:1,params:{sid:this.getSignalSessionID()},callback:(e,t)=>{e||(D("WebRTC api fail: "+t),this.dispatchEvent(new Event("signalerror")),this.reportStatus(!1,g.ERR_TYPE_WEBAPI))}})}createServerConnection(){this.peerConnection=new RTCPeerConnection(this.iceServers),this.peerConnection.onconnectionstatechange=e=>{D("[webrtc] peer connection state",this.name,this.peerConnection.connectionState),("failed"===this.peerConnection.connectionState||"closed"===this.peerConnection.connectionState)&&null!=this.dc&&"closed"!==this.dc.readyState&&this.close()},this.peerConnection.onicecandidate=e=>{this.onIceCandidate(this.peerConnection,e)},this.peerConnection.ondatachannel=this.receiveChannelCallback.bind(this)}onIceCandidate(e,t){this.sc.sendIceCandidate(t)}offerAnswer(e){this.peerConnection.setLocalDescription(e),this.sc.sendAnswerDesc(e)}onCreateSessionDescriptionError(e){D("fail to create session description: "+e.toString())}onAddIceCandidateSuccess(){}onAddIceCandidateError(e){D("fail to add Ice Candidate:",e.toString())}receiveChannelCallback(e){this.dc=e.channel,this.dc.onmessage=this._onDataChannelReceive.bind(this),this.dc.onopen=()=>{this.sc.setIgnoreError(!0),this.sc.close(),this._onDataChannelOpen()},this.dc.onclose=()=>{this._onDataChannelClose()},this.dc.bufferedAmountLowThreshold=ea.BUFFERED_AMOUNT_LOW_THRESHOLD}_onDataChannelOpen(){if(this._onReceiveChannelStateChange(),this.reportStatus(!0),this.isAuxChannel()){var e=this.getMainChannel();if(null==e||e.isDataChannelClose()){D("close aux channel since main channel is not open"),this.close();return}}else!0===this.aux&&this.startAuxChannel(),this.isDefaultMainChannel()&&A()&&q.init(this),q.registerSwReportStatisticsEvent();this.dispatchEvent(new Event("channelopen"))}_onDataChannelClose(){this.taskManager.getTaskRequestTable().forEach((e,t)=>{Z.XHR_STATE_OPENED<=e._state&&Z.XHR_STATE_LOADING>=e._state&&e._onError("data channel is closed")}),this.isAuxChannel()||null==this.auxChannel||this.auxChannel.close(),this._onReceiveChannelStateChange(),this.isDefaultMainChannel()&&A()&&q.reset(),this.dispatchEvent(new Event("channelclose")),this.reportStatistics()}_onReceiveChannelStateChange(){let e=this.dc.readyState;D("[webrtc]",this.name,"receive channel state is:",e)}onDataChannelReceive(e,t,n){var r=this.taskManager.getTaskRequest(n);null!==r&&r._onMessage(e,t)}onDataChannelChunk(e,t,n){var r=this.taskManager.getTaskRequest(n);null!==r&&r._onChunk(e,t)}onDataChannelError(e,t){var n=this.taskManager.getTaskRequest(t);null!==n&&n._onError(e)}async dcSendWrapper(e,t){if(!this.taskManager.getTaskRequest(e))return!1;var n=!1;if(this.isDataChannelOpen()){var r=this.semaphoreManager.getSempaphore("dcSend");await r.start();try{n=await t()}finally{r.end()}}else D("webrtc datachannel is closed or has not been opened");return n}async dcSend(e,t){return await this.dcSendWrapper(t,async()=>{var n=null,r=null;if("string"==typeof e?(n=s.textEncode(e),r=m.MESSAGE_TYPE_STRING,null!==this.sc.statistics&&void 0!==this.sc.statistics&&this.sc.statistics.addTxText(n.byteLength)):e instanceof ArrayBuffer?(n=e,r=m.MESSAGE_TYPE_BYTE,null!==this.sc.statistics&&void 0!==this.sc.statistics&&this.sc.statistics.addTxBinary(n.byteLength)):null==e&&(n=new Uint8Array([]).buffer,r=m.MESSAGE_TYPE_EMPTY),null===n)return D("unknown data type"),!1;if(this._dcSendWithException(this.packMetadata(n.byteLength,r,t)),0<n.byteLength)try{return await this._dcSend(n,t)}catch(e){var i=this.taskManager.getTaskRequest(t);return null!==i&&(D(e),i.upload.dispatchEvent(new ErrorEvent("error",{error:e,message:"dcSend internal error"}))),this.onDataChannelError(e,t),!1}})}async dcSendPause(e){return await this.dcSendWrapper(e,async()=>(this._dcSendWithException(this.packMetadata(0,m.MESSAGE_TYPE_PAUSE_STOP,e)),!0))}async dcSendResume(e){return await this.dcSendWrapper(e,async()=>(this._dcSendWithException(this.packMetadata(0,m.MESSAGE_TYPE_PAUSE_CONTINUE,e)),!0))}async dcSendEOF(e){return await this.dcSendWrapper(e,async()=>(this._dcSendWithException(this.packMetadata(0,m.MESSAGE_TYPE_EOF,e)),!0))}async dcSendEOU(e){return await this.dcSendWrapper(e,async()=>(this._dcSendWithException(this.packMetadata(0,m.MESSAGE_TYPE_EOU,e)),!0))}async dcTerminate(e){return await this.dcSendWrapper(e,async()=>(this._dcSendWithException(this.packMetadata(0,m.MESSAGE_TYPE_TERMINATE,e)),!0))}async _dcSend(e,t){var n=ea.MAX_MSG_SIZE-1,r=e.byteLength,i=Math.floor(r/n),o=r%n;for(let r=1;r<=i;r++)if(await this._dcSendFragment(e.slice((r-1)*n,r*n),t))return!1;return!(0!==o&&await this._dcSendFragment(e.slice(i*n),t))}async _dcSendFragment(e,t){return(await this._dcSendFlowControl(e.byteLength),null===this.taskManager.getTaskRequest(t))?(this._dcSendWithException(new Uint8Array([ea.ABORT_FLAG]).buffer),!0):(this._dcSendWithException(s.mergeArrayBufferList([new Uint8Array([1-ea.ABORT_FLAG]).buffer,e])),!1)}_dcSendFlowControl(e){return new Promise(this.dc.bufferedAmount+e>ea.MAX_BUFFERED_AMOUNT?(e,t)=>{this.dc.onbufferedamountlow=()=>{e()}}:(e,t)=>{e()})}_dcSendWithException(e){if(this.isDataChannelClose())throw DOMException.NETWORK_ERR;this.dc.send(e)}async _onDataChannelReceive(e){var t=this.semaphoreManager.getSempaphore("dcRecv");await t.start();var n=null,r=m.MESSAGE_TYPE_UNDEFINED,i=null;try{({data:n,type:r,taskId:i}=await this.dcRecv(e))}finally{t.end()}if(null!==n||m.MESSAGE_TYPE_HEADERS<=r&&r<m.MESSAGE_TYPE_UNDEFINED){var o=this.taskManager.getTaskRequest(i);if(null===o)return;switch(r){case m.MESSAGE_TYPE_STATUS:o.setStatusCode(n);break;case m.MESSAGE_TYPE_STATUSTEXT:o.setStatusText(n);break;case m.MESSAGE_TYPE_HEADERS:o.setResponseHeaders(n);break;case m.MESSAGE_TYPE_ERROR:this.onDataChannelError(n,i);break;case m.MESSAGE_TYPE_BYTE:case m.MESSAGE_TYPE_STRING:case m.MESSAGE_TYPE_EOF:this.onDataChannelReceive(n,r,i);break;case m.MESSAGE_TYPE_UPLOAD_PROGRESS:o.updateUploadProgress(n);break;default:D("unknown data channel message type",r)}}}async dcRecv(e){var t={data:null,type:m.MESSAGE_TYPE_UNDEFINED,taskId:null},n=e.data instanceof Blob?await e.data.arrayBuffer():e.data;if(m.MESSAGE_TYPE_UNDEFINED===this.recvType){var r=this.unpackMetadata(n);if(this.recvLen=r.length,this.recvType=r.type,this.recvTaskId=r.taskId,m.MESSAGE_TYPE_UNDEFINED===this.recvType)throw"Metadata Error"}else if(this.recvLen>this.recvTot){var i=new Uint8Array(n.slice(0,1))[0],o=n.slice(1);if(1===i)return this.resetDcRecv(),t;this.recvData.push(o),this.recvTot+=o.byteLength,(m.MESSAGE_TYPE_BYTE===this.recvType||m.MESSAGE_TYPE_STRING===this.recvType)&&this.onDataChannelChunk(o.byteLength,this.recvType,this.recvTaskId)}if(this.recvLen===this.recvTot){var a=s.mergeArrayBufferList(this.recvData);switch(this.recvType){case m.MESSAGE_TYPE_STRING:case m.MESSAGE_TYPE_HEADERS:case m.MESSAGE_TYPE_STATUS:case m.MESSAGE_TYPE_STATUSTEXT:case m.MESSAGE_TYPE_ERROR:t.data=s.textDecode(a),null!==this.sc.statistics&&void 0!==this.sc.statistics&&this.sc.statistics.addRxText(this.recvLen);break;case m.MESSAGE_TYPE_BYTE:t.data=a,null!==this.sc.statistics&&void 0!==this.sc.statistics&&this.sc.statistics.addRxBinary(this.recvLen);break;case m.MESSAGE_TYPE_UPLOAD_PROGRESS:var l=new DataView(a);t.data=Number(l.getBigUint64())}t.type=this.recvType,t.taskId=this.recvTaskId,this.resetDcRecv()}return t}resetDcRecv(){this.recvData=[],this.recvLen=0,this.recvTot=0,this.recvType=m.MESSAGE_TYPE_UNDEFINED,this.recvTaskId=0}packMetadata(e,t,n){var r=new Uint8Array(17),i=s.packUint64(e),o=new Uint8Array([t]),a=s.packUint64(n);return r.set(i),r.set(o,8),r.set(a,9),r.buffer}unpackMetadata(e){var t={};return t.length=s.unpackUint64(e.slice(0,8)),t.type=new Uint8Array(e.slice(8,9))[0],t.taskId=s.unpackUint64(e.slice(9,17)),t}}function es(e){e.endsWith(ea.AUX_CHANNEL_POSTFIX)||(eo.giveup(e),D(`give up channel ${e}`))}function el(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];var t=!0;return window._S&&(t=!window._S("isLogined")),eu(ea.DEFAULT_CHANNEL_NAME,t,!0,!e,!0)}function eu(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!0===r){if(eo.isGiveup(e))return null;var o=eo.get(e);return null==o||!eo.inFailureCooldown(e)&&o.isConnectionFinished()?(eu(e,t,n,!1,i),null):o||null}return new Promise((r,o)=>{if(eo.isGiveup(e)){r(null);return}var a=()=>{eo.registerEventCallbacks(e,{channelopen:()=>{let t=eo.get(e);t?r(t):(D("[webrtc] error: channel open but the instance is null"),r(null))},channelclose:()=>{let t=eo.get(e);null!=t&&!1===t.reconnect&&es(e)},signalerror:()=>{es(e),r(null)},timeout:()=>{let t=eo.get(e);t&&t.reportStatus(!1,g.ERR_TYPE_TIMEOUT),r(null)}})},s=eo.get(e);if(null!=s&&!eo.inFailureCooldown(e)&&!s.isConnectionFinished()){s.isDataChannelOpen()?r(s):a();return}if(null!=s&&eo.isMaxFailureCooldown(s.name)){es(e),r(null);return}try{s=new ea({name:e,sharing:t,aux:i,reconnect:n})}catch(t){D("[webrtc] WebRTC construction failure",t),es(e),r(null);return}eo.set(e,s),a()})}class ec{static SW_SCOPE="/scripts/synowebrtc/WebrtcDownloader";static SW_LAUNCHER="swLauncher.html";static IFRAME_REMOVE_DELAY=3e3;static CACHE_BUSTING_MAX=9999;constructor(){let e=Math.floor(Math.random()*ec.CACHE_BUSTING_MAX);this.swLauncher=null,this.swLauncherUrl=ec.SW_SCOPE+"/"+ec.SW_LAUNCHER+"?v="+e,this.disableSwDownload=!1,this.updateServiceWorker()}async updateServiceWorker(){if(!1===this.isSupport())return;let e=await b(this.swLauncherUrl);null!=e&&(e.onupdatefound=()=>{D("[webrtc] update download service worker"),this.swLauncher&&(this.removeIframe(this.swLauncher),this.swLauncher=null)},e.update())}isSupport(){return!(!0===this.disableSwDownload||y())&&!!(isSecureContext&&MessageChannel&&navigator.serviceWorker&&Headers&&Response&&WritableStream&&ReadableStream)}createWriteStream(e,t,n,r,i){this.loadSwLauncher(i);var o={downloadIframe:null,channel:new MessageChannel,pausableReqeust:e,errorCallback:r,fallbackCallback:i},a=t||this.getDownloadFileName(e,n);let s={};for(let[t,n]of e._getResponseHeadersObj(!0).entries())s[t]=n;var l={fileName:k(a),headers:s};return this.listenServiceWorker(o),this.sendContextToServiceWorker(l,o),this.getWriteStreamImplement(o)}getDownloadFileName(e,t){var n=null;let r=t.split("?")[0].split("/"),i=r.pop(),o=r.pop();if(void 0!==i&&""!==i?n=i:void 0!==o&&""!==o&&(n=o),null!==n)return n;throw"unable to get filename"}listenServiceWorker(e){e.channel.port1.onmessage=t=>{if(t.data.swRegisterError){this.removeIframe(this.swLauncher),this.handleSwLauncherFailure(e.fallbackCallback);return}let n=e.pausableReqeust;if(t.data.downloadUrl){let n=this.makeIframe(t.data.downloadUrl);e.downloadIframe=n,n.addEventListener("load",()=>{let t=n.contentDocument.body;t&&t.firstChild&&(null!=t.firstChild.innerHTML?e.errorCallback(t.firstChild.innerHTML):e.fallbackCallback())},{once:!0}),e.channel.port1.postMessage("startDownload")}else t.data.clearIframe?this.removeIframe(e.downloadIframe):t.data.pause?null!=n&&"function"==typeof n.pause&&n.pause():t.data.resume?null!=n&&"function"==typeof n.resume&&n.resume():t.data.abort&&(e.channel.port1.postMessage("abort"),null!=n&&"function"==typeof n.abort&&n.abort())}}sendContextToServiceWorker(e,t){let n=[e,"*",[t.channel.port2]];this.swLauncher.loaded?this.swLauncher.postMessage(...n):this.swLauncher.addEventListener("load",()=>{this.swLauncher.postMessage(...n)},{once:!0})}getWriteStreamImplement(e){return new window.WritableStream({write(t){if(!1==t instanceof Uint8Array)throw TypeError("chunk is not Uint8Array");e.channel.port1.postMessage(t)},close(){e.channel.port1.postMessage("end")},abort(){e.channel.port1.postMessage("abort")}})}loadSwLauncher(e){if(null!==this.swLauncher)return;let t=new XMLHttpRequest;t.open("HEAD",this.swLauncherUrl),t.onload=()=>{200!==t.status&&this.handleSwLauncherFailure(e)},t.onerror=()=>{this.handleSwLauncherFailure(e)},t.send(),this.swLauncher=this.makeIframe(this.swLauncherUrl)}handleSwLauncherFailure(e){this.disableSwDownload=!0,e&&e(`fail to initialize ${ec.SW_LAUNCHER}`)}makeIframe(e){if(!e)throw Error("src is undefined");let t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="WebrtcDownloader",t.isIframe=!0,t.postMessage=function(){t.contentWindow.postMessage(...arguments)},t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}removeIframe(e){null!==e&&setTimeout(()=>{document.body.removeChild(e)},ec.IFRAME_REMOVE_DELAY)}}var ed=new ec;function ef(e,t,n){var r=null,i=null,o=null,a={url:e.url||"",fileName:e.filename||null,method:e.method||"GET",params:e.params?{...e.params}:{},timeout:e.timeout||12e4,responseType:e.responseType||"json"};if(a.fileName){let e=new URL(a.url,location.href);e.pathname+=e.pathname.endsWith("/")?"":"/",e.pathname+=encodeURIComponent(a.fileName),a.url=e.href}for(let e of["api","method","version"])void 0===a.params[e]&&delete a.params[e];if(a.url+=a.url.includes("?")?"&":"?","GET"===a.method)a.url+=l();else if("POST"===a.method){let e=a.params.SynoToken;null!=e&&(a.url+="SynoToken="+e,delete a.params.SynoToken)}else throw"unsupported request method";try{var s=el(!1);if(null===s||!1===s.isDataChannelOpen()){f();return}(r=s.newTaskRequest()).open(a.method,a.url),r.responseType="none",r.timeout=a.timeout,r.onReceiveHeaders=()=>{try{u()}catch(e){f(e);return}},r.onMessage=(e,t,n)=>{o.write(new Uint8Array(e)).catch(e=>{r.abort()})},r.onload=()=>{null!=o&&(o.close(),o=null),window.removeEventListener("beforeunload",d)},r.onError=f,r.ontimeout=f,"GET"===a.method?r.send().catch(f):r.send(l()).catch(f)}catch(e){f(e)}function l(){let e=[];for(let t of Object.entries(a.params))e.push(encodeURIComponent(t[0])+"="+encodeURIComponent(t[1]));return e.join("&")}function u(){null===i&&null===o&&(o=(i=ed.createWriteStream(r,a.fileName,a.url,e=>{null!=t&&t(null,{data:c(e,a.responseType),status:r.status,statusText:r.statusText,headers:F(r.getAllResponseHeaders())})},f)).getWriter(),window.addEventListener("beforeunload",d))}function c(e,t){try{if("json"===t)return JSON.parse(e);return e}catch(e){return D(e),null}}function d(){r.abort(),o.abort()}function f(e){null!=r&&(r.abort(),r.onMessage=null),null!=e&&D("webrtc download fallback:",e),null!=n&&n()}}function ep(){return ed.isSupport()}var eh={},em={};eh.Cache=em,eh.GetDefaultChannel=el,eh.GetChannel=eu,eh.DownloadFile=ef,S(eh),O(eh.Cache),eh.Cache.Flush=async()=>{await q.flushCache()},eh.Cache.Unregister=async()=>{await q.unregisterServiceWorker()},Object.defineProperty(eh,"IsRelay",{get:()=>{var e=window.location.hostname;return/.*[A-Za-z]{2,3}\d+\.quickconnect\.(to|cn)/.test(e)}}),Object.defineProperty(eh,"SupportDownload",{get:()=>ep()}),d.call(eh,window.synowebapi),eh.SetSynoWebAPI=c;var eg=eh,ev=n(92383),ey=n(92632),eb=n(34774),e_=function(e,t){try{i.Z.env.setSynoToken(SYNO.SDS.Session.SynoToken),i.Z.env.setCredential(window.synowebapi.env.getCredential())}catch(e){}return eg.IsRelay&&(eg.SetSynoWebAPI(i.Z),eg.Enable=eg.IsRelay),function(n){var o=n.header,a=n.api,s=n.method,l=n.version,u=n.params,c=n.encryption,d=n.formData,f=n.keepParamsCase;SYNO.SDS.Session.SynoToken&&i.Z.env.setSynoToken(SYNO.SDS.Session.SynoToken);var p={};void 0!==o?p=o:e()&&(p["X-SYNO-SHARING"]=t());var h=u&&!0!==f?(0,eb.hH)(u):u;return i.Z.promises.request((0,r._)({api:a,method:s,version:l,headers:p},h&&{params:h},c&&{encryption:c},d&&{formData:d})).then(function(e){return e}).catch(function(e){throw new ev.Z({error:e})})}}(ey.f5,ey.Of)},34774:function(e,t,n){"use strict";n.d(t,{AJ:function(){return F},Jc:function(){return A},MS:function(){return B},Yl:function(){return L},hH:function(){return S},i_:function(){return U},n_:function(){return M}});var r=n(41196),i=n(7409),o=n(99282),a=n(98848),s=n(24460),l=n(55210),u=n(96904),c=n(5137),d=n(94307),f=n(92632),p=n(19285),h=n(62916),m=n(5943),g=n(22287),v=n(84402),y=n(61630),b=n(75296),_=function(e){return"string"==typeof e?'"'.concat(e.replace(/["\\]/g,"\\$&"),'"'):e},E=function(e){if((0,r._)(e,Array)){var t=e.map(function(e){return JSON.stringify(e)}).join(",");return encodeURIComponent("[".concat(t,"]"))}return(0,r._)(e,Object)?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(_(e))},w=function(e){var t=e.contentType,n=void 0===t?"json":t,i=(0,a._)(e,["contentType"]);if("form"===n){var o=new FormData;return o.append("api",i.api),o.append("method",i.method),o.append("version",i.version),Object.entries(i).forEach(function(e){var t=(0,s._)(e,2),n=t[0],i=t[1];-1===["api","method","version"].indexOf(n)&&((0,r._)(i,File)||(0,r._)(i,Blob)?o.append(n,i):o.append(n,JSON.stringify(i)))}),o}return Object.keys(i).map(function(e){return"".concat(encodeURIComponent((0,b.Z)(e)),"=").concat(E(i[e]))}).join("&")},S=function(e){return Object.fromEntries(Object.entries(e).map(function(e){var t=(0,s._)(e,2),n=t[0],r=t[1];return[(0,b.Z)(n),r]}))},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=window.location.origin,r=(0,p.C)(),i=(0,h.e6)()?"/".concat(e):"",o="";if(t){var a=t.replace(/[\r\n]/g,"_");o="/".concat(encodeURIComponent(a))}return"".concat(n).concat(r,"webapi/entry.cgi").concat(i).concat(o,"?")},O=function(e){var t=window.location.origin,n=(0,p.C)();return(0,f.v6)()&&(n=n.replace(/mo\/sharing\/?$/,"")),"".concat(t).concat(n,"synofoto/api/").concat(e,"?")},I=function(e){if(-1!==e.indexOf("SynoToken")||!SYNO.SDS.Session.SynoToken)return"";var t=-1!==e.lastIndexOf("?"),n=e.lastIndexOf("?")===e.length-1,r="?";return t&&(r=n?"":"&"),"".concat(r,"SynoToken=").concat(SYNO.SDS.Session.SynoToken)},A=function(e){return e+I(e)},C=function(e,t){var n=e+(t?w(t):"");return t&&t.tid?n:A(n)};function x(e){return(0,v.Eo)(e)?"FotoTeam":"Foto"}function D(e){var t=e||(0,d.AZ)().split("/",2)[1];return x((0,f.f5)()?u.Zu.PERSONAL:t)}var R=function(e,t,n){return t.split(".").reduce(function(e,t){return e[t]},c.t2[e])[n]};function L(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=D(r),l="SYNO.".concat(s,".").concat(e),u=(0,o._)((0,i._)({},n),{api:l,method:t,version:R(s,e,t)});return(0,f.f5)()&&(u._sharing_id=(0,f.Of)()),{url:T(l,a),params:u}}function k(e,t,n,r){var o=D(r),a=R(o,e,t),s="Foto"===o?"v".concat(a,"/p/").concat(e,"/").concat(t):"v".concat(a,"/t/").concat(e,"/").concat(t),l=(0,i._)({},n);return(0,f.f5)()&&(l._sharing_id=(0,f.Of)()),{url:O(s),params:l}}function M(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=L.apply(void 0,(0,l._)(t));return C(r.url,r.params)}function P(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=k.apply(void 0,(0,l._)(t));return C(r.url,r.params)}function N(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{albumId:void 0,passphrase:void 0},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0,l={id:e,cacheKey:t,type:n};return void 0!==r&&void 0===s&&(l.size=r),i.albumId?l.album_id=i.albumId:i.passphrase&&(l.passphrase=i.passphrase),void 0!==s&&(l.folder_cover_seq=s),P("Thumbnail","get",l,o,a)}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{passphrase:void 0,albumId:void 0},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";if(void 0===t)return u.yL.Broken;if(!Object.keys(t).length)return u.yL.None;if(!(0,g.tp)(o))return u.yL.SpaceDisable;if(Object.values(t).some(function(e){return e===u.yL.Regenerating}))return u.yL.Regenerating;var s=n,l=e;if(n===u.Zk.Folder&&void 0!==t.folder_cover_seq)return N(l,t.cache_key,s,void 0,i,o,a,t.folder_cover_seq);if(void 0!==t.unit_id&&(s=u.Zk.Unit,l=t.unit_id),void 0===t.preview)return N(l,t.cache_key,s,void 0,i,o,a);var c=r;return(t[r]!==u.yL.Ready&&("sm"===r?c="m":"m"===r&&(c="sm")),t[c]===u.yL.Ready)?N(l,t.cache_key,s,c,i,o,a):t.preview===u.yL.Ready?N(l,t.cache_key,s,"preview",i,o,a):t[r]||u.yL.Broken}var B=function(e){return -1===[u.yL.Broken,u.yL.None,u.yL.Converting,u.yL.SpaceDisable,u.yL.AmeDefect,u.yL.Regenerating].indexOf(e)};function U(e){var t=e.id,n=e.type,r=e.quality,i=e.albumId,o=e.passphrase,a=e.library,s={id:t,type:n,quality:r};return i?s.album_id=i:o&&(s.passphrase=o),((0,m.G6)()||(0,y.Tt)())&&(s.use_mov=!0),M("Streaming","streaming",s,a)}},55743:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(8346),i=n(35369),o=n(45697),a=n.n(o),s=n(67294),l=n(94184),u=n.n(l),c=n(27412),d=n(7409),f=n(99282),p=n(98848),h=n(65316),m=n(96904),g=n(47407),v=function(e){var t=e.handler,n=e.checked,r=e.visibility,i=e.actionType,o=e.dataTestId,a=(0,p._)(e,["handler","checked","visibility","actionType","dataTestId"]),l=(0,h.Z)(),v=function(e){e.preventDefault(),e.stopPropagation(),t(!n,e.shiftKey)},y=i===m.Us.MergePerson,b=i===m.Us.PersonVisibility||i===m.Us.ConceptVisibility,_=u()("synofoto-selectable-checkbox",{"synofoto-selectable-merge-person":y,"synofoto-selectable-is-visibility":b,checked:r?n:!n}),E=u()((0,c._)({"visibility-btn-icon":b,"group-check-on-btn-icon":y},"synofoto__".concat(l),y));return s.createElement(g.Z,(0,f._)((0,d._)({},a),{dataTestId:o,className:_,iconCls:E,handler:v}))};v.propTypes={handler:a().func,checked:a().bool.isRequired,visibility:a().bool.isRequired,actionType:a().string.isRequired,dataTestId:a().string},v.defaultProps={handler:function(){},dataTestId:""};var y=v,b=function(e){var t,n=e.handler,r=e.hoverHandler,i=e.checked,o=e.previewSelect,a=e.className,l=e.iconCls,h=(0,p._)(e,["handler","hoverHandler","checked","previewSelect","className","iconCls"]),m=function(e){e.preventDefault(),e.stopPropagation(),n(!i,e.shiftKey)},v=function(e){e.preventDefault(),e.stopPropagation(),r(e.shiftKey)},y=u()((t={},(0,c._)(t,a,a),(0,c._)(t,"checked",i),(0,c._)(t,"preview-select",o),t));return s.createElement(g.Z,(0,f._)((0,d._)({},h),{className:y,iconCls:l,handler:m,hoverHandler:v,dataTestId:"select-button"}))};b.propTypes={handler:a().func,hoverHandler:a().func,checked:a().bool.isRequired,previewSelect:a().bool,className:a().string,iconCls:a().string},b.defaultProps={handler:function(){},hoverHandler:function(){},previewSelect:!1,className:"",iconCls:""};var _=b,E=function(e,t){return e&&t.length>1},w=function(e){var t=e.type,n=e.idArray,o=e.infoMap,a=e.children,l=e.className,c=e.withColorBanner,d=e.allowSelect,f=e.onMouseEnter,p=e.onMouseLeave,h=e.inFolderView,g=e.selectMode,v=e.selectType,b=e.actionType,w=e.lastSelectedId,S=e.checked,T=e.previewSelect,O=e.addSelect,I=e.addMultiSelect,A=e.removeSelect,C=e.setPreviewSelect,x=e.removePreviewSelect,D=e.isPerson,R=e.isConcept,L=e.isSingleSelectMode,k=e.iconCls,M=e.visibility,P=e.id,N=function(e,r){!L&&E(r,n)||(e?L||!r||0===w||D||R?O(t,n,i.default.fromJS(o)):I(O):A(t,n))},F=function(e){!L&&E(e,n)||(L||!e||0===w||D||R?x():I(C))},B=function(e){return v===m.RT.PERSON||v===m.RT.CONCEPT?s.createElement("div",{className:e,role:"img","aria-label":"overlay_".concat(P)},s.createElement(y,{actionType:b,visibility:M,handler:N,checked:S})):s.createElement(r.Z,{onPress:function(){N(!S,!1)}},s.createElement("div",{className:e},c&&s.createElement("div",{className:"synofoto-selectable-color-banner"}),s.createElement(_,{className:"synofoto-selectable-checkbox",handler:N,hoverHandler:F,checked:S,previewSelect:T,iconCls:k})))},U=u()(l,"synofoto-selectable-wrapper",{"select-mode":g,checked:S}),H=u()({"synofoto-selectable-overlay":!D&&!R,"synofoto-selectable-person-overlay":D,"synofoto-selectable-concept-overlay":R,"synofoto-selectable-folder-overlay":t===m.RT.FOLDER,"synofoto-selectable-folder-view-item-overlay":t===m.RT.ITEM&&h,"select-mode":g,checked:S,"preview-select":T});return s.createElement("div",{className:U,"data-testid":"basic-selectable_".concat(P),onMouseEnter:f,onMouseLeave:p},a,d&&B(H))};w.propTypes={type:a().string.isRequired,idArray:a().arrayOf(a().number).isRequired,infoMap:a().shape().isRequired,children:a().node.isRequired,className:a().string.isRequired,withColorBanner:a().bool.isRequired,allowSelect:a().bool.isRequired,onMouseEnter:a().func,onMouseLeave:a().func,inFolderView:a().bool.isRequired,selectMode:a().bool.isRequired,selectType:a().string.isRequired,actionType:a().string.isRequired,lastSelectedId:a().number.isRequired,checked:a().bool.isRequired,previewSelect:a().bool.isRequired,addSelect:a().func.isRequired,addMultiSelect:a().func,removeSelect:a().func.isRequired,setPreviewSelect:a().func.isRequired,removePreviewSelect:a().func.isRequired,isPerson:a().bool.isRequired,isConcept:a().bool.isRequired,isSingleSelectMode:a().bool,iconCls:a().string.isRequired,visibility:a().bool.isRequired,id:a().number},w.defaultProps={addMultiSelect:function(e){return e},onMouseEnter:null,onMouseLeave:null,isSingleSelectMode:!1,id:0};var S=w},95281:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7409),i=n(98848),o=n(45697),a=n.n(o),s=n(67294),l=n(21132),u={},c=["#94BF13","#4CBF73","#1DBFBF","#24BFF2","#3D82D1","#FA9C3E","#A18AE5","#FA8282"],d={getAvatarColor:function(e){return u[e]||(u[e]=c[Math.floor(10*Math.random())%c.length]),u[e]}},f={circleImage:a().string,className:a().string,classSuffix:a().string,text:a().string,name:a().string,title:a().string},p={circleImage:null,className:"",classSuffix:"",title:null,text:"",name:""},h=function(e){var t=e.name,n=e.text,o=(0,i._)(e,["name","text"]),a=t.length?t[0].toUpperCase():n,u=e.circleImage?"":d.getAvatarColor(t);return s.createElement(l.Z,(0,r._)({text:a,backgroundColor:u},o))};h.propTypes=f,h.defaultProps=p;var m=h},59179:function(e,t,n){"use strict";var r=n(27412),i=n(7409),o=n(99282),a=n(45697),s=n.n(a),l=n(67294),u=n(94184),c=n.n(u),d=n(96904),f=n(71569),p=n(13103),h=function(e,t){return function(n){if(t){n.preventDefault();return}e&&(n.preventDefault(),e(n))}},m=l.forwardRef(function(e,t){var n,i=e.handler,o=e.hoverHandler,a=e.ariaLabel,s=e.dataTestId,u=e.disabled,f=e.className,p=e.children,m=e.style,g=e.title,v=e.tipPlace,y=e.onWheel,b=e.onTransitionEnd,_=e.onMouseDown,E=e.onMouseLeave,w=e.onTouchEnd,S=e.onLongPress,T=(0,l.useRef)(null),O=c()((n={},(0,r._)(n,f,!0),(0,r._)(n,"disabled",u),n));(0,l.useImperativeHandle)(t,function(){return T.current});var I=(0,l.useMemo)(function(){return h(i,u)},[i,u]),A=(0,l.useMemo)(function(){return h(o,u)},[o,u]),C=(0,l.useMemo)(function(){return h(_,u)},[_,u]),x=(0,l.useMemo)(function(){return h(E,u)},[E,u]),D=(0,l.useMemo)(function(){return h(w,u)},[w,u]),R=(0,l.useMemo)(function(){return h(S,u)},[S,u]);return(0,l.useEffect)(function(){var e=T.current;return e&&e.addEventListener("long-press",R),function(){e&&e.removeEventListener("long-press",R)}},[R]),l.createElement("button",{className:O,disabled:u,onClick:I,onMouseEnter:A,onMouseDown:C,onMouseLeave:x,onTouchEnd:D,onWheel:y,onTransitionEnd:b,ref:T,style:m,"aria-label":a,"data-testid":s,type:"button","data-long-press-delay":d.LK.LONG_PRESS,"data-tooltip-content":g,"data-tooltip-place":v,"data-tooltip-id":d.ZP.GLOBAL_TOOLTIP_ID},p)});m.propTypes={handler:s().func,hoverHandler:s().func,ariaLabel:s().string,dataTestId:s().string,disabled:s().bool,className:s().string,children:s().node,style:s().shape({background:s().string}),title:s().string,tipPlace:s().string,onWheel:s().func,onTransitionEnd:s().func,onMouseDown:s().func,onMouseLeave:s().func,onTouchEnd:s().func,onLongPress:s().func},m.defaultProps={handler:void 0,hoverHandler:void 0,ariaLabel:void 0,dataTestId:void 0,disabled:!1,className:"",children:null,style:{},title:"",tipPlace:void 0,onWheel:void 0,onTransitionEnd:void 0,onMouseDown:void 0,onMouseLeave:void 0,onTouchEnd:void 0,onLongPress:void 0};var g=l.forwardRef(function(e,t){var n=(0,f.Z)().setGlobalTooltipTargetRef,r=function(e){"function"==typeof t?t(e):t&&(t.current=e),n(e)};return l.createElement(m,(0,o._)((0,i._)({},e),{ref:r}))});t.Z=(0,p.C)(m,g)},21132:function(e,t,n){"use strict";var r=n(45697),i=n.n(r),o=n(67294),a=n(40492),s=n(15593),l=n(96904),u=n(61630),c=n(1551),d={text:i().string.isRequired,circleImage:i().string,className:i().string,classSuffix:i().string,title:i().string,backgroundColor:i().string,getRef:i().func,disabled:i().bool,dataTestId:i().string,onLongPress:i().func,handler:i().func},f={className:"",circleImage:null,classSuffix:"",title:null,backgroundColor:"",getRef:function(){},disabled:!1,dataTestId:"",onLongPress:function(){},handler:function(){}},p=function(e){var t=e.text,n=e.circleImage,r=e.className,i=e.classSuffix,d=e.title,f=e.backgroundColor,p=e.getRef,h=e.disabled,m=e.dataTestId,g=e.onLongPress,v=e.handler,y=(0,s.I0)(),b=(0,o.useCallback)(function(){setTimeout(function(){y((0,c.l)(l.ZP.GLOBAL_TOOLTIP_ID,!0))},50)},[y]),_=function(){(0,u.tq)()&&b(),g&&g()};return o.createElement(a.c6,{className:"synofoto-circle-text-button ".concat(r),textCls:"synofoto-circle-text-button-text",tipId:l.ZP.GLOBAL_TOOLTIP_ID,text:t,circleImage:n,classSuffix:i,title:d,backgroundColor:f,getRef:p,disabled:h,dataTestId:m,onLongPress:_,handler:v})};p.propTypes=d,p.defaultProps=f,t.Z=p},47407:function(e,t,n){"use strict";var r=n(7409),i=n(98848),o=n(45697),a=n.n(o),s=n(67294),l=n(40492),u=n(15593),c=n(96904),d=n(61630),f=n(1551),p={iconCls:a().string,className:a().string,active:a().bool,disabled:a().bool,title:a().string,getRef:a().func,dataTestId:a().string,onLongPress:a().func},h={iconCls:"",className:"",active:!1,disabled:!1,title:"",getRef:function(){},dataTestId:"",onLongPress:function(){}};function m(e){e.onLongPress;var t=(0,i._)(e,["onLongPress"]),n=(0,u.I0)(),o=(0,s.useCallback)(function(){setTimeout(function(){n((0,f.l)(c.ZP.GLOBAL_TOOLTIP_ID,!0))},50)},[n]),a=function(){(0,d.tq)()&&o(),e.onLongPress&&e.onLongPress()};return s.createElement(l.hU,(0,r._)({onLongPress:a},t))}m.propTypes=p,m.defaultProps=h,t.Z=m},83797:function(e,t,n){"use strict";var r=n(27412),i=n(45697),o=n.n(i),a=n(67294),s=n(94184),l=n.n(s),u=n(40492),c={text:o().string.isRequired,iconCls:o().string,className:o().string,getRef:o().func,handler:o().func,disabled:o().bool,title:o().string,tipId:o().string,dataTestId:o().string},d={iconCls:"",className:"",getRef:function(){},handler:function(){},disabled:!1,title:"",tipId:void 0,dataTestId:void 0};function f(e){var t=e.text,n=e.iconCls,i=e.className,o=e.getRef,s=e.handler,c=e.disabled,d=e.title,f=e.tipId,p=e.dataTestId,h=l()("synofoto-icon-text-button",(0,r._)({},i,i));return a.createElement(u.W3,{text:t,className:h,iconCls:n,getRef:o,handler:s,disabled:c,title:d,tipId:f,dataTestId:p})}f.propTypes=c,f.defaultProps=d,t.Z=f},60253:function(e,t,n){"use strict";var r=n(7409),i=n(99282),o=n(98848),a=n(24460),s=n(45697),l=n.n(s),u=n(67294),c=n(21132),d=n(96904),f=n(83797),p=n(79113),h=n(32703),m=n(13103),g=n(48977),v=n(40491),y=n(47407),b=n(61403),_=n(25526),E=function(e){var t=e.menuItemCls,n=function(e){var n=e.selfPortal,s=e.menu,l=e.ctClassName,m=e.buttonType,E=e.alignPosition,w=e.toggleHandler,S=e.title,T=e.showItemsTitle,O=e.shift,I=e.offset,A=e.boundaryOffset,C=e.menuListStyle,x=e.onKeyDown,D=e.menuDataTestId,R=e.closeParentMenu,L=e.parentRefs,k=(0,o._)(e,["selfPortal","menu","ctClassName","buttonType","alignPosition","toggleHandler","title","showItemsTitle","shift","offset","boundaryOffset","menuListStyle","onKeyDown","menuDataTestId","closeParentMenu","parentRefs"]),M=(0,u.useRef)(null),P=(0,u.useRef)(),N=(0,u.useRef)(),F=(0,a._)((0,u.useState)(!1),2),B=F[0],U=F[1],H=(0,a._)((0,u.useState)({left:"-50000px"}),2),j=H[0],V=H[1],z=(0,u.useContext)(g.M).setHasChild,Z=function(e,t,n){var r=e.getBoundingClientRect(),i={top:r.top,bottom:r.bottom,left:r.left,right:r.right};return(0,_.ZP)({button:i,menu:t,align:n,shift:O,offset:I,boundaryOffset:A})};(0,u.useEffect)(function(){if(B&&N.current){var e=Z(P.current,N.current,E);V((0,_.xU)(e))}},[B]);var G=function(){U(function(e){return!e}),w(!B),z(!B)},W=function(){U(!1),w(!1),z(!1)},q=function(e,t){var n={text:p.Z,circletext:c.Z,texticon:h.Z,icon:y.Z,icontext:f.Z}[e]||y.Z;return u.createElement(n,(0,i._)((0,r._)({handler:G,title:S},t),{getRef:function(e){P.current=e},tipId:d.ZP.GLOBAL_TOOLTIP_ID}))},Y=s.filter(function(e){return!e.hidden}),$=B?j:{left:"-50000px"};return 0===Y.length?null:u.createElement(u.Fragment,null,B&&x?u.createElement(b.Z,{onKeyDown:x}):null,u.createElement("div",{className:"synofoto-menu-button ".concat(l),ref:M},q(m,k),u.createElement(g.Z,{isOpen:!0,style:{content:$},menuListStyle:C,parentSelector:n&&M.current?function(){return M.current}:void 0,onRequestClose:W,getRef:function(e){N.current=e},menuDataTestId:D,parentRefs:L,closeParentMenu:R,isSubMenuOpen:B,ignoreRefs:[P]},u.createElement(v.Z,{menu:Y,menuItemCls:t,closeMenu:W,showItemsTitle:T}))))};return n.propTypes={selfPortal:l().bool,menu:l().arrayOf(l().oneOfType([l().shape({handler:l().func,hidden:l().bool,text:l().string.isRequired}),l().shape({component:l().func.isRequired})])).isRequired,ctClassName:l().string,buttonType:l().oneOf(Object.values(d.L$)),alignPosition:l().string,toggleHandler:l().func,title:l().string,showItemsTitle:l().bool,shift:l().number,offset:l().shape({x:l().number,y:l().number}),boundaryOffset:l().shape({x:l().number,y:l().number}),menuListStyle:l().shape({maxWidth:l().string,maxHeight:l().string}),onKeyDown:l().func,menuDataTestId:l().string,closeParentMenu:l().func,parentRefs:l().arrayOf(l().shape({current:l().instanceOf(Element)}))},n.defaultProps={selfPortal:!1,showItemsTitle:!1,title:null,buttonType:"icon",alignPosition:d.Yo.BOTTOM_RIGHT,toggleHandler:function(){},ctClassName:"",shift:2,offset:{x:0,y:0},boundaryOffset:{x:10,y:10},menuListStyle:{},onKeyDown:void 0,menuDataTestId:"menu",closeParentMenu:function(){},parentRefs:[]},n},w=E({menuItemCls:"synofoto-menu-text-button"}),S=E({menuItemCls:"synofoto-menu-text-button-mobile"});t.Z=(0,m.C)(w,S)},79113:function(e,t,n){"use strict";var r=n(27412),i=n(7409),o=n(98848),a=n(45697),s=n.n(a),l=n(67294),u=n(94184),c=n.n(u),d=n(40492),f=n(15593),p=n(96904),h=n(82052),m=n(61630),g=n(1551),v={text:s().string.isRequired,textCls:s().string,className:s().string,color:s().string,shape:s().string,size:s().string,backgroundImage:s().string,title:s().string,alwaysShowTooltip:s().bool,getRef:s().func,onLongPress:s().func},y={textCls:"",className:"",color:"",shape:"",size:p.qE.MEDIUM,backgroundImage:"",title:null,alwaysShowTooltip:!1,getRef:function(){},onLongPress:function(){}},b=function(e){var t=(0,f.I0)(),n=e.className,a=e.title,s=e.alwaysShowTooltip,u=(e.onLongPress,(0,o._)(e,["className","title","alwaysShowTooltip","onLongPress"])),v=(0,h.Z)({tooltipStr:a}),y=v.tooltipTitle,b=v.setTooltipTargetRef,_=c()("synofoto-text-button",(0,r._)({},n,n)),E=(0,l.useCallback)(function(){setTimeout(function(){t((0,g.l)(p.ZP.GLOBAL_TOOLTIP_ID,!0))},50)},[t]),w=function(){(0,m.tq)()&&E(),e.onLongPress&&e.onLongPress()};return l.createElement(d.Av,(0,i._)({className:_,title:s?a:y,getTextRef:b,tipId:p.ZP.GLOBAL_TOOLTIP_ID,onLongPress:w},u))};b.propTypes=v,b.defaultProps=y,t.Z=b},32703:function(e,t,n){"use strict";var r=n(27412),i=n(45697),o=n.n(i),a=n(67294),s=n(94184),l=n.n(s),u=n(40492),c={text:o().string,iconCls:o().string,className:o().string,getRef:o().func,disabled:o().bool,handler:o().func},d={text:"",iconCls:"",className:"",getRef:function(){},disabled:!1,handler:function(){}};function f(e){var t=e.text,n=e.iconCls,i=e.className,o=e.getRef,s=e.disabled,c=e.handler,d=l()("synofoto-text-icon-button",(0,r._)({},i,i));return a.createElement(u.Rf,{text:t,iconCls:n,className:d,getRef:o,disabled:s,handler:c})}f.propTypes=c,f.defaultProps=d,t.Z=f},37276:function(e,t,n){"use strict";var r=n(45697),i=n.n(r),o=n(67294),a={className:i().string,text:i().string.isRequired},s={className:null},l=function(e){return o.createElement("span",{className:e.className,dangerouslySetInnerHTML:{__html:e.text}})};l.propTypes=a,l.defaultProps=s,t.Z=l},34752:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(45697),i=n.n(r),o=n(67294),a=n(94184),s=n.n(a),l=n(31202),u=n(79905),c=function(e){var t=e.message;return o.createElement("div",{className:"synofoto-loading-ct"},o.createElement(l.Z,null),t)};c.propTypes={message:i().string},c.defaultProps={message:(0,u.n6)("app","processing")};var d=c,f=n(96904),p=n(61403),h=n(40275),m=n(79113),g={cancelText:i().string,className:i().string,confirmDisabled:i().bool,confirmText:i().string,headerRightContent:i().node,content:i().node,handleCancel:i().func,handleConfirm:i().func,handleKeyDown:i().func,handleClose:i().func,isOpen:i().bool,isResizeable:i().bool,shouldCloseOnEsc:i().bool,showCancel:i().bool,showClose:i().bool,showConfirm:i().bool,title:i().string,footerMessage:i().element,showLoadingBox:i().bool,contentPadding:i().oneOf([f.k3.ALL,f.k3.TOP_AND_BOTTOM,f.k3.NONE]).isRequired},v={cancelText:(0,u.n6)("action","cancel"),className:"",confirmDisabled:!1,confirmText:(0,u.n6)("action","ok"),headerRightContent:null,content:null,handleCancel:void 0,handleConfirm:void 0,handleClose:void 0,handleKeyDown:void 0,isOpen:!1,isResizeable:!1,shouldCloseOnEsc:!1,showCancel:!1,showClose:!0,showConfirm:!0,title:"",footerMessage:null,showLoadingBox:!1},y=function(e){var t=e.cancelText,n=e.className,r=e.confirmDisabled,i=e.confirmText,a=e.headerRightContent,l=e.content,u=e.footerMessage,c=e.handleCancel,g=e.handleConfirm,v=e.handleClose,y=e.handleKeyDown,b=e.isOpen,_=e.isResizeable,E=e.shouldCloseOnEsc,w=e.showCancel,S=e.showClose,T=e.showConfirm,O=e.title,I=e.showLoadingBox,A=e.contentPadding,C="".concat(n," synofoto-general-dialog"),x=I?"synofoto-general-dialog-mask show-mask":"synofoto-general-dialog-mask",D=I?o.createElement("div",{className:"synofoto-general-dialog-loading-box"},o.createElement("div",{className:"synofoto-loading-box"},o.createElement(d,null))):null,R=function(e){if(e.key===f.VD.ESC){if(v){v();return}c()}y&&y(e)},L=s()("synofoto-general-dialog-content",{"synofoto-dialog-content-padding-all":A===f.k3.ALL,"synofoto-dialog-content-padding-top-and-bottom":A===f.k3.TOP_AND_BOTTOM});return o.createElement(o.Fragment,null,o.createElement(p.Z,{onKeyDown:R}),o.createElement(h.Z,{isOpen:b,isResizeable:_,title:O,className:C,headerRightContent:a,shouldCloseOnEsc:E,showCloseButton:S,closeButtonHandler:v||c},D,o.createElement("div",{className:x},o.createElement("div",{className:L},l),o.createElement("div",{className:"synofoto-general-dialog-footer"},o.createElement("div",{className:"footer-message-wrapper"},u),w&&o.createElement(m.Z,{text:t,handler:c,color:f.rp.GREY,shape:f.jL.OVAL}),T&&o.createElement(m.Z,{text:i,handler:g,color:f.rp.MAIN,shape:f.jL.OVAL,disabled:r})))))};y.propTypes=g,y.defaultProps=v;var b=y},42376:function(e,t,n){"use strict";var r=n(7409),i=n(99282),o=n(98848),a=n(24460),s=n(45697),l=n.n(s),u=n(67294),c=n(12258),d=n(37276),f=n(79113),p=n(13103),h=n(96904),m=n(61403),g=n(40275),v=n(79905),y=function(e){var t=e.message,n=e.showConfirm,s=e.showCancel,l=e.showClose,p=e.showDontShowAgain,y=e.confirmHandler,b=e.cancelHandler,_=e.cancelText,E=e.closeHandler,w=e.closeText,S=e.confirmText,T=e.confirmCls,O=e.className,I=e.isOpen,A=e.onAfterOpen,C=e.title,x=e.isStyledTitle,D=e.footerMessageIconCls,R=e.footerMessage,L=e.isFooterErrorMessage,k=e.footerContent,M=(0,o._)(e,["message","showConfirm","showCancel","showClose","showDontShowAgain","confirmHandler","cancelHandler","cancelText","closeHandler","closeText","confirmText","confirmCls","className","isOpen","onAfterOpen","title","isStyledTitle","footerMessageIconCls","footerMessage","isFooterErrorMessage","footerContent"]),P=(0,a._)((0,u.useState)(!1),2),N=P[0],F=P[1],B=function(e){n&&e.key===h.VD.ENTER&&y(N),s&&e.key===h.VD.ESC&&b()},U=function(){return u.createElement(c.Z,{className:"synofoto-external-convert-intro-dont-show-again",labelText:(0,v.n6)("action","dont_show_again"),checked:N,onChange:function(){return F(!N)}})},H=function(){if(!n&&!s&&!l)return null;var e=n&&s&&l?"synofoto-message-dialog-actions confirm":"synofoto-message-dialog-actions",t=L?"synofoto-message-dialog-footer-error-message-text":"synofoto-message-dialog-footer-message-text";return u.createElement("div",{className:"synofoto-message-dialog-footer"},u.createElement(m.Z,{onKeyDown:B}),u.createElement("div",{className:"synofoto-message-dialog-footer-left-actions"},""===D?null:u.createElement("div",{className:D}),""===R?null:u.createElement("div",{className:t},R),k,l&&u.createElement(f.Z,{text:w,handler:E,color:h.rp.GREY,shape:h.jL.OVAL})),u.createElement("div",{className:e},s&&u.createElement(f.Z,{text:_,handler:b,color:h.rp.GREY,shape:h.jL.OVAL}),n&&u.createElement(f.Z,{text:S,handler:function(){y(N)},color:h.rp.MAIN,shape:h.jL.OVAL,className:T})))},j=O?"synofoto-message-dialog ".concat(O):"synofoto-message-dialog";return u.createElement(g.Z,(0,i._)((0,r._)({},M),{isOpen:I,className:j,onAfterOpen:A,shouldCloseOnEsc:!1,title:x?u.createElement(d.Z,{text:C}):C}),t,p&&U(),H())};y.propTypes={message:l().node.isRequired,showConfirm:l().bool,showCancel:l().bool,showClose:l().bool,showDontShowAgain:l().bool,confirmHandler:l().func,cancelHandler:l().func,cancelText:l().string,closeHandler:l().func,closeText:l().string,confirmText:l().string,confirmCls:l().string,className:l().string,isOpen:l().bool,onAfterOpen:l().func,title:l().string,isStyledTitle:l().bool,footerMessageIconCls:l().string,footerMessage:l().string,footerContent:l().node,isFooterErrorMessage:l().bool},y.defaultProps={showConfirm:!1,showCancel:!1,showClose:!0,showDontShowAgain:!1,confirmHandler:function(){},cancelHandler:function(){},closeHandler:function(){},closeText:(0,v.n6)("action","close"),confirmText:(0,v.n6)("action","confirm"),confirmCls:"",className:"",isOpen:!1,cancelText:(0,v.n6)("action","cancel"),onAfterOpen:function(){},title:"",isStyledTitle:!1,footerMessageIconCls:"",isFooterErrorMessage:!1,footerMessage:"",footerContent:null};var b=function(e){return u.createElement(y,(0,i._)((0,r._)({},e),{className:"synofoto-message-dialog-mobile"}))};t.Z=(0,p.C)(y,b)},72793:function(e,t,n){"use strict";var r=n(27412),i=n(45697),o=n.n(i),a=n(67294),s=n(94184),l=n.n(s),u=n(65316),c=n(79905),d={className:o().string,iconClassName:o().string,description:o().string,hint:o().string,fullsize:o().bool,additionalContent:o().node},f={className:"",iconClassName:"synofoto-empty-photos-icon",description:(0,c.n6)("app","no_item"),hint:"",fullsize:!0,additionalContent:null},p=function(e){var t=e.iconClassName,n=e.description,i=e.fullsize,o=e.className,s=e.hint,c=e.additionalContent,d=(0,a.useRef)(null),f=(0,u.Z)();(0,a.useEffect)(function(){d.current.focus()},[]);var p=function(){return a.createElement("div",{className:"synofoto-empty-view-hint"},a.createElement("p",null,s))},h=l()("synofoto-empty-view-wrapper",o,{"synofoto-common-absolute-fullsize":i}),m=l()("synofoto-empty-view-icon",t,(0,r._)({},"synofoto__".concat(f),!0));return a.createElement("div",{className:h,ref:d,tabIndex:"0","data-testid":"empty-view-wrapper"},a.createElement("div",{className:"synofoto-empty-view"},a.createElement("div",{className:m,"data-testid":"empty-view-icon"}),a.createElement("div",{className:"synofoto-empty-view-description"},n),s?p():null,c))};p.propTypes=d,p.defaultProps=f,t.Z=p},61403:function(e,t,n){"use strict";var r=n(67294),i=[],o=function(){var e=i.length;0!==e&&i[e-1].handlers.forEach(function(e){document.removeEventListener("keydown",e)})},a=function(){var e=i.length;0!==e&&i[e-1].handlers.forEach(function(e){document.addEventListener("keydown",e)})},s=function(e){i.push({handlers:[e]}),document.addEventListener("keydown",e)},l=function(e,t){var n=i.findIndex(function(e){return e.handlerNamespace===t});-1===n?i.push({handlerNamespace:t,handlers:[e]}):i[n].handlers.push(e)};function u(e){var t=e.handlerNamespace,n=e.onKeyDown;return(0,r.useEffect)(function(){return o(),void 0===t?s(n):l(n,t),a(),function(){document.removeEventListener("keydown",n);var e=i.findIndex(function(e){return e.handlers.includes(n)});-1!==e&&(i[e].handlers.splice(i[e].handlers.findIndex(function(e){return e===n}),1),0===i[e].handlers.length&&i.splice(e,1)),a()}},[t,n]),null}t.Z=u},12258:function(e,t,n){"use strict";var r=n(27412),i=n(7409),o=n(99282),a=n(45697),s=n.n(a),l=n(67294),u=n(94184),c=n.n(u),d=n(99410),f=n(96904),p=n(7050),h=n(65316),m=n(71569),g=n(13103),v=function(){},y={className:s().string,checked:s().bool,wrapperTestId:s().string,dataTestId:s().string,disabled:s().bool,onChange:s().func,onMouseOver:s().func,onMouseLeave:s().func,labelText:s().string,title:s().oneOfType([s().oneOf([null]),s().string]),isSquare:s().bool,hintText:s().string,hintTextCls:s().string,hintIconTestId:s().string},b={className:"",checked:!1,wrapperTestId:void 0,dataTestId:void 0,disabled:!1,onChange:v,onMouseOver:void 0,onMouseLeave:void 0,labelText:"",title:null,isSquare:!1,hintText:"",hintTextCls:"",hintIconTestId:""},_=l.forwardRef(function(e,t){var n,i,o=e.className,a=e.checked,s=e.wrapperTestId,u=e.dataTestId,m=e.disabled,g=e.onChange,v=e.onMouseOver,y=e.onMouseLeave,b=e.labelText,_=e.title,E=e.isSquare,w=e.hintText,S=e.hintTextCls,T=e.hintIconTestId,O=(0,l.useRef)((0,d.x0)()),I=(0,h.Z)(),A=O.current,C=c()("synofoto-form-checkbox",(n={},(0,r._)(n,o,o),(0,r._)(n,"disabled",m),n)),x=c()("synofoto-form-checkbox-icon",(i={checked:a},(0,r._)(i,"synofoto__".concat(I),!0),(0,r._)(i,"square",E),i)),D="checkbox-tooltip-".concat(A);return l.createElement("div",{className:C,ref:t,"data-tooltip-id":f.ZP.GLOBAL_TOOLTIP_ID,"data-tooltip-content":_,"data-long-press-delay":f.LK.LONG_PRESS,"data-testid":s},l.createElement("input",{disabled:m,type:"checkbox",className:"synofoto-form-checkbox-input",checked:a,id:A,onChange:g}),l.createElement("label",{className:"synofoto-form-checkbox-label",htmlFor:A,"data-testid":u,onMouseOver:v,onMouseLeave:y},l.createElement("div",{className:x}),b&&l.createElement("span",{className:"synofoto-form-checkbox-label-text"},b,""!==w?l.createElement(l.Fragment,null,l.createElement("div",{className:"synofoto-form-checkbox-label-text-hint synofoto__".concat(I),"data-testid":T,"data-tooltip-id":D,"data-tooltip-place":"right","data-tooltip-content":w}),l.createElement(p.Z,{tipId:D,type:f.sZ.WHITE_TIP,place:"right",className:S,positionStrategy:"fixed"})):null)))});_.propTypes=y,_.defaultProps=b;var E=l.forwardRef(function(e,t){var n=(0,m.Z)().setGlobalTooltipTargetRef,r=function(e){n(e),t&&(t.current=e)};return l.createElement(_,(0,o._)((0,i._)({},e),{ref:r}))});E.propTypes=y,E.defaultProps=b,t.Z=(0,g.C)(_,E)},32572:function(e,t,n){"use strict";n.d(t,{Z:function(){return Q}});var r=n(27412),i=n(7409),o=n(99282),a=n(23930),s=n.n(a),l=n(45697),u=n.n(l),c=n(67294),d=n(94184),f=n.n(d),p=n(15593),h=n(37771),m=n(97192),g=n(24460),v={className:u().string.isRequired,delayTime:u().number},y={delayTime:0},b=function(e){var t,n=e.className,r=e.delayTime,i=(0,g._)((0,c.useState)(0===r),2),o=i[0],a=i[1],s=function(){clearTimeout(t),t=null};return((0,c.useEffect)(function(){return function(){s()}}),0!==r&&(t=setTimeout(function(){a(!0)},r)),o)?c.createElement("div",{"data-testid":"waiting-indicator",className:"synofoto-waiting-item ".concat(n)},c.createElement("div",{className:"synofoto-waiting-right-side"},c.createElement("div",{className:"synofoto-waiting-bar"})),c.createElement("div",{className:"synofoto-waiting-left-side"},c.createElement("div",{className:"synofoto-waiting-bar"}))):null};b.propTypes=v,b.defaultProps=y;var _=b,E=n(878),w=n(96904),S=n(11975),T=n(79173),O=n(53982),I=n(4040),A=function(e){return!!(0,I.mi)(e)&&["mpeg1video","mpeg2video"].includes(e.getIn(["additional","video_meta","video_codec"],""))},C=function(e){return!!(0,I.mi)(e)&&"vp9"===e.getIn(["additional","video_meta","video_codec"],"")},x=n(73849),D=function(e){var t=e.item,n=e.userId,r=e.hasFolderDownloadPermission,i={noPermissionLibrary:"",isVc1:!1,isHevc:!1,isMpeg1OrMpeg2:!1,isVp9:!1},o=t.get("owner_user_id")===n,a=0===t.get("owner_user_id");return a||o?!a||r||(0,x.Z)()||(i.noPermissionLibrary=w.Zu.TEAM):i.noPermissionLibrary=w.Zu.PERSONAL,(0,S.Z)(t)&&(i.isVc1=!0),((0,T.Z)(t)||(0,O.Z)(t))&&(i.isHevc=!0),A(t)&&(i.isMpeg1OrMpeg2=!0),C(t)&&(i.isVp9=!0),i},R=n(47524),L=n(17963),k=n(28081),M=n(83861),P=null,N=new WeakMap,F=new Set,B=new WeakMap,U=function(){var e=R.Z.getStore();return M.Z.hasSeenExternalConvertTopToast(e.getState())},H=function(){return P||(P=new IntersectionObserver(function(e){e.forEach(function(e){if(N.has(e.target)){var t=N.get(e.target),n=t.dispatch,r=t.isInViewRef,i=t.externalConvertTask,o=t.externalConvertFlags,a=o.noPermissionLibrary,s=o.isVc1,l=o.isHevc,u=o.isMpeg1OrMpeg2,c=o.isVp9,d=U();if(e.isIntersecting){if(!d&&!r.current){var f=requestIdleCallback(function(){B.delete(e.target),n((0,k.ck)(a,s,l,u,c))},{timeout:10});B.set(e.target,f),r.current=!0}i.length>0&&requestIdleCallback(function(){n((0,L.DK)(i))});return}if(!d&&r.current){if(B.has(e.target)){var p=B.get(e.target);B.delete(e.target),cancelIdleCallback(p)}else requestIdleCallback(function(){n((0,k.I)(a,s,l,u,c))},{timeout:10});r.current=!1}}})},{root:null,threshold:.8}))},j=function(){var e=(0,p.I0)(),t=(0,c.useRef)(!1);return{observe:(0,c.useCallback)(function(n,r){var i=r.itemId,o=r.externalConvertTask,a=r.externalConvertFlags;if(n){var s=H();N.set(n,{dispatch:e,isInViewRef:t,externalConvertTask:o,externalConvertFlags:a}),s.observe(n),F.add(i)}},[e]),unobserve:(0,c.useCallback)(function(n,r){var i=r.itemId;if(n){if(P&&P.unobserve(n),t.current&&!U()){if(B.has(n)){var o=B.get(n);B.delete(n),cancelIdleCallback(o)}else{if(!N.has(n))return;var a=N.get(n).externalConvertFlags,s=a.noPermissionLibrary,l=a.isVc1,u=a.isHevc,c=a.isMpeg1OrMpeg2,d=a.isVp9;e((0,k.I)(s,l,u,c,d))}}N.delete(n),F.delete(i),0===F.size&&P&&(P.disconnect(),P=null)}},[e])}},V=n(87207),z=n(78141),Z=n(30897),G=n(75804),W=n(47739),q=n(22287),Y=n(25480),$=n(50507),K=n(72181),X=function(e){var t=e.item,n=e.SelectableEl,a=e.itemClassName,s=e.className,l=e.children,u=e.onClick,d=e.width,m=e.height,g=e.style,v=e.time,y=e.getItemThumbnailURL,b=e.allowSelect,S=e.embeddedInDialog,T=(0,p.I0)(),O=(0,c.useRef)(null),A=(0,c.useRef)(!1),C=t.get("id"),x=t.get("type"),R=t.get("additional").toJS(),L=t.get("filename"),k=t.get("owner_user_id"),M=(0,Y.Z)(k),P=R.thumbnailUnitId,N=(0,z.Z)({thumbnailUnitId:P,thumbnailLibrary:M}),F=y({id:C,thumbnailInfo:N,type:"item",preferSize:(0,q.$E)(),library:M}),B=(0,I.YJ)(x,N),U=(0,p.v9)($.Z.getSelectMode),H=(0,p.v9)(K.Z.getUserId),X=j(),Q=X.observe,J=X.unobserve,ee=(0,V.Z)(),et=ee.isSupportAutoGenerateThumbnail,en=ee.hasVc1,er=ee.hasH264,ei=ee.pcClientHevcSupport,eo=ee.pcClientVc1Support,ea=ee.canUseVideoTranscoding;(0,c.useEffect)(function(){if(O.current&&!S){var e=(0,Z.Z)(N),n=(0,G.Z)(t),r=e||n,i=t.get("id");if(r&&!A.current){var o=et&&e?(0,E.Z)({item:t,thumbnailInfo:N,userId:H,hasFolderDownloadPermission:!1,hasVc1:en,hasH264:er,pcClientHevcSupport:ei,pcClientVc1Support:eo,canUseVideoTranscoding:ea}):[],a=D({item:t,userId:H,hasFolderDownloadPermission:!1});Q(O.current,{itemId:i,externalConvertTask:o,externalConvertFlags:a}),A.current=!0;return}!r&&A.current&&(J(O.current,{itemId:i}),A.current=!1)}},[T,et,S,t,N,H,en,er,ei,eo,ea,Q,J]),(0,c.useEffect)(function(){var e=O.current;return function(){A.current&&(J(e,{itemId:C}),A.current=!1)}},[C,J]);var es=f()(s,"synofoto-clickable-area",{"synofoto-common-pointer":!U}),el=(0,c.useCallback)(function(){U||S||u()},[U,S,u]),eu=(0,r._)({},C,(0,o._)((0,i._)({time:v,sort_time_in_sec:t.get("sort_time_in_sec"),owner_user_id:k,provider_user_id:R.provider_user_id,thumbnailUnitId:P,filename:L,type:x,live_type:t.get("live_type"),codec:(0,W.Z)(t)},t.has("similar")&&{similar:t.get("similar")}),{favorite:!!R.favorite}));return c.createElement("div",{className:es,style:g,onClick:el,"data-testid":"synofoto-item-clickable-area",ref:function(e){O.current=e}},c.createElement("div",{className:a},c.createElement(n,{type:w.RT.ITEM,idArray:[C],infoMap:eu,allowSelect:b},c.createElement(h.Z,{imageHeight:m,imageWidth:d,imageUrl:F,imageId:C,isVideo:(0,I.mi)(t),isSupportAutoGenerateThumbnail:et,pcClientHevcSupport:ei,codec:(0,W.Z)(t)}),B&&c.createElement(_,{className:"synofoto-waiting-image-convert"})),l))};X.propTypes={item:s().map.isRequired,className:u().string,children:u().element,SelectableEl:u().elementType,onClick:u().func,itemClassName:u().string,width:u().number,height:u().number,style:u().shape({width:u().number,display:u().string}),time:u().number,getItemThumbnailURL:u().func,allowSelect:u().bool,embeddedInDialog:u().bool},X.defaultProps={className:"",children:null,SelectableEl:m.Z,onClick:void 0,itemClassName:"synofoto-item-timeline-item",width:void 0,height:void 0,style:void 0,time:0,getItemThumbnailURL:void 0,allowSelect:!0,embeddedInDialog:!1};var Q=X},68776:function(e,t,n){"use strict";var r=n(23930),i=n.n(r),o=n(45697),a=n.n(o),s=n(67294),l=n(94184),u=n.n(l),c=n(96904),d=n(67479),f=n(4040),p=function(e){var t=e.item,n=e.groupUnit,r=t.get("type"),i=(0,f.mi)(t),o=r.indexOf("360")===r.length-3,a=r.indexOf("burst")>=0,l=u()({"synofoto-indicator-video":i&&!o,"synofoto-indicator-360":o,"synofoto-indicator-burst":a}),p=function(){if(r===c.qG.PHOTO)return null;var e=t.getIn(["additional","video_meta","duration"],0),o=t.getIn(["additional","resolution","width"]),a=t.getIn(["additional","resolution","height"])>o&&"month"===n;return i&&!a?s.createElement("div",{className:"synofoto-video-duration"},(0,d.LU)(e)):null};return s.createElement("div",{className:"synofoto-item-top-indicator"},p(),s.createElement("div",{className:l,"data-testid":"item-top-indicator"}))};p.propTypes={item:i().map.isRequired,groupUnit:a().string},p.defaultProps={groupUnit:"day"},t.Z=p},76888:function(e,t,n){"use strict";var r=n(24460),i=n(45697),o=n.n(i),a=n(67294),s={delayTime:o().number},l={delayTime:0},u=function(e){var t,n=e.delayTime,i=(0,r._)((0,a.useState)(0===n),2),o=i[0],s=i[1],l=function(){clearTimeout(t),t=null};return((0,a.useEffect)(function(){return function(){l()}}),0!==n&&(t=setTimeout(function(){s(!0)},n)),o)?a.createElement("div",{className:"synofoto-empty-view"},a.createElement("div",{className:"synofoto-large-loading","data-testid":"large-loading-animation"},a.createElement("svg",{viewBox:"25 25 50 50"},a.createElement("circle",{cx:"50",cy:"50",r:"20"})))):null};u.propTypes=s,u.defaultProps=l,t.Z=u},91250:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(45697),i=n.n(r),o=n(67294),a=n(7019),s=n(15593),l=n(37276),u=n(96904),c=n(79113),d={imgCls:i().string.isRequired,lightboxErrTestId:i().string,message:i().oneOfType([i().string,i().element]),showButton:i().bool.isRequired,buttonText:i().string,buttonHandler:i().func,isButtonDisabled:i().bool,title:i().string,showDotDotDotAnimate:i().bool},f={lightboxErrTestId:"",buttonText:"",buttonHandler:function(){},isButtonDisabled:!1,message:"",title:"",showDotDotDotAnimate:!1},p=function(e){var t=e.imgCls,n=e.lightboxErrTestId,r=e.message,i=e.showButton,a=e.buttonText,s=e.buttonHandler,l=e.isButtonDisabled,d=e.title,f=e.showDotDotDotAnimate,p=d&&r?o.createElement("div",{className:"synofoto-item-image-lightbox-error-title"},d):null,h=r||d,m="synofoto-item-image-lightbox-error-content-dot-animate",g=f?o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(m,"-0")},"."),o.createElement("span",{className:"".concat(m,"-1")},"."),o.createElement("span",{className:"".concat(m,"-2")},".")):null,v=i?o.createElement(c.Z,{ariaLabel:"synofoto-item-image-lightbox-error-button",className:"synofoto-item-image-lightbox-error-button",handler:s,text:a,color:u.rp.GREY,shape:u.jL.OVAL,disabled:l}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:t,"data-testid":n}),o.createElement("div",{className:"synofoto-item-image-lightbox-error-content"},p,h,g),v)};p.propTypes=d,p.defaultProps=f;var h=p,m={message:i().oneOfType([i().string,i().element]),title:i().string,imgCls:i().string.isRequired,lightboxErrTestId:i().string,showDotDotDotAnimate:i().bool},g={message:"",title:"",lightboxErrTestId:"",showDotDotDotAnimate:!1},v=function(e){var t=e.message,n=e.title,r=e.imgCls,i=e.lightboxErrTestId,a=e.showDotDotDotAnimate,s=n&&t?o.createElement("div",{className:"synofoto-item-image-lightbox-error-title"},n):null,l=t||n,u="synofoto-item-image-lightbox-error-content-dot-animate",c=a?o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(u,"-0")},"."),o.createElement("span",{className:"".concat(u,"-1")},"."),o.createElement("span",{className:"".concat(u,"-2")},".")):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:r,"data-testid":i}),o.createElement("div",{className:"synofoto-item-image-lightbox-error-content-mobile"},s,l,c))};v.propTypes=m,v.defaultProps=g;var y=v,b=(0,n(13103).C)(h,y),_=n(87207),E=n(79905),w=n(94599),S=n(76408),T=n(92319),O=n(13801),I=function(e){var t="";return e===u.Zu.PERSONAL?_S("is_admin")?t=o.createElement(l.Z,{text:(0,E.n6)("error","personal_space_disable_msg_for_admin")}):t=(0,E.n6)("error","personal_space_disable_msg_for_user"):e===u.Zu.TEAM&&(_S("is_admin")?t=(0,E.n6)("error","shared_space_disable_msg_for_admin"):t=(0,E.n6)("error","shared_space_disable_msg_for_user")),t},A=n(47524),C=n(46677),x=n(93604),D=n(72181),R=n(5943),L=n(61630),k=n(73849),M=n(94706),P=function(e,t){return o.createElement(l.Z,{text:(0,w.Z)(e,t)})},N=function(e,t){var n,r=null===(n=A.Z.getStore())||void 0===n?void 0:n.getState(),i=x.Z.getBrowserExtensionEnabled(r),s=x.Z.getPcClientEnabled(r),u=x.Z.getPcClientHevcSupport(r),c=S.Z.getAutoGenerateThumbnail(r);if(!i)return{message:(0,E.n6)("warning","no_extension_or_pc_client_desc"),options:{title:(0,E.n6)("warning","no_extension_or_pc_client_title"),confirmText:(0,E.n6)("action","view_detail_capital"),confirmHandler:function(){return(0,M.zL)()}}};if(!s)return{message:(0,E.n6)("warning","no_pc_client_desc"),options:{title:(0,E.n6)("warning","no_pc_client_title"),confirmText:(0,E.n6)("action","view_detail_capital"),confirmHandler:function(){return(0,M.zL)()}}};if(t&&!u)return(0,R.eE)()?{message:o.createElement(l.Z,{text:(0,E.n6)("warning","cannot_convert_with_this_device_desc_without_learn_more")}),options:{title:(0,E.n6)("warning","cannot_convert_with_this_device_title"),confirmText:(0,E.n6)("common","learn_more"),confirmHandler:function(){return window.open(a.SynoDocsLinks.UseMobileGuide)}}}:{message:o.createElement(l.Z,{text:(0,E.n6)("warning","install_pc_client_codec_desc")}),options:{title:(0,E.n6)("warning","install_pc_client_codec_title"),confirmText:(0,E.n6)("action","open_pc_client"),confirmHandler:function(){window.open(a.PcClientSettingsCodecProtocol,"_self")}}};if(!c){var d=o.createElement(l.Z,{text:(0,E.n6)("warning","not_enable_auto_convert_desc")}),f=function(){e((0,C.Gk)())};return{message:d,options:{title:(0,E.n6)("warning","not_enable_auto_convert_title"),confirmText:(0,E.n6)("action","allow"),confirmHandler:f}}}return{isConverting:!0}},F=function(e,t){var n,r,i,s=null===(n=A.Z.getStore())||void 0===n?void 0:n.getState(),c=x.Z.getCanUsePcClient(s),d=S.Z.getAutoGenerateThumbnail(s);if(!c)return t===u.V9.HEVC?(r=P((0,E.n6)("warning","video_suggest_install_image_assistant_and_change_browser"),a.SynoDocsLinks.HevcCannotPlay),i=(0,E.n6)("warning","video_suggest_install_image_assistant_and_change_browser_title")):(r=o.createElement(l.Z,{text:(0,E.n6)("warning","video_suggest_install_image_assistant")}),i=(0,E.n6)("warning","video_suggest_install_image_assistant_title")),{message:r,options:{title:i,confirmText:(0,E.n6)("action","view_detail_capital"),confirmHandler:function(){return(0,M.yo)()}}};var f=x.Z.getPcClientHevcSupport(s),p=t===u.V9.HEVC&&!f||(t===u.V9.MPEG2||t===u.V9.MPEG1)&&!x.Z.getPcClientMpeg2Support(s)||t===u.V9.VP9&&!x.Z.getPcClientVp9Support(s),h=t===u.V9.HEVC&&!f||t===u.V9.VC1||t===u.V9.VP9;if(!(0,R.eE)()&&p)return{message:o.createElement(l.Z,{text:(0,E.n6)("warning","install_pc_client_codec_desc")}),options:{title:(0,E.n6)("warning","install_pc_client_codec_title"),confirmText:(0,E.n6)("action","open_pc_client"),confirmHandler:function(){window.open(a.PcClientSettingsCodecProtocol,"_self")}}};if((0,R.eE)()&&h)return{message:o.createElement(l.Z,{text:(0,E.n6)("warning","cannot_convert_with_this_device_desc_without_learn_more")}),options:{title:(0,E.n6)("warning","cannot_convert_with_this_device_title"),confirmText:(0,E.n6)("common","learn_more"),confirmHandler:function(){return window.open(a.SynoDocsLinks.UseMobileGuide)}}};if(!d){var m=o.createElement(l.Z,{text:(0,w.Z)((0,E.n6)("warning","enable_image_assistant_desc"),a.SynoDocsLinks.AutoConvertExtensionAndDesktopApp)}),g=function(){e((0,C.Gk)())};return{message:m,options:{title:(0,E.n6)("warning","enable_image_assistant_title"),confirmText:(0,E.n6)("action","allow"),confirmHandler:g}}}return{isConverting:!0}},B=function(e,t,n){return(0,L.tq)()?{message:P((0,E.n6)("warning","rwd_external_convert_not_supported_desc"),a.SynoDocsLinks.HeicThumbnailCannotDisplay),options:{title:(0,E.n6)("warning","rwd_external_convert_not_supported_title")}}:n?F(e,t):N(e,t===u.V9.HEIC)},U=function(e){return{message:P(e?(0,E.n6)("warning","cant_show_video_thumbnail_and_notify_owner"):(0,E.n6)("warning","format_not_support_browsing_contact_owner"),a.SynoDocsLinks.UserNoPermission),options:{title:e?(0,E.n6)("warning","external_convert_intro_video_title"):(0,E.n6)("warning","cant_show_image_thumbnail_title")}}},H=function(e){return{message:P(e?(0,E.n6)("warning","cant_show_video_thumbnail_and_notify_admin"):(0,E.n6)("warning","format_not_support_browsing_contact_admin"),a.SynoDocsLinks.UserNoPermission),options:{title:e?(0,E.n6)("warning","external_convert_intro_video_title"):(0,E.n6)("warning","cant_show_image_thumbnail_title")}}},j=function(e){return{message:e===u.V9.HEVC?P((0,E.n6)("error","cannot_play_with_embedded_url"),a.SynoDocsLinks.HevcCannotPlay):(0,E.n6)("warning","cannot_identify_file"),options:{imgCls:"synofoto-item-video-broken-large"}}},V=function(e,t){return e?j(t):{message:(0,E.n6)("warning","format_not_support_browsing"),options:{title:(0,E.n6)("warning","cant_show_image_thumbnail_title")}}},z=function(e){var t,n=e.isGuest,r=e.fileOwnerUserId,i=e.hasTeamSpaceDownloadPermission,o=e.codec,a=void 0===o?"":o,s=e.isVideo,l=void 0!==s&&s,u=e.dispatch,c=void 0===u?function(){}:u,d=null===(t=A.Z.getStore())||void 0===t?void 0:t.getState(),f=D.Z.getUserId(d);return n?V(l,a):0!==r?f===r?B(c,a,l):U(l):(0,k.Z)()||i?B(c,a,l):H(l)},Z={fileOwnerUserId:i().number,folderId:i().number,handleClick:i().func,hidden:i().bool,library:i().string,thumbnailStatus:i().string.isRequired,codec:i().string,isVideo:i().bool},G={fileOwnerUserId:-1,folderId:-1,handleClick:function(){},hidden:!1,library:u.Zu.TEAM,codec:"",isVideo:!1},W=function(e){var t=e.fileOwnerUserId,n=e.folderId,r=e.handleClick,i=e.hidden,c=e.library,d=e.thumbnailStatus,f=e.codec,p=e.isVideo,h=(0,s.I0)(),m=(0,s.v9)(S.Z.getTeamSpacePermission)===u.El.MANAGE,g=(0,s.v9)(T.Z.getCurrentFolderId),v=(0,s.v9)(T.Z.getCurrentFolderPermission),y=(0,_.Z)(),A=y.isSupportAutoGenerateThumbnail,C=y.pcClientHevcSupport;if(i)return null;var x=function(){if(d===u.yL.SpaceDisable)return o.createElement(b,{imgCls:"synofoto-item-image-space-disable-large",message:I(c),showButton:!1});if(d===u.yL.Converting)return o.createElement(b,{imgCls:"synofoto-item-image-converting-large",message:(0,E.n6)("lightbox","converting_please_wait"),lightboxErrTestId:"lightbox-image-converting",showButton:!1,showDotDotDotAnimate:!0});if(d===u.yL.Regenerating)return o.createElement(b,{imgCls:"synofoto-item-image-auto-converting-large",message:(0,E.n6)("lightbox","converting_please_wait"),lightboxErrTestId:"lightbox-image-regenerating",showButton:!1,showDotDotDotAnimate:!0});if(d===u.yL.AmeDefect){var e=!SYNO.SDS.Session.isLogined,r=!1;-1!==g&&n===g&&(r=v.get(u._I.DOWNLOAD));var i=z({isGuest:e,fileOwnerUserId:t,hasTeamSpaceDownloadPermission:m||r,codec:f,isVideo:p,dispatch:h}),s=(0,O.Z)({codec:f,pcClientHevcSupport:C,isSupportAutoGenerateThumbnail:A});if(s===u.yL.Broken){var y=f===u.V9.HEVC?o.createElement(l.Z,{text:(0,w.Z)((0,E.n6)("warning","cannot_convert_with_this_device_desc"),a.SynoDocsLinks.UseMobileGuide)}):"";return o.createElement(b,{imgCls:p?"synofoto-item-video-broken-large":"synofoto-item-image-broken-large",title:(0,E.n6)("warning","cannot_identify_file"),message:y,showButton:!1})}if(i.isConverting&&"auto-converting"===s)return o.createElement(b,{imgCls:"synofoto-item-image-auto-converting-large",message:(0,E.n6)("lightbox","converting_please_wait"),lightboxErrTestId:"lightbox-image-external-convert",showButton:!1,showDotDotDotAnimate:!0});var _=p?"synofoto-item-video-need-external-convert-large":"synofoto-item-image-need-external-convert-large";return i.options.imgCls&&(_=i.options.imgCls),o.createElement(b,{imgCls:_,message:i.message,title:i.options.title,lightboxErrTestId:"lightbox-image-external-convert",showButton:void 0!==i.options.confirmText,buttonText:i.options.confirmText,buttonHandler:i.options.confirmHandler})}return o.createElement(o.Fragment,null,o.createElement("div",{className:p?"synofoto-item-video-broken-large":"synofoto-item-image-broken-large","data-testid":"lightbox-image-broken"}),o.createElement("div",{className:"synofoto-item-image-lightbox-error-content"},(0,E.n6)("warning","cannot_identify_file")))};return o.createElement("div",{className:"synofoto-lightbox-image synofoto-lightbox-error-indicator",onClick:r,"data-testid":"lightbox-error-indicator-clickable-area"},x())};W.propTypes=Z,W.defaultProps=G;var q=W},74766:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(98848),i=n(24460),o=n(23930),a=n.n(o),s=n(18939),l=n(45697),u=n.n(l),c=n(67294),d=n(76970),f=n.n(d),p=n(94184),h=n.n(p),m=n(22902),g=n(38709),v=n(35369),y=function(e){var t=e.data,n=e.renderItem,r=e.rowIdx,i=e.rowPadding,o=e.firstRowPadding,a=e.getRowKey,s=[],l=t.get("list",v.default.List());if(0===l.size)s.push(n(r,-1));else for(var u=0;u<l.size;u++)s.push(n(r,u));return c.createElement("div",{key:"row_wrapper_".concat(a(r)),className:"synofoto-row-wrapper","data-testid":"row-wrapper",style:{paddingTop:0===r&&null!==o?o:i}},s)};y.propTypes={data:a().map.isRequired,renderItem:u().func.isRequired,rowIdx:u().number.isRequired,rowPadding:u().number.isRequired,firstRowPadding:u().number,getRowKey:u().func},y.defaultProps={firstRowPadding:null,getRowKey:function(e){return e}};var b=c.memo(y,function(e,t){return(0,v.is)(e.data,t.data)&&e.rowIdx===t.rowIdx}),_=n(76888),E=n(61630),w=c.forwardRef(function(e,t){var n=e.className,o=e.handleScroll,a=e.handleResize,l=e.widthPadding,u=e.widthPaddingLeft,d=e.bottomPadding,p=e.renderExpandButton,v=e.spaceBetweenRows1AndRows2,y=e.scrollDebounceTime,_=e.setScrollZoneRef,w=e.bottomLoadingIndicator,S=e.FooterElem,T=e.header,O=e.listType,I=e.rows,A=e.rowPadding,C=e.renderItem,x=e.firstRowPadding,D=e.sizeEstimator,R=e.itemSizeGetter,L=e.getData,k=e.getRowsSize,M=e.getRowKey,P=e.emptyComponent,N=e.rowsIsLoaded,F=e.loadingIndicator,B=e.scrollIndex,U=e.header2,H=e.listType2,j=e.rows2,V=e.rowPadding2,z=e.renderItem2,Z=e.firstRowPadding2,G=e.sizeEstimator2,W=e.itemSizeGetter2,q=e.listClassName2,Y=e.threshold,$=(0,i._)((0,c.useState)(!1),2),K=$[0],X=$[1],Q=(0,i._)((0,c.useState)(!1),2),J=Q[0],ee=Q[1],et=(0,c.useRef)(0),en=(0,c.useRef)(null),er=(0,c.useRef)(null),ei=(0,c.useRef)(null),eo=(0,c.useRef)(null),ea=k?k():I.size,es=j&&j.size>0;(0,c.useImperativeHandle)(t,function(){var e=function(){return ei.current?ei.current.getVisibleRange():[0,0]},t=function(t){var n=(0,i._)(e(),2),r=n[0],o=n[1];return t>r&&t<o};return{getClientHeight:function(){return er.current.clientHeight},getVisibleRange:e,isEntireItemVisible:t,scrollListAround:function(e){ei.current&&ei.current.scrollAround(e)},scrollTo:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];X(!0),t?er.current.scrollTop=(er.current.scrollHeight-er.current.clientHeight)*e/100:er.current.scrollTop=e}}});var el=(0,c.useCallback)(function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return requestAnimationFrame(function(){o({scrollTop:t,scrollHeight:n,clientHeight:r})})},[o]),eu=(0,c.useMemo)(function(){return(0,m.Z)(function(e){el({scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,clientHeight:e.clientHeight})},y)},[y,el]),ec=(0,c.useMemo)(function(){return(0,g.Z)(function(e){en.current&&clearTimeout(en.current),e>et.current?(ee(!0),en.current=setTimeout(function(){ee(!1)},500)):ee(!1),et.current=e},100)},[]);(0,c.useEffect)(function(){return er.current.focus(),function(){en.current&&clearTimeout(en.current),ec.cancel()}},[ec]),(0,c.useEffect)(function(){return function(){eu.cancel()}},[eu]),(0,c.useEffect)(function(){B>=0&&ei.current&&ei.current.scrollAround(B)},[B]);var ed=function(e){var t=e.target,n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;if(er.current.focus(),S&&ec(n),K){el({scrollTop:n,scrollHeight:r,clientHeight:i}),X(!1);return}eu({scrollTop:n,scrollHeight:r,clientHeight:i})},ef=function(e){var t=e.entry,n=(0,r._)(e,["entry"]);requestAnimationFrame(function(){return t&&a(t,n)})},ep=function(e){if(e>=ea)return null;var t=L?L(e):I.get(e);return c.createElement(b,{key:"row_".concat(M(e)),getRowKey:M,renderItem:C,rowIdx:e,data:t,rowPadding:A,firstRowPadding:x})},eh=function(e){return e>=j.size?null:c.createElement(b,{key:"row2_".concat(e),renderItem:z,rowIdx:e,data:j.get(e),rowPadding:V,firstRowPadding:Z})},em=function(){return(void 0===I||0===ea)&&P?P:N?c.createElement(f(),{key:"list_1",itemSizeEstimator:D,itemSizeGetter:R,itemRenderer:ep,length:ea,threshold:Y,type:O,ref:ei}):F},eg=function(){return es?c.createElement(f(),{key:"list_2",itemSizeEstimator:G,itemSizeGetter:W,itemRenderer:eh,length:j.size,threshold:Y,type:H,className:q,ref:eo}):null},ev=function(){return es&&p?c.createElement("div",{className:"synofoto-expand-button-wrapper","data-testid":"expand-button-wrapper"},p()):null},ey=function(){return es&&0!==v?c.createElement("div",{style:{height:"".concat(v,"px")},"data-testid":"space-between-rows1-and-rows2"}):null},eb=h()(n,"synofoto-list-scroll",{"in-mobile":(0,E.tq)()});return c.createElement(c.Fragment,null,c.createElement("div",{tabIndex:0,"data-testid":"list-root-wrapper",className:eb,onScroll:ed,onWheel:function(e){e.stopPropagation()},ref:function(e){er.current=e,_(e)}},c.createElement(s.Z,{onResize:ef},function(e){var t=e.measureRef;return c.createElement("div",{ref:t,className:"synofoto-common-absolute-fullwidth",style:{right:l,left:void 0!==u?u:l},"data-testid":"list-root"},T,eg(),ev(),ey(),U,em(),w||c.createElement("div",{"data-testid":"list-bottom-loading-indicator",style:{height:d}}))})),S&&c.createElement(S,{isHidden:J}))});w.propTypes={className:u().string,handleScroll:u().func,handleResize:u().func.isRequired,widthPadding:u().number,widthPaddingLeft:u().number,bottomPadding:u().number,renderExpandButton:u().func,spaceBetweenRows1AndRows2:u().number,scrollIndex:u().number,scrollDebounceTime:u().number,setScrollZoneRef:u().func,bottomLoadingIndicator:u().node,FooterElem:u().elementType,header:u().node,listType:u().string,rows:a().list.isRequired,rowPadding:u().number,renderItem:u().func.isRequired,firstRowPadding:u().number,sizeEstimator:u().func,itemSizeGetter:u().func,getData:u().func,getRowsSize:u().func,getRowKey:u().func,emptyComponent:u().node,rowsIsLoaded:u().bool,loadingIndicator:u().node,header2:u().node,listType2:u().string,rows2:a().list,rowPadding2:u().number,renderItem2:u().func,firstRowPadding2:u().number,sizeEstimator2:u().func,itemSizeGetter2:u().func,listClassName2:u().string,threshold:u().number},w.defaultProps={className:"",handleScroll:function(){},widthPadding:0,widthPaddingLeft:void 0,bottomPadding:0,renderExpandButton:null,spaceBetweenRows1AndRows2:0,scrollIndex:-1,scrollDebounceTime:500,setScrollZoneRef:function(){},bottomLoadingIndicator:null,FooterElem:void 0,header:null,listType:"uniform",rowPadding:0,firstRowPadding:null,sizeEstimator:void 0,itemSizeGetter:void 0,getData:void 0,getRowsSize:void 0,getRowKey:function(e){return e},emptyComponent:null,rowsIsLoaded:!0,loadingIndicator:c.createElement(_.Z,{delayTime:1e3}),header2:null,listType2:"uniform",rows2:void 0,rowPadding2:0,renderItem2:void 0,firstRowPadding2:null,sizeEstimator2:void 0,itemSizeGetter2:void 0,listClassName2:"",threshold:500};var S=w},31202:function(e,t,n){"use strict";var r=n(67294),i=function(){return r.createElement("div",{className:"synofoto-loading-animation","data-testid":"loading-animation"},r.createElement("div",{className:"synofoto-css-loading-animation"}))};t.Z=i},48977:function(e,t,n){"use strict";n.d(t,{M:function(){return f},Z:function(){return h}});var r=n(7409),i=n(98848),o=n(24460),a=n(45697),s=n.n(a),l=n(67294),u=n(99410),c=n(42416),d=function(e){var t=e.listening,n=void 0===t||t,r=e.selfRef,i=e.ignoreRefs,o=void 0===i?[]:i,a=e.parentRefs,s=void 0===a?[]:a,u=e.clickOutsideCallback,c=void 0===u?function(){}:u,d=e.clickParentsOnlyCallback,f=void 0===d?function(){}:d,p=function(e,t){return e.some(function(e){return!!e&&!!e.current&&e.current.contains(t)})},h=(0,l.useCallback)(function(e){if(!p(o,e.target)){var t=p(s,e.target),n=r.current&&r.current.contains(e.target);t||n||c(),t&&!n&&f()}},[o,s,r,c,f]);(0,l.useEffect)(function(){return n?(document.addEventListener("mousedown",h),document.addEventListener("touchmove",h),function(){document.removeEventListener("mousedown",h),document.removeEventListener("touchmove",h)}):(document.removeEventListener("mousedown",h,!1),document.removeEventListener("touchmove",h,!1),function(){})},[n,h,r,s])},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};return(0,l.createContext)({setHasChild:e})}(),p=function(e){var t=e.isOpen,n=e.onRequestClose,a=e.children,s=e.getRef,u=e.menuId,p=e.menuDataTestId,h=e.menuListStyle,m=e.parentRefs,g=e.ignoreRefs,v=e.closeParentMenu,y=e.isSubMenuOpen,b=(0,i._)(e,["isOpen","onRequestClose","children","getRef","menuId","menuDataTestId","menuListStyle","parentRefs","ignoreRefs","closeParentMenu","isSubMenuOpen"]),_=(0,l.useRef)(null),E=(0,o._)((0,l.useState)(!1),2),w=E[0],S=E[1],T=(0,l.useMemo)(function(){return{setHasChild:S}},[S]),O=function(){y&&v()};d({listening:!w&&t,selfRef:_,parentRefs:m,ignoreRefs:g,clickOutsideCallback:function(){n(),O()},clickParentsOnlyCallback:n});var I=function(e){s&&s(e),_.current=e};return l.createElement(f.Provider,{value:T},l.createElement(c.Z,(0,r._)({className:"synofoto-menu-modal",overlayClassName:"synofoto-menu-overlay",role:"menu",isOpen:t,onRequestClose:n,shouldFocusAfterRender:!1,contentInnerRef:I},b),l.createElement("div",{className:"synofoto-menu-list",style:(0,r._)({},h),id:u,"data-menu-id":u,"data-testid":p},a)))};p.propTypes={children:s().node.isRequired,isOpen:s().bool.isRequired,onRequestClose:s().func.isRequired,getRef:s().func,menuId:s().string,menuDataTestId:s().string,menuListStyle:s().shape({maxWidth:s().string,maxHeight:s().string}),parentRefs:s().arrayOf(s().shape({current:s().instanceOf(Element)})),ignoreRefs:s().arrayOf(s().shape({current:s().instanceOf(Element)})),closeParentMenu:s().func,isSubMenuOpen:s().bool},p.defaultProps={getRef:function(){},menuId:(0,u.x0)(),menuDataTestId:"menu",menuListStyle:{},parentRefs:[],ignoreRefs:[],closeParentMenu:function(){},isSubMenuOpen:!1};var h=p},40491:function(e,t,n){"use strict";var r=n(45697),i=n.n(r),o=n(67294),a=n(99410),s=n(32703),l=n(83797),u=n(47407),c=n(79113),d=function(e){var t=e.menu,n=e.closeMenu,r=e.menuItemCls,i=e.showItemsTitle,d=e.parentRefs;return t.filter(function(e){return!e.hidden}).map(function(e){if(e.component)return e.component((0,a.x0)(),n,d);if(e.text&&e.iconCls)return"right"===e.iconPosition?o.createElement(s.Z,{key:(0,a.x0)(),className:r,iconCls:e.iconCls,text:e.text,handler:function(){n(),e.handler()}}):o.createElement(l.Z,{key:(0,a.x0)(),className:r,iconCls:e.iconCls,text:e.text,handler:function(){n(),e.handler()}});if(e.iconCls)return o.createElement(u.Z,{key:(0,a.x0)(),className:r,iconCls:e.iconCls,handler:function(){n(),e.handler()}});var t=e.disabled||!1;return o.createElement(c.Z,{key:(0,a.x0)(),className:r,text:e.text,handler:function(){n(),e.handler()},title:i?e.text:null,disabled:t,dataTestId:e.dataTestId})})};d.propTypes={menu:i().arrayOf(i().oneOfType([i().shape({handler:i().func,hidden:i().bool,text:i().string,disabled:i().bool,iconCls:i().string,iconPosition:i().string,dataTestId:i().string}),i().shape({component:i().func.isRequired})])).isRequired,closeMenu:i().func,menuItemCls:i().string,showItemsTitle:i().bool,parentRefs:i().arrayOf(i().shape({current:i().instanceOf(Element)}))},d.defaultProps={closeMenu:function(){},menuItemCls:"",showItemsTitle:!1,parentRefs:[]},t.Z=d},40275:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(7409),i=n(24460),o=n(67294),a=n(15593),s=n(75394),l=n(3992),u=(0,n(95853).q$)({RegisterModal:"REGISTER_MODAL",DeregisterModal:"DEREGISTER_MODAL"});function c(){return{type:u.RegisterModal}}function d(){return{type:u.DeregisterModal}}var f=function(e){return e.getIn(["maskModal","currentMaskModals"],0)},p=function(e){return f(e)+1},h=function(e,t){return t===f(e)},m=-1,g=function(e){var t=e.isOpen,n=(0,a.I0)(),l=(0,i._)((0,o.useState)(!0),2),u=l[0],f=l[1],g=(0,i._)((0,o.useState)(m),2),v=g[0],y=g[1],b=(0,a.v9)(p),_=(0,a.v9)(function(e){return h(e,v)});return(0,o.useEffect)(function(){return t?(y(b),n(c())):v!==m&&(y(m),n(d())),function(){t&&n(d())}},[t]),(0,o.useEffect)(function(){f(_)},[_]),o.createElement(s.I,(0,r._)({modalWithMask:u},e))};g.propTypes=l.V,g.defaultProps=l.Q;var v=g},75394:function(e,t,n){"use strict";n.d(t,{Z:function(){return S},I:function(){return w}});var r=n(27412),i=n(7409),o=n(99282),a=n(98848),s=n(45697),l=n.n(s),u=n(67294),c=n(83253),d=n.n(c),f=n(94184),p=n.n(f),h=n(47407),m=function(e){var t=e.title,n=e.headerRightContent,r=e.showCloseButton,i=e.closeButtonHandler;return t||r?u.createElement("div",{className:"synofoto-modal-header"},u.createElement("div",{className:"synofoto-modal-title"},t),u.createElement("div",{className:"synofoto-modal-header-right"},n,r?u.createElement(h.Z,{dataTestId:"icon-close-button",iconCls:"close-window-btn-icon",className:"synofoto-modal-header-close-btn",handler:i}):null)):null};m.propTypes={title:l().oneOfType([l().string,l().node]),headerRightContent:l().node,showCloseButton:l().bool,closeButtonHandler:l().func},m.defaultProps={title:"",headerRightContent:null,showCloseButton:!1,closeButtonHandler:function(){}};var g=m,v=function(e){var t=e.title,n=e.showCloseButton,r=e.closeButtonHandler,i=e.closeIconCls;return t||n?u.createElement("div",{className:"synofoto-modal-header-mobile"},n?u.createElement(h.Z,{className:"synofoto-modal-header-close-btn-mobile",iconCls:i,handler:r,dataTestId:"synofoto-modal-header-close-btn-mobile"}):null,u.createElement("div",{className:"synofoto-modal-title-mobile"},t)):null};v.propTypes={title:l().string,showCloseButton:l().bool,closeButtonHandler:l().func,closeIconCls:l().string},v.defaultProps={title:"",showCloseButton:!1,closeButtonHandler:function(){},closeIconCls:"cancel-btn-icon"};var y=v,b=(0,n(13103).C)(g,y),_=n(3992),E=5,w=function(e){var t=e.title,n=e.className,o=e.headerRightContent,s=e.children,l=e.closeButtonHandler,c=e.isResizeable,f=e.onMouseOver,h=e.onMouseLeave,m=e.onMouseEnter,g=(e.onRequestClose,e.overlayCls),v=e.showCloseButton,y=e.closeIconCls,_=e.parentSelector,w=e.modalWithMask,S=e.portalClassName,T=e.isOpen,O=e.contentInnerRef,I=(0,a._)(e,["title","className","headerRightContent","children","closeButtonHandler","isResizeable","onMouseOver","onMouseLeave","onMouseEnter","onRequestClose","overlayCls","showCloseButton","closeIconCls","parentSelector","modalWithMask","portalClassName","isOpen","contentInnerRef"]),A=(0,u.useRef)(null),C=(0,u.useRef)(null),x=(0,u.useRef)(!1),D=(0,u.useRef)(!1),R=function(e){if(A.current&&C.current){var t=C.current.getBoundingClientRect(),n=t.left,r=t.right;(e.clientX-n<E||r-e.clientX<E)&&(D.current=!0,A.current.style.cursor="ew-resize",x.current=e.clientX-n<E)}},L=function(e){var t=e.clientX;requestAnimationFrame(function(){if(D.current){var e=window.innerWidth-2*t;e=x.current?e:-e,C.current.style.width="".concat(e,"px")}})},k=function(){D.current=!1,A.current&&(A.current.style.cursor="")},M=function(e){C.current=e,O(e),C.current&&c&&C.current.addEventListener("mousedown",R)},P=function(e){A.current=e,A.current&&c&&(A.current.addEventListener("mousemove",L),A.current.addEventListener("mouseup",k))},N=p()("synofoto-modal",(0,r._)({},n,n)),F="synofoto-modal-overlay ".concat(g),B=p()(S,{ReactModalPortal:!S,"synofoto-modal-with-mask":w});return u.createElement(d(),(0,i._)({portalClassName:B,className:N,overlayClassName:F,contentLabel:"SynophotoModal",ariaHideApp:!1,shouldReturnFocusAfterClose:!1,contentRef:M,overlayRef:P,parentSelector:_,isOpen:T},I),u.createElement("div",{className:"synofoto-modal-inner-ct",onMouseEnter:m,onMouseOver:f,onMouseLeave:h},u.createElement(b,{title:t,headerRightContent:o,showCloseButton:v,closeButtonHandler:l,closeIconCls:y}),u.createElement("div",{className:"synofoto-modal-content"},s)))};w.propTypes=(0,o._)((0,i._)({},_.V),{modalWithMask:l().bool}),w.defaultProps=(0,o._)((0,i._)({},_.Q),{modalWithMask:!1});var S=function(e){return u.createElement(w,(0,i._)({modalWithMask:!1},e))}},3992:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},V:function(){return o}});var r=n(45697),i=n.n(r),o={isOpen:i().bool,title:i().oneOfType([i().string,i().node]),className:i().string,headerRightContent:i().node,children:i().node.isRequired,closeButtonHandler:i().func,isResizeable:i().bool,onMouseOver:i().func,onMouseLeave:i().func,onMouseEnter:i().func,onRequestClose:i().func,overlayCls:i().string,showCloseButton:i().bool,closeIconCls:i().string,parentSelector:i().func,portalClassName:i().string,contentInnerRef:i().func},a={isOpen:!1,title:"",className:"",headerRightContent:null,closeButtonHandler:void 0,isResizeable:!1,onMouseOver:function(){},onMouseLeave:function(){},onMouseEnter:function(){},onRequestClose:function(){},overlayCls:"",showCloseButton:!1,closeIconCls:void 0,parentSelector:function(){return document.querySelector("#reactRoot")},portalClassName:void 0,contentInnerRef:function(){}}},42416:function(e,t,n){"use strict";var r=n(75394);t.Z=r.Z},39308:function(e,t,n){"use strict";n.d(t,{Z:function(){return e3}});var r=n(7409),i=n(99282),o=n(98848),a=n(24460),s=n(14046),l=n(67294),u=n(76906);function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function d(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)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){if("function"!=typeof t&&null!==t)throw 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&&p(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var v=n(62839);function y(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){if(t&&("object"===(0,v.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return y(e)}function _(e){var t=g();return function(){var n,r=m(e);return n=t?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments),b(this,n)}}var E=n(4390);function w(e){if(Array.isArray(e))return(0,E.Z)(e)}function S(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var T=n(76803);function O(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e){return w(e)||S(e)||(0,T.Z)(e)||O()}var A=n(34670),C=n(95934),x=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function D(e,t){return!!(e===t||x(e)&&x(t))}function R(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!D(e[n],t[n]))return!1;return!0}function L(e,t){void 0===t&&(t=R);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}for(var k=n(91826),M={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},P=function(e){return(0,C.tZ)("span",(0,s.Z)({css:M},e))},N={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(u(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(l?"selected":"focused").concat(c);return"option ".concat(o," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},F=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,_=s.tabSelectsValue,E=s["aria-label"],w=s["aria-live"],S=(0,l.useMemo)(function(){return(0,u.Z)((0,u.Z)({},N),d||{})},[d]),T=(0,l.useMemo)(function(){var e="";if(t&&S.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,s=t.value,l=function(e){return Array.isArray(e)?null:e},c=i||n||l(s),d=c?f(c):"",p=r||o||void 0,h=p?p.map(f):[],g=(0,u.Z)({isDisabled:c&&m(c,a),label:d,labels:h},t);e=S.onChange(g)}return e},[t,S,m,a,f]),O=(0,l.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:f(t),isDisabled:m(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a};e=S.onFocus(s)}return e},[n,r,f,m,S,i,a]),I=(0,l.useMemo)(function(){var e="";if(v&&y.length&&S.onFilter){var t=b({count:i.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,v,S,y,b]),A=(0,l.useMemo)(function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":E,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:_})}return e},[E,n,r,h,m,g,v,S,a,_]),x="".concat(O," ").concat(I," ").concat(A),D=(0,C.tZ)(l.Fragment,null,(0,C.tZ)("span",{id:"aria-selection"},T),(0,C.tZ)("span",{id:"aria-context"},x)),R=(null==t?void 0:t.action)==="initial-input-focus";return(0,C.tZ)(l.Fragment,null,(0,C.tZ)(P,{id:c},R&&D),(0,C.tZ)(P,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},o&&!R&&D))},B=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],U=RegExp("["+B.map(function(e){return e.letters}).join("")+"]","g"),H={},j=0;j<B.length;j++)for(var V=B[j],z=0;z<V.letters.length;z++)H[V.letters[z]]=V.base;var Z=function(e){return e.replace(U,function(e){return H[e]})},G=L(Z),W=function(e){return e.replace(/^\s+|\s+$/g,"")},q=function(e){return"".concat(e.label," ").concat(e.value)},Y=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=(0,u.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:q,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?W(n):n,d=s?W(a(t)):a(t);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=G(c),d=Z(d)),"start"===l?d.substr(0,c.length)===c:d.indexOf(c)>-1}},$=["innerRef"];function K(e){var t=e.innerRef,n=(0,k.Z)(e,$),r=(0,A.r)(n,"onExited","in","enter","exit","appear");return(0,C.tZ)("input",(0,s.Z)({ref:t},r,{css:(0,C.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var X=function(e){e.preventDefault(),e.stopPropagation()};function Q(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=(0,l.useRef)(!1),s=(0,l.useRef)(!1),u=(0,l.useRef)(0),c=(0,l.useRef)(null),d=(0,l.useCallback)(function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,f=l.clientHeight,p=c.current,h=t>0,m=d-f-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(o&&o(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&X(e)}},[n,r,i,o]),f=(0,l.useCallback)(function(e){d(e,e.deltaY)},[d]),p=(0,l.useCallback)(function(e){u.current=e.changedTouches[0].clientY},[]),h=(0,l.useCallback)(function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)},[d]),m=(0,l.useCallback)(function(e){if(e){var t=!!A.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}},[h,p,f]),g=(0,l.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))},[h,p,f]);return(0,l.useEffect)(function(){if(t){var e=c.current;return m(e),function(){g(e)}}},[t,m,g]),function(e){c.current=e}}var J=["boxSizing","height","overflow","paddingRight","position"],ee={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function et(e){e.preventDefault()}function en(e){e.stopPropagation()}function er(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ei(){return"ontouchstart"in window||navigator.maxTouchPoints}var eo=!!("undefined"!=typeof window&&window.document&&window.document.createElement),ea=0,es={capture:!1,passive:!1};function el(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,l.useRef)({}),o=(0,l.useRef)(null),a=(0,l.useCallback)(function(e){if(eo){var t=document.body,n=t&&t.style;if(r&&J.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&ea<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(ee).forEach(function(e){var t=ee[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&ei()&&(t.addEventListener("touchmove",et,es),e&&(e.addEventListener("touchstart",er,es),e.addEventListener("touchmove",en,es))),ea+=1}},[r]),s=(0,l.useCallback)(function(e){if(eo){var t=document.body,n=t&&t.style;ea=Math.max(ea-1,0),r&&ea<1&&J.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&ei()&&(t.removeEventListener("touchmove",et,es),e&&(e.removeEventListener("touchstart",er,es),e.removeEventListener("touchmove",en,es)))}},[r]);return(0,l.useEffect)(function(){if(t){var e=o.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){o.current=e}}var eu=function(){return document.activeElement&&document.activeElement.blur()},ec={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ed(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=Q({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=el({isEnabled:n}),a=function(e){i(e),o(e)};return(0,C.tZ)(l.Fragment,null,n&&(0,C.tZ)("div",{onClick:eu,css:ec}),t(a))}var ef={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ep=function(e){var t=e.name,n=e.onFocus;return(0,C.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ef,value:"",onChange:function(){}})},eh=function(e){return e.label},em=function(e){return e.label},eg=function(e){return e.value},ev=function(e){return!!e.isDisabled},ey={clearIndicator:A.a,container:A.b,control:A.d,dropdownIndicator:A.e,group:A.g,groupHeading:A.f,indicatorsContainer:A.i,indicatorSeparator:A.h,input:A.j,loadingIndicator:A.l,loadingMessage:A.k,menu:A.m,menuList:A.n,menuPortal:A.o,multiValue:A.p,multiValueLabel:A.q,multiValueRemove:A.t,noOptionsMessage:A.u,option:A.v,placeholder:A.w,singleValue:A.x,valueContainer:A.y},eb={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},e_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,A.z)(),captureMenuScroll:!(0,A.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Y(),formatGroupLabel:eh,getOptionLabel:em,getOptionValue:eg,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ev,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,A.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function eE(e,t,n,r){var i=eD(e,t,n),o=eR(e,t,n),a=eC(e,t),s=ex(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function ew(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return eE(e,n,t,r)}).filter(function(t){return eO(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=eE(e,n,t,r);return eO(e,o)?o:void 0}).filter(A.K)}function eS(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,I(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function eT(e,t){return eS(ew(e,t))}function eO(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!ek(e)||!o)&&eL(e,{label:a,value:s,data:i},r)}function eI(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}function eA(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var eC=function(e,t){return e.getOptionLabel(t)},ex=function(e,t){return e.getOptionValue(t)};function eD(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function eR(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ex(e,t);return n.some(function(t){return ex(e,t)===r})}function eL(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ek=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},eM=1,eP=function(e){h(n,e);var t=_(n);function n(e){var r;if(c(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue((0,A.B)(a.filter(function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else if(l){r.ariaOnChange((0,A.C)(e),{action:"select-option",option:e,name:o});return}else i?r.setValue((0,A.B)([].concat(I(a),[e])),"select-option",e):r.setValue((0,A.C)(e),"select-option");n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),a=(0,A.D)(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,A.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=(0,A.D)(e,i,i[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return eC(r.props,e)},r.getOptionValue=function(e){return ex(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,i=ey[e](t,n);i.boxSizing="border-box";var o=r.props.styles[e];return o?o(i,t):i},r.getClassNames=function(e,t){var n,i;return null===(n=(i=r.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,A.F)(r.props)},r.buildCategorizedOptions=function(){return ew(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return eS(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,u.Z)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,A.G)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY),a=5;r.userIsDragging=i>a||o>a}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return ek(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing||e.shiftKey||!u||!d||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h||r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++eM),r.state.selectValue=(0,A.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.buildFocusableOptions(),o=i.indexOf(r.state.selectValue[0]);r.state.focusedOption=i[o]}return r}return f(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,A.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,A.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(eb):(0,u.Z)((0,u.Z)({},eb),this.props.theme):eb}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return eD(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return eR(this.props,e,t)}},{key:"filterOption",value:function(e,t){return eL(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,c=e.menuIsOpen,d=e.required,f=this.getComponents().Input,p=this.state,h=p.inputIsHidden,m=p.ariaSelection,g=this.commonProps,v=r||this.getElementId("input"),y=(0,u.Z)((0,u.Z)((0,u.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==m?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?l.createElement(f,(0,s.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},y)):l.createElement(K,(0,s.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A.J,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,c=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,_=v.isFocused;if(!this.hasValue()||!f)return m?null:l.createElement(u,(0,s.Z)({},c,{key:"placeholder",isDisabled:p,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map(function(t,a){var u=t===b,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return l.createElement(n,(0,s.Z)({},c,{components:{Container:r,Label:i,Remove:o},isFocused:u,isDisabled:p,key:d,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var E=y[0];return l.createElement(a,(0,s.Z)({},c,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return l.createElement(e,(0,s.Z)({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!e||!i)return null;var a={"aria-hidden":"true"};return l.createElement(e,(0,s.Z)({},t,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return l.createElement(n,(0,s.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return l.createElement(e,(0,s.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,u=n.MenuPortal,c=n.LoadingMessage,d=n.NoOptionsMessage,f=n.Option,p=this.commonProps,h=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,v=m.inputValue,y=m.isLoading,b=m.loadingMessage,_=m.minMenuHeight,E=m.maxMenuHeight,w=m.menuIsOpen,S=m.menuPlacement,T=m.menuPosition,O=m.menuPortalTarget,I=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,x=m.noOptionsMessage,D=m.onMenuScrollToTop,R=m.onMenuScrollToBottom;if(!w)return null;var L=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,a=e.isSelected,u=e.label,c=e.value,d=h===i,m=o?void 0:function(){return t.onOptionHover(i)},g=o?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return l.createElement(f,(0,s.Z)({},p,{innerProps:y,data:i,isDisabled:o,isSelected:a,key:v,label:u,type:r,value:c,isFocused:d,innerRef:d?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,a=e.index,u="".concat(t.getElementId("group"),"-").concat(a),c="".concat(u,"-heading");return l.createElement(r,(0,s.Z)({},p,{key:u,data:n,options:o,Heading:i,headingProps:{id:c,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return L(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return L(e,"".concat(e.index))});else if(y){var k=b({inputValue:v});if(null===k)return null;e=l.createElement(c,p,k)}else{var M=x({inputValue:v});if(null===M)return null;e=l.createElement(d,p,M)}var P={minMenuHeight:_,maxMenuHeight:E,menuPlacement:S,menuPosition:T,menuShouldScrollIntoView:C},N=l.createElement(A.M,(0,s.Z)({},p,P),function(n){var r=n.ref,i=n.placerProps,u=i.placement,c=i.maxHeight;return l.createElement(o,(0,s.Z)({},p,P,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:y,placement:u}),l.createElement(ed,{captureEnabled:g,onTopArrive:D,onBottomArrive:R,lockEnabled:I},function(n){return l.createElement(a,(0,s.Z)({},p,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:y,maxHeight:c,focusedOption:h}),e)}))});return O||"fixed"===T?l.createElement(u,(0,s.Z)({},p,{appendTo:O,controlElement:this.controlRef,menuPlacement:S,menuPosition:T}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return l.createElement(ep,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var u=s.map(function(t){return e.getOptionValue(t)}).join(n);return l.createElement("input",{name:o,type:"hidden",value:u})}var c=s.length>0?s.map(function(t,n){return l.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):l.createElement("input",{name:o,type:"hidden",value:""});return l.createElement("div",null,c)}var d=s[0]?this.getOptionValue(s[0]):"";return l.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return l.createElement(F,(0,s.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,u=o.id,c=o.isDisabled,d=o.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return l.createElement(r,(0,s.Z)({},p,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),l.createElement(t,(0,s.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:d}),l.createElement(i,(0,s.Z)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),l.createElement(n,(0,s.Z)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=(0,A.H)(c),m={};if(n&&(c!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?eT(e,h):[],v=r?eI(t,h):null;m={selectValue:h,focusedOption:eA(t,g),focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},b=o,_=a&&s;return a&&!_&&(b={value:(0,A.D)(p,h,h[0]||null),options:h,action:"initial-input-focus"},_=!s),(null==o?void 0:o.action)==="initial-input-focus"&&(b=null),(0,u.Z)((0,u.Z)((0,u.Z)({},m),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:_})}}]),n}(l.Component);eP.defaultProps=e_;var eN=n(9889),eF=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function eB(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,o=e.defaultValue,a=void 0===o?null:o,s=e.inputValue,c=e.menuIsOpen,d=e.onChange,f=e.onInputChange,p=e.onMenuClose,h=e.onMenuOpen,m=e.value,g=(0,k.Z)(e,eF),v=(0,l.useState)(void 0!==s?s:n),y=(0,eN.Z)(v,2),b=y[0],_=y[1],E=(0,l.useState)(void 0!==c?c:i),w=(0,eN.Z)(E,2),S=w[0],T=w[1],O=(0,l.useState)(void 0!==m?m:a),I=(0,eN.Z)(O,2),A=I[0],C=I[1],x=(0,l.useCallback)(function(e,t){"function"==typeof d&&d(e,t),C(e)},[d]),D=(0,l.useCallback)(function(e,t){var n;"function"==typeof f&&(n=f(e,t)),_(void 0!==n?n:e)},[f]),R=(0,l.useCallback)(function(){"function"==typeof h&&h(),T(!0)},[h]),L=(0,l.useCallback)(function(){"function"==typeof p&&p(),T(!1)},[p]),M=void 0!==s?s:b,P=void 0!==c?c:S,N=void 0!==m?m:A;return(0,u.Z)((0,u.Z)({},g),{},{inputValue:M,menuIsOpen:P,onChange:x,onInputChange:D,onMenuClose:L,onMenuOpen:R,value:N})}var eU=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],eH=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},ej={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return eH(e,t,r)})||n.some(function(t){return eH(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function eV(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,a=void 0===o?ej.formatCreateLabel:o,s=e.isValidNewOption,c=void 0===s?ej.isValidNewOption:s,d=e.getNewOptionData,f=void 0===d?ej.getNewOptionData:d,p=e.onCreateOption,h=e.options,m=void 0===h?[]:h,g=e.onChange,v=(0,k.Z)(e,eU),y=v.getOptionValue,b=void 0===y?eg:y,_=v.getOptionLabel,E=void 0===_?em:_,w=v.inputValue,S=v.isLoading,T=v.isMulti,O=v.value,C=v.name,x=(0,l.useMemo)(function(){return c(w,(0,A.H)(O),m,{getOptionValue:b,getOptionLabel:E})?f(w,a(w)):void 0},[a,f,E,b,w,c,m,O]),D=(0,l.useMemo)(function(){return(n||!S)&&x?"first"===i?[x].concat(I(m)):[].concat(I(m),[x]):m},[n,i,S,x,m]),R=(0,l.useCallback)(function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===x){if(p)p(w);else{var r=f(w,w),i={action:"create-option",name:C,option:r};g((0,A.D)(T,[].concat(I((0,A.H)(O)),[r]),r),i)}return}g(e,t)},[f,w,T,C,x,p,g,O]);return(0,u.Z)((0,u.Z)({},v),{},{options:D,onChange:R})}n(73935),n(73469);var ez=(0,l.forwardRef)(function(e,t){var n=eV(eB(e));return l.createElement(eP,(0,s.Z)({ref:t},n))}),eZ=n(45697),eG=n.n(eZ);n(26154);var eW=(0,l.forwardRef)(function(e,t){var n=eB(e);return l.createElement(eP,(0,s.Z)({ref:t},n))}),eq=n(30845),eY=n(96904),e$=n(10513),eK=n(47407),eX=function(e,t,n){var r=t||"box-arrow-line-small-down-icon";return function(t){return l.createElement(A.c.DropdownIndicator,t,l.createElement(eK.Z,{iconCls:r,handler:function(){},className:e,disabled:n}))}},eQ=n(79905),eJ={className:eG().string,value:eG().oneOfType([eG().arrayOf(eG().shape({})),eG().string,eG().number,eG().shape({})]),autoFocus:eG().bool,backspaceRemovesValue:eG().bool,blurInputOnSelect:eG().bool,closeMenuOnSelect:eG().bool,customizeComponents:eG().shape({}),createOptionPosition:eG().string,defaultValue:eG().oneOfType([eG().arrayOf(eG().shape({})),eG().shape({})]),defaultInputValue:eG().string,getOptionLabel:eG().func,getOptionValue:eG().func,getNewOptionData:eG().func,hideSelectedOptions:eG().bool,innerRef:eG().oneOfType([eG().func,eG().shape({})]),inputValue:eG().string,isMenuPortal:eG().bool,isMulti:eG().bool,isCreatable:eG().bool,isClearable:eG().bool,isDisabled:eG().bool,isSearchable:eG().bool,isValidNewOption:eG().func,isOptionDisabled:eG().func,menuPosition:eG().string,menuPortalTarget:eG().instanceOf(Element),noOptionsMessage:eG().string,onBlur:eG().func,onChange:eG().func,onCreateOption:eG().func,onFocus:eG().func,onInputChange:eG().func,onControlMouseDown:eG().func,onMenuOpen:eG().func,onMenuClose:eG().func,onKeyDown:eG().func,onValueClick:eG().func,options:eG().arrayOf(eG().shape({})),openMenuOnFocus:eG().bool,openMenuOnClick:eG().bool,placeholder:eG().string,showDropdownIndicator:eG().bool,showClearIndicator:eG().bool,tabSelectsValue:eG().bool,title:eG().string,triggerIconClassName:eG().string,triggerButtonClassName:eG().string,needValueContainerLoadingIndicator:eG().bool,filterOption:eG().func,ariaLabel:eG().string,menuIsOpen:eG().bool,menuPlacement:eG().string},e0={className:"",value:void 0,triggerIconClassName:"",triggerButtonClassName:"",autoFocus:!1,backspaceRemovesValue:!1,blurInputOnSelect:!1,closeMenuOnSelect:!0,createOptionPosition:"lase",defaultValue:void 0,defaultInputValue:void 0,getOptionLabel:void 0,getOptionValue:void 0,getNewOptionData:void 0,hideSelectedOptions:!1,innerRef:null,inputValue:void 0,isMulti:!1,isClearable:!1,isCreatable:!1,isDisabled:!1,isMenuPortal:!1,isSearchable:!1,isValidNewOption:function(){return!1},customizeComponents:null,placeholder:"",menuPosition:"auto",menuPortalTarget:void 0,noOptionsMessage:"",options:[],onBlur:void 0,onChange:void 0,onCreateOption:void 0,onFocus:void 0,onMenuOpen:void 0,onMenuClose:void 0,onInputChange:void 0,onControlMouseDown:void 0,onKeyDown:void 0,onValueClick:void 0,openMenuOnFocus:!1,openMenuOnClick:!0,showDropdownIndicator:!0,showClearIndicator:!1,tabSelectsValue:!1,title:void 0,isOptionDisabled:function(e){return!1},needValueContainerLoadingIndicator:!1,filterOption:void 0,ariaLabel:void 0,menuIsOpen:void 0,menuPlacement:"auto"},e1=function(){return{}},e2={clearIndicator:e1,container:e1,control:e1,dropdownIndicator:e1,group:e1,groupHeading:e1,indicatorsContainer:e1,indicatorSeparator:e1,loadingIndicator:e1,loadingMessage:e1,menu:e1,menuList:e1,menuPortal:e1,multiValue:e1,multiValueLabel:e1,multiValueRemove:e1,noOptionsMessage:e1,option:e1,placeholder:e1,singleValue:e1,valueContainer:e1},e4=function(e){var t=e.ariaLabel,n=e.autoFocus,s=e.backspaceRemovesValue,u=e.blurInputOnSelect,c=e.className,d=e.closeMenuOnSelect,f=e.createOptionPosition,p=e.defaultValue,h=e.defaultInputValue,m=e.getOptionLabel,g=e.getOptionValue,v=e.getNewOptionData,y=e.hideSelectedOptions,b=e.innerRef,_=e.inputValue,E=e.isClearable,w=e.isCreatable,S=e.isDisabled,T=e.isSearchable,O=e.isMenuPortal,I=e.isMulti,C=e.isValidNewOption,x=e.isOptionDisabled,D=e.menuPosition,R=e.menuPortalTarget,L=e.noOptionsMessage,k=e.onBlur,M=e.onCreateOption,P=e.onChange,N=e.onFocus,F=e.onInputChange,B=e.onControlMouseDown,U=e.onMenuOpen,H=e.openMenuOnClick,j=e.openMenuOnFocus,V=e.onValueClick,z=e.onKeyDown,Z=e.onMenuClose,G=e.options,W=e.placeholder,q=e.tabSelectsValue,Y=e.title,$=e.triggerButtonClassName,K=e.value,X=e.showDropdownIndicator,Q=e.showClearIndicator,J=e.customizeComponents,ee=e.needValueContainerLoadingIndicator,et=e.filterOption,en=e.triggerIconClassName,er=e.menuIsOpen,ei=e.menuPlacement,eo=(0,a._)((0,l.useState)(null),2),ea=eo[0],es=eo[1],el=(0,l.useRef)((0,r._)({},e2)),eu=X||Q;(0,l.useEffect)(function(){(O||R)&&(el.current.menu=function(e){var t=(0,i._)((0,r._)({},e),{margin:0});return"top"===ei&&(t.boxShadow="none !important"),t},el.current.menuPortal=function(e){return(0,i._)((0,r._)({},e),{zIndex:9999,position:"fixed"})})},[O,R,ei]);var ec=function(){return""===L?null:L},ed=function(e){var t=e.innerProps.ref,n=(0,o._)(e.innerProps,["ref"]);return l.createElement("div",(0,r._)({ref:t},n),l.createElement(eK.Z,{iconCls:"clear-btn-icon",title:(0,eQ.n6)("action","clear"),tipId:eY.ZP.GLOBAL_TOOLTIP_ID}))},ef=function(){return null},ep=function(e){!ea&&e&&es(e)},eh=function(e){return l.createElement("div",{"data-testid":"synofoto-select-indicators-container"},l.createElement(A.c.IndicatorsContainer,e))},em=(0,eq.Z)(function(e,t,n,i,o){return(0,r._)({DropdownIndicator:e?eX($,o,i):ef,ClearIndicator:t?ed:ef,IndicatorsContainer:eu?eh:ef,MenuList:e$.Z},n)}),eg=w?ez:eW;return l.createElement("div",{ref:ep,className:"".concat(c," synofoto-react-select"),"data-tooltip-content":Y,"data-long-press-delay":eY.LK.LONG_PRESS,"data-testid":"synofoto-react-select"},B&&l.createElement("div",{className:"synofoto-react-select-control","data-testid":"synofoto-react-select-control",onMouseDown:B}),l.createElement(eg,{autoFocus:n,backspaceRemovesValue:s,blurInputOnSelect:u,classNamePrefix:"synofoto",className:"synofoto-react-select-container",closeMenuOnSelect:d,createOptionPosition:f,components:em(X,Q,J,S,en),defaultValue:p,defaultInputValue:h,getOptionValue:g,getOptionLabel:m,getNewOptionData:v,hideSelectedOptions:y,inputValue:_,isValidNewOption:C,isSearchable:T,isClearable:E,isMulti:I,isDisabled:S,isOptionDisabled:x,noOptionsMessage:ec,menuPlacement:ei,menuPosition:D,menuPortalTarget:R||(O?ea:null),menuShouldScrollIntoView:!0,onBlur:k,onChange:P,onCreateOption:M,onInputChange:F,onFocus:N,onKeyDown:z,onMenuOpen:U,onMenuClose:Z,openMenuOnFocus:j,openMenuOnClick:H,options:G,placeholder:W,styles:el.current,tabSelectsValue:q,ref:b,onValueClick:V,value:K,needValueContainerLoadingIndicator:ee,filterOption:et,"aria-label":t,menuIsOpen:er}))};e4.propTypes=eJ,e4.defaultProps=e0;var e3=e4},10513:function(e,t,n){"use strict";var r=n(27412),i=n(7409),o=n(98848),a=n(24460),s=n(45697),l=n.n(s),u=n(67294),c=n(94184),d=n.n(c),f=n(34670),p=n(22902),h=n(96904),m=n(5943),g=function(e){var t,n=e.className,s=e.focusedOption,l=e.options,c=e.innerRef,g=(0,o._)(e,["className","focusedOption","options","innerRef"]),v=(0,u.useRef)(!0),y=(0,u.useRef)(null),b=(0,a._)((0,u.useState)(void 0),2),_=b[0],E=b[1],w=function(e){c(e),e&&(y.current=e)},S=function(){y.current&&v.current&&E(y.current.scrollHeight>y.current.clientHeight)},T=(0,p.Z)(S,200);(0,u.useEffect)(function(){return function(){v.current=!1}},[]),(0,u.useLayoutEffect)(function(){if(S(),"ResizeObserver"in window){var e=new ResizeObserver(T);return e.observe(y.current),function(){e.disconnect()}}return function(){}},[y,T]);var O=d()((t={},(0,r._)(t,n,!0),(0,r._)(t,h._D.SHOW_SCROLLBAR,_&&!((0,m.eE)()&&(0,m.vU)())),t));return u.createElement(f.c.MenuList,(0,i._)({className:O,focusedOption:s,options:l,innerRef:w},g))};g.propTypes={innerRef:l().func.isRequired,className:l().string,focusedOption:l().shape({}),options:l().arrayOf(l().shape({}))},g.defaultProps={className:"",focusedOption:{},options:[]},t.Z=g},23017:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(24460),i=n(45697),o=n.n(i),a=n(67294),s=n(27412),l=n(7409),u=n(99282),c=n(98848),d=n(94184),f=n.n(d),p=n(59179),h=o().shape({text:o().string.isRequired,className:o().string,textCls:o().string,title:o().string,active:o().bool,disabled:o().bool,handler:o().func,WrapElement:o().elementType,wrapElementProps:o().shape(),isShowHint:o().bool}),m={items:o().arrayOf(h),showBottom:o().bool},g={showBottom:!1,items:[]},v=Object.freeze({position:"relative",display:"inline-block"}),y=function(e,t,n){if(e){var r=(t/e.offsetWidth).toFixed(2),i=n-(e.offsetWidth-t)/2;e.style.transform="matrix(".concat(r,", 0, 0, 1, ").concat(i,", 0)")}},b=function(e){var t=function(e){var t,r=n[e],m=r.text,g=r.className,v=void 0===g?"":g,b=r.textCls,_=void 0===b?"":b,E=r.title,w=void 0===E?null:E,S=r.active,T=void 0!==S&&S,O=r.disabled,I=void 0!==O&&O,A=r.handler,C=void 0===A?void 0:A,x=r.WrapElement,D=void 0===x?void 0:x,R=r.wrapElementProps,L=void 0===R?{}:R,k=r.isShowHint,M=void 0!==k&&k,P=f()((t={},(0,s._)(t,v,v),(0,s._)(t,"active",T),(0,s._)(t,"disabled",I),t)),N=function(){y(d.current,o.current[e].offsetWidth,o.current[e].offsetLeft)},F=null,B=function(){return a.createElement("div",{className:"button-text-wrap"},a.createElement("div",{className:"".concat(_," button-text")},m,M?a.createElement("span",{className:"synofoto-tab-button-dot"}):null))};if(D){var U=L.onClick,H=(0,c._)(L,["onClick"]),j=function(e){N(),U&&U(e),C&&C(e)};F=a.createElement(D,(0,u._)((0,l._)({},H),{onClick:j,key:"key_".concat(m)}),a.createElement(p.Z,(0,u._)((0,l._)({},i),{disabled:I,className:"".concat(P," synofoto-tab-button"),title:w,ref:function(t){o.current[e]=t}}),B()))}else{var V=function(e){N(),C&&C(e)};F=a.createElement(p.Z,(0,u._)((0,l._)({},i),{disabled:I,className:"".concat(P," synofoto-tab-button"),title:w,handler:V,key:"key_".concat(m),ref:function(t){o.current[e]=t}}),B())}h.push(F)},n=e.items,r=e.showBottom,i=(0,c._)(e,["items","showBottom"]),o=(0,a.useRef)([]),d=(0,a.useRef)(null);if((0,a.useEffect)(function(){var e=d.current;e&&(e.style.width="".concat(o.current[0].offsetWidth,"px"));for(var t=0;t<n.length;++t)if(n[t].active){y(e,o.current[t].offsetWidth,o.current[t].offsetLeft),setTimeout(function(){e&&(e.style.transitionDuration="430ms")},0);return}},[n]),!n.length)return null;for(var h=[],m=0;m<n.length;++m)t(m);var g=f()("synofoto-tab-button-indicator-ct",{"indicator-top":!r,"indicator-bottom":r});return a.createElement("div",{style:v},h,a.createElement("div",{className:g,ref:d},a.createElement("div",{className:"synofoto-tab-button-indicator"})))};b.propTypes=m,b.defaultProps=g;var _=b,E=o().shape({text:o().string.isRequired,className:o().string,textCls:o().string,title:o().string,active:o().bool,disabled:o().bool,content:o().node,handler:o().func,WrapElement:o().elementType,wrapElementProps:o().shape()}),w={className:o().string,tabButtonClassName:o().string,tabItems:o().arrayOf(E),defaultActiveId:o().number,disabled:o().bool,currentActiveId:o().number,customPanelHeaderRight:o().node},S={className:"",tabButtonClassName:"",tabItems:[{}],defaultActiveId:0,currentActiveId:-1,disabled:!1,customPanelHeaderRight:null},T=function(e){var t=e.className,n=e.tabButtonClassName,i=e.tabItems,o=e.defaultActiveId,s=e.disabled,l=e.currentActiveId,u=e.customPanelHeaderRight,c=(0,r._)((0,a.useState)(o),2),d=c[0],f=c[1];(0,a.useEffect)(function(){l>-1&&f(l)},[l]);var p=i.map(function(e,t){var r=function(){f(t),e.handler&&e.handler()};return{key:"key_".concat(t),className:n,active:t===d,text:e.text,title:e.title,handler:r,disabled:s,isShowHint:e.isShowHint}}),h=i[d].content?i[d].content:null,m=t?"".concat(t," synofoto-tab-panel"):"synofoto-tab-panel";return a.createElement("div",{className:m},a.createElement("div",{className:"synofoto-tab-panel-header"},a.createElement("div",{className:"synofoto-tab-panel-left"},a.createElement(_,{items:p,showBottom:!0})),a.createElement("div",{className:"synofoto-tab-panel-right"},u)),a.createElement("div",{className:"synofoto-tab-panel-content"},h))};T.propTypes=w,T.defaultProps=S;var O=T},7050:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(67294),i=n(94184),o=n.n(i),a=n(43831),s=n(96904),l=n(45697),u=n.n(l),c={tipId:u().string,className:u().string,role:u().string,place:u().oneOf(["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"]),type:u().oneOf([s.sZ.DEFAULT,s.sZ.WARNING,s.sZ.WHITE_TIP]),offset:u().shape({top:u().number,right:u().number,bottom:u().number,left:u().number}),positionStrategy:u().oneOf(["absolute","fixed"]),afterShow:u().func,afterHide:u().func,position:u().shape({x:u().number,y:u().number}),children:u().node,isOpen:u().bool},d={tipId:void 0,className:"",role:"tooltip",place:"bottom",type:s.sZ.DEFAULT,offset:void 0,positionStrategy:"absolute",afterShow:void 0,afterHide:void 0,position:void 0,children:void 0,isOpen:void 0},f=function(e){var t=e.tipId,n=e.className,i=e.role,l=e.place,u=e.type,c=e.offset,d=e.afterShow,f=e.afterHide,p=e.position,h=e.positionStrategy,m=e.children,g=e.isOpen,v=o()(n,{"synofoto-tooltip":u===s.sZ.DEFAULT,"synofoto-warning-tooltip":u===s.sZ.WARNING,"synofoto-white-tip":u===s.sZ.WHITE_TIP}),y=u===s.sZ.WHITE_TIP?s.LK.HIDE_HINT_TIP:0;return r.createElement(a.u,{id:t,className:v,role:i,place:l,offset:c,positionStrategy:h,afterShow:d,afterHide:f,position:p,delayHide:y,delayShow:s.LK.TOOLTIP_DELAY,clickable:u===s.sZ.WHITE_TIP,isOpen:g},m)};f.defaultProps=d,f.propTypes=c;var p=f,h=function(e){var t=e.tipId,n=e.className,i=e.role,l=e.place,u=e.type,c=e.offset,d=e.afterShow,f=e.afterHide,p=e.position,h=e.positionStrategy,m=e.children,g=e.isOpen,v=o()(n,{"synofoto-tooltip-mobile":u===s.sZ.DEFAULT,"synofoto-warning-tooltip":u===s.sZ.WARNING,"synofoto-white-tip":u===s.sZ.WHITE_TIP});return r.createElement(a.u,{id:t,className:v,role:i,place:l,offset:c,positionStrategy:h,afterShow:d,afterHide:f,position:p,isOpen:g},m)};h.propTypes=c,h.defaultProps=d;var m=h,g=(0,n(13103).C)(p,m)},96904:function(e,t,n){"use strict";n.d(t,{AV:function(){return el},Ak:function(){return k},B8:function(){return ex},Bp:function(){return f},CP:function(){return H},Cm:function(){return eb},Dp:function(){return v},ER:function(){return N},El:function(){return Z},Ey:function(){return eO},F:function(){return z},Hl:function(){return g},J4:function(){return eC},K4:function(){return ek},Kh:function(){return eD},L$:function(){return eg},LK:function(){return ee},Ls:function(){return c},M6:function(){return P},OE:function(){return en},Q2:function(){return ev},RT:function(){return m},Sr:function(){return B},TY:function(){return d},Th:function(){return eE},Ti:function(){return u},Us:function(){return y},Uw:function(){return F},V9:function(){return p},VD:function(){return l},VJ:function(){return ei},X3:function(){return eT},Y5:function(){return eu},Yo:function(){return ef},Z1:function(){return S},ZQ:function(){return D},Zk:function(){return A},Zu:function(){return X},_5:function(){return Y},_D:function(){return eR},_I:function(){return V},a6:function(){return x},aQ:function(){return ed},b2:function(){return eo},bT:function(){return er},bW:function(){return E},cn:function(){return ey},dv:function(){return j},eF:function(){return w},en:function(){return K},fS:function(){return eI},gK:function(){return es},gq:function(){return I},i3:function(){return ea},i4:function(){return W},iR:function(){return e_},jL:function(){return eh},k3:function(){return O},mp:function(){return G},n0:function(){return q},om:function(){return T},qE:function(){return em},qG:function(){return M},rp:function(){return ep},s3:function(){return eL},sH:function(){return L},sO:function(){return Q},sZ:function(){return et},sk:function(){return _},uE:function(){return $},v:function(){return C},vJ:function(){return h},w0:function(){return s},xB:function(){return ec},yL:function(){return b},yX:function(){return eA}});var r,i=n(27412),o=n(55210),a=Object.freeze({ROOT_FOLDER_NAME:"All Photos",TEAM_SPACE_ROOT_FOLDER_ID:1,MOBILE_BACKUP:"MobileBackup",ITEM_MARGIN:4,MOBILE_ITEM_MARGIN:2,MOBILE_TOOLBAR_HEIGHT:54,ITEMROW_ALBUM_ITEM_WIDTH:156,ITEMROW_ALBUM_ITEM_MARGIN:0,ITEMROW_PERSON_ITEM_WIDTH:156,ITEMROW_PERSON_ITEM_MARGIN:0,ITEMROW_NORMAL_ALBUM_ITEM_WIDTH:295,ITEMROW_NORMAL_ALBUM_ITEM_MAX_WIDTH:330,ITEMROW_NORMAL_ALBUM_ITEM_MARGIN:24,ITEMROW_SMALL_SUB_FOLDER_WIDTH:140,ITEMROW_SMALL_SUB_FOLDER_MAX_WIDTH:160,ITEMROW_SMALL_SUB_FOLDER_MARGIN:12,ITEMROW_MEDIUM_SUB_FOLDER_WIDTH:160,ITEMROW_MEDIUM_SUB_FOLDER_MAX_WIDTH:200,ITEMROW_MEDIUM_SUB_FOLDER_MARGIN:24,ITEMROW_LARGE_SUB_FOLDER_WIDTH:200,ITEMROW_LARGE_SUB_FOLDER_MAX_WIDTH:240,ITEMROW_LARGE_SUB_FOLDER_MARGIN:24,ITEMROW_MOBILE_SUB_FOLDER_WIDTH:140,ITEMROW_MOBILE_SUB_FOLDER_MAX_WIDTH:200,ITEMROW_MOBILE_SUB_FOLDER_MARGIN:8,ITEMROW_SMALL_FOLDER_ITEM_WIDTH:128,ITEMROW_SMALL_FOLDER_ITEM_MAX_WIDTH:148,ITEMROW_SMALL_FOLDER_ITEM_MARGIN:8,ITEMROW_MEDIUM_FOLDER_ITEM_WIDTH:148,ITEMROW_MEDIUM_FOLDER_ITEM_MAX_WIDTH:188,ITEMROW_MEDIUM_FOLDER_ITEM_MARGIN:24,ITEMROW_LARGE_FOLDER_ITEM_WIDTH:188,ITEMROW_LARGE_FOLDER_ITEM_MAX_WIDTH:228,ITEMROW_LARGE_FOLDER_ITEM_MARGIN:24,ITEMROW_MOBILE_FOLDER_ITEM_WIDTH:140,ITEMROW_MOBILE_FOLDER_ITEM_MAX_WIDTH:200,ITEMROW_MOBILE_FOLDER_ITEM_MARGIN:8,ITEMROW_CATEGORY_ITEM_WIDTH:189,ITEMROW_CATEGORY_ITEM_MAX_WIDTH:220,ITEMROW_CATEGORY_ITEM_MARGIN:24,ITEMROW_CATEGORY_FIRSTROW_MARGIN:56,DEFAULT_ALBUM_SIZE:Object.freeze({width:100,height:100}),ITEMROW_FULLWIDTH_MARGIN:40,ALBUM_NAME_LIMIT:255,ALBUM_THUMBNAIL_SIZE:"xl",PERSON_SUGGESTION_LIMIT:10,ALBUM_TYPE:Object.freeze({CATEGORY:"category",GEOCODING:"geocoding",GENERAL_TAG:"general_tag",PERSON:"person",ALBUM:"album",NORMAL:"normal",CONDITION:"condition",FOLDER:"folder",SHARED_WITH_ME:"me",SHARED_WITH_OTHERS:"others",SEARCH:"search",VIDEO:"video",RECENTLY_ADDED:"recently_added",TIMELINE:"timeline",DEGREE_360:"360",LIVE:"live",MOTION_PHOTO:"motion_photo",FAVORITE:"favorite",SHARING:"sharing",CONCEPT:"concept",SIMILAR:"similar"}),UploadFolder:["PhotoLibrary"],FOLDER_VIEW_WIDTH_PADDING_RIGHT:50,FOLDER_VIEW_WIDTH_PADDING_LEFT:0,FOLDER_VIEW_FIRST_ROW_PADDING:56,FOLDER_VIEW_BOTTOM_PADDING:56,MOBILE_FOLDER_VIEW_WIDTH_PADDING:8,ALBUM_NOTIFICATION_TYPE:Object.freeze({PURE_DIV_TEXT:"pure_div_text",PURE_DANGEROUS_SPAN_TEXT:"pure_dangerous_span_text",RATING_UPDATED:"RATING_UPDATED",ITEM_UPDATED_COMPLETE:"ITEM_UPDATED_COMPLETE",FAVORITE_UPDATED:"FAVORITE_UPDATED"}),ADD_TO_ALBUM_LIMIT_NORMAL:5e3,INDEXING_COUNT_POLLING_INTERVAL:15e3,PERSON_MIGRATION_MIGRATING_POLLING_INTERVAL:2500,PERSON_MIGRATION_PENDING_POLLING_INTERVAL:5e3,ROTATION:Object.freeze({NO_ROTATE:"no_rotate",CLOCKWISE:"clockwise",ROTATE_180:"180",COUNTER_CLOCKWISE:"counter_clockwise",FLIP_VERTICAL:"flip_vertical",FLIP_HORIZONTAL:"flip_horizontal"}),SEARCH_HISTORY:"search_history",BATCH_UPDATE_SIZE:100,BATCH_UPDATE_GENERAL_TAG_SIZE:50,RATING_UNRATED:0,RATING_STARS_LIMIT:5,SEARCH_SUGGEST_AND_HISTORY_LIMIT:5,SEARCH_HISTORY_LIMIT:50,DEFAULT_TASK_WIDTH:"100%",DEFAULT_TASK_DISPLAY_NUM:5,DEFAULT_TASK_HEIGHT:66,GLOBAL_TOOLTIP_ID:"global-tooltip",GLOBAL_WARNING_TOOLTIP_ID:"global-warning-tooltip",GLOBAL_WHITE_TOOLTIP_ID:"global-white-tooltip",NOTIFICATION_ANCHOR_ID:Object.freeze({DEFAULT:"reactRoot",LIGHTBOX:"lightboxNotificationAnchor"})});t.ZP=a;var s=/^\s*$|^\.|\.$|^@(?:database|eaDir|tmp|sharebin)$|^#(?:recycle|snapshot)$|[/\\:]/;RegExp(s,"g");var l=Object.freeze({TAB:"Tab",ENTER:"Enter",SPACE:" ",ESC:"Escape",LEFT:"ArrowLeft",RIGHT:"ArrowRight",DELETE:"Delete",SHIFT:"Shift",HOME:"Home",END:"End"});Object.freeze({ALBUM:"album",SHARED_WITH_ME:"shared_with_me",FOLDER:"folder",PERSON:"person",CONCEPT:"concept",GENERAL_TAG:"general_tag",LIVE:"live",MOTION_PHOTO:"motion_photo",DEGREE_360:"360"});var u=Object.freeze({ALL_ALBUM:"all_album",MY_ALBUM:"my_album"}),c=Object.freeze({DAY:"day",MONTH:"month"}),d=Object.freeze({LEFT_PADDING:60,EMBEDDED_LEFT_PADDING:24,PHOTO_PAGE_LEFT_PADDING:20,BOTTOM_PADDING:40,IMAGE_TARGET_HEIGHT:200,GUESS_ITEM_PER_ROW:5,LAZY_LOADING_SECTIONS_SIZE:2,MONTH_IMAGE_TARGET_HEIGHT:120,PHOTOSPAGE_TIMELINE_SCROLLBAR_WIDTH:60,SPLITTER_HEIGHT:48,SPLITTER_WIDTH:48,ROW_TYPE:Object.freeze({SPLIT_ROW:"split_row",TIMELINE_ROW:"timeline_row",FAKE_ROW:"fake_row",FAKE_SPLIT_ROW:"fake_split_row"}),ITEM_TYPE:Object.freeze({HEADER:"header",SPLIT_ITEM:"split_item",PHOTO:"photo"})});Object.freeze({WAITING:"waiting",DONE:"done",UPLOADING:"uploading",FAILED:"failed"}),Object.freeze({WAITING:"waiting",PROCESSING:"processing",ABORTING:"aborting",DONE:"done"}),Object.freeze({COPY:"copy",MOVE:"move"}),Object.freeze({COPIED:"copied",MOVED:"moved"}),Object.freeze({TASK_CREATED:"task_created",TASK_FINISHED:"task_finished"});var f=Object.freeze({SKIP:"skip",OVERWRITE:"overwrite"});Object.freeze({IGNORE:"ignore",RENAME:"rename"}),Object.freeze({UPLOAD:"upload",BACKGROUND:"background"});var p=Object.freeze({AV1:"av1",H264:"h264",HEVC:"hevc",HEIC:"heic",VC1:"vc1",VP9:"vp9",MPEG1:"mpeg1video",MPEG2:"mpeg2video"}),h=["country","state","county","city","town","district","village","route","landmark"],m=Object.freeze({FOLDER:"folder",ITEM:"item",PERSON:"person",CONCEPT:"concept",ALBUM:"album",ITEM_FOLDER:"item_folder",NONE:"none"}),g=[m.FOLDER,m.ITEM,m.PERSON,m.CONCEPT],v=[m.ITEM],y=Object.freeze({General:"general",CreateAlbum:"create_album",EditAlbum:"edit_album",PersonVisibility:"person_visibility",ConceptVisibility:"concept_visibility",MergePerson:"merge_person",CreateAlbumInAlbumList:"create_album_in_album_list",MigrateConditionAlbum:"migrate_condition_album"}),b=Object.freeze({AmeDefect:"ame_defect",Broken:"broken",Converting:"converting",Ready:"ready",Regenerating:"regenerating",SpaceDisable:"space_disable",None:"none"}),_=Object.freeze({Small:"small",Medium:"medium",Large:"large"}),E=Object.freeze({TIMELINE:"timeline",FOLDER:"folder"}),w="YYYY-MM-DD",S="12",T=null,O=Object.freeze({ALL:"all",TOP_AND_BOTTOM:"top_and_bottom",NONE:"none"});Object.freeze({yyyymmdd:"L",ddmmyyyy:"L",mmddyyyy:"L"});var I=Object.freeze({sharedWithMe:"me",sharedWithOthers:"others",photoRequest:"photo_request"});Object.freeze({DefaultPassword:"",DefaultExpiration:0});var A=Object.freeze({Album:"album",Folder:"folder",GeneralTag:"general_tag",Geocoding:"geocoding",Item:"item",Person:"person",Unit:"unit",Concept:"concept",Face:"face"}),C=Object.freeze({TIMELINE:"timeline",RECENTLY_ADDED:"recently_added",PHOTOWALL:"photowall",FOLDER_PHOTOWALL:"folder_photowall",SIMILAR:"similar"}),x=Object.freeze({TIMELINE:"timeline",FOLDER:"folder",SIMILAR:"similar"}),D=Object.freeze({NO_SUCH_API:102,NO_PERMISSION:105,SESSION_TIMEOUT:106,INTERNAL_ERROR:117,SID_NOT_FOUND:119,SHARING_ERROR_TOKEN:123,SHARING_INVALID_ENTRY:124,SHARING_NO_PERMISSION:126,NO_APP_PRIVILEGE:160,BAD_GATEWAY:502,SHOULD_UPGRADE_USER:600,HOME_SERVICE_DISABLED:602,USER_DISABLED:603,USER_QUOTA_FULL:604,SPACE_FULL:605,INVALID_FOLDER_NAME:606,NO_SPACE_ENABLED:607,FOLDER_PATH_TOO_LONG:608,ALBUM_NOT_FOUND:609,PASSPHRASE_NOT_FOUND:610,UNSUPPORTED_FILE_TYPE:620,TARGET_FOLDER_NOT_EXIST:621,EXCLUDED_EXTENSION:622,TARGET_FOLDER_INVALID:640,FOLDER_NAME_EXIST:641,FOLDER_NOT_FOUND:642,PHOTO_REQUEST_FOLDER_INVALID:643,PERMISSION_DENIED:800,TEAM_LIBRARY_PERMISSION_DENIED:801,PASSWORD_REQUIRED:802,TEAM_FOLDER_PERMISSION_DENY:803,PERMISSION_CHECK_FAILED:804,USER_SHARING_PERMISSION_DENIED:805,REASSIGN_WHILE_UPDATING:900,PERSON_MIGRATION_IS_NOT_FINISHED:901,PERSON_CLUSTERING_IS_NOT_FINISHED:902,CONDITION_ALBUM_CONDITION_ERROR:950,CONDITION_ALBUM_PERSONAL_SPACE_DISABLED:951,CONDITION_ALBUM_TEAM_SPACE_DISABLED:952,CONDITION_ALBUM_NO_TEAM_SPACE_MANAGEMENT_PERMISSION:953,WRONG_PROTECT_PASSWD:1001,REGENERATE_PREVIEW_QUEUE_FULL:1050}),R=Object.freeze({EXTERNAL_CONVERT_FAILED:2001,EXTERNAL_CONVERT_TIMEOUT:2002,WORKER_TO_PC_CLIENT_CONNECTION_ERROR:2011,CONTENT_TO_WORKER_CONNECTION_ERROR:2012,MAKE_THUMBNAIL_FAILED:2021,MAKE_TRANSCODE_VIDEO_FAILED:2022,UPLOAD_TRANSCODE_VIDEO_FAILED:2023,APPEND_DATA_SLICE_FAILED:2024,UPLOAD_TID_TIMEOUT:2025,UPLOAD_TASK_UNDEFINED_FAILED:2026,UNKNOWN_ERROR:9999}),L=Object.freeze({ApplyLightboxRating:"apply_lightbox_raing"}),k=Object.freeze({PHOTO:"photo",VIDEO:"video"}),M=Object.freeze({PHOTO:"photo",VIDEO:"video",BURST:"burst",LIVE:"live",PHOTO_360:"photo360",VIDEO_360:"video360",MOTION_PHOTO:"motion_photo"}),P=Object.freeze({PHOTO:"photo",VIDEO:"video",LIVE:"live"}),N=Object.freeze({FILENAME:"filename",TAKENTIME:"takentime",FILESIZE:"filesize",ITEM_TYPE:"item_type"}),F=Object.freeze({CREATE_TIME:"create_time",NAME:"album_name",START_TIME:"start_time",SHARE_STATUS:"share_status",TYPE:"album_type",SHARE_MODIFY_TIME:"share_modify_time"}),B=Object.freeze({ASC:"asc",DESC:"desc"});Object.freeze({ALL:"all",PHOTO:"photo",VIDEO:"video"});var U=Object.freeze({ALL_VIDEO:-2,ALL_PHOTO:-1,NORMAL_PHOTO:0,NORMAL_VIDEO:1,BURST:2,LIVE:3,PHOTO_360:4,VIDEO_360:5});U.NORMAL_PHOTO,U.BURST,U.LIVE,U.PHOTO_360,U.NORMAL_VIDEO,U.VIDEO_360;var H=Object.freeze({FILENAME_DESCRIPTION:"keyword",PERSON:"person",APERTURE:"aperture",CAMERA:"camera",CONCEPT:"concept",EXPOSURE_TIME:"exposure_time_group",FLASH:"flash",FOCAL_LENGTH:"focal_length_group",GENERAL_TAG:"general_tag",GEOCODING:"geocoding",ISO:"iso",LENS:"lens",TYPE:"item_type",TIME:"time",FOLDER_FILTER:"folder_filter",RATING:"rating",FAVORITE:"favorite"});H.FILENAME_DESCRIPTION,H.PERSON,H.APERTURE,H.CAMERA,H.CONCEPT,H.EXPOSURE_TIME,H.FLASH,H.FOCAL_LENGTH,H.GENERAL_TAG,H.GEOCODING,H.ISO,H.LENS;var j=[H.TIME,H.TYPE,H.FILENAME_DESCRIPTION,H.FOCAL_LENGTH,H.EXPOSURE_TIME,H.FLASH];H.TYPE,H.TIME,H.PERSON,H.GEOCODING,H.FAVORITE,H.RATING,H.GENERAL_TAG,H.CAMERA,H.LENS,H.FOCAL_LENGTH,H.EXPOSURE_TIME,H.APERTURE,H.ISO,H.FLASH,H.FOCAL_LENGTH,H.EXPOSURE_TIME,H.TIME,H.GEOCODING;var V=Object.freeze({VIEW:"view",DOWNLOAD:"download",UPLOAD:"upload",MANAGE:"manage"});V.VIEW,V.DOWNLOAD,V.UPLOAD,V.MANAGE,Object.freeze((r={},(0,i._)(r,V.VIEW,0),(0,i._)(r,V.DOWNLOAD,1),(0,i._)(r,V.UPLOAD,2),(0,i._)(r,V.MANAGE,3),r));var z=Object.freeze({VIEW:"view",DOWNLOAD:"download",UPLOAD:"upload",OWNER:"owner"}),Z=Object.freeze({NONE:"none",ENTRY:"entry",MANAGE:"management"});Object.freeze({CONDITION_ALBUM:"condition_album",NORMAL_ALBUM:"normal_album",TEAM_FOLDER:"team_folder"});var G=Object.freeze({MANAGEMENT:"management",PRIVATE:"private",PUBLIC_VIEW:"public-view",PUBLIC_DOWNLOAD:"public-download",PUBLIC_UPLOAD:"public-upload"}),W=Object.freeze({INIT:"init",LOADING:"loading",LOADED:"loaded",ARRANGED:"arranged"}),q=Object.freeze({LIGHTBOX:"lightbox",SELECTED_BAR:"selectedBar",GRID_VIEW:"gridView"}),Y=Object.freeze({SOURCE:"source",OPTIMIZED_JPEG:"optimized_jpeg",ORIGINAL_SIZE_JPEG:"original_size_jpeg"}),$=Object.freeze({ACTION:"action",APPLY:"apply",CANCEL:"cancel",CLOSE:"close",CONFIRM:"confirm",CREATE:"create",LEAVE:"leave",SAVE_AND_CLOSE:"saveAndClose"});Object.freeze({SHARED_SPACE:"shared_space",SWITCH_SPACE:"switcth_library",CHANGE_VIEW:"switch_browse",PERMISSION:"permission",ADD_TO_ALBUM:"add_to_album",FROZEN_STATUS:"frozen_status",ALBUM_OWNER_CHANGE:"album_owner_change",DARK_MODE:"dark_mode",MANUALLY_FACIAL_TAGGING:"manually_facial_tagging",FAVORITE:"favorite"});var K=Object.freeze({WELCOME:"welcome",MANAGEMENT:"management",FACIAL:"facial",MOBILE:"mobile",CONCEPT:"concept",SIMILAR:"similar"});Object.freeze({TAB_SHARING_BY_PHOTO_REQUEST:"tab_sharing_by_photo_request",TAB_PHOTO_REQUEST:"tab_photo_request",EXTERNAL_CONVERT_VIDEO_THUMBNAIL:"external_convert_video_thumbnail"}),Object.freeze({ENABLE_PERSONAL_SPACE_PAGE:"enable_personal_space_page",ENABLE_TEAM_SPACE_PAGE:"enable_team_space_page",SETUP_TEAM_SPACE_PERMISSION_PAGE:"setup_team_space_permission_page"});var X=Object.freeze({PERSONAL:"personal_space",TEAM:"shared_space"}),Q=Object.freeze({EXTERNAL_LOGIN:"external_login",LOGIN:"login"}),J=Object.freeze({UPDATE_TIME:"update_time",RECENTLY_ADD:"recently_add",RECENTLY_COMMENT:"recently_comment",RATING:"rating",CAMERA:"camera",PEOPLE:"people",GEOCODING:"geocoding",FLASH:"flash",LENS:"lens"});J.RECENTLY_ADD,J.RECENTLY_COMMENT,J.UPDATE_TIME,J.PEOPLE,J.GEOCODING,J.RATING,J.CAMERA,J.LENS,J.FLASH;var ee=Object.freeze({DEBOUNCE_TYPING:500,SEARCH_TYPING:200,DATABASE_UPGRADING_RETRY:3e3,MASK_DEFAULT_DELAY:600,MASK_DEFAULT_DURATION:600,DRAG_OVER_DURATION:600,DEBOUNCE_THUMBNAIL_UPDATE_REGISTER:500,LONG_PRESS:500,HIDE_HINT_TIP:1e3,TOOLTIP_DELAY:330}),et=Object.freeze({DEFAULT:"default",WARNING:"warning",WHITE_TIP:"white_tip"});Object.freeze({NORMAL_ALBUM:100,SHARED_ALBUM:50,SELECT_ALBUM:100,AUTO_SMART_ALBUM:100,GENERAL_TAG:500,FOLDER_NAVIGATOR:1e3,FOLDER_TREE:200,FOLDER_WALL_SUBFOLDER:200}),Object.freeze({Type:Object.freeze({FOLDER_VIEW:"folder_view"}),Mode:Object.freeze({SELECTED_BAR:"selected_bar",FOLDER_TREE:"folder_tree"}),EndDirection:Object.freeze({TOP:"top",BOTTOM:"bottom"})}),Object.freeze({DONE:"done",PENDING:"pending",PROCESSING:"processing"});var en="open_info_panel",er="current_info_panel",ei=Object.freeze({GENERAL:"General",DETAIL:"Detail"}),eo=Object.freeze({PATH:"FotoSocketIo/socket.io",Type:Object.freeze({BACKGROUND_TASK_DONE:"background-task-done",THUMBNAIL_UPDATE:"thumbnail-update",PAGE_VIEW:"page-view",REGENERATE_PREVIEW:"regenerate-preview"}),Operation:Object.freeze({REGISTER:"register",UNREGISTER:"unregister",EMIT:"emit"})}),ea=["arw","srf","sr2","dcr","k25","kdc","cr2","cr3","crw","nef","mrw","ptx","pef","raf","3fr","erf","mef","mos","orf","rw2","dng","x3f","raw"],es={PHOTOS:["jpg","jpeg","jpe","webp","bmp","png","gif","tif","tiff","heic","heif","hif"].concat((0,o._)(ea)),VIDEOS:["mpg","mpeg","avi","asf","wmv","mov","flv","f4v","mp4","divx","xvid","m2ts","m2t","mts","m4v","3gp","3g2","qt"]},el=Object.freeze({PACKAGE_CENTER:"SYNO.SDS.PkgManApp.Instance",AME:"SYNO.AME.Instance",CONTROL_PANEL:"SYNO.SDS.AdminCenter.Application",CONTROL_PANEL_SHARED_FOLDER:"SYNO.SDS.AdminCenter.Share.Main"}),eu=Object.freeze({MAX_YEAR:2100,MIN_YEAR:1901});Object.freeze({UPLOAD:1,THUMBNAIL:1}),D.SPACE_FULL,D.UNSUPPORTED_FILE_TYPE,D.USER_QUOTA_FULL,D.EXCLUDED_EXTENSION,R.UNKNOWN_ERROR;var ec=Object.freeze({HEIGHT:50});Object.freeze({LEFT_RIGHT_MARGIN:16});var ed=Object.freeze({GROUP:"group",USER:"user"});Object.freeze({EMPTY:"empty",PREPARING_UPLOAD:"preparingUpload",UPLOADING:"uploading",FINISHED_UPLOAD:"finishedUpload",FAILED_UPLOAD:"failedUpload"}),Object.freeze({CHECK:"check_all",UNCHECK:"uncheck_all"}),Object.freeze({FIRST:0}),Object.freeze({EMPTY_ID:null,EMPTY_ALBUM_NAME:"",EMPTY_ALBUM_PASSPHRASE:""});var ef=Object.freeze({LEFT_TOP:"left_top",LEFT_BOTTOM:"left_bottom",RIGHT_TOP:"right_top",RIGHT_BOTTOM:"right_bottom",TOP_RIGHT:"top_right",TOP_LEFT:"top_left",BOTTOM_RIGHT:"bottom_right",BOTTOM_LEFT:"bottom_left"}),ep=Object.freeze({MAIN:"main",GREY:"grey"}),eh=Object.freeze({RECTANGLE:"rectangle",OVAL:"oval"}),em=Object.freeze({MEDIUM:"medium",LARGE:"large"}),eg=Object.freeze({TEXT:"text",CIRCLE_TEXT:"circletext",TEXT_ICON:"texticon",ICON:"icon",ICON_TEXT:"icontext"}),ev=Object.freeze({LIGHT:"light",DARK:"dark",AUTO:"auto"}),ey=Object.freeze({CACHE_SIZE:"CacheSize",AUTO_SMART_ALBUM_LIBRARY:"AutoSmartAlbumLibrary",VIEW_LIBRARY:"ViewLibrary",VIEW_TYPE:"ViewType",SHOW_REDIRECT_TO_FOLDER_DIALOG:"ShowRedirectToFolderDialog",ADD_TO_ALBUM_DIALOG_LIBRARY:"AddToAlbumDialogLibrary",ADD_TO_ALBUM_DIALOG_VIEW_TYPE:"AddToAlbumDialogViewType",SHARING_SID:"sharing_sid"}),eb=Object.freeze({APPLY_HIDE_SHOW_CONCEPT:"apply_hide_show_concept",CLICK_SIDEBAR_PHOTO:"click_sidebar_photo",CLICK_SIDEBAR_ALBUM:"click_sidebar_album",CLICK_SIDEBAR_SHARING:"click_sidebar_sharing",CLICK_PHOTO_TIMELINE_VIEW:"click_photo_timeline_view",CLICK_PHOTO_FOLDER_VIEW:"click_photo_folder_view",CLICK_DIALOG_TIMELINE_VIEW:"click_dialog_timeline_view",CLICK_DIALOG_FOLDER_VIEW:"click_dialog_folder_view",CLICK_REMOVE_FROM_STACK_LIGHTBOX:"click_remove_from_stack_lightbox",CLICK_SET_AS_STACK_COVER_LIGHTBOX:"click_set_as_stack_cover_lightbox",CLICK_KEEP_ITEMS_DELETE_REST_LIGHTBOX:"click_keep_items_delete_rest_lightbox",CLICK_UNSTACK_TIMELINE:"click_unstack_timeline",CLICK_REMOVE_FROM_STACK_GRID_VIEW:"click_remove_from_stack_grid_view",CLICK_SET_AS_STACK_COVER_GRID_VIEW:"click_set_as_stack_cover_grid_view",CLICK_KEEP_ITEMS_DELETE_REST_GRID_VIEW:"click_keep_items_delete_rest_grid_view",CLICK_UNSTACK_GRID_VIEW:"click_unstack_grid_view",CLICK_GRID_VIEW:"click_grid_view",CLICK_ADD_FAVORITE_FROM_RIGHT_CLICK_MENU:"click_add_favorite_from_right_click_menu",CLICK_ADD_FAVORITE_FROM_SELECTED_BAR:"click_add_favorite_from_selected_bar",CLICK_ADD_FAVORITE_FROM_LIGHTBOX:"click_add_favorite_from_lightbox",CLICK_ADD_FAVORITE_FROM_STACK_GRID_VIEW:"click_add_favorite_from_stack_grid_view"});Object.freeze({AME:"https://sy.to/spwfame",HEVC_CANNOT_PLAY:"https://sy.to/spwfamehv",EDIT_FACE_FAILED:"https://sy.to/spwmantagerror"}),Object.freeze({CONFIRM:"confirm",ALERT:"alert"});var e_=Object.freeze({EXTERNAL_CONVERT_INTRO_DIALOG_BROWSE:"external_convert_intro_dialog_browse",EXTERNAL_CONVERT_INTRO_DIALOG_UPLOAD:"external_convert_intro_dialog_upload",EXTERNAL_CONVERT_INTRO_DIALOG_VIDEO:"external_convert_intro_dialog_video"}),eE=["heic","heif","hif"],ew=["mp4","mov"];(0,o._)(eE).concat((0,o._)(ew));var eS=Object.freeze({CHROME:"aadgfjmilhfblodmkgilohhjlakchfmg",FIREFOX:"synofoto-extension@synology.com",EDGE:"llplnibcahdpinjkofckooolpbcpilnn"}),eT=Object.freeze({CHROME:"https://chrome.google.com/webstore/detail/".concat(eS.CHROME),FIREFOX:"https://addons.mozilla.org/firefox/addon/".concat(eS.FIREFOX),SAFARI:"https://sy.to/imgexsafariui",EDGE:"https://microsoftedge.microsoft.com/addons/detail/".concat(eS.EDGE)}),eO="SynologyImageAssistant",eI=Object.freeze({browserExtension:{enabled:!1,version:"",packageMinVersion:"",featureVideoTranscoding:!1,featureDownload:!1},desktopClient:{enabled:!1,installed:!1,version:"",packageMinVersion:"",supportHevc:!1,supportVc1:!1,supportVp9:!1,supportMpeg2:!1,featureVideoTranscoding:!1,featureDownload:!1,suggestedBatchSize:1}});Object.freeze({EXTENSION:"1.0.15",DESKTOP_CLIENT:"1.0.0-00012"});var eA=Object.freeze({DEFAULT:"default",EXTERNAL_CONVERT:"external_convert",EDIT_FACE:"edit_face"});Object.freeze({CHECK_STATUS:3e3,GET_THUMBNAIL:6e4,TRANSMIT_VIDEO_SLICE:6e4,UPLOAD_VIDEO:36e5,DOWNLOAD:36e5}),Object.freeze({ADD:"add",DELETE:"delete",REASSIGN:"reassign"});var eC=Object.freeze({VIEW_MODE:"view_mode",CREATING_CROP:"creating_crop",EDITING_NAME:"editing_name",HOVERING:"hovering"}),ex=Object.freeze({TOOLTIP_ID:"image-preview-tooltip",BORDER_WIDTH:3,OFFSET:8,HORIZONTAL_RESERVED_EDGE:8,TOOLTIP_IMAGE_WIDTH_ATTRIBUTE:"data-image-width",TOOLTIP_IMAGE_HEIGHT_ATTRIBUTE:"data-image-height",TOOLTIP_IMAGE_URL_ATTRIBUTE:"data-image-url"});Object.freeze({MAX_SIZE:120,METHOD:{BROWSER:"browser",NAS:"nas",EXTERNAL:"external"}});var eD=Object.freeze({AUTO_GENERATE:"auto_generate",REGENERATE:"regenerate"}),eR=Object.freeze({SHOW_SCROLLBAR:"show-scrollbar"}),eL=Object.freeze({DOWNLOAD_MULTIPLE_ITEMS:"download_multiple_items",EXTERNAL_CONVERT:"external_convert",REGENERATE_PREVIEW:"regenerate_preview",ENABLE_DSM_RECYCLE_BIN:"enable_dsm_recycle_bin"}),ek=256},37771:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(76150),i=n(27412),o=n(7409),a=n(98848),s=n(24460),l=n(28395),u=n(45697),c=n.n(u),d=n(67294),f=n(94184),p=n.n(f),h=n(43830),m=100,g=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;(0,h._)(this,e),(0,i._)(this,"add",function(e){if(t.set.add(e),t.set.size>=t.size)for(var n=t.set.values(),r=0,i=n.next();r<=t.size/2&&!i.done;r+=1,i=n.next())t.set.delete(i.value)}),(0,i._)(this,"has",function(e){return t.set.has(e)}),(0,i._)(this,"clear",function(){return t.set.clear()}),this.set=new Set,this.size=n<=m?m:n};function v(e,t){return e.findIndex(function(e){return e.id===t})>=0}function y(e,t){return e.filter(function(e){return e.id!==t})}var b=new function e(){var t=this;(0,h._)(this,e),(0,i._)(this,"getNextId",function(){var e=t.nextId;return t.nextId+=1,1e7===t.nextId&&(t.nextId=0),e}),(0,i._)(this,"addImageLoadTask",function(e,n,r){v(t.waitingQueue,e)||v(t.loadingList,e)||(t.waitingQueue.push({id:e,imageId:n,callback:r}),t.updateLoadingList())}),(0,i._)(this,"addFastImageLoadTask",function(e,n,r){t.fastLoadingError&&t.addImageLoadTask(e,n,r),v(t.fastWaitingQueue,e)||v(t.fastLoadingList,e)||(t.fastWaitingQueue.push({id:e,imageId:n,callback:r}),t.updateLoadingList())}),(0,i._)(this,"updateLoadingList",function(){for(;;){var e=!0;if(t.fastWaitingQueue.length&&!t.fastLoadingError&&t.fastLoadingList.length<t.fastLoadingSize){var n=t.fastWaitingQueue.shift();t.fastLoadingList.push(n),n.callback(),e=!1}if(t.loadingList.length<t.maxLoadingSize&&t.waitingQueue.length){t.priorityChanged&&t.updateWaitingQueueByPriority();var r=t.waitingQueue.shift();t.loadingList.push(r),r.callback(),e=!1}if(e)return}}),(0,i._)(this,"handleErrorOnFastLoading",function(){!t.fastLoadingError&&t.fastWaitingQueue.length&&(t.fastLoadingError=!0,t.waitingQueue=t.waitingQueue.concat(t.fastWaitingQueue),t.fastWaitingQueue=[],t.loadedImageIdQueue.clear(),t.fastLoadingError=!1,t.updateLoadingList())}),(0,i._)(this,"deleteTaskInList",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return v(e,t)?(n(),y(e,t)):e}),(0,i._)(this,"cancelImageLoadTask",function(e){t.waitingQueue=t.deleteTaskInList(t.waitingQueue,e),t.fastWaitingQueue=t.deleteTaskInList(t.fastWaitingQueue,e),t.finishImageLoadTask(e)}),(0,i._)(this,"finishImageLoadTask",function(e,n){t.loadingList=t.deleteTaskInList(t.loadingList,e,function(){n&&t.loadedImageIdQueue.add(n)}),t.fastLoadingList=t.deleteTaskInList(t.fastLoadingList,e),t.updateLoadingList()}),(0,i._)(this,"IsLoaded",function(e){return t.loadedImageIdQueue.has(e)}),(0,i._)(this,"updatePriority",function(e){var n=t.priorityIdArray.length===e.length;if(n){for(var r=0;r<e.length;r++)if(t.priorityIdArray[r]!==e[r]){n=!1;break}}n||(t.priorityIdArray=e,t.priorityChanged=!0)}),(0,i._)(this,"updateWaitingQueueByPriority",function(){var e=[],n=[];t.waitingQueue.forEach(function(r){t.priorityIdArray.indexOf(r.imageId)>=0?e.push(r):n.push(r)}),t.waitingQueue=e.concat(n),t.priorityChanged=!1});var n=1e3;this.nextId=0,this.waitingQueue=[],this.loadingList=[],this.maxLoadingSize=5,this.fastLoadingSize=20,this.fastWaitingQueue=[],this.fastLoadingList=[],this.fastLoadingError=!1,this.priorityIdArray=[],this.priorityChanged=!1,this.loadedImageIdQueue=new g(n),window.il=this.loadedImageIdQueue},_=n(96904),E=n(73102),w=n(13801),S=n(34774),T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isCover,n=void 0!==t&&t,r=e.isAlbumCover,i=void 0!==r&&r,o=e.imageUrl,a=void 0===o?_.yL.None:o,s=e.isPerson,l=void 0!==s&&s,u=e.codec,c=void 0===u?"":u,d=e.pcClientHevcSupport,f=void 0!==d&&d,p=e.isSupportAutoGenerateThumbnail,h=void 0!==p&&p;if(l)return"";if(a===_.yL.None)return"synofoto-item-image-none";if(a===_.yL.Regenerating)return"synofoto-item-image-auto-converting";if(i)return a===_.yL.AmeDefect||a===_.yL.Broken?"synofoto-album-image-empty":"";if(!n){if([_.yL.Broken,_.yL.Converting,_.yL.SpaceDisable].includes(a))return"synofoto-item-image-".concat(a);if(a===_.yL.AmeDefect){var m=(0,w.Z)({codec:c,pcClientHevcSupport:f,isSupportAutoGenerateThumbnail:h});return"synofoto-item-image-".concat(m)}}return""},O=function(e){var t=e.codec,n=e.imageLoaded,r=e.imageUrl,o=e.isAlbumCover,a=e.isCover,s=e.isPerson,l=e.isSupportAutoGenerateThumbnail,u=e.isVideo,c=T({isCover:a,isAlbumCover:o,imageUrl:r,isPerson:s,codec:t,pcClientHevcSupport:e.pcClientHevcSupport,isSupportAutoGenerateThumbnail:l});return{divClasses:p()("synofoto-item-grey-image",{"synofoto-item-circle-image":s}),imageStatusClasses:p()("synofoto-item-image-status",(0,i._)({"synofoto-item-image-photo":!u,"synofoto-item-image-video":u},c,c)),imageClasses:p()({"synofoto-item-image":!0,"synofoto-item-image-loaded":n,"synofoto-item-image-cover":a,"synofoto-item-circle-image":s})}},I="SET_INITIAL",A="SET_STATE",C=function(e,t){switch(t.type){case I:return{loaded:!1,startLoad:!1,startFetch:!1,imageUrl:t.imageUrl};case A:t.type;var n=(0,a._)(t,["type"]);return(0,o._)({},e,n);default:return e}},x=function(e,t,n){b.finishImageLoadTask(n,e?t:void 0)},D=function(e){var t=e.imageUrl,n=e.imageWidth,i=e.imageHeight,o=e.imageId,a=e.className,u=e.isCover,c=e.isPerson,f=e.isVideo,p=e.altText,h=e.isAlbumCover,m=e.isSupportAutoGenerateThumbnail,g=e.pcClientHevcSupport,v=e.codec,y=(0,s._)((0,d.useReducer)(C,{loaded:!1,startLoad:!1,startFetch:!1,imageUrl:t}),2),w=y[0],T=y[1],D=(0,d.useRef)(null),R=(0,d.useRef)(b.getNextId()),L=(0,d.useRef)(b.IsLoaded(o)),k=(0,d.useRef)(!0),M=D.current||t,P=O({codec:v,imageLoaded:w.loaded,imageUrl:w.imageUrl,isAlbumCover:h,isCover:u,isPerson:c,isSupportAutoGenerateThumbnail:m,isVideo:f,pcClientHevcSupport:g}),N=P.divClasses,F=P.imageStatusClasses,B=P.imageClasses,U=(0,d.useCallback)(function(e){return!!k.current&&(T(e),!0)},[]),H=(0,d.useCallback)(function(e,t){x(e.loaded,t,R.current),L.current&&(L.current=!1,b.handleErrorOnFastLoading()),U({type:A,startFetch:!1,startLoad:!1})&&b.addImageLoadTask(R.current,t,function(){U({type:A,startFetch:!0})||x(e.loaded,t,R.current)})},[U]);(0,d.useEffect)(function(){return function(){k.current=!1,D.current&&URL.revokeObjectURL(D.current)}},[]),(0,d.useEffect)(function(){var e=(0,S.MS)(t);if(!e)return U({type:I,imageUrl:t}),function(){};var n=R.current;return L.current?b.addFastImageLoadTask(n,o,function(){U({type:A,startLoad:!0,imageUrl:t})}):b.addImageLoadTask(n,o,function(){U({type:A,startLoad:!0,imageUrl:t})}),function(){e&&b.cancelImageLoadTask(n)}},[t,o,U]),(0,d.useEffect)(function(){if(w.startFetch&&!w.loaded&&k.current){var e=function(){x(w.loaded,o,R.current),U({type:A,startFetch:!1,imageUrl:_.yL.Broken})};(0,E.$)(t).then(function(t){return(0,r._)(function(){var n;return(0,l.Jh)(this,function(r){return k.current?200===t.status?(x(w.loaded,o,R.current),n=t.data,D.current=URL.createObjectURL(n),U({type:A,startFetch:!1,loaded:!0})):503===t.status?H(w,o):e():x(w.loaded,o,R.current),[2]})})()}).catch(function(){e()})}},[w,U,t,o,H]);var j=function(){var e={};return i&&(e.height=i),n&&(e.width=n),e},V=function(){U({type:A,startLoad:!1,loaded:!0}),x(!0,o,R.current)};return d.createElement("div",{className:"".concat(N," ").concat(a),style:j(),"data-testid":"item-image-container"},d.createElement("div",{className:F,"data-testid":"item-image-status"},(0,S.MS)(M)?d.createElement("img",{alt:p,className:B,onLoad:V,onError:function(){return H(w,o)},style:u?{}:{height:i,width:n},"data-testid":"item-image",src:w.startLoad||w.loaded?M:void 0}):null))};D.propTypes={imageUrl:c().string.isRequired,imageWidth:c().number,imageHeight:c().number,imageId:c().number,className:c().string,isCover:c().bool,isPerson:c().bool,isVideo:c().bool,altText:c().string,isAlbumCover:c().bool,isSupportAutoGenerateThumbnail:c().bool,pcClientHevcSupport:c().bool,codec:c().string},D.defaultProps={imageId:0,className:"",isCover:!1,isPerson:!1,isVideo:!1,imageWidth:null,imageHeight:null,altText:"",isAlbumCover:!1,codec:"",isSupportAutoGenerateThumbnail:!1,pcClientHevcSupport:!1};var R=D},97192:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(55210),i=n(35369),o=n(45697),a=n.n(o),s=n(67294),l=n(15593),u=n(55743),c=n(3799),d=n(24428),f=n(61630),p=function(e){var t=e.triggerRef,n=e.disabled,r=void 0!==n&&n,i=e.handleOnContextMenu,o=(0,l.I0)(),a=(0,s.useCallback)(function(e){e.preventDefault();var n,r,a,s=null==t?void 0:null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect(),l=s.x,u=s.y,c=s.width,f=s.height,p=e.clientX,h=e.clientY;if(i(),(null!==(a=null===(r=document.getElementById("synofoto-right-click-menu"))||void 0===r?void 0:r.childElementCount)&&void 0!==a?a:0)<=0){o(d.g(!1));return}o(d.e(p,h));var m=l+c>p&&l<p&&u+f>h&&u<h;o(d.g(!!m))},[o,t,i]);(0,s.useEffect)(function(){if(!t.current||r||(0,f.tq)())return function(){};var e=t.current;return e.addEventListener("contextmenu",a),function(){e.removeEventListener("contextmenu",a)}},[t,r,a])},h=n(96904),m=n(79905),g=n(51335),v=n(19084),y=function(e){return e.getIn(["selectedBar","lastSelected","id"])},b=function(e){var t=y(e);return e.getIn(["selectedBar","selectedMap",String(t),"sort_time_in_sec"])||-1},_=function(e){return e.getIn(["actionBar","albumType"])},E=function(e){return e.getIn(["selectedBar","actionType"])},w=function(e,t,n){return(0,v.hG)(e.getIn(["selectedBar","selectedSet",t],i.default.Set()),n)},S=function(e,t,n){return(0,v.no)(e,t,n)||i.default.List()},T=function(e,t,n){return(0,v.hG)(e.getIn(["selectedBar","previewSet",t],i.default.Set()),n)},O=y,I=b,A=function(e){return e.getIn(["selectedBar","selectMode"])},C=function(e){return e.getIn(["selectedBar","selectType"])},x=function(e){return e.getIn(["selectedBar","lastSelected","type"])},D=n(93151),R=n(94307),L=n(52937),k=n(92632),M=n(84402),P=function(e){var t=e.type,n=e.idArray,o=e.infoMap,a=e.children,d=e.className,y=e.withColorBanner,b=e.allowSelect,P=e.onMouseEnter,N=e.onMouseLeave,F=e.inFolderView,B=e.isPerson,U=e.iconCls,H=e.visibility,j=e.isConcept,V=e.id,z=(0,l.I0)(),Z=(0,l.v9)(_),G=(0,l.v9)(E),W=(0,l.v9)(function(e){return w(e,t,n)}),q=(0,l.v9)(function(e){return S(e,Z,G)}),Y=(0,l.v9)(function(e){return T(e,t,n)}),$=(0,l.v9)(O),K=(0,l.v9)(I),X=(0,M.iY)((0,R.AZ)())||(0,k.CB)(),Q=(0,l.v9)(A),J=(0,l.v9)(C),ee=(0,l.v9)(x),et=(0,l.v9)(D.Z.getMenuIsOpen),en=(0,s.useRef)(null),er=(0,s.useCallback)(function(e){en.current=e},[en]);p({triggerRef:en,disabled:B||j||!b,handleOnContextMenu:(0,s.useCallback)(function(){W||(z((0,g.S$)()),z((0,g.EG)(t,n,i.default.fromJS(o))))},[z,W,n,o,t])}),(0,s.useEffect)(function(){!Q||sessionStorage.getItem("select_multiple_tips")||B||j||(0,f.tq)()||(sessionStorage.setItem("select_multiple_tips",!0),c.Z.openTopToast({message:(0,m.n6)("app","select_multiple_tips"),duration:5e3}))},[Q,B,j]);var ei=function(e,t){var n=(0,v.eF)(q,J),r=n.findIndex(function(t){return t.id===e}),i=n.findIndex(function(e){return e.id===t}),o=n.slice(Math.min(r,i),Math.max(r,i)+1);return o.findIndex(function(e){return 0===e.id})>-1?[o[i]]:o},eo=function(e){var r=ei($,n[n.length-1]),o={},a=r.map(function(e){return e.id});r.forEach(function(e){o[e.id]={time:e.time,owner_user_id:e.owner_user_id,provider_user_id:e.provider_user_id,thumbnailUnitId:e.thumbnailUnitId,filename:e.filename,type:e.type,live_type:e.live_type,codec:e.codec}}),e(t,a,i.default.fromJS(o))},ea=function(e){var r=(0,v.dD)(q,ee,t,$,n[n.length-1]),a=r.folder,s=r.photoWall;if((null==a?void 0:a.length)>0&&e(h.RT.FOLDER,a.map(function(e){return e.id}),i.default.fromJS(o)),(null==s?void 0:s.length)>0){var l={};s.forEach(function(e){l[e.id]={time:e.time,owner_user_id:e.owner_user_id,thumbnailUnitId:e.thumbnailUnitId,filename:e.filename,type:e.type,live_type:e.live_type,codec:e.codec,favorite:e.favorite}}),e(h.RT.ITEM,s.map(function(e){return e.id}),i.default.fromJS(l))}},es=function(e){try{var r=n[n.length-1],a=(0,L.He)().rangeQueryItemId({id:r,timestamp:o[r].sort_time_in_sec},{id:$,timestamp:K}),s=a.idArray,l=a.infoMap;e(t,s,i.default.fromJS(l))}catch(r){e(t,n,i.default.fromJS(o))}},el=function(e){return X?eo(e):F?ea(e):es(e)};return s.createElement("div",{ref:er,className:"synofoto-right-click-wrapper"},s.createElement(u.Z,{type:t,idArray:n,infoMap:o,className:d,withColorBanner:y,allowSelect:!(et&&!W)&&b,onMouseEnter:P,onMouseLeave:N,inFolderView:F,selectMode:!et&&Q,selectType:J,actionType:G,lastSelectedId:$,checked:W,previewSelect:Y,addSelect:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z(g.EG.apply(void 0,(0,r._)(t)))},addMultiSelect:el,removeSelect:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z(g.uW.apply(void 0,(0,r._)(t)))},setPreviewSelect:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z(g.b3.apply(void 0,(0,r._)(t)))},removePreviewSelect:function(){return z((0,g.n0)())},visibility:H,isPerson:B,isConcept:j,iconCls:U,id:V},a))};P.propTypes={type:a().string.isRequired,idArray:a().arrayOf(a().number).isRequired,infoMap:a().shape(),children:a().node,className:a().string,withColorBanner:a().bool,allowSelect:a().bool,onMouseEnter:a().func,onMouseLeave:a().func,inFolderView:a().bool,id:a().number,isPerson:a().bool,iconCls:a().string,visibility:a().bool,isConcept:a().bool},P.defaultProps={infoMap:{},children:null,className:"",withColorBanner:!0,allowSelect:!0,onMouseEnter:null,onMouseLeave:null,inFolderView:!1,isPerson:!1,iconCls:"check-on-btn-icon",visibility:!1,isConcept:!1,id:0};var N=P},22758:function(e,t,n){"use strict";var r=n(7409),i=n(99282),o=n(23930),a=n.n(o),s=n(45697),l=n.n(s),u=n(67294),c=n(91250),d=n(78141),f=n(96904),p=n(47739),h=n(18016),m=n(25480),g=n(34774),v=function(){},y=function(e){var t={item:a().map.isRequired,albumKey:l().shape({passphrase:l().string,albumId:l().number}).isRequired,isHidden:l().bool,handleClick:l().func},n={isHidden:!1,handleClick:v},o=u.forwardRef(function(t,n){var o=t.item,a=t.albumKey,s=t.isHidden,l=(0,m.Z)(o.get("owner_user_id")),h=o.getIn(["additional","thumbnailUnitId"]),v=(0,d.Z)({thumbnailUnitId:h,thumbnailLibrary:l}),y=o.get("id",0);if(0===y)return null;var b=o.get("filename"),_=(0,g.AJ)(y,v,"item","xl",a,l,b);return _===f.yL.Broken||_===f.yL.Converting||_===f.yL.SpaceDisable||_===f.yL.AmeDefect||_===f.yL.Regenerating?u.createElement(c.Z,{fileOwnerUserId:o.get("owner_user_id"),folderId:o.get("folder_id"),thumbnailStatus:_,hidden:s,library:l,codec:(0,p.Z)(o)}):u.createElement(e,(0,i._)((0,r._)({},t),{imgSrc:_,ref:n}))});return o.propTypes=t,o.defaultProps=n,o.displayName="withLightboxImageThumbnailInfo[".concat((0,h.Z)(e),"]"),o};t.Z=y},13103:function(e,t,n){"use strict";var r=function(e){return function(t,n){return e()?n:t}}(n(61630).tq);t.C=r},65316:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(24460),i=n(67294),o=n(15593),a=n(96904),s=function(e){return e!==a.Q2.AUTO?e:window.matchMedia("(prefers-color-scheme: dark)").matches?a.Q2.DARK:a.Q2.LIGHT},l=n(76408),u=function(){var e=(0,o.v9)(l.Z.getSettingTheme),t=(0,o.v9)(l.Z.getPreviewTheme)||e,n=(0,r._)((0,i.useState)(s(t)),2),u=n[0],c=n[1],d=(0,i.useCallback)(function(e){c(e.matches?a.Q2.DARK:a.Q2.LIGHT)},[]);return(0,i.useEffect)(function(){var e=window.matchMedia("(prefers-color-scheme: dark)");return t===a.Q2.AUTO&&e.addEventListener("change",d),c(s(t)),function(){e.removeEventListener("change",d)}},[t,d]),u}},71569:function(e,t,n){"use strict";var r=n(67294),i=n(15593),o=n(96904),a=n(1551),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltipsId,n=void 0===t?o.ZP.GLOBAL_TOOLTIP_ID:t,s=(0,i.I0)(),l=(0,r.useRef)(null),u=(0,r.useCallback)(function(e){l.current=e},[]),c=(0,r.useCallback)(function(){setTimeout(function(){s((0,a.l)(n,!0))},50)},[s,n]);return(0,r.useEffect)(function(){var e;return null===(e=l.current)||void 0===e||e.addEventListener("long-press",c),function(){var e;null===(e=l.current)||void 0===e||e.removeEventListener("long-press",c)}},[c]),{setGlobalTooltipTargetRef:u}};t.Z=s},82052:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(24460),i=n(67294),o=n(5943),a=function(e,t){var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect().width>e.getBoundingClientRect().width;return(!(0,o.G6)()||!r)&&(!!r||!!t&&n.getBoundingClientRect().height>e.getBoundingClientRect().height)},s=function(e,t){var n=e.clientWidth,r=e.scrollWidth,i=e.clientHeight,a=e.scrollHeight;return(!(0,o.G6)()||!(n<r))&&(n<r||!!t&&i<a)};function l(e,t,n){return null!==e&&(n?a(e,t):s(e,t))}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltipStr,n=e.isConsiderHeight,o=void 0!==n&&n,a=e.precise,s=void 0!==a&&a,u=(0,r._)((0,i.useState)(null),2),c=u[0],d=u[1],f=(0,r._)((0,i.useState)(void 0),2),p=f[0],h=f[1],m=(0,i.useCallback)(function(e){d(e),h(l(e,o,s)?t:void 0)},[o,t,s]),g=(0,i.useCallback)(function(){var e=l(c,o,s)?t:void 0;p!==e&&h(e)},[o,s,t,c,p]);return{tooltipTitle:p,setTooltipTargetRef:m,updateTooltipTitle:g}}},74620:function(e,t,n){"use strict";var r=n(67294),i=n(4034),o=n(89250),a=n(33610),s=function(){var e=(0,o.TH)(),t=(0,o.UO)(),n=(0,o.s0)(),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.replace,i=void 0!==r&&r,o=t.state,s=void 0===o?null:o,l=t.relative,u=void 0!==l&&l,c=t.preventScrollReset,d=void 0!==c&&c;n(e,(0,a.A)({replace:i,state:s,relative:u,preventScrollReset:d}))},l=(0,i.ZP)(e);return{location:l,params:t,navigate:s,children:r.createElement(o.j3,{context:{location:l,params:t,navigate:s}})}};t.Z=s},87207:function(e,t,n){"use strict";var r=n(15593),i=n(76408),o=n(93604),a=function(){var e=(0,r.v9)(i.Z.getAmeCanConvert),t=(0,r.v9)(i.Z.getAutoGenerateThumbnail),n=(0,r.v9)(o.Z.getCanUsePcClient);return{isSupportAutoGenerateThumbnail:t&&n,hasVc1:(0,r.v9)(i.Z.getHasVc1),hasH264:(0,r.v9)(i.Z.getHasH264),isAmeCanConvert:e,pcClientHevcSupport:(0,r.v9)(o.Z.getPcClientHevcSupport),pcClientVc1Support:(0,r.v9)(o.Z.getPcClientVc1Support),pcClientVp9Support:(0,r.v9)(o.Z.getPcClientVp9Support),pcClientMpeg2Support:(0,r.v9)(o.Z.getPcClientMpeg2Support),canUsePcClient:n,canUseVideoTranscoding:(0,r.v9)(o.Z.getCanUseVideoTranscoding)}};t.Z=a},78141:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(67294),i=n(15593),o=n(24460),a=n(22902),s=n(96904),l=n(47350),u=function(e,t,n){var r={},i=new Set,s=new Set,l=(0,a.Z)(function(){var n=[],a=[],l=!0,u=!1,c=void 0;try{for(var d,f=Object.entries(r)[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=(0,o._)(d.value,2),h=p[0],m=p[1],g=parseInt(h,10);m>0?i.has(g)||(n.push(g),i.add(g)):i.has(g)&&(a.push(g),i.delete(g))}}catch(e){u=!0,c=e}finally{try{l||null==f.return||f.return()}finally{if(u)throw c}}if(n.length>0){var v=n.filter(function(e){return s.has(e)}),y=n.filter(function(e){return!s.has(e)});v.length>0&&e({thumbnailUnitIds:v,isTeamSpace:!0}),y.length>0&&e({thumbnailUnitIds:y,isTeamSpace:!1})}a.length>0&&t({thumbnailUnitIds:a}),s.clear()},n),u=function(e){Object.prototype.hasOwnProperty.call(r,e)||(r[e]=0)},c=function(e){u(e),r[e]+=1},d=function(e){u(e),r[e]-=1};return{register:function(e){var t=e.thumbnailUnitId;e.isTeamSpace&&s.add(t),c(t),l()},unregister:function(e){d(e.thumbnailUnitId),l()}}}(function(e){return function(t){var n=t.thumbnailUnitIds,r=t.isTeamSpace;e().send({type:s.b2.Type.THUMBNAIL_UPDATE,operation:s.b2.Operation.REGISTER,data:{unit_id:n,is_team:r}})}}(l.ZP),function(e){return function(t){var n=t.thumbnailUnitIds;e().send({type:s.b2.Type.THUMBNAIL_UPDATE,operation:s.b2.Operation.UNREGISTER,data:{unit_id:n}})}}(l.ZP),s.LK.DEBOUNCE_THUMBNAIL_UPDATE_REGISTER),c=function(e){return Number.isInteger(e)&&e>0},d=function(e){return!!e&&e.xl===s.yL.Ready&&e.m===s.yL.Ready&&e.sm===s.yL.Ready},f=n(84402),p=n(1227),h=function(e){var t,n=e._thumbnailUpdateManager,o=e.thumbnailUnitId,a=e.thumbnailLibrary,s=(0,r.useCallback)(function(e){return p.Z.getInfoByUnitId(e,o)},[o]),l=null===(t=(0,i.v9)(s))||void 0===t?void 0:t.toJS();return(0,r.useEffect)(function(){return!c(o)||d(l)?function(){}:(n.register({thumbnailUnitId:o,isTeamSpace:(0,f.Eo)(a)}),function(){return n.unregister({thumbnailUnitId:o})})},[n,a,l,o]),l},m=function(e){return function(t){return h({_thumbnailUpdateManager:e,thumbnailUnitId:t.thumbnailUnitId,thumbnailLibrary:t.thumbnailLibrary})}}(u)},8768:function(e,t){"use strict";t.Z=Object.freeze({ALBUM:"album",FOLDER:"folder",ITEM:"item",TIMELINE:"timeline",SHARING:"sharing",SLIDESHOW:"slideshow",SEARCH:"search",EDIT_FACE:"edit_face",ALBUM_TYPE:Object.freeze({GEOCODING:"geocoding",GENERAL_TAG:"general_tag",PERSON:"person",ALBUM:"album",VIDEO:"video",RECENTLY_ADDED:"recently_added",DEGREE_360:"360",LIVE:"live",MOTION_PHOTO:"motion_photo",FAVORITE:"favorite",CONCEPT:"concept",SIMILAR:"similar"}),PERSONAL_SPACE:"personal_space",TEAM_SPACE:"shared_space",ROOT:"/"}),Object.freeze({POP:"POP",PUSH:"PUSH",REPLACE:"REPLACE"})},96994:function(e,t){"use strict";var n=function(e){return e.getIn(["actionBar","albumType"])},r=function(e){return e.getIn(["actionBar","id"])},i=function(e){return e.getIn(["actionBar","library"])},o=function(e){return e.getIn(["actionBar","name"])},a=function(e){return e.getIn(["actionBar","specifiedName"])},s=function(e){return!!e.getIn(["actionBar","specifiedName"])},l=function(e){return e.getIn(["actionBar","info"])},u=function(e){return e.getIn(["actionBar","info","passphrase"])},c=function(e){return e.getIn(["actionBar","conceptInfo"])},d=function(e){return e.getIn(["actionBar","conceptInfo","displayThreshold"])},f=function(e){return e.getIn(["actionBar","conceptInfo","visibility"])},p=function(e){return e.getIn(["actionBar","itemCount"])},h=function(e){return e.getIn(["actionBar","hiddenItemCount"])},m=function(e){return e.getIn(["actionBar","personInfo"])},g=function(e){return e.getIn(["actionBar","show"])};t.Z={getAlbumType:n,getAlbumId:r,getAlbumName:o,getAlbumSpecifiedName:a,getConceptInfo:c,getConceptThreshold:d,getConceptVisibility:f,getLibrary:i,getInfo:l,getInfoPassphrase:u,getItemCount:p,getHiddenItemCount:h,getIsFromSuggestion:s,getPersonInfo:m,getShow:g}},32648:function(e,t,n){"use strict";var r=n(35369),i=n(22222),o=n(96904),a=function(e){return e.getIn(["albumReducer","album"])},s=function(e){return e.getIn(["albumReducer","photowall"])},l=function(e,t){return e.getIn(["albumReducer","album","list"]).find(function(e){return e.get("id")===t})},u=function(e){return e.getIn(["albumReducer","album","sharing_permission"],r.default.Map())},c=function(e){return e.getIn(["albumReducer","photowall","items",0,"id"],0)},d=function(e){return e.getIn(["albumReducer","album","current","type"],"")},f=function(e){return e.getIn(["albumReducer","album","current","freezeAlbum"])},p=function(e){return e.getIn(["albumReducer","album","inviteeInfo"])},h=function(e){return e.getIn(["albumReducer","album","current","name"])},m=function(e){return e.getIn(["albumReducer","album","current","id"])},g=function(e){return e.getIn(["albumReducer","album","current","sortBy"])},v=function(e){return e.getIn(["albumReducer","album","current","sortDirection"])},y=(0,i.createSelector)([d,f],function(e,t){return e===o.ZP.ALBUM_TYPE.CONDITION||t}),b=function(e){return e.getIn(["albumReducer","album","current","itemCount"])},_=function(e){return e.getIn(["albumReducer","album","current","passphrase"])},E=function(e){return e.getIn(["albumReducer","album","current","shared"],!1)},w=function(e){return e.getIn(["albumReducer","album","current","ownerUserId"])},S=function(e){return e.getIn(["albumReducer","album","albumListDisplay"])},T=function(e){return e.getIn(["albumReducer","album","albumListSortBy"])},O=function(e){return e.getIn(["albumReducer","album","albumListSortDirection"])},I=function(e){return e.getIn(["albumReducer","album","current"],r.default.Map())},A=function(e){return e.getIn(["albumReducer","album","autoStartEditing"])},C=function(e){return e.getIn(["albumReducer","album","isLoaded"])},x=function(e){return e.getIn(["albumReducer","album","processing"])},D=function(e){return e.getIn(["albumReducer","album","count"])},R=function(e){return e.getIn(["albumReducer","album","list"])},L=function(e){return e.getIn(["albumReducer","photowall","flexSection"])},k=function(e){return e.getIn(["albumReducer","album","current","loaded"],!1)},M=function(e){return e.getIn(["albumReducer","album","current","additional","provider_count"],1)};t.Z={getAlbum:a,getAlbumById:l,getAlbumPhotowall:s,getAlbumCount:D,getAlbumList:R,getFirstItemId:c,getInviteeInfo:p,getSharingPermission:u,getCurrentAlbum:I,getCurrentAlbumName:h,getCurrentType:d,getCurrentFreezeAlbum:f,getCurrentAlbumId:m,getCurrentAlbumSortBy:g,getCurrentAlbumSortDirection:v,getCurrentAlbumIsShared:E,getCurrentAlbumLoaded:k,getCurrentAlbumOwnerUserId:w,getIsCondition:y,getCurrentAlbumItemCount:b,getCurrentAlbumPassphrase:_,getAlbumListDisplay:S,getAlbumListSortBy:T,getAlbumListSortDirection:O,getAutoStartEditing:A,getIsLoaded:C,getIsProcessing:x,getPhotowallFlexSection:L,getCurrentAlbumProviderCount:M}},93151:function(e,t){"use strict";var n=function(e){return e.getIn(["contextMenu","position"])},r=function(e){return e.getIn(["contextMenu","isOpen"])};t.Z={getMenuMousePosition:n,getMenuIsOpen:r}},92987:function(e,t,n){"use strict";var r=n(55210),i=n(35369),o=n(19084),a=function(e){return e.getIn(["embededSelected","actionType"])},s=function(e){return e.getIn(["embededSelected","isSingleSelectMode"])},l=function(e){return e.getIn(["embededSelected","lastSelected"])},u=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("id")},c=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("type")},d=function(e){return e.getIn(["embededSelected","previewSet","item"])},f=function(e){return e.getIn(["embededSelected","selectedSet"])},p=function(e){return e.getIn(["embededSelected","selectType"])},h=function(e){return e.getIn(["embededSelected","selectMode"])},m=function(e){return e.getIn(["embededSelected","selectedMap"])},g=function(e){var t=f(e).get("item").toArray();return m(e).forEach(function(e,n){if(e.has("similar")){var i;(i=t).push.apply(i,(0,r._)(e.getIn(["similar","item_id"]).filter(function(e){return e.toString()!==n}).toArray()))}}),t},v=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=f(e).get("item"),i=m(e),o=[],a=[];return n.forEach(function(e){var n,s,l=i.getIn([e.toString()]),u=l.getIn(["owner_user_id"]),c=t&&l.has("similar")?l.getIn(["similar","item_id"]):[e];0===u?(n=a).push.apply(n,(0,r._)(c)):u>0?(s=o).push.apply(s,(0,r._)(c)):console.warn("selected item ".concat(e," has no owner_user_id"))}),{teamItemIds:a,personalItemIds:o}},y=function(e){return function(t){return f(t).get(e)}},b=function(e){var t=u(e);return t?e.getIn(["embededSelected","selectedMap",String(t),"time"]):-1},_=function(e,t){return function(n){return(0,o.no)(n,e,t)||i.default.List()}};t.Z={getActionType:a,getIsSingleSelectMode:s,getLastSelectedId:u,getLastSelectedType:c,getLastSelectedTime:b,getPreviewSetItem:d,getSelectedSet:f,getSelectType:p,getSelectMode:h,getSelectedItemIdSetIncludingSimilarChildren:g,getSelectedItemIdSetBySpace:v,getSelectedMap:m,getSelectedSetByType:y,getRows:_}},93604:function(e,t,n){"use strict";var r=n(5943),i=function(e){return e.getIn(["externalConvert","dependencyStatus"])},o=function(e){return e.getIn(["externalConvert","conversionQueue"])},a=function(e){return e.getIn(["externalConvert","openQueue"])},s=function(e){return e.getIn(["externalConvert","currentTasks"])},l=function(e){return e.getIn(["externalConvert","waitingQueue","regenerateQueue"]).size+e.getIn(["externalConvert","waitingQueue","tier1Queue"]).size+e.getIn(["externalConvert","waitingQueue","tier2Queue"]).size+e.getIn(["externalConvert","waitingQueue","tier3Queue"]).size+e.getIn(["externalConvert","waitingQueue","tier4Queue"]).size+e.getIn(["externalConvert","currentTasks"]).size},u=function(e){return 0!==s(e).size},c=function(e){return e.getIn(["externalConvert","waitingQueue","regenerateQueue"]).size},d=function(e){return 0===c(e)},f=function(e){return e.getIn(["externalConvert","completedCategories"])},p=function(e){return e.getIn(["externalConvert","dependencyStatusLoaded"])},h=function(e){return i(e).getIn(["browserExtension","enabled"])},m=function(e){return i(e).getIn(["desktopClient","enabled"])},g=function(e){return h(e)&&m(e)},v=function(e){return i(e).getIn(["desktopClient","installed"])},y=function(e){return i(e).getIn(["desktopClient","supportHevc"])},b=function(e){return i(e).getIn(["desktopClient","supportVc1"])},_=function(e){return i(e).getIn(["desktopClient","supportVp9"])},E=function(e){return i(e).getIn(["desktopClient","supportMpeg2"])},w=function(e){return i(e).getIn(["browserExtension","featureVideoTranscoding"])},S=function(e){return i(e).getIn(["desktopClient","featureVideoTranscoding"])},T=function(e){return i(e).getIn(["browserExtension","featureDownload"])},O=function(e){return i(e).getIn(["desktopClient","featureDownload"])},I=function(e){return T(e)&&O(e)},A=function(e){return w(e)&&S(e)},C=function(e){return i(e).getIn(["desktopClient","suggestedBatchSize"],1)},x=function(e){return(0,r.eE)()?y(e):y(e)&&_(e)&&E(e)&&b(e)};t.Z={getDependencyStatus:i,getConversionQueue:o,getCurrentTasks:s,getOpenQueue:a,getTaskNum:l,getIsConverting:u,getCompletedCategories:f,getDependencyStatusLoaded:p,getBrowserExtensionEnabled:h,getPcClientEnabled:m,getPcClientInstalled:v,getCanUsePcClient:g,getPcClientHevcSupport:y,getPcClientVc1Support:b,getPcClientVp9Support:_,getPcClientMpeg2Support:E,getBrowserExtensionVideoTranscoding:w,getPcClientVideoTranscoding:S,getCanUseVideoTranscoding:A,getSuggestedBatchSize:C,getAllCodecsSupported:x,getRegenerateTaskNum:c,getIsRegenerateTaskEmpty:d,getCanUseDownloadFeature:I}},92319:function(e,t,n){"use strict";var r=n(35369),i=n(96904),o=function(e){return e.getIn(["folderReducer","folder","currentFolder"])},a=function(e){return e.getIn(["folderReducer","folder","currentFolder","id"],-1)},s=function(e){return e.getIn(["folderReducer","folder","currentFolder","accessPermission"],r.default.Map())},l=function(e){return e.getIn(["folderReducer","folder","currentFolder","library"],i.Zu.PERSONAL)},u=function(e){return e.getIn(["folderReducer","folder","folders"])},c=function(e){return e.getIn(["folderReducer","folder","folders","list"])},d=function(e){return e.getIn(["folderReducer","photowall"])},f=function(e){return e.getIn(["folderReducer","photowall","items"])},p=function(e){return e.getIn(["folderReducer","photowall","count"])},h=function(e){return e.getIn(["folderReducer","folder","folderTree",0])},m=function(e){return e.getIn(["folderReducer","folder","folderTree",0,"id"])},g=function(e){return e.getIn(["folderReducer","folder","folderTree"])},v=function(e){return e.getIn(["folderReducer","folder","idToPos"])},y=function(e,t){return e.getIn(["folderReducer","folder","idToPos",t])},b=function(e){return e.getIn(["folderReducer","folder","currentFolder","sortBy"])},_=function(e){return e.getIn(["folderReducer","folder","currentFolder","sortDirection"])},E=function(e){return e.getIn(["folderReducer","folder","hideSubFolders"],!1)};t.Z={getCurrentFolder:o,getCurrentSubfoldersInFolderView:u,getFolderPhotowall:d,getSubfoldersInFolderView:c,getFolderIdToPos:v,getFolderPos:y,getRootFolder:h,getRootFolderId:m,getFolderTree:g,getCurrentFolderId:a,getCurrentFolderPermission:s,getCurrentFolderLibrary:l,getFolderPhotowallItems:f,getFolderPhotowallItemCount:p,getCurrentFolderSortBy:b,getCurrentFolderSortDirection:_,getIsHideSubFolders:E}},50507:function(e,t,n){"use strict";var r=n(55210),i=n(35369),o=n(22222),a=n(96904),s=function(e){return e.getIn(["contextMenu","isOpen"])},l=function(e){return e.getIn(["selectedBar","selectedSet",a.RT.FOLDER],i.default.Set())},u=function(e){return e.getIn(["selectedBar","selectedSet",a.RT.ITEM],i.default.Set())},c=function(e){return e.getIn(["selectedBar","selectedMap"])},d=function(e){return e.getIn(["selectedBar","selectMode"])},f=function(e){return e.getIn(["selectedBar","selectedSet"])},p=function(e){return e.getIn(["selectedBar","isDragged"])},h=(0,o.createSelector)([f,c],function(e,t){var n=0;return a.Hl.forEach(function(r){r===a.RT.ITEM?t.forEach(function(e){n+=e.getIn(["similar","count"],1)}):n+=e.get(r).size}),n}),m=function(e){return e.getIn(["selectedBar","selectType"])},g=function(e){return e.getIn(["selectedBar","actionType"])},v=(0,o.createSelector)([d,p,s],function(e,t,n){return e&&!t&&!n}),y=function(e){if(1!==c(e).size)return!1;var t=u(e).first().toString();return c(e).get(t).has("similar")},b=function(e){return c(e).every(function(e){return e.get("favorite",!1)})},_=function(e){var t=u(e).toArray();return c(e).forEach(function(e,n){if(e.has("similar")){var i;(i=t).push.apply(i,(0,r._)(e.getIn(["similar","item_id"]).filter(function(e){return e.toString()!==n}).toArray()))}}),t},E=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=u(e),i=c(e),o=[],a=[];return n.forEach(function(e){var n,s,l=i.getIn([e.toString()]),u=l.getIn(["owner_user_id"]),c=t&&l.has("similar")?l.getIn(["similar","item_id"]):[e];0===u?(n=a).push.apply(n,(0,r._)(c)):u>0?(s=o).push.apply(s,(0,r._)(c)):console.warn("selected item ".concat(e," has no owner_user_id"))}),{teamItemIds:a,personalItemIds:o}};t.Z={getActionType:g,getSelectedCount:h,getSelectedFolderIdSet:l,getSelectedItemIdSet:u,getSelectedMap:c,getSelectMode:d,getSelectedSet:f,getSelectType:m,getIsDragging:p,getIsOpen:v,getIsSelectSingleStack:y,getIsSelectingAllFavorite:b,getSelectedItemIdSetIncludingSimilarChildren:_,getSelectedItemIdSetBySpace:E}},76408:function(e,t,n){"use strict";var r=n(96904),i=function(e){return e.getIn(["setting","admin_setting"])},o=function(e){return e.getIn(["setting","user_setting"])},a=function(e){return e.getIn(["setting","team_setting"])},s=function(e){return e.getIn(["setting","guest_setting"])},l=function(e){return e.getIn(["setting","wizard_info"])},u=function(e){return e.getIn(["setting","loaded"],!1)},c=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("team_space_permission")},d=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("enable_home_service")},f=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("copy_move_default_action")},p=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("upload_default_action")},h=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("sort_direction")},m=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("date_format",r.eF)},g=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("timeline_group_unit")},v=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("show_item_info_in_lightbox")},y=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("auto_generate_thumbnail")},b=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("enable_person")},_=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("enable_concept")},E=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("enable_similar")},w=function(e){return b(e)||_(e)||E(e)},S=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("is_ge_dsm71")},T=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("is_ge_dsm72")},O=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("ame_status")},I=function(e){var t;return null===(t=O(e))||void 0===t?void 0:t.get("is_ame_install")},A=function(e){var t;return null===(t=O(e))||void 0===t?void 0:t.get("is_ame_v2")},C=function(e){var t;return null===(t=O(e))||void 0===t?void 0:t.get("is_ame_v4")},x=function(e){var t;return null===(t=O(e))||void 0===t?void 0:t.get("has_license")},D=function(e){var t,n;return SYNO.SDS.Session.isLogined?null===(t=O(e))||void 0===t?void 0:t.get("has_hevc"):null===(n=s(e))||void 0===n?void 0:n.get("has_hevc")},R=function(e){var t,n;return SYNO.SDS.Session.isLogined?null===(t=O(e))||void 0===t?void 0:t.get("has_h264"):null===(n=s(e))||void 0===n?void 0:n.get("has_h264")},L=function(e){var t,n;return SYNO.SDS.Session.isLogined?null===(t=O(e))||void 0===t?void 0:t.get("has_vc1"):null===(n=s(e))||void 0===n?void 0:n.get("has_vc1")},k=function(e){return R(e)&&D(e)},M=function(e){return e.getIn(["setting","folder_view_thumbnail_size"])},P=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("package_version")},N=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("enable_person")},F=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("enable_concept")},B=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("enable_similar")},U=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("enable_user_sharing")},H=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("enable_converted_original_jpeg",!1)},j=function(e){return e.getIn(["setting","cache_size","clearingConvertedFile"])},V=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("enable_personal_dsm_recycle_bin")},z=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.get("enable_shared_dsm_recycle_bin")},Z=function(e){return a(e).get("enabled")},G=function(e){var t;return null===(t=a(e))||void 0===t?void 0:t.get("enable_person")},W=function(e){var t;return null===(t=a(e))||void 0===t?void 0:t.get("enable_concept")},q=function(e){return a(e).get("enable_similar")},Y=function(e){return G(e)||W(e)||q(e)},$=function(e){var t;return null===(t=s(e))||void 0===t?void 0:t.get("enable_team_space",!1)},K=function(e){var t;return null===(t=s(e))||void 0===t?void 0:t.get("display_photo_info_to_guest")},X=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("info")},Q=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.getIn(["info","person_performance_note"])},J=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.getIn(["info","similar_performance_note"])},ee=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("prompt")},et=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("tip")},en=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("hint")},er=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("wizard")},ei=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.get("interactive_box")},eo=function(e){return I(e)&&(!S(e)||A(e)&&D(e)&&x(e))},ea=function(e){return e.getIn(["setting","cache_size","size_byte"],0)},es=function(e){return e.getIn(["setting","cache_size","calculating"],!1)},el=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("theme",r.Q2.AUTO)},eu=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.get("preview_theme")},ec=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.has("enable_person")};t.Z={getAdminEnablePerson:N,getAdminEnableConcept:F,getAdminEnableSimilar:B,getAdminEnableUserSharing:U,getAdminSetting:i,getAutoGenerateThumbnail:y,getAmeCanConvert:k,getConvertedFileSize:ea,getCopyMoveDefaultDuplicateHandling:f,getDateFormat:m,getEnableConvertedOriginalJpeg:H,getFolderViewThumbnailSize:M,getGuestSetting:s,getEnableHomeService:d,getHasHevc:D,getHasH264:R,getHasVc1:L,getIsAmeInstall:I,getIsAmeEligible:eo,getIsAmeV2:A,getIsAmeV4:C,getIsCalculatingConvertedFileSize:es,getIsClearingConvertedFile:j,getIsGeDSM71Official:S,getIsGeDSM72Official:T,getHasAmeLicense:x,getPersonPerformanceNote:Q,getPackageVersion:P,getShowItemInfoInLightbox:v,getSortDirection:h,getTimelineGroupUnit:g,getTeamSetting:a,getTeamSpacePermission:c,getTeamSpaceEnabled:Z,getUploadDefaultDuplicateHandling:p,getUserSetting:o,getWizardInfo:X,getWizardPrompt:ee,getWizardSetting:l,getWizardTip:et,getWizardHint:en,getWizardWizard:er,getWizardInteractiveBox:ei,getSettingTheme:el,getPreviewTheme:eu,getUserEnablePerson:b,getUserEnableConcept:_,getUserEnableSimilar:E,getUserEnableRecognition:w,getTeamSpaceEnablePerson:G,getTeamSpaceEnableConcept:W,getTeamSpaceEnableSimilar:q,getTeamSpaceEnableRecognition:Y,getEnablePersonalDSMRecycleBin:V,getEnableSharedDSMRecycleBin:z,getSimilarPerformanceNote:J,isPlatformSupportPersonRecognition:ec,getSettingLoaded:u,getGuestTeamSpaceEnable:$,getDisplayPhotoInfoToGuest:K}},87827:function(e,t){"use strict";var n=function(e){return e.getIn(["similar","id"])},r=function(e){return e.getIn(["similar","clustering"])},i=function(e){return e.getIn(["similar","count"])},o=function(e){return e.getIn(["similar","top_pick"])},a=function(e){return e.getIn(["similar","current_pick"])},s=function(e){return e.getIn(["similar","items"])},l=function(e){return e.getIn(["similar","item_id"])},u=function(e){return i(e)>1},c=function(e){return e.getIn(["similar","rows"])},d=function(e){return e.getIn(["similar","items",o(e)])};t.Z={getCurrentPick:a,getSimilarGroupId:n,getClustering:r,getSimilarItemCount:i,getTopPick:o,getSimilarItems:s,getSimilarItemId:l,getIsSimilarItem:u,getSimilarRows:c,getTopPickItem:d}},1227:function(e,t,n){"use strict";var r=n(35369),i=function(e){return e.getIn(["thumbnail","unitIdToInfo"],null)},o=function(e,t){return e.getIn(["thumbnail","unitIdToInfo","".concat(t)],null)},a=function(e,t){return e.getIn(["thumbnail","unitIdToInfo","".concat(t),"xl"],null)},s=function(e,t){return t.reduce(function(t,n){var r=o(e,n);return t.set(n,r)},r.default.Map())};t.Z={getInfo:i,getInfoByUnitId:o,getInfoByUnitIds:s,getXlInfoByUnitId:a}},83861:function(e,t){"use strict";var n=function(e){return e.getIn(["topToast","id"],"")},r=function(e){return e.getIn(["topToast","externalConvert","noPermissionInPersonalSpace"],0)>0},i=function(e){return e.getIn(["topToast","externalConvert","noPermissionInTeamSpace"],0)>0},o=function(e){return e.getIn(["topToast","externalConvert","hasPermission"],0)>0},a=function(e){return e.getIn(["topToast","externalConvert","hasSeenExternalConvertTopToast"],!1)},s=function(e){return e.getIn(["topToast","externalConvert","isHevc"],0)>0},l=function(e){return e.getIn(["topToast","externalConvert","isMpeg1OrMpeg2"],0)>0},u=function(e){return e.getIn(["topToast","externalConvert","isVp9"],0)>0},c=function(e){return e.getIn(["topToast","externalConvert","isOther"],0)>0};t.Z={getId:n,hasItemWithNoExternalConvertPermissionInPersonalSpace:r,hasItemWithNoExternalConvertPermissionInTeamSpace:i,hasItemWithExternalConvertPermission:o,hasSeenExternalConvertTopToast:a,hasHevcItem:s,hasMpeg1OrMpeg2Item:l,hasVp9Item:u,hasOtherItem:c}},72181:function(e,t,n){"use strict";var r=n(35369),i=function(e){return e.getIn(["userInfo","profile"],r.default.List())},o=function(e){return e.getIn(["userInfo","id"],-1)},a=function(e){return e.getIn(["userInfo","uid"])},s=function(e){return e.getIn(["userInfo","name"])};t.Z={getProfile:i,getUserId:o,getUserUid:a,getUserName:s}},47524:function(e,t){"use strict";var n=null;function r(){return n}function i(e){if(n)throw Error("Store has already been registered.");n=e}t.Z={getStore:r,register:i}},83960:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(7409),i=n(67294),o=n(73935),a=n(15593),s=n(42376),l=n(47524),u=n(79905),c=n(94057);function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.body.appendChild(document.createElement("div")),d=l.Z.getStore(),f=Object.assign({confirmText:(0,u.n6)("action","ok")},t);return new Promise(function(t){var l=(0,r._)({message:e,role:"alertdialog",showConfirm:!0,showCancel:!1,showClose:!1,isOpen:!0,confirmHandler:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t({dontShowAgain:e})}},f);o.render(i.createElement(a.zt,{store:d},i.createElement(s.Z,l)),n)}).catch(function(e){throw(0,c.P)(n),e}).finally(function(){(0,c.P)(n)})}},19285:function(e,t){"use strict";var n=function(e){return function(){return e.substr(0,e.lastIndexOf("/")+1)}}(window.location.pathname);t.C=n},5943:function(e,t,n){"use strict";n.d(t,{G6:function(){return u},G9:function(){return h},Pq:function(){return m},eE:function(){return v},fq:function(){return s},hZ:function(){return g},i7:function(){return d},sI:function(){return p},tN:function(){return f},un:function(){return l},vU:function(){return c}});var r=n(43830),i=n(52062),o=n(42238),a=new(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;(0,r._)(this,e),this.ua=t,this.uaParser=new o.UAParser(t),this.browser=this.uaParser.getBrowser(),this.os=this.uaParser.getOS(),this.engine=this.uaParser.getEngine()}return(0,i._)(e,[{key:"isIE",value:function(){return"IE"===this.browser.name}},{key:"isIE11",value:function(){return"IE"===this.browser.name&&"11"===this.browser.major}},{key:"isEdge",value:function(){return"Edge"===this.browser.name&&"EdgeHTML"===this.engine.name}},{key:"isSafari",value:function(){return"Safari"===this.browser.name||"Mobile Safari"===this.browser.name}},{key:"isFirefox",value:function(){return"Firefox"===this.browser.name}},{key:"isChrome",value:function(){return"Chrome"===this.browser.name}},{key:"isChromiumEdge",value:function(){return"Edge"===this.browser.name&&"Blink"===this.engine.name}},{key:"isSamsungBrowser",value:function(){return"Samsung Browser"===this.browser.name}},{key:"isWin10",value:function(){return"Windows"===this.os.name&&"10"===this.os.version}},{key:"isWindows",value:function(){return"Windows"===this.os.name}},{key:"isMacOS",value:function(){return"Mac OS"===this.os.name}},{key:"isWebKit",value:function(){return"Blink"===this.engine.name||"WebKit"===this.engine.name}},{key:"isAutoCorrectOrientation",value:function(){return!0}},{key:"isHevcSupported",value:function(){var e=document.createElement("video");return"function"==typeof e.canPlayType&&e.canPlayType('video/mp4; codecs="hvc1.1.6.L93.90"')}},{key:"isAv1Supported",value:function(){var e=document.createElement("video");return"function"==typeof e.canPlayType&&e.canPlayType('video/mp4; codecs="av01.0.05M.08"')}},{key:"isHeicSupported",value:function(){var e=parseInt(this.browser.major,10);return this.isSafari()&&e>=17}},{key:"isSupportCustomizeScrollbar",value:function(){return this.isWebKit()}}]),e}()),s=function(){return a.isIE11()},l=function(){return a.isEdge()},u=function(){return a.isSafari()},c=function(){return a.isFirefox()},d=function(){return a.isChrome()},f=function(){return a.isChromiumEdge()},p=function(){return a.isWin10()},h=function(){return a.isHevcSupported()},m=function(){return a.isAv1Supported()},g=function(){return a.isSupportCustomizeScrollbar()},v=function(){return a.isMacOS()}},57349:function(e,t,n){"use strict";n.d(t,{eZ:function(){return E},hh:function(){return y},qq:function(){return b},tb:function(){return _}});var r=n(7409),i=n(55210),o=n(45697),a=n.n(o),s=n(67294),l=n(96904),u=n(60253),c=n(47407),d=n(79905),f=n(5943),p=function(e,t){return function(n,r){return{text:n,iconCls:e===r?"upload-on-btn-icon":"empty-icon",handler:function(){return t(r)}}}},h=function(e,t){var n=p(e,t);return[n((0,d.n6)("action","sort_by_name"),l.Uw.NAME),n((0,d.n6)("action","sort_by_album_type"),l.Uw.TYPE),n((0,d.n6)("action","sort_by_album_item_start_time"),l.Uw.START_TIME),n((0,d.n6)("action","sort_by_share_modify_time"),l.Uw.SHARE_MODIFY_TIME)]},m=function(e,t){var n=p(e,t);return[n((0,d.n6)("action","sort_by_name"),l.Uw.NAME),n((0,d.n6)("action","sort_by_album_type"),l.Uw.TYPE),n((0,d.n6)("action","sort_by_album_item_start_time"),l.Uw.START_TIME),n((0,d.n6)("action","sort_by_create_time"),l.Uw.CREATE_TIME),n((0,d.n6)("action","sort_by_sharing_type"),l.Uw.SHARE_STATUS)]},g=function(e){return s.createElement("div",{className:"synofoto-menu-divider",key:"".concat(e)})},v=function(e){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.sortBy,r=t.sortDirection,o=t.className,a=t.changeSorting,c=t.key,f=t.buttonType,p=t.title,h=t.text,m=t.disabled,v=t.selfPortal,y=t.dataTestId,b=t.offset,_=function(e){return a(r,e)};return s.createElement(u.Z,{selfPortal:v,className:o,key:c,buttonType:f,title:p,text:h,iconCls:"sort-btn-icon",disabled:m,dataTestId:y,offset:b,menu:(0,i._)(e(n,_)).concat([{component:g},{text:(0,d.n6)("action","sort_direction_asc"),iconCls:r===l.Sr.ASC?"upload-on-btn-icon":"empty-icon",handler:function(){a(l.Sr.ASC,n)}},{text:(0,d.n6)("action","sort_direction_desc"),iconCls:r===l.Sr.DESC?"upload-on-btn-icon":"empty-icon",handler:function(){a(l.Sr.DESC,n)}}])})};return t.propTypes={sortBy:a().string.isRequired,sortDirection:a().oneOf([l.Sr.ASC,l.Sr.DESC]).isRequired,className:a().string,changeSorting:a().func,key:a().string,buttonType:a().string,title:a().string,text:a().string,disabled:a().bool,selfPortal:a().bool,dataTestId:a().string,offset:a().shape({x:a().number,y:a().number})},t.defaultProps={className:"",changeSorting:function(){},key:null,buttonType:"icon",title:"",text:"",disabled:!1,selfPortal:!1,dataTestId:void 0,offset:{x:0,y:0}},t},y=v(function(e,t){var n=p(e,t);return[n((0,d.n6)("action","sort_by_name"),l.ER.FILENAME),n((0,d.n6)("action","sort_by_filesize"),l.ER.FILESIZE),n((0,d.n6)("action","sort_by_filetype"),l.ER.ITEM_TYPE),n((0,d.n6)("action","sort_by_takentime"),l.ER.TAKENTIME)]});v(m),v(h);var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.className,n=void 0===t?"":t,r=e.handler,i=void 0===r?function(){}:r,o=e.disabled,a=void 0!==o&&o,u=e.dataTestId,p=void 0===u?void 0:u;return(0,f.i7)()||(0,f.vU)()?s.createElement(c.Z,{className:n,key:"slideshow_button",title:(0,d.n6)("action","title_icon_slideshow"),iconCls:"slideshow-btn-icon",handler:i,disabled:a,dataTestId:p,tipId:l.ZP.GLOBAL_TOOLTIP_ID}):null},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.className,n=void 0===t?"":t,i=e.handler,o=void 0===i?function(){}:i,a=e.disabled,c=void 0!==a&&a,f=e.dataTestId,p=void 0===f?void 0:f,h=e.buttonType,m=void 0===h?"icon":h,g=e.shortid,v=void 0===g?void 0:g,y=e.closeMenu,b=void 0===y?void 0:y,_=[{handler:function(){return o(l._5.SOURCE)},text:(0,d.n6)("action",l._5.SOURCE)},{handler:function(){return o(l._5.OPTIMIZED_JPEG)},text:(0,d.n6)("action",l._5.OPTIMIZED_JPEG)}],E=b?function(e){e.key===l.VD.ESC&&b()}:void 0,w="text"===m?{text:(0,d.n6)("action","download_all"),ctClassName:"synofoto-menu-download-button",alignPosition:"left_bottom",offset:{x:2,y:-8}}:{title:(0,d.n6)("action","title_icon_download_all"),iconCls:"download-btn-icon"};return s.createElement(u.Z,(0,r._)({key:v||"download_button",buttonType:m,menu:_,className:n,disabled:c,dataTestId:p,onKeyDown:E},w))},E=function(){return{component:g}}},18016:function(e,t){"use strict";var n=function(e){return e.displayName||e.name||"Component"};t.Z=n},25526:function(e,t,n){"use strict";n.d(t,{xU:function(){return c}});var r=n(96904),i=function(e){var t=e.anchor,n=e.align,i=e.offset,o=e.shift,a=e.innerHeight,s=e.innerWidth,l=t.top,u=t.bottom,c=t.left,d=t.right,f={},p=i.x,h=void 0===p?0:p,m=i.y,g=void 0===m?0:m;return n===r.Yo.LEFT_TOP?(f.top=l+g,f.right=s-c+h+o):n===r.Yo.LEFT_BOTTOM?(f.bottom=a-u+g,f.right=s-c+h+o):n===r.Yo.RIGHT_TOP?(f.top=l+g,f.left=d+h+o):n===r.Yo.RIGHT_BOTTOM?(f.bottom=a-u+g,f.left=d+h+o):n===r.Yo.TOP_RIGHT?(f.bottom=a-l+g+o,f.right=s-d+h):n===r.Yo.TOP_LEFT?(f.bottom=a-l+g+o,f.left=c+h):n===r.Yo.BOTTOM_RIGHT?(f.top=u+g+o,f.right=s-d+h):n===r.Yo.BOTTOM_LEFT&&(f.top=u+g+o,f.left=c+h),f},o=function(e){var t=e.targetPos,n=e.targetHeight,r=e.boundaryHeight,i=e.boundaryOffset,o=t.top?"top":"bottom";return!(t[o]<i)&&!(t[o]+n>r-i)},a=function(e){var t=e.targetPos,n=e.targetWidth,r=e.boundaryWidth,i=e.boundaryOffset,o=t.left?"left":"right";return!(t[o]<i)&&!(t[o]+n>r-i)},s=function(e){return -1!==e.indexOf("top")?e.replace("top","bottom"):e.replace("bottom","top")},l=function(e){return -1!==e.indexOf("left")?e.replace("left","right"):e.replace("right","left")},u=function(e){var t=e.anchor,n=e.targetBoundary,r=e.boundary,u=e.align,c=e.offset,d=e.shift,f=e.boundaryOffset,p=e.innerHeight,h=e.innerWidth,m=i({anchor:t,align:u,offset:c,shift:d,innerHeight:p,innerWidth:h}),g=u,v=f.x,y=void 0===v?0:v,b=f.y,_=void 0===b?0:b;if(!o({targetPos:m,targetHeight:n.height,boundaryHeight:r.height,boundaryOffset:_})){var E=s(g),w=i({anchor:t,align:E,offset:c,shift:d,innerHeight:p,innerWidth:h});o({targetPos:w,targetHeight:n.height,boundaryHeight:r.height,boundaryOffset:_})&&(m=w,g=E)}if(!a({targetPos:m,targetWidth:n.width,boundaryWidth:r.width,boundaryOffset:y})){var S=l(g),T=i({anchor:t,align:S,offset:c,shift:d,innerHeight:p,innerWidth:h});a({targetPos:T,targetWidth:n.width,boundaryWidth:r.width,boundaryOffset:y})&&(m=T,g=S)}return m},c=function(e){var t={};return e.top&&(t.top="".concat(e.top,"px")),e.bottom&&(t.bottom="".concat(e.bottom,"px")),e.left&&(t.left="".concat(e.left,"px")),e.right&&(t.right="".concat(e.right,"px")),t},d=function(e){var t=e.button,n=void 0===t?{top:0,bottom:0,left:0,right:0}:t,r=e.menu,i=e.align,o=e.offset,a=void 0===o?{x:0,y:0}:o,s=e.shift,l=void 0===s?2:s,c=e.boundaryOffset,d=void 0===c?{x:0,y:0}:c,f=document.body.getBoundingClientRect();return u({anchor:n,targetBoundary:r.getBoundingClientRect(),boundary:f,align:i,offset:a,shift:l,boundaryOffset:d,innerHeight:window.innerHeight,innerWidth:window.innerWidth})};t.ZP=d},55661:function(e,t,n){"use strict";function r(e){var t,n="".concat(e,"="),r=null===(t=document.cookie.split("; ").find(function(e){return e.startsWith(n)}))||void 0===t?void 0:t.split("=")[1];if(void 0===r)return"";var i="";try{i=decodeURIComponent(r)}catch(e){}return i}function i(e){e&&(document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"))}n.d(t,{ej:function(){return r},nJ:function(){return i}})},62916:function(e,t,n){"use strict";n.d(t,{K_:function(){return i},Nt:function(){return a},Sx:function(){return o},e6:function(){return r},qs:function(){return l}});var r=function(){return window.location.search.indexOf("jsDebug")>0},i=function(){return window.location.search.indexOf("jsDebug=concept")>0},o=function(){return window.location.search.indexOf("jsDebug=crop")>0},a=function(){return window.location.search.indexOf("jsDebug=clientSiteUrl")>0},s=null,l=function(){return null!==s?s:s=new URLSearchParams(window.location.search).get("stringDebug")||"none"}},69253:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(55210),i=n(84402);function o(e,t,n,o){return(0,i.Eo)(t)?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e(o.apply(void 0,(0,r._)(n)))}:function(){for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return e(n.apply(void 0,(0,r._)(i)))}}},94057:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(73935),i=function(e){r.unmountComponentAtNode(e),setTimeout(function(){e.remove()})}},73102:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(76150),i=n(28395),o=n(25835);function a(e){return(0,r._)(function(){return(0,i.Jh)(this,function(t){return[2,o.Z.promises.requestWebAPI({url:e,requestMethod:"GET",requestFormat:"raw",responseFormat:"blob",api:"",method:"",version:0})]})})()}},84299:function(e,t,n){"use strict";var r=n(79905);function i(e){return 0===e?(0,r.n6)("filter","rating_unrated"):(0,r.Xp)("filter","rating_star",e)}t.Z=i},95682:function(e,t,n){"use strict";n.d(t,{Qx:function(){return g},k$:function(){return h},ku:function(){return m},uq:function(){return f}});var r=n(7409),i=n(4034),o=n(96904),a=n(8768),s=n(94307),l=n(84402),u=n(16230),c=n(92632),d="/";function f(){return p((0,s.AZ)(),(0,s.Tw)())}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e){if(0===e.length)return"/";var t=function(e,t){return e+d+t};return e.reduce(t,"")},r=e.split(d),o=n(r.slice(1,r.length-1)),s=null;if((0,l.ur)(e)&&(o="/"),3===r.length&&(0,l.al)(e)&&(o="/".concat(a.Z.ALBUM)),5===r.length&&(0,l.YO)(e)&&(o="/"),t&&t.from&&t.from.length>0){var u,c=(0,i.ZP)(t);o=null===(u=c.from)||void 0===u?void 0:u.pop(),s=c}return(0,l.IF)(e)&&(o=n(r.slice(1,r.length-1)),s=t),(0,l.v6)(e)&&(o=n(r.slice(1,r.length-1)),(null==(s=t)?void 0:s.editFace)&&delete s.editFace,0===Object.keys(s).length&&(s=null)),!(0,l.xr)(e)||(0,l.IF)(e)||(0,l.v6)(e)||(o=n(r.slice(1,r.length-2)),s=t),{pathname:o,state:s}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0!==e.indexOf(d))throw Error("path should be absolute path");return{pathname:e,state:(0,r._)({},t)}}function m(){var e=(0,s.AZ)(),t=(0,u.o$)(e).type,n=null;switch(t){case o.ZP.ALBUM_TYPE.ALBUM:n="/".concat(o.ZP.ALBUM_TYPE.ALBUM);break;case o.ZP.ALBUM_TYPE.SHARING:(0,c.v6)()||(n="/".concat(o.ZP.ALBUM_TYPE.SHARING))}return n}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,s.AZ)(),t=(0,s.Tw)()||{};return t.from||(t.from=[]),t.from.push(e),t}},13801:function(e,t,n){"use strict";var r=n(96904),i=n(5943),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.codec,n=void 0===t?"":t,o=e.pcClientHevcSupport,a=void 0!==o&&o,s=e.isSupportAutoGenerateThumbnail,l=void 0!==s&&s;return(0,i.eE)()&&(n===r.V9.VC1||n===r.V9.VP9)?r.yL.Broken:l?n!==r.V9.HEVC&&n!==r.V9.HEIC||a?"auto-converting":(0,i.eE)()?r.yL.Broken:r.yL.AmeDefect:r.yL.AmeDefect};t.Z=o},47739:function(e,t,n){"use strict";var r=n(96904),i=n(53982),o=n(11975),a=n(4040),s=function(e){return(0,i.Z)(e)?r.V9.HEIC:(0,o.Z)(e)?r.V9.VC1:(0,a.mi)(e)?e.getIn(["additional","video_meta","video_codec"],""):""};t.Z=s},53982:function(e,t,n){"use strict";var r=n(96904),i=function(e){var t=e.get("type");if(t===r.qG.PHOTO||t===r.qG.PHOTO_360||t===r.qG.BURST||t===r.qG.MOTION_PHOTO)return!0;var n=e.get("live_type");return n===r.M6.PHOTO||n===r.M6.LIVE};function o(e){if(!i(e))return!1;var t=e.get("filename").split(".").pop().toLowerCase();return r.Th.includes(t)}t.Z=o},79173:function(e,t,n){"use strict";var r=n(4040),i=function(e){return!!(0,r.mi)(e)&&"hevc"===e.getIn(["additional","video_meta","video_codec"],"")};t.Z=i},30897:function(e,t,n){"use strict";var r=n(96904),i=function(e){return(null==e?void 0:e.xl)===r.yL.AmeDefect||(null==e?void 0:e.sm)===r.yL.AmeDefect};t.Z=i},11975:function(e,t,n){"use strict";var r=n(4040),i=function(e){return!!(0,r.mi)(e)&&["vc1","wmv3"].includes(e.getIn(["additional","video_meta","video_codec"],""))};t.Z=i},75804:function(e,t,n){"use strict";var r=n(96904),i=n(4040),o=function(e){var t=e.getIn(["additional","video_meta","video_codec"],""),n=e.getIn(["additional","video_meta","container_type"],"");return!!((0,i.mi)(e)&&"h264"===t&&["mp4","mov","m4v"].includes(n))},a=function(e){return e.getIn(["additional","video_convert_status"])===r.yL.AmeDefect&&!o(e)};t.Z=a},4040:function(e,t,n){"use strict";n.d(t,{$G:function(){return v},A4:function(){return T},IT:function(){return E},NE:function(){return l},QT:function(){return p},RT:function(){return _},SC:function(){return w},YJ:function(){return g},Z2:function(){return s},he:function(){return S},mi:function(){return b},q9:function(){return y},sY:function(){return f}});var r=n(55210),i=n(53982),o=n(96904),a=n(5943),s={raw:"quality_original",orig_h264:"quality_original",high:"quality_high",medium:"quality_medium",low:"quality_low",mobile:"quality_mobile",flv:"quality_flv"},l=["raw","orig_h264","high","medium","low","mobile"];function u(e){return!!("mp3"===e||e.startsWith("aac")||e.startsWith("pcm"))||"ac3"===e||"opus"===e||"vorbis"===e}function c(e){return!!(e===o.V9.H264||e===o.V9.VP9||e===o.V9.HEVC&&(0,a.G9)()||e===o.V9.AV1&&(0,a.Pq)())}function d(e){return!!e&&"h264"===e.video_codec}function f(e){return!!(e&&"mp4"===e.container_type&&c(e.video_codec)&&(!e.audio_codec||u(e.audio_codec)))}function p(e,t){var n="";if(f(t)&&(n="raw",d(t))||void 0===e)return n;var r=!0,i=!1,o=void 0;try{for(var a,s=function(){var t=a.value;if(e.find(function(e){return e.quality===t}))return n=t,"break"},u=l[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=s();if("break"===c)break}}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}function h(e){return void 0!==e&&e.xl===o.yL.Converting}function m(e){return void 0!==e&&e.preview===o.yL.Ready}function g(e,t){return"photo"===e&&h(t)&&m(t)}function v(e,t,n){return"time"===t?e.set("time",n):"description"===t?e.setIn(["additional","description"],n):"concept_raw_data"===t?e.setIn(["additional","concept_raw_data"],n):e}var y=function(e,t){return e.findIndex(function(e){return e.has("list")&&-1!==e.get("list").findIndex(function(e){return e.has("photo")&&e.getIn(["photo","id"])===t.get("id")})})};function b(e){var t=e.get("type");return"video"===t||"video360"===t||e.get("live_type")===o.M6.VIDEO}function _(e){return e.get("filename").split(".").pop().toLowerCase()}function E(e){var t=["tif","tiff"].concat((0,r._)(o.i3));if((0,i.Z)(e))return!0;var n=_(e);return t.includes(n)}function w(e){return e.get("type")===o.qG.PHOTO_360||e.get("type")===o.qG.VIDEO_360}function S(e){return!!e.get("filename").match(/\.gif/gi)}function T(e){return!!e.get("filename").match(/\.webp/gi)}},25480:function(e,t,n){"use strict";var r=n(96904),i=function(e){return 0===e?r.Zu.TEAM:r.Zu.PERSONAL};t.Z=i},38962:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(7409),i=n(99282),o=n(67294),a=n(30270),s=n(29893),l=n(96904),u=n(60253),c=n(79905),d=n(57349),f=n(28851),p=n(84299),h=n(72260),m=n(61630),g=[5,4,3,2,1,0],v=function(e,t,n){if(!n)return null;if(n in t)return t[n];if(n in e){var r=(0,f.Z)(),i=(0,e[n])();return function(){r(i)}}return null},y=function(e){return{component:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=(0,f.Z)(),a=g.map(function(t){return{text:(0,p.Z)(t),key:t,handler:function(){i(e(t)),n()}}}),s=function(e){e.key===l.VD.ESC&&n()};return o.createElement(u.Z,{key:t,buttonType:"texticon",iconCls:"submenu-arrow-btn-icon",text:(0,c.n6)("action","edit_rating"),className:"synofoto-menu-text-button",ctClassName:"synofoto-menu-sub-menu-button",menu:a,alignPosition:"left_bottom",offset:{x:2,y:-8},onKeyDown:s,closeParentMenu:n,parentRefs:r})}}},b=function(e,t,n){if(!n)return null;if(n in t)return t[n];if(n in e){var r=(0,f.Z)();return function(t){r(e[n](t))}}return null},_=function(e,t){return{component:function(n,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],d=function(e){e.key===l.VD.ESC&&a()},f=t.map(function(e){return(0,i._)((0,r._)({},e),{handler:function(){e.handler(),a()}})});return o.createElement(u.Z,{key:n,buttonType:"texticon",iconCls:"submenu-arrow-btn-icon",text:(0,c.n6)("action",e.key),className:(0,m.tq)()?"synofoto-menu-text-button-mobile":"synofoto-menu-text-button",ctClassName:"synofoto-menu-sub-menu-button",menu:f,alignPosition:"left_bottom",offset:{x:2,y:-8},onKeyDown:d,closeParentMenu:a,parentRefs:s})}}};function E(e){var t=e.menuItems,n=void 0===t?[]:t,o=e.actionCreatorMap,u=void 0===o?{}:o,f=e.functionHandlerMap,p=void 0===f?{}:f,m=e.downloadInfo,g=void 0===m?{}:m;return n.map(function(e){switch(e.key){case"edit_rating":var t=h.IQ;return e.action in u&&(t=u[e.action]),y(t);case"divider":return(0,d.eZ)();case"download":if((0,s.Z)(g.selectedCount,g.selectType,g.selectedMap)){var n=(0,a.Z)((0,i._)((0,r._)({},g),{handler:b(u,p,e.action)}));return _(e,n)}return{text:(0,c.n6)("action",e.key),key:e.key,handler:v(u,p,e.action)};case"download_all":var o=[l._5.SOURCE,l._5.OPTIMIZED_JPEG].map(function(t){return{text:(0,c.n6)("action",t),key:t,handler:function(){return b(u,p,e.action)(t)}}});return _(e,o);default:return{text:(0,c.n6)("action",e.key),key:e.key,handler:v(u,p,e.action)}}})}},30270:function(e,t,n){"use strict";var r=n(96904),i=n(79905),o=n(4040),a=function(e){var t=e.handler,n=e.selectedCount,a=e.selectType,s=e.selectedMap,l=e.hasHevc,u=e.enableConvertedOriginalJpeg,c=s.toList();return function(e){return e.map(function(e){return{text:(0,i.n6)("action",e),key:e,handler:function(){return t(e)}}})}(1===n&&a===r.RT.ITEM&&(0,o.IT)(c.get(0))&&l&&u?[r._5.SOURCE,r._5.OPTIMIZED_JPEG,r._5.ORIGINAL_SIZE_JPEG]:[r._5.SOURCE,r._5.OPTIMIZED_JPEG])};t.Z=a},29893:function(e,t,n){"use strict";var r=n(47524),i=n(96904),o=n(4040),a=n(22287),s=n(1227),l=function(e,t,n){if(t!==i.RT.ITEM||1!==e)return!0;var l=n.valueSeq().get(0),u=(0,o.RT)(l);if((0,o.mi)(l)||"webp"===u||"gif"===u)return!1;var c=r.Z.getStore().getState();return!!(s.Z.getXlInfoByUnitId(c,l.get("thumbnailUnitId").toString())===i.yL.Ready||(0,a.eB)())};t.Z=l},61630:function(e,t,n){"use strict";n.d(t,{Tt:function(){return l},tq:function(){return s}});var r=n(43830),i=n(52062),o=n(42238),a=new(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;(0,r._)(this,e),this.uaParser=new o.UAParser(t)}return(0,i._)(e,[{key:"isMobile",value:function(){var e=this.uaParser.getDevice().type;return"Mac OS"!==this.uaParser.getOS().name&&("tablet"===e||"mobile"===e)}},{key:"isiOS",value:function(){return"iOS"===this.uaParser.getOS().name}}]),e}()),s=function(){return a.isMobile()},l=function(){return a.isiOS()}},94706:function(e,t,n){"use strict";n.d(t,{yo:function(){return _},zL:function(){return b}});var r=n(7409),i=n(99282),o=n(35369),a=n(67294),s=n(73935),l=n(15593),u=n(7019),c=n(47524),d=n(96904),f=n(79905),p=n(94599),h=n(68598),m=n(30897),g=a.lazy(function(){return n.e("179").then(n.bind(n,56551))}),v=null,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v)return v;var t=e.type,n=document.body.appendChild(document.createElement("div")),o=c.Z.getStore(),u=function(){return s.unmountComponentAtNode(n),setTimeout(function(){return n.remove()})};return v=new Promise(function(u){var c=(0,i._)((0,r._)({},e),{isOpen:!0,handleApply:function(e){var n=e.dontShowAgain;(0,h.PH)(t),u({dontShowAgain:n,type:d.uE.CONFIRM})},handleClose:function(e){var n=e.dontShowAgain;(0,h.PH)(t),u({dontShowAgain:n,type:d.uE.CLOSE})}});s.render(a.createElement(l.zt,{store:o},a.createElement(a.Suspense,{fallback:a.createElement("div",null)},a.createElement(g,c))),n)}).then(function(e){return u(),v=null,e}).catch(function(e){throw u(),v=null,e}),(0,h.nw)(t),v},b=function(){return y({type:d.iR.EXTERNAL_CONVERT_INTRO_DIALOG_BROWSE})},_=function(){var e=c.Z.getStore(),t=null==e?void 0:e.getState().getIn(["lightbox","item","thumbnailInfo"],o.default.List()).toJS(),n=(0,m.Z)(t),r=n?(0,f.n6)("warning","external_convert_intro_video_desc_embedded_url"):(0,f.n6)("warning","external_convert_intro_video_desc_no_video_embedded_url");return y({title:n?(0,f.n6)("warning","external_convert_intro_video_title"):(0,f.n6)("warning","external_convert_intro_video_title_no_video"),description:(0,p.l)(r,[{url:u.SynoDocsLinks.AutoConvertExtensionAndDesktopApp,target:"_blank",color:"var(--color-link-tier2)"}]),type:d.iR.EXTERNAL_CONVERT_INTRO_DIALOG_VIDEO})}},63744:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(34774),i=function(e){var t={};if(e.size){var n,i=e.get("nickName")||e.get("userName","");t.userName=e.get("userName",""),t.accountName=i.charAt(0).toUpperCase(),t.avatar=(null===(n=e.get("photo"))||void 0===n?void 0:n.length)?(0,r.Jc)(e.get("photo"),!0):null,t.color=null!==t.avatar?"#FFFFFF":null,t.nickName=e.get("nickName",""),t.description=e.get("title",""),t.email=e.get("email",""),t.preferredLanguage=e.get("preferredLanguage",""),t.timezone=e.get("timezone",""),t.timezoneUI=e.get("timezoneUI","")}return t}},28851:function(e,t,n){"use strict";var r=n(47524),i=function(){var e,t=null===(e=r.Z.getStore())||void 0===e?void 0:e.dispatch;if(!t)throw Error("store does not exist");return t};t.Z=i},94307:function(e,t,n){"use strict";n.d(t,{fv:function(){return _},AZ:function(){return y},Tw:function(){return b},df:function(){return E},s1:function(){return g}});var r,i=n(4034);function o(){return(o=Object.assign?Object.assign.bind():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}).apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var a=function(e){return e},s="beforeunload",l="hashchange",u="popstate";function c(e){e.preventDefault(),e.returnValue=""}function d(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function f(){return Math.random().toString(36).substr(2,8)}function p(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function h(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var m=function e(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,i=n.history;function m(){var e=h(n.location.hash.substr(1)),t=e.pathname,r=void 0===t?"/":t,o=e.search,s=void 0===o?"":o,l=e.hash,u=void 0===l?"":l,c=i.state||{};return[c.idx,a({pathname:r,search:s,hash:u,state:c.usr||null,key:c.key||"default"})]}var g=null;function v(){if(g)S.call(g),g=null;else{var e=r.Pop,t=m(),n=t[0],i=t[1];if(S.length){if(null!=n){var o=_-n;o&&(g={action:e,location:i,retry:function(){L(-1*o)}},L(o))}}else x(e)}}n.addEventListener(u,v),n.addEventListener(l,function(){p(m()[1])!==p(E)&&v()});var y=r.Pop,b=m(),_=b[0],E=b[1],w=d(),S=d();function T(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,i=r.indexOf("#");t=-1===i?r:r.slice(0,i)}return t}function O(e){return T()+"#"+("string"==typeof e?e:p(e))}function I(e,t){return void 0===t&&(t=null),a(o({pathname:E.pathname,hash:"",search:""},"string"==typeof e?h(e):e,{state:t,key:f()}))}function A(e,t){return[{usr:e.state,key:e.key,idx:t},O(e)]}function C(e,t,n){return!S.length||(S.call({action:e,location:t,retry:n}),!1)}function x(e){y=e;var t=m();_=t[0],E=t[1],w.call({action:y,location:E})}function D(e,t){var o=r.Push,a=I(e,t);if(C(o,a,function(){D(e,t)})){var s=A(a,_+1),l=s[0],u=s[1];try{i.pushState(l,"",u)}catch(e){n.location.assign(u)}x(o)}}function R(e,t){var n=r.Replace,o=I(e,t);if(C(n,o,function(){R(e,t)})){var a=A(o,_),s=a[0],l=a[1];i.replaceState(s,"",l),x(n)}}function L(e){i.go(e)}return null==_&&(_=0,i.replaceState(o({},i.state,{idx:_}),"")),{get action(){return y},get location(){return E},createHref:O,push:D,replace:R,go:L,back:function(){L(-1)},forward:function(){L(1)},listen:function(e){return w.push(e)},block:function(e){var t=S.push(e);return 1===S.length&&n.addEventListener(s,c),function(){t(),S.length||n.removeEventListener(s,c)}}}}({window:window});function g(){return m}function v(){return(0,i.ZP)(g().location)}function y(){return v().pathname.replace(/\/$/,"")}function b(){return v().state}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;m.push(e,t)}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;m.replace(e,t)}},33610:function(e,t,n){"use strict";n.d(t,{A:function(){return r},D:function(){return i}});var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace,n=void 0!==t&&t,r=e.state,i=void 0===r?null:r,o=e.relative,a=void 0!==o&&o,s=e.preventScrollReset;return{replace:n,state:i,relative:a?"path":"route",preventScrollReset:void 0!==s&&s}},i=r()},84402:function(e,t,n){"use strict";n.d(t,{E0:function(){return x},Eo:function(){return D},Ew:function(){return h},GR:function(){return C},IF:function(){return O},R6:function(){return c},UJ:function(){return E},YO:function(){return u},al:function(){return A},hz:function(){return _},iY:function(){return l},jk:function(){return v},km:function(){return R},p7:function(){return g},ur:function(){return b},v6:function(){return I},xr:function(){return T}});var r=n(8768);function i(e,t){var n=e;e.startsWith("/")||(n="/".concat(e));var r=n.split("/",t+2);return r.length>=t+2?r[t+1]:void 0}function o(e,t){return function(n){return i(n,e)===t}}function a(e,t){return function(n){var r=n.split("/");return r.length>=e&&r[r.length-e]===t}}function s(e){var t=e.split("/");if(""!==e&&t.length>=2){var n=t[t.length-2],r=t[t.length-3];return n.match(/^(item)$/)||r&&r.match(/^(item)$/)}return!1}var l=o(0,r.Z.ALBUM),u=o(0,r.Z.ALBUM_TYPE.CONCEPT),c=o(1,r.Z.FOLDER),d=o(0,r.Z.ALBUM_TYPE.GENERAL_TAG),f=o(0,r.Z.ALBUM_TYPE.GEOCODING),p=o(0,r.Z.ALBUM_TYPE.PERSON),h=o(0,r.Z.SHARING),m=o(0,r.Z.ALBUM_TYPE.RECENTLY_ADDED),g=o(0,r.Z.ALBUM_TYPE.SIMILAR),v=o(0,r.Z.ALBUM_TYPE.FAVORITE),y=o(0,r.Z.ALBUM_TYPE.VIDEO),b=o(0,r.Z.SEARCH),_=o(1,r.Z.TIMELINE),E=function(e){return _(e)||c(e)},w=o(0,r.Z.ALBUM_TYPE.LIVE),S=o(0,r.Z.ALBUM_TYPE.DEGREE_360);a(1,r.Z.SHARING);var T=function(e){return!!s(e)},O=function(e){return T(e)&&null!==e.match("".concat(r.Z.SLIDESHOW,"$"))},I=function(e){return T(e)&&null!==e.match("".concat(r.Z.EDIT_FACE,"$"))},A=function(e){return m(e)||y(e)||f(e)||d(e)||p(e)||u(e)||g(e)||v(e)},C=function(e){return A(e)||S(e)||w(e)},x=function(e){return e===r.Z.PERSONAL_SPACE},D=function(e){return e===r.Z.TEAM_SPACE},R=function(e){var t=/^.*item_\d+[^]*$/g;return e.match(t)?e.replace("item_","item/"):null}},68598:function(e,t,n){"use strict";n.d(t,{Hm:function(){return u},PH:function(){return f},fT:function(){return c},n_:function(){return l},nw:function(){return d}});var r=n(8768),i=n(57926),o=n(95682),a=n(94307),s=n(84402);function l(){var e=(0,a.AZ)(),t=(0,o.k$)(e.replace("/".concat(r.Z.SLIDESHOW),"")),n=t.pathname,i=t.state;(0,a.fv)(n,i)}function u(){var e=(0,o.uq)(),t=e.pathname,n=e.state;(0,a.fv)(t,n)}function c(){(0,a.fv)("/")}function d(e){(0,s.IF)((0,a.AZ)())&&(l(),(0,i.Z)().exit());var t=(0,a.AZ)();if(!t.includes("/".concat(e))){var n=(0,o.k$)("".concat(t,"/").concat(e)),r=n.pathname,u=n.state;(0,a.df)(r,u)}}function f(e){var t=(0,a.AZ)();if(t.includes("/".concat(e))){var n=(0,o.k$)(t.replace("/".concat(e),"")),r=n.pathname,i=n.state;(0,a.df)(r,i)}}},16230:function(e,t,n){"use strict";n.d(t,{o$:function(){return w},Y$:function(){return C},y0:function(){return x},Uw:function(){return T},bM:function(){return A}});var r=n(7409),i=n(96904),o=n(8768),a=n(24460),s=function(e){var t={};return e.split("&").forEach(function(e){var n=(0,a._)(e.split("="),2),r=n[0],i=decodeURIComponent(n[1]);try{var o=JSON.parse(decodeURIComponent(i));t[r]=o}catch(e){t[r]=i}"keyword"===r&&(t[r]=i.toString())}),t},l=function(e){return s(decodeURI(e))},u=n(22287),c=n(55661),d=n(92632),f=n(84402),p=Object.freeze({PHOTO:/^\/?(personal_space|shared_space)\/([a-zA-Z]+)(?:\/(\d+))?(?:\/(item\/\d+)?(?:\/slideshow|\/edit_face)?)?(?:\/(external_convert_intro_dialog_browse|external_convert_intro_dialog_upload|external_convert_intro_dialog_video))?$/,ALBUM:/^\/?(\w+)(\/personal_space|\/shared_space)?(?:\/(\d+)(?:\/(?!item\/)([^/]*))?)?(?:\/(item\/\d+)?(?:\/slideshow|\/edit_face)?)?(?:\/(external_convert_intro_dialog_browse|external_convert_intro_dialog_upload|external_convert_intro_dialog_video))?$/,SHARING:/^\/?(sharing)(?:\/(\b(?!external_convert_intro_dialog_browse|external_convert_intro_dialog_upload|external_convert_intro_dialog_video\b)\w+))?(?:\/(item\/\d+)?(?:\/slideshow|\/edit_face)?)?(?:\/(external_convert_intro_dialog_browse|external_convert_intro_dialog_upload|external_convert_intro_dialog_video))?$/,SEARCH:/^\/?(search)\/(.*?)\/(personal_space|shared_space)(?:\/(item\/\d+)?)?(?:\/slideshow|\/edit_face)?(?:\/(external_convert_intro_dialog_browse|external_convert_intro_dialog_upload|external_convert_intro_dialog_video))?$/,STANDALONE_SHARING:/^\/?(item\/\d+)?(\/slideshow)?$/,STANDALONE_SHARING_LOCATION:/\/mo\/sharing\/(.*?)$/}),h=[];Object.keys(o.Z.ALBUM_TYPE).forEach(function(e){h.push(o.Z.ALBUM_TYPE[e])});var m=Object.values(i.iR),g={library:"",type:"",typeId:0,itemId:0,passphrase:"",info:{},specifiedName:"",dialog:""};function v(e){var t=(0,r._)({},g);if(t.library=e[1],t.type=e[2],e[3]&&(t.typeId=parseInt(e[3],10)),e[4]){var n=e[4];t.itemId=parseInt(n.split("/")[1],10)}return e[5]&&(t.dialog=e[5]),t}function y(e){var t=(0,r._)({},g);if(h.indexOf(e[1])>-1&&(t.type=e[1]),e[2]&&(t.library=e[2].substring(1)),e[3]&&(t.typeId=parseInt(e[3],10)),e[4]&&(t.type!==o.Z.ALBUM_TYPE.CONCEPT||m.includes(e[4])?t.dialog=e[4]:t.specifiedName=decodeURIComponent(e[4])),e[5]){var n=e[5];t.itemId=parseInt(n.split("/")[1],10)}return e[6]&&(t.dialog=e[6]),t}function b(e){var t=(0,r._)({},g);if(t.type=e[1],e[2]&&(t.passphrase=e[2]),e[3]){var n=e[3];t.itemId=parseInt(n.split("/")[1],10)}return e[4]&&(t.dialog=e[4]),t}function _(e){var t=(0,r._)({},g);if(t.type=e[1],t.library=e[3],t.info=l(e[2]),e[4]){var n=e[4];t.itemId=parseInt(n.split("/")[1],10)}return e[5]&&(t.dialog=e[5]),t}function E(e,t){var n=(0,r._)({},g),o=e.match(p.STANDALONE_SHARING_LOCATION),a=t.match(p.STANDALONE_SHARING);if(o[1]&&(n.passphrase=o[1]),a[1]){var s=a[1];n.itemId=parseInt(s.split("/")[1],10)}return n.type=i.ZP.ALBUM_TYPE.ALBUM,n}function w(e){if((0,d.v6)())return E(window.location.pathname,e);var t=e.match(p.PHOTO);if(t)return v(t);var n=e.match(p.SHARING);if(n)return b(n);var r=e.match(p.ALBUM);if(r)return y(r);var i=e.match(p.SEARCH);return i?_(i):g}function S(e){var t=e.startsWith("/")?e.split("/",2)[1]:e.split("/",1)[0];return 0>t.indexOf(o.Z.PERSONAL_SPACE)&&0>t.indexOf(o.Z.TEAM_SPACE)?"":t}function T(e){return(0,f.GR)(e)?O(e):(0,f.ur)(e)?I(e):(0,d.f5)()?i.Zu.PERSONAL:S(e)}function O(e){return(0,f.GR)(e)?e.startsWith("/")?e.split("/",3)[2]:e.split("/",2)[1]:o.Z.PERSONAL_SPACE}function I(e){return(0,f.ur)(e)?e.startsWith("/")?e.split("/",4)[3]:e.split("/",3)[2]:o.Z.PERSONAL_SPACE}function A(e){var t=(0,u.Q)();if(""===t&&e&&(t=e),""!==t){var n="^/".concat(t,"/");if(null!==location.pathname.match(new RegExp(n)))return"".concat(location.origin,"/").concat(t,"/")}return"".concat(location.origin,"/")}function C(e,t){var n=t.albumId,r=t.folderId,i=t.passphrase,o=t.externalAlias,a=(0,u.Q)();""===a&&o&&(a=o);var s="".concat(A(a),"?launchApp=SYNO.Foto.Sharing.AppInstance&app_name=SYNO.Foto.AppInstance");return e&&(s=s.concat("&photos_action=".concat(e))),r?s=s.concat("&folderId=".concat(r)):i?s=s.concat("&passphrase=".concat(i)):n&&(s=s.concat("&albumId=".concat(n))),""!==a&&(s=s.concat("&alias=".concat(a))),s.concat("#/")}function x(){return(0,c.ej)(i.cn.VIEW_LIBRARY)||o.Z.TEAM_SPACE}},19084:function(e,t,n){"use strict";n.d(t,{dD:function(){return g},eF:function(){return f},hG:function(){return b},no:function(){return y},p0:function(){return u},uW:function(){return c}});var r=n(35369),i=n(30845),o=n(96904),a=n(47524),s=n(47739),l=n(50507);function u(){var e=a.Z.getStore();return l.Z.getIsSelectSingleStack(e.getState())}function c(){var e=a.Z.getStore();return l.Z.getIsSelectingAllFavorite(e.getState())}function d(e,t){for(var n=[],i=function(e,t,r){for(var i=0;i<e.get("list").size;i++){var o=e.getIn(["list",i]);o.get("type")===t&&n.push(o.getIn(r))}},a=0;a<e.size;a++){var s=e.get(a);s.get("type")!==o.TY.ROW_TYPE.TIMELINE_ROW||s.get("arranged")?s.get("type")===o.TY.ROW_TYPE.TIMELINE_ROW&&s.get("arranged")?i(s,"photo",["photo"]):"item_row"===s.get("type")&&t===o.RT.FOLDER?i(s,"folder",[]):"item_row"===s.get("type")&&t===o.RT.ITEM&&s.get("list").forEach(function(e){n.push(e)}):n.push(r.default.fromJS({id:0}))}return n}function f(e,t){return d(e,t).map(function(e){return{id:e.get("id"),expanded:e.getIn(["photo","expanded"],!1),time:e.get("time"),owner_user_id:e.get("owner_user_id"),provider_user_id:e.getIn(["additional","provider_user_id"],-1),thumbnailUnitId:e.getIn(["additional","thumbnailUnitId"]),filename:e.get("filename"),type:e.get("type"),live_type:e.get("live_type"),codec:(0,s.Z)(e),favorite:e.getIn(["additional","favorite"],!1)}})}var p=function(e){return e===o.ZP.ALBUM_TYPE.ALBUM||e===o.ZP.ALBUM_TYPE.SHARING};function h(e,t,n){if(t===o.ZP.ALBUM_TYPE.FOLDER){var i=e.getIn(["folderReducer","folder","folders","rows"]),a=e.getIn(["folderReducer","photowall","rows"]);return r.default.fromJS([i,a])}return p(t)&&n===o.Us.General?e.getIn(["albumReducer","photowall","rows"]):t===o.ZP.ALBUM_TYPE.ALBUM&&n===o.ZP.ALBUM_TYPE.FOLDER?r.default.fromJS([[],e.getIn(["embededFolder","photowall","rows"])]):n===o.ZP.ALBUM_TYPE.SIMILAR?e.getIn(["similar","rows"]):void 0}function m(e,t,n,r){for(var i=-1,o=-1,a=t.getIn([0,"list"]).size,l=0;l<t.size;l++)for(var u=t.getIn([l,"list"]),c=0;c<u.size;c++){var d=u.getIn([c,"id"]);e.push({id:d,time:u.getIn([c,"time"]),owner_user_id:u.getIn([c,"owner_user_id"]),thumbnailUnitId:u.getIn([c,"additional","thumbnailUnitId"]),filename:u.getIn([c,"filename"]),type:u.getIn([c,"type"]),live_type:u.getIn([c,"live_type"]),codec:(0,s.Z)(u.get(c)),favorite:u.getIn([c,"additional","favorite"],!1)}),d===n&&(i=l*a+c),d===r&&(o=l*a+c)}return{fromIdx:Math.min(i,o),toIdx:Math.max(i,o)}}function g(e,t,n,r,i){if(!(e.has(0)&&e.has(1)))return{};var o=e.get(0),a=e.get(1),s={folder:[],photoWall:[]};if("folder"===t&&"folder"===n){var l=m(s.folder,o,r,i);s.folder=s.folder.slice(l.fromIdx,l.toIdx+1)}else if("item"===t&&"item"===n){var u=m(s.photoWall,a,r,i);s.photoWall=s.photoWall.slice(u.fromIdx,u.toIdx+1)}else{var c=m(s.folder,o,"folder"===t?r:-1,"folder"===n?i:-1),d=m(s.photoWall,a,"item"===t?r:-1,"item"===n?i:-1);s.folder=s.folder.slice(-1!==c.toIdx?c.toIdx:c.fromIdx),s.photoWall=s.photoWall.slice(0,1+(-1!==d.toIdx?d.toIdx:d.fromIdx))}return s}function v(e,t){return e.isSuperset(t)}var y=(0,i.Z)(h),b=(0,i.Z)(v)},22287:function(e,t,n){"use strict";n.d(t,{$E:function(){return c},K2:function(){return f},Q:function(){return d},Uw:function(){return u},WP:function(){return v},_9:function(){return m},eB:function(){return g},if:function(){return p},nw:function(){return s},tp:function(){return h}});var r=n(47524),i=n(96904),o=n(76408);function a(e){return r.Z.getStore().getState().getIn(["setting","user_setting",e])}function s(){return SYNO.SDS.Session.isLogined?a("enable_home_service"):r.Z.getStore().getState().getIn(["setting","guest_setting","enable_home_service"])}function l(){var e=r.Z.getStore();return SYNO.SDS.Session.isLogined?e.getState().getIn(["setting","team_setting","enabled"]):e.getState().getIn(["setting","guest_setting","enable_team_space"])}function u(){return a("enable_person")}function c(){var e=r.Z.getStore();return SYNO.SDS.Session.isLogined?e.getState().getIn(["setting","admin_setting","default_thumbnail_size"],"sm"):e.getState().getIn(["setting","guest_setting","default_thumbnail_size"],"sm")}function d(){var e=r.Z.getStore();return SYNO.SDS.Session.isLogined?e.getState().getIn(["setting","user_setting","alias"],""):e.getState().getIn(["setting","guest_setting","alias"],"")}function f(){return a("item_sort_by")}function p(){return a("sort_direction")}function h(e){return e===i.Zu.PERSONAL?s():e!==i.Zu.TEAM||l()}function m(){if(_S("is_admin"))return!0;var e=r.Z.getStore();return o.Z.getAdminEnableUserSharing(e.getState())}function g(){var e=r.Z.getStore();return o.Z.getHasHevc(e.getState())}function v(){var e=r.Z.getStore();return SYNO.SDS.Session.isLogined?o.Z.getEnableConvertedOriginalJpeg(e.getState()):e.getState().getIn(["setting","guest_setting","enable_converted_original_jpeg"],!1)}},92632:function(e,t,n){"use strict";n.d(t,{CB:function(){return u},Of:function(){return d},XX:function(){return c},f5:function(){return o},lF:function(){return a},v6:function(){return s}});var r=n(84402),i=n(16230),o=function(){return!!SYNO.SDS.Session.sharing&&("none"===SYNO.SDS.Session.sharing_status||"password"===SYNO.SDS.Session.sharing_status)},a=function(){return(0,r.Ew)(window.location.hash.substring(1))},s=function(){return null!==window.location.pathname.match(/\/mo\/sharing\/(.*?)$/)},l=function(){return null!==window.location.pathname.match(/\/mo\/request\/(.*?)$/)},u=function(){return o()||a()||s()},c=function(){return -1!==window.location.search.indexOf("SYNO.Foto.Sharing.AppInstance")},d=function(){if(o())return SYNO.SDS.Session.sharing_id;if(a()){var e=window.location.hash.substr(1).split("?")[0];return(0,i.o$)(e).passphrase}return s()?window.location.pathname.match(/\/mo\/sharing\/(.*?)$/)[1]:l()?window.location.pathname.match(/\/mo\/request\/(.*?)$/)[1]:""}},38478:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i=n(7409),o=n(99282),a=n(67294),s=n(73935),l=n(15593),u=n(27412),c=n(45697),d=n.n(c),f=n(96904),p=n(79905),h=function(e){var t=e.completedCount,n=e.favorite,r=e.errorCount,i=n?"num_item_add_to_favorite":"num_item_remove_from_favorite",o=(0,p.Xp)("app",i,t),s=n?"num_item_add_to_favorite_fail":"num_item_remove_from_favorite_fail",l=r>0?", ".concat((0,p.Xp)("app",s,r)):"";return a.createElement("div",null,"".concat(o).concat(l))};h.propTypes={completedCount:d().number.isRequired,errorCount:d().number.isRequired,favorite:d().bool.isRequired};var m=h,g=function(e){var t=e.completedCount,n=e.errorCount,r=(0,p.Xp)("app","num_item_updated",t),i=n>0?", ".concat((0,p.Xp)("app","num_item_update_fail",n)):"";return a.createElement("div",null,"".concat(r).concat(i))};g.propTypes={completedCount:d().number.isRequired,errorCount:d().number.isRequired};var v=g,y=n(37276);function b(e){var t=e.text;return a.createElement(y.Z,{text:t})}function _(e){var t=e.text;return a.createElement("div",null,t)}b.propTypes={text:d().string.isRequired},_.propTypes={text:d().string.isRequired};var E=n(8323),w=n(84299),S=function(e){var t=e.completedCount,n=e.rating,r=e.errorCount,i=(0,w.Z)(n),o=(0,p.a9)("app","num_item_rated",t),s=(0,E.Z)(o,t,i),l=r>0?", ".concat((0,p.Xp)("app","num_item_update_fail",r)):"";return a.createElement("div",null,"".concat(s).concat(l))};S.propTypes={completedCount:d().number.isRequired,rating:d().number.isRequired,errorCount:d().number.isRequired};var T=b,O=_,I=v,A=S,C=m,x=n(79113),D=n(32648),R=n(50507),L=f.ZP.ALBUM_NOTIFICATION_TYPE,k=(r={},(0,u._)(r,L.PURE_DIV_TEXT,{TextTemplate:O}),(0,u._)(r,L.PURE_DANGEROUS_SPAN_TEXT,{TextTemplate:T}),(0,u._)(r,L.RATING_UPDATED,{TextComp:A}),(0,u._)(r,L.FAVORITE_UPDATED,{TextComp:C}),(0,u._)(r,L.ITEM_UPDATED_COMPLETE,{TextComp:I}),r),M=function(e){var t=e.textProps,n=e.actionText,r=e.notificationType,i=e.handler,o=e.autoHide,s=e.closeTime,u=e.onClose,c=(0,a.useRef)(null),d=(0,l.v9)(D.Z.getIsProcessing),f=(0,l.v9)(R.Z.getSelectMode),p=(0,a.useRef)(null),h=(0,a.useRef)(null),m=function(){c.current&&(clearTimeout(c.current),c.current=null)};(0,a.useEffect)(function(){o?c.current=setTimeout(function(){u()},s):m()},[]),(0,a.useEffect)(function(){(!0===p.current&&!1===d||!1===h.current&&!0===f)&&u(),p.current=d,h.current=f},[d,f]);var g=function(){m()},v=function(){o&&!c.current&&(c.current=setTimeout(function(){u()},1e3))},y=n?[a.createElement(x.Z,{key:"notification-text-comp",className:"synofoto-notification-text-button",text:n,handler:i})]:null,b=k[r],_=b.TextComp,E=b.TextTemplate,w=_?a.createElement(_,t):a.createElement(E,t);return a.createElement("div",{className:"synofoto-notification",onMouseOver:g,onMouseLeave:v},a.createElement("div",{className:"synofoto-notification-text"},w),y)};M.propTypes={textProps:d().shape({text:d().string,completedCount:d().number,errorCount:d().number,rating:d().number}),notificationType:d().string.isRequired,actionText:d().string,handler:d().func,autoHide:d().bool,closeTime:d().number,onClose:d().func},M.defaultProps={textProps:{text:"",completedCount:0,rating:0,errorCount:0},actionText:null,handler:function(){},autoHide:!0,closeTime:5e3,onClose:function(){}};var P=M,N=n(47524),F=n(94057),B=function(){var e=N.Z.getStore(),t=null==e?void 0:e.getState().getIn(["notification","root_id"]);return(document.querySelector("#".concat(t))||document.querySelector("#reactRoot")).appendChild(document.createElement("div"))},U=function(e,t,n){var r=N.Z.getStore(),u=(0,o._)((0,i._)({},e),{isOpen:!0,handler:function(){var n;null==e||null===(n=e.handler)||void 0===n||n.call(e),t({type:"action"})},onClose:function(){t({type:"close"})}});s.render(a.createElement(l.zt,{store:r},a.createElement(P,u)),n)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=B();return new Promise(function(n){U(e,n,t)}).finally(function(){(0,F.P)(t)})}},57926:function(e,t,n){"use strict";n.d(t,{u:function(){return a},Z:function(){return s}});var r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange","MSFullscreenError"]],i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,i=r.find(function(e){return e&&e[1]in document});if(!i){var o=function(){};return{getElement:o,isFullscreen:!1,request:o,exit:o,toggle:o}}var a=i.reduce(function(e,t,n){return e[r[0][n]]=t,e},{}),s=function(){return document[a.fullscreenElement]},l=function(){return!!s()},u=function(){var e;null===(e=n[a.requestFullscreen]())||void 0===e||e.catch(function(){console.error("request fullscreen error.")})},c=function(){l()&&document[a.exitFullscreen]()},d=function(){l()?c():u(n)};return t.onChange&&document.addEventListener(a.fullscreenchange,function(){t.onChange(l())}),t.onError&&document.addEventListener(a.fullscreenerror,t.onError),{getElement:s,isFullscreen:l,request:u,exit:c,toggle:d}},o=null;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o=i(document.body,e)}function s(){return o}},8323:function(e,t){"use strict";var n=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.replace(/\{(\d+)\}/g,function(e,t){return n[t]})};t.Z=n},70826:function(e,t){"use strict";var n=function(e,t){return"webman/3rdparty/SynologyPhotos/animation/".concat(e,"/").concat(t)};t.Z=n},79905:function(e,t,n){"use strict";n.d(t,{Bk:function(){return u},D9:function(){return l},Xp:function(){return s},a9:function(){return a},n6:function(){return o}});var r=n(8323),i=n(62916),o=function(e,t){var n=_TT("SYNO.Foto.AppInstance",e,t);return(n=n||_T(e,t),"both"===(0,i.qs)())?n?(0,r.Z)("{0}({1}:{2})",n,e,t):(0,r.Z)("{0}:{1}",e,t):"key"===(0,i.qs)()?(0,r.Z)("{0}:{1}",e,t):n||(0,r.Z)("{0}:{1}",e,t)},a=function(e,t,n){return n<2?o(e,t):o(e,"".concat(t,"_plural"))},s=function(e,t,n){return(0,r.Z)(a(e,t,n),n)},l=function(e){if(0===e)return"0 Byte";var t=1024,n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(t,r)).toFixed(1))," ").concat(n[r])},u=function(e){return e<1e5?"":"".concat(parseFloat((e/1e6).toFixed(1))," MP")}},26822:function(e,t){"use strict";var n=function(e){return e.replace(/_([a-z])/g,function(e){return e[1].toUpperCase()})};t.Z=n},75296:function(e,t){"use strict";var n=function(e){return e.replace(/([A-Z])/g,function(e){return"_".concat(e.toLowerCase())})};t.Z=n},94599:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(8323),i=void 0,o=function(e,t){var n=[e];return t.forEach(function(e){var t=e.url,r=e.target||"_blank",i=e.color||"var(--color-link-tier1)";n.push('<a href="'.concat(t,'" target="').concat(r,'" style="color: ').concat(i,'; text-decoration: underline;">')),n.push("</a>")}),r.Z.apply(i,n)},a=function(e,t){return o(e,[{url:t,target:"_blank",color:"var(--color-link-tier1)"}])};t.Z=a},95635:function(e,t,n){"use strict";n.d(t,{Ks:function(){return r},ix:function(){return o},rs:function(){return i}});var r=function(){return SYNO.SDS.UserSettings.getProperty("Personal","lang")},i=function(e){SYNO.SDS.UserSettings.setProperty("Personal","lang",e)},o=function(){return SYNO.SDS.Utils.getSupportedLanguage()}},73849:function(e,t,n){"use strict";var r=n(47524),i=n(96904),o=function(){return r.Z.getStore().getState().getIn(["setting","user_setting","team_space_permission"])===i.El.MANAGE};t.Z=o},51383:function(e,t,n){"use strict";n.d(t,{KF:function(){return c},jO:function(){return u},uu:function(){return l},vT:function(){return s}});var r=n(47524),i=n(96904),o=n(92319),a=n(73849),s=function(){return r.Z.getStore().getState().getIn(["setting","user_setting","team_space_permission"])!==i.El.NONE},l=function(){return r.Z.getStore().getState().getIn(["setting","team_setting","enable_person"],!1)};function u(e,t){return!!(0,a.Z)()||!!e&&e.getIn(["accessPermission",t],!1)}function c(e){var t=r.Z.getStore();return u(o.Z.getCurrentFolder(t.getState()),e)}},878:function(e,t,n){"use strict";var r=n(8768),i=n(75804),o=n(96904),a=n(11975),s=n(79173),l=n(30897),u=n(53982),c=n(4040),d=n(73849),f=function(e){return e.get("live_type","")===o.M6.VIDEO},p=function(e){return(0,a.Z)(e)?3:(0,s.Z)(e)||f(e)?2:1},h=function(e){var t=e.item,n=e.thumbnailInfo,f=e.userId,h=e.hasFolderDownloadPermission,m=e.hasVc1,g=e.hasH264,v=e.pcClientHevcSupport,y=e.pcClientVc1Support,b=e.canUseVideoTranscoding,_=(0,l.Z)(n),E=b&&(0,i.Z)(t);if(!_&&!E)return[];var w=t.get("owner_user_id")===f,S=0===t.get("owner_user_id");return(0,a.Z)(t)&&m&&g||((0,s.Z)(t)||(0,u.Z)(t))&&!v||(0,a.Z)(t)&&!y?[]:w||S&&(0,d.Z)()||S&&h?[{unit_id:t.getIn(["additional","thumbnailUnitId"]),unit_type:(0,c.mi)(t)?o.Ak.VIDEO:o.Ak.PHOTO,library:S?r.Z.TEAM_SPACE:r.Z.PERSONAL_SPACE,filename:t.get("filename"),need_thumbnail:_,need_video:E,priority:p(t)}]:[]};t.Z=h},75690:function(e,t,n){"use strict";n.d(t,{Kx:function(){return h},O6:function(){return p},dM:function(){return v},fB:function(){return m},o:function(){return b},t1:function(){return g},uK:function(){return y},yx:function(){return _}});var r=n(10285),i=n.n(r),o=n(27484),a=n.n(o),s=n(56176),l=n.n(s),u=n(15069),c=n.n(u),d=n(70178),f=n.n(d);function p(e){return a()(1e3*e).utc(!0).unix()}function h(e){return a().utc(1e3*e).day()}function m(e){return a()().year(e).startOf("year")}function g(e){return a()().year(e).endOf("year")}a().extend(i()),a().extend(l()),a().extend(c()),a().extend(f());var v={getDayjs:function(e){return a().utc(1e3*e)},getDateString:function(e,t){return a().utc(1e3*e).format(t)},convertToLocale:function(e){return a()(a().utc(1e3*e).format("YYYY-MM-DD HH:mm:ss"))}},y={getDayjs:function(e){return a()(1e3*e)},convertToGmt:function(e){return a()(1e3*e).utc(!0)}},b={getTimestamp:function(e){return e.utc(!0).unix()},getTimestampStartOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.utc(!0).startOf(t).unix()},getTimestampEndOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.utc(!0).endOf(t).unix()}},_={getNowTimestamp:function(){return a()().unix()},getNowString:function(e){return a()().format(e)},getNowTimestampStartOf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day";return a()().startOf(e).unix()},getNowTimestampEndOf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day";return a()().endOf(e).unix()},getTimestamp:function(e){return e.unix()},getTimestampStartOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.startOf(t).unix()},getTimestampEndOf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day";return e.endOf(t).unix()}}},42933:function(e,t,n){"use strict";var r=n(47524),i=n(96904),o=n(30884),a=function(){return r.Z.getStore().getState().getIn(["setting","user_setting","timeline_group_unit"],i.Ls.DAY)};function s(e){var t=a()===i.Ls.MONTH?"YYYY-MM":"YYYY-MM-DD";return(0,o.Z)(e,t)}t.Z=s},30884:function(e,t,n){"use strict";var r=n(75690);function i(e,t){return r.dM.getDateString(e,t)}t.Z=i},89243:function(e,t,n){"use strict";var r=n(47524),i=n(96904),o=n(98648),a=n(30884),s=function(){return r.Z.getStore().getState().getIn(["setting","user_setting","timeline_group_unit"],"day")};function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t&&s()===i.Ls.MONTH,r=(0,o.m)();return n&&(r=r.replace(/([\.\-\/]D{2}|D{2}[\.\-\/])/i,"")),(0,a.Z)(e,r)}t.Z=l},98648:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(47524),i=n(96904),o=function(){return r.Z.getStore().getState().getIn(["setting","user_setting","date_format"],i.eF)}},67479:function(e,t,n){"use strict";n.d(t,{u6:function(){return E},LU:function(){return w},Fm:function(){return S},aV:function(){return _},YF:function(){return T},zY:function(){return v},Bd:function(){return h},oq:function(){return g}});var r=n(27484),i=n.n(r),o=n(70178),a=n.n(o),s=n(47524),l=[{value:"Midway",offset:-660},{value:"Hawaii",offset:-600},{value:"Alaska",offset:-540},{value:"Pacific",offset:-480},{value:"Arizona",offset:-420},{value:"Chihuahua",offset:-420},{value:"Mountain",offset:-420},{value:"Central",offset:-360},{value:"Guatemala",offset:-360},{value:"MexicoCity",offset:-360},{value:"Saskatchewan",offset:-360},{value:"Bogota",offset:-300},{value:"EastIndiana",offset:-300},{value:"Eastern",offset:-300},{value:"Atlantic",offset:-240},{value:"Caracas",offset:-240},{value:"La_Paz",offset:-240},{value:"Manaus",offset:-240},{value:"Santiago",offset:-240},{value:"Newfoundland",offset:-210},{value:"Brasilia",offset:-180},{value:"BuenosAires",offset:-180},{value:"Godthab",offset:-180},{value:"Montevideo",offset:-180},{value:"South_Georgia",offset:-120},{value:"Azores",offset:-60},{value:"CapeVerde",offset:-60},{value:"Casablanc",offset:0},{value:"Dublin",offset:0},{value:"Monrovia",offset:0},{value:"Amsterdam",offset:60},{value:"Belgrade",offset:60},{value:"Brussels",offset:60},{value:"Sarajevo",offset:60},{value:"WAT",offset:60},{value:"Windhoek",offset:60},{value:"Amman",offset:120},{value:"Athens",offset:120},{value:"Beirut",offset:120},{value:"CAT",offset:120},{value:"EET",offset:120},{value:"Egypt",offset:120},{value:"Harare",offset:120},{value:"Helsinki",offset:120},{value:"Israel",offset:120},{value:"Baghdad",offset:180},{value:"Istanbul",offset:180},{value:"Kuwait",offset:180},{value:"Minsk",offset:180},{value:"Moscow",offset:180},{value:"Nairobi",offset:180},{value:"Tehran",offset:210},{value:"Baku",offset:240},{value:"Muscat",offset:240},{value:"Tbilisi",offset:240},{value:"Yerevan",offset:240},{value:"Kabul",offset:270},{value:"Ekaterinburg",offset:300},{value:"Karachi",offset:300},{value:"Calcutta",offset:330},{value:"Katmandu",offset:345},{value:"Almaty",offset:360},{value:"Dhaka",offset:360},{value:"Rangoon",offset:390},{value:"Jakarta",offset:420},{value:"Krasnoyarsk",offset:420},{value:"Novosibirsk",offset:420},{value:"Taipei",offset:480},{value:"Beijing",offset:480},{value:"Irkutsk",offset:480},{value:"Perth",offset:480},{value:"Singapore",offset:480},{value:"Ulaanbaatar",offset:480},{value:"Seoul",offset:540},{value:"Tokyo",offset:540},{value:"Yakutsk",offset:540},{value:"Adelaide",offset:570},{value:"Darwin",offset:570},{value:"Brisbane",offset:600},{value:"Guam",offset:600},{value:"Melbourne",offset:600},{value:"Tasmania",offset:600},{value:"Vladivostok",offset:600},{value:"Magadan",offset:660},{value:"Noumea",offset:660},{value:"Auckland",offset:720},{value:"Fiji",offset:720},{value:"Kamchatka",offset:720},{value:"Kwajalein",offset:720}],u=n(96904),c=n(79905),d=n(75690),f=n(98648);i().extend(a());var p=function(){return s.Z.getStore().getState().getIn(["setting","user_setting","time_format"],u.Z1)},h=function(){return s.Z.getStore().getState().getIn(["userInfo","profile","timezone"],"")},m=function(e){return[(0,c.n6)("datetime","sunday"),(0,c.n6)("datetime","monday"),(0,c.n6)("datetime","tuesday"),(0,c.n6)("datetime","wednesday"),(0,c.n6)("datetime","thursday"),(0,c.n6)("datetime","friday"),(0,c.n6)("datetime","saturday")][e]};function g(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?"filter":"datetime";return[(0,c.n6)(t,"january"),(0,c.n6)(t,"february"),(0,c.n6)(t,"march"),(0,c.n6)(t,"april"),(0,c.n6)(t,"may"),(0,c.n6)(t,"june"),(0,c.n6)(t,"july"),(0,c.n6)(t,"august"),(0,c.n6)(t,"september"),(0,c.n6)(t,"october"),(0,c.n6)(t,"november"),(0,c.n6)(t,"december")]}function v(e,t){var n;if(e&&t){var r=d.dM.getDateString(e,(0,f.m)()),i=d.dM.getDateString(t,(0,f.m)());n=r===i?i:"".concat(r," - ").concat(i)}return n}function y(e){return l.find(function(t){return t.value===e})}var b=function(){return d.yx.getNowString((0,f.m)())};function _(){var e=h();if(!e)return b();var t=y(e);if(!t)return b();var n=t.offset;return i().utc().utcOffset(n).format((0,f.m)())}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.format,r=t.showDayOfWeek,i=void 0===r||r,o=n||p(),a=d.dM.getDateString(e,"12"===o?"hh:mm a":"HH:mm"),s=i?"".concat(m((0,d.Kx)(e)),", "):"";return"".concat(s).concat(a)}function w(e){var t=i()().startOf("day").second(e/1e3);return e>=864e5?"".concat(24*Math.floor(e/864e5)+parseInt(t.format("H"),10)).concat(t.format(":mm:ss")):e>=36e5?t.format("H:mm:ss"):t.format("mm:ss")}function S(e){return Math.floor(e/1e3)}function T(e,t){return i()("".concat(e," ").concat(t)).utc(!0).unix()}},37210:function(e,t,n){"use strict";var r=n(96904),i=function(e){return e?r.ZP.MOBILE_ITEM_MARGIN:r.ZP.ITEM_MARGIN};t.Z=i},52937:function(e,t,n){"use strict";n.d(t,{He:function(){return R}});var r=n(43830),i=n(52062),o=n(27412),a=n(24460),s=n(55210),l=n(35369),u=n(47524),c=n(96904),d=n(42632),f=n(7409),p=n(99282),h=n(47739),m=-1,g=function(e){var t=e.get("idArray").toJS(),n=Object.fromEntries(t.map(function(t){var n=String(t);return[t,(0,p._)((0,f._)({time:e.getIn(["infoMap",n,"time"]),owner_user_id:e.getIn(["infoMap",n,"owner_user_id"]),filename:e.getIn(["infoMap",n,"filename"]),type:e.getIn(["infoMap",n,"type"]),thumbnailUnitId:e.getIn(["infoMap",n,"thumbnailUnitId"]),live_type:e.getIn(["infoMap",n,"live_type"]),codec:e.getIn(["infoMap",n,"codec"])},e.hasIn(["infoMap",n,"similar"])&&{similar:e.getIn(["infoMap",n,"similar"])}),{favorite:e.getIn(["infoMap",n,"favorite"],!1)})]}));return{idArray:t,infoMap:n}},v=function(e){var t=[],n={};return e.sortBy(function(e,t){return t},function(e,t){return e-t}).forEach(function(e){e.get("status")!==c.i4.LOADED?t.push(m):e.get("list").forEach(function(e){t.push(e.get("id")),n[e.get("id")]=(0,p._)((0,f._)({time:e.get("time"),owner_user_id:e.get("owner_user_id"),filename:e.get("filename"),type:e.get("type"),thumbnailUnitId:e.getIn(["additional","thumbnailUnitId"]),live_type:e.get("live_type"),codec:(0,h.Z)(e)},e.has("similar")&&{similar:e.get("similar")}),{favorite:e.getIn(["additional","favorite"],!1)})})}),{idArray:t,infoMap:n}},y=function(e,t,n){return e.lastIndexOf(m,n)<t},b=function(e,t,n){var r=e.indexOf(t),i=e.indexOf(n);return{start:Math.min(r,i),end:Math.max(r,i)}};function _(e){return e.get("idArray").isEmpty()?v(e.get("listBySection")):g(e)}function E(e,t,n,r){var i=b(e,n,r),o=i.start,a=i.end;if(!y(e,o,a))throw Error("invalid select");var s=e.slice(o,a+1),l=Object.fromEntries(s.map(function(e){return[e,t[e]]}));return{idArray:s,infoMap:l}}var w=n(37210),S=n(42933),T=n(61630),O=l.default.fromJS({type:c.TY.ROW_TYPE.FAKE_ROW,dates:[""],arranged:!1,arrange_width:-1,arrange_height:c.TY.IMAGE_TARGET_HEIGHT,list:[],sectionNumber:-1}),I=-1,A=c.TY.IMAGE_TARGET_HEIGHT*c.TY.IMAGE_TARGET_HEIGHT,C=c.TY.MONTH_IMAGE_TARGET_HEIGHT*c.TY.MONTH_IMAGE_TARGET_HEIGHT,x=function(){function e(t,n,i,a,u){var c=this;(0,r._)(this,e),(0,o._)(this,"getRowHeightAtIndex",function(e){return c._heightTable[e]}),(0,o._)(this,"hasRow",function(e){return c._rowTable.has(e)}),(0,o._)(this,"isRowRemoved",function(e){return e!==I}),(0,o._)(this,"_mergeRows",function(e,t,n){if(e.isEmpty())return t;var r=null;if(function(){return void 0!==e.findEntry(function(e){return e.get("sectionNumber")===n})}()){var i,o=e.findKey(function(e){return e.get("sectionNumber")===n}),a=e.findLastKey(function(e){return e.get("sectionNumber")===n});r=(i=e).splice.apply(i,[o,a-o+1].concat((0,s._)(t)))}else r=e.concat(t);return r}),(0,o._)(this,"_compForFlexSection",function(e){return function(t){var n=t.get("rowOffset"),r=n+t.get("rowLimit");return n<=e&&e<r?0:e<n?1:-1}}),(0,o._)(this,"_isCacheFull",function(){return c._spatialCache.length>c.getCacheSize()}),(0,o._)(this,"_getDatesInStore",function(){return c._store.getState().getIn(["timeline","dates"])}),(0,o._)(this,"_getPhotosInStore",function(){return c._store.getState().getIn(["timeline","photos"])}),(0,o._)(this,"_getRowsInStore",function(){return c._store.getState().getIn(["timeline","rows"])}),(0,o._)(this,"_getFlexSectionInStore",function(){return c._store.getState().getIn(["timeline","flexSection"])}),(0,o._)(this,"_getScrollInfoInStore",function(){return c._store.getState().getIn(["timeline","scrollInfo"],l.default.Map())}),this._spatialCache=t,this._cache_size=5,this._store=n,this._flexSectionIterator=0,this._rowTable=i,this._heightTable=a,this._fakeRowTypeTable=u}return(0,i._)(e,[{key:"clear",value:function(){this._rowTable.clear(),this._spatialCache.length=0,this._heightTable={}}},{key:"updateStore",value:function(e){this._store=e}},{key:"getFakeImageArea",value:function(){return this._store.getState().getIn(["setting","user_setting","timeline_group_unit"],c.Ls.DAY)===c.Ls.DAY?A:C}},{key:"getCacheSize",value:function(){var e=Math.ceil(2*Math.ceil(window.innerWidth*window.innerHeight/this.getFakeImageArea())/100);return e>5&&e>this._cache_size&&(this._cache_size=e),this._cache_size}},{key:"getRowIndexOfItem",value:function(e){var t=function(t){return -1!==t.findIndex(function(t){return t.has("photo")&&t.getIn(["photo","id"])===e})},n=this._getRowsInStore(),r=!0,i=!1,o=void 0;try{for(var s,l=this._rowTable.entries()[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=(0,a._)(s.value,2),c=u[0],d=u[1];if(n.hasIn([d,"list"])&&t(n.getIn([d,"list"])))return c}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return -1}},{key:"guessRowIndexOfItemByDate",value:function(e,t){var n=this._getPhotosInStore().getIn([t,"listBySection"]);if(void 0===n)return -1;var r=n.findKey(function(t){return void 0!==t.get("list").find(function(t){return t.get("id")===e})});return void 0===r?-1:this._getFlexSectionInStore().getIn([r,"rowOffset"])+Math.ceil(n.getIn([r,"list"]).size/c.TY.GUESS_ITEM_PER_ROW)}},{key:"getRowAtIndex",value:function(e){return this._getRowsInStore().get(this._rowTable.get(e),O)}},{key:"getRowsAtSection",value:function(e){var t=this,n=this._getFlexSectionInStore(),r=this._getRowsInStore();if(n.isEmpty())return l.default.List();var i=n.getIn([e,"rowOffset"]),o=n.getIn([e,"rowLimit"]);return this.hasRow(i)?r.slice(this._rowTable.get(i),this._rowTable.get(i)+o):l.default.fromJS(Array(o).fill(O).map(function(e,n){return e.set("arrange_height",t._heightTable[n+i])}))}},{key:"getSectionNumber",value:function(e){if(this.hasRow(e))return this._store.getState().getIn(["timeline","rows",this._rowTable.get(e),"sectionNumber"]);var t=this._getFlexSectionInStore();return(0,d.xY)(t,this._compForFlexSection(e))}},{key:"insertArrangedRows",value:function(e,t,n){var r=this._getRowsInStore(),i=this._updateCache(n,0===e.length),o=this._removeRowsNotInCache(r),a=this._mergeRows(o,l.default.fromJS(e),n);return this._updateRowTable(a,t),this._updateHeightTableAndFakeRowTypeTable(e,n),{newRows:a,sectionRevoked:i}}},{key:"rowsSize",value:function(){var e=this._getFlexSectionInStore();return e.isEmpty()?0:e.last().get("rowOffset")+e.last().get("rowLimit")}},{key:"rangeQueryItemId",value:function(e,t){if(t.timestamp>e.timestamp)return this.rangeQueryItemId(t,e);for(var n=[],r={},i=this._getDatesInStore(),o=this._getPhotosInStore(),a=i.findIndex(function(t){return t===(0,S.Z)(e.timestamp)}),l=1+i.findIndex(function(e){return e===(0,S.Z)(t.timestamp)}),u=a;u<l;++u){var c,d=_(o.get(i.get(u))),f=d.idArray,p=d.infoMap;(c=n).push.apply(c,(0,s._)(f)),r=Object.assign(r,p)}return E(n,r,e.id,t.id)}},{key:"removeSectionInCache",value:function(e){this._spatialCache.includes(e)&&this._spatialCache.splice(this._spatialCache.findIndex(function(t){return t===e}),1)}},{key:"setTimelineRow",value:function(e){var t,n=this,r=l.default.fromJS(e),i=new Set;return this._rowTable.clear(),r.forEach(function(e,t){i.add(e.get("sectionNumber")),n._rowTable.set(t,t)}),(t=this._spatialCache).push.apply(t,(0,s._)(i)),r}},{key:"setHeightTable",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t+1,r=t;r<n;r++)this._heightTable[r]=e}},{key:"setFakeRowTypeTable",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t+1,r=t;r<n;r++)this._fakeRowTypeTable[r]=e}},{key:"getInitScrollPos",value:function(){var e=this._getScrollInfoInStore(),t=e.get("dateStr","");if(!t)return{pos:0,isPercentage:!1};var n=this._getFlexSectionInStore(),r=this._getPhotosInStore().getIn([t,"listBySection"],l.default.List()).keySeq().sort();if(0===r.size)return{pos:100*e.get("scrollRatioOfAll",0),isPercentage:!0};for(var i=0,o=0;o<r.get(0);o++)i+=n.getIn([o,"totalHeight"],0);var a=e.get("sameDateRowRatio",0);if(1===r.size){var s=r.get(0),u=n.getIn([s],l.default.Map()),d=u.get("dates",l.default.List());if(1===d.size)i+=u.get("totalHeight",0)*a;else{for(var f=this.getRowsAtSection(s),p=d.findIndex(function(e){return e.get("date","")===t}),h=u.get("rowOffset",0),m=0,g=0,v=0,y=!1,b=0;b<=f.size;b++){var _=f.get(b);if(this._fakeRowTypeTable[h+b]===c.TY.ROW_TYPE.FAKE_SPLIT_ROW){if((v+=1)===p+1)y=!0;else if(v===p+2)break}y?g+=_.get("arrange_height",0):m+=_.get("arrange_height",0)}i+=m+g*a}}else{var E=0;r.forEach(function(e){E+=n.getIn([e,"totalHeight"],0)}),i+=E*a}return{pos:i,isPercentage:!1}}},{key:"getDateStrAndSameDateRowRatioOfRowIndex",value:function(e){var t=this._getFlexSectionInStore(),n=this._getPhotosInStore(),r=e,i=this.getRowAtIndex(e);(i.get("type")===c.TY.ROW_TYPE.SPLIT_ROW||this._fakeRowTypeTable[r]===c.TY.ROW_TYPE.FAKE_SPLIT_ROW)&&(r+=1,i=this.getRowAtIndex(r));var o=0;if(i.get("type")===c.TY.ROW_TYPE.TIMELINE_ROW)o=i.get("sectionNumber",0);else for(var a=0;a<t.size;a++){var s=t.get(a),u=s.get("rowOffset",0),d=s.get("rowLimit",0);if(r>=u&&r<=u+d-1){o=a;break}}var f=t.get(o),p="",h=0;if(1===f.get("dates").size){p=f.getIn(["dates",0,"date"],"");var m=n.getIn([p,"listBySection"],l.default.List()).keySeq().sort(),g=t.getIn([m.get(0),"rowOffset"],0);h=(r-g)/(t.getIn([m.get(-1),"rowOffset"],0)+t.getIn([m.get(-1),"rowLimit"],0)-g+1)}else{for(var v=this.getRowsAtSection(o),y=[],b=f.get("rowOffset",0),_=-1,E=-1,w=-1,S=0;S<v.size;S++)(v.get(S).get("type","")===c.TY.ROW_TYPE.SPLIT_ROW||this._fakeRowTypeTable[b+S]===c.TY.ROW_TYPE.FAKE_SPLIT_ROW)&&(y.push(S),-1!==w&&(E=S-1)),b+S===r&&(_=y[y.length-1]+1,w=S,i.get("type","")===c.TY.ROW_TYPE.TIMELINE_ROW?p=i.getIn(["dates",0],""):i.get("type","")===c.TY.ROW_TYPE.FAKE_ROW&&(p=f.getIn(["dates",y.length-1,"date"],"")));-1===E&&(E=v.size-1),h=(w-_)/(E-_+1)}return{dateStr:p,sameDateRowRatio:h}}},{key:"_updateCache",value:function(e,t){var n=I;if(this._spatialCache.includes(e)||t||this._spatialCache.push(e),this._isCacheFull()){var r=this._getFlexSectionInStore().size,i=function(e,t){return Math.min(Math.abs(e-t),r-Math.abs(e-t))};this._spatialCache.sort(function(t,n){return i(t,e)-i(n,e)}),n=this._spatialCache.pop()}return n}},{key:"_removeRowsNotInCache",value:function(e){var t=new Set(this._spatialCache);return e.filter(function(e){return t.has(e.get("sectionNumber"))})}},{key:"_updateHeightTableAndFakeRowTypeTable",value:function(e,t){for(var n=this._getFlexSectionInStore(),r=this.rowsSize(),i=n.getIn([t,"rowOffset"]),o=n.getIn([t,"rowOffset"])+n.getIn([t,"rowLimit"]),a={},s={},l=0;l<i;++l)a[l]=this._heightTable[l],s[l]=this._fakeRowTypeTable[l];e.forEach(function(e){var t=e.type;t===c.TY.ROW_TYPE.SPLIT_ROW&&(a[l]=c.TY.SPLITTER_HEIGHT+(0,w.Z)((0,T.tq)()),s[l]=c.TY.ROW_TYPE.FAKE_SPLIT_ROW),t===c.TY.ROW_TYPE.TIMELINE_ROW&&(a[l]=e.arrange_height+(0,w.Z)((0,T.tq)()),s[l]=c.TY.ROW_TYPE.FAKE_ROW),l+=1});for(var u=o;u<r;u+=1,l+=1)a[l]=this._heightTable[u],s[l]=this._fakeRowTypeTable[u];this._heightTable=a,this._fakeRowTypeTable=s}},{key:"_updateRowTable",value:function(e,t){var n=this,r=function(e,t,r){for(var i=e,o=r;i<t;i+=1,o+=1)n._rowTable.set(o,i)};this._rowTable.clear();for(var i=0;i<e.size;){var o=e.getIn([i,"sectionNumber"]),a=t.getIn([o,"rowOffset"]),s=t.getIn([o,"rowLimit"]);r(i,i+s,a),i+=s}}}]),e}(),D=null;function R(){return null===D&&(D=new x([],u.Z.getStore(),new Map,{},{})),D}},42632:function(e,t,n){"use strict";n.d(t,{xY:function(){return S},kU:function(){return T},fX:function(){return C},j7:function(){return O},nd:function(){return A},sp:function(){return x},A$:function(){return I}});var r=n(35369),i=n(67294),o=n(99410),a=n(45697),s=n.n(a),l={height:s().oneOfType([s().number,s().string]),width:s().oneOfType([s().number,s().string])},u={height:"100%",width:"100%"};function c(e){var t=e.width,n=e.height;return i.createElement("div",{className:"synofoto-item-timeline-item synofoto-item-grey-image",style:{height:n,width:t}})}c.propTypes=l,c.defaultProps=u;var d={height:s().oneOfType([s().number,s().string]),width:s().oneOfType([s().number,s().string]),wrapperWidth:s().oneOfType([s().number,s().string]),children:s().node},f={height:"100%",width:"100%",wrapperWidth:"100%",children:null};function p(e){var t=e.height,n=e.width,r=e.wrapperWidth;return i.createElement("div",{style:{overflow:"hidden",height:t,width:n}},i.createElement("div",{style:{width:r}},e.children))}p.propTypes=d,p.defaultProps=f;var h=n(96904),m=n(67479),g=n(37210),v=n(61630),y=r.default.List(),b=-1,_=-1;function E(e,t,n){var r="recently_added"===n;return function(n){var i=n.get("time");return(r&&(i=(0,m.Fm)(n.get("indexed_time"))),i<e)?1:i>e?-1:n.get("id")>t?r?-1:1:n.get("id")<t?r?1:-1:0}}function w(e){return function(t){return t<e?1:t>e?-1:0}}function S(e,t){if(!e)return -1;for(var n=0,r=e.size;r>n;){var i=Math.floor((n+r)/2),o=t(e.get(i));if(0===o)return i;o>0?r=i:n=i+1}return -1}function T(e,t,n){return[h.v.TIMELINE,h.v.SIMILAR].includes(e)?t:(0,m.Fm)(n)}function O(e,t,n,r,i){if(!e.getIn(["photos",n,"listBySection"],void 0))return[b,_,-1];for(var o=e.getIn(["photos",n,"listBySection"]),a=o.findKey(function(e){var t=e.get("list").last();return"loaded"===e.get("status")&&T(i,t.get("time"),t.get("indexed_time"))<=r}),s=o.keySeq().sort().last(),l=b,u=_,c=a;c<=s;c++)if((u=S(o.getIn([c,"list"]),E(r,t,i)))!==_){l=c;break}return[l,u,S(e.get("dates"),w(n))]}function I(e,t){return e.getIn(["dates",t])}function A(e,t,n){var r=I(e,t);return e.getIn(["photos",r,"listBySection",n,"list"],y)}function C(e,t,n,r){return A(e,t,n).get(r)}function x(e,t,n){for(var r=[],a=1.5*t,s=Math.floor(n/a)+1,l=0;l<s;++l)r.push(i.createElement(c,{key:(0,o.x0)(),height:t,width:a}));return i.createElement(p,{key:"fakerow_".concat(e),width:n,height:t,wrapperWidth:(a+(0,g.Z)((0,v.tq)()))*s},r)}},14324:function(e,t){"use strict";var n=function(e,t){return Object.fromEntries(t.filter(function(t){return t in e}).map(function(t){return[t,e[t]]}))};t.Z=n},3799:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(7409),i=n(99282),o=n(67294),a=n(73935),s=n(15593),l=n(24460),u=n(45697),c=n.n(u),d=n(42416),f=function(e){e&&(clearTimeout(e),e=null)},p=null,h=null,m=function(e){var t=e.message,n=e.onClose,r=e.autoHide,i=e.duration,a=(0,l._)((0,o.useState)("synofoto-top-toast"),2),s=a[0],u=a[1],c=function(){f(p),f(h)};return(0,o.useEffect)(function(){var e=i-330;return r?(p=setTimeout(function(){n()},i),h=setTimeout(function(){u("synofoto-top-toast hidden")},e)):c(),c},[r,i,n]),o.createElement(d.Z,{className:s,overlayClassName:"synofoto-toast-overlay",shouldCloseOnOverlayClick:!1,isOpen:!0},t)};m.propTypes={message:c().oneOfType([c().string,c().element]),onClose:c().func,autoHide:c().bool,duration:c().number},m.defaultProps={message:"",onClose:function(){},autoHide:!0,duration:2e3};var g=m,v=n(47524),y=n(96904),b=n(28081),_=document.body.appendChild(document.createElement("div")),E=function(){a.unmountComponentAtNode(_),v.Z.getStore().dispatch((0,b.Ek)())},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v.Z.getStore();new Promise(function(n){var l=(0,i._)((0,r._)({},e),{onClose:function(){n()}});a.render(o.createElement(s.zt,{store:t},o.createElement(g,l)),_)}).then(function(){E()}).catch(function(){return E()})},S={openTopToast:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E();var t=e.id||y.yX.DEFAULT,n=e.callback||function(){};v.Z.getStore().dispatch((0,b.mC)(t)),requestAnimationFrame(function(){w(e),n()})},cleanupTopToast:E}},47350:function(e,t,n){"use strict";let r,i;n.d(t,{ZP:function(){return e4}});var o,a={};n.r(a),n.d(a,{Decoder:function(){return eU},Encoder:function(){return eF},PacketType:function(){return o},protocol:function(){return eN}});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let l=Object.create(null);Object.keys(s).forEach(e=>{l[s[e]]=e});let u={type:"error",data:"parser error"},c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),d="function"==typeof ArrayBuffer,f=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,p=({type:e,data:t},n,r)=>c&&t instanceof Blob?n?r(t):h(t,r):d&&(t instanceof ArrayBuffer||f(t))?n?r(t):h(new Blob([t]),r):r(s[e]+(t||"")),h=(e,t)=>{let n=new FileReader;return n.onload=function(){t("b"+(n.result.split(",")[1]||""))},n.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return c&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(t):d&&(e.data instanceof ArrayBuffer||f(e.data))?t(m(e.data)):void p(e,!1,e=>{r||(r=new TextEncoder),t(r.encode(e))})}let v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<v.length;e++)y[v.charCodeAt(e)]=e;let b=e=>{let t=.75*e.length,n=e.length,r,i=0,o,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=y[e.charCodeAt(r)],a=y[e.charCodeAt(r+1)],s=y[e.charCodeAt(r+2)],l=y[e.charCodeAt(r+3)],c[i++]=o<<2|a>>4,c[i++]=(15&a)<<4|s>>2,c[i++]=(3&s)<<6|63&l;return u},_="function"==typeof ArrayBuffer,E=(e,t)=>{if("string"!=typeof e)return{type:"message",data:S(e,t)};let n=e.charAt(0);return"b"===n?{type:"message",data:w(e.substring(1),t)}:l[n]?e.length>1?{type:l[n],data:e.substring(1)}:{type:l[n]}:u},w=(e,t)=>_?S(b(e),t):{base64:!0,data:e},S=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,T="\x1e",O=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,o)=>{p(e,!1,e=>{r[o]=e,++i===n&&t(r.join(T))})})},I=(e,t)=>{let n=e.split(T),r=[];for(let e=0;e<n.length;e++){let i=E(n[e],t);if(r.push(i),"error"===i.type)break}return r};function A(){return new TransformStream({transform(e,t){g(e,n=>{let r;let i=n.length;if(i<126)new DataView((r=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((r=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((r=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)})}})}function C(e){return e.reduce((e,t)=>e+t.length,0)}function x(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function D(e,t){i||(i=new TextDecoder);let n=[],r=0,o=-1,a=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(0===r){if(1>C(n))break;let e=x(n,1);a=(128&e[0])==128,r=(o=127&e[0])<126?3:126===o?1:2}else if(1===r){if(2>C(n))break;let e=x(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(8>C(n))break;let e=x(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue(u);break}o=4294967296*i+t.getUint32(4),r=3}else{if(C(n)<o)break;let e=x(n,o);l.enqueue(E(a?e:i.decode(e),t)),r=0}if(0===o||o>e){l.enqueue(u);break}}}})}let R=4;function L(e){if(e)return k(e)}function k(e){for(var t in L.prototype)e[t]=L.prototype[t];return e}L.prototype.on=L.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},L.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},L.prototype.off=L.prototype.removeListener=L.prototype.removeAllListeners=L.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},L.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},L.prototype.emitReserved=L.prototype.emit,L.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},L.prototype.hasListeners=function(e){return!!this.listeners(e).length};let M="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function P(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let N=M.setTimeout,F=M.clearTimeout;function B(e,t){t.useNativeTimers?(e.setTimeoutFn=N.bind(M),e.clearTimeoutFn=F.bind(M)):(e.setTimeoutFn=M.setTimeout.bind(M),e.clearTimeoutFn=M.clearTimeout.bind(M))}let U=1.33;function H(e){return"string"==typeof e?j(e):Math.ceil((e.byteLength||e.size)*U)}function j(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function V(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function z(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}class Z extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class G extends L{constructor(e){super(),this.writable=!1,B(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new Z(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=E(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=V(e);return t.length?"?"+t:""}}let W="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),q=64,Y={},$=0,K=0,X;function Q(e){let t="";do t=W[e%q]+t,e=Math.floor(e/q);while(e>0);return t}function J(){let e=Q(+new Date);return e!==X?($=0,X=e):e+"."+Q($++)}for(;K<q;K++)Y[W[K]]=K;let ee=!1;try{ee="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let et=ee;function en(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||et))return new XMLHttpRequest}catch(e){}if(!t)try{return new M[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function er(){}function ei(){}let eo=function(){return null!=new en({xdomain:!1}).responseType}();class ea extends G{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}let t=e&&e.forceBase64;this.supportsBinary=eo&&!t,this.opts.withCredentials&&(this.cookieJar=er())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};I(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,O(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=J()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new es(this.uri(),e)}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class es extends L{constructor(e,t){super(),B(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=P(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let n=this.xhr=new en(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=es.requestsCount++,es.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=ei,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete es.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function el(){for(let e in es.requests)es.requests.hasOwnProperty(e)&&es.requests[e].abort()}es.requestsCount=0,es.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",el):"function"==typeof addEventListener&&addEventListener("onpagehide"in M?"pagehide":"unload",el,!1));let eu="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),ec=M.WebSocket||M.MozWebSocket,ed=!0,ef="arraybuffer",ep="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class eh extends G{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,n=ep?{}:P(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ed&&!ep?t?new ec(e,t):new ec(e):new ec(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;p(n,this.supportsBinary,e=>{let t={};!ed&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate&&("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1));try{ed?this.ws.send(e):this.ws.send(e,t)}catch(e){}r&&eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=J()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!ec}}class em extends G{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=D(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=A();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this.writer.write(n).then(()=>{r&&eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}let eg={websocket:eh,webtransport:em,polling:ea},ev=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ey=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function eb(e){if(e.length>2e3)throw"URI too long";let t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ev.exec(e||""),o={},a=14;for(;a--;)o[ey[a]]=i[a]||"";return -1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=e_(o,o.path),o.queryKey=eE(o,o.query),o}function e_(e,t){let n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}function eE(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}class ew extends L{constructor(e,t={}){super(),this.binaryType=ef,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=eb(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=eb(t.host).host),B(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=z(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=R,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new eg[e](n)}open(){let e;if(this.opts.rememberUpgrade&&ew.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),n=!1;ew.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(ew.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"===this.readyState||(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function i(){n||(n=!0,u(),t.close(),t=null)}let o=e=>{let n=Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",ew.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=H(n)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){ew.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],n=0,r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}function eS(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=eb(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}ew.protocol=R,ew.protocol;let eT="function"==typeof ArrayBuffer,eO=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eI=Object.prototype.toString,eA="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===eI.call(Blob),eC="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===eI.call(File);function ex(e){return eT&&(e instanceof ArrayBuffer||eO(e))||eA&&e instanceof Blob||eC&&e instanceof File}function eD(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(eD(e[t]))return!0;return!1}if(ex(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return eD(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&eD(e[t]))return!0;return!1}function eR(e){let t=[],n=e.data,r=e;return r.data=eL(n,t),r.attachments=t.length,{packet:r,buffers:t}}function eL(e,t){if(!e)return e;if(ex(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=eL(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=eL(e[r],t));return n}return e}function ek(e,t){return e.data=eM(e.data,t),delete e.attachments,e}function eM(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=eM(e[n],t);else if("object"==typeof e)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=eM(e[n],t));return e}let eP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eN=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class eF{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&eD(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eR(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function eB(e){return"[object Object]"===Object.prototype.toString.call(e)}class eU extends L{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let n=(t=this.decodeString(e)).type===o.BINARY_EVENT;n||t.type===o.BINARY_ACK?(t.type=n?o.EVENT:o.ACK,this.reconstructor=new eH(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(ex(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(void 0===o[n.type])throw Error("unknown packet type "+n.type);if(n.type===o.BINARY_EVENT||n.type===o.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(eU.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eB(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eB(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eP.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eH{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=ek(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ej(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let eV=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ez extends L{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[ej(e,"open",this.onopen.bind(this)),ej(e,"packet",this.onpacket.bind(this)),ej(e,"error",this.onerror.bind(this)),ej(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(eV.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:o.EVENT,data:t};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return(!this.flags.volatile||r&&this.connected)&&(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(!(e.nsp!==this.nsp))switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:o.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eZ(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eZ.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}return 0|Math.min(e,this.max)},eZ.prototype.reset=function(){this.attempts=0},eZ.prototype.setMin=function(e){this.ms=e},eZ.prototype.setMax=function(e){this.max=e},eZ.prototype.setJitter=function(e){this.jitter=e};class eG extends L{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,B(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new eZ({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let r=t.parser||a;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ew(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=ej(t,"open",function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=ej(t,"error",i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(ej(e,"ping",this.onping.bind(this)),ej(e,"data",this.ondata.bind(this)),ej(e,"error",this.onerror.bind(this)),ej(e,"close",this.onclose.bind(this)),ej(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){eu(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new ez(this,e,t),this.nsps[e]=n),n}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eW={};function eq(e,t){let n;"object"==typeof e&&(t=e,e=void 0);let r=eS(e,(t=t||{}).path||"/socket.io"),i=r.source,o=r.id,a=r.path,s=eW[o]&&a in eW[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?n=new eG(i,t):(eW[o]||(eW[o]=new eG(i,t)),n=eW[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(eq,{Manager:eG,Socket:ez,io:eq,connect:eq});var eY=n(43830),e$=n(27412),eK=n(7409),eX=n(99282),eQ=function e(t){var n=this;(0,eY._)(this,e),(0,e$._)(this,"register",function(e,t){return n._socket.on(e,t),function(){return n.unregister(e,t)}}),(0,e$._)(this,"unregister",function(e,t){n._socket.off(e,t)}),(0,e$._)(this,"send",function(e){var t=e.type,r=e.operation,i=e.data;n._socket.emit(t,(0,eX._)((0,eK._)({},i),{operation:r}))}),(0,e$._)(this,"isConnected",function(){return n._socket.connected}),this._socket=t},eJ=n(96904),e0=n(19285),e1=function(){return eq({path:"".concat((0,e0.C)()).concat(eJ.b2.PATH),transports:["websocket"],query:{SynoToken:_S("SynoToken")}})},e2=null,e4=function(e){return function(){return e2||(e2=e()),e2}}(function(){return new eQ(e1())})},86871:function(e,t,n){"use strict";function r(e){return e.split("-")[1]}function i(e){return"y"===e?"height":"width"}function o(e){return e.split("-")[0]}function a(e){return["top","bottom"].includes(o(e))?"x":"y"}function s(e,t,n){let s,{reference:l,floating:u}=e,c=l.x+l.width/2-u.width/2,d=l.y+l.height/2-u.height/2,f=a(t),p=i(f),h=l[p]/2-u[p]/2,m="x"===f;switch(o(t)){case"top":s={x:c,y:l.y-u.height};break;case"bottom":s={x:c,y:l.y+l.height};break;case"right":s={x:l.x+l.width,y:d};break;case"left":s={x:l.x-u.width,y:d};break;default:s={x:l.x,y:l.y}}switch(r(t)){case"start":s[f]-=h*(n&&m?-1:1);break;case"end":s[f]+=h*(n&&m?-1:1)}return s}n.d(t,{JB:function(){return d},RR:function(){return w},cv:function(){return S},oo:function(){return l},uY:function(){return O},x7:function(){return g}});let l=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=s(c,r,u),p=r,h={},m=0;for(let n=0;n<l.length;n++){let{name:o,fn:g}=l[n],{x:v,y:y,data:b,reset:_}=await g({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,h={...h,[o]:{...h[o],...b}},_&&m<=50&&(m++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:d,y:f}=s(c,p,u)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};function u(e,t){return"function"==typeof e?e(t):e}function c(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function d(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function f(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=u(t,e),v=c(g),y=s[m?"floating"===h?"reference":"floating":h],b=d(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:f,rootBoundary:p,strategy:l})),_="floating"===h?{...a.floating,x:r,y:i}:a.reference,E=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await (null==o.isElement?void 0:o.isElement(E))&&await (null==o.getScale?void 0:o.getScale(E))||{x:1,y:1},S=d(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:E,strategy:l}):_);return{top:(b.top-S.top+v.top)/w.y,bottom:(S.bottom-b.bottom+v.bottom)/w.y,left:(b.left-S.left+v.left)/w.x,right:(S.right-b.right+v.right)/w.x}}let p=Math.min,h=Math.max;function m(e,t,n){return h(e,p(t,n))}let g=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:s,rects:l,platform:d,elements:f}=t,{element:h,padding:g=0}=u(e,t)||{};if(null==h)return{};let v=c(g),y={x:n,y:o},b=a(s),_=i(b),E=await d.getDimensions(h),w="y"===b,S=w?"top":"left",T=w?"bottom":"right",O=w?"clientHeight":"clientWidth",I=l.reference[_]+l.reference[b]-y[b]-l.floating[_],A=y[b]-l.reference[b],C=await (null==d.getOffsetParent?void 0:d.getOffsetParent(h)),x=C?C[O]:0;x&&await (null==d.isElement?void 0:d.isElement(C))||(x=f.floating[O]||l.floating[_]);let D=I/2-A/2,R=x/2-E[_]/2-1,L=p(v[S],R),k=p(v[T],R),M=L,P=x-E[_]-k,N=x/2-E[_]/2+D,F=m(M,N,P),B=null!=r(s)&&N!=F&&l.reference[_]/2-(N<M?L:k)-E[_]/2<0?N<M?M-N:P-N:0;return{[b]:y[b]-B,data:{[b]:F,centerOffset:N-F+B}}}}),v=(["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function y(e){return e.replace(/left|right|bottom|top/g,e=>v[e])}function b(e,t,n){void 0===n&&(n=!1);let o=r(e),s=a(e),l=i(s),u="x"===s?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=y(u)),{main:u,cross:y(u)}}let _={start:"end",end:"start"};function E(e){return e.replace(/start|end/g,e=>_[e])}let w=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,a,s;let{placement:l,middlewareData:c,rects:d,initialPlacement:p,platform:h,elements:m}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:_,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:T=!0,...O}=u(e,t),I=o(l),A=o(p)===p,C=await (null==h.isRTL?void 0:h.isRTL(m.floating)),x=_||(A||!T?[y(p)]:function(e){let t=y(e);return[E(e),t,E(t)]}(p));_||"none"===S||x.push(...function(e,t,n,i){let a=r(e),s=function(e,t,n){let r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(o(e),"start"===n,i);return a&&(s=s.map(e=>e+"-"+a),t&&(s=s.concat(s.map(E)))),s}(p,T,S,C));let D=[p,...x],R=await f(t,O),L=[],k=(null==(n=c.flip)?void 0:n.overflows)||[];if(g&&L.push(R[I]),v){let{main:e,cross:t}=b(l,d,C);L.push(R[e],R[t])}if(k=[...k,{placement:l,overflows:L}],!L.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(a=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(w){case"bestFit":{let e=null==(s=k.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=p}if(l!==n)return{reset:{placement:n}}}return{}}}},S=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:i}=t,s=await async function(e,t){let{placement:n,platform:i,elements:s}=e,l=await (null==i.isRTL?void 0:i.isRTL(s.floating)),c=o(n),d=r(n),f="x"===a(n),p=["left","top"].includes(c)?-1:1,h=l&&f?-1:1,m=u(t,e),{mainAxis:g,crossAxis:v,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&"number"==typeof y&&(v="end"===d?-1*y:y),f?{x:v*h,y:g*p}:{x:g*p,y:v*h}}(t,e);return{x:n+s.x,y:i+s.y,data:s}}}};function T(e){return"x"===e?"y":"x"}let O=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=u(e,t),p={x:n,y:r},h=await f(t,d),g=a(o(i)),v=T(g),y=p[g],b=p[v];if(s){let e="y"===g?"bottom":"right";y=m(y+h["y"===g?"top":"left"],y,y-h[e])}if(l){let e="y"===v?"bottom":"right";b=m(b+h["y"===v?"top":"left"],b,b-h[e])}let _=c.fn({...t,[g]:y,[v]:b});return{..._,data:{x:_.x-n,y:_.y-r}}}}}},87245:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{_:function(){return r}})},76150:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)})}}n.d(t,{_:function(){return i}})},43830:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{_:function(){return r}})},52062:function(e,t,n){"use strict";function r(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)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{_:function(){return i}})},27412:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{_:function(){return r}})},41196:function(e,t,n){"use strict";function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{_:function(){return r}})},7409:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(27412);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){(0,r._)(e,t,n[t])})}return e}},99282:function(e,t,n){"use strict";function r(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 i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n.d(t,{_:function(){return i}})},98848:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function i(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{_:function(){return i}})},24460:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}function o(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{_:function(){return s}});var a=n(17501);function s(e,t){return r(e)||i(e,t)||(0,a._)(e,t)||o()}},55210:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var r=n(87245);function i(e){if(Array.isArray(e))return(0,r._)(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=n(17501);function l(e){return i(e)||o(e)||(0,s._)(e)||a()}},17501:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(87245);function i(e,t){if(e){if("string"==typeof e)return(0,r._)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r._)(e,t)}}},90568:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},86641:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)})}}n.d(t,{Z:function(){return i}})},84249:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},90443:function(e,t,n){"use strict";function r(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)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return i}})},84193:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}n.d(t,{Z:function(){return l}});var o=n(98546);function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){if(t&&("object"===(0,o.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return a(e)}function l(e){var t=i();return function(){var n,i=r(e);return n=t?Reflect.construct(i,arguments,r(this).constructor):i.apply(this,arguments),s(this,n)}}},94409:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},63003:function(e,t,n){"use strict";function r(){return(r=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}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},13243:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw 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&&r(e,t)}n.d(t,{Z:function(){return i}})},85376:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(94409);function i(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},59542:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function i(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return i}})},34484:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}n.d(t,{Z:function(){return s}});var o=n(17741);function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||(0,o.Z)(e,t)||a()}},48492:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},66601:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(90568);function i(e){if(Array.isArray(e))return(0,r.Z)(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n(17741);function s(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return i(e)||o(e)||(0,a.Z)(e)||s()}},98546: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.d(t,{Z:function(){return r}})},17741:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90568);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},68765:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(78427),i=n(84700),o=n(91709);async function a(e){let{url:t}=e,n=e.method||"POST",r=(0,i._j)(e.params),{formData:a,signal:u,timeout:c,responseType:d}=e,f=e.headers,p="",h=u,m=null;if(r.length>0&&("GET"===n||a?t+="?"+r:p=r),a&&(a instanceof FormData?p=a:a.getBuffer&&a.getHeaders?(p=a.getBuffer(),f={...f,...a.getHeaders()}):p=(0,i.D$)(a)),c>0){let e=new AbortController;h=e.signal,u&&u.addEventListener("abort",()=>e.abort()),m=setTimeout(()=>{e.abort(),m=null},c)}let g=null;try{let r=e.fetch||fetch,i=await r(t,{method:n,headers:f,body:p,signal:h});return{status:i.status,statusText:i.statusText,headers:s(i.headers),data:await l(i,d)}}catch(e){return Promise.reject(g=e instanceof Error?"AbortError"===e.name?u?.aborted?new o._L:new o.W5:e:Error("unknown"))}finally{m&&clearTimeout(m)}}function s(e){let t={};for(let[n,r]of e.entries())t[n]=r;return t}async function l(e,t){try{switch(t){case"json":return await e.json();case"arraybuffer":return await e.arrayBuffer();case"blob":return await e.blob();case"readablestream":return e.body;default:return await e.text()}}catch(e){return console.error(e),null}}var u=n(50995),c={xhr:r.S,fetch:a,iframe:u.i}},50995:function(e,t,n){"use strict";n.d(t,{R:function(){return o},i:function(){return c}});var r=n(84700),i=n(91709);function o(e){let t=new URL(e.url,location.href),n=e.filename,r=e.method||"GET",i=e.params?{...e.params}:{};for(let e of["api","method","version"])void 0===i[e]&&delete i[e];if(n&&(t.pathname+=t.pathname.endsWith("/")?"":"/",t.pathname+=encodeURIComponent(n)),"GET"===r)for(let[e,n]of Object.entries(i))t.searchParams.set(e,n);else if("POST"===r){let e=i.SynoToken;e&&(t.searchParams.set("SynoToken",e),delete i.SynoToken)}return{url:t,params:i}}function a(e,t){let n=e.method||"GET";var r=null;let{url:a,params:s}=o(e);var c=l("POST"===n?"about:blank":a.href);"POST"===n&&(r=u(a.href,s),c.contentDocument.body.appendChild(r));var d=null;function f(e,n){d&&(clearTimeout(d),d=null),t(e,n),setTimeout(function(){try{document.body.removeChild(c)}catch(e){}},100)}function p(e,t){if(!e)return null;try{if("json"===t)return JSON.parse(e);return e}catch(e){return console.error(e),null}}function h(){let t=c.contentDocument;if(!t)return f(Error("CORS error"));f(null,{status:0,statusText:"",headers:{},data:p(t.body.firstChild?.innerHTML,e.responseType)})}function m(){f(Error("iframe error"))}e.timeout&&(d=setTimeout(function(){f(new i.W5)},e.timeout)),c.addEventListener("load",h,{once:!0}),c.addEventListener("error",m,{once:!0}),r&&(r.submit(),r.parentNode.removeChild(r))}var s=0;function l(e){var t=document.createElement("iframe"),n="synowebapi-iframe-"+s++;return t.setAttribute("src",e),t.setAttribute("frameBorder","0"),t.setAttribute("id",n),t.setAttribute("name",n),t.setAttribute("style","border:0px none;width:0;height:0;position:absolute;top:-100000px"),document.body.appendChild(t),t}function u(e,t){var n=document.createElement("form");for(var i in n.name="dlform",n.method="POST",n.action=e,t)if((0,r.Fs)(t,i)){var o=document.createElement("input");o.type="hidden",o.name=i,o.value=t[i],n.appendChild(o)}return n}function c(e){return new Promise(function(t,n){a(e,(e,r)=>{e?n(e):t(r)})})}},79232:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});class r{get env(){return this.manager.env}get hooks(){return this.manager.hooks}requestWebAPI(e){return this.manager.requestWebAPI(e)}request(e){return this.manager.request(e)}auth(e){return this.manager.auth(e)}download(e){e.onError&&e.onError(Error("unsupported"))}encrypt(e,t){return this.manager.encrypt(e,t)}create(e){return new this.constructor(e)}extends(e){let t=this.create({...this.env.getConfig(),...e});for(let[e,n]of Object.entries(this.hooks))for(let r of n)t.hooks[e].use(r);return t}getURL(e){throw Error("unsupported")}}class i{constructor(e){void 0===e&&(e=Object.create(null));let{baseURL:t,synotoken:n,isSecure:r,legacyMode:i=!0,credential:o,requestAdapter:a,downloadAdapter:s}=e;this.baseURL=t||"",this.synoToken=n||"",this.forceSecure=r,this.legacyMode=i,this.credential=o||null,this.requestAdapter=a||null,this.downloadAdapter=s||null}getBaseURL(){return this.baseURL}setBaseURL(e){this.baseURL=e}getSynoToken(){return this.synoToken}setSynoToken(e){this.synoToken=e}_isSecure(){return this.getBaseURL().startsWith("https:")}isSecure(){let e=this.forceSecure;return"boolean"==typeof e?e:this._isSecure()}setLegacyMode(e){this.legacyMode=e}isLegacyMode(){return this.legacyMode}setCredential(e){this.credential=e}getCredential(){return this.credential}getRequestHeaders(){let e={};return this.synoToken&&(e["X-SYNO-TOKEN"]=this.synoToken),this.credential&&Object.assign(e,this.credential.GetRequestHeaders()),e}setRequestAdapter(e){this.requestAdapter=e}getRequestAdapter(){return this.requestAdapter}setDownloadAdapter(e){this.downloadAdapter=e}getDownloadAdapter(){return this.downloadAdapter}getConfig(){return{baseURL:this.baseURL,synotoken:this.synoToken,isSecure:this.forceSecure,legacyMode:this.legacyMode,credential:this.credential,requestAdapter:this.requestAdapter,downloadAdapter:this.downloadAdapter}}}class o{constructor(){this.handlers=[]}use(e){this.handlers.includes(e)||this.handlers.push(e)}eject(e){this.handlers=this.handlers.filter(t=>t!==e)}[Symbol.iterator](){return this.handlers[Symbol.iterator]()}}class a{constructor(){this.beforeRequest=new o}}var s=n(84700);function l(e){return null==e}var u=function(){var e,t,n=!0;function r(e,t,n){l(e)||("number"==typeof e?this.fromNumber(e,t,n):l(t)&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function i(){return new r(null)}function o(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i}function a(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],u=this[e++]>>15,c=s*l+u*a;i=((l=a*l+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*u+(i>>>30),n[r++]=1073741823&l}return i}function s(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],u=this[e++]>>14,c=s*l+u*a;i=((l=a*l+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*u,n[r++]=268435455&l}return i}var u=function(){var e="undefined"!=typeof navigator&&navigator.appName;return n&&"Microsoft Internet Explorer"===e?(r.prototype.am=a,u=30):n&&"Netscape"===e?(r.prototype.am=o,u=26):(r.prototype.am=s,u=28),u}();r.prototype.DB=u,r.prototype.DM=(1<<u)-1,r.prototype.DV=1<<u;var c=52;r.prototype.FV=Math.pow(2,c),r.prototype.F1=c-u,r.prototype.F2=2*u-c;var d="0123456789abcdefghijklmnopqrstuvwxyz",f=[];for(t=0,e=48;t<=9;++t)f[e++]=t;for(t=10,e=97;t<36;++t)f[e++]=t;for(t=10,e=65;t<36;++t)f[e++]=t;function p(e){return d.charAt(e)}function h(e,t){var n=f[e.charCodeAt(t)];return l(n)?-1:n}function m(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function g(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function v(e){var t=i();return t.fromInt(e),t}function y(e,t){if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else if(4==t)n=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var n,i=e.length,o=!1,a=0;--i>=0;){var s=8==n?255&e[i]:h(e,i);if(s<0){"-"==e.charAt(i)&&(o=!0);continue}o=!1,0===a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=n)>=this.DB&&(a-=this.DB)}8==n&&(128&e[0])!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&r.ZERO.subTo(this,this)}function b(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}function _(e){if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var t,n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=p(n));a>=0;)s<t?n=(this[a]&(1<<s)-1)<<t-s|this[--a]>>(s+=this.DB-t):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=p(n));return i?o:"0"}function E(){var e=i();return r.ZERO.subTo(this,e),e}function w(){return this.s<0?this.negate():this}function S(e){var t=this.s-e.s;if(0!==t)return t;var n=this.t;if(0!=(t=n-e.t))return t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0}function T(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function O(){return this.t<=0?0:this.DB*(this.t-1)+T(this[this.t-1]^this.s&this.DM)}function I(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function A(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function C(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()}function x(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}function D(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function R(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+n.t]=n.am(0,i[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)}function L(e){var t,n=this.abs();for(t=e.t=2*n.t;--t>=0;)e[t]=0;for(t=0;t<n.t-1;++t){var r=n.am(t,n[t],e,2*t,0,1);(e[t+n.t]+=n.am(t+1,2*n[t],e,2*t+1,r,n.t-t-1))>=n.DV&&(e[t+n.t]-=n.DV,e[t+n.t+1]=1)}e.t>0&&(e[e.t-1]+=n.am(t,n[t],e,2*t,0,1)),e.s=0,e.clamp()}function k(e,t,n){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t<o.t){l(t)||t.fromInt(0),l(n)||this.copyTo(n);return}l(n)&&(n=i());var s=i(),u=this.s,c=e.s,d=this.DB-T(o[o.t-1]);d>0?(o.lShiftTo(d,s),a.lShiftTo(d,n)):(o.copyTo(s),a.copyTo(n));var f=s.t,p=s[f-1];if(0!==p){var h=p*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),m=this.FV/h,g=(1<<this.F1)/h,v=1<<this.F2,y=n.t,b=y-f,_=l(t)?i():t;for(s.dlShiftTo(b,_),n.compareTo(_)>=0&&(n[n.t++]=1,n.subTo(_,n)),r.ONE.dlShiftTo(f,_),_.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--b>=0;){var E=n[--y]==p?this.DM:Math.floor(n[y]*m+(n[y-1]+v)*g);if((n[y]+=s.am(0,E,n,b,0,f))<E)for(s.dlShiftTo(b,_),n.subTo(_,n);n[y]<--E;)n.subTo(_,n)}l(t)||(n.drShiftTo(f,t),u!=c&&r.ZERO.subTo(t,t)),n.t=f,n.clamp(),d>0&&n.rShiftTo(d,n),u<0&&r.ZERO.subTo(n,n)}}}function M(e){var t=i();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(r.ZERO)>0&&e.subTo(t,t),t}function P(e){this.m=e}function N(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function F(e){return e}function B(e){e.divRemTo(this.m,null,e)}function U(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function H(e,t){e.squareTo(t),this.reduce(t)}function j(){if(this.t<1)return 0;var e=this[0];if((1&e)==0)return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t}function V(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function z(e){var t=i();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t}function Z(e){var t=i();return e.copyTo(t),this.reduce(t),t}function G(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function W(e,t){e.squareTo(t),this.reduce(t)}function q(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function Y(){return 0===(this.t>0?1&this[0]:this.s)}function $(e,t){if(e>4294967295||e<1)return r.ONE;var n=i(),o=i(),a=t.convert(this),s=T(e)-1;for(a.copyTo(n);--s>=0;)if(t.sqrTo(n,o),(e&1<<s)>0)t.mulTo(o,a,n);else{var l=n;n=o,o=l}return t.revert(n)}function K(e,t){var n;return n=e<256||t.isEven()?new P(t):new V(t),this.exp(e,n)}return P.prototype.convert=N,P.prototype.revert=F,P.prototype.reduce=B,P.prototype.mulTo=U,P.prototype.sqrTo=H,V.prototype.convert=z,V.prototype.revert=Z,V.prototype.reduce=G,V.prototype.mulTo=q,V.prototype.sqrTo=W,r.prototype.copyTo=m,r.prototype.fromInt=g,r.prototype.fromString=y,r.prototype.clamp=b,r.prototype.dlShiftTo=I,r.prototype.drShiftTo=A,r.prototype.lShiftTo=C,r.prototype.rShiftTo=x,r.prototype.subTo=D,r.prototype.multiplyTo=R,r.prototype.squareTo=L,r.prototype.divRemTo=k,r.prototype.invDigit=j,r.prototype.isEven=Y,r.prototype.exp=$,r.prototype.toString=_,r.prototype.negate=E,r.prototype.abs=w,r.prototype.compareTo=S,r.prototype.bitLength=O,r.prototype.mod=M,r.prototype.modPowInt=K,r.ZERO=v(0),r.ONE=v(1),r}(),c=function(){function e(){this.i=0,this.j=0,this.S=[]}function t(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(t=0,n=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0}function n(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]}function r(){return new e}e.prototype.init=t,e.prototype.next=n;var i,o,a,s,l=256;function u(e){o[a++]^=255&e,o[a++]^=e>>8&255,o[a++]^=e>>16&255,o[a++]^=e>>24&255,a>=l&&(a-=l)}function c(){u(new Date().getTime())}if(!o){for(o=[],a=0;a<l;)s=Math.floor(65536*Math.random()),o[a++]=s>>>8,o[a++]=255&s;a=0,c()}function d(){if(!i){for(c(),(i=r()).init(o),a=0;a<o.length;++a)o[a]=0;a=0}return i.next()}function f(e){var t;for(t=0;t<e.length;++t)e[t]=d()}function p(){}return p.prototype.nextBytes=f,p.rng_seed_time=c,p}();function d(e){return null==e}var f=function(){function e(e,t){return new u(e,t)}function t(e,t){if(t<e.length+11)return null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new c,a=[];t>2;){for(a[0]=0;0===a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new u(n)}function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function r(t,n){!d(t)&&!d(n)&&t.length>0&&n.length>0&&(this.n=e(t,16),this.e=parseInt(n,16))}function i(e){return e.modPowInt(this.e,this.n)}function o(e){var n=t(e,this.n.bitLength()+7>>3);if(d(n))return null;var r=this.doPublic(n);if(d(r))return null;var i=r.toString(16);return(1&i.length)==0?i:"0"+i}return n.prototype.doPublic=i,n.prototype.setPublic=r,n.prototype.encrypt=o,n}(),p=n(40452),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="=";function g(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=h.charAt(n>>6)+h.charAt(63&n);for(t+1===e.length?(n=parseInt(e.substring(t,t+1),16),r+=h.charAt(n<<2)):t+2===e.length&&(n=parseInt(e.substring(t,t+2),16),r+=h.charAt(n>>2)+h.charAt((3&n)<<4));(3&r.length)>0;)r+=m;return r}var v=function(){var e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#$%^&*()_+-/";return function(t){for(var n=[];t>0;)n.push(e.charAt(Math.floor(Math.random()*(e.length+1)))),t--;return n.join("")}}();function y(e,t){var n=t.cipherKey,r=t.publicKey,i=t.cipherToken,o=t.timeBias;if(!n||!r||!i)return e;var a=new f;a.setPublic(r,"10001");var l=v(501),u=a.encrypt(l);if(!u)return e;var c={};c[i]=Math.floor(Date.now()/1e3)+o,Object.assign(c,e);var d=p.encrypt((0,s._j)(c),l).toString();if(!d)return e;var h={};return h[n]={rsa:g(u),aes:d},h}var b=n(91709);function _(e){e.params?.compound&&(e.params.compound=e.params.compound.map(e=>_(e)));let{params:t,...n}=e;return{...n,...t}}class E{constructor(e,t){this.env=e,this.hooks=t}async requestWebAPI(e){let t=this.normalizeConfig(e);for(let e of this.hooks.beforeRequest){let n=await e(t);if(n)return n}let n=this.env.getCredential();if(n&&await n.WaitForReady(),(0,s.kJ)(e.encryption)&&!this.env.isSecure())try{await this.encryptParams(t,e.encryption)}catch{}try{return await this.doRequest(t)}catch(t){if(n&&O(t?.response))return await n.Resume(),this.requestWebAPI(e);return Promise.reject(t)}}encrypt(e,t){void 0===t&&(t={}),e=JSON.parse(JSON.stringify(e));let n={...t,params:e};return this.encryptParams(n,Object.keys(e)).then(()=>{let e=n.params;if("raw"!==t.requestFormat)for(let t in e)(0,s.Fs)(e,t)&&(e[t]=JSON.stringify(e[t]));return e})}createRequestConfig(e){var t;return(t="webapi"===e.requestFormat?Object.assign(S(e),w(e.params)):e.params)&&t.compound&&(t.compound=JSON.stringify(JSON.parse(t.compound).map(e=>_(e)))),{url:e.url||this.env.getBaseURL()+"webapi/entry.cgi/"+e.api,method:e.requestMethod,params:t,headers:this.getHeaders(e),responseType:I(e.responseFormat),options:e,timeout:e.timeout,signal:e.signal,formData:e.formData}}normalizeConfig(e){let t;var n=e.compound;if(n){var{params:r,stopwhenerror:i,mode:o,...a}=n;t={api:"SYNO.Entry.Request",method:"request",version:1,params:{stop_when_error:!0===i,mode:"parallel"===o?o:"sequential",compound:(r??[]).map(T),...a}}}else t=T(e);return{...t,headers:e.headers,url:e.url,requestFormat:e.requestFormat?e.requestFormat.toLowerCase():"webapi",requestMethod:e.requestMethod||"POST",responseFormat:e.responseFormat?e.responseFormat.toLowerCase():"webapi",timeout:e.timeout,signal:e.signal,formData:e.formData}}getAdapter(){return this.env.getRequestAdapter()}async doRequest(e){try{let t=this.getAdapter(),n=await t(this.createRequestConfig(e)),{data:r,status:i,statusText:o,headers:a}=n,l=this.validateResponse(n),u=r;l&&"webapi"===e.responseFormat&&(0,s.Kn)(r)&&(u=(l=r.success)?r.data:r.error);let c={config:e,status:i,statusText:o,headers:a,data:u};return l?c:Promise.reject((0,b.qw)(Error("request failed"),e,c))}catch(t){return Promise.reject((0,b.qw)(t,e))}}validateResponse(e){let{status:t,headers:n}=e;return 200===t&&"errorhash"!==n["x-request-error"]}encryptParams(e,t){if(!t||0===t.length)return Promise.resolve();let n=!1;function r(r,i,o){if(r.params){var a=Object.assign({},r.params),l={},u=!1;for(let n of t)if((0,s.Fs)(r.params,n)){var c=r.params[n];"raw"!==e.requestFormat&&(c=(0,s.kJ)(c)||(0,s.Kn)(c)||(0,s.HD)(c)?JSON.stringify(c):c),l[n]=c,delete a[n],u=!0}if(u){var d=y(l,i);d[i.cipherKey]||(n=!0),"raw"===e.requestFormat&&(d=w(d)),o&&(d=w(d)),r.params=Object.assign(a,d)}}}let i={api:"SYNO.API.Encryption",method:"getinfo",version:1},o=this.env.isLegacyMode();return this.doRequest(this.normalizeConfig({...o?{url:this.env.getBaseURL()+"webapi/encryption.cgi/SYNO.API.Encryption",params:{...i,format:"module"},requestFormat:"raw"}:{...i,params:{format:"module"}},headers:e.headers})).then(t=>{let{data:n}=t,i={cipherKey:n.cipherkey,publicKey:n.public_key,cipherToken:n.ciphertoken,timeBias:n.server_time-Math.floor(Date.now()/1e3)},o=e.params.compound;if(o)return new Promise(e=>{let t=0,n=5;!function a(){for(var s=Math.min(o.length,t+n);t<s;t++)r(o[t],i,!0);t<o.length?setTimeout(a,80):e()}()});r(e,i,!1)}).then(()=>n?Promise.reject():Promise.resolve())}getHeaders(e){return Object.assign(e.formData?{}:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},this.env.getRequestHeaders(),e.headers)}createAuthConfig(e){let t={api:"SYNO.API.Auth",version:e.version||6,method:e.method||"login"},n=Object.keys(e).filter(e=>-1===["callback","scope"].indexOf(e)).reduce((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t),{}),r=this.env.getBaseURL();if(this.env.isLegacyMode()){r+="webapi/auth.cgi";let t=e.enable_syno_token;t&&(r+="?enable_syno_token="+t)}else r+="webapi/entry.cgi/"+t.api;let{encryption:i=[]}=e;return"login"===t.method&&i.push("passwd"),{url:r,params:{...n,...t},requestFormat:"raw",encryption:i}}request(e){return this.requestWebAPI(e).then(e=>e.data,e=>Promise.reject(e?.response?e.response.data:e))}auth(e){return this.request(this.createAuthConfig(e))}}function w(e){var t={};for(var n in e)(0,s.Fs)(e,n)&&(t[n]=JSON.stringify(e[n]));return t}function S(e){return{api:e.api,method:e.method,version:e.version}}function T(e){var t=S(e);return e.params&&(t.params=e.params),t}function O(e){if(!e)return!1;if("errorhash"===e.headers["x-request-error"])return!0;let t=e.data;return(0,s.Kn)(t)&&119===t.code&&(0,s.Kn)(t.errors)&&"session hash invalid."===t.errors.reason}function I(e){switch(e){case"webapi":case"raw":return"json";default:return e}}var A=E,C=n(78427);class x extends A{getAdapter(){return super.getAdapter()||C.S}normalizeConfig(e){return{...super.normalizeConfig(e),onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress}}createRequestConfig(e){return{...super.createRequestConfig(e),onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress}}}var D=x,R=n(50995);class L extends A{constructor(e,t,n){super(e,t),this.xhrRelayTarget=n}request(e){super.request(e).then(t=>{e.onLoad?.call(e.scope,t)}).catch(t=>{t instanceof Error&&(0,b.q4)(t)||e.onError?.call(e.scope,t)})}getAdapter(){return this.env.getDownloadAdapter()||R.i}validateResponse(){return!0}createRequestConfig(e){var t=super.createRequestConfig(e);t.header=null,t.filename=e.filename;var n=this.env.getSynoToken();return n&&(t.params=Object.assign({},t.params,{SynoToken:n})),t}normalizeConfig(e){return{...super.normalizeConfig(e),filename:e.filename,requestMethod:e.requestMethod??"GET",timeout:e.timeout??12e4}}encryptParams(e,t){return this.xhrRelayTarget?this.xhrRelayTarget.encryptParams(e,t):super.encryptParams(e,t)}getURL(e){let{url:t}=(0,R.R)(this.createRequestConfig(this.normalizeConfig(e)));return t.toString()}}var k=L;class M extends i{_isSecure(){let e=this.getBaseURL();return(/^https?:\/\//.test(e)?e:location.protocol).startsWith("https:")}}class P extends r{constructor(e){void 0===e&&(e=Object.create(null)),super();let t=new M(e),n=new a;this.manager=new D(t,n),this.downloader=new k(t,n,this.manager)}download(e){this.downloader.request(e)}getURL(e){return this.downloader.getURL(e)}}var N=new P},25835:function(e,t,n){"use strict";var r=n(57477),i=n(79232),o=n(84513),a=n(68765);t.Z={...(0,r.U8)(i.Z),promises:o.Z,adapters:a.Z}},84513:function(e,t,n){"use strict";var r=n(57477),i=n(79232),o=n(68765);t.Z={...(0,r.QA)(i.Z),adapters:o.Z}},78427:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(84700),i=n(91709);function o(e,t){let n=e.url,o=e.method||"POST",a=(0,r._j)(e.params),s=!!e.formData,l="",u=e.signal,c=e.xhr||new XMLHttpRequest;function d(){c.abort()}function f(e,n){u&&u.removeEventListener("abort",d),t(e,n)}function p(){f(new i._L)}if(u&&u.aborted){p();return}if(a.length>0&&("GET"===o||s?n+="?"+a:l=a),s&&(l=e.formData instanceof FormData?e.formData:(0,r.D$)(e.formData)),"readablestream"===e.responseType)throw Error("readablestream is not supported in xhr");for(let t in c.responseType=e.responseType,c.open(o,n,!0),(0,r.hj)(e.timeout)&&(c.timeout=e.timeout),c.ontimeout=function(){f(new i.W5)},c.onload=function(){f(null,{status:c.status,statusText:c.statusText,headers:(0,r.nx)(c.getAllResponseHeaders()),data:c.response})},c.onerror=function(){f(Error("network error"))},c.onabort=p,e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),u&&u.addEventListener("abort",d),e.headers)c.setRequestHeader(t,e.headers[t]);c.send(l)}function a(e){return new Promise((t,n)=>{o(e,(e,r)=>{e?n(e):t(r)})})}},91709:function(e,t,n){"use strict";function r(e,t,n){return e.config=t,n&&(e.response=n),e}n.d(t,{W5:function(){return o},_L:function(){return l},q4:function(){return a},qw:function(){return r}});let i="TimeoutError";class o extends Error{constructor(){super("timeout"),this.name=i}}function a(e){return e.name===i}let s="AbortError";class l extends Error{constructor(){super("aborted"),this.name=s}}},84700:function(e,t,n){"use strict";function r(e){return"[object Object]"==Object.prototype.toString.call(e)}function i(e){return Array.isArray(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function l(e){let t=[];for(let n in e)o(e,n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}n.d(t,{D$:function(){return d},Fs:function(){return o},HD:function(){return a},Kn:function(){return r},_j:function(){return l},hj:function(){return s},kJ:function(){return i},nx:function(){return c}});let u=new Set(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);function c(e){let t={};return e.split("\n").forEach(e=>{let n=e.indexOf(":");if(n<0)return;let r=e.substr(0,n).trim(),i=e.substr(n+1).trim();if(r){if(t[r]){if(u.has(r))return;"set-cookie"===r?t["set-cookie"].push(i):t[r]+=", "+i}else"set-cookie"===r?t["set-cookie"]=[i]:t[r]=i}}),t}function d(e){let t=new FormData;for(let n in e)o(e,n)&&t.append(n,e[n]);return t}},57477:function(e,t,n){"use strict";function r(e){return{env:e.env,hooks:e.hooks}}function i(e,t){let n=t.callback||function(){},r=t.scope;e.then(e=>{n.call(r,!0,e)},e=>{n.call(r,!1,e)})}function o(e){return{...r(e),request(t){i(e.request(t),t)},auth(t,n,r){n&&(t={...t,callback:n,scope:r}),i(e.auth(t),t)},download(t){e.download(t)},encrypt(t,n,r,o){"function"==typeof n&&(o=r,r=n,n={}),i(e.encrypt(t,n),{callback:r,scope:o})},getURL:t=>e.getURL(t)}}function a(e){let t=r(e);return["request","auth","download","encrypt","requestWebAPI","getURL","extends"].forEach(n=>{t[n]=e[n].bind(e)}),t}function s(e){return{...a(e),create:function(){return a(e.create(...arguments))}}}function l(e){return{...o(e),create:function(){return o(e.create(...arguments))}}}n.d(t,{QA:function(){return s},U8:function(){return l}})},4034:function(e,t,n){"use strict";n.d(t,{ZP:function(){return S}});let r=-1,i=0,o=1,a=2,s=3,l=4,u=5,c=6,d=7,f=8,p="object"==typeof self?self:globalThis,h=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),h=m=>{if(e.has(m))return e.get(m);let[g,v]=t[m];switch(g){case i:case r:return n(v,m);case o:{let e=n([],m);for(let t of v)e.push(h(t));return e}case a:{let e=n({},m);for(let[t,n]of v)e[h(t)]=h(n);return e}case s:return n(new Date(v),m);case l:{let{source:e,flags:t}=v;return n(new RegExp(e,t),m)}case u:{let e=n(new Map,m);for(let[t,n]of v)e.set(h(t),h(n));return e}case c:{let e=n(new Set,m);for(let t of v)e.add(h(t));return e}case d:{let{name:e,message:t}=v;return n(new p[e](t),m)}case f:return n(BigInt(v),m);case"BigInt":return n(Object(BigInt(v)),m);case"ArrayBuffer":return n(new Uint8Array(v).buffer,v);case"DataView":{let{buffer:e}=new Uint8Array(v);return n(new DataView(e),v)}}return n(new p[g](v),m)};return h},m=e=>h(new Map,e)(0),g="",{toString:v}={},{keys:y}=Object,b=e=>{let t=typeof e;if("object"!==t||!e)return[i,t];let n=v.call(e).slice(8,-1);switch(n){case"Array":return[o,g];case"Object":return[a,g];case"Date":return[s,g];case"RegExp":return[l,g];case"Map":return[u,g];case"Set":return[c,g];case"DataView":return[o,n]}return n.includes("Array")?[o,n]:n.includes("Error")?[d,n]:[a,n]},_=([e,t])=>e===i&&("function"===t||"symbol"===t),E=(e,t,n,d)=>{let p=(e,t)=>{let r=d.push(e)-1;return n.set(t,r),r},h=d=>{if(n.has(d))return n.get(d);let[m,g]=b(d);switch(m){case i:{let t=d;switch(g){case"bigint":m=f,t=d.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+g);t=null;break;case"undefined":return p([r],d)}return p([m,t],d)}case o:{if(g){let e=d;return"DataView"===g?e=new Uint8Array(d.buffer):"ArrayBuffer"===g&&(e=new Uint8Array(d)),p([g,[...e]],d)}let e=[],t=p([m,e],d);for(let t of d)e.push(h(t));return t}case a:{if(g)switch(g){case"BigInt":return p([g,d.toString()],d);case"Boolean":case"Number":case"String":return p([g,d.valueOf()],d)}if(t&&"toJSON"in d)return h(d.toJSON());let n=[],r=p([m,n],d);for(let t of y(d))(e||!_(b(d[t])))&&n.push([h(t),h(d[t])]);return r}case s:return p([m,d.toISOString()],d);case l:{let{source:e,flags:t}=d;return p([m,{source:e,flags:t}],d)}case u:{let t=[],n=p([m,t],d);for(let[n,r]of d)(e||!(_(b(n))||_(b(r))))&&t.push([h(n),h(r)]);return n}case c:{let t=[],n=p([m,t],d);for(let n of d)(e||!_(b(n)))&&t.push(h(n));return n}}let{message:v}=d;return p([m,{name:g,message:v}],d)};return h},w=(e,{json:t,lossy:n}={})=>{let r=[];return E(!(t||n),!!t,new Map,r)(e),r};var S="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?m(w(e,t)):structuredClone(e):(e,t)=>m(w(e,t))},3958:function(e,t,n){"use strict";var r=n(52434).Z.Symbol;t.Z=r},65182:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(3958),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.Z?r.Z.toStringTag:void 0,l=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i},u=Object.prototype.toString,c=function(e){return u.call(e)},d="[object Null]",f="[object Undefined]",p=r.Z?r.Z.toStringTag:void 0,h=function(e){return null==e?void 0===e?f:d:p&&p in Object(e)?l(e):c(e)}},13926:function(e,t){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t.Z=n},53754:function(e,t,n){"use strict";var r=(0,n(14965).Z)(Object.getPrototypeOf,Object);t.Z=r},14965:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t.Z=n},52434:function(e,t,n){"use strict";var r=n(13926),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.Z||i||Function("return this")();t.Z=o},22902:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(58641),i=n(52434),o=function(){return i.Z.Date.now()},a=/\s/,s=function(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t},l=/^\s+/,u=function(e){return e?e.slice(0,s(e)+1).replace(l,""):e},c=n(2147),d=0/0,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt,g=function(e){if("number"==typeof e)return e;if((0,c.Z)(e))return d;if((0,r.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,r.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=u(e);var n=p.test(e);return n||h.test(e)?m(e.slice(2),n?2:8):f.test(e)?d:+e},v="Expected a function",y=Math.max,b=Math.min,_=function(e,t,n){var i,a,s,l,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw TypeError(v);function m(t){var n=i,r=a;return i=a=void 0,d=t,l=e.apply(r,n)}function _(e){return d=e,u=setTimeout(S,t),f?m(e):l}function E(e){var n=e-c,r=e-d,i=t-n;return p?b(i,s-r):i}function w(e){var n=e-c,r=e-d;return void 0===c||n>=t||n<0||p&&r>=s}function S(){var e=o();if(w(e))return T(e);u=setTimeout(S,E(e))}function T(e){return(u=void 0,h&&i)?m(e):(i=a=void 0,l)}function O(){void 0!==u&&clearTimeout(u),d=0,i=c=a=u=void 0}function I(){return void 0===u?l:T(o())}function A(){var e=o(),n=w(e);if(i=arguments,a=this,c=e,n){if(void 0===u)return _(c);if(p)return clearTimeout(u),u=setTimeout(S,t),m(c)}return void 0===u&&(u=setTimeout(S,t)),l}return t=g(t)||0,(0,r.Z)(n)&&(f=!!n.leading,s=(p="maxWait"in n)?y(g(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),A.cancel=O,A.flush=I,A}},58641:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.Z=n},75887:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.Z=n},66433:function(e,t,n){"use strict";var r=n(65182),i=n(53754),o=n(75887),a="[object Object]",s=Object.prototype,l=Function.prototype.toString,u=s.hasOwnProperty,c=l.call(Object);function d(e){if(!(0,o.Z)(e)||(0,r.Z)(e)!=a)return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}t.Z=d},2147:function(e,t,n){"use strict";var r=n(65182),i=n(75887),o="[object Symbol]";function a(e){return"symbol"==typeof e||(0,i.Z)(e)&&(0,r.Z)(e)==o}t.Z=a},38709:function(e,t,n){"use strict";var r=n(22902),i=n(58641),o="Expected a function";function a(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw TypeError(o);return(0,i.Z)(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),(0,r.Z)(e,t,{leading:a,maxWait:t,trailing:s})}t.Z=a},99410:function(e,t,n){"use strict";n.d(t,{x0:function(){return i}});let r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",i=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=r[63&n[e]];return t}},4390:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},17350:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},14046:function(e,t,n){"use strict";function r(){return(r=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}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},76906:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(17350);function i(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},91826:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function i(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return i}})},9889:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}n.d(t,{Z:function(){return s}});var o=n(76803);function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||(0,o.Z)(e,t)||a()}},62839: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.d(t,{Z:function(){return r}})},76803:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4390);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},43831:function(e,t,n){"use strict";n.d(t,{u:function(){return el}});var r=n(67294),i=n(90590),o=n(86871);function a(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){return a(e).getComputedStyle(e)}function l(e){return e instanceof a(e).Node}function u(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function c(e){return e instanceof a(e).HTMLElement}function d(e){return e instanceof a(e).Element}function f(e){return"undefined"!=typeof ShadowRoot&&(e instanceof a(e).ShadowRoot||e instanceof ShadowRoot)}function p(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=s(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function h(e){return["table","td","th"].includes(u(e))}function m(e){let t=g(),n=s(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function v(e){return["html","body","#document"].includes(u(e))}let y=Math.min,b=Math.max,_=Math.round,E=e=>({x:e,y:e});function w(e){let t=s(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=c(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=_(n)!==o||_(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function S(e){return d(e)?e:e.contextElement}function T(e){let t=S(e);if(!c(t))return E(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=w(t),a=(o?_(n.width):n.width)/r,s=(o?_(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let O=E(0);function I(e,t,n){var r,i;if(void 0===t&&(t=!0),!g())return O;let o=e?a(e):window;return!n||t&&n!==o?O:{x:(null==(r=o.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(i=o.visualViewport)?void 0:i.offsetTop)||0}}function A(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),s=S(e),l=E(1);t&&(r?d(r)&&(l=T(r)):l=T(e));let u=I(s,n,r),c=(i.left+u.x)/l.x,f=(i.top+u.y)/l.y,p=i.width/l.x,h=i.height/l.y;if(s){let e=a(s),t=r&&d(r)?a(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=T(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,p*=e.x,h*=e.y,c+=i,f+=o,n=a(n).frameElement}}return(0,o.JB)({width:p,height:h,x:c,y:f})}function C(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function D(e){return A(C(e)).left+x(e).scrollLeft}function R(e){if("html"===u(e))return e;let t=e.assignedSlot||e.parentNode||f(e)&&e.host||C(e);return f(t)?t.host:t}function L(e){let t=R(e);return v(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&p(t)?t:L(t)}function k(e,t){var n;void 0===t&&(t=[]);let r=L(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=a(r);return i?t.concat(o,o.visualViewport||[],p(r)?r:[]):t.concat(r,k(r))}function M(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=a(e),r=C(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;let e=g();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=C(e),n=x(e),r=e.ownerDocument.body,i=b(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=b(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+D(e),l=-n.scrollTop;return"rtl"===s(r).direction&&(a+=b(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(C(e));else if(d(t))r=function(e,t){let n=A(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=c(e)?T(e):E(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=I(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return(0,o.JB)(r)}function P(e,t){let n=R(e);return!(n===t||!d(n)||v(n))&&("fixed"===s(n).position||P(n,t))}function N(e,t){return c(e)&&"fixed"!==s(e).position?t?t(e):e.offsetParent:null}function F(e,t){let n=a(e);if(!c(e))return n;let r=N(e,t);for(;r&&h(r)&&"static"===s(r).position;)r=N(r,t);return r&&("html"===u(r)||"body"===u(r)&&"static"===s(r).position&&!m(r))?n:r||function(e){let t=R(e);for(;c(t)&&!v(t);){if(m(t))return t;t=R(t)}return null}(e)||n}function B(e,t,n){let r=c(t),i=C(t),o="fixed"===n,a=A(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=E(0);if(r||!r&&!o){if(("body"!==u(t)||p(i))&&(s=x(t)),c(t)){let e=A(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=D(i))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}let U={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=k(e).filter(e=>d(e)&&"body"!==u(e)),i=null,o="fixed"===s(e).position,a=o?R(e):e;for(;d(a)&&!v(a);){let t=s(a),n=m(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||p(a)&&!n&&P(e,a))?r=r.filter(e=>e!==a):i=t,a=R(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((e,n)=>{let r=M(t,n,i);return e.top=b(r.top,e.top),e.right=y(r.right,e.right),e.bottom=y(r.bottom,e.bottom),e.left=b(r.left,e.left),e},M(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=c(n),o=C(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=E(1),l=E(0);if((i||!i&&"fixed"!==r)&&(("body"!==u(n)||p(o))&&(a=x(n)),c(n))){let e=A(n);s=T(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:d,getDimensions:function(e){return w(e)},getOffsetParent:F,getDocumentElement:C,getScale:T,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||F,o=this.getDimensions;return{reference:B(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===s(e).direction},H=(e,t,n)=>{let r=new Map,i={platform:U,...n},a={...i.platform,_c:r};return(0,o.oo)(e,t,{...i,platform:a})},j="react-tooltip-core-styles",V="react-tooltip-base-styles";function z({css:e,id:t=V,type:n="base",ref:r}){var i,o;if("core"===n&&"undefined"!=typeof process&&(null===(i=null==process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||"core"!==n&&"undefined"!=typeof process&&(null===(o=null==process?void 0:process.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(t=j),r||(r={});let{insertAt:a}=r;if(!e||"undefined"==typeof document||document.getElementById(t))return;let s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css","top"===a&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}let Z=(e,t,n)=>{let r=null;return function(...i){let o=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(o,t)),n||(r&&clearTimeout(r),r=setTimeout(o,t))}},G="DEFAULT_TOOLTIP_ID",W={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},q=(0,r.createContext)({getTooltipData:()=>W});function Y(e=G){return(0,r.useContext)(q).getTooltipData(e)}let $="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,K=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{let n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},X=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(K(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Q=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:s=[(0,o.cv)(Number(i)),(0,o.RR)(),(0,o.uY)({padding:5})]})=>{if(!e||null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};let l=s;return n?(l.push((0,o.x7)({element:n,padding:5})),H(e,t,{placement:r,strategy:a,middleware:l}).then(({x:e,y:t,placement:n,middlewareData:r})=>{var i,o;let a={left:`${e}px`,top:`${t}px`},{x:s,y:l}=null!==(i=r.arrow)&&void 0!==i?i:{x:0,y:0};return{tooltipStyles:a,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=l?`${l}px`:"",right:"",bottom:"",[null!==(o=({top:"bottom",right:"left",bottom:"top",left:"right"})[n.split("-")[0]])&&void 0!==o?o:"bottom"]:"-4px"},place:n}})):H(e,t,{placement:"bottom",strategy:a,middleware:l}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n}))};var J="core-styles-module_tooltip__3vRRp",ee="core-styles-module_fixed__pcSol",et="core-styles-module_arrow__cvMwQ",en="core-styles-module_noArrow__xock6",er="core-styles-module_clickable__ZuTTB",ei="core-styles-module_show__Nt9eE",eo={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};let ea=({id:e,className:t,classNameArrow:n,variant:o="dark",anchorId:a,anchorSelect:s,place:l="top",offset:u=10,events:c=["hover"],openOnClick:d=!1,positionStrategy:f="absolute",middlewares:p,wrapper:h,delayShow:m=0,delayHide:g=0,float:v=!1,hidden:y=!1,noArrow:b=!1,clickable:_=!1,closeOnEsc:E=!1,closeOnScroll:w=!1,closeOnResize:S=!1,style:T,position:O,afterShow:I,afterHide:A,content:C,contentWrapperRef:x,isOpen:D,setIsOpen:R,activeAnchor:L,setActiveAnchor:k})=>{let M=(0,r.useRef)(null),P=(0,r.useRef)(null),N=(0,r.useRef)(null),F=(0,r.useRef)(null),[B,U]=(0,r.useState)(l),[H,j]=(0,r.useState)({}),[V,z]=(0,r.useState)({}),[G,W]=(0,r.useState)(!1),[q,K]=(0,r.useState)(!1),ea=(0,r.useRef)(!1),es=(0,r.useRef)(null),{anchorRefs:el,setActiveAnchor:eu}=Y(e),ec=(0,r.useRef)(!1),[ed,ef]=(0,r.useState)([]),ep=(0,r.useRef)(!1),eh=d||c.includes("click");$(()=>(ep.current=!0,()=>{ep.current=!1}),[]),(0,r.useEffect)(()=>{if(!G){let e=setTimeout(()=>{K(!1)},150);return()=>{clearTimeout(e)}}return()=>null},[G]);let em=e=>{ep.current&&(e&&K(!0),setTimeout(()=>{ep.current&&(null==R||R(e),void 0===D&&W(e))},10))};(0,r.useEffect)(()=>{if(void 0===D)return()=>null;D&&K(!0);let e=setTimeout(()=>{W(D)},10);return()=>{clearTimeout(e)}},[D]),(0,r.useEffect)(()=>{G!==ea.current&&(ea.current=G,G?null==I||I():null==A||A())},[G]);let eg=(e=g)=>{F.current&&clearTimeout(F.current),F.current=setTimeout(()=>{ec.current||em(!1)},e)},ev=e=>{var t;if(!e)return;let n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return k(null),void eu({current:null});m?(N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{em(!0)},m)):em(!0),k(n),eu({current:n}),F.current&&clearTimeout(F.current)},ey=()=>{_?eg(g||100):g?eg():em(!1),N.current&&clearTimeout(N.current)},eb=({x:e,y:t})=>{Q({place:l,offset:u,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:M.current,tooltipArrowReference:P.current,strategy:f,middlewares:p}).then(e=>{Object.keys(e.tooltipStyles).length&&j(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&z(e.tooltipArrowStyles),U(e.place)})},e_=e=>{if(!e)return;let t=e,n={x:t.clientX,y:t.clientY};eb(n),es.current=n},eE=e=>{ev(e),g&&eg()},ew=e=>{var t;[document.querySelector(`[id='${a}']`),...ed].some(t=>null==t?void 0:t.contains(e.target))||(null===(t=M.current)||void 0===t?void 0:t.contains(e.target))||(em(!1),N.current&&clearTimeout(N.current))},eS=Z(ev,50,!0),eT=Z(ey,50,!0);(0,r.useEffect)(()=>{var e,t;let n=new Set(el);ed.forEach(e=>{n.add({current:e})});let r=document.querySelector(`[id='${a}']`);r&&n.add({current:r});let i=()=>{em(!1)},o=X(L),s=X(M.current);w&&(window.addEventListener("scroll",i),null==o||o.addEventListener("scroll",i),null==s||s.addEventListener("scroll",i)),S&&window.addEventListener("resize",i);let l=e=>{"Escape"===e.key&&em(!1)};E&&window.addEventListener("keydown",l);let u=[];eh?(window.addEventListener("click",ew),u.push({event:"click",listener:eE})):(u.push({event:"mouseenter",listener:eS},{event:"mouseleave",listener:eT},{event:"focus",listener:eS},{event:"blur",listener:eT}),v&&u.push({event:"mousemove",listener:e_}));let c=()=>{ec.current=!0},d=()=>{ec.current=!1,ey()};return _&&!eh&&(null===(e=M.current)||void 0===e||e.addEventListener("mouseenter",c),null===(t=M.current)||void 0===t||t.addEventListener("mouseleave",d)),u.forEach(({event:e,listener:t})=>{n.forEach(n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)})}),()=>{var e,t;w&&(window.removeEventListener("scroll",i),null==o||o.removeEventListener("scroll",i),null==s||s.removeEventListener("scroll",i)),S&&window.removeEventListener("resize",i),eh&&window.removeEventListener("click",ew),E&&window.removeEventListener("keydown",l),_&&!eh&&(null===(e=M.current)||void 0===e||e.removeEventListener("mouseenter",c),null===(t=M.current)||void 0===t||t.removeEventListener("mouseleave",d)),u.forEach(({event:e,listener:t})=>{n.forEach(n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)})})}},[q,el,ed,E,c]),(0,r.useEffect)(()=>{let t=null!=s?s:"";!t&&e&&(t=`[data-tooltip-id='${e}']`);let n=new MutationObserver(n=>{let r=[];n.forEach(n=>{if("attributes"===n.type&&"data-tooltip-id"===n.attributeName&&n.target.getAttribute("data-tooltip-id")===e&&r.push(n.target),"childList"===n.type&&(L&&[...n.removedNodes].some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,L))&&(K(!1),em(!1),k(null),N.current&&clearTimeout(N.current),F.current&&clearTimeout(F.current),!0)}),t))try{let e=[...n.addedNodes].filter(e=>1===e.nodeType);r.push(...e.filter(e=>e.matches(t))),r.push(...e.flatMap(e=>[...e.querySelectorAll(t)]))}catch(e){}}),r.length&&ef(e=>[...e,...r])});return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{n.disconnect()}},[e,s,L]);let eO=()=>{O?eb(O):v?es.current&&eb(es.current):Q({place:l,offset:u,elementReference:L,tooltipReference:M.current,tooltipArrowReference:P.current,strategy:f,middlewares:p}).then(e=>{ep.current&&(Object.keys(e.tooltipStyles).length&&j(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&z(e.tooltipArrowStyles),U(e.place))})};(0,r.useEffect)(()=>{eO()},[G,L,C,T,l,u,f,O]),(0,r.useEffect)(()=>{if(!(null==x?void 0:x.current))return()=>null;let e=new ResizeObserver(()=>{eO()});return e.observe(x.current),()=>{e.disconnect()}},[C,null==x?void 0:x.current]),(0,r.useEffect)(()=>{var e;let t=document.querySelector(`[id='${a}']`),n=[...ed,t];L&&n.includes(L)||k(null!==(e=ed[0])&&void 0!==e?e:t)},[a,ed,L]),(0,r.useEffect)(()=>()=>{N.current&&clearTimeout(N.current),F.current&&clearTimeout(F.current)},[]),(0,r.useEffect)(()=>{let t=s;if(!t&&e&&(t=`[data-tooltip-id='${e}']`),t)try{let e=Array.from(document.querySelectorAll(t));ef(e)}catch(e){ef([])}},[e,s]);let eI=!y&&C&&G&&Object.keys(H).length>0;return q?r.createElement(h,{id:e,role:"tooltip",className:i("react-tooltip",J,eo.tooltip,eo[o],t,`react-tooltip__place-${B}`,{[ei]:eI,[ee]:"fixed"===f,[er]:_}),style:{...T,...H},ref:M},C,r.createElement(h,{className:i("react-tooltip-arrow",et,eo.arrow,n,{[en]:b}),style:V,ref:P})):null},es=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),el=({id:e,anchorId:t,anchorSelect:n,content:i,html:o,render:a,className:s,classNameArrow:l,variant:u="dark",place:c="top",offset:d=10,wrapper:f="div",children:p=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:g="absolute",middlewares:v,delayShow:y=0,delayHide:b=0,float:_=!1,hidden:E=!1,noArrow:w=!1,clickable:S=!1,closeOnEsc:T=!1,closeOnScroll:O=!1,closeOnResize:I=!1,style:A,position:C,isOpen:x,setIsOpen:D,afterShow:R,afterHide:L})=>{let[k,M]=(0,r.useState)(i),[P,N]=(0,r.useState)(o),[F,B]=(0,r.useState)(c),[U,H]=(0,r.useState)(u),[j,V]=(0,r.useState)(d),[z,Z]=(0,r.useState)(y),[G,W]=(0,r.useState)(b),[q,$]=(0,r.useState)(_),[K,X]=(0,r.useState)(E),[Q,J]=(0,r.useState)(f),[ee,et]=(0,r.useState)(h),[en,er]=(0,r.useState)(g),[ei,eo]=(0,r.useState)(null),{anchorRefs:el,activeAnchor:eu}=Y(e),ec=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t},{}),ed=e=>{let t={place:e=>{var t;B(null!==(t=e)&&void 0!==t?t:c)},content:e=>{M(null!=e?e:i)},html:e=>{N(null!=e?e:o)},variant:e=>{var t;H(null!==(t=e)&&void 0!==t?t:u)},offset:e=>{V(null===e?d:Number(e))},wrapper:e=>{var t;J(null!==(t=e)&&void 0!==t?t:f)},events:e=>{let t=null==e?void 0:e.split(" ");et(null!=t?t:h)},"position-strategy":e=>{var t;er(null!==(t=e)&&void 0!==t?t:g)},"delay-show":e=>{Z(null===e?y:Number(e))},"delay-hide":e=>{W(null===e?b:Number(e))},float:e=>{$(null===e?_:"true"===e)},hidden:e=>{X(null===e?E:"true"===e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)})};(0,r.useEffect)(()=>{M(i)},[i]),(0,r.useEffect)(()=>{N(o)},[o]),(0,r.useEffect)(()=>{B(c)},[c]),(0,r.useEffect)(()=>{H(u)},[u]),(0,r.useEffect)(()=>{V(d)},[d]),(0,r.useEffect)(()=>{Z(y)},[y]),(0,r.useEffect)(()=>{W(b)},[b]),(0,r.useEffect)(()=>{$(_)},[_]),(0,r.useEffect)(()=>{X(E)},[E]),(0,r.useEffect)(()=>{er(g)},[g]),(0,r.useEffect)(()=>{var r;let i=new Set(el),o=n;if(!o&&e&&(o=`[data-tooltip-id='${e}']`),o)try{document.querySelectorAll(o).forEach(e=>{i.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}let a=document.querySelector(`[id='${t}']`);if(a&&i.add({current:a}),!i.size)return()=>null;let s=null!==(r=null!=ei?ei:a)&&void 0!==r?r:eu.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;s&&"attributes"===e.type&&(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-"))&&ed(ec(s))})}),u={attributes:!0,childList:!1,subtree:!1};return s&&(ed(ec(s)),l.observe(s,u)),()=>{l.disconnect()}},[el,eu,ei,t,n]);let ef=p,ep=(0,r.useRef)(null);if(a){let e=a({content:null!=k?k:null,activeAnchor:ei});ef=e?r.createElement("div",{ref:ep,className:"react-tooltip-content-wrapper"},e):null}else k&&(ef=k);P&&(ef=r.createElement(es,{content:P}));let eh={id:e,anchorId:t,anchorSelect:n,className:s,classNameArrow:l,content:ef,contentWrapperRef:ep,place:F,variant:U,offset:j,wrapper:Q,events:ee,openOnClick:m,positionStrategy:en,middlewares:v,delayShow:z,delayHide:G,float:q,hidden:K,noArrow:w,clickable:S,closeOnEsc:T,closeOnScroll:O,closeOnResize:I,style:A,position:C,isOpen:x,setIsOpen:D,afterShow:R,afterHide:L,activeAnchor:ei,setActiveAnchor:e=>eo(e)};return r.createElement(ea,{...eh})};z({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),z({css:`
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`})},28395:function(e,t,n){"use strict";function r(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}n.d(t,{Jh:function(){return r}})}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var i=Object.create(null);__webpack_require__.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(function(e){o[e]=function(){return n[e]}});return o.default=function(){return n},__webpack_require__.d(i,o),i}}(),function(){__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(t,n){return __webpack_require__.f[n](e,t),t},[]))}}(),function(){__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e}}(),function(){__webpack_require__.u=function(e){return""+e+".external_shared_album_bundle.js"}}(),function(){__webpack_require__.miniCssF=function(e){return""+e+".css"}}(),function(){__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="FotoExternalSharedAlbumReactLibrary:";__webpack_require__.l=function(n,r,i,o){if(e[n]){e[n].push(r);return}if(void 0!==i)for(var a,s,l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==n||c.getAttribute("data-webpack")==t+i){a=c;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[r];var d=function(t,r){a.onerror=a.onload=null,clearTimeout(f);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach(function(e){return e(r)}),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)}}(),function(){__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e}(),function(){var e={909:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r){if(r)n.push(r[2]);else{var i=new Promise(function(n,i){r=e[t]=[n,i]});n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=Error(),s=function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}};__webpack_require__.l(o,s,"chunk-"+t,t)}}};var t=function(t,n){var r,i,o=n[0],a=n[1],s=n[2],l=0;if(o.some(function(t){return 0!==e[t]})){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);s&&s(__webpack_require__)}for(t&&t(n);l<o.length;l++)i=o[l],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkFotoExternalSharedAlbumReactLibrary=self.webpackChunkFotoExternalSharedAlbumReactLibrary||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __webpack_exports__={};!function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{renderToId:function(){return mP}});var e,t,n,r,i,o,a=__webpack_require__(28395);__webpack_require__(61898);var s=__webpack_require__(73935),l=function(e){return"@@redux-saga/"+e},u=l("CANCEL_PROMISE"),c=l("CHANNEL_END"),d=l("IO"),f=l("MATCH"),p=l("MULTICAST"),h=l("SAGA_ACTION"),m=l("SELF_CANCELLATION"),g=l("TASK"),v=l("TASK_CANCEL"),y=l("TERMINATE"),b=l("LOCATION"),_=function(e){return null==e},E=function(e){return null!=e},w=function(e){return"function"==typeof e},S=function(e){return"string"==typeof e},T=Array.isArray,O=function(e){return e&&w(e.then)},I=function(e){return e&&w(e.next)&&w(e.throw)},A=function e(t){return t&&(S(t)||D(t)||w(t)||T(t)&&t.every(e))},C=function(e){return e&&w(e.take)&&w(e.close)},x=function(e){return w(e)&&e.hasOwnProperty("toString")},D=function(e){return!!e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},R=function(e){return C(e)&&e[p]};function L(){return(L=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}).apply(this,arguments)}var k=function(e,t){void 0===t&&(t=!0);var n,r=new Promise(function(r){n=setTimeout(r,e,t)});return r[u]=function(){clearTimeout(n)},r},M=function(e){return function(){return e}}(!0),P=function(){},N=function(e){return e},F=function(e,t){L(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(function(n){e[n]=t[n]})},B=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function U(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function H(e){var t=!1;return function(){t||(t=!0,e())}}var j=function(e){throw e},V=function(e){return{value:e,done:!0}};function z(e,t,n){void 0===t&&(t=j),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:V,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Z(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var G=function(e){return Array.apply(null,Array(e))},W=function(e){return function(t){return e(Object.defineProperty(t,h,{value:!0}))}},q=function(e){return e===y},Y=function(e){return e===v},$=function(e){return q(e)||Y(e)};function K(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=T(e)?G(i):{},s={};function l(){o===i&&(n=!0,t(a))}return r.forEach(function(e){var r=function(r,i){n||(i||$(r)?(t.cancel(),t(r,i)):(a[e]=r,o++,l()))};r.cancel=P,s[e]=r}),t.cancel=function(){n||(n=!0,r.forEach(function(e){return s[e].cancel()}))},s}function X(e){return{name:e.name||"anonymous",location:Q(e)}}function Q(e){return e[b]}var J="Channel's Buffer overflow!",ee=1,et=3,en=4;function er(e,t){void 0===e&&(e=10);var n=Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){if(r<e)a(s);else{var u;switch(t){case ee:throw Error(J);case et:n[i]=s,o=i=(i+1)%e;break;case en:u=2*e,r=(n=l()).length,i=n.length,o=0,n.length=u,e=u,a(s)}}},take:s,flush:l}}var ei=function(e){return er(e,en)},eo="TAKE",ea="PUT",es="ALL",el="RACE",eu="CALL",ec="CPS",ed="FORK",ef="JOIN",ep="CANCEL",eh="SELECT",em="ACTION_CHANNEL",eg="CANCELLED",ev="FLUSH",ey="GET_CONTEXT",eb="SET_CONTEXT",e_=function(e,t){var n;return(n={})[d]=!0,n.combinator=!1,n.type=e,n.payload=t,n},eE=function(e){return e_(ed,L({},e.payload,{detached:!0}))};function ew(e,t){return(void 0===e&&(e="*"),A(e))?e_(eo,{pattern:e}):R(e)&&E(t)&&A(t)?e_(eo,{channel:e,pattern:t}):C(e)?e_(eo,{channel:e}):void 0}function eS(e,t){return _(t)&&(t=e,e=void 0),e_(ea,{channel:e,action:t})}function eT(e){var t=e_(es,e);return t.combinator=!0,t}function eO(e,t){var n,r=null;return w(e)?n=e:(T(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&S(n)&&w(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function eI(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e_(eu,eO(e,n))}function eA(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e_(ed,eO(e,n))}function eC(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return eE(eA.apply(void 0,[e].concat(n)))}function ex(e){return void 0===e&&(e=m),e_(ep,e)}function eD(e){void 0===e&&(e=N);for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e_(eh,{selector:e,args:n})}var eR=eI.bind(null,k),eL=function(e){return{done:!0,value:e}},ek={};function eM(e){return C(e)?"channel":x(e)?String(e):w(e)?e.name:String(e)}function eP(e,t,n){var r,i,o,a=t;function s(t,n){if(a===ek)return eL(t);if(n&&!i)throw a=ek,n;r&&r(t);var s=n?e[i](n):e[a]();return a=s.nextState,o=s.effect,r=s.stateUpdater,i=s.errorState,a===ek?eL(t):o}return z(s,function(e){return s(null,e)},n)}function eN(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a={done:!1,value:ew(e)},s=function(e){return{done:!1,value:eA.apply(void 0,[t].concat(r,[e]))}},l=function(e){return o=e};return eP({q1:function(){return{nextState:"q2",effect:a,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:s(o)}}},"q1","takeEvery("+eM(e)+", "+t.name+")")}function eF(e,t){for(var n,r,i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];var s={done:!1,value:ew(e)},l=function(e){return{done:!1,value:eA.apply(void 0,[t].concat(o,[e]))}},u=function(e){return{done:!1,value:ex(e)}},c=function(e){return n=e},d=function(e){return r=e};return eP({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return n?{nextState:"q3",effect:u(n)}:{nextState:"q1",effect:l(r),stateUpdater:c}},q3:function(){return{nextState:"q1",effect:l(r),stateUpdater:c}}},"q1","takeLatest("+eM(e)+", "+t.name+")")}function eB(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return eA.apply(void 0,[eN,e,t].concat(r))}function eU(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return eA.apply(void 0,[eF,e,t].concat(r))}var eH=__webpack_require__(72739),ej=__webpack_require__(96904),eV=__webpack_require__(72938),ez=__webpack_require__(10694),eZ=__webpack_require__(95682),eG=__webpack_require__(55210),eW=__webpack_require__(35369);function eq(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}__webpack_require__(16235);var eY=function(){return Math.random().toString(36).substring(7).split("").join(".")},e$={INIT:"@@redux/INIT"+eY(),REPLACE:"@@redux/REPLACE"+eY(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+eY()}};function eK(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function eX(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error("Expected the enhancer to be a function.");return n(eX)(e,t)}if("function"!=typeof e)throw Error("Expected the reducer to be a function.");var r,i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw Error("Expected the listener to be a function.");if(l)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return u(),s.push(e),function(){if(t){if(l)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!eK(e))throw Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw Error("Reducers may not dispatch actions.");try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}function p(e){if("function"!=typeof e)throw Error("Expected the nextReducer to be a function.");i=e,f({type:e$.REPLACE})}function h(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[$$observable]=function(){return this},e}return f({type:e$.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:p})[$$observable]=h,r}function eQ(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var eJ=function(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e},e0=[],e1=0;function e2(e){try{e5(),e()}finally{e6()}}function e4(e){e0.push(e),e1||(e5(),e9())}function e3(e){try{return e5(),e()}finally{e9()}}function e5(){e1++}function e6(){e1--}function e9(){var e;for(e6();!e1&&void 0!==(e=e0.shift());)e2(e)}var e8=function(e){return function(t){return e.some(function(e){return tr(e)(t)})}},e7=function(e){return function(t){return e(t)}},te=function(e){return function(t){return t.type===String(e)}},tt=function(e){return function(t){return t.type===e}},tn=function(){return M};function tr(e){var t="*"===e?tn:S(e)?te:T(e)?e8:x(e)?te:w(e)?e7:D(e)?tt:null;if(null===t)throw Error("invalid pattern: "+e);return t(e)}var ti={type:c},to=function(e){return e&&e.type===c};function ta(e){void 0===e&&(e=ei());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(ti):e.isEmpty()?(n.push(r),r.cancel=function(){U(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){if(t&&e.isEmpty()){n(ti);return}n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++)(0,e[r])(ti)}}}}function ts(){var e,t=!1,n=[],r=n,i=function(){r===n&&(r=n.slice())},o=function(){t=!0;var e=n=r;r=[],e.forEach(function(e){e(ti)})};return(e={})[p]=!0,e.put=function(e){if(!t){if(to(e)){o();return}for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[f](e)&&(l.cancel(),l(e))}}},e.take=function(e,n){if(void 0===n&&(n=tn),t){e(ti);return}e[f]=n,i(),r.push(e),e.cancel=H(function(){i(),U(r,e)})},e.close=o,e}function tl(){var e=ts(),t=e.put;return e.put=function(e){if(e[h]){t(e);return}e4(function(){t(e)})},e}var tu=0,tc=1,td=2,tf=3;function tp(e,t){var n=e[u];w(n)&&(t.cancel=n),e.then(t,function(e){t(e,!0)})}var th=0,tm=function(){return++th};function tg(e,t){return e.isSagaIterator?{name:e.meta.name}:X(t)}function tv(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(I(i))return i;var o=!1,a=function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!O(i)})};return z(a)}catch(e){return z(function(){throw e})}}function ty(e,t,n){var r=t.channel,i=t.action,o=t.resolve;e4(function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){n(e,!0);return}o&&O(t)?tp(t,n):n(t)})}function tb(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,o=t.pattern,a=t.maybe,s=function(e){if(e instanceof Error){n(e,!0);return}if(to(e)&&!a){n(y);return}n(e)};try{i.take(s,E(o)?tr(o):null)}catch(e){n(e,!0);return}n.cancel=s.cancel}function t_(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=r.task;try{var l=o.apply(i,a);if(O(l)){tp(l,n);return}if(I(l)){tq(e,l,s.context,th,X(o),!1,n);return}n(l)}catch(e){n(e,!0)}}function tE(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){_(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}}function tw(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=t.detached,l=r.task,u=tv({context:i,fn:o,args:a}),c=tg(u,o);e3(function(){var t=tq(e,u,l.context,th,c,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)})}function tS(e,t,n,r){var i=r.task,o=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&U(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(T(t)){if(0===t.length){n([]);return}var a=K(t,n);t.forEach(function(e,t){o(e,a[t])})}else o(t,n)}function tT(e){e.isRunning()&&e.cancel()}function tO(e,t,n,r){var i=r.task;t===m?tT(i):T(t)?t.forEach(tT):tT(t),n()}function tI(e,t,n,r){var i=r.digestEffect,o=th,a=Object.keys(t);if(0===a.length){n(T(t)?[]:{});return}var s=K(t,n);a.forEach(function(e){i(t[e],o,s[e],e)})}function tA(e,t,n,r){var i=r.digestEffect,o=th,a=Object.keys(t),s=T(t)?G(a.length):{},l={},u=!1;a.forEach(function(e){var t=function(t,r){u||(r||$(t)?(n.cancel(),n(t,r)):(n.cancel(),u=!0,s[e]=t,n(s)))};t.cancel=P,l[e]=t}),n.cancel=function(){u||(u=!0,a.forEach(function(e){return l[e].cancel()}))},a.forEach(function(e){u||i(t[e],o,l[e],e)})}function tC(e,t,n){var r=t.selector,i=t.args;try{var o=r.apply(void 0,[e.getState()].concat(i));n(o)}catch(e){n(e,!0)}}function tx(e,t,n){var r=t.pattern,i=ta(t.buffer),o=tr(r),a=function t(n){to(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)}function tD(e,t,n,r){n(r.task.isCancelled())}function tR(e,t,n){t.flush(n)}function tL(e,t,n,r){n(r.task.context[t])}function tk(e,t,n,r){F(r.task.context,t),n()}var tM=((e={})[eo]=tb,e[ea]=ty,e[es]=tI,e[el]=tA,e[eu]=t_,e[ec]=tE,e[ed]=tw,e[ef]=tS,e[ep]=tO,e[eh]=tC,e[em]=tx,e[eg]=tD,e[ev]=tR,e[ey]=tL,e[eb]=tk,e);function tP(e,t,n){var r,i=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){!o&&(U(i,t),t.cont=P,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach(function(e){e.cont=P,e.cancel()}),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}function tN(e,t){return e+"?"+t}function tF(e){var t=Q(e);return t?t.code+"  "+tN(t.fileName,t.lineNumber):""}function tB(e){var t=e.name,n=e.location;return n?t+"  "+tN(n.fileName,n.lineNumber):t}function tU(e){var t=B(function(e){return e.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var tH=null,tj=[],tV=function(e){e.crashedEffect=tH,tj.push(e)},tz=function(){tH=null,tj.length=0},tZ=function(e){tH=e},tG=function(){var e=tj[0],t=tj.slice(1),n=e.crashedEffect?tF(e.crashedEffect):null;return["The above error occurred in task "+tB(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map(function(e){return"    created by "+tB(e.meta)}),[tU(tj)]).join("\n")};function tW(e,t,n,r,i,o,a){void 0===a&&(a=P);var s,l,u,c=tu,d=null,f=[],p=Object.create(n),h=tP(t,function(){f.push.apply(f,h.getTasks().map(function(e){return e.meta.name}))},y);function m(){c===tu&&(c=tc,h.cancelAll(),y(v,!1))}function y(t,n){if(n){if(c=td,tV({meta:i,cancelledTasks:f}),E.isRoot){var r=tG();tz(),e.onError(t,{sagaStack:r})}u=t,d&&d.reject(t)}else t===v?c=tc:c!==tc&&(c=tf),l=t,d&&d.resolve(t);E.cont(t,n),E.joiners.forEach(function(e){e.cb(t,n)}),E.joiners=null}function b(e){F(p,e)}function _(){return d||(d=eJ(),c===td?d.reject(u):c!==tu&&d.resolve(l)),d.promise}var E=((s={})[g]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=m,s.cont=a,s.end=y,s.setContext=b,s.toPromise=_,s.isRunning=function(){return c===tu},s.isCancelled=function(){return c===tc||c===tu&&t.status===tc},s.isAborted=function(){return c===td},s.result=function(){return l},s.error=function(){return u},s);return E}function tq(e,t,n,r,i,o,a){var s=e.finalizeRunEffect(h);p.cancel=P;var l={meta:i,cancel:f,status:tu},u=tW(e,l,n,r,i,o,a),c={task:u,digestEffect:m};function f(){l.status===tu&&(l.status=tc,p(v))}return a&&(a.cancel=u.cancel),p(),u;function p(e,n){try{var i;n?(i=t.throw(e),tz()):Y(e)?(l.status=tc,p.cancel(),i=w(t.return)?t.return(v):{done:!0,value:v}):i=q(e)?w(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==tc&&(l.status=tf),l.cont(i.value)):m(i.value,r,p)}catch(e){if(l.status===tc)throw e;l.status=td,l.cont(e,!0)}}function h(t,n,r){O(t)?tp(t,r):I(t)?tq(e,t,u.context,n,i,!1,r):t&&t[d]?(0,tM[t.type])(e,t.payload,r,c):r(t)}function m(t,n,r,i){void 0===i&&(i="");var o,a=tm();function l(n,i){o||(o=!0,r.cancel=P,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&tZ(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=P,r.cancel=function(){!o&&(o=!0,l.cancel(),l.cancel=P,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function tY(e,t){for(var n,r=e.channel,i=void 0===r?tl():r,o=e.dispatch,a=e.getState,s=e.context,l=void 0===s?{}:s,u=e.sagaMonitor,c=e.effectMiddlewares,d=e.onError,f=void 0===d?Z:d,p=arguments.length,h=Array(p>2?p-2:0),m=2;m<p;m++)h[m-2]=arguments[m];var g=t.apply(void 0,h),v=tm();if(u&&(u.rootSagaStarted=u.rootSagaStarted||P,u.effectTriggered=u.effectTriggered||P,u.effectResolved=u.effectResolved||P,u.effectRejected=u.effectRejected||P,u.effectCancelled=u.effectCancelled||P,u.actionDispatched=u.actionDispatched||P,u.rootSagaStarted({effectId:v,saga:t,args:h})),c){var y=eQ.apply(void 0,c);n=function(e){return function(t,n,r){return y(function(t){return e(t,n,r)})(t)}}}else n=N;var b={channel:i,dispatch:W(o),getState:a,sagaMonitor:u,onError:f,finalizeRunEffect:n};return e3(function(){var e=tq(b,g,l,v,X(t),!0,void 0);return u&&u.effectResolved(v,e),e})}var t$=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,o=n.channel,a=void 0===o?tl():o,s=n.sagaMonitor,l=eq(n,["context","channel","sagaMonitor"]);function u(e){var n=e.getState,r=e.dispatch;return t=tY.bind(null,L({},l,{context:i,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return u.run=function(){return t.apply(void 0,arguments)},u.setContext=function(e){F(i,e)},u},tK=__webpack_require__(83960),tX=__webpack_require__(5027),tQ=__webpack_require__(79905),tJ=__webpack_require__(82183),t0=__webpack_require__(7409),t1=__webpack_require__(99282),t2=__webpack_require__(98848),t4=function(e){var t=[],n=[];return e.forEach(function(e){var r=e.additional,i=r.thumbnail,o=(0,t2._)(r,["thumbnail"]);i.unit_id&&n.push(i),t.push((0,t1._)((0,t0._)({},e),{additional:(0,t1._)((0,t0._)({},o),{thumbnailUnitId:i.unit_id})}))}),{itemsWithUnitId:t,thumbnails:n}},t3=__webpack_require__(37210),t5=__webpack_require__(76150),t6=__webpack_require__(67294),t9=__webpack_require__.t(t6,2),t8=__webpack_require__(37276),t7=__webpack_require__(8768),ne=__webpack_require__(57926),nt=function(){var e=[];return{use:function(t){return e.push(t),this},run:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=0,o=function(){var t=e[i];void 0!==t&&(i+=1,t.apply(void 0,(0,eG._)(n).concat([o])))};o()}}},nn=function(e){var t=e.message,n=e.handler;return n?function(){return(0,tK.Z)(t,{showConfirm:!0}).then(n)}:function(){return(0,tK.Z)(t,{showConfirm:!1})}},nr=null,ni={setOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorCode,n=void 0===t?null:t,r=e.errorMessage;nr={errorCode:n,errorMessage:void 0===r?null:r}},setClosed:function(){nr=null},hasErrorMessage:function(){return!!(null==nr?void 0:nr.errorMessage)},isOpened:function(){return!!nr},isSameWith:function(e){var t=e.errorCode,n=void 0===t?null:t,r=e.errorMessage,i=void 0===r?null:r;return!!nr&&nr.errorCode===n&&nr.errorMessage===i}},no=function(e){var t=e.openDialog,n=e.errorCode,r=void 0===n?null:n,i=e.errorMessage,o=void 0===i?null:i;if(null===r&&null===o)throw Error("should pass error code or error message");return!ni.isOpened()&&(ni.setOpened({errorCode:r,errorMessage:o}),t().then(function(){ni.setClosed()}),!0)},na=function(e,t){var n=e.error,r=e.payload;if(n===ej.sH.ApplyLightboxRating){var i=r[ej.sH.ApplyLightboxRating].message;no({openDialog:nn({message:i,handler:function(){}}),errorCode:n,errorMessage:i});return}t()},ns=function(e){return"WebAPIError"===e.name},nl=function(e,t){return function(n,r){var i=n.error;ns(i)&&i.code===e?t(n):r()}},nu=__webpack_require__(28851),nc=(0,tQ.n6)("error","database_upgrading"),nd=function(e){var t=e._isTheFirstTime,n=e._errorAlertStateManager,r=e._getDispatch,i=e._showUpgradeUserDialogIfNeeded,o=t;return nl(ej.ZQ.SHOULD_UPGRADE_USER,function(e){var t=e.payload[ej.ZQ.SHOULD_UPGRADE_USER].action,a=n.isOpened(),s=n.isSameWith({errorCode:ej.ZQ.SHOULD_UPGRADE_USER,errorMessage:nc});if(!a||s){var l=function(){return setTimeout(function(){var e=t;e.reloadOnSuccess=!0,r()(e)},ej.LK.DATABASE_UPGRADING_RETRY)};if(o){o=!1,l();return}i(),l()}})}({_isTheFirstTime:!0,_errorAlertStateManager:ni,_getDispatch:nu.Z,_showUpgradeUserDialogIfNeeded:function(){return no({errorCode:ej.ZQ.SHOULD_UPGRADE_USER,errorMessage:nc,openDialog:nn({message:nc})})}}),nf=__webpack_require__(47524),np=__webpack_require__(94307),nh=__webpack_require__(84402),nm=__webpack_require__(68598),ng=__webpack_require__(92632),nv=__webpack_require__(55661);function ny(){SYNO.SDS.Utils.Logout.setConfig({reserveQueryString:!0}),SYNO.SDS.Utils.Logout.action(!0),(0,nv.nJ)(ej.cn.SHARING_SID),localStorage.removeItem(ej.ZP.SEARCH_HISTORY)}var nb=function(){window.location.reload()},n_=__webpack_require__(33873);function nE(){var e=(0,np.AZ)();(0,nh.GR)(e)?window.location.hash="/".concat(t7.Z.ALBUM):(0,nh.ur)(e)&&(window.location.hash=(0,eZ.uq)().pathname),nb()}var nw=function(){ni.setClosed()},nS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(Object.prototype.hasOwnProperty.call(t,e)&&null!==t[e])return t[e];switch(e){case ej.ZQ.HOME_SERVICE_DISABLED:_S("is_admin")?n=t6.createElement(t8.Z,{text:(0,tQ.n6)("error","homes_disabled_admin")}):n=(0,tQ.n6)("error","homes_disabled");break;case ej.ZQ.USER_DISABLED:n=(0,tQ.n6)("error","user_disabled");break;case ej.ZQ.USER_QUOTA_FULL:n=(0,tQ.n6)("error","quota_not_enough");break;case ej.ZQ.SPACE_FULL:n=(0,tQ.n6)("error","volume_full");break;case ej.ZQ.INVALID_FOLDER_NAME:n=(0,tQ.n6)("error","error_reserved_name");break;case ej.ZQ.FOLDER_PATH_TOO_LONG:n=(0,tQ.n6)("error","error_long_path");break;case ej.ZQ.NO_PERMISSION:case ej.ZQ.NO_APP_PRIVILEGE:case ej.ZQ.SID_NOT_FOUND:case ej.ZQ.TEAM_FOLDER_PERMISSION_DENY:n=(0,tQ.n6)("error","nopermission");break;case ej.ZQ.PERMISSION_DENIED:n=(0,tQ.n6)("error","file_permission_denied");break;case ej.ZQ.TEAM_LIBRARY_PERMISSION_DENIED:n=(0,tQ.n6)("error","team_library_permission_deny");break;case ej.ZQ.SESSION_TIMEOUT:n=(0,tQ.n6)("error","timeout");break;case ej.ZQ.NO_SUCH_API:n=(0,tQ.n6)("error","app_stop");break;case ej.ZQ.REASSIGN_WHILE_UPDATING:n=(0,tQ.n6)("error","reassign_error");break;case ej.ZQ.UNSUPPORTED_FILE_TYPE:n=(0,tQ.n6)("error","unsupported_file_type");break;case ej.ZQ.TARGET_FOLDER_INVALID:n=(0,tQ.n6)("error","parent_path_conflict");break;case ej.ZQ.FOLDER_NAME_EXIST:n=(0,tQ.n6)("error","error_file_exist");break;case ej.ZQ.CONDITION_ALBUM_PERSONAL_SPACE_DISABLED:case ej.ZQ.CONDITION_ALBUM_TEAM_SPACE_DISABLED:n=(0,tQ.n6)("condition_album","disabled_source_space_hint");break;case ej.ZQ.CONDITION_ALBUM_NO_TEAM_SPACE_MANAGEMENT_PERMISSION:n=(0,tQ.n6)("condition_album","no_source_space_permission_hint");break;case ej.ZQ.CONDITION_ALBUM_CONDITION_ERROR:n=(0,tQ.n6)("condition_album","condition_error");break;case ej.ZQ.SHARING_ERROR_TOKEN:case ej.ZQ.ALBUM_NOT_FOUND:case ej.ZQ.PASSPHRASE_NOT_FOUND:n=(0,tQ.n6)("error","album_not_exist_back_last_page");break;case ej.ZQ.SHARING_INVALID_ENTRY:case ej.ZQ.SHARING_NO_PERMISSION:case ej.ZQ.PERMISSION_CHECK_FAILED:n=(0,tQ.n6)("error","album_permission_denied");break;case ej.ZQ.TARGET_FOLDER_NOT_EXIST:n=(0,tQ.n6)("background_task","error_target_folder_not_existed");break;case ej.ZQ.USER_SHARING_PERMISSION_DENIED:case ej.ZQ.PHOTO_REQUEST_FOLDER_INVALID:n=(0,tQ.n6)("shared","you_need_permission");break;case ej.ZQ.PERSON_CLUSTERING_IS_NOT_FINISHED:n=(0,tQ.n6)("error","cannot_merge_people_during_person_clustering");break;case ej.ZQ.INTERNAL_ERROR:n=(0,tQ.n6)("error","error_internal")}return n},nT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=nw;if(Object.prototype.hasOwnProperty.call(t,e)&&null!==t[e])return t[e];switch(e){case ej.ZQ.HOME_SERVICE_DISABLED:case ej.ZQ.TEAM_LIBRARY_PERMISSION_DENIED:n=function(){nw(),nE()};break;case ej.ZQ.USER_DISABLED:n=function(){nw(),window.location.hash=(0,eZ.uq)().pathname,nb()};break;case ej.ZQ.NO_PERMISSION:case ej.ZQ.NO_APP_PRIVILEGE:case ej.ZQ.SID_NOT_FOUND:case ej.ZQ.TEAM_FOLDER_PERMISSION_DENY:case ej.ZQ.SESSION_TIMEOUT:n=ny;break;case ej.ZQ.SHARING_ERROR_TOKEN:case ej.ZQ.SHARING_INVALID_ENTRY:case ej.ZQ.SHARING_NO_PERMISSION:case ej.ZQ.ALBUM_NOT_FOUND:case ej.ZQ.PASSPHRASE_NOT_FOUND:case ej.ZQ.PERMISSION_CHECK_FAILED:var r=nf.Z.getStore().dispatch;n=function(){nw(),(0,nh.IF)((0,np.AZ)())&&((0,nm.n_)(),(0,ne.Z)().exit()),(0,ng.XX)()?ny():(0,ng.v6)()?(0,nm.fT)():((0,np.fv)((0,eZ.ku)()),r((0,n_.n9)([/\/album\/?$/,/\/sharing\/?$/])))};break;case ej.ZQ.USER_SHARING_PERMISSION_DENIED:n=function(){nw(),nb()}}return n},nO=function(e){var t=!0;switch(e){case ej.ZQ.PERMISSION_DENIED:case ej.ZQ.NO_SUCH_API:case ej.ZQ.INTERNAL_ERROR:t=!1}return t};function nI(e){var t=e.openErrDialogRaw,n=e.needWaitConfirm;return function(){return(0,t5._)(function(){var e;return(0,a.Jh)(this,function(r){return(e=t(),n)?[2,e]:[2,Promise.resolve()]})})()}}function nA(e){var t=e.errorCode,n=e.message,r=e.handler,i=e.showConfirm;return function(){return ni.setOpened({errorCode:t,errorMessage:n}),(0,tK.Z)(n,{showConfirm:i}).then(function(){r()})}}function nC(e,t,n){var r=nS(e,t);if(null===r)return null;var i=nT(e,n),o=nO(e);return nA({errorCode:e,message:r,handler:i,showConfirm:o})}function nx(e,t,n){var r=nC(e,t,n),i=nO(e);return null===r?null:nI({openErrDialogRaw:r,needWaitConfirm:i})}function nD(){return nI({openErrDialogRaw:function(){return ni.setOpened(),nA({message:(0,tQ.n6)("error","unknown"),handler:nw,showConfirm:!0})()},needWaitConfirm:!0})}var nR=function(e){var t=e.error,n=e.payload;return(0,t5._)(function(){var e,r,i,o,s,l,u;return(0,a.Jh)(this,function(a){if(e=n.forceAlert,r=n.customWebapiErrorMessages,i=n.customWebapiErrorHandlers,o=null,s=!1,ns(t)&&(o=nx(t.code,r,i),ni.isOpened()&&(l=t.code,u=null,ni.hasErrorMessage()&&(u=nS(t.code,r)),s=ni.isSameWith({errorCode:l,errorMessage:u}))),null===o){if(console.error(t),!e)return[2,Promise.resolve({skipShowAlert:!1,isSameErrorAlert:!1})];o=nD()}return ni.isOpened()?[2,Promise.resolve({skipShowAlert:!0,isSameErrorAlert:s})]:[2,o().then(function(){return{skipShowAlert:!1,isSameErrorAlert:!1}})]})})()},nL=function(){var e=nt();return e.use(nd).use(na).use(nR),e}(),nk=function(e){var t=e.error,n=e.forceAlert,r=void 0!==n&&n,i=e.customWebapiErrorMessages,o=void 0===i?{}:i,a=e.customWebapiErrorHandlers,s=void 0===a?{}:a,l=e.payload,u=void 0===l?{}:l;nL.run({error:t,payload:(0,t0._)({forceAlert:r,customWebapiErrorMessages:o,customWebapiErrorHandlers:s},u)})},nM=__webpack_require__(62916),nP=__webpack_require__(61630),nN=__webpack_require__(46677),nF=__webpack_require__(95853),nB=(0,nF.q$)({ClearThumbnails:"CLEAR_THUMBNAILS",UpdateThumbnailInfos:"UPDATE_THUMBNAIL_INFOS",UpdateThumbnailCacheKey:"UPDATE_THUMBNAIL_CACHE_KEY",SetThumbnailRegenerating:"SET_THUMBNAIL_REGENERATING"});function nU(e){var t=e.thumbnailInfos,n=e.overwriteRegenerating,r=void 0!==n&&n;return{type:nB.UpdateThumbnailInfos,thumbnailInfos:t,overwriteRegenerating:r}}function nH(e){var t,n,r,i,o=0;return(o=eW.Map.isMap(e)?(e.getIn(["additional","resolution","width"])||1)/(e.getIn(["additional","resolution","height"])||1):((null==e?void 0:null===(n=e.additional)||void 0===n?void 0:null===(t=n.resolution)||void 0===t?void 0:t.width)||1)/((null==e?void 0:null===(i=e.additional)||void 0===i?void 0:null===(r=i.resolution)||void 0===r?void 0:r.height)||1))>10?o=10:o<.1&&(o=.1),o}function nj(e){var t=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(window.location.search);return!!t&&"true"===t[2]}function nV(){return nj("debug_face")?["face_bounding_box"]:[]}function nz(e,t,n,r){for(var i={type:ej.TY.ROW_TYPE.TIMELINE_ROW,arranged:!0,arrange_width:e,arrange_height:t,list:[],count:n.length,indexStart:r},o=0,a=0;a<n.length;++a){var s=t*nH(n[a]),l=s>e?e:s;i.list.push({type:"photo",width:l,photo:n[a]}),o+=l+(0,t3.Z)((0,nP.tq)())}return i.totalWidth=o,i}function nZ(e,t){return(0,tX.Z)({header:{},api:"SYNO.Core.Sharing.Login",method:"login",version:1,params:{sharing_id:e,password:t},encryption:["sharing_id","password"]})}function nG(e,t){var n,r,i,o=arguments;return _ts_generator(this,function(a){switch(a.label){case 0:return[4,call(openEnterPasswordDialog,o.length>2&&void 0!==o[2]&&o[2])];case 1:if("apply"!==(n=a.sent()).type)return[3,13];a.label=2;case 2:return a.trys.push([2,9,,12]),[4,call(nZ,e,n.password)];case 3:if(a.sent(),t.type!==FolderSagaAction.GetCurrentFolder)return[3,5];return[4,put(unlockFolderInFolderTree(t.id))];case 4:return a.sent(),[3,7];case 5:if(t.type!==PhotoRequestSagaAction.OpenPhotoRequestDialog||!t.folderInfo)return[3,7];return[4,put(unlockFolderInFolderTree(t.folderInfo.id))];case 6:a.sent(),a.label=7;case 7:return[4,put(t)];case 8:return a.sent(),[3,12];case 9:if((r=a.sent()).code!==WebapiErrorCode.WRONG_PROTECT_PASSWD)return[3,11];return[4,call(nG,e,t,!0)];case 10:return a.sent(),[2];case 11:return handleError({error:r}),[3,12];case 12:return[3,20];case 13:if(t.type!==FolderSagaAction.GetCurrentFolder)return[3,14];return goBack(),[3,20];case 14:if(t.type!==FolderNavigatorSagaAction.NavigateFolderByPath)return[3,16];return i=getParentFolderPath(t.folderPath),[4,put(t.navigateFolderByPathAction(i))];case 15:return a.sent(),[3,20];case 16:if(t.type!==FolderSagaAction.MoveToFolderByDraggingFromFolderWall)return[3,20];if(!(t.selectedFolderIds.length>0))return[3,18];return[4,put(selectedBarActions.addSelectedBarSelect(SelectionType.FOLDER,t.selectedFolderIds,t.selectedMap))];case 17:a.sent(),a.label=18;case 18:if(!(t.selectedItemIds.length>0))return[3,20];return[4,put(selectedBarActions.addSelectedBarSelect(SelectionType.ITEM,t.selectedItemIds,t.selectedMap))];case 19:a.sent(),a.label=20;case 20:return[2]}})}function nW(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return[4,select(filterSelector.getCondition)];case 1:return(e=t.sent().filter(function(e){return!e.isEmpty()}).toJS())[ConditionType.GENERAL_TAG]&&(e.general_tag_policy="or"),e[ConditionType.PERSON]&&(e.person_policy="or"),[2,e]}})}function nq(e,t){var n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:return[4,eI(tK.Z,(0,tQ.n6)("warning","download_origin_when_convert_fail_desc"),{title:(0,tQ.n6)("warning","download_origin_when_convert_fail_title"),showDontShowAgain:t})];case 1:if(!((n=i.sent().dontShowAgain)&&t))return[3,3];return r=e.map(function(e){return e.get("name")===ej.s3.DOWNLOAD_MULTIPLE_ITEMS?e.set("show",!n):e}).toJS(),[4,eS((0,nN.L7)({interactive_box:r}))];case 2:i.sent(),i.label=3;case 3:return[2]}})}function nY(e){return e===ej.n0.LIGHTBOX}function n$(e){return e===ej.n0.SELECTED_BAR}function nK(e){return e===ej.n0.GRID_VIEW}var nX=function(e){return 0===e.list.length};function nQ(e,t,n){var r,i,o,s;return(0,a.Jh)(this,function(a){switch(a.label){case 0:r=[],a.label=1;case 1:return a.trys.push([1,3,,4]),i={id_item:e,additional:["orientation","resolution","thumbnail","video_meta","video_convert"]},o=t.passphrase,(s=t.albumId)?i.album_id=s:o&&(i.passphrase=o),[4,eI(n,i)];case 2:return r=a.sent(),[3,4];case 3:return nk({error:a.sent()}),[3,4];case 4:return[2,r.list[0].unit]}})}function nJ(e,t,n,r){var i,o,s,l,u,c,d,f,p,h,m,g;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return i=t.passphrase,o=t.albumId,s=[],l={id:e,additional:["description","tag","exif","resolution","orientation","gps","video_meta","video_convert","thumbnail","address","geocoding_id","rating","motion_photo","favorite"]},o?(l.album_id=o,l.additional.push("provider_user_id")):i&&(l.passphrase=i,l.additional.push("provider_user_id")),(0,nM.K_)()&&l.additional.push("concept_raw_data"),(0,ng.f5)()||(l.additional.push("person"),(u=l.additional).push.apply(u,(0,eG._)(nV()))),[4,eI(n,l)];case 1:return[4,eI(t4,(s=a.sent()).list)];case 2:return d=(c=a.sent()).itemsWithUnitId,[4,eS(nU({thumbnailInfos:f=c.thumbnails}))];case 3:if(a.sent(),0===d.length)return[2,null];if(!((h=(p=d[0]).type)===ej.qG.LIVE||h===ej.qG.BURST))return[3,8];return[4,nQ(e,{passphrase:i,albumId:o},r)];case 4:return[4,eI(t4,a.sent())];case 5:return g=(m=a.sent()).itemsWithUnitId,[4,eS(nU({thumbnailInfos:m.thumbnails}))];case 6:return a.sent(),[4,eS((0,tJ.Lw)(g))];case 7:return a.sent(),[3,10];case 8:return[4,eS((0,tJ.DZ)())];case 9:a.sent(),a.label=10;case 10:return p.thumbnailInfo=f[0],[2,p]}})}function n0(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{type:eV.j.SetActionBarInfo,albumType:e,name:t,id:n,count:r,info:i}}function n1(e){return{type:eV.j.UpdateActionBarConceptInfo,conceptInfo:e}}function n2(e){var t,n,r,i,o,s,l,u,c,d,f,p,h,m;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(t=e.albumType,n=e.id,r=e.SmartAPI,i=e.updateGeneralTagAction,!n||!r)return[2];s={},a.label=1;case 1:return a.trys.push([1,3,,8]),[4,eI(r.get,{id:[n],additional:t===ej.ZP.ALBUM_TYPE.PERSON||t===ej.ZP.ALBUM_TYPE.CONCEPT?["thumbnail"]:[]})];case 2:if(nX(d=a.sent()))throw Error("smart album not found");return s=d.list[0].additional,o=d.list[0].name,l=d.list[0].item_count,u=d.list[0].display_threshold,c=d.list[0].visibility,[3,8];case 3:if(f=a.sent(),t!==ej.ZP.ALBUM_TYPE.GENERAL_TAG)return[3,5];return[4,eS(i({action:ez.eM.SET,tagInfoArray:[{id:n,item_count:0}]}))];case 4:a.sent(),a.label=5;case 5:if(!(t!==ej.ZP.ALBUM_TYPE.PERSON&&t!==ej.ZP.ALBUM_TYPE.CONCEPT))return[3,7];return[4,eI(eZ.uq)];case 6:h=(p=a.sent()).pathname,m=p.state,(0,np.fv)(h,m),a.label=7;case 7:return[2];case 8:return[4,eS(n0(t,o,n,l,s))];case 9:if(a.sent(),t!==ej.ZP.ALBUM_TYPE.CONCEPT)return[3,11];return[4,eS(n1({displayThreshold:u,visibility:c}))];case 10:a.sent(),a.label=11;case 11:return[2]}})}function n4(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eB(eV.qA.GetActionBarInfo,n2)];case 1:return e.sent(),[2]}})}var n3=__webpack_require__(41196),n5=(0,nF.q$)({LocationChange:"LOCATION_CHANGE"}),n6=__webpack_require__(16230),n9={displayThreshold:0,visibility:!0},n8=eW.default.fromJS({albumType:"",name:"",show:!1,info:{},conceptInfo:n9,id:0,library:"",itemCount:0,specifiedName:""}),n7=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n8,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n5.LocationChange:var n=e,r=!0,i=t.payload,o=i.pathname;if(null===i.key&&(!o||"/"===o))return e;var a=(0,n6.o$)(o),s=a.type,l=a.typeId,u=a.specifiedName,c=a.info,d=a.passphrase,f=a.library;return(["timeline","folder"].indexOf(s)>=0||s===t7.Z.ALBUM&&0===l&&""===d||(0,ng.f5)()||s===t7.Z.SHARING&&""===d)&&(r=!1),0===l&&""===d&&(n=s===ej.ZP.ALBUM_TYPE.SHARED_WITH_ME||s===ej.ZP.ALBUM_TYPE.SHARED_WITH_OTHERS?n.set("name",(0,tQ.n6)("shared",s===ej.ZP.ALBUM_TYPE.SHARED_WITH_ME?"shared_with_me":"shared_with_others")):s===ej.ZP.ALBUM_TYPE.LIVE||s===ej.ZP.ALBUM_TYPE.MOTION_PHOTO?n.set("name",(0,tQ.n6)("app","live_motion")):n.set("name",(0,tQ.n6)("app",s))),d||s===e.get("albumType")&&l===e.get("id")||(n=n.set("info",eW.default.fromJS(c))),f&&(n=n.set("library",f)),n.set("id",l).set("albumType",s).set("specifiedName",u).set("show",r);case eV.j.SetActionBarInfo:return e.withMutations(function(e){return e.set("name",t.name).set("albumType",t.albumType).set("id",t.id||0),void 0!==t.count&&e.set("itemCount",t.count),!function(e){return(0,n3._)(e,Object)&&0===Object.keys(e).length}(t.info)&&e.set("info",eW.default.fromJS(t.info)),e});case eV.j.UpdateActionBarConceptInfo:return e.set("conceptInfo",eW.default.fromJS(t.conceptInfo||n9));case eV.j.UpdateActionBarItemCount:return e.set("itemCount",t.itemCount);default:return e}},re=__webpack_require__(6992),rt=__webpack_require__(34405),rn=(0,nF.q$)({AppendInviteeInfo:"APPEND_INVITEE_INFO",GetAlbum:"GET_ALBUM",GetSharedAlbumPermission:"GET_SHARED_ALBUM_PERMISSION",LoadAlbum:"LOAD_ALBUM",DeleteAlbumItem:"DELETE_ALBUM_ITEM",DeleteAlbum:"DELETE_ALBUM",LoadAlbumCount:"LOAD_ALBUM_COUNT",UpdateAlbum:"UPDATE_ALBUM",ArrangeFlexLayoutSection:"ARRANGE_FLEX_LAYOUT_SECTION",BeforeLoadFlexLayoutSection:"BEFORE_LOAD_FLEX_LAYOUT_SECTION",LoadFlexLayoutSection:"LOAD_FLEX_LAYOUT_SECTION",ArrangeFlexLayoutRow:"ARRANGE_FLEX_LAYOUT_ROW",ClearFlexLayout:"CLEAR_FLEX_LAYOUT",SetCurrentAlbumEmpty:"SET_CURRENT_ALBUM_EMPTY",SetAutoStartEditing:"SET_AUTO_START_EDITING",SetAlbumProcessing:"SET_ALBUM_PROCESSING",SetItemCountByAlbumId:"SET_ITEM_COUNT_BY_ALBUM_ID",ScrollToAlbumPhotoWallItem:"SCROLL_TO_ALBUM_PHOTOWALL_ITEM",ResetAlbumScrollToItem:"RESET_ALBUM_SCROLL_TO_ITEM",RotateAlbumItems:"ROTATE_ALBUM_ITEMS",UpdateNewComment:"UPDATE_NEW_COMMENT",ClearAlbumList:"CLEAR_ALBUM_LIST",ClearAlbumListParameters:"CLEAR_ALBUM_LIST_PARAMETERS",SetAlbumListDisplayType:"SET_ALBUM_LIST_DISPLAY_TYPE",SetAlbumListSorting:"SET_ALBUM_LIST_SORTING"}),rr=(0,nF.Ky)({GetAlbum:"GET_ALBUM",GetSharedAlbumPermission:"GET_SHARED_ALBUM_PERMISSION",InitAlbumList:"INIT_ALBUM_LIST",LoadAlbum:"LOAD_ALBUM",LoadAlbumItem:"LOAD_ALBUM_ITEM",CreateAlbum:"CREATE_ALBUM",DeleteAlbum:"DELETE_ALBUM",DownloadAlbum:"DOWNLOAD_ALBUM",AddToAlbumNotification:"ADD_TO_ALBUM_NOTIFICATION",UpdateAlbumReload:"UPDATE_ALBUM_RELOAD",DeleteAlbumItem:"DELETE_ALBUM_ITEM",SetAlbumName:"SET_ALBUM_NAME",LoadAlbumCount:"LOAD_ALBUM_COUNT",SetAsCover:"SET_AS_COVER",ChangeAlbumItemSorting:"CHANGE_ALBUM_ITEM_SORTING",ChangeAlbumListSorting:"CHANGE_ALBUM_LIST_SORTING",LoadInviteeInfo:"LOAD_INVITEE_INFO",RenameAlbum:"RENAME_ALBUM",ChangeAlbumListDisplayType:"CHANGE_ALBUM_LIST_DISPLAY_TYPE",HandleAlbumConditionError:"HANDLE_ALBUM_CONDITION_ERROR"}),ri=(0,nF.q$)({SetSharedWithMeList:"SET_SHARED_WITH_ME_LIST",SetSharedWithOthersList:"SET_SHARED_WITH_OTHERS_LIST",ArrangeSharedRow:"ARRANGE_SHARED_ROW",DeleteSharedAlbum:"DELETE_SHARED_ALBUM",UpdateSharedWithOthersStore:"UPDATE_SHARED_WITH_OTHERS_STORE",SetSharedType:"SET_SHARED_TYPE",ClearSharedStoreByType:"CLEAR_SHARED_STORE_BY_TYPE",AppendOwnerInfo:"APPEND_OWNER_INFO",ClearOwnerInfo:"CLEAR_OWNER_INFO",UpdateSharedWithOthersAlbumByKey:"UPDATE_SHARED_WITH_OTHERS_ALBUM_BY_KEY",SetSharedAlbumListOrder:"SET_SHARED_ALBUM_LIST_ORDER"});(0,nF.Ky)({LoadOwnerInfo:"LOAD_OWNER_INFO",LoadSharedWithMeList:"LOAD_SHARED_WITH_ME_LIST",LoadSharedWithOthersList:"LOAD_SHARED_WITH_OTHERS_LIST",ConfirmStopSharing:"CONFIRM_STOP_SHARING",StopSharing:"STOP_SHARING",StopSharingAndDeleteTemporary:"STOP_SHARING_AND_DELETE_TEMPORARY",UpdateSharedWithOthersAlbum:"UPDATE_SHARED_WITH_OTHERS_ALBUM",ChangeSharedAlbumListSorting:"CHANGE_SHARED_ALBUM_LIST_SORTING",GetSharedAlbumListOrder:"GET_SHARED_ALBUM_LIST_ORDER"});var ro=function(e,t){var n=[];if(t<=0)return n;for(var r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},ra=function(e){if(!e)throw Error("Invalid folder path")},rs=function(e){var t=e;"/"===e[e.length-1]&&(t=e.slice(0,-1));var n=t.split("/");return n[n.length-1]},rl=function(e){return e===t7.Z.ROOT?ej.ZP.ROOT_FOLDER_NAME:rs(e)},ru=function(e){if(""===e||"/"===e)return"/";var t=e;return"/"!==t[0]&&(t="/".concat(t)),"/"===t[t.length-1]&&(t=t.slice(0,-1)),t},rc=function(e){return e&&"/"!==e?ru(e).split("/").length-1:0},rd=function(e){return ra(e),e===t7.Z.ROOT},rf=__webpack_require__(22287),rp=function(e){return -1===Object.values(ej.ER).indexOf(e)?(0,rf.K2)():e},rh=function(e){return -1===Object.values(ej.Sr).indexOf(e)?(0,rf.if)():e};function rm(e,t,n,r,i){var o=e.reduce(function(e,t){if(e.length>0&&e[0][0].get("country_id")===t.get("country_id"))e[0].push(t);else{var n=[t];e.unshift(n)}return e},[]).reverse().map(function(e){return ro(e,t).map(function(e){return{type:"item_row",margin:r,list:e.map(function(e){var t=e.toJS();return(0,t0._)({},t)}),albumType:n,size:i}})}).reduce(function(e,t){var n=t[0].list[0].country;return""===n&&(n=t[0].list[0].first_level),(0,eG._)(e).concat([{type:"country_row",name:n,margin:r}],(0,eG._)(t))},[]);return eW.default.fromJS(o)}function rg(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{width:0,height:0};return n===ej.ZP.ALBUM_TYPE.GEOCODING?rm(e,t,n,r,i):eW.default.fromJS(ro(e.filter(function(e){return!e.get("skip")}).toArray(),t).map(function(e){return{type:"item_row",margin:r,list:e.map(function(e){var t=e.toJS();return(0,t0._)({},t)}),albumType:n,size:i}}))}function rv(e,t,n,r){for(var i,o=function(i){var o=n[i],a=i+r,l={type:e};if(e===ej.ZP.ALBUM_TYPE.FOLDER){var u=void 0;u=o.additional.customCoverThumbnails.length>0?o.additional.customCoverThumbnails.map(function(e){return(0,t1._)((0,t0._)({},e),{id:o.id})}):o.additional.thumbnailUnitIds.map(function(e){return{thumbnailUnitId:e,id:o.id}}),l={name:rl(o.name),additional:{thumbnail:u,sharingInfo:o.additional.sharing_info,passwordVerified:o.additional.password_verified,accessPermission:o.additional.access_permission},sortBy:rp(o.sort_by),sortDirection:rh(o.sort_direction),ownerUserId:o.owner_user_id,type:e}}else e===ej.ZP.ALBUM_TYPE.ALBUM?(l={start_time:o.start_time,end_time:o.end_time,shared:o.shared,temporaryShared:o.temporary_shared,passphrase:o.passphrase,sortBy:rp(o.sort_by),sortDirection:rh(o.sort_direction),ownerUserId:o.owner_user_id,type:o.type,freezeAlbum:o.freeze_album},void 0!==o.condition.is_valid&&(l.isConditionValid=o.condition.is_valid)):e===ej.ZP.ALBUM_TYPE.GEOCODING?(l.country=o.country,l.country_id=o.country_id,l.first_level=o.first_level,l.type=e):e===ej.gq.sharedWithMe?(l.passphrase=o.passphrase,l.shared=o.shared,l.sortBy=rp(o.sort_by),l.sortDirection=rh(o.sort_direction),l.type=o.type):e===ej.gq.sharedWithOthers&&(l.passphrase=o.passphrase,l.shared=o.shared,l.temporaryShared=o.temporary_shared,l.sortBy=rp(o.sort_by),l.sortDirection=rh(o.sort_direction),l.type=o.type);var c=(0,t0._)({loaded:!0,id:o.id,name:o.name,itemCount:o.item_count,folderCount:o.folder_count,additional:o.additional},l);if(e===ej.ZP.ALBUM_TYPE.PERSON||e===ej.ZP.ALBUM_TYPE.GENERAL_TAG){e===ej.ZP.ALBUM_TYPE.PERSON&&(c.show=o.show);var d=t.findIndex(function(e){return e.get("id")===o.id});if(-1!==d){var f=t.get(a).toJS();f.loaded&&f.type===e?d!==a&&Object.assign(c,f):c.skip=!0}}e===ej.ZP.ALBUM_TYPE.CONCEPT&&(c.visibility=o.visibility),s.push(c)},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=[],l=0;l<n.length;++l)o(l);var u=eW.default.List.prototype.splice.apply(t,[r,s.length].concat((0,eG._)(eW.default.fromJS(s))));return a>s.length&&(u=eW.default.List.prototype.slice.apply(u,[0,r+s.length]),e===ej.ZP.ALBUM_TYPE.PERSON&&(null===(i=t.last())||void 0===i?void 0:i.get("type"))==="more"&&(u=u.push(t.last()))),u}function ry(e,t){var n=["additional"];return e.withMutations(function(e){if(t){var r=n.concat(["resolution"]),i=e.getIn(r.concat(["width"]));e.setIn(r.concat(["width"]),e.getIn(r.concat(["height"]))),e.setIn(r.concat(["height"]),i)}})}var rb={loaded:!1,shared:!1,additional:{},start_time:0,passphrase:"",name:"",end_time:0,index:0,temporaryShared:!1,ownerUserId:-1,type:"album",id:0,itemCount:0,freezeAlbum:!1},r_={list:[],loaded:!1},rE=eW.default.fromJS({list:[],rows:[],current:rb,sharing_permission:{},inviteeInfo:r_,count:0,autoStartEditing:!1,processing:!1,isLoaded:!1,albumListSortBy:"",albumListSortDirection:"",albumListDisplay:""});function rw(e,t,n){return e.withMutations(function(e){var r=e.getIn(["current","itemCount"])-n.length;return e.setIn(["current","itemCount"],r),e.set("list",e.get("list").map(function(e){var r=e;if(r.get("id")===t){var i=r.get("itemCount")-n.length;r=r.set("itemCount",i)}return r})),e})}function rS(e,t,n,r){var i=null;e.getIn(["current","id"])===t&&(i=e.get("current").setIn(n,r));var o=e.get("list"),a=o.findIndex(function(e){return e.get("id")===t});return(a>=0&&(o=o.setIn([a].concat((0,eG._)(n)),r)),i)?e.set("current",i).set("list",o):e.set("list",o)}var rT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rE,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case rn.GetAlbum:var n=e,r=t.object,i=t.refreshAlbum,o=r;eW.default.Map.isMap(r)||(o=rv(ej.ZP.ALBUM_TYPE.ALBUM,eW.default.List(),[r],0).get(0));var a=o.get("id");(i||n.getIn(["current","id"])===a)&&(n=n.set("current",o));var s=n.get("list").findIndex(function(e){return e.get("id")===a});return s>=0&&(n=n.setIn(["list",s],o)),n;case rn.GetSharedAlbumPermission:return e.set("sharing_permission",eW.default.fromJS(t.permission));case rn.AppendInviteeInfo:return e.setIn(["inviteeInfo","list"],e.getIn(["inviteeInfo","list"]).concat(eW.default.fromJS(t.inviteeInfo))).setIn(["inviteeInfo","loaded"],!0);case rn.LoadAlbum:return e.set("list",rv(ej.ZP.ALBUM_TYPE.ALBUM,e.get("list"),t.list,t.offset,t.limit));case rn.LoadAlbumCount:return e.set("count",t.count).set("isLoaded",!0);case ri.DeleteSharedAlbum:return rS(e,t.albumId,["shared"],!1);case rn.UpdateAlbum:var l=t.id,u=t.data;return rS(e,l,u.key,u.value);case rn.DeleteAlbum:var c=t.albumIds,d=e;return c.indexOf(e.getIn(["current","id"]))>-1&&(d=d.set("current",eW.default.fromJS(rb))),d.set("list",d.get("list").filter(function(e){return -1===c.indexOf(e.get("id"))})).set("count",e.get("count")-c.length);case re.j.ArrangeAutoAlbumItemRow:if(t.albumType!==ej.ZP.ALBUM_TYPE.ALBUM)return e;var f=e.get("rows"),p=rg(e.get("list"),t.rowItemCount,t.albumType,t.marginSpace,t.size);if(0===p.size&&0===f.size||(0,eW.is)(f,p))return e;return e.set("rows",p);case rn.DeleteAlbumItem:return rw(e,t.albumId,t.itemIds);case rt.j.DeleteItemStore:if(t.albumType!==ej.ZP.ALBUM_TYPE.ALBUM)return e;return rw(e,e.getIn(["current","id"]),t.idArray);case rn.SetCurrentAlbumEmpty:return e.withMutations(function(e){return e.set("current",eW.default.fromJS(rb)).set("inviteeInfo",eW.default.fromJS(r_)),t.clearSharingPermission&&e.set("sharing_permission",eW.default.Map()),e});case rn.SetAutoStartEditing:return e.set("autoStartEditing",t.autoStartEditing);case rn.SetAlbumProcessing:return e.set("processing",t.processing);case rn.SetItemCountByAlbumId:return rS(e,t.albumId,["itemCount"],t.itemCount);case rn.ClearAlbumList:return e.withMutations(function(e){return e.set("list",eW.default.fromJS([])).set("rows",eW.default.fromJS([])).set("count",0).set("isLoaded",!1)});case rn.ClearAlbumListParameters:return e.set("albumListSortBy","").set("albumListSortDirection","").set("albumListDisplay","");case rn.SetAlbumListDisplayType:return e.set("albumListDisplay",t.displayType);case rn.SetAlbumListSorting:var h=t.sortBy,m=t.sortDirection;return e.set("albumListSortBy",h).set("albumListSortDirection",m);default:return e}},rO=__webpack_require__(43830),rI=__webpack_require__(52062),rA=function(){function e(t,n,r){(0,rO._)(this,e),this._start=t||0,this._height=n||0,this._badnessScore=r||0}return(0,rI._)(e,[{key:"start",get:function(){return this._start}},{key:"height",get:function(){return this._height},set:function(e){this._height=e}},{key:"badnessScore",get:function(){return this._badnessScore},set:function(e){this._badnessScore=e}},{key:"jsonObject",get:function(){return{start:this._start,height:this._height,badnessScore:this._badnessScore}}}]),e}(),rC=function(){function e(t,n,r,i){(0,rO._)(this,e),this._parent=t||null,this._children={},this._ids=[],this._value=new rA(n,r,i)}return(0,rI._)(e,[{key:"childLength",get:function(){return this._ids.length}},{key:"value",get:function(){return this._value}},{key:"parent",get:function(){return this._parent}},{key:"addNode",value:function(e,t){if(this._children[e])throw Error("".concat(e," exists"));this._ids.push(e),this._children[e]=t}},{key:"createNode",value:function(t,n,r,i){if(this._children[t])throw Error("".concat(t," exists"));return this._ids.push(t),this._children[t]=new e(this,n,r,i),this._children[t]}},{key:"setParent",value:function(e,t,n){this._parent=e,this.value.height=n,this.adjustBadnessScore(t-this._value.badnessScore)}},{key:"adjustBadnessScore",value:function(e){this._value.badnessScore+=e;for(var t=0;t<this.childLength;t++)this.getAtIndex(t).adjustBadnessScore(e)}},{key:"removeChild",value:function(e){if(!this._children[e])throw Error("".concat(e," does not exist"));this._ids=this._ids.filter(function(t){return t!==e}),delete this._children[e]}},{key:"getChildById",value:function(e){if(this._children[e])return this._children[e];throw Error("".concat(e," does not exist"))}},{key:"getAtIndex",value:function(e){return this.getChildById(this._ids[e])}}]),e}(),rx=200,rD=function(){function e(t){(0,rO._)(this,e),this._items=t,this._itemLength=t.size}return(0,rI._)(e,[{key:"getJustifiedLayout",value:function(e,t,n,r){var i=this,o=new rC,a=t*r,s=t*n,l={};l[0]=o;var u=function(e,i){var o=(e-t)/t,a=Math.pow(o/(o>=0?r-1:1-n),2);return 1===i&&o>=0&&a>1||i>1&&a>1?a+rx:a},c=function(e,t,n){var r=e.value.badnessScore+u(n,t-e.value.start);if(l[t]){var i=l[t];if(i.value.badnessScore>r){var o=i.parent;i.setParent(e,r,n),o.removeChild(t),e.addNode(t,i)}return!1}var a=e.createNode(t,t,n,r);return l[t]=a,a},d=function(n){if(!(n.value.start>=i._itemLength))for(var r=0,o=n.value.start;o<i._itemLength;++o){r+=nH(i._items.get(o))*t;var l=t/r*(e-(o-n.value.start)*(0,t3.Z)((0,nP.tq)()));if(l>=s&&l<=a||l<s){var u=c(n,o+1,l);u&&d(u)}if(l<s)break;o===i._itemLength-1&&l>a&&c(n,o+1,l)}};d(o);for(var f=[],p=l[this._itemLength],h=null==p?void 0:p.parent;h;)f.push(nz(e,p.value.height,this._items.slice(h.value.start,p.value.start).toJS(),h.value.start)),p=p.parent,h=h.parent;return f.reverse()}}]),e}(),rR=200,rL=.9,rk=1.1,rM=function(e){return function(t,n){return Math.ceil(n*e/t)}}(1.5*ej.TY.IMAGE_TARGET_HEIGHT*.7);function rP(e){var t=[],n=0;return e.forEach(function(e){t.push({rowOffset:n,rowLimit:e}),n+=e}),t}function rN(e){var t=[],n=0;return e.forEach(function(e){var r;(r=t).push.apply(r,(0,eG._)(Array(e).fill(n))),n+=1}),t}var rF=function(){function e(t){if((0,rO._)(this,e),this._flexSection=t,0===this._flexSection.length)this._itemCount=0;else{var n=this._flexSection[this._flexSection.length-1];this._itemCount=n.itemOffset+n.itemLimit}}return(0,rI._)(e,[{key:"getFlexSectionInObject",value:function(){return this._flexSection}},{key:"getFakeRows",value:function(e){if(!e||0===this._itemCount)return{flexSection:[],items:[],rows:[]};var t=this._flexSection.map(function(t){return rM(e,t.itemLimit)}),n=Array(t.reduce(function(e,t){return e+t},0)).fill({arranged:!1,list:[],type:ej.TY.ROW_TYPE.TIMELINE_ROW}),r=rP(t),i=this._flexSection.map(function(e,t){return{rowOffset:r[t].rowOffset,rowLimit:r[t].rowLimit,state:e.state&&e.state!==ej.i4.INIT&&e.state!==ej.i4.LOADING?ej.i4.LOADED:ej.i4.INIT}}),o=rN(t);return{flexSection:i,items:Array(this._itemCount).fill({id:0}),rows:n.map(function(e,t){return(0,t0._)({sectionNumber:o[t]},e)})}}}]),e}(),rB=function(e){var t=0,n=-1;return new rF(e.map(function(e){var r=t;return t+=e,{sectionNumber:n+=1,itemOffset:r,itemLimit:e,state:ej.i4.INIT}}))},rU=function(e){return Array.isArray(e)?rB(e):new rF(e.toJS())},rH=__webpack_require__(81023),rj=function(){return{rows:[],items:[]}},rV=eW.default.fromJS(rj());function rz(e,t){return e.set("items",e.get("items").filter(function(e){return!t.includes(e.get("id"))}))}var rZ=function(e,t){var n=["items"];if(1===t.length){var r=e.getIn(n).findIndex(function(e){return e.get("id")===t[0]});return -1!==r?[r]:[]}var i=t.slice();return e.getIn(n).reduce(function(e,t,n){return i.includes(t.get("id"))?(i=i.filter(function(e){return e!==t.get("id")}),e.concat([n])):e},[])};function rG(e,t,n){var r=rZ(e,t);return 0===r.length?e:e.withMutations(function(e){r.forEach(function(t){var r=["items",t];e.setIn(r,ry(e.getIn(r),n))})})}function rW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rV,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case rt.j.DeleteItemStore:return rz(e,t.idArray);case rH.j.ScrollToFolderPhotoWallItem:case rn.ScrollToAlbumPhotoWallItem:return e.set("scrollToItem",t.item);case rH.j.ResetFolderScrollToItem:case rn.ResetAlbumScrollToItem:return e.delete("scrollToItem");case rn.RotateAlbumItems:case rH.j.RotateFolderItems:return rG(e,t.idArray,t.doesChangeResolution);default:return e}}var rq=eW.default.fromJS((0,t0._)({flexSection:[],viewportWidth:0},rj())),rY=[rn.ScrollToAlbumPhotoWallItem,rn.ResetAlbumScrollToItem],r$=function(e){var t=rU(e.additional.flex_section);return rq.set("flexSection",eW.default.fromJS(t.getFlexSectionInObject()))},rK=function(e,t){return e.withMutations(function(e){var n=rU(e.get("flexSection",eW.default.List())).getFakeRows(t),r=n.flexSection,i=n.items,o=n.rows;e.merge(eW.default.fromJS({viewportWidth:t,rows:o})).updateIn(["flexSection"],e.get("flexSection",eW.default.List()),function(e){return e.map(function(e,t){return e.merge(r[t])})}).set("items",eW.default.fromJS(i.map(function(t,n){return e.getIn(["items",n])||t})))})},rX=function(e,t,n){var r=e.getIn(["flexSection",t,"itemOffset"]),i=e.getIn(["flexSection",t,"itemLimit"]);return e.withMutations(function(e){var o,a=e.get("items",eW.default.List());e.setIn(["flexSection",t,"state"],ej.i4.LOADED).set("items",(o=a).splice.apply(o,[r,i].concat((0,eG._)(eW.default.fromJS(n)))))})},rQ=function(e,t,n){var r=n.getIn(["itemOffset"]),i=new rD(e.get("items").slice(r,r+n.getIn(["itemLimit"]))).getJustifiedLayout(e.get("viewportWidth"),rR,rL,rk).map(function(e){return(0,t1._)((0,t0._)({},e),{sectionNumber:t})});return e.withMutations(function(r){var o,a=e.get("rows",eW.default.List()),s=n.getIn(["rowOffset"]),l=n.getIn(["rowLimit"]);if(r.setIn(["flexSection",t,"state"],ej.i4.ARRANGED).set("rows",(o=a).splice.apply(o,[s,l].concat((0,eG._)(eW.default.fromJS(i))))),i.length!==l){r.setIn(["flexSection",t,"rowLimit"],i.length);var u=r.get("flexSection"),c=i.length-l;r.set("flexSection",u.map(function(e){var t=e.get("rowOffset");return e.set("rowOffset",t>s?t+c:t)}))}})},rJ=function(e,t){return e.withMutations(function(e){t.forEach(function(t){var n=e.getIn(["rows"]).findIndex(function(e){return -1!==e.get("list").findIndex(function(e){return e.getIn(["photo","id"])===t})});if(n>=0){var r=e.getIn(["rows",n,"sectionNumber"]);e.getIn(["flexSection",r]).get("state")===ej.i4.ARRANGED&&e.setIn(["flexSection",r,"state"],ej.i4.LOADED)}})})},r0=function(e,t){return e.withMutations(function(e){var n=[];e.get("items").forEach(function(e,r){t.includes(e.get("id"))&&n.push(r)});var r=0;e.set("flexSection",e.get("flexSection").map(function(e){var t=e.get("itemOffset"),i=e.get("itemLimit"),o=n.filter(function(e){return e>=t&&e<t+i}).length,a=e.set("itemOffset",t-r);return r+=o,o>0&&(a=a.set("itemLimit",i-o).set("state",ej.i4.LOADED)),a})),e.set("items",e.get("items").filter(function(e,t){return!n.includes(t)}))})},r1=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rq,t=arguments.length>1?arguments[1]:void 0;if(rY.includes(t.type))return rW(e,t);switch(t.type){case rn.GetAlbum:var n=t.object;return t.refreshAlbum?r$(n):e;case rn.ArrangeFlexLayoutSection:var r=t.viewportWidth;if(e.get("viewportWidth")===r)return e;return rK(e,r);case rn.BeforeLoadFlexLayoutSection:var i=t.sectionNumber;return e.setIn(["flexSection",i,"state"],ej.i4.LOADING);case rn.LoadFlexLayoutSection:return rX(e,t.sectionNumber,t.list);case rn.ArrangeFlexLayoutRow:var o=t.sectionNumber,a=e.getIn(["flexSection",o]);if(!a)return e;return rQ(e,o,a);case rn.RotateAlbumItems:return rJ(rW(e,t),t.idArray);case rt.j.DeleteItemStore:if(t.albumType!==ej.ZP.ALBUM_TYPE.ALBUM)return e;return r0(e,t.idArray);case rn.DeleteAlbumItem:return r0(e,t.itemIds);case rn.ClearFlexLayout:return rq;case rn.UpdateNewComment:var s=e.get("items").findIndex(function(e){return e.get("id")===t.id});return e.setIn(["items",s,"newComment"],!1).setIn(["rows",t.rowIdx,"list",t.listIdx,"photo","newComment"],!1);default:return e}},r2=(0,eH.combineReducers)({album:rT,photowall:r1}),r4=__webpack_require__(27412),r3=__webpack_require__(88093),r5=__webpack_require__(92383),r6=__webpack_require__(76408),r9=__webpack_require__(32648);function r8(e,t){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return{type:rn.GetAlbum,id:e,object:t,refreshAlbum:n}}function r7(e){return{type:rn.GetSharedAlbumPermission,permission:e}}function ie(e,t){return{type:rn.UpdateAlbum,id:e,data:t}}function it(e,t,n){return{type:rn.LoadFlexLayoutSection,albumId:e,list:t,sectionNumber:n}}function ir(e){return{type:rn.LoadAlbumCount,count:e}}function ii(e){return{type:rn.ArrangeFlexLayoutSection,viewportWidth:e}}function io(e){return{type:rn.BeforeLoadFlexLayoutSection,sectionNumber:e}}function ia(e){return{type:rn.ArrangeFlexLayoutRow,sectionNumber:e}}function is(){return{type:rn.ClearFlexLayout}}function il(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return{type:rn.SetCurrentAlbumEmpty,clearSharePermission:e}}function iu(e){return{type:rn.ScrollToAlbumPhotoWallItem,item:e}}function ic(){return{type:rn.ResetAlbumScrollToItem}}function id(){return{type:rn.ClearAlbumList}}function ip(e,t){return{type:rn.SetAlbumListSorting,sortBy:e,sortDirection:t}}function ih(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{thumbnail:!0},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=["sharing_info","flex_section","provider_count"];return n.thumbnail&&i.push("thumbnail"),{type:rr.GetAlbum,passphrase:e,additional:i,refreshAlbum:t,reloadOnSuccess:r}}function im(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:rr.GetSharedAlbumPermission,passphrase:e,exclude_public:!1,reloadOnSuccess:t}}function ig(e,t,n,r){return{type:rr.LoadAlbumItem,albumId:e,sectionNumber:t,sortBy:n,sortDirection:r}}function iv(e,t,n){var r=e.id,i=e.passphrase;return{type:rr.ChangeAlbumItemSorting,id:r,passphrase:i,sortBy:t,sortDirection:n}}function iy(e,t,n,r){return{type:rr.LoadAlbumItem,passphrase:e,sectionNumber:t,sortBy:n,sortDirection:r}}function ib(e){var t=e.id,n=e.passphrase,r=e.albumName,i=e.downloadType;return{type:rr.DownloadAlbum,id:t,passphrase:n,albumName:r,downloadType:i}}function i_(e){return{type:rr.LoadInviteeInfo,idArray:e}}function iE(e,t){return{type:rr.HandleAlbumConditionError,albumId:e,passphrase:t}}var iw=__webpack_require__(25835),iS=__webpack_require__(3799),iT=__webpack_require__(34774),iO=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","safari line","Android.*wv","KAKAOTALK"].map(function(e){return RegExp(e,"i")}),iI=function(e){return iO.some(function(t){return t.test(e)})},iA=function(){return iI(window.navigator.userAgent)},iC=function(e,t){var n=t.api,r=t.method,i=t.version,o=(0,t2._)(t,["api","method","version"]);iw.Z.promises.download({url:e,api:n,version:i,method:r,params:o,requestFormat:"webapi",requestMethod:"POST",responseFormat:"raw",onLoad:function(e){var t;if(null==e?void 0:null===(t=e.error)||void 0===t?void 0:t.code)throw new r5.Z(e)},onError:function(e){nk({error:e})}})};function ix(){iS.Z.openTopToast({message:(0,tQ.n6)("app","browser_not_support_download_hint"),duration:5e3})}function iD(e,t,n,r,i){var o=n.albumId,a=n.passphrase,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";if(!iL()){var l={force_download:!0};e.length>0&&(l.item_id=e),t.length>0&&(l.folder_id=t),o?l.album_id=o:a&&(l.passphrase=a),l.download_type=i;var u=(0,iT.Yl)("Download","download",l,r,s);iC(u.url,u.params)}}function iR(e){var t=e.id,n=e.passphrase,r=e.albumName,i=e.downloadType;if(iA()){ix();return}var o={};t?o.id=t:n&&(o.passphrase=n),o.download_type=i;var a=r?"".concat(r,".zip"):"download.zip",s=(0,iT.Yl)("Browse.Album","download",o,t7.Z.PERSONAL_SPACE,a);iC(s.url,s.params)}function iL(){return!!iA()&&(ix(),!0)}ej.CP.FILENAME_DESCRIPTION,ej.CP.PERSON,ej.CP.CONCEPT,ej.CP.GEOCODING,ej.CP.GENERAL_TAG,ej.CP.CAMERA,ej.CP.APERTURE,ej.CP.ISO,ej.CP.FOCAL_LENGTH,ej.CP.LENS,ej.CP.EXPOSURE_TIME,ej.CP.APERTURE,ej.CP.CAMERA,ej.CP.EXPOSURE_TIME,ej.CP.FOCAL_LENGTH,ej.CP.GENERAL_TAG,ej.CP.GEOCODING,ej.CP.ISO,ej.CP.LENS,ej.CP.PERSON,ej.CP.CONCEPT,ej.Zu.PERSONAL,ej.Zu.TEAM;var ik=function(e){switch(e){case ej.CP.GENERAL_TAG:return"general_tag_policy";case ej.CP.FILENAME_DESCRIPTION:return"keyword_policy";case ej.CP.PERSON:return"person_policy";case ej.CP.CONCEPT:return"concept_policy";default:throw Error("Unsupported condition type with policy.")}},iM=function(e){return -1!==[ej.CP.PERSON,ej.CP.FILENAME_DESCRIPTION,ej.CP.GENERAL_TAG,ej.CP.CONCEPT].indexOf(e)},iP=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={user_id:e.user_id};return Object.values(ej.CP).forEach(function(r){if(!Object.prototype.hasOwnProperty.call(e,r))return!0;var i=e[r];if(ej.dv.includes(r))n[r]=i;else{var o=i.filter(function(e){return void 0!==e.name}).filter(function(e){return!(r===ej.CP.PERSON&&""===e.name)});if(0!==o.length){if(t)n[r]=o;else{var a=o.map(function(e){return e.id});n[r]=a}}}if(n[r]&&iM(r)){var s=ik(r);n[s]=e[s]}return!0}),n},iN=(0,nF.q$)({SetTimelineInitData:"SET_TIMELINE_INIT_DATA",SetTimelineLoadStatus:"SET_TIMELINE_LOAD_STATUS",SetBasicTimelineInfo:"SET_BASIC_TIMELINE_INFO",SetTimelineRow:"SET_TIMELINE_ROW",SetTimelineScrollbar:"SET_TIMELINE_SCROLLBAR",UpdateTimelinePhoto:"UPDATE_TIMELINE_PHOTO",UpdateTimelineGeocodingInfo:"UPDATE_TIMELINE_GEOCODING_INFO",UpdateTimelineRow:"UPDATE_TIMELINE_ROW",SetTimelineFilter:"SET_TIMELINE_FILTER",SetTimelineEmptyState:"SET_TIMELINE_EMPTY_STATE",ResetTimelineScrollTopDiff:"RESET_TIMELINE_SCROLL_TOP_DIFF",ResetTimelineScrollToItem:"RESET_TIMELINE_SCROLL_TO_ITEM",ClearTimeline:"CLEAR_TIMELINE",ScrollToTimelineItem:"SCROLL_TO_TIMELINE_ITEM",RotateTimelineItems:"ROTATE_TIMELINE_ITEMS",UpdateTimelineItemStatus:"UPDATE_TIMELINE_ITEM_STATUS",UpdateTimelineFlexSectionStatus:"UPDATE_TIMELINE_FLEX_SECTION_STATUS",ArrangeTimelineFlexLayout:"ARRANGE_TIMELINE_FLEX_LAYOUT",AdjustFlexSectionStatus:"ADJUST_FLEX_SECTION_STATUS",UpdateScrollInfo:"UPDATE_SCROLL_INFO",UpdateTimelineData:"UPDATE_TIMELINE_DATA"});function iF(e){return{type:iN.SetTimelineFilter,filter:e}}function iB(e){return{type:iN.ScrollToTimelineItem,item:e}}(0,nF.Ky)({MoveTimelinePhoto:"MOVE_TIMELINE_PHOTO",InitTimeline:"INIT_TIMELINE",LoadTimeline:"LOAD_TIMELINE",LoadTimelinePhoto:"LOAD_TIMELINE_PHOTO",LoadTimelinePhotoWithFilter:"LOAD_TIMELINE_PHOTO_WITH_FILTER",LoadTimelineGeocodingInfo:"LOAD_TIMELINE_GEOCODING_INFO"});var iU=__webpack_require__(30799),iH=new Map([[ej.Ti.ALL_ALBUM,"normal_share_with_me"],[ej.Ti.MY_ALBUM,"normal"]]);function ij(e){var t,n,r,i,o,s,l,u,c,d;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(a.trys.push([0,7,,9]),t=e.refreshAlbum,n=e.id,r=e.passphrase,i=e.additional,o=e.reloadOnSuccess,!t)return[3,2];return[4,eS(il(!1))];case 1:a.sent(),a.label=2;case 2:return s={},n?s.id=[n]:r&&(s.passphrase=r),[4,eI(r3.Z.Foto.Browse.Album.get,(0,t1._)((0,t0._)({},s),{additional:i}))];case 3:if(0===(l=a.sent()).list.length)throw new r5.Z({error:{code:ej.ZQ.ALBUM_NOT_FOUND}});return[4,eI(t4,l.list)];case 4:return c=(u=a.sent()).itemsWithUnitId,[4,eS(nU({thumbnailInfos:u.thumbnails}))];case 5:return a.sent(),[4,eS(r8((d=c[0]).id,d,t))];case 6:return a.sent(),o&&nb(),[3,9];case 7:return[4,eI(nk,{error:a.sent(),payload:(0,r4._)({},ej.ZQ.SHOULD_UPGRADE_USER,{action:e})})];case 8:return a.sent(),[3,9];case 9:return[2]}})}function iV(e){var t,n,r,i;return(0,a.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,5]),t=e.passphrase,n=e.exclude_public,r=e.reloadOnSuccess,[4,eI(r3.Z.Foto.Sharing.Passphrase.getPermission,{passphrase:t,exclude_public:n})];case 1:return i=o.sent(),r&&nb(),[4,eS(r7(i))];case 2:case 4:return o.sent(),[3,5];case 3:return[4,eI(nk,{error:o.sent(),payload:(0,r4._)({},ej.ZQ.SHOULD_UPGRADE_USER,{action:e})})];case 5:return[2]}})}function iz(e){var t,n,r,i,o;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return t=e.albumId,n=e.passphrase,[4,eI(tK.Z,(0,tQ.n6)("condition_album","condition_error"))];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,5,,6]),r={additional:["condition_object"]},t?r.id=[t]:n&&(r.passphrase=n),[4,eI(r3.Z.Foto.Browse.ConditionAlbum.get,r)];case 3:return o=iP((i=a.sent()).list[0].additional.condition_object),[4,eI(r3.Z.Foto.Browse.ConditionAlbum.setCondition,{id:i.list[0].id,condition:o})];case 4:return a.sent(),nb(),[3,6];case 5:return nk({error:a.sent()}),[3,6];case 6:return[2]}})}function iZ(e){var t,n,r,i,o,s,l,u,c,d,f,p,h;return(0,a.Jh)(this,function(a){switch(a.label){case 0:t=e.albumId,n=e.passphrase,r=e.sectionNumber,i=e.sortBy,o=e.sortDirection,a.label=1;case 1:return a.trys.push([1,12,,16]),s={sort_by:i,sort_direction:o},t?s.album_id=t:n&&(s.passphrase=n),[4,eD(function(e){return e.getIn(["albumReducer","photowall","flexSection",r])})];case 2:return l=a.sent(),[4,eS(iF(s))];case 3:return a.sent(),[4,eI(r3.Z.Foto.Browse.Item.list,(0,t0._)({additional:["thumbnail","resolution","orientation","video_convert","video_meta","provider_user_id"],offset:l.get("itemOffset"),limit:l.get("itemLimit")},s))];case 4:if(u=a.sent(),!SYNO.SDS.Session.isLogined)return[3,7];return c=new Set,u.list.forEach(function(e){c.add(e.additional.provider_user_id)}),[4,eD(function(e){return e.getIn(["userInfo","id"])})];case 5:return d=a.sent(),c.add(d),[4,eS(i_(Array.from(c)))];case 6:a.sent(),a.label=7;case 7:return[4,eI(t4,u.list)];case 8:return p=(f=a.sent()).itemsWithUnitId,[4,eS(nU({thumbnailInfos:f.thumbnails}))];case 9:return a.sent(),[4,eS(it(t,p,r))];case 10:return a.sent(),[4,eS((0,iU.sG)())];case 11:return a.sent(),[3,16];case 12:if((h=a.sent()).code!==ej.ZQ.CONDITION_ALBUM_CONDITION_ERROR)return[3,14];return[4,eI(iz,e)];case 13:return a.sent(),[3,15];case 14:nk({error:h,customWebapiErrorMessages:(0,r4._)({},ej.ZQ.CONDITION_ALBUM_PERSONAL_SPACE_DISABLED,_S("is_admin")?t6.createElement(t8.Z,{text:(0,tQ.n6)("condition_album","disabled_source_space_album_hint")}):(0,tQ.n6)("condition_album","disabled_source_space_album"))}),a.label=15;case 15:return[3,16];case 16:return[2]}})}function iG(e){var t,n,r,i,o,s;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),t=e.id,n=e.passphrase,r=e.albumName,i=e.downloadType,o=!SYNO.SDS.Session.isLogined,[4,eD(r6.Z.getWizardInteractiveBox)];case 1:if(s=a.sent(),!(i===ej._5.OPTIMIZED_JPEG&&(o||s.some(function(e){return e.get("name")===ej.s3.DOWNLOAD_MULTIPLE_ITEMS&&e.get("show")}))))return[3,3];return[4,eI(nq,s,!o)];case 2:a.sent(),a.label=3;case 3:return iR({passphrase:n,id:t,albumName:r,downloadType:i}),[4];case 4:return a.sent(),[3,6];case 5:return nk({error:a.sent()}),[3,6];case 6:return[2]}})}function iW(e){var t,n,r,i,o,s,l,u,c,d,f,p,h,m,g;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,16,,17]),t=e.id,n=e.passphrase,r=e.sortBy,i=e.sortDirection,[4,eD(function(e){return e.getIn(["albumReducer","photowall","flexSection"])})];case 1:return o=a.sent(),[4,eS(ie(t,{key:["sortBy"],value:r}))];case 2:return a.sent(),[4,eS(ie(t,{key:["sortDirection"],value:i}))];case 3:if(a.sent(),s=ig,l=t,!n)return[3,4];return s=iy,l=n,[3,6];case 4:return[4,eI(r3.Z.Foto.Browse.Album.setOrder,{id:t,sort_by:r,sort_direction:i})];case 5:a.sent(),a.label=6;case 6:u=!0,c=!1,d=void 0,a.label=7;case 7:a.trys.push([7,13,14,15]),f=o[Symbol.iterator](),a.label=8;case 8:if(u=(p=f.next()).done)return[3,12];if(m=(h=p.value).get("sectionNumber"),!(h.get("state")!==ej.i4.INIT))return[3,11];return[4,eS(io(m))];case 9:return a.sent(),[4,eS(s(l,m,r,i))];case 10:a.sent(),a.label=11;case 11:return u=!0,[3,8];case 12:return[3,15];case 13:return g=a.sent(),c=!0,d=g,[3,15];case 14:try{u||null==f.return||f.return()}finally{if(c)throw d}return[7];case 15:return[3,17];case 16:return nk({error:a.sent()}),[3,17];case 17:return[2]}})}function iq(e){var t,n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:t=e.sortBy,n=e.sortDirection,i.label=1;case 1:return i.trys.push([1,8,,10]),[4,eI(r3.Z.Foto.Browse.Album.setAlbumListOrder,{albumListSortBy:t,albumListSortDirection:n})];case 2:return i.sent(),[4,eS(id())];case 3:return i.sent(),[4,eS(ip(t,n))];case 4:return i.sent(),[4,eD(r9.Z.getAlbumListDisplay)];case 5:return r=i.sent(),[4,eI(r3.Z.Foto.Browse.Album.count,{category:iH.get(r)})];case 6:return[4,eS(ir(i.sent().count))];case 7:case 9:return i.sent(),[3,10];case 8:return[4,eI(nk,{error:i.sent()})];case 10:return[2]}})}function iY(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eU(rr.GetAlbum,ij)];case 1:return e.sent(),[4,eU(rr.GetSharedAlbumPermission,iV)];case 2:return e.sent(),[4,eB(rr.LoadAlbumItem,iZ)];case 3:return e.sent(),[4,eB(rr.DownloadAlbum,iG)];case 4:return e.sent(),[4,eU(rr.ChangeAlbumItemSorting,iW)];case 5:return e.sent(),[4,eU(rr.ChangeAlbumListSorting,iq)];case 6:return e.sent(),[4,eB(rr.HandleAlbumConditionError,iz)];case 7:return e.sent(),[2]}})}var i$=__webpack_require__(64587),iK=eW.default.fromJS({position:{xMouse:0,yMouse:0},isOpen:!1}),iX=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iK,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i$.j.SetMenuMousePosition:return e.set("position",{xMouse:t.xMouse,yMouse:t.yMouse});case i$.j.SetMenuOpen:return e.set("isOpen",t.isOpen);default:return e}},iQ=__webpack_require__(32835),iJ=70,i0={PUSH:"push",UNSHIFT:"unshift"},i1=["regenerateQueue","tier1Queue","tier2Queue","tier3Queue","tier4Queue"],i2=eW.default.fromJS({dependencyStatusLoaded:!1,dependencyStatus:ej.fS,currentTasks:[],allTasks:{},waitingQueue:{regenerateQueue:[],tier1Queue:[],tier2Queue:[],tier3Queue:[],tier4Queue:[]},completedCategories:(t={},(0,r4._)(t,ej.Zu.PERSONAL,!1),(0,r4._)(t,ej.Zu.TEAM,!1),t),openQueue:!1}),i4=function(e,t){return e.filter(function(e){return e!==t})},i3=function(e,t,n){var r=t.get("currentTasks").map(function(e){return e.get("unit_id")}),i=t.get("waitingQueue").toJS(),o=i.tier1Queue,a=i.tier2Queue,s=i.tier3Queue,l=i.tier4Queue,u=i.regenerateQueue,c={},d=n===i0.UNSHIFT?"unshift":"push";return(n===i0.UNSHIFT?e.slice().reverse():e).forEach(function(e){if(!r.includes(e.unit_id)){var i=t.hasIn(["allTasks",e.unit_id.toString()]),f=!1;if(i&&t.getIn(["allTasks",e.unit_id.toString(),"task_type"])===ej.Kh.AUTO_GENERATE){var p=t.getIn(["allTasks",e.unit_id.toString(),"priority"],-1);n===i0.UNSHIFT&&p>=e.priority||n===i0.PUSH&&p>e.priority?f=!0:e.task_type===ej.Kh.REGENERATE&&(f=!0)}if(f)switch(t.getIn(["allTasks",e.unit_id.toString(),"priority"])){case 1:o=i4(o,e.unit_id);break;case 2:a=i4(a,e.unit_id);break;case 3:s=i4(s,e.unit_id);break;case 4:l=i4(l,e.unit_id)}if(!i||f){if(c[e.unit_id]=e,e.task_type===ej.Kh.REGENERATE)u[d](e.unit_id);else switch(e.priority){case 1:o[d](e.unit_id);break;case 2:a[d](e.unit_id);break;case 3:s[d](e.unit_id);break;case 4:l[d](e.unit_id)}}}}),{newTaskDetail:eW.default.fromJS(c),newWaitingQueue:eW.default.fromJS({regenerateQueue:u,tier1Queue:o.length>iJ?o.slice(0,iJ):o,tier2Queue:a.length>iJ?a.slice(0,iJ):a,tier3Queue:s.length>iJ?s.slice(0,iJ):s,tier4Queue:l.length>iJ?l.slice(0,iJ):l})}},i5=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i2,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n5.LocationChange:var n=t.payload.pathname;if(e.get("allTasks").isEmpty()||e.getIn(["waitingQueue","tier1Queue"]).isEmpty()&&e.getIn(["waitingQueue","tier2Queue"]).isEmpty()&&e.getIn(["waitingQueue","tier3Queue"]).isEmpty()||(0,nh.xr)(n))return e;return e.withMutations(function(e){e.setIn(["waitingQueue","tier1Queue"],eW.default.List()).setIn(["waitingQueue","tier2Queue"],eW.default.List()).setIn(["waitingQueue","tier3Queue"],eW.default.List()).update("allTasks",function(e){return e.deleteAll(e.filter(function(e){return 4>e.get("priority")}).keySeq())})});case iQ.j.SetDependencyStatus:return e.withMutations(function(e){var n=eW.default.fromJS(ej.fS).mergeDeep(eW.default.fromJS(t.status));e.set("dependencyStatus",n).set("dependencyStatusLoaded",!0)});case iQ.j.AppendToGenerateThumbnailQueue:var r=i3(t.tasks,e,i0.PUSH),i=r.newTaskDetail,o=r.newWaitingQueue;return e.withMutations(function(e){e.update("allTasks",function(e){return e.merge(i)}).set("waitingQueue",o)});case iQ.j.AppendLeftGenerateThumbnailQueue:var a=i3(t.tasks,e,i0.UNSHIFT),s=a.newTaskDetail,l=a.newWaitingQueue;return e.withMutations(function(e){e.update("allTasks",function(e){return e.merge(s)}).set("waitingQueue",l)});case iQ.j.AddRegenerateTasks:var u=i3(t.tasks,e,i0.PUSH),c=u.newTaskDetail,d=u.newWaitingQueue;return e.withMutations(function(e){e.update("allTasks",function(e){return e.merge(c)}).set("waitingQueue",d)});case iQ.j.ClearGenerateThumbnailQueue:return e.withMutations(function(e){e.setIn(["waitingQueue","tier1Queue"],eW.default.List()).setIn(["waitingQueue","tier2Queue"],eW.default.List()).setIn(["waitingQueue","tier3Queue"],eW.default.List()).setIn(["waitingQueue","tier4Queue"],eW.default.List()).set("allTasks",eW.default.Map()).set("currentTasks",eW.default.List())});case iQ.j.PopGenerateThumbnailQueueToCurrentTasks:var f=!0,p=!1,h=void 0;try{for(var m,g,v=i1[Symbol.iterator]();!(f=(g=v.next()).done);f=!0){var y=g.value;if(e.getIn(["waitingQueue",y]).size>0){m=y;break}}}catch(e){p=!0,h=e}finally{try{f||null==v.return||v.return()}finally{if(p)throw h}}if(!m)return e.set("currentTasks",eW.default.List()).set("allTasks",eW.default.Map());var b=null;if(m===i1[1]){var _=e.getIn(["dependencyStatus","desktopClient","suggestedBatchSize"]);b=e.getIn(["waitingQueue",m]).take(_)}else b=e.getIn(["waitingQueue",m]).take(1);var E=e.get("currentTasks").map(function(e){return e.get("unit_id")});return e.withMutations(function(t){t.updateIn(["waitingQueue",m],function(e){return e.skip(b.size)}).set("currentTasks",b.map(function(t){return e.getIn(["allTasks",t.toString()])})).update("allTasks",function(e){return e.filter(function(e){return!(null==E?void 0:E.includes(e.get("unit_id")))})})});case iQ.j.ClearCurrentExternalConvertTasks:var w=e.get("currentTasks").map(function(e){return e.get("unit_id")});return e.withMutations(function(e){e.set("currentTasks",eW.default.List()).update("allTasks",function(e){return e.filter(function(e){return!(null==w?void 0:w.includes(e.get("unit_id")))})})});case iQ.j.SetCompletedCategory:var S=t.category,T=t.completed;return e.setIn(["completedCategories",S],T);case iQ.j.SetOpenGenerateThumbnailQueue:return e.set("openQueue",t.open);case iQ.j.SetDependencyStatusLoaded:return e.set("dependencyStatusLoaded",t.loaded);default:return e}};(0,nF.q$)({});var i6=(0,nF.Ky)({GoBackAndScrollTo:"GO_BACK_AND_SCROLL_TO"}),i9=__webpack_require__(87827);function i8(e){var t,n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:return(0,nm.Hm)(),[4,eD(function(e){return e.getIn(["lightbox","item"])})];case 1:if(t=i.sent(),!e.isSimilarItem)return[3,5];return[4,eD(i9.Z.getTopPick)];case 2:return n=i.sent(),[4,eD(i9.Z.getCurrentPick)];case 3:if(r=i.sent(),!(n!==r))return[3,5];return[4,eD(i9.Z.getTopPickItem)];case 4:t=i.sent(),i.label=5;case 5:return[4,eS((0,iU.lP)(t))];case 6:return i.sent(),[2]}})}function i7(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eB(i6.GoBackAndScrollTo,i8)];case 1:return e.sent(),[2]}})}var oe=__webpack_require__(24460),ot=__webpack_require__(24801),on=__webpack_require__(42933),or=__webpack_require__(42632);function oi(e,t,n){var r,i=e.getIn(["photos",(0,or.A$)(e,t),"listBySection"]).keySeq().sort();return null!==(r=i.findLast(function(e){return n>e}))&&void 0!==r?r:i.last()}function oo(e,t,n,r,i){var o,a=[],s={sectionIdx:n,counter:i,dateIdx:t,item:(0,or.fX)(e,t,n,r),itemIdx:r,isReverseEndOfSection:function(){return this.itemIdx<0},isReverseEndOfDate:function(){return this.sectionIdx===e.getIn(["photos",(0,or.A$)(e,this.dateIdx),"listBySection"]).keySeq().sort().first()},done:function(){return this.counter<0},prev:function(){this.itemIdx-=1,this.counter-=1,this.isReverseEndOfSection()&&(this.isReverseEndOfDate()&&(this.dateIdx-=1),this.sectionIdx=oi(e,this.dateIdx,this.sectionIdx),this.itemIdx=-1+(0,or.nd)(e,this.dateIdx,this.sectionIdx).size),this.item=(0,or.fX)(e,this.dateIdx,this.sectionIdx,this.itemIdx),void 0===this.item&&(this.counter=-1)}},l=s.item.get("id");for(s.prev();!s.done()&&l!==(null===(o=s.item)||void 0===o?void 0:o.get("id"));s.prev())a.push({sectionNumber:s.sectionIdx,item:s.item});return a}function oa(e,t,n){var r,i=e.getIn(["photos",(0,or.A$)(e,t),"listBySection"]).keySeq().sort();return null!==(r=i.find(function(e){return e>n}))&&void 0!==r?r:i.first()}function os(e,t,n,r,i){var o,a={sectionIdx:n,dateIdx:t,counter:i,item:(0,or.fX)(e,t,n,r),itemIdx:r,isEndOfSection:function(){return this.itemIdx>=(0,or.nd)(e,this.dateIdx,this.sectionIdx).size},isEndOfDate:function(){return this.sectionIdx===e.getIn(["photos",(0,or.A$)(e,this.dateIdx),"listBySection"]).keySeq().sort().last()},done:function(){return this.counter<0},next:function(){this.counter-=1,this.itemIdx+=1,this.isEndOfSection()&&(this.isEndOfDate()&&(this.dateIdx=(this.dateIdx+1)%e.get("dates").size),this.itemIdx=0,this.sectionIdx=oa(e,this.dateIdx,this.sectionIdx)),this.item=(0,or.fX)(e,this.dateIdx,this.sectionIdx,this.itemIdx),void 0===this.item&&(this.counter=-1)}},s=[],l=a.item.get("id");for(a.next();!a.done()&&l!==(null===(o=a.item)||void 0===o?void 0:o.get("id"));a.next())s.push({sectionNumber:a.sectionIdx,item:a.item});return s}var ol=__webpack_require__(88699);function ou(e){return{type:rH.j.ScrollToFolderPhotoWallItem,item:e}}function oc(e){return{type:rH.j.UnlockFolderInFolderTree,id:e}}function od(e,t){var n,r,i,o,s,l=arguments;return(0,a.Jh)(this,function(a){switch(a.label){case 0:for(r=Array((n=l.length)>2?n-2:0),i=2;i<n;i++)r[i-2]=l[i];a.label=1;case 1:return[4,ew(e)];case 2:if(s=a.sent(),!o)return[3,4];return[4,ex(o)];case 3:a.sent(),a.label=4;case 4:if(s.cancel)return[3,6];return[4,eA.apply(void 0,[t].concat((0,eG._)(r.concat(s))))];case 5:o=a.sent(),a.label=6;case 6:return[3,1];case 7:return[2]}})}function of(e){var t;return(0,a.Jh)(this,function(n){switch(n.label){case 0:return e===ej.v.TIMELINE||e===ej.v.RECENTLY_ADDED?t=[ej.ZP.ALBUM_TYPE.TIMELINE]:e===ej.v.PHOTOWALL?t=["albumReducer"]:e===ej.v.FOLDER_PHOTOWALL&&(t=["folderReducer"]),[4,eD(function(e){return e.getIn(t)})];case 1:return[2,n.sent()]}})}function op(e,t,n){var r=n.id,i=-1,o=-1,a=-1;if(t===ej.v.TIMELINE||t===ej.v.RECENTLY_ADDED){var s,l=(0,or.kU)(t,n.time,n.indexed_time),u=(0,on.Z)(l);i=(s=(0,oe._)((0,or.j7)(e,r,u,l,t),3))[0],o=s[1],a=s[2]}else o=e.getIn(["photowall","items"]).findIndex(function(e){return e.get("id")===n.id});return{sectionNumber:i,itemIndex:o,dateIndex:a}}function oh(e){var t=e.sectionNumber,n=e.dateIndex,r=e.itemIndex,i=e.isLoaded;return!(t<0)&&!(n<0)&&!(r<0)&&!!i}function om(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=n.sectionNumber,a=n.dateIndex,s=n.itemIndex,l=[],u=[];if(t===ej.v.TIMELINE||t===ej.v.RECENTLY_ADDED){if(!oh({sectionNumber:o,dateIndex:a,itemIndex:s,isLoaded:e.get("isLoaded")}))return{prevItem:l,nextItem:u};l=oo(e,a,o,s,i),u=os(e,a,o,s,r)}else{var c=e.getIn(["photowall","items"]).size;l=Array.from(Array(i).keys()).map(function(e){return s-e+1-i}).map(function(e){return(e%c+c)%c}).map(function(t){return{idx:t,item:e.getIn(["photowall","items",t])}}),u=Array.from(Array(r).keys()).map(function(e){return s+e+1}).map(function(e){return(e%c+c)%c}).map(function(t){return{idx:t,item:e.getIn(["photowall","items",t])}})}return{prevItem:l.filter(function(e){return e&&e.item}).map(function(e){return e.item.toJS()}).reverse(),nextItem:u.filter(function(e){return e&&e.item}).map(function(e){return e.item.toJS()})}}function og(e,t,n){var r=t,i=n,o=(0,eG._)(r).concat([e],(0,eG._)(i)).reduce(function(e,t){return e.find(function(e){return e.id===t.id})||e.push(t),e},[]);return i.length>0&&o.length<4&&(i=[i.shift()]),i.length>0&&4===o.length&&i.pop(),r.length>0&&o.length<6&&(r=[r.pop()]),{reducedPrevItem:r,reducedNextItem:i}}function ov(e,t,n){var r=n.dateIndex,i=n.itemIndex,o=n.sectionNumber,a=!1;if(t===ej.v.TIMELINE||t===ej.v.RECENTLY_ADDED){if(a=oh({sectionNumber:o,dateIndex:r,itemIndex:i,isLoaded:e.get("isLoaded")}),function(){return 0===o&&0===r&&0===i}())return!1}else t===ej.v.PHOTOWALL?a=i>0:t===ej.v.FOLDER_PHOTOWALL&&(a=i>0);return a}function oy(e,t,n){var r=n.dateIndex,i=n.itemIndex,o=n.sectionNumber,a=!1;if(t===ej.v.TIMELINE||t===ej.v.RECENTLY_ADDED){if(!oh({sectionNumber:o,dateIndex:r,itemIndex:i,isLoaded:e.get("isLoaded")}))return!1;var s=function(){return(0,or.fX)(e,r,o,i).get("id")===e.getIn(["photos",(0,or.A$)(e,r),"idArray",-1])};a=!(function(){return r===e.get("dates").size-1}()&&s())}else t===ej.v.PHOTOWALL?a=i>=0&&i<e.getIn(["album","current","itemCount"])-1:t===ej.v.FOLDER_PHOTOWALL&&(a=i>=0&&i<e.getIn(["photowall","items"]).size-1);return a}function ob(e){var t,n,r,i,o,s,l,u;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return[4,eD(function(e){return e.get("lightbox")})];case 1:return[4,of(n=(t=a.sent()).get("type",""))];case 2:return i=op(r=a.sent(),n,e),[4,eS((0,tJ.h0)((0,t1._)((0,t0._)({},t.getIn(["status"]).toJS()),{hasPrev:ov(r,n,i),hasNext:oy(r,n,i)})))];case 3:return a.sent(),l=(s=og(e,(o=om(r,n,i)).prevItem,o.nextItem)).reducedPrevItem,u=s.reducedNextItem,[4,eS((0,tJ.mU)(e,l,u))];case 4:return a.sent(),[2]}})}function o_(e){var t,n,r,i,o,s,l,u,c,d,f,p;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,7,,8]),t=e.itemId,n=e.passphrase,r=e.albumId,i=e.ItemAPI,o=e.UnitAPI,s=e.SimilarItemAPI,l=e.enableSimilarSelector,u=e.getSimilarGroupInfoAction,[4,eD(l)];case 1:return c=a.sent(),d=(0,np.AZ)(),f=c&&((0,nh.hz)(d)||(0,nh.p7)(d))?s:i,[4,nJ([t],{passphrase:n,albumId:r},f,o)];case 2:if(!(p=a.sent()))return(0,nm.Hm)(),[2];return[4,eS((0,iU.lP)(eW.default.fromJS(p)))];case 3:return a.sent(),[4,ob(p)];case 4:if(a.sent(),!p.similar)return[3,6];return[4,eS(u(p.similar))];case 5:a.sent(),a.label=6;case 6:return[3,8];case 7:return nk({error:a.sent()}),[3,8];case 8:return[2]}})}function oE(){var e,t,n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:return[4,eD(function(e){return e.get("lightbox")})];case 1:if(t=(e=i.sent()).getIn(["item","id"],0),n=e.getIn(["lightbox","prevItem"],[]),r=e.getIn(["lightbox","nextItem"],[]),0===t||2===n.size&&3===r.size)return[2];return[4,eD(function(e){return e.getIn(["lightbox","item"])})];case 2:return[4,ob(i.sent().toJS())];case 3:return i.sent(),[2]}})}function ow(e){var t,n,r,i,o,s,l,u,c,d;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(t=(0,np.AZ)(),(0,nh.xr)(t))return[2];if(r=(n=e.option).id,i=n.viewType,o=n.slideshow?"/".concat(t7.Z.SLIDESHOW):"",s=r,!i)return[3,5];if(i!==ej.bW.TIMELINE)return[3,2];return[4,eD(function(e){return e.getIn(["timeline","rows",1,"list",1,"photo","id"])})];case 1:return l=a.sent(),[3,4];case 2:return[4,eD(function(e){return e.getIn(["folderReducer","photowall","items",0,"id"])})];case 3:l=a.sent(),a.label=4;case 4:s=l,a.label=5;case 5:return c=(u=(0,eZ.k$)("".concat(t,"/").concat(t7.Z.ITEM,"/").concat(s).concat(o),(0,np.Tw)())).pathname,d=u.state,(0,np.fv)(c,d),[2]}})}function oS(e){var t=(0,np.AZ)().replace(/item\/\d+/,"".concat(t7.Z.ITEM,"/").concat(e));return(0,eZ.k$)(t,(0,np.Tw)())}function oT(){var e,t,n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,eS((0,tJ.RD)(!1))];case 1:return r.sent(),t=(e=(0,eZ.k$)("".concat((0,np.AZ)(),"/").concat(t7.Z.SLIDESHOW),(0,np.Tw)())).pathname,n=e.state,(0,np.fv)(t,n),[2]}})}function oO(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eD(function(e){var t=e.getIn(["lightbox","prevItem"]);return t.get(t.size-1)})];case 1:return[4,eI(oA,e.sent())];case 2:return e.sent(),[2]}})}function oI(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eD(function(e){return e.getIn(["lightbox","nextItem",0])})];case 1:return[4,eI(oA,e.sent())];case 2:return e.sent(),[2]}})}function oA(e){var t;return(0,a.Jh)(this,function(n){switch(n.label){case 0:if(!e)return[3,3];return[4,eS((0,iU.lP)(e))];case 1:return n.sent(),[4,eS((0,ol.uX)())];case 2:n.sent(),t=oS(e.get("id")),(0,np.fv)(t.pathname,t.state),n.label=3;case 3:return[2]}})}function oC(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eR(3e3)];case 1:return e.sent(),[4,eS((0,iU.OW)())];case 2:return e.sent(),[2]}})}function ox(e){var t;return(0,a.Jh)(this,function(n){switch(n.label){case 0:return[4,eD(function(e){return e.getIn(["lightbox","type"],"")})];case 1:if(!((t=n.sent())===ej.v.TIMELINE||t===ej.v.RECENTLY_ADDED))return[3,3];return[4,eS(iB(e.item))];case 2:case 4:return n.sent(),[3,7];case 3:if(t!==ej.v.PHOTOWALL)return[3,5];return[4,eS(iu(e.item))];case 5:if(t!==ej.v.FOLDER_PHOTOWALL)return[3,7];return[4,eS(ou(e.item))];case 6:n.sent(),n.label=7;case 7:return[2]}})}function oD(e){var t,n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return t=e.prevItem,n=e.nextItem,[4,eS((0,tJ.RD)(!1))];case 1:if(r.sent(),!n)return[3,3];return[4,eI(oA,n)];case 2:case 4:return r.sent(),[3,6];case 3:if(!t)return[3,5];return[4,eI(oA,t)];case 5:(0,nm.Hm)(),r.label=6;case 6:return[2]}})}function oR(e){var t,n,r,i,o,s,l;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),t=e.itemId,n=e.passphrase,r=e.albumId,i=e.ItemAPI,o={id:[t]},r?o.album_id=r:n&&(o.passphrase=n),[4,eI(i,o)];case 1:return s=a.sent(),l=[],s.list.length>0&&s.list[0].id===t&&(l=s.list[0].exif),[4,eS((0,tJ.JN)(l))];case 2:return a.sent(),[3,4];case 3:return nk({error:a.sent()}),[3,4];case 4:return[2]}})}function oL(e){var t,n,r,i;return(0,a.Jh)(this,function(o){switch(o.label){case 0:t=e.folderId,n=e.FolderAPI,o.label=1;case 1:return o.trys.push([1,4,,6]),[4,eI(n,{id:t})];case 2:return r=o.sent(),[4,eS((0,tJ.ju)(t,r.folder.name))];case 3:case 5:return o.sent(),[3,6];case 4:return i=o.sent(),[4,eS((0,tJ._f)([t]))];case 6:return[2]}})}function ok(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eT([eU(ot.qA.LoadLightboxItem,o_),eU(ot.qA.OpenLightbox,ow),eU(ot.qA.GotoPrevLightboxItem,oO),eU(ot.qA.GotoNextLightboxItem,oI),eU(ot.qA.UpdateLightboxScrollToItem,ox),eU(ot.qA.LightboxClearup,oD),od(ot.qA.GotoNextLightboxItemDelay,oC),od(ot.qA.UpdateLightboxNeighborItem,oE),eU(ot.qA.EnterSlideshow,oT),eU(ot.qA.LoadLightboxItemDetail,oR),eU(ot.qA.LoadLightboxItemFileLocation,oL)])];case 1:return e.sent(),[2]}})}var oM=(0,nF.q$)({UpdateFavorite:"UPDATE_FAVORITE",UpdateLightboxFavorite:"UPDATE_LIGHTBOX_FAVORITE"});(0,nF.Ky)({BatchSetFavorite:"BATCH_SET_FAVORITE"});var oP=__webpack_require__(65829);function oN(e,t){var n=e<5,r=e,i=9-e,o=(r-1)%4>=2?2:-2,a=n?-4:4,s=e;return t===ej.ZP.ROTATION.CLOCKWISE?s=1&e?i+o:i:t===ej.ZP.ROTATION.COUNTER_CLOCKWISE?s=1&e?i:i+o:t===ej.ZP.ROTATION.ROTATE_180?s=r+(0-o):t===ej.ZP.ROTATION.FLIP_VERTICAL?s=i+a:t===ej.ZP.ROTATION.FLIP_HORIZONTAL&&(s=i+o+a),s}function oF(e,t){return t===ej.ZP.ROTATION.CLOCKWISE||t===ej.ZP.ROTATION.COUNTER_CLOCKWISE?e.set("width",e.get("height")).set("height",e.get("width")):e}var oB=__webpack_require__(4040),oU=eW.default.fromJS({pathInfo:{},type:"",itemId:0,origItemId:0,origItemTime:0,item:{id:0,additional:{description:"",resolution:{},tag:[],thumbnail:{},favorite:!1}},unit:[],nextItem:[],prevItem:[],passphrase:"",status:{displayTips:!1,hasPrev:!1,hasNext:!1,zoomMode:!1,generatingThumbnail:!1,peopleShowMore:!1,needRefreshTimeline:!1},infoPanel:{itemDetail:[],fileLocations:{}}});function oH(e){return e.type===ej.ZP.ALBUM_TYPE.FOLDER?ej.v.FOLDER_PHOTOWALL:e.type===ej.ZP.ALBUM_TYPE.ALBUM||e.type===ej.ZP.ALBUM_TYPE.SHARING?ej.v.PHOTOWALL:e.type===ej.ZP.ALBUM_TYPE.RECENTLY_ADDED?ej.v.RECENTLY_ADDED:ej.v.TIMELINE}var oj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oU,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n5.LocationChange:var n=t.payload.pathname;if(!(0,nh.xr)(n))return oU.setIn(["infoPanel","fileLocations"],e.getIn(["infoPanel","fileLocations"])).setIn(["status","generatingThumbnail"],e.getIn(["status","generatingThumbnail"])).setIn(["status","needRefreshTimeline"],e.getIn(["status","needRefreshTimeline"]));var r=(0,n6.o$)(n);return e.set("type",oH(r)).set("itemId",r.itemId).set("pathInfo",r).set("passphrase",r.passphrase).set("origItemId",r.itemId);case ot.j.SetLightboxItem:return e.set("item",eW.default.fromJS(t.item)).setIn(["item","current"],!0).set("prevItem",eW.default.fromJS(t.prevItem)).set("nextItem",eW.default.fromJS(t.nextItem)).set("origItemTime",t.item.time);case ot.j.SetLightboxItemValue:var i=t.item,o=i.key,a=i.value;return e.set("item",(0,oB.$G)(e.get("item"),o,a));case ot.j.SetLightboxStatus:return e.set("status",eW.default.fromJS(t.status));case ot.j.SetDisplayTips:return e.setIn(["status","displayTips"],t.isDisplay);case ot.j.SetPeopleShowMore:return e.setIn(["status","peopleShowMore"],t.isShowMore);case ot.j.SetLightboxUnit:return e.set("unit",eW.default.fromJS(t.unit));case ot.j.ClearLightboxUnit:return e.set("unit",eW.default.fromJS([]));case ot.j.SetLightboxItemOrientation:var s=oN(e.getIn(["item","additional","orientation"]),t.orientationAction),l=oF(e.getIn(["item","additional","resolution"]),t.orientationAction);return e.setIn(["item","additional","orientation"],s).setIn(["item","additional","resolution"],l);case ot.j.SetZoomMode:return e.setIn(["status","zoomMode"],t.status);case ot.j.SetLightboxGeneratingThumbnail:return e.setIn(["status","generatingThumbnail"],t.status);case ot.j.SetLightboxItemDetail:return e.setIn(["infoPanel","itemDetail"],eW.default.fromJS(t.detail));case ot.j.SetLightboxItemFileLocation:return e.setIn(["infoPanel","fileLocations",t.folderId],t.path);case ot.j.DeleteLightboxItemFileLocation:var u=e.getIn(["infoPanel","fileLocations"]);return u=u.withMutations(function(e){t.folderIds.forEach(function(t){e.delete(t)})}),e.setIn(["infoPanel","fileLocations"],u);case ot.j.AddLightboxTags:var c,d=t.addedTags.map(function(e){return{id:e.id,name:e.name}});return e.updateIn(["item","additional","tag"],function(e){return(c=e).push.apply(c,(0,eG._)(eW.default.fromJS(d)))});case ot.j.RemoveLightboxTags:return e.updateIn(["item","additional","tag"],function(e){return e.filter(function(e){return!t.removedTags.some(function(t){return t.id===e.get("id")})})});case ot.j.UpdateLightboxRating:return e.setIn(["item","additional","rating"],t.rating);case ot.j.UpdateLightboxFaces:return e.setIn(["item","additional","person"],eW.default.fromJS(t.person));case ot.j.UpdateLightboxForSimilarItem:var f=t.item;return e.set("itemId",f.id).set("item",eW.default.fromJS(f)).setIn(["item","current"],!0);case oP.j.ResetSimilar:return e.deleteIn(["item","similar"]);case ot.j.SetLightboxNeedRefreshTimeline:return e.setIn(["status","needRefreshTimeline"],t.needRefreshTimeline);case oP.j.RemoveSimilarObject:if(t.similarItemsMap.size>1||!e.hasIn(["item","similar"]))return e;var p=t.similarItemsMap.first().get("newItemIds");if(p.size<=1)return e.deleteIn(["item","similar"]);return e.setIn(["item","similar","item_id"],p).setIn(["item","similar","count"],p.size);case oM.UpdateLightboxFavorite:case oM.UpdateFavorite:var h=t.itemIds,m=t.favorite;if(!e.hasIn(["item","id"])||!h.includes(e.getIn(["item","id"])))return e;return e.setIn(["item","additional","favorite"],m);default:return e}},oV=__webpack_require__(92475),oz=eW.default.fromJS((n={},(0,r4._)(n,ej.ZP.GLOBAL_TOOLTIP_ID,!1),(0,r4._)(n,ej.ZP.GLOBAL_WARNING_TOOLTIP_ID,!1),(0,r4._)(n,ej.ZP.GLOBAL_WHITE_TOOLTIP_ID,!1),n)),oZ=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oz,t=arguments.length>1?arguments[1]:void 0;return t.type===oV.j.SetMobileTooltipsOpen?e.set(t.tooltipsId,t.isOpen):e},oG=(0,nF.q$)({SetSharingPasswordInfo:"SET_SHARING_PASSWORD_INFO",SetSharingIsWrongPassword:"SET_SHARING_IS_WRONG_PASSWORD",ResetSharingPasswordInfo:"RESET_SHARING_PASSWORD_INFO"}),oW=(0,nF.Ky)({VerifySharingPassword:"VERIFY_SHARING_PASSWORD"});function oq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isNeedPassword,n=void 0===t||t,r=e.sharingId,i=void 0===r?"":r,o=e.passwordAction,a=void 0===o?{}:o,s=e.isWrongPassword,l=void 0!==s&&s;return{type:oG.SetSharingPasswordInfo,isNeedPassword:n,sharingId:i,passwordAction:a,isWrongPassword:l}}function oY(e){return{type:oG.SetSharingIsWrongPassword,isWrongPassword:e}}function o$(){return{type:oG.ResetSharingPasswordInfo}}var oK={getIsNeedPassword:function(e){return e.getIn(["passwordSharing","isNeedPassword"])},getIsWrongPassword:function(e){return e.getIn(["passwordSharing","isWrongPassword"])},getPasswordAction:function(e){return e.getIn(["passwordSharing","passwordAction"])},getSharingId:function(e){return e.getIn(["passwordSharing","sharingId"])}};function oX(e){var t,n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:return[4,eD(oK.getSharingId)];case 1:return t=i.sent(),[4,eD(oK.getPasswordAction)];case 2:n=i.sent(),i.label=3;case 3:return i.trys.push([3,10,,13]),[4,eI(nZ,t,e.password)];case 4:if(i.sent(),!n.type)return[3,8];if(n.type!==oW.GetCurrentFolder)return[3,6];return[4,eS(oc(n.id))];case 5:i.sent(),i.label=6;case 6:return[4,eS(n)];case 7:i.sent(),i.label=8;case 8:return[4,eS(o$())];case 9:return i.sent(),[3,13];case 10:if((r=i.sent()).code!==ej.ZQ.WRONG_PROTECT_PASSWD)return[3,12];return[4,eS(oY(!0))];case 11:return i.sent(),[2];case 12:return nk({error:r}),[3,13];case 13:return[2]}})}function oQ(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eU(oW.VerifySharingPassword,oX)];case 1:return e.sent(),[2]}})}var oJ=eW.default.fromJS({isNeedPassword:!1,sharingId:"",passwordAction:{},isWrongPassword:!1}),o0=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oJ,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case oG.SetSharingPasswordInfo:return e.withMutations(function(e){e.set("isNeedPassword",t.isNeedPassword).set("sharingId",t.sharingId).set("passwordAction",t.passwordAction).set("isWrongPassword",t.isWrongPassword)});case oG.SetSharingIsWrongPassword:return e.set("isWrongPassword",t.isWrongPassword);case oG.ResetSharingPasswordInfo:return oJ;default:return e}},o1=__webpack_require__(45527),o2=eW.default.fromJS({immediate:!1,exitLightbox:!1}),o4=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o2,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o1.j.SetRefresh:if(t.refreshCurrent)return e.set("immediate",!0);return e;case o1.j.SetRefreshOnLightboxExit:return e.set("exitLightbox",!0);case o1.j.ClearRefresh:return o2;case n5.LocationChange:var n=t.payload.pathname;if(e.get("exitLightbox")&&!(0,nh.xr)(n))return e.set("immediate",!0).set("exitLightbox",!1);return e;default:return e}},o3=eW.default.fromJS({locationBeforeTransitions:null,library:(0,n6.y0)()});function o5(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o3,t=arguments.length>1?arguments[1]:void 0;return t.type===n5.LocationChange?e.withMutations(function(n){n.set("locationBeforeTransitions",t.payload);var r=(0,n6.Uw)(t.payload.pathname);""!==r&&r!==e.get("library")&&n.set("library",r),localStorage.setItem("currentLocation",JSON.stringify(t.payload))}):e}var o6=__webpack_require__(66902);function o9(){var e={};return ej.Hl.forEach(function(t){e[t]=eW.default.Set()}),eW.default.fromJS(e)}function o8(){var e={};return ej.Dp.forEach(function(t){e[t]=eW.default.Set()}),eW.default.fromJS(e)}function o7(e){return e?o8():o9()}function ae(e){return e?ej.Dp:ej.Hl}function at(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.set("selectType",ej.RT.ITEM).set("selectMode",!0).set("selectedSet",o7(t)).set("selectedMap",eW.default.Map()).set("previewSet",eW.default.fromJS({item:eW.default.Set(),folder:eW.default.Set()}))}function an(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=o7(n),i=eW.default.Map();return e.withMutations(function(n){var o=n;return e.get("selectType")===t.selectType?(r=e.get("selectedSet"),i=e.get("selectedMap")):ej.RT.NONE===e.get("selectType")?o=o.set("selectType",t.selectType):(r=e.get("selectedSet"),i=e.get("selectedMap"),o=o.set("selectType",ej.RT.ITEM_FOLDER)),o.setIn(["selectedSet",t.selectType],r.get(t.selectType).union(t.idArray)).set("selectedMap",i.merge(t.infoMap)).set("selectMode",!0).set("lastSelected",eW.default.fromJS({type:t.selectType,id:t.idArray[t.idArray.length-1]})).setIn(["previewSet",t.selectType],eW.default.Set())})}function ar(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getIn(["selectedSet",t.selectType]).filter(function(e){return -1===t.idArray.indexOf(e)}),i=e.get("selectedMap");if(t.idArray.forEach(function(e){i=i.delete(e.toString())}),e.get("actionType")!==ej.Us.General||r.size>0)return e.setIn(["selectedSet",t.selectType],r).set("selectedMap",i).set("lastSelected",eW.default.fromJS({type:"",id:0}));var o=e,a=!0;return ae(n).forEach(function(n){n!==t.selectType&&0!==e.getIn(["selectedSet",n]).size&&(o=o.set("selectType",n),a=!1)}),a?o.set("selectedSet",o7(n)).set("selectedMap",eW.default.Map()).set("selectMode",!1).set("selectType",n?ej.RT.ITEM:ej.RT.NONE).set("actionType",ej.Us.General).set("lastSelected",eW.default.fromJS({type:"",id:0})):o.setIn(["selectedSet",t.selectType],r).set("selectedMap",i).set("lastSelected",eW.default.fromJS({type:"",id:0}))}var ai=eW.default.fromJS({selectMode:!1,selectType:ej.RT.NONE,selectedSet:o9(),selectedSetOrigin:eW.default.Set(),selectedMap:eW.default.Map(),previewSet:{item:eW.default.Set(),folder:eW.default.Set()},actionType:ej.Us.General,lastSelected:{type:"",id:0},isDragged:!1});function ao(e,t,n){return e.set("selectType",n).set("actionType",t).set("selectMode",!0).set("selectedSet",o9()).set("selectedMap",eW.default.Map())}var aa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ai,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n5.LocationChange:var n=t.payload,r=n.pathname;if(null===n.key&&(!r||"/"===r))return e;return ai;case o6.j.AddSelectedBarSelect:return an(e,t);case o6.j.RemoveSelectedBarSelect:return ar(e,t);case o6.j.SetPreviewSelect:return e.setIn(["previewSet",t.itemType],eW.default.Set(t.idArray));case o6.j.RemovePreviewSelect:return e.set("previewSet",eW.default.fromJS({item:eW.default.Set(),folder:eW.default.Set()}));case o6.j.ClearSelectedBarSelect:return ai;case o6.j.EnterCreateAlbum:return at(e).set("actionType",ej.Us.CreateAlbum);case o6.j.EnterPersonEdition:return ao(e,t.actionType,ej.RT.PERSON);case o6.j.EnterConceptEdition:return ao(e,t.actionType,ej.RT.CONCEPT);case o6.j.SetSelectedIsDragged:return e.set("isDragged",t.isDragged);case o6.j.LeaveCreateAlbum:return ai;case o6.j.EnterSelectItemMode:return at(e);default:return e}},as=__webpack_require__(38478),al=__webpack_require__(55585),au={getFileLocations:function(e){return e.getIn(["lightbox","infoPanel","fileLocations"])},getFilename:function(e){return e.getIn(["lightbox","item","filename"])},getItem:function(e){return e.getIn(["lightbox","item"])},getItemDetail:function(e){return e.getIn(["lightbox","infoPanel","itemDetail"])},getItemId:function(e){return e.getIn(["lightbox","itemId"])},getIsPeopleShowMore:function(e){return e.getIn(["lightbox","status","peopleShowMore"])},getNextItem:function(e){return e.getIn(["lightbox","nextItem"],eW.default.List())},getPassphrase:function(e){return e.getIn(["lightbox","passphrase"],"")},getPersonDataInLightbox:function(e){return e.getIn(["lightbox","item","additional","person"],eW.default.List())},getPrevItem:function(e){return e.getIn(["lightbox","prevItem"],eW.default.List())},getStatus:function(e){return e.getIn(["lightbox","status"])},getRating:function(e){return e.getIn(["lightbox","item","additional","rating"])},getUnit:function(e){return e.getIn(["lightbox","unit"],eW.default.List())}},ac=__webpack_require__(50507),ad=__webpack_require__(92987),af=__webpack_require__(96994),ap=__webpack_require__(72181),ah=__webpack_require__(92319);function am(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(e),r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,u=l.getIn(["additional","sharingInfo","enable_password"]),c=l.getIn(["additional","passwordVerified"],!0);if(n.has(l.get("id"))&&!c&&u)return!0}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return!1}function ag(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return!!am(e,t)&&((0,tK.Z)((0,tQ.n6)("app","select_locked_password_folder")),!0)}function av(e){var t,n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:if(t={itemArray:[],folderArray:[],personArray:[],selectCount:0},!nY(e))return[3,2];return[4,eD(au.getItemId)];case 1:return t.itemArray=[i.sent()],t.folderArray=[],t.selectCount=1,[3,7];case 2:if(!n$(e))return[3,5];return[4,eD(function(e){return e.getIn(["selectedBar","selectedSet"])})];case 3:return n=i.sent(),[4,eD(ac.Z.getSelectedItemIdSetIncludingSimilarChildren)];case 4:return t.itemArray=i.sent(),t.folderArray=n.get(ej.RT.FOLDER).toJS(),t.personArray=n.get(ej.RT.PERSON).toJS(),t.selectCount=t.itemArray.length+t.folderArray.length+t.personArray.length,[3,7];case 5:if(!nK(e))return[3,7];return[4,eD(ad.Z.getSelectedItemIdSetIncludingSimilarChildren)];case 6:r=i.sent(),t.itemArray=r,t.selectCount=r.length,i.label=7;case 7:return[2,t]}})}function ay(e,t){var n,r,i,o,s,l,u,c,d,f,p,h,m,g,v,y,b,_,E;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return n=e.library,r=e.downloadType,i=e.downloadApi,o=nY(e.selectedSource),s=nK(e.selectedSource),[4,eD(ac.Z.getSelectType)];case 1:if(l=a.sent(),!o)return[3,2];return l=ej.RT.ITEM,[3,4];case 2:if(!s)return[3,4];return[4,eD(ad.Z.getSelectType)];case 3:l=a.sent(),a.label=4;case 4:return[4,eD(af.Z.getAlbumType)];case 5:if(u=a.sent(),c=n,d={},!(u===ej.ZP.ALBUM_TYPE.ALBUM||u===ej.ZP.ALBUM_TYPE.SHARING))return[3,11];return[4,eD(ap.Z.getUserId)];case 6:return f=a.sent(),[4,eD(function(e){return e.getIn(["albumReducer","album","current","ownerUserId"])})];case 7:if(p=a.sent(),c=t7.Z.PERSONAL_SPACE,f!==p)return[3,9];return[4,eD(function(e){return e.getIn(["actionBar","id"])})];case 8:return d.albumId=a.sent(),[3,11];case 9:return[4,eD(function(e){return e.getIn(["actionBar","info","passphrase"])})];case 10:d.passphrase=a.sent(),a.label=11;case 11:if(h=t.itemArray,m=t.folderArray,!(g=u===ej.ZP.ALBUM_TYPE.FOLDER))return[3,13];return v=[m],[4,eD(ah.Z.getSubfoldersInFolderView)];case 12:g=ag.apply(void 0,v.concat([a.sent()])),a.label=13;case 13:if(g)return[2];if(!(l!==ej.RT.NONE))return[3,26];if(y="",!(1===h.length&&0===m.length))return[3,22];if(!o)return[3,15];return[4,eD(au.getFilename)];case 14:case 16:return y=a.sent(),[3,19];case 15:if(!s)return[3,17];return[4,eD(function(e){return e.getIn(["embededSelected","selectedMap",h[0].toString(),"filename"])})];case 17:return b=h[0],[4,eD(function(e){return e.getIn(["selectedBar","selectedMap",b.toString(),"filename"])})];case 18:y=a.sent(),a.label=19;case 19:if(r!==ej._5.ORIGINAL_SIZE_JPEG)return[3,22];return[4,eC(as.Z,{notificationType:ej.ZP.ALBUM_NOTIFICATION_TYPE.PURE_DIV_TEXT,textProps:{text:(0,tQ.n6)("app","download_start_after_conversion")}})];case 20:return a.sent(),[4,eI(ab,h[0],d,i)];case 21:if(!a.sent())return[2];a.label=22;case 22:return _=!SYNO.SDS.Session.isLogined,[4,eD(r6.Z.getWizardInteractiveBox)];case 23:if(E=a.sent(),!(r===ej._5.OPTIMIZED_JPEG&&(h.length>1||m.length>0)&&(_||E.some(function(e){return e.get("name")===ej.s3.DOWNLOAD_MULTIPLE_ITEMS&&e.get("show")}))))return[3,25];return[4,eI(nq,E,!_)];case 24:a.sent(),a.label=25;case 25:iD(h,m,d,c,r,y),a.label=26;case 26:return[2]}})}function ab(e,t,n){var r,i,o,s,l;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(r=t.albumId,i=t.passphrase,iL())return[2,!1];o={item_id:e},r?o.album_id=r:i&&(o.passphrase=i),a.label=1;case 1:return a.trys.push([1,3,,5]),[4,eI(n.convert,o)];case 2:return a.sent(),[3,5];case 3:return s=a.sent(),l=(0,tQ.n6)("error","convert_to_original_size_jpeg_fail"),[4,eI(nk,{error:s,customWebapiErrorMessages:Object.fromEntries(Object.entries(ej.ZQ).map(function(e){var t=(0,oe._)(e,2);return[(t[0],t[1]),l]}))})];case 4:return a.sent(),[2,!1];case 5:return[2,!0]}})}function a_(e,t){return(0,a.Jh)(this,function(n){switch(n.label){case 0:if(!t.setupAction)return[3,2];return[4,eS(t.setupAction)];case 1:n.sent(),n.label=2;case 2:return[4,av(t.selectedSource)];case 3:return[4,e(t,n.sent())];case 4:if(n.sent()!==ej.uE.CANCEL)return[3,7];if(!t.cancelAction)return[3,6];return[4,eS(t.cancelAction)];case 5:n.sent(),n.label=6;case 6:return[3,9];case 7:if(!t.clearupAction)return[3,9];return[4,eS(t.clearupAction)];case 8:n.sent(),n.label=9;case 9:return[2]}})}function aE(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eB(al.q.HandleDownload,a_,ay)];case 1:return e.sent(),[2]}})}var aw=__webpack_require__(73029),aS={enabled:!1,enable_person:!1,enable_concept:!1,enable_similar:!1},aT={team_space_permission:"none",timeline_group_unit:"day",show_item_info_in_lightbox:!1,item_sort_by:"takentime",sort_direction:"asc",is_ge_dsm71:!0,ame_status:{is_ame_install:!1,is_ame_v2:!1,has_license:!1,has_hevc:!1},enable_concept:!1,preview_theme:"",auto_generate_thumbnail:!1,enable_person:!1,enable_similar:!1},aO=eW.default.fromJS({admin_setting:{enable_person:!1,enable_concept:!1,enable_similar:!0},team_setting:aS,user_setting:aT,guest_setting:{default_thumbnail_size:"sm",display_photo_info_to_guest:!1,enable_team_space:!1,enable_home_service:!1},info:{},wizard_info:{info:{},tip:[],wizard:[],prompt:[],hint:[],interactive_box:[]},folder_view_thumbnail_size:ej.sk.Medium,loaded:!1,cache_size:{size_byte:0,calculating:!0,clearingConvertedFile:!0}}),aI=function(e,t,n){return e.withMutations(function(e){Object.entries(t.setting).forEach(function(t){var r=(0,oe._)(t,2),i=r[0],o=r[1];void 0!==o&&e.setIn([n,i],o)})})},aA=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:aO,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case aw.j.LoadAdminSetting:return e.set("admin_setting",eW.default.fromJS(t.setting));case aw.j.LoadTeamSetting:return e.set("team_setting",eW.default.fromJS(t.setting));case aw.j.LoadUserSetting:var n=t.setting;return n.date_format=n.date_format.toUpperCase(),e.set("user_setting",eW.default.fromJS(n));case aw.j.LoadWizardInfo:var r,i=(r={},(0,r4._)(r,ej.en.FACIAL,e.getIn(["admin_setting","enable_person"])),(0,r4._)(r,ej.en.CONCEPT,e.getIn(["admin_setting","enable_concept"])),(0,r4._)(r,ej.en.SIMILAR,e.getIn(["admin_setting","enable_similar"])),r),o=t.wizardInfo.wizard.filter(function(e){return!(e.name in i)||!!i[e.name]});return e.set("wizard_info",eW.default.fromJS((0,t1._)((0,t0._)({},t.wizardInfo),{wizard:o})));case aw.j.SetSettingLoaded:return e.set("loaded",!0);case aw.j.SetFolderViewThumbnailSizeStore:return e.set("folder_view_thumbnail_size",t.thumbnailSize);case aw.j.UpdateAdminSettingStore:return aI(e,t,"admin_setting");case aw.j.LoadGuestSetting:return e.set("guest_setting",eW.default.fromJS(t.setting)).set("loaded",!0);case aw.j.UpdateUserSettingStore:return aI(e,t,"user_setting");case aw.j.UpdateTeamSettingStore:return aI(e,t,"team_setting");case aw.j.UpdateWizardInfoStore:return e.withMutations(function(e){Object.entries(t.setting).forEach(function(t){var n=(0,oe._)(t,2),r=n[0],i=n[1];void 0!==i&&e.setIn(["wizard_info",r],eW.default.fromJS(i))})});case aw.j.InitTeamSettingStore:return e.set("team_setting",eW.default.fromJS(aS));case aw.j.SetCacheSize:return e.set("cache_size",eW.default.fromJS({size_byte:t.cacheSize,calculating:t.isCalculating}));case aw.j.SetIsClearingConvertedFile:return e.setIn(["cache_size","clearingConvertedFile"],t.isClearingConvertedFile);default:return e}},aC=__webpack_require__(89250),ax=__webpack_require__(15593),aD=__webpack_require__(23930),aR=__webpack_require__.n(aD),aL=__webpack_require__(45697),ak=__webpack_require__.n(aL),aM=__webpack_require__(22902),aP=__webpack_require__(37771),aN=__webpack_require__(78141),aF=function(){return ej.Zu.PERSONAL},aB=184,aU=90,aH={getItemThumbnailURL:ak().func.isRequired,albumId:ak().number,imageId:ak().number},aj={albumId:0,imageId:0},aV=function(e){var t=e.albumId,n=e.getItemThumbnailURL,r=e.imageId,i=(0,nP.tq)(),o=(0,aN.Z)({thumbnailUnitId:r,thumbnailLibrary:aF()}),a=t&&o?n({id:t,thumbnailInfo:o,type:ej.Zk.ALBUM,preferSize:"m"}):ej.yL.None,s=a===ej.yL.None?"synofoto-photowall-album-cover-none":"";return t6.createElement("div",{className:"synofoto-photowall-album-cover ".concat(s),"data-testid":"album-banner-cover-image-container"},t6.createElement(aP.Z,{imageHeight:i?aU:aB,imageWidth:i?aU:aB,imageUrl:a,imageId:r,isCover:!0}))};aV.propTypes=aH,aV.defaultProps=aj;var az=aV,aZ=__webpack_require__(54042),aG=__webpack_require__(94184),aW=__webpack_require__.n(aG),aq=__webpack_require__(71569),aY=__webpack_require__(13103),a$=function(e){var t=e.text,n=e.change,r=e.data,i=e.placeholder,o=e.className,a=e.activeClassName,s=e.maxLength,l=e.minLength,u=e.validate,c=e.editingElement,d=e.staticElement,f=e.tabIndex,p=e.isDisabled,h=e.editing,m=e.stopPropagation,g=e.noShadow,v=e.afterFinishEditing,y=e.invalidRegex,b=e.getRef,_=e.editElemStyle,E=(0,oe._)((0,t6.useState)(h),2),w=E[0],S=E[1],T=(0,oe._)((0,t6.useState)(t),2),O=T[0],I=T[1],A=(0,oe._)((0,t6.useState)(0),2),C=A[0],x=A[1],D=(0,t6.useRef)(null),R=(0,t6.useRef)(null),L=(0,t6.useRef)(null),k=function(){if(null!==R.current&&"textarea"in R.current){var e;return null===(e=R.current)||void 0===e?void 0:e.textarea}return R.current},M=function(e){return u?u(e):e.length>=l&&e.length<=s&&!y.some(function(t){return e.match(t)})},P=function(e){m&&e.stopPropagation(),S(!0),I(t)},N=function(){S(!1),I(t)},F=function(e){S(!1),I(e),n(e,r)},B=function(){var e=O.trim();M(e)&&t!==e?F(e):t!==e&&M(e)||N(),v()};(0,t6.useEffect)(function(){w&&(k().focus(),k().setSelectionRange(0,k().value.length))},[w]),(0,t6.useEffect)(function(){if(D.current){var e,t=D.current.getBoundingClientRect().width;C!==t&&x(t)}else x(null===(e=L.current)||void 0===e?void 0:e.getBoundingClientRect().width)},[C]);var U=function(e){m&&e.stopPropagation()},H=function(e){m&&e.stopPropagation()},j=function(e){m&&(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()),e.shiftKey||e.key!==ej.VD.ENTER?e.key===ej.VD.ESC&&N():B()},V=function(e){I(e.target.value)},z=function(e){var t=d,n=O||i,r=aW()(o,{"has-input":O});return e?t6.createElement(t,{className:r,disabled:!0,"data-tooltip-content":n,"data-tooltip-id":ej.ZP.GLOBAL_TOOLTIP_ID,"data-long-press-delay":ej.LK.LONG_PRESS,ref:b},n):t6.createElement(t,{className:r,onClick:P,tabIndex:f,"data-tooltip-content":n,"data-tooltip-id":ej.ZP.GLOBAL_TOOLTIP_ID,"data-long-press-delay":ej.LK.LONG_PRESS,ref:b},n)},Z=function(){var e=c;return t6.createElement(e,{onClick:H,onKeyDown:j,onBlur:B,onScroll:U,className:a,placeholder:i,value:O,maxLength:s,onChange:V,style:(0,t0._)({width:C},_),rows:O.split("\n").length,ref:R})},G=function(){var e=O||i;return t6.createElement("div",{className:"synofoto-inline-edit-text-shadow",ref:D},e)},W=null;return W=p?z(p):w?Z():z(),t6.createElement("div",{"data-testid":"inline-edit-field",className:"synofoto-inline-edit-text",ref:L},W,g?null:G())};a$.propTypes={text:ak().string.isRequired,change:ak().func.isRequired,data:ak().shape({value:ak().string}),placeholder:ak().string,className:ak().string,activeClassName:ak().string,maxLength:ak().number,minLength:ak().number,validate:ak().func,editingElement:ak().oneOfType([ak().string,ak().func]),staticElement:ak().string,tabIndex:ak().number,isDisabled:ak().bool,editing:ak().bool,stopPropagation:ak().bool,noShadow:ak().bool,afterFinishEditing:ak().func,invalidRegex:ak().arrayOf(ak().instanceOf(RegExp)),getRef:ak().func,editElemStyle:ak().objectOf(ak().oneOfType([ak().string,ak().number]))},a$.defaultProps={isDisabled:!1,editing:!1,tabIndex:0,staticElement:"span",editingElement:"input",maxLength:256,minLength:1,placeholder:"",className:"",activeClassName:"",validate:null,stopPropagation:!0,data:{value:""},noShadow:!1,afterFinishEditing:function(){},invalidRegex:[/^$/],getRef:function(){},editElemStyle:{}};var aK=function(e){var t=(0,aq.Z)().setGlobalTooltipTargetRef,n=e.getRef,r=(0,t2._)(e,["getRef"]),i=function(e){n(e),t(e)};return t6.createElement(a$,(0,t0._)({getRef:i},r))};aK.propTypes={getRef:ak().func},aK.defaultProps={getRef:function(){}};var aX=(0,aY.C)(a$,aK),aQ={afterFinishEditing:ak().func,albumId:ak().number,albumName:ak().string,autoStartEditing:ak().bool,editAlbumName:ak().func,readonly:ak().bool},aJ={afterFinishEditing:function(){},albumId:0,albumName:"",autoStartEditing:!1,editAlbumName:function(){},readonly:!1},a0=function(e){var t=e.afterFinishEditing,n=e.albumId,r=e.albumName,i=e.autoStartEditing,o=e.editAlbumName,a=e.readonly,s=function(){t()},l=aW()("synofoto-photowall-album-name",{placeholder:""===r,"border-bottom":!a});return t6.createElement(aX,{key:"album-name-edit-field-".concat(n,"-").concat(r),text:r,className:l,activeClassName:"synofoto-photowall-active-album-name",maxLength:ej.ZP.ALBUM_NAME_LIMIT,change:o,afterFinishEditing:s,isDisabled:a,placeholder:(0,tQ.n6)("app","add_album_name"),editing:i,editingElement:aZ.default,editElemStyle:{paddingRight:"8px"}})};a0.propTypes=aQ,a0.defaultProps=aJ;var a1=a0,a2=__webpack_require__(7050),a4=__webpack_require__(95281),a3=function(e,t){if(void 0!==e){var n,r=t.find(function(t){return t.get("id")===e});if(r)return(null===(n=r.getIn(["profile","photo"]))||void 0===n?void 0:n.length)?(0,iT.Jc)(r.getIn(["profile","photo"]),!0):void 0}},a5=3,a6=13,a9=function(e){var t,n=e.isOwner,r=e.showSharedInfo,i=e.sharingInfo,o=(0,ax.I0)(),a=(0,ax.v9)(r9.Z.getInviteeInfo),s=i.get("permission",eW.default.fromJS([])).toJS(),l=i.get("owner",eW.default.fromJS({})),u=s.length>a5+1,c=s.length===a6+1?s.length:a6,d=u?s.slice(0,a5):s,f=[];(0,t6.useEffect)(function(){if(!(!r||i.isEmpty())){var e=[l.get("id")];i.get("permission",[]).forEach(function(t){"user"===t.get("type")&&void 0!==t.get("db_id")&&e.push(t.get("db_id"))}),(e=e.filter(function(e){return void 0===a.get("list").find(function(t){return t.get("id")===e})})).length>0&&o(i_(e))}},[o,a,i,r,l]);var p=t6.createElement("div",{key:"owner"},t6.createElement(a4.Z,{circleImage:a3(l.get("id"),a.get("list")),classSuffix:"size40",className:"synofoto-photowall-album-sharing-user-group-icon",name:l.get("name"),title:l.get("name"),dataTestId:"album-banner-owner-button"}));if(n){var h=t6.createElement("div",{className:"synofoto-photowall-album-sharing-info-divider",key:"synofoto-sharing-info-divider","data-testid":"album-banner-sharing-info-divider"});f.push(h)}if(f.push(p),(t=f).push.apply(t,(0,eG._)(d.map(function(e){return t6.createElement("div",{key:e.id},t6.createElement(a4.Z,{circleImage:"user"===e.type?a3(e.db_id,a.get("list")):void 0,classSuffix:"size40",className:"synofoto-photowall-album-sharing-user-group-icon",name:e.name,title:e.name,dataTestId:"album-banner-invitee-user-button"}))}))),u){var m=t6.createElement(t6.Fragment,{key:s[a5].id},t6.createElement("div",{"data-tooltip-id":"more-invitee"},t6.createElement(a4.Z,{classSuffix:"size40",className:"synofoto-photowall-album-sharing-user-group-more",text:"+".concat(s.length-a5),dataTestId:"album-banner-more-button"})),t6.createElement(a2.Z,{tipId:"more-invitee"},t6.createElement("dl",null,s.slice(a5,c).map(function(e){return t6.createElement("dt",{style:{overflow:"hidden",textWrap:"nowrap",textOverflow:"ellipsis"},key:e.id},e.name)}),s.length>a6+1?t6.createElement("dt",{key:"moreThenTen"},(0,tQ.Xp)("shared","rest_of_invitee",s.length-a6)):null)));f.push(m)}return f};a9.propTypes={isOwner:ak().bool.isRequired,showSharedInfo:ak().bool.isRequired,sharingInfo:aR().map.isRequired};var a8=a9,a7=__webpack_require__(83797),se=__webpack_require__(47407);(0,nF.q$)({ClearPermissionDialog:"CLEAR_PERMISSION_DIALOG",UpdateSharingInfo:"UPDATE_SHARING_INFO",UpdateSharingListUserGroup:"UPDATE_SHARING_LIST_USER_GROUP"});var st=(0,nF.Ky)({CreateTempSharedAlbum:"CREATE_TEMP_SHARED_ALBUM",EditAlbumSharePermission:"EDIT_ALBUM_SHARE_PERMISSION",EditConditionAlbumSharePermission:"EDIT_CONDITION_ALBUM_SHARE_PERMISSION",EditNormalAlbumSharePermission:"EDIT_NORMAL_ALBUM_SHARE_PERMISSION",EditSelectedTeamSpaceFolderPermission:"EDIT_SELECTED_TEAM_SPACE_FOLDER_PERMISSION",EditTeamSpaceFolderPermissionByFolderId:"EDIT_TEAM_SPACE_FOLDER_PERMISSION_BY_FOLDER_ID",UpdateAlbumSharePermissionSetting:"UPDATE_ALBUM_SHARE_PERMISSION_SETTING",UpdateTeamFolderSharePermissionSetting:"UPDATE_TEAM_FOLDER_SHARE_PERMISSION_SETTING"});function sn(e,t){return{type:st.EditAlbumSharePermission,albumType:e,albumId:t}}function sr(){return{type:st.EditSelectedTeamSpaceFolderPermission}}function si(e,t){return{type:st.CreateTempSharedAlbum,name:e,itemIds:t}}var so={album:aR().map.isRequired,isOwner:ak().bool},sa={isOwner:!1},ss=function(e){var t=e.album,n=e.isOwner,r=(0,ax.I0)(),i=t.getIn(["additional","sharing_info"]),o=t.get("shared"),a=!(0,ng.f5)()&&o,s=function(){var e=t.get("id");r(sn(t.get("type"),e))},l=i?i.toJS():{},u=o&&0!==l.expiration,c=aW()("synofoto-album-banner-sharing-info-share-button",{shared:a}),d=aW()({"shared-password-icon":l.enable_password,"shared-icon":!l.enable_password}),f=a?(0,tQ.n6)("app","shared"):(0,tQ.n6)("action","share");return t6.createElement("div",{className:"synofoto-album-banner-sharing-info"},n&&t6.createElement(a7.Z,{className:c,text:f,iconCls:d,handler:s}),u&&n&&t6.createElement(se.Z,{className:"synofoto-album-banner-expiration-button",iconCls:"expiration-btn-icon",handler:s,dataTestId:"album-banner-expiration-button"}),a&&t6.createElement("div",{className:"synofoto-photowall-album-sharing-user-group"},t6.createElement(a8,{isOwner:n,showSharedInfo:a,sharingInfo:i})))};ss.propTypes=so,ss.defaultProps=sa;var sl=ss,su=__webpack_require__(67479),sc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e===ej.mp.PRIVATE?"".concat((0,tQ.n6)("shared","specific_users")).concat(t):e!==ej.mp.PRIVATE?"".concat((0,tQ.n6)("shared","public_shared")).concat(t):""},sd={album:aR().map.isRequired,afterFinishEditing:ak().func,autoStartEditing:ak().bool,editAlbumName:ak().func,imageId:ak().number,isOwner:ak().bool,readonly:ak().bool,getItemThumbnailURL:ak().func.isRequired},sf={afterFinishEditing:function(){},autoStartEditing:!1,editAlbumName:function(){},imageId:0,isOwner:!1,readonly:!1},sp=function(e){var t=e.album,n=e.afterFinishEditing,r=e.autoStartEditing,i=e.editAlbumName,o=e.imageId,a=e.isOwner,s=e.readonly,l=e.getItemThumbnailURL,u=t.get("type")===ej.ZP.ALBUM_TYPE.CONDITION||t.get("freezeAlbum"),c=t.getIn(["additional","sharing_info"]),d=!(0,ng.f5)()&&t.get("shared"),f=function(){return(0,su.zY)(t.get("start_time"),t.get("end_time"))},p=function(){return t6.createElement(az,{getItemThumbnailURL:l,albumId:t.get("id"),imageId:o})},h=function(){return t6.createElement(a1,{afterFinishEditing:n,albumId:t.get("id"),albumName:t.get("name"),autoStartEditing:r,editAlbumName:i,readonly:s})},m=function(){return t6.createElement(sl,{album:t,isOwner:a})},g=t.get("id"),v=u?(0,tQ.n6)("app","condition_album"):f(),y=d?sc(c.get("privacy_type")):"";return g?t6.createElement("div",{key:"cover",className:"synofoto-photowall-cover","data-testid":"album-banner"},p(),t6.createElement("div",{className:"synofoto-photowall-album-info"},t6.createElement("div",null,h(),t6.createElement("div",{className:"synofoto-photowall-album-date"},v),d?t6.createElement("div",null,y):null),m())):null};sp.propTypes=sd,sp.defaultProps=sf;var sh=sp,sm={album:aR().map.isRequired,imageId:ak().number,getItemThumbnailURL:ak().func.isRequired},sg={imageId:0},sv=function(e){var t=e.album,n=e.imageId,r=e.getItemThumbnailURL,i=t.get("type")===ej.ZP.ALBUM_TYPE.CONDITION||t.get("freezeAlbum"),o=function(){return(0,su.zY)(t.get("start_time"),t.get("end_time"))},a=function(){return t6.createElement(az,{getItemThumbnailURL:r,albumId:t.get("id"),imageId:n})},s=function(){var e=i?(0,tQ.n6)("app","condition_album"):o();return t6.createElement("div",{className:"synofoto-photowall-album-name-ct-mobile"},t6.createElement("div",{className:"synofoto-photowall-album-name-mobile"},t.get("name")),t6.createElement("div",{className:"synofoto-photowall-album-date"},e))};return t.get("id")?t6.createElement("div",{key:"cover",className:"synofoto-photowall-cover","data-testid":"album-banner"},a(),s()):null};sv.propTypes=sm,sv.defaultProps=sg;var sy=sv,sb=(0,aY.C)(sh,sy),s_=__webpack_require__(72793),sE={description:ak().string,hint:ak().string,fullsize:ak().bool},sw={description:(0,tQ.n6)("app","no_item"),hint:"",fullsize:!0},sS=function(e){var t=e.description,n=e.fullsize,r=e.hint;return t6.createElement(s_.Z,{iconClassName:"synofoto-empty-album-icon",fullsize:n,description:t,hint:r})};sS.propTypes=sE,sS.defaultProps=sw;var sT=sS,sO=__webpack_require__(32572),sI=__webpack_require__(51383),sA=function(e){var t=e.item,n=(0,ax.v9)(ap.Z.getUserId),r=(0,ax.v9)(ap.Z.getUserName),i=(0,ax.v9)(r9.Z.getCurrentAlbumIsShared),o=(0,ax.v9)(r9.Z.getInviteeInfo),a=!(1===(0,ax.v9)(r9.Z.getCurrentAlbumProviderCount)&&o.getIn(["list",0,"id"])===n),s=(0,ax.v9)(ac.Z.getSelectMode),l=(0,ax.I0)(),u=function(){return null},c=function(){if(!a)return null;var e=t.getIn(["additional","provider_user_id"]);if((0,ng.lF)()&&!_S("is_admin")&&!(0,rf._9)())return e===n?r:(0,tQ.n6)("shared","by_others");if(!o.get("loaded"))return null;var i=o.get("list").find(function(t){return t.get("id")===e});return i||l(i_([e])),i?i.get("name"):""},d=function(){return(0,rf.nw)()&&(0,sI.vT)()&&s?0===t.get("owner_user_id")?(0,tQ.n6)("app","shared_space"):(0,tQ.n6)("app","personal_space"):null}(),f=c();return d||f?t6.createElement("div",{className:"synofoto-item-bottom-info"},t6.createElement("div",{className:"synofoto-item-left-bottom-info"},t6.createElement("div",{className:"synofoto-item-space"},d),t6.createElement("div",{className:"synofoto-item-provider"},f)),i?u():null):null};sA.propTypes={item:aR().map.isRequired};var sC=sA,sx=function(e){var t=e.item,n=t.getIn(["additional","favorite"],!1),r=t.has("similar"),i=function(){var e=t.getIn(["similar","count"]);return t6.createElement("div",{className:"synofoto-item-similar"},t6.createElement("span",{className:"synofoto-item-similar-count"},e),t6.createElement("div",{role:"img",className:"synofoto-indicator-similar"}))},o=function(){return t6.createElement("div",{className:"synofoto-item-favorite"},t6.createElement("div",{role:"img",className:"synofoto-indicator-favorite"}))};return n||r?t6.createElement("div",{className:"synofoto-item-bottom-indicator","data-testid":"item-bottom-indicator"},n?o():null,r?i():null):null};sx.propTypes={item:aR().map.isRequired};var sD=sx,sR=__webpack_require__(68776),sL=function(e){var t=e.item,n=e.groupUnit;return t6.createElement(t6.Fragment,null,t6.createElement(sR.Z,{item:t,groupUnit:n}),t6.createElement(sD,{item:t}))};sL.propTypes={item:aR().map.isRequired,groupUnit:ak().string},sL.defaultProps={groupUnit:"day"};var sk=sL,sM=__webpack_require__(97192),sP=__webpack_require__(74766),sN=function(e,t){return Array(t-e).fill().map(function(t,n){return e+n})},sF=Math.ceil(1080/ej.TY.IMAGE_TARGET_HEIGHT),sB=function(e,t){if(!e.current)return[0];var n=t?t.size:0,r=(0,oe._)(e.current.getVisibleRange(),2),i=r[0],o=void 0===i?0:i,a=r[1],s=void 0===a?0:a;return sN(t.getIn([Math.max(0,o-sF),"sectionNumber"],0),t.getIn([Math.min(n-1,s+sF),"sectionNumber"],0)+1)},sU=function(e,t,n,r){if(!t)return eW.default.List();var i=sB(e,n);return t.filter(function(e){return e.get("state")===r&&i.includes(e.get("sectionNumber"))}).map(function(e){return e.get("sectionNumber")})},sH=function(e){var t=e.allowEdit,n=e.allowSelect,r=e.autoStartEditing,i=e.album,o=e.photo,a=e.isOwner,s=e.profile,l=e.openLightbox,u=e.editAlbumName,c=e.arrangeFlexLayoutSection,d=e.beforeLoadFlexLayoutSection,f=e.listAlbumItem,p=e.arrangeFlexLayoutRow,h=e.afterFinishEditing,m=e.resetAlbumScrollToItem,g=e.updateNewComment,v=e.getItemThumbnailURL,y=e.renderEmpty,b=(0,ax.I0)(),_=(0,oe._)((0,t6.useState)(0),2),E=_[0],w=_[1],S=(0,t6.useRef)(null),T=i.get("id","0"),O=i.get("name",""),I=i.get("itemCount",0),A=o.get("flexSection"),C=o.get("rows"),x=o.get("rows",eW.default.List()).size,D=o.get("scrollToItem"),R=i.has("isConditionValid")&&!i.get("isConditionValid"),L=function(e){o.hasIn(["flexSection",e])&&o.getIn(["flexSection",e,"state"])===ej.i4.INIT&&(d(e),f(e))};(0,t6.useEffect)(function(){R&&a&&b(iE(T,""))},[R,a,T,b]),(0,t6.useEffect)(function(){history.scrollRestoration&&(history.scrollRestoration="manual")},[]),(0,t6.useEffect)(function(){if(D){var e=(0,oB.q9)(C,D);e>=0&&null!==S.current&&!S.current.isEntireItemVisible(e)&&S.current.scrollListAround(e),m()}},[D]);var k=(0,t6.useRef)(O),M=(0,t6.useRef)(u);(0,t6.useEffect)(function(){k.current=O,M.current=u},[O,u]),(0,t6.useEffect)(function(){return function(){""===k.current&&M.current((0,tQ.n6)("app","untitled"))}},[]),(0,t6.useEffect)(function(){0!==E&&(I&&0===x||T&&E)&&c(E)},[E,I,x,T,c]),(0,t6.useEffect)(function(){if(S.current){var e=sU(S,A,C,ej.i4.LOADED);e.isEmpty()||e.forEach(function(e){p(e)})}},[A,C,p]);var P=(0,aM.Z)(function(e){w(e.width)},500),N=function(e){if(e.width){if(0===E){w(e.width);return}P(e)}},F=(0,aM.Z)(function(){S.current&&sB(S,o.get("rows")).forEach(function(e){var t=o.getIn(["flexSection",e,"state"]);t===ej.i4.INIT?L(e):t===ej.i4.LOADED&&p(e)})},500),B=function(e,t){if(0===e&&-1===t&&0===i.get("itemCount"))return y();var r=["rows",e];if(!o.getIn(r.concat(["arranged"])))return F(),(0,or.sp)(e,ej.TY.IMAGE_TARGET_HEIGHT,E);var a=e===o.get("rows").size-1,s=r.concat(["list",t]),u=o.getIn(s.concat(["photo"]));if(!u)return null;var c=o.getIn(s.concat(["width"])),d=o.getIn(r.concat(["arrange_height"]));if(a&&d>rR*rk){var f=rR*rk/d;d*=f,c*=f}var p={display:"inline-block"},h=u.get("id"),m=function(){i.get("shared")&&g(h,e,t),l(h)};return t6.createElement(sO.Z,{key:"link_album_".concat(h),SelectableEl:sM.Z,item:u,allowSelect:n,width:c,height:d,style:p,time:u.get("time"),onClick:m,getItemThumbnailURL:v},t6.createElement(t6.Fragment,null,t6.createElement(sk,{item:u}),t6.createElement(sC,{item:u})))},U=function(){return t6.createElement(sb,{album:i,profile:s,autoStartEditing:r,afterFinishEditing:h,editAlbumName:u,readonly:!t||(0,nP.tq)(),imageId:i.getIn(["additional","thumbnailUnitId"]),isOwner:a,getItemThumbnailURL:v})};if(0===i.get("id",0))return t6.createElement("div",{className:"synofoto-photowall-empty-background synofoto-list-scroll","data-testid":"synofoto-photowall-empty-background"});var H=i.get("itemCount"),j=0!==H?o.get("rows"):eW.default.fromJS([{type:"empty_row"}]),V=0===H?"synofoto-photowall-empty":"synofoto-photowall";return t6.createElement(sP.Z,{className:V,handleResize:N,header:U(),listType:"variable",rows:j,rowPadding:(0,t3.Z)((0,nP.tq)()),renderItem:B,sizeEstimator:function(){return ej.TY.IMAGE_TARGET_HEIGHT+(0,t3.Z)((0,nP.tq)())},ref:S,threshold:1500,bottomPadding:40})};sH.propTypes={allowEdit:ak().bool,allowSelect:ak().bool,autoStartEditing:ak().bool,album:aR().map.isRequired,photo:aR().map.isRequired,isOwner:ak().bool,profile:aR().map,openLightbox:ak().func.isRequired,editAlbumName:ak().func,arrangeFlexLayoutSection:ak().func.isRequired,beforeLoadFlexLayoutSection:ak().func.isRequired,listAlbumItem:ak().func.isRequired,arrangeFlexLayoutRow:ak().func.isRequired,afterFinishEditing:ak().func,resetAlbumScrollToItem:ak().func.isRequired,updateNewComment:ak().func,getItemThumbnailURL:ak().func.isRequired,renderEmpty:ak().func},sH.defaultProps={allowEdit:!1,allowSelect:!1,autoStartEditing:!1,isOwner:!1,editAlbumName:function(){},afterFinishEditing:function(){},profile:eW.default.Map(),updateNewComment:function(){},renderEmpty:function(){return t6.createElement(sT,{key:"empty_view"})}};var sj=sH,sV=__webpack_require__(74620),sz=function(){var e=(0,sV.Z)().location,t=(0,ax.I0)(),n=(0,ax.v9)(r9.Z.getAlbumPhotowall),r=(0,ax.v9)(r9.Z.getCurrentAlbum),i=(0,ax.v9)(r9.Z.getCurrentAlbumItemCount),o=r.get("name"),a=r.get("id"),s=(0,ax.v9)(r9.Z.getSharingPermission),l=(0,ng.Of)(),u=s.getIn(["permission","download"]),c=r.get("passphrase")===l;(0,t6.useEffect)(function(){return t(ih(l)),t(im(l)),function(){t(is())}},[t,l]),(0,t6.useEffect)(function(){t(n0(ej.ZP.ALBUM_TYPE.ALBUM,o,a,i,{passphrase:l}))},[t,o,a,i,l]),(0,t6.useEffect)(function(){return function(){return t(il())}},[t]);var d=(0,t6.useCallback)(function(e){return t(ii(e))},[t]),f=(0,t6.useCallback)(function(e){return t(ia(e))},[t]),p=function(e){t((0,iU.xV)({type:"photowall",id:e,passphrase:l}))},h=function(e){c&&t(iy(l,e,r.get("sortBy"),r.get("sortDirection")))},m=function(e){var t=e.id,n=e.thumbnailInfo,i=e.type,o=void 0===i?"item":i,a=e.preferSize,s=void 0===a?"m":a,l=e.library,u=void 0===l?"":l,c=r.get("passphrase");return(0,iT.AJ)(t,n,o,s,{passphrase:c},u)};return t6.createElement(sj,{location:e,arrangeFlexLayoutSection:d,beforeLoadFlexLayoutSection:function(e){return t(io(e))},arrangeFlexLayoutRow:f,resetAlbumScrollToItem:function(){return t(ic())},openLightbox:p,listAlbumItem:h,album:c?r:eW.default.Map(),photo:c?n:eW.default.fromJS({rows:[],items:[]}),allowSelect:u,getItemThumbnailURL:m})},sZ=__webpack_require__(98605),sG=__webpack_require__.n(sZ),sW=__webpack_require__(48977),sq=__webpack_require__(40491),sY=__webpack_require__(25526),s$=function(e){var t=e.isOpen,n=e.onRequestClose,r=e.mousePosition,i=e.menu,o=(0,t6.useRef)(null),a=(0,t6.useCallback)(function(e){o.current=e},[o]),s=r.xMouse,l=r.yMouse,u=(0,oe._)((0,t6.useState)({left:"-50000px"}),2),c=u[0],d=u[1];return(0,t6.useEffect)(function(){if(!t||!o.current){d({left:"-50000px"});return}var e=(0,sY.ZP)({button:{top:l,bottom:l,left:s,right:s},menu:o.current,align:ej.Yo.RIGHT_TOP});d((0,sY.xU)(e))},[s,l,t,i]),t6.createElement(sW.Z,{className:"synofoto-right-click-menu synofoto-menu-modal",isOpen:!0,onRequestClose:n,style:{content:c},getRef:a,menuId:"synofoto-right-click-menu"},t6.createElement(sq.Z,{menu:i,closeMenu:n,menuItemCls:"synofoto-menu-text-button",parentRefs:[o]}))};s$.propTypes={isOpen:ak().bool.isRequired,onRequestClose:ak().func.isRequired,mousePosition:ak().shape({xMouse:ak().number,yMouse:ak().number}).isRequired,menu:ak().arrayOf(ak().oneOfType([ak().shape({handler:ak().func,hidden:ak().bool,text:ak().string.isRequired}),ak().shape({component:ak().func.isRequired})])).isRequired};var sK=s$,sX=__webpack_require__(61403),sQ=Object.freeze({SELECTED_BAR:"selectedBar",CONTEXT_MENU:"contextMenu"}),sJ=__webpack_require__(93151),s0=__webpack_require__(51335),s1=__webpack_require__(19084),s2={SHARE:{key:"create_shared_link",action:"handleCreateTempSharedAlbum",iconClass:"mode-share-dark-btn-icon",testId:"share-btn"},ADD_TO_ALBUM:{key:"title_icon_add_to_album",action:"handleAddToAlbum",iconClass:"mode-album-dark-btn-icon",testId:"add-to-album-btn"},DOWNLOAD:{key:"download",action:"handleDownload",iconClass:"mode-download-dark-btn-icon",testId:"download-btn"},DELETE:{key:"delete",action:"handleDelete",iconClass:"mode-delete-btn-icon",testId:"delete-btn"},ADD_TO_FAVORITE:{key:"add_to_favorite",action:"handleAddToFavorite",iconClass:"mode-add-favorite-dark-btn-icon",testId:"add-to-favorite-btn"},REMOVE_FROM_FAVORITE:{key:"remove_from_favorite",action:"handleRemoveFromFavorite",iconClass:"mode-remove-favorite-dark-btn-icon",testId:"remove-from-favorite-btn"}},s4={PERSONAL_SELECTED_ITEM:"personal_selected_item",PERSONAL_SELECTED_FOLDER:"personal_selected_folder",PERSONAL_SELECTED_ITEM_FOLDER:"personal_selected_item_folder",TEAM_MANAGE_SELECTED_ITEM:"team_manage_selected_item",TEAM_DOWNLOAD_SELECTED_ITEM:"team_download_selected_item",TEAM_MANAGER_SELECTED_FOLDER:"team_manager_selected_folder",TEAM_MANAGE_SELECTED_FOLDER:"team_manage_selected_folder",TEAM_MANAGE_CAN_DOWNLOAD_SUBFOLDER_SELECTED_FOLDER:"team_manage_can_download_subfolder_selected_folder",TEAM_DOWNLOAD_SELECTED_FOLDER:"team_download_selected_folder",TEAM_DOWNLOAD_CAN_DOWNLOAD_SUBFOLDER_SELECTED_FOLDER:"team_download_can_download_subfolder_selected_folder",TEAM_LOWER_THAN_DOWNLOAD_SELECTED_FOLDER:"team_lower_than_download_selected_folder",TEAM_MANAGE_SELECTED_ITEM_FOLDER:"team_manage_selected_item_folder",TEAM_MANAGE_CAN_DOWNLOAD_SUBFOLDER_SELECTED_ITEM_FOLDER:"team_manage_can_download_subfolder_selected_item_folder",TEAM_DOWNLOAD_SELECTED_ITEM_FOLDER:"team_download_selected_item_folder",TEAM_DOWNLOAD_CAN_DOWNLOAD_SUBFOLDER_SELECTED_ITEM_FOLDER:"team_download_can_download_subfolder_selected_item_folder",TEAM_ENTRY_USER_WITHOUT_MANAGE_AND_DOWNLOAD_PERMISSION:"team_entry_user_without_manage_and_download_permission",EXTERNAL_DOWNLOAD:"external_download",PERSON_ALBUM:"person_album",CONCEPT_ALBUM:"concept_album",FREEZE_ALBUM:"freeze_album",CONDITION_ALBUM:"condition_album",SPACE_DISABLE_ALBUM:"space_disable_album",NORMAL_ALBUM:"normal_album",NORMAL_ALBUM_WITHOUT_EDIT:"normal_album_without_edit",SEARCH_ALBUM:"search_album",SIMILAR_ALBUM:"similar_album",OTHERS_ALBUM:"others_album",SHARED_ALBUM_PHOTO_PROVIDER:"shared_album_photo_provider",SHARED_ALBUM_DOWNLOAD_ONLY:"shared_album_download_only"},s3={shared_album_photo_provider:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},shared_album_download_only:function(){return[s2.DOWNLOAD]},personal_selected_item:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD,s2.DELETE]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD,s2.DELETE]},personal_selected_folder:function(){return[s2.DOWNLOAD,s2.DELETE]},personal_selected_item_folder:function(){return[s2.DOWNLOAD,s2.DELETE]},team_manage_selected_item:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD,s2.DELETE]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD,s2.DELETE]},team_download_selected_item:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},team_manager_selected_folder:function(){return[s2.DOWNLOAD,s2.DELETE]},team_manage_selected_folder:function(){return[s2.DELETE]},team_manage_can_download_subfolder_selected_folder:function(){return[s2.DOWNLOAD,s2.DELETE]},team_download_selected_folder:function(){return[]},team_download_can_download_subfolder_selected_folder:function(){return[s2.DOWNLOAD]},team_lower_than_download_selected_folder:function(){return[s2.DOWNLOAD]},team_manage_selected_item_folder:function(){return[s2.DELETE]},team_manage_can_download_subfolder_selected_item_folder:function(){return[s2.DOWNLOAD,s2.DELETE]},team_download_selected_item_folder:function(){return[]},team_download_can_download_subfolder_selected_item_folder:function(){return[s2.DOWNLOAD]},team_entry_user_without_manage_and_download_permission:function(){return(0,eG._)((0,s1.uW)()?[s2.REMOVE_FROM_FAVORITE]:[s2.ADD_TO_FAVORITE])},external_download:function(){return[s2.DOWNLOAD]},person_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},freeze_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},condition_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},space_disable_album:function(){return[]},normal_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},normal_album_without_edit:function(){return[s2.DOWNLOAD]},search_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},similar_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},others_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]},concept_album:function(){return(0,rf._9)()?[s2.SHARE,s2.ADD_TO_ALBUM,s2.DOWNLOAD]:[s2.ADD_TO_ALBUM,s2.DOWNLOAD]}},s5={ADD_TO_FAVORITE:{key:"add_to_favorite",action:"handleAddToFavorite"},COPY_TO:{key:"copy_to",action:"handleCopyToFolder"},DELETE:{key:"delete",action:"handleDelete"},DELETE_IN_ALBUM:{key:"delete",action:"handleDeleteInNormalAlbum"},EDIT_DATE_TIME:{key:"edit_date_time",action:"handleEditDateTime"},EDIT_GENERAL_TAG:{key:"edit_general_tag",action:"handleEditGeneralTag"},EDIT_PERMISSION:{key:"edit_permission",action:"handleEditPermission"},EDIT_RATING:{key:"edit_rating",action:"handleEditRating"},RENAME:{key:"rename",action:"handleRenameFolder"},MOVE_TO:{key:"move_to",action:"handleMoveToFolder"},REMOVE_FROM_FAVORITE:{key:"remove_from_favorite",action:"handleRemoveFromFavorite"},REMOVE_FROM_ALBUM:{key:"remove_from_album",action:"handleRemoveItemFromAlbum"},REMOVE_SINGLE_FROM_PERSON_ALBUM:{key:"remove_from_person_album",action:"handleRemoveItemFromPersonAlbum"},REMOVE_MULTI_FROM_PERSON_ALBUM:{key:"remove_from_person_album_plural",action:"handleRemoveItemFromPersonAlbum"},REMOVE_FROM_CONCEPT_ALBUM:{key:"remove_from_album",action:"handleRemoveItemFromConceptAlbum"},SET_COVER:{key:"set_cover",action:"handleSetAsCover"},SET_PERSON_COVER:{key:"set_person_cover",action:"handleSetAsPersonCover"},SET_CONCEPT_COVER:{key:"set_concept_cover",action:"handleSetAsConceptCover"},SET_AS_FOLDER_COVER:{key:"set_as_folder_cover",action:"handleSetAsFolderCover"},CHANGE_FOLDER_COVER:{key:"change_folder_cover",action:"handleChangeFolderCover"},COLLECT_PHOTO_TO_HERE_FROM_FOLDER:{key:"collect_photo_to_here",action:"handleCollectPhotoToHereFromFolder"},UNSTACK:{key:"unstack",action:"handleUnstack"},DIVIDER:{key:"divider"},REGENERATE_PREVIEW:{key:"regenerate_preview",action:"handleRegeneratePreview"}},s6={PERSONAL_SELECTED_ITEM:"personal_selected_item",PERSONAL_SELECTED_ITEM_WITH_SET_FOLDER_COVER:"personal_selected_item_with_set_folder_cover",PERSONAL_SELECTED_FOLDER:"personal_selected_folder",PERSONAL_SELECTED_ITEM_FOLDER:"personal_selected_item_folder",TEAM_SELECTED_ITEM:"team_selected_item",TEAM_SELECTED_ITEM_WITH_SET_FOLDER_COVER:"team_selected_item_with_set_folder_cover",TEAM_DOWNLOAD_SELECTED_ITEM:"team_download_selected_item",TEAM_SELECTED_FOLDER:"team_selected_folder",TEAM_SELECTED_FIRST_TWO_LAYER_FOLDER:"team_selected_first_two_layer_folder",TEAM_MANAGE_SELECTED_FOLDER:"team_manage_selected_folder",TEAM_DOWNLOAD_SELECTED_FOLDER:"team_download_selected_folder",TEAM_MANAGE_SINGLE_MANAGE_SUBFOLDER_SELECTED:"team_manage_single_manage_subfolder_selected",TEAM_MANAGE_SINGLE_UPLOAD_SUBFOLDER_SELECTED:"team_manage_single_upload_subfolder_selected",TEAM_DOWNLOAD_SINGLE_MANAGE_SUBFOLDER_SELECTED:"team_download_single_manage_subfolder_selected",TEAM_DOWNLOAD_SINGLE_UPLOAD_SUBFOLDER_SELECTED:"team_download_single_upload_subfolder_selected",TEAM_LOWER_THAN_DOWNLOAD_SINGLE_MANAGE_SUBFOLDER_SELECTED:"team_lower_than_download_single_manage_subfolder_selected",TEAM_LOWER_THAN_DOWNLOAD_SINGLE_UPLOAD_SUBFOLDER_SELECTED:"team_lower_than_download_single_upload_subfolder_selected",TEAM_SELECTED_ITEM_FOLDER:"team_selected_item_folder",TEAM_DOWNLOAD_SELECTED_ITEM_FOLDER:"team_download_selected_item_folder",SHARED_ALBUM_PHOTO_PROVIDER:"shared_album_photo_provider",SHARED_ALBUM_PHOTO_PROVIDER_NOT_MANAGEMENT:"shared_album_photo_provider_not_management",SHARED_ALBUM_WITHOUT_EDIT_TAG:"shared_album_without_edit_tag",SHARED_ALBUM_TEAM_MANAGEMENT:"shared_album_team_management",DOWNLOAD_SHARED_ALBUM:"download_shared_album",NORMAL_ALBUM:"normal_album",NORMAL_ALBUM_WITHOUT_EDIT:"normal_album_without_edit",NORMAL_ALBUM_WITHOUT_EDIT_AND_REGENERATE:"normal_album_without_edit_and_regenerate",NORMAL_ALBUM_WITHOUT_EDIT_TAG:"normal_album_without_edit_tag",PERSON_ALBUM:"person_album",CONCEPT_ALBUM:"concept_album",SUGGESTION_CONCEPT_ALBUM:"suggestion_concept_album",CONDITION_ALBUM:"condition_album",FREEZE_ALBUM:"freeze_album",OTHERS_ALBUM:"others_album",SPACE_DISABLE:"space_disable",SEARCH_ALBUM:"search_album",SIMILAR_ALBUM:"similar_album"},s9={personal_selected_item:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO],(0,eG._)((0,s1.p0)()?[s5.DIVIDER,s5.UNSTACK]:[]))},personal_selected_item_with_set_folder_cover:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_AS_FOLDER_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO])},personal_selected_folder:function(e){return e?(0,rf._9)()?[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.MOVE_TO,s5.COPY_TO]},personal_selected_item_folder:function(){return[s5.MOVE_TO,s5.COPY_TO]},team_selected_item:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO],(0,eG._)((0,s1.p0)()?[s5.DIVIDER,s5.UNSTACK]:[]))},team_selected_item_with_set_folder_cover:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_AS_FOLDER_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO])},team_download_selected_item:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.COPY_TO])},team_selected_folder:function(e){return e?(0,rf._9)()?[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.MOVE_TO,s5.COPY_TO]},team_selected_first_two_layer_folder:function(e){return e?(0,rf._9)()?[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.EDIT_PERMISSION,s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.MOVE_TO,s5.COPY_TO]},team_manage_selected_folder:function(e){return e?[s5.RENAME,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.MOVE_TO,s5.COPY_TO]},team_download_selected_folder:function(){return[s5.COPY_TO]},team_manage_single_manage_subfolder_selected:function(){return(0,rf._9)()?[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.RENAME,s5.CHANGE_FOLDER_COVER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]},team_manage_single_upload_subfolder_selected:function(){return(0,rf._9)()?[s5.RENAME,s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]:[s5.RENAME,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO]},team_download_single_manage_subfolder_selected:function(){return(0,rf._9)()?[s5.CHANGE_FOLDER_COVER,s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER,s5.DIVIDER,s5.COPY_TO]:[s5.CHANGE_FOLDER_COVER,s5.DIVIDER,s5.COPY_TO]},team_download_single_upload_subfolder_selected:function(){return(0,rf._9)()?[s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER,s5.DIVIDER,s5.COPY_TO]:[s5.DIVIDER,s5.COPY_TO]},team_lower_than_download_single_manage_subfolder_selected:function(){return(0,rf._9)()?[s5.CHANGE_FOLDER_COVER,s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER]:[s5.CHANGE_FOLDER_COVER]},team_lower_than_download_single_upload_subfolder_selected:function(){return(0,rf._9)()?[s5.COLLECT_PHOTO_TO_HERE_FROM_FOLDER]:[]},team_selected_item_folder:function(){return[s5.MOVE_TO,s5.COPY_TO]},team_download_selected_item_folder:function(){return[s5.COPY_TO]},search_album:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.MOVE_TO,s5.COPY_TO,s5.DIVIDER,s5.DELETE])},shared_album_photo_provider:function(){return[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM]},shared_album_without_edit_tag:function(){return[s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM]},shared_album_team_management:function(){return[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW]},shared_album_photo_provider_not_management:function(){return[s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM]},normal_album:function(e){return e?[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM,s5.DELETE_IN_ALBUM]:[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM,s5.DELETE_IN_ALBUM]},normal_album_without_edit:function(e){return e?[s5.SET_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM]:[s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM]},normal_album_without_edit_and_regenerate:function(e){return e?[s5.SET_COVER,s5.DIVIDER,s5.REMOVE_FROM_ALBUM]:[s5.REMOVE_FROM_ALBUM]},normal_album_without_edit_tag:function(e){return e?[s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM,s5.DELETE_IN_ALBUM]:[s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_ALBUM,s5.DELETE_IN_ALBUM]},person_album:function(e){return e?(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_PERSON_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_SINGLE_FROM_PERSON_ALBUM,s5.DELETE]):(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_MULTI_FROM_PERSON_ALBUM,s5.DELETE])},condition_album:function(e){return e?[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.DELETE_IN_ALBUM]:[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.DELETE_IN_ALBUM]},freeze_album:function(e){return e?[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_COVER,s5.REGENERATE_PREVIEW]:[s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW]},others_album:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.DELETE])},space_disable:function(){return[s5.REMOVE_FROM_ALBUM]},concept_album:function(e){return e?(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.SET_CONCEPT_COVER,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_CONCEPT_ALBUM,s5.DELETE]):(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_CONCEPT_ALBUM,s5.DELETE])},similar_album:function(e){return e?(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.UNSTACK,s5.DIVIDER,s5.DELETE]):(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.DELETE])},suggestion_concept_album:function(){return(0,eG._)((0,s1.uW)()?[s5.REMOVE_FROM_FAVORITE]:[s5.ADD_TO_FAVORITE]).concat([s5.EDIT_GENERAL_TAG,s5.EDIT_RATING,s5.EDIT_DATE_TIME,s5.REGENERATE_PREVIEW,s5.DIVIDER,s5.REMOVE_FROM_CONCEPT_ALBUM,s5.DELETE])}},s8=__webpack_require__(70494),s7=__webpack_require__(72260);function le(e,t){var n={handleAddToAlbum:s7.nk,handleAddToFavorite:t?s7.hg:s7.if,handleCreateTempSharedAlbum:s7.OF,handleEditDateTime:s7.gU,handleEditGeneralTag:s7.Hz,handleRemoveItemFromAlbum:s7.DX,handleSetAsCover:s7.n2,handleDeleteInNormalAlbum:s7.wm,handleRegeneratePreview:s7.uD,handleRemoveFromFavorite:s7.KU};return e?(0,t1._)((0,t0._)({},n),{handleDelete:s7.fn,handleDownload:s7.gp,handleRemoveItemFromPersonAlbum:s7.DW,handleRemoveItemFromConceptAlbum:s7.TP,handleSetAsPersonCover:s7.xM,handleSetAsConceptCover:s7.lg,handleCopyToFolder:s8.ZV,handleEditPermission:null,handleMoveToFolder:s8.QP,handleRenameFolder:s8.p0,handleSetAsFolderCover:s7.wx,handleChangeFolderCover:s7.Ri,handleCollectPhotoToHereFromFolder:s7.Ey,handleUnstack:s7.Nx}):(0,t1._)((0,t0._)({},n),{handleCopyToFolder:s8.S9,handleDelete:s7.y$,handleDownload:s7.Zs,handleEditPermission:sr,handleMoveToFolder:s8.nA,handleRemoveItemFromPersonAlbum:s7.Sb,handleRemoveItemFromConceptAlbum:s7.hA,handleRenameFolder:s8.T2,handleSetAsPersonCover:s7.S2,handleSetAsConceptCover:s7.g3,handleSetAsFolderCover:s7._i,handleChangeFolderCover:s7.b4,handleCollectPhotoToHereFromFolder:s7.dM,handleUnstack:s7.jZ})}var lt=__webpack_require__(38962),ln=function(e,t,n){var r,i,o,a=e?s3[e]():[],s=t?s9[t](n):[],l={key:"divider"},u=a.findIndex(function(e){return"delete"===e.key});if(-1===u)return a.length&&s.length?(0,eG._)(a).concat([l],(0,eG._)(s)):(0,eG._)(a).concat((0,eG._)(s));var c=[];return(r=c).push.apply(r,(0,eG._)(a.slice(0,u)).concat((0,eG._)(a.slice(u+1)))),c.length&&s.length?(i=c).push.apply(i,[l].concat((0,eG._)(s))):s.length&&(o=c).push.apply(o,(0,eG._)(s)),c.length&&c.push(l),c.push(a[u]),c};function lr(e,t,n,r,i){var o=le((0,nh.E0)(e),!0),a=ln(n,r,t);return(0,lt.Z)({menuItems:a,actionCreatorMap:o,downloadInfo:i})}var li=__webpack_require__(73849),lo=function(e,t){return!!(0,li.Z)()||e.every(function(e){var n=nf.Z.getStore().getState(),r=ah.Z.getFolderPos(n,e);return ah.Z.getFolderTree(n).getIn((0,eG._)(r).concat(["accessPermission",t]),!1)})},la=function(){var e=nf.Z.getStore().getState(),t=ac.Z.getSelectedSet(e),n=ac.Z.getSelectType(e),r=ah.Z.getCurrentFolder(e),i=t.get(ej.RT.FOLDER).toJS();return n===ej.RT.ITEM&&(0,sI.jO)(r,ej._I.DOWNLOAD)||n===ej.RT.FOLDER&&lo(i,ej._I.DOWNLOAD)||n===ej.RT.ITEM_FOLDER&&(0,sI.jO)(r,ej._I.DOWNLOAD)&&lo(i,ej._I.DOWNLOAD)?{iconType:s4.EXTERNAL_DOWNLOAD,menuType:null}:{iconType:null,menuType:null}},ls=function(){var e=nf.Z.getStore().getState();if(af.Z.getAlbumType(e)!==ej.ZP.ALBUM_TYPE.FOLDER)return!1;var t=ah.Z.getCurrentFolder(e);return!!t&&!rd(t.get("path"))},ll=function(e){return 1===e&&ls()},lu=function(){var e=nf.Z.getStore().getState(),t=ac.Z.getSelectedSet(e),n=ac.Z.getSelectType(e),r=ah.Z.getCurrentFolder(e),i=ac.Z.getSelectedCount(e),o=t.get(ej.RT.FOLDER).toJS();if(n===ej.RT.ITEM)return(0,sI.jO)(r,ej._I.MANAGE)?{iconType:s4.TEAM_MANAGE_SELECTED_ITEM,menuType:ll(i)?s6.TEAM_SELECTED_ITEM_WITH_SET_FOLDER_COVER:s6.TEAM_SELECTED_ITEM}:(0,sI.jO)(r,ej._I.DOWNLOAD)?{iconType:s4.TEAM_DOWNLOAD_SELECTED_ITEM,menuType:s6.TEAM_DOWNLOAD_SELECTED_ITEM}:{iconType:s4.TEAM_ENTRY_USER_WITHOUT_MANAGE_AND_DOWNLOAD_PERMISSION,menuType:null};if(n===ej.RT.FOLDER){if((0,li.Z)()){var a=2>rc(r.get("path"))?s6.TEAM_SELECTED_FIRST_TWO_LAYER_FOLDER:s6.TEAM_SELECTED_FOLDER;return{iconType:s4.TEAM_MANAGER_SELECTED_FOLDER,menuType:a}}var s=lo(o,ej._I.MANAGE)&&1===i,l=lo(o,ej._I.UPLOAD)&&1===i,u=lo(o,ej._I.DOWNLOAD);if((0,sI.jO)(r,ej._I.MANAGE)){var c=u?s4.TEAM_MANAGE_CAN_DOWNLOAD_SUBFOLDER_SELECTED_FOLDER:s4.TEAM_MANAGE_SELECTED_FOLDER,d=s6.TEAM_MANAGE_SELECTED_FOLDER;return s?d=s6.TEAM_MANAGE_SINGLE_MANAGE_SUBFOLDER_SELECTED:l&&(d=s6.TEAM_MANAGE_SINGLE_UPLOAD_SUBFOLDER_SELECTED),{iconType:c,menuType:d}}if((0,sI.jO)(r,ej._I.DOWNLOAD)){var f=u?s4.TEAM_DOWNLOAD_CAN_DOWNLOAD_SUBFOLDER_SELECTED_FOLDER:s4.TEAM_DOWNLOAD_SELECTED_FOLDER,p=s6.TEAM_DOWNLOAD_SELECTED_FOLDER;return s?p=s6.TEAM_DOWNLOAD_SINGLE_MANAGE_SUBFOLDER_SELECTED:l&&(p=s6.TEAM_DOWNLOAD_SINGLE_UPLOAD_SUBFOLDER_SELECTED),{iconType:f,menuType:p}}if(u){var h=null;return s?h=s6.TEAM_LOWER_THAN_DOWNLOAD_SINGLE_MANAGE_SUBFOLDER_SELECTED:l&&(h=s6.TEAM_LOWER_THAN_DOWNLOAD_SINGLE_UPLOAD_SUBFOLDER_SELECTED),{iconType:s4.TEAM_LOWER_THAN_DOWNLOAD_SELECTED_FOLDER,menuType:s||l?h:null}}}else if(n===ej.RT.ITEM_FOLDER){var m=lo(o,ej._I.DOWNLOAD);if((0,sI.jO)(r,ej._I.MANAGE))return{iconType:m?s4.TEAM_MANAGE_CAN_DOWNLOAD_SUBFOLDER_SELECTED_ITEM_FOLDER:s4.TEAM_MANAGE_SELECTED_ITEM_FOLDER,menuType:s6.TEAM_SELECTED_ITEM_FOLDER};if((0,sI.jO)(r,ej._I.DOWNLOAD))return{iconType:m?s4.TEAM_DOWNLOAD_CAN_DOWNLOAD_SUBFOLDER_SELECTED_ITEM_FOLDER:s4.TEAM_DOWNLOAD_SELECTED_ITEM_FOLDER,menuType:s6.TEAM_DOWNLOAD_SELECTED_FOLDER}}return{iconType:null,menuType:null}},lc=function(){var e=nf.Z.getStore().getState(),t=ac.Z.getSelectType(e),n=ac.Z.getSelectedCount(e);return t===ej.RT.ITEM?{iconType:s4.PERSONAL_SELECTED_ITEM,menuType:ll(n)?s6.PERSONAL_SELECTED_ITEM_WITH_SET_FOLDER_COVER:s6.PERSONAL_SELECTED_ITEM}:t===ej.RT.FOLDER?{iconType:s4.PERSONAL_SELECTED_FOLDER,menuType:s6.PERSONAL_SELECTED_FOLDER}:{iconType:s4.PERSONAL_SELECTED_ITEM_FOLDER,menuType:s6.PERSONAL_SELECTED_ITEM_FOLDER}};function ld(e){return(0,nh.Eo)(e)?lu():lc()}function lf(e,t){return 0!==t.length&&t.every(function(t){return t.provider_user_id===e})}function lp(e,t){return 0!==t.length&&t.every(function(t){return t.provider_user_id===e||0===t.owner_user_id})}function lh(e,t){if(0!==e.length){if(t===t7.Z.PERSONAL_SPACE)return e.every(function(e){return 0!==e.owner_user_id});if(t===t7.Z.TEAM_SPACE)return e.every(function(e){return 0===e.owner_user_id})}return!1}function lm(e,t){return e.getIn(["permission",t])}var lg={iconType:null,menuType:null},lv=function(){var e=nf.Z.getStore().getState(),t=ac.Z.getSelectedMap(e),n=ap.Z.getUserId(e),r=r9.Z.getSharingPermission(e),i=t.toIndexedSeq().toJS(),o=lf(n,i),a=r.getIn(["permission","download"]);if(lh(i,t7.Z.PERSONAL_SPACE)){if(!(0,rf.tp)(t7.Z.PERSONAL_SPACE))return o?{iconType:null,menuType:s6.SPACE_DISABLE}:lg;if(o)return{iconType:s4.SHARED_ALBUM_PHOTO_PROVIDER,menuType:s6.SHARED_ALBUM_PHOTO_PROVIDER};if(a)return{iconType:s4.SHARED_ALBUM_DOWNLOAD_ONLY,menuType:null}}if(lh(i,t7.Z.TEAM_SPACE)){if(!(0,rf.tp)(t7.Z.TEAM_SPACE))return o?{iconType:null,menuType:s6.SPACE_DISABLE}:lg;if(o&&(0,li.Z)())return{iconType:s4.SHARED_ALBUM_PHOTO_PROVIDER,menuType:s6.SHARED_ALBUM_PHOTO_PROVIDER};if(o)return{iconType:s4.SHARED_ALBUM_PHOTO_PROVIDER,menuType:s6.SHARED_ALBUM_PHOTO_PROVIDER_NOT_MANAGEMENT};if((0,li.Z)())return{iconType:a?s4.SHARED_ALBUM_DOWNLOAD_ONLY:null,menuType:s6.SHARED_ALBUM_TEAM_MANAGEMENT};if(a)return{iconType:s4.SHARED_ALBUM_DOWNLOAD_ONLY,menuType:null}}return(0,rf.tp)(t7.Z.PERSONAL_SPACE)&&(0,rf.tp)(t7.Z.TEAM_SPACE)?(0,li.Z)()&&o?{iconType:s4.SHARED_ALBUM_PHOTO_PROVIDER,menuType:s6.SHARED_ALBUM_WITHOUT_EDIT_TAG}:a?{iconType:s4.SHARED_ALBUM_DOWNLOAD_ONLY,menuType:null}:lg:o?{iconType:null,menuType:s6.SPACE_DISABLE}:lg},ly=function(){var e=nf.Z.getStore().getState(),t=ac.Z.getSelectedMap(e),n=ap.Z.getUserId(e),r=t.toIndexedSeq().toJS(),i=lf(n,r);if(lh(r,t7.Z.PERSONAL_SPACE))return(0,rf.tp)(t7.Z.PERSONAL_SPACE)?i?{iconType:s4.NORMAL_ALBUM,menuType:s6.NORMAL_ALBUM}:{iconType:s4.NORMAL_ALBUM_WITHOUT_EDIT,menuType:s6.NORMAL_ALBUM_WITHOUT_EDIT_AND_REGENERATE}:{iconType:null,menuType:s6.SPACE_DISABLE};if(lh(r,t7.Z.TEAM_SPACE)){if(!(0,rf.tp)(t7.Z.TEAM_SPACE))return{iconType:null,menuType:s6.SPACE_DISABLE};var o=i?s4.NORMAL_ALBUM:s4.NORMAL_ALBUM_WITHOUT_EDIT;return(0,li.Z)()?{iconType:o,menuType:s6.NORMAL_ALBUM}:i?{iconType:o,menuType:s6.NORMAL_ALBUM_WITHOUT_EDIT}:{iconType:o,menuType:s6.NORMAL_ALBUM_WITHOUT_EDIT_AND_REGENERATE}}if(!(0,rf.tp)(t7.Z.PERSONAL_SPACE)||!(0,rf.tp)(t7.Z.TEAM_SPACE))return{iconType:null,menuType:s6.SPACE_DISABLE};var a=i?s4.NORMAL_ALBUM:s4.NORMAL_ALBUM_WITHOUT_EDIT;return(0,li.Z)()&&lp(n,r)?{iconType:a,menuType:s6.NORMAL_ALBUM_WITHOUT_EDIT_TAG}:{iconType:a,menuType:i?s6.NORMAL_ALBUM_WITHOUT_EDIT:s6.NORMAL_ALBUM_WITHOUT_EDIT_AND_REGENERATE}},lb=function(){var e=nf.Z.getStore().getState(),t=af.Z.getAlbumType(e),n=af.Z.getIsFromSuggestion(e),r=af.Z.getLibrary(e),i=r9.Z.getCurrentFreezeAlbum(e),o=r9.Z.getCurrentType(e)===ej.ZP.ALBUM_TYPE.CONDITION;return t===ej.ZP.ALBUM_TYPE.PERSON?{iconType:s4.PERSON_ALBUM,menuType:s6.PERSON_ALBUM}:t===ej.ZP.ALBUM_TYPE.CONCEPT?{iconType:s4.CONCEPT_ALBUM,menuType:n?s6.SUGGESTION_CONCEPT_ALBUM:s6.CONCEPT_ALBUM}:t===ej.ZP.ALBUM_TYPE.ALBUM?i?{iconType:s4.FREEZE_ALBUM,menuType:s6.FREEZE_ALBUM}:o?{iconType:s4.CONDITION_ALBUM,menuType:s6.CONDITION_ALBUM}:ly():t===ej.ZP.ALBUM_TYPE.SEARCH?{iconType:s4.SEARCH_ALBUM,menuType:s6.SEARCH_ALBUM}:t===ej.ZP.ALBUM_TYPE.SIMILAR?{iconType:s4.SIMILAR_ALBUM,menuType:s6.SIMILAR_ALBUM}:t!==ej.ZP.ALBUM_TYPE.FAVORITE||r!==ej.Zu.TEAM||(0,li.Z)()?{iconType:s4.OTHERS_ALBUM,menuType:s6.OTHERS_ALBUM}:{iconType:s4.TEAM_ENTRY_USER_WITHOUT_MANAGE_AND_DOWNLOAD_PERMISSION,menuType:null}},l_=__webpack_require__(24428),lE=function(e){var t=e.library,n=(0,ax.I0)(),r=(0,ax.v9)(sJ.Z.getMenuIsOpen),i=(0,ax.v9)(sJ.Z.getMenuMousePosition),o=(0,ax.v9)(ac.Z.getSelectedCount),a=(0,ax.v9)(ac.Z.getIsSelectSingleStack),s=(0,ax.v9)(af.Z.getAlbumType),l=s===ej.ZP.ALBUM_TYPE.TIMELINE||s===ej.ZP.ALBUM_TYPE.FOLDER,u={selectedCount:o,selectType:(0,ax.v9)(ac.Z.getSelectType),selectedMap:(0,ax.v9)(ac.Z.getSelectedMap),hasHevc:(0,rf.eB)(),enableConvertedOriginalJpeg:(0,rf.WP)()},c=function(e){var n=e(t);return lr(t,1===o||a,n.iconType,n.menuType,u)},d=[];l&&!SYNO.SDS.Session.isLogined?d=c(la):d=c(l?ld:(0,ng.CB)()?lv:lb);var f=(0,t6.useCallback)(function(){n((0,l_.g)(!1))},[n]),p=(0,t6.useCallback)(function(e){e.key===ej.VD.ESC&&(n((0,s0.S$)()),f())},[n,f]);return t6.createElement(t6.Fragment,null,r&&t6.createElement(sX.Z,{handlerNamespace:sQ.CONTEXT_MENU,onKeyDown:p}),t6.createElement(sK,{isOpen:r,onRequestClose:f,mousePosition:i,menu:d}))};lE.propTypes={library:ak().string.isRequired};var lw=lE,lS=__webpack_require__(43831),lT=function(){},lO=function(e){var t=e.imageUrl,n=e.imageWidth,r=e.imageHeight,i=e.altText,o=e.beforeLoad,a=e.onLoad,s=e.onError;return(0,t6.useEffect)(function(){var e=new Image;if(e.src=t,e.complete){a(e);return}o(),e.onload=function(){a(e)},e.onerror=s},[]),t6.createElement("div",{className:"synofoto-image-preview"},t6.createElement("img",{width:n,height:r,src:t,alt:i}))};lO.propTypes={imageUrl:ak().string.isRequired,imageWidth:ak().number.isRequired,imageHeight:ak().number.isRequired,altText:ak().string,beforeLoad:ak().func,onLoad:ak().func,onError:ak().func},lO.defaultProps={altText:"",beforeLoad:lT,onLoad:lT,onError:lT};var lI=lO,lA=function(e,t){var n=window.innerWidth,r=window.innerHeight,i=ej.B8.HORIZONTAL_RESERVED_EDGE+2*ej.B8.BORDER_WIDTH+ej.B8.OFFSET,o=Math.min(Math.min(1,Math.max(e.left-i,n-e.left-e.width-i)/t.width),Math.min(1,(r-2*ej.B8.BORDER_WIDTH-ej.B8.OFFSET)/t.height));return{width:t.width*o,height:t.height*o}},lC=__webpack_require__(18016),lx=function(e,t){var n=function(n){var r,i=(0,oe._)((0,t6.useState)(0===t),2),o=i[0],a=i[1],s=function(){clearTimeout(r),r=null};return((0,t6.useEffect)(function(){return function(){s()}}),0!==t&&(r=setTimeout(function(){a(!0)},t)),o)?t6.createElement(e,n):null};return n.displayName="WithDelay[".concat((0,lC.Z)(e),"]"),n},lD={delayTime:ak().number},lR={delayTime:0},lL=function(){return t6.createElement("div",{"data-testid":"loading-mask-animation",className:"synofoto-loading-mask-animation"},t6.createElement("div",{className:"synofoto-loading-mask-animation--active"},t6.createElement("svg",{viewBox:"25 25 50 50"},t6.createElement("circle",{cx:"50",cy:"50",r:"20"}))))},lk=function(e){var t=lx(lL,e.delayTime);return t6.createElement(t,null)};lk.propTypes=lD,lk.defaultProps=lR;var lM=lk,lP=null,lN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.delayTime,n=void 0===t?ej.LK.MASK_DEFAULT_DURATION:t;lP=document.body.appendChild(document.createElement("div")),s.render(t6.createElement(lM,{delayTime:n}),lP)},lF=function(){lP&&(s.unmountComponentAtNode(lP),lP.remove(),lP=null)},lB=function(){var e=(0,oe._)((0,t6.useState)({width:0,height:0}),2),t=e[0],n=e[1],r=(0,oe._)((0,t6.useState)(null),2),i=r[0],o=r[1],a=(0,t6.useRef)(null);(0,t6.useEffect)(function(){var e=document.querySelector("#reactRoot");null==e||e.classList.toggle("has-image-preview-tooltip",!!i)},[i]);var s=function(){lN(),a.current=!1,o(!1)},l=function(e){n({width:e.width,height:e.height}),lF(),a.current=!0,o(!0)},u=function(){lF(),a.current=null,o(null)};return t6.createElement(lS.u,{className:"synofoto-image-preview-container",id:ej.B8.TOOLTIP_ID,place:"right-end",noArrow:!0,hidden:!i,style:{borderWidth:ej.B8.BORDER_WIDTH},offset:ej.B8.OFFSET,afterHide:u,delayShow:300,delayHide:100,render:function(e){var n=e.activeAnchor;if(!n)return null;var r=n.getAttribute(ej.B8.TOOLTIP_IMAGE_URL_ATTRIBUTE),i=lA(n.getBoundingClientRect(),{width:Number(t.width),height:Number(t.height)});return t6.createElement(lI,{imageUrl:r,imageWidth:i.width,imageHeight:i.height,beforeLoad:s,onLoad:l,onError:console.error})}})},lU=function(){return t6.createElement(t6.Fragment,null,t6.createElement(a2.Z,{tipId:ej.ZP.GLOBAL_TOOLTIP_ID,type:ej.sZ.DEFAULT,place:"bottom"}),t6.createElement(a2.Z,{tipId:ej.ZP.GLOBAL_WARNING_TOOLTIP_ID,type:ej.sZ.WARNING,place:"top"}),t6.createElement(a2.Z,{tipId:ej.ZP.GLOBAL_WHITE_TOOLTIP_ID,type:ej.sZ.WHITE_TIP,place:"right"}),t6.createElement(lB,null))},lH=function(e,t){return e.getIn(["mobileTooltips",t],!1)},lj=__webpack_require__(1551),lV=function(){var e=(0,ax.I0)(),t=(0,ax.v9)(function(e){return lH(e,ej.ZP.GLOBAL_TOOLTIP_ID)}),n=(0,ax.v9)(function(e){return lH(e,ej.ZP.GLOBAL_WARNING_TOOLTIP_ID)}),r=(0,ax.v9)(function(e){return lH(e,ej.ZP.GLOBAL_WHITE_TOOLTIP_ID)}),i=(0,t6.useCallback)(function(){e((0,lj.l)(ej.ZP.GLOBAL_TOOLTIP_ID,!1)),e((0,lj.l)(ej.ZP.GLOBAL_WARNING_TOOLTIP_ID,!1)),e((0,lj.l)(ej.ZP.GLOBAL_WHITE_TOOLTIP_ID,!1))},[e]);return(0,t6.useEffect)(function(){return document.addEventListener("touchstart",i),function(){document.removeEventListener("touchstart",i)}},[i]),t6.createElement(t6.Fragment,null,t6.createElement(a2.Z,{tipId:ej.ZP.GLOBAL_TOOLTIP_ID,type:ej.sZ.DEFAULT,place:"bottom",isOpen:t}),t6.createElement(a2.Z,{tipId:ej.ZP.GLOBAL_WARNING_TOOLTIP_ID,type:ej.sZ.WARNING,place:"top",isOpen:n}),t6.createElement(a2.Z,{tipId:ej.ZP.GLOBAL_WHITE_TOOLTIP_ID,type:ej.sZ.WHITE_TIP,place:"right",isOpen:r}))},lz=(0,aY.C)(lU,lV),lZ=__webpack_require__(76888),lG=__webpack_require__(42416),lW={open:ak().bool.isRequired,children:ak().node.isRequired};function lq(e){var t=e.open,n=e.children,r=aW()("synofoto-lightbox",{"in-mobile":(0,nP.tq)()});return(0,t6.useLayoutEffect)(function(){var e=document.getElementById("reactRoot").classList.contains("synofoto-album-sharing-page");if(!t||!e||!(0,nP.tq)())return function(){};var n=window.scrollY;document.body.style.overflow="hidden",document.body.style.position="fixed";var r=document.getElementById("reactRoot");return r.style.height="100%",r.style.overflow="scroll",r.scrollTo(0,n),function(){var e=r.scrollTop;document.body.style.overflow=null,document.body.style.position=null,r.style.height=null,r.style.overflow=null,window.scrollTo(0,e)}},[t]),t6.createElement(lG.Z,{isOpen:t,className:r,shouldCloseOnEsc:!1,overlayClassName:"synofoto-common-absolute-fullsize"},n)}lq.propTypes=lW;var lY=lq,l$=__webpack_require__(8346),lK=__webpack_require__(79113),lX={item:aR().map.isRequired},lQ=function(e){var t=e.item,n=(0,ax.I0)(),r=(0,oe._)((0,t6.useState)(""),2),i=r[0],o=r[1],s=(0,oe._)((0,t6.useState)(""),2),l=s[0],u=s[1],c=(0,oe._)((0,t6.useState)(!1),2),d=c[0],f=c[1],p=(0,oe._)((0,t6.useState)(!1),2),h=p[0],m=p[1],g=(0,oe._)((0,t6.useState)(!0),2),v=g[0],y=g[1];if(!(0,nM.K_)()||!v)return null;var b=t.getIn(["additional","concept_raw_data"],eW.default.List()).toJS();if(0===b.length)return null;b.sort(function(e,t){var n=e.confidence>=e.confidence_threshold,r=t.confidence>=t.confidence_threshold;return n&&!r?-1:!n&&r?1:t.confidence-e.confidence});var _=b.map(function(e){return t6.createElement("tr",{key:e.label,className:e.confidence>=e.confidence_threshold?"passed":""},t6.createElement("td",null,e.label),t6.createElement("td",null,e.confidence.toFixed(5)),t6.createElement("td",null,e.confidence_threshold.toFixed(3)))}),E=function(){return(0,t5._)(function(){var e,r,o,s;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return f(!0),e={label:i.trim(),threshold:parseFloat(l.trim())},[4,r3.Z.Foto.Development.Admin.updateConceptThreshold(e)];case 1:return a.sent(),o=(r=t.getIn(["additional","concept_raw_data"])).findIndex(function(t){return t.get("label")===e.label}),s=r.setIn([o,"confidence_threshold"],e.threshold),n((0,tJ.zG)({key:"concept_raw_data",value:s})),f(!1),[2]}})})()},w=function(){return(0,t5._)(function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return m(!0),[4,r3.Z.Foto.Development.Admin.regenerateConceptAlbum()];case 1:return e.sent(),m(!1),[2]}})})()},S=function(){y(!1)};return t6.createElement("div",{className:"synofoto-lightbox-concept-debugging-info"},t6.createElement("table",{cellSpacing:"0"},t6.createElement("thead",null,_S("is_admin")?t6.createElement("tr",null,t6.createElement("th",null,t6.createElement("input",{type:"text",size:"15",placeholder:"Label",onChange:function(e){return o(e.target.value)}})),t6.createElement("th",null,t6.createElement("input",{type:"text",size:"10",placeholder:"Threshold",onChange:function(e){return u(e.target.value)}})),t6.createElement("th",null,t6.createElement(lK.Z,{text:"\uD83D\uDCBE",title:"Save",handler:E,alwaysShowTooltip:!0,disabled:d}),t6.createElement(lK.Z,{text:"\uD83D\uDD04",title:"Regenerate",handler:w,alwaysShowTooltip:!0,disabled:h}),t6.createElement(lK.Z,{text:"❌",title:"Hide",handler:S,alwaysShowTooltip:!0}))):t6.createElement("tr",null,t6.createElement("th",null,t6.createElement(lK.Z,{text:"❌",title:"Hide",handler:S,alwaysShowTooltip:!0}))),t6.createElement("tr",null,t6.createElement("th",null,"Label"),t6.createElement("th",null,"Confidence"),t6.createElement("th",null,"Threshold"))),t6.createElement("tbody",null,_)))};lQ.propTypes=lX;var lJ=lQ,l0=__webpack_require__(87207),l1=__webpack_require__(17963),l2=__webpack_require__(1227),l4=__webpack_require__(878),l3=function(e,t){var n=e.getIn(["additional","thumbnailUnitId"]);return t.get(n.toString()).toJS()},l5=(0,aM.Z)(function(e){var t,n=e.currentItem,r=e.prevItems,i=e.nextItems,o=e.liveUnits,a=e.thumbnailInfo,s=e.userId,l=e.hasFolderDownloadPermission,u=e.hasVc1,c=e.hasH264,d=e.pcClientHevcSupport,f=e.pcClientVc1Support,p=e.canUseVideoTranscoding,h=e.dispatch,m=[];o.isEmpty()?(t=m).push.apply(t,(0,eG._)((0,l4.Z)({item:n,thumbnailInfo:l3(n,a),userId:s,hasFolderDownloadPermission:l,hasVc1:u,hasH264:c,pcClientHevcSupport:d,pcClientVc1Support:f,canUseVideoTranscoding:p}))):o.forEach(function(e){var t;(t=m).push.apply(t,(0,eG._)((0,l4.Z)({item:e,thumbnailInfo:l3(e,a),userId:s,hasFolderDownloadPermission:l,hasVc1:u,hasH264:c,pcClientHevcSupport:d,pcClientVc1Support:f,canUseVideoTranscoding:p})))}),i.forEach(function(e){if(!(0,oB.mi)(e)){var t;(t=m).push.apply(t,(0,eG._)((0,l4.Z)({item:e,thumbnailInfo:l3(e,a),userId:s,hasFolderDownloadPermission:l,hasVc1:u,hasH264:c,pcClientHevcSupport:d,pcClientVc1Support:f,canUseVideoTranscoding:p})))}}),r.forEach(function(e){if(!(0,oB.mi)(e)){var t;(t=m).push.apply(t,(0,eG._)((0,l4.Z)({item:e,thumbnailInfo:l3(e,a),userId:s,hasFolderDownloadPermission:l,hasVc1:u,hasH264:c,pcClientHevcSupport:d,pcClientVc1Support:f,canUseVideoTranscoding:p})))}}),m.length>0&&h((0,l1.DK)(m))},2e3),l6=function(e){var t=e.currentItem,n=e.prevItems,r=e.nextItems,i=e.liveUnits,o=(0,ax.I0)(),a=(0,l0.Z)(),s=a.isSupportAutoGenerateThumbnail,l=a.hasVc1,u=a.hasH264,c=a.pcClientHevcSupport,d=a.pcClientVc1Support,f=a.canUseVideoTranscoding,p=(0,ax.v9)(l2.Z.getInfo),h=(0,ax.v9)(ap.Z.getUserId),m=(0,ax.v9)(ah.Z.getCurrentFolderPermission).get(ej._I.DOWNLOAD,!1);return(0,t6.useEffect)(function(){s&&l5({currentItem:t,prevItems:n,nextItems:r,liveUnits:i,thumbnailInfo:p,userId:h,hasFolderDownloadPermission:m,hasVc1:l,hasH264:u,pcClientHevcSupport:c,pcClientVc1Support:d,canUseVideoTranscoding:f,dispatch:o})},[s,t,n,r,i,p,h,m,l,u,c,d,f,o]),null};l6.propTypes={currentItem:aR().map.isRequired,prevItems:aR().list.isRequired,nextItems:aR().list.isRequired,liveUnits:aR().list.isRequired};var l9=l6,l8=__webpack_require__(89243),l7=function(e){var t=e.item,n=e.show,r=e.isVideo,i=e.toggleInfoPanel,o=(0,oe._)((0,t6.useState)(!1),2),a=o[0],s=o[1],l=(0,t6.useRef)(null),u=t.getIn(["additional","description"]),c=0===u.length,d=!(!n||r)&&!((0,nP.tq)()&&(0,ng.CB)()),f=aW()("synofoto-lightbox-bottom-info-wrapper",{"in-mobile":(0,nP.tq)()}),p=(0,t6.useCallback)(function(e){if(!e&&l.current){l.current.disconnect(),l.current=null;return}l.current||(l.current=new ResizeObserver(function(e){var t=(0,oe._)(e,1)[0];t.target.scrollHeight>=40?s(!0):t.target.scrollHeight<40&&s(!1)}),l.current.observe(e))},[]);(0,t6.useEffect)(function(){return function(){l.current&&(l.current.disconnect(),l.current=null)}},[]);var h=function(e){if(!e)return"";var t=[];return ej.vJ.forEach(function(n){""!==e.get(n,"")&&t.push(e.get(n))}),t.slice(0,3).join(", ")},m=function(){var e=t.getIn(["additional","address"]);return t6.createElement("div",{className:"synofoto-lightbox-bottom-info-date-address-wrapper"},t6.createElement("div",{className:"synofoto-lightbox-bottom-info-date"},(0,l8.Z)(t.get("time"),!0)),e&&e.size>0&&t6.createElement(t6.Fragment,null,t6.createElement("div",{className:"synofoto-lightbox-bottom-info-dot","data-testid":"synofoto-lightbox-bottom-info-dot"}),t6.createElement("div",{className:"synofoto-lightbox-bottom-info-address","data-testid":"synofoto-lightbox-bottom-info-address"},h(e))))},g=function(){var e=aW()({"synofoto-lightbox-bottom-info-description":!0}),t=aW()(e,{shadow:!0}),n=aW()({"synofoto-lightbox-bottom-info-show-more":!0,show:a});return t6.createElement("div",{className:"synofoto-lightbox-bottom-info-description-wrapper"},t6.createElement("div",{"data-testid":"synofoto-lightbox-bottom-info-description",className:e},t6.createElement("div",{className:"ellipsis-text"},u)),t6.createElement("div",{className:t,"data-testid":"synofoto-lightbox-bottom-info-description-shadow",ref:p},u),t6.createElement(lK.Z,{className:n,text:(0,tQ.n6)("action","more"),handler:i}))};return t6.createElement("div",{"data-testid":"synofoto-lightbox-bottom-info-panel"},d&&t6.createElement("div",{className:f,"data-testid":"synofoto-lightbox-bottom-info-wrapper"},m(),c?null:g()))};l7.propTypes={item:aR().map.isRequired,show:ak().bool.isRequired,isVideo:ak().bool.isRequired,toggleInfoPanel:ak().func.isRequired};var ue=l7,ut=function(e){var t=e.closeLightbox,n=e.showOverlay,r=e.slideshowMode,i=e.onMouseMove,o=e.onTap,a=(0,nP.tq)()?"synofoto-lightbox-toolbar-mobile":"synofoto-lightbox-toolbar",s=aW()("synofoto-lightbox-overlays",{hidden:!n});return t6.createElement("div",{className:"synofoto-lightbox-wrapper","data-testid":"dummy-lightbox-panel"},t6.createElement("div",{className:"synofoto-lightbox-image-panel",onMouseMove:i,onTouchEnd:o},t6.createElement("div",{className:s},r?null:t6.createElement("div",{className:a},t6.createElement("div",{className:"synofoto-lightbox-toolbar-left"},t6.createElement(se.Z,{className:"synofoto-lightbox-toolbar-left-button",iconCls:"back-dark-btn-icon",handler:t}))))))};ut.propTypes={closeLightbox:ak().func.isRequired,showOverlay:ak().bool.isRequired,slideshowMode:ak().bool.isRequired,onMouseMove:ak().func.isRequired,onTap:ak().func.isRequired};var un=ut,ur=__webpack_require__(91250),ui=__webpack_require__(22758),uo={hasNext:ak().bool.isRequired,needMountImage:ak().bool,onWheel:ak().func,handleClick:ak().func,handleTouchMove:ak().func,imgSrc:ak().string.isRequired,setCurrentImageRef:ak().func,isHidden:ak().bool.isRequired},ua={setCurrentImageRef:function(){},needMountImage:!0,handleClick:function(){},handleTouchMove:function(){},onWheel:function(){}},us=function(e){var t=e.hasNext,n=e.needMountImage,r=e.onWheel,i=e.handleClick,o=e.handleTouchMove,a=e.imgSrc,s=e.setCurrentImageRef,l=e.isHidden,u=aW()({"synofoto-lightbox-image":!0,allowDefCtxMenu:!0,"no-next":!t,hidden:l}),c="lightbox".concat(l?" preload":""," image");return n?t6.createElement("div",{onTouchMove:o},t6.createElement("img",{"data-testid":"lightbox-image",className:u,alt:c,src:a,ref:s,onClick:i,onWheel:r})):null};us.propTypes=uo,us.defaultProps=ua;var ul=(0,ui.Z)(us),uu=function(e){var t=e.src,n=e.zoomImageSrc,r=e.className,i=(0,t6.useRef)(null),o=(0,t6.useRef)(!1),a=(0,t6.useRef)(0),s=(0,t6.useRef)(0),l=(0,t6.useRef)(0),u=(0,t6.useRef)(0),c=(0,t6.useRef)(0),d=(0,t6.useRef)(0),f=(0,t6.useRef)(0),p=(0,t6.useRef)(0),h=(0,t6.useRef)(null),m=(0,t6.useRef)(null),g=(0,t6.useRef)(null),v=(0,t6.useRef)(null),y=(0,t6.useRef)(null),b=(0,t6.useRef)(n&&t!==n),_=function(e){return e.changedTouches&&e.changedTouches.length>0?e.changedTouches[0]:e},E=function(e){var t=_(e);e.preventDefault(),o.current=!0,a.current=t.clientX,s.current=t.clientY,l.current=c.current,u.current=d.current},w=function(e){if(!0===o.current){var t=_(e);c.current=(a.current-t.clientX)*.1+l.current,d.current=(t.clientY-s.current)*.1+u.current}},S=function(){o.current=!1},T=function(){var e=new THREE.SphereBufferGeometry(500,60,40);return e.scale(-1,1,1),e},O=function(e){var t=new THREE.MeshBasicMaterial({map:e}),n=new THREE.Mesh(T(),t);g.current.clear(),g.current.add(n)},I=function(){new THREE.TextureLoader().load(n,O)},A=function(e){b.current&&(b.current=!1,I());var t=m.current.fov+.05*e.deltaY;m.current.fov=THREE.Math.clamp(t,10,75),m.current.updateProjectionMatrix()},C=function(){if(null!==i.current){var e=i.current.offsetWidth,t=i.current.offsetHeight,n=e/t;m.current.aspect=n,m.current.updateProjectionMatrix(),y.current.setPixelRatio(n),y.current.setSize(e,t)}},x=function(){var e=i.current.offsetWidth/i.current.offsetHeight;m.current=new THREE.PerspectiveCamera(75,e,1,1100),m.current.target=new THREE.Vector3(0,0,0),g.current=new THREE.Scene;var n=new THREE.MeshBasicMaterial({map:new THREE.TextureLoader().load(t)});v.current=new THREE.Mesh(T(),n),g.current.add(v.current),y.current=new THREE.WebGLRenderer,i.current.appendChild(y.current.domElement),C()},D=function(){g.current.remove(v.current),y.current.clear(),y.current.forceContextLoss(),y.current.dispose(),i.current&&i.current.removeChild(y.current.domElement)},R=function(){d.current=Math.max(-85,Math.min(85,d.current)),f.current=THREE.Math.degToRad(90-d.current),p.current=THREE.Math.degToRad(c.current),m.current.target.x=500*Math.sin(f.current)*Math.cos(p.current),m.current.target.y=500*Math.cos(f.current),m.current.target.z=500*Math.sin(f.current)*Math.sin(p.current),m.current.lookAt(m.current.target),y.current.render(g.current,m.current),C(),h.current=requestAnimationFrame(R)},L=function(){h.current||(h.current=requestAnimationFrame(R))},k=function(){h.current&&cancelAnimationFrame(h.current)},M=function(){i.current.addEventListener("touchstart",E,!1),i.current.addEventListener("touchmove",w,!1),i.current.addEventListener("touchend",S,!1),i.current.addEventListener("touchcancel",S,!1),i.current.addEventListener("mousedown",E,!1),i.current.addEventListener("mousemove",w,!1),i.current.addEventListener("mouseup",S,!1),i.current.addEventListener("mouseleave",S,!1),i.current.addEventListener("wheel",A,!1),window.addEventListener("resize",C,!1)},P=function(){i.current&&(i.current.removeEventListener("touchstart",E,!1),i.current.removeEventListener("touchmove",w,!1),i.current.removeEventListener("touchend",S,!1),i.current.removeEventListener("touchcancel",S,!1),i.current.removeEventListener("mousedown",E,!1),i.current.removeEventListener("mousemove",w,!1),i.current.removeEventListener("mouseup",S,!1),i.current.removeEventListener("mouseleave",S,!1),i.current.removeEventListener("wheel",A,!1)),window.removeEventListener("resize",C,!1)};return(0,t6.useEffect)(function(){return x(),L(),M(),function(){P(),k(),D()}},[]),t6.createElement("div",{className:r,ref:i})};uu.propTypes={src:ak().string.isRequired,zoomImageSrc:ak().string,className:ak().string},uu.defaultProps={className:"",zoomImageSrc:""};var uc=uu,ud=function(e){var t=e.id,n=e.type,r=void 0===n?ej.Zk.Unit:n,i=e.cacheKey,o=void 0===i?void 0:i,a=e.albumId,s=void 0===a?void 0:a,l=e.passphrase,u=void 0===l?void 0:l,c=e.tid,d=void 0===c?void 0:c,f=e.library,p={};o&&(p.cache_key=o),r===ej.Zk.Item?p.item_id=[t]:r===ej.Zk.Unit&&(p.unit_id=[t]);var h=f;return s?(p.album_id=s,h=t7.Z.PERSONAL_SPACE):u&&(p.passphrase=u,h=t7.Z.PERSONAL_SPACE),d&&(p.tid=d),(0,iT.n_)("Download","download",p,h)},uf=function(e){return!!e.item.get("filename").match(/\.(jpg|jpeg)$/gi)},up=function(e){return!!e.item.get("filename").match(/\.gif|webp$/gi)},uh=function(e,t){var n=1280;if(1280>Math.min(e,t))return{width:e,height:t};var r=Math.min(e,t)/n;return{width:Math.round(e/r),height:Math.round(t/r)}},um=function(e){var t=e.item,n=e.thumbnailUnitId,r=e.thumbnailInfo,i=e.library,o=e.albumType,a=e.sharingAlbumPermission,s=e.albumKey,l=e.isTeamSpacePhoto,u=t.getIn(["additional","resolution","width"]),c=t.getIn(["additional","resolution","height"]),d=(0,iT.AJ)(t.get("id"),r,ej.Zk.Item,"xl",s,i),f=up({item:t})?{width:u,height:c}:uh(u,c),p={image:ud({id:n,cacheKey:r.cache_key,albumId:s.albumId,passphrase:s.passphrase,library:i}),width:u,height:c,xlImage:d,xlImageSize:f};if(uf({item:t})){if(o===ej.ZP.ALBUM_TYPE.TIMELINE||o===ej.ZP.ALBUM_TYPE.FOLDER){if(!l||(0,sI.KF)(ej._I.DOWNLOAD))return p}else if((0,ng.CB)()){if(a.getIn(["permission","download"]))return p;if(l&&(0,li.Z)())return p.image=ud({id:n,cacheKey:r.cache_key,library:i}),p}else if(!(0,ng.CB)())return p}return{image:(0,iT.AJ)(t.get("id"),r,ej.Zk.Item,"xl",s,i),width:f.width,height:f.height,xlImage:d,xlImageSize:f}},ug={imgSrc:ak().string.isRequired,item:aR().map.isRequired,albumType:ak().string.isRequired,albumKey:ak().shape({passphrase:ak().string,albumId:ak().number}).isRequired,library:ak().string.isRequired,isTeamSpacePhoto:ak().bool.isRequired,sharingAlbumPermission:aR().map.isRequired},uv=function(e){var t=e.imgSrc,n=e.item,r=e.albumKey,i=e.albumType,o=e.library,a=e.isTeamSpacePhoto,s=e.sharingAlbumPermission,l=n.getIn(["additional","thumbnailUnitId"]),u=(0,aN.Z)({thumbnailUnitId:l,thumbnailLibrary:o}),c=um({item:n,thumbnailUnitId:l,thumbnailInfo:u,library:o,albumType:i,sharingAlbumPermission:s,albumKey:r,isTeamSpacePhoto:a}).image;return t6.createElement(uc,{className:"synofoto-lightbox-image-360",src:t,zoomImageSrc:c})};uv.propTypes=ug;var uy=uv,ub=__webpack_require__(70826),u_=t6.lazy(function(){return __webpack_require__.e("608").then(__webpack_require__.bind(__webpack_require__,69185))}),uE=72,uw=4e3,uS=300,uT=function(e){return document.querySelector(e)&&(document.querySelector(e).style.opacity=0),function(){document.querySelector(e)&&(document.querySelector(e).style.opacity="")}},uO={id:ak().number.isRequired,isVideo:ak().bool.isRequired},uI=function(e){e.current&&(clearTimeout(e.current),e.current=null)},uA=function(e){var t=e.id,n=e.isVideo,r=(0,t6.useRef)(-1),i=(0,t6.useRef)(null),o=(0,t6.useRef)(null),a=(0,oe._)((0,t6.useState)(!0),2),s=a[0],l=a[1],u=(0,oe._)((0,t6.useState)(!0),2),c=u[0],d=u[1];(0,t6.useEffect)(function(){if(-1===r.current||r.current!==t){if(uI(i),uI(o),c){l(!1),d(!1);var e=uT(".vjs-big-play-button"),a=uT(".vjs-loading-spinner");n||(i.current=setTimeout(function(){i.current=null,l(!0),o.current=setTimeout(function(){e(),a()},uS)},uw)),r.current=t}else d(!0)}},[t,n,c]),(0,t6.useEffect)(function(){var e=i.current,t=o.current;return function(){e&&clearTimeout(e),t&&clearTimeout(t)}},[]);var f=aW()("synofoto-mobile-360-animation",{hidden:s});return t6.createElement("div",{className:f},t6.createElement(t6.Suspense,{fallback:t6.createElement("div",null)},t6.createElement(u_,{style:{width:uE,height:uE},play:!c,path:(0,ub.Z)(ej.Q2.LIGHT,n?"360_video_motion.json":"360_photo_motion.json"),loop:!1})),t6.createElement("div",{className:"synofoto-mobile-360-animation-desc"},(0,tQ.n6)(n?"video":"app","360_hint_mobile")))};uA.propTypes=uO;var uC=uA,ux={item:aR().map.isRequired,imgSrc:ak().string.isRequired,isInMobile360:ak().bool.isRequired,onClick360ThumbnailInMobileHandler:ak().func.isRequired,onClickLeaveInMobileHandler:ak().func.isRequired},uD=function(e){var t=e.item,n=e.imgSrc,r=e.isInMobile360,i=e.onClick360ThumbnailInMobileHandler,o=e.onClickLeaveInMobileHandler;return r?t6.createElement(t6.Fragment,null,t6.createElement(uc,{className:"synofoto-lightbox-image-360",src:n}),t6.createElement(se.Z,{iconCls:"cancel-dark-btn-icon",className:"synofoto-lightbox-leave-360-mobile",handler:o})):t6.createElement(t6.Fragment,null,t6.createElement("img",{className:"synofoto-lightbox-image synofoto-360-thumbnail-mobile",alt:"",src:n,onClick:i}),t6.createElement(uC,{id:t.get("id"),isVideo:!1}))};uD.propTypes=ux;var uR=uD,uL=(0,ui.Z)((0,aY.C)(uy,uR)),uk={itemDetail:aR().list},uM={itemDetail:eW.default.List()},uP=function(e){var t=e.itemDetail;return function(){return t.isEmpty()?t6.createElement("div",{className:"synofoto-lightbox-info-empty"},(0,tQ.n6)("app","no_info")):t6.createElement("div",{className:"synofoto-lightbox-detail-panel"},t.map(function(e){return t6.createElement("div",{key:e.get("key"),className:"synofoto-lightbox-detail-item"},t6.createElement("div",{className:"synofoto-lightbox-detail-key"},"".concat(e.get("key"),":")),t6.createElement("div",{className:"synofoto-lightbox-detail-value"},e.get("value")))}))}()};uP.propTypes=uk,uP.defaultProps=uM;var uN=t6.memo(uP),uF=__webpack_require__(69253),uB={itemId:ak().number.isRequired,pathname:ak().string.isRequired,albumId:ak().number,passphrase:ak().string},uU={albumId:void 0,passphrase:""},uH=function(e){var t=e.itemId,n=e.pathname,r=e.albumId,i=e.passphrase,o=(0,ax.I0)(),a=(0,ax.v9)(au.getItemDetail);return(0,t6.useEffect)(function(){sessionStorage.setItem(ej.bT,ej.VJ.DETAIL)},[]),(0,t6.useEffect)(function(){var e=(0,n6.o$)(n);(0,uF.f)(o,e.library,iU.SN,iU.F$)(t,i,r)},[t,n,i,r,o]),t6.createElement(uN,{itemDetail:a})};uH.propTypes=uB,uH.defaultProps=uU;var uj=t6.memo(uH),uV=function(e){var t=e.generalSectionClassName,n=e.firstLineClassName,r=e.secondLineClassName,i={className:ak().string,indicatorClassName:ak().string,firstLine:ak().node,secondLine:ak().node,action:ak().node,component:ak().node},o={className:"",indicatorClassName:"",firstLine:null,secondLine:null,action:null,component:null},a=function(e){var i=e.className,o=e.indicatorClassName,a=e.firstLine,s=e.secondLine,l=e.action,u=e.component;return a||s?t6.createElement("div",{className:"".concat(t," ").concat(i)},t6.createElement("div",{className:o}),t6.createElement("div",{className:"synofoto-lightbox-info-block"},t6.createElement("div",{className:"".concat(n," allowDefCtxMenu selectabletext")},a),t6.createElement("div",{className:"".concat(r," allowDefCtxMenu selectabletext")},s),u),l):null};return a.propTypes=i,a.defaultProps=o,a},uz=uV({generalSectionClassName:"synofoto-lightbox-general-section",firstLineClassName:"synofoto-lightbox-info-first-line",secondLineClassName:"synofoto-lightbox-info-second-line"});uz.displayName="DesktopGeneralSection";var uZ=uV({generalSectionClassName:"synofoto-lightbox-general-section-mobile",firstLineClassName:"synofoto-lightbox-info-first-line-mobile",secondLineClassName:"synofoto-lightbox-info-second-line-mobile"});uZ.displayName="MobileGeneralSection";var uG=uz,uW={exif:aR().map},uq={exif:null},uY=function(e){if(!e)return"";var t=[];return(""!==e.get("aperture")&&t.push(e.get("aperture").replace("F","f/")),""!==e.get("exposure_time")&&t.push(e.get("exposure_time").replace(" ","")),""!==e.get("focal_length")&&t.push(e.get("focal_length").replace(" ","")),""!==e.get("iso")&&t.push("ISO".concat(e.get("iso"))),0===t.length)?"":t6.createElement("pre",null,t.join("  "))},u$=function(e){var t=e.exif;if(!t)return null;var n=uY(t),r=t.get("camera");return n||r?t6.createElement(uG,{indicatorClassName:"synofoto-indicator-photo-camera",firstLine:r||(0,tQ.n6)("filter","camera"),secondLine:n}):null};u$.propTypes=uW,u$.defaultProps=uq;var uK=u$,uX=__webpack_require__(12599);/**
 * React Router DOM v6.14.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function uQ(){return(uQ=Object.assign?Object.assign.bind():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}).apply(this,arguments)}function uJ(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}let u0="get",u1="application/x-www-form-urlencoded";function u2(e){return null!=e&&"string"==typeof e.tagName}function u4(e){return u2(e)&&"button"===e.tagName.toLowerCase()}function u3(e){return u2(e)&&"form"===e.tagName.toLowerCase()}function u5(e){return u2(e)&&"input"===e.tagName.toLowerCase()}function u6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u9(e,t){return 0===e.button&&(!t||"_self"===t)&&!u6(e)}let u8=null;function u7(){if(null===u8)try{new FormData(document.createElement("form"),0),u8=!1}catch(e){u8=!0}return u8}let ce=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ct(e){return null==e||ce.has(e)?e:null}function cn(e,t){let n,r,i,o,a;if(u3(e)){let a=e.getAttribute("action");r=a?stripBasename(a,t):null,n=e.getAttribute("method")||u0,i=ct(e.getAttribute("enctype"))||u1,o=new FormData(e)}else if(u4(e)||u5(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?stripBasename(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||u0,i=ct(e.getAttribute("formenctype"))||ct(a.getAttribute("enctype"))||u1,o=new FormData(a,e),!u7()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,r)}}else if(u2(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else n=u0,r=null,i=u1,a=e;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}let cr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];t9.startTransition;let ci="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,co=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ca=t6.forwardRef(function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=e,d=uJ(e,cr),{basename:f}=t6.useContext(aC.Us),p=!1;if("string"==typeof u&&co.test(u)&&(n=u,ci))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),n=(0,uX.Zn)(t.pathname,f);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:p=!0}catch(e){}let h=(0,aC.oQ)(u,{relative:i}),m=cl(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function g(e){r&&r(e),e.defaultPrevented||m(e)}return t6.createElement("a",uQ({},d,{href:n||h,onClick:p||o?r:g,ref:t,target:l}))});function cs(e){let t=React.useContext(UNSAFE_DataRouterContext);return t||UNSAFE_invariant(!1),t}function cl(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=void 0===t?{}:t,s=(0,aC.s0)(),l=(0,aC.TH)(),u=(0,aC.WU)(e,{relative:a});return t6.useCallback(t=>{u9(t,n)&&(t.preventDefault(),s(e,{replace:void 0!==r?r:(0,uX.Ep)(l)===(0,uX.Ep)(u),state:i,preventScrollReset:o,relative:a}))},[l,s,u,r,i,n,e,o,a])}function cu(){if("undefined"==typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(r||(r={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(i||(i={}));var cc=__webpack_require__(33610),cd=function(e){return function(t,n,r){var i=t[n],o="Invalid prop `".concat(n,"` supplied to `").concat(r,"`.");if(null==i){if(e)throw Error("".concat(o," ").concat(n," is required"))}else if("string"!=typeof i||0===i.length)throw Error("Invalid prop `".concat(n,"` supplied to `").concat(r,"`. Should be non-empty string."));return null}},cf=cd(!1);cf.isRequired=cd(!0);var cp={children:ak().node,dataTestId:ak().string,state:ak().shape({}),replace:ak().bool,preventScrollReset:ak().bool,onClick:ak().func,tooltipProps:ak().shape({"data-tooltip-id":ak().string,"data-tooltip-content":ak().string}),className:ak().string,to:cf.isRequired},ch={replace:cc.D.replace,state:cc.D.state,preventScrollReset:cc.D.preventScrollReset,children:null,dataTestId:"",onClick:function(){},tooltipProps:{},className:""},cm=function(e){var t=e.children,n=e.to,r=e.state,i=e.replace,o=e.preventScrollReset,a=e.onClick,s=e.dataTestId,l=e.tooltipProps,u=e.className,c=n.startsWith("/")?"route":"path";return t6.createElement(ca,(0,t0._)({to:n,relative:c,replace:i,state:r,preventScrollReset:o,onClick:a,"data-testid":s,className:u},l),t)};cm.propTypes=cp,cm.defaultProps=ch;var cg=cm,cv={fileLocationPath:ak().string.isRequired,folderId:ak().number.isRequired,inFolderView:ak().bool.isRequired,library:ak().string.isRequired},cy=function(e){var t=e.fileLocationPath,n=e.folderId,r=e.inFolderView,i=e.library,o=(0,nh.Eo)(i)?"/".concat(t7.Z.TEAM_SPACE,"/").concat(t7.Z.FOLDER,"/").concat(n):"/".concat(t7.Z.PERSONAL_SPACE,"/").concat(t7.Z.FOLDER,"/").concat(n);return!t||r||(0,ng.f5)()?null:t6.createElement("div",{className:"synofoto-lightbox-info-folder-location"},t6.createElement(cg,{to:o},t===t7.Z.ROOT?(0,tQ.n6)("lightbox","file_location"):t))};cy.propTypes=cv;var cb=cy,c_={fileLocationPath:ak().string.isRequired,folderId:ak().number.isRequired,inFolderView:ak().bool.isRequired,library:ak().string.isRequired},cE=function(e){var t=e.fileLocationPath,n=e.folderId,r=e.inFolderView,i=e.library,o=t===t7.Z.ROOT?(0,tQ.n6)("lightbox","file_location"):t,a=(0,nh.Eo)(i)?"/".concat(t7.Z.TEAM_SPACE,"/").concat(t7.Z.FOLDER,"/").concat(n):"/".concat(t7.Z.PERSONAL_SPACE,"/").concat(t7.Z.FOLDER,"/").concat(n);return!t||r||(0,ng.f5)()?null:(0,nh.iY)((0,np.AZ)())?t6.createElement("div",{className:"synofoto-lightbox-info-folder-location-text-only"},o):t6.createElement("div",{className:"synofoto-lightbox-info-folder-location","data-testid":"lightbox-info-folder-location"},t6.createElement(cg,{to:a},o))};cE.propTypes=c_;var cw=t6.memo(cE),cS=t6.memo((0,aY.C)(cb,cw)),cT={address:aR().map,gps:aR().map},cO={address:null,gps:null},cI=function(e){if(!e)return"";var t=[];return ej.vJ.forEach(function(n){""!==e.get(n)&&t.push(e.get(n))}),t.join(", ")},cA=function(e){if(!e)return"";var t=[parseFloat(e.get("latitude").toFixed(3)),parseFloat(e.get("longitude").toFixed(3))],n=t[0],r=t[1];return"".concat(n,", ").concat(r)},cC=function(e){var t=e.address,n=e.gps;if(!t&&!n)return null;var r=cI(t)||cA(n);return t6.createElement(uG,{indicatorClassName:"synofoto-indicator-photo-location",firstLine:(0,tQ.n6)("filter","geocoding"),secondLine:r})};cC.propTypes=cT,cC.defaultProps=cO;var cx=cC,cD=__webpack_require__(21132),cR=t7.Z.ALBUM_TYPE.PERSON,cL={data:aR().list,passphrase:ak().string,library:ak().string.isRequired},ck={data:eW.default.List(),passphrase:""},cM=function(e){var t=e.data,n=e.passphrase,r=e.library,i=(0,ax.v9)(au.getIsPeopleShowMore),o=(0,oe._)((0,t6.useState)(i),2),a=o[0],s=o[1],l=(0,eZ.Qx)(),u=[],c=t;t.size>5&&!a&&(c=t.setSize(5));var d=t.size-c.size>0?t.size-c.size+1:0,f="+".concat(d);return d>=100&&(f="99+"),c.forEach(function(e,t,i){var o=e.get("id"),a={cache_key:e.getIn(["additional","thumbnail","cache_key"],"")};if(t===i.size-1&&0!==d)u.push(t6.createElement("div",{style:{display:"inline-block",verticalAlign:"top",position:"relative"},key:"person_show_more_btn","data-testid":"people-more-item"},t6.createElement(cD.Z,{className:"synofoto-lightbox-people-more-btn",dataTestId:"people-more-btn",text:f,handler:function(){return s(!0)},circleImage:(0,iT.AJ)(o,a,"person",(0,rf.$E)(),{passphrase:n},r)}),t6.createElement("div",{className:"synofoto-lightbox-people-more-btn-text"},f)));else{var c=t6.createElement("div",{key:"person_".concat(o),className:"synofoto-lightbox-people-item"},t6.createElement(aP.Z,{imageHeight:42,imageWidth:42,imageUrl:(0,iT.AJ)(o,a,"person",(0,rf.$E)(),{passphrase:n},r),isCover:!0,isPerson:!0})),p={"data-tooltip-id":ej.ZP.GLOBAL_TOOLTIP_ID,"data-tooltip-content":e.get("name")||(0,tQ.n6)("app","unnamed")};u.push(t6.createElement(cg,{key:"person_".concat(o),to:"/".concat(cR,"/").concat(r,"/").concat(o),state:l,className:"synofoto-lightbox-people-item",tooltipProps:p,dataTestId:"person_".concat(o)},c))}}),t6.createElement("div",{className:"synofoto-lightbox-people-panel","data-testid":"lightbox-people-panel"},u)};cM.propTypes=cL,cM.defaultProps=ck;var cP=cM,cN={passphrase:ak().string,library:ak().string.isRequired},cF={passphrase:""},cB=function(e){var t=e.passphrase,n=e.library,r=(0,ax.v9)(au.getPersonDataInLightbox),i=(0,sV.Z)(),o=i.location,a=i.navigate;if(0===r.size)return null;var s=function(){var e="".concat(o.pathname,"/").concat(t7.Z.EDIT_FACE),t=o.state||{};a(e,{state:(0,t0._)({editFace:!0},t)})};return t6.createElement("div",{className:"synofoto-lightbox-info-people-section"},t6.createElement("div",{className:"synofoto-lightbox-info-title-section"},t6.createElement("div",null,(0,tQ.n6)("app","person")),t6.createElement(se.Z,{className:"synofoto-time-edit-btn",iconCls:"edit-btn-icon",handler:s})),t6.createElement(cP,{data:r,passphrase:t,library:n}))};cB.propTypes=cN,cB.defaultProps=cF;var cU=cB,cH=__webpack_require__(34670),cj=__webpack_require__(31202),cV=__webpack_require__(14324),cz=function(e){return t6.createElement(cH.c.MultiValueLabel,(0,t1._)((0,t0._)({},e),{innerProps:(0,t1._)((0,t0._)({},e.innerProps),{onClick:function(){e.selectProps.onValueClick(e.data)}})}))},cZ=function(e){var t=e.children,n=e.needValueContainerLoadingIndicator,r=(0,t2._)(e,["children","needValueContainerLoadingIndicator"]),i=(0,oe._)(t,2),o=i[0],a=i[1];return t6.createElement(cH.c.ValueContainer,r,[o,n?t6.createElement("div",{className:"synofoto-general-tag-loading-ct",key:"generalTagLoading"},t6.createElement(cj.Z,null)):null,a])},cG=function(e){return t6.createElement(cH.c.Input,(0,t1._)((0,t0._)({},e),{style:(0,t1._)((0,t0._)({},(0,cV.Z)(e.getStyles("input",e),["gridArea"])),{minWidth:"100px",border:"none",background:"none",padding:0}),placeholder:(0,tQ.n6)("action","add_tag")}))},cW=function(e){var t=function(t){t&&t.target&&!t.target.className.includes("label")&&e.innerProps.onMouseDown(t)};return t6.createElement(t6.Fragment,null,t6.createElement("div",{className:"synofoto__control-wrapper",onClick:t}),t6.createElement(cH.c.Control,(0,t1._)((0,t0._)({},e),{innerProps:(0,t1._)((0,t0._)({},e.innerProps),{onMouseDown:t})})))},cq=__webpack_require__(39308),cY=__webpack_require__(8323),c$=__webpack_require__(27154),cK=__webpack_require__(9849);function cX(e,t){return{type:ez.qA.CreateAndAddGeneralTag,idArray:e,tagName:t,ItemAPI:r3.Z.Foto.Browse.Item,GeneralTagAPI:r3.Z.Foto.Browse.GeneralTag,updateGeneralTagAction:cK.AM,initialAutoAlbumListAction:c$.aQ}}function cQ(e,t){return{type:ez.qA.CreateAndAddGeneralTag,idArray:e,tagName:t,ItemAPI:r3.Z.FotoTeam.Browse.Item,GeneralTagAPI:r3.Z.FotoTeam.Browse.GeneralTag,updateGeneralTagAction:cK.bA,initialAutoAlbumListAction:c$.ls}}function cJ(e,t){return{type:ez.qA.AddGeneralTag,idArray:e,tag:t,ItemAPI:r3.Z.Foto.Browse.Item,updateGeneralTagAction:cK.AM}}function c0(e,t){return{type:ez.qA.AddGeneralTag,idArray:e,tag:t,ItemAPI:r3.Z.FotoTeam.Browse.Item,updateGeneralTagAction:cK.bA}}function c1(e,t){return{type:ez.qA.RemoveGeneralTag,idArray:e,tag:t,ItemAPI:r3.Z.Foto.Browse.Item,updateGeneralTagAction:cK.AM}}function c2(e,t){return{type:ez.qA.RemoveGeneralTag,idArray:e,tag:t,ItemAPI:r3.Z.FotoTeam.Browse.Item,updateGeneralTagAction:cK.bA}}function c4(e,t){return{type:ez.qA.UpdateGeneralTagSuggestion,tagName:e,tags:t,GeneralTagAPI:r3.Z.Foto.Browse.GeneralTag}}function c3(e,t){return{type:ez.qA.UpdateGeneralTagSuggestion,tagName:e,tags:t,GeneralTagAPI:r3.Z.FotoTeam.Browse.GeneralTag}}var c5=function(e){return e.getIn(["generalTag","suggestion"])};function c6(e,t,n){return e.filter(function(e){return!t.some(function(t){return e[n]===t[n]})})}function c9(e,t){return c6(e,t,"id")}function c8(e,t){return c9(t,e)}function c7(e,t){return c9(e,t)}var de="name",dt=function(e){return"string"==typeof e&&e.includes(",")},dn=function(e,t,n){var r=e.trim();return!dt(r)&&!t.some(function(e){return e[de]===r})&&!n.some(function(e){return e[de]===r})&&r.length>0},dr={MultiValueLabel:cz,Control:cW,ValueContainer:cZ,Input:cG},di=(0,aM.Z)(function(e,t,n,r){(0,uF.f)(e,t,c4,c3)(n,r.toJS())},ej.LK.DEBOUNCE_TYPING),da=function(e){var t=e.tags,n=e.handleAdd,r=e.handleRemove,i=e.readonly,o=e.disabledValueClick,a=e.library,s=e.needValueContainerLoadingIndicator,l=(0,ax.I0)(),u=(0,ax.v9)(c5),c=(0,oe._)((0,t6.useState)(""),2),d=c[0],f=c[1];(0,t6.useEffect)(function(){di(l,a,d.trim(),t)},[l,a,d,t]),(0,t6.useEffect)(function(){return function(){l((0,cK.AY)())}},[l]);var p=function(e){o||(0,np.fv)("/".concat(t7.Z.ALBUM_TYPE.GENERAL_TAG,"/").concat(a,"/").concat(e.id))},h=function(){f("")},m=function(e){var i=t.toJS(),o=e.length-i.length>=1,a=o?c8(i,e):c7(i,e);o?n(a[0]):r(a[0]),h()},g=function(e){n({id:e,name:e}),h()},v=function(e){e.nativeEvent.stopImmediatePropagation(),dt(d)&&e.key===ej.VD.ENTER&&(n({id:d,name:d}),h())},y=function(e){f(e)},b=function(e){return{id:e,name:(0,cY.Z)((0,tQ.n6)("action","create_tag"),e)}};return t6.createElement(cq.Z,{className:"synofoto-general-tag",isCreatable:!i,isMulti:!0,isSearchable:!0,isDisabled:i,getOptionLabel:function(e){return e[de]},getOptionValue:function(e){return e.id},inputValue:d,noOptionsMessage:"",customizeComponents:dr,onChange:m,onCreateOption:g,onValueClick:p,value:t.toJS(),onInputChange:y,openMenuOnClick:!0,openMenuOnFocus:!0,options:u.toJS(),showDropdownIndicator:!1,getNewOptionData:b,createOptionPosition:"first",isValidNewOption:dn,onKeyDown:v,needValueContainerLoadingIndicator:s})};da.propTypes={tags:aR().list.isRequired,handleAdd:ak().func.isRequired,handleRemove:ak().func.isRequired,readonly:ak().bool,disabledValueClick:ak().bool,library:ak().string.isRequired,needValueContainerLoadingIndicator:ak().bool},da.defaultProps={readonly:!1,disabledValueClick:!1,needValueContainerLoadingIndicator:!1};var ds=da,dl={tags:aR().list,readonly:ak().bool,createAndAddGeneralTag:ak().func,addGeneralTag:ak().func,removeGeneralTag:ak().func,library:ak().string.isRequired,disabledValueClick:ak().bool},du={tags:eW.default.List(),readonly:!1,disabledValueClick:!1,createAndAddGeneralTag:function(){},addGeneralTag:function(){},removeGeneralTag:function(){}},dc=function(e){var t=e.tags,n=e.readonly,r=e.disabledValueClick,i=e.createAndAddGeneralTag,o=e.addGeneralTag,a=e.removeGeneralTag,s=e.library,l=function(e){return a(e)},u=function(e){e.id===e.name?i(e.name):o(e)};return t6.createElement("div",{className:"synofoto-lightbox-info-tag-section"},t6.createElement("div",{className:"synofoto-lightbox-info-title-section"},(0,tQ.n6)("app","general_tag")),t6.createElement(ds,{tags:t,handleAdd:u,handleRemove:l,readonly:n,disabledValueClick:r,library:s}))};dc.propTypes=dl,dc.defaultProps=du;var dd=dc,df=__webpack_require__(75690);function dp(e){return e.toString().padStart(2,"0")}function dh(e){for(var t=[],n=0;n<e;n++)t.push({value:n,label:dp(n)});return t}var dm=dh(24),dg=dh(60),dv={className:ak().string,selected:ak().number.isRequired,onChange:ak().func.isRequired},dy={className:""},db=function(e){var t=e.className,n=e.selected,r=e.onChange,i=(0,oe._)((0,t6.useState)(df.dM.getDayjs(n)),2),o=i[0],a=i[1];(0,t6.useEffect)(function(){a(df.dM.getDayjs(n))},[n]);var s=function(e,t){if(null!==t){var n=o[e](t.value);a(n),r(n.unix())}},l=function(e,t){return t6.createElement(cq.Z,{onChange:function(t){return s(e,t)},defaultValue:t[o[e]()],options:t,className:"synofoto-timepicker-field",isSearchable:!0,onInputChange:function(e){return e.replace(/[^0-9]/g,"").slice(0,2)},ariaLabel:"timepicker-".concat(e)})};return t6.createElement("div",{className:aW()("synofoto-react-timepicker",(0,r4._)({},t,t))},l("hour",dm),t6.createElement("div",null,":"),l("minute",dg),t6.createElement("div",null,":"),l("second",dg))};db.propTypes=dv,db.defaultProps=dy;for(var d_=db,dE=__webpack_require__(27484),dw=__webpack_require__.n(dE),dS=[],dT=ej.Y5.MIN_YEAR;dT<=ej.Y5.MAX_YEAR;dT++)dS.push({value:dT,label:dT});var dO=(0,su.oq)(!0).map(function(e,t){return{value:t,label:e}}),dI={date:ak().instanceOf(Date),changeYear:ak().func,changeMonth:ak().func,decreaseMonth:ak().func,increaseMonth:ak().func,prevMonthButtonDisabled:ak().bool,nextMonthButtonDisabled:ak().bool},dA={date:new Date,changeYear:function(){},changeMonth:function(){},decreaseMonth:function(){},increaseMonth:function(){},prevMonthButtonDisabled:!1,nextMonthButtonDisabled:!1},dC=function(e){var t=e.date,n=e.changeYear,r=e.changeMonth,i=e.decreaseMonth,o=e.increaseMonth,a=e.prevMonthButtonDisabled,s=e.nextMonthButtonDisabled;return t6.createElement("div",{className:"synofoto-react-datepicker-header"},t6.createElement("div",{className:"synofoto-react-datepicker-select"},t6.createElement(cq.Z,{className:"synofoto-react-datepicker-year",triggerIconClassName:"arrow-line-thin-down",value:dS[t.getFullYear()-1901],onChange:function(e){return n(e.value)},options:dS}),t6.createElement(cq.Z,{className:"synofoto-react-datepicker-month",triggerIconClassName:"arrow-line-thin-down",value:dO[t.getMonth()],onChange:function(e){return r(e.value)},options:dO})),t6.createElement(se.Z,{iconCls:"prev-btn-icon",handler:i,disabled:a}),t6.createElement(se.Z,{iconCls:"next-btn-icon",handler:o,disabled:s}))};dC.propTypes=dI,dC.defaultProps=dA;var dx=dC,dD=t6.lazy(function(){return __webpack_require__.e("91").then(__webpack_require__.bind(__webpack_require__,92708))}),dR={className:ak().string,dateFormat:ak().string,disabled:ak().bool,maxMoment:ak().instanceOf(dw()),minMoment:ak().instanceOf(dw()),onChange:ak().func,popperPlacement:ak().string,selectedMoment:ak().instanceOf(dw()),showCalendarIcon:ak().bool},dL={className:"",dateFormat:"yyyy-MM-dd",disabled:!1,maxMoment:(0,df.t1)(ej.Y5.MAX_YEAR),minMoment:(0,df.fB)(ej.Y5.MIN_YEAR),onChange:function(e){},popperPlacement:"bottom",selectedMoment:null,showCalendarIcon:!1},dk=function(e){var t=e.dateFormat,n=e.className,r=e.disabled,i=e.maxMoment,o=e.minMoment,a=e.onChange,s=e.popperPlacement,l=e.selectedMoment,u=e.showCalendarIcon,c=t.toLowerCase().replace("mm","MM"),d=function(e){if(e){o.toDate()<=e&&i.toDate()>=e&&a(Math.floor(e.getTime()/1e3));return}a(null)},f=function(e){var t=c.replace(/[yMd]/g,"")[0],n=RegExp("[^0-9\\".concat(t,"]"),"g");e.target.value=e.target.value.replace(n,"").slice(0,10)},p=function(e){return t6.createElement(dx,e)},h=n?"synofoto-react-datepicker ".concat(n):"synofoto-react-datepicker";u&&(h=r?"".concat(h," synofoto-react-datepicker-with-icon icon-disabled"):"".concat(h," synofoto-react-datepicker-with-icon"));var m=null;return l&&(m=l.toDate()),t6.createElement("div",{className:h,"data-testid":"data-picker"},t6.createElement(t6.Suspense,{fallback:t6.createElement("div",null)},t6.createElement(dD,{disabled:r,dateFormat:c,selected:m,minDate:o.toDate(),maxDate:i.toDate(),renderCustomHeader:p,onChange:d,onChangeRaw:f,strictParsing:!0,popperPlacement:s,formatWeekDay:function(e){return e.substr(0,1)}})))};dk.propTypes=dR,dk.defaultProps=dL;var dM=dk,dP=function(e,t){var n={value:ak().number,unit:ak().oneOf(["day","week","month","year"]),minTimestamp:ak().number,maxTimestamp:ak().number,onChange:ak().func},r={value:void 0,unit:void 0,minTimestamp:void 0,maxTimestamp:void 0,onChange:function(e,t){}},i=function(n){var r=n.value,i=n.maxTimestamp,o=n.minTimestamp,a=n.unit,s=n.onChange,l=(0,t2._)(n,["value","maxTimestamp","minTimestamp","unit","onChange"]),u=t?df.dM.convertToLocale:df.uK.getDayjs,c=t?df.o:df.yx,d=null!=o?u(o):void 0,f=null!=i?u(i):void 0,p=null!=r?u(r):null,h=function(e){if(null==e){s(ej.om);return}if(a){var n=t?df.uK.convertToGmt(e):df.uK.getDayjs(e);s(c.getTimestampStartOf(n,a),c.getTimestampEndOf(n,a));return}s(t?(0,df.O6)(e):e)};return t6.createElement(e,(0,t1._)((0,t0._)({},l),{selectedMoment:p,onChange:h,minMoment:d,maxMoment:f}))};return i.propTypes=n,i.defaultProps=r,i.displayName="WithDayjs[".concat((0,lC.Z)(e),"]"),i},dN=!1,dF=function(e){var t=(0,ax.v9)(r6.Z.getDateFormat);return t6.createElement(dM,(0,t0._)({dateFormat:t},e))},dB=dP(dF,!0);dP(dF,dN);var dU=function(e){var t=e.value,n=e.onChange,r=e.calendarIcon,i=e.popperPlacement,o=function(e){null!=e&&n(e,"date")},a=function(e){n(e,"time")};return t6.createElement("div",{className:"synofoto-datetimepicker"},t6.createElement("div",{className:"datetime-row"},t6.createElement("div",{className:"label"},"".concat((0,tQ.n6)("datetime","date")).concat((0,tQ.n6)("common","colon"))),t6.createElement("div",{className:"field"},t6.createElement(dB,{showCalendarIcon:r,value:t,onChange:o,popperPlacement:i}))),t6.createElement("div",{className:"datetime-row"},t6.createElement("div",{className:"label"},"".concat((0,tQ.n6)("datetime","time")).concat((0,tQ.n6)("common","colon"))),t6.createElement("div",{className:"field"},t6.createElement(d_,{selected:t,onChange:a}))))};dU.propTypes={value:ak().number.isRequired,onChange:ak().func,calendarIcon:ak().bool,popperPlacement:ak().string},dU.defaultProps={onChange:function(){},calendarIcon:!1,popperPlacement:"bottom"};var dH=dU,dj=__webpack_require__(34752),dV={caption:"synofoto-edit-date-time-dialog-caption",editType:"synofoto-edit-date-time-dialog-row synofoto-edit-date-time-dialog-edit-type",editTypeDesc:"synofoto-edit-date-time-dialog-edit-type-desc",editTypeTitle:"synofoto-edit-date-time-dialog-edit-type-title",field:"synofoto-edit-date-time-dialog-field",row:"synofoto-edit-date-time-dialog-row"},dz=function(e){var t=e.handleApply,n=e.handleCancel,r=e.idArray,i=e.isOpen,o=e.oldestId,a=e.datetime,s=e.thumbnailLibrary,l=e.codec,u=e.oldestThumbnailUnitId,c=(0,l0.Z)(),d=c.isSupportAutoGenerateThumbnail,f=c.pcClientHevcSupport,p=function(){return 1===r.length},h=(0,aN.Z)({thumbnailUnitId:u,thumbnailLibrary:s}),m=(0,oe._)((0,t6.useState)(a),2),g=m[0],v=m[1],y=(0,oe._)((0,t6.useState)(p()?"set":"shift"),2),b=y[0],_=y[1],E=[{value:"shift",label:(0,tQ.n6)("app","shift_date_time")},{value:"set",label:(0,tQ.n6)("app","set_date_time")}],w=p()?E[1]:E[0],S=function(e,t){var n,r;"date"===t?(n=df.dM.getDateString(g,"HH:mm:ss"),r=df.dM.getDateString(e,"YYYY-MM-DD")):"time"===t&&(n=df.dM.getDateString(e,"HH:mm:ss"),r=df.dM.getDateString(g,"YYYY-MM-DD")),v((0,su.YF)(r,n))},T=function(){var e="shift"===b?g-a:g;t({datetime:g,editType:b,value:e})},O=function(e){_(e.value)},I=function(){var e=g!==a;return"set"===b&&(e=!p()||e),e},A=function(){return p()?null:t6.createElement("div",{className:dV.editType},t6.createElement("div",{className:dV.caption},"".concat((0,tQ.n6)("app","edit_type")).concat((0,tQ.n6)("common","colon"))),t6.createElement("div",{className:aW()(dV.field,"no-padding")},t6.createElement(cq.Z,{isMenuPortal:!0,defaultValue:w,options:E,onChange:O})))},C=function(){var e=(0,l8.Z)(a,!0),t=(0,su.u6)(a),n="".concat(e," ").concat(t);return t6.createElement("div",{className:dV.row},t6.createElement("div",{className:dV.caption},"".concat((0,tQ.n6)("app","original_time")).concat((0,tQ.n6)("common","colon"))),t6.createElement("div",{className:dV.field},n))},x=function(){return t6.createElement(t6.Fragment,null,t6.createElement("div",{className:dV.row},t6.createElement("div",{className:dV.caption},"".concat((0,tQ.n6)("app","modified_time")).concat((0,tQ.n6)("common","colon")))),t6.createElement(dH,{calendarIcon:!0,value:g,onChange:S,popperPlacement:"left"}))},D=function(){return"shift"===b?t6.createElement(t6.Fragment,null,t6.createElement("div",{className:dV.editTypeTitle},(0,tQ.n6)("app","shift_date_time_title")),t6.createElement("div",{className:dV.editTypeDesc},(0,tQ.n6)("app","shift_date_time_desc")),C(),x()):null},R=function(){return"set"!==b||p()?null:t6.createElement(t6.Fragment,null,t6.createElement("div",{className:dV.editTypeTitle},(0,tQ.n6)("app","set_date_time_title")),t6.createElement("div",{className:dV.editTypeDesc},(0,tQ.n6)("app","set_date_time_desc")),x())},L=function(){return"set"===b&&p()?t6.createElement(t6.Fragment,null,C(),x()):null},k=function(){var e=0!==u?h:(0,r4._)({cache_key:"",preview:""},(0,rf.$E)(),ej.yL.Ready),t=(0,iT.AJ)(o,e,"item",(0,rf.$E)(),void 0,s);return p()?null:t6.createElement("div",{className:"synofoto-edit-date-time-dialog-oldest-item-thumbnail"},t6.createElement(aP.Z,{imageHeight:214,imageWidth:160,imageUrl:t,imageId:o,altText:"image to edit date time",isSupportAutoGenerateThumbnail:d,pcClientHevcSupport:f,codec:l}))},M=function(){return t6.createElement("div",{className:"synofoto-edit-date-time-dialog-edit-area"},A(),D(),R(),L())},P=aW()({"synofoto-edit-date-time-dialog":!0,single:p()});return t6.createElement(dj.Z,{isOpen:i,className:P,title:(0,tQ.n6)("action","edit_date_time"),content:t6.createElement("div",{className:"synofoto-edit-date-time-dialog-content"},k(),M()),handleConfirm:T,handleCancel:n,confirmDisabled:!I(),showCancel:!0,contentPadding:ej.k3.ALL})};dz.propTypes={handleApply:ak().func,handleCancel:ak().func,idArray:ak().arrayOf(ak().number).isRequired,isOpen:ak().bool.isRequired,oldestId:ak().number.isRequired,datetime:ak().number.isRequired,thumbnailLibrary:ak().string.isRequired,codec:ak().string,oldestThumbnailUnitId:ak().number},dz.defaultProps={handleApply:function(){},handleCancel:function(){},codec:"",oldestThumbnailUnitId:0};var dZ=dz;function dG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.body.appendChild(document.createElement("div")),r=nf.Z.getStore(),i=function(){return s.unmountComponentAtNode(n),setTimeout(function(){return n.remove()})};return new Promise(function(i){var o=function(){i({type:"cancel"})},a=(0,t1._)((0,t0._)({},t),{idArray:e,isOpen:!0,handleApply:function(e){i({type:"apply",value:e})},handleCancel:o});s.render(t6.createElement(ax.zt,{store:r},t6.createElement(dZ,a)),n)}).then(function(e){return i(),e}).catch(function(e){throw i(),e})}var dW=__webpack_require__(47739),dq=__webpack_require__(83789),dY={item:aR().map.isRequired,library:ak().string.isRequired,albumType:ak().string,disableRedirectToSmartAlbum:ak().bool,passphrase:ak().string,readonly:ak().bool},d$={albumType:null,disableRedirectToSmartAlbum:!1,passphrase:"",readonly:!1},dK=function(e){var t=e.item,n=e.library,r=e.albumType,i=e.disableRedirectToSmartAlbum,o=e.passphrase,s=e.readonly,l=(0,ax.I0)(),u=(0,ax.v9)(au.getFileLocations),c=r===ej.ZP.ALBUM_TYPE.FOLDER,d=t.get("id"),f=t.get("folder_id"),p=(0,sI.vT)()&&(0,rf.nw)();(0,t6.useEffect)(function(){sessionStorage.setItem(ej.bT,ej.VJ.GENERAL)},[]),(0,t6.useEffect)(function(){c||void 0!==u.get(f)||(0,uF.f)(l,n,iU.fo,iU.jt)(f)},[c,f,u,l,n]);var h=(0,t6.useCallback)(function(e){(0,uF.f)(l,n,cJ,c0)([d],e)},[d,l,n]),m=(0,t6.useCallback)(function(e){(0,uF.f)(l,n,cX,cQ)([d],e)},[d,l,n]),g=(0,t6.useCallback)(function(e){(0,uF.f)(l,n,c1,c2)([d],e)},[d,l,n]),v=(0,t6.useCallback)(function(){return function(){return(0,t5._)(function(){var e;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,dG([t.get("id")],{oldestId:t.get("id"),datetime:t.get("time"),codec:(0,dW.Z)(t),thumbnailLibrary:n,oldestThumbnailUnitId:t.getIn(["thumbnailInfo","unit_id"])})];case 1:return"apply"===(e=r.sent()).type&&(0,uF.f)(l,n,dq.q_,dq.x2)([t.get("id")],e.value.value,"lightbox"),[2]}})})()}()},[t,n,l]),y=(0,t6.useMemo)(function(){var e=t.getIn(["additional","resolution","width"],0),n=t.getIn(["additional","resolution","height"],0),r=(0,oB.mi)(t)?(0,su.LU)(t.getIn(["additional","video_meta","duration"],0)):(0,tQ.Bk)(e*n),i=(0,tQ.D9)(t.get("filesize"),0),o=[];return""!==r&&o.push(r),o.push("".concat(e," x ").concat(n)),o.push(i),t6.createElement("pre",null,o.join("  "))},[t]),b=(0,t6.useMemo)(function(){var e=u.get(f,"");return e&&p&&(e="/".concat((0,tQ.n6)("app",n)).concat(e)),t6.createElement(cS,{fileLocationPath:e,folderId:f,inFolderView:c,library:n})},[c,f,u,n,p]);return t6.createElement(t6.Fragment,null,t6.createElement(uG,{className:"synofoto-lightbox-info-date-section",indicatorClassName:"synofoto-indicator-photo-date",firstLine:(0,l8.Z)(t.get("time",0),!0),secondLine:(0,su.u6)(t.get("time",0)),action:s?void 0:t6.createElement(se.Z,{className:"synofoto-time-edit-btn",iconCls:"edit-btn-icon",handler:v})}),t6.createElement(uG,{className:"synophoto-lightbox-info-photo-size-section",indicatorClassName:"synofoto-indicator-photo-size",firstLine:t.get("filename",""),secondLine:y,component:b}),t6.createElement(cx,{address:t.getIn(["additional","address"]),gps:t.getIn(["additional","gps"])}),t6.createElement(uK,{exif:t.getIn(["additional","exif"])}),i?null:t6.createElement(cU,{data:t.getIn(["additional","person"]),passphrase:o,library:n}),s?null:t6.createElement(dd,{tags:t.getIn(["additional","tag"]),createAndAddGeneralTag:m,addGeneralTag:h,removeGeneralTag:g,disabledValueClick:i,library:n}))};dK.propTypes=dY,dK.defaultProps=d$;var dX=t6.memo(dK),dQ=(0,nF.Ky)({ApplyRating:"APPLY_RATING",BatchApplyRating:"BATCH_APPLY_RATING"}),dJ=function(e){var t=e.itemId,n=e.rating;return{type:dQ.ApplyRating,itemId:t,rating:n,ItemAPI:r3.Z.Foto.Browse.Item}},d0=function(e){var t=e.itemId,n=e.rating;return{type:dQ.ApplyRating,itemId:t,rating:n,ItemAPI:r3.Z.FotoTeam.Browse.Item}},d1={library:ak().oneOf(Object.values(ej.Zu)).isRequired,readonly:ak().bool},d2={readonly:!1},d4=function(e,t){return function(n){return t>=n?"active":t===ej.ZP.RATING_UNRATED&&e>=n?"hover":""}},d3=function(e){var t=e.library,n=e.readonly,r=(0,ax.I0)(),i=(0,ax.v9)(au.getRating),o=(0,ax.v9)(au.getItemId),a=(0,oe._)((0,t6.useState)(ej.ZP.RATING_UNRATED),2),s=a[0],l=a[1],u=(0,oe._)((0,t6.useState)(ej.ZP.RATING_UNRATED),2),c=u[0],d=u[1],f=function(e){var n=i===e?ej.ZP.RATING_UNRATED:e;(0,uF.f)(r,t,dJ,d0)({itemId:o,rating:n})},p=d4(s,c),h=function(e){if(n)return{};var t=function(){return f(e)},r=function(){return d(e)},i=function(){return d(ej.ZP.RATING_UNRATED)};return(0,nP.tq)()?{onLongPress:r,onTouchEnd:function(){t(),i()}}:{handler:t,hoverHandler:function(){return l(e)},onMouseLeave:function(){return l(ej.ZP.RATING_UNRATED)},onMouseDown:function(){r();var e=function(){i(),document.removeEventListener("mouseup",e)};document.addEventListener("mouseup",e)}}},m=function(){return Array(ej.ZP.RATING_STARS_LIMIT).fill(null).map(function(e,t){var r=t+1,a=r<=i,s=aW()("synofoto-icon-button-rating",p(r),{"left-margin":!!t,disabled:n}),l=aW()({"star-off-btn-icon":!a,"star-on-btn-icon":a});return t6.createElement(se.Z,(0,t0._)({key:"rating_".concat(o,"_").concat(r),className:s,iconCls:l,dataTestId:"rating_".concat(r)},h(r)))})};return n&&i===ej.ZP.RATING_UNRATED?null:t6.createElement("div",{className:"synofoto-lightbox-info-rating","data-testid":"lightbox-info-rating"},m())};d3.propTypes=d1,d3.defaultProps=d2;var d5=d3,d6=__webpack_require__(23017),d9=function(e){var t=e.content,n=e.show,r=e.delayUnmountTimeInMs,i=void 0===r?0:r,o=e.delayMountTimeInMs,a=void 0===o?0:o,s=(0,oe._)((0,t6.useState)(!1),2),l=s[0],u=s[1];return(0,t6.useEffect)(function(){var e;return n&&!1===l&&(e=setTimeout(function(){u(!0)},a)),!1===n&&l&&(e=setTimeout(function(){u(!1)},i)),function(){clearTimeout(e)}},[n,l,i,a]),l?t:null},d8=function(e){var t=e.item,n=e.toggleInfoPanel,r=e.pathname,i=e.albumId,o=e.albumType,a=e.readonly,s=e.passphrase,l=e.library,u=e.disableRedirectToSmartAlbum,c=e.hiddenInfo,d=(0,ax.I0)(),f=sessionStorage.getItem(ej.bT),p=function(e){(0,uF.f)(d,l,dq.nY,dq.fF)([t.get("id")],e)},h=function(){var e=t.getIn(["additional","description"],"");return t6.createElement("div",{className:"synofoto-lightbox-info-description-section"},t6.createElement(aX,{key:"lightbox-info-description-".concat(t.get("id")),text:""===e?"":e,className:"synofoto-lightbox-info-description",activeClassName:"synofoto-lightbox-active-info-description",change:p,placeholder:(0,tQ.n6)("lightbox","add_description"),editingElement:aZ.default,staticElement:"div",minLength:0,maxLength:200,noShadow:!0,isDisabled:a,invalidRegex:[]}))},m=function(){return!(a&&!t.getIn(["additional","description"],""))},g=function(){return t6.createElement(dX,{item:t,readonly:a,passphrase:s,library:l,albumType:o,disableRedirectToSmartAlbum:u})},v=function(){return t6.createElement(uj,{itemId:t.get("id"),pathname:r,albumId:i,passphrase:s})},y=[{text:(0,tQ.n6)("lightbox","general"),content:t6.createElement("div",{className:"synofoto-lightbox-info-empty"},(0,tQ.n6)("app","no_info"))}],b=[{text:(0,tQ.n6)("lightbox","general"),content:g()},{text:(0,tQ.n6)("lightbox","more_info"),content:v()}];return t6.createElement("div",{className:"synofoto-lightbox-info-panel"},t6.createElement("div",{className:"synofoto-lightbox-info-close"},t6.createElement(se.Z,{dataTestId:"lightbox-info-panel-close-btn",className:"synofoto-lightbox-info-close-btn",iconCls:"cancel-dark-btn-icon",handler:n})),c?t6.createElement(d6.Z,{tabItems:y,className:"synofoto-lightbox-info-tab-panel synofoto-large-tab-panel"}):t6.createElement(t6.Fragment,null,m()?h():null,t6.createElement(d5,{library:l,readonly:a}),t6.createElement(d6.Z,{tabItems:b,className:"synofoto-lightbox-info-tab-panel synofoto-large-tab-panel",defaultActiveId:f===ej.VJ.DETAIL?1:0})))};d8.propTypes={item:aR().map.isRequired,toggleInfoPanel:ak().func.isRequired,pathname:ak().string.isRequired,albumId:ak().number,albumType:ak().string,readonly:ak().bool,passphrase:ak().string,library:ak().string.isRequired,disableRedirectToSmartAlbum:ak().bool,hiddenInfo:ak().bool.isRequired},d8.defaultProps={albumId:void 0,albumType:null,readonly:!1,passphrase:"",disableRedirectToSmartAlbum:!1};var d7=(0,t6.memo)(d8),fe=function(e){var t=e.show,n=(0,t2._)(e,["show"]),r=aW()({"synofoto-lightbox-info-panel-container":!0,expended:t}),i=d9({content:t6.createElement(d7,n),show:t,delayUnmountTimeInMs:460});return t6.createElement("div",{className:r}," ",i," ")};fe.propTypes={item:aR().map.isRequired,toggleInfoPanel:ak().func.isRequired,pathname:ak().string.isRequired,albumId:ak().number,albumType:ak().string,readonly:ak().bool,passphrase:ak().string,library:ak().string.isRequired,disableRedirectToSmartAlbum:ak().bool,hiddenInfo:ak().bool.isRequired,show:ak().bool.isRequired},fe.defaultProps={albumId:void 0,albumType:null,readonly:!1,passphrase:"",disableRedirectToSmartAlbum:!1};var ft=fe,fn={item:aR().map.isRequired,passphrase:ak().string.isRequired,library:ak().string.isRequired,albumId:ak().number,albumType:ak().string,readonly:ak().bool},fr={albumId:null,albumType:null,readonly:!1},fi=function(e){var t=e.item,n=e.passphrase,r=e.library,i=e.albumId,o=e.albumType,a=e.readonly,s=(0,ax.I0)(),l=(0,ax.v9)(au.getFileLocations),u=o===ej.ZP.ALBUM_TYPE.FOLDER,c=t.get("folder_id");(0,t6.useEffect)(function(){sessionStorage.setItem(ej.bT,ej.VJ.GENERAL)},[]),(0,t6.useEffect)(function(){u||void 0!==l.get(c)||(0,uF.f)(s,r,iU.fo,iU.jt)(c)},[u,c,l,s,r]);var d=t.getIn(["additional","thumbnailUnitId"]),f=(0,aN.Z)({thumbnailUnitId:d,thumbnailLibrary:r}),p=t.get("id",0);if(0===p)return null;var h=t.get("filename"),m={albumId:i,passphrase:n},g=(0,iT.AJ)(p,f,"item","sm",m,r,h);return t6.createElement("div",{className:"synofoto-lightbox-info-summary-section","data-testid":"lightbox-info-summary-section"},t6.createElement(aP.Z,{imageWidth:64,imageHeight:64,imageUrl:g,isVideo:(0,oB.mi)(t)}),t6.createElement(uZ,{className:"synofoto-lightbox-info-date-section",firstLine:h,secondLine:"".concat((0,l8.Z)(t.get("time",0),!0)," . ").concat((0,su.u6)(t.get("time",0))),component:t6.createElement(d5,{library:r,readonly:a})}))};fi.propTypes=fn,fi.defaultProps=fr;var fo=fi,fa=function(){return(fa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},fs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},fl=!1;function fu(){var e=(0,t6.useState)(fc),t=e[0],n=e[1],r=fd();return(0,t6.useEffect)(function(){if(r)return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)};function e(){n(fc())}},[r]),r?t:null}function fc(){var e;return ff()?(null===(e=document.documentElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight:null}function fd(){var e=(0,t6.useState)(!1),t=e[0],n=e[1];return(0,t6.useEffect)(function(){ff()&&n(!0)},[]),t}function ff(){return"undefined"!=typeof window&&"undefined"!=typeof document}(0,t6.forwardRef)(function(e,t){var n=e.style,r=fs(e,["style"]),i=fu();!fl&&(null==n?void 0:n.height)&&(fl=!0,console.warn("<ReactDiv100vh /> overrides the height property of the style prop"));var o=fa(fa({},n),{height:i?i+"px":"100vh"});return t6.createElement("div",fa({ref:t,style:o},r))}).displayName="Div100vh";var fp=function(){var e=fu();return e?"".concat(e-ej.xB.HEIGHT,"px"):"100vh"},fh={item:aR().map.isRequired,albumId:ak().number,albumType:ak().string,passphrase:ak().string,library:ak().string.isRequired,hiddenInfo:ak().bool.isRequired,onScroll:ak().func.isRequired,readonly:ak().bool},fm={albumId:void 0,albumType:null,passphrase:"",readonly:!1},fg=function(e){var t=e.item,n=e.albumId,r=e.albumType,i=e.passphrase,o=e.library,a=e.hiddenInfo,s=e.onScroll,l=e.readonly,u=function(){var e=t.getIn(["additional","description"],"");return t6.createElement(aX,{key:"lightbox-info-description-".concat(t.get("id")),text:e,change:function(){},placeholder:(0,tQ.n6)("lightbox","add_description"),editingElement:aZ.default,staticElement:"div",minLength:0,maxLength:200,noShadow:!0,autoHeight:!0,isDisabled:!0,invalidRegex:[]})},c=function(){return!!t.getIn(["additional","description"],"")},d=function(){return t6.createElement(dX,{item:t,readonly:!0,passphrase:i,library:o,albumType:r,disableRedirectToSmartAlbum:!0})},f=function(){return t6.createElement(fo,{item:t,readonly:l,passphrase:i,library:o,albumId:n,albumType:r})},p=fp();return t6.createElement("div",{className:"synofoto-lightbox-info-panel-mobile",style:{height:p},"data-testid":"lightbox-info-panel-mobile",onScroll:s},a?t6.createElement("div",{className:"synofoto-lightbox-info-empty"},(0,tQ.n6)("app","no_info")):t6.createElement(t6.Fragment,null,f(),c()&&t6.createElement("div",{className:"synofoto-lightbox-info-description-section-mobile"},u()),d()))};fg.propTypes=fh,fg.defaultProps=fm;var fv=fg,fy={show:ak().bool.isRequired,toggleInfoPanel:ak().func.isRequired};function fb(e){var t=e.show,n=e.toggleInfoPanel,r=(0,t2._)(e,["show","toggleInfoPanel"]);return t6.createElement(lG.Z,{isOpen:t,className:"synofoto-lightbox synofoto-lightbox-info-panel-modal-mobile",closeButtonHandler:n,overlayClassName:"synofoto-common-absolute-fullsize",closeIconCls:"cancel-dark-btn-icon",showCloseButton:!0},t6.createElement(fv,r))}fb.propTypes=fy;var f_=fb,fE=(0,aY.C)(ft,f_),fw=__webpack_require__(60253),fS=__webpack_require__(29893),fT=__webpack_require__(30270),fO=function(e){var t=e.item,n=e.downloadItem,r=1,i=ej.RT.ITEM,o=eW.default.fromJS((0,r4._)({},t.get("id"),{time:t.get("time"),owner_user_id:t.get("owner_user_id"),filename:t.get("filename"),thumbnailUnitId:t.getIn(["thumbnailInfo","unit_id"]),type:t.get("type"),live_type:t.get("live_type")}));if((0,fS.Z)(r,i,o)){var a=(0,fT.Z)({selectedCount:r,selectType:i,selectedMap:o,hasHevc:(0,rf.eB)(),enableConvertedOriginalJpeg:(0,rf.WP)(),handler:function(e){return n(e)}});return t6.createElement(fw.Z,{selfPortal:!0,menu:a,iconCls:"download-dark-btn-icon",ctClassName:"synofoto-lightbox-toolbar-right-button",title:(0,tQ.n6)("action","download"),dataTestId:"toolbar-download-button"})}return t6.createElement(se.Z,{title:(0,tQ.n6)("action","download"),dataTestId:"toolbar-download-button",className:"synofoto-lightbox-toolbar-right-button",iconCls:"download-dark-btn-icon",handler:function(){return n(ej._5.SOURCE)},tipId:ej.ZP.GLOBAL_TOOLTIP_ID})};fO.propTypes={item:aR().map.isRequired,downloadItem:ak().func.isRequired};var fI=fO,fA={ADD_TO_ALBUM:{key:"add_to_album",action:"handleAddToAlbumInLightbox"},COPY_TO:{key:"copy_to",action:"handleCopyToFolderInLightbox"},DELETE:{key:"delete",action:"handleDeleteInLightbox"},DOWNLOAD_ITEM:{key:"download",action:"handleDownloadLightboxItem"},MOVE_TO:{key:"move_to",action:"handleMoveToFolderInLightbox"},REMOVE_FROM_ALBUM:{key:"remove_from_album",action:"handleRemoveItemFromAlbumInLightbox"},REMOVE_FROM_PERSON_ALBUM:{key:"remove_from_person_album",action:"handleRemoveItemFromPersonAlbumInLightbox"},ROTATE:{key:"rotate",action:"handleRotateInLightbox"},SET_COVER:{key:"set_cover",action:"handleSetAsCoverInLightbox"},SET_PERSON_COVER:{key:"set_person_cover",action:"handleSetAsPersonCoverInLightbox"},SLIDESHOW:{key:"slideshow",action:"enterSlideshow"},SET_AS_FOLDER_COVER:{key:"set_as_folder_cover",action:"handleSetAsFolderCoverInLightbox"},SET_CONCEPT_COVER:{key:"set_concept_cover",action:"handleSetAsConceptCoverInLightbox"},REMOVE_FROM_CONCEPT_ALBUM:{key:"remove_from_album",action:"handleRemoveItemFromConceptAlbumInLightbox"},EDIT_FACE:{key:"manually_tagging_people",action:"handleEditFaceInLightbox"},SET_AS_STACK_COVER:{key:"set_as_stack_cover",action:"handleSetAsStackCoverInLightbox"},REMOVE_FROM_STACK:{key:"remove_from_stack",action:"handleRemoveFromStackInLightbox"},KEEP_THIS_DELETE_REST:{key:"keep_this_delete_rest",action:"handleKeepItemsDeleteRestInLightbox"},DIVIDER:{key:"divider"},REGENERATE_PREVIEW:{key:"regenerate_preview",action:"handleRegeneratePreviewInLightbox"}},fC={PERSONAL_LIGHTBOX:"personal_lightbox",PERSONAL_LIGHTBOX_EDIT_FACE:"personal_lightbox_edit_face",PERSONAL_LIGHTBOX_SIMILAR:"personal_lightbox_similar",PERSONAL_LIGHTBOX_SIMILAR_EDIT_FACE:"personal_lightbox_similar_edit_face",PERSONAL_LIGHTBOX_WITH_SET_FOLDER_COVER:"personal_lightbox_with_set_folder_cover",PERSONAL_LIGHTBOX_WITH_SET_FOLDER_COVER_EDIT_FACE:"personal_lightbox_with_set_folder_cover_edit_face",TEAM_MANAGEMENT_LIGHTBOX:"team_management_lightbox",TEAM_MANAGEMENT_LIGHTBOX_EDIT_FACE:"team_management_lightbox_edit_face",TEAM_MANAGEMENT_LIGHTBOX_SIMILAR:"team_management_lightbox_similar",TEAM_MANAGEMENT_LIGHTBOX_SIMILAR_EDIT_FACE:"team_management_lightbox_similar_edit_face",TEAM_MANAGEMENT_LIGHTBOX_WITH_SET_FOLDER_COVER:"team_management_lightbox_with_set_folder_cover",TEAM_MANAGEMENT_LIGHTBOX_WITH_SET_FOLDER_COVER_EDIT_FACE:"team_management_lightbox_with_set_folder_cover_edit_face",TEAM_DOWNLOAD_LIGHTBOX:"team_download_lightbox",TEAM_GUEST_DOWNLOAD_LIGHTBOX:"team_guest_download_lightbox",TEAM_VIEW_LIGHTBOX:"team_view_lightbox",CONDITIONAL_ALBUM_LIGHTBOX:"conditional_album_lightbox",CONDITIONAL_ALBUM_LIGHTBOX_EDIT_FACE:"conditional_album_lightbox_edit_face",ALBUM_LIGHTBOX:"album_lightbox",ALBUM_PHOTO_PROVIDER_LIGHTBOX:"album_photo_provider_lightbox",ALBUM_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:"album_photo_provider_lightbox_edit_face",ALBUM_PHOTO_MANAGEMENT_NOT_PHOTO_PROVIDER_LIGHTBOX:"album_photo_management_not_photo_provider_lightbox",ALBUM_PHOTO_MANAGEMENT_NOT_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:"album_photo_management_not_photo_provider_lightbox_edit_face",ALBUM_PHOTO_PROVIDER_NOT_MANAGEMENT_LIGHTBOX:"album_photo_provider_not_management_lightbox",ALBUM_SPACE_DISABLE_LIGHTBOX:"album_space_disable_lightbox",CATEGORY_ALBUM_LIGHTBOX:"category_album_lightbox",CATEGORY_ALBUM_LIGHTBOX_EDIT_FACE:"category_album_lightbox_edit_face",SHARED_ALBUM_PHOTO_PROVIDER_LIGHTBOX:"shared_album_photo_provider_lightbox",SHARED_ALBUM_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:"shared_album_photo_provider_lightbox_edit_face",SHARED_ALBUM_PHOTO_PROVIDER_NOT_MANAGEMENT_LIGHTBOX:"shared_album_photo_provider_not_management_lightbox",SHARED_ALBUM_MANAGEMENT_WITH_ALBUM_DOWNLOAD_LIGHTBOX:"shared_album_management_with_album_download_lightbox",SHARED_ALBUM_MANAGEMENT_WITH_ALBUM_DOWNLOAD_LIGHTBOX_EDIT_FACE:"shared_album_management_with_album_download_lightbox_edit_face",SHARED_ALBUM_MANAGEMENT_WITHOUT_ALBUM_DOWNLOAD_LIGHTBOX:"shared_album_management_without_album_download_lightbox",SHARED_ALBUM_MANAGEMENT_WITHOUT_ALBUM_DOWNLOAD_LIGHTBOX_EDIT_FACE:"shared_album_management_without_album_download_lightbox_edit_face",SHARED_ALBUM_DOWNLOAD_LIGHTBOX:"shared_album_download_lightbox",PERSON_ALBUM_LIGHTBOX:"person_album_lightbox",FREEZE_ALBUM_LIGHTBOX:"freeze_album_lightbox",FREEZE_ALBUM_LIGHTBOX_EDIT_FACE:"freeze_album_lightbox_edit_face",SEARCH_ALBUM_LIGHTBOX:"search_album_lightbox",SEARCH_ALBUM_LIGHTBOX_EDIT_FACE:"search_album_lightbox_edit_face",CONCEPT_ALBUM_LIGHTBOX:"concept_album_lightbox",CONCEPT_ALBUM_LIGHTBOX_EDIT_FACE:"concept_album_lightbox_edit_face",SUGGESTION_CONCEPT_ALBUM_LIGHTBOX:"suggestion_concept_album_lightbox",SUGGESTION_CONCEPT_ALBUM_LIGHTBOX_EDIT_FACE:"suggestion_concept_album_lightbox_edit_face",SIMILAR_ALBUM_LIGHTBOX:"similar_album_lightbox",SIMILAR_ALBUM_LIGHTBOX_EDIT_FACE:"similar_album_lightbox_edit_face"},fx={personal_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},personal_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.REGENERATE_PREVIEW,fA.EDIT_FACE,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},personal_lightbox_similar:function(e){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO,fA.DIVIDER].concat((0,eG._)(e?[]:[fA.SET_AS_STACK_COVER]),[fA.REMOVE_FROM_STACK,fA.KEEP_THIS_DELETE_REST])},personal_lightbox_similar_edit_face:function(e){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.REGENERATE_PREVIEW,fA.EDIT_FACE,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO].concat((0,eG._)(e?[]:[fA.SET_AS_STACK_COVER]),[fA.REMOVE_FROM_STACK,fA.KEEP_THIS_DELETE_REST])},personal_lightbox_with_set_folder_cover:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.SET_AS_FOLDER_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},personal_lightbox_with_set_folder_cover_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.EDIT_FACE,fA.SET_AS_FOLDER_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},team_management_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.REGENERATE_PREVIEW,fA.ROTATE,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},team_management_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.REGENERATE_PREVIEW,fA.EDIT_FACE,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},team_management_lightbox_similar:function(e){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO,fA.DIVIDER].concat((0,eG._)(e?[]:[fA.SET_AS_STACK_COVER]),[fA.REMOVE_FROM_STACK,fA.KEEP_THIS_DELETE_REST])},team_management_lightbox_similar_edit_face:function(e){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.REGENERATE_PREVIEW,fA.EDIT_FACE,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO,fA.DIVIDER].concat((0,eG._)(e?[]:[fA.SET_AS_STACK_COVER]),[fA.REMOVE_FROM_STACK,fA.KEEP_THIS_DELETE_REST])},team_management_lightbox_with_set_folder_cover:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.SET_AS_FOLDER_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},team_management_lightbox_with_set_folder_cover_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.EDIT_FACE,fA.SET_AS_FOLDER_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO]},team_download_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.COPY_TO]},team_guest_download_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM]},team_view_lightbox:function(){return[fA.SLIDESHOW]},conditional_album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.SET_COVER,fA.DELETE]},conditional_album_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.SET_COVER,fA.DELETE]},freeze_album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.SET_COVER]},freeze_album_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.EDIT_FACE,fA.SET_COVER]},album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.SET_COVER,fA.REMOVE_FROM_ALBUM]},album_photo_provider_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.SET_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM,fA.DELETE]},album_photo_provider_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.EDIT_FACE,fA.SET_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM,fA.DELETE]},album_photo_management_not_photo_provider_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ROTATE,fA.SET_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM,fA.DELETE]},album_photo_management_not_photo_provider_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ROTATE,fA.EDIT_FACE,fA.SET_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM,fA.DELETE]},album_photo_provider_not_management_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.SET_COVER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM]},album_space_disable_lightbox:function(){return[fA.REMOVE_FROM_ALBUM]},category_album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.DELETE]},category_album_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.DELETE]},search_album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO,fA.DELETE]},search_album_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.MOVE_TO,fA.COPY_TO,fA.DELETE]},shared_album_photo_provider_lightbox:function(){return[fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM]},shared_album_photo_provider_lightbox_edit_face:function(){return[fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM]},shared_album_photo_provider_not_management_lightbox:function(){return[fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_ALBUM]},shared_album_management_with_album_download_lightbox:function(){return[fA.DOWNLOAD_ITEM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW]},shared_album_management_with_album_download_lightbox_edit_face:function(){return[fA.DOWNLOAD_ITEM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW]},shared_album_management_without_album_download_lightbox:function(){return[fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW]},shared_album_management_without_album_download_lightbox_edit_face:function(){return[fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW]},shared_album_download_lightbox:function(){return[fA.DOWNLOAD_ITEM]},person_album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.SET_PERSON_COVER,fA.REMOVE_FROM_PERSON_ALBUM,fA.DELETE]},concept_album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.SET_CONCEPT_COVER,fA.REMOVE_FROM_CONCEPT_ALBUM,fA.DELETE]},concept_album_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.SET_CONCEPT_COVER,fA.REMOVE_FROM_CONCEPT_ALBUM,fA.DELETE]},suggestion_concept_album_lightbox:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_CONCEPT_ALBUM,fA.DELETE]},suggestion_concept_album_lightbox_edit_face:function(){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER,fA.REMOVE_FROM_CONCEPT_ALBUM,fA.DELETE]},similar_album_lightbox:function(e){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.REGENERATE_PREVIEW,fA.DIVIDER].concat((0,eG._)(e?[]:[fA.SET_AS_STACK_COVER]),[fA.REMOVE_FROM_STACK,fA.KEEP_THIS_DELETE_REST,fA.DIVIDER,fA.DELETE])},similar_album_lightbox_edit_face:function(e){return[fA.SLIDESHOW,fA.DOWNLOAD_ITEM,fA.ADD_TO_ALBUM,fA.ROTATE,fA.DIVIDER,fA.EDIT_FACE,fA.REGENERATE_PREVIEW,fA.DIVIDER].concat((0,eG._)(e?[]:[fA.SET_AS_STACK_COVER]),[fA.REMOVE_FROM_STACK,fA.KEEP_THIS_DELETE_REST,fA.DIVIDER,fA.DELETE])}},fD=Object.values(fC),fR=function(e){var t={handleAddToAlbumInLightbox:s7.yb,handleRemoveItemFromAlbumInLightbox:s7.qT,handleSetAsCoverInLightbox:s7.nb,enterSlideshow:iU.Ui};return e?(0,t1._)((0,t0._)({},t),{handleDeleteInLightbox:s7.yZ,handleDownloadLightboxItem:s7.$O,handleRemoveItemFromPersonAlbumInLightbox:s7.Z9,handleRotateInLightbox:s7.kP,handleSetAsPersonCoverInLightbox:s7.uc,handleCopyToFolderInLightbox:s8._d,handleMoveToFolderInLightbox:s8.Jl,handleSetAsFolderCoverInLightbox:s7.dT,handleSetAsConceptCoverInLightbox:s7.eB,handleRemoveItemFromConceptAlbumInLightbox:s7.jP,handleSetAsStackCoverInLightbox:s7.m$,handleRemoveFromStackInLightbox:s7.$H,handleKeepItemsDeleteRestInLightbox:s7.el,handleRegeneratePreviewInLightbox:s7.iw}):(0,t1._)((0,t0._)({},t),{handleCopyToFolderInLightbox:s8.vl,handleMoveToFolderInLightbox:s8.Ug,handleDeleteInLightbox:s7.dH,handleDownloadLightboxItem:s7.QB,handleRemoveItemFromPersonAlbumInLightbox:s7.g2,handleRotateInLightbox:s7.YP,handleSetAsPersonCoverInLightbox:s7.YY,handleSetAsFolderCoverInLightbox:s7.dw,handleSetAsConceptCoverInLightbox:s7._x,handleRemoveItemFromConceptAlbumInLightbox:s7.sJ,handleSetAsStackCoverInLightbox:s7.tx,handleRemoveFromStackInLightbox:s7.XM,handleKeepItemsDeleteRestInLightbox:s7.rV,handleRegeneratePreviewInLightbox:s7.qX})},fL=function(e){var t=e.menuType,n=e.library,r=e.excludeMenuItemKeys,i=e.toggleHandler,o=(0,ax.v9)(au.getItem),a=(0,sV.Z)(),s=a.location,l=a.navigate,u=fR((0,nh.E0)(n)),c=(0,ax.v9)(i9.Z.getTopPick),d=(0,ax.v9)(i9.Z.getCurrentPick),f=0!==c&&c===d,p=fx[t](f),h=new Set(r);p=p.filter(function(e){return!h.has(e.key)});var m=(0,lt.Z)({menuItems:p,actionCreatorMap:u,functionHandlerMap:{handleEditFaceInLightbox:function(){var e="".concat(s.pathname,"/").concat(t7.Z.EDIT_FACE),t=s.state||{};l(e,{replace:!0,state:(0,t0._)({editFace:!0},t)})}},downloadInfo:{selectedCount:1,selectType:ej.RT.ITEM,selectedMap:eW.default.fromJS((0,r4._)({},o.get("id"),{time:o.get("time"),owner_user_id:o.get("owner_user_id"),filename:o.get("filename"),thumbnailUnitId:o.getIn(["thumbnailInfo","unit_id"]),type:o.get("type"),live_type:o.get("live_type")})),hasHevc:(0,rf.eB)(),enableConvertedOriginalJpeg:(0,rf.WP)()}});return 0===m.length?null:t6.createElement(fw.Z,{menu:m,toggleHandler:i,ctClassName:"synofoto-lightbox-toolbar-right-button",iconCls:"more-dark-btn-icon",title:(0,tQ.n6)("action","more"),menuDataTestId:"lightbox-toolbar-more-button-menu"})};fL.propTypes={library:ak().oneOf([ej.Zu.PERSONAL,ej.Zu.TEAM]).isRequired,menuType:ak().oneOf(fD).isRequired,excludeMenuItemKeys:ak().arrayOf(ak().string),toggleHandler:ak().func},fL.defaultProps={excludeMenuItemKeys:[],toggleHandler:function(e){}};var fk=t6.memo(fL),fM=__webpack_require__(59179),fP=t6.lazy(function(){return __webpack_require__.e("608").then(__webpack_require__.bind(__webpack_require__,69185))}),fN={className:ak().string,classSuffix:ak().string,active:ak().bool,title:ak().string,animationFilename:ak().string.isRequired,loop:ak().bool,play:ak().bool,theme:ak().oneOf([ej.Q2.DARK,ej.Q2.LIGHT]),getRef:ak().func},fF={className:"",classSuffix:"",active:!1,title:"",loop:!0,play:!0,theme:ej.Q2.LIGHT,getRef:function(){}};function fB(e){var t=e.className,n=e.classSuffix,r=e.active,i=e.title,o=e.animationFilename,a=e.loop,s=e.play,l=e.theme,u=e.getRef,c=(0,t2._)(e,["className","classSuffix","active","title","animationFilename","loop","play","theme","getRef"]),d=""===n?"synofoto-icon-button":"synofoto-icon-button-".concat(n),f=r?" active":"",p="".concat(d," lottie-icon");return p+=(t?" ".concat(t):"")+(f?" active":""),t6.createElement(fM.Z,(0,t1._)((0,t0._)({},c),{className:p,title:i,ref:u}),t6.createElement(t6.Suspense,{fallback:t6.createElement("div",null)},t6.createElement(fP,{loop:a,play:s,path:(0,ub.Z)(l,o),rendererSettings:{viewBoxOnly:!0}})))}fB.propTypes=fN,fB.defaultProps=fF;var fU=fB,fH=function(e){var t=e.item,n=e.closeLightbox,r=e.toggleInfoPanel,i=e.deleteItem,o=e.downloadItem,a=e.setMoreButton,s=e.setIsOnHover,l=e.albumType,u=e.isFromSuggestion,c=e.setItemShare,d=e.library,f=e.addToFavorite,p=e.removeFromFavorite,h=e.showLiveIndicator,m=e.liveButtonOn,g=e.setLiveButton,v=e.toggleZoomButton,y=e.isFavorite,b=e.isMotionPhoto,_=e.is360,E=e.isWebp,w=e.isGif,S=e.isVideo,T=e.sharingAlbumPermission,O=e.showInfoButton,I=e.isProvider,A=e.isImageReady,C=e.isConditionAlbum,x=e.isFreezeAlbum,D=e.enterSlideshow,R=e.isPlatformSupportPersonRecognition,L=e.disableRedirectToSmartAlbum,k=e.isSimilarItem,M=function(){return!!R&&((0,nh.E0)(d)?(0,rf.Uw)():(0,sI.uu)())},P=function(){return M()&&!L},N=function(){return l===ej.ZP.ALBUM_TYPE.TIMELINE},F=function(){return l===ej.ZP.ALBUM_TYPE.FOLDER},B=function(){return ls()},U=function(){var e=y?(0,tQ.n6)("action","remove_from_favorite"):(0,tQ.n6)("action","add_to_favorite"),t=y?p:f,n=y?"favorite-on-dark-btn-icon":"favorite-off-dark-btn-icon";return t6.createElement(se.Z,{title:e,key:"toolbar-favorite-button",dataTestId:"toolbar-favorite-button",className:"synofoto-lightbox-toolbar-favorite-btn-icon synofoto-lightbox-toolbar-right-button",iconCls:n,handler:t,tipId:ej.ZP.GLOBAL_TOOLTIP_ID})},H=function(){if(!h)return null;var e=b?(0,tQ.n6)("app","motion_photo_indicator"):(0,tQ.n6)("app","live_photo"),t=b?(0,tQ.n6)("action","switch_motion_photo"):(0,tQ.n6)("action","switch_live_photo");return t6.createElement("div",{className:"synofoto-lightbox-toolbar-live-indicator",key:"toolbar-live-button","data-testid":"toolbar-live-button"},t6.createElement("div",{className:"live-indicator-text"},e),t6.createElement(fU,{title:t,className:"synofoto-lightbox-toolbar-right-button live-lottie-button",animationFilename:"live_photo.json",loop:!0,play:m,handler:g,dataTestId:"toolbar-live-button-tooltip"}))},j=function(){return _?t6.createElement("div",{className:"synofoto-lightbox-toolbar-360-indicator synofoto-lightbox-toolbar-right-button",key:"toolbar-360-indicator","data-testid":"toolbar-360-indicator"}):null},V=function(){return(0,rf._9)()?t6.createElement(se.Z,{title:(0,tQ.n6)("action","create_shared_link"),key:"toolbar-sharing-button",dataTestId:"toolbar-sharing-button",className:"synofoto-lightbox-toolbar-right-button",iconCls:"share-dark-btn-icon",handler:c,tipId:ej.ZP.GLOBAL_TOOLTIP_ID}):null},z=function(){return S?null:t6.createElement(se.Z,{title:(0,tQ.n6)("action","zoom_in"),key:"toolbar-zoom-button",dataTestId:"toolbar-zoom-button",className:"synofoto-lightbox-toolbar-right-button",iconCls:"zoom-dark-btn-icon",handler:v,disabled:!A,tipId:ej.ZP.GLOBAL_TOOLTIP_ID})},Z=function(){return O?t6.createElement(se.Z,{title:(0,tQ.n6)("lightbox","information"),key:"toolbar-info-button",dataTestId:"toolbar-info-button",className:"synofoto-lightbox-toolbar-right-button",iconCls:"info-dark-btn-icon",handler:r,tipId:ej.ZP.GLOBAL_TOOLTIP_ID}):null},G=function(){return t6.createElement(se.Z,{title:(0,tQ.n6)("action","delete"),key:"toolbar-delete-button",dataTestId:"toolbar-delete-button",className:"synofoto-lightbox-toolbar-right-button",iconCls:"delete-dark-btn-icon",handler:i,tipId:ej.ZP.GLOBAL_TOOLTIP_ID})},W=function(){return t6.createElement(se.Z,{title:(0,tQ.n6)("action","slideshow"),key:"toolbar-slideshow-button",dataTestId:"toolbar-slideshow-button",className:"synofoto-lightbox-toolbar-right-button",iconCls:"slideshow-dark-btn-icon",handler:D,tipId:ej.ZP.GLOBAL_TOOLTIP_ID})},q=function(){return t6.createElement(fI,{key:"toolbar-download-button",item:t,downloadItem:o})},Y=function(){var e=[];return(!A||_||w||E||S)&&(e.push(fA.ROTATE.key),e.push(fA.EDIT_FACE.key)),e},$=function(e){return t6.createElement(fk,{key:"more_button",menuType:e,library:d,isVideo:S,toggleHandler:a,excludeMenuItemKeys:Y()})},K=function(){var e=[H(),j(),U(),V(),z(),Z(),G()],t=fC.PERSONAL_LIGHTBOX;return M()?t=k?fC.PERSONAL_LIGHTBOX_SIMILAR_EDIT_FACE:B()?fC.PERSONAL_LIGHTBOX_WITH_SET_FOLDER_COVER_EDIT_FACE:fC.PERSONAL_LIGHTBOX_EDIT_FACE:k?t=fC.PERSONAL_LIGHTBOX_SIMILAR:B()&&(t=fC.PERSONAL_LIGHTBOX_WITH_SET_FOLDER_COVER),e.push($(t)),e},X=function(){if((0,sI.KF)(ej._I.MANAGE)){var e=[H(),j(),U(),V(),z(),Z(),G()],t=fC.TEAM_MANAGEMENT_LIGHTBOX;return P()?t=k?fC.TEAM_MANAGEMENT_LIGHTBOX_SIMILAR_EDIT_FACE:B()?fC.TEAM_MANAGEMENT_LIGHTBOX_WITH_SET_FOLDER_COVER_EDIT_FACE:fC.TEAM_MANAGEMENT_LIGHTBOX_EDIT_FACE:k?t=fC.TEAM_MANAGEMENT_LIGHTBOX_SIMILAR:B()&&(t=fC.TEAM_MANAGEMENT_LIGHTBOX_WITH_SET_FOLDER_COVER),e.push($(t)),e}return(0,sI.KF)(ej._I.DOWNLOAD)?[H(),j(),U(),V(),z(),Z(),$(fC.TEAM_DOWNLOAD_LIGHTBOX)]:[H(),j(),U(),z(),Z(),$(fC.TEAM_VIEW_LIGHTBOX)]},Q=function(){return[H(),j(),V(),z(),Z(),$(P()?fC.FREEZE_ALBUM_LIGHTBOX_EDIT_FACE:fC.FREEZE_ALBUM_LIGHTBOX)]},J=function(){return[H(),j(),U(),V(),z(),Z(),$(fC.PERSON_ALBUM_LIGHTBOX)]},ee=function(){var e=[H(),j(),U(),V(),z(),Z()];return P()?e.push($(u?fC.SUGGESTION_CONCEPT_ALBUM_LIGHTBOX_EDIT_FACE:fC.CONCEPT_ALBUM_LIGHTBOX_EDIT_FACE)):e.push($(u?fC.SUGGESTION_CONCEPT_ALBUM_LIGHTBOX:fC.CONCEPT_ALBUM_LIGHTBOX)),e},et=function(){var e=[H(),j(),U(),V(),z(),Z()],t=fC.CATEGORY_ALBUM_LIGHTBOX;return P()?t=k?fC.SIMILAR_ALBUM_LIGHTBOX_EDIT_FACE:fC.CATEGORY_ALBUM_LIGHTBOX_EDIT_FACE:k&&(t=fC.SIMILAR_ALBUM_LIGHTBOX),e.push($(t)),e},en=function(){return(0,nh.E0)(d)||(0,li.Z)()?[H(),j(),U(),V(),z(),Z(),$(P()?fC.CATEGORY_ALBUM_LIGHTBOX_EDIT_FACE:fC.CATEGORY_ALBUM_LIGHTBOX)]:[H(),j(),U(),z(),Z(),$(fC.TEAM_VIEW_LIGHTBOX)]},er=function(){if(!(0,rf.tp)(d))return[$(fC.ALBUM_SPACE_DISABLE_LIGHTBOX)];if((0,nh.E0)(d)){if(I)return[H(),j(),V(),z(),Z(),$(M()?fC.ALBUM_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:fC.ALBUM_PHOTO_PROVIDER_LIGHTBOX)]}else{if(I&&(0,li.Z)())return[H(),j(),V(),z(),Z(),$(M()?fC.ALBUM_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:fC.ALBUM_PHOTO_PROVIDER_LIGHTBOX)];if((0,li.Z)())return[H(),j(),z(),Z(),$(M()?fC.ALBUM_PHOTO_MANAGEMENT_NOT_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:fC.ALBUM_PHOTO_MANAGEMENT_NOT_PHOTO_PROVIDER_LIGHTBOX)];if(I)return[H(),j(),V(),z(),Z(),$(fC.ALBUM_PHOTO_PROVIDER_NOT_MANAGEMENT_LIGHTBOX)]}return[H(),j(),z(),Z(),$(fC.ALBUM_LIGHTBOX)]},ei=function(){return[H(),j(),V(),z(),Z(),$(P()?fC.CONDITIONAL_ALBUM_LIGHTBOX_EDIT_FACE:fC.CONDITIONAL_ALBUM_LIGHTBOX)]},eo=function(){return[H(),j(),U(),V(),z(),Z(),$(P()?fC.SEARCH_ALBUM_LIGHTBOX_EDIT_FACE:fC.SEARCH_ALBUM_LIGHTBOX)]},ea=function(){return[H(),j(),U(),V(),z(),Z(),$(P()?fC.CATEGORY_ALBUM_LIGHTBOX_EDIT_FACE:fC.CATEGORY_ALBUM_LIGHTBOX)]},es=function(){var e=T.getIn(["permission","download"]);if(!(0,rf.tp)(d))return[];var t=[H(),j(),z(),Z(),W()];return e&&t.push(q()),t},el=function(){var e=T.getIn(["permission","download"]);if(!(0,rf.tp)(d))return I?[$(fC.ALBUM_SPACE_DISABLE_LIGHTBOX)]:[];if((0,nh.E0)(d)){if(I)return[H(),j(),V(),z(),Z(),W(),$(M()?fC.SHARED_ALBUM_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:fC.SHARED_ALBUM_PHOTO_PROVIDER_LIGHTBOX)];if(e)return[H(),j(),z(),Z(),W(),$(fC.SHARED_ALBUM_DOWNLOAD_LIGHTBOX)]}else{if(I&&(0,li.Z)())return[H(),j(),V(),z(),Z(),W(),$(M()?fC.SHARED_ALBUM_PHOTO_PROVIDER_LIGHTBOX_EDIT_FACE:fC.SHARED_ALBUM_PHOTO_PROVIDER_LIGHTBOX)];if(I)return[H(),j(),V(),z(),Z(),W(),$(fC.SHARED_ALBUM_PHOTO_PROVIDER_NOT_MANAGEMENT_LIGHTBOX)];if((0,li.Z)())return e?[H(),j(),z(),Z(),W(),$(M()?fC.SHARED_ALBUM_MANAGEMENT_WITH_ALBUM_DOWNLOAD_LIGHTBOX_EDIT_FACE:fC.SHARED_ALBUM_MANAGEMENT_WITH_ALBUM_DOWNLOAD_LIGHTBOX)]:[H(),j(),z(),Z(),W(),$(M()?fC.SHARED_ALBUM_MANAGEMENT_WITHOUT_ALBUM_DOWNLOAD_LIGHTBOX_EDIT_FACE:fC.SHARED_ALBUM_MANAGEMENT_WITHOUT_ALBUM_DOWNLOAD_LIGHTBOX)];if(e)return[H(),j(),z(),Z(),W(),$(fC.SHARED_ALBUM_DOWNLOAD_LIGHTBOX)]}return[H(),j(),z(),Z(),W()]},eu=function(){return(0,sI.KF)(ej._I.DOWNLOAD)?[H(),j(),z(),Z(),$(fC.TEAM_GUEST_DOWNLOAD_LIGHTBOX)]:[H(),j(),z(),Z(),$(fC.TEAM_VIEW_LIGHTBOX)]},ec=function(){return SYNO.SDS.Session.isLogined?(0,nh.E0)(d)?K():X():eu()},ed=function(){return x?Q():l===ej.ZP.ALBUM_TYPE.PERSON?J():l===ej.ZP.ALBUM_TYPE.CONCEPT?ee():l===ej.ZP.ALBUM_TYPE.SIMILAR?et():l===ej.ZP.ALBUM_TYPE.FAVORITE?en():(0,ng.CB)()?SYNO.SDS.Session.isLogined?el():es():C?ei():l===ej.ZP.ALBUM_TYPE.ALBUM?er():l===ej.ZP.ALBUM_TYPE.SEARCH?eo():ea()},ef=function(){return N()||F()?ec():ed()};return t6.createElement("div",{className:"synofoto-lightbox-toolbar",onMouseEnter:function(){return s(!0)},onMouseLeave:function(){return s(!1)}},t6.createElement("div",{className:"synofoto-lightbox-toolbar-left"},t6.createElement(se.Z,{className:"synofoto-lightbox-toolbar-left-button",iconCls:"back-dark-btn-icon",handler:n})),t6.createElement("div",{className:"synofoto-lightbox-toolbar-right"},ef()))};fH.propTypes={item:aR().map.isRequired,closeLightbox:ak().func.isRequired,toggleInfoPanel:ak().func.isRequired,deleteItem:ak().func.isRequired,downloadItem:ak().func.isRequired,setMoreButton:ak().func.isRequired,setIsOnHover:ak().func.isRequired,albumType:ak().string,isFromSuggestion:ak().bool.isRequired,setItemShare:ak().func.isRequired,library:ak().string.isRequired,addToFavorite:ak().func.isRequired,removeFromFavorite:ak().func.isRequired,showLiveIndicator:ak().bool.isRequired,liveButtonOn:ak().bool,setLiveButton:ak().func.isRequired,toggleZoomButton:ak().func.isRequired,isFavorite:ak().bool,isMotionPhoto:ak().bool,is360:ak().bool,isWebp:ak().bool,isGif:ak().bool,isVideo:ak().bool,sharingAlbumPermission:aR().map.isRequired,showInfoButton:ak().bool,isProvider:ak().bool.isRequired,isImageReady:ak().bool.isRequired,isConditionAlbum:ak().bool,isFreezeAlbum:ak().bool,enterSlideshow:ak().func.isRequired,isPlatformSupportPersonRecognition:ak().bool.isRequired,disableRedirectToSmartAlbum:ak().bool.isRequired,isSimilarItem:ak().bool},fH.defaultProps={albumType:null,liveButtonOn:!1,isFavorite:!1,isMotionPhoto:!1,is360:!1,isWebp:!1,isGif:!1,isVideo:!1,showInfoButton:!1,isConditionAlbum:!1,isFreezeAlbum:!1,isSimilarItem:!1};var fj=fH,fV={item:aR().map.isRequired,closeLightbox:ak().func.isRequired,toggleInfoPanel:ak().func.isRequired,downloadItem:ak().func.isRequired,albumType:ak().string,library:ak().string.isRequired,showLiveIndicator:ak().bool.isRequired,liveButtonOn:ak().bool,setLiveButton:ak().func.isRequired,isMotionPhoto:ak().bool,is360:ak().bool,sharingAlbumPermission:aR().map.isRequired,showInfoButton:ak().bool,isConditionAlbum:ak().bool},fz={albumType:null,liveButtonOn:!1,isMotionPhoto:!1,is360:!1,showInfoButton:!1,isConditionAlbum:!1},fZ=function(e){var t=e.item,n=e.closeLightbox,r=e.toggleInfoPanel,i=e.downloadItem,o=e.albumType,a=e.library,s=e.showLiveIndicator,l=e.liveButtonOn,u=e.setLiveButton,c=e.isMotionPhoto,d=e.is360,f=e.sharingAlbumPermission,p=e.showInfoButton,h=e.isConditionAlbum,m=function(){return o===ej.ZP.ALBUM_TYPE.FOLDER},g=function(){if(!s)return null;var e=c?(0,tQ.n6)("action","switch_motion_photo"):(0,tQ.n6)("action","switch_live_photo");return t6.createElement("div",{className:"synofoto-lightbox-toolbar-live-indicator",key:"toolbar-live-button","data-testid":"toolbar-live-button"},t6.createElement(fU,{title:e,className:"synofoto-lightbox-toolbar-right-button live-lottie-button",animationFilename:"live_photo.json",loop:!0,play:l,handler:u,dataTestId:"toolbar-live-lottie-button"}))},v=function(){return d?t6.createElement("div",{className:"synofoto-lightbox-toolbar-360-indicator synofoto-lightbox-toolbar-right-button",key:"toolbar-360-indicator","data-testid":"toolbar-360-indicator"}):null},y=function(){return p?t6.createElement(se.Z,{title:(0,tQ.n6)("lightbox","information"),key:"toolbar-info-button",dataTestId:"toolbar-info-button",className:"synofoto-lightbox-toolbar-right-button",iconCls:"info-dark-btn-icon",handler:r,tipId:ej.ZP.GLOBAL_TOOLTIP_ID}):null},b=function(){return t6.createElement(fI,{key:"toolbar-download-button",item:t,downloadItem:i})},_=function(){return(0,sI.KF)(ej._I.DOWNLOAD)?[g(),v(),b(),y()]:[g(),v(),y()]},E=function(){return(0,rf.tp)(a)?[g(),v(),b(),y()]:[]},w=function(){return[g(),v(),b(),y()]},S=function(){return(0,rf.tp)(a)?f.getIn(["permission","download"])?[g(),v(),b(),y()]:[g(),v(),y()]:[]},T=function(){return(0,sI.KF)(ej._I.DOWNLOAD)?[g(),v(),b(),y()]:[g(),v(),y()]},O=function(){return SYNO.SDS.Session.isLogined?_():T()},I=function(){return(0,ng.CB)()?S():h?w():o===ej.ZP.ALBUM_TYPE.ALBUM?E():[]},A=function(){return m()?O():I()}();return t6.createElement("div",{className:"synofoto-lightbox-toolbar-mobile","data-testid":"lightbox-toolbar-mobile"},t6.createElement("div",{className:"synofoto-lightbox-toolbar-left"},t6.createElement(se.Z,{className:"synofoto-lightbox-toolbar-left-button",iconCls:"back-dark-btn-icon",handler:n})),t6.createElement("div",{className:"synofoto-lightbox-toolbar-right"},A))};fZ.propTypes=fV,fZ.defaultProps=fz;var fG=fZ,fW=(0,aY.C)(fj,fG),fq=function(e){var t=e.item,n=e.library,r=e.videoConvertStatus;return t6.createElement(ur.Z,{fileOwnerUserId:t.get("owner_user_id",-1),folderId:t.get("folder_id"),thumbnailStatus:r,library:n,codec:(0,dW.Z)(t),isVideo:!0})};fq.propTypes={item:aR().map.isRequired,library:ak().string,videoConvertStatus:ak().string},fq.defaultProps={library:ej.Zu.PERSONAL,videoConvertStatus:ej.yL.Broken};var fY=fq,f$=function(e){var t={thumbnailUnitId:ak().number,thumbnailLibrary:ak().oneOf(Object.values(ej.Zu)).isRequired},n={thumbnailUnitId:0},r=t6.forwardRef(function(t,n){var r=t.thumbnailUnitId,i=t.thumbnailLibrary,o=(0,t2._)(t,["thumbnailUnitId","thumbnailLibrary"]),a=(0,aN.Z)({thumbnailUnitId:r,thumbnailLibrary:i});return t6.createElement(e,(0,t1._)((0,t0._)({},o),{thumbnailInfo:a,ref:n}))});return r.propTypes=t,r.defaultProps=n,r.displayName="WithThumbnailInfo[".concat((0,lC.Z)(e),"]"),r},fK=__webpack_require__(5943),fX="CustomErrorDisplay",fQ=(0,t6.forwardRef)(function(e,t){var n=e.playFromStart,r=e.item,i=e.type,o=e.onVideoEnd,a=e.passphrase,l=e.albumId,u=e.controls,c=e.library,d=e.thumbnailInfo,f=(0,oe._)(t6.useState(!1),2),p=f[0],h=f[1],m=(0,t6.useRef)(null),g=(0,t6.useRef)(r),v=(0,t6.useRef)({volume:1,muted:!1}),y=function(e){g.current=e},b=function(){return g.current.get("type")===ej.qG.VIDEO_360},_=r.get("type")===ej.qG.MOTION_PHOTO,E=(0,t6.useCallback)(function(){if(_)return{convertInfo:[],videoMeta:r.getIn(["additional","motion_photo"]).toJS(),quality:"motion_photo",videoConvertStatus:ej.yL.Ready};var e=r.getIn(["additional","video_convert"]).toJS(),t=r.getIn(["additional","video_meta"]).toJS(),n=(0,oB.QT)(e,t);return{convertInfo:e,videoMeta:t,quality:n,videoConvertStatus:r.getIn(["additional","video_convert_status"])}},[_,r]),w=(0,t6.useCallback)(function(e){var t=e.convertInfo,n=e.quality,o=r.get("id");return"raw"===n?ud({id:o,type:i,albumId:l,passphrase:a,library:c}):_?(0,iT.i_)({id:o,type:i,quality:"motion_photo",albumId:l,passphrase:a,library:c}):t.find(function(e){return e.quality===n})?(0,iT.i_)({id:o,type:i,quality:n,albumId:l,passphrase:a,library:c}):""},[l,_,r,c,a,i]),S=function(e,t){var n;(null===(n=m.current)||void 0===n?void 0:n.el().getElementsByTagName("video")[0]).style.transform="rotate(".concat(e,"deg) scale(").concat(t,")")},T=function(e,t){var n=0,r=0,i=1;return i=t.offsetHeight/e.width,{width:n=t.offsetHeight,height:r=e.height*i}},O=(0,t6.useCallback)(function(e){if(function(){S(0,1)}(),!("orig_h264"!==e||(0,fK.i7)()||(0,fK.vU)()||(0,fK.G6)()||(0,fK.un)()||(0,fK.sI)()&&(0,fK.fq)())){var t=r.getIn(["additional","orientation"]),n=m.current.el().getElementsByTagName("video")[0],i=r.getIn(["additional","resolution"]).toJS(),o=T(i,n),a=0,s=1;switch(t){case 6:a=270;break;case 3:a=180;break;case 8:a=90}0!==a&&(s=i.width<i.height?90===Math.abs(a%180)?n.offsetHeight/o.height:1:90===Math.abs(a%180)?n.offsetWidth/o.width:1,S(a,s))}},[r]),I=function(){m.current.volume(v.current.volume),m.current.muted(v.current.muted)},A=function(){if(m.current.mediainfo=m.current.mediainfo||{},b()){m.current.mediainfo.projection="360",m.current.vr({projection:"AUTO"});try{m.current.vr().changeProjection_("Sphere")}catch(e){}}else m.current.mediainfo.projection="NONE",m.current.vr({projection:"AUTO"})},C=function(){var e=window.videojs,t=e.getComponent("Button"),n=e.extend(t,{constructor:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(this,n),this.addClass("synofoto-custom-loop-button")},handleClick:function(){var e=this.player().loop();e?this.removeClass("synofoto-custom-loop-button-on"):this.addClass("synofoto-custom-loop-button-on"),this.player().loop(!e)}});e.registerComponent("LoopButton",n);var r=(0,nP.tq)()?1:2,i=m.current.controlBar.children().length-r;m.current.getChild("controlBar").addChild("LoopButton",{},i)},x=function(){var e=window.videojs,t=e.getComponent("ModalDialog"),n=e.extend(t,{constructor:function(e,n){var r=(0,t1._)((0,t0._)({},n),{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});t.call(this,e,r),this.reactProps=null==r?void 0:r.reactProps},createEl:function(){var e=t.prototype.createEl.call(this);return this.renderComponent(e,this.options().reactProps),e},updateProps:function(e){this.reactProps=(0,t0._)({},this.reactProps,e),this.renderComponent(this.el(),this.reactProps)},renderComponent:function(e,t){var n=nf.Z.getStore();s.render(t6.createElement(ax.zt,{store:n},t6.createElement(fY,t)),e)}});e.registerComponent(fX,n),m.current.removeChild("ErrorDisplay")},D=function(){O(E().quality)},R=function(){A(),I()},L=function(){var e;(0,nP.tq)()&&(null===(e=m.current)||void 0===e||e.addClass("vjs-has-started"))},k=function(){var e;(0,nP.tq)()&&(null===(e=m.current)||void 0===e||e.removeClass("vjs-has-started"))},M=function(){var e,t,n=sessionStorage.getItem("videoVolume"),r=sessionStorage.getItem("videoMuted");v.current={volume:n?parseFloat(n):1,muted:"true"===r},null===(e=m.current)||void 0===e||e.reset();try{null===(t=m.current)||void 0===t||t.vr().dispose()}catch(e){}},P=function(e){var t;e.stopImmediatePropagation(),M(),null===(t=m.current.getChild(fX))||void 0===t||t.show()},N=function(){var e,t;sessionStorage.setItem("videoMuted",null===(e=m.current)||void 0===e?void 0:e.muted()),sessionStorage.setItem("videoVolume",null===(t=m.current)||void 0===t?void 0:t.volume())},F=function(e){return"flv"===e?"video/x-flv":"video/mp4"},B=(0,t6.useCallback)(function(e,t){var n=[],r=(0,oB.sY)(t);return r&&n.push({quality:"raw"}),e.forEach(function(e){(!r||"orig_h264"!==e.quality)&&oB.NE.find(function(t){return t===e.quality})&&n.push({quality:e.quality})}),{sources:n.map(function(t){return{format:t.quality,src:w({convertInfo:e,quality:t.quality}),type:F(t.quality)}}),formats:n.map(function(e){return{code:e.quality,name:(0,tQ.n6)("video",oB.Z2[e.quality])}}),onFormatSelected:function(e){O(e.code)}}},[w,O]);return(0,t6.useEffect)(function(){if(m.current&&p&&n){var e=m.current;if(e.readyState()>0)try{e.currentTime(0),e.play()}catch(e){console.error("Error in play from start:",e)}}},[n,p]),(0,t6.useEffect)(function(){var e=(0,nP.tq)(),n={albumId:l,passphrase:a},i=(0,iT.AJ)(r.get("id"),d,"item","xl",n),o=E(),s=o.convertInfo,c=o.quality,f={controls:u,autoplay:!0,poster:i,sources:[{src:w({convertInfo:s,quality:c}),type:F(c)}],bigPlayButton:e,controlBar:{fullscreenToggle:!e,volumePanel:!e}};if(t.current){var p=window.videojs(t.current,f,D);p.on("loadedmetadata",R),p.on("play",L),p.on("pause",k),p.on("error",P),p.on("volumechange",N),m.current=p,A(),C(),x(),h(!0)}return function(){t&&m.current&&m.current.dispose()}},[]),(0,t6.useEffect)(function(){return p?(m.current.on("ended",o),function(){m.current.off("ended",o)}):function(){}},[m,o,p]),(0,t6.useEffect)(function(){if(t.current&&m.current){var e=E(),n=e.convertInfo,r=e.quality,i=e.videoMeta;m.current.qualityselector().setMenuOption(B(n,i)),m.current.qualityselector().setCurrentFormat(r)}},[E,B,t]),(0,t6.useEffect)(function(){if(m.current){var e,t={albumId:l,passphrase:a};null===(e=m.current.getChild(fX))||void 0===e||e.hide();var n=(0,iT.AJ)(r.get("id"),d,"item","xl",t),i=E(),o=i.convertInfo,s=i.quality,u=w({convertInfo:o,quality:s});M(),m.current.poster(n),m.current.src({src:u,type:F(s)}),m.current.load(),y(r),A()}},[r]),(0,t6.useEffect)(function(){if(m.current){var e=E().videoConvertStatus;m.current.getChild(fX)?m.current.getChild(fX).updateProps({item:r,library:c,videoConvertStatus:e}):m.current.addChild(fX,{reactProps:{item:r,library:c,videoConvertStatus:e}})}},[r,d,c,l,a,E]),t6.createElement("div",{className:"video-js-container"},t6.createElement("div",{"data-vjs-player":!0},t6.createElement("video",{playsInline:(0,nP.tq)(),className:"synofoto-lightbox-video video-js",ref:t})))});fQ.propTypes={playFromStart:ak().bool,item:aR().map.isRequired,type:ak().string,onVideoEnd:ak().func,passphrase:ak().string,albumId:ak().number,controls:ak().bool,library:ak().string.isRequired,thumbnailInfo:ak().shape({unit_id:ak().number.isRequired,cache_key:ak().string.isRequired,sm:ak().oneOf(Object.values(ej.yL)).isRequired,m:ak().oneOf(Object.values(ej.yL)).isRequired,xl:ak().oneOf(Object.values(ej.yL)).isRequired})},fQ.defaultProps={playFromStart:!1,onVideoEnd:function(){},passphrase:"",albumId:void 0,type:"item",controls:!0,thumbnailInfo:void 0};var fJ=function(e,t){return e.item.get("id")===t.item.get("id")&&e.playFromStart===t.playFromStart&&e.library===t.library&&e.controls===t.controls&&e.albumId===t.albumId&&e.passphrase===t.passphrase&&e.type===t.type&&e.onVideoEnd===t.onVideoEnd&&e.thumbnailInfo.cache_key===t.thumbnailInfo.cache_key&&e.thumbnailInfo.unit_id===t.thumbnailInfo.unit_id},f0=f$(t6.memo(fQ,fJ)),f1={item:aR().map.isRequired,playFromStart:ak().bool,type:ak().string.isRequired,thumbnailUnitId:ak().number.isRequired,thumbnailLibrary:ak().oneOf(Object.values(ej.Zu)).isRequired,onVideoEnd:ak().func.isRequired,passphrase:ak().string,albumId:ak().number,controls:ak().bool.isRequired,library:ak().oneOf(Object.values(ej.Zu)).isRequired,isInMobile360:ak().bool.isRequired,is360:ak().bool.isRequired,onClick360ThumbnailInMobileHandler:ak().func.isRequired,onClickLeaveInMobileHandler:ak().func.isRequired},f2={playFromStart:!1,passphrase:"",albumId:void 0},f4=t6.forwardRef(function(e,t){var n=e.item,r=e.thumbnailUnitId,i=e.thumbnailLibrary,o=e.type,a=e.library,s=e.controls,l=e.albumId,u=e.passphrase,c=e.playFromStart,d=e.onVideoEnd,f=e.isInMobile360,p=e.is360,h=e.onClick360ThumbnailInMobileHandler,m=e.onClickLeaveInMobileHandler,g=(0,aN.Z)({thumbnailUnitId:r,thumbnailLibrary:i}),v=function(){return p?t6.createElement(uC,{id:n.get("id"),isVideo:!0}):t6.createElement("div",{className:"synofoto-lightbox-video-indicator-wrapper-mobile"},t6.createElement("div",{className:"synofoto-lightbox-video-indicator"}))};return f?t6.createElement(t6.Fragment,null,t6.createElement(f0,{ref:t,item:n,thumbnailUnitId:r,thumbnailLibrary:i,type:o,library:a,controls:s,albumId:l,passphrase:u,onVideoEnd:d,playFromStart:c}),t6.createElement(se.Z,{iconCls:"cancel-dark-btn-icon",className:"synofoto-lightbox-leave-360-mobile",handler:m})):t6.createElement(t6.Fragment,null,t6.createElement("img",{className:"synofoto-lightbox-image synofoto-360-thumbnail-mobile synofoto-lightbox-video-thumbnail-mobile",alt:"",src:(0,iT.AJ)(n.get("id"),g,"item","xl",{albumId:l,passphrase:u}),onClick:h}),v())});f4.propTypes=f1,f4.defaultProps=f2;var f3=f4,f5=(0,aY.C)(f0,f3),f6=__webpack_require__(17225),f9=function(e,t){return t6.createElement(se.Z,{title:(0,tQ.n6)("action","zoom_out"),handler:t,iconCls:"zoom-out-dark-btn-icon",disabled:e,tipId:ej.ZP.GLOBAL_TOOLTIP_ID})},f8=function(e,t){return t6.createElement(se.Z,{title:(0,tQ.n6)("action","zoom_in"),handler:t,iconCls:"zoom-in-dark-btn-icon",disabled:e,tipId:ej.ZP.GLOBAL_TOOLTIP_ID})},f7=function(e,t,n){return t6.createElement(lK.Z,{className:"synofoto-reset-zoom-button",disabled:e,textCls:"synofoto-zoom-control-panel-text",text:t,title:(0,tQ.n6)("action","reset_zoom"),alwaysShowTooltip:!0,handler:n})},pe=function(e){var t=e.scale,n=e.minScale,r=e.maxScale,i=e.onZoomInClick,o=e.onZoomOutClick,a=e.onResetClick,s=e.onMouseEnter,l=e.onMouseLeave,u=e.className;return t6.createElement("div",{className:u,onMouseEnter:s,onMouseLeave:l},f9(t<=n,o),f7(t===n,"".concat(Math.floor(100*t),"%"),a),f8(t>=r,i))};pe.propTypes={scale:ak().number.isRequired,minScale:ak().number.isRequired,maxScale:ak().number.isRequired,onZoomInClick:ak().func.isRequired,onZoomOutClick:ak().func.isRequired,onResetClick:ak().func.isRequired,className:ak().string,onMouseEnter:ak().func,onMouseLeave:ak().func},pe.defaultProps={onMouseEnter:void 0,onMouseLeave:void 0,className:""};var pt=pe,pn=__webpack_require__(73102),pr=function(e,t){var n=4096,r=[e,t],i=r[0],o=r[1];return t>e&&t>n?(o=n,i=Math.round(n*e/t)):e>=t&&e>n&&(i=n,o=Math.round(n*t/e)),{width:i,height:o}},pi=function(e,t){return e*t>=53634e4},po=function(e){var t=e.image,n=e.setCanvasRef,r=e.closeZoomMode,i=e.imageSize,o=e.hideControlPanel,s=e.show,l=e.xlImage,u=e.xlImageSize,c=(0,oe._)((0,t6.useState)(!1),2),d=c[0],f=c[1],p=(0,t6.useRef)(null),h=(0,t6.useRef)(null),m=(0,t6.useRef)(s),g=(0,oe._)((0,t6.useState)(t),2),v=g[0],y=g[1],b=(0,oe._)((0,t6.useState)(pr(i.width,i.height)),2),_=b[0],E=b[1],w=function(e,t){if(h.current){var n=_.width,r=_.height;(h.current.width!==n||h.current.height!==r)&&(h.current.width=n,h.current.height=r),e.clearRect(0,0,n,r),e.save(),e.drawImage(t,0,0,t.width,t.height,0,0,n,r),e.restore()}},S=function(){if(h.current&&v&&(0,iT.MS)(v)){if(l!==v&&pi(i.width,i.height)){y(l),E(pr(u.width,u.height));return}var e=h.current.getContext("2d",{alpha:!1});(0,pn.$)(v).then(function(t){return(0,t5._)(function(){return(0,a.Jh)(this,function(n){return 200===t.status?createImageBitmap(t.data).then(function(t){w(e,t)}).catch(function(){l!==v&&(y(l),E(pr(u.width,u.height)))}):503===t.status&&setTimeout(S,100),[2]})})()}).catch(function(){})}};(0,t6.useEffect)(function(){return function(){f(!0)}},[]),(0,t6.useEffect)(function(){y(t),E(pr(i.width,i.height))},[t]),(0,t6.useEffect)(function(){S()},[v]),(0,t6.useEffect)(function(){m.current&&!s&&p.current&&p.current.applyInitialTransform(),m.current=s},[s]);var T=aW()({"synofoto-zoom-control-panel":!0,hidden:o}),O={};return(s||(O.opacity=0,O.display="none",O.pointerEvents="none"),d)?null:t6.createElement(f6.default,{zoomButtonsEl:pt,className:"synofoto-lightbox-zoom-image",zoomButtonsClassName:T,synoCloseZoomMode:r,style:O,position:"center",doubleTapBehavior:"zoom",maxScale:3,ref:p},t6.createElement("canvas",{id:"zoom-canvas","data-testid":"zoom-canvas",width:_.width,height:_.height,ref:function(e){h.current=e,n(e)}}))};po.propTypes={image:ak().string.isRequired,setCanvasRef:ak().func.isRequired,closeZoomMode:ak().func,imageSize:ak().shape({width:ak().number,height:ak().number}),hideControlPanel:ak().bool,show:ak().bool,xlImage:ak().string.isRequired,xlImageSize:ak().shape({width:ak().number,height:ak().number})},po.defaultProps={closeZoomMode:function(){},imageSize:{width:150,height:150},hideControlPanel:!1,show:!1,xlImageSize:{width:150,height:150}};var pa=po,ps={item:aR().map.isRequired,isShow:ak().bool.isRequired,isShowControlPanel:ak().bool.isRequired,closeZoomMode:ak().func.isRequired,library:ak().string.isRequired,albumType:ak().string.isRequired,sharingAlbumPermission:aR().map.isRequired,albumKey:ak().shape({passphrase:ak().string,albumId:ak().number}).isRequired,isTeamSpacePhoto:ak().bool.isRequired,isVideo:ak().bool.isRequired,setCanvasRef:ak().func.isRequired},pl=function(e){var t=e.item,n=e.isShow,r=e.isShowControlPanel,i=e.closeZoomMode,o=e.library,a=e.albumType,s=e.sharingAlbumPermission,l=e.albumKey,u=e.isTeamSpacePhoto,c=e.isVideo,d=e.setCanvasRef,f=t.getIn(["additional","thumbnailUnitId"]),p=(0,aN.Z)({thumbnailUnitId:f,thumbnailLibrary:o});if(0===t.get("id",0)||c)return null;var h=um({item:t,thumbnailUnitId:f,thumbnailInfo:p,library:o,albumType:a,sharingAlbumPermission:s,albumKey:l,isTeamSpacePhoto:u}),m=h.image,g=h.width,v=h.height,y=h.xlImage,b=h.xlImageSize,_={width:g,height:v};return t6.createElement(pa,{setCanvasRef:d,image:m,hideControlPanel:!r,show:n,imageSize:_,closeZoomMode:i,xlImage:y,xlImageSize:b})};pl.propTypes=ps;var pu=pl,pc=__webpack_require__(38709),pd=function(e){var t=e.showOverlay,n=e.setShowOverlay,r=e.onHideOverlayDelay,i=(0,t6.useRef)({x:null,y:null}),o=(0,t6.useRef)(t);(0,t6.useEffect)(function(){o.current=t},[t]);var a=(0,t6.useMemo)(function(){return(0,pc.Z)(function(){if(!o.current){n(!0);return}r()},200)},[n,r]),s=(0,t6.useCallback)(function(e){(e.screenX!==i.current.x||e.screenY!==i.current.y)&&(i.current={x:e.screenX,y:e.screenY},a())},[a]);return(0,nP.tq)()?function(){}:s},pf=__webpack_require__(69399),pp=t6.lazy(function(){return Promise.all([__webpack_require__.e("260"),__webpack_require__.e("740")]).then(__webpack_require__.bind(__webpack_require__,55907))}),ph=200,pm="item",pg="unit",pv=function(e,t,n){return n(e.get(t,""))},py=function(e,t){return pv(e,"type",function(e){return t.includes(e)})},pb=function(e,t){return pv(e,"live_type",function(e){return e===t})},p_=function(e){return py(e,[ej.qG.PHOTO,ej.qG.PHOTO_360,ej.qG.BURST])||pb(e,ej.M6.PHOTO)},pE=function(e){return py(e,[ej.qG.LIVE])&&pb(e,ej.qG.LIVE)},pw=function(e){return py(e,[ej.qG.MOTION_PHOTO])},pS=function(e){return pE(e)||pw(e)},pT=function(e){return e===ej.ZP.ALBUM_TYPE.ALBUM||e===ej.ZP.ALBUM_TYPE.SHARING},pO=function(e){var t=e.find(function(e){return e.get("live_type")===ej.M6.VIDEO});if(void 0===t)return!1;var n=t.getIn(["additional","video_convert"],eW.default.List()).toJS(),r=t.getIn(["additional","video_meta"]).toJS();return""!==(0,oB.QT)(n,r)},pI=function(e){var t=e.getIn(["additional","motion_photo"]);return!!t&&(0,oB.sY)(t.toJS())},pA=function(e,t,n){var r={};return pT(e)&&((0,ng.CB)()?r.passphrase=t:n&&(r.albumId=n)),r},pC=function(e,t,n,r,i){return aW()({"synofoto-lightbox-nav-icon-button":!(0,nP.tq)(),"synofoto-lightbox-nav-icon-button-mobile":(0,nP.tq)(),"show-mobile":t,is360:i,hidden:!e||n||r})},px=function(e,t){var n=["synofoto-lightbox-image-panel","synofoto-lightbox-image","synofoto-lightbox-zoom-image"];return"zoom-canvas"===e||n.some(function(e){return t.contains(e)})},pD=function(e){var t=e.item,n=e.status,r=e.closeLightbox,i=e.albumType,o=e.passphrase,a=e.library,s=e.albumId,l=e.showInfoButton,u=e.pathname,c=e.isSimilarItem,d=(0,ax.I0)(),f=t.get("id",0),p=n.get("displayTips"),h=t.getIn(["additional","thumbnailUnitId"]),m=t.getIn(["additional","favorite"],!1),g=n.get("zoomMode"),v=(0,ax.v9)(r9.Z.getSharingPermission),y=(0,ax.v9)(r9.Z.getCurrentAlbum),b=(0,ax.v9)(au.getUnit),_=(0,ax.v9)(au.getPrevItem),E=(0,ax.v9)(au.getNextItem),w=(0,ax.v9)(af.Z.getIsFromSuggestion),S=(0,ax.v9)(ap.Z.getUserId),T=(0,ax.v9)(r6.Z.getShowItemInfoInLightbox),O=(0,ax.v9)(r6.Z.isPlatformSupportPersonRecognition),I=(0,oe._)((0,t6.useState)(!1),2),A=I[0],C=I[1],x=(0,oe._)((0,t6.useState)(!1),2),D=x[0],R=x[1],L=(0,oe._)((0,t6.useState)(!1),2),k=L[0],M=L[1],P=(0,oe._)((0,t6.useState)(!1),2),N=P[0],F=P[1],B=(0,oe._)((0,t6.useState)("true"===sessionStorage.getItem(ej.OE)),2),U=B[0],H=B[1],j=(0,oe._)((0,t6.useState)(!1),2),V=j[0],z=j[1],Z=(0,oe._)((0,t6.useState)(!1),2),G=Z[0],W=Z[1],q=(0,oe._)((0,t6.useState)(!0),2),Y=q[0],$=q[1],K=(0,oe._)((0,t6.useState)(!1),2),X=K[0],Q=K[1],J=(0,oe._)((0,t6.useState)(!1),2),ee=J[0],et=J[1],en=(0,oe._)((0,t6.useState)(!1),2),er=en[0],ei=en[1],eo=(0,oe._)((0,t6.useState)(!1),2),ea=eo[0],es=eo[1],el=(0,oe._)((0,t6.useState)(!1),2),eu=el[0],ec=el[1],ed=(0,oe._)((0,t6.useState)(!1),2),ef=ed[0],ep=ed[1],eh=(0,t6.useRef)(null),em=(0,t6.useRef)(!1),eg=(0,t6.useRef)(n),ev=(0,t6.useRef)(null),ey=(0,t6.useRef)(null),eb=(0,t6.useRef)(null),e_=(0,t6.useRef)(X||p||eu),eE=(0,t6.useRef)(null),ew=(0,t6.useRef)(0),eS=t.getIn(["additional","orientation"])!==t.getIn(["additional","orientation_original"]),eT=pS(t),eO=eT&&!eS,eI=c&&!N&&!g,eA=!g&&!V,eC=(0,t6.useMemo)(function(){return(0,aM.Z)(function(){e_.current||$(!1)},2800)},[]),ex=pd({showOverlay:Y,setShowOverlay:$,onHideOverlayDelay:eC}),eD=(0,aN.Z)({thumbnailUnitId:h,thumbnailLibrary:a});(0,t6.useEffect)(function(){return d((0,pf.G)(ej.ZP.NOTIFICATION_ANCHOR_ID.LIGHTBOX)),(0,ne.u)({onChange:function(e){e||(0,nm.n_)()}}),eC(),function(){eC.cancel(),d((0,pf.s)()),ev.current&&clearTimeout(ev.current),ey.current&&clearTimeout(ey.current)}},[d,eC]),(0,t6.useEffect)(function(){(0,nh.IF)(u)&&!N?(M(!0),F(!0),(0,ne.Z)().toggle()):!(0,nh.IF)(u)&&N&&(M(!1),F(!1),(0,ne.Z)().exit())},[u,N]),(0,t6.useEffect)(function(){k&&!eb.current?d((0,iU.iO)()):k&&eb.current&&!eb.current.ended?d((0,iU.S2)()):k&&eb.current&&eb.current.ended?d((0,iU.iO)()):em.current&&!k&&d((0,iU.S2)()),em.current=k},[d,k,f,eb]),(0,t6.useEffect)(function(){W(!1)},[f]),(0,t6.useEffect)(function(){var e=X||p||ee||eu||ef;e!==e_.current&&(e_.current=e,e_.current?(eC.cancel(),$(!0)):eC())},[X,p,eC,ee,eu,ef]),(0,t6.useEffect)(function(){(0,nP.tq)()&&(eg.current.get("hasNext")&&!n.get("hasNext")?iS.Z.openTopToast({message:(0,tQ.n6)("lightbox","last_item"),autoHide:!0}):eg.current.get("hasPrev")&&!n.get("hasPrev")&&iS.Z.openTopToast({message:(0,tQ.n6)("lightbox","first_item"),autoHide:!0}),eg.current=n)},[n]),(0,t6.useEffect)(function(){ea&&es(!1)},[ea]);var eR=function(){(null==ev?void 0:ev.current)&&(clearTimeout(ev.current),ev.current=null),C(!0),ev.current=setTimeout(function(){C(!1)},ph)},eL=function(){(null==ey?void 0:ey.current)&&(clearTimeout(ey.current),ey.current=null),R(!0),ey.current=setTimeout(function(){R(!1)},ph)},ek=function(){return t.getIn(["additional","provider_user_id"],0)===S},eM=function(){var e=t.get("owner_user_id");return a===ej.Zu.TEAM&&0===e},eP=function(){return(0,nh.R6)(u)&&eM()},eN=function(){return!(0,rf.nw)()&&0!==t.get("owner_user_id")},eF=function(){return!SYNO.SDS.Session.isLogined||(eP()?!(0,sI.KF)(ej._I.MANAGE):(0,nh.iY)(u)||(0,ng.CB)()?eM()?!(0,li.Z)():!ek():!!(0,nh.jk)(u)&&!!eM()&&!(0,li.Z)())},eB=function(){return!SYNO.SDS.Session.isLogined||(eP()?!(0,li.Z)():!!((0,nh.iY)(u)||(0,ng.CB)())&&(eM()?!(0,li.Z)():!ek()))},eU=function(){return!(!l||eN())&&(N?T:T&&!U)},eH=function(){g&&d((0,tJ.RD)(!1))},eV=function(){g||d((0,tJ.RD)(!0))},ez=function(){eH(),d((0,iU.zJ)())},eZ=function(){eH(),d((0,iU.OW)())},eW=(0,uF.f)(d,a,s7.yZ,s7.dH),eq=function(){d(si((0,su.aV)(),[f]))},eY=function(){!(0,nP.tq)()&&(n.get("hasNext")||N)&&eZ()},e$=function(){z(!0)},eK=function(){V&&z(!1)},eX=function(){(0,nP.tq)()||sessionStorage.setItem(ej.OE,(!U).toString()),H(!U),d((0,tJ.kl)(!1))},eQ=function(){W(!G),eH()},eJ=(0,t6.useCallback)(function(){N&&k&&d((0,iU.OW)()),eT&&(W(!1),V&&z(!1))},[d,N,k,eT,V]),e0=function(){(0,oB.mi)(t)&&(null==eb?void 0:eb.current)&&window.videojs.getPlayer(eb.current.id).pause(),G&&W(!1)},e1=function(e){g||(0,oB.mi)(t)||N||!(e.deltaY<0)||(es(!0),eV())},e2=function(e){var n=e.deltaY,r=e.clientX,i=e.clientY;if(n<0&&!(0,oB.mi)(t)&&!N&&eh.current){var o=eh.current.getBoundingClientRect();r>o.left&&r<o.right&&i>o.top&&i<o.bottom&&(es(!0),eV())}},e4=function(e){var t=n.toJS(),o=t.hasPrev,s=t.hasNext;if(!X){if(N&&k&&$(!1),e.key===ej.VD.RIGHT&&(s||N)){eZ(),$(!1);return}if(e.key===ej.VD.LEFT&&(o||N)){ez(),$(!1);return}if(e.key===ej.VD.ESC){N?(0,nm.n_)():r();return}if(e.key===ej.VD.DELETE){if(pT(i)||(0,nh.R6)(u)&&(0,nh.Eo)(a)&&!(0,sI.KF)(ej._I.MANAGE))return;eW();return}e.key===ej.VD.SPACE&&N&&(e.preventDefault(),$(!0),eC(),M(!k))}},e3=function(e){var t=e.target,n=t.id,r=t.classList;!px(n,r)||r.contains("synofoto-360-thumbnail-mobile")||(Y?$(!1):$(!0))},e5=function(e){ew.current=e.target.scrollTop},e6=function(){eA&&n.get("hasNext")&&eZ()},e9=function(){eA&&n.get("hasPrev")&&ez()},e8=function(){if(eA){if(U){ew.current<=0&&eX();return}r()}},e7=function(e){2===e.touches.length&&(eV(),(null==eE?void 0:eE.current)&&eE.current.dispatchEvent(new TouchEvent(e.type,e.nativeEvent)))},te=function(){var e=aW()("synofoto-lightbox-controlpanel",{hidden:!Y});return N?t6.createElement("div",{className:e},t6.createElement(se.Z,{className:"synofoto-slideshow-button",iconCls:"previous-dark-btn-icon",handler:ez}),t6.createElement(se.Z,{className:"synofoto-slideshow-button",iconCls:"".concat(k?"pause":"play","-dark-btn-icon"),handler:function(){return M(!k)}}),t6.createElement(se.Z,{className:"synofoto-slideshow-button",iconCls:"next-dark-btn-icon",handler:eZ}),t6.createElement(se.Z,{iconCls:"stop-dark-btn-icon",handler:nm.n_})):null},tt=function(){return eI?t6.createElement("div",{"data-testid":"similar-item-gallery-wrapper",onMouseEnter:function(){return et(!0)},onMouseLeave:function(){return et(!1)}},t6.createElement(t6.Suspense,{fallback:t6.createElement("div",null)},t6.createElement(pp,{hidden:!Y,library:a,openGridViewHandler:e0,setIsScrollBarDragging:ep}))):null},tn=function(){var e=eU();if(!c&&!e)return null;var t=aW()("synofoto-lightbox-bottom-linear-gradient",{"similar-item":eI&&Y,hidden:!Y&&!e});return t6.createElement("div",{className:t,"data-testid":"linear-gradient-mask"})},tr=function(e,t){if(p_(e)&&(0,oB.SC)(e)&&!t)return t6.createElement(uL,{key:"img_".concat(e.get("id")),item:e,albumKey:pA(),albumType:i,handleClick:eY,isInMobile360:V,isTeamSpacePhoto:eM(),library:a,sharingAlbumPermission:v,onClick360ThumbnailInMobileHandler:e$,onClickLeaveInMobileHandler:eK});var r=t?{}:{needMountImage:!ea||!g,setCurrentImageRef:function(e){eh.current=e,ei(!!e)},handleClick:eY,handleTouchMove:e7,onWheel:e1};return t6.createElement(ul,(0,t0._)({key:"img_".concat(e.get("id")),item:e,hasNext:n.get("hasNext"),albumKey:pA(i,o,s),isHidden:t},r))},ti=function(e,n){var r=pA(i,o,s),l=pT(i)?ej.Zu.PERSONAL:a;return(0,rf.tp)(a)?t6.createElement(f5,(0,t1._)((0,t0._)({ref:eb,item:e,thumbnailUnitId:e.getIn(["additional","thumbnailUnitId"]),thumbnailLibrary:l,type:n,library:l,controls:(0,oB.mi)(t)},r),{onVideoEnd:eJ,playFromStart:G,isInMobile360:V,is360:(0,oB.SC)(e),onClick360ThumbnailInMobileHandler:e$,onClickLeaveInMobileHandler:eK})):t6.createElement(ur.Z,{thumbnailStatus:ej.yL.SpaceDisable,library:l})},to=function(e,t){if(0===f)return null;if(pw(e))return G?ti(e,pm):tr(e,!1);if(0===t.size)return null;var n=t.find(function(e){return G?e.get("live_type")===ej.M6.VIDEO:e.get("live_type")===ej.M6.PHOTO});return(n||(n=t.get(0)),n.get("live_type")===ej.M6.VIDEO)?ti(n,pg):tr(n,!1)},ta=function(){var e=(0,eG._)(_).concat([t],(0,eG._)(E)).sort(function(e,t){return e.get("id")-t.get("id")});return _.getIn([0,"id"])===E.getIn([0,"id"])&&(_.getIn([0,"id"])===t.get("id")?e=[e[1]]:e.splice(1,1)),e.map(function(e){var t=e.get("current");return p_(e)||!t||pS(e)&&eS?tr(e,!t):null})},ts=function(){var e=eO&&(pO(b)||pI(t))&&eD.xl!==ej.yL.AmeDefect,n=N&&T,o=aW()("synofoto-lightbox-overlays",{hidden:!(Y||n)});return N||V?null:t6.createElement("div",{"data-testid":"lightbox-overlay",className:o},t6.createElement(fW,{item:t,closeLightbox:r,toggleInfoPanel:eX,deleteItem:eW,downloadItem:(0,uF.f)(d,a,s7.$O,s7.QB),albumType:i,isFromSuggestion:w,setMoreButton:function(){return Q(!X)},setIsOnHover:function(e){return ec(e)},setItemShare:eq,library:a,addToFavorite:function(){return d((0,s7.ns)())},removeFromFavorite:function(){return d((0,s7.g_)())},isFavorite:m,showLiveIndicator:e,liveButtonOn:G,setLiveButton:eQ,toggleZoomButton:function(){return d((0,tJ.RD)(!g))},isMotionPhoto:pw(t),is360:(0,oB.SC)(t),isGif:p_(t)&&(0,oB.he)(t),isWebp:(0,oB.A4)(t),isVideo:(0,oB.mi)(t),sharingAlbumPermission:v,showInfoButton:l,isProvider:ek(),isConditionAlbum:y.get("type","")===ej.ZP.ALBUM_TYPE.CONDITION,isFreezeAlbum:y.get("freezeAlbum",!1),isImageReady:er,enterSlideshow:function(){return d((0,iU.Ui)())},isPlatformSupportPersonRecognition:O,disableRedirectToSmartAlbum:eB(),isSimilarItem:c}))},tl=function(){var e=n.toJS(),r=e.hasPrev,o=e.hasNext,s=(0,oB.SC)(t),l=!ea&&!V,u=pC(r,A,g,N,s),c=pC(o,D,g,N,s);return t6.createElement("div",{onMouseMove:ex,onTouchEnd:e3,className:"synofoto-lightbox-image-panel","data-testid":"lightbox-image-panel"},ta(),(0,oB.mi)(t)?ti(t,pm):null,eO?to(t,b):null,t6.createElement(pu,{setCanvasRef:function(e){eE.current=e},item:t,closeZoomMode:eH,library:a,albumType:i,sharingAlbumPermission:v,albumKey:pA(),isTeamSpacePhoto:eM(),isVideo:(0,oB.mi)(t),isShowControlPanel:!(0,nP.tq)()&&Y,isShow:g}),l?t6.createElement(se.Z,{className:"synofoto-lightbox-prev-icon-button ".concat(u),iconCls:"nav-btn-icon",onWheel:e2,dataTestId:"lightbox-prev-item",handler:function(){(0,nP.tq)()&&eR(),ez()}}):null,l?t6.createElement(se.Z,{className:"synofoto-lightbox-next-icon-button ".concat(c),iconCls:"nav-btn-icon",dataTestId:"lightbox-next-item",onWheel:e2,handler:function(){(0,nP.tq)()&&eL(),eZ()}}):null,ts(),t6.createElement(ue,{item:t,show:eU(),isVideo:(0,oB.mi)(t),toggleInfoPanel:eX}),te(),tt(),tn(),t6.createElement(sX.Z,{onKeyDown:e4}))},tu=function(){return N?null:t6.createElement(fE,{item:t,library:a,show:U,toggleInfoPanel:eX,readonly:eF(),disableRedirectToSmartAlbum:eB(),passphrase:o,albumId:s,pathname:u,albumType:i,hiddenInfo:eN(),onScroll:e5})};return 0===f?t6.createElement(un,{closeLightbox:r,showOverlay:Y,slideshowMode:N,onMouseMove:ex,onTap:e3}):t6.createElement(l$.Z,{onSwipeLeft:e6,onSwipeRight:e9,onSwipeDown:e8,enablePinch:!0,onPinchIn:eK},t6.createElement("div",{className:"synofoto-lightbox-wrapper"},tl(),tu(),t6.createElement(lJ,{item:t}),t6.createElement(l9,{currentItem:t,prevItems:_,nextItems:E,liveUnits:b})))};pD.propTypes={item:aR().map.isRequired,status:aR().map.isRequired,closeLightbox:ak().func.isRequired,albumType:ak().string,passphrase:ak().string,library:ak().string.isRequired,albumId:ak().number,showInfoButton:ak().bool,pathname:ak().string.isRequired,isSimilarItem:ak().bool},pD.defaultProps={albumType:null,passphrase:"",albumId:void 0,showInfoButton:!0,isSimilarItem:!1};var pR=pD,pL=(eW.default.List(),eW.default.Map(),function(e){return e.getIn(["timeline","isLoaded"])}),pk=function(e){return e.getIn(["routing","library"])};function pM(e){return{type:i6.GoBackAndScrollTo,isSimilarItem:e}}(0,nF.q$)({AddUploadTask:"ADD_UPLOAD_TASK",AddBackgroundTask:"ADD_BACKGROUND_TASK",AppendErrorDetailItem:"APPEND_ERROR_DETAIL_ITEM",AppendLeftErrorDetailItem:"APPEND_LEFT_ERROR_DETAIL_ITEM",BatchUpdateUploadTaskItems:"BATCH_UPDATE_UPLOAD_TASK_ITEMS",IncreaseNumDeletedItemForErrorDetail:"INCREASE_NUM_DELETED_ITEM_FOR_ERROR_DETAIL",RetryUploadTask:"RETRY_UPLOAD_TASK",UpdateBackgroundTaskStatusInfo:"UPDATE_BACKGROUND_TASK_STATUS_INFO",UpdateUploadTaskItem:"UPDATE_UPLOAD_TASK_ITEM",UpdateUploadTaskItemError:"UPDATE_UPLOAD_TASK_ITEM_ERROR",UpdateUploadTaskAlbumInfo:"UPDATE_UPLOAD_TASK_ALBUM_INFO",RemoveBackgroundTask:"REMOVE_BACKGROUND_TASK",RemoveUploadTask:"REMOVE_UPLOAD_TASK",RemoveCompletedBackgroundTasks:"REMOVE_COMPLETED_BACKGROUND_TASKS",RemoveCompletedUploadTasks:"REMOVE_COMPLETED_UPLOAD_TASKS",ResetBackgroundTasks:"RESET_BACKGROUND_TASKS",ResetErrorDetail:"RESET_TASK_QUEUE_ERROR_DETAIL",ResetScrollToIndex:"RESET_SCROLL_TO_INDEX",SetIsLoadingErrorDetail:"SET_IS_LOADING_ERROR_DETAIL",SetOpenTaskQueueFinishingMessage:"SET_OPEN_TASK_QUEUE_FINISHING_MESSAGE",SetOpenTaskQueue:"SET_OPEN_TASK_QUEUE",SetScrollToIndex:"SET_SCROLL_TO_INDEX",SetTaskIndexMap:"SET_TASK_INDEX_MAP",SetTargetTaskForErrorDetail:"SET_TARGET_TASK_FOR_TASK_QUEUE_ERROR_DETAIL",SetUploadTaskNumCompletion:"SET_UPLOAD_TASK_NUM_COMPLETION",SetUploadTaskNumIgnore:"SET_UPLOAD_TASK_NUM_IGNORE",SetUploadTaskNumRename:"SET_UPLOAD_TASK_NUM_RENAME",SetUploadTaskStatus:"SET_UPLOAD_TASK_STATUS"});var pP=(0,nF.Ky)({AddUploadToAlbumTask:"ADD_UPLOAD_TO_ALBUM_TASK",AddUploadToNewCreatedAlbumTask:"ADD_UPLOAD_TO_NEW_CREATED_ALBUM_TASK",AddUploadToFolderTask:"ADD_UPLOAD_TO_FOLDER_TASK",AddUploadToTimelineTask:"ADD_UPLOAD_TO_TIMELINE_TASK",CancelBackgroundTask:"CANCEL_BACKGROUND_TASK",CancelUploadTask:"CANCEL_UPLOAD_TASK",CancelAllUploadTask:"CANCEL_ALL_UPLOAD_TASK",ClearCompletedBackgroundTask:"CLEAR_COMPLETED_BACKGROUND_TASK",ClearCompletedTasks:"CLEAR_COMPLETED_TASKS",AddAlbumToTask:"ADD_ALBUM_TO_TASK",CreateAlbumToTask:"CREATE_ALBUM_TO_TASK",LoadBackgroundTasks:"LOAD_BACKGROUND_TASKS",OpenTaskQueue:"OPEN_TASK_QUEUE",ProcessUploadTasks:"PROCESS_UPLOAD_TASKS",RefreshBackgroundTaskResultIfNeeded:"REFRESH_BACKGROUND_TASK_RESULT_IF_NEEDED",ShowErrorDetailForBackgroundTask:"SHOW_ERROR_DETAIL_FOR_BACKGROUND_TASK",ShowErrorDetailForUploadTask:"SHOW_ERROR_DETAIL_FOR_UPLOAD_TASK",ShowFinishingMessageIfNeeded:"SHOW_FINISHING_MESSAGE_IF_NEEDED"});function pN(e){return{type:pP.OpenTaskQueue,isOpen:e}}var pF=t6.lazy(function(){return Promise.all([__webpack_require__.e("798"),__webpack_require__.e("922")]).then(__webpack_require__.bind(__webpack_require__,40489))}),pB=function(e){var t=e.ownerUserId,n=e.paramLibrary,r=e.pathname,i=e.routingLibrary;return(0,nh.UJ)(r)?i:0===t?ej.Zu.TEAM:n||ej.Zu.PERSONAL},pU=function(e){var t=e.albumType,n=e.params,r=e.passphraseFromLightboxSelector;return{passphrase:(0,ng.v6)()?r:n.passphrase,albumId:t===ej.ZP.ALBUM_TYPE.ALBUM&&n.id?parseInt(n.id,10):void 0}},pH=function(e){var t=e.pathname,n=e.timelineIsLoaded,r=e.albumIsLoaded;return(0,nh.hz)(t)||(0,nh.GR)(t)?n:!!(0,nh.iY)(t)&&r},pj=function(e){var t=e.displayPhotoInfoToGuest,n=(0,ax.I0)(),r=(0,sV.Z)(),i=r.location,o=r.params,a=(0,ax.v9)(af.Z.getAlbumType),s=(0,ax.v9)(au.getItem),l=(0,ax.v9)(au.getStatus),u=(0,ax.v9)(r6.Z.getSettingLoaded),c=(0,ax.v9)(i9.Z.getIsSimilarItem),d=(0,ax.v9)(i9.Z.getCurrentPick)||0,f=(0,ax.v9)(pk),p=(0,ax.v9)(pL),h=(0,ax.v9)(r9.Z.getIsLoaded),m=(0,ax.v9)(au.getPassphrase),g=parseInt(o.itemId,10),v=pB({ownerUserId:s.get("owner_user_id"),paramLibrary:o.library,pathname:i.pathname,routingLibrary:f}),y=pU({albumType:a,params:o,passphraseFromLightboxSelector:m}),b=y.passphrase,_=y.albumId,E=pH({pathname:i.pathname,timelineIsLoaded:p,albumIsLoaded:h}),w=g>0&&u,S=(0,n6.o$)(i.pathname),T=ej.Zu.TEAM===S.library?S.library:ej.Zu.PERSONAL,O=(0,t6.useRef)(null),I=(0,t6.useRef)(0===s.get("id")&&g>0);(0,t6.useEffect)(function(){if(g&&u){var e=function(){return(0,uF.f)(n,T,iU.GN,iU.YK)(g,b,_)};0===d&&g!==O.current&&s.get("id")!==g&&(e(),E&&(I.current=!1),O.current=g),E&&I.current&&(e(),I.current=!1)}},[n,d,s,g,u,E,b,_,T]),(0,t6.useEffect)(function(){w&&n(pN(!1)),w||(O.current=NaN)},[w,n]);var A=function(){n(pM(c)),l.get("needRefreshTimeline")&&(n((0,n_.RR)(a)),n((0,tJ.qK)(!1)))};return(0,nh.v6)(i.pathname)?t6.createElement(lY,{open:w},t6.createElement(t6.Suspense,{fallback:t6.createElement("div",null)},t6.createElement(pF,{item:s,albumType:a,passphrase:b,albumId:_,library:v}))):t6.createElement(lY,{open:w},t6.createElement(pR,{item:s,status:l,closeLightbox:A,albumId:_,albumType:a,passphrase:b,library:v,showInfoButton:SYNO.SDS.Session.isLogined||t,pathname:i.pathname,isSimilarItem:c}))};pj.propTypes={displayPhotoInfoToGuest:ak().bool},pj.defaultProps={displayPhotoInfoToGuest:!1};var pV=pj,pz=__webpack_require__(65316);function pZ(e){return{type:oW.VerifySharingPassword,password:e}}var pG={isWrongPassword:ak().bool,verifyAction:ak().func,title:ak().string,description:ak().string},pW={isWrongPassword:!1,verifyAction:pZ,title:(0,tQ.n6)("shared","password_required"),description:(0,tQ.n6)("shared","need_folder_password")};function pq(e){var t=e.isWrongPassword,n=e.verifyAction,r=e.title,i=e.description,o=(0,tQ.n6)("shared","incorrect_password"),a=(0,oe._)((0,t6.useState)(""),2),s=a[0],l=a[1],u=(0,oe._)((0,t6.useState)(!1),2),c=u[0],d=u[1],f=(0,t6.useRef)(null),p=(0,ax.I0)(),h=(0,pz.Z)();(0,t6.useEffect)(function(){var e=(0,aM.Z)(function(){f.current&&f.current.scrollIntoView()},300);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]);var m=function(e){l(e.target.value)},g=function(){p(n(s)),l("")},v=function(e){e.key===ej.VD.ENTER&&g()},y=function(){d(!c)},b=function(){l("")},_=function(e){return e.preventDefault()},E=aW()("synofoto-password-folder-view-password-input",{invalid:t}),w=function(){return t6.createElement("div",{className:"synofoto-password-folder-view-password-wrapper"},t6.createElement("input",{ref:f,type:c?"text":"password",className:E,value:s,onChange:m,onKeyDown:v,"data-testid":"password-input"}),t6.createElement("div",{className:"synofoto-input-password-tool"},""!==s&&t6.createElement(se.Z,{className:"synofoto-input-password-tool-icon",iconCls:"clear-btn-icon",handler:b,onMouseDown:_,dataTestId:"password-clear-button"}),t6.createElement(se.Z,{className:"synofoto-input-password-tool-icon",iconCls:c?"menu-invisible-btn-icon":"menu-visible-btn-icon",disabled:""===s,handler:y,onMouseDown:_,dataTestId:"password-visibility-button"})),t6.createElement(se.Z,{className:"synofoto-icon-button-confirm",iconCls:"enter-btn-icon",handler:g,onMouseDown:_,dataTestId:"password-confirm-button"}))},S=function(){return t6.createElement("div",{className:"synofoto-password-folder-view-footer"},t&&t6.createElement("div",{className:"synofoto-password-folder-view-footer-error-message"},o))},T=aW()("synofoto-password-folder-view-icon","synofoto-empty-share-icon",(0,r4._)({},"synofoto__".concat(h),!0));return t6.createElement("div",{className:"synofoto-password-folder-view"},t6.createElement("div",{className:T}),t6.createElement("div",{className:"synofoto-password-folder-view-title"},r),t6.createElement("div",{className:"synofoto-password-folder-view-content"},i),w(),S())}pq.propTypes=pG,pq.defaultProps=pW;var pY=pq,p$={className:ak().string},pK={className:""};function pX(e){var t=e.className,n=aW()("synofoto-header-logo",(0,r4._)({},t,t)),r=!1;return t6.createElement("div",{className:n},t6.createElement("img",{src:"webman/3rdparty/SynologyPhotos/images/svg/logo_dsm_Photos_40.svg",alt:"logo"}),t6.createElement("span",null,(0,tQ.n6)("app","pkg_displayname")),r&&t6.createElement("span",{className:"synofoto-dev-badge"},"DEV"))}pX.propTypes=p$,pX.defaultProps=pK;var pQ=pX,pJ=function(){return(0,t5._)(function(){var e;return(0,a.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,tX.Z)({api:"SYNO.Core.Region.NTP",method:"listzone",version:1})];case 1:return[2,t.sent().zonedata];case 2:return e=t.sent(),[2,[]];case 3:return[2]}})})()},p0=__webpack_require__(42376),p1=__webpack_require__(94057),p2=function(){return t6.createElement("div",{className:"synofoto-refresh-display-language-message"},(0,tQ.n6)("personal_settings","refresh_confirm"),t6.createElement("ul",null,t6.createElement("li",null,(0,tQ.n6)("personal_settings","lang_changed"))))};function p4(){var e=nf.Z.getStore(),t=document.body.appendChild(document.createElement("div"));return new Promise(function(n){var r={message:p2(),showClose:!1,showCancel:!0,showConfirm:!0,isOpen:!0,cancelText:(0,tQ.n6)("common","no"),confirmText:(0,tQ.n6)("common","yes"),cancelHandler:function(){n({type:ej.uE.CANCEL})},confirmHandler:function(){n({type:ej.uE.CONFIRM}),nb()}};s.render(t6.createElement(ax.zt,{store:e},t6.createElement(p0.Z,r)),t)}).finally(function(){(0,p1.P)(t)})}var p3=__webpack_require__(95635),p5=t6.lazy(function(){return __webpack_require__.e("138").then(__webpack_require__.bind(__webpack_require__,8021))}),p6=function(){var e=[];e.push({value:"def",label:(0,tQ.n6)("common","sys_default_setting")});var t=!0,n=!1,r=void 0;try{for(var i,o=(0,p3.ix)()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=(0,oe._)(i.value,2),s=a[0],l=a[1];e.push({value:s,label:l})}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return e},p9=function(){return(0,t5._)(function(){var e;return(0,a.Jh)(this,function(t){switch(t.label){case 0:return(e=[]).push({value:"def",label:(0,tQ.n6)("common","sys_default_setting")}),[4,pJ()];case 1:return t.sent().forEach(function(t){var n=t.display,r=t.value;e.push({value:r,label:n})}),[2,e]}})})()},p8=function(){return(0,t5._)(function(){var e,t,n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:return e=document.body.appendChild(document.createElement("div")),t=nf.Z.getStore(),n=p6(),[4,p9()];case 1:return r=i.sent(),[2,new Promise(function(i){var o={handleCancel:function(){i({type:ej.uE.CANCEL})},handleApply:function(e){var t=e.isLanguageChanged;i({type:ej.uE.APPLY}),t&&p4()},languageOptions:n,timezoneOptions:r};s.render(t6.createElement(ax.zt,{store:t},t6.createElement(t6.Suspense,{fallback:t6.createElement("div",null)},t6.createElement(p5,o))),e)}).then(function(e){return e}).catch(function(e){throw e}).finally(function(){(0,p1.P)(e)})]}})})()},p7=__webpack_require__(84513),he=function(){var e=SYNO.Foto.Window.jsConfig,t="";return e.buildTime?t=e.buildTime.split("-")[0]:_S&&_S("builddate")&&(t=_S("builddate").split("/")[0]),{synoId:"synofoto-about-window",title:SYNO.SDS.UIString.GetLocalizedString(e.title,e.jsID),icon:"".concat(e.jsBaseURL,"/images/icon/photos_512.png"),beta:SYNO.Foto.Window.isBeta||!1,version:e.version,copyrightYear:t}},ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"SynologyPhotos";return(0,t5._)(function(){var t,n,r,i,o,s,l,u,c,d,f,p,h,m,g,v;return(0,a.Jh)(this,function(a){switch(a.label){case 0:t={api:"SYNO.Entry.Request",method:"request",version:1,compound:{stopwhenerror:!1,mode:"parallel",params:[{api:"SYNO.Core.Package.Server",method:"list",version:2,params:{filter_ids:[e]}},{api:"SYNO.Core.Package.Info",method:"get",version:1}]}},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,p7.Z.request(t)];case 2:return l=a.sent(),c=(u=(0,oe._)(l.result,2))[0],d=u[1],f=null==c?void 0:null===(n=c.data)||void 0===n?void 0:n.packages,m=null!==(h=null==(p=null==c?void 0:null===(r=c.data)||void 0===r?void 0:r.beta_packages)?void 0:null===(i=p[0])||void 0===i?void 0:i.version)&&void 0!==h?h:null,g=null==d?void 0:null===(o=d.data)||void 0===o?void 0:o.config,v=null==f?void 0:null===(s=f.find(function(t){return t.id===e}))||void 0===s?void 0:s.version,[2,{newVersion:(null==g?void 0:g.ds_build)>=72803?v:null,betaVersion:(null==g?void 0:g.blBetaChannel)?m:null}];case 3:return console.error("Unable to get package infos:",a.sent()),[2,{newVersion:null,betaVersion:null}];case 4:return[2]}})})()},hn=__webpack_require__(63744),hr=(0,nF.q$)({SetUserInfo:"SET_USER_INFO"}),hi=(0,nF.Ky)({GetUserInfo:"GET_USER_INFO"});function ho(){return{type:hi.GetUserInfo}}var ha=!1,hs=null,hl=null,hu=null,hc=null;function hd(){return(0,t5._)(function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:if(hs)return[3,2];return[4,__webpack_require__.e("637").then(__webpack_require__.bind(__webpack_require__,25217))];case 1:hs=e.sent(),e.label=2;case 2:return[2,hs]}})})()}function hf(){return(0,t5._)(function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:if(hl)return[3,2];return[4,hd()];case 1:hl=(0,e.sent().createApp)({}),e.label=2;case 2:return[2,hl]}})})()}function hp(e,t){return(0,t5._)(function(){var n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:if(hu)return[3,2];return[4,Promise.all([__webpack_require__.e("637"),__webpack_require__.e("963"),__webpack_require__.e("756")]).then(__webpack_require__.bind(__webpack_require__,75867)).then(function(e){return e.default})];case 1:hu=r.sent(),r.label=2;case 2:return[4,hd()];case 3:if(n=r.sent().h,e.use(hu),e.config.globalProperties.$windowManager.zseed=9010,e.config.globalProperties.$iconManager&&e.config.globalProperties.$iconManager.register("app-icon",{name:"AppIcon",render:function(){var e=he();return n("img",{src:e.icon,alt:e.title})}}),!t)return[3,5];return[4,e.config.globalProperties.$changeLang(t)];case 4:r.sent(),r.label=5;case 5:return[2]}})})()}function hh(){return(0,t5._)(function(){var e,t;return(0,a.Jh)(this,function(n){switch(n.label){case 0:if(ha)return[3,3];return[4,hf()];case 1:return[4,hp(n.sent(),(null===(t=SYNO.SDS)||void 0===t?void 0:null===(e=t.Session)||void 0===e?void 0:e.lang)||"enu")];case 2:n.sent(),ha=!0,n.label=3;case 3:return[2]}})})()}var hm=function(){return(0,t5._)(function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:if(hc)return[2,hc];return[4,Promise.all([__webpack_require__.e("637"),__webpack_require__.e("963"),__webpack_require__.e("708")]).then(__webpack_require__.bind(__webpack_require__,96830)).then(function(e){return e.vAboutWindowV2})];case 1:return[2,hc=e.sent()]}})})()},hg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,t5._)(function(){var n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:return[4,hh()];case 1:return i.sent(),[4,hf()];case 2:if(!(n=i.sent()).config.globalProperties.$windowManager)return console.error("Window manager not initialized"),[2,null];return[2,(r=n.config.globalProperties.$windowManager.openModalWindow(e,t,{parentApp:n,containerEl:document.body}))?r.window:null]}})})()},hv=t6.lazy(function(){return __webpack_require__.e("818").then(__webpack_require__.bind(__webpack_require__,72204))}),hy=function(){var e=document.body.appendChild(document.createElement("div")),t=nf.Z.getStore();return new Promise(function(n){var r={isOpen:!0,handleCancel:function(){n({type:"cancel"})},handleApply:function(){n({type:"resolve"})}};s.render(t6.createElement(ax.zt,{store:t},t6.createElement(t6.Suspense,{fallback:t6.createElement("div",null)},t6.createElement(hv,r))),e)}).then(function(e){return e}).catch(function(e){throw e}).finally(function(){(0,p1.P)(e)})},hb=function(){var e=(0,hn.j)((0,ax.v9)(ap.Z.getProfile)),t=(0,ax.I0)();(0,t6.useEffect)(function(){setTimeout(function(){t(ho())},1e3)},[t]);var n=function(){p8().then(function(){t(ho())}).catch(function(e){throw e})},r=function(){hy()},i=function(){SYNO.Foto.Window.onClickHelp()},o=function(){return(0,t5._)(function(){var e;return(0,a.Jh)(this,function(t){switch(t.label){case 0:return e=he(),[4,hm()];case 1:return[4,hg(t.sent(),(0,t1._)((0,t0._)({},e),{tagline:(0,tQ.n6)("app","about_tagline"),releaseNotesUrl:"https://www.synology.com/releaseNote/SynologyPhotos",fetchVersion:ht}))];case 2:return t.sent(),[2]}})})()},s=function(){ny()},l=function(){return(0,ng.v6)()?[{text:(0,tQ.n6)("action","logout"),handler:s}]:[{text:(0,tQ.n6)("action","profile"),handler:n,dataTestId:"profile-btn"},{text:(0,tQ.n6)("action","setting"),handler:r},{text:(0,tQ.n6)("action","help"),handler:i},{text:(0,tQ.n6)("action","about"),handler:o},{text:(0,tQ.n6)("action","logout"),handler:s}]};return t6.createElement(fw.Z,{buttonType:"circletext",classSuffix:"size32",ctClassName:"synofoto-avatar-menu-button",dataTestId:"avatar-menu-btn",text:e.accountName,title:e.userName,circleImage:e.avatar,backgroundColor:e.color,offset:{x:8},menu:l()})},h_=function(e){var t=e.logoutHandler,n=(0,hn.j)((0,ax.v9)(ap.Z.getProfile)),r=(0,ax.I0)();(0,t6.useEffect)(function(){setTimeout(function(){r(ho())},1e3)},[r]);var i=function(){t(),ny()};return t6.createElement(fw.Z,{buttonType:"circletext",classSuffix:"size24",ctClassName:"synofoto-avatar-menu-button",dataTestId:"avatar-menu-btn-mobile",text:n.accountName,title:n.userName,circleImage:n.avatar,backgroundColor:n.color,offset:{y:11},menu:[{text:(0,tQ.n6)("action","logout"),handler:i}]})};h_.propTypes={logoutHandler:ak().func},h_.defaultProps={logoutHandler:function(){}};var hE=h_,hw=(0,aY.C)(hb,hE),hS=function(e){var t=e.classSuffix,n=function(){window.location.replace((0,n6.Y$)(ej.sO.LOGIN,{passphrase:(0,ng.Of)()}))};return t6.createElement(cD.Z,{classSuffix:t,className:"synofoto-avatar-empty-circle-button",text:"",handler:n,dataTestId:"public-sharing-avatar-btn"})};hS.propTypes={classSuffix:ak().string},hS.defaultProps={classSuffix:"size32"};var hT=hS,hO=__webpack_require__(57349),hI={dataTestId:ak().string,onSortingChange:ak().func.isRequired,sortBy:ak().oneOf(Object.values(ej.ER)),sortDirection:ak().oneOf(Object.values(ej.Sr)),offset:ak().shape({x:ak().number,y:ak().number})},hA={dataTestId:void 0,sortBy:ej.ER.TAKENTIME,sortDirection:ej.Sr.ASC,offset:{x:0,y:0}},hC=function(e){var t=e.onSortingChange,n=e.sortBy,r=e.sortDirection,i=e.dataTestId,o=e.offset,a=(0,ax.v9)(ac.Z.getSelectMode),s=function(e,i){(e!==r||i!==n)&&t(i,e)};return a?null:(0,hO.hh)({sortBy:n,sortDirection:r,changeSorting:s,title:(0,tQ.n6)("action","sorting"),offset:o,dataTestId:i,selfPortal:!0})};hC.propTypes=hI,hC.defaultProps=hA;var hx=hC,hD=function(){var e=(0,ax.I0)(),t=(0,ax.v9)(r9.Z.getCurrentAlbumId),n=(0,ax.v9)(r9.Z.getCurrentAlbumSortBy),r=(0,ax.v9)(r9.Z.getCurrentAlbumSortDirection),i=function(n,r){e(iv({id:t,passphrase:(0,ng.Of)()},n,r))};return t6.createElement(hx,{onSortingChange:i,sortBy:n,sortDirection:r,dataTestId:"public-sharing-sorting-btn"})},hR=function(){var e=(0,ax.I0)(),t=(0,ax.v9)(r9.Z.getFirstItemId),n=(0,ax.v9)(r9.Z.getSharingPermission),r=(0,ax.v9)(ac.Z.getSelectMode),i=(0,ax.v9)(r9.Z.getCurrentAlbumName),o=(0,ax.v9)(oK.getIsNeedPassword),a=function(){return 0!==t},s=function(){var t=function(t){var n={};n.passphrase=(0,ng.Of)(),n.albumName=i,n.downloadType=t,e(ib(n))};return n.getIn(["permission","download"])&&a()?(0,hO.tb)({className:"synofoto-header-button",handler:t,dataTestId:"public-sharing-download-btn"}):null},l=function(){var n=function(){return e((0,iU.xV)({id:t,slideshow:!0}))};return a()?(0,hO.qq)({className:"synofoto-header-button",handler:n,dataTestId:"public-sharing-slideshow-btn"}):null},u=function(){return SYNO.SDS.Session.isLogined?t6.createElement(hw,null):t6.createElement(hT,null)};return o||r?t6.createElement("div",{className:"synofoto-header-right"},u()):t6.createElement("div",{className:"synofoto-header-right"},l(),s(),t6.createElement(hD,null),u())},hL={SELECT:{key:"select",action:"handleSelect"},CANCEL_SELECT:{key:"deselect",action:"handleCancelSelect"},UPLOAD:{key:"upload",action:"handleUpload"},DOWNLOAD_ALL:{key:"download_all",action:"handleDownloadAll"}},hk={ALBUM_EMPTY:"album_empty",ALBUM_EMPTY_UPLOAD:"album_empty_upload",ALBUM_OWNER:"album_owner",ALBUM_VIEW:"album_view",ALBUM_VIEW_PHOTO_REQUEST:"album_view_photo_request",ALBUM_DOWNLOAD:"album_download",ALBUM_DOWNLOAD_PHOTO_REQUEST:"album_download_photo_request",ALBUM_ADD_REMOVE:"album_add_remove",ALBUM_ADD_REMOVE_UPLOAD:"album_add_remove_upload",CONDITION_OWNER:"condition_owner",CONDITION_VIEW:"condition_view",CONDITION_DOWNLOAD:"condition_download"},hM=(o={},(0,r4._)(o,hk.ALBUM_EMPTY,function(e){return[]}),(0,r4._)(o,hk.ALBUM_EMPTY_UPLOAD,function(e){return e?[]:[hL.UPLOAD]}),(0,r4._)(o,hk.ALBUM_OWNER,function(e){return e?[hL.CANCEL_SELECT]:[hL.SELECT,hL.UPLOAD,hL.DOWNLOAD_ALL]}),(0,r4._)(o,hk.ALBUM_VIEW,function(e){return[]}),(0,r4._)(o,hk.ALBUM_VIEW_PHOTO_REQUEST,function(e){return e?[]:[hL.UPLOAD]}),(0,r4._)(o,hk.ALBUM_DOWNLOAD,function(e){return e?[hL.CANCEL_SELECT]:[hL.SELECT,hL.DOWNLOAD_ALL]}),(0,r4._)(o,hk.ALBUM_DOWNLOAD_PHOTO_REQUEST,function(e){return e?[hL.CANCEL_SELECT]:[hL.SELECT,hL.UPLOAD,hL.DOWNLOAD_ALL]}),(0,r4._)(o,hk.ALBUM_ADD_REMOVE,function(e){return e?[hL.CANCEL_SELECT]:[hL.SELECT,hL.DOWNLOAD_ALL]}),(0,r4._)(o,hk.ALBUM_ADD_REMOVE_UPLOAD,function(e){return e?[hL.CANCEL_SELECT]:[hL.SELECT,hL.UPLOAD,hL.DOWNLOAD_ALL]}),(0,r4._)(o,hk.CONDITION_OWNER,function(e){return e?[hL.CANCEL_SELECT]:[hL.SELECT,hL.DOWNLOAD_ALL]}),(0,r4._)(o,hk.CONDITION_VIEW,function(e){return[]}),(0,r4._)(o,hk.CONDITION_DOWNLOAD,function(e){return e?[hL.CANCEL_SELECT]:[hL.SELECT,hL.DOWNLOAD_ALL]}),o),hP=function(){var e=(0,ax.I0)(),t=(0,ax.v9)(ac.Z.getSelectMode),n=(0,ax.v9)(r9.Z.getIsCondition),r=0===(0,ax.v9)(r9.Z.getCurrentAlbumItemCount),i=(0,ax.v9)(r9.Z.getSharingPermission),o=(0,ax.v9)(r9.Z.getCurrentAlbumName),a=(0,ax.v9)(r9.Z.getCurrentAlbumPassphrase),s=function(){return n?r?hk.ALBUM_EMPTY:lm(i,ej.F.DOWNLOAD)?hk.CONDITION_DOWNLOAD:hk.CONDITION_VIEW:r?hk.ALBUM_EMPTY:lm(i,ej.F.DOWNLOAD)?hk.ALBUM_DOWNLOAD:hk.ALBUM_VIEW},l={handleSelect:s0.IE,handleCancelSelect:s0.S$},u={handleDownloadAll:function(t){e(ib({albumName:o,downloadType:t,passphrase:a}))}},c=hM[s()](t),d=(0,lt.Z)({menuItems:c,actionCreatorMap:l,functionHandlerMap:u});return SYNO.SDS.Session.isLogined?(console.error("should not render this component when user is logined"),null):0===d.length?null:t6.createElement(fw.Z,{selfPortal:!0,ctClassName:"synofoto-album-more-button-mobile",iconCls:"more-btn-icon",menu:d,menuDataTestId:"album-header-more-button-menu-mobile"})},hN=function(){var e=(0,ax.v9)(oK.getIsNeedPassword);return t6.createElement("div",{className:"synofoto-header-right-mobile"},!e&&t6.createElement(hD,null),SYNO.SDS.Session.isLogined?t6.createElement(hw,null):t6.createElement(hT,{classSuffix:"size24"}),t6.createElement(hP,null))},hF=(0,aY.C)(hR,hN),hB=function(){return t6.createElement("div",{className:"synofoto-header-container"},t6.createElement("div",{className:"synofoto-header"},t6.createElement(pQ,null),t6.createElement(hF,null)))},hU=function(e){var t=e.wrapperCls,n=e.cancelHandler,r=e.text,i=e.buttonSet,o=(0,ax.v9)(ac.Z.getIsOpen),a=function(e){e.key===ej.VD.ESC&&n()};return t6.createElement(sW.Z,{className:t,portalClassName:"synofoto-selected-bar-portal-sticky",isOpen:o,onRequestClose:function(){},shouldCloseOnEsc:!1},t6.createElement("div",{className:"synofoto-selected-bar-content"},t6.createElement(sX.Z,{handlerNamespace:sQ.SELECTED_BAR,onKeyDown:a}),t6.createElement(se.Z,{title:(0,tQ.n6)("action","cancel"),key:"cancel_button",iconCls:"mode-cancel-dark-btn-icon",handler:n,dataTestId:"selectedbar-cancel-btn",tipId:ej.ZP.GLOBAL_TOOLTIP_ID}),t6.createElement(t8.Z,{key:"select_number",className:"synofoto-selected-bar-select-num",text:r}),i))};hU.propTypes={cancelHandler:ak().func.isRequired,text:ak().string.isRequired,buttonSet:ak().arrayOf(ak().node).isRequired,wrapperCls:ak().string.isRequired};var hH=hU,hj=function(e){var t=e.buttonKey,n=e.dataTestId,r=e.iconClass,i=e.selectedCount,o=e.selectType,a=e.selectedMap,s=e.handler;if((0,fS.Z)(i,o,a)){var l=(0,fT.Z)({selectedCount:i,selectType:o,selectedMap:a,hasHevc:(0,rf.eB)(),handler:s,enableConvertedOriginalJpeg:(0,rf.WP)()});return t6.createElement(fw.Z,{menu:l,iconCls:r,alignPosition:"top_right",ctClassName:"synofoto-selected-bar-menu-button",title:(0,tQ.n6)("action",t),offset:{x:-12,y:16},dataTestId:n,disabled:0===i})}return t6.createElement(se.Z,{className:"synofoto-selected-bar-button",title:(0,tQ.n6)("action",t),iconCls:r,handler:function(){return s(ej._5.SOURCE)},dataTestId:n,disabled:0===i,tipId:ej.ZP.GLOBAL_TOOLTIP_ID})};hj.propTypes={buttonKey:ak().string.isRequired,dataTestId:ak().string.isRequired,iconClass:ak().string.isRequired,selectedCount:ak().number.isRequired,selectType:ak().string.isRequired,selectedMap:aR().map.isRequired,handler:ak().func.isRequired};var hV=hj,hz=Object.values(s4),hZ=function(e){var t=e.iconType,n=e.library,r=(0,ax.I0)(),i=(0,ax.v9)(ac.Z.getSelectedCount),o=(0,ax.v9)(ac.Z.getSelectType),a=(0,ax.v9)(ac.Z.getSelectedMap),s=s3[t]();if(0===s.length)return null;var l=le((0,nh.E0)(n),!1),u=function(e){if(!e)return null;var t=l[e]();return function(){r(t)}},c=function(e){return t6.createElement(se.Z,{className:"synofoto-selected-bar-button",title:(0,tQ.n6)("action",e.key),key:e.key,iconCls:e.iconClass,handler:u(e.action),dataTestId:"selectedbar-".concat(e.testId),tipId:ej.ZP.GLOBAL_TOOLTIP_ID})},d=function(e){return t6.createElement(hV,{key:"download_button",buttonKey:e.key,dataTestId:"selectedbar-".concat(e.testId),iconClass:e.iconClass,selectedCount:i,selectType:o,selectedMap:a,handler:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ej._5.SOURCE;return r(l[e.action](t))}})};return s.map(function(e){switch(e.key){case"delete":var t=function(t){t.key===ej.VD.DELETE&&u(e.action)()};return t6.createElement(t6.Fragment,{key:"delete_button_hot_key"},t6.createElement(sX.Z,{handlerNamespace:sQ.SELECTED_BAR,onKeyDown:t}),c(e));case"download":return d(e);default:return c(e)}})};hZ.propTypes={iconType:ak().oneOf(hz).isRequired,library:ak().oneOf([ej.Zu.PERSONAL,ej.Zu.TEAM])},hZ.defaultProps={library:ej.Zu.PERSONAL};var hG=t6.memo(hZ),hW=Object.values(s6),hq=function(e){var t=e.isSingleSelect,n=e.menuType,r=e.library,i=le((0,nh.E0)(r),!1),o=(0,ax.v9)(s1.uW),a=(0,oe._)((0,t6.useState)(function(){return s9[n](t)}),2),s=a[0],l=a[1];(0,t6.useEffect)(function(){l(s9[n](t))},[o,n,t]);var u=(0,lt.Z)({menuItems:s,actionCreatorMap:i}),c=u.find(function(e){return"delete"===e.key}),d=function(e){e.key===ej.VD.DELETE&&c.handler()};return 0===u.length?null:t6.createElement(t6.Fragment,null,c?t6.createElement(sX.Z,{handlerNamespace:sQ.SELECTED_BAR,onKeyDown:d}):null,t6.createElement(fw.Z,{menu:u,alignPosition:"top_right",ctClassName:"synofoto-selected-bar-menu-button",iconCls:"more-dark-btn-icon",title:(0,tQ.n6)("action","more"),offset:{x:-12,y:16},menuDataTestId:"selected-bar-more-button-menu"}))};hq.propTypes={library:ak().oneOf([ej.Zu.PERSONAL,ej.Zu.TEAM]).isRequired,menuType:ak().oneOf(hW).isRequired,isSingleSelect:ak().bool},hq.defaultProps={isSingleSelect:!0};var hY=t6.memo(hq),h$=function(e){var t=e.library,n=(0,ax.I0)(),r=(0,ax.v9)(ac.Z.getSelectedCount),i=function(e){return t6.createElement(hG,{key:"icon_buttons",iconType:e,library:t})},o=function(e){return t6.createElement(hY,{key:"more_button",menuType:e,isSingleSelect:1===r,library:t})},a=function(){var e=lv(),t=e.iconType,n=e.menuType;return[t?i(t):null,n?o(n):null]};return t6.createElement(hH,{wrapperCls:"synofoto-selected-bar",cancelHandler:function(){return n((0,s0.S$)())},text:(0,tQ.Xp)("app","num_selected",r),buttonSet:a()})};h$.propTypes={library:ak().string.isRequired};var hK=h$,hX=function(e){var t=e.library,n=(0,ax.I0)(),r=(0,ax.v9)(ac.Z.getSelectedCount),i=(0,ax.v9)(ac.Z.getSelectType),o=(0,ax.v9)(ac.Z.getSelectedMap),a=(0,ax.v9)(r9.Z.getSharingPermission),s=(0,ax.v9)(ap.Z.getUserId),l=function(e){return(0,uF.f)(n,t,s7.gp,s7.Zs)(e)},u=function(){return n((0,s0.S$)())},c=function(){return t6.createElement(hV,{key:"download_button",buttonKey:"download",dataTestId:"selectedbar-download-btn",iconClass:"mode-download-dark-btn-icon",selectedCount:r,selectType:i,selectedMap:o,handler:l})},d=function(){var e=o.toIndexedSeq().toJS(),t=lf(s,e),n=a.getIn(["permission","download"]);return lh(e,t7.Z.PERSONAL_SPACE)?(0,rf.tp)(t7.Z.PERSONAL_SPACE)&&(t||n)?[c()]:[]:lh(e,t7.Z.TEAM_SPACE)?(0,rf.tp)(t7.Z.TEAM_SPACE)&&(t||n)?[c()]:[]:(0,rf.tp)(t7.Z.PERSONAL_SPACE)&&(0,rf.tp)(t7.Z.TEAM_SPACE)&&(t||n)?[c()]:[]};return t6.createElement(hH,{wrapperCls:"synofoto-selected-bar-mobile",cancelHandler:u,text:(0,tQ.Xp)("app","num_selected",r),buttonSet:d()})};hX.propTypes={library:ak().oneOf(Object.values(ej.Zu)).isRequired};var hQ=hX,hJ=(0,aY.C)(hK,hQ),h0=function(e){return e.getIn(["refresh","immediate"])};function h1(){return{type:o1.j.ClearRefresh}}var h2=__webpack_require__(47350),h4=[t7.Z.PERSONAL_SPACE,t7.Z.TEAM_SPACE,t7.Z.ALBUM,t7.Z.FOLDER,t7.Z.ITEM,t7.Z.TIMELINE,t7.Z.SHARING,"mo",t7.Z.SLIDESHOW,t7.Z.EDIT_FACE,t7.Z.SEARCH,t7.Z.ALBUM_TYPE.GEOCODING,t7.Z.ALBUM_TYPE.GENERAL_TAG,t7.Z.ALBUM_TYPE.PERSON,t7.Z.ALBUM_TYPE.VIDEO,t7.Z.ALBUM_TYPE.RECENTLY_ADDED,t7.Z.ALBUM_TYPE.LIVE,t7.Z.ALBUM_TYPE.CONCEPT,"_SharingAlbum","_Mobile"],h3=function(e){if(e===t7.Z.ROOT)return"Loading";var t=e.split("/");return t.map(function(e,n){return e===t7.Z.ALBUM_TYPE.DEGREE_360&&(t[n+1]===t7.Z.PERSONAL_SPACE||t[n+1]===t7.Z.TEAM_SPACE)?e:e.length>0&&!h4.includes(e)?"one":e}).join("/")},h5=function(e){return function(t,n){var r=e();try{r.send({type:ej.b2.Type.PAGE_VIEW,operation:ej.b2.Operation.EMIT,data:{id_user:t,location:h3(n),timestamp:df.yx.getNowTimestamp()}})}catch(e){console.error(e.message)}}}(h2.ZP),h6=function(e){return function(t){var n=e();try{n.send({type:ej.b2.Type.PAGE_VIEW,operation:ej.b2.Operation.EMIT,data:{id_user:t,timestamp:df.yx.getNowTimestamp(),location:void 0}})}catch(e){console.error(e.message)}}}(h2.ZP),h9=function(e){return function(t){var n=t.data;0!==n.length&&e({thumbnailInfos:n.map(function(e){return e.thumbnail}),overwriteRegenerating:!0})}},h8=function(){var e,t=(0,sV.Z)().location,n=(0,ax.I0)(),r=(0,ax.v9)(r6.Z.getSettingLoaded),i=(0,ax.v9)(ac.Z.getSelectMode),o=(0,ax.v9)(h0),a=(0,ax.v9)(r6.Z.getDisplayPhotoInfoToGuest),s=(0,ax.v9)(oK.getIsNeedPassword),l=(0,ax.v9)(oK.getIsWrongPassword),u=(0,ax.v9)(r9.Z.getCurrentAlbumOwnerUserId),c=function(){var e=t.pathname||"/",n=(0,nP.tq)()?"/_Mobile":"";return"_SharingAlbum".concat(n).concat(e)}(),d=(0,t6.useRef)(c),f=(0,t6.useRef)(u),p=(0,t6.useCallback)(function(){-1!==f.current&&h5(f.current,d.current)},[]),h=(0,t6.useCallback)(function(){-1!==f.current&&h6(f.current)},[]);(0,t6.useEffect)(function(){var e,t=(0,ng.Of)();if((0,ng.XX)()){var r=new URLSearchParams(window.location.search),i=r.get("passphrase"),o=r.get("alias");window.history.replaceState("",document.title,"".concat((0,n6.bM)(o),"mo/sharing/").concat(i))}else window.location.pathname==="/sharing/".concat(t)&&window.location.replace("".concat((0,n6.bM)(),"mo/sharing/").concat(t));(null===(e=SYNO.FotoSharing)||void 0===e?void 0:e.enable_password)&&n(oq({sharingId:SYNO.FotoSharing.passphrase})),(0,nP.tq)()&&document.querySelector("#reactRoot").classList.add("in-mobile"),n((0,nN.pK)());var a=h9(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n(nU.apply(void 0,(0,eG._)(t)))}),s=(0,h2.ZP)().register(ej.b2.Type.THUMBNAIL_UPDATE,a);return window.addEventListener("focus",p),window.addEventListener("blur",h),function(){s(),window.removeEventListener("focus",p),window.removeEventListener("blur",h)}},[n,p,h]),(0,t6.useEffect)(function(){o&&n(h1())},[n,o]),(0,t6.useEffect)(function(){return d.current=c,f.current=u,document.hasFocus()&&p(),function(){h()}},[u,c,p,h]);var m=function(e){i&&e.key===ej.VD.SHIFT&&n((0,s0.n0)())},g=aW()("synofoto-main-column-flex",{"in-mobile":(0,nP.tq)()});if((null===(e=SYNO.FotoSharing)||void 0===e?void 0:e.enable_password)&&s)return t6.createElement("div",{className:"synofoto-password-album-main"},t6.createElement(hB,null),t6.createElement("div",{className:"synofoto-password-album-content-wrapper"},t6.createElement("div",{className:"synofoto-password-album-wrapper"},t6.createElement(pY,{verifyAction:pZ,isWrongPassword:l,title:(0,tQ.n6)("shared","protected_link"),description:(0,tQ.n6)("shared","need_album_password")}))));if(!r)return t6.createElement("div",{className:"synofoto-common-absolute-fullsize"},t6.createElement(lZ.Z,null));var v=null;return o||(v=t6.createElement("div",{className:"synofoto-main-content-wrapper","data-testid":"synofoto-main-content-wrapper"},t6.createElement(aC.j3,null))),t6.createElement("div",{className:g},t6.createElement(sG(),{onKeyUp:m}),t6.createElement(hB,null),t6.createElement("div",{className:"synofoto-main-row-flex"},v),t6.createElement(hJ,{library:t7.Z.PERSONAL_SPACE}),t6.createElement(lw,{library:t7.Z.PERSONAL_SPACE}),t6.createElement(pV,{displayPhotoInfoToGuest:a}),t6.createElement(lz,null))},h7=t7.Z.ITEM,me=t7.Z.ROOT,mt=t7.Z.SLIDESHOW,mn=t6.createElement(aC.Z5,null,t6.createElement(aC.AW,{path:"".concat(me),element:t6.createElement(h8,null)},t6.createElement(aC.AW,{index:!0,element:t6.createElement(sz,null)}),t6.createElement(aC.AW,{path:"/".concat(h7,"/:itemId/").concat(mt,"?"),element:t6.createElement(sz,null)}),t6.createElement(aC.AW,{path:"*",element:t6.createElement(aC.Fg,{to:"".concat(me)})}))),mr=__webpack_require__(67145);function mi(e){return{type:hr.SetUserInfo,userInfo:e}}function mo(e){var t,n,r,i,o;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,7,,9]),[4,eI(r3.Z.Foto.Setting.Guest.get)];case 1:if(t=a.sent(),n=[eS((0,mr.m5)(t))],!SYNO.SDS.Session.isLogined)return[3,5];return[4,eI(r3.Z.Foto.Setting.User.get)];case 2:return r=a.sent(),[4,eI(r3.Z.Foto.Setting.TeamSpace.get)];case 3:return i=a.sent(),n.push(eS((0,mr.Yi)(r)),eS((0,mr.MW)(i))),[4,eI(r3.Z.Foto.UserInfo.me)];case 4:o=a.sent(),n.push(eS(mi(o))),a.label=5;case 5:if(e.reloadOnSuccess)return nb(),[2];return[4,eT(n)];case 6:case 8:return a.sent(),[3,9];case 7:return[4,eI(nk,{error:a.sent(),payload:(0,r4._)({},ej.ZQ.SHOULD_UPGRADE_USER,{action:e})})];case 9:return[2]}})}function ma(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eU(aw.qA.LoadSharingSetting,mo)];case 1:return e.sent(),[2]}})}var ms=__webpack_require__(99410),ml="unitIdToInfo",mu=eW.default.fromJS((0,r4._)({},ml,{})),mc=function(e){return["sm","m","xl"].some(function(t){return e.get(t)===ej.yL.Regenerating})},md=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case nB.ClearThumbnails:return mu;case nB.UpdateThumbnailInfos:var n=t.thumbnailInfos,r=t.overwriteRegenerating;return e.withMutations(function(e){n.forEach(function(t){var n=t.unit_id;!r&&e.hasIn([ml,"".concat(n)])&&mc(e.getIn([ml,"".concat(n)]))||e.setIn([ml,"".concat(n)],eW.default.fromJS(t))})});case nB.UpdateThumbnailCacheKey:var i=t.unitId;if(!e.getIn([ml,"".concat(i)]))return e;return e.setIn([ml,"".concat(i),"cache_key"],(0,ms.x0)());case nB.SetThumbnailRegenerating:var o=t.unitIds;return e.withMutations(function(e){o.forEach(function(t){e.setIn([ml,"".concat(t),"sm"],ej.yL.Regenerating).setIn([ml,"".concat(t),"m"],ej.yL.Regenerating).setIn([ml,"".concat(t),"xl"],ej.yL.Regenerating)})});default:return e}},mf=eW.default.fromJS({name:"",id:-1,uid:-1,enabled:!1,profile:{email:"",emails:[],groups:[],id:"",nickName:"",photo:"",preferredColor:"",preferredLanguage:"",timezone:"",timezoneUI:"",title:"",uid:-1,userName:""}}),mp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mf,t=arguments.length>1?arguments[1]:void 0;if(t.type===hr.SetUserInfo){var n=t.userInfo;return e.set("name",n.name).set("id",n.id).set("uid",n.uid).set("enabled",n.enabled).set("profile",eW.default.fromJS(n.profile||{userName:n.name}))}return e};let mh=(0,t6.createContext)(null),mm={didCatch:!1,error:null};class mg extends t6.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=mm}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(mm)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&null!==t.error&&mv(e.resetKeys,r)){var i,o;null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(mm)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state,a=e;if(i){let e={error:o,resetErrorBoundary:this.resetErrorBoundary};if((0,t6.isValidElement)(r))a=r;else if("function"==typeof t)a=t(e);else if(n)a=(0,t6.createElement)(n,e);else throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return(0,t6.createElement)(mh.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},a)}}function mv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}var my=__webpack_require__(9709),mb=__webpack_require__(29804);function m_(e){return{type:n5.LocationChange,payload:e}}var mE={history:ak().shape({action:ak().string.isRequired,location:ak().shape({pathname:ak().string.isRequired}).isRequired,replace:ak().func.isRequired,listen:ak().func.isRequired}).isRequired},mw=(0,t1._)((0,t0._)({},mE),{dispatch:ak().func}),mS={dispatch:function(){}},mT=function(e){return e.pathname.startsWith("/")?e:(0,t1._)((0,t0._)({},e),{pathname:"/".concat(e.pathname)})},mO=function(e){var t=e.history,n=e.dispatch,r=(0,t2._)(e,["history","dispatch"]),i=(0,oe._)((0,t6.useState)({action:t.action,location:mT(t.location)}),2),o=i[0],a=i[1];return(0,t6.useLayoutEffect)(function(){var e=(0,nh.km)(o.location.pathname);e&&(t.replace(e),a({location:t.location,action:t.action}))},[]),(0,t6.useLayoutEffect)(function(){var e=t.listen(function(e){a({action:e.action,location:mT(e.location)})});return function(){e()}},[t]),(0,t6.useLayoutEffect)(function(){n(m_(o.location))},[n,o.location]),t6.createElement(aC.F0,(0,t1._)((0,t0._)({},r),{location:o.location,navigationType:o.action,navigator:t}))};mO.propTypes=mw,mO.defaultProps=mS;var mI=function(e){var t=(0,ax.I0)();return t6.createElement(mO,(0,t0._)({dispatch:t},e))};mI.propTypes=mE;var mA=mI,mC=function(){return t6.createElement("div",{className:"synofoto-error-page-grid"},t6.createElement(pQ,null),t6.createElement("div",{className:"synofoto-error-page-content"},t6.createElement("div",{className:"synofoto-error-page-title"},(0,tQ.n6)("error","error")),(0,tQ.n6)("error","error_page_description")))},mx=200,mD=function(e){return function(t){if(t&&"BATCH_ALL"===t.type){(0,ax.dC)(function(){return t.payload.map(function(t){return e(t)})});return}e(t)}},mR=function(e,t){var n=t$({effectMiddlewares:[mD]}),r=(0,mb.composeWithDevTools)({maxAge:mx}),i=(0,my.MT)(t,r((0,my.md)(n)));return nf.Z.register(i),{app:t6.createElement(mg,{fallbackRender:mC},t6.createElement(ax.zt,{store:i},t6.createElement(mA,{history:(0,np.s1)()},e))),store:i,sagaMiddleware:n}}(mn,(0,eH.combineReducers)({actionBar:n7,albumReducer:r2,lightbox:oj,mobileTooltips:oZ,passwordSharing:o0,router:o5,selectedBar:aa,setting:aA,thumbnail:md,refresh:o4,contextMenu:iX,userInfo:mp,externalConvert:i5})),mL=mR.app,mk=mR.sagaMiddleware,mM=function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,eT([oQ(),ma(),ok(),aE(),n4(),iY(),i7()])];case 1:return e.sent(),[2]}})};mk.run(mM);var mP=function(e){s.render(mL,document.getElementById(e))}}(),FotoExternalSharedAlbumReactLibrary=__webpack_exports__}();

Youez - 2016 - github.com/yon3zu
LinuXploit