var k=Object.defineProperty;var o=(r,e)=>k(r,"name",{value:e,configurable:!0});import{w as M,q as D}from"./iframe.c2dfa352.js";import"./es.map.constructor.61480a1d.js";import{j as p,r as h}from"./jsx-runtime.33077135.js";import{r as d,R as P}from"./index.01106311.js";function w(r){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(r)}o(w,"_typeof");function T(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}o(T,"_classCallCheck");function O(r,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}o(C,"_isNativeReflectConstruct");function y(r){return y=Object.setPrototypeOf?Object.getPrototypeOf:o(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),y(r)}o(y,"_getPrototypeOf");function _(r,e,t,n,a,u,i){try{var c=r[u](i),s=c.value}catch(l){t(l);return}c.done?e(s):Promise.resolve(s).then(n,a)}o(_,"asyncGeneratorStep");function g(r){return function(){var e=this,t=arguments;return new Promise(function(n,a){var u=r.apply(e,t);function i(s){_(u,n,a,i,c,"next",s)}o(i,"_next");function c(s){_(u,n,a,i,c,"throw",s)}o(c,"_throw"),i(void 0)})}}o(g,"_asyncToGenerator");var f=M.FRAMEWORK_OPTIONS,v=new Map,X=o(function(e,t){var n=t.id,a=t.component;if(!a)throw new Error("Unable to render story ".concat(n," as the component annotation is missing from the default export"));return p(a,{...e})},"render"),I=o(function(e){var t=e.callback,n=e.children,a=h.exports.useRef();return h.exports.useLayoutEffect(function(){a.current!==t&&(a.current=t,t())},[t]),n},"WithCallback"),B=function(){var r=g(regeneratorRuntime.mark(o(function e(t,n){var a;return regeneratorRuntime.wrap(o(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,K(n);case 2:return a=i.sent,i.abrupt("return",new Promise(function(c){a?a.render(p(I,{callback:o(function(){return c(null)},"callback"),children:t})):P.render(t,n,function(){return c(null)})}));case 4:case"end":return i.stop()}},"_callee$"),e)},"_callee")));return o(function(t,n){return r.apply(this,arguments)},"renderElement")}(),U=d.exports.version&&(d.exports.version.startsWith("18")||d.exports.version.startsWith("0.0.0")),$=(f==null?void 0:f.legacyRootApi)!==!0,S=$&&U,G=o(function(e){var t=v.get(e);t&&S?(t.unmount(),v.delete(e)):P.unmountComponentAtNode(e)},"unmountElement"),K=function(){var r=g(regeneratorRuntime.mark(o(function e(t){var n,a;return regeneratorRuntime.wrap(o(function(i){for(;;)switch(i.prev=i.next){case 0:if(S){i.next=2;break}return i.abrupt("return",null);case 2:if(n=v.get(t),n){i.next=9;break}return i.next=6,D(()=>import("./client.8e9a6257.js").then(c=>c.c),["assets/client.8e9a6257.js","assets/index.01106311.js","assets/iframe.c2dfa352.js","assets/jsx-runtime.33077135.js"]);case 6:a=i.sent.default,n=a.createRoot(t),v.set(t,n);case 9:return i.abrupt("return",n);case 10:case"end":return i.stop()}},"_callee2$"),e)},"_callee2")));return o(function(t){return r.apply(this,arguments)},"getReactRoot")}(),L=function(r){j(t,r);var e=N(t);function t(){var n;T(this,t);for(var a=arguments.length,u=new Array(a),i=0;i