(window.ansFrontendRelayWebpackJsonpFunction=window.ansFrontendRelayWebpackJsonpFunction||[]).push([["component-Modals-NUX~component-Modals-unified-checklist"],{"8ezB":function(e,n,t){"use strict";t.d(n,"a",(function(){return p}));var i=t("a1D8"),l=t("tD6I"),o=t("Jz1U"),a=function(e,n,t,i){var l=0===n&&t||1===n&&!t?e.inline:e.block;return"center"===l?1:"nearest"===l?0:"start"===l?0===n?i?5:4:2:"end"===l?0===n?i?4:5:3:t?0===n?0:2:0===n?4:0},r=function(e,n,t,i,l,o,a,r){return o<e&&a>n||o>e&&a<n?0:o<=e&&r<=t||a>=n&&r>=t?o-e-i:a>n&&r<t||o<e&&r>t?a-n+l:0},s=function(e){return"visible"!==e&&"clip"!==e},c=function(e){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e);return s(n.overflowY)||s(n.overflowX)}return!1},u=function(e){var n=e.parentNode;return n&&(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.host:n)},d=function(e,n){if(e.ownerDocument.documentElement.contains(e)){for(var t=document.scrollingElement||document.documentElement,l=[],s=u(e);null!==s;s=u(s)){if(s===t){l.push(s);break}s===document.body&&c(s)&&!c(document.documentElement)||c(s)&&l.push(s)}for(var d=window.visualViewport?window.visualViewport.width:innerWidth,p=window.visualViewport?window.visualViewport.height:innerHeight,g=window.scrollX||window.pageXOffset,m=window.scrollY||window.pageYOffset,f=e.getBoundingClientRect(),w=f.height,h=f.width,k=f.top,y=f.right,b=f.bottom,S=f.left,F=getComputedStyle(e),v=F.writingMode||F.getPropertyValue("-webkit-writing-mode")||F.getPropertyValue("-ms-writing-mode")||"horizontal-tb",T=["horizontal-tb","lr","lr-tb","rl"].some((function(e){return e===v})),I=["vertical-rl","tb-rl"].some((function(e){return e===v})),_=a(n,0,T,I),L=a(n,1,T,I),C=function(){switch(L){case 2:case 0:return k;case 3:return b;default:return k+w/2}}(),O=function(){switch(_){case 1:return S+h/2;case 5:return y;default:return S}}(),K=[],E=function(){var e=j[M],l=e.getBoundingClientRect(),a=l.height,s=l.width,c=l.top,u=l.right,f=l.bottom,k=l.left,y=getComputedStyle(e),b=parseInt(y.borderLeftWidth,10),S=parseInt(y.borderTopWidth,10),F=parseInt(y.borderRightWidth,10),v=parseInt(y.borderBottomWidth,10),T=0,I=0,E="offsetWidth"in e?e.offsetWidth-e.clientWidth-b-F:0,x="offsetHeight"in e?e.offsetHeight-e.clientHeight-S-v:0;if(t===e){switch(L){case 2:T=C;break;case 3:T=C-p;break;case 1:T=C-p/2;break;case 0:T=r(m,m+p,p,S,v,m+C,m+C+w,w)}switch(_){case 4:I=O;break;case 5:I=O-d;break;case 1:I=O-d/2;break;case 0:I=r(g,g+d,d,b,F,g+O,g+O+h,h)}T=Math.max(0,T+m),I=Math.max(0,I+g)}else{switch(L){case 2:T=C-c-S;break;case 3:T=C-f+v+x;break;case 1:T=C-(c+a/2)+x/2;break;case 0:T=r(c,f,a,S,v+x,C,C+w,w)}switch(_){case 4:I=O-k-b;break;case 5:I=O-u+F+E;break;case 1:I=O-(k+s/2)+E/2;break;case 0:I=r(k,u,s,b,F+E,O,O+h,h)}var V=e.scrollLeft,R=e.scrollTop;T=Math.max(0,Math.min(R+T,e.scrollHeight-a+x)),I=Math.max(0,Math.min(V+I,e.scrollWidth-s+E)),C+=R-T,O+=V-I}K.push((function(){return Object(o.a)(e,Object(i.a)({},n,{top:T,left:I}))}))},M=0,j=l;M<j.length;M++)E();K.forEach((function(e){return e()}))}},p=function(e){if(!Object(l.b)()){var n=l.f.elementScrollIntoView;Object(l.c)((function(t){return t.scrollIntoView=function(){var t=arguments[0];return 1===arguments.length&&Object(l.a)(t)?d(this,Object(i.a)({},t,e)):n.apply(this,arguments)}}))}}},Jz1U:function(e,n,t){"use strict";t.d(n,"a",(function(){return o})),t.d(n,"b",(function(){return a}));var i=t("a1D8"),l=t("tD6I"),o=function(e,n){var t,i,o=l.f.elementScroll.bind(e);if(n.left!==undefined||n.top!==undefined){var a=e.scrollLeft,r=e.scrollTop,s=Object(l.d)(null!==(t=n.left)&&void 0!==t?t:a),c=Object(l.d)(null!==(i=n.top)&&void 0!==i?i:r);if("smooth"!==n.behavior)return o(s,c);var u=function(){window.removeEventListener("wheel",p),window.removeEventListener("touchmove",p)},d={timeStamp:Object(l.e)(),duration:n.duration,startX:a,startY:r,targetX:s,targetY:c,rafId:0,method:o,timingFunc:n.timingFunc,callback:u},p=function(){cancelAnimationFrame(d.rafId),u()};window.addEventListener("wheel",p,{passive:!0,once:!0}),window.addEventListener("touchmove",p,{passive:!0,once:!0}),Object(l.g)(d)}},a=function(e){if(!Object(l.b)()){var n=l.f.elementScroll;Object(l.c)((function(t){return t.scroll=function(){if(1===arguments.length){var t=arguments[0];if(!Object(l.a)(t))throw new TypeError("Failed to execute 'scroll' on 'Element': parameter 1 ('options') is not an object.");return o(this,Object(i.a)({},t,e))}return n.apply(this,arguments)}}))}}},Xqoj:function(e,n,t){"use strict";var i={};t.r(i),t.d(i,"default",(function(){return S}));var l={};t.r(l),t.d(l,"default",(function(){return v}));var o={};t.r(o),t.d(o,"default",(function(){return M}));var a={};t.r(a),t.d(a,"default",(function(){return D}));var r={};t.r(r),t.d(r,"default",(function(){return z}));var s=t("iJoy"),c=t.n(s),u=t("8ZkK"),d=t.n(u),p=t("tQZz"),g=t.n(p),m=t("7eVb"),f=t.n(m),w=t("n3k3"),h=t.n(w),k=t("10u2"),y=t.n(k),b=function(){var e=[{kind:"LocalArgument",name:"first",type:"Int",defaultValue:null},{kind:"LocalArgument",name:"cursor",type:"String",defaultValue:null},{kind:"LocalArgument",name:"shownTids",type:"[BigInt!]!",defaultValue:null},{kind:"LocalArgument",name:"suggestionSeedTids",type:"[BigInt!]!",defaultValue:null}],n=[{kind:"Literal",name:"stepType",value:"follow_interests"}],t={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},i={kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},l={kind:"ScalarField",alias:null,name:"tid",args:null,storageKey:null},o={kind:"ScalarField",alias:null,name:"cursor",args:null,storageKey:null},a={kind:"LinkedField",alias:null,name:"pageInfo",storageKey:null,args:null,concreteType:"PageInfo",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"endCursor",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"hasNextPage",args:null,storageKey:null}]},r=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"shownTids",variableName:"shownTids"},{kind:"Variable",name:"suggestionSeedTids",variableName:"suggestionSeedTids"}];return{kind:"Request",fragment:{kind:"Fragment",name:"FollowInterestsStepListQuery",type:"QueryRoot",metadata:null,argumentDefinitions:e,selections:[{kind:"LinkedField",alias:null,name:"nuxStep",storageKey:'nuxStep(stepType:"follow_interests")',args:n,concreteType:null,plural:!1,selections:[t,i,{kind:"InlineFragment",type:"FollowInterestsStep",selections:[{kind:"LinkedField",alias:"topicSuggestionsConnection",name:"__FollowInterestsStepList_topicSuggestionsConnection_connection",storageKey:null,args:null,concreteType:"TopicSuggestionsConnection",plural:!1,selections:[t,i,{kind:"LinkedField",alias:null,name:"edges",storageKey:null,args:null,concreteType:"TopicEdge",plural:!0,selections:[t,i,{kind:"LinkedField",alias:null,name:"node",storageKey:null,args:null,concreteType:"Topic",plural:!1,selections:[t,i,l,{kind:"FragmentSpread",name:"FollowInterestsListItem_topic",args:null}]},o]},a]}]}]}]},operation:{kind:"Operation",name:"FollowInterestsStepListQuery",argumentDefinitions:e,selections:[{kind:"LinkedField",alias:null,name:"nuxStep",storageKey:'nuxStep(stepType:"follow_interests")',args:n,concreteType:null,plural:!1,selections:[t,i,{kind:"InlineFragment",type:"FollowInterestsStep",selections:[{kind:"LinkedField",alias:null,name:"topicSuggestionsConnection",storageKey:null,args:r,concreteType:"TopicSuggestionsConnection",plural:!1,selections:[t,i,{kind:"LinkedField",alias:null,name:"edges",storageKey:null,args:null,concreteType:"TopicEdge",plural:!0,selections:[t,i,{kind:"LinkedField",alias:null,name:"node",storageKey:null,args:null,concreteType:"Topic",plural:!1,selections:[t,i,l,{kind:"ScalarField",alias:null,name:"isFollowing",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"name",args:null,storageKey:null},{kind:"Condition",passingValue:!0,isCustom:!0,customValue:{platforms:["DESKTOP"]},condition:"onPlatform",selections:[{kind:"ScalarField",alias:null,name:"photoUrl",args:[{kind:"Literal",name:"size",value:200}],storageKey:"photoUrl(size:200)"}]}]},o]},a]},{kind:"LinkedHandle",alias:null,name:"topicSuggestionsConnection",args:r,handle:"connection",key:"FollowInterestsStepList_topicSuggestionsConnection",filters:[]}]}]}]},params:{operationKind:"query",name:"FollowInterestsStepListQuery",id:"6b32e96ccc2f362c6a5d081cf00a68646a2c6c34a47e7f9e2f9897e412428ab1",text:null,metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:["nuxStep","topicSuggestionsConnection"]}]}}}}();b.hash="354cced29756adf1af3fba7d4e049e06";var S=b,F=function(){var e={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},n={kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null};return{kind:"Fragment",name:"FollowInterestsStepList_followInterestsStep",type:"FollowInterestsStep",metadata:{connection:[{count:null,cursor:null,direction:"forward",path:["topicSuggestionsConnection"]}]},argumentDefinitions:[],selections:[e,n,{kind:"LinkedField",alias:"topicSuggestionsConnection",name:"__FollowInterestsStepList_topicSuggestionsConnection_connection",storageKey:null,args:null,concreteType:"TopicSuggestionsConnection",plural:!1,selections:[e,n,{kind:"LinkedField",alias:null,name:"pageInfo",storageKey:null,args:null,concreteType:"PageInfo",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"endCursor",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"hasNextPage",args:null,storageKey:null}]},{kind:"LinkedField",alias:null,name:"edges",storageKey:null,args:null,concreteType:"TopicEdge",plural:!0,selections:[e,n,{kind:"LinkedField",alias:null,name:"node",storageKey:null,args:null,concreteType:"Topic",plural:!1,selections:[e,n,{kind:"ScalarField",alias:null,name:"tid",args:null,storageKey:null},{kind:"FragmentSpread",name:"FollowInterestsListItem_topic",args:null}]},{kind:"ScalarField",alias:null,name:"cursor",args:null,storageKey:null}]}]}]}}();F.hash="381661c4d2dfab933481ff97d41f2074";var v=F,T=t("q1tI"),I=t("VyO/"),_=t("cBSy"),L=t("m+xM"),C=t("nwxp"),O=t("RA+f"),K=t("vOnD"),E=function(){var e=[{kind:"LocalArgument",name:"tid",type:"BigInt!",defaultValue:null}],n=[{kind:"LinkedField",alias:null,name:"topicFollowRemove",storageKey:null,args:[{kind:"Variable",name:"tid",variableName:"tid"}],concreteType:"TopicFollowRemove",plural:!1,selections:[{kind:"LinkedField",alias:null,name:"topic",storageKey:null,args:null,concreteType:"Topic",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"isFollowing",args:null,storageKey:null}]}]}];return{kind:"Request",fragment:{kind:"Fragment",name:"FollowInterestsListItem_topicFollowRemove_Mutation",type:"MutationRoot",metadata:null,argumentDefinitions:e,selections:n},operation:{kind:"Operation",name:"FollowInterestsListItem_topicFollowRemove_Mutation",argumentDefinitions:e,selections:n},params:{operationKind:"mutation",name:"FollowInterestsListItem_topicFollowRemove_Mutation",id:"cc78e3eb864882990fa34ed759c3dce5d3080001cb9f4a162e65431f1194f468",text:null,metadata:{}}}}();E.hash="c4e37b4e1954424c2071dad13d4bd313";var M=E,j=function(){var e=[{kind:"LocalArgument",name:"tid",type:"BigInt!",defaultValue:null}],n=[{kind:"LinkedField",alias:null,name:"topicFollowAdd",storageKey:null,args:[{kind:"Variable",name:"tid",variableName:"tid"},{kind:"Literal",name:"useInNux",value:!0}],concreteType:"TopicFollowAdd",plural:!1,selections:[{kind:"LinkedField",alias:null,name:"topic",storageKey:null,args:null,concreteType:"Topic",plural:!1,selections:[{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"isFollowing",args:null,storageKey:null}]}]}];return{kind:"Request",fragment:{kind:"Fragment",name:"FollowInterestsListItem_topicFollowAdd_Mutation",type:"MutationRoot",metadata:null,argumentDefinitions:e,selections:n},operation:{kind:"Operation",name:"FollowInterestsListItem_topicFollowAdd_Mutation",argumentDefinitions:e,selections:n},params:{operationKind:"mutation",name:"FollowInterestsListItem_topicFollowAdd_Mutation",id:"2f6bdedcee2abebe813641303eb27506420afe4210e989f7adbee1cc2489db07",text:null,metadata:{}}}}();j.hash="f4de94c1abac5e73983ed82ad050b401";var x,V,R,D=j,N={kind:"Fragment",name:"FollowInterestsListItem_topic",type:"Topic",metadata:null,argumentDefinitions:[],selections:[{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"isFollowing",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"tid",args:null,storageKey:null},{kind:"Condition",passingValue:!0,isCustom:!0,customValue:{platforms:["DESKTOP"]},condition:"onPlatform",selections:[{kind:"ScalarField",alias:null,name:"photoUrl",args:[{kind:"Literal",name:"size",value:200}],storageKey:"photoUrl(size:200)"}]},{kind:"FragmentSpread",name:"TopicName_topic",args:null}],hash:"77518a0bf125489e76de46d9fcba6a60"},z=N,A=t("cecZ"),P=t("MI6j"),W=t("OMLc"),H=Object(K["default"])(O.f).withConfig({displayName:"FollowInterestsListItem___StyledClickWrapper",componentId:"li8d0a-0"})(["background-image:url(",');background-position:center;background-size:cover;&:after{content:" ";display:block;padding-bottom:100%;background-color:rgba(0,0,0,0.3);transition:background-color ease 180ms;border-radius:inherit;}&:hover:after{background-color:rgba(0,0,0,0.45);}'],(function(e){return e._css})),B=Object(K["default"])(O.g).withConfig({displayName:"FollowInterestsListItem___StyledCssComponent",componentId:"li8d0a-1"})(["transition-delay:",";"],(function(e){return e._css2})),X=function(e){function n(e){var t;return d()(this,n),(t=f()(this,h()(n).call(this,e))).onClick=function(e){var n=t.props.topic.tid,i=t.state.isFollowing;e(),t.props.onClick(n,!i),t.setState({isFollowing:!i})},t.state={isFollowing:t.props.topic.isFollowing},t}return y()(n,e),g()(n,[{key:"getMutationOptions",value:function(){var e=this.props.topic,t=e.tid,i=this.state.isFollowing,l=i?n.mutations.topicFollowRemoveMutation:n.mutations.topicFollowAddMutation,o={tid:t},a={id:e.id,__typename:e.__typename,isFollowing:!i};return{mutation:l,variables:o,optimisticResponse:i?{topicFollowRemove:{topic:a}}:{topicFollowAdd:{topic:a}}}}},{key:"shouldComponentUpdate",value:function(e,n){return this.state.isFollowing!==n.isFollowing}},{key:"render",value:function(){var e=this,n=this.props,t=n.topic,i=n.itemSize,l=t.photoUrl,o=this.state.isFollowing;return T.createElement(I.a,this.getMutationOptions(),(function(n){return Object(C.b)()?T.createElement(H,{className:"puppeteer_test_follow_interests_list_item",onClick:function(){e.onClick(n)},position:"relative",flexBasis:"calc(".concat(16.6,"% - 8px)"),m:"tiny",bg:"black",boxShadow:"inset 0 -40px 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0,0,0,.1)",borderRadius:"small",userSelect:"none",_css:l},T.createElement(O.a,{bottom:"0",p:"tiny"},T.createElement(O.s,{bold:!0,color:"white",lineHeight:1.3,fontSize:"small",truncateLines:4},T.createElement(A.a,{topic:t}))),T.createElement(O.a,{borderRadius:"circle",top:"tiny",right:"tiny",p:"tiny",bg:o?"blue":"rgba(255, 255, 255, 0.75)",boxShadow:o?undefined:"inset 0 2px 4px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.1)",size:32,transitionProperty:"background-color",transitionDuration:"50ms",transitionTimingFunction:"ease-out"},T.createElement(O.c,{"in":o},(function(e){return T.createElement(B,{animation:e,fadeIn:!0,fadeOut:!0,scaleIn:!0,scaleOut:!0,_css2:"entered"===e.state?"100ms":0},T.createElement(W.b,{color:"white",name:"Checkmark"}))})))):T.createElement(O.e,{className:"puppeteer_test_follow_interests_list_item",width:"100%"},T.createElement(P.c,{onClick:function(){e.onClick(n)},mainText:T.createElement(A.a,{topic:t}),variant:"check",selected:o,size:i||"regular"}))}))}}]),n}(T.Component);X.displayName="FollowInterestsListItem",X.fragments={topic:void 0!==x?x:x=r},X.mutations={topicFollowAddMutation:void 0!==V?V:V=a,topicFollowRemoveMutation:void 0!==R?R:R=o};var q,U,Y=Object(I.b)(X),J=function(e){function n(e){var t;return d()(this,n),(t=f()(this,h()(n).call(this,e))).alreadyFetchedTids=new Set,t.checkedTids=new Set,t.itemSize=void 0,t.itemSize="regular",t}return y()(n,e),g()(n,[{key:"onTopicClicked",value:function(e,n,t,i){var l,o;n?this.alreadyFetchedTids.has(e)||(this.checkedTids.add(e),t&&i()):this.checkedTids["delete"](e),null===(l=(o=this.props).onTopicClicked)||void 0===l||l.call(o,e,n)}},{key:"getSeedTids",value:function(){var e=this;return c()(this.checkedTids).filter((function(n){return!e.alreadyFetchedTids.has(n)}))}},{key:"getVariables",value:function(){var e=this.getSeedTids();return this.alreadyFetchedTids=new Set([].concat(c()(this.alreadyFetchedTids),c()(e))),{shownTids:this.props.followInterestsStep.topicSuggestionsConnection.edges.map((function(e){return e.node.tid})),suggestionSeedTids:e}}},{key:"mergeResult",value:function(e,n){return Object.assign({},e,{nuxStep:Object.assign({},e.nuxStep,{topicSuggestionsConnection:Object.assign({},e.nuxStep.topicSuggestionsConnection,{edges:[].concat(c()(e.nuxStep.topicSuggestionsConnection.edges),c()(n.nuxStep.topicSuggestionsConnection.edges))})})})}},{key:"render",value:function(){var e,n,t=this,i=this.props,l=i.followInterestsStep,o=i.relay;if(0===(null!==(e=null===(n=l.topicSuggestionsConnection.edges)||void 0===n?void 0:n.length)&&void 0!==e?e:0))return null;var a=function(e){o?o.refetchConnection(30,null,{seedTids:t.getSeedTids()}):e()};return T.createElement(L.c,{relayObject:o,autoPaged:{enabled:!1},pagingIndicator:undefined,prefetchingEnabled:!1,connection:l.topicSuggestionsConnection,animated:!Object(C.b)(),listWrapper:function(e){return Object(C.b)()?T.createElement(O.j,{flexWrap:"wrap",m:"n_tiny"},e):T.createElement(_.a,null,e)}},(function(e){var n=e.index,i=e.readyToLoadMore,l=e.loadMore,o=e.node;return 0===n&&i&&t.getSeedTids().length>0&&a(l),T.createElement(Y,{key:o.tid,topic:o,itemSize:Object(C.b)()?undefined:t.itemSize,onClick:function(e,n){t.onTopicClicked(e,n,i,(function(){return a(l)}))}})}))}}]),n}(T.Component);J.displayName="FollowInterestsStepList",J.fragments={followInterestsStep:void 0!==q?q:q=l},J.queries={loadMore:void 0!==U?U:U=i},J.connectionConfig={direction:"forward",getConnectionFromProps:function(e){return e.followInterestsStep&&e.followInterestsStep.topicSuggestionsConnection},getVariables:function(e,n,t){return{count:n.count,cursor:String(e.followInterestsStep.topicSuggestionsConnection.edges.length-1),shownTids:e.followInterestsStep.topicSuggestionsConnection.edges.map((function(e){return e.node.tid})),suggestionSeedTids:t.seedTids}},query:J.queries.loadMore};n.a=Object(I.d)(J)},a1D8:function(e,n,t){"use strict";function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},l=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),l.forEach((function(n){i(e,n,t[n])}))}return e}t.d(n,"a",(function(){return l}))},tD6I:function(e,n,t){"use strict";t.d(n,"b",(function(){return l})),t.d(n,"f",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"e",(function(){return r})),t.d(n,"g",(function(){return s})),t.d(n,"d",(function(){return c})),t.d(n,"a",(function(){return u}));var i=function(e){return.5*(1-Math.cos(Math.PI*e))},l=function(){return"scrollBehavior"in document.documentElement.style},o={_elementScroll:undefined,get elementScroll(){return this._elementScroll||(this._elementScroll=HTMLElement.prototype.scroll||HTMLElement.prototype.scrollTo||function(e,n){this.scrollLeft=e,this.scrollTop=n})},_elementScrollIntoView:undefined,get elementScrollIntoView(){return this._elementScrollIntoView||(this._elementScrollIntoView=HTMLElement.prototype.scrollIntoView)},_windowScroll:undefined,get windowScroll(){return this._windowScroll||(this._windowScroll=window.scroll||window.scrollTo)}},a=function(e){[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach((function(n){return e(n)}))},r=function(){var e,n,t;return null!==(t=null===(n=null===(e=window.performance)||void 0===e?void 0:e.now)||void 0===n?void 0:n.call(e))&&void 0!==t?t:Date.now()},s=function d(e){var n=(r()-e.timeStamp)/(e.duration||500);if(n>1)return e.method(e.targetX,e.targetY),void e.callback();var t=(e.timingFunc||i)(n),l=e.startX+(e.targetX-e.startX)*t,o=e.startY+(e.targetY-e.startY)*t;e.method(l,o),e.rafId=requestAnimationFrame((function(){d(e)}))},c=function(e){return isFinite(e)?Number(e):0},u=function(e){var n=typeof e;return null!==e&&("object"===n||"function"===n)}}}]);