ocearo-ui 0.1.0 → 0.1.2

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 (92) hide show
  1. package/404.html +1 -1
  2. package/README.md +5 -0
  3. package/_next/static/chunks/{117-13c5dd4a0d014140.js → 117-ddf36b6a7b427a7b.js} +2 -2
  4. package/_next/static/chunks/154.5a4b1f874e4dc912.js +1 -0
  5. package/_next/static/chunks/221.fb1adcbb0ffffbef.js +1 -0
  6. package/_next/static/chunks/274.9f7e7656569e62ca.js +1 -0
  7. package/_next/static/chunks/875-34a16d45b233a109.js +680 -0
  8. package/_next/static/chunks/967.0888f88af5e1e286.js +1 -0
  9. package/_next/static/chunks/975.d6c51a6ff00d0466.js +1 -0
  10. package/_next/static/chunks/app/page-732898e6bc4f7502.js +1 -0
  11. package/_next/static/chunks/b536a0f1-7c94f39427c6b177.js +197 -0
  12. package/_next/static/chunks/bd904a5c-cda56ad9f008ceb3.js +36 -0
  13. package/_next/static/chunks/{fd9d1056-cea23896a4e51c9f.js → fd9d1056-5fd12b742601fe8c.js} +1 -1
  14. package/_next/static/chunks/main-3fc5e29932a06222.js +1 -0
  15. package/_next/static/chunks/webpack-6ba3ee57ba412e0f.js +1 -0
  16. package/_next/static/css/c20c87eb42004889.css +3 -0
  17. package/boats/boats.json +1 -1
  18. package/boats/default/Scene.jsx +31 -3
  19. package/boats/optimist/Scene.jsx +5 -5
  20. package/boats/optimist/assets/scene-transformed.glb +0 -0
  21. package/boats/sailboat/Scene.jsx +2 -1
  22. package/boats/ship/Scene.jsx +3 -3
  23. package/boats/ship/assets/scene-transformed.glb +0 -0
  24. package/boats/windsurf/Scene.jsx +3 -3
  25. package/boats/windsurf/assets/scene-transformed.glb +0 -0
  26. package/index.html +1 -1
  27. package/index.txt +2 -2
  28. package/ocearo-ui-0.1.2.tgz +0 -0
  29. package/package.json +9 -3
  30. package/_next/static/chunks/154.e59cfd7ab28b22f3.js +0 -1
  31. package/_next/static/chunks/221.c556ed3958a01555.js +0 -1
  32. package/_next/static/chunks/274.6221f97fc72b40bf.js +0 -1
  33. package/_next/static/chunks/40-b8c70536a139d7d9.js +0 -680
  34. package/_next/static/chunks/967.7790c46728e72d8c.js +0 -1
  35. package/_next/static/chunks/975.9cec8f9ccded8eb3.js +0 -1
  36. package/_next/static/chunks/app/page-7e7661c2756491f8.js +0 -1
  37. package/_next/static/chunks/b536a0f1-302f79f7db7fee1d.js +0 -197
  38. package/_next/static/chunks/bd904a5c-c2e9cd00941cf03a.js +0 -36
  39. package/_next/static/chunks/main-724f5359f23c43fc.js +0 -1
  40. package/_next/static/chunks/webpack-a0fb0ccf52a3e8c0.js +0 -1
  41. package/_next/static/css/e46a5fe684411565.css +0 -3
  42. package/boats/default/assets/ahsap_baseColor.png +0 -0
  43. package/boats/default/assets/ahsap_emissive.png +0 -0
  44. package/boats/default/assets/ahsap_metallicRoughness.png +0 -0
  45. package/boats/default/assets/fiberglass2_baseColor.png +0 -0
  46. package/boats/default/assets/fiberglass2_metallicRoughness.png +0 -0
  47. package/boats/default/assets/fiberglass_baseColor.png +0 -0
  48. package/boats/default/assets/fiberglass_emissive.png +0 -0
  49. package/boats/default/assets/fiberglass_metallicRoughness.png +0 -0
  50. package/boats/default/assets/material_5_baseColor.png +0 -0
  51. package/boats/default/assets/material_5_emissive.png +0 -0
  52. package/boats/default/assets/material_5_metallicRoughness.png +0 -0
  53. package/boats/default/assets/material_baseColor.png +0 -0
  54. package/boats/default/assets/material_emissive.png +0 -0
  55. package/boats/default/assets/material_metallicRoughness.png +0 -0
  56. package/boats/default/assets/metal_baseColor.png +0 -0
  57. package/boats/default/assets/metal_emissive.png +0 -0
  58. package/boats/default/assets/metal_metallicRoughness.png +0 -0
  59. package/boats/default/assets/scene.bin +0 -0
  60. package/boats/default/assets/scene.gltf +0 -3670
  61. package/boats/default/assets/textures/ahsap_baseColor.png +0 -0
  62. package/boats/default/assets/textures/ahsap_emissive.png +0 -0
  63. package/boats/default/assets/textures/ahsap_metallicRoughness.png +0 -0
  64. package/boats/default/assets/textures/fiberglass2_baseColor.png +0 -0
  65. package/boats/default/assets/textures/fiberglass2_metallicRoughness.png +0 -0
  66. package/boats/default/assets/textures/fiberglass_baseColor.png +0 -0
  67. package/boats/default/assets/textures/fiberglass_emissive.png +0 -0
  68. package/boats/default/assets/textures/fiberglass_metallicRoughness.png +0 -0
  69. package/boats/default/assets/textures/material_5_baseColor.png +0 -0
  70. package/boats/default/assets/textures/material_5_emissive.png +0 -0
  71. package/boats/default/assets/textures/material_5_metallicRoughness.png +0 -0
  72. package/boats/default/assets/textures/material_baseColor.png +0 -0
  73. package/boats/default/assets/textures/material_emissive.png +0 -0
  74. package/boats/default/assets/textures/material_metallicRoughness.png +0 -0
  75. package/boats/default/assets/textures/metal_baseColor.png +0 -0
  76. package/boats/default/assets/textures/metal_emissive.png +0 -0
  77. package/boats/default/assets/textures/metal_metallicRoughness.png +0 -0
  78. package/boats/optimist/assets/scene-transformed.bin +0 -0
  79. package/boats/optimist/assets/scene-transformed.gltf +0 -929
  80. package/boats/optimist/assets/scene.bin +0 -0
  81. package/boats/optimist/assets/scene.gltf +0 -983
  82. package/boats/sailboat/assets/metal_baseColor.png +0 -0
  83. package/boats/sailboat/assets/scene.bin +0 -0
  84. package/boats/sailboat/assets/scene.gltf +0 -153
  85. package/boats/ship/assets/scene.bin +0 -0
  86. package/boats/ship/assets/scene.gltf +0 -973
  87. package/boats/windsurf/assets/scene.bin +0 -0
  88. package/boats/windsurf/assets/scene.gltf +0 -1393
  89. package/ocearo-ui-0.1.0.tgz +0 -0
  90. /package/_next/static/{hLkq03jgAO1apsjE1H6pU → 7lwSkApRgo2DU2ao1IjeG}/_buildManifest.js +0 -0
  91. /package/_next/static/{hLkq03jgAO1apsjE1H6pU → 7lwSkApRgo2DU2ao1IjeG}/_ssgManifest.js +0 -0
  92. /package/_next/static/chunks/{0f8af13e-5f64d2851243c648.js → 0f8af13e-59794c1587e7a41d.js} +0 -0
@@ -1,680 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40],{1268:function(e,t,n){"use strict";n.d(t,{G:function(){return tQ}});let r=()=>{},i={},o={},a=null,s={mark:r,measure:r};try{"undefined"!=typeof window&&(i=window),"undefined"!=typeof document&&(o=document),"undefined"!=typeof MutationObserver&&(a=MutationObserver),"undefined"!=typeof performance&&(s=performance)}catch(e){}let{userAgent:l=""}=i.navigator||{},u=i,c=o,f=a,d=s;u.document;let p=!!c.documentElement&&!!c.head&&"function"==typeof c.addEventListener&&"function"==typeof c.createElement,h=~l.indexOf("MSIE")||~l.indexOf("Trident/");var m,g="classic",y="duotone",v="sharp",b="sharp-duotone",A=[g,y,v,b],w={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},E=[1,2,3,4,5,6,7,8,9,10],C=E.concat([11,12,13,14,15,16,17,18,19,20]),S={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},B=["classic","sharp","sharp-duotone","solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",S.GROUP,S.SWAP_OPACITY,S.PRIMARY,S.SECONDARY].concat(E.map(e=>"".concat(e,"x"))).concat(C.map(e=>"w-".concat(e)));let x="___FONT_AWESOME___",_="svg-inline--fa",R="data-fa-i2svg",M="data-fa-pseudo-element",O="data-prefix",P="data-icon",T="fontawesome-i2svg",I=["HTML","HEAD","STYLE","SCRIPT"],k=(()=>{try{return!0}catch(e){return!1}})(),D=[g,v,b];function F(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[g]})}let L={...w};L[g]={...w[g],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};let j=F(L),N={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};N[g]={...N[g],kit:"fak","kit-duotone":"fakd"};let U=F(N),G={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};G[g]={...G[g],fak:"fa-kit"};let H=F(G),z={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};z[g]={...z[g],"fa-kit":"fak"};let J=F(z),W=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,K="fa-layers-text",Q=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;F({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}});let X=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Y=new Set;Object.keys(U[g]).map(Y.add.bind(Y)),Object.keys(U[v]).map(Y.add.bind(Y)),Object.keys(U[b]).map(Y.add.bind(Y));let q=["kit",...B],V=u.FontAwesomeConfig||{};c&&"function"==typeof c.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(e=>{var t;let[n,r]=e,i=""===(t=function(e){var t=c.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n))||"false"!==t&&("true"===t||t);null!=i&&(V[r]=i)});let Z={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:_,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};V.familyPrefix&&(V.cssPrefix=V.familyPrefix);let $={...Z,...V};$.autoReplaceSvg||($.observeMutations=!1);let ee={};Object.keys(Z).forEach(e=>{Object.defineProperty(ee,e,{enumerable:!0,set:function(t){$[e]=t,et.forEach(e=>e(ee))},get:function(){return $[e]}})}),Object.defineProperty(ee,"familyPrefix",{enumerable:!0,set:function(e){$.cssPrefix=e,et.forEach(e=>e(ee))},get:function(){return $.cssPrefix}}),u.FontAwesomeConfig=ee;let et=[],en={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function er(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function ei(e){let t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function eo(e){return e.classList?ei(e.classList):(e.getAttribute("class")||"").split(" ").filter(e=>e)}function ea(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function es(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function el(e){return e.size!==en.size||e.x!==en.x||e.y!==en.y||e.rotate!==en.rotate||e.flipX||e.flipY}function eu(){let e=ee.cssPrefix,t=ee.replacementClass,n=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==e||t!==_){let r=RegExp("\\.".concat("fa","\\-"),"g"),i=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(_),"g");n=n.replace(r,".".concat(e,"-")).replace(i,"--".concat(e,"-")).replace(o,".".concat(t))}return n}let ec=!1;function ef(){ee.autoAddCss&&!ec&&(!function(e){if(!e||!p)return;let t=c.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;let n=c.head.childNodes,r=null;for(let e=n.length-1;e>-1;e--){let t=n[e];["STYLE","LINK"].indexOf((t.tagName||"").toUpperCase())>-1&&(r=t)}c.head.insertBefore(t,r)}(eu()),ec=!0)}let ed=u||{};ed[x]||(ed[x]={}),ed[x].styles||(ed[x].styles={}),ed[x].hooks||(ed[x].hooks={}),ed[x].shims||(ed[x].shims=[]);var ep=ed[x];let eh=[],em=function(){c.removeEventListener("DOMContentLoaded",em),eg=1,eh.map(e=>e())},eg=!1;function ey(e){let{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?ea(e):"<".concat(t," ").concat(Object.keys(n||{}).reduce((e,t)=>e+"".concat(t,'="').concat(ea(n[t]),'" '),"").trim(),">").concat(r.map(ey).join(""),"</").concat(t,">")}function ev(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}!p||(eg=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",em);var eb=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,n,i,o){return t.call(r,e,n,i,o)}:t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=u(a,e[o=s[i]],o,e);return a};function eA(e){let t=function(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(64512&r)==56320?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function ew(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function eE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{skipHooks:r=!1}=n,i=ew(t);"function"!=typeof ep.hooks.addPack||r?ep.styles[e]={...ep.styles[e]||{},...i}:ep.hooks.addPack(e,ew(t)),"fas"===e&&eE("fa",t)}let{styles:eC,shims:eS}=ep,eB={[g]:Object.values(H[g]),[v]:Object.values(H[v]),[b]:Object.values(H[b])},ex=null,e_={},eR={},eM={},eO={},eP={},eT={[g]:Object.keys(j[g]),[v]:Object.keys(j[v]),[b]:Object.keys(j[b])},eI=()=>{let e=e=>eb(eC,(t,n,r)=>(t[r]=eb(n,e,{}),t),{});e_=e((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(e=>"number"==typeof e).forEach(t=>{e[t.toString(16)]=n}),e)),eR=e((e,t,n)=>(e[n]=n,t[2]&&t[2].filter(e=>"string"==typeof e).forEach(t=>{e[t]=n}),e)),eP=e((e,t,n)=>{let r=t[2];return e[n]=n,r.forEach(t=>{e[t]=n}),e});let t="far"in eC||ee.autoFetchSvg,n=eb(eS,(e,n)=>{let r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});eM=n.names,eO=n.unicodes,ex=ej(ee.styleDefault,{family:ee.familyDefault})};function ek(e,t){return(e_[e]||{})[t]}function eD(e,t){return(eP[e]||{})[t]}function eF(e){return eM[e]||{prefix:null,iconName:null}}m=e=>{ex=ej(e.styleDefault,{family:ee.familyDefault})},et.push(m),eI();let eL=()=>({prefix:null,iconName:null,rest:[]});function ej(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{family:n=g}=t,r=j[n][e],i=U[n][e]||U[n][r],o=e in ep.styles?e:null;return i||o||null}let eN={[g]:Object.keys(H[g]),[v]:Object.keys(H[v]),[b]:Object.keys(H[b])};function eU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{skipLookups:n=!1}=t,r={[g]:"".concat(ee.cssPrefix,"-").concat(g),[v]:"".concat(ee.cssPrefix,"-").concat(v),[b]:"".concat(ee.cssPrefix,"-").concat(b)},i=null,o=g,a=A.filter(e=>e!==y);a.forEach(t=>{(e.includes(r[t])||e.some(e=>eN[t].includes(e)))&&(o=t)});let s=e.reduce((e,t)=>{let s=function(e,t){let n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||~q.indexOf(i)?null:i}(ee.cssPrefix,t);if(eC[t]?(i=t=eB[o].includes(t)?J[o][t]:t,e.prefix=t):eT[o].indexOf(t)>-1?(i=t,e.prefix=ej(t,{family:o})):s?e.iconName=s:t===ee.replacementClass||a.some(e=>t===r[e])||e.rest.push(t),!n&&e.prefix&&e.iconName){let t="fa"===i?eF(e.iconName):{},n=eD(e.prefix,e.iconName);t.prefix&&(i=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||eC.far||!eC.fas||ee.autoFetchSvg||(e.prefix="fas")}return e},eL());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&o===v&&(eC.fass||ee.autoFetchSvg)&&(s.prefix="fass",s.iconName=eD(s.prefix,s.iconName)||s.iconName),!s.prefix&&o===b&&(eC.fasds||ee.autoFetchSvg)&&(s.prefix="fasds",s.iconName=eD(s.prefix,s.iconName)||s.iconName),("fa"===s.prefix||"fa"===i)&&(s.prefix=ex||"fas"),s}class eG{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach(e=>{this.definitions[e]={...this.definitions[e]||{},...r[e]},eE(e,r[e]);let t=H[g][e];t&&eE(t,r[e]),eI()})}reset(){this.definitions={}}_pullDefinitions(e,t){let n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(t=>{let{prefix:r,iconName:i,icon:o}=n[t],a=o[2];e[r]||(e[r]={}),a.length>0&&a.forEach(t=>{"string"==typeof t&&(e[r][t]=o)}),e[r][i]=o}),e}}let eH=[],ez={},eJ={},eW=Object.keys(eJ);function eK(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(ez[e]||[]).forEach(e=>{t=e.apply(null,[t,...r])}),t}function eQ(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ez[e]||[]).forEach(e=>{e.apply(null,n)})}function eX(){let e=arguments[0],t=Array.prototype.slice.call(arguments,1);return eJ[e]?eJ[e].apply(null,t):void 0}function eY(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e,n=e.prefix||ex;if(t)return t=eD(n,t)||t,ev(eq.definitions,n,t)||ev(ep.styles,n,t)}let eq=new eG,eV={noAuto:()=>{ee.autoReplaceSvg=!1,ee.observeMutations=!1,eQ("noAuto")},config:ee,dom:{i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p?(eQ("beforeI2svg",e),eX("pseudoElements2svg",e),eX("i2svg",e)):Promise.reject(Error("Operation requires a DOM of some kind."))},watch:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoReplaceSvgRoot:n}=t;!1===ee.autoReplaceSvg&&(ee.autoReplaceSvg=!0),ee.observeMutations=!0,e=()=>{eZ({autoReplaceSvgRoot:n}),eQ("watch",t)},p&&(eg?setTimeout(e,0):eh.push(e))}},parse:{icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:eD(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){let t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=ej(e[0]);return{prefix:n,iconName:eD(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ee.cssPrefix,"-"))>-1||e.match(W))){let t=eU(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||ex,iconName:eD(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){let t=ex;return{prefix:t,iconName:eD(t,e)||e}}}},library:eq,findIconDefinition:eY,toHtml:ey},eZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoReplaceSvgRoot:t=c}=e;(Object.keys(ep.styles).length>0||ee.autoFetchSvg)&&p&&ee.autoReplaceSvg&&eV.dom.i2svg({node:t})};function e$(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(e=>ey(e))}}),Object.defineProperty(e,"node",{get:function(){if(!p)return;let t=c.createElement("div");return t.innerHTML=e.html,t.children}}),e}function e0(e){let{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:u,extra:c,watchable:f=!1}=e,{width:d,height:p}=n.found?n:t,h="fak"===r,m=[ee.replacementClass,i?"".concat(ee.cssPrefix,"-").concat(i):""].filter(e=>-1===c.classes.indexOf(e)).filter(e=>""!==e||!!e).concat(c.classes).join(" "),g={children:[],attributes:{...c.attributes,"data-prefix":r,"data-icon":i,class:m,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)}},y=h&&!~c.classes.indexOf("fa-fw")?{width:"".concat(d/p*1,"em")}:{};f&&(g.attributes[R]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(u||er())},children:[s]}),delete g.attributes.title);let v={...g,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...y,...c.styles}},{children:b,attributes:A}=n.found&&t.found?eX("generateAbstractMask",v)||{children:[],attributes:{}}:eX("generateAbstractIcon",v)||{children:[],attributes:{}};return(v.children=b,v.attributes=A,a)?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e,a=!0===o?"".concat(t,"-").concat(ee.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:a},children:r}]}]}(v):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(el(a)&&n.found&&!r.found){let{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=es({...o,"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}(v)}function e1(e){let{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[R]="");let u={...a.styles};el(i)&&(u.transform=function(e){let{transform:t,width:n=16,height:r=16,startCentered:i=!1}=e,o="";return i&&h?o+="translate(".concat(t.x/16-n/2,"em, ").concat(t.y/16-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/16,"em), calc(-50% + ").concat(t.y/16,"em)) "):o+="translate(".concat(t.x/16,"em, ").concat(t.y/16,"em) "),o+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") ")+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);let c=es(u);c.length>0&&(l.style=c);let f=[];return f.push({tag:"span",attributes:l,children:[t]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}let{styles:e2}=ep;function e3(e){let t=e[0],n=e[1],[r]=e.slice(4);return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ee.cssPrefix,"-").concat(S.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ee.cssPrefix,"-").concat(S.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ee.cssPrefix,"-").concat(S.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}let e4={found:!1,width:512,height:512};function e6(e,t){let n=t;return"fa"===t&&null!==ee.styleDefault&&(t=ex),new Promise((r,i)=>{var o,a;if("fa"===n){let n=eF(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&e2[t]&&e2[t][e])return r(e3(e2[t][e]));o=e,a=t,k||ee.showMissingIcons||!o||console.error('Icon with name "'.concat(o,'" and prefix "').concat(a,'" is missing.')),r({...e4,icon:ee.showMissingIcons&&e&&eX("missingIconAbstract")||{}})})}let e8=()=>{},e9=ee.measurePerformance&&d&&d.mark&&d.measure?d:{mark:e8,measure:e8},e5='FA "6.6.0"',e7=e=>{e9.mark("".concat(e5," ").concat(e," ends")),e9.measure("".concat(e5," ").concat(e),"".concat(e5," ").concat(e," begins"),"".concat(e5," ").concat(e," ends"))};var te={begin:e=>(e9.mark("".concat(e5," ").concat(e," begins")),()=>e7(e))};let tt=()=>{};function tn(e){return"string"==typeof(e.getAttribute?e.getAttribute(R):null)}function tr(e){return c.createElementNS("http://www.w3.org/2000/svg",e)}function ti(e){return c.createElement(e)}let to={replace:function(e){let t=e[0];if(t.parentNode){if(e[1].forEach(e=>{t.parentNode.insertBefore(function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ceFn:r="svg"===t.tag?tr:ti}=n;if("string"==typeof t)return c.createTextNode(t);let i=r(t.tag);return Object.keys(t.attributes||[]).forEach(function(e){i.setAttribute(e,t.attributes[e])}),(t.children||[]).forEach(function(t){i.appendChild(e(t,{ceFn:r}))}),i}(e),t)}),null===t.getAttribute(R)&&ee.keepOriginalSource){let e;let n=c.createComment((e=" ".concat(t.outerHTML," "),e="".concat(e,"Font Awesome fontawesome.com ")));t.parentNode.replaceChild(n,t)}else t.remove()}},nest:function(e){let t=e[0],n=e[1];if(~eo(t).indexOf(ee.replacementClass))return to.replace(e);let r=new RegExp("".concat(ee.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){let e=n[0].attributes.class.split(" ").reduce((e,t)=>(t===ee.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}let i=n.map(e=>ey(e)).join("\n");t.setAttribute(R,""),t.innerHTML=i}};function ta(e){e()}function ts(e,t){let n="function"==typeof t?t:tt;if(0===e.length)n();else{let t=ta;"async"===ee.mutateApproach&&(t=u.requestAnimationFrame||ta),t(()=>{let t=!0===ee.autoReplaceSvg?to.replace:to[ee.autoReplaceSvg]||to.replace,r=te.begin("mutate");e.map(t),r(),n()})}}let tl=!1,tu=null;function tc(e){if(!f||!ee.observeMutations)return;let{treeCallback:t=tt,nodeCallback:n=tt,pseudoElementsCallback:r=tt,observeMutationsRoot:i=c}=e;tu=new f(e=>{if(tl)return;let i=ex;ei(e).forEach(e=>{if("childList"===e.type&&e.addedNodes.length>0&&!tn(e.addedNodes[0])&&(ee.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&ee.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&tn(e.target)&&~X.indexOf(e.attributeName)){if("class"===e.attributeName&&function(e){let t=e.getAttribute?e.getAttribute(O):null,n=e.getAttribute?e.getAttribute(P):null;return t&&n}(e.target)){let{prefix:t,iconName:n}=eU(eo(e.target));e.target.setAttribute(O,t||i),n&&e.target.setAttribute(P,n)}else{var o;(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(ee.replacementClass)&&n(e.target)}}})}),p&&tu.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function tf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},{iconName:n,prefix:r,rest:i}=function(e){let t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=eU(eo(e));if(i.prefix||(i.prefix=ex),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix)return i;if(i.prefix&&r.length>0){var o,a;i.iconName=(o=i.prefix,a=e.innerText,(eR[o]||{})[a]||ek(i.prefix,eA(e.innerText)))}return!i.iconName&&ee.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i}(e),o=function(e){let t=ei(e.attributes).reduce((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ee.autoA11y&&(n?t["aria-labelledby"]="".concat(ee.replacementClass,"-title-").concat(r||er()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=eK("parseNodeAttributes",{},e),s=t.styleParser?function(e){let t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((e,t)=>{let n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e},{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:en,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}let{styles:td}=ep;function tp(e){let t="nest"===ee.autoReplaceSvg?tf(e,{styleParser:!1}):tf(e);return~t.extra.classes.indexOf(K)?eX("generateLayersText",e,t):eX("generateSvgReplacementMutation",e,t)}let th=new Set;function tm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!p)return Promise.resolve();let n=c.documentElement.classList,r=e=>n.add("".concat(T,"-").concat(e)),i=e=>n.remove("".concat(T,"-").concat(e)),o=ee.autoFetchSvg?th:D.map(e=>"fa-".concat(e)).concat(Object.keys(td));o.includes("fa")||o.push("fa");let a=[".".concat(K,":not([").concat(R,"])")].concat(o.map(e=>".".concat(e,":not([").concat(R,"])"))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=ei(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");let l=te.begin("onTree"),u=s.reduce((e,t)=>{try{let n=tp(t);n&&e.push(n)}catch(e){k||"MissingIcon"!==e.name||console.error(e)}return e},[]);return new Promise((e,n)=>{Promise.all(u).then(n=>{ts(n,()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()})}).catch(e=>{l(),n(e)})})}function tg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;tp(e).then(e=>{e&&ts([e],t)})}D.map(e=>{th.add("fa-".concat(e))}),Object.keys(j[g]).map(th.add.bind(th)),Object.keys(j[v]).map(th.add.bind(th)),Object.keys(j[b]).map(th.add.bind(th)),th=[...th];let ty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{transform:n=en,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;let{prefix:f,iconName:d,icon:p}=e;return e$({type:"icon",...e},()=>(eQ("beforeDOMElementCreation",{iconDefinition:e,params:t}),ee.autoA11y&&(a?u["aria-labelledby"]="".concat(ee.replacementClass,"-title-").concat(s||er()):(u["aria-hidden"]="true",u.focusable="false")),e0({icons:{main:e3(p),mask:i?e3(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:{...en,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:c,classes:l}})))},tv=RegExp('"',"ug"),tb={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},tA=Object.keys(tb).reduce((e,t)=>(e[t.toLowerCase()]=tb[t],e),{}),tw=Object.keys(tA).reduce((e,t)=>{let n=tA[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function tE(e,t){let n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((r,i)=>{if(null!==e.getAttribute(n))return r();let o=ei(e.children).filter(e=>e.getAttribute(M)===t)[0],a=u.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Q),f=a.getPropertyValue("font-weight"),d=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&"none"!==d&&""!==d){let u=a.getPropertyValue("content"),d=function(e,t){let n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(tA[n]||{})[i]||tw[n]}(s,f),{value:p,isSecondary:h}=function(e){let t=e.replace(tv,""),n=function(e,t){let n;let r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?(i-55296)*1024+n-56320+65536:i}(t,0),r=2===t.length&&t[0]===t[1];return{value:r?eA(t[0]):eA(t),isSecondary:n>=1105920&&n<=1112319||r}}(u),m=l[0].startsWith("FontAwesome"),g=ek(d,p),y=g;if(m){let e=function(e){let t=eO[e],n=ek("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(p);e.iconName&&e.prefix&&(g=e.iconName,d=e.prefix)}if(!g||h||o&&o.getAttribute(O)===d&&o.getAttribute(P)===y)r();else{e.setAttribute(n,y),o&&e.removeChild(o);let a={iconName:null,title:null,titleId:null,prefix:null,transform:en,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[M]=t,e6(g,d).then(i=>{let o=e0({...a,icons:{main:i,mask:eL()},prefix:d,iconName:y,extra:s,watchable:!0}),l=c.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map(e=>ey(e)).join("\n"),e.removeAttribute(n),r()}).catch(i)}}else r()})}function tC(e){return Promise.all([tE(e,"::before"),tE(e,"::after")])}function tS(e){return e.parentNode!==document.head&&!~I.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(M)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function tB(e){if(p)return new Promise((t,n)=>{let r=ei(e.querySelectorAll("*")).filter(tS).map(tC),i=te.begin("searchPseudoElements");tl=!0,Promise.all(r).then(()=>{i(),tl=!1,t()}).catch(()=>{i(),tl=!1,n()})})}let tx=!1,t_=e=>e.toLowerCase().split(" ").reduce((e,t)=>{let n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(isNaN(i=parseFloat(i)))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),tR={x:0,y:0,width:"100%",height:"100%"};function tM(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){let{mixoutsTo:n}=t;eH=e,ez={},Object.keys(eJ).forEach(e=>{-1===eW.indexOf(e)&&delete eJ[e]}),eH.forEach(e=>{let t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach(r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]})}),e.hooks){let t=e.hooks();Object.keys(t).forEach(e=>{ez[e]||(ez[e]=[]),ez[e].push(t[e])})}e.provides&&e.provides(eJ)})}([{mixout:()=>({dom:{css:eu,insertCss:ef}}),hooks:()=>({beforeDOMElementCreation(){ef()},beforeI2svg(){ef()}})},{mixout:()=>({icon:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:eY(e||{}),{mask:r}=t;return r&&(r=(r||{}).icon?r:eY(r||{})),ty(n,{...t,mask:r})}}),hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=tm,e.nodeCallback=tg,e)}),provides(e){e.i2svg=function(e){let{node:t=c,callback:n=()=>{}}=e;return tm(t,n)},e.generateSvgReplacementMutation=function(e,t){let{iconName:n,title:r,titleId:i,prefix:o,transform:a,symbol:s,mask:l,maskId:u,extra:c}=t;return new Promise((t,f)=>{Promise.all([e6(n,o),l.iconName?e6(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(l=>{let[f,d]=l;t([e,e0({icons:{main:f,mask:d},prefix:o,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:i,extra:c,watchable:!0})])}).catch(f)})},e.generateAbstractIcon=function(e){let t,{children:n,attributes:r,main:i,transform:o,styles:a}=e,s=es(a);return s.length>0&&(r.style=s),el(o)&&(t=eX("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},{mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{classes:n=[]}=t;return e$({type:"layer"},()=>{eQ("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(e=>{Array.isArray(e)?e.map(e=>{r=r.concat(e.abstract)}):r=r.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(ee.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}})},{mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return e$({type:"counter",content:e},()=>(eQ("beforeDOMElementCreation",{content:e,params:t}),function(e){let{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=es(r.styles);o.length>0&&(i.style=o);let a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ee.cssPrefix,"-layers-counter"),...r]}})))}})},{mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{transform:n=en,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return e$({type:"text",content:e},()=>(eQ("beforeDOMElementCreation",{content:e,params:t}),e1({content:e,transform:{...en,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(ee.cssPrefix,"-layers-text"),...i]}})))}}),provides(e){e.generateLayersText=function(e,t){let{title:n,transform:r,extra:i}=t,o=null,a=null;if(h){let t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return ee.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,e1({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},{hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=tB,e)}),provides(e){e.pseudoElements2svg=function(e){let{node:t=c}=e;ee.searchPseudoElements&&tB(t)}}},{mixout:()=>({dom:{unwatch(){tl=!0,tx=!0}}}),hooks:()=>({bootstrap(){tc(eK("mutationObserverCallbacks",{}))},noAuto(){tu&&tu.disconnect()},watch(e){let{observeMutationsRoot:t}=e;tx?tl=!1:tc(eK("mutationObserverCallbacks",{observeMutationsRoot:t}))}})},{mixout:()=>({parse:{transform:e=>t_(e)}}),hooks:()=>({parseNodeAttributes(e,t){let n=t.getAttribute("data-fa-transform");return n&&(e.transform=t_(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e,o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={outer:{transform:"translate(".concat(r/2," 256)")},inner:l,path:{transform:"translate(".concat(-(i/2*1)," -256)")}};return{tag:"g",attributes:{...u.outer},children:[{tag:"g",attributes:{...u.inner},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u.path}}]}]}}}},{hooks:()=>({parseNodeAttributes(e,t){let n=t.getAttribute("data-fa-mask"),r=n?eU(n.split(" ").map(e=>e.trim())):eL();return r.prefix||(r.prefix=ex),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:o,transform:a}=e,{width:s,icon:l}=r,{width:u,icon:c}=i,f=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e,i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(i," ").concat(o," ").concat(a)};return{outer:{transform:"translate(".concat(n/2," 256)")},inner:s,path:{transform:"translate(".concat(-(r/2*1)," -256)")}}}({transform:a,containerWidth:u,iconWidth:s}),d={tag:"rect",attributes:{...tR,fill:"white"}},p=l.children?{children:l.children.map(tM)}:{},h={tag:"g",attributes:{...f.inner},children:[tM({tag:l.tag,attributes:{...l.attributes,...f.path},...p})]},m={tag:"g",attributes:{...f.outer},children:[h]},g="mask-".concat(o||er()),y="clip-".concat(o||er()),v={tag:"mask",attributes:{...tR,id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[d,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:"g"===c.tag?c.children:[c]},v]};return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")"),...tR}}),{children:t,attributes:n}}}},{provides(e){let t=!1;u.matchMedia&&(t=u.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){let e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});let i={...r,attributeName:"opacity"},o={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:()=>({parseNodeAttributes(e,t){let n=t.getAttribute("data-fa-symbol");return e.symbol=null!==n&&(""===n||n),e}})}],{mixoutsTo:eV}),eV.noAuto,eV.config,eV.library,eV.dom;let tO=eV.parse;eV.findIconDefinition,eV.toHtml;let tP=eV.icon;eV.layer,eV.text,eV.counter;var tT=n(718),tI=n.n(tT),tk=n(2265);function tD(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 tF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(t){tj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tL(e){return(tL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tN(e){return function(e){if(Array.isArray(e))return tU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tU(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tU(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tU(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 tG(e){var t;return(t=e-0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)}var tH=["style"],tz=!1;try{tz=!0}catch(e){}function tJ(e){return e&&"object"===tL(e)&&e.prefix&&e.iconName&&e.icon?e:tO.icon?tO.icon(e):null===e?null:e&&"object"===tL(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function tW(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?tj({},e,t):{}}var tK={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},tQ=tk.forwardRef(function(e,t){var n,r,i,o,a,s,l,u,c,f,d,p,h,m,g,y,v,b,A,w=tF(tF({},tK),e),E=w.icon,C=w.mask,S=w.symbol,B=w.className,x=w.title,_=w.titleId,R=w.maskId,M=tJ(E),O=tW("classes",[].concat(tN((r=w.beat,i=w.fade,o=w.beatFade,a=w.bounce,s=w.shake,l=w.flash,u=w.spin,c=w.spinPulse,f=w.spinReverse,d=w.pulse,p=w.fixedWidth,h=w.inverse,m=w.border,g=w.listItem,y=w.flip,v=w.size,b=w.rotation,A=w.pull,Object.keys((tj(n={"fa-beat":r,"fa-fade":i,"fa-beat-fade":o,"fa-bounce":a,"fa-shake":s,"fa-flash":l,"fa-spin":u,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":p,"fa-inverse":h,"fa-border":m,"fa-li":g,"fa-flip":!0===y,"fa-flip-horizontal":"horizontal"===y||"both"===y,"fa-flip-vertical":"vertical"===y||"both"===y},"fa-".concat(v),null!=v),tj(n,"fa-rotate-".concat(b),null!=b&&0!==b),tj(n,"fa-pull-".concat(A),null!=A),tj(n,"fa-swap-opacity",w.swapOpacity),n)).map(function(e){return n[e]?e:null}).filter(function(e){return e}))),tN((B||"").split(" ")))),P=tW("transform","string"==typeof w.transform?tO.transform(w.transform):w.transform),T=tW("mask",tJ(C)),I=tP(M,tF(tF(tF(tF({},O),P),T),{},{symbol:S,title:x,titleId:_,maskId:R}));if(!I)return!function(){if(!tz&&console&&"function"==typeof console.error){var e;(e=console).error.apply(e,arguments)}}("Could not find icon",M),null;var k=I.abstract,D={ref:t};return Object.keys(w).forEach(function(e){tK.hasOwnProperty(e)||(D[e]=w[e])}),tX(k[0],D)});tQ.displayName="FontAwesomeIcon",tQ.propTypes={beat:tI().bool,border:tI().bool,beatFade:tI().bool,bounce:tI().bool,className:tI().string,fade:tI().bool,flash:tI().bool,mask:tI().oneOfType([tI().object,tI().array,tI().string]),maskId:tI().string,fixedWidth:tI().bool,inverse:tI().bool,flip:tI().oneOf([!0,!1,"horizontal","vertical","both"]),icon:tI().oneOfType([tI().object,tI().array,tI().string]),listItem:tI().bool,pull:tI().oneOf(["right","left"]),pulse:tI().bool,rotation:tI().oneOf([0,90,180,270]),shake:tI().bool,size:tI().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:tI().bool,spinPulse:tI().bool,spinReverse:tI().bool,symbol:tI().oneOfType([tI().bool,tI().string]),title:tI().string,titleId:tI().string,transform:tI().oneOfType([tI().string,tI().object]),swapOpacity:tI().bool};var tX=(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map(function(n){return e(t,n)}),o=Object.keys(n.attributes||{}).reduce(function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.indexOf(":"),r=tG(t.slice(0,n)),i=t.slice(n+1).trim();return r.startsWith("webkit")?e[r.charAt(0).toUpperCase()+r.slice(1)]=i:e[r]=i,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[tG(t)]=r}return e},{attrs:{}}),a=r.style,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,tH);return o.attrs.style=tF(tF({},o.attrs.style),void 0===a?{}:a),t.apply(void 0,[n.tag,tF(tF({},o.attrs),s)].concat(tN(i)))}).bind(null,tk.createElement)},3126:function(e,t,n){"use strict";let r;n.d(t,{qA:function(){return ek}});var i=n(1119),o=n(2265),a=n(6010),s=n(2079);let l=e=>e&&e.isCubeTexture;class u extends s.Kj0{constructor(e,t){var n,r;let i=l(e),o=Math.floor(Math.log2((null!=(r=i?null==(n=e.image[0])?void 0:n.width:e.image.width)?r:1024)/4)),a=Math.pow(2,o),u=`
2
- varying vec3 vWorldPosition;
3
- void main()
4
- {
5
- vec4 worldPosition = ( modelMatrix * vec4( position, 1.0 ) );
6
- vWorldPosition = worldPosition.xyz;
7
-
8
- gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
9
- }
10
- `,c=[i?"#define ENVMAP_TYPE_CUBE":"",`#define CUBEUV_TEXEL_WIDTH ${1/(3*Math.max(a,112))}`,`#define CUBEUV_TEXEL_HEIGHT ${1/(4*a)}`,`#define CUBEUV_MAX_MIP ${o}.0`].join("\n")+`
11
- #define ENVMAP_TYPE_CUBE_UV
12
- varying vec3 vWorldPosition;
13
- uniform float radius;
14
- uniform float height;
15
- uniform float angle;
16
- #ifdef ENVMAP_TYPE_CUBE
17
- uniform samplerCube map;
18
- #else
19
- uniform sampler2D map;
20
- #endif
21
- // From: https://www.shadertoy.com/view/4tsBD7
22
- float diskIntersectWithBackFaceCulling( vec3 ro, vec3 rd, vec3 c, vec3 n, float r )
23
- {
24
- float d = dot ( rd, n );
25
-
26
- if( d > 0.0 ) { return 1e6; }
27
-
28
- vec3 o = ro - c;
29
- float t = - dot( n, o ) / d;
30
- vec3 q = o + rd * t;
31
-
32
- return ( dot( q, q ) < r * r ) ? t : 1e6;
33
- }
34
- // From: https://www.iquilezles.org/www/articles/intersectors/intersectors.htm
35
- float sphereIntersect( vec3 ro, vec3 rd, vec3 ce, float ra )
36
- {
37
- vec3 oc = ro - ce;
38
- float b = dot( oc, rd );
39
- float c = dot( oc, oc ) - ra * ra;
40
- float h = b * b - c;
41
-
42
- if( h < 0.0 ) { return -1.0; }
43
-
44
- h = sqrt( h );
45
-
46
- return - b + h;
47
- }
48
- vec3 project()
49
- {
50
- vec3 p = normalize( vWorldPosition );
51
- vec3 camPos = cameraPosition;
52
- camPos.y -= height;
53
- float intersection = sphereIntersect( camPos, p, vec3( 0.0 ), radius );
54
- if( intersection > 0.0 ) {
55
-
56
- vec3 h = vec3( 0.0, - height, 0.0 );
57
- float intersection2 = diskIntersectWithBackFaceCulling( camPos, p, h, vec3( 0.0, 1.0, 0.0 ), radius );
58
- p = ( camPos + min( intersection, intersection2 ) * p ) / radius;
59
- } else {
60
- p = vec3( 0.0, 1.0, 0.0 );
61
- }
62
- return p;
63
- }
64
- #include <common>
65
- #include <cube_uv_reflection_fragment>
66
- void main()
67
- {
68
- vec3 projectedWorldPosition = project();
69
-
70
- #ifdef ENVMAP_TYPE_CUBE
71
- vec3 outcolor = textureCube( map, projectedWorldPosition ).rgb;
72
- #else
73
- vec3 direction = normalize( projectedWorldPosition );
74
- vec2 uv = equirectUv( direction );
75
- vec3 outcolor = texture2D( map, uv ).rgb;
76
- #endif
77
- gl_FragColor = vec4( outcolor, 1.0 );
78
- #include <tonemapping_fragment>
79
- #include <${parseInt(s.UZH.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}>
80
- }
81
- `;super(new s.cJO(1,16),new s.jyz({uniforms:{map:{value:e},height:{value:(null==t?void 0:t.height)||15},radius:{value:(null==t?void 0:t.radius)||100}},fragmentShader:c,vertexShader:u,side:s.ehD}))}set radius(e){this.material.uniforms.radius.value=e}get radius(){return this.material.uniforms.radius.value}set height(e){this.material.uniforms.height.value=e}get height(){return this.material.uniforms.height.value}}class c extends s.yxD{constructor(e){super(e),this.type=s.cLu}parse(e){let t,n,r;let i=function(e,t){switch(e){case 1:throw Error("THREE.RGBELoader: Read Error: "+(t||""));case 2:throw Error("THREE.RGBELoader: Write Error: "+(t||""));case 3:throw Error("THREE.RGBELoader: Bad File Format: "+(t||""));default:throw Error("THREE.RGBELoader: Memory Error: "+(t||""))}},o=function(e,t,n){t=t||1024;let r=e.pos,i=-1,o=0,a="",s=String.fromCharCode.apply(null,new Uint16Array(e.subarray(r,r+128)));for(;0>(i=s.indexOf("\n"))&&o<t&&r<e.byteLength;)a+=s,o+=s.length,r+=128,s+=String.fromCharCode.apply(null,new Uint16Array(e.subarray(r,r+128)));return -1<i&&(!1!==n&&(e.pos+=o+i+1),a+s.slice(0,i))},a=new Uint8Array(e);a.pos=0;let l=function(e){let t,n;let r=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,a=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,s=/^\s*FORMAT=(\S+)\s*$/,l=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,u={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};for(!(e.pos>=e.byteLength)&&(t=o(e))||i(1,"no header found"),(n=t.match(/^#\?(\S+)/))||i(3,"bad initial token"),u.valid|=1,u.programtype=n[1],u.string+=t+"\n";!1!==(t=o(e));){if(u.string+=t+"\n","#"===t.charAt(0)){u.comments+=t+"\n";continue}if((n=t.match(r))&&(u.gamma=parseFloat(n[1])),(n=t.match(a))&&(u.exposure=parseFloat(n[1])),(n=t.match(s))&&(u.valid|=2,u.format=n[1]),(n=t.match(l))&&(u.valid|=4,u.height=parseInt(n[1],10),u.width=parseInt(n[2],10)),2&u.valid&&4&u.valid)break}return 2&u.valid||i(3,"missing format specifier"),4&u.valid||i(3,"missing image size specifier"),u}(a),u=l.width,c=l.height,f=function(e,t,n){if(t<8||t>32767||2!==e[0]||2!==e[1]||128&e[2])return new Uint8Array(e);t!==(e[2]<<8|e[3])&&i(3,"wrong scanline width");let r=new Uint8Array(4*t*n);r.length||i(4,"unable to allocate buffer space");let o=0,a=0,s=4*t,l=new Uint8Array(4),u=new Uint8Array(s),c=n;for(;c>0&&a<e.byteLength;){a+4>e.byteLength&&i(1),l[0]=e[a++],l[1]=e[a++],l[2]=e[a++],l[3]=e[a++],(2!=l[0]||2!=l[1]||(l[2]<<8|l[3])!=t)&&i(3,"bad rgbe scanline format");let n=0,f;for(;n<s&&a<e.byteLength;){let t=(f=e[a++])>128;if(t&&(f-=128),(0===f||n+f>s)&&i(3,"bad scanline data"),t){let t=e[a++];for(let e=0;e<f;e++)u[n++]=t}else u.set(e.subarray(a,a+f),n),n+=f,a+=f}for(let e=0;e<t;e++){let n=0;r[o]=u[e+n],n+=t,r[o+1]=u[e+n],n+=t,r[o+2]=u[e+n],n+=t,r[o+3]=u[e+n],o+=4}c--}return r}(a.subarray(a.pos),u,c);switch(this.type){case s.VzW:let d=new Float32Array(4*(r=f.length/4));for(let e=0;e<r;e++)!function(e,t,n,r){let i=Math.pow(2,e[t+3]-128)/255;n[r+0]=e[t+0]*i,n[r+1]=e[t+1]*i,n[r+2]=e[t+2]*i,n[r+3]=1}(f,4*e,d,4*e);t=d,n=s.VzW;break;case s.cLu:let p=new Uint16Array(4*(r=f.length/4));for(let e=0;e<r;e++)!function(e,t,n,r){let i=Math.pow(2,e[t+3]-128)/255;n[r+0]=s.A5E.toHalfFloat(Math.min(e[t+0]*i,65504)),n[r+1]=s.A5E.toHalfFloat(Math.min(e[t+1]*i,65504)),n[r+2]=s.A5E.toHalfFloat(Math.min(e[t+2]*i,65504)),n[r+3]=s.A5E.toHalfFloat(1)}(f,4*e,p,4*e);t=p,n=s.cLu;break;default:throw Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:u,height:c,data:t,header:l.string,gamma:l.gamma,exposure:l.exposure,type:n}}setDataType(e){return this.type=e,this}load(e,t,n,r){return super.load(e,function(e,n){switch(e.type){case s.VzW:case s.cLu:"colorSpace"in e?e.colorSpace="srgb-linear":e.encoding=3e3,e.minFilter=s.wem,e.magFilter=s.wem,e.generateMipmaps=!1,e.flipY=!0}t&&t(e,n)},n,r)}}var f={},d=Uint8Array,p=Uint16Array,h=Uint32Array,m=new d([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),g=new d([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),y=new d([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=function(e,t){for(var n=new p(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new h(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},b=v(m,2),A=b[0],w=b[1];A[28]=258,w[258]=28;for(var E=v(g,0),C=E[0],S=E[1],B=new p(32768),x=0;x<32768;++x){var _=(43690&x)>>>1|(21845&x)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,B[x]=((65280&_)>>>8|(255&_)<<8)>>>1}for(var R=function(e,t,n){for(var r,i=e.length,o=0,a=new p(t);o<i;++o)++a[e[o]-1];var s=new p(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(n){r=new p(1<<t);var l=15-t;for(o=0;o<i;++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],f=s[e[o]-1]++<<c,d=f|(1<<c)-1;f<=d;++f)r[B[f]>>>l]=u}else for(o=0,r=new p(i);o<i;++o)e[o]&&(r[o]=B[s[e[o]-1]++]>>>15-e[o]);return r},M=new d(288),x=0;x<144;++x)M[x]=8;for(var x=144;x<256;++x)M[x]=9;for(var x=256;x<280;++x)M[x]=7;for(var x=280;x<288;++x)M[x]=8;for(var O=new d(32),x=0;x<32;++x)O[x]=5;var P=R(M,9,1),T=R(O,5,1),I=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},k=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},D=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},F=function(e){return(e/8|0)+(7&e&&1)},L=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof p?p:e instanceof h?h:d)(n-t);return r.set(e.subarray(t,n)),r},j=function(e,t,n){var r=e.length;if(!r||n&&!n.l&&r<5)return t||new d(0);var i=!t||n,o=!n||n.i;n||(n={}),t||(t=new d(3*r));var a=function(e){var n=t.length;if(e>n){var r=new d(Math.max(2*n,e));r.set(t),t=r}},s=n.f||0,l=n.p||0,u=n.b||0,c=n.l,f=n.d,p=n.m,h=n.n,v=8*r;do{if(!c){n.f=s=k(e,l,1);var b=k(e,l+1,3);if(l+=3,b){if(1==b)c=P,f=T,p=9,h=5;else if(2==b){var w=k(e,l,31)+257,E=k(e,l+10,15)+4,S=w+k(e,l+5,31)+1;l+=14;for(var B=new d(S),x=new d(19),_=0;_<E;++_)x[y[_]]=k(e,l+3*_,7);l+=3*E;for(var M=I(x),O=(1<<M)-1,j=R(x,M,1),_=0;_<S;){var N=j[k(e,l,O)];l+=15&N;var U=N>>>4;if(U<16)B[_++]=U;else{var G=0,H=0;for(16==U?(H=3+k(e,l,3),l+=2,G=B[_-1]):17==U?(H=3+k(e,l,7),l+=3):18==U&&(H=11+k(e,l,127),l+=7);H--;)B[_++]=G}}var z=B.subarray(0,w),J=B.subarray(w);p=I(z),h=I(J),c=R(z,p,1),f=R(J,h,1)}else throw"invalid block type"}else{var U=F(l)+4,W=e[U-4]|e[U-3]<<8,K=U+W;if(K>r){if(o)throw"unexpected EOF";break}i&&a(u+W),t.set(e.subarray(U,K),u),n.b=u+=W,n.p=l=8*K;continue}if(l>v){if(o)throw"unexpected EOF";break}}i&&a(u+131072);for(var Q=(1<<p)-1,X=(1<<h)-1,Y=l;;Y=l){var G=c[D(e,l)&Q],q=G>>>4;if((l+=15&G)>v){if(o)throw"unexpected EOF";break}if(!G)throw"invalid length/literal";if(q<256)t[u++]=q;else if(256==q){Y=l,c=null;break}else{var V=q-254;if(q>264){var _=q-257,Z=m[_];V=k(e,l,(1<<Z)-1)+A[_],l+=Z}var $=f[D(e,l)&X],ee=$>>>4;if(!$)throw"invalid distance";l+=15&$;var J=C[ee];if(ee>3){var Z=g[ee];J+=D(e,l)&(1<<Z)-1,l+=Z}if(l>v){if(o)throw"unexpected EOF";break}i&&a(u+131072);for(var et=u+V;u<et;u+=4)t[u]=t[u-J],t[u+1]=t[u+1-J],t[u+2]=t[u+2-J],t[u+3]=t[u+3-J];u=et}}n.l=c,n.p=Y,n.b=u,c&&(s=1,n.m=p,n.d=f,n.n=h)}while(!s);return u==t.length?t:L(t,0,u)},N=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},U=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},G=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[X,0];if(1==i){var a=new d(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],u=0,c=1,f=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=i-1;)s=n[n[u].f<n[f].f?u++:f++],l=n[u!=c&&n[u].f<n[f].f?u++:f++],n[c++]={s:-1,f:s.f+l.f,l:s,r:l};for(var h=o[0].s,r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var m=new p(h+1),g=H(n[c-1],m,0);if(g>t){var r=0,y=0,v=g-t,b=1<<v;for(o.sort(function(e,t){return m[t.s]-m[e.s]||e.f-t.f});r<i;++r){var A=o[r].s;if(m[A]>t)y+=b-(1<<g-m[A]),m[A]=t;else break}for(y>>>=v;y>0;){var w=o[r].s;m[w]<t?y-=1<<t-m[w]++-1:++r}for(;r>=0&&y;--r){var E=o[r].s;m[E]==t&&(--m[E],++y)}g=t}return[new d(m),g]},H=function(e,t,n){return -1==e.s?Math.max(H(e.l,t,n+1),H(e.r,t,n+1)):t[e.s]=n},z=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new p(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},J=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},W=function(e,t,n){var r=n.length,i=F(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},K=function(e,t,n,r,i,o,a,s,l,u,c){N(t,c++,n),++i[256];for(var f,d,h,v,b=G(i,15),A=b[0],w=b[1],E=G(o,15),C=E[0],S=E[1],B=z(A),x=B[0],_=B[1],P=z(C),T=P[0],I=P[1],k=new p(19),D=0;D<x.length;++D)k[31&x[D]]++;for(var D=0;D<T.length;++D)k[31&T[D]]++;for(var F=G(k,7),L=F[0],j=F[1],H=19;H>4&&!L[y[H-1]];--H);var K=u+5<<3,Q=J(i,M)+J(o,O)+a,X=J(i,A)+J(o,C)+a+14+3*H+J(k,L)+(2*k[16]+3*k[17]+7*k[18]);if(K<=Q&&K<=X)return W(t,c,e.subarray(l,l+u));if(N(t,c,1+(X<Q)),c+=2,X<Q){f=R(A,w,0),d=A,h=R(C,S,0),v=C;var Y=R(L,j,0);N(t,c,_-257),N(t,c+5,I-1),N(t,c+10,H-4),c+=14;for(var D=0;D<H;++D)N(t,c+3*D,L[y[D]]);c+=3*H;for(var q=[x,T],V=0;V<2;++V)for(var Z=q[V],D=0;D<Z.length;++D){var $=31&Z[D];N(t,c,Y[$]),c+=L[$],$>15&&(N(t,c,Z[D]>>>5&127),c+=Z[D]>>>12)}}else f=null,d=M,h=null,v=O;for(var D=0;D<s;++D)if(r[D]>255){var $=r[D]>>>18&31;U(t,c,f[$+257]),c+=d[$+257],$>7&&(N(t,c,r[D]>>>23&31),c+=m[$]);var ee=31&r[D];U(t,c,h[ee]),c+=v[ee],ee>3&&(U(t,c,r[D]>>>5&8191),c+=g[ee])}else U(t,c,f[r[D]]),c+=d[r[D]];return U(t,c,f[256]),c+d[256]},Q=new h([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),X=new d(0),Y=function(e){if((15&e[0])!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function q(e,t){return j((Y(e),e.subarray(2,-4)),t)}var V="undefined"!=typeof TextDecoder&&new TextDecoder;try{V.decode(X,{stream:!0})}catch(e){}let Z="colorSpace"in new s.xEZ;class $ extends s.yxD{constructor(e){super(e),this.type=s.cLu}parse(e){let t={l:0,c:0,lc:0};function n(e,n,r,i,o){for(;r<e;)n=n<<8|x(i,o),r+=8;r-=e,t.l=n>>r&(1<<e)-1,t.c=n,t.lc=r}let r=Array(59),i={c:0,lc:0};function o(e,t,n,r){e=e<<8|x(n,r),t+=8,i.c=e,i.lc=t}let a={c:0,lc:0};function l(e,t,n,r,s,l,u,c,f,d){if(e==t){r<8&&(o(n,r,s,u),n=i.c,r=i.lc);var p=n>>(r-=8),p=new Uint8Array([p])[0];if(f.value+p>d)return!1;for(var h=c[f.value-1];p-- >0;)c[f.value++]=h}else{if(!(f.value<d))return!1;c[f.value++]=e}a.c=n,a.lc=r}function u(e){var t=65535&e;return t>32767?t-65536:t}let c={a:0,b:0};function f(e,t){var n=u(e),r=u(t),i=n+(1&r)+(r>>1),o=i-r;c.a=i,c.b=o}function d(e,t){var n=65535&t,r=(65535&e)-(n>>1)&65535;c.a=n+r-32768&65535,c.b=r}function p(e,s,u,c,f,d){var p=u.value,h=B(s,u),m=B(s,u);u.value+=4;var g=B(s,u);if(u.value+=4,h<0||h>=65537||m<0||m>=65537)throw"Something wrong with HUF_ENCSIZE";var y=Array(65537),v=Array(16384);!function(e){for(var t=0;t<16384;t++)e[t]={},e[t].len=0,e[t].lit=0,e[t].p=null}(v);var b=c-(u.value-p);if(!function(e,i,o,a,s,l,u){for(var c=0,f=0;s<=l;s++){if(o.value-o.value>a)return!1;n(6,c,f,e,o);var d=t.l;if(c=t.c,f=t.lc,u[s]=d,63==d){if(o.value-o.value>a)throw"Something wrong with hufUnpackEncTable";n(8,c,f,e,o);var p=t.l+6;if(c=t.c,f=t.lc,s+p>l+1)throw"Something wrong with hufUnpackEncTable";for(;p--;)u[s++]=0;s--}else if(d>=59){var p=d-59+2;if(s+p>l+1)throw"Something wrong with hufUnpackEncTable";for(;p--;)u[s++]=0;s--}}!function(e){for(var t=0;t<=58;++t)r[t]=0;for(var t=0;t<65537;++t)r[e[t]]+=1;for(var n=0,t=58;t>0;--t){var i=n+r[t]>>1;r[t]=n,n=i}for(var t=0;t<65537;++t){var o=e[t];o>0&&(e[t]=o|r[o]++<<6)}}(u)}(e,0,u,b,h,m,y),g>8*(c-(u.value-p)))throw"Something wrong with hufUncompress";!function(e,t,n,r){for(;t<=n;t++){var i=e[t]>>6,o=63&e[t];if(i>>o)throw"Invalid table entry";if(o>14){var a=r[i>>o-14];if(a.len)throw"Invalid table entry";if(a.lit++,a.p){var s=a.p;a.p=Array(a.lit);for(var l=0;l<a.lit-1;++l)a.p[l]=s[l]}else a.p=[,];a.p[a.lit-1]=t}else if(o)for(var u=0,l=1<<14-o;l>0;l--){var a=r[(i<<14-o)+u];if(a.len||a.p)throw"Invalid table entry";a.len=o,a.lit=t,u++}}}(y,h,m,v),function(e,t,n,r,s,u,c,f,d,p){for(var h=0,m=0,g=Math.trunc(s.value+(u+7)/8);s.value<g;)for(o(h,m,n,s),h=i.c,m=i.lc;m>=14;){var y=t[h>>m-14&16383];if(y.len)m-=y.len,l(y.lit,c,h,m,n,r,s,d,p,f),h=a.c,m=a.lc;else{if(!y.p)throw"hufDecode issues";for(v=0;v<y.lit;v++){for(var v,b=63&e[y.p[v]];m<b&&s.value<g;)o(h,m,n,s),h=i.c,m=i.lc;if(m>=b&&e[y.p[v]]>>6==(h>>m-b&(1<<b)-1)){m-=b,l(y.p[v],c,h,m,n,r,s,d,p,f),h=a.c,m=a.lc;break}}if(v==y.lit)throw"hufDecode issues"}}var A=8-u&7;for(h>>=A,m-=A;m>0;){var y=t[h<<14-m&16383];if(y.len)m-=y.len,l(y.lit,c,h,m,n,r,s,d,p,f),h=a.c,m=a.lc;else throw"hufDecode issues"}}(y,v,e,s,u,g,m,d,f,{value:0})}function h(e){for(var t=1;t<e.length;t++){var n=e[t-1]+e[t]-128;e[t]=n}}function m(e,t){for(var n=0,r=Math.floor((e.length+1)/2),i=0,o=e.length-1;!(i>o)&&(t[i++]=e[n++],!(i>o));)t[i++]=e[r++]}function g(e){for(var t=e.byteLength,n=[],r=0,i=new DataView(e);t>0;){var o=i.getInt8(r++);if(o<0){var a=-o;t-=a+1;for(var s=0;s<a;s++)n.push(i.getUint8(r++))}else{var a=o;t-=2;for(var l=i.getUint8(r++),s=0;s<a+1;s++)n.push(l)}}return n}function y(e){return new DataView(e.array.buffer,e.offset.value,e.size)}function v(e){var t=new Uint8Array(g(e.viewer.buffer.slice(e.offset.value,e.offset.value+e.size))),n=new Uint8Array(t.length);return h(t),m(t,n),new DataView(n.buffer)}function b(e){var t=q(e.array.slice(e.offset.value,e.offset.value+e.size)),n=new Uint8Array(t.length);return h(t),m(t,n),new DataView(n.buffer)}function A(e){for(var t=e.viewer,n={value:e.offset.value},r=new Uint16Array(e.width*e.scanlineBlockSize*(e.channels*e.type)),i=new Uint8Array(8192),o=0,a=Array(e.channels),s=0;s<e.channels;s++)a[s]={},a[s].start=o,a[s].end=a[s].start,a[s].nx=e.width,a[s].ny=e.lines,a[s].size=e.type,o+=a[s].nx*a[s].ny*a[s].size;var l=T(t,n),u=T(t,n);if(u>=8192)throw"Something is wrong with PIZ_COMPRESSION BITMAP_SIZE";if(l<=u)for(var s=0;s<u-l+1;s++)i[s+l]=_(t,n);var h=new Uint16Array(65536),m=function(e,t){for(var n=0,r=0;r<65536;++r)(0==r||e[r>>3]&1<<(7&r))&&(t[n++]=r);for(var i=n-1;n<65536;)t[n++]=0;return i}(i,h),g=B(t,n);p(e.array,t,n,g,r,o);for(var s=0;s<e.channels;++s)for(var y=a[s],v=0;v<a[s].size;++v)!function(e,t,n,r,i,o,a){for(var s=a<16384,l=n>i?i:n,u=1;u<=l;)u<<=1;for(u>>=1,p=u,u>>=1;u>=1;){for(var p,h,m,g,y,v=0,b=0+o*(i-p),A=o*u,w=o*p,E=r*u,C=r*p;v<=b;v+=w){for(var S=v,B=v+r*(n-p);S<=B;S+=C){var x=S+E,_=S+A,R=_+E;s?(f(e[S+t],e[_+t]),h=c.a,g=c.b,f(e[x+t],e[R+t]),m=c.a,y=c.b,f(h,m),e[S+t]=c.a,e[x+t]=c.b,f(g,y)):(d(e[S+t],e[_+t]),h=c.a,g=c.b,d(e[x+t],e[R+t]),m=c.a,y=c.b,d(h,m),e[S+t]=c.a,e[x+t]=c.b,d(g,y)),e[_+t]=c.a,e[R+t]=c.b}if(n&u){var _=S+A;s?f(e[S+t],e[_+t]):d(e[S+t],e[_+t]),h=c.a,e[_+t]=c.b,e[S+t]=h}}if(i&u)for(var S=v,B=v+r*(n-p);S<=B;S+=C){var x=S+E;s?f(e[S+t],e[x+t]):d(e[S+t],e[x+t]),h=c.a,e[x+t]=c.b,e[S+t]=h}p=u,u>>=1}}(r,y.start+v,y.nx,y.size,y.ny,y.nx*y.size,m);!function(e,t,n){for(var r=0;r<n;++r)t[r]=e[t[r]]}(h,r,o);for(var b=0,A=new Uint8Array(r.buffer.byteLength),w=0;w<e.lines;w++)for(var E=0;E<e.channels;E++){var y=a[E],C=y.nx*y.size,S=new Uint8Array(r.buffer,2*y.end,2*C);A.set(S,b),b+=2*C,y.end+=C}return new DataView(A.buffer)}function w(e){var t=q(e.array.slice(e.offset.value,e.offset.value+e.size));let n=e.lines*e.channels*e.width,r=1==e.type?new Uint16Array(n):new Uint32Array(n),i=0,o=0,a=[,,,,];for(let n=0;n<e.lines;n++)for(let n=0;n<e.channels;n++){let n=0;switch(e.type){case 1:a[0]=i,a[1]=a[0]+e.width,i=a[1]+e.width;for(let i=0;i<e.width;++i)n+=t[a[0]++]<<8|t[a[1]++],r[o]=n,o++;break;case 2:a[0]=i,a[1]=a[0]+e.width,a[2]=a[1]+e.width,i=a[2]+e.width;for(let i=0;i<e.width;++i)n+=t[a[0]++]<<24|t[a[1]++]<<16|t[a[2]++]<<8,r[o]=n,o++}}return new DataView(r.buffer)}function E(e){var t=e.viewer,n={value:e.offset.value},r=new Uint8Array(e.width*e.lines*(e.channels*e.type*2)),i={version:R(t,n),unknownUncompressedSize:R(t,n),unknownCompressedSize:R(t,n),acCompressedSize:R(t,n),dcCompressedSize:R(t,n),rleCompressedSize:R(t,n),rleUncompressedSize:R(t,n),rleRawSize:R(t,n),totalAcUncompressedCount:R(t,n),totalDcUncompressedCount:R(t,n),acCompression:R(t,n)};if(i.version<2)throw"EXRLoader.parse: "+L.compression+" version "+i.version+" is unsupported";for(var o=[],a=T(t,n)-2;a>0;){var l=C(t.buffer,n),u=_(t,n),c=u>>2&3,f=new Int8Array([(u>>4)-1])[0],d=_(t,n);o.push({name:l,index:f,type:d,compression:c}),a-=l.length+3}for(var h=L.channels,m=Array(e.channels),y=0;y<e.channels;++y){var v=m[y]={},A=h[y];v.name=A.name,v.compression=0,v.decoded=!1,v.type=A.pixelType,v.pLinear=A.pLinear,v.width=e.width,v.height=e.lines}for(var w={idx:[,,,]},E=0;E<e.channels;++E)for(var v=m[E],y=0;y<o.length;++y){var S=o[y];v.name==S.name&&(v.compression=S.compression,S.index>=0&&(w.idx[S.index]=E),v.offset=E)}if(i.acCompressedSize>0)switch(i.acCompression){case 0:var B=new Uint16Array(i.totalAcUncompressedCount);p(e.array,t,n,i.acCompressedSize,B,i.totalAcUncompressedCount);break;case 1:var x=e.array.slice(n.value,n.value+i.totalAcUncompressedCount),M=q(x),B=new Uint16Array(M.buffer);n.value+=i.totalAcUncompressedCount}if(i.dcCompressedSize>0){var O=new Uint16Array(b({array:e.array,offset:n,size:i.dcCompressedSize}).buffer);n.value+=i.dcCompressedSize}if(i.rleRawSize>0){var x=e.array.slice(n.value,n.value+i.rleCompressedSize),M=q(x),I=g(M.buffer);n.value+=i.rleCompressedSize}for(var k=0,D=Array(m.length),y=0;y<D.length;++y)D[y]=[];for(var F=0;F<e.lines;++F)for(var j=0;j<m.length;++j)D[j].push(k),k+=m[j].width*e.type*2;!function(e,t,n,r,i,o){var a=new DataView(o.buffer),l=n[e.idx[0]].width,u=n[e.idx[0]].height,c=Math.floor(l/8),f=Math.ceil(l/8),d=Math.ceil(u/8),p=l-(f-1)*8,h=u-(d-1)*8,m={value:0},g=[,,,],y=[,,,],v=[,,,],b=[,,,],A=[,,,];for(let n=0;n<3;++n)A[n]=t[e.idx[n]],g[n]=n<1?0:g[n-1]+f*d,y[n]=new Float32Array(64),v[n]=new Uint16Array(64),b[n]=new Uint16Array(64*f);for(let t=0;t<d;++t){var w,E,C=8;t==d-1&&(C=h);var S=8;for(let e=0;e<f;++e){e==f-1&&(S=p);for(let e=0;e<3;++e)v[e].fill(0),v[e][0]=i[g[e]++],function(e,t,n){for(var r,i=1;i<64;)65280==(r=t[e.value])?i=64:r>>8==255?i+=255&r:(n[i]=r,i++),e.value++}(m,r,v[e]),w=v[e],(E=y[e])[0]=P(w[0]),E[1]=P(w[1]),E[2]=P(w[5]),E[3]=P(w[6]),E[4]=P(w[14]),E[5]=P(w[15]),E[6]=P(w[27]),E[7]=P(w[28]),E[8]=P(w[2]),E[9]=P(w[4]),E[10]=P(w[7]),E[11]=P(w[13]),E[12]=P(w[16]),E[13]=P(w[26]),E[14]=P(w[29]),E[15]=P(w[42]),E[16]=P(w[3]),E[17]=P(w[8]),E[18]=P(w[12]),E[19]=P(w[17]),E[20]=P(w[25]),E[21]=P(w[30]),E[22]=P(w[41]),E[23]=P(w[43]),E[24]=P(w[9]),E[25]=P(w[11]),E[26]=P(w[18]),E[27]=P(w[24]),E[28]=P(w[31]),E[29]=P(w[40]),E[30]=P(w[44]),E[31]=P(w[53]),E[32]=P(w[10]),E[33]=P(w[19]),E[34]=P(w[23]),E[35]=P(w[32]),E[36]=P(w[39]),E[37]=P(w[45]),E[38]=P(w[52]),E[39]=P(w[54]),E[40]=P(w[20]),E[41]=P(w[22]),E[42]=P(w[33]),E[43]=P(w[38]),E[44]=P(w[46]),E[45]=P(w[51]),E[46]=P(w[55]),E[47]=P(w[60]),E[48]=P(w[21]),E[49]=P(w[34]),E[50]=P(w[37]),E[51]=P(w[47]),E[52]=P(w[50]),E[53]=P(w[56]),E[54]=P(w[59]),E[55]=P(w[61]),E[56]=P(w[35]),E[57]=P(w[36]),E[58]=P(w[48]),E[59]=P(w[49]),E[60]=P(w[57]),E[61]=P(w[58]),E[62]=P(w[62]),E[63]=P(w[63]),function(e){let t=.5*Math.cos(3.14159/16),n=.5*Math.cos(3.14159/8),r=.5*Math.cos(3*3.14159/16),i=.5*Math.cos(3*3.14159/8);for(var o=[,,,,],a=[,,,,],s=[,,,,],l=[,,,,],u=0;u<8;++u){var c=8*u;o[0]=n*e[c+2],o[1]=i*e[c+2],o[2]=n*e[c+6],o[3]=i*e[c+6],a[0]=t*e[c+1]+r*e[c+3]+.2777854612564676*e[c+5]+.09754573032714427*e[c+7],a[1]=r*e[c+1]-.09754573032714427*e[c+3]-t*e[c+5]-.2777854612564676*e[c+7],a[2]=.2777854612564676*e[c+1]-t*e[c+3]+.09754573032714427*e[c+5]+r*e[c+7],a[3]=.09754573032714427*e[c+1]-.2777854612564676*e[c+3]+r*e[c+5]-t*e[c+7],s[0]=.35355362513961314*(e[c+0]+e[c+4]),s[3]=.35355362513961314*(e[c+0]-e[c+4]),s[1]=o[0]+o[3],s[2]=o[1]-o[2],l[0]=s[0]+s[1],l[1]=s[3]+s[2],l[2]=s[3]-s[2],l[3]=s[0]-s[1],e[c+0]=l[0]+a[0],e[c+1]=l[1]+a[1],e[c+2]=l[2]+a[2],e[c+3]=l[3]+a[3],e[c+4]=l[3]-a[3],e[c+5]=l[2]-a[2],e[c+6]=l[1]-a[1],e[c+7]=l[0]-a[0]}for(var f=0;f<8;++f)o[0]=n*e[16+f],o[1]=i*e[16+f],o[2]=n*e[48+f],o[3]=i*e[48+f],a[0]=t*e[8+f]+r*e[24+f]+.2777854612564676*e[40+f]+.09754573032714427*e[56+f],a[1]=r*e[8+f]-.09754573032714427*e[24+f]-t*e[40+f]-.2777854612564676*e[56+f],a[2]=.2777854612564676*e[8+f]-t*e[24+f]+.09754573032714427*e[40+f]+r*e[56+f],a[3]=.09754573032714427*e[8+f]-.2777854612564676*e[24+f]+r*e[40+f]-t*e[56+f],s[0]=.35355362513961314*(e[f]+e[32+f]),s[3]=.35355362513961314*(e[f]-e[32+f]),s[1]=o[0]+o[3],s[2]=o[1]-o[2],l[0]=s[0]+s[1],l[1]=s[3]+s[2],l[2]=s[3]-s[2],l[3]=s[0]-s[1],e[0+f]=l[0]+a[0],e[8+f]=l[1]+a[1],e[16+f]=l[2]+a[2],e[24+f]=l[3]+a[3],e[32+f]=l[3]-a[3],e[40+f]=l[2]-a[2],e[48+f]=l[1]-a[1],e[56+f]=l[0]-a[0]}(y[e]);!function(e){for(var t=0;t<64;++t){var n=e[0][t],r=e[1][t],i=e[2][t];e[0][t]=n+1.5747*i,e[1][t]=n-.1873*r-.4682*i,e[2][t]=n+1.8556*r}}(y);for(let t=0;t<3;++t)!function(e,t,n){for(var r,i=0;i<64;++i)t[n+i]=s.A5E.toHalfFloat((r=e[i])<=1?Math.sign(r)*Math.pow(Math.abs(r),2.2):Math.sign(r)*Math.pow(9.025013291561939,Math.abs(r)-1))}(y[t],b[t],64*e)}let o=0;for(let r=0;r<3;++r){let i=n[e.idx[r]].type;for(let e=8*t;e<8*t+C;++e){o=A[r][e];for(let t=0;t<c;++t){let n=64*t+(7&e)*8;a.setUint16(o+0*i,b[r][n+0],!0),a.setUint16(o+2*i,b[r][n+1],!0),a.setUint16(o+4*i,b[r][n+2],!0),a.setUint16(o+6*i,b[r][n+3],!0),a.setUint16(o+8*i,b[r][n+4],!0),a.setUint16(o+10*i,b[r][n+5],!0),a.setUint16(o+12*i,b[r][n+6],!0),a.setUint16(o+14*i,b[r][n+7],!0),o+=16*i}}if(c!=f)for(let e=8*t;e<8*t+C;++e){let t=A[r][e]+8*c*2*i,n=64*c+(7&e)*8;for(let e=0;e<S;++e)a.setUint16(t+2*e*i,b[r][n+e],!0)}}}for(var B=new Uint16Array(l),a=new DataView(o.buffer),x=0;x<3;++x){n[e.idx[x]].decoded=!0;var _=n[e.idx[x]].type;if(2==n[x].type)for(var R=0;R<u;++R){let e=A[x][R];for(var M=0;M<l;++M)B[M]=a.getUint16(e+2*M*_,!0);for(var M=0;M<l;++M)a.setFloat32(e+2*M*_,P(B[M]),!0)}}}(w,D,m,B,O,r);for(var y=0;y<m.length;++y){var v=m[y];if(!v.decoded){if(2===v.compression)for(var N=0,U=0,F=0;F<e.lines;++F){for(var G=D[y][N],H=0;H<v.width;++H){for(var z=0;z<2*v.type;++z)r[G++]=I[U+z*v.width*v.height];U++}N++}else throw"EXRLoader.parse: unsupported channel compression"}}return new DataView(r.buffer)}function C(e,t){for(var n=new Uint8Array(e),r=0;0!=n[t.value+r];)r+=1;var i=new TextDecoder().decode(n.slice(t.value,t.value+r));return t.value=t.value+r+1,i}function S(e,t){var n=e.getInt32(t.value,!0);return t.value=t.value+4,n}function B(e,t){var n=e.getUint32(t.value,!0);return t.value=t.value+4,n}function x(e,t){var n=e[t.value];return t.value=t.value+1,n}function _(e,t){var n=e.getUint8(t.value);return t.value=t.value+1,n}let R=function(e,t){let n;return"getBigInt64"in DataView.prototype?n=Number(e.getBigInt64(t.value,!0)):n=e.getUint32(t.value+4,!0)+Number(e.getUint32(t.value,!0)<<32),t.value+=8,n};function M(e,t){var n=e.getFloat32(t.value,!0);return t.value+=4,n}function O(e,t){return s.A5E.toHalfFloat(M(e,t))}function P(e){var t=(31744&e)>>10,n=1023&e;return(e>>15?-1:1)*(t?31===t?n?NaN:1/0:Math.pow(2,t-15)*(1+n/1024):n/1024*6103515625e-14)}function T(e,t){var n=e.getUint16(t.value,!0);return t.value+=2,n}function I(e,t){return P(T(e,t))}let k=new DataView(e),D=new Uint8Array(e),F={value:0},L=function(e,t,n){let r={};if(20000630!=e.getUint32(0,!0))throw"THREE.EXRLoader: provided file doesn't appear to be in OpenEXR format.";r.version=e.getUint8(4);let i=e.getUint8(5);r.spec={singleTile:!!(2&i),longName:!!(4&i),deepFormat:!!(8&i),multiPart:!!(16&i)},n.value=8;for(var o=!0;o;){var a=C(t,n);if(0==a)o=!1;else{var s=C(t,n),l=B(e,n),u=function(e,t,n,r,i){var o,a,s,l,u;if("string"===r||"stringvector"===r||"iccProfile"===r)return o=new TextDecoder().decode(new Uint8Array(t).slice(n.value,n.value+i)),n.value=n.value+i,o;if("chlist"===r)return function(e,t,n,r){for(var i=n.value,o=[];n.value<i+r-1;){var a=C(t,n),s=S(e,n),l=_(e,n);n.value+=3;var u=S(e,n),c=S(e,n);o.push({name:a,pixelType:s,pLinear:l,xSampling:u,ySampling:c})}return n.value+=1,o}(e,t,n,i);if("chromaticities"===r)return a=M(e,n),s=M(e,n),l=M(e,n),u=M(e,n),{redX:a,redY:s,greenX:l,greenY:u,blueX:M(e,n),blueY:M(e,n),whiteX:M(e,n),whiteY:M(e,n)};if("compression"===r)return["NO_COMPRESSION","RLE_COMPRESSION","ZIPS_COMPRESSION","ZIP_COMPRESSION","PIZ_COMPRESSION","PXR24_COMPRESSION","B44_COMPRESSION","B44A_COMPRESSION","DWAA_COMPRESSION","DWAB_COMPRESSION"][_(e,n)];if("box2i"===r)return{xMin:B(e,n),yMin:B(e,n),xMax:B(e,n),yMax:B(e,n)};if("lineOrder"===r)return["INCREASING_Y"][_(e,n)];if("float"===r)return M(e,n);else if("v2f"===r)return[M(e,n),M(e,n)];else if("v3f"===r)return[M(e,n),M(e,n),M(e,n)];else if("int"===r)return S(e,n);else if("rational"===r)return[S(e,n),B(e,n)];else if("timecode"===r)return[B(e,n),B(e,n)];else return"preview"===r?(n.value+=i,"skipped"):void(n.value+=i)}(e,t,n,s,l);void 0===u?console.warn(`EXRLoader.parse: skipped unknown header attribute type '${s}'.`):r[a]=u}}if((-5&i)!=0)throw console.error("EXRHeader:",r),"THREE.EXRLoader: provided file is currently unsupported.";return r}(k,e,F),j=function(e,t,n,r,i){let o={size:0,viewer:t,array:n,offset:r,width:e.dataWindow.xMax-e.dataWindow.xMin+1,height:e.dataWindow.yMax-e.dataWindow.yMin+1,channels:e.channels.length,bytesPerLine:null,lines:null,inputSize:null,type:e.channels[0].pixelType,uncompress:null,getter:null,format:null,[Z?"colorSpace":"encoding"]:null};switch(e.compression){case"NO_COMPRESSION":o.lines=1,o.uncompress=y;break;case"RLE_COMPRESSION":o.lines=1,o.uncompress=v;break;case"ZIPS_COMPRESSION":o.lines=1,o.uncompress=b;break;case"ZIP_COMPRESSION":o.lines=16,o.uncompress=b;break;case"PIZ_COMPRESSION":o.lines=32,o.uncompress=A;break;case"PXR24_COMPRESSION":o.lines=16,o.uncompress=w;break;case"DWAA_COMPRESSION":o.lines=32,o.uncompress=E;break;case"DWAB_COMPRESSION":o.lines=256,o.uncompress=E;break;default:throw"EXRLoader.parse: "+e.compression+" is unsupported"}if(o.scanlineBlockSize=o.lines,1==o.type)switch(i){case s.VzW:o.getter=I,o.inputSize=2;break;case s.cLu:o.getter=T,o.inputSize=2}else if(2==o.type)switch(i){case s.VzW:o.getter=M,o.inputSize=4;break;case s.cLu:o.getter=O,o.inputSize=4}else throw"EXRLoader.parse: unsupported pixelType "+o.type+" for "+e.compression+".";o.blockCount=(e.dataWindow.yMax+1)/o.scanlineBlockSize;for(var a=0;a<o.blockCount;a++)R(t,r);o.outputChannels=3==o.channels?4:o.channels;let l=o.width*o.height*o.outputChannels;switch(i){case s.VzW:o.byteArray=new Float32Array(l),o.channels<o.outputChannels&&o.byteArray.fill(1,0,l);break;case s.cLu:o.byteArray=new Uint16Array(l),o.channels<o.outputChannels&&o.byteArray.fill(15360,0,l);break;default:console.error("THREE.EXRLoader: unsupported type: ",i)}return o.bytesPerLine=o.width*o.inputSize*o.channels,4==o.outputChannels?o.format=s.wk1:o.format=s.hEm,Z?o.colorSpace="srgb-linear":o.encoding=3e3,o}(L,k,D,F,this.type),N={value:0},U={R:0,G:1,B:2,A:3,Y:0};for(let e=0;e<j.height/j.scanlineBlockSize;e++){let t=B(k,F);j.size=B(k,F),j.lines=t+j.scanlineBlockSize>j.height?j.height-t:j.scanlineBlockSize;let n=j.size<j.lines*j.bytesPerLine?j.uncompress(j):y(j);F.value+=j.size;for(let t=0;t<j.scanlineBlockSize;t++){let r=t+e*j.scanlineBlockSize;if(r>=j.height)break;for(let e=0;e<j.channels;e++){let i=U[L.channels[e].name];for(let o=0;o<j.width;o++){N.value=(j.channels*j.width*t+e*j.width+o)*j.inputSize;let a=(j.height-1-r)*(j.width*j.outputChannels)+o*j.outputChannels+i;j.byteArray[a]=j.getter(n,N)}}}}return{header:L,width:j.width,height:j.height,data:j.byteArray,format:j.format,[Z?"colorSpace":"encoding"]:j[Z?"colorSpace":"encoding"],type:this.type}}setDataType(e){return this.type=e,this}load(e,t,n,r){return super.load(e,function(e,n){Z?e.colorSpace=n.colorSpace:e.encoding=n.encoding,e.minFilter=s.wem,e.magFilter=s.wem,e.generateMipmaps=!1,e.flipY=!1,t&&t(e,n)},n,r)}}var ee=n(1448);let et=(e,t,n)=>{let r;switch(e){case s.ywz:r=new Uint8ClampedArray(t*n*4);break;case s.cLu:r=new Uint16Array(t*n*4);break;case s.JQ4:r=new Uint32Array(t*n*4);break;case s.T95:r=new Int8Array(t*n*4);break;case s.iAb:r=new Int16Array(t*n*4);break;case s.Kz5:r=new Int32Array(t*n*4);break;case s.VzW:r=new Float32Array(t*n*4);break;default:throw Error("Unsupported data type")}return r},en=(e,t,n,i)=>{if(void 0!==r)return r;let o=new s.dd2(1,1,i);t.setRenderTarget(o);let a=new s.Kj0(new s._12,new s.vBJ({color:16777215}));t.render(a,n),t.setRenderTarget(null);let l=et(e,o.width,o.height);return t.readRenderTargetPixels(o,0,0,o.width,o.height,l),o.dispose(),a.geometry.dispose(),a.material.dispose(),r=0!==l[0]};class er{constructor(e){var t,n,r,i,o,a,l,u,c,f,d,p,h,m,g,y;this._rendererIsDisposable=!1,this._supportsReadPixels=!0,this.render=()=>{this._renderer.setRenderTarget(this._renderTarget);try{this._renderer.render(this._scene,this._camera)}catch(e){throw this._renderer.setRenderTarget(null),e}this._renderer.setRenderTarget(null)},this._width=e.width,this._height=e.height,this._type=e.type,this._colorSpace=e.colorSpace;let v={format:s.wk1,depthBuffer:!1,stencilBuffer:!1,type:this._type,colorSpace:this._colorSpace,anisotropy:(null===(t=e.renderTargetOptions)||void 0===t?void 0:t.anisotropy)!==void 0?null===(n=e.renderTargetOptions)||void 0===n?void 0:n.anisotropy:1,generateMipmaps:(null===(r=e.renderTargetOptions)||void 0===r?void 0:r.generateMipmaps)!==void 0&&(null===(i=e.renderTargetOptions)||void 0===i?void 0:i.generateMipmaps),magFilter:(null===(o=e.renderTargetOptions)||void 0===o?void 0:o.magFilter)!==void 0?null===(a=e.renderTargetOptions)||void 0===a?void 0:a.magFilter:s.wem,minFilter:(null===(l=e.renderTargetOptions)||void 0===l?void 0:l.minFilter)!==void 0?null===(u=e.renderTargetOptions)||void 0===u?void 0:u.minFilter:s.wem,samples:(null===(c=e.renderTargetOptions)||void 0===c?void 0:c.samples)!==void 0?null===(f=e.renderTargetOptions)||void 0===f?void 0:f.samples:void 0,wrapS:(null===(d=e.renderTargetOptions)||void 0===d?void 0:d.wrapS)!==void 0?null===(p=e.renderTargetOptions)||void 0===p?void 0:p.wrapS:s.uWy,wrapT:(null===(h=e.renderTargetOptions)||void 0===h?void 0:h.wrapT)!==void 0?null===(m=e.renderTargetOptions)||void 0===m?void 0:m.wrapT:s.uWy};if(this._material=e.material,e.renderer?this._renderer=e.renderer:(this._renderer=er.instantiateRenderer(),this._rendererIsDisposable=!0),this._scene=new s.xsS,this._camera=new s.iKG,this._camera.position.set(0,0,10),this._camera.left=-.5,this._camera.right=.5,this._camera.top=.5,this._camera.bottom=-.5,this._camera.updateProjectionMatrix(),!en(this._type,this._renderer,this._camera,v)){let e;this._type===s.cLu&&(e=this._renderer.extensions.has("EXT_color_buffer_float")?s.VzW:void 0),void 0!==e?(console.warn(`This browser does not support reading pixels from ${this._type} RenderTargets, switching to ${s.VzW}`),this._type=e):(this._supportsReadPixels=!1,console.warn("This browser dos not support toArray or toDataTexture, calls to those methods will result in an error thrown"))}this._quad=new s.Kj0(new s._12,this._material),this._quad.geometry.computeBoundingBox(),this._scene.add(this._quad),this._renderTarget=new s.dd2(this.width,this.height,v),this._renderTarget.texture.mapping=(null===(g=e.renderTargetOptions)||void 0===g?void 0:g.mapping)!==void 0?null===(y=e.renderTargetOptions)||void 0===y?void 0:y.mapping:s.xfE}static instantiateRenderer(){let e=new ee.WebGLRenderer;return e.setSize(128,128),e}toArray(){if(!this._supportsReadPixels)throw Error("Can't read pixels in this browser");let e=et(this._type,this._width,this._height);return this._renderer.readRenderTargetPixels(this._renderTarget,0,0,this._width,this._height,e),e}toDataTexture(e){let t=new s.IEO(this.toArray(),this.width,this.height,s.wk1,this._type,(null==e?void 0:e.mapping)||s.xfE,(null==e?void 0:e.wrapS)||s.uWy,(null==e?void 0:e.wrapT)||s.uWy,(null==e?void 0:e.magFilter)||s.wem,(null==e?void 0:e.minFilter)||s.wem,(null==e?void 0:e.anisotropy)||1,s.GUF);return t.generateMipmaps=(null==e?void 0:e.generateMipmaps)!==void 0&&(null==e?void 0:e.generateMipmaps),t}disposeOnDemandRenderer(){this._renderer.setRenderTarget(null),this._rendererIsDisposable&&(this._renderer.dispose(),this._renderer.forceContextLoss())}dispose(e){this.disposeOnDemandRenderer(),e&&this.renderTarget.dispose(),this.material instanceof s.jyz&&Object.values(this.material.uniforms).forEach(e=>{e.value instanceof s.xEZ&&e.value.dispose()}),Object.values(this.material).forEach(e=>{e instanceof s.xEZ&&e.dispose()}),this.material.dispose(),this._quad.geometry.dispose()}get width(){return this._width}set width(e){this._width=e,this._renderTarget.setSize(this._width,this._height)}get height(){return this._height}set height(e){this._height=e,this._renderTarget.setSize(this._width,this._height)}get renderer(){return this._renderer}get renderTarget(){return this._renderTarget}set renderTarget(e){this._renderTarget=e,this._width=e.width,this._height=e.height}get material(){return this._material}get type(){return this._type}get colorSpace(){return this._colorSpace}}let ei=`
82
- varying vec2 vUv;
83
-
84
- void main() {
85
- vUv = uv;
86
- gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
87
- }
88
- `,eo=`
89
- // min half float value
90
- #define HALF_FLOAT_MIN vec3( -65504, -65504, -65504 )
91
- // max half float value
92
- #define HALF_FLOAT_MAX vec3( 65504, 65504, 65504 )
93
-
94
- uniform sampler2D sdr;
95
- uniform sampler2D gainMap;
96
- uniform vec3 gamma;
97
- uniform vec3 offsetHdr;
98
- uniform vec3 offsetSdr;
99
- uniform vec3 gainMapMin;
100
- uniform vec3 gainMapMax;
101
- uniform float weightFactor;
102
-
103
- varying vec2 vUv;
104
-
105
- void main() {
106
- vec3 rgb = texture2D( sdr, vUv ).rgb;
107
- vec3 recovery = texture2D( gainMap, vUv ).rgb;
108
- vec3 logRecovery = pow( recovery, gamma );
109
- vec3 logBoost = gainMapMin * ( 1.0 - logRecovery ) + gainMapMax * logRecovery;
110
- vec3 hdrColor = (rgb + offsetSdr) * exp2( logBoost * weightFactor ) - offsetHdr;
111
- vec3 clampedHdrColor = max( HALF_FLOAT_MIN, min( HALF_FLOAT_MAX, hdrColor ));
112
- gl_FragColor = vec4( clampedHdrColor , 1.0 );
113
- }
114
- `;class ea extends s.jyz{constructor({gamma:e,offsetHdr:t,offsetSdr:n,gainMapMin:r,gainMapMax:i,maxDisplayBoost:o,hdrCapacityMin:a,hdrCapacityMax:l,sdr:u,gainMap:c}){super({name:"GainMapDecoderMaterial",vertexShader:ei,fragmentShader:eo,uniforms:{sdr:{value:u},gainMap:{value:c},gamma:{value:new s.Pa4(1/e[0],1/e[1],1/e[2])},offsetHdr:{value:new s.Pa4().fromArray(t)},offsetSdr:{value:new s.Pa4().fromArray(n)},gainMapMin:{value:new s.Pa4().fromArray(r)},gainMapMax:{value:new s.Pa4().fromArray(i)},weightFactor:{value:(Math.log2(o)-a)/(l-a)}},blending:s.jFi,depthTest:!1,depthWrite:!1}),this._maxDisplayBoost=o,this._hdrCapacityMin=a,this._hdrCapacityMax=l,this.needsUpdate=!0,this.uniformsNeedUpdate=!0}get sdr(){return this.uniforms.sdr.value}set sdr(e){this.uniforms.sdr.value=e}get gainMap(){return this.uniforms.gainMap.value}set gainMap(e){this.uniforms.gainMap.value=e}get offsetHdr(){return this.uniforms.offsetHdr.value.toArray()}set offsetHdr(e){this.uniforms.offsetHdr.value.fromArray(e)}get offsetSdr(){return this.uniforms.offsetSdr.value.toArray()}set offsetSdr(e){this.uniforms.offsetSdr.value.fromArray(e)}get gainMapMin(){return this.uniforms.gainMapMin.value.toArray()}set gainMapMin(e){this.uniforms.gainMapMin.value.fromArray(e)}get gainMapMax(){return this.uniforms.gainMapMax.value.toArray()}set gainMapMax(e){this.uniforms.gainMapMax.value.fromArray(e)}get gamma(){let e=this.uniforms.gamma.value;return[1/e.x,1/e.y,1/e.z]}set gamma(e){let t=this.uniforms.gamma.value;t.x=1/e[0],t.y=1/e[1],t.z=1/e[2]}get hdrCapacityMin(){return this._hdrCapacityMin}set hdrCapacityMin(e){this._hdrCapacityMin=e,this.calculateWeight()}get hdrCapacityMax(){return this._hdrCapacityMax}set hdrCapacityMax(e){this._hdrCapacityMax=e,this.calculateWeight()}get maxDisplayBoost(){return this._maxDisplayBoost}set maxDisplayBoost(e){this._maxDisplayBoost=Math.max(1,Math.min(65504,e)),this.calculateWeight()}calculateWeight(){let e=(Math.log2(this._maxDisplayBoost)-this._hdrCapacityMin)/(this._hdrCapacityMax-this._hdrCapacityMin);this.uniforms.weightFactor.value=Math.max(0,Math.min(1,e))}}class es extends Error{}class el extends Error{}let eu=(e,t,n)=>{var r;let i;let o=null===(r=e.attributes.getNamedItem(t))||void 0===r?void 0:r.nodeValue;if(o)i=o;else{let r=e.getElementsByTagName(t)[0];if(r){let e=r.getElementsByTagName("rdf:li");if(3===e.length)i=Array.from(e).map(e=>e.innerHTML);else throw Error(`Gainmap metadata contains an array of items for ${t} but its length is not 3`)}else{if(n)return n;throw Error(`Can't find ${t} in gainmap metadata`)}}return i},ec=e=>{var t,n;let r;"undefined"!=typeof TextDecoder?r=new TextDecoder().decode(e):r=e.toString();let i=r.indexOf("<x:xmpmeta"),o=new DOMParser;for(;-1!==i;){let e=r.indexOf("x:xmpmeta>",i);r.slice(i,e+10);let a=r.slice(i,e+10);try{let e=o.parseFromString(a,"text/xml").getElementsByTagName("rdf:Description")[0],r=eu(e,"hdrgm:GainMapMin","0"),i=eu(e,"hdrgm:GainMapMax"),s=eu(e,"hdrgm:Gamma","1"),l=eu(e,"hdrgm:OffsetSDR","0.015625"),u=eu(e,"hdrgm:OffsetHDR","0.015625"),c=null===(t=e.attributes.getNamedItem("hdrgm:HDRCapacityMin"))||void 0===t?void 0:t.nodeValue;c||(c="0");let f=null===(n=e.attributes.getNamedItem("hdrgm:HDRCapacityMax"))||void 0===n?void 0:n.nodeValue;if(!f)throw Error("Incomplete gainmap metadata");return{gainMapMin:Array.isArray(r)?r.map(e=>parseFloat(e)):[parseFloat(r),parseFloat(r),parseFloat(r)],gainMapMax:Array.isArray(i)?i.map(e=>parseFloat(e)):[parseFloat(i),parseFloat(i),parseFloat(i)],gamma:Array.isArray(s)?s.map(e=>parseFloat(e)):[parseFloat(s),parseFloat(s),parseFloat(s)],offsetSdr:Array.isArray(l)?l.map(e=>parseFloat(e)):[parseFloat(l),parseFloat(l),parseFloat(l)],offsetHdr:Array.isArray(u)?u.map(e=>parseFloat(e)):[parseFloat(u),parseFloat(u),parseFloat(u)],hdrCapacityMin:parseFloat(c),hdrCapacityMax:parseFloat(f)}}catch(e){}i=r.indexOf("<x:xmpmeta",e)}};class ef{constructor(e){this.options={debug:!!e&&void 0!==e.debug&&e.debug,extractFII:!e||void 0===e.extractFII||e.extractFII,extractNonFII:!e||void 0===e.extractNonFII||e.extractNonFII}}extract(e){return new Promise((t,n)=>{let r;let i=this.options.debug,o=new DataView(e.buffer);if(65496!==o.getUint16(0)){n(Error("Not a valid jpeg"));return}let a=o.byteLength,s=2,l=0;for(;s<a;){if(++l>250){n(Error(`Found no marker after ${l} loops 😵`));return}if(255!==o.getUint8(s)){n(Error(`Not a valid marker at offset 0x${s.toString(16)}, found: 0x${o.getUint8(s).toString(16)}`));return}if(r=o.getUint8(s+1),i&&console.log(`Marker: ${r.toString(16)}`),226===r){i&&console.log("Found APP2 marker (0xffe2)");let e=s+4;if(1297106432===o.getUint32(e)){let r;let i=e+4;if(18761===o.getUint16(i))r=!1;else if(19789===o.getUint16(i))r=!0;else{n(Error("No valid endianness marker found in TIFF header"));return}if(42!==o.getUint16(i+2,!r)){n(Error("Not valid TIFF data! (no 0x002A marker)"));return}let a=o.getUint32(i+4,!r);if(a<8){n(Error("Not valid TIFF data! (First offset less than 8)"));return}let s=i+a,l=o.getUint16(s,!r),u=s+2,c=0;for(let e=u;e<u+12*l;e+=12)45057===o.getUint16(e,!r)&&(c=o.getUint32(e+8,!r));let f=s+2+12*l+4,d=[];for(let e=f;e<f+16*c;e+=16){let t={MPType:o.getUint32(e,!r),size:o.getUint32(e+4,!r),dataOffset:o.getUint32(e+8,!r),dependantImages:o.getUint32(e+12,!r),start:-1,end:-1,isFII:!1};t.dataOffset?(t.start=i+t.dataOffset,t.isFII=!1):(t.start=0,t.isFII=!0),t.end=t.start+t.size,d.push(t)}if(this.options.extractNonFII&&d.length){let e=new Blob([o]),n=[];for(let t of d){if(t.isFII&&!this.options.extractFII)continue;let r=e.slice(t.start,t.end+1,"image/jpeg");n.push(r)}t(n)}}}s+=2+o.getUint16(s+2)}})}}let ed=async e=>{let t=ec(e);if(!t)throw new el("Gain map XMP metadata not found");let n=new ef({extractFII:!0,extractNonFII:!0}),r=await n.extract(e);if(2!==r.length)throw new es("Gain map recovery image not found");return{sdr:new Uint8Array(await r[0].arrayBuffer()),gainMap:new Uint8Array(await r[1].arrayBuffer()),metadata:t}},ep=e=>new Promise((t,n)=>{let r=document.createElement("img");r.onload=()=>{t(r)},r.onerror=e=>{n(e)},r.src=URL.createObjectURL(e)});class eh extends s.aNw{constructor(e,t){super(t),e&&(this._renderer=e),this._internalLoadingManager=new s.lLk}setRenderer(e){return this._renderer=e,this}setRenderTargetOptions(e){return this._renderTargetOptions=e,this}prepareQuadRenderer(){this._renderer||console.warn("WARNING: An existing WebGL Renderer was not passed to this Loader constructor or in setRenderer, the result of this Loader will need to be converted to a Data Texture with toDataTexture() before you can use it in your renderer.");let e=new ea({gainMapMax:[1,1,1],gainMapMin:[0,0,0],gamma:[1,1,1],offsetHdr:[1,1,1],offsetSdr:[1,1,1],hdrCapacityMax:1,hdrCapacityMin:0,maxDisplayBoost:1,gainMap:new s.xEZ,sdr:new s.xEZ});return new er({width:16,height:16,type:s.cLu,colorSpace:s.GUF,material:e,renderer:this._renderer,renderTargetOptions:this._renderTargetOptions})}async render(e,t,n,r){let i,o;let a=r?new Blob([r],{type:"image/jpeg"}):void 0,l=new Blob([n],{type:"image/jpeg"}),u=!1;if("undefined"==typeof createImageBitmap){let e=await Promise.all([a?ep(a):Promise.resolve(void 0),ep(l)]);o=e[0],i=e[1],u=!0}else{let e=await Promise.all([a?createImageBitmap(a,{imageOrientation:"flipY"}):Promise.resolve(void 0),createImageBitmap(l,{imageOrientation:"flipY"})]);o=e[0],i=e[1]}let c=new s.xEZ(o||new ImageData(2,2),s.xfE,s.uWy,s.uWy,s.wem,s.FDw,s.wk1,s.ywz,1,s.GUF);c.flipY=u,c.needsUpdate=!0;let f=new s.xEZ(i,s.xfE,s.uWy,s.uWy,s.wem,s.FDw,s.wk1,s.ywz,1,s.KI_);f.flipY=u,f.needsUpdate=!0,e.width=i.width,e.height=i.height,e.material.gainMap=c,e.material.sdr=f,e.material.gainMapMin=t.gainMapMin,e.material.gainMapMax=t.gainMapMax,e.material.offsetHdr=t.offsetHdr,e.material.offsetSdr=t.offsetSdr,e.material.gamma=t.gamma,e.material.hdrCapacityMin=t.hdrCapacityMin,e.material.hdrCapacityMax=t.hdrCapacityMax,e.material.maxDisplayBoost=Math.pow(2,t.hdrCapacityMax),e.material.needsUpdate=!0,e.render()}}class em extends eh{load([e,t,n],r,i,o){let a,l,u;let c=this.prepareQuadRenderer(),f=async()=>{if(a&&l&&u){try{await this.render(c,u,a,l)}catch(r){this.manager.itemError(e),this.manager.itemError(t),this.manager.itemError(n),"function"==typeof o&&o(r),c.disposeOnDemandRenderer();return}"function"==typeof r&&r(c),this.manager.itemEnd(e),this.manager.itemEnd(t),this.manager.itemEnd(n),c.disposeOnDemandRenderer()}},d=!0,p=0,h=0,m=!0,g=0,y=0,v=!0,b=0,A=0,w=()=>{"function"==typeof i&&i(new ProgressEvent("progress",{lengthComputable:d&&m&&v,loaded:h+y+A,total:p+g+b}))};this.manager.itemStart(e),this.manager.itemStart(t),this.manager.itemStart(n);let E=new s.hH6(this._internalLoadingManager);E.setResponseType("arraybuffer"),E.setRequestHeader(this.requestHeader),E.setPath(this.path),E.setWithCredentials(this.withCredentials),E.load(e,async e=>{if("string"==typeof e)throw Error("Invalid sdr buffer");a=e,await f()},e=>{d=e.lengthComputable,h=e.loaded,p=e.total,w()},t=>{this.manager.itemError(e),"function"==typeof o&&o(t)});let C=new s.hH6(this._internalLoadingManager);C.setResponseType("arraybuffer"),C.setRequestHeader(this.requestHeader),C.setPath(this.path),C.setWithCredentials(this.withCredentials),C.load(t,async e=>{if("string"==typeof e)throw Error("Invalid gainmap buffer");l=e,await f()},e=>{m=e.lengthComputable,y=e.loaded,g=e.total,w()},e=>{this.manager.itemError(t),"function"==typeof o&&o(e)});let S=new s.hH6(this._internalLoadingManager);return S.setRequestHeader(this.requestHeader),S.setPath(this.path),S.setWithCredentials(this.withCredentials),S.load(n,async e=>{if("string"!=typeof e)throw Error("Invalid metadata string");u=JSON.parse(e),await f()},e=>{v=e.lengthComputable,A=e.loaded,b=e.total,w()},e=>{this.manager.itemError(n),"function"==typeof o&&o(e)}),c}}class eg extends eh{load(e,t,n,r){let i=this.prepareQuadRenderer(),o=new s.hH6(this._internalLoadingManager);return o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setPath(this.path),o.setWithCredentials(this.withCredentials),this.manager.itemStart(e),o.load(e,async n=>{let o,a,s;if("string"==typeof n)throw Error("Invalid buffer, received [string], was expecting [ArrayBuffer]");let l=new Uint8Array(n);try{let e=await ed(l);o=e.sdr,a=e.gainMap,s=e.metadata}catch(t){if(t instanceof el||t instanceof es)console.warn(`Failure to reconstruct an HDR image from ${e}: Gain map metadata not found in the file, HDRJPGLoader will render the SDR jpeg`),s={gainMapMin:[0,0,0],gainMapMax:[1,1,1],gamma:[1,1,1],hdrCapacityMin:0,hdrCapacityMax:1,offsetHdr:[0,0,0],offsetSdr:[0,0,0]},o=l;else throw t}try{await this.render(i,s,o,a)}catch(t){this.manager.itemError(e),"function"==typeof r&&r(t),i.disposeOnDemandRenderer();return}"function"==typeof t&&t(i),this.manager.itemEnd(e),i.disposeOnDemandRenderer()},n,t=>{this.manager.itemError(e),"function"==typeof r&&r(t)}),i}}let ey={apartment:"lebombo_1k.hdr",city:"potsdamer_platz_1k.hdr",dawn:"kiara_1_dawn_1k.hdr",forest:"forest_slope_1k.hdr",lobby:"st_fagans_interior_1k.hdr",night:"dikhololo_night_1k.hdr",park:"rooitou_park_1k.hdr",studio:"studio_small_03_1k.hdr",sunset:"venice_sunset_1k.hdr",warehouse:"empty_warehouse_01_1k.hdr"},ev="https://raw.githack.com/pmndrs/drei-assets/456060a26bbeb8fdf79326f224b6d99b8bcce736/hdri/",eb=e=>Array.isArray(e),eA=["/px.png","/nx.png","/py.png","/ny.png","/pz.png","/nz.png"];function ew({files:e=eA,path:t="",preset:n,encoding:r,extensions:i}={}){let l=null,u=!1;n&&(eS(n),e=ey[n],t=ev),u=eb(e);let{extension:c,isCubemap:f}=eB(e);if(!(l=ex(c)))throw Error("useEnvironment: Unrecognized file extension: "+e);let d=(0,a.D)(e=>e.gl);(0,o.useLayoutEffect)(()=>{("webp"===c||"jpg"===c||"jpeg"===c)&&d.domElement.addEventListener("webglcontextlost",function(){a.H.clear(l,u?[e]:e)},{once:!0})},[e,d.domElement]);let p=(0,a.H)(l,u?[e]:e,e=>{("webp"===c||"jpg"===c||"jpeg"===c)&&e.setRenderer(d),null==e.setPath||e.setPath(t),i&&i(e)}),h=u?p[0]:p;if("jpg"===c||"jpeg"===c||"webp"===c){var m;h=null==(m=h.renderTarget)?void 0:m.texture}return h.mapping=f?s.fY$:s.dSO,"colorSpace"in h?h.colorSpace=(null!=r?r:f)?"srgb":"srgb-linear":h.encoding=(null!=r?r:f)?3001:3e3,h}let eE={files:eA,path:"",preset:void 0,extensions:void 0};ew.preload=e=>{let t={...eE,...e},{files:n,path:r=""}=t,{preset:i,extensions:o}=t;i&&(eS(i),n=ey[i],r=ev);let{extension:s}=eB(n);if("webp"===s||"jpg"===s||"jpeg"===s)throw Error("useEnvironment: Preloading gainmaps is not supported");let l=ex(s);if(!l)throw Error("useEnvironment: Unrecognized file extension: "+n);a.H.preload(l,eb(n)?[n]:n,e=>{null==e.setPath||e.setPath(r),o&&o(e)})};let eC={files:eA,preset:void 0};function eS(e){if(!(e in ey))throw Error("Preset must be one of: "+Object.keys(ey).join(", "))}function eB(e){var t;let n=eb(e)&&6===e.length,r=eb(e)&&3===e.length&&e.some(e=>e.endsWith("json")),i=eb(e)?e[0]:e;return{extension:n?"cube":r?"webp":i.startsWith("data:application/exr")?"exr":i.startsWith("data:application/hdr")?"hdr":i.startsWith("data:image/jpeg")?"jpg":null==(t=i.split(".").pop())||null==(t=t.split("?"))||null==(t=t.shift())?void 0:t.toLowerCase(),isCubemap:n,isGainmap:r}}function ex(e){return"cube"===e?s.cBK:"hdr"===e?c:"exr"===e?$:"jpg"===e||"jpeg"===e?eg:"webp"===e?em:null}ew.clear=e=>{let t={...eC,...e},{files:n}=t,{preset:r}=t;r&&(eS(r),n=ey[r]);let{extension:i}=eB(n),o=ex(i);if(!o)throw Error("useEnvironment: Unrecognized file extension: "+n);a.H.clear(o,eb(n)?[n]:n)};let e_=e=>e.current&&e.current.isScene,eR=e=>e_(e)?e.current:e;function eM(e,t,n,r,i={}){var o,s,l,u;i={backgroundBlurriness:0,backgroundIntensity:1,backgroundRotation:[0,0,0],environmentIntensity:1,environmentRotation:[0,0,0],...i};let c=eR(t||n),f=c.background,d=c.environment,p={backgroundBlurriness:c.backgroundBlurriness,backgroundIntensity:c.backgroundIntensity,backgroundRotation:null!==(o=null==(s=c.backgroundRotation)||null==s.clone?void 0:s.clone())&&void 0!==o?o:[0,0,0],environmentIntensity:c.environmentIntensity,environmentRotation:null!==(l=null==(u=c.environmentRotation)||null==u.clone?void 0:u.clone())&&void 0!==l?l:[0,0,0]};return"only"!==e&&(c.environment=r),e&&(c.background=r),(0,a.k)(c,i),()=>{"only"!==e&&(c.environment=d),e&&(c.background=f),(0,a.k)(c,p)}}function eO({scene:e,background:t=!1,map:n,...r}){let i=(0,a.D)(e=>e.scene);return o.useLayoutEffect(()=>{if(n)return eM(t,e,i,n,r)}),null}function eP({background:e=!1,scene:t,blur:n,backgroundBlurriness:r,backgroundIntensity:i,backgroundRotation:s,environmentIntensity:l,environmentRotation:u,...c}){let f=ew(c),d=(0,a.D)(e=>e.scene);return o.useLayoutEffect(()=>eM(e,t,d,f,{backgroundBlurriness:null!=n?n:r,backgroundIntensity:i,backgroundRotation:s,environmentIntensity:l,environmentRotation:u})),null}function eT({children:e,near:t=.1,far:n=1e3,resolution:r=256,frames:i=1,map:l,background:u=!1,blur:c,backgroundBlurriness:f,backgroundIntensity:d,backgroundRotation:p,environmentIntensity:h,environmentRotation:m,scene:g,files:y,path:v,preset:b,extensions:A}){let w=(0,a.D)(e=>e.gl),E=(0,a.D)(e=>e.scene),C=o.useRef(null),[S]=o.useState(()=>new s.xsS),B=o.useMemo(()=>{let e=new s.oAp(r);return e.texture.type=s.cLu,e},[r]);o.useLayoutEffect(()=>{if(1===i){let e=w.autoClear;w.autoClear=!0,C.current.update(w,S),w.autoClear=e}return eM(u,g,E,B.texture,{backgroundBlurriness:null!=c?c:f,backgroundIntensity:d,backgroundRotation:p,environmentIntensity:h,environmentRotation:m})},[e,S,B.texture,g,E,u,i,w]);let x=1;return(0,a.F)(()=>{if(i===1/0||x<i){let e=w.autoClear;w.autoClear=!0,C.current.update(w,S),w.autoClear=e,x++}}),o.createElement(o.Fragment,null,(0,a.h)(o.createElement(o.Fragment,null,e,o.createElement("cubeCamera",{ref:C,args:[t,n,B]}),y||b?o.createElement(eP,{background:!0,files:y,preset:b,path:v,extensions:A}):l?o.createElement(eO,{background:!0,map:l,extensions:A}):null),S))}function eI(e){var t,n,r,s;let l=ew(e),c=e.map||l;o.useMemo(()=>(0,a.e)({GroundProjectedEnvImpl:u}),[]);let f=o.useMemo(()=>[c],[c]),d=null==(t=e.ground)?void 0:t.height,p=null==(n=e.ground)?void 0:n.radius,h=null!==(r=null==(s=e.ground)?void 0:s.scale)&&void 0!==r?r:1e3;return o.createElement(o.Fragment,null,o.createElement(eO,(0,i.Z)({},e,{map:c})),o.createElement("groundProjectedEnvImpl",{args:f,scale:h,height:d,radius:p}))}function ek(e){return e.ground?o.createElement(eI,e):e.map?o.createElement(eO,e):e.children?o.createElement(eT,e):o.createElement(eP,e)}},1106:function(e,t,n){"use strict";let r;n.d(t,{L:function(){return ec}}),n(2265);var i=n(2079);let o=new WeakMap;class a extends i.aNw{constructor(e){super(e),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(e){return this.decoderPath=e,this}setDecoderConfig(e){return this.decoderConfig=e,this}setWorkerLimit(e){return this.workerLimit=e,this}load(e,t,n,r){let o=new i.hH6(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,e=>{let n={attributeIDs:this.defaultAttributeIDs,attributeTypes:this.defaultAttributeTypes,useUniqueIDs:!1};this.decodeGeometry(e,n).then(t).catch(r)},n,r)}decodeDracoFile(e,t,n,r){let i={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:r||this.defaultAttributeTypes,useUniqueIDs:!!n};this.decodeGeometry(e,i).then(t)}decodeGeometry(e,t){let n;for(let e in t.attributeTypes){let n=t.attributeTypes[e];void 0!==n.BYTES_PER_ELEMENT&&(t.attributeTypes[e]=n.name)}let r=JSON.stringify(t);if(o.has(e)){let t=o.get(e);if(t.key===r)return t.promise;if(0===e.byteLength)throw Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let i=this.workerNextTaskID++,a=e.byteLength,s=this._getWorker(i,a).then(r=>(n=r,new Promise((r,o)=>{n._callbacks[i]={resolve:r,reject:o},n.postMessage({type:"decode",id:i,taskConfig:t,buffer:e},[e])}))).then(e=>this._createGeometry(e.geometry));return s.catch(()=>!0).then(()=>{n&&i&&this._releaseTask(n,i)}),o.set(e,{key:r,promise:s}),s}_createGeometry(e){let t=new i.u9r;e.index&&t.setIndex(new i.TlE(e.index.array,1));for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n],o=r.name,a=r.array,s=r.itemSize;t.setAttribute(o,new i.TlE(a,s))}return t}_loadLibrary(e,t){let n=new i.hH6(this.manager);return n.setPath(this.decoderPath),n.setResponseType(t),n.setWithCredentials(this.withCredentials),new Promise((t,r)=>{n.load(e,t,void 0,r)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;let e="object"!=typeof WebAssembly||"js"===this.decoderConfig.type,t=[];return e?t.push(this._loadLibrary("draco_decoder.js","text")):(t.push(this._loadLibrary("draco_wasm_wrapper.js","text")),t.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(t).then(t=>{let n=t[0];e||(this.decoderConfig.wasmBinary=t[1]);let r=s.toString(),i=["/* draco decoder */",n,"","/* worker */",r.substring(r.indexOf("{")+1,r.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([i]))}),this.decoderPending}_getWorker(e,t){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){let e=new Worker(this.workerSourceURL);e._callbacks={},e._taskCosts={},e._taskLoad=0,e.postMessage({type:"init",decoderConfig:this.decoderConfig}),e.onmessage=function(t){let n=t.data;switch(n.type){case"decode":e._callbacks[n.id].resolve(n);break;case"error":e._callbacks[n.id].reject(n);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+n.type+'"')}},this.workerPool.push(e)}else this.workerPool.sort(function(e,t){return e._taskLoad>t._taskLoad?-1:1});let n=this.workerPool[this.workerPool.length-1];return n._taskCosts[e]=t,n._taskLoad+=t,n})}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){console.log("Task load: ",this.workerPool.map(e=>e._taskLoad))}dispose(){for(let e=0;e<this.workerPool.length;++e)this.workerPool[e].terminate();return this.workerPool.length=0,this}}function s(){let e,t;onmessage=function(n){let r=n.data;switch(r.type){case"init":e=r.decoderConfig,t=new Promise(function(t){e.onModuleLoaded=function(e){t({draco:e})},DracoDecoderModule(e)});break;case"decode":let i=r.buffer,o=r.taskConfig;t.then(e=>{let t=e.draco,n=new t.Decoder,a=new t.DecoderBuffer;a.Init(new Int8Array(i),i.byteLength);try{let e=function(e,t,n,r){let i,o;let a=r.attributeIDs,s=r.attributeTypes,l=t.GetEncodedGeometryType(n);if(l===e.TRIANGULAR_MESH)i=new e.Mesh,o=t.DecodeBufferToMesh(n,i);else if(l===e.POINT_CLOUD)i=new e.PointCloud,o=t.DecodeBufferToPointCloud(n,i);else throw Error("THREE.DRACOLoader: Unexpected geometry type.");if(!o.ok()||0===i.ptr)throw Error("THREE.DRACOLoader: Decoding failed: "+o.error_msg());let u={index:null,attributes:[]};for(let n in a){let o,l;let c=self[s[n]];if(r.useUniqueIDs)l=a[n],o=t.GetAttributeByUniqueId(i,l);else{if(-1===(l=t.GetAttributeId(i,e[a[n]])))continue;o=t.GetAttribute(i,l)}u.attributes.push(function(e,t,n,r,i,o){let a=o.num_components(),s=n.num_points()*a,l=s*i.BYTES_PER_ELEMENT,u=function(e,t){switch(t){case Float32Array:return e.DT_FLOAT32;case Int8Array:return e.DT_INT8;case Int16Array:return e.DT_INT16;case Int32Array:return e.DT_INT32;case Uint8Array:return e.DT_UINT8;case Uint16Array:return e.DT_UINT16;case Uint32Array:return e.DT_UINT32}}(e,i),c=e._malloc(l);t.GetAttributeDataArrayForAllPoints(n,o,u,l,c);let f=new i(e.HEAPF32.buffer,c,s).slice();return e._free(c),{name:r,array:f,itemSize:a}}(e,t,i,n,c,o))}return l===e.TRIANGULAR_MESH&&(u.index=function(e,t,n){let r=3*n.num_faces(),i=4*r,o=e._malloc(i);t.GetTrianglesUInt32Array(n,i,o);let a=new Uint32Array(e.HEAPF32.buffer,o,r).slice();return e._free(o),{array:a,itemSize:1}}(e,t,i)),e.destroy(i),u}(t,n,a,o),i=e.attributes.map(e=>e.array.buffer);e.index&&i.push(e.index.array.buffer),self.postMessage({type:"decode",id:r.id,geometry:e},i)}catch(e){console.error(e),self.postMessage({type:"error",id:r.id,error:e.message})}finally{t.destroy(a),t.destroy(n)}})}}}let l=()=>{let e;if(r)return r;let t=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]),n=new Uint8Array([32,0,65,253,3,1,2,34,4,106,6,5,11,8,7,20,13,33,12,16,128,9,116,64,19,113,127,15,10,21,22,14,255,66,24,54,136,107,18,23,192,26,114,118,132,17,77,101,130,144,27,87,131,44,45,74,156,154,70,167]);if("object"!=typeof WebAssembly)return{supported:!1};let i="B9h9z9tFBBBF8fL9gBB9gLaaaaaFa9gEaaaB9gFaFa9gEaaaFaEMcBFFFGGGEIIILF9wFFFLEFBFKNFaFCx/IFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBF8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBGy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBEn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBIi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBKI9z9iqlBOc+x8ycGBM/qQFTa8jUUUUBCU/EBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAGTkUUUBRNCUoBAG9uC/wgBZHKCUGAKCUG9JyRVAECFJRICBRcGXEXAcAF9PQFAVAFAclAcAVJAF9JyRMGXGXAG9FQBAMCbJHKC9wZRSAKCIrCEJCGrRQANCUGJRfCBRbAIRTEXGXAOATlAQ9PQBCBRISEMATAQJRIGXAS9FQBCBRtCBREEXGXAOAIlCi9PQBCBRISLMANCU/CBJAEJRKGXGXGXGXGXATAECKrJ2BBAtCKZrCEZfIBFGEBMAKhB83EBAKCNJhB83EBSEMAKAI2BIAI2BBHmCKrHYAYCE6HYy86BBAKCFJAICIJAYJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCGJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCEJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCIJAYAmJHY2BBAI2BFHmCKrHPAPCE6HPy86BBAKCLJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCKJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCOJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCNJAYAmJHY2BBAI2BGHmCKrHPAPCE6HPy86BBAKCVJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCcJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCMJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCSJAYAmJHm2BBAI2BEHICKrHYAYCE6HYy86BBAKCQJAmAYJHm2BBAICIrCEZHYAYCE6HYy86BBAKCfJAmAYJHm2BBAICGrCEZHYAYCE6HYy86BBAKCbJAmAYJHK2BBAICEZHIAICE6HIy86BBAKAIJRISGMAKAI2BNAI2BBHmCIrHYAYCb6HYy86BBAKCFJAICNJAYJHY2BBAmCbZHmAmCb6Hmy86BBAKCGJAYAmJHm2BBAI2BFHYCIrHPAPCb6HPy86BBAKCEJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCIJAmAYJHm2BBAI2BGHYCIrHPAPCb6HPy86BBAKCLJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCKJAmAYJHm2BBAI2BEHYCIrHPAPCb6HPy86BBAKCOJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCNJAmAYJHm2BBAI2BIHYCIrHPAPCb6HPy86BBAKCVJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCcJAmAYJHm2BBAI2BLHYCIrHPAPCb6HPy86BBAKCMJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCSJAmAYJHm2BBAI2BKHYCIrHPAPCb6HPy86BBAKCQJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCfJAmAYJHm2BBAI2BOHICIrHYAYCb6HYy86BBAKCbJAmAYJHK2BBAICbZHIAICb6HIy86BBAKAIJRISFMAKAI8pBB83BBAKCNJAICNJ8pBB83BBAICTJRIMAtCGJRtAECTJHEAS9JQBMMGXAIQBCBRISEMGXAM9FQBANAbJ2BBRtCBRKAfREEXAEANCU/CBJAKJ2BBHTCFrCBATCFZl9zAtJHt86BBAEAGJREAKCFJHKAM9HQBMMAfCFJRfAIRTAbCFJHbAG9HQBMMABAcAG9sJANCUGJAMAG9sTkUUUBpANANCUGJAMCaJAG9sJAGTkUUUBpMAMCBAIyAcJRcAIQBMC9+RKSFMCBC99AOAIlAGCAAGCA9Ly6yRKMALCU/EBJ8kUUUUBAKM+OmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUFT+JUUUBpALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIALAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM+lLKFaF99GaG99FaG99GXGXAGCI9HQBAF9FQFEXGXGX9DBBB8/9DBBB+/ABCGJHG1BB+yAB1BBHE+yHI+L+TABCFJHL1BBHK+yHO+L+THN9DBBBB9gHVyAN9DBB/+hANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE86BBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG86BBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG86BBABCIJRBAFCaJHFQBSGMMAF9FQBEXGXGX9DBBB8/9DBBB+/ABCIJHG8uFB+yAB8uFBHE+yHI+L+TABCGJHL8uFBHK+yHO+L+THN9DBBBB9gHVyAN9DB/+g6ANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE87FBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG87FBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG87FBABCNJRBAFCaJHFQBMMM/SEIEaE99EaF99GXAF9FQBCBREABRIEXGXGX9D/zI818/AICKJ8uFBHLCEq+y+VHKAI8uFB+y+UHO9DB/+g6+U9DBBB8/9DBBB+/AO9DBBBB9gy+SHN+L9DBBB9P9d9FQBAN+oRVSFMCUUUU94RVMAICIJ8uFBRcAICGJ8uFBRMABALCFJCEZAEqCFWJAV87FBGXGXAKAM+y+UHN9DB/+g6+U9DBBB8/9DBBB+/AN9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRMSFMCUUUU94RMMABALCGJCEZAEqCFWJAM87FBGXGXAKAc+y+UHK9DB/+g6+U9DBBB8/9DBBB+/AK9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRcSFMCUUUU94RcMABALCaJCEZAEqCFWJAc87FBGXGX9DBBU8/AOAO+U+TANAN+U+TAKAK+U+THO9DBBBBAO9DBBBB9gy+R9DB/+g6+U9DBBB8/+SHO+L9DBBB9P9d9FQBAO+oRcSFMCUUUU94RcMABALCEZAEqCFWJAc87FBAICNJRIAECIJREAFCaJHFQBMMM9JBGXAGCGrAF9sHF9FQBEXABAB8oGBHGCNWCN91+yAGCi91CnWCUUU/8EJ+++U84GBABCIJRBAFCaJHFQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEM/lFFFaGXGXAFABqCEZ9FQBABRESFMGXGXAGCT9PQBABRESFMABREEXAEAF8oGBjGBAECIJAFCIJ8oGBjGBAECNJAFCNJ8oGBjGBAECSJAFCSJ8oGBjGBAECTJREAFCTJRFAGC9wJHGCb9LQBMMAGCI9JQBEXAEAF8oGBjGBAFCIJRFAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF2BB86BBAECFJREAFCFJRFAGCaJHGQBMMABMoFFGaGXGXABCEZ9FQBABRESFMAFCgFZC+BwsN9sRIGXGXAGCT9PQBABRESFMABREEXAEAIjGBAECSJAIjGBAECNJAIjGBAECIJAIjGBAECTJREAGC9wJHGCb9LQBMMAGCI9JQBEXAEAIjGBAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF86BBAECFJREAGCaJHGQBMMABMMMFBCUNMIT9kBB";WebAssembly.validate(t)&&(i="B9h9z9tFBBBFiI9gBB9gLaaaaaFa9gEaaaB9gFaFaEMcBBFBFFGGGEILF9wFFFLEFBFKNFaFCx/aFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBG8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBIy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBKi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBOn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBNI9z9iqlBVc+N9IcIBTEM9+FLa8jUUUUBCTlRBCBRFEXCBRGCBREEXABCNJAGJAECUaAFAGrCFZHIy86BBAEAIJREAGCFJHGCN9HQBMAFCx+YUUBJAE86BBAFCEWCxkUUBJAB8pEN83EBAFCFJHFCUG9HQBMMk8lLbaE97F9+FaL978jUUUUBCU/KBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAG/8cBBCUoBAG9uC/wgBZHKCUGAKCUG9JyRNAECFJRKCBRVGXEXAVAF9PQFANAFAVlAVANJAF9JyRcGXGXAG9FQBAcCbJHIC9wZHMCE9sRSAMCFWRQAICIrCEJCGrRfCBRbEXAKRTCBRtGXEXGXAOATlAf9PQBCBRKSLMALCU/CBJAtAM9sJRmATAfJRKCBREGXAMCoB9JQBAOAKlC/gB9JQBCBRIEXAmAIJREGXGXGXGXGXATAICKrJ2BBHYCEZfIBFGEBMAECBDtDMIBSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIBAKCTJRKMGXGXGXGXGXAYCGrCEZfIBFGEBMAECBDtDMITSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMITAKCTJRKMGXGXGXGXGXAYCIrCEZfIBFGEBMAECBDtDMIASEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIAAKCTJRKMGXGXGXGXGXAYCKrfIBFGEBMAECBDtDMI8wSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCIJAeDeBJAYCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCNJAeDeBJAYCx+YUUBJ2BBJRKSFMAEAKDBBBDMI8wAKCTJRKMAICoBJREAICUFJAM9LQFAERIAOAKlC/fB9LQBMMGXAEAM9PQBAECErRIEXGXAOAKlCi9PQBCBRKSOMAmAEJRYGXGXGXGXGXATAECKrJ2BBAICKZrCEZfIBFGEBMAYCBDtDMIBSEMAYAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAYAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAYAKDBBBDMIBAKCTJRKMAICGJRIAECTJHEAM9JQBMMGXAK9FQBAKRTAtCFJHtCI6QGSFMMCBRKSEMGXAM9FQBALCUGJAbJREALAbJDBGBReCBRYEXAEALCU/CBJAYJHIDBIBHdCFD9tAdCFDbHPD9OD9hD9RHdAIAMJDBIBH8ZCFD9tA8ZAPD9OD9hD9RH8ZDQBTFtGmEYIPLdKeOnHpAIAQJDBIBHyCFD9tAyAPD9OD9hD9RHyAIASJDBIBH8cCFD9tA8cAPD9OD9hD9RH8cDQBTFtGmEYIPLdKeOnH8dDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGEAeD9uHeDyBjGBAEAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeApA8dDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNiV8ZcpMyS8cQ8df8eb8fHdAyA8cDQNiV8ZcpMyS8cQ8df8eb8fH8ZDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJREAYCTJHYAM9JQBMMAbCIJHbAG9JQBMMABAVAG9sJALCUGJAcAG9s/8cBBALALCUGJAcCaJAG9sJAG/8cBBMAcCBAKyAVJRVAKQBMC9+RKSFMCBC99AOAKlAGCAAGCA9Ly6yRKMALCU/KBJ8kUUUUBAKMNBT+BUUUBM+KmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUF/8MBALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIALAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM/dLEK97FaF97GXGXAGCI9HQBAF9FQFCBRGEXABABDBBBHECiD+rFCiD+sFD/6FHIAECND+rFCiD+sFD/6FAID/gFAECTD+rFCiD+sFD/6FHLD/gFD/kFD/lFHKCBDtD+2FHOAICUUUU94DtHND9OD9RD/kFHI9DBB/+hDYAIAID/mFAKAKD/mFALAOALAND9OD9RD/kFHIAID/mFD/kFD/kFD/jFD/nFHLD/mF9DBBX9LDYHOD/kFCgFDtD9OAECUUU94DtD9OD9QAIALD/mFAOD/kFCND+rFCU/+EDtD9OD9QAKALD/mFAOD/kFCTD+rFCUU/8ODtD9OD9QDMBBABCTJRBAGCIJHGAF9JQBSGMMAF9FQBCBRGEXABCTJHVAVDBBBHECBDtHOCUU98D8cFCUU98D8cEHND9OABDBBBHKAEDQILKOSQfbPden8c8d8e8fCggFDtD9OD/6FAKAEDQBFGENVcMTtmYi8ZpyHECTD+sFD/6FHID/gFAECTD+rFCTD+sFD/6FHLD/gFD/kFD/lFHE9DB/+g6DYALAEAOD+2FHOALCUUUU94DtHcD9OD9RD/kFHLALD/mFAEAED/mFAIAOAIAcD9OD9RD/kFHEAED/mFD/kFD/kFD/jFD/nFHID/mF9DBBX9LDYHOD/kFCTD+rFALAID/mFAOD/kFCggEDtD9OD9QHLAEAID/mFAOD/kFCaDbCBDnGCBDnECBDnKCBDnOCBDncCBDnMCBDnfCBDnbD9OHEDQNVi8ZcMpySQ8c8dfb8e8fD9QDMBBABAKAND9OALAEDQBFTtGEmYILPdKOenD9QDMBBABCAJRBAGCIJHGAF9JQBMMM/hEIGaF97FaL978jUUUUBCTlREGXAF9FQBCBRIEXAEABDBBBHLABCTJHKDBBBHODQILKOSQfbPden8c8d8e8fHNCTD+sFHVCID+rFDMIBAB9DBBU8/DY9D/zI818/DYAVCEDtD9QD/6FD/nFHVALAODQBFGENVcMTtmYi8ZpyHLCTD+rFCTD+sFD/6FD/mFHOAOD/mFAVALCTD+sFD/6FD/mFHcAcD/mFAVANCTD+rFCTD+sFD/6FD/mFHNAND/mFD/kFD/kFD/lFCBDtD+4FD/jF9DB/+g6DYHVD/mF9DBBX9LDYHLD/kFCggEDtHMD9OAcAVD/mFALD/kFCTD+rFD9QHcANAVD/mFALD/kFCTD+rFAOAVD/mFALD/kFAMD9OD9QHVDQBFTtGEmYILPdKOenHLD8dBAEDBIBDyB+t+J83EBABCNJALD8dFAEDBIBDyF+t+J83EBAKAcAVDQNVi8ZcMpySQ8c8dfb8e8fHVD8dBAEDBIBDyG+t+J83EBABCiJAVD8dFAEDBIBDyE+t+J83EBABCAJRBAICIJHIAF9JQBMMM9jFF97GXAGCGrAF9sHG9FQBCBRFEXABABDBBBHECND+rFCND+sFD/6FAECiD+sFCnD+rFCUUU/8EDtD+uFD/mFDMBBABCTJRBAFCIJHFAG9JQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEMMMFBCUNMIT9tBB");let o=WebAssembly.instantiate(function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n){let r=e.charCodeAt(n);t[n]=r>96?r-71:r>64?r-65:r>47?r+4:r>46?63:62}let r=0;for(let i=0;i<e.length;++i)t[r++]=t[i]<60?n[t[i]]:(t[i]-60)*64+t[++i];return t.buffer.slice(0,r)}(i),{}).then(t=>{(e=t.instance).exports.__wasm_call_ctors()});function a(t,n,r,i,o,a){let s=e.exports.sbrk,l=r+3&-4,u=s(l*i),c=s(o.length),f=new Uint8Array(e.exports.memory.buffer);f.set(o,c);let d=t(u,r,i,c,o.length);if(0===d&&a&&a(u,l,i),n.set(f.subarray(u,u+r*i)),s(u-s(0)),0!==d)throw Error(`Malformed buffer data: ${d}`)}let s={0:"",1:"meshopt_decodeFilterOct",2:"meshopt_decodeFilterQuat",3:"meshopt_decodeFilterExp",NONE:"",OCTAHEDRAL:"meshopt_decodeFilterOct",QUATERNION:"meshopt_decodeFilterQuat",EXPONENTIAL:"meshopt_decodeFilterExp"},l={0:"meshopt_decodeVertexBuffer",1:"meshopt_decodeIndexBuffer",2:"meshopt_decodeIndexSequence",ATTRIBUTES:"meshopt_decodeVertexBuffer",TRIANGLES:"meshopt_decodeIndexBuffer",INDICES:"meshopt_decodeIndexSequence"};return r={ready:o,supported:!0,decodeVertexBuffer(t,n,r,i,o){a(e.exports.meshopt_decodeVertexBuffer,t,n,r,i,e.exports[s[o]])},decodeIndexBuffer(t,n,r,i){a(e.exports.meshopt_decodeIndexBuffer,t,n,r,i)},decodeIndexSequence(t,n,r,i){a(e.exports.meshopt_decodeIndexSequence,t,n,r,i)},decodeGltfBuffer(t,n,r,i,o,u){a(e.exports[l[o]],t,n,r,i,e.exports[s[u]])}}};function u(e,t){if(t===i.WwZ)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),e;if(t!==i.z$h&&t!==i.UlW)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",t),e;{let n=e.getIndex();if(null===n){let t=[],r=e.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),e;for(let e=0;e<r.count;e++)t.push(e);e.setIndex(t),n=e.getIndex()}let r=n.count-2,o=[];if(n){if(t===i.z$h)for(let e=1;e<=r;e++)o.push(n.getX(0)),o.push(n.getX(e)),o.push(n.getX(e+1));else for(let e=0;e<r;e++)e%2==0?(o.push(n.getX(e)),o.push(n.getX(e+1)),o.push(n.getX(e+2))):(o.push(n.getX(e+2)),o.push(n.getX(e+1)),o.push(n.getX(e)))}o.length/3!==r&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");let a=e.clone();return a.setIndex(o),a.clearGroups(),a}}var c=n(9074);function f(e){if("undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);let t="";for(let n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch(e){return t}}let d="srgb",p="srgb-linear";class h extends i.aNw{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){return new A(e)}),this.register(function(e){return new w(e)}),this.register(function(e){return new O(e)}),this.register(function(e){return new P(e)}),this.register(function(e){return new T(e)}),this.register(function(e){return new C(e)}),this.register(function(e){return new S(e)}),this.register(function(e){return new B(e)}),this.register(function(e){return new x(e)}),this.register(function(e){return new b(e)}),this.register(function(e){return new _(e)}),this.register(function(e){return new E(e)}),this.register(function(e){return new M(e)}),this.register(function(e){return new R(e)}),this.register(function(e){return new y(e)}),this.register(function(e){return new I(e)}),this.register(function(e){return new k(e)})}load(e,t,n,r){let o;let a=this;if(""!==this.resourcePath)o=this.resourcePath;else if(""!==this.path){let t=i.Zp0.extractUrlBase(e);o=i.Zp0.resolveURL(t,this.path)}else o=i.Zp0.extractUrlBase(e);this.manager.itemStart(e);let s=function(t){r?r(t):console.error(t),a.manager.itemError(e),a.manager.itemEnd(e)},l=new i.hH6(this.manager);l.setPath(this.path),l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,function(n){try{a.parse(n,o,function(n){t(n),a.manager.itemEnd(e)},s)}catch(e){s(e)}},n,s)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return -1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return -1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,r){let i;let o={},a={};if("string"==typeof e)i=JSON.parse(e);else if(e instanceof ArrayBuffer){if(f(new Uint8Array(e.slice(0,4)))===D){try{o[g.KHR_BINARY_GLTF]=new L(e)}catch(e){r&&r(e);return}i=JSON.parse(o[g.KHR_BINARY_GLTF].content)}else i=JSON.parse(f(new Uint8Array(e)))}else i=e;if(void 0===i.asset||i.asset.version[0]<2){r&&r(Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}let s=new ei(i,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});s.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e<this.pluginCallbacks.length;e++){let t=this.pluginCallbacks[e](s);t.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[t.name]=t,o[t.name]=!0}if(i.extensionsUsed)for(let e=0;e<i.extensionsUsed.length;++e){let t=i.extensionsUsed[e],n=i.extensionsRequired||[];switch(t){case g.KHR_MATERIALS_UNLIT:o[t]=new v;break;case g.KHR_DRACO_MESH_COMPRESSION:o[t]=new j(i,this.dracoLoader);break;case g.KHR_TEXTURE_TRANSFORM:o[t]=new N;break;case g.KHR_MESH_QUANTIZATION:o[t]=new U;break;default:n.indexOf(t)>=0&&void 0===a[t]&&console.warn('THREE.GLTFLoader: Unknown extension "'+t+'".')}}s.setExtensions(o),s.setPlugins(a),s.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}}function m(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}let g={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class y{constructor(e){this.parser=e,this.name=g.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n<r;n++){let r=t[n];r.extensions&&r.extensions[this.name]&&void 0!==r.extensions[this.name].light&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){let t;let n=this.parser,r="light:"+e,o=n.cache.get(r);if(o)return o;let a=n.json,s=((a.extensions&&a.extensions[this.name]||{}).lights||[])[e],l=new i.Ilk(16777215);void 0!==s.color&&l.setRGB(s.color[0],s.color[1],s.color[2],p);let u=void 0!==s.range?s.range:0;switch(s.type){case"directional":(t=new i.Ox3(l)).target.position.set(0,0,-1),t.add(t.target);break;case"point":(t=new i.cek(l)).distance=u;break;case"spot":(t=new i.PMe(l)).distance=u,s.spot=s.spot||{},s.spot.innerConeAngle=void 0!==s.spot.innerConeAngle?s.spot.innerConeAngle:0,s.spot.outerConeAngle=void 0!==s.spot.outerConeAngle?s.spot.outerConeAngle:Math.PI/4,t.angle=s.spot.outerConeAngle,t.penumbra=1-s.spot.innerConeAngle/s.spot.outerConeAngle,t.target.position.set(0,0,-1),t.add(t.target);break;default:throw Error("THREE.GLTFLoader: Unexpected light type: "+s.type)}return t.position.set(0,0,0),t.decay=2,ee(t,s),void 0!==s.intensity&&(t.intensity=s.intensity),t.name=n.createUniqueName(s.name||"light_"+e),o=Promise.resolve(t),n.cache.add(r,o),o}getDependency(e,t){if("light"===e)return this._loadLight(t)}createNodeAttachment(e){let t=this,n=this.parser,r=n.json.nodes[e],i=(r.extensions&&r.extensions[this.name]||{}).light;return void 0===i?null:this._loadLight(i).then(function(e){return n._getNodeRef(t.cache,i,e)})}}class v{constructor(){this.name=g.KHR_MATERIALS_UNLIT}getMaterialType(){return i.vBJ}extendParams(e,t,n){let r=[];e.color=new i.Ilk(1,1,1),e.opacity=1;let o=t.pbrMetallicRoughness;if(o){if(Array.isArray(o.baseColorFactor)){let t=o.baseColorFactor;e.color.setRGB(t[0],t[1],t[2],p),e.opacity=t[3]}void 0!==o.baseColorTexture&&r.push(n.assignTexture(e,"map",o.baseColorTexture,d))}return Promise.all(r)}}class b{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){let n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();let r=n.extensions[this.name].emissiveStrength;return void 0!==r&&(t.emissiveIntensity=r),Promise.resolve()}}class A{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let o=[],a=r.extensions[this.name];if(void 0!==a.clearcoatFactor&&(t.clearcoat=a.clearcoatFactor),void 0!==a.clearcoatTexture&&o.push(n.assignTexture(t,"clearcoatMap",a.clearcoatTexture)),void 0!==a.clearcoatRoughnessFactor&&(t.clearcoatRoughness=a.clearcoatRoughnessFactor),void 0!==a.clearcoatRoughnessTexture&&o.push(n.assignTexture(t,"clearcoatRoughnessMap",a.clearcoatRoughnessTexture)),void 0!==a.clearcoatNormalTexture&&(o.push(n.assignTexture(t,"clearcoatNormalMap",a.clearcoatNormalTexture)),void 0!==a.clearcoatNormalTexture.scale)){let e=a.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new i.FM8(e,e)}return Promise.all(o)}}class w{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_DISPERSION}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();let r=n.extensions[this.name];return t.dispersion=void 0!==r.dispersion?r.dispersion:0,Promise.resolve()}}class E{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],o=r.extensions[this.name];return void 0!==o.iridescenceFactor&&(t.iridescence=o.iridescenceFactor),void 0!==o.iridescenceTexture&&i.push(n.assignTexture(t,"iridescenceMap",o.iridescenceTexture)),void 0!==o.iridescenceIor&&(t.iridescenceIOR=o.iridescenceIor),void 0===t.iridescenceThicknessRange&&(t.iridescenceThicknessRange=[100,400]),void 0!==o.iridescenceThicknessMinimum&&(t.iridescenceThicknessRange[0]=o.iridescenceThicknessMinimum),void 0!==o.iridescenceThicknessMaximum&&(t.iridescenceThicknessRange[1]=o.iridescenceThicknessMaximum),void 0!==o.iridescenceThicknessTexture&&i.push(n.assignTexture(t,"iridescenceThicknessMap",o.iridescenceThicknessTexture)),Promise.all(i)}}class C{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_SHEEN}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let o=[];t.sheenColor=new i.Ilk(0,0,0),t.sheenRoughness=0,t.sheen=1;let a=r.extensions[this.name];if(void 0!==a.sheenColorFactor){let e=a.sheenColorFactor;t.sheenColor.setRGB(e[0],e[1],e[2],p)}return void 0!==a.sheenRoughnessFactor&&(t.sheenRoughness=a.sheenRoughnessFactor),void 0!==a.sheenColorTexture&&o.push(n.assignTexture(t,"sheenColorMap",a.sheenColorTexture,d)),void 0!==a.sheenRoughnessTexture&&o.push(n.assignTexture(t,"sheenRoughnessMap",a.sheenRoughnessTexture)),Promise.all(o)}}class S{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],o=r.extensions[this.name];return void 0!==o.transmissionFactor&&(t.transmission=o.transmissionFactor),void 0!==o.transmissionTexture&&i.push(n.assignTexture(t,"transmissionMap",o.transmissionTexture)),Promise.all(i)}}class B{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_VOLUME}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let o=[],a=r.extensions[this.name];t.thickness=void 0!==a.thicknessFactor?a.thicknessFactor:0,void 0!==a.thicknessTexture&&o.push(n.assignTexture(t,"thicknessMap",a.thicknessTexture)),t.attenuationDistance=a.attenuationDistance||1/0;let s=a.attenuationColor||[1,1,1];return t.attenuationColor=new i.Ilk().setRGB(s[0],s[1],s[2],p),Promise.all(o)}}class x{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_IOR}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();let r=n.extensions[this.name];return t.ior=void 0!==r.ior?r.ior:1.5,Promise.resolve()}}class _{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_SPECULAR}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let o=[],a=r.extensions[this.name];t.specularIntensity=void 0!==a.specularFactor?a.specularFactor:1,void 0!==a.specularTexture&&o.push(n.assignTexture(t,"specularIntensityMap",a.specularTexture));let s=a.specularColorFactor||[1,1,1];return t.specularColor=new i.Ilk().setRGB(s[0],s[1],s[2],p),void 0!==a.specularColorTexture&&o.push(n.assignTexture(t,"specularColorMap",a.specularColorTexture,d)),Promise.all(o)}}class R{constructor(e){this.parser=e,this.name=g.EXT_MATERIALS_BUMP}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],o=r.extensions[this.name];return t.bumpScale=void 0!==o.bumpFactor?o.bumpFactor:1,void 0!==o.bumpTexture&&i.push(n.assignTexture(t,"bumpMap",o.bumpTexture)),Promise.all(i)}}class M{constructor(e){this.parser=e,this.name=g.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){let t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],o=r.extensions[this.name];return void 0!==o.anisotropyStrength&&(t.anisotropy=o.anisotropyStrength),void 0!==o.anisotropyRotation&&(t.anisotropyRotation=o.anisotropyRotation),void 0!==o.anisotropyTexture&&i.push(n.assignTexture(t,"anisotropyMap",o.anisotropyTexture)),Promise.all(i)}}class O{constructor(e){this.parser=e,this.name=g.KHR_TEXTURE_BASISU}loadTexture(e){let t=this.parser,n=t.json,r=n.textures[e];if(!r.extensions||!r.extensions[this.name])return null;let i=r.extensions[this.name],o=t.options.ktx2Loader;if(!o){if(!(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0))return null;throw Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures")}return t.loadTextureImage(e,i.source,o)}}class P{constructor(e){this.parser=e,this.name=g.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let o=i.extensions[t],a=r.images[o.source],s=n.textureLoader;if(a.uri){let e=n.options.manager.getHandler(a.uri);null!==e&&(s=e)}return this.detectSupport().then(function(i){if(i)return n.loadTextureImage(e,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){let t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}})),this.isSupported}}class T{constructor(e){this.parser=e,this.name=g.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let o=i.extensions[t],a=r.images[o.source],s=n.textureLoader;if(a.uri){let e=n.options.manager.getHandler(a.uri);null!==e&&(s=e)}return this.detectSupport().then(function(i){if(i)return n.loadTextureImage(e,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){let t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(1===t.height)}})),this.isSupported}}class I{constructor(e){this.name=g.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(!n.extensions||!n.extensions[this.name])return null;{let e=n.extensions[this.name],r=this.parser.getDependency("buffer",e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(!(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0))return null;throw Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files")}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,o=e.count,a=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(o,a,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(o*a);return i.decodeGltfBuffer(new Uint8Array(t),o,a,s,e.mode,e.filter),t})})}}}class k{constructor(e){this.name=g.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;for(let e of t.meshes[n.mesh].primitives)if(e.mode!==J.TRIANGLES&&e.mode!==J.TRIANGLE_STRIP&&e.mode!==J.TRIANGLE_FAN&&void 0!==e.mode)return null;let r=n.extensions[this.name].attributes,o=[],a={};for(let e in r)o.push(this.parser.getDependency("accessor",r[e]).then(t=>(a[e]=t,a[e])));return o.length<1?null:(o.push(this.parser.createNodeMesh(e)),Promise.all(o).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,o=[];for(let e of n){let t=new i.yGw,n=new i.Pa4,s=new i._fP,l=new i.Pa4(1,1,1),u=new i.SPe(e.geometry,e.material,r);for(let e=0;e<r;e++)a.TRANSLATION&&n.fromBufferAttribute(a.TRANSLATION,e),a.ROTATION&&s.fromBufferAttribute(a.ROTATION,e),a.SCALE&&l.fromBufferAttribute(a.SCALE,e),u.setMatrixAt(e,t.compose(n,s,l));for(let t in a)if("_COLOR_0"===t){let e=a[t];u.instanceColor=new i.lb7(e.array,e.itemSize,e.normalized)}else"TRANSLATION"!==t&&"ROTATION"!==t&&"SCALE"!==t&&e.geometry.setAttribute(t,a[t]);i.Tme.prototype.copy.call(u,e),this.parser.assignFinalMaterial(u),o.push(u)}return t.isGroup?(t.clear(),t.add(...o),t):o[0]}))}}let D="glTF",F={JSON:1313821514,BIN:5130562};class L{constructor(e){this.name=g.KHR_BINARY_GLTF,this.content=null,this.body=null;let t=new DataView(e,0,12);if(this.header={magic:f(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==D)throw Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw Error("THREE.GLTFLoader: Legacy binary file detected.");let n=this.header.length-12,r=new DataView(e,12),i=0;for(;i<n;){let t=r.getUint32(i,!0);i+=4;let n=r.getUint32(i,!0);if(i+=4,n===F.JSON){let n=new Uint8Array(e,12+i,t);this.content=f(n)}else if(n===F.BIN){let n=12+i;this.body=e.slice(n,n+t)}i+=t}if(null===this.content)throw Error("THREE.GLTFLoader: JSON content not found.")}}class j{constructor(e,t){if(!t)throw Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=g.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){let n=this.json,r=this.dracoLoader,i=e.extensions[this.name].bufferView,o=e.extensions[this.name].attributes,a={},s={},l={};for(let e in o)a[Y[e]||e.toLowerCase()]=o[e];for(let t in e.attributes){let r=Y[t]||t.toLowerCase();if(void 0!==o[t]){let i=n.accessors[e.attributes[t]],o=W[i.componentType];l[r]=o.name,s[r]=!0===i.normalized}}return t.getDependency("bufferView",i).then(function(e){return new Promise(function(t,n){r.decodeDracoFile(e,function(e){for(let t in e.attributes){let n=e.attributes[t],r=s[t];void 0!==r&&(n.normalized=r)}t(e)},a,l,p,n)})})}}class N{constructor(){this.name=g.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return(void 0===t.texCoord||t.texCoord===e.channel)&&void 0===t.offset&&void 0===t.rotation&&void 0===t.scale||(e=e.clone(),void 0!==t.texCoord&&(e.channel=t.texCoord),void 0!==t.offset&&e.offset.fromArray(t.offset),void 0!==t.rotation&&(e.rotation=t.rotation),void 0!==t.scale&&e.repeat.fromArray(t.scale),e.needsUpdate=!0),e}}class U{constructor(){this.name=g.KHR_MESH_QUANTIZATION}}class G extends i._C8{constructor(e,t,n,r){super(e,t,n,r)}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r;for(let e=0;e!==r;e++)t[e]=n[i+e];return t}interpolate_(e,t,n,r){let i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=2*a,l=3*a,u=r-t,c=(n-t)/u,f=c*c,d=f*c,p=e*l,h=p-l,m=-2*d+3*f,g=d-f,y=1-m,v=g-f+c;for(let e=0;e!==a;e++){let t=o[h+e+a],n=o[h+e+s]*u,r=o[p+e+a],l=o[p+e]*u;i[e]=y*t+v*n+m*r+g*l}return i}}let H=new i._fP;class z extends G{interpolate_(e,t,n,r){let i=super.interpolate_(e,t,n,r);return H.fromArray(i).normalize().toArray(i),i}}let J={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},W={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},K={9728:i.TyD,9729:i.wem,9984:i.YLQ,9985:i.qyh,9986:i.aH4,9987:i.D1R},Q={33071:i.uWy,33648:i.OoA,10497:i.rpg},X={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},Y={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",...c.i>=152?{TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3"}:{TEXCOORD_0:"uv",TEXCOORD_1:"uv2"},COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},q={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},V={CUBICSPLINE:void 0,LINEAR:i.NMF,STEP:i.Syv},Z={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function $(e,t,n){for(let r in n.extensions)void 0===e[r]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}function ee(e,t){void 0!==t.extras&&("object"==typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function et(e){let t="",n=Object.keys(e).sort();for(let r=0,i=n.length;r<i;r++)t+=n[r]+":"+e[n[r]]+";";return t}function en(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}let er=new i.yGw;class ei{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new m,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=!1,o=-1;"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(n=!0===/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=(r=navigator.userAgent.indexOf("Firefox")>-1)?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),"undefined"==typeof createImageBitmap||n||r&&o<98?this.textureLoader=new i.dpR(this.options.manager):this.textureLoader=new i.QRU(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new i.hH6(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])}).then(function(t){let o={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return $(i,o,r),ee(o,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(o)})).then(function(){for(let e of o.scenes)e.updateMatrixWorld();e(o)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n<r;n++){let r=t[n].joints;for(let t=0,n=r.length;t<n;t++)e[r[t]].isBone=!0}for(let t=0,r=e.length;t<r;t++){let r=e[t];void 0!==r.mesh&&(this._addNodeRef(this.meshCache,r.mesh),void 0!==r.skin&&(n[r.mesh].isSkinnedMesh=!0)),void 0!==r.camera&&this._addNodeRef(this.cameraCache,r.camera)}}_addNodeRef(e,t){void 0!==t&&(void 0===e.refs[t]&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,n){if(e.refs[t]<=1)return n;let r=n.clone(),i=(e,t)=>{let n=this.associations.get(e);for(let[r,o]of(null!=n&&this.associations.set(t,n),e.children.entries()))i(o,t.children[r])};return i(n,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n<t.length;n++){let r=e(t[n]);if(r)return r}return null}_invokeAll(e){let t=Object.values(this.plugins);t.unshift(this);let n=[];for(let r=0;r<t.length;r++){let i=e(t[r]);i&&n.push(i)}return n}getDependency(e,t){let n=e+":"+t,r=this.cache.get(n);if(!r){switch(e){case"scene":r=this.loadScene(t);break;case"node":r=this._invokeOne(function(e){return e.loadNode&&e.loadNode(t)});break;case"mesh":r=this._invokeOne(function(e){return e.loadMesh&&e.loadMesh(t)});break;case"accessor":r=this.loadAccessor(t);break;case"bufferView":r=this._invokeOne(function(e){return e.loadBufferView&&e.loadBufferView(t)});break;case"buffer":r=this.loadBuffer(t);break;case"material":r=this._invokeOne(function(e){return e.loadMaterial&&e.loadMaterial(t)});break;case"texture":r=this._invokeOne(function(e){return e.loadTexture&&e.loadTexture(t)});break;case"skin":r=this.loadSkin(t);break;case"animation":r=this._invokeOne(function(e){return e.loadAnimation&&e.loadAnimation(t)});break;case"camera":r=this.loadCamera(t);break;default:if(!(r=this._invokeOne(function(n){return n!=this&&n.getDependency&&n.getDependency(e,t)})))throw Error("Unknown type: "+e)}this.cache.add(n,r)}return r}getDependencies(e){let t=this.cache.get(e);if(!t){let n=this;t=Promise.all((this.json[e+("mesh"===e?"es":"s")]||[]).map(function(t,r){return n.getDependency(e,r)})),this.cache.add(e,t)}return t}loadBuffer(e){let t=this.json.buffers[e],n=this.fileLoader;if(t.type&&"arraybuffer"!==t.type)throw Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(void 0===t.uri&&0===e)return Promise.resolve(this.extensions[g.KHR_BINARY_GLTF].body);let r=this.options;return new Promise(function(e,o){n.load(i.Zp0.resolveURL(t.uri,r.path),e,void 0,function(){o(Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))})})}loadBufferView(e){let t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then(function(e){let n=t.byteLength||0,r=t.byteOffset||0;return e.slice(r,r+n)})}loadAccessor(e){let t=this,n=this.json,r=this.json.accessors[e];if(void 0===r.bufferView&&void 0===r.sparse){let e=X[r.type],t=W[r.componentType],n=!0===r.normalized,o=new t(r.count*e);return Promise.resolve(new i.TlE(o,e,n))}let o=[];return void 0!==r.bufferView?o.push(this.getDependency("bufferView",r.bufferView)):o.push(null),void 0!==r.sparse&&(o.push(this.getDependency("bufferView",r.sparse.indices.bufferView)),o.push(this.getDependency("bufferView",r.sparse.values.bufferView))),Promise.all(o).then(function(e){let o,a;let s=e[0],l=X[r.type],u=W[r.componentType],c=u.BYTES_PER_ELEMENT,f=c*l,d=r.byteOffset||0,p=void 0!==r.bufferView?n.bufferViews[r.bufferView].byteStride:void 0,h=!0===r.normalized;if(p&&p!==f){let e=Math.floor(d/p),n="InterleavedBuffer:"+r.bufferView+":"+r.componentType+":"+e+":"+r.count,f=t.cache.get(n);f||(o=new u(s,e*p,r.count*p/c),f=new i.vpT(o,p/c),t.cache.add(n,f)),a=new i.kB5(f,l,d%p/c,h)}else o=null===s?new u(r.count*l):new u(s,d,r.count*l),a=new i.TlE(o,l,h);if(void 0!==r.sparse){let t=X.SCALAR,n=W[r.sparse.indices.componentType],o=r.sparse.indices.byteOffset||0,c=r.sparse.values.byteOffset||0,f=new n(e[1],o,r.sparse.count*t),d=new u(e[2],c,r.sparse.count*l);null!==s&&(a=new i.TlE(a.array.slice(),a.itemSize,a.normalized));for(let e=0,t=f.length;e<t;e++){let t=f[e];if(a.setX(t,d[e*l]),l>=2&&a.setY(t,d[e*l+1]),l>=3&&a.setZ(t,d[e*l+2]),l>=4&&a.setW(t,d[e*l+3]),l>=5)throw Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return a})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],o=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);null!==e&&(o=e)}return this.loadTextureImage(e,r,o)}loadTextureImage(e,t,n){let r=this,o=this.json,a=o.textures[e],s=o.images[t],l=(s.uri||s.bufferView)+":"+a.sampler;if(this.textureCache[l])return this.textureCache[l];let u=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||s.name||"",""===t.name&&"string"==typeof s.uri&&!1===s.uri.startsWith("data:image/")&&(t.name=s.uri);let n=(o.samplers||{})[a.sampler]||{};return t.magFilter=K[n.magFilter]||i.wem,t.minFilter=K[n.minFilter]||i.D1R,t.wrapS=Q[n.wrapS]||i.rpg,t.wrapT=Q[n.wrapT]||i.rpg,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,t){let n=this.json,r=this.options;if(void 0!==this.sourceCache[e])return this.sourceCache[e].then(e=>e.clone());let o=n.images[e],a=self.URL||self.webkitURL,s=o.uri||"",l=!1;if(void 0!==o.bufferView)s=this.getDependency("bufferView",o.bufferView).then(function(e){l=!0;let t=new Blob([e],{type:o.mimeType});return s=a.createObjectURL(t)});else if(void 0===o.uri)throw Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");let u=Promise.resolve(s).then(function(e){return new Promise(function(n,o){let a=n;!0===t.isImageBitmapLoader&&(a=function(e){let t=new i.xEZ(e);t.needsUpdate=!0,n(t)}),t.load(i.Zp0.resolveURL(e,r.path),a,void 0,o)})}).then(function(e){var t;return!0===l&&a.revokeObjectURL(s),ee(e,o),e.userData.mimeType=o.mimeType||((t=o.uri).search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/)?"image/jpeg":t.search(/\.webp($|\?)/i)>0||0===t.search(/^data\:image\/webp/)?"image/webp":"image/png"),e}).catch(function(e){throw console.error("THREE.GLTFLoader: Couldn't load texture",s),e});return this.sourceCache[e]=u,u}assignTexture(e,t,n,r){let i=this;return this.getDependency("texture",n.index).then(function(o){if(!o)return null;if(void 0!==n.texCoord&&n.texCoord>0&&((o=o.clone()).channel=n.texCoord),i.extensions[g.KHR_TEXTURE_TRANSFORM]){let e=void 0!==n.extensions?n.extensions[g.KHR_TEXTURE_TRANSFORM]:void 0;if(e){let t=i.associations.get(o);o=i.extensions[g.KHR_TEXTURE_TRANSFORM].extendTexture(o,e),i.associations.set(o,t)}}return void 0!==r&&("number"==typeof r&&(r=3001===r?d:p),"colorSpace"in o?o.colorSpace=r:o.encoding=r===d?3001:3e3),e[t]=o,o})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=void 0===t.attributes.tangent,o=void 0!==t.attributes.color,a=void 0===t.attributes.normal;if(e.isPoints){let e="PointsMaterial:"+n.uuid,t=this.cache.get(e);t||(t=new i.UY4,i.F5T.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e="LineBasicMaterial:"+n.uuid,t=this.cache.get(e);t||(t=new i.nls,i.F5T.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||o||a){let e="ClonedMaterial:"+n.uuid+":";r&&(e+="derivative-tangents:"),o&&(e+="vertex-colors:"),a&&(e+="flat-shading:");let t=this.cache.get(e);t||(t=n.clone(),o&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return i.Wid}loadMaterial(e){let t;let n=this,r=this.json,o=this.extensions,a=r.materials[e],s={},l=a.extensions||{},u=[];if(l[g.KHR_MATERIALS_UNLIT]){let e=o[g.KHR_MATERIALS_UNLIT];t=e.getMaterialType(),u.push(e.extendParams(s,a,n))}else{let r=a.pbrMetallicRoughness||{};if(s.color=new i.Ilk(1,1,1),s.opacity=1,Array.isArray(r.baseColorFactor)){let e=r.baseColorFactor;s.color.setRGB(e[0],e[1],e[2],p),s.opacity=e[3]}void 0!==r.baseColorTexture&&u.push(n.assignTexture(s,"map",r.baseColorTexture,d)),s.metalness=void 0!==r.metallicFactor?r.metallicFactor:1,s.roughness=void 0!==r.roughnessFactor?r.roughnessFactor:1,void 0!==r.metallicRoughnessTexture&&(u.push(n.assignTexture(s,"metalnessMap",r.metallicRoughnessTexture)),u.push(n.assignTexture(s,"roughnessMap",r.metallicRoughnessTexture))),t=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,s)})))}!0===a.doubleSided&&(s.side=i.ehD);let c=a.alphaMode||Z.OPAQUE;if(c===Z.BLEND?(s.transparent=!0,s.depthWrite=!1):(s.transparent=!1,c===Z.MASK&&(s.alphaTest=void 0!==a.alphaCutoff?a.alphaCutoff:.5)),void 0!==a.normalTexture&&t!==i.vBJ&&(u.push(n.assignTexture(s,"normalMap",a.normalTexture)),s.normalScale=new i.FM8(1,1),void 0!==a.normalTexture.scale)){let e=a.normalTexture.scale;s.normalScale.set(e,e)}if(void 0!==a.occlusionTexture&&t!==i.vBJ&&(u.push(n.assignTexture(s,"aoMap",a.occlusionTexture)),void 0!==a.occlusionTexture.strength&&(s.aoMapIntensity=a.occlusionTexture.strength)),void 0!==a.emissiveFactor&&t!==i.vBJ){let e=a.emissiveFactor;s.emissive=new i.Ilk().setRGB(e[0],e[1],e[2],p)}return void 0!==a.emissiveTexture&&t!==i.vBJ&&u.push(n.assignTexture(s,"emissiveMap",a.emissiveTexture,d)),Promise.all(u).then(function(){let r=new t(s);return a.name&&(r.name=a.name),ee(r,a),n.associations.set(r,{materials:e}),a.extensions&&$(o,r,a),r})}createUniqueName(e){let t=i.iUV.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache,o=[];for(let a=0,s=e.length;a<s;a++){let s=e[a],l=function(e){let t;let n=e.extensions&&e.extensions[g.KHR_DRACO_MESH_COMPRESSION];if(t=n?"draco:"+n.bufferView+":"+n.indices+":"+et(n.attributes):e.indices+":"+et(e.attributes)+":"+e.mode,void 0!==e.targets)for(let n=0,r=e.targets.length;n<r;n++)t+=":"+et(e.targets[n]);return t}(s),u=r[l];if(u)o.push(u.promise);else{let e;e=s.extensions&&s.extensions[g.KHR_DRACO_MESH_COMPRESSION]?function(e){return n[g.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return eo(n,e,t)})}(s):eo(new i.u9r,s,t),r[l]={primitive:s,promise:e},o.push(e)}}return Promise.all(o)}loadMesh(e){let t=this,n=this.json,r=this.extensions,o=n.meshes[e],a=o.primitives,s=[];for(let e=0,t=a.length;e<t;e++){var l;let t=void 0===a[e].material?(void 0===(l=this.cache).DefaultMaterial&&(l.DefaultMaterial=new i.Wid({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:i.Wl3})),l.DefaultMaterial):this.getDependency("material",a[e].material);s.push(t)}return s.push(t.loadGeometries(a)),Promise.all(s).then(function(n){let s=n.slice(0,n.length-1),l=n[n.length-1],c=[];for(let n=0,f=l.length;n<f;n++){let f;let d=l[n],p=a[n],h=s[n];if(p.mode===J.TRIANGLES||p.mode===J.TRIANGLE_STRIP||p.mode===J.TRIANGLE_FAN||void 0===p.mode)!0===(f=!0===o.isSkinnedMesh?new i.TUv(d,h):new i.Kj0(d,h)).isSkinnedMesh&&f.normalizeSkinWeights(),p.mode===J.TRIANGLE_STRIP?f.geometry=u(f.geometry,i.UlW):p.mode===J.TRIANGLE_FAN&&(f.geometry=u(f.geometry,i.z$h));else if(p.mode===J.LINES)f=new i.ejS(d,h);else if(p.mode===J.LINE_STRIP)f=new i.x12(d,h);else if(p.mode===J.LINE_LOOP)f=new i.blk(d,h);else if(p.mode===J.POINTS)f=new i.woe(d,h);else throw Error("THREE.GLTFLoader: Primitive mode unsupported: "+p.mode);Object.keys(f.geometry.morphAttributes).length>0&&function(e,t){if(e.updateMorphTargets(),void 0!==t.weights)for(let n=0,r=t.weights.length;n<r;n++)e.morphTargetInfluences[n]=t.weights[n];if(t.extras&&Array.isArray(t.extras.targetNames)){let n=t.extras.targetNames;if(e.morphTargetInfluences.length===n.length){e.morphTargetDictionary={};for(let t=0,r=n.length;t<r;t++)e.morphTargetDictionary[n[t]]=t}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}(f,o),f.name=t.createUniqueName(o.name||"mesh_"+e),ee(f,o),p.extensions&&$(r,f,p),t.assignFinalMaterial(f),c.push(f)}for(let n=0,r=c.length;n<r;n++)t.associations.set(c[n],{meshes:e,primitives:n});if(1===c.length)return o.extensions&&$(r,c[0],o),c[0];let f=new i.ZAu;o.extensions&&$(r,f,o),t.associations.set(f,{meshes:e});for(let e=0,t=c.length;e<t;e++)f.add(c[e]);return f})}loadCamera(e){let t;let n=this.json.cameras[e],r=n[n.type];if(!r){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return"perspective"===n.type?t=new i.cPb(i.M8C.radToDeg(r.yfov),r.aspectRatio||1,r.znear||1,r.zfar||2e6):"orthographic"===n.type&&(t=new i.iKG(-r.xmag,r.xmag,r.ymag,-r.ymag,r.znear,r.zfar)),n.name&&(t.name=this.createUniqueName(n.name)),ee(t,n),Promise.resolve(t)}loadSkin(e){let t=this.json.skins[e],n=[];for(let e=0,r=t.joints.length;e<r;e++)n.push(this._loadNodeShallow(t.joints[e]));return void 0!==t.inverseBindMatrices?n.push(this.getDependency("accessor",t.inverseBindMatrices)):n.push(null),Promise.all(n).then(function(e){let n=e.pop(),r=[],o=[];for(let a=0,s=e.length;a<s;a++){let s=e[a];if(s){r.push(s);let e=new i.yGw;null!==n&&e.fromArray(n.array,16*a),o.push(e)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[a])}return new i.OdW(r,o)})}loadAnimation(e){let t=this.json,n=this,r=t.animations[e],o=r.name?r.name:"animation_"+e,a=[],s=[],l=[],u=[],c=[];for(let e=0,t=r.channels.length;e<t;e++){let t=r.channels[e],n=r.samplers[t.sampler],i=t.target,o=i.node,f=void 0!==r.parameters?r.parameters[n.input]:n.input,d=void 0!==r.parameters?r.parameters[n.output]:n.output;void 0!==i.node&&(a.push(this.getDependency("node",o)),s.push(this.getDependency("accessor",f)),l.push(this.getDependency("accessor",d)),u.push(n),c.push(i))}return Promise.all([Promise.all(a),Promise.all(s),Promise.all(l),Promise.all(u),Promise.all(c)]).then(function(e){let t=e[0],r=e[1],a=e[2],s=e[3],l=e[4],u=[];for(let e=0,i=t.length;e<i;e++){let i=t[e],o=r[e],c=a[e],f=s[e],d=l[e];if(void 0===i)continue;i.updateMatrix&&i.updateMatrix();let p=n._createAnimationTracks(i,o,c,f,d);if(p)for(let e=0;e<p.length;e++)u.push(p[e])}return new i.m7l(o,void 0,u)})}createNodeMesh(e){let t=this.json,n=this,r=t.nodes[e];return void 0===r.mesh?null:n.getDependency("mesh",r.mesh).then(function(e){let t=n._getNodeRef(n.meshCache,r.mesh,e);return void 0!==r.weights&&t.traverse(function(e){if(e.isMesh)for(let t=0,n=r.weights.length;t<n;t++)e.morphTargetInfluences[t]=r.weights[t]}),t})}loadNode(e){let t=this.json.nodes[e],n=this._loadNodeShallow(e),r=[],i=t.children||[];for(let e=0,t=i.length;e<t;e++)r.push(this.getDependency("node",i[e]));let o=void 0===t.skin?Promise.resolve(null):this.getDependency("skin",t.skin);return Promise.all([n,Promise.all(r),o]).then(function(e){let t=e[0],n=e[1],r=e[2];null!==r&&t.traverse(function(e){e.isSkinnedMesh&&e.bind(r,er)});for(let e=0,r=n.length;e<r;e++)t.add(n[e]);return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(void 0!==this.nodeCache[e])return this.nodeCache[e];let o=t.nodes[e],a=o.name?r.createUniqueName(o.name):"",s=[],l=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return l&&s.push(l),void 0!==o.camera&&s.push(r.getDependency("camera",o.camera).then(function(e){return r._getNodeRef(r.cameraCache,o.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){s.push(e)}),this.nodeCache[e]=Promise.all(s).then(function(t){let s;if((s=!0===o.isBone?new i.N$j:t.length>1?new i.ZAu:1===t.length?t[0]:new i.Tme)!==t[0])for(let e=0,n=t.length;e<n;e++)s.add(t[e]);if(o.name&&(s.userData.name=o.name,s.name=a),ee(s,o),o.extensions&&$(n,s,o),void 0!==o.matrix){let e=new i.yGw;e.fromArray(o.matrix),s.applyMatrix4(e)}else void 0!==o.translation&&s.position.fromArray(o.translation),void 0!==o.rotation&&s.quaternion.fromArray(o.rotation),void 0!==o.scale&&s.scale.fromArray(o.scale);return r.associations.has(s)||r.associations.set(s,{}),r.associations.get(s).nodes=e,s}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,o=new i.ZAu;n.name&&(o.name=r.createUniqueName(n.name)),ee(o,n),n.extensions&&$(t,o,n);let a=n.nodes||[],s=[];for(let e=0,t=a.length;e<t;e++)s.push(r.getDependency("node",a[e]));return Promise.all(s).then(function(e){for(let t=0,n=e.length;t<n;t++)o.add(e[t]);return r.associations=(e=>{let t=new Map;for(let[e,n]of r.associations)(e instanceof i.F5T||e instanceof i.xEZ)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);null!=n&&t.set(e,n)}),t})(o),o})}_createAnimationTracks(e,t,n,r,o){let a;let s=[],l=e.name?e.name:e.uuid,u=[];switch(q[o.path]===q.weights?e.traverse(function(e){e.morphTargetInfluences&&u.push(e.name?e.name:e.uuid)}):u.push(l),q[o.path]){case q.weights:a=i.dUE;break;case q.rotation:a=i.iLg;break;case q.position:case q.scale:a=i.yC1;break;default:a=1===n.itemSize?i.dUE:i.yC1}let c=void 0!==r.interpolation?V[r.interpolation]:i.NMF,f=this._getArrayFromAccessor(n);for(let e=0,n=u.length;e<n;e++){let n=new a(u[e]+"."+q[o.path],t.array,f,c);"CUBICSPLINE"===r.interpolation&&this._createCubicSplineTrackInterpolant(n),s.push(n)}return s}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){let e=en(t.constructor),n=new Float32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t[r]*e;t=n}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(e){return new(this instanceof i.iLg?z:G)(this.times,this.values,this.getValueSize()/3,e)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function eo(e,t,n){let r=t.attributes,o=[];for(let t in r){let i=Y[t]||t.toLowerCase();i in e.attributes||o.push(function(t,r){return n.getDependency("accessor",t).then(function(t){e.setAttribute(r,t)})}(r[t],i))}if(void 0!==t.indices&&!e.index){let r=n.getDependency("accessor",t.indices).then(function(t){e.setIndex(t)});o.push(r)}return ee(e,t),!function(e,t,n){let r=t.attributes,o=new i.ZzF;if(void 0===r.POSITION)return;{let e=n.json.accessors[r.POSITION],t=e.min,a=e.max;if(void 0!==t&&void 0!==a){if(o.set(new i.Pa4(t[0],t[1],t[2]),new i.Pa4(a[0],a[1],a[2])),e.normalized){let t=en(W[e.componentType]);o.min.multiplyScalar(t),o.max.multiplyScalar(t)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}let a=t.targets;if(void 0!==a){let e=new i.Pa4,t=new i.Pa4;for(let r=0,i=a.length;r<i;r++){let i=a[r];if(void 0!==i.POSITION){let r=n.json.accessors[i.POSITION],o=r.min,a=r.max;if(void 0!==o&&void 0!==a){if(t.setX(Math.max(Math.abs(o[0]),Math.abs(a[0]))),t.setY(Math.max(Math.abs(o[1]),Math.abs(a[1]))),t.setZ(Math.max(Math.abs(o[2]),Math.abs(a[2]))),r.normalized){let e=en(W[r.componentType]);t.multiplyScalar(e)}e.max(t)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}o.expandByVector(e)}e.boundingBox=o;let s=new i.aLr;o.getCenter(s.center),s.radius=o.min.distanceTo(o.max)/2,e.boundingSphere=s}(e,t,n),Promise.all(o).then(function(){return void 0!==t.targets?function(e,t,n){let r=!1,i=!1,o=!1;for(let e=0,n=t.length;e<n;e++){let n=t[e];if(void 0!==n.POSITION&&(r=!0),void 0!==n.NORMAL&&(i=!0),void 0!==n.COLOR_0&&(o=!0),r&&i&&o)break}if(!r&&!i&&!o)return Promise.resolve(e);let a=[],s=[],l=[];for(let u=0,c=t.length;u<c;u++){let c=t[u];if(r){let t=void 0!==c.POSITION?n.getDependency("accessor",c.POSITION):e.attributes.position;a.push(t)}if(i){let t=void 0!==c.NORMAL?n.getDependency("accessor",c.NORMAL):e.attributes.normal;s.push(t)}if(o){let t=void 0!==c.COLOR_0?n.getDependency("accessor",c.COLOR_0):e.attributes.color;l.push(t)}}return Promise.all([Promise.all(a),Promise.all(s),Promise.all(l)]).then(function(t){let n=t[0],a=t[1],s=t[2];return r&&(e.morphAttributes.position=n),i&&(e.morphAttributes.normal=a),o&&(e.morphAttributes.color=s),e.morphTargetsRelative=!0,e})}(e,t.targets,n):e})}var ea=n(6010);let es=null,el="https://www.gstatic.com/draco/versioned/decoders/1.5.5/";function eu(e=!0,t=!0,n){return r=>{n&&n(r),e&&(es||(es=new a),es.setDecoderPath("string"==typeof e?e:el),r.setDRACOLoader(es)),t&&r.setMeshoptDecoder("function"==typeof l?l():l)}}let ec=(e,t,n,r)=>(0,ea.H)(h,e,eu(t,n,r));ec.preload=(e,t,n,r)=>ea.H.preload(h,e,eu(t,n,r)),ec.clear=e=>ea.H.clear(h,e),ec.setDecoderPath=e=>{el=e}},8181:function(e,t,n){"use strict";let r,i;n.d(t,{x:function(){return T}});var o=n(1119),a=n(2265),s=n(2079),l=n(6010);let u=new s.ZzF,c=new s.Pa4;class f extends s.L5s{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),this.setAttribute("position",new s.a$l([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),this.setAttribute("uv",new s.a$l([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}applyMatrix4(e){let t=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==t&&(t.applyMatrix4(e),n.applyMatrix4(e),t.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}setPositions(e){let t;e instanceof Float32Array?t=e:Array.isArray(e)&&(t=new Float32Array(e));let n=new s.$TI(t,6,1);return this.setAttribute("instanceStart",new s.kB5(n,3,0)),this.setAttribute("instanceEnd",new s.kB5(n,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e,t=3){let n;e instanceof Float32Array?n=e:Array.isArray(e)&&(n=new Float32Array(e));let r=new s.$TI(n,2*t,1);return this.setAttribute("instanceColorStart",new s.kB5(r,t,0)),this.setAttribute("instanceColorEnd",new s.kB5(r,t,t)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new s.Uk6(e.geometry)),this}fromLineSegments(e){let t=e.geometry;return this.setPositions(t.attributes.position.array),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new s.ZzF);let e=this.attributes.instanceStart,t=this.attributes.instanceEnd;void 0!==e&&void 0!==t&&(this.boundingBox.setFromBufferAttribute(e),u.setFromBufferAttribute(t),this.boundingBox.union(u))}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new s.aLr),null===this.boundingBox&&this.computeBoundingBox();let e=this.attributes.instanceStart,t=this.attributes.instanceEnd;if(void 0!==e&&void 0!==t){let n=this.boundingSphere.center;this.boundingBox.getCenter(n);let r=0;for(let i=0,o=e.count;i<o;i++)c.fromBufferAttribute(e,i),r=Math.max(r,n.distanceToSquared(c)),c.fromBufferAttribute(t,i),r=Math.max(r,n.distanceToSquared(c));this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}applyMatrix(e){return console.warn("THREE.LineSegmentsGeometry: applyMatrix() has been renamed to applyMatrix4()."),this.applyMatrix4(e)}}var d=n(1448);class p extends s.jyz{constructor(e){super({type:"LineMaterial",uniforms:s.rDY.clone(s.rDY.merge([d.UniformsLib.common,d.UniformsLib.fog,{worldUnits:{value:1},linewidth:{value:1},resolution:{value:new s.FM8(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}}])),vertexShader:`
115
- #include <common>
116
- #include <fog_pars_vertex>
117
- #include <logdepthbuf_pars_vertex>
118
- #include <clipping_planes_pars_vertex>
119
-
120
- uniform float linewidth;
121
- uniform vec2 resolution;
122
-
123
- attribute vec3 instanceStart;
124
- attribute vec3 instanceEnd;
125
-
126
- #ifdef USE_COLOR
127
- #ifdef USE_LINE_COLOR_ALPHA
128
- varying vec4 vLineColor;
129
- attribute vec4 instanceColorStart;
130
- attribute vec4 instanceColorEnd;
131
- #else
132
- varying vec3 vLineColor;
133
- attribute vec3 instanceColorStart;
134
- attribute vec3 instanceColorEnd;
135
- #endif
136
- #endif
137
-
138
- #ifdef WORLD_UNITS
139
-
140
- varying vec4 worldPos;
141
- varying vec3 worldStart;
142
- varying vec3 worldEnd;
143
-
144
- #ifdef USE_DASH
145
-
146
- varying vec2 vUv;
147
-
148
- #endif
149
-
150
- #else
151
-
152
- varying vec2 vUv;
153
-
154
- #endif
155
-
156
- #ifdef USE_DASH
157
-
158
- uniform float dashScale;
159
- attribute float instanceDistanceStart;
160
- attribute float instanceDistanceEnd;
161
- varying float vLineDistance;
162
-
163
- #endif
164
-
165
- void trimSegment( const in vec4 start, inout vec4 end ) {
166
-
167
- // trim end segment so it terminates between the camera plane and the near plane
168
-
169
- // conservative estimate of the near plane
170
- float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column
171
- float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column
172
- float nearEstimate = - 0.5 * b / a;
173
-
174
- float alpha = ( nearEstimate - start.z ) / ( end.z - start.z );
175
-
176
- end.xyz = mix( start.xyz, end.xyz, alpha );
177
-
178
- }
179
-
180
- void main() {
181
-
182
- #ifdef USE_COLOR
183
-
184
- vLineColor = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;
185
-
186
- #endif
187
-
188
- #ifdef USE_DASH
189
-
190
- vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;
191
- vUv = uv;
192
-
193
- #endif
194
-
195
- float aspect = resolution.x / resolution.y;
196
-
197
- // camera space
198
- vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );
199
- vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );
200
-
201
- #ifdef WORLD_UNITS
202
-
203
- worldStart = start.xyz;
204
- worldEnd = end.xyz;
205
-
206
- #else
207
-
208
- vUv = uv;
209
-
210
- #endif
211
-
212
- // special case for perspective projection, and segments that terminate either in, or behind, the camera plane
213
- // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space
214
- // but we need to perform ndc-space calculations in the shader, so we must address this issue directly
215
- // perhaps there is a more elegant solution -- WestLangley
216
-
217
- bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column
218
-
219
- if ( perspective ) {
220
-
221
- if ( start.z < 0.0 && end.z >= 0.0 ) {
222
-
223
- trimSegment( start, end );
224
-
225
- } else if ( end.z < 0.0 && start.z >= 0.0 ) {
226
-
227
- trimSegment( end, start );
228
-
229
- }
230
-
231
- }
232
-
233
- // clip space
234
- vec4 clipStart = projectionMatrix * start;
235
- vec4 clipEnd = projectionMatrix * end;
236
-
237
- // ndc space
238
- vec3 ndcStart = clipStart.xyz / clipStart.w;
239
- vec3 ndcEnd = clipEnd.xyz / clipEnd.w;
240
-
241
- // direction
242
- vec2 dir = ndcEnd.xy - ndcStart.xy;
243
-
244
- // account for clip-space aspect ratio
245
- dir.x *= aspect;
246
- dir = normalize( dir );
247
-
248
- #ifdef WORLD_UNITS
249
-
250
- // get the offset direction as perpendicular to the view vector
251
- vec3 worldDir = normalize( end.xyz - start.xyz );
252
- vec3 offset;
253
- if ( position.y < 0.5 ) {
254
-
255
- offset = normalize( cross( start.xyz, worldDir ) );
256
-
257
- } else {
258
-
259
- offset = normalize( cross( end.xyz, worldDir ) );
260
-
261
- }
262
-
263
- // sign flip
264
- if ( position.x < 0.0 ) offset *= - 1.0;
265
-
266
- float forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) );
267
-
268
- // don't extend the line if we're rendering dashes because we
269
- // won't be rendering the endcaps
270
- #ifndef USE_DASH
271
-
272
- // extend the line bounds to encompass endcaps
273
- start.xyz += - worldDir * linewidth * 0.5;
274
- end.xyz += worldDir * linewidth * 0.5;
275
-
276
- // shift the position of the quad so it hugs the forward edge of the line
277
- offset.xy -= dir * forwardOffset;
278
- offset.z += 0.5;
279
-
280
- #endif
281
-
282
- // endcaps
283
- if ( position.y > 1.0 || position.y < 0.0 ) {
284
-
285
- offset.xy += dir * 2.0 * forwardOffset;
286
-
287
- }
288
-
289
- // adjust for linewidth
290
- offset *= linewidth * 0.5;
291
-
292
- // set the world position
293
- worldPos = ( position.y < 0.5 ) ? start : end;
294
- worldPos.xyz += offset;
295
-
296
- // project the worldpos
297
- vec4 clip = projectionMatrix * worldPos;
298
-
299
- // shift the depth of the projected points so the line
300
- // segments overlap neatly
301
- vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;
302
- clip.z = clipPose.z * clip.w;
303
-
304
- #else
305
-
306
- vec2 offset = vec2( dir.y, - dir.x );
307
- // undo aspect ratio adjustment
308
- dir.x /= aspect;
309
- offset.x /= aspect;
310
-
311
- // sign flip
312
- if ( position.x < 0.0 ) offset *= - 1.0;
313
-
314
- // endcaps
315
- if ( position.y < 0.0 ) {
316
-
317
- offset += - dir;
318
-
319
- } else if ( position.y > 1.0 ) {
320
-
321
- offset += dir;
322
-
323
- }
324
-
325
- // adjust for linewidth
326
- offset *= linewidth;
327
-
328
- // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...
329
- offset /= resolution.y;
330
-
331
- // select end
332
- vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;
333
-
334
- // back to clip space
335
- offset *= clip.w;
336
-
337
- clip.xy += offset;
338
-
339
- #endif
340
-
341
- gl_Position = clip;
342
-
343
- vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation
344
-
345
- #include <logdepthbuf_vertex>
346
- #include <clipping_planes_vertex>
347
- #include <fog_vertex>
348
-
349
- }
350
- `,fragmentShader:`
351
- uniform vec3 diffuse;
352
- uniform float opacity;
353
- uniform float linewidth;
354
-
355
- #ifdef USE_DASH
356
-
357
- uniform float dashOffset;
358
- uniform float dashSize;
359
- uniform float gapSize;
360
-
361
- #endif
362
-
363
- varying float vLineDistance;
364
-
365
- #ifdef WORLD_UNITS
366
-
367
- varying vec4 worldPos;
368
- varying vec3 worldStart;
369
- varying vec3 worldEnd;
370
-
371
- #ifdef USE_DASH
372
-
373
- varying vec2 vUv;
374
-
375
- #endif
376
-
377
- #else
378
-
379
- varying vec2 vUv;
380
-
381
- #endif
382
-
383
- #include <common>
384
- #include <fog_pars_fragment>
385
- #include <logdepthbuf_pars_fragment>
386
- #include <clipping_planes_pars_fragment>
387
-
388
- #ifdef USE_COLOR
389
- #ifdef USE_LINE_COLOR_ALPHA
390
- varying vec4 vLineColor;
391
- #else
392
- varying vec3 vLineColor;
393
- #endif
394
- #endif
395
-
396
- vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {
397
-
398
- float mua;
399
- float mub;
400
-
401
- vec3 p13 = p1 - p3;
402
- vec3 p43 = p4 - p3;
403
-
404
- vec3 p21 = p2 - p1;
405
-
406
- float d1343 = dot( p13, p43 );
407
- float d4321 = dot( p43, p21 );
408
- float d1321 = dot( p13, p21 );
409
- float d4343 = dot( p43, p43 );
410
- float d2121 = dot( p21, p21 );
411
-
412
- float denom = d2121 * d4343 - d4321 * d4321;
413
-
414
- float numer = d1343 * d4321 - d1321 * d4343;
415
-
416
- mua = numer / denom;
417
- mua = clamp( mua, 0.0, 1.0 );
418
- mub = ( d1343 + d4321 * ( mua ) ) / d4343;
419
- mub = clamp( mub, 0.0, 1.0 );
420
-
421
- return vec2( mua, mub );
422
-
423
- }
424
-
425
- void main() {
426
-
427
- #include <clipping_planes_fragment>
428
-
429
- #ifdef USE_DASH
430
-
431
- if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps
432
-
433
- if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX
434
-
435
- #endif
436
-
437
- float alpha = opacity;
438
-
439
- #ifdef WORLD_UNITS
440
-
441
- // Find the closest points on the view ray and the line segment
442
- vec3 rayEnd = normalize( worldPos.xyz ) * 1e5;
443
- vec3 lineDir = worldEnd - worldStart;
444
- vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );
445
-
446
- vec3 p1 = worldStart + lineDir * params.x;
447
- vec3 p2 = rayEnd * params.y;
448
- vec3 delta = p1 - p2;
449
- float len = length( delta );
450
- float norm = len / linewidth;
451
-
452
- #ifndef USE_DASH
453
-
454
- #ifdef USE_ALPHA_TO_COVERAGE
455
-
456
- float dnorm = fwidth( norm );
457
- alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );
458
-
459
- #else
460
-
461
- if ( norm > 0.5 ) {
462
-
463
- discard;
464
-
465
- }
466
-
467
- #endif
468
-
469
- #endif
470
-
471
- #else
472
-
473
- #ifdef USE_ALPHA_TO_COVERAGE
474
-
475
- // artifacts appear on some hardware if a derivative is taken within a conditional
476
- float a = vUv.x;
477
- float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
478
- float len2 = a * a + b * b;
479
- float dlen = fwidth( len2 );
480
-
481
- if ( abs( vUv.y ) > 1.0 ) {
482
-
483
- alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );
484
-
485
- }
486
-
487
- #else
488
-
489
- if ( abs( vUv.y ) > 1.0 ) {
490
-
491
- float a = vUv.x;
492
- float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
493
- float len2 = a * a + b * b;
494
-
495
- if ( len2 > 1.0 ) discard;
496
-
497
- }
498
-
499
- #endif
500
-
501
- #endif
502
-
503
- vec4 diffuseColor = vec4( diffuse, alpha );
504
- #ifdef USE_COLOR
505
- #ifdef USE_LINE_COLOR_ALPHA
506
- diffuseColor *= vLineColor;
507
- #else
508
- diffuseColor.rgb *= vLineColor;
509
- #endif
510
- #endif
511
-
512
- #include <logdepthbuf_fragment>
513
-
514
- gl_FragColor = diffuseColor;
515
-
516
- #include <tonemapping_fragment>
517
- #include <${parseInt(s.UZH.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}>
518
- #include <fog_fragment>
519
- #include <premultiplied_alpha_fragment>
520
-
521
- }
522
- `,clipping:!0}),this.isLineMaterial=!0,this.onBeforeCompile=function(){this.transparent?this.defines.USE_LINE_COLOR_ALPHA="1":delete this.defines.USE_LINE_COLOR_ALPHA},Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(e){this.uniforms.diffuse.value=e}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(e){!0===e?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(e){this.uniforms.linewidth.value=e}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(e){!!e!="USE_DASH"in this.defines&&(this.needsUpdate=!0),!0===e?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(e){this.uniforms.dashScale.value=e}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(e){this.uniforms.dashSize.value=e}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(e){this.uniforms.gapSize.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(e){!!e!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),!0===e?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(e)}}let h=n(9074).i>=125?"uv1":"uv2",m=new s.Ltg,g=new s.Pa4,y=new s.Pa4,v=new s.Ltg,b=new s.Ltg,A=new s.Ltg,w=new s.Pa4,E=new s.yGw,C=new s.Zzh,S=new s.Pa4,B=new s.ZzF,x=new s.aLr,_=new s.Ltg;function R(e,t,n){return _.set(0,0,-t,1).applyMatrix4(e.projectionMatrix),_.multiplyScalar(1/_.w),_.x=i/n.width,_.y=i/n.height,_.applyMatrix4(e.projectionMatrixInverse),_.multiplyScalar(1/_.w),Math.abs(Math.max(_.x,_.y))}class M extends s.Kj0{constructor(e=new f,t=new p({color:16777215*Math.random()})){super(e,t),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){let e=this.geometry,t=e.attributes.instanceStart,n=e.attributes.instanceEnd,r=new Float32Array(2*t.count);for(let e=0,i=0,o=t.count;e<o;e++,i+=2)g.fromBufferAttribute(t,e),y.fromBufferAttribute(n,e),r[i]=0===i?0:r[i-1],r[i+1]=r[i]+g.distanceTo(y);let i=new s.$TI(r,2,1);return e.setAttribute("instanceDistanceStart",new s.kB5(i,1,0)),e.setAttribute("instanceDistanceEnd",new s.kB5(i,1,1)),this}raycast(e,t){let n,o;let a=this.material.worldUnits,l=e.camera;null!==l||a||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');let u=void 0!==e.params.Line2&&e.params.Line2.threshold||0;r=e.ray;let c=this.matrixWorld,f=this.geometry,d=this.material;if(i=d.linewidth+u,null===f.boundingSphere&&f.computeBoundingSphere(),x.copy(f.boundingSphere).applyMatrix4(c),a)n=.5*i;else{let e=Math.max(l.near,x.distanceToPoint(r.origin));n=R(l,e,d.resolution)}if(x.radius+=n,!1!==r.intersectsSphere(x)){if(null===f.boundingBox&&f.computeBoundingBox(),B.copy(f.boundingBox).applyMatrix4(c),a)o=.5*i;else{let e=Math.max(l.near,B.distanceToPoint(r.origin));o=R(l,e,d.resolution)}B.expandByScalar(o),!1!==r.intersectsBox(B)&&(a?function(e,t){let n=e.matrixWorld,o=e.geometry,a=o.attributes.instanceStart,l=o.attributes.instanceEnd,u=Math.min(o.instanceCount,a.count);for(let o=0;o<u;o++){C.start.fromBufferAttribute(a,o),C.end.fromBufferAttribute(l,o),C.applyMatrix4(n);let u=new s.Pa4,c=new s.Pa4;r.distanceSqToSegment(C.start,C.end,c,u),c.distanceTo(u)<.5*i&&t.push({point:c,pointOnLine:u,distance:r.origin.distanceTo(c),object:e,face:null,faceIndex:o,uv:null,[h]:null})}}(this,t):function(e,t,n){let o=t.projectionMatrix,a=e.material.resolution,l=e.matrixWorld,u=e.geometry,c=u.attributes.instanceStart,f=u.attributes.instanceEnd,d=Math.min(u.instanceCount,c.count),p=-t.near;r.at(1,A),A.w=1,A.applyMatrix4(t.matrixWorldInverse),A.applyMatrix4(o),A.multiplyScalar(1/A.w),A.x*=a.x/2,A.y*=a.y/2,A.z=0,w.copy(A),E.multiplyMatrices(t.matrixWorldInverse,l);for(let t=0;t<d;t++){if(v.fromBufferAttribute(c,t),b.fromBufferAttribute(f,t),v.w=1,b.w=1,v.applyMatrix4(E),b.applyMatrix4(E),v.z>p&&b.z>p)continue;if(v.z>p){let e=v.z-b.z,t=(v.z-p)/e;v.lerp(b,t)}else if(b.z>p){let e=b.z-v.z,t=(b.z-p)/e;b.lerp(v,t)}v.applyMatrix4(o),b.applyMatrix4(o),v.multiplyScalar(1/v.w),b.multiplyScalar(1/b.w),v.x*=a.x/2,v.y*=a.y/2,b.x*=a.x/2,b.y*=a.y/2,C.start.copy(v),C.start.z=0,C.end.copy(b),C.end.z=0;let u=C.closestPointToPointParameter(w,!0);C.at(u,S);let d=s.M8C.lerp(v.z,b.z,u),m=d>=-1&&d<=1,g=w.distanceTo(S)<.5*i;if(m&&g){C.start.fromBufferAttribute(c,t),C.end.fromBufferAttribute(f,t),C.start.applyMatrix4(l),C.end.applyMatrix4(l);let i=new s.Pa4,o=new s.Pa4;r.distanceSqToSegment(C.start,C.end,o,i),n.push({point:o,pointOnLine:i,distance:r.origin.distanceTo(o),object:e,face:null,faceIndex:t,uv:null,[h]:null})}}}(this,l,t))}}onBeforeRender(e){let t=this.material.uniforms;t&&t.resolution&&(e.getViewport(m),this.material.uniforms.resolution.value.set(m.z,m.w))}}class O extends f{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(e){let t=e.length-3,n=new Float32Array(2*t);for(let r=0;r<t;r+=3)n[2*r]=e[r],n[2*r+1]=e[r+1],n[2*r+2]=e[r+2],n[2*r+3]=e[r+3],n[2*r+4]=e[r+4],n[2*r+5]=e[r+5];return super.setPositions(n),this}setColors(e,t=3){let n=e.length-t,r=new Float32Array(2*n);if(3===t)for(let i=0;i<n;i+=t)r[2*i]=e[i],r[2*i+1]=e[i+1],r[2*i+2]=e[i+2],r[2*i+3]=e[i+3],r[2*i+4]=e[i+4],r[2*i+5]=e[i+5];else for(let i=0;i<n;i+=t)r[2*i]=e[i],r[2*i+1]=e[i+1],r[2*i+2]=e[i+2],r[2*i+3]=e[i+3],r[2*i+4]=e[i+4],r[2*i+5]=e[i+5],r[2*i+6]=e[i+6],r[2*i+7]=e[i+7];return super.setColors(r,t),this}fromLine(e){let t=e.geometry;return this.setPositions(t.attributes.position.array),this}}class P extends M{constructor(e=new O,t=new p({color:16777215*Math.random()})){super(e,t),this.isLine2=!0,this.type="Line2"}}let T=a.forwardRef(function({points:e,color:t=16777215,vertexColors:n,linewidth:r,lineWidth:i,segments:u,dashed:c,...d},h){var m,g;let y=(0,l.D)(e=>e.size),v=a.useMemo(()=>u?new M:new P,[u]),[b]=a.useState(()=>new p),A=(null==n||null==(m=n[0])?void 0:m.length)===4?4:3,w=a.useMemo(()=>{let r=u?new f:new O,i=e.map(e=>{let t=Array.isArray(e);return e instanceof s.Pa4||e instanceof s.Ltg?[e.x,e.y,e.z]:e instanceof s.FM8?[e.x,e.y,0]:t&&3===e.length?[e[0],e[1],e[2]]:t&&2===e.length?[e[0],e[1],0]:e});if(r.setPositions(i.flat()),n){t=16777215;let e=n.map(e=>e instanceof s.Ilk?e.toArray():e);r.setColors(e.flat(),A)}return r},[e,u,n,A]);return a.useLayoutEffect(()=>{v.computeLineDistances()},[e,v]),a.useLayoutEffect(()=>{c?b.defines.USE_DASH="":delete b.defines.USE_DASH,b.needsUpdate=!0},[c,b]),a.useEffect(()=>()=>{w.dispose(),b.dispose()},[w]),a.createElement("primitive",(0,o.Z)({object:v,ref:h},d),a.createElement("primitive",{object:w,attach:"geometry"}),a.createElement("primitive",(0,o.Z)({object:b,attach:"material",color:t,vertexColors:!!n,resolution:[y.width,y.height],linewidth:null!==(g=null!=r?r:i)&&void 0!==g?g:1,dashed:c,transparent:4===A},d)))})},2521:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(1119),i=n(6010),o=n(2265),a=n(2079),s=Object.defineProperty,l=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t,n)=>(l(e,"symbol"!=typeof t?t+"":t,n),n);let c=new a.zHn,f=new a.JOQ,d=Math.cos(Math.PI/180*70),p=(e,t)=>(e%t+t)%t;class h extends a.pBf{constructor(e,t){super(),u(this,"object"),u(this,"domElement"),u(this,"enabled",!0),u(this,"target",new a.Pa4),u(this,"minDistance",0),u(this,"maxDistance",1/0),u(this,"minZoom",0),u(this,"maxZoom",1/0),u(this,"minPolarAngle",0),u(this,"maxPolarAngle",Math.PI),u(this,"minAzimuthAngle",-1/0),u(this,"maxAzimuthAngle",1/0),u(this,"enableDamping",!1),u(this,"dampingFactor",.05),u(this,"enableZoom",!0),u(this,"zoomSpeed",1),u(this,"enableRotate",!0),u(this,"rotateSpeed",1),u(this,"enablePan",!0),u(this,"panSpeed",1),u(this,"screenSpacePanning",!0),u(this,"keyPanSpeed",7),u(this,"zoomToCursor",!1),u(this,"autoRotate",!1),u(this,"autoRotateSpeed",2),u(this,"reverseOrbit",!1),u(this,"reverseHorizontalOrbit",!1),u(this,"reverseVerticalOrbit",!1),u(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),u(this,"mouseButtons",{LEFT:a.RsA.ROTATE,MIDDLE:a.RsA.DOLLY,RIGHT:a.RsA.PAN}),u(this,"touches",{ONE:a.QmN.ROTATE,TWO:a.QmN.DOLLY_PAN}),u(this,"target0"),u(this,"position0"),u(this,"zoom0"),u(this,"_domElementKeyEvents",null),u(this,"getPolarAngle"),u(this,"getAzimuthalAngle"),u(this,"setPolarAngle"),u(this,"setAzimuthalAngle"),u(this,"getDistance"),u(this,"getZoomScale"),u(this,"listenToKeyEvents"),u(this,"stopListenToKeyEvents"),u(this,"saveState"),u(this,"reset"),u(this,"update"),u(this,"connect"),u(this,"dispose"),u(this,"dollyIn"),u(this,"dollyOut"),u(this,"getScale"),u(this,"setScale"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>m.phi,this.getAzimuthalAngle=()=>m.theta,this.setPolarAngle=e=>{let t=p(e,2*Math.PI),r=m.phi;r<0&&(r+=2*Math.PI),t<0&&(t+=2*Math.PI);let i=Math.abs(t-r);2*Math.PI-i<i&&(t<r?t+=2*Math.PI:r+=2*Math.PI),g.phi=t-r,n.update()},this.setAzimuthalAngle=e=>{let t=p(e,2*Math.PI),r=m.theta;r<0&&(r+=2*Math.PI),t<0&&(t+=2*Math.PI);let i=Math.abs(t-r);2*Math.PI-i<i&&(t<r?t+=2*Math.PI:r+=2*Math.PI),g.theta=t-r,n.update()},this.getDistance=()=>n.object.position.distanceTo(n.target),this.listenToKeyEvents=e=>{e.addEventListener("keydown",ee),this._domElementKeyEvents=e},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",ee),this._domElementKeyEvents=null},this.saveState=()=>{n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=()=>{n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(r),n.update(),l=s.NONE},this.update=(()=>{let t=new a.Pa4,i=new a.Pa4(0,1,0),o=new a._fP().setFromUnitVectors(e.up,i),u=o.clone().invert(),p=new a.Pa4,b=new a._fP,A=2*Math.PI;return function(){let w=n.object.position;o.setFromUnitVectors(e.up,i),u.copy(o).invert(),t.copy(w).sub(n.target),t.applyQuaternion(o),m.setFromVector3(t),n.autoRotate&&l===s.NONE&&k(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(m.theta+=g.theta*n.dampingFactor,m.phi+=g.phi*n.dampingFactor):(m.theta+=g.theta,m.phi+=g.phi);let E=n.minAzimuthAngle,C=n.maxAzimuthAngle;isFinite(E)&&isFinite(C)&&(E<-Math.PI?E+=A:E>Math.PI&&(E-=A),C<-Math.PI?C+=A:C>Math.PI&&(C-=A),E<=C?m.theta=Math.max(E,Math.min(C,m.theta)):m.theta=m.theta>(E+C)/2?Math.max(E,m.theta):Math.min(C,m.theta)),m.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,m.phi)),m.makeSafe(),!0===n.enableDamping?n.target.addScaledVector(v,n.dampingFactor):n.target.add(v),n.zoomToCursor&&O||n.object.isOrthographicCamera?m.radius=G(m.radius):m.radius=G(m.radius*y),t.setFromSpherical(m),t.applyQuaternion(u),w.copy(n.target).add(t),n.object.matrixAutoUpdate||n.object.updateMatrix(),n.object.lookAt(n.target),!0===n.enableDamping?(g.theta*=1-n.dampingFactor,g.phi*=1-n.dampingFactor,v.multiplyScalar(1-n.dampingFactor)):(g.set(0,0,0),v.set(0,0,0));let S=!1;if(n.zoomToCursor&&O){let r=null;if(n.object instanceof a.cPb&&n.object.isPerspectiveCamera){let e=t.length();r=G(e*y);let i=e-r;n.object.position.addScaledVector(R,i),n.object.updateMatrixWorld()}else if(n.object.isOrthographicCamera){let e=new a.Pa4(M.x,M.y,0);e.unproject(n.object),n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/y)),n.object.updateProjectionMatrix(),S=!0;let i=new a.Pa4(M.x,M.y,0);i.unproject(n.object),n.object.position.sub(i).add(e),n.object.updateMatrixWorld(),r=t.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;null!==r&&(n.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(r).add(n.object.position):(c.origin.copy(n.object.position),c.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(c.direction))<d?e.lookAt(n.target):(f.setFromNormalAndCoplanarPoint(n.object.up,n.target),c.intersectPlane(f,n.target))))}else n.object instanceof a.iKG&&n.object.isOrthographicCamera&&(S=1!==y)&&(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/y)),n.object.updateProjectionMatrix());return y=1,O=!1,!!(S||p.distanceToSquared(n.object.position)>h||8*(1-b.dot(n.object.quaternion))>h)&&(n.dispatchEvent(r),p.copy(n.object.position),b.copy(n.object.quaternion),S=!1,!0)}})(),this.connect=e=>{n.domElement=e,n.domElement.style.touchAction="none",n.domElement.addEventListener("contextmenu",et),n.domElement.addEventListener("pointerdown",q),n.domElement.addEventListener("pointercancel",Z),n.domElement.addEventListener("wheel",$)},this.dispose=()=>{var e,t,r,i,o,a;n.domElement&&(n.domElement.style.touchAction="auto"),null==(e=n.domElement)||e.removeEventListener("contextmenu",et),null==(t=n.domElement)||t.removeEventListener("pointerdown",q),null==(r=n.domElement)||r.removeEventListener("pointercancel",Z),null==(i=n.domElement)||i.removeEventListener("wheel",$),null==(o=n.domElement)||o.ownerDocument.removeEventListener("pointermove",V),null==(a=n.domElement)||a.ownerDocument.removeEventListener("pointerup",Z),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",ee)};let n=this,r={type:"change"},i={type:"start"},o={type:"end"},s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},l=s.NONE,h=1e-6,m=new a.$V,g=new a.$V,y=1,v=new a.Pa4,b=new a.FM8,A=new a.FM8,w=new a.FM8,E=new a.FM8,C=new a.FM8,S=new a.FM8,B=new a.FM8,x=new a.FM8,_=new a.FM8,R=new a.Pa4,M=new a.FM8,O=!1,P=[],T={};function I(){return Math.pow(.95,n.zoomSpeed)}function k(e){n.reverseOrbit||n.reverseHorizontalOrbit?g.theta+=e:g.theta-=e}function D(e){n.reverseOrbit||n.reverseVerticalOrbit?g.phi+=e:g.phi-=e}let F=(()=>{let e=new a.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),v.add(e)}})(),L=(()=>{let e=new a.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),v.add(e)}})(),j=(()=>{let e=new a.Pa4;return function(t,r){let i=n.domElement;if(i&&n.object instanceof a.cPb&&n.object.isPerspectiveCamera){let o=n.object.position;e.copy(o).sub(n.target);let a=e.length();F(2*t*(a*=Math.tan(n.object.fov/2*Math.PI/180))/i.clientHeight,n.object.matrix),L(2*r*a/i.clientHeight,n.object.matrix)}else i&&n.object instanceof a.iKG&&n.object.isOrthographicCamera?(F(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),L(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}})();function N(e){n.object instanceof a.cPb&&n.object.isPerspectiveCamera||n.object instanceof a.iKG&&n.object.isOrthographicCamera?y=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function U(e){if(!n.zoomToCursor||!n.domElement)return;O=!0;let t=n.domElement.getBoundingClientRect(),r=e.clientX-t.left,i=e.clientY-t.top,o=t.width,a=t.height;M.x=r/o*2-1,M.y=-(i/a*2)+1,R.set(M.x,M.y,1).unproject(n.object).sub(n.object.position).normalize()}function G(e){return Math.max(n.minDistance,Math.min(n.maxDistance,e))}function H(e){b.set(e.clientX,e.clientY)}function z(e){E.set(e.clientX,e.clientY)}function J(){if(1==P.length)b.set(P[0].pageX,P[0].pageY);else{let e=.5*(P[0].pageX+P[1].pageX),t=.5*(P[0].pageY+P[1].pageY);b.set(e,t)}}function W(){if(1==P.length)E.set(P[0].pageX,P[0].pageY);else{let e=.5*(P[0].pageX+P[1].pageX),t=.5*(P[0].pageY+P[1].pageY);E.set(e,t)}}function K(){let e=P[0].pageX-P[1].pageX,t=P[0].pageY-P[1].pageY;B.set(0,Math.sqrt(e*e+t*t))}function Q(e){if(1==P.length)A.set(e.pageX,e.pageY);else{let t=er(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);A.set(n,r)}w.subVectors(A,b).multiplyScalar(n.rotateSpeed);let t=n.domElement;t&&(k(2*Math.PI*w.x/t.clientHeight),D(2*Math.PI*w.y/t.clientHeight)),b.copy(A)}function X(e){if(1==P.length)C.set(e.pageX,e.pageY);else{let t=er(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);C.set(n,r)}S.subVectors(C,E).multiplyScalar(n.panSpeed),j(S.x,S.y),E.copy(C)}function Y(e){var t;let r=er(e),i=e.pageX-r.x,o=e.pageY-r.y;x.set(0,Math.sqrt(i*i+o*o)),_.set(0,Math.pow(x.y/B.y,n.zoomSpeed)),t=_.y,N(y/t),B.copy(x)}function q(e){var t,r;!1!==n.enabled&&(0===P.length&&(null==(t=n.domElement)||t.ownerDocument.addEventListener("pointermove",V),null==(r=n.domElement)||r.ownerDocument.addEventListener("pointerup",Z)),P.push(e),"touch"===e.pointerType?function(e){switch(en(e),P.length){case 1:switch(n.touches.ONE){case a.QmN.ROTATE:if(!1===n.enableRotate)return;J(),l=s.TOUCH_ROTATE;break;case a.QmN.PAN:if(!1===n.enablePan)return;W(),l=s.TOUCH_PAN;break;default:l=s.NONE}break;case 2:switch(n.touches.TWO){case a.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&K(),n.enablePan&&W(),l=s.TOUCH_DOLLY_PAN;break;case a.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&K(),n.enableRotate&&J(),l=s.TOUCH_DOLLY_ROTATE;break;default:l=s.NONE}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(i)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case a.RsA.DOLLY:if(!1===n.enableZoom)return;U(e),B.set(e.clientX,e.clientY),l=s.DOLLY;break;case a.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;z(e),l=s.PAN}else{if(!1===n.enableRotate)return;H(e),l=s.ROTATE}break;case a.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;H(e),l=s.ROTATE}else{if(!1===n.enablePan)return;z(e),l=s.PAN}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(i)}(e))}function V(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(en(e),l){case s.TOUCH_ROTATE:if(!1===n.enableRotate)return;Q(e),n.update();break;case s.TOUCH_PAN:if(!1===n.enablePan)return;X(e),n.update();break;case s.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&Y(e),n.enablePan&&X(e),n.update();break;case s.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&Y(e),n.enableRotate&&Q(e),n.update();break;default:l=s.NONE}}(e):function(e){if(!1!==n.enabled)switch(l){case s.ROTATE:if(!1===n.enableRotate)return;!function(e){A.set(e.clientX,e.clientY),w.subVectors(A,b).multiplyScalar(n.rotateSpeed);let t=n.domElement;t&&(k(2*Math.PI*w.x/t.clientHeight),D(2*Math.PI*w.y/t.clientHeight)),b.copy(A),n.update()}(e);break;case s.DOLLY:var t,r;if(!1===n.enableZoom)return;(x.set(e.clientX,e.clientY),_.subVectors(x,B),_.y>0)?(t=I(),N(y/t)):_.y<0&&(r=I(),N(y*r)),B.copy(x),n.update();break;case s.PAN:if(!1===n.enablePan)return;C.set(e.clientX,e.clientY),S.subVectors(C,E).multiplyScalar(n.panSpeed),j(S.x,S.y),E.copy(C),n.update()}}(e))}function Z(e){var t,r,i;(function(e){delete T[e.pointerId];for(let t=0;t<P.length;t++)if(P[t].pointerId==e.pointerId){P.splice(t,1);return}})(e),0===P.length&&(null==(t=n.domElement)||t.releasePointerCapture(e.pointerId),null==(r=n.domElement)||r.ownerDocument.removeEventListener("pointermove",V),null==(i=n.domElement)||i.ownerDocument.removeEventListener("pointerup",Z)),n.dispatchEvent(o),l=s.NONE}function $(e){if(!1!==n.enabled&&!1!==n.enableZoom&&(l===s.NONE||l===s.ROTATE)){var t,r;e.preventDefault(),n.dispatchEvent(i),(U(e),e.deltaY<0)?(t=I(),N(y*t)):e.deltaY>0&&(r=I(),N(y/r)),n.update(),n.dispatchEvent(o)}}function ee(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:j(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:j(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:j(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:j(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function et(e){!1!==n.enabled&&e.preventDefault()}function en(e){let t=T[e.pointerId];void 0===t&&(t=new a.FM8,T[e.pointerId]=t),t.set(e.pageX,e.pageY)}function er(e){return T[(e.pointerId===P[0].pointerId?P[1]:P[0]).pointerId]}this.dollyIn=(e=I())=>{N(y*e),n.update()},this.dollyOut=(e=I())=>{N(y/e),n.update()},this.getScale=()=>y,this.setScale=e=>{N(e),n.update()},this.getZoomScale=()=>I(),void 0!==t&&this.connect(t),this.update()}}let m=o.forwardRef(({makeDefault:e,camera:t,regress:n,domElement:a,enableDamping:s=!0,keyEvents:l=!1,onChange:u,onStart:c,onEnd:f,...d},p)=>{let m=(0,i.D)(e=>e.invalidate),g=(0,i.D)(e=>e.camera),y=(0,i.D)(e=>e.gl),v=(0,i.D)(e=>e.events),b=(0,i.D)(e=>e.setEvents),A=(0,i.D)(e=>e.set),w=(0,i.D)(e=>e.get),E=(0,i.D)(e=>e.performance),C=t||g,S=a||v.connected||y.domElement,B=o.useMemo(()=>new h(C),[C]);return(0,i.F)(()=>{B.enabled&&B.update()},-1),o.useEffect(()=>(l&&B.connect(!0===l?S:l),B.connect(S),()=>void B.dispose()),[l,S,n,B,m]),o.useEffect(()=>{let e=e=>{m(),n&&E.regress(),u&&u(e)},t=e=>{c&&c(e)},r=e=>{f&&f(e)};return B.addEventListener("change",e),B.addEventListener("start",t),B.addEventListener("end",r),()=>{B.removeEventListener("start",t),B.removeEventListener("end",r),B.removeEventListener("change",e)}},[u,c,f,B,m,b]),o.useEffect(()=>{if(e){let e=w().controls;return A({controls:B}),()=>A({controls:e})}},[e,B]),o.createElement("primitive",(0,r.Z)({ref:p,object:B,enableDamping:s},d))})},4725:function(e,t,n){"use strict";n.d(t,{c:function(){return l}});var r=n(1119),i=n(2265),o=n(6010),a=n(2079);let s=e=>"function"==typeof e,l=i.forwardRef(({envMap:e,resolution:t=256,frames:n=1/0,makeDefault:l,children:u,...c},f)=>{let d=(0,o.D)(({set:e})=>e),p=(0,o.D)(({camera:e})=>e),h=(0,o.D)(({size:e})=>e),m=i.useRef(null);i.useImperativeHandle(f,()=>m.current,[]);let g=i.useRef(null),y=function(e,t,n){let r=(0,o.D)(e=>e.size),s=(0,o.D)(e=>e.viewport),l="number"==typeof e?e:r.width*s.dpr,u=r.height*s.dpr,{samples:c=0,depth:f,...d}=("number"==typeof e?void 0:e)||{},p=i.useMemo(()=>{let e=new a.dd2(l,u,{minFilter:a.wem,magFilter:a.wem,type:a.cLu,...d});return f&&(e.depthTexture=new a.$YQ(l,u,a.VzW)),e.samples=c,e},[]);return i.useLayoutEffect(()=>{p.setSize(l,u),c&&(p.samples=c)},[c,p,l,u]),i.useEffect(()=>()=>p.dispose(),[]),p}(t);i.useLayoutEffect(()=>{c.manual||(m.current.aspect=h.width/h.height)},[h,c]),i.useLayoutEffect(()=>{m.current.updateProjectionMatrix()});let v=0,b=null,A=s(u);return(0,o.F)(t=>{A&&(n===1/0||v<n)&&(g.current.visible=!1,t.gl.setRenderTarget(y),b=t.scene.background,e&&(t.scene.background=e),t.gl.render(t.scene,m.current),t.scene.background=b,t.gl.setRenderTarget(null),g.current.visible=!0,v++)}),i.useLayoutEffect(()=>{if(l)return d(()=>({camera:m.current})),()=>d(()=>({camera:p}))},[m,l,d]),i.createElement(i.Fragment,null,i.createElement("perspectiveCamera",(0,r.Z)({ref:m},c),!A&&u),i.createElement("group",{ref:g},A&&u(y.texture)))})},5476:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var r=n(1119),i=n(2265),o=n(2760),a=n(6010),s=n(1257);let l=i.forwardRef(({sdfGlyphSize:e=64,anchorX:t="center",anchorY:n="middle",font:l,fontSize:u=1,children:c,characters:f,onSync:d,...p},h)=>{let m=(0,a.D)(({invalidate:e})=>e),[g]=i.useState(()=>new o.xv),[y,v]=i.useMemo(()=>{let e=[],t="";return i.Children.forEach(c,n=>{"string"==typeof n||"number"==typeof n?t+=n:e.push(n)}),[e,t]},[c]);return(0,s.Rq)(()=>new Promise(e=>(0,o.C5)({font:l,characters:f},e)),["troika-text",l,f]),i.useLayoutEffect(()=>void g.sync(()=>{m(),d&&d(g)})),i.useEffect(()=>()=>g.dispose(),[g]),i.createElement("primitive",(0,r.Z)({object:g,ref:h,font:l,text:v,anchorX:t,anchorY:n,fontSize:u,sdfGlyphSize:e},p),y)})},8345:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(2079);function i(e,t,n,i){let o=class extends r.jyz{constructor(o={}){let a=Object.entries(e);super({uniforms:a.reduce((e,[t,n])=>{let i=r.rDY.clone({[t]:{value:n}});return{...e,...i}},{}),vertexShader:t,fragmentShader:n}),this.key="",a.forEach(([e])=>Object.defineProperty(this,e,{get:()=>this.uniforms[e].value,set:t=>this.uniforms[e].value=t})),Object.assign(this,o),i&&i(this)}};return o.key=r.M8C.generateUUID(),o}},1:function(e,t,n){"use strict";n.d(t,{FM:function(){return s},aL:function(){return a}});var r=n(1119),i=n(2265);function o(e,t){let n=e+"Geometry";return i.forwardRef(({args:e,children:o,...a},s)=>{let l=i.useRef(null);return i.useImperativeHandle(s,()=>l.current),i.useLayoutEffect(()=>void(null==t||t(l.current))),i.createElement("mesh",(0,r.Z)({ref:l},a),i.createElement(n,{attach:"geometry",args:e}),o)})}let a=o("sphere"),s=o("ring")},8328:function(e,t,n){"use strict";let r,i;n.d(t,{V:function(){return b}});var o=n(1119),a=n(2265),s=n(4040),l=n(2079),u=n(6010);let c=new l.Pa4,f=new l.Pa4,d=new l.Pa4,p=new l.FM8;function h(e,t,n){let r=c.setFromMatrixPosition(e.matrixWorld);r.project(t);let i=n.width/2,o=n.height/2;return[r.x*i+i,-(r.y*o)+o]}let m=e=>1e-10>Math.abs(e)?0:e;function g(e,t,n=""){let r="matrix3d(";for(let n=0;16!==n;n++)r+=m(t[n]*e.elements[n])+(15!==n?",":")");return n+r}let y=(r=[1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1],e=>g(e,r)),v=(i=e=>[1/e,1/e,1/e,1,-1/e,-1/e,-1/e,-1,1/e,1/e,1/e,1,1,1,1,1],(e,t)=>g(e,i(t),"translate(-50%,-50%)")),b=a.forwardRef(({children:e,eps:t=.001,style:n,className:r,prepend:i,center:g,fullscreen:b,portal:A,distanceFactor:w,sprite:E=!1,transform:C=!1,occlude:S,onOcclude:B,castShadow:x,receiveShadow:_,material:R,geometry:M,zIndexRange:O=[16777271,0],calculatePosition:P=h,as:T="div",wrapperClass:I,pointerEvents:k="auto",...D},F)=>{let{gl:L,camera:j,scene:N,size:U,raycaster:G,events:H,viewport:z}=(0,u.D)(),[J]=a.useState(()=>document.createElement(T)),W=a.useRef(),K=a.useRef(null),Q=a.useRef(0),X=a.useRef([0,0]),Y=a.useRef(null),q=a.useRef(null),V=(null==A?void 0:A.current)||H.connected||L.domElement.parentNode,Z=a.useRef(null),$=a.useRef(!1),ee=a.useMemo(()=>{var e;return S&&"blending"!==S||Array.isArray(S)&&S.length&&(e=S[0])&&"object"==typeof e&&"current"in e},[S]);a.useLayoutEffect(()=>{let e=L.domElement;S&&"blending"===S?(e.style.zIndex=`${Math.floor(O[0]/2)}`,e.style.position="absolute",e.style.pointerEvents="none"):(e.style.zIndex=null,e.style.position=null,e.style.pointerEvents=null)},[S]),a.useLayoutEffect(()=>{if(K.current){let e=W.current=s.createRoot(J);if(N.updateMatrixWorld(),C)J.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{let e=P(K.current,j,U);J.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${e[0]}px,${e[1]}px,0);transform-origin:0 0;`}return V&&(i?V.prepend(J):V.appendChild(J)),()=>{V&&V.removeChild(J),e.unmount()}}},[V,C]),a.useLayoutEffect(()=>{I&&(J.className=I)},[I]);let et=a.useMemo(()=>C?{position:"absolute",top:0,left:0,width:U.width,height:U.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:g?"translate3d(-50%,-50%,0)":"none",...b&&{top:-U.height/2,left:-U.width/2,width:U.width,height:U.height},...n},[n,g,b,U,C]),en=a.useMemo(()=>({position:"absolute",pointerEvents:k}),[k]);a.useLayoutEffect(()=>{var t,i;$.current=!1,C?null==(t=W.current)||t.render(a.createElement("div",{ref:Y,style:et},a.createElement("div",{ref:q,style:en},a.createElement("div",{ref:F,className:r,style:n,children:e})))):null==(i=W.current)||i.render(a.createElement("div",{ref:F,style:et,className:r,children:e}))});let er=a.useRef(!0);(0,u.F)(e=>{if(K.current){j.updateMatrixWorld(),K.current.updateWorldMatrix(!0,!1);let e=C?X.current:P(K.current,j,U);if(C||Math.abs(Q.current-j.zoom)>t||Math.abs(X.current[0]-e[0])>t||Math.abs(X.current[1]-e[1])>t){let t=function(e,t){let n=c.setFromMatrixPosition(e.matrixWorld),r=f.setFromMatrixPosition(t.matrixWorld),i=n.sub(r),o=t.getWorldDirection(d);return i.angleTo(o)>Math.PI/2}(K.current,j),n=!1;ee&&(Array.isArray(S)?n=S.map(e=>e.current):"blending"!==S&&(n=[N]));let r=er.current;if(n){let e=function(e,t,n,r){let i=c.setFromMatrixPosition(e.matrixWorld),o=i.clone();o.project(t),p.set(o.x,o.y),n.setFromCamera(p,t);let a=n.intersectObjects(r,!0);if(a.length){let e=a[0].distance;return i.distanceTo(n.ray.origin)<e}return!0}(K.current,j,G,n);er.current=e&&!t}else er.current=!t;r!==er.current&&(B?B(!er.current):J.style.display=er.current?"block":"none");let i=Math.floor(O[0]/2),o=S?ee?[O[0],i]:[i-1,0]:O;if(J.style.zIndex=`${function(e,t,n){if(t instanceof l.cPb||t instanceof l.iKG){let r=c.setFromMatrixPosition(e.matrixWorld),i=f.setFromMatrixPosition(t.matrixWorld),o=r.distanceTo(i),a=(n[1]-n[0])/(t.far-t.near),s=n[1]-a*t.far;return Math.round(a*o+s)}}(K.current,j,o)}`,C){let[e,t]=[U.width/2,U.height/2],n=j.projectionMatrix.elements[5]*t,{isOrthographicCamera:r,top:i,left:o,bottom:a,right:s}=j,l=y(j.matrixWorldInverse),u=r?`scale(${n})translate(${m(-(s+o)/2)}px,${m((i+a)/2)}px)`:`translateZ(${n}px)`,c=K.current.matrixWorld;E&&((c=j.matrixWorldInverse.clone().transpose().copyPosition(c).scale(K.current.scale)).elements[3]=c.elements[7]=c.elements[11]=0,c.elements[15]=1),J.style.width=U.width+"px",J.style.height=U.height+"px",J.style.perspective=r?"":`${n}px`,Y.current&&q.current&&(Y.current.style.transform=`${u}${l}translate(${e}px,${t}px)`,q.current.style.transform=v(c,1/((w||10)/400)))}else{let t=void 0===w?1:function(e,t){if(t instanceof l.iKG)return t.zoom;if(!(t instanceof l.cPb))return 1;{let n=c.setFromMatrixPosition(e.matrixWorld),r=f.setFromMatrixPosition(t.matrixWorld);return 1/(2*Math.tan(t.fov*Math.PI/180/2)*n.distanceTo(r))}}(K.current,j)*w;J.style.transform=`translate3d(${e[0]}px,${e[1]}px,0) scale(${t})`}X.current=e,Q.current=j.zoom}}if(!ee&&Z.current&&!$.current){if(C){if(Y.current){let e=Y.current.children[0];if(null!=e&&e.clientWidth&&null!=e&&e.clientHeight){let{isOrthographicCamera:t}=j;if(t||M)D.scale&&(Array.isArray(D.scale)?D.scale instanceof l.Pa4?Z.current.scale.copy(D.scale.clone().divideScalar(1)):Z.current.scale.set(1/D.scale[0],1/D.scale[1],1/D.scale[2]):Z.current.scale.setScalar(1/D.scale));else{let t=(w||10)/400,n=e.clientWidth*t,r=e.clientHeight*t;Z.current.scale.set(n,r,1)}$.current=!0}}}else{let t=J.children[0];if(null!=t&&t.clientWidth&&null!=t&&t.clientHeight){let e=1/z.factor,n=t.clientWidth*e,r=t.clientHeight*e;Z.current.scale.set(n,r,1),$.current=!0}Z.current.lookAt(e.camera.position)}}});let ei=a.useMemo(()=>({vertexShader:C?void 0:`
523
- /*
524
- This shader is from the THREE's SpriteMaterial.
525
- We need to turn the backing plane into a Sprite
526
- (make it always face the camera) if "transfrom"
527
- is false.
528
- */
529
- #include <common>
530
-
531
- void main() {
532
- vec2 center = vec2(0., 1.);
533
- float rotation = 0.0;
534
-
535
- // This is somewhat arbitrary, but it seems to work well
536
- // Need to figure out how to derive this dynamically if it even matters
537
- float size = 0.03;
538
-
539
- vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
540
- vec2 scale;
541
- scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
542
- scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
543
-
544
- bool isPerspective = isPerspectiveMatrix( projectionMatrix );
545
- if ( isPerspective ) scale *= - mvPosition.z;
546
-
547
- vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale * size;
548
- vec2 rotatedPosition;
549
- rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
550
- rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
551
- mvPosition.xy += rotatedPosition;
552
-
553
- gl_Position = projectionMatrix * mvPosition;
554
- }
555
- `,fragmentShader:`
556
- void main() {
557
- gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
558
- }
559
- `}),[C]);return a.createElement("group",(0,o.Z)({},D,{ref:K}),S&&!ee&&a.createElement("mesh",{castShadow:x,receiveShadow:_,ref:Z},M||a.createElement("planeGeometry",null),R||a.createElement("shaderMaterial",{side:l.ehD,vertexShader:ei.vertexShader,fragmentShader:ei.fragmentShader})))})},6010:function(e,t,n){"use strict";let r,i,o;n.d(t,{B:function(){return R},D:function(){return es},E:function(){return M},F:function(){return el},H:function(){return ef},a:function(){return x},b:function(){return eb},c:function(){return eB},d:function(){return ew},e:function(){return w},h:function(){return eE},i:function(){return B},k:function(){return eg},u:function(){return _}});var a,s,l=n(2079),u=n(1448),c=n(2265),f=n(4988);let d="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?c.useEffect:c.useLayoutEffect;function p(e){let t="function"==typeof e?function(e){let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(i!==t){let e=t;t=r?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o=(e,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){let n=r(t);if(!o(a,n)){let t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)},a={setState:r,getState:i,subscribe:(e,t,r)=>t||r?o(e,t,r):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,a),a}(e):e,n=(e=t.getState,n=Object.is)=>{let r;let[,i]=(0,c.useReducer)(e=>e+1,0),o=t.getState(),a=(0,c.useRef)(o),s=(0,c.useRef)(e),l=(0,c.useRef)(n),u=(0,c.useRef)(!1),f=(0,c.useRef)();void 0===f.current&&(f.current=e(o));let p=!1;(a.current!==o||s.current!==e||l.current!==n||u.current)&&(r=e(o),p=!n(f.current,r)),d(()=>{p&&(f.current=r),a.current=o,s.current=e,l.current=n,u.current=!1});let h=(0,c.useRef)(o);d(()=>{let e=()=>{try{let e=t.getState(),n=s.current(e);l.current(f.current,n)||(a.current=e,f.current=n,i())}catch(e){u.current=!0,i()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n},[]);let m=p?r:f.current;return(0,c.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");let e=[n,t];return{next(){let t=e.length<=0;return{value:e.shift(),done:t}}}},n}var h=n(1257),m=n(7437),g=n(5897),y=n.n(g),v=n(6697),b=n(257);let A={},w=e=>void Object.assign(A,e),E=e=>"colorSpace"in e||"outputColorSpace"in e,C=()=>{var e;return null!=(e=A.ColorManagement)?e:null},S=e=>e&&e.isOrthographicCamera,B=e=>e&&e.hasOwnProperty("current"),x="undefined"!=typeof window&&(null!=(a=window.document)&&a.createElement||(null==(s=window.navigator)?void 0:s.product)==="ReactNative")?c.useLayoutEffect:c.useEffect;function _(e){let t=c.useRef(e);return x(()=>void(t.current=e),[e]),t}function R({set:e}){return x(()=>(e(new Promise(()=>null)),()=>e(!1)),[e]),null}class M extends c.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}M.getDerivedStateFromError=()=>({error:!0});let O="__default",P=new Map,T=e=>e&&!!e.memoized&&!!e.changes;function I(e){var t;let n="undefined"!=typeof window?null!=(t=window.devicePixelRatio)?t:2:1;return Array.isArray(e)?Math.min(Math.max(e[0],n),e[1]):e}let k=e=>{var t;return null==(t=e.__r3f)?void 0:t.root.getState()};function D(e){let t=e.__r3f.root;for(;t.getState().previousRoot;)t=t.getState().previousRoot;return t}let F={obj:e=>e===Object(e)&&!F.arr(e)&&"function"!=typeof e,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,boo:e=>"boolean"==typeof e,und:e=>void 0===e,arr:e=>Array.isArray(e),equ(e,t,{arrays:n="shallow",objects:r="reference",strict:i=!0}={}){let o;if(typeof e!=typeof t||!!e!=!!t)return!1;if(F.str(e)||F.num(e)||F.boo(e))return e===t;let a=F.obj(e);if(a&&"reference"===r)return e===t;let s=F.arr(e);if(s&&"reference"===n)return e===t;if((s||a)&&e===t)return!0;for(o in e)if(!(o in t))return!1;if(a&&"shallow"===n&&"shallow"===r){for(o in i?t:e)if(!F.equ(e[o],t[o],{strict:i,objects:"reference"}))return!1}else for(o in i?t:e)if(e[o]!==t[o])return!1;if(F.und(o)){if(s&&0===e.length&&0===t.length||a&&0===Object.keys(e).length&&0===Object.keys(t).length)return!0;if(e!==t)return!1}return!0}};function L(e,t){return e.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...t},e}function j(e,t){let n=e;if(!t.includes("-"))return{target:n,key:t};{let r=t.split("-"),i=r.pop();return{target:n=r.reduce((e,t)=>e[t],e),key:i}}}let N=/-\d+$/;function U(e,t,n){if(F.str(n)){if(N.test(n)){let{target:t,key:r}=j(e,n.replace(N,""));Array.isArray(t[r])||(t[r]=[])}let{target:r,key:i}=j(e,n);t.__r3f.previousAttach=r[i],r[i]=t}else t.__r3f.previousAttach=n(e,t)}function G(e,t,n){var r,i;if(F.str(n)){let{target:r,key:i}=j(e,n),o=t.__r3f.previousAttach;void 0===o?delete r[i]:r[i]=o}else null==(r=t.__r3f)||null==r.previousAttach||r.previousAttach(e,t);null==(i=t.__r3f)||delete i.previousAttach}function H(e,{children:t,key:n,ref:r,...i},{children:o,key:a,ref:s,...l}={},u=!1){let c=e.__r3f,f=Object.entries(i),d=[];if(u){let e=Object.keys(l);for(let t=0;t<e.length;t++)i.hasOwnProperty(e[t])||f.unshift([e[t],O+"remove"])}f.forEach(([t,n])=>{var r;if(null!=(r=e.__r3f)&&r.primitive&&"object"===t||F.equ(n,l[t]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(t))return d.push([t,n,!0,[]]);let o=[];for(let e in t.includes("-")&&(o=t.split("-")),d.push([t,n,!1,o]),i){let n=i[e];e.startsWith(`${t}-`)&&d.push([e,n,!1,e.split("-")])}});let p={...i};return null!=c&&c.memoizedProps&&null!=c&&c.memoizedProps.args&&(p.args=c.memoizedProps.args),null!=c&&c.memoizedProps&&null!=c&&c.memoizedProps.attach&&(p.attach=c.memoizedProps.attach),{memoized:p,changes:d}}let z=void 0!==b&&!1;function J(e,t){var n;let r=e.__r3f,i=null==r?void 0:r.root,o=null==i?void 0:null==i.getState?void 0:i.getState(),{memoized:a,changes:s}=T(t)?t:H(e,t),u=null==r?void 0:r.eventCount;e.__r3f&&(e.__r3f.memoizedProps=a);for(let t=0;t<s.length;t++){let[n,i,a,u]=s[t];if(E(e)){let e="srgb",t="srgb-linear";"encoding"===n?(n="colorSpace",i=3001===i?e:t):"outputEncoding"===n&&(n="outputColorSpace",i=3001===i?e:t)}let c=e,f=c[n];if(u.length&&!((f=u.reduce((e,t)=>e[t],e))&&f.set)){let[t,...r]=u.reverse();c=r.reverse().reduce((e,t)=>e[t],e),n=t}if(i===O+"remove"){if(c.constructor){let e=P.get(c.constructor);e||(e=new c.constructor,P.set(c.constructor,e)),i=e[n]}else i=0}if(a&&r)i?r.handlers[n]=i:delete r.handlers[n],r.eventCount=Object.keys(r.handlers).length;else if(f&&f.set&&(f.copy||f instanceof l.S9g)){if(Array.isArray(i))f.fromArray?f.fromArray(i):f.set(...i);else if(f.copy&&i&&i.constructor&&(z?f.constructor.name===i.constructor.name:f.constructor===i.constructor))f.copy(i);else if(void 0!==i){let e=f instanceof l.Ilk;!e&&f.setScalar?f.setScalar(i):f instanceof l.S9g&&i instanceof l.S9g?f.mask=i.mask:f.set(i),!C()&&o&&!o.linear&&e&&f.convertSRGBToLinear()}}else if(c[n]=i,c[n]instanceof l.xEZ&&c[n].format===l.wk1&&c[n].type===l.ywz&&o){let e=c[n];E(e)&&E(o.gl)?e.colorSpace=o.gl.outputColorSpace:e.encoding=o.gl.outputEncoding}W(e)}if(r&&r.parent&&e.raycast&&u!==r.eventCount){let t=D(e).getState().internal,n=t.interaction.indexOf(e);n>-1&&t.interaction.splice(n,1),r.eventCount&&t.interaction.push(e)}return!(1===s.length&&"onUpdate"===s[0][0])&&s.length&&null!=(n=e.__r3f)&&n.parent&&K(e),e}function W(e){var t,n;let r=null==(t=e.__r3f)?void 0:null==(n=t.root)?void 0:null==n.getState?void 0:n.getState();r&&0===r.internal.frames&&r.invalidate()}function K(e){null==e.onUpdate||e.onUpdate(e)}function Q(e,t){e.manual||(S(e)?(e.left=-(t.width/2),e.right=t.width/2,e.top=t.height/2,e.bottom=-(t.height/2)):e.aspect=t.width/t.height,e.updateProjectionMatrix(),e.updateMatrixWorld())}function X(e){return(e.eventObject||e.object).uuid+"/"+e.index+e.instanceId}function Y(e,t,n,r){let i=n.get(t);i&&(n.delete(t),0===n.size&&(e.delete(r),i.target.releasePointerCapture(r)))}let q=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],V=e=>!!(null!=e&&e.render),Z=c.createContext(null),$=(e,t)=>{let n=p((n,r)=>{let i;let o=new l.Pa4,a=new l.Pa4,s=new l.Pa4;function u(e=r().camera,t=a,n=r().size){let{width:i,height:u,top:c,left:f}=n,d=i/u;t instanceof l.Pa4?s.copy(t):s.set(...t);let p=e.getWorldPosition(o).distanceTo(s);if(S(e))return{width:i/e.zoom,height:u/e.zoom,top:c,left:f,factor:1,distance:p,aspect:d};{let t=2*Math.tan(e.fov*Math.PI/180/2)*p,n=i/u*t;return{width:n,height:t,top:c,left:f,factor:i/n,distance:p,aspect:d}}}let f=e=>n(t=>({performance:{...t.performance,current:e}})),d=new l.FM8;return{set:n,get:r,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(t=1)=>e(r(),t),advance:(e,n)=>t(e,n,r()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new l.SUY,pointer:d,mouse:d,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{let e=r();i&&clearTimeout(i),e.performance.current!==e.performance.min&&f(e.performance.min),i=setTimeout(()=>f(r().performance.max),e.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:u},setEvents:e=>n(t=>({...t,events:{...t.events,...e}})),setSize:(e,t,i,o,s)=>{let l=r().camera,c={width:e,height:t,top:o||0,left:s||0,updateStyle:i};n(e=>({size:c,viewport:{...e.viewport,...u(l,a,c)}}))},setDpr:e=>n(t=>{let n=I(e);return{viewport:{...t.viewport,dpr:n,initialDpr:t.viewport.initialDpr||n}}}),setFrameloop:(e="always")=>{let t=r().clock;t.stop(),t.elapsedTime=0,"never"!==e&&(t.start(),t.elapsedTime=0),n(()=>({frameloop:e}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:c.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(e,t,n)=>{let i=r().internal;return i.priority=i.priority+(t>0?1:0),i.subscribers.push({ref:e,priority:t,store:n}),i.subscribers=i.subscribers.sort((e,t)=>e.priority-t.priority),()=>{let n=r().internal;null!=n&&n.subscribers&&(n.priority=n.priority-(t>0?1:0),n.subscribers=n.subscribers.filter(t=>t.ref!==e))}}}}}),r=n.getState(),i=r.size,o=r.viewport.dpr,a=r.camera;return n.subscribe(()=>{let{camera:e,size:t,viewport:r,gl:s,set:l}=n.getState();if(t.width!==i.width||t.height!==i.height||r.dpr!==o){var u;i=t,o=r.dpr,Q(e,t),s.setPixelRatio(r.dpr);let n=null!=(u=t.updateStyle)?u:"undefined"!=typeof HTMLCanvasElement&&s.domElement instanceof HTMLCanvasElement;s.setSize(t.width,t.height,n)}e!==a&&(a=e,l(t=>({viewport:{...t.viewport,...t.viewport.getCurrentViewport(e)}})))}),n.subscribe(t=>e(t)),n},ee=new Set,et=new Set,en=new Set;function er(e,t){if(e.size)for(let{callback:n}of e.values())n(t)}function ei(e,t){switch(e){case"before":return er(ee,t);case"after":return er(et,t);case"tail":return er(en,t)}}function eo(e,t,n){let a=t.clock.getDelta();for("never"===t.frameloop&&"number"==typeof e&&(a=e-t.clock.elapsedTime,t.clock.oldTime=t.clock.elapsedTime,t.clock.elapsedTime=e),i=t.internal.subscribers,r=0;r<i.length;r++)(o=i[r]).ref.current(o.store.getState(),a,n);return!t.internal.priority&&t.gl.render&&t.gl.render(t.scene,t.camera),t.internal.frames=Math.max(0,t.internal.frames-1),"always"===t.frameloop?1:t.internal.frames}function ea(){let e=c.useContext(Z);if(!e)throw Error("R3F: Hooks can only be used within the Canvas component!");return e}function es(e=e=>e,t){return ea()(e,t)}function el(e,t=0){let n=ea(),r=n.getState().internal.subscribe,i=_(e);return x(()=>r(i,t,n),[t,r,n]),null}let eu=new WeakMap;function ec(e,t){return function(n,...r){let i=eu.get(n);return i||(i=new n,eu.set(n,i)),e&&e(i),Promise.all(r.map(e=>new Promise((n,r)=>i.load(e,e=>{e.scene&&Object.assign(e,function(e){let t={nodes:{},materials:{}};return e&&e.traverse(e=>{e.name&&(t.nodes[e.name]=e),e.material&&!t.materials[e.material.name]&&(t.materials[e.material.name]=e.material)}),t}(e.scene)),n(e)},t,t=>r(Error(`Could not load ${e}: ${null==t?void 0:t.message}`))))))}}function ef(e,t,n,r){let i=Array.isArray(t)?t:[t],o=(0,h.Rq)(ec(n,r),[e,...i],{equal:F.equ});return Array.isArray(t)?o:o[0]}ef.preload=function(e,t,n){let r=Array.isArray(t)?t:[t];return(0,h.MA)(ec(n),[e,...r])},ef.clear=function(e,t){let n=Array.isArray(t)?t:[t];return(0,h.ZH)([e,...n])};let ed=new Map,{invalidate:ep,advance:eh}=function(e){let t,n,r,i=!1,o=!1;function a(s){for(let u of(n=requestAnimationFrame(a),i=!0,t=0,ei("before",s),o=!0,e.values())){var l;(r=u.store.getState()).internal.active&&("always"===r.frameloop||r.internal.frames>0)&&!(null!=(l=r.gl.xr)&&l.isPresenting)&&(t+=eo(s,r))}if(o=!1,ei("after",s),0===t)return ei("tail",s),i=!1,cancelAnimationFrame(n)}return{loop:a,invalidate:function t(n,r=1){var s;if(!n)return e.forEach(e=>t(e.store.getState(),r));null!=(s=n.gl.xr)&&s.isPresenting||!n.internal.active||"never"===n.frameloop||(r>1?n.internal.frames=Math.min(60,n.internal.frames+r):o?n.internal.frames=2:n.internal.frames=1,i||(i=!0,requestAnimationFrame(a)))},advance:function(t,n=!0,r,i){if(n&&ei("before",t),r)eo(t,r,i);else for(let n of e.values())eo(t,n.store.getState());n&&ei("after",t)}}}(ed),{reconciler:em,applyProps:eg}=function(e,t){function n(e,{args:t=[],attach:n,...r},i){let o,a=`${e[0].toUpperCase()}${e.slice(1)}`;if("primitive"===e){if(void 0===r.object)throw Error("R3F: Primitives without 'object' are invalid!");o=L(r.object,{type:e,root:i,attach:n,primitive:!0})}else{let r=A[a];if(!r)throw Error(`R3F: ${a} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(t))throw Error("R3F: The args prop must be an array!");o=L(new r(...t),{type:e,root:i,attach:n,memoizedProps:{args:t}})}return void 0===o.__r3f.attach&&(o instanceof l.u9r?o.__r3f.attach="geometry":o instanceof l.F5T&&(o.__r3f.attach="material")),"inject"!==a&&J(o,r),o}function r(e,t){let n=!1;if(t){var r,i;null!=(r=t.__r3f)&&r.attach?U(e,t,t.__r3f.attach):t.isObject3D&&e.isObject3D&&(e.add(t),n=!0),n||null==(i=e.__r3f)||i.objects.push(t),t.__r3f||L(t,{}),t.__r3f.parent=e,K(t),W(t)}}function i(e,t,n){let r=!1;if(t){var i,o;if(null!=(i=t.__r3f)&&i.attach)U(e,t,t.__r3f.attach);else if(t.isObject3D&&e.isObject3D){t.parent=e,t.dispatchEvent({type:"added"}),e.dispatchEvent({type:"childadded",child:t});let i=e.children.filter(e=>e!==t),o=i.indexOf(n);e.children=[...i.slice(0,o),t,...i.slice(o)],r=!0}r||null==(o=e.__r3f)||o.objects.push(t),t.__r3f||L(t,{}),t.__r3f.parent=e,K(t),W(t)}}function o(e,t,n=!1){e&&[...e].forEach(e=>a(t,e,n))}function a(e,t,n){if(t){var r,i,a,s,l;t.__r3f&&(t.__r3f.parent=null),null!=(r=e.__r3f)&&r.objects&&(e.__r3f.objects=e.__r3f.objects.filter(e=>e!==t)),null!=(i=t.__r3f)&&i.attach?G(e,t,t.__r3f.attach):t.isObject3D&&e.isObject3D&&(e.remove(t),null!=(s=t.__r3f)&&s.root&&function(e,t){let{internal:n}=e.getState();n.interaction=n.interaction.filter(e=>e!==t),n.initialHits=n.initialHits.filter(e=>e!==t),n.hovered.forEach((e,r)=>{(e.eventObject===t||e.object===t)&&n.hovered.delete(r)}),n.capturedMap.forEach((e,r)=>{Y(n.capturedMap,t,e,r)})}(D(t),t));let u=null==(a=t.__r3f)?void 0:a.primitive,c=!u&&(void 0===n?null!==t.dispose:n);if(u||(o(null==(l=t.__r3f)?void 0:l.objects,t,c),o(t.children,t,c)),delete t.__r3f,c&&t.dispose&&"Scene"!==t.type){let e=()=>{try{t.dispose()}catch(e){}};"undefined"==typeof IS_REACT_ACT_ENVIRONMENT?(0,v.unstable_scheduleCallback)(v.unstable_IdlePriority,e):e()}W(e)}}let s=()=>{};return{reconciler:y()({createInstance:n,removeChild:a,appendChild:r,appendInitialChild:r,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(e,t)=>{if(!t)return;let n=e.getState().scene;n.__r3f&&(n.__r3f.root=e,r(n,t))},removeChildFromContainer:(e,t)=>{t&&a(e.getState().scene,t)},insertInContainerBefore:(e,t,n)=>{if(!t||!n)return;let r=e.getState().scene;r.__r3f&&i(r,t,n)},getRootHostContext:()=>null,getChildHostContext:e=>e,finalizeInitialChildren(e){var t;return!!(null!=(t=null==e?void 0:e.__r3f)?t:{}).handlers},prepareUpdate(e,t,n,r){var i;if((null!=(i=null==e?void 0:e.__r3f)?i:{}).primitive&&r.object&&r.object!==e)return[!0];{let{args:t=[],children:i,...o}=r,{args:a=[],children:s,...l}=n;if(!Array.isArray(t))throw Error("R3F: the args prop must be an array!");if(t.some((e,t)=>e!==a[t]))return[!0];let u=H(e,o,l,!0);return u.changes.length?[!1,u]:null}},commitUpdate(e,[t,i],o,s,l,u){t?function(e,t,i,o){var s;let l=null==(s=e.__r3f)?void 0:s.parent;if(!l)return;let u=n(t,i,e.__r3f.root);if(e.children){for(let t of e.children)t.__r3f&&r(u,t);e.children=e.children.filter(e=>!e.__r3f)}e.__r3f.objects.forEach(e=>r(u,e)),e.__r3f.objects=[],e.__r3f.autoRemovedBeforeAppend||a(l,e),u.parent&&(u.__r3f.autoRemovedBeforeAppend=!0),r(l,u),u.raycast&&u.__r3f.eventCount&&D(u).getState().internal.interaction.push(u),[o,o.alternate].forEach(e=>{null!==e&&(e.stateNode=u,e.ref&&("function"==typeof e.ref?e.ref(u):e.ref.current=u))})}(e,o,l,u):J(e,i)},commitMount(e,t,n,r){var i;let o=null!=(i=e.__r3f)?i:{};e.raycast&&o.handlers&&o.eventCount&&D(e).getState().internal.interaction.push(e)},getPublicInstance:e=>e,prepareForCommit:()=>null,preparePortalMount:e=>L(e.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(e){var t;let{attach:n,parent:r}=null!=(t=e.__r3f)?t:{};n&&r&&G(r,e,n),e.isObject3D&&(e.visible=!1),W(e)},unhideInstance(e,t){var n;let{attach:r,parent:i}=null!=(n=e.__r3f)?n:{};r&&i&&U(i,e,r),(e.isObject3D&&null==t.visible||t.visible)&&(e.visible=!0),W(e)},createTextInstance:s,hideTextInstance:s,unhideTextInstance:s,getCurrentEventPriority:()=>t?t():f.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:"undefined"!=typeof performance&&F.fun(performance.now)?performance.now:F.fun(Date.now)?Date.now:()=>0,scheduleTimeout:F.fun(setTimeout)?setTimeout:void 0,cancelTimeout:F.fun(clearTimeout)?clearTimeout:void 0}),applyProps:J}}(0,function(){var e;let t="undefined"!=typeof self&&self||"undefined"!=typeof window&&window;if(!t)return f.DefaultEventPriority;switch(null==(e=t.event)?void 0:e.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return f.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return f.ContinuousEventPriority;default:return f.DefaultEventPriority}}),ey={objects:"shallow",strict:!1},ev=(e,t)=>{let n="function"==typeof e?e(t):e;return V(n)?n:new u.WebGLRenderer({powerPreference:"high-performance",canvas:t,antialias:!0,alpha:!0,...e})};function eb(e){let t,n;let r=ed.get(e),i=null==r?void 0:r.fiber,o=null==r?void 0:r.store;r&&console.warn("R3F.createRoot should only be called once!");let a="function"==typeof reportError?reportError:console.error,s=o||$(ep,eh),u=i||em.createContainer(s,f.ConcurrentRoot,null,!1,null,"",a,null);r||ed.set(e,{fiber:u,store:s});let c=!1;return{configure(r={}){var i,o;let{gl:a,size:u,scene:f,events:d,onCreated:p,shadows:h=!1,linear:m=!1,flat:g=!1,legacy:y=!1,orthographic:v=!1,frameloop:b="always",dpr:A=[1,2],performance:w,raycaster:E,camera:S,onPointerMissed:B}=r,x=s.getState(),_=x.gl;x.gl||x.set({gl:_=ev(a,e)});let R=x.raycaster;R||x.set({raycaster:R=new l.iMs});let{params:M,...O}=E||{};if(F.equ(O,R,ey)||eg(R,{...O}),F.equ(M,R.params,ey)||eg(R,{params:{...R.params,...M}}),!x.camera||x.camera===n&&!F.equ(n,S,ey)){n=S;let e=S instanceof l.V1s,t=e?S:v?new l.iKG(0,0,0,0,.1,1e3):new l.cPb(75,0,.1,1e3);e||(t.position.z=5,S&&(eg(t,S),("aspect"in S||"left"in S||"right"in S||"bottom"in S||"top"in S)&&(t.manual=!0,t.updateProjectionMatrix())),x.camera||null!=S&&S.rotation||t.lookAt(0,0,0)),x.set({camera:t}),R.camera=t}if(!x.scene){let e;f instanceof l.xsS?e=f:(e=new l.xsS,f&&eg(e,f)),x.set({scene:L(e)})}if(!x.xr){let e=(e,t)=>{let n=s.getState();"never"!==n.frameloop&&eh(e,!0,n,t)},t=()=>{let t=s.getState();t.gl.xr.enabled=t.gl.xr.isPresenting,t.gl.xr.setAnimationLoop(t.gl.xr.isPresenting?e:null),t.gl.xr.isPresenting||ep(t)},n={connect(){let e=s.getState().gl;e.xr.addEventListener("sessionstart",t),e.xr.addEventListener("sessionend",t)},disconnect(){let e=s.getState().gl;e.xr.removeEventListener("sessionstart",t),e.xr.removeEventListener("sessionend",t)}};"function"==typeof(null==(i=_.xr)?void 0:i.addEventListener)&&n.connect(),x.set({xr:n})}if(_.shadowMap){let e=_.shadowMap.enabled,t=_.shadowMap.type;if(_.shadowMap.enabled=!!h,F.boo(h))_.shadowMap.type=l.ntZ;else if(F.str(h)){let e={basic:l._MY,percentage:l._iA,soft:l.ntZ,variance:l.dwk};_.shadowMap.type=null!=(o=e[h])?o:l.ntZ}else F.obj(h)&&Object.assign(_.shadowMap,h);(e!==_.shadowMap.enabled||t!==_.shadowMap.type)&&(_.shadowMap.needsUpdate=!0)}let P=C();P&&("enabled"in P?P.enabled=!y:"legacyMode"in P&&(P.legacyMode=y)),c||eg(_,{outputEncoding:m?3e3:3001,toneMapping:g?l.uL9:l.LY2}),x.legacy!==y&&x.set(()=>({legacy:y})),x.linear!==m&&x.set(()=>({linear:m})),x.flat!==g&&x.set(()=>({flat:g})),!a||F.fun(a)||V(a)||F.equ(a,_,ey)||eg(_,a),d&&!x.events.handlers&&x.set({events:d(s)});let T=function(e,t){let n="undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement;if(t){let{width:e,height:r,top:i,left:o,updateStyle:a=n}=t;return{width:e,height:r,top:i,left:o,updateStyle:a}}if("undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement&&e.parentElement){let{width:t,height:r,top:i,left:o}=e.parentElement.getBoundingClientRect();return{width:t,height:r,top:i,left:o,updateStyle:n}}return"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?{width:e.width,height:e.height,top:0,left:0,updateStyle:n}:{width:0,height:0,top:0,left:0}}(e,u);return F.equ(T,x.size,ey)||x.setSize(T.width,T.height,T.updateStyle,T.top,T.left),A&&x.viewport.dpr!==I(A)&&x.setDpr(A),x.frameloop!==b&&x.setFrameloop(b),x.onPointerMissed||x.set({onPointerMissed:B}),w&&!F.equ(w,x.performance,ey)&&x.set(e=>({performance:{...e.performance,...w}})),t=p,c=!0,this},render(n){return c||this.configure(),em.updateContainer((0,m.jsx)(eA,{store:s,children:n,onCreated:t,rootElement:e}),u,null,()=>void 0),s},unmount(){ew(e)}}}function eA({store:e,children:t,onCreated:n,rootElement:r}){return x(()=>{let t=e.getState();t.set(e=>({internal:{...e.internal,active:!0}})),n&&n(t),e.getState().events.connected||null==t.events.connect||t.events.connect(r)},[]),(0,m.jsx)(Z.Provider,{value:e,children:t})}function ew(e,t){let n=ed.get(e),r=null==n?void 0:n.fiber;if(r){let i=null==n?void 0:n.store.getState();i&&(i.internal.active=!1),em.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var n,r,o,a;null==i.events.disconnect||i.events.disconnect(),null==(n=i.gl)||null==(r=n.renderLists)||null==r.dispose||r.dispose(),null==(o=i.gl)||null==o.forceContextLoss||o.forceContextLoss(),null!=(a=i.gl)&&a.xr&&i.xr.disconnect(),function(e){for(let t in e.dispose&&"Scene"!==e.type&&e.dispose(),e)null==t.dispose||t.dispose(),delete e[t]}(i),ed.delete(e),t&&t(e)}catch(e){}},500)})}}function eE(e,t,n){return(0,m.jsx)(eC,{children:e,container:t,state:n},t.uuid)}function eC({state:e={},children:t,container:n}){let{events:r,size:i,...o}=e,a=ea(),[s]=c.useState(()=>new l.iMs),[u]=c.useState(()=>new l.FM8),f=c.useCallback((e,t)=>{let c;let f={...e};if(Object.keys(e).forEach(n=>{(q.includes(n)||e[n]!==t[n]&&t[n])&&delete f[n]}),t&&i){let n=t.camera;c=e.viewport.getCurrentViewport(n,new l.Pa4,i),n!==e.camera&&Q(n,i)}return{...f,scene:n,raycaster:s,pointer:u,mouse:u,previousRoot:a,events:{...e.events,...null==t?void 0:t.events,...r},size:{...e.size,...i},viewport:{...e.viewport,...c},...o}},[e]),[d]=c.useState(()=>{let e=a.getState();return p((t,l)=>({...e,scene:n,raycaster:s,pointer:u,mouse:u,previousRoot:a,events:{...e.events,...r},size:{...e.size,...i},...o,set:t,get:l,setEvents:e=>t(t=>({...t,events:{...t.events,...e}}))}))});return c.useEffect(()=>{let e=a.subscribe(e=>d.setState(t=>f(e,t)));return()=>{e()}},[f]),c.useEffect(()=>{d.setState(e=>f(a.getState(),e))},[f]),c.useEffect(()=>()=>{d.destroy()},[]),(0,m.jsx)(m.Fragment,{children:em.createPortal((0,m.jsx)(Z.Provider,{value:d,children:t}),d,null)})}em.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:c.version}),c.unstable_act;let eS={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function eB(e){let{handlePointer:t}=function(e){function t(e){return e.filter(e=>["Move","Over","Enter","Out","Leave"].some(t=>{var n;return null==(n=e.__r3f)?void 0:n.handlers["onPointer"+t]}))}function n(t){let{internal:n}=e.getState();for(let e of n.hovered.values())if(!t.length||!t.find(t=>t.object===e.object&&t.index===e.index&&t.instanceId===e.instanceId)){let r=e.eventObject.__r3f,i=null==r?void 0:r.handlers;if(n.hovered.delete(X(e)),null!=r&&r.eventCount){let n={...e,intersections:t};null==i.onPointerOut||i.onPointerOut(n),null==i.onPointerLeave||i.onPointerLeave(n)}}}function r(e,t){for(let n=0;n<t.length;n++){let r=t[n].__r3f;null==r||null==r.handlers.onPointerMissed||r.handlers.onPointerMissed(e)}}return{handlePointer:function(i){switch(i){case"onPointerLeave":case"onPointerCancel":return()=>n([]);case"onLostPointerCapture":return t=>{let{internal:r}=e.getState();"pointerId"in t&&r.capturedMap.has(t.pointerId)&&requestAnimationFrame(()=>{r.capturedMap.has(t.pointerId)&&(r.capturedMap.delete(t.pointerId),n([]))})}}return function(o){let{onPointerMissed:a,internal:s}=e.getState();s.lastEvent.current=o;let u="onPointerMove"===i,c="onClick"===i||"onContextMenu"===i||"onDoubleClick"===i,f=function(t,n){let r=e.getState(),i=new Set,o=[],a=n?n(r.internal.interaction):r.internal.interaction;for(let e=0;e<a.length;e++){let t=k(a[e]);t&&(t.raycaster.camera=void 0)}r.previousRoot||null==r.events.compute||r.events.compute(t,r);let s=a.flatMap(function(e){let n=k(e);if(!n||!n.events.enabled||null===n.raycaster.camera)return[];if(void 0===n.raycaster.camera){var r;null==n.events.compute||n.events.compute(t,n,null==(r=n.previousRoot)?void 0:r.getState()),void 0===n.raycaster.camera&&(n.raycaster.camera=null)}return n.raycaster.camera?n.raycaster.intersectObject(e,!0):[]}).sort((e,t)=>{let n=k(e.object),r=k(t.object);return n&&r&&r.events.priority-n.events.priority||e.distance-t.distance}).filter(e=>{let t=X(e);return!i.has(t)&&(i.add(t),!0)});for(let e of(r.events.filter&&(s=r.events.filter(s,r)),s)){let t=e.object;for(;t;){var l;null!=(l=t.__r3f)&&l.eventCount&&o.push({...e,eventObject:t}),t=t.parent}}if("pointerId"in t&&r.internal.capturedMap.has(t.pointerId))for(let e of r.internal.capturedMap.get(t.pointerId).values())i.has(X(e.intersection))||o.push(e.intersection);return o}(o,u?t:void 0),d=c?function(t){let{internal:n}=e.getState(),r=t.offsetX-n.initialClick[0],i=t.offsetY-n.initialClick[1];return Math.round(Math.sqrt(r*r+i*i))}(o):0;"onPointerDown"===i&&(s.initialClick=[o.offsetX,o.offsetY],s.initialHits=f.map(e=>e.eventObject)),c&&!f.length&&d<=2&&(r(o,s.interaction),a&&a(o)),u&&n(f),function(t,r,i,o){let a=e.getState();if(t.length){let e={stopped:!1};for(let s of t){let{raycaster:u,pointer:c,camera:f,internal:d}=k(s.object)||a,p=new l.Pa4(c.x,c.y,0).unproject(f),h=e=>{var t,n;return null!=(t=null==(n=d.capturedMap.get(e))?void 0:n.has(s.eventObject))&&t},m=e=>{let t={intersection:s,target:r.target};d.capturedMap.has(e)?d.capturedMap.get(e).set(s.eventObject,t):d.capturedMap.set(e,new Map([[s.eventObject,t]])),r.target.setPointerCapture(e)},g=e=>{let t=d.capturedMap.get(e);t&&Y(d.capturedMap,s.eventObject,t,e)},y={};for(let e in r){let t=r[e];"function"!=typeof t&&(y[e]=t)}let v={...s,...y,pointer:c,intersections:t,stopped:e.stopped,delta:i,unprojectedPoint:p,ray:u.ray,camera:f,stopPropagation(){let i="pointerId"in r&&d.capturedMap.get(r.pointerId);(!i||i.has(s.eventObject))&&(v.stopped=e.stopped=!0,d.hovered.size&&Array.from(d.hovered.values()).find(e=>e.eventObject===s.eventObject)&&n([...t.slice(0,t.indexOf(s)),s]))},target:{hasPointerCapture:h,setPointerCapture:m,releasePointerCapture:g},currentTarget:{hasPointerCapture:h,setPointerCapture:m,releasePointerCapture:g},nativeEvent:r};if(o(v),!0===e.stopped)break}}}(f,o,d,function(e){let t=e.eventObject,n=t.__r3f,a=null==n?void 0:n.handlers;if(null!=n&&n.eventCount){if(u){if(a.onPointerOver||a.onPointerEnter||a.onPointerOut||a.onPointerLeave){let t=X(e),n=s.hovered.get(t);n?n.stopped&&e.stopPropagation():(s.hovered.set(t,e),null==a.onPointerOver||a.onPointerOver(e),null==a.onPointerEnter||a.onPointerEnter(e))}null==a.onPointerMove||a.onPointerMove(e)}else{let n=a[i];n?(!c||s.initialHits.includes(t))&&(r(o,s.interaction.filter(e=>!s.initialHits.includes(e))),n(e)):c&&s.initialHits.includes(t)&&r(o,s.interaction.filter(e=>!s.initialHits.includes(e)))}}})}}}}(e);return{priority:1,enabled:!0,compute(e,t,n){t.pointer.set(e.offsetX/t.size.width*2-1,-(e.offsetY/t.size.height*2)+1),t.raycaster.setFromCamera(t.pointer,t.camera)},connected:void 0,handlers:Object.keys(eS).reduce((e,n)=>({...e,[n]:t(n)}),{}),update:()=>{var t;let{events:n,internal:r}=e.getState();null!=(t=r.lastEvent)&&t.current&&n.handlers&&n.handlers.onPointerMove(r.lastEvent.current)},connect:t=>{var n;let{set:r,events:i}=e.getState();null==i.disconnect||i.disconnect(),r(e=>({events:{...e.events,connected:t}})),Object.entries(null!=(n=i.handlers)?n:[]).forEach(([e,n])=>{let[r,i]=eS[e];t.addEventListener(r,n,{passive:i})})},disconnect:()=>{let{set:t,events:n}=e.getState();if(n.connected){var r;Object.entries(null!=(r=n.handlers)?r:[]).forEach(([e,t])=>{if(n&&n.connected instanceof HTMLElement){let[r]=eS[e];n.connected.removeEventListener(r,t)}}),t(e=>({events:{...e.events,connected:void 0}}))}}}}},7283:function(e,t,n){"use strict";n.d(t,{Xz:function(){return _}});var r,i,o=n(6010),a=n(2265),s=n(1448),l=n(9271),u=n.n(l),c=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&g(e,n,t[n]);if(p)for(var n of p(t))m.call(t,n)&&g(e,n,t[n]);return e},v=(e,t)=>f(e,d(t));function b(e){try{return Object.defineProperties(e,{_currentRenderer:{get:()=>null,set(){}},_currentRenderer2:{get:()=>null,set(){}}})}catch(t){return e}}"undefined"!=typeof window&&((null==(r=window.document)?void 0:r.createElement)||(null==(i=window.navigator)?void 0:i.product)==="ReactNative")?a.useLayoutEffect:a.useEffect;let A=console.error;console.error=function(){let e=[...arguments].join("");if((null==e?void 0:e.startsWith("Warning:"))&&e.includes("useContext")){console.error=A;return}return A.apply(this,arguments)};let w=b(a.createContext(null));class E extends a.Component{render(){return a.createElement(w.Provider,{value:this._reactInternals},this.props.children)}}var C=n(7437);n(4988),n(5897),n(6697);let S=["x","y","top","bottom","left","right","width","height"],B=(e,t)=>S.every(n=>e[n]===t[n]),x=a.forwardRef(function({children:e,fallback:t,resize:n,style:r,gl:i,events:l=o.c,eventSource:c,eventPrefix:f,shadows:d,linear:p,flat:h,legacy:m,orthographic:g,frameloop:A,dpr:S,performance:x,raycaster:_,camera:R,scene:M,onPointerMissed:O,onCreated:P,...T},I){a.useMemo(()=>(0,o.e)(s),[]);let k=function(){let e=function(){let e=function(){let e=a.useContext(w);if(null===e)throw Error("its-fine: useFiber must be called within a <FiberProvider />!");let t=a.useId();return a.useMemo(()=>{for(let n of[e,null==e?void 0:e.alternate]){if(!n)continue;let e=function e(t,n,r){if(!t)return;if(!0===r(t))return t;let i=n?t.return:t.child;for(;i;){let t=e(i,n,r);if(t)return t;i=n?null:i.sibling}}(n,!1,e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}});if(e)return e}},[e,t])}(),[t]=a.useState(()=>new Map);t.clear();let n=e;for(;n;){if(n.type&&"object"==typeof n.type){let e=void 0===n.type._context&&n.type.Provider===n.type?n.type:n.type._context;e&&e!==w&&!t.has(e)&&t.set(e,a.useContext(b(e)))}n=n.return}return t}();return a.useMemo(()=>Array.from(e.keys()).reduce((t,n)=>r=>a.createElement(t,null,a.createElement(n.Provider,v(y({},r),{value:e.get(n)}))),e=>a.createElement(E,y({},e))),[e])}(),[D,F]=function({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){var i;let o=n||"undefined"!=typeof window&&window.ResizeObserver,[s,l]=(0,a.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0});if(!o)return s.width=1280,s.height=800,[()=>{},s,()=>{}];let c=(0,a.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s,orientationHandler:null}),f=e?"number"==typeof e?e:e.scroll:null,d=e?"number"==typeof e?e:e.resize:null,p=(0,a.useRef)(!1);(0,a.useEffect)(()=>(p.current=!0,()=>void(p.current=!1)));let[h,m,g]=(0,a.useMemo)(()=>{let e=()=>{if(!c.current.element)return;let{left:e,top:t,width:n,height:i,bottom:o,right:a,x:s,y:u}=c.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:i,bottom:o,right:a,x:s,y:u};c.current.element instanceof HTMLElement&&r&&(f.height=c.current.element.offsetHeight,f.width=c.current.element.offsetWidth),Object.freeze(f),p.current&&!B(c.current.lastBounds,f)&&l(c.current.lastBounds=f)};return[e,d?u()(e,d):e,f?u()(e,f):e]},[l,r,f,d]);function y(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",g,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null),c.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",c.current.orientationHandler))}function v(){var e;c.current.element&&(c.current.resizeObserver=new o(m),null==(e=c.current.resizeObserver)||e.observe(c.current.element),t&&c.current.scrollContainers&&c.current.scrollContainers.forEach(e=>e.addEventListener("scroll",g,{capture:!0,passive:!0})),c.current.orientationHandler=()=>{g()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",c.current.orientationHandler))}return i=!!t,(0,a.useEffect)(()=>{if(i)return window.addEventListener("scroll",g,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",g,!0)},[g,i]),(0,a.useEffect)(()=>(window.addEventListener("resize",m),()=>void window.removeEventListener("resize",m)),[m]),(0,a.useEffect)(()=>{y(),v()},[t,g,m]),(0,a.useEffect)(()=>y,[]),[e=>{e&&e!==c.current.element&&(y(),c.current.element=e,c.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),v())},s,h]}({scroll:!0,debounce:{scroll:50,resize:0},...n}),L=a.useRef(null),j=a.useRef(null);a.useImperativeHandle(I,()=>L.current);let N=(0,o.u)(O),[U,G]=a.useState(!1),[H,z]=a.useState(!1);if(U)throw U;if(H)throw H;let J=a.useRef(null);(0,o.a)(()=>{let t=L.current;F.width>0&&F.height>0&&t&&(J.current||(J.current=(0,o.b)(t)),J.current.configure({gl:i,events:l,shadows:d,linear:p,flat:h,legacy:m,orthographic:g,frameloop:A,dpr:S,performance:x,raycaster:_,camera:R,scene:M,size:F,onPointerMissed:(...e)=>null==N.current?void 0:N.current(...e),onCreated:e=>{null==e.events.connect||e.events.connect(c?(0,o.i)(c)?c.current:c:j.current),f&&e.setEvents({compute:(e,t)=>{let n=e[f+"X"],r=e[f+"Y"];t.pointer.set(n/t.size.width*2-1,-(r/t.size.height*2)+1),t.raycaster.setFromCamera(t.pointer,t.camera)}}),null==P||P(e)}}),J.current.render((0,C.jsx)(k,{children:(0,C.jsx)(o.E,{set:z,children:(0,C.jsx)(a.Suspense,{fallback:(0,C.jsx)(o.B,{set:G}),children:e})})})))}),a.useEffect(()=>{let e=L.current;if(e)return()=>(0,o.d)(e)},[]);let W=c?"none":"auto";return(0,C.jsx)("div",{ref:j,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:W,...r},...T,children:(0,C.jsx)("div",{ref:D,style:{width:"100%",height:"100%"},children:(0,C.jsx)("canvas",{ref:L,style:{display:"block"},children:t})})})}),_=a.forwardRef(function(e,t){return(0,C.jsx)(E,{children:(0,C.jsx)(x,{...e,ref:t})})})},370:function(e,t){"use strict";t.ConcurrentRoot=1,t.ContinuousEventPriority=4,t.DefaultEventPriority=16,t.DiscreteEventPriority=1},4557:function(e,t,n){e.exports=function(e){"use strict";var t,r,i,o,a,s={},l=n(2265),u=n(6697),c=Object.assign;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,p=Symbol.for("react.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var B=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var x=Symbol.iterator;function _(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=x&&e[x]||e["@@iterator"])?e:null}function R(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 m:return"Fragment";case h:return"Portal";case y:return"Profiler";case g:return"StrictMode";case w:return"Suspense";case E:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case b:return(e.displayName||"Context")+".Consumer";case v:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return R(e(t))}catch(e){}}return null}function M(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function O(e){if(M(e)!==e)throw Error(f(188))}function P(e){var t=e.alternate;if(!t){if(null===(t=M(e)))throw Error(f(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return O(i),e;if(o===r)return O(i),t;o=o.sibling}throw Error(f(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(f(189))}}if(n.alternate!==r)throw Error(f(190))}if(3!==n.tag)throw Error(f(188));return n.stateNode.current===n?e:t}function T(e){return null!==(e=P(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}var I,k=Array.isArray,D=e.getPublicInstance,F=e.getRootHostContext,L=e.getChildHostContext,j=e.prepareForCommit,N=e.resetAfterCommit,U=e.createInstance,G=e.appendInitialChild,H=e.finalizeInitialChildren,z=e.prepareUpdate,J=e.shouldSetTextContent,W=e.createTextInstance,K=e.scheduleTimeout,Q=e.cancelTimeout,X=e.noTimeout,Y=e.isPrimaryRenderer,q=e.supportsMutation,V=e.supportsPersistence,Z=e.supportsHydration,$=e.getInstanceFromNode,ee=e.preparePortalMount,et=e.getCurrentEventPriority,en=e.detachDeletedInstance,er=e.supportsMicrotasks,ei=e.scheduleMicrotask,eo=e.supportsTestSelectors,ea=e.findFiberRoot,es=e.getBoundingRect,el=e.getTextContent,eu=e.isHiddenSubtree,ec=e.matchAccessibilityRole,ef=e.setFocusIfFocusable,ed=e.setupIntersectionObserver,ep=e.appendChild,eh=e.appendChildToContainer,em=e.commitTextUpdate,eg=e.commitMount,ey=e.commitUpdate,ev=e.insertBefore,eb=e.insertInContainerBefore,eA=e.removeChild,ew=e.removeChildFromContainer,eE=e.resetTextContent,eC=e.hideInstance,eS=e.hideTextInstance,eB=e.unhideInstance,ex=e.unhideTextInstance,e_=e.clearContainer,eR=e.cloneInstance,eM=e.createContainerChildSet,eO=e.appendChildToContainerChildSet,eP=e.finalizeContainerChildren,eT=e.replaceContainerChildren,eI=e.cloneHiddenInstance,ek=e.cloneHiddenTextInstance,eD=e.canHydrateInstance,eF=e.canHydrateTextInstance,eL=e.canHydrateSuspenseInstance,ej=e.isSuspenseInstancePending,eN=e.isSuspenseInstanceFallback,eU=e.registerSuspenseInstanceRetry,eG=e.getNextHydratableSibling,eH=e.getFirstHydratableChild,ez=e.getFirstHydratableChildWithinContainer,eJ=e.getFirstHydratableChildWithinSuspenseInstance,eW=e.hydrateInstance,eK=e.hydrateTextInstance,eQ=e.hydrateSuspenseInstance,eX=e.getNextHydratableInstanceAfterSuspenseInstance,eY=e.commitHydratedContainer,eq=e.commitHydratedSuspenseInstance,eV=e.clearSuspenseBoundary,eZ=e.clearSuspenseBoundaryFromContainer,e$=e.shouldDeleteUnhydratedTailInstances,e0=e.didNotMatchHydratedContainerTextInstance,e1=e.didNotMatchHydratedTextInstance;function e2(e){if(void 0===I)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var e3=!1;function e4(e,t){if(!e||e3)return"";e3=!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{e3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?e2(e):""}var e6=Object.prototype.hasOwnProperty,e8=[],e9=-1;function e5(e){return{current:e}}function e7(e){0>e9||(e.current=e8[e9],e8[e9]=null,e9--)}function te(e,t){e8[++e9]=e.current,e.current=t}var tt={},tn=e5(tt),tr=e5(!1),ti=tt;function to(e,t){var n=e.type.contextTypes;if(!n)return tt;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 ta(e){return null!=(e=e.childContextTypes)}function ts(){e7(tr),e7(tn)}function tl(e,t,n){if(tn.current!==tt)throw Error(f(168));te(tn,t),te(tr,n)}function tu(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(f(108,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 R(t);case 8:return t===g?"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}(e)||"Unknown",i));return c({},n,r)}function tc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tt,ti=tn.current,te(tn,e),te(tr,tr.current),!0}function tf(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=tu(e,t,ti),r.__reactInternalMemoizedMergedChildContext=e,e7(tr),e7(tn),te(tn,e)):e7(tr),te(tr,n)}var td=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(tp(e)/th|0)|0},tp=Math.log,th=Math.LN2,tm=64,tg=4194304;function ty(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 tv(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=ty(s):0!=(o&=a)&&(r=ty(o))}else 0!=(a=n&~i)?r=ty(a):0!==o&&(r=ty(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-td(t)),r|=e[n],t&=~i;return r}function tb(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tA(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tw(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-td(t)]=n}function tE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-td(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var tC=0;function tS(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var tB=u.unstable_scheduleCallback,tx=u.unstable_cancelCallback,t_=u.unstable_shouldYield,tR=u.unstable_requestPaint,tM=u.unstable_now,tO=u.unstable_ImmediatePriority,tP=u.unstable_UserBlockingPriority,tT=u.unstable_NormalPriority,tI=u.unstable_IdlePriority,tk=null,tD=null,tF="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},tL=null,tj=!1,tN=!1;function tU(e){null===tL?tL=[e]:tL.push(e)}function tG(){if(!tN&&null!==tL){tN=!0;var e=0,t=tC;try{var n=tL;for(tC=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}tL=null,tj=!1}catch(t){throw null!==tL&&(tL=tL.slice(e+1)),tB(tO,tG),t}finally{tC=t,tN=!1}}return null}var tH=d.ReactCurrentBatchConfig;function tz(e,t){if(tF(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(!e6.call(t,i)||!tF(e[i],t[i]))return!1}return!0}function tJ(e,t){if(e&&e.defaultProps)for(var n in t=c({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var tW=e5(null),tK=null,tQ=null,tX=null;function tY(){tX=tQ=tK=null}function tq(e,t,n){Y?(te(tW,t._currentValue),t._currentValue=n):(te(tW,t._currentValue2),t._currentValue2=n)}function tV(e){var t=tW.current;e7(tW),Y?e._currentValue=t:e._currentValue2=t}function tZ(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 t$(e,t){tK=e,tX=tQ=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(r0=!0),e.firstContext=null)}function t0(e){var t=Y?e._currentValue:e._currentValue2;if(tX!==e){if(e={context:e,memoizedValue:t,next:null},null===tQ){if(null===tK)throw Error(f(308));tQ=e,tK.dependencies={lanes:0,firstContext:e}}else tQ=tQ.next=e}return t}var t1=null,t2=!1;function t3(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function t4(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 t6(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function t8(e,t){var n=e.updateQueue;null!==n&&(n=n.shared,null!==iq&&0!=(1&e.mode)&&0==(2&iY)?(null===(e=n.interleaved)?(t.next=t,null===t1?t1=[n]:t1.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function t9(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tE(e,n)}}function t5(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function t7(e,t,n,r){var i=e.updateQueue;t2=!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 f=e.alternate;null!==f&&(s=(f=f.updateQueue).lastBaseUpdate)!==a&&(null===s?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,f=u=l=null,s=o;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==f&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(h,d,p):m))break e;d=c({},d,p);break e;case 2:t2=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===f?(u=f=h,l=d):f=f.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,null!==(t=i.shared.interleaved)){i=t;do a|=i.lane,i=i.next;while(i!==t)}else null===o&&(i.shared.lanes=0);i3|=a,e.lanes=a,e.memoizedState=d}}function ne(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(f(191,i));i.call(r)}}}var nt=(new l.Component).refs;function nn(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var nr={isMounted:function(e){return!!(e=e._reactInternals)&&M(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=of(),i=od(e),o=t6(r,i);o.payload=t,null!=n&&(o.callback=n),t8(e,o),null!==(t=op(e,i,r))&&t9(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=of(),i=od(e),o=t6(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),t8(e,o),null!==(t=op(e,i,r))&&t9(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=of(),r=od(e),i=t6(n,r);i.tag=2,null!=t&&(i.callback=t),t8(e,i),null!==(t=op(e,r,n))&&t9(t,e,r)}};function ni(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||!tz(n,r)||!tz(i,o)}function no(e,t,n){var r=!1,i=tt,o=t.contextType;return"object"==typeof o&&null!==o?o=t0(o):(i=ta(t)?ti:tn.current,o=(r=null!=(r=t.contextTypes))?to(e,i):tt),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=nr,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function na(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&&nr.enqueueReplaceState(t,t.state,null)}function ns(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=nt,t3(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=t0(o):(o=ta(t)?ti:tn.current,i.context=to(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(nn(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&&nr.enqueueReplaceState(i,i.state,null),t7(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}var nl=[],nu=0,nc=null,nf=0,nd=[],np=0,nh=null,nm=1,ng="";function ny(e,t){nl[nu++]=nf,nl[nu++]=nc,nc=e,nf=t}function nv(e,t,n){nd[np++]=nm,nd[np++]=ng,nd[np++]=nh,nh=e;var r=nm;e=ng;var i=32-td(r)-1;r&=~(1<<i),n+=1;var o=32-td(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,nm=1<<32-td(t)+i|n<<i|r,ng=o+e}else nm=1<<o|n<<i|r,ng=e}function nb(e){null!==e.return&&(ny(e,1),nv(e,1,0))}function nA(e){for(;e===nc;)nc=nl[--nu],nl[nu]=null,nf=nl[--nu],nl[nu]=null;for(;e===nh;)nh=nd[--np],nd[np]=null,ng=nd[--np],nd[np]=null,nm=nd[--np],nd[np]=null}var nw=null,nE=null,nC=!1,nS=!1,nB=null;function nx(e,t){var n=oN(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 n_(e,t){switch(e.tag){case 5:return null!==(t=eD(t,e.type,e.pendingProps))&&(e.stateNode=t,nw=e,nE=eH(t),!0);case 6:return null!==(t=eF(t,e.pendingProps))&&(e.stateNode=t,nw=e,nE=null,!0);case 13:if(null!==(t=eL(t))){var n=null!==nh?{id:nm,overflow:ng}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=oN(18,null,null,0)).stateNode=t,n.return=e,e.child=n,nw=e,nE=null,!0}return!1;default:return!1}}function nR(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function nM(e){if(nC){var t=nE;if(t){var n=t;if(!n_(e,t)){if(nR(e))throw Error(f(418));t=eG(n);var r=nw;t&&n_(e,t)?nx(r,n):(e.flags=-4097&e.flags|2,nC=!1,nw=e)}}else{if(nR(e))throw Error(f(418));e.flags=-4097&e.flags|2,nC=!1,nw=e}}}function nO(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;nw=e}function nP(e){if(!Z||e!==nw)return!1;if(!nC)return nO(e),nC=!0,!1;if(3!==e.tag&&(5!==e.tag||e$(e.type)&&!J(e.type,e.memoizedProps))){var t=nE;if(t){if(nR(e)){for(e=nE;e;)e=eG(e);throw Error(f(418))}for(;t;)nx(e,t),t=eG(t)}}if(nO(e),13===e.tag){if(!Z)throw Error(f(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(f(317));nE=eX(e)}else nE=nw?eG(e.stateNode):null;return!0}function nT(){Z&&(nE=nw=null,nS=nC=!1)}function nI(e){null===nB?nB=[e]:nB.push(e)}function nk(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(f(309));var r=n.stateNode}if(!r)throw Error(f(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=i.refs;t===nt&&(t=i.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(f(284));if(!n._owner)throw Error(f(290,e))}return e}function nD(e,t){throw Error(f(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nF(e){return(0,e._init)(e._payload)}function nL(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=oG(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?(t=oW(n,e.mode,r)).return=e:(t=i(t,n)).return=e,t}function l(e,t,n,r){var o=n.type;return o===m?c(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===S&&nF(o)===t.type)?(r=i(t,n.props)).ref=nk(e,t,n):(r=oH(n.type,n.key,n.props,null,e.mode,r)).ref=nk(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=oK(n,e.mode,r)).return=e:(t=i(t,n.children||[])).return=e,t}function c(e,t,n,r,o){return null===t||7!==t.tag?(t=oz(n,e.mode,r,o)).return=e:(t=i(t,n)).return=e,t}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=oW(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return(n=oH(t.type,t.key,t.props,null,e.mode,n)).ref=nk(e,null,t),n.return=e,n;case h:return(t=oK(t,e.mode,n)).return=e,t;case S:return d(e,(0,t._init)(t._payload),n)}if(k(t)||_(t))return(t=oz(t,e.mode,n,null)).return=e,t;nD(e,t)}return null}function g(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case S:return g(e,t,(i=n._init)(n._payload),r)}if(k(n)||_(n))return null!==i?null:c(e,t,n,r,null);nD(e,n)}return null}function y(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return y(e,t,n,(0,r._init)(r._payload),i)}if(k(r)||_(r))return c(t,e=e.get(n)||null,r,i,null);nD(t,r)}return null}return function s(l,u,c,v){if("object"==typeof c&&null!==c&&c.type===m&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case p:e:{for(var b=c.key,A=u;null!==A;){if(A.key===b){if((b=c.type)===m){if(7===A.tag){n(l,A.sibling),(u=i(A,c.props.children)).return=l,l=u;break e}}else if(A.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===S&&nF(b)===A.type){n(l,A.sibling),(u=i(A,c.props)).ref=nk(l,A,c),u.return=l,l=u;break e}n(l,A);break}t(l,A),A=A.sibling}c.type===m?((u=oz(c.props.children,l.mode,v,c.key)).return=l,l=u):((v=oH(c.type,c.key,c.props,null,l.mode,v)).ref=nk(l,u,c),v.return=l,l=v)}return a(l);case h:e:{for(A=c.key;null!==u;){if(u.key===A){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(u=i(u,c.children||[])).return=l,l=u;break e}n(l,u);break}t(l,u),u=u.sibling}(u=oK(c,l.mode,v)).return=l,l=u}return a(l);case S:return s(l,u,(A=c._init)(c._payload),v)}if(k(c))return function(i,a,s,l){for(var u=null,c=null,f=a,p=a=0,h=null;null!==f&&p<s.length;p++){f.index>p?(h=f,f=null):h=f.sibling;var m=g(i,f,s[p],l);if(null===m){null===f&&(f=h);break}e&&f&&null===m.alternate&&t(i,f),a=o(m,a,p),null===c?u=m:c.sibling=m,c=m,f=h}if(p===s.length)return n(i,f),nC&&ny(i,p),u;if(null===f){for(;p<s.length;p++)null!==(f=d(i,s[p],l))&&(a=o(f,a,p),null===c?u=f:c.sibling=f,c=f);return nC&&ny(i,p),u}for(f=r(i,f);p<s.length;p++)null!==(h=y(f,i,p,s[p],l))&&(e&&null!==h.alternate&&f.delete(null===h.key?p:h.key),a=o(h,a,p),null===c?u=h:c.sibling=h,c=h);return e&&f.forEach(function(e){return t(i,e)}),nC&&ny(i,p),u}(l,u,c,v);if(_(c))return function(i,a,s,l){var u=_(s);if("function"!=typeof u)throw Error(f(150));if(null==(s=u.call(s)))throw Error(f(151));for(var c=u=null,p=a,h=a=0,m=null,v=s.next();null!==p&&!v.done;h++,v=s.next()){p.index>h?(m=p,p=null):m=p.sibling;var b=g(i,p,v.value,l);if(null===b){null===p&&(p=m);break}e&&p&&null===b.alternate&&t(i,p),a=o(b,a,h),null===c?u=b:c.sibling=b,c=b,p=m}if(v.done)return n(i,p),nC&&ny(i,h),u;if(null===p){for(;!v.done;h++,v=s.next())null!==(v=d(i,v.value,l))&&(a=o(v,a,h),null===c?u=v:c.sibling=v,c=v);return nC&&ny(i,h),u}for(p=r(i,p);!v.done;h++,v=s.next())null!==(v=y(p,i,h,v.value,l))&&(e&&null!==v.alternate&&p.delete(null===v.key?h:v.key),a=o(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&p.forEach(function(e){return t(i,e)}),nC&&ny(i,h),u}(l,u,c,v);nD(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(u=i(u,c)).return=l):(n(l,u),(u=oW(c,l.mode,v)).return=l),a(l=u)):n(l,u)}}var nj=nL(!0),nN=nL(!1),nU={},nG=e5(nU),nH=e5(nU),nz=e5(nU);function nJ(e){if(e===nU)throw Error(f(174));return e}function nW(e,t){te(nz,t),te(nH,e),te(nG,nU),e=F(t),e7(nG),te(nG,e)}function nK(){e7(nG),e7(nH),e7(nz)}function nQ(e){var t=nJ(nz.current),n=nJ(nG.current);t=L(n,e.type,t),n!==t&&(te(nH,e),te(nG,t))}function nX(e){nH.current===e&&(e7(nG),e7(nH))}var nY=e5(0);function nq(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||ej(n)||eN(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nV=[];function nZ(){for(var e=0;e<nV.length;e++){var t=nV[e];Y?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}nV.length=0}var n$=d.ReactCurrentDispatcher,n0=d.ReactCurrentBatchConfig,n1=0,n2=null,n3=null,n4=null,n6=!1,n8=!1,n9=0,n5=0;function n7(){throw Error(f(321))}function re(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tF(e[n],t[n]))return!1;return!0}function rt(e,t,n,r,i,o){if(n1=o,n2=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,n$.current=null===e||null===e.memoizedState?rL:rj,e=n(r,i),n8){o=0;do{if(n8=!1,n9=0,25<=o)throw Error(f(301));o+=1,n4=n3=null,t.updateQueue=null,n$.current=rN,e=n(r,i)}while(n8)}if(n$.current=rF,t=null!==n3&&null!==n3.next,n1=0,n4=n3=n2=null,n6=!1,t)throw Error(f(300));return e}function rn(){var e=0!==n9;return n9=0,e}function rr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===n4?n2.memoizedState=n4=e:n4=n4.next=e,n4}function ri(){if(null===n3){var e=n2.alternate;e=null!==e?e.memoizedState:null}else e=n3.next;var t=null===n4?n2.memoizedState:n4.next;if(null!==t)n4=t,n3=e;else{if(null===e)throw Error(f(310));e={memoizedState:(n3=e).memoizedState,baseState:n3.baseState,baseQueue:n3.baseQueue,queue:n3.queue,next:null},null===n4?n2.memoizedState=n4=e:n4=n4.next=e}return n4}function ro(e,t){return"function"==typeof t?t(e):t}function ra(e){var t=ri(),n=t.queue;if(null===n)throw Error(f(311));n.lastRenderedReducer=e;var r=n3,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((n1&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,n2.lanes|=c,i3|=c}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=s,tF(r,t.memoizedState)||(r0=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do o=i.lane,n2.lanes|=o,i3|=o,i=i.next;while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rs(e){var t=ri(),n=t.queue;if(null===n)throw Error(f(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);tF(o,t.memoizedState)||(r0=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function rl(){}function ru(e,t){var n=n2,r=ri(),i=t(),o=!tF(r.memoizedState,i);if(o&&(r.memoizedState=i,r0=!0),r=r.queue,rA(rd.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==n4&&1&n4.memoizedState.tag){if(n.flags|=2048,rm(9,rf.bind(null,n,r,i,t),void 0,null),null===iq)throw Error(f(349));0!=(30&n1)||rc(n,t,i)}return i}function rc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=n2.updateQueue)?(t={lastEffect:null,stores:null},n2.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function rf(e,t,n,r){t.value=n,t.getSnapshot=r,rp(t)&&op(e,1,-1)}function rd(e,t,n){return n(function(){rp(t)&&op(e,1,-1)})}function rp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tF(e,n)}catch(e){return!0}}function rh(e){var t=rr();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:e},t.queue=e,e=e.dispatch=rP.bind(null,n2,e),[t.memoizedState,e]}function rm(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=n2.updateQueue)?(t={lastEffect:null,stores:null},n2.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 rg(){return ri().memoizedState}function ry(e,t,n,r){var i=rr();n2.flags|=e,i.memoizedState=rm(1|t,n,void 0,void 0===r?null:r)}function rv(e,t,n,r){var i=ri();r=void 0===r?null:r;var o=void 0;if(null!==n3){var a=n3.memoizedState;if(o=a.destroy,null!==r&&re(r,a.deps)){i.memoizedState=rm(t,n,o,r);return}}n2.flags|=e,i.memoizedState=rm(1|t,n,o,r)}function rb(e,t){return ry(8390656,8,e,t)}function rA(e,t){return rv(2048,8,e,t)}function rw(e,t){return rv(4,2,e,t)}function rE(e,t){return rv(4,4,e,t)}function rC(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function rS(e,t,n){return n=null!=n?n.concat([e]):null,rv(4,4,rC.bind(null,t,e),n)}function rB(){}function rx(e,t){var n=ri();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&re(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function r_(e,t){var n=ri();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&re(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function rR(e,t){var n=tC;tC=0!==n&&4>n?n:4,e(!0);var r=n0.transition;n0.transition={};try{e(!1),t()}finally{tC=n,n0.transition=r}}function rM(){return ri().memoizedState}function rO(e,t,n){var r=od(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rT(e)?rI(t,n):(rk(e,t,n),null!==(e=op(e,r,n=of()))&&rD(e,t,r))}function rP(e,t,n){var r=od(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rT(e))rI(t,i);else{rk(e,t,i);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,tF(s,a))return}catch(e){}finally{}null!==(e=op(e,r,n=of()))&&rD(e,t,r)}}function rT(e){var t=e.alternate;return e===n2||null!==t&&t===n2}function rI(e,t){n8=n6=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rk(e,t,n){null!==iq&&0!=(1&e.mode)&&0==(2&iY)?(null===(e=t.interleaved)?(n.next=n,null===t1?t1=[t]:t1.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function rD(e,t,n){if(0!=(4194240&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tE(e,n)}}var rF={readContext:t0,useCallback:n7,useContext:n7,useEffect:n7,useImperativeHandle:n7,useInsertionEffect:n7,useLayoutEffect:n7,useMemo:n7,useReducer:n7,useRef:n7,useState:n7,useDebugValue:n7,useDeferredValue:n7,useTransition:n7,useMutableSource:n7,useSyncExternalStore:n7,useId:n7,unstable_isNewReconciler:!1},rL={readContext:t0,useCallback:function(e,t){return rr().memoizedState=[e,void 0===t?null:t],e},useContext:t0,useEffect:rb,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ry(4194308,4,rC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ry(4194308,4,e,t)},useInsertionEffect:function(e,t){return ry(4,2,e,t)},useMemo:function(e,t){var n=rr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rr();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=rO.bind(null,n2,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rr().memoizedState=e},useState:rh,useDebugValue:rB,useDeferredValue:function(e){var t=rh(e),n=t[0],r=t[1];return rb(function(){var t=n0.transition;n0.transition={};try{r(e)}finally{n0.transition=t}},[e]),n},useTransition:function(){var e=rh(!1),t=e[0];return e=rR.bind(null,e[1]),rr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=n2,i=rr();if(nC){if(void 0===n)throw Error(f(407));n=n()}else{if(n=t(),null===iq)throw Error(f(349));0!=(30&n1)||rc(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rb(rd.bind(null,r,o,e),[e]),r.flags|=2048,rm(9,rf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=rr(),t=iq.identifierPrefix;if(nC){var n=ng,r=nm;t=":"+t+"R"+(n=(r&~(1<<32-td(r)-1)).toString(32)+n),0<(n=n9++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=n5++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rj={readContext:t0,useCallback:rx,useContext:t0,useEffect:rA,useImperativeHandle:rS,useInsertionEffect:rw,useLayoutEffect:rE,useMemo:r_,useReducer:ra,useRef:rg,useState:function(){return ra(ro)},useDebugValue:rB,useDeferredValue:function(e){var t=ra(ro),n=t[0],r=t[1];return rA(function(){var t=n0.transition;n0.transition={};try{r(e)}finally{n0.transition=t}},[e]),n},useTransition:function(){return[ra(ro)[0],ri().memoizedState]},useMutableSource:rl,useSyncExternalStore:ru,useId:rM,unstable_isNewReconciler:!1},rN={readContext:t0,useCallback:rx,useContext:t0,useEffect:rA,useImperativeHandle:rS,useInsertionEffect:rw,useLayoutEffect:rE,useMemo:r_,useReducer:rs,useRef:rg,useState:function(){return rs(ro)},useDebugValue:rB,useDeferredValue:function(e){var t=rs(ro),n=t[0],r=t[1];return rA(function(){var t=n0.transition;n0.transition={};try{r(e)}finally{n0.transition=t}},[e]),n},useTransition:function(){return[rs(ro)[0],ri().memoizedState]},useMutableSource:rl,useSyncExternalStore:ru,useId:rM,unstable_isNewReconciler:!1};function rU(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 5:return e2(e.type);case 16:return e2("Lazy");case 13:return e2("Suspense");case 19:return e2("SuspenseList");case 0:case 2:case 15:return e=e4(e.type,!1);case 11:return e=e4(e.type.render,!1);case 1:return e=e4(e.type,!0);default:return""}}(r),r=r.return;while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function rG(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var rH="function"==typeof WeakMap?WeakMap:Map;function rz(e,t,n){(n=t6(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ot||(ot=!0,on=r),rG(e,t)},n}function rJ(e,t,n){(n=t6(-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(){rG(e,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){rG(e,t),"function"!=typeof r&&(null===or?or=new Set([this]):or.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function rW(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rH;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=ok.bind(null,e,t,n),t.then(e,e))}function rK(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 rQ(e,t,n,r,i){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=t6(-1,1)).tag=2,t8(n,t))),n.lanes|=1):(e.flags|=65536,e.lanes=i),e}function rX(e){e.flags|=4}function rY(e,t){if(null!==e&&e.child===t.child)return!0;if(0!=(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(q)t=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)G(e,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}},r=function(){},i=function(e,t,n,r,i){(e=e.memoizedProps)!==r&&(n=z(t.stateNode,n,e,r,i,nJ(nG.current)),(t.updateQueue=n)&&rX(t))},o=function(e,t,n,r){n!==r&&rX(t)};else if(V){t=function(e,n,r,i){for(var o=n.child;null!==o;){if(5===o.tag){var a=o.stateNode;r&&i&&(a=eI(a,o.type,o.memoizedProps,o)),G(e,a)}else if(6===o.tag)a=o.stateNode,r&&i&&(a=ek(a,o.memoizedProps,o)),G(e,a);else if(4!==o.tag){if(22===o.tag&&null!==o.memoizedState)null!==(a=o.child)&&(a.return=o),t(e,o,!0,!0);else if(null!==o.child){o.child.return=o,o=o.child;continue}}if(o===n)break;for(;null===o.sibling;){if(null===o.return||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};var rq=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var o=i.stateNode;n&&r&&(o=eI(o,i.type,i.memoizedProps,i)),eO(e,o)}else if(6===i.tag)o=i.stateNode,n&&r&&(o=ek(o,i.memoizedProps,i)),eO(e,o);else if(4!==i.tag){if(22===i.tag&&null!==i.memoizedState)null!==(o=i.child)&&(o.return=i),rq(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};r=function(e,t){var n=t.stateNode;if(!rY(e,t)){var r=eM(e=n.containerInfo);rq(r,t,!1,!1),n.pendingChildren=r,rX(t),eP(e,r)}},i=function(e,n,r,i,o){var a=e.stateNode,s=e.memoizedProps;if((e=rY(e,n))&&s===i)n.stateNode=a;else{var l=n.stateNode,u=nJ(nG.current),c=null;s!==i&&(c=z(l,r,s,i,o,u)),e&&null===c?n.stateNode=a:(H(a=eR(a,c,r,s,i,n,e,l),r,i,o,u)&&rX(n),n.stateNode=a,e?rX(n):t(a,n,!1,!1))}},o=function(e,t,n,r){n!==r?(e=nJ(nz.current),n=nJ(nG.current),t.stateNode=W(r,e,n,t),rX(t)):t.stateNode=e.stateNode}}else r=function(){},i=function(){},o=function(){};function rV(e,t){if(!nC)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 rZ(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}var r$=d.ReactCurrentOwner,r0=!1;function r1(e,t,n,r){t.child=null===e?nN(t,null,n,r):nj(t,e.child,n,r)}function r2(e,t,n,r,i){n=n.render;var o=t.ref;return(t$(t,i),r=rt(e,t,n,r,o,i),n=rn(),null===e||r0)?(nC&&n&&nb(t),t.flags|=1,r1(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,id(e,t,i))}function r3(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=oH(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,r4(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:tz)(a,r)&&e.ref===t.ref)return id(e,t,i)}return t.flags|=1,(e=oG(o,r)).ref=t.ref,e.return=t,t.child=e}function r4(e,t,n,r,i){if(null!==e&&tz(e.memoizedProps,r)&&e.ref===t.ref){if(r0=!1,0==(e.lanes&i))return t.lanes=e.lanes,id(e,t,i);0!=(131072&e.flags)&&(r0=!0)}return r9(e,t,n,r,i)}function r6(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},te(i0,i$),i$|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,te(i0,i$),i$|=e,null;t.memoizedState={baseLanes:0,cachePool:null},r=null!==o?o.baseLanes:n,te(i0,i$),i$|=r}}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,te(i0,i$),i$|=r;return r1(e,t,i,n),t.child}function r8(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function r9(e,t,n,r,i){var o=ta(n)?ti:tn.current;return(o=to(t,o),t$(t,i),n=rt(e,t,n,r,o,i),r=rn(),null===e||r0)?(nC&&r&&nb(t),t.flags|=1,r1(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,id(e,t,i))}function r5(e,t,n,r,i){if(ta(n)){var o=!0;tc(t)}else o=!1;if(t$(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),no(t,n,r),ns(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?t0(u):to(t,u=ta(n)?ti:tn.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&na(t,a,r,u),t2=!1;var d=t.memoizedState;a.state=d,t7(t,r,a,i),l=t.memoizedState,s!==r||d!==l||tr.current||t2?("function"==typeof c&&(nn(t,n,c,r),l=t.memoizedState),(s=t2||ni(t,n,s,r,d,l,u))?(f||"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,t4(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:tJ(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?t0(l):to(t,l=ta(n)?ti:tn.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&na(t,a,r,l),t2=!1,d=t.memoizedState,a.state=d,t7(t,r,a,i);var h=t.memoizedState;s!==f||d!==h||tr.current||t2?("function"==typeof p&&(nn(t,n,p,r),h=t.memoizedState),(u=t2||ni(t,n,u,r,d,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return r7(e,t,n,r,o,i)}function r7(e,t,n,r,i,o){r8(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&tf(t,n,!1),id(e,t,o);r=t.stateNode,r$.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=nj(t,e.child,null,o),t.child=nj(t,null,s,o)):r1(e,t,s,o),t.memoizedState=r.state,i&&tf(t,n,!0),t.child}function ie(e){var t=e.stateNode;t.pendingContext?tl(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tl(e,t.context,!1),nW(e,t.containerInfo)}function it(e,t,n,r,i){return nT(),nI(i),t.flags|=256,r1(e,t,n,r),t.child}var ir={dehydrated:null,treeContext:null,retryLane:0};function ii(e){return{baseLanes:e,cachePool:null}}function io(e,t,n){var r,i,o,a,s,l,u,c,d,p,h,m,g,y,v=t.pendingProps,b=nY.current,A=!1,w=0!=(128&t.flags);if((y=w)||(y=(null===e||null!==e.memoizedState)&&0!=(2&b)),y?(A=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(b|=1),te(nY,1&b),null===e)return(nM(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:eN(e)?t.lanes=8:t.lanes=1073741824,null):(b=v.children,e=v.fallback,A?(v=t.mode,A=t.child,b={mode:"hidden",children:b},0==(1&v)&&null!==A?(A.childLanes=0,A.pendingProps=b):A=oJ(b,v,0,null),e=oz(e,v,n,null),A.return=t,e.return=t,A.sibling=e,t.child=A,t.child.memoizedState=ii(n),t.memoizedState=ir,e):ia(t,b));if(null!==(b=e.memoizedState)&&null!==(y=b.dehydrated)){if(w)return 256&t.flags?(t.flags&=-257,is(e,t,n,Error(f(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(A=v.fallback,b=t.mode,v=oJ({mode:"visible",children:v.children},b,0,null),A=oz(A,b,n,null),A.flags|=2,v.return=t,A.return=t,v.sibling=A,t.child=v,0!=(1&t.mode)&&nj(t,e.child,null,n),t.child.memoizedState=ii(n),t.memoizedState=ir,A);if(0==(1&t.mode))t=is(e,t,n,null);else if(eN(y))t=is(e,t,n,Error(f(419)));else if(v=0!=(n&e.childLanes),r0||v){if(null!==(v=iq)){switch(n&-n){case 4:A=2;break;case 16:A=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:A=32;break;case 536870912:A=268435456;break;default:A=0}0!==(v=0!=(A&(v.suspendedLanes|n))?0:A)&&v!==b.retryLane&&(b.retryLane=v,op(e,v,-1))}ox(),t=is(e,t,n,Error(f(421)))}else ej(y)?(t.flags|=128,t.child=e.child,eU(y,t=oF.bind(null,e)),t=null):(n=b.treeContext,Z&&(nE=eJ(y),nw=t,nC=!0,nB=null,nS=!1,null!==n&&(nd[np++]=nm,nd[np++]=ng,nd[np++]=nh,nm=n.id,ng=n.overflow,nh=t)),t=ia(t,t.pendingProps.children),t.flags|=4096);return t}return A?(r=e,i=t,o=v.children,a=v.fallback,s=n,l=i.mode,u=(r=r.child).sibling,c={mode:"hidden",children:o},0==(1&l)&&i.child!==r?((o=i.child).childLanes=0,o.pendingProps=c,i.deletions=null):(o=oG(r,c)).subtreeFlags=14680064&r.subtreeFlags,null!==u?a=oG(u,a):(a=oz(a,l,s,null),a.flags|=2),a.return=i,o.return=i,o.sibling=a,i.child=o,v=a,A=t.child,b=e.child.memoizedState,A.memoizedState=null===b?ii(n):{baseLanes:b.baseLanes|n,cachePool:null},A.childLanes=e.childLanes&~n,t.memoizedState=ir,v):(d=e,p=t,h=v.children,m=n,d=(g=d.child).sibling,h=oG(g,{mode:"visible",children:h}),0==(1&p.mode)&&(h.lanes=m),h.return=p,h.sibling=null,null!==d&&(null===(m=p.deletions)?(p.deletions=[d],p.flags|=16):m.push(d)),n=p.child=h,t.memoizedState=null,n)}function ia(e,t){return(t=oJ({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function is(e,t,n,r){return null!==r&&nI(r),nj(t,e.child,null,n),e=ia(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function il(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),tZ(e.return,t,n)}function iu(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 ic(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(r1(e,t,r.children,n),0!=(2&(r=nY.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&il(e,n,t);else if(19===e.tag)il(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(te(nY,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(i=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===nq(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),iu(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===nq(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}iu(t,!0,n,null,o);break;case"together":iu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function id(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),i3|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(f(153));if(null!==t.child){for(n=oG(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=oG(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var ip=!1,ih=!1,im="function"==typeof WeakSet?WeakSet:Set,ig=null;function iy(e,t){var n=e.ref;if(null!==n){if("function"==typeof n)try{n(null)}catch(n){oI(e,t,n)}else n.current=null}}function iv(e,t,n){try{n()}catch(n){oI(e,t,n)}}var ib=!1;function iA(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&&iv(t,n,o)}i=i.next}while(i!==r)}}function iw(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 iE(e){var t=e.ref;if(null!==t){var n=e.stateNode;e=5===e.tag?D(n):n,"function"==typeof t?t(e):t.current=e}}function iC(e,t,n){if(tD&&"function"==typeof tD.onCommitFiberUnmount)try{tD.onCommitFiberUnmount(tk,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var i=r,o=i.destroy;i=i.tag,void 0!==o&&(0!=(2&i)?iv(t,n,o):0!=(4&i)&&iv(t,n,o)),r=r.next}while(r!==e)}break;case 1:if(iy(t,n),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){oI(t,n,e)}break;case 5:iy(t,n);break;case 4:q?iR(e,t,n):V&&V&&(n=eM(t=t.stateNode.containerInfo),eT(t,n))}}function iS(e,t,n){for(var r=t;;)if(iC(e,r,n),null===r.child||q&&4===r.tag){if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}else r.child.return=r,r=r.child}function iB(e){return 5===e.tag||3===e.tag||4===e.tag}function ix(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||iB(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function i_(e){if(q){e:{for(var t=e.return;null!==t;){if(iB(t))break e;t=t.return}throw Error(f(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,32&n.flags&&(eE(t),n.flags&=-33),n=ix(e),function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?ev(r,t,n):ep(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t);break;case 3:case 4:t=n.stateNode.containerInfo,n=ix(e),function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?eb(r,t,n):eh(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t);break;default:throw Error(f(161))}}}function iR(e,t,n){for(var r,i,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(f(160));switch(r=a.stateNode,a.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag)iS(e,o,n),i?ew(r,o.stateNode):eA(r,o.stateNode);else if(18===o.tag)i?eZ(r,o.stateNode):eV(r,o.stateNode);else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(iC(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function iM(e,t){if(q){switch(t.tag){case 0:case 11:case 14:case 15:iA(3,t,t.return),iw(3,t),iA(5,t,t.return);return;case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ey(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(f(162));n=t.memoizedProps,em(t.stateNode,null!==e?e.memoizedProps:n,n);return;case 3:Z&&null!==e&&e.memoizedState.isDehydrated&&eY(t.stateNode.containerInfo);return;case 13:case 19:iO(t);return}throw Error(f(163))}switch(t.tag){case 0:case 11:case 14:case 15:iA(3,t,t.return),iw(3,t),iA(5,t,t.return);return;case 12:case 22:case 23:return;case 13:case 19:iO(t);return;case 3:Z&&null!==e&&e.memoizedState.isDehydrated&&eY(t.stateNode.containerInfo)}e:if(V){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:eT((t=t.stateNode).containerInfo,t.pendingChildren);break e}throw Error(f(163))}}function iO(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new im),t.forEach(function(t){var r=oL.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function iP(e){for(;null!==ig;){var t=ig;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:ih||iw(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!ih){if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:tJ(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var o=t.updateQueue;null!==o&&ne(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=D(t.child.stateNode);break;case 1:n=t.child.stateNode}ne(t,a,n)}break;case 5:var s=t.stateNode;null===n&&4&t.flags&&eg(s,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(Z&&null===t.memoizedState){var l=t.alternate;if(null!==l){var u=l.memoizedState;if(null!==u){var c=u.dehydrated;null!==c&&eq(c)}}}break;default:throw Error(f(163))}ih||512&t.flags&&iE(t)}catch(e){oI(t,t.return,e)}}if(t===e){ig=null;break}if(null!==(n=t.sibling)){n.return=t.return,ig=n;break}ig=t.return}}function iT(e){for(;null!==ig;){var t=ig;if(t===e){ig=null;break}var n=t.sibling;if(null!==n){n.return=t.return,ig=n;break}ig=t.return}}function iI(e){for(;null!==ig;){var t=ig;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iw(4,t)}catch(e){oI(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){oI(t,i,e)}}var o=t.return;try{iE(t)}catch(e){oI(t,o,e)}break;case 5:var a=t.return;try{iE(t)}catch(e){oI(t,a,e)}}}catch(e){oI(t,t.return,e)}if(t===e){ig=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ig=s;break}ig=t.return}}var ik=0,iD=1,iF=2,iL=3,ij=4;if("function"==typeof Symbol&&Symbol.for){var iN=Symbol.for;ik=iN("selector.component"),iD=iN("selector.has_pseudo_class"),iF=iN("selector.role"),iL=iN("selector.test_id"),ij=iN("selector.text")}function iU(e){var t=$(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(f(364));return t}if(null===(e=ea(e)))throw Error(f(362));return e.stateNode.current}function iG(e,t){switch(t.$$typeof){case ik:if(e.type===t.value)return!0;break;case iD:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],i=e[n++],o=t[i];if(5!==r.tag||!eu(r)){for(;null!=o&&iG(r,o);)o=t[++i];if(i===t.length){t=!0;break e}for(r=r.child;null!==r;)e.push(r,i),r=r.sibling}}t=!1}return t;case iF:if(5===e.tag&&ec(e.stateNode,t.value))return!0;break;case ij:if((5===e.tag||6===e.tag)&&null!==(e=el(e))&&0<=e.indexOf(t.value))return!0;break;case iL:if(5===e.tag&&"string"==typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase())return!0;break;default:throw Error(f(365))}return!1}function iH(e){switch(e.$$typeof){case ik:return"<"+(R(e.value)||"Unknown")+">";case iD:return":has("+(iH(e)||"")+")";case iF:return'[role="'+e.value+'"]';case ij:return'"'+e.value+'"';case iL:return'[data-testname="'+e.value+'"]';default:throw Error(f(365))}}function iz(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],o=e[r++],a=t[o];if(5!==i.tag||!eu(i)){for(;null!=a&&iG(i,a);)a=t[++o];if(o===t.length)n.push(i);else for(i=i.child;null!==i;)e.push(i,o),i=i.sibling}}return n}function iJ(e,t){if(!eo)throw Error(f(363));e=iz(e=iU(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(5===r.tag)eu(r)||t.push(r.stateNode);else for(r=r.child;null!==r;)e.push(r),r=r.sibling}return t}var iW=Math.ceil,iK=d.ReactCurrentDispatcher,iQ=d.ReactCurrentOwner,iX=d.ReactCurrentBatchConfig,iY=0,iq=null,iV=null,iZ=0,i$=0,i0=e5(0),i1=0,i2=null,i3=0,i4=0,i6=0,i8=null,i9=null,i5=0,i7=1/0;function oe(){i7=tM()+500}var ot=!1,on=null,or=null,oi=!1,oo=null,oa=0,os=0,ol=null,ou=-1,oc=0;function of(){return 0!=(6&iY)?tM():-1!==ou?ou:ou=tM()}function od(e){return 0==(1&e.mode)?1:0!=(2&iY)&&0!==iZ?iZ&-iZ:null!==tH.transition?(0===oc&&(e=tm,0==(4194240&(tm<<=1))&&(tm=64),oc=e),oc):0!==(e=tC)?e:et()}function op(e,t,n){if(50<os)throw os=0,ol=null,Error(f(185));var r=oh(e,t);return null===r?null:(tw(r,t,n),(0==(2&iY)||r!==iq)&&(r===iq&&(0==(2&iY)&&(i4|=t),4===i1&&ob(r,iZ)),om(r,n),1===t&&0===iY&&0==(1&e.mode)&&(oe(),tj&&tG())),r)}function oh(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function om(e,t){var n,r=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-td(o),s=1<<a,l=i[a];-1===l?(0==(s&n)||0!=(s&r))&&(i[a]=function(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}}(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var i=tv(e,e===iq?iZ:0);if(0===i)null!==r&&tx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=r&&tx(r),1===t)0===e.tag?(n=oA.bind(null,e),tj=!0,tU(n)):tU(oA.bind(null,e)),er?ei(function(){0===iY&&tG()}):tB(tO,tG),r=null;else{switch(tS(i)){case 1:r=tO;break;case 4:r=tP;break;case 16:default:r=tT;break;case 536870912:r=tI}r=tB(r,og.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function og(e,t){if(ou=-1,oc=0,0!=(6&iY))throw Error(f(327));var n=e.callbackNode;if(oP()&&e.callbackNode!==n)return null;var r=tv(e,e===iq?iZ:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=o_(e,r);else{t=r;var i=iY;iY|=2;var o=oB();for((iq!==e||iZ!==t)&&(oe(),oC(e,t));;)try{!function(){for(;null!==iV&&!t_();)oR(iV)}();break}catch(t){oS(e,t)}tY(),iK.current=o,iY=i,null!==iV?t=0:(iq=null,iZ=0,t=i1)}if(0!==t){if(2===t&&0!==(i=tb(e))&&(r=i,t=oy(e,i)),1===t)throw n=i2,oC(e,0),ob(e,r),om(e,tM()),n;if(6===t)ob(e,r);else{if(i=e.current.alternate,0==(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(!tF(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)&&(2===(t=o_(e,r))&&0!==(o=tb(e))&&(r=o,t=oy(e,o)),1===t))throw n=i2,oC(e,0),ob(e,r),om(e,tM()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(f(345));case 2:case 5:oO(e,i9);break;case 3:if(ob(e,r),(130023424&r)===r&&10<(t=i5+500-tM())){if(0!==tv(e,0))break;if(((i=e.suspendedLanes)&r)!==r){of(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=K(oO.bind(null,e,i9),t);break}oO(e,i9);break;case 4:if(ob(e,r),(4194240&r)===r)break;for(i=-1,t=e.eventTimes;0<r;){var a=31-td(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=tM()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*iW(r/1960))-r)){e.timeoutHandle=K(oO.bind(null,e,i9),r);break}oO(e,i9);break;default:throw Error(f(329))}}}return om(e,tM()),e.callbackNode===n?og.bind(null,e):null}function oy(e,t){var n=i8;return e.current.memoizedState.isDehydrated&&(oC(e,t).flags|=256),2!==(e=o_(e,t))&&(t=i9,i9=n,null!==t&&ov(t)),e}function ov(e){null===i9?i9=e:i9.push.apply(i9,e)}function ob(e,t){for(t&=~i6,t&=~i4,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-td(t),r=1<<n;e[n]=-1,t&=~r}}function oA(e){if(0!=(6&iY))throw Error(f(327));oP();var t=tv(e,0);if(0==(1&t))return om(e,tM()),null;var n=o_(e,t);if(0!==e.tag&&2===n){var r=tb(e);0!==r&&(t=r,n=oy(e,r))}if(1===n)throw n=i2,oC(e,0),ob(e,t),om(e,tM()),n;if(6===n)throw Error(f(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,oO(e,i9),om(e,tM()),null}function ow(e){null!==oo&&0===oo.tag&&0==(6&iY)&&oP();var t=iY;iY|=1;var n=iX.transition,r=tC;try{if(iX.transition=null,tC=1,e)return e()}finally{tC=r,iX.transition=n,0==(6&(iY=t))&&tG()}}function oE(){i$=i0.current,e7(i0)}function oC(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==X&&(e.timeoutHandle=X,Q(n)),null!==iV)for(n=iV.return;null!==n;){var r=n;switch(nA(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ts();break;case 3:nK(),e7(tr),e7(tn),nZ();break;case 5:nX(r);break;case 4:nK();break;case 13:case 19:e7(nY);break;case 10:tV(r.type._context);break;case 22:case 23:oE()}n=n.return}if(iq=e,iV=e=oG(e.current,null),iZ=i$=t,i1=0,i2=null,i6=i4=i3=0,i9=i8=null,null!==t1){for(t=0;t<t1.length;t++)if(null!==(r=(n=t1[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}t1=null}return e}function oS(e,t){for(;;){var n=iV;try{if(tY(),n$.current=rF,n6){for(var r=n2.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}n6=!1}if(n1=0,n4=n3=n2=null,n8=!1,n9=0,iQ.current=null,null===n||null===n.return){i1=1,i2=t,iV=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=iZ,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=rK(a);if(null!==h){h.flags&=-257,rQ(h,a,s,o,t),1&h.mode&&rW(o,u,t),t=h,l=u;var m=t.updateQueue;if(null===m){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}if(0==(1&t)){rW(o,u,t),ox();break e}l=Error(f(426))}else if(nC&&1&s.mode){var y=rK(a);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),rQ(y,a,s,o,t),nI(l);break e}}o=l,4!==i1&&(i1=2),null===i8?i8=[o]:i8.push(o),l=rU(l,s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=rz(s,l,t);t5(s,v);break e;case 1:o=l;var b=s.type,A=s.stateNode;if(0==(128&s.flags)&&("function"==typeof b.getDerivedStateFromError||null!==A&&"function"==typeof A.componentDidCatch&&(null===or||!or.has(A)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=rJ(s,o,t);t5(s,w);break e}}s=s.return}while(null!==s)}oM(n)}catch(e){t=e,iV===n&&null!==n&&(iV=n=n.return);continue}break}}function oB(){var e=iK.current;return iK.current=rF,null===e?rF:e}function ox(){(0===i1||3===i1||2===i1)&&(i1=4),null===iq||0==(268435455&i3)&&0==(268435455&i4)||ob(iq,iZ)}function o_(e,t){var n=iY;iY|=2;var r=oB();for(iq===e&&iZ===t||oC(e,t);;)try{!function(){for(;null!==iV;)oR(iV)}();break}catch(t){oS(e,t)}if(tY(),iY=n,iK.current=r,null!==iV)throw Error(f(261));return iq=null,iZ=0,i1}function oR(e){var t=a(e.alternate,e,i$);e.memoizedProps=e.pendingProps,null===t?oM(e):iV=t,iQ.current=null}function oM(e){var n=e;do{var a=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(a=function(e,n,a){var s=n.pendingProps;switch(nA(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rZ(n),null;case 1:case 17:return ta(n.type)&&ts(),rZ(n),null;case 3:return s=n.stateNode,nK(),e7(tr),e7(tn),nZ(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(null===e||null===e.child)&&(nP(n)?rX(n):null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==nB&&(ov(nB),nB=null))),r(e,n),rZ(n),null;case 5:nX(n),a=nJ(nz.current);var l=n.type;if(null!==e&&null!=n.stateNode)i(e,n,l,s,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(null===n.stateNode)throw Error(f(166));return rZ(n),null}if(e=nJ(nG.current),nP(n)){if(!Z)throw Error(f(175));e=eW(n.stateNode,n.type,n.memoizedProps,a,e,n,!nS),n.updateQueue=e,null!==e&&rX(n)}else{var u=U(l,s,a,e,n);t(u,n,!1,!1),n.stateNode=u,H(u,l,s,a,e)&&rX(n)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return rZ(n),null;case 6:if(e&&null!=n.stateNode)o(e,n,e.memoizedProps,s);else{if("string"!=typeof s&&null===n.stateNode)throw Error(f(166));if(e=nJ(nz.current),a=nJ(nG.current),nP(n)){if(!Z)throw Error(f(176));if((a=eK(e=n.stateNode,s=n.memoizedProps,n,!nS))&&null!==(l=nw))switch(u=0!=(1&l.mode),l.tag){case 3:e0(l.stateNode.containerInfo,e,s,u);break;case 5:e1(l.type,l.memoizedProps,l.stateNode,e,s,u)}a&&rX(n)}else n.stateNode=W(s,e,a,n)}return rZ(n),null;case 13:if(e7(nY),s=n.memoizedState,nC&&null!==nE&&0!=(1&n.mode)&&0==(128&n.flags)){for(e=nE;e;)e=eG(e);return nT(),n.flags|=98560,n}if(null!==s&&null!==s.dehydrated){if(s=nP(n),null===e){if(!s)throw Error(f(318));if(!Z)throw Error(f(344));if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error(f(317));eQ(e,n)}else nT(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;return rZ(n),null}if(null!==nB&&(ov(nB),nB=null),0!=(128&n.flags))return n.lanes=a,n;return s=null!==s,a=!1,null===e?nP(n):a=null!==e.memoizedState,s&&!a&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&nY.current)?0===i1&&(i1=3):ox())),null!==n.updateQueue&&(n.flags|=4),rZ(n),null;case 4:return nK(),r(e,n),null===e&&ee(n.stateNode.containerInfo),rZ(n),null;case 10:return tV(n.type._context),rZ(n),null;case 19:if(e7(nY),null===(l=n.memoizedState))return rZ(n),null;if(s=0!=(128&n.flags),null===(u=l.rendering)){if(s)rV(l,!1);else{if(0!==i1||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(u=nq(e))){for(n.flags|=128,rV(l,!1),null!==(e=u.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=a,s=n.child;null!==s;)a=s,l=e,a.flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,l=u.dependencies,a.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),s=s.sibling;return te(nY,1&nY.current|2),n.child}e=e.sibling}null!==l.tail&&tM()>i7&&(n.flags|=128,s=!0,rV(l,!1),n.lanes=4194304)}}else{if(!s){if(null!==(e=nq(u))){if(n.flags|=128,s=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),rV(l,!0),null===l.tail&&"hidden"===l.tailMode&&!u.alternate&&!nC)return rZ(n),null}else 2*tM()-l.renderingStartTime>i7&&1073741824!==a&&(n.flags|=128,s=!0,rV(l,!1),n.lanes=4194304)}l.isBackwards?(u.sibling=n.child,n.child=u):(null!==(e=l.last)?e.sibling=u:n.child=u,l.last=u)}if(null!==l.tail)return n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=tM(),n.sibling=null,e=nY.current,te(nY,s?1&e|2:1&e),n;return rZ(n),null;case 22:case 23:return oE(),s=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==s&&(n.flags|=8192),s&&0!=(1&n.mode)?0!=(1073741824&i$)&&(rZ(n),q&&6&n.subtreeFlags&&(n.flags|=8192)):rZ(n),null;case 24:case 25:return null}throw Error(f(156,n.tag))}(a,n,i$))){iV=a;return}}else{if(null!==(a=function(e,t){switch(nA(t),t.tag){case 1:return ta(t.type)&&ts(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return nK(),e7(tr),e7(tn),nZ(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return nX(t),null;case 13:if(e7(nY),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(f(340));nT()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return e7(nY),null;case 4:return nK(),null;case 10:return tV(t.type._context),null;case 22:case 23:return oE(),null;default:return null}}(a,n))){a.flags&=32767,iV=a;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{i1=6,iV=null;return}}if(null!==(n=n.sibling)){iV=n;return}iV=n=e}while(null!==n);0===i1&&(i1=5)}function oO(e,t){var n=tC,r=iX.transition;try{iX.transition=null,tC=1,function(e,t,n){do oP();while(null!==oo);if(0!=(6&iY))throw Error(f(327));var r=e.finishedWork,i=e.finishedLanes;if(null!==r){if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(f(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.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-td(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===iq&&(iV=iq=null,iZ=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||oi||(oi=!0,a=tT,s=function(){return oP(),null},tB(a,s)),o=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||o){o=iX.transition,iX.transition=null;var a,s,l,u,c=tC;tC=1;var d=iY;iY|=4,iQ.current=null,function(e,t){for(j(e.containerInfo),ig=t;null!==ig;)if(t=(e=ig).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,ig=t;else for(;null!==ig;){e=ig;try{var n=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode,a=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:tJ(e.type,r),i);o.__reactInternalSnapshotBeforeUpdate=a}break;case 3:q&&e_(e.stateNode.containerInfo);break;default:throw Error(f(163))}}catch(t){oI(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,ig=t;break}ig=e.return}n=ib,ib=!1}(e,r),function(e,t){for(ig=t;null!==ig;){var n=(t=ig).deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e;q?iR(o,i,t):iS(o,i,t);var a=i.alternate;null!==a&&(a.return=null),i.return=null}catch(e){oI(i,t,e)}}if(n=t.child,0!=(12854&t.subtreeFlags)&&null!==n)n.return=t,ig=n;else for(;null!==ig;){t=ig;try{var s=t.flags;if(32&s&&q&&eE(t.stateNode),512&s){var l=t.alternate;if(null!==l){var u=l.ref;null!==u&&("function"==typeof u?u(null):u.current=null)}}if(8192&s)switch(t.tag){case 13:if(null!==t.memoizedState){var c=t.alternate;(null===c||null===c.memoizedState)&&(i5=tM())}break;case 22:var f=null!==t.memoizedState,d=t.alternate,p=null!==d&&null!==d.memoizedState;if(n=t,q){e:if(r=n,i=f,o=null,q)for(var h=r;;){if(5===h.tag){if(null===o){o=h;var m=h.stateNode;i?eC(m):eB(h.stateNode,h.memoizedProps)}}else if(6===h.tag){if(null===o){var g=h.stateNode;i?eS(g):ex(g,h.memoizedProps)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===r)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===r)break;for(;null===h.sibling;){if(null===h.return||h.return===r)break e;o===h&&(o=null),h=h.return}o===h&&(o=null),h.sibling.return=h.return,h=h.sibling}}if(f&&!p&&0!=(1&n.mode)){ig=n;for(var y=n.child;null!==y;){for(n=ig=y;null!==ig;){var v=(r=ig).child;switch(r.tag){case 0:case 11:case 14:case 15:iA(4,r,r.return);break;case 1:iy(r,r.return);var b=r.stateNode;if("function"==typeof b.componentWillUnmount){var A=r.return;try{b.props=r.memoizedProps,b.state=r.memoizedState,b.componentWillUnmount()}catch(e){oI(r,A,e)}}break;case 5:iy(r,r.return);break;case 22:if(null!==r.memoizedState){iT(n);continue}}null!==v?(v.return=r,ig=v):iT(n)}y=y.sibling}}}switch(4102&s){case 2:i_(t),t.flags&=-3;break;case 6:i_(t),t.flags&=-3,iM(t.alternate,t);break;case 4096:t.flags&=-4097;break;case 4100:t.flags&=-4097,iM(t.alternate,t);break;case 4:iM(t.alternate,t)}}catch(e){oI(t,t.return,e)}if(null!==(n=t.sibling)){n.return=t.return,ig=n;break}ig=t.return}}}(e,r,i),N(e.containerInfo),e.current=r,l=r,u=e,ig=l,function e(t,n,r){for(var i=0!=(1&t.mode);null!==ig;){var o=ig,a=o.child;if(22===o.tag&&i){var s=null!==o.memoizedState||ip;if(!s){var l=o.alternate,u=null!==l&&null!==l.memoizedState||ih;l=ip;var c=ih;if(ip=s,(ih=u)&&!c)for(ig=o;null!==ig;)u=(s=ig).child,22===s.tag&&null!==s.memoizedState?iI(o):null!==u?(u.return=s,ig=u):iI(o);for(;null!==a;)ig=a,e(a,n,r),a=a.sibling;ig=o,ip=l,ih=c}iP(t,n,r)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,ig=a):iP(t,n,r)}}(l,u,i),tR(),iY=d,tC=c,iX.transition=o}else e.current=r;if(oi&&(oi=!1,oo=e,oa=i),0===(o=e.pendingLanes)&&(or=null),function(e){if(tD&&"function"==typeof tD.onCommitFiberRoot)try{tD.onCommitFiberRoot(tk,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode,n),om(e,tM()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n(t[r]);if(ot)throw ot=!1,e=on,on=null,e;0!=(1&oa)&&0!==e.tag&&oP(),0!=(1&(o=e.pendingLanes))?e===ol?os++:(os=0,ol=e):os=0,tG()}}(e,t,n)}finally{iX.transition=r,tC=n}return null}function oP(){if(null!==oo){var e=tS(oa),t=iX.transition,n=tC;try{if(iX.transition=null,tC=16>e?16:e,null===oo)var r=!1;else{if(e=oo,oo=null,oa=0,0!=(6&iY))throw Error(f(331));var i=iY;for(iY|=4,ig=e.current;null!==ig;){var o=ig,a=o.child;if(0!=(16&ig.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(ig=u;null!==ig;){var c=ig;switch(c.tag){case 0:case 11:case 15:iA(8,c,o)}var d=c.child;if(null!==d)d.return=c,ig=d;else for(;null!==ig;){var p=(c=ig).sibling,h=c.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&en(n),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(c),c===u){ig=null;break}if(null!==p){p.return=h,ig=p;break}ig=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}ig=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,ig=a;else for(;null!==ig;){if(o=ig,0!=(2048&o.flags))switch(o.tag){case 0:case 11:case 15:iA(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,ig=v;break}ig=o.return}}var b=e.current;for(ig=b;null!==ig;){var A=(a=ig).child;if(0!=(2064&a.subtreeFlags)&&null!==A)A.return=a,ig=A;else for(a=b;null!==ig;){if(s=ig,0!=(2048&s.flags))try{switch(s.tag){case 0:case 11:case 15:iw(9,s)}}catch(e){oI(s,s.return,e)}if(s===a){ig=null;break}var w=s.sibling;if(null!==w){w.return=s.return,ig=w;break}ig=s.return}}if(iY=i,tG(),tD&&"function"==typeof tD.onPostCommitFiberRoot)try{tD.onPostCommitFiberRoot(tk,e)}catch(e){}r=!0}return r}finally{tC=n,iX.transition=t}}return!1}function oT(e,t,n){t=rz(e,t=rU(n,t),1),t8(e,t),t=of(),null!==(e=oh(e,1))&&(tw(e,1,t),om(e,t))}function oI(e,t,n){if(3===e.tag)oT(e,e,n);else for(;null!==t;){if(3===t.tag){oT(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===or||!or.has(r))){e=rJ(t,e=rU(n,e),1),t8(t,e),e=of(),null!==(t=oh(t,1))&&(tw(t,1,e),om(t,e));break}}t=t.return}}function ok(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=of(),e.pingedLanes|=e.suspendedLanes&n,iq===e&&(iZ&n)===n&&(4===i1||3===i1&&(130023424&iZ)===iZ&&500>tM()-i5?oC(e,0):i6|=n),om(e,t)}function oD(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tg,0==(130023424&(tg<<=1))&&(tg=4194304)));var n=of();null!==(e=oh(e,t))&&(tw(e,t,n),om(e,n))}function oF(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),oD(e,n)}function oL(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(f(314))}null!==r&&r.delete(t),oD(e,n)}function oj(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 oN(e,t,n,r){return new oj(e,t,n,r)}function oU(e){return!(!(e=e.prototype)||!e.isReactComponent)}function oG(e,t){var n=e.alternate;return null===n?((n=oN(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 oH(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)oU(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case m:return oz(n.children,i,o,t);case g:a=8,i|=8;break;case y:return(e=oN(12,n,t,2|i)).elementType=y,e.lanes=o,e;case w:return(e=oN(13,n,t,i)).elementType=w,e.lanes=o,e;case E:return(e=oN(19,n,t,i)).elementType=E,e.lanes=o,e;case B:return oJ(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:a=10;break e;case b:a=9;break e;case A:a=11;break e;case C:a=14;break e;case S:a=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=oN(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function oz(e,t,n,r){return(e=oN(7,e,r,t)).lanes=n,e}function oJ(e,t,n,r){return(e=oN(22,e,r,t)).elementType=B,e.lanes=n,e.stateNode={},e}function oW(e,t,n){return(e=oN(6,e,null,t)).lanes=n,e}function oK(e,t,n){return(t=oN(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oQ(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=X,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tA(0),this.expirationTimes=tA(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tA(0),this.identifierPrefix=r,this.onRecoverableError=i,Z&&(this.mutableSourceEagerHydrationData=null)}function oX(e,t,n,r,i,o,a,s,l){return e=new oQ(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=oN(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},t3(o),e}function oY(e){if(!e)return tt;e=e._reactInternals;e:{if(M(e)!==e||1!==e.tag)throw Error(f(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ta(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(f(171))}if(1===e.tag){var n=e.type;if(ta(n))return tu(e,n,t)}return t}function oq(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(f(188));throw Error(f(268,e=Object.keys(e).join(",")))}return null===(e=T(t))?null:e.stateNode}function oV(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function oZ(e,t){oV(e,t),(e=e.alternate)&&oV(e,t)}function o$(e){return null===(e=T(e))?null:e.stateNode}function o0(){return null}return a=function(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps||tr.current)r0=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return r0=!1,function(e,t,n){switch(t.tag){case 3:ie(t),nT();break;case 5:nQ(t);break;case 1:ta(t.type)&&tc(t);break;case 4:nW(t,t.stateNode.containerInfo);break;case 10:tq(t,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return te(nY,1&nY.current),t.flags|=128,null;if(0!=(n&t.child.childLanes))return io(e,t,n);return te(nY,1&nY.current),null!==(e=id(e,t,n))?e.sibling:null}te(nY,1&nY.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ic(e,t,n);t.flags|=128}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),te(nY,nY.current),!r)return null;break;case 22:case 23:return t.lanes=0,r6(e,t,n)}return id(e,t,n)}(e,t,n);r0=0!=(131072&e.flags)}}else r0=!1,nC&&0!=(1048576&t.flags)&&nv(t,nf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=to(t,tn.current);t$(t,n),i=rt(null,t,r,e,i,n);var o=rn();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,ta(r)?(o=!0,tc(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,t3(t),i.updater=nr,t.stateNode=i,i._reactInternals=t,ns(t,r,e,n),t=r7(null,t,r,!0,o,n)):(t.tag=0,nC&&o&&nb(t),r1(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),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)===A)return 11;if(e===C)return 14}return 2}(r),e=tJ(r,e),i){case 0:t=r9(null,t,r,e,n);break e;case 1:t=r5(null,t,r,e,n);break e;case 11:t=r2(null,t,r,e,n);break e;case 14:t=r3(null,t,r,tJ(r.type,e),n);break e}throw Error(f(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tJ(r,i),r9(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tJ(r,i),r5(e,t,r,i,n);case 3:e:{if(ie(t),null===e)throw Error(f(387));r=t.pendingProps,i=(o=t.memoizedState).element,t4(e,t),t7(t,r,null,n);var a=t.memoizedState;if(r=a.element,Z&&o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=it(e,t,r,n,i=Error(f(423)));break e}if(r!==i){t=it(e,t,r,n,i=Error(f(424)));break e}for(Z&&(nE=ez(t.stateNode.containerInfo),nw=t,nC=!0,nB=null,nS=!1),n=nN(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(nT(),r===i){t=id(e,t,n);break e}r1(e,t,r,n)}t=t.child}return t;case 5:return nQ(t),null===e&&nM(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,J(r,i)?a=null:null!==o&&J(r,o)&&(t.flags|=32),r8(e,t),r1(e,t,a,n),t.child;case 6:return null===e&&nM(t),null;case 13:return io(e,t,n);case 4:return nW(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=nj(t,null,r,n):r1(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tJ(r,i),r2(e,t,r,i,n);case 7:return r1(e,t,t.pendingProps,n),t.child;case 8:case 12:return r1(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,tq(t,r,a=i.value),null!==o){if(tF(o.value,a)){if(o.children===i.children&&!tr.current){t=id(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=t6(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),tZ(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(f(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),tZ(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}}r1(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,t$(t,n),r=r(i=t0(i)),t.flags|=1,r1(e,t,r,n),t.child;case 14:return i=tJ(r=t.type,t.pendingProps),i=tJ(r.type,i),r3(e,t,r,i,n);case 15:return r4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tJ(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ta(r)?(e=!0,tc(t)):e=!1,t$(t,n),no(t,r,i),ns(t,r,i,n),r7(null,t,r,!0,e,n);case 19:return ic(e,t,n);case 22:return r6(e,t,n)}throw Error(f(156,t.tag))},s.attemptContinuousHydration=function(e){13===e.tag&&(op(e,134217728,of()),oZ(e,134217728))},s.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=of(),n=od(e);op(e,n,t),oZ(e,n)}},s.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ty(t.pendingLanes);0!==n&&(tE(t,1|n),om(t,tM()),0==(6&iY)&&(oe(),tG()))}break;case 13:var r=of();ow(function(){return op(e,1,r)}),oZ(e,1)}},s.batchedUpdates=function(e,t){var n=iY;iY|=1;try{return e(t)}finally{0===(iY=n)&&(oe(),tj&&tG())}},s.createComponentSelector=function(e){return{$$typeof:ik,value:e}},s.createContainer=function(e,t,n,r,i,o,a){return oX(e,t,!1,null,n,r,i,o,a)},s.createHasPseudoClassSelector=function(e){return{$$typeof:iD,value:e}},s.createHydrationContainer=function(e,t,n,r,i,o,a,s,l){return(e=oX(n,r,!0,e,i,o,a,s,l)).context=oY(null),n=e.current,(o=t6(r=of(),i=od(n))).callback=null!=t?t:null,t8(n,o),e.current.lanes=i,tw(e,i,r),om(e,r),e},s.createPortal=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:h,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},s.createRoleSelector=function(e){return{$$typeof:iF,value:e}},s.createTestNameSelector=function(e){return{$$typeof:iL,value:e}},s.createTextSelector=function(e){return{$$typeof:ij,value:e}},s.deferredUpdates=function(e){var t=tC,n=iX.transition;try{return iX.transition=null,tC=16,e()}finally{tC=t,iX.transition=n}},s.discreteUpdates=function(e,t,n,r,i){var o=tC,a=iX.transition;try{return iX.transition=null,tC=1,e(t,n,r,i)}finally{tC=o,iX.transition=a,0===iY&&oe()}},s.findAllNodes=iJ,s.findBoundingRects=function(e,t){if(!eo)throw Error(f(363));t=iJ(e,t),e=[];for(var n=0;n<t.length;n++)e.push(es(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var r=n.x,i=r+n.width,o=n.y,a=o+n.height,s=t-1;0<=s;s--)if(t!==s){var l=e[s],u=l.x,c=u+l.width,d=l.y,p=d+l.height;if(r>=u&&o>=d&&i<=c&&a<=p){e.splice(t,1);break}if(r!==u||n.width!==l.width||p<o||d>a){if(!(o!==d||n.height!==l.height||c<r||u>i)){u>r&&(l.width+=u-r,l.x=r),c<i&&(l.width=i-u),e.splice(t,1);break}}else{d>o&&(l.height+=d-o,l.y=o),p<a&&(l.height=a-d),e.splice(t,1);break}}}return e},s.findHostInstance=oq,s.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=P(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){if(4!==t.tag){var n=e(t);if(null!==n)return n}t=t.sibling}return null}(e):null)?null:e.stateNode},s.findHostInstanceWithWarning=function(e){return oq(e)},s.flushControlled=function(e){var t=iY;iY|=1;var n=iX.transition,r=tC;try{iX.transition=null,tC=1,e()}finally{tC=r,iX.transition=n,0===(iY=t)&&(oe(),tG())}},s.flushPassiveEffects=oP,s.flushSync=ow,s.focusWithin=function(e,t){if(!eo)throw Error(f(363));for(t=Array.from(t=iz(e=iU(e),t)),e=0;e<t.length;){var n=t[e++];if(!eu(n)){if(5===n.tag&&ef(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},s.getCurrentUpdatePriority=function(){return tC},s.getFindAllNodesFailureDescription=function(e,t){if(!eo)throw Error(f(363));var n=0,r=[];e=[iU(e),0];for(var i=0;i<e.length;){var o=e[i++],a=e[i++],s=t[a];if((5!==o.tag||!eu(o))&&(iG(o,s)&&(r.push(iH(s)),++a>n&&(n=a)),a<t.length))for(o=o.child;null!==o;)e.push(o,a),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(iH(t[n]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},s.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?D(e.child.stateNode):e.child.stateNode:null},s.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:d.ReactCurrentDispatcher,findHostInstanceByFiber:o$,findFiberByHostInstance:e.findFiberByHostInstance||o0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{tk=t.inject(e),tD=t}catch(e){}e=!!t.checkDCE}}return e},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(e,t,n,r){if(!eo)throw Error(f(363));var i=ed(e=iJ(e,t),n,r).disconnect;return{disconnect:function(){i()}}},s.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},s.runWithPriority=function(e,t){var n=tC;try{return tC=e,t()}finally{tC=n}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(e,t,n,r){var i=t.current,o=of(),a=od(i);return n=oY(n),null===t.context?t.context=n:t.pendingContext=n,(t=t6(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),t8(i,t),null!==(e=op(i,a,o))&&t9(e,i,a),a},s}},4988:function(e,t,n){"use strict";e.exports=n(370)},5897:function(e,t,n){"use strict";e.exports=n(4557)},5323:function(e,t,n){"use strict";t.default=void 0;var r=o(n(8595)),i=o(n(5193));function o(e){return e&&e.__esModule?e:{default:e}}r.default,i.default;var a=r.default;t.default=a},7970:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(1887),n(9310),n(4134),n(4125),n(2344);class r{constructor(e){this.connection=e,this.selfMRN=this.connection.self}get(e){return e.includes(".")&&(e=e.replace(/\./g,"/")),("string"!=typeof e||""===e.trim())&&(e="/"),"/"!==e.charAt(0)&&(e="/".concat(e)),this.connection.fetch(e)}put(e,t){return e.includes(".")&&(e=e.replace(/\./g,"/")),("string"!=typeof e||""===e.trim())&&(e="/"),"/"!==e.charAt(0)&&(e="/".concat(e)),this.connection.fetch(e,{method:"PUT",mode:"cors",body:t&&"object"==typeof t?JSON.stringify(t):t})}getMeta(e){return this.get(e).then(e=>e&&"object"==typeof e&&e.hasOwnProperty("meta")?e.meta:null)}sources(){return this.get("/sources")}resources(){return this.get("/resources")}mrn(){return this.get("/self")}vessels(){return this.get("/vessels")}aircraft(){return this.get("/aircraft")}aton(){return this.get("/aton")}sar(){return this.get("/sar")}version(){return this.get("/version")}self(e){return("string"!=typeof e||"/"!==e.charAt(0))&&(e=""),this.connection.fetch("/vessels/self".concat(e))}vessel(e,t){return("string"!=typeof t||"/"!==t.charAt(0))&&(t=""),this.connection.fetch("/vessels/".concat(e).concat(t))}name(){return this.self("/name")}getGroup(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"self";return(("string"!=typeof t||"/"!==t.charAt(0))&&(t=""),"self"===n)?this.self("/".concat(e).concat(t)):this.vessel(n,"/".concat(e).concat(t))}communication(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("communication",e,t)}design(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("design",e,t)}electrical(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("electrical",e,t)}environment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("environment",e,t)}navigation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("navigation",e,t)}notifications(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("notifications",e,t)}performance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("performance",e,t)}propulsion(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("propulsion",e,t)}sails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("sails",e,t)}sensors(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("sensors",e,t)}steering(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("steering",e,t)}tanks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"self";return this.getGroup("tanks",e,t)}}t.default=r},8595:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PERMISSIONS_READWRITE=t.PERMISSIONS_READONLY=t.PERMISSIONS_DENY=t.AUTHENTICATION_REQUEST=void 0,n(3147),n(7940),n(1887),n(9310),n(4134),n(4125),n(329);var r=u(n(7625)),i=u(n(5178)),o=u(n(1981)),a=u(n(7970)),s=u(n(1464)),l=n(7988);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let d=(0,s.default)("signalk-js-sdk/Client"),p="__AUTHENTICATION_REQUEST__";t.AUTHENTICATION_REQUEST=p,t.PERMISSIONS_READWRITE="readwrite",t.PERMISSIONS_READONLY="readonly",t.PERMISSIONS_DENY="denied";class h extends r.default{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.options=f({hostname:"localhost",port:3e3,useTLS:!0,useAuthentication:!1,notifications:!0,version:"v1",autoConnect:!1,reconnect:!0,maxRetries:1/0,maxTimeBetweenRetries:2500,mdns:null,username:null,password:null,deltaStreamBehaviour:"none",subscriptions:[],wsKeepaliveInterval:0},e),this.api=null,this.connection=null,this.services=[],this.notifications={},this.requests={},this.fetchReady=null,Array.isArray(this.options.subscriptions)&&(this.subscribeCommands=this.options.subscriptions.filter(e=>g(e))),!0===this.options.notifications&&this.subscribeCommands.push({context:"vessels.self",subscribe:[{path:"notifications.*",policy:"instant"}]}),!0===this.options.autoConnect&&this.connect().catch(e=>this.emit("error",e))}get self(){return null===this.connection?null:this.connection.self}set(e,t){return this.options[e]=t,this}get(e){return this.options[e]||null}get retries(){return null===this.connection?0:this.connection.retries}requestDeviceAccess(e,t){let n="string"==typeof t?t:(0,l.v4)();return this.connection.fetch("/access/requests",{method:"POST",mode:"cors",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:n,description:e})}).then(e=>({clientId:n,response:e}))}respondToAccessRequest(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1y";return this.connection.fetch("/security/access/requests/".concat(e,"/").concat("denied"===t?"denied":"approved"),{method:"PUT",mode:"cors",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({expiration:n,permissions:t})})}authenticate(e,t){let n=this.request(p,{login:{username:e,password:t}});n.on("response",e=>{if(200===e.statusCode&&e.hasOwnProperty("login")&&"object"==typeof e.login&&e.login.hasOwnProperty("token"))return this.connection.setAuthenticated(e.login.token),this.emit("authenticated",{token:e.login.token});this.emit("error",Error("Error authenticating: status ".concat(e.statusCode)))}),n.send()}request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.requests.hasOwnProperty(e)||(this.requests[e]=new o.default(this.connection,e,t),d('Registered request "'.concat(e,'" with ID ').concat(this.requests[e].getRequestId()))),this.requests[e]}subscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null===this.connection)throw Error("Not connected");e&&!Array.isArray(e)&&"object"==typeof e&&e.hasOwnProperty("subscribe")&&(e=[e]),(e=e.filter(e=>g(e))).forEach(e=>{this.subscribeCommands.push(e)}),this.connection.subscribe(e)}unsubscribe(){if(null===this.connection)throw Error("Not connected");let{notifications:e}=this.options;this.subscribeCommands=!0===e?[{context:"vessels.self",subscribe:[{path:"notifications.*",policy:"instant"}]}]:[],this.connection.unsubscribe(),this.subscribeCommands.length>0&&this.connection.subscribe(this.subscribeCommands)}connect(){return null!==this.connection?(this.connection.reconnect(!0),Promise.resolve(this.connection)):new Promise((e,t)=>{this.connection=new i.default(this.options,this.subscribeCommands),this.connection.on("disconnect",e=>this.emit("disconnect",e)),this.connection.on("message",e=>this.processWSMessage(e)),this.connection.on("connectionInfo",e=>this.emit("connectionInfo",e)),this.connection.on("self",e=>this.emit("self",e)),this.connection.on("hitMaxRetries",()=>this.emit("hitMaxRetries")),this.connection.on("backOffBeforeReconnect",e=>this.emit("backOffBeforeReconnect",e)),this.connection.on("connect",()=>{this.getInitialNotifications(),this.emit("connect"),e(this.connection)}),this.connection.on("fetchReady",()=>{this.fetchReady=!0}),this.connection.on("error",e=>{this.emit("error",e),t(e)})})}disconnect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(null!==this.connection?(this.connection.on("disconnect",()=>{this.cleanupListeners(),this.connection=null}),this.connection.unsubscribe(),this.connection.disconnect()):this.cleanupListeners(),null!==this.api&&(this.api=null),!0===e)?Promise.resolve(this):this}cleanupListeners(){this.removeAllListeners("self"),this.removeAllListeners("connectionInfo"),this.removeAllListeners("message"),this.removeAllListeners("delta"),this.removeAllListeners("connect"),this.removeAllListeners("error"),this.removeAllListeners("hitMaxRetries"),this.removeAllListeners("backOffBeforeReconnect"),this.removeAllListeners("disconnect"),this.removeAllListeners("unsubscribe"),this.removeAllListeners("subscribe")}API(){return null===this.connection?Promise.reject(Error("There are no available connections. Please connect before you use the REST API.")):null!==this.api?Promise.resolve(this.api):new Promise(e=>{if(this.api=new a.default(this.connection),!0===this.fetchReady||!1===this.options.useAuthentication)return e(this.api);this.connection.on("fetchReady",()=>{e(this.api)})})}processWSMessage(e){this.emit("message",e),e&&"object"==typeof e&&e.hasOwnProperty("updates")&&(this.checkAndEmitNotificationsInDelta(e),this.emit("delta",e))}checkAndEmitNotificationsInDelta(e){if(!1===this.options.notifications||!e||"object"!=typeof e||!Array.isArray(e.updates))return;let t={};e.updates.forEach(e=>{(e.values||[]).forEach(e=>{"string"==typeof e.path&&e.path.includes("notifications.")&&(t[e.path.replace("notifications.","")]=f({},e.value))})}),Object.keys(t).forEach(e=>{if(!this.notifications.hasOwnProperty(e)||this.notifications[e].timestamp!==t[e].timestamp){this.notifications[e]=f({},t[e]);let n=f({path:e},this.notifications[e]);d("[checkAndEmitNotificationsInDelta] emitting notification: ".concat(JSON.stringify(n,null,2))),this.emit("notification",n)}})}getInitialNotifications(){!1!==this.options.notifications&&null!==this.connection&&(null===this.api&&(this.api=new a.default(this.connection)),this.api.notifications().then(e=>(this.notifications=f(f({},this.notifications),m(e)),Object.keys(this.notifications).forEach(e=>{let t=f({path:e},this.notifications[e]);d("[getInitialNotifications] emitting notification: ".concat(JSON.stringify(t,null,2))),this.emit("notification",t)}),this.notifications)).catch(e=>{console.error("[getInitialNotifications] error getting notifications: ".concat(e.message))}))}}t.default=h;let m=e=>{let t={},n=e,r="",i=e=>{r+="".concat(""===r?"":".").concat(e),(n=n[e])&&"object"==typeof n&&(n&&"object"==typeof n&&n.hasOwnProperty("value")?t[r]=Object.assign({},n.value):Object.keys(n).forEach(i))};return Object.keys(n).forEach(e=>i(e)),t},g=e=>!!(e&&"object"==typeof e&&e.hasOwnProperty("context")&&Array.isArray(e.subscribe))},5178:function(e,t,n){"use strict";var r=n(257);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SUPPORTED_STREAM_BEHAVIOUR=t.SUPPORTED_SEND_META=void 0,n(2344),n(3147),n(1887),n(9310),n(4134),n(4125),n(7042);var i=u(n(7625)),o=u(n(3819)),a=u(n(751)),s=u(n(1464)),l=u(n(1983));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let d=(0,s.default)("signalk-js-sdk/Connection"),p=void 0!==r&&null!=r.versions&&null!=r.versions.node,h={self:"self",all:"all",none:"none"};t.SUPPORTED_STREAM_BEHAVIOUR=h;let m={all:"all"};t.SUPPORTED_SEND_META=m;class g extends i.default{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];super(),this.options=e,this.httpURI=this.buildURI("http"),this.wsURI=this.buildURI("ws"),this.shouldDisconnect=!1,this.connected=!1,this.socket=null,this.lastMessage=-1,this.isConnecting=!1,this.wsKeepaliveIntervalMs=1e3*this.options.wsKeepaliveInterval,this._fetchReady=!1,this._bearerTokenPrefix=this.options.bearerTokenPrefix||"Bearer",this._authenticated=!1,this._retries=0,this._connection=null,this._self="",this._subscriptions=t,this.sendKeepaliveWithReschedule=this.sendKeepaliveWithReschedule.bind(this),this.onWSMessage=this._onWSMessage.bind(this),this.onWSOpen=this._onWSOpen.bind(this),this.onWSClose=this._onWSClose.bind(this),this.onWSError=this._onWSError.bind(this),this._token={kind:"",token:""},this.reconnect(!0)}get retries(){return this._retries}set self(e){null!==e&&this.emit("self",e),this._self=e}get self(){return this._self}set connectionInfo(e){null!==e&&this.emit("connectionInfo",e),this._connection=e,this.self=e.self}get connectionInfo(){return this._connection}buildURI(e){let{useTLS:t,hostname:n,port:r,version:i,deltaStreamBehaviour:o,sendMeta:a}=this.options,s=!0===t?"".concat(e,"s://"):"".concat(e,"://");if(s+=n+(80===r?"":":".concat(r))+"/signalk/"+i,"ws"===e){s+="/stream";let e=[];o&&h.hasOwnProperty(o)&&""!==h[o]&&e.push("subscribe=".concat(h[o])),a&&m.hasOwnProperty(a)&&""!==m[a]&&e.push("sendMeta=".concat(m[a])),e&&(s+="?"+e.join("&"))}return"http"===e&&(s+="/api"),s}state(){return{connecting:this.isConnecting,connected:this.connected,ready:this.fetchReady}}disconnect(){d("[disconnect] called"),this.shouldDisconnect=!0,this.reconnect()}backOffAndReconnect(){if(!0===this.isConnecting)return;let{maxTimeBetweenRetries:e}=this.options,t=this._retries<Math.round(e/250)?250*this._retries:e;if(0===t)return this.reconnect();this.emit("backOffBeforeReconnect",t),d("[backOffAndReconnect] waiting ".concat(t," ms before reconnecting")),setTimeout(()=>this.reconnect(),t)}reconnect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.isConnecting)return;if(null!==this.socket){d("[reconnect] closing socket"),this.socket.close();return}if(!1===e&&(this._retries+=1),!0!==e&&this._retries===this.options.maxRetries){this.emit("hitMaxRetries"),this.cleanupListeners();return}if(!0!==e&&!1===this.options.reconnect){d("[reconnect] Not reconnecting, for reconnect is false"),this.cleanupListeners();return}if(!0!==e&&!0===this.shouldDisconnect){d("[reconnect] not reconnecting, shouldDisconnect is true"),this.cleanupListeners();return}if(d("[reconnect] socket is ".concat(null===this.socket?"":"not ","NULL")),this._fetchReady=!1,this.shouldDisconnect=!1,this.isConnecting=!0,!1===this.options.useAuthentication){this._fetchReady=!0,this.emit("fetchReady"),this.initiateSocket();return}let t={method:"POST",mode:"cors",credentials:"same-origin",body:JSON.stringify({username:String(this.options.username||""),password:String(this.options.password||"")})};return this.fetch("/auth/login",t).then(e=>{if(!e||"object"!=typeof e||!e.hasOwnProperty("token"))throw Error("Unexpected response from auth endpoint: ".concat(JSON.stringify(e)));d("[reconnect] successful auth request: ".concat(JSON.stringify(e,null,2))),this._authenticated=!0,this._token={kind:"string"==typeof e.type&&""!==e.type.trim()?e.type:this._bearerTokenPrefix,token:e.token},this._fetchReady=!0,this.emit("fetchReady"),this.initiateSocket()}).catch(e=>(d("[reconnect] error logging in: ".concat(e.message,", reconnecting")),this.emit("error",e),this._retries+=1,this.isConnecting=!1,this.backOffAndReconnect()))}setAuthenticated(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"JWT";this.emit("fetchReady"),this._authenticated=!0,this._token={kind:t,token:e}}initiateSocket(){p&&this.options.useTLS&&!1===this.options.rejectUnauthorized?this.socket=new o.default(this.wsURI,{rejectUnauthorized:!1}):this.socket=new o.default(this.wsURI),this.socket.addEventListener("message",this.onWSMessage),this.socket.addEventListener("open",this.onWSOpen),this.socket.addEventListener("error",this.onWSError),this.socket.addEventListener("close",this.onWSClose)}cleanupListeners(){d("[cleanupListeners] resetting auth and removing listeners"),this._authenticated=!1,this._token={kind:"",token:""},this.removeAllListeners()}sendKeepaliveWithReschedule(){!0===this.connected&&(this.lastMessage<Date.now()-this.wsKeepaliveIntervalMs&&this.socket.send("{}"),setTimeout(this.sendKeepaliveWithReschedule,this.wsKeepaliveIntervalMs))}_onWSMessage(e){this.lastMessage=Date.now();let t=e.data;try{"string"==typeof t&&(t=JSON.parse(t))}catch(e){console.error("[Connection: ".concat(this.options.hostname,"] Error parsing data: ").concat(e.message))}t&&"object"==typeof t&&t.hasOwnProperty("name")&&t.hasOwnProperty("version")&&t.hasOwnProperty("roles")&&(this.connectionInfo=t),this.emit("message",t)}_onWSOpen(){if(this.connected=!0,this.isConnecting=!1,this._subscriptions.length>0){let e=y(this._subscriptions);this.subscribe(e)}this._retries=0,this.options.wsKeepaliveInterval>0&&this.sendKeepaliveWithReschedule(),this.emit("connect")}_onWSError(e){d("[_onWSError] WS error",e.message||""),this.emit("error",e),this.backOffAndReconnect()}_onWSClose(e){d("[_onWSClose] called with wsURI:",this.wsURI),this.socket.removeEventListener("message",this.onWSMessage),this.socket.removeEventListener("open",this.onWSOpen),this.socket.removeEventListener("error",this.onWSError),this.socket.removeEventListener("close",this.onWSClose),this.connected=!1,this.isConnecting=!1,this.socket=null,this.emit("disconnect",e),this.backOffAndReconnect()}unsubscribe(){if(!0!==this.connected||null===this.socket){d("Not connected to socket");return}this.send(JSON.stringify({context:"*",unsubscribe:[{path:"*"}]}))}subscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!Array.isArray(e)&&e&&"object"==typeof e&&e.hasOwnProperty("subscribe")&&(e=[e]),e.forEach(e=>{this.send(JSON.stringify(e))})}send(e){if(!0!==this.connected||null===this.socket)return Promise.reject(Error("Not connected to WebSocket"));if("string"==typeof e)try{e=JSON.parse(e)}catch(e){d("[send] data is string but not valid JSON: ".concat(e.message))}let t=e&&"object"==typeof e;try{t&&(e=JSON.stringify(e))}catch(e){return Promise.reject(e)}return d("Sending data to socket: ".concat(e)),Promise.resolve(this.socket.send(e))}fetch(e,t){"/"!==e.charAt(0)&&(e="/".concat(e)),t&&"object"==typeof t||(t={method:"GET"}),t.headers&&"object"==typeof t.headers||(t.headers={Accept:"application/json","Content-Type":"application/json"}),!0!==this._authenticated||e.includes("auth/login")||(t.headers=f(f({},t.headers),{},{Authorization:"".concat(this._token.kind," ").concat(this._token.token)}),t.credentials="same-origin",t.mode="cors",d("[fetch] enriching fetch options with in-memory token")),p&&this.options.useTLS&&!1===this.options.rejectUnauthorized&&(t.agent=new l.default.Agent({rejectUnauthorized:!1}));let n="".concat(this.httpURI).concat(e);return n.includes("/api/auth/login")&&(n=n.replace("/api/auth/login","/auth/login")),n.includes("/api/access/requests")&&(n=n.replace("/api/access/requests","/access/requests")),n.includes("/signalk/v1/api/security")&&(n=n.replace("/signalk/v1/api/security","/security")),d("[fetch] ".concat(t.method||"GET"," ").concat(n," ").concat(JSON.stringify(t,null,2))),(0,a.default)(n,t).then(e=>{if(!e.ok)throw Error("Error fetching ".concat(n,": ").concat(e.status," ").concat(e.statusText));return e.headers.get("content-type").includes("application/json")?e.json():e.text()})}}t.default=g;let y=e=>{let t={};return e.forEach(e=>{Array.isArray(t[e.context])||(t[e.context]=[]),t[e.context]=t[e.context].concat(e.subscribe)}),Object.keys(t).map(e=>{let n={context:e,subscribe:t[e]};if(n.subscribe.length>0){let e=[];n.subscribe=n.subscribe.reduce((t,n)=>{if(e.includes(n.path)){let e=t.findIndex(e=>e.path===n.path);-1!==e&&t.splice(e,1)}else e.push(n.path);return t.push(n),t},[])}return n})}},5193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SKServer=void 0,n(1887),n(9310),n(127),n(5998),n(4134),n(3602),n(2344),n(7042);var r=o(n(7625)),i=o(n(8595));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class l{constructor(e){this._roles=e.roles||["master","main"],this._self=e.self||"",this._version=e.version||"0.0.0",this._hostname=e.hostname,this._port=e.port}get roles(){return this._roles}get self(){return this._self}get version(){return this._version}get hostname(){return this._hostname}get port(){return this._port}isMain(){return this._roles.includes("main")}isMaster(){return this._roles.includes("master")}createClient(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i.default(s(s({},e),{},{hostname:this._hostname,port:this._port}))}}t.SKServer=l;class u extends r.default{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4;if(super(),this.found=[],!e||"object"!=typeof e)throw Error("No mDNS provider given");if(Object.keys(e).join(",").startsWith("_server,_registry"))return this.discoverWithBonjour(e,t);if(Object.keys(e).join(",").startsWith("dns_sd,Advertisement,createAdvertisement,Browser"))return this.discoverWithMdns(e,t);throw Error("Unrecognized mDNS provider given")}discoverWithBonjour(e,t){let n=e.find({type:"signalk-http"});n.on("up",e=>this.handleDiscoveredService(e,s(s({},e.txt),{},{name:e.name||"",hostname:e.host||"",port:parseInt(e.port,10),provider:"bonjour"}))),setTimeout(()=>{0===this.found.length&&this.emit("timeout"),n.stop()},t),n.start()}discoverWithMdns(e,t){let n=e.createBrowser(e.tcp("_signalk-http"));n.on("serviceUp",e=>this.handleDiscoveredService(e,s(s({},e.txtRecord),{},{hostname:e.host||"",port:parseInt(e.port,10),provider:"mdns"}))),n.on("error",e=>this.handleDiscoveryError(e)),setTimeout(()=>{0===this.found.length&&this.emit("timeout"),n.stop()},t),n.start()}handleDiscoveryError(e){console.error("Error during discovery: ".concat(e.message))}handleDiscoveredService(e,t){"string"==typeof t.roles&&(t.roles=t.roles.split(",").map(e=>e.trim().toLowerCase())),t.roles=Array.isArray(t.roles)?t.roles:[];let n=t.hostname;Array.isArray(e.addresses)&&(n=e.addresses.reduce((e,t)=>(t&&"string"==typeof t&&t.includes(".")&&(e=t),e),t.hostname)),""!==n.trim()&&(t.hostname=n);let r=new l(t);this.found.push(r),this.emit("found",r)}}t.default=u},1981:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(7625)),i=a(n(1464)),o=n(7988);function a(e){return e&&e.__esModule?e:{default:e}}function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let u=(0,i.default)("signalk-js-sdk/Request");class c extends r.default{constructor(e,t,n){super(),this.connection=e,this.requestId=(0,o.v4)(),this.name=t,this.body=n,this.responses=[],this.sent=!1,this.connection.on("message",e=>{e&&"object"==typeof e&&e.hasOwnProperty("requestId")&&e.requestId===this.requestId&&this.addResponse(e)})}query(){let e={requestId:this.requestId,query:!0};u("Sending query: ".concat(JSON.stringify(e,null,2))),this.connection.send(e)}send(){if(!0===this.sent)return;let e=l({requestId:this.requestId},this.body);u("Sending request: ".concat(JSON.stringify(e,null,2))),this.connection.send(e)}addResponse(e){u('Got response for request "'.concat(this.name,'": ').concat(JSON.stringify(e,null,2)));let t=new Date().toISOString();this.responses.push({response:e,receivedAt:t}),this.emit("response",l(l({},e),{},{request:{receivedAt:t,name:this.name,requestId:this.requestId}}))}getRequestId(){return this.requestId}}t.default=c},4578:function(e,t,n){e.exports=n(5323)},7988:function(e,t,n){"use strict";n.r(t),n.d(t,{NIL:function(){return M},parse:function(){return g},stringify:function(){return d},v1:function(){return m},v3:function(){return B},v4:function(){return x},v5:function(){return R},validate:function(){return u},version:function(){return O}});var r,i,o,a=new Uint8Array(16);function s(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(a)}for(var l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(e){return"string"==typeof e&&l.test(e)},c=[],f=0;f<256;++f)c.push((f+256).toString(16).substr(1));var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n},p=0,h=0,m=function(e,t,n){var r=t&&n||0,a=t||Array(16),l=(e=e||{}).node||i,u=void 0!==e.clockseq?e.clockseq:o;if(null==l||null==u){var c=e.random||(e.rng||s)();null==l&&(l=i=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==u&&(u=o=(c[6]<<8|c[7])&16383)}var f=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,g=f-p+(m-h)/1e4;if(g<0&&void 0===e.clockseq&&(u=u+1&16383),(g<0||f>p)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");p=f,h=m,o=u;var y=((268435455&(f+=122192928e5))*1e4+m)%4294967296;a[r++]=y>>>24&255,a[r++]=y>>>16&255,a[r++]=y>>>8&255,a[r++]=255&y;var v=f/4294967296*1e4&268435455;a[r++]=v>>>8&255,a[r++]=255&v,a[r++]=v>>>24&15|16,a[r++]=v>>>16&255,a[r++]=u>>>8|128,a[r++]=255&u;for(var b=0;b<6;++b)a[r+b]=l[b];return t||d(a)},g=function(e){if(!u(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function y(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=g(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return d(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function v(e){return(e+64>>>9<<4)+14+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function A(e,t,n,r,i,o){var a;return b((a=b(b(t,e),b(r,o)))<<i|a>>>32-i,n)}function w(e,t,n,r,i,o,a){return A(t&n|~t&r,e,t,i,o,a)}function E(e,t,n,r,i,o,a){return A(t&r|n&~r,e,t,i,o,a)}function C(e,t,n,r,i,o,a){return A(t^n^r,e,t,i,o,a)}function S(e,t,n,r,i,o,a){return A(n^(t|~r),e,t,i,o,a)}var B=y("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,l=r,u=i,c=o;n=w(n,r,i,o,e[a],7,-680876936),o=w(o,n,r,i,e[a+1],12,-389564586),i=w(i,o,n,r,e[a+2],17,606105819),r=w(r,i,o,n,e[a+3],22,-1044525330),n=w(n,r,i,o,e[a+4],7,-176418897),o=w(o,n,r,i,e[a+5],12,1200080426),i=w(i,o,n,r,e[a+6],17,-1473231341),r=w(r,i,o,n,e[a+7],22,-45705983),n=w(n,r,i,o,e[a+8],7,1770035416),o=w(o,n,r,i,e[a+9],12,-1958414417),i=w(i,o,n,r,e[a+10],17,-42063),r=w(r,i,o,n,e[a+11],22,-1990404162),n=w(n,r,i,o,e[a+12],7,1804603682),o=w(o,n,r,i,e[a+13],12,-40341101),i=w(i,o,n,r,e[a+14],17,-1502002290),r=w(r,i,o,n,e[a+15],22,1236535329),n=E(n,r,i,o,e[a+1],5,-165796510),o=E(o,n,r,i,e[a+6],9,-1069501632),i=E(i,o,n,r,e[a+11],14,643717713),r=E(r,i,o,n,e[a],20,-373897302),n=E(n,r,i,o,e[a+5],5,-701558691),o=E(o,n,r,i,e[a+10],9,38016083),i=E(i,o,n,r,e[a+15],14,-660478335),r=E(r,i,o,n,e[a+4],20,-405537848),n=E(n,r,i,o,e[a+9],5,568446438),o=E(o,n,r,i,e[a+14],9,-1019803690),i=E(i,o,n,r,e[a+3],14,-187363961),r=E(r,i,o,n,e[a+8],20,1163531501),n=E(n,r,i,o,e[a+13],5,-1444681467),o=E(o,n,r,i,e[a+2],9,-51403784),i=E(i,o,n,r,e[a+7],14,1735328473),r=E(r,i,o,n,e[a+12],20,-1926607734),n=C(n,r,i,o,e[a+5],4,-378558),o=C(o,n,r,i,e[a+8],11,-2022574463),i=C(i,o,n,r,e[a+11],16,1839030562),r=C(r,i,o,n,e[a+14],23,-35309556),n=C(n,r,i,o,e[a+1],4,-1530992060),o=C(o,n,r,i,e[a+4],11,1272893353),i=C(i,o,n,r,e[a+7],16,-155497632),r=C(r,i,o,n,e[a+10],23,-1094730640),n=C(n,r,i,o,e[a+13],4,681279174),o=C(o,n,r,i,e[a],11,-358537222),i=C(i,o,n,r,e[a+3],16,-722521979),r=C(r,i,o,n,e[a+6],23,76029189),n=C(n,r,i,o,e[a+9],4,-640364487),o=C(o,n,r,i,e[a+12],11,-421815835),i=C(i,o,n,r,e[a+15],16,530742520),r=C(r,i,o,n,e[a+2],23,-995338651),n=S(n,r,i,o,e[a],6,-198630844),o=S(o,n,r,i,e[a+7],10,1126891415),i=S(i,o,n,r,e[a+14],15,-1416354905),r=S(r,i,o,n,e[a+5],21,-57434055),n=S(n,r,i,o,e[a+12],6,1700485571),o=S(o,n,r,i,e[a+3],10,-1894986606),i=S(i,o,n,r,e[a+10],15,-1051523),r=S(r,i,o,n,e[a+1],21,-2054922799),n=S(n,r,i,o,e[a+8],6,1873313359),o=S(o,n,r,i,e[a+15],10,-30611744),i=S(i,o,n,r,e[a+6],15,-1560198380),r=S(r,i,o,n,e[a+13],21,1309151649),n=S(n,r,i,o,e[a+4],6,-145523070),o=S(o,n,r,i,e[a+11],10,-1120210379),i=S(i,o,n,r,e[a+2],15,718787259),r=S(r,i,o,n,e[a+9],21,-343485551),n=b(n,s),r=b(r,l),i=b(i,u),o=b(o,c)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(v(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}),x=function(e,t,n){var r=(e=e||{}).random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return d(r)};function _(e,t){return e<<t|e>>>32-t}var R=y("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=Array(o),s=0;s<o;++s){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*s+4*u]<<24|e[64*s+4*u+1]<<16|e[64*s+4*u+2]<<8|e[64*s+4*u+3];a[s]=l}a[o-1][14]=(e.length-1)*8/4294967296,a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=(e.length-1)*8&4294967295;for(var c=0;c<o;++c){for(var f=new Uint32Array(80),d=0;d<16;++d)f[d]=a[c][d];for(var p=16;p<80;++p)f[p]=_(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var h=n[0],m=n[1],g=n[2],y=n[3],v=n[4],b=0;b<80;++b){var A=Math.floor(b/20),w=_(h,5)+function(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}(A,m,g,y)+v+t[A]+f[b]>>>0;v=y,y=g,g=_(m,30)>>>0,m=h,h=w}n[0]=n[0]+h>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+v>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),M="00000000-0000-0000-0000-000000000000",O=function(e){if(!u(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},9196:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)o.push(n[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2957:function(e,t,n){"use strict";let r=n(9196),i=n(8848),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|h(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);let i=function(e){var t;if(s.isBuffer(e)){let t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|p(e))}function f(e){let t=e.length<0?0:0|p(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){let r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return D(e).length;default:if(i)return r?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=j[e[r]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":var o,a;return o=t,a=n,0===o&&a===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let r=e.slice(t,n),i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else -1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return -1}function b(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(n=e[i+1]))==128&&(l=(31&t)<<6|63&n)>127&&(o=l);break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(l=(15&t)<<12|(63&n)<<6|63&r)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function A(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function E(e,t,n,r,i){O(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function C(e,t,n,r,i){O(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function S(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function B(e,t,n,r,o){return t=+t,n>>>=0,o||S(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function x(e,t,n,r,o){return t=+t,n>>>=0,o||S(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(L(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<l;++e)if(u[e]!==c[e]){o=u[e],a=c[e];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){var i,o,a,s,l,u,c,f;if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let d=this.length-t;if((void 0===n||n>d)&&(n=d),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let p=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let i;n=Number(n)||0;let o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;let a=t.length;for(r>a/2&&(r=a/2),i=0;i<r;++i){let r=parseInt(t.substr(2*i,2),16);if(r!=r)break;e[n+i]=r}return i}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,F(k(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=n,F(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,a,s);case"base64":return l=t,u=n,F(D(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,f=n,F(function(e,t){let n,r;let i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,f);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=N(function(e){P(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&T(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=N(function(e){P(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&T(e,this.length-8);let r=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||A(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=N(function(e){P(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&T(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=N(function(e){P(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&T(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;w(this,e,t,n,r,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;w(this,e,t,n,r,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=N(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=N(function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=N(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=N(function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return x(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return x(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){let i;if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){let t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{let o=s.isBuffer(e)?e:s.from(e,r),a=o.length;if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};let _={};function R(e,t,n){_[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function M(e){let t="",n=e.length,r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function O(e,t,n,r,i,o){if(e>n||e<t){let r;let i="bigint"==typeof t?"n":"";throw r=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new _.ERR_OUT_OF_RANGE("value",r,e)}P(i,"offset"),(void 0===r[i]||void 0===r[i+o])&&T(i,r.length-(o+1))}function P(e,t){if("number"!=typeof e)throw new _.ERR_INVALID_ARG_TYPE(t,"number",e)}function T(e,t,n){if(Math.floor(e)!==e)throw P(e,n),new _.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new _.ERR_BUFFER_OUT_OF_BOUNDS;throw new _.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),R("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),R("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?i=M(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=M(i)),i+="n"),r+=` It must be ${t}. Received ${i}`},RangeError);let I=/[^+/0-9A-Za-z-_]/g;function k(e,t){let n;t=t||1/0;let r=e.length,i=null,o=[];for(let a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function D(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let j=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function N(e){return"undefined"==typeof BigInt?U:e}function U(){throw Error("BigInt not supported")}},4365:function(e,t,n){"use strict";function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(r&&(r+=" "),r+=t);return r}n.r(t),n.d(t,{clsx:function(){return r}}),t.default=r},751:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function f(e){var t=new FileReader,n=c(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var n;t.arrayBuffer&&t.blob&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,n,r=u(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=c(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=o(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[o(e)]},l.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},l.prototype.set=function(e,t){this.map[o(e)]=a(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),s(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),s(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var h=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){var n,r,i=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),h.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},p.call(m.prototype),p.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];y.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(n,r){return new Promise(function(i,o){var a=new m(n,r);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL"),i(new y("response"in s?s.response:s.responseText,n))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}b.polyfill=!0,r.fetch||(r.fetch=b,r.Headers=l,r.Request=m,r.Response=y),e.Headers=l,e.Request=m,e.Response=y,e.fetch=b,Object.defineProperty(e,"__esModule",{value:!0})})({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},9271:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u<t&&u>=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},1464:function(e,t,n){let r;var i=n(257);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(r=!1,()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(7244)(t);let{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7244:function(e,t,n){e.exports=function(e){function t(e){let n,i,o;let a=null;function s(...e){if(!s.enabled)return;let r=Number(new Date),i=r-(n||r);s.diff=i,s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";o++;let i=t.formatters[r];if("function"==typeof i){let t=e[o];n=i.call(s,t),e.splice(o,1),o--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let n,r;if("*"===e[e.length-1])return!0;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(5169),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},7625:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,a),!0}for(u=1,l=Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(d=1,l=Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},8848:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?5960464477539062e-23:0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=d/l:t+=d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},3819:function(e,t,n){var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:void 0!==n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),e.exports=r},5169:function(e){function t(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}e.exports=function(e,n){n=n||{};var r,i,o=typeof e;if("string"===o&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===o&&isFinite(e))return n.long?(r=Math.abs(e))>=864e5?t(e,r,864e5,"day"):r>=36e5?t(e,r,36e5,"hour"):r>=6e4?t(e,r,6e4,"minute"):r>=1e3?t(e,r,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},257:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(4227)},1085:function(e){!function(){"use strict";var t={864:function(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){var i;function o(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&m(e,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else for(var u=l.length,c=h(l,u),n=0;n<u;++n)r(c[n],this,t);return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(864);e.exports=i}()},1983:function(e,t,n){!function(){var t={528:function(e,t,n){var r=n(685),i=n(310),o=e.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),r.request.call(this,e,t)},o.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},685:function(e){"use strict";e.exports=n(2251)},310:function(e){"use strict";e.exports=n(3813)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete r[e]}return o.exports}i.ab="//";var o=i(528);e.exports=o}()},3813:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(5605)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete r[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=y(e));var r,i,o,a,s,l,u,c,f,d=(i=(r=e).auth,o=r.hostname,a=r.protocol||"",s=r.pathname||"",l=r.hash||"",u=r.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",r.host?c=i+r.host:o&&(c=i+(~o.indexOf(":")?"["+o+"]":o),r.port&&(c+=":"+r.port)),u&&"object"==typeof u&&(u=t.encode(u)),f=r.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),r.slashes||(!a||n.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:l});return""+d.protocol+d.host+d.pathname+d.search+d.hash}var a="http://",s=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var n="string"==typeof e?y(e):e;e="object"==typeof e?r(e):e;var i=y(t),o="";n.protocol&&!n.slashes&&(o=n.protocol,e=e.replace(n.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&i.protocol&&(o="",i.slashes||(o=i.protocol,t=t.replace(i.protocol,"")));var c=e.match(l);c&&!i.protocol&&(e=e.substr((o=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var f=new URL(e,s+"/"),d=new URL(t,f).toString().replace(s,""),p=i.protocol||n.protocol;return p+=n.slashes||i.slashes?"//":"",!o&&p?d=d.replace(a,p):o&&(d=d.replace(a,"")),u.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),o&&(d=o+("/"===d[0]?d.substr(1):d)),d}function f(){}f.prototype.parse=y,f.prototype.format=r,f.prototype.resolve=c,f.prototype.resolveObject=c;var d=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,h=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof f)return e;var o=(e=e.trim()).match(p);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(h),l=m.test(e),u="";a&&(d.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,d.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var c,y=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=y&&y[1],b=new f,A="",w="";try{c=new URL(e)}catch(t){A=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!w,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=A?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var E=e.split("#");!b.search&&~E[0].indexOf("?")&&(b.search="?"),b.hash||""!==E[1]||(b.hash="#"),b.query=n?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=w+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),A&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!d.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=w?""+b.pathname+b.search+b.hash:r(b);var C=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~C.indexOf(e)||(b[e]=b[e]||null)}),b}o.parse=y,o.format=r,o.resolve=c,o.resolveObject=function(e,t){return y(c(e,t))},o.Url=f}(),e.exports=o}()},4227:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function f(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},5605:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u<l;++u){var c,f,d,p,h=e[u].replace(a,"%20"),m=h.indexOf(r);(m>=0?(c=h.substr(0,m),f=h.substr(m+1)):(c=h,f=""),d=decodeURIComponent(c),p=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(o,d))?t(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(i(e),function(i){var s=encodeURIComponent(t(i))+a;return n(e[i])?r(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(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}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i={};i.decode=i.parse=r(815),i.encode=i.stringify=r(577),e.exports=i}()},7501:function(e,t,n){var r=n(257);!function(){var t={782:function(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}}},646:function(e){"use strict";let t={};function n(e,n,r){r||(r=Error);class i extends r{constructor(e,t,r){super("string"==typeof n?n:n(e,t,r))}}i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let n=e.length;return(e=e.map(e=>String(e)),n>2)?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var i,o,a,s;let l,u;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(l="must not be",t=t.replace(/^not /,"")):l="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)u=`The ${e} ${l} ${r(t,"type")}`;else{let n=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";u=`The "${e}" ${n} ${l} ${r(t,"type")}`}return u+`. Received type ${typeof n}`},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,n){"use strict";var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var o=n(709),a=n(337);n(782)(c,o);for(var s=i(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,n){"use strict";e.exports=i;var r=n(170);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(782)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},709:function(e,t,i){"use strict";e.exports=x,x.ReadableState=B,i(361).EventEmitter;var o,a,s,l,u,c=function(e,t){return e.listeners(t).length},f=i(678),d=i(300).Buffer,p=n.g.Uint8Array||function(){},h=i(837);a=h&&h.debuglog?h.debuglog("stream"):function(){};var m=i(379),g=i(25),y=i(776).getHighWaterMark,v=i(646).q,b=v.ERR_INVALID_ARG_TYPE,A=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,E=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(x,f);var C=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function B(e,t,n){o=o||i(403),e=e||{},"boolean"!=typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function x(e){if(o=o||i(403),!(this instanceof x))return new x(e);var t=this instanceof o;this._readableState=new B(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function _(e,t,n,r,i){a("readableAddChunk",t);var o,s,l,u,c,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,f);else{if(i||(o=f,s=t,d.isBuffer(s)||s instanceof p||"string"==typeof s||void 0===s||o.objectMode||(l=new b("chunk",["string","Buffer","Uint8Array"],s)),c=l),c)C(e,c);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===d.prototype||(u=t,t=d.from(u)),r)f.endEmitted?C(e,new E):R(e,f,t,!0);else if(f.ended)C(e,new A);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!n?(t=f.decoder.write(t),f.objectMode||0!==t.length?R(e,f,t,!1):T(e,f)):R(e,f,t,!1)}}else r||(f.reading=!1,T(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function R(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),T(e,t)}function M(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var n;t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function O(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(P,e))}function P(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function T(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function k(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){a("readable nexttick read 0"),e.read(0)}function F(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function N(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function G(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=g.destroy,x.prototype._undestroy=g.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=d.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},x.prototype.unshift=function(e){return _(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){s||(s=i(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},x.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,n=this._readableState,r=e;if(0!==e&&(n.emittedReadable=!1),0===e&&n.needReadable&&((0!==n.highWaterMark?n.length>=n.highWaterMark:n.length>0)||n.ended))return a("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):O(this),null;if(0===(e=M(e,n))&&n.ended)return 0===n.length&&N(this),null;var i=n.needReadable;return a("need readable",i),(0===n.length||n.length-e<n.highWaterMark)&&a("length less than watermark",i=!0),n.ended||n.reading?a("reading or ended",i=!1):i&&(a("do read"),n.reading=!0,n.sync=!0,0===n.length&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(e=M(r,n))),null===(t=e>0?j(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){C(this,new w("_read()"))},x.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===r.stdout||e===r.stderr?m:s;function s(){a("onend"),e.end()}i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",function t(r,o){a("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",m),n.removeListener("data",f),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=function(){var e=n._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(n,"data")&&(e.flowing=!0,L(n))};e.on("drain",l);var u=!1;function f(t){a("ondata");var r=e.write(t);a("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==G(i.pipes,e))&&!u&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===c(e,"error")&&C(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),i.flowing||(a("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=G(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},x.prototype.on=function(e,t){var n=f.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?O(this):i.reading||r.nextTick(D,this)),n},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var n=f.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(k,this),n},x.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&r.nextTick(k,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(F,this,e))),e.paused=!1,this},x.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=i(871)),l(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=j,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===u&&(u=i(727)),u(x,e,t)})},170:function(e,t,n){"use strict";e.exports=c;var r=n(646).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(403);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,n){d(e,t,n)})}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(782)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=x,x.WritableState=B;var a,s,l={deprecate:i(769)},u=i(678),c=i(300).Buffer,f=n.g.Uint8Array||function(){},d=i(25),p=i(776).getHighWaterMark,h=i(646).q,m=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,v=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,A=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,E=h.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function S(){}function B(e,t,n){a=a||i(403),e=e||{},"boolean"!=typeof n&&(n=t instanceof a),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new y;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,i?(r.nextTick(o,t),r.nextTick(T,e,n),e._writableState.errorEmitted=!0,C(e,t)):(o(t),e._writableState.errorEmitted=!0,C(e,t),T(e,n));else{var a=O(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||M(e,n),i?r.nextTick(R,e,n,a,o):R(e,n,a,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function x(e){var t=this instanceof(a=a||i(403));if(!t&&!s.call(x,this))return new x(e);this._writableState=new B(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function _(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,n,r){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,r(),T(e,t)}function M(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var a=0,s=!0;n;)r[a]=n,n.isBuf||(s=!1),n=n.next,a+=1;r.allBuffers=s,_(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,c=n.callback,f=t.objectMode?1:l.length;if(_(e,t,!1,f,l,u,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(n){t.pendingcb--,n&&C(e,n),t.prefinished=!0,e.emit("prefinish"),T(e,t)})}function T(e,t){var n=O(t);if(n&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(P,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}i(782)(x,u),B.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(B.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===x&&e&&e._writableState instanceof B}})):s=function(e){return e instanceof this},x.prototype.pipe=function(){C(this,new v)},x.prototype.write=function(e,t,n){var i,o,a,s,l,u,d,p=this._writableState,h=!1,g=!p.objectMode&&(i=e,c.isBuffer(i)||i instanceof f);return g&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(n=t,t=null),g?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof n&&(n=S),p.ending)?(a=n,C(this,s=new w),r.nextTick(a,s)):(g||(l=e,u=n,null===l?d=new A:"string"==typeof l||p.objectMode||(d=new m("chunk",["string","Buffer"],l)),!d||(C(this,d),r.nextTick(u,d),0)))&&(p.pendingcb++,h=function(e,t,n,r,i,o){if(!n){var a,s,l=(a=r,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,s)),a);r!==l&&(n=!0,i="buffer",r=l)}var u=t.objectMode?1:r.length;t.length+=u;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,u,r,i,o);return f}(this,p,g,e,t,n)),h},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||M(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,n){n(new g("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,n){var i,o=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=n,o.ending=!0,T(this,o),i&&(o.finished?r.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=d.destroy,x.prototype._undestroy=d.undestroy,x.prototype._destroy=function(e,t){t(e)}},871:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a=n(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[l]=null,t(h(n,!1)))}}function g(e){r.nextTick(m,e)}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t,n=this,i=this[u];if(null!==i)return Promise.reject(i);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){r.nextTick(function(){n[u]?t(n[u]):e(h(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,n){o.then(function(){if(e[c]){t(h(void 0,!0));return}e[d](t,n)},n)}));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));t=new Promise(this[d])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(h(void 0,!0))})})}),o),y);e.exports=function(e){var t,n=Object.create(v,(i(t={},p,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[l]=null,e(h(r,!1))):(n[s]=e,n[l]=t)},writable:!0}),t));return n[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[l];null!==t&&(n[f]=null,n[s]=null,n[l]=null,t(e)),n[u]=e;return}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[l]=null,r(h(void 0,!0))),n[c]=!0}),e.on("readable",g.bind(null,n)),n}},379:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var i=n(300).Buffer,o=n(837).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,n,r=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=a,i.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return r}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++r}return this.length-=r,t}},{key:a,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){i(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?r.nextTick(n,a):(a._writableState.errorEmitted=!0,r.nextTick(t,a,e)):r.nextTick(t,a,e):o?(r.nextTick(n,a),o(e)):r.nextTick(n,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,n){"use strict";var r=n(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(this,t)}};var a,s,l=n.readable||!1!==n.readable&&t.readable,u=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||d()},f=t._writableState&&t._writableState.finished,d=function(){u=!1,f=!0,l||o.call(t)},p=t._readableState&&t._readableState.endEmitted,h=function(){l=!1,p=!0,u||o.call(t)},m=function(e){o.call(t,e)},g=function(){var e;return l&&!p?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):u&&!f?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},y=function(){t.req.on("finish",d)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",d),t.on("abort",g),t.req?y():t.on("request",y)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",d),!1!==n.error&&t.on("error",m),t.on("close",g),function(){t.removeListener("complete",d),t.removeListener("abort",g),t.removeListener("request",y),t.req&&t.req.removeListener("finish",d),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("end",h),t.removeListener("error",m),t.removeListener("close",g)}}},727:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e,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}var o=n(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,n){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new o("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({objectMode:!0},n)),l=!1;function u(){return c.apply(this,arguments)}function c(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?u():l=!1}catch(e){s.destroy(e)}},(c=function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){l||(l=!0,u())},s}},442:function(e,t,n){"use strict";var r,i=n(646).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,c=Array(i),f=0;f<i;f++)c[f]=arguments[f];var d=(e=c).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new o("streams");var p=c.map(function(e,i){var o,s,u,f,h,m,g=i<c.length-1;return o=i>0,u=s=function(e){t||(t=e),e&&p.forEach(l),g||(p.forEach(l),d(t))},f=!1,s=function(){f||(f=!0,u.apply(void 0,arguments))},h=!1,e.on("close",function(){h=!0}),void 0===r&&(r=n(698)),r(e,{readable:g,writable:o},function(e){if(e)return s(e);h=!0,s()}),m=!1,function(t){if(!h&&!m){if(m=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return c.reduce(u)}},776:function(e,t,n){"use strict";var r=n(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[n]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,n){e.exports=n(781)},55:function(e,t,n){var r=n(300),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return r.SlowBuffer(e)}},173:function(e,t,n){e.exports=i;var r=n(361).EventEmitter;function i(){r.call(this)}n(782)(i,r),i.Readable=n(709),i.Writable=n(337),i.Duplex=n(403),i.Transform=n(170),i.PassThrough=n(889),i.finished=n(698),i.pipeline=n(442),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},704:function(e,t,n){"use strict";var r=n(55).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:this.write=d,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){e.exports=function(e,n){if(t("noDeprecation"))return e;var r=!1;return function(){if(!r){if(t("throwDeprecation"))throw Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return e.apply(this,arguments)}};function t(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},300:function(e){"use strict";e.exports=n(2957)},361:function(e){"use strict";e.exports=n(1085)},781:function(e){"use strict";e.exports=n(1085).EventEmitter},837:function(e){"use strict";e.exports=n(3598)}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}},a=!0;try{t[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="//";var a=o(173);e.exports=a}()},2251:function(e,t,n){var r=n(257),i=n(2957).Buffer;!function(){var t={523:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782:function(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}}},646:function(e){"use strict";let t={};function n(e,n,r){r||(r=Error);class i extends r{constructor(e,t,r){super("string"==typeof n?n:n(e,t,r))}}i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let n=e.length;return(e=e.map(e=>String(e)),n>2)?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var i,o,a,s;let l,u;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(l="must not be",t=t.replace(/^not /,"")):l="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)u=`The ${e} ${l} ${r(t,"type")}`;else{let n=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";u=`The "${e}" ${n} ${l} ${r(t,"type")}`}return u+`. Received type ${typeof n}`},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,n){"use strict";var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var o=n(709),a=n(337);n(782)(c,o);for(var s=i(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,n){"use strict";e.exports=i;var r=n(170);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(782)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},709:function(e,t,i){"use strict";e.exports=x,x.ReadableState=B,i(361).EventEmitter;var o,a,s,l,u,c=function(e,t){return e.listeners(t).length},f=i(678),d=i(300).Buffer,p=n.g.Uint8Array||function(){},h=i(837);a=h&&h.debuglog?h.debuglog("stream"):function(){};var m=i(379),g=i(25),y=i(776).getHighWaterMark,v=i(646).q,b=v.ERR_INVALID_ARG_TYPE,A=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,E=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(x,f);var C=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function B(e,t,n){o=o||i(403),e=e||{},"boolean"!=typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function x(e){if(o=o||i(403),!(this instanceof x))return new x(e);var t=this instanceof o;this._readableState=new B(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function _(e,t,n,r,i){a("readableAddChunk",t);var o,s,l,u,c,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,f);else{if(i||(o=f,s=t,d.isBuffer(s)||s instanceof p||"string"==typeof s||void 0===s||o.objectMode||(l=new b("chunk",["string","Buffer","Uint8Array"],s)),c=l),c)C(e,c);else if(f.objectMode||t&&t.length>0){if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===d.prototype||(u=t,t=d.from(u)),r)f.endEmitted?C(e,new E):R(e,f,t,!0);else if(f.ended)C(e,new A);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!n?(t=f.decoder.write(t),f.objectMode||0!==t.length?R(e,f,t,!1):T(e,f)):R(e,f,t,!1)}}else r||(f.reading=!1,T(e,f))}return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function R(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),T(e,t)}function M(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var n;t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function O(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(P,e))}function P(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function T(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function k(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){a("readable nexttick read 0"),e.read(0)}function F(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function N(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function G(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=g.destroy,x.prototype._undestroy=g.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=d.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},x.prototype.unshift=function(e){return _(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){s||(s=i(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},x.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,n=this._readableState,r=e;if(0!==e&&(n.emittedReadable=!1),0===e&&n.needReadable&&((0!==n.highWaterMark?n.length>=n.highWaterMark:n.length>0)||n.ended))return a("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):O(this),null;if(0===(e=M(e,n))&&n.ended)return 0===n.length&&N(this),null;var i=n.needReadable;return a("need readable",i),(0===n.length||n.length-e<n.highWaterMark)&&a("length less than watermark",i=!0),n.ended||n.reading?a("reading or ended",i=!1):i&&(a("do read"),n.reading=!0,n.sync=!0,0===n.length&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(e=M(r,n))),null===(t=e>0?j(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){C(this,new w("_read()"))},x.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===r.stdout||e===r.stderr?m:s;function s(){a("onend"),e.end()}i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",function t(r,o){a("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",m),n.removeListener("data",f),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=function(){var e=n._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(n,"data")&&(e.flowing=!0,L(n))};e.on("drain",l);var u=!1;function f(t){a("ondata");var r=e.write(t);a("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==G(i.pipes,e))&&!u&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===c(e,"error")&&C(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),i.flowing||(a("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=G(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},x.prototype.on=function(e,t){var n=f.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?O(this):i.reading||r.nextTick(D,this)),n},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var n=f.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(k,this),n},x.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&r.nextTick(k,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(F,this,e))),e.paused=!1,this},x.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=i(871)),l(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=j,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===u&&(u=i(727)),u(x,e,t)})},170:function(e,t,n){"use strict";e.exports=c;var r=n(646).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(403);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,n){d(e,t,n)})}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(782)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=x,x.WritableState=B;var a,s,l={deprecate:i(769)},u=i(678),c=i(300).Buffer,f=n.g.Uint8Array||function(){},d=i(25),p=i(776).getHighWaterMark,h=i(646).q,m=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,v=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,A=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,E=h.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function S(){}function B(e,t,n){a=a||i(403),e=e||{},"boolean"!=typeof n&&(n=t instanceof a),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new y;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,i?(r.nextTick(o,t),r.nextTick(T,e,n),e._writableState.errorEmitted=!0,C(e,t)):(o(t),e._writableState.errorEmitted=!0,C(e,t),T(e,n));else{var a=O(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||M(e,n),i?r.nextTick(R,e,n,a,o):R(e,n,a,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function x(e){var t=this instanceof(a=a||i(403));if(!t&&!s.call(x,this))return new x(e);this._writableState=new B(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function _(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,n,r){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,r(),T(e,t)}function M(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var a=0,s=!0;n;)r[a]=n,n.isBuf||(s=!1),n=n.next,a+=1;r.allBuffers=s,_(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,c=n.callback,f=t.objectMode?1:l.length;if(_(e,t,!1,f,l,u,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(n){t.pendingcb--,n&&C(e,n),t.prefinished=!0,e.emit("prefinish"),T(e,t)})}function T(e,t){var n=O(t);if(n&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(P,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}i(782)(x,u),B.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(B.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===x&&e&&e._writableState instanceof B}})):s=function(e){return e instanceof this},x.prototype.pipe=function(){C(this,new v)},x.prototype.write=function(e,t,n){var i,o,a,s,l,u,d,p=this._writableState,h=!1,g=!p.objectMode&&(i=e,c.isBuffer(i)||i instanceof f);return g&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(n=t,t=null),g?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof n&&(n=S),p.ending)?(a=n,C(this,s=new w),r.nextTick(a,s)):(g||(l=e,u=n,null===l?d=new A:"string"==typeof l||p.objectMode||(d=new m("chunk",["string","Buffer"],l)),!d||(C(this,d),r.nextTick(u,d),0)))&&(p.pendingcb++,h=function(e,t,n,r,i,o){if(!n){var a,s,l=(a=r,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,s)),a);r!==l&&(n=!0,i="buffer",r=l)}var u=t.objectMode?1:r.length;t.length+=u;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,u,r,i,o);return f}(this,p,g,e,t,n)),h},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||M(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,n){n(new g("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,n){var i,o=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=n,o.ending=!0,T(this,o),i&&(o.finished?r.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=d.destroy,x.prototype._undestroy=d.undestroy,x.prototype._destroy=function(e,t){t(e)}},871:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a=n(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[l]=null,t(h(n,!1)))}}function g(e){r.nextTick(m,e)}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t,n=this,i=this[u];if(null!==i)return Promise.reject(i);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){r.nextTick(function(){n[u]?t(n[u]):e(h(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,n){o.then(function(){if(e[c]){t(h(void 0,!0));return}e[d](t,n)},n)}));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));t=new Promise(this[d])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(h(void 0,!0))})})}),o),y);e.exports=function(e){var t,n=Object.create(v,(i(t={},p,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[l]=null,e(h(r,!1))):(n[s]=e,n[l]=t)},writable:!0}),t));return n[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[l];null!==t&&(n[f]=null,n[s]=null,n[l]=null,t(e)),n[u]=e;return}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[l]=null,r(h(void 0,!0))),n[c]=!0}),e.on("readable",g.bind(null,n)),n}},379:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var i=n(300).Buffer,o=n(837).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,n,r=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=a,i.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return r}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++r}return this.length-=r,t}},{key:a,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){i(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?r.nextTick(n,a):(a._writableState.errorEmitted=!0,r.nextTick(t,a,e)):r.nextTick(t,a,e):o?(r.nextTick(n,a),o(e)):r.nextTick(n,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,n){"use strict";var r=n(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(this,t)}};var a,s,l=n.readable||!1!==n.readable&&t.readable,u=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||d()},f=t._writableState&&t._writableState.finished,d=function(){u=!1,f=!0,l||o.call(t)},p=t._readableState&&t._readableState.endEmitted,h=function(){l=!1,p=!0,u||o.call(t)},m=function(e){o.call(t,e)},g=function(){var e;return l&&!p?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):u&&!f?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},y=function(){t.req.on("finish",d)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",d),t.on("abort",g),t.req?y():t.on("request",y)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",d),!1!==n.error&&t.on("error",m),t.on("close",g),function(){t.removeListener("complete",d),t.removeListener("abort",g),t.removeListener("request",y),t.req&&t.req.removeListener("finish",d),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("end",h),t.removeListener("error",m),t.removeListener("close",g)}}},727:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e,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}var o=n(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,n){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new o("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({objectMode:!0},n)),l=!1;function u(){return c.apply(this,arguments)}function c(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?u():l=!1}catch(e){s.destroy(e)}},(c=function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){l||(l=!0,u())},s}},442:function(e,t,n){"use strict";var r,i=n(646).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,c=Array(i),f=0;f<i;f++)c[f]=arguments[f];var d=(e=c).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new o("streams");var p=c.map(function(e,i){var o,s,u,f,h,m,g=i<c.length-1;return o=i>0,u=s=function(e){t||(t=e),e&&p.forEach(l),g||(p.forEach(l),d(t))},f=!1,s=function(){f||(f=!0,u.apply(void 0,arguments))},h=!1,e.on("close",function(){h=!0}),void 0===r&&(r=n(698)),r(e,{readable:g,writable:o},function(e){if(e)return s(e);h=!0,s()}),m=!1,function(t){if(!h&&!m){if(m=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return c.reduce(u)}},776:function(e,t,n){"use strict";var r=n(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[n]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,n){e.exports=n(781)},726:function(e,t,n){var i=n(781);"disable"===r.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=n(709)).Stream=i||t,t.Readable=t,t.Writable=n(337),t.Duplex=n(403),t.Transform=n(170),t.PassThrough=n(889),t.finished=n(698),t.pipeline=n(442))},55:function(e,t,n){var r=n(300),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return r.SlowBuffer(e)}},813:function(e,t,r){var i=r(450),o=r(254),a=r(911),s=r(523),l=r(310);t.request=function(e,t){e="string"==typeof e?l.parse(e):a(e);var r=-1===n.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||r,s=e.hostname||e.host,u=e.port,c=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(u?":"+u:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new i(e);return t&&f.on("response",t),f},t.get=function(e,n){var r=t.request(e,n);return r.end(),r},t.ClientRequest=i,t.IncomingMessage=o.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=s,t.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(e,t){var r;function i(){if(void 0!==r)return r;if(n.g.XMLHttpRequest){r=new n.g.XMLHttpRequest;try{r.open("GET",n.g.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(n.g.fetch)&&a(n.g.ReadableStream),t.writableStream=a(n.g.WritableStream),t.abortController=a(n.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),r=null},450:function(e,t,o){var a=o(301),s=o(782),l=o(254),u=o(726),c=l.IncomingMessage,f=l.readyStates,d=e.exports=function(e){var t,n,r,o=this;u.Writable.call(o),o._opts=e,o._body=[],o._headers={},e.auth&&o.setHeader("Authorization","Basic "+i.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){o.setHeader(t,e.headers[t])});var s=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)s=!1,r=!0;else if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else r=!0;o._mode=(t=r,n=s,a.fetch&&n?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&t?"arraybuffer":"text"),o._fetchTimer=null,o.on("finish",function(){o._onFinish()})};s(d,u.Writable),d.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach(function(e){var t=i[e].name,n=i[e].value;Array.isArray(n)?n.forEach(function(e){s.push([t,e])}):s.push([t,n])}),"fetch"===e._mode){var l=null;if(a.abortController){var u=new AbortController;l=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}n.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){n.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var c=e._xhr=new n.g.XMLHttpRequest;try{c.open(e._opts.method,e._opts.url,!0)}catch(t){r.nextTick(function(){e.emit("error",t)});return}"responseType"in c&&(c.responseType=e._mode),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(c.timeout=t.requestTimeout,c.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){c.setRequestHeader(e[0],e[1])}),e._response=null,c.onreadystatechange=function(){switch(c.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(c.onprogress=function(){e._onXHRProgress()}),c.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{c.send(o)}catch(t){r.nextTick(function(){e.emit("error",t)});return}}}},d.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,n.g.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),u.Writable.prototype.end.call(this,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(e,t,o){var a=o(301),s=o(782),l=o(726),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,o,s){var u=this;if(l.Readable.call(u),u._mode=o,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){r.nextTick(function(){u.emit("close")})}),"fetch"===o){if(u._fetchResponse=t,u.url=t.url,u.statusCode=t.status,u.statusMessage=t.statusText,t.headers.forEach(function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)}),a.writableStream){var c=new WritableStream({write:function(e){return new Promise(function(t,n){u._destroyed?n():u.push(i.from(e))?t():u._resumeFetch=t})},close:function(){n.g.clearTimeout(s),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{t.body.pipeTo(c).catch(function(e){n.g.clearTimeout(s),u._destroyed||u.emit("error",e)});return}catch(e){}}var f=t.body.getReader();!function e(){f.read().then(function(t){if(!u._destroyed){if(t.done){n.g.clearTimeout(s),u.push(null);return}u.push(i.from(t.value)),e()}}).catch(function(e){n.g.clearTimeout(s),u._destroyed||u.emit("error",e)})}()}else if(u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===u.headers[n]&&(u.headers[n]=[]),u.headers[n].push(t[2])):void 0!==u.headers[n]?u.headers[n]+=", "+t[2]:u.headers[n]=t[2],u.rawHeaders.push(t[1],t[2])}}),u._charset="x-user-defined",!a.overrideMimeType){var d=u.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(u._charset=p[1].toLowerCase())}u._charset||(u._charset="utf-8")}};s(c,l.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text":if((r=t.responseText).length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=i.alloc(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;r=t.response,e.push(i.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==u.LOADING||!r)break;e.push(i.from(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==u.LOADING)break;var l=new n.g.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(i.from(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,n){"use strict";var r=n(55).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:this.write=d,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){e.exports=function(e,n){if(t("noDeprecation"))return e;var r=!1;return function(){if(!r){if(t("throwDeprecation"))throw Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return e.apply(this,arguments)}};function t(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},911:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},300:function(e){"use strict";e.exports=n(2957)},361:function(e){"use strict";e.exports=n(1085)},781:function(e){"use strict";e.exports=n(7501)},310:function(e){"use strict";e.exports=n(3813)},837:function(e){"use strict";e.exports=n(3598)}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}},i=!0;try{t[e](r,r.exports,a),i=!1}finally{i&&delete o[e]}return r.exports}a.ab="//";var s=a(813);e.exports=s}()},3598:function(e,t,n){var r=n(2957).Buffer,i=n(257);!function(){var t={992:function(e){e.exports=function(e,n,r){if(e.filter)return e.filter(n,r);if(null==e||"function"!=typeof n)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];n.call(r,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},256:function(e,t,n){"use strict";var r=n(925),i=n(139),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},139:function(e,t,n){"use strict";var r=n(174),i=n(925),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},144:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,i){if("[object Function]"!==n.call(r))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)r.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&r.call(i,e[s],s,e)}},426:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r,i=this;if("function"!=typeof i||"[object Function]"!==n.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=t.call(arguments,1),a=Math.max(0,i.length-o.length),s=[],l=0;l<a;l++)s.push("$"+l);if(r=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof r))return i.apply(e,o.concat(t.call(arguments)));var n=i.apply(this,o.concat(t.call(arguments)));return Object(n)===n?n:this}),i.prototype){var u=function(){};u.prototype=i.prototype,r.prototype=new u,u.prototype=null}return r}},174:function(e,t,n){"use strict";var r=n(426);e.exports=Function.prototype.bind||r},500:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return arguments.callee,u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(115)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(174),b=n(101),A=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),E=v.call(Function.call,String.prototype.replace),C=v.call(Function.call,String.prototype.slice),S=v.call(Function.call,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,_=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,B,function(e,t,n,i){r[r.length]=n?E(i,x,"$1"):t||e}),r},R=function(e,t){var n,r=e;if(b(y,r)&&(r="%"+(n=y[r])[0]+"%"),b(m,r)){var o=m[r];if(o===p&&(o=g(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=_(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),s=o.name,u=o.value,c=!1,f=o.alias;f&&(r=f[0],w(n,A([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],g=C(h,0,1),y=C(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),r+="."+h,b(m,s="%"+r+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(u,h);u=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else p=b(u,h),u=u[h];p&&!c&&(m[s]=u)}}return u}},925:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return arguments.callee,u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(115)(),d=n(504)(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&p?p(Uint8Array):r,g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(e){var y=p(p(e));g["%Error.prototype%"]=y}var v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(n=p(i.prototype))}return g[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=n(174),w=n(101),E=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),S=A.call(Function.call,String.prototype.replace),B=A.call(Function.call,String.prototype.slice),x=A.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,M=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return S(e,_,function(e,t,n,i){r[r.length]=n?S(i,R,"$1"):t||e}),r},O=function(e,t){var n,r=e;if(w(b,r)&&(r="%"+(n=b[r])[0]+"%"),w(g,r)){var o=g[r];if(o===h&&(o=v(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=M(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),s=o.name,u=o.value,c=!1,f=o.alias;f&&(r=f[0],C(n,E([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],m=B(h,0,1),y=B(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),r+="."+h,w(g,s="%"+r+"%"))u=g[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(u,h);u=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else p=w(u,h),u=u[h];p&&!c&&(g[s]=u)}}return u}},504:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof n)}},942:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(773);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},115:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(832);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},101:function(e,t,n){"use strict";var r=n(174);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},782:function(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}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,n=Object.prototype.toString,r=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===n.call(e)},i=function(e){return!!r(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==n.call(e)&&"[object Function]"===n.call(e.callee)},o=function(){return r(arguments)}();r.isLegacyArguments=i,e.exports=o?r:i},391:function(e){"use strict";var t=Object.prototype.toString,n=Function.prototype.toString,r=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!r.test(n.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,r){"use strict";var i=r(144),o=r(349),a=r(256),s=a("Object.prototype.toString"),l=r(942)()&&"symbol"==typeof Symbol.toStringTag,u=o(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return -1},f=a("String.prototype.slice"),d={},p=r(24),h=Object.getPrototypeOf;l&&p&&h&&i(u,function(e){var t=new n.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=h(t),i=p(r,Symbol.toStringTag);i||(i=p(h(r),Symbol.toStringTag)),d[e]=i.get});var m=function(e){var t=!1;return i(d,function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(l?!!p&&m(e):c(u,f(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof r}},584:function(e,t,n){"use strict";var r=n(157),i=n(391),o=n(490),a=n(994);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function v(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function A(e){return"[object WeakSet]"===c(e)}function w(e){return"[object ArrayBuffer]"===c(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function C(e){return"[object DataView]"===c(e)}function S(e){return"undefined"!=typeof DataView&&(C.working?C(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},A.working="undefined"!=typeof WeakSet&&A(new WeakSet),t.isWeakSet=function(e){return A(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=E,C.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&C(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var B="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(e){return"[object SharedArrayBuffer]"===c(e)}function _(e){return void 0!==B&&(void 0===x.working&&(x.working=x(new B)),x.working?x(e):e instanceof B)}function R(e){return g(e,f)}function M(e){return g(e,d)}function O(e){return g(e,p)}function P(e){return l&&g(e,h)}function T(e){return u&&g(e,m)}t.isSharedArrayBuffer=_,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=R,t.isStringObject=M,t.isBooleanObject=O,t.isBigIntObject=P,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return R(e)||M(e)||O(e)||P(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||_(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,n){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])y(s)||!E(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,n){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(i.throwDeprecation)throw Error(n);i.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(i.env.NODE_DEBUG){var l=i.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),A(r.showHidden)&&(r.showHidden=!1),A(r.depth)&&(r.depth=2),A(r.colors)&&(r.colors=!1),A(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),d(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"\x1b["+u.colors[n][0]+"m"+e+"\x1b["+u.colors[n][1]+"m":e}function f(e,t){return e}function d(e,n,r){if(e.customInspect&&n&&B(n.inspect)&&n.inspect!==t.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i,o,a,s,l,u=n.inspect(r,e);return b(u)||(u=d(e,u,r)),u}var c=function(e,t){if(A(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(c)return c;var f=Object.keys(n),E=(s={},f.forEach(function(e,t){s[e]=!0}),s);if(e.showHidden&&(f=Object.getOwnPropertyNames(n)),S(n)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return p(n);if(0===f.length){if(B(n)){var x=n.name?": "+n.name:"";return e.stylize("[Function"+x+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return p(n)}var _="",R=!1,O=["{","}"];return(m(n)&&(R=!0,O=["[","]"]),B(n)&&(_=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(_=" "+RegExp.prototype.toString.call(n)),C(n)&&(_=" "+Date.prototype.toUTCString.call(n)),S(n)&&(_=" "+p(n)),0!==f.length||R&&0!=n.length)?r<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=R?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)M(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}(e,n,r,E,f):f.map(function(t){return h(e,n,r,E,t,R)}),e.seen.pop(),i=_,o=O,a=0,l.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+l.join(",\n ")+" "+o[1]:o[0]+i+" "+l.join(", ")+" "+o[1]):O[0]+_+O[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),M(r,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=y(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),A(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function A(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===x(e)}function E(e){return"object"==typeof e&&null!==e}function C(e){return E(e)&&"[object Date]"===x(e)}function S(e){return E(e)&&("[object Error]"===x(e)||e instanceof Error)}function B(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var n=i.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){}}return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(584),t.isArray=m,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=A,t.isRegExp=w,t.types.isRegExp=w,t.isObject=E,t.isDate=C,t.types.isDate=C,t.isError=S,t.types.isNativeError=S,t.isFunction=B,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(369);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[_((e=new Date).getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(782),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t=e[O];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=O,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return r.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(a.bind(null,null,e))},function(e){i.nextTick(P.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},490:function(e,t,r){"use strict";var i=r(144),o=r(349),a=r(256),s=a("Object.prototype.toString"),l=r(942)()&&"symbol"==typeof Symbol.toStringTag,u=o(),c=a("String.prototype.slice"),f={},d=r(24),p=Object.getPrototypeOf;l&&d&&p&&i(u,function(e){if("function"==typeof n.g[e]){var t=new n.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=p(t),i=d(r,Symbol.toStringTag);i||(i=d(p(r),Symbol.toStringTag)),f[e]=i.get}});var h=function(e){var t=!1;return i(f,function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}}),t},m=r(994);e.exports=function(e){return!!m(e)&&(l?h(e):c(s(e),8,-1))}},349:function(e,t,r){"use strict";var i=r(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof n.g[e]})}},24:function(e,t,n){"use strict";var r=n(500)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}},i=!0;try{t[e](r,r.exports,a),i=!1}finally{i&&delete o[e]}return r.exports}a.ab="//";var s=a(177);e.exports=s}()},8049:function(e,t,n){"use strict";var r=n(4397);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,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}},718:function(e,t,n){e.exports=n(8049)()},4397:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(void 0);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2265)),i=d(n(718)),o=d(n(4887)),a=d(n(4365)),s=n(7774),l=n(6349),u=n(822),c=d(n(8513)),f=d(n(896));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return n&&(!r||n.x!==r.x||n.y!==r.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}}):null}constructor(e){super(e),m(this,"onDragStart",(e,t)=>{if((0,f.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",t);let n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,o]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)}),m(this,"onDragStop",(e,t)=>{if(!this.state.dragging||!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,f.default)("Draggable: onDragStop: %j",t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode() instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:o.default.findDOMNode(this)}render(){let{axis:e,bounds:t,children:n,defaultPosition:i,defaultClassName:o,defaultClassNameDragging:u,defaultClassNameDragged:f,position:d,positionOffset:p,scale:m,...g}=this.props,y={},v=null,b=!d||this.state.dragging,A=d||i,w={x:(0,l.canDragX)(this)&&b?this.state.x:A.x,y:(0,l.canDragY)(this)&&b?this.state.y:A.y};this.state.isElementSVG?v=(0,s.createSVGTransform)(w,p):y=(0,s.createCSSTransform)(w,p);let E=(0,a.default)(n.props.className||"",o,{[u]:this.state.dragging,[f]:this.state.dragged});return r.createElement(c.default,h({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:E,style:{...n.props.style,...y},transform:v}))}}t.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...c.default.propTypes,axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),m(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},8513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(void 0);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2265)),i=c(n(718)),o=c(n(4887)),a=n(7774),s=n(6349),l=n(822),u=c(n(896));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let p={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},h=p.mouse;class m extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();let r=(0,a.getTouchIdentifier)(e);this.touchIdentifier=r;let i=(0,s.getControlPosition)(e,r,this);if(null==i)return;let{x:o,y:l}=i,c=(0,s.createCoreData)(this,o,l);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart),!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=o,this.lastY=l,(0,a.addEvent)(n,h.move,this.handleDrag),(0,a.addEvent)(n,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{let t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=(0,s.createCoreData)(this,n,r);if((0,u.default)("DraggableCore: handleDrag: %j",i),!1===this.props.onDrag(e,i)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(t){let e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r}),d(this,"handleDragStop",e=>{if(!this.dragging)return;let t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,i)||!1===this.mounted)return!1;let o=this.findDOMNode();o&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(o.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,o&&((0,u.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(o.ownerDocument,h.move,this.handleDrag),(0,a.removeEvent)(o.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=p.mouse,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=p.mouse,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=p.touch,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=p.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&(0,a.addEvent)(e,p.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;(0,a.removeEvent)(t,p.mouse.move,this.handleDrag),(0,a.removeEvent)(t,p.touch.move,this.handleDrag),(0,a.removeEvent)(t,p.mouse.stop,this.handleDragStop),(0,a.removeEvent)(t,p.touch.stop,this.handleDragStop),(0,a.removeEvent)(e,p.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:o.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=m,d(m,"displayName","DraggableCore"),d(m,"propTypes",{allowAnyClick:i.default.bool,children:i.default.node.isRequired,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(m,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},376:function(e,t,n){"use strict";let{default:r,DraggableCore:i}=n(4303);e.exports=r,e.exports.default=r,e.exports.DraggableCore=i},7774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=u,t.addEvent=function(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&u(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){let n=l(e,t,"px");return{[(0,i.browserPrefixToKey)("transform",i.default)]:n}},t.createSVGTransform=function(e,t){return l(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=l,t.innerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom)},t.innerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight)},t.matchesSelector=s,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(s(r,t))return!0;if(r===n)break;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.outerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,r.int)(n.borderTopWidth)+(0,r.int)(n.borderBottomWidth))},t.outerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,r.int)(n.borderLeftWidth)+(0,r.int)(n.borderRightWidth))},t.removeClassName=c,t.removeEvent=function(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&c(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{let t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var r=n(822),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(void 0);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(1789));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}let a="";function s(e,t){return a||(a=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[a])&&e[a](t)}function l(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){let e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function u(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},1789:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=i,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;let n=["Moz","Webkit","O","ms"];function r(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";let r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r||t in r)return"";for(let e=0;e<n.length;e++)if(i(t,n[e]) in r)return n[e];return""}function i(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}t.default=r()},896:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},6349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){let i=!(0,r.isNum)(e.lastX),a=o(e);return i?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){var a;if(!e.props.bounds)return[t,n];let{bounds:s}=e.props;s="string"==typeof s?s:{left:(a=s).left,top:a.top,right:a.right,bottom:a.bottom};let l=o(e);if("string"==typeof s){let e;let{ownerDocument:t}=l,n=t.defaultView;if(!((e="parent"===s?l.parentNode:t.querySelector(s))instanceof n.HTMLElement))throw Error('Bounds selector "'+s+'" could not find an element.');let o=n.getComputedStyle(l),a=n.getComputedStyle(e);s={left:-l.offsetLeft+(0,r.int)(a.paddingLeft)+(0,r.int)(o.marginLeft),top:-l.offsetTop+(0,r.int)(a.paddingTop)+(0,r.int)(o.marginTop),right:(0,i.innerWidth)(e)-(0,i.outerWidth)(l)-l.offsetLeft+(0,r.int)(a.paddingRight)-(0,r.int)(o.marginRight),bottom:(0,i.innerHeight)(e)-(0,i.outerHeight)(l)-l.offsetTop+(0,r.int)(a.paddingBottom)-(0,r.int)(o.marginBottom)}}return(0,r.isNum)(s.right)&&(t=Math.min(t,s.right)),(0,r.isNum)(s.bottom)&&(n=Math.min(n,s.bottom)),(0,r.isNum)(s.left)&&(t=Math.max(t,s.left)),(0,r.isNum)(s.top)&&(n=Math.max(n,s.top)),[t,n]},t.getControlPosition=function(e,t,n){let r="number"==typeof t?(0,i.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;let a=o(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(r||e,s,n.props.scale)},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var r=n(822),i=n(7774);function o(e){let t=e.findDOMNode();if(!t)throw Error("<DraggableCore>: Unmounted during event!");return t}},822:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},7213:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,i=e[r];if(0<o(i,t))e[r]=t,e[n]=i,n=r;else break}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else if(u<i&&0>o(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a,s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],f=[],d=1,p=null,h=3,m=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,A="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(f);null!==t;){if(null===t.callback)i(f);else if(t.startTime<=e)i(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function E(e){if(y=!1,w(e),!g){if(null!==r(c))g=!0,I(C);else{var t=r(f);null!==t&&k(E,t.startTime-e)}}}function C(e,n){g=!1,y&&(y=!1,b(x),x=-1),m=!0;var o=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!M());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&i(c),w(n)}else i(c);p=r(c)}if(null!==p)var l=!0;else{var u=r(f);null!==u&&k(E,u.startTime-n),l=!1}return l}finally{p=null,h=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,B=null,x=-1,_=5,R=-1;function M(){return!(t.unstable_now()-R<_)}function O(){if(null!==B){var e=t.unstable_now();R=e;var n=!0;try{n=B(!0,e)}finally{n?a():(S=!1,B=null)}}else S=!1}if("function"==typeof A)a=function(){A(O)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,T=P.port2;P.port1.onmessage=O,a=function(){T.postMessage(null)}}else a=function(){v(O,0)};function I(e){B=e,S||(S=!0,a())}function k(e,n){x=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(){g||m||(g=!0,I(C))},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"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=o+s,e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s,sortIndex:-1},o>a?(e.sortIndex=o,n(f,e),null===r(c)&&e===r(f)&&(y?(b(x),x=-1):y=!0,k(E,o-a))):(e.sortIndex=s,n(c,e),g||m||(g=!0,I(C))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},6697:function(e,t,n){"use strict";e.exports=n(7213)},1257:function(e,t,n){"use strict";n.d(t,{MA:function(){return l},Rq:function(){return s},ZH:function(){return u}});let r=e=>"object"==typeof e&&"function"==typeof e.then,i=[];function o(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;let r=e.length;if(t.length!==r)return!1;for(let i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function a(e,t=null,n=!1,a={}){for(let r of(null===t&&(t=[e]),i))if(o(t,r.keys,r.equal)){if(n)return;if(Object.prototype.hasOwnProperty.call(r,"error"))throw r.error;if(Object.prototype.hasOwnProperty.call(r,"response"))return a.lifespan&&a.lifespan>0&&(r.timeout&&clearTimeout(r.timeout),r.timeout=setTimeout(r.remove,a.lifespan)),r.response;if(!n)throw r.promise}let s={keys:t,equal:a.equal,remove:()=>{let e=i.indexOf(s);-1!==e&&i.splice(e,1)},promise:(r(e)?e:e(...t)).then(e=>{s.response=e,a.lifespan&&a.lifespan>0&&(s.timeout=setTimeout(s.remove,a.lifespan))}).catch(e=>s.error=e)};if(i.push(s),!n)throw s.promise}let s=(e,t,n)=>a(e,t,!1,n),l=(e,t,n)=>void a(e,t,!0,n),u=e=>{if(void 0===e||0===e.length)i.splice(0,i.length);else{let t=i.find(t=>o(e,t.keys,t.equal));t&&t.remove()}}},8377:function(e,t,n){"use strict";n.d(t,{B$:function(){return function e(t,n){let r=function(e){let t=JSON.stringify(e,h),n=g.get(t);return null==n&&g.set(t,n=++m),n}(n),o=c.get(t);if(o||c.set(t,o=Object.create(null)),o[r])return new o[r];let y=`_onBeforeCompile${r}`,v=function(e,i){t.onBeforeCompile.call(this,e,i);let o=this.customProgramCacheKey()+"|"+e.vertexShader+"|"+e.fragmentShader,s=f[o];if(!s){let t=function(e,{vertexShader:t,fragmentShader:n},r,i){let{vertexDefs:o,vertexMainIntro:s,vertexMainOutro:l,vertexTransform:u,fragmentDefs:c,fragmentMainIntro:f,fragmentMainOutro:d,fragmentColorTransform:h,customRewriter:m,timeUniform:g}=r;if(o=o||"",s=s||"",l=l||"",c=c||"",f=f||"",d=d||"",(u||m)&&(t=a(t)),(h||m)&&(n=a(n=n.replace(/^[ \t]*#include <((?:tonemapping|encodings|colorspace|fog|premultiplied_alpha|dithering)_fragment)>/gm,"\n//!BEGIN_POST_CHUNK $1\n$&\n//!END_POST_CHUNK\n"))),m){let e=m({vertexShader:t,fragmentShader:n});t=e.vertexShader,n=e.fragmentShader}if(h){let e=[];n=n.replace(/^\/\/!BEGIN_POST_CHUNK[^]+?^\/\/!END_POST_CHUNK/gm,t=>(e.push(t),"")),d=`${h}
560
- ${e.join("\n")}
561
- ${d}`}if(g){let e=`
562
- uniform float ${g};
563
- `;o=e+o,c=e+c}return u&&(t=`vec3 troika_position_${i};
564
- vec3 troika_normal_${i};
565
- vec2 troika_uv_${i};
566
- ${t}
567
- `,o=`${o}
568
- void troikaVertexTransform${i}(inout vec3 position, inout vec3 normal, inout vec2 uv) {
569
- ${u}
570
- }
571
- `,s=`
572
- troika_position_${i} = vec3(position);
573
- troika_normal_${i} = vec3(normal);
574
- troika_uv_${i} = vec2(uv);
575
- troikaVertexTransform${i}(troika_position_${i}, troika_normal_${i}, troika_uv_${i});
576
- ${s}
577
- `,t=t.replace(/\b(position|normal|uv)\b/g,(e,t,n,r)=>/\battribute\s+vec[23]\s+$/.test(r.substr(0,n))?t:`troika_${t}_${i}`),e.map&&e.map.channel>0||(t=t.replace(/\bMAP_UV\b/g,`troika_uv_${i}`))),{vertexShader:t=p(t,i,o,s,l),fragmentShader:n=p(n,i,c,f,d)}}(this,e,n,r);s=f[o]=t}e.vertexShader=s.vertexShader,e.fragmentShader=s.fragmentShader,l(e.uniforms,this.uniforms),n.timeUniform&&(e.uniforms[n.timeUniform]={get value(){return Date.now()-u}}),this[y]&&this[y](e)},b=function(){return A(n.chained?t:t.clone())},A=function(e){let i=Object.create(e,w);return Object.defineProperty(i,"baseMaterial",{value:t}),Object.defineProperty(i,"id",{value:d++}),i.uuid=function(){let e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(s[255&e]+s[e>>8&255]+s[e>>16&255]+s[e>>24&255]+"-"+s[255&t]+s[t>>8&255]+"-"+s[t>>16&15|64]+s[t>>24&255]+"-"+s[63&n|128]+s[n>>8&255]+"-"+s[n>>16&255]+s[n>>24&255]+s[255&r]+s[r>>8&255]+s[r>>16&255]+s[r>>24&255]).toUpperCase()}(),i.uniforms=l({},e.uniforms,n.uniforms),i.defines=l({},e.defines,n.defines),i.defines[`TROIKA_DERIVED_MATERIAL_${r}`]="",i.extensions=l({},e.extensions,n.extensions),i._listeners=void 0,i},w={constructor:{value:b},isDerivedMaterial:{value:!0},type:{get:()=>t.type,set:e=>{t.type=e}},isDerivedFrom:{writable:!0,configurable:!0,value:function(e){let t=this.baseMaterial;return e===t||t.isDerivedMaterial&&t.isDerivedFrom(e)||!1}},customProgramCacheKey:{writable:!0,configurable:!0,value:function(){return t.customProgramCacheKey()+"|"+r}},onBeforeCompile:{get:()=>v,set(e){this[y]=e}},copy:{writable:!0,configurable:!0,value:function(e){return t.copy.call(this,e),t.isShaderMaterial||t.isDerivedMaterial||(l(this.extensions,e.extensions),l(this.defines,e.defines),l(this.uniforms,i.rDY.clone(e.uniforms))),this}},clone:{writable:!0,configurable:!0,value:function(){return A(new t.constructor).copy(this)}},getDepthMaterial:{writable:!0,configurable:!0,value:function(){let r=this._depthMaterial;return r||((r=this._depthMaterial=e(t.isDerivedMaterial?t.getDepthMaterial():new i.lRF({depthPacking:i.mSO}),n)).defines.IS_DEPTH_MATERIAL="",r.uniforms=this.uniforms),r}},getDistanceMaterial:{writable:!0,configurable:!0,value:function(){let r=this._distanceMaterial;return r||((r=this._distanceMaterial=e(t.isDerivedMaterial?t.getDistanceMaterial():new i.Lun,n)).defines.IS_DISTANCE_MATERIAL="",r.uniforms=this.uniforms),r}},dispose:{writable:!0,configurable:!0,value(){let{_depthMaterial:e,_distanceMaterial:n}=this;e&&e.dispose(),n&&n.dispose(),t.dispose.call(this)}}};return o[r]=b,new b}},MW:function(){return o}});var r=n(1448),i=n(2079);let o=/\bvoid\s+main\s*\(\s*\)\s*{/g;function a(e){return e.replace(/^[ \t]*#include +<([\w\d./]+)>/gm,function(e,t){let n=r.ShaderChunk[t];return n?a(n):e})}let s=[];for(let e=0;e<256;e++)s[e]=(e<16?"0":"")+e.toString(16);let l=Object.assign||function(){let e=arguments[0];for(let t=1,n=arguments.length;t<n;t++){let n=arguments[t];if(n)for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},u=Date.now(),c=new WeakMap,f=new Map,d=1e10;function p(e,t,n,r,i){return(r||i||n)&&(e=e.replace(o,`
578
- ${n}
579
- void troikaOrigMain${t}() {`)+`
580
- void main() {
581
- ${r}
582
- troikaOrigMain${t}();
583
- ${i}
584
- }`),e}function h(e,t){return"uniforms"===e?void 0:"function"==typeof t?t.toString():t}let m=0,g=new Map;i.ehD},5461:function(e,t,n){"use strict";function r(){var e=Object.create(null);function t(e,t){var n=void 0;self.troikaDefine=function(e){return n=e};var r=URL.createObjectURL(new Blob(["/** "+e.replace(/\*/g,"")+" **/\n\ntroikaDefine(\n"+t+"\n)"],{type:"application/javascript"}));try{importScripts(r)}catch(e){console.error(e)}return URL.revokeObjectURL(r),delete self.troikaDefine,n}self.addEventListener("message",function(n){var r=n.data,i=r.messageId,o=r.action,a=r.data;try{"registerModule"===o&&function n(r,i){var o=r.id,a=r.name,s=r.dependencies;void 0===s&&(s=[]);var l=r.init;void 0===l&&(l=function(){});var u=r.getTransferables;if(void 0===u&&(u=null),!e[o])try{s=s.map(function(t){return t&&t.isWorkerModule&&(n(t,function(e){if(e instanceof Error)throw e}),t=e[t.id].value),t}),l=t("<"+a+">.init",l),u&&(u=t("<"+a+">.getTransferables",u));var c=null;"function"==typeof l?c=l.apply(void 0,s):console.error("worker module init function failed to rehydrate"),e[o]={id:o,value:c,getTransferables:u},i(c)}catch(e){e&&e.noLog||console.error(e),i(e)}}(a,function(e){e instanceof Error?postMessage({messageId:i,success:!1,error:e.message}):postMessage({messageId:i,success:!0,result:{isCallable:"function"==typeof e}})}),"callModule"===o&&function(t,n){var r,i=t.id,o=t.args;e[i]&&"function"==typeof e[i].value||n(Error("Worker module "+i+": not found or its 'init' did not return a function"));try{var a=(r=e[i]).value.apply(r,o);a&&"function"==typeof a.then?a.then(s,function(e){return n(e instanceof Error?e:Error(""+e))}):s(a)}catch(e){n(e)}function s(t){try{var r=e[i].getTransferables&&e[i].getTransferables(t);r&&Array.isArray(r)&&r.length||(r=void 0),n(t,r)}catch(e){console.error(e),n(e)}}}(a,function(e,t){e instanceof Error?postMessage({messageId:i,success:!1,error:e.message}):postMessage({messageId:i,success:!0,result:e},t||void 0)})}catch(e){postMessage({messageId:i,success:!1,error:e.stack})}})}n.d(t,{Ae:function(){return f},Ch:function(){return function e(t){if((!t||"function"!=typeof t.init)&&!s)throw Error("requires `options.init` function");var n,r=t.dependencies,a=t.init,l=t.getTransferables,c=t.workerId,f=((n=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return n._getInitResult().then(function(t){if("function"==typeof t)return t.apply(void 0,e);throw Error("Worker module function was called but `init` did not return a callable function")})})._getInitResult=function(){var e=t.dependencies,r=t.init,i=Promise.all(e=Array.isArray(e)?e.map(function(e){return e&&(e=e.onMainThread||e)._getInitResult&&(e=e._getInitResult()),e}):[]).then(function(e){return r.apply(null,e)});return n._getInitResult=function(){return i},i},n);null==c&&(c="#default");var h="workerModule"+ ++o,m=t.name||h,g=null;function y(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(!i())return f.apply(void 0,e);if(!g){g=p(c,"registerModule",y.workerModuleData);var n=function(){g=null,u[c].delete(n)};(u[c]||(u[c]=new Set)).add(n)}return g.then(function(t){if(t.isCallable)return p(c,"callModule",{id:h,args:e});throw Error("Worker module function was called but `init` did not return a callable function")})}return r=r&&r.map(function(t){return"function"!=typeof t||t.workerModuleData||(s=!0,t=e({workerId:c,name:"<"+m+"> function dependency: "+t.name,init:"function(){return (\n"+d(t)+"\n)}"}),s=!1),t&&t.workerModuleData&&(t=t.workerModuleData),t}),y.workerModuleData={isWorkerModule:!0,id:h,name:m,dependencies:r,init:d(a),getTransferables:l&&d(l)},y.onMainThread=f,y}}}),n(257);var i=function(){var e=!1;if("undefined"!=typeof window&&void 0!==window.document)try{new Worker(URL.createObjectURL(new Blob([""],{type:"application/javascript"}))).terminate(),e=!0}catch(e){console.log("Troika createWorkerModule: web workers not allowed; falling back to main thread execution. Cause: ["+e.message+"]")}return i=function(){return e},e},o=0,a=0,s=!1,l=Object.create(null),u=Object.create(null),c=Object.create(null);function f(e){u[e]&&u[e].forEach(function(e){e()}),l[e]&&(l[e].terminate(),delete l[e])}function d(e){var t=e.toString();return!/^function/.test(t)&&/^\w+\s*\(/.test(t)&&(t="function "+t),t}function p(e,t,n){return new Promise(function(i,o){var s=++a;c[s]=function(e){e.success?i(e.result):o(Error("Error in worker "+t+" call: "+e.error))},(function(e){var t=l[e];if(!t){var n=d(r);(t=l[e]=new Worker(URL.createObjectURL(new Blob(["/** Worker Module Bootstrap: "+e.replace(/\*/g,"")+" **/\n\n;("+n+")()"],{type:"application/javascript"})))).onmessage=function(e){var t=e.data,n=t.messageId,r=c[n];if(!r)throw Error("WorkerModule response with empty or unknown messageId");delete c[n],r(t)}}return t})(e).postMessage({messageId:s,action:t,data:n})})}},5722:function(e,t,n){"use strict";var r=n(8257),i=n(3175),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},1594:function(e,t,n){"use strict";var r=n(6012),i=n(3175),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},6902:function(e,t,n){"use strict";var r=n(541),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},1128:function(e,t,n){"use strict";var r=n(7194),i=n(9796),o=n(6324).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},8063:function(e,t,n){"use strict";var r=n(5970).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},4909:function(e,t,n){"use strict";var r=n(6635),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},4993:function(e,t,n){"use strict";var r=n(4800),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},7162:function(e,t,n){"use strict";var r=n(2752),i=n(9508),o=n(2614),a=function(e){return function(t,n,a){var s,l=r(t),u=o(l);if(0===u)return!e&&-1;var c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},937:function(e,t,n){"use strict";var r=n(9847);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},8013:function(e,t,n){"use strict";var r=n(5722),i=n(9530),o=n(8113),a=n(2614),s=TypeError,l="Reduce of empty array with no initial value",u=function(e){return function(t,n,u,c){var f=i(t),d=o(f),p=a(f);if(r(n),0===p&&u<2)throw new s(l);var h=e?p-1:0,m=e?-1:1;if(u<2)for(;;){if(h in d){c=d[h],h+=m;break}if(h+=m,e?h<0:p<=h)throw new s(l)}for(;e?h>=0:p>h;h+=m)h in d&&(c=n(c,d[h],h,f));return c}};e.exports={left:u(!1),right:u(!0)}},9935:function(e,t,n){"use strict";var r=n(8840);e.exports=r([].slice)},3315:function(e,t,n){"use strict";var r=n(7194)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},9406:function(e,t,n){"use strict";var r=n(8840),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},4868:function(e,t,n){"use strict";var r=n(3101),i=n(8257),o=n(9406),a=n(7194)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=s(e),a))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},4186:function(e,t,n){"use strict";var r=n(7394),i=n(3816),o=n(1382),a=n(6324);e.exports=function(e,t,n){for(var s=i(t),l=a.f,u=o.f,c=0;c<s.length;c++){var f=s[c];r(e,f)||n&&r(n,f)||l(e,f,u(t,f))}}},4656:function(e,t,n){"use strict";var r=n(7194)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},6018:function(e,t,n){"use strict";var r=n(9847);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},81:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},4669:function(e,t,n){"use strict";var r=n(9687),i=n(6324),o=n(5838);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},5838:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5236:function(e,t,n){"use strict";var r=n(9524),i=n(6324);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},6478:function(e,t,n){"use strict";var r=n(8257),i=n(6324),o=n(9524),a=n(1276);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},1276:function(e,t,n){"use strict";var r=n(4124),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9687:function(e,t,n){"use strict";var r=n(9847);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},1176:function(e,t,n){"use strict";var r=n(4124),i=n(4800),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},1612:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7677:function(e,t,n){"use strict";var r=n(1176)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},4554:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5213:function(e,t,n){"use strict";var r=n(8805);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},1117:function(e,t,n){"use strict";var r=n(8805);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},3504:function(e,t,n){"use strict";var r=n(1834);e.exports="NODE"===r},2870:function(e,t,n){"use strict";var r=n(8805);e.exports=/web0s(?!.*chrome)/i.test(r)},8805:function(e,t,n){"use strict";var r=n(4124).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},5055:function(e,t,n){"use strict";var r,i,o=n(4124),a=n(8805),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},1834:function(e,t,n){"use strict";var r=n(4124),i=n(8805),o=n(9406),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},3414:function(e,t,n){"use strict";var r=n(4124),i=n(1382).f,o=n(4669),a=n(6478),s=n(1276),l=n(4186),u=n(770);e.exports=function(e,t){var n,c,f,d,p,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):r[h]&&r[h].prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=i(n,c))&&p.value:n[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,c,d,e)}}},9847:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},3019:function(e,t,n){"use strict";n(4134);var r=n(5107),i=n(6478),o=n(9245),a=n(9847),s=n(7194),l=n(4669),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),p=!a(function(){var t={};return t[d]=function(){return 7},7!==""[e](t)}),h=p&&!a(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t});if(!p||!h||n){var m=/./[d],g=t(d,""[e],function(e,t,n,i,a){var s=t.exec;return s===o||s===c.exec?p&&!a?{done:!0,value:r(m,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}});i(String.prototype,e,g[0]),i(c,d,g[1])}f&&l(c[d],"sham",!0)}},7202:function(e,t,n){"use strict";var r=n(9894),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},7384:function(e,t,n){"use strict";var r=n(6116),i=n(5722),o=n(9894),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},9894:function(e,t,n){"use strict";var r=n(9847);e.exports=!r(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},5107:function(e,t,n){"use strict";var r=n(9894),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},8984:function(e,t,n){"use strict";var r=n(9687),i=n(7394),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:s&&"something"===(function(){}).name,CONFIGURABLE:l}},4776:function(e,t,n){"use strict";var r=n(8840),i=n(5722);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6116:function(e,t,n){"use strict";var r=n(9406),i=n(8840);e.exports=function(e){if("Function"===r(e))return i(e)}},8840:function(e,t,n){"use strict";var r=n(9894),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},3630:function(e,t,n){"use strict";var r=n(4124),i=n(8257);e.exports=function(e,t){var n;return arguments.length<2?i(n=r[e])?n:void 0:r[e]&&r[e][t]}},2156:function(e,t,n){"use strict";var r=n(4868),i=n(4291),o=n(378),a=n(4481),s=n(7194)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},833:function(e,t,n){"use strict";var r=n(5107),i=n(5722),o=n(4993),a=n(3175),s=n(2156),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new l(a(e)+" is not iterable")}},4291:function(e,t,n){"use strict";var r=n(5722),i=n(378);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},8678:function(e,t,n){"use strict";var r=n(8840),i=n(9530),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,m=c;return void 0!==f&&(f=i(f),m=u),s(d,m,function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>h){var d=o(c/10);if(0===d)return i;if(d<=h)return void 0===r[d-1]?a(s,1):r[d-1]+a(s,1);return i}u=r[c-1]}return void 0===u?"":u})}},4124:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},7394:function(e,t,n){"use strict";var r=n(8840),i=n(9530),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},6643:function(e){"use strict";e.exports={}},6094:function(e){"use strict";e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},9122:function(e,t,n){"use strict";var r=n(3630);e.exports=r("document","documentElement")},3416:function(e,t,n){"use strict";var r=n(9687),i=n(9847),o=n(1176);e.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},8113:function(e,t,n){"use strict";var r=n(8840),i=n(9847),o=n(9406),a=Object,s=r("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},5232:function(e,t,n){"use strict";var r=n(8840),i=n(8257),o=n(5661),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},2796:function(e,t,n){"use strict";var r,i,o,a=n(3464),s=n(4124),l=n(4800),u=n(4669),c=n(7394),f=n(5661),d=n(2753),p=n(6643),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new m(h);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=d("state");p[v]=!0,r=function(e,t){if(c(e,v))throw new m(h);return t.facade=e,u(e,v,t),t},i=function(e){return c(e,v)?e[v]:{}},o=function(e){return c(e,v)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},5263:function(e,t,n){"use strict";var r=n(7194),i=n(4481),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},8257:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},6012:function(e,t,n){"use strict";var r=n(8840),i=n(9847),o=n(8257),a=n(4868),s=n(3630),l=n(5232),u=function(){},c=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(u),h=function(e){if(!o(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||i(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?m:h},770:function(e,t,n){"use strict";var r=n(9847),i=n(8257),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},378:function(e){"use strict";e.exports=function(e){return null==e}},4800:function(e,t,n){"use strict";var r=n(8257);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},541:function(e,t,n){"use strict";var r=n(4800);e.exports=function(e){return r(e)||null===e}},1564:function(e){"use strict";e.exports=!1},9381:function(e,t,n){"use strict";var r=n(4800),i=n(9406),o=n(7194)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},3195:function(e,t,n){"use strict";var r=n(3630),i=n(8257),o=n(6635),a=n(4838),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},4199:function(e,t,n){"use strict";var r=n(7384),i=n(5107),o=n(4993),a=n(3175),s=n(5263),l=n(2614),u=n(6635),c=n(833),f=n(2156),d=n(9582),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,y,v,b,A,w,E,C=n&&n.that,S=!!(n&&n.AS_ENTRIES),B=!!(n&&n.IS_RECORD),x=!!(n&&n.IS_ITERATOR),_=!!(n&&n.INTERRUPTED),R=r(t,C),M=function(e){return g&&d(g,"normal",e),new h(!0,e)},O=function(e){return S?(o(e),_?R(e[0],e[1],M):R(e[0],e[1])):_?R(e,M):R(e)};if(B)g=e.iterator;else if(x)g=e;else{if(!(y=f(e)))throw new p(a(e)+" is not iterable");if(s(y)){for(v=0,b=l(e);b>v;v++)if((A=O(e[v]))&&u(m,A))return A;return new h(!1)}g=c(e,y)}for(w=B?e.next:g.next;!(E=i(w,g)).done;){try{A=O(E.value)}catch(e){d(g,"throw",e)}if("object"==typeof A&&A&&u(m,A))return A}return new h(!1)}},9582:function(e,t,n){"use strict";var r=n(5107),i=n(4993),o=n(4291);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},8246:function(e,t,n){"use strict";var r=n(454).IteratorPrototype,i=n(9796),o=n(5838),a=n(3186),s=n(4481),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},721:function(e,t,n){"use strict";var r=n(3414),i=n(5107),o=n(1564),a=n(8984),s=n(8257),l=n(8246),u=n(2447),c=n(8599),f=n(3186),d=n(4669),p=n(6478),h=n(7194),m=n(4481),g=n(454),y=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,A=g.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",C="values",S="entries",B=function(){return this};e.exports=function(e,t,n,a,h,g,x){l(n,t,a);var _,R,M,O=function(e){if(e===h&&D)return D;if(!A&&e&&e in I)return I[e];switch(e){case E:case C:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",T=!1,I=e.prototype,k=I[w]||I["@@iterator"]||h&&I[h],D=!A&&k||O(h),F="Array"===t&&I.entries||k;if(F&&(_=u(F.call(new e)))!==Object.prototype&&_.next&&(o||u(_)===b||(c?c(_,b):s(_[w])||p(_,w,B)),f(_,P,!0,!0),o&&(m[P]=B)),y&&h===C&&k&&k.name!==C&&(!o&&v?d(I,"name",C):(T=!0,D=function(){return i(k,this)})),h){if(R={values:O(C),keys:g?D:O(E),entries:O(S)},x)for(M in R)!A&&!T&&M in I||p(I,M,R[M]);else r({target:t,proto:!0,forced:A||T},R)}return(!o||x)&&I[w]!==D&&p(I,w,D,{name:h}),m[t]=D,R}},454:function(e,t,n){"use strict";var r,i,o,a=n(9847),s=n(8257),l=n(4800),u=n(9796),c=n(2447),f=n(6478),d=n(7194),p=n(1564),h=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):m=!0),!l(r)||a(function(){var e={};return r[h].call(e)!==e})?r={}:p&&(r=u(r)),s(r[h])||f(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},4481:function(e){"use strict";e.exports={}},2614:function(e,t,n){"use strict";var r=n(5009);e.exports=function(e){return r(e.length)}},9524:function(e,t,n){"use strict";var r=n(8840),i=n(9847),o=n(8257),a=n(7394),s=n(9687),l=n(8984).CONFIGURABLE,u=n(5232),c=n(2796),f=c.enforce,d=c.get,p=String,h=Object.defineProperty,m=r("".slice),g=r("".replace),y=r([].join),v=s&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),A=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=A(function(){return o(this)&&d(this).source||u(this)},"toString")},4412:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},2941:function(e,t,n){"use strict";var r,i,o,a,s,l=n(4124),u=n(6994),c=n(7384),f=n(861).set,d=n(1763),p=n(1117),h=n(5213),m=n(2870),g=n(3504),y=l.MutationObserver||l.WebKitMutationObserver,v=l.document,b=l.process,A=l.Promise,w=u("queueMicrotask");if(!w){var E=new d,C=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=E.get();)try{t()}catch(e){throw E.head&&r(),e}e&&e.enter()};p||g||m||!y||!v?!h&&A&&A.resolve?((a=A.resolve(void 0)).constructor=A,s=c(a.then,a),r=function(){s(C)}):g?r=function(){b.nextTick(C)}:(f=c(f,l),r=function(){f(C)}):(i=!0,o=v.createTextNode(""),new y(C).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){E.head||r(),E.add(e)}}e.exports=w},9872:function(e,t,n){"use strict";var r=n(5722),i=TypeError,o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},7965:function(e,t,n){"use strict";var r=n(9381),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},4982:function(e,t,n){"use strict";var r=n(4124),i=n(9847),o=n(8840),a=n(7618),s=n(6433).trim,l=n(7767),u=r.parseInt,c=r.Symbol,f=c&&c.iterator,d=/^[+-]?0x/i,p=o(d.exec),h=8!==u(l+"08")||22!==u(l+"0x16")||f&&!i(function(){u(Object(f))});e.exports=h?function(e,t){var n=s(a(e));return u(n,t>>>0||(p(d,n)?16:10))}:u},9166:function(e,t,n){"use strict";var r=n(9687),i=n(8840),o=n(5107),a=n(9847),s=n(795),l=n(972),u=n(7230),c=n(9530),f=n(8113),d=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!d||a(function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!==d({},e)[n]||s(d({},t)).join("")!==i})?function(e,t){for(var n=c(e),i=arguments.length,a=1,d=l.f,p=u.f;i>a;)for(var m,g=f(arguments[a++]),y=d?h(s(g),d(g)):s(g),v=y.length,b=0;v>b;)m=y[b++],(!r||o(p,g,m))&&(n[m]=g[m]);return n}:d},9796:function(e,t,n){"use strict";var r,i=n(4993),o=n(8138),a=n(4554),s=n(6643),l=n(9122),u=n(1176),c=n(2753),f="prototype",d="script",p=c("IE_PROTO"),h=function(){},m=function(e){return"<"+d+">"+e+"</"+d+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=u("iframe");return t.style.display="none",l.appendChild(t),t.src=String("java"+d+":"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&r?g(r):y():g(r);for(var e=a.length;e--;)delete v[f][a[e]];return v()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=i(e),n=new h,h[f]=null,n[p]=e):n=v(),void 0===t?n:o.f(n,t)}},8138:function(e,t,n){"use strict";var r=n(9687),i=n(5963),o=n(6324),a=n(4993),s=n(2752),l=n(795);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,n=i[c++],r[n]);return e}},6324:function(e,t,n){"use strict";var r=n(9687),i=n(3416),o=n(5963),a=n(4993),s=n(4587),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1382:function(e,t,n){"use strict";var r=n(9687),i=n(5107),o=n(7230),a=n(5838),s=n(2752),l=n(4587),u=n(7394),c=n(3416),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=l(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},2459:function(e,t,n){"use strict";var r=n(3770),i=n(4554).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},972:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2447:function(e,t,n){"use strict";var r=n(7394),i=n(8257),o=n(9530),a=n(2753),s=n(6018),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},6635:function(e,t,n){"use strict";var r=n(8840);e.exports=r({}.isPrototypeOf)},3770:function(e,t,n){"use strict";var r=n(8840),i=n(7394),o=n(2752),a=n(7162).indexOf,s=n(6643),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},795:function(e,t,n){"use strict";var r=n(3770),i=n(4554);e.exports=Object.keys||function(e){return r(e,i)}},7230:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},8599:function(e,t,n){"use strict";var r=n(4776),i=n(4800),o=n(1988),a=n(6902);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),i(n)&&(t?e(n,r):n.__proto__=r),n}}():void 0)},5327:function(e,t,n){"use strict";var r=n(5107),i=n(8257),o=n(4800),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e))||i(n=e.valueOf)&&!o(s=r(n,e))||"string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},3816:function(e,t,n){"use strict";var r=n(3630),i=n(8840),o=n(2459),a=n(972),s=n(4993),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},1031:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},2262:function(e,t,n){"use strict";var r=n(4124),i=n(4463),o=n(8257),a=n(770),s=n(5232),l=n(7194),u=n(1834),c=n(1564),f=n(5055),d=i&&i.prototype,p=l("species"),h=!1,m=o(r.PromiseRejectionEvent),g=a("Promise",function(){var e=s(i),t=e!==String(i);if(!t&&66===f||c&&!(d.catch&&d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[p]=r,!(h=n.then(function(){}) instanceof r))return!0}return!t&&("BROWSER"===u||"DENO"===u)&&!m});e.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:h}},4463:function(e,t,n){"use strict";var r=n(4124);e.exports=r.Promise},331:function(e,t,n){"use strict";var r=n(4993),i=n(4800),o=n(9872);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},9230:function(e,t,n){"use strict";var r=n(4463),i=n(3315),o=n(2262).CONSTRUCTOR;e.exports=o||!i(function(e){r.all(e).then(void 0,function(){})})},1763:function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},5106:function(e,t,n){"use strict";var r=n(5107),i=n(4993),o=n(8257),a=n(9406),s=n(9245),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},9245:function(e,t,n){"use strict";var r,i,o=n(5107),a=n(8840),s=n(7618),l=n(2864),u=n(7387),c=n(309),f=n(9796),d=n(2796).get,p=n(8990),h=n(5273),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,v=a("".charAt),b=a("".indexOf),A=a("".replace),w=a("".slice),E=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),C=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(E||S||C||p||h)&&(y=function(e){var t,n,r,i,a,u,c,p=d(this),h=s(e),B=p.raw;if(B)return B.lastIndex=this.lastIndex,t=o(y,B,h),this.lastIndex=B.lastIndex,t;var x=p.groups,_=C&&this.sticky,R=o(l,this),M=this.source,O=0,P=h;if(_&&(-1===b(R=A(R,"y",""),"g")&&(R+="g"),P=w(h,this.lastIndex),this.lastIndex>0&&(!this.multiline||this.multiline&&"\n"!==v(h,this.lastIndex-1))&&(M="(?: "+M+")",P=" "+P,O++),n=RegExp("^(?:"+M+")",R)),S&&(n=RegExp("^"+M+"$(?!\\s)",R)),E&&(r=this.lastIndex),i=o(g,_?n:this,P),_?i?(i.input=w(i.input,O),i[0]=w(i[0],O),i.index=this.lastIndex,this.lastIndex+=i[0].length):this.lastIndex=0:E&&i&&(this.lastIndex=this.global?i.index+i[0].length:r),S&&i&&i.length>1&&o(m,i[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)}),i&&x)for(a=0,i.groups=u=f(null);a<x.length;a++)u[(c=x[a])[0]]=i[c[1]];return i}),e.exports=y},2864:function(e,t,n){"use strict";var r=n(4993);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},7387:function(e,t,n){"use strict";var r=n(9847),i=n(4124).RegExp,o=r(function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=o||r(function(){return!i("a","y").sticky}),s=o||r(function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},8990:function(e,t,n){"use strict";var r=n(9847),i=n(4124).RegExp;e.exports=r(function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},5273:function(e,t,n){"use strict";var r=n(9847),i=n(4124).RegExp;e.exports=r(function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},1988:function(e,t,n){"use strict";var r=n(378),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},6994:function(e,t,n){"use strict";var r=n(4124),i=n(9687),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},8902:function(e,t,n){"use strict";var r=n(3630),i=n(5236),o=n(7194),a=n(9687),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},3186:function(e,t,n){"use strict";var r=n(6324).f,i=n(7394),o=n(7194)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},2753:function(e,t,n){"use strict";var r=n(309),i=n(5842),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5661:function(e,t,n){"use strict";var r=n(1564),i=n(4124),o=n(1276),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},309:function(e,t,n){"use strict";var r=n(5661);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},9714:function(e,t,n){"use strict";var r=n(4993),i=n(1594),o=n(378),a=n(7194)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},5970:function(e,t,n){"use strict";var r=n(8840),i=n(8922),o=n(7618),a=n(1988),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,f=o(a(t)),d=i(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=l(f,d))<55296||r>56319||d+1===p||(c=l(f,d+1))<56320||c>57343?e?s(f,d):r:e?u(f,d,d+2):(r-55296<<10)+(c-56320)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},8541:function(e,t,n){"use strict";var r=n(8984).PROPER,i=n(9847),o=n(7767),a="​\x85᠎";e.exports=function(e){return i(function(){return!!o[e]()||a[e]()!==a||r&&o[e].name!==e})}},6433:function(e,t,n){"use strict";var r=n(8840),i=n(1988),o=n(7618),a=n(7767),s=r("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},4699:function(e,t,n){"use strict";var r=n(5055),i=n(9847),o=n(4124).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&r&&r<41})},861:function(e,t,n){"use strict";var r,i,o,a,s=n(4124),l=n(7202),u=n(7384),c=n(8257),f=n(7394),d=n(9847),p=n(9122),h=n(9935),m=n(1176),g=n(3160),y=n(1117),v=n(3504),b=s.setImmediate,A=s.clearImmediate,w=s.process,E=s.Dispatch,C=s.Function,S=s.MessageChannel,B=s.String,x=0,_={},R="onreadystatechange";d(function(){r=s.location});var M=function(e){if(f(_,e)){var t=_[e];delete _[e],t()}},O=function(e){return function(){M(e)}},P=function(e){M(e.data)},T=function(e){s.postMessage(B(e),r.protocol+"//"+r.host)};b&&A||(b=function(e){g(arguments.length,1);var t=c(e)?e:C(e),n=h(arguments,1);return _[++x]=function(){l(t,void 0,n)},i(x),x},A=function(e){delete _[e]},v?i=function(e){w.nextTick(O(e))}:E&&E.now?i=function(e){E.now(O(e))}:S&&!y?(a=(o=new S).port2,o.port1.onmessage=P,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(T)?(i=T,s.addEventListener("message",P,!1)):i=R in m("script")?function(e){p.appendChild(m("script"))[R]=function(){p.removeChild(this),M(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:b,clear:A}},9508:function(e,t,n){"use strict";var r=n(8922),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},2752:function(e,t,n){"use strict";var r=n(8113),i=n(1988);e.exports=function(e){return r(i(e))}},8922:function(e,t,n){"use strict";var r=n(4412);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},5009:function(e,t,n){"use strict";var r=n(8922),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},9530:function(e,t,n){"use strict";var r=n(1988),i=Object;e.exports=function(e){return i(r(e))}},8308:function(e,t,n){"use strict";var r=n(5107),i=n(4800),o=n(3195),a=n(4291),s=n(5327),l=n(7194),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),!i(n=r(l,e,t))||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4587:function(e,t,n){"use strict";var r=n(8308),i=n(3195);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},3101:function(e,t,n){"use strict";var r=n(7194)("toStringTag"),i={};i[r]="z",e.exports="[object z]"===String(i)},7618:function(e,t,n){"use strict";var r=n(4868),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},3175:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5842:function(e,t,n){"use strict";var r=n(8840),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},4838:function(e,t,n){"use strict";var r=n(4699);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5963:function(e,t,n){"use strict";var r=n(9687),i=n(9847);e.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},3160:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},3464:function(e,t,n){"use strict";var r=n(4124),i=n(8257),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},7194:function(e,t,n){"use strict";var r=n(4124),i=n(309),o=n(7394),a=n(5842),s=n(4699),l=n(4838),u=r.Symbol,c=i("wks"),f=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:f("Symbol."+e)),c[e]}},7767:function(e){"use strict";e.exports=" \n\v\f\r \xa0               \u2028\u2029\uFEFF"},1887:function(e,t,n){"use strict";var r=n(3414),i=n(7162).includes,o=n(9847),a=n(1128);r({target:"Array",proto:!0,forced:o(function(){return![,].includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},2231:function(e,t,n){"use strict";var r=n(2752),i=n(1128),o=n(4481),a=n(2796),s=n(6324).f,l=n(721),u=n(81),c=n(1564),f=n(9687),d="Array Iterator",p=a.set,h=a.getterFor(d);e.exports=l(Array,"Array",function(e,t){p(this,{type:d,target:r(e),index:0,kind:t})},function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},7042:function(e,t,n){"use strict";var r=n(3414),i=n(8013).left,o=n(937),a=n(5055);r({target:"Array",proto:!0,forced:!n(3504)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},329:function(e,t,n){"use strict";var r=n(3414),i=n(9166);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},5998:function(e,t,n){"use strict";var r=n(3414),i=n(4982);r({global:!0,forced:parseInt!==i},{parseInt:i})},6399:function(e,t,n){"use strict";var r=n(3414),i=n(5107),o=n(5722),a=n(9872),s=n(1031),l=n(4199);r({target:"Promise",stat:!0,forced:n(9230)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,c=s(function(){var n=o(t.resolve),a=[],s=0,c=1;l(e,function(e){var o=s++,l=!1;c++,i(n,t,e).then(function(e){!l&&(l=!0,a[o]=e,--c||r(a))},u)}),--c||r(a)});return c.error&&u(c.value),n.promise}})},2240:function(e,t,n){"use strict";var r=n(3414),i=n(1564),o=n(2262).CONSTRUCTOR,a=n(4463),s=n(3630),l=n(8257),u=n(6478),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(a)){var f=s("Promise").prototype.catch;c.catch!==f&&u(c,"catch",f,{unsafe:!0})}},5622:function(e,t,n){"use strict";var r,i,o,a,s=n(3414),l=n(1564),u=n(3504),c=n(4124),f=n(5107),d=n(6478),p=n(8599),h=n(3186),m=n(8902),g=n(5722),y=n(8257),v=n(4800),b=n(4909),A=n(9714),w=n(861).set,E=n(2941),C=n(6094),S=n(1031),B=n(1763),x=n(2796),_=n(4463),R=n(2262),M=n(9872),O="Promise",P=R.CONSTRUCTOR,T=R.REJECTION_EVENT,I=R.SUBCLASSING,k=x.getterFor(O),D=x.set,F=_&&_.prototype,L=_,j=F,N=c.TypeError,U=c.document,G=c.process,H=M.f,z=H,J=!!(U&&U.createEvent&&c.dispatchEvent),W="unhandledrejection",K=function(e){var t;return!!(v(e)&&y(t=e.then))&&t},Q=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&Z(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?u(new N("Promise-chain cycle")):(r=K(n))?f(r,n,l,u):l(n)):u(o)}catch(e){c&&!i&&c.exit(),u(e)}},X=function(e,t){e.notified||(e.notified=!0,E(function(){for(var n,r=e.reactions;n=r.get();)Q(n,e);e.notified=!1,t&&!e.rejection&&q(e)}))},Y=function(e,t,n){var r,i;J?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!T&&(i=c["on"+e])?i(r):e===W&&C("Unhandled promise rejection",n)},q=function(e){f(w,c,function(){var t,n=e.facade,r=e.value;if(V(e)&&(t=S(function(){u?G.emit("unhandledRejection",r,n):Y(W,n,r)}),e.rejection=u||V(e)?2:1,t.error))throw t.value})},V=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){f(w,c,function(){var t=e.facade;u?G.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)})},$=function(e,t,n){return function(r){e(t,r,n)}},ee=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},et=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var r=K(t);r?E(function(){var n={done:!1};try{f(r,t,$(et,n,e),$(ee,n,e))}catch(t){ee(n,t,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(t){ee({done:!1},t,e)}}};if(P&&(j=(L=function(e){b(this,j),g(e),f(r,this);var t=k(this);try{e($(et,t),$(ee,t))}catch(e){ee(t,e)}}).prototype,(r=function(e){D(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new B,rejection:!1,state:0,value:null})}).prototype=d(j,"then",function(e,t){var n=k(this),r=H(A(this,L));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=u?G.domain:void 0,0===n.state?n.reactions.add(r):E(function(){Q(r,n)}),r.promise}),i=function(){var e=new r,t=k(e);this.promise=e,this.resolve=$(et,t),this.reject=$(ee,t)},M.f=H=function(e){return e===L||e===o?new i(e):z(e)},!l&&y(_)&&F!==Object.prototype)){a=F.then,I||d(F,"then",function(e,t){var n=this;return new L(function(e,t){f(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete F.constructor}catch(e){}p&&p(F,j)}s({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),h(L,O,!1,!0),m(O)},3147:function(e,t,n){"use strict";n(5622),n(6399),n(2240),n(336),n(726),n(8453)},336:function(e,t,n){"use strict";var r=n(3414),i=n(5107),o=n(5722),a=n(9872),s=n(1031),l=n(4199);r({target:"Promise",stat:!0,forced:n(9230)},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=s(function(){var a=o(t.resolve);l(e,function(e){i(a,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},726:function(e,t,n){"use strict";var r=n(3414),i=n(9872);r({target:"Promise",stat:!0,forced:n(2262).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},8453:function(e,t,n){"use strict";var r=n(3414),i=n(3630),o=n(1564),a=n(4463),s=n(2262).CONSTRUCTOR,l=n(331),u=i("Promise"),c=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},4134:function(e,t,n){"use strict";var r=n(3414),i=n(9245);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9310:function(e,t,n){"use strict";var r=n(3414),i=n(8840),o=n(7965),a=n(1988),s=n(7618),l=n(4656),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},4125:function(e,t,n){"use strict";var r=n(7202),i=n(5107),o=n(8840),a=n(3019),s=n(9847),l=n(4993),u=n(8257),c=n(378),f=n(8922),d=n(5009),p=n(7618),h=n(1988),m=n(8063),g=n(4291),y=n(8678),v=n(5106),b=n(7194)("replace"),A=Math.max,w=Math.min,E=o([].concat),C=o([].push),S=o("".indexOf),B=o("".slice),x="$0"==="a".replace(/./,"$0"),_=!!/./[b]&&""===/./[b]("a","$0");a("replace",function(e,t,n){var o=_?"$":"$0";return[function(e,n){var r=h(this),o=c(e)?void 0:g(e,b);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var a=l(this),s=p(e);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var c=n(t,a,s,i);if(c.done)return c.value}var h=u(i);h||(i=p(i));var g=a.global;g&&(O=a.unicode,a.lastIndex=0);for(var b=[];null!==(P=v(a,s))&&(C(b,P),g);)""===p(P[0])&&(a.lastIndex=m(s,d(a.lastIndex),O));for(var x="",_=0,R=0;R<b.length;R++){for(var M,O,P,T,I=p((P=b[R])[0]),k=A(w(f(P.index),s.length),0),D=[],F=1;F<P.length;F++)C(D,void 0===(M=P[F])?M:String(M));var L=P.groups;if(h){var j=E([I],D,k,s);void 0!==L&&C(j,L),T=p(r(i,void 0,j))}else T=y(I,s,k,D,L,i);k>=_&&(x+=B(s,_,k)+T,_=k+I.length)}return x+B(s,_)}]},!!s(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!x||_)},3602:function(e,t,n){"use strict";var r=n(5107),i=n(8840),o=n(3019),a=n(4993),s=n(378),l=n(1988),u=n(9714),c=n(8063),f=n(5009),d=n(7618),p=n(4291),h=n(5106),m=n(7387),g=n(9847),y=m.UNSUPPORTED_Y,v=Math.min,b=i([].push),A=i("".slice),w=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),E="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=l(this),a=s(t)?void 0:p(t,e);return a?r(a,t,o,n):r(i,d(o),t,n)},function(e,r){var o=a(this),s=d(e);if(!E){var l=n(i,o,s,r,i!==t);if(l.done)return l.value}var p=u(o,RegExp),m=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),w=new p(y?"^(?:"+o.source+")":o,g),C=void 0===r?4294967295:r>>>0;if(0===C)return[];if(0===s.length)return null===h(w,s)?[s]:[];for(var S=0,B=0,x=[];B<s.length;){w.lastIndex=y?0:B;var _,R=h(w,y?A(s,B):s);if(null===R||(_=v(f(w.lastIndex+(y?B:0)),s.length))===S)B=c(s,B,m);else{if(b(x,A(s,S,B)),x.length===C)return x;for(var M=1;M<=R.length-1;M++)if(b(x,R[M]),x.length===C)return x;B=S=_}}return b(x,A(s,S)),x}]},E||!w,y)},127:function(e,t,n){"use strict";var r,i=n(3414),o=n(6116),a=n(1382).f,s=n(5009),l=n(7618),u=n(7965),c=n(1988),f=n(4656),d=n(1564),p=o("".slice),h=Math.min,m=f("startsWith");i({target:"String",proto:!0,forced:!(!d&&!m&&(r=a(String.prototype,"startsWith"))&&!r.writable)&&!m},{startsWith:function(e){var t=l(c(this));u(e);var n=s(h(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return p(t,n,n+r.length)===r}})},2344:function(e,t,n){"use strict";var r=n(3414),i=n(6433).trim;r({target:"String",proto:!0,forced:n(8541)("trim")},{trim:function(){return i(this)}})},7940:function(e,t,n){"use strict";var r=n(4124),i=n(1612),o=n(7677),a=n(2231),s=n(4669),l=n(3186),u=n(7194)("iterator"),c=a.values,f=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),i[t]){for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},1119:function(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}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},6123:function(e,t,n){"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{J:function(){return r}})},3359:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(6123);function i(e,t){var n=(0,r.J)(e,t,"get");return n.get?n.get.call(e):n.value}},1378:function(e,t,n){"use strict";function r(e,t,n){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n.d(t,{_:function(){return r}})},262:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(6123);function i(e,t,n){var i=(0,r.J)(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,i,n),n}},9419:function(e,t){"use strict";t.Z=function(){return function(e){var t,n,r,i,o={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},a={},s={};a.L=1,s[1]="L",Object.keys(o).forEach(function(e,t){a[e]=1<<t+1,s[a[e]]=e}),Object.freeze(a);var l=a.LRI|a.RLI|a.FSI,u=a.L|a.R|a.AL,c=a.B|a.S|a.WS|a.ON|a.FSI|a.LRI|a.RLI|a.PDI,f=a.BN|a.RLE|a.LRE|a.RLO|a.LRO|a.PDF,d=a.S|a.WS|a.B|l|a.PDI|f,p=null;function h(e){return!function(){if(!p){p=new Map;var e=function(e){if(o.hasOwnProperty(e)){var t=0;o[e].split(",").forEach(function(n){var r=n.split("+"),i=r[0],o=r[1];i=parseInt(i,36),o=o?parseInt(o,36):0,p.set(t+=i,a[e]);for(var s=0;s<o;s++)p.set(++t,a[e])})}};for(var t in o)e(t)}}(),p.get(e.codePointAt(0))||a.L}var m={pairs:"14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function g(e,t){var n,r=0,i=new Map,o=t&&new Map;return e.split(",").forEach(function e(a){if(-1!==a.indexOf("+"))for(var s=+a;s--;)e(n);else{n=a;var l=a.split(">"),u=l[0],c=l[1];u=String.fromCodePoint(r+=parseInt(u,36)),c=String.fromCodePoint(r+=parseInt(c,36)),i.set(u,c),t&&o.set(c,u)}}),{map:i,reverseMap:o}}function y(){if(!t){var e=g(m.pairs,!0),i=e.map,o=e.reverseMap;t=i,n=o,r=g(m.canonical,!1).map}}function v(e){return y(),t.get(e)||null}function b(e){return y(),n.get(e)||null}function A(e){return y(),r.get(e)||null}var w=a.L,E=a.R,C=a.EN,S=a.ES,B=a.ET,x=a.AN,_=a.CS,R=a.B,M=a.S,O=a.ON,P=a.BN,T=a.NSM,I=a.AL,k=a.LRO,D=a.RLO,F=a.LRE,L=a.RLE,j=a.PDF,N=a.LRI,U=a.RLI,G=a.FSI,H=a.PDI;function z(e){return!function(){if(!i){var e=g("14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",!0),t=e.map;e.reverseMap.forEach(function(e,n){t.set(n,e)}),i=t}}(),i.get(e)||null}function J(e,t,n,r){var i=e.length;n=Math.max(0,null==n?0:+n),r=Math.min(i-1,null==r?i-1:+r);var o=[];return t.paragraphs.forEach(function(i){var a=Math.max(n,i.start),s=Math.min(r,i.end);if(a<s){for(var l=t.levels.slice(a,s+1),u=s;u>=a&&h(e[u])&d;u--)l[u]=i.level;for(var c=i.level,f=1/0,p=0;p<l.length;p++){var m=l[p];m>c&&(c=m),m<f&&(f=1|m)}for(var g=c;g>=f;g--)for(var y=0;y<l.length;y++)if(l[y]>=g){for(var v=y;y+1<l.length&&l[y+1]>=g;)y++;y>v&&o.push([v+a,y+a])}}}),o}function W(e,t,n,r){for(var i=J(e,t,n,r),o=[],a=0;a<e.length;a++)o[a]=a;return i.forEach(function(e){for(var t=e[0],n=e[1],r=o.slice(t,n+1),i=r.length;i--;)o[n-i]=r[i]}),o}return e.closingToOpeningBracket=b,e.getBidiCharType=h,e.getBidiCharTypeName=function(e){return s[h(e)]},e.getCanonicalBracket=A,e.getEmbeddingLevels=function(e,t){for(var n=new Uint32Array(e.length),r=0;r<e.length;r++)n[r]=h(e[r]);var i=new Map;function o(e,t){var r=n[e];n[e]=t,i.set(r,i.get(r)-1),r&c&&i.set(c,i.get(c)-1),i.set(t,(i.get(t)||0)+1),t&c&&i.set(c,(i.get(c)||0)+1)}for(var a=new Uint8Array(e.length),s=new Map,p=[],m=null,g=0;g<e.length;g++)m||p.push(m={start:g,end:e.length-1,level:"rtl"===t?1:"ltr"===t?0:tO(g,!1)}),n[g]&R&&(m.end=g,m=null);for(var y=L|F|D|k|l|H|j|R,z=function(e){return e+(1&e?1:2)},J=function(e){return e+(1&e?2:1)},W=0;W<p.length;W++){var K=[{_level:(m=p[W]).level,_override:0,_isolate:0}],Q=void 0,X=0,Y=0,q=0;i.clear();for(var V=m.start;V<=m.end;V++){var Z=n[V];if(Q=K[K.length-1],i.set(Z,(i.get(Z)||0)+1),Z&c&&i.set(c,(i.get(c)||0)+1),Z&y){if(Z&(L|F)){a[V]=Q._level;var $=(Z===L?J:z)(Q._level);!($<=125)||X||Y?!X&&Y++:K.push({_level:$,_override:0,_isolate:0})}else if(Z&(D|k)){a[V]=Q._level;var ee=(Z===D?J:z)(Q._level);!(ee<=125)||X||Y?!X&&Y++:K.push({_level:ee,_override:Z&D?E:w,_isolate:0})}else if(Z&l){Z&G&&(Z=1===tO(V+1,!0)?U:N),a[V]=Q._level,Q._override&&o(V,Q._override);var et=(Z===U?J:z)(Q._level);et<=125&&0===X&&0===Y?(q++,K.push({_level:et,_override:0,_isolate:1,_isolInitIndex:V})):X++}else if(Z&H){if(X>0)X--;else if(q>0){for(Y=0;!K[K.length-1]._isolate;)K.pop();var en=K[K.length-1]._isolInitIndex;null!=en&&(s.set(en,V),s.set(V,en)),K.pop(),q--}Q=K[K.length-1],a[V]=Q._level,Q._override&&o(V,Q._override)}else Z&j?(0===X&&(Y>0?Y--:!Q._isolate&&K.length>1&&(K.pop(),Q=K[K.length-1])),a[V]=Q._level):Z&R&&(a[V]=m.level)}else a[V]=Q._level,Q._override&&Z!==P&&o(V,Q._override)}for(var er=[],ei=null,eo=m.start;eo<=m.end;eo++){var ea=n[eo];if(!(ea&f)){var es=a[eo],el=ea&l,eu=ea===H;ei&&es===ei._level?(ei._end=eo,ei._endsWithIsolInit=el):er.push(ei={_start:eo,_end:eo,_level:es,_startsWithPDI:eu,_endsWithIsolInit:el})}}for(var ec=[],ef=0;ef<er.length;ef++){var ed=er[ef];if(!ed._startsWithPDI||ed._startsWithPDI&&!s.has(ed._start)){for(var ep=[ei=ed],eh=void 0;ei&&ei._endsWithIsolInit&&null!=(eh=s.get(ei._end));)for(var em=ef+1;em<er.length;em++)if(er[em]._start===eh){ep.push(ei=er[em]);break}for(var eg=[],ey=0;ey<ep.length;ey++)for(var ev=ep[ey],eb=ev._start;eb<=ev._end;eb++)eg.push(eb);for(var eA=a[eg[0]],ew=m.level,eE=eg[0]-1;eE>=0;eE--)if(!(n[eE]&f)){ew=a[eE];break}var eC=eg[eg.length-1],eS=a[eC],eB=m.level;if(!(n[eC]&l)){for(var ex=eC+1;ex<=m.end;ex++)if(!(n[ex]&f)){eB=a[ex];break}}ec.push({_seqIndices:eg,_sosType:Math.max(ew,eA)%2?E:w,_eosType:Math.max(eB,eS)%2?E:w})}}for(var e_=0;e_<ec.length;e_++){var eR=ec[e_],eM=eR._seqIndices,eO=eR._sosType,eP=eR._eosType,eT=1&a[eM[0]]?E:w;if(i.get(T))for(var eI=0;eI<eM.length;eI++){var ek=eM[eI];if(n[ek]&T){for(var eD=eO,eF=eI-1;eF>=0;eF--)if(!(n[eM[eF]]&f)){eD=n[eM[eF]];break}o(ek,eD&(l|H)?O:eD)}}if(i.get(C))for(var eL=0;eL<eM.length;eL++){var ej=eM[eL];if(n[ej]&C)for(var eN=eL-1;eN>=-1;eN--){var eU=-1===eN?eO:n[eM[eN]];if(eU&u){eU===I&&o(ej,x);break}}}if(i.get(I))for(var eG=0;eG<eM.length;eG++){var eH=eM[eG];n[eH]&I&&o(eH,E)}if(i.get(S)||i.get(_))for(var ez=1;ez<eM.length-1;ez++){var eJ=eM[ez];if(n[eJ]&(S|_)){for(var eW=0,eK=0,eQ=ez-1;eQ>=0&&(eW=n[eM[eQ]])&f;eQ--);for(var eX=ez+1;eX<eM.length&&(eK=n[eM[eX]])&f;eX++);eW===eK&&(n[eJ]===S?eW===C:eW&(C|x))&&o(eJ,eW)}}if(i.get(C)){for(var eY=0;eY<eM.length;eY++)if(n[eM[eY]]&C){for(var eq=eY-1;eq>=0&&n[eM[eq]]&(B|f);eq--)o(eM[eq],C);for(eY++;eY<eM.length&&n[eM[eY]]&(B|f|C);eY++)n[eM[eY]]!==C&&o(eM[eY],C)}}if(i.get(B)||i.get(S)||i.get(_))for(var eV=0;eV<eM.length;eV++){var eZ=eM[eV];if(n[eZ]&(B|S|_)){o(eZ,O);for(var e$=eV-1;e$>=0&&n[eM[e$]]&f;e$--)o(eM[e$],O);for(var e0=eV+1;e0<eM.length&&n[eM[e0]]&f;e0++)o(eM[e0],O)}}if(i.get(C))for(var e1=0,e2=eO;e1<eM.length;e1++){var e3=eM[e1],e4=n[e3];e4&C?e2===w&&o(e3,w):e4&u&&(e2=e4)}if(i.get(c)){for(var e6=E|C|x,e8=e6|w,e9=[],e5=[],e7=0;e7<eM.length;e7++)if(n[eM[e7]]&c){var te=e[eM[e7]],tt=void 0;if(null!==v(te)){if(e5.length<63)e5.push({char:te,seqIndex:e7});else break}else if(null!==(tt=b(te)))for(var tn=e5.length-1;tn>=0;tn--){var tr=e5[tn].char;if(tr===tt||tr===b(A(te))||v(A(tr))===te){e9.push([e5[tn].seqIndex,e7]),e5.length=tn;break}}}e9.sort(function(e,t){return e[0]-t[0]});for(var ti=0;ti<e9.length;ti++){for(var to=e9[ti],ta=to[0],ts=to[1],tl=!1,tu=0,tc=ta+1;tc<ts;tc++){var tf=eM[tc];if(n[tf]&e8){tl=!0;var td=n[tf]&e6?E:w;if(td===eT){tu=td;break}}}if(tl&&!tu){tu=eO;for(var tp=ta-1;tp>=0;tp--){var th=eM[tp];if(n[th]&e8){var tm=n[th]&e6?E:w;tu=tm!==eT?tm:eT;break}}}if(tu){if(n[eM[ta]]=n[eM[ts]]=tu,tu!==eT){for(var tg=ta+1;tg<eM.length;tg++)if(!(n[eM[tg]]&f)){h(e[eM[tg]])&T&&(n[eM[tg]]=tu);break}}if(tu!==eT){for(var ty=ts+1;ty<eM.length;ty++)if(!(n[eM[ty]]&f)){h(e[eM[ty]])&T&&(n[eM[ty]]=tu);break}}}}for(var tv=0;tv<eM.length;tv++)if(n[eM[tv]]&c){for(var tb=tv,tA=tv,tw=eO,tE=tv-1;tE>=0;tE--)if(n[eM[tE]]&f)tb=tE;else{tw=n[eM[tE]]&e6?E:w;break}for(var tC=eP,tS=tv+1;tS<eM.length;tS++)if(n[eM[tS]]&(c|f))tA=tS;else{tC=n[eM[tS]]&e6?E:w;break}for(var tB=tb;tB<=tA;tB++)n[eM[tB]]=tw===tC?tw:eT;tv=tA}}}for(var tx=m.start;tx<=m.end;tx++){var t_=a[tx],tR=n[tx];if(1&t_?tR&(w|C|x)&&a[tx]++:tR&E?a[tx]++:tR&(x|C)&&(a[tx]+=2),tR&f&&(a[tx]=0===tx?m.level:a[tx-1]),tx===m.end||h(e[tx])&(M|R))for(var tM=tx;tM>=0&&h(e[tM])&d;tM--)a[tM]=m.level}}return{levels:a,paragraphs:p};function tO(t,r){for(var i=t;i<e.length;i++){var o=n[i];if(o&(E|I))return 1;if(o&(R|w)||r&&o===H)break;if(o&l){var a=function(t){for(var r=1,i=t+1;i<e.length;i++){var o=n[i];if(o&R)break;if(o&H){if(0==--r)return i}else o&l&&r++}return -1}(i);i=-1===a?e.length:a}}return 0}},e.getMirroredCharacter=z,e.getMirroredCharactersMap=function(e,t,n,r){var i=e.length;n=Math.max(0,null==n?0:+n),r=Math.min(i-1,null==r?i-1:+r);for(var o=new Map,a=n;a<=r;a++)if(1&t[a]){var s=z(e[a]);null!==s&&o.set(a,s)}return o},e.getReorderSegments=J,e.getReorderedIndices=W,e.getReorderedString=function(e,t,n,r){var i=W(e,t,n,r),o=[].concat(e);return i.forEach(function(n,r){o[r]=(1&t.levels[n]?z(e[n]):null)||e[n]}),o.join("")},e.openingToClosingBracket=v,Object.defineProperty(e,"__esModule",{value:!0}),e}({})}},9074:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=parseInt(n(2079).UZH.replace(/\D+/g,""))},4752:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(2079),i=n(1448);class o extends r.Kj0{constructor(e,t={}){super(e),this.isWater=!0;let n=this,o=void 0!==t.textureWidth?t.textureWidth:512,a=void 0!==t.textureHeight?t.textureHeight:512,s=void 0!==t.clipBias?t.clipBias:0,l=void 0!==t.alpha?t.alpha:1,u=void 0!==t.time?t.time:0,c=void 0!==t.waterNormals?t.waterNormals:null,f=void 0!==t.sunDirection?t.sunDirection:new r.Pa4(.70707,.70707,0),d=new r.Ilk(void 0!==t.sunColor?t.sunColor:16777215),p=new r.Ilk(void 0!==t.waterColor?t.waterColor:8355711),h=void 0!==t.eye?t.eye:new r.Pa4(0,0,0),m=void 0!==t.distortionScale?t.distortionScale:20,g=void 0!==t.side?t.side:r.Wl3,y=void 0!==t.fog&&t.fog,v=new r.JOQ,b=new r.Pa4,A=new r.Pa4,w=new r.Pa4,E=new r.yGw,C=new r.Pa4(0,0,-1),S=new r.Ltg,B=new r.Pa4,x=new r.Pa4,_=new r.Ltg,R=new r.yGw,M=new r.cPb,O=new r.dd2(o,a),P={name:"MirrorShader",uniforms:r.rDY.merge([i.UniformsLib.fog,i.UniformsLib.lights,{normalSampler:{value:null},mirrorSampler:{value:null},alpha:{value:1},time:{value:0},size:{value:1},distortionScale:{value:20},textureMatrix:{value:new r.yGw},sunColor:{value:new r.Ilk(8355711)},sunDirection:{value:new r.Pa4(.70707,.70707,0)},eye:{value:new r.Pa4},waterColor:{value:new r.Ilk(5592405)}}]),vertexShader:`
585
- uniform mat4 textureMatrix;
586
- uniform float time;
587
-
588
- varying vec4 mirrorCoord;
589
- varying vec4 worldPosition;
590
-
591
- #include <common>
592
- #include <fog_pars_vertex>
593
- #include <shadowmap_pars_vertex>
594
- #include <logdepthbuf_pars_vertex>
595
-
596
- void main() {
597
- mirrorCoord = modelMatrix * vec4( position, 1.0 );
598
- worldPosition = mirrorCoord.xyzw;
599
- mirrorCoord = textureMatrix * mirrorCoord;
600
- vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
601
- gl_Position = projectionMatrix * mvPosition;
602
-
603
- #include <beginnormal_vertex>
604
- #include <defaultnormal_vertex>
605
- #include <logdepthbuf_vertex>
606
- #include <fog_vertex>
607
- #include <shadowmap_vertex>
608
- }`,fragmentShader:`
609
- uniform sampler2D mirrorSampler;
610
- uniform float alpha;
611
- uniform float time;
612
- uniform float size;
613
- uniform float distortionScale;
614
- uniform sampler2D normalSampler;
615
- uniform vec3 sunColor;
616
- uniform vec3 sunDirection;
617
- uniform vec3 eye;
618
- uniform vec3 waterColor;
619
-
620
- varying vec4 mirrorCoord;
621
- varying vec4 worldPosition;
622
-
623
- vec4 getNoise( vec2 uv ) {
624
- vec2 uv0 = ( uv / 103.0 ) + vec2(time / 17.0, time / 29.0);
625
- vec2 uv1 = uv / 107.0-vec2( time / -19.0, time / 31.0 );
626
- vec2 uv2 = uv / vec2( 8907.0, 9803.0 ) + vec2( time / 101.0, time / 97.0 );
627
- vec2 uv3 = uv / vec2( 1091.0, 1027.0 ) - vec2( time / 109.0, time / -113.0 );
628
- vec4 noise = texture2D( normalSampler, uv0 ) +
629
- texture2D( normalSampler, uv1 ) +
630
- texture2D( normalSampler, uv2 ) +
631
- texture2D( normalSampler, uv3 );
632
- return noise * 0.5 - 1.0;
633
- }
634
-
635
- void sunLight( const vec3 surfaceNormal, const vec3 eyeDirection, float shiny, float spec, float diffuse, inout vec3 diffuseColor, inout vec3 specularColor ) {
636
- vec3 reflection = normalize( reflect( -sunDirection, surfaceNormal ) );
637
- float direction = max( 0.0, dot( eyeDirection, reflection ) );
638
- specularColor += pow( direction, shiny ) * sunColor * spec;
639
- diffuseColor += max( dot( sunDirection, surfaceNormal ), 0.0 ) * sunColor * diffuse;
640
- }
641
-
642
- #include <common>
643
- #include <packing>
644
- #include <bsdfs>
645
- #include <fog_pars_fragment>
646
- #include <logdepthbuf_pars_fragment>
647
- #include <lights_pars_begin>
648
- #include <shadowmap_pars_fragment>
649
- #include <shadowmask_pars_fragment>
650
-
651
- void main() {
652
-
653
- #include <logdepthbuf_fragment>
654
- vec4 noise = getNoise( worldPosition.xz * size );
655
- vec3 surfaceNormal = normalize( noise.xzy * vec3( 1.5, 1.0, 1.5 ) );
656
-
657
- vec3 diffuseLight = vec3(0.0);
658
- vec3 specularLight = vec3(0.0);
659
-
660
- vec3 worldToEye = eye-worldPosition.xyz;
661
- vec3 eyeDirection = normalize( worldToEye );
662
- sunLight( surfaceNormal, eyeDirection, 100.0, 2.0, 0.5, diffuseLight, specularLight );
663
-
664
- float distance = length(worldToEye);
665
-
666
- vec2 distortion = surfaceNormal.xz * ( 0.001 + 1.0 / distance ) * distortionScale;
667
- vec3 reflectionSample = vec3( texture2D( mirrorSampler, mirrorCoord.xy / mirrorCoord.w + distortion ) );
668
-
669
- float theta = max( dot( eyeDirection, surfaceNormal ), 0.0 );
670
- float rf0 = 0.3;
671
- float reflectance = rf0 + ( 1.0 - rf0 ) * pow( ( 1.0 - theta ), 5.0 );
672
- vec3 scatter = max( 0.0, dot( surfaceNormal, eyeDirection ) ) * waterColor;
673
- vec3 albedo = mix( ( sunColor * diffuseLight * 0.3 + scatter ) * getShadowMask(), ( vec3( 0.1 ) + reflectionSample * 0.9 + reflectionSample * specularLight ), reflectance);
674
- vec3 outgoingLight = albedo;
675
- gl_FragColor = vec4( outgoingLight, alpha );
676
-
677
- #include <tonemapping_fragment>
678
- #include <colorspace_fragment>
679
- #include <fog_fragment>
680
- }`},T=new r.jyz({name:P.name,uniforms:r.rDY.clone(P.uniforms),vertexShader:P.vertexShader,fragmentShader:P.fragmentShader,lights:!0,side:g,fog:y});T.uniforms.mirrorSampler.value=O.texture,T.uniforms.textureMatrix.value=R,T.uniforms.alpha.value=l,T.uniforms.time.value=u,T.uniforms.normalSampler.value=c,T.uniforms.sunColor.value=d,T.uniforms.waterColor.value=p,T.uniforms.sunDirection.value=f,T.uniforms.distortionScale.value=m,T.uniforms.eye.value=h,n.material=T,n.onBeforeRender=function(e,t,r){if(A.setFromMatrixPosition(n.matrixWorld),w.setFromMatrixPosition(r.matrixWorld),E.extractRotation(n.matrixWorld),b.set(0,0,1),b.applyMatrix4(E),B.subVectors(A,w),B.dot(b)>0)return;B.reflect(b).negate(),B.add(A),E.extractRotation(r.matrixWorld),C.set(0,0,-1),C.applyMatrix4(E),C.add(w),x.subVectors(A,C),x.reflect(b).negate(),x.add(A),M.position.copy(B),M.up.set(0,1,0),M.up.applyMatrix4(E),M.up.reflect(b),M.lookAt(x),M.far=r.far,M.updateMatrixWorld(),M.projectionMatrix.copy(r.projectionMatrix),R.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),R.multiply(M.projectionMatrix),R.multiply(M.matrixWorldInverse),v.setFromNormalAndCoplanarPoint(b,A),v.applyMatrix4(M.matrixWorldInverse),S.set(v.normal.x,v.normal.y,v.normal.z,v.constant);let i=M.projectionMatrix;_.x=(Math.sign(S.x)+i.elements[8])/i.elements[0],_.y=(Math.sign(S.y)+i.elements[9])/i.elements[5],_.z=-1,_.w=(1+i.elements[10])/i.elements[14],S.multiplyScalar(2/S.dot(_)),i.elements[2]=S.x,i.elements[6]=S.y,i.elements[10]=S.z+1-s,i.elements[14]=S.w,h.setFromMatrixPosition(r.matrixWorld);let o=e.getRenderTarget(),a=e.xr.enabled,l=e.shadowMap.autoUpdate;n.visible=!1,e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(O),e.state.buffers.depth.setMask(!0),!1===e.autoClear&&e.clear(),e.render(t,M),n.visible=!0,e.xr.enabled=a,e.shadowMap.autoUpdate=l,e.setRenderTarget(o);let u=r.viewport;void 0!==u&&e.state.viewport(u)}}}},2061:function(e,t,n){"use strict";function r(){return function(e){function t(e,t){for(var n,r,i,o,a,s=/([MLQCZ])([^MLQCZ]*)/g;n=s.exec(e);){var l=n[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(e){return parseFloat(e)});switch(n[1]){case"M":o=r=l[0],a=i=l[1];break;case"L":(l[0]!==o||l[1]!==a)&&t("L",o,a,o=l[0],a=l[1]);break;case"Q":t("Q",o,a,o=l[2],a=l[3],l[0],l[1]);break;case"C":t("C",o,a,o=l[4],a=l[5],l[0],l[1],l[2],l[3]);break;case"Z":(o!==r||a!==i)&&t("L",o,a,r,i)}}}function n(e,n,r){void 0===r&&(r=16);var i={x:0,y:0};t(e,function(e,t,o,a,s,l,u,c,f){switch(e){case"L":n(t,o,a,s);break;case"Q":for(var d=t,p=o,h=1;h<r;h++)!function(e,t,n,r,i,o,a,s){var l=1-a;s.x=l*l*e+2*l*a*n+a*a*i,s.y=l*l*t+2*l*a*r+a*a*o}(t,o,l,u,a,s,h/(r-1),i),n(d,p,i.x,i.y),d=i.x,p=i.y;break;case"C":for(var m=t,g=o,y=1;y<r;y++)!function(e,t,n,r,i,o,a,s,l,u){var c=1-l;u.x=c*c*c*e+3*c*c*l*n+3*c*l*l*i+l*l*l*a,u.y=c*c*c*t+3*c*c*l*r+3*c*l*l*o+l*l*l*s}(t,o,l,u,c,f,a,s,y/(r-1),i),n(m,g,i.x,i.y),m=i.x,g=i.y}})}var r="precision highp float;attribute vec2 aUV;varying vec2 vUV;void main(){vUV=aUV;gl_Position=vec4(mix(vec2(-1.0),vec2(1.0),aUV),0.0,1.0);}",i=new WeakMap,o={premultipliedAlpha:!1,preserveDrawingBuffer:!0,antialias:!1,depth:!1};function a(e,t){var n=e.getContext?e.getContext("webgl",o):e,r=i.get(n);if(!r){var a="undefined"!=typeof WebGL2RenderingContext&&n instanceof WebGL2RenderingContext,s={},l={},u={},c=-1,f=[];function d(e){var t=s[e];if(!t&&!(t=s[e]=n.getExtension(e)))throw Error(e+" not supported");return t}function p(e,t){var r=n.createShader(t);return n.shaderSource(r,e),n.compileShader(r),r}function h(){s={},l={},u={},c=-1,f.length=0}n.canvas.addEventListener("webglcontextlost",function(e){h(),e.preventDefault()},!1),i.set(n,r={gl:n,isWebGL2:a,getExtension:d,withProgram:function(e,t,r,i){if(!l[e]){var o={},s={},u=n.createProgram();n.attachShader(u,p(t,n.VERTEX_SHADER)),n.attachShader(u,p(r,n.FRAGMENT_SHADER)),n.linkProgram(u),l[e]={program:u,transaction:function(e){n.useProgram(u),e({setUniform:function(e,t){for(var r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];var o=s[t]||(s[t]=n.getUniformLocation(u,t));n["uniform"+e].apply(n,[o].concat(r))},setAttribute:function(e,t,r,i,s){var l=o[e];l||(l=o[e]={buf:n.createBuffer(),loc:n.getAttribLocation(u,e),data:null}),n.bindBuffer(n.ARRAY_BUFFER,l.buf),n.vertexAttribPointer(l.loc,t,n.FLOAT,!1,0,0),n.enableVertexAttribArray(l.loc),a?n.vertexAttribDivisor(l.loc,i):d("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(l.loc,i),s!==l.data&&(n.bufferData(n.ARRAY_BUFFER,s,r),l.data=s)}})}}}l[e].transaction(i)},withTexture:function(e,t){c++;try{n.activeTexture(n.TEXTURE0+c);var r=u[e];r||(r=u[e]=n.createTexture(),n.bindTexture(n.TEXTURE_2D,r),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST)),n.bindTexture(n.TEXTURE_2D,r),t(r,c)}finally{c--}},withTextureFramebuffer:function(e,t,r){var i=n.createFramebuffer();f.push(i),n.bindFramebuffer(n.FRAMEBUFFER,i),n.activeTexture(n.TEXTURE0+t),n.bindTexture(n.TEXTURE_2D,e),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0);try{r(i)}finally{n.deleteFramebuffer(i),n.bindFramebuffer(n.FRAMEBUFFER,f[--f.length-1]||null)}},handleContextLoss:h})}t(r)}function s(e,t,n,i,o,s,l,u){void 0===l&&(l=15),void 0===u&&(u=null),a(e,function(e){var a=e.gl,c=e.withProgram;(0,e.withTexture)("copy",function(e,f){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,o,s,0,a.RGBA,a.UNSIGNED_BYTE,t),c("copy",r,"precision highp float;uniform sampler2D tex;varying vec2 vUV;void main(){gl_FragColor=texture2D(tex,vUV);}",function(e){var t=e.setUniform;(0,e.setAttribute)("aUV",2,a.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),t("1i","image",f),a.bindFramebuffer(a.FRAMEBUFFER,u||null),a.disable(a.BLEND),a.colorMask(8&l,4&l,2&l,1&l),a.viewport(n,i,o,s),a.scissor(n,i,o,s),a.drawArrays(a.TRIANGLES,0,3)})})})}var l=Object.freeze({__proto__:null,withWebGLContext:a,renderImageData:s,resizeWebGLCanvasWithoutClearing:function(e,t,n){var r=e.width,i=e.height;a(e,function(o){var a=o.gl,l=new Uint8Array(r*i*4);a.readPixels(0,0,r,i,a.RGBA,a.UNSIGNED_BYTE,l),e.width=t,e.height=n,s(a,l,0,0,r,i)})}});function u(e,t,r,i,o,a){void 0===a&&(a=1);var s=new Uint8Array(e*t),l=i[2]-i[0],u=i[3]-i[1],c=[];n(r,function(e,t,n,r){c.push({x1:e,y1:t,x2:n,y2:r,minX:Math.min(e,n),minY:Math.min(t,r),maxX:Math.max(e,n),maxY:Math.max(t,r)})}),c.sort(function(e,t){return e.maxX-t.maxX});for(var f=0;f<e;f++)for(var d=0;d<t;d++){var p=function(e,t){for(var n=1/0,r=1/0,i=c.length;i--;){var o=c[i];if(o.maxX+r<=e)break;if(e+r>o.minX&&t-r<o.maxY&&t+r>o.minY){var a=function(e,t,n,r,i,o){var a=i-n,s=o-r,l=a*a+s*s,u=l?Math.max(0,Math.min(1,((e-n)*a+(t-r)*s)/l)):0,c=e-(n+u*a),f=t-(r+u*s);return c*c+f*f}(e,t,o.x1,o.y1,o.x2,o.y2);a<n&&(r=Math.sqrt(n=a))}}return function(e,t){for(var n=0,r=c.length;r--;){var i=c[r];if(i.maxX<=e)break;i.y1>t!=i.y2>t&&e<(i.x2-i.x1)*(t-i.y1)/(i.y2-i.y1)+i.x1&&(n+=i.y1<i.y2?1:-1)}return 0!==n}(e,t)&&(r=-r),r}(i[0]+l*(f+.5)/e,i[1]+u*(d+.5)/t),h=Math.pow(1-Math.abs(p)/o,a)/2;p<0&&(h=1-h),h=Math.max(0,Math.min(255,Math.round(255*h))),s[d*e+f]=h}return s}function c(e,t,n,r,i,o,a,s,l,u){void 0===o&&(o=1),void 0===s&&(s=0),void 0===l&&(l=0),void 0===u&&(u=0),f(e,t,n,r,i,o,a,null,s,l,u)}function f(e,t,n,r,i,o,a,l,c,f,d){void 0===o&&(o=1),void 0===c&&(c=0),void 0===f&&(f=0),void 0===d&&(d=0);for(var p=u(e,t,n,r,i,o),h=new Uint8Array(4*p.length),m=0;m<p.length;m++)h[4*m+d]=p[m];s(a,h,c,f,e,t,1<<3-d,l)}var d=Object.freeze({__proto__:null,generate:u,generateIntoCanvas:c,generateIntoFramebuffer:f}),p=new Float32Array([0,0,2,0,0,2]),h=null,m=!1,g={},y=new WeakMap;function v(e){if(!m&&!E(e))throw Error("WebGL generation not supported")}function b(e,t,n,r,i,o,s){if(void 0===o&&(o=1),void 0===s&&(s=null),!s&&!(s=h)){var l="function"==typeof OffscreenCanvas?new OffscreenCanvas(1,1):"undefined"!=typeof document?document.createElement("canvas"):null;if(!l)throw Error("OffscreenCanvas or DOM canvas not supported");s=h=l.getContext("webgl",{depth:!1})}v(s);var u=new Uint8Array(e*t*4);a(s,function(a){var s=a.gl,l=a.withTexture,c=a.withTextureFramebuffer;l("readable",function(a,l){s.texImage2D(s.TEXTURE_2D,0,s.RGBA,e,t,0,s.RGBA,s.UNSIGNED_BYTE,null),c(a,l,function(a){w(e,t,n,r,i,o,s,a,0,0,0),s.readPixels(0,0,e,t,s.RGBA,s.UNSIGNED_BYTE,u)})})});for(var c=new Uint8Array(e*t),f=0,d=0;f<u.length;f+=4)c[d++]=u[f];return c}function A(e,t,n,r,i,o,a,s,l,u){void 0===o&&(o=1),void 0===s&&(s=0),void 0===l&&(l=0),void 0===u&&(u=0),w(e,t,n,r,i,o,a,null,s,l,u)}function w(e,t,i,o,s,l,u,c,f,d,h){void 0===l&&(l=1),void 0===f&&(f=0),void 0===d&&(d=0),void 0===h&&(h=0),v(u);var m=[];n(i,function(e,t,n,r){m.push(e,t,n,r)}),m=new Float32Array(m),a(u,function(n){var i=n.gl,a=n.isWebGL2,u=n.getExtension,g=n.withProgram,y=n.withTexture,v=n.withTextureFramebuffer,b=n.handleContextLoss;if(y("rawDistances",function(n,y){(e!==n._lastWidth||t!==n._lastHeight)&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,n._lastWidth=e,n._lastHeight=t,0,i.RGBA,i.UNSIGNED_BYTE,null),g("main","precision highp float;uniform vec4 uGlyphBounds;attribute vec2 aUV;attribute vec4 aLineSegment;varying vec4 vLineSegment;varying vec2 vGlyphXY;void main(){vLineSegment=aLineSegment;vGlyphXY=mix(uGlyphBounds.xy,uGlyphBounds.zw,aUV);gl_Position=vec4(mix(vec2(-1.0),vec2(1.0),aUV),0.0,1.0);}","precision highp float;uniform vec4 uGlyphBounds;uniform float uMaxDistance;uniform float uExponent;varying vec4 vLineSegment;varying vec2 vGlyphXY;float absDistToSegment(vec2 point,vec2 lineA,vec2 lineB){vec2 lineDir=lineB-lineA;float lenSq=dot(lineDir,lineDir);float t=lenSq==0.0 ? 0.0 : clamp(dot(point-lineA,lineDir)/lenSq,0.0,1.0);vec2 linePt=lineA+t*lineDir;return distance(point,linePt);}void main(){vec4 seg=vLineSegment;vec2 p=vGlyphXY;float dist=absDistToSegment(p,seg.xy,seg.zw);float val=pow(1.0-clamp(dist/uMaxDistance,0.0,1.0),uExponent)*0.5;bool crossing=(seg.y>p.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y<vLineSegment.w;gl_FragColor=vec4(crossingUp ? 1.0/255.0 : 0.0,crossing&&!crossingUp ? 1.0/255.0 : 0.0,0.0,val);}",function(r){var c=r.setAttribute,f=r.setUniform,d=!a&&u("ANGLE_instanced_arrays"),h=!a&&u("EXT_blend_minmax");c("aUV",2,i.STATIC_DRAW,0,p),c("aLineSegment",4,i.DYNAMIC_DRAW,1,m),f.apply(void 0,["4f","uGlyphBounds"].concat(o)),f("1f","uMaxDistance",s),f("1f","uExponent",l),v(n,y,function(n){i.enable(i.BLEND),i.colorMask(!0,!0,!0,!0),i.viewport(0,0,e,t),i.scissor(0,0,e,t),i.blendFunc(i.ONE,i.ONE),i.blendEquationSeparate(i.FUNC_ADD,a?i.MAX:h.MAX_EXT),i.clear(i.COLOR_BUFFER_BIT),a?i.drawArraysInstanced(i.TRIANGLES,0,3,m.length/4):d.drawArraysInstancedANGLE(i.TRIANGLES,0,3,m.length/4)})}),g("post",r,"precision highp float;uniform sampler2D tex;varying vec2 vUV;void main(){vec4 color=texture2D(tex,vUV);bool inside=color.r!=color.g;float val=inside ? 1.0-color.a : color.a;gl_FragColor=vec4(val);}",function(n){n.setAttribute("aUV",2,i.STATIC_DRAW,0,p),n.setUniform("1i","tex",y),i.bindFramebuffer(i.FRAMEBUFFER,c),i.disable(i.BLEND),i.colorMask(0===h,1===h,2===h,3===h),i.viewport(f,d,e,t),i.scissor(f,d,e,t),i.drawArrays(i.TRIANGLES,0,3)})}),i.isContextLost())throw b(),Error("webgl context lost")})}function E(e){var t=e&&e!==h?e.canvas||e:g,n=y.get(t);if(void 0===n){m=!0;var r=null;try{var i=[97,106,97,61,99,137,118,80,80,118,137,99,61,97,106,97],o=b(4,4,"M8,8L16,8L24,24L16,24Z",[0,0,32,32],24,1,e);(n=o&&i.length===o.length&&o.every(function(e,t){return e===i[t]}))||(r="bad trial run results",console.info(i,o))}catch(e){n=!1,r=e.message}r&&console.warn("WebGL SDF generation not supported:",r),m=!1,y.set(t,n)}return n}var C=Object.freeze({__proto__:null,generate:b,generateIntoCanvas:A,generateIntoFramebuffer:w,isSupported:E});return e.forEachPathCommand=t,e.generate=function(e,t,n,r,i,o){void 0===i&&(i=Math.max(r[2]-r[0],r[3]-r[1])/2),void 0===o&&(o=1);try{return b.apply(C,arguments)}catch(e){return console.info("WebGL SDF generation failed, falling back to JS",e),u.apply(d,arguments)}},e.generateIntoCanvas=function(e,t,n,r,i,o,a,s,l,u){void 0===i&&(i=Math.max(r[2]-r[0],r[3]-r[1])/2),void 0===o&&(o=1),void 0===s&&(s=0),void 0===l&&(l=0),void 0===u&&(u=0);try{return A.apply(C,arguments)}catch(e){return console.info("WebGL SDF generation failed, falling back to JS",e),c.apply(d,arguments)}},e.javascript=d,e.pathToLineSegments=n,e.webgl=C,e.webglUtils=l,Object.defineProperty(e,"__esModule",{value:!0}),e}({})}n.d(t,{Z:function(){return r}})}}]);