architwin 1.0.9

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 (274) hide show
  1. package/README.md +530 -0
  2. package/bundle/LICENSE.md +17 -0
  3. package/bundle/css/core.css +21 -0
  4. package/bundle/css/late.css +22 -0
  5. package/bundle/css/showcase.css +406 -0
  6. package/bundle/css/unsupported_browser.css +1 -0
  7. package/bundle/cursors/grab.png +0 -0
  8. package/bundle/cursors/grabbing.png +0 -0
  9. package/bundle/cursors/rbe-default.png +0 -0
  10. package/bundle/cursors/rbe-finish-room.png +0 -0
  11. package/bundle/cursors/rbe-moving.png +0 -0
  12. package/bundle/cursors/rbe-place-door.png +0 -0
  13. package/bundle/cursors/rbe-place-node.png +0 -0
  14. package/bundle/cursors/rbe-place-opening.png +0 -0
  15. package/bundle/cursors/zoom-in.png +0 -0
  16. package/bundle/cursors/zoom-out.png +0 -0
  17. package/bundle/fonts/ibm-plex-sans-100.woff +0 -0
  18. package/bundle/fonts/ibm-plex-sans-100.woff2 +0 -0
  19. package/bundle/fonts/ibm-plex-sans-100italic.woff +0 -0
  20. package/bundle/fonts/ibm-plex-sans-100italic.woff2 +0 -0
  21. package/bundle/fonts/ibm-plex-sans-200.woff +0 -0
  22. package/bundle/fonts/ibm-plex-sans-200.woff2 +0 -0
  23. package/bundle/fonts/ibm-plex-sans-200italic.woff +0 -0
  24. package/bundle/fonts/ibm-plex-sans-200italic.woff2 +0 -0
  25. package/bundle/fonts/ibm-plex-sans-300.woff +0 -0
  26. package/bundle/fonts/ibm-plex-sans-300.woff2 +0 -0
  27. package/bundle/fonts/ibm-plex-sans-300italic.woff +0 -0
  28. package/bundle/fonts/ibm-plex-sans-300italic.woff2 +0 -0
  29. package/bundle/fonts/ibm-plex-sans-500.woff +0 -0
  30. package/bundle/fonts/ibm-plex-sans-500.woff2 +0 -0
  31. package/bundle/fonts/ibm-plex-sans-500italic.woff +0 -0
  32. package/bundle/fonts/ibm-plex-sans-500italic.woff2 +0 -0
  33. package/bundle/fonts/ibm-plex-sans-600.woff +0 -0
  34. package/bundle/fonts/ibm-plex-sans-600.woff2 +0 -0
  35. package/bundle/fonts/ibm-plex-sans-600italic.woff +0 -0
  36. package/bundle/fonts/ibm-plex-sans-600italic.woff2 +0 -0
  37. package/bundle/fonts/ibm-plex-sans-700.woff +0 -0
  38. package/bundle/fonts/ibm-plex-sans-700.woff2 +0 -0
  39. package/bundle/fonts/ibm-plex-sans-700italic.woff +0 -0
  40. package/bundle/fonts/ibm-plex-sans-700italic.woff2 +0 -0
  41. package/bundle/fonts/ibm-plex-sans-italic.woff +0 -0
  42. package/bundle/fonts/ibm-plex-sans-italic.woff2 +0 -0
  43. package/bundle/fonts/ibm-plex-sans-regular.woff +0 -0
  44. package/bundle/fonts/ibm-plex-sans-regular.woff2 +0 -0
  45. package/bundle/fonts/mp-font.svg +2079 -0
  46. package/bundle/fonts/mp-font.woff +0 -0
  47. package/bundle/fonts/mp-font.woff2 +0 -0
  48. package/bundle/fonts/roboto-100.woff +0 -0
  49. package/bundle/fonts/roboto-100.woff2 +0 -0
  50. package/bundle/fonts/roboto-100italic.woff +0 -0
  51. package/bundle/fonts/roboto-100italic.woff2 +0 -0
  52. package/bundle/fonts/roboto-300.woff +0 -0
  53. package/bundle/fonts/roboto-300.woff2 +0 -0
  54. package/bundle/fonts/roboto-300italic.woff +0 -0
  55. package/bundle/fonts/roboto-300italic.woff2 +0 -0
  56. package/bundle/fonts/roboto-500.woff +0 -0
  57. package/bundle/fonts/roboto-500.woff2 +0 -0
  58. package/bundle/fonts/roboto-500italic.woff +0 -0
  59. package/bundle/fonts/roboto-500italic.woff2 +0 -0
  60. package/bundle/fonts/roboto-700.woff +0 -0
  61. package/bundle/fonts/roboto-700.woff2 +0 -0
  62. package/bundle/fonts/roboto-700italic.woff +0 -0
  63. package/bundle/fonts/roboto-700italic.woff2 +0 -0
  64. package/bundle/fonts/roboto-900.woff +0 -0
  65. package/bundle/fonts/roboto-900.woff2 +0 -0
  66. package/bundle/fonts/roboto-900italic.woff +0 -0
  67. package/bundle/fonts/roboto-900italic.woff2 +0 -0
  68. package/bundle/fonts/roboto-italic.woff +0 -0
  69. package/bundle/fonts/roboto-italic.woff2 +0 -0
  70. package/bundle/fonts/roboto-regular.woff +0 -0
  71. package/bundle/fonts/roboto-regular.woff2 +0 -0
  72. package/bundle/images/360_placement_pin_mask.png +0 -0
  73. package/bundle/images/Desktop-help-play-button.svg +1 -0
  74. package/bundle/images/Desktop-help-spacebar.png +0 -0
  75. package/bundle/images/MP-logo_H_lock-RGB_color-black.svg +24 -0
  76. package/bundle/images/NoteColor.png +0 -0
  77. package/bundle/images/chrome.png +0 -0
  78. package/bundle/images/edge.png +0 -0
  79. package/bundle/images/escape.png +0 -0
  80. package/bundle/images/exterior.png +0 -0
  81. package/bundle/images/exterior_hover.png +0 -0
  82. package/bundle/images/firefox.png +0 -0
  83. package/bundle/images/headset-quest-2.png +0 -0
  84. package/bundle/images/interior.png +0 -0
  85. package/bundle/images/interior_hover.png +0 -0
  86. package/bundle/images/login-screen-background.jpg +0 -0
  87. package/bundle/images/matterport-app-icon.svg +9 -0
  88. package/bundle/images/matterport-logo-light.svg +1 -0
  89. package/bundle/images/mattertag-disc-128-free.v1.png +0 -0
  90. package/bundle/images/mobile-help-play-button.svg +1 -0
  91. package/bundle/images/nav_help_360.png +0 -0
  92. package/bundle/images/nav_help_click_inside.png +0 -0
  93. package/bundle/images/nav_help_gesture_drag.png +0 -0
  94. package/bundle/images/nav_help_gesture_drag_two_finger.png +0 -0
  95. package/bundle/images/nav_help_gesture_pinch.png +0 -0
  96. package/bundle/images/nav_help_gesture_position.png +0 -0
  97. package/bundle/images/nav_help_gesture_position_two_finger.png +0 -0
  98. package/bundle/images/nav_help_gesture_tap.png +0 -0
  99. package/bundle/images/nav_help_inside_key.png +0 -0
  100. package/bundle/images/nav_help_keyboard_all.png +0 -0
  101. package/bundle/images/nav_help_keyboard_left_right.png +0 -0
  102. package/bundle/images/nav_help_keyboard_up_down.png +0 -0
  103. package/bundle/images/nav_help_mouse_click.png +0 -0
  104. package/bundle/images/nav_help_mouse_drag_left.png +0 -0
  105. package/bundle/images/nav_help_mouse_drag_right.png +0 -0
  106. package/bundle/images/nav_help_mouse_position_left.png +0 -0
  107. package/bundle/images/nav_help_mouse_position_right.png +0 -0
  108. package/bundle/images/nav_help_mouse_zoom.png +0 -0
  109. package/bundle/images/nav_help_tap_inside.png +0 -0
  110. package/bundle/images/nav_help_zoom_keys.png +0 -0
  111. package/bundle/images/objectColor.png +0 -0
  112. package/bundle/images/outlineBasic1024.png +0 -0
  113. package/bundle/images/outlineBasic2048.png +0 -0
  114. package/bundle/images/outlineBasic4096.png +0 -0
  115. package/bundle/images/outlineBasic512.png +0 -0
  116. package/bundle/images/outlineEnhanced1024.png +0 -0
  117. package/bundle/images/outlineEnhanced2048.png +0 -0
  118. package/bundle/images/outlineEnhanced4096.png +0 -0
  119. package/bundle/images/outlineEnhanced512.png +0 -0
  120. package/bundle/images/pinAnchor.png +0 -0
  121. package/bundle/images/pinIconDefault.png +0 -0
  122. package/bundle/images/safari.png +0 -0
  123. package/bundle/images/scope.svg +3 -0
  124. package/bundle/images/selected_sweep_glow.png +0 -0
  125. package/bundle/images/showcase-password-background.jpg +0 -0
  126. package/bundle/images/surface_grid_planar_256.png +0 -0
  127. package/bundle/images/tagColor.png +0 -0
  128. package/bundle/images/unsupported-browser.jpg +0 -0
  129. package/bundle/images/uv_grid_opengl.jpg +0 -0
  130. package/bundle/images/vert_arrows.png +0 -0
  131. package/bundle/js/136.js +18 -0
  132. package/bundle/js/136.js.LICENSE.txt +20 -0
  133. package/bundle/js/143.js +2 -0
  134. package/bundle/js/143.js.LICENSE.txt +20 -0
  135. package/bundle/js/145.js +2 -0
  136. package/bundle/js/145.js.LICENSE.txt +20 -0
  137. package/bundle/js/189.js +2 -0
  138. package/bundle/js/189.js.LICENSE.txt +20 -0
  139. package/bundle/js/217.js +2 -0
  140. package/bundle/js/217.js.LICENSE.txt +20 -0
  141. package/bundle/js/313.js +2 -0
  142. package/bundle/js/313.js.LICENSE.txt +20 -0
  143. package/bundle/js/316.js +2 -0
  144. package/bundle/js/316.js.LICENSE.txt +27 -0
  145. package/bundle/js/321.js +2 -0
  146. package/bundle/js/321.js.LICENSE.txt +20 -0
  147. package/bundle/js/324.js +2 -0
  148. package/bundle/js/324.js.LICENSE.txt +20 -0
  149. package/bundle/js/325.js +2 -0
  150. package/bundle/js/325.js.LICENSE.txt +20 -0
  151. package/bundle/js/330.js +2 -0
  152. package/bundle/js/330.js.LICENSE.txt +20 -0
  153. package/bundle/js/335.js +2 -0
  154. package/bundle/js/335.js.LICENSE.txt +20 -0
  155. package/bundle/js/376.js +2 -0
  156. package/bundle/js/376.js.LICENSE.txt +20 -0
  157. package/bundle/js/422.js +2 -0
  158. package/bundle/js/422.js.LICENSE.txt +22 -0
  159. package/bundle/js/493.js +2 -0
  160. package/bundle/js/493.js.LICENSE.txt +27 -0
  161. package/bundle/js/512.js +2 -0
  162. package/bundle/js/512.js.LICENSE.txt +20 -0
  163. package/bundle/js/519.js +2 -0
  164. package/bundle/js/519.js.LICENSE.txt +20 -0
  165. package/bundle/js/521.js +2 -0
  166. package/bundle/js/521.js.LICENSE.txt +20 -0
  167. package/bundle/js/525.js +2 -0
  168. package/bundle/js/525.js.LICENSE.txt +20 -0
  169. package/bundle/js/607.js +2 -0
  170. package/bundle/js/607.js.LICENSE.txt +27 -0
  171. package/bundle/js/644.js +2 -0
  172. package/bundle/js/644.js.LICENSE.txt +63 -0
  173. package/bundle/js/648.js +2 -0
  174. package/bundle/js/648.js.LICENSE.txt +20 -0
  175. package/bundle/js/66.js +2 -0
  176. package/bundle/js/66.js.LICENSE.txt +20 -0
  177. package/bundle/js/662.js +2 -0
  178. package/bundle/js/662.js.LICENSE.txt +20 -0
  179. package/bundle/js/668.js +2 -0
  180. package/bundle/js/668.js.LICENSE.txt +20 -0
  181. package/bundle/js/718.js +2 -0
  182. package/bundle/js/718.js.LICENSE.txt +20 -0
  183. package/bundle/js/764.js +2 -0
  184. package/bundle/js/764.js.LICENSE.txt +29 -0
  185. package/bundle/js/833.js +20 -0
  186. package/bundle/js/833.js.LICENSE.txt +20 -0
  187. package/bundle/js/858.js +2 -0
  188. package/bundle/js/858.js.LICENSE.txt +20 -0
  189. package/bundle/js/916.js +2 -0
  190. package/bundle/js/916.js.LICENSE.txt +20 -0
  191. package/bundle/js/924.js +2 -0
  192. package/bundle/js/924.js.LICENSE.txt +20 -0
  193. package/bundle/js/932.js +2 -0
  194. package/bundle/js/932.js.LICENSE.txt +20 -0
  195. package/bundle/js/948.js +2 -0
  196. package/bundle/js/948.js.LICENSE.txt +20 -0
  197. package/bundle/js/958.js +2 -0
  198. package/bundle/js/958.js.LICENSE.txt +20 -0
  199. package/bundle/js/JPEGDecoder.worker.worker.js.LICENSE.txt +29 -0
  200. package/bundle/js/JPEGEncoder.worker.worker.js.LICENSE.txt +29 -0
  201. package/bundle/js/PNGDecoder.worker.worker.js.LICENSE.txt +20 -0
  202. package/bundle/js/PNGEncoder.worker.worker.js.LICENSE.txt +20 -0
  203. package/bundle/js/browser-check.js +2 -0
  204. package/bundle/js/browser-check.js.LICENSE.txt +18 -0
  205. package/bundle/js/showcase.js +6 -0
  206. package/bundle/js/showcase.js.LICENSE.txt +144 -0
  207. package/bundle/locale/messages/strings_de.json +1 -0
  208. package/bundle/locale/messages/strings_es.json +1 -0
  209. package/bundle/locale/messages/strings_fr.json +1 -0
  210. package/bundle/locale/messages/strings_it.json +1 -0
  211. package/bundle/locale/messages/strings_ja.json +1 -0
  212. package/bundle/locale/messages/strings_ko.json +1 -0
  213. package/bundle/locale/messages/strings_nl.json +1 -0
  214. package/bundle/locale/messages/strings_pt.json +1 -0
  215. package/bundle/locale/messages/strings_ru.json +1 -0
  216. package/bundle/locale/messages/strings_zh-CN.json +1 -0
  217. package/bundle/locale/messages/strings_zh-TW.json +1 -0
  218. package/bundle/locale/strings.json +1 -0
  219. package/bundle/sdk/cursors/grab.png +0 -0
  220. package/bundle/sdk/cursors/grabbing.png +0 -0
  221. package/bundle/sdk/cursors/rbe-default.png +0 -0
  222. package/bundle/sdk/cursors/rbe-finish-room.png +0 -0
  223. package/bundle/sdk/cursors/rbe-moving.png +0 -0
  224. package/bundle/sdk/cursors/rbe-place-door.png +0 -0
  225. package/bundle/sdk/cursors/rbe-place-node.png +0 -0
  226. package/bundle/sdk/cursors/rbe-place-opening.png +0 -0
  227. package/bundle/sdk/cursors/zoom-in.png +0 -0
  228. package/bundle/sdk/cursors/zoom-out.png +0 -0
  229. package/bundle/sdk/sandbox.html +1 -0
  230. package/bundle/sdk/sdk-client.js +1 -0
  231. package/bundle/sdk/sdk-interface.js +1 -0
  232. package/bundle/sdk.d.ts +5312 -0
  233. package/bundle/showcase.html +114 -0
  234. package/bundle/terms/terms-de-DE.html +69 -0
  235. package/bundle/terms/terms-en-GB.html +62 -0
  236. package/bundle/terms/terms-en-US.html +62 -0
  237. package/bundle/terms/terms-es-MX.html +66 -0
  238. package/bundle/terms/terms-fr-FR.html +65 -0
  239. package/bundle/terms/terms-it-IT.html +65 -0
  240. package/bundle/terms/terms-ja-JP.html +64 -0
  241. package/bundle/terms/terms-ko-KR.html +65 -0
  242. package/bundle/terms/terms-nl-NL.html +65 -0
  243. package/bundle/terms/terms-pt-BR.html +75 -0
  244. package/bundle/terms/terms-ru-RU.html +72 -0
  245. package/bundle/terms/terms-zh-CN.html +65 -0
  246. package/bundle/terms/terms-zh-TW.html +84 -0
  247. package/bundle/vendors/three/0.146.0/libs/basis/README.md +32 -0
  248. package/bundle/vendors/three/0.146.0/libs/basis/basis_transcoder.js +1 -0
  249. package/bundle/vendors/three/0.146.0/libs/basis/basis_transcoder.wasm +0 -0
  250. package/bundle/vendors/three/0.146.0/libs/basis/no-dynamic-execution.patch +11 -0
  251. package/bundle/vendors/three/0.146.0/libs/draco/README.md +32 -0
  252. package/bundle/vendors/three/0.146.0/libs/draco/draco_decoder.js +1 -0
  253. package/bundle/vendors/three/0.146.0/libs/draco/draco_decoder.wasm +0 -0
  254. package/bundle/vendors/three/0.146.0/libs/draco/draco_encoder.js +1 -0
  255. package/bundle/vendors/three/0.146.0/libs/draco/draco_wasm_wrapper.js +1 -0
  256. package/bundle/vendors/three/0.146.0/libs/draco/gltf/draco_decoder.js +1 -0
  257. package/bundle/vendors/three/0.146.0/libs/draco/gltf/draco_decoder.wasm +0 -0
  258. package/bundle/vendors/three/0.146.0/libs/draco/gltf/draco_encoder.js +1 -0
  259. package/bundle/vendors/three/0.146.0/libs/draco/gltf/draco_wasm_wrapper.js +1 -0
  260. package/bundle/vendors/three/0.146.0/three.cjs +2 -0
  261. package/bundle/vendors/three/0.146.0/three.cjs.LICENSE.txt +5 -0
  262. package/bundle/vendors/three/0.146.0/three.js +2 -0
  263. package/bundle/vendors/three/0.146.0/three.js.LICENSE.txt +5 -0
  264. package/bundle/vendors/three/0.146.0/three.min.js +2 -0
  265. package/bundle/vendors/three/0.146.0/three.min.js.LICENSE.txt +5 -0
  266. package/bundle/vendors/three/0.146.0/three.module.js +2 -0
  267. package/bundle/vendors/three/0.146.0/three.module.js.LICENSE.txt +5 -0
  268. package/bundle/version.txt +1 -0
  269. package/lib/architwin.d.ts +24 -0
  270. package/lib/architwin.min.js +1 -0
  271. package/lib/types.d.ts +123 -0
  272. package/lib/types.js +2 -0
  273. package/package.json +26 -0
  274. package/tsconfig.json +11 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 519.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkmp_webgl=self.webpackChunkmp_webgl||[]).push([[519],{6297:(t,e,o)=>{o.r(e);const r=globalThis,{Array:n,Date:a,Float32Array:i,JSON:s,Map:c,Math:l,Number:p,Object:u,Promise:f,Proxy:y,Reflect:g,RegExp:m,Set:d,String:w,WeakMap:b,WeakSet:h}=globalThis,{Error:P,RangeError:S,ReferenceError:E,SyntaxError:v,TypeError:_}=globalThis,{assign:$,create:x,defineProperties:I,entries:T,freeze:A,getOwnPropertyDescriptor:k,getOwnPropertyDescriptors:N,getOwnPropertyNames:O,getPrototypeOf:C,is:F,isExtensible:U,keys:R,prototype:L,seal:M,preventExtensions:D,setPrototypeOf:G,values:B}=u,{species:j,toStringTag:z,iterator:W,matchAll:H,keyFor:V,for:q}=Symbol,{isInteger:K}=p,{stringify:Y}=s,J=u.fromEntries||(t=>{const e={};for(const[o,r]of t)e[o]=r;return e}),{defineProperty:Z}=u,X=(t,e,o)=>{const r=Z(t,e,o);if(r!==t)throw _(`Please report that the original defineProperty silently failed to set ${Y(w(e))}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`);return r},{apply:Q,construct:tt,get:et,getOwnPropertyDescriptor:ot,has:rt,isExtensible:nt,ownKeys:at,preventExtensions:it,set:st}=g,{isArray:ct,prototype:lt}=n,{prototype:pt}=c,{revocable:ut}=y,{prototype:ft}=RegExp,{prototype:yt}=d,{prototype:gt}=w,{prototype:mt}=b,{prototype:dt}=h,{prototype:wt}=Function,{prototype:bt}=f,ht=C(Uint8Array.prototype),Pt=t=>(e,...o)=>Q(t,e,o),St=Pt(L.hasOwnProperty),Et=Pt(lt.filter),vt=Pt(lt.forEach),_t=Pt(lt.includes),$t=Pt(lt.join),xt=Pt(lt.map),It=Pt(lt.pop),Tt=Pt(lt.push),At=Pt(lt.slice),kt=Pt(lt.some),Nt=Pt(lt.sort),Ot=Pt(lt[W]),Ct=Pt(pt.set),Ft=Pt(pt.get),Ut=Pt(pt.has),Rt=Pt(pt[W]),Lt=Pt(yt.add),Mt=(Pt(yt.delete),Pt(yt.forEach)),Dt=Pt(yt.has),Gt=Pt(yt[W]),Bt=Pt(ft.test),jt=Pt(ft.exec),zt=Pt(ft[H]),Wt=Pt(gt.endsWith),Ht=Pt(gt.includes),Vt=Pt(gt.indexOf),qt=(Pt(gt.match),Pt(gt.replace)),Kt=Pt(gt.search),Yt=Pt(gt.slice),Jt=Pt(gt.split),Zt=Pt(gt.startsWith),Xt=Pt(gt[W]),Qt=Pt(mt.delete),te=Pt(mt.get),ee=Pt(mt.has),oe=Pt(mt.set),re=Pt(dt.add),ne=(Pt(dt.get),Pt(dt.has)),ae=Pt(wt.toString),{all:ie}=f,se=Pt(bt.catch),ce=Pt(bt.then),le=A(x(null)),pe=t=>u(t)===t,ue=t=>t instanceof P,fe=eval,ye=Function,ge=()=>{throw new _('Cannot eval with evalTaming set to "noEval" (SES_NO_EVAL)')};let me;const de=()=>{if(void 0===me){const t=new h;X(wt,"toString",{value:{toString(){const e=ae(this,[]);return Wt(e,") { [native code] }")||!ne(t,this)?e:`function ${this.name}() { [native code] }`}}.toString}),me=A((e=>re(t,e)))}return me},we={Infinity:1/0,NaN:NaN,undefined:void 0},be={isFinite:"isFinite",isNaN:"isNaN",parseFloat:"parseFloat",parseInt:"parseInt",decodeURI:"decodeURI",decodeURIComponent:"decodeURIComponent",encodeURI:"encodeURI",encodeURIComponent:"encodeURIComponent",Array:"Array",ArrayBuffer:"ArrayBuffer",BigInt:"BigInt",BigInt64Array:"BigInt64Array",BigUint64Array:"BigUint64Array",Boolean:"Boolean",DataView:"DataView",EvalError:"EvalError",Float32Array:"Float32Array",Float64Array:"Float64Array",Int8Array:"Int8Array",Int16Array:"Int16Array",Int32Array:"Int32Array",Map:"Map",Number:"Number",Object:"Object",Promise:"Promise",Proxy:"Proxy",RangeError:"RangeError",ReferenceError:"ReferenceError",Set:"Set",String:"String",Symbol:"Symbol",SyntaxError:"SyntaxError",TypeError:"TypeError",Uint8Array:"Uint8Array",Uint8ClampedArray:"Uint8ClampedArray",Uint16Array:"Uint16Array",Uint32Array:"Uint32Array",URIError:"URIError",WeakMap:"WeakMap",WeakSet:"WeakSet",JSON:"JSON",Reflect:"Reflect",escape:"escape",unescape:"unescape",lockdown:"lockdown",harden:"harden",HandledPromise:"HandledPromise"},he={Date:"%InitialDate%",Error:"%InitialError%",RegExp:"%InitialRegExp%",Math:"%InitialMath%",getStackString:"%InitialGetStackString%"},Pe={Date:"%SharedDate%",Error:"%SharedError%",RegExp:"%SharedRegExp%",Math:"%SharedMath%"},Se=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError],Ee={"[[Proto]]":"%FunctionPrototype%",length:"number",name:"string"},ve=Ee,_e={"[[Proto]]":"%AsyncFunctionPrototype%"},$e={get:ve,set:"undefined"},xe={get:ve,set:ve},Ie=t=>t===$e||t===xe;function Te(t){return{"[[Proto]]":"%SharedError%",prototype:t}}function Ae(t){return{"[[Proto]]":"%ErrorPrototype%",constructor:t,message:"string",name:"string",toString:!1,cause:!1}}function ke(t){return{"[[Proto]]":"%TypedArray%",BYTES_PER_ELEMENT:"number",prototype:t}}function Ne(t){return{"[[Proto]]":"%TypedArrayPrototype%",BYTES_PER_ELEMENT:"number",constructor:t}}const Oe={E:"number",LN10:"number",LN2:"number",LOG10E:"number",LOG2E:"number",PI:"number",SQRT1_2:"number",SQRT2:"number","@@toStringTag":"string",abs:ve,acos:ve,acosh:ve,asin:ve,asinh:ve,atan:ve,atanh:ve,atan2:ve,cbrt:ve,ceil:ve,clz32:ve,cos:ve,cosh:ve,exp:ve,expm1:ve,floor:ve,fround:ve,hypot:ve,imul:ve,log:ve,log1p:ve,log10:ve,log2:ve,max:ve,min:ve,pow:ve,round:ve,sign:ve,sin:ve,sinh:ve,sqrt:ve,tan:ve,tanh:ve,trunc:ve,idiv:!1,idivmod:!1,imod:!1,imuldiv:!1,irem:!1,mod:!1},Ce={"[[Proto]]":null,"%ThrowTypeError%":ve,Infinity:"number",NaN:"number",undefined:"undefined","%UniqueEval%":ve,isFinite:ve,isNaN:ve,parseFloat:ve,parseInt:ve,decodeURI:ve,decodeURIComponent:ve,encodeURI:ve,encodeURIComponent:ve,Object:{"[[Proto]]":"%FunctionPrototype%",assign:ve,create:ve,defineProperties:ve,defineProperty:ve,entries:ve,freeze:ve,fromEntries:ve,getOwnPropertyDescriptor:ve,getOwnPropertyDescriptors:ve,getOwnPropertyNames:ve,getOwnPropertySymbols:ve,getPrototypeOf:ve,hasOwn:ve,is:ve,isExtensible:ve,isFrozen:ve,isSealed:ve,keys:ve,preventExtensions:ve,prototype:"%ObjectPrototype%",seal:ve,setPrototypeOf:ve,values:ve},"%ObjectPrototype%":{"[[Proto]]":null,constructor:"Object",hasOwnProperty:ve,isPrototypeOf:ve,propertyIsEnumerable:ve,toLocaleString:ve,toString:ve,valueOf:ve,"--proto--":xe,__defineGetter__:ve,__defineSetter__:ve,__lookupGetter__:ve,__lookupSetter__:ve},"%UniqueFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%InertFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%FunctionPrototype%":{apply:ve,bind:ve,call:ve,constructor:"%InertFunction%",toString:ve,"@@hasInstance":ve,caller:!1,arguments:!1},Boolean:{"[[Proto]]":"%FunctionPrototype%",prototype:"%BooleanPrototype%"},"%BooleanPrototype%":{constructor:"Boolean",toString:ve,valueOf:ve},Symbol:{"[[Proto]]":"%FunctionPrototype%",asyncIterator:"symbol",for:ve,hasInstance:"symbol",isConcatSpreadable:"symbol",iterator:"symbol",keyFor:ve,match:"symbol",matchAll:"symbol",prototype:"%SymbolPrototype%",replace:"symbol",search:"symbol",species:"symbol",split:"symbol",toPrimitive:"symbol",toStringTag:"symbol",unscopables:"symbol"},"%SymbolPrototype%":{constructor:"Symbol",description:$e,toString:ve,valueOf:ve,"@@toPrimitive":ve,"@@toStringTag":"string"},"%InitialError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:ve,stackTraceLimit:xe,prepareStackTrace:xe},"%SharedError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:ve,stackTraceLimit:xe,prepareStackTrace:xe},"%ErrorPrototype%":{constructor:"%SharedError%",message:"string",name:"string",toString:ve,at:!1,stack:!1,cause:!1},EvalError:Te("%EvalErrorPrototype%"),RangeError:Te("%RangeErrorPrototype%"),ReferenceError:Te("%ReferenceErrorPrototype%"),SyntaxError:Te("%SyntaxErrorPrototype%"),TypeError:Te("%TypeErrorPrototype%"),URIError:Te("%URIErrorPrototype%"),"%EvalErrorPrototype%":Ae("EvalError"),"%RangeErrorPrototype%":Ae("RangeError"),"%ReferenceErrorPrototype%":Ae("ReferenceError"),"%SyntaxErrorPrototype%":Ae("SyntaxError"),"%TypeErrorPrototype%":Ae("TypeError"),"%URIErrorPrototype%":Ae("URIError"),Number:{"[[Proto]]":"%FunctionPrototype%",EPSILON:"number",isFinite:ve,isInteger:ve,isNaN:ve,isSafeInteger:ve,MAX_SAFE_INTEGER:"number",MAX_VALUE:"number",MIN_SAFE_INTEGER:"number",MIN_VALUE:"number",NaN:"number",NEGATIVE_INFINITY:"number",parseFloat:ve,parseInt:ve,POSITIVE_INFINITY:"number",prototype:"%NumberPrototype%"},"%NumberPrototype%":{constructor:"Number",toExponential:ve,toFixed:ve,toLocaleString:ve,toPrecision:ve,toString:ve,valueOf:ve},BigInt:{"[[Proto]]":"%FunctionPrototype%",asIntN:ve,asUintN:ve,prototype:"%BigIntPrototype%",bitLength:!1,fromArrayBuffer:!1},"%BigIntPrototype%":{constructor:"BigInt",toLocaleString:ve,toString:ve,valueOf:ve,"@@toStringTag":"string"},"%InitialMath%":{...Oe,random:ve},"%SharedMath%":Oe,"%InitialDate%":{"[[Proto]]":"%FunctionPrototype%",now:ve,parse:ve,prototype:"%DatePrototype%",UTC:ve},"%SharedDate%":{"[[Proto]]":"%FunctionPrototype%",now:ve,parse:ve,prototype:"%DatePrototype%",UTC:ve},"%DatePrototype%":{constructor:"%SharedDate%",getDate:ve,getDay:ve,getFullYear:ve,getHours:ve,getMilliseconds:ve,getMinutes:ve,getMonth:ve,getSeconds:ve,getTime:ve,getTimezoneOffset:ve,getUTCDate:ve,getUTCDay:ve,getUTCFullYear:ve,getUTCHours:ve,getUTCMilliseconds:ve,getUTCMinutes:ve,getUTCMonth:ve,getUTCSeconds:ve,setDate:ve,setFullYear:ve,setHours:ve,setMilliseconds:ve,setMinutes:ve,setMonth:ve,setSeconds:ve,setTime:ve,setUTCDate:ve,setUTCFullYear:ve,setUTCHours:ve,setUTCMilliseconds:ve,setUTCMinutes:ve,setUTCMonth:ve,setUTCSeconds:ve,toDateString:ve,toISOString:ve,toJSON:ve,toLocaleDateString:ve,toLocaleString:ve,toLocaleTimeString:ve,toString:ve,toTimeString:ve,toUTCString:ve,valueOf:ve,"@@toPrimitive":ve,getYear:ve,setYear:ve,toGMTString:ve},String:{"[[Proto]]":"%FunctionPrototype%",fromCharCode:ve,fromCodePoint:ve,prototype:"%StringPrototype%",raw:ve,fromArrayBuffer:!1},"%StringPrototype%":{length:"number",at:ve,charAt:ve,charCodeAt:ve,codePointAt:ve,concat:ve,constructor:"String",endsWith:ve,includes:ve,indexOf:ve,lastIndexOf:ve,localeCompare:ve,match:ve,matchAll:ve,normalize:ve,padEnd:ve,padStart:ve,repeat:ve,replace:ve,replaceAll:ve,search:ve,slice:ve,split:ve,startsWith:ve,substring:ve,toLocaleLowerCase:ve,toLocaleUpperCase:ve,toLowerCase:ve,toString:ve,toUpperCase:ve,trim:ve,trimEnd:ve,trimStart:ve,valueOf:ve,"@@iterator":ve,substr:ve,anchor:ve,big:ve,blink:ve,bold:ve,fixed:ve,fontcolor:ve,fontsize:ve,italics:ve,link:ve,small:ve,strike:ve,sub:ve,sup:ve,trimLeft:ve,trimRight:ve,compare:!1},"%StringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:ve,"@@toStringTag":"string"},"%InitialRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":$e,input:!1,$_:!1,lastMatch:!1,"$&":!1,lastParen:!1,"$+":!1,leftContext:!1,"$`":!1,rightContext:!1,"$'":!1,$1:!1,$2:!1,$3:!1,$4:!1,$5:!1,$6:!1,$7:!1,$8:!1,$9:!1},"%SharedRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":$e},"%RegExpPrototype%":{constructor:"%SharedRegExp%",exec:ve,dotAll:$e,flags:$e,global:$e,ignoreCase:$e,"@@match":ve,"@@matchAll":ve,multiline:$e,"@@replace":ve,"@@search":ve,source:$e,"@@split":ve,sticky:$e,test:ve,toString:ve,unicode:$e,compile:!1,hasIndices:!1},"%RegExpStringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:ve,"@@toStringTag":"string"},Array:{"[[Proto]]":"%FunctionPrototype%",from:ve,isArray:ve,of:ve,prototype:"%ArrayPrototype%","@@species":$e,at:ve},"%ArrayPrototype%":{at:ve,length:"number",concat:ve,constructor:"Array",copyWithin:ve,entries:ve,every:ve,fill:ve,filter:ve,find:ve,findIndex:ve,flat:ve,flatMap:ve,forEach:ve,includes:ve,indexOf:ve,join:ve,keys:ve,lastIndexOf:ve,map:ve,pop:ve,push:ve,reduce:ve,reduceRight:ve,reverse:ve,shift:ve,slice:ve,some:ve,sort:ve,splice:ve,toLocaleString:ve,toString:ve,unshift:ve,values:ve,"@@iterator":ve,"@@unscopables":{"[[Proto]]":null,copyWithin:"boolean",entries:"boolean",fill:"boolean",find:"boolean",findIndex:"boolean",flat:"boolean",flatMap:"boolean",includes:"boolean",keys:"boolean",values:"boolean",at:!1,findLast:"boolean",findLastIndex:"boolean"},findLast:ve,findLastIndex:ve},"%ArrayIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:ve,"@@toStringTag":"string"},"%TypedArray%":{"[[Proto]]":"%FunctionPrototype%",from:ve,of:ve,prototype:"%TypedArrayPrototype%","@@species":$e},"%TypedArrayPrototype%":{at:ve,buffer:$e,byteLength:$e,byteOffset:$e,constructor:"%TypedArray%",copyWithin:ve,entries:ve,every:ve,fill:ve,filter:ve,find:ve,findIndex:ve,forEach:ve,includes:ve,indexOf:ve,join:ve,keys:ve,lastIndexOf:ve,length:$e,map:ve,reduce:ve,reduceRight:ve,reverse:ve,set:ve,slice:ve,some:ve,sort:ve,subarray:ve,toLocaleString:ve,toString:ve,values:ve,"@@iterator":ve,"@@toStringTag":$e,findLast:ve,findLastIndex:ve},BigInt64Array:ke("%BigInt64ArrayPrototype%"),BigUint64Array:ke("%BigUint64ArrayPrototype%"),Float32Array:ke("%Float32ArrayPrototype%"),Float64Array:ke("%Float64ArrayPrototype%"),Int16Array:ke("%Int16ArrayPrototype%"),Int32Array:ke("%Int32ArrayPrototype%"),Int8Array:ke("%Int8ArrayPrototype%"),Uint16Array:ke("%Uint16ArrayPrototype%"),Uint32Array:ke("%Uint32ArrayPrototype%"),Uint8Array:ke("%Uint8ArrayPrototype%"),Uint8ClampedArray:ke("%Uint8ClampedArrayPrototype%"),"%BigInt64ArrayPrototype%":Ne("BigInt64Array"),"%BigUint64ArrayPrototype%":Ne("BigUint64Array"),"%Float32ArrayPrototype%":Ne("Float32Array"),"%Float64ArrayPrototype%":Ne("Float64Array"),"%Int16ArrayPrototype%":Ne("Int16Array"),"%Int32ArrayPrototype%":Ne("Int32Array"),"%Int8ArrayPrototype%":Ne("Int8Array"),"%Uint16ArrayPrototype%":Ne("Uint16Array"),"%Uint32ArrayPrototype%":Ne("Uint32Array"),"%Uint8ArrayPrototype%":Ne("Uint8Array"),"%Uint8ClampedArrayPrototype%":Ne("Uint8ClampedArray"),Map:{"[[Proto]]":"%FunctionPrototype%","@@species":$e,prototype:"%MapPrototype%"},"%MapPrototype%":{clear:ve,constructor:"Map",delete:ve,entries:ve,forEach:ve,get:ve,has:ve,keys:ve,set:ve,size:$e,values:ve,"@@iterator":ve,"@@toStringTag":"string"},"%MapIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:ve,"@@toStringTag":"string"},Set:{"[[Proto]]":"%FunctionPrototype%",prototype:"%SetPrototype%","@@species":$e},"%SetPrototype%":{add:ve,clear:ve,constructor:"Set",delete:ve,entries:ve,forEach:ve,has:ve,keys:ve,size:$e,values:ve,"@@iterator":ve,"@@toStringTag":"string"},"%SetIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:ve,"@@toStringTag":"string"},WeakMap:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakMapPrototype%"},"%WeakMapPrototype%":{constructor:"WeakMap",delete:ve,get:ve,has:ve,set:ve,"@@toStringTag":"string"},WeakSet:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakSetPrototype%"},"%WeakSetPrototype%":{add:ve,constructor:"WeakSet",delete:ve,has:ve,"@@toStringTag":"string"},ArrayBuffer:{"[[Proto]]":"%FunctionPrototype%",isView:ve,prototype:"%ArrayBufferPrototype%","@@species":$e,fromString:!1,fromBigInt:!1},"%ArrayBufferPrototype%":{byteLength:$e,constructor:"ArrayBuffer",slice:ve,"@@toStringTag":"string",concat:!1,transfer:ve,resize:ve,resizable:$e,maxByteLength:$e},SharedArrayBuffer:!1,"%SharedArrayBufferPrototype%":!1,DataView:{"[[Proto]]":"%FunctionPrototype%",BYTES_PER_ELEMENT:"number",prototype:"%DataViewPrototype%"},"%DataViewPrototype%":{buffer:$e,byteLength:$e,byteOffset:$e,constructor:"DataView",getBigInt64:ve,getBigUint64:ve,getFloat32:ve,getFloat64:ve,getInt8:ve,getInt16:ve,getInt32:ve,getUint8:ve,getUint16:ve,getUint32:ve,setBigInt64:ve,setBigUint64:ve,setFloat32:ve,setFloat64:ve,setInt8:ve,setInt16:ve,setInt32:ve,setUint8:ve,setUint16:ve,setUint32:ve,"@@toStringTag":"string"},Atomics:!1,JSON:{parse:ve,stringify:ve,"@@toStringTag":"string"},"%IteratorPrototype%":{"@@iterator":ve},"%AsyncIteratorPrototype%":{"@@asyncIterator":ve},"%InertGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%Generator%"},"%Generator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertGeneratorFunction%",prototype:"%GeneratorPrototype%","@@toStringTag":"string"},"%InertAsyncGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncGenerator%"},"%AsyncGenerator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncGeneratorFunction%",prototype:"%AsyncGeneratorPrototype%","@@toStringTag":"string"},"%GeneratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",constructor:"%Generator%",next:ve,return:ve,throw:ve,"@@toStringTag":"string"},"%AsyncGeneratorPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",constructor:"%AsyncGenerator%",next:ve,return:ve,throw:ve,"@@toStringTag":"string"},HandledPromise:{"[[Proto]]":"Promise",applyFunction:ve,applyFunctionSendOnly:ve,applyMethod:ve,applyMethodSendOnly:ve,get:ve,getSendOnly:ve,prototype:"%PromisePrototype%",resolve:ve},Promise:{"[[Proto]]":"%FunctionPrototype%",all:ve,allSettled:ve,any:!1,prototype:"%PromisePrototype%",race:ve,reject:ve,resolve:ve,"@@species":$e},"%PromisePrototype%":{catch:ve,constructor:"Promise",finally:ve,then:ve,"@@toStringTag":"string","UniqueSymbol(async_id_symbol)":xe,"UniqueSymbol(trigger_async_id_symbol)":xe,"UniqueSymbol(destroyed)":xe},"%InertAsyncFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncFunctionPrototype%"},"%AsyncFunctionPrototype%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncFunction%","@@toStringTag":"string"},Reflect:{apply:ve,construct:ve,defineProperty:ve,deleteProperty:ve,get:ve,getOwnPropertyDescriptor:ve,getPrototypeOf:ve,has:ve,isExtensible:ve,ownKeys:ve,preventExtensions:ve,set:ve,setPrototypeOf:ve,"@@toStringTag":"string"},Proxy:{"[[Proto]]":"%FunctionPrototype%",revocable:ve},escape:ve,unescape:ve,"%UniqueCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:ve},"%InertCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:ve},"%CompartmentPrototype%":{constructor:"%InertCompartment%",evaluate:ve,globalThis:$e,name:$e,toString:ve,__isKnownScopeProxy__:ve,import:_e,load:_e,importNow:ve,module:ve},lockdown:ve,harden:ve,"%InitialGetStackString%":ve},Fe=t=>"function"==typeof t;function Ue(t,e,o){if(St(t,e)){const r=k(t,e);if(!F(r.value,o.value)||r.get!==o.get||r.set!==o.set||r.writable!==o.writable||r.enumerable!==o.enumerable||r.configurable!==o.configurable)throw new _(`Conflicting definitions of ${e}`)}X(t,e,o)}function Re(t,e){const o={__proto__:null};for(const[r,n]of T(e))St(t,r)&&(o[n]=t[r]);return o}const Le=()=>{const t={__proto__:null};let e;const o=e=>{!function(t,e){for(const[o,r]of T(e))Ue(t,o,r)}(t,N(e))};A(o);const n=()=>{for(const[e,o]of T(t)){if(!pe(o))continue;if(!St(o,"prototype"))continue;const r=Ce[e];if("object"!=typeof r)throw new _(`Expected permit object at whitelist.${e}`);const n=r.prototype;if(!n)throw new _(`${e}.prototype property not whitelisted`);if("string"!=typeof n||!St(Ce,n))throw new _(`Unrecognized ${e}.prototype whitelist entry`);const a=o.prototype;if(St(t,n)){if(t[n]!==a)throw new _(`Conflicting bindings of ${n}`)}else t[n]=a}};A(n);const a=()=>(A(t),e=new h(Et(B(t),Fe)),t);A(a);const i=t=>{if(!e)throw new _("isPseudoNative can only be called after finalIntrinsics");return ne(e,t)};A(i);const s={addIntrinsics:o,completePrototypes:n,finalIntrinsics:a,isPseudoNative:i};return A(s),o(we),o(Re(r,be)),s},Me=t=>(t=`${t}`).length>=1&&Ht("aeiouAEIOU",t[0])?`an ${t}`:`a ${t}`;A(Me);const De=(t,e)=>{const o=new d,r=(t,e)=>{switch(typeof e){case"object":return null===e?null:Dt(o,e)?"[Seen]":(Lt(o,e),ue(e)?`[${e.name}: ${e.message}]`:z in e?`[${e[z]}]`:e);case"function":return`[Function ${e.name||"<anon>"}]`;case"string":return Zt(e,"[")?`[${e}]`:e;case"undefined":case"symbol":return`[${w(e)}]`;case"bigint":return`[${e}n]`;case"number":return F(e,NaN)?"[NaN]":e===1/0?"[Infinity]":e===-1/0?"[-Infinity]":e;default:return e}};try{return Y(t,r,e)}catch(t){return"[Something that failed to stringify]"}};A(De);const Ge=new b,Be=(t,e)=>{const o=A({toString:A((()=>De(t,e)))});return oe(Ge,o,t),o};A(Be);const je=new b,ze=({template:t,args:e})=>{const o=[t[0]];for(let r=0;r<e.length;r+=1){const n=e[r];let a;a=ee(Ge,n)?`${n}`:ue(n)?`(${Me(n.name)})`:`(${Me(typeof n)})`,Tt(o,a,t[r+1])}return $t(o,"")},We=A({toString(){const t=te(je,this);return void 0===t?"[Not a DetailsToken]":ze(t)}});A(We.toString);const He=(t,...e)=>{const o=A({__proto__:We});return oe(je,o,{template:t,args:e}),o};A(He);const Ve=(t,...e)=>(e=xt(e,(t=>ee(Ge,t)?t:Be(t))),He(t,...e));A(Ve);const qe=({template:t,args:e})=>{const o=[t[0]];for(let r=0;r<e.length;r+=1){let n=e[r];ee(Ge,n)&&(n=te(Ge,n));const a=qt(It(o)||"",/ $/,"");""!==a&&Tt(o,a);const i=qt(t[r+1],/^ /,"");Tt(o,n,i)}return""===o[o.length-1]&&It(o),o},Ke=new b;let Ye=0;const Je=new b,Ze=(t,e=t.name)=>{let o=te(Je,t);return void 0!==o||(Ye+=1,o=`${e}#${Ye}`,oe(Je,t,o)),o},Xe=(t=He`Assert failed`,e=r.Error,{errorName:o}={})=>{"string"==typeof t&&(t=He([t]));const n=te(je,t);if(void 0===n)throw new _(`unrecognized details ${Be(t)}`);const a=new e(ze(n));return oe(Ke,a,qe(n)),void 0!==o&&Ze(a,o),a};A(Xe);const Qe=new b,to=new b,eo=(t,e)=>{"string"==typeof e&&(e=He([e]));const o=te(je,e);if(void 0===o)throw new _(`unrecognized details ${Be(e)}`);const r=qe(o),n=te(to,t);if(void 0!==n)for(const e of n)e(t,r);else{const e=te(Qe,t);void 0!==e?Tt(e,r):oe(Qe,t,[r])}};A(eo);const oo={getStackString:r.getStackString||(t=>{if(!("stack"in t))return"";const e=`${t.stack}`,o=Vt(e,"\n");return Zt(e," ")||-1===o?e:Yt(e,o+1)}),tagError:t=>Ze(t),resetErrorTagNum:()=>{Ye=0},getMessageLogArgs:t=>te(Ke,t),takeMessageLogArgs:t=>{const e=te(Ke,t);return Qt(Ke,t),e},takeNoteLogArgsArray:(t,e)=>{const o=te(Qe,t);if(Qt(Qe,t),void 0!==e){const o=te(to,t);o?Tt(o,e):oe(to,t,[e])}return o||[]}};A(oo);const ro=(t,e=!1)=>{const o=e?Ve:He,n=(e=o`Assert failed`,n=r.Error)=>{const a=Xe(e,n);throw void 0!==t&&t(a),a};function a(t,e=o`Check failed`,a=r.Error){if(!t)throw n(e,a)}A(n);const i=(t,e,r=o`Expected ${t} is same as ${e}`,n=S)=>{a(F(t,e),r,n)};A(i);const s=(t,e,r)=>{a("string"==typeof e,o`${Be(e)} must be a string`),void 0===r&&(r=o(["",` must be ${Me(e)}`],t)),i(typeof t,e,r,_)};A(s);const c=$(a,{error:Xe,fail:n,equal:i,typeof:s,string:(t,e)=>s(t,"string",e),note:eo,details:o,quote:Be,makeAssert:ro});return A(c)};A(ro);const no=ro(),ao=k(ht,z);no(ao);const io=ao.get;no(io);function so(t,e){const o=["undefined","boolean","number","string","symbol"],r=new c(t.Symbol?xt(Et(T(Ce.Symbol),(([e,o])=>"symbol"===o&&"symbol"==typeof t.Symbol[e])),(([e])=>[t.Symbol[e],`@@${e}`])):[]);function n(t,e){if("string"==typeof e)return e;const o=Ft(r,e);if("symbol"==typeof e){if(o)return o;{const t=V(e);return void 0!==t?`RegisteredSymbol(${t})`:`Unique${w(e)}`}}throw new _(`Unexpected property name type ${t} ${e}`)}function a(e,r,n,a){if("object"==typeof a)return l(e,r,a),!0;if(!1===a)return!1;if("string"==typeof a)if("prototype"===n||"constructor"===n){if(St(t,a)){if(r!==t[a])throw new _(`Does not match whitelist ${e}`);return!0}}else if(_t(o,a)){if(typeof r!==a)throw new _(`At ${e} expected ${a} not ${typeof r}`);return!0}throw new _(`Unexpected whitelist permit ${a} at ${e}`)}function i(t,e,o,r){const n=k(e,o);if(St(n,"value")){if(Ie(r))throw new _(`Accessor expected at ${t}`);return a(t,n.value,o,r)}if(!Ie(r))throw new _(`Accessor not expected at ${t}`);return a(`${t}<get>`,n.get,o,r.get)&&a(`${t}<set>`,n.set,o,r.set)}function s(t,o,r){const n="__proto__"===r?"--proto--":r;return St(o,n)?o[n]:"function"==typeof t&&(e(t),St(Ee,n))?Ee[n]:void 0}function l(e,o,r){if(void 0===o)return;!function(e,o,r){if(!pe(o))throw new _(`Object expected: ${e}, ${o}, ${r}`);const n=C(o);if(null!==n||null!==r){if(void 0!==r&&"string"!=typeof r)throw new _(`Malformed whitelist permit ${e}.__proto__`);if(n!==t[r||"%ObjectPrototype%"])throw new _(`Unexpected intrinsic ${e}.__proto__ at ${r}`)}}(e,o,r["[[Proto]]"]);for(const t of at(o)){const a=n(e,t),c=`${e}.${a}`,l=s(o,r,a);if(!l||!i(c,o,t,l)){!1!==l&&console.warn(`Removing ${c}`);try{delete o[t]}catch(e){throw t in o?console.error(`failed to delete ${c}`,e):console.error(`deleting ${c} threw`,e),e}}}}l("intrinsics",t,Ce)}const co={"%ObjectPrototype%":{toString:!0},"%FunctionPrototype%":{toString:!0},"%ErrorPrototype%":{name:!0}},lo={"%ObjectPrototype%":{toString:!0,valueOf:!0},"%ArrayPrototype%":{toString:!0,push:!0},"%FunctionPrototype%":{constructor:!0,bind:!0,toString:!0},"%ErrorPrototype%":{constructor:!0,message:!0,name:!0,toString:!0},"%TypeErrorPrototype%":{constructor:!0,message:!0,name:!0},"%SyntaxErrorPrototype%":{message:!0,name:!0},"%RangeErrorPrototype%":{message:!0,name:!0},"%URIErrorPrototype%":{message:!0,name:!0},"%EvalErrorPrototype%":{message:!0,name:!0},"%ReferenceErrorPrototype%":{message:!0,name:!0},"%PromisePrototype%":{constructor:!0},"%TypedArrayPrototype%":"*","%Generator%":{constructor:!0,name:!0,toString:!0},"%IteratorPrototype%":{toString:!0}},po={...lo,"%ObjectPrototype%":"*","%TypedArrayPrototype%":"*"};const{details:uo,quote:fo}=no,yo=/^(\w*[a-z])Locale([A-Z]\w*)$/,go={localeCompare(t){if(null==this)throw new _('Cannot localeCompare with null or undefined "this" value');const e=`${this}`;return e<(t=`${t}`)?-1:e>t?1:(no(e===t,uo`expected ${fo(e)} and ${fo(t)} to compare`),0)},toString(){return`${this}`}},mo=go.localeCompare,wo=go.toString;const bo=t=>{for(const[e,o]of T(we))X(t,e,{value:o,writable:!1,enumerable:!1,configurable:!1})},ho=(t,{intrinsics:e,newGlobalPropertyNames:o,makeCompartmentConstructor:r,markVirtualizedNativeFunction:n})=>{for(const[o,r]of T(be))St(e,r)&&X(t,o,{value:e[r],writable:!0,enumerable:!1,configurable:!0});for(const[r,n]of T(o))St(e,n)&&X(t,r,{value:e[n],writable:!0,enumerable:!1,configurable:!0});const a={globalThis:t};a.Compartment=r(r,e,n);for(const[e,o]of T(a))X(t,e,{value:o,writable:!0,enumerable:!1,configurable:!0}),"function"==typeof o&&n(o)},Po=(t,e,o)=>{{const n=(r=e,t=>"string"!=typeof t?t:r(t));o(n),X(t,"eval",{value:n,writable:!0,enumerable:!1,configurable:!0})}var r;{const r=(t=>{const e=function(e){const o=`${It(arguments)||""}`,r=`${$t(arguments,",")}`;new ye(r,""),new ye(o);return t(`(function anonymous(${r}\n) {\n${o}\n})`)};return I(e,{prototype:{value:ye.prototype,writable:!1,enumerable:!1,configurable:!1}}),no(C(ye)===ye.prototype,"Function prototype is the same accross compartments"),no(C(e)===ye.prototype,"Function constructor prototype is the same accross compartments"),e})(e);o(r),X(t,"Function",{value:r,writable:!0,enumerable:!1,configurable:!0})}},So=["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","let","static","enum","implements","package","protected","interface","private","public","await","null","true","false","this","arguments"],Eo=/^[a-zA-Z_$][\w$]*$/,vo=t=>"eval"!==t&&!_t(So,t)&&Bt(Eo,t);function _o(t,e){const o=k(t,e);return!1===o.configurable&&!1===o.writable&&St(o,"value")}const{details:$o,quote:xo}=no,Io=new y(le,A({get(t,e){no.fail($o`Please report unexpected scope handler trap: ${xo(w(e))}`)}})),To="\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)",Ao=new m(`(?:\\s*//${To}|/\\*${To}\\s*\\*/)\\s*$`),ko=t=>{let e="<unknown>";for(;t.length>0;){const o=jt(Ao,t);if(null===o)break;t=Yt(t,0,t.length-o[0].length),"sourceURL"===o[3]?e=o[4]:"sourceURL"===o[1]&&(e=o[2])}return e};function No(t,e){const o=Kt(t,e);if(o<0)return-1;const r="\n"===t[o]?1:0;return Jt(Yt(t,0,o),"\n").length+r}const Oo=new m("(?:\x3c!--|--\x3e)","g"),Co=t=>qt(t,Oo,(t=>"<"===t[0]?"< ! --":"-- >")),Fo=new m("(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))","g"),Uo=t=>qt(t,Fo,((t,e,o)=>`${e}__import__${o}`)),Ro=new m("(^|[^.])\\beval(\\s*\\()","g"),Lo=t=>{const e=No(t,Ro);if(e<0)return t;const o=ko(t);throw new v(`Possible direct eval expression rejected at ${o}:${e}. (SES_EVAL_REJECTED)`)},Mo=t=>t=(t=>{const e=No(t,Fo);if(e<0)return t;const o=ko(t);throw new v(`Possible import expression rejected at ${o}:${e}. (SES_IMPORT_REJECTED)`)})(t=(t=>{const e=No(t,Oo);if(e<0)return t;const o=ko(t);throw new v(`Possible HTML comment rejected at ${o}:${e}. (SES_HTML_COMMENT_REJECTED)`)})(t));const Do=(t=[])=>{const e=function(t){return 0===t.length?"":`const {${$t(t,",")}} = this;`}(t);return ye(`\n with (this) {\n ${e}\n return function() {\n 'use strict';\n return eval(arguments[0]);\n };\n }\n `)},{details:Go}=no,Bo=({globalObject:t,globalLexicals:e={},globalTransforms:o=[],sloppyGlobalsMode:n=!1,knownScopeProxies:a=new h}={})=>{const{scopeHandler:i,scopeController:s}=((t,e={},{sloppyGlobalsMode:o=!1}={})=>{const n={allowNextEvalToBeUnsafe:!1};M(n);const a=A(x(Io,N({get(o,r){if("symbol"!=typeof r)return"eval"===r&&!0===n.allowNextEvalToBeUnsafe?(n.allowNextEvalToBeUnsafe=!1,fe):r in e?et(e,r,t):et(t,r)},set(o,r,n){if(r in e){const o=k(e,r);return St(o,"value")?st(e,r,n):st(e,r,n,t)}return st(t,r,n)},has:(a,i)=>o||n.allowNextEvalToBeUnsafe&&"eval"===i||i in e||i in t||i in r,getPrototypeOf:()=>null,getOwnPropertyDescriptor(t,e){const o=xo(w(e));console.warn(`getOwnPropertyDescriptor trap on scopeHandler for ${o}`,(new _).stack)}})));return{scopeController:n,scopeHandler:a}})(t,e,{sloppyGlobalsMode:n}),{proxy:c,revoke:l}=ut(le,i);let p;re(a,c);const u=()=>{if(!p){const o=((t,e={})=>{const o=O(t),r=O(e),n=Et(r,(t=>vo(t)&&_o(e,t)));return[...Et(o,(e=>!_t(r,e)&&vo(e)&&_o(t,e))),...n]})(t,e),r=Do(o);p=Q(r,c,[])}};return{safeEvaluate:(e,{localTransforms:r=[]}={})=>{let n;u(),e=((t,e)=>{for(const o of e)t=o(t);return t})(e,[...r,...o,Mo]),s.allowNextEvalToBeUnsafe=!0;try{return Q(p,t,[e])}catch(t){throw n=t,t}finally{const t=s.allowNextEvalToBeUnsafe;s.allowNextEvalToBeUnsafe=!1,t&&(l(),no.fail(Go`handler did not reset allowNextEvalToBeUnsafe ${n}`))}}}};const jo=A([["debug","debug"],["log","log"],["info","info"],["warn","warn"],["error","error"],["trace","log"],["dirxml","log"],["group","log"],["groupCollapsed","log"]]),zo=A([["assert","error"],["timeLog","log"],["clear",void 0],["count","info"],["countReset",void 0],["dir","log"],["groupEnd","log"],["table","log"],["time","info"],["timeEnd","info"],["profile",void 0],["profileEnd",void 0],["timeStamp",void 0]]),Wo=A([...jo,...zo]);A(((t,{shouldResetForDebugging:e=!1}={})=>{e&&t.resetErrorTagNum();let o=[];const r=J(xt(Wo,(([t,e])=>{const r=(...e)=>{Tt(o,[t,...e])};return X(r,"name",{value:t}),[t,A(r)]})));A(r);const n=()=>{const t=A(o);return o=[],t};A(n);return A({loggingConsole:r,takeLog:n})}));const Ho={NOTE:"ERROR_NOTE:",MESSAGE:"ERROR_MESSAGE:"};A(Ho);const Vo=(t,e)=>{const{getStackString:o,tagError:r,takeMessageLogArgs:n,takeNoteLogArgsArray:a}=e,i=(t,e)=>xt(t,(t=>ue(t)?(Tt(e,t),`(${r(t)})`):t)),s=(e,o,n,a)=>{const s=r(e),c=o===Ho.MESSAGE?`${s}:`:`${s} ${o}`,l=i(n,a);t.debug(c,...l)},c=(e,o)=>{if(0===e.length)return;if(1===e.length&&void 0===o)return void u(e[0]);let r;r=1===e.length?"Nested error":`Nested ${e.length} errors`,void 0!==o&&(r=`${r} under ${o}`),t.group(r);try{for(const t of e)u(t)}finally{t.groupEnd()}},l=new h,p=(t,e)=>{const o=[];s(t,Ho.NOTE,e,o),c(o,r(t))},u=e=>{if(ne(l,e))return;const i=r(e);re(l,e);const u=[],f=n(e),y=a(e,p);void 0===f?t.debug(`${i}:`,e.message):s(e,Ho.MESSAGE,f,u);let g=o(e);"string"==typeof g&&g.length>=1&&!Wt(g,"\n")&&(g+="\n"),t.debug(g);for(const t of y)s(e,Ho.NOTE,t,u);c(u,i)},f=xt(jo,(([e,o])=>{const r=(...o)=>{const r=[],n=i(o,r);t[e](...n),c(r)};return X(r,"name",{value:e}),[e,A(r)]})),y=Et(zo,(([e,o])=>e in t)),g=xt(y,(([e,o])=>{const r=(...o)=>{t[e](...o)};return X(r,"name",{value:e}),[e,A(r)]})),m=J([...f,...g]);return A(m)};A(Vo);A(((t,e,o)=>{const r=Et(Wo,(([e,o])=>e in t)),n=xt(r,(([o,r])=>[o,A(((...n)=>{(void 0===r||e.canLog(r))&&t[o](...n)}))])),a=J(n);return A(a)}));const qo=console,Ko=["getTypeName","getFunctionName","getMethodName","getFileName","getLineNumber","getColumnNumber","getEvalOrigin","isToplevel","isEval","isNative","isConstructor","isAsync","getPosition","getScriptNameOrSourceURL","toString"],Yo=t=>{const e=J(xt(Ko,(e=>{const o=t[e];return[e,()=>Q(o,t,[])]})));return x(e,{})},Jo=[/\/node_modules\//,/^(?:node:)?internal\//,/\/packages\/ses\/src\/error\/assert.js$/,/\/packages\/eventual-send\/src\//],Zo=[/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/],Xo=(t,e,o,r)=>{const n=t.captureStackTrace,a=t=>"verbose"===r||(t=>{if(!t)return!0;for(const e of Jo)if(Bt(e,t))return!1;return!0})(t.getFileName()),i=t=>{let e=`${t}`;return"concise"===r&&(e=(t=>{for(const e of Zo){const o=jt(e,t);if(o)return $t(At(o,1),"")}return t})(e)),`\n at ${e}`},s=(t,e)=>$t(xt(Et(e,a),i),""),c=new b,l={captureStackTrace(e,o=l.captureStackTrace){"function"!=typeof n?st(e,"stack",""):Q(n,t,[e,o])},getStackString(t){ee(c,t)||t.stack;const e=te(c,t);return e?s(0,e):""},prepareStackTrace(t,e){if(oe(c,t,e),"unsafe"===o){return`${t}${s(0,e)}`}return""}},p=l.prepareStackTrace;t.prepareStackTrace=p;const u=new h([p]),f=t=>{if(ne(u,t))return t;const e={prepareStackTrace:(e,o)=>(oe(c,e,o),t(e,(t=>xt(t,Yo))(o)))};return re(u,e.prepareStackTrace),e.prepareStackTrace};return I(e,{captureStackTrace:{value:l.captureStackTrace,writable:!0,enumerable:!1,configurable:!0},prepareStackTrace:{get:()=>t.prepareStackTrace,set(e){if("function"==typeof e){const o=f(e);t.prepareStackTrace=o}else t.prepareStackTrace=p},enumerable:!1,configurable:!0}}),l.getStackString},Qo=k(P.prototype,"stack"),tr=Qo&&Qo.get,er={getStackString:t=>"function"==typeof tr?Q(tr,t,[]):"stack"in t?`${t.stack}`:""};const{details:or,quote:rr}=no,nr=t=>{const e=[],o=(o,r)=>{no.typeof(o,"string",or`Environment option name ${rr(o)} must be a string.`),no.typeof(r,"string",or`Environment option default setting ${rr(r)} must be a string.`);let n=r;const a=t.process;if(a&&"object"==typeof a){const t=a.env;if(t&&"object"==typeof t&&o in t){Tt(e,o);const r=t[o];no.typeof(r,"string",or`Environment option named ${rr(o)}, if present, must have a corresponding string value, got ${rr(r)}`),n=r}}return no(void 0===n||"string"==typeof n,or`Environment option value ${rr(n)}, if present, must be a string.`),n};A(o);const r=()=>A(At(e));return A(r),{getEnvironmentOption:o,getCapturedEnvironmentOptionNames:r}};A(nr);const{details:ar,quote:ir}=no,sr=()=>{},cr=async(t,e,o,r,n,a,i,s)=>{const{resolveHook:c,moduleRecords:l}=te(t,o),p=((t,e,o)=>{const r=x(null);for(const n of t){const t=e(n,o);r[n]=t}return A(r)})(n.imports,c,r),u=A({compartment:o,staticModuleRecord:n,moduleSpecifier:r,resolvedImports:p});for(const r of B(p)){const n=lr(t,e,o,r,a,i,s);Lt(a,ce(n,sr,(t=>{Tt(s,t)})))}return Ct(l,r,u),u},lr=async(t,e,o,r,n,a,i)=>{const{name:s}=te(t,o);let l=Ft(a,o);void 0===l&&(l=new c,Ct(a,o,l));let p=Ft(l,r);return void 0!==p||(p=se((async(t,e,o,r,n,a,i)=>{const{importHook:s,moduleMap:c,moduleMapHook:l,moduleRecords:p}=te(t,o);let u=c[r];if(void 0===u&&void 0!==l&&(u=l(r)),"string"==typeof u)no.fail(ar`Cannot map module ${ir(r)} to ${ir(u)} in parent compartment, not yet implemented`,_);else if(void 0!==u){const o=te(e,u);void 0===o&&no.fail(ar`Cannot map module ${ir(r)} because the value is not a module exports namespace, or is from another realm`,E);const s=await lr(t,e,o.compartment,o.specifier,n,a,i);return Ct(p,r,s),s}if(Ut(p,r))return Ft(p,r);const f=await s(r);if(null!==f&&"object"==typeof f||no.fail(ar`importHook must return a promise for an object, for module ${ir(r)} in compartment ${ir(o.name)}`),void 0!==f.record){const{compartment:s=o,specifier:c=r,record:l}=f,u=await cr(t,e,s,c,l,n,a,i);return Ct(p,r,u),u}return cr(t,e,o,r,f,n,a,i)})(t,e,o,r,n,a,i),(t=>{throw no.note(t,ar`${t.message}, loading ${ir(r)} in compartment ${ir(s)}`),t})),Ct(l,r,p)),p},pr=async(t,e,o,r)=>{const{name:n}=te(t,o),a=new d,i=new c,s=[],l=lr(t,e,o,r,a,i,s);Lt(a,ce(l,sr,(t=>{Tt(s,t)})));for(const t of a)await t;if(s.length>0)throw new _(`Failed to load module ${ir(r)} in package ${ir(n)} (${s.length} underlying failures: ${$t(xt(s,(t=>t.message)),", ")}`)},{quote:ur}=no,fr=(t,e,o,r)=>{const{deferredExports:n}=e;if(!Ut(n,r)){const e=(()=>{let t=!1;const e=x(null);return A({activate(){t=!0},proxiedExports:e,exportsProxy:new y(e,{get(o,r,n){if(!t)throw new _(`Cannot get property ${ur(r)} of module exports namespace, the module has not yet begun to execute`);return et(e,r,n)},set(t,e,o){throw new _(`Cannot set property ${ur(e)} of module exports namespace`)},has(o,r){if(!t)throw new _(`Cannot check property ${ur(r)}, the module has not yet begun to execute`);return rt(e,r)},deleteProperty(t,e){throw new _(`Cannot delete property ${ur(e)}s of module exports namespace`)},ownKeys(o){if(!t)throw new _("Cannot enumerate keys, the module has not yet begun to execute");return at(e)},getOwnPropertyDescriptor(o,r){if(!t)throw new _(`Cannot get own property descriptor ${ur(r)}, the module has not yet begun to execute`);return ot(e,r)},preventExtensions(o){if(!t)throw new _("Cannot prevent extensions of module exports namespace, the module has not yet begun to execute");return it(e)},isExtensible(){if(!t)throw new _("Cannot check extensibility of module exports namespace, the module has not yet begun to execute");return nt(e)},getPrototypeOf:t=>null,setPrototypeOf(t,e){throw new _("Cannot set prototype of module exports namespace")},defineProperty(t,e,o){throw new _(`Cannot define property ${ur(e)} of module exports namespace`)},apply(t,e,o){throw new _("Cannot call module exports namespace, it is not a function")},construct(t,e){throw new _("Cannot construct module exports namespace, it is not a constructor")}})})})();oe(o,e.exportsProxy,((t,e)=>A({compartment:t,specifier:e}))(t,r)),Ct(n,r,e)}return Ft(n,r)},yr=(t,e,o)=>{if("string"!=typeof e)throw new _("first argument of evaluate() must be a string");const{transforms:r=[],__evadeHtmlCommentTest__:n=!1,__evadeImportExpressionTest__:a=!1,__rejectSomeDirectEvalExpressions__:i=!0}=o,s=[...r];!0===n&&Tt(s,Co),!0===a&&Tt(s,Uo),!0===i&&Tt(s,Lo);const{safeEvaluate:c}=((t,e)=>{const{sloppyGlobalsMode:o=!1,__moduleShimLexicals__:r}=e;let n;if(void 0!==r||o){let{globalTransforms:e}=t;const{globalObject:a,globalLexicals:i,knownScopeProxies:s}=t;let c=i;void 0!==r&&(e=void 0,c=x(null,N(i)),I(c,N(r))),({safeEvaluate:n}=Bo({globalObject:a,globalLexicals:c,globalTransforms:e,sloppyGlobalsMode:o,knownScopeProxies:s}))}else({safeEvaluate:n}=t);return{safeEvaluate:n}})(t,o);return c(e,{localTransforms:s})},{quote:gr}=no,{quote:mr}=no,dr=(t,e,o,r)=>{const{name:n,moduleRecords:a}=te(t,o),i=Ft(a,r);if(void 0===i)throw new E(`Missing link to module ${mr(r)} from compartment ${mr(n)}`);return wr(t,e,i)};const wr=(t,e,o)=>{const{compartment:r,moduleSpecifier:n,resolvedImports:a,staticModuleRecord:i}=o,{instances:s}=te(t,r);if(Ut(s,n))return Ft(s,n);!function(t,e){no(pe(t),`Static module records must be of type object, got ${mr(t)}, for module ${mr(e)}`);const{imports:o,exports:r,reexports:n=[]}=t;no(ct(o),`Property 'imports' of a static module record must be an array, got ${mr(o)}, for module ${mr(e)}`),no(ct(r),`Property 'exports' of a precompiled module record must be an array, got ${mr(r)}, for module ${mr(e)}`),no(ct(n),`Property 'reexports' of a precompiled module record must be an array if present, got ${mr(n)}, for module ${mr(e)}`)}(i,n);const l=new c;let p;if(function(t){return"string"==typeof t.__syncModuleProgram__}(i))!function(t,e){const{__fixedExportMap__:o,__liveExportMap__:r}=t;no(pe(o),`Property '__fixedExportMap__' of a precompiled module record must be an object, got ${mr(o)}, for module ${mr(e)}`),no(pe(r),`Property '__liveExportMap__' of a precompiled module record must be an object, got ${mr(r)}, for module ${mr(e)}`)}(i,n),p=((t,e,o,r)=>{const{compartment:n,moduleSpecifier:a,staticModuleRecord:i}=o,{reexports:s=[],__syncModuleProgram__:c,__fixedExportMap__:l={},__liveExportMap__:p={}}=i,u=te(t,n),{__shimTransforms__:f}=u,{exportsProxy:y,proxiedExports:g,activate:m}=fr(n,u,e,a),d=x(null),w=x(null),b=x(null),h=x(null),P=x(null),S=x(null);function $(t){const e=x(null);e.default=!1;for(const[o,n]of t){const t=Ft(r,o);t.execute();const{notifiers:a}=t;for(const[t,e]of n){const r=a[t];if(!r)throw v(`The requested module '${o}' does not provide an export named '${t}'`);for(const t of e)r(t)}if(_t(s,o))for(const[t,o]of T(a))void 0===e[t]?e[t]=o:e[t]=!1}for(const[t,o]of T(e))if(!S[t]&&!1!==o){let e;S[t]=o,o((t=>e=t)),d[t]={get:()=>e,set:void 0,enumerable:!0,configurable:!1}}vt(Nt(R(d)),(t=>X(g,t,d[t]))),A(g),m()}vt(T(l),(([t,[e]])=>{let o=P[e];if(!o){let t,r=!0,n=[];const a=()=>{if(r)throw new E(`binding ${gr(e)} not yet initialized`);return t},i=A((o=>{if(!r)throw new _(`Internal: binding ${gr(e)} already initialized`);t=o;const a=n;n=null,r=!1;for(const t of a)t(o);return o}));o={get:a,notify:e=>{e!==i&&(r?Tt(n,e):e(t))}},P[e]=o,b[e]=i}d[t]={get:o.get,set:void 0,enumerable:!0,configurable:!1},S[t]=o.notify})),vt(T(p),(([t,[e,o]])=>{let r=P[e];if(!r){let n,a=!0;const i=[],s=()=>{if(a)throw new E(`binding ${gr(t)} not yet initialized`);return n},c=A((t=>{n=t,a=!1;for(const e of i)e(t)})),l=t=>{if(a)throw new E(`binding ${gr(e)} not yet initialized`);n=t;for(const e of i)e(t)};r={get:s,notify:t=>{t!==c&&(Tt(i,t),a||t(n))}},P[e]=r,o&&X(w,e,{get:s,set:l,enumerable:!0,configurable:!1}),h[e]=c}d[t]={get:r.get,set:void 0,enumerable:!0,configurable:!1},S[t]=r.notify})),S["*"]=t=>{t(g)};let I,k=yr(u,c,{globalObject:n.globalThis,transforms:f,__moduleShimLexicals__:w}),N=!1;return A({notifiers:S,exportsProxy:y,execute:function(){if(k){const t=k;k=null;try{t(A({imports:A($),onceVar:A(b),liveVar:A(h)}))}catch(t){N=!0,I=t}}if(N)throw I}})})(t,e,o,l);else{if(!function(t){return"function"==typeof t.execute}(i))throw new _(`importHook must return a static module record, got ${mr(i)}`);!function(t,e){const{exports:o}=t;no(ct(o),`Property 'exports' of a third-party static module record must be an array, got ${mr(o)}, for module ${mr(e)}`)}(i,n),p=((t,e,o,r,n,a)=>{const{exportsProxy:i,proxiedExports:s,activate:c}=fr(o,te(t,o),r,n),l=x(null);if(e.exports){if(!ct(e.exports)||kt(e.exports,(t=>"string"!=typeof t)))throw new _(`SES third-party static module record "exports" property must be an array of strings for module ${n}`);vt(e.exports,(t=>{let e=s[t];const o=[];X(s,t,{get:()=>e,set:t=>{e=t;for(const e of o)e(t)},enumerable:!0,configurable:!1}),l[t]=t=>{Tt(o,t),t(e)}})),l["*"]=t=>{t(s)}}const p={activated:!1};return A({notifiers:l,exportsProxy:i,execute(){if(rt(p,"errorFromExecute"))throw p.errorFromExecute;if(!p.activated){c(),p.activated=!0;try{e.execute(s,o,a)}catch(t){throw p.errorFromExecute=t,t}}}})})(t,i,r,e,n,a)}Ct(s,n,p);for(const[o,n]of T(a)){const a=dr(t,e,r,n);Ct(l,o,a)}return p},{quote:br}=no,hr=new b,Pr=new b,Sr=t=>{const{importHook:e,resolveHook:o}=te(Pr,t);if("function"!=typeof e||"function"!=typeof o)throw new _("Compartment must be constructed with an importHook and a resolveHook for it to be able to load modules")},Er=function(t={},e={},o={}){throw new _("Compartment.prototype.constructor is not a valid constructor.")},vr=(t,e)=>{const{execute:o,exportsProxy:r}=dr(Pr,hr,t,e);return o(),r},_r={constructor:Er,get globalThis(){return te(Pr,this).globalObject},get name(){return te(Pr,this).name},evaluate(t,e={}){const o=te(Pr,this);return yr(o,t,e)},toString:()=>"[object Compartment]",__isKnownScopeProxy__(t){const{knownScopeProxies:e}=te(Pr,this);return ne(e,t)},module(t){if("string"!=typeof t)throw new _("first argument of module() must be a string");Sr(this);const{exportsProxy:e}=fr(this,te(Pr,this),hr,t);return e},async import(t){if("string"!=typeof t)throw new _("first argument of import() must be a string");return Sr(this),ce(pr(Pr,hr,this,t),(()=>({namespace:vr(this,t)})))},async load(t){if("string"!=typeof t)throw new _("first argument of load() must be a string");return Sr(this),pr(Pr,hr,this,t)},importNow(t){if("string"!=typeof t)throw new _("first argument of importNow() must be a string");return Sr(this),vr(this,t)}};I(Er,{prototype:{value:_r}});const $r=(t,e,o)=>{function r(r={},n={},a={}){if(void 0===new.target)throw new _("Class constructor Compartment cannot be invoked without 'new'");const{name:i="<unknown>",transforms:s=[],__shimTransforms__:l=[],globalLexicals:p={},resolveHook:u,importHook:f,moduleMapHook:y}=a,g=[...s,...l],m=new c,d=new c,w=new c;for(const[t,e]of T(n||{})){if("string"==typeof e)throw new _(`Cannot map module ${br(t)} to ${br(e)} in parent compartment`);if(void 0===te(hr,e))throw E(`Cannot map module ${br(t)} because it has no known compartment in this realm`)}const b=Et(O(p),(t=>!vo(t)));if(b.length)throw new _(`Cannot create compartment with invalid names for global lexicals: ${$t(b,", ")}; these names would not be lexically mentionable`);const P=A({...p}),S={};bo(S);const v=new h,{safeEvaluate:x}=Bo({globalObject:S,globalLexicals:P,globalTransforms:g,sloppyGlobalsMode:!1,knownScopeProxies:v});ho(S,{intrinsics:e,newGlobalPropertyNames:Pe,makeCompartmentConstructor:t,markVirtualizedNativeFunction:o}),Po(S,x,o),$(S,r),oe(Pr,this,{name:i,globalTransforms:g,globalObject:S,knownScopeProxies:v,globalLexicals:P,safeEvaluate:x,resolveHook:u,importHook:f,moduleMap:n,moduleMapHook:y,moduleRecords:m,__shimTransforms__:l,deferredExports:w,instances:d})}return r.prototype=_r,r};function xr(t){return C(t).constructor}const{details:Ir,quote:Tr}=no;let Ar;const kr=(()=>{const t=new h,{harden:e}={harden(e){const o=new d,r=new b;function n(e,n){if(!pe(e))return;const a=typeof e;if("object"!==a&&"function"!==a)throw new _(`Unexpected typeof: ${a}`);ne(t,e)||Dt(o,e)||(Lt(o,e),oe(r,e,n))}function a(t){void 0!==Q(io,t,[])?(t=>{const e=N(t);D(t),vt(at(e),(o=>{const r=e[o],n=+w(o);K(n)||X(t,o,{...r,writable:!1,configurable:!1})}))})(t):A(t);const e=te(r,t)||"unknown",o=N(t);n(C(t),`${e}.__proto__`),vt(at(o),(t=>{const r=`${e}.${w(t)}`,a=o[t];St(a,"value")?n(a.value,`${r}`):(n(a.get,`${r}(get)`),n(a.set,`${r}(set)`))}))}function i(e){re(t,e)}return n(e),Mt(o,a),Mt(o,i),e}};return e})(),Nr=(t={})=>{const{getEnvironmentOption:e,getCapturedEnvironmentOptionNames:o}=nr(r),{errorTaming:n=e("LOCKDOWN_ERROR_TAMING","safe"),errorTrapping:s=e("LOCKDOWN_ERROR_TRAPPING","platform"),regExpTaming:u=e("LOCKDOWN_REGEXP_TAMING","safe"),localeTaming:f=e("LOCKDOWN_LOCALE_TAMING","safe"),consoleTaming:y=e("LOCKDOWN_CONSOLE_TAMING","safe"),overrideTaming:g=e("LOCKDOWN_OVERRIDE_TAMING","moderate"),stackFiltering:b=e("LOCKDOWN_STACK_FILTERING","concise"),domainTaming:h=e("LOCKDOWN_DOMAIN_TAMING","safe"),evalTaming:S=e("LOCKDOWN_EVAL_TAMING","safeEval"),overrideDebug:E=Et(Jt(e("LOCKDOWN_OVERRIDE_DEBUG",""),","),(t=>""!==t)),__allowUnsafeMonkeyPatching__:$=e("__LOCKDOWN_ALLOW_UNSAFE_MONKEY_PATCHING__","safe"),dateTaming:T="safe",mathTaming:A="safe",...U}=t,R=o();R.length>0&&console.warn(`SES Lockdown using options from environment variables ${((t,e)=>{if(0===t.length)return"(none)";if(1===t.length)return t[0];if(2===t.length){const[o,r]=t;return`${o} ${e} ${r}`}return`${$t(At(t,0,-1),", ")}, ${e} ${t[t.length-1]}`})(xt(R,Tr),"and")}`),no("unsafeEval"===S||"safeEval"===S||"noEval"===S,Ir`lockdown(): non supported option evalTaming: ${Tr(S)}`);const M=at(U);no(0===M.length,Ir`lockdown(): non supported option ${Tr(M)}`),no(void 0===Ar,`Already locked down at ${Ar} (SES_ALREADY_LOCKED_DOWN)`,_),Ar=new _("Prior lockdown (SES_ALREADY_LOCKED_DOWN)"),Ar.stack,(()=>{let t=!1;try{t=ye("eval","SES_changed",' eval("SES_changed = true");\n return SES_changed;\n ')(fe,!1),t||delete r.SES_changed}catch(e){t=!0}if(!t)throw new _("SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct-eval (dynamically scoped eval) (SES_DIRECT_EVAL)")})();if(r.Function.prototype.constructor!==r.Function&&"function"==typeof r.harden&&"function"==typeof r.lockdown&&r.Date.prototype.constructor!==r.Date&&"function"==typeof r.Date.now&&F(r.Date.prototype.constructor.now(),NaN))throw new _("Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)");!function(t="safe"){if("safe"!==t&&"unsafe"!==t)throw new _(`unrecognized domainTaming ${t}`);if("unsafe"!==t&&"object"==typeof r.process&&null!==r.process){const t=k(r.process,"domain");if(void 0!==t&&void 0!==t.get)throw new _("SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)");X(r.process,"domain",{value:null,configurable:!1,writable:!1,enumerable:!1})}}(h);const{addIntrinsics:D,completePrototypes:B,finalIntrinsics:z}=Le();D({harden:kr}),D(function(){try{ye.prototype.constructor("return 1")}catch(t){return{}}const t={};function e(e,o,r){let n;try{n=(0,eval)(r)}catch(t){if(t instanceof v)return;throw t}const a=C(n),i=function(){throw new _("Function.prototype.constructor is not a valid constructor.")};I(i,{prototype:{value:a},name:{value:e,writable:!1,enumerable:!1,configurable:!0}}),I(a,{constructor:{value:i}}),i!==ye.prototype.constructor&&G(i,ye.prototype.constructor),t[o]=i}return e("Function","%InertFunction%","(function(){})"),e("GeneratorFunction","%InertGeneratorFunction%","(function*(){})"),e("AsyncFunction","%InertAsyncFunction%","(async function(){})"),e("AsyncGeneratorFunction","%InertAsyncGeneratorFunction%","(async function*(){})"),t}()),D(function(t="safe"){if("safe"!==t&&"unsafe"!==t)throw new _(`unrecognized dateTaming ${t}`);const e=a,o=e.prototype,r={now:()=>NaN},n=({powers:t="none"}={})=>{let r;return r="original"===t?function(...t){return void 0===new.target?Q(e,void 0,t):tt(e,t,new.target)}:function(...t){return void 0===new.target?"Invalid Date":(0===t.length&&(t=[NaN]),tt(e,t,new.target))},I(r,{length:{value:7},prototype:{value:o,writable:!1,enumerable:!1,configurable:!1},parse:{value:a.parse,writable:!0,enumerable:!1,configurable:!0},UTC:{value:a.UTC,writable:!0,enumerable:!1,configurable:!0}}),r},i=n({powers:"original"}),s=n({powers:"none"});return I(i,{now:{value:a.now,writable:!0,enumerable:!1,configurable:!0}}),I(s,{now:{value:r.now,writable:!0,enumerable:!1,configurable:!0}}),I(o,{constructor:{value:s}}),{"%InitialDate%":i,"%SharedDate%":s}}(T)),D(function(t="safe",e="concise"){if("safe"!==t&&"unsafe"!==t)throw new _(`unrecognized errorTaming ${t}`);if("concise"!==e&&"verbose"!==e)throw new _(`unrecognized stackFiltering ${e}`);const o=P.prototype,r="function"==typeof P.captureStackTrace?"v8":"unknown",{captureStackTrace:n}=P,a=(t={})=>{const e=function(...t){let o;return o=void 0===new.target?Q(P,this,t):tt(P,t,new.target),"v8"===r&&Q(n,P,[o,e]),o};return I(e,{length:{value:1},prototype:{value:o,writable:!1,enumerable:!1,configurable:!1}}),e},i=a({powers:"original"}),s=a({powers:"none"});I(o,{constructor:{value:s}});for(const t of Se)G(t,s);I(i,{stackTraceLimit:{get(){if("number"==typeof P.stackTraceLimit)return P.stackTraceLimit},set(t){"number"==typeof t&&("number"!=typeof P.stackTraceLimit||(P.stackTraceLimit=t))},enumerable:!1,configurable:!0}}),I(s,{stackTraceLimit:{get(){},set(t){},enumerable:!1,configurable:!0}});let c=er.getStackString;return"v8"===r&&(c=Xo(P,i,t,e)),{"%InitialGetStackString%":c,"%InitialError%":i,"%SharedError%":s}}(n,b)),D(function(t="safe"){if("safe"!==t&&"unsafe"!==t)throw new _(`unrecognized mathTaming ${t}`);const e=l,o=e,{random:r,...n}=N(e);return{"%InitialMath%":o,"%SharedMath%":x(L,n)}}(A)),D(function(t="safe"){if("safe"!==t&&"unsafe"!==t)throw new _(`unrecognized regExpTaming ${t}`);const e=m.prototype,o=(t={})=>{const o=function(...t){return void 0===new.target?m(...t):tt(m,t,new.target)};return I(o,{length:{value:2},prototype:{value:e,writable:!1,enumerable:!1,configurable:!1},[j]:k(m,j)}),o},r=o(),n=o();return"unsafe"!==t&&delete e.compile,I(e,{constructor:{value:n}}),{"%InitialRegExp%":r,"%SharedRegExp%":n}}(u)),D((()=>{const t=ye.prototype.constructor,e=k(function(){return arguments}(),"callee").get,o=Xt(new w),r=C(o),n=ft[H]&&zt(/./),a=n&&C(n),s=Ot([]),l=C(s),p=C(i),u=Rt(new c),f=C(u),y=Gt(new d),g=C(y),m=C(l),b=xr((function*(){})),h=b.prototype,P=xr((async function*(){})),S=P.prototype,E=S.prototype,v=C(E);return{"%InertFunction%":t,"%ArrayIteratorPrototype%":l,"%InertAsyncFunction%":xr((async function(){})),"%AsyncGenerator%":S,"%InertAsyncGeneratorFunction%":P,"%AsyncGeneratorPrototype%":E,"%AsyncIteratorPrototype%":v,"%Generator%":h,"%InertGeneratorFunction%":b,"%IteratorPrototype%":m,"%MapIteratorPrototype%":f,"%RegExpStringIteratorPrototype%":a,"%SetIteratorPrototype%":g,"%StringIteratorPrototype%":r,"%ThrowTypeError%":e,"%TypedArray%":p,"%InertCompartment%":Er}})()),B();const W=z();let V;"unsafe"!==n&&(V=W["%InitialGetStackString%"]);const q=((t="safe",e="platform",o)=>{if("safe"!==t&&"unsafe"!==t)throw new _(`unrecognized consoleTaming ${t}`);if("unsafe"===t)return{console:qo};let n;n=void 0===o?oo:{...oo,getStackString:o};const a=Vo(qo,n);return"none"!==e&&void 0!==r.process&&r.process.on("uncaughtException",(t=>{a.error(t),"platform"===e||"exit"===e?r.process.exit(r.process.exitCode||-1):"abort"===e&&r.process.abort()})),"none"!==e&&void 0!==r.window&&void 0!==r.window.addEventListener&&r.window.addEventListener("error",(t=>{t.preventDefault(),a.error(t.error),"exit"!==e&&"abort"!==e||(r.window.location.href="about:blank")})),{console:a}})(y,s,V);r.console=q.console,"unsafe"===n&&r.assert===no&&(r.assert=ro(void 0,!0)),function(t,e="safe"){if("safe"!==e&&"unsafe"!==e)throw new _(`unrecognized localeTaming ${e}`);if("unsafe"!==e){X(w.prototype,"localeCompare",{value:mo});for(const e of O(t)){const o=t[e];if(pe(o))for(const t of O(o)){const e=jt(yo,t);if(e){no("function"==typeof o[t],uo`expected ${fo(t)} to be a function`);const r=`${e[1]}${e[2]}`,n=o[r];no("function"==typeof n,uo`function ${fo(r)} not found`),X(o,t,{value:n})}}}X(p.prototype,"toLocaleString",{value:wo})}}(W,f);const K=de();if(so(W,K),bo(r),ho(r,{intrinsics:W,newGlobalPropertyNames:he,makeCompartmentConstructor:$r,markVirtualizedNativeFunction:K}),"noEval"===S)Po(r,ge,K);else if("safeEval"===S){const{safeEvaluate:t}=Bo({globalObject:r});Po(r,t,K)}return function(){return function(t,e,o=[]){const r=new d(o);function n(t,e,o,n){if("value"in n&&n.configurable){const{value:i}=n;function a(){return i}X(a,"originalValue",{value:i,writable:!1,enumerable:!1,configurable:!1});const s=Dt(r,o);X(e,o,{get:a,set:function(r){if(e===this)throw new _(`Cannot assign to read only property '${w(o)}' of '${t}'`);St(this,o)?this[o]=r:(s&&console.error(new _(`Override property ${o}`)),X(this,o,{value:r,writable:!0,enumerable:!0,configurable:!0}))},enumerable:n.enumerable,configurable:n.configurable})}}function a(t,e,o){const r=k(e,o);r&&n(t,e,o,r)}function i(t,e){const o=N(e);o&&vt(at(o),(r=>n(t,e,r,o[r])))}let s;switch(e){case"min":s=co;break;case"moderate":s=lo;break;case"severe":s=po;break;default:throw new _(`unrecognized overrideTaming ${e}`)}!function t(e,o,r){for(const n of O(r)){const s=k(o,n);if(!s||s.get||s.set)continue;const c=`${e}.${w(n)}`,l=r[n];if(!0===l)a(c,o,n);else if("*"===l)i(c,s.value);else{if(!pe(l))throw new _(`Unexpected override enablement plan ${c}`);t(c,s.value,l)}}}("root",t,s)}(W,g,E),"unsafe"!==$&&kr(W),r.harden=kr,!0}};if(function(){return this}())throw new _("SES failed to initialize, sloppy mode (SES_NO_SLOPPY)");const Or=de(),Cr=$r($r,(t=>{const{addIntrinsics:e,finalIntrinsics:o}=Le();return e(Re(t,Pe)),o()})(r),Or);$(r,{lockdown:(t={})=>{Nr(t)()},Compartment:Cr,assert:no})}}]);
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Matterport Showcase SDK
3
+ *
4
+ * © 2022 Matterport, Inc. All rights reserved.
5
+ *
6
+ * Matterport Showcase SDK ("Showcase SDK") must be used according to
7
+ * the Matterport Terms of Service located at https://matterport.com/terms-of-use, the Platform Subscription Agreement ("PSA") available at https://matterport.com/legal/platform-subscription-agreement and the SDK License terms included in the PSA ("SDK License"). Any use of the Showcase SDK requires a current active Matterport account and associated developer key.
8
+ *
9
+ * -------------------------------------------------------------------------------
10
+ *
11
+ * Redistribution and use in source and binary forms, without modification, is permitted in accordance with the SDK License provided that the following conditions are met:
12
+ *
13
+ * * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
14
+ * * Neither the name of Matterport nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
15
+ *
16
+ * THE SHOWCASE SDK IS PROVIDED BY MATTERPORT AS THE COPYRIGHT HOLDER AND, IF APPLICABLE, ITS CONTRIBUTORS "AS IS" AND WITHOUT WARRANTIES OF ANY KIND. TO THE FULLEST EXTENT PERMISSIBLE PURSUANT TO APPLICABLE LAW, MATTERPORT DISCLAIMS, ON BEHALF OF ITSELF AND ITS AFFILIATES AND LICENSORS, ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. MATTERPORT DOES NOT WARRANT THAT THE AVAILABILITY OF THE SHOWCASE SDK WILL BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SHOWCASE SDK WILL BE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. MATTERPORT DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES REGARDING THE USE OR THE RESULTS OF THE USE OF THE SHOWCASE SDK OR FUNCTIONS ON THE SHOWCASE SDK IN TERMS OF THEIR CORRECTNESS, ACCURACY, RELIABILITY, RESULTS TO BE ACHIEVED, OR OTHERWISE. APPLICABLE LAW MAY NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SOME OR ALL OF THE FOREGOING DISCLAIMERS MAY NOT APPLY TO YOU.
17
+ *
18
+ * TO THE EXTENT PERMITTED UNDER APPLICABLE LAW UNDER NO CIRCUMSTANCES, INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE, SHALL MATTERPORT OR ITS AFFILIATES OR LICENSORS BE LIABLE FOR ANY CONSEQUENTIAL, EXEMPLARY, PUNITIVE, SPECIAL, INCIDENTAL OR OTHER INDIRECT DAMAGES, EVEN IF MATTERPORT OR A MATTERPORT AUTHORIZED REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. APPLICABLE LAW MAY NOT ALLOW SOME OR ALL OF THIS LIMITATION OF LIABILITY, SO IT MAY NOT APPLY TO YOU.
19
+ *
20
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 521.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkmp_webgl=self.webpackChunkmp_webgl||[]).push([[521],{1158:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var i=n(53613),a=n(69170),r=n(53203),l=n(14564),s=n(64210),o=n(26544);const u=async function(e){const t=await e.getModuleBySymbol(a.y.SETTINGS),n=t.addPanel(i.s.TITLE,i.s.HOTKEYS,{width:350});await t.loadPromise.then((()=>{const i="meshtextures";[{panel:n,header:i,setting:"disableTextureStreamBelowLod",initialValue:()=>-1,onChange:e=>{e>-1&&(0,o.qT)().limitStreamingBelow(e)},urlParam:!0,rangePrecision:0,range:[-1,7]},{panel:n,header:i,setting:"textureStreamPause",initialValue:()=>r.ZP.debugPauseTexStream,onChange:e=>{r.ZP.debugPauseTexStream=e},urlParam:!0},{panel:n,header:i,setting:"textureStreamRaycastHits",initialValue:()=>r.ZP.debugLOD,onChange:e=>{r.ZP.debugLOD=e,e||(0,s.d)()},urlParam:!0},{panel:n,header:i,setting:"debugRTTQuality",initialValue:()=>r.ZP.debugRttQuality,onChange:t=>{r.ZP.debugRttQuality=t,t||e.commandBinder.issueCommand(new l.u({color:null},{style:l.u.selectBy.all}))},urlParam:!0},{panel:n,header:i,setting:"debugRTTScores",initialValue:()=>r.ZP.debugRttScores,onChange:t=>{r.ZP.debugRttScores=t,t||e.commandBinder.issueCommand(new l.u({color:null},{style:l.u.selectBy.all}))},urlParam:!0}].forEach((e=>t.registerMenuEntry(e)))}))}},50447:(e,t,n)=>{n.r(t),n.d(t,{default:()=>C,tiledMeshDebugMenu:()=>M});var i=n(97998),a=n(69170),r=n(39880),l=n(92558),s=n(69984),o=n(53613),u=n(51524),d=n(53203),c=n(947),g=n(81396),h=n(26544),m=n(35895);function y(e,t=16){let n;const i=(0,m.k1)((()=>n=window.setInterval((()=>e()),t)),(()=>{n&&clearInterval(n)}));return i.cancel(),i}var p=n(59279);const x=new i.Z("tiled-mesh"),T={hideMenu:"1"!==(0,p.eY)("dmenu","0"),debug:"1"===(0,p.eY)("debugTiles","0"),statsTiles:!1,statsTileset:!0,statsTextures:!1,statsTextureStream:!1};let b=null;function v(e,t,n){b||(b=document.createElement("div"),b.style.color="#FFFFFF",b.style.fontFamily="Roboto",b.style.fontWeight="300",b.style.fontSize="12px",b.style.position="absolute",b.style.top="50px",b.style.width="500px",b.style.pointerEvents="none",b.style.whiteSpace="pre",b.style.zIndex="99999",b.style.textShadow="0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black",document.body.appendChild(b));let i=T.statsTileset?function(e){var t,n,i;const a=e.tilesRenderer,r=Object.values(null!==(t=a.tileSets)&&void 0!==t?t:[])[0];return`\ntileset: version: ${null==r?void 0:r.asset.tilesetVersion}, depth: ${null===(n=null==r?void 0:r.asset.extras)||void 0===n?void 0:n.depth}, preset: ${null===(i=null==r?void 0:r.asset.extras)||void 0===i?void 0:i.preset}\n`}(e):"";i+=T.statsTiles?function(e,t){const n=e.tilesRenderer,i=n.visibleTiles,a={};i.forEach((e=>{var t;const n=`lod${null===(t=e.extras)||void 0===t?void 0:t.level}`,i=a[n]||0;a[n]=i+1}));const r=t.threeRenderer.info,{stats:l,downloadQueue:s,parseQueue:o,lruCache:u}=n,{active:d,downloading:c,inFrustum:g,parsing:h,used:m,visible:y}=l;return`\nthree:\n drawCalls: ${r.render.calls}\n geometries: ${r.memory.geometries}\n textures: ${r.memory.textures}\n triangles: ${r.render.triangles}\n memory allocated (megs): ${Math.floor(t.estimatedGPUMemoryAllocated()/2**20)}\ntiles:\n tiles in frustum: ${g}\n visible: ${y}`+Object.keys(a).sort().map((e=>`\n ${e} tiles: ${a[e]||0}`)).join()+`\n downloading gltf: ${c}\n parsing gltf: ${h}\n active: ${d}\n used: ${m}\n queues:\n download: ${s.currJobs} running, ${s.items.length} waiting\n parse: ${o.currJobs} running, ${o.items.length} waiting\n lruCache: ${u.itemSet.size}\n`}(e,n):"",i+=T.statsTextureStream?function(e){const t="downloaded:\n"+Object.keys(e.totalTextures).map((t=>` ${t}: ${e.totalTextures[t]} `)).join("\n")+"\n";return`textureStreaming:\n downloadingTiles: ${e.downloadingTiles} / ${e.totalTiles}\n downloadingTextures: ${e.loadingTextures}\n`+t}(t):"",b.textContent=i}let S=null;async function M(e){if(!T.debug)return;const t=await e.getModuleBySymbol(a.y.SETTINGS),n=await e.getModuleBySymbol(a.y.INPUT),i=await e.getModuleBySymbol(a.y.WEBGL_RENDERER),c=i.getScene(),g=await e.getModuleBySymbol(a.y.MODEL_MESH),m=g.modelTextureLoader,p=g.modelMesh.tileLoader,b=t.tryGetProperty(d.iT,!1);function M(){S||(S=setInterval((()=>v(p,m,i)),150))}const f=t.addPanel(o.s.TITLE,o.s.HOTKEYS,{width:350}),C={viz:"visualize",stats:"stats",tile:"tileset",log:"log"},O=function(e,t,n,i,a){const r=w(n,a,((e,t)=>e.setWireframe(t))),o=function(e,t){const n={scale:1},i=(t,i)=>{if(!t)return;const a=e.container.tilesByChunkId.get(t.id),r=(null==a?void 0:a.__error)||1e-4,l=t.lod!==u.t.maxLOD&&r>u.t.errorTarget?1:.5,s=Math.max(0,Math.min(1,1-n.scale/r)),o=i?P(t.lod,s,l):null;t.setColorOverlay(o)},a=w(e,t,i),r=y((()=>a.colorize(e.container.chunks)));return{toggle:e=>{e?r.renew():r.cancel(),a.toggle(e)},colorize:a.colorize,subscription:r,config:n}}(n,a),d=w(n,a,((e,t)=>{e.setColorOverlay(t?P(e.lod,1,.5):null)})),c=w(n,a,((e,t)=>{e.setColorOverlay(t?(0,s.G1)(.5,e.id||0):null)})),g=w(n,a,((e,t)=>{var i;const a=n.container.tilesByChunkId.get(e.id);e.setColorOverlay(t?(0,s.G1)(.5,(0,l.un)((null===(i=null==a?void 0:a.content)||void 0===i?void 0:i.uri)||"missing")||0):null)})),m=w(n,a,((e,t)=>{e.setColorOverlay(t?(0,s.G1)(.5,(e.meshGroup<<16)+e.meshSubgroup||0):null)})),p=w(n,a,((e,t)=>{e.setColorOverlay(t?(0,s.G1)(.5,e.meshSubgroup||0):null)})),T=w(n,a,((e,t)=>{e.setColorOverlay(t?(0,s.G1)(.5,e.meshGroup||0):null)})),b=w(n,a,((e,t)=>{e.setColorOverlay(t?(0,s.G1)(.5,(0,l.un)(e.textureName)||0):null)})),v=w(n,a,((e,t)=>{const i=n.container.tilesByChunkId.get(e.id);e.setColorOverlay(t?(0,s.G1)(.5,(null==i?void 0:i.geometricError)||0):null)})),S=i.slots,M=(0,h.qT)(),f=w(n,a,((e,t)=>{const n=S.find((t=>t.textureName===e.textureName));if(n){const i=n.loading?1:n.quality>M.min(e.lod)?.7:.3,a=M.maxTexelSize/M.get(n.quality).texelSize;e.setColorOverlay(t?P(e.lod,a,i):null)}})),C=y((()=>f.colorize(n.container.chunks)));let O="none";const V={none:void 0,byError:o,byGeometricError:v,byTile:g,bySubgroup:p,byMeshgroup:T,bySubAndMeshgroup:m,byTexture:b,byStreamedTextures:{subscription:C,toggle:e=>{e?C.renew():C.cancel(),e&&x.info("colorize=byStreamedTextures solid color: loading, dark color: streamed, light color: basis"),f.toggle(e)}},byChunk:c,byLod:d};return[{panel:e,header:t.viz,setting:"disableTileUpdates",initialValue:()=>u.t.disableTileUpdates,onChange:e=>{u.t.disableTileUpdates=e},urlParam:!0},{panel:e,header:t.viz,setting:"wireframe",initialValue:()=>!1,onChange:r.toggle,urlParam:!0},{panel:e,header:t.viz,setting:"colorize",initialValue:()=>"none",onChange:e=>{var t,n;null===(t=V[O])||void 0===t||t.toggle(!1),null===(n=V[e])||void 0===n||n.toggle(!0),O=e},options:Object.keys(V),urlParam:!0},{panel:e,header:t.viz,setting:"colorizeByErrorScale",initialValue:()=>1,onChange:e=>{o.config.scale=e},range:[0,6],rangePrecision:3,urlParam:!0}]}(f,C,p,m,e),V=[{panel:f,header:C.stats,setting:"tilesetStatsOverlay",initialValue:()=>T.statsTileset,onChange:e=>{T.statsTileset=e,e&&M()},urlParam:!0},{panel:f,header:C.stats,setting:"tileStatsOverlay",initialValue:()=>T.statsTiles,onChange:e=>{T.statsTiles=e,e&&M()},urlParam:!0},{panel:f,header:C.stats,setting:"textureStatsOverlay",initialValue:()=>T.statsTextures,onChange:e=>{T.statsTextures=e,e&&M()},urlParam:!0},{panel:f,header:C.stats,setting:"textureStreamingOverlay",initialValue:()=>T.statsTextureStream,onChange:e=>{T.statsTextureStream=e,e&&M()},urlParam:!0}],E=[{panel:f,header:C.log,buttonName:"Log: App State",callback:()=>{x.warn(g),x.warn(n),x.warn(c),x.warn(t)}}];b&&(T.hideMenu||await(0,r.gw)(1e3).then((()=>{t.getSettingsGui().loadGuiPackage().then((()=>{t.getSettingsGui().toggle(t.getMainPanelId()),t.getSettingsGui().toggle(t.getMainPanelId())}))})),await(0,r.gw)(16),O.forEach((e=>t.registerMenuEntry(e))),await(0,r.gw)(16),function(e,t){return[{panel:e,header:t.tile,setting:"maxLOD",initialValue:()=>u.t.maxLOD,onChange:e=>{u.t.maxLOD=e},range:[0,4],rangePrecision:0,urlParam:!0},{panel:e,header:t.tile,setting:"minLOD",initialValue:()=>u.t.minLOD,onChange:e=>{u.t.minLOD=e},range:[0,4],rangePrecision:0,urlParam:!0},{panel:e,header:t.tile,setting:"errorTarget",initialValue:()=>u.t.errorTarget,onChange:e=>{u.t.errorTarget=e},range:[0,20],rangePrecision:1,urlParam:!0},{panel:e,header:t.tile,setting:"displayActiveTiles",initialValue:()=>u.t.displayActiveTiles,onChange:e=>{u.t.displayActiveTiles=e},urlParam:!0},{panel:e,header:t.tile,setting:"loadSiblings",initialValue:()=>u.t.loadSiblings,onChange:e=>{u.t.loadSiblings=e},urlParam:!0},{panel:e,header:t.tile,setting:"autoDisableRendererCulling",initialValue:()=>u.t.autoDisableRendererCulling,onChange:e=>{u.t.autoDisableRendererCulling=e},urlParam:!0},{panel:e,header:t.tile,setting:"stopAtEmptyTiles",initialValue:()=>u.t.stopAtEmptyTiles,onChange:e=>{u.t.stopAtEmptyTiles=e},urlParam:!0},{panel:e,header:t.tile,setting:"disableTileUpdates",initialValue:()=>u.t.disableTileUpdates,onChange:e=>{u.t.disableTileUpdates=e},urlParam:!0},{panel:e,header:t.tile,setting:"disposeModel",initialValue:()=>u.t.disposeModel,onChange:e=>{u.t.disposeModel=e},urlParam:!0},{panel:e,header:t.tile,setting:"limitMemoryUsage",initialValue:()=>u.t.limitMemoryUsage,onChange:e=>{u.t.limitMemoryUsage=e},urlParam:!0},{panel:e,header:t.tile,setting:"allocatedMegsBeforeLimitingLod",initialValue:()=>u.t.allocatedMegsBeforeLimitingLod,onChange:e=>{u.t.allocatedMegsBeforeLimitingLod=e},urlParam:!0,range:[100,1e3]},{panel:e,header:t.tile,setting:"lruMinExtraTiles",initialValue:()=>u.t.lruMinExtraTiles,onChange:e=>{u.t.lruMinExtraTiles=e},urlParam:!0,range:[0,2e3]},{panel:e,header:t.tile,setting:"lruMaxTiles",initialValue:()=>u.t.lruMaxTiles,onChange:e=>{u.t.lruMaxTiles=e},urlParam:!0,range:[0,2e3]},{panel:e,header:t.tile,setting:"lruUnloadPercent",initialValue:()=>u.t.lruUnloadPercent,onChange:e=>{u.t.lruUnloadPercent=e},urlParam:!0,range:[0,1]},{panel:e,header:"Priority",setting:"errorMultiplierRaycastOcclusion",initialValue:()=>u.t.errorMultiplierRaycastOcclusion,onChange:e=>{u.t.errorMultiplierRaycastOcclusion=e},urlParam:!0,range:[.001,1],rangePrecision:2},{panel:e,header:"Priority",setting:"errorMultiplierHiddenFloors",initialValue:()=>u.t.errorMultiplierHiddenFloors,onChange:e=>{u.t.errorMultiplierHiddenFloors=e},urlParam:!0,range:[.001,1],rangePrecision:2}]}(f,C).forEach((e=>t.registerMenuEntry(e))),V.forEach((e=>t.registerMenuEntry(e))),E.forEach((e=>t.registerMenuButton(e))))}function w(e,t,n){let i=!1;const a=e=>{t.after(c.A.End).then((()=>{e.forEach((e=>{e&&n(e,i)}))}))},r=e.notifyOnChunksLoaded(a);r.cancel();return{toggle:t=>{t?r.renew():r.cancel(),t!==i&&(i=t,a([...e.container.chunks]))},colorize:a,subscription:r}}const f={0:new g.Vector4(1,0,0,1),1:new g.Vector4(0,1,0,1),2:new g.Vector4(0,0,1,1),3:new g.Vector4(1,1,1,1),4:new g.Vector4(1,0,1,1),5:new g.Vector4(0,1,1,1),6:new g.Vector4(1,1,0,1),7:new g.Vector4(0,0,0,1)};function P(e,t,n){var i,a;const r=null!==(a=null===(i=f[e])||void 0===i?void 0:i.clone())&&void 0!==a?a:new g.Vector4;return r.multiplyScalar(t),r.setW(n),r}const C=M},53613:(e,t,n)=>{n.d(t,{s:()=>i});const i={TITLE:"streamed-mesh (T)",HOTKEYS:[n(32597).R.T]}},14564:(e,t,n)=>{n.d(t,{u:()=>l});var i,a,r=n(19663);!function(e){e.all="all",e.byMeshGroup="byMeshGroup",e.byMeshSubGroup="byMeshSubGroup"}(i||(i={})),function(e){e.explicit="explicit",e.random="random"}(a||(a={}));class l extends r.m{constructor(e,t){super(),this.id="SET_MESH_OVERLAY_COLOR",this.payload={selectBy:(null==t?void 0:t.style)||i.all,colorStyle:(null==e?void 0:e.style)||a.explicit,color:(null==e?void 0:e.color)||null,alpha:(null==e?void 0:e.alpha)||.5,index:null==t?void 0:t.index}}}l.selectBy=i,l.colorBy=a,l.COLOR_DIM={x:0,y:0,z:0,w:.3}},21270:(e,t,n)=>{var i;n.d(t,{V:()=>i}),function(e){e[e.Min=0]="Min",e[e.Standard=1]="Standard",e[e.High=2]="High",e[e.Detail=3]="Detail"}(i||(i={}))},51524:(e,t,n)=>{n.d(t,{t:()=>s});var i=n(59279),a=n(53261),r=n(31362),l=n(21270);const s={urlTemplateToken:"<file>",initialMaxLOD:l.V.Min,nonMeshMaxLOD:l.V.Standard,maxLOD:l.V.High,minLOD:l.V.Min,loadSiblings:!0,displayActiveTiles:!1,autoDisableRendererCulling:!0,optimizeRaycast:!1,stopAtEmptyTiles:!1,errorTarget:Number((0,i.eY)("errorTarget",(0,r.tq)()?6:4)),disableTileUpdates:!1,errorMultiplierRaycastOcclusion:.1,errorMultiplierHiddenFloors:.01,disposeModel:!1,limitMemoryUsage:(0,r.tq)(),allocatedMegsBeforeLimitingLod:350,lruMinExtraTiles:(0,r.tq)()?0:100,lruMaxTiles:800,lruUnloadPercent:.05,tileAssetRequestPriority:a.ru.MEDIUM,downloadQueueConcurrency:8,parseQueueConcurrency:10,snappingMaxLOD:l.V.Standard}},26544:(e,t,n)=>{n.d(t,{O7:()=>y,qT:()=>h});var i=n(69984),a=n(81396),r=n(21270),l=n(99935),s=n(2569),o=n(53203);class u{constructor(){this._configs={},this._orders={},this._maxLod=-1/0,this._maxTs=1/0,this._streamAbove=0,this.resetOnNextRegisterOnce=!1,this.dynamic=!1}static encodeKey(e,t){return e-t}get maxLod(){return this._maxLod}get maxTexelSize(){return this._maxTs}limitStreamingBelow(e){this._streamAbove=e}order(e,t=!1){return t&&!this._orders[e]&&(this._orders[e]=[]),this._orders[e]}reset(){this._configs={},this._orders={},this.dynamic=!1,this._maxTs=1/0,this._maxLod=-1/0}get isDynamic(){return this.dynamic}valid(e){return e in this._configs}get(e){if(!this.valid(e))throw new Error("invalid quality level "+e);return this._configs[e]}max(e){return e<this._streamAbove?this.min(e):this.order(e)[this.order(e).length-1]}min(e){return this.order(e)[0]}fromPixelSize(e,t){const n=this.order(e),i=this.min(e);let a=this.max(e);for(let e=n.length-1;e>=0;e--)t>this.get(n[e]).texelSize&&n.indexOf(a)>n.indexOf(i)&&(a=n[e]);return a}moreDetailed(e,t){let n=this.min(e);const i=this.max(e),a=this.order(e),r=a.indexOf(t);return r+1===a.length?i:(-1!==r&&(n=Math.min(i,a[r+1%a.length])),n)}lessDetailed(e,t){const n=this.order(e),i=n.indexOf(t);let a=t;return-1!==i&&(a=n[Math.max(0,i-1)]),a}minSize(){return Object.values(this._configs).sort(d)[0]}maxSize(){const e=Object.values(this._configs).sort(d);return e[e.length-1]}nearestQuality(e,t){const n=this.order(e),i=this.max(e),a=(0,s.et)(t,1,4,0,n.length-1);return Math.min(i,n[Math.round(a)])}registerQualities(e,t,n,i,a="max"){this.dynamic=!0,this.resetOnNextRegisterOnce&&(this.reset(),this.resetOnNextRegisterOnce=!1);const r=this._configs,l=this.order(e,!0),s=t*i;for(let i=t,d=n;i>=s;i*=.5,d*=2){const n=u.encodeKey(e,d),s=r[n];(!s||s&&s.assetSize<t)&&(this._maxTs=Math.min(this._maxTs,d),this._maxLod=Math.max(this._maxLod,e),r[n]={key:n,lod:e,texelSize:d,textureSize:i,assetSize:t,assetType:a,tileSize:Math.min(i,o.ZP.textureTileSize)}),-1===l.indexOf(n)&&l.push(n)}l.sort(((e,t)=>r[t].texelSize-r[e].texelSize))}}function d(e,t){return e.textureSize>t.textureSize?1:-1}const c=new u;var g;(g=c).reset(),g.registerQualities(r.V.Standard,512,.048,.5,"low"),g.registerQualities(r.V.Standard,2048,.012,.5,"high"),g.dynamic=!1,g.resetOnNextRegisterOnce=!0;const h=()=>c;const m={[l.S.LOW]:new a.Vector4(1,0,0,.5),[l.S.MEDIUM]:new a.Vector4(1,1,0,.5),[l.S.HIGH]:new a.Vector4(0,1,0,.5),[l.S.ULTRA]:new a.Vector4(0,1,1,.5)};function y(e){return e in m?m[e]:(0,i.G1)(.5,e)}},64210:(e,t,n)=>{n.d(t,{d:()=>u,e:()=>o});var i=n(81396);const a=n(53203).ZP.sightingMaxAge,r=new i.Color;let l,s=-1;const o=(e,t)=>{l||(l=new i.InstancedMesh(new i.SphereGeometry(.005,8,4),new i.MeshBasicMaterial,a),d(l));const n=new i.Matrix4;return({point:i,distance:o})=>{n.makeScale(o,o,o).setPosition(i),l.setMatrixAt(++s%a,n),l.instanceMatrix.needsUpdate=!0;for(let t=a;t--;)l.setColorAt((s-t+a)%a,r.set(e).multiplyScalar(1-t/a));l.instanceColor&&(l.instanceColor.needsUpdate=!0),l.parent||t.scene.add(l)}},u=()=>{var e;l&&(null===(e=l.parent)||void 0===e||e.remove(l),d(l))};function d(e){const t=(new i.Matrix4).makeScale(0,0,0);for(let n=0;n<a;n++)e.setMatrixAt(n,t)}},69984:(e,t,n)=>{n.d(t,{D5:()=>u,Ex:()=>d,G1:()=>s,rn:()=>o});var i=n(81396),a=n(39880);const r=()=>Math.random(),l={},s=(e,t=r())=>(l[t]||(l[t]=new i.Vector4(r(),r(),r(),e)),l[t]),o=()=>new i.Color(r(),r(),r()),u=e=>e instanceof Object&&"r"in e&&"g"in e&&"b"in e;function d(e){return`#${(0,a.Q_)(255*e.r,2,"0",16)}${(0,a.Q_)(255*e.g,2,"0",16)}${(0,a.Q_)(255*e.b,2,"0",16)}`}}}]);
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Matterport Showcase SDK
3
+ *
4
+ * © 2022 Matterport, Inc. All rights reserved.
5
+ *
6
+ * Matterport Showcase SDK ("Showcase SDK") must be used according to
7
+ * the Matterport Terms of Service located at https://matterport.com/terms-of-use, the Platform Subscription Agreement ("PSA") available at https://matterport.com/legal/platform-subscription-agreement and the SDK License terms included in the PSA ("SDK License"). Any use of the Showcase SDK requires a current active Matterport account and associated developer key.
8
+ *
9
+ * -------------------------------------------------------------------------------
10
+ *
11
+ * Redistribution and use in source and binary forms, without modification, is permitted in accordance with the SDK License provided that the following conditions are met:
12
+ *
13
+ * * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
14
+ * * Neither the name of Matterport nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
15
+ *
16
+ * THE SHOWCASE SDK IS PROVIDED BY MATTERPORT AS THE COPYRIGHT HOLDER AND, IF APPLICABLE, ITS CONTRIBUTORS "AS IS" AND WITHOUT WARRANTIES OF ANY KIND. TO THE FULLEST EXTENT PERMISSIBLE PURSUANT TO APPLICABLE LAW, MATTERPORT DISCLAIMS, ON BEHALF OF ITSELF AND ITS AFFILIATES AND LICENSORS, ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. MATTERPORT DOES NOT WARRANT THAT THE AVAILABILITY OF THE SHOWCASE SDK WILL BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SHOWCASE SDK WILL BE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. MATTERPORT DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES REGARDING THE USE OR THE RESULTS OF THE USE OF THE SHOWCASE SDK OR FUNCTIONS ON THE SHOWCASE SDK IN TERMS OF THEIR CORRECTNESS, ACCURACY, RELIABILITY, RESULTS TO BE ACHIEVED, OR OTHERWISE. APPLICABLE LAW MAY NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SOME OR ALL OF THE FOREGOING DISCLAIMERS MAY NOT APPLY TO YOU.
17
+ *
18
+ * TO THE EXTENT PERMITTED UNDER APPLICABLE LAW UNDER NO CIRCUMSTANCES, INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE, SHALL MATTERPORT OR ITS AFFILIATES OR LICENSORS BE LIABLE FOR ANY CONSEQUENTIAL, EXEMPLARY, PUNITIVE, SPECIAL, INCIDENTAL OR OTHER INDIRECT DAMAGES, EVEN IF MATTERPORT OR A MATTERPORT AUTHORIZED REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. APPLICABLE LAW MAY NOT ALLOW SOME OR ALL OF THIS LIMITATION OF LIABILITY, SO IT MAY NOT APPLY TO YOU.
19
+ *
20
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 525.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkmp_webgl=self.webpackChunkmp_webgl||[]).push([[525],{11279:(e,t,s)=>{s.r(t),s.d(t,{EffectComposer:()=>n,FullScreenQuad:()=>c,Pass:()=>o});var r=s(81396),i=s(1154),a=s(86858),h=s(94604);class n{constructor(e,t){if(this.renderer=e,void 0===t){const s=e.getSize(new r.Vector2);this._pixelRatio=e.getPixelRatio(),this._width=s.width,this._height=s.height,(t=new r.WebGLRenderTarget(this._width*this._pixelRatio,this._height*this._pixelRatio)).texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],void 0===i.CopyShader&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===a.ShaderPass&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new a.ShaderPass(i.CopyShader),this.clock=new r.Clock}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t<this.passes.length;t++)if(this.passes[t].enabled)return!1;return!0}render(e){void 0===e&&(e=this.clock.getDelta());const t=this.renderer.getRenderTarget();let s=!1;for(let t=0,r=this.passes.length;t<r;t++){const r=this.passes[t];if(!1!==r.enabled){if(r.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(t),r.render(this.renderer,this.writeBuffer,this.readBuffer,e,s),r.needsSwap){if(s){const t=this.renderer.getContext(),s=this.renderer.state.buffers.stencil;s.setFunc(t.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,e),s.setFunc(t.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==h.MaskPass&&(r instanceof h.MaskPass?s=!0:r instanceof h.ClearMaskPass&&(s=!1))}}this.renderer.setRenderTarget(t)}reset(e){if(void 0===e){const t=this.renderer.getSize(new r.Vector2);this._pixelRatio=this.renderer.getPixelRatio(),this._width=t.width,this._height=t.height,(e=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=e,this.renderTarget2=e.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(e,t){this._width=e,this._height=t;const s=this._width*this._pixelRatio,r=this._height*this._pixelRatio;this.renderTarget1.setSize(s,r),this.renderTarget2.setSize(s,r);for(let e=0;e<this.passes.length;e++)this.passes[e].setSize(s,r)}setPixelRatio(e){this._pixelRatio=e,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}class o{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const l=new r.OrthographicCamera(-1,1,1,-1,0,1),d=new r.BufferGeometry;d.setAttribute("position",new r.Float32BufferAttribute([-1,3,0,-1,-1,0,3,-1,0],3)),d.setAttribute("uv",new r.Float32BufferAttribute([0,2,0,0,2,0],2));class c{constructor(e){this._mesh=new r.Mesh(d,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,l)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}},94604:(e,t,s)=>{s.r(t),s.d(t,{ClearMaskPass:()=>a,MaskPass:()=>i});var r=s(78304);class i extends r.Pass{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,s){const r=e.getContext(),i=e.state;let a,h;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0),this.inverse?(a=0,h=1):(a=1,h=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,a,4294967295),i.buffers.stencil.setClear(h),i.buffers.stencil.setLocked(!0),e.setRenderTarget(s),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}}class a extends r.Pass{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}},78304:(e,t,s)=>{s.r(t),s.d(t,{FullScreenQuad:()=>n,Pass:()=>i});var r=s(81396);class i{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}const a=new r.OrthographicCamera(-1,1,1,-1,0,1),h=new r.BufferGeometry;h.setAttribute("position",new r.Float32BufferAttribute([-1,3,0,-1,-1,0,3,-1,0],3)),h.setAttribute("uv",new r.Float32BufferAttribute([0,2,0,0,2,0],2));class n{constructor(e){this._mesh=new r.Mesh(h,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,a)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}},54458:(e,t,s)=>{s.r(t),s.d(t,{RenderPass:()=>a});var r=s(81396),i=s(78304);class a extends i.Pass{constructor(e,t,s,i,a){super(),this.scene=e,this.camera=t,this.overrideMaterial=s,this.clearColor=i,this.clearAlpha=void 0!==a?a:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new r.Color}render(e,t,s){const r=e.autoClear;let i,a;e.autoClear=!1,void 0!==this.overrideMaterial&&(a=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(e.getClearColor(this._oldClearColor),i=e.getClearAlpha(),e.setClearColor(this.clearColor,this.clearAlpha)),this.clearDepth&&e.clearDepth(),e.setRenderTarget(this.renderToScreen?null:s),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),e.render(this.scene,this.camera),this.clearColor&&e.setClearColor(this._oldClearColor,i),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=a),e.autoClear=r}}},86858:(e,t,s)=>{s.r(t),s.d(t,{ShaderPass:()=>a});var r=s(81396),i=s(78304);class a extends i.Pass{constructor(e,t){super(),this.textureID=void 0!==t?t:"tDiffuse",e instanceof r.ShaderMaterial?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=r.UniformsUtils.clone(e.uniforms),this.material=new r.ShaderMaterial({defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new i.FullScreenQuad(this.material)}render(e,t,s){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=s.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}},1154:(e,t,s)=>{s.r(t),s.d(t,{CopyShader:()=>r});const r={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor.a *= opacity;\n\n\n\t\t}"}}}]);
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Matterport Showcase SDK
3
+ *
4
+ * © 2022 Matterport, Inc. All rights reserved.
5
+ *
6
+ * Matterport Showcase SDK ("Showcase SDK") must be used according to
7
+ * the Matterport Terms of Service located at https://matterport.com/terms-of-use, the Platform Subscription Agreement ("PSA") available at https://matterport.com/legal/platform-subscription-agreement and the SDK License terms included in the PSA ("SDK License"). Any use of the Showcase SDK requires a current active Matterport account and associated developer key.
8
+ *
9
+ * -------------------------------------------------------------------------------
10
+ *
11
+ * Redistribution and use in source and binary forms, without modification, is permitted in accordance with the SDK License provided that the following conditions are met:
12
+ *
13
+ * * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
14
+ * * Neither the name of Matterport nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
15
+ *
16
+ * THE SHOWCASE SDK IS PROVIDED BY MATTERPORT AS THE COPYRIGHT HOLDER AND, IF APPLICABLE, ITS CONTRIBUTORS "AS IS" AND WITHOUT WARRANTIES OF ANY KIND. TO THE FULLEST EXTENT PERMISSIBLE PURSUANT TO APPLICABLE LAW, MATTERPORT DISCLAIMS, ON BEHALF OF ITSELF AND ITS AFFILIATES AND LICENSORS, ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. MATTERPORT DOES NOT WARRANT THAT THE AVAILABILITY OF THE SHOWCASE SDK WILL BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SHOWCASE SDK WILL BE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. MATTERPORT DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES REGARDING THE USE OR THE RESULTS OF THE USE OF THE SHOWCASE SDK OR FUNCTIONS ON THE SHOWCASE SDK IN TERMS OF THEIR CORRECTNESS, ACCURACY, RELIABILITY, RESULTS TO BE ACHIEVED, OR OTHERWISE. APPLICABLE LAW MAY NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SOME OR ALL OF THE FOREGOING DISCLAIMERS MAY NOT APPLY TO YOU.
17
+ *
18
+ * TO THE EXTENT PERMITTED UNDER APPLICABLE LAW UNDER NO CIRCUMSTANCES, INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE, SHALL MATTERPORT OR ITS AFFILIATES OR LICENSORS BE LIABLE FOR ANY CONSEQUENTIAL, EXEMPLARY, PUNITIVE, SPECIAL, INCIDENTAL OR OTHER INDIRECT DAMAGES, EVEN IF MATTERPORT OR A MATTERPORT AUTHORIZED REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. APPLICABLE LAW MAY NOT ALLOW SOME OR ALL OF THIS LIMITATION OF LIABILITY, SO IT MAY NOT APPLY TO YOU.
19
+ *
20
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 607.js.LICENSE.txt */
2
+ (self.webpackChunkmp_webgl=self.webpackChunkmp_webgl||[]).push([[607],{34515:t=>{var n=Object.prototype.toString;t.exports=function(t){return t.BYTES_PER_ELEMENT&&"[object ArrayBuffer]"===n.call(t.buffer)||Array.isArray(t)}},14176:t=>{t.exports=function(t,n){return"number"==typeof t?t:"number"==typeof n?n:0}},2823:t=>{t.exports=function(t){switch(t){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}},48738:t=>{function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},73134:(t,n,r)=>{var e=r(12739),i=r(47529),a=r(14176),o=["x","e","a","o","n","s","r","c","u","m","v","w","z"],h=["m","w"],s=["H","I","N","E","F","K","L","T","U","V","W","X","Y","Z"],u="\t".charCodeAt(0),c=" ".charCodeAt(0);function f(t){this.glyphs=[],this._measure=this.computeMetrics.bind(this),this.update(t)}function l(t){return function(){return this["_"+t]}}function p(t,n){if(!t.chars||0===t.chars.length)return null;var r=d(t.chars,n);return r>=0?t.chars[r]:null}function m(t,n,r){if(!t.kernings||0===t.kernings.length)return 0;for(var e=t.kernings,i=0;i<e.length;i++){var a=e[i];if(a.first===n&&a.second===r)return a.amount}return 0}function d(t,n,r){for(var e=r=r||0;e<t.length;e++)if(t[e].id===n)return e;return-1}t.exports=function(t){return new f(t)},f.prototype.update=function(t){if(t=i({measure:this._measure},t),this._opt=t,this._opt.tabSize=a(this._opt.tabSize,4),!t.font)throw new Error("must provide a valid bitmap font");var n=this.glyphs,r=t.text||"",h=t.font;this._setupSpaceGlyphs(h);var u=e.lines(r,t);n.length=0;var c=u.reduce((function(t,n){return Math.max(t,n.width,0)}),0),f=0,l=0,p=a(t.lineHeight,h.common.lineHeight),g=h.common.base,x=p-g,v=t.letterSpacing||0,y=p*u.length-x,_=function(t){if("center"===t)return 1;if("right"===t)return 2;return 0}(this._opt.align);l-=y,this._width=c,this._height=y,this._descender=p-g,this._baseline=g,this._xHeight=function(t){for(var n=0;n<o.length;n++){var r=o[n].charCodeAt(0),e=d(t.chars,r);if(e>=0)return t.chars[e].height}return 0}(h),this._capHeight=function(t){for(var n=0;n<s.length;n++){var r=s[n].charCodeAt(0),e=d(t.chars,r);if(e>=0)return t.chars[e].height}return 0}(h),this._lineHeight=p,this._ascender=p-x-this._xHeight;var b=this;u.forEach((function(t,e){for(var i,a=t.start,o=t.end,s=t.width,u=a;u<o;u++){var d=r.charCodeAt(u),g=b.getGlyph(h,d);if(g){i&&(f+=m(h,i.id,g.id));var x=f;1===_?x+=(c-s)/2:2===_&&(x+=c-s),n.push({position:[x,l],data:g,index:u,line:e}),f+=g.xadvance+v,i=g}}l+=p,f=0})),this._linesTotal=u.length},f.prototype._setupSpaceGlyphs=function(t){if(this._fallbackSpaceGlyph=null,this._fallbackTabGlyph=null,t.chars&&0!==t.chars.length){var n=p(t,c)||function(t){for(var n=0;n<h.length;n++){var r=h[n].charCodeAt(0),e=d(t.chars,r);if(e>=0)return t.chars[e]}return 0}(t)||t.chars[0],r=this._opt.tabSize*n.xadvance;this._fallbackSpaceGlyph=n,this._fallbackTabGlyph=i(n,{x:0,y:0,xadvance:r,id:u,xoffset:0,yoffset:0,width:0,height:0})}},f.prototype.getGlyph=function(t,n){var r=p(t,n);return r||(n===u?this._fallbackTabGlyph:n===c?this._fallbackSpaceGlyph:null)},f.prototype.computeMetrics=function(t,n,r,e){var i,a=this._opt.letterSpacing||0,o=this._opt.font,h=0,s=0,u=0;if(!o.chars||0===o.chars.length)return{start:n,end:n,width:0};r=Math.min(t.length,r);for(var c=n;c<r;c++){var f,l=t.charCodeAt(c);if(f=this.getGlyph(o,l)){f.xoffset;var p=(h+=i?m(o,i.id,f.id):0)+f.xadvance+a,d=h+f.width;if(d>=e||p>=e)break;h=p,s=d,i=f}u++}return i&&(s+=i.xoffset),{start:n,end:n+u,width:s}},["width","height","descender","ascender","xHeight","baseline","capHeight","lineHeight"].forEach((function(t){Object.defineProperty(f.prototype,t,{get:l(t),configurable:!0})}))},77824:(t,n,r)=>{var e=r(2823),i=r(34515),a=r(48738),o=[0,2,3],h=[2,1,3];t.exports=function(t,n){t&&(i(t)||a(t))||(n=t||{},t=null);for(var r="string"==typeof(n="number"==typeof n?{count:n}:n||{}).type?n.type:"uint16",s="number"==typeof n.count?n.count:1,u=n.start||0,c=!1!==n.clockwise?o:h,f=c[0],l=c[1],p=c[2],m=6*s,d=t||new(e(r))(m),g=0,x=0;g<m;g+=6,x+=4){var v=g+u;d[v+0]=x+0,d[v+1]=x+1,d[v+2]=x+2,d[v+3]=x+f,d[v+4]=x+l,d[v+5]=x+p}return d}},82582:function(t){t.exports=function(){"use strict";function t(t,e,i,a,o){!function t(r,e,i,a,o){for(;a>i;){if(a-i>600){var h=a-i+1,s=e-i+1,u=Math.log(h),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(h-c)/h)*(s-h/2<0?-1:1);t(r,e,Math.max(i,Math.floor(e-s*c/h+f)),Math.min(a,Math.floor(e+(h-s)*c/h+f)),o)}var l=r[e],p=i,m=a;for(n(r,i,e),o(r[a],l)>0&&n(r,i,a);p<m;){for(n(r,p,m),p++,m--;o(r[p],l)<0;)p++;for(;o(r[m],l)>0;)m--}0===o(r[i],l)?n(r,i,m):n(r,++m,a),m<=e&&(i=m+1),e<=m&&(a=m-1)}}(t,e,i||0,a||t.length-1,o||r)}function n(t,n,r){var e=t[n];t[n]=t[r],t[r]=e}function r(t,n){return t<n?-1:t>n?1:0}var e=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,n,r){if(!r)return n.indexOf(t);for(var e=0;e<n.length;e++)if(r(t,n[e]))return e;return-1}function a(t,n){o(t,0,t.children.length,n,t)}function o(t,n,r,e,i){i||(i=m(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=n;a<r;a++){var o=t.children[a];h(i,t.leaf?e(o):o)}return i}function h(t,n){return t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY),t}function s(t,n){return t.minX-n.minX}function u(t,n){return t.minY-n.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function l(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function p(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(n,r,e,i,a){for(var o=[r,e];o.length;)if(!((e=o.pop())-(r=o.pop())<=i)){var h=r+Math.ceil((e-r)/i/2)*i;t(n,h,r,e,a),o.push(r,h,h,e)}}return e.prototype.all=function(){return this._all(this.data,[])},e.prototype.search=function(t){var n=this.data,r=[];if(!p(t,n))return r;for(var e=this.toBBox,i=[];n;){for(var a=0;a<n.children.length;a++){var o=n.children[a],h=n.leaf?e(o):o;p(t,h)&&(n.leaf?r.push(o):l(t,h)?this._all(o,r):i.push(o))}n=i.pop()}return r},e.prototype.collides=function(t){var n=this.data;if(!p(t,n))return!1;for(var r=[];n;){for(var e=0;e<n.children.length;e++){var i=n.children[e],a=n.leaf?this.toBBox(i):i;if(p(t,a)){if(n.leaf||l(t,a))return!0;r.push(i)}}n=r.pop()}return!1},e.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var n=0;n<t.length;n++)this.insert(t[n]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var e=this.data;this.data=r,r=e}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},e.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},e.prototype.clear=function(){return this.data=m([]),this},e.prototype.remove=function(t,n){if(!t)return this;for(var r,e,a,o=this.data,h=this.toBBox(t),s=[],u=[];o||s.length;){if(o||(o=s.pop(),e=s[s.length-1],r=u.pop(),a=!0),o.leaf){var c=i(t,o.children,n);if(-1!==c)return o.children.splice(c,1),s.push(o),this._condense(s),this}a||o.leaf||!l(o,h)?e?(r++,o=e.children[r],a=!1):o=null:(s.push(o),u.push(r),r=0,e=o,o=o.children[0])}return this},e.prototype.toBBox=function(t){return t},e.prototype.compareMinX=function(t,n){return t.minX-n.minX},e.prototype.compareMinY=function(t,n){return t.minY-n.minY},e.prototype.toJSON=function(){return this.data},e.prototype.fromJSON=function(t){return this.data=t,this},e.prototype._all=function(t,n){for(var r=[];t;)t.leaf?n.push.apply(n,t.children):r.push.apply(r,t.children),t=r.pop();return n},e.prototype._build=function(t,n,r,e){var i,o=r-n+1,h=this._maxEntries;if(o<=h)return a(i=m(t.slice(n,r+1)),this.toBBox),i;e||(e=Math.ceil(Math.log(o)/Math.log(h)),h=Math.ceil(o/Math.pow(h,e-1))),(i=m([])).leaf=!1,i.height=e;var s=Math.ceil(o/h),u=s*Math.ceil(Math.sqrt(h));d(t,n,r,u,this.compareMinX);for(var c=n;c<=r;c+=u){var f=Math.min(c+u-1,r);d(t,c,f,s,this.compareMinY);for(var l=c;l<=f;l+=s){var p=Math.min(l+s-1,f);i.children.push(this._build(t,l,p,e-1))}}return a(i,this.toBBox),i},e.prototype._chooseSubtree=function(t,n,r,e){for(;e.push(n),!n.leaf&&e.length-1!==r;){for(var i=1/0,a=1/0,o=void 0,h=0;h<n.children.length;h++){var s=n.children[h],u=c(s),f=(l=t,p=s,(Math.max(p.maxX,l.maxX)-Math.min(p.minX,l.minX))*(Math.max(p.maxY,l.maxY)-Math.min(p.minY,l.minY))-u);f<a?(a=f,i=u<i?u:i,o=s):f===a&&u<i&&(i=u,o=s)}n=o||n.children[0]}var l,p;return n},e.prototype._insert=function(t,n,r){var e=r?t:this.toBBox(t),i=[],a=this._chooseSubtree(e,this.data,n,i);for(a.children.push(t),h(a,e);n>=0&&i[n].children.length>this._maxEntries;)this._split(i,n),n--;this._adjustParentBBoxes(e,i,n)},e.prototype._split=function(t,n){var r=t[n],e=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,e);var o=this._chooseSplitIndex(r,i,e),h=m(r.children.splice(o,r.children.length-o));h.height=r.height,h.leaf=r.leaf,a(r,this.toBBox),a(h,this.toBBox),n?t[n-1].children.push(h):this._splitRoot(r,h)},e.prototype._splitRoot=function(t,n){this.data=m([t,n]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},e.prototype._chooseSplitIndex=function(t,n,r){for(var e,i,a,h,s,u,f,l=1/0,p=1/0,m=n;m<=r-n;m++){var d=o(t,0,m,this.toBBox),g=o(t,m,r,this.toBBox),x=(i=d,a=g,h=void 0,s=void 0,u=void 0,f=void 0,h=Math.max(i.minX,a.minX),s=Math.max(i.minY,a.minY),u=Math.min(i.maxX,a.maxX),f=Math.min(i.maxY,a.maxY),Math.max(0,u-h)*Math.max(0,f-s)),v=c(d)+c(g);x<l?(l=x,e=m,p=v<p?v:p):x===l&&v<p&&(p=v,e=m)}return e||r-n},e.prototype._chooseSplitAxis=function(t,n,r){var e=t.leaf?this.compareMinX:s,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,n,r,e)<this._allDistMargin(t,n,r,i)&&t.children.sort(e)},e.prototype._allDistMargin=function(t,n,r,e){t.children.sort(e);for(var i=this.toBBox,a=o(t,0,n,i),s=o(t,r-n,r,i),u=f(a)+f(s),c=n;c<r-n;c++){var l=t.children[c];h(a,t.leaf?i(l):l),u+=f(a)}for(var p=r-n-1;p>=n;p--){var m=t.children[p];h(s,t.leaf?i(m):m),u+=f(s)}return u},e.prototype._adjustParentBBoxes=function(t,n,r){for(var e=r;e>=0;e--)h(n[e],t)},e.prototype._condense=function(t){for(var n=t.length-1,r=void 0;n>=0;n--)0===t[n].children.length?n>0?(r=t[n-1].children).splice(r.indexOf(t[n]),1):this.clear():a(t[n],this.toBBox)},e}()},45837:(t,n,r)=>{"use strict";r.d(n,{Y:()=>c});var e=r(73134),i=r.n(e),a=r(77824),o=r.n(a);const h={min:[0,0],max:[0,0]};function s(t){const n=t.length/2;h.min[0]=t[0],h.min[1]=t[1],h.max[0]=t[0],h.max[1]=t[1];for(let r=0;r<n;r++){const n=t[2*r+0],e=t[2*r+1];h.min[0]=Math.min(n,h.min[0]),h.min[1]=Math.min(e,h.min[1]),h.max[0]=Math.max(n,h.max[0]),h.max[1]=Math.max(e,h.max[1])}}var u=r(81396);function c(t){return new f(t)}class f extends u.BufferGeometry{constructor(t){super(),this.type="TextGeometry","string"==typeof t&&(t={text:t}),this._opt=Object.assign({},t),t&&this.update(t)}update(t){if("string"==typeof t&&(t={text:t}),!(t=Object.assign({},this._opt,t)).font)throw new TypeError("must specify a { font } in options");this.layout=i()(t);const n=!1!==t.flipY,r=t.font,e=r.common.scaleW,a=r.common.scaleH,h=this.layout.glyphs.filter((function(t){const n=t.data;return n.width*n.height>0}));this.visibleGlyphs=h;const s=function(t){const n=new Float32Array(4*t.length*2);let r=0;return t.forEach((function(t){const e=t.data,i=t.position[0]+e.xoffset,a=t.position[1]+e.yoffset,o=e.width,h=e.height;n[r++]=i,n[r++]=a,n[r++]=i,n[r++]=a+h,n[r++]=i+o,n[r++]=a+h,n[r++]=i+o,n[r++]=a})),n}(h),c=function(t,n,r,e){const i=new Float32Array(4*t.length*2);let a=0;return t.forEach((function(t){const o=t.data,h=o.x+o.width,s=o.y+o.height,u=o.x/n;let c=o.y/r;const f=h/n;let l=s/r;e&&(c=(r-o.y)/r,l=(r-s)/r),i[a++]=u,i[a++]=c,i[a++]=u,i[a++]=l,i[a++]=f,i[a++]=l,i[a++]=f,i[a++]=c})),i}(h,e,a,n),f=o()([],{clockwise:!0,type:"uint16",count:h.length});this.setIndex(f),this.setAttribute("position",new u.BufferAttribute(s,2)),this.setAttribute("uv",new u.BufferAttribute(c,2)),!t.multipage&&"page"in this.attributes?this.deleteAttribute("page"):t.multipage&&this.setAttribute("page",new u.BufferAttribute(function(t){const n=new Float32Array(4*t.length*1);let r=0;return t.forEach((function(t){var e=t.data.page||0;n[r++]=e,n[r++]=e,n[r++]=e,n[r++]=e})),n}(h),1))}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new u.Sphere);const t=this.attributes.position.array,n=this.attributes.position.itemSize;if(!t||!n||t.length<2)return this.boundingSphere.radius=0,void this.boundingSphere.center.set(0,0,0);!function(t,n){s(t);const r=h.min[0],e=h.min[1],i=h.max[0]-r,a=h.max[1]-e,o=Math.sqrt(i*i+a*a);n.center.set(r+i/2,e+a/2,0),n.radius=o/2}(t,this.boundingSphere),isNaN(this.boundingSphere.radius)&&console.error('BufferGeometry.computeBoundingSphere():\nComputed radius is NaN. The\n"position" attribute is likely to have NaN values.')}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new u.Box3);const t=this.boundingBox,n=this.attributes.position.array,r=this.attributes.position.itemSize;!n||!r||n.length<2?t.makeEmpty():function(t,n){s(t),n.min.set(h.min[0],h.min[1],0),n.max.set(h.max[0],h.max[1],0)}(n,t)}}},12739:t=>{var n=/\n/,r="\n",e=/\s/;function i(t,n,r,e){var i=t.indexOf(n,r);return-1===i||i>e?e:i}function a(t){return e.test(t)}function o(t,n,r,e){return{start:n,end:n+Math.min(e,r-n)}}t.exports=function(n,r){return t.exports.lines(n,r).map((function(t){return n.substring(t.start,t.end)})).join("\n")},t.exports.lines=function(t,e){if(0===(e=e||{}).width&&"nowrap"!==e.mode)return[];t=t||"";var h="number"==typeof e.width?e.width:Number.MAX_VALUE,s=Math.max(0,e.start||0),u="number"==typeof e.end?e.end:t.length,c=e.mode,f=e.measure||o;return"pre"===c?function(t,r,e,i,a){for(var o=[],h=e,s=e;s<i&&s<r.length;s++){var u=r.charAt(s),c=n.test(u);if(c||s===i-1){var f=t(r,h,c?s:s+1,a);o.push(f),h=s+1}}return o}(f,t,s,u,h):function(t,n,e,o,h,s){var u=[],c=h;"nowrap"===s&&(c=Number.MAX_VALUE);for(;e<o&&e<n.length;){for(var f=i(n,r,e,o);e<f&&a(n.charAt(e));)e++;var l=t(n,e,f,c),p=e+(l.end-l.start),m=p+r.length;if(p<f){for(;p>e&&!a(n.charAt(p));)p--;if(p===e)m>e+r.length&&m--,p=m;else for(m=p;p>e&&a(n.charAt(p-r.length));)p--}if(p>=e){var d=t(n,e,p,c);u.push(d)}e=m}return u}(f,t,s,u,h,c)}},47529:t=>{t.exports=function(){for(var t={},r=0;r<arguments.length;r++){var e=arguments[r];for(var i in e)n.call(e,i)&&(t[i]=e[i])}return t};var n=Object.prototype.hasOwnProperty}}]);
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Determine if an object is a Buffer
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */
7
+
8
+ /*!
9
+ * Matterport Showcase SDK
10
+ *
11
+ * © 2022 Matterport, Inc. All rights reserved.
12
+ *
13
+ * Matterport Showcase SDK ("Showcase SDK") must be used according to
14
+ * the Matterport Terms of Service located at https://matterport.com/terms-of-use, the Platform Subscription Agreement ("PSA") available at https://matterport.com/legal/platform-subscription-agreement and the SDK License terms included in the PSA ("SDK License"). Any use of the Showcase SDK requires a current active Matterport account and associated developer key.
15
+ *
16
+ * -------------------------------------------------------------------------------
17
+ *
18
+ * Redistribution and use in source and binary forms, without modification, is permitted in accordance with the SDK License provided that the following conditions are met:
19
+ *
20
+ * * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
21
+ * * Neither the name of Matterport nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
22
+ *
23
+ * THE SHOWCASE SDK IS PROVIDED BY MATTERPORT AS THE COPYRIGHT HOLDER AND, IF APPLICABLE, ITS CONTRIBUTORS "AS IS" AND WITHOUT WARRANTIES OF ANY KIND. TO THE FULLEST EXTENT PERMISSIBLE PURSUANT TO APPLICABLE LAW, MATTERPORT DISCLAIMS, ON BEHALF OF ITSELF AND ITS AFFILIATES AND LICENSORS, ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. MATTERPORT DOES NOT WARRANT THAT THE AVAILABILITY OF THE SHOWCASE SDK WILL BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SHOWCASE SDK WILL BE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. MATTERPORT DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES REGARDING THE USE OR THE RESULTS OF THE USE OF THE SHOWCASE SDK OR FUNCTIONS ON THE SHOWCASE SDK IN TERMS OF THEIR CORRECTNESS, ACCURACY, RELIABILITY, RESULTS TO BE ACHIEVED, OR OTHERWISE. APPLICABLE LAW MAY NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SOME OR ALL OF THE FOREGOING DISCLAIMERS MAY NOT APPLY TO YOU.
24
+ *
25
+ * TO THE EXTENT PERMITTED UNDER APPLICABLE LAW UNDER NO CIRCUMSTANCES, INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE, SHALL MATTERPORT OR ITS AFFILIATES OR LICENSORS BE LIABLE FOR ANY CONSEQUENTIAL, EXEMPLARY, PUNITIVE, SPECIAL, INCIDENTAL OR OTHER INDIRECT DAMAGES, EVEN IF MATTERPORT OR A MATTERPORT AUTHORIZED REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. APPLICABLE LAW MAY NOT ALLOW SOME OR ALL OF THIS LIMITATION OF LIABILITY, SO IT MAY NOT APPLY TO YOU.
26
+ *
27
+ */