text: !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=107)}({107:function(t,e,n){n(36),t.exports=n(111)},111:function(t,e,n){"use strict";n.r(e);var r=n(30),o=n(31);const s=window.location.origin;window.transport=new class{constructor(t){this.type="http",this.hooks={onConnect:()=>{},onDisconnect:()=>{}},this.requests={},this.requestIdCounter=0,this.baseUrl=t}connect(){this.hooks.onConnect()}disconnect(){this.hooks.onDisconnect()}reconnect(){this.hooks.onConnect()}async request(t,e,n){const r=new URL(this.baseUrl);return new Promise((o,s)=>{const u=this.requestIdCounter;this.requests[u]={resolve:o,reject:s};const a={requestId:u,channel:t,action:e,payload:n};r.pathname=t,fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(t=>200===t.status?t.json():(console.error("Non-200 Status Code in HTTPTransport.send. Body:",t.body),s({error:{message:"Error in HTTP Request",status:t.status,body:t.body},data:null}),Promise.reject())).then(t=>o(t.payload)).catch(t=>{}),this.requestIdCounter++})}}(`${s}${location.search}`),window.channels={photon:new r.a,project:new o.a,telemetry:{send:async()=>({error:null,data:null})},window:{resize:async()=>{}},update:{install:async()=>{}}}},17:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},30:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{start(){return window.transport.request("photon","start",{data:null})}request(t){return console.log("Outgoing request:",{query:t}),window.transport.request("photon","request",{data:{query:t}})}stop(){return window.transport.request("photon","stop",{data:null})}}},31:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{open(t){return window.transport.request("project","open",{data:{id:t}})}create(t,e){return window.transport.request("project","create",{data:{}})}connectOnly(t){return window.transport.request("project","connect",{data:{}})}validate(t){return window.transport.request("project","validate",{data:{}})}getProject(){return window.transport.request("project","get",{data:null})}getAll(){return window.transport.request("project","get-all",{data:null})}}},36:function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"0.304.0"}}).call(this,n(17))}});
  //# sourceMappingURL=previewBus.js.map