/*! For license information please see star.js.LICENSE.txt */ (()=>{var t={839:(t,e,n)=>{"use strict";var r=n(97),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(t){return r.isMemo(t)?u:a[t.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=u;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&t(e,o,r)}var u=s(n);f&&(u=u.concat(f(n)));for(var a=c(e),_=c(n),v=0;v{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,_=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,g=n?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case s:case f:case i:case a:case u:case d:return t;default:switch(t=t&&t.$$typeof){case l:case p:case v:case _:case c:return t;default:return e}}case o:return e}}}function S(t){return w(t)===f}e.AsyncMode=s,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=c,e.Element=r,e.ForwardRef=p,e.Fragment=i,e.Lazy=v,e.Memo=_,e.Portal=o,e.Profiler=a,e.StrictMode=u,e.Suspense=d,e.isAsyncMode=function(t){return S(t)||w(t)===s},e.isConcurrentMode=S,e.isContextConsumer=function(t){return w(t)===l},e.isContextProvider=function(t){return w(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===p},e.isFragment=function(t){return w(t)===i},e.isLazy=function(t){return w(t)===v},e.isMemo=function(t){return w(t)===_},e.isPortal=function(t){return w(t)===o},e.isProfiler=function(t){return w(t)===a},e.isStrictMode=function(t){return w(t)===u},e.isSuspense=function(t){return w(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===a||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===_||t.$$typeof===c||t.$$typeof===l||t.$$typeof===p||t.$$typeof===m||t.$$typeof===b||t.$$typeof===g||t.$$typeof===y)},e.typeOf=w},97:(t,e,n)=>{"use strict";t.exports=n(173)},354:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Children:()=>h,Component:()=>r.wA,Fragment:()=>r.HY,PureComponent:()=>c,StrictMode:()=>J,Suspense:()=>b,SuspenseList:()=>S,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>H,cloneElement:()=>W,createContext:()=>r.kr,createElement:()=>r.az,createFactory:()=>$,createPortal:()=>P,createRef:()=>r.Vf,default:()=>nt,findDOMNode:()=>B,flushSync:()=>X,forwardRef:()=>p,hydrate:()=>T,isValidElement:()=>V,lazy:()=>w,memo:()=>l,render:()=>N,startTransition:()=>K,unmountComponentAtNode:()=>q,unstable_batchedUpdates:()=>G,useCallback:()=>o.I4,useContext:()=>o.qp,useDebugValue:()=>o.Qb,useDeferredValue:()=>Z,useEffect:()=>o.d4,useErrorBoundary:()=>o.cO,useId:()=>o.Me,useImperativeHandle:()=>o.aP,useInsertionEffect:()=>tt,useLayoutEffect:()=>o.bt,useMemo:()=>o.Ye,useReducer:()=>o._Y,useRef:()=>o.sO,useState:()=>o.eJ,useSyncExternalStore:()=>et,useTransition:()=>Q,version:()=>z});var r=n(473),o=n(792);function i(t,e){for(var n in e)t[n]=e[n];return t}function u(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function a(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e}function c(t){this.props=t}function l(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:u(this.props,t)}function o(e){return this.shouldComponentUpdate=n,(0,r.az)(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(c.prototype=new r.wA).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(t,e){return u(this.props,t)||u(this.state,e)};var s=r.YM.__b;r.YM.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),s&&s(t)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function p(t){function e(e){var n=i({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=f,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var d=function(t,e){return null==t?null:(0,r.bR)((0,r.bR)(t).map(e))},h={map:d,forEach:d,count:function(t){return t?(0,r.bR)(t).length:0},only:function(t){var e=(0,r.bR)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:r.bR},_=r.YM.__e;r.YM.__e=function(t,e,n,r){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);_(t,e,n,r)};var v=r.YM.unmount;function y(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return y(t,e,n)}))),t}function m(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return m(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function b(){this.__u=0,this.t=null,this.__b=null}function g(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function w(t){var e,n,o;function i(i){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return(0,r.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function S(){this.u=null,this.o=null}r.YM.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),v&&v(t)},(b.prototype=new r.wA).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=g(r.__v),i=!1,u=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=u;var a=function(){if(!--r.__u){if(r.state.__a){var t=r.state.__a;r.__v.__k[0]=m(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(u,u)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=y(this.__b,n,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,r.az)(r.HY,null,t.fallback);return i&&(i.__h=null),[(0,r.az)(r.HY,null,e.__a?null:t.children),i]};var x=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),(0,r.sY)((0,r.az)(O,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function P(t,e){var n=(0,r.az)(E,{__v:t,i:e});return n.containerInfo=e,n}(S.prototype=new r.wA).__a=function(t){var e=this,n=g(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),x(e,t,r)):o()};n?n(i):i()}},S.prototype.render=function(t){this.u=null,this.o=new Map;var e=(0,r.bR)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},S.prototype.componentDidUpdate=S.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){x(t,n,e)}))};var j="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,k=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,A="undefined"!=typeof document,C=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function N(t,e,n){return null==e.__k&&(e.textContent=""),(0,r.sY)(t,e),"function"==typeof n&&n(),t?t.__c:null}function T(t,e,n){return(0,r.ZB)(t,e),"function"==typeof n&&n(),t?t.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(r.wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var M=r.YM.event;function R(){}function L(){return this.cancelBubble}function I(){return this.defaultPrevented}r.YM.event=function(t){return M&&(t=M(t)),t.persist=R,t.isPropagationStopped=L,t.isDefaultPrevented=I,t.nativeEvent=t};var D,Y={configurable:!0,get:function(){return this.class}},U=r.YM.vnode;r.YM.vnode=function(t){var e=t.type,n=t.props,o=n;if("string"==typeof e){var i=-1===e.indexOf("-");for(var u in o={},n){var a=n[u];A&&"children"===u&&"noscript"===e||"value"===u&&"defaultValue"in n&&null==a||("defaultValue"===u&&"value"in n&&null==n.value?u="value":"download"===u&&!0===a?a="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+e)&&!C(n.type)?u="oninput":/^onfocus$/i.test(u)?u="onfocusin":/^onblur$/i.test(u)?u="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(u)?u=u.toLowerCase():i&&k.test(u)?u=u.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(u)&&(u=u.toLowerCase(),o[u]&&(u="oninputCapture")),o[u]=a)}"select"==e&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(n.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==e&&null!=o.defaultValue&&(o.value=(0,r.bR)(n.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),t.props=o,n.class!=n.className&&(Y.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",Y))}t.$$typeof=j,U&&U(t)};var F=r.YM.__r;r.YM.__r=function(t){F&&F(t),D=t.__c};var H={ReactCurrentDispatcher:{current:{readContext:function(t){return D.__n[t.__c].props.value}}}},z="17.0.2";function $(t){return r.az.bind(null,t)}function V(t){return!!t&&t.$$typeof===j}function W(t){return V(t)?r.Tm.apply(null,arguments):t}function q(t){return!!t.__k&&((0,r.sY)(null,t),!0)}function B(t){return t&&(t.base||1===t.nodeType&&t)||null}var G=function(t,e){return t(e)},X=function(t,e){return t(e)},J=r.HY;function K(t){t()}function Z(t){return t}function Q(){return[!1,K]}var tt=o.bt;function et(t,e){var n=e(),r=(0,o.eJ)({h:{__:n,v:e}}),i=r[0].h,u=r[1];return(0,o.bt)((function(){i.__=n,i.v=e,a(i.__,e())||u({h:i})}),[t,n,e]),(0,o.d4)((function(){return a(i.__,i.v())||u({h:i}),t((function(){a(i.__,i.v())||u({h:i})}))}),[t]),n}var nt={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:tt,useTransition:Q,useDeferredValue:Z,useSyncExternalStore:et,startTransition:K,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:h,render:N,hydrate:T,unmountComponentAtNode:q,createPortal:P,createElement:r.az,createContext:r.kr,createFactory:$,cloneElement:W,createRef:r.Vf,Fragment:r.HY,isValidElement:V,findDOMNode:B,Component:r.wA,PureComponent:c,memo:l,forwardRef:p,flushSync:X,unstable_batchedUpdates:G,StrictMode:J,Suspense:b,SuspenseList:S,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:H}},473:(t,e,n)=>{"use strict";n.d(e,{HY:()=>b,Tm:()=>$,Vf:()=>m,YM:()=>o,ZB:()=>z,az:()=>v,bR:()=>T,h:()=>v,kr:()=>V,sY:()=>H,wA:()=>O});var r,o,i,u,a,c,l,s,f={},p=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(t,e){for(var n in e)t[n]=e[n];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var o,i,u,a={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:a[u]=e[u];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===a[u]&&(a[u]=t.defaultProps[u]);return y(t,a,o,i,null)}function y(t,e,n,r,u){var a={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++i:u};return null==u&&null!=o.vnode&&o.vnode(a),a}function m(){return{current:null}}function b(t){return t.children}function g(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||d.test(e)?n:n+"px"}function w(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||g(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||g(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?x:S,i):t.removeEventListener(e,i?x:S,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function S(t){u=!0;try{return this.l[t.type+!1](o.event?o.event(t):t)}finally{u=!1}}function x(t){u=!0;try{return this.l[t.type+!0](o.event?o.event(t):t)}finally{u=!1}}function O(t,e){this.props=t,this.context=e}function E(t,e){if(null==e)return t.__?E(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&a.sort((function(t,e){return t.__v.__b-e.__v.__b})));A.__r=0}function C(t,e,n,r,o,i,u,a,c,l){var s,d,h,_,v,m,g,w=r&&r.__k||p,S=w.length;for(n.__k=[],s=0;s0?y(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)){if(_.__=n,_.__b=n.__b+1,null===(h=w[s])||h&&_.key==h.key&&_.type===h.type)w[s]=void 0;else for(d=0;d=0;e--)if((n=t.__k[e])&&(r=R(n)))return r;return null}function L(t,e,n,r,i,u,a,c,l){var s,f,p,d,_,v,y,m,g,w,S,x,E,P,j,k=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,c=e.__e=n.__e,e.__h=null,u=[c]),(s=o.__b)&&s(e);try{t:if("function"==typeof k){if(m=e.props,g=(s=k.contextType)&&r[s.__c],w=s?g?g.props.value:s.__:r,n.__c?y=(f=e.__c=n.__c).__=f.__E:("prototype"in k&&k.prototype.render?e.__c=f=new k(m,w):(e.__c=f=new O(m,w),f.constructor=k,f.render=F),g&&g.sub(f),f.props=m,f.state||(f.state={}),f.context=w,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=k.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,k.getDerivedStateFromProps(m,f.__s))),d=f.props,_=f.state,f.__v=e,p)null==k.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==k.getDerivedStateFromProps&&m!==d&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(m,w),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(m,f.__s,w)||e.__v===n.__v){for(e.__v!==n.__v&&(f.props=m,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),S=0;S2&&(a.children=arguments.length>3?r.call(arguments,2):n),y(t.type,a,o||t.key,i||t.ref,null)}function V(t,e){var n={__c:e="__cC"+s++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(k)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=p.slice,o={__e:function(t,e,n,r){for(var o,i,u;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),u=o.__d),u)return o.__E=o}catch(e){t=e}throw t}},i=0,u=!1,O.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(h({},n),this.props)),t&&h(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),k(this))},O.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),k(this))},O.prototype.render=b,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,A.__r=0,s=0},792:(t,e,n)=>{"use strict";n.d(e,{I4:()=>O,Me:()=>k,Qb:()=>P,Ye:()=>x,_Y:()=>m,aP:()=>S,bt:()=>g,cO:()=>j,d4:()=>b,eJ:()=>y,qp:()=>E,sO:()=>w});var r,o,i,u,a=n(473),c=0,l=[],s=[],f=a.YM.__b,p=a.YM.__r,d=a.YM.diffed,h=a.YM.__c,_=a.YM.unmount;function v(t,e){a.YM.__h&&a.YM.__h(o,t,c||e),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:s}),n.__[t]}function y(t){return c=1,m(L,t)}function m(t,e,n){var i=v(r++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):L(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){o.u=!0;var u=o.shouldComponentUpdate;o.shouldComponentUpdate=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!u||u.call(this,t,e,n);var o=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(o=!0)}})),!(!o&&i.__c.props===t)&&(!u||u.call(this,t,e,n))}}return i.__N||i.__}function b(t,e){var n=v(r++,3);!a.YM.__s&&R(n.__H,e)&&(n.__=t,n.i=e,o.__H.__h.push(n))}function g(t,e){var n=v(r++,4);!a.YM.__s&&R(n.__H,e)&&(n.__=t,n.i=e,o.__h.push(n))}function w(t){return c=5,x((function(){return{current:t}}),[])}function S(t,e,n){c=6,g((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function x(t,e){var n=v(r++,7);return R(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function O(t,e){return c=8,x((function(){return t}),e)}function E(t){var e=o.context[t.__c],n=v(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function P(t,e){a.YM.useDebugValue&&a.YM.useDebugValue(e?e(t):t)}function j(t){var e=v(r++,10),n=y();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]}function k(){var t=v(r++,11);if(!t.__){for(var e=o.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function A(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(T),t.__H.__h.forEach(M),t.__H.__h=[]}catch(e){t.__H.__h=[],a.YM.__e(e,t.__v)}}a.YM.__b=function(t){o=null,f&&f(t)},a.YM.__r=function(t){p&&p(t),r=0;var e=(o=t.__c).__H;e&&(i===o?(e.__h=[],o.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=s,t.__N=t.i=void 0}))):(e.__h.forEach(T),e.__h.forEach(M),e.__h=[])),i=o},a.YM.diffed=function(t){d&&d(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&u===a.YM.requestAnimationFrame||((u=a.YM.requestAnimationFrame)||N)(A)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==s&&(t.__=t.__V),t.i=void 0,t.__V=s}))),i=o=null},a.YM.__c=function(t,e){e.some((function(t){try{t.__h.forEach(T),t.__h=t.__h.filter((function(t){return!t.__||M(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.YM.__e(n,t.__v)}})),h&&h(t,e)},a.YM.unmount=function(t){_&&_(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{T(t)}catch(t){e=t}})),n.__H=void 0,e&&a.YM.__e(e,n.__v))};var C="function"==typeof requestAnimationFrame;function N(t){var e,n=function(){clearTimeout(r),C&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);C&&(e=requestAnimationFrame(n))}function T(t){var e=o,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),o=e}function M(t){var e=o;t.__c=t.__(),o=e}function R(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function L(t,e){return"function"==typeof e?e(t):e}},702:(t,e)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},185:(t,e,n)=>{"use strict";n(702)},47:(t,e,n)=>{"use strict";var r=n(354),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=r.useState,u=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=i({inst:{value:n,getSnapshot:e}}),o=r[0].inst,s=r[1];return a((function(){o.value=n,o.getSnapshot=e,l(o)&&s({inst:o})}),[t,n,e]),u((function(){return l(o)&&s({inst:o}),t((function(){l(o)&&s({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},693:(t,e,n)=>{"use strict";var r=n(354),o=n(644),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=o.useSyncExternalStore,a=r.useRef,c=r.useEffect,l=r.useMemo,s=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var f=a(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function t(t){if(!c){if(c=!0,u=t,t=r(t),void 0!==o&&p.hasValue){var e=p.value;if(o(e,t))return a=e}return a=t}if(e=a,i(u,t))return e;var n=r(t);return void 0!==o&&o(e,n)?e:(u=t,a=n)}var u,a,c=!1,l=void 0===n?null:n;return[function(){return t(e())},null===l?void 0:function(){return t(l())}]}),[e,n,r,o]);var d=u(t,f[0],f[1]);return c((function(){p.hasValue=!0,p.value=d}),[d]),s(d),d}},644:(t,e,n)=>{"use strict";t.exports=n(47)},626:(t,e,n)=>{"use strict";t.exports=n(693)},337:(t,e,n)=>{var r=n(501).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof _?e:_,i=Object.create(o.prototype),a=new k(r||[]);return u(i,"_invoke",{value:O(t,n,a)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function _(){}function v(){}function y(){}var m={};f(m,c,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(A([])));g&&g!==n&&i.call(g,c)&&(m=g);var w=y.prototype=_.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,u,a,c){var l=d(t[o],t,u);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;u(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}})}function O(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=E(u,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],u=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(a&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},501:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},824:(t,e,n)=>{var r=n(337)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.p="/js/widget/",(()=>{"use strict";var t=n(473),e=n(644),r=n(626),o=n(354);let i=function(t){t()};const u=()=>i,a=(0,o.createContext)(null);function c(){return(0,o.useContext)(a)}let l=()=>{throw new Error("uSES not initialized!")};const s=(t,e)=>t===e;function f(t=a){const e=t===a?c:()=>(0,o.useContext)(t);return function(t,n=s){const{store:r,subscription:i,getServerState:u}=e(),a=l(i.addNestedSub,r.getState,u||r.getState,t,n);return(0,o.useDebugValue)(a),a}}const p=f();n(839),n(185);const d={notify(){},get:()=>[]};const h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;let _=null;const v=function({store:t,context:e,children:n,serverState:r}){const i=(0,o.useMemo)((()=>{const e=function(t,e){let n,r=d;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=e?e.addNestedSub(o):t.subscribe(o),r=function(){const t=u();let e=null,n=null;return{clear(){e=null,n=null},notify(){t((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(t){let r=!0,o=n={callback:t,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}const a={addNestedSub:function(t){return i(),r.subscribe(t)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=d)},getListeners:()=>r};return a}(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0}}),[t,r]),c=(0,o.useMemo)((()=>t.getState()),[t]);h((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,c]);const l=e||a;return o.default.createElement(l.Provider,{value:i},n)};function y(t=a){const e=t===a?c:()=>(0,o.useContext)(t);return function(){const{store:t}=e();return t}}const m=y();function b(t=a){const e=t===a?m:y(t);return function(){return e().dispatch}}const g=b();var w;function S(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function x(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){S(i,r,o,u,a,"next",t)}function a(t){S(i,r,o,u,a,"throw",t)}u(void 0)}))}}function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function E(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===O(e)?e:String(e)}function P(t,e,n){return(e=E(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{l=t})(r.useSyncExternalStoreWithSelector),(t=>{_=t})(e.useSyncExternalStore),w=o.unstable_batchedUpdates,i=w;var A=n(824),C=n.n(A),N=n(792),T=function(t,e){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},T(t,e)};function M(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function R(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function I(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function D(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o1||a(t,e)}))})}function a(t,e){try{!function(t){t.value instanceof Y?Promise.resolve(t.value.v).then(c,l):s(i[0][2],t)}(o[t](e))}catch(t){s(i[0][3],t)}}function c(t){a("next",t)}function l(t){a("throw",t)}function s(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}Object.create,Object.create;var F=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function H(t){return"function"==typeof t}function z(t){return H(null==t?void 0:t.then)}var $,V,W=($=function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}},(V=$((function(t){Error.call(t),t.stack=(new Error).stack}))).prototype=Object.create(Error.prototype),V.prototype.constructor=V,V);function q(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var B=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var u=L(i),a=u.next();!a.done;a=u.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else i.remove(this);var c=this.initialTeardown;if(H(c))try{c()}catch(t){o=t instanceof W?t.errors:[t]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var s=L(l),f=s.next();!f.done;f=s.next()){var p=f.value;try{X(p)}catch(t){o=null!=o?o:[],t instanceof W?o=D(D([],I(o)),I(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}if(o)throw new W(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)X(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&q(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&q(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}();function G(t){return t instanceof B||t&&"closed"in t&&H(t.remove)&&H(t.add)&&H(t.unsubscribe)}function X(t){H(t)?t():t.unsubscribe()}B.EMPTY;var J=null,K=null,Z=void 0,Q=!1,tt=!1,et={setTimeout:function(t,e){for(var n=[],r=2;r"object"==typeof t&&null!==t||"function"==typeof t,Ut=new Map([["proxy",{canHandle:t=>Yt(t)&&t[Mt],serialize(t){const{port1:e,port2:n}=new MessageChannel;return Ft(t,e),[n,[n]]},deserialize:t=>(t.start(),zt(t))}],["throw",{canHandle:t=>Yt(t)&&Dt in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function Ft(t,e=globalThis,n=["*"]){e.addEventListener("message",(function r(o){if(!o||!o.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`);const{id:i,type:u,path:a}=Object.assign({path:[]},o.data),c=(o.data.argumentList||[]).map(Kt);let l;try{const e=a.slice(0,-1).reduce(((t,e)=>t[e]),t),n=a.reduce(((t,e)=>t[e]),t);switch(u){case"GET":l=n;break;case"SET":e[a.slice(-1)[0]]=Kt(o.data.value),l=!0;break;case"APPLY":l=n.apply(e,c);break;case"CONSTRUCT":l=function(t){return Object.assign(t,{[Mt]:!0})}(new n(...c));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;Ft(t,n),l=function(t,e){return Xt.set(t,e),t}(e,[e])}break;case"RELEASE":l=void 0;break;default:return}}catch(t){l={value:t,[Dt]:0}}Promise.resolve(l).catch((t=>({value:t,[Dt]:0}))).then((n=>{const[o,a]=Jt(n);e.postMessage(Object.assign(Object.assign({},o),{id:i}),a),"RELEASE"===u&&(e.removeEventListener("message",r),Ht(e),It in t&&"function"==typeof t[It]&&t[It]())})).catch((t=>{const[n,r]=Jt({value:new TypeError("Unserializable return value"),[Dt]:0});e.postMessage(Object.assign(Object.assign({},n),{id:i}),r)}))})),e.start&&e.start()}function Ht(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function zt(t,e){return Bt(t,[],e)}function $t(t){if(t)throw new Error("Proxy has been released and is not useable")}function Vt(t){return Zt(t,{type:"RELEASE"}).then((()=>{Ht(t)}))}const Wt=new WeakMap,qt="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const e=(Wt.get(t)||0)-1;Wt.set(t,e),0===e&&Vt(t)}));function Bt(t,e=[],n=function(){}){let r=!1;const o=new Proxy(n,{get(n,i){if($t(r),i===Lt)return()=>{!function(t){qt&&qt.unregister(t)}(o),Vt(t),r=!0};if("then"===i){if(0===e.length)return{then:()=>o};const n=Zt(t,{type:"GET",path:e.map((t=>t.toString()))}).then(Kt);return n.then.bind(n)}return Bt(t,[...e,i])},set(n,o,i){$t(r);const[u,a]=Jt(i);return Zt(t,{type:"SET",path:[...e,o].map((t=>t.toString())),value:u},a).then(Kt)},apply(n,o,i){$t(r);const u=e[e.length-1];if(u===Rt)return Zt(t,{type:"ENDPOINT"}).then(Kt);if("bind"===u)return Bt(t,e.slice(0,-1));const[a,c]=Gt(i);return Zt(t,{type:"APPLY",path:e.map((t=>t.toString())),argumentList:a},c).then(Kt)},construct(n,o){$t(r);const[i,u]=Gt(o);return Zt(t,{type:"CONSTRUCT",path:e.map((t=>t.toString())),argumentList:i},u).then(Kt)}});return function(t,e){const n=(Wt.get(e)||0)+1;Wt.set(e,n),qt&&qt.register(t,e,t)}(o,t),o}function Gt(t){const e=t.map(Jt);return[e.map((t=>t[0])),(n=e.map((t=>t[1])),Array.prototype.concat.apply([],n))];var n}const Xt=new WeakMap;function Jt(t){for(const[e,n]of Ut)if(n.canHandle(t)){const[r,o]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},o]}return[{type:"RAW",value:t},Xt.get(t)||[]]}function Kt(t){switch(t.type){case"HANDLER":return Ut.get(t.name).deserialize(t.value);case"RAW":return t.value}}function Zt(t,e,n){return new Promise((r=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.addEventListener("message",(function e(n){n.data&&n.data.id&&n.data.id===o&&(t.removeEventListener("message",e),r(n.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:o},e),n)}))}var Qt="hatena:star:requestreload";function te(t){return"https://s.hatena.ne.jp"+t}function ee(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:le(t)?2:se(t)?3:0}function ue(t,e){return 2===ie(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ae(t,e,n){var r=ie(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function ce(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function le(t){return De&&t instanceof Map}function se(t){return Ye&&t instanceof Set}function fe(t){return t.o||t.t}function pe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=We(t);delete e[ze];for(var n=Ve(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=he),Object.freeze(t),e&&oe(t,(function(t,e){return de(e,!0)}),!0)),t}function he(){ee(2)}function _e(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ve(t){var e=qe[t];return e||ee(18,t),e}function ye(){return Le}function me(t,e){e&&(ve("Patches"),t.u=[],t.s=[],t.v=e)}function be(t){ge(t),t.p.forEach(Se),t.p=null}function ge(t){t===Le&&(Le=t.l)}function we(t){return Le={p:[],l:Le,h:t,m:!0,_:0}}function Se(t){var e=t[ze];0===e.i||1===e.i?e.j():e.O=!0}function xe(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||ve("ES5").S(e,t,r),r?(n[ze].P&&(be(e),ee(4)),re(t)&&(t=Oe(e,t),e.l||Pe(e,t)),e.u&&ve("Patches").M(n[ze].t,t,e.u,e.s)):t=Oe(e,n,[]),be(e),e.u&&e.v(e.u,e.s),t!==Fe?t:void 0}function Oe(t,e,n){if(_e(e))return e;var r=e[ze];if(!r)return oe(e,(function(o,i){return Ee(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return Pe(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=pe(r.k):r.o,i=o,u=!1;3===r.i&&(i=new Set(o),o.clear(),u=!0),oe(i,(function(e,i){return Ee(t,r,o,e,i,n,u)})),Pe(t,o,!1),n&&t.u&&ve("Patches").N(r,n,t.u,t.s)}return r.o}function Ee(t,e,n,r,o,i,u){if(ne(o)){var a=Oe(t,o,i&&e&&3!==e.i&&!ue(e.R,r)?i.concat(r):void 0);if(ae(n,r,a),!ne(a))return;t.m=!1}else u&&n.add(o);if(re(o)&&!_e(o)){if(!t.h.D&&t._<1)return;Oe(t,o),e&&e.A.l||Pe(t,o)}}function Pe(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&de(e,n)}function je(t,e){var n=t[ze];return(n?fe(n):t)[e]}function ke(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Ae(t){t.P||(t.P=!0,t.l&&Ae(t.l))}function Ce(t){t.o||(t.o=pe(t.t))}function Ne(t,e,n){var r=le(e)?ve("MapSet").F(e,n):se(e)?ve("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:ye(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=r,i=Be;n&&(o=[r],i=Ge);var u=Proxy.revocable(o,i),a=u.revoke,c=u.proxy;return r.k=c,r.j=a,c}(e,n):ve("ES5").J(e,n);return(n?n.A:ye()).p.push(r),r}function Te(t){return ne(t)||ee(22,t),function t(e){if(!re(e))return e;var n,r=e[ze],o=ie(e);if(r){if(!r.P&&(r.i<4||!ve("ES5").K(r)))return r.t;r.I=!0,n=Me(e,o),r.I=!1}else n=Me(e,o);return oe(n,(function(e,o){r&&function(t,e){return 2===ie(t)?t.get(e):t[e]}(r.t,e)===o||ae(n,e,t(o))})),3===o?new Set(n):n}(t)}function Me(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pe(t)}var Re,Le,Ie="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),De="undefined"!=typeof Map,Ye="undefined"!=typeof Set,Ue="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Fe=Ie?Symbol.for("immer-nothing"):((Re={})["immer-nothing"]=!0,Re),He=Ie?Symbol.for("immer-draftable"):"__$immer_draftable",ze=Ie?Symbol.for("immer-state"):"__$immer_state",$e=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Ve="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,We=Object.getOwnPropertyDescriptors||function(t){var e={};return Ve(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},qe={},Be={get:function(t,e){if(e===ze)return t;var n=fe(t);if(!ue(n,e))return function(t,e,n){var r,o=ke(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!re(r)?r:r===je(t.t,e)?(Ce(t),t.o[e]=Ne(t.A.h,r,t)):r},has:function(t,e){return e in fe(t)},ownKeys:function(t){return Reflect.ownKeys(fe(t))},set:function(t,e,n){var r=ke(fe(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=je(fe(t),e),i=null==o?void 0:o[ze];if(i&&i.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(ce(n,o)&&(void 0!==n||ue(t.t,e)))return!0;Ce(t),Ae(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==je(t.t,e)||e in t.t?(t.R[e]=!1,Ce(t),Ae(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=fe(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){ee(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ee(12)}},Ge={};oe(Be,(function(t,e){Ge[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ge.deleteProperty=function(t,e){return Ge.set.call(this,t,e,void 0)},Ge.set=function(t,e,n){return Be.set.call(this,t[0],e,n,t[0])};var Xe=function(){function t(t){var e=this;this.g=Ue,this.D=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var o=n;n=t;var i=e;return function(t){var e=this;void 0===t&&(t=o);for(var r=arguments.length,u=Array(r>1?r-1:0),a=1;a1?r-1:0),i=1;i=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var o=ve("Patches").$;return ne(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Je=new Xe,Ke=Je.produce;Je.produceWithPatches.bind(Je),Je.setAutoFreeze.bind(Je),Je.setUseProxies.bind(Je),Je.applyPatches.bind(Je),Je.createDraft.bind(Je),Je.finishDraft.bind(Je);const Ze=Ke;function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tn(t){for(var e=1;e0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0;e--){var o=t[e][ze];if(!o.P)switch(o.i){case 5:r(o)&&Ae(o);break;case 4:n(o)&&Ae(o)}}}function n(t){for(var e=t.t,n=t.k,r=Ve(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==ze){var u=e[i];if(void 0===u&&!ue(e,i))return!0;var a=n[i],c=a&&a[ze];if(c?c.t!==u:!ce(a,u))return!0}}var l=!!e[ze];return r.length!==Ve(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r30?r.slice(0,30).join("")+"...":n)),s.searchParams.set("variant",u),s.searchParams.set("profileUrlTemplate",a),void 0!==l&&s.searchParams.set("token",l);var f=(0,N.sO)(null),p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",n=k((0,N.eJ)(null),2),r=n[0],o=n[1];return(0,N.d4)((function(){var n=t.current;if(n){var r=function(){var t,r=new MessageChannel,i=r.port1,u=r.port2;null===(t=n.contentWindow)||void 0===t||t.postMessage({comlinkInit:!0,port:u},e,[u]),o(i)};return n.addEventListener("load",r),function(){n.removeEventListener("load",r)}}}),[t,e]),r}(f),d=k(sr(p),2),h=d[0],_=d[1],v=s.toString();(0,N.d4)((function(){f.current&&(f.current.src=v)}),[f,v]);var y=_.havingFocus,m=k((0,N.eJ)(!1),2),b=m[0],g=m[1];(0,N.d4)((function(){var t=function(){g(!1)};return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[]);var w=b||y;(0,N.d4)((function(){null==h||h.setMode(w?"expanded":"button")}),[h,w]),(0,N.d4)((function(){var t=function(){null==h||h.reloadStars()};return document.addEventListener(Qt,t),function(){document.removeEventListener(Qt,t)}}),[h]);var S=$n((function(t){var e;return null!==(e=t.stars[o])&&void 0!==e?e:[]})),O="compact"===u?{width:32,height:16}:{width:32,height:24};return(0,t.h)(t.HY,null,(0,t.h)("span",{style:{display:"inline-flex",width:"".concat(O.width,"px"),height:"".concat(O.height,"px"),verticalAlign:"middle",position:"relative",margin:"compact"===u?"0 -4px":"0 0 0 -4px"},onMouseEnter:function(){g(!0)},onMouseLeave:function(){g(!1)},onClick:function(t){b||(t.preventDefault(),g(!0))},onTouchStart:function(t){b||t.preventDefault(),g(!0)},part:"star-button-container"},(0,t.h)("iframe",{ref:f,scrolling:"no",style:{width:"".concat(O.width+(w?40:0),"px"),height:"".concat(O.height+(w?44:0),"px"),position:"absolute",bottom:"0",left:"compact"===u?"-4px":"0",border:"none",pointerEvents:w?"unset":"none"}})),S.map((function(e){return"count"===e.type?(0,t.h)(rr,{count:e.count,color:e.color,onClick:x(C().mark((function t(){return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==h?void 0:h.expandStars();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),variant:u}):"placeholder"===e.type?(0,t.h)(ur,{variant:u}):(0,t.h)(tr,{key:e.id,star:e,variant:u,profileUrlTemplate:a,tooltip:!0,highlighter:c})})))};function pr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dr(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function vr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}(document.querySelectorAll("[data-hatena-star-container]"));try{var o=function(){var r=e.value;setTimeout((function(){!function(e,n){var r,o,i;if(null===e.querySelector("[data-hatena-star]")){var u=e.dataset.hatenaStarUrl,a=e.dataset.hatenaStarTitle;if(void 0!==u){var c,l,s=null!==(r=e.dataset.hatenaStarVariant)&&void 0!==r?r:br;l=s,gr.includes(l)?c=s:(console.warn("[star] variant '".concat(s,"' is not valid")),c=br);var f=null!==(o=e.dataset.hatenaStarProfileUrlTemplate)&&void 0!==o?o:"https://profile.hatena.ne.jp/{username}/",p=document.createElement("span");"attachShadow"in p&&p.attachShadow({mode:"open"}),p.dataset.hatenaStar="",e.insertAdjacentElement("beforeend",p),(0,t.sY)((0,t.h)(v,{store:zn},(0,t.h)(fr,{url:u,title:a,variant:c,profileUrlTemplate:f,highlighter:n})),null!==(i=p.shadowRoot)&&void 0!==i?i:p)}else console.error("[star] container element must have 'data-hatena-star-url' attribute",e)}}(r,n)}))};for(r.s();!(e=r.n()).done;)o()}catch(t){r.e(t)}finally{r.f()}}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",Sr):Sr()})()})();