@dcl/wearable-preview 2.14.2 → 2.14.3-25444034252.commit-59a8330

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 (28) hide show
  1. package/assets/{Preview-ixF-cSdh.js → Preview-DU8d0Qm-.js} +98 -98
  2. package/assets/UnityPreview-DA98LelT.js +1 -0
  3. package/assets/{babylon.inspector.bundle.max-CFwpjOrj.js → babylon.inspector.bundle.max-CKqvKgli.js} +1 -1
  4. package/assets/emote-events-DnXVkJtc.js +12 -0
  5. package/assets/{index-MD9s48a1.js → index-DZgru5so.js} +3 -3
  6. package/index.html +3 -3
  7. package/package.json +3 -3
  8. package/static-local/assets/{Preview-DOkVVEzm.js → Preview-pRFqJubQ.js} +98 -98
  9. package/static-local/assets/UnityPreview-C_RHdlOE.js +1 -0
  10. package/static-local/assets/{babylon.inspector.bundle.max-BBTHflyk.js → babylon.inspector.bundle.max-DBOVfxK_.js} +1 -1
  11. package/static-local/assets/emote-events-DlrMENaF.js +12 -0
  12. package/static-local/assets/{index-DE24mgjY.js → index-DktbxvSB.js} +2 -2
  13. package/static-local/index.html +1 -1
  14. package/static-local/package.json +1 -1
  15. package/static-local/unity/Build/aang-renderer.data.br +0 -0
  16. package/static-local/unity/Build/aang-renderer.framework.js.br +0 -0
  17. package/static-local/unity/Build/aang-renderer.loader.js +1 -1
  18. package/static-local/unity/Build/aang-renderer.symbols.json.br +0 -0
  19. package/static-local/unity/Build/aang-renderer.wasm.br +0 -0
  20. package/unity/Build/aang-renderer.data.br +0 -0
  21. package/unity/Build/aang-renderer.framework.js.br +0 -0
  22. package/unity/Build/aang-renderer.loader.js +1 -1
  23. package/unity/Build/aang-renderer.symbols.json.br +0 -0
  24. package/unity/Build/aang-renderer.wasm.br +0 -0
  25. package/assets/UnityPreview-COOJWXbo.js +0 -1
  26. package/assets/emote-events-CV5UM-tB.js +0 -12
  27. package/static-local/assets/UnityPreview-bNRZ1RmV.js +0 -1
  28. package/static-local/assets/emote-events-BxS6Kezu.js +0 -12
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UnityPreview-bNRZ1RmV.js","./emote-events-BxS6Kezu.js","./UnityPreview-DDBpN-Lh.css","./Preview-DOkVVEzm.js","./Preview-BcI1c3PG.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UnityPreview-C_RHdlOE.js","./emote-events-DlrMENaF.js","./UnityPreview-DDBpN-Lh.css","./Preview-pRFqJubQ.js","./Preview-BcI1c3PG.css"])))=>i.map(i=>d[i]);
2
2
  (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function o(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(u){if(u.ep)return;u.ep=!0;const c=o(u);fetch(u.href,c)}})();const d_="modulepreload",p_=function(n,r){return new URL(n,r).href},dp={},xm=function(r,o,a){let u=Promise.resolve();if(o&&o.length>0){let d=function(S){return Promise.all(S.map(v=>Promise.resolve(v).then(I=>({status:"fulfilled",value:I}),I=>({status:"rejected",reason:I}))))};const h=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),y=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));u=d(o.map(S=>{if(S=p_(S,a),S in dp)return;dp[S]=!0;const v=S.endsWith(".css"),I=v?'[rel="stylesheet"]':"";if(!!a)for(let F=h.length-1;F>=0;F--){const U=h[F];if(U.href===S&&(!v||U.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${S}"]${I}`))return;const P=document.createElement("link");if(P.rel=v?"stylesheet":d_,v||(P.as="script"),P.crossOrigin="",P.href=S,y&&P.setAttribute("nonce",y),document.head.appendChild(P),v)return new Promise((F,U)=>{P.addEventListener("load",F),P.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${S}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return u.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})};var X1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m_(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function J1(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var r=n.default;if(typeof r=="function"){var o=function a(){return this instanceof a?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(a){var u=Object.getOwnPropertyDescriptor(n,a);Object.defineProperty(o,a,u.get?u:{enumerable:!0,get:function(){return n[a]}})}),o}var Zu={exports:{}},Bi={},el={exports:{}},ee={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -58,4 +58,4 @@ Url: ${Ys(n)}`),!0}return!1}function ME(n,r){return r!=null&&r.length?Rh(n).some
58
58
  Type: ${n}
59
59
  Name: ${on(a)}
60
60
  Error:`,u)}}function Z0(){return b0(n=>{mo("cls",{metric:n}),Kh=n},{reportAllChanges:!0})}function eT(){return Y0(n=>{mo("lcp",{metric:n}),Qh=n},{reportAllChanges:!0})}function tT(){return Q0(n=>{mo("ttfb",{metric:n}),Xh=n})}function nT(){return W0(n=>{mo("inp",{metric:n}),Jh=n})}function oa(n,r,o,a,u=!1){tg(n,r);let c;return Js[n]||(c=o(),Js[n]=!0),a&&r({metric:a}),ng(n,r,u?c:void 0)}function rT(n){const r={};n==="event"&&(r.durationThreshold=0),ri(n,o=>{mo(n,{entries:o})},r)}function tg(n,r){qi[n]=qi[n]||[],qi[n].push(r)}function ng(n,r,o){return()=>{o&&o();const a=qi[n];if(!a)return;const u=a.indexOf(r);u!==-1&&a.splice(u,1)}}function iT(n){return"duration"in n}const oT=n=>{const r=o=>{var a;(o.type==="pagehide"||((a=Q.document)==null?void 0:a.visibilityState)==="hidden")&&n(o)};On("visibilitychange",r,{capture:!0,once:!0}),On("pagehide",r,{capture:!0,once:!0})};function gl(n){return typeof n=="number"&&isFinite(n)}function Fn(n,r,o,{...a}){const u=de(n).start_timestamp;return u&&u>r&&typeof n.updateStartTime=="function"&&n.updateStartTime(r),nc(n,()=>{const c=ti({startTime:r,...a});return c&&c.end(o),c})}function pc(n){var U;const r=he();if(!r)return;const{name:o,transaction:a,attributes:u,startTime:c}=n,{release:d,environment:h,sendDefaultPii:p}=r.getOptions(),y=r.getIntegrationByName("Replay"),S=y==null?void 0:y.getReplayId(),v=me(),I=v.getUser(),R=I!==void 0?I.email||I.id||I.ip_address:void 0;let P;try{P=v.getScopeData().contexts.profile.profile_id}catch{}const F={release:d,environment:h,user:R||void 0,profile_id:P||void 0,replay_id:S||void 0,transaction:a,"user_agent.original":(U=Q.navigator)==null?void 0:U.userAgent,"client.address":p?"{{auto}}":void 0,...u};return ti({name:o,attributes:F,startTime:c,experimental:{standalone:!0}})}function ho(){return Q.addEventListener&&Q.performance}function Re(n){return n/1e3}function sT(n){let r="unknown",o="unknown",a="";for(const u of n){if(u==="/"){[r,o]=n.split("/");break}if(!isNaN(Number(u))){r=a==="h"?"http":a,o=n.split(a)[1];break}a+=u}return a===n&&(r=a),{name:r,version:o}}function rg(n){try{return PerformanceObserver.supportedEntryTypes.includes(n)}catch{return!1}}function ig(n,r){let o,a=!1;function u(h){!a&&o&&r(h,o),a=!0}oT(()=>{u("pagehide")});const c=n.on("beforeStartNavigationSpan",(h,p)=>{p!=null&&p.isRedirect||(u("navigation"),c(),d())}),d=n.on("afterStartPageLoadSpan",h=>{o=h.spanContext().spanId,d()})}function aT(n){let r=0,o;if(!rg("layout-shift"))return;const a=Zh(({metric:u})=>{const c=u.entries[u.entries.length-1];c&&(r=u.value,o=c)},!0);ig(n,(u,c)=>{uT(r,o,c,u),a()})}function uT(n,r,o,a){var y;uo&&$.log(`Sending CLS span (${n})`);const u=r?Re((yt()||0)+r.startTime):Be(),c=me().getScopeData().transactionName,d=r?Nt((y=r.sources[0])==null?void 0:y.node):"Layout shift",h={[$e]:"auto.http.browser.cls",[un]:"ui.webvital.cls",[Zr]:0,"sentry.pageload.span_id":o,"sentry.report_event":a};r!=null&&r.sources&&r.sources.forEach((S,v)=>{h[`cls.source.${v+1}`]=Nt(S.node)});const p=pc({name:d,transaction:c,attributes:h,startTime:u});p&&(p.addEvent("cls",{[oo]:"",[so]:n}),p.end(u))}function lT(n){let r=0,o;if(!rg("largest-contentful-paint"))return;const a=eg(({metric:u})=>{const c=u.entries[u.entries.length-1];c&&(r=u.value,o=c)},!0);ig(n,(u,c)=>{cT(r,o,c,u),a()})}function cT(n,r,o,a){uo&&$.log(`Sending LCP span (${n})`);const u=Re((yt()||0)+((r==null?void 0:r.startTime)||0)),c=me().getScopeData().transactionName,d=r?Nt(r.element):"Largest contentful paint",h={[$e]:"auto.http.browser.lcp",[un]:"ui.webvital.lcp",[Zr]:0,"sentry.pageload.span_id":o,"sentry.report_event":a};r&&(r.element&&(h["lcp.element"]=Nt(r.element)),r.id&&(h["lcp.id"]=r.id),r.url&&(h["lcp.url"]=r.url),r.loadTime!=null&&(h["lcp.loadTime"]=r.loadTime),r.renderTime!=null&&(h["lcp.renderTime"]=r.renderTime),r.size!=null&&(h["lcp.size"]=r.size));const p=pc({name:d,transaction:c,attributes:h,startTime:u});p&&(p.addEvent("lcp",{[oo]:"millisecond",[so]:n}),p.end(u))}function It(n){return n&&((yt()||performance.timeOrigin)+n)/1e3}function og(n){var o;const r={};if(n.nextHopProtocol!=null){const{name:a,version:u}=sT(n.nextHopProtocol);r["network.protocol.version"]=u,r["network.protocol.name"]=a}return yt()||(o=ho())!=null&&o.timeOrigin?fT({...r,"http.request.redirect_start":It(n.redirectStart),"http.request.redirect_end":It(n.redirectEnd),"http.request.worker_start":It(n.workerStart),"http.request.fetch_start":It(n.fetchStart),"http.request.domain_lookup_start":It(n.domainLookupStart),"http.request.domain_lookup_end":It(n.domainLookupEnd),"http.request.connect_start":It(n.connectStart),"http.request.secure_connection_start":It(n.secureConnectionStart),"http.request.connection_end":It(n.connectEnd),"http.request.request_start":It(n.requestStart),"http.request.response_start":It(n.responseStart),"http.request.response_end":It(n.responseEnd),"http.request.time_to_first_byte":n.responseStart!=null?n.responseStart/1e3:void 0}):r}function fT(n){return Object.fromEntries(Object.entries(n).filter(([,r])=>r!=null))}const dT=2147483647;let hm=0,$t={},lt,Ur;function pT({recordClsStandaloneSpans:n,recordLcpStandaloneSpans:r,client:o}){const a=ho();if(a&&yt()){a.mark&&Q.performance.mark("sentry-tracing-init");const u=r?lT(o):_T(),c=vT(),d=n?aT(o):yT();return()=>{u==null||u(),c(),d==null||d()}}return()=>{}}function mT(){qr("longtask",({entries:n})=>{const r=_t();if(!r)return;const{op:o,start_timestamp:a}=de(r);for(const u of n){const c=Re(yt()+u.startTime),d=Re(u.duration);o==="navigation"&&a&&c<a||Fn(r,c,c+d,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[$e]:"auto.ui.browser.metrics"}})}})}function hT(){new PerformanceObserver(r=>{const o=_t();if(o)for(const a of r.getEntries()){if(!a.scripts[0])continue;const u=Re(yt()+a.startTime),{start_timestamp:c,op:d}=de(o);if(d==="navigation"&&c&&u<c)continue;const h=Re(a.duration),p={[$e]:"auto.ui.browser.metrics"},y=a.scripts[0],{invoker:S,invokerType:v,sourceURL:I,sourceFunctionName:R,sourceCharPosition:P}=y;p["browser.script.invoker"]=S,p["browser.script.invoker_type"]=v,I&&(p["code.filepath"]=I),R&&(p["code.function"]=R),P!==-1&&(p["browser.script.source_char_position"]=P),Fn(o,u,u+h,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:p})}}).observe({type:"long-animation-frame",buffered:!0})}function gT(){qr("event",({entries:n})=>{const r=_t();if(r){for(const o of n)if(o.name==="click"){const a=Re(yt()+o.startTime),u=Re(o.duration),c={name:Nt(o.target),op:`ui.interaction.${o.name}`,startTime:a,attributes:{[$e]:"auto.ui.browser.metrics"}},d=Hm(o.target);d&&(c.attributes["ui.component_name"]=d),Fn(r,a,a+u,c)}}})}function yT(){return Zh(({metric:n})=>{const r=n.entries[n.entries.length-1];r&&($t.cls={value:n.value,unit:""},Ur=r)},!0)}function _T(){return eg(({metric:n})=>{const r=n.entries[n.entries.length-1];r&&($t.lcp={value:n.value,unit:"millisecond"},lt=r)},!0)}function vT(){return X0(({metric:n})=>{n.entries[n.entries.length-1]&&($t.ttfb={value:n.value,unit:"millisecond"})})}function ST(n,r){const o=ho(),a=yt();if(!(o!=null&&o.getEntries)||!a)return;const u=Re(a),c=o.getEntries(),{op:d,start_timestamp:h}=de(n);c.slice(hm).forEach(p=>{const y=Re(p.startTime),S=Re(Math.max(0,p.duration));if(!(d==="navigation"&&h&&u+y<h))switch(p.entryType){case"navigation":{kT(n,p,u);break}case"mark":case"paint":case"measure":{TT(n,p,y,S,u,r.ignorePerformanceApiSpans);const v=fo(),I=p.startTime<v.firstHiddenTime;p.name==="first-paint"&&I&&($t.fp={value:p.startTime,unit:"millisecond"}),p.name==="first-contentful-paint"&&I&&($t.fcp={value:p.startTime,unit:"millisecond"});break}case"resource":{RT(n,p,p.name,y,S,u,r.ignoreResourceSpans);break}}}),hm=Math.max(c.length-1,0),NT(n),d==="pageload"&&(LT($t),r.recordClsOnPageloadSpan||delete $t.cls,r.recordLcpOnPageloadSpan||delete $t.lcp,Object.entries($t).forEach(([p,y])=>{sS(p,y.value,y.unit)}),n.setAttribute("performance.timeOrigin",u),n.setAttribute("performance.activationStart",ni()),PT(n,r)),lt=void 0,Ur=void 0,$t={}}function ET(n){if((n==null?void 0:n.entryType)==="measure")try{return n.detail.devtools.track==="Components ⚛"}catch{return}}function TT(n,r,o,a,u,c){if(ET(r)||["mark","measure"].includes(r.entryType)&&Ln(r.name,c))return;const d=co(!1),h=Re(d?d.requestStart:0),p=u+Math.max(o,h),y=u+o,S=y+a,v={[$e]:"auto.resource.browser.metrics"};p!==y&&(v["sentry.browser.measure_happened_before_request"]=!0,v["sentry.browser.measure_start_time"]=p),wT(v,r),p<=S&&Fn(n,p,S,{name:r.name,op:r.entryType,attributes:v})}function wT(n,r){try{const o=r.detail;if(!o)return;if(typeof o=="object"){for(const[a,u]of Object.entries(o))if(u&&jr(u))n[`sentry.browser.measure.detail.${a}`]=u;else if(u!==void 0)try{n[`sentry.browser.measure.detail.${a}`]=JSON.stringify(u)}catch{}return}if(jr(o)){n["sentry.browser.measure.detail"]=o;return}try{n["sentry.browser.measure.detail"]=JSON.stringify(o)}catch{}}catch{}}function kT(n,r,o){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(a=>{xs(n,r,a,o)}),xs(n,r,"secureConnection",o,"TLS/SSL"),xs(n,r,"fetch",o,"cache"),xs(n,r,"domainLookup",o,"DNS"),CT(n,r,o)}function xs(n,r,o,a,u=o){const c=IT(o),d=r[c],h=r[`${o}Start`];!h||!d||Fn(n,a+Re(h),a+Re(d),{op:`browser.${u}`,name:r.name,attributes:{[$e]:"auto.ui.browser.metrics",...o==="redirect"&&r.redirectCount!=null?{"http.redirect_count":r.redirectCount}:{}}})}function IT(n){return n==="secureConnection"?"connectEnd":n==="fetch"?"domainLookupStart":`${n}End`}function CT(n,r,o){const a=o+Re(r.requestStart),u=o+Re(r.responseEnd),c=o+Re(r.responseStart);r.responseEnd&&(Fn(n,a,u,{op:"browser.request",name:r.name,attributes:{[$e]:"auto.ui.browser.metrics"}}),Fn(n,c,u,{op:"browser.response",name:r.name,attributes:{[$e]:"auto.ui.browser.metrics"}}))}function RT(n,r,o,a,u,c,d){if(r.initiatorType==="xmlhttprequest"||r.initiatorType==="fetch")return;const h=r.initiatorType?`resource.${r.initiatorType}`:"resource.other";if(d!=null&&d.includes(h))return;const p={[$e]:"auto.resource.browser.metrics"},y=or(o);y.protocol&&(p["url.scheme"]=y.protocol.split(":").pop()),y.host&&(p["server.address"]=y.host),p["url.same_origin"]=o.includes(Q.location.origin),xT(r,p,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const S={...p,...og(r)},v=c+a,I=v+u;Fn(n,v,I,{name:o.replace(Q.location.origin,""),op:h,attributes:S})}function NT(n){const r=Q.navigator;if(!r)return;const o=r.connection;o&&(o.effectiveType&&n.setAttribute("effectiveConnectionType",o.effectiveType),o.type&&n.setAttribute("connectionType",o.type),gl(o.rtt)&&($t["connection.rtt"]={value:o.rtt,unit:"millisecond"})),gl(r.deviceMemory)&&n.setAttribute("deviceMemory",`${r.deviceMemory} GB`),gl(r.hardwareConcurrency)&&n.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency))}function PT(n,r){lt&&r.recordLcpOnPageloadSpan&&(lt.element&&n.setAttribute("lcp.element",Nt(lt.element)),lt.id&&n.setAttribute("lcp.id",lt.id),lt.url&&n.setAttribute("lcp.url",lt.url.trim().slice(0,200)),lt.loadTime!=null&&n.setAttribute("lcp.loadTime",lt.loadTime),lt.renderTime!=null&&n.setAttribute("lcp.renderTime",lt.renderTime),n.setAttribute("lcp.size",lt.size)),Ur!=null&&Ur.sources&&r.recordClsOnPageloadSpan&&Ur.sources.forEach((o,a)=>n.setAttribute(`cls.source.${a+1}`,Nt(o.node)))}function xT(n,r,o){o.forEach(([a,u])=>{const c=n[a];c!=null&&(typeof c=="number"&&c<dT||typeof c=="string")&&(r[u]=c)})}function LT(n){const r=co(!1);if(!r)return;const{responseStart:o,requestStart:a}=r;a<=o&&(n["ttfb.requestTime"]={value:o-a,unit:"millisecond"})}function AT(){return ho()&&yt()?qr("element",OT):()=>{}}const OT=({entries:n})=>{const r=_t(),o=r?tt(r):void 0,a=o?de(o).description:me().getScopeData().transactionName;n.forEach(u=>{var R,P;const c=u;if(!c.identifier)return;const d=c.name,h=c.renderTime,p=c.loadTime,[y,S]=p?[Re(p),"load-time"]:h?[Re(h),"render-time"]:[Be(),"entry-emission"],v=d==="image-paint"?Re(Math.max(0,(h??0)-(p??0))):0,I={[$e]:"auto.ui.browser.elementtiming",[un]:"ui.elementtiming",[Vt]:"component","sentry.span_start_time_source":S,"sentry.transaction_name":a,"element.id":c.id,"element.type":((P=(R=c.element)==null?void 0:R.tagName)==null?void 0:P.toLowerCase())||"unknown","element.size":c.naturalWidth&&c.naturalHeight?`${c.naturalWidth}x${c.naturalHeight}`:void 0,"element.render_time":h,"element.load_time":p,"element.url":c.url||void 0,"element.identifier":c.identifier,"element.paint_type":d};dS({name:`element[${c.identifier}]`,attributes:I,startTime:y,onlyIfParent:!0},F=>{F.end(y+v)})})},DT=1e3;let gm,Ul,bl;function MT(n){const r="dom";$n(r,n),Un(r,FT)}function FT(){if(!Q.document)return;const n=Ct.bind(null,"dom"),r=ym(n,!0);Q.document.addEventListener("click",r,!1),Q.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(o=>{var c,d;const u=(c=Q[o])==null?void 0:c.prototype;(d=u==null?void 0:u.hasOwnProperty)!=null&&d.call(u,"addEventListener")&&(gt(u,"addEventListener",function(h){return function(p,y,S){if(p==="click"||p=="keypress")try{const v=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},I=v[p]=v[p]||{refCount:0};if(!I.handler){const R=ym(n);I.handler=R,h.call(this,p,R,S)}I.refCount++}catch{}return h.call(this,p,y,S)}}),gt(u,"removeEventListener",function(h){return function(p,y,S){if(p==="click"||p=="keypress")try{const v=this.__sentry_instrumentation_handlers__||{},I=v[p];I&&(I.refCount--,I.refCount<=0&&(h.call(this,p,I.handler,S),I.handler=void 0,delete v[p]),Object.keys(v).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return h.call(this,p,y,S)}}))})}function $T(n){if(n.type!==Ul)return!1;try{if(!n.target||n.target._sentryId!==bl)return!1}catch{}return!0}function UT(n,r){return n!=="keypress"?!1:r!=null&&r.tagName?!(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.isContentEditable):!0}function ym(n,r=!1){return o=>{if(!o||o._sentryCaptured)return;const a=bT(o);if(UT(o.type,a))return;ct(o,"_sentryCaptured",!0),a&&!a._sentryId&&ct(a,"_sentryId",Rt());const u=o.type==="keypress"?"input":o.type;$T(o)||(n({event:o,name:u,global:r}),Ul=o.type,bl=a?a._sentryId:void 0),clearTimeout(gm),gm=Q.setTimeout(()=>{bl=void 0,Ul=void 0},DT)}}function bT(n){try{return n.target}catch{return null}}let Ls;function mc(n){const r="history";$n(r,n),Un(r,zT)}function zT(){if(Q.addEventListener("popstate",()=>{const r=Q.location.href,o=Ls;if(Ls=r,o===r)return;Ct("history",{from:o,to:r})}),!o0())return;function n(r){return function(...o){const a=o.length>2?o[2]:void 0;if(a){const u=Ls,c=jT(String(a));if(Ls=c,u===c)return r.apply(this,o);Ct("history",{from:u,to:c})}return r.apply(this,o)}}gt(Q.history,"pushState",n),gt(Q.history,"replaceState",n)}function jT(n){try{return new URL(n,Q.location.origin).toString()}catch{return n}}const Hs={};function HT(n){const r=Hs[n];if(r)return r;let o=Q[n];if(Ol(o))return Hs[n]=o.bind(Q);const a=Q.document;if(a&&typeof a.createElement=="function")try{const u=a.createElement("iframe");u.hidden=!0,a.head.appendChild(u);const c=u.contentWindow;c!=null&&c[n]&&(o=c[n]),a.head.removeChild(u)}catch(u){uo&&$.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,u)}return o&&(Hs[n]=o.bind(Q))}function BT(n){Hs[n]=void 0}const br="__sentry_xhr_v3__";function sg(n){const r="xhr";$n(r,n),Un(r,VT)}function VT(){if(!Q.XMLHttpRequest)return;const n=XMLHttpRequest.prototype;n.open=new Proxy(n.open,{apply(r,o,a){const u=new Error,c=Be()*1e3,d=nn(a[0])?a[0].toUpperCase():void 0,h=WT(a[1]);if(!d||!h)return r.apply(o,a);o[br]={method:d,url:h,request_headers:{}},d==="POST"&&h.match(/sentry_key/)&&(o.__sentry_own_request__=!0);const p=()=>{const y=o[br];if(y&&o.readyState===4){try{y.status_code=o.status}catch{}const S={endTimestamp:Be()*1e3,startTimestamp:c,xhr:o,virtualError:u};Ct("xhr",S)}};return"onreadystatechange"in o&&typeof o.onreadystatechange=="function"?o.onreadystatechange=new Proxy(o.onreadystatechange,{apply(y,S,v){return p(),y.apply(S,v)}}):o.addEventListener("readystatechange",p),o.setRequestHeader=new Proxy(o.setRequestHeader,{apply(y,S,v){const[I,R]=v,P=S[br];return P&&nn(I)&&nn(R)&&(P.request_headers[I.toLowerCase()]=R),y.apply(S,v)}}),r.apply(o,a)}}),n.send=new Proxy(n.send,{apply(r,o,a){const u=o[br];if(!u)return r.apply(o,a);a[0]!==void 0&&(u.body=a[0]);const c={startTimestamp:Be()*1e3,xhr:o};return Ct("xhr",c),r.apply(o,a)}})}function WT(n){if(nn(n))return n;try{return n.toString()}catch{}}function GT(n){let r;try{r=n.getAllResponseHeaders()}catch(o){return uo&&$.error(o,"Failed to get xhr response headers",n),{}}return r?r.split(`\r
61
- `).reduce((o,a)=>{const[u,c]=a.split(": ");return c&&(o[u.toLowerCase()]=c),o},{}):{}}const yl=[],Bs=new Map,$r=new Map,qT=60;function YT(){if(ho()&&yt()){const r=KT();return()=>{r()}}return()=>{}}const zl={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function KT(){return J0(QT)}const QT=({metric:n})=>{if(n.value==null)return;const r=Re(n.value);if(r>qT)return;const o=n.entries.find(P=>P.duration===n.value&&zl[P.name]);if(!o)return;const{interactionId:a}=o,u=zl[o.name],c=Re(yt()+o.startTime),d=_t(),h=d?tt(d):void 0,p=a!=null?Bs.get(a):void 0,y=(p==null?void 0:p.span)||h,S=y?de(y).description:me().getScopeData().transactionName,v=(p==null?void 0:p.elementName)||Nt(o.target),I={[$e]:"auto.http.browser.inp",[un]:`ui.interaction.${u}`,[Zr]:o.duration},R=pc({name:v,transaction:S,attributes:I,startTime:c});R&&(R.addEvent("inp",{[oo]:"millisecond",[so]:n.value}),R.end(c+r))};function XT(){const n=Object.keys(zl);g0()&&n.forEach(u=>{Q.addEventListener(u,r,{capture:!0,passive:!0})});function r(u){const c=u.target;if(!c)return;const d=Nt(c),h=Math.round(u.timeStamp);if($r.set(h,d),$r.size>50){const p=$r.keys().next().value;p!==void 0&&$r.delete(p)}}function o(u){const c=Math.round(u.startTime);let d=$r.get(c);if(!d)for(let h=-5;h<=5;h++){const p=$r.get(c+h);if(p){d=p;break}}return d||"<unknown>"}const a=({entries:u})=>{const c=_t(),d=c&&tt(c);u.forEach(h=>{if(!iT(h))return;const p=h.interactionId;if(p==null||Bs.has(p))return;const y=h.target?Nt(h.target):o(h);if(yl.length>10){const S=yl.shift();Bs.delete(S)}yl.push(p),Bs.set(p,{span:d,elementName:y})})};qr("event",a),qr("first-input",a)}const JT=40;function ZT(n,r=HT("fetch")){let o=0,a=0;async function u(c){const d=c.body.length;o+=d,a++;const h={body:c.body,method:"POST",referrerPolicy:"strict-origin",headers:n.headers,keepalive:o<=6e4&&a<15,...n.fetchOptions};try{const p=await r(n.url,h);return{statusCode:p.status,headers:{"x-sentry-rate-limits":p.headers.get("X-Sentry-Rate-Limits"),"retry-after":p.headers.get("Retry-After")}}}catch(p){throw BT("fetch"),p}finally{o-=d,a--}}return sE(n,u,sc(n.bufferSize||JT))}const Pt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ew=30,tw=50;function jl(n,r,o,a){const u={filename:n,function:r==="<anonymous>"?sr:r,in_app:!0};return o!==void 0&&(u.lineno=o),a!==void 0&&(u.colno=a),u}const nw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iw=/\((\S*)(?::(\d+))(?::(\d+))\)/,ow=/at (.+?) ?\(data:(.+?),/,sw=n=>{const r=n.match(ow);if(r)return{filename:`<data:${r[2]}>`,function:r[1]};const o=nw.exec(n);if(o){const[,u,c,d]=o;return jl(u,sr,+c,+d)}const a=rw.exec(n);if(a){if(a[2]&&a[2].indexOf("eval")===0){const h=iw.exec(a[2]);h&&(a[2]=h[1],a[3]=h[2],a[4]=h[3])}const[c,d]=ag(a[1]||sr,a[2]);return jl(d,c,a[3]?+a[3]:void 0,a[4]?+a[4]:void 0)}},aw=[ew,sw],uw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,lw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cw=n=>{const r=uw.exec(n);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){const c=lw.exec(r[3]);c&&(r[1]=r[1]||"eval",r[3]=c[1],r[4]=c[2],r[5]="")}let a=r[3],u=r[1]||sr;return[u,a]=ag(u,a),jl(a,u,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},fw=[tw,cw],dw=[aw,fw],pw=Mm(...dw),ag=(n,r)=>{const o=n.indexOf("safari-extension")!==-1,a=n.indexOf("safari-web-extension")!==-1;return o||a?[n.indexOf("@")!==-1?n.split("@")[0]:sr,o?`safari-extension:${r}`:`safari-web-extension:${r}`]:[n,r]},As=1024,mw="Breadcrumbs",hw=(n={})=>{const r={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...n};return{name:mw,setup(o){r.console&&HE(vw(o)),r.dom&&MT(_w(o,r.dom)),r.xhr&&sg(Sw(o)),r.fetch&&zh(Ew(o)),r.history&&mc(Tw(o)),r.sentry&&o.on("beforeSendEvent",yw(o))}}},gw=hw;function yw(n){return function(o){he()===n&&ar({category:`sentry.${o.type==="transaction"?"transaction":"event"}`,event_id:o.event_id,level:o.level,message:er(o)},{event:o})}}function _w(n,r){return function(a){if(he()!==n)return;let u,c,d=typeof r=="object"?r.serializeAttribute:void 0,h=typeof r=="object"&&typeof r.maxStringLength=="number"?r.maxStringLength:void 0;h&&h>As&&(Pt&&$.warn(`\`dom.maxStringLength\` cannot exceed ${As}, but a value of ${h} was configured. Sentry will use ${As} instead.`),h=As),typeof d=="string"&&(d=[d]);try{const y=a.event,S=ww(y)?y.target:y;u=Nt(S,{keyAttrs:d,maxStringLength:h}),c=Hm(S)}catch{u="<unknown>"}if(u.length===0)return;const p={category:`ui.${a.name}`,message:u};c&&(p.data={"ui.component_name":c}),ar(p,{event:a.event,name:a.name,global:a.global})}}function vw(n){return function(o){if(he()!==n)return;const a={category:"console",data:{arguments:o.args,logger:"console"},level:VE(o.level),message:Pp(o.args," ")};if(o.level==="assert")if(o.args[0]===!1)a.message=`Assertion failed: ${Pp(o.args.slice(1)," ")||"console.assert"}`,a.data.arguments=o.args.slice(1);else return;ar(a,{input:o.args,level:o.level})}}function Sw(n){return function(o){if(he()!==n)return;const{startTimestamp:a,endTimestamp:u}=o,c=o.xhr[br];if(!a||!u||!c)return;const{method:d,url:h,status_code:p,body:y}=c,S={method:d,url:h,status_code:p},v={xhr:o.xhr,input:y,startTimestamp:a,endTimestamp:u},I={category:"xhr",data:S,type:"http",level:bh(p)};n.emit("beforeOutgoingRequestBreadcrumb",I,v),ar(I,v)}}function Ew(n){return function(o){if(he()!==n)return;const{startTimestamp:a,endTimestamp:u}=o;if(u&&!(o.fetchData.url.match(/sentry_key/)&&o.fetchData.method==="POST"))if(o.fetchData.method,o.fetchData.url,o.error){const c=o.fetchData,d={data:o.error,input:o.args,startTimestamp:a,endTimestamp:u},h={category:"fetch",data:c,level:"error",type:"http"};n.emit("beforeOutgoingRequestBreadcrumb",h,d),ar(h,d)}else{const c=o.response,d={...o.fetchData,status_code:c==null?void 0:c.status};o.fetchData.request_body_size,o.fetchData.response_body_size,c==null||c.status;const h={input:o.args,response:c,startTimestamp:a,endTimestamp:u},p={category:"fetch",data:d,type:"http",level:bh(d.status_code)};n.emit("beforeOutgoingRequestBreadcrumb",p,h),ar(p,h)}}}function Tw(n){return function(o){if(he()!==n)return;let a=o.from,u=o.to;const c=or(ne.location.href);let d=a?or(a):void 0;const h=or(u);d!=null&&d.path||(d=c),c.protocol===h.protocol&&c.host===h.host&&(u=h.relative),c.protocol===d.protocol&&c.host===d.host&&(a=d.relative),ar({category:"navigation",data:{from:a,to:u}})}}function ww(n){return!!n&&!!n.target}const kw=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Iw="BrowserApiErrors",Cw=(n={})=>{const r={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...n};return{name:Iw,setupOnce(){r.setTimeout&&gt(ne,"setTimeout",_m),r.setInterval&&gt(ne,"setInterval",_m),r.requestAnimationFrame&&gt(ne,"requestAnimationFrame",Nw),r.XMLHttpRequest&&"XMLHttpRequest"in ne&&gt(XMLHttpRequest.prototype,"send",Pw);const o=r.eventTarget;o&&(Array.isArray(o)?o:kw).forEach(u=>xw(u,r))}}},Rw=Cw;function _m(n){return function(...r){const o=r[0];return r[0]=Gr(o,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${on(n)}`}}),n.apply(this,r)}}function Nw(n){return function(r){return n.apply(this,[Gr(r,{mechanism:{data:{handler:on(n)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Pw(n){return function(...r){const o=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(u=>{u in o&&typeof o[u]=="function"&&gt(o,u,function(c){const d={mechanism:{data:{handler:on(c)},handled:!1,type:`auto.browser.browserapierrors.xhr.${u}`}},h=Kl(c);return h&&(d.mechanism.data.handler=on(h)),Gr(c,d)})}),n.apply(this,r)}}function xw(n,r){var u,c;const a=(u=ne[n])==null?void 0:u.prototype;(c=a==null?void 0:a.hasOwnProperty)!=null&&c.call(a,"addEventListener")&&(gt(a,"addEventListener",function(d){return function(h,p,y){try{Lw(p)&&(p.handleEvent=Gr(p.handleEvent,{mechanism:{data:{handler:on(p),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&Aw(this,h,p),d.apply(this,[h,Gr(p,{mechanism:{data:{handler:on(p),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),y])}}),gt(a,"removeEventListener",function(d){return function(h,p,y){try{const S=p.__sentry_wrapped__;S&&d.call(this,h,S,y)}catch{}return d.call(this,h,p,y)}}))}function Lw(n){return typeof n.handleEvent=="function"}function Aw(n,r,o){n&&typeof n=="object"&&"removeEventListener"in n&&typeof n.removeEventListener=="function"&&n.removeEventListener(r,o)}const Ow=(n={})=>{const r=n.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof ne.document>"u"){Pt&&$.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Qp({ignoreDuration:!0}),cl();const o=ln();let a=o.getUser();o.addScopeListener(u=>{const c=u.getUser();((a==null?void 0:a.id)!==(c==null?void 0:c.id)||(a==null?void 0:a.ip_address)!==(c==null?void 0:c.ip_address))&&(cl(),a=c)}),r==="route"&&mc(({from:u,to:c})=>{u!==c&&(Qp({ignoreDuration:!0}),cl())})}}},Dw="CultureContext",Mw=()=>({name:Dw,preprocessEvent(n){var o;const r=$w();r&&(n.contexts={...n.contexts,culture:{...r,...(o=n.contexts)==null?void 0:o.culture}})}}),Fw=Mw;function $w(){try{const n=ne.Intl;if(!n)return;const r=n.DateTimeFormat().resolvedOptions();return{locale:r.locale,timezone:r.timeZone,calendar:r.calendar}}catch{return}}const Uw="GlobalHandlers",bw=(n={})=>{const r={onerror:!0,onunhandledrejection:!0,...n};return{name:Uw,setupOnce(){Error.stackTraceLimit=50},setup(o){r.onerror&&(zw(o),vm("onerror")),r.onunhandledrejection&&(jw(o),vm("onunhandledrejection"))}}},ug=bw;function zw(n){$m(r=>{const{stackParser:o,attachStacktrace:a}=lg();if(he()!==n||Hh())return;const{msg:u,url:c,line:d,column:h,error:p}=r,y=Vw(cc(o,p||u,void 0,a,!1),c,d,h);y.level="error",_h(y,{originalException:p,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function jw(n){Um(r=>{const{stackParser:o,attachStacktrace:a}=lg();if(he()!==n||Hh())return;const u=Hw(r),c=jr(u)?Bw(u):cc(o,u,void 0,a,!0);c.level="error",_h(c,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Hw(n){if(jr(n))return n;try{if("reason"in n)return n.reason;if("detail"in n&&"reason"in n.detail)return n.detail.reason}catch{}return n}function Bw(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function Vw(n,r,o,a){const u=n.exception=n.exception||{},c=u.values=u.values||[],d=c[0]=c[0]||{},h=d.stacktrace=d.stacktrace||{},p=h.frames=h.frames||[],y=a,S=o,v=Ww(r)??to();return p.length===0&&p.push({colno:y,filename:v,function:sr,in_app:!0,lineno:S}),n}function vm(n){Pt&&$.log(`Global Handler attached: ${n}`)}function lg(){const n=he();return(n==null?void 0:n.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Ww(n){if(!(!nn(n)||n.length===0))return n.startsWith("data:")?`<${An(n,!1)}>`:n}const Gw=()=>({name:"HttpContext",preprocessEvent(n){var a;if(!ne.navigator&&!ne.location&&!ne.document)return;const r=ac(),o={...r.headers,...(a=n.request)==null?void 0:a.headers};n.request={...r,...n.request,headers:o}}}),qw="cause",Yw=5,Kw="LinkedErrors",Qw=(n={})=>{const r=n.limit||Yw,o=n.key||qw;return{name:Kw,preprocessEvent(a,u,c){const d=c.getOptions();jE(uc,d.stackParser,o,r,a,u)}}},cg=Qw;function Xw(){return Jw()?(Pt&&Kr(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Jw(){var c;if(typeof ne.window>"u")return!1;const n=ne;if(n.nw)return!1;const r=n.chrome||n.browser;if(!((c=r==null?void 0:r.runtime)!=null&&c.id))return!1;const o=to(),a=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(ne===ne.top&&a.some(d=>o.startsWith(`${d}://`)))}function Zw(n){return[OE(),PE(),JE(),Rw(),gw(),ug(),cg(),Fh(),Gw(),Fw(),Ow()]}function e1(n={}){const r=!n.skipBrowserExtensionCheck&&Xw();let o=n.defaultIntegrations==null?Zw():n.defaultIntegrations;const a={...n,enabled:r?!1:n.enabled,stackParser:D_(n.stackParser||pw),integrations:qS({integrations:n.integrations,defaultIntegrations:o}),transport:n.transport||ZT};return yE(x0,a)}function t1(n){return n.split(",").some(r=>r.trim().startsWith("sentry-"))}function fg(n){try{return new URL(n,ne.location.origin).href}catch{return}}function n1(n){return n.entryType==="resource"&&"initiatorType"in n&&typeof n.nextHopProtocol=="string"&&(n.initiatorType==="fetch"||n.initiatorType==="xmlhttprequest")}function dg(n){try{return new Headers(n)}catch{return}}const Sm=new WeakMap,_l=new Map,pg={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function r1(n,r){const{traceFetch:o,traceXHR:a,trackFetchStreamPerformance:u,shouldCreateSpanForRequest:c,enableHTTPTimings:d,tracePropagationTargets:h,onRequestSpanStart:p,onRequestSpanEnd:y}={...pg,...r},S=typeof c=="function"?c:P=>!0,v=P=>i1(P,h),I={},R=n.getOptions().propagateTraceparent;o&&(n.addEventProcessor(P=>(P.type==="transaction"&&P.spans&&P.spans.forEach(F=>{if(F.op==="http.client"){const U=_l.get(F.span_id);U&&(F.timestamp=U/1e3,_l.delete(F.span_id))}}),P)),u&&u0(P=>{if(P.response){const F=Sm.get(P.response);F&&P.endTimestamp&&_l.set(F,P.endTimestamp)}}),zh(P=>{const F=ZE(P,S,v,I,{propagateTraceparent:R,onRequestSpanEnd:y});if(P.response&&P.fetchData.__span&&Sm.set(P.response,P.fetchData.__span),F){const U=fg(P.fetchData.url),se=U?or(U).host:void 0;F.setAttributes({"http.url":U?An(U):void 0,"server.address":se}),d&&Em(F),p==null||p(F,{headers:P.headers})}})),a&&sg(P=>{var U;const F=o1(P,S,v,I,R,y);F&&(d&&Em(F),p==null||p(F,{headers:dg((U=P.xhr.__sentry_xhr_v3__)==null?void 0:U.request_headers)}))})}function Em(n){const{url:r}=de(n).data;if(!r||typeof r!="string")return;const o=qr("resource",({entries:a})=>{a.forEach(u=>{n1(u)&&u.name.endsWith(r)&&(n.setAttributes(og(u)),setTimeout(o))})})}function i1(n,r){const o=to();if(o){let a,u;try{a=new URL(n,o),u=new URL(o).origin}catch{return!1}const c=a.origin===u;return r?Ln(a.toString(),r)||c&&Ln(a.pathname,r):c}else{const a=!!n.match(/^\/(?!\/)/);return r?Ln(n,r):a}}function o1(n,r,o,a,u,c){const d=n.xhr,h=d==null?void 0:d[br];if(!d||d.__sentry_own_request__||!h)return;const{url:p,method:y}=h,S=Ut()&&r(p);if(n.endTimestamp){const se=d.__sentry_xhr_span_id__;if(!se)return;const _e=a[se];_e&&(S&&h.status_code!==void 0&&(Ym(_e,h.status_code),_e.end(),c==null||c(_e,{headers:dg(GT(d)),error:n.error})),delete a[se]);return}const v=fg(p),I=or(v||p),R=An(EE(p)),P=!!_t(),F=S&&P?ti({name:`${y} ${R}`,attributes:{url:An(p),type:"xhr","http.method":y,"http.url":v?An(v):void 0,"server.address":I==null?void 0:I.host,[$e]:"auto.http.browser",[un]:"http.client",...(I==null?void 0:I.search)&&{"http.query":I==null?void 0:I.search},...(I==null?void 0:I.hash)&&{"http.fragment":I==null?void 0:I.hash}}}):new Mn;d.__sentry_xhr_span_id__=F.spanContext().spanId,a[d.__sentry_xhr_span_id__]=F,o(p)&&s1(d,Ut()&&P?F:void 0,u);const U=he();return U&&U.emit("beforeOutgoingRequestSpan",F,n),F}function s1(n,r,o){const{"sentry-trace":a,baggage:u,traceparent:c}=Dh({span:r,propagateTraceparent:o});a&&a1(n,a,u,c)}function a1(n,r,o,a){var c;const u=(c=n.__sentry_xhr_v3__)==null?void 0:c.request_headers;if(!(u!=null&&u["sentry-trace"]||!n.setRequestHeader))try{if(n.setRequestHeader("sentry-trace",r),a&&!(u!=null&&u.traceparent)&&n.setRequestHeader("traceparent",a),o){const d=u==null?void 0:u.baggage;(!d||!t1(d))&&n.setRequestHeader("baggage",o)}}catch{}}function u1(){ne.document?ne.document.addEventListener("visibilitychange",()=>{const n=_t();if(!n)return;const r=tt(n);if(ne.document.hidden&&r){const o="cancelled",{op:a,status:u}=de(r);Pt&&$.log(`[Tracing] Transaction: ${o} -> since tab moved to the background, op: ${a}`),u||r.setStatus({code:Fe,message:o}),r.setAttribute("sentry.cancellation_reason","document.hidden"),r.end()}}):Pt&&$.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const l1=3600,mg="sentry_previous_trace",c1="sentry.previous_trace";function f1(n,{linkPreviousTrace:r,consistentTraceSampling:o}){const a=r==="session-storage";let u=a?m1():void 0;n.on("spanStart",d=>{if(tt(d)!==d)return;const h=me().getPropagationContext();u=d1(u,d,h),a&&p1(u)});let c=!0;o&&n.on("beforeSampling",d=>{if(!u)return;const h=me(),p=h.getPropagationContext();if(c&&p.parentSpanId){c=!1;return}h.setPropagationContext({...p,dsc:{...p.dsc,sample_rate:String(u.sampleRate),sampled:String(Hl(u.spanContext))},sampleRand:u.sampleRand}),d.parentSampled=Hl(u.spanContext),d.parentSampleRate=u.sampleRate,d.spanAttributes={...d.spanAttributes,[qm]:u.sampleRate}})}function d1(n,r,o){const a=de(r);function u(){var h,p;try{return Number((h=o.dsc)==null?void 0:h.sample_rate)??Number((p=a.data)==null?void 0:p[Ql])}catch{return 0}}const c={spanContext:r.spanContext(),startTimestamp:a.start_timestamp,sampleRate:u(),sampleRand:o.sampleRand};if(!n)return c;const d=n.spanContext;return d.traceId===a.trace_id?n:(Date.now()/1e3-n.startTimestamp<=l1&&(Pt&&$.log(`Adding previous_trace \`${JSON.stringify(d)}\` link to span \`${JSON.stringify({op:a.op,...r.spanContext()})}\``),r.addLink({context:d,attributes:{[uv]:"previous_trace"}}),r.setAttribute(c1,`${d.traceId}-${d.spanId}-${Hl(d)?1:0}`)),c)}function p1(n){try{ne.sessionStorage.setItem(mg,JSON.stringify(n))}catch(r){Pt&&$.warn("Could not store previous trace in sessionStorage",r)}}function m1(){var n;try{const r=(n=ne.sessionStorage)==null?void 0:n.getItem(mg);return JSON.parse(r)}catch{return}}function Hl(n){return n.traceFlags===1}const h1="BrowserTracing",g1={...Us,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...pg},y1=(n={})=>{const r={name:void 0,source:void 0},o=ne.document,{enableInp:a,enableElementTiming:u,enableLongTask:c,enableLongAnimationFrame:d,_experiments:{enableInteractions:h,enableStandaloneClsSpans:p,enableStandaloneLcpSpans:y},beforeStartSpan:S,idleTimeout:v,finalTimeout:I,childSpanTimeout:R,markBackgroundSpan:P,traceFetch:F,traceXHR:U,trackFetchStreamPerformance:se,shouldCreateSpanForRequest:_e,enableHTTPTimings:Oe,ignoreResourceSpans:xe,ignorePerformanceApiSpans:Xe,instrumentPageLoad:Le,instrumentNavigation:X,detectRedirects:ce,linkPreviousTrace:Je,consistentTraceSampling:nt,enableReportPageLoaded:Ue,onRequestSpanStart:Ge,onRequestSpanEnd:we}={...g1,...n};let re,be,ve;function fe(L,z,O=!0){const T=z.op==="pageload",N=z.name,Y=S?S(z):z,J=Y.attributes||{};if(N!==Y.name&&(J[Vt]="custom",Y.attributes=J),!O){const ae=lr();ti({...Y,startTime:ae}).end(ae);return}r.name=Y.name,r.source=J[Vt];const Z=hh(Y,{idleTimeout:v,finalTimeout:I,childSpanTimeout:R,disableAutoFinish:T,beforeSpanEnd:ae=>{re==null||re(),ST(ae,{recordClsOnPageloadSpan:!p,recordLcpOnPageloadSpan:!y,ignoreResourceSpans:xe,ignorePerformanceApiSpans:Xe}),km(L,void 0);const ue=me(),ge=ue.getPropagationContext();ue.setPropagationContext({...ge,traceId:Z.spanContext().traceId,sampled:bn(Z),dsc:Dn(ae)}),T&&(ve=void 0)},trimIdleSpanEndTimestamp:!Ue});T&&Ue&&(ve=Z),km(L,Z);function te(){o&&["interactive","complete"].includes(o.readyState)&&L.emit("idleSpanEnableAutoFinish",Z)}T&&!Ue&&o&&(o.addEventListener("readystatechange",()=>{te()}),te())}return{name:h1,setup(L){if(Uv(),re=pT({recordClsStandaloneSpans:p||!1,recordLcpStandaloneSpans:y||!1,client:L}),a&&YT(),u&&AT(),d&&oe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?hT():c&&mT(),h&&gT(),ce&&o){const O=()=>{be=Be()};addEventListener("click",O,{capture:!0}),addEventListener("keydown",O,{capture:!0,passive:!0})}function z(){const O=Zi(L);O&&!de(O).timestamp&&(Pt&&$.log(`[Tracing] Finishing current active span with op: ${de(O).op}`),O.setAttribute(Ki,"cancelled"),O.end())}L.on("startNavigationSpan",(O,T)=>{if(he()!==L)return;if(T!=null&&T.isRedirect){Pt&&$.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),fe(L,{op:"navigation.redirect",...O},!1);return}be=void 0,z(),ln().setPropagationContext({traceId:an(),sampleRand:Math.random(),propagationSpanId:Ut()?void 0:rn()});const N=me();N.setPropagationContext({traceId:an(),sampleRand:Math.random(),propagationSpanId:Ut()?void 0:rn()}),N.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(L,{op:"navigation",...O,parentSpan:null,forceTransaction:!0})}),L.on("startPageLoadSpan",(O,T={})=>{if(he()!==L)return;z();const N=T.sentryTrace||Tm("sentry-trace")||wm("sentry-trace"),Y=T.baggage||Tm("baggage")||wm("baggage"),J=Pv(N,Y),Z=me();Z.setPropagationContext(J),Ut()||(Z.getPropagationContext().propagationSpanId=rn()),Z.setSDKProcessingMetadata({normalizedRequest:ac()}),fe(L,{op:"pageload",...O})}),L.on("endPageloadSpan",()=>{Ue&&ve&&(ve.setAttribute(Ki,"reportPageLoaded"),ve.end())})},afterAllSetup(L){let z=to();if(Je!=="off"&&f1(L,{linkPreviousTrace:Je,consistentTraceSampling:nt}),ne.location){if(Le){const O=yt();_1(L,{name:ne.location.pathname,startTime:O?O/1e3:void 0,attributes:{[Vt]:"url",[$e]:"auto.pageload.browser"}})}X&&mc(({to:O,from:T})=>{if(T===void 0&&(z==null?void 0:z.indexOf(O))!==-1){z=void 0;return}z=void 0;const N=Oh(O),Y=Zi(L),J=Y&&ce&&E1(Y,be);v1(L,{name:(N==null?void 0:N.pathname)||ne.location.pathname,attributes:{[Vt]:"url",[$e]:"auto.navigation.browser"}},{url:O,isRedirect:J})})}P&&u1(),h&&S1(L,v,I,R,r),a&&XT(),r1(L,{traceFetch:F,traceXHR:U,trackFetchStreamPerformance:se,tracePropagationTargets:L.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_e,enableHTTPTimings:Oe,onRequestSpanStart:Ge,onRequestSpanEnd:we})}}};function _1(n,r,o){n.emit("startPageLoadSpan",r,o),me().setTransactionName(r.name);const a=Zi(n);return a&&n.emit("afterStartPageLoadSpan",a),a}function v1(n,r,o){const{url:a,isRedirect:u}=o||{};n.emit("beforeStartNavigationSpan",r,{isRedirect:u}),n.emit("startNavigationSpan",r,{isRedirect:u});const c=me();return c.setTransactionName(r.name),a&&!u&&c.setSDKProcessingMetadata({normalizedRequest:{...ac(),url:a}}),Zi(n)}function Tm(n){const r=ne.document,o=r==null?void 0:r.querySelector(`meta[name=${n}]`);return(o==null?void 0:o.getAttribute("content"))||void 0}function wm(n){var a,u,c;const r=(u=(a=ne.performance)==null?void 0:a.getEntriesByType)==null?void 0:u.call(a,"navigation")[0],o=(c=r==null?void 0:r.serverTiming)==null?void 0:c.find(d=>d.name===n);return o==null?void 0:o.description}function S1(n,r,o,a,u){const c=ne.document;let d;const h=()=>{const p="ui.action.click",y=Zi(n);if(y){const S=de(y).op;if(["navigation","pageload"].includes(S)){Pt&&$.warn(`[Tracing] Did not create ${p} span because a pageload or navigation span is in progress.`);return}}if(d&&(d.setAttribute(Ki,"interactionInterrupted"),d.end(),d=void 0),!u.name){Pt&&$.warn(`[Tracing] Did not create ${p} transaction because _latestRouteName is missing.`);return}d=hh({name:u.name,op:p,attributes:{[Vt]:u.source||"url"}},{idleTimeout:r,finalTimeout:o,childSpanTimeout:a})};c&&addEventListener("click",h,{capture:!0})}const hg="_sentry_idleSpan";function Zi(n){return n[hg]}function km(n,r){ct(n,hg,r)}const Im=1.5;function E1(n,r){const o=de(n),a=lr(),u=o.start_timestamp;return!(a-u>Im||r&&a-r<=Im)}var vl={},Wi={},Sl={},Zn={},Cm;function T1(){if(Cm)return Zn;Cm=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getEnvFromQueryParam=Zn.getEnvFromTLD=void 0;const n=hc();function r(a){const{host:u}=a;return u.endsWith(".org")||u.endsWith(".co")?n.Env.PRODUCTION:u.endsWith(".today")||u.endsWith(".net")?n.Env.STAGING:u.endsWith(".io")||u.endsWith(".zone")?n.Env.DEVELOPMENT:null}Zn.getEnvFromTLD=r;function o(a){const u=new URLSearchParams(a.search),c=u.get("ENV")||u.get("env");if(c){const d=c.toLowerCase();if((0,n.isEnv)(d))return d}return null}return Zn.getEnvFromQueryParam=o,Zn}var Rm;function hc(){return Rm||(Rm=1,function(n){var r={};Object.defineProperty(n,"__esModule",{value:!0}),n.getEnv=n.getDefaultEnv=n.parseEnvVar=n.isEnv=n.getEnvList=n.Env=void 0;const o=T1();var a;(function(y){y.DEVELOPMENT="dev",y.STAGING="stg",y.PRODUCTION="prod"})(a=n.Env||(n.Env={}));function u(){return Object.values(a)}n.getEnvList=u;function c(y){return u().includes(y)}n.isEnv=c;function d(y){if(c(y))return y;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${y}", possible values are ${u().map(S=>`"${S}"`).join(", ")}.`)}n.parseEnvVar=d;function h(y={}){const{DCL_DEFAULT_ENV:S,REACT_APP_DCL_DEFAULT_ENV:v,VITE_DCL_DEFAULT_ENV:I,GATSBY_DCL_DEFAULT_ENV:R}=y;if(S&&v&&S!==v)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(S&&I&&S!==I)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(S&&R&&S!==R)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(v&&R&&v!==R)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return S?d(S):v?d(v):I?d(I):R?d(R):a.PRODUCTION}n.getDefaultEnv=h;function p(y){if(typeof window<"u"){const v=(0,o.getEnvFromQueryParam)(window.location);if(v)return v;const I=(0,o.getEnvFromTLD)(window.location);if(I)return I}return h(typeof y>"u"&&typeof process=="object"&&typeof r=="object"?r:y)}n.getEnv=p}(Sl)),Sl}var Nm;function w1(){if(Nm)return Wi;Nm=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.createConfig=void 0;const n=hc();function r(o,a){const u=(0,n.getEnv)(a==null?void 0:a.systemEnvVariables),c=o[u];return{get:(d,h="")=>{if(!c)throw new Error(`Could not find a config for env=${u}`);return d in c?c[d]:h},is:d=>u===d,getEnv:()=>u}}return Wi.createConfig=r,Wi}var Pm;function k1(){return Pm||(Pm=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.getEnv=n.Env=n.createConfig=void 0;var r=w1();Object.defineProperty(n,"createConfig",{enumerable:!0,get:function(){return r.createConfig}});var o=hc();Object.defineProperty(n,"Env",{enumerable:!0,get:function(){return o.Env}}),Object.defineProperty(n,"getEnv",{enumerable:!0,get:function(){return o.getEnv}})}(vl)),vl}var Gi=k1();const I1="development",C1="https://marketplace-api.decentraland.zone",R1="https://fc6203205a7c4a0e1408cc9e7fdad2be@o4504361728212992.ingest.us.sentry.io/4510982059130880",N1="https://peer-ap1.decentraland.zone",P1="amoy",x1={ENVIRONMENT:I1,MARKETPLACE_SERVER_URL:C1,SENTRY_DSN:R1,PEER_URL:N1,NETWORK:P1},L1="staging",A1="https://marketplace-api.decentraland.org",O1="https://fc6203205a7c4a0e1408cc9e7fdad2be@o4504361728212992.ingest.us.sentry.io/4510982059130880",D1="https://peer.decentraland.org",M1="matic",F1={ENVIRONMENT:L1,MARKETPLACE_SERVER_URL:A1,SENTRY_DSN:O1,PEER_URL:D1,NETWORK:M1},$1="production",U1="https://marketplace-api.decentraland.org",b1="https://fc6203205a7c4a0e1408cc9e7fdad2be@o4504361728212992.ingest.us.sentry.io/4510982059130880",z1="https://peer.decentraland.org",j1="matic",H1={ENVIRONMENT:$1,MARKETPLACE_SERVER_URL:U1,SENTRY_DSN:b1,PEER_URL:z1,NETWORK:j1},Os=Gi.createConfig({[Gi.Env.DEVELOPMENT]:x1,[Gi.Env.STAGING]:F1,[Gi.Env.PRODUCTION]:H1});let gc;function B1(){const n=Os.get("SENTRY_DSN"),r=Os.get("ENVIRONMENT"),o=`${Os.get("SENTRY_RELEASE_PREFIX","wearable-preview")}@2.14.2`,a=!Os.is(Gi.Env.DEVELOPMENT);gc=e1({dsn:n,environment:r,release:o,enabled:a,defaultIntegrations:!1,integrations:[ug(),cg(),Fh(),y1({enableLongTask:!1,enableLongAnimationFrame:!1,enableInp:!1,enableElementTiming:!1})],initialScope:{tags:{app:"wearable-preview",parentUrl:document.referrer||"unknown"}}}),console.log("Sentry initialized",{environment:r,dsn:n,release:o})}function V1(n,r){gc&&yh(n,r?{extra:r}:void 0)}function Z1(n,r){gc&&bS(n,{extra:r})}const W1=()=>{const n=navigator.userAgent.toLowerCase();let r="Unknown",o="Unknown",a="Unknown";if(/android/.test(n)){r="Android";const u=n.match(/android\s*([0-9.]+)/);u&&(a=u[1])}else if(/iphone|ipad|ipod/.test(n)){r="iOS";const u=n.match(/os\s*([0-9_]+)/);u&&(a=u[1].replace(/_/g,"."))}else if(/macintosh|mac os x/.test(n)){r="macOS";const u=n.match(/mac os x\s*([0-9_]+)/);u&&(a=u[1].replace(/_/g,"."))}else if(/windows/.test(n)){r="Windows";const u=n.match(/windows nt\s*([0-9.]+)/);u&&(a=u[1])}else if(/linux/.test(n)){r="Linux";const u=n.match(/\(([^)]+)\)/);u&&(a=u[1])}if(/chrome|crios/.test(n)){o="Chrome";const u=n.match(/(?:chrome|crios)\/([0-9.]+)/);u&&(a=u[1])}else if(/firefox|fxios/.test(n)){o="Firefox";const u=n.match(/(?:firefox|fxios)\/([0-9.]+)/);u&&(a=u[1])}else if(/safari/.test(n)&&!/chrome|crios|android/.test(n)){o="Safari";const u=n.match(/version\/([0-9.]+)/);u&&(a=u[1])}else if(/edg/.test(n)){o="Edge";const u=n.match(/edg\/([0-9.]+)/);u&&(a=u[1])}return{platform:r,browser:o,version:a}},G1=async()=>{const{platform:n,browser:r,version:o}=W1();if(!navigator.gpu)return console.warn("❌ navigator.gpu is not available"),{isSupported:!1,isAvailable:!1,error:"WebGPU is not supported in this browser. Please use a compatible browser.",platform:n,browser:r,platformVersion:o,browserVersion:o};try{const a=await navigator.gpu.requestAdapter();return a?await a.requestDevice()?{isSupported:!0,isAvailable:!0,platform:n,browser:r,platformVersion:o,browserVersion:o}:(console.warn("❌ Failed to create WebGPU device"),{isSupported:!0,isAvailable:!1,error:"WebGPU adapter found but failed to create device. This might be due to hardware limitations or driver issues.",platform:n,browser:r,platformVersion:o,browserVersion:o}):(console.warn("❌ No WebGPU adapter available"),{isSupported:!0,isAvailable:!1,error:"WebGPU is supported but no adapter is available. This might be due to hardware limitations or driver issues.",platform:n,browser:r,platformVersion:o,browserVersion:o})}catch(a){return console.error("❌ WebGPU detection error:",a),V1(a,{phase:"detectWebGPU"}),{isSupported:!0,isAvailable:!1,error:`WebGPU is supported but failed to initialize: ${a instanceof Error?a.message:"Unknown error"}`,platform:n,browser:r,platformVersion:o,browserVersion:o}}},q1=Lm.lazy(()=>xm(()=>import("./UnityPreview-bNRZ1RmV.js"),__vite__mapDeps([0,1,2]),import.meta.url)),Y1=Lm.lazy(()=>xm(()=>import("./Preview-DOkVVEzm.js").then(n=>n.my),__vite__mapDeps([3,1,4]),import.meta.url));B1();const K1=()=>{const r=new URLSearchParams(window.location.search).get("unity")==="true",{isAvailable:o}=C_(),a=r&&o;return tr.jsx(eo.Suspense,{fallback:null,children:a?tr.jsx(q1,{}):tr.jsx(Y1,{})})},Q1=async()=>{const n=await G1();w_.createRoot(document.getElementById("root")).render(tr.jsx(eo.StrictMode,{children:tr.jsx(k_,{value:n,children:tr.jsx(K1,{})})}))};Q1();export{Lm as R,xm as _,V1 as a,Os as b,Z1 as c,J1 as d,X1 as e,m_ as g,tr as j,eo as r};
61
+ `).reduce((o,a)=>{const[u,c]=a.split(": ");return c&&(o[u.toLowerCase()]=c),o},{}):{}}const yl=[],Bs=new Map,$r=new Map,qT=60;function YT(){if(ho()&&yt()){const r=KT();return()=>{r()}}return()=>{}}const zl={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function KT(){return J0(QT)}const QT=({metric:n})=>{if(n.value==null)return;const r=Re(n.value);if(r>qT)return;const o=n.entries.find(P=>P.duration===n.value&&zl[P.name]);if(!o)return;const{interactionId:a}=o,u=zl[o.name],c=Re(yt()+o.startTime),d=_t(),h=d?tt(d):void 0,p=a!=null?Bs.get(a):void 0,y=(p==null?void 0:p.span)||h,S=y?de(y).description:me().getScopeData().transactionName,v=(p==null?void 0:p.elementName)||Nt(o.target),I={[$e]:"auto.http.browser.inp",[un]:`ui.interaction.${u}`,[Zr]:o.duration},R=pc({name:v,transaction:S,attributes:I,startTime:c});R&&(R.addEvent("inp",{[oo]:"millisecond",[so]:n.value}),R.end(c+r))};function XT(){const n=Object.keys(zl);g0()&&n.forEach(u=>{Q.addEventListener(u,r,{capture:!0,passive:!0})});function r(u){const c=u.target;if(!c)return;const d=Nt(c),h=Math.round(u.timeStamp);if($r.set(h,d),$r.size>50){const p=$r.keys().next().value;p!==void 0&&$r.delete(p)}}function o(u){const c=Math.round(u.startTime);let d=$r.get(c);if(!d)for(let h=-5;h<=5;h++){const p=$r.get(c+h);if(p){d=p;break}}return d||"<unknown>"}const a=({entries:u})=>{const c=_t(),d=c&&tt(c);u.forEach(h=>{if(!iT(h))return;const p=h.interactionId;if(p==null||Bs.has(p))return;const y=h.target?Nt(h.target):o(h);if(yl.length>10){const S=yl.shift();Bs.delete(S)}yl.push(p),Bs.set(p,{span:d,elementName:y})})};qr("event",a),qr("first-input",a)}const JT=40;function ZT(n,r=HT("fetch")){let o=0,a=0;async function u(c){const d=c.body.length;o+=d,a++;const h={body:c.body,method:"POST",referrerPolicy:"strict-origin",headers:n.headers,keepalive:o<=6e4&&a<15,...n.fetchOptions};try{const p=await r(n.url,h);return{statusCode:p.status,headers:{"x-sentry-rate-limits":p.headers.get("X-Sentry-Rate-Limits"),"retry-after":p.headers.get("Retry-After")}}}catch(p){throw BT("fetch"),p}finally{o-=d,a--}}return sE(n,u,sc(n.bufferSize||JT))}const Pt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ew=30,tw=50;function jl(n,r,o,a){const u={filename:n,function:r==="<anonymous>"?sr:r,in_app:!0};return o!==void 0&&(u.lineno=o),a!==void 0&&(u.colno=a),u}const nw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iw=/\((\S*)(?::(\d+))(?::(\d+))\)/,ow=/at (.+?) ?\(data:(.+?),/,sw=n=>{const r=n.match(ow);if(r)return{filename:`<data:${r[2]}>`,function:r[1]};const o=nw.exec(n);if(o){const[,u,c,d]=o;return jl(u,sr,+c,+d)}const a=rw.exec(n);if(a){if(a[2]&&a[2].indexOf("eval")===0){const h=iw.exec(a[2]);h&&(a[2]=h[1],a[3]=h[2],a[4]=h[3])}const[c,d]=ag(a[1]||sr,a[2]);return jl(d,c,a[3]?+a[3]:void 0,a[4]?+a[4]:void 0)}},aw=[ew,sw],uw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,lw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cw=n=>{const r=uw.exec(n);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){const c=lw.exec(r[3]);c&&(r[1]=r[1]||"eval",r[3]=c[1],r[4]=c[2],r[5]="")}let a=r[3],u=r[1]||sr;return[u,a]=ag(u,a),jl(a,u,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},fw=[tw,cw],dw=[aw,fw],pw=Mm(...dw),ag=(n,r)=>{const o=n.indexOf("safari-extension")!==-1,a=n.indexOf("safari-web-extension")!==-1;return o||a?[n.indexOf("@")!==-1?n.split("@")[0]:sr,o?`safari-extension:${r}`:`safari-web-extension:${r}`]:[n,r]},As=1024,mw="Breadcrumbs",hw=(n={})=>{const r={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...n};return{name:mw,setup(o){r.console&&HE(vw(o)),r.dom&&MT(_w(o,r.dom)),r.xhr&&sg(Sw(o)),r.fetch&&zh(Ew(o)),r.history&&mc(Tw(o)),r.sentry&&o.on("beforeSendEvent",yw(o))}}},gw=hw;function yw(n){return function(o){he()===n&&ar({category:`sentry.${o.type==="transaction"?"transaction":"event"}`,event_id:o.event_id,level:o.level,message:er(o)},{event:o})}}function _w(n,r){return function(a){if(he()!==n)return;let u,c,d=typeof r=="object"?r.serializeAttribute:void 0,h=typeof r=="object"&&typeof r.maxStringLength=="number"?r.maxStringLength:void 0;h&&h>As&&(Pt&&$.warn(`\`dom.maxStringLength\` cannot exceed ${As}, but a value of ${h} was configured. Sentry will use ${As} instead.`),h=As),typeof d=="string"&&(d=[d]);try{const y=a.event,S=ww(y)?y.target:y;u=Nt(S,{keyAttrs:d,maxStringLength:h}),c=Hm(S)}catch{u="<unknown>"}if(u.length===0)return;const p={category:`ui.${a.name}`,message:u};c&&(p.data={"ui.component_name":c}),ar(p,{event:a.event,name:a.name,global:a.global})}}function vw(n){return function(o){if(he()!==n)return;const a={category:"console",data:{arguments:o.args,logger:"console"},level:VE(o.level),message:Pp(o.args," ")};if(o.level==="assert")if(o.args[0]===!1)a.message=`Assertion failed: ${Pp(o.args.slice(1)," ")||"console.assert"}`,a.data.arguments=o.args.slice(1);else return;ar(a,{input:o.args,level:o.level})}}function Sw(n){return function(o){if(he()!==n)return;const{startTimestamp:a,endTimestamp:u}=o,c=o.xhr[br];if(!a||!u||!c)return;const{method:d,url:h,status_code:p,body:y}=c,S={method:d,url:h,status_code:p},v={xhr:o.xhr,input:y,startTimestamp:a,endTimestamp:u},I={category:"xhr",data:S,type:"http",level:bh(p)};n.emit("beforeOutgoingRequestBreadcrumb",I,v),ar(I,v)}}function Ew(n){return function(o){if(he()!==n)return;const{startTimestamp:a,endTimestamp:u}=o;if(u&&!(o.fetchData.url.match(/sentry_key/)&&o.fetchData.method==="POST"))if(o.fetchData.method,o.fetchData.url,o.error){const c=o.fetchData,d={data:o.error,input:o.args,startTimestamp:a,endTimestamp:u},h={category:"fetch",data:c,level:"error",type:"http"};n.emit("beforeOutgoingRequestBreadcrumb",h,d),ar(h,d)}else{const c=o.response,d={...o.fetchData,status_code:c==null?void 0:c.status};o.fetchData.request_body_size,o.fetchData.response_body_size,c==null||c.status;const h={input:o.args,response:c,startTimestamp:a,endTimestamp:u},p={category:"fetch",data:d,type:"http",level:bh(d.status_code)};n.emit("beforeOutgoingRequestBreadcrumb",p,h),ar(p,h)}}}function Tw(n){return function(o){if(he()!==n)return;let a=o.from,u=o.to;const c=or(ne.location.href);let d=a?or(a):void 0;const h=or(u);d!=null&&d.path||(d=c),c.protocol===h.protocol&&c.host===h.host&&(u=h.relative),c.protocol===d.protocol&&c.host===d.host&&(a=d.relative),ar({category:"navigation",data:{from:a,to:u}})}}function ww(n){return!!n&&!!n.target}const kw=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Iw="BrowserApiErrors",Cw=(n={})=>{const r={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...n};return{name:Iw,setupOnce(){r.setTimeout&&gt(ne,"setTimeout",_m),r.setInterval&&gt(ne,"setInterval",_m),r.requestAnimationFrame&&gt(ne,"requestAnimationFrame",Nw),r.XMLHttpRequest&&"XMLHttpRequest"in ne&&gt(XMLHttpRequest.prototype,"send",Pw);const o=r.eventTarget;o&&(Array.isArray(o)?o:kw).forEach(u=>xw(u,r))}}},Rw=Cw;function _m(n){return function(...r){const o=r[0];return r[0]=Gr(o,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${on(n)}`}}),n.apply(this,r)}}function Nw(n){return function(r){return n.apply(this,[Gr(r,{mechanism:{data:{handler:on(n)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Pw(n){return function(...r){const o=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(u=>{u in o&&typeof o[u]=="function"&&gt(o,u,function(c){const d={mechanism:{data:{handler:on(c)},handled:!1,type:`auto.browser.browserapierrors.xhr.${u}`}},h=Kl(c);return h&&(d.mechanism.data.handler=on(h)),Gr(c,d)})}),n.apply(this,r)}}function xw(n,r){var u,c;const a=(u=ne[n])==null?void 0:u.prototype;(c=a==null?void 0:a.hasOwnProperty)!=null&&c.call(a,"addEventListener")&&(gt(a,"addEventListener",function(d){return function(h,p,y){try{Lw(p)&&(p.handleEvent=Gr(p.handleEvent,{mechanism:{data:{handler:on(p),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&Aw(this,h,p),d.apply(this,[h,Gr(p,{mechanism:{data:{handler:on(p),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),y])}}),gt(a,"removeEventListener",function(d){return function(h,p,y){try{const S=p.__sentry_wrapped__;S&&d.call(this,h,S,y)}catch{}return d.call(this,h,p,y)}}))}function Lw(n){return typeof n.handleEvent=="function"}function Aw(n,r,o){n&&typeof n=="object"&&"removeEventListener"in n&&typeof n.removeEventListener=="function"&&n.removeEventListener(r,o)}const Ow=(n={})=>{const r=n.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof ne.document>"u"){Pt&&$.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Qp({ignoreDuration:!0}),cl();const o=ln();let a=o.getUser();o.addScopeListener(u=>{const c=u.getUser();((a==null?void 0:a.id)!==(c==null?void 0:c.id)||(a==null?void 0:a.ip_address)!==(c==null?void 0:c.ip_address))&&(cl(),a=c)}),r==="route"&&mc(({from:u,to:c})=>{u!==c&&(Qp({ignoreDuration:!0}),cl())})}}},Dw="CultureContext",Mw=()=>({name:Dw,preprocessEvent(n){var o;const r=$w();r&&(n.contexts={...n.contexts,culture:{...r,...(o=n.contexts)==null?void 0:o.culture}})}}),Fw=Mw;function $w(){try{const n=ne.Intl;if(!n)return;const r=n.DateTimeFormat().resolvedOptions();return{locale:r.locale,timezone:r.timeZone,calendar:r.calendar}}catch{return}}const Uw="GlobalHandlers",bw=(n={})=>{const r={onerror:!0,onunhandledrejection:!0,...n};return{name:Uw,setupOnce(){Error.stackTraceLimit=50},setup(o){r.onerror&&(zw(o),vm("onerror")),r.onunhandledrejection&&(jw(o),vm("onunhandledrejection"))}}},ug=bw;function zw(n){$m(r=>{const{stackParser:o,attachStacktrace:a}=lg();if(he()!==n||Hh())return;const{msg:u,url:c,line:d,column:h,error:p}=r,y=Vw(cc(o,p||u,void 0,a,!1),c,d,h);y.level="error",_h(y,{originalException:p,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function jw(n){Um(r=>{const{stackParser:o,attachStacktrace:a}=lg();if(he()!==n||Hh())return;const u=Hw(r),c=jr(u)?Bw(u):cc(o,u,void 0,a,!0);c.level="error",_h(c,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Hw(n){if(jr(n))return n;try{if("reason"in n)return n.reason;if("detail"in n&&"reason"in n.detail)return n.detail.reason}catch{}return n}function Bw(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function Vw(n,r,o,a){const u=n.exception=n.exception||{},c=u.values=u.values||[],d=c[0]=c[0]||{},h=d.stacktrace=d.stacktrace||{},p=h.frames=h.frames||[],y=a,S=o,v=Ww(r)??to();return p.length===0&&p.push({colno:y,filename:v,function:sr,in_app:!0,lineno:S}),n}function vm(n){Pt&&$.log(`Global Handler attached: ${n}`)}function lg(){const n=he();return(n==null?void 0:n.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Ww(n){if(!(!nn(n)||n.length===0))return n.startsWith("data:")?`<${An(n,!1)}>`:n}const Gw=()=>({name:"HttpContext",preprocessEvent(n){var a;if(!ne.navigator&&!ne.location&&!ne.document)return;const r=ac(),o={...r.headers,...(a=n.request)==null?void 0:a.headers};n.request={...r,...n.request,headers:o}}}),qw="cause",Yw=5,Kw="LinkedErrors",Qw=(n={})=>{const r=n.limit||Yw,o=n.key||qw;return{name:Kw,preprocessEvent(a,u,c){const d=c.getOptions();jE(uc,d.stackParser,o,r,a,u)}}},cg=Qw;function Xw(){return Jw()?(Pt&&Kr(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Jw(){var c;if(typeof ne.window>"u")return!1;const n=ne;if(n.nw)return!1;const r=n.chrome||n.browser;if(!((c=r==null?void 0:r.runtime)!=null&&c.id))return!1;const o=to(),a=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(ne===ne.top&&a.some(d=>o.startsWith(`${d}://`)))}function Zw(n){return[OE(),PE(),JE(),Rw(),gw(),ug(),cg(),Fh(),Gw(),Fw(),Ow()]}function e1(n={}){const r=!n.skipBrowserExtensionCheck&&Xw();let o=n.defaultIntegrations==null?Zw():n.defaultIntegrations;const a={...n,enabled:r?!1:n.enabled,stackParser:D_(n.stackParser||pw),integrations:qS({integrations:n.integrations,defaultIntegrations:o}),transport:n.transport||ZT};return yE(x0,a)}function t1(n){return n.split(",").some(r=>r.trim().startsWith("sentry-"))}function fg(n){try{return new URL(n,ne.location.origin).href}catch{return}}function n1(n){return n.entryType==="resource"&&"initiatorType"in n&&typeof n.nextHopProtocol=="string"&&(n.initiatorType==="fetch"||n.initiatorType==="xmlhttprequest")}function dg(n){try{return new Headers(n)}catch{return}}const Sm=new WeakMap,_l=new Map,pg={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function r1(n,r){const{traceFetch:o,traceXHR:a,trackFetchStreamPerformance:u,shouldCreateSpanForRequest:c,enableHTTPTimings:d,tracePropagationTargets:h,onRequestSpanStart:p,onRequestSpanEnd:y}={...pg,...r},S=typeof c=="function"?c:P=>!0,v=P=>i1(P,h),I={},R=n.getOptions().propagateTraceparent;o&&(n.addEventProcessor(P=>(P.type==="transaction"&&P.spans&&P.spans.forEach(F=>{if(F.op==="http.client"){const U=_l.get(F.span_id);U&&(F.timestamp=U/1e3,_l.delete(F.span_id))}}),P)),u&&u0(P=>{if(P.response){const F=Sm.get(P.response);F&&P.endTimestamp&&_l.set(F,P.endTimestamp)}}),zh(P=>{const F=ZE(P,S,v,I,{propagateTraceparent:R,onRequestSpanEnd:y});if(P.response&&P.fetchData.__span&&Sm.set(P.response,P.fetchData.__span),F){const U=fg(P.fetchData.url),se=U?or(U).host:void 0;F.setAttributes({"http.url":U?An(U):void 0,"server.address":se}),d&&Em(F),p==null||p(F,{headers:P.headers})}})),a&&sg(P=>{var U;const F=o1(P,S,v,I,R,y);F&&(d&&Em(F),p==null||p(F,{headers:dg((U=P.xhr.__sentry_xhr_v3__)==null?void 0:U.request_headers)}))})}function Em(n){const{url:r}=de(n).data;if(!r||typeof r!="string")return;const o=qr("resource",({entries:a})=>{a.forEach(u=>{n1(u)&&u.name.endsWith(r)&&(n.setAttributes(og(u)),setTimeout(o))})})}function i1(n,r){const o=to();if(o){let a,u;try{a=new URL(n,o),u=new URL(o).origin}catch{return!1}const c=a.origin===u;return r?Ln(a.toString(),r)||c&&Ln(a.pathname,r):c}else{const a=!!n.match(/^\/(?!\/)/);return r?Ln(n,r):a}}function o1(n,r,o,a,u,c){const d=n.xhr,h=d==null?void 0:d[br];if(!d||d.__sentry_own_request__||!h)return;const{url:p,method:y}=h,S=Ut()&&r(p);if(n.endTimestamp){const se=d.__sentry_xhr_span_id__;if(!se)return;const _e=a[se];_e&&(S&&h.status_code!==void 0&&(Ym(_e,h.status_code),_e.end(),c==null||c(_e,{headers:dg(GT(d)),error:n.error})),delete a[se]);return}const v=fg(p),I=or(v||p),R=An(EE(p)),P=!!_t(),F=S&&P?ti({name:`${y} ${R}`,attributes:{url:An(p),type:"xhr","http.method":y,"http.url":v?An(v):void 0,"server.address":I==null?void 0:I.host,[$e]:"auto.http.browser",[un]:"http.client",...(I==null?void 0:I.search)&&{"http.query":I==null?void 0:I.search},...(I==null?void 0:I.hash)&&{"http.fragment":I==null?void 0:I.hash}}}):new Mn;d.__sentry_xhr_span_id__=F.spanContext().spanId,a[d.__sentry_xhr_span_id__]=F,o(p)&&s1(d,Ut()&&P?F:void 0,u);const U=he();return U&&U.emit("beforeOutgoingRequestSpan",F,n),F}function s1(n,r,o){const{"sentry-trace":a,baggage:u,traceparent:c}=Dh({span:r,propagateTraceparent:o});a&&a1(n,a,u,c)}function a1(n,r,o,a){var c;const u=(c=n.__sentry_xhr_v3__)==null?void 0:c.request_headers;if(!(u!=null&&u["sentry-trace"]||!n.setRequestHeader))try{if(n.setRequestHeader("sentry-trace",r),a&&!(u!=null&&u.traceparent)&&n.setRequestHeader("traceparent",a),o){const d=u==null?void 0:u.baggage;(!d||!t1(d))&&n.setRequestHeader("baggage",o)}}catch{}}function u1(){ne.document?ne.document.addEventListener("visibilitychange",()=>{const n=_t();if(!n)return;const r=tt(n);if(ne.document.hidden&&r){const o="cancelled",{op:a,status:u}=de(r);Pt&&$.log(`[Tracing] Transaction: ${o} -> since tab moved to the background, op: ${a}`),u||r.setStatus({code:Fe,message:o}),r.setAttribute("sentry.cancellation_reason","document.hidden"),r.end()}}):Pt&&$.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const l1=3600,mg="sentry_previous_trace",c1="sentry.previous_trace";function f1(n,{linkPreviousTrace:r,consistentTraceSampling:o}){const a=r==="session-storage";let u=a?m1():void 0;n.on("spanStart",d=>{if(tt(d)!==d)return;const h=me().getPropagationContext();u=d1(u,d,h),a&&p1(u)});let c=!0;o&&n.on("beforeSampling",d=>{if(!u)return;const h=me(),p=h.getPropagationContext();if(c&&p.parentSpanId){c=!1;return}h.setPropagationContext({...p,dsc:{...p.dsc,sample_rate:String(u.sampleRate),sampled:String(Hl(u.spanContext))},sampleRand:u.sampleRand}),d.parentSampled=Hl(u.spanContext),d.parentSampleRate=u.sampleRate,d.spanAttributes={...d.spanAttributes,[qm]:u.sampleRate}})}function d1(n,r,o){const a=de(r);function u(){var h,p;try{return Number((h=o.dsc)==null?void 0:h.sample_rate)??Number((p=a.data)==null?void 0:p[Ql])}catch{return 0}}const c={spanContext:r.spanContext(),startTimestamp:a.start_timestamp,sampleRate:u(),sampleRand:o.sampleRand};if(!n)return c;const d=n.spanContext;return d.traceId===a.trace_id?n:(Date.now()/1e3-n.startTimestamp<=l1&&(Pt&&$.log(`Adding previous_trace \`${JSON.stringify(d)}\` link to span \`${JSON.stringify({op:a.op,...r.spanContext()})}\``),r.addLink({context:d,attributes:{[uv]:"previous_trace"}}),r.setAttribute(c1,`${d.traceId}-${d.spanId}-${Hl(d)?1:0}`)),c)}function p1(n){try{ne.sessionStorage.setItem(mg,JSON.stringify(n))}catch(r){Pt&&$.warn("Could not store previous trace in sessionStorage",r)}}function m1(){var n;try{const r=(n=ne.sessionStorage)==null?void 0:n.getItem(mg);return JSON.parse(r)}catch{return}}function Hl(n){return n.traceFlags===1}const h1="BrowserTracing",g1={...Us,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...pg},y1=(n={})=>{const r={name:void 0,source:void 0},o=ne.document,{enableInp:a,enableElementTiming:u,enableLongTask:c,enableLongAnimationFrame:d,_experiments:{enableInteractions:h,enableStandaloneClsSpans:p,enableStandaloneLcpSpans:y},beforeStartSpan:S,idleTimeout:v,finalTimeout:I,childSpanTimeout:R,markBackgroundSpan:P,traceFetch:F,traceXHR:U,trackFetchStreamPerformance:se,shouldCreateSpanForRequest:_e,enableHTTPTimings:Oe,ignoreResourceSpans:xe,ignorePerformanceApiSpans:Xe,instrumentPageLoad:Le,instrumentNavigation:X,detectRedirects:ce,linkPreviousTrace:Je,consistentTraceSampling:nt,enableReportPageLoaded:Ue,onRequestSpanStart:Ge,onRequestSpanEnd:we}={...g1,...n};let re,be,ve;function fe(L,z,O=!0){const T=z.op==="pageload",N=z.name,Y=S?S(z):z,J=Y.attributes||{};if(N!==Y.name&&(J[Vt]="custom",Y.attributes=J),!O){const ae=lr();ti({...Y,startTime:ae}).end(ae);return}r.name=Y.name,r.source=J[Vt];const Z=hh(Y,{idleTimeout:v,finalTimeout:I,childSpanTimeout:R,disableAutoFinish:T,beforeSpanEnd:ae=>{re==null||re(),ST(ae,{recordClsOnPageloadSpan:!p,recordLcpOnPageloadSpan:!y,ignoreResourceSpans:xe,ignorePerformanceApiSpans:Xe}),km(L,void 0);const ue=me(),ge=ue.getPropagationContext();ue.setPropagationContext({...ge,traceId:Z.spanContext().traceId,sampled:bn(Z),dsc:Dn(ae)}),T&&(ve=void 0)},trimIdleSpanEndTimestamp:!Ue});T&&Ue&&(ve=Z),km(L,Z);function te(){o&&["interactive","complete"].includes(o.readyState)&&L.emit("idleSpanEnableAutoFinish",Z)}T&&!Ue&&o&&(o.addEventListener("readystatechange",()=>{te()}),te())}return{name:h1,setup(L){if(Uv(),re=pT({recordClsStandaloneSpans:p||!1,recordLcpStandaloneSpans:y||!1,client:L}),a&&YT(),u&&AT(),d&&oe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?hT():c&&mT(),h&&gT(),ce&&o){const O=()=>{be=Be()};addEventListener("click",O,{capture:!0}),addEventListener("keydown",O,{capture:!0,passive:!0})}function z(){const O=Zi(L);O&&!de(O).timestamp&&(Pt&&$.log(`[Tracing] Finishing current active span with op: ${de(O).op}`),O.setAttribute(Ki,"cancelled"),O.end())}L.on("startNavigationSpan",(O,T)=>{if(he()!==L)return;if(T!=null&&T.isRedirect){Pt&&$.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),fe(L,{op:"navigation.redirect",...O},!1);return}be=void 0,z(),ln().setPropagationContext({traceId:an(),sampleRand:Math.random(),propagationSpanId:Ut()?void 0:rn()});const N=me();N.setPropagationContext({traceId:an(),sampleRand:Math.random(),propagationSpanId:Ut()?void 0:rn()}),N.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(L,{op:"navigation",...O,parentSpan:null,forceTransaction:!0})}),L.on("startPageLoadSpan",(O,T={})=>{if(he()!==L)return;z();const N=T.sentryTrace||Tm("sentry-trace")||wm("sentry-trace"),Y=T.baggage||Tm("baggage")||wm("baggage"),J=Pv(N,Y),Z=me();Z.setPropagationContext(J),Ut()||(Z.getPropagationContext().propagationSpanId=rn()),Z.setSDKProcessingMetadata({normalizedRequest:ac()}),fe(L,{op:"pageload",...O})}),L.on("endPageloadSpan",()=>{Ue&&ve&&(ve.setAttribute(Ki,"reportPageLoaded"),ve.end())})},afterAllSetup(L){let z=to();if(Je!=="off"&&f1(L,{linkPreviousTrace:Je,consistentTraceSampling:nt}),ne.location){if(Le){const O=yt();_1(L,{name:ne.location.pathname,startTime:O?O/1e3:void 0,attributes:{[Vt]:"url",[$e]:"auto.pageload.browser"}})}X&&mc(({to:O,from:T})=>{if(T===void 0&&(z==null?void 0:z.indexOf(O))!==-1){z=void 0;return}z=void 0;const N=Oh(O),Y=Zi(L),J=Y&&ce&&E1(Y,be);v1(L,{name:(N==null?void 0:N.pathname)||ne.location.pathname,attributes:{[Vt]:"url",[$e]:"auto.navigation.browser"}},{url:O,isRedirect:J})})}P&&u1(),h&&S1(L,v,I,R,r),a&&XT(),r1(L,{traceFetch:F,traceXHR:U,trackFetchStreamPerformance:se,tracePropagationTargets:L.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_e,enableHTTPTimings:Oe,onRequestSpanStart:Ge,onRequestSpanEnd:we})}}};function _1(n,r,o){n.emit("startPageLoadSpan",r,o),me().setTransactionName(r.name);const a=Zi(n);return a&&n.emit("afterStartPageLoadSpan",a),a}function v1(n,r,o){const{url:a,isRedirect:u}=o||{};n.emit("beforeStartNavigationSpan",r,{isRedirect:u}),n.emit("startNavigationSpan",r,{isRedirect:u});const c=me();return c.setTransactionName(r.name),a&&!u&&c.setSDKProcessingMetadata({normalizedRequest:{...ac(),url:a}}),Zi(n)}function Tm(n){const r=ne.document,o=r==null?void 0:r.querySelector(`meta[name=${n}]`);return(o==null?void 0:o.getAttribute("content"))||void 0}function wm(n){var a,u,c;const r=(u=(a=ne.performance)==null?void 0:a.getEntriesByType)==null?void 0:u.call(a,"navigation")[0],o=(c=r==null?void 0:r.serverTiming)==null?void 0:c.find(d=>d.name===n);return o==null?void 0:o.description}function S1(n,r,o,a,u){const c=ne.document;let d;const h=()=>{const p="ui.action.click",y=Zi(n);if(y){const S=de(y).op;if(["navigation","pageload"].includes(S)){Pt&&$.warn(`[Tracing] Did not create ${p} span because a pageload or navigation span is in progress.`);return}}if(d&&(d.setAttribute(Ki,"interactionInterrupted"),d.end(),d=void 0),!u.name){Pt&&$.warn(`[Tracing] Did not create ${p} transaction because _latestRouteName is missing.`);return}d=hh({name:u.name,op:p,attributes:{[Vt]:u.source||"url"}},{idleTimeout:r,finalTimeout:o,childSpanTimeout:a})};c&&addEventListener("click",h,{capture:!0})}const hg="_sentry_idleSpan";function Zi(n){return n[hg]}function km(n,r){ct(n,hg,r)}const Im=1.5;function E1(n,r){const o=de(n),a=lr(),u=o.start_timestamp;return!(a-u>Im||r&&a-r<=Im)}var vl={},Wi={},Sl={},Zn={},Cm;function T1(){if(Cm)return Zn;Cm=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getEnvFromQueryParam=Zn.getEnvFromTLD=void 0;const n=hc();function r(a){const{host:u}=a;return u.endsWith(".org")||u.endsWith(".co")?n.Env.PRODUCTION:u.endsWith(".today")||u.endsWith(".net")?n.Env.STAGING:u.endsWith(".io")||u.endsWith(".zone")?n.Env.DEVELOPMENT:null}Zn.getEnvFromTLD=r;function o(a){const u=new URLSearchParams(a.search),c=u.get("ENV")||u.get("env");if(c){const d=c.toLowerCase();if((0,n.isEnv)(d))return d}return null}return Zn.getEnvFromQueryParam=o,Zn}var Rm;function hc(){return Rm||(Rm=1,function(n){var r={};Object.defineProperty(n,"__esModule",{value:!0}),n.getEnv=n.getDefaultEnv=n.parseEnvVar=n.isEnv=n.getEnvList=n.Env=void 0;const o=T1();var a;(function(y){y.DEVELOPMENT="dev",y.STAGING="stg",y.PRODUCTION="prod"})(a=n.Env||(n.Env={}));function u(){return Object.values(a)}n.getEnvList=u;function c(y){return u().includes(y)}n.isEnv=c;function d(y){if(c(y))return y;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${y}", possible values are ${u().map(S=>`"${S}"`).join(", ")}.`)}n.parseEnvVar=d;function h(y={}){const{DCL_DEFAULT_ENV:S,REACT_APP_DCL_DEFAULT_ENV:v,VITE_DCL_DEFAULT_ENV:I,GATSBY_DCL_DEFAULT_ENV:R}=y;if(S&&v&&S!==v)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(S&&I&&S!==I)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(S&&R&&S!==R)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(v&&R&&v!==R)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return S?d(S):v?d(v):I?d(I):R?d(R):a.PRODUCTION}n.getDefaultEnv=h;function p(y){if(typeof window<"u"){const v=(0,o.getEnvFromQueryParam)(window.location);if(v)return v;const I=(0,o.getEnvFromTLD)(window.location);if(I)return I}return h(typeof y>"u"&&typeof process=="object"&&typeof r=="object"?r:y)}n.getEnv=p}(Sl)),Sl}var Nm;function w1(){if(Nm)return Wi;Nm=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.createConfig=void 0;const n=hc();function r(o,a){const u=(0,n.getEnv)(a==null?void 0:a.systemEnvVariables),c=o[u];return{get:(d,h="")=>{if(!c)throw new Error(`Could not find a config for env=${u}`);return d in c?c[d]:h},is:d=>u===d,getEnv:()=>u}}return Wi.createConfig=r,Wi}var Pm;function k1(){return Pm||(Pm=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.getEnv=n.Env=n.createConfig=void 0;var r=w1();Object.defineProperty(n,"createConfig",{enumerable:!0,get:function(){return r.createConfig}});var o=hc();Object.defineProperty(n,"Env",{enumerable:!0,get:function(){return o.Env}}),Object.defineProperty(n,"getEnv",{enumerable:!0,get:function(){return o.getEnv}})}(vl)),vl}var Gi=k1();const I1="development",C1="https://marketplace-api.decentraland.zone",R1="https://fc6203205a7c4a0e1408cc9e7fdad2be@o4504361728212992.ingest.us.sentry.io/4510982059130880",N1="https://peer-ap1.decentraland.zone",P1="amoy",x1={ENVIRONMENT:I1,MARKETPLACE_SERVER_URL:C1,SENTRY_DSN:R1,PEER_URL:N1,NETWORK:P1},L1="staging",A1="https://marketplace-api.decentraland.org",O1="https://fc6203205a7c4a0e1408cc9e7fdad2be@o4504361728212992.ingest.us.sentry.io/4510982059130880",D1="https://peer.decentraland.org",M1="matic",F1={ENVIRONMENT:L1,MARKETPLACE_SERVER_URL:A1,SENTRY_DSN:O1,PEER_URL:D1,NETWORK:M1},$1="production",U1="https://marketplace-api.decentraland.org",b1="https://fc6203205a7c4a0e1408cc9e7fdad2be@o4504361728212992.ingest.us.sentry.io/4510982059130880",z1="https://peer.decentraland.org",j1="matic",H1={ENVIRONMENT:$1,MARKETPLACE_SERVER_URL:U1,SENTRY_DSN:b1,PEER_URL:z1,NETWORK:j1},Os=Gi.createConfig({[Gi.Env.DEVELOPMENT]:x1,[Gi.Env.STAGING]:F1,[Gi.Env.PRODUCTION]:H1});let gc;function B1(){const n=Os.get("SENTRY_DSN"),r=Os.get("ENVIRONMENT"),o=`${Os.get("SENTRY_RELEASE_PREFIX","wearable-preview")}@2.14.3-25444034252.commit-59a8330`,a=!Os.is(Gi.Env.DEVELOPMENT);gc=e1({dsn:n,environment:r,release:o,enabled:a,defaultIntegrations:!1,integrations:[ug(),cg(),Fh(),y1({enableLongTask:!1,enableLongAnimationFrame:!1,enableInp:!1,enableElementTiming:!1})],initialScope:{tags:{app:"wearable-preview",parentUrl:document.referrer||"unknown"}}}),console.log("Sentry initialized",{environment:r,dsn:n,release:o})}function V1(n,r){gc&&yh(n,r?{extra:r}:void 0)}function Z1(n,r){gc&&bS(n,{extra:r})}const W1=()=>{const n=navigator.userAgent.toLowerCase();let r="Unknown",o="Unknown",a="Unknown";if(/android/.test(n)){r="Android";const u=n.match(/android\s*([0-9.]+)/);u&&(a=u[1])}else if(/iphone|ipad|ipod/.test(n)){r="iOS";const u=n.match(/os\s*([0-9_]+)/);u&&(a=u[1].replace(/_/g,"."))}else if(/macintosh|mac os x/.test(n)){r="macOS";const u=n.match(/mac os x\s*([0-9_]+)/);u&&(a=u[1].replace(/_/g,"."))}else if(/windows/.test(n)){r="Windows";const u=n.match(/windows nt\s*([0-9.]+)/);u&&(a=u[1])}else if(/linux/.test(n)){r="Linux";const u=n.match(/\(([^)]+)\)/);u&&(a=u[1])}if(/chrome|crios/.test(n)){o="Chrome";const u=n.match(/(?:chrome|crios)\/([0-9.]+)/);u&&(a=u[1])}else if(/firefox|fxios/.test(n)){o="Firefox";const u=n.match(/(?:firefox|fxios)\/([0-9.]+)/);u&&(a=u[1])}else if(/safari/.test(n)&&!/chrome|crios|android/.test(n)){o="Safari";const u=n.match(/version\/([0-9.]+)/);u&&(a=u[1])}else if(/edg/.test(n)){o="Edge";const u=n.match(/edg\/([0-9.]+)/);u&&(a=u[1])}return{platform:r,browser:o,version:a}},G1=async()=>{const{platform:n,browser:r,version:o}=W1();if(!navigator.gpu)return console.warn("❌ navigator.gpu is not available"),{isSupported:!1,isAvailable:!1,error:"WebGPU is not supported in this browser. Please use a compatible browser.",platform:n,browser:r,platformVersion:o,browserVersion:o};try{const a=await navigator.gpu.requestAdapter();return a?await a.requestDevice()?{isSupported:!0,isAvailable:!0,platform:n,browser:r,platformVersion:o,browserVersion:o}:(console.warn("❌ Failed to create WebGPU device"),{isSupported:!0,isAvailable:!1,error:"WebGPU adapter found but failed to create device. This might be due to hardware limitations or driver issues.",platform:n,browser:r,platformVersion:o,browserVersion:o}):(console.warn("❌ No WebGPU adapter available"),{isSupported:!0,isAvailable:!1,error:"WebGPU is supported but no adapter is available. This might be due to hardware limitations or driver issues.",platform:n,browser:r,platformVersion:o,browserVersion:o})}catch(a){return console.error("❌ WebGPU detection error:",a),V1(a,{phase:"detectWebGPU"}),{isSupported:!0,isAvailable:!1,error:`WebGPU is supported but failed to initialize: ${a instanceof Error?a.message:"Unknown error"}`,platform:n,browser:r,platformVersion:o,browserVersion:o}}},q1=Lm.lazy(()=>xm(()=>import("./UnityPreview-C_RHdlOE.js"),__vite__mapDeps([0,1,2]),import.meta.url)),Y1=Lm.lazy(()=>xm(()=>import("./Preview-pRFqJubQ.js").then(n=>n.my),__vite__mapDeps([3,1,4]),import.meta.url));B1();const K1=()=>{const r=new URLSearchParams(window.location.search).get("unity")==="true",{isAvailable:o}=C_(),a=r&&o;return tr.jsx(eo.Suspense,{fallback:null,children:a?tr.jsx(q1,{}):tr.jsx(Y1,{})})},Q1=async()=>{const n=await G1();w_.createRoot(document.getElementById("root")).render(tr.jsx(eo.StrictMode,{children:tr.jsx(k_,{value:n,children:tr.jsx(K1,{})})}))};Q1();export{Lm as R,xm as _,V1 as a,Os as b,Z1 as c,J1 as d,X1 as e,m_ as g,tr as j,eo as r};
@@ -10,7 +10,7 @@
10
10
  <link rel="manifest" href="./manifest.json" />
11
11
  <title>Decentraland | Wearable Preview</title>
12
12
  <script src="https://t.contentsquare.net/uxa/c07af53c07b18.js"></script>
13
- <script type="module" crossorigin src="./assets/index-DE24mgjY.js"></script>
13
+ <script type="module" crossorigin src="./assets/index-DktbxvSB.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="./assets/index-xcSM2Xhy.css">
15
15
  </head>
16
16
  <body>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/wearable-preview",
3
- "version": "2.14.2",
3
+ "version": "2.14.3-25444034252.commit-59a8330",
4
4
  "description": "Static website for the wearable preview",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- function createUnityInstance(t,n,d){function c(e,t){if(!c.aborted&&n.showBanner)return"error"==t&&(c.aborted=!0),n.showBanner(e,t);switch(t){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function r(e){var t=e.reason||e.error,n=t?t.toString():e.message||e.reason||"",r=e.filename||t&&(t.fileName||t.sourceURL)||"",e=e.lineno||t&&(t.lineNumber||t.line)||0,t=t&&t.stack?t.stack.toString():r&&e?"at "+r+":"+e:"";""===n&&(n="An unspecified error occured."),E(n+="\n"+(t=t.startsWith(n)?t.substring(n.length):t).trim(),r,e)}function e(e,t,n){var r=e[t];void 0!==r&&r||(console.warn('Config option "'+t+'" is missing or empty. Falling back to default value: "'+n+'". Consider updating your WebGL template to include the missing config option.'),e[t]=n)}d=d||function(){};var o,m={canvas:t,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},wasmFileSize:50877898,cacheControl:function(e){return e==m.dataUrl||e.match(/\.bundle/)?"must-revalidate":"no-store"},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,t){e=window.setInterval(e,t);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?c('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+m.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):c('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+m.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(n,"companyName","Unity"),e(n,"productName","WebGL Player"),e(n,"productVersion","1.0"),n)m[o]=n[o];m.streamingAssetsUrl=new URL(m.streamingAssetsUrl,document.URL).href;var a=m.disabledCanvasEvents.slice();function i(e){e.preventDefault()}a.forEach(function(e){t.addEventListener(e,i)}),window.addEventListener("error",r),window.addEventListener("unhandledrejection",r);var s="",l="";function u(e){document.webkitCurrentFullScreenElement===t?t.style.width&&(s=t.style.width,l=t.style.height,t.style.width="100%",t.style.height="100%"):s&&(t.style.width=s,t.style.height=l,l=s="")}document.addEventListener("webkitfullscreenchange",u),m.deinitializers.push(function(){for(var e in m.disableAccessToMediaDevices(),a.forEach(function(e){t.removeEventListener(e,i)}),window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",r),document.removeEventListener("webkitfullscreenchange",u),m.intervals)window.clearInterval(e);m.intervals={}}),m.QuitCleanup=function(){for(var e=0;e<m.deinitializers.length;e++)m.deinitializers[e]();m.deinitializers=[],"function"==typeof m.onQuit&&m.onQuit()};var h,f,p,g,b,y,w,v,C,S={Module:m,SetFullscreen:function(){if(m.SetFullscreen)return m.SetFullscreen.apply(m,arguments);m.print("Failed to set Fullscreen mode: Player not loaded yet.")},SendMessage:function(){if(m.SendMessage)return m.SendMessage.apply(m,arguments);m.print("Failed to execute SendMessage: Player not loaded yet.")},ConnectToProfiler:function(){if(m.ConnectToProfiler)return m.ConnectToProfiler.apply(m,arguments);m.print("Failed to execute ConnectToProfiler: Player not loaded yet.")},StopProfiling:function(){if(m.StopProfiling)return m.StopProfiling.apply(m,arguments);m.print("Failed to execute StopProfiling: Player not loaded yet.")},IsConnectedToProfiler:function(){if(m.IsConnectedToProfiler)return m.IsConnectedToProfiler.apply(m,arguments);m.print("Failed to execute IsConnectedToProfiler: Player not loaded yet.")},Quit:function(){return new Promise(function(e,t){m.shouldQuit=!0,m.onQuit=e})},GetMetricsInfo:function(){var e=Number(m._getMetricsInfo())>>>0,t=4+e,n=4+t,r=8+n,o=8+r,a=4+o,i=4+a,s=8+i,d=8+s,c=4+d,l=4+c,u=4+l;return{totalWASMHeapSize:m.HEAPU32[e>>2],usedWASMHeapSize:m.HEAPU32[t>>2],totalJSHeapSize:m.HEAPF64[n>>3],usedJSHeapSize:m.HEAPF64[r>>3],pageLoadTime:m.HEAPU32[o>>2],pageLoadTimeToFrame1:m.HEAPU32[a>>2],fps:m.HEAPF64[i>>3],movingAverageFps:m.HEAPF64[s>>3],assetLoadTime:m.HEAPU32[d>>2],webAssemblyStartupTime:m.HEAPU32[c>>2]-(m.webAssemblyTimeStart||0),codeDownloadTime:m.HEAPU32[l>>2],gameStartupTime:m.HEAPU32[u>>2],numJankedFrames:m.HEAPU32[4+u>>2]}}};function P(e,t,n){-1==e.indexOf("fullscreen error")&&(m.startupErrorHandler?m.startupErrorHandler(e,t,n):m.errorHandler&&m.errorHandler(e,t,n)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),P.didShowErrorMessage||(-1!=(e="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),P.didShowErrorMessage=!0)))}function T(e,t){var n="(wasm-function\\[)(\\d+)(\\])",r=new RegExp(n);return e.replace(new RegExp(n,"g"),function(e){e=e.match(r);return e[1]+(t[e[2]]?t[e[2]]+"@":"")+e[2]+e[3]})}function E(r,o,a){m.symbols?P(T(r,m.symbols),o,a):m.symbolsUrl?I("symbolsUrl").then(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);m.symbols=JSON.parse(t),P(T(r,m.symbols),o,a)}).catch(function(e){P(r,o,a)}):P(r,o,a)}function U(e,t){if("symbolsUrl"!=e){var n=m.downloadProgress[e],r=(n=n||(m.downloadProgress[e]={started:!1,finished:!1,lengthComputable:!1,total:0,loaded:0}),"object"!=typeof t||"progress"!=t.type&&"load"!=t.type||(n.started||(n.started=!0,n.lengthComputable=t.lengthComputable),n.total=t.total,n.loaded=t.loaded,"load"==t.type&&(n.finished=!0)),0),o=0,a=0,i=0,s=0;for(e in m.downloadProgress){if(!(n=m.downloadProgress[e]).started)return;a++,n.lengthComputable?(r+=n.loaded,o+=n.total,i++):n.finished||s++}d(.9*(a?(a-s-(o?i*(o-r)/o:0))/a:0))}}function A(){var e=this;this.isConnected=this.connect().then(function(){return e.cleanUpCache()}),this.isConnected.catch(function(e){e="Error when initializing cache: "+e,console.log("[UnityCache] "+e)})}function k(e){console.log("[UnityCache] "+e)}function D(e){return D.link=D.link||document.createElement("a"),D.link.href=e,D.link.href}m.SystemInfo=function(){var e,t,n,r,o,a=navigator.userAgent+" ",i=[["Firefox","Firefox"],["OPR","Opera"],["Edg","Edge"],["SamsungBrowser","Samsung Browser"],["Trident","Internet Explorer"],["MSIE","Internet Explorer"],["Chrome","Chrome"],["CriOS","Chrome on iOS Safari"],["FxiOS","Firefox on iOS Safari"],["Safari","Safari"]];function s(e,t,n){return(e=RegExp(e,"i").exec(t))&&e[n]}for(var d=0;d<i.length;++d)if(t=s(i[d][0]+"[/ ](.*?)[ \\)]",a,1)){e=i[d][1];break}"Safari"==e&&(t=s("Version/(.*?) ",a,1)),"Internet Explorer"==e&&(t=s("rv:(.*?)\\)? ",a,1)||t);for(var c=[["Windows (.*?)[;)]","Windows"],["Android ([0-9_.]+)","Android"],["iPhone OS ([0-9_.]+)","iPhoneOS"],["iPad.*? OS ([0-9_.]+)","iPadOS"],["FreeBSD( )","FreeBSD"],["OpenBSD( )","OpenBSD"],["Linux|X11()","Linux"],["Mac OS X ([0-9_\\.]+)","MacOS"],["bot|google|baidu|bing|msn|teoma|slurp|yandex","Search Bot"]],l=0;l<c.length;++l)if(r=s(c[l][0],a,1)){n=c[l][1],r=r.replace(/_/g,".");break}var u;function h(){try{return window.WebAssembly?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,13,1,11,0,65,0,65,0,65,1,252,11,0,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,11,1,9,1,1,125,32,0,252,0,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,1,1,126,32,0,194,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))?!!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,0,6,64,1,25,1,11,11]))||"wasm-exceptions":"wasm-simd128":"sign-extend":"non-trapping fp-to-int":"bulk-memory":"WebAssembly"}catch(e){return"Exception: "+e}}r={"NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"Server 2003","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 10.0":"10"}[r]||r,webgpuVersion=0,(f=document.createElement("canvas"))&&(u=(p=f.getContext("webgl2"))?2:0,p||(p=f&&f.getContext("webgl"))&&(u=1),p&&(o=p.getExtension("WEBGL_debug_renderer_info")&&p.getParameter(37446)||p.getParameter(7937)),webgpuVersion=navigator.gpu?1:0);var f="undefined"!=typeof SharedArrayBuffer,p="object"==typeof WebAssembly&&"function"==typeof WebAssembly.compile,m=p&&!0===h();return{width:screen.width,height:screen.height,userAgent:a.trim(),browser:e||"Unknown browser",browserVersion:t||"Unknown version",mobile:/Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),os:n||"Unknown OS",osVersion:r||"Unknown OS Version",gpu:o||"Unknown GPU",language:navigator.userLanguage||navigator.language,hasWebGL:u,hasWebGPU:webgpuVersion,hasCursorLock:!!document.body.requestPointerLock,hasFullscreen:!!document.body.requestFullscreen||!!document.body.webkitRequestFullscreen,hasThreads:f,hasWasm:p,hasWasm2023:m,missingWasm2023Feature:m?null:h(),hasWasmThreads:!1}}(),m.abortHandler=function(e){return E(e,"",0),!0},Error.stackTraceLimit=Math.max(Error.stackTraceLimit||0,50),m.readBodyWithProgress=function(a,i,s){var e=a.body?a.body.getReader():void 0,d=void 0!==a.headers.get("Content-Length"),c=function(e,t){if(!t)return 0;var t=e.headers.get("Content-Encoding"),n=parseInt(e.headers.get("Content-Length")),r=536870912;switch(t){case"br":return Math.min(Math.round(2*n),r);case"gzip":return Math.min(Math.round(1.6*n),r);default:return n}}(a,d),l=new Uint8Array(c),u=[],h=0,f=0;return d||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function o(){return void 0===e?a.arrayBuffer().then(function(e){var t=new Uint8Array(e);return i({type:"progress",response:a,total:e.length,loaded:0,lengthComputable:d,chunk:s?t:null}),t}):e.read().then(function(e){if(e.done){if(h===c)return l;if(h<c)return l.slice(0,h);for(var t=new Uint8Array(h),n=(t.set(l,0),f),r=0;r<u.length;++r)t.set(u[r],n),n+=u[r].length;return t}return h+e.value.length<=l.length?(l.set(e.value,h),f=h+e.value.length):u.push(e.value),h+=e.value.length,i({type:"progress",response:a,total:Math.max(c,h),loaded:h,lengthComputable:d,chunk:s?e.value:null}),o()})}().then(function(e){return i({type:"load",response:a,total:e.length,loaded:e.length,lengthComputable:d,chunk:null}),a.parsedBody=e,a})},m.fetchWithProgress=function(e,t){var n=function(){};return t&&t.onProgress&&(n=t.onProgress),fetch(e,t).then(function(e){return m.readBodyWithProgress(e,n,t.enableStreamingDownload)})},m.UnityCache=(h={name:"UnityCache",version:4},f={name:"RequestMetaDataStore",version:1},p="RequestStore",g="WebAssembly",b=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,y=null,A.getInstance=function(){return y=y||new A},A.destroyInstance=function(){return y?y.close().then(function(){y=null}):Promise.resolve()},A.prototype.clearCache=function(){var r=this;return this.isConnected.then(function(){return r.execute(f.name,"clear",[])}).then(function(){return r.cache.keys()}).then(function e(t){var n;return 0===t.length?Promise.resolve():(n=t.pop(),r.cache.delete(n).then(function(){return e(t)}))})},A.UnityCacheDatabase=h,A.RequestMetaDataStore=f,A.MaximumCacheSize=1073741824,A.prototype.loadRequest=function(e){var t=this;return t.isConnected.then(function(){return Promise.all([t.cache.match(e),t.loadRequestMetaData(e)])}).then(function(e){if(void 0!==e[0]&&void 0!==e[1])return{response:e[0],metaData:e[1]}})},A.prototype.loadRequestMetaData=function(e){e="string"==typeof e?e:e.url;return this.execute(f.name,"get",[e])},A.prototype.updateRequestMetaData=function(e){return this.execute(f.name,"put",[e])},A.prototype.storeRequest=function(e,t){var n=this;return n.isConnected.then(function(){return n.cache.put(e,t)})},A.prototype.close=function(){return this.isConnected.then(function(){this.database&&(this.database.close(),this.database=null),this.cache&&(this.cache=null)}.bind(this))},A.prototype.connect=function(){var o=this;return void 0===b?Promise.reject(new Error("Could not connect to cache: IndexedDB is not supported.")):void 0===window.caches?Promise.reject(new Error("Could not connect to cache: Cache API is not supported.")):new Promise(function(t,n){try{function r(){o.openDBTimeout&&(clearTimeout(o.openDBTimeout),o.openDBTimeout=null)}o.openDBTimeout=setTimeout(function(){void 0===o.database&&n(new Error("Could not connect to cache: Database timeout."))},2e4);var e=b.open(h.name,h.version);e.onupgradeneeded=o.upgradeDatabase.bind(o),e.onsuccess=function(e){r(),o.database=e.target.result,t()},e.onerror=function(e){r(),o.database=null,n(new Error("Could not connect to database."))}}catch(e){r(),o.database=null,o.cache=null,n(new Error("Could not connect to cache: Could not connect to database."))}}).then(function(){var e=h.name+"_"+m.companyName+"_"+m.productName;return caches.open(e)}).then(function(e){o.cache=e})},A.prototype.upgradeDatabase=function(e){var t,e=e.target.result;e.objectStoreNames.contains(f.name)||(t=e.createObjectStore(f.name,{keyPath:"url"}),["accessedAt","updatedAt"].forEach(function(e){t.createIndex(e,e)})),e.objectStoreNames.contains(p)&&e.deleteObjectStore(p),e.objectStoreNames.contains(g)&&e.deleteObjectStore(g)},A.prototype.execute=function(a,i,s){return this.isConnected.then(function(){return new Promise(function(t,n){try{var e,r,o;null===this.database?n(new Error("indexedDB access denied")):(e=-1!=["put","delete","clear"].indexOf(i)?"readwrite":"readonly",r=this.database.transaction([a],e).objectStore(a),"openKeyCursor"==i&&(r=r.index(s[0]),s=s.slice(1)),(o=r[i].apply(r,s)).onsuccess=function(e){t(e.target.result)},o.onerror=function(e){n(e)})}catch(e){n(e)}}.bind(this))}.bind(this))},A.prototype.getMetaDataEntries=function(){var r=this,o=0,a=[];return new Promise(function(t,n){var e=r.database.transaction([f.name],"readonly").objectStore(f.name).openCursor();e.onsuccess=function(e){e=e.target.result;e?(o+=e.value.size,a.push(e.value),e.continue()):t({metaDataEntries:a,cacheSize:o})},e.onerror=function(e){n(e)}})},A.prototype.cleanUpCache=function(){var i=this;return this.getMetaDataEntries().then(function(e){for(var t=e.metaDataEntries,n=e.cacheSize,r=[],o=[],a=0;a<t.length;++a)t[a].version==m.productVersion?o.push(t[a]):(r.push(t[a]),n-=t[a].size);o.sort(function(e,t){return e.accessedAt-t.accessedAt});for(a=0;a<o.length&&!(n<A.MaximumCacheSize);++a)r.push(o[a]),n-=o[a].size;return function e(){var t;return 0===r.length?Promise.resolve():(t=r.pop(),i.cache.delete(t.url).then(function(e){if(e)return r=t.url,new Promise(function(e,t){var n=i.database.transaction([f.name],"readwrite");n.objectStore(f.name).delete(r),n.oncomplete=e,n.onerror=t});var r}).then(e))}()})},A),m.cachedFetch=(w=m.UnityCache,v=m.fetchWithProgress,C=m.readBodyWithProgress,function(o,a){var e,t,i=w.getInstance(),s=D("string"==typeof o?o:o.url),d={enabled:(e=s,(!(t=a)||!t.method||"GET"===t.method)&&((!t||-1!=["must-revalidate","immutable"].indexOf(t.control))&&!!e.match("^https?://")))};function c(n,r){return fetch(n,r).then(function(e){var t;return!d.enabled||d.revalidated?e:304===e.status?(d.revalidated=!0,i.updateRequestMetaData(d.metaData).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}).catch(function(e){k("'"+d.metaData.url+"' successfully revalidated but not stored in the browser cache due to the error: "+e)}),C(d.response,r.onProgress,r.enableStreamingDownload)):200==e.status?(d.response=e,d.metaData.updatedAt=d.metaData.accessedAt,d.revalidated=!0,t=e.clone(),C(e,r.onProgress,r.enableStreamingDownload).then(function(e){return d.metaData.size=e.parsedBody.length,Promise.all([i.storeRequest(n,t),i.updateRequestMetaData(d.metaData)]).then(function(){k("'"+s+"' successfully downloaded and stored in the browser cache")}).catch(function(e){k("'"+s+"' successfully downloaded but not stored in the browser cache due to the error: "+e)}),e})):(k("'"+s+"' request failed with status: "+e.status+" "+e.statusText),C(e,r.onProgress,r.enableStreamingDownload))})}return a&&(d.control=a.control,d.companyName=a.companyName,d.productName=a.productName,d.productVersion=a.productVersion),d.revalidated=!1,d.metaData={url:s,accessedAt:Date.now(),version:d.productVersion},d.response=null,d.enabled?i.loadRequest(s).then(function(e){var n,r,t;return e?(n=e.response,r=e.metaData,d.response=n,d.metaData.size=r.size,d.metaData.updatedAt=r.updatedAt,"immutable"==d.control?(d.revalidated=!0,i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' served from the browser cache without revalidation")}),C(n,a.onProgress,a.enableStreamingDownload)):(e=s,(t=window.location.href.match(/^[a-z]+:\/\/[^\/]+/))&&!e.lastIndexOf(t[0],0)||!n.headers.get("Last-Modified")&&!n.headers.get("ETag")?(e=(a=a||{}).headers||{},a.headers=e,n.headers.get("Last-Modified")?(e["If-Modified-Since"]=n.headers.get("Last-Modified"),e["Cache-Control"]="no-cache"):n.headers.get("ETag")&&(e["If-None-Match"]=n.headers.get("ETag"),e["Cache-Control"]="no-cache"),c(o,a)):fetch(s,{method:"HEAD"}).then(function(t){return d.revalidated=["Last-Modified","ETag"].every(function(e){return!n.headers.get(e)||n.headers.get(e)==t.headers.get(e)}),d.revalidated?(i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}),C(d.response,a.onProgress,a.enableStreamingDownload)):c(o,a)}))):c(o,a)}).catch(function(e){return k("Failed to load '"+d.metaData.url+"' from browser cache due to the error: "+e),v(o,a)}):v(o,a)});var x={gzip:{hasUnityMarker:function(e){var t=10,n="UnityWeb Compressed Content (gzip)";if(t>e.length||31!=e[0]||139!=e[1])return!1;var r=e[3];if(4&r){if(t+2>e.length)return!1;if((t+=2+e[t]+(e[t+1]<<8))>e.length)return!1}if(8&r){for(;t<e.length&&e[t];)t++;if(t+1>e.length)return!1;t++}return 16&r&&String.fromCharCode.apply(null,e.subarray(t,t+n.length+1))==n+"\0"}},br:{hasUnityMarker:function(e){var t="UnityWeb Compressed Content (brotli)";if(!e.length)return!1;var n=1&e[0]?14&e[0]?4:7:1,r=e[0]&(1<<n)-1,o=1+(Math.log(t.length-1)/Math.log(2)>>3);if(commentOffset=1+n+2+1+2+(o<<3)+7>>3,17==r||commentOffset>e.length)return!1;for(var a=r+(6+(o<<4)+(t.length-1<<6)<<n),i=0;i<commentOffset;i++,a>>>=8)if(e[i]!=(255&a))return!1;return String.fromCharCode.apply(null,e.subarray(commentOffset,commentOffset+t.length))==t}}};function I(t){U(t);var e=m.cacheControl(m[t]),n=m.companyName&&m.productName?m.cachedFetch:m.fetchWithProgress,s=m[t],r=/file:\/\//.exec(s)?"same-origin":void 0;return n(m[t],{method:"GET",companyName:m.companyName,productName:m.productName,productVersion:m.productVersion,control:e,mode:r,onProgress:function(e){U(t,e)}}).then(function(e){var t,n,r,o,a,i;return x.gzip.hasUnityMarker(e.parsedBody)&&(t=["gzip","gzip"]),(t=x.br.hasUnityMarker(e.parsedBody)?["brotli","br"]:t)&&(n=e.headers.get("Content-Type"),r=e.headers.get("Content-Encoding"),a=0<(o=e.headers.get("Content-Length"))&&e.parsedBody.length!=o,i=0<o&&e.parsedBody.length==o,r!=t[1]?c("Failed to parse binary data file "+s+' (with "Content-Type: '+n+'"), because it is still '+t[0]+'-compressed. It should have been uncompressed by the browser, but it was unable to do so since the web server provided the compressed content without specifying the HTTP Response Header "Content-Encoding: '+t[1]+'" that would have informed the browser that decompression is needed. Please verify your web server hosting configuration to add the missing "Content-Encoding: '+t[1]+'" HTTP Response Header.',"error"):c(a?"Web server configuration error: it looks like the web server has been misconfigured to double-compress the data file "+s+"! That is, it looks like the web browser has decompressed the file, but it is still in compressed form, suggesting that an already compressed file was compressed a second time. (Content-Length: "+o+", obtained length: "+e.parsedBody.length+")":i?/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&"gzip"==r&&"application/octet-stream"==n?"Unable to load content due to Apple Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421 . To work around this issue, please reconfigure your web server to serve "+s+" with Content-Type: application/gzip instead of Content-Type: application/octet-stream":"Malformed binary data? Received compressed data file "+s+', with "Content-Type: '+n+'", "Content-Encoding: '+t[1]+'", "Content-Length: '+o+'", which the web browser should have decompressed, but it seemingly did not (received file size is the same as compressed file size was). Double check that the integrity of the file is intact.':"Malformed binary data URL "+s+'. No "Content-Length" HTTP Response header present. Check browser console for more information.',"error"),console.error("Malformed data? Downloaded binary data file "+s+" (ArrayBuffer size: "+e.parsedBody.length+") and browser should have decompressed it, but it might have not. Dumping raw HTTP Response Headers if it might help debug:"),e.headers.forEach(function(e,t){console.error(t+": "+e)})),e.parsedBody}).catch(function(e){var t="Failed to download file "+s;"file:"==location.protocol?c(t+". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.","error"):console.error(t)})}function W(){var t=performance.now(),p=(new Promise(function(a,e){var i=document.createElement("script");i.src=m.frameworkUrl,i.onload=function(){if("undefined"==typeof unityFramework||!unityFramework){var e,t=[["br","br"],["gz","gzip"]];for(e in t){var n,r=t[e];if(m.frameworkUrl.endsWith("."+r[0]))return n="Unable to parse "+m.frameworkUrl+"!","file:"==location.protocol?void c(n+" Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.","error"):(n+=' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: '+r[1]+'" present. Check browser Console and Devtools Network tab to debug.',"br"==r[0]&&"http:"==location.protocol&&(r=-1!=["localhost","127.0.0.1"].indexOf(location.hostname)?"":"Migrate your server to use HTTPS.",n=/Firefox/.test(navigator.userAgent)?"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+r+' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.':"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void c(n,"error"))}c("Unable to parse "+m.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,i.onload=null,a(o)},i.onerror=function(e){c("Unable to load file "+m.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(i),m.deinitializers.push(function(){document.body.removeChild(i)})}).then(function(e){m.webAssemblyTimeStart=performance.now(),e(m),m.codeDownloadTimeEnd=performance.now()-t}),performance.now()),e=I("dataUrl");m.preRun.push(function(){m.addRunDependency("dataUrl"),e.then(function(t){var e=new TextDecoder("utf-8"),n=0;function r(){var e=(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0;return n+=4,e}function o(e){if(x.gzip.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still gzip-compressed and should have been uncompressed by the browser. Web server has likely provided gzip-compressed data without specifying the HTTP Response Header "Content-Encoding: gzip" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';if(x.br.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still brotli-compressed and should have been uncompressed by the browser. Web server has likely provided brotli-compressed data without specifying the HTTP Response Header "Content-Encoding: br" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';throw e}var a="UnityWebData1.0\0",i=e.decode(t.subarray(0,a.length)),s=(i!=a&&o('Unknown data format (id="'+i+'")'),n+=a.length,r());for(n+s>t.length&&o("Invalid binary data file header! (pos="+n+", headerSize="+s+", file length="+t.length+")");n<s;){var d=r(),c=r(),l=(d+c>t.length&&o("Invalid binary data file size! (offset="+d+", size="+c+", file length="+t.length+")"),r()),u=(n+l>t.length&&o("Invalid binary data file path name! (pos="+n+", length="+l+", file length="+t.length+")"),e.decode(t.subarray(n,n+l)));n+=l;for(var h=0,f=u.indexOf("/",h)+1;0<f;h=f,f=u.indexOf("/",h)+1)m.FS_createPath(u.substring(0,h),u.substring(h,f-1),!0,!0);m.FS_createDataFile(u,null,t.subarray(d,d+c),!0,!0,!0)}m.removeRunDependency("dataUrl"),m.dataUrlLoadEndTime=performance.now()-p})})}return new Promise(function(e,t){var n;m.SystemInfo.hasWebGL?1==m.SystemInfo.hasWebGL?(n='Your browser does not support graphics API "WebGL 2" which is required for this content.',"Safari"==m.SystemInfo.browser&&parseInt(m.SystemInfo.browserVersion)<15&&(m.SystemInfo.mobile||1<navigator.maxTouchPoints?n+="\nUpgrade to iOS 15 or later.":n+="\nUpgrade to Safari 15 or later."),t(n)):m.SystemInfo.hasWasm?m.SystemInfo.hasWasm2023?(m.startupErrorHandler=t,d(0),m.postRun.push(function(){d(1),m.WebPlayer.WaitForInitialization().then(function(){delete m.startupErrorHandler,e(S),m.pageStartupTime=performance.now()})}),new Promise(function(t,e){navigator.gpu?navigator.gpu.requestAdapter().then(function(e){m.SystemInfo.hasWebGPU=!!e,t(m.SystemInfo.hasWebGPU)}):t(!1)}).then(function(){W()})):t("Your browser does not support WebAssembly 2023. Please update to Chrome \u2265 91 (May 2021), Firefox \u2265 89 (June 2021) or Safari \u2265 16.4 (March 2023). (failed "+m.SystemInfo.missingWasm2023Feature+")"):t("Your browser does not support WebAssembly."):t("Your browser does not support WebGL.")})}
1
+ function createUnityInstance(t,n,d){function c(e,t){if(!c.aborted&&n.showBanner)return"error"==t&&(c.aborted=!0),n.showBanner(e,t);switch(t){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function r(e){var t=e.reason||e.error,n=t?t.toString():e.message||e.reason||"",r=e.filename||t&&(t.fileName||t.sourceURL)||"",e=e.lineno||t&&(t.lineNumber||t.line)||0,t=t&&t.stack?t.stack.toString():r&&e?"at "+r+":"+e:"";""===n&&(n="An unspecified error occured."),E(n+="\n"+(t=t.startsWith(n)?t.substring(n.length):t).trim(),r,e)}function e(e,t,n){var r=e[t];void 0!==r&&r||(console.warn('Config option "'+t+'" is missing or empty. Falling back to default value: "'+n+'". Consider updating your WebGL template to include the missing config option.'),e[t]=n)}d=d||function(){};var o,m={canvas:t,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},wasmFileSize:59535247,cacheControl:function(e){return e==m.dataUrl||e.match(/\.bundle/)?"must-revalidate":"no-store"},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,t){e=window.setInterval(e,t);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?c('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+m.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):c('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+m.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(n,"companyName","Unity"),e(n,"productName","WebGL Player"),e(n,"productVersion","1.0"),n)m[o]=n[o];m.streamingAssetsUrl=new URL(m.streamingAssetsUrl,document.URL).href;var a=m.disabledCanvasEvents.slice();function i(e){e.preventDefault()}a.forEach(function(e){t.addEventListener(e,i)}),window.addEventListener("error",r),window.addEventListener("unhandledrejection",r);var s="",l="";function u(e){document.webkitCurrentFullScreenElement===t?t.style.width&&(s=t.style.width,l=t.style.height,t.style.width="100%",t.style.height="100%"):s&&(t.style.width=s,t.style.height=l,l=s="")}document.addEventListener("webkitfullscreenchange",u),m.deinitializers.push(function(){for(var e in m.disableAccessToMediaDevices(),a.forEach(function(e){t.removeEventListener(e,i)}),window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",r),document.removeEventListener("webkitfullscreenchange",u),m.intervals)window.clearInterval(e);m.intervals={}}),m.QuitCleanup=function(){for(var e=0;e<m.deinitializers.length;e++)m.deinitializers[e]();m.deinitializers=[],"function"==typeof m.onQuit&&m.onQuit()};var h,f,p,g,b,y,w,v,C,S={Module:m,SetFullscreen:function(){if(m.SetFullscreen)return m.SetFullscreen.apply(m,arguments);m.print("Failed to set Fullscreen mode: Player not loaded yet.")},SendMessage:function(){if(m.SendMessage)return m.SendMessage.apply(m,arguments);m.print("Failed to execute SendMessage: Player not loaded yet.")},ConnectToProfiler:function(){if(m.ConnectToProfiler)return m.ConnectToProfiler.apply(m,arguments);m.print("Failed to execute ConnectToProfiler: Player not loaded yet.")},StopProfiling:function(){if(m.StopProfiling)return m.StopProfiling.apply(m,arguments);m.print("Failed to execute StopProfiling: Player not loaded yet.")},IsConnectedToProfiler:function(){if(m.IsConnectedToProfiler)return m.IsConnectedToProfiler.apply(m,arguments);m.print("Failed to execute IsConnectedToProfiler: Player not loaded yet.")},Quit:function(){return new Promise(function(e,t){m.shouldQuit=!0,m.onQuit=e})},GetMetricsInfo:function(){var e=Number(m._getMetricsInfo())>>>0,t=4+e,n=4+t,r=8+n,o=8+r,a=4+o,i=4+a,s=8+i,d=8+s,c=4+d,l=4+c,u=4+l;return{totalWASMHeapSize:m.HEAPU32[e>>2],usedWASMHeapSize:m.HEAPU32[t>>2],totalJSHeapSize:m.HEAPF64[n>>3],usedJSHeapSize:m.HEAPF64[r>>3],pageLoadTime:m.HEAPU32[o>>2],pageLoadTimeToFrame1:m.HEAPU32[a>>2],fps:m.HEAPF64[i>>3],movingAverageFps:m.HEAPF64[s>>3],assetLoadTime:m.HEAPU32[d>>2],webAssemblyStartupTime:m.HEAPU32[c>>2]-(m.webAssemblyTimeStart||0),codeDownloadTime:m.HEAPU32[l>>2],gameStartupTime:m.HEAPU32[u>>2],numJankedFrames:m.HEAPU32[4+u>>2]}}};function P(e,t,n){-1==e.indexOf("fullscreen error")&&(m.startupErrorHandler?m.startupErrorHandler(e,t,n):m.errorHandler&&m.errorHandler(e,t,n)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),P.didShowErrorMessage||(-1!=(e="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),P.didShowErrorMessage=!0)))}function T(e,t){var n="(wasm-function\\[)(\\d+)(\\])",r=new RegExp(n);return e.replace(new RegExp(n,"g"),function(e){e=e.match(r);return e[1]+(t[e[2]]?t[e[2]]+"@":"")+e[2]+e[3]})}function E(r,o,a){m.symbols?P(T(r,m.symbols),o,a):m.symbolsUrl?I("symbolsUrl").then(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);m.symbols=JSON.parse(t),P(T(r,m.symbols),o,a)}).catch(function(e){P(r,o,a)}):P(r,o,a)}function U(e,t){if("symbolsUrl"!=e){var n=m.downloadProgress[e],r=(n=n||(m.downloadProgress[e]={started:!1,finished:!1,lengthComputable:!1,total:0,loaded:0}),"object"!=typeof t||"progress"!=t.type&&"load"!=t.type||(n.started||(n.started=!0,n.lengthComputable=t.lengthComputable),n.total=t.total,n.loaded=t.loaded,"load"==t.type&&(n.finished=!0)),0),o=0,a=0,i=0,s=0;for(e in m.downloadProgress){if(!(n=m.downloadProgress[e]).started)return;a++,n.lengthComputable?(r+=n.loaded,o+=n.total,i++):n.finished||s++}d(.9*(a?(a-s-(o?i*(o-r)/o:0))/a:0))}}function A(){var e=this;this.isConnected=this.connect().then(function(){return e.cleanUpCache()}),this.isConnected.catch(function(e){e="Error when initializing cache: "+e,console.log("[UnityCache] "+e)})}function k(e){console.log("[UnityCache] "+e)}function D(e){return D.link=D.link||document.createElement("a"),D.link.href=e,D.link.href}m.SystemInfo=function(){var e,t,n,r,o,a=navigator.userAgent+" ",i=[["Firefox","Firefox"],["OPR","Opera"],["Edg","Edge"],["SamsungBrowser","Samsung Browser"],["Trident","Internet Explorer"],["MSIE","Internet Explorer"],["Chrome","Chrome"],["CriOS","Chrome on iOS Safari"],["FxiOS","Firefox on iOS Safari"],["Safari","Safari"]];function s(e,t,n){return(e=RegExp(e,"i").exec(t))&&e[n]}for(var d=0;d<i.length;++d)if(t=s(i[d][0]+"[/ ](.*?)[ \\)]",a,1)){e=i[d][1];break}"Safari"==e&&(t=s("Version/(.*?) ",a,1)),"Internet Explorer"==e&&(t=s("rv:(.*?)\\)? ",a,1)||t);for(var c=[["Windows (.*?)[;)]","Windows"],["Android ([0-9_.]+)","Android"],["iPhone OS ([0-9_.]+)","iPhoneOS"],["iPad.*? OS ([0-9_.]+)","iPadOS"],["FreeBSD( )","FreeBSD"],["OpenBSD( )","OpenBSD"],["Linux|X11()","Linux"],["Mac OS X ([0-9_\\.]+)","MacOS"],["bot|google|baidu|bing|msn|teoma|slurp|yandex","Search Bot"]],l=0;l<c.length;++l)if(r=s(c[l][0],a,1)){n=c[l][1],r=r.replace(/_/g,".");break}var u;function h(){try{return window.WebAssembly?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,13,1,11,0,65,0,65,0,65,1,252,11,0,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,11,1,9,1,1,125,32,0,252,0,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,1,1,126,32,0,194,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))?!!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,0,6,64,1,25,1,11,11]))||"wasm-exceptions":"wasm-simd128":"sign-extend":"non-trapping fp-to-int":"bulk-memory":"WebAssembly"}catch(e){return"Exception: "+e}}r={"NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"Server 2003","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 10.0":"10"}[r]||r,webgpuVersion=0,(f=document.createElement("canvas"))&&(u=(p=f.getContext("webgl2"))?2:0,p||(p=f&&f.getContext("webgl"))&&(u=1),p&&(o=p.getExtension("WEBGL_debug_renderer_info")&&p.getParameter(37446)||p.getParameter(7937)),webgpuVersion=navigator.gpu?1:0);var f="undefined"!=typeof SharedArrayBuffer,p="object"==typeof WebAssembly&&"function"==typeof WebAssembly.compile,m=p&&!0===h();return{width:screen.width,height:screen.height,userAgent:a.trim(),browser:e||"Unknown browser",browserVersion:t||"Unknown version",mobile:/Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),os:n||"Unknown OS",osVersion:r||"Unknown OS Version",gpu:o||"Unknown GPU",language:navigator.userLanguage||navigator.language,hasWebGL:u,hasWebGPU:webgpuVersion,hasCursorLock:!!document.body.requestPointerLock,hasFullscreen:!!document.body.requestFullscreen||!!document.body.webkitRequestFullscreen,hasThreads:f,hasWasm:p,hasWasm2023:m,missingWasm2023Feature:m?null:h(),hasWasmThreads:!1}}(),m.abortHandler=function(e){return E(e,"",0),!0},Error.stackTraceLimit=Math.max(Error.stackTraceLimit||0,50),m.readBodyWithProgress=function(a,i,s){var e=a.body?a.body.getReader():void 0,d=void 0!==a.headers.get("Content-Length"),c=function(e,t){if(!t)return 0;var t=e.headers.get("Content-Encoding"),n=parseInt(e.headers.get("Content-Length")),r=536870912;switch(t){case"br":return Math.min(Math.round(2*n),r);case"gzip":return Math.min(Math.round(1.6*n),r);default:return n}}(a,d),l=new Uint8Array(c),u=[],h=0,f=0;return d||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function o(){return void 0===e?a.arrayBuffer().then(function(e){var t=new Uint8Array(e);return i({type:"progress",response:a,total:e.length,loaded:0,lengthComputable:d,chunk:s?t:null}),t}):e.read().then(function(e){if(e.done){if(h===c)return l;if(h<c)return l.slice(0,h);for(var t=new Uint8Array(h),n=(t.set(l,0),f),r=0;r<u.length;++r)t.set(u[r],n),n+=u[r].length;return t}return h+e.value.length<=l.length?(l.set(e.value,h),f=h+e.value.length):u.push(e.value),h+=e.value.length,i({type:"progress",response:a,total:Math.max(c,h),loaded:h,lengthComputable:d,chunk:s?e.value:null}),o()})}().then(function(e){return i({type:"load",response:a,total:e.length,loaded:e.length,lengthComputable:d,chunk:null}),a.parsedBody=e,a})},m.fetchWithProgress=function(e,t){var n=function(){};return t&&t.onProgress&&(n=t.onProgress),fetch(e,t).then(function(e){return m.readBodyWithProgress(e,n,t.enableStreamingDownload)})},m.UnityCache=(h={name:"UnityCache",version:4},f={name:"RequestMetaDataStore",version:1},p="RequestStore",g="WebAssembly",b=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,y=null,A.getInstance=function(){return y=y||new A},A.destroyInstance=function(){return y?y.close().then(function(){y=null}):Promise.resolve()},A.prototype.clearCache=function(){var r=this;return this.isConnected.then(function(){return r.execute(f.name,"clear",[])}).then(function(){return r.cache.keys()}).then(function e(t){var n;return 0===t.length?Promise.resolve():(n=t.pop(),r.cache.delete(n).then(function(){return e(t)}))})},A.UnityCacheDatabase=h,A.RequestMetaDataStore=f,A.MaximumCacheSize=1073741824,A.prototype.loadRequest=function(e){var t=this;return t.isConnected.then(function(){return Promise.all([t.cache.match(e),t.loadRequestMetaData(e)])}).then(function(e){if(void 0!==e[0]&&void 0!==e[1])return{response:e[0],metaData:e[1]}})},A.prototype.loadRequestMetaData=function(e){e="string"==typeof e?e:e.url;return this.execute(f.name,"get",[e])},A.prototype.updateRequestMetaData=function(e){return this.execute(f.name,"put",[e])},A.prototype.storeRequest=function(e,t){var n=this;return n.isConnected.then(function(){return n.cache.put(e,t)})},A.prototype.close=function(){return this.isConnected.then(function(){this.database&&(this.database.close(),this.database=null),this.cache&&(this.cache=null)}.bind(this))},A.prototype.connect=function(){var o=this;return void 0===b?Promise.reject(new Error("Could not connect to cache: IndexedDB is not supported.")):void 0===window.caches?Promise.reject(new Error("Could not connect to cache: Cache API is not supported.")):new Promise(function(t,n){try{function r(){o.openDBTimeout&&(clearTimeout(o.openDBTimeout),o.openDBTimeout=null)}o.openDBTimeout=setTimeout(function(){void 0===o.database&&n(new Error("Could not connect to cache: Database timeout."))},2e4);var e=b.open(h.name,h.version);e.onupgradeneeded=o.upgradeDatabase.bind(o),e.onsuccess=function(e){r(),o.database=e.target.result,t()},e.onerror=function(e){r(),o.database=null,n(new Error("Could not connect to database."))}}catch(e){r(),o.database=null,o.cache=null,n(new Error("Could not connect to cache: Could not connect to database."))}}).then(function(){var e=h.name+"_"+m.companyName+"_"+m.productName;return caches.open(e)}).then(function(e){o.cache=e})},A.prototype.upgradeDatabase=function(e){var t,e=e.target.result;e.objectStoreNames.contains(f.name)||(t=e.createObjectStore(f.name,{keyPath:"url"}),["accessedAt","updatedAt"].forEach(function(e){t.createIndex(e,e)})),e.objectStoreNames.contains(p)&&e.deleteObjectStore(p),e.objectStoreNames.contains(g)&&e.deleteObjectStore(g)},A.prototype.execute=function(a,i,s){return this.isConnected.then(function(){return new Promise(function(t,n){try{var e,r,o;null===this.database?n(new Error("indexedDB access denied")):(e=-1!=["put","delete","clear"].indexOf(i)?"readwrite":"readonly",r=this.database.transaction([a],e).objectStore(a),"openKeyCursor"==i&&(r=r.index(s[0]),s=s.slice(1)),(o=r[i].apply(r,s)).onsuccess=function(e){t(e.target.result)},o.onerror=function(e){n(e)})}catch(e){n(e)}}.bind(this))}.bind(this))},A.prototype.getMetaDataEntries=function(){var r=this,o=0,a=[];return new Promise(function(t,n){var e=r.database.transaction([f.name],"readonly").objectStore(f.name).openCursor();e.onsuccess=function(e){e=e.target.result;e?(o+=e.value.size,a.push(e.value),e.continue()):t({metaDataEntries:a,cacheSize:o})},e.onerror=function(e){n(e)}})},A.prototype.cleanUpCache=function(){var i=this;return this.getMetaDataEntries().then(function(e){for(var t=e.metaDataEntries,n=e.cacheSize,r=[],o=[],a=0;a<t.length;++a)t[a].version==m.productVersion?o.push(t[a]):(r.push(t[a]),n-=t[a].size);o.sort(function(e,t){return e.accessedAt-t.accessedAt});for(a=0;a<o.length&&!(n<A.MaximumCacheSize);++a)r.push(o[a]),n-=o[a].size;return function e(){var t;return 0===r.length?Promise.resolve():(t=r.pop(),i.cache.delete(t.url).then(function(e){if(e)return r=t.url,new Promise(function(e,t){var n=i.database.transaction([f.name],"readwrite");n.objectStore(f.name).delete(r),n.oncomplete=e,n.onerror=t});var r}).then(e))}()})},A),m.cachedFetch=(w=m.UnityCache,v=m.fetchWithProgress,C=m.readBodyWithProgress,function(o,a){var e,t,i=w.getInstance(),s=D("string"==typeof o?o:o.url),d={enabled:(e=s,(!(t=a)||!t.method||"GET"===t.method)&&((!t||-1!=["must-revalidate","immutable"].indexOf(t.control))&&!!e.match("^https?://")))};function c(n,r){return fetch(n,r).then(function(e){var t;return!d.enabled||d.revalidated?e:304===e.status?(d.revalidated=!0,i.updateRequestMetaData(d.metaData).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}).catch(function(e){k("'"+d.metaData.url+"' successfully revalidated but not stored in the browser cache due to the error: "+e)}),C(d.response,r.onProgress,r.enableStreamingDownload)):200==e.status?(d.response=e,d.metaData.updatedAt=d.metaData.accessedAt,d.revalidated=!0,t=e.clone(),C(e,r.onProgress,r.enableStreamingDownload).then(function(e){return d.metaData.size=e.parsedBody.length,Promise.all([i.storeRequest(n,t),i.updateRequestMetaData(d.metaData)]).then(function(){k("'"+s+"' successfully downloaded and stored in the browser cache")}).catch(function(e){k("'"+s+"' successfully downloaded but not stored in the browser cache due to the error: "+e)}),e})):(k("'"+s+"' request failed with status: "+e.status+" "+e.statusText),C(e,r.onProgress,r.enableStreamingDownload))})}return a&&(d.control=a.control,d.companyName=a.companyName,d.productName=a.productName,d.productVersion=a.productVersion),d.revalidated=!1,d.metaData={url:s,accessedAt:Date.now(),version:d.productVersion},d.response=null,d.enabled?i.loadRequest(s).then(function(e){var n,r,t;return e?(n=e.response,r=e.metaData,d.response=n,d.metaData.size=r.size,d.metaData.updatedAt=r.updatedAt,"immutable"==d.control?(d.revalidated=!0,i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' served from the browser cache without revalidation")}),C(n,a.onProgress,a.enableStreamingDownload)):(e=s,(t=window.location.href.match(/^[a-z]+:\/\/[^\/]+/))&&!e.lastIndexOf(t[0],0)||!n.headers.get("Last-Modified")&&!n.headers.get("ETag")?(e=(a=a||{}).headers||{},a.headers=e,n.headers.get("Last-Modified")?(e["If-Modified-Since"]=n.headers.get("Last-Modified"),e["Cache-Control"]="no-cache"):n.headers.get("ETag")&&(e["If-None-Match"]=n.headers.get("ETag"),e["Cache-Control"]="no-cache"),c(o,a)):fetch(s,{method:"HEAD"}).then(function(t){return d.revalidated=["Last-Modified","ETag"].every(function(e){return!n.headers.get(e)||n.headers.get(e)==t.headers.get(e)}),d.revalidated?(i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}),C(d.response,a.onProgress,a.enableStreamingDownload)):c(o,a)}))):c(o,a)}).catch(function(e){return k("Failed to load '"+d.metaData.url+"' from browser cache due to the error: "+e),v(o,a)}):v(o,a)});var x={gzip:{hasUnityMarker:function(e){var t=10,n="UnityWeb Compressed Content (gzip)";if(t>e.length||31!=e[0]||139!=e[1])return!1;var r=e[3];if(4&r){if(t+2>e.length)return!1;if((t+=2+e[t]+(e[t+1]<<8))>e.length)return!1}if(8&r){for(;t<e.length&&e[t];)t++;if(t+1>e.length)return!1;t++}return 16&r&&String.fromCharCode.apply(null,e.subarray(t,t+n.length+1))==n+"\0"}},br:{hasUnityMarker:function(e){var t="UnityWeb Compressed Content (brotli)";if(!e.length)return!1;var n=1&e[0]?14&e[0]?4:7:1,r=e[0]&(1<<n)-1,o=1+(Math.log(t.length-1)/Math.log(2)>>3);if(commentOffset=1+n+2+1+2+(o<<3)+7>>3,17==r||commentOffset>e.length)return!1;for(var a=r+(6+(o<<4)+(t.length-1<<6)<<n),i=0;i<commentOffset;i++,a>>>=8)if(e[i]!=(255&a))return!1;return String.fromCharCode.apply(null,e.subarray(commentOffset,commentOffset+t.length))==t}}};function I(t){U(t);var e=m.cacheControl(m[t]),n=m.companyName&&m.productName?m.cachedFetch:m.fetchWithProgress,s=m[t],r=/file:\/\//.exec(s)?"same-origin":void 0;return n(m[t],{method:"GET",companyName:m.companyName,productName:m.productName,productVersion:m.productVersion,control:e,mode:r,onProgress:function(e){U(t,e)}}).then(function(e){var t,n,r,o,a,i;return x.gzip.hasUnityMarker(e.parsedBody)&&(t=["gzip","gzip"]),(t=x.br.hasUnityMarker(e.parsedBody)?["brotli","br"]:t)&&(n=e.headers.get("Content-Type"),r=e.headers.get("Content-Encoding"),a=0<(o=e.headers.get("Content-Length"))&&e.parsedBody.length!=o,i=0<o&&e.parsedBody.length==o,r!=t[1]?c("Failed to parse binary data file "+s+' (with "Content-Type: '+n+'"), because it is still '+t[0]+'-compressed. It should have been uncompressed by the browser, but it was unable to do so since the web server provided the compressed content without specifying the HTTP Response Header "Content-Encoding: '+t[1]+'" that would have informed the browser that decompression is needed. Please verify your web server hosting configuration to add the missing "Content-Encoding: '+t[1]+'" HTTP Response Header.',"error"):c(a?"Web server configuration error: it looks like the web server has been misconfigured to double-compress the data file "+s+"! That is, it looks like the web browser has decompressed the file, but it is still in compressed form, suggesting that an already compressed file was compressed a second time. (Content-Length: "+o+", obtained length: "+e.parsedBody.length+")":i?/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&"gzip"==r&&"application/octet-stream"==n?"Unable to load content due to Apple Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421 . To work around this issue, please reconfigure your web server to serve "+s+" with Content-Type: application/gzip instead of Content-Type: application/octet-stream":"Malformed binary data? Received compressed data file "+s+', with "Content-Type: '+n+'", "Content-Encoding: '+t[1]+'", "Content-Length: '+o+'", which the web browser should have decompressed, but it seemingly did not (received file size is the same as compressed file size was). Double check that the integrity of the file is intact.':"Malformed binary data URL "+s+'. No "Content-Length" HTTP Response header present. Check browser console for more information.',"error"),console.error("Malformed data? Downloaded binary data file "+s+" (ArrayBuffer size: "+e.parsedBody.length+") and browser should have decompressed it, but it might have not. Dumping raw HTTP Response Headers if it might help debug:"),e.headers.forEach(function(e,t){console.error(t+": "+e)})),e.parsedBody}).catch(function(e){var t="Failed to download file "+s;"file:"==location.protocol?c(t+". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.","error"):console.error(t)})}function W(){var t=performance.now(),p=(new Promise(function(a,e){var i=document.createElement("script");i.src=m.frameworkUrl,i.onload=function(){if("undefined"==typeof unityFramework||!unityFramework){var e,t=[["br","br"],["gz","gzip"]];for(e in t){var n,r=t[e];if(m.frameworkUrl.endsWith("."+r[0]))return n="Unable to parse "+m.frameworkUrl+"!","file:"==location.protocol?void c(n+" Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.","error"):(n+=' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: '+r[1]+'" present. Check browser Console and Devtools Network tab to debug.',"br"==r[0]&&"http:"==location.protocol&&(r=-1!=["localhost","127.0.0.1"].indexOf(location.hostname)?"":"Migrate your server to use HTTPS.",n=/Firefox/.test(navigator.userAgent)?"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+r+' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.':"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void c(n,"error"))}c("Unable to parse "+m.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,i.onload=null,a(o)},i.onerror=function(e){c("Unable to load file "+m.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(i),m.deinitializers.push(function(){document.body.removeChild(i)})}).then(function(e){m.webAssemblyTimeStart=performance.now(),e(m),m.codeDownloadTimeEnd=performance.now()-t}),performance.now()),e=I("dataUrl");m.preRun.push(function(){m.addRunDependency("dataUrl"),e.then(function(t){var e=new TextDecoder("utf-8"),n=0;function r(){var e=(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0;return n+=4,e}function o(e){if(x.gzip.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still gzip-compressed and should have been uncompressed by the browser. Web server has likely provided gzip-compressed data without specifying the HTTP Response Header "Content-Encoding: gzip" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';if(x.br.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still brotli-compressed and should have been uncompressed by the browser. Web server has likely provided brotli-compressed data without specifying the HTTP Response Header "Content-Encoding: br" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';throw e}var a="UnityWebData1.0\0",i=e.decode(t.subarray(0,a.length)),s=(i!=a&&o('Unknown data format (id="'+i+'")'),n+=a.length,r());for(n+s>t.length&&o("Invalid binary data file header! (pos="+n+", headerSize="+s+", file length="+t.length+")");n<s;){var d=r(),c=r(),l=(d+c>t.length&&o("Invalid binary data file size! (offset="+d+", size="+c+", file length="+t.length+")"),r()),u=(n+l>t.length&&o("Invalid binary data file path name! (pos="+n+", length="+l+", file length="+t.length+")"),e.decode(t.subarray(n,n+l)));n+=l;for(var h=0,f=u.indexOf("/",h)+1;0<f;h=f,f=u.indexOf("/",h)+1)m.FS_createPath(u.substring(0,h),u.substring(h,f-1),!0,!0);m.FS_createDataFile(u,null,t.subarray(d,d+c),!0,!0,!0)}m.removeRunDependency("dataUrl"),m.dataUrlLoadEndTime=performance.now()-p})})}return new Promise(function(e,t){var n;m.SystemInfo.hasWebGL?1==m.SystemInfo.hasWebGL?(n='Your browser does not support graphics API "WebGL 2" which is required for this content.',"Safari"==m.SystemInfo.browser&&parseInt(m.SystemInfo.browserVersion)<15&&(m.SystemInfo.mobile||1<navigator.maxTouchPoints?n+="\nUpgrade to iOS 15 or later.":n+="\nUpgrade to Safari 15 or later."),t(n)):m.SystemInfo.hasWasm?m.SystemInfo.hasWasm2023?(m.startupErrorHandler=t,d(0),m.postRun.push(function(){d(1),m.WebPlayer.WaitForInitialization().then(function(){delete m.startupErrorHandler,e(S),m.pageStartupTime=performance.now()})}),new Promise(function(t,e){navigator.gpu?navigator.gpu.requestAdapter().then(function(e){m.SystemInfo.hasWebGPU=!!e,t(m.SystemInfo.hasWebGPU)}):t(!1)}).then(function(){W()})):t("Your browser does not support WebAssembly 2023. Please update to Chrome \u2265 91 (May 2021), Firefox \u2265 89 (June 2021) or Safari \u2265 16.4 (March 2023). (failed "+m.SystemInfo.missingWasm2023Feature+")"):t("Your browser does not support WebAssembly."):t("Your browser does not support WebGL.")})}
Binary file
@@ -1 +1 @@
1
- function createUnityInstance(t,n,d){function c(e,t){if(!c.aborted&&n.showBanner)return"error"==t&&(c.aborted=!0),n.showBanner(e,t);switch(t){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function r(e){var t=e.reason||e.error,n=t?t.toString():e.message||e.reason||"",r=e.filename||t&&(t.fileName||t.sourceURL)||"",e=e.lineno||t&&(t.lineNumber||t.line)||0,t=t&&t.stack?t.stack.toString():r&&e?"at "+r+":"+e:"";""===n&&(n="An unspecified error occured."),E(n+="\n"+(t=t.startsWith(n)?t.substring(n.length):t).trim(),r,e)}function e(e,t,n){var r=e[t];void 0!==r&&r||(console.warn('Config option "'+t+'" is missing or empty. Falling back to default value: "'+n+'". Consider updating your WebGL template to include the missing config option.'),e[t]=n)}d=d||function(){};var o,m={canvas:t,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},wasmFileSize:50877898,cacheControl:function(e){return e==m.dataUrl||e.match(/\.bundle/)?"must-revalidate":"no-store"},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,t){e=window.setInterval(e,t);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?c('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+m.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):c('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+m.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(n,"companyName","Unity"),e(n,"productName","WebGL Player"),e(n,"productVersion","1.0"),n)m[o]=n[o];m.streamingAssetsUrl=new URL(m.streamingAssetsUrl,document.URL).href;var a=m.disabledCanvasEvents.slice();function i(e){e.preventDefault()}a.forEach(function(e){t.addEventListener(e,i)}),window.addEventListener("error",r),window.addEventListener("unhandledrejection",r);var s="",l="";function u(e){document.webkitCurrentFullScreenElement===t?t.style.width&&(s=t.style.width,l=t.style.height,t.style.width="100%",t.style.height="100%"):s&&(t.style.width=s,t.style.height=l,l=s="")}document.addEventListener("webkitfullscreenchange",u),m.deinitializers.push(function(){for(var e in m.disableAccessToMediaDevices(),a.forEach(function(e){t.removeEventListener(e,i)}),window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",r),document.removeEventListener("webkitfullscreenchange",u),m.intervals)window.clearInterval(e);m.intervals={}}),m.QuitCleanup=function(){for(var e=0;e<m.deinitializers.length;e++)m.deinitializers[e]();m.deinitializers=[],"function"==typeof m.onQuit&&m.onQuit()};var h,f,p,g,b,y,w,v,C,S={Module:m,SetFullscreen:function(){if(m.SetFullscreen)return m.SetFullscreen.apply(m,arguments);m.print("Failed to set Fullscreen mode: Player not loaded yet.")},SendMessage:function(){if(m.SendMessage)return m.SendMessage.apply(m,arguments);m.print("Failed to execute SendMessage: Player not loaded yet.")},ConnectToProfiler:function(){if(m.ConnectToProfiler)return m.ConnectToProfiler.apply(m,arguments);m.print("Failed to execute ConnectToProfiler: Player not loaded yet.")},StopProfiling:function(){if(m.StopProfiling)return m.StopProfiling.apply(m,arguments);m.print("Failed to execute StopProfiling: Player not loaded yet.")},IsConnectedToProfiler:function(){if(m.IsConnectedToProfiler)return m.IsConnectedToProfiler.apply(m,arguments);m.print("Failed to execute IsConnectedToProfiler: Player not loaded yet.")},Quit:function(){return new Promise(function(e,t){m.shouldQuit=!0,m.onQuit=e})},GetMetricsInfo:function(){var e=Number(m._getMetricsInfo())>>>0,t=4+e,n=4+t,r=8+n,o=8+r,a=4+o,i=4+a,s=8+i,d=8+s,c=4+d,l=4+c,u=4+l;return{totalWASMHeapSize:m.HEAPU32[e>>2],usedWASMHeapSize:m.HEAPU32[t>>2],totalJSHeapSize:m.HEAPF64[n>>3],usedJSHeapSize:m.HEAPF64[r>>3],pageLoadTime:m.HEAPU32[o>>2],pageLoadTimeToFrame1:m.HEAPU32[a>>2],fps:m.HEAPF64[i>>3],movingAverageFps:m.HEAPF64[s>>3],assetLoadTime:m.HEAPU32[d>>2],webAssemblyStartupTime:m.HEAPU32[c>>2]-(m.webAssemblyTimeStart||0),codeDownloadTime:m.HEAPU32[l>>2],gameStartupTime:m.HEAPU32[u>>2],numJankedFrames:m.HEAPU32[4+u>>2]}}};function P(e,t,n){-1==e.indexOf("fullscreen error")&&(m.startupErrorHandler?m.startupErrorHandler(e,t,n):m.errorHandler&&m.errorHandler(e,t,n)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),P.didShowErrorMessage||(-1!=(e="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),P.didShowErrorMessage=!0)))}function T(e,t){var n="(wasm-function\\[)(\\d+)(\\])",r=new RegExp(n);return e.replace(new RegExp(n,"g"),function(e){e=e.match(r);return e[1]+(t[e[2]]?t[e[2]]+"@":"")+e[2]+e[3]})}function E(r,o,a){m.symbols?P(T(r,m.symbols),o,a):m.symbolsUrl?I("symbolsUrl").then(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);m.symbols=JSON.parse(t),P(T(r,m.symbols),o,a)}).catch(function(e){P(r,o,a)}):P(r,o,a)}function U(e,t){if("symbolsUrl"!=e){var n=m.downloadProgress[e],r=(n=n||(m.downloadProgress[e]={started:!1,finished:!1,lengthComputable:!1,total:0,loaded:0}),"object"!=typeof t||"progress"!=t.type&&"load"!=t.type||(n.started||(n.started=!0,n.lengthComputable=t.lengthComputable),n.total=t.total,n.loaded=t.loaded,"load"==t.type&&(n.finished=!0)),0),o=0,a=0,i=0,s=0;for(e in m.downloadProgress){if(!(n=m.downloadProgress[e]).started)return;a++,n.lengthComputable?(r+=n.loaded,o+=n.total,i++):n.finished||s++}d(.9*(a?(a-s-(o?i*(o-r)/o:0))/a:0))}}function A(){var e=this;this.isConnected=this.connect().then(function(){return e.cleanUpCache()}),this.isConnected.catch(function(e){e="Error when initializing cache: "+e,console.log("[UnityCache] "+e)})}function k(e){console.log("[UnityCache] "+e)}function D(e){return D.link=D.link||document.createElement("a"),D.link.href=e,D.link.href}m.SystemInfo=function(){var e,t,n,r,o,a=navigator.userAgent+" ",i=[["Firefox","Firefox"],["OPR","Opera"],["Edg","Edge"],["SamsungBrowser","Samsung Browser"],["Trident","Internet Explorer"],["MSIE","Internet Explorer"],["Chrome","Chrome"],["CriOS","Chrome on iOS Safari"],["FxiOS","Firefox on iOS Safari"],["Safari","Safari"]];function s(e,t,n){return(e=RegExp(e,"i").exec(t))&&e[n]}for(var d=0;d<i.length;++d)if(t=s(i[d][0]+"[/ ](.*?)[ \\)]",a,1)){e=i[d][1];break}"Safari"==e&&(t=s("Version/(.*?) ",a,1)),"Internet Explorer"==e&&(t=s("rv:(.*?)\\)? ",a,1)||t);for(var c=[["Windows (.*?)[;)]","Windows"],["Android ([0-9_.]+)","Android"],["iPhone OS ([0-9_.]+)","iPhoneOS"],["iPad.*? OS ([0-9_.]+)","iPadOS"],["FreeBSD( )","FreeBSD"],["OpenBSD( )","OpenBSD"],["Linux|X11()","Linux"],["Mac OS X ([0-9_\\.]+)","MacOS"],["bot|google|baidu|bing|msn|teoma|slurp|yandex","Search Bot"]],l=0;l<c.length;++l)if(r=s(c[l][0],a,1)){n=c[l][1],r=r.replace(/_/g,".");break}var u;function h(){try{return window.WebAssembly?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,13,1,11,0,65,0,65,0,65,1,252,11,0,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,11,1,9,1,1,125,32,0,252,0,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,1,1,126,32,0,194,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))?!!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,0,6,64,1,25,1,11,11]))||"wasm-exceptions":"wasm-simd128":"sign-extend":"non-trapping fp-to-int":"bulk-memory":"WebAssembly"}catch(e){return"Exception: "+e}}r={"NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"Server 2003","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 10.0":"10"}[r]||r,webgpuVersion=0,(f=document.createElement("canvas"))&&(u=(p=f.getContext("webgl2"))?2:0,p||(p=f&&f.getContext("webgl"))&&(u=1),p&&(o=p.getExtension("WEBGL_debug_renderer_info")&&p.getParameter(37446)||p.getParameter(7937)),webgpuVersion=navigator.gpu?1:0);var f="undefined"!=typeof SharedArrayBuffer,p="object"==typeof WebAssembly&&"function"==typeof WebAssembly.compile,m=p&&!0===h();return{width:screen.width,height:screen.height,userAgent:a.trim(),browser:e||"Unknown browser",browserVersion:t||"Unknown version",mobile:/Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),os:n||"Unknown OS",osVersion:r||"Unknown OS Version",gpu:o||"Unknown GPU",language:navigator.userLanguage||navigator.language,hasWebGL:u,hasWebGPU:webgpuVersion,hasCursorLock:!!document.body.requestPointerLock,hasFullscreen:!!document.body.requestFullscreen||!!document.body.webkitRequestFullscreen,hasThreads:f,hasWasm:p,hasWasm2023:m,missingWasm2023Feature:m?null:h(),hasWasmThreads:!1}}(),m.abortHandler=function(e){return E(e,"",0),!0},Error.stackTraceLimit=Math.max(Error.stackTraceLimit||0,50),m.readBodyWithProgress=function(a,i,s){var e=a.body?a.body.getReader():void 0,d=void 0!==a.headers.get("Content-Length"),c=function(e,t){if(!t)return 0;var t=e.headers.get("Content-Encoding"),n=parseInt(e.headers.get("Content-Length")),r=536870912;switch(t){case"br":return Math.min(Math.round(2*n),r);case"gzip":return Math.min(Math.round(1.6*n),r);default:return n}}(a,d),l=new Uint8Array(c),u=[],h=0,f=0;return d||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function o(){return void 0===e?a.arrayBuffer().then(function(e){var t=new Uint8Array(e);return i({type:"progress",response:a,total:e.length,loaded:0,lengthComputable:d,chunk:s?t:null}),t}):e.read().then(function(e){if(e.done){if(h===c)return l;if(h<c)return l.slice(0,h);for(var t=new Uint8Array(h),n=(t.set(l,0),f),r=0;r<u.length;++r)t.set(u[r],n),n+=u[r].length;return t}return h+e.value.length<=l.length?(l.set(e.value,h),f=h+e.value.length):u.push(e.value),h+=e.value.length,i({type:"progress",response:a,total:Math.max(c,h),loaded:h,lengthComputable:d,chunk:s?e.value:null}),o()})}().then(function(e){return i({type:"load",response:a,total:e.length,loaded:e.length,lengthComputable:d,chunk:null}),a.parsedBody=e,a})},m.fetchWithProgress=function(e,t){var n=function(){};return t&&t.onProgress&&(n=t.onProgress),fetch(e,t).then(function(e){return m.readBodyWithProgress(e,n,t.enableStreamingDownload)})},m.UnityCache=(h={name:"UnityCache",version:4},f={name:"RequestMetaDataStore",version:1},p="RequestStore",g="WebAssembly",b=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,y=null,A.getInstance=function(){return y=y||new A},A.destroyInstance=function(){return y?y.close().then(function(){y=null}):Promise.resolve()},A.prototype.clearCache=function(){var r=this;return this.isConnected.then(function(){return r.execute(f.name,"clear",[])}).then(function(){return r.cache.keys()}).then(function e(t){var n;return 0===t.length?Promise.resolve():(n=t.pop(),r.cache.delete(n).then(function(){return e(t)}))})},A.UnityCacheDatabase=h,A.RequestMetaDataStore=f,A.MaximumCacheSize=1073741824,A.prototype.loadRequest=function(e){var t=this;return t.isConnected.then(function(){return Promise.all([t.cache.match(e),t.loadRequestMetaData(e)])}).then(function(e){if(void 0!==e[0]&&void 0!==e[1])return{response:e[0],metaData:e[1]}})},A.prototype.loadRequestMetaData=function(e){e="string"==typeof e?e:e.url;return this.execute(f.name,"get",[e])},A.prototype.updateRequestMetaData=function(e){return this.execute(f.name,"put",[e])},A.prototype.storeRequest=function(e,t){var n=this;return n.isConnected.then(function(){return n.cache.put(e,t)})},A.prototype.close=function(){return this.isConnected.then(function(){this.database&&(this.database.close(),this.database=null),this.cache&&(this.cache=null)}.bind(this))},A.prototype.connect=function(){var o=this;return void 0===b?Promise.reject(new Error("Could not connect to cache: IndexedDB is not supported.")):void 0===window.caches?Promise.reject(new Error("Could not connect to cache: Cache API is not supported.")):new Promise(function(t,n){try{function r(){o.openDBTimeout&&(clearTimeout(o.openDBTimeout),o.openDBTimeout=null)}o.openDBTimeout=setTimeout(function(){void 0===o.database&&n(new Error("Could not connect to cache: Database timeout."))},2e4);var e=b.open(h.name,h.version);e.onupgradeneeded=o.upgradeDatabase.bind(o),e.onsuccess=function(e){r(),o.database=e.target.result,t()},e.onerror=function(e){r(),o.database=null,n(new Error("Could not connect to database."))}}catch(e){r(),o.database=null,o.cache=null,n(new Error("Could not connect to cache: Could not connect to database."))}}).then(function(){var e=h.name+"_"+m.companyName+"_"+m.productName;return caches.open(e)}).then(function(e){o.cache=e})},A.prototype.upgradeDatabase=function(e){var t,e=e.target.result;e.objectStoreNames.contains(f.name)||(t=e.createObjectStore(f.name,{keyPath:"url"}),["accessedAt","updatedAt"].forEach(function(e){t.createIndex(e,e)})),e.objectStoreNames.contains(p)&&e.deleteObjectStore(p),e.objectStoreNames.contains(g)&&e.deleteObjectStore(g)},A.prototype.execute=function(a,i,s){return this.isConnected.then(function(){return new Promise(function(t,n){try{var e,r,o;null===this.database?n(new Error("indexedDB access denied")):(e=-1!=["put","delete","clear"].indexOf(i)?"readwrite":"readonly",r=this.database.transaction([a],e).objectStore(a),"openKeyCursor"==i&&(r=r.index(s[0]),s=s.slice(1)),(o=r[i].apply(r,s)).onsuccess=function(e){t(e.target.result)},o.onerror=function(e){n(e)})}catch(e){n(e)}}.bind(this))}.bind(this))},A.prototype.getMetaDataEntries=function(){var r=this,o=0,a=[];return new Promise(function(t,n){var e=r.database.transaction([f.name],"readonly").objectStore(f.name).openCursor();e.onsuccess=function(e){e=e.target.result;e?(o+=e.value.size,a.push(e.value),e.continue()):t({metaDataEntries:a,cacheSize:o})},e.onerror=function(e){n(e)}})},A.prototype.cleanUpCache=function(){var i=this;return this.getMetaDataEntries().then(function(e){for(var t=e.metaDataEntries,n=e.cacheSize,r=[],o=[],a=0;a<t.length;++a)t[a].version==m.productVersion?o.push(t[a]):(r.push(t[a]),n-=t[a].size);o.sort(function(e,t){return e.accessedAt-t.accessedAt});for(a=0;a<o.length&&!(n<A.MaximumCacheSize);++a)r.push(o[a]),n-=o[a].size;return function e(){var t;return 0===r.length?Promise.resolve():(t=r.pop(),i.cache.delete(t.url).then(function(e){if(e)return r=t.url,new Promise(function(e,t){var n=i.database.transaction([f.name],"readwrite");n.objectStore(f.name).delete(r),n.oncomplete=e,n.onerror=t});var r}).then(e))}()})},A),m.cachedFetch=(w=m.UnityCache,v=m.fetchWithProgress,C=m.readBodyWithProgress,function(o,a){var e,t,i=w.getInstance(),s=D("string"==typeof o?o:o.url),d={enabled:(e=s,(!(t=a)||!t.method||"GET"===t.method)&&((!t||-1!=["must-revalidate","immutable"].indexOf(t.control))&&!!e.match("^https?://")))};function c(n,r){return fetch(n,r).then(function(e){var t;return!d.enabled||d.revalidated?e:304===e.status?(d.revalidated=!0,i.updateRequestMetaData(d.metaData).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}).catch(function(e){k("'"+d.metaData.url+"' successfully revalidated but not stored in the browser cache due to the error: "+e)}),C(d.response,r.onProgress,r.enableStreamingDownload)):200==e.status?(d.response=e,d.metaData.updatedAt=d.metaData.accessedAt,d.revalidated=!0,t=e.clone(),C(e,r.onProgress,r.enableStreamingDownload).then(function(e){return d.metaData.size=e.parsedBody.length,Promise.all([i.storeRequest(n,t),i.updateRequestMetaData(d.metaData)]).then(function(){k("'"+s+"' successfully downloaded and stored in the browser cache")}).catch(function(e){k("'"+s+"' successfully downloaded but not stored in the browser cache due to the error: "+e)}),e})):(k("'"+s+"' request failed with status: "+e.status+" "+e.statusText),C(e,r.onProgress,r.enableStreamingDownload))})}return a&&(d.control=a.control,d.companyName=a.companyName,d.productName=a.productName,d.productVersion=a.productVersion),d.revalidated=!1,d.metaData={url:s,accessedAt:Date.now(),version:d.productVersion},d.response=null,d.enabled?i.loadRequest(s).then(function(e){var n,r,t;return e?(n=e.response,r=e.metaData,d.response=n,d.metaData.size=r.size,d.metaData.updatedAt=r.updatedAt,"immutable"==d.control?(d.revalidated=!0,i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' served from the browser cache without revalidation")}),C(n,a.onProgress,a.enableStreamingDownload)):(e=s,(t=window.location.href.match(/^[a-z]+:\/\/[^\/]+/))&&!e.lastIndexOf(t[0],0)||!n.headers.get("Last-Modified")&&!n.headers.get("ETag")?(e=(a=a||{}).headers||{},a.headers=e,n.headers.get("Last-Modified")?(e["If-Modified-Since"]=n.headers.get("Last-Modified"),e["Cache-Control"]="no-cache"):n.headers.get("ETag")&&(e["If-None-Match"]=n.headers.get("ETag"),e["Cache-Control"]="no-cache"),c(o,a)):fetch(s,{method:"HEAD"}).then(function(t){return d.revalidated=["Last-Modified","ETag"].every(function(e){return!n.headers.get(e)||n.headers.get(e)==t.headers.get(e)}),d.revalidated?(i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}),C(d.response,a.onProgress,a.enableStreamingDownload)):c(o,a)}))):c(o,a)}).catch(function(e){return k("Failed to load '"+d.metaData.url+"' from browser cache due to the error: "+e),v(o,a)}):v(o,a)});var x={gzip:{hasUnityMarker:function(e){var t=10,n="UnityWeb Compressed Content (gzip)";if(t>e.length||31!=e[0]||139!=e[1])return!1;var r=e[3];if(4&r){if(t+2>e.length)return!1;if((t+=2+e[t]+(e[t+1]<<8))>e.length)return!1}if(8&r){for(;t<e.length&&e[t];)t++;if(t+1>e.length)return!1;t++}return 16&r&&String.fromCharCode.apply(null,e.subarray(t,t+n.length+1))==n+"\0"}},br:{hasUnityMarker:function(e){var t="UnityWeb Compressed Content (brotli)";if(!e.length)return!1;var n=1&e[0]?14&e[0]?4:7:1,r=e[0]&(1<<n)-1,o=1+(Math.log(t.length-1)/Math.log(2)>>3);if(commentOffset=1+n+2+1+2+(o<<3)+7>>3,17==r||commentOffset>e.length)return!1;for(var a=r+(6+(o<<4)+(t.length-1<<6)<<n),i=0;i<commentOffset;i++,a>>>=8)if(e[i]!=(255&a))return!1;return String.fromCharCode.apply(null,e.subarray(commentOffset,commentOffset+t.length))==t}}};function I(t){U(t);var e=m.cacheControl(m[t]),n=m.companyName&&m.productName?m.cachedFetch:m.fetchWithProgress,s=m[t],r=/file:\/\//.exec(s)?"same-origin":void 0;return n(m[t],{method:"GET",companyName:m.companyName,productName:m.productName,productVersion:m.productVersion,control:e,mode:r,onProgress:function(e){U(t,e)}}).then(function(e){var t,n,r,o,a,i;return x.gzip.hasUnityMarker(e.parsedBody)&&(t=["gzip","gzip"]),(t=x.br.hasUnityMarker(e.parsedBody)?["brotli","br"]:t)&&(n=e.headers.get("Content-Type"),r=e.headers.get("Content-Encoding"),a=0<(o=e.headers.get("Content-Length"))&&e.parsedBody.length!=o,i=0<o&&e.parsedBody.length==o,r!=t[1]?c("Failed to parse binary data file "+s+' (with "Content-Type: '+n+'"), because it is still '+t[0]+'-compressed. It should have been uncompressed by the browser, but it was unable to do so since the web server provided the compressed content without specifying the HTTP Response Header "Content-Encoding: '+t[1]+'" that would have informed the browser that decompression is needed. Please verify your web server hosting configuration to add the missing "Content-Encoding: '+t[1]+'" HTTP Response Header.',"error"):c(a?"Web server configuration error: it looks like the web server has been misconfigured to double-compress the data file "+s+"! That is, it looks like the web browser has decompressed the file, but it is still in compressed form, suggesting that an already compressed file was compressed a second time. (Content-Length: "+o+", obtained length: "+e.parsedBody.length+")":i?/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&"gzip"==r&&"application/octet-stream"==n?"Unable to load content due to Apple Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421 . To work around this issue, please reconfigure your web server to serve "+s+" with Content-Type: application/gzip instead of Content-Type: application/octet-stream":"Malformed binary data? Received compressed data file "+s+', with "Content-Type: '+n+'", "Content-Encoding: '+t[1]+'", "Content-Length: '+o+'", which the web browser should have decompressed, but it seemingly did not (received file size is the same as compressed file size was). Double check that the integrity of the file is intact.':"Malformed binary data URL "+s+'. No "Content-Length" HTTP Response header present. Check browser console for more information.',"error"),console.error("Malformed data? Downloaded binary data file "+s+" (ArrayBuffer size: "+e.parsedBody.length+") and browser should have decompressed it, but it might have not. Dumping raw HTTP Response Headers if it might help debug:"),e.headers.forEach(function(e,t){console.error(t+": "+e)})),e.parsedBody}).catch(function(e){var t="Failed to download file "+s;"file:"==location.protocol?c(t+". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.","error"):console.error(t)})}function W(){var t=performance.now(),p=(new Promise(function(a,e){var i=document.createElement("script");i.src=m.frameworkUrl,i.onload=function(){if("undefined"==typeof unityFramework||!unityFramework){var e,t=[["br","br"],["gz","gzip"]];for(e in t){var n,r=t[e];if(m.frameworkUrl.endsWith("."+r[0]))return n="Unable to parse "+m.frameworkUrl+"!","file:"==location.protocol?void c(n+" Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.","error"):(n+=' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: '+r[1]+'" present. Check browser Console and Devtools Network tab to debug.',"br"==r[0]&&"http:"==location.protocol&&(r=-1!=["localhost","127.0.0.1"].indexOf(location.hostname)?"":"Migrate your server to use HTTPS.",n=/Firefox/.test(navigator.userAgent)?"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+r+' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.':"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void c(n,"error"))}c("Unable to parse "+m.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,i.onload=null,a(o)},i.onerror=function(e){c("Unable to load file "+m.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(i),m.deinitializers.push(function(){document.body.removeChild(i)})}).then(function(e){m.webAssemblyTimeStart=performance.now(),e(m),m.codeDownloadTimeEnd=performance.now()-t}),performance.now()),e=I("dataUrl");m.preRun.push(function(){m.addRunDependency("dataUrl"),e.then(function(t){var e=new TextDecoder("utf-8"),n=0;function r(){var e=(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0;return n+=4,e}function o(e){if(x.gzip.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still gzip-compressed and should have been uncompressed by the browser. Web server has likely provided gzip-compressed data without specifying the HTTP Response Header "Content-Encoding: gzip" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';if(x.br.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still brotli-compressed and should have been uncompressed by the browser. Web server has likely provided brotli-compressed data without specifying the HTTP Response Header "Content-Encoding: br" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';throw e}var a="UnityWebData1.0\0",i=e.decode(t.subarray(0,a.length)),s=(i!=a&&o('Unknown data format (id="'+i+'")'),n+=a.length,r());for(n+s>t.length&&o("Invalid binary data file header! (pos="+n+", headerSize="+s+", file length="+t.length+")");n<s;){var d=r(),c=r(),l=(d+c>t.length&&o("Invalid binary data file size! (offset="+d+", size="+c+", file length="+t.length+")"),r()),u=(n+l>t.length&&o("Invalid binary data file path name! (pos="+n+", length="+l+", file length="+t.length+")"),e.decode(t.subarray(n,n+l)));n+=l;for(var h=0,f=u.indexOf("/",h)+1;0<f;h=f,f=u.indexOf("/",h)+1)m.FS_createPath(u.substring(0,h),u.substring(h,f-1),!0,!0);m.FS_createDataFile(u,null,t.subarray(d,d+c),!0,!0,!0)}m.removeRunDependency("dataUrl"),m.dataUrlLoadEndTime=performance.now()-p})})}return new Promise(function(e,t){var n;m.SystemInfo.hasWebGL?1==m.SystemInfo.hasWebGL?(n='Your browser does not support graphics API "WebGL 2" which is required for this content.',"Safari"==m.SystemInfo.browser&&parseInt(m.SystemInfo.browserVersion)<15&&(m.SystemInfo.mobile||1<navigator.maxTouchPoints?n+="\nUpgrade to iOS 15 or later.":n+="\nUpgrade to Safari 15 or later."),t(n)):m.SystemInfo.hasWasm?m.SystemInfo.hasWasm2023?(m.startupErrorHandler=t,d(0),m.postRun.push(function(){d(1),m.WebPlayer.WaitForInitialization().then(function(){delete m.startupErrorHandler,e(S),m.pageStartupTime=performance.now()})}),new Promise(function(t,e){navigator.gpu?navigator.gpu.requestAdapter().then(function(e){m.SystemInfo.hasWebGPU=!!e,t(m.SystemInfo.hasWebGPU)}):t(!1)}).then(function(){W()})):t("Your browser does not support WebAssembly 2023. Please update to Chrome \u2265 91 (May 2021), Firefox \u2265 89 (June 2021) or Safari \u2265 16.4 (March 2023). (failed "+m.SystemInfo.missingWasm2023Feature+")"):t("Your browser does not support WebAssembly."):t("Your browser does not support WebGL.")})}
1
+ function createUnityInstance(t,n,d){function c(e,t){if(!c.aborted&&n.showBanner)return"error"==t&&(c.aborted=!0),n.showBanner(e,t);switch(t){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function r(e){var t=e.reason||e.error,n=t?t.toString():e.message||e.reason||"",r=e.filename||t&&(t.fileName||t.sourceURL)||"",e=e.lineno||t&&(t.lineNumber||t.line)||0,t=t&&t.stack?t.stack.toString():r&&e?"at "+r+":"+e:"";""===n&&(n="An unspecified error occured."),E(n+="\n"+(t=t.startsWith(n)?t.substring(n.length):t).trim(),r,e)}function e(e,t,n){var r=e[t];void 0!==r&&r||(console.warn('Config option "'+t+'" is missing or empty. Falling back to default value: "'+n+'". Consider updating your WebGL template to include the missing config option.'),e[t]=n)}d=d||function(){};var o,m={canvas:t,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},wasmFileSize:59535247,cacheControl:function(e){return e==m.dataUrl||e.match(/\.bundle/)?"must-revalidate":"no-store"},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,t){e=window.setInterval(e,t);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?c('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+m.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):c('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+m.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(n,"companyName","Unity"),e(n,"productName","WebGL Player"),e(n,"productVersion","1.0"),n)m[o]=n[o];m.streamingAssetsUrl=new URL(m.streamingAssetsUrl,document.URL).href;var a=m.disabledCanvasEvents.slice();function i(e){e.preventDefault()}a.forEach(function(e){t.addEventListener(e,i)}),window.addEventListener("error",r),window.addEventListener("unhandledrejection",r);var s="",l="";function u(e){document.webkitCurrentFullScreenElement===t?t.style.width&&(s=t.style.width,l=t.style.height,t.style.width="100%",t.style.height="100%"):s&&(t.style.width=s,t.style.height=l,l=s="")}document.addEventListener("webkitfullscreenchange",u),m.deinitializers.push(function(){for(var e in m.disableAccessToMediaDevices(),a.forEach(function(e){t.removeEventListener(e,i)}),window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",r),document.removeEventListener("webkitfullscreenchange",u),m.intervals)window.clearInterval(e);m.intervals={}}),m.QuitCleanup=function(){for(var e=0;e<m.deinitializers.length;e++)m.deinitializers[e]();m.deinitializers=[],"function"==typeof m.onQuit&&m.onQuit()};var h,f,p,g,b,y,w,v,C,S={Module:m,SetFullscreen:function(){if(m.SetFullscreen)return m.SetFullscreen.apply(m,arguments);m.print("Failed to set Fullscreen mode: Player not loaded yet.")},SendMessage:function(){if(m.SendMessage)return m.SendMessage.apply(m,arguments);m.print("Failed to execute SendMessage: Player not loaded yet.")},ConnectToProfiler:function(){if(m.ConnectToProfiler)return m.ConnectToProfiler.apply(m,arguments);m.print("Failed to execute ConnectToProfiler: Player not loaded yet.")},StopProfiling:function(){if(m.StopProfiling)return m.StopProfiling.apply(m,arguments);m.print("Failed to execute StopProfiling: Player not loaded yet.")},IsConnectedToProfiler:function(){if(m.IsConnectedToProfiler)return m.IsConnectedToProfiler.apply(m,arguments);m.print("Failed to execute IsConnectedToProfiler: Player not loaded yet.")},Quit:function(){return new Promise(function(e,t){m.shouldQuit=!0,m.onQuit=e})},GetMetricsInfo:function(){var e=Number(m._getMetricsInfo())>>>0,t=4+e,n=4+t,r=8+n,o=8+r,a=4+o,i=4+a,s=8+i,d=8+s,c=4+d,l=4+c,u=4+l;return{totalWASMHeapSize:m.HEAPU32[e>>2],usedWASMHeapSize:m.HEAPU32[t>>2],totalJSHeapSize:m.HEAPF64[n>>3],usedJSHeapSize:m.HEAPF64[r>>3],pageLoadTime:m.HEAPU32[o>>2],pageLoadTimeToFrame1:m.HEAPU32[a>>2],fps:m.HEAPF64[i>>3],movingAverageFps:m.HEAPF64[s>>3],assetLoadTime:m.HEAPU32[d>>2],webAssemblyStartupTime:m.HEAPU32[c>>2]-(m.webAssemblyTimeStart||0),codeDownloadTime:m.HEAPU32[l>>2],gameStartupTime:m.HEAPU32[u>>2],numJankedFrames:m.HEAPU32[4+u>>2]}}};function P(e,t,n){-1==e.indexOf("fullscreen error")&&(m.startupErrorHandler?m.startupErrorHandler(e,t,n):m.errorHandler&&m.errorHandler(e,t,n)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),P.didShowErrorMessage||(-1!=(e="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),P.didShowErrorMessage=!0)))}function T(e,t){var n="(wasm-function\\[)(\\d+)(\\])",r=new RegExp(n);return e.replace(new RegExp(n,"g"),function(e){e=e.match(r);return e[1]+(t[e[2]]?t[e[2]]+"@":"")+e[2]+e[3]})}function E(r,o,a){m.symbols?P(T(r,m.symbols),o,a):m.symbolsUrl?I("symbolsUrl").then(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);m.symbols=JSON.parse(t),P(T(r,m.symbols),o,a)}).catch(function(e){P(r,o,a)}):P(r,o,a)}function U(e,t){if("symbolsUrl"!=e){var n=m.downloadProgress[e],r=(n=n||(m.downloadProgress[e]={started:!1,finished:!1,lengthComputable:!1,total:0,loaded:0}),"object"!=typeof t||"progress"!=t.type&&"load"!=t.type||(n.started||(n.started=!0,n.lengthComputable=t.lengthComputable),n.total=t.total,n.loaded=t.loaded,"load"==t.type&&(n.finished=!0)),0),o=0,a=0,i=0,s=0;for(e in m.downloadProgress){if(!(n=m.downloadProgress[e]).started)return;a++,n.lengthComputable?(r+=n.loaded,o+=n.total,i++):n.finished||s++}d(.9*(a?(a-s-(o?i*(o-r)/o:0))/a:0))}}function A(){var e=this;this.isConnected=this.connect().then(function(){return e.cleanUpCache()}),this.isConnected.catch(function(e){e="Error when initializing cache: "+e,console.log("[UnityCache] "+e)})}function k(e){console.log("[UnityCache] "+e)}function D(e){return D.link=D.link||document.createElement("a"),D.link.href=e,D.link.href}m.SystemInfo=function(){var e,t,n,r,o,a=navigator.userAgent+" ",i=[["Firefox","Firefox"],["OPR","Opera"],["Edg","Edge"],["SamsungBrowser","Samsung Browser"],["Trident","Internet Explorer"],["MSIE","Internet Explorer"],["Chrome","Chrome"],["CriOS","Chrome on iOS Safari"],["FxiOS","Firefox on iOS Safari"],["Safari","Safari"]];function s(e,t,n){return(e=RegExp(e,"i").exec(t))&&e[n]}for(var d=0;d<i.length;++d)if(t=s(i[d][0]+"[/ ](.*?)[ \\)]",a,1)){e=i[d][1];break}"Safari"==e&&(t=s("Version/(.*?) ",a,1)),"Internet Explorer"==e&&(t=s("rv:(.*?)\\)? ",a,1)||t);for(var c=[["Windows (.*?)[;)]","Windows"],["Android ([0-9_.]+)","Android"],["iPhone OS ([0-9_.]+)","iPhoneOS"],["iPad.*? OS ([0-9_.]+)","iPadOS"],["FreeBSD( )","FreeBSD"],["OpenBSD( )","OpenBSD"],["Linux|X11()","Linux"],["Mac OS X ([0-9_\\.]+)","MacOS"],["bot|google|baidu|bing|msn|teoma|slurp|yandex","Search Bot"]],l=0;l<c.length;++l)if(r=s(c[l][0],a,1)){n=c[l][1],r=r.replace(/_/g,".");break}var u;function h(){try{return window.WebAssembly?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,13,1,11,0,65,0,65,0,65,1,252,11,0,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,11,1,9,1,1,125,32,0,252,0,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,1,1,126,32,0,194,26,11]))?WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))?!!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,10,1,8,0,6,64,1,25,1,11,11]))||"wasm-exceptions":"wasm-simd128":"sign-extend":"non-trapping fp-to-int":"bulk-memory":"WebAssembly"}catch(e){return"Exception: "+e}}r={"NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"Server 2003","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 10.0":"10"}[r]||r,webgpuVersion=0,(f=document.createElement("canvas"))&&(u=(p=f.getContext("webgl2"))?2:0,p||(p=f&&f.getContext("webgl"))&&(u=1),p&&(o=p.getExtension("WEBGL_debug_renderer_info")&&p.getParameter(37446)||p.getParameter(7937)),webgpuVersion=navigator.gpu?1:0);var f="undefined"!=typeof SharedArrayBuffer,p="object"==typeof WebAssembly&&"function"==typeof WebAssembly.compile,m=p&&!0===h();return{width:screen.width,height:screen.height,userAgent:a.trim(),browser:e||"Unknown browser",browserVersion:t||"Unknown version",mobile:/Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),os:n||"Unknown OS",osVersion:r||"Unknown OS Version",gpu:o||"Unknown GPU",language:navigator.userLanguage||navigator.language,hasWebGL:u,hasWebGPU:webgpuVersion,hasCursorLock:!!document.body.requestPointerLock,hasFullscreen:!!document.body.requestFullscreen||!!document.body.webkitRequestFullscreen,hasThreads:f,hasWasm:p,hasWasm2023:m,missingWasm2023Feature:m?null:h(),hasWasmThreads:!1}}(),m.abortHandler=function(e){return E(e,"",0),!0},Error.stackTraceLimit=Math.max(Error.stackTraceLimit||0,50),m.readBodyWithProgress=function(a,i,s){var e=a.body?a.body.getReader():void 0,d=void 0!==a.headers.get("Content-Length"),c=function(e,t){if(!t)return 0;var t=e.headers.get("Content-Encoding"),n=parseInt(e.headers.get("Content-Length")),r=536870912;switch(t){case"br":return Math.min(Math.round(2*n),r);case"gzip":return Math.min(Math.round(1.6*n),r);default:return n}}(a,d),l=new Uint8Array(c),u=[],h=0,f=0;return d||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function o(){return void 0===e?a.arrayBuffer().then(function(e){var t=new Uint8Array(e);return i({type:"progress",response:a,total:e.length,loaded:0,lengthComputable:d,chunk:s?t:null}),t}):e.read().then(function(e){if(e.done){if(h===c)return l;if(h<c)return l.slice(0,h);for(var t=new Uint8Array(h),n=(t.set(l,0),f),r=0;r<u.length;++r)t.set(u[r],n),n+=u[r].length;return t}return h+e.value.length<=l.length?(l.set(e.value,h),f=h+e.value.length):u.push(e.value),h+=e.value.length,i({type:"progress",response:a,total:Math.max(c,h),loaded:h,lengthComputable:d,chunk:s?e.value:null}),o()})}().then(function(e){return i({type:"load",response:a,total:e.length,loaded:e.length,lengthComputable:d,chunk:null}),a.parsedBody=e,a})},m.fetchWithProgress=function(e,t){var n=function(){};return t&&t.onProgress&&(n=t.onProgress),fetch(e,t).then(function(e){return m.readBodyWithProgress(e,n,t.enableStreamingDownload)})},m.UnityCache=(h={name:"UnityCache",version:4},f={name:"RequestMetaDataStore",version:1},p="RequestStore",g="WebAssembly",b=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,y=null,A.getInstance=function(){return y=y||new A},A.destroyInstance=function(){return y?y.close().then(function(){y=null}):Promise.resolve()},A.prototype.clearCache=function(){var r=this;return this.isConnected.then(function(){return r.execute(f.name,"clear",[])}).then(function(){return r.cache.keys()}).then(function e(t){var n;return 0===t.length?Promise.resolve():(n=t.pop(),r.cache.delete(n).then(function(){return e(t)}))})},A.UnityCacheDatabase=h,A.RequestMetaDataStore=f,A.MaximumCacheSize=1073741824,A.prototype.loadRequest=function(e){var t=this;return t.isConnected.then(function(){return Promise.all([t.cache.match(e),t.loadRequestMetaData(e)])}).then(function(e){if(void 0!==e[0]&&void 0!==e[1])return{response:e[0],metaData:e[1]}})},A.prototype.loadRequestMetaData=function(e){e="string"==typeof e?e:e.url;return this.execute(f.name,"get",[e])},A.prototype.updateRequestMetaData=function(e){return this.execute(f.name,"put",[e])},A.prototype.storeRequest=function(e,t){var n=this;return n.isConnected.then(function(){return n.cache.put(e,t)})},A.prototype.close=function(){return this.isConnected.then(function(){this.database&&(this.database.close(),this.database=null),this.cache&&(this.cache=null)}.bind(this))},A.prototype.connect=function(){var o=this;return void 0===b?Promise.reject(new Error("Could not connect to cache: IndexedDB is not supported.")):void 0===window.caches?Promise.reject(new Error("Could not connect to cache: Cache API is not supported.")):new Promise(function(t,n){try{function r(){o.openDBTimeout&&(clearTimeout(o.openDBTimeout),o.openDBTimeout=null)}o.openDBTimeout=setTimeout(function(){void 0===o.database&&n(new Error("Could not connect to cache: Database timeout."))},2e4);var e=b.open(h.name,h.version);e.onupgradeneeded=o.upgradeDatabase.bind(o),e.onsuccess=function(e){r(),o.database=e.target.result,t()},e.onerror=function(e){r(),o.database=null,n(new Error("Could not connect to database."))}}catch(e){r(),o.database=null,o.cache=null,n(new Error("Could not connect to cache: Could not connect to database."))}}).then(function(){var e=h.name+"_"+m.companyName+"_"+m.productName;return caches.open(e)}).then(function(e){o.cache=e})},A.prototype.upgradeDatabase=function(e){var t,e=e.target.result;e.objectStoreNames.contains(f.name)||(t=e.createObjectStore(f.name,{keyPath:"url"}),["accessedAt","updatedAt"].forEach(function(e){t.createIndex(e,e)})),e.objectStoreNames.contains(p)&&e.deleteObjectStore(p),e.objectStoreNames.contains(g)&&e.deleteObjectStore(g)},A.prototype.execute=function(a,i,s){return this.isConnected.then(function(){return new Promise(function(t,n){try{var e,r,o;null===this.database?n(new Error("indexedDB access denied")):(e=-1!=["put","delete","clear"].indexOf(i)?"readwrite":"readonly",r=this.database.transaction([a],e).objectStore(a),"openKeyCursor"==i&&(r=r.index(s[0]),s=s.slice(1)),(o=r[i].apply(r,s)).onsuccess=function(e){t(e.target.result)},o.onerror=function(e){n(e)})}catch(e){n(e)}}.bind(this))}.bind(this))},A.prototype.getMetaDataEntries=function(){var r=this,o=0,a=[];return new Promise(function(t,n){var e=r.database.transaction([f.name],"readonly").objectStore(f.name).openCursor();e.onsuccess=function(e){e=e.target.result;e?(o+=e.value.size,a.push(e.value),e.continue()):t({metaDataEntries:a,cacheSize:o})},e.onerror=function(e){n(e)}})},A.prototype.cleanUpCache=function(){var i=this;return this.getMetaDataEntries().then(function(e){for(var t=e.metaDataEntries,n=e.cacheSize,r=[],o=[],a=0;a<t.length;++a)t[a].version==m.productVersion?o.push(t[a]):(r.push(t[a]),n-=t[a].size);o.sort(function(e,t){return e.accessedAt-t.accessedAt});for(a=0;a<o.length&&!(n<A.MaximumCacheSize);++a)r.push(o[a]),n-=o[a].size;return function e(){var t;return 0===r.length?Promise.resolve():(t=r.pop(),i.cache.delete(t.url).then(function(e){if(e)return r=t.url,new Promise(function(e,t){var n=i.database.transaction([f.name],"readwrite");n.objectStore(f.name).delete(r),n.oncomplete=e,n.onerror=t});var r}).then(e))}()})},A),m.cachedFetch=(w=m.UnityCache,v=m.fetchWithProgress,C=m.readBodyWithProgress,function(o,a){var e,t,i=w.getInstance(),s=D("string"==typeof o?o:o.url),d={enabled:(e=s,(!(t=a)||!t.method||"GET"===t.method)&&((!t||-1!=["must-revalidate","immutable"].indexOf(t.control))&&!!e.match("^https?://")))};function c(n,r){return fetch(n,r).then(function(e){var t;return!d.enabled||d.revalidated?e:304===e.status?(d.revalidated=!0,i.updateRequestMetaData(d.metaData).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}).catch(function(e){k("'"+d.metaData.url+"' successfully revalidated but not stored in the browser cache due to the error: "+e)}),C(d.response,r.onProgress,r.enableStreamingDownload)):200==e.status?(d.response=e,d.metaData.updatedAt=d.metaData.accessedAt,d.revalidated=!0,t=e.clone(),C(e,r.onProgress,r.enableStreamingDownload).then(function(e){return d.metaData.size=e.parsedBody.length,Promise.all([i.storeRequest(n,t),i.updateRequestMetaData(d.metaData)]).then(function(){k("'"+s+"' successfully downloaded and stored in the browser cache")}).catch(function(e){k("'"+s+"' successfully downloaded but not stored in the browser cache due to the error: "+e)}),e})):(k("'"+s+"' request failed with status: "+e.status+" "+e.statusText),C(e,r.onProgress,r.enableStreamingDownload))})}return a&&(d.control=a.control,d.companyName=a.companyName,d.productName=a.productName,d.productVersion=a.productVersion),d.revalidated=!1,d.metaData={url:s,accessedAt:Date.now(),version:d.productVersion},d.response=null,d.enabled?i.loadRequest(s).then(function(e){var n,r,t;return e?(n=e.response,r=e.metaData,d.response=n,d.metaData.size=r.size,d.metaData.updatedAt=r.updatedAt,"immutable"==d.control?(d.revalidated=!0,i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' served from the browser cache without revalidation")}),C(n,a.onProgress,a.enableStreamingDownload)):(e=s,(t=window.location.href.match(/^[a-z]+:\/\/[^\/]+/))&&!e.lastIndexOf(t[0],0)||!n.headers.get("Last-Modified")&&!n.headers.get("ETag")?(e=(a=a||{}).headers||{},a.headers=e,n.headers.get("Last-Modified")?(e["If-Modified-Since"]=n.headers.get("Last-Modified"),e["Cache-Control"]="no-cache"):n.headers.get("ETag")&&(e["If-None-Match"]=n.headers.get("ETag"),e["Cache-Control"]="no-cache"),c(o,a)):fetch(s,{method:"HEAD"}).then(function(t){return d.revalidated=["Last-Modified","ETag"].every(function(e){return!n.headers.get(e)||n.headers.get(e)==t.headers.get(e)}),d.revalidated?(i.updateRequestMetaData(r).then(function(){k("'"+d.metaData.url+"' successfully revalidated and served from the browser cache")}),C(d.response,a.onProgress,a.enableStreamingDownload)):c(o,a)}))):c(o,a)}).catch(function(e){return k("Failed to load '"+d.metaData.url+"' from browser cache due to the error: "+e),v(o,a)}):v(o,a)});var x={gzip:{hasUnityMarker:function(e){var t=10,n="UnityWeb Compressed Content (gzip)";if(t>e.length||31!=e[0]||139!=e[1])return!1;var r=e[3];if(4&r){if(t+2>e.length)return!1;if((t+=2+e[t]+(e[t+1]<<8))>e.length)return!1}if(8&r){for(;t<e.length&&e[t];)t++;if(t+1>e.length)return!1;t++}return 16&r&&String.fromCharCode.apply(null,e.subarray(t,t+n.length+1))==n+"\0"}},br:{hasUnityMarker:function(e){var t="UnityWeb Compressed Content (brotli)";if(!e.length)return!1;var n=1&e[0]?14&e[0]?4:7:1,r=e[0]&(1<<n)-1,o=1+(Math.log(t.length-1)/Math.log(2)>>3);if(commentOffset=1+n+2+1+2+(o<<3)+7>>3,17==r||commentOffset>e.length)return!1;for(var a=r+(6+(o<<4)+(t.length-1<<6)<<n),i=0;i<commentOffset;i++,a>>>=8)if(e[i]!=(255&a))return!1;return String.fromCharCode.apply(null,e.subarray(commentOffset,commentOffset+t.length))==t}}};function I(t){U(t);var e=m.cacheControl(m[t]),n=m.companyName&&m.productName?m.cachedFetch:m.fetchWithProgress,s=m[t],r=/file:\/\//.exec(s)?"same-origin":void 0;return n(m[t],{method:"GET",companyName:m.companyName,productName:m.productName,productVersion:m.productVersion,control:e,mode:r,onProgress:function(e){U(t,e)}}).then(function(e){var t,n,r,o,a,i;return x.gzip.hasUnityMarker(e.parsedBody)&&(t=["gzip","gzip"]),(t=x.br.hasUnityMarker(e.parsedBody)?["brotli","br"]:t)&&(n=e.headers.get("Content-Type"),r=e.headers.get("Content-Encoding"),a=0<(o=e.headers.get("Content-Length"))&&e.parsedBody.length!=o,i=0<o&&e.parsedBody.length==o,r!=t[1]?c("Failed to parse binary data file "+s+' (with "Content-Type: '+n+'"), because it is still '+t[0]+'-compressed. It should have been uncompressed by the browser, but it was unable to do so since the web server provided the compressed content without specifying the HTTP Response Header "Content-Encoding: '+t[1]+'" that would have informed the browser that decompression is needed. Please verify your web server hosting configuration to add the missing "Content-Encoding: '+t[1]+'" HTTP Response Header.',"error"):c(a?"Web server configuration error: it looks like the web server has been misconfigured to double-compress the data file "+s+"! That is, it looks like the web browser has decompressed the file, but it is still in compressed form, suggesting that an already compressed file was compressed a second time. (Content-Length: "+o+", obtained length: "+e.parsedBody.length+")":i?/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&"gzip"==r&&"application/octet-stream"==n?"Unable to load content due to Apple Safari bug https://bugs.webkit.org/show_bug.cgi?id=247421 . To work around this issue, please reconfigure your web server to serve "+s+" with Content-Type: application/gzip instead of Content-Type: application/octet-stream":"Malformed binary data? Received compressed data file "+s+', with "Content-Type: '+n+'", "Content-Encoding: '+t[1]+'", "Content-Length: '+o+'", which the web browser should have decompressed, but it seemingly did not (received file size is the same as compressed file size was). Double check that the integrity of the file is intact.':"Malformed binary data URL "+s+'. No "Content-Length" HTTP Response header present. Check browser console for more information.',"error"),console.error("Malformed data? Downloaded binary data file "+s+" (ArrayBuffer size: "+e.parsedBody.length+") and browser should have decompressed it, but it might have not. Dumping raw HTTP Response Headers if it might help debug:"),e.headers.forEach(function(e,t){console.error(t+": "+e)})),e.parsedBody}).catch(function(e){var t="Failed to download file "+s;"file:"==location.protocol?c(t+". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.","error"):console.error(t)})}function W(){var t=performance.now(),p=(new Promise(function(a,e){var i=document.createElement("script");i.src=m.frameworkUrl,i.onload=function(){if("undefined"==typeof unityFramework||!unityFramework){var e,t=[["br","br"],["gz","gzip"]];for(e in t){var n,r=t[e];if(m.frameworkUrl.endsWith("."+r[0]))return n="Unable to parse "+m.frameworkUrl+"!","file:"==location.protocol?void c(n+" Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.","error"):(n+=' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: '+r[1]+'" present. Check browser Console and Devtools Network tab to debug.',"br"==r[0]&&"http:"==location.protocol&&(r=-1!=["localhost","127.0.0.1"].indexOf(location.hostname)?"":"Migrate your server to use HTTPS.",n=/Firefox/.test(navigator.userAgent)?"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+r+' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.':"Unable to parse "+m.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void c(n,"error"))}c("Unable to parse "+m.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,i.onload=null,a(o)},i.onerror=function(e){c("Unable to load file "+m.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(i),m.deinitializers.push(function(){document.body.removeChild(i)})}).then(function(e){m.webAssemblyTimeStart=performance.now(),e(m),m.codeDownloadTimeEnd=performance.now()-t}),performance.now()),e=I("dataUrl");m.preRun.push(function(){m.addRunDependency("dataUrl"),e.then(function(t){var e=new TextDecoder("utf-8"),n=0;function r(){var e=(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0;return n+=4,e}function o(e){if(x.gzip.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still gzip-compressed and should have been uncompressed by the browser. Web server has likely provided gzip-compressed data without specifying the HTTP Response Header "Content-Encoding: gzip" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';if(x.br.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still brotli-compressed and should have been uncompressed by the browser. Web server has likely provided brotli-compressed data without specifying the HTTP Response Header "Content-Encoding: br" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';throw e}var a="UnityWebData1.0\0",i=e.decode(t.subarray(0,a.length)),s=(i!=a&&o('Unknown data format (id="'+i+'")'),n+=a.length,r());for(n+s>t.length&&o("Invalid binary data file header! (pos="+n+", headerSize="+s+", file length="+t.length+")");n<s;){var d=r(),c=r(),l=(d+c>t.length&&o("Invalid binary data file size! (offset="+d+", size="+c+", file length="+t.length+")"),r()),u=(n+l>t.length&&o("Invalid binary data file path name! (pos="+n+", length="+l+", file length="+t.length+")"),e.decode(t.subarray(n,n+l)));n+=l;for(var h=0,f=u.indexOf("/",h)+1;0<f;h=f,f=u.indexOf("/",h)+1)m.FS_createPath(u.substring(0,h),u.substring(h,f-1),!0,!0);m.FS_createDataFile(u,null,t.subarray(d,d+c),!0,!0,!0)}m.removeRunDependency("dataUrl"),m.dataUrlLoadEndTime=performance.now()-p})})}return new Promise(function(e,t){var n;m.SystemInfo.hasWebGL?1==m.SystemInfo.hasWebGL?(n='Your browser does not support graphics API "WebGL 2" which is required for this content.',"Safari"==m.SystemInfo.browser&&parseInt(m.SystemInfo.browserVersion)<15&&(m.SystemInfo.mobile||1<navigator.maxTouchPoints?n+="\nUpgrade to iOS 15 or later.":n+="\nUpgrade to Safari 15 or later."),t(n)):m.SystemInfo.hasWasm?m.SystemInfo.hasWasm2023?(m.startupErrorHandler=t,d(0),m.postRun.push(function(){d(1),m.WebPlayer.WaitForInitialization().then(function(){delete m.startupErrorHandler,e(S),m.pageStartupTime=performance.now()})}),new Promise(function(t,e){navigator.gpu?navigator.gpu.requestAdapter().then(function(e){m.SystemInfo.hasWebGPU=!!e,t(m.SystemInfo.hasWebGPU)}):t(!1)}).then(function(){W()})):t("Your browser does not support WebAssembly 2023. Please update to Chrome \u2265 91 (May 2021), Firefox \u2265 89 (June 2021) or Safari \u2265 16.4 (March 2023). (failed "+m.SystemInfo.missingWasm2023Feature+")"):t("Your browser does not support WebAssembly."):t("Your browser does not support WebGL.")})}
Binary file