!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,i){r.apply(this,[e,t,i].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:".app",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"main",l=new c.default,a=null;"main"!=r&&0!=r.length||(a=l.parse(m.default)),"fitness"==r&&(a=l.parse(g.default)),n.questions.forEach(function(e){a.walk(function(t){e.q===t.model.question&&(t.model.formQuestion=e)})}),u.default.render(o.default.createElement(d.default,i({},n,{email:n.email,sku:n.sku,model:a,quizname:r})),e.querySelector(t))}},function(e,t,n){"use strict";e.exports=n(23)},function(e,t,n){e.exports=n(18)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),l=r(i),o=n(2),a=r(o),u=function(e){var t=e.text,n=e.title,r=e.subtext;return l.default.createElement("header",{className:"modal-view__header"},n&&l.default.createElement("p",{className:"intent-widget__subtitle"},n),l.default.createElement("h1",{className:"headline-section-hero"},t),r&&l.default.createElement("h3",{className:"intent-widget__subtext"},r))};u.propTypes={text:a.default.string.isRequired,title:a.default.string,subtext:a.default.string},t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),l=r(i),o=n(2),a=(r(o),n(3)),u=(r(a),function(e){var t=e.image,n=e.name,r=e.url,i=e.description,o=e.button,a=void 0===o?"Buy Now":o,u={backgroundImage:"url("+t+")"};return l.default.createElement("div",{className:"row intent-widget__product"},l.default.createElement("div",{className:"col-8"},l.default.createElement("div",{className:"intent-widget__product-img",style:u})),l.default.createElement("div",{className:"col-4"},l.default.createElement("div",{className:"product-quickview__panel--top"},l.default.createElement("h1",{className:"product-quickview__product-title"},n),l.default.createElement("p",null,i),String(r).includes("http")&&l.default.createElement("a",{href:r,className:"button button-cta",tabIndex:"0"},a),!String(r).includes("http")&&l.default.createElement("a",{href:"https://"+window.location.host.replace(/www/,"store")+r,className:"button button-cta",tabIndex:"0"},a))))});t.default=u},function(e,t,n){var r,i;r=n(17),i=n(16),e.exports=function(){"use strict";function e(e){return function(){return e}}function t(e){e=e||{},this.config=e,this.config.childrenPropertyName=e.childrenPropertyName||"children",this.config.modelComparatorFn=e.modelComparatorFn}function n(e,t){return t.parent=e,e.children.push(t),t}function l(e,t){this.config=e,this.model=t,this.children=[]}function o(e){return"function"==typeof e.config.modelComparatorFn}function a(e,t,n){var r;if(!(t instanceof l))throw new TypeError("Child must be of type Node.");if(t.parent=e,e.model[e.config.childrenPropertyName]instanceof Array||(e.model[e.config.childrenPropertyName]=[]),o(e))r=i(e.config.modelComparatorFn,e.model[e.config.childrenPropertyName],t.model),e.model[e.config.childrenPropertyName].splice(r,0,t.model),e.children.splice(r,0,t);else if(void 0===n)e.model[e.config.childrenPropertyName].push(t.model),e.children.push(t);else{if(n<0||n>e.children.length)throw new Error("Invalid index.");e.model[e.config.childrenPropertyName].splice(n,0,t.model),e.children.splice(n,0,t)}return t}function u(){var e={};if(1===arguments.length?"function"==typeof arguments[0]?e.fn=arguments[0]:e.options=arguments[0]:2===arguments.length?"function"==typeof arguments[0]?(e.fn=arguments[0],e.ctx=arguments[1]):(e.options=arguments[0],e.fn=arguments[1]):(e.options=arguments[0],e.fn=arguments[1],e.ctx=arguments[2]),e.options=e.options||{},e.options.strategy||(e.options.strategy="pre"),!s[e.options.strategy])throw new Error("Unknown tree walk strategy. Valid strategies are 'pre' [default], 'post' and 'breadth'.");return e}var s;return s={},t.prototype.parse=function(e){var t,i,o;if(!(e instanceof Object))throw new TypeError("Model must be of type object.");if(o=new l(this.config,e),e[this.config.childrenPropertyName]instanceof Array)for(this.config.modelComparatorFn&&(e[this.config.childrenPropertyName]=r(this.config.modelComparatorFn,e[this.config.childrenPropertyName])),t=0,i=e[this.config.childrenPropertyName].length;t0},l.prototype.addChild=function(e){return a(this,e)},l.prototype.addChildAtIndex=function(e,t){if(o(this))throw new Error("Cannot add child at index when using a comparator function.");return a(this,e,t)},l.prototype.setIndex=function(e){if(o(this))throw new Error("Cannot set node index when using a comparator function.");if(this.isRoot()){if(0===e)return this;throw new Error("Invalid index.")}if(e<0||e>=this.parent.children.length)throw new Error("Invalid index.");var t=this.parent.children.indexOf(this);return this.parent.children.splice(e,0,this.parent.children.splice(t,1)[0]),this.parent.model[this.parent.config.childrenPropertyName].splice(e,0,this.parent.model[this.parent.config.childrenPropertyName].splice(t,1)[0]),this},l.prototype.getPath=function(){var e=[];return function t(n){e.unshift(n),n.isRoot()||t(n.parent)}(this),e},l.prototype.getIndex=function(){return this.isRoot()?0:this.parent.children.indexOf(this)},l.prototype.walk=function(){var e;e=u.apply(this,arguments),s[e.options.strategy].call(this,e.fn,e.ctx)},s.pre=function e(t,n){var r,i,l;for(l=t.call(n,this),r=0,i=this.children.length;r0&&void 0!==arguments[0]?arguments[0]:"right",t=n.state.currentNode,r=n.getQuestionFromNode(t);r&&(r.model.products?n.setState({products:r.model.products,result:n.props.model.model.results[r.model.products[0]]},function(){n.submit(),n.setState({route:x.results})}):n.setState({nextNode:r,transition:e,nextDir:e,questionNum:n.state.questionNum+1,nextNumber:n.state.questionNum+1}))},n.emailChange=function(e){n.setState({email:e.target.value})},n.questionAnswerClicked=function(e){var t=e.index;n.selectAnswerByIndex(t)},n.onChangeEmail=function(e){n.props.email.dom.value=e.target.value},n.onSkip=function(){n.setState({route:x.results})},n.onClickRetake=function(){n.reset(function(){return n.setState({route:x.index})})},n.submit=function(){localStorage.setItem("sku",n.state.result.sku),n.props.sku.dom.value=n.state.result.sku;var e=document.createElement("iframe");e.setAttribute("name","hubspot_form"),document.body.appendChild(e),n.state.form.dom.setAttribute("target","hubspot_form"),n.state.form.dom.submit(),n.onSkip()},n.onSubmit=function(e){e.preventDefault(),n.submit()};var r=n.getNewModel();return n.state={sku:e.sku.value,email:e.email.value,showProductsClass:"",nextDir:"",completed:!1,showProducts:!1,transition:"",products:[],form:e.form,questions:e.questions,questionNum:1,nextNumber:1,model:r,currentNode:r,nextNode:null,quizname:e.quizname},n.defaultRoute=e.sku.value?x.welcome:x.index,n.preloadImages(),window.intent=n,n}return o(t,e),a(t,[{key:"reset",value:function(e){var t=this.getNewModel(),n=this.props;this.setState({showProductsClass:"",nextDir:"",completed:!1,showProducts:!1,transition:"",products:[],form:n.form,questions:n.questions,questionNum:1,nextNumber:1,model:t,currentNode:t,nextNode:null,quizname:n.quizname,route:this.defaultRoute},function(){return e()})}},{key:"componentDidMount",value:function(){this.reset(function(){return null}),this.props.email.value&&!this.props.sku.value?this.setState({products:["TRXHOME-STA"],result:this.props.model.model.results["TRXHOME-STA"]}):this.props.sku.value&&this.setState({products:[this.props.sku.value],result:this.props.model.model.results[this.props.sku.value]})}},{key:"preloadImages",value:function(){this.props.model.walk(function(e){e.model.images&&e.model.images.forEach(function(e){var t=new Image;t.src=e})})}},{key:"getNewModel",value:function(){var e=new p.default;return e.parse(this.props.model.model)}},{key:"hasSelection",value:function(e){return e.answer}},{key:"getQuestionFromNode",value:function(e){var t=e.model.answer_index;return"undefined"!=typeof t?e.children[t]:e}},{key:"selectFormAnswerById",value:function(e){var t=document.getElementById(e);t&&t.click()}},{key:"selectAnswerByIndex",value:function(e){var t=this,n=this.getCurrentQuestion(),r=this.getNewModel(),i=n.model.formQuestion.options[e].id;r.walk(function(r){if(r.model.id===n.model.id)return r.model.answer=i,r.model.answer_index=e,r.model.formQuestion.options.map(function(t,n){return t.selected=n===e}),t.selectFormAnswerById(i),t.setState({currentNode:r}),!1}),this.setState({model:r}),this.next(0===e?"left":"right")}},{key:"getCurrentQuestion",value:function(){return this.state.currentNode}},{key:"getNextQuestion",value:function(){return this.state.nextNode||this.state.currentNode}},{key:"process",value:function(){return this.state.nextNode||this.state.currentNode}},{key:"render",value:function(){var e=this,t=function(){return s.default.createElement(h.default,{questionNum:e.state.questionNum,onAnimationEnd:e.onAnimationEnd,onQuestionAnswerClicked:e.questionAnswerClicked,currentQuestion:e.getCurrentQuestion(),nextQuestion:e.getNextQuestion(),nextDir:e.state.nextDir,transition:e.state.transition})},n=function(){return s.default.createElement(y.default,{email:e.state.email,onChangeEmail:e.onChangeEmail,onSubmit:e.onSubmit,onSkip:e.onSkip})},r=function(){var t="We recommended "+(e.state.result?e.state.result.name:"")+" the last time you took this quiz";return s.default.createElement(k.default,{product:e.state.products,result:e.state.result,title:"",text:"Welcome Back!",subtext:t,onClickRetake:e.onClickRetake})},i=function(){return s.default.createElement(b.default,{product:e.state.products,result:e.state.result,title:"Results",text:"Our Recommendation",onClickRetake:e.onClickRetake})},l=function(e){var l={"/":t,"/index":t,"/welcome-back":r,"/tally":n,"/results":i};return l[e]},o=l(this.state.route)||null;return s.default.createElement("div",{className:"intent-widget__app"},this.state.route&&s.default.createElement(o,null))}}]),t}(s.default.Component);E.propTypes={questions:f.default.array,email:f.default.any,form:f.default.any},t.default=E},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:1,question:"q6",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q6a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q6b.jpg"],results:{"TRXHOME-STA":{name:"TRX HOME2",description:"The HOME2 SYSTEM is the culmination of over a decade of training expertise, helping you to get fit in the simplest, most effective way possible.",image:"https://cdn2.hubspot.net/hubfs/2540174/2017_website_refresh/product_detail_pages/home/pdp_home_flatlay.jpg",url:"/products/trx-home-gym",sku:"TRXHOME2"},"TRXHOME-2":{name:"TRX HOME2",description:"The HOME2 SYSTEM is the culmination of over a decade of training expertise, helping you to get fit in the simplest, most effective way possible.",image:"https://cdn2.hubspot.net/hubfs/2540174/2017_website_refresh/product_detail_pages/home/pdp_home_flatlay.jpg",url:"/products/trx-home-gym",sku:"TRXHOME2"},TRXHOME2:{name:"TRX HOME2",description:"The HOME2 SYSTEM is the culmination of over a decade of training expertise, helping you to get fit in the simplest, most effective way possible.",image:"https://cdn2.hubspot.net/hubfs/2540174/2017_website_refresh/product_detail_pages/home/pdp_home_flatlay.jpg",url:"/products/trx-home-gym",sku:"TRXHOME2"},"TRXRIPI-PACK":{name:"TRX Rip Trainer",description:"Improve stability and strength to elevate your performance from the core out.",image:"https://cdn2.hubspot.net/hubfs/2540174/2017_website_refresh/product_detail_pages/rip/pdp_rip_flatlay.jpg",url:"/products/trx-rip-trainer",sku:"TRXRIPI-PACK"},"TRXDUO-SHORT":{name:"TRX Duo Trainer",description:"The benefits of gymnastics rings. The accessibility of TRX.",image:"https://cdn2.hubspot.net/hubfs/2540174/2017_website_refresh/product_detail_pages/duo/pdp_duo_flatlay.jpg",url:"/products/trx-duo-trainer",sku:"TRXDUO-SHORT"},FTKMG3:{name:"TRX Tactical",description:"Our toughest, most rugged Suspension Trainer—made for the military and ready for anything.",image:"https://cdn2.hubspot.net/hubfs/2540174/2017_website_refresh/product_detail_pages/tactical/pdp_tactical_flatlay.jpg",url:"/products/trx-tactical-gym",sku:"FTKMG3"},TRXPRO4:{name:"TRX Pro 4",description:"Our flagship Suspension Trainer—used by professional trainers and premier athletes.",image:"https://cdn2.hubspot.net/hubfs/2540174/2017_website_refresh/product_detail_pages/pro/pdp_pro_flatlay.jpg",url:"/products/trx-pro",sku:"TRXPRO4"}},children:[{id:11,question:"q7",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q7a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q7b.jpg"],children:[{id:111,question:"q9",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q9a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q9b.jpg"],children:[{id:1111,products:["TRXHOME2"]},{id:1112,products:["TRXPRO4"]}]},{id:112,question:"q11",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q11a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q11b.jpg"],children:[{id:1121,products:["TRXPRO4"]},{id:1122,products:["TRXRIPI-PACK"]}]}]},{id:12,question:"q8",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q8a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q8b.jpg"],children:[{id:121,question:"q10",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q10a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q10b.jpg"],children:[{id:1211,products:["TRXHOME2"]},{id:1212,question:"q13",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q13a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q13b.jpg"],children:[{id:12121,products:["TRXRIPI-PACK"]},{id:12122,products:["TRXPRO4"]}]}]},{id:122,question:"q12",images:["//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q12a.jpg","//cdn2.hubspot.net/hubfs/2540174/trxtraining.com/assets/images/optimized/trx_intent/q12b.jpg"],children:[{id:1121,products:["TRXPRO4"]},{id:1122,products:["FTKMG3"]}]}]}]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:1,question:"q14",images:["//trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/TRX-certified.jpg","//trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/earn-CECs-new-skills.jpg"],results:{TRXSUSPENSION:{name:"TRX® Suspension Training Course",description:"TRX Suspension Training Course is your first step to become TRX Certified- this course will take you from the foundations of the TRX Suspension Training, and provide you with the coaching knowledge to scale every exercises.",image:"https://www.trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/TRX-ST-course.jpg",url:"https://store.trxtraining.com/products/stc-v2",sku:"TRXSUSPENSION",button:"Learn More"},TRXYOGA:{name:"TRX® Yoga Foundations Course",description:"TRX Suspension Training Course will take you from the foundations of the TRX Suspension Training, and provide you with the coaching knowledge to scale every exercises this is your first step in the journey to becoming TRX Certified.",image:"https://www.trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/TRX-yoga.jpg",url:"https://store.trxtraining.com/products/yfc",sku:"TRXYOGA",button:"Learn More"},TRXDIGITALCOURSES:{name:"TRX® Online Courses",description:"Learn at your own pace through digital courses, ranging from TRX Qualifications (6+ hours) to 1-5 hour online CECs opportunities while taking a deep dive into a modality or specialization.",image:"https://www.trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/TRX-digital-courses.jpg",url:"https://www.trxtraining.com/education-category#online-courses",sku:"TRXDIGITALCOURSES",button:"Learn More"},TRXWORKSHOPSERIES:{name:"TRX® WORKSHOP SERIES",description:"Introducing the TRX® WORKSHOP SERIES—live, virtual, and interactive 90-minute workshop classes. Only $29 per person. Advance your skills and get the basic tips & tricks they need to integrate a variety of TRX modalities and training tools into your coaching.",image:"https://www.trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/workshop-series.jpg",url:"https://www.trxtraining.com/education-category#trx-virtual-workshop-series",sku:"TRXWORKSHOPSERIES",button:"Learn More"}},children:[{id:11,question:"q15",images:["//trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/TRX-STC-certified.jpg","//trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/TRX-yoga-certified.jpg"],children:[{id:1121,products:["TRXSUSPENSION"]},{id:1122,products:["TRXYOGA"]}]},{id:12,question:"q16",images:["//trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/lIve-virtual-setting.jpg","//trxtraining.com/hubfs/g-images/bigcommerce/quizoptions/online-self-paced.jpg"],children:[{id:1121,products:["TRXWORKSHOPSERIES"]},{id:1122,products:["TRXDIGITALCOURSES"]}]}]}},function(e,t){e.exports=function(){"use strict";function e(e,t,n){var r,i;for(r=0,i=t.length;r0);r++);return r}return e}()},function(e,t){e.exports=function(){"use strict";function e(n,r){var i,l,o=r.length;return o>=2?(i=r.slice(0,o/2),l=r.slice(o/2,o),t(n,e(n,i),e(n,l))):r.slice()}function t(e,t,n){for(var r=[],i=t.length,l=n.length;i>0&&l>0;)e(t[0],n[0])<=0?(r.push(t.shift()),i--):(r.push(n.shift()),l--);return i>0?r.push.apply(r,t):r.push.apply(r,n),r}return e}()},function(e,t,n){"use strict";function r(){}function i(){}var l=n(19);i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==l){var a=new 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 a.name="Invariant Violation",a}}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:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){/** @license React v16.14.0 * 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. */ "use strict";function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function x(e,t,n,r,i,l){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=l}function E(e){return e[1].toUpperCase()}function T(e,t,n,r){var i=dl.hasOwnProperty(t)?dl[t]:null,l=null!==i?0===i.type:!r&&(2=n.length))throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:N(n)}}function W(e,t){var n=N(t.value),r=N(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function V(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function B(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 $(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?B(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function K(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Y(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function G(e){if(Dl[e])return Dl[e];if(!Fl[e])return e;var t,n=Fl[e];for(t in n)if(n.hasOwnProperty(t)&&t in jl)return Dl[e]=n[t];return e}function Z(e){var t=Vl.get(e);return void 0===t&&(t=new Map,Vl.set(e,t)),t}function J(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,0!==(1026&t.effectTag)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function ee(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function te(e){if(J(e)!==e)throw Error(r(188))}function ne(e){var t=e.alternate;if(!t){if(t=J(e),null===t)throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(null===l)break;var o=l.alternate;if(null===o){if(i=l.return,null!==i){n=i;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return te(l),e;if(o===i)return te(l),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=l,i=o;else{for(var a=!1,u=l.child;u;){if(u===n){a=!0,n=l,i=o;break}if(u===i){a=!0,i=l,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,i=l;break}if(u===i){a=!0,i=o,n=l;break}u=u.sibling}if(!a)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}function re(e){if(e=ne(e),!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 ie(e,t){if(null==t)throw Error(r(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function le(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function oe(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r$l.length&&$l.push(e)}function fe(e,t,n,r){if($l.length){var i=$l.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function de(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=$e(r)}while(n);for(n=0;n=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ae(n)}}function Ue(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ue(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Qe(){for(var e=window,t=Le();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=Le(e.document)}return t}function He(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 Xe(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function We(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}function Ve(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Be(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===bo||n===xo||n===ko){if(0===t)return e;t--}else n===wo&&t++}e=e.previousSibling}return null}function $e(e){var t=e[Po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ro]||n[Po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Be(e);null!==e;){if(n=e[Po])return n;e=Be(e)}return t}e=n,n=e.parentNode}return null}function Ke(e){return e=e[Po]||e[Ro],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ye(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function Ge(e){return e[No]||null}function Ze(e){do e=e.return;while(e&&5!==e.tag);return e?e:null}function Je(e,t){var n=e.stateNode;if(!n)return null;var i=Vi(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}function et(e,t,n){(t=Je(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ie(n._dispatchListeners,t),n._dispatchInstances=ie(n._dispatchInstances,e))}function tt(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Ze(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function ft(e){e.eventPool=[],e.getPooled=st,e.release=ct}function dt(e,t){switch(e){case"keyup":return-1!==Do.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function pt(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function mt(e,t){switch(e){case"compositionend":return pt(t);case"keypress":return 32!==t.which?null:(Ho=!0,Uo);case"textInput":return e=t.data,e===Uo&&Ho?null:e;default:return null}}function ht(e,t){if(Xo)return"compositionend"===e||!jo&&dt(e,t)?(e=lt(),Mo=zo=Oo=null,Xo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1Ia||(e.current=Ma[Ia],Ma[Ia]=null,Ia--)}function It(e,t){Ia++,Ma[Ia]=e.current,e.current=t}function Ft(e,t){var n=e.type.contextTypes;if(!n)return Fa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,l={};for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Dt(e){return e=e.childContextTypes,null!==e&&void 0!==e}function jt(){Mt(ja),Mt(Da)}function Lt(e,t,n){if(Da.current!==Fa)throw Error(r(168));It(Da,t),It(ja,n)}function At(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,"function"!=typeof i.getChildContext)return n;i=i.getChildContext();for(var l in i)if(!(l in e))throw Error(r(108,C(t)||"Unknown",l));return Ai({},n,{},i)}function qt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fa,La=Da.current,It(Da,e),It(ja,ja.current),!0}function Ut(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=At(e,t,La),i.__reactInternalMemoizedMergedChildContext=e,Mt(ja),Mt(Da),It(Da,e)):Mt(ja),It(ja,n)}function Qt(){switch(Xa()){case Wa:return 99;case Va:return 98;case Ba:return 97;case $a:return 96;case Ka:return 95;default:throw Error(r(332))}}function Ht(e){switch(e){case 99:return Wa;case 98:return Va;case 97:return Ba;case 96:return $a;case 95:return Ka;default:throw Error(r(332))}}function Xt(e,t){return e=Ht(e),Aa(e,t)}function Wt(e,t,n){return e=Ht(e),qa(e,t,n)}function Vt(e){return null===Ja?(Ja=[e],eu=qa(Wa,$t)):Ja.push(e),Ya}function Bt(){if(null!==eu){var e=eu;eu=null,Ua(e)}$t()}function $t(){if(!tu&&null!==Ja){tu=!0;var e=0;try{var t=Ja;Xt(99,function(){for(;e=t&&(Fu=!0),e.firstContext=null)}function tn(e,t){if(au!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(au=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ou){if(null===lu)throw Error(r(308));ou=t,lu.dependencies={expirationTime:0,firstContext:t,responders:null}}else ou=ou.next=t;return e._currentValue}function nn(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function rn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ln(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function on(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function an(e,t){var n=e.alternate;null!==n&&rn(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function un(e,t,n,r){var i=e.updateQueue;uu=!1;var l=i.baseQueue,o=i.shared.pending;if(null!==o){if(null!==l){var a=l.next;l.next=o.next,o.next=a}l=o,i.shared.pending=null,a=e.alternate,null!==a&&(a=a.updateQueue,null!==a&&(a.baseQueue=o))}if(null!==l){a=l.next;var u=i.baseState,s=0,c=null,f=null,d=null;if(null!==a)for(var p=a;;){if(o=p.expirationTime,os&&(s=o)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Gr(o,p.suspenseConfig);e:{var h=e,g=p;switch(o=t,m=n,g.tag){case 1:if(h=g.payload,"function"==typeof h){u=h.call(m,u,o);break e}u=h;break e;case 3:h.effectTag=h.effectTag&-4097|64;case 0:if(h=g.payload,o="function"==typeof h?h.call(m,u,o):h,null===o||void 0===o)break e;u=Ai({},u,o);break e;case 2:uu=!0}}null!==p.callback&&(e.effectTag|=32,o=i.effects,null===o?i.effects=[p]:o.push(p))}if(p=p.next,null===p||p===a){if(o=i.shared.pending,null===o)break;p=l.next=o.next,o.next=a,i.baseQueue=l=o,i.shared.pending=null}}null===d?c=u:d.next=f,i.baseState=c,i.baseQueue=d,Zr(s),e.expirationTime=s,e.memoizedState=u}}function sn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;th?(g=f,f=null):g=f.sibling;var y=p(r,f,a[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(r,f),l=o(y,l,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===a.length)return n(r,f),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),a=o(b,a,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),c;if(null===h){for(;!v.done;g++,v=u.next())v=d(l,v.value,s),null!==v&&(a=o(v,a,g),null===f?c=v:f.sibling=v,f=v);return c}for(h=i(l,h);!v.done;g++,v=u.next())v=m(h,l,g,v.value,s),null!==v&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),a=o(v,a,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),c}return function(e,i,o,u){var s="object"==typeof o&&null!==o&&o.type===wl&&null===o.key;s&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case vl:e:{for(c=o.key,s=i;null!==s;){if(s.key===c){switch(s.tag){case 7:if(o.type===wl){n(e,s.sibling),i=l(s,o.props.children),i.return=e,e=i;break e}break;default:if(s.elementType===o.type){n(e,s.sibling),i=l(s,o.props),i.ref=hn(e,s,o),i.return=e,e=i;break e}}n(e,s);break}t(e,s),s=s.sibling}o.type===wl?(i=wi(o.props.children,e.mode,u,o.key),i.return=e,e=i):(u=bi(o.type,o.key,o.props,null,e.mode,u),u.ref=hn(e,i,o),u.return=e,e=u)}return a(e);case bl:e:{for(s=o.key;null!==i;){if(i.key===s){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(e,i.sibling),i=l(i,o.children||[]),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=xi(o,e.mode,u),i.return=e,e=i}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==i&&6===i.tag?(n(e,i.sibling),i=l(i,o),i.return=e,e=i):(n(e,i),i=ki(o,e.mode,u),i.return=e,e=i),a(e);if(du(o))return h(e,i,o,u);if(S(o))return g(e,i,o,u);if(c&&gn(e,o),"undefined"==typeof o&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(r(152,e.displayName||e.name||"Component"))}return n(e,i)}}function vn(e){if(e===hu)throw Error(r(174));return e}function bn(e,t){switch(It(vu,t),It(yu,e),It(gu,hu),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$(t,e)}Mt(gu),It(gu,t)}function wn(){Mt(gu),Mt(yu),Mt(vu)}function kn(e){vn(vu.current);var t=vn(gu.current),n=$(t,e.type);t!==n&&(It(yu,e),It(gu,n))}function xn(e){yu.current===e&&(Mt(gu),Mt(yu))}function En(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===ko||n.data===xo))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))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}function Tn(e,t){return{responder:e,props:t}}function Sn(){throw Error(r(321))}function _n(e,t){if(null===t)return!1;for(var n=0;no))throw Error(r(301));o+=1,Su=Tu=null,t.updateQueue=null,wu.current=Ru,e=n(i,l)}while(t.expirationTime===xu)}if(wu.current=Cu,t=null!==Tu&&null!==Tu.next,xu=0,Su=Tu=Eu=null,_u=!1,t)throw Error(r(300));return e}function Pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Su?Eu.memoizedState=Su=e:Su=Su.next=e,Su}function Nn(){if(null===Tu){var e=Eu.alternate;e=null!==e?e.memoizedState:null}else e=Tu.next;var t=null===Su?Eu.memoizedState:Su.next;if(null!==t)Su=t,Tu=e;else{if(null===e)throw Error(r(310));Tu=e,e={memoizedState:Tu.memoizedState,baseState:Tu.baseState,baseQueue:Tu.baseQueue,queue:Tu.queue,next:null},null===Su?Eu.memoizedState=Su=e:Su=Su.next=e}return Su}function Rn(e,t){return"function"==typeof t?t(e):t}function On(e){var t=Nn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=Tu,l=i.baseQueue,o=n.pending;if(null!==o){if(null!==l){var a=l.next;l.next=o.next,o.next=a}i.baseQueue=l=o,n.pending=null}if(null!==l){l=l.next,i=i.baseState;var u=a=o=null,s=l;do{var c=s.expirationTime;if(cEu.expirationTime&&(Eu.expirationTime=c,Zr(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),Gr(c,s.suspenseConfig),i=s.eagerReducer===e?s.eagerState:e(i,s.action);s=s.next}while(null!==s&&s!==l);null===u?o=i:u.next=a,ua(i,t.memoizedState)||(Fu=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=u,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function zn(e){var t=Nn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,o=t.memoizedState;if(null!==l){n.pending=null;var a=l=l.next;do o=e(o,a.action),a=a.next;while(a!==l);ua(o,t.memoizedState)||(Fu=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Mn(e){var t=Pn();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e},e=e.dispatch=$n.bind(null,Eu,e),[t.memoizedState,e]}function In(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Eu.updateQueue,null===t?(t={lastEffect:null},Eu.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Fn(){return Nn().memoizedState}function Dn(e,t,n,r){var i=Pn();Eu.effectTag|=e,i.memoizedState=In(1|t,n,void 0,void 0===r?null:r)}function jn(e,t,n,r){var i=Nn();r=void 0===r?null:r;var l=void 0;if(null!==Tu){var o=Tu.memoizedState;if(l=o.destroy,null!==r&&_n(r,o.deps))return void In(t,n,l,r)}Eu.effectTag|=e,i.memoizedState=In(1|t,n,l,r)}function Ln(e,t){return Dn(516,4,e,t)}function An(e,t){return jn(516,4,e,t)}function qn(e,t){return jn(4,2,e,t)}function Un(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qn(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,jn(4,2,Un.bind(null,t,e),n)}function Hn(){}function Xn(e,t){return Pn().memoizedState=[e,void 0===t?null:t],e}function Wn(e,t){var n=Nn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_n(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vn(e,t){var n=Nn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_n(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Bn(e,t,n){var r=Qt();Xt(98>r?98:r,function(){e(!0)}),Xt(97",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=a.createElement(l,{is:i.is}):(e=a.createElement(l),"select"===l&&(a=e,i.multiple?a.multiple=!0:i.size&&(a.size=i.size))):e=a.createElementNS(e,l),e[Po]=t,e[No]=i,Na(e,t,!1,!1),t.stateNode=e,a=Fe(l,i),l){case"iframe":case"object":case"embed":_e("load",e),u=i;break;case"video":case"audio":for(u=0;ui.tailExpiration&&1t)&&bs.set(e,t)))}}function qr(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function Qr(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Vt(Xr.bind(null,e));else{var t=Ur(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=jr();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ya&&Ua(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Vt(Xr.bind(null,e)):Wt(r,Hr.bind(null,e),{timeout:10*(1073741821-t)-ru()}),e.callbackNode=t}}}function Hr(e,t){if(xs=0,t)return t=jr(),Ci(e,t),Qr(e),null;var n=Ur(e);if(0!==n){if(t=e.callbackNode,(Ju&(Wu|Vu))!==Hu)throw Error(r(327));if(ai(),e===es&&n===ns||$r(e,n),null!==ts){var i=Ju;Ju|=Wu;for(var l=Yr();;)try{ei();break}catch(t){Kr(e,t)}if(Gt(),Ju=i,Uu.current=l,rs===$u)throw t=is,$r(e,n),Si(e,n),Qr(e),t;if(null===ts)switch(l=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,i=rs,es=null,i){case Bu:case $u:throw Error(r(345));case Ku:Ci(e,2=n){e.lastPingedTime=n,$r(e,n);break}}if(o=Ur(e),0!==o&&o!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}e.timeoutHandle=So(ii.bind(null,e),l);break}ii(e);break;case Gu:if(Si(e,n),i=e.lastSuspendedTime,n===i&&(e.nextKnownPendingLevel=ri(l)),ss&&(l=e.lastPingedTime,0===l||l>=n)){e.lastPingedTime=n,$r(e,n);break}if(l=Ur(e),0!==l&&l!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}if(1073741823!==os?i=10*(1073741821-os)-ru():1073741823===ls?i=0:(i=10*(1073741821-ls)-5e3,l=ru(),n=10*(1073741821-n)-l,i=l-i,0>i&&(i=0),i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*qu(i/1960))-i,n=i?i=0:(l=0|a.busyDelayMs,o=ru()-(10*(1073741821-o)-(0|a.timeoutMs||5e3)),i=o<=l?0:l+i-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+P(o))}rs!==Zu&&(rs=Ku),a=vr(a,o),f=l;do{switch(f.tag){case 3:u=a,f.effectTag|=4096,f.expirationTime=t;var w=Fr(f,u,t);an(f,w);break e;case 1:u=a;var k=f.type,x=f.stateNode;if(0===(64&f.effectTag)&&("function"==typeof k.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===hs||!hs.has(x)))){f.effectTag|=4096,f.expirationTime=t;var E=Dr(f,u,t);an(f,E);break e}}f=f.return}while(null!==f)}ts=ni(ts)}catch(e){t=e;continue}break}}function Yr(){var e=Uu.current;return Uu.current=Cu,null===e?Cu:e}function Gr(e,t){eus&&(us=e)}function Jr(){for(;null!==ts;)ts=ti(ts)}function ei(){for(;null!==ts&&!Ga();)ts=ti(ts)}function ti(e){var t=ju(e.alternate,e,ns);return e.memoizedProps=e.pendingProps,null===t&&(t=ni(e)),Qu.current=null,t}function ni(e){ts=e;do{var t=ts.alternate;if(e=ts.return,0===(2048&ts.effectTag)){if(t=gr(t,ts,ns),1===ns||1!==ts.childExpirationTime){for(var n=0,r=ts.child;null!==r;){var i=r.expirationTime,l=r.childExpirationTime;i>n&&(n=i),l>n&&(n=l),r=r.sibling}ts.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ts.firstEffect),null!==ts.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ts.firstEffect),e.lastEffect=ts.lastEffect),1e?t:e}function ii(e){var t=Qt();return Xt(99,li.bind(null,e,t)),null}function li(e,t){do ai();while(null!==ys);if((Ju&(Wu|Vu))!==Hu)throw Error(r(327));var n=e.finishedWork,i=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var l=ri(n);if(e.firstPendingTime=l,i<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:i<=e.firstSuspendedTime&&(e.firstSuspendedTime=i-1),i<=e.lastPingedTime&&(e.lastPingedTime=0),i<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===es&&(ts=es=null,ns=0),1u&&(c=u,u=a,a=c),c=qe(w,a),f=qe(w,u),c&&f&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&(k=k.createRange(),k.setStart(c.node,c.offset),x.removeAllRanges(),a>u?(x.addRange(k),x.extend(f.node,f.offset)):(k.setEnd(f.node,f.offset),x.addRange(k)))))),k=[];for(x=w;x=x.parentNode;)1===x.nodeType&&k.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w=t&&e<=t}function Si(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function _i(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ci(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Pi(e,t,n,i){var l=t.current,o=jr(),a=su.suspense;o=Lr(o,l,a);e:if(n){n=n._reactInternalFiber;t:{if(J(n)!==n||1!==n.tag)throw Error(r(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Dt(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(r(171))}if(1===n.tag){var s=n.type;if(Dt(s)){n=At(n,s,u);break e}}n=u}else n=Fa;return null===t.context?t.context=n:t.pendingContext=n,t=ln(o,a),t.payload={element:e},i=void 0===i?null:i,null!==i&&(t.callback=i),on(l,t),Ar(l,o),o}function Ni(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ri(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime