vdb-ai-chat 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/chat-widget.js +66 -59
  2. package/lib/commonjs/components/BetaNotice.js +5 -1
  3. package/lib/commonjs/components/BetaNotice.js.map +1 -1
  4. package/lib/commonjs/components/ChatHeader.js +8 -4
  5. package/lib/commonjs/components/ChatHeader.js.map +1 -1
  6. package/lib/commonjs/components/ChatInput.js +5 -1
  7. package/lib/commonjs/components/ChatInput.js.map +1 -1
  8. package/lib/commonjs/components/ChatWidget.js +48 -16
  9. package/lib/commonjs/components/ChatWidget.js.map +1 -1
  10. package/lib/commonjs/components/MessageBubble.js +15 -8
  11. package/lib/commonjs/components/MessageBubble.js.map +1 -1
  12. package/lib/commonjs/components/MessageMetaRow.js +10 -6
  13. package/lib/commonjs/components/MessageMetaRow.js.map +1 -1
  14. package/lib/commonjs/components/ProductsGrid.js +7 -1
  15. package/lib/commonjs/components/ProductsGrid.js.map +1 -1
  16. package/lib/commonjs/components/ProductsListView.js +14 -8
  17. package/lib/commonjs/components/ProductsListView.js.map +1 -1
  18. package/lib/commonjs/components/utils.js +37 -32
  19. package/lib/commonjs/components/utils.js.map +1 -1
  20. package/lib/commonjs/i18n/index.js +238 -0
  21. package/lib/commonjs/i18n/index.js.map +1 -0
  22. package/lib/commonjs/i18n/translations/en.json +68 -0
  23. package/lib/commonjs/i18n/types.js +2 -0
  24. package/lib/commonjs/i18n/types.js.map +1 -0
  25. package/lib/commonjs/index.js +58 -1
  26. package/lib/commonjs/index.js.map +1 -1
  27. package/lib/module/components/BetaNotice.js +5 -1
  28. package/lib/module/components/BetaNotice.js.map +1 -1
  29. package/lib/module/components/ChatHeader.js +8 -4
  30. package/lib/module/components/ChatHeader.js.map +1 -1
  31. package/lib/module/components/ChatInput.js +5 -1
  32. package/lib/module/components/ChatInput.js.map +1 -1
  33. package/lib/module/components/ChatWidget.js +48 -16
  34. package/lib/module/components/ChatWidget.js.map +1 -1
  35. package/lib/module/components/MessageBubble.js +15 -8
  36. package/lib/module/components/MessageBubble.js.map +1 -1
  37. package/lib/module/components/MessageMetaRow.js +10 -6
  38. package/lib/module/components/MessageMetaRow.js.map +1 -1
  39. package/lib/module/components/ProductsGrid.js +7 -1
  40. package/lib/module/components/ProductsGrid.js.map +1 -1
  41. package/lib/module/components/ProductsListView.js +14 -8
  42. package/lib/module/components/ProductsListView.js.map +1 -1
  43. package/lib/module/components/utils.js +37 -32
  44. package/lib/module/components/utils.js.map +1 -1
  45. package/lib/module/i18n/index.js +212 -0
  46. package/lib/module/i18n/index.js.map +1 -0
  47. package/lib/module/i18n/translations/en.json +68 -0
  48. package/lib/module/i18n/types.js +2 -0
  49. package/lib/module/i18n/types.js.map +1 -0
  50. package/lib/module/index.js +8 -5
  51. package/lib/module/index.js.map +1 -1
  52. package/lib/typescript/components/BetaNotice.d.ts.map +1 -1
  53. package/lib/typescript/components/ChatHeader.d.ts.map +1 -1
  54. package/lib/typescript/components/ChatInput.d.ts.map +1 -1
  55. package/lib/typescript/components/ChatWidget.d.ts.map +1 -1
  56. package/lib/typescript/components/MessageBubble.d.ts.map +1 -1
  57. package/lib/typescript/components/MessageMetaRow.d.ts.map +1 -1
  58. package/lib/typescript/components/ProductsGrid.d.ts.map +1 -1
  59. package/lib/typescript/components/ProductsListView.d.ts.map +1 -1
  60. package/lib/typescript/components/utils.d.ts +5 -3
  61. package/lib/typescript/components/utils.d.ts.map +1 -1
  62. package/lib/typescript/i18n/index.d.ts +45 -0
  63. package/lib/typescript/i18n/index.d.ts.map +1 -0
  64. package/lib/typescript/i18n/types.d.ts +9 -0
  65. package/lib/typescript/i18n/types.d.ts.map +1 -0
  66. package/lib/typescript/index.d.ts +6 -5
  67. package/lib/typescript/index.d.ts.map +1 -1
  68. package/lib/typescript/types.d.ts +12 -0
  69. package/lib/typescript/types.d.ts.map +1 -1
  70. package/package.json +3 -1
  71. package/src/components/BetaNotice.tsx +8 -1
  72. package/src/components/ChatHeader.tsx +12 -4
  73. package/src/components/ChatInput.tsx +7 -1
  74. package/src/components/ChatWidget.tsx +69 -17
  75. package/src/components/MessageBubble.tsx +129 -26
  76. package/src/components/MessageMetaRow.tsx +17 -15
  77. package/src/components/ProductsGrid.tsx +8 -1
  78. package/src/components/ProductsListView.tsx +132 -46
  79. package/src/components/utils.ts +113 -68
  80. package/src/i18n/index.ts +246 -0
  81. package/src/i18n/translations/en.json +68 -0
  82. package/src/i18n/types.ts +10 -0
  83. package/src/index.ts +16 -5
  84. package/src/types.ts +12 -0
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see chat-widget.js.LICENSE.txt */
2
- (()=>{var e,t,n,r,i={6556(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),n(e)}).catch(r)})}function i(e,t,n){var i;return(i=n,new Promise(function(e){return setTimeout(e,i)})).then(function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{s2:()=>r,w_:()=>i})},9952(e,t,n){"use strict";n.d(t,{d:()=>l,j:()=>u});var r=n(6e3),i=n(3172),o=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,i,a=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[s]=a,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),s=n(6490),l=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.r),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new l({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},6115(e,t,n){"use strict";n.d(t,{g:()=>o,M:()=>a});var r=n(1635),i=n(2079),o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t)||(e.queue.push(t),0))});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var n=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,l=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),l)}({attempt:this.getAttempts(e)});return t>0&&n<t&&(n=t),this.scheduleItem(e,n)},t.prototype.pushWithDelay=function(e,t){return this.scheduleItem(e,t)},t.prototype.scheduleItem=function(e,t){var n=this;return!(this.updateAttempts(e)>this.maxAttempts||this.includes(e)||(setTimeout(function(){n.queue.push(e),n.future=n.future.filter(function(t){return t.id!==e.id}),n.emit(o)},t),this.future.push(e),0))},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find(function(t){return t.id===e.id}))||Boolean(this.future.find(function(t){return t.id===e.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},4980(e,t,n){"use strict";n.d(t,{C:()=>o,D:()=>a});var r=n(1635),i=n(9952);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,function(){var n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}})})}().then(function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},6490(e,t,n){"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(1635),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t})},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},2321(e,t,n){"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function a(e){return null!=e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>s,Tn:()=>o,t2:()=>a})},6251(e,t,n){"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise(function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},2079(e,t,n){"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},7718(e,t,n){"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(9839);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},7947(e,t,n){"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},7977(e,t,n){"use strict";n.d(t,{o:()=>a});var r=n(1635),i=n(9952),o=n(4568),a=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},9839(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},5770(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},4568(e,t,n){"use strict";n.d(t,{U:()=>f});var r=n(1635),i=n(6490),o=n(524),a=n(8167),s=n(1298),l=n(7947);function u(e){console.error("Error sending segment performance metrics",e)}var c,d=function(){function e(e){var t,n,r,i,o,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:l.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var s=!1,c=function(){s||(s=!0,a.flush().catch(u),s=!1,setTimeout(c,a.flushTimer))};c()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,s.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e=this;return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(t){u(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n;return(0,r.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){c=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==c||c.increment(t,null!=r?r:[])},t}(i.p)},4757(e,t,n){"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError,a=void 0!==o&&o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},8167(e,t,n){"use strict";n.d(t,{r:()=>r});var r="1.84.0"},524(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}n.d(t,{h:()=>o}),Object.defineProperty(r,"name",{value:"default",configurable:!0});var i=n(2453),o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.m)();return(n&&n.fetch||r).apply(void 0,e)}},2453(e,t,n){"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},472(e,t,n){"use strict";n.d(t,{Ud:()=>a,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function a(e){window[r]=e}},3357(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});a<s.length;a++){var l=s[a],u=l[0],c=l[1];o.setAttribute(u,c)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null===(i=d.parentElement)||void 0===i||i.insertBefore(o,d):window.document.head.appendChild(o)})}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>o,k:()=>i})},1094(e,t,n){"use strict";n.d(t,{J:()=>i});var r=n(1635);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,t){var n,i,o=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,o=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},a),i[o]),n))},{})}},2613(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(1635),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,function(){var n;return(0,r.YH)(this,function(i){return n=function(i){return(0,r.sH)(void 0,void 0,void 0,function(){var o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})}},9456(e,t,n){"use strict";n.d(t,{I2:()=>s,YM:()=>l,qQ:()=>a});var r,i=n(472),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},s=function(){var e,t=null!=r?r:null===(e=(0,i.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",i=o.exec(r);i&&i[1]&&(n=i[1])}),n);return a||"https://cdn.segment.com"},l=function(){var e=s();return"".concat(e,"/next-integrations")}},5881(e,t,n){"use strict";n.d(t,{x:()=>f});var r=n(1635),i=n(6115),o=n(7977),a=n(9839),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function l(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o.o(e.event,e.id)})}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var f=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),f=[],h={};return d(n,function(){try{f=l(o),h=u(a),c(o),c(a),i.queue=(0,r.fX)((0,r.fX)([],f,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},h),i.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,function(){!function(e,t){var n=l(e),i=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=u(e);s.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,i.seen)})}catch(e){console.error(e)}}}),i}return(0,r.C6)(t,e),t}(i.M)},5791(e,t,n){"use strict";n.d(t,{W:()=>i});var r=n(1476);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},1298(e,t,n){"use strict";n.d(t,{X:()=>r});function r(){return"npm"}},5939(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>s});var r=n(1635),i=n(9952),o=n(5791);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){function i(t,n){return(0,r.sH)(this,void 0,void 0,function(){var i,a,s;return(0,r.YH)(this,function(l){switch(l.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return l.sent(),i||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((s={})[e]=!1,s))),[2,a]}})})}var a,s,l,u,c;return(0,r.YH)(this,function(e){switch(e.label){case 0:a=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,l=n,e.label=1;case 1:return s<l.length?(u=l[s],[4,i(a,u)]):[3,4];case 2:if(null===(c=e.sent()))return[2,null];a=c,e.label=3;case 3:return s++,[3,1];case 4:return[2,a]}})})}function s(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,function(){var a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,o.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new i.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},2572(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(6041));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},2360(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},4857(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},7697(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},4500(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(2572)),o=n(4857),a=r(n(8822)),s=r(n(5316)),l=r(n(6041)),u=r(n(7631));function c(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?s.default(e.timestamp):new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function f(e){return o.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=l.default(n,t.join("."))),this.opts.clone?f(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?f(t):t},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||l.default(r,e);return"object"!=typeof i&&(i=l.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},3335(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(6698)),o=r(n(6659)),a=r(n(5316)),s=n(4500);function l(e,t){s.Facade.call(this,e,t)}t.Group=l,i.default(l,s.Facade);var u=l.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return o.default(t)?t:void 0},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},7538(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(4500),o=r(n(6041)),a=r(n(6698)),s=r(n(6659)),l=r(n(5316)),u=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return l.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return l.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();return t&&n?u(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");return"string"==typeof t?u(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},1476(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(4500);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(2360);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var a=n(3335);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var s=n(7538);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var l=n(3863);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return l.Track}});var u=n(5525);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return u.Page}});var c=n(2542);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var d=n(7697);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:l.Track,Page:u.Page,Screen:c.Screen,Delete:d.Delete})},6659(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},8822(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},5525(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(6698)),o=n(4500),a=n(3863),s=r(n(6659));function l(e,t){o.Facade.call(this,e,t)}t.Page=l,i.default(l,o.Facade);var u=l.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},2542(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(6698)),o=n(5525),a=n(3863);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},3863(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(6698)),o=n(4500),a=n(7538),s=r(n(6659)),l=r(n(6041));function u(e,t){o.Facade.call(this,e,t)}t.Track=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"track"},c.type=c.action,c.event=o.Facade.field("event"),c.value=o.Facade.proxy("properties.value"),c.category=o.Facade.proxy("properties.category"),c.id=o.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=o.Facade.proxy("properties.sku"),c.tax=o.Facade.proxy("properties.tax"),c.name=o.Facade.proxy("properties.name"),c.price=o.Facade.proxy("properties.price"),c.total=o.Facade.proxy("properties.total"),c.repeat=o.Facade.proxy("properties.repeat"),c.coupon=o.Facade.proxy("properties.coupon"),c.shipping=o.Facade.proxy("properties.shipping"),c.discount=o.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=o.Facade.proxy("properties.description"),c.plan=o.Facade.proxy("properties.plan"),c.subtotal=function(){var e=l.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},c.products=function(){var e=this.properties(),t=l.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=o.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e){if("number"==typeof e)return e;if("string"==typeof e)return e=e.replace(/\$/g,""),e=parseFloat(e),isNaN(e)?void 0:e}}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},7631(e,t,n){"use strict";var r=n(1042);e.exports=function e(t,n){return void 0===n&&(n=!0),t&&"object"==typeof t?function(t,n){return Object.keys(t).forEach(function(r){t[r]=e(t[r],n)}),t}(t,n):Array.isArray(t)?function(t,n){return t.forEach(function(r,i){t[i]=e(r,n)}),t}(t,n):r.is(t,n)?r.parse(t):t}},1042(e,t){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,a=0;o=t[a];a++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var s=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(s)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},5493(e){"use strict";function t(e){return e&&"object"==typeof e?i(e)||o(e)?e:r(e)?function(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}(e,t):function(e,t,n){if(e.reduce)return e.reduce(t,n);for(var r=0;r<e.length;r++)n=t(n,e[r]);return n}(s(e),function(r,i){return r[n(i)]=t(e[i]),r},{}):e}function n(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=function(e){return"string"==typeof e?n(e):t(e)};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){return"[object Date]"===Object.prototype.toString.call(e)},o=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},a=Object.prototype.hasOwnProperty,s=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},2473(e,t,n){"use strict";e.exports=n(2510)},5486(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function s(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var o=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var l in o){var u=o[l],c=e[l];if(c&&u){if(Array.isArray(c)){e[l]=a(c.concat(u));continue}if(Array.isArray(u)){e[l]=a([c].concat(i(u)));continue}if("object"===r(u)){e[l]=s({},c,u);continue}}e[l]=u}}return e}n.r(t),n.d(t,{assignStyle:()=>s,camelCaseProperty:()=>f,cssifyDeclaration:()=>m,cssifyObject:()=>v,hyphenateProperty:()=>p,isPrefixedProperty:()=>y,isPrefixedValue:()=>_,isUnitlessProperty:()=>I,normalizeProperty:()=>L,resolveArrayValue:()=>D,unprefixProperty:()=>N,unprefixValue:()=>F});var l=/-([a-z])/g,u=/^Ms/g,c={};function d(e){return e[1].toUpperCase()}function f(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(l,d).replace(u,"ms");return c[e]=t,t}var h=n(5685);function p(e){return(0,h.default)(e)}function m(e,t){return p(e)+":"+t}function v(e){var t="";for(var n in e){var r=e[n];"string"!=typeof r&&"number"!=typeof r||(t&&(t+=";"),t+=m(n,r))}return t}var g=/^(Webkit|Moz|O|ms)/;function y(e){return g.test(e)}var b=/-webkit-|-moz-|-ms-/;function _(e){return"string"==typeof e&&b.test(e)}var w={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],C=["Webkit","ms","Moz","O"];function E(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var x=0,k=S.length;x<k;++x){var A=S[x];w[A]=!0;for(var R=0,T=C.length;R<T;++R)w[E(C[R],A)]=!0}for(var P in w)w[p(P)]=!0;function I(e){return w.hasOwnProperty(e)}var O=/^(ms|Webkit|Moz|O)/;function N(e){var t=e.replace(O,"");return t.charAt(0).toLowerCase()+t.slice(1)}function L(e){return N(f(e))}function D(e,t){return t.join(";"+p(e)+":")}var M=/(-ms-|-webkit-|-moz-|-o-)/g;function F(e){return"string"==typeof e?e.replace(M,""):e}},5721(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var r,i=(r=n(5685))&&r.__esModule?r:{default:r}},4014(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},8907(e,t){"use strict";t.Y=function(e,t){return function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}}),l})}(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every(function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=u(i),o=u(o);break;case"resolution":i=l(i),o=l(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=s(i),o=s(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}});return i&&!n||!i&&n})};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},7608(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(5482),o=r(i),a=r(n(5493)),s=r(n(2473)),l=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,u=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,c=function(e){return function(t){return e(t)?"<token>":null}},d=function(e,t){return void 0===t&&(t=String),function(n){if("word"!==n.type)return null;var r=n.value.match(e);return null===r?null:t(r[1])}},f=c(function(e){return"space"===e.type}),h=c(function(e){return"div"===e.type&&"/"===e.value}),p=c(function(e){return"div"===e.type&&","===e.value}),m=function(e){return"word"===e.type?e.value:null},v=d(/^(none)$/i),g=d(/^(auto)$/i),y=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,Number),b=d(/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,Number),_=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i),w=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,function(e){return e.toLowerCase()}),S=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i),C=d(/(^-?[_a-z][_a-z0-9-]*$)/i),E=function(e){return"string"!==e.type?null:e.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/\\/g,"")},x=function(e){return"word"===e.type&&(l.test(e.value)||e.value in s||"transparent"===e.value)?e.value:"function"===e.type&&u.test(e.value)?i.stringify(e):null},k=d(/^(none|underline|line-through)$/i),A=d(/^(solid|dashed|dotted)$/),R=function(e){var t=e.types,n=void 0===t?[b,_,S]:t,r=e.directions,i=void 0===r?["Top","Right","Bottom","Left"]:r,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;return function(e){var t,r=[];for(r.push(e.expect.apply(e,n));r.length<4&&e.hasTokens();)e.expect(f),r.push(e.expect.apply(e,n));e.expectEmpty();var o=r[0],s=r[1],u=void 0===s?o:s,c=r[2],d=void 0===c?o:c,h=r[3],p=void 0===h?u:h,m=function(e){return""+a+i[e]+l};return(t={})[m(0)]=o,t[m(1)]=u,t[m(2)]=d,t[m(3)]=p,t}},T=function(e){var t=e.expect(b),n=e.matches(f)?e.expect(b):t;return e.expectEmpty(),{width:t,height:n}},P=function(e){var t,n,r,i;if(e.matches(v))return e.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var o=!1;e.hasTokens();)o&&e.expect(f),void 0===t&&e.matches(b,_)?(t=e.lastValue,e.expect(f),n=e.expect(b,_),e.saveRewindPoint(),e.matches(f)&&e.matches(b,_)?r=e.lastValue:e.rewind()):void 0===i&&e.matches(x)?i=e.lastValue:e.throw(),o=!0;return void 0===t&&e.throw(),{offset:{width:t,height:n},radius:void 0!==r?r:0,color:void 0!==i?i:"black"}},I=d(/(nowrap|wrap|wrap-reverse)/),O=d(/(row|row-reverse|column|column-reverse)/),N=function(e){var t;if(e.matches(E))t=e.lastValue;else for(t=e.expect(C);e.hasTokens();)e.expect(f),t+=" "+e.expect(C);return e.expectEmpty(),{fontFamily:t}},L=d(/^(normal)$/),D=d(/^(italic)$/),M=d(/^([1-9]00|bold)$/),F=d(/^(small-caps)$/),V=[],z=d(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),j=d(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),B=d(/^(solid|double|dotted|dashed)$/),H=function(e){return function(t){var n=t.expect(e);return t.expectEmpty(),n}},W=H(y),U=H(b),$=H(w),Y=function(e){return function(t,n){return function(r){var i,o,a,s=r.expect(e);if(r.hasTokens())r.expect(p),a=r.expect(e);else{if(void 0===n)return s;a=n}return r.expectEmpty(),[(i={},i[t+"Y"]=a,i),(o={},o[t+"X"]=s,o)]}}},K=Y(y),q=Y(b),G=Y(w),X={perspective:W,scale:K("scale"),scaleX:W,scaleY:W,translate:q("translate",0),translateX:U,translateY:U,rotate:$,rotateX:$,rotateY:$,rotateZ:$,skewX:$,skewY:$,skew:G("skew","0deg")},Q=R({types:[x],prefix:"border",suffix:"Color"}),J=R({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Z=R({prefix:"border",suffix:"Width"}),ee=R({types:[b,_,S,g],prefix:"margin"}),te=R({prefix:"padding"}),ne={aspectRatio:function(e){var t=e.expect(y);return e.hasTokens()&&(e.expect(h),t/=e.expect(y)),{aspectRatio:t}},background:function(e){return{backgroundColor:e.expect(x)}},border:function(e){var t,n,r;if(e.matches(v))return e.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var i=0;i<3&&e.hasTokens();)0!==i&&e.expect(f),void 0===t&&e.matches(b,_)?t=e.lastValue:void 0===n&&e.matches(x)?n=e.lastValue:void 0===r&&e.matches(A)?r=e.lastValue:e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n="black"),void 0===r&&(r="solid"),{borderWidth:t,borderColor:n,borderStyle:r}},borderColor:Q,borderRadius:J,borderWidth:Z,boxShadow:function(e){var t=P(e);return{shadowOffset:t.offset,shadowRadius:t.radius,shadowColor:t.color,shadowOpacity:1}},flex:function(e){var t,n,r;if(e.matches(v))return e.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(e.saveRewindPoint(),e.matches(g)&&!e.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};e.rewind();for(var i=0;i<2&&e.hasTokens();)0!==i&&e.expect(f),void 0===t&&e.matches(y)?(t=e.lastValue,e.saveRewindPoint(),e.matches(f)&&e.matches(y)?n=e.lastValue:e.rewind()):void 0===r&&e.matches(b,_,S)?r=e.lastValue:void 0===r&&e.matches(g)?r="auto":e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),{flexGrow:t,flexShrink:n,flexBasis:r}},flexFlow:function(e){for(var t,n,r=0;r<2&&e.hasTokens();)0!==r&&e.expect(f),void 0===t&&e.matches(I)?t=e.lastValue:void 0===n&&e.matches(O)?n=e.lastValue:e.throw(),r+=1;return e.expectEmpty(),void 0===t&&(t="nowrap"),void 0===n&&(n="row"),{flexWrap:t,flexDirection:n}},font:function(e){for(var t,n,r,i,o=0;o<3&&e.hasTokens();){if(e.matches(L));else if(void 0===t&&e.matches(D))t=e.lastValue;else if(void 0===n&&e.matches(M))n=e.lastValue;else{if(void 0!==r||!e.matches(F))break;r=[e.lastValue]}e.expect(f),o+=1}var a=e.expect(b,_);e.matches(h)&&(i=e.expect(b,_)),e.expect(f);var s=N(e).fontFamily;void 0===t&&(t="normal"),void 0===n&&(n="normal"),void 0===r&&(r=V);var l={fontStyle:t,fontWeight:n,fontVariant:r,fontSize:a,fontFamily:s};return void 0!==i&&(l.lineHeight=i),l},fontFamily:N,fontVariant:function(e){for(var t=[e.expect(C)];e.hasTokens();)e.expect(f),t.push(e.expect(C));return{fontVariant:t}},fontWeight:function(e){return{fontWeight:e.expect(m)}},margin:ee,padding:te,placeContent:function(e){var t,n=e.expect(z);return e.hasTokens()?(e.expect(f),t=e.expect(j)):t="stretch",e.expectEmpty(),{alignContent:n,justifyContent:t}},shadowOffset:function(e){return{shadowOffset:T(e)}},textShadow:function(e){var t=P(e);return{textShadowOffset:t.offset,textShadowRadius:t.radius,textShadowColor:t.color}},textShadowOffset:function(e){return{textShadowOffset:T(e)}},textDecoration:function(e){for(var t,n,r,i=!1;e.hasTokens();){if(i&&e.expect(f),void 0===t&&e.matches(k)){var o=[e.lastValue.toLowerCase()];e.saveRewindPoint(),"none"!==o[0]&&e.matches(f)&&e.matches(k)?(o.push(e.lastValue.toLowerCase()),o.sort().reverse()):e.rewind(),t=o.join(" ")}else void 0===n&&e.matches(B)?n=e.lastValue:void 0===r&&e.matches(x)?r=e.lastValue:e.throw();i=!0}return{textDecorationLine:void 0!==t?t:"none",textDecorationColor:void 0!==r?r:"black",textDecorationStyle:void 0!==n?n:"solid"}},textDecorationLine:function(e){for(var t=[],n=!1;e.hasTokens();)n&&e.expect(f),t.push(e.expect(k).toLowerCase()),n=!0;return t.sort().reverse(),{textDecorationLine:t.join(" ")}},transform:function(e){for(var t=[],n=!1;e.hasTokens();){n&&e.expect(f);var r,i=e.expectFunction(),o=i.functionName,a=X[o](i);Array.isArray(a)||(a=[(r={},r[o]=a,r)]),t=a.concat(t),n=!0}return{transform:t}}},re="SYMBOL_MATCH",ie=function(){function e(e,t){this.index=0,this.nodes=e,this.functionName=null!=t?t.value:null,this.lastValue=null,this.rewindIndex=-1}var t=e.prototype;return t.hasTokens=function(){return this.index<=this.nodes.length-1},t[re]=function(){if(!this.hasTokens())return null;for(var e=this.nodes[this.index],t=0;t<arguments.length;t+=1){var n=(t<0||arguments.length<=t?void 0:arguments[t])(e);if(null!==n)return this.index+=1,this.lastValue=n,n}return null},t.matches=function(){return null!==this[re].apply(this,arguments)},t.expect=function(){var e=this[re].apply(this,arguments);return null!==e?e:this.throw()},t.matchesFunction=function(){var t=this.nodes[this.index];if("function"!==t.type)return null;var n=new e(t.nodes,t);return this.index+=1,this.lastValue=null,n},t.expectFunction=function(){var e=this.matchesFunction();return null!==e?e:this.throw()},t.expectEmpty=function(){this.hasTokens()&&this.throw()},t.throw=function(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},t.saveRewindPoint=function(){this.rewindIndex=this.index},t.rewind=function(){if(-1===this.rewindIndex)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},e}(),oe=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,ae=/^true|false$/i,se=/^null$/i,le=/^undefined$/i,ue=function(e,t,n){var r,i=!1===n||!(e in ne),a=t.trim();return i?((r={})[e]=function(e,t){var n=t.match(oe);if(null!==n)return Number(n[1]);var r=t.match(ae);return null!==r?"true"===r[0].toLowerCase():null!==t.match(se)?null:null===t.match(le)?t:void 0}(0,a),r):function(e,t){var n=o(t),r=new ie(n.nodes);return ne[e](r)}(e,a)};t.Ay=function(e,t){return void 0===t&&(t=[]),e.reduce(function(e,n){var r,i=(r=n[0],/^--\w+/.test(r)?r:a(r)),o=n[1],s=-1===t.indexOf(i);return Object.assign(e,ue(i,o,s))},{})}},9395(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},646(e){"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}}},4594(e,t,n){"use strict";var r=n(9395);e.exports=r},5685(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},6698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6485(e,t,n){"use strict";t.A=function(e){var t=e.prefixMap,n=e.plugins;return function e(s){for(var l in s){var u=s[l];if((0,a.default)(u))s[l]=e(u);else if(Array.isArray(u)){for(var c=[],d=0,f=u.length;d<f;++d){var h=(0,i.default)(n,l,u[d],s,t);(0,o.default)(c,h||u[d])}c.length>0&&(s[l]=c)}else{var p=(0,i.default)(n,l,u,s,t);p&&(s[l]=p),s=(0,r.default)(t,l,s)}}return s}};var r=s(n(2049)),i=s(n(7971)),o=s(n(9863)),a=s(n(1099));function s(e){return e&&e.__esModule?e:{default:e}}},4217(e,t){"use strict";t.A=function(){return null}},1261(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return o.map(function(e){return t.replace(i,e+"cross-fade(")})};var r=n(5486),i=/cross-fade\(/g,o=["-webkit-",""]},8041(e,t){"use strict";t.A=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},7033(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return o.map(function(e){return t.replace(i,e+"filter(")})};var r=n(5486),i=/filter\(/g,o=["-webkit-",""]},6852(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("image-set(")>-1)return o.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,i=(r=n(4014))&&r.__esModule?r:{default:r},o=["-webkit-",""]},20(e,t){"use strict";t.A=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var i=n[e],o=0,a=i.length;o<a;++o)r[i[o]]=t};var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]}},9996(e,t){"use strict";t.A=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}},5129(e,t){"use strict";t.A=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},508(e,t,n){"use strict";t.A=function(e,t,n,a){if("string"==typeof t&&s.hasOwnProperty(e)){var u=function(e,t){if((0,i.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,a=n.length;o<a;++o){var s=n[o],u=[s];for(var c in t){var d=(0,r.default)(c);if(s.indexOf(d)>-1&&"order"!==d)for(var f=t[c],h=0,p=f.length;h<p;++h)u.unshift(s.replace(d,l[f[h]]+d))}n[o]=u.join(",")}return n.join(",")}(t,a),c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return c;var d=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,o.default)(e)]=c,n["Moz"+(0,o.default)(e)]=d,u)}};var r=a(n(5721)),i=a(n(4014)),o=a(n(7091));function a(e){return e&&e.__esModule?e:{default:e}}var s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},9863(e,t){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)n(e,t[r]);else n(e,t)}},7091(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},1099(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},2049(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var o=(0,i.default)(t),a=0;a<r.length;++a){var s=r[a]+o;n[s]||(n[s]=n[t])}return n};var r,i=(r=n(7091))&&r.__esModule?r:{default:r}},7971(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}}},7918(e,t,n){"use strict";var r=n(8907).Y,i="undefined"!=typeof window?window.matchMedia:null;function o(e,t,n){var o,a=this;function s(e){a.matches=e.matches,a.media=e.media}i&&!n&&(o=i.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(s)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},5316(e,t,n){"use strict";var r=n(1042),i=n(356),o=n(4385),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e);var t,n}},356(e,t){"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},4385(e,t){"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},801(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},6041(e){function t(e){return function(t,n,r,o){var a,s=o&&function(e){return"function"==typeof e}(o.normalizer)?o.normalizer:i;n=s(n);for(var l=!1;!l;)u();function u(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[a];return null==i?void(l=!0):n.length?void(t=i):void(l=!0)}}}a=void 0,l=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},5482(e,t,n){var r=n(8809),i=n(8449),o=n(9063);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=n(2882),a.walk=i,a.stringify=o,e.exports=a},8809(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),u="*".charCodeAt(0),c="u".charCodeAt(0),d="U".charCodeAt(0),f="+".charCodeAt(0),h=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var p,m,v,g,y,b,_,w,S,C=[],E=e,x=0,k=E.charCodeAt(x),A=E.length,R=[{nodes:C}],T=0,P="",I="",O="";x<A;)if(k<=32){p=x;do{p+=1,k=E.charCodeAt(p)}while(k<=32);g=E.slice(x,p),v=C[C.length-1],k===n&&T?O=g:v&&"div"===v.type?(v.after=g,v.sourceEndIndex+=g.length):k===s||k===l||k===a&&E.charCodeAt(p+1)!==u&&(!S||S&&"function"===S.type&&"calc"!==S.value)?I=g:C.push({type:"space",sourceIndex:x,sourceEndIndex:p,value:g}),x=p}else if(k===r||k===i){p=x,g={type:"string",sourceIndex:x,quote:m=k===r?"'":'"'};do{if(y=!1,~(p=E.indexOf(m,p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=m).length-1,g.unclosed=!0}while(y);g.value=E.slice(x+1,p),g.sourceEndIndex=g.unclosed?p:p+1,C.push(g),x=p+1,k=E.charCodeAt(x)}else if(k===a&&E.charCodeAt(x+1)===u)g={type:"comment",sourceIndex:x,sourceEndIndex:(p=E.indexOf("*/",x))+2},-1===p&&(g.unclosed=!0,p=E.length,g.sourceEndIndex=p),g.value=E.slice(x+2,p),C.push(g),x=p+2,k=E.charCodeAt(x);else if(k!==a&&k!==u||!S||"function"!==S.type||"calc"!==S.value)if(k===a||k===s||k===l)g=E[x],C.push({type:"div",sourceIndex:x-I.length,sourceEndIndex:x+g.length,value:g,before:I,after:""}),I="",x+=1,k=E.charCodeAt(x);else if(t===k){p=x;do{p+=1,k=E.charCodeAt(p)}while(k<=32);if(w=x,g={type:"function",sourceIndex:x-P.length,value:P,before:E.slice(w+1,p)},x=p,"url"===P&&k!==r&&k!==i){p-=1;do{if(y=!1,~(p=E.indexOf(")",p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=")").length-1,g.unclosed=!0}while(y);_=p;do{_-=1,k=E.charCodeAt(_)}while(k<=32);w<_?(g.nodes=x!==_+1?[{type:"word",sourceIndex:x,sourceEndIndex:_+1,value:E.slice(x,_+1)}]:[],g.unclosed&&_+1!==p?(g.after="",g.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:p,value:E.slice(_+1,p)})):(g.after=E.slice(_+1,p),g.sourceEndIndex=p)):(g.after="",g.nodes=[]),x=p+1,g.sourceEndIndex=g.unclosed?p:x,k=E.charCodeAt(x),C.push(g)}else T+=1,g.after="",g.sourceEndIndex=x+1,C.push(g),R.push(g),C=g.nodes=[],S=g;P=""}else if(n===k&&T)x+=1,k=E.charCodeAt(x),S.after=O,S.sourceEndIndex+=O.length,O="",T-=1,R[R.length-1].sourceEndIndex=x,R.pop(),C=(S=R[T]).nodes;else{p=x;do{k===o&&(p+=1),p+=1,k=E.charCodeAt(p)}while(p<A&&!(k<=32||k===r||k===i||k===s||k===l||k===a||k===t||k===u&&S&&"function"===S.type&&"calc"===S.value||k===a&&"function"===S.type&&"calc"===S.value||k===n&&T));g=E.slice(x,p),t===k?P=g:c!==g.charCodeAt(0)&&d!==g.charCodeAt(0)||f!==g.charCodeAt(1)||!h.test(g.slice(2))?C.push({type:"word",sourceIndex:x,sourceEndIndex:p,value:g}):C.push({type:"unicode-range",sourceIndex:x,sourceEndIndex:p,value:g}),x=p}else g=E[x],C.push({type:"word",sourceIndex:x-I.length,sourceEndIndex:x+g.length,value:g}),x+=1,k=E.charCodeAt(x);for(x=R.length-1;x;x-=1)R[x].unclosed=!0,R[x].sourceEndIndex=E.length;return R[0].nodes}},9063(e){function t(e,t){var r,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes,t),"function"!==o?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,i;if(Array.isArray(e)){for(r="",i=e.length-1;~i;i-=1)r=t(e[i],n)+r;return r}return t(e,n)}e.exports=n},2882(e){var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);e.exports=function(e){var a,s,l,u=0,c=e.length;if(0===c||!function(e){var i,o=e.charCodeAt(0);if(o===n||o===t){if((i=e.charCodeAt(1))>=48&&i<=57)return!0;var a=e.charCodeAt(2);return i===r&&a>=48&&a<=57}return o===r?(i=e.charCodeAt(1))>=48&&i<=57:o>=48&&o<=57}(e))return!1;for((a=e.charCodeAt(u))!==n&&a!==t||u++;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),a===r&&s>=48&&s<=57)for(u+=2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),l=e.charCodeAt(u+2),(a===i||a===o)&&(s>=48&&s<=57||(s===n||s===t)&&l>=48&&l<=57))for(u+=s===n||s===t?3:2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;return{number:e.slice(0,u),unit:e.slice(u)}}},8449(e){e.exports=function e(t,n,r){var i,o,a,s;for(i=0,o=t.length;i<o;i+=1)a=t[i],r||(s=n(a,i,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,i,t)}},2694(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551(e,t,n){"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,F=Object.assign;function V(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function j(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function B(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return j(e.type,!1);case 11:return j(e.type.render,!1);case 1:return j(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case x:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var ge=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,Ee=null;function xe(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function ke(e){Ce?Ee?Ee.push(e):Ee=[e]:Ce=e}function Ae(){if(Ce){var e=Ce,t=Ee;if(Ee=Ce=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Re(e,t){return e(t)}function Te(){}var Pe=!1;function Ie(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,(null!==Ce||null!==Ee)&&(Te(),Ae())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ne=!1}function De(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Fe=null,Ve=!1,ze=null,je={onError:function(e){Me=!0,Fe=e}};function Be(e,t,n,r,i,o,a,s,l){Me=!1,Fe=null,De.apply(je,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(o(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Qe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,Ct,Et,xt,kt=!1,At=[],Rt=null,Tt=null,Pt=null,It=new Map,Ot=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void xt(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){Vt(e)&&n.delete(t)}function jt(){kt=!1,null!==Rt&&Vt(Rt)&&(Rt=null),null!==Tt&&Vt(Tt)&&(Tt=null),null!==Pt&&Vt(Pt)&&(Pt=null),It.forEach(zt),Ot.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Bt(Rt,e),null!==Tt&&Bt(Tt,e),null!==Pt&&Bt(Pt,e),It.forEach(t),Ot.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Nt.shift()}var Wt=_.ReactCurrentBatchConfig,Ut=!0;function $t(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function Yt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function Kt(e,t,n,r){if(Ut){var i=Gt(e,t,n,r);if(null===i)Ur(e,t,r,qt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Rt=Mt(Rt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ot.set(o,Mt(Ot.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Ur(e,t,r,qt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var qt=null;function Gt(e,t,n,r){if(qt=null,null!==(e=yi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=F({},un,{view:0,detail:0}),fn=on(dn),hn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),mn=on(F({},hn,{dataTransfer:0})),vn=on(F({},dn,{relatedTarget:0})),gn=on(F({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(F({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function xn(){return En}var kn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(kn),Rn=on(F({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xn})),Pn=on(F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=F({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=on(In),Nn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Dn,Fn=c&&(!Ln||Dn&&8<Dn&&11>=Dn),Vn=String.fromCharCode(32),zn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function $n(e,t,n,r){ke(r),0<(t=Yr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Kn=null;function qn(e){Vr(e,0)}function Gn(e){if(K(_i(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Yn&&(Yn.detachEvent("onpropertychange",nr),Kn=Yn=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];$n(t,Kn,e,we(e)),Ie(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Yn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function or(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function hr(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 pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==q(r)||(r="selectionStart"in(r=vr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Yr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},Er={};function xr(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Cr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=xr("animationend"),Ar=xr("animationiteration"),Rr=xr("animationstart"),Tr=xr("transitionend"),Pr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Pr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Ir.length;Nr++){var Lr=Ir[Nr];Or(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Or(kr,"onAnimationEnd"),Or(Ar,"onAnimationIteration"),Or(Rr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Fe;Me=!1,Fe=null,Ve||(Ve=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Vr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}}}if(Ve)throw e=ze,Ve=!1,ze=null,e}function zr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Mr.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,jr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var i=$t;break;case 4:i=Yt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ie(function(){var r=o,i=we(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Ar:case Rr:l=gn;break;case Tr:l=Pn;break;case"scroll":l=fn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&null!=(m=Oe(p,f))&&c.push($r(p,m,h))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:_i(l),h=null==u?s:_i(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,yi(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Kr(h))p++;for(h=0,m=f;m;m=Kr(m))h++;for(;0<p-h;)c=Kr(c),p--;for(;0<h-p;)f=Kr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==l&&qr(a,s,l,c,!1),null!==u&&null!==d&&qr(a,d,u,c,!0)}if("select"===(l=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Xn;else if(Un(s))if(Qn)v=ar;else{v=ir;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?$n(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?_i(r):window,e){case"focusin":(Un(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Hn=!0)),0<(g=Yr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:g}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Vn);case"textInput":return(e=t.data)===Vn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&jn(e,t)?(e=en(),Zt=Jt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Yr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Vr(a,t)})}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Oe(e,n))&&r.unshift($r(e,o,i)),null!=(o=Oe(e,t))&&r.push($r(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Oe(n,o))&&a.unshift($r(n,l,s)):i||null!=(l=Oe(n,o))&&a.push($r(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,vi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var Si=[],Ci=-1;function Ei(e){return{current:e}}function xi(e){0>Ci||(e.current=Si[Ci],Si[Ci]=null,Ci--)}function ki(e,t){Ci++,Si[Ci]=e.current,e.current=t}var Ai={},Ri=Ei(Ai),Ti=Ei(!1),Pi=Ai;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oi(e){return null!=e.childContextTypes}function Ni(){xi(Ti),xi(Ri)}function Li(e,t,n){if(Ri.current!==Ai)throw Error(o(168));ki(Ri,t),ki(Ti,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return F({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Pi=Ri.current,ki(Ri,e),ki(Ti,Ti.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,xi(Ti),xi(Ri),ki(Ri,e)):xi(Ti),ki(Ti,n)}var Vi=null,zi=!1,ji=!1;function Bi(e){null===Vi?Vi=[e]:Vi.push(e)}function Hi(){if(!ji&&null!==Vi){ji=!0;var e=0,t=bt;try{var n=Vi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vi=null,zi=!1}catch(t){throw null!==Vi&&(Vi=Vi.slice(e+1)),Ke(Ze,Hi),t}finally{bt=t,ji=!1}}return null}var Wi=[],Ui=0,$i=null,Yi=0,Ki=[],qi=0,Gi=null,Xi=1,Qi="";function Ji(e,t){Wi[Ui++]=Yi,Wi[Ui++]=$i,$i=e,Yi=t}function Zi(e,t,n){Ki[qi++]=Xi,Ki[qi++]=Qi,Ki[qi++]=Gi,Gi=e;var r=Xi;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Xi=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function to(e){for(;e===$i;)$i=Wi[--Ui],Wi[Ui]=null,Yi=Wi[--Ui],Wi[Ui]=null;for(;e===Gi;)Gi=Ki[--qi],Ki[qi]=null,Qi=Ki[--qi],Ki[qi]=null,Xi=Ki[--qi],Ki[qi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Pu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Xi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=_.ReactCurrentBatchConfig;function go(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function _o(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&bo(o)===t.type)?((r=i(t,n.props)).ref=go(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=go(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=go(e,null,t),n.return=e,n;case S:return(t=Fu(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Lu(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case O:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case O:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=h(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(i,d),io&&Ji(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Ji(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(v=p(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach(function(e){return t(i,e)}),io&&Ji(i,m),u}function v(i,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=h(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return n(i,m),io&&Ji(i,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return io&&Ji(i,v),c}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=p(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),io&&Ji(i,v),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===C){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===O&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=go(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===C?((o=Lu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Nu(a.type,a.key,a.props,null,r.mode,l)).ref=go(r,o,a),l.return=r,r=l)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fu(a,r.mode,l)).return=r,r=o}return s(r);case O:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(D(a))return v(r,o,a,l);yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Mu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=_o(!0),So=_o(!1),Co=Ei(null),Eo=null,xo=null,ko=null;function Ao(){ko=xo=Eo=null}function Ro(e){var t=Co.current;xi(Co),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){Eo=e,ko=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===Eo)throw Error(o(308));xo=e,Eo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Oo=null;function No(e){null===Oo?Oo=[e]:Oo.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wo(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=F({},d,f);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var $o={},Yo=Ei($o),Ko=Ei($o),qo=Ei($o);function Go(e){if(e===$o)throw Error(o(174));return e}function Xo(e,t){switch(ki(qo,t),ki(Ko,e),ki(Yo,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(Yo),ki(Yo,t)}function Qo(){xi(Yo),xi(Ko),xi(qo)}function Jo(e){Go(qo.current);var t=Go(Yo.current),n=le(t,e.type);t!==n&&(ki(Ko,e),ki(Yo,n))}function Zo(e){Ko.current===e&&(xi(Yo),xi(Ko))}var ea=Ei(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=_.ReactCurrentDispatcher,oa=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,ha=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Za:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function ga(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function _a(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,sa.lanes|=d,Dl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function Ea(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Ia(9,ka.bind(null,n,r,i,t),void 0,null),null===Rl)throw Error(o(349));30&aa||xa(n,t,i)}return i}function xa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Ta(e)}function Aa(e,t,n){return n(function(){Ra(t)&&Ta(e)})}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ta(e){var t=Do(e,1);null!==t&&tu(t,e,1,-1)}function Pa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=qa.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Oa(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ia(t,n,o,r))}sa.flags|=e,i.memoizedState=Ia(1|t,n,o,r)}function Da(e,t){return Na(8390656,8,e,t)}function Ma(e,t){return La(2048,8,e,t)}function Fa(e,t){return La(4,2,e,t)}function Va(e,t){return La(4,4,e,t)}function za(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ja(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,za.bind(null,t,e),n)}function Ba(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function $a(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Ya(){return ba().memoizedState}function Ka(e,t,n){var r=eu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=Lo(e,t,n,r))&&(tu(n,e,r,Zl()),Qa(n,t,r))}function qa(e,t,n){var r=eu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,No(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Lo(e,t,i,r))&&(tu(n,e,r,i=Zl()),Qa(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Io,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:Io,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Na(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Pa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=$a.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Rl)throw Error(o(349));30&aa||xa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Da(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:Ha,useContext:Io,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:Wa,useReducer:wa,useRef:Oa,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Ua(ba(),la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:Ha,useContext:Io,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:Wa,useReducer:Sa,useRef:Oa,useState:function(){return Sa(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[Sa(_a)[0],ba().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=zo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=zo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),r=eu(e),i=zo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=jo(e,i,r))&&(tu(t,e,r,n),Bo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function as(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"==typeof o&&null!==o?o=Io(o):(i=Oi(t)?Pi:Ri.current,o=(r=null!=(r=t.contextTypes))?Ii(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Fo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Io(o):(o=Oi(t)?Pi:Ri.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Wo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Ul=r),ds(0,t)},n}function ps(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===$l?$l=new Set([this]):$l.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,jo(n,t,1))),n.lanes|=1),e)}var ys=_.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?So(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=va(e,t,n,r,o,i),n=ga(),null===e||bs?(io&&n&&eo(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Iu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Ws(e,t,i)}return t.flags|=1,(e=Ou(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Ws(e,t,i);131072&e.flags&&(bs=!0)}}return ks(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Ol,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Ol,Il),Il|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Ol,Il),Il|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Ol,Il),Il|=r;return _s(e,t,i,n),t.child}function xs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Oi(n)?Pi:Ri.current;return o=Ii(t,o),Po(t,i),n=va(e,t,n,r,o,i),r=ga(),null===e||bs?(io&&r&&eo(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function As(e,t,n,r,i){if(Oi(n)){var o=!0;Mi(t)}else o=!1;if(Po(t,i),null===t.stateNode)Hs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Io(u):Ii(t,u=Oi(n)?Pi:Ri.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Mo=!1;var f=t.memoizedState;a.state=f,Wo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ti.current||Mo?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Vo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Io(l):Ii(t,l=Oi(n)?Pi:Ri.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mo=!1,f=t.memoizedState,a.state=f,Wo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ti.current||Mo?("function"==typeof h&&(rs(t,n,h,r),p=t.memoizedState),(u=Mo||os(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,i)}function Rs(e,t,n,r,i,o){xs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Fi(t,n,!1),Ws(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Xo(e,t.containerInfo)}function Ps(e,t,n,r,i){return po(),mo(i),t.flags|=256,_s(e,t,n,r),t.child}var Is,Os,Ns,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Du(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Lu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ls,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Du({mode:"visible",children:r.children},i,0,null),(a=Lu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ls,a);if(!(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Vs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),tu(r,e,i,-1))}return pu(),Vs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=ku.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[qi++]=Xi,Ki[qi++]=Qi,Ki[qi++]=Gi,Xi=e.id,Qi=e.overflow,Gi=t),(t=Fs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?s=Ou(r,s):(s=Lu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function js(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),js(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}js(t,!0,n,null,o);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ou(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ou(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $s(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $s(t),null;case 1:case 17:return Oi(t.type)&&Ni(),$s(t),null;case 3:return r=t.stateNode,Qo(),xi(Ti),xi(Ri),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(ou(oo),oo=null))),$s(t),null;case 5:Zo(t);var i=Go(qo.current);if(n=t.type,null!==e&&null!=t.stateNode)Os(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return $s(t),null}if(e=Go(Yo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)zr(Dr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":Y(r),Z(r,a,!0);break;case"textarea":Y(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[hi]=r,Is(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)zr(Dr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":Y(e),Z(e,r,!1);break;case"textarea":Y(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $s(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Go(qo.current),Go(Yo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return $s(t),null;case 13:if(xi(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$s(t),a=!1}else null!==oo&&(ou(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Nl&&(Nl=3):pu())),null!==t.updateQueue&&(t.flags|=4),$s(t),null);case 4:return Qo(),null===e&&Hr(t.stateNode.containerInfo),$s(t),null;case 10:return Ro(t.type._context),$s(t),null;case 19:if(xi(ea),null===(a=t.memoizedState))return $s(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Us(a,!1);else{if(0!==Nl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Us(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Bl&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Us(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return $s(t),null}else 2*Qe()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):($s(t),null);case 22:case 23:return cu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Il)&&($s(t),6&t.subtreeFlags&&(t.flags|=8192)):$s(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ks(e,t){switch(to(t),t.tag){case 1:return Oi(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),xi(Ti),xi(Ri),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(xi(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(ea),null;case 4:return Qo(),null;case 10:return Ro(t.type._context),null;case 22:case 23:return cu(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Go(Yo.current);var o,a=null;switch(n){case"input":i=G(e,i),r=G(e,r),a=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Gs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function Zs(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Zs(t,n,o)}i=i.next}while(i!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[mi],delete t[vi],delete t[gi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var ul=null,cl=!1;function dl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Gs||Js(n,t);case 6:var r=ul,i=cl;ul=null,dl(e,t,n),cl=i,null!==(ul=r)&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(ul,n.stateNode));break;case 4:r=ul,i=cl,ul=n.stateNode.containerInfo,cl=!0,dl(e,t,n),ul=r,cl=i;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Zs(n,t,a),i=i.next}while(i!==r)}dl(e,t,n);break;case 1:if(!Gs&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,dl(e,t,n),Gs=r):dl(e,t,n);break;default:dl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function pl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,cl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,cl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));fl(a,s,i),ul=null,cl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Cu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),vl(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(t){Cu(e,e.return,t)}try{tl(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:pl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(pl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Cu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ve(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(t){Cu(e,e.return,t)}}break;case 6:if(pl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cu(e,e.return,t)}}break;case 3:if(pl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:pl(t,e),vl(e);break;case 13:pl(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(jl=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,pl(t,e),Gs=c):pl(t,e),vl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(p=(h=Qs).child,h.tag){case 0:case 11:case 14:case 15:tl(4,h,h.return);break;case 1:Js(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(r,n,e)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){_l(f);continue}}null!==p?(p.return=h,Qs=p):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Cu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:pl(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ll(e,al(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;sl(e,al(e),a);break;default:throw Error(o(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e,t,n){Qs=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Qs;){var i=Qs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||qs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=qs;var u=Gs;if(qs=a,(Gs=l)&&!u)for(Qs=i;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?wl(i):null!==l?(l.return=a,Qs=l):wl(i);for(;null!==o;)Qs=o,yl(o,t,n),o=o.sibling;Qs=i,qs=s,Gs=u}bl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Qs=o):bl(e)}}function bl(e){for(;null!==Qs;){var t=Qs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Gs||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Uo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Uo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&rl(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function _l(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function wl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Cu(t,i,e)}}var o=t.return;try{rl(t)}catch(e){Cu(t,o,e)}break;case 5:var a=t.return;try{rl(t)}catch(e){Cu(t,a,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var Sl,Cl=Math.ceil,El=_.ReactCurrentDispatcher,xl=_.ReactCurrentOwner,kl=_.ReactCurrentBatchConfig,Al=0,Rl=null,Tl=null,Pl=0,Il=0,Ol=Ei(0),Nl=0,Ll=null,Dl=0,Ml=0,Fl=0,Vl=null,zl=null,jl=0,Bl=1/0,Hl=null,Wl=!1,Ul=null,$l=null,Yl=!1,Kl=null,ql=0,Gl=0,Xl=null,Ql=-1,Jl=0;function Zl(){return 6&Al?Qe():-1!==Ql?Ql:Ql=Qe()}function eu(e){return 1&e.mode?2&Al&&0!==Pl?Pl&-Pl:null!==vo.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function tu(e,t,n,r){if(50<Gl)throw Gl=0,Xl=null,Error(o(185));gt(e,n,r),2&Al&&e===Rl||(e===Rl&&(!(2&Al)&&(Ml|=n),4===Nl&&au(e,Pl)),nu(e,r),1===n&&0===Al&&!(1&t.mode)&&(Bl=Qe()+500,zi&&Hi()))}function nu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Rl?Pl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){zi=!0,Bi(e)}(su.bind(null,e)):Bi(su.bind(null,e)),ai(function(){!(6&Al)&&Hi()}),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Ql=-1,Jl=0,6&Al)throw Error(o(327));var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Pl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var i=Al;Al|=2;var a=hu();for(Rl===e&&Pl===t||(Hl=null,Bl=Qe()+500,du(e,t));;)try{gu();break}catch(t){fu(e,t)}Ao(),El.current=a,Al=i,null!==Tl?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=iu(e,i)),1===t)throw n=Ll,du(e,0),au(e,r),nu(e,Qe()),n;if(6===t)au(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=mu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=Ll,du(e,0),au(e,r),nu(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_u(e,zl,Hl);break;case 3:if(au(e,r),(130023424&r)===r&&10<(t=jl+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Zl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,zl,Hl),t);break}_u(e,zl,Hl);break;case 4:if(au(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,zl,Hl),r);break}_u(e,zl,Hl);break;default:throw Error(o(329))}}}return nu(e,Qe()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Vl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=zl,zl=n,null!==t&&ou(t)),e}function ou(e){null===zl?zl=e:zl.push.apply(zl,e)}function au(e,t){for(t&=~Fl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Al)throw Error(o(327));wu();var t=ft(e,0);if(!(1&t))return nu(e,Qe()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Ll,du(e,0),au(e,t),nu(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,zl,Hl),nu(e,Qe()),null}function lu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Bl=Qe()+500,zi&&Hi())}}function uu(e){null!==Kl&&0===Kl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=kl.transition,r=bt;try{if(kl.transition=null,bt=1,e)return e()}finally{bt=r,kl.transition=n,!(6&(Al=t))&&Hi()}}function cu(){Il=Ol.current,xi(Ol)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ni();break;case 3:Qo(),xi(Ti),xi(Ri),ra();break;case 5:Zo(r);break;case 4:Qo();break;case 13:case 19:xi(ea);break;case 10:Ro(r.type._context);break;case 22:case 23:cu()}n=n.return}if(Rl=e,Tl=e=Ou(e.current,null),Pl=Il=t,Nl=0,Ll=null,Fl=Ml=Dl=0,zl=Vl=null,null!==Oo){for(t=0;t<Oo.length;t++)if(null!==(r=(n=Oo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Oo=null}return e}function fu(e,t){for(;;){var n=Tl;try{if(Ao(),ia.current=Ja,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,xl.current=null,null===n||null===n.return){Nl=1,Ll=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Pl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,gs(p,s,l,0,t),1&p.mode&&ms(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){ms(a,c,t),pu();break e}u=Error(o(426))}else if(io&&1&l.mode){var g=vs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),mo(us(u,l));break e}}a=u=us(u,l),4!==Nl&&(Nl=2),null===Vl?Vl=[a]:Vl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,hs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==$l&&$l.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}bu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function hu(){var e=El.current;return El.current=Ja,null===e?Ja:e}function pu(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||!(268435455&Dl)&&!(268435455&Ml)||au(Rl,Pl)}function mu(e,t){var n=Al;Al|=2;var r=hu();for(Rl===e&&Pl===t||(Hl=null,du(e,t));;)try{vu();break}catch(t){fu(e,t)}if(Ao(),Al=n,El.current=r,null!==Tl)throw Error(o(261));return Rl=null,Pl=0,Nl}function vu(){for(;null!==Tl;)yu(Tl)}function gu(){for(;null!==Tl&&!Ge();)yu(Tl)}function yu(e){var t=Sl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?bu(e):Tl=t,xl.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Nl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Il)))return void(Tl=n);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function _u(e,t,n){var r=bt,i=kl.transition;try{kl.transition=null,bt=1,function(e,t,n,r){do{wu()}while(null!==Kl);if(6&Al)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Rl&&(Tl=Rl=null,Pl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,Ru(tt,function(){return wu(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=kl.transition,kl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,xl.current=null,function(e,t){if(ei=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(l=s),h===a&&++d===r&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ns(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=el,el=!1}(e,n),ml(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,gl(n,e,i),Xe(),Al=l,bt=s,kl.transition=a}else e.current=n;if(Yl&&(Yl=!1,Kl=e,ql=i),0===(a=e.pendingLanes)&&($l=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nu(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Wl)throw Wl=!1,e=Ul,Ul=null,e;!!(1&ql)&&0!==e.tag&&wu(),1&(a=e.pendingLanes)?e===Xl?Gl++:(Gl=0,Xl=e):Gl=0,Hi()}(e,t,n,r)}finally{kl.transition=i,bt=r}return null}function wu(){if(null!==Kl){var e=_t(ql),t=kl.transition,n=bt;try{if(kl.transition=null,bt=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,ql=0,6&Al)throw Error(o(331));var i=Al;for(Al|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(16&Qs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Qs=c;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:tl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var h=(d=Qs).sibling,p=d.return;if(il(d),d===c){Qs=null;break}if(null!==h){h.return=p,Qs=h;break}Qs=p}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Qs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(2048&(a=Qs).flags)switch(a.tag){case 0:case 11:case 15:tl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Qs=y;break e}Qs=a.return}}var b=e.current;for(Qs=b;null!==Qs;){var _=(s=Qs).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Qs=_;else e:for(s=b;null!==Qs;){if(2048&(l=Qs).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){Cu(l,l.return,e)}if(l===s){Qs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Qs=w;break e}Qs=l.return}}if(Al=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,kl.transition=t}}return!1}function Su(e,t,n){e=jo(e,t=hs(0,t=us(n,t),1),1),t=Zl(),null!==e&&(gt(e,1,t),nu(e,t))}function Cu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$l||!$l.has(r))){t=jo(t,e=ps(t,e=us(n,e),1),1),e=Zl(),null!==t&&(gt(t,1,e),nu(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Qe()-jl?du(e,0):Fl|=n),nu(e,t)}function xu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Zl();null!==(e=Do(e,t))&&(gt(e,t,n),nu(e,n))}function ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xu(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),xu(e,n)}function Ru(e,t){return Ke(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,n,r){return new Tu(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Iu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Lu(n.children,i,a,t);case E:s=8,i|=8;break;case x:return(e=Pu(12,n,t,2|i)).elementType=x,e.lanes=a,e;case T:return(e=Pu(13,n,t,i)).elementType=T,e.lanes=a,e;case P:return(e=Pu(19,n,t,i)).elementType=P,e.lanes=a,e;case N:return Du(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case A:s=9;break e;case R:s=11;break e;case I:s=14;break e;case O:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Lu(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,i,o,a,s,l){return e=new Vu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Pu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fo(o),e}function ju(e){if(!e)return Ai;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Oi(n))return Di(e,n,t)}return t}function Bu(e,t,n,r,i,o,a,s,l){return(e=zu(n,r,!0,e,0,o,0,s,l)).context=ju(null),n=e.current,(o=zo(r=Zl(),i=eu(n))).callback=null!=t?t:null,jo(n,o,i),e.current.lanes=i,gt(e,i,r),nu(e,r),e}function Hu(e,t,n,r){var i=t.current,o=Zl(),a=eu(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=jo(i,t,a))&&(tu(e,i,a,o),Bo(e,i,a)),a}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $u(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),po();break;case 5:Jo(t);break;case 1:Oi(t.type)&&Mi(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(Co,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(ki(ea,1&ea.current),null!==(e=Ws(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Ws(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,io&&1048576&t.flags&&Zi(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Ii(t,Ri.current);Po(t,n),i=va(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oi(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Fo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Iu(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Vo(e,t),Wo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ps(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Ws(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),xs(e,t),_s(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ms(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(Co,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Ws(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=zo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),To(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),r=r(i=Io(i)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ss(e,t,r,i=ns(r.type,i),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Hs(e,t),t.tag=1,Oi(r)?(e=!0,Mi(t)):e=!1,Po(t,n),as(t,r,i),ls(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Es(e,t,n)}throw Error(o(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(){}function Ju(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Wu(a);s.call(e)}}Hu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Wu(a);o.call(e)}}var a=Bu(t,r,e,0,null,!1,0,"",Qu);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),uu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Wu(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",Qu);return e._reactRootContainer=l,e[pi]=l.current,Hr(8===e.nodeType?e.parentNode:e),uu(function(){Hu(t,l,n,r)}),l}(n,t,e,i,r);return Wu(a)}qu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},qu.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uu(function(){Hu(null,e,null,null)}),t[pi]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),nu(t,Qe()),!(6&Al)&&(Bl=Qe()+500,Hi()))}break;case 13:uu(function(){var t=Do(e,1);if(null!==t){var n=Zl();tu(t,e,1,n)}}),$u(e,1)}},St=function(e){if(13===e.tag){var t=Do(e,134217728);null!==t&&tu(t,e,134217728,Zl()),$u(e,134217728)}},Ct=function(e){if(13===e.tag){var t=eu(e),n=Do(e,t);null!==n&&tu(n,e,t,Zl()),$u(e,t)}},Et=function(){return bt},xt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=lu,Te=uu;var Zu={usingClientEntryPoint:!1,Events:[bi,_i,wi,ke,Ae,lu]},ec={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{it=nc.inject(tc),ot=nc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(o(299));var n=!1,r="",i=Yu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Ku(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return uu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Yu;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new qu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(uu(function(){Ju(null,null,e,!1,function(){e._reactRootContainer=null,e[pi]=null})}),!0)},t.unstable_batchedUpdates=lu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338(e,t,n){"use strict";var r=n(961);t.H=r.createRoot,t.c=r.hydrateRoot},961(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2869(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(8168),i=n(8587),o=n(6540),a=n(8997),s=n(9176),l=["animating","color","hidesWhenStopped","size","style"],u=e=>o.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),c=o.forwardRef((e,t)=>{var n=e.animating,a=void 0===n||n,c=e.color,h=void 0===c?"#1976D2":c,p=e.hidesWhenStopped,m=void 0===p||p,v=e.size,g=void 0===v?"small":v,y=e.style,b=(0,i.A)(e,l),_=o.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},u({stroke:h,opacity:.2}),u({stroke:h,strokeDasharray:80,strokeDashoffset:60}));return o.createElement(s.A,(0,r.A)({},b,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[d.container,y]}),o.createElement(s.A,{children:_,style:["number"==typeof g?{height:g,width:g}:f[g],d.animation,!a&&d.animationPause,!a&&m&&d.hidesWhenStopped]}))});c.displayName="ActivityIndicator";var d=a.A.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),f=a.A.create({small:{width:20,height:20},large:{width:36,height:36}});const h=c},9697(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(5725).A},3384(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(646),i=n.n(r),o=n(7162),a={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},s={},l=o.A;function u(){if(o.A){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}a.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},a.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function c(){u(),Array.isArray(s.change)&&s.change.forEach(e=>e(a))}class d{static get(e){return l&&(l=!1,u()),i()(a[e],"No dimension set for key "+e),a[e]}static set(e){e&&(o.A?i()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(a.screen=e.screen),null!=e.window&&(a.window=e.window)))}static addEventListener(e,t){return s[e]=s[e]||[],s[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(s[e])&&(s[e]=s[e].filter(e=>e!==t))}}o.A&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},728(e,t,n){"use strict";n.d(t,{A:()=>O});var r=n(2555),i=n(8168),o=n(8587),a=n(6540),s=n(3642),l=[];function u(e){return l[e-1]}var c=n(6927),d=/^data:/;class f{static has(e){var t=f._entries;return d.test(e)||Boolean(t[e])}static add(e){var t=f._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=f._entries;t[e]&&(t[e].refCount-=1),f._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=f._entries,r=Object.keys(n);r.length+1>f._maximumEntries&&(r.forEach(r=>{var i=n[r];(!t||i.lastUsedTimestamp<t.lastUsedTimestamp)&&0===i.refCount&&(e=r,t=i)}),e&&delete n[e])}}f._maximumEntries=256,f._entries={};var h=0,p={},m={abort(e){var t=p[""+e];t&&(t.onerror=null,t.onload=null,t=null,delete p[""+e])},getSize(e,t,n){var r=!1,i=setInterval(a,16),o=m.load(e,a,function(){"function"==typeof n&&n(),m.abort(o),clearInterval(i)});function a(){var e=p[""+o];if(e){var n=e.naturalHeight,a=e.naturalWidth;n&&a&&(t(a,n),r=!0)}r&&(m.abort(o),clearInterval(i))}},has:e=>f.has(e),load(e,t,n){h+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"==typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,p[""+h]=r,h},prefetch:e=>new Promise((t,n)=>{m.load(e,()=>{f.add(e),f.remove(e),t()},n)}),queryCache(e){var t={};return e.forEach(e=>{f.has(e)&&(t[e]="disk/memory")}),Promise.resolve(t)}};const v=m;var g=n(9518),y=n(8997),b=n(5243),_=n(9176),w=n(4078),S=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],C="LOADED",E="LOADING",x=0,k=/^(data:image\/svg\+xml;utf8,)(.*)/;function A(e){var t=null;if("number"==typeof e){var n=u(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var i=g.A.get();r=n.scales.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e)}var o=1!==r?"@"+r+"x":"";t=n?n.httpServerLocation+"/"+n.name+o+"."+n.type:""}else"string"==typeof e?t=e:e&&"string"==typeof e.uri&&(t=e.uri);if(t){var a=t.match(k);if(a){var s=a[1],l=a[2];return""+s+encodeURIComponent(l)}}return t}var R=a.forwardRef((e,t)=>{var n=e["aria-label"],r=e.accessibilityLabel,l=e.blurRadius,d=e.defaultSource,f=e.draggable,h=e.onError,p=e.onLayout,m=e.onLoad,g=e.onLoadEnd,k=e.onLoadStart,R=e.pointerEvents,T=e.source,O=e.style,N=(0,o.A)(e,S),L=n||r,D=a.useState(()=>{var e=A(T);return null!=e&&v.has(e)?C:"IDLE"}),M=D[0],F=D[1],V=a.useState({}),z=V[0],j=V[1],B=a.useContext(b.A),H=a.useRef(null),W=a.useRef(x++),U=a.useRef(null),$=M===C||M===E&&null==d,Y=function(e,t,n,r){var i=y.A.flatten(e),o=i.filter,a=i.resizeMode,s=i.shadowOffset,l=i.tintColor;i.resizeMode&&(0,w.m)("Image.style.resizeMode","Image: style.resizeMode is deprecated. Please use props.resizeMode."),i.tintColor&&(0,w.m)("Image.style.tintColor","Image: style.tintColor is deprecated. Please use props.tintColor.");var u=[],d=null;if(o&&u.push(o),t&&u.push("blur("+t+"px)"),s){var f=(0,c.l5)(i);f&&u.push("drop-shadow("+f+")")}return(r||l)&&null!=n&&u.push("url(#tint-"+n+")"),u.length>0&&(d=u.join(" ")),[a,d,l]}(O,l,W.current,e.tintColor),K=Y[0],q=Y[1],G=Y[2],X=e.resizeMode||K||"cover",Q=e.tintColor||G,J=$?T:d,Z=A(J),ee=function(e){if("number"==typeof e){var t=u(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"==typeof e)return{height:e.height,width:e.width}}(J),te=Z?'url("'+Z+'")':null,ne=function(){if(null!=H.current&&("center"===X||"repeat"===X)){var e=H.current,t=e.naturalHeight,n=e.naturalWidth,r=z.height,i=z.width;if(t&&n&&r&&i){var o=Math.min(1,i/n,r/t);return Math.ceil(o*n)+"px "+Math.ceil(o*t)+"px"}}}(),re=Z?(0,s.A)("img",{alt:L||"",style:P.accessibilityImage$raw,draggable:f||!1,ref:H,src:Z}):null,ie=A(T);return a.useEffect(()=>{function e(){null!=U.current&&(v.abort(U.current),U.current=null)}return e(),null!=ie&&(F(E),k&&k(),U.current=v.load(ie,function(e){F(C),m&&m(e),g&&g()},function(){F("ERRORED"),h&&h({nativeEvent:{error:"Failed to load resource "+ie}}),g&&g()})),e},[ie,U,F,h,m,g,k]),a.createElement(_.A,(0,i.A)({},N,{"aria-label":L,onLayout:function(e){if("center"===X||"repeat"===X||p){var t=e.nativeEvent.layout;p&&p(e),j(t)}},pointerEvents:R,ref:t,style:[P.root,B&&P.inline,ee,O,P.undo,{boxShadow:null}]}),a.createElement(_.A,{style:[P.image,I[X],{backgroundImage:te,filter:q},null!=ne&&{backgroundSize:ne}],suppressHydrationWarning:!0}),re,function(e,t){return e&&null!=t?a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},a.createElement("defs",null,a.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},a.createElement("feFlood",{floodColor:""+e,key:e}),a.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}(Q,W.current))});R.displayName="Image";var T=R;T.getSize=function(e,t,n){v.getSize(e,t,n)},T.prefetch=function(e){return v.prefetch(e)},T.queryCache=function(e){return v.queryCache(e)};var P=y.A.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),I=y.A.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const O=T},7068(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3116);const i={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,r.A)()},removeAllListeners(){},removeListener(){}}},5470(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(8168),i=n(8587),o=n(6540),a=n(9176),s=["behavior","contentContainerStyle","keyboardVerticalOffset"];class l extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,i.A)(e,s));return o.createElement(a.A,(0,r.A)({onLayout:this.onLayout},t))}}const u=l},9518(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3384);class i{static get(){return r.A.get("window").scale}static getFontScale(){return r.A.get("window").fontScale||i.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*i.get())}static roundToNearestPixel(e){var t=i.get();return Math.round(e*t)/t}}},7862(e,t,n){"use strict";n.d(t,{A:()=>r});const r={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},4129(e,t,n){"use strict";n.d(t,{A:()=>te});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(7162),l=()=>{},u=function(){var e=!1;if(s.A)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function c(){return this.cancelBubble}function d(){return this.defaultPrevented}function f(e,t,n,r){var i=function(e){return null!=e&&(u?e:Boolean(e.capture))}(r),o=e=>{return n(((t=e).nativeEvent=t,t.persist=l,t.isDefaultPrevented=d,t.isPropagationStopped=c,t));var t};return e.addEventListener(t,o,i),function(){null!=e&&e.removeEventListener(t,o,i)}}var h,p,m="keyboard",v="keyboard",g=!1,y=new Set,b="keyboard",_="mouse",w="touch",S="contextmenu",C="mousedown",E="mousemove",x="mouseup",k="pointerdown",A="pointermove",R="scroll",T="selectionchange",P="touchcancel",I="touchmove",O="touchstart",N={passive:!0},L={capture:!0,passive:!0};function D(){null==h&&null==p||(null!=h&&(v=h,h=null),null!=p&&(m=p,p=null),F())}function M(e){var t=e.type;if("undefined"!=typeof window&&null!=window.PointerEvent){if(t===k)return void(m!==e.pointerType&&(v=e.pointerType,m=e.pointerType,F()));if(t===A)return void(v!==e.pointerType&&(v=e.pointerType,F()))}else{if(g||(t===C&&m!==_&&(v=_,m=_,F()),t===E&&v!==_&&(v=_,F())),t===O)return g=!0,e.touches&&e.touches.length>1&&(g=!1),void(m!==w&&(v=w,m=w,F()));t!==S&&t!==x&&t!==T&&t!==R&&t!==P&&t!==I||(g=!1)}}function F(){var e={activeModality:m,modality:v};y.forEach(t=>{t(e)})}s.A&&(f(window,"blur",function(){h=v,p=m,m=b,v=b,F(),g=!1},N),f(window,"focus",function(){D()},N),f(document,"keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||v!==b&&(v=b,m=b,F())},L),f(document,"visibilitychange",function(){"hidden"!==document.visibilityState&&D()},L),f(document,k,M,L),f(document,A,M,L),f(document,S,M,L),f(document,C,M,L),f(document,E,M,L),f(document,x,M,L),f(document,P,M,L),f(document,I,M,L),f(document,O,M,L),f(document,T,M,L),f(document,R,M,L));var V=n(8425),z=n(9241);function j(e,t){var n=(0,z.A)(()=>new Map),r=(0,z.A)(()=>(r,i)=>{var o=n.get(r);null!=o&&o(),null==i&&(n.delete(r),i=()=>{});var a=f(r,e,i,t);return n.set(r,a),a});return(0,V.A)(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var B={},H={passive:!0},W="react-gui:hover:lock",U="react-gui:hover:unlock";function $(e,t,n){var r=document.createEvent("CustomEvent"),i=n||B,o=i.bubbles,a=void 0===o||o,s=i.cancelable,l=void 0===s||s,u=i.detail;r.initCustomEvent(t,a,l,u),e.dispatchEvent(r)}function Y(e){var t=e.pointerType;return null!=t?t:v}var K=n(6533),q=n(8997),G=n(9176),X=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function Q(e,t){var n=e.children,s=e.delayLongPress,l=e.delayPressIn,u=e.delayPressOut,c=e.disabled,d=e.onBlur,f=e.onContextMenu,h=e.onFocus,p=e.onHoverIn,m=e.onHoverOut,v=e.onKeyDown,g=e.onLongPress,y=e.onPress,b=e.onPressMove,_=e.onPressIn,w=e.onPressOut,S=e.style,C=e.tabIndex,E=e.testOnly_hovered,x=e.testOnly_pressed,k=(0,i.A)(e,X),A=J(!0===E),R=A[0],T=A[1],P=J(!1),I=P[0],O=P[1],N=J(!0===x),L=N[0],D=N[1],M=(0,o.useRef)(null),F=(0,a.A)(t,M),z=(0,o.useMemo)(()=>({delayLongPress:s,delayPressStart:l,delayPressEnd:u,disabled:c,onLongPress:g,onPress:y,onPressChange:D,onPressStart:_,onPressMove:b,onPressEnd:w}),[s,l,u,c,g,y,_,b,w,D]),B=(0,K.A)(M,z),q=B.onContextMenu,Q=B.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,o=t.onHoverChange,a=t.onHoverUpdate,s=t.onHoverEnd,l=!("undefined"==typeof window||null==window.PointerEvent),u=j(l?"pointermove":"mousemove",H),c=j(l?"pointerenter":"mouseenter",H),d=j(l?"pointerleave":"mouseleave",H),f=j(W,H),h=j(U,H);(0,V.A)(()=>{var t=e.current;if(null!==t){var l=function(e){null!=s&&s(e),null!=o&&o(!1),u(t,null),d(t,null)},p=function(t){var r=e.current;null!=r&&"touch"!==Y(t)&&(n&&$(r,U),l(t))},m=function(e){"touch"!==Y(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},v=function(e){null!=i&&i(e),null!=o&&o(!0),null!=a&&u(t,r?null:m),d(t,r?null:p)};c(t,r?null:function(t){var i=e.current;null!=i&&"touch"!==Y(t)&&(n&&$(i,W),v(t),f(i,r?null:function(e){e.target!==i&&l(t)}),h(i,r?null:function(e){e.target!==i&&v(t)}))})}},[c,u,d,f,h,n,r,i,o,a,s,e])}(M,{contain:!0,disabled:c,onHoverChange:T,onHoverStart:p,onHoverEnd:m});var ee,te={hovered:R,focused:I,pressed:L},ne=o.useCallback(e=>{e.nativeEvent.target===M.current&&(O(!1),null!=d&&d(e))},[M,O,d]),re=o.useCallback(e=>{e.nativeEvent.target===M.current&&(O(!0),null!=h&&h(e))},[M,O,h]),ie=o.useCallback(e=>{null!=q&&q(e),null!=f&&f(e)},[f,q]),oe=o.useCallback(e=>{null!=Q&&Q(e),null!=v&&v(e)},[v,Q]);return ee=void 0!==C?C:c?-1:0,o.createElement(G.A,(0,r.A)({},k,B,{"aria-disabled":c,onBlur:ne,onContextMenu:ie,onFocus:re,onKeyDown:oe,ref:F,style:[c?Z.disabled:Z.active,"function"==typeof S?S(te):S],tabIndex:ee}),"function"==typeof n?n(te):n)}function J(e){var t=(0,o.useState)(!1);return[t[0]||e,t[1]]}var Z=q.A.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),ee=(0,o.memo)((0,o.forwardRef)(Q));ee.displayName="Pressable";const te=ee},4951(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(2555),i=n(8168),o=n(8587),a=n(3384),s=n(3116),l=n(646),u=n.n(l),c=n(87),d=n(7862),f=n(6540),h=n(8997),p=n(9176),m=n(1804),v=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function g(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var y=f.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,a=e.onWheel,s=e.scrollEnabled,l=void 0===s||s,u=e.scrollEventThrottle,c=void 0===u?0:u,d=e.showsHorizontalScrollIndicator,h=e.showsVerticalScrollIndicator,y=e.style,_=(0,o.A)(e,v),w=f.useRef({isScrolling:!1,scrollLastTick:0}),S=f.useRef(null),C=f.useRef(null);function E(e){return t=>{l&&e&&e(t)}}function x(e){w.current.scrollLastTick=Date.now(),n&&n(g(e))}var k=!1===d||!1===h;return f.createElement(p.A,(0,i.A)({},_,{onScroll:function(e){var t,r,i;e.stopPropagation(),e.target===C.current&&(e.persist(),null!=S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{!function(e){w.current.isScrolling=!1,n&&n(g(e))}(e)},100),w.current.isScrolling?(t=w.current.scrollLastTick,r=c,i=Date.now()-t,r>0&&i>=r&&x(e)):function(e){w.current.isScrolling=!0,x(e)}(e))},onTouchMove:E(r),onWheel:E(a),ref:(0,m.A)(C,t),style:[y,!l&&b.scrollDisabled,k&&b.hideScrollbar]}))}),b=h.A.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const _=y;var w=n(8865),S=n(8683),C=n(4594),E=n.n(C),x=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class A extends f.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=w.A.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),w.A.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),o=e||0,a=t||0;null!=i&&("function"==typeof i.scroll?i.scroll({top:a,left:o,behavior:n?"smooth":"auto"}):(i.scrollLeft=o,i.scrollTop=a))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==d.A.OS&&u()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,S.A.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=a.A.get("window").height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var o=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(o=Math.max(0,o)),this.scrollResponderScrollTo({x:0,y:o,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,o=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:o,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,s.A)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.A)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){E()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,a=e.onContentSizeChange,s=e.refreshControl,l=e.stickyHeaderIndices,c=e.pagingEnabled,d=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),h=(0,o.A)(e,x),m={};a&&(m={onLayout:this._handleContentOnLayout});var v=!n&&Array.isArray(l),g=v||c?f.Children.map(this.props.children,(e,t)=>{var n=v&&l.indexOf(t)>-1;return null!=e&&(n||c)?f.createElement(p.A,{style:[n&&T.stickyHeader,c&&T.pagingEnabledChild]},e):e}):this.props.children,y=f.createElement(p.A,(0,i.A)({},m,{children:g,collapsable:!1,ref:this._setInnerViewRef,style:[n&&T.contentContainerHorizontal,d&&T.contentContainerCenterContent,t]})),b=n?T.baseHorizontal:T.baseVertical,w=n?T.pagingEnabledHorizontal:T.pagingEnabledVertical,S=(0,r.A)((0,r.A)({},h),{},{style:[b,c&&w,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),C=_;u()(void 0!==C,"ScrollViewClass must not be undefined");var E=f.createElement(C,(0,i.A)({},S,{ref:this._setScrollNodeRef}),y);return s?f.cloneElement(s,{style:S.style},E):E}}var R={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},T=h.A.create({baseVertical:(0,r.A)((0,r.A)({},R),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.A)((0,r.A)({},R),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),P=f.forwardRef((e,t)=>f.createElement(A,(0,i.A)({},e,{forwardedRef:t})));P.displayName="ScrollView";const I=P},6610(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2901);const i=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;var n=(0,r.A)(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}}},1747(e,t,n){"use strict";n.d(t,{A:()=>l});var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach(e=>{i.forEach(t=>{r[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=r[e]})});const o=r;var a=n(6610),s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function l(e,t){var n=e;return null!=t&&o[t]||"number"!=typeof e?null!=t&&s[t]&&(n=(0,a.A)(e)):n=e+"px",n}},3748(e,t,n){"use strict";n.d(t,{_:()=>p});var r=n(7162);function i(e,t,n){if(r.A){var i=null!=t?t:document,o=i.getElementById(e);if(null==o)if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),i instanceof ShadowRoot)i.insertBefore(o,i.firstChild);else{var a=i.head;a&&a.insertBefore(o,a.firstChild)}return o.sheet}return null}var o=Array.prototype.slice;function a(e){var t,n={},r={};function i(e,t,r){var i=l(n),o=i.indexOf(t)+1,a=i[o],s=null!=a&&null!=n[a].start?n[a].start:e.cssRules.length,u=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,s);if(u){null==n[t].start&&(n[t].start=s);for(var c=o;c<i.length;c+=1){var d=i[c],f=n[d].start||0;n[d].start=f+1}}return u}null!=e&&o.call(e.cssRules).forEach((e,i)=>{var o=e.cssText;if(o.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(s)[1])}(e),n[t]={start:i,rules:[o]};else{var a=c(o);null!=a&&(r[a]=!0,n[t].rules.push(o))}});var a={getTextContent:()=>l(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,o){var a=Number(o);if(null==n[a]){var s=function(e){return'[stylesheet-group="'+e+'"]{}'}(a);n[a]={start:null,rules:[s]},null!=e&&i(e,a,s)}var l=c(t);null!=l&&null==r[l]&&(r[l]=!0,n[a].rules.push(t),null!=e&&(i(e,a,t)||n[a].rules.pop()))}};return a}var s=/["']/g;function l(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var u=/\s*([,])\s*/g;function c(e){var t=e.split("{")[0].trim();return""!==t?t.replace(u,"$1"):null}var d=new WeakMap,f=[],h=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function p(e,t){var n;if(void 0===t&&(t="react-native-stylesheet"),r.A){var o=null!=e?e.getRootNode():document;if(0===f.length)n=a(i(t)),h.forEach(e=>{n.insert(e,0)}),d.set(o,f.length),f.push(n);else{var s=d.get(o);if(null==s){var l=f[0],u=null!=l?l.getTextContent():"";n=a(i(t,o,u)),d.set(o,f.length),f.push(n)}else n=f[s]}}else 0===f.length?(n=a(i(t)),h.forEach(e=>{n.insert(e,0)}),f.push(n)):n=f[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){f.forEach(n=>{n.insert(e,t)})}}}},8997(e,t,n){"use strict";n.d(t,{A:()=>me});var r=n(2555),i=n(8587),o=n(1747),a=n(7162),s={},l=!a.A||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),u='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',c={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const d=(e,t)=>{if(!e)return s;var n={},r=function(){var r=e[i];if(null==r)return"continue";if("backgroundClip"===i)"text"===r&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if("flex"===i)-1===r?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=r;else if("font"===i)n[i]=r.replace("System",u);else if("fontFamily"===i)if(r.indexOf("System")>-1){var a=r.split(/,\s*/);a[a.indexOf("System")]=u,n[i]=a.join(",")}else n[i]="monospace"===r?"monospace,monospace":r;else if("textDecorationLine"===i)l?n.textDecorationLine=r:n.textDecoration=r;else if("writingDirection"===i)n.direction=r;else{var s=(0,o.A)(e[i],i),d=c[i];t&&"inset"===i?(null==e.insetInline&&(n.left=s,n.right=s),null==e.insetBlock&&(n.top=s,n.bottom=s)):t&&"margin"===i?(null==e.marginInline&&(n.marginLeft=s,n.marginRight=s),null==e.marginBlock&&(n.marginTop=s,n.marginBottom=s)):t&&"padding"===i?(null==e.paddingInline&&(n.paddingLeft=s,n.paddingRight=s),null==e.paddingBlock&&(n.paddingTop=s,n.paddingBottom=s)):d?d.forEach((t,r)=>{null==e[t]&&(n[t]=s)}):n[i]=s}};for(var i in e)r();return n};var f=/[A-Z]/g,h=/^ms-/,p={};function m(e){return"-"+e.toLowerCase()}var v=n(6485),g=n(4217),y=n(1261),b=n(8041),_=n(7033),w=n(6852),S=n(20),C=n(9996),E=n(5129),x=n(508),k=["Webkit"],A=["Webkit","ms"];const R={plugins:[g.A,y.A,b.A,_.A,w.A,S.A,C.A,E.A,x.A],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:A,textEmphasis:A,textEmphasisStyle:A,textEmphasisColor:A,boxDecorationBreak:A,clipPath:k,maskImage:A,maskMode:A,maskRepeat:A,maskPosition:A,maskClip:A,maskOrigin:A,maskSize:A,maskComposite:A,mask:A,maskBorderSource:A,maskBorderMode:A,maskBorderSlice:A,maskBorderWidth:A,maskBorderOutset:A,maskBorderRepeat:A,maskBorder:A,maskType:A,textDecorationStyle:k,textDecorationSkip:k,textDecorationLine:k,textDecorationColor:k,filter:k,breakAfter:k,breakBefore:k,breakInside:k,columnCount:k,columnFill:k,columnGap:k,columnRule:k,columnRuleColor:k,columnRuleStyle:k,columnRuleWidth:k,columns:k,columnSpan:k,columnWidth:k,backdropFilter:k,hyphens:k,flowInto:k,flowFrom:k,regionFragment:k,textOrientation:k,tabSize:["Moz"],fontKerning:k,textSizeAdjust:k}},T=(0,v.A)(R);var P=["animationKeyframes"],I=new Map,O={},N={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},L="borderTopLeftRadius",D="borderTopRightRadius",M="borderBottomLeftRadius",F="borderBottomRightRadius",V="borderLeftColor",z="borderLeftStyle",j="borderLeftWidth",B="borderRightColor",H="borderRightStyle",W="borderRightWidth",U="right",$="marginLeft",Y="marginRight",K="paddingLeft",q="paddingRight",G="left",X={[L]:D,[D]:L,[M]:F,[F]:M,[V]:B,[z]:H,[j]:W,[B]:V,[H]:z,[W]:j,[G]:U,[$]:Y,[Y]:$,[K]:q,[q]:K,[U]:G},Q={borderStartStartRadius:L,borderStartEndRadius:D,borderEndStartRadius:M,borderEndEndRadius:F,borderInlineStartColor:V,borderInlineStartStyle:z,borderInlineStartWidth:j,borderInlineEndColor:B,borderInlineEndStyle:H,borderInlineEndWidth:W,insetInlineEnd:U,insetInlineStart:G,marginInlineStart:$,marginInlineEnd:Y,paddingInlineStart:K,paddingInlineEnd:q},J=["clear","float","textAlign"];function Z(e){var t=T(d(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=function(e){if(e in p)return p[e];var t=e.replace(f,m);return p[e]=h.test(t)?"-"+t:t}(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ee(e,t,n){return e+"-"+function(e){for(var t,n=e.length,r=1^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}(t+n).toString(36)}function te(e){if("number"==typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r=function(e){var t=ee("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map(t=>""+t+Z(e[t])).join("")+"}",r=["-webkit-",""].map(e=>"@"+e+"keyframes "+t+n);return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push(...o)}}),[t,n]}var ne=n(3748),re=n(4336),ie=n(6927),oe=n(3176),ae=["writingDirection"],se=new WeakMap,le=(0,ne._)(),ue={shadow:!0,textShadow:!0};function ce(e){e.forEach(e=>{var t=e[0],n=e[1];null!=le&&t.forEach(e=>{le.insert(e,n)})})}var de={position:"absolute",left:0,right:0,top:0,bottom:0},fe=he({x:(0,r.A)({},de)}).x;function he(e){return Object.keys(e).forEach(t=>{var n,a,s,l,u=e[t];null!=u&&!0!==u.$$css&&(t.indexOf("$raw")>-1?n=function(e,t){var n=function(e,t){var n,o={$$css:!0},a=[],s=e.animationKeyframes,l=(0,i.A)(e,P),u=ee("css",t,JSON.stringify(e)),c="."+u;if(null!=s){var d=te(s),f=d[0],h=d[1];n=f.join(","),a.push(...h)}var p=Z((0,r.A)((0,r.A)({},l),{},{animationName:n}));return a.push(""+c+p),o[u]=u,[o,[[a,1]]]}(e,t),o=n[0];return ce(n[1]),o}(u,t.split("$raw")[0]):(a=u,s=function(e){var t={$$css:!0},n=[];function r(e,t,r){var i,a=function(e,t){var n=(0,o.A)(e,t);return"string"!=typeof n?JSON.stringify(n||""):n}(r,t),s=t+a,l=I.get(s);if(null!=l)i=l[0],n.push(l[1]);else{i=ee("r",e,e!==t?s:a);var u=N[e]||3,c=function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var o=te(n),a=o[0],s=o[1],l=Z({animationName:a.join(",")});r.push(""+i+l,...s);break;case"placeholderTextColor":var u=Z({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+u,i+"::-moz-placeholder"+u,i+":-ms-input-placeholder"+u,i+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=Z({pointerEvents:"none"});r.push(i+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var f=Z({pointerEvents:"auto"});r.push(i+">*"+f)}var h=Z({pointerEvents:c});r.push(""+i+h);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var p=Z({scrollbarWidth:n});r.push(""+i+p);break;default:var m=Z({[t]:n});r.push(""+i+m)}return r}(i,t,r),d=[c,u];n.push(d),I.set(s,[i,d])}return i}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(null!=i){var o;if(J.indexOf(n)>-1){var a=r(n,n,"left"),s=r(n,n,"right");"start"===i?o=[a,s]:"end"===i&&(o=[s,a])}var l=Q[n];if(null!=l){var u=r(n,l,i),c=r(n,X[l],i);o=[u,c]}if("transitionProperty"===n){for(var d=Array.isArray(i)?i:[i],f=[],h=0;h<d.length;h++){var p=d[h];"string"==typeof p&&null!=Q[p]&&f.push(h)}if(f.length>0){var m=[...d],v=[...d];f.forEach(e=>{var t=m[e];if("string"==typeof t){var i=Q[t],a=X[i];m[e]=i,v[e]=a;var s=r(n,n,m),l=r(n,n,v);o=[s,l]}})}}null==o?o=r(n,n,i):t.$$css$localize=!0,t[n]=o}}),[t,n]}((0,ie.vk)(a,ue)),l=s[0],ce(s[1]),n=l),se.set(u,n))}),e}function pe(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,o=function(e,t){void 0===t&&(t={});var n=t,o=n.writingDirection,a=(0,i.A)(n,ae),s="rtl"===o;return oe.P.factory({transform(e){var t=se.get(e);return null!=t?(0,re.n)(t,s):(0,ie.vk)(e,(0,r.A)((0,r.A)({},ue),a))}})(e)}(e,t);return Array.isArray(o)&&null!=o[1]&&(o[1]=function(e,t){var n=e||O,r={},i={},o=function(){var e=n[a],o=a,s=e;if(!Object.prototype.hasOwnProperty.call(n,a)||null==e)return"continue";J.indexOf(a)>-1&&("start"===e?s=t?"right":"left":"end"===e&&(s=t?"left":"right"));var l=Q[a];if(null!=l&&(o=t?X[l]:l),"transitionProperty"===a){var u=Array.isArray(e)?e:[e];u.forEach((e,n)=>{if("string"==typeof e){var r=Q[e];null!=r&&(u[n]=t?X[r]:r,s=u.join(" "))}})}r[o]||(i[o]=s),o===a&&(r[o]=!0)};for(var a in n)o();return d(i,!0)}(o[1],n)),o}pe.absoluteFill=fe,pe.absoluteFillObject=de,pe.create=he,pe.compose=function(e,t){return[e,t]},pe.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.flat(1/0),i={},o=0;o<r.length;o++){var a=r[o];null!=a&&"object"==typeof a&&Object.assign(i,a)}return i},pe.getSheet=function(){return{id:le.id,textContent:le.getTextContent()}},pe.hairlineWidth=1,a.A&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=pe.flatten);const me=pe},6927(e,t,n){"use strict";n.d(t,{l5:()=>l,vk:()=>h});var r=n(6610),i=n(1747),o=n(4078),a={},s={height:0,width:0},l=e=>{var t=e.shadowColor,n=e.shadowOffset,o=e.shadowOpacity,a=e.shadowRadius,l=n||s,u=l.height,c=l.width,d=(0,i.A)(c),f=(0,i.A)(u),h=(0,i.A)(a||0),p=(0,r.A)(t||"black",o);if(null!=p&&null!=d&&null!=f&&null!=h)return d+" "+f+" "+h+" "+p},u=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+(0,i.A)(n,t)+")"},c=e=>e.map(u).join(" "),d={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},f={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},h=function(e,t){void 0===t&&(t={});var n=e||a,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.m)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var u=l(n);if(null!=u&&null==r.boxShadow){var h=n.boxShadow,p=h?h+", "+u:u;r.boxShadow=p}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.m)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var m=(e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||s,a=o.height,l=o.width,u=r||0,c=(0,i.A)(l),d=(0,i.A)(a),f=(0,i.A)(u),h=(0,i.A)(t,"textShadowColor");if(h&&(0!==a||0!==l||0!==u)&&null!=c&&null!=d&&null!=f)return c+" "+d+" "+f+" "+h})(n);if(null!=m&&null==r.textShadow){var v=n.textShadow,g=v?v+", "+m:m;r.textShadow=g}}for(var y in n)if(null==f[y]&&"shadowColor"!==y&&"shadowOffset"!==y&&"shadowOpacity"!==y&&"shadowRadius"!==y&&"textShadowColor"!==y&&"textShadowOffset"!==y&&"textShadowRadius"!==y){var b=n[y],_=d[y]||y,w=b;!Object.prototype.hasOwnProperty.call(n,y)||_!==y&&null!=n[_]||("aspectRatio"===_&&"number"==typeof w?r[_]=w.toString():"fontVariant"===_?(Array.isArray(w)&&w.length>0&&(w=w.join(" ")),r[_]=w):"textAlignVertical"===_?null==n.verticalAlign&&(r.verticalAlign="center"===w?"middle":w):"transform"===_?(Array.isArray(w)&&(w=c(w)),r.transform=w):r[_]=w)}return r}},5243(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(6540).createContext)(!1)},8506(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2555),i=n(8587),o=n(6540),a=n(3642),s=n(8697),l=n(254),u=n(2008),c=n(1804),d=n(6177),f=n(3098),h=n(8997),p=n(5243),m=n(1420),v=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],g=Object.assign({},s.Gs,s.Fh,s.DY,s.l3,s.Aw,s.k2,s.CD,s.eO,{href:!0,lang:!0,pointerEvents:!0}),y=o.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.numberOfLines,s=e.onClick,h=e.onLayout,y=e.onPress,b=e.onMoveShouldSetResponder,w=e.onMoveShouldSetResponderCapture,S=e.onResponderEnd,C=e.onResponderGrant,E=e.onResponderMove,x=e.onResponderReject,k=e.onResponderRelease,A=e.onResponderStart,R=e.onResponderTerminate,T=e.onResponderTerminationRequest,P=e.onScrollShouldSetResponder,I=e.onScrollShouldSetResponderCapture,O=e.onSelectionChangeShouldSetResponder,N=e.onSelectionChangeShouldSetResponderCapture,L=e.onStartShouldSetResponder,D=e.onStartShouldSetResponderCapture,M=e.selectable,F=(0,i.A)(e,v),V=o.useContext(p.A),z=o.useRef(null),j=(0,m.PZ)().direction;(0,u.A)(z,h),(0,f.A)(z,{onMoveShouldSetResponder:b,onMoveShouldSetResponderCapture:w,onResponderEnd:S,onResponderGrant:C,onResponderMove:E,onResponderReject:x,onResponderRelease:k,onResponderStart:A,onResponderTerminate:R,onResponderTerminationRequest:T,onScrollShouldSetResponder:P,onScrollShouldSetResponderCapture:I,onSelectionChangeShouldSetResponder:O,onSelectionChangeShouldSetResponderCapture:N,onStartShouldSetResponder:L,onStartShouldSetResponderCapture:D});var B=o.useCallback(e=>{null!=s?s(e):null!=y&&(e.stopPropagation(),y(e))},[s,y]),H=V?"span":"div",W=null!=e.lang?(0,m.il)(e.lang):null,U=e.dir||W,$=U||j,Y=(e=>(0,l.A)(e,g))(F);if(Y.dir=U,V||(Y.dir=null!=U?U:"auto"),(s||y)&&(Y.onClick=B),Y.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===V?_.textHasAncestor$raw:_.text$raw,1===r&&_.textOneLine,null!=r&&r>1&&_.textMultiLine,e.style,!0===M&&_.selectable,!1===M&&_.notSelectable,y&&_.pressable],null!=e.href&&(H="a",null!=n)){var K=n.download,q=n.rel,G=n.target;null!=K&&(Y.download=K),null!=q&&(Y.rel=q),"string"==typeof G&&(Y.target="_"!==G.charAt(0)?"_"+G:G)}var X=(0,d.A)(Y),Q=(0,c.A)(z,X,t);Y.ref=Q;var J=(0,a.A)(H,Y,{writingDirection:$});return V?J:o.createElement(p.A.Provider,{value:!0},J)});y.displayName="Text";var b={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},_=h.A.create({text$raw:b,textHasAncestor$raw:(0,r.A)((0,r.A)({},b),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const w=y},6413(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(6533),l=n(8997),u=n(9176),c=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function d(e,t){var n=e.activeOpacity,l=e.delayPressIn,d=e.delayPressOut,h=e.delayLongPress,p=e.disabled,m=e.focusable,v=e.onLongPress,g=e.onPress,y=e.onPressIn,b=e.onPressOut,_=e.rejectResponderTermination,w=e.style,S=(0,i.A)(e,c),C=(0,o.useRef)(null),E=(0,a.A)(t,C),x=(0,o.useState)("0s"),k=x[0],A=x[1],R=(0,o.useState)(null),T=R[0],P=R[1],I=(0,o.useCallback)((e,t)=>{P(e),A(t?t/1e3+"s":"0s")},[P,A]),O=(0,o.useCallback)(e=>{I(null!=n?n:.2,e)},[n,I]),N=(0,o.useCallback)(e=>{I(null,e)},[I]),L=(0,o.useMemo)(()=>({cancelable:!_,disabled:p,delayLongPress:h,delayPressStart:l,delayPressEnd:d,onLongPress:v,onPress:g,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;O(t?0:150),null!=y&&y(e)},onPressEnd(e){N(250),null!=b&&b(e)}}),[h,l,d,p,v,g,y,b,_,O,N]),D=(0,s.A)(C,L);return o.createElement(u.A,(0,r.A)({},S,D,{accessibilityDisabled:p,focusable:!p&&!1!==m,pointerEvents:p?"box-none":void 0,ref:E,style:[f.root,!p&&f.actionable,w,null!=T&&{opacity:T},{transitionDuration:k}]}))}var f=l.A.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),h=o.memo(o.forwardRef(d));h.displayName="TouchableOpacity";const p=h},8683(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(1968),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=["ms","Moz","O","Webkit"];Object.keys(i).forEach(e=>{o.forEach(t=>{i[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=i[e]})});const a=i,s=function(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||a.hasOwnProperty(e)&&a[e]?(""+t).trim():t+"px"},l=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),o=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}};var u=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:i-=window.scrollY,left:r-=window.scrollX}},c=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=u(r),i=u(e),o=i.height,a=i.left,s=i.top,l=i.width,c=a-t.left,d=s-t.top;n(c,d,l,o,a,s)}},0)},d={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};const f={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==d[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){c(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=(0,r.A)(e),i=n.height,o=n.left,a=n.top,s=n.width;t(o,a,s,i)},0)},measureLayout(e,t,n,r){c(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},9176(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8587),i=n(6540),o=n(3642),a=n(8697),s=n(254),l=n(2008),u=n(1804),c=n(6177),d=n(3098),f=n(8997),h=n(5243),p=n(1420),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],v=Object.assign({},a.Gs,a.Fh,a.DY,a.l3,a.Aw,a.k2,a.CD,a.eO,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),g=i.forwardRef((e,t)=>{var n=e.hrefAttrs,a=e.onLayout,f=e.onMoveShouldSetResponder,g=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,_=e.onResponderGrant,w=e.onResponderMove,S=e.onResponderReject,C=e.onResponderRelease,E=e.onResponderStart,x=e.onResponderTerminate,k=e.onResponderTerminationRequest,A=e.onScrollShouldSetResponder,R=e.onScrollShouldSetResponderCapture,T=e.onSelectionChangeShouldSetResponder,P=e.onSelectionChangeShouldSetResponderCapture,I=e.onStartShouldSetResponder,O=e.onStartShouldSetResponderCapture,N=(0,r.A)(e,m),L=i.useContext(h.A),D=i.useRef(null),M=(0,p.PZ)().direction;(0,l.A)(D,a),(0,d.A)(D,{onMoveShouldSetResponder:f,onMoveShouldSetResponderCapture:g,onResponderEnd:b,onResponderGrant:_,onResponderMove:w,onResponderReject:S,onResponderRelease:C,onResponderStart:E,onResponderTerminate:x,onResponderTerminationRequest:k,onScrollShouldSetResponder:A,onScrollShouldSetResponderCapture:R,onSelectionChangeShouldSetResponder:T,onSelectionChangeShouldSetResponderCapture:P,onStartShouldSetResponder:I,onStartShouldSetResponderCapture:O});var F="div",V=null!=e.lang?(0,p.il)(e.lang):null,z=e.dir||V,j=z||M,B=(e=>(0,s.A)(e,v))(N);if(B.dir=z,B.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(F="a",null!=n)){var H=n.download,W=n.rel,U=n.target;null!=H&&(B.download=H),null!=W&&(B.rel=W),"string"==typeof U&&(B.target="_"!==U.charAt(0)?"_"+U:U)}var $=(0,c.A)(B),Y=(0,u.A)(D,$,t);return B.ref=Y,(0,o.A)(F,B,{writingDirection:j})});g.displayName="View";var y=f.A.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const b=g},3642(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8285),i=n(2555),o=n(8587),a=n(8997),s=n(4078),l=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],u={},c=Object.prototype.hasOwnProperty,d=Array.isArray,f=/[A-Z]/g;function h(e){return"-"+e.toLowerCase()}function p(e){return e.replace(f,h)}function m(e){return d(e)?e.join(" "):e}var v=a.A.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});var g=n(6540),y=n(1420);const b=(e,t,n)=>{var d;e&&e.constructor===String&&(d=r.A.propsToAccessibilityComponent(t));var f=d||e,h=((e,t,n)=>{t||(t=u);var d=t,f=d["aria-activedescendant"],h=d.accessibilityActiveDescendant,g=d["aria-atomic"],y=d.accessibilityAtomic,b=d["aria-autocomplete"],_=d.accessibilityAutoComplete,w=d["aria-busy"],S=d.accessibilityBusy,C=d["aria-checked"],E=d.accessibilityChecked,x=d["aria-colcount"],k=d.accessibilityColumnCount,A=d["aria-colindex"],R=d.accessibilityColumnIndex,T=d["aria-colspan"],P=d.accessibilityColumnSpan,I=d["aria-controls"],O=d.accessibilityControls,N=d["aria-current"],L=d.accessibilityCurrent,D=d["aria-describedby"],M=d.accessibilityDescribedBy,F=d["aria-details"],V=d.accessibilityDetails,z=d["aria-disabled"],j=d.accessibilityDisabled,B=d["aria-errormessage"],H=d.accessibilityErrorMessage,W=d["aria-expanded"],U=d.accessibilityExpanded,$=d["aria-flowto"],Y=d.accessibilityFlowTo,K=d["aria-haspopup"],q=d.accessibilityHasPopup,G=d["aria-hidden"],X=d.accessibilityHidden,Q=d["aria-invalid"],J=d.accessibilityInvalid,Z=d["aria-keyshortcuts"],ee=d.accessibilityKeyShortcuts,te=d["aria-label"],ne=d.accessibilityLabel,re=d["aria-labelledby"],ie=d.accessibilityLabelledBy,oe=d["aria-level"],ae=d.accessibilityLevel,se=d["aria-live"],le=d.accessibilityLiveRegion,ue=d["aria-modal"],ce=d.accessibilityModal,de=d["aria-multiline"],fe=d.accessibilityMultiline,he=d["aria-multiselectable"],pe=d.accessibilityMultiSelectable,me=d["aria-orientation"],ve=d.accessibilityOrientation,ge=d["aria-owns"],ye=d.accessibilityOwns,be=d["aria-placeholder"],_e=d.accessibilityPlaceholder,we=d["aria-posinset"],Se=d.accessibilityPosInSet,Ce=d["aria-pressed"],Ee=d.accessibilityPressed,xe=d["aria-readonly"],ke=d.accessibilityReadOnly,Ae=d["aria-required"],Re=d.accessibilityRequired,Te=(d.role,d.accessibilityRole,d["aria-roledescription"]),Pe=d.accessibilityRoleDescription,Ie=d["aria-rowcount"],Oe=d.accessibilityRowCount,Ne=d["aria-rowindex"],Le=d.accessibilityRowIndex,De=d["aria-rowspan"],Me=d.accessibilityRowSpan,Fe=d["aria-selected"],Ve=d.accessibilitySelected,ze=d["aria-setsize"],je=d.accessibilitySetSize,Be=d["aria-sort"],He=d.accessibilitySort,We=d["aria-valuemax"],Ue=d.accessibilityValueMax,$e=d["aria-valuemin"],Ye=d.accessibilityValueMin,Ke=d["aria-valuenow"],qe=d.accessibilityValueNow,Ge=d["aria-valuetext"],Xe=d.accessibilityValueText,Qe=d.dataSet,Je=d.focusable,Ze=d.id,et=d.nativeID,tt=d.pointerEvents,nt=d.style,rt=d.tabIndex,it=d.testID,ot=(0,o.A)(d,l),at=z||j,st=r.A.propsToAriaRole(t),lt=null!=f?f:h;null!=lt&&(ot["aria-activedescendant"]=lt);var ut=null!=g?f:y;null!=ut&&(ot["aria-atomic"]=ut);var ct=null!=b?b:_;null!=ct&&(ot["aria-autocomplete"]=ct);var dt=null!=w?w:S;null!=dt&&(ot["aria-busy"]=dt);var ft=null!=C?C:E;null!=ft&&(ot["aria-checked"]=ft);var ht=null!=x?x:k;null!=ht&&(ot["aria-colcount"]=ht);var pt=null!=A?A:R;null!=pt&&(ot["aria-colindex"]=pt);var mt=null!=T?T:P;null!=mt&&(ot["aria-colspan"]=mt);var vt=null!=I?I:O;null!=vt&&(ot["aria-controls"]=m(vt));var gt=null!=N?N:L;null!=gt&&(ot["aria-current"]=gt);var yt=null!=D?D:M;null!=yt&&(ot["aria-describedby"]=m(yt));var bt=null!=F?F:V;null!=bt&&(ot["aria-details"]=bt),!0===at&&(ot["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(ot.disabled=!0));var _t=null!=B?B:H;null!=_t&&(ot["aria-errormessage"]=_t);var wt=null!=W?W:U;null!=wt&&(ot["aria-expanded"]=wt);var St=null!=$?$:Y;null!=St&&(ot["aria-flowto"]=m(St));var Ct=null!=K?K:q;null!=Ct&&(ot["aria-haspopup"]=Ct);var Et=null!=G?G:X;!0===Et&&(ot["aria-hidden"]=Et);var xt=null!=Q?Q:J;null!=xt&&(ot["aria-invalid"]=xt);var kt=null!=Z?Z:ee;null!=kt&&(ot["aria-keyshortcuts"]=m(kt));var At=null!=te?te:ne;null!=At&&(ot["aria-label"]=At);var Rt=null!=re?re:ie;null!=Rt&&(ot["aria-labelledby"]=m(Rt));var Tt=null!=oe?oe:ae;null!=Tt&&(ot["aria-level"]=Tt);var Pt=null!=se?se:le;null!=Pt&&(ot["aria-live"]="none"===Pt?"off":Pt);var It=null!=ue?ue:ce;null!=It&&(ot["aria-modal"]=It);var Ot=null!=de?de:fe;null!=Ot&&(ot["aria-multiline"]=Ot);var Nt=null!=he?he:pe;null!=Nt&&(ot["aria-multiselectable"]=Nt);var Lt=null!=me?me:ve;null!=Lt&&(ot["aria-orientation"]=Lt);var Dt=null!=ge?ge:ye;null!=Dt&&(ot["aria-owns"]=m(Dt));var Mt=null!=be?be:_e;null!=Mt&&(ot["aria-placeholder"]=Mt);var Ft=null!=we?we:Se;null!=Ft&&(ot["aria-posinset"]=Ft);var Vt=null!=Ce?Ce:Ee;null!=Vt&&(ot["aria-pressed"]=Vt);var zt=null!=xe?xe:ke;null!=zt&&(ot["aria-readonly"]=zt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.readOnly=!0));var jt=null!=Ae?Ae:Re;null!=jt&&(ot["aria-required"]=jt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.required=Re)),null!=st&&(ot.role="none"===st?"presentation":st);var Bt=null!=Te?Te:Pe;null!=Bt&&(ot["aria-roledescription"]=Bt);var Ht=null!=Ie?Ie:Oe;null!=Ht&&(ot["aria-rowcount"]=Ht);var Wt=null!=Ne?Ne:Le;null!=Wt&&(ot["aria-rowindex"]=Wt);var Ut=null!=De?De:Me;null!=Ut&&(ot["aria-rowspan"]=Ut);var $t=null!=Fe?Fe:Ve;null!=$t&&(ot["aria-selected"]=$t);var Yt=null!=ze?ze:je;null!=Yt&&(ot["aria-setsize"]=Yt);var Kt=null!=Be?Be:He;null!=Kt&&(ot["aria-sort"]=Kt);var qt=null!=We?We:Ue;null!=qt&&(ot["aria-valuemax"]=qt);var Gt=null!=$e?$e:Ye;null!=Gt&&(ot["aria-valuemin"]=Gt);var Xt=null!=Ke?Ke:qe;null!=Xt&&(ot["aria-valuenow"]=Xt);var Qt=null!=Ge?Ge:Xe;if(null!=Qt&&(ot["aria-valuetext"]=Qt),null!=Qe)for(var Jt in Qe)if(c.call(Qe,Jt)){var Zt=p(Jt),en=Qe[Jt];null!=en&&(ot["data-"+Zt]=en)}0===rt||"0"===rt||-1===rt||"-1"===rt?ot.tabIndex=rt:(!1===Je&&(ot.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==Je&&!0!==j||(ot.tabIndex="-1"):"button"===st||"checkbox"===st||"link"===st||"radio"===st||"textbox"===st||"switch"===st?!1!==Je&&(ot.tabIndex="0"):!0===Je&&(ot.tabIndex="0")),null!=tt&&(0,s.m)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tn=(0,a.A)([nt,tt&&v[tt]],(0,i.A)({writingDirection:"ltr"},n)),nn=tn[0],rn=tn[1];nn&&(ot.className=nn),rn&&(ot.style=rn);var on=null!=Ze?Ze:et;return null!=on&&(ot.id=on),null!=it&&(ot["data-testid"]=it),null==ot.type&&"button"===e&&(ot.type="button"),ot})(f,t,n),b=g.createElement(f,h);return h.dir?g.createElement(y.YO,{children:b,direction:h.dir,locale:h.lang}):b}},2901(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(1515),i=n.n(r);const o=e=>{if(null==e)return e;var t=i()(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},6864(e,t,n){"use strict";n.r(t),n.d(t,{AccessibilityInfo:()=>w,ActivityIndicator:()=>Wr.A,Alert:()=>S,Animated:()=>Kn,AppRegistry:()=>or,AppState:()=>fr,Appearance:()=>Xn,BackHandler:()=>pr,Button:()=>Kr,CheckBox:()=>Qr,Clipboard:()=>vr,DeviceEventEmitter:()=>ga.A,Dimensions:()=>gr.A,Easing:()=>xn,FlatList:()=>Fe,I18nManager:()=>yr,Image:()=>Mt.A,ImageBackground:()=>ti,InteractionManager:()=>Z,Keyboard:()=>br.A,KeyboardAvoidingView:()=>ni.A,LayoutAnimation:()=>Cr,Linking:()=>xr,LogBox:()=>va,Modal:()=>Ai,NativeEventEmitter:()=>kr,NativeModules:()=>m,PanResponder:()=>Vr,Picker:()=>Ni,PixelRatio:()=>zr.A,Platform:()=>E.A,Pressable:()=>Li.A,ProgressBar:()=>Vi,RefreshControl:()=>M,SafeAreaView:()=>Wi,ScrollView:()=>F.A,SectionList:()=>$t,Share:()=>jr,StatusBar:()=>Yi,StyleSheet:()=>T.A,Switch:()=>ro,Text:()=>Kt.A,TextInput:()=>vo,Touchable:()=>Xo,TouchableHighlight:()=>ia,TouchableNativeFeedback:()=>la,TouchableOpacity:()=>Ur.A,TouchableWithoutFeedback:()=>fa,UIManager:()=>p.A,Vibration:()=>Hr,View:()=>R.A,VirtualizedList:()=>ha,YellowBox:()=>ma,findNodeHandle:()=>o,processColor:()=>a.A,render:()=>h,unmountComponentAtNode:()=>l,unstable_createElement:()=>r.A,useColorScheme:()=>ya,useLocaleContext:()=>ba,useWindowDimensions:()=>_a});var r=n(3642),i=n(961);const o=e=>{var t;try{t=(0,i.findDOMNode)(e)}catch(e){}return t};var a=n(2901),s=n(5338);const l=i.unmountComponentAtNode;var u=n(3748);function c(e,t){return(0,u._)(t),(0,s.c)(t,e)}function d(e,t){(0,u._)(t);var n=(0,s.H)(t);return n.render(e),n}function f(e,t,n){return(0,u._)(t),(0,i.hydrate)(e,t,n),{unmount:function(){return l(t)}}}function h(e,t,n){return(0,u._)(t),(0,i.render)(e,t,n),{unmount:function(){return l(t)}}}var p=n(8683);const m={UIManager:p.A};var v=n(7162);function g(){return new Promise((e,t)=>{e(!0)})}var y=v.A&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null,b={},_={isScreenReaderEnabled:g,isReduceMotionEnabled:function(){return new Promise((e,t)=>{e(!y||y.matches)})},fetch:g,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!y)return;var n=e=>{t(e.matches)};r=n,null!=y&&(null!=y.addEventListener?y.addEventListener("change",r):y.addListener(r)),b[t]=n}var r;return{remove:()=>_.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=b[t];if(!n||!y)return;r=n,null!=y&&(null!=y.removeEventListener?y.removeEventListener("change",r):y.removeListener(r))}var r}};const w=_,S=class{static alert(){}};var C=n(2555),E=n(7862),x=n(8168),k=n(6540),A=n(8587),R=n(9176),T=n(8997);const P=function e(t,n,r){if(void 0===r&&(r=-1),0===r)return!0;if(t===n)return!1;if("function"==typeof t&&"function"==typeof n)return!1;if("object"!=typeof t||null===t)return t!==n;if("object"!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var o=0;o<i;o++)if(e(t[o],n[o],r-1))return!0}else{for(var a in t)if(e(t[a],n[a],r-1))return!0;for(var s in n)if(void 0===t[s]&&void 0!==n[s])return!0}return!1};var I=n(646),O=n.n(I);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 D=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];const M=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=(0,A.A)(e,D);return k.createElement(R.A,t)};var F=n(4951);var V=n(1603),z=v.A&&void 0!==window.requestIdleCallback,j=z?window.requestIdleCallback:function(e,t){return setTimeout(()=>{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};z&&window.cancelIdleCallback;const B=j;var H=new V.A,W={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{Q(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),K.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{K.cancelTasks(t)}}},createInteractionHandle(){Q();var e=++G;return $.add(e),e},clearInteractionHandle(e){O()(!!e,"Must provide a handle to clear."),Q(),$.delete(e),Y.add(e)},addListener:H.addListener.bind(H),setDeadline(e){X=e}},U=new Set,$=new Set,Y=new Set,K=new class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,C.A)((0,C.A)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(O()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,n=this._queueStack[t];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}({onMoreTasks:Q}),q=0,G=0,X=-1;function Q(){q||(q=X>0?setTimeout(J):B(J))}function J(){q=0;var e=U.size;$.forEach(e=>U.add(e)),Y.forEach(e=>U.delete(e));var t=U.size;if(0!==e&&0===t?H.emit(W.Events.interactionComplete):0===e&&0!==t&&H.emit(W.Events.interactionStart),0===t)for(var n=Date.now();K.hasTasksToProcess();)if(K.processNext(),X>0&&Date.now()-n>=X){Q();break}$.clear(),Y.clear()}const Z=W,ee=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=Z.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}},te=function(e,t,n){return t<e?e:t>n?n:t};class ne{constructor(e){O()(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,this._regions=0===e?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(O()(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.last<e.first)){var t=this._findRegion(e.first),n=t[0],r=t[1],i=this._findRegion(e.last),o=i[0],a=i[1];if(r!==a||n.isSpacer){var s=[],l=[],u=(0,C.A)((0,C.A)({},e),{},{isSpacer:!1});n.first<u.first&&(n.isSpacer?s.push({first:n.first,last:u.first-1,isSpacer:!0}):u.first=n.first),o.last>u.last&&(o.isSpacer?l.push({first:u.last+1,last:o.last,isSpacer:!0}):u.last=o.last);var c=[...s,u,...l],d=a-r+1;this._regions.splice(r,d,...c)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((t,n)=>t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer)}_findRegion(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];e<i.first?n=r-1:e>i.last&&(t=r+1)}O()(!1,"A region was not found containing cellIdx "+e)}}class re{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){var n;O()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var r=null!==(n=this._cellKeyToChildren.get(t))&&void 0!==n?n:new Set;r.add(e),this._cellKeyToChildren.set(t,r),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);O()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);O()(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t,n=L(this._cellKeyToChildren.values());!(t=n()).done;)for(var r,i=L(t.value);!(r=i()).done;)e(r.value)}forEachInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)t(r.value)}anyInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)if(t(r.value))return!0;return!1}size(){return this._childrenToCellKey.size}}class ie{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var oe=[],ae=10,se=null;const le=class{static addListener(e){return null===se&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),oe.push(e),{remove:()=>{oe=oe.filter(t=>e!==t)}}}static setSampleRate(e){se=e}static setMinSampleCount(e){ae=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(se||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=n.g.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(null!=e)if(this._info.sample_count<ae)this._resetData();else{var t=n.g.performance.now()-e,r=(0,C.A)((0,C.A)({},this._info),{},{total_time_spent:t});oe.forEach(e=>e(r)),this._resetData()}}}computeBlankness(e,t,r){if(!this._enabled||0===e.getItemCount(e.data)||t.last<t.first||null==this._samplesStartTime)return 0;var i=r.dOffset,o=r.offset,a=r.velocity,s=r.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(s),this._info.pixels_scrolled+=Math.round(Math.abs(i));var l=Math.round(1e3*Math.abs(a)),u=n.g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=u-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=u-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,d=t.first,f=this._getFrameMetrics(d,e);d<=t.last&&(!f||!f.inLayout);)f=this._getFrameMetrics(d,e),d++;f&&d>0&&(c=Math.min(s,Math.max(0,f.offset-o)));for(var h=0,p=t.last,m=this._getFrameMetrics(p,e);p>=t.first&&(!m||!m.inLayout);)m=this._getFrameMetrics(p,e),p--;if(m&&p<e.getItemCount(e.data)-1){var v=m.offset+m.length;h=Math.min(s,Math.max(0,o+s-v))}var g=Math.round(c+h),y=g/s;return y>0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=l,this._info.any_blank_count++,this._info.pixels_blank+=g,y>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(l<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),y}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null}};class ue extends k.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){"function"==typeof e?super.setState((t,n)=>{var r;this._inAsyncStateUpdate=!0;try{r=e(t,n)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return r},t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get:()=>(O()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t),set(e){t=e}}),Object.defineProperty(this,"state",{get:()=>(O()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(e){n=e}})}}function ce(e,t,n,r,i,o){if(function(e,t,n){return e>=0&&t<=n&&t>e}(n,r,i))return!0;var a=function(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}(n,r,i);return 100*(e?a/i:a/o)>=t}const de=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,r,i){var o=e.getItemCount(e.data),a=this._config,s=a.itemVisiblePercentThreshold,l=a.viewAreaCoveragePercentThreshold,u=null!=l,c=u?l:s;O()(null!=c&&null!=s!=(null!=l),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var d=[];if(0===o)return d;var f=-1,h=i||{first:0,last:o-1},p=h.first,m=h.last;if(m>=o)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:i,itemCount:o})),[];for(var v=p;v<=m;v++){var g=r(v,e);if(g){var y=g.offset-t,b=y+g.length;if(y<n&&b>0)f=v,ce(u,c,y,b,n,g.length)&&d.push(v);else if(f>=0)break}}return d}onUpdate(e,t,n,r,i,o,a){var s=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==s&&r(0,e)){var l=[];if(s&&(l=this.computeViewableItems(e,t,n,r,a)),this._viewableIndices.length!==l.length||!this._viewableIndices.every((e,t)=>e===l[t]))if(this._viewableIndices=l,this._config.minimumViewTime){var u=setTimeout(()=>{this._timers.delete(u),this._onUpdateSync(e,l,o,i)},this._config.minimumViewTime);this._timers.add(u)}else this._onUpdateSync(e,l,o,i)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,n,r){t=t.filter(e=>this._viewableIndices.includes(e));for(var i,o=this._viewableItems,a=new Map(t.map(t=>{var n=r(t,!0,e);return[n.key,n]})),s=[],l=L(a);!(i=l()).done;){var u=i.value,c=u[0],d=u[1];o.has(c)||s.push(d)}for(var f,h=L(o);!(f=h()).done;){var p=f.value,m=p[0],v=p[1];a.has(m)||s.push((0,C.A)((0,C.A)({},v),{},{isViewable:!1}))}s.length>0&&(this._viewableItems=a,n({viewableItems:Array.from(a.values()),changed:s,viewabilityConfig:this._config}))}};var fe=k.createContext(null);function he(e){var t=e.children,n=e.value,r=(0,k.useMemo)(()=>({cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild}),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return k.createElement(fe.Provider,{value:r},t)}function pe(e){var t=e.cellKey,n=e.children,r=(0,k.useContext)(fe),i=(0,k.useMemo)(()=>null==r?null:(0,C.A)((0,C.A)({},r),{},{cellKey:t}),[r,t]);return k.createElement(fe.Provider,{value:i},n)}class me extends k.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!1})},updateProps:(e,t)=>{var n=this.props,r=n.cellKey,i=n.prevCellKey;this.props.onUpdateSeparators(["leading"===e?i:r],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,C.A)((0,C.A)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:(0,C.A)((0,C.A)({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,n,r){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?k.createElement(t,{item:n,index:r,separators:this._separators}):e?e({item:n,index:r,separators:this._separators}):void O()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,i=e.cellKey,o=e.horizontal,a=e.item,s=e.index,l=e.inversionStyle,u=e.onCellFocusCapture,c=e.onCellLayout,d=e.renderItem,f=this._renderElement(d,r,a,s),h=k.isValidElement(n)?n:n&&k.createElement(n,this.state.separatorProps),p=l?o?[ve.rowReverse,l]:[ve.columnReverse,l]:o?[ve.row,l]:l,m=t?k.createElement(t,(0,x.A)({cellKey:i,index:s,item:a,style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),f,h):k.createElement(R.A,(0,x.A)({style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),f,h);return k.createElement(pe,{cellKey:this.props.cellKey},m)}}var ve=T.A.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}});function ge(e,t){return"object"==typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"==typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}var ye=n(801),be=n.n(ye),_e=!1,we="";function Se(e){return null!=e&&e}function Ce(e){return null!=e?e:10}function Ee(e){return null!=e?e:2}function xe(e,t){return e*t/2}function ke(e){return null!=e?e:21}class Ae extends ue{scrollToEnd(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,a=t.onScrollToIndexFailed,s=e.animated,l=e.index,u=e.viewOffset,c=e.viewPosition;if(O()(l>=0,"scrollToIndex out of range: requested index "+l+" but minimum is 0"),O()(i(n)>=1,"scrollToIndex out of range: item length "+i(n)+" but minimum is 1"),O()(l<i(n),"scrollToIndex out of range: requested index "+l+" is out of 0 to "+(i(n)-1)),!o&&l>this._highestMeasuredFrameIndex)return O()(!!a,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void a({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:l});var d=this.__getFrameMetricsApprox(Math.floor(l),this.props),f=Math.max(0,this._getOffsetApprox(l,this.props)-(c||0)*(this._scrollMetrics.visibleLength-d.length))-(u||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:f,animated:s}:{y:f,animated:s}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,o=(0,n.getItemCount)(r),a=0;a<o;a++)if(i(r,a)===t){this.scrollToIndex((0,C.A)((0,C.A)({},e),{},{index:a}));break}}scrollToOffset(e){var t=e.animated,n=e.offset;null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var n=null!=e&&this._cellRefs[e];n&&n.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new re,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,n=e.onRefresh;return this._isNestedWithSameOrientation()?k.createElement(R.A,e):n?(O()("boolean"==typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),k.createElement(F.A,(0,x.A)({},e,{refreshControl:null==e.refreshControl?k.createElement(M,{refreshing:e.refreshing,onRefresh:n,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):k.createElement(F.A,e)},this._onCellLayout=(e,t,n)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:n,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&n===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,n),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,C.A)((0,C.A)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:be()(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,n=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:n,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,n=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var a=this._convertParentScrollMetrics({visibleLength:n,offset:i});n=a.visibleLength,r=a.contentLength,i=a.offset,o=a.dOffset}var s=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,l=o/s;s>500&&this._scrollMetrics.dt>500&&r>5*n&&!this._hasWarned.perf&&(function(){console.log(...arguments)}("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:s,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:s,dOffset:o,offset:i,timestamp:t,velocity:l,visibleLength:n,zoomScale:u},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==l&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((e,t)=>{var n=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=Ae._createRenderMask(t,n,this._getNonViewportRenderRegions(t));return n.first===e.cellsAroundViewport.first&&n.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:n,renderMask:r}})},this._createViewToken=(e,t,n)=>{var r=n.data,i=(0,n.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,n),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var n=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return n.offset+r*n.length},this.__getFrameMetricsApprox=(e,t)=>{var n=this._getFrameMetrics(e,t);if(n&&n.index===e)return n;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return O()(e>=0&&e<i(r),"Tried to get frame for out of range index "+e),O()(!o,"Should not have to estimate frames when a measurement metrics function is provided"),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var n=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;O()(e>=0&&e<i(n),"Tried to get frame for out of range index "+e);var a=r(n,e),s=this._frames[this._keyExtractor(a,e,t)];return s&&s.index===e||!o?s:o(n,e)},this._getNonViewportRenderRegions=e=>{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,n=e.getItemCount(e.data);if(t>=n||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i<this._scrollMetrics.visibleLength;o--)r--,i+=this.__getFrameMetricsApprox(o,e).length;for(var a=t,s=0,l=a+1;l<n&&s<this._scrollMetrics.visibleLength;l++)a++,s+=this.__getFrameMetricsApprox(l,e).length;return[{first:r,last:a}]},this._checkProps(e),this._fillRateHelper=new le(this._getFrameMetrics),this._updateCellsToRenderBatcher=new ee(this._updateCellsToRender,null!==(t=this.props.updateCellsBatchingPeriod)&&void 0!==t?t:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityHelper:new de(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,r=n.onViewableItemsChanged,i=n.viewabilityConfig;r&&this._viewabilityTuples.push({viewabilityHelper:new de(i),onViewableItemsChanged:r})}var o=Ae._initialRenderRegion(e);this.state={cellsAroundViewport:o,renderMask:Ae._createRenderMask(e,o)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,n=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=n>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,a=o;i&&(a=o<0?Math.min(o+t,0):Math.max(o-(n-r-t),0));var s=o-a;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var l=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=s;var u=l.scrollLeft-a;l.scrollLeft=this.props.getItemLayout?u:Math.min(u,this._totalCellLength)}else{e.target.scrollTop+=s;var c=l.scrollTop-a;l.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,n=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;O()(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),O()(ke(n)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),O()(r,'VirtualizedList: The "getItemCount" prop must be provided');var a=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||a>0&&o>=a)||this._hasWarned.initialScrollIndex||(console.warn('initialScrollIndex "'+o+'" is not valid (list has '+a+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,n){var r=e.getItemCount(e.data);O()(t.first>=0&&t.last>=t.first-1&&t.last<r,'Invalid cells around viewport "['+t.first+", "+t.last+']" was passed to VirtualizedList._createRenderMask');var i=new ne(r);if(r>0){for(var o=0,a=[t,...null!=n?n:[]];o<a.length;o++){var s=a[o];i.addCells(s)}if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var l=Ae._initialRenderRegion(e);i.addCells(l)}var u=new Set(e.stickyHeaderIndices);Ae._ensureClosestStickyHeader(e,u,i,t.first)}return i}static _initialRenderRegion(e){var t,n,r=e.getItemCount(e.data),i=Math.max(0,Math.min(r-1,Math.floor(null!==(t=e.initialScrollIndex)&&void 0!==t?t:0)));return{first:i,last:Math.min(r,i+(null!=(n=e.initialNumToRender)?n:10))-1}}static _ensureClosestStickyHeader(e,t,n,r){for(var i=e.ListHeaderComponent?1:0,o=r-1;o>=0;o--)if(t.has(o+i)){n.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var n,r=e.data,i=e.getItemCount,o=Ee(e.onEndReachedThreshold),a=this._scrollMetrics,s=a.contentLength,l=a.offset,u=a.visibleLength,c=s-u-l;if(u<=0||s<=0)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;if(e.disableVirtualization){var d=c<o*u?Ce(e.maxToRenderPerBatch):0;n={first:0,last:Math.min(t.last+d,i(r)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;n=function(e,t,n,r,i,o){var a=e.getItemCount(e.data);if(0===a)return{first:0,last:-1};var s=o.offset,l=o.velocity,u=o.visibleLength,c=o.zoomScale,d=void 0===c?1:c,f=Math.max(0,s),h=f+u,p=(n-1)*u,m=l>1?"after":l<-1?"before":"none",v=Math.max(0,f-.5*p),g=Math.max(0,h+.5*p);if(i(a-1,e).offset*d<v)return{first:Math.max(0,a-1-t),last:a-1};var y=function(e,t,n,r){void 0===r&&(r=1);for(var i=t.getItemCount(t.data),o=[],a=0;a<e.length;a++)for(var s=e[a],l=0,u=i-1;l<=u;){var c=l+(u-l>>>1),d=n(c,t),f=d.offset*r,h=(d.offset+d.length)*r;if(0===c&&s<f||0!==c&&s<=f)u=c-1;else{if(!(s>h)){o[a]=c;break}l=c+1}}return o}([v,f,h,g],e,i,d),b=y[0],_=y[1],w=y[2],S=y[3];b=null==b?0:b,S=null==S?a-1:S;for(var C={first:_=null==_?Math.max(0,b):_,last:w=null==w?Math.min(S,_+t-1):w},E=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(r,C);!(_<=b&&w>=S);){var x=E>=t,k=_<=r.first||_>r.last,A=_>b&&(!x||!k),R=w>=r.last||w<r.first,T=w<S&&(!x||!R);if(x&&!A&&!T)break;!A||"after"===m&&T&&R||(k&&E++,_--),!T||"before"===m&&A&&k||(R&&E++,w++)}if(!(w>=_&&_>=0&&w<a&&_>=b&&w<=S&&_<=C.first&&w>=C.last))throw new Error("Bad window calculation "+JSON.stringify({first:_,last:w,itemCount:a,overscanFirst:b,overscanLast:S,visible:C}));return{first:_,last:w}}(e,Ce(e.maxToRenderPerBatch),ke(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),O()(n.last<i(r),"computeWindowedRenderLimits() should return range in-bounds")}if(this._nestedChildLists.size()>0){var f=this._findFirstChildWithMore(n.first,n.last);n.last=null!=f?f:n.last}return n}_findFirstChildWithMore(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(null!=r&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout(()=>this.setupWebWheelHandler(),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var n=Ae._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:n,renderMask:Ae._createRenderMask(e,n)}}_pushCells(e,t,n,r,i,o){var a,s=this,l=this.props,u=l.CellRendererComponent,c=l.ItemSeparatorComponent,d=l.ListHeaderComponent,f=l.ListItemComponent,h=l.data,p=l.debug,m=l.getItem,v=l.getItemCount,g=l.getItemLayout,y=l.horizontal,b=l.renderItem,_=d?1:0,w=v(h)-1;i=Math.min(w,i);for(var S=function(){var r=m(h,C),i=s._keyExtractor(r,C,s.props);s._indicesToKeys.set(C,i),n.has(C+_)&&t.push(e.length);var l=null==g||p||s._fillRateHelper.enabled();e.push(k.createElement(me,(0,x.A)({CellRendererComponent:u,ItemSeparatorComponent:C<w?c:void 0,ListItemComponent:f,cellKey:i,horizontal:y,index:C,inversionStyle:o,item:r,key:i,prevCellKey:a,onUpdateSeparators:s._onUpdateSeparators,onCellFocusCapture:e=>s._onCellFocusCapture(i),onUnmount:s._onCellUnmount,ref:e=>{s._cellRefs[i]=e},renderItem:b},l&&{onCellLayout:s._onCellLayout}))),a=i},C=r;C<=i;C++)S()}static _constrainToItemCount(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=Ce(t.maxToRenderPerBatch);return{first:te(0,n-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==Se(this.props.horizontal))}_keyExtractor(e,t,n){if(null!=n.keyExtractor)return n.keyExtractor(e,t);var r=ge(e,t);return r===String(t)&&(_e=!0,e.type&&e.type.displayName&&(we=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,n=e.ListFooterComponent,r=e.ListHeaderComponent,i=this.props,o=i.data,a=i.horizontal,s=this.props.inverted?Se(this.props.horizontal)?Re.horizontallyInverted:Re.verticallyInverted:null,l=[],u=new Set(this.props.stickyHeaderIndices),c=[];if(r){u.has(0)&&c.push(0);var d=k.isValidElement(r)?r:k.createElement(r,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-header",key:"$header"},k.createElement(R.A,{onLayout:this._onLayoutHeader,style:[s,this.props.ListHeaderComponentStyle]},d)))}var f=this.props.getItemCount(o);if(0===f&&t){var h=k.isValidElement(t)?t:k.createElement(t,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-empty",key:"$empty"},k.cloneElement(h,{onLayout:e=>{this._onLayoutEmpty(e),h.props.onLayout&&h.props.onLayout(e)},style:[s,h.props.style]})))}if(f>0){_e=!1,we="";for(var p,m=this._getSpacerKey(!a),v=this.state.renderMask.enumerateRegions(),g=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}(v,e=>e.isSpacer),y=L(v);!(p=y()).done;){var b=p.value;if(b.isSpacer){if(this.props.disableVirtualization)continue;var _=b!==g||this.props.getItemLayout?b.last:te(b.first-1,b.last,this._highestMeasuredFrameIndex),w=this.__getFrameMetricsApprox(b.first,this.props),S=this.__getFrameMetricsApprox(_,this.props),E=S.offset+S.length-w.offset;l.push(k.createElement(R.A,{key:"$spacer-"+b.first,style:{[m]:E}}))}else this._pushCells(l,c,u,b.first,b.last,s)}!this._hasWarned.keys&&_e&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",we),this._hasWarned.keys=!0)}if(n){var x=k.isValidElement(n)?n:k.createElement(n,null);l.push(k.createElement(pe,{cellKey:this._getFooterCellKey(),key:"$footer"},k.createElement(R.A,{onLayout:this._onLayoutFooter,style:[s,this.props.ListFooterComponentStyle]},x)))}var A,T=(0,C.A)((0,C.A)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(A=this.props.scrollEventThrottle,null!=A?A:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:c,style:s?[s,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<f-1;var P=k.createElement(he,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:Se(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},k.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(T),{ref:this._captureScrollRef},l));return this.props.debug?k.createElement(R.A,{style:Re.debug},P,this._renderDebugOverlay()):P}componentDidUpdate(e){var t=this.props,n=t.data,r=t.extraData;n===e.data&&r===e.extraData||this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,n,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn("measureLayoutRelativeToContainingList threw an error",e.stack)}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],n=this.props.getItemCount(this.props.data),r=0;r<n;r++){var i=this.__getFrameMetricsApprox(r,this.props);i.inLayout&&t.push(i)}var o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,a=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),s=a.offset+a.length-o,l=this._scrollMetrics.offset,u=this._scrollMetrics.visibleLength;return k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlay]},t.map((t,n)=>k.createElement(R.A,{key:"f"+n,style:[Re.debugOverlayBase,Re.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameLast,{top:o*e,height:s*e}]}),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameVis,{top:l*e,height:u*e}]}))}_selectLength(e){return Se(this.props.horizontal)?e.width:e.height}_selectOffset(e){return Se(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,n=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,a=e.onEndReachedThreshold,s=e.initialScrollIndex,l=this._scrollMetrics,u=l.contentLength,c=l.visibleLength,d=l.offset,f=d,h=u-c-d;f<.001&&(f=0),h<.001&&(h=0);var p=f<=(null!=i?i*c:2),m=h<=(null!=a?a*c:2);o&&this.state.cellsAroundViewport.last===n(t)-1&&m&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:h})):null!=r&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?s&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:f})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=m?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,n=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,a=r.velocity,s=this.props.getItemCount(this.props.data),l=!1,u=function(e){return null!=e?e:2}(this.props.onStartReachedThreshold),c=Ee(this.props.onEndReachedThreshold);if(t>0){var d=i-this.__getFrameMetricsApprox(t,this.props).offset;l=d<0||a<-2&&d<xe(u,o)}if(!l&&n>=0&&n<s-1){var f=this.__getFrameMetricsApprox(n,this.props).offset-(i+o);l=f<0||a>2&&f<xe(c,o)}if(l&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach(n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,t)})}}Ae.contextType=fe;var Re=T.A.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const Te=Ae;var Pe=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ie(e,t){return e===t||!(!Pe(e)||!Pe(t))}function Oe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Ie(e[n],t[n]))return!1;return!0}var Ne=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function Le(e){return null!=e?e:1}class De extends k.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=e=>{this._listRef=e},this._getItem=(e,t)=>{var n=Le(this.props.numColumns);if(n>1){for(var r=[],i=0;i<n;i++){var o=t*n+i;if(o<e.length){var a=e[o];r.push(a)}}return r}return e[t]},this._getItemCount=e=>{if(null!=e&&function(e){return"number"==typeof Object(e).length}(e)){var t=Le(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ge;return r>1?(O()(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map((e,n)=>i(e,t*r+n)).join(":")):i(e,t)},this._renderer=(e,t,n,r,i)=>{var o=Le(r),a=n=>e?k.createElement(e,n):t?t(n):null,s=e=>{if(o>1){var t=e.item,r=e.index;return O()(Array.isArray(t),"Expected array of items with numColumns > 1"),k.createElement(R.A,{style:[Me.row,n]},t.map((t,n)=>{var i=a({item:t,index:r*o+n,separators:e.separators});return null!=i?k.createElement(k.Fragment,{key:n},i):null}))}return a(e)};return e?{ListItemComponent:s}:{renderItem:s}},this._memoizedRenderer=function(e,t){void 0===t&&(t=Oe);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){O()(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),O()(e.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),O()(!P(e.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),O()(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,n=e.getItemCount,r=e.horizontal,i=e.columnWrapperStyle,o=e.onViewableItemsChanged,a=e.viewabilityConfigCallbackPairs,s=Le(this.props.numColumns);O()(!t&&!n,"FlatList does not support custom data formats."),s>1?O()(!r,"numColumns does not support horizontal."):O()(!i,"columnWrapperStyle not supported for single column lists"),O()(!(o&&a),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ge;t.item.forEach((n,o)=>{O()(null!=t.index,"Missing index!");var a=t.index*r+o;e.push((0,C.A)((0,C.A)({},t),{},{item:n,key:i(n,a),index:a}))})}_createOnViewableItemsChanged(e){return t=>{var n=Le(this.props.numColumns);if(e)if(n>1){var r=[],i=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(i,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(r,e)),e({viewableItems:i,changed:r})}else e(t)}}render(){var e,t=this.props,n=t.numColumns,r=t.columnWrapperStyle,i=t.removeClippedSubviews,o=t.strictMode,a=void 0!==o&&o,s=(0,A.A)(t,Ne),l=a?this._memoizedRenderer:this._renderer;return k.createElement(Te,(0,x.A)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=i,null!=e?e:"android"===E.A.OS)},l(this.props.ListItemComponent,this.props.renderItem,r,n,this.props.extraData)))}}var Me=T.A.create({row:{flexDirection:"row"}});const Fe=De;var Ve=n(5725);class ze{constructor(e){"ios"===E.A.OS&&(O()(null!=e,"`new NativeEventEmitter()` requires a non-null argument."),this._nativeModule=e)}addListener(e,t,n){var r;null==(r=this._nativeModule)||r.addListener(e);var i=Ve.A.addListener(e,t,n);return{remove:()=>{var e;null!=i&&(null==(e=this._nativeModule)||e.removeListeners(1),i.remove(),i=null)}}}removeListener(e,t){var n;null==(n=this._nativeModule)||n.removeListeners(1),Ve.A.removeListener(e,t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ve.A.emit(e,...n)}removeAllListeners(e){var t;O()(null!=e,"`NativeEventEmitter.removeAllListener()` requires a non-null argument."),null==(t=this._nativeModule)||t.removeListeners(this.listenerCount(e)),Ve.A.removeAllListeners(e)}listenerCount(e){return Ve.A.listenerCount(e)}}const je=E.A,Be=()=>!1,He=()=>!1;var We,Ue=("ios"===je.OS&&n.g.RN$Bridgeless,null),$e=1,Ye=1,Ke=new Set,qe=!1,Ge=[];"android"===je.OS&&null!=Ue&&Ue.queueAndExecuteBatchedOperations&&He();var Xe=null,Qe=Ue,Je={getValue:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.getValue,e,t)},setWaitingForIdentifier:function(e){Ke.add(e),qe=!0,Be()&&Xe&&clearTimeout(Xe)},unsetWaitingForIdentifier:function(e){Ke.delete(e),0===Ke.size&&(qe=!1,Je.disableQueue())},disableQueue:function(){O()(Qe,"Native animated module is not available"),Be()?(clearImmediate(Xe),Xe=setImmediate(Je.flushQueue)):Je.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];qe||0!==Ge.length?Ge.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){O()(Qe,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.stopAnimation,e)},setAnimatedNodeValue:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){O()(Qe,"Native animated module is not available"),null!=Qe.restoreDefaultValues&&Je.queueOperation(Qe.restoreDefaultValues,e)},dropAnimatedNode:function(e){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){O()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.removeAnimatedEventFromView,e,t,n)}},Ze={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},et=(0,C.A)((0,C.A)({},Ze),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),tt={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},nt={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function rt(e){return et.hasOwnProperty(e)}function it(e){return tt.hasOwnProperty(e)}function ot(e){return nt.hasOwnProperty(e)}function at(){return Ye++}var st=!1;function lt(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||Ue?e.useNativeDriver||!1:(st||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),st=!0),!1)}const ut={API:Je,isSupportedColorStyleProp:function(e){return Ze.hasOwnProperty(e)},isSupportedStyleProp:rt,isSupportedTransformProp:it,isSupportedInterpolationParam:ot,addWhitelistedStyleProp:function(e){et[e]=!0},addWhitelistedTransformProp:function(e){tt[e]=!0},addWhitelistedInterpolationParam:function(e){nt[e]=!0},validateStyles:function(e){for(var t in e)if(!rt(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(e=>{if(!it(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!ot(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return $e++},generateNewAnimationId:at,assertNativeAnimatedModule:function(){O()(Ue,"Native animated module is not available")},shouldUseNativeDriver:lt,transformDataType:function(e){return"string"!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return We||(We=new ze("ios"!==je.OS?null:Ue)),We}};var ct=ut.API,dt=1;const ft=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(ut.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(dt++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),ct.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=ut.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,ct.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;ut.assertNativeAnimatedModule(),O()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var t=null!==(e=this.__nativeTag)&&void 0!==e?e:ut.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),ut.API.createAnimatedNode(t,n),this.__shouldUpdateListenersForNewNativeTag=!0}return t}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},ht=class extends ft{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__makeNative(e),ut.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),ut.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&ut.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}};var pt=n(1515),mt=n.n(pt),vt=e=>e;function gt(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return function(e){var t=e.outputRange;O()(t.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(bt,""),n=1;n<e.length;++n)O()(t===e[n].replace(bt,""),"invalid pattern "+e[0]+" and "+e[n])}(t=t.map(yt));var n=t[0].match(bt).map(()=>[]);t.forEach(e=>{e.match(bt).forEach((e,t)=>{n[t].push(+e)})});var r,i=t[0].match(bt).map((t,r)=>gt((0,C.A)((0,C.A)({},e),{},{outputRange:n[r]}))),o="string"==typeof(r=t[0])&&r.startsWith("rgb");return e=>{var n=0;return t[0].replace(bt,()=>{var t=+i[n++](e);return o&&(t=n<4?Math.round(t):Math.round(1e3*t)/1e3),String(t)})}}(e);var t=e.outputRange,n=e.inputRange,r=e.easing||vt,i="extend";void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),e=>{O()("number"==typeof e,"Cannot interpolation an input which is not a number");var a=function(e,t){var n;for(n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,n);return function(e,t,n,r,i,o,a,s){var l=e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,n[a],n[a+1],t[a],t[a+1],r,i,o)}}function yt(e){var t=mt()(e);return null===t||"number"!=typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var bt=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;class _t extends ht{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=gt(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return O()("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new _t(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(ut.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}_t.__createInterpolation=gt;const wt=_t;var St=ut.API;const Ct=class extends ht{constructor(e,t){if(super(),"number"!=typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&St.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){var t,n;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=()=>St.setAnimatedNodeValue(this.__getNativeTag(),e),St.setWaitingForIdentifier(t),n(),St.unsetWaitingForIdentifier(t))}setOffset(e){this._offset=e,this.__isNative&&St.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&St.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&St.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?St.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&St.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new wt(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=Z.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,null!==n&&Z.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");var n;this._value=e,t&&(n=new Set,function e(t){"function"==typeof t.update?n.add(t):t.__getChildren().forEach(e)}(this),n.forEach(e=>e.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}};function Et(e,t,n){var r=[],i=(e,t)=>{if(e instanceof Ct)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)i(e[n],t.concat(n))};return O()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),null!=e&&r.forEach(n=>{ut.API.addAnimatedEventToView(e,t,n)}),{detach(){null!=e&&r.forEach(n=>{ut.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)})}}}class xt{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=lt(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){O()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=Et(e,t,this._argMapping)}__detach(e,t){O()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(e,t,n)=>{if(e instanceof Ct)"number"==typeof t&&e.setValue(t);else if("object"==typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach((e,t)=>{i(e,n[t],"arg"+t)}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._listeners.forEach(e=>e(...t))}}const kt=class extends ht{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ft&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ft?r.__getValue():r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ft?r.__getAnimatedValue():r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ft&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ft&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof ft?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:ut.transformDataType(r)})}}),ut.validateTransform(e),{type:"transform",transforms:e}}};var At=T.A.flatten;function Rt(e){var t=At(e),n={};for(var r in t){var i=t[r];"transform"===r&&Array.isArray(i)?n[r]=new kt(i):i instanceof ft?n[r]=i:i&&!Array.isArray(i)&&"object"==typeof i&&(n[r]=Rt(i))}return n}const Tt=class extends ht{constructor(e){super(),this._inputStyle=e,this._style=Rt(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof ft?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"==typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof ft?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"==typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof ft&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof ft&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof ft&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof ft){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return ut.validateStyles(e),{type:"style",style:e}}},Pt=class extends ft{constructor(e,t){super(),e.style&&(e=(0,C.A)((0,C.A)({},e),{},{style:new Tt(e.style)})),this._props=e,this._callback=t,this.__attach()}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ft?(!n.__isNative||n instanceof Tt)&&(e[t]=n.__getValue()):e[t]=n instanceof xt?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ft&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof ft&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var t=this._props[e];t instanceof ft&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof ft&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){O()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;O()(null!=e,"Unable to locate attached view in the native tree"),ut.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){O()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;O()(null!=e,"Unable to locate attached view in the native tree"),ut.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&ut.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ft&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}};var It=n(8425);function Ot(e){return(0,C.A)((0,C.A)({},e.__getValue()),{},{collapsable:!1})}var Nt=["style"];function Lt(e){return k.forwardRef((t,n)=>{var r=function(e){var t=(0,k.useReducer)(e=>e+1,0)[1],n=(0,k.useRef)(null),r=(0,k.useMemo)(()=>new Pt(e,()=>null==n.current?void 0:n.current()),[e]);!function(e){var t=(0,k.useRef)(null),n=(0,k.useRef)(!1);(0,k.useEffect)(()=>{ut.API.flushQueue()}),(0,It.A)(()=>(n.current=!1,()=>{n.current=!0}),[]),(0,It.A)(()=>{if(e.__attach(),null!=t.current){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return()=>{n.current?e.__detach():t.current=e}},[e])}(r);var i,o,a=(0,k.useCallback)(i=>{r.setNativeView(i),n.current=()=>{t()};var o=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}(i),a=[];for(var s in e){var l=e[s];l instanceof xt&&l.__isNative&&(l.__attach(o,s),a.push([s,l]))}return()=>{n.current=null;for(var e=0,t=a;e<t.length;e++){var r=t[e],i=r[0];r[1].__detach(o,i)}}},[e,r]),s=(i=a,o=(0,k.useRef)(void 0),(0,k.useCallback)(e=>{o.current&&(o.current(),o.current=void 0),null!=e&&(o.current=i(e))},[i]));return[Ot(r),s]}(t),i=r[0],o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,k.useCallback)(e=>{for(var n=0,r=t;n<r.length;n++){var i=r[n];null!=i&&("function"==typeof i?i(e):i.current=e)}},[...t])}(r[1],n),a=i.passthroughAnimatedPropExplicitValues,s=i.style,l=null!=a?a:{},u=l.style,c=(0,A.A)(l,Nt),d=[s,u];return k.createElement(e,(0,x.A)({},i,c,{style:d,ref:o}))})}const Dt=Lt(k.forwardRef((e,t)=>k.createElement(Fe,(0,x.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var Mt=n(728);const Ft=Lt(Mt.A),Vt=Lt(k.forwardRef((e,t)=>k.createElement(F.A,(0,x.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var zt=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class jt extends k.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{var t;O()(null!=e.index,"Received a broken ViewToken");var n=this._subExtractor(e.index);if(!n)return null;var r=n.section.keyExtractor,i=this.props.keyExtractor||ge,o=null!=r?r(e.item,n.index):i(e.item,null!==(t=n.index)&&void 0!==t?t:0);return(0,C.A)((0,C.A)({},e),{},{index:n.index,key:o,section:n.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;null!=r&&r({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var o=i.index;if(null==o){var a=i.section;if(!0===i.header){var s=this.props.renderSectionHeader;return s?s({section:a}):null}var l=this.props.renderSectionFooter;return l?l({section:a}):null}var u=i.section.renderItem||this.props.renderItem,c=this._getSeparatorComponent(r,i,e);return O()(u,"no renderItem!"),k.createElement(Bt,{SeparatorComponent:c,LeadingSeparatorComponent:0===o?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:o,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:u,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];null!=n&&n(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];null!=n&&n(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n<e.sectionIndex;n++)t+=this.props.getItemCount(this.props.sections[n].data)+2;var r=e.viewOffset||0;if(null!=this._listRef){e.itemIndex>0&&this.props.stickySectionHeadersEnabled&&(r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length);var i=(0,C.A)((0,C.A)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,n=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,A.A)(t,zt)),r=this.props.ListHeaderComponent?1:0,i=this.props.stickySectionHeadersEnabled?[]:void 0,o=0,a=L(this.props.sections);!(e=a()).done;){var s=e.value;null!=i&&i.push(o+r),o+=2,o+=this.props.getItemCount(s.data)}var l=this._renderItem(o);return k.createElement(Te,(0,x.A)({},n,{keyExtractor:this._keyExtractor,stickyHeaderIndices:i,renderItem:l,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>o,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i<t.length;i++){var o=t[i],a=o.data,s=e.getItemCount(a);if(-1===r||r===s)return o;if(r<s)return e.getItem(a,r);r-=s+2}return null}_subExtractor(e){for(var t=e,n=this.props,r=n.getItem,i=n.getItemCount,o=n.keyExtractor,a=n.sections,s=0;s<a.length;s++){var l=a[s],u=l.data,c=l.key||String(s);if(!((t-=1)>=i(u)+1))return-1===t?{section:l,key:c+":header",index:null,header:!0,trailingSection:a[s+1]}:t===i(u)?{section:l,key:c+":footer",index:null,header:!1,trailingSection:a[s+1]}:{section:l,key:c+":"+(l.keyExtractor||o||ge)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[s-1],trailingItem:r(u,t+1),trailingSection:a[s+1]};t-=i(u)+1}}_getSeparatorComponent(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}function Bt(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,r=e.cellKey,i=e.prevCellKey,o=e.setSelfHighlightCallback,a=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,l=e.updatePropsFor,u=e.item,c=e.index,d=e.section,f=e.inverted,h=k.useState(!1),p=h[0],m=h[1],v=k.useState(!1),g=v[0],y=v[1],b=k.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),_=b[0],w=b[1],S=k.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),E=S[0],A=S[1];k.useEffect(()=>(o(r,y),s(r,A),()=>{s(r,null),o(r,null)}),[r,o,A,s]);var T={highlight:()=>{m(!0),y(!0),null!=i&&a(i,!0)},unhighlight:()=>{m(!1),y(!1),null!=i&&a(i,!1)},updateProps:(e,r)=>{"leading"===e?null!=t?w((0,C.A)((0,C.A)({},_),r)):null!=i&&l(i,(0,C.A)((0,C.A)({},_),r)):"trailing"===e&&null!=n&&A((0,C.A)((0,C.A)({},E),r))}},P=e.renderItem({item:u,index:c,section:d,separators:T}),I=null!=t&&k.createElement(t,(0,x.A)({highlighted:p},_)),O=null!=n&&k.createElement(n,(0,x.A)({highlighted:g},E));return I||O?k.createElement(R.A,null,!1===f?I:O,P,!1===f?O:I):P}const Ht=jt;var Wt=["stickySectionHeadersEnabled"];class Ut extends k.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,A.A)(e,Wt),r=null!=t?t:"ios"===E.A.OS;return k.createElement(Ht,(0,x.A)({},n,{stickySectionHeadersEnabled:r,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}const $t=Ut,Yt=Lt(k.forwardRef((e,t)=>k.createElement($t,(0,x.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var Kt=n(8506);const qt=Lt(Kt.A),Gt=Lt(R.A),Xt=class extends ht{constructor(e,t){super(),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Qt=class extends ht{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new wt(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}},Jt=class extends ht{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof ft&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Zt=class extends ht{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}},en=class extends ht{constructor(e,t){super(),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},tn=class extends ht{constructor(e,t){super(),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},nn=class extends ft{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=lt(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,C.A)((0,C.A)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass((0,C.A)((0,C.A)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:at(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}};var rn=1;const on=class extends ht{constructor(e){super();var t=e||{x:0,y:0};"number"==typeof t.x&&"number"==typeof t.y?(this.x=new Ct(t.x),this.y=new Ct(t.y)):(O()(t.x instanceof Ct&&t.y instanceof Ct,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(rn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}};var an=1;const sn=class{start(e,t,n,r,i){}stop(){this.__nativeId&&ut.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=an+":startAnimation";an+=1,ut.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=ut.generateNewAnimationId(),ut.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{ut.API.unsetWaitingForIdentifier(t)}}},ln=class extends sn{constructor(e){var t,n,r;super(),this._deceleration=null!==(t=e.deceleration)&&void 0!==t?t:.998,this._velocity=e.velocity,this._useNativeDriver=lt(e),this.__isInteraction=null!==(n=e.isInteraction)&&void 0!==n?n:!this._useNativeDriver,this.__iterations=null!==(r=e.iterations)&&void 0!==r?r:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function un(e){return 3.62*(e-30)+194}function cn(e){return 3*(e-8)+25}const dn=function(e,t){return{stiffness:un(e),damping:cn(t)}},fn=function(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l=r(n(t/1.7,0,20),.5,200),u=function(e,t){return.01*e+(1-e)*t}(2*(o=i)-o*o,(a=l)<=18?(s=a,7e-4*Math.pow(s,3)-.031*Math.pow(s,2)+.64*s+1.28):a>18&&a<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(a):function(e){return 45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(a));return{stiffness:un(l),damping:cn(u)}};class hn extends sn{constructor(e){var t,n,r,i,o,a,s,l,u,c,d;if(super(),this._overshootClamping=null!==(t=e.overshootClamping)&&void 0!==t&&t,this._restDisplacementThreshold=null!==(n=e.restDisplacementThreshold)&&void 0!==n?n:.001,this._restSpeedThreshold=null!==(r=e.restSpeedThreshold)&&void 0!==r?r:.001,this._initialVelocity=null!==(i=e.velocity)&&void 0!==i?i:0,this._lastVelocity=null!==(o=e.velocity)&&void 0!==o?o:0,this._toValue=e.toValue,this._delay=null!==(a=e.delay)&&void 0!==a?a:0,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(s=e.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(l=e.iterations)&&void 0!==l?l:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)O()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=null!==(u=e.stiffness)&&void 0!==u?u:100,this._damping=null!==(c=e.damping)&&void 0!==c?c:10,this._mass=null!==(d=e.mass)&&void 0!==d?d:1;else if(void 0!==e.bounciness||void 0!==e.speed){var f,h;O()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var p=fn(null!==(f=e.bounciness)&&void 0!==f?f:8,null!==(h=e.speed)&&void 0!==h?h:12);this._stiffness=p.stiffness,this._damping=p.damping,this._mass=1}else{var m,v,g=dn(null!==(m=e.tension)&&void 0!==m?m:40,null!==(v=e.friction)&&void 0!==v?v:7);this._stiffness=g.stiffness,this._damping=g.damping,this._mass=1}O()(this._stiffness>0,"Stiffness value must be greater than 0"),O()(this._damping>0,"Damping value must be greater than 0"),O()(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(e=this._initialVelocity)&&void 0!==e?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=t,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,r instanceof hn){var o=r.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var a=()=>{this._useNativeDriver?this.__startNativeAnimation(i):this.onUpdate()};this._delay?this._timeout=setTimeout(a,this._delay):a()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,o=-this._initialVelocity,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),l=s*Math.sqrt(1-a*a),u=this._toValue-this._startPosition,c=0,d=0,f=this._frameTime;if(a<1){var h=Math.exp(-a*s*f);c=this._toValue-h*((o+a*s*u)/l*Math.sin(l*f)+u*Math.cos(l*f)),d=a*s*h*(Math.sin(l*f)*(o+a*s*u)/l+u*Math.cos(l*f))-h*(Math.cos(l*f)*(o+a*s*u)-l*u*Math.sin(l*f))}else{var p=Math.exp(-s*f);c=this._toValue-p*(u+(o+s*u)*f),d=p*(o*(f*s-1)+f*u*(s*s))}if(this._lastTime=e,this._lastPosition=c,this._lastVelocity=d,this._onUpdate(c),this.__active){var m=!1;this._overshootClamping&&0!==this._stiffness&&(m=this._startPosition<this._toValue?c>this._toValue:c<this._toValue);var v=Math.abs(d)<=this._restSpeedThreshold,g=!0;if(0!==this._stiffness&&(g=Math.abs(this._toValue-c)<=this._restDisplacementThreshold),m||v&&g)return 0!==this._stiffness&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),void this.__debouncedOnEnd({finished:!0});this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}const pn=hn;var mn,vn=.1,gn="function"==typeof Float32Array;function yn(e,t){return 1-3*t+3*e}function bn(e,t){return 3*t-6*e}function _n(e){return 3*e}function wn(e,t,n){return((yn(t,n)*e+bn(t,n))*e+_n(t))*e}function Sn(e,t,n){return 3*yn(t,n)*e*e+2*bn(t,n)*e+_n(t)}function Cn(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var i=gn?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var o=0;o<11;++o)i[o]=wn(o*vn,e,n);return function(o){return e===t&&n===r?o:0===o?0:1===o?1:wn(function(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=vn;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*vn,s=Sn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=t,o=0;o<4;++o){var a=Sn(i,n,r);if(0===a)return i;i-=(wn(i,n,r)-e)/a}return i}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0,l=t,u=n;do{(o=wn(a=l+(u-l)/2,r,i)-e)>0?u=a:l=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+vn,e,n)}(o),t,r)}}class En{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return mn||(mn=En.bezier(.42,0,1,1)),mn(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return Cn(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}const xn=En;var kn;const An=class extends sn{constructor(e){var t,n,r,i,o;super(),this._toValue=e.toValue,this._easing=null!==(t=e.easing)&&void 0!==t?t:(kn||(kn=xn.inOut(xn.ease)),kn),this._duration=null!==(n=e.duration)&&void 0!==n?n:500,this._delay=null!==(r=e.delay)&&void 0!==r?r:0,this.__iterations=null!==(i=e.iterations)&&void 0!==i?i:1,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(o=e.isInteraction)&&void 0!==o?o:!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=[],t=Math.round(this._duration/(1e3/60)),n=0;n<t;n++)e.push(this._easing(n/t));return e.push(this._easing(1)),{type:"frames",frames:e,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var o=()=>{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};var Rn=ut.API,Tn={r:0,g:0,b:0,a:1},Pn=1;function In(e){if(null==e)return null;if(On(e))return e;var t=mt()(e);if(null==t)return null;if("object"==typeof t){if(null!=t)return t}else if("number"==typeof t)return{r:(4278190080&t)>>>24,g:(16711680&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255};return null}function On(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}class Nn extends ht{constructor(e,t){super(),this._listeners={};var n=null!=e?e:Tn;if(function(e){return e&&e.r instanceof Ct&&e.g instanceof Ct&&e.b instanceof Ct&&e.a instanceof Ct}(n)){var r=n;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var i,o=null!==(i=In(n))&&void 0!==i?i:Tn,a=Tn;On(o)?a=o:this.nativeColor=o,this.r=new Ct(a.r),this.g=new Ct(a.g),this.b=new Ct(a.b),this.a=new Ct(a.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();Rn.setWaitingForIdentifier(r.toString())}var i=null!==(t=In(e))&&void 0!==t?t:Tn;if(On(i)){var o=i;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)}else{var a=i;this.nativeColor!==a&&(this.nativeColor=a,n=!0)}if(this.__isNative){var s=this.__getNativeTag();n&&Rn.updateAnimatedNodeConfig(s,this.__getNativeConfig()),Rn.unsetWaitingForIdentifier(s.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(Pn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}var Ln=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},Dn=function(e,t,n){if(e instanceof on){var r=(0,C.A)({},t),i=(0,C.A)({},t);for(var o in t){var a=t[o],s=a.x,l=a.y;void 0!==s&&void 0!==l&&(r[o]=s,i[o]=l)}var u=n(e.x,r),c=n(e.y,i);return Vn([u,c],{stopTogether:!1})}if(e instanceof Nn){var d=(0,C.A)({},t),f=(0,C.A)({},t),h=(0,C.A)({},t),p=(0,C.A)({},t);for(var m in t){var v=t[m],g=v.r,y=v.g,b=v.b,_=v.a;void 0!==g&&void 0!==y&&void 0!==b&&void 0!==_&&(d[m]=g,f[m]=y,h[m]=b,p[m]=_)}var w=n(e.r,d),S=n(e.g,f),E=n(e.b,h),x=n(e.a,p);return Vn([w,S,E,x],{stopTogether:!1})}return null},Mn=function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ft?r.track(new nn(r,t.toValue,An,i,n)):r.animate(new An(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,C.A)((0,C.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Fn=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)})},stop:function(){t<e.length&&e[t].stop()},reset:function(){e.forEach((e,n)=>{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},Vn=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){n!==e.length?e.forEach((a,s)=>{var l=function(a){if(r[s]=!0,++n===e.length)return n=0,void(t&&t(a));!a.finished&&i&&o.stop()};a?a.start(l):l({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach((e,t)=>{!r[t]&&e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},zn=function(e){return Mn(new Ct(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})};const jn={Value:Ct,ValueXY:on,Color:Nn,Interpolation:wt,Node:ft,decay:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),r.animate(new ln(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,C.A)((0,C.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:Mn,spring:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ft?r.track(new nn(r,t.toValue,pn,i,n)):r.animate(new pn(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,C.A)((0,C.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new Xt(e,t)},subtract:function(e,t){return new tn(e,t)},divide:function(e,t){return new Jt(e,t)},multiply:function(e,t){return new en(e,t)},modulo:function(e,t){return new Zt(e,t)},diffClamp:function(e,t,n){return new Qt(e,t,n)},delay:zn,sequence:Fn,parallel:Vn,stagger:function(e,t){return Vn(t.map((t,n)=>Fn([zn(e*n),t])))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,a=void 0===o||o,s=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),s||l===i||!1===r.finished?t&&t(r):(l++,a&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){s=!0,e.stop()},reset:function(){l=0,s=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new xt(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:function(e,t){return e?e instanceof xt?(e.__addListener(t),e):function(){"function"==typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof xt&&e.__removeListener(t)},Event:xt};var Bn=!1;function Hn(e){return t=>{var n=null==t?t:function(){if(Bn)console.warn("Ignoring recursive animation callback when running mock animations");else{Bn=!0;try{t(...arguments)}finally{Bn=!1}}};e(n)}}var Wn={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},Un=e=>(0,C.A)((0,C.A)({},Wn),{},{start:Hn(t=>{e.forEach(e=>e.start()),null==t||t({finished:!0})})});const $n={Value:Ct,ValueXY:on,Color:Nn,Interpolation:wt,Node:ft,decay:function(e,t){return Wn},timing:function(e,t){var n=e;return(0,C.A)((0,C.A)({},Wn),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},spring:function(e,t){var n=e;return(0,C.A)((0,C.A)({},Wn),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},add:jn.add,subtract:jn.subtract,divide:jn.divide,multiply:jn.multiply,modulo:jn.modulo,diffClamp:jn.diffClamp,delay:function(e){return Wn},sequence:function(e){return Un(e)},parallel:function(e,t){return Un(e)},stagger:function(e,t){return Un(t)},loop:function(e,t){return(void 0===t?{}:t).iterations,Wn},event:jn.event,createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:jn.forkEvent,unforkEvent:jn.unforkEvent,Event:xt};var Yn=E.A.isTesting?$n:jn;const Kn=(0,C.A)({FlatList:Dt,Image:Ft,ScrollView:Vt,SectionList:Yt,Text:qt,View:Gt},Yn);var qn=v.A&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,Gn=new WeakMap;const Xn={getColorScheme:()=>qn&&qn.matches?"dark":"light",addChangeListener(e){var t=Gn.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?"dark":"light"})},Gn.set(e,t)),qn&&qn.addListener(t),{remove:function(){var t=Gn.get(e);qn&&t&&qn.removeListener(t),Gn.delete(e)}}}};var Qn=k.createContext(null),Jn=k.forwardRef((e,t)=>{var n=e.children,r=e.WrapperComponent,i=k.createElement(R.A,{children:n,key:1,style:tr.appContainer});return r&&(i=k.createElement(r,null,i)),k.createElement(Qn.Provider,{value:e.rootTag},k.createElement(R.A,{ref:t,style:tr.appContainer},i))});Jn.displayName="AppContainer";const Zn=Jn;var er,tr=T.A.create({appContainer:{flex:1,pointerEvents:"box-none"}}),nr={},rr={},ir=e=>e();class or{static getAppKeys(){return Object.keys(rr)}static getApplication(e,t){return O()(rr[e]&&rr[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),rr[e].getApplication(t)}static registerComponent(e,t){return rr[e]={getApplication:e=>{return n=ir(t),r=e?e.initialProps:nr,i=er&&er(e),{element:k.createElement(Zn,{WrapperComponent:i,rootTag:{}},k.createElement(n,r)),getStyleElement:e=>{var t=T.A.getSheet();return k.createElement("style",(0,x.A)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:e=>{return n=ir(t),r=er&&er(e),i=e.callback,a=(o={hydrate:e.hydrate||!1,initialProps:e.initialProps||nr,mode:e.mode||"concurrent",rootTag:e.rootTag}).initialProps,s=o.mode,l=o.rootTag,u=o.hydrate?"concurrent"===s?c:f:"concurrent"===s?d:h,O()(l,"Expect to have a valid rootTag, instead got ",l),u(k.createElement(Zn,{WrapperComponent:r,ref:i,rootTag:l},k.createElement(n,a)),l);var n,r,i,o,a,s,l,u}},e}static registerConfig(e){e.forEach(e=>{var t=e.appKey,n=e.component,r=e.run;r?or.registerRunnable(t,r):(O()(n,"No component provider passed in"),or.registerComponent(t,n))})}static registerRunnable(e,t){return rr[e]={run:t},e}static runApplication(e,t){return O()(rr[e]&&rr[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),rr[e].run(t)}static setComponentProviderInstrumentationHook(e){ir=e}static setWrapperComponentProvider(e){er=e}static unmountApplicationComponentAtRootTag(e){l(e)}}var ar=v.A&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),sr=["change","memoryWarning"],lr=ar?"webkitvisibilitychange":"visibilitychange",ur=ar?"webkitVisibilityState":"visibilityState",cr="active",dr=null;class fr{static get currentState(){if(!fr.isAvailable)return cr;switch(document[ur]){case"hidden":case"prerender":case"unloaded":return"background";default:return cr}}static addEventListener(e,t){if(fr.isAvailable&&(O()(-1!==sr.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return dr||(dr=new V.A,document.addEventListener(lr,()=>{dr&&dr.emit("change",fr.currentState)},!1)),dr.addListener(e,t)}}function hr(){}fr.isAvailable=v.A&&!!document[ur];const pr={exitApp:hr,addEventListener:()=>(console.error("BackHandler is not supported on web and should not be used."),{remove:hr}),removeEventListener:hr};var mr;class vr{static isAvailable(){return void 0===mr&&(mr="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),mr}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(r)}return t}}var gr=n(3384);const yr={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})};var br=n(7068);function _r(e,t){E.A.isTesting||p.A.configureNextLayoutAnimation(e,null!=t?t:function(){},function(){})}function wr(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var Sr={easeInEaseOut:wr(300,"easeInEaseOut","opacity"),linear:wr(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const Cr={configureNext:_r,create:wr,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:Sr,easeInEaseOut:_r.bind(null,Sr.easeInEaseOut),linear:_r.bind(null,Sr.linear),spring:_r.bind(null,Sr.spring)};var Er=v.A?window.location.href:"";const xr=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this._eventCallbacks[e];null!=i&&Array.isArray(i)&&i.map(e=>{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(Er)}openURL(e,t){1===arguments.length&&(t="_blank");try{return((e,t)=>{if(v.A){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}})(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){O()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),O()(e,"Invalid URL: cannot be empty")}},kr=ze;var Ar={centroidDimension:function(e,t,n,r){var i=e.touchBank,o=0,a=0,s=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==s)s.touchActive&&s.currentTimeStamp>t&&(o+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,a=1);else for(var l=0;l<i.length;l++){var u=i[l];null!=u&&u.touchActive&&u.currentTimeStamp>=t&&(o+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,a++)}return a>0?o/a:Ar.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return Ar.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return Ar.centroidDimension(e,0,!1,!0)},noCentroid:-1};const Rr=Ar;var Tr=Rr.currentCentroidXOfTouchesChangedAfter,Pr=Rr.currentCentroidYOfTouchesChangedAfter,Ir=Rr.previousCentroidXOfTouchesChangedAfter,Or=Rr.previousCentroidYOfTouchesChangedAfter,Nr=Rr.currentCentroidX,Lr=Rr.currentCentroidY,Dr={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Tr(t,e._accountsForMovesUpTo),e.moveY=Pr(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=Ir(t,n),i=Tr(t,n),o=Or(t,n),a=Pr(t,n),s=e.dx+(i-r),l=e.dy+(a-o),u=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(s-e.dx)/u,e.vy=(l-e.dy)/u,e.dx=s,e.dy=l,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&Dr._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=Z.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=Nr(r.touchHistory),n.y0=Lr(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){Mr(t,e.onPanResponderReject,r,n)},onResponderRelease(r){Mr(t,e.onPanResponderRelease,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,Mr(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){Mr(t,e.onPanResponderTerminate,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function Mr(e,t,n,r){e.handle&&(Z.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function Fr(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}const Vr=Dr;var zr=n(9518);const jr=class{static share(e,t){return void 0===t&&(t={}),O()("object"==typeof e&&null!==e,"Content to share must be a valid object"),O()("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),O()("object"==typeof t&&null!==t,"Options must be a valid object"),O()(!e.title||"string"==typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}};var Br=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)};const Hr={cancel(){Br(0)},vibrate(e){void 0===e&&(e=400),Br(e)}};var Wr=n(2869),Ur=n(6413),$r=k.forwardRef((e,t)=>{var n=e.accessibilityLabel,r=e.color,i=e.disabled,o=e.onPress,a=e.testID,s=e.title;return k.createElement(Ur.A,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:o,ref:t,style:[Yr.button,r&&{backgroundColor:r},i&&Yr.buttonDisabled],testID:a},k.createElement(Kt.A,{style:[Yr.text,i&&Yr.textDisabled]},s))});$r.displayName="Button";var Yr=T.A.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});const Kr=$r;var qr=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],Gr=k.forwardRef((e,t)=>{var n=e["aria-readonly"],i=e.color,o=e.disabled,a=e.onChange,s=e.onValueChange,l=e.readOnly,u=e.style,c=e.value,d=(0,A.A)(e,qr),f=k.createElement(R.A,{style:[Xr.fakeControl,c&&Xr.fakeControlChecked,c&&i&&{backgroundColor:i,borderColor:i},o&&Xr.fakeControlDisabled,c&&o&&Xr.fakeControlCheckedAndDisabled]}),h=(0,r.A)("input",{checked:c,disabled:o,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,a&&a(e),s&&s(t)},readOnly:!0===l||!0===n||!0===d.accessibilityReadOnly,ref:t,style:[Xr.nativeControl,Xr.cursorInherit],type:"checkbox"});return k.createElement(R.A,(0,x.A)({},d,{"aria-disabled":o,"aria-readonly":n,style:[Xr.root,u,o&&Xr.cursorDefault]}),f,h)});Gr.displayName="CheckBox";var Xr=T.A.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,C.A)((0,C.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const Qr=Gr;var Jr=["children","style","imageStyle","imageRef"],Zr={},ei=(0,k.forwardRef)((e,t)=>{var n=e.children,r=e.style,i=void 0===r?Zr:r,o=e.imageStyle,a=e.imageRef,s=(0,A.A)(e,Jr),l=T.A.flatten(i),u=l.height,c=l.width;return k.createElement(R.A,{ref:t,style:i},k.createElement(Mt.A,(0,x.A)({},s,{ref:a,style:[{width:c,height:u,zIndex:-1},T.A.absoluteFill,o]})),n)});ei.displayName="ImageBackground";const ti=ei;var ni=n(5470);const ri=function(e){var t=e.children,n=k.useRef(null);if(v.A&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return k.useEffect(()=>{if(v.A)return()=>{document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}},[]),n.current&&v.A?i.createPortal(t,n.current):null};function ii(e,t){return"slide"===e?t?ai:si:"fade"===e?t?li:ui:t?oi.container:oi.hidden}var oi=T.A.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),ai=[oi.container,oi.animatedIn,oi.slideIn],si=[oi.container,oi.animatedOut,oi.slideOut],li=[oi.container,oi.animatedIn,oi.fadeIn],ui=[oi.container,oi.animatedOut,oi.fadeOut];const ci=function(e){var t=e.animationType,n=e.children,i=e.onDismiss,o=e.onShow,a=e.visible,s=k.useState(!1),l=s[0],u=s[1],c=k.useRef(!1),d=k.useRef(!1),f=t&&"none"!==t,h=k.useCallback(e=>{e&&e.currentTarget!==e.target||(a?o&&o():u(!1))},[o,a]);return k.useEffect(()=>{d.current&&!l&&i&&i(),d.current=l},[l,i]),k.useEffect(()=>{a&&u(!0),a===c.current||f||h(),c.current=a},[f,a,h]),l||a?(0,r.A)("div",{style:l?ii(t,a):oi.hidden,onAnimationEnd:h,children:n}):null};var di=["active","children","onRequestClose","transparent"],fi=k.forwardRef((e,t)=>{var n=e.active,r=e.children,i=e.onRequestClose,o=e.transparent,a=(0,A.A)(e,di);k.useEffect(()=>{if(v.A){var e=e=>{n&&"Escape"===e.key&&(e.stopPropagation(),i&&i())};return document.addEventListener("keyup",e,!1),()=>document.removeEventListener("keyup",e,!1)}},[n,i]);var s=k.useMemo(()=>[hi.modal,o?hi.modalTransparent:hi.modalOpaque],[o]);return k.createElement(R.A,(0,x.A)({},a,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:s}),k.createElement(R.A,{style:hi.container},r))}),hi=T.A.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}});const pi=fi;var mi=()=>(0,r.A)("div",{role:"none",tabIndex:0,style:_i.focusBracket});function vi(e){if(!v.A)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function gi(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(vi(n)||gi(n))return!0}return!1}function yi(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(vi(n)||yi(n))return!0}return!1}const bi=e=>{var t=e.active,n=e.children,r=k.useRef(),i=k.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return k.useEffect(()=>{if(v.A){var e=()=>{if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=gi(r.current);i.current.lastFocusedElement===document.activeElement&&(e=yi(r.current)),!e&&null!=r.current&&document.activeElement&&p.A.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}},[t]),k.useEffect(function(){if(v.A){var e=document.activeElement;return function(){e&&document.contains(e)&&p.A.focus(e)}}},[]),k.createElement(k.Fragment,null,k.createElement(mi,null),k.createElement(R.A,{ref:r},n),k.createElement(mi,null))};var _i=T.A.create({focusBracket:{outlineStyle:"none"}}),wi=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],Si=0,Ci=[],Ei={};function xi(){if(0!==Ci.length){var e=Ci[Ci.length-1];Ci.forEach(t=>{t in Ei&&Ei[t](t===e)})}}function ki(e){e in Ei&&(Ei[e](!1),delete Ei[e]);var t=Ci.indexOf(e);-1!==t&&(Ci.splice(t,1),xi())}const Ai=k.forwardRef((e,t)=>{var n=e.animationType,r=e.children,i=e.onDismiss,o=e.onRequestClose,a=e.onShow,s=e.transparent,l=e.visible,u=void 0===l||l,c=(0,A.A)(e,wi),d=k.useMemo(()=>Si++,[]),f=k.useState(!1),h=f[0],p=f[1],m=k.useCallback(()=>{ki(d),i&&i()},[d,i]),v=k.useCallback(()=>{!function(e,t){ki(e),Ci.push(e),Ei[e]=t,xi()}(d,p),a&&a()},[d,a]);return k.useEffect(()=>()=>ki(d),[d]),k.createElement(ri,null,k.createElement(ci,{animationType:n,onDismiss:m,onShow:v,visible:u},k.createElement(bi,{active:h},k.createElement(pi,(0,x.A)({},c,{active:h,onRequestClose:o,ref:t,transparent:s}),r))))});var Ri=n(1804),Ti=n(6177),Pi=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],Ii=k.forwardRef((e,t)=>{var n=e.children,i=e.enabled,o=e.onValueChange,a=e.selectedValue,s=e.style,l=e.testID,u=(e.itemStyle,e.mode,e.prompt,(0,A.A)(e,Pi)),c=k.useRef(null),d=(0,C.A)({children:n,disabled:!1===i||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;o&&o(r,n)},style:[Oi.initial,s],testID:l,value:a},u),f=(0,Ti.A)(d),h=(0,Ri.A)(c,f,t);return d.ref=h,(0,r.A)("select",d)});Ii.Item=function(e){var t=e.color,n=e.label,i=e.testID,o=e.value,a={color:t};return(0,r.A)("option",{children:n,style:a,testID:i,value:o})};var Oi=T.A.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}});const Ni=Ii;var Li=n(4129),Di=["color","indeterminate","progress","trackColor","style"],Mi=k.forwardRef((e,t)=>{var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,o=void 0!==i&&i,a=e.progress,s=void 0===a?0:a,l=e.trackColor,u=void 0===l?"transparent":l,c=e.style,d=(0,A.A)(e,Di),f=100*s,h=o?"25%":f+"%";return k.createElement(R.A,(0,x.A)({},d,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:f,ref:t,role:"progressbar",style:[Fi.track,c,{backgroundColor:u}]}),k.createElement(R.A,{style:[{backgroundColor:r,width:h},Fi.progress,o&&Fi.animation]}))});Mi.displayName="ProgressBar";var Fi=T.A.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}});const Vi=Mi;var zi=["style"],ji=v.A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",Bi=k.forwardRef((e,t)=>{var n=e.style,r=(0,A.A)(e,zi);return k.createElement(R.A,(0,x.A)({},r,{ref:t,style:[Hi.root,n]}))});Bi.displayName="SafeAreaView";var Hi=T.A.create({root:{paddingTop:ji+"(safe-area-inset-top)",paddingRight:ji+"(safe-area-inset-right)",paddingBottom:ji+"(safe-area-inset-bottom)",paddingLeft:ji+"(safe-area-inset-left)"}});const Wi=Bi;var Ui=()=>{};function $i(){return null}$i.setBackgroundColor=Ui,$i.setBarStyle=Ui,$i.setHidden=Ui,$i.setNetworkActivityIndicatorVisible=Ui,$i.setTranslucent=Ui;const Yi=$i;var Ki=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;const qi=(e,t)=>{var n;return"string"==typeof e?""+parseFloat(e)*t+e.match(Ki)[1]:(n=e,!isNaN(parseFloat(n))&&isFinite(n)?e*t:void 0)};var Gi=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],Xi={},Qi="0px 1px 3px rgba(0,0,0,0.5)",Ji=Qi+", 0 0 0 10px rgba(0,0,0,0.1)",Zi="#D5D5D5",eo="#BDBDBD",to=k.forwardRef((e,t)=>{var n=e["aria-label"],i=e.accessibilityLabel,o=e.activeThumbColor,a=e.activeTrackColor,s=e.disabled,l=void 0!==s&&s,u=e.onValueChange,c=e.style,d=void 0===c?Xi:c,f=e.thumbColor,h=e.trackColor,p=e.value,m=void 0!==p&&p,v=(0,A.A)(e,Gi),g=k.useRef(null);function y(e){var t="focus"===e.nativeEvent.type?Ji:Qi;null!=g.current&&(g.current.style.boxShadow=t)}var b=T.A.flatten(d),_=b.height,w=b.width,S=_||"20px",C=qi(S,2),E=w>C?w:C,P=qi(S,.5),I=!0===m?null!=h&&"object"==typeof h?h.true:null!=a?a:"#A3D3CF":null!=h&&"object"==typeof h?h.false:null!=h?h:"#939393",O=m?null!=o?o:"#009688":null!=f?f:"#FAFAFA",N=S,L=N,D=[no.root,d,l&&no.cursorDefault,{height:S,width:E}],M=!0===m?"string"==typeof a&&null!=a||"object"==typeof h&&null!=h&&h.true?I:Zi:"string"==typeof h&&null!=h||"object"==typeof h&&null!=h&&h.false?I:Zi,F=!0===m?null==o?eo:O:null==f?eo:O,V=[no.track,{backgroundColor:l?M:I,borderRadius:P}],z=[no.thumb,m&&no.thumbActive,{backgroundColor:l?F:O,height:N,marginStart:m?qi(L,-1):0,width:L}],j=(0,r.A)("input",{"aria-label":n||i,checked:m,disabled:l,onBlur:y,onChange:function(e){null!=u&&u(e.nativeEvent.target.checked)},onFocus:y,ref:t,style:[no.nativeControl,no.cursorInherit],type:"checkbox",role:"switch"});return k.createElement(R.A,(0,x.A)({},v,{style:D}),k.createElement(R.A,{style:V}),k.createElement(R.A,{ref:g,style:z}),j)});to.displayName="Switch";var no=T.A.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,C.A)((0,C.A)({forcedColorAdjust:"none"},T.A.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:Qi,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,C.A)((0,C.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const ro=to;var io=n(8697),oo=n(254),ao=n(2008),so=n(3098),lo=n(1420),uo=n(8865),co=(e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,o=t.end;return i!==r||o!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},fo=Object.assign({},io.Gs,io.Fh,io.DY,io.l3,io.Aw,io.k2,io.CD,io.eO,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),ho=null,po=k.forwardRef((e,t)=>{var n,i,o=e.autoCapitalize,a=void 0===o?"sentences":o,s=e.autoComplete,l=e.autoCompleteType,u=e.autoCorrect,c=void 0===u||u,d=e.blurOnSubmit,f=e.caretHidden,h=e.clearTextOnFocus,p=e.dir,m=e.editable,v=e.enterKeyHint,g=e.inputMode,y=e.keyboardType,b=e.multiline,_=void 0!==b&&b,w=e.numberOfLines,S=e.onBlur,C=e.onChange,E=e.onChangeText,x=e.onContentSizeChange,A=e.onFocus,R=e.onKeyPress,T=e.onLayout,P=e.onMoveShouldSetResponder,I=e.onMoveShouldSetResponderCapture,O=e.onResponderEnd,N=e.onResponderGrant,L=e.onResponderMove,D=e.onResponderReject,M=e.onResponderRelease,F=e.onResponderStart,V=e.onResponderTerminate,z=e.onResponderTerminationRequest,j=e.onScrollShouldSetResponder,B=e.onScrollShouldSetResponderCapture,H=e.onSelectionChange,W=e.onSelectionChangeShouldSetResponder,U=e.onSelectionChangeShouldSetResponderCapture,$=e.onStartShouldSetResponder,Y=e.onStartShouldSetResponderCapture,K=e.onSubmitEditing,q=e.placeholderTextColor,G=e.readOnly,X=void 0!==G&&G,Q=e.returnKeyType,J=e.rows,Z=e.secureTextEntry,ee=void 0!==Z&&Z,te=e.selection,ne=e.selectTextOnFocus,re=e.showSoftInputOnFocus,ie=e.spellCheck;if(null!=g)i=g,n="email"===g?"email":"tel"===g?"tel":"search"===g?"search":"url"===g?"url":"text";else if(null!=y)switch(y){case"email-address":n="email";break;case"number-pad":case"numeric":i="numeric";break;case"decimal-pad":i="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}ee&&(n="password");var oe=k.useRef({height:null,width:null}),ae=k.useRef(null),se=k.useRef(null),le=k.useRef(!1);k.useEffect(()=>{ae.current&&se.current&&co(ae.current,se.current),le.current=ee},[ee]);var ue=k.useCallback(e=>{if(_&&x&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===oe.current.height&&n===oe.current.width||(oe.current.height=t,oe.current.width=n,x({nativeEvent:{contentSize:{height:oe.current.height,width:oe.current.width}}}))}},[_,x]),ce=k.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&uo.A.currentlyFocusedField()===e},ue(e))},[ue]);(0,It.A)(()=>{var e=ae.current;null!=e&&null!=te&&co(e,te),document.activeElement===e&&(uo.A._currentlyFocusedNode=e)},[ae,te]);var de=_?"textarea":"input";(0,ao.A)(ae,T),(0,so.A)(ae,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:I,onResponderEnd:O,onResponderGrant:N,onResponderMove:L,onResponderReject:D,onResponderRelease:M,onResponderStart:F,onResponderTerminate:V,onResponderTerminationRequest:z,onScrollShouldSetResponder:j,onScrollShouldSetResponderCapture:B,onSelectionChangeShouldSetResponder:W,onSelectionChangeShouldSetResponderCapture:U,onStartShouldSetResponder:$,onStartShouldSetResponderCapture:Y});var fe=(0,lo.PZ)().direction,he=(e=>(0,oo.A)(e,fo))(e);he.autoCapitalize=a,he.autoComplete=s||l||"on",he.autoCorrect=c?"on":"off",he.dir=void 0!==p?p:"auto",he.enterKeyHint=v||Q,he.inputMode=i,he.onBlur=function(e){uo.A._currentlyFocusedNode=null,S&&(e.nativeEvent.text=e.target.value,S(e))},he.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,ue(t),C&&C(e),E&&E(n)},he.onFocus=function(e){var t=e.target;A&&(e.nativeEvent.text=t.value,A(e)),null!=t&&(uo.A._currentlyFocusedNode=t,h&&(t.value=""),ne&&(null!=ho&&clearTimeout(ho),ho=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},he.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==d?!_:d,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);R&&R(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!d&&_||!K||(e.preventDefault(),r.text=e.target.value,K(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},he.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};H&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,H(e)),le.current===ee&&(se.current=n)}catch(e){}},he.readOnly=!0===X||!1===m,he.rows=_?null!=J?J:w:1,he.spellCheck=null!=ie?ie:c,he.style=[{"--placeholderTextColor":q},mo.textinput$raw,mo.placeholder,e.style,f&&mo.caretHidden],he.type=_?void 0:n,he.virtualkeyboardpolicy=!1===re?"manual":"auto";var pe=(0,Ti.A)(he),me=(0,Ri.A)(ae,pe,ce,t);he.ref=me;var ve=null!=e.lang?(0,lo.il)(e.lang):null,ge=e.dir||ve||fe;return(0,r.A)(de,he,{writingDirection:ge})});po.displayName="TextInput",po.State=uo.A;var mo=T.A.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const vo=po;var go=n(8285),yo=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},bo=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},_o=yo;const wo=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||_o,n.poolSize||(n.poolSize=10),n.release=bo,n},So=yo;var Co=So;function Eo(e,t){this.width=e,this.height=t}Eo.prototype.destructor=function(){this.width=null,this.height=null},Eo.getPooledFromElement=function(e){return Eo.getPooled(e.offsetWidth,e.offsetHeight)},wo(Eo,Co);const xo=Eo;var ko=So;function Ao(e,t){this.left=e,this.top=t}Ao.prototype.destructor=function(){this.left=null,this.top=null},wo(Ao,ko);const Ro=Ao;var To=n(4078),Po=e=>{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},Io="NOT_RESPONDER",Oo="RESPONDER_INACTIVE_PRESS_IN",No="RESPONDER_INACTIVE_PRESS_OUT",Lo="RESPONDER_ACTIVE_PRESS_IN",Do="RESPONDER_ACTIVE_PRESS_OUT",Mo="RESPONDER_ACTIVE_LONG_PRESS_IN",Fo="RESPONDER_ACTIVE_LONG_PRESS_OUT",Vo="ERROR",zo={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},jo=(0,C.A)((0,C.A)({},zo),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Bo=(0,C.A)((0,C.A)({},zo),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Ho=(0,C.A)((0,C.A)({},zo),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Wo="RESPONDER_RELEASE",Uo="RESPONDER_TERMINATED",$o="LONG_PRESS_DETECTED",Yo={NOT_RESPONDER:{DELAY:Vo,RESPONDER_GRANT:Oo,RESPONDER_RELEASE:Vo,RESPONDER_TERMINATED:Vo,ENTER_PRESS_RECT:Vo,LEAVE_PRESS_RECT:Vo,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Lo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Io,RESPONDER_TERMINATED:Io,ENTER_PRESS_RECT:Oo,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Do,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Io,RESPONDER_TERMINATED:Io,ENTER_PRESS_RECT:Oo,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Io,RESPONDER_TERMINATED:Io,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Io,RESPONDER_TERMINATED:Io,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Io,RESPONDER_TERMINATED:Io,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Io,RESPONDER_TERMINATED:Io,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Vo},error:{DELAY:Io,RESPONDER_GRANT:Oo,RESPONDER_RELEASE:Io,RESPONDER_TERMINATED:Io,ENTER_PRESS_RECT:Io,LEAVE_PRESS_RECT:Io,LONG_PRESS_DETECTED:Io}},Ko={componentDidMount:function(){(0,To.m)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==Io&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=Io,this.state.touchable.responderID=t,this._receiveSignal("RESPONDER_GRANT",e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(Wo,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(Uo,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=r.left,o=r.top,a=r.right,s=r.bottom,l=this.touchableGetHitSlop?this.touchableGetHitSlop():null;l&&(i+=l.left||0,o+=l.top||0,a+=l.right||0,s+=l.bottom||0);var u=Po(e.nativeEvent),c=u&&u.pageX,d=u&&u.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(c,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout(),c>t.left-i&&d>t.top-o&&c<t.left+n.width+a&&d<t.top+n.height+s){var f=this.state.touchable.touchState;this._receiveSignal("ENTER_PRESS_RECT",e),this.state.touchable.touchState===Oo&&f!==Oo&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal("LEAVE_PRESS_RECT",e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;null!=e&&p.A.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,i,o){(e||t||n||r||i||o)&&(this.state.touchable.positionOnActivate&&Ro.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&xo.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=Ro.getPooled(i,o),this.state.touchable.dimensionsOnActivate=xo.getPooled(n,r))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal("DELAY",e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==Lo&&t!==Mo?console.error("Attempted to transition from state `"+t+"` to `"+Mo+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal($o,e)},_receiveSignal:function(e,t){var n=this.state.touchable.responderID,r=this.state.touchable.touchState,i=Yo[r]&&Yo[r][e];if(n||e!==Wo){if(!i)throw new Error("Unrecognized signal `"+e+"` or state `"+r+"` for Touchable responder `"+n+"`");if(i===Vo)throw new Error("Touchable cannot transition from `"+r+"` to `"+e+"` for responder `"+n+"`");r!==i&&(this._performSideEffectsForTransition(r,i,e,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===Lo||e===Mo},_savePressInLocation:function(e){var t=Po(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY,i=t&&t.locationX,o=t&&t.locationY;this.pressInLocation={pageX:n,pageY:r,locationX:i,locationY:o}},_getDistanceBetweenPoints:function(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},_performSideEffectsForTransition:function(e,t,n,r){var i=this._isHighlight(e),o=this._isHighlight(t);(n===Uo||n===Wo)&&this._cancelLongPressDelayTimeout();var a=e===Io&&t===Oo,s=!jo[e]&&jo[t];if((a||s)&&this._remeasureMetricsOnActivation(),Bo[e]&&n===$o&&this.touchableHandleLongPress&&this.touchableHandleLongPress(r),o&&!i?this._startHighlight(r):!o&&i&&this._endHighlight(r),Bo[e]&&n===Wo){var l=!!this.props.onLongPress,u=Ho[e]&&(!l||!this.touchableLongPressCancelsPress());(!Ho[e]||u)&&this.touchableHandlePress&&(o||i||(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){p.A.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;"Enter"!==n&&" "!==n||("keydown"===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==Io||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):"keyup"===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==Io&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),"Enter"===n&&"link"===go.A.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},qo=(Ko.touchableHandleFocus,Ko.touchableHandleBlur,(0,A.A)(Ko,["touchableHandleFocus","touchableHandleBlur"]));Ko.withoutDefaultFocusAndBlur=qo;var Go={Mixin:Ko,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!Go.TOUCH_TARGET_DEBUG)return null;var r={};for(var i in n=n||{top:0,bottom:0,left:0,right:0})r[i]=-n[i];var o=mt()(t);if("number"!=typeof o)return null;var a="#"+("00000000"+o.toString(16)).substr(-8);return k.createElement(R.A,{pointerEvents:"none",style:(0,C.A)({position:"absolute",borderColor:a.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:a.slice(0,-2)+"0F"},r)})}};const Xo=Go;var Qo=n(6533),Jo=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function Zo(e,t){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function ea(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function ta(e,t){var n=e.activeOpacity,r=e.children,i=e.delayPressIn,o=e.delayPressOut,a=e.delayLongPress,s=e.disabled,l=e.focusable,u=e.onHideUnderlay,c=e.onLongPress,d=e.onPress,f=e.onPressIn,h=e.onPressOut,p=e.onShowUnderlay,m=e.rejectResponderTermination,v=e.style,g=e.testOnly_pressed,y=e.underlayColor,b=(0,A.A)(e,Jo),_=(0,k.useRef)(null),w=(0,Ri.A)(t,_),S=(0,k.useState)(!0===g?Zo(n,y):null),C=S[0],E=S[1],T=(0,k.useCallback)(()=>{ea(e)&&(E(Zo(n,y)),null!=p&&p())},[n,p,e,y]),P=(0,k.useCallback)(()=>{!0!==g&&ea(e)&&(E(null),null!=u&&u())},[u,e,g]),I=(0,k.useMemo)(()=>({cancelable:!m,disabled:s,delayLongPress:a,delayPressStart:i,delayPressEnd:o,onLongPress:c,onPress:d,onPressStart(e){T(),null!=f&&f(e)},onPressEnd(e){P(),null!=h&&h(e)}}),[a,i,o,s,c,d,f,h,m,T,P]),O=(0,Qo.A)(_,I),N=k.Children.only(r);return k.createElement(R.A,(0,x.A)({},b,O,{accessibilityDisabled:s,focusable:!s&&!1!==l,pointerEvents:s?"box-none":void 0,ref:w,style:[na.root,v,!s&&na.actionable,C&&C.underlay]}),k.cloneElement(N,{style:[N.props.style,C&&C.child]}))}var na=T.A.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),ra=k.memo(k.forwardRef(ta));ra.displayName="TouchableHighlight";const ia=ra;var oa=["style"],aa={};const sa=function(e){var t=e.style,n=(0,A.A)(e,oa);return k.createElement(R.A,(0,x.A)({},n,{style:[aa,t]}))},la=sa;var ua={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};function ca(e,t){(0,To.m)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var n=e.delayPressIn,r=e.delayPressOut,i=e.delayLongPress,o=e.disabled,a=e.focusable,s=e.onLongPress,l=e.onPress,u=e.onPressIn,c=e.onPressOut,d=e.rejectResponderTermination,f=(0,k.useRef)(null),h=(0,k.useMemo)(()=>({cancelable:!d,disabled:o,delayLongPress:i,delayPressStart:n,delayPressEnd:r,onLongPress:s,onPress:l,onPressStart:u,onPressEnd:c}),[o,n,r,i,s,l,u,c,d]),p=(0,Qo.A)(f,h),m=k.Children.only(e.children),v=[m.props.children],g=(e=>(0,oo.A)(e,ua))(e);g.accessibilityDisabled=o,g.focusable=!o&&!1!==a,g.ref=(0,Ri.A)(t,f,m.ref);var y=Object.assign(g,p);return k.cloneElement(m,y,...v)}var da=k.memo(k.forwardRef(ca));da.displayName="TouchableWithoutFeedback";const fa=da,ha=Te;function pa(e){return k.createElement(sa,e)}pa.ignoreWarnings=()=>{};const ma=pa,va={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}};var ga=n(9697);function ya(){var e=k.useState(Xn.getColorScheme()),t=e[0],n=e[1];return k.useEffect(()=>Xn.addChangeListener(function(e){n(e.colorScheme)}).remove),t}const ba=lo.PZ;function _a(){var e=(0,k.useState)(()=>gr.A.get("window")),t=e[0],n=e[1];return(0,k.useEffect)(()=>{function e(e){var t=e.window;null!=t&&n(t)}return gr.A.addEventListener("change",e),n(gr.A.get("window")),()=>{gr.A.removeEventListener("change",e)}},[]),t}},8285(e,t,n){"use strict";n.d(t,{A:()=>s});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var i=r[n];if(null!==i)return i||n}};var o={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},a={};const s={isDisabled:e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,propsToAccessibilityComponent:function(e){if(void 0===e&&(e=a),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return o[t]}},propsToAriaRole:i}},8865(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8683);const i={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.A.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.A.blur(e))}}},7162(e,t,n){"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},3116(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8865);const i=()=>{r.A.blurTextInput(r.A.currentlyFocusedField())}},8697(e,t,n){"use strict";n.d(t,{Aw:()=>s,CD:()=>u,DY:()=>o,Fh:()=>i,Gs:()=>r,eO:()=>c,k2:()=>l,l3:()=>a});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},i={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},a={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},1968(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},87(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(t=>{null!=t&&("function"!=typeof t?"object"!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=e:t(e))})}}n.d(t,{A:()=>r}),n(6540)},254(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{A:()=>r})},2008(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(8425),i=n(8683),o=n(7162),a="__reactLayoutHandler",s=(o.A,null);function l(e,t){var n=(o.A&&void 0!==window.ResizeObserver&&null==s&&(s=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[a];"function"==typeof n&&i.A.measure(t,(t,r,i,o,a,s)=>{var l={nativeEvent:{layout:{x:t,y:r,width:i,height:o,left:a,top:s}},timeStamp:Date.now()};Object.defineProperty(l.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(l)})})})),s);(0,r.A)(()=>{var n=e.current;null!=n&&(n[a]=t)},[e,t]),(0,r.A)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[a]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},8425(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(6540);const i=n(7162).A?r.useLayoutEffect:r.useEffect},1420(e,t,n){"use strict";n.d(t,{YO:()=>c,il:()=>u,PZ:()=>d});var r=n(6540),i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),a=new Map,s={direction:"ltr",locale:"en-US"},l=(0,r.createContext)(s);function u(e){return function(e){var t=a.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=i.has(r)}catch(t){var s=e.split("-")[0];n=o.has(s)}else{var l=e.split("-")[0];n=o.has(l)}return a.set(e,n),n}(e)?"rtl":"ltr"}function c(e){var t=e.direction,n=e.locale,i=e.children;return t||n?r.createElement(l.Provider,{children:i,value:{direction:n?u(n):t,locale:n}}):i}function d(){return(0,r.useContext)(l)}},1804(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i=n(87);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>(0,i.A)(...t),[...t])}},6177(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8683),i=n(9241);function o(e){return e.pointerEvents,e.style,(0,i.A)(()=>e=>{null!=e&&(e.measure=t=>r.A.measure(e,t),e.measureLayout=(t,n,i)=>r.A.measureLayout(e,t,i,n),e.measureInWindow=t=>r.A.measureInWindow(e,t))})}},6533(e,t,n){"use strict";n.d(t,{A:()=>C});var r="DELAY",i="ERROR",o="LONG_PRESS_DETECTED",a="NOT_RESPONDER",s="RESPONDER_ACTIVE_LONG_PRESS_START",l="RESPONDER_ACTIVE_PRESS_START",u="RESPONDER_INACTIVE_PRESS_START",c="RESPONDER_RELEASE",d="RESPONDER_TERMINATED",f=Object.freeze({NOT_RESPONDER:{DELAY:i,RESPONDER_GRANT:u,RESPONDER_RELEASE:i,RESPONDER_TERMINATED:i,LONG_PRESS_DETECTED:i},RESPONDER_INACTIVE_PRESS_START:{DELAY:l,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:i},RESPONDER_ACTIVE_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},ERROR:{DELAY:a,RESPONDER_GRANT:u,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:a}}),h=e=>e.getAttribute("role"),p=e=>e.tagName.toLowerCase(),m=e=>e===l||e===s,v=e=>"button"===h(e),g=e=>e===u||e===l||e===s,y=e=>{var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,i="button"===p(n)||v(n);return"Enter"===t||r&&i};class b{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=a,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=a,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=_(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(r,e)},n):this._receiveSignal(r,e);var i=_(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},i+n)},t=e=>{this._receiveSignal(c,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==a&&y(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),s=p(i),l="link"===o||"a"===s||"button"===s||"input"===s||"select"===s||"textarea"===s,u=this._responderElement===i;null!=r&&!l&&u&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&v(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&y(t)){this._touchState===a&&(e(t,!1),this._responderElement=o,document.addEventListener("keyup",n));var s=" "===i||"Spacebar"===i,l=h(o);s&&("button"===l||"menuitem"===l)&&"button"!==p(o)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=w(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(d,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!(!r&&null!=i&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?v(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?v(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=f[n]&&(r=f[n][e]),this._touchState===a&&e===c||(null==r||r===i?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((e=>e===d||e===c)(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),g(e)&&n===o){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var a=m(e),l=m(t);if(!a&&l?this._activate(r):a&&!l&&this._deactivate(r),g(e)&&n===c){var u=this._config,f=u.onLongPress;null!=u.onPress&&(null!=f&&e===s||l||a||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=w(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=_(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},o):i()}_handleLongPress(e){this._touchState!==l&&this._touchState!==s||this._receiveSignal(o,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function _(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function w(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var S=n(6540);function C(e,t){var n=(0,S.useRef)(null);null==n.current&&(n.current=new b(t));var r=n.current;return(0,S.useEffect)(()=>{r.configure(t)},[t,r]),(0,S.useEffect)(()=>()=>{r.reset()},[r]),(0,S.useDebugValue)(t),r.getEventHandlers()}},3098(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(6540),i=n(1968),o=()=>{},a={},s=[];function l(e){return e>20?e%20:e}function u(e,t){var n,r,u,c=!1,d=e.changedTouches,f=e.type,h=!0===e.metaKey,p=!0===e.shiftKey,m=d&&d[0].force||0,v=l(d&&d[0].identifier||0),g=d&&d[0].clientX||e.clientX,y=d&&d[0].clientY||e.clientY,b=d&&d[0].pageX||e.pageX,_=d&&d[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):o,S=e.timeStamp;function C(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:l(e.identifier),get locationX(){return k(e.clientX)},get locationY(){return A(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:S}))}if(null!=d)r=C(d),u=C(e.touches);else{var E=[{force:m,identifier:v,get locationX(){return k(g)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S}];r=E,u="mouseup"===f||"dragstart"===f?s:E}var x={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:a,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:h,shiftKey:p,changedTouches:r,force:m,identifier:v,get locationX(){return k(g)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S,touches:u,type:f},persist:o,preventDefault:w,stopPropagation(){c=!0},target:e.target,timeStamp:S,touchHistory:t.touchHistory};function k(e){if(n=n||(0,i.A)(x.currentTarget))return e-n.left}function A(e){if(n=n||(0,i.A)(x.currentTarget))return e-n.top}return x}function c(e){return"touchstart"===e||"mousedown"===e}function d(e){return"touchmove"===e||"mousemove"===e}function f(e){return"touchend"===e||"mouseup"===e||h(e)}function h(e){return"touchcancel"===e||"dragstart"===e}var p="__reactResponderId";function m(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function v(e){return null!=e?e[p]:null}function g(e){return e.timeStamp||e.timestamp}function y(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:g(e)})}function _(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}var w=n(7162),S={},C=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],E=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],x={touchstart:C,mousedown:C,touchmove:E,mousemove:E,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},k={id:null,idPath:null,node:null},A=new Map,R=!1,T=0,P={id:null,node:null,idPath:null},I=new class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(d(e))t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=g(e),t.mostRecentTimeStamp=g(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n));else if(c(e))t.changedTouches.forEach(e=>function(e,t){var n=y(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=g(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=g(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=g(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:g(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:g(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:g(e)}}(e),t.mostRecentTimeStamp=g(e)}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(f(e)&&(t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=g(e),t.mostRecentTimeStamp=g(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,i=0;i<r.length;i++){var o=r[i];if(null!=o&&o.touchActive){n.indexOfSingleActiveTouch=i;break}}}get touchHistory(){return this._touchHistory}};function O(e){P=e}function N(e){var t=A.get(e);return null!=t?t:S}function L(e){var t=e.type,n=e.target;if("touchstart"===t&&(R=!0),("touchmove"===t||T>1)&&(R=!1),!("mousedown"===t&&R||"mousemove"===t&&R||"mousemove"===t&&T<1))if(R&&"mouseup"===t)0===T&&(R=!1);else{var r=c(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,o=e.type,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),i=d(t),o=f(t),a=function(e){return"scroll"===e}(t),s=function(e){return"select"===e||"selectionchange"===e}(t),l=u(e,I);(r||i||o)&&(e.touches?T=e.touches.length:r?T=1:o&&(T=0),I.recordTouchTrack(t,l.nativeEvent));var p,g=function(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?m(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():m(e.target)}(e),i=0;i<r.length;i++){var o=r[i],a=v(o);null!=a&&(t.push(a),n.push(o))}return{idPath:t,nodePath:n}}(e),y=!1;if(r||i||a&&T>0){var b=P.idPath,_=g.idPath;if(null!=b&&null!=_){var w=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var i=e[0],o=0,a=t[0],s=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[s=r-n],r=n);for(var l=n;l--;){if(i===a)return i;i=e[o++],a=t[s++]}return null}(b,_);if(null!=w){var S=_.indexOf(w)+(w===P.id?1:0);g={idPath:_.slice(S),nodePath:g.nodePath.slice(S)}}else g=null}null!=g&&(p=function(e,t,n){var r=x[t.type];if(null!=r){for(var i=e.idPath,o=e.nodePath,a=r[0],s=r[1],l=r[2].bubbles,u=function(e,t,r){var o=N(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n)))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},c=i.length-1;c>=0;c--){var d=u(i[c],o[c],a);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(l)for(var f=0;f<i.length;f++){var h=u(i[f],o[f],s);if(null!=h)return h;if(!0===n.isPropagationStopped())return}else{var p=i[0],m=o[0];if(t.target===m)return u(p,m,s)}}}(g,e,l),null!=p&&(function(e,t){var n=P,r=n.id,i=n.node,o=t.id,a=t.node,s=N(o),l=s.onResponderGrant,u=s.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=a,null==r)null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),O(t);else{var c=N(r),d=c.onResponderTerminate,f=c.onResponderTerminationRequest,h=!0;null!=f&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminationRequest",!1===f(e)&&(h=!1)),h?(null!=d&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminate",d(e)),null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),O(t)):null!=u&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderReject",u(e))}}(l,p),y=!0))}if(null!=P.id&&null!=P.node){var C=P,E=C.id,A=C.node,L=N(E),D=L.onResponderStart,M=L.onResponderMove,F=L.onResponderEnd,V=L.onResponderRelease,z=L.onResponderTerminate,j=L.onResponderTerminationRequest;if(l.bubbles=!1,l.cancelable=!1,l.currentTarget=A,r)null!=D&&(l.dispatchConfig.registrationName="onResponderStart",D(l));else if(i)null!=M&&(l.dispatchConfig.registrationName="onResponderMove",M(l));else{var B=h(t)||"contextmenu"===t||"blur"===t&&n===window||"blur"===t&&n.contains(A)&&e.relatedTarget!==A||a&&0===T||a&&n.contains(A)&&n!==A||s&&function(e){return"selectionchange"===e.type?(n=(t=window.getSelection()).toString(),r=t.anchorNode,i=t.focusNode,o=r&&r.nodeType===window.Node.TEXT_NODE||i&&i.nodeType===window.Node.TEXT_NODE,n.length>=1&&"\n"!==n&&o):"select"===e.type;var t,n,r,i,o}(e),H=o&&!B&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(null!=r&&e.contains(r))return!0}return!1}(A,e.touches);if(o&&null!=F&&(l.dispatchConfig.registrationName="onResponderEnd",F(l)),H&&(null!=V&&(l.dispatchConfig.registrationName="onResponderRelease",V(l)),O(k)),B){var W=!0;"contextmenu"!==t&&"scroll"!==t&&"selectionchange"!==t||(y?W=!1:null!=j&&(l.dispatchConfig.registrationName="onResponderTerminationRequest",!1===j(l)&&(W=!1))),W&&(null!=z&&(l.dispatchConfig.registrationName="onResponderTerminate",z(l)),O(k),R=!1,T=0)}}}}}var D=["blur","scroll"],M=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function F(e){P.id===e&&function(){var e=P,t=e.id,n=e.node;if(null!=t&&null!=n){var r=N(t).onResponderTerminate;if(null!=r){var i=u({},I);i.currentTarget=n,r(i)}O(k)}R=!1,T=0}(),A.has(e)&&A.delete(e)}var V={},z=0;function j(e,t){void 0===t&&(t=V);var n,i,o=(n=()=>z++,null==(i=r.useRef(null)).current&&(i.current=n()),i.current),a=r.useRef(!1);r.useEffect(()=>(w.A&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",L),M.forEach(e=>{document.addEventListener(e,L)}),D.forEach(e=>{document.addEventListener(e,L,!0)}),window.__reactResponderSystemActive=!0),()=>{F(o)}),[o]),r.useEffect(()=>{var n=t,r=n.onMoveShouldSetResponder,i=n.onMoveShouldSetResponderCapture,s=n.onScrollShouldSetResponder,l=n.onScrollShouldSetResponderCapture,u=n.onSelectionChangeShouldSetResponder,c=n.onSelectionChangeShouldSetResponderCapture,d=n.onStartShouldSetResponder,f=n.onStartShouldSetResponderCapture,h=null!=r||null!=i||null!=s||null!=l||null!=u||null!=c||null!=d||null!=f,m=e.current;h?(function(e,t,n){!function(e,t){null!=e&&(e[p]=t)}(t,e),A.set(e,n)}(o,m,t),a.current=!0):a.current&&(F(o),a.current=!1)},[t,e,o]),r.useDebugValue({isResponder:e.current===P.node}),r.useDebugValue(t)}},9241(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function o(e){var t=r.useRef(i);return t.current===i&&(t.current=e()),t.current}},4078(e,t,n){"use strict";function r(e,t){}n.d(t,{m:()=>r})},5725(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new(n(1603).A)},1603(e,t,n){"use strict";n.d(t,{A:()=>r});class r{constructor(){this._registry={}}addListener(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),i={context:n,listener:t,remove(){r.delete(i)}};return r.add(i),i}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0,a=[...t];o<a.length;o++){var s=a[o];s.listener.apply(s.context,r)}}}removeAllListeners(e){null==e?this._registry={}:delete this._registry[e]}listenerCount(e){var t=this._registry[e];return null==t?0:t.size}}},1515(e){"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){const i=r<.5?r*(1+n):r+n-r*n,o=2*r-i,a=t(o,i,e+1/3),s=t(o,i,e),l=t(o,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}const r="[-+]?\\d*\\.?\\d+",i=r+"%";function o(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let l;function u(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function f(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;const h=(void 0===l&&(l={rgb:new RegExp("rgb"+o(r,r,r)),rgba:new RegExp("rgba("+s(r,r,r,r)+"|"+a(r,r,r,r)+")"),hsl:new RegExp("hsl"+o(r,i,i)),hsla:new RegExp("hsla("+s(r,i,i,r)+"|"+a(r,i,i,r)+")"),hwb:new RegExp("hwb"+o(r,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),l);let p;if(p=h.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;const m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=h.rgb.exec(e))?(u(p[1])<<24|u(p[2])<<16|u(p[3])<<8|255)>>>0:(p=h.rgba.exec(e))?void 0!==p[6]?(u(p[6])<<24|u(p[7])<<16|u(p[8])<<8|d(p[9]))>>>0:(u(p[2])<<24|u(p[3])<<16|u(p[4])<<8|d(p[5]))>>>0:(p=h.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=h.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=h.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=h.hsl.exec(e))?(255|n(c(p[1]),f(p[2]),f(p[3])))>>>0:(p=h.hsla.exec(e))?void 0!==p[6]?(n(c(p[6]),f(p[7]),f(p[8]))|d(p[9]))>>>0:(n(c(p[2]),f(p[3]),f(p[4]))|d(p[5]))>>>0:(p=h.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){const e=Math.round(255*n/(n+r));return e<<24|e<<16|e<<8}const i=t(0,1,e+1/3)*(1-n-r)+n,o=t(0,1,e)*(1-n-r)+n,a=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}(c(p[1]),f(p[2]),f(p[3])))>>>0:null}},5287(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var _=b.prototype=new y;_.constructor=b,m(_,g.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:C.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+R(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),T(a,t,i,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+R(s=e[u],u);l+=T(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,c=o+R(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},N={transition:null},L={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:N,ReactCurrentOwner:C};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.3.1"},6540(e,t,n){"use strict";e.exports=n(5287)},7463(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(v=!1,_(e),!m)if(null!==r(u))m=!0,N(S);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function S(e,n){m=!1,v&&(v=!1,y(k),k=-1),p=!0;var o=h;try{for(_(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&i(u),_(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&L(w,d.startTime-n),l=!1}return l}finally{f=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,E=!1,x=null,k=-1,A=5,R=-1;function T(){return!(t.unstable_now()-R<A)}function P(){if(null!==x){var e=t.unstable_now();R=e;var n=!0;try{n=x(!0,e)}finally{n?C():(E=!1,x=null)}}else E=!1}if("function"==typeof b)C=function(){b(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,O=I.port2;I.port1.onmessage=P,C=function(){O.postMessage(null)}}else C=function(){g(P,0)};function N(e){x=e,E||(E=!0,C())}function L(e,n){k=g(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,N(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(v?(y(k),k=-1):v=!0,L(w,o-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,N(S))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},9982(e,t,n){"use strict";e.exports=n(7463)},3176(e,t){"use strict";t.P=void 0;var n=new WeakMap;function r(e){var t,r,i;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,i=e.transform),function(){for(var e=[],o="",a=null,s=t?null:n,l=new Array(arguments.length),u=0;u<arguments.length;u++)l[u]=arguments[u];for(;l.length>0;){var c=l.pop();if(null!=c&&!1!==c)if(Array.isArray(c))for(var d=0;d<c.length;d++)l.push(c[d]);else{var f=null!=i?i(c):c;if(f.$$css){var h="";if(null!=s&&s.has(f)){var p=s.get(f);null!=p&&(h=p[0],e.push.apply(e,p[1]),s=p[2])}else{var m=[];for(var v in f){var g=f[v];"$$css"!==v&&("string"==typeof g||null===g?e.includes(v)||(e.push(v),null!=s&&m.push(v),"string"==typeof g&&(h+=h?" "+g:g)):console.error("styleq: ".concat(v," typeof ").concat(String(g),' is not "string" or "null".')))}if(null!=s){var y=new WeakMap;s.set(f,[h,m,y]),s=y}}h&&(o=o?h+" "+o:h)}else if(r)null==a&&(a={}),a=Object.assign({},f,a);else{var b=null;for(var _ in f){var w=f[_];void 0!==w&&(e.includes(_)||(null!=w&&(null==a&&(a={}),null==b&&(b={}),b[_]=w),e.push(_),s=null))}null!=b&&(a=Object.assign(b,a))}}}return[o,a]}}var i=r();t.P=i,i.factory=r},4336(e,t){"use strict";t.n=function(e,t){if(null!=e[r]){var o=t?1:0;if(n.has(e)){var a=n.get(e),s=a[o];return null==s&&(s=i(e,t),a[o]=s,n.set(e,a)),s}var l=i(e,t),u=new Array(2);return u[o]=l,n.set(e,u),l}return e};var n=new WeakMap,r="$$css$localize";function i(e,t){var n={};for(var i in e)if(i!==r){var o=e[i];Array.isArray(o)?n[i]=t?o[1]:o[0]:n[i]=o}return n}},8168(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},2555(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>a})},8587(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},6e3(e,t,n){"use strict";n.d(t,{v4:()=>a});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],n+=6==t?o[15&e|64]:8==t?o[63&e|128]:o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},3172(e,t,n){"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},1635(e,t,n){"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>l,fX:()=>u,sH:()=>s});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},2510(e){"use strict";e.exports=JSON.parse('{"black":"#000000","silver":"#c0c0c0","gray":"#808080","white":"#ffffff","maroon":"#800000","red":"#ff0000","purple":"#800080","fuchsia":"#ff00ff","green":"#008000","lime":"#00ff00","olive":"#808000","yellow":"#ffff00","navy":"#000080","blue":"#0000ff","teal":"#008080","aqua":"#00ffff","orange":"#ffa500","aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","blanchedalmond":"#ffebcd","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","limegreen":"#32cd32","linen":"#faf0e6","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","oldlace":"#fdf5e6","olivedrab":"#6b8e23","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","whitesmoke":"#f5f5f5","yellowgreen":"#9acd32","rebeccapurple":"#663399"}')}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".chat-widget.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="vdb-ai-chat:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(h);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,u=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkvdb_ai_chat=self.webpackChunkvdb_ai_chat||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=a(9697),t=a(6540),n=a(9176),r=a(7862),i=a(8997),o=a(5338),s=a(1635);function l(){return"undefined"!=typeof process&&process.env?process.env:{}}var u=a(9456),c=a(2321);function d(e,t,n,r){var i,o=[e,t,n,r],a=(0,c.Qd)(e)?e.event:e;if(!a||!(0,c.Kg)(a))throw new Error("Event missing");var s=(0,c.Qd)(e)?null!==(i=e.properties)&&void 0!==i?i:{}:(0,c.Qd)(t)?t:{},l={};return(0,c.Tn)(n)||(l=null!=n?n:{}),(0,c.Qd)(e)&&!(0,c.Tn)(t)&&(l=null!=t?t:{}),[a,s,l,o.find(c.Tn)]}function f(e,t,n,r,i){var o,a,s=null,l=null,u=[e,t,n,r,i],d=u.filter(c.Kg);1===d.length?(0,c.Kg)(u[1])?(l=u[1],s=null):(l=d[0],s=null):2===d.length&&("string"==typeof u[0]&&(s=u[0]),"string"==typeof u[1]&&(l=u[1]));var f=u.find(c.Tn),h=u.filter(c.Qd);return 1===h.length?(0,c.Qd)(u[2])?(a={},o=u[2]):(0,c.Qd)(u[3])?(o={},a=u[3]):(o=h[0],a={}):2===h.length&&(o=h[0],a=h[1]),[s,l,null!=o?o:o={},null!=a?a:a={},f]}var h=function(e){return function(){for(var t,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],l=0,u=i;l<u.length;l++){var d=u[l],f=s.pop();if("id"===f){if((0,c.Kg)(d)||(0,c.Et)(d)){a.id=d.toString();continue}if(null==d)continue;f=s.pop()}if("traits"!==f&&"options"!==f||null!=d&&!(0,c.Qd)(d)||(a[f]=d),(0,c.Tn)(d)){a.callback=d;break}}return[null!==(t=a.id)&&void 0!==t?t:e.id(),null!==(n=a.traits)&&void 0!==n?n:{},null!==(r=a.options)&&void 0!==r?r:{},a.callback]}};function p(e,t,n,r){(0,c.Et)(e)&&(e=e.toString()),(0,c.Et)(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(c.Kg),a=o[0],s=void 0===a?e:a,l=o[1],u=void 0===l?null:l,d=i.filter(c.Qd)[0];return[s,u,void 0===d?{}:d,i.find(c.Tn)]}var m=a(7718),v=a(7977),g=a(6556);function y(e,t,n,r){return(0,s.sH)(this,void 0,void 0,function(){var i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return(null==r?void 0:r.callback)?[4,(0,g.w_)(o,r.callback,(s=i,l=r.timeout,u=Date.now()-s,Math.max((null!=l?l:300)-u,0)))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&o.flush(),[2,o]}var s,l,u})})}var b=a(2079),_=a(6e3),w=function(e,t,n,r,i,o){return{__t:"bpc",c:t,p:r,u:e,s:n,t:i,r:o}},S=Object.keys(w("","","","","",""));var C=function(e){var t,n,r=e.c,i=e.p,o=e.s,a=e.u,s=e.r,l=e.t,u=r?function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}}(r):i,c=r?function(e,t){return e.indexOf("?")>-1?e:e+t}(r,o):-1===(n=(t=a).indexOf("#"))?t:t.slice(0,n);return{path:u,referrer:s,search:o,title:l,url:c}},E=function(){var e=document.querySelector("link[rel='canonical']");return w(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},x=function(e,t){void 0===t&&(t=C(E()));var n,r,i,o=e.context;"page"===e.type&&(n=e.properties&&(r=e.properties,i=Object.keys(t),Object.assign.apply(Object,(0,s.fX)([{}],i.map(function(e){var t;if(r&&Object.prototype.hasOwnProperty.call(r,e))return(t={})[e]=r[e],t}),!1))),e.properties=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),e.properties),e.name?{name:e.name}:{})),o.page=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),n),o.page)},k=a(3172),A=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,s.C6)(t,e),t}(Error),R="is not a string",T="is not an object";var P=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},I=function(){function e(e){this.settings=new P(e)}return e.prototype.track=function(e,t,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)}))},e.prototype.page=function(e,t,n,r,i){var o;this.settings.onEventMethodCall({type:"page",options:r});var a={type:"page",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(a.category=e,a.properties=null!==(o=a.properties)&&void 0!==o?o:{},a.properties.category=e),null!==t&&(a.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),a))},e.prototype.screen=function(e,t,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var o={type:"screen",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(o.category=e),null!==t&&(o.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),o))},e.prototype.identify=function(e,t,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:r}))},e.prototype.group=function(e,t,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:e,type:"alias",options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)};return null!==t&&(i.previousId=t),void 0===e?this.normalize((0,s.Cl)((0,s.Cl)({},i),this.baseEvent())):this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),i=null!==(t=e.context)&&void 0!==t?t:{},o={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,k.J)(o,t,e[t]):(0,k.J)(i,t,e[t]))}),[i,o]},e.prototype.normalize=function(e){var t,n,r,i,o=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce(function(t,n){var r,i;return(0,s.Cl)((0,s.Cl)({},t),((r={})[n]=Boolean(null===(i=e.integrations)||void 0===i?void 0:i[n]),r))},{});e.options=(r=e.options||{},i=function(e,t){return void 0!==t},Object.keys(r).filter(function(e){return i(0,r[e])}).reduce(function(e,t){return e[t]=r[t],e},{}));var a=(0,s.Cl)((0,s.Cl)({},o),null===(n=e.options)||void 0===n?void 0:n.integrations),l=e.options?this.context(e.options):[],u=l[0],d=l[1],f=e.options,h=(0,s.Tt)(e,["options"]),p=(0,s.Cl)((0,s.Cl)((0,s.Cl)((0,s.Cl)({timestamp:new Date},h),{context:u,integrations:a}),d),{messageId:f.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),function(e){!function(e){if(!(0,c.t2)(e))throw new A("Event","is nil");if("object"!=typeof e)throw new A("Event",T)}(e),function(e){if(!(0,c.Kg)(e.type))throw new A(".type",R)}(e),function(e){if(!(0,c.Kg)(e.messageId))throw new A(".messageId",R)}(e),"track"===e.type&&(function(e){if(!(0,c.Kg)(e.event))throw new A(".event",R)}(e),function(e){if(!(0,c.Qd)(e.properties))throw new A(".properties",T)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,c.Qd)(e.traits))throw new A(".traits",T)}(e)}(p),p},e}(),O=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,_.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,s.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,i,o){var a=e.prototype.track.call(this,t,n,r,i);return x(a,o),a},t.prototype.page=function(t,n,r,i,o,a){var s=e.prototype.page.call(this,t,n,r,i,o);return x(s,a),s},t.prototype.screen=function(t,n,r,i,o,a){var s=e.prototype.screen.call(this,t,n,r,i,o);return x(s,a),s},t.prototype.identify=function(t,n,r,i,o){var a=e.prototype.identify.call(this,t,n,r,i);return x(a,o),a},t.prototype.group=function(t,n,r,i,o){var a=e.prototype.group.call(this,t,n,r,i);return x(a,o),a},t.prototype.alias=function(t,n,r,i,o){var a=e.prototype.alias.call(this,t,n,r,i);return x(a,o),a},t}(I),N=function(e){return"addMiddleware"in e&&"destination"===e.type},L=a(5881),D=a(6115),M=a(9952),F=a(4980),V=function(e){function t(t){var n,r,i,o=e.call(this)||this;return o.criticalTasks=(i=0,{done:function(){return n},run:function(e){var t,o=e();return"object"==typeof(t=o)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1===++i&&(n=new Promise(function(e){return r=e})),o.finally(function(){return 0===--i&&r()})),o}}),o.plugins=[],o.failedInitializations=[],o.flushing=!1,o.queue=t,o.queue.on(D.g,function(){o.scheduleFlush(0)}),o}return(0,s.C6)(t,e),t.prototype.register=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r,i,o=this;return(0,s.YH)(this,function(a){switch(a.label){case 0:return this.plugins.push(t),r=function(n){o.failedInitializations.push(t.name),o.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),o.plugins=o.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(r),[3,4]);case 1:return a.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(i),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){var t;return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a;return(0,s.YH)(this,function(s){switch(s.label){case 0:return[4,this.criticalTasks.done()];case 1:s.sent(),n=Date.now(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=s.sent(),r=Date.now()-n,(i=e.failedDelivery())?(a=i.reason instanceof Error?i.reason:new Error(String(null!==(t=i.reason)&&void 0!==t?t:"Unknown delivery failure")),e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),[2,e]):(this.emit("delivery_success",e),e.stats.gauge("delivered",r),e.log("debug","Delivered",e.event),[2,e]);case 4:throw o=s.sent(),a=o,e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof M.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){var e,t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=r.sent(),t=!e.failedDelivery(),this.emit("flush",e,t),[3,4];case 3:return n=r.sent(),this.enqueuRetry(n,e)||(e.setFailedDelivery({reason:n}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=this.plugins.filter(function(t){var n,r,i;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var o=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(o=e[t])}),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)}),i=(t="type",n={},r.forEach(function(e){var r,i=void 0,o=e[t];void 0!==(i="string"!=typeof o?JSON.stringify(o):o)&&(n[i]=(0,s.fX)((0,s.fX)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[e],!1))}),n),o=i.before,a=void 0===o?[]:o,l=i.enrichment,u=void 0===l?[]:l,c=i.destination,d=void 0===c?[]:c,f=i.after;return{before:a,enrichment:u,destinations:d,after:void 0===f?[]:f}},t.prototype.flushOne=function(e){var t,n;return(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a,l,u,c,d,f,h,p,m,v,g;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),i=r.before,o=r.enrichment,a=0,l=i,s.label=1;case 1:return a<l.length?(u=l[a],[4,(0,F.D)(e,u)]):[3,4];case 2:(h=s.sent())instanceof M.j&&(e=h),this.emit("message_enriched",e,u),s.label=3;case 3:return a++,[3,1];case 4:c=0,d=o,s.label=5;case 5:return c<d.length?(f=d[c],[4,(0,F.C)(e,f)]):[3,8];case 6:(h=s.sent())instanceof M.j&&(e=h),this.emit("message_enriched",e,f),s.label=7;case 7:return c++,[3,5];case 8:return p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),m=p.destinations,v=p.after,[4,new Promise(function(t,n){setTimeout(function(){var r=m.map(function(t){return(0,F.C)(e,t)});Promise.all(r).then(t).catch(n)},0)})];case 9:return s.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),g=v.map(function(t){return(0,F.C)(e,t)}),[4,Promise.all(g)];case 10:return s.sent(),[2,e]}})})},t}(b.v),z=function(e){function t(t){return e.call(this,"string"==typeof t?new L.x(4,t):t)||this}return(0,s.C6)(t,e),t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return(0,m.a)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(V);function j(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"==typeof o.value&&(e[i]=e[i].bind(e))}}return e}var B={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},H=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},W=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){H(i,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){H(n,"set",e,t)}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(n){H(t,"remove",e,n)}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),U=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function $(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(B).includes(e)})}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var K=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=Y({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Y({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Y({},this.attributes,t))},withConverter:function(t){return e(Y({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const q=K;function G(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(q.set(i,"1",a),q.get(i))return q.remove(i,a),o}catch(e){return}}}var X=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,s.Cl)((0,s.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:G(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=q.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?q.set(e,t,this.opts()):null===t?q.remove(e,this.opts()):q.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return q.remove(e,this.opts())},e}(),Q=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function J(e){var t=e.map(function(e){var t,n;switch(function(e){return"object"==typeof e&&void 0!==e.name}(e)?(t=e.name,n=e.settings):t=e,t){case B.Cookie:return new X(n);case B.LocalStorage:return new Q;case B.Memory:return new U;default:throw new Error("Unknown Store Type: ".concat(e))}});return t}function Z(e,t){return e.map(function(e){return t&&e===B.Cookie?{name:e,settings:t}:e})}var ee={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},te=function(){function e(e,t){void 0===e&&(e=ee);var n,r,i,o,a=this;this.options={},this.id=function(e){if(a.options.disable)return null;var t=a.identityStore.getAndSync(a.idKey);void 0!==e&&(a.identityStore.set(a.idKey,e),e!==t&&null!==t&&null!==e&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(ee.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(a.options.disable)return null;if(void 0===e){var r=null!==(t=a.identityStore.getAndSync(a.anonKey))&&void 0!==t?t:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(a.identityStore.set(a.anonKey,null),a.identityStore.getAndSync(a.anonKey)):(a.identityStore.set(a.anonKey,null!=e?e:(0,_.v4)()),a.identityStore.getAndSync(a.anonKey))},this.traits=function(e){var t;if(!a.options.disable)return null===e&&(e={}),e&&a.traitsStore.set(a.traitsKey,null!=e?e:{}),null!==(t=a.traitsStore.get(a.traitsKey))&&void 0!==t?t:{}},this.options=(0,s.Cl)((0,s.Cl)({},ee),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:ee.cookie.key,this.traitsKey=null!==(o=null===(i=e.localStorage)||void 0===i?void 0:i.key)&&void 0!==o?o:ee.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===B.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==B.Cookie});var l=this.legacyUserStore.get(ee.cookie.oldKey);l&&"object"==typeof l&&(l.id&&this.id(l.id),l.traits&&this.traits(l.traits)),j(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,s.Cl)((0,s.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[B.LocalStorage,B.Cookie,B.Memory];return e.disable?new W([]):e.persist?(void 0!==e.storage&&null!==e.storage&&$(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==B.LocalStorage})),n&&(r=r.filter(n)),new W(J(Z(r,t)))):new W([new U])},e.defaults=ee,e}(),ne={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},re=function(e){function t(t,n){void 0===t&&(t=ne);var r=e.call(this,(0,s.Cl)((0,s.Cl)({},ne),t),n)||this;return r.anonymousId=function(e){},j(r),r}return(0,s.C6)(t,e),t}(te),ie=a(8167),oe=a(2453),ae=a(472),se=a(1298),le=function(e,t,n){n.getAndRemove(e).forEach(function(e){ge(t,e).catch(console.error)})},ue=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ge(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},ce=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("register"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ge(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},de=le.bind(void 0,"on"),fe=le.bind(void 0,"setAnonymousId"),he=function(e){if(pe(e)){var t=e.pop();return C(t)}},pe=function(e){return function(e){if(t=e,"object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase())return!1;var t;if("bpc"!==e.__t)return!1;for(var n in e)if(!S.includes(n))return!1;return!0}(e[e.length-1])},me=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},ve=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.calls[e])&&void 0!==t?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!pe(t.args)&&(t.args=(0,s.fX)((0,s.fX)([],t.args,!0),[E()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,se.X)()){var e=(0,ae.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map(function(e){var t=e[0],n=e.slice(1);return new me(t,n)});this.add.apply(this,t)}}},e}();function ge(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,"object"==typeof(o=n=e[t.method].apply(e,t.args))&&null!==o&&"then"in o&&"function"==typeof o.then?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}var o})})}var ye=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=ie.r,this._preInitBuffer=new ve,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.instance){var o=(n=t.instance)[e].apply(n,r);return Promise.resolve(o)}return new Promise(function(n,i){t._preInitBuffer.add(new me(e,r,n,i))})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.add(new me(e,r)),t)}},e}(),be=a(5791),_e=a(524),we=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t)||this;return i.retryTimeout=n,i.isRetryableWithoutCount=r,i.name="RateLimitError",i}return(0,s.C6)(t,e),t}(Error),Se=function(e){return(0,s.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)},Ce={408:"retry",410:"retry",429:"retry",460:"retry",501:"drop",505:"drop",511:"drop"};function Ee(e,t,n,r){var i=null!=e?e:t;return Math.min(Math.max(i,n),r)}function xe(e,t){var n;if(429!==e.status)return null;var r=null===(n=e.headers)||void 0===n?void 0:n.get("Retry-After");if(!r)return null;var i=parseInt(r,10);return Number.isNaN(i)?null:{retryAfterMs:1e3*Math.max(0,Math.min(i,t.maxRetryInterval)),fromHeader:!0}}function ke(e,t){return t.statusCodeOverrides[String(e)]||(e>=500?t.default5xxBehavior:e>=400?t.default4xxBehavior:"drop")}function Ae(e,t){var n,r,i,o,a=e||t?{rateLimitConfig:(0,s.Cl)((0,s.Cl)({},null==e?void 0:e.rateLimitConfig),null==t?void 0:t.rateLimitConfig),backoffConfig:(0,s.Cl)((0,s.Cl)((0,s.Cl)({},null==e?void 0:e.backoffConfig),null==t?void 0:t.backoffConfig),{statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},null===(n=null==e?void 0:e.backoffConfig)||void 0===n?void 0:n.statusCodeOverrides),null===(r=null==t?void 0:t.backoffConfig)||void 0===r?void 0:r.statusCodeOverrides)})}:void 0,l=null==a?void 0:a.rateLimitConfig,u=null==a?void 0:a.backoffConfig;return{rateLimitConfig:{maxRetryCount:Ee(null==l?void 0:l.maxRetryCount,10,0,100),maxRetryInterval:Ee(null==l?void 0:l.maxRetryInterval,300,.1,86400),maxRateLimitDuration:Ee(null==l?void 0:l.maxRateLimitDuration,43200,10,86400)},backoffConfig:{maxRetryCount:Ee(null==u?void 0:u.maxRetryCount,10,0,100),baseBackoffInterval:Ee(null==u?void 0:u.baseBackoffInterval,.5,.1,300),maxBackoffInterval:Ee(null==u?void 0:u.maxBackoffInterval,60,.1,86400),maxTotalBackoffDuration:Ee(null==u?void 0:u.maxTotalBackoffDuration,43200,60,604800),jitterPercent:Ee(null==u?void 0:u.jitterPercent,10,0,100),default4xxBehavior:null!==(i=null==u?void 0:u.default4xxBehavior)&&void 0!==i?i:"drop",default5xxBehavior:null!==(o=null==u?void 0:u.default5xxBehavior)&&void 0!==o?o:"retry",statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},Ce),null==u?void 0:u.statusCodeOverrides)}}}function Re(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function Te(e){return Re(e)>=450}function Pe(e,t){return{dispatch:function(n,r,i){var o=Se(null==e?void 0:e.headers),a=null==r?void 0:r.writeKey;if(a){var s=btoa(a+":");o.Authorization="Basic ".concat(s)}return i&&(o["X-Retry-Count"]=String(i)),(0,_e.h)(n,{credentials:null==e?void 0:e.credentials,keepalive:null==e?void 0:e.keepalive,headers:o,method:"post",body:JSON.stringify(r),priority:null==e?void 0:e.priority}).then(function(e){var n=e.status;if(!(n<400)){var r=null!=t?t:Ae(),i=ke(n,r.backoffConfig);if("drop"!==i){var o=xe(e,r.rateLimitConfig);if(o)throw new we("Rate limit exceeded: ".concat(n),o.retryAfterMs,o.fromHeader)}if("retry"===i)throw new Error("Retryable error: ".concat(n));var a=new Error("Non-retryable error: ".concat(n));throw a.name="NonRetryableError",a}})}}}function Ie(e,t,n,r,i){var o,a=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var l=e.queue.failedInitializations||[];l.length>0&&(t._metadata={failedInitializations:l}),null!=i&&(i.attempts>1&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{retryCount:i.attempts})),i.attempts++);var u=[],c=[];for(var d in r){var f=r[d];"Segment.io"===d&&u.push(d),"bundled"===f.bundlingStatus&&u.push(d),"unbundled"===f.bundlingStatus&&c.push(d)}for(var h=0,p=(null==n?void 0:n.unbundledIntegrations)||[];h<p.length;h++){var m=p[h];c.includes(m)||c.push(m)}var v=null!==(o=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==o?o:{},g=[];return u.sort().forEach(function(e){var t;(null!==(t=v[e])&&void 0!==t?t:[]).forEach(function(e){g.push(e)})}),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{bundled:u.sort(),unbundled:c.sort(),bundledIds:g})),t}Object.defineProperty(Pe,"name",{value:"default",configurable:!0});var Oe=a(2613);function Ne(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return n=[],(0,m.a)()?[2,t]:[4,(0,Oe._)(function(){return t.length>0&&!(0,m.a)()},function(){return(0,s.sH)(r,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return(r=t.pop())?[4,(0,F.C)(r,e)]:[2];case 1:return i.sent()instanceof v.o||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}function Le(e,t,n,r){var i=this;e||setTimeout(function(){return(0,s.sH)(i,void 0,void 0,function(){var e,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:return e=!0,[4,Ne(n,t)];case 1:return i=o.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}})})},500*Math.random()+100)}var De=a(7947),Me=function(e){return"Segment.io"===e.name};function Fe(e,t,n){var r,i,o,a;window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(c)),c.clear()});var l=null!==(r=null==t?void 0:t.apiKey)&&void 0!==r?r:"",u=e.options.disableClientPersistence?new D.M(e.queue.queue.maxAttempts,[]):new L.x(e.queue.queue.maxAttempts,"".concat(l,":dest-Segment.io")),c=new Set,d=new WeakMap,f=!1,h=null!==(i=null==t?void 0:t.apiHost)&&void 0!==i?i:De.a,p=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",g="".concat(p,"://").concat(h),y=null===(a=null==n?void 0:n["Segment.io"])||void 0===a?void 0:a.httpConfig,b=Ae(null==t?void 0:t.httpConfig,y);!1!==e.options.retryQueue&&(u.maxAttempts=b.backoffConfig.maxRetryCount);var _=null==t?void 0:t.deliveryStrategy,w=_&&"strategy"in _&&"batching"===_.strategy?function(e,t,n,r){var i,o;void 0===r&&(r="https");var a,l,u,c=[],d=!1,f=null!==(i=null==t?void 0:t.size)&&void 0!==i?i:10,h=null!==(o=null==t?void 0:t.timeout)&&void 0!==o?o:5e3,p=null!=n?n:Ae(),m=0,g=0,y=!1,b=!1,_=0,w=0,S=0;function C(n,i){var o;if(0!==n.length){var a=null===(o=n[0])||void 0===o?void 0:o.writeKey,l=n.map(function(e){var t=e;return t.sentAt,(0,s.Tt)(t,["sentAt"])}),u=Se(null==t?void 0:t.headers);if(i>0&&(u["X-Retry-Count"]=String(i)),a){var c=btoa(a+":");u.Authorization="Basic ".concat(c)}var f=e.startsWith("http://")||e.startsWith("https://")?"":"".concat(r,"://");return(0,_e.h)("".concat(f).concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||d,headers:u,method:"post",body:JSON.stringify({writeKey:a,batch:l,sentAt:(new Date).toISOString()}),priority:null==t?void 0:t.priority}).then(function(e){var t=e.status;if(!(t<400)){var n=ke(t,p.backoffConfig);if("drop"!==n){var r=xe(e,p.rateLimitConfig);if(r)throw new we("Rate limit exceeded: ".concat(t),r.retryAfterMs,r.fromHeader)}if("retry"===n)throw new Error("Retryable error: ".concat(t))}})}}function E(){c.length>0&&k(1)}function x(e){var n;return void 0===e&&(e=1),(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a;return(0,s.YH)(this,function(l){return y||(g=0,_=0,w=0,S=0),y=!1,b=!0,c.length?(r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=(0,s.fX)((0,s.fX)([],t,!0),[r],!1);if(t.length>0&&Te(i))return{batch:t,remaining:e.slice(n)};t.push(r)}return{batch:t,remaining:[]}}(c),i=r.batch,o=r.remaining,0===i.length?(b=!1,[2]):(c=o,a=g,g+=1,[2,null===(n=C(i,a))||void 0===n?void 0:n.then(function(e){return c.length>0&&k(1),e}).catch(function(n){var r;v.o.system().log("error","Error sending batch",n);var o,a=null!==(r=null==t?void 0:t.maxRetries)&&void 0!==r?r:p.backoffConfig.maxRetryCount,l="RateLimitError"===n.name,u=l&&n.isRetryableWithoutCount;if(!(u||e<=a))return E();if(u){if(++_>p.rateLimitConfig.maxRetryCount)return E();var d=n.retryTimeout;S+=d;var f=1e3*p.rateLimitConfig.maxRateLimitDuration;if(S>f)return E();m=d}if(!l){o=function(e,t){var n=1e3*t.baseBackoffInterval,r=1e3*t.maxBackoffInterval,i=n*Math.pow(2,e-1),o=Math.min(i,r),a=1+2*(Math.random()-.5)*(t.jitterPercent/100);return Math.max(0,o*a)}(e,p.backoffConfig),w+=o;var h=1e3*p.backoffConfig.maxTotalBackoffDuration;if(w>h)return E()}c=(0,s.fX)((0,s.fX)([],i,!0),c,!0),i.forEach(function(t){if("_metadata"in t){var n=t;n._metadata=(0,s.Cl)((0,s.Cl)({},n._metadata),{retryCount:e})}}),y=!0,k(u?e:e+1,o)}).finally(function(){b=!1})])):(b=!1,[2])})})}function k(e,t){void 0===e&&(e=1),a||(a=setTimeout(function(){a=void 0,x(e).catch(console.error)},m||t||h),m=0)}return l=function(e){if((d=e)&&c.length){var t=function(e){var t=[],n=0;return e.forEach(function(e){Re(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t}(c).map(function(e){return C(e,0)});Promise.all(t).catch(console.error)}},u=!1,window.addEventListener("pagehide",function(){u||l(u=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(u)return;u=!0}else u=!1;l(u)}),{dispatch:function(e,n,r){return(0,s.sH)(this,void 0,void 0,function(){var e;return(0,s.YH)(this,function(r){return c.push(n),y?[2]:(e=c.length>=f||Te(c)||(null==t?void 0:t.keepalive)&&function(e){return Re(e)>=54}(c),e||d?[2,b?k():x()]:[2,k()])})})}}}(h,_.config,b,p):Pe(null==_?void 0:_.config,b);function S(r){return(0,s.sH)(this,void 0,void 0,function(){var i,o,a,l;return(0,s.YH)(this,function(s){return(0,m.a)()?(u.push(r),Le(f,u,C,Le),[2,r]):(c.add(r),i=r.event.type.charAt(0),o=(0,be.W)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(o=function(e,t){var n,r,i,o,a=e.user();return t.previousId=null!==(i=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),t.userId=null!==(o=t.userId)&&void 0!==o?o:t.to,delete t.from,delete t.to,t}(e,o)),(a=u.getAttempts(r))>=u.maxAttempts?(c.delete(r),l=new Error("Retry attempts exhausted (".concat(a,"/").concat(u.maxAttempts,")")),r.setFailedDelivery({reason:l}),e.emit("error",{code:"delivery_failure",reason:l,ctx:r}),[2,r]):[2,w.dispatch("".concat(g,"/").concat(i),Ie(e,o,t,n,r),a).then(function(){return r}).catch(function(t){var n;if(r.log("error","Error sending event",t),"RateLimitError"===t.name){var i=(null!==(n=d.get(r))&&void 0!==n?n:0)+1;if(d.set(r,i),i>b.rateLimitConfig.maxRetryCount)r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r});else{var o=t.retryTimeout;u.pushWithDelay(r,o)}}else"NonRetryableError"===t.name?(r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r})):u.pushWithBackoff(r);return Le(f,u,C,Le),r}).finally(function(){c.delete(r)})])})})}var C={metadata:{writeKey:l,apiHost:h,protocol:p},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:S,identify:S,page:S,alias:S,group:S,screen:S};return u.todo&&Le(f,u,C,Le),C}var Ve="This is being deprecated and will be not be available in future releases of Analytics JS",ze=(0,oe.m)(),je=null==ze?void 0:ze.analytics,Be=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(Me))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function He(){console.warn(Ve)}var We,Ue=function(e){function t(t,n,r,i,o){var a,l,u=this;(u=e.call(this)||this)._debug=!1,u.initialized=!1,u.user=function(){return u._user},u.init=u.initialize.bind(u),u.log=He,u.addIntegrationMiddleware=He,u.listeners=He,u.addEventListener=He,u.removeAllListeners=He,u.removeListener=He,u.removeEventListener=He,u.hasListeners=He,u.add=He,u.addIntegration=He;var c=null==n?void 0:n.cookie,d=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;u.queue=null!=r?r:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,i=n?new D.M(r,[]):new L.x(r,e);return new z(i)}("".concat(t.writeKey,":event-queue"),null==n?void 0:n.retryQueue,d),u.settings=new Be(t,u.queue);var f=null==n?void 0:n.storage;return u._universalStorage=u.createStore(d,f,c),u._user=null!=i?i:new te((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.user),c).load(),u._group=null!=o?o:new re((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.group),c).load(),u.eventFactory=new O(u._user),u.integrations=null!==(l=null==n?void 0:n.integrations)&&void 0!==l?l:{},u.options=null!=n?n:{},j(u),u}return(0,s.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new W([new U]):t&&$(t)?new W(J(Z(t.stores,n))):new W(J([B.LocalStorage,{name:B.Cookie,settings:n},B.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=he(e),n=d.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.track(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("track",r,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=he(e),n=f.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.page(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("page",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=he(e),n=h(this._user).apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],this._user.identify(r,i),l=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=he(t);if(0===t.length)return this._group;var i=h(this._group).apply(void 0,t),o=i[0],a=i[1],s=i[2],l=i[3];this._group.identify(o,a);var u=this._group.id(),c=this._group.traits(),d=this.eventFactory.group(u,c,s,this.integrations,r);return this._dispatch(d,l).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=he(e),n=p.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.alias(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("alias",r,i,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=he(e),n=f.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.screen(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("screen",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=v.o.system(),n=e.map(function(e){return r.queue.register(t,e,r)}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=v.o.system(),n=e.map(function(e){var n=r.queue.plugins.find(function(t){return t.name===e});if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n;return(0,s.YH)(this,function(r){return(n=new v.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,m.a)()&&!this.options.retryQueue?[2,n]:[2,y(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,s.sH)(t,void 0,void 0,function(){var t,n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(a.bind(a,5939))];case 1:return t=i.sent().sourceMiddlewarePlugin,n={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return n[e.name]=!0}),r=t(e,n),[4,this.register(r)];case 2:return i.sent(),[2]}})})})];case 1:return n.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(N).forEach(function(n){"*"!==e&&n.name.toLowerCase()!==e.toLowerCase()||n.addMiddleware.apply(n,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,a.e(538).then(a.bind(a,2552))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(Ve),(0,ae.Ud)(null!=je?je:this),this},t.prototype.normalize=function(e){return console.warn(Ve),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Ve),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return ie.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){return console.warn(Ve),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return console.warn(Ve),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(Ve),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(Ve),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?(e[t.name]=i,e):(e[t.name]=r,e)},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(b.v),$e=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,s.C6)(t,e),t}(Ue),Ye=a(1094),Ke=a(6251),qe=a(5770);function Ge(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}function Xe(){if(We)return We;var e=G(window.location.href);return We={expires:31536e6,secure:!1,path:"/"},e&&(We.domain=e),We}var Qe,Je,Ze=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,s.sH)(e,void 0,void 0,function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,Ge(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var n,r,i=t.event.context,o=i.page.search||"",a="object"==typeof o?function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach(function(e){return t.append(n,e)}):t.append(n,r)}),t.toString()}catch(e){return""}}(o):o;i.userAgent=navigator.userAgent,i.userAgentData=e.userAgentData;var l=navigator.userLanguage||navigator.language;void 0===i.locale&&void 0!==l&&(i.locale=l),null!==(n=i.library)&&void 0!==n||(i.library={name:"analytics.js",version:"".concat("web"===(0,se.X)()?"next":"npm:next","-").concat(ie.r)}),a&&!i.campaign&&(i.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var a=r.slice(4);"campaign"===a&&(a="name"),e[a]=(0,qe.p)(o)}return e},{})}(a));var u=function(){var e=q.get("_ga");if(e&&e.startsWith("amp"))return e}();u&&(i.amp={id:u}),function(e,t,n){var r,i=new W(n?[]:[new X(Xe())]),o=i.get("s:context.referrer"),a=null!==(r=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],a=i[1];if(t[o])return{id:a,type:t[o]}}}(e))&&void 0!==r?r:o;a&&(t&&(t.referrer=(0,s.Cl)((0,s.Cl)({},t.referrer),a)),i.set("s:context.referrer",a))}(a,i,null!==(r=e.instance.options.disableClientPersistence)&&void 0!==r&&r);try{i.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},et=a(3357),tt=a(5939),nt=a(4757),rt=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,Ke.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,(0,tt.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new M.d({retry:!1,reason:"dropped by destination middleware"})),[2,new v.o(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,s.sH)(t,void 0,void 0,function(){var t,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw new Error("Something prevented the destination from getting ready");return(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];a.label=1;case 1:return a.trys.push([1,3,,4]),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[a.sent()]),[2,n];case 3:throw o=a.sent(),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(o),o;case 4:return[2]}})})},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function it(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a,l;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,9,,10]),n=new RegExp("https://cdn.segment.(com|build)"),r=(0,u.I2)(),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(0,et.k)(a.replace(n,r))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,(0,et.k)(e.url.replace(n,r))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,(0,et.k)(e.url.replace(n,r))];case 7:s.sent(),s.label=8;case 8:return"function"==typeof window[e.libraryName]?[2,window[e.libraryName]]:[3,10];case 9:throw l=s.sent(),console.error("Failed to create PluginFactory",e),l;case 10:return[2]}})})}function ot(e,t,n,r,i,o){var a,l,u;return(0,s.sH)(this,void 0,void 0,function(){var c,d,f,h=this;return(0,s.YH)(this,function(p){switch(p.label){case 0:return c=[],d=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],f=(null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map(function(e){return(0,s.sH)(h,void 0,void 0,function(){var a,l,u,f,h,p,m;return(0,s.YH)(this,function(g){switch(g.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];g.label=1;case 1:return g.trys.push([1,6,,7]),(l=null==o?void 0:o.find(function(t){return t.pluginName===e.name}))?[3,3]:[4,it(e,null==r?void 0:r.obfuscate)];case 2:l=g.sent(),g.label=3;case 3:return(a=l)?(u=n[e.name],[4,a((0,s.Cl)((0,s.Cl)({},e.settings),u))]):[3,5];case 4:f=g.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})}(h=Array.isArray(f)?f:[f]),p=d.filter(function(t){return t.destinationName===e.creationName}),h.forEach(function(t){var n=new rt(e.creationName,t);p.length&&i&&n.addMiddleware(i),c.push(n)}),g.label=5;case 5:return[3,7];case 6:return m=g.sent(),console.warn("Failed to load Remote Plugin",m),(0,nt.y)(v.o.system(),{integrationName:e.name,methodName:"load",type:"action",didError:!0}),[3,7];case 7:return[2]}})})}),[4,Promise.all(f)];case 1:return p.sent(),[2,c.filter(Boolean)]}})})}var at=null!==(Qe=(Je=(0,oe.m)()).__SEGMENT_INSPECTOR__)&&void 0!==Qe?Qe:Je.__SEGMENT_INSPECTOR__={},st=a(4568);function lt(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,ut(e,t)];case 1:return r.sent(),function(e,t){Object.keys(t.calls).forEach(function(n){t.getAndRemove(n).forEach(function(t){setTimeout(function(){ge(e,t).catch(console.error)},0)})})}(e,n),[2]}})})}var ut=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){return(0,s.YH)(this,function(n){switch(n.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})};function ct(e,t,n,r,i,o,u){var c,d,f;return void 0===i&&(i=[]),(0,s.sH)(this,void 0,void 0,function(){var h,p,m,v,g,y,b,_,w,S,C,E,x,k,A=this;return(0,s.YH)(this,function(R){switch(R.label){case 0:return function(e,t){fe(e,t),de(e,t)}(n,u),h=null==i?void 0:i.filter(function(e){return"object"==typeof e}),p=null==i?void 0:i.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),function(e){var t,n,r;return"test"!==l().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,a.e(10).then(a.bind(a,6834)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return v=R.sent(),[3,3];case 2:v=void 0,R.label=3;case 3:return m=v,T=t,"test"!==l().NODE_ENV&&Object.keys(T.integrations).length>1||o.length>0?[4,a.e(50).then(a.bind(a,365)).then(function(i){return i.ajsDestinations(e,t,n.integrations,r,m,o)})]:[3,5];case 4:return y=R.sent(),[3,6];case 5:y=[],R.label=6;case 6:return g=y,t.legacyVideoPluginsEnabled?[4,a.e(694).then(a.bind(a,4503)).then(function(e){return e.loadLegacyVideoPlugins(n)})]:[3,8];case 7:R.sent(),R.label=8;case 8:return(null===(c=r.plan)||void 0===c?void 0:c.track)?[4,a.e(104).then(a.bind(a,681)).then(function(e){var n;return e.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,t)})]:[3,10];case 9:return _=R.sent(),[3,11];case 10:_=void 0,R.label=11;case 11:return b=_,w=(0,Ye.J)(t,r),[4,ot(t,n.integrations,w,r,m,p).catch(function(e){return console.error("Failed to load remote plugins",e),[]})];case 12:return S=R.sent(),C=(0,s.fX)((0,s.fX)([Ze],g,!0),S,!0),b&&C.push(b),!1===(null===(d=r.integrations)||void 0===d?void 0:d.All)&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]?[3,14]:(x=(E=C).push,[4,Fe(n,w["Segment.io"],t.integrations)]);case 13:x.apply(E,[R.sent()]),R.label=14;case 14:return[4,n.register.apply(n,(0,s.fX)((0,s.fX)([],C,!1),h,!1))];case 15:return k=R.sent(),[4,ce(n,u)];case 16:return R.sent(),Object.entries(null!==(f=t.enabledMiddleware)&&void 0!==f?f:{}).some(function(e){return e[1]})?[4,a.e(521).then(a.bind(a,6904)).then(function(e){var i=e.remoteMiddlewares;return(0,s.sH)(A,void 0,void 0,function(){var e,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return[4,i(k,t,r.obfuscate)];case 1:return e=a.sent(),o=e.map(function(e){return n.addSourceMiddleware(e)}),[2,Promise.all(o)]}})})})]:[3,18];case 17:R.sent(),R.label=18;case 18:return[4,ue(n,u)];case 19:return R.sent(),[2,k]}var T})})}var dt=function(e){function t(){var t=this,n=(0,Ke.u)(),r=n.promise,i=n.resolve;return t=e.call(this,function(e){return r.then(function(t){return function(e,t,n){var r,i,o,a,l,c,d,f,h;return void 0===t&&(t={}),(0,s.sH)(this,void 0,void 0,function(){var p,m,g,y,b,_,w,S,C,E;return(0,s.YH)(this,function(x){switch(x.label){case 0:return!0===t.disable?[2,[new $e,v.o.system()]]:(t.globalAnalyticsKey&&(0,ae.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,u.qQ)(e.cdnURL),t.initialPageview&&n.add(new me("page",[])),p=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),m=null!==(r=e.cdnURL)&&void 0!==r?r:(0,u.I2)(),null===(i=e.cdnSettings)||void 0===i?[3,1]:(y=i,[3,3]));case 1:return[4,(k=e.writeKey,A=m,(0,_e.h)("".concat(A,"/v1/projects/").concat(k,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw new Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:y=x.sent(),x.label=3;case 3:return g=y,t.updateCDNSettings&&(g=t.updateCDNSettings(g)),"function"!=typeof t.disable?[3,5]:[4,t.disable(g)];case 4:if(x.sent())return[2,[new $e,v.o.system()]];x.label=5;case 5:return b=null===(a=null===(o=g.integrations["Segment.io"])||void 0===o?void 0:o.retryQueue)||void 0===a||a,t=(0,s.Cl)({retryQueue:b},t),function(e){var t;null===(t=at.attach)||void 0===t||t.call(at,e)}(_=new Ue((0,s.Cl)((0,s.Cl)({},e),{cdnSettings:g,cdnURL:m}),t)),w=null!==(l=e.plugins)&&void 0!==l?l:[],S=null!==(c=e.classicIntegrations)&&void 0!==c?c:[],C=null===(d=t.integrations)||void 0===d?void 0:d["Segment.io"],st.U.initRemoteMetrics((0,s.Cl)((0,s.Cl)({},g.metrics),{host:null!==(f=null==C?void 0:C.apiHost)&&void 0!==f?f:null===(h=g.metrics)||void 0===h?void 0:h.host,protocol:null==C?void 0:C.protocol})),[4,ct(e.writeKey,g,_,t,w,S,n)];case 6:return E=x.sent(),_.initialized=!0,_.emit("initialize",e,t),[4,lt(_,p,n)];case 7:return x.sent(),[2,[_,E]]}var k,A})})}(t[0],t[1],e)})})||this,t._resolveLoadStart=function(e,t){return i([e,t])},t}return(0,s.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(ye);const ft=(0,t.createContext)(void 0),ht=e=>{let{client:n,children:r}=e;return t.createElement(ft.Provider,{value:n},r)};var pt=a(7068),mt=a(5470),vt=a(4951),gt=a(2869),yt=a(728),bt=a(7608);const _t=Object.freeze([]),wt=Object.freeze({});function St(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const Ct=new WeakSet,Et={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function xt(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Et||e.startsWith("--")?String(t).trim():t+"px"}function kt(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}function At(e){return"function"==typeof e}const Rt=Symbol.for("sc-keyframes");function Tt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pt(e){return"object"==typeof e&&"styledComponentId"in e}const It=e=>null==e||!1===e||""===e,Ot=Symbol.for("react.client.reference");function Nt(e){return e.$$typeof===Ot}function Lt(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!It(r)&&(Array.isArray(r)&&Ct.has(r)||At(r)?t.push(kt(n)+":",r,";"):Tt(r)?(t.push(n+" {"),Lt(r,t),t.push("}")):t.push(kt(n)+": "+xt(n,r)+";"))}}function Dt(e,t,n,r,i=[]){if(It(e))return i;const o=typeof e;if("string"===o)return i.push(e),i;if("function"===o)return Nt(e)?i:!At(a=e)||a.prototype&&a.prototype.isReactComponent||!t?(i.push(e),i):Dt(e(t),t,n,r,i);var a;if(Array.isArray(e)){for(let o=0;o<e.length;o++)Dt(e[o],t,n,r,i);return i}return Pt(e)?(i.push(`.${e.styledComponentId}`),i):function(e){return"object"==typeof e&&null!==e&&Rt in e}(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):Nt(e)?i:Tt(e)?(Lt(e,i),i):(i.push(e.toString()),i)}function Mt(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const Ft=e=>(Ct.add(e),e);function Vt(e,...t){if(At(e)||Tt(e))return Ft(Dt(Mt(_t,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Dt(n):Ft(Dt(Mt(n,t)))}function zt(e,t,n=wt){if(!t)throw St(1,t);const r=(r,...i)=>e(t,n,Vt(r,...i));return r.attrs=r=>zt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>zt(e,t,Object.assign(Object.assign({},n),r)),r}var jt,Bt;function Ht(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}"undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process),Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(Bt=null!==(jt=Ht("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==jt?jt:Ht("SC_DISABLE_SPEEDY"))&&void 0!==Bt?Bt:"undefined"==typeof process||void 0===process.env||!1);const Wt=t.createContext(void 0);function Ut(){const e=t.useContext(Wt);if(!e)throw St(18);return e}function $t(e){const n=t.useContext(Wt),r=t.useMemo(()=>function(e,t){if(!e)throw St(14);if(At(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw St(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement(Wt.Provider,{value:r},e.children):null}Wt.Consumer;const Yt=Symbol.for("react.memo"),Kt=Symbol.for("react.forward_ref"),qt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Gt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qt={[Kt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Yt]:Xt};function Jt(e){return("type"in(t=e)&&t.type.$$typeof)===Yt?Xt:"$$typeof"in e?Qt[e.$$typeof]:qt;var t}const Zt=Object.defineProperty,en=Object.getOwnPropertyNames,tn=Object.getOwnPropertySymbols,nn=Object.getOwnPropertyDescriptor,rn=Object.getPrototypeOf,on=Object.prototype;function an(e,t,n){if("string"!=typeof t){const r=rn(t);r&&r!==on&&an(e,r,n);const i=en(t).concat(tn(t)),o=Jt(e),a=Jt(t);for(let r=0;r<i.length;++r){const s=i[r];if(!(s in Gt||n&&n[s]||a&&s in a||o&&s in o)){const n=nn(t,s);try{Zt(e,s,n)}catch(e){}}}}return e}const sn=/(a)(d)/gi,ln=e=>String.fromCharCode(e+(e>25?39:97));const un=["fit-content","min-content","max-content"];let cn={};function dn(e){return function(e){return"string"==typeof e&&!0}(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}function fn(e,t,n=!1){if(!n&&!Tt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=fn(e[n],t[n]);else if(Tt(t))for(const n in t)e[n]=fn(e[n],t[n]);return e}const hn=Object.prototype.hasOwnProperty,pn=a(6864);var mn;const vn=(mn=pn.StyleSheet,yn=class{constructor(e){this.rules=e}generateStyleObject(e){return function(e,t){const n=function(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ln(t%52)+n;return(ln(t%52)+n).replace(sn,"$1-$2")}(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,e)>>>0);if(!cn[n]){const r=[];for(const[t,n]of function(e){const t=function(e){if(-1===e.indexOf("/*"))return e;let t="",n=0,r=0;const i=e.length;for(;n<i;){const i=e.charCodeAt(n);if(r){if(92===i){t+=e.substring(n,n+2),n+=2;continue}i===r&&(r=0),t+=e[n],n++}else if(34===i||39===i)r=i,t+=e[n],n++;else if(47===i&&42===e.charCodeAt(n+1)){const t=e.indexOf("*/",n+2);if(-1===t)break;n=t+2}else t+=e[n],n++}return t}(e),n=[],r=t.length;let i=0;for(;i<r;){for(;i<r;){const e=t[i];if(" "===e||"\n"===e||"\r"===e||"\t"===e||";"===e||"}"===e)i++;else{if("{"!==e)break;{let e=1;for(i++;i<r&&e>0;)"{"===t[i]?e++:"}"===t[i]&&e--,i++}}}if(i>=r)break;const e=t.indexOf(":",i);if(-1===e)break;const o=t.substring(i,e).trim();let a=0,s=0,l=e+1;for(;l<r;){const e=t.charCodeAt(l);if(s)92===e?l++:e===s&&(s=0);else if(34===e||39===e)s=e;else if(40===e)a++;else if(41===e)a>0&&a--;else if(59===e&&0===a)break;l++}if(l>=r&&(0!==s||a>0)){const n=t.indexOf(";",e+1);i=-1!==n?n+1:r;continue}const u=t.substring(e+1,l).trim();if(o&&u){if("@"===o[0]||-1!==o.indexOf("{")){let e=0,n=l;for(let n=i;n<l;n++)"{"===t[n]?e++:"}"===t[n]&&e--;for(;n<r&&e>0;)"{"===t[n]?e++:"}"===t[n]&&e--,n++;i=n;continue}n.push([o,u])}i=l+1}return n}(e))!un.includes(n)&&r.push([t,n]);const i=(0,bt.Ay)(r,["borderWidth","borderColor"]);cn[n]=t.create({generated:i}).generated}return cn[n]}(function(e,t){return e.join(t||"")}(Dt(this.rules,e)),mn)}},(e,n,r)=>{const i=Pt(e),o=e,{displayName:a=dn(e),attrs:s=_t}=n,l=i&&o.attrs?o.attrs.concat(s).filter(Boolean):s;let u=n.shouldForwardProp;if(i&&o.shouldForwardProp){const e=o.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;u=(n,r)=>e(n,r)&&t(n,r)}else u=e}const c=(e,n)=>function(e,n,r){const{attrs:i,inlineStyle:o,defaultProps:a,shouldForwardProp:s,target:l}=e,u=t.useContext?t.useContext(Wt):void 0,c=function(e,t,n=wt){return e.theme!==n.theme&&e.theme||t||n.theme}(n,u,a)||wt;let d,f;const h=t.useRef?t.useRef(null):{current:null},p=h.current;if(null!==p&&p[1]===c&&function(e,t,n){const r=e,i=t;let o=0;for(const e in i)if(hn.call(i,e)&&(o++,r[e]!==i[e]))return!1;return o===n}(p[0],n,p[2]))d=p[3],f=p[4];else{d=function(e=wt,t,n){const r=Object.assign(Object.assign({},t),{theme:e});for(let e=0;e<n.length;e++){const t=At(n[e])?n[e](Object.assign({},r)):n[e];for(const e in t)r[e]=t[e]}return r}(c,n,i),f=o.generateStyleObject(d);let e=0;for(const t in n)hn.call(n,t)&&e++;h.current=[n,c,e,d,f]}const m=d.as||n.as||l,v=function(e,t,n){const r={};for(const i in e)"$"!==i[0]&&"as"!==i&&"theme"!==i&&("forwardedAs"===i?r.as=e[i]:n&&!n(i,t)||(r[i]=e[i]));return r}(d,m,s);return v.style=t.useMemo?t.useMemo(()=>At(n.style)?e=>[f].concat(n.style(e)):n.style?[f].concat(n.style):f,[n.style,f]):At(n.style)?e=>[f].concat(n.style(e)):n.style?[f].concat(n.style):f,r&&(v.ref=r),(0,t.createElement)(m,v)}(d,e,n);c.displayName=a;let d=t.forwardRef(c);return d.attrs=l,d.inlineStyle=new yn(i?o.inlineStyle.rules.concat(r):r),d.displayName=a,d.shouldForwardProp=u,d.styledComponentId=!0,d.target=i?o.target:e,Object.defineProperty(d,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)fn(e,n,!0);return e}({},o.defaultProps,e):e}}),an(d,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),d}),gn=e=>zt(vn,e);var yn;["ActivityIndicator","Button","FlatList","Image","ImageBackground","InputAccessoryView","KeyboardAvoidingView","Modal","Pressable","RefreshControl","SafeAreaView","ScrollView","SectionList","StatusBar","Switch","Text","TextInput","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","TouchableWithoutFeedback","View","VirtualizedList"].forEach(e=>Object.defineProperty(gn,e,{enumerable:!0,configurable:!1,get(){if(e in pn&&pn[e])return gn(pn[e]);throw new Error(`${e} is not available in the currently-installed version of react-native`)}}));let bn=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(bn=e)}catch{bn=yt.A}const _n=e=>{let{disabled:n,isEmpty:r}=e;const i=n||r,o=Ut();return t.createElement(bn,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/send.svg"},resizeMode:"contain",style:{...xn.buttonIcon,tintColor:i?o["core-04"]||"#ACACB3":o["core-05"]||"#020001",cursor:i?"auto":"pointer"}})},wn=e=>{let{value:n,onChangeText:r,onSend:i,disabled:o,placeholder:a,inputRef:s}=e;const l=Ut();return t.createElement(Sn,{theme:l},t.createElement(Cn,{ref:s,id:"chat-input",style:[xn.inputWeb],placeholder:a||"Describe the diamond you’re looking for...",placeholderTextColor:l["core-06"]||"#999",value:n,onChangeText:r,onSubmitEditing:i,editable:!o,autoFocus:!0}),t.createElement(En,{onPress:i,disabled:o},t.createElement(_n,{disabled:o,isEmpty:""===n.trim()})))},Sn=gn.View`
2
+ (()=>{var e,t,n,r,i={6556(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),n(e)}).catch(r)})}function i(e,t,n){var i;return(i=n,new Promise(function(e){return setTimeout(e,i)})).then(function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{s2:()=>r,w_:()=>i})},9952(e,t,n){"use strict";n.d(t,{d:()=>l,j:()=>u});var r=n(6e3),i=n(3172),o=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,i,a=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[s]=a,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),s=n(6490),l=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.r),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new l({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},6115(e,t,n){"use strict";n.d(t,{g:()=>o,M:()=>a});var r=n(1635),i=n(2079),o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t)||(e.queue.push(t),0))});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var n=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,l=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),l)}({attempt:this.getAttempts(e)});return t>0&&n<t&&(n=t),this.scheduleItem(e,n)},t.prototype.pushWithDelay=function(e,t){return this.scheduleItem(e,t)},t.prototype.scheduleItem=function(e,t){var n=this;return!(this.updateAttempts(e)>this.maxAttempts||this.includes(e)||(setTimeout(function(){n.queue.push(e),n.future=n.future.filter(function(t){return t.id!==e.id}),n.emit(o)},t),this.future.push(e),0))},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find(function(t){return t.id===e.id}))||Boolean(this.future.find(function(t){return t.id===e.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},4980(e,t,n){"use strict";n.d(t,{C:()=>o,D:()=>a});var r=n(1635),i=n(9952);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,function(){var n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}})})}().then(function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},6490(e,t,n){"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(1635),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t})},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},2321(e,t,n){"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function a(e){return null!=e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>s,Tn:()=>o,t2:()=>a})},6251(e,t,n){"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise(function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},2079(e,t,n){"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},7718(e,t,n){"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(9839);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},7947(e,t,n){"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},7977(e,t,n){"use strict";n.d(t,{o:()=>a});var r=n(1635),i=n(9952),o=n(4568),a=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},9839(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},5770(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},4568(e,t,n){"use strict";n.d(t,{U:()=>h});var r=n(1635),i=n(6490),o=n(524),a=n(8167),s=n(1298),l=n(7947);function u(e){console.error("Error sending segment performance metrics",e)}var c,d=function(){function e(e){var t,n,r,i,o,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:l.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var s=!1,c=function(){s||(s=!0,a.flush().catch(u),s=!1,setTimeout(c,a.flushTimer))};c()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,s.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e=this;return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(t){u(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n;return(0,r.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){c=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==c||c.increment(t,null!=r?r:[])},t}(i.p)},4757(e,t,n){"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError,a=void 0!==o&&o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},8167(e,t,n){"use strict";n.d(t,{r:()=>r});var r="1.84.0"},524(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}n.d(t,{h:()=>o}),Object.defineProperty(r,"name",{value:"default",configurable:!0});var i=n(2453),o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.m)();return(n&&n.fetch||r).apply(void 0,e)}},2453(e,t,n){"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},472(e,t,n){"use strict";n.d(t,{Ud:()=>a,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function a(e){window[r]=e}},3357(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});a<s.length;a++){var l=s[a],u=l[0],c=l[1];o.setAttribute(u,c)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null===(i=d.parentElement)||void 0===i||i.insertBefore(o,d):window.document.head.appendChild(o)})}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>o,k:()=>i})},1094(e,t,n){"use strict";n.d(t,{J:()=>i});var r=n(1635);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,t){var n,i,o=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,o=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},a),i[o]),n))},{})}},2613(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(1635),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,function(){var n;return(0,r.YH)(this,function(i){return n=function(i){return(0,r.sH)(void 0,void 0,void 0,function(){var o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})}},9456(e,t,n){"use strict";n.d(t,{I2:()=>s,YM:()=>l,qQ:()=>a});var r,i=n(472),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},s=function(){var e,t=null!=r?r:null===(e=(0,i.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",i=o.exec(r);i&&i[1]&&(n=i[1])}),n);return a||"https://cdn.segment.com"},l=function(){var e=s();return"".concat(e,"/next-integrations")}},5881(e,t,n){"use strict";n.d(t,{x:()=>h});var r=n(1635),i=n(6115),o=n(7977),a=n(9839),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function l(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o.o(e.event,e.id)})}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),h=[],f={};return d(n,function(){try{h=l(o),f=u(a),c(o),c(a),i.queue=(0,r.fX)((0,r.fX)([],h,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},f),i.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,function(){!function(e,t){var n=l(e),i=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=u(e);s.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,i.seen)})}catch(e){console.error(e)}}}),i}return(0,r.C6)(t,e),t}(i.M)},5791(e,t,n){"use strict";n.d(t,{W:()=>i});var r=n(1476);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},1298(e,t,n){"use strict";n.d(t,{X:()=>r});function r(){return"npm"}},5939(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>s});var r=n(1635),i=n(9952),o=n(5791);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){function i(t,n){return(0,r.sH)(this,void 0,void 0,function(){var i,a,s;return(0,r.YH)(this,function(l){switch(l.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return l.sent(),i||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((s={})[e]=!1,s))),[2,a]}})})}var a,s,l,u,c;return(0,r.YH)(this,function(e){switch(e.label){case 0:a=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,l=n,e.label=1;case 1:return s<l.length?(u=l[s],[4,i(a,u)]):[3,4];case 2:if(null===(c=e.sent()))return[2,null];a=c,e.label=3;case 3:return s++,[3,1];case 4:return[2,a]}})})}function s(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,function(){var a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,o.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new i.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},2572(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(6041));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},2360(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},4857(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},7697(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},4500(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(2572)),o=n(4857),a=r(n(8822)),s=r(n(5316)),l=r(n(6041)),u=r(n(7631));function c(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?s.default(e.timestamp):new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function h(e){return o.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=l.default(n,t.join("."))),this.opts.clone?h(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?h(t):t},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||l.default(r,e);return"object"!=typeof i&&(i=l.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},3335(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(6698)),o=r(n(6659)),a=r(n(5316)),s=n(4500);function l(e,t){s.Facade.call(this,e,t)}t.Group=l,i.default(l,s.Facade);var u=l.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return o.default(t)?t:void 0},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},7538(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(4500),o=r(n(6041)),a=r(n(6698)),s=r(n(6659)),l=r(n(5316)),u=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return l.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return l.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();return t&&n?u(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");return"string"==typeof t?u(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},1476(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(4500);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(2360);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var a=n(3335);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var s=n(7538);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var l=n(3863);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return l.Track}});var u=n(5525);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return u.Page}});var c=n(2542);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var d=n(7697);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:l.Track,Page:u.Page,Screen:c.Screen,Delete:d.Delete})},6659(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},8822(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},5525(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(6698)),o=n(4500),a=n(3863),s=r(n(6659));function l(e,t){o.Facade.call(this,e,t)}t.Page=l,i.default(l,o.Facade);var u=l.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},2542(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(6698)),o=n(5525),a=n(3863);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},3863(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(6698)),o=n(4500),a=n(7538),s=r(n(6659)),l=r(n(6041));function u(e,t){o.Facade.call(this,e,t)}t.Track=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"track"},c.type=c.action,c.event=o.Facade.field("event"),c.value=o.Facade.proxy("properties.value"),c.category=o.Facade.proxy("properties.category"),c.id=o.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=o.Facade.proxy("properties.sku"),c.tax=o.Facade.proxy("properties.tax"),c.name=o.Facade.proxy("properties.name"),c.price=o.Facade.proxy("properties.price"),c.total=o.Facade.proxy("properties.total"),c.repeat=o.Facade.proxy("properties.repeat"),c.coupon=o.Facade.proxy("properties.coupon"),c.shipping=o.Facade.proxy("properties.shipping"),c.discount=o.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=o.Facade.proxy("properties.description"),c.plan=o.Facade.proxy("properties.plan"),c.subtotal=function(){var e=l.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},c.products=function(){var e=this.properties(),t=l.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=o.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e){if("number"==typeof e)return e;if("string"==typeof e)return e=e.replace(/\$/g,""),e=parseFloat(e),isNaN(e)?void 0:e}}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},7631(e,t,n){"use strict";var r=n(1042);e.exports=function e(t,n){return void 0===n&&(n=!0),t&&"object"==typeof t?function(t,n){return Object.keys(t).forEach(function(r){t[r]=e(t[r],n)}),t}(t,n):Array.isArray(t)?function(t,n){return t.forEach(function(r,i){t[i]=e(r,n)}),t}(t,n):r.is(t,n)?r.parse(t):t}},1042(e,t){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,a=0;o=t[a];a++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var s=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(s)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},5493(e){"use strict";function t(e){return e&&"object"==typeof e?i(e)||o(e)?e:r(e)?function(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}(e,t):function(e,t,n){if(e.reduce)return e.reduce(t,n);for(var r=0;r<e.length;r++)n=t(n,e[r]);return n}(s(e),function(r,i){return r[n(i)]=t(e[i]),r},{}):e}function n(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=function(e){return"string"==typeof e?n(e):t(e)};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){return"[object Date]"===Object.prototype.toString.call(e)},o=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},a=Object.prototype.hasOwnProperty,s=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},2473(e,t,n){"use strict";e.exports=n(2510)},5486(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function s(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var o=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var l in o){var u=o[l],c=e[l];if(c&&u){if(Array.isArray(c)){e[l]=a(c.concat(u));continue}if(Array.isArray(u)){e[l]=a([c].concat(i(u)));continue}if("object"===r(u)){e[l]=s({},c,u);continue}}e[l]=u}}return e}n.r(t),n.d(t,{assignStyle:()=>s,camelCaseProperty:()=>h,cssifyDeclaration:()=>m,cssifyObject:()=>g,hyphenateProperty:()=>p,isPrefixedProperty:()=>y,isPrefixedValue:()=>_,isUnitlessProperty:()=>O,normalizeProperty:()=>L,resolveArrayValue:()=>D,unprefixProperty:()=>N,unprefixValue:()=>F});var l=/-([a-z])/g,u=/^Ms/g,c={};function d(e){return e[1].toUpperCase()}function h(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(l,d).replace(u,"ms");return c[e]=t,t}var f=n(5685);function p(e){return(0,f.default)(e)}function m(e,t){return p(e)+":"+t}function g(e){var t="";for(var n in e){var r=e[n];"string"!=typeof r&&"number"!=typeof r||(t&&(t+=";"),t+=m(n,r))}return t}var v=/^(Webkit|Moz|O|ms)/;function y(e){return v.test(e)}var b=/-webkit-|-moz-|-ms-/;function _(e){return"string"==typeof e&&b.test(e)}var w={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],x=["Webkit","ms","Moz","O"];function C(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var E=0,k=S.length;E<k;++E){var A=S[E];w[A]=!0;for(var R=0,T=x.length;R<T;++R)w[C(x[R],A)]=!0}for(var P in w)w[p(P)]=!0;function O(e){return w.hasOwnProperty(e)}var I=/^(ms|Webkit|Moz|O)/;function N(e){var t=e.replace(I,"");return t.charAt(0).toLowerCase()+t.slice(1)}function L(e){return N(h(e))}function D(e,t){return t.join(";"+p(e)+":")}var M=/(-ms-|-webkit-|-moz-|-o-)/g;function F(e){return"string"==typeof e?e.replace(M,""):e}},5721(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var r,i=(r=n(5685))&&r.__esModule?r:{default:r}},4014(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},8907(e,t){"use strict";t.Y=function(e,t){return function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}}),l})}(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every(function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=u(i),o=u(o);break;case"resolution":i=l(i),o=l(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=s(i),o=s(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}});return i&&!n||!i&&n})};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},7608(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(5482),o=r(i),a=r(n(5493)),s=r(n(2473)),l=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,u=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,c=function(e){return function(t){return e(t)?"<token>":null}},d=function(e,t){return void 0===t&&(t=String),function(n){if("word"!==n.type)return null;var r=n.value.match(e);return null===r?null:t(r[1])}},h=c(function(e){return"space"===e.type}),f=c(function(e){return"div"===e.type&&"/"===e.value}),p=c(function(e){return"div"===e.type&&","===e.value}),m=function(e){return"word"===e.type?e.value:null},g=d(/^(none)$/i),v=d(/^(auto)$/i),y=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,Number),b=d(/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,Number),_=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i),w=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,function(e){return e.toLowerCase()}),S=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i),x=d(/(^-?[_a-z][_a-z0-9-]*$)/i),C=function(e){return"string"!==e.type?null:e.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/\\/g,"")},E=function(e){return"word"===e.type&&(l.test(e.value)||e.value in s||"transparent"===e.value)?e.value:"function"===e.type&&u.test(e.value)?i.stringify(e):null},k=d(/^(none|underline|line-through)$/i),A=d(/^(solid|dashed|dotted)$/),R=function(e){var t=e.types,n=void 0===t?[b,_,S]:t,r=e.directions,i=void 0===r?["Top","Right","Bottom","Left"]:r,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;return function(e){var t,r=[];for(r.push(e.expect.apply(e,n));r.length<4&&e.hasTokens();)e.expect(h),r.push(e.expect.apply(e,n));e.expectEmpty();var o=r[0],s=r[1],u=void 0===s?o:s,c=r[2],d=void 0===c?o:c,f=r[3],p=void 0===f?u:f,m=function(e){return""+a+i[e]+l};return(t={})[m(0)]=o,t[m(1)]=u,t[m(2)]=d,t[m(3)]=p,t}},T=function(e){var t=e.expect(b),n=e.matches(h)?e.expect(b):t;return e.expectEmpty(),{width:t,height:n}},P=function(e){var t,n,r,i;if(e.matches(g))return e.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var o=!1;e.hasTokens();)o&&e.expect(h),void 0===t&&e.matches(b,_)?(t=e.lastValue,e.expect(h),n=e.expect(b,_),e.saveRewindPoint(),e.matches(h)&&e.matches(b,_)?r=e.lastValue:e.rewind()):void 0===i&&e.matches(E)?i=e.lastValue:e.throw(),o=!0;return void 0===t&&e.throw(),{offset:{width:t,height:n},radius:void 0!==r?r:0,color:void 0!==i?i:"black"}},O=d(/(nowrap|wrap|wrap-reverse)/),I=d(/(row|row-reverse|column|column-reverse)/),N=function(e){var t;if(e.matches(C))t=e.lastValue;else for(t=e.expect(x);e.hasTokens();)e.expect(h),t+=" "+e.expect(x);return e.expectEmpty(),{fontFamily:t}},L=d(/^(normal)$/),D=d(/^(italic)$/),M=d(/^([1-9]00|bold)$/),F=d(/^(small-caps)$/),V=[],j=d(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),z=d(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),B=d(/^(solid|double|dotted|dashed)$/),H=function(e){return function(t){var n=t.expect(e);return t.expectEmpty(),n}},$=H(y),W=H(b),U=H(w),K=function(e){return function(t,n){return function(r){var i,o,a,s=r.expect(e);if(r.hasTokens())r.expect(p),a=r.expect(e);else{if(void 0===n)return s;a=n}return r.expectEmpty(),[(i={},i[t+"Y"]=a,i),(o={},o[t+"X"]=s,o)]}}},q=K(y),Y=K(b),G=K(w),X={perspective:$,scale:q("scale"),scaleX:$,scaleY:$,translate:Y("translate",0),translateX:W,translateY:W,rotate:U,rotateX:U,rotateY:U,rotateZ:U,skewX:U,skewY:U,skew:G("skew","0deg")},J=R({types:[E],prefix:"border",suffix:"Color"}),Q=R({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Z=R({prefix:"border",suffix:"Width"}),ee=R({types:[b,_,S,v],prefix:"margin"}),te=R({prefix:"padding"}),ne={aspectRatio:function(e){var t=e.expect(y);return e.hasTokens()&&(e.expect(f),t/=e.expect(y)),{aspectRatio:t}},background:function(e){return{backgroundColor:e.expect(E)}},border:function(e){var t,n,r;if(e.matches(g))return e.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var i=0;i<3&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(b,_)?t=e.lastValue:void 0===n&&e.matches(E)?n=e.lastValue:void 0===r&&e.matches(A)?r=e.lastValue:e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n="black"),void 0===r&&(r="solid"),{borderWidth:t,borderColor:n,borderStyle:r}},borderColor:J,borderRadius:Q,borderWidth:Z,boxShadow:function(e){var t=P(e);return{shadowOffset:t.offset,shadowRadius:t.radius,shadowColor:t.color,shadowOpacity:1}},flex:function(e){var t,n,r;if(e.matches(g))return e.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(e.saveRewindPoint(),e.matches(v)&&!e.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};e.rewind();for(var i=0;i<2&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(y)?(t=e.lastValue,e.saveRewindPoint(),e.matches(h)&&e.matches(y)?n=e.lastValue:e.rewind()):void 0===r&&e.matches(b,_,S)?r=e.lastValue:void 0===r&&e.matches(v)?r="auto":e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),{flexGrow:t,flexShrink:n,flexBasis:r}},flexFlow:function(e){for(var t,n,r=0;r<2&&e.hasTokens();)0!==r&&e.expect(h),void 0===t&&e.matches(O)?t=e.lastValue:void 0===n&&e.matches(I)?n=e.lastValue:e.throw(),r+=1;return e.expectEmpty(),void 0===t&&(t="nowrap"),void 0===n&&(n="row"),{flexWrap:t,flexDirection:n}},font:function(e){for(var t,n,r,i,o=0;o<3&&e.hasTokens();){if(e.matches(L));else if(void 0===t&&e.matches(D))t=e.lastValue;else if(void 0===n&&e.matches(M))n=e.lastValue;else{if(void 0!==r||!e.matches(F))break;r=[e.lastValue]}e.expect(h),o+=1}var a=e.expect(b,_);e.matches(f)&&(i=e.expect(b,_)),e.expect(h);var s=N(e).fontFamily;void 0===t&&(t="normal"),void 0===n&&(n="normal"),void 0===r&&(r=V);var l={fontStyle:t,fontWeight:n,fontVariant:r,fontSize:a,fontFamily:s};return void 0!==i&&(l.lineHeight=i),l},fontFamily:N,fontVariant:function(e){for(var t=[e.expect(x)];e.hasTokens();)e.expect(h),t.push(e.expect(x));return{fontVariant:t}},fontWeight:function(e){return{fontWeight:e.expect(m)}},margin:ee,padding:te,placeContent:function(e){var t,n=e.expect(j);return e.hasTokens()?(e.expect(h),t=e.expect(z)):t="stretch",e.expectEmpty(),{alignContent:n,justifyContent:t}},shadowOffset:function(e){return{shadowOffset:T(e)}},textShadow:function(e){var t=P(e);return{textShadowOffset:t.offset,textShadowRadius:t.radius,textShadowColor:t.color}},textShadowOffset:function(e){return{textShadowOffset:T(e)}},textDecoration:function(e){for(var t,n,r,i=!1;e.hasTokens();){if(i&&e.expect(h),void 0===t&&e.matches(k)){var o=[e.lastValue.toLowerCase()];e.saveRewindPoint(),"none"!==o[0]&&e.matches(h)&&e.matches(k)?(o.push(e.lastValue.toLowerCase()),o.sort().reverse()):e.rewind(),t=o.join(" ")}else void 0===n&&e.matches(B)?n=e.lastValue:void 0===r&&e.matches(E)?r=e.lastValue:e.throw();i=!0}return{textDecorationLine:void 0!==t?t:"none",textDecorationColor:void 0!==r?r:"black",textDecorationStyle:void 0!==n?n:"solid"}},textDecorationLine:function(e){for(var t=[],n=!1;e.hasTokens();)n&&e.expect(h),t.push(e.expect(k).toLowerCase()),n=!0;return t.sort().reverse(),{textDecorationLine:t.join(" ")}},transform:function(e){for(var t=[],n=!1;e.hasTokens();){n&&e.expect(h);var r,i=e.expectFunction(),o=i.functionName,a=X[o](i);Array.isArray(a)||(a=[(r={},r[o]=a,r)]),t=a.concat(t),n=!0}return{transform:t}}},re="SYMBOL_MATCH",ie=function(){function e(e,t){this.index=0,this.nodes=e,this.functionName=null!=t?t.value:null,this.lastValue=null,this.rewindIndex=-1}var t=e.prototype;return t.hasTokens=function(){return this.index<=this.nodes.length-1},t[re]=function(){if(!this.hasTokens())return null;for(var e=this.nodes[this.index],t=0;t<arguments.length;t+=1){var n=(t<0||arguments.length<=t?void 0:arguments[t])(e);if(null!==n)return this.index+=1,this.lastValue=n,n}return null},t.matches=function(){return null!==this[re].apply(this,arguments)},t.expect=function(){var e=this[re].apply(this,arguments);return null!==e?e:this.throw()},t.matchesFunction=function(){var t=this.nodes[this.index];if("function"!==t.type)return null;var n=new e(t.nodes,t);return this.index+=1,this.lastValue=null,n},t.expectFunction=function(){var e=this.matchesFunction();return null!==e?e:this.throw()},t.expectEmpty=function(){this.hasTokens()&&this.throw()},t.throw=function(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},t.saveRewindPoint=function(){this.rewindIndex=this.index},t.rewind=function(){if(-1===this.rewindIndex)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},e}(),oe=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,ae=/^true|false$/i,se=/^null$/i,le=/^undefined$/i,ue=function(e,t,n){var r,i=!1===n||!(e in ne),a=t.trim();return i?((r={})[e]=function(e,t){var n=t.match(oe);if(null!==n)return Number(n[1]);var r=t.match(ae);return null!==r?"true"===r[0].toLowerCase():null!==t.match(se)?null:null===t.match(le)?t:void 0}(0,a),r):function(e,t){var n=o(t),r=new ie(n.nodes);return ne[e](r)}(e,a)};t.Ay=function(e,t){return void 0===t&&(t=[]),e.reduce(function(e,n){var r,i=(r=n[0],/^--\w+/.test(r)?r:a(r)),o=n[1],s=-1===t.indexOf(i);return Object.assign(e,ue(i,o,s))},{})}},9395(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},646(e){"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}}},4594(e,t,n){"use strict";var r=n(9395);e.exports=r},5685(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},6698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6485(e,t,n){"use strict";t.A=function(e){var t=e.prefixMap,n=e.plugins;return function e(s){for(var l in s){var u=s[l];if((0,a.default)(u))s[l]=e(u);else if(Array.isArray(u)){for(var c=[],d=0,h=u.length;d<h;++d){var f=(0,i.default)(n,l,u[d],s,t);(0,o.default)(c,f||u[d])}c.length>0&&(s[l]=c)}else{var p=(0,i.default)(n,l,u,s,t);p&&(s[l]=p),s=(0,r.default)(t,l,s)}}return s}};var r=s(n(2049)),i=s(n(7971)),o=s(n(9863)),a=s(n(1099));function s(e){return e&&e.__esModule?e:{default:e}}},4217(e,t){"use strict";t.A=function(){return null}},1261(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return o.map(function(e){return t.replace(i,e+"cross-fade(")})};var r=n(5486),i=/cross-fade\(/g,o=["-webkit-",""]},8041(e,t){"use strict";t.A=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},7033(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return o.map(function(e){return t.replace(i,e+"filter(")})};var r=n(5486),i=/filter\(/g,o=["-webkit-",""]},6852(e,t,n){"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("image-set(")>-1)return o.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,i=(r=n(4014))&&r.__esModule?r:{default:r},o=["-webkit-",""]},20(e,t){"use strict";t.A=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var i=n[e],o=0,a=i.length;o<a;++o)r[i[o]]=t};var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]}},9996(e,t){"use strict";t.A=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}},5129(e,t){"use strict";t.A=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},508(e,t,n){"use strict";t.A=function(e,t,n,a){if("string"==typeof t&&s.hasOwnProperty(e)){var u=function(e,t){if((0,i.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,a=n.length;o<a;++o){var s=n[o],u=[s];for(var c in t){var d=(0,r.default)(c);if(s.indexOf(d)>-1&&"order"!==d)for(var h=t[c],f=0,p=h.length;f<p;++f)u.unshift(s.replace(d,l[h[f]]+d))}n[o]=u.join(",")}return n.join(",")}(t,a),c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return c;var d=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,o.default)(e)]=c,n["Moz"+(0,o.default)(e)]=d,u)}};var r=a(n(5721)),i=a(n(4014)),o=a(n(7091));function a(e){return e&&e.__esModule?e:{default:e}}var s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},9863(e,t){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)n(e,t[r]);else n(e,t)}},7091(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},1099(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},2049(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var o=(0,i.default)(t),a=0;a<r.length;++a){var s=r[a]+o;n[s]||(n[s]=n[t])}return n};var r,i=(r=n(7091))&&r.__esModule?r:{default:r}},7971(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}}},7918(e,t,n){"use strict";var r=n(8907).Y,i="undefined"!=typeof window?window.matchMedia:null;function o(e,t,n){var o,a=this;function s(e){a.matches=e.matches,a.media=e.media}i&&!n&&(o=i.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(s)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},5316(e,t,n){"use strict";var r=n(1042),i=n(356),o=n(4385),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e);var t,n}},356(e,t){"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},4385(e,t){"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},801(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},6041(e){function t(e){return function(t,n,r,o){var a,s=o&&function(e){return"function"==typeof e}(o.normalizer)?o.normalizer:i;n=s(n);for(var l=!1;!l;)u();function u(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[a];return null==i?void(l=!0):n.length?void(t=i):void(l=!0)}}}a=void 0,l=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},5482(e,t,n){var r=n(8809),i=n(8449),o=n(9063);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=n(2882),a.walk=i,a.stringify=o,e.exports=a},8809(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),u="*".charCodeAt(0),c="u".charCodeAt(0),d="U".charCodeAt(0),h="+".charCodeAt(0),f=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var p,m,g,v,y,b,_,w,S,x=[],C=e,E=0,k=C.charCodeAt(E),A=C.length,R=[{nodes:x}],T=0,P="",O="",I="";E<A;)if(k<=32){p=E;do{p+=1,k=C.charCodeAt(p)}while(k<=32);v=C.slice(E,p),g=x[x.length-1],k===n&&T?I=v:g&&"div"===g.type?(g.after=v,g.sourceEndIndex+=v.length):k===s||k===l||k===a&&C.charCodeAt(p+1)!==u&&(!S||S&&"function"===S.type&&"calc"!==S.value)?O=v:x.push({type:"space",sourceIndex:E,sourceEndIndex:p,value:v}),E=p}else if(k===r||k===i){p=E,v={type:"string",sourceIndex:E,quote:m=k===r?"'":'"'};do{if(y=!1,~(p=C.indexOf(m,p+1)))for(b=p;C.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(C+=m).length-1,v.unclosed=!0}while(y);v.value=C.slice(E+1,p),v.sourceEndIndex=v.unclosed?p:p+1,x.push(v),E=p+1,k=C.charCodeAt(E)}else if(k===a&&C.charCodeAt(E+1)===u)v={type:"comment",sourceIndex:E,sourceEndIndex:(p=C.indexOf("*/",E))+2},-1===p&&(v.unclosed=!0,p=C.length,v.sourceEndIndex=p),v.value=C.slice(E+2,p),x.push(v),E=p+2,k=C.charCodeAt(E);else if(k!==a&&k!==u||!S||"function"!==S.type||"calc"!==S.value)if(k===a||k===s||k===l)v=C[E],x.push({type:"div",sourceIndex:E-O.length,sourceEndIndex:E+v.length,value:v,before:O,after:""}),O="",E+=1,k=C.charCodeAt(E);else if(t===k){p=E;do{p+=1,k=C.charCodeAt(p)}while(k<=32);if(w=E,v={type:"function",sourceIndex:E-P.length,value:P,before:C.slice(w+1,p)},E=p,"url"===P&&k!==r&&k!==i){p-=1;do{if(y=!1,~(p=C.indexOf(")",p+1)))for(b=p;C.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(C+=")").length-1,v.unclosed=!0}while(y);_=p;do{_-=1,k=C.charCodeAt(_)}while(k<=32);w<_?(v.nodes=E!==_+1?[{type:"word",sourceIndex:E,sourceEndIndex:_+1,value:C.slice(E,_+1)}]:[],v.unclosed&&_+1!==p?(v.after="",v.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:p,value:C.slice(_+1,p)})):(v.after=C.slice(_+1,p),v.sourceEndIndex=p)):(v.after="",v.nodes=[]),E=p+1,v.sourceEndIndex=v.unclosed?p:E,k=C.charCodeAt(E),x.push(v)}else T+=1,v.after="",v.sourceEndIndex=E+1,x.push(v),R.push(v),x=v.nodes=[],S=v;P=""}else if(n===k&&T)E+=1,k=C.charCodeAt(E),S.after=I,S.sourceEndIndex+=I.length,I="",T-=1,R[R.length-1].sourceEndIndex=E,R.pop(),x=(S=R[T]).nodes;else{p=E;do{k===o&&(p+=1),p+=1,k=C.charCodeAt(p)}while(p<A&&!(k<=32||k===r||k===i||k===s||k===l||k===a||k===t||k===u&&S&&"function"===S.type&&"calc"===S.value||k===a&&"function"===S.type&&"calc"===S.value||k===n&&T));v=C.slice(E,p),t===k?P=v:c!==v.charCodeAt(0)&&d!==v.charCodeAt(0)||h!==v.charCodeAt(1)||!f.test(v.slice(2))?x.push({type:"word",sourceIndex:E,sourceEndIndex:p,value:v}):x.push({type:"unicode-range",sourceIndex:E,sourceEndIndex:p,value:v}),E=p}else v=C[E],x.push({type:"word",sourceIndex:E-O.length,sourceEndIndex:E+v.length,value:v}),E+=1,k=C.charCodeAt(E);for(E=R.length-1;E;E-=1)R[E].unclosed=!0,R[E].sourceEndIndex=C.length;return R[0].nodes}},9063(e){function t(e,t){var r,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes,t),"function"!==o?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,i;if(Array.isArray(e)){for(r="",i=e.length-1;~i;i-=1)r=t(e[i],n)+r;return r}return t(e,n)}e.exports=n},2882(e){var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);e.exports=function(e){var a,s,l,u=0,c=e.length;if(0===c||!function(e){var i,o=e.charCodeAt(0);if(o===n||o===t){if((i=e.charCodeAt(1))>=48&&i<=57)return!0;var a=e.charCodeAt(2);return i===r&&a>=48&&a<=57}return o===r?(i=e.charCodeAt(1))>=48&&i<=57:o>=48&&o<=57}(e))return!1;for((a=e.charCodeAt(u))!==n&&a!==t||u++;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),a===r&&s>=48&&s<=57)for(u+=2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),l=e.charCodeAt(u+2),(a===i||a===o)&&(s>=48&&s<=57||(s===n||s===t)&&l>=48&&l<=57))for(u+=s===n||s===t?3:2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;return{number:e.slice(0,u),unit:e.slice(u)}}},8449(e){e.exports=function e(t,n,r){var i,o,a,s;for(i=0,o=t.length;i<o;i+=1)a=t[i],r||(s=n(a,i,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,i,t)}},2694(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551(e,t,n){"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,F=Object.assign;function V(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var j=!1;function z(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function B(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case E:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){J(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ce=null;function Ee(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function ke(e){xe?Ce?Ce.push(e):Ce=[e]:xe=e}function Ae(){if(xe){var e=xe,t=Ce;if(Ce=xe=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Re(e,t){return e(t)}function Te(){}var Pe=!1;function Oe(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,(null!==xe||null!==Ce)&&(Te(),Ae())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ne=!1}function De(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Fe=null,Ve=!1,je=null,ze={onError:function(e){Me=!0,Fe=e}};function Be(e,t,n,r,i,o,a,s,l){Me=!1,Fe=null,De.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(o(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Je=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,xt,Ct,Et,kt=!1,At=[],Rt=null,Tt=null,Pt=null,Ot=new Map,It=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Et(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function jt(e,t,n){Vt(e)&&n.delete(t)}function zt(){kt=!1,null!==Rt&&Vt(Rt)&&(Rt=null),null!==Tt&&Vt(Tt)&&(Tt=null),null!==Pt&&Vt(Pt)&&(Pt=null),Ot.forEach(jt),It.forEach(jt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Bt(Rt,e),null!==Tt&&Bt(Tt,e),null!==Pt&&Bt(Pt,e),Ot.forEach(t),It.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Nt.shift()}var $t=_.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Kt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function qt(e,t,n,r){if(Wt){var i=Gt(e,t,n,r);if(null===i)Wr(e,t,r,Yt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Rt=Mt(Rt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ot.set(o,Mt(Ot.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Wr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Gt(e,t,n,r){if(Yt=null,null!==(e=yi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Qt,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=F({},un,{view:0,detail:0}),hn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(fn),mn=on(F({},fn,{dataTransfer:0})),gn=on(F({},dn,{relatedTarget:0})),vn=on(F({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(F({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function En(){return Cn}var kn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(kn),Rn=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Pn=on(F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(On),Nn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Dn,Fn=c&&(!Ln||Dn&&8<Dn&&11>=Dn),Vn=String.fromCharCode(32),jn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,$n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Yn(e){Vr(e,0)}function Gn(e){if(q(_i(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Qn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Qn=Zn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Gn(qn)){var t=[];Un(t,qn,e,we(e)),Oe(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(qn)}function or(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(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 pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||(r="selectionStart"in(r=gr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Cr={};function Er(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Er("animationend"),Ar=Er("animationiteration"),Rr=Er("animationstart"),Tr=Er("transitionend"),Pr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Pr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Or.length;Nr++){var Lr=Or[Nr];Ir(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(Ar,"onAnimationIteration"),Ir(Rr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Fe;Me=!1,Fe=null,Ve||(Ve=!0,je=c)}}(r,t,void 0,e),e.currentTarget=null}function Vr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}}}if(Ve)throw e=je,Ve=!1,je=null,e}function jr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Xt(t)){case 1:var i=Ut;break;case 4:i=Kt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=o,i=we(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Ar:case Rr:l=vn;break;case Tr:l=Pn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&null!=(m=Ie(p,h))&&c.push(Ur(p,m,f))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:_i(l),f=null==u?s:_i(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,yi(i)===r&&((c=new c(h,p+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,p=0,f=c=l;f;f=qr(f))p++;for(f=0,m=h;m;m=qr(m))f++;for(;0<p-f;)c=qr(c),p--;for(;0<f-p;)h=qr(h),f--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=qr(c),h=qr(h)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Wn(s))if(Jn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Un(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?_i(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Qt="value"in(Jt=i)?Jt.value:Jt.textContent,Hn=!0)),0<(v=Kr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(jn=!0,Vn);case"textInput":return(e=t.data)===Vn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&zn(e,t)?(e=en(),Zt=Qt=Jt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Vr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=Ie(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Ie(n,o))&&a.unshift(Ur(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Qr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[fi]||null}var Si=[],xi=-1;function Ci(e){return{current:e}}function Ei(e){0>xi||(e.current=Si[xi],Si[xi]=null,xi--)}function ki(e,t){xi++,Si[xi]=e.current,e.current=t}var Ai={},Ri=Ci(Ai),Ti=Ci(!1),Pi=Ai;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!=e.childContextTypes}function Ni(){Ei(Ti),Ei(Ri)}function Li(e,t,n){if(Ri.current!==Ai)throw Error(o(168));ki(Ri,t),ki(Ti,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return F({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Pi=Ri.current,ki(Ri,e),ki(Ti,Ti.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ti),Ei(Ri),ki(Ri,e)):Ei(Ti),ki(Ti,n)}var Vi=null,ji=!1,zi=!1;function Bi(e){null===Vi?Vi=[e]:Vi.push(e)}function Hi(){if(!zi&&null!==Vi){zi=!0;var e=0,t=bt;try{var n=Vi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vi=null,ji=!1}catch(t){throw null!==Vi&&(Vi=Vi.slice(e+1)),qe(Ze,Hi),t}finally{bt=t,zi=!1}}return null}var $i=[],Wi=0,Ui=null,Ki=0,qi=[],Yi=0,Gi=null,Xi=1,Ji="";function Qi(e,t){$i[Wi++]=Ki,$i[Wi++]=Ui,Ui=e,Ki=t}function Zi(e,t,n){qi[Yi++]=Xi,qi[Yi++]=Ji,qi[Yi++]=Gi,Gi=e;var r=Xi;e=Ji;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Ji=o+e}else Xi=1<<o|n<<i|r,Ji=e}function eo(e){null!==e.return&&(Qi(e,1),Zi(e,1,0))}function to(e){for(;e===Ui;)Ui=$i[--Wi],$i[Wi]=null,Ki=$i[--Wi],$i[Wi]=null;for(;e===Gi;)Gi=qi[--Yi],qi[Yi]=null,Ji=qi[--Yi],qi[Yi]=null,Xi=qi[--Yi],qi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Pu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Xi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=_.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function _o(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case S:return(t=Fu(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Lu(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case I:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),io&&Qi(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Qi(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=p(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),io&&Qi(i,m),u}function g(i,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Qi(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,g),c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),io&&Qi(i,g),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=vo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Lu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Nu(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fu(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(D(a))return g(r,o,a,l);yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Mu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=_o(!0),So=_o(!1),xo=Ci(null),Co=null,Eo=null,ko=null;function Ao(){ko=Eo=Co=null}function Ro(e){var t=xo.current;Ei(xo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){Co=e,ko=Eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===Eo){if(null===Co)throw Error(o(308));Eo=e,Co.dependencies={lanes:0,firstContext:e}}else Eo=Eo.next=e;return t}var Io=null;function No(e){null===Io?Io=[e]:Io.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(h=t,f=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(f,d,h):p))break e;d=F({},d,h);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Wo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Uo={},Ko=Ci(Uo),qo=Ci(Uo),Yo=Ci(Uo);function Go(e){if(e===Uo)throw Error(o(174));return e}function Xo(e,t){switch(ki(Yo,t),ki(qo,e),ki(Ko,Uo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(Ko),ki(Ko,t)}function Jo(){Ei(Ko),Ei(qo),Ei(Yo)}function Qo(e){Go(Yo.current);var t=Go(Ko.current),n=le(t,e.type);t!==n&&(ki(qo,e),ki(Ko,n))}function Zo(e){qo.current===e&&(Ei(Ko),Ei(qo))}var ea=Ci(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=_.ReactCurrentDispatcher,oa=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,ha=0,fa=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Za:es,e=n(r,i),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Qa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function va(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function _a(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h,sa.lanes|=d,Dl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Ca(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Oa(9,ka.bind(null,n,r,i,t),void 0,null),null===Rl)throw Error(o(349));30&aa||Ea(n,t,i)}return i}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Ta(e)}function Aa(e,t,n){return n(function(){Ra(t)&&Ta(e)})}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ta(e){var t=Do(e,1);null!==t&&tu(t,e,1,-1)}function Pa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}sa.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Da(e,t){return Na(8390656,8,e,t)}function Ma(e,t){return La(2048,8,e,t)}function Fa(e,t){return La(4,2,e,t)}function Va(e,t){return La(4,4,e,t)}function ja(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,ja.bind(null,t,e),n)}function Ba(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ua(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Ka(){return ba().memoizedState}function qa(e,t,n){var r=eu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=Lo(e,t,n,r))&&(tu(n,e,r,Zl()),Ja(n,t,r))}function Ya(e,t,n){var r=eu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,No(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Lo(e,t,i,r))&&(tu(n,e,r,i=Zl()),Ja(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Qa={readContext:Oo,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:Oo,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Na(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Pa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ua.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Rl)throw Error(o(349));30&aa||Ea(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Da(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Oa(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(io){var n=Ji;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=ha++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ma,useImperativeHandle:za,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:$a,useReducer:wa,useRef:Ia,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Wa(ba(),la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ca,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ma,useImperativeHandle:za,useInsertionEffect:Fa,useLayoutEffect:Va,useMemo:$a,useReducer:Sa,useRef:Ia,useState:function(){return Sa(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[Sa(_a)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ca,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=jo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=zo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=eu(e),o=jo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=zo(e,o,i))&&(tu(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),r=eu(e),i=jo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=zo(e,i,r))&&(tu(t,e,r,n),Bo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function as(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"==typeof o&&null!==o?o=Oo(o):(i=Ii(t)?Pi:Ri.current,o=(r=null!=(r=t.contextTypes))?Oi(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Fo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Oo(o):(o=Ii(t)?Pi:Ri.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=jo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,Wl=r),ds(0,t)},n}function ps(e,t,n){(n=jo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Ul?Ul=new Set([this]):Ul.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=jo(-1,1)).tag=2,zo(n,t,1))),n.lanes|=1),e)}var ys=_.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?So(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ou(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return $s(e,t,i)}return t.flags|=1,(e=Iu(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,$s(e,t,i);131072&e.flags&&(bs=!0)}}return ks(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Il,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Il,Ol),Ol|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Il,Ol),Ol|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Il,Ol),Ol|=r;return _s(e,t,i,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Ii(n)?Pi:Ri.current;return o=Oi(t,o),Po(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function As(e,t,n,r,i){if(Ii(n)){var o=!0;Mi(t)}else o=!1;if(Po(t,i),null===t.stateNode)Hs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Oo(u):Oi(t,u=Ii(n)?Pi:Ri.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Mo=!1;var h=t.memoizedState;a.state=h,$o(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Ti.current||Mo?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,h,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Vo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,h=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Oo(l):Oi(t,l=Ii(n)?Pi:Ri.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,r,l),Mo=!1,h=t.memoizedState,a.state=h,$o(t,r,a,i);var p=t.memoizedState;s!==d||h!==p||Ti.current||Mo?("function"==typeof f&&(rs(t,n,f,r),p=t.memoizedState),(u=Mo||os(t,n,u,r,h,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,i)}function Rs(e,t,n,r,i,o){Es(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Fi(t,n,!1),$s(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Xo(e,t.containerInfo)}function Ps(e,t,n,r,i){return po(),mo(i),t.flags|=256,_s(e,t,n,r),t.child}var Os,Is,Ns,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Du(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Lu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ls,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Du({mode:"visible",children:r.children},i,0,null),(a=Lu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ls,a);if(!(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Vs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),tu(r,e,i,-1))}return pu(),Vs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=ku.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(qi[Yi++]=Xi,qi[Yi++]=Ji,qi[Yi++]=Gi,Xi=e.id,Ji=e.overflow,Gi=t),(t=Fs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?s=Iu(r,s):(s=Lu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Iu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function zs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,n,t);else if(19===e.tag)js(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Us(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Us(t),null;case 1:case 17:return Ii(t.type)&&Ni(),Us(t),null;case 3:return r=t.stateNode,Jo(),Ei(Ti),Ei(Ri),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(ou(oo),oo=null))),Us(t),null;case 5:Zo(t);var i=Go(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Us(t),null}if(e=Go(Ko.current),ho(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[hi]=t,r[fi]=a,e=!!(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)jr(Dr[i],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":X(r,a),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},jr("invalid",r);break;case"textarea":ie(r,a),jr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&jr("scroll",r)}switch(n){case"input":K(r),Z(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[fi]=r,Os(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":jr("cancel",e),jr("close",e),i=r;break;case"iframe":case"object":case"embed":jr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)jr(Dr[i],e);i=r;break;case"source":jr("error",e),i=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=r;break;case"details":jr("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),jr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),jr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),jr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&jr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":K(e),Z(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Us(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Go(Yo.current),Go(Ko.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Us(t),null;case 13:if(Ei(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Us(t),a=!1}else null!==oo&&(ou(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Nl&&(Nl=3):pu())),null!==t.updateQueue&&(t.flags|=4),Us(t),null);case 4:return Jo(),null===e&&Hr(t.stateNode.containerInfo),Us(t),null;case 10:return Ro(t.type._context),Us(t),null;case 19:if(Ei(ea),null===(a=t.memoizedState))return Us(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Ws(a,!1);else{if(0!==Nl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Bl&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Us(t),null}else 2*Je()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Us(t),null);case 22:case 23:return cu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ol)&&(Us(t),6&t.subtreeFlags&&(t.flags|=8192)):Us(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qs(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jo(),Ei(Ti),Ei(Ri),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(Ei(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(ea),null;case 4:return Jo(),null;case 10:return Ro(t.type._context),null;case 22:case 23:return cu(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Go(Ko.current);var o,a=null;switch(n){case"input":i=G(e,i),r=G(e,r),a=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&jr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Gs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Qs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xu(e,t,n)}else n.current=null}function Zs(e,t,n){try{n()}catch(n){xu(e,t,n)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Zs(t,n,o)}i=i.next}while(i!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[gi],delete t[vi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var ul=null,cl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Gs||Qs(n,t);case 6:var r=ul,i=cl;ul=null,dl(e,t,n),cl=i,null!==(ul=r)&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(cl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(ul,n.stateNode));break;case 4:r=ul,i=cl,ul=n.stateNode.containerInfo,cl=!0,dl(e,t,n),ul=r,cl=i;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Zs(n,t,a),i=i.next}while(i!==r)}dl(e,t,n);break;case 1:if(!Gs&&(Qs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xu(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,dl(e,t,n),Gs=r):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function pl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,cl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,cl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));hl(a,s,i),ul=null,cl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){xu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),gl(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(t){xu(e,e.return,t)}try{tl(5,e,e.return)}catch(t){xu(e,e.return,t)}}break;case 1:pl(t,e),gl(e),512&r&&null!==n&&Qs(n,n.return);break;case 5:if(pl(t,e),gl(e),512&r&&null!==n&&Qs(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){xu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):b(i,d,h,c)}switch(l){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[fi]=a}catch(t){xu(e,e.return,t)}}break;case 6:if(pl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){xu(e,e.return,t)}}break;case 3:if(pl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){xu(e,e.return,t)}break;case 4:default:pl(t,e),gl(e);break;case 13:pl(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(zl=Je())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,pl(t,e),Gs=c):pl(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:tl(4,f,f.return);break;case 1:Qs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xu(r,n,e)}}break;case 5:Qs(f,f.return);break;case 22:if(null!==f.memoizedState){_l(h);continue}}null!==p?(p.return=f,Js=p):_l(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){xu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){xu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:pl(t,e),gl(e),4&r&&fl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ll(e,al(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;sl(e,al(e),a);break;default:throw Error(o(161))}}catch(t){xu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Ys;var u=Gs;if(Ys=a,(Gs=l)&&!u)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?wl(i):null!==l?(l.return=a,Js=l):wl(i);for(;null!==o;)Js=o,yl(o,t,n),o=o.sibling;Js=i,Ys=s,Gs=u}bl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):bl(e)}}function bl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Gs||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ht(h)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&rl(t)}catch(e){xu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){xu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){xu(t,i,e)}}var o=t.return;try{rl(t)}catch(e){xu(t,o,e)}break;case 5:var a=t.return;try{rl(t)}catch(e){xu(t,a,e)}}}catch(e){xu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Sl,xl=Math.ceil,Cl=_.ReactCurrentDispatcher,El=_.ReactCurrentOwner,kl=_.ReactCurrentBatchConfig,Al=0,Rl=null,Tl=null,Pl=0,Ol=0,Il=Ci(0),Nl=0,Ll=null,Dl=0,Ml=0,Fl=0,Vl=null,jl=null,zl=0,Bl=1/0,Hl=null,$l=!1,Wl=null,Ul=null,Kl=!1,ql=null,Yl=0,Gl=0,Xl=null,Jl=-1,Ql=0;function Zl(){return 6&Al?Je():-1!==Jl?Jl:Jl=Je()}function eu(e){return 1&e.mode?2&Al&&0!==Pl?Pl&-Pl:null!==go.transition?(0===Ql&&(Ql=mt()),Ql):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function tu(e,t,n,r){if(50<Gl)throw Gl=0,Xl=null,Error(o(185));vt(e,n,r),2&Al&&e===Rl||(e===Rl&&(!(2&Al)&&(Ml|=n),4===Nl&&au(e,Pl)),nu(e,r),1===n&&0===Al&&!(1&t.mode)&&(Bl=Je()+500,ji&&Hi()))}function nu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ht(e,e===Rl?Pl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){ji=!0,Bi(e)}(su.bind(null,e)):Bi(su.bind(null,e)),ai(function(){!(6&Al)&&Hi()}),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Jl=-1,Ql=0,6&Al)throw Error(o(327));var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=ht(e,e===Rl?Pl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var i=Al;Al|=2;var a=fu();for(Rl===e&&Pl===t||(Hl=null,Bl=Je()+500,du(e,t));;)try{vu();break}catch(t){hu(e,t)}Ao(),Cl.current=a,Al=i,null!==Tl?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=iu(e,i)),1===t)throw n=Ll,du(e,0),au(e,r),nu(e,Je()),n;if(6===t)au(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=mu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=Ll,du(e,0),au(e,r),nu(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_u(e,jl,Hl);break;case 3:if(au(e,r),(130023424&r)===r&&10<(t=zl+500-Je())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Zl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,jl,Hl),t);break}_u(e,jl,Hl);break;case 4:if(au(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xl(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,jl,Hl),r);break}_u(e,jl,Hl);break;default:throw Error(o(329))}}}return nu(e,Je()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Vl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=jl,jl=n,null!==t&&ou(t)),e}function ou(e){null===jl?jl=e:jl.push.apply(jl,e)}function au(e,t){for(t&=~Fl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Al)throw Error(o(327));wu();var t=ht(e,0);if(!(1&t))return nu(e,Je()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Ll,du(e,0),au(e,t),nu(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,jl,Hl),nu(e,Je()),null}function lu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Bl=Je()+500,ji&&Hi())}}function uu(e){null!==ql&&0===ql.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=kl.transition,r=bt;try{if(kl.transition=null,bt=1,e)return e()}finally{bt=r,kl.transition=n,!(6&(Al=t))&&Hi()}}function cu(){Ol=Il.current,Ei(Il)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ni();break;case 3:Jo(),Ei(Ti),Ei(Ri),ra();break;case 5:Zo(r);break;case 4:Jo();break;case 13:case 19:Ei(ea);break;case 10:Ro(r.type._context);break;case 22:case 23:cu()}n=n.return}if(Rl=e,Tl=e=Iu(e.current,null),Pl=Ol=t,Nl=0,Ll=null,Fl=Ml=Dl=0,jl=Vl=null,null!==Io){for(t=0;t<Io.length;t++)if(null!==(r=(n=Io[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Io=null}return e}function hu(e,t){for(;;){var n=Tl;try{if(Ao(),ia.current=Qa,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,ha=0,El.current=null,null===n||null===n.return){Nl=1,Ll=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Pl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&ms(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),pu();break e}u=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(us(u,l));break e}}a=u=us(u,l),4!==Nl&&(Nl=2),null===Vl?Vl=[a]:Vl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ul&&Ul.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}bu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function fu(){var e=Cl.current;return Cl.current=Qa,null===e?Qa:e}function pu(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||!(268435455&Dl)&&!(268435455&Ml)||au(Rl,Pl)}function mu(e,t){var n=Al;Al|=2;var r=fu();for(Rl===e&&Pl===t||(Hl=null,du(e,t));;)try{gu();break}catch(t){hu(e,t)}if(Ao(),Al=n,Cl.current=r,null!==Tl)throw Error(o(261));return Rl=null,Pl=0,Nl}function gu(){for(;null!==Tl;)yu(Tl)}function vu(){for(;null!==Tl&&!Ge();)yu(Tl)}function yu(e){var t=Sl(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?bu(e):Tl=t,El.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Nl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Ol)))return void(Tl=n);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function _u(e,t,n){var r=bt,i=kl.transition;try{kl.transition=null,bt=1,function(e,t,n,r){do{wu()}while(null!==ql);if(6&Al)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Rl&&(Tl=Rl=null,Pl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,Ru(tt,function(){return wu(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=kl.transition,kl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(ei=Wt,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==r&&3!==h.nodeType||(u=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++c===i&&(l=s),f===a&&++d===r&&(u=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){xu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=el,el=!1}(e,n),ml(n,e),pr(ti),Wt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Al=l,bt=s,kl.transition=a}else e.current=n;if(Kl&&(Kl=!1,ql=e,Yl=i),0===(a=e.pendingLanes)&&(Ul=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nu(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if($l)throw $l=!1,e=Wl,Wl=null,e;!!(1&Yl)&&0!==e.tag&&wu(),1&(a=e.pendingLanes)?e===Xl?Gl++:(Gl=0,Xl=e):Gl=0,Hi()}(e,t,n,r)}finally{kl.transition=i,bt=r}return null}function wu(){if(null!==ql){var e=_t(Yl),t=kl.transition,n=bt;try{if(kl.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Yl=0,6&Al)throw Error(o(331));var i=Al;for(Al|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:tl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(il(d),d===c){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:tl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var _=(s=Js).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Js=_;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){xu(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Al=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,kl.transition=t}}return!1}function Su(e,t,n){e=zo(e,t=fs(0,t=us(n,t),1),1),t=Zl(),null!==e&&(vt(e,1,t),nu(e,t))}function xu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ul||!Ul.has(r))){t=zo(t,e=ps(t,e=us(n,e),1),1),e=Zl(),null!==t&&(vt(t,1,e),nu(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Je()-zl?du(e,0):Fl|=n),nu(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Zl();null!==(e=Do(e,t))&&(vt(e,t,n),nu(e,n))}function ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Eu(e,n)}function Ru(e,t){return qe(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,n,r){return new Tu(e,t,n,r)}function Ou(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Ou(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Lu(n.children,i,a,t);case C:s=8,i|=8;break;case E:return(e=Pu(12,n,t,2|i)).elementType=E,e.lanes=a,e;case T:return(e=Pu(13,n,t,i)).elementType=T,e.lanes=a,e;case P:return(e=Pu(19,n,t,i)).elementType=P,e.lanes=a,e;case N:return Du(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case A:s=9;break e;case R:s=11;break e;case O:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Lu(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,r,i,o,a,s,l){return e=new Vu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Pu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fo(o),e}function zu(e){if(!e)return Ai;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Di(e,n,t)}return t}function Bu(e,t,n,r,i,o,a,s,l){return(e=ju(n,r,!0,e,0,o,0,s,l)).context=zu(null),n=e.current,(o=jo(r=Zl(),i=eu(n))).callback=null!=t?t:null,zo(n,o,i),e.current.lanes=i,vt(e,i,r),nu(e,r),e}function Hu(e,t,n,r){var i=t.current,o=Zl(),a=eu(i);return n=zu(n),null===t.context?t.context=n:t.pendingContext=n,(t=jo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zo(i,t,a))&&(tu(e,i,a,o),Bo(e,i,a)),a}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),po();break;case 5:Qo(t);break;case 1:Ii(t.type)&&Mi(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(xo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(ki(ea,1&ea.current),null!==(e=$s(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return $s(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,io&&1048576&t.flags&&Zi(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Oi(t,Ri.current);Po(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Fo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ou(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===O)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Vo(e,t),$o(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ps(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=$s(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return Qo(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Es(e,t),_s(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ms(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(xo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=$s(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=jo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),To(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),r=r(i=Oo(i)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ss(e,t,r,i=ns(r.type,i),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Hs(e,t),t.tag=1,Ii(r)?(e=!0,Mi(t)):e=!1,Po(t,n),as(t,r,i),ls(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Cs(e,t,n)}throw Error(o(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Qu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=$u(a);s.call(e)}}Hu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=$u(a);o.call(e)}}var a=Bu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),uu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=$u(l);s.call(e)}}var l=ju(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[pi]=l.current,Hr(8===e.nodeType?e.parentNode:e),uu(function(){Hu(t,l,n,r)}),l}(n,t,e,i,r);return $u(a)}Yu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},Yu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uu(function(){Hu(null,e,null,null)}),t[pi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),nu(t,Je()),!(6&Al)&&(Bl=Je()+500,Hi()))}break;case 13:uu(function(){var t=Do(e,1);if(null!==t){var n=Zl();tu(t,e,1,n)}}),Uu(e,1)}},St=function(e){if(13===e.tag){var t=Do(e,134217728);null!==t&&tu(t,e,134217728,Zl()),Uu(e,134217728)}},xt=function(e){if(13===e.tag){var t=eu(e),n=Do(e,t);null!==n&&tu(n,e,t,Zl()),Uu(e,t)}},Ct=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));q(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=lu,Te=uu;var Zu={usingClientEntryPoint:!1,Events:[bi,_i,wi,ke,Ae,lu]},ec={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{it=nc.inject(tc),ot=nc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(o(299));var n=!1,r="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=ju(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return uu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return Qu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return Qu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(uu(function(){Qu(null,null,e,!1,function(){e._reactRootContainer=null,e[pi]=null})}),!0)},t.unstable_batchedUpdates=lu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Qu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338(e,t,n){"use strict";var r=n(961);t.H=r.createRoot,t.c=r.hydrateRoot},961(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2869(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(8168),i=n(8587),o=n(6540),a=n(8997),s=n(9176),l=["animating","color","hidesWhenStopped","size","style"],u=e=>o.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),c=o.forwardRef((e,t)=>{var n=e.animating,a=void 0===n||n,c=e.color,f=void 0===c?"#1976D2":c,p=e.hidesWhenStopped,m=void 0===p||p,g=e.size,v=void 0===g?"small":g,y=e.style,b=(0,i.A)(e,l),_=o.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},u({stroke:f,opacity:.2}),u({stroke:f,strokeDasharray:80,strokeDashoffset:60}));return o.createElement(s.A,(0,r.A)({},b,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[d.container,y]}),o.createElement(s.A,{children:_,style:["number"==typeof v?{height:v,width:v}:h[v],d.animation,!a&&d.animationPause,!a&&m&&d.hidesWhenStopped]}))});c.displayName="ActivityIndicator";var d=a.A.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),h=a.A.create({small:{width:20,height:20},large:{width:36,height:36}});const f=c},9697(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(5725).A},3384(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(646),i=n.n(r),o=n(7162),a={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},s={},l=o.A;function u(){if(o.A){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}a.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},a.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function c(){u(),Array.isArray(s.change)&&s.change.forEach(e=>e(a))}class d{static get(e){return l&&(l=!1,u()),i()(a[e],"No dimension set for key "+e),a[e]}static set(e){e&&(o.A?i()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(a.screen=e.screen),null!=e.window&&(a.window=e.window)))}static addEventListener(e,t){return s[e]=s[e]||[],s[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(s[e])&&(s[e]=s[e].filter(e=>e!==t))}}o.A&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},728(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(2555),i=n(8168),o=n(8587),a=n(6540),s=n(3642),l=[];function u(e){return l[e-1]}var c=n(6927),d=/^data:/;class h{static has(e){var t=h._entries;return d.test(e)||Boolean(t[e])}static add(e){var t=h._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=h._entries;t[e]&&(t[e].refCount-=1),h._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=h._entries,r=Object.keys(n);r.length+1>h._maximumEntries&&(r.forEach(r=>{var i=n[r];(!t||i.lastUsedTimestamp<t.lastUsedTimestamp)&&0===i.refCount&&(e=r,t=i)}),e&&delete n[e])}}h._maximumEntries=256,h._entries={};var f=0,p={},m={abort(e){var t=p[""+e];t&&(t.onerror=null,t.onload=null,t=null,delete p[""+e])},getSize(e,t,n){var r=!1,i=setInterval(a,16),o=m.load(e,a,function(){"function"==typeof n&&n(),m.abort(o),clearInterval(i)});function a(){var e=p[""+o];if(e){var n=e.naturalHeight,a=e.naturalWidth;n&&a&&(t(a,n),r=!0)}r&&(m.abort(o),clearInterval(i))}},has:e=>h.has(e),load(e,t,n){f+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"==typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,p[""+f]=r,f},prefetch:e=>new Promise((t,n)=>{m.load(e,()=>{h.add(e),h.remove(e),t()},n)}),queryCache(e){var t={};return e.forEach(e=>{h.has(e)&&(t[e]="disk/memory")}),Promise.resolve(t)}};const g=m;var v=n(9518),y=n(8997),b=n(5243),_=n(9176),w=n(4078),S=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],x="LOADED",C="LOADING",E=0,k=/^(data:image\/svg\+xml;utf8,)(.*)/;function A(e){var t=null;if("number"==typeof e){var n=u(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var i=v.A.get();r=n.scales.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e)}var o=1!==r?"@"+r+"x":"";t=n?n.httpServerLocation+"/"+n.name+o+"."+n.type:""}else"string"==typeof e?t=e:e&&"string"==typeof e.uri&&(t=e.uri);if(t){var a=t.match(k);if(a){var s=a[1],l=a[2];return""+s+encodeURIComponent(l)}}return t}var R=a.forwardRef((e,t)=>{var n=e["aria-label"],r=e.accessibilityLabel,l=e.blurRadius,d=e.defaultSource,h=e.draggable,f=e.onError,p=e.onLayout,m=e.onLoad,v=e.onLoadEnd,k=e.onLoadStart,R=e.pointerEvents,T=e.source,I=e.style,N=(0,o.A)(e,S),L=n||r,D=a.useState(()=>{var e=A(T);return null!=e&&g.has(e)?x:"IDLE"}),M=D[0],F=D[1],V=a.useState({}),j=V[0],z=V[1],B=a.useContext(b.A),H=a.useRef(null),$=a.useRef(E++),W=a.useRef(null),U=M===x||M===C&&null==d,K=function(e,t,n,r){var i=y.A.flatten(e),o=i.filter,a=i.resizeMode,s=i.shadowOffset,l=i.tintColor;i.resizeMode&&(0,w.m)("Image.style.resizeMode","Image: style.resizeMode is deprecated. Please use props.resizeMode."),i.tintColor&&(0,w.m)("Image.style.tintColor","Image: style.tintColor is deprecated. Please use props.tintColor.");var u=[],d=null;if(o&&u.push(o),t&&u.push("blur("+t+"px)"),s){var h=(0,c.l5)(i);h&&u.push("drop-shadow("+h+")")}return(r||l)&&null!=n&&u.push("url(#tint-"+n+")"),u.length>0&&(d=u.join(" ")),[a,d,l]}(I,l,$.current,e.tintColor),q=K[0],Y=K[1],G=K[2],X=e.resizeMode||q||"cover",J=e.tintColor||G,Q=U?T:d,Z=A(Q),ee=function(e){if("number"==typeof e){var t=u(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"==typeof e)return{height:e.height,width:e.width}}(Q),te=Z?'url("'+Z+'")':null,ne=function(){if(null!=H.current&&("center"===X||"repeat"===X)){var e=H.current,t=e.naturalHeight,n=e.naturalWidth,r=j.height,i=j.width;if(t&&n&&r&&i){var o=Math.min(1,i/n,r/t);return Math.ceil(o*n)+"px "+Math.ceil(o*t)+"px"}}}(),re=Z?(0,s.A)("img",{alt:L||"",style:P.accessibilityImage$raw,draggable:h||!1,ref:H,src:Z}):null,ie=A(T);return a.useEffect(()=>{function e(){null!=W.current&&(g.abort(W.current),W.current=null)}return e(),null!=ie&&(F(C),k&&k(),W.current=g.load(ie,function(e){F(x),m&&m(e),v&&v()},function(){F("ERRORED"),f&&f({nativeEvent:{error:"Failed to load resource "+ie}}),v&&v()})),e},[ie,W,F,f,m,v,k]),a.createElement(_.A,(0,i.A)({},N,{"aria-label":L,onLayout:function(e){if("center"===X||"repeat"===X||p){var t=e.nativeEvent.layout;p&&p(e),z(t)}},pointerEvents:R,ref:t,style:[P.root,B&&P.inline,ee,I,P.undo,{boxShadow:null}]}),a.createElement(_.A,{style:[P.image,O[X],{backgroundImage:te,filter:Y},null!=ne&&{backgroundSize:ne}],suppressHydrationWarning:!0}),re,function(e,t){return e&&null!=t?a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},a.createElement("defs",null,a.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},a.createElement("feFlood",{floodColor:""+e,key:e}),a.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}(J,$.current))});R.displayName="Image";var T=R;T.getSize=function(e,t,n){g.getSize(e,t,n)},T.prefetch=function(e){return g.prefetch(e)},T.queryCache=function(e){return g.queryCache(e)};var P=y.A.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),O=y.A.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const I=T},7068(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3116);const i={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,r.A)()},removeAllListeners(){},removeListener(){}}},5470(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(8168),i=n(8587),o=n(6540),a=n(9176),s=["behavior","contentContainerStyle","keyboardVerticalOffset"];class l extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,i.A)(e,s));return o.createElement(a.A,(0,r.A)({onLayout:this.onLayout},t))}}const u=l},9518(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3384);class i{static get(){return r.A.get("window").scale}static getFontScale(){return r.A.get("window").fontScale||i.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*i.get())}static roundToNearestPixel(e){var t=i.get();return Math.round(e*t)/t}}},7862(e,t,n){"use strict";n.d(t,{A:()=>r});const r={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},4129(e,t,n){"use strict";n.d(t,{A:()=>te});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(7162),l=()=>{},u=function(){var e=!1;if(s.A)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function c(){return this.cancelBubble}function d(){return this.defaultPrevented}function h(e,t,n,r){var i=function(e){return null!=e&&(u?e:Boolean(e.capture))}(r),o=e=>{return n(((t=e).nativeEvent=t,t.persist=l,t.isDefaultPrevented=d,t.isPropagationStopped=c,t));var t};return e.addEventListener(t,o,i),function(){null!=e&&e.removeEventListener(t,o,i)}}var f,p,m="keyboard",g="keyboard",v=!1,y=new Set,b="keyboard",_="mouse",w="touch",S="contextmenu",x="mousedown",C="mousemove",E="mouseup",k="pointerdown",A="pointermove",R="scroll",T="selectionchange",P="touchcancel",O="touchmove",I="touchstart",N={passive:!0},L={capture:!0,passive:!0};function D(){null==f&&null==p||(null!=f&&(g=f,f=null),null!=p&&(m=p,p=null),F())}function M(e){var t=e.type;if("undefined"!=typeof window&&null!=window.PointerEvent){if(t===k)return void(m!==e.pointerType&&(g=e.pointerType,m=e.pointerType,F()));if(t===A)return void(g!==e.pointerType&&(g=e.pointerType,F()))}else{if(v||(t===x&&m!==_&&(g=_,m=_,F()),t===C&&g!==_&&(g=_,F())),t===I)return v=!0,e.touches&&e.touches.length>1&&(v=!1),void(m!==w&&(g=w,m=w,F()));t!==S&&t!==E&&t!==T&&t!==R&&t!==P&&t!==O||(v=!1)}}function F(){var e={activeModality:m,modality:g};y.forEach(t=>{t(e)})}s.A&&(h(window,"blur",function(){f=g,p=m,m=b,g=b,F(),v=!1},N),h(window,"focus",function(){D()},N),h(document,"keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||g!==b&&(g=b,m=b,F())},L),h(document,"visibilitychange",function(){"hidden"!==document.visibilityState&&D()},L),h(document,k,M,L),h(document,A,M,L),h(document,S,M,L),h(document,x,M,L),h(document,C,M,L),h(document,E,M,L),h(document,P,M,L),h(document,O,M,L),h(document,I,M,L),h(document,T,M,L),h(document,R,M,L));var V=n(8425),j=n(9241);function z(e,t){var n=(0,j.A)(()=>new Map),r=(0,j.A)(()=>(r,i)=>{var o=n.get(r);null!=o&&o(),null==i&&(n.delete(r),i=()=>{});var a=h(r,e,i,t);return n.set(r,a),a});return(0,V.A)(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var B={},H={passive:!0},$="react-gui:hover:lock",W="react-gui:hover:unlock";function U(e,t,n){var r=document.createEvent("CustomEvent"),i=n||B,o=i.bubbles,a=void 0===o||o,s=i.cancelable,l=void 0===s||s,u=i.detail;r.initCustomEvent(t,a,l,u),e.dispatchEvent(r)}function K(e){var t=e.pointerType;return null!=t?t:g}var q=n(6533),Y=n(8997),G=n(9176),X=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function J(e,t){var n=e.children,s=e.delayLongPress,l=e.delayPressIn,u=e.delayPressOut,c=e.disabled,d=e.onBlur,h=e.onContextMenu,f=e.onFocus,p=e.onHoverIn,m=e.onHoverOut,g=e.onKeyDown,v=e.onLongPress,y=e.onPress,b=e.onPressMove,_=e.onPressIn,w=e.onPressOut,S=e.style,x=e.tabIndex,C=e.testOnly_hovered,E=e.testOnly_pressed,k=(0,i.A)(e,X),A=Q(!0===C),R=A[0],T=A[1],P=Q(!1),O=P[0],I=P[1],N=Q(!0===E),L=N[0],D=N[1],M=(0,o.useRef)(null),F=(0,a.A)(t,M),j=(0,o.useMemo)(()=>({delayLongPress:s,delayPressStart:l,delayPressEnd:u,disabled:c,onLongPress:v,onPress:y,onPressChange:D,onPressStart:_,onPressMove:b,onPressEnd:w}),[s,l,u,c,v,y,_,b,w,D]),B=(0,q.A)(M,j),Y=B.onContextMenu,J=B.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,o=t.onHoverChange,a=t.onHoverUpdate,s=t.onHoverEnd,l=!("undefined"==typeof window||null==window.PointerEvent),u=z(l?"pointermove":"mousemove",H),c=z(l?"pointerenter":"mouseenter",H),d=z(l?"pointerleave":"mouseleave",H),h=z($,H),f=z(W,H);(0,V.A)(()=>{var t=e.current;if(null!==t){var l=function(e){null!=s&&s(e),null!=o&&o(!1),u(t,null),d(t,null)},p=function(t){var r=e.current;null!=r&&"touch"!==K(t)&&(n&&U(r,W),l(t))},m=function(e){"touch"!==K(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},g=function(e){null!=i&&i(e),null!=o&&o(!0),null!=a&&u(t,r?null:m),d(t,r?null:p)};c(t,r?null:function(t){var i=e.current;null!=i&&"touch"!==K(t)&&(n&&U(i,$),g(t),h(i,r?null:function(e){e.target!==i&&l(t)}),f(i,r?null:function(e){e.target!==i&&g(t)}))})}},[c,u,d,h,f,n,r,i,o,a,s,e])}(M,{contain:!0,disabled:c,onHoverChange:T,onHoverStart:p,onHoverEnd:m});var ee,te={hovered:R,focused:O,pressed:L},ne=o.useCallback(e=>{e.nativeEvent.target===M.current&&(I(!1),null!=d&&d(e))},[M,I,d]),re=o.useCallback(e=>{e.nativeEvent.target===M.current&&(I(!0),null!=f&&f(e))},[M,I,f]),ie=o.useCallback(e=>{null!=Y&&Y(e),null!=h&&h(e)},[h,Y]),oe=o.useCallback(e=>{null!=J&&J(e),null!=g&&g(e)},[g,J]);return ee=void 0!==x?x:c?-1:0,o.createElement(G.A,(0,r.A)({},k,B,{"aria-disabled":c,onBlur:ne,onContextMenu:ie,onFocus:re,onKeyDown:oe,ref:F,style:[c?Z.disabled:Z.active,"function"==typeof S?S(te):S],tabIndex:ee}),"function"==typeof n?n(te):n)}function Q(e){var t=(0,o.useState)(!1);return[t[0]||e,t[1]]}var Z=Y.A.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),ee=(0,o.memo)((0,o.forwardRef)(J));ee.displayName="Pressable";const te=ee},4951(e,t,n){"use strict";n.d(t,{A:()=>O});var r=n(2555),i=n(8168),o=n(8587),a=n(3384),s=n(3116),l=n(646),u=n.n(l),c=n(87),d=n(7862),h=n(6540),f=n(8997),p=n(9176),m=n(1804),g=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function v(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var y=h.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,a=e.onWheel,s=e.scrollEnabled,l=void 0===s||s,u=e.scrollEventThrottle,c=void 0===u?0:u,d=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,y=e.style,_=(0,o.A)(e,g),w=h.useRef({isScrolling:!1,scrollLastTick:0}),S=h.useRef(null),x=h.useRef(null);function C(e){return t=>{l&&e&&e(t)}}function E(e){w.current.scrollLastTick=Date.now(),n&&n(v(e))}var k=!1===d||!1===f;return h.createElement(p.A,(0,i.A)({},_,{onScroll:function(e){var t,r,i;e.stopPropagation(),e.target===x.current&&(e.persist(),null!=S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{!function(e){w.current.isScrolling=!1,n&&n(v(e))}(e)},100),w.current.isScrolling?(t=w.current.scrollLastTick,r=c,i=Date.now()-t,r>0&&i>=r&&E(e)):function(e){w.current.isScrolling=!0,E(e)}(e))},onTouchMove:C(r),onWheel:C(a),ref:(0,m.A)(x,t),style:[y,!l&&b.scrollDisabled,k&&b.hideScrollbar]}))}),b=f.A.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const _=y;var w=n(8865),S=n(8683),x=n(4594),C=n.n(x),E=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class A extends h.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=w.A.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),w.A.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),o=e||0,a=t||0;null!=i&&("function"==typeof i.scroll?i.scroll({top:a,left:o,behavior:n?"smooth":"auto"}):(i.scrollLeft=o,i.scrollTop=a))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==d.A.OS&&u()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,S.A.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=a.A.get("window").height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var o=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(o=Math.max(0,o)),this.scrollResponderScrollTo({x:0,y:o,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,o=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:o,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,s.A)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.A)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){C()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,a=e.onContentSizeChange,s=e.refreshControl,l=e.stickyHeaderIndices,c=e.pagingEnabled,d=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),f=(0,o.A)(e,E),m={};a&&(m={onLayout:this._handleContentOnLayout});var g=!n&&Array.isArray(l),v=g||c?h.Children.map(this.props.children,(e,t)=>{var n=g&&l.indexOf(t)>-1;return null!=e&&(n||c)?h.createElement(p.A,{style:[n&&T.stickyHeader,c&&T.pagingEnabledChild]},e):e}):this.props.children,y=h.createElement(p.A,(0,i.A)({},m,{children:v,collapsable:!1,ref:this._setInnerViewRef,style:[n&&T.contentContainerHorizontal,d&&T.contentContainerCenterContent,t]})),b=n?T.baseHorizontal:T.baseVertical,w=n?T.pagingEnabledHorizontal:T.pagingEnabledVertical,S=(0,r.A)((0,r.A)({},f),{},{style:[b,c&&w,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),x=_;u()(void 0!==x,"ScrollViewClass must not be undefined");var C=h.createElement(x,(0,i.A)({},S,{ref:this._setScrollNodeRef}),y);return s?h.cloneElement(s,{style:S.style},C):C}}var R={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},T=f.A.create({baseVertical:(0,r.A)((0,r.A)({},R),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.A)((0,r.A)({},R),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),P=h.forwardRef((e,t)=>h.createElement(A,(0,i.A)({},e,{forwardedRef:t})));P.displayName="ScrollView";const O=P},6610(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2901);const i=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;var n=(0,r.A)(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}}},1747(e,t,n){"use strict";n.d(t,{A:()=>l});var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach(e=>{i.forEach(t=>{r[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=r[e]})});const o=r;var a=n(6610),s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function l(e,t){var n=e;return null!=t&&o[t]||"number"!=typeof e?null!=t&&s[t]&&(n=(0,a.A)(e)):n=e+"px",n}},3748(e,t,n){"use strict";n.d(t,{_:()=>p});var r=n(7162);function i(e,t,n){if(r.A){var i=null!=t?t:document,o=i.getElementById(e);if(null==o)if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),i instanceof ShadowRoot)i.insertBefore(o,i.firstChild);else{var a=i.head;a&&a.insertBefore(o,a.firstChild)}return o.sheet}return null}var o=Array.prototype.slice;function a(e){var t,n={},r={};function i(e,t,r){var i=l(n),o=i.indexOf(t)+1,a=i[o],s=null!=a&&null!=n[a].start?n[a].start:e.cssRules.length,u=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,s);if(u){null==n[t].start&&(n[t].start=s);for(var c=o;c<i.length;c+=1){var d=i[c],h=n[d].start||0;n[d].start=h+1}}return u}null!=e&&o.call(e.cssRules).forEach((e,i)=>{var o=e.cssText;if(o.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(s)[1])}(e),n[t]={start:i,rules:[o]};else{var a=c(o);null!=a&&(r[a]=!0,n[t].rules.push(o))}});var a={getTextContent:()=>l(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,o){var a=Number(o);if(null==n[a]){var s=function(e){return'[stylesheet-group="'+e+'"]{}'}(a);n[a]={start:null,rules:[s]},null!=e&&i(e,a,s)}var l=c(t);null!=l&&null==r[l]&&(r[l]=!0,n[a].rules.push(t),null!=e&&(i(e,a,t)||n[a].rules.pop()))}};return a}var s=/["']/g;function l(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var u=/\s*([,])\s*/g;function c(e){var t=e.split("{")[0].trim();return""!==t?t.replace(u,"$1"):null}var d=new WeakMap,h=[],f=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function p(e,t){var n;if(void 0===t&&(t="react-native-stylesheet"),r.A){var o=null!=e?e.getRootNode():document;if(0===h.length)n=a(i(t)),f.forEach(e=>{n.insert(e,0)}),d.set(o,h.length),h.push(n);else{var s=d.get(o);if(null==s){var l=h[0],u=null!=l?l.getTextContent():"";n=a(i(t,o,u)),d.set(o,h.length),h.push(n)}else n=h[s]}}else 0===h.length?(n=a(i(t)),f.forEach(e=>{n.insert(e,0)}),h.push(n)):n=h[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){h.forEach(n=>{n.insert(e,t)})}}}},8997(e,t,n){"use strict";n.d(t,{A:()=>me});var r=n(2555),i=n(8587),o=n(1747),a=n(7162),s={},l=!a.A||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),u='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',c={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const d=(e,t)=>{if(!e)return s;var n={},r=function(){var r=e[i];if(null==r)return"continue";if("backgroundClip"===i)"text"===r&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if("flex"===i)-1===r?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=r;else if("font"===i)n[i]=r.replace("System",u);else if("fontFamily"===i)if(r.indexOf("System")>-1){var a=r.split(/,\s*/);a[a.indexOf("System")]=u,n[i]=a.join(",")}else n[i]="monospace"===r?"monospace,monospace":r;else if("textDecorationLine"===i)l?n.textDecorationLine=r:n.textDecoration=r;else if("writingDirection"===i)n.direction=r;else{var s=(0,o.A)(e[i],i),d=c[i];t&&"inset"===i?(null==e.insetInline&&(n.left=s,n.right=s),null==e.insetBlock&&(n.top=s,n.bottom=s)):t&&"margin"===i?(null==e.marginInline&&(n.marginLeft=s,n.marginRight=s),null==e.marginBlock&&(n.marginTop=s,n.marginBottom=s)):t&&"padding"===i?(null==e.paddingInline&&(n.paddingLeft=s,n.paddingRight=s),null==e.paddingBlock&&(n.paddingTop=s,n.paddingBottom=s)):d?d.forEach((t,r)=>{null==e[t]&&(n[t]=s)}):n[i]=s}};for(var i in e)r();return n};var h=/[A-Z]/g,f=/^ms-/,p={};function m(e){return"-"+e.toLowerCase()}var g=n(6485),v=n(4217),y=n(1261),b=n(8041),_=n(7033),w=n(6852),S=n(20),x=n(9996),C=n(5129),E=n(508),k=["Webkit"],A=["Webkit","ms"];const R={plugins:[v.A,y.A,b.A,_.A,w.A,S.A,x.A,C.A,E.A],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:A,textEmphasis:A,textEmphasisStyle:A,textEmphasisColor:A,boxDecorationBreak:A,clipPath:k,maskImage:A,maskMode:A,maskRepeat:A,maskPosition:A,maskClip:A,maskOrigin:A,maskSize:A,maskComposite:A,mask:A,maskBorderSource:A,maskBorderMode:A,maskBorderSlice:A,maskBorderWidth:A,maskBorderOutset:A,maskBorderRepeat:A,maskBorder:A,maskType:A,textDecorationStyle:k,textDecorationSkip:k,textDecorationLine:k,textDecorationColor:k,filter:k,breakAfter:k,breakBefore:k,breakInside:k,columnCount:k,columnFill:k,columnGap:k,columnRule:k,columnRuleColor:k,columnRuleStyle:k,columnRuleWidth:k,columns:k,columnSpan:k,columnWidth:k,backdropFilter:k,hyphens:k,flowInto:k,flowFrom:k,regionFragment:k,textOrientation:k,tabSize:["Moz"],fontKerning:k,textSizeAdjust:k}},T=(0,g.A)(R);var P=["animationKeyframes"],O=new Map,I={},N={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},L="borderTopLeftRadius",D="borderTopRightRadius",M="borderBottomLeftRadius",F="borderBottomRightRadius",V="borderLeftColor",j="borderLeftStyle",z="borderLeftWidth",B="borderRightColor",H="borderRightStyle",$="borderRightWidth",W="right",U="marginLeft",K="marginRight",q="paddingLeft",Y="paddingRight",G="left",X={[L]:D,[D]:L,[M]:F,[F]:M,[V]:B,[j]:H,[z]:$,[B]:V,[H]:j,[$]:z,[G]:W,[U]:K,[K]:U,[q]:Y,[Y]:q,[W]:G},J={borderStartStartRadius:L,borderStartEndRadius:D,borderEndStartRadius:M,borderEndEndRadius:F,borderInlineStartColor:V,borderInlineStartStyle:j,borderInlineStartWidth:z,borderInlineEndColor:B,borderInlineEndStyle:H,borderInlineEndWidth:$,insetInlineEnd:W,insetInlineStart:G,marginInlineStart:U,marginInlineEnd:K,paddingInlineStart:q,paddingInlineEnd:Y},Q=["clear","float","textAlign"];function Z(e){var t=T(d(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=function(e){if(e in p)return p[e];var t=e.replace(h,m);return p[e]=f.test(t)?"-"+t:t}(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ee(e,t,n){return e+"-"+function(e){for(var t,n=e.length,r=1^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}(t+n).toString(36)}function te(e){if("number"==typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r=function(e){var t=ee("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map(t=>""+t+Z(e[t])).join("")+"}",r=["-webkit-",""].map(e=>"@"+e+"keyframes "+t+n);return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push(...o)}}),[t,n]}var ne=n(3748),re=n(4336),ie=n(6927),oe=n(3176),ae=["writingDirection"],se=new WeakMap,le=(0,ne._)(),ue={shadow:!0,textShadow:!0};function ce(e){e.forEach(e=>{var t=e[0],n=e[1];null!=le&&t.forEach(e=>{le.insert(e,n)})})}var de={position:"absolute",left:0,right:0,top:0,bottom:0},he=fe({x:(0,r.A)({},de)}).x;function fe(e){return Object.keys(e).forEach(t=>{var n,a,s,l,u=e[t];null!=u&&!0!==u.$$css&&(t.indexOf("$raw")>-1?n=function(e,t){var n=function(e,t){var n,o={$$css:!0},a=[],s=e.animationKeyframes,l=(0,i.A)(e,P),u=ee("css",t,JSON.stringify(e)),c="."+u;if(null!=s){var d=te(s),h=d[0],f=d[1];n=h.join(","),a.push(...f)}var p=Z((0,r.A)((0,r.A)({},l),{},{animationName:n}));return a.push(""+c+p),o[u]=u,[o,[[a,1]]]}(e,t),o=n[0];return ce(n[1]),o}(u,t.split("$raw")[0]):(a=u,s=function(e){var t={$$css:!0},n=[];function r(e,t,r){var i,a=function(e,t){var n=(0,o.A)(e,t);return"string"!=typeof n?JSON.stringify(n||""):n}(r,t),s=t+a,l=O.get(s);if(null!=l)i=l[0],n.push(l[1]);else{i=ee("r",e,e!==t?s:a);var u=N[e]||3,c=function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var o=te(n),a=o[0],s=o[1],l=Z({animationName:a.join(",")});r.push(""+i+l,...s);break;case"placeholderTextColor":var u=Z({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+u,i+"::-moz-placeholder"+u,i+":-ms-input-placeholder"+u,i+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=Z({pointerEvents:"none"});r.push(i+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var h=Z({pointerEvents:"auto"});r.push(i+">*"+h)}var f=Z({pointerEvents:c});r.push(""+i+f);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var p=Z({scrollbarWidth:n});r.push(""+i+p);break;default:var m=Z({[t]:n});r.push(""+i+m)}return r}(i,t,r),d=[c,u];n.push(d),O.set(s,[i,d])}return i}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(null!=i){var o;if(Q.indexOf(n)>-1){var a=r(n,n,"left"),s=r(n,n,"right");"start"===i?o=[a,s]:"end"===i&&(o=[s,a])}var l=J[n];if(null!=l){var u=r(n,l,i),c=r(n,X[l],i);o=[u,c]}if("transitionProperty"===n){for(var d=Array.isArray(i)?i:[i],h=[],f=0;f<d.length;f++){var p=d[f];"string"==typeof p&&null!=J[p]&&h.push(f)}if(h.length>0){var m=[...d],g=[...d];h.forEach(e=>{var t=m[e];if("string"==typeof t){var i=J[t],a=X[i];m[e]=i,g[e]=a;var s=r(n,n,m),l=r(n,n,g);o=[s,l]}})}}null==o?o=r(n,n,i):t.$$css$localize=!0,t[n]=o}}),[t,n]}((0,ie.vk)(a,ue)),l=s[0],ce(s[1]),n=l),se.set(u,n))}),e}function pe(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,o=function(e,t){void 0===t&&(t={});var n=t,o=n.writingDirection,a=(0,i.A)(n,ae),s="rtl"===o;return oe.P.factory({transform(e){var t=se.get(e);return null!=t?(0,re.n)(t,s):(0,ie.vk)(e,(0,r.A)((0,r.A)({},ue),a))}})(e)}(e,t);return Array.isArray(o)&&null!=o[1]&&(o[1]=function(e,t){var n=e||I,r={},i={},o=function(){var e=n[a],o=a,s=e;if(!Object.prototype.hasOwnProperty.call(n,a)||null==e)return"continue";Q.indexOf(a)>-1&&("start"===e?s=t?"right":"left":"end"===e&&(s=t?"left":"right"));var l=J[a];if(null!=l&&(o=t?X[l]:l),"transitionProperty"===a){var u=Array.isArray(e)?e:[e];u.forEach((e,n)=>{if("string"==typeof e){var r=J[e];null!=r&&(u[n]=t?X[r]:r,s=u.join(" "))}})}r[o]||(i[o]=s),o===a&&(r[o]=!0)};for(var a in n)o();return d(i,!0)}(o[1],n)),o}pe.absoluteFill=he,pe.absoluteFillObject=de,pe.create=fe,pe.compose=function(e,t){return[e,t]},pe.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.flat(1/0),i={},o=0;o<r.length;o++){var a=r[o];null!=a&&"object"==typeof a&&Object.assign(i,a)}return i},pe.getSheet=function(){return{id:le.id,textContent:le.getTextContent()}},pe.hairlineWidth=1,a.A&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=pe.flatten);const me=pe},6927(e,t,n){"use strict";n.d(t,{l5:()=>l,vk:()=>f});var r=n(6610),i=n(1747),o=n(4078),a={},s={height:0,width:0},l=e=>{var t=e.shadowColor,n=e.shadowOffset,o=e.shadowOpacity,a=e.shadowRadius,l=n||s,u=l.height,c=l.width,d=(0,i.A)(c),h=(0,i.A)(u),f=(0,i.A)(a||0),p=(0,r.A)(t||"black",o);if(null!=p&&null!=d&&null!=h&&null!=f)return d+" "+h+" "+f+" "+p},u=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+(0,i.A)(n,t)+")"},c=e=>e.map(u).join(" "),d={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},h={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},f=function(e,t){void 0===t&&(t={});var n=e||a,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.m)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var u=l(n);if(null!=u&&null==r.boxShadow){var f=n.boxShadow,p=f?f+", "+u:u;r.boxShadow=p}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.m)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var m=(e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||s,a=o.height,l=o.width,u=r||0,c=(0,i.A)(l),d=(0,i.A)(a),h=(0,i.A)(u),f=(0,i.A)(t,"textShadowColor");if(f&&(0!==a||0!==l||0!==u)&&null!=c&&null!=d&&null!=h)return c+" "+d+" "+h+" "+f})(n);if(null!=m&&null==r.textShadow){var g=n.textShadow,v=g?g+", "+m:m;r.textShadow=v}}for(var y in n)if(null==h[y]&&"shadowColor"!==y&&"shadowOffset"!==y&&"shadowOpacity"!==y&&"shadowRadius"!==y&&"textShadowColor"!==y&&"textShadowOffset"!==y&&"textShadowRadius"!==y){var b=n[y],_=d[y]||y,w=b;!Object.prototype.hasOwnProperty.call(n,y)||_!==y&&null!=n[_]||("aspectRatio"===_&&"number"==typeof w?r[_]=w.toString():"fontVariant"===_?(Array.isArray(w)&&w.length>0&&(w=w.join(" ")),r[_]=w):"textAlignVertical"===_?null==n.verticalAlign&&(r.verticalAlign="center"===w?"middle":w):"transform"===_?(Array.isArray(w)&&(w=c(w)),r.transform=w):r[_]=w)}return r}},5243(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(6540).createContext)(!1)},8506(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(2555),i=n(8587),o=n(6540),a=n(3642),s=n(8697),l=n(254),u=n(2008),c=n(1804),d=n(6177),h=n(3098),f=n(8997),p=n(5243),m=n(1420),g=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],v=Object.assign({},s.Gs,s.Fh,s.DY,s.l3,s.Aw,s.k2,s.CD,s.eO,{href:!0,lang:!0,pointerEvents:!0}),y=o.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.numberOfLines,s=e.onClick,f=e.onLayout,y=e.onPress,b=e.onMoveShouldSetResponder,w=e.onMoveShouldSetResponderCapture,S=e.onResponderEnd,x=e.onResponderGrant,C=e.onResponderMove,E=e.onResponderReject,k=e.onResponderRelease,A=e.onResponderStart,R=e.onResponderTerminate,T=e.onResponderTerminationRequest,P=e.onScrollShouldSetResponder,O=e.onScrollShouldSetResponderCapture,I=e.onSelectionChangeShouldSetResponder,N=e.onSelectionChangeShouldSetResponderCapture,L=e.onStartShouldSetResponder,D=e.onStartShouldSetResponderCapture,M=e.selectable,F=(0,i.A)(e,g),V=o.useContext(p.A),j=o.useRef(null),z=(0,m.PZ)().direction;(0,u.A)(j,f),(0,h.A)(j,{onMoveShouldSetResponder:b,onMoveShouldSetResponderCapture:w,onResponderEnd:S,onResponderGrant:x,onResponderMove:C,onResponderReject:E,onResponderRelease:k,onResponderStart:A,onResponderTerminate:R,onResponderTerminationRequest:T,onScrollShouldSetResponder:P,onScrollShouldSetResponderCapture:O,onSelectionChangeShouldSetResponder:I,onSelectionChangeShouldSetResponderCapture:N,onStartShouldSetResponder:L,onStartShouldSetResponderCapture:D});var B=o.useCallback(e=>{null!=s?s(e):null!=y&&(e.stopPropagation(),y(e))},[s,y]),H=V?"span":"div",$=null!=e.lang?(0,m.il)(e.lang):null,W=e.dir||$,U=W||z,K=(e=>(0,l.A)(e,v))(F);if(K.dir=W,V||(K.dir=null!=W?W:"auto"),(s||y)&&(K.onClick=B),K.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===V?_.textHasAncestor$raw:_.text$raw,1===r&&_.textOneLine,null!=r&&r>1&&_.textMultiLine,e.style,!0===M&&_.selectable,!1===M&&_.notSelectable,y&&_.pressable],null!=e.href&&(H="a",null!=n)){var q=n.download,Y=n.rel,G=n.target;null!=q&&(K.download=q),null!=Y&&(K.rel=Y),"string"==typeof G&&(K.target="_"!==G.charAt(0)?"_"+G:G)}var X=(0,d.A)(K),J=(0,c.A)(j,X,t);K.ref=J;var Q=(0,a.A)(H,K,{writingDirection:U});return V?Q:o.createElement(p.A.Provider,{value:!0},Q)});y.displayName="Text";var b={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},_=f.A.create({text$raw:b,textHasAncestor$raw:(0,r.A)((0,r.A)({},b),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const w=y},6413(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(6533),l=n(8997),u=n(9176),c=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function d(e,t){var n=e.activeOpacity,l=e.delayPressIn,d=e.delayPressOut,f=e.delayLongPress,p=e.disabled,m=e.focusable,g=e.onLongPress,v=e.onPress,y=e.onPressIn,b=e.onPressOut,_=e.rejectResponderTermination,w=e.style,S=(0,i.A)(e,c),x=(0,o.useRef)(null),C=(0,a.A)(t,x),E=(0,o.useState)("0s"),k=E[0],A=E[1],R=(0,o.useState)(null),T=R[0],P=R[1],O=(0,o.useCallback)((e,t)=>{P(e),A(t?t/1e3+"s":"0s")},[P,A]),I=(0,o.useCallback)(e=>{O(null!=n?n:.2,e)},[n,O]),N=(0,o.useCallback)(e=>{O(null,e)},[O]),L=(0,o.useMemo)(()=>({cancelable:!_,disabled:p,delayLongPress:f,delayPressStart:l,delayPressEnd:d,onLongPress:g,onPress:v,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;I(t?0:150),null!=y&&y(e)},onPressEnd(e){N(250),null!=b&&b(e)}}),[f,l,d,p,g,v,y,b,_,I,N]),D=(0,s.A)(x,L);return o.createElement(u.A,(0,r.A)({},S,D,{accessibilityDisabled:p,focusable:!p&&!1!==m,pointerEvents:p?"box-none":void 0,ref:C,style:[h.root,!p&&h.actionable,w,null!=T&&{opacity:T},{transitionDuration:k}]}))}var h=l.A.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),f=o.memo(o.forwardRef(d));f.displayName="TouchableOpacity";const p=f},8683(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(1968),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=["ms","Moz","O","Webkit"];Object.keys(i).forEach(e=>{o.forEach(t=>{i[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=i[e]})});const a=i,s=function(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||a.hasOwnProperty(e)&&a[e]?(""+t).trim():t+"px"},l=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),o=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}};var u=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:i-=window.scrollY,left:r-=window.scrollX}},c=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=u(r),i=u(e),o=i.height,a=i.left,s=i.top,l=i.width,c=a-t.left,d=s-t.top;n(c,d,l,o,a,s)}},0)},d={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};const h={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==d[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){c(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=(0,r.A)(e),i=n.height,o=n.left,a=n.top,s=n.width;t(o,a,s,i)},0)},measureLayout(e,t,n,r){c(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},9176(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8587),i=n(6540),o=n(3642),a=n(8697),s=n(254),l=n(2008),u=n(1804),c=n(6177),d=n(3098),h=n(8997),f=n(5243),p=n(1420),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],g=Object.assign({},a.Gs,a.Fh,a.DY,a.l3,a.Aw,a.k2,a.CD,a.eO,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),v=i.forwardRef((e,t)=>{var n=e.hrefAttrs,a=e.onLayout,h=e.onMoveShouldSetResponder,v=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,_=e.onResponderGrant,w=e.onResponderMove,S=e.onResponderReject,x=e.onResponderRelease,C=e.onResponderStart,E=e.onResponderTerminate,k=e.onResponderTerminationRequest,A=e.onScrollShouldSetResponder,R=e.onScrollShouldSetResponderCapture,T=e.onSelectionChangeShouldSetResponder,P=e.onSelectionChangeShouldSetResponderCapture,O=e.onStartShouldSetResponder,I=e.onStartShouldSetResponderCapture,N=(0,r.A)(e,m),L=i.useContext(f.A),D=i.useRef(null),M=(0,p.PZ)().direction;(0,l.A)(D,a),(0,d.A)(D,{onMoveShouldSetResponder:h,onMoveShouldSetResponderCapture:v,onResponderEnd:b,onResponderGrant:_,onResponderMove:w,onResponderReject:S,onResponderRelease:x,onResponderStart:C,onResponderTerminate:E,onResponderTerminationRequest:k,onScrollShouldSetResponder:A,onScrollShouldSetResponderCapture:R,onSelectionChangeShouldSetResponder:T,onSelectionChangeShouldSetResponderCapture:P,onStartShouldSetResponder:O,onStartShouldSetResponderCapture:I});var F="div",V=null!=e.lang?(0,p.il)(e.lang):null,j=e.dir||V,z=j||M,B=(e=>(0,s.A)(e,g))(N);if(B.dir=j,B.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(F="a",null!=n)){var H=n.download,$=n.rel,W=n.target;null!=H&&(B.download=H),null!=$&&(B.rel=$),"string"==typeof W&&(B.target="_"!==W.charAt(0)?"_"+W:W)}var U=(0,c.A)(B),K=(0,u.A)(D,U,t);return B.ref=K,(0,o.A)(F,B,{writingDirection:z})});v.displayName="View";var y=h.A.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const b=v},3642(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(8285),i=n(2555),o=n(8587),a=n(8997),s=n(4078),l=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],u={},c=Object.prototype.hasOwnProperty,d=Array.isArray,h=/[A-Z]/g;function f(e){return"-"+e.toLowerCase()}function p(e){return e.replace(h,f)}function m(e){return d(e)?e.join(" "):e}var g=a.A.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});var v=n(6540),y=n(1420);const b=(e,t,n)=>{var d;e&&e.constructor===String&&(d=r.A.propsToAccessibilityComponent(t));var h=d||e,f=((e,t,n)=>{t||(t=u);var d=t,h=d["aria-activedescendant"],f=d.accessibilityActiveDescendant,v=d["aria-atomic"],y=d.accessibilityAtomic,b=d["aria-autocomplete"],_=d.accessibilityAutoComplete,w=d["aria-busy"],S=d.accessibilityBusy,x=d["aria-checked"],C=d.accessibilityChecked,E=d["aria-colcount"],k=d.accessibilityColumnCount,A=d["aria-colindex"],R=d.accessibilityColumnIndex,T=d["aria-colspan"],P=d.accessibilityColumnSpan,O=d["aria-controls"],I=d.accessibilityControls,N=d["aria-current"],L=d.accessibilityCurrent,D=d["aria-describedby"],M=d.accessibilityDescribedBy,F=d["aria-details"],V=d.accessibilityDetails,j=d["aria-disabled"],z=d.accessibilityDisabled,B=d["aria-errormessage"],H=d.accessibilityErrorMessage,$=d["aria-expanded"],W=d.accessibilityExpanded,U=d["aria-flowto"],K=d.accessibilityFlowTo,q=d["aria-haspopup"],Y=d.accessibilityHasPopup,G=d["aria-hidden"],X=d.accessibilityHidden,J=d["aria-invalid"],Q=d.accessibilityInvalid,Z=d["aria-keyshortcuts"],ee=d.accessibilityKeyShortcuts,te=d["aria-label"],ne=d.accessibilityLabel,re=d["aria-labelledby"],ie=d.accessibilityLabelledBy,oe=d["aria-level"],ae=d.accessibilityLevel,se=d["aria-live"],le=d.accessibilityLiveRegion,ue=d["aria-modal"],ce=d.accessibilityModal,de=d["aria-multiline"],he=d.accessibilityMultiline,fe=d["aria-multiselectable"],pe=d.accessibilityMultiSelectable,me=d["aria-orientation"],ge=d.accessibilityOrientation,ve=d["aria-owns"],ye=d.accessibilityOwns,be=d["aria-placeholder"],_e=d.accessibilityPlaceholder,we=d["aria-posinset"],Se=d.accessibilityPosInSet,xe=d["aria-pressed"],Ce=d.accessibilityPressed,Ee=d["aria-readonly"],ke=d.accessibilityReadOnly,Ae=d["aria-required"],Re=d.accessibilityRequired,Te=(d.role,d.accessibilityRole,d["aria-roledescription"]),Pe=d.accessibilityRoleDescription,Oe=d["aria-rowcount"],Ie=d.accessibilityRowCount,Ne=d["aria-rowindex"],Le=d.accessibilityRowIndex,De=d["aria-rowspan"],Me=d.accessibilityRowSpan,Fe=d["aria-selected"],Ve=d.accessibilitySelected,je=d["aria-setsize"],ze=d.accessibilitySetSize,Be=d["aria-sort"],He=d.accessibilitySort,$e=d["aria-valuemax"],We=d.accessibilityValueMax,Ue=d["aria-valuemin"],Ke=d.accessibilityValueMin,qe=d["aria-valuenow"],Ye=d.accessibilityValueNow,Ge=d["aria-valuetext"],Xe=d.accessibilityValueText,Je=d.dataSet,Qe=d.focusable,Ze=d.id,et=d.nativeID,tt=d.pointerEvents,nt=d.style,rt=d.tabIndex,it=d.testID,ot=(0,o.A)(d,l),at=j||z,st=r.A.propsToAriaRole(t),lt=null!=h?h:f;null!=lt&&(ot["aria-activedescendant"]=lt);var ut=null!=v?h:y;null!=ut&&(ot["aria-atomic"]=ut);var ct=null!=b?b:_;null!=ct&&(ot["aria-autocomplete"]=ct);var dt=null!=w?w:S;null!=dt&&(ot["aria-busy"]=dt);var ht=null!=x?x:C;null!=ht&&(ot["aria-checked"]=ht);var ft=null!=E?E:k;null!=ft&&(ot["aria-colcount"]=ft);var pt=null!=A?A:R;null!=pt&&(ot["aria-colindex"]=pt);var mt=null!=T?T:P;null!=mt&&(ot["aria-colspan"]=mt);var gt=null!=O?O:I;null!=gt&&(ot["aria-controls"]=m(gt));var vt=null!=N?N:L;null!=vt&&(ot["aria-current"]=vt);var yt=null!=D?D:M;null!=yt&&(ot["aria-describedby"]=m(yt));var bt=null!=F?F:V;null!=bt&&(ot["aria-details"]=bt),!0===at&&(ot["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(ot.disabled=!0));var _t=null!=B?B:H;null!=_t&&(ot["aria-errormessage"]=_t);var wt=null!=$?$:W;null!=wt&&(ot["aria-expanded"]=wt);var St=null!=U?U:K;null!=St&&(ot["aria-flowto"]=m(St));var xt=null!=q?q:Y;null!=xt&&(ot["aria-haspopup"]=xt);var Ct=null!=G?G:X;!0===Ct&&(ot["aria-hidden"]=Ct);var Et=null!=J?J:Q;null!=Et&&(ot["aria-invalid"]=Et);var kt=null!=Z?Z:ee;null!=kt&&(ot["aria-keyshortcuts"]=m(kt));var At=null!=te?te:ne;null!=At&&(ot["aria-label"]=At);var Rt=null!=re?re:ie;null!=Rt&&(ot["aria-labelledby"]=m(Rt));var Tt=null!=oe?oe:ae;null!=Tt&&(ot["aria-level"]=Tt);var Pt=null!=se?se:le;null!=Pt&&(ot["aria-live"]="none"===Pt?"off":Pt);var Ot=null!=ue?ue:ce;null!=Ot&&(ot["aria-modal"]=Ot);var It=null!=de?de:he;null!=It&&(ot["aria-multiline"]=It);var Nt=null!=fe?fe:pe;null!=Nt&&(ot["aria-multiselectable"]=Nt);var Lt=null!=me?me:ge;null!=Lt&&(ot["aria-orientation"]=Lt);var Dt=null!=ve?ve:ye;null!=Dt&&(ot["aria-owns"]=m(Dt));var Mt=null!=be?be:_e;null!=Mt&&(ot["aria-placeholder"]=Mt);var Ft=null!=we?we:Se;null!=Ft&&(ot["aria-posinset"]=Ft);var Vt=null!=xe?xe:Ce;null!=Vt&&(ot["aria-pressed"]=Vt);var jt=null!=Ee?Ee:ke;null!=jt&&(ot["aria-readonly"]=jt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.readOnly=!0));var zt=null!=Ae?Ae:Re;null!=zt&&(ot["aria-required"]=zt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.required=Re)),null!=st&&(ot.role="none"===st?"presentation":st);var Bt=null!=Te?Te:Pe;null!=Bt&&(ot["aria-roledescription"]=Bt);var Ht=null!=Oe?Oe:Ie;null!=Ht&&(ot["aria-rowcount"]=Ht);var $t=null!=Ne?Ne:Le;null!=$t&&(ot["aria-rowindex"]=$t);var Wt=null!=De?De:Me;null!=Wt&&(ot["aria-rowspan"]=Wt);var Ut=null!=Fe?Fe:Ve;null!=Ut&&(ot["aria-selected"]=Ut);var Kt=null!=je?je:ze;null!=Kt&&(ot["aria-setsize"]=Kt);var qt=null!=Be?Be:He;null!=qt&&(ot["aria-sort"]=qt);var Yt=null!=$e?$e:We;null!=Yt&&(ot["aria-valuemax"]=Yt);var Gt=null!=Ue?Ue:Ke;null!=Gt&&(ot["aria-valuemin"]=Gt);var Xt=null!=qe?qe:Ye;null!=Xt&&(ot["aria-valuenow"]=Xt);var Jt=null!=Ge?Ge:Xe;if(null!=Jt&&(ot["aria-valuetext"]=Jt),null!=Je)for(var Qt in Je)if(c.call(Je,Qt)){var Zt=p(Qt),en=Je[Qt];null!=en&&(ot["data-"+Zt]=en)}0===rt||"0"===rt||-1===rt||"-1"===rt?ot.tabIndex=rt:(!1===Qe&&(ot.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==Qe&&!0!==z||(ot.tabIndex="-1"):"button"===st||"checkbox"===st||"link"===st||"radio"===st||"textbox"===st||"switch"===st?!1!==Qe&&(ot.tabIndex="0"):!0===Qe&&(ot.tabIndex="0")),null!=tt&&(0,s.m)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tn=(0,a.A)([nt,tt&&g[tt]],(0,i.A)({writingDirection:"ltr"},n)),nn=tn[0],rn=tn[1];nn&&(ot.className=nn),rn&&(ot.style=rn);var on=null!=Ze?Ze:et;return null!=on&&(ot.id=on),null!=it&&(ot["data-testid"]=it),null==ot.type&&"button"===e&&(ot.type="button"),ot})(h,t,n),b=v.createElement(h,f);return f.dir?v.createElement(y.YO,{children:b,direction:f.dir,locale:f.lang}):b}},2901(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(1515),i=n.n(r);const o=e=>{if(null==e)return e;var t=i()(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},6864(e,t,n){"use strict";n.r(t),n.d(t,{AccessibilityInfo:()=>w,ActivityIndicator:()=>$r.A,Alert:()=>S,Animated:()=>qn,AppRegistry:()=>or,AppState:()=>hr,Appearance:()=>Xn,BackHandler:()=>pr,Button:()=>qr,CheckBox:()=>Jr,Clipboard:()=>gr,DeviceEventEmitter:()=>va.A,Dimensions:()=>vr.A,Easing:()=>En,FlatList:()=>Fe,I18nManager:()=>yr,Image:()=>Mt.A,ImageBackground:()=>ti,InteractionManager:()=>Z,Keyboard:()=>br.A,KeyboardAvoidingView:()=>ni.A,LayoutAnimation:()=>xr,Linking:()=>Er,LogBox:()=>ga,Modal:()=>Ai,NativeEventEmitter:()=>kr,NativeModules:()=>m,PanResponder:()=>Vr,Picker:()=>Ni,PixelRatio:()=>jr.A,Platform:()=>C.A,Pressable:()=>Li.A,ProgressBar:()=>Vi,RefreshControl:()=>M,SafeAreaView:()=>$i,ScrollView:()=>F.A,SectionList:()=>Ut,Share:()=>zr,StatusBar:()=>Ki,StyleSheet:()=>T.A,Switch:()=>ro,Text:()=>qt.A,TextInput:()=>go,Touchable:()=>Xo,TouchableHighlight:()=>ia,TouchableNativeFeedback:()=>la,TouchableOpacity:()=>Wr.A,TouchableWithoutFeedback:()=>ha,UIManager:()=>p.A,Vibration:()=>Hr,View:()=>R.A,VirtualizedList:()=>fa,YellowBox:()=>ma,findNodeHandle:()=>o,processColor:()=>a.A,render:()=>f,unmountComponentAtNode:()=>l,unstable_createElement:()=>r.A,useColorScheme:()=>ya,useLocaleContext:()=>ba,useWindowDimensions:()=>_a});var r=n(3642),i=n(961);const o=e=>{var t;try{t=(0,i.findDOMNode)(e)}catch(e){}return t};var a=n(2901),s=n(5338);const l=i.unmountComponentAtNode;var u=n(3748);function c(e,t){return(0,u._)(t),(0,s.c)(t,e)}function d(e,t){(0,u._)(t);var n=(0,s.H)(t);return n.render(e),n}function h(e,t,n){return(0,u._)(t),(0,i.hydrate)(e,t,n),{unmount:function(){return l(t)}}}function f(e,t,n){return(0,u._)(t),(0,i.render)(e,t,n),{unmount:function(){return l(t)}}}var p=n(8683);const m={UIManager:p.A};var g=n(7162);function v(){return new Promise((e,t)=>{e(!0)})}var y=g.A&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null,b={},_={isScreenReaderEnabled:v,isReduceMotionEnabled:function(){return new Promise((e,t)=>{e(!y||y.matches)})},fetch:v,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!y)return;var n=e=>{t(e.matches)};r=n,null!=y&&(null!=y.addEventListener?y.addEventListener("change",r):y.addListener(r)),b[t]=n}var r;return{remove:()=>_.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=b[t];if(!n||!y)return;r=n,null!=y&&(null!=y.removeEventListener?y.removeEventListener("change",r):y.removeListener(r))}var r}};const w=_,S=class{static alert(){}};var x=n(2555),C=n(7862),E=n(8168),k=n(6540),A=n(8587),R=n(9176),T=n(8997);const P=function e(t,n,r){if(void 0===r&&(r=-1),0===r)return!0;if(t===n)return!1;if("function"==typeof t&&"function"==typeof n)return!1;if("object"!=typeof t||null===t)return t!==n;if("object"!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var o=0;o<i;o++)if(e(t[o],n[o],r-1))return!0}else{for(var a in t)if(e(t[a],n[a],r-1))return!0;for(var s in n)if(void 0===t[s]&&void 0!==n[s])return!0}return!1};var O=n(646),I=n.n(O);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 D=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];const M=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=(0,A.A)(e,D);return k.createElement(R.A,t)};var F=n(4951);var V=n(1603),j=g.A&&void 0!==window.requestIdleCallback,z=j?window.requestIdleCallback:function(e,t){return setTimeout(()=>{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};j&&window.cancelIdleCallback;const B=z;var H=new V.A,$={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{J(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),q.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{q.cancelTasks(t)}}},createInteractionHandle(){J();var e=++G;return U.add(e),e},clearInteractionHandle(e){I()(!!e,"Must provide a handle to clear."),J(),U.delete(e),K.add(e)},addListener:H.addListener.bind(H),setDeadline(e){X=e}},W=new Set,U=new Set,K=new Set,q=new class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,x.A)((0,x.A)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(I()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,n=this._queueStack[t];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}({onMoreTasks:J}),Y=0,G=0,X=-1;function J(){Y||(Y=X>0?setTimeout(Q):B(Q))}function Q(){Y=0;var e=W.size;U.forEach(e=>W.add(e)),K.forEach(e=>W.delete(e));var t=W.size;if(0!==e&&0===t?H.emit($.Events.interactionComplete):0===e&&0!==t&&H.emit($.Events.interactionStart),0===t)for(var n=Date.now();q.hasTasksToProcess();)if(q.processNext(),X>0&&Date.now()-n>=X){J();break}U.clear(),K.clear()}const Z=$,ee=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=Z.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}},te=function(e,t,n){return t<e?e:t>n?n:t};class ne{constructor(e){I()(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,this._regions=0===e?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(I()(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.last<e.first)){var t=this._findRegion(e.first),n=t[0],r=t[1],i=this._findRegion(e.last),o=i[0],a=i[1];if(r!==a||n.isSpacer){var s=[],l=[],u=(0,x.A)((0,x.A)({},e),{},{isSpacer:!1});n.first<u.first&&(n.isSpacer?s.push({first:n.first,last:u.first-1,isSpacer:!0}):u.first=n.first),o.last>u.last&&(o.isSpacer?l.push({first:u.last+1,last:o.last,isSpacer:!0}):u.last=o.last);var c=[...s,u,...l],d=a-r+1;this._regions.splice(r,d,...c)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((t,n)=>t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer)}_findRegion(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];e<i.first?n=r-1:e>i.last&&(t=r+1)}I()(!1,"A region was not found containing cellIdx "+e)}}class re{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){var n;I()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var r=null!==(n=this._cellKeyToChildren.get(t))&&void 0!==n?n:new Set;r.add(e),this._cellKeyToChildren.set(t,r),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);I()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);I()(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t,n=L(this._cellKeyToChildren.values());!(t=n()).done;)for(var r,i=L(t.value);!(r=i()).done;)e(r.value)}forEachInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)t(r.value)}anyInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)if(t(r.value))return!0;return!1}size(){return this._childrenToCellKey.size}}class ie{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var oe=[],ae=10,se=null;const le=class{static addListener(e){return null===se&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),oe.push(e),{remove:()=>{oe=oe.filter(t=>e!==t)}}}static setSampleRate(e){se=e}static setMinSampleCount(e){ae=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(se||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=n.g.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(null!=e)if(this._info.sample_count<ae)this._resetData();else{var t=n.g.performance.now()-e,r=(0,x.A)((0,x.A)({},this._info),{},{total_time_spent:t});oe.forEach(e=>e(r)),this._resetData()}}}computeBlankness(e,t,r){if(!this._enabled||0===e.getItemCount(e.data)||t.last<t.first||null==this._samplesStartTime)return 0;var i=r.dOffset,o=r.offset,a=r.velocity,s=r.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(s),this._info.pixels_scrolled+=Math.round(Math.abs(i));var l=Math.round(1e3*Math.abs(a)),u=n.g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=u-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=u-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,d=t.first,h=this._getFrameMetrics(d,e);d<=t.last&&(!h||!h.inLayout);)h=this._getFrameMetrics(d,e),d++;h&&d>0&&(c=Math.min(s,Math.max(0,h.offset-o)));for(var f=0,p=t.last,m=this._getFrameMetrics(p,e);p>=t.first&&(!m||!m.inLayout);)m=this._getFrameMetrics(p,e),p--;if(m&&p<e.getItemCount(e.data)-1){var g=m.offset+m.length;f=Math.min(s,Math.max(0,o+s-g))}var v=Math.round(c+f),y=v/s;return y>0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=l,this._info.any_blank_count++,this._info.pixels_blank+=v,y>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(l<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),y}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null}};class ue extends k.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){"function"==typeof e?super.setState((t,n)=>{var r;this._inAsyncStateUpdate=!0;try{r=e(t,n)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return r},t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t),set(e){t=e}}),Object.defineProperty(this,"state",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(e){n=e}})}}function ce(e,t,n,r,i,o){if(function(e,t,n){return e>=0&&t<=n&&t>e}(n,r,i))return!0;var a=function(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}(n,r,i);return 100*(e?a/i:a/o)>=t}const de=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,r,i){var o=e.getItemCount(e.data),a=this._config,s=a.itemVisiblePercentThreshold,l=a.viewAreaCoveragePercentThreshold,u=null!=l,c=u?l:s;I()(null!=c&&null!=s!=(null!=l),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var d=[];if(0===o)return d;var h=-1,f=i||{first:0,last:o-1},p=f.first,m=f.last;if(m>=o)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:i,itemCount:o})),[];for(var g=p;g<=m;g++){var v=r(g,e);if(v){var y=v.offset-t,b=y+v.length;if(y<n&&b>0)h=g,ce(u,c,y,b,n,v.length)&&d.push(g);else if(h>=0)break}}return d}onUpdate(e,t,n,r,i,o,a){var s=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==s&&r(0,e)){var l=[];if(s&&(l=this.computeViewableItems(e,t,n,r,a)),this._viewableIndices.length!==l.length||!this._viewableIndices.every((e,t)=>e===l[t]))if(this._viewableIndices=l,this._config.minimumViewTime){var u=setTimeout(()=>{this._timers.delete(u),this._onUpdateSync(e,l,o,i)},this._config.minimumViewTime);this._timers.add(u)}else this._onUpdateSync(e,l,o,i)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,n,r){t=t.filter(e=>this._viewableIndices.includes(e));for(var i,o=this._viewableItems,a=new Map(t.map(t=>{var n=r(t,!0,e);return[n.key,n]})),s=[],l=L(a);!(i=l()).done;){var u=i.value,c=u[0],d=u[1];o.has(c)||s.push(d)}for(var h,f=L(o);!(h=f()).done;){var p=h.value,m=p[0],g=p[1];a.has(m)||s.push((0,x.A)((0,x.A)({},g),{},{isViewable:!1}))}s.length>0&&(this._viewableItems=a,n({viewableItems:Array.from(a.values()),changed:s,viewabilityConfig:this._config}))}};var he=k.createContext(null);function fe(e){var t=e.children,n=e.value,r=(0,k.useMemo)(()=>({cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild}),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return k.createElement(he.Provider,{value:r},t)}function pe(e){var t=e.cellKey,n=e.children,r=(0,k.useContext)(he),i=(0,k.useMemo)(()=>null==r?null:(0,x.A)((0,x.A)({},r),{},{cellKey:t}),[r,t]);return k.createElement(he.Provider,{value:i},n)}class me extends k.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!1})},updateProps:(e,t)=>{var n=this.props,r=n.cellKey,i=n.prevCellKey;this.props.onUpdateSeparators(["leading"===e?i:r],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,x.A)((0,x.A)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:(0,x.A)((0,x.A)({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,n,r){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?k.createElement(t,{item:n,index:r,separators:this._separators}):e?e({item:n,index:r,separators:this._separators}):void I()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,i=e.cellKey,o=e.horizontal,a=e.item,s=e.index,l=e.inversionStyle,u=e.onCellFocusCapture,c=e.onCellLayout,d=e.renderItem,h=this._renderElement(d,r,a,s),f=k.isValidElement(n)?n:n&&k.createElement(n,this.state.separatorProps),p=l?o?[ge.rowReverse,l]:[ge.columnReverse,l]:o?[ge.row,l]:l,m=t?k.createElement(t,(0,E.A)({cellKey:i,index:s,item:a,style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f):k.createElement(R.A,(0,E.A)({style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f);return k.createElement(pe,{cellKey:this.props.cellKey},m)}}var ge=T.A.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}});function ve(e,t){return"object"==typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"==typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}var ye=n(801),be=n.n(ye),_e=!1,we="";function Se(e){return null!=e&&e}function xe(e){return null!=e?e:10}function Ce(e){return null!=e?e:2}function Ee(e,t){return e*t/2}function ke(e){return null!=e?e:21}class Ae extends ue{scrollToEnd(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,a=t.onScrollToIndexFailed,s=e.animated,l=e.index,u=e.viewOffset,c=e.viewPosition;if(I()(l>=0,"scrollToIndex out of range: requested index "+l+" but minimum is 0"),I()(i(n)>=1,"scrollToIndex out of range: item length "+i(n)+" but minimum is 1"),I()(l<i(n),"scrollToIndex out of range: requested index "+l+" is out of 0 to "+(i(n)-1)),!o&&l>this._highestMeasuredFrameIndex)return I()(!!a,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void a({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:l});var d=this.__getFrameMetricsApprox(Math.floor(l),this.props),h=Math.max(0,this._getOffsetApprox(l,this.props)-(c||0)*(this._scrollMetrics.visibleLength-d.length))-(u||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:h,animated:s}:{y:h,animated:s}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,o=(0,n.getItemCount)(r),a=0;a<o;a++)if(i(r,a)===t){this.scrollToIndex((0,x.A)((0,x.A)({},e),{},{index:a}));break}}scrollToOffset(e){var t=e.animated,n=e.offset;null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var n=null!=e&&this._cellRefs[e];n&&n.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new re,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,n=e.onRefresh;return this._isNestedWithSameOrientation()?k.createElement(R.A,e):n?(I()("boolean"==typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),k.createElement(F.A,(0,E.A)({},e,{refreshControl:null==e.refreshControl?k.createElement(M,{refreshing:e.refreshing,onRefresh:n,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):k.createElement(F.A,e)},this._onCellLayout=(e,t,n)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:n,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&n===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,n),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,x.A)((0,x.A)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:be()(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,n=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:n,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,n=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var a=this._convertParentScrollMetrics({visibleLength:n,offset:i});n=a.visibleLength,r=a.contentLength,i=a.offset,o=a.dOffset}var s=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,l=o/s;s>500&&this._scrollMetrics.dt>500&&r>5*n&&!this._hasWarned.perf&&(function(){console.log(...arguments)}("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:s,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:s,dOffset:o,offset:i,timestamp:t,velocity:l,visibleLength:n,zoomScale:u},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==l&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((e,t)=>{var n=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=Ae._createRenderMask(t,n,this._getNonViewportRenderRegions(t));return n.first===e.cellsAroundViewport.first&&n.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:n,renderMask:r}})},this._createViewToken=(e,t,n)=>{var r=n.data,i=(0,n.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,n),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var n=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return n.offset+r*n.length},this.__getFrameMetricsApprox=(e,t)=>{var n=this._getFrameMetrics(e,t);if(n&&n.index===e)return n;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return I()(e>=0&&e<i(r),"Tried to get frame for out of range index "+e),I()(!o,"Should not have to estimate frames when a measurement metrics function is provided"),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var n=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;I()(e>=0&&e<i(n),"Tried to get frame for out of range index "+e);var a=r(n,e),s=this._frames[this._keyExtractor(a,e,t)];return s&&s.index===e||!o?s:o(n,e)},this._getNonViewportRenderRegions=e=>{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,n=e.getItemCount(e.data);if(t>=n||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i<this._scrollMetrics.visibleLength;o--)r--,i+=this.__getFrameMetricsApprox(o,e).length;for(var a=t,s=0,l=a+1;l<n&&s<this._scrollMetrics.visibleLength;l++)a++,s+=this.__getFrameMetricsApprox(l,e).length;return[{first:r,last:a}]},this._checkProps(e),this._fillRateHelper=new le(this._getFrameMetrics),this._updateCellsToRenderBatcher=new ee(this._updateCellsToRender,null!==(t=this.props.updateCellsBatchingPeriod)&&void 0!==t?t:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityHelper:new de(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,r=n.onViewableItemsChanged,i=n.viewabilityConfig;r&&this._viewabilityTuples.push({viewabilityHelper:new de(i),onViewableItemsChanged:r})}var o=Ae._initialRenderRegion(e);this.state={cellsAroundViewport:o,renderMask:Ae._createRenderMask(e,o)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,n=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=n>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,a=o;i&&(a=o<0?Math.min(o+t,0):Math.max(o-(n-r-t),0));var s=o-a;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var l=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=s;var u=l.scrollLeft-a;l.scrollLeft=this.props.getItemLayout?u:Math.min(u,this._totalCellLength)}else{e.target.scrollTop+=s;var c=l.scrollTop-a;l.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,n=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;I()(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),I()(ke(n)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),I()(r,'VirtualizedList: The "getItemCount" prop must be provided');var a=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||a>0&&o>=a)||this._hasWarned.initialScrollIndex||(console.warn('initialScrollIndex "'+o+'" is not valid (list has '+a+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,n){var r=e.getItemCount(e.data);I()(t.first>=0&&t.last>=t.first-1&&t.last<r,'Invalid cells around viewport "['+t.first+", "+t.last+']" was passed to VirtualizedList._createRenderMask');var i=new ne(r);if(r>0){for(var o=0,a=[t,...null!=n?n:[]];o<a.length;o++){var s=a[o];i.addCells(s)}if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var l=Ae._initialRenderRegion(e);i.addCells(l)}var u=new Set(e.stickyHeaderIndices);Ae._ensureClosestStickyHeader(e,u,i,t.first)}return i}static _initialRenderRegion(e){var t,n,r=e.getItemCount(e.data),i=Math.max(0,Math.min(r-1,Math.floor(null!==(t=e.initialScrollIndex)&&void 0!==t?t:0)));return{first:i,last:Math.min(r,i+(null!=(n=e.initialNumToRender)?n:10))-1}}static _ensureClosestStickyHeader(e,t,n,r){for(var i=e.ListHeaderComponent?1:0,o=r-1;o>=0;o--)if(t.has(o+i)){n.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var n,r=e.data,i=e.getItemCount,o=Ce(e.onEndReachedThreshold),a=this._scrollMetrics,s=a.contentLength,l=a.offset,u=a.visibleLength,c=s-u-l;if(u<=0||s<=0)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;if(e.disableVirtualization){var d=c<o*u?xe(e.maxToRenderPerBatch):0;n={first:0,last:Math.min(t.last+d,i(r)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;n=function(e,t,n,r,i,o){var a=e.getItemCount(e.data);if(0===a)return{first:0,last:-1};var s=o.offset,l=o.velocity,u=o.visibleLength,c=o.zoomScale,d=void 0===c?1:c,h=Math.max(0,s),f=h+u,p=(n-1)*u,m=l>1?"after":l<-1?"before":"none",g=Math.max(0,h-.5*p),v=Math.max(0,f+.5*p);if(i(a-1,e).offset*d<g)return{first:Math.max(0,a-1-t),last:a-1};var y=function(e,t,n,r){void 0===r&&(r=1);for(var i=t.getItemCount(t.data),o=[],a=0;a<e.length;a++)for(var s=e[a],l=0,u=i-1;l<=u;){var c=l+(u-l>>>1),d=n(c,t),h=d.offset*r,f=(d.offset+d.length)*r;if(0===c&&s<h||0!==c&&s<=h)u=c-1;else{if(!(s>f)){o[a]=c;break}l=c+1}}return o}([g,h,f,v],e,i,d),b=y[0],_=y[1],w=y[2],S=y[3];b=null==b?0:b,S=null==S?a-1:S;for(var x={first:_=null==_?Math.max(0,b):_,last:w=null==w?Math.min(S,_+t-1):w},C=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(r,x);!(_<=b&&w>=S);){var E=C>=t,k=_<=r.first||_>r.last,A=_>b&&(!E||!k),R=w>=r.last||w<r.first,T=w<S&&(!E||!R);if(E&&!A&&!T)break;!A||"after"===m&&T&&R||(k&&C++,_--),!T||"before"===m&&A&&k||(R&&C++,w++)}if(!(w>=_&&_>=0&&w<a&&_>=b&&w<=S&&_<=x.first&&w>=x.last))throw new Error("Bad window calculation "+JSON.stringify({first:_,last:w,itemCount:a,overscanFirst:b,overscanLast:S,visible:x}));return{first:_,last:w}}(e,xe(e.maxToRenderPerBatch),ke(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),I()(n.last<i(r),"computeWindowedRenderLimits() should return range in-bounds")}if(this._nestedChildLists.size()>0){var h=this._findFirstChildWithMore(n.first,n.last);n.last=null!=h?h:n.last}return n}_findFirstChildWithMore(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(null!=r&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout(()=>this.setupWebWheelHandler(),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var n=Ae._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:n,renderMask:Ae._createRenderMask(e,n)}}_pushCells(e,t,n,r,i,o){var a,s=this,l=this.props,u=l.CellRendererComponent,c=l.ItemSeparatorComponent,d=l.ListHeaderComponent,h=l.ListItemComponent,f=l.data,p=l.debug,m=l.getItem,g=l.getItemCount,v=l.getItemLayout,y=l.horizontal,b=l.renderItem,_=d?1:0,w=g(f)-1;i=Math.min(w,i);for(var S=function(){var r=m(f,x),i=s._keyExtractor(r,x,s.props);s._indicesToKeys.set(x,i),n.has(x+_)&&t.push(e.length);var l=null==v||p||s._fillRateHelper.enabled();e.push(k.createElement(me,(0,E.A)({CellRendererComponent:u,ItemSeparatorComponent:x<w?c:void 0,ListItemComponent:h,cellKey:i,horizontal:y,index:x,inversionStyle:o,item:r,key:i,prevCellKey:a,onUpdateSeparators:s._onUpdateSeparators,onCellFocusCapture:e=>s._onCellFocusCapture(i),onUnmount:s._onCellUnmount,ref:e=>{s._cellRefs[i]=e},renderItem:b},l&&{onCellLayout:s._onCellLayout}))),a=i},x=r;x<=i;x++)S()}static _constrainToItemCount(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=xe(t.maxToRenderPerBatch);return{first:te(0,n-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==Se(this.props.horizontal))}_keyExtractor(e,t,n){if(null!=n.keyExtractor)return n.keyExtractor(e,t);var r=ve(e,t);return r===String(t)&&(_e=!0,e.type&&e.type.displayName&&(we=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,n=e.ListFooterComponent,r=e.ListHeaderComponent,i=this.props,o=i.data,a=i.horizontal,s=this.props.inverted?Se(this.props.horizontal)?Re.horizontallyInverted:Re.verticallyInverted:null,l=[],u=new Set(this.props.stickyHeaderIndices),c=[];if(r){u.has(0)&&c.push(0);var d=k.isValidElement(r)?r:k.createElement(r,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-header",key:"$header"},k.createElement(R.A,{onLayout:this._onLayoutHeader,style:[s,this.props.ListHeaderComponentStyle]},d)))}var h=this.props.getItemCount(o);if(0===h&&t){var f=k.isValidElement(t)?t:k.createElement(t,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-empty",key:"$empty"},k.cloneElement(f,{onLayout:e=>{this._onLayoutEmpty(e),f.props.onLayout&&f.props.onLayout(e)},style:[s,f.props.style]})))}if(h>0){_e=!1,we="";for(var p,m=this._getSpacerKey(!a),g=this.state.renderMask.enumerateRegions(),v=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}(g,e=>e.isSpacer),y=L(g);!(p=y()).done;){var b=p.value;if(b.isSpacer){if(this.props.disableVirtualization)continue;var _=b!==v||this.props.getItemLayout?b.last:te(b.first-1,b.last,this._highestMeasuredFrameIndex),w=this.__getFrameMetricsApprox(b.first,this.props),S=this.__getFrameMetricsApprox(_,this.props),C=S.offset+S.length-w.offset;l.push(k.createElement(R.A,{key:"$spacer-"+b.first,style:{[m]:C}}))}else this._pushCells(l,c,u,b.first,b.last,s)}!this._hasWarned.keys&&_e&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",we),this._hasWarned.keys=!0)}if(n){var E=k.isValidElement(n)?n:k.createElement(n,null);l.push(k.createElement(pe,{cellKey:this._getFooterCellKey(),key:"$footer"},k.createElement(R.A,{onLayout:this._onLayoutFooter,style:[s,this.props.ListFooterComponentStyle]},E)))}var A,T=(0,x.A)((0,x.A)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(A=this.props.scrollEventThrottle,null!=A?A:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:c,style:s?[s,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<h-1;var P=k.createElement(fe,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:Se(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},k.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(T),{ref:this._captureScrollRef},l));return this.props.debug?k.createElement(R.A,{style:Re.debug},P,this._renderDebugOverlay()):P}componentDidUpdate(e){var t=this.props,n=t.data,r=t.extraData;n===e.data&&r===e.extraData||this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,n,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn("measureLayoutRelativeToContainingList threw an error",e.stack)}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],n=this.props.getItemCount(this.props.data),r=0;r<n;r++){var i=this.__getFrameMetricsApprox(r,this.props);i.inLayout&&t.push(i)}var o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,a=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),s=a.offset+a.length-o,l=this._scrollMetrics.offset,u=this._scrollMetrics.visibleLength;return k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlay]},t.map((t,n)=>k.createElement(R.A,{key:"f"+n,style:[Re.debugOverlayBase,Re.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameLast,{top:o*e,height:s*e}]}),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameVis,{top:l*e,height:u*e}]}))}_selectLength(e){return Se(this.props.horizontal)?e.width:e.height}_selectOffset(e){return Se(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,n=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,a=e.onEndReachedThreshold,s=e.initialScrollIndex,l=this._scrollMetrics,u=l.contentLength,c=l.visibleLength,d=l.offset,h=d,f=u-c-d;h<.001&&(h=0),f<.001&&(f=0);var p=h<=(null!=i?i*c:2),m=f<=(null!=a?a*c:2);o&&this.state.cellsAroundViewport.last===n(t)-1&&m&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:f})):null!=r&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?s&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:h})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=m?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,n=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,a=r.velocity,s=this.props.getItemCount(this.props.data),l=!1,u=function(e){return null!=e?e:2}(this.props.onStartReachedThreshold),c=Ce(this.props.onEndReachedThreshold);if(t>0){var d=i-this.__getFrameMetricsApprox(t,this.props).offset;l=d<0||a<-2&&d<Ee(u,o)}if(!l&&n>=0&&n<s-1){var h=this.__getFrameMetricsApprox(n,this.props).offset-(i+o);l=h<0||a>2&&h<Ee(c,o)}if(l&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach(n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,t)})}}Ae.contextType=he;var Re=T.A.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const Te=Ae;var Pe=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Oe(e,t){return e===t||!(!Pe(e)||!Pe(t))}function Ie(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Oe(e[n],t[n]))return!1;return!0}var Ne=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function Le(e){return null!=e?e:1}class De extends k.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=e=>{this._listRef=e},this._getItem=(e,t)=>{var n=Le(this.props.numColumns);if(n>1){for(var r=[],i=0;i<n;i++){var o=t*n+i;if(o<e.length){var a=e[o];r.push(a)}}return r}return e[t]},this._getItemCount=e=>{if(null!=e&&function(e){return"number"==typeof Object(e).length}(e)){var t=Le(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ve;return r>1?(I()(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map((e,n)=>i(e,t*r+n)).join(":")):i(e,t)},this._renderer=(e,t,n,r,i)=>{var o=Le(r),a=n=>e?k.createElement(e,n):t?t(n):null,s=e=>{if(o>1){var t=e.item,r=e.index;return I()(Array.isArray(t),"Expected array of items with numColumns > 1"),k.createElement(R.A,{style:[Me.row,n]},t.map((t,n)=>{var i=a({item:t,index:r*o+n,separators:e.separators});return null!=i?k.createElement(k.Fragment,{key:n},i):null}))}return a(e)};return e?{ListItemComponent:s}:{renderItem:s}},this._memoizedRenderer=function(e,t){void 0===t&&(t=Ie);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){I()(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),I()(e.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),I()(!P(e.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),I()(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,n=e.getItemCount,r=e.horizontal,i=e.columnWrapperStyle,o=e.onViewableItemsChanged,a=e.viewabilityConfigCallbackPairs,s=Le(this.props.numColumns);I()(!t&&!n,"FlatList does not support custom data formats."),s>1?I()(!r,"numColumns does not support horizontal."):I()(!i,"columnWrapperStyle not supported for single column lists"),I()(!(o&&a),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ve;t.item.forEach((n,o)=>{I()(null!=t.index,"Missing index!");var a=t.index*r+o;e.push((0,x.A)((0,x.A)({},t),{},{item:n,key:i(n,a),index:a}))})}_createOnViewableItemsChanged(e){return t=>{var n=Le(this.props.numColumns);if(e)if(n>1){var r=[],i=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(i,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(r,e)),e({viewableItems:i,changed:r})}else e(t)}}render(){var e,t=this.props,n=t.numColumns,r=t.columnWrapperStyle,i=t.removeClippedSubviews,o=t.strictMode,a=void 0!==o&&o,s=(0,A.A)(t,Ne),l=a?this._memoizedRenderer:this._renderer;return k.createElement(Te,(0,E.A)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=i,null!=e?e:"android"===C.A.OS)},l(this.props.ListItemComponent,this.props.renderItem,r,n,this.props.extraData)))}}var Me=T.A.create({row:{flexDirection:"row"}});const Fe=De;var Ve=n(5725);class je{constructor(e){"ios"===C.A.OS&&(I()(null!=e,"`new NativeEventEmitter()` requires a non-null argument."),this._nativeModule=e)}addListener(e,t,n){var r;null==(r=this._nativeModule)||r.addListener(e);var i=Ve.A.addListener(e,t,n);return{remove:()=>{var e;null!=i&&(null==(e=this._nativeModule)||e.removeListeners(1),i.remove(),i=null)}}}removeListener(e,t){var n;null==(n=this._nativeModule)||n.removeListeners(1),Ve.A.removeListener(e,t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ve.A.emit(e,...n)}removeAllListeners(e){var t;I()(null!=e,"`NativeEventEmitter.removeAllListener()` requires a non-null argument."),null==(t=this._nativeModule)||t.removeListeners(this.listenerCount(e)),Ve.A.removeAllListeners(e)}listenerCount(e){return Ve.A.listenerCount(e)}}const ze=C.A,Be=()=>!1,He=()=>!1;var $e,We=("ios"===ze.OS&&n.g.RN$Bridgeless,null),Ue=1,Ke=1,qe=new Set,Ye=!1,Ge=[];"android"===ze.OS&&null!=We&&We.queueAndExecuteBatchedOperations&&He();var Xe=null,Je=We,Qe={getValue:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.getValue,e,t)},setWaitingForIdentifier:function(e){qe.add(e),Ye=!0,Be()&&Xe&&clearTimeout(Xe)},unsetWaitingForIdentifier:function(e){qe.delete(e),0===qe.size&&(Ye=!1,Qe.disableQueue())},disableQueue:function(){I()(Je,"Native animated module is not available"),Be()?(clearImmediate(Xe),Xe=setImmediate(Qe.flushQueue)):Qe.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ye||0!==Ge.length?Ge.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){I()(Je,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.stopAnimation,e)},setAnimatedNodeValue:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){I()(Je,"Native animated module is not available"),null!=Je.restoreDefaultValues&&Qe.queueOperation(Je.restoreDefaultValues,e)},dropAnimatedNode:function(e){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){I()(Je,"Native animated module is not available"),Qe.queueOperation(Je.removeAnimatedEventFromView,e,t,n)}},Ze={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},et=(0,x.A)((0,x.A)({},Ze),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),tt={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},nt={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function rt(e){return et.hasOwnProperty(e)}function it(e){return tt.hasOwnProperty(e)}function ot(e){return nt.hasOwnProperty(e)}function at(){return Ke++}var st=!1;function lt(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||We?e.useNativeDriver||!1:(st||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),st=!0),!1)}const ut={API:Qe,isSupportedColorStyleProp:function(e){return Ze.hasOwnProperty(e)},isSupportedStyleProp:rt,isSupportedTransformProp:it,isSupportedInterpolationParam:ot,addWhitelistedStyleProp:function(e){et[e]=!0},addWhitelistedTransformProp:function(e){tt[e]=!0},addWhitelistedInterpolationParam:function(e){nt[e]=!0},validateStyles:function(e){for(var t in e)if(!rt(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(e=>{if(!it(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!ot(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return Ue++},generateNewAnimationId:at,assertNativeAnimatedModule:function(){I()(We,"Native animated module is not available")},shouldUseNativeDriver:lt,transformDataType:function(e){return"string"!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return $e||($e=new je("ios"!==ze.OS?null:We)),$e}};var ct=ut.API,dt=1;const ht=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(ut.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(dt++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),ct.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=ut.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,ct.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;ut.assertNativeAnimatedModule(),I()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var t=null!==(e=this.__nativeTag)&&void 0!==e?e:ut.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),ut.API.createAnimatedNode(t,n),this.__shouldUpdateListenersForNewNativeTag=!0}return t}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},ft=class extends ht{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__makeNative(e),ut.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),ut.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&ut.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}};var pt=n(1515),mt=n.n(pt),gt=e=>e;function vt(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return function(e){var t=e.outputRange;I()(t.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(bt,""),n=1;n<e.length;++n)I()(t===e[n].replace(bt,""),"invalid pattern "+e[0]+" and "+e[n])}(t=t.map(yt));var n=t[0].match(bt).map(()=>[]);t.forEach(e=>{e.match(bt).forEach((e,t)=>{n[t].push(+e)})});var r,i=t[0].match(bt).map((t,r)=>vt((0,x.A)((0,x.A)({},e),{},{outputRange:n[r]}))),o="string"==typeof(r=t[0])&&r.startsWith("rgb");return e=>{var n=0;return t[0].replace(bt,()=>{var t=+i[n++](e);return o&&(t=n<4?Math.round(t):Math.round(1e3*t)/1e3),String(t)})}}(e);var t=e.outputRange,n=e.inputRange,r=e.easing||gt,i="extend";void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),e=>{I()("number"==typeof e,"Cannot interpolation an input which is not a number");var a=function(e,t){var n;for(n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,n);return function(e,t,n,r,i,o,a,s){var l=e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,n[a],n[a+1],t[a],t[a+1],r,i,o)}}function yt(e){var t=mt()(e);return null===t||"number"!=typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var bt=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;class _t extends ft{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=vt(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return I()("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new _t(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(ut.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}_t.__createInterpolation=vt;const wt=_t;var St=ut.API;const xt=class extends ft{constructor(e,t){if(super(),"number"!=typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&St.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){var t,n;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=()=>St.setAnimatedNodeValue(this.__getNativeTag(),e),St.setWaitingForIdentifier(t),n(),St.unsetWaitingForIdentifier(t))}setOffset(e){this._offset=e,this.__isNative&&St.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&St.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&St.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?St.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&St.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new wt(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=Z.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,null!==n&&Z.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");var n;this._value=e,t&&(n=new Set,function e(t){"function"==typeof t.update?n.add(t):t.__getChildren().forEach(e)}(this),n.forEach(e=>e.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}};function Ct(e,t,n){var r=[],i=(e,t)=>{if(e instanceof xt)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)i(e[n],t.concat(n))};return I()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),null!=e&&r.forEach(n=>{ut.API.addAnimatedEventToView(e,t,n)}),{detach(){null!=e&&r.forEach(n=>{ut.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)})}}}class Et{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=lt(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){I()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=Ct(e,t,this._argMapping)}__detach(e,t){I()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(e,t,n)=>{if(e instanceof xt)"number"==typeof t&&e.setValue(t);else if("object"==typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach((e,t)=>{i(e,n[t],"arg"+t)}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._listeners.forEach(e=>e(...t))}}const kt=class extends ft{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getValue():r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getAnimatedValue():r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof ht?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:ut.transformDataType(r)})}}),ut.validateTransform(e),{type:"transform",transforms:e}}};var At=T.A.flatten;function Rt(e){var t=At(e),n={};for(var r in t){var i=t[r];"transform"===r&&Array.isArray(i)?n[r]=new kt(i):i instanceof ht?n[r]=i:i&&!Array.isArray(i)&&"object"==typeof i&&(n[r]=Rt(i))}return n}const Tt=class extends ft{constructor(e){super(),this._inputStyle=e,this._style=Rt(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"==typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"==typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof ht){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return ut.validateStyles(e),{type:"style",style:e}}},Pt=class extends ht{constructor(e,t){super(),e.style&&(e=(0,x.A)((0,x.A)({},e),{},{style:new Tt(e.style)})),this._props=e,this._callback=t,this.__attach()}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht?(!n.__isNative||n instanceof Tt)&&(e[t]=n.__getValue()):e[t]=n instanceof Et?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var t=this._props[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof ht&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&ut.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}};var Ot=n(8425);function It(e){return(0,x.A)((0,x.A)({},e.__getValue()),{},{collapsable:!1})}var Nt=["style"];function Lt(e){return k.forwardRef((t,n)=>{var r=function(e){var t=(0,k.useReducer)(e=>e+1,0)[1],n=(0,k.useRef)(null),r=(0,k.useMemo)(()=>new Pt(e,()=>null==n.current?void 0:n.current()),[e]);!function(e){var t=(0,k.useRef)(null),n=(0,k.useRef)(!1);(0,k.useEffect)(()=>{ut.API.flushQueue()}),(0,Ot.A)(()=>(n.current=!1,()=>{n.current=!0}),[]),(0,Ot.A)(()=>{if(e.__attach(),null!=t.current){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return()=>{n.current?e.__detach():t.current=e}},[e])}(r);var i,o,a=(0,k.useCallback)(i=>{r.setNativeView(i),n.current=()=>{t()};var o=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}(i),a=[];for(var s in e){var l=e[s];l instanceof Et&&l.__isNative&&(l.__attach(o,s),a.push([s,l]))}return()=>{n.current=null;for(var e=0,t=a;e<t.length;e++){var r=t[e],i=r[0];r[1].__detach(o,i)}}},[e,r]),s=(i=a,o=(0,k.useRef)(void 0),(0,k.useCallback)(e=>{o.current&&(o.current(),o.current=void 0),null!=e&&(o.current=i(e))},[i]));return[It(r),s]}(t),i=r[0],o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,k.useCallback)(e=>{for(var n=0,r=t;n<r.length;n++){var i=r[n];null!=i&&("function"==typeof i?i(e):i.current=e)}},[...t])}(r[1],n),a=i.passthroughAnimatedPropExplicitValues,s=i.style,l=null!=a?a:{},u=l.style,c=(0,A.A)(l,Nt),d=[s,u];return k.createElement(e,(0,E.A)({},i,c,{style:d,ref:o}))})}const Dt=Lt(k.forwardRef((e,t)=>k.createElement(Fe,(0,E.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var Mt=n(728);const Ft=Lt(Mt.A),Vt=Lt(k.forwardRef((e,t)=>k.createElement(F.A,(0,E.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var jt=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class zt extends k.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{var t;I()(null!=e.index,"Received a broken ViewToken");var n=this._subExtractor(e.index);if(!n)return null;var r=n.section.keyExtractor,i=this.props.keyExtractor||ve,o=null!=r?r(e.item,n.index):i(e.item,null!==(t=n.index)&&void 0!==t?t:0);return(0,x.A)((0,x.A)({},e),{},{index:n.index,key:o,section:n.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;null!=r&&r({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var o=i.index;if(null==o){var a=i.section;if(!0===i.header){var s=this.props.renderSectionHeader;return s?s({section:a}):null}var l=this.props.renderSectionFooter;return l?l({section:a}):null}var u=i.section.renderItem||this.props.renderItem,c=this._getSeparatorComponent(r,i,e);return I()(u,"no renderItem!"),k.createElement(Bt,{SeparatorComponent:c,LeadingSeparatorComponent:0===o?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:o,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:u,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];null!=n&&n(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];null!=n&&n(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n<e.sectionIndex;n++)t+=this.props.getItemCount(this.props.sections[n].data)+2;var r=e.viewOffset||0;if(null!=this._listRef){e.itemIndex>0&&this.props.stickySectionHeadersEnabled&&(r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length);var i=(0,x.A)((0,x.A)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,n=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,A.A)(t,jt)),r=this.props.ListHeaderComponent?1:0,i=this.props.stickySectionHeadersEnabled?[]:void 0,o=0,a=L(this.props.sections);!(e=a()).done;){var s=e.value;null!=i&&i.push(o+r),o+=2,o+=this.props.getItemCount(s.data)}var l=this._renderItem(o);return k.createElement(Te,(0,E.A)({},n,{keyExtractor:this._keyExtractor,stickyHeaderIndices:i,renderItem:l,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>o,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i<t.length;i++){var o=t[i],a=o.data,s=e.getItemCount(a);if(-1===r||r===s)return o;if(r<s)return e.getItem(a,r);r-=s+2}return null}_subExtractor(e){for(var t=e,n=this.props,r=n.getItem,i=n.getItemCount,o=n.keyExtractor,a=n.sections,s=0;s<a.length;s++){var l=a[s],u=l.data,c=l.key||String(s);if(!((t-=1)>=i(u)+1))return-1===t?{section:l,key:c+":header",index:null,header:!0,trailingSection:a[s+1]}:t===i(u)?{section:l,key:c+":footer",index:null,header:!1,trailingSection:a[s+1]}:{section:l,key:c+":"+(l.keyExtractor||o||ve)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[s-1],trailingItem:r(u,t+1),trailingSection:a[s+1]};t-=i(u)+1}}_getSeparatorComponent(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}function Bt(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,r=e.cellKey,i=e.prevCellKey,o=e.setSelfHighlightCallback,a=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,l=e.updatePropsFor,u=e.item,c=e.index,d=e.section,h=e.inverted,f=k.useState(!1),p=f[0],m=f[1],g=k.useState(!1),v=g[0],y=g[1],b=k.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),_=b[0],w=b[1],S=k.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),C=S[0],A=S[1];k.useEffect(()=>(o(r,y),s(r,A),()=>{s(r,null),o(r,null)}),[r,o,A,s]);var T={highlight:()=>{m(!0),y(!0),null!=i&&a(i,!0)},unhighlight:()=>{m(!1),y(!1),null!=i&&a(i,!1)},updateProps:(e,r)=>{"leading"===e?null!=t?w((0,x.A)((0,x.A)({},_),r)):null!=i&&l(i,(0,x.A)((0,x.A)({},_),r)):"trailing"===e&&null!=n&&A((0,x.A)((0,x.A)({},C),r))}},P=e.renderItem({item:u,index:c,section:d,separators:T}),O=null!=t&&k.createElement(t,(0,E.A)({highlighted:p},_)),I=null!=n&&k.createElement(n,(0,E.A)({highlighted:v},C));return O||I?k.createElement(R.A,null,!1===h?O:I,P,!1===h?I:O):P}const Ht=zt;var $t=["stickySectionHeadersEnabled"];class Wt extends k.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,A.A)(e,$t),r=null!=t?t:"ios"===C.A.OS;return k.createElement(Ht,(0,E.A)({},n,{stickySectionHeadersEnabled:r,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}const Ut=Wt,Kt=Lt(k.forwardRef((e,t)=>k.createElement(Ut,(0,E.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var qt=n(8506);const Yt=Lt(qt.A),Gt=Lt(R.A),Xt=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Jt=class extends ft{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new wt(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}},Qt=class extends ft{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof ht&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Zt=class extends ft{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}},en=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},tn=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new xt(e):e,this._b="number"==typeof t?new xt(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},nn=class extends ht{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=lt(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,x.A)((0,x.A)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass((0,x.A)((0,x.A)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:at(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}};var rn=1;const on=class extends ft{constructor(e){super();var t=e||{x:0,y:0};"number"==typeof t.x&&"number"==typeof t.y?(this.x=new xt(t.x),this.y=new xt(t.y)):(I()(t.x instanceof xt&&t.y instanceof xt,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(rn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}};var an=1;const sn=class{start(e,t,n,r,i){}stop(){this.__nativeId&&ut.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=an+":startAnimation";an+=1,ut.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=ut.generateNewAnimationId(),ut.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{ut.API.unsetWaitingForIdentifier(t)}}},ln=class extends sn{constructor(e){var t,n,r;super(),this._deceleration=null!==(t=e.deceleration)&&void 0!==t?t:.998,this._velocity=e.velocity,this._useNativeDriver=lt(e),this.__isInteraction=null!==(n=e.isInteraction)&&void 0!==n?n:!this._useNativeDriver,this.__iterations=null!==(r=e.iterations)&&void 0!==r?r:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function un(e){return 3.62*(e-30)+194}function cn(e){return 3*(e-8)+25}const dn=function(e,t){return{stiffness:un(e),damping:cn(t)}},hn=function(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l=r(n(t/1.7,0,20),.5,200),u=function(e,t){return.01*e+(1-e)*t}(2*(o=i)-o*o,(a=l)<=18?(s=a,7e-4*Math.pow(s,3)-.031*Math.pow(s,2)+.64*s+1.28):a>18&&a<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(a):function(e){return 45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(a));return{stiffness:un(l),damping:cn(u)}};class fn extends sn{constructor(e){var t,n,r,i,o,a,s,l,u,c,d;if(super(),this._overshootClamping=null!==(t=e.overshootClamping)&&void 0!==t&&t,this._restDisplacementThreshold=null!==(n=e.restDisplacementThreshold)&&void 0!==n?n:.001,this._restSpeedThreshold=null!==(r=e.restSpeedThreshold)&&void 0!==r?r:.001,this._initialVelocity=null!==(i=e.velocity)&&void 0!==i?i:0,this._lastVelocity=null!==(o=e.velocity)&&void 0!==o?o:0,this._toValue=e.toValue,this._delay=null!==(a=e.delay)&&void 0!==a?a:0,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(s=e.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(l=e.iterations)&&void 0!==l?l:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)I()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=null!==(u=e.stiffness)&&void 0!==u?u:100,this._damping=null!==(c=e.damping)&&void 0!==c?c:10,this._mass=null!==(d=e.mass)&&void 0!==d?d:1;else if(void 0!==e.bounciness||void 0!==e.speed){var h,f;I()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var p=hn(null!==(h=e.bounciness)&&void 0!==h?h:8,null!==(f=e.speed)&&void 0!==f?f:12);this._stiffness=p.stiffness,this._damping=p.damping,this._mass=1}else{var m,g,v=dn(null!==(m=e.tension)&&void 0!==m?m:40,null!==(g=e.friction)&&void 0!==g?g:7);this._stiffness=v.stiffness,this._damping=v.damping,this._mass=1}I()(this._stiffness>0,"Stiffness value must be greater than 0"),I()(this._damping>0,"Damping value must be greater than 0"),I()(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(e=this._initialVelocity)&&void 0!==e?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=t,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,r instanceof fn){var o=r.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var a=()=>{this._useNativeDriver?this.__startNativeAnimation(i):this.onUpdate()};this._delay?this._timeout=setTimeout(a,this._delay):a()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,o=-this._initialVelocity,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),l=s*Math.sqrt(1-a*a),u=this._toValue-this._startPosition,c=0,d=0,h=this._frameTime;if(a<1){var f=Math.exp(-a*s*h);c=this._toValue-f*((o+a*s*u)/l*Math.sin(l*h)+u*Math.cos(l*h)),d=a*s*f*(Math.sin(l*h)*(o+a*s*u)/l+u*Math.cos(l*h))-f*(Math.cos(l*h)*(o+a*s*u)-l*u*Math.sin(l*h))}else{var p=Math.exp(-s*h);c=this._toValue-p*(u+(o+s*u)*h),d=p*(o*(h*s-1)+h*u*(s*s))}if(this._lastTime=e,this._lastPosition=c,this._lastVelocity=d,this._onUpdate(c),this.__active){var m=!1;this._overshootClamping&&0!==this._stiffness&&(m=this._startPosition<this._toValue?c>this._toValue:c<this._toValue);var g=Math.abs(d)<=this._restSpeedThreshold,v=!0;if(0!==this._stiffness&&(v=Math.abs(this._toValue-c)<=this._restDisplacementThreshold),m||g&&v)return 0!==this._stiffness&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),void this.__debouncedOnEnd({finished:!0});this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}const pn=fn;var mn,gn=.1,vn="function"==typeof Float32Array;function yn(e,t){return 1-3*t+3*e}function bn(e,t){return 3*t-6*e}function _n(e){return 3*e}function wn(e,t,n){return((yn(t,n)*e+bn(t,n))*e+_n(t))*e}function Sn(e,t,n){return 3*yn(t,n)*e*e+2*bn(t,n)*e+_n(t)}function xn(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var i=vn?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var o=0;o<11;++o)i[o]=wn(o*gn,e,n);return function(o){return e===t&&n===r?o:0===o?0:1===o?1:wn(function(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=gn;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*gn,s=Sn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=t,o=0;o<4;++o){var a=Sn(i,n,r);if(0===a)return i;i-=(wn(i,n,r)-e)/a}return i}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0,l=t,u=n;do{(o=wn(a=l+(u-l)/2,r,i)-e)>0?u=a:l=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+gn,e,n)}(o),t,r)}}class Cn{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return mn||(mn=Cn.bezier(.42,0,1,1)),mn(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return xn(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}const En=Cn;var kn;const An=class extends sn{constructor(e){var t,n,r,i,o;super(),this._toValue=e.toValue,this._easing=null!==(t=e.easing)&&void 0!==t?t:(kn||(kn=En.inOut(En.ease)),kn),this._duration=null!==(n=e.duration)&&void 0!==n?n:500,this._delay=null!==(r=e.delay)&&void 0!==r?r:0,this.__iterations=null!==(i=e.iterations)&&void 0!==i?i:1,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(o=e.isInteraction)&&void 0!==o?o:!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=[],t=Math.round(this._duration/(1e3/60)),n=0;n<t;n++)e.push(this._easing(n/t));return e.push(this._easing(1)),{type:"frames",frames:e,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var o=()=>{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};var Rn=ut.API,Tn={r:0,g:0,b:0,a:1},Pn=1;function On(e){if(null==e)return null;if(In(e))return e;var t=mt()(e);if(null==t)return null;if("object"==typeof t){if(null!=t)return t}else if("number"==typeof t)return{r:(4278190080&t)>>>24,g:(16711680&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255};return null}function In(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}class Nn extends ft{constructor(e,t){super(),this._listeners={};var n=null!=e?e:Tn;if(function(e){return e&&e.r instanceof xt&&e.g instanceof xt&&e.b instanceof xt&&e.a instanceof xt}(n)){var r=n;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var i,o=null!==(i=On(n))&&void 0!==i?i:Tn,a=Tn;In(o)?a=o:this.nativeColor=o,this.r=new xt(a.r),this.g=new xt(a.g),this.b=new xt(a.b),this.a=new xt(a.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();Rn.setWaitingForIdentifier(r.toString())}var i=null!==(t=On(e))&&void 0!==t?t:Tn;if(In(i)){var o=i;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)}else{var a=i;this.nativeColor!==a&&(this.nativeColor=a,n=!0)}if(this.__isNative){var s=this.__getNativeTag();n&&Rn.updateAnimatedNodeConfig(s,this.__getNativeConfig()),Rn.unsetWaitingForIdentifier(s.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(Pn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}var Ln=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},Dn=function(e,t,n){if(e instanceof on){var r=(0,x.A)({},t),i=(0,x.A)({},t);for(var o in t){var a=t[o],s=a.x,l=a.y;void 0!==s&&void 0!==l&&(r[o]=s,i[o]=l)}var u=n(e.x,r),c=n(e.y,i);return Vn([u,c],{stopTogether:!1})}if(e instanceof Nn){var d=(0,x.A)({},t),h=(0,x.A)({},t),f=(0,x.A)({},t),p=(0,x.A)({},t);for(var m in t){var g=t[m],v=g.r,y=g.g,b=g.b,_=g.a;void 0!==v&&void 0!==y&&void 0!==b&&void 0!==_&&(d[m]=v,h[m]=y,f[m]=b,p[m]=_)}var w=n(e.r,d),S=n(e.g,h),C=n(e.b,f),E=n(e.a,p);return Vn([w,S,C,E],{stopTogether:!1})}return null},Mn=function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,An,i,n)):r.animate(new An(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Fn=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)})},stop:function(){t<e.length&&e[t].stop()},reset:function(){e.forEach((e,n)=>{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},Vn=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){n!==e.length?e.forEach((a,s)=>{var l=function(a){if(r[s]=!0,++n===e.length)return n=0,void(t&&t(a));!a.finished&&i&&o.stop()};a?a.start(l):l({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach((e,t)=>{!r[t]&&e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},jn=function(e){return Mn(new xt(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})};const zn={Value:xt,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),r.animate(new ln(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:Mn,spring:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,pn,i,n)):r.animate(new pn(i),n)};return Dn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,x.A)((0,x.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new Xt(e,t)},subtract:function(e,t){return new tn(e,t)},divide:function(e,t){return new Qt(e,t)},multiply:function(e,t){return new en(e,t)},modulo:function(e,t){return new Zt(e,t)},diffClamp:function(e,t,n){return new Jt(e,t,n)},delay:jn,sequence:Fn,parallel:Vn,stagger:function(e,t){return Vn(t.map((t,n)=>Fn([jn(e*n),t])))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,a=void 0===o||o,s=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),s||l===i||!1===r.finished?t&&t(r):(l++,a&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){s=!0,e.stop()},reset:function(){l=0,s=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new Et(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:Lt,attachNativeEvent:Ct,forkEvent:function(e,t){return e?e instanceof Et?(e.__addListener(t),e):function(){"function"==typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof Et&&e.__removeListener(t)},Event:Et};var Bn=!1;function Hn(e){return t=>{var n=null==t?t:function(){if(Bn)console.warn("Ignoring recursive animation callback when running mock animations");else{Bn=!0;try{t(...arguments)}finally{Bn=!1}}};e(n)}}var $n={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},Wn=e=>(0,x.A)((0,x.A)({},$n),{},{start:Hn(t=>{e.forEach(e=>e.start()),null==t||t({finished:!0})})});const Un={Value:xt,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function(e,t){return $n},timing:function(e,t){var n=e;return(0,x.A)((0,x.A)({},$n),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},spring:function(e,t){var n=e;return(0,x.A)((0,x.A)({},$n),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},add:zn.add,subtract:zn.subtract,divide:zn.divide,multiply:zn.multiply,modulo:zn.modulo,diffClamp:zn.diffClamp,delay:function(e){return $n},sequence:function(e){return Wn(e)},parallel:function(e,t){return Wn(e)},stagger:function(e,t){return Wn(t)},loop:function(e,t){return(void 0===t?{}:t).iterations,$n},event:zn.event,createAnimatedComponent:Lt,attachNativeEvent:Ct,forkEvent:zn.forkEvent,unforkEvent:zn.unforkEvent,Event:Et};var Kn=C.A.isTesting?Un:zn;const qn=(0,x.A)({FlatList:Dt,Image:Ft,ScrollView:Vt,SectionList:Kt,Text:Yt,View:Gt},Kn);var Yn=g.A&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,Gn=new WeakMap;const Xn={getColorScheme:()=>Yn&&Yn.matches?"dark":"light",addChangeListener(e){var t=Gn.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?"dark":"light"})},Gn.set(e,t)),Yn&&Yn.addListener(t),{remove:function(){var t=Gn.get(e);Yn&&t&&Yn.removeListener(t),Gn.delete(e)}}}};var Jn=k.createContext(null),Qn=k.forwardRef((e,t)=>{var n=e.children,r=e.WrapperComponent,i=k.createElement(R.A,{children:n,key:1,style:tr.appContainer});return r&&(i=k.createElement(r,null,i)),k.createElement(Jn.Provider,{value:e.rootTag},k.createElement(R.A,{ref:t,style:tr.appContainer},i))});Qn.displayName="AppContainer";const Zn=Qn;var er,tr=T.A.create({appContainer:{flex:1,pointerEvents:"box-none"}}),nr={},rr={},ir=e=>e();class or{static getAppKeys(){return Object.keys(rr)}static getApplication(e,t){return I()(rr[e]&&rr[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),rr[e].getApplication(t)}static registerComponent(e,t){return rr[e]={getApplication:e=>{return n=ir(t),r=e?e.initialProps:nr,i=er&&er(e),{element:k.createElement(Zn,{WrapperComponent:i,rootTag:{}},k.createElement(n,r)),getStyleElement:e=>{var t=T.A.getSheet();return k.createElement("style",(0,E.A)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:e=>{return n=ir(t),r=er&&er(e),i=e.callback,a=(o={hydrate:e.hydrate||!1,initialProps:e.initialProps||nr,mode:e.mode||"concurrent",rootTag:e.rootTag}).initialProps,s=o.mode,l=o.rootTag,u=o.hydrate?"concurrent"===s?c:h:"concurrent"===s?d:f,I()(l,"Expect to have a valid rootTag, instead got ",l),u(k.createElement(Zn,{WrapperComponent:r,ref:i,rootTag:l},k.createElement(n,a)),l);var n,r,i,o,a,s,l,u}},e}static registerConfig(e){e.forEach(e=>{var t=e.appKey,n=e.component,r=e.run;r?or.registerRunnable(t,r):(I()(n,"No component provider passed in"),or.registerComponent(t,n))})}static registerRunnable(e,t){return rr[e]={run:t},e}static runApplication(e,t){return I()(rr[e]&&rr[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),rr[e].run(t)}static setComponentProviderInstrumentationHook(e){ir=e}static setWrapperComponentProvider(e){er=e}static unmountApplicationComponentAtRootTag(e){l(e)}}var ar=g.A&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),sr=["change","memoryWarning"],lr=ar?"webkitvisibilitychange":"visibilitychange",ur=ar?"webkitVisibilityState":"visibilityState",cr="active",dr=null;class hr{static get currentState(){if(!hr.isAvailable)return cr;switch(document[ur]){case"hidden":case"prerender":case"unloaded":return"background";default:return cr}}static addEventListener(e,t){if(hr.isAvailable&&(I()(-1!==sr.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return dr||(dr=new V.A,document.addEventListener(lr,()=>{dr&&dr.emit("change",hr.currentState)},!1)),dr.addListener(e,t)}}function fr(){}hr.isAvailable=g.A&&!!document[ur];const pr={exitApp:fr,addEventListener:()=>(console.error("BackHandler is not supported on web and should not be used."),{remove:fr}),removeEventListener:fr};var mr;class gr{static isAvailable(){return void 0===mr&&(mr="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),mr}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(r)}return t}}var vr=n(3384);const yr={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})};var br=n(7068);function _r(e,t){C.A.isTesting||p.A.configureNextLayoutAnimation(e,null!=t?t:function(){},function(){})}function wr(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var Sr={easeInEaseOut:wr(300,"easeInEaseOut","opacity"),linear:wr(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const xr={configureNext:_r,create:wr,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:Sr,easeInEaseOut:_r.bind(null,Sr.easeInEaseOut),linear:_r.bind(null,Sr.linear),spring:_r.bind(null,Sr.spring)};var Cr=g.A?window.location.href:"";const Er=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this._eventCallbacks[e];null!=i&&Array.isArray(i)&&i.map(e=>{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(Cr)}openURL(e,t){1===arguments.length&&(t="_blank");try{return((e,t)=>{if(g.A){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}})(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){I()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),I()(e,"Invalid URL: cannot be empty")}},kr=je;var Ar={centroidDimension:function(e,t,n,r){var i=e.touchBank,o=0,a=0,s=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==s)s.touchActive&&s.currentTimeStamp>t&&(o+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,a=1);else for(var l=0;l<i.length;l++){var u=i[l];null!=u&&u.touchActive&&u.currentTimeStamp>=t&&(o+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,a++)}return a>0?o/a:Ar.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return Ar.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return Ar.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return Ar.centroidDimension(e,0,!1,!0)},noCentroid:-1};const Rr=Ar;var Tr=Rr.currentCentroidXOfTouchesChangedAfter,Pr=Rr.currentCentroidYOfTouchesChangedAfter,Or=Rr.previousCentroidXOfTouchesChangedAfter,Ir=Rr.previousCentroidYOfTouchesChangedAfter,Nr=Rr.currentCentroidX,Lr=Rr.currentCentroidY,Dr={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Tr(t,e._accountsForMovesUpTo),e.moveY=Pr(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=Or(t,n),i=Tr(t,n),o=Ir(t,n),a=Pr(t,n),s=e.dx+(i-r),l=e.dy+(a-o),u=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(s-e.dx)/u,e.vy=(l-e.dy)/u,e.dx=s,e.dy=l,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&Dr._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=Z.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=Nr(r.touchHistory),n.y0=Lr(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){Mr(t,e.onPanResponderReject,r,n)},onResponderRelease(r){Mr(t,e.onPanResponderRelease,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,Mr(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){Mr(t,e.onPanResponderTerminate,r,n),Fr(t),Dr._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function Mr(e,t,n,r){e.handle&&(Z.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function Fr(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}const Vr=Dr;var jr=n(9518);const zr=class{static share(e,t){return void 0===t&&(t={}),I()("object"==typeof e&&null!==e,"Content to share must be a valid object"),I()("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),I()("object"==typeof t&&null!==t,"Options must be a valid object"),I()(!e.title||"string"==typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}};var Br=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)};const Hr={cancel(){Br(0)},vibrate(e){void 0===e&&(e=400),Br(e)}};var $r=n(2869),Wr=n(6413),Ur=k.forwardRef((e,t)=>{var n=e.accessibilityLabel,r=e.color,i=e.disabled,o=e.onPress,a=e.testID,s=e.title;return k.createElement(Wr.A,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:o,ref:t,style:[Kr.button,r&&{backgroundColor:r},i&&Kr.buttonDisabled],testID:a},k.createElement(qt.A,{style:[Kr.text,i&&Kr.textDisabled]},s))});Ur.displayName="Button";var Kr=T.A.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});const qr=Ur;var Yr=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],Gr=k.forwardRef((e,t)=>{var n=e["aria-readonly"],i=e.color,o=e.disabled,a=e.onChange,s=e.onValueChange,l=e.readOnly,u=e.style,c=e.value,d=(0,A.A)(e,Yr),h=k.createElement(R.A,{style:[Xr.fakeControl,c&&Xr.fakeControlChecked,c&&i&&{backgroundColor:i,borderColor:i},o&&Xr.fakeControlDisabled,c&&o&&Xr.fakeControlCheckedAndDisabled]}),f=(0,r.A)("input",{checked:c,disabled:o,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,a&&a(e),s&&s(t)},readOnly:!0===l||!0===n||!0===d.accessibilityReadOnly,ref:t,style:[Xr.nativeControl,Xr.cursorInherit],type:"checkbox"});return k.createElement(R.A,(0,E.A)({},d,{"aria-disabled":o,"aria-readonly":n,style:[Xr.root,u,o&&Xr.cursorDefault]}),h,f)});Gr.displayName="CheckBox";var Xr=T.A.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,x.A)((0,x.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const Jr=Gr;var Qr=["children","style","imageStyle","imageRef"],Zr={},ei=(0,k.forwardRef)((e,t)=>{var n=e.children,r=e.style,i=void 0===r?Zr:r,o=e.imageStyle,a=e.imageRef,s=(0,A.A)(e,Qr),l=T.A.flatten(i),u=l.height,c=l.width;return k.createElement(R.A,{ref:t,style:i},k.createElement(Mt.A,(0,E.A)({},s,{ref:a,style:[{width:c,height:u,zIndex:-1},T.A.absoluteFill,o]})),n)});ei.displayName="ImageBackground";const ti=ei;var ni=n(5470);const ri=function(e){var t=e.children,n=k.useRef(null);if(g.A&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return k.useEffect(()=>{if(g.A)return()=>{document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}},[]),n.current&&g.A?i.createPortal(t,n.current):null};function ii(e,t){return"slide"===e?t?ai:si:"fade"===e?t?li:ui:t?oi.container:oi.hidden}var oi=T.A.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),ai=[oi.container,oi.animatedIn,oi.slideIn],si=[oi.container,oi.animatedOut,oi.slideOut],li=[oi.container,oi.animatedIn,oi.fadeIn],ui=[oi.container,oi.animatedOut,oi.fadeOut];const ci=function(e){var t=e.animationType,n=e.children,i=e.onDismiss,o=e.onShow,a=e.visible,s=k.useState(!1),l=s[0],u=s[1],c=k.useRef(!1),d=k.useRef(!1),h=t&&"none"!==t,f=k.useCallback(e=>{e&&e.currentTarget!==e.target||(a?o&&o():u(!1))},[o,a]);return k.useEffect(()=>{d.current&&!l&&i&&i(),d.current=l},[l,i]),k.useEffect(()=>{a&&u(!0),a===c.current||h||f(),c.current=a},[h,a,f]),l||a?(0,r.A)("div",{style:l?ii(t,a):oi.hidden,onAnimationEnd:f,children:n}):null};var di=["active","children","onRequestClose","transparent"],hi=k.forwardRef((e,t)=>{var n=e.active,r=e.children,i=e.onRequestClose,o=e.transparent,a=(0,A.A)(e,di);k.useEffect(()=>{if(g.A){var e=e=>{n&&"Escape"===e.key&&(e.stopPropagation(),i&&i())};return document.addEventListener("keyup",e,!1),()=>document.removeEventListener("keyup",e,!1)}},[n,i]);var s=k.useMemo(()=>[fi.modal,o?fi.modalTransparent:fi.modalOpaque],[o]);return k.createElement(R.A,(0,E.A)({},a,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:s}),k.createElement(R.A,{style:fi.container},r))}),fi=T.A.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}});const pi=hi;var mi=()=>(0,r.A)("div",{role:"none",tabIndex:0,style:_i.focusBracket});function gi(e){if(!g.A)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function vi(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(gi(n)||vi(n))return!0}return!1}function yi(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(gi(n)||yi(n))return!0}return!1}const bi=e=>{var t=e.active,n=e.children,r=k.useRef(),i=k.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return k.useEffect(()=>{if(g.A){var e=()=>{if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=vi(r.current);i.current.lastFocusedElement===document.activeElement&&(e=yi(r.current)),!e&&null!=r.current&&document.activeElement&&p.A.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}},[t]),k.useEffect(function(){if(g.A){var e=document.activeElement;return function(){e&&document.contains(e)&&p.A.focus(e)}}},[]),k.createElement(k.Fragment,null,k.createElement(mi,null),k.createElement(R.A,{ref:r},n),k.createElement(mi,null))};var _i=T.A.create({focusBracket:{outlineStyle:"none"}}),wi=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],Si=0,xi=[],Ci={};function Ei(){if(0!==xi.length){var e=xi[xi.length-1];xi.forEach(t=>{t in Ci&&Ci[t](t===e)})}}function ki(e){e in Ci&&(Ci[e](!1),delete Ci[e]);var t=xi.indexOf(e);-1!==t&&(xi.splice(t,1),Ei())}const Ai=k.forwardRef((e,t)=>{var n=e.animationType,r=e.children,i=e.onDismiss,o=e.onRequestClose,a=e.onShow,s=e.transparent,l=e.visible,u=void 0===l||l,c=(0,A.A)(e,wi),d=k.useMemo(()=>Si++,[]),h=k.useState(!1),f=h[0],p=h[1],m=k.useCallback(()=>{ki(d),i&&i()},[d,i]),g=k.useCallback(()=>{!function(e,t){ki(e),xi.push(e),Ci[e]=t,Ei()}(d,p),a&&a()},[d,a]);return k.useEffect(()=>()=>ki(d),[d]),k.createElement(ri,null,k.createElement(ci,{animationType:n,onDismiss:m,onShow:g,visible:u},k.createElement(bi,{active:f},k.createElement(pi,(0,E.A)({},c,{active:f,onRequestClose:o,ref:t,transparent:s}),r))))});var Ri=n(1804),Ti=n(6177),Pi=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],Oi=k.forwardRef((e,t)=>{var n=e.children,i=e.enabled,o=e.onValueChange,a=e.selectedValue,s=e.style,l=e.testID,u=(e.itemStyle,e.mode,e.prompt,(0,A.A)(e,Pi)),c=k.useRef(null),d=(0,x.A)({children:n,disabled:!1===i||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;o&&o(r,n)},style:[Ii.initial,s],testID:l,value:a},u),h=(0,Ti.A)(d),f=(0,Ri.A)(c,h,t);return d.ref=f,(0,r.A)("select",d)});Oi.Item=function(e){var t=e.color,n=e.label,i=e.testID,o=e.value,a={color:t};return(0,r.A)("option",{children:n,style:a,testID:i,value:o})};var Ii=T.A.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}});const Ni=Oi;var Li=n(4129),Di=["color","indeterminate","progress","trackColor","style"],Mi=k.forwardRef((e,t)=>{var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,o=void 0!==i&&i,a=e.progress,s=void 0===a?0:a,l=e.trackColor,u=void 0===l?"transparent":l,c=e.style,d=(0,A.A)(e,Di),h=100*s,f=o?"25%":h+"%";return k.createElement(R.A,(0,E.A)({},d,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:h,ref:t,role:"progressbar",style:[Fi.track,c,{backgroundColor:u}]}),k.createElement(R.A,{style:[{backgroundColor:r,width:f},Fi.progress,o&&Fi.animation]}))});Mi.displayName="ProgressBar";var Fi=T.A.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}});const Vi=Mi;var ji=["style"],zi=g.A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",Bi=k.forwardRef((e,t)=>{var n=e.style,r=(0,A.A)(e,ji);return k.createElement(R.A,(0,E.A)({},r,{ref:t,style:[Hi.root,n]}))});Bi.displayName="SafeAreaView";var Hi=T.A.create({root:{paddingTop:zi+"(safe-area-inset-top)",paddingRight:zi+"(safe-area-inset-right)",paddingBottom:zi+"(safe-area-inset-bottom)",paddingLeft:zi+"(safe-area-inset-left)"}});const $i=Bi;var Wi=()=>{};function Ui(){return null}Ui.setBackgroundColor=Wi,Ui.setBarStyle=Wi,Ui.setHidden=Wi,Ui.setNetworkActivityIndicatorVisible=Wi,Ui.setTranslucent=Wi;const Ki=Ui;var qi=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;const Yi=(e,t)=>{var n;return"string"==typeof e?""+parseFloat(e)*t+e.match(qi)[1]:(n=e,!isNaN(parseFloat(n))&&isFinite(n)?e*t:void 0)};var Gi=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],Xi={},Ji="0px 1px 3px rgba(0,0,0,0.5)",Qi=Ji+", 0 0 0 10px rgba(0,0,0,0.1)",Zi="#D5D5D5",eo="#BDBDBD",to=k.forwardRef((e,t)=>{var n=e["aria-label"],i=e.accessibilityLabel,o=e.activeThumbColor,a=e.activeTrackColor,s=e.disabled,l=void 0!==s&&s,u=e.onValueChange,c=e.style,d=void 0===c?Xi:c,h=e.thumbColor,f=e.trackColor,p=e.value,m=void 0!==p&&p,g=(0,A.A)(e,Gi),v=k.useRef(null);function y(e){var t="focus"===e.nativeEvent.type?Qi:Ji;null!=v.current&&(v.current.style.boxShadow=t)}var b=T.A.flatten(d),_=b.height,w=b.width,S=_||"20px",x=Yi(S,2),C=w>x?w:x,P=Yi(S,.5),O=!0===m?null!=f&&"object"==typeof f?f.true:null!=a?a:"#A3D3CF":null!=f&&"object"==typeof f?f.false:null!=f?f:"#939393",I=m?null!=o?o:"#009688":null!=h?h:"#FAFAFA",N=S,L=N,D=[no.root,d,l&&no.cursorDefault,{height:S,width:C}],M=!0===m?"string"==typeof a&&null!=a||"object"==typeof f&&null!=f&&f.true?O:Zi:"string"==typeof f&&null!=f||"object"==typeof f&&null!=f&&f.false?O:Zi,F=!0===m?null==o?eo:I:null==h?eo:I,V=[no.track,{backgroundColor:l?M:O,borderRadius:P}],j=[no.thumb,m&&no.thumbActive,{backgroundColor:l?F:I,height:N,marginStart:m?Yi(L,-1):0,width:L}],z=(0,r.A)("input",{"aria-label":n||i,checked:m,disabled:l,onBlur:y,onChange:function(e){null!=u&&u(e.nativeEvent.target.checked)},onFocus:y,ref:t,style:[no.nativeControl,no.cursorInherit],type:"checkbox",role:"switch"});return k.createElement(R.A,(0,E.A)({},g,{style:D}),k.createElement(R.A,{style:V}),k.createElement(R.A,{ref:v,style:j}),z)});to.displayName="Switch";var no=T.A.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,x.A)((0,x.A)({forcedColorAdjust:"none"},T.A.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:Ji,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,x.A)((0,x.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const ro=to;var io=n(8697),oo=n(254),ao=n(2008),so=n(3098),lo=n(1420),uo=n(8865),co=(e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,o=t.end;return i!==r||o!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},ho=Object.assign({},io.Gs,io.Fh,io.DY,io.l3,io.Aw,io.k2,io.CD,io.eO,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),fo=null,po=k.forwardRef((e,t)=>{var n,i,o=e.autoCapitalize,a=void 0===o?"sentences":o,s=e.autoComplete,l=e.autoCompleteType,u=e.autoCorrect,c=void 0===u||u,d=e.blurOnSubmit,h=e.caretHidden,f=e.clearTextOnFocus,p=e.dir,m=e.editable,g=e.enterKeyHint,v=e.inputMode,y=e.keyboardType,b=e.multiline,_=void 0!==b&&b,w=e.numberOfLines,S=e.onBlur,x=e.onChange,C=e.onChangeText,E=e.onContentSizeChange,A=e.onFocus,R=e.onKeyPress,T=e.onLayout,P=e.onMoveShouldSetResponder,O=e.onMoveShouldSetResponderCapture,I=e.onResponderEnd,N=e.onResponderGrant,L=e.onResponderMove,D=e.onResponderReject,M=e.onResponderRelease,F=e.onResponderStart,V=e.onResponderTerminate,j=e.onResponderTerminationRequest,z=e.onScrollShouldSetResponder,B=e.onScrollShouldSetResponderCapture,H=e.onSelectionChange,$=e.onSelectionChangeShouldSetResponder,W=e.onSelectionChangeShouldSetResponderCapture,U=e.onStartShouldSetResponder,K=e.onStartShouldSetResponderCapture,q=e.onSubmitEditing,Y=e.placeholderTextColor,G=e.readOnly,X=void 0!==G&&G,J=e.returnKeyType,Q=e.rows,Z=e.secureTextEntry,ee=void 0!==Z&&Z,te=e.selection,ne=e.selectTextOnFocus,re=e.showSoftInputOnFocus,ie=e.spellCheck;if(null!=v)i=v,n="email"===v?"email":"tel"===v?"tel":"search"===v?"search":"url"===v?"url":"text";else if(null!=y)switch(y){case"email-address":n="email";break;case"number-pad":case"numeric":i="numeric";break;case"decimal-pad":i="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}ee&&(n="password");var oe=k.useRef({height:null,width:null}),ae=k.useRef(null),se=k.useRef(null),le=k.useRef(!1);k.useEffect(()=>{ae.current&&se.current&&co(ae.current,se.current),le.current=ee},[ee]);var ue=k.useCallback(e=>{if(_&&E&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===oe.current.height&&n===oe.current.width||(oe.current.height=t,oe.current.width=n,E({nativeEvent:{contentSize:{height:oe.current.height,width:oe.current.width}}}))}},[_,E]),ce=k.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&uo.A.currentlyFocusedField()===e},ue(e))},[ue]);(0,Ot.A)(()=>{var e=ae.current;null!=e&&null!=te&&co(e,te),document.activeElement===e&&(uo.A._currentlyFocusedNode=e)},[ae,te]);var de=_?"textarea":"input";(0,ao.A)(ae,T),(0,so.A)(ae,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:O,onResponderEnd:I,onResponderGrant:N,onResponderMove:L,onResponderReject:D,onResponderRelease:M,onResponderStart:F,onResponderTerminate:V,onResponderTerminationRequest:j,onScrollShouldSetResponder:z,onScrollShouldSetResponderCapture:B,onSelectionChangeShouldSetResponder:$,onSelectionChangeShouldSetResponderCapture:W,onStartShouldSetResponder:U,onStartShouldSetResponderCapture:K});var he=(0,lo.PZ)().direction,fe=(e=>(0,oo.A)(e,ho))(e);fe.autoCapitalize=a,fe.autoComplete=s||l||"on",fe.autoCorrect=c?"on":"off",fe.dir=void 0!==p?p:"auto",fe.enterKeyHint=g||J,fe.inputMode=i,fe.onBlur=function(e){uo.A._currentlyFocusedNode=null,S&&(e.nativeEvent.text=e.target.value,S(e))},fe.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,ue(t),x&&x(e),C&&C(n)},fe.onFocus=function(e){var t=e.target;A&&(e.nativeEvent.text=t.value,A(e)),null!=t&&(uo.A._currentlyFocusedNode=t,f&&(t.value=""),ne&&(null!=fo&&clearTimeout(fo),fo=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},fe.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==d?!_:d,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);R&&R(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!d&&_||!q||(e.preventDefault(),r.text=e.target.value,q(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},fe.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};H&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,H(e)),le.current===ee&&(se.current=n)}catch(e){}},fe.readOnly=!0===X||!1===m,fe.rows=_?null!=Q?Q:w:1,fe.spellCheck=null!=ie?ie:c,fe.style=[{"--placeholderTextColor":Y},mo.textinput$raw,mo.placeholder,e.style,h&&mo.caretHidden],fe.type=_?void 0:n,fe.virtualkeyboardpolicy=!1===re?"manual":"auto";var pe=(0,Ti.A)(fe),me=(0,Ri.A)(ae,pe,ce,t);fe.ref=me;var ge=null!=e.lang?(0,lo.il)(e.lang):null,ve=e.dir||ge||he;return(0,r.A)(de,fe,{writingDirection:ve})});po.displayName="TextInput",po.State=uo.A;var mo=T.A.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const go=po;var vo=n(8285),yo=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},bo=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},_o=yo;const wo=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||_o,n.poolSize||(n.poolSize=10),n.release=bo,n},So=yo;var xo=So;function Co(e,t){this.width=e,this.height=t}Co.prototype.destructor=function(){this.width=null,this.height=null},Co.getPooledFromElement=function(e){return Co.getPooled(e.offsetWidth,e.offsetHeight)},wo(Co,xo);const Eo=Co;var ko=So;function Ao(e,t){this.left=e,this.top=t}Ao.prototype.destructor=function(){this.left=null,this.top=null},wo(Ao,ko);const Ro=Ao;var To=n(4078),Po=e=>{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},Oo="NOT_RESPONDER",Io="RESPONDER_INACTIVE_PRESS_IN",No="RESPONDER_INACTIVE_PRESS_OUT",Lo="RESPONDER_ACTIVE_PRESS_IN",Do="RESPONDER_ACTIVE_PRESS_OUT",Mo="RESPONDER_ACTIVE_LONG_PRESS_IN",Fo="RESPONDER_ACTIVE_LONG_PRESS_OUT",Vo="ERROR",jo={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},zo=(0,x.A)((0,x.A)({},jo),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Bo=(0,x.A)((0,x.A)({},jo),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Ho=(0,x.A)((0,x.A)({},jo),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),$o="RESPONDER_RELEASE",Wo="RESPONDER_TERMINATED",Uo="LONG_PRESS_DETECTED",Ko={NOT_RESPONDER:{DELAY:Vo,RESPONDER_GRANT:Io,RESPONDER_RELEASE:Vo,RESPONDER_TERMINATED:Vo,ENTER_PRESS_RECT:Vo,LEAVE_PRESS_RECT:Vo,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Lo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Io,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Do,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Io,LEAVE_PRESS_RECT:No,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Lo,LEAVE_PRESS_RECT:Do,LONG_PRESS_DETECTED:Vo},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Mo},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:Vo,RESPONDER_GRANT:Vo,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Mo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Vo},error:{DELAY:Oo,RESPONDER_GRANT:Io,RESPONDER_RELEASE:Oo,RESPONDER_TERMINATED:Oo,ENTER_PRESS_RECT:Oo,LEAVE_PRESS_RECT:Oo,LONG_PRESS_DETECTED:Oo}},qo={componentDidMount:function(){(0,To.m)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==Oo&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=Oo,this.state.touchable.responderID=t,this._receiveSignal("RESPONDER_GRANT",e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal($o,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(Wo,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=r.left,o=r.top,a=r.right,s=r.bottom,l=this.touchableGetHitSlop?this.touchableGetHitSlop():null;l&&(i+=l.left||0,o+=l.top||0,a+=l.right||0,s+=l.bottom||0);var u=Po(e.nativeEvent),c=u&&u.pageX,d=u&&u.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(c,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout(),c>t.left-i&&d>t.top-o&&c<t.left+n.width+a&&d<t.top+n.height+s){var h=this.state.touchable.touchState;this._receiveSignal("ENTER_PRESS_RECT",e),this.state.touchable.touchState===Io&&h!==Io&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal("LEAVE_PRESS_RECT",e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;null!=e&&p.A.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,i,o){(e||t||n||r||i||o)&&(this.state.touchable.positionOnActivate&&Ro.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&Eo.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=Ro.getPooled(i,o),this.state.touchable.dimensionsOnActivate=Eo.getPooled(n,r))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal("DELAY",e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==Lo&&t!==Mo?console.error("Attempted to transition from state `"+t+"` to `"+Mo+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(Uo,e)},_receiveSignal:function(e,t){var n=this.state.touchable.responderID,r=this.state.touchable.touchState,i=Ko[r]&&Ko[r][e];if(n||e!==$o){if(!i)throw new Error("Unrecognized signal `"+e+"` or state `"+r+"` for Touchable responder `"+n+"`");if(i===Vo)throw new Error("Touchable cannot transition from `"+r+"` to `"+e+"` for responder `"+n+"`");r!==i&&(this._performSideEffectsForTransition(r,i,e,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===Lo||e===Mo},_savePressInLocation:function(e){var t=Po(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY,i=t&&t.locationX,o=t&&t.locationY;this.pressInLocation={pageX:n,pageY:r,locationX:i,locationY:o}},_getDistanceBetweenPoints:function(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},_performSideEffectsForTransition:function(e,t,n,r){var i=this._isHighlight(e),o=this._isHighlight(t);(n===Wo||n===$o)&&this._cancelLongPressDelayTimeout();var a=e===Oo&&t===Io,s=!zo[e]&&zo[t];if((a||s)&&this._remeasureMetricsOnActivation(),Bo[e]&&n===Uo&&this.touchableHandleLongPress&&this.touchableHandleLongPress(r),o&&!i?this._startHighlight(r):!o&&i&&this._endHighlight(r),Bo[e]&&n===$o){var l=!!this.props.onLongPress,u=Ho[e]&&(!l||!this.touchableLongPressCancelsPress());(!Ho[e]||u)&&this.touchableHandlePress&&(o||i||(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){p.A.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;"Enter"!==n&&" "!==n||("keydown"===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==Oo||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):"keyup"===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==Oo&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),"Enter"===n&&"link"===vo.A.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},Yo=(qo.touchableHandleFocus,qo.touchableHandleBlur,(0,A.A)(qo,["touchableHandleFocus","touchableHandleBlur"]));qo.withoutDefaultFocusAndBlur=Yo;var Go={Mixin:qo,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!Go.TOUCH_TARGET_DEBUG)return null;var r={};for(var i in n=n||{top:0,bottom:0,left:0,right:0})r[i]=-n[i];var o=mt()(t);if("number"!=typeof o)return null;var a="#"+("00000000"+o.toString(16)).substr(-8);return k.createElement(R.A,{pointerEvents:"none",style:(0,x.A)({position:"absolute",borderColor:a.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:a.slice(0,-2)+"0F"},r)})}};const Xo=Go;var Jo=n(6533),Qo=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function Zo(e,t){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function ea(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function ta(e,t){var n=e.activeOpacity,r=e.children,i=e.delayPressIn,o=e.delayPressOut,a=e.delayLongPress,s=e.disabled,l=e.focusable,u=e.onHideUnderlay,c=e.onLongPress,d=e.onPress,h=e.onPressIn,f=e.onPressOut,p=e.onShowUnderlay,m=e.rejectResponderTermination,g=e.style,v=e.testOnly_pressed,y=e.underlayColor,b=(0,A.A)(e,Qo),_=(0,k.useRef)(null),w=(0,Ri.A)(t,_),S=(0,k.useState)(!0===v?Zo(n,y):null),x=S[0],C=S[1],T=(0,k.useCallback)(()=>{ea(e)&&(C(Zo(n,y)),null!=p&&p())},[n,p,e,y]),P=(0,k.useCallback)(()=>{!0!==v&&ea(e)&&(C(null),null!=u&&u())},[u,e,v]),O=(0,k.useMemo)(()=>({cancelable:!m,disabled:s,delayLongPress:a,delayPressStart:i,delayPressEnd:o,onLongPress:c,onPress:d,onPressStart(e){T(),null!=h&&h(e)},onPressEnd(e){P(),null!=f&&f(e)}}),[a,i,o,s,c,d,h,f,m,T,P]),I=(0,Jo.A)(_,O),N=k.Children.only(r);return k.createElement(R.A,(0,E.A)({},b,I,{accessibilityDisabled:s,focusable:!s&&!1!==l,pointerEvents:s?"box-none":void 0,ref:w,style:[na.root,g,!s&&na.actionable,x&&x.underlay]}),k.cloneElement(N,{style:[N.props.style,x&&x.child]}))}var na=T.A.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),ra=k.memo(k.forwardRef(ta));ra.displayName="TouchableHighlight";const ia=ra;var oa=["style"],aa={};const sa=function(e){var t=e.style,n=(0,A.A)(e,oa);return k.createElement(R.A,(0,E.A)({},n,{style:[aa,t]}))},la=sa;var ua={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};function ca(e,t){(0,To.m)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var n=e.delayPressIn,r=e.delayPressOut,i=e.delayLongPress,o=e.disabled,a=e.focusable,s=e.onLongPress,l=e.onPress,u=e.onPressIn,c=e.onPressOut,d=e.rejectResponderTermination,h=(0,k.useRef)(null),f=(0,k.useMemo)(()=>({cancelable:!d,disabled:o,delayLongPress:i,delayPressStart:n,delayPressEnd:r,onLongPress:s,onPress:l,onPressStart:u,onPressEnd:c}),[o,n,r,i,s,l,u,c,d]),p=(0,Jo.A)(h,f),m=k.Children.only(e.children),g=[m.props.children],v=(e=>(0,oo.A)(e,ua))(e);v.accessibilityDisabled=o,v.focusable=!o&&!1!==a,v.ref=(0,Ri.A)(t,h,m.ref);var y=Object.assign(v,p);return k.cloneElement(m,y,...g)}var da=k.memo(k.forwardRef(ca));da.displayName="TouchableWithoutFeedback";const ha=da,fa=Te;function pa(e){return k.createElement(sa,e)}pa.ignoreWarnings=()=>{};const ma=pa,ga={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}};var va=n(9697);function ya(){var e=k.useState(Xn.getColorScheme()),t=e[0],n=e[1];return k.useEffect(()=>Xn.addChangeListener(function(e){n(e.colorScheme)}).remove),t}const ba=lo.PZ;function _a(){var e=(0,k.useState)(()=>vr.A.get("window")),t=e[0],n=e[1];return(0,k.useEffect)(()=>{function e(e){var t=e.window;null!=t&&n(t)}return vr.A.addEventListener("change",e),n(vr.A.get("window")),()=>{vr.A.removeEventListener("change",e)}},[]),t}},8285(e,t,n){"use strict";n.d(t,{A:()=>s});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var i=r[n];if(null!==i)return i||n}};var o={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},a={};const s={isDisabled:e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,propsToAccessibilityComponent:function(e){if(void 0===e&&(e=a),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return o[t]}},propsToAriaRole:i}},8865(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8683);const i={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.A.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.A.blur(e))}}},7162(e,t,n){"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},3116(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8865);const i=()=>{r.A.blurTextInput(r.A.currentlyFocusedField())}},8697(e,t,n){"use strict";n.d(t,{Aw:()=>s,CD:()=>u,DY:()=>o,Fh:()=>i,Gs:()=>r,eO:()=>c,k2:()=>l,l3:()=>a});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},i={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},a={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},1968(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},87(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(t=>{null!=t&&("function"!=typeof t?"object"!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=e:t(e))})}}n.d(t,{A:()=>r}),n(6540)},254(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{A:()=>r})},2008(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(8425),i=n(8683),o=n(7162),a="__reactLayoutHandler",s=(o.A,null);function l(e,t){var n=(o.A&&void 0!==window.ResizeObserver&&null==s&&(s=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[a];"function"==typeof n&&i.A.measure(t,(t,r,i,o,a,s)=>{var l={nativeEvent:{layout:{x:t,y:r,width:i,height:o,left:a,top:s}},timeStamp:Date.now()};Object.defineProperty(l.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(l)})})})),s);(0,r.A)(()=>{var n=e.current;null!=n&&(n[a]=t)},[e,t]),(0,r.A)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[a]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},8425(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(6540);const i=n(7162).A?r.useLayoutEffect:r.useEffect},1420(e,t,n){"use strict";n.d(t,{YO:()=>c,il:()=>u,PZ:()=>d});var r=n(6540),i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),a=new Map,s={direction:"ltr",locale:"en-US"},l=(0,r.createContext)(s);function u(e){return function(e){var t=a.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=i.has(r)}catch(t){var s=e.split("-")[0];n=o.has(s)}else{var l=e.split("-")[0];n=o.has(l)}return a.set(e,n),n}(e)?"rtl":"ltr"}function c(e){var t=e.direction,n=e.locale,i=e.children;return t||n?r.createElement(l.Provider,{children:i,value:{direction:n?u(n):t,locale:n}}):i}function d(){return(0,r.useContext)(l)}},1804(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i=n(87);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>(0,i.A)(...t),[...t])}},6177(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8683),i=n(9241);function o(e){return e.pointerEvents,e.style,(0,i.A)(()=>e=>{null!=e&&(e.measure=t=>r.A.measure(e,t),e.measureLayout=(t,n,i)=>r.A.measureLayout(e,t,i,n),e.measureInWindow=t=>r.A.measureInWindow(e,t))})}},6533(e,t,n){"use strict";n.d(t,{A:()=>x});var r="DELAY",i="ERROR",o="LONG_PRESS_DETECTED",a="NOT_RESPONDER",s="RESPONDER_ACTIVE_LONG_PRESS_START",l="RESPONDER_ACTIVE_PRESS_START",u="RESPONDER_INACTIVE_PRESS_START",c="RESPONDER_RELEASE",d="RESPONDER_TERMINATED",h=Object.freeze({NOT_RESPONDER:{DELAY:i,RESPONDER_GRANT:u,RESPONDER_RELEASE:i,RESPONDER_TERMINATED:i,LONG_PRESS_DETECTED:i},RESPONDER_INACTIVE_PRESS_START:{DELAY:l,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:i},RESPONDER_ACTIVE_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},ERROR:{DELAY:a,RESPONDER_GRANT:u,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:a}}),f=e=>e.getAttribute("role"),p=e=>e.tagName.toLowerCase(),m=e=>e===l||e===s,g=e=>"button"===f(e),v=e=>e===u||e===l||e===s,y=e=>{var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,i="button"===p(n)||g(n);return"Enter"===t||r&&i};class b{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=a,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=a,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=_(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(r,e)},n):this._receiveSignal(r,e);var i=_(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},i+n)},t=e=>{this._receiveSignal(c,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==a&&y(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),s=p(i),l="link"===o||"a"===s||"button"===s||"input"===s||"select"===s||"textarea"===s,u=this._responderElement===i;null!=r&&!l&&u&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&g(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&y(t)){this._touchState===a&&(e(t,!1),this._responderElement=o,document.addEventListener("keyup",n));var s=" "===i||"Spacebar"===i,l=f(o);s&&("button"===l||"menuitem"===l)&&"button"!==p(o)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=w(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(d,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!(!r&&null!=i&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?g(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?g(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=h[n]&&(r=h[n][e]),this._touchState===a&&e===c||(null==r||r===i?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((e=>e===d||e===c)(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),v(e)&&n===o){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var a=m(e),l=m(t);if(!a&&l?this._activate(r):a&&!l&&this._deactivate(r),v(e)&&n===c){var u=this._config,h=u.onLongPress;null!=u.onPress&&(null!=h&&e===s||l||a||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=w(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=_(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},o):i()}_handleLongPress(e){this._touchState!==l&&this._touchState!==s||this._receiveSignal(o,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function _(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function w(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var S=n(6540);function x(e,t){var n=(0,S.useRef)(null);null==n.current&&(n.current=new b(t));var r=n.current;return(0,S.useEffect)(()=>{r.configure(t)},[t,r]),(0,S.useEffect)(()=>()=>{r.reset()},[r]),(0,S.useDebugValue)(t),r.getEventHandlers()}},3098(e,t,n){"use strict";n.d(t,{A:()=>z});var r=n(6540),i=n(1968),o=()=>{},a={},s=[];function l(e){return e>20?e%20:e}function u(e,t){var n,r,u,c=!1,d=e.changedTouches,h=e.type,f=!0===e.metaKey,p=!0===e.shiftKey,m=d&&d[0].force||0,g=l(d&&d[0].identifier||0),v=d&&d[0].clientX||e.clientX,y=d&&d[0].clientY||e.clientY,b=d&&d[0].pageX||e.pageX,_=d&&d[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):o,S=e.timeStamp;function x(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:l(e.identifier),get locationX(){return k(e.clientX)},get locationY(){return A(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:S}))}if(null!=d)r=x(d),u=x(e.touches);else{var C=[{force:m,identifier:g,get locationX(){return k(v)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S}];r=C,u="mouseup"===h||"dragstart"===h?s:C}var E={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:a,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:f,shiftKey:p,changedTouches:r,force:m,identifier:g,get locationX(){return k(v)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S,touches:u,type:h},persist:o,preventDefault:w,stopPropagation(){c=!0},target:e.target,timeStamp:S,touchHistory:t.touchHistory};function k(e){if(n=n||(0,i.A)(E.currentTarget))return e-n.left}function A(e){if(n=n||(0,i.A)(E.currentTarget))return e-n.top}return E}function c(e){return"touchstart"===e||"mousedown"===e}function d(e){return"touchmove"===e||"mousemove"===e}function h(e){return"touchend"===e||"mouseup"===e||f(e)}function f(e){return"touchcancel"===e||"dragstart"===e}var p="__reactResponderId";function m(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function g(e){return null!=e?e[p]:null}function v(e){return e.timeStamp||e.timestamp}function y(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:v(e)})}function _(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}var w=n(7162),S={},x=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],C=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],E={touchstart:x,mousedown:x,touchmove:C,mousemove:C,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},k={id:null,idPath:null,node:null},A=new Map,R=!1,T=0,P={id:null,node:null,idPath:null},O=new class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(d(e))t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=v(e),t.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n));else if(c(e))t.changedTouches.forEach(e=>function(e,t){var n=y(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=v(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=v(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=v(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:v(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:v(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:v(e)}}(e),t.mostRecentTimeStamp=v(e)}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(h(e)&&(t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[y(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=v(e),t.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+b(e)+"\n","Touch Bank: "+_(t))}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,i=0;i<r.length;i++){var o=r[i];if(null!=o&&o.touchActive){n.indexOfSingleActiveTouch=i;break}}}get touchHistory(){return this._touchHistory}};function I(e){P=e}function N(e){var t=A.get(e);return null!=t?t:S}function L(e){var t=e.type,n=e.target;if("touchstart"===t&&(R=!0),("touchmove"===t||T>1)&&(R=!1),!("mousedown"===t&&R||"mousemove"===t&&R||"mousemove"===t&&T<1))if(R&&"mouseup"===t)0===T&&(R=!1);else{var r=c(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,o=e.type,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),i=d(t),o=h(t),a=function(e){return"scroll"===e}(t),s=function(e){return"select"===e||"selectionchange"===e}(t),l=u(e,O);(r||i||o)&&(e.touches?T=e.touches.length:r?T=1:o&&(T=0),O.recordTouchTrack(t,l.nativeEvent));var p,v=function(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?m(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():m(e.target)}(e),i=0;i<r.length;i++){var o=r[i],a=g(o);null!=a&&(t.push(a),n.push(o))}return{idPath:t,nodePath:n}}(e),y=!1;if(r||i||a&&T>0){var b=P.idPath,_=v.idPath;if(null!=b&&null!=_){var w=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var i=e[0],o=0,a=t[0],s=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[s=r-n],r=n);for(var l=n;l--;){if(i===a)return i;i=e[o++],a=t[s++]}return null}(b,_);if(null!=w){var S=_.indexOf(w)+(w===P.id?1:0);v={idPath:_.slice(S),nodePath:v.nodePath.slice(S)}}else v=null}null!=v&&(p=function(e,t,n){var r=E[t.type];if(null!=r){for(var i=e.idPath,o=e.nodePath,a=r[0],s=r[1],l=r[2].bubbles,u=function(e,t,r){var o=N(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n)))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},c=i.length-1;c>=0;c--){var d=u(i[c],o[c],a);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(l)for(var h=0;h<i.length;h++){var f=u(i[h],o[h],s);if(null!=f)return f;if(!0===n.isPropagationStopped())return}else{var p=i[0],m=o[0];if(t.target===m)return u(p,m,s)}}}(v,e,l),null!=p&&(function(e,t){var n=P,r=n.id,i=n.node,o=t.id,a=t.node,s=N(o),l=s.onResponderGrant,u=s.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=a,null==r)null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),I(t);else{var c=N(r),d=c.onResponderTerminate,h=c.onResponderTerminationRequest,f=!0;null!=h&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminationRequest",!1===h(e)&&(f=!1)),f?(null!=d&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminate",d(e)),null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),I(t)):null!=u&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderReject",u(e))}}(l,p),y=!0))}if(null!=P.id&&null!=P.node){var x=P,C=x.id,A=x.node,L=N(C),D=L.onResponderStart,M=L.onResponderMove,F=L.onResponderEnd,V=L.onResponderRelease,j=L.onResponderTerminate,z=L.onResponderTerminationRequest;if(l.bubbles=!1,l.cancelable=!1,l.currentTarget=A,r)null!=D&&(l.dispatchConfig.registrationName="onResponderStart",D(l));else if(i)null!=M&&(l.dispatchConfig.registrationName="onResponderMove",M(l));else{var B=f(t)||"contextmenu"===t||"blur"===t&&n===window||"blur"===t&&n.contains(A)&&e.relatedTarget!==A||a&&0===T||a&&n.contains(A)&&n!==A||s&&function(e){return"selectionchange"===e.type?(n=(t=window.getSelection()).toString(),r=t.anchorNode,i=t.focusNode,o=r&&r.nodeType===window.Node.TEXT_NODE||i&&i.nodeType===window.Node.TEXT_NODE,n.length>=1&&"\n"!==n&&o):"select"===e.type;var t,n,r,i,o}(e),H=o&&!B&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(null!=r&&e.contains(r))return!0}return!1}(A,e.touches);if(o&&null!=F&&(l.dispatchConfig.registrationName="onResponderEnd",F(l)),H&&(null!=V&&(l.dispatchConfig.registrationName="onResponderRelease",V(l)),I(k)),B){var $=!0;"contextmenu"!==t&&"scroll"!==t&&"selectionchange"!==t||(y?$=!1:null!=z&&(l.dispatchConfig.registrationName="onResponderTerminationRequest",!1===z(l)&&($=!1))),$&&(null!=j&&(l.dispatchConfig.registrationName="onResponderTerminate",j(l)),I(k),R=!1,T=0)}}}}}var D=["blur","scroll"],M=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function F(e){P.id===e&&function(){var e=P,t=e.id,n=e.node;if(null!=t&&null!=n){var r=N(t).onResponderTerminate;if(null!=r){var i=u({},O);i.currentTarget=n,r(i)}I(k)}R=!1,T=0}(),A.has(e)&&A.delete(e)}var V={},j=0;function z(e,t){void 0===t&&(t=V);var n,i,o=(n=()=>j++,null==(i=r.useRef(null)).current&&(i.current=n()),i.current),a=r.useRef(!1);r.useEffect(()=>(w.A&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",L),M.forEach(e=>{document.addEventListener(e,L)}),D.forEach(e=>{document.addEventListener(e,L,!0)}),window.__reactResponderSystemActive=!0),()=>{F(o)}),[o]),r.useEffect(()=>{var n=t,r=n.onMoveShouldSetResponder,i=n.onMoveShouldSetResponderCapture,s=n.onScrollShouldSetResponder,l=n.onScrollShouldSetResponderCapture,u=n.onSelectionChangeShouldSetResponder,c=n.onSelectionChangeShouldSetResponderCapture,d=n.onStartShouldSetResponder,h=n.onStartShouldSetResponderCapture,f=null!=r||null!=i||null!=s||null!=l||null!=u||null!=c||null!=d||null!=h,m=e.current;f?(function(e,t,n){!function(e,t){null!=e&&(e[p]=t)}(t,e),A.set(e,n)}(o,m,t),a.current=!0):a.current&&(F(o),a.current=!1)},[t,e,o]),r.useDebugValue({isResponder:e.current===P.node}),r.useDebugValue(t)}},9241(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6540),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function o(e){var t=r.useRef(i);return t.current===i&&(t.current=e()),t.current}},4078(e,t,n){"use strict";function r(e,t){}n.d(t,{m:()=>r})},5725(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new(n(1603).A)},1603(e,t,n){"use strict";n.d(t,{A:()=>r});class r{constructor(){this._registry={}}addListener(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),i={context:n,listener:t,remove(){r.delete(i)}};return r.add(i),i}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0,a=[...t];o<a.length;o++){var s=a[o];s.listener.apply(s.context,r)}}}removeAllListeners(e){null==e?this._registry={}:delete this._registry[e]}listenerCount(e){var t=this._registry[e];return null==t?0:t.size}}},1515(e){"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){const i=r<.5?r*(1+n):r+n-r*n,o=2*r-i,a=t(o,i,e+1/3),s=t(o,i,e),l=t(o,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}const r="[-+]?\\d*\\.?\\d+",i=r+"%";function o(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let l;function u(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function h(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;const f=(void 0===l&&(l={rgb:new RegExp("rgb"+o(r,r,r)),rgba:new RegExp("rgba("+s(r,r,r,r)+"|"+a(r,r,r,r)+")"),hsl:new RegExp("hsl"+o(r,i,i)),hsla:new RegExp("hsla("+s(r,i,i,r)+"|"+a(r,i,i,r)+")"),hwb:new RegExp("hwb"+o(r,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),l);let p;if(p=f.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;const m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=f.rgb.exec(e))?(u(p[1])<<24|u(p[2])<<16|u(p[3])<<8|255)>>>0:(p=f.rgba.exec(e))?void 0!==p[6]?(u(p[6])<<24|u(p[7])<<16|u(p[8])<<8|d(p[9]))>>>0:(u(p[2])<<24|u(p[3])<<16|u(p[4])<<8|d(p[5]))>>>0:(p=f.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=f.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(e))?(255|n(c(p[1]),h(p[2]),h(p[3])))>>>0:(p=f.hsla.exec(e))?void 0!==p[6]?(n(c(p[6]),h(p[7]),h(p[8]))|d(p[9]))>>>0:(n(c(p[2]),h(p[3]),h(p[4]))|d(p[5]))>>>0:(p=f.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){const e=Math.round(255*n/(n+r));return e<<24|e<<16|e<<8}const i=t(0,1,e+1/3)*(1-n-r)+n,o=t(0,1,e)*(1-n-r)+n,a=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}(c(p[1]),h(p[2]),h(p[3])))>>>0:null}},5287(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var _=b.prototype=new y;_.constructor=b,m(_,v.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+R(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),T(a,t,i,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+R(s=e[u],u);l+=T(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,c=o+R(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},L={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:x};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},6540(e,t,n){"use strict";e.exports=n(5287)},7463(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,_(e),!m)if(null!==r(u))m=!0,N(S);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(k),k=-1),p=!0;var o=f;try{for(_(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!T());){var a=h.callback;if("function"==typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(u)&&i(u),_(n)}else i(u);h=r(u)}if(null!==h)var l=!0;else{var d=r(c);null!==d&&L(w,d.startTime-n),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,E=null,k=-1,A=5,R=-1;function T(){return!(t.unstable_now()-R<A)}function P(){if(null!==E){var e=t.unstable_now();R=e;var n=!0;try{n=E(!0,e)}finally{n?x():(C=!1,E=null)}}else C=!1}if("function"==typeof b)x=function(){b(P)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,I=O.port2;O.port1.onmessage=P,x=function(){I.postMessage(null)}}else x=function(){v(P,0)};function N(e){E=e,C||(C=!0,x())}function L(e,n){k=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,N(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(y(k),k=-1):g=!0,L(w,o-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,N(S))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(7463)},3176(e,t){"use strict";t.P=void 0;var n=new WeakMap;function r(e){var t,r,i;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,i=e.transform),function(){for(var e=[],o="",a=null,s=t?null:n,l=new Array(arguments.length),u=0;u<arguments.length;u++)l[u]=arguments[u];for(;l.length>0;){var c=l.pop();if(null!=c&&!1!==c)if(Array.isArray(c))for(var d=0;d<c.length;d++)l.push(c[d]);else{var h=null!=i?i(c):c;if(h.$$css){var f="";if(null!=s&&s.has(h)){var p=s.get(h);null!=p&&(f=p[0],e.push.apply(e,p[1]),s=p[2])}else{var m=[];for(var g in h){var v=h[g];"$$css"!==g&&("string"==typeof v||null===v?e.includes(g)||(e.push(g),null!=s&&m.push(g),"string"==typeof v&&(f+=f?" "+v:v)):console.error("styleq: ".concat(g," typeof ").concat(String(v),' is not "string" or "null".')))}if(null!=s){var y=new WeakMap;s.set(h,[f,m,y]),s=y}}f&&(o=o?f+" "+o:f)}else if(r)null==a&&(a={}),a=Object.assign({},h,a);else{var b=null;for(var _ in h){var w=h[_];void 0!==w&&(e.includes(_)||(null!=w&&(null==a&&(a={}),null==b&&(b={}),b[_]=w),e.push(_),s=null))}null!=b&&(a=Object.assign(b,a))}}}return[o,a]}}var i=r();t.P=i,i.factory=r},4336(e,t){"use strict";t.n=function(e,t){if(null!=e[r]){var o=t?1:0;if(n.has(e)){var a=n.get(e),s=a[o];return null==s&&(s=i(e,t),a[o]=s,n.set(e,a)),s}var l=i(e,t),u=new Array(2);return u[o]=l,n.set(e,u),l}return e};var n=new WeakMap,r="$$css$localize";function i(e,t){var n={};for(var i in e)if(i!==r){var o=e[i];Array.isArray(o)?n[i]=t?o[1]:o[0]:n[i]=o}return n}},4915(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8168(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},2555(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>a})},8587(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},6e3(e,t,n){"use strict";n.d(t,{v4:()=>a});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],n+=6==t?o[15&e|64]:8==t?o[63&e|128]:o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},3172(e,t,n){"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},1635(e,t,n){"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>l,fX:()=>u,sH:()=>s});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},2510(e){"use strict";e.exports=JSON.parse('{"black":"#000000","silver":"#c0c0c0","gray":"#808080","white":"#ffffff","maroon":"#800000","red":"#ff0000","purple":"#800080","fuchsia":"#ff00ff","green":"#008000","lime":"#00ff00","olive":"#808000","yellow":"#ffff00","navy":"#000080","blue":"#0000ff","teal":"#008080","aqua":"#00ffff","orange":"#ffa500","aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","blanchedalmond":"#ffebcd","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","limegreen":"#32cd32","linen":"#faf0e6","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","oldlace":"#fdf5e6","olivedrab":"#6b8e23","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","whitesmoke":"#f5f5f5","yellowgreen":"#9acd32","rebeccapurple":"#663399"}')}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".chat-widget.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="vdb-ai-chat:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var h=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,u=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkvdb_ai_chat=self.webpackChunkvdb_ai_chat||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=a(9697),t=a(6540),n=a(9176),r=a(7862),i=a(8997),o=a(5338),s=a(1635);function l(){return"undefined"!=typeof process&&process.env?process.env:{}}var u=a(9456),c=a(2321);function d(e,t,n,r){var i,o=[e,t,n,r],a=(0,c.Qd)(e)?e.event:e;if(!a||!(0,c.Kg)(a))throw new Error("Event missing");var s=(0,c.Qd)(e)?null!==(i=e.properties)&&void 0!==i?i:{}:(0,c.Qd)(t)?t:{},l={};return(0,c.Tn)(n)||(l=null!=n?n:{}),(0,c.Qd)(e)&&!(0,c.Tn)(t)&&(l=null!=t?t:{}),[a,s,l,o.find(c.Tn)]}function h(e,t,n,r,i){var o,a,s=null,l=null,u=[e,t,n,r,i],d=u.filter(c.Kg);1===d.length?(0,c.Kg)(u[1])?(l=u[1],s=null):(l=d[0],s=null):2===d.length&&("string"==typeof u[0]&&(s=u[0]),"string"==typeof u[1]&&(l=u[1]));var h=u.find(c.Tn),f=u.filter(c.Qd);return 1===f.length?(0,c.Qd)(u[2])?(a={},o=u[2]):(0,c.Qd)(u[3])?(o={},a=u[3]):(o=f[0],a={}):2===f.length&&(o=f[0],a=f[1]),[s,l,null!=o?o:o={},null!=a?a:a={},h]}var f=function(e){return function(){for(var t,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],l=0,u=i;l<u.length;l++){var d=u[l],h=s.pop();if("id"===h){if((0,c.Kg)(d)||(0,c.Et)(d)){a.id=d.toString();continue}if(null==d)continue;h=s.pop()}if("traits"!==h&&"options"!==h||null!=d&&!(0,c.Qd)(d)||(a[h]=d),(0,c.Tn)(d)){a.callback=d;break}}return[null!==(t=a.id)&&void 0!==t?t:e.id(),null!==(n=a.traits)&&void 0!==n?n:{},null!==(r=a.options)&&void 0!==r?r:{},a.callback]}};function p(e,t,n,r){(0,c.Et)(e)&&(e=e.toString()),(0,c.Et)(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(c.Kg),a=o[0],s=void 0===a?e:a,l=o[1],u=void 0===l?null:l,d=i.filter(c.Qd)[0];return[s,u,void 0===d?{}:d,i.find(c.Tn)]}var m=a(7718),g=a(7977),v=a(6556);function y(e,t,n,r){return(0,s.sH)(this,void 0,void 0,function(){var i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return(null==r?void 0:r.callback)?[4,(0,v.w_)(o,r.callback,(s=i,l=r.timeout,u=Date.now()-s,Math.max((null!=l?l:300)-u,0)))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&o.flush(),[2,o]}var s,l,u})})}var b=a(2079),_=a(6e3),w=function(e,t,n,r,i,o){return{__t:"bpc",c:t,p:r,u:e,s:n,t:i,r:o}},S=Object.keys(w("","","","","",""));var x=function(e){var t,n,r=e.c,i=e.p,o=e.s,a=e.u,s=e.r,l=e.t,u=r?function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}}(r):i,c=r?function(e,t){return e.indexOf("?")>-1?e:e+t}(r,o):-1===(n=(t=a).indexOf("#"))?t:t.slice(0,n);return{path:u,referrer:s,search:o,title:l,url:c}},C=function(){var e=document.querySelector("link[rel='canonical']");return w(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},E=function(e,t){void 0===t&&(t=x(C()));var n,r,i,o=e.context;"page"===e.type&&(n=e.properties&&(r=e.properties,i=Object.keys(t),Object.assign.apply(Object,(0,s.fX)([{}],i.map(function(e){var t;if(r&&Object.prototype.hasOwnProperty.call(r,e))return(t={})[e]=r[e],t}),!1))),e.properties=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),e.properties),e.name?{name:e.name}:{})),o.page=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),n),o.page)},k=a(3172),A=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,s.C6)(t,e),t}(Error),R="is not a string",T="is not an object";var P=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},O=function(){function e(e){this.settings=new P(e)}return e.prototype.track=function(e,t,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)}))},e.prototype.page=function(e,t,n,r,i){var o;this.settings.onEventMethodCall({type:"page",options:r});var a={type:"page",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(a.category=e,a.properties=null!==(o=a.properties)&&void 0!==o?o:{},a.properties.category=e),null!==t&&(a.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),a))},e.prototype.screen=function(e,t,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var o={type:"screen",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(o.category=e),null!==t&&(o.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),o))},e.prototype.identify=function(e,t,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:r}))},e.prototype.group=function(e,t,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:e,type:"alias",options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)};return null!==t&&(i.previousId=t),void 0===e?this.normalize((0,s.Cl)((0,s.Cl)({},i),this.baseEvent())):this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),i=null!==(t=e.context)&&void 0!==t?t:{},o={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,k.J)(o,t,e[t]):(0,k.J)(i,t,e[t]))}),[i,o]},e.prototype.normalize=function(e){var t,n,r,i,o=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce(function(t,n){var r,i;return(0,s.Cl)((0,s.Cl)({},t),((r={})[n]=Boolean(null===(i=e.integrations)||void 0===i?void 0:i[n]),r))},{});e.options=(r=e.options||{},i=function(e,t){return void 0!==t},Object.keys(r).filter(function(e){return i(0,r[e])}).reduce(function(e,t){return e[t]=r[t],e},{}));var a=(0,s.Cl)((0,s.Cl)({},o),null===(n=e.options)||void 0===n?void 0:n.integrations),l=e.options?this.context(e.options):[],u=l[0],d=l[1],h=e.options,f=(0,s.Tt)(e,["options"]),p=(0,s.Cl)((0,s.Cl)((0,s.Cl)((0,s.Cl)({timestamp:new Date},f),{context:u,integrations:a}),d),{messageId:h.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),function(e){!function(e){if(!(0,c.t2)(e))throw new A("Event","is nil");if("object"!=typeof e)throw new A("Event",T)}(e),function(e){if(!(0,c.Kg)(e.type))throw new A(".type",R)}(e),function(e){if(!(0,c.Kg)(e.messageId))throw new A(".messageId",R)}(e),"track"===e.type&&(function(e){if(!(0,c.Kg)(e.event))throw new A(".event",R)}(e),function(e){if(!(0,c.Qd)(e.properties))throw new A(".properties",T)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,c.Qd)(e.traits))throw new A(".traits",T)}(e)}(p),p},e}(),I=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,_.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,s.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,i,o){var a=e.prototype.track.call(this,t,n,r,i);return E(a,o),a},t.prototype.page=function(t,n,r,i,o,a){var s=e.prototype.page.call(this,t,n,r,i,o);return E(s,a),s},t.prototype.screen=function(t,n,r,i,o,a){var s=e.prototype.screen.call(this,t,n,r,i,o);return E(s,a),s},t.prototype.identify=function(t,n,r,i,o){var a=e.prototype.identify.call(this,t,n,r,i);return E(a,o),a},t.prototype.group=function(t,n,r,i,o){var a=e.prototype.group.call(this,t,n,r,i);return E(a,o),a},t.prototype.alias=function(t,n,r,i,o){var a=e.prototype.alias.call(this,t,n,r,i);return E(a,o),a},t}(O),N=function(e){return"addMiddleware"in e&&"destination"===e.type},L=a(5881),D=a(6115),M=a(9952),F=a(4980),V=function(e){function t(t){var n,r,i,o=e.call(this)||this;return o.criticalTasks=(i=0,{done:function(){return n},run:function(e){var t,o=e();return"object"==typeof(t=o)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1===++i&&(n=new Promise(function(e){return r=e})),o.finally(function(){return 0===--i&&r()})),o}}),o.plugins=[],o.failedInitializations=[],o.flushing=!1,o.queue=t,o.queue.on(D.g,function(){o.scheduleFlush(0)}),o}return(0,s.C6)(t,e),t.prototype.register=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r,i,o=this;return(0,s.YH)(this,function(a){switch(a.label){case 0:return this.plugins.push(t),r=function(n){o.failedInitializations.push(t.name),o.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),o.plugins=o.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(r),[3,4]);case 1:return a.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(i),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){var t;return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a;return(0,s.YH)(this,function(s){switch(s.label){case 0:return[4,this.criticalTasks.done()];case 1:s.sent(),n=Date.now(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=s.sent(),r=Date.now()-n,(i=e.failedDelivery())?(a=i.reason instanceof Error?i.reason:new Error(String(null!==(t=i.reason)&&void 0!==t?t:"Unknown delivery failure")),e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),[2,e]):(this.emit("delivery_success",e),e.stats.gauge("delivered",r),e.log("debug","Delivered",e.event),[2,e]);case 4:throw o=s.sent(),a=o,e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof M.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){var e,t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=r.sent(),t=!e.failedDelivery(),this.emit("flush",e,t),[3,4];case 3:return n=r.sent(),this.enqueuRetry(n,e)||(e.setFailedDelivery({reason:n}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=this.plugins.filter(function(t){var n,r,i;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var o=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(o=e[t])}),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)}),i=(t="type",n={},r.forEach(function(e){var r,i=void 0,o=e[t];void 0!==(i="string"!=typeof o?JSON.stringify(o):o)&&(n[i]=(0,s.fX)((0,s.fX)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[e],!1))}),n),o=i.before,a=void 0===o?[]:o,l=i.enrichment,u=void 0===l?[]:l,c=i.destination,d=void 0===c?[]:c,h=i.after;return{before:a,enrichment:u,destinations:d,after:void 0===h?[]:h}},t.prototype.flushOne=function(e){var t,n;return(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a,l,u,c,d,h,f,p,m,g,v;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),i=r.before,o=r.enrichment,a=0,l=i,s.label=1;case 1:return a<l.length?(u=l[a],[4,(0,F.D)(e,u)]):[3,4];case 2:(f=s.sent())instanceof M.j&&(e=f),this.emit("message_enriched",e,u),s.label=3;case 3:return a++,[3,1];case 4:c=0,d=o,s.label=5;case 5:return c<d.length?(h=d[c],[4,(0,F.C)(e,h)]):[3,8];case 6:(f=s.sent())instanceof M.j&&(e=f),this.emit("message_enriched",e,h),s.label=7;case 7:return c++,[3,5];case 8:return p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),m=p.destinations,g=p.after,[4,new Promise(function(t,n){setTimeout(function(){var r=m.map(function(t){return(0,F.C)(e,t)});Promise.all(r).then(t).catch(n)},0)})];case 9:return s.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),v=g.map(function(t){return(0,F.C)(e,t)}),[4,Promise.all(v)];case 10:return s.sent(),[2,e]}})})},t}(b.v),j=function(e){function t(t){return e.call(this,"string"==typeof t?new L.x(4,t):t)||this}return(0,s.C6)(t,e),t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return(0,m.a)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(V);function z(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"==typeof o.value&&(e[i]=e[i].bind(e))}}return e}var B={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},H=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},$=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){H(i,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){H(n,"set",e,t)}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(n){H(t,"remove",e,n)}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),W=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function U(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(B).includes(e)})}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var q=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=K({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",K({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,K({},this.attributes,t))},withConverter:function(t){return e(K({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Y=q;function G(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(Y.set(i,"1",a),Y.get(i))return Y.remove(i,a),o}catch(e){return}}}var X=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,s.Cl)((0,s.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:G(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=Y.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?Y.set(e,t,this.opts()):null===t?Y.remove(e,this.opts()):Y.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return Y.remove(e,this.opts())},e}(),J=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function Q(e){var t=e.map(function(e){var t,n;switch(function(e){return"object"==typeof e&&void 0!==e.name}(e)?(t=e.name,n=e.settings):t=e,t){case B.Cookie:return new X(n);case B.LocalStorage:return new J;case B.Memory:return new W;default:throw new Error("Unknown Store Type: ".concat(e))}});return t}function Z(e,t){return e.map(function(e){return t&&e===B.Cookie?{name:e,settings:t}:e})}var ee={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},te=function(){function e(e,t){void 0===e&&(e=ee);var n,r,i,o,a=this;this.options={},this.id=function(e){if(a.options.disable)return null;var t=a.identityStore.getAndSync(a.idKey);void 0!==e&&(a.identityStore.set(a.idKey,e),e!==t&&null!==t&&null!==e&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(ee.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(a.options.disable)return null;if(void 0===e){var r=null!==(t=a.identityStore.getAndSync(a.anonKey))&&void 0!==t?t:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(a.identityStore.set(a.anonKey,null),a.identityStore.getAndSync(a.anonKey)):(a.identityStore.set(a.anonKey,null!=e?e:(0,_.v4)()),a.identityStore.getAndSync(a.anonKey))},this.traits=function(e){var t;if(!a.options.disable)return null===e&&(e={}),e&&a.traitsStore.set(a.traitsKey,null!=e?e:{}),null!==(t=a.traitsStore.get(a.traitsKey))&&void 0!==t?t:{}},this.options=(0,s.Cl)((0,s.Cl)({},ee),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:ee.cookie.key,this.traitsKey=null!==(o=null===(i=e.localStorage)||void 0===i?void 0:i.key)&&void 0!==o?o:ee.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===B.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==B.Cookie});var l=this.legacyUserStore.get(ee.cookie.oldKey);l&&"object"==typeof l&&(l.id&&this.id(l.id),l.traits&&this.traits(l.traits)),z(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,s.Cl)((0,s.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[B.LocalStorage,B.Cookie,B.Memory];return e.disable?new $([]):e.persist?(void 0!==e.storage&&null!==e.storage&&U(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==B.LocalStorage})),n&&(r=r.filter(n)),new $(Q(Z(r,t)))):new $([new W])},e.defaults=ee,e}(),ne={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},re=function(e){function t(t,n){void 0===t&&(t=ne);var r=e.call(this,(0,s.Cl)((0,s.Cl)({},ne),t),n)||this;return r.anonymousId=function(e){},z(r),r}return(0,s.C6)(t,e),t}(te),ie=a(8167),oe=a(2453),ae=a(472),se=a(1298),le=function(e,t,n){n.getAndRemove(e).forEach(function(e){ve(t,e).catch(console.error)})},ue=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},ce=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("register"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},de=le.bind(void 0,"on"),he=le.bind(void 0,"setAnonymousId"),fe=function(e){if(pe(e)){var t=e.pop();return x(t)}},pe=function(e){return function(e){if(t=e,"object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase())return!1;var t;if("bpc"!==e.__t)return!1;for(var n in e)if(!S.includes(n))return!1;return!0}(e[e.length-1])},me=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},ge=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.calls[e])&&void 0!==t?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!pe(t.args)&&(t.args=(0,s.fX)((0,s.fX)([],t.args,!0),[C()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,se.X)()){var e=(0,ae.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map(function(e){var t=e[0],n=e.slice(1);return new me(t,n)});this.add.apply(this,t)}}},e}();function ve(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,"object"==typeof(o=n=e[t.method].apply(e,t.args))&&null!==o&&"then"in o&&"function"==typeof o.then?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}var o})})}var ye=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=ie.r,this._preInitBuffer=new ge,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.instance){var o=(n=t.instance)[e].apply(n,r);return Promise.resolve(o)}return new Promise(function(n,i){t._preInitBuffer.add(new me(e,r,n,i))})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.add(new me(e,r)),t)}},e}(),be=a(5791),_e=a(524),we=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t)||this;return i.retryTimeout=n,i.isRetryableWithoutCount=r,i.name="RateLimitError",i}return(0,s.C6)(t,e),t}(Error),Se=function(e){return(0,s.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)},xe={408:"retry",410:"retry",429:"retry",460:"retry",501:"drop",505:"drop",511:"drop"};function Ce(e,t,n,r){var i=null!=e?e:t;return Math.min(Math.max(i,n),r)}function Ee(e,t){var n;if(429!==e.status)return null;var r=null===(n=e.headers)||void 0===n?void 0:n.get("Retry-After");if(!r)return null;var i=parseInt(r,10);return Number.isNaN(i)?null:{retryAfterMs:1e3*Math.max(0,Math.min(i,t.maxRetryInterval)),fromHeader:!0}}function ke(e,t){return t.statusCodeOverrides[String(e)]||(e>=500?t.default5xxBehavior:e>=400?t.default4xxBehavior:"drop")}function Ae(e,t){var n,r,i,o,a=e||t?{rateLimitConfig:(0,s.Cl)((0,s.Cl)({},null==e?void 0:e.rateLimitConfig),null==t?void 0:t.rateLimitConfig),backoffConfig:(0,s.Cl)((0,s.Cl)((0,s.Cl)({},null==e?void 0:e.backoffConfig),null==t?void 0:t.backoffConfig),{statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},null===(n=null==e?void 0:e.backoffConfig)||void 0===n?void 0:n.statusCodeOverrides),null===(r=null==t?void 0:t.backoffConfig)||void 0===r?void 0:r.statusCodeOverrides)})}:void 0,l=null==a?void 0:a.rateLimitConfig,u=null==a?void 0:a.backoffConfig;return{rateLimitConfig:{maxRetryCount:Ce(null==l?void 0:l.maxRetryCount,10,0,100),maxRetryInterval:Ce(null==l?void 0:l.maxRetryInterval,300,.1,86400),maxRateLimitDuration:Ce(null==l?void 0:l.maxRateLimitDuration,43200,10,86400)},backoffConfig:{maxRetryCount:Ce(null==u?void 0:u.maxRetryCount,10,0,100),baseBackoffInterval:Ce(null==u?void 0:u.baseBackoffInterval,.5,.1,300),maxBackoffInterval:Ce(null==u?void 0:u.maxBackoffInterval,60,.1,86400),maxTotalBackoffDuration:Ce(null==u?void 0:u.maxTotalBackoffDuration,43200,60,604800),jitterPercent:Ce(null==u?void 0:u.jitterPercent,10,0,100),default4xxBehavior:null!==(i=null==u?void 0:u.default4xxBehavior)&&void 0!==i?i:"drop",default5xxBehavior:null!==(o=null==u?void 0:u.default5xxBehavior)&&void 0!==o?o:"retry",statusCodeOverrides:(0,s.Cl)((0,s.Cl)({},xe),null==u?void 0:u.statusCodeOverrides)}}}function Re(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function Te(e){return Re(e)>=450}function Pe(e,t){return{dispatch:function(n,r,i){var o=Se(null==e?void 0:e.headers),a=null==r?void 0:r.writeKey;if(a){var s=btoa(a+":");o.Authorization="Basic ".concat(s)}return i&&(o["X-Retry-Count"]=String(i)),(0,_e.h)(n,{credentials:null==e?void 0:e.credentials,keepalive:null==e?void 0:e.keepalive,headers:o,method:"post",body:JSON.stringify(r),priority:null==e?void 0:e.priority}).then(function(e){var n=e.status;if(!(n<400)){var r=null!=t?t:Ae(),i=ke(n,r.backoffConfig);if("drop"!==i){var o=Ee(e,r.rateLimitConfig);if(o)throw new we("Rate limit exceeded: ".concat(n),o.retryAfterMs,o.fromHeader)}if("retry"===i)throw new Error("Retryable error: ".concat(n));var a=new Error("Non-retryable error: ".concat(n));throw a.name="NonRetryableError",a}})}}}function Oe(e,t,n,r,i){var o,a=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var l=e.queue.failedInitializations||[];l.length>0&&(t._metadata={failedInitializations:l}),null!=i&&(i.attempts>1&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{retryCount:i.attempts})),i.attempts++);var u=[],c=[];for(var d in r){var h=r[d];"Segment.io"===d&&u.push(d),"bundled"===h.bundlingStatus&&u.push(d),"unbundled"===h.bundlingStatus&&c.push(d)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var m=p[f];c.includes(m)||c.push(m)}var g=null!==(o=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==o?o:{},v=[];return u.sort().forEach(function(e){var t;(null!==(t=g[e])&&void 0!==t?t:[]).forEach(function(e){v.push(e)})}),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{bundled:u.sort(),unbundled:c.sort(),bundledIds:v})),t}Object.defineProperty(Pe,"name",{value:"default",configurable:!0});var Ie=a(2613);function Ne(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return n=[],(0,m.a)()?[2,t]:[4,(0,Ie._)(function(){return t.length>0&&!(0,m.a)()},function(){return(0,s.sH)(r,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return(r=t.pop())?[4,(0,F.C)(r,e)]:[2];case 1:return i.sent()instanceof g.o||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}function Le(e,t,n,r){var i=this;e||setTimeout(function(){return(0,s.sH)(i,void 0,void 0,function(){var e,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:return e=!0,[4,Ne(n,t)];case 1:return i=o.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}})})},500*Math.random()+100)}var De=a(7947),Me=function(e){return"Segment.io"===e.name};function Fe(e,t,n){var r,i,o,a;window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(c)),c.clear()});var l=null!==(r=null==t?void 0:t.apiKey)&&void 0!==r?r:"",u=e.options.disableClientPersistence?new D.M(e.queue.queue.maxAttempts,[]):new L.x(e.queue.queue.maxAttempts,"".concat(l,":dest-Segment.io")),c=new Set,d=new WeakMap,h=!1,f=null!==(i=null==t?void 0:t.apiHost)&&void 0!==i?i:De.a,p=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",v="".concat(p,"://").concat(f),y=null===(a=null==n?void 0:n["Segment.io"])||void 0===a?void 0:a.httpConfig,b=Ae(null==t?void 0:t.httpConfig,y);!1!==e.options.retryQueue&&(u.maxAttempts=b.backoffConfig.maxRetryCount);var _=null==t?void 0:t.deliveryStrategy,w=_&&"strategy"in _&&"batching"===_.strategy?function(e,t,n,r){var i,o;void 0===r&&(r="https");var a,l,u,c=[],d=!1,h=null!==(i=null==t?void 0:t.size)&&void 0!==i?i:10,f=null!==(o=null==t?void 0:t.timeout)&&void 0!==o?o:5e3,p=null!=n?n:Ae(),m=0,v=0,y=!1,b=!1,_=0,w=0,S=0;function x(n,i){var o;if(0!==n.length){var a=null===(o=n[0])||void 0===o?void 0:o.writeKey,l=n.map(function(e){var t=e;return t.sentAt,(0,s.Tt)(t,["sentAt"])}),u=Se(null==t?void 0:t.headers);if(i>0&&(u["X-Retry-Count"]=String(i)),a){var c=btoa(a+":");u.Authorization="Basic ".concat(c)}var h=e.startsWith("http://")||e.startsWith("https://")?"":"".concat(r,"://");return(0,_e.h)("".concat(h).concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||d,headers:u,method:"post",body:JSON.stringify({writeKey:a,batch:l,sentAt:(new Date).toISOString()}),priority:null==t?void 0:t.priority}).then(function(e){var t=e.status;if(!(t<400)){var n=ke(t,p.backoffConfig);if("drop"!==n){var r=Ee(e,p.rateLimitConfig);if(r)throw new we("Rate limit exceeded: ".concat(t),r.retryAfterMs,r.fromHeader)}if("retry"===n)throw new Error("Retryable error: ".concat(t))}})}}function C(){c.length>0&&k(1)}function E(e){var n;return void 0===e&&(e=1),(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a;return(0,s.YH)(this,function(l){return y||(v=0,_=0,w=0,S=0),y=!1,b=!0,c.length?(r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=(0,s.fX)((0,s.fX)([],t,!0),[r],!1);if(t.length>0&&Te(i))return{batch:t,remaining:e.slice(n)};t.push(r)}return{batch:t,remaining:[]}}(c),i=r.batch,o=r.remaining,0===i.length?(b=!1,[2]):(c=o,a=v,v+=1,[2,null===(n=x(i,a))||void 0===n?void 0:n.then(function(e){return c.length>0&&k(1),e}).catch(function(n){var r;g.o.system().log("error","Error sending batch",n);var o,a=null!==(r=null==t?void 0:t.maxRetries)&&void 0!==r?r:p.backoffConfig.maxRetryCount,l="RateLimitError"===n.name,u=l&&n.isRetryableWithoutCount;if(!(u||e<=a))return C();if(u){if(++_>p.rateLimitConfig.maxRetryCount)return C();var d=n.retryTimeout;S+=d;var h=1e3*p.rateLimitConfig.maxRateLimitDuration;if(S>h)return C();m=d}if(!l){o=function(e,t){var n=1e3*t.baseBackoffInterval,r=1e3*t.maxBackoffInterval,i=n*Math.pow(2,e-1),o=Math.min(i,r),a=1+2*(Math.random()-.5)*(t.jitterPercent/100);return Math.max(0,o*a)}(e,p.backoffConfig),w+=o;var f=1e3*p.backoffConfig.maxTotalBackoffDuration;if(w>f)return C()}c=(0,s.fX)((0,s.fX)([],i,!0),c,!0),i.forEach(function(t){if("_metadata"in t){var n=t;n._metadata=(0,s.Cl)((0,s.Cl)({},n._metadata),{retryCount:e})}}),y=!0,k(u?e:e+1,o)}).finally(function(){b=!1})])):(b=!1,[2])})})}function k(e,t){void 0===e&&(e=1),a||(a=setTimeout(function(){a=void 0,E(e).catch(console.error)},m||t||f),m=0)}return l=function(e){if((d=e)&&c.length){var t=function(e){var t=[],n=0;return e.forEach(function(e){Re(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t}(c).map(function(e){return x(e,0)});Promise.all(t).catch(console.error)}},u=!1,window.addEventListener("pagehide",function(){u||l(u=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(u)return;u=!0}else u=!1;l(u)}),{dispatch:function(e,n,r){return(0,s.sH)(this,void 0,void 0,function(){var e;return(0,s.YH)(this,function(r){return c.push(n),y?[2]:(e=c.length>=h||Te(c)||(null==t?void 0:t.keepalive)&&function(e){return Re(e)>=54}(c),e||d?[2,b?k():E()]:[2,k()])})})}}}(f,_.config,b,p):Pe(null==_?void 0:_.config,b);function S(r){return(0,s.sH)(this,void 0,void 0,function(){var i,o,a,l;return(0,s.YH)(this,function(s){return(0,m.a)()?(u.push(r),Le(h,u,x,Le),[2,r]):(c.add(r),i=r.event.type.charAt(0),o=(0,be.W)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(o=function(e,t){var n,r,i,o,a=e.user();return t.previousId=null!==(i=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),t.userId=null!==(o=t.userId)&&void 0!==o?o:t.to,delete t.from,delete t.to,t}(e,o)),(a=u.getAttempts(r))>=u.maxAttempts?(c.delete(r),l=new Error("Retry attempts exhausted (".concat(a,"/").concat(u.maxAttempts,")")),r.setFailedDelivery({reason:l}),e.emit("error",{code:"delivery_failure",reason:l,ctx:r}),[2,r]):[2,w.dispatch("".concat(v,"/").concat(i),Oe(e,o,t,n,r),a).then(function(){return r}).catch(function(t){var n;if(r.log("error","Error sending event",t),"RateLimitError"===t.name){var i=(null!==(n=d.get(r))&&void 0!==n?n:0)+1;if(d.set(r,i),i>b.rateLimitConfig.maxRetryCount)r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r});else{var o=t.retryTimeout;u.pushWithDelay(r,o)}}else"NonRetryableError"===t.name?(r.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:r})):u.pushWithBackoff(r);return Le(h,u,x,Le),r}).finally(function(){c.delete(r)})])})})}var x={metadata:{writeKey:l,apiHost:f,protocol:p},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:S,identify:S,page:S,alias:S,group:S,screen:S};return u.todo&&Le(h,u,x,Le),x}var Ve="This is being deprecated and will be not be available in future releases of Analytics JS",je=(0,oe.m)(),ze=null==je?void 0:je.analytics,Be=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(Me))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function He(){console.warn(Ve)}var $e,We=function(e){function t(t,n,r,i,o){var a,l,u=this;(u=e.call(this)||this)._debug=!1,u.initialized=!1,u.user=function(){return u._user},u.init=u.initialize.bind(u),u.log=He,u.addIntegrationMiddleware=He,u.listeners=He,u.addEventListener=He,u.removeAllListeners=He,u.removeListener=He,u.removeEventListener=He,u.hasListeners=He,u.add=He,u.addIntegration=He;var c=null==n?void 0:n.cookie,d=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;u.queue=null!=r?r:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,i=n?new D.M(r,[]):new L.x(r,e);return new j(i)}("".concat(t.writeKey,":event-queue"),null==n?void 0:n.retryQueue,d),u.settings=new Be(t,u.queue);var h=null==n?void 0:n.storage;return u._universalStorage=u.createStore(d,h,c),u._user=null!=i?i:new te((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.user),c).load(),u._group=null!=o?o:new re((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.group),c).load(),u.eventFactory=new I(u._user),u.integrations=null!==(l=null==n?void 0:n.integrations)&&void 0!==l?l:{},u.options=null!=n?n:{},z(u),u}return(0,s.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new $([new W]):t&&U(t)?new $(Q(Z(t.stores,n))):new $(Q([B.LocalStorage,{name:B.Cookie,settings:n},B.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=d.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.track(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("track",r,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=fe(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.page(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("page",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=f(this._user).apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],this._user.identify(r,i),l=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=fe(t);if(0===t.length)return this._group;var i=f(this._group).apply(void 0,t),o=i[0],a=i[1],s=i[2],l=i[3];this._group.identify(o,a);var u=this._group.id(),c=this._group.traits(),d=this.eventFactory.group(u,c,s,this.integrations,r);return this._dispatch(d,l).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=fe(e),n=p.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.alias(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("alias",r,i,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=fe(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.screen(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("screen",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=g.o.system(),n=e.map(function(e){return r.queue.register(t,e,r)}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=g.o.system(),n=e.map(function(e){var n=r.queue.plugins.find(function(t){return t.name===e});if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n;return(0,s.YH)(this,function(r){return(n=new g.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,m.a)()&&!this.options.retryQueue?[2,n]:[2,y(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,s.sH)(t,void 0,void 0,function(){var t,n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(a.bind(a,5939))];case 1:return t=i.sent().sourceMiddlewarePlugin,n={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return n[e.name]=!0}),r=t(e,n),[4,this.register(r)];case 2:return i.sent(),[2]}})})})];case 1:return n.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(N).forEach(function(n){"*"!==e&&n.name.toLowerCase()!==e.toLowerCase()||n.addMiddleware.apply(n,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,a.e(538).then(a.bind(a,2552))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(Ve),(0,ae.Ud)(null!=ze?ze:this),this},t.prototype.normalize=function(e){return console.warn(Ve),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Ve),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return ie.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){return console.warn(Ve),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return console.warn(Ve),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(Ve),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(Ve),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?(e[t.name]=i,e):(e[t.name]=r,e)},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(b.v),Ue=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,s.C6)(t,e),t}(We),Ke=a(1094),qe=a(6251),Ye=a(5770);function Ge(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}function Xe(){if($e)return $e;var e=G(window.location.href);return $e={expires:31536e6,secure:!1,path:"/"},e&&($e.domain=e),$e}var Je,Qe,Ze=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,s.sH)(e,void 0,void 0,function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,Ge(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var n,r,i=t.event.context,o=i.page.search||"",a="object"==typeof o?function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach(function(e){return t.append(n,e)}):t.append(n,r)}),t.toString()}catch(e){return""}}(o):o;i.userAgent=navigator.userAgent,i.userAgentData=e.userAgentData;var l=navigator.userLanguage||navigator.language;void 0===i.locale&&void 0!==l&&(i.locale=l),null!==(n=i.library)&&void 0!==n||(i.library={name:"analytics.js",version:"".concat("web"===(0,se.X)()?"next":"npm:next","-").concat(ie.r)}),a&&!i.campaign&&(i.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var a=r.slice(4);"campaign"===a&&(a="name"),e[a]=(0,Ye.p)(o)}return e},{})}(a));var u=function(){var e=Y.get("_ga");if(e&&e.startsWith("amp"))return e}();u&&(i.amp={id:u}),function(e,t,n){var r,i=new $(n?[]:[new X(Xe())]),o=i.get("s:context.referrer"),a=null!==(r=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],a=i[1];if(t[o])return{id:a,type:t[o]}}}(e))&&void 0!==r?r:o;a&&(t&&(t.referrer=(0,s.Cl)((0,s.Cl)({},t.referrer),a)),i.set("s:context.referrer",a))}(a,i,null!==(r=e.instance.options.disableClientPersistence)&&void 0!==r&&r);try{i.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},et=a(3357),tt=a(5939),nt=a(4757),rt=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,qe.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,(0,tt.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new M.d({retry:!1,reason:"dropped by destination middleware"})),[2,new g.o(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,s.sH)(t,void 0,void 0,function(){var t,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw new Error("Something prevented the destination from getting ready");return(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,nt.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];a.label=1;case 1:return a.trys.push([1,3,,4]),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[a.sent()]),[2,n];case 3:throw o=a.sent(),(0,nt.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(o),o;case 4:return[2]}})})},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function it(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a,l;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,9,,10]),n=new RegExp("https://cdn.segment.(com|build)"),r=(0,u.I2)(),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(0,et.k)(a.replace(n,r))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,(0,et.k)(e.url.replace(n,r))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,(0,et.k)(e.url.replace(n,r))];case 7:s.sent(),s.label=8;case 8:return"function"==typeof window[e.libraryName]?[2,window[e.libraryName]]:[3,10];case 9:throw l=s.sent(),console.error("Failed to create PluginFactory",e),l;case 10:return[2]}})})}function ot(e,t,n,r,i,o){var a,l,u;return(0,s.sH)(this,void 0,void 0,function(){var c,d,h,f=this;return(0,s.YH)(this,function(p){switch(p.label){case 0:return c=[],d=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],h=(null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map(function(e){return(0,s.sH)(f,void 0,void 0,function(){var a,l,u,h,f,p,m;return(0,s.YH)(this,function(v){switch(v.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];v.label=1;case 1:return v.trys.push([1,6,,7]),(l=null==o?void 0:o.find(function(t){return t.pluginName===e.name}))?[3,3]:[4,it(e,null==r?void 0:r.obfuscate)];case 2:l=v.sent(),v.label=3;case 3:return(a=l)?(u=n[e.name],[4,a((0,s.Cl)((0,s.Cl)({},e.settings),u))]):[3,5];case 4:h=v.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})}(f=Array.isArray(h)?h:[h]),p=d.filter(function(t){return t.destinationName===e.creationName}),f.forEach(function(t){var n=new rt(e.creationName,t);p.length&&i&&n.addMiddleware(i),c.push(n)}),v.label=5;case 5:return[3,7];case 6:return m=v.sent(),console.warn("Failed to load Remote Plugin",m),(0,nt.y)(g.o.system(),{integrationName:e.name,methodName:"load",type:"action",didError:!0}),[3,7];case 7:return[2]}})})}),[4,Promise.all(h)];case 1:return p.sent(),[2,c.filter(Boolean)]}})})}var at=null!==(Je=(Qe=(0,oe.m)()).__SEGMENT_INSPECTOR__)&&void 0!==Je?Je:Qe.__SEGMENT_INSPECTOR__={},st=a(4568);function lt(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,ut(e,t)];case 1:return r.sent(),function(e,t){Object.keys(t.calls).forEach(function(n){t.getAndRemove(n).forEach(function(t){setTimeout(function(){ve(e,t).catch(console.error)},0)})})}(e,n),[2]}})})}var ut=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){return(0,s.YH)(this,function(n){switch(n.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})};function ct(e,t,n,r,i,o,u){var c,d,h;return void 0===i&&(i=[]),(0,s.sH)(this,void 0,void 0,function(){var f,p,m,g,v,y,b,_,w,S,x,C,E,k,A=this;return(0,s.YH)(this,function(R){switch(R.label){case 0:return function(e,t){he(e,t),de(e,t)}(n,u),f=null==i?void 0:i.filter(function(e){return"object"==typeof e}),p=null==i?void 0:i.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),function(e){var t,n,r;return"test"!==l().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,a.e(10).then(a.bind(a,6834)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return g=R.sent(),[3,3];case 2:g=void 0,R.label=3;case 3:return m=g,T=t,"test"!==l().NODE_ENV&&Object.keys(T.integrations).length>1||o.length>0?[4,a.e(50).then(a.bind(a,365)).then(function(i){return i.ajsDestinations(e,t,n.integrations,r,m,o)})]:[3,5];case 4:return y=R.sent(),[3,6];case 5:y=[],R.label=6;case 6:return v=y,t.legacyVideoPluginsEnabled?[4,a.e(694).then(a.bind(a,4503)).then(function(e){return e.loadLegacyVideoPlugins(n)})]:[3,8];case 7:R.sent(),R.label=8;case 8:return(null===(c=r.plan)||void 0===c?void 0:c.track)?[4,a.e(104).then(a.bind(a,681)).then(function(e){var n;return e.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,t)})]:[3,10];case 9:return _=R.sent(),[3,11];case 10:_=void 0,R.label=11;case 11:return b=_,w=(0,Ke.J)(t,r),[4,ot(t,n.integrations,w,r,m,p).catch(function(e){return console.error("Failed to load remote plugins",e),[]})];case 12:return S=R.sent(),x=(0,s.fX)((0,s.fX)([Ze],v,!0),S,!0),b&&x.push(b),!1===(null===(d=r.integrations)||void 0===d?void 0:d.All)&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]?[3,14]:(E=(C=x).push,[4,Fe(n,w["Segment.io"],t.integrations)]);case 13:E.apply(C,[R.sent()]),R.label=14;case 14:return[4,n.register.apply(n,(0,s.fX)((0,s.fX)([],x,!1),f,!1))];case 15:return k=R.sent(),[4,ce(n,u)];case 16:return R.sent(),Object.entries(null!==(h=t.enabledMiddleware)&&void 0!==h?h:{}).some(function(e){return e[1]})?[4,a.e(521).then(a.bind(a,6904)).then(function(e){var i=e.remoteMiddlewares;return(0,s.sH)(A,void 0,void 0,function(){var e,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return[4,i(k,t,r.obfuscate)];case 1:return e=a.sent(),o=e.map(function(e){return n.addSourceMiddleware(e)}),[2,Promise.all(o)]}})})})]:[3,18];case 17:R.sent(),R.label=18;case 18:return[4,ue(n,u)];case 19:return R.sent(),[2,k]}var T})})}var dt=function(e){function t(){var t=this,n=(0,qe.u)(),r=n.promise,i=n.resolve;return t=e.call(this,function(e){return r.then(function(t){return function(e,t,n){var r,i,o,a,l,c,d,h,f;return void 0===t&&(t={}),(0,s.sH)(this,void 0,void 0,function(){var p,m,v,y,b,_,w,S,x,C;return(0,s.YH)(this,function(E){switch(E.label){case 0:return!0===t.disable?[2,[new Ue,g.o.system()]]:(t.globalAnalyticsKey&&(0,ae.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,u.qQ)(e.cdnURL),t.initialPageview&&n.add(new me("page",[])),p=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),m=null!==(r=e.cdnURL)&&void 0!==r?r:(0,u.I2)(),null===(i=e.cdnSettings)||void 0===i?[3,1]:(y=i,[3,3]));case 1:return[4,(k=e.writeKey,A=m,(0,_e.h)("".concat(A,"/v1/projects/").concat(k,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw new Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:y=E.sent(),E.label=3;case 3:return v=y,t.updateCDNSettings&&(v=t.updateCDNSettings(v)),"function"!=typeof t.disable?[3,5]:[4,t.disable(v)];case 4:if(E.sent())return[2,[new Ue,g.o.system()]];E.label=5;case 5:return b=null===(a=null===(o=v.integrations["Segment.io"])||void 0===o?void 0:o.retryQueue)||void 0===a||a,t=(0,s.Cl)({retryQueue:b},t),function(e){var t;null===(t=at.attach)||void 0===t||t.call(at,e)}(_=new We((0,s.Cl)((0,s.Cl)({},e),{cdnSettings:v,cdnURL:m}),t)),w=null!==(l=e.plugins)&&void 0!==l?l:[],S=null!==(c=e.classicIntegrations)&&void 0!==c?c:[],x=null===(d=t.integrations)||void 0===d?void 0:d["Segment.io"],st.U.initRemoteMetrics((0,s.Cl)((0,s.Cl)({},v.metrics),{host:null!==(h=null==x?void 0:x.apiHost)&&void 0!==h?h:null===(f=v.metrics)||void 0===f?void 0:f.host,protocol:null==x?void 0:x.protocol})),[4,ct(e.writeKey,v,_,t,w,S,n)];case 6:return C=E.sent(),_.initialized=!0,_.emit("initialize",e,t),[4,lt(_,p,n)];case 7:return E.sent(),[2,[_,C]]}var k,A})})}(t[0],t[1],e)})})||this,t._resolveLoadStart=function(e,t){return i([e,t])},t}return(0,s.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(ye);const ht=(0,t.createContext)(void 0),ft=e=>{let{client:n,children:r}=e;return t.createElement(ht.Provider,{value:n},r)};var pt=a(7068),mt=a(5470),gt=a(4951),vt=a(2869),yt=a(728),bt=a(7608);const _t=Object.freeze([]),wt=Object.freeze({});function St(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const xt=new WeakSet,Ct={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Et(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Ct||e.startsWith("--")?String(t).trim():t+"px"}function kt(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}function At(e){return"function"==typeof e}const Rt=Symbol.for("sc-keyframes");function Tt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pt(e){return"object"==typeof e&&"styledComponentId"in e}const Ot=e=>null==e||!1===e||""===e,It=Symbol.for("react.client.reference");function Nt(e){return e.$$typeof===It}function Lt(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!Ot(r)&&(Array.isArray(r)&&xt.has(r)||At(r)?t.push(kt(n)+":",r,";"):Tt(r)?(t.push(n+" {"),Lt(r,t),t.push("}")):t.push(kt(n)+": "+Et(n,r)+";"))}}function Dt(e,t,n,r,i=[]){if(Ot(e))return i;const o=typeof e;if("string"===o)return i.push(e),i;if("function"===o)return Nt(e)?i:!At(a=e)||a.prototype&&a.prototype.isReactComponent||!t?(i.push(e),i):Dt(e(t),t,n,r,i);var a;if(Array.isArray(e)){for(let o=0;o<e.length;o++)Dt(e[o],t,n,r,i);return i}return Pt(e)?(i.push(`.${e.styledComponentId}`),i):function(e){return"object"==typeof e&&null!==e&&Rt in e}(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):Nt(e)?i:Tt(e)?(Lt(e,i),i):(i.push(e.toString()),i)}function Mt(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const Ft=e=>(xt.add(e),e);function Vt(e,...t){if(At(e)||Tt(e))return Ft(Dt(Mt(_t,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Dt(n):Ft(Dt(Mt(n,t)))}function jt(e,t,n=wt){if(!t)throw St(1,t);const r=(r,...i)=>e(t,n,Vt(r,...i));return r.attrs=r=>jt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>jt(e,t,Object.assign(Object.assign({},n),r)),r}var zt,Bt;function Ht(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}"undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process),Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(Bt=null!==(zt=Ht("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==zt?zt:Ht("SC_DISABLE_SPEEDY"))&&void 0!==Bt?Bt:"undefined"==typeof process||void 0===process.env||!1);const $t=t.createContext(void 0);function Wt(){const e=t.useContext($t);if(!e)throw St(18);return e}function Ut(e){const n=t.useContext($t),r=t.useMemo(()=>function(e,t){if(!e)throw St(14);if(At(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw St(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement($t.Provider,{value:r},e.children):null}$t.Consumer;const Kt=Symbol.for("react.memo"),qt=Symbol.for("react.forward_ref"),Yt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Gt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jt={[qt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Kt]:Xt};function Qt(e){return("type"in(t=e)&&t.type.$$typeof)===Kt?Xt:"$$typeof"in e?Jt[e.$$typeof]:Yt;var t}const Zt=Object.defineProperty,en=Object.getOwnPropertyNames,tn=Object.getOwnPropertySymbols,nn=Object.getOwnPropertyDescriptor,rn=Object.getPrototypeOf,on=Object.prototype;function an(e,t,n){if("string"!=typeof t){const r=rn(t);r&&r!==on&&an(e,r,n);const i=en(t).concat(tn(t)),o=Qt(e),a=Qt(t);for(let r=0;r<i.length;++r){const s=i[r];if(!(s in Gt||n&&n[s]||a&&s in a||o&&s in o)){const n=nn(t,s);try{Zt(e,s,n)}catch(e){}}}}return e}const sn=/(a)(d)/gi,ln=e=>String.fromCharCode(e+(e>25?39:97));const un=["fit-content","min-content","max-content"];let cn={};function dn(e){return function(e){return"string"==typeof e&&!0}(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}function hn(e,t,n=!1){if(!n&&!Tt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=hn(e[n],t[n]);else if(Tt(t))for(const n in t)e[n]=hn(e[n],t[n]);return e}const fn=Object.prototype.hasOwnProperty,pn=a(6864);var mn;const gn=(mn=pn.StyleSheet,yn=class{constructor(e){this.rules=e}generateStyleObject(e){return function(e,t){const n=function(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ln(t%52)+n;return(ln(t%52)+n).replace(sn,"$1-$2")}(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,e)>>>0);if(!cn[n]){const r=[];for(const[t,n]of function(e){const t=function(e){if(-1===e.indexOf("/*"))return e;let t="",n=0,r=0;const i=e.length;for(;n<i;){const i=e.charCodeAt(n);if(r){if(92===i){t+=e.substring(n,n+2),n+=2;continue}i===r&&(r=0),t+=e[n],n++}else if(34===i||39===i)r=i,t+=e[n],n++;else if(47===i&&42===e.charCodeAt(n+1)){const t=e.indexOf("*/",n+2);if(-1===t)break;n=t+2}else t+=e[n],n++}return t}(e),n=[],r=t.length;let i=0;for(;i<r;){for(;i<r;){const e=t[i];if(" "===e||"\n"===e||"\r"===e||"\t"===e||";"===e||"}"===e)i++;else{if("{"!==e)break;{let e=1;for(i++;i<r&&e>0;)"{"===t[i]?e++:"}"===t[i]&&e--,i++}}}if(i>=r)break;const e=t.indexOf(":",i);if(-1===e)break;const o=t.substring(i,e).trim();let a=0,s=0,l=e+1;for(;l<r;){const e=t.charCodeAt(l);if(s)92===e?l++:e===s&&(s=0);else if(34===e||39===e)s=e;else if(40===e)a++;else if(41===e)a>0&&a--;else if(59===e&&0===a)break;l++}if(l>=r&&(0!==s||a>0)){const n=t.indexOf(";",e+1);i=-1!==n?n+1:r;continue}const u=t.substring(e+1,l).trim();if(o&&u){if("@"===o[0]||-1!==o.indexOf("{")){let e=0,n=l;for(let n=i;n<l;n++)"{"===t[n]?e++:"}"===t[n]&&e--;for(;n<r&&e>0;)"{"===t[n]?e++:"}"===t[n]&&e--,n++;i=n;continue}n.push([o,u])}i=l+1}return n}(e))!un.includes(n)&&r.push([t,n]);const i=(0,bt.Ay)(r,["borderWidth","borderColor"]);cn[n]=t.create({generated:i}).generated}return cn[n]}(function(e,t){return e.join(t||"")}(Dt(this.rules,e)),mn)}},(e,n,r)=>{const i=Pt(e),o=e,{displayName:a=dn(e),attrs:s=_t}=n,l=i&&o.attrs?o.attrs.concat(s).filter(Boolean):s;let u=n.shouldForwardProp;if(i&&o.shouldForwardProp){const e=o.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;u=(n,r)=>e(n,r)&&t(n,r)}else u=e}const c=(e,n)=>function(e,n,r){const{attrs:i,inlineStyle:o,defaultProps:a,shouldForwardProp:s,target:l}=e,u=t.useContext?t.useContext($t):void 0,c=function(e,t,n=wt){return e.theme!==n.theme&&e.theme||t||n.theme}(n,u,a)||wt;let d,h;const f=t.useRef?t.useRef(null):{current:null},p=f.current;if(null!==p&&p[1]===c&&function(e,t,n){const r=e,i=t;let o=0;for(const e in i)if(fn.call(i,e)&&(o++,r[e]!==i[e]))return!1;return o===n}(p[0],n,p[2]))d=p[3],h=p[4];else{d=function(e=wt,t,n){const r=Object.assign(Object.assign({},t),{theme:e});for(let e=0;e<n.length;e++){const t=At(n[e])?n[e](Object.assign({},r)):n[e];for(const e in t)r[e]=t[e]}return r}(c,n,i),h=o.generateStyleObject(d);let e=0;for(const t in n)fn.call(n,t)&&e++;f.current=[n,c,e,d,h]}const m=d.as||n.as||l,g=function(e,t,n){const r={};for(const i in e)"$"!==i[0]&&"as"!==i&&"theme"!==i&&("forwardedAs"===i?r.as=e[i]:n&&!n(i,t)||(r[i]=e[i]));return r}(d,m,s);return g.style=t.useMemo?t.useMemo(()=>At(n.style)?e=>[h].concat(n.style(e)):n.style?[h].concat(n.style):h,[n.style,h]):At(n.style)?e=>[h].concat(n.style(e)):n.style?[h].concat(n.style):h,r&&(g.ref=r),(0,t.createElement)(m,g)}(d,e,n);c.displayName=a;let d=t.forwardRef(c);return d.attrs=l,d.inlineStyle=new yn(i?o.inlineStyle.rules.concat(r):r),d.displayName=a,d.shouldForwardProp=u,d.styledComponentId=!0,d.target=i?o.target:e,Object.defineProperty(d,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)hn(e,n,!0);return e}({},o.defaultProps,e):e}}),an(d,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),d}),vn=e=>jt(gn,e);var yn;["ActivityIndicator","Button","FlatList","Image","ImageBackground","InputAccessoryView","KeyboardAvoidingView","Modal","Pressable","RefreshControl","SafeAreaView","ScrollView","SectionList","StatusBar","Switch","Text","TextInput","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","TouchableWithoutFeedback","View","VirtualizedList"].forEach(e=>Object.defineProperty(vn,e,{enumerable:!0,configurable:!1,get(){if(e in pn&&pn[e])return vn(pn[e]);throw new Error(`${e} is not available in the currently-installed version of react-native`)}}));const bn=e=>"string"==typeof e,_n=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},wn=e=>null==e?"":""+e,Sn=/###/g,xn=e=>e&&e.indexOf("###")>-1?e.replace(Sn,"."):e,Cn=e=>!e||bn(e),En=(e,t,n)=>{const r=bn(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Cn(e))return{};const t=xn(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Cn(e)?{}:{obj:e,k:xn(r[i])}},kn=(e,t,n)=>{const{obj:r,k:i}=En(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=En(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=En(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},An=(e,t)=>{const{obj:n,k:r}=En(e,t);if(n)return n[r]},Rn=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?bn(e[r])||e[r]instanceof String||bn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Rn(e[r],t[r],n):e[r]=t[r]);return e},Tn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Pn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const On=e=>bn(e)?e.replace(/[&<>"'\/]/g,e=>Pn[e]):e,In=[" ",",","?","!",";"],Nn=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Ln=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},Dn=e=>e&&e.replace("_","-"),Mn={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Fn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Mn,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(bn(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Fn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Fn(this.logger,e)}}var Vn=new Fn;class jn{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])})}}class zn extends jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):bn(n)&&i?a.push(...n.split(i)):a.push(n)));const s=An(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&bn(n)?Ln(this.data&&this.data[e]&&this.data[e][t],n,i):s}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),kn(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(bn(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=An(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Rn(s,n,i):s={...s,...n},kn(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Bn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};const Hn={};class $n extends jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Vn.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=In.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=Nn.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:bn(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:bn(i)?[i]:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const c=this.resolve(e,t);let d=c&&c.res;const h=c&&c.usedKey||o,f=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!bn(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(g&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||bn(m)&&Array.isArray(d))if(g&&bn(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const u=void 0!==t.count&&!bn(t.count),h=$n.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&h&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=h&&g!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?g:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=h&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],o+n,t[`defaultValue${n}`]||g)})}):r(e,o,g))}d=this.extendTranslation(d,e,t,c,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?f:h;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=bn(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&!bn(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s=bn(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Bn.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bn(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==a.count&&!bn(a.count),d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==a.context&&(bn(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!Hn[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Hn[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),h){const n=`${l}${this.options.contextSeparator}${a.context}`;o.push(n),c&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!bn(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const Wn=e=>e.charAt(0).toUpperCase()+e.slice(1);class Un{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vn.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Dn(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Dn(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(bn(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Wn(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Wn(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Wn(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),bn(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return bn(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):bn(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}let Kn=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],qn={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Yn=["v1","v2","v3"],Gn=["v4"],Xn={zero:0,one:1,two:2,few:3,many:4,other:5};class Jn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Vn.create("pluralResolver"),this.options.compatibilityJSON&&!Gn.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Kn.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:qn[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=Dn("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Xn[e]-Xn[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Yn.includes(this.options.compatibilityJSON)}}const Qn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=An(e,n);return void 0!==r?r:An(t,n)})(e,t,n);return!o&&i&&bn(n)&&(o=Ln(e,n,r),void 0===o&&(o=Ln(t,n,r))),o},Zn=e=>e.replace(/\$/g,"$$$$");class er{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Vn.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:On,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Tn(i):o||"{{",this.suffix=a?Tn(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Tn(d):h||Tn("$t("),this.nestingSuffix=f?Tn(f):p||Tn(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=Qn(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(Qn(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,c=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Zn(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Zn(this.escape(e)):Zn(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof u){const t=u(e,i,r);o=bn(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(c){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else bn(o)||this.useRawValueToEscape||(o=wn(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),c?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&!bn(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&!bn(r))return r;bn(r)||(r=wn(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const tr=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(Dn(r),i),t[a]=s),s(n)}};class nr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Vn.create("formatter"),this.options=e,this.formats={number:tr((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:tr((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:tr((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:tr((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:tr((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=tr(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const o=i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e);return o}}class rr extends jn{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Vn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:i}=En(e,t,Object);r[i]=r[i]||[],r[i].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();bn(e)&&(e=this.languageUtils.toResolveHierarchy(e)),bn(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const ir=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),bn(e[1])&&(t.defaultValue=e[1]),bn(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),or=e=>(bn(e.ns)&&(e.ns=[e.ns]),bn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),bn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ar=()=>{};class sr extends jn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=or(e),this.services={},this.logger=Vn,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(bn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=ir();this.options={...r,...this.options,...or(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Vn.init(i(this.modules.logger),this.options):Vn.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=nr);const n=new Un(this.options);this.store=new zn(this.options.resources,this.options);const o=this.services;o.logger=Vn,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Jn(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new er(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new rr(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new $n(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ar),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const o=_n(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;const n=bn(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=_n();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ar),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Bn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=_n();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=bn(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{o(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const u=r.options.keySeparator||".";let c;return c=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${u}${e}`):o.keyPrefix?`${o.keyPrefix}${u}${e}`:e,r.t(c,o)};return bn(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=_n();return this.options.ns?(bn(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=_n();bn(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Un(ir());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new sr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new sr(r);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new zn(this.store.data,r),i.services.resourceStore=i.store),i.translator=new $n(i.services,r),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const lr=sr.createInstance();lr.createInstance=sr.createInstance,lr.createInstance,lr.dir,lr.init,lr.loadResources,lr.reloadResources,lr.use,lr.changeLanguage,lr.getFixedT,lr.t,lr.exists,lr.setDefaultNamespace,lr.hasLoadedNamespace,lr.loadNamespaces,lr.loadLanguages,a(4915),Object.create(null);const ur={},cr=(e,t,n,r)=>{pr(n)&&ur[n]||(pr(n)&&(ur[n]=new Date),((e,t,n,r)=>{const i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);pr(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,n,r))},dr=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},hr=(e,t,n)=>{e.loadNamespaces(t,dr(e,n))},fr=(e,t,n,r)=>{if(pr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return hr(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,dr(e,r))},pr=e=>"string"==typeof e,mr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,gr={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vr=e=>gr[e];let yr,br={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(mr,vr)};const _r={type:"3rdParty",init(e){((e={})=>{br={...br,...e}})(e.options.react),(e=>{yr=e})(e)}},wr=(0,t.createContext)();class Sr{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const xr=(e,t,n,r)=>e.getFixedT(t,n,r),Cr=JSON.parse('{"chat.placeholder.text":"Describe the diamond you\'re looking for...","chat.send.text":"Send","chat.thinking.text":"Thinking","chat.error.text":"Sorry, something went wrong. Please try again.","chat.authError.text":"Chat is unavailable (missing user authentication).","chat.loadingOlder.text":"Loading older messages...","chat.chatStartedAt.text":"Chat Started at {{time}}","results.found.text":"Found","results.matchPreferences.text":"that match your preferences:","results.noResultsSuggestion.text":"Try modifying your search criteria to explore more options.","results.viewAll.text":"View All {{total}} diamonds","results.showMore.text":"Show more","results.showLess.text":"Show less","results.loading.text":"Loading...","product.labGrownDiamond.text":"Lab-Grown Diamond","product.naturalDiamond.text":"Natural Diamond","product.pair.text":"Pair","product.diamonds.text":"diamonds","product.pricePerCarat.text":"p/ct","product.total.text":"total","product.depth.text":"D","product.table.text":"T","product.pluralSuffix.text":"s","header.title.text":"AI Search","header.beta.text":"Beta","header.clearChat.text":"Clear Chat","header.minimize.text":"Minimize","beta.notice.text":"This beta feature uses AI-generated results that should be verified.","chat.welcome.message.text":"Describe the diamond you\'re looking for — for example, \\"2ct F VS2 under $10,000\\" or \\"1–2ct D–F VS pear\\" — and I\'ll take it from there.","time.am.text":"am","time.pm.text":"pm","search.fancyColor.text":"Fancy Color","search.fcOvertone.text":"FC Overtone","search.cut.text":"Cut","search.polish.text":"Pol","search.symmetry.text":"Sym","search.fluorescence.text":"Flour","search.lab.text":"Lab","search.depth.text":"Depth","search.tableLabel.text":"table","search.measLength.text":"Meas Length","search.measWidth.text":"Meas Width","search.measDepth.text":"Meas Depth","search.ratio.text":"Ratio","search.totalPrice.text":"Total","search.pricePerCarat.text":"PPC","search.itemLocation.text":"Item Loc","search.supplier.text":"Supplier","search.parcel.text":"Parcel","search.threeX.text":"3X","search.heartsAndArrows.text":"H&A","search.colorEnhanced.text":"Color Enhanced","search.noBgm.text":"No BGM","search.threeVgPlus.text":"3VG+","search.eightX.text":"8X","search.crown.text":"Crown","search.pavilion.text":"Pavilion","search.more.text":"+ {{count}} more","search.carat.text":"ct."}');function Er(){return"undefined"!=typeof window&&window.localStorage?window.localStorage:null}const kr={getItem:async e=>{try{if("persist:searchFilters"===e){const t="undefined"!=typeof window&&window.sessionStorage?window.sessionStorage:null;return t?t.getItem(e):null}const t=Er();return t?t.getItem(e):null}catch{return null}},setItem:async(e,t)=>{try{const n=Er();n&&n.setItem(e,t)}catch{}},removeItem:async e=>{try{const t=Er();t&&t.removeItem(e)}catch{}}};let Ar=!1;const Rr={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}};function Tr(){return"web"===r.A.OS?kr:(Ar||(console.warn("[vdb-ai-chat] AsyncStorage not initialized. Call initStorage(AsyncStorage) at app startup."),Ar=!0),Rr)}const Pr=async e=>Tr().getItem(e),Or=async(e,t)=>Tr().setItem(e,t),Ir=async e=>Tr().removeItem(e),Nr=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{const n=await Tr().getItem(e);return n?JSON.parse(n):t}catch{return t}},Lr=async(e,t)=>{try{await Tr().setItem(e,JSON.stringify(t))}catch{}},Dr=lr.createInstance(),Mr=(()=>{const e={};for(const[t,n]of Object.entries(Cr)){const r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++){const t=r[e];t in i||(i[t]={}),i=i[t]}i[r[r.length-1]]=n}return e})();Dr.use(_r).init({compatibilityJSON:"v3",lng:"en",fallbackLng:"en",resources:{en:{translation:Mr}},interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Fr=e=>{const t={};for(const[n,r]of Object.entries(e)){const e=n.split(".");let i=t;for(let t=0;t<e.length-1;t++){const n=e[t];n in i||(i[n]={}),i=i[n]}i[e[e.length-1]]=r}return t},Vr=async()=>{try{const e=await Pr("persist:root");if(!e)return null;const t=JSON.parse(e),n="string"==typeof t?.globalData?JSON.parse(t.globalData):t?.globalData,r=n?.ai_chat_bot;return r?.translations||null}catch{return null}},jr=(e,t)=>e&&Object.keys(e).length>0?e:t&&Object.keys(t).length>0?t:Cr,zr=async e=>{const t=e?.locale||"en",n=await Vr(),r=e?.translations,i=jr(n,r),o=Fr(i);Dr.addResourceBundle(t,"translation",o,!0,!0),Dr.language!==t&&await Dr.changeLanguage(t)},Br=()=>((e,n={})=>{const{i18n:r}=n,{i18n:i,defaultNS:o}=(0,t.useContext)(wr)||{},a=r||i||yr;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Sr),!a){cr(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return pr(t)?t:"object"==typeof(n=t)&&null!==n&&pr(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&cr(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...br,...a.options.react,...n},{useSuspense:l,keyPrefix:u}=s;let c=e||o||a.options?.defaultNS;c=pr(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces?.(c);const d=(a.isInitialized||a.initializedStoreOnce)&&c.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(cr(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,a,s)),h=((e,n,r,i)=>(0,t.useCallback)(xr(e,n,r,i),[e,n,r,i]))(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),f=()=>h,p=()=>xr(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),[m,g]=(0,t.useState)(f);let v=c.join();n.lng&&(v=`${n.lng}${v}`);const y=((e,n)=>{const r=(0,t.useRef)();return(0,t.useEffect)(()=>{r.current=e},[e,n]),r.current})(v),b=(0,t.useRef)(!0);(0,t.useEffect)(()=>{const{bindI18n:e,bindI18nStore:t}=s;b.current=!0,d||l||(n.lng?fr(a,n.lng,c,()=>{b.current&&g(p)}):hr(a,c,()=>{b.current&&g(p)})),d&&y&&y!==v&&b.current&&g(p);const r=()=>{b.current&&g(p)};return e&&a?.on(e,r),t&&a?.store.on(t,r),()=>{b.current=!1,a&&e&&e?.split(" ").forEach(e=>a.off(e,r)),t&&a&&t.split(" ").forEach(e=>a.store.off(e,r))}},[a,v]),(0,t.useEffect)(()=>{b.current&&d&&g(f)},[a,u,d]);const _=[m,a,d];if(_.t=m,_.i18n=a,_.ready=d,d)return _;if(!d&&!l)return _;throw new Promise(e=>{n.lng?fr(a,n.lng,c,()=>e()):hr(a,c,()=>e())})})("translation",{i18n:Dr});let Hr=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Hr=e)}catch{Hr=yt.A}const $r=e=>{let{disabled:n,isEmpty:r}=e;const i=n||r,o=Wt();return t.createElement(Hr,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/send.svg"},resizeMode:"contain",style:{...Yr.buttonIcon,tintColor:i?o["core-04"]||"#ACACB3":o["core-05"]||"#020001",cursor:i?"auto":"pointer"}})},Wr=e=>{let{value:n,onChangeText:r,onSend:i,disabled:o,placeholder:a,inputRef:s}=e;const l=Wt(),{t:u}=Br();return t.createElement(Ur,{theme:l},t.createElement(Kr,{ref:s,id:"chat-input",style:[Yr.inputWeb],placeholder:a||u("chat.placeholder.text","Describe the diamond you're looking for..."),placeholderTextColor:l["core-06"]||"#999",value:n,onChangeText:r,onSubmitEditing:i,editable:!o,autoFocus:!0}),t.createElement(qr,{onPress:i,disabled:o},t.createElement($r,{disabled:o,isEmpty:""===n.trim()})))},Ur=vn.View`
3
3
  flex-direction: row;
4
4
  padding-horizontal: 12px;
5
5
  padding-vertical: 16px;
@@ -11,7 +11,7 @@
11
11
  border-color: ${e=>{let{theme:t}=e;return t["core-04"]||"#ACACB3"}};
12
12
  border-width: 1;
13
13
  height: 56px;
14
- `,Cn=gn.TextInput`
14
+ `,Kr=vn.TextInput`
15
15
  flex: 1;
16
16
  color: ${e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}};
17
17
  font-family: "Roboto";
@@ -25,7 +25,7 @@
25
25
  padding-vertical: 0;
26
26
  background-color: transparent;
27
27
  border-width: 0;
28
- `,En=gn.TouchableOpacity`
28
+ `,qr=vn.TouchableOpacity`
29
29
  margin-left: 0;
30
30
  padding: 0;
31
31
  justify-content: center;
@@ -34,7 +34,7 @@
34
34
  aspect-ratio: 1;
35
35
  border-radius: 0px;
36
36
  background-color: ${e=>{let{theme:t}=e;return t["core-01"]||"#FFFFFF"}};
37
- `,xn=i.A.create({webShadow:{..."web"===r.A.OS?{boxShadow:"2px 8px 24px -6px rgba(55, 54, 64, 0.26)"}:{}},nativeShadow:{shadowColor:"#373640",shadowOffset:{width:2,height:8},shadowOpacity:.26,shadowRadius:12,elevation:3},inputWeb:{..."web"===r.A.OS?{outlineStyle:"none",outlineWidth:0,boxShadow:"none"}:{}},buttonIcon:{height:24,width:24},sendIconText:{fontSize:18,fontWeight:"700",textAlign:"center"}}),kn=e=>{let{suggestions:r,onSelect:i,variant:o="default"}=e;if(!r.length)return null;const a="inline"===o?n.A:vt.A,s=Ut();return t.createElement(a,{showsVerticalScrollIndicator:!1,contentContainerStyle:[Tn.container,"inline"===o&&Tn.containerInline],style:[Tn.scroll,"inline"===o&&Tn.scrollInline]},r.map((e,a)=>t.createElement(t.Fragment,null,t.createElement(An,{key:`${e}-${a}`,theme:s,variant:o,onPress:()=>i(e),activeOpacity:.75},t.createElement(Rn,null,e)),a<r.length-1&&t.createElement(n.A,{style:Tn.spacer}))))},An=gn.TouchableOpacity`
37
+ `,Yr=i.A.create({webShadow:{..."web"===r.A.OS?{boxShadow:"2px 8px 24px -6px rgba(55, 54, 64, 0.26)"}:{}},nativeShadow:{shadowColor:"#373640",shadowOffset:{width:2,height:8},shadowOpacity:.26,shadowRadius:12,elevation:3},inputWeb:{..."web"===r.A.OS?{outlineStyle:"none",outlineWidth:0,boxShadow:"none"}:{}},buttonIcon:{height:24,width:24},sendIconText:{fontSize:18,fontWeight:"700",textAlign:"center"}}),Gr=e=>{let{suggestions:r,onSelect:i,variant:o="default"}=e;if(!r.length)return null;const a="inline"===o?n.A:gt.A,s=Wt();return t.createElement(a,{showsVerticalScrollIndicator:!1,contentContainerStyle:[Qr.container,"inline"===o&&Qr.containerInline],style:[Qr.scroll,"inline"===o&&Qr.scrollInline]},r.map((e,a)=>t.createElement(t.Fragment,null,t.createElement(Xr,{key:`${e}-${a}`,theme:s,variant:o,onPress:()=>i(e),activeOpacity:.75},t.createElement(Jr,null,e)),a<r.length-1&&t.createElement(n.A,{style:Qr.spacer}))))},Xr=vn.TouchableOpacity`
38
38
  background-color: ${e=>{let{theme:t,variant:n}=e;return"inline"===n?t["core-01"]||"#FFFFFF":t["core-02"]||"#EDEDF2"}};
39
39
  border-radius: 6px;
40
40
  padding-horizontal: 8px;
@@ -43,13 +43,13 @@
43
43
  align-self: stretch;
44
44
  justify-content: center;
45
45
  align-items: flex-start;
46
- `,Rn=gn.Text`
46
+ `,Jr=vn.Text`
47
47
  color: ${e=>{let{theme:t}=e;return t["core-05"]||"#1A1A1A"}};
48
48
  font-size: 14px;
49
49
  font-weight: 500;
50
50
  font-family: "Roboto-Medium";
51
51
  text-align: left;
52
- `,Tn=i.A.create({scroll:{maxWidth:"80%",alignSelf:"flex-start",paddingHorizontal:8},scrollInline:{maxWidth:"100%",alignSelf:"stretch",paddingHorizontal:0},container:{paddingVertical:0,flexDirection:"column",justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch"},containerInline:{gap:6},spacer:{width:4,height:4}}),Pn=(0,t.memo)(kn);var In=a(3384);function On(){return"undefined"!=typeof window&&window.localStorage?window.localStorage:null}const Nn={getItem:async e=>{try{if("persist:searchFilters"===e){const t="undefined"!=typeof window&&window.sessionStorage?window.sessionStorage:null;return t?t.getItem(e):null}const t=On();return t?t.getItem(e):null}catch{return null}},setItem:async(e,t)=>{try{const n=On();n&&n.setItem(e,t)}catch{}},removeItem:async e=>{try{const t=On();t&&t.removeItem(e)}catch{}}};let Ln=!1;const Dn={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}};function Mn(){return"web"===r.A.OS?Nn:(Ln||(console.warn("[vdb-ai-chat] AsyncStorage not initialized. Call initStorage(AsyncStorage) at app startup."),Ln=!0),Dn)}const Fn=async e=>Mn().getItem(e),Vn=async e=>Mn().removeItem(e),zn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{const n=await Mn().getItem(e);return n?JSON.parse(n):t}catch{return t}},jn=async(e,t)=>{try{await Mn().setItem(e,JSON.stringify(t))}catch{}},Bn=In.A.get("window");function Hn(e){const t=new Date(e);let n=t.getHours();const r=t.getMinutes(),i=n>=12?"pm":"am";return n%=12,n=n||12,`${n}:${r<10?`0${r}`:r} ${i}`}let Wn=function(e){return e.LIKE="1",e.DISLIKE="2",e.UNSET="0",e}({});function Un(e){const t="string"==typeof e?parseFloat(e):e;return isNaN(t)?String(e):t.toLocaleString()}function $n(e,t,n){if("price_per_carat"===e)return Un(Math.round(Number(t)));if("total_sales_price"===e){let e=Number(t);return n&&(e=Math.round(e)),Un(e)}return Un(t)}const Yn=async()=>{try{const e=await zn("persist:userInfo",{});if(!e?.user)return null;if("string"==typeof e.user)try{return JSON.parse(e.user)}catch{return null}return e.user}catch{return null}};let Kn=function(e){return e.WEB="web",e.IOS="ios",e.ANDROID="android",e}({}),qn=function(e){return e.WIDGET_OPENED="ai_chat_widget_opened",e.WIDGET_CLOSED="ai_chat_widget_closed",e.CHAT_CLEARED="ai_chat_cleared",e}({}),Gn=function(e){return e.AI_CHAT_WIDGET="ai_chat_widget",e}({}),Xn=function(e){return e.WIDGET_OPENED="widget_opened",e.WIDGET_CLOSED="widget_closed",e.CHAT_CLEARED="chat_cleared",e.PRODUCT_PREVIEW_CLICKED="product_preview_clicked",e.SHOW_ALL_RESULTS_CLICKED="show_all_results_clicked",e.SEARCH_INITIATED="search_initiated",e.NO_RESULTS_FOUND="no_results_found",e}({});const Qn=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return/iPad/.test(e)||/\bMac/.test(e)&&navigator.maxTouchPoints>0&&!/iPhone/.test(e)},Jn=e=>{let{searchPayload:t,priceMode:n,vdbSetting:r,searchResultViewType:i}=e;return(t?.cut_from||t?.cut_to||t?.polish_from||t?.polish_to||t?.symmetry_from||t?.symmetry_to)&&(t.cutGrades=[],t.polishes=[],t.symmetries=[],t?.shapes||(t.shapes=[])),t?.cut_from&&t.cutGrades.push(t?.cut_from),t?.cut_to&&t.cutGrades.push(t?.cut_to),t?.polish_from&&t.polishes.push(t?.polish_from),t?.polish_to&&t.polishes.push(t?.polish_to),t?.symmetry_from&&t.symmetries.push(t?.symmetry_from),t?.symmetry_to&&t.symmetries.push(t?.symmetry_to),t?.three_x&&(t.lab_grown?(t.cutGrades=["Excellent","8X"],t.polishes=["Excellent","8X"],t.symmetries=["Excellent","8X"],t.cps_three_x_options=["8X","Excellent"],t.cut_from="Excellent",t.cut_to="8X",t.polish_from="Excellent",t.polish_to="8X",t.symmetry_from="Excellent",t.symmetry_to="8X"):(t.cutGrades=["Excellent","Excellent"],t.polishes=["Excellent","Excellent"],t.symmetries=["Excellent","Excellent"],t.cut_from="Excellent",t.cut_to="Excellent",t.polish_from="Excellent",t.polish_to="Excellent",t.symmetry_from="Excellent",t.symmetry_to="Excellent"),delete t.three_x),t?.three_vg_plus&&t.lab_grown&&(t.cutGrades=["Very Good","8X"],t.polishes=["Very Good","8X"],t.symmetries=["Very Good","8X"],t.cut_from="Very Good",t.cut_to="8X",t.polish_from="Very Good",t.polish_to="8X",t.symmetry_from="Very Good",t.symmetry_to="8X",t.cps_three_vg_plus_options=["8X","Very Good"]),t?.eight_x&&t.lab_grown&&(t.cutGrades=["8X","8X"],t.polishes=["8X","8X"],t.symmetries=["8X","8X"],t.cut_from="8X",t.cut_to="8X",t.polish_from="8X",t.polish_to="8X",t.symmetry_from="8X",t.symmetry_to="8X"),t?.page_size&&delete t.page_size,t.price_mode=n,t.vdb_setting=r?"true":"false",t.results_view_type=i||"grid",t.featured=t.featured||"false",t.pair="pair"===t.pair?"pair":"other",t.with_available_items=!!t.with_available_items,t.page_number&&delete t.page_number,t.preference=t.preference||[],t.depth_percent_from=t.depth_percent_from??"0",t.depth_percent_to=t.depth_percent_to??"100",t.table_percent_from=t.table_percent_from??"0",t.table_percent_to=t.table_percent_to??"100",(t.price_total_from||t.price_total_to)&&(t.total_or_price_per_carat="total_sales_price"),(t.price_per_carat_from||t.price_per_carat_to)&&(t.total_or_price_per_carat="price_per_carat"),t.cert_num&&(t.cert_num=(e=>{const t=e.trim(),n=t.toLowerCase(),r=n.split(",");return r.length>1?r.map(e=>e.trim().replace(/^vdb-?/i,"")).join(","):n.startsWith("vdb-")?t.replace(/^VDB-/i,""):n.startsWith("vdb")?t.replace(/^VDB/i,""):t})(t.cert_num),delete t.pair),t},Zn=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={},r=[];if(n.featured=e?.featured&&"true"===e?.featured?"true":"false",e?.shapes&&e?.shapes?.length)if(n.shapes=e?.shapes||[],t&&n.shapes.length>3){const e=n.shapes.slice(0,3),t=n.shapes.length-3,i=`${e.join(", ")} + ${t} more`;r.push(i)}else r.push(n.shapes.join(", "));let i="";if((e?.size_from||e?.minCarat)&&(n.minCarat=e?.size_from??e?.minCarat,i+=n.minCarat+"ct."),(e?.size_to||e?.maxCarat)&&(n.maxCarat=e?.size_to??e?.maxCarat,i+=" - "+n.maxCarat+"ct."),r.push(i),e?.color_from||e?.simpleColors?.length){let t="";n.simpleColors=[],n.simpleColors.push(e?.color_from??[]),t+=e?.color_from,e?.color_to&&(n.simpleColors||(n.simpleColors=[]),n.simpleColors.push(e?.color_to??[]),t+=" - "+e?.color_to),e?.simpleColors&&e?.simpleColors?.length&&(n.simpleColors=e?.simpleColors||[],t=n.simpleColors.join(" - ")),t&&r.push(t)}if(e?.fancy_colors&&e?.fancy_colors?.length||e?.fancyColors1&&e.fancyColors1?.length){n.fancyColors1=e?.fancy_colors||e?.fancyColors1||[];let t="Fancy Color: "+n.fancyColors1.join(" - ");r.push(t)}if(e?.fancy_color_overtones&&e?.fancy_color_overtones?.length||e?.fancyColorsOvertones&&e.fancyColorsOvertones?.length){n.fancyColorsOvertones=e?.fancy_color_overtones||e?.fancyColorsOvertones||[];let t="FC Overtone: "+n?.fancyColorsOvertones?.join(", ");r.push(t)}if(n.clarities=[],e?.clarity_from&&n.clarities.push(e?.clarity_from),e?.clarity_to&&n.clarities.push(e?.clarity_to),e?.clarities?.length&&(n.clarities=e?.clarities??[]),n?.clarities?.length&&r.push(n?.clarities.join(" - ")),n.cutGrades=[],e?.cut_from&&n.cutGrades.push(e?.cut_from),e?.cut_to&&n.cutGrades.push(e?.cut_to),e.cutGrades?.length&&(n.cutGrades=e.cutGrades),n.cutGrades.length){let e="Cut: "+n.cutGrades.join(" - ");r.push(e)}if(n.polishes=[],e?.polish_from&&n.polishes.push(e?.polish_from),e?.polish_to&&n.polishes.push(e?.polish_to),e?.polishes?.length&&(n.polishes=e?.polishes),n.polishes?.length){let e="Pol: "+n.polishes.join(" - ");r.push(e)}if(n.symmetries=[],e?.polish_from&&n.symmetries.push(e?.symmetry_from),e?.polish_to&&n.symmetries.push(e?.symmetry_to),e.symmetries?.length&&(n.symmetries=e.symmetries),n.symmetries?.length){let e="Sym: "+n.symmetries.join(" - ");r.push(e)}if(e?.fluorescence_intensities?.length?n.fluorescences=e?.fluorescence_intensities||[]:e?.fluorescences?.length&&(n.fluorescences=e?.fluorescences||[]),n?.fluorescences?.length>0){let e="Flour: "+n.fluorescences.join(", ");r.push(e)}if(e?.labs&&e?.labs?.length){n.labs=e?.labs||[];let t="Lab: "+n.labs.join(", ");r.push(t)}let o="";(e?.depth_percent_from&&e?.depth_percent_from>=0||e?.minDepth&&e?.minDepth>=0)&&(n.minDepth=e?.depth_percent_from??e.minDepth,o+="Depth: "+n.minDepth),(e?.depth_percent_to&&e?.depth_percent_to>=0||e?.maxDepth&&e?.maxDepth>=0)&&(n.maxDepth=e?.depth_percent_to??e?.maxDepth,o+=" - "+n.maxDepth+"%"),o&&r.push(o);let a="";(e?.table_percent_from&&e?.table_percent_from>=0||e?.minTable&&e?.minTable>=0)&&(n.minTable=e?.table_percent_from??e?.minTable,a+="table: "+n.minTable),(e?.table_percent_to&&e?.table_percent_to>=0||e?.maxTable&&e?.maxTable>=0)&&(n.maxTable=e?.table_percent_to??e?.maxTable,a+=" - "+n.maxTable+"%"),a&&r.push(a);let s="";(e?.meas_length_from||e?.meas_length_to)&&(n.meas_length_from=e?.meas_length_from??"0",s="Meas Length: "+n.meas_length_from),e?.meas_length_to&&(n.meas_length_to=e?.meas_length_to,s+=" - "+n.meas_length_to),s&&r.push(s);let l="";if((e?.meas_width_from||e?.meas_width_to)&&(n.meas_width_from=e?.meas_width_from??"0",l="Meas Width: "+n.meas_width_from),e?.meas_width_to&&(n.meas_width_to=e?.meas_width_to,l+=" - "+n.meas_width_to),l&&r.push(l),e?.meas_height_from||e?.meas_height_to?n.meas_height_from=e?.meas_height_from??"0":(e?.minDepth||e?.maxDepth)&&(n.meas_height_from=e?.minDepth??"0"),e?.meas_height_to?n.meas_height_to=e?.meas_height_to:e?.maxDepth&&(n.meas_height_to=e?.maxDepth),n.meas_height_from&&n.meas_height_to){let e="Meas Depth: "+n.meas_height_from+" - "+n.meas_height_to;r.push(e)}if((e?.meas_ratio_from||e?.meas_ratio_to)&&(n.meas_ratio_from=e?.meas_ratio_from??"0"),e?.meas_ratio_to&&(n.meas_ratio_to=e?.meas_ratio_to),e?.meas_ratio_from&&e?.meas_ratio_to){let e=" Ratio: "+n.meas_ratio_from+" - "+n.meas_ratio_to;r.push(e)}let u="";(e?.price_total_from&&e?.price_total_from||e?.minBudget&&e?.minBudget)&&(n.minBudget=e?.price_total_from??e?.minBudget,u+="Total: "+n.minBudget),(e?.price_total_to&&e?.price_total_to>=0||e?.maxBudget&&e?.maxBudget>=0)&&(n.maxBudget=e?.price_total_to??e?.maxBudget,u+=" - "+n.maxBudget),u&&r.push(u);let c="";if((e?.price_per_carat_from||e?.minPricePerCt)&&(n.minPricePerCt=e?.price_per_carat_from??e?.minPricePerCt,c+="PPC: "+n.minPricePerCt),(e?.price_per_carat_to||e?.maxPricePerCt)&&(n.maxPricePerCt=e?.price_per_carat_to??e?.maxPricePerCt,c+=" - "+n.maxPricePerCt),c&&r.push(c),e?.location_for&&(n.location_for=e?.location_for||"",r.push(n.location_for)),e?.vendor_locations&&e?.vendor_locations?.length){n.vendor_locations=e?.vendor_locations||[];let t="Item Loc: "+n.vendor_locations.join(", ");r.push(t)}if(e?.company_names&&e?.company_names?.length||e?.companyNames&&e?.companyNames?.length){n.companyNames=e?.company_names||e?.companyNames||[];let t="Supplier: "+n.companyNames.join(",");r.push(t)}if(e?.countries&&e?.countries?.length&&(n.countries=e?.countries||[],r.push(n.countries.join(", "))),e?.cities&&e?.citie?.length&&(n.cities=e?.cities||[],r.push(n.cities.join(", "))),e?.growth_type&&e?.growth_type?.length){n.growth_type=e?.growth_type||[];let t="Growth: "+n.growth_type.join(",");r.push(t)}n.total_or_price_per_carat=e?.total_or_price_per_carat||"",n.argyle=e?.argyle||{},e?.group_ids&&e?.group_ids?.length&&(n.group_ids=e?.group_ids||[],r.push(n.group_ids.join(", "))),e?.certifications&&e?.certifications?.length&&(n.certifications=e?.certifications||[],r.push(n.certifications.join(", "))),e?.parcel&&(n.parcel=e?.parcel,r.push("Parcel")),e?.three_x&&!0===e?.three_x&&(n.three_x=!0,r.push("3X")),e?.hearts_and_arrows&&"Hearts and Arrows"===e?.hearts_and_arrows&&(n.hearts_and_arrows=e?.hearts_and_arrows,r.push("H&A")),e?.enhancements&&e?.enhancements?.length&&(n.enhancements=e?.enhancements||[],-1!==n.enhancements.indexOf("HPHT")&&(n.enhancements[n.enhancements.indexOf("HPHT")]="Color Enhanced"),r.push(n.enhancements.join(", "))),e?.eye_clean&&Array.isArray(e.eye_clean)&&(n.eye_clean=e.eye_clean,r.push(n.eye_clean.join(", "))),e?.no_bgm&&(n.no_bgm=e?.no_bgm,r.push("No BGM")),e?.three_vg_plus&&(n.three_vg_plus=e?.three_vg_plus,r.push("3VG+")),e?.eight_x&&(n.eight_x=e?.eight_x,r.push("8X")),e?.inclusion_pattern&&(n.inclusion_pattern=e?.inclusion_pattern),e?.intensity_black_code&&(n.intensity_black_code=e?.intensity_black_code),e?.inclusion_open&&(n.inclusion_open=e?.inclusion_open),e?.with_images&&(n.with_images=e?.with_images),e?.certified_pairs&&(n.certified_pairs=e?.certified_pairs),e?.with_available_items&&(n.with_available_items=e?.with_available_items),e?.pair&&(n.pair=e?.pair),e?.discount_percent_from&&(n.discount_percent_from=e?.discount_percent_from),e?.discount_percent_to&&(n.discount_percent_to=e?.discount_percent_to);let d="",f="Crown";e?.crown_percent_from&&e?.crown_percent_from>=0&&(n.crown_percent_from=e?.crown_percent_from,d+=f+": "+n.crown_percent_from+"%"),e?.crown_percent_to&&e?.crown_percent_to>=0&&(n.crown_percent_to=e?.crown_percent_to,d+=""===d?f+": 0% - "+n.crown_percent_to+"%":" - "+n.crown_percent_to+"%"),e?.crown_angle_from&&e?.crown_angle_from>=0&&(n.crown_angle_from=e?.crown_angle_from,d+=""===d?f+": "+n.crown_angle_from+"°":", "+n.crown_angle_from+"°"),e?.crown_angle_to&&e?.crown_angle_to>=0&&(n.crown_angle_to=e?.crown_angle_to,d+=""===d?"0° - "+n.crown_angle_to+"°":void 0===e?.crown_angle_from?", 0° - "+n.crown_angle_to+"°":" - "+n.crown_angle_to+"°"),d&&r.push(d);let h="",p="Pavilion";return e?.pavilion_percent_from&&e?.pavilion_percent_from>0&&(n.pavilion_percent_from=e?.pavilion_percent_from,h+=p+": "+n.pavilion_percent_from+"%"),e?.pavilion_percent_to&&e?.pavilion_percent_to>0&&(n.pavilion_percent_to=e?.pavilion_percent_to,h+=""===h?p+": 0% - "+n.pavilion_percent_to+"%":" - "+n.pavilion_percent_to+"%"),e?.pavilion_angle_from&&e?.pavilion_angle_from>0&&(n.pavilion_angle_from=e?.pavilion_angle_from,h+=""===h?p+": "+n.pavilion_angle_from+"°":", "+n.pavilion_angle_from+"°"),e?.pavilion_angle_to&&e?.pavilion_angle_to>0&&(n.pavilion_angle_to=e?.pavilion_angle_to,h+=""===h?"0° - "+n.pavilion_angle_to+"°":void 0===e?.pavilion_angle_from?", 0° - "+n.pavilion_angle_to+"°":" - "+n.pavilion_angle_to+"°"),h&&r.push(h),{title:r.filter(Boolean).join(" | "),options:n}};let er=function(e){return e.diam="diam",e.gem="gem",e.jewelry="jewelry",e.lab="lab",e.default="default",e}({}),tr=function(e){return e[e.primary=0]="primary",e[e.secondary=1]="secondary",e[e.tertiary=2]="tertiary",e}({}),nr=function(e){return e.DIAMOND="diamond",e.LAB_GROWN_DIAMOND="lab_grown_diamond",e.GEMSTONE="gemstone",e.JEWELRY="jewelry",e.LABGROWN_JEWELRY="lab_grown_jewelry",e}({});const rr=e=>{switch(e){case nr.DIAMOND:return"diam-06";case nr.GEMSTONE:return"gem-06";case nr.JEWELRY:return"jewelry-06";case nr.LAB_GROWN_DIAMOND:case nr.LABGROWN_JEWELRY:return"lab-06";default:return"diam-06"}},ir=e=>{switch(e){case nr.DIAMOND:return"diam-03";case nr.GEMSTONE:return"gem-03";case nr.JEWELRY:return"jewelry-03";case nr.LAB_GROWN_DIAMOND:case nr.LABGROWN_JEWELRY:return"lab-03";default:return"diam-03"}},or=e=>{if(e)return["Champagne","Cognac","Chameleon"].includes(e)},ar=gn.View`
52
+ `,Qr=i.A.create({scroll:{maxWidth:"80%",alignSelf:"flex-start",paddingHorizontal:8},scrollInline:{maxWidth:"100%",alignSelf:"stretch",paddingHorizontal:0},container:{paddingVertical:0,flexDirection:"column",justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch"},containerInline:{gap:6},spacer:{width:4,height:4}}),Zr=(0,t.memo)(Gr),ei=a(3384).A.get("window");function ti(e,t){const n=new Date(e);let r=n.getHours();const i=n.getMinutes(),o=r>=12?t("time.pm.text","pm"):t("time.am.text","am");return r%=12,r=r||12,`${r}:${i<10?`0${i}`:i} ${o}`}let ni=function(e){return e.LIKE="1",e.DISLIKE="2",e.UNSET="0",e}({});function ri(e){const t="string"==typeof e?parseFloat(e):e;return isNaN(t)?String(e):t.toLocaleString()}function ii(e,t,n){if("price_per_carat"===e)return ri(Math.round(Number(t)));if("total_sales_price"===e){let e=Number(t);return n&&(e=Math.round(e)),ri(e)}return ri(t)}const oi=async()=>{try{const e=await Nr("persist:userInfo",{});if(!e?.user)return null;if("string"==typeof e.user)try{return JSON.parse(e.user)}catch{return null}return e.user}catch{return null}};let ai=function(e){return e.WEB="web",e.IOS="ios",e.ANDROID="android",e}({}),si=function(e){return e.WIDGET_OPENED="ai_chat_widget_opened",e.WIDGET_CLOSED="ai_chat_widget_closed",e.CHAT_CLEARED="ai_chat_cleared",e}({}),li=function(e){return e.AI_CHAT_WIDGET="ai_chat_widget",e}({}),ui=function(e){return e.WIDGET_OPENED="widget_opened",e.WIDGET_CLOSED="widget_closed",e.CHAT_CLEARED="chat_cleared",e.PRODUCT_PREVIEW_CLICKED="product_preview_clicked",e.SHOW_ALL_RESULTS_CLICKED="show_all_results_clicked",e.SEARCH_INITIATED="search_initiated",e.NO_RESULTS_FOUND="no_results_found",e}({});const ci=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return/iPad/.test(e)||/\bMac/.test(e)&&navigator.maxTouchPoints>0&&!/iPhone/.test(e)},di=e=>{let{searchPayload:t,priceMode:n,vdbSetting:r,searchResultViewType:i}=e;return(t?.cut_from||t?.cut_to||t?.polish_from||t?.polish_to||t?.symmetry_from||t?.symmetry_to)&&(t.cutGrades=[],t.polishes=[],t.symmetries=[],t?.shapes||(t.shapes=[])),t?.cut_from&&t.cutGrades.push(t?.cut_from),t?.cut_to&&t.cutGrades.push(t?.cut_to),t?.polish_from&&t.polishes.push(t?.polish_from),t?.polish_to&&t.polishes.push(t?.polish_to),t?.symmetry_from&&t.symmetries.push(t?.symmetry_from),t?.symmetry_to&&t.symmetries.push(t?.symmetry_to),t?.three_x&&(t.lab_grown?(t.cutGrades=["Excellent","8X"],t.polishes=["Excellent","8X"],t.symmetries=["Excellent","8X"],t.cps_three_x_options=["8X","Excellent"],t.cut_from="Excellent",t.cut_to="8X",t.polish_from="Excellent",t.polish_to="8X",t.symmetry_from="Excellent",t.symmetry_to="8X"):(t.cutGrades=["Excellent","Excellent"],t.polishes=["Excellent","Excellent"],t.symmetries=["Excellent","Excellent"],t.cut_from="Excellent",t.cut_to="Excellent",t.polish_from="Excellent",t.polish_to="Excellent",t.symmetry_from="Excellent",t.symmetry_to="Excellent"),delete t.three_x),t?.three_vg_plus&&t.lab_grown&&(t.cutGrades=["Very Good","8X"],t.polishes=["Very Good","8X"],t.symmetries=["Very Good","8X"],t.cut_from="Very Good",t.cut_to="8X",t.polish_from="Very Good",t.polish_to="8X",t.symmetry_from="Very Good",t.symmetry_to="8X",t.cps_three_vg_plus_options=["8X","Very Good"]),t?.eight_x&&t.lab_grown&&(t.cutGrades=["8X","8X"],t.polishes=["8X","8X"],t.symmetries=["8X","8X"],t.cut_from="8X",t.cut_to="8X",t.polish_from="8X",t.polish_to="8X",t.symmetry_from="8X",t.symmetry_to="8X"),t?.page_size&&delete t.page_size,t.price_mode=n,t.vdb_setting=r?"true":"false",t.results_view_type=i||"grid",t.featured=t.featured||"false",t.pair="pair"===t.pair?"pair":"other",t.with_available_items=!!t.with_available_items,t.page_number&&delete t.page_number,t.preference=t.preference||[],t.depth_percent_from=t.depth_percent_from??"0",t.depth_percent_to=t.depth_percent_to??"100",t.table_percent_from=t.table_percent_from??"0",t.table_percent_to=t.table_percent_to??"100",(t.price_total_from||t.price_total_to)&&(t.total_or_price_per_carat="total_sales_price"),(t.price_per_carat_from||t.price_per_carat_to)&&(t.total_or_price_per_carat="price_per_carat"),t.cert_num&&(t.cert_num=(e=>{const t=e.trim(),n=t.toLowerCase(),r=n.split(",");return r.length>1?r.map(e=>e.trim().replace(/^vdb-?/i,"")).join(","):n.startsWith("vdb-")?t.replace(/^VDB-/i,""):n.startsWith("vdb")?t.replace(/^VDB/i,""):t})(t.cert_num),delete t.pair),t},hi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r={},i=[];const o=(e,t)=>n?n(e):t,a=o("search.carat.text","ct.");if(r.featured=e?.featured&&"true"===e?.featured?"true":"false",e?.shapes&&e?.shapes?.length)if(r.shapes=e?.shapes||[],t&&r.shapes.length>3){const e=r.shapes.slice(0,3),t=r.shapes.length-3,o=n?n("search.more.text","+ {{count}} more",{count:t}):`+ ${t} more`,a=`${e.join(", ")} ${o}`;i.push(a)}else i.push(r.shapes.join(", "));let s="";if((e?.size_from||e?.minCarat)&&(r.minCarat=e?.size_from??e?.minCarat,s+=r.minCarat+a),(e?.size_to||e?.maxCarat)&&(r.maxCarat=e?.size_to??e?.maxCarat,s+=" - "+r.maxCarat+a),i.push(s),e?.color_from||e?.simpleColors?.length){let t="";r.simpleColors=[],r.simpleColors.push(e?.color_from??[]),t+=e?.color_from,e?.color_to&&(r.simpleColors||(r.simpleColors=[]),r.simpleColors.push(e?.color_to??[]),t+=" - "+e?.color_to),e?.simpleColors&&e?.simpleColors?.length&&(r.simpleColors=e?.simpleColors||[],t=r.simpleColors.join(" - ")),t&&i.push(t)}if(e?.fancy_colors&&e?.fancy_colors?.length||e?.fancyColors1&&e.fancyColors1?.length){r.fancyColors1=e?.fancy_colors||e?.fancyColors1||[];let t=o("search.fancyColor.text","Fancy Color")+": "+r.fancyColors1.join(" - ");i.push(t)}if(e?.fancy_color_overtones&&e?.fancy_color_overtones?.length||e?.fancyColorsOvertones&&e.fancyColorsOvertones?.length){r.fancyColorsOvertones=e?.fancy_color_overtones||e?.fancyColorsOvertones||[];let t=o("search.fcOvertone.text","FC Overtone")+": "+r?.fancyColorsOvertones?.join(", ");i.push(t)}if(r.clarities=[],e?.clarity_from&&r.clarities.push(e?.clarity_from),e?.clarity_to&&r.clarities.push(e?.clarity_to),e?.clarities?.length&&(r.clarities=e?.clarities??[]),r?.clarities?.length&&i.push(r?.clarities.join(" - ")),r.cutGrades=[],e?.cut_from&&r.cutGrades.push(e?.cut_from),e?.cut_to&&r.cutGrades.push(e?.cut_to),e.cutGrades?.length&&(r.cutGrades=e.cutGrades),r.cutGrades.length){let e=o("search.cut.text","Cut")+": "+r.cutGrades.join(" - ");i.push(e)}if(r.polishes=[],e?.polish_from&&r.polishes.push(e?.polish_from),e?.polish_to&&r.polishes.push(e?.polish_to),e?.polishes?.length&&(r.polishes=e?.polishes),r.polishes?.length){let e=o("search.polish.text","Pol")+": "+r.polishes.join(" - ");i.push(e)}if(r.symmetries=[],e?.polish_from&&r.symmetries.push(e?.symmetry_from),e?.polish_to&&r.symmetries.push(e?.symmetry_to),e.symmetries?.length&&(r.symmetries=e.symmetries),r.symmetries?.length){let e=o("search.symmetry.text","Sym")+": "+r.symmetries.join(" - ");i.push(e)}if(e?.fluorescence_intensities?.length?r.fluorescences=e?.fluorescence_intensities||[]:e?.fluorescences?.length&&(r.fluorescences=e?.fluorescences||[]),r?.fluorescences?.length>0){let e=o("search.fluorescence.text","Flour")+": "+r.fluorescences.join(", ");i.push(e)}if(e?.labs&&e?.labs?.length){r.labs=e?.labs||[];let t=o("search.lab.text","Lab")+": "+r.labs.join(", ");i.push(t)}let l="";(e?.depth_percent_from&&e?.depth_percent_from>=0||e?.minDepth&&e?.minDepth>=0)&&(r.minDepth=e?.depth_percent_from??e.minDepth,l+=o("search.depth.text","Depth")+": "+r.minDepth),(e?.depth_percent_to&&e?.depth_percent_to>=0||e?.maxDepth&&e?.maxDepth>=0)&&(r.maxDepth=e?.depth_percent_to??e?.maxDepth,l+=" - "+r.maxDepth+"%"),l&&i.push(l);let u="";(e?.table_percent_from&&e?.table_percent_from>=0||e?.minTable&&e?.minTable>=0)&&(r.minTable=e?.table_percent_from??e?.minTable,u+=o("search.tableLabel.text","table")+": "+r.minTable),(e?.table_percent_to&&e?.table_percent_to>=0||e?.maxTable&&e?.maxTable>=0)&&(r.maxTable=e?.table_percent_to??e?.maxTable,u+=" - "+r.maxTable+"%"),u&&i.push(u);let c="",d=o("search.measLength.text","Meas Length");(e?.meas_length_from||e?.meas_length_to)&&(r.meas_length_from=e?.meas_length_from??"0",c=d+": "+r.meas_length_from),e?.meas_length_to&&(r.meas_length_to=e?.meas_length_to,c+=" - "+r.meas_length_to),c&&i.push(c);let h="",f=o("search.measWidth.text","Meas Width");if((e?.meas_width_from||e?.meas_width_to)&&(r.meas_width_from=e?.meas_width_from??"0",h=f+": "+r.meas_width_from),e?.meas_width_to&&(r.meas_width_to=e?.meas_width_to,h+=" - "+r.meas_width_to),h&&i.push(h),e?.meas_height_from||e?.meas_height_to?r.meas_height_from=e?.meas_height_from??"0":(e?.minDepth||e?.maxDepth)&&(r.meas_height_from=e?.minDepth??"0"),e?.meas_height_to?r.meas_height_to=e?.meas_height_to:e?.maxDepth&&(r.meas_height_to=e?.maxDepth),r.meas_height_from&&r.meas_height_to){let e=o("search.measDepth.text","Meas Depth")+": "+r.meas_height_from+" - "+r.meas_height_to;i.push(e)}if((e?.meas_ratio_from||e?.meas_ratio_to)&&(r.meas_ratio_from=e?.meas_ratio_from??"0"),e?.meas_ratio_to&&(r.meas_ratio_to=e?.meas_ratio_to),e?.meas_ratio_from&&e?.meas_ratio_to){let e=o("search.ratio.text","Ratio")+": "+r.meas_ratio_from+" - "+r.meas_ratio_to;i.push(e)}let p="",m=o("search.totalPrice.text","Total");(e?.price_total_from&&e?.price_total_from||e?.minBudget&&e?.minBudget)&&(r.minBudget=e?.price_total_from??e?.minBudget,p+=m+": "+r.minBudget),(e?.price_total_to&&e?.price_total_to>=0||e?.maxBudget&&e?.maxBudget>=0)&&(r.maxBudget=e?.price_total_to??e?.maxBudget,p+=" - "+r.maxBudget),p&&i.push(p);let g="",v=o("search.pricePerCarat.text","PPC");if((e?.price_per_carat_from||e?.minPricePerCt)&&(r.minPricePerCt=e?.price_per_carat_from??e?.minPricePerCt,g+=v+": "+r.minPricePerCt),(e?.price_per_carat_to||e?.maxPricePerCt)&&(r.maxPricePerCt=e?.price_per_carat_to??e?.maxPricePerCt,g+=" - "+r.maxPricePerCt),g&&i.push(g),e?.location_for&&(r.location_for=e?.location_for||"",i.push(r.location_for)),e?.vendor_locations&&e?.vendor_locations?.length){r.vendor_locations=e?.vendor_locations||[];let t=o("search.itemLocation.text","Item Loc")+": "+r.vendor_locations.join(", ");i.push(t)}if(e?.company_names&&e?.company_names?.length||e?.companyNames&&e?.companyNames?.length){r.companyNames=e?.company_names||e?.companyNames||[];let t=o("search.supplier.text","Supplier")+": "+r.companyNames.join(",");i.push(t)}if(e?.countries&&e?.countries?.length&&(r.countries=e?.countries||[],i.push(r.countries.join(", "))),e?.cities&&e?.citie?.length&&(r.cities=e?.cities||[],i.push(r.cities.join(", "))),e?.growth_type&&e?.growth_type?.length){r.growth_type=e?.growth_type||[];let t="Growth: "+r.growth_type.join(",");i.push(t)}r.total_or_price_per_carat=e?.total_or_price_per_carat||"",r.argyle=e?.argyle||{},e?.group_ids&&e?.group_ids?.length&&(r.group_ids=e?.group_ids||[],i.push(r.group_ids.join(", "))),e?.certifications&&e?.certifications?.length&&(r.certifications=e?.certifications||[],i.push(r.certifications.join(", "))),e?.parcel&&(r.parcel=e?.parcel,i.push(o("search.parcel.text","Parcel"))),e?.three_x&&!0===e?.three_x&&(r.three_x=!0,i.push(o("search.threeX.text","3X"))),e?.hearts_and_arrows&&"Hearts and Arrows"===e?.hearts_and_arrows&&(r.hearts_and_arrows=e?.hearts_and_arrows,i.push(o("search.heartsAndArrows.text","H&A"))),e?.enhancements&&e?.enhancements?.length&&(r.enhancements=e?.enhancements||[],-1!==r.enhancements.indexOf("HPHT")&&(r.enhancements[r.enhancements.indexOf("HPHT")]=o("search.colorEnhanced.text","Color Enhanced")),i.push(r.enhancements.join(", "))),e?.eye_clean&&Array.isArray(e.eye_clean)&&(r.eye_clean=e.eye_clean,i.push(r.eye_clean.join(", "))),e?.no_bgm&&(r.no_bgm=e?.no_bgm,i.push(o("search.noBgm.text","No BGM"))),e?.three_vg_plus&&(r.three_vg_plus=e?.three_vg_plus,i.push(o("search.threeVgPlus.text","3VG+"))),e?.eight_x&&(r.eight_x=e?.eight_x,i.push(o("search.eightX.text","8X"))),e?.inclusion_pattern&&(r.inclusion_pattern=e?.inclusion_pattern),e?.intensity_black_code&&(r.intensity_black_code=e?.intensity_black_code),e?.inclusion_open&&(r.inclusion_open=e?.inclusion_open),e?.with_images&&(r.with_images=e?.with_images),e?.certified_pairs&&(r.certified_pairs=e?.certified_pairs),e?.with_available_items&&(r.with_available_items=e?.with_available_items),e?.pair&&(r.pair=e?.pair),e?.discount_percent_from&&(r.discount_percent_from=e?.discount_percent_from),e?.discount_percent_to&&(r.discount_percent_to=e?.discount_percent_to);let y="",b=o("search.crown.text","Crown");e?.crown_percent_from&&e?.crown_percent_from>=0&&(r.crown_percent_from=e?.crown_percent_from,y+=b+": "+r.crown_percent_from+"%"),e?.crown_percent_to&&e?.crown_percent_to>=0&&(r.crown_percent_to=e?.crown_percent_to,y+=""===y?b+": 0% - "+r.crown_percent_to+"%":" - "+r.crown_percent_to+"%"),e?.crown_angle_from&&e?.crown_angle_from>=0&&(r.crown_angle_from=e?.crown_angle_from,y+=""===y?b+": "+r.crown_angle_from+"°":", "+r.crown_angle_from+"°"),e?.crown_angle_to&&e?.crown_angle_to>=0&&(r.crown_angle_to=e?.crown_angle_to,y+=""===y?"0° - "+r.crown_angle_to+"°":void 0===e?.crown_angle_from?", 0° - "+r.crown_angle_to+"°":" - "+r.crown_angle_to+"°"),y&&i.push(y);let _="",w=o("search.pavilion.text","Pavilion");return e?.pavilion_percent_from&&e?.pavilion_percent_from>0&&(r.pavilion_percent_from=e?.pavilion_percent_from,_+=w+": "+r.pavilion_percent_from+"%"),e?.pavilion_percent_to&&e?.pavilion_percent_to>0&&(r.pavilion_percent_to=e?.pavilion_percent_to,_+=""===_?w+": 0% - "+r.pavilion_percent_to+"%":" - "+r.pavilion_percent_to+"%"),e?.pavilion_angle_from&&e?.pavilion_angle_from>0&&(r.pavilion_angle_from=e?.pavilion_angle_from,_+=""===_?w+": "+r.pavilion_angle_from+"°":", "+r.pavilion_angle_from+"°"),e?.pavilion_angle_to&&e?.pavilion_angle_to>0&&(r.pavilion_angle_to=e?.pavilion_angle_to,_+=""===_?"0° - "+r.pavilion_angle_to+"°":void 0===e?.pavilion_angle_from?", 0° - "+r.pavilion_angle_to+"°":" - "+r.pavilion_angle_to+"°"),_&&i.push(_),{title:i.filter(Boolean).join(" | "),options:r}};let fi=function(e){return e.diam="diam",e.gem="gem",e.jewelry="jewelry",e.lab="lab",e.default="default",e}({}),pi=function(e){return e[e.primary=0]="primary",e[e.secondary=1]="secondary",e[e.tertiary=2]="tertiary",e}({}),mi=function(e){return e.DIAMOND="diamond",e.LAB_GROWN_DIAMOND="lab_grown_diamond",e.GEMSTONE="gemstone",e.JEWELRY="jewelry",e.LABGROWN_JEWELRY="lab_grown_jewelry",e}({});const gi=e=>{switch(e){case mi.DIAMOND:return"diam-06";case mi.GEMSTONE:return"gem-06";case mi.JEWELRY:return"jewelry-06";case mi.LAB_GROWN_DIAMOND:case mi.LABGROWN_JEWELRY:return"lab-06";default:return"diam-06"}},vi=e=>{switch(e){case mi.DIAMOND:return"diam-03";case mi.GEMSTONE:return"gem-03";case mi.JEWELRY:return"jewelry-03";case mi.LAB_GROWN_DIAMOND:case mi.LABGROWN_JEWELRY:return"lab-03";default:return"diam-03"}},yi=e=>{if(e)return["Champagne","Cognac","Chameleon"].includes(e)},bi=vn.View`
53
53
  background-color: ${e=>{let{theme:t,backgroundColor:n}=e;return t[n]}};
54
54
  align-items: center;
55
55
  justify-content: center;
@@ -57,13 +57,13 @@
57
57
  padding-right: 6px;
58
58
  border-radius: 7px;
59
59
  height: ${e=>{let{height:t}=e;return t}}px;
60
- `,sr=gn.Text`
60
+ `,_i=vn.Text`
61
61
  color: ${e=>{let{color:t}=e;return t||"#9138AE"}};
62
62
  font-family: Roboto;
63
63
  font-size: 13px;
64
64
  font-style: normal;
65
65
  font-weight: 500;
66
- `,lr=e=>{let{backgroundColor:n,productName:r,productColor:i,height:o=24}=e;const a=Ut();return t.createElement(ar,{backgroundColor:n,height:o},t.createElement(sr,{color:a[i],selectable:!0},r??""))},ur=e=>{let{message:n,userTheme:r,hasResults:i,totalResults:o,shownResults:a,onSuggestionSelect:s,isLatest:l,isTyping:u}=e;const c="user"===n.role,d=Ut(),f="string"==typeof n?.search_payload?.lab_grown?"true"===n?.search_payload?.lab_grown:"boolean"==typeof n?.search_payload?.lab_grown&&n?.search_payload?.lab_grown,h=f?nr.LAB_GROWN_DIAMOND:nr.DIAMOND,p=(f?"Lab-Grown Diamond":"Natural Diamond")+("pair"===n?.search_payload?.pair?" Pair":"")+(Number(o)>1?"s":""),m=e=>t.createElement(mr,null,e.map((e,n)=>{return"text"===e.type?t.createElement(t.Fragment,{key:n},(r=e.content,i=!!e.bold,o=`p${n}`,r.trim().split(/\s+/).filter(Boolean).map((e,n,r)=>t.createElement(hr,{key:`${o}-${n}`,isUser:c,isBold:i,theme:d},n<r.length-1?`${e} `:e)))):t.createElement(t.Fragment,{key:n},e.node);var r,i,o}));return t.createElement(dr,{theme:d,userTheme:r,isUser:c},t.createElement(fr,{theme:d,userTheme:r,isUser:c},"assistant"===n.role&&i&&"number"==typeof o?t.createElement(t.Fragment,null,m([{type:"text",content:"Found"},{type:"node",node:t.createElement(hr,{isUser:c,isBold:!0,theme:d},` ${Number(o).toLocaleString()} `)},{type:"node",node:t.createElement(t.Fragment,null,t.createElement(hr,{isUser:c,isBold:!1,theme:d}," "),t.createElement(lr,{productName:p,productColor:rr(h),backgroundColor:ir(h)}),t.createElement(hr,{isUser:c,isBold:!1,theme:d}," "))},{type:"text",content:"that match your preferences:"}]),t.createElement(hr,{isUser:c,isBold:!0,theme:d},`${Zn(n.search_payload,!0)?.title}`)):"assistant"===n.role&&n?.search_payload&&Object.keys(n.search_payload).length>0&&!i&&"number"==typeof o?t.createElement(t.Fragment,null,m([{type:"text",content:"Found"},{type:"node",node:t.createElement(hr,{isUser:c,isBold:!0,theme:d}," 0 ")},{type:"node",node:t.createElement(t.Fragment,null,t.createElement(hr,{isUser:c,isBold:!1,theme:d}," "),t.createElement(lr,{productName:p,productColor:rr(h),backgroundColor:ir(h)}),t.createElement(hr,{isUser:c,isBold:!1,theme:d}," "))},{type:"text",content:"that match your preferences:"}]),t.createElement(hr,{isUser:c,isBold:!0,theme:d},`${Zn(n.search_payload,!0)?.title}`),t.createElement(mr,null,t.createElement(hr,{isUser:c,isBold:!1,theme:d},"Try modifying your search criteria to explore more options."))):"assistant"===n.role&&i?null:t.createElement(hr,{isUser:c,theme:d},n.text||""),"assistant"===n.role&&Array.isArray(n.suggestions)&&n.suggestions.length>0&&l&&!u&&!(n.search_payload&&"object"==typeof n.search_payload&&Object.keys(n.search_payload).length>0)&&t.createElement(pr,{theme:d},t.createElement(Pn,{suggestions:n.suggestions,onSelect:e=>s?.(e),variant:"inline"}))))},cr=(0,t.memo)(ur),dr=gn.View`
66
+ `,wi=e=>{let{backgroundColor:n,productName:r,productColor:i,height:o=24}=e;const a=Wt();return t.createElement(bi,{backgroundColor:n,height:o},t.createElement(_i,{color:a[i],selectable:!0},r??""))},Si=e=>{let{message:n,userTheme:r,hasResults:i,totalResults:o,shownResults:a,onSuggestionSelect:s,isLatest:l,isTyping:u}=e;const{t:c}=Br(),d="user"===n.role,h=Wt(),f="string"==typeof n?.search_payload?.lab_grown?"true"===n?.search_payload?.lab_grown:"boolean"==typeof n?.search_payload?.lab_grown&&n?.search_payload?.lab_grown,p=f?mi.LAB_GROWN_DIAMOND:mi.DIAMOND,m=(f?c("product.labGrownDiamond.text","Lab-Grown Diamond"):c("product.naturalDiamond.text","Natural Diamond"))+("pair"===n?.search_payload?.pair?` ${c("product.pair.text","Pair")}`:"")+(Number(o)>1?c("product.pluralSuffix.text","s"):""),g=e=>t.createElement(Ri,null,e.map((e,n)=>{return"text"===e.type?t.createElement(t.Fragment,{key:n},(r=e.content,i=!!e.bold,o=`p${n}`,r.trim().split(/\s+/).filter(Boolean).map((e,n,r)=>t.createElement(ki,{key:`${o}-${n}`,isUser:d,isBold:i,theme:h},n<r.length-1?`${e} `:e)))):t.createElement(t.Fragment,{key:n},e.node);var r,i,o}));return t.createElement(Ci,{theme:h,userTheme:r,isUser:d},t.createElement(Ei,{theme:h,userTheme:r,isUser:d},"assistant"===n.role&&i&&"number"==typeof o?t.createElement(t.Fragment,null,g([{type:"text",content:c("results.found.text","Found")},{type:"node",node:t.createElement(ki,{isUser:d,isBold:!0,theme:h},` ${Number(o).toLocaleString()} `)},{type:"node",node:t.createElement(t.Fragment,null,t.createElement(ki,{isUser:d,isBold:!1,theme:h}," "),t.createElement(wi,{productName:m,productColor:gi(p),backgroundColor:vi(p)}),t.createElement(ki,{isUser:d,isBold:!1,theme:h}," "))},{type:"text",content:c("results.matchPreferences.text","that match your preferences:")}]),t.createElement(ki,{isUser:d,isBold:!0,theme:h},`${hi(n.search_payload,!0,c)?.title}`)):"assistant"===n.role&&n?.search_payload&&Object.keys(n.search_payload).length>0&&!i&&"number"==typeof o?t.createElement(t.Fragment,null,g([{type:"text",content:c("results.found.text","Found")},{type:"node",node:t.createElement(ki,{isUser:d,isBold:!0,theme:h}," 0 ")},{type:"node",node:t.createElement(t.Fragment,null,t.createElement(ki,{isUser:d,isBold:!1,theme:h}," "),t.createElement(wi,{productName:m,productColor:gi(p),backgroundColor:vi(p)}),t.createElement(ki,{isUser:d,isBold:!1,theme:h}," "))},{type:"text",content:c("results.matchPreferences.text","that match your preferences:")}]),t.createElement(ki,{isUser:d,isBold:!0,theme:h},`${hi(n.search_payload,!0,c)?.title}`),t.createElement(Ri,null,t.createElement(ki,{isUser:d,isBold:!1,theme:h},c("results.noResultsSuggestion.text","Try modifying your search criteria to explore more options.")))):"assistant"===n.role&&i?null:t.createElement(ki,{isUser:d,theme:h},n.text||""),"assistant"===n.role&&Array.isArray(n.suggestions)&&n.suggestions.length>0&&l&&!u&&!(n.search_payload&&"object"==typeof n.search_payload&&Object.keys(n.search_payload).length>0)&&t.createElement(Ai,{theme:h},t.createElement(Zr,{suggestions:n.suggestions,onSelect:e=>s?.(e),variant:"inline"}))))},xi=(0,t.memo)(Si),Ci=vn.View`
67
67
  padding-horizontal: 8px;
68
68
  margin-vertical: 0;
69
69
  width: 100%;
@@ -72,7 +72,7 @@
72
72
  `:Vt`
73
73
  align-items: flex-start;
74
74
  `}}
75
- `,fr=gn.View`
75
+ `,Ei=vn.View`
76
76
  max-width: 80%;
77
77
  gap: 4px;
78
78
  padding-horizontal: 12px;
@@ -81,36 +81,36 @@
81
81
  border-radius: ${e=>{let{userTheme:t}=e;return t.borderRadius||8}}px;
82
82
  border-bottom-right-radius: ${e=>{let{isUser:t,userTheme:n}=e;return t?0:n.borderRadius}}px;
83
83
  border-bottom-left-radius: ${e=>{let{isUser:t,userTheme:n}=e;return t?n.borderRadius:0}}px;
84
- `,hr=gn.Text`
84
+ `,ki=vn.Text`
85
85
  color: ${e=>{let{theme:t,isUser:n}=e;return n?t["core-01"]||"#FFFFFF":t["core-05"]||"#000000"}};
86
86
  font-family: ${e=>{let{isBold:t}=e;return t?"Roboto-Medium":"Roboto"}};
87
87
  font-size: 14px;
88
88
  font-style: normal;
89
89
  font-weight: ${e=>{let{isBold:t}=e;return t?"500":"400"}};
90
- `,pr=gn.View`
90
+ `,Ai=vn.View`
91
91
  margin-top: 8px;
92
- `,mr=gn.View`
92
+ `,Ri=vn.View`
93
93
  flex-direction: row;
94
94
  align-items: center;
95
95
  flex-wrap: wrap;
96
- `;let vr=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(vr=e)}catch{}const gr=gn.Pressable`
96
+ `;let Ti=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Ti=e)}catch{}const Pi=vn.Pressable`
97
97
  border-width: 1;
98
98
  border-radius: 8px;
99
99
  padding-horizontal: 4px;
100
100
  padding-vertical: 4px;
101
- ${e=>{let{reaction:t,type:n}=e;return t===Wn.LIKE&&"like"===n?Vt`
101
+ ${e=>{let{reaction:t,type:n}=e;return t===ni.LIKE&&"like"===n?Vt`
102
102
  background-color: ${e=>{let{theme:t}=e;return t["success-02"]||"#DBFFE4"}};
103
103
  border-color: ${e=>{let{theme:t}=e;return t["success-01"]||"#00B140"}};
104
- `:t===Wn.DISLIKE&&"dislike"===n?Vt`
105
- background-color: ${e=>{let{theme:t}=e;return t["error-02"]||"#FFE2E0"}};
106
- border-color: ${e=>{let{theme:t}=e;return t["error-01"]||"#D0021B"}};
107
- `:Vt`
108
- border-color: ${e=>{let{theme:t}=e;return t["core-03"]||"#D5D5DC"}};
109
- `}}
110
- `,yr=gn.Text`
104
+ `:t===ni.DISLIKE&&"dislike"===n?Vt`
105
+ background-color: ${e=>{let{theme:t}=e;return t["error-02"]||"#FFE2E0"}};
106
+ border-color: ${e=>{let{theme:t}=e;return t["error-01"]||"#D0021B"}};
107
+ `:Vt`
108
+ border-color: ${e=>{let{theme:t}=e;return t["core-03"]||"#D5D5DC"}};
109
+ `}}
110
+ `,Oi=vn.Text`
111
111
  font-size: 12px;
112
112
  color: ${e=>{let{theme:t}=e;return t["core-06"]||"#666"}};
113
- `,br=gn.View`
113
+ `,Ii=vn.View`
114
114
  flex-direction: row;
115
115
  justify-content: space-between;
116
116
  align-items: center;
@@ -123,7 +123,7 @@
123
123
  align-self: flex-start;
124
124
  width: 100%;
125
125
  `}};
126
- `,_r=i.A.create({rowContainer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingHorizontal:8,marginTop:0,marginBottom:12,width:"100%"},alignRight:{alignSelf:"flex-end"},alignLeft:{alignSelf:"flex-start"},likeDislikeContainer:{flexDirection:"row",gap:6},timeContainer:{margin:0},borderButtonHover:{backgroundColor:"#EDEDF2"}}),wr=e=>{let{message:r,priceMode:i,handleFeedbackAction:o}=e;const a=Ut(),s="user"===r.role,[l,u]=t.useState(null);t.useEffect(()=>{(async()=>{const e=await(async e=>{const t=await async function(){const e=await zn("persist:userInfo",{}),t=JSON.parse(e?.user||"{}");return t?.token||""}(),n=await zn("vdbchat_conversations",null);if(!n||n.token!==t)return null;const r=n.conversations||{};let i=e;if(void 0===i){const e=await zn("persist:userInfo",{}),t=e?.user;i=String(t?.price_mode)||""}return String(r[i]?.conversation_id)||null})(i);u(e)})()},[i]);const c="string"==typeof r.id&&r.id.length>0&&!r.id.startsWith("bot-loading-"),d="assistant"===r.role&&!r.isLoading&&c&&Object.keys(r.search_payload||{}).length>0&&!!l;return t.createElement(br,{isUser:s},t.createElement(n.A,{style:_r.timeContainer},t.createElement(yr,{theme:a},Hn(r.createdAt))),d?t.createElement(n.A,{style:_r.likeDislikeContainer},t.createElement(gr,{type:"like",style:e=>[e?.hovered&&_r.borderButtonHover],reaction:r.reaction,onPress:()=>o(Wn.LIKE,String(l),r.id),disabled:!d},t.createElement(vr,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/like.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:r.reaction===Wn.LIKE?a["success-01"]||"#00B140":a["core-05"]||"#020001"}})),t.createElement(gr,{type:"dislike",style:e=>[e?.hovered&&_r.borderButtonHover],reaction:r.reaction,onPress:()=>o(Wn.DISLIKE,String(l),r.id),disabled:!d},t.createElement(vr,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/dislike.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:r.reaction===Wn.DISLIKE?a["error-01"]||"#D0021B":a["core-05"]||"#020001"}}))):null)},Sr={primaryColor:"#0b93f6",backgroundColor:"#ffffff",inputColor:"#FFF",inputBackgroundColor:"#FFFFFF",inputBorderRadius:8,inputTextColor:"#000000",userBubbleColor:"#4F4E57",userTextColor:"#ffffff",botBubbleColor:"#EDEDF2",botTextColor:"#000000",borderRadius:8,fontFamily:void 0,fontSize:16},Cr="v3",Er=e=>`${e}${Cr}/agent_conversations`,xr=e=>`${e}${Cr}/vdb/search_diamonds`,kr=(e,t,n)=>`${e}${Cr}/agent_conversations/${t}/conversation_messages/${n}/reaction`;async function Ar(){const e=await zn("persist:userInfo",{}),t=JSON.parse(e?.user||"{}");return t?.token||""}async function Rr(){const e=await Ar(),t=await Fn("persist:appState")||"{}";let n="";try{const e=JSON.parse(t);n=e?.installationIdentifier?JSON.parse(e.installationIdentifier):""}catch{n=""}return{"Content-Type":"application/json",Accept:"application/json, text/plain, */*",Authorization:`Token token=${e},installation_identifier=${n}`,Cookie:`vdb-server_session=${await Fn("session_cookie")||""}`}}async function Tr(){const e=await Ar(),t=await zn("vdbchat_conversations",null);return t&&t.token===e?t.conversations||{}:(await Vn("vdbchat_conversations"),{})}async function Pr(e){const t={token:await Ar(),conversations:e};await jn("vdbchat_conversations",t)}async function Ir(e,t){const n=Array.isArray(e)?e:e?.messages;if(!Array.isArray(n))return[];const r=await zn("persist:userInfo",{}),i=JSON.parse(r?.searchResultViewType||"{}"),o=JSON.parse(await Fn("persist:root")||"{}"),a="string"==typeof o?.selectedGroups?JSON.parse(o.selectedGroups)?.selectedGroups:o?.selectedGroups?.selectedGroups||{};return n.map((e,n)=>{const r=("string"==typeof e.lab_grown?"true"===e.lab_grown:"boolean"==typeof e.lab_grown&&e.lab_grown)?nr.LAB_GROWN_DIAMOND:nr.DIAMOND,o=i?.[r??"default"];let s=a[r??""],l=!1;s?s.includes(0)&&(l=!0,s=s.filter(e=>0!==e)):s&&0!==s.length||(l=!0);let u={};return s&&s.length>0&&(u=Object.assign(u,{group_ids:s})),{id:String(e.id??`${e.role}-${n}-${e.created_at??Date.now()}`),role:"user"===e.role?"user":"assistant",text:String(e.content??e.text??""),createdAt:"string"==typeof e.created_at?Date.parse(e.created_at):"number"==typeof e.createdAt?e.createdAt:Date.now(),search_payload:e.search_payload&&Object.keys(e.search_payload).length>0?Jn({searchPayload:{...e.search_payload,...u},priceMode:t,vdbSetting:l,searchResultViewType:o}):{},reaction:String(e.reaction??"0"),suggestions:Array.isArray(e.suggestions)?e.suggestions:void 0}})}async function Or(e,t,n){const r=await Tr(),i=r?.[n??""]?.conversation_id??null;if(void 0===n)return;const o={};i&&(o.conversation_id=Number.isNaN(Number(i))?i:Number(i));const a=await fetch(Er(e),{method:"POST",headers:await Rr(),body:Object.keys(o).length?JSON.stringify(o):void 0});if(!a.ok)throw new Error(`POST ${Er(e)} failed with ${a.status}`);const s=await a.json();if(s&&null!=s.conversation_id&&n){const e={...r};e[n]={conversation_id:s.conversation_id},await Pr(e)}return s}async function Nr(e,t){const n=await fetch(xr(e),{method:"POST",headers:await Rr(),body:JSON.stringify({vdb:{...t,page_size:5,page_number:1}})});if(!n.ok)throw new Error(`POST failed with ${n.status}`);return await n.json()}const Lr=gn.Text`
126
+ `,Ni=i.A.create({rowContainer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingHorizontal:8,marginTop:0,marginBottom:12,width:"100%"},alignRight:{alignSelf:"flex-end"},alignLeft:{alignSelf:"flex-start"},likeDislikeContainer:{flexDirection:"row",gap:6},timeContainer:{margin:0},borderButtonHover:{backgroundColor:"#EDEDF2"}}),Li=e=>{let{message:r,priceMode:i,handleFeedbackAction:o}=e;const a=Wt(),s="user"===r.role,[l,u]=t.useState(null),{t:c}=Br();t.useEffect(()=>{(async()=>{const e=await(async e=>{const t=await async function(){const e=await Nr("persist:userInfo",{}),t=JSON.parse(e?.user||"{}");return t?.token||""}(),n=await Nr("vdbchat_conversations",null);if(!n||n.token!==t)return null;const r=n.conversations||{};let i=e;if(void 0===i){const e=await Nr("persist:userInfo",{}),t=e?.user;i=String(t?.price_mode)||""}return String(r[i]?.conversation_id)||null})(i);u(e)})()},[i]);const d="string"==typeof r.id&&r.id.length>0&&!r.id.startsWith("bot-loading-"),h="assistant"===r.role&&!r.isLoading&&d&&Object.keys(r.search_payload||{}).length>0&&!!l;return t.createElement(Ii,{isUser:s},t.createElement(n.A,{style:Ni.timeContainer},t.createElement(Oi,{theme:a},ti(r.createdAt,c))),h?t.createElement(n.A,{style:Ni.likeDislikeContainer},t.createElement(Pi,{type:"like",style:e=>[e?.hovered&&Ni.borderButtonHover],reaction:r.reaction,onPress:()=>o(ni.LIKE,String(l),r.id),disabled:!h},t.createElement(Ti,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/like.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:r.reaction===ni.LIKE?a["success-01"]||"#00B140":a["core-05"]||"#020001"}})),t.createElement(Pi,{type:"dislike",style:e=>[e?.hovered&&Ni.borderButtonHover],reaction:r.reaction,onPress:()=>o(ni.DISLIKE,String(l),r.id),disabled:!h},t.createElement(Ti,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/dislike.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:r.reaction===ni.DISLIKE?a["error-01"]||"#D0021B":a["core-05"]||"#020001"}}))):null)},Di={primaryColor:"#0b93f6",backgroundColor:"#ffffff",inputColor:"#FFF",inputBackgroundColor:"#FFFFFF",inputBorderRadius:8,inputTextColor:"#000000",userBubbleColor:"#4F4E57",userTextColor:"#ffffff",botBubbleColor:"#EDEDF2",botTextColor:"#000000",borderRadius:8,fontFamily:void 0,fontSize:16},Mi="v3",Fi=e=>`${e}${Mi}/agent_conversations`,Vi=e=>`${e}${Mi}/vdb/search_diamonds`,ji=(e,t,n)=>`${e}${Mi}/agent_conversations/${t}/conversation_messages/${n}/reaction`;async function zi(){const e=await Nr("persist:userInfo",{}),t=JSON.parse(e?.user||"{}");return t?.token||""}async function Bi(){const e=await zi(),t=await Pr("persist:appState")||"{}";let n="";try{const e=JSON.parse(t);n=e?.installationIdentifier?JSON.parse(e.installationIdentifier):""}catch{n=""}return{"Content-Type":"application/json",Accept:"application/json, text/plain, */*",Authorization:`Token token=${e},installation_identifier=${n}`,Cookie:`vdb-server_session=${await Pr("session_cookie")||""}`}}async function Hi(){const e=await zi(),t=await Nr("vdbchat_conversations",null);return t&&t.token===e?t.conversations||{}:(await Ir("vdbchat_conversations"),{})}async function $i(e){const t={token:await zi(),conversations:e};await Lr("vdbchat_conversations",t)}async function Wi(e,t){const n=Array.isArray(e)?e:e?.messages;if(!Array.isArray(n))return[];const r=await Nr("persist:userInfo",{}),i=JSON.parse(r?.searchResultViewType||"{}"),o=JSON.parse(await Pr("persist:root")||"{}"),a="string"==typeof o?.selectedGroups?JSON.parse(o.selectedGroups)?.selectedGroups:o?.selectedGroups?.selectedGroups||{};return n.map((e,n)=>{const r=("string"==typeof e.lab_grown?"true"===e.lab_grown:"boolean"==typeof e.lab_grown&&e.lab_grown)?mi.LAB_GROWN_DIAMOND:mi.DIAMOND,o=i?.[r??"default"];let s=a[r??""],l=!1;s?s.includes(0)&&(l=!0,s=s.filter(e=>0!==e)):s&&0!==s.length||(l=!0);let u={};return s&&s.length>0&&(u=Object.assign(u,{group_ids:s})),{id:String(e.id??`${e.role}-${n}-${e.created_at??Date.now()}`),role:"user"===e.role?"user":"assistant",text:String(e.content??e.text??""),createdAt:"string"==typeof e.created_at?Date.parse(e.created_at):"number"==typeof e.createdAt?e.createdAt:Date.now(),search_payload:e.search_payload&&Object.keys(e.search_payload).length>0?di({searchPayload:{...e.search_payload,...u},priceMode:t,vdbSetting:l,searchResultViewType:o}):{},reaction:String(e.reaction??"0"),suggestions:Array.isArray(e.suggestions)?e.suggestions:void 0}})}async function Ui(e,t,n){const r=await Hi(),i=r?.[n??""]?.conversation_id??null;if(void 0===n)return;const o={};i&&(o.conversation_id=Number.isNaN(Number(i))?i:Number(i));const a=await fetch(Fi(e),{method:"POST",headers:await Bi(),body:Object.keys(o).length?JSON.stringify(o):void 0});if(!a.ok)throw new Error(`POST ${Fi(e)} failed with ${a.status}`);const s=await a.json();if(s&&null!=s.conversation_id&&n){const e={...r};e[n]={conversation_id:s.conversation_id},await $i(e)}return s}async function Ki(e,t){const n=await fetch(Vi(e),{method:"POST",headers:await Bi(),body:JSON.stringify({vdb:{...t,page_size:5,page_number:1}})});if(!n.ok)throw new Error(`POST failed with ${n.status}`);return await n.json()}const qi=vn.Text`
127
127
  color: ${e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}};
128
128
  font-family: "Roboto";
129
129
  font-size: 13px;
@@ -131,7 +131,7 @@
131
131
  font-weight: 400;
132
132
  line-height: 18px;
133
133
  text-align: center;
134
- `,Dr=i.A.create({container:{alignSelf:"stretch",paddingVertical:6,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"}}),Mr=e=>{let{active:r}=e;return r?t.createElement(n.A,{style:Dr.container},t.createElement(Lr,null,"This beta feature uses AI-generated results that should be verified.")):null};var Fr=a(6413),Vr=a(8506);let zr=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(zr=e)}catch{}const jr=e=>{let{data:r,onViewAll:i,onItemPress:o,item:a}=e;return r&&r.length?t.createElement(n.A,{style:Br.wrapper},t.createElement(vt.A,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:Br.listContent},r.map(e=>t.createElement(Fr.A,{key:e.id,onPress:()=>{o?.(e)}},t.createElement(n.A,{key:e.id,style:Br.card},e.image_thumb_url?t.createElement(zr,{style:Br.image,source:{uri:e.image_thumb_url}}):null,t.createElement(n.A,{style:Br.content},t.createElement(Vr.A,{numberOfLines:2,style:Br.title},e.short_title),t.createElement(Vr.A,{style:Br.price},"$",e.total_sales_price)))))),a?.search_payload?.cert_num?null:t.createElement(Fr.A,{style:Br.button,activeOpacity:.8,onPress:i},t.createElement(Vr.A,{style:Br.buttonText},"View All ",">>"))):null},Br=i.A.create({wrapper:{paddingHorizontal:12,marginHorizontal:12,marginBottom:12,paddingTop:6,paddingBottom:14,backgroundColor:"#fff",borderRadius:8,borderWidth:1,borderColor:"#e8e8e8",elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},listContent:{gap:12,paddingVertical:6},card:{width:150,backgroundColor:"#fff",borderRadius:14,overflow:"hidden",borderColor:"#e8e8e8",borderWidth:1,elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},image:{width:"100%",height:120,borderBottomWidth:1,borderBottomColor:"#e8e8e8"},content:{padding:10,gap:4},title:{fontSize:13,color:"#222",fontWeight:"500"},price:{marginTop:4,fontSize:14,fontWeight:"700",color:"#000"},button:{marginTop:12,alignSelf:"center",paddingHorizontal:20,paddingVertical:8,backgroundColor:"#804195",borderRadius:20,width:300,alignItems:"center"},buttonText:{color:"#fff",fontSize:14,fontWeight:"600"}}),Hr=(0,t.memo)(jr);var Wr=a(4129);const Ur=gn.Pressable`
134
+ `,Yi=i.A.create({container:{alignSelf:"stretch",paddingVertical:6,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"}}),Gi=e=>{let{active:r}=e;const{t:i}=Br();return r?t.createElement(n.A,{style:Yi.container},t.createElement(qi,null,i("beta.notice.text","This beta feature uses AI-generated results that should be verified."))):null};var Xi=a(6413),Ji=a(8506);let Qi=yt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Qi=e)}catch{}const Zi=e=>{let{data:r,onViewAll:i,onItemPress:o,item:a}=e;const{t:s}=Br();return r&&r.length?t.createElement(n.A,{style:eo.wrapper},t.createElement(gt.A,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:eo.listContent},r.map(e=>t.createElement(Xi.A,{key:e.id,onPress:()=>{o?.(e)}},t.createElement(n.A,{key:e.id,style:eo.card},e.image_thumb_url?t.createElement(Qi,{style:eo.image,source:{uri:e.image_thumb_url}}):null,t.createElement(n.A,{style:eo.content},t.createElement(Ji.A,{numberOfLines:2,style:eo.title},e.short_title),t.createElement(Ji.A,{style:eo.price},"$",e.total_sales_price)))))),a?.search_payload?.cert_num?null:t.createElement(Xi.A,{style:eo.button,activeOpacity:.8,onPress:i},t.createElement(Ji.A,{style:eo.buttonText},s("results.viewAll.text","View All {{total}} diamonds",{total:""})," ",">>"))):null},eo=i.A.create({wrapper:{paddingHorizontal:12,marginHorizontal:12,marginBottom:12,paddingTop:6,paddingBottom:14,backgroundColor:"#fff",borderRadius:8,borderWidth:1,borderColor:"#e8e8e8",elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},listContent:{gap:12,paddingVertical:6},card:{width:150,backgroundColor:"#fff",borderRadius:14,overflow:"hidden",borderColor:"#e8e8e8",borderWidth:1,elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},image:{width:"100%",height:120,borderBottomWidth:1,borderBottomColor:"#e8e8e8"},content:{padding:10,gap:4},title:{fontSize:13,color:"#222",fontWeight:"500"},price:{marginTop:4,fontSize:14,fontWeight:"700",color:"#000"},button:{marginTop:12,alignSelf:"center",paddingHorizontal:20,paddingVertical:8,backgroundColor:"#804195",borderRadius:20,width:300,alignItems:"center"},buttonText:{color:"#fff",fontSize:14,fontWeight:"600"}}),to=(0,t.memo)(Zi);var no=a(4129);const ro=vn.Pressable`
135
135
  justify-content: center;
136
136
  align-items: center;
137
137
  width: ${e=>{let{width:t}=e;return t||"100%"}};
@@ -139,116 +139,117 @@
139
139
  padding-horizontal: 16px;
140
140
  height: ${e=>{let{height:t}=e;return t>0?t:40}}px;
141
141
  border-radius: ${e=>{let{borderRadius:t}=e;return t>0?t:8}}px;
142
- border-width: ${e=>{let{type:t}=e;return t===tr.secondary?2:0}}px;
142
+ border-width: ${e=>{let{type:t}=e;return t===pi.secondary?2:0}}px;
143
143
  border-color: ${e=>{let{borderColor:t,theme:n}=e;return n[t]}};
144
- `,$r=(gn.Text`
144
+ `,io=(vn.Text`
145
145
  color: ${e=>{let{color:t}=e;return t||"#FFFFFF"}};
146
146
  font-family: ${e=>{let{isBold:t}=e;return t?"Roboto-Medium":"Roboto-Regular"}};
147
147
  font-weight: ${e=>{let{isBold:t}=e;return t?"500":"400"}};
148
148
  font-size: 14px;
149
149
  font-style: normal;
150
- `,e=>{let{category:n=er.default,type:r=tr.primary,disabled:i=!1,loading:o,onPress:a,height:s,width:l,borderRadius:u,isDisableInteraction:c=!1,maxWidth:d,style:f,children:h}=e;const p=Ut(),[m,v]=(0,t.useState)(!1),{textColor:g,background:y,borderColor:b,hover:_}=((e,t,n)=>{if(n){if(t===tr.primary)return{textColor:"primary-cont-disabled",background:"primary-bg-disabled",borderColor:"transparent",hover:"transparent"};if(t===tr.secondary)return{textColor:"secondary-cont-disabled",background:"transparent",borderColor:"secondary-bor-disabled",hover:"transparent"};if(t===tr.tertiary)return{textColor:"tertiary-cont-disabled",background:"tertiary-bg-disabled",borderColor:"transparent",hover:"transparent"}}return t===tr.primary?e===er.default?{textColor:"primary-cont",background:"primary-bg-static",borderColor:"transparent",hover:"primary-bg-hover"}:{textColor:`${e}-05`,background:`${e}-01`,borderColor:"transparent",hover:`${e}-02`}:t===tr.secondary?e===er.default?{textColor:"secondary-cont",background:"transparent",borderColor:"secondary-bor-static",hover:"secondary-bg-hover"}:{textColor:`${e}-06`,background:"transparent",borderColor:`${e}-01`,hover:`${e}-03`}:t===tr.tertiary?e===er.default?{textColor:"tertiary-cont",background:"tertiary-bg-static",borderColor:"transparent",hover:"transparent"}:{textColor:`${e}-06`,background:`${e}-03`,borderColor:"transparent",hover:"transparent"}:{textColor:"primary-cont",background:"primary-bg-static",borderColor:"transparent",hover:"primary-bg-hover"}})(n,r,i);return t.createElement(Ur,{onPress:a,disabled:i||o||c,textColor:g,background:y,borderColor:b,borderRadius:u,onHoverIn:()=>v(!0),onHoverOut:()=>v(!1),height:s,width:l,maxWidth:d,type:r,style:e=>{let{pressed:t}=e;return[{...f,backgroundColor:t||m?p[_]:p[y]}]}},o?t.createElement(gt.A,{color:p[g]}):h)});let Yr=null;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Yr=e)}catch{}const Kr=e=>{let{data:r,totalResults:i,onViewAll:o,onItemPress:a,showMoreResults:s,showLessResults:l,trackAnalyticsEvent:u,currentPage:c=1,isLoadingMore:d=!1,item:f}=e;if(!r||!r.length)return null;const h=Ut(),[p,m]=(0,t.useState)(null),[v,g]=(0,t.useState)(!1),y=f?.search_payload,b="string"==typeof y.lab_grown?"true"===y.lab_grown:"boolean"==typeof y.lab_grown&&y.lab_grown;b?nr.LAB_GROWN_DIAMOND:nr.DIAMOND,(0,t.useEffect)(()=>{(async()=>{const e=await(async()=>{const e=await zn("persist:userInfo",{}),t=e?.user;return t.currency_symbol||"$"})();m(e)})(),(async()=>{const e=await(async()=>(await zn("persist:userInfo",{}),!0))();g(e)})()},[]);const _=function(e,t){return!(e>=6)&&(!!t&&(!(t<=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0))&&!(t<=5*e)))};return t.createElement(qr,{theme:h},t.createElement(vt.A,{showsVerticalScrollIndicator:!1},r.map((e,r)=>t.createElement(Wr.A,{key:e.id,onPress:()=>(e=>{a?.(e)})(e)},r=>t.createElement(ei,{theme:h,hovered:r.hovered},t.createElement(n.A,null,t.createElement(n.A,{style:pi.left},t.createElement(n.A,{style:pi.tokens},t.createElement(ti,null,t.createElement(ni,null,t.createElement(fi,null,t.createElement(Jr,null,`${e.shape_short??"-"}`),t.createElement(Jr,null,`${e.size??"-"}ct`),t.createElement(Jr,null,`${((e,t)=>{let n=null;return n=or(t?.fancy_color_overtone_long)?t?.is_fancy?`${t?.fancy_color_intensity_short||t?.color||""} ${t?.fancy_color_short||""}(${t?.fancy_color_overtone_long||""})`:`${t?.fancy_color_long||t?.color||""}`:t?.is_fancy?`${t?.fancy_color_intensity_short||t?.fancy_color_intensity||""} ${t?.fancy_color_overtone_short||""}${t?.fancy_color_short||""}`:`${t?.fancy_color_long||t?.color||""}`,""===n?"-":n})(0,e)??"-"}`),t.createElement(Jr,null,`${e.clarity_short??"-"}`),t.createElement(Jr,null,`${e.lab_short??"-"}`)),t.createElement(n.A,{style:{flexDirection:"row",alignItems:"center"}},t.createElement(Qr,null,e.cut_short??"-"),t.createElement(Qr,null,"/"),t.createElement(Qr,null,e.polish_short??"-"),t.createElement(Qr,null,"/"),t.createElement(Qr,null,e.symmetry_short??"-")),t.createElement(Qr,null,e.fluorescence_intensity_short??"-")),t.createElement(ri,null,t.createElement(si,null,e.price_per_carat?t.createElement(Jr,null,p||"$"):t.createElement(t.Fragment,null),t.createElement(Jr,null,$n("price_per_carat",e.price_per_carat,v)??"-")),t.createElement(Qr,null,"p/ct"))),t.createElement(ii,null,t.createElement(oi,null,t.createElement(ci,null,t.createElement(Qr,null,"D"),t.createElement(Jr,null,e.depth_percent?e.depth_percent+"%":"-")),t.createElement(di,null,t.createElement(Qr,null,"T"),t.createElement(Jr,null,e.table_percent?e.table_percent+"%":"-")),t.createElement(hi,null,t.createElement(Qr,null,e.measurement??"-"))),t.createElement(ai,null,b?t.createElement(t.Fragment,null):t.createElement(Jr,null,e.discount_percent?e.discount_percent+"%":"-"),t.createElement(li,null,t.createElement(ui,null,e.total_sales_price?t.createElement(Jr,null,p||"$"):t.createElement(t.Fragment,null),t.createElement(Jr,null,$n("total_sales_price",e.total_sales_price,v)??"-")),t.createElement(Qr,null,"total"))))))))))),s&&_(c,i,r.length)&&t.createElement(Gr,null,t.createElement(Wr.A,{onPress:s,disabled:d},t.createElement(Xr,{theme:h},d?"Loading...":"Show more"))),l&&((e,t)=>!(e<=1)&&!_(e,i,t))(c,r.length)&&t.createElement(Gr,null,t.createElement(Wr.A,{onPress:l},t.createElement(Xr,{theme:h},"Show less"))),f?.search_payload?.cert_num?null:t.createElement($r,{category:b?er.lab:er.diam,height:32,type:tr.primary,borderRadius:8,style:{marginTop:12},onPress:()=>(e=>{o?.(e)})(f)},t.createElement(Zr,null,`View All ${Number(i).toLocaleString()} diamonds`)))},qr=gn.View`
150
+ `,e=>{let{category:n=fi.default,type:r=pi.primary,disabled:i=!1,loading:o,onPress:a,height:s,width:l,borderRadius:u,isDisableInteraction:c=!1,maxWidth:d,style:h,children:f}=e;const p=Wt(),[m,g]=(0,t.useState)(!1),{textColor:v,background:y,borderColor:b,hover:_}=((e,t,n)=>{if(n){if(t===pi.primary)return{textColor:"primary-cont-disabled",background:"primary-bg-disabled",borderColor:"transparent",hover:"transparent"};if(t===pi.secondary)return{textColor:"secondary-cont-disabled",background:"transparent",borderColor:"secondary-bor-disabled",hover:"transparent"};if(t===pi.tertiary)return{textColor:"tertiary-cont-disabled",background:"tertiary-bg-disabled",borderColor:"transparent",hover:"transparent"}}return t===pi.primary?e===fi.default?{textColor:"primary-cont",background:"primary-bg-static",borderColor:"transparent",hover:"primary-bg-hover"}:{textColor:`${e}-05`,background:`${e}-01`,borderColor:"transparent",hover:`${e}-02`}:t===pi.secondary?e===fi.default?{textColor:"secondary-cont",background:"transparent",borderColor:"secondary-bor-static",hover:"secondary-bg-hover"}:{textColor:`${e}-06`,background:"transparent",borderColor:`${e}-01`,hover:`${e}-03`}:t===pi.tertiary?e===fi.default?{textColor:"tertiary-cont",background:"tertiary-bg-static",borderColor:"transparent",hover:"transparent"}:{textColor:`${e}-06`,background:`${e}-03`,borderColor:"transparent",hover:"transparent"}:{textColor:"primary-cont",background:"primary-bg-static",borderColor:"transparent",hover:"primary-bg-hover"}})(n,r,i);return t.createElement(ro,{onPress:a,disabled:i||o||c,textColor:v,background:y,borderColor:b,borderRadius:u,onHoverIn:()=>g(!0),onHoverOut:()=>g(!1),height:s,width:l,maxWidth:d,type:r,style:e=>{let{pressed:t}=e;return[{...h,backgroundColor:t||m?p[_]:p[y]}]}},o?t.createElement(vt.A,{color:p[v]}):f)});let oo=null;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(oo=e)}catch{}const ao=e=>{let{data:r,totalResults:i,onViewAll:o,onItemPress:a,showMoreResults:s,showLessResults:l,trackAnalyticsEvent:u,currentPage:c=1,isLoadingMore:d=!1,item:h}=e;if(!r||!r.length)return null;const f=Wt(),{t:p}=Br(),[m,g]=(0,t.useState)(null),[v,y]=(0,t.useState)(!1),b=h?.search_payload,_="string"==typeof b.lab_grown?"true"===b.lab_grown:"boolean"==typeof b.lab_grown&&b.lab_grown;_?mi.LAB_GROWN_DIAMOND:mi.DIAMOND,(0,t.useEffect)(()=>{(async()=>{const e=await(async()=>{const e=await Nr("persist:userInfo",{}),t=e?.user;return t.currency_symbol||"$"})();g(e)})(),(async()=>{const e=await(async()=>(await Nr("persist:userInfo",{}),!0))();y(e)})()},[]);const w=function(e,t){return!(e>=6)&&(!!t&&(!(t<=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0))&&!(t<=5*e)))};return t.createElement(so,{theme:f},t.createElement(gt.A,{showsVerticalScrollIndicator:!1},r.map((e,r)=>t.createElement(no.A,{key:e.id,onPress:()=>(e=>{a?.(e)})(e)},r=>t.createElement(po,{theme:f,hovered:r.hovered},t.createElement(n.A,null,t.createElement(n.A,{style:Ro.left},t.createElement(n.A,{style:Ro.tokens},t.createElement(mo,null,t.createElement(go,null,t.createElement(ko,null,t.createElement(ho,null,`${e.shape_short??"-"}`),t.createElement(ho,null,`${e.size??"-"}ct`),t.createElement(ho,null,`${((e,t)=>{let n=null;return n=yi(t?.fancy_color_overtone_long)?t?.is_fancy?`${t?.fancy_color_intensity_short||t?.color||""} ${t?.fancy_color_short||""}(${t?.fancy_color_overtone_long||""})`:`${t?.fancy_color_long||t?.color||""}`:t?.is_fancy?`${t?.fancy_color_intensity_short||t?.fancy_color_intensity||""} ${t?.fancy_color_overtone_short||""}${t?.fancy_color_short||""}`:`${t?.fancy_color_long||t?.color||""}`,""===n?"-":n})(0,e)??"-"}`),t.createElement(ho,null,`${e.clarity_short??"-"}`),t.createElement(ho,null,`${e.lab_short??"-"}`)),t.createElement(n.A,{style:{flexDirection:"row",alignItems:"center"}},t.createElement(co,null,e.cut_short??"-"),t.createElement(co,null,"/"),t.createElement(co,null,e.polish_short??"-"),t.createElement(co,null,"/"),t.createElement(co,null,e.symmetry_short??"-")),t.createElement(co,null,e.fluorescence_intensity_short??"-")),t.createElement(vo,null,t.createElement(wo,null,e.price_per_carat?t.createElement(ho,null,m||"$"):t.createElement(t.Fragment,null),t.createElement(ho,null,ii("price_per_carat",e.price_per_carat,v)??"-")),t.createElement(co,null,p("product.pricePerCarat.text","p/ct")))),t.createElement(yo,null,t.createElement(bo,null,t.createElement(Co,null,t.createElement(co,null,p("product.depth.text","D")),t.createElement(ho,null,e.depth_percent?e.depth_percent+"%":"-")),t.createElement(Eo,null,t.createElement(co,null,p("product.table.text","T")),t.createElement(ho,null,e.table_percent?e.table_percent+"%":"-")),t.createElement(Ao,null,t.createElement(co,null,e.measurement??"-"))),t.createElement(_o,null,_?t.createElement(t.Fragment,null):t.createElement(ho,null,e.discount_percent?e.discount_percent+"%":"-"),t.createElement(So,null,t.createElement(xo,null,e.total_sales_price?t.createElement(ho,null,m||"$"):t.createElement(t.Fragment,null),t.createElement(ho,null,ii("total_sales_price",e.total_sales_price,v)??"-")),t.createElement(co,null,p("product.total.text","total")))))))))))),s&&w(c,i,r.length)&&t.createElement(lo,null,t.createElement(no.A,{onPress:s,disabled:d},t.createElement(uo,{theme:f},d?p("results.loading.text","Loading..."):p("results.showMore.text","Show more")))),l&&((e,t)=>!(e<=1)&&!w(e,i,t))(c,r.length)&&t.createElement(lo,null,t.createElement(no.A,{onPress:l},t.createElement(uo,{theme:f},p("results.showLess.text","Show less")))),h?.search_payload?.cert_num?null:t.createElement(io,{category:_?fi.lab:fi.diam,height:32,type:pi.primary,borderRadius:8,style:{marginTop:12},onPress:()=>(e=>{o?.(e)})(h)},t.createElement(fo,null,p("results.viewAll.text","View All {{total}} diamonds",{total:Number(i).toLocaleString()}))))},so=vn.View`
151
151
  padding-horizontal: 8px;
152
- `,Gr=gn.View`
152
+ `,lo=vn.View`
153
153
  margin-top: 8px;
154
154
  align-items: flex-start;
155
155
  justify-content: center;
156
- `,Xr=gn.Text`
156
+ `,uo=vn.Text`
157
157
  color: ${e=>{let{theme:t}=e;return t["link-static"]||"#3378F6"}};
158
158
  font-size: 14px;
159
159
  font-weight: 500;
160
- font-family: 'Roboto-Medium';
161
- `,Qr=gn.Text`
160
+ font-family: "Roboto-Medium";
161
+ `,co=vn.Text`
162
162
  font-size: 13px;
163
163
  color: ${e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}};
164
164
  font-weight: 400;
165
- font-family: 'Roboto-Regular';
165
+ font-family: "Roboto-Regular";
166
166
  font-style: normal;
167
- `,Jr=gn.Text`
167
+ `,ho=vn.Text`
168
168
  font-size: 13px;
169
169
  color: ${e=>{let{theme:t}=e;return t["core-05"]||"#020001"}};
170
170
  font-weight: 500;
171
- font-family: 'Roboto-Medium';
171
+ font-family: "Roboto-Medium";
172
172
  font-style: normal;
173
- `,Zr=gn.Text`
173
+ `,fo=vn.Text`
174
174
  color: ${e=>{let{theme:t}=e;return t["primary-cont"]||"#ffffff"}};
175
175
  font-size: 14px;
176
176
  font-weight: 500;
177
- font-family: 'Roboto-Medium';
178
- `,ei=gn.View`
177
+ font-family: "Roboto-Medium";
178
+ `,po=vn.View`
179
179
  padding-vertical: 12px;
180
180
  border-bottom-width: 1px;
181
181
  border-bottom-color: ${e=>{let{theme:t}=e;return t["core-03"]||"#D5D5DC"}};
182
182
  background-color: ${e=>{let{theme:t,hovered:n}=e;return n?t["secondary-bg-hover"]||"#EDEDF2":"transparent"}};
183
- `,ti=gn.View`
183
+ `,mo=vn.View`
184
184
  flex-direction: row;
185
185
  justify-content: space-between;
186
186
  align-items: center;
187
187
  width: 100%;
188
- `,ni=gn.View`
188
+ `,go=vn.View`
189
189
  flex-direction: row;
190
190
  justify-content: space-between;
191
191
  align-items: center;
192
192
  gap: 8px;
193
- `,ri=gn.View`
193
+ `,vo=vn.View`
194
194
  flex-direction: row;
195
195
  justify-content: space-between;
196
196
  align-items: center;
197
197
  gap: 4px;
198
- `,ii=gn.View`
198
+ `,yo=vn.View`
199
199
  flex-direction: row;
200
200
  justify-content: space-between;
201
201
  align-items: center;
202
202
  width: 100%;
203
- `,oi=gn.View`
203
+ `,bo=vn.View`
204
204
  flex-direction: row;
205
205
  justify-content: space-between;
206
206
  align-items: center;
207
207
  gap: 8px;
208
- `,ai=gn.View`
208
+ `,_o=vn.View`
209
209
  flex-direction: row;
210
210
  justify-content: space-between;
211
211
  align-items: center;
212
212
  gap: 4px;
213
- `,si=gn.View`
213
+ `,wo=vn.View`
214
214
  flex-direction: row;
215
215
  align-items: center;
216
- `,li=gn.View`
216
+ `,So=vn.View`
217
217
  flex-direction: row;
218
218
  justify-content: space-between;
219
219
  align-items: center;
220
220
  gap: 4px;
221
- `,ui=gn.View`
221
+ `,xo=vn.View`
222
222
  flex-direction: row;
223
223
  align-items: center;
224
224
  width: 65px;
225
225
  justify-content: flex-end;
226
- `,ci=gn.View`
226
+ `,Co=vn.View`
227
227
  flex-direction: row;
228
228
  align-items: center;
229
229
  gap: 2px;
230
- `,di=gn.View`
230
+ `,Eo=vn.View`
231
231
  flex-direction: row;
232
232
  align-items: center;
233
233
  gap: 2px;
234
- `,fi=gn.View`
234
+ `,ko=vn.View`
235
235
  flex-direction: row;
236
236
  align-items: center;
237
237
  gap: 2px;
238
- `,hi=gn.View``,pi=i.A.create({listContent:{gap:8},left:{flexDirection:"row",alignItems:"flex-start",minWidth:0},serialContainer:{alignItems:"flex-start",justifyContent:"center",marginRight:4},tokens:{flexDirection:"row",flexWrap:"wrap",gap:2,flex:1,minWidth:0},lineBreak:{width:"100%",height:0},rowCenter:{flexDirection:"row",alignItems:"center"}}),mi=(0,t.memo)(Kr),vi=e=>{let{data:n,onViewAll:r,onItemPress:i,variant:o="list",totalResults:a,item:s,showMoreResults:l,showLessResults:u,trackAnalyticsEvent:c,currentPage:d=1,isLoadingMore:f=!1}=e;return n&&n.length?"list"===o?t.createElement(mi,{data:n,onViewAll:r,onItemPress:i,totalResults:a,item:s,showMoreResults:l,showLessResults:u,trackAnalyticsEvent:c,currentPage:d,isLoadingMore:f}):t.createElement(Hr,{data:n,onViewAll:r,onItemPress:i,totalResults:a,item:s}):null},gi=e=>{let{messageId:i,payload:o,onFetched:a,priceMode:s,apiUrl:l}=e;const{ref:u,inView:c}=function(){const e=(0,t.useRef)(null),[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if("web"!==r.A.OS)return void i(!0);const t=e.current;if(!t||"undefined"==typeof IntersectionObserver)return void i(!0);const n=new IntersectionObserver(e=>{const t=e[0];i(t.isIntersecting)},{root:null,rootMargin:"0px",threshold:.1});return n.observe(t),()=>{n.disconnect()}},[]),{ref:e,inView:n}}(),d=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{d.current||o&&"object"==typeof o&&c&&(d.current=!0,(async()=>{try{const e=await Nr(l,o);a(i,e)}catch(e){console.error("Lazy fetch products failed",e)}})())},[c,i,a,o,s]),t.createElement(n.A,{ref:u,style:{height:1}})},yi=e=>{let t="web";if(e)switch(e){case"Linux":t="android";break;case"iPhone":t="ios";break;default:t="web"}else t=String(r.A.OS);return(e=>{switch(e){case Kn.WEB:return 0;case Kn.IOS:return 1;case Kn.ANDROID:default:return 2}})(t).toString()},bi=async()=>{const e=await Yn(),t="web"===r.A.OS?{system_type_enum:yi(null),platform_action_enum:"0"}:{};return{user_company_id:e?.company_id?.toString(),user_company_name:e?.company,user_email:e?.email,user_id:e?.id?.toString(),user_name:e?.first_name?`${e?.first_name} ${e?.last_name}`:void 0,user_price_mode:e?.price_mode?.toString(),price_mode:e?.price_mode?.toString(),has_plan_details:!!e?.plan_details,userAgent:"web"===r.A.OS?navigator.userAgent:"",...t}};var _i=a(7918),wi=a.n(_i),Si=a(5685);var Ci=a(5556),Ei=a.n(Ci);const xi=Ei().oneOfType([Ei().string,Ei().number]),ki={all:Ei().bool,grid:Ei().bool,aural:Ei().bool,braille:Ei().bool,handheld:Ei().bool,print:Ei().bool,projection:Ei().bool,screen:Ei().bool,tty:Ei().bool,tv:Ei().bool,embossed:Ei().bool},Ai={orientation:Ei().oneOf(["portrait","landscape"]),scan:Ei().oneOf(["progressive","interlace"]),aspectRatio:Ei().string,deviceAspectRatio:Ei().string,height:xi,deviceHeight:xi,width:xi,deviceWidth:xi,color:Ei().bool,colorIndex:Ei().bool,monochrome:Ei().bool,resolution:xi,type:Object.keys(ki)},{type:Ri,...Ti}=Ai,Pi={minAspectRatio:Ei().string,maxAspectRatio:Ei().string,minDeviceAspectRatio:Ei().string,maxDeviceAspectRatio:Ei().string,minHeight:xi,maxHeight:xi,minDeviceHeight:xi,maxDeviceHeight:xi,minWidth:xi,maxWidth:xi,minDeviceWidth:xi,maxDeviceWidth:xi,minColor:Ei().number,maxColor:Ei().number,minColorIndex:Ei().number,maxColorIndex:Ei().number,minMonochrome:Ei().number,maxMonochrome:Ei().number,minResolution:xi,maxResolution:xi,...Ti};var Ii={all:{...ki,...Pi},types:ki,matchers:Ai,features:Pi};const Oi=(0,t.createContext)(void 0),Ni=e=>{if(e)return Object.keys(e).reduce((t,n)=>(t[(0,Si.default)(n)]=e[n],t),{})},Li=()=>{const e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current=!0},[]),e.current},Di=e=>{const n=()=>(e=>e.query||(e=>{const t=[];return Object.keys(Ii.all).forEach(n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=(0,Si.default)(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))}),t.join(" and ")})(e))(e),[r,i]=(0,t.useState)(n);return(0,t.useEffect)(()=>{const e=n();r!==e&&i(e)},[e]),r},Mi=(e,n,r)=>{const i=(e=>{const n=(0,t.useContext)(Oi),r=()=>Ni(e)||Ni(n),[i,o]=(0,t.useState)(r);return(0,t.useEffect)(()=>{const e=r();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r<i;r++){const i=n[r];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0})(i,e)||o(e)},[e,n]),i})(n),o=Di(e);if(!o)throw new Error("Invalid or missing MediaQuery!");const a=((e,n)=>{const r=()=>wi()(e,n||{},!!n),[i,o]=(0,t.useState)(r),a=Li();return(0,t.useEffect)(()=>{if(a){const e=r();return o(e),()=>{e&&e.dispose()}}},[e,n]),i})(o,i),s=(e=>{const[n,r]=(0,t.useState)(e.matches);return(0,t.useEffect)(()=>{const t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),n})(a),l=Li();return(0,t.useEffect)(()=>{l&&r&&r(s)},[s]),(0,t.useEffect)(()=>()=>{a&&a.dispose()},[]),s},Fi={transparent:"transparent","main-01":"#292735","main-02":"#37363F","main-03":"#E3E3E9","main-04":"#3378F6","main-05":"#ffffff","main-06":"#292735","diam-01":"#804195","diam-02":"#713782","diam-03":"#EEE1F3","diam-04":"#9138AE","diam-05":"#ffffff","diam-06":"#9138AE","core-01":"#ffffff","core-02":"#EDEDF2","core-03":"#D5D5DC","core-04":"#ACACB3","core-05":"#020001","core-06":"#4F4E57","extra-01":"#A1A0AB","extra-02":"#292735","extra-03":"#E4E4EC","extra-04":"#DADAE0","extra-05":"#ffffff","extra-06":"#4F4E57","gem-01":"#3B72CC","gem-02":"#3C62A0","gem-03":"#DCE6F6","gem-04":"#3E76D2","gem-05":"#ffffff","gem-06":"#3E76D2","jewelry-01":"#58B8A5","jewelry-02":"#4CA191","jewelry-03":"#D6F1ED","jewelry-04":"#27AC92","jewelry-05":"#ffffff","jewelry-06":"#27AC92","lab-01":"#E97F5B","lab-02":"#DA704B","lab-03":"#F9E2D9","lab-04":"#E87B56","lab-05":"#ffffff","lab-06":"#E87B56","over-01":"#000000b3","over-02":"rgba(55,54,64,0.3)","over-03":"rgba(255,255,255,0.7)","over-04":"#ffffff","cont-00":"#ffffff","success-02":"#DBFFE4","success-01":"#00B140","error-02":"#FFE2E0","error-01":"#D0021B","warn-02":"#FFF8DB","warn-01":"#FFA500","primary-bg-static":"#292735","primary-bg-hover":"#37363F","primary-bg-disabled":"#D5D5DC","primary-cont":"#ffffff","primary-cont-disabled":"#ACACB3","secondary-bor-disabled":"#D5D5DC","secondary-cont-disabled":"#ACACB3","secondary-bg-hover":"#E3E3E9","secondary-bor-hover":"#37363F","secondary-bor-static":"#292735","secondary-cont":"#292735","tertiary-bg-static":"#E3E3E9","tertiary-bg-disabled":"#D5D5DC","tertiary-cont":"#292735","tertiary-cont-disabled":"#ACACB3","link-static":"#3378F6","link-hover":"#292735","option-bg-static":"#E4E4EC","option-bg-hover":"#DADAE0","option-bg-active":"#A1A0AB","option-cont":"#4F4E57","option-cont-active":"#ffffff","knob-bg-hover":"#E4E4EC","knob-bg-active":"#292735","knob-cont":"#ffffff","knob-bor":"#292735","toggle-bg-static":"#DADAE0","toggle-bg-on":"#292735","toggle-cont":"#ffffff","option-bg-disabled":"#D5D5DC","option-cont-disabled":"#ACACB3","knob-bg-disabled-off":"#EDEDF2","knob-bg-disabled-on":"#D5D5DC","knob-cont-disabled-on":"#ffffff","toggle-bg-disabled":"#D5D5DC","toggle-cont-disabled":"#EDEDF2","header-cont":"#ffffff","header-btn-cont":"#ffffff","header-bg-static":"#37363F","header-btn-bg-hover":"#37363F","header-btn-bg-active":"#E3E3E9","header-btn-bg-static":"#292735","header-btn-bor-hover":"#292735","header-btn-cont-active":"#292735","knob-bg-static":"#ffffff",Shadows:{Huge:{x:"2",y:"16",blur:"32",type:"dropShadow",color:"#37364066",spread:"-8"},Gentle:{x:"1",y:"2",blur:"4",type:"dropShadow",color:"#37364014",spread:"-2"},Normal:{x:"2",y:"8",blur:"24",type:"dropShadow",color:"#37364042",spread:"-6"},"Bottom-scroll":{x:"0",y:"-8",blur:"24",type:"dropShadow",color:"#37364029",spread:"-8"}}};let Vi=null;if("web"!==r.A.OS)try{Vi=a(Object(function(){var e=new Error("Cannot find module 'expo-device'");throw e.code="MODULE_NOT_FOUND",e}()))}catch{}const zi=e=>{let{children:n}=e;const[i,o]=(0,t.useState)(Fi);if((0,t.useEffect)(()=>{(async()=>{try{const e=JSON.parse(await Fn("persist:root")||"{}"),t=e.theme?JSON.parse(e.theme):null;t&&o(t)}catch{}})()},[]),"web"===r.A.OS&&window.matchMedia("print").matches)return null;const a=Mi({maxWidth:767}),s=Mi({minWidth:767,maxWidth:1279}),l=Mi({minWidth:1279}),{width:u}=Bn,c=a||u<=767,d=s||u>767&&u<=1279||"iPadOS"===Vi?.osName||Qn(),f=(l||u>1279)&&!("iPadOS"===Vi?.osName||Qn()),h=f&&!d&&!c,p={isMobile:c,isTablet:d,isDesktop:f,isLargeScreen:h},m=(0,t.useMemo)(()=>({...i,...p}),[i,c,d,f,h]);return t.createElement($t,{theme:m},n)},ji=(0,t.forwardRef)((i,o)=>{let{apiUrl:a,userToken:s,priceMode:l,modalHeight:u,theme:c,initialMessages:d=[],placeholder:f,onClose:h,onClearChat:p,onViewAllPress:m,onItemPress:v,isBetaMode:g,activeProductType:y,trackAnalyticsEvent:b,fromFilterScreen:_}=i;const[w,S]=(0,t.useState)(d),[C,E]=(0,t.useState)(""),[x,k]=(0,t.useState)(!1),[A,R]=(0,t.useState)(null),[T,P]=(0,t.useState)(null),[I,O]=(0,t.useState)(""),[N,L]=(0,t.useState)({}),[D,M]=(0,t.useState)(new Set),[F,V]=(0,t.useState)(l||null),[z,j]=(0,t.useState)(s||""),[B,H]=(0,t.useState)(!1),[W,U]=(0,t.useState)(!0),[$,Y]=(0,t.useState)(void 0),[K,q]=(0,t.useState)(1),[G,X]=(0,t.useState)({}),[Q,J]=(0,t.useState)(new Set),Z=(0,t.useRef)(null),ee=(0,t.useRef)(null),te=(0,t.useRef)(0),ne=(0,t.useRef)(0),re=(0,t.useRef)(!1),ie=(0,t.useRef)(!1),oe=(0,t.useRef)(!1),ae=(0,t.useMemo)(()=>({...Sr,...c||{}}),[c]),{_identify:se}=(()=>{const e=(0,t.useContext)(ft);return{trackEvent:async(t,n)=>{const r=await bi(),i=e||window.analytics;i&&await i.track(t,{...r,...n})},_identify:async(t,n)=>{const r=e||window.analytics;r&&await r.identify(t,n)},_track:async(t,n)=>{const i=await bi();if(o=i?.userAgent,o&&/^Mozilla\/5\.0 \([^;]+; CPU [^)]+ like Mac OS X\) AppleWebKit\/600\.1\.4 \(KHTML, like Gecko\) Version\/\d\.0 Mobile\/10B329 Safari\/8536\.25$/.test(o))return void console.warn("Skipping tracking for Segment user agent:",i.userAgent);var o;if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e&&"web"===r.A.OS||[/bot/i,/crawl/i,/spider/i,/HeadlessChrome/i,/PhantomJS/i,/slurp/i,/curl/i,/wget/i,/httpclient/i].some(t=>t.test(e))}(i?.userAgent))return void console.warn("Skipping tracking for bot user agent:",i.userAgent);const a=e||window.analytics;if(!a)return;const s=await Yn();s?.id?await a.identify(`${s.id}`,{name:`${s.first_name} ${s.last_name}`,email:s.email,country:s.country}):(console.error("Track Event tracked without user:",t,JSON.stringify(n)),console.error("Can't identify as user is not logged in",JSON.stringify(s))),await a.track(t,{...i,...n})}}})(),le=Boolean(g),ue=Ut(),ce=ue.isTablet;(0,t.useEffect)(()=>{(async()=>{try{if(!s){const e=await zn("persist:userInfo",{}),t=JSON.parse(e?.user||"{}"),n=t?.token||"";n&&j(n)}}catch(e){console.error("Failed to load auth data from storage",e)}})()},[s]);const de=async()=>{y&&await jn("external_context",y)};(0,t.useEffect)(()=>{0===w.length&&de()},[w]),(0,t.useEffect)(()=>{de()},[y]);const fe=(0,t.useCallback)(e=>{let t=e?.search_payload;const n=JSON.stringify(t),i=e?.search_payload;if(!i)return;const o="string"==typeof i.lab_grown?"true"===i.lab_grown:"boolean"==typeof i.lab_grown&&i.lab_grown,s=`${a}webapp/${o?"lab-grown-diamonds":"natural-diamonds"}/search?priceMode=${F}&productType=${o?nr.LAB_GROWN_DIAMOND:nr.DIAMOND}&fromNewFilterScreen=false&filterSplitStep=1&sectionName=${"pair"===t.pair?"Pairs":"Single Stones"}&breadCrumbLabel=Stone%20Search&enterSecondFlow=false&saved_search=${n}`;m?m(s,i):"web"===r.A.OS&&window.open(s,"_parent")},[a,F,m]),he=(0,t.useCallback)(e=>{const t=`${a}webapp/${e.type===nr.LAB_GROWN_DIAMOND?"lab-grown-diamonds":"natural-diamonds"}/item-detail/${e.id}?productType=${e.type}&priceMode=${F}&breadCrumbLabel=Stone%20Details`;v?v(t,e):"web"===r.A.OS&&window.open(t,"_parent")},[a,F,v]),pe=(0,t.useMemo)(()=>Boolean(z),[z]),me=(0,t.useMemo)(()=>({conversationId:z}),[z]),ve=(0,t.useCallback)(async(e,t,n)=>{try{let r="0";S(e=>{const t=e.find(e=>e.id===n);return r=t?.reaction||"0",e});const i=r===e?Wn.UNSET:e,o=await(async(e,t,n,r)=>{const i=`${kr(e,n,r)}`,o={reaction:t};return await fetch(i,{method:"POST",headers:await Rr(),body:JSON.stringify(o)})})(a,i,t,n);o.ok?S(e=>e.map(e=>e.id===n?{...e,reaction:i}:e)):console.error("Feedback API failed",o.status)}catch(e){console.error("Feedback API error",e)}},[]);(0,t.useEffect)(()=>{let e=!1;return d.length||(async()=>{if(pe)try{const t=await Or(a,0,F);if(!e){const e=(await Ir(t,F)).reverse();if(void 0!==t?.has_more&&U(t.has_more),void 0!==t?.next_cursor&&Y(t.next_cursor),oe.current=!1,re.current=!1,0===e.length){const e={id:"",role:"assistant",text:'Describe the diamond you\'re looking for — for example, "2ct F VS2 under $10,000" or "1–2ct D–F VS pear" — and I\'ll take it from there.',createdAt:Date.now(),isLoading:!1,suggestions:[],search_payload:{},reaction:"0"};S([e]),U(!1)}else S(e)}}catch(e){console.error("Failed to fetch initial messages",e)}})(),()=>{e=!0}},[a,me,d.length,pe,F]);const ge=(0,t.useCallback)(async e=>{const t=e.trim();if(!t||x)return;const n=await zn("external_context"),r={id:`user-${Date.now()}`,role:"user",text:t,createdAt:Date.now(),external_context:n||null},i=`bot-loading-${Date.now()}`,o={id:i,role:"assistant",text:"Thinking",createdAt:Date.now(),reaction:"0",isLoading:!0,search_payload:{}};S(e=>[...e,r,o]),R(i),k(!0);try{if(!pe)return void S(e=>e.map(e=>e.id===i?{...e,text:"Chat is unavailable (missing user authentication).",isLoading:!1}:e));const e=await async function(e,t,n,r,i){const o=await Tr(),a=o?.[i]?.conversation_id??null;if(void 0===i)return null;const s=await zn("external_context");s&&await Vn("external_context");const l={query:t,external_context:s||null};a&&(l.conversation_id=Number.isNaN(Number(a))?a:Number(a));const u=await fetch(Er(e),{method:"POST",headers:await Rr(),body:JSON.stringify(l)});if(!u.ok)throw new Error(`POST ${Er(e)} failed with ${u.status}`);const c=await u.json();if(c&&null!=c.conversation_id&&i){const e={...o};e[i]={conversation_id:c.conversation_id},await Pr(e)}return c}(a,t,0,0,F),n=(await Ir(e,F)).find(e=>"assistant"===e.role);if(n?.text){if(n?.search_payload&&"object"==typeof n.search_payload&&Object.keys(n.search_payload).length>0){const e=await Nr(a,n.search_payload);b?.(Gn.AI_CHAT_WIDGET,{action:Xn.SEARCH_INITIATED,search_payload:n.search_payload});const t=e&&e.response&&e.response.body&&Array.isArray(e.response.body.diamonds)&&e.response.body.diamonds.length>0;t?_&&t&&fe({search_payload:n.search_payload}):b?.(Gn.AI_CHAT_WIDGET,{action:Xn.NO_RESULTS_FOUND,search_payload:n.search_payload}),L(t=>({...t,[n.id]:e}))}R(null),S(e=>e.map(e=>e.id===i?{...e,id:n.id,text:"",isLoading:!1,suggestions:n.suggestions,search_payload:n.search_payload??{}}:e)),setTimeout(()=>{P(n.id),O(n.text),Z.current?.scrollToEnd({animated:!0})},50)}else S(e=>e.map(e=>e.id===i?{...e,isLoading:!1}:e))}catch(e){S(e=>e.map(e=>e.id===i?{...e,text:"Sorry, something went wrong. Please try again.",isLoading:!1}:e)),console.error(e)}finally{k(!1),R(null),ee.current?.focus()}},[a,x,w,me,pe,F,fe,_]),ye=(0,t.useCallback)(async()=>{const e=C.trim();e&&(E(""),ge(e))},[C,ge]),be=(0,t.useCallback)(e=>{ge(e)},[ge]),_e=(0,t.useCallback)(async e=>{const t=e.id;try{M(e=>new Set(e).add(t));const n=e?.search_payload;if(!n||0===Object.keys(n).length)return;const r=await Nr(a,n);L(e=>({...e,[t]:r}))}catch(e){console.error("Reload results failed",e)}finally{M(e=>{const n=new Set(e);return n.delete(t),n})}},[]),we=(0,t.useCallback)(async(e,t)=>{if(Q.has(e))return;const n=(G[e]||1)+1;if(!(n>6))try{J(t=>new Set(t).add(e));const r=await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=await fetch(xr(e),{method:"POST",headers:await Rr(),body:JSON.stringify({vdb:{...t,page_size:5,page_number:n}})});if(!r.ok)throw new Error(`POST failed with ${r.status}`);return await r.json()}(a,t,n);r?.response?.body?.diamonds&&(L(t=>{const n=t[e];if(!n)return t;const i=n.response?.body?.diamonds||[],o=r.response.body.diamonds;return{...t,[e]:{...n,response:{...n.response,body:{...n.response.body,diamonds:[...i,...o]}}}}}),X(t=>({...t,[e]:n})))}catch(e){console.error("Failed to load more results:",e)}finally{J(t=>{const n=new Set(t);return n.delete(e),n})}},[a,Q,G]),Se=(0,t.useCallback)(async(e,t)=>{try{const n=await Nr(a,t);n?.response?.body?.diamonds&&(L(t=>({...t,[e]:n})),X(t=>({...t,[e]:1})))}catch(e){console.error("Failed to show less results:",e)}},[a]),Ce=(0,t.useCallback)(async()=>{if(B||!W||!pe)return;ie.current=!0;const e=ne.current;H(!0);try{const t=await async function(e,t,n,r){const i=await Tr(),o=i?.[t??""]?.conversation_id??null;if(!o)return{messages:[],has_more:!1};const a={conversation_id:Number.isNaN(Number(o))?o:Number(o),fetch_history:!0};void 0!==n&&(a.cursor=n),void 0!==r&&(a.page=r);const s=await fetch(Er(e),{method:"POST",headers:await Rr(),body:JSON.stringify(a)});if(!s.ok)throw new Error(`POST ${Er(e)} failed with ${s.status}`);const l=await s.json();return{messages:l.messages||[],conversation_id:l.conversation_id,has_more:l.has_more??!1,next_cursor:l.next_cursor,total_count:l.total_count}}(a,F,$,K+1),n=(await Ir(t,F)).reverse();n.length>0?(S(e=>{const t=new Set(e.map(e=>e.id)),r=n.filter(e=>!t.has(e.id));return console.log("[...newMessages, ...prev]",[...r,...e]),[...r,...e]}),q(e=>e+1),requestAnimationFrame(()=>{const t=ne.current-e;t>0&&Z.current&&Z.current.scrollTo({y:te.current+t,animated:!1}),ie.current=!1})):ie.current=!1,U(t.has_more??n.length>0),Y(t.next_cursor)}catch(e){console.error("Failed to load older messages",e),ie.current=!1}finally{H(!1)}},[B,W,pe,a,F,$,K]);(0,t.useEffect)(()=>{const e=()=>{setTimeout(()=>{try{Z.current?.scrollToEnd({animated:!0})}catch(e){}},100)},t="ios"===r.A.OS?"keyboardWillShow":"keyboardDidShow",n="ios"===r.A.OS?"keyboardWillHide":"keyboardDidHide",i=pt.A.addListener(t,e),o=pt.A.addListener(n,e);return()=>{i.remove(),o.remove()}},[]),(0,t.useEffect)(()=>(e.A.addListener("clearChat",xe),e.A.addListener("changePriceMode",e=>Ee(e.priceMode)),Ee(),(async()=>{const e=await Yn(),t=e?.id,n=JSON.stringify(e?.email)??void 0;t&&se(`${t}`,{email:n}).then()})(),()=>{e.A.removeAllListeners("clearChat"),e.A.removeAllListeners("changePriceMode")}),[]);const Ee=async e=>{if(!e&&l&&(e=l),!e){let t=await zn("persist:userInfo",{user:void 0});t=t&&t.user?JSON.parse(t.user):{},e=t?.price_mode}V(void 0===e?null:String(e))},xe=(0,t.useCallback)(async()=>{try{const e=await zn("vdbchat_conversations",null);if(e&&F&&e.conversations?.[F]){const t={...e.conversations};delete t[F],await jn("vdbchat_conversations",{token:e.token,conversations:t})}S([]),L({}),M(new Set),k(!1),R(null),P(null),O(""),U(!0),Y(void 0),q(1),oe.current=!1,re.current=!1,ie.current=!1;const t=await Or(a,0,F),n=(await Ir(t,F)).reverse();if(0===n.length){const e={id:"",role:"assistant",text:'Describe the diamond you\'re looking for — for example, "2ct F VS2 under $10,000" or "1–2ct D–F VS pear" — and I\'ll take it from there.',createdAt:Date.now(),isLoading:!1,suggestions:[],reaction:"0",search_payload:{}};S([e])}else S(n);p?.()}catch(e){console.error("Failed to clear chat",e)}},[a,F]);(0,t.useEffect)(()=>{if(!A||T)return;let e=0;const t=setInterval(()=>{e=(e+1)%3;const t=".".repeat(e+1);S(e=>e.map(e=>e.id===A&&e.isLoading?{...e,text:`Thinking${t}`}:e))},500);return()=>{clearInterval(t)}},[A,T]),(0,t.useImperativeHandle)(o,()=>({clearChat:xe}),[xe]);const ke=(0,t.useRef)(0);return(0,t.useEffect)(()=>{if(!T||!I)return void(ke.current=0);ke.current=0;const e=I.length,t=T,n=I,r=setInterval(()=>{ke.current+=1;const i=ke.current,o=n.slice(0,i);S(e=>e.map(e=>e.id===t?{...e,text:o}:e)),i>=e&&(clearInterval(r),P(null),O(""),S(e=>e.map(e=>e.id===t?{...e,isLoading:!1}:e)))},25);return()=>{clearInterval(r)}},[T,I]),t.createElement(zi,null,t.createElement(Bi,{theme:ue},t.createElement(mt.A,{style:{flex:1},behavior:"ios"===r.A.OS?"padding":"height",keyboardVerticalOffset:100},t.createElement(vt.A,{ref:Z,keyboardShouldPersistTaps:"handled",onScroll:e=>{const{contentOffset:t,contentSize:n,layoutMeasurement:r}=e.nativeEvent;te.current=t.y;const i=n.height-(r.height+t.y);re.current=i>100,t.y<50&&W&&!B&&!ie.current&&Ce()},scrollEventThrottle:16,style:u?{height:u,backgroundColor:ue["core-01"]||"#FFFFFF"}:{backgroundColor:ue["core-01"]||"#FFFFFF"},contentContainerStyle:{backgroundColor:ue["core-01"]||ae?.listContentBackgroundColor||"#FFFFFF",...qi.listContent,justifyContent:0===w.length?"center":"flex-end",minHeight:u||void 0,...ce?{maxWidth:608,alignSelf:"center",width:"100%"}:{}},onContentSizeChange:(e,t)=>{ne.current=t,ie.current||B||(oe.current?re.current||Z.current?.scrollToEnd({animated:!1}):(Z.current?.scrollToEnd({animated:!1}),oe.current=!0))}},B&&t.createElement(Yi,null,t.createElement(gt.A,{size:"small",color:ue["core-06"]||"#4F4E57"}),t.createElement(Ki,{theme:ue},"Loading older messages...")),w?.[0]?.createdAt&&t.createElement(Hi,{theme:ue},t.createElement(Wi,{theme:ue},`Chat Started at ${Hn(w[0].createdAt)}`)),(()=>{const e=[...w];return e.map((r,i)=>{const o=i===e.length-1,s=Boolean(N[r.id]?.response?.body?.diamonds&&N[r.id]?.response?.body?.diamonds.length>0);return t.createElement(n.A,{key:r.id+i,style:{gap:12}},t.createElement(cr,{message:r,userTheme:ae,priceMode:F,handleFeedbackAction:ve,onReloadResults:_e,reloading:D.has(r.id),hasResults:s,totalResults:N[r.id]?.response?.header?N[r.id].response.header?.total_diamonds_found??0:null,shownResults:N[r.id]?.response?.body?.diamonds.length||0,onSuggestionSelect:be,isLatest:o,isTyping:T===r.id}),"assistant"===r.role&&r.search_payload&&Object.keys(r.search_payload).length>0&&!N[r.id]&&t.createElement(gi,{apiUrl:a,priceMode:F,messageId:r.id,payload:r.search_payload,onFetched:(e,t)=>{L(n=>({...n,[e]:t}))}}),"assistant"===r.role&&s&&!_&&t.createElement(vi,{data:N[r.id]?.response?.body?.diamonds||[],totalResults:N[r.id]?.response?.header?.total_diamonds_found||0,onViewAll:fe,onItemPress:he,item:r,showMoreResults:()=>we(r.id,r.search_payload),showLessResults:()=>Se(r.id,r.search_payload),trackAnalyticsEvent:b,currentPage:G[r.id]||1,isLoadingMore:Q.has(r.id)}),t.createElement(wr,{message:r,priceMode:F||"",handleFeedbackAction:ve,onReloadResults:_e,reloading:D.has(r.id),hasResults:s}))})})()),t.createElement($i,null),t.createElement(Ui,{theme:ue},t.createElement(wn,{value:C,onChangeText:E,onSend:ye,disabled:x,placeholder:f,theme:ae,inputRef:ee}),t.createElement(Mr,{active:le})))))});ji.displayName="ChatWidget";const Bi=gn.View`
238
+ `,Ao=vn.View``,Ro=i.A.create({listContent:{gap:8},left:{flexDirection:"row",alignItems:"flex-start",minWidth:0},serialContainer:{alignItems:"flex-start",justifyContent:"center",marginRight:4},tokens:{flexDirection:"row",flexWrap:"wrap",gap:2,flex:1,minWidth:0},lineBreak:{width:"100%",height:0},rowCenter:{flexDirection:"row",alignItems:"center"}}),To=(0,t.memo)(ao),Po=e=>{let{data:n,onViewAll:r,onItemPress:i,variant:o="list",totalResults:a,item:s,showMoreResults:l,showLessResults:u,trackAnalyticsEvent:c,currentPage:d=1,isLoadingMore:h=!1}=e;return n&&n.length?"list"===o?t.createElement(To,{data:n,onViewAll:r,onItemPress:i,totalResults:a,item:s,showMoreResults:l,showLessResults:u,trackAnalyticsEvent:c,currentPage:d,isLoadingMore:h}):t.createElement(to,{data:n,onViewAll:r,onItemPress:i,totalResults:a,item:s}):null},Oo=e=>{let{messageId:i,payload:o,onFetched:a,priceMode:s,apiUrl:l}=e;const{ref:u,inView:c}=function(){const e=(0,t.useRef)(null),[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if("web"!==r.A.OS)return void i(!0);const t=e.current;if(!t||"undefined"==typeof IntersectionObserver)return void i(!0);const n=new IntersectionObserver(e=>{const t=e[0];i(t.isIntersecting)},{root:null,rootMargin:"0px",threshold:.1});return n.observe(t),()=>{n.disconnect()}},[]),{ref:e,inView:n}}(),d=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{d.current||o&&"object"==typeof o&&c&&(d.current=!0,(async()=>{try{const e=await Ki(l,o);a(i,e)}catch(e){console.error("Lazy fetch products failed",e)}})())},[c,i,a,o,s]),t.createElement(n.A,{ref:u,style:{height:1}})},Io=e=>{let t="web";if(e)switch(e){case"Linux":t="android";break;case"iPhone":t="ios";break;default:t="web"}else t=String(r.A.OS);return(e=>{switch(e){case ai.WEB:return 0;case ai.IOS:return 1;case ai.ANDROID:default:return 2}})(t).toString()},No=async()=>{const e=await oi(),t="web"===r.A.OS?{system_type_enum:Io(null),platform_action_enum:"0"}:{};return{user_company_id:e?.company_id?.toString(),user_company_name:e?.company,user_email:e?.email,user_id:e?.id?.toString(),user_name:e?.first_name?`${e?.first_name} ${e?.last_name}`:void 0,user_price_mode:e?.price_mode?.toString(),price_mode:e?.price_mode?.toString(),has_plan_details:!!e?.plan_details,userAgent:"web"===r.A.OS?navigator.userAgent:"",...t}};var Lo=a(7918),Do=a.n(Lo),Mo=a(5685);var Fo=a(5556),Vo=a.n(Fo);const jo=Vo().oneOfType([Vo().string,Vo().number]),zo={all:Vo().bool,grid:Vo().bool,aural:Vo().bool,braille:Vo().bool,handheld:Vo().bool,print:Vo().bool,projection:Vo().bool,screen:Vo().bool,tty:Vo().bool,tv:Vo().bool,embossed:Vo().bool},Bo={orientation:Vo().oneOf(["portrait","landscape"]),scan:Vo().oneOf(["progressive","interlace"]),aspectRatio:Vo().string,deviceAspectRatio:Vo().string,height:jo,deviceHeight:jo,width:jo,deviceWidth:jo,color:Vo().bool,colorIndex:Vo().bool,monochrome:Vo().bool,resolution:jo,type:Object.keys(zo)},{type:Ho,...$o}=Bo,Wo={minAspectRatio:Vo().string,maxAspectRatio:Vo().string,minDeviceAspectRatio:Vo().string,maxDeviceAspectRatio:Vo().string,minHeight:jo,maxHeight:jo,minDeviceHeight:jo,maxDeviceHeight:jo,minWidth:jo,maxWidth:jo,minDeviceWidth:jo,maxDeviceWidth:jo,minColor:Vo().number,maxColor:Vo().number,minColorIndex:Vo().number,maxColorIndex:Vo().number,minMonochrome:Vo().number,maxMonochrome:Vo().number,minResolution:jo,maxResolution:jo,...$o};var Uo={all:{...zo,...Wo},types:zo,matchers:Bo,features:Wo};const Ko=(0,t.createContext)(void 0),qo=e=>{if(e)return Object.keys(e).reduce((t,n)=>(t[(0,Mo.default)(n)]=e[n],t),{})},Yo=()=>{const e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current=!0},[]),e.current},Go=e=>{const n=()=>(e=>e.query||(e=>{const t=[];return Object.keys(Uo.all).forEach(n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=(0,Mo.default)(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))}),t.join(" and ")})(e))(e),[r,i]=(0,t.useState)(n);return(0,t.useEffect)(()=>{const e=n();r!==e&&i(e)},[e]),r},Xo=(e,n,r)=>{const i=(e=>{const n=(0,t.useContext)(Ko),r=()=>qo(e)||qo(n),[i,o]=(0,t.useState)(r);return(0,t.useEffect)(()=>{const e=r();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r<i;r++){const i=n[r];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0})(i,e)||o(e)},[e,n]),i})(n),o=Go(e);if(!o)throw new Error("Invalid or missing MediaQuery!");const a=((e,n)=>{const r=()=>Do()(e,n||{},!!n),[i,o]=(0,t.useState)(r),a=Yo();return(0,t.useEffect)(()=>{if(a){const e=r();return o(e),()=>{e&&e.dispose()}}},[e,n]),i})(o,i),s=(e=>{const[n,r]=(0,t.useState)(e.matches);return(0,t.useEffect)(()=>{const t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),n})(a),l=Yo();return(0,t.useEffect)(()=>{l&&r&&r(s)},[s]),(0,t.useEffect)(()=>()=>{a&&a.dispose()},[]),s},Jo={transparent:"transparent","main-01":"#292735","main-02":"#37363F","main-03":"#E3E3E9","main-04":"#3378F6","main-05":"#ffffff","main-06":"#292735","diam-01":"#804195","diam-02":"#713782","diam-03":"#EEE1F3","diam-04":"#9138AE","diam-05":"#ffffff","diam-06":"#9138AE","core-01":"#ffffff","core-02":"#EDEDF2","core-03":"#D5D5DC","core-04":"#ACACB3","core-05":"#020001","core-06":"#4F4E57","extra-01":"#A1A0AB","extra-02":"#292735","extra-03":"#E4E4EC","extra-04":"#DADAE0","extra-05":"#ffffff","extra-06":"#4F4E57","gem-01":"#3B72CC","gem-02":"#3C62A0","gem-03":"#DCE6F6","gem-04":"#3E76D2","gem-05":"#ffffff","gem-06":"#3E76D2","jewelry-01":"#58B8A5","jewelry-02":"#4CA191","jewelry-03":"#D6F1ED","jewelry-04":"#27AC92","jewelry-05":"#ffffff","jewelry-06":"#27AC92","lab-01":"#E97F5B","lab-02":"#DA704B","lab-03":"#F9E2D9","lab-04":"#E87B56","lab-05":"#ffffff","lab-06":"#E87B56","over-01":"#000000b3","over-02":"rgba(55,54,64,0.3)","over-03":"rgba(255,255,255,0.7)","over-04":"#ffffff","cont-00":"#ffffff","success-02":"#DBFFE4","success-01":"#00B140","error-02":"#FFE2E0","error-01":"#D0021B","warn-02":"#FFF8DB","warn-01":"#FFA500","primary-bg-static":"#292735","primary-bg-hover":"#37363F","primary-bg-disabled":"#D5D5DC","primary-cont":"#ffffff","primary-cont-disabled":"#ACACB3","secondary-bor-disabled":"#D5D5DC","secondary-cont-disabled":"#ACACB3","secondary-bg-hover":"#E3E3E9","secondary-bor-hover":"#37363F","secondary-bor-static":"#292735","secondary-cont":"#292735","tertiary-bg-static":"#E3E3E9","tertiary-bg-disabled":"#D5D5DC","tertiary-cont":"#292735","tertiary-cont-disabled":"#ACACB3","link-static":"#3378F6","link-hover":"#292735","option-bg-static":"#E4E4EC","option-bg-hover":"#DADAE0","option-bg-active":"#A1A0AB","option-cont":"#4F4E57","option-cont-active":"#ffffff","knob-bg-hover":"#E4E4EC","knob-bg-active":"#292735","knob-cont":"#ffffff","knob-bor":"#292735","toggle-bg-static":"#DADAE0","toggle-bg-on":"#292735","toggle-cont":"#ffffff","option-bg-disabled":"#D5D5DC","option-cont-disabled":"#ACACB3","knob-bg-disabled-off":"#EDEDF2","knob-bg-disabled-on":"#D5D5DC","knob-cont-disabled-on":"#ffffff","toggle-bg-disabled":"#D5D5DC","toggle-cont-disabled":"#EDEDF2","header-cont":"#ffffff","header-btn-cont":"#ffffff","header-bg-static":"#37363F","header-btn-bg-hover":"#37363F","header-btn-bg-active":"#E3E3E9","header-btn-bg-static":"#292735","header-btn-bor-hover":"#292735","header-btn-cont-active":"#292735","knob-bg-static":"#ffffff",Shadows:{Huge:{x:"2",y:"16",blur:"32",type:"dropShadow",color:"#37364066",spread:"-8"},Gentle:{x:"1",y:"2",blur:"4",type:"dropShadow",color:"#37364014",spread:"-2"},Normal:{x:"2",y:"8",blur:"24",type:"dropShadow",color:"#37364042",spread:"-6"},"Bottom-scroll":{x:"0",y:"-8",blur:"24",type:"dropShadow",color:"#37364029",spread:"-8"}}};let Qo=null;if("web"!==r.A.OS)try{Qo=a(Object(function(){var e=new Error("Cannot find module 'expo-device'");throw e.code="MODULE_NOT_FOUND",e}()))}catch{}const Zo=e=>{let{children:n}=e;const[i,o]=(0,t.useState)(Jo);if((0,t.useEffect)(()=>{(async()=>{try{const e=JSON.parse(await Pr("persist:root")||"{}"),t=e.theme?JSON.parse(e.theme):null;t&&o(t)}catch{}})()},[]),"web"===r.A.OS&&window.matchMedia("print").matches)return null;const a=Xo({maxWidth:767}),s=Xo({minWidth:767,maxWidth:1279}),l=Xo({minWidth:1279}),{width:u}=ei,c=a||u<=767,d=s||u>767&&u<=1279||"iPadOS"===Qo?.osName||ci(),h=(l||u>1279)&&!("iPadOS"===Qo?.osName||ci()),f=h&&!d&&!c,p={isMobile:c,isTablet:d,isDesktop:h,isLargeScreen:f},m=(0,t.useMemo)(()=>({...i,...p}),[i,c,d,h,f]);return t.createElement(Ut,{theme:m},n)},ea=(0,t.forwardRef)((i,o)=>{let{apiUrl:a,userToken:s,priceMode:l,modalHeight:u,theme:c,initialMessages:d=[],placeholder:h,onClose:f,onClearChat:p,onViewAllPress:m,onItemPress:g,isBetaMode:v,activeProductType:y,trackAnalyticsEvent:b,fromFilterScreen:_,translations:w,locale:S="en"}=i;const{t:x}=Br(),[C,E]=(0,t.useState)(d),[k,A]=(0,t.useState)(""),[R,T]=(0,t.useState)(!1),[P,O]=(0,t.useState)(null),[I,N]=(0,t.useState)(null),[L,D]=(0,t.useState)(""),[M,F]=(0,t.useState)({}),[V,j]=(0,t.useState)(new Set),[z,B]=(0,t.useState)(l||null),[H,$]=(0,t.useState)(s||""),[W,U]=(0,t.useState)(!1),[K,q]=(0,t.useState)(!0),[Y,G]=(0,t.useState)(void 0),[X,J]=(0,t.useState)(1),[Q,Z]=(0,t.useState)({}),[ee,te]=(0,t.useState)(new Set),ne=(0,t.useRef)(null),re=(0,t.useRef)(null),ie=(0,t.useRef)(0),oe=(0,t.useRef)(0),ae=(0,t.useRef)(!1),se=(0,t.useRef)(!1),le=(0,t.useRef)(!1),ue=(0,t.useMemo)(()=>({...Di,...c||{}}),[c]),{_identify:ce}=(()=>{const e=(0,t.useContext)(ht);return{trackEvent:async(t,n)=>{const r=await No(),i=e||window.analytics;i&&await i.track(t,{...r,...n})},_identify:async(t,n)=>{const r=e||window.analytics;r&&await r.identify(t,n)},_track:async(t,n)=>{const i=await No();if(o=i?.userAgent,o&&/^Mozilla\/5\.0 \([^;]+; CPU [^)]+ like Mac OS X\) AppleWebKit\/600\.1\.4 \(KHTML, like Gecko\) Version\/\d\.0 Mobile\/10B329 Safari\/8536\.25$/.test(o))return void console.warn("Skipping tracking for Segment user agent:",i.userAgent);var o;if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e&&"web"===r.A.OS||[/bot/i,/crawl/i,/spider/i,/HeadlessChrome/i,/PhantomJS/i,/slurp/i,/curl/i,/wget/i,/httpclient/i].some(t=>t.test(e))}(i?.userAgent))return void console.warn("Skipping tracking for bot user agent:",i.userAgent);const a=e||window.analytics;if(!a)return;const s=await oi();s?.id?await a.identify(`${s.id}`,{name:`${s.first_name} ${s.last_name}`,email:s.email,country:s.country}):(console.error("Track Event tracked without user:",t,JSON.stringify(n)),console.error("Can't identify as user is not logged in",JSON.stringify(s))),await a.track(t,{...i,...n})}}})(),de=Boolean(v),he=Wt(),fe=he.isTablet;(0,t.useEffect)(()=>{zr({locale:S,translations:w})},[]),(0,t.useEffect)(()=>{(async(e,t)=>{if(!Dr.isInitialized)return;const n=await Vr(),r=jr(n,t),i=Fr(r);Dr.addResourceBundle(e,"translation",i,!0,!0),Dr.language!==e&&Dr.changeLanguage(e)})(S,w)},[S,w]),(0,t.useEffect)(()=>{(async()=>{try{if(!s){const e=await Nr("persist:userInfo",{}),t=JSON.parse(e?.user||"{}"),n=t?.token||"";n&&$(n)}}catch(e){console.error("Failed to load auth data from storage",e)}})()},[s]);const pe=async()=>{y&&await Lr("external_context",y)};(0,t.useEffect)(()=>{0===C.length&&pe()},[C]),(0,t.useEffect)(()=>{pe()},[y]);const me=(0,t.useCallback)(e=>{let t=e?.search_payload;const n=JSON.stringify(t),i=e?.search_payload;if(!i)return;const o="string"==typeof i.lab_grown?"true"===i.lab_grown:"boolean"==typeof i.lab_grown&&i.lab_grown,s=`${a}webapp/${o?"lab-grown-diamonds":"natural-diamonds"}/search?priceMode=${z}&productType=${o?mi.LAB_GROWN_DIAMOND:mi.DIAMOND}&fromNewFilterScreen=false&filterSplitStep=1&sectionName=${"pair"===t.pair?"Pairs":"Single Stones"}&breadCrumbLabel=Stone%20Search&enterSecondFlow=false&saved_search=${n}`;m?m(s,i):"web"===r.A.OS&&window.open(s,"_parent")},[a,z,m]),ge=(0,t.useCallback)(e=>{const t=`${a}webapp/${e.type===mi.LAB_GROWN_DIAMOND?"lab-grown-diamonds":"natural-diamonds"}/item-detail/${e.id}?productType=${e.type}&priceMode=${z}&breadCrumbLabel=Stone%20Details`;g?g(t,e):"web"===r.A.OS&&window.open(t,"_parent")},[a,z,g]),ve=(0,t.useMemo)(()=>Boolean(H),[H]),ye=(0,t.useMemo)(()=>({conversationId:H}),[H]),be=(0,t.useCallback)(async(e,t,n)=>{try{let r="0";E(e=>{const t=e.find(e=>e.id===n);return r=t?.reaction||"0",e});const i=r===e?ni.UNSET:e,o=await(async(e,t,n,r)=>{const i=`${ji(e,n,r)}`,o={reaction:t};return await fetch(i,{method:"POST",headers:await Bi(),body:JSON.stringify(o)})})(a,i,t,n);o.ok?E(e=>e.map(e=>e.id===n?{...e,reaction:i}:e)):console.error("Feedback API failed",o.status)}catch(e){console.error("Feedback API error",e)}},[]);(0,t.useEffect)(()=>{let e=!1;return d.length||(async()=>{if(ve)try{const t=await Ui(a,0,z);if(!e){const e=(await Wi(t,z)).reverse();if(void 0!==t?.has_more&&q(t.has_more),void 0!==t?.next_cursor&&G(t.next_cursor),le.current=!1,ae.current=!1,0===e.length){const e={id:"",role:"assistant",text:x("chat.welcome.message.text",'Describe the diamond you\'re looking for — for example, "2ct F VS2 under $10,000" or "1–2ct D–F VS pear" — and I\'ll take it from there.'),createdAt:Date.now(),isLoading:!1,suggestions:[],search_payload:{},reaction:"0"};E([e]),q(!1)}else E(e)}}catch(e){console.error("Failed to fetch initial messages",e)}})(),()=>{e=!0}},[a,ye,d.length,ve,z]);const _e=(0,t.useCallback)(async e=>{const t=e.trim();if(!t||R)return;const n=await Nr("external_context"),r={id:`user-${Date.now()}`,role:"user",text:t,createdAt:Date.now(),external_context:n||null},i=`bot-loading-${Date.now()}`,o={id:i,role:"assistant",text:x("chat.thinking.text","Thinking"),createdAt:Date.now(),reaction:"0",isLoading:!0,search_payload:{}};E(e=>[...e,r,o]),O(i),T(!0);try{if(!ve)return void E(e=>e.map(e=>e.id===i?{...e,text:x("chat.authError.text","Chat is unavailable (missing user authentication)."),isLoading:!1}:e));const e=await async function(e,t,n,r,i){const o=await Hi(),a=o?.[i]?.conversation_id??null;if(void 0===i)return null;const s=await Nr("external_context");s&&await Ir("external_context");const l={query:t,external_context:s||null};a&&(l.conversation_id=Number.isNaN(Number(a))?a:Number(a));const u=await fetch(Fi(e),{method:"POST",headers:await Bi(),body:JSON.stringify(l)});if(!u.ok)throw new Error(`POST ${Fi(e)} failed with ${u.status}`);const c=await u.json();if(c&&null!=c.conversation_id&&i){const e={...o};e[i]={conversation_id:c.conversation_id},await $i(e)}return c}(a,t,0,0,z),n=(await Wi(e,z)).find(e=>"assistant"===e.role);if(n?.text){if(n?.search_payload&&"object"==typeof n.search_payload&&Object.keys(n.search_payload).length>0){const e=await Ki(a,n.search_payload);b?.(li.AI_CHAT_WIDGET,{action:ui.SEARCH_INITIATED,search_payload:n.search_payload});const t=e&&e.response&&e.response.body&&Array.isArray(e.response.body.diamonds)&&e.response.body.diamonds.length>0;t?_&&t&&me({search_payload:n.search_payload}):b?.(li.AI_CHAT_WIDGET,{action:ui.NO_RESULTS_FOUND,search_payload:n.search_payload}),F(t=>({...t,[n.id]:e}))}O(null),E(e=>e.map(e=>e.id===i?{...e,id:n.id,text:"",isLoading:!1,suggestions:n.suggestions,search_payload:n.search_payload??{}}:e)),setTimeout(()=>{N(n.id),D(n.text),ne.current?.scrollToEnd({animated:!0})},50)}else E(e=>e.map(e=>e.id===i?{...e,isLoading:!1}:e))}catch(e){E(e=>e.map(e=>e.id===i?{...e,text:x("chat.error.text","Sorry, something went wrong. Please try again."),isLoading:!1}:e)),console.error(e)}finally{T(!1),O(null),re.current?.focus()}},[a,R,C,ye,ve,z,me,_]),we=(0,t.useCallback)(async()=>{const e=k.trim();e&&(A(""),_e(e))},[k,_e]),Se=(0,t.useCallback)(e=>{_e(e)},[_e]),xe=(0,t.useCallback)(async e=>{const t=e.id;try{j(e=>new Set(e).add(t));const n=e?.search_payload;if(!n||0===Object.keys(n).length)return;const r=await Ki(a,n);F(e=>({...e,[t]:r}))}catch(e){console.error("Reload results failed",e)}finally{j(e=>{const n=new Set(e);return n.delete(t),n})}},[]),Ce=(0,t.useCallback)(async(e,t)=>{if(ee.has(e))return;const n=(Q[e]||1)+1;if(!(n>6))try{te(t=>new Set(t).add(e));const r=await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=await fetch(Vi(e),{method:"POST",headers:await Bi(),body:JSON.stringify({vdb:{...t,page_size:5,page_number:n}})});if(!r.ok)throw new Error(`POST failed with ${r.status}`);return await r.json()}(a,t,n);r?.response?.body?.diamonds&&(F(t=>{const n=t[e];if(!n)return t;const i=n.response?.body?.diamonds||[],o=r.response.body.diamonds;return{...t,[e]:{...n,response:{...n.response,body:{...n.response.body,diamonds:[...i,...o]}}}}}),Z(t=>({...t,[e]:n})))}catch(e){console.error("Failed to load more results:",e)}finally{te(t=>{const n=new Set(t);return n.delete(e),n})}},[a,ee,Q]),Ee=(0,t.useCallback)(async(e,t)=>{try{const n=await Ki(a,t);n?.response?.body?.diamonds&&(F(t=>({...t,[e]:n})),Z(t=>({...t,[e]:1})))}catch(e){console.error("Failed to show less results:",e)}},[a]),ke=(0,t.useCallback)(async()=>{if(W||!K||!ve)return;se.current=!0;const e=oe.current;U(!0);try{const t=await async function(e,t,n,r){const i=await Hi(),o=i?.[t??""]?.conversation_id??null;if(!o)return{messages:[],has_more:!1};const a={conversation_id:Number.isNaN(Number(o))?o:Number(o),fetch_history:!0};void 0!==n&&(a.cursor=n),void 0!==r&&(a.page=r);const s=await fetch(Fi(e),{method:"POST",headers:await Bi(),body:JSON.stringify(a)});if(!s.ok)throw new Error(`POST ${Fi(e)} failed with ${s.status}`);const l=await s.json();return{messages:l.messages||[],conversation_id:l.conversation_id,has_more:l.has_more??!1,next_cursor:l.next_cursor,total_count:l.total_count}}(a,z,Y,X+1),n=(await Wi(t,z)).reverse();n.length>0?(E(e=>{const t=new Set(e.map(e=>e.id)),r=n.filter(e=>!t.has(e.id));return console.log("[...newMessages, ...prev]",[...r,...e]),[...r,...e]}),J(e=>e+1),requestAnimationFrame(()=>{const t=oe.current-e;t>0&&ne.current&&ne.current.scrollTo({y:ie.current+t,animated:!1}),se.current=!1})):se.current=!1,q(t.has_more??n.length>0),G(t.next_cursor)}catch(e){console.error("Failed to load older messages",e),se.current=!1}finally{U(!1)}},[W,K,ve,a,z,Y,X]);(0,t.useEffect)(()=>{const e=()=>{setTimeout(()=>{try{ne.current?.scrollToEnd({animated:!0})}catch(e){}},100)},t="ios"===r.A.OS?"keyboardWillShow":"keyboardDidShow",n="ios"===r.A.OS?"keyboardWillHide":"keyboardDidHide",i=pt.A.addListener(t,e),o=pt.A.addListener(n,e);return()=>{i.remove(),o.remove()}},[]),(0,t.useEffect)(()=>(e.A.addListener("clearChat",Re),e.A.addListener("changePriceMode",e=>Ae(e.priceMode)),Ae(),(async()=>{const e=await oi(),t=e?.id,n=JSON.stringify(e?.email)??void 0;t&&ce(`${t}`,{email:n}).then()})(),()=>{e.A.removeAllListeners("clearChat"),e.A.removeAllListeners("changePriceMode")}),[]);const Ae=async e=>{if(!e&&l&&(e=l),!e){let t=await Nr("persist:userInfo",{user:void 0});t=t&&t.user?JSON.parse(t.user):{},e=t?.price_mode}B(void 0===e?null:String(e))},Re=(0,t.useCallback)(async()=>{try{const e=await Nr("vdbchat_conversations",null);if(e&&z&&e.conversations?.[z]){const t={...e.conversations};delete t[z],await Lr("vdbchat_conversations",{token:e.token,conversations:t})}E([]),F({}),j(new Set),T(!1),O(null),N(null),D(""),q(!0),G(void 0),J(1),le.current=!1,ae.current=!1,se.current=!1;const t=await Ui(a,0,z),n=(await Wi(t,z)).reverse();if(0===n.length){const e={id:"",role:"assistant",text:x("chat.welcome.message.text",'Describe the diamond you\'re looking for — for example, "2ct F VS2 under $10,000" or "1–2ct D–F VS pear" — and I\'ll take it from there.'),createdAt:Date.now(),isLoading:!1,suggestions:[],reaction:"0",search_payload:{}};E([e])}else E(n);p?.()}catch(e){console.error("Failed to clear chat",e)}},[a,z]);(0,t.useEffect)(()=>{if(!P||I)return;let e=0;const t=x("chat.thinking.text","Thinking"),n=setInterval(()=>{e=(e+1)%3;const n=".".repeat(e+1);E(e=>e.map(e=>e.id===P&&e.isLoading?{...e,text:`${t}${n}`}:e))},500);return()=>{clearInterval(n)}},[P,I,x]),(0,t.useImperativeHandle)(o,()=>({clearChat:Re}),[Re]);const Te=(0,t.useRef)(0);return(0,t.useEffect)(()=>{if(!I||!L)return void(Te.current=0);Te.current=0;const e=L.length,t=I,n=L,r=setInterval(()=>{Te.current+=1;const i=Te.current,o=n.slice(0,i);E(e=>e.map(e=>e.id===t?{...e,text:o}:e)),i>=e&&(clearInterval(r),N(null),D(""),E(e=>e.map(e=>e.id===t?{...e,isLoading:!1}:e)))},25);return()=>{clearInterval(r)}},[I,L]),t.createElement(Zo,null,t.createElement(ta,{theme:he},t.createElement(mt.A,{style:{flex:1},behavior:"ios"===r.A.OS?"padding":"height",keyboardVerticalOffset:100},C?.[0]?.createdAt&&t.createElement(na,{theme:he},t.createElement(ua,{onPress:Re},t.createElement(la,null,x("chatbot.clearChat.text","Clear Chat"))),t.createElement(ra,{theme:he},x("chat.chatStartedAt.text","Chat Started at {{time}}",{time:ti(C[0].createdAt,x)}))),t.createElement(gt.A,{ref:ne,keyboardShouldPersistTaps:"handled",onScroll:e=>{const{contentOffset:t,contentSize:n,layoutMeasurement:r}=e.nativeEvent;ie.current=t.y;const i=n.height-(r.height+t.y);ae.current=i>100,t.y<50&&K&&!W&&!se.current&&ke()},scrollEventThrottle:16,style:u?{height:u,backgroundColor:he["core-01"]||"#FFFFFF"}:{backgroundColor:he["core-01"]||"#FFFFFF"},contentContainerStyle:{backgroundColor:he["core-01"]||ue?.listContentBackgroundColor||"#FFFFFF",...ca.listContent,justifyContent:0===C.length?"center":"flex-end",minHeight:u||void 0,...fe?{maxWidth:608,alignSelf:"center",width:"100%"}:{}},onContentSizeChange:(e,t)=>{oe.current=t,se.current||W||(le.current?ae.current||ne.current?.scrollToEnd({animated:!1}):(ne.current?.scrollToEnd({animated:!1}),le.current=!0))}},W&&t.createElement(aa,null,t.createElement(vt.A,{size:"small",color:he["core-06"]||"#4F4E57"}),t.createElement(sa,{theme:he},x("chat.loadingOlder.text","Loading older messages..."))),(()=>{const e=[...C];return e.map((r,i)=>{const o=i===e.length-1,s=Boolean(M[r.id]?.response?.body?.diamonds&&M[r.id]?.response?.body?.diamonds.length>0);return t.createElement(n.A,{key:r.id+i,style:{gap:12}},t.createElement(xi,{message:r,userTheme:ue,priceMode:z,handleFeedbackAction:be,onReloadResults:xe,reloading:V.has(r.id),hasResults:s,totalResults:M[r.id]?.response?.header?M[r.id].response.header?.total_diamonds_found??0:null,shownResults:M[r.id]?.response?.body?.diamonds.length||0,onSuggestionSelect:Se,isLatest:o,isTyping:I===r.id}),"assistant"===r.role&&r.search_payload&&Object.keys(r.search_payload).length>0&&!M[r.id]&&t.createElement(Oo,{apiUrl:a,priceMode:z,messageId:r.id,payload:r.search_payload,onFetched:(e,t)=>{F(n=>({...n,[e]:t}))}}),"assistant"===r.role&&s&&!_&&t.createElement(Po,{data:M[r.id]?.response?.body?.diamonds||[],totalResults:M[r.id]?.response?.header?.total_diamonds_found||0,onViewAll:me,onItemPress:ge,item:r,showMoreResults:()=>Ce(r.id,r.search_payload),showLessResults:()=>Ee(r.id,r.search_payload),trackAnalyticsEvent:b,currentPage:Q[r.id]||1,isLoadingMore:ee.has(r.id)}),t.createElement(Li,{message:r,priceMode:z||"",handleFeedbackAction:be,onReloadResults:xe,reloading:V.has(r.id),hasResults:s}))})})()),t.createElement(oa,null),t.createElement(ia,{theme:he},t.createElement(Wr,{value:k,onChangeText:A,onSend:we,disabled:R,placeholder:h,theme:ue,inputRef:re}),t.createElement(Gi,{active:de})))))});ea.displayName="ChatWidget";const ta=vn.View`
239
239
  background-color: ${e=>{let{theme:t}=e;return t["core-01"]||"#FFFFFF"}};
240
240
  flex: 1;
241
241
  width: 100%;
242
- `,Hi=gn.View`
243
- padding: 16px;
242
+ `,na=vn.View`
243
+ padding: 8px;
244
+ flex-direction: row;
245
+ justify-content: space-between;
244
246
  align-items: center;
245
- justify-content: center;
246
247
  background-color: ${e=>{let{theme:t}=e;return t["core-01"]||"#FFFFFF"}};
247
- `,Wi=gn.Text`
248
+ `,ra=vn.Text`
248
249
  font-size: 13px;
249
250
  font-weight: 400;
250
251
  color: ${e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}};
251
- `,Ui=gn.View`
252
+ `,ia=vn.View`
252
253
  padding-vertical: 12px;
253
254
  padding-horizontal: 16px;
254
255
  flex-direction: column;
@@ -261,16 +262,22 @@
261
262
  align-self: center;
262
263
  width: 100%;
263
264
  `}};
264
- `,$i=gn.View`
265
+ `,oa=vn.View`
265
266
  border-top-color: ${e=>{let{theme:t}=e;return t["core-03"]||"#E0E0E0"}};
266
267
  border-top-width: 1;
267
- `,Yi=gn.View`
268
+ `,aa=vn.View`
268
269
  padding: 12px;
269
270
  align-items: center;
270
271
  justify-content: center;
271
272
  flex-direction: row;
272
273
  gap: 8px;
273
- `,Ki=gn.Text`
274
+ `,sa=vn.Text`
274
275
  font-size: 12px;
275
276
  color: ${e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}};
276
- `,qi=i.A.create({listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"}}),Gi=i.A.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:i="chat-widget",apiUrl:a,theme:s,height:l="500px",width:u="360px",button:c={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:d,isBetaMode:f}=e,h=`${i}-modal`,p=`${i}-launcher`;let m=document.getElementById(p);m||(m=document.createElement("button"),m.id=p,m.type="button",m.innerText=c.label||"",m.innerHTML=c.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",m.style.color=c.iconColor||"#ffffff",m.style.position="fixed",m.style.zIndex="2147483000",m.style.borderRadius="100px",m.style.padding="0",m.style.width="56px",m.style.height="56px",m.style.backgroundColor=c.backgroundColor||"transparent",m.style.color=c.labelColor||"transparent",m.style.border="none",m.style.cursor="pointer",m.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",m.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",m.style.fontSize="14px",m.style.bottom=c.buttonPosition?.bottom||"24px",c.buttonPosition?.top&&(m.style.top=c.buttonPosition.top),m.style.right=c.buttonPosition?.right||"20px",c.buttonPosition?.left&&(m.style.left=c.buttonPosition.left),document.body.appendChild(m));let v=document.getElementById(h);v||(v=document.createElement("div"),v.id=h,v.style.position="fixed",v.style.zIndex="2147483000",v.style.bottom=c.modalPosition?.bottom||"30px",c.modalPosition?.top&&(v.style.top=c.modalPosition.top),v.style.right=c.modalPosition?.right||"30px",c.modalPosition?.left&&(v.style.left=c.modalPosition.left),v.style.width=u,v.style.height=l,v.style.maxWidth="30%",v.style.maxHeight="80%",v.style.backgroundColor="#ffffff",v.style.borderRadius="12px",v.style.overflow="hidden",v.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",v.style.display="none",v.style.opacity="0",v.style.transform="translateY(16px) scale(0.98)",v.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(v)),function(e,i,a,s,l,u,c,d,f){const h=(0,o.H)(e),p=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),i=window.ReactNativeWebView;if(i?.postMessage)i.postMessage(r);else{try{window.parent?.postMessage(n,"*")}catch{}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch{}}},m=t.createElement(n.A,{style:Gi.root},t.createElement(ji,{apiUrl:Er(i),theme:a,onClose:s,onClearChat:()=>{},onViewAllPress:(e,t)=>{p("ai_view_all",{url:e,payload:t}),s?.()},onItemPress:(e,t)=>{p("ai_item_click",{url:e,item:t}),s?.()},isBetaMode:f}));if(h.render(m),"web"===r.A.OS&&u)try{const e="undefined"!=typeof navigator&&(navigator.userAgent.includes("Edg")||navigator.userAgent.includes("Edge"));dt.load({writeKey:u,trackAppLifecycleEvents:!1,flushAt:e?1:10,flushInterval:1e4,maxBatchSize:e?1:10}).then(async e=>{let[n]=e;n?.debug?.(!0),window.analytics=n,n.page?.();try{const e=await Yn(),t=e?.id;t&&n.identify(t)}catch{}const r=t.createElement(ht,{client:n},m);h.render(r)}).catch(e=>{console.error("[Segment] init failed",e)})}catch(e){console.error("[Segment] init failed",e)}}(v,a,s,()=>y(!1),0,d,0,0,f);let g=!1;const y=e=>{g=e,e?(v.style.display="block",requestAnimationFrame(()=>{v.style.opacity="1",v.style.transform="translateY(0px) scale(1)";const e=document.getElementById("chat-input");e&&e.focus()})):(v.style.opacity="0",v.style.transform="translateY(16px) scale(0.98)",setTimeout(()=>{g||(v.style.display="none")},230))};m.onclick=()=>{try{const e=window.analytics;e&&(g?e.track(qn.WIDGET_CLOSED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.():e.track(qn.WIDGET_OPENED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.())}catch(e){}y(!g)}},window.clearChat=function(){e.A.emit("clearChat")},window.changePriceMode=function(t){e.A.emit("changePriceMode",{priceMode:t})}})()})();
277
+ `,la=vn.Text`
278
+ color: ${e=>{let{theme:t}=e;return t["link-static"]||"#3378f6"}};
279
+ text-align: right;
280
+ font-size: 13px;
281
+ font-weight: 500;
282
+ line-height: 136%;
283
+ `,ua=vn.TouchableOpacity``,ca=i.A.create({listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"}}),da=i.A.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:i="chat-widget",apiUrl:a,theme:s,height:l="500px",width:u="360px",button:c={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:d,isBetaMode:h,locale:f,translations:p}=e;(f||p)&&zr({locale:f,translations:p});const m=`${i}-modal`,g=`${i}-launcher`;let v=document.getElementById(g);v||(v=document.createElement("button"),v.id=g,v.type="button",v.innerText=c.label||"",v.innerHTML=c.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",v.style.color=c.iconColor||"#ffffff",v.style.position="fixed",v.style.zIndex="2147483000",v.style.borderRadius="100px",v.style.padding="0",v.style.width="56px",v.style.height="56px",v.style.backgroundColor=c.backgroundColor||"transparent",v.style.color=c.labelColor||"transparent",v.style.border="none",v.style.cursor="pointer",v.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",v.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",v.style.fontSize="14px",v.style.bottom=c.buttonPosition?.bottom||"24px",c.buttonPosition?.top&&(v.style.top=c.buttonPosition.top),v.style.right=c.buttonPosition?.right||"20px",c.buttonPosition?.left&&(v.style.left=c.buttonPosition.left),document.body.appendChild(v));let y=document.getElementById(m);y||(y=document.createElement("div"),y.id=m,y.style.position="fixed",y.style.zIndex="2147483000",y.style.bottom=c.modalPosition?.bottom||"30px",c.modalPosition?.top&&(y.style.top=c.modalPosition.top),y.style.right=c.modalPosition?.right||"30px",c.modalPosition?.left&&(y.style.left=c.modalPosition.left),y.style.width=u,y.style.height=l,y.style.maxWidth="30%",y.style.maxHeight="80%",y.style.backgroundColor="#ffffff",y.style.borderRadius="12px",y.style.overflow="hidden",y.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",y.style.display="none",y.style.opacity="0",y.style.transform="translateY(16px) scale(0.98)",y.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(y)),function(e,i,a,s,l,u,c,d,h){const f=(0,o.H)(e),p=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),i=window.ReactNativeWebView;if(i?.postMessage)i.postMessage(r);else{try{window.parent?.postMessage(n,"*")}catch{}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch{}}},m=t.createElement(n.A,{style:da.root},t.createElement(ea,{apiUrl:Fi(i),theme:a,onClose:s,onClearChat:()=>{},onViewAllPress:(e,t)=>{p("ai_view_all",{url:e,payload:t}),s?.()},onItemPress:(e,t)=>{p("ai_item_click",{url:e,item:t}),s?.()},isBetaMode:h}));if(f.render(m),"web"===r.A.OS&&u)try{const e="undefined"!=typeof navigator&&(navigator.userAgent.includes("Edg")||navigator.userAgent.includes("Edge"));dt.load({writeKey:u,trackAppLifecycleEvents:!1,flushAt:e?1:10,flushInterval:1e4,maxBatchSize:e?1:10}).then(async e=>{let[n]=e;n?.debug?.(!0),window.analytics=n,n.page?.();try{const e=await oi(),t=e?.id;t&&n.identify(t)}catch{}const r=t.createElement(ft,{client:n},m);f.render(r)}).catch(e=>{console.error("[Segment] init failed",e)})}catch(e){console.error("[Segment] init failed",e)}}(y,a,s,()=>_(!1),0,d,0,0,h);let b=!1;const _=e=>{b=e,e?(y.style.display="block",requestAnimationFrame(()=>{y.style.opacity="1",y.style.transform="translateY(0px) scale(1)";const e=document.getElementById("chat-input");e&&e.focus()})):(y.style.opacity="0",y.style.transform="translateY(16px) scale(0.98)",setTimeout(()=>{b||(y.style.display="none")},230))};v.onclick=()=>{try{const e=window.analytics;e&&(b?e.track(si.WIDGET_CLOSED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.():e.track(si.WIDGET_OPENED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.())}catch(e){}_(!b)}},window.clearChat=function(){e.A.emit("clearChat")},window.changePriceMode=function(t){e.A.emit("changePriceMode",{priceMode:t})},window.setTranslations=async e=>{try{const t=await Pr("persist:root"),n=t?JSON.parse(t):{};let r="string"==typeof n?.globalData?JSON.parse(n.globalData):n?.globalData||{};if(r.ai_chat_bot={...r.ai_chat_bot,translations:e},n.globalData=JSON.stringify(r),await Or("persist:root",JSON.stringify(n)),Dr.isInitialized){const t=Fr(e);Dr.addResourceBundle(Dr.language,"translation",t,!0,!0)}}catch{}},window.getTranslations=async()=>{const e=await Vr();return e&&Object.keys(e).length>0?e:Cr},window.changeLanguage=async e=>{const t=await Vr(),n=jr(t,void 0),r=Fr(n);Dr.addResourceBundle(e,"translation",r,!0,!0),await Dr.changeLanguage(e)},window.initI18n=zr})()})();