@machinemetrics/mm-react-embeddable 1.0.2-0 → 1.0.2-1

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),K=require("prop-types"),We=require("styled-components");var be={exports:{}},B={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),J=require("prop-types"),Le=require("styled-components");var ge={exports:{}},Z={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Le;function wr(){if(Le)return B;Le=1;var n=d,o=Symbol.for("react.element"),T=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S={key:!0,ref:!0,__self:!0,__source:!0};function M(E,h,F){var b,j={},i=null,v=null;F!==void 0&&(i=""+F),h.key!==void 0&&(i=""+h.key),h.ref!==void 0&&(v=h.ref);for(b in h)c.call(h,b)&&!S.hasOwnProperty(b)&&(j[b]=h[b]);if(E&&E.defaultProps)for(b in h=E.defaultProps,h)j[b]===void 0&&(j[b]=h[b]);return{$$typeof:o,type:E,key:i,ref:v,props:j,_owner:w.current}}return B.Fragment=T,B.jsx=M,B.jsxs=M,B}var J={};/**
9
+ */var Ye;function wr(){if(Ye)return Z;Ye=1;var n=d,o=Symbol.for("react.element"),T=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S={key:!0,ref:!0,__self:!0,__source:!0};function M(y,R,F){var b,j={},i=null,v=null;F!==void 0&&(i=""+F),R.key!==void 0&&(i=""+R.key),R.ref!==void 0&&(v=R.ref);for(b in R)c.call(R,b)&&!S.hasOwnProperty(b)&&(j[b]=R[b]);if(y&&y.defaultProps)for(b in R=y.defaultProps,R)j[b]===void 0&&(j[b]=R[b]);return{$$typeof:o,type:y,key:i,ref:v,props:j,_owner:w.current}}return Z.Fragment=T,Z.jsx=M,Z.jsxs=M,Z}var B={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,22 +14,22 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ye;function Sr(){return Ye||(Ye=1,process.env.NODE_ENV!=="production"&&function(){var n=d,o=Symbol.for("react.element"),T=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),E=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),l=Symbol.iterator,m="@@iterator";function O(e){if(e===null||typeof e!="object")return null;var r=l&&e[l]||e[m];return typeof r=="function"?r:null}var R=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];D("error",e,t)}}function D(e,r,t){{var a=R.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(r+="%s",t=t.concat([f]));var p=t.map(function(u){return String(u)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var A=!1,N=!1,G=!1,ne=!1,ae=!1,Y;Y=Symbol.for("react.module.reference");function Ne(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===S||ae||e===w||e===F||e===b||ne||e===v||A||N||G||typeof e=="object"&&e!==null&&(e.$$typeof===i||e.$$typeof===j||e.$$typeof===M||e.$$typeof===E||e.$$typeof===h||e.$$typeof===Y||e.getModuleId!==void 0))}function Ge(e,r,t){var a=e.displayName;if(a)return a;var f=r.displayName||r.name||"";return f!==""?t+"("+f+")":t}function ge(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case T:return"Portal";case S:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return ge(r)+".Consumer";case M:var t=e;return ge(t._context)+".Provider";case h:return Ge(e,e.render,"ForwardRef");case j:var a=e.displayName||null;return a!==null?a:I(e.type)||"Memo";case i:{var f=e,p=f._payload,u=f._init;try{return I(u(p))}catch{return null}}}return null}var $=Object.assign,V=0,me,ye,Ee,he,Re,_e,we;function Se(){}Se.__reactDisabledLog=!0;function ze(){{if(V===0){me=console.log,ye=console.info,Ee=console.warn,he=console.error,Re=console.group,_e=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Xe(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:me}),info:$({},e,{value:ye}),warn:$({},e,{value:Ee}),error:$({},e,{value:he}),group:$({},e,{value:Re}),groupCollapsed:$({},e,{value:_e}),groupEnd:$({},e,{value:we})})}V<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=R.ReactCurrentDispatcher,ie;function z(e,r,t){{if(ie===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ie=a&&a[1]||""}return`
18
- `+ie+e}}var se=!1,X;{var He=typeof WeakMap=="function"?WeakMap:Map;X=new He}function Ce(e,r){if(!e||se)return"";{var t=X.get(e);if(t!==void 0)return t}var a;se=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=oe.current,oe.current=null,ze();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(x){a=x}Reflect.construct(e,[],u)}else{try{u.call()}catch(x){a=x}e.call(u.prototype)}}else{try{throw Error()}catch(x){a=x}e()}}catch(x){if(x&&a&&typeof x.stack=="string"){for(var s=x.stack.split(`
19
- `),P=a.stack.split(`
20
- `),y=s.length-1,_=P.length-1;y>=1&&_>=0&&s[y]!==P[_];)_--;for(;y>=1&&_>=0;y--,_--)if(s[y]!==P[_]){if(y!==1||_!==1)do if(y--,_--,_<0||s[y]!==P[_]){var k=`
21
- `+s[y].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,k),k}while(y>=1&&_>=0);break}}}finally{se=!1,oe.current=p,Xe(),Error.prepareStackTrace=f}var L=e?e.displayName||e.name:"",U=L?z(L):"";return typeof e=="function"&&X.set(e,U),U}function Qe(e,r,t){return Ce(e,!1)}function er(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function H(e,r,t){if(e==null)return"";if(typeof e=="function")return Ce(e,er(e));if(typeof e=="string")return z(e);switch(e){case F:return z("Suspense");case b:return z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return Qe(e.render);case j:return H(e.type,r,t);case i:{var a=e,f=a._payload,p=a._init;try{return H(p(f),r,t)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Te={},Oe=R.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=H(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}function rr(e,r,t,a,f){{var p=Function.call.bind(q);for(var u in e)if(p(e,u)){var s=void 0;try{if(typeof e[u]!="function"){var P=Error((a||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}s=e[u](r,u,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){s=y}s&&!(s instanceof Error)&&(Q(f),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,u,typeof s),Q(null)),s instanceof Error&&!(s.message in Te)&&(Te[s.message]=!0,Q(f),g("Failed %s type: %s",t,s.message),Q(null))}}}var tr=Array.isArray;function ue(e){return tr(e)}function nr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ar(e){try{return Pe(e),!1}catch{return!0}}function Pe(e){return""+e}function xe(e){if(ar(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nr(e)),Pe(e)}var Z=R.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},je,ke,ce;ce={};function ir(e){if(q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function sr(e){if(q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ur(e,r){if(typeof e.ref=="string"&&Z.current&&r&&Z.current.stateNode!==r){var t=I(Z.current.type);ce[t]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(Z.current.type),e.ref),ce[t]=!0)}}function cr(e,r){{var t=function(){je||(je=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function lr(e,r){{var t=function(){ke||(ke=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var fr=function(e,r,t,a,f,p,u){var s={$$typeof:o,type:e,key:r,ref:t,props:u,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function dr(e,r,t,a,f){{var p,u={},s=null,P=null;t!==void 0&&(xe(t),s=""+t),sr(r)&&(xe(r.key),s=""+r.key),ir(r)&&(P=r.ref,ur(r,f));for(p in r)q.call(r,p)&&!or.hasOwnProperty(p)&&(u[p]=r[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)u[p]===void 0&&(u[p]=y[p])}if(s||P){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&cr(u,_),P&&lr(u,_)}return fr(e,s,P,f,a,Z.current,u)}}var le=R.ReactCurrentOwner,Me=R.ReactDebugCurrentFrame;function W(e){if(e){var r=e._owner,t=H(e.type,e._source,r?r.type:null);Me.setExtraStackFrame(t)}else Me.setExtraStackFrame(null)}var fe;fe=!1;function de(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Fe(){{if(le.current){var e=I(le.current.type);if(e)return`
17
+ */var Ve;function Sr(){return Ve||(Ve=1,process.env.NODE_ENV!=="production"&&function(){var n=d,o=Symbol.for("react.element"),T=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),y=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),l=Symbol.iterator,E="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var r=l&&e[l]||e[E];return typeof r=="function"?r:null}var m=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];I("error",e,t)}}function I(e,r,t){{var a=m.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(r+="%s",t=t.concat([f]));var p=t.map(function(u){return String(u)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var D=!1,K=!1,N=!1,ae=!1,oe=!1,G;G=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===S||oe||e===w||e===F||e===b||ae||e===v||D||K||N||typeof e=="object"&&e!==null&&(e.$$typeof===i||e.$$typeof===j||e.$$typeof===M||e.$$typeof===y||e.$$typeof===R||e.$$typeof===G||e.getModuleId!==void 0))}function Ge(e,r,t){var a=e.displayName;if(a)return a;var f=r.displayName||r.name||"";return f!==""?t+"("+f+")":t}function me(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case T:return"Portal";case S:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return me(r)+".Consumer";case M:var t=e;return me(t._context)+".Provider";case R:return Ge(e,e.render,"ForwardRef");case j:var a=e.displayName||null;return a!==null?a:A(e.type)||"Memo";case i:{var f=e,p=f._payload,u=f._init;try{return A(u(p))}catch{return null}}}return null}var $=Object.assign,Y=0,ye,Ee,he,Re,_e,we,Se;function Ce(){}Ce.__reactDisabledLog=!0;function ze(){{if(Y===0){ye=console.log,Ee=console.info,he=console.warn,Re=console.error,_e=console.group,we=console.groupCollapsed,Se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Xe(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:ye}),info:$({},e,{value:Ee}),warn:$({},e,{value:he}),error:$({},e,{value:Re}),group:$({},e,{value:_e}),groupCollapsed:$({},e,{value:we}),groupEnd:$({},e,{value:Se})})}Y<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=m.ReactCurrentDispatcher,se;function X(e,r,t){{if(se===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);se=a&&a[1]||""}return`
18
+ `+se+e}}var ue=!1,H;{var He=typeof WeakMap=="function"?WeakMap:Map;H=new He}function Te(e,r){if(!e||ue)return"";{var t=H.get(e);if(t!==void 0)return t}var a;ue=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ie.current,ie.current=null,ze();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(x){a=x}Reflect.construct(e,[],u)}else{try{u.call()}catch(x){a=x}e.call(u.prototype)}}else{try{throw Error()}catch(x){a=x}e()}}catch(x){if(x&&a&&typeof x.stack=="string"){for(var s=x.stack.split(`
19
+ `),O=a.stack.split(`
20
+ `),h=s.length-1,_=O.length-1;h>=1&&_>=0&&s[h]!==O[_];)_--;for(;h>=1&&_>=0;h--,_--)if(s[h]!==O[_]){if(h!==1||_!==1)do if(h--,_--,_<0||s[h]!==O[_]){var k=`
21
+ `+s[h].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,k),k}while(h>=1&&_>=0);break}}}finally{ue=!1,ie.current=p,Xe(),Error.prepareStackTrace=f}var L=e?e.displayName||e.name:"",U=L?X(L):"";return typeof e=="function"&&H.set(e,U),U}function Qe(e,r,t){return Te(e,!1)}function er(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Q(e,r,t){if(e==null)return"";if(typeof e=="function")return Te(e,er(e));if(typeof e=="string")return X(e);switch(e){case F:return X("Suspense");case b:return X("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case R:return Qe(e.render);case j:return Q(e.type,r,t);case i:{var a=e,f=a._payload,p=a._init;try{return Q(p(f),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Oe={},Pe=m.ReactDebugCurrentFrame;function ee(e){if(e){var r=e._owner,t=Q(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}function rr(e,r,t,a,f){{var p=Function.call.bind(V);for(var u in e)if(p(e,u)){var s=void 0;try{if(typeof e[u]!="function"){var O=Error((a||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}s=e[u](r,u,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(h){s=h}s&&!(s instanceof Error)&&(ee(f),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,u,typeof s),ee(null)),s instanceof Error&&!(s.message in Oe)&&(Oe[s.message]=!0,ee(f),g("Failed %s type: %s",t,s.message),ee(null))}}}var tr=Array.isArray;function ce(e){return tr(e)}function nr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ar(e){try{return xe(e),!1}catch{return!0}}function xe(e){return""+e}function je(e){if(ar(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nr(e)),xe(e)}var q=m.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},ke,Me,le;le={};function ir(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function sr(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ur(e,r){if(typeof e.ref=="string"&&q.current&&r&&q.current.stateNode!==r){var t=A(q.current.type);le[t]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(q.current.type),e.ref),le[t]=!0)}}function cr(e,r){{var t=function(){ke||(ke=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function lr(e,r){{var t=function(){Me||(Me=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var fr=function(e,r,t,a,f,p,u){var s={$$typeof:o,type:e,key:r,ref:t,props:u,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function dr(e,r,t,a,f){{var p,u={},s=null,O=null;t!==void 0&&(je(t),s=""+t),sr(r)&&(je(r.key),s=""+r.key),ir(r)&&(O=r.ref,ur(r,f));for(p in r)V.call(r,p)&&!or.hasOwnProperty(p)&&(u[p]=r[p]);if(e&&e.defaultProps){var h=e.defaultProps;for(p in h)u[p]===void 0&&(u[p]=h[p])}if(s||O){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&cr(u,_),O&&lr(u,_)}return fr(e,s,O,f,a,q.current,u)}}var fe=m.ReactCurrentOwner,Fe=m.ReactDebugCurrentFrame;function W(e){if(e){var r=e._owner,t=Q(e.type,e._source,r?r.type:null);Fe.setExtraStackFrame(t)}else Fe.setExtraStackFrame(null)}var de;de=!1;function ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ie(){{if(fe.current){var e=A(fe.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function vr(e){return""}var Ie={};function pr(e){{var r=Fe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function vr(e){return""}var De={};function pr(e){{var r=Ie();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
24
 
25
- Check the top-level render call using <`+t+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=pr(r);if(Ie[t])return;Ie[t]=!0;var a="";e&&e._owner&&e._owner!==le.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),W(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),W(null)}}function Ae(e,r){{if(typeof e!="object")return;if(ue(e))for(var t=0;t<e.length;t++){var a=e[t];de(a)&&De(a,r)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var f=O(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),u;!(u=p.next()).done;)de(u.value)&&De(u.value,r)}}}function br(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===j))t=r.propTypes;else return;if(t){var a=I(r);rr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!fe){fe=!0;var f=I(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){W(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),W(null);break}}e.ref!==null&&(W(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var $e={};function Ue(e,r,t,a,f,p){{var u=Ne(e);if(!u){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=vr();P?s+=P:s+=Fe();var y;e===null?y="null":ue(e)?y="array":e!==void 0&&e.$$typeof===o?(y="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,s)}var _=dr(e,r,t,f,p);if(_==null)return _;if(u){var k=r.children;if(k!==void 0)if(a)if(ue(k)){for(var L=0;L<k.length;L++)Ae(k[L],e);Object.freeze&&Object.freeze(k)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(k,e)}if(q.call(r,"key")){var U=I(e),x=Object.keys(r).filter(function(_r){return _r!=="key"}),ve=x.length>0?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}";if(!$e[U+ve]){var Rr=x.length>0?"{"+x.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function Ae(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=pr(r);if(De[t])return;De[t]=!0;var a="";e&&e._owner&&e._owner!==fe.current&&(a=" It was passed a child from "+A(e._owner.type)+"."),W(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),W(null)}}function $e(e,r){{if(typeof e!="object")return;if(ce(e))for(var t=0;t<e.length;t++){var a=e[t];ve(a)&&Ae(a,r)}else if(ve(e))e._store&&(e._store.validated=!0);else if(e){var f=P(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),u;!(u=p.next()).done;)ve(u.value)&&Ae(u.value,r)}}}function br(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===R||r.$$typeof===j))t=r.propTypes;else return;if(t){var a=A(r);rr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!de){de=!0;var f=A(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){W(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),W(null);break}}e.ref!==null&&(W(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var Ue={};function We(e,r,t,a,f,p){{var u=z(e);if(!u){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=vr();O?s+=O:s+=Ie();var h;e===null?h="null":ce(e)?h="array":e!==void 0&&e.$$typeof===o?(h="<"+(A(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):h=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,s)}var _=dr(e,r,t,f,p);if(_==null)return _;if(u){var k=r.children;if(k!==void 0)if(a)if(ce(k)){for(var L=0;L<k.length;L++)$e(k[L],e);Object.freeze&&Object.freeze(k)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $e(k,e)}if(V.call(r,"key")){var U=A(e),x=Object.keys(r).filter(function(_r){return _r!=="key"}),pe=x.length>0?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}";if(!Ue[U+pe]){var Rr=x.length>0?"{"+x.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ve,U,Rr,U),$e[U+ve]=!0}}return e===c?gr(_):br(_),_}}function mr(e,r,t){return Ue(e,r,t,!0)}function yr(e,r,t){return Ue(e,r,t,!1)}var Er=yr,hr=mr;J.Fragment=c,J.jsx=Er,J.jsxs=hr}()),J}process.env.NODE_ENV==="production"?be.exports=wr():be.exports=Sr();var re=be.exports;const C=[];for(let n=0;n<256;++n)C.push((n+256).toString(16).slice(1));function Cr(n,o=0){return(C[n[o+0]]+C[n[o+1]]+C[n[o+2]]+C[n[o+3]]+"-"+C[n[o+4]]+C[n[o+5]]+"-"+C[n[o+6]]+C[n[o+7]]+"-"+C[n[o+8]]+C[n[o+9]]+"-"+C[n[o+10]]+C[n[o+11]]+C[n[o+12]]+C[n[o+13]]+C[n[o+14]]+C[n[o+15]]).toLowerCase()}let pe;const Tr=new Uint8Array(16);function Or(){if(!pe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pe=crypto.getRandomValues.bind(crypto)}return pe(Tr)}const Pr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ve={randomUUID:Pr};function xr(n,o,T){var w;if(Ve.randomUUID&&!o&&!n)return Ve.randomUUID();n=n||{};const c=n.random??((w=n.rng)==null?void 0:w.call(n))??Or();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,Cr(c)}const te=d.createContext(null),qe=({children:n})=>{const[o,T]=d.useState({}),c=d.useRef({}),w=d.useRef({}),S=d.useCallback((i,v,l)=>{T(m=>({...m,[i]:{origin:v,frameRef:l}}))},[]),M=d.useCallback(i=>{T(v=>{const l={...v};return delete l[i],l})},[]);d.useEffect(()=>{const i=(l=[],m)=>{l.forEach(O=>O(m))},v=l=>{var g,D,A,N,G;if(!((g=l==null?void 0:l.data)!=null&&g.instanceId))return;const{instanceId:m,type:O}=l.data,R=c.current;if(O==="response"){const{callbackId:ne,response:ae}=l.data,Y=w.current[ne];Y&&Y(ae);return}i((D=R[m])==null?void 0:D[O],l.data),i((A=R["*"])==null?void 0:A[O],l.data),i((N=R[m])==null?void 0:N["*"],l.data),i((G=R["*"])==null?void 0:G["*"],l.data)};return window.addEventListener("message",v),()=>{window.removeEventListener("message",v)}},[o]);const E=d.useCallback((i,v,l)=>{var O,R;const m=o[i];if(!m){console.warn(`Origin not set for id: ${i}. Unable to send message.`);return}(R=(O=m==null?void 0:m.frameRef)==null?void 0:O.current)!=null&&R.contentWindow&&m.frameRef.current.contentWindow.postMessage({type:v,...l,instanceId:i},m.origin)},[o]),h=d.useCallback(async(i,v,l={})=>new Promise(m=>{const O=xr(),R=g=>{delete w.current[O],m(g)};w.current[O]=R,E(i,"request",{callbackId:O,requestType:v,data:l})}),[o]),F=d.useCallback((i,v)=>{E(i,"load-options",v)},[E]),b=d.useCallback((i,v)=>{E(i,"validate",v)},[E]),j=d.useMemo(()=>({registerFrame:S,unregisterFrame:M,sendMessage:E,sendRequest:h,loadOptions:F,validate:b,addListener:(i,v,l)=>(c.current[i]||(c.current[i]={}),c.current[i][v]||(c.current[i][v]=[]),c.current[i][v].push(l),()=>{c.current[i][v]=c.current[i][v].filter(m=>m!==l)})}),[S,M,E,h,F,b]);return re.jsx(te.Provider,{value:j,children:n})},ee={},Ze=async n=>{try{const o=new URL(n).origin;if(ee[o]!==void 0)return ee[o];const c=await(await fetch(`${o}/mm-app-manifest.json`)).json();if(!c.version)throw new Error("Invalid manifest");return ee[o]=c,c}catch{}return ee[origin]=!1,!1},Be=async n=>!!await Ze(n),Je=(n,o,T)=>{const c=d.useContext(te);if(c===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const w=d.useRef(T);d.useEffect(()=>{w.current=T},[T]),d.useEffect(()=>{if(!(!n||!o))return c.addListener(n,o,(...S)=>w.current(...S))},[c,n,o])};qe.propTypes={children:K.node.isRequired};const jr=We.default||We,kr=jr.iframe`
30
+ <%s key={someKey} {...props} />`,pe,U,Rr,U),Ue[U+pe]=!0}}return e===c?gr(_):br(_),_}}function mr(e,r,t){return We(e,r,t,!0)}function yr(e,r,t){return We(e,r,t,!1)}var Er=yr,hr=mr;B.Fragment=c,B.jsx=Er,B.jsxs=hr}()),B}process.env.NODE_ENV==="production"?ge.exports=wr():ge.exports=Sr();var te=ge.exports;const C=[];for(let n=0;n<256;++n)C.push((n+256).toString(16).slice(1));function Cr(n,o=0){return(C[n[o+0]]+C[n[o+1]]+C[n[o+2]]+C[n[o+3]]+"-"+C[n[o+4]]+C[n[o+5]]+"-"+C[n[o+6]]+C[n[o+7]]+"-"+C[n[o+8]]+C[n[o+9]]+"-"+C[n[o+10]]+C[n[o+11]]+C[n[o+12]]+C[n[o+13]]+C[n[o+14]]+C[n[o+15]]).toLowerCase()}let be;const Tr=new Uint8Array(16);function Or(){if(!be){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");be=crypto.getRandomValues.bind(crypto)}return be(Tr)}const Pr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qe={randomUUID:Pr};function xr(n,o,T){var w;if(qe.randomUUID&&!o&&!n)return qe.randomUUID();n=n||{};const c=n.random??((w=n.rng)==null?void 0:w.call(n))??Or();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,Cr(c)}const ne=d.createContext(null),Ze=({children:n})=>{const[o,T]=d.useState({}),c=d.useRef({}),w=d.useRef({}),S=d.useCallback((i,v,l)=>{T(E=>({...E,[i]:{origin:v,frameRef:l}}))},[]),M=d.useCallback(i=>{T(v=>{const l={...v};return delete l[i],l})},[]);d.useEffect(()=>{const i=(l=[],E)=>{l.forEach(P=>P(E))},v=l=>{var g,I,D,K,N;if(!((g=l==null?void 0:l.data)!=null&&g.instanceId))return;const{instanceId:E,type:P}=l.data,m=c.current;if(P==="response"){const{callbackId:ae,response:oe,error:G}=l.data,z=w.current[ae];z&&z(oe,G);return}i((I=m[E])==null?void 0:I[P],l.data),i((D=m["*"])==null?void 0:D[P],l.data),i((K=m[E])==null?void 0:K["*"],l.data),i((N=m["*"])==null?void 0:N["*"],l.data)};return window.addEventListener("message",v),()=>{window.removeEventListener("message",v)}},[o]);const y=d.useCallback((i,v,l)=>{var P,m;const E=o[i];if(!E){console.warn(`Origin not set for id: ${i}. Unable to send message.`);return}(m=(P=E==null?void 0:E.frameRef)==null?void 0:P.current)!=null&&m.contentWindow&&E.frameRef.current.contentWindow.postMessage({type:v,...l,instanceId:i},E.origin)},[o]),R=d.useCallback(async(i,v,l={})=>new Promise((E,P)=>{const m=xr(),g=(I,D)=>{delete w.current[m],D?P(D):E(I)};w.current[m]=g,y(i,"request",{callbackId:m,requestType:v,data:l})}),[y]),F=d.useCallback((i,v)=>{y(i,"load-options",v)},[y]),b=d.useCallback((i,v)=>{y(i,"validate",v)},[y]),j=d.useMemo(()=>({registerFrame:S,unregisterFrame:M,sendMessage:y,sendRequest:R,loadOptions:F,validate:b,addListener:(i,v,l)=>(c.current[i]||(c.current[i]={}),c.current[i][v]||(c.current[i][v]=[]),c.current[i][v].push(l),()=>{c.current[i][v]=c.current[i][v].filter(E=>E!==l)})}),[S,M,y,R,F,b]);return te.jsx(ne.Provider,{value:j,children:n})},re={},Be=async n=>{try{const o=new URL(n).origin;if(re[o]!==void 0)return re[o];const c=await(await fetch(`${o}/mm-app-manifest.json`)).json();if(!c.version)throw new Error("Invalid manifest");return re[o]=c,c}catch{}return re[origin]=!1,!1},Je=async n=>!!await Be(n),Ke=(n,o,T)=>{const c=d.useContext(ne);if(c===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const w=d.useRef(T);d.useEffect(()=>{w.current=T},[T]),d.useEffect(()=>{if(!(!n||!o))return c.addListener(n,o,(...S)=>w.current(...S))},[c,n,o])};Ze.propTypes={children:J.node.isRequired};const jr=Le.default||Le,kr=jr.iframe`
31
31
  width: 100%;
32
32
  height: 100%;
33
33
  border: none;
34
34
  visibility: ${n=>n.$isReady?"visible":"hidden"};
35
- `,Ke=({id:n,src:o,path:T,onInit:c=()=>{},context:w,params:S,...M})=>{if("isConfiguring"in M)return console.error("isConfiguring must be passed via the params prop to MMEmbeddableZone"),null;if("colorMode"in w)return console.error("colorMode must be passed via the params prop to MMEmbeddableZone"),null;if("isFullScreen"in w)return console.error("isFullScreen must be passed via the params prop to MMEmbeddableZone"),null;const E=d.useRef(),[h,F]=d.useState(),[b,j]=d.useState(0),{registerFrame:i,unregisterFrame:v,sendMessage:l}=d.useContext(te),[m,O]=d.useState(!0),[R,g]=d.useState();return d.useEffect(()=>{b&&l(n,"set-context",{context:{...w,colorMode:S.colorMode,isFullScreen:S.isFullScreen}})},[w,S.colorMode,S.isFullScreen,n,b]),d.useEffect(()=>{b&&(l(n,"set-params",{params:S}),l(n,"set-configuring",{isConfiguring:S.isConfiguring}))},[S,n,b]),d.useEffect(()=>{T!==void 0&&g(T)},[T]),d.useEffect(()=>{R===void 0||!b||l(n,"navigate",{path:R})},[R,b,n,l]),d.useEffect(()=>{if(!(!o||!n||!E))return(async()=>{const D=await Be(o);if(O(D),D){const A=new URL(o);i(n,A.origin,E),c(),F(`${A.origin}/mm-embedded-interop?id=${n}&origin=${window.location.origin}`);return}})(),()=>{v(n)}},[o,n,i,E]),Je(n,"ready",()=>j(D=>D+1)),m?re.jsx(kr,{$isReady:b,ref:E,src:h,...M}):re.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:re.jsx("div",{style:{textAlign:"center"},children:"Application must adhere to the MM App Manifest specification to be embedded."})})};Ke.propTypes={id:K.string,src:K.string.isRequired,path:K.string,onInit:K.func};exports.MMEmbeddableZone=Ke;exports.MMEmbeddableZoneContext=te;exports.MMEmbeddableZoneProvider=qe;exports.getAppInfo=Ze;exports.testIsEmbeddable=Be;exports.useEmbeddedEffect=Je;
35
+ `,Ne=({id:n,src:o,path:T,onInit:c=()=>{},context:w,params:S,...M})=>{if("isConfiguring"in M)return console.error("isConfiguring must be passed via the params prop to MMEmbeddableZone"),null;if("colorMode"in w)return console.error("colorMode must be passed via the params prop to MMEmbeddableZone"),null;if("isFullScreen"in w)return console.error("isFullScreen must be passed via the params prop to MMEmbeddableZone"),null;const y=d.useRef(),[R,F]=d.useState(),[b,j]=d.useState(0),{registerFrame:i,unregisterFrame:v,sendMessage:l}=d.useContext(ne),[E,P]=d.useState(!0),[m,g]=d.useState();return d.useEffect(()=>{b&&l(n,"set-context",{context:{...w,colorMode:S.colorMode,isFullScreen:S.isFullScreen}})},[w,S.colorMode,S.isFullScreen,n,b]),d.useEffect(()=>{b&&(l(n,"set-params",{params:S}),l(n,"set-configuring",{isConfiguring:S.isConfiguring}))},[S,n,b]),d.useEffect(()=>{T!==void 0&&g(T)},[T]),d.useEffect(()=>{m===void 0||!b||l(n,"navigate",{path:m})},[m,b,n,l]),d.useEffect(()=>{if(!(!o||!n||!y))return(async()=>{const I=await Je(o);if(P(I),I){const D=new URL(o);i(n,D.origin,y),c(),F(`${D.origin}/mm-embedded-interop?id=${n}&origin=${window.location.origin}`);return}})(),()=>{v(n)}},[o,n,i,y]),Ke(n,"ready",()=>j(I=>I+1)),E?te.jsx(kr,{$isReady:b,ref:y,src:R,...M}):te.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:te.jsx("div",{style:{textAlign:"center"},children:"Application must adhere to the MM App Manifest specification to be embedded."})})};Ne.propTypes={id:J.string,src:J.string.isRequired,path:J.string,onInit:J.func};exports.MMEmbeddableZone=Ne;exports.MMEmbeddableZoneContext=ne;exports.MMEmbeddableZoneProvider=Ze;exports.getAppInfo=Be;exports.testIsEmbeddable=Je;exports.useEmbeddedEffect=Ke;