@grapesjs/studio-sdk-plugins 1.0.11 → 1.0.12
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.
- package/dist/dialogComponent/index.cjs.js +13 -13
- package/dist/dialogComponent/index.es.js +89 -88
- package/dist/dialogComponent/index.umd.js +11 -11
- package/dist/index.cjs.d.ts +1 -0
- package/dist/index.cjs.js +261 -39
- package/dist/index.d.ts +1 -0
- package/dist/index.es.d.ts +1 -0
- package/dist/index.es.js +17496 -7583
- package/dist/index.umd.js +261 -39
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/prosemirror/index.umd.js +1 -1
- package/dist/rteTinyMce/index.cjs.d.ts +3 -0
- package/dist/rteTinyMce/index.cjs.js +223 -0
- package/dist/rteTinyMce/index.d.ts +3 -0
- package/dist/rteTinyMce/index.es.d.ts +3 -0
- package/dist/rteTinyMce/index.es.js +10019 -0
- package/dist/rteTinyMce/index.umd.js +223 -0
- package/dist/rteTinyMce/types.d.ts +43 -0
- package/dist/rteTinyMce/typesSchema.d.ts +24 -0
- package/dist/rteTinyMce/utils.d.ts +16 -0
- package/dist/swiperComponent/index.cjs.js +5 -5
- package/dist/swiperComponent/index.es.js +265 -265
- package/dist/swiperComponent/index.umd.js +7 -7
- package/dist/tableComponent/index.cjs.js +1 -1
- package/dist/tableComponent/index.es.js +1 -1
- package/dist/tableComponent/index.umd.js +1 -1
- package/dist/utilsRte.d.ts +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
(function(ir,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("grapesjs"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["grapesjs","react","react-dom"],g):(ir=typeof globalThis<"u"?globalThis:ir||self,ir.StudioSdkPlugins_rteTinyMce=g(ir.grapesjs,ir.React,ir.ReactDOM))})(this,function(ir,g,Hn){"use strict";function Ba(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Ke=Ba(g),wc=Ba(Hn),Ia="app.grapesjs.com",Fa="app-stage.grapesjs.com",za=[Ia,Fa,"localhost","127.0.0.1",".local-credentialless.webcontainer.io",".local.webcontainer.io","-sandpack.codesandbox.io"],Oc="license:check:start",Ec="license:check:end",Ua=()=>typeof window<"u",xc=(e="",t)=>{const n=new DOMParser().parseFromString(e,"text/html");if(t){const i=n.querySelectorAll("svg")[0].style||{},a=Lc(t)?`${t}px`:t;i.width=a,i.height=a,i.fill="currentColor"}return new XMLSerializer().serializeToString(n)},Cc=({isDev:e,isStage:t})=>`${e?"":`https://${t?Fa:Ia}`}/api`,Wa=(e={})=>{const{width:t=300,height:r,text:n="IMAGE",bg:o="777",fg:i="white"}=e,a=r?`x${r}`:"";return`https://placehold.co/${t}${a}/${o}/${i}.png?text=${n}`},Sc=Wa(),jc=()=>{const e=Ua()&&window.location.hostname;return!!e&&(za.includes(e)||za.some(t=>e.endsWith(t)))},Jo=e=>e&&e.charAt(0).toUpperCase()+e.substring(1),Ac=e=>typeof e<"u",qa=e=>typeof e=="string",Lc=e=>typeof e=="number";function Dn(e){return typeof e=="function"}const Tc=e=>(e||"").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-._]+/g,"").replace(/--+/g,"-").trim();var jr=(e=>(e.free="free",e.startup="startup",e.business="business",e.enterprise="enterprise",e))(jr||{});async function Vc({path:e,baseApiUrl:t,method:r="GET",headers:n={},params:o,body:i}){const s=`${t||Cc({isDev:!1,isStage:!1})}${e}`,u={method:r,headers:{"Content-Type":"application/json",...n}};i&&(u.body=JSON.stringify(i));const c=o?new URLSearchParams(o).toString():"",l=c?`?${c}`:"",d=await fetch(`${s}${l}`,u);if(!d.ok)throw new Error(`HTTP error! status: ${d.status}`);return d.json()}const Ya={[jr.free]:0,[jr.startup]:10,[jr.business]:20,[jr.enterprise]:30};function Mc(e){const t=e;return t.init=r=>n=>e(n,r),t}const Pc=e=>Mc(e);async function Nc({editor:e,plan:t,pluginName:r,licenseKey:n,cleanup:o}){let i="",a=!1;const s=jc(),u=l=>{console.warn("Cleanup plugin:",r,"Reason:",l),o()},c=(l={})=>{var _;const{error:d,sdkLicense:p}=l,h=(_=l.plan)==null?void 0:_.category;if(!(p||l.license)||d)u(d||"Invalid license");else if(h){const y=Ya[t],O=Ya[h];y>O&&u({pluginRequiredPlan:t,licensePlan:h})}};e.on(Oc,l=>{i=l==null?void 0:l.baseApiUrl,a=!0}),e.on(Ec,l=>{c(l)}),setTimeout(async()=>{if(!a){if(s)return;if(n){const l=await kc({licenseKey:n,pluginName:r,baseApiUrl:i});l&&c(l)}else u("The `licenseKey` option not provided")}},2e3)}async function kc(e){const{licenseKey:t,pluginName:r,baseApiUrl:n}=e;try{return(await Vc({baseApiUrl:n,path:`/sdk/${t||"na"}`,method:"POST",params:{d:window.location.hostname,pn:r}})).result||{}}catch(o){return console.error("Error during SDK license check:",o),!1}}const Hc=e=>e.dispatchEvent(new CustomEvent("input"));function Dc(e,t){if(!t)return()=>{};const r=e.Components.events,n=l=>e.getSelectedAll().includes(l),o=l=>l.isInstanceOf("text")&&!l.isChildOf("text"),i=l=>l.isChildOf("text"),a=l=>e.getEditing()===l,s=(l,d={})=>{l.trigger("focus",d.event)},u=(l,d)=>{n(l)&&o(l)&&!a(l)&&s(l,d)},c=(l,d)=>{if(n(l)&&!o(l)&&i(l)){const p=l.parents().find(h=>h.isInstanceOf("text"));p&&(s(p,d),setTimeout(()=>e.select(p),0))}};return e.on(r.select,u),e.on(r.selectBefore,c),()=>{e.off(r.select,u),e.off(r.selectBefore,c)}}var ar=(e=>(e.toastAdd="studio:toastAdd",e.dialogOpen="studio:dialogOpen",e.dialogClose="studio:dialogClose",e.sidebarLeftSet="studio:sidebarLeft:set",e.sidebarLeftGet="studio:sidebarLeft:get",e.sidebarLeftToggle="studio:sidebarLeft:toggle",e.sidebarRightSet="studio:sidebarRight:set",e.sidebarRightGet="studio:sidebarRight:get",e.sidebarRightToggle="studio:sidebarRight:toggle",e.sidebarTopSet="studio:sidebarTop:set",e.sidebarTopGet="studio:sidebarTop:get",e.sidebarTopToggle="studio:sidebarTop:toggle",e.sidebarBottomSet="studio:sidebarBottom:set",e.sidebarBottomGet="studio:sidebarBottom:get",e.sidebarBottomToggle="studio:sidebarBottom:toggle",e.symbolAdd="studio:symbolAdd",e.symbolDetach="studio:symbolDetach",e.symbolOverride="studio:symbolOverride",e.symbolPropagateStyles="studio:propagateStyles",e.getPagesConfig="studio:getPagesConfig",e.setPagesConfig="studio:setPagesConfig",e.getPageSettings="studio:getPageSettings",e.setPageSettings="studio:setPageSettings",e.projectFiles="studio:projectFiles",e.canvasReload="studio:canvasReload",e.getBlocksPanel="studio:getBlocksPanel",e.setBlocksPanel="studio:setBlocksPanel",e.getStateContextMenu="studio:getStateContextMenu",e.setStateContextMenu="studio:setStateContextMenu",e.contextMenuComponent="studio:contextMenuComponent",e.layoutAdd="studio:layoutAdd",e.layoutRemove="studio:layoutRemove",e.layoutToggle="studio:layoutToggle",e.getStateTheme="studio:getStateTheme",e.setStateTheme="studio:setStateTheme",e))(ar||{}),Ga=(e=>(e.layoutToggleId="studio:layoutToggle:",e.toggleBlocksPanel="studio:toggleBlocksPanel",e.pageSettingsUpdate="studio:pageSettingsUpdate",e))(Ga||{});function Qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ei={exports:{}},Jr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Za;function Rc(){if(Za)return Jr;Za=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,u,c){var l,d={},p=null,h=null;c!==void 0&&(p=""+c),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(h=u.ref);for(l in u)n.call(u,l)&&!i.hasOwnProperty(l)&&(d[l]=u[l]);if(s&&s.defaultProps)for(l in u=s.defaultProps,u)d[l]===void 0&&(d[l]=u[l]);return{$$typeof:t,type:s,key:p,ref:h,props:d,_owner:o.current}}return Jr.Fragment=r,Jr.jsx=a,Jr.jsxs=a,Jr}var Qr={},Ka;function $c(){if(Ka)return Qr;Ka=1;var e={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/return e.NODE_ENV!=="production"&&function(){var t=g,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=Symbol.iterator,y="@@iterator";function O(f){if(f===null||typeof f!="object")return null;var x=_&&f[_]||f[y];return typeof x=="function"?x:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(f){{for(var x=arguments.length,V=new Array(x>1?x-1:0),I=1;I<x;I++)V[I-1]=arguments[I];C("error",f,V)}}function C(f,x,V){{var I=w.ReactDebugCurrentFrame,W=I.getStackAddendum();W!==""&&(x+="%s",V=V.concat([W]));var G=V.map(function(ie){return String(ie)});G.unshift("Warning: "+x),Function.prototype.apply.call(console[f],console,G)}}var m=!1,T=!1,N=!1,Z=!1,R=!1,H;H=Symbol.for("react.module.reference");function X(f){return!!(typeof f=="string"||typeof f=="function"||f===o||f===a||R||f===i||f===l||f===d||Z||f===b||m||T||N||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===s||f.$$typeof===u||f.$$typeof===c||f.$$typeof===H||f.getModuleId!==void 0))}function ee(f,x,V){var I=f.displayName;if(I)return I;var W=x.displayName||x.name||"";return W!==""?V+"("+W+")":V}function Q(f){return f.displayName||"Context"}function ae(f){if(f==null)return null;if(typeof f.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case u:var x=f;return Q(x)+".Consumer";case s:var V=f;return Q(V._context)+".Provider";case c:return ee(f,f.render,"ForwardRef");case p:var I=f.displayName||null;return I!==null?I:ae(f.type)||"Memo";case h:{var W=f,G=W._payload,ie=W._init;try{return ae(ie(G))}catch{return null}}}return null}var k=Object.assign,q=0,ne,oe,fe,de,E,A,F;function $(){}$.__reactDisabledLog=!0;function B(){{if(q===0){ne=console.log,oe=console.info,fe=console.warn,de=console.error,E=console.group,A=console.groupCollapsed,F=console.groupEnd;var f={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}q++}}function te(){{if(q--,q===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},f,{value:ne}),info:k({},f,{value:oe}),warn:k({},f,{value:fe}),error:k({},f,{value:de}),group:k({},f,{value:E}),groupCollapsed:k({},f,{value:A}),groupEnd:k({},f,{value:F})})}q<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=w.ReactCurrentDispatcher,Y;function J(f,x,V){{if(Y===void 0)try{throw Error()}catch(W){var I=W.stack.trim().match(/\n( *(at )?)/);Y=I&&I[1]||""}return`
|
|
18
|
+
`+Y+f}}var se=!1,re;{var _e=typeof WeakMap=="function"?WeakMap:Map;re=new _e}function D(f,x){if(!f||se)return"";{var V=re.get(f);if(V!==void 0)return V}var I;se=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var G;G=U.current,U.current=null,B();try{if(x){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Ie){I=Ie}Reflect.construct(f,[],ie)}else{try{ie.call()}catch(Ie){I=Ie}f.call(ie.prototype)}}else{try{throw Error()}catch(Ie){I=Ie}f()}}catch(Ie){if(Ie&&I&&typeof Ie.stack=="string"){for(var K=Ie.stack.split(`
|
|
19
|
+
`),ce=I.stack.split(`
|
|
20
|
+
`),pe=K.length-1,Oe=ce.length-1;pe>=1&&Oe>=0&&K[pe]!==ce[Oe];)Oe--;for(;pe>=1&&Oe>=0;pe--,Oe--)if(K[pe]!==ce[Oe]){if(pe!==1||Oe!==1)do if(pe--,Oe--,Oe<0||K[pe]!==ce[Oe]){var He=`
|
|
21
|
+
`+K[pe].replace(" at new "," at ");return f.displayName&&He.includes("<anonymous>")&&(He=He.replace("<anonymous>",f.displayName)),typeof f=="function"&&re.set(f,He),He}while(pe>=1&&Oe>=0);break}}}finally{se=!1,U.current=G,te(),Error.prepareStackTrace=W}var ke=f?f.displayName||f.name:"",Sr=ke?J(ke):"";return typeof f=="function"&&re.set(f,Sr),Sr}function xe(f,x,V){return D(f,!1)}function Ne(f){var x=f.prototype;return!!(x&&x.isReactComponent)}function Pe(f,x,V){if(f==null)return"";if(typeof f=="function")return D(f,Ne(f));if(typeof f=="string")return J(f);switch(f){case l:return J("Suspense");case d:return J("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case c:return xe(f.render);case p:return Pe(f.type,x,V);case h:{var I=f,W=I._payload,G=I._init;try{return Pe(G(W),x,V)}catch{}}}return""}var Be=Object.prototype.hasOwnProperty,Lt={},lt=w.ReactDebugCurrentFrame;function we(f){if(f){var x=f._owner,V=Pe(f.type,f._source,x?x.type:null);lt.setExtraStackFrame(V)}else lt.setExtraStackFrame(null)}function je(f,x,V,I,W){{var G=Function.call.bind(Be);for(var ie in f)if(G(f,ie)){var K=void 0;try{if(typeof f[ie]!="function"){var ce=Error((I||"React class")+": "+V+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ce.name="Invariant Violation",ce}K=f[ie](x,ie,I,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){K=pe}K&&!(K instanceof Error)&&(we(W),j("%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).",I||"React class",V,ie,typeof K),we(null)),K instanceof Error&&!(K.message in Lt)&&(Lt[K.message]=!0,we(W),j("Failed %s type: %s",V,K.message),we(null))}}}var rr=Array.isArray;function nr(f){return rr(f)}function Er(f){{var x=typeof Symbol=="function"&&Symbol.toStringTag,V=x&&f[Symbol.toStringTag]||f.constructor.name||"Object";return V}}function xr(f){try{return or(f),!1}catch{return!0}}function or(f){return""+f}function mt(f){if(xr(f))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(f)),or(f)}var Tt=w.ReactCurrentOwner,zo={key:!0,ref:!0,__self:!0,__source:!0},Mn,Zr,Pn;Pn={};function Ta(f){if(Be.call(f,"ref")){var x=Object.getOwnPropertyDescriptor(f,"ref").get;if(x&&x.isReactWarning)return!1}return f.ref!==void 0}function Va(f){if(Be.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function Ma(f,x){if(typeof f.ref=="string"&&Tt.current&&x&&Tt.current.stateNode!==x){var V=ae(Tt.current.type);Pn[V]||(j('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',ae(Tt.current.type),f.ref),Pn[V]=!0)}}function Pa(f,x){{var V=function(){Mn||(Mn=!0,j("%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)",x))};V.isReactWarning=!0,Object.defineProperty(f,"key",{get:V,configurable:!0})}}function Na(f,x){{var V=function(){Zr||(Zr=!0,j("%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)",x))};V.isReactWarning=!0,Object.defineProperty(f,"ref",{get:V,configurable:!0})}}var ka=function(f,x,V,I,W,G,ie){var K={$$typeof:r,type:f,key:x,ref:V,props:ie,_owner:G};return K._store={},Object.defineProperty(K._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(K,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(K,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K};function Nn(f,x,V,I,W){{var G,ie={},K=null,ce=null;V!==void 0&&(mt(V),K=""+V),Va(x)&&(mt(x.key),K=""+x.key),Ta(x)&&(ce=x.ref,Ma(x,W));for(G in x)Be.call(x,G)&&!zo.hasOwnProperty(G)&&(ie[G]=x[G]);if(f&&f.defaultProps){var pe=f.defaultProps;for(G in pe)ie[G]===void 0&&(ie[G]=pe[G])}if(K||ce){var Oe=typeof f=="function"?f.displayName||f.name||"Unknown":f;K&&Pa(ie,Oe),ce&&Na(ie,Oe)}return ka(f,K,ce,W,I,Tt.current,ie)}}var Kr=w.ReactCurrentOwner,Ut=w.ReactDebugCurrentFrame;function Vt(f){if(f){var x=f._owner,V=Pe(f.type,f._source,x?x.type:null);Ut.setExtraStackFrame(V)}else Ut.setExtraStackFrame(null)}var Cr;Cr=!1;function Xr(f){return typeof f=="object"&&f!==null&&f.$$typeof===r}function Uo(){{if(Kr.current){var f=ae(Kr.current.type);if(f)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+f+"`."}return""}}function Wo(f){return""}var qo={};function Yo(f){{var x=Uo();if(!x){var V=typeof f=="string"?f:f.displayName||f.name;V&&(x=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+V+">.")}return x}}function kn(f,x){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var V=Yo(x);if(qo[V])return;qo[V]=!0;var I="";f&&f._owner&&f._owner!==Kr.current&&(I=" It was passed a child from "+ae(f._owner.type)+"."),Vt(f),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,I),Vt(null)}}function Go(f,x){{if(typeof f!="object")return;if(nr(f))for(var V=0;V<f.length;V++){var I=f[V];Xr(I)&&kn(I,x)}else if(Xr(f))f._store&&(f._store.validated=!0);else if(f){var W=O(f);if(typeof W=="function"&&W!==f.entries)for(var G=W.call(f),ie;!(ie=G.next()).done;)Xr(ie.value)&&kn(ie.value,x)}}}function Ha(f){{var x=f.type;if(x==null||typeof x=="string")return;var V;if(typeof x=="function")V=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===c||x.$$typeof===p))V=x.propTypes;else return;if(V){var I=ae(x);je(V,f.props,"prop",I,f)}else if(x.PropTypes!==void 0&&!Cr){Cr=!0;var W=ae(x);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",W||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zo(f){{for(var x=Object.keys(f.props),V=0;V<x.length;V++){var I=x[V];if(I!=="children"&&I!=="key"){Vt(f),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Vt(null);break}}f.ref!==null&&(Vt(f),j("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}var Ko={};function Xo(f,x,V,I,W,G){{var ie=X(f);if(!ie){var K="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(K+=" 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 ce=Wo();ce?K+=ce:K+=Uo();var pe;f===null?pe="null":nr(f)?pe="array":f!==void 0&&f.$$typeof===r?(pe="<"+(ae(f.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof f,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pe,K)}var Oe=Nn(f,x,V,W,G);if(Oe==null)return Oe;if(ie){var He=x.children;if(He!==void 0)if(I)if(nr(He)){for(var ke=0;ke<He.length;ke++)Go(He[ke],f);Object.freeze&&Object.freeze(He)}else j("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 Go(He,f)}if(Be.call(x,"key")){var Sr=ae(f),Ie=Object.keys(x).filter(function(ub){return ub!=="key"}),$a=Ie.length>0?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}";if(!Ko[Sr+$a]){var sb=Ie.length>0?"{"+Ie.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,$a,Sr,sb,Sr),Ko[Sr+$a]=!0}}return f===o?Zo(Oe):Ha(Oe),Oe}}function Da(f,x,V){return Xo(f,x,V,!0)}function Ra(f,x,V){return Xo(f,x,V,!1)}var v=Ra,P=Da;Qr.Fragment=o,Qr.jsx=v,Qr.jsxs=P}(),Qr}var Bc={};Bc.NODE_ENV==="production"?ei.exports=Rc():ei.exports=$c();var L=ei.exports,Ic="M12 2C11.5 2 11 2.19 10.59 2.59L2.59 10.59C1.8 11.37 1.8 12.63 2.59 13.41L10.59 21.41C11.37 22.2 12.63 22.2 13.41 21.41L21.41 13.41C22.2 12.63 22.2 11.37 21.41 10.59L13.41 2.59C13 2.19 12.5 2 12 2M11 7H13V13H11V7M11 15H13V17H11V15Z",Fc="M11 2H13V7H21V10H13V14H18V17H13V22H11V17H6V14H11V10H3V7H11V2Z",zc="M4 22H2V2H4V22M22 7H6V10H22V7M16 14H6V17H16V14Z",Uc="M20 2H22V22H20V2M2 10H18V7H2V10M8 17H18V14H8V17Z",Wc="M9.5,8.5L11,10L8,13L11,16L9.5,17.5L5,13L9.5,8.5M14.5,17.5L13,16L16,13L13,10L14.5,8.5L19,13L14.5,17.5M21,2H3A2,2 0 0,0 1,4V20A2,2 0 0,0 3,22H21A2,2 0 0,0 23,20V4A2,2 0 0,0 21,2M21,20H3V6H21V20Z",qc="M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",Yc="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",Gc="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z",Zc="M10.5 18H18V20H10.5C6.91 20 4 17.09 4 13.5S6.91 7 10.5 7H16.17L13.08 3.91L14.5 2.5L20 8L14.5 13.5L13.09 12.09L16.17 9H10.5C8 9 6 11 6 13.5S8 18 10.5 18Z",Kc="M3,21V3H21V21H3M5,5V19H19V5H5Z",Xc="M3 16C3 18.8 5.2 21 8 21H10V19H8C6.3 19 5 17.7 5 16V14H3V16M21 8C21 5.2 18.8 3 16 3H14V5H16C17.7 5 19 6.3 19 8V10H21V8M16 21C18.8 21 21 18.8 21 16V14H19V16C19 17.7 17.7 19 16 19H14V21H16M8 3C5.2 3 3 5.2 3 8V10H5V8C5 6.3 6.3 5 8 5H10V3H8Z",Jc="M15,21H17V19H15M19,21H21V19H19M7,21H9V19H7M11,21H13V19H11M19,17H21V15H19M19,13H21V11H19M3,3V21H5V5H21V3M19,9H21V7H19",Qc="M22,17H18V10H22M23,8H17A1,1 0 0,0 16,9V19A1,1 0 0,0 17,20H23A1,1 0 0,0 24,19V9A1,1 0 0,0 23,8M4,6H22V4H4A2,2 0 0,0 2,6V17H0V20H14V17H4V6Z",ef="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",tf="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z",rf="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",nf="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",of="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",af="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",sf="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",uf="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",lf="M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z",cf="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",ff="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",df="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",pf="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",vf="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",gf="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",hf="M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z",mf="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",bf="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",yf="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",_f="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",wf="M6.92,19L5,17.08L13.06,9L15,10.94M20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L13.84,6.41L11.91,4.5L10.5,5.91L11.92,7.33L3,16.25V21H7.75L16.67,12.08L18.09,13.5L19.5,12.09L17.58,10.17L20.7,7.05C21.1,6.65 21.1,6 20.71,5.63Z",Of="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",Ef="M7,11H1V13H7V11M9.17,7.76L7.05,5.64L5.64,7.05L7.76,9.17L9.17,7.76M13,1H11V7H13V1M18.36,7.05L16.95,5.64L14.83,7.76L16.24,9.17L18.36,7.05M17,11V13H23V11H17M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M14.83,16.24L16.95,18.36L18.36,16.95L16.24,14.83L14.83,16.24M5.64,16.95L7.05,18.36L9.17,16.24L7.76,14.83L5.64,16.95M11,23H13V17H11V23Z",xf="M5,3A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5.5L18.5,3H17V9A1,1 0 0,1 16,10H8A1,1 0 0,1 7,9V3H5M12,4V9H15V4H12M7,12H17A1,1 0 0,1 18,13V19H6V13A1,1 0 0,1 7,12Z",Cf="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",Sf="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",jf="M11,9H13V11H11V9M9,11H11V13H9V11M13,11H15V13H13V11M15,9H17V11H15V9M7,9H9V11H7V9M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M9,18H7V16H9V18M13,18H11V16H13V18M17,18H15V16H17V18M19,11H17V13H19V15H17V13H15V15H13V13H11V15H9V13H7V15H5V13H7V11H5V5H19V11Z",Af="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",Lf="M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",Tf="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Vf="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z",Mf="M12,16L19.36,10.27L21,9L12,2L3,9L4.63,10.27M12,18.54L4.62,12.81L3,14.07L12,21.07L21,14.07L19.37,12.8L12,18.54Z",Pf="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",Nf="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",kf="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",Hf="M18 1C15.24 1 13 3.24 13 6V8H4C2.9 8 2 8.89 2 10V20C2 21.11 2.9 22 4 22H16C17.11 22 18 21.11 18 20V10C18 8.9 17.11 8 16 8H15V6C15 4.34 16.34 3 18 3C19.66 3 21 4.34 21 6V8H23V6C23 3.24 20.76 1 18 1M10 13C11.1 13 12 13.89 12 15C12 16.11 11.11 17 10 17C8.9 17 8 16.11 8 15C8 13.9 8.9 13 10 13Z",Df="M7,10L12,15L17,10H7Z",Rf="M20 5L20 19L4 19L4 5H20M20 3H4C2.89 3 2 3.89 2 5V19C2 20.11 2.89 21 4 21H20C21.11 21 22 20.11 22 19V5C22 3.89 21.11 3 20 3M18 15H6V17H18V15M10 7H6V13H10V7M12 9H18V7H12V9M18 11H12V13H18V11Z",$f="M2.53,19.65L3.87,20.21V11.18L1.44,17.04C1.03,18.06 1.5,19.23 2.53,19.65M22.03,15.95L17.07,4C16.76,3.23 16.03,2.77 15.26,2.75C15,2.75 14.73,2.79 14.47,2.9L7.1,5.95C6.35,6.26 5.89,7 5.87,7.75C5.86,8 5.91,8.29 6,8.55L11,20.5C11.29,21.28 12.03,21.74 12.81,21.75C13.07,21.75 13.33,21.7 13.58,21.6L20.94,18.55C21.96,18.13 22.45,16.96 22.03,15.95M7.88,8.75A1,1 0 0,1 6.88,7.75A1,1 0 0,1 7.88,6.75C8.43,6.75 8.88,7.2 8.88,7.75C8.88,8.3 8.43,8.75 7.88,8.75M5.88,19.75A2,2 0 0,0 7.88,21.75H9.33L5.88,13.41V19.75Z",Bf="M12,2.5L8,7H16L12,2.5M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M8,17L12,21.5L16,17H8Z",If="M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",Ff="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",zf="M17,13H13V17H11V13H7V11H11V7H13V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",Uf="M16,7V3H14V7H10V3H8V7H8C7,7 6,8 6,9V14.5L9.5,18V21H14.5V18L18,14.5V9C18,8 17,7 16,7Z",Wf="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",qf="M12 2C11.5 2 11 2.19 10.59 2.59L2.59 10.59C1.8 11.37 1.8 12.63 2.59 13.41L10.59 21.41C11.37 22.2 12.63 22.2 13.41 21.41L21.41 13.41C22.2 12.63 22.2 11.37 21.41 10.59L13.41 2.59C13 2.19 12.5 2 12 2M12 4L20 12L12 20L4 12Z",Yf="M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z",Gf="M11,2V4.07C7.38,4.53 4.53,7.38 4.07,11H2V13H4.07C4.53,16.62 7.38,19.47 11,19.93V22H13V19.93C16.62,19.47 19.47,16.62 19.93,13H22V11H19.93C19.47,7.38 16.62,4.53 13,4.07V2M11,6.08V8H13V6.09C15.5,6.5 17.5,8.5 17.92,11H16V13H17.91C17.5,15.5 15.5,17.5 13,17.92V16H11V17.91C8.5,17.5 6.5,15.5 6.08,13H8V11H6.09C6.5,8.5 8.5,6.5 11,6.08M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11Z",Zf="M22.08,11.04H20.08V4H13.05V2H11.04V4H4V11.04H2V13.05H4V20.08H11.04V22.08H13.05V20.08H20.08V13.05H22.08V11.04M18.07,18.07H13.05V16.06H11.04V18.07H6V13.05H8.03V11.04H6V6H11.04V8.03H13.05V6H18.07V11.04H16.06V13.05H18.07V18.07M13.05,12.05A1,1 0 0,1 12.05,13.05C11.5,13.05 11.04,12.6 11.04,12.05C11.04,11.5 11.5,11.04 12.05,11.04C12.6,11.04 13.05,11.5 13.05,12.05Z",Kf="M16,15H9V13H16M19,11H9V9H19M19,7H9V5H19M21,1H7C5.89,1 5,1.89 5,3V17C5,18.11 5.9,19 7,19H21C22.11,19 23,18.11 23,17V3C23,1.89 22.1,1 21,1M3,5V21H19V23H3A2,2 0 0,1 1,21V5H3Z",Xf="M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 15L17.55 9.54L16.13 8.13L13 11.25V2H11V11.25L7.88 8.13L6.46 9.55L12 15Z",Jf="M16.59,5.41L15.17,4L12,7.17L8.83,4L7.41,5.41L12,10M7.41,18.59L8.83,20L12,16.83L15.17,20L16.58,18.59L12,14L7.41,18.59Z",Qf="M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",ed="M21 18H2V20H21V18M19 10V14H4V10H19M20 8H3C2.45 8 2 8.45 2 9V15C2 15.55 2.45 16 3 16H20C20.55 16 21 15.55 21 15V9C21 8.45 20.55 8 20 8M21 4H2V6H21V4Z",td="M13 3V11H21V3H13M3 21H11V13H3V21M3 3V11H11V3H3M13 16H16V13H18V16H21V18H18V21H16V18H13V16Z",rd="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",nd="M12.89,3L14.85,3.4L11.11,21L9.15,20.6L12.89,3M19.59,12L16,8.41V5.58L22.42,12L16,18.41V15.58L19.59,12M1.58,12L8,5.58V8.41L4.41,12L8,15.58V18.41L1.58,12Z",Rn={exports:{}},$n={exports:{}},he={};/** @license React v16.13.1
|
|
31
|
+
* react-is.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/var Xa;function od(){if(Xa)return he;Xa=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function j(m){if(typeof m=="object"&&m!==null){var T=m.$$typeof;switch(T){case t:switch(m=m.type,m){case u:case c:case n:case i:case o:case d:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case b:case h:case a:return m;default:return T}}case r:return T}}}function C(m){return j(m)===c}return he.AsyncMode=u,he.ConcurrentMode=c,he.ContextConsumer=s,he.ContextProvider=a,he.Element=t,he.ForwardRef=l,he.Fragment=n,he.Lazy=b,he.Memo=h,he.Portal=r,he.Profiler=i,he.StrictMode=o,he.Suspense=d,he.isAsyncMode=function(m){return C(m)||j(m)===u},he.isConcurrentMode=C,he.isContextConsumer=function(m){return j(m)===s},he.isContextProvider=function(m){return j(m)===a},he.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},he.isForwardRef=function(m){return j(m)===l},he.isFragment=function(m){return j(m)===n},he.isLazy=function(m){return j(m)===b},he.isMemo=function(m){return j(m)===h},he.isPortal=function(m){return j(m)===r},he.isProfiler=function(m){return j(m)===i},he.isStrictMode=function(m){return j(m)===o},he.isSuspense=function(m){return j(m)===d},he.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===i||m===o||m===d||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===b||m.$$typeof===h||m.$$typeof===a||m.$$typeof===s||m.$$typeof===l||m.$$typeof===y||m.$$typeof===O||m.$$typeof===w||m.$$typeof===_)},he.typeOf=j,he}var me={},Ja;function id(){if(Ja)return me;Ja=1;var e={};/** @license React v16.13.1
|
|
38
|
+
* react-is.development.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/return e.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,_=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,O=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function C(D){return typeof D=="string"||typeof D=="function"||D===o||D===l||D===a||D===i||D===p||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===_||D.$$typeof===b||D.$$typeof===s||D.$$typeof===u||D.$$typeof===d||D.$$typeof===O||D.$$typeof===w||D.$$typeof===j||D.$$typeof===y)}function m(D){if(typeof D=="object"&&D!==null){var xe=D.$$typeof;switch(xe){case r:var Ne=D.type;switch(Ne){case c:case l:case o:case a:case i:case p:return Ne;default:var Pe=Ne&&Ne.$$typeof;switch(Pe){case u:case d:case _:case b:case s:return Pe;default:return xe}}case n:return xe}}}var T=c,N=l,Z=u,R=s,H=r,X=d,ee=o,Q=_,ae=b,k=n,q=a,ne=i,oe=p,fe=!1;function de(D){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(D)||m(D)===c}function E(D){return m(D)===l}function A(D){return m(D)===u}function F(D){return m(D)===s}function $(D){return typeof D=="object"&&D!==null&&D.$$typeof===r}function B(D){return m(D)===d}function te(D){return m(D)===o}function U(D){return m(D)===_}function Y(D){return m(D)===b}function J(D){return m(D)===n}function se(D){return m(D)===a}function re(D){return m(D)===i}function _e(D){return m(D)===p}me.AsyncMode=T,me.ConcurrentMode=N,me.ContextConsumer=Z,me.ContextProvider=R,me.Element=H,me.ForwardRef=X,me.Fragment=ee,me.Lazy=Q,me.Memo=ae,me.Portal=k,me.Profiler=q,me.StrictMode=ne,me.Suspense=oe,me.isAsyncMode=de,me.isConcurrentMode=E,me.isContextConsumer=A,me.isContextProvider=F,me.isElement=$,me.isForwardRef=B,me.isFragment=te,me.isLazy=U,me.isMemo=Y,me.isPortal=J,me.isProfiler=se,me.isStrictMode=re,me.isSuspense=_e,me.isValidElementType=C,me.typeOf=m}(),me}var Qa;function es(){if(Qa)return $n.exports;Qa=1;var e={};return e.NODE_ENV==="production"?$n.exports=od():$n.exports=id(),$n.exports}/*
|
|
45
|
+
object-assign
|
|
46
|
+
(c) Sindre Sorhus
|
|
47
|
+
@license MIT
|
|
48
|
+
*/var ti,ts;function ad(){if(ts)return ti;ts=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(a).map(function(l){return a[l]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ti=o()?Object.assign:function(i,a){for(var s,u=n(i),c,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){c=e(s);for(var p=0;p<c.length;p++)r.call(s,c[p])&&(u[c[p]]=s[c[p]])}}return u},ti}var ri,rs;function ni(){if(rs)return ri;rs=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ri=e,ri}var oi,ns;function os(){return ns||(ns=1,oi=Function.call.bind(Object.prototype.hasOwnProperty)),oi}var ii,is;function sd(){if(is)return ii;is=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var r=ni(),n={},o=os();t=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,u,c,l){if(e.NODE_ENV!=="production"){for(var d in a)if(o(a,d)){var p;try{if(typeof a[d]!="function"){var h=Error((c||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=a[d](s,d,c,u,null,r)}catch(_){p=_}if(p&&!(p instanceof Error)&&t((c||"React class")+": type specification of "+u+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var b=l?l():"";t("Failed "+u+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){e.NODE_ENV!=="production"&&(n={})},ii=i,ii}var ai,as;function ud(){if(as)return ai;as=1;var e={},t=es(),r=ad(),n=ni(),o=os(),i=sd(),a=function(){};e.NODE_ENV!=="production"&&(a=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return ai=function(u,c){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(E){var A=E&&(l&&E[l]||E[d]);if(typeof A=="function")return A}var h="<<anonymous>>",b={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:j(),arrayOf:C,element:m(),elementType:T(),instanceOf:N,node:X(),objectOf:R,oneOf:Z,oneOfType:H,shape:Q,exact:ae};function _(E,A){return E===A?E!==0||1/E===1/A:E!==E&&A!==A}function y(E,A){this.message=E,this.data=A&&typeof A=="object"?A:{},this.stack=""}y.prototype=Error.prototype;function O(E){if(e.NODE_ENV!=="production")var A={},F=0;function $(te,U,Y,J,se,re,_e){if(J=J||h,re=re||Y,_e!==n){if(c){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var xe=J+":"+Y;!A[xe]&&F<3&&(a("You are manually calling a React.PropTypes validation function for the `"+re+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[xe]=!0,F++)}}return U[Y]==null?te?U[Y]===null?new y("The "+se+" `"+re+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new y("The "+se+" `"+re+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:E(U,Y,J,se,re)}var B=$.bind(null,!1);return B.isRequired=$.bind(null,!0),B}function w(E){function A(F,$,B,te,U,Y){var J=F[$],se=ne(J);if(se!==E){var re=oe(J);return new y("Invalid "+te+" `"+U+"` of type "+("`"+re+"` supplied to `"+B+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return O(A)}function j(){return O(s)}function C(E){function A(F,$,B,te,U){if(typeof E!="function")return new y("Property `"+U+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var Y=F[$];if(!Array.isArray(Y)){var J=ne(Y);return new y("Invalid "+te+" `"+U+"` of type "+("`"+J+"` supplied to `"+B+"`, expected an array."))}for(var se=0;se<Y.length;se++){var re=E(Y,se,B,te,U+"["+se+"]",n);if(re instanceof Error)return re}return null}return O(A)}function m(){function E(A,F,$,B,te){var U=A[F];if(!u(U)){var Y=ne(U);return new y("Invalid "+B+" `"+te+"` of type "+("`"+Y+"` supplied to `"+$+"`, expected a single ReactElement."))}return null}return O(E)}function T(){function E(A,F,$,B,te){var U=A[F];if(!t.isValidElementType(U)){var Y=ne(U);return new y("Invalid "+B+" `"+te+"` of type "+("`"+Y+"` supplied to `"+$+"`, expected a single ReactElement type."))}return null}return O(E)}function N(E){function A(F,$,B,te,U){if(!(F[$]instanceof E)){var Y=E.name||h,J=de(F[$]);return new y("Invalid "+te+" `"+U+"` of type "+("`"+J+"` supplied to `"+B+"`, expected ")+("instance of `"+Y+"`."))}return null}return O(A)}function Z(E){if(!Array.isArray(E))return e.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function A(F,$,B,te,U){for(var Y=F[$],J=0;J<E.length;J++)if(_(Y,E[J]))return null;var se=JSON.stringify(E,function(_e,D){var xe=oe(D);return xe==="symbol"?String(D):D});return new y("Invalid "+te+" `"+U+"` of value `"+String(Y)+"` "+("supplied to `"+B+"`, expected one of "+se+"."))}return O(A)}function R(E){function A(F,$,B,te,U){if(typeof E!="function")return new y("Property `"+U+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var Y=F[$],J=ne(Y);if(J!=="object")return new y("Invalid "+te+" `"+U+"` of type "+("`"+J+"` supplied to `"+B+"`, expected an object."));for(var se in Y)if(o(Y,se)){var re=E(Y,se,B,te,U+"."+se,n);if(re instanceof Error)return re}return null}return O(A)}function H(E){if(!Array.isArray(E))return e.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var A=0;A<E.length;A++){var F=E[A];if(typeof F!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(F)+" at index "+A+"."),s}function $(B,te,U,Y,J){for(var se=[],re=0;re<E.length;re++){var _e=E[re],D=_e(B,te,U,Y,J,n);if(D==null)return null;D.data&&o(D.data,"expectedType")&&se.push(D.data.expectedType)}var xe=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new y("Invalid "+Y+" `"+J+"` supplied to "+("`"+U+"`"+xe+"."))}return O($)}function X(){function E(A,F,$,B,te){return k(A[F])?null:new y("Invalid "+B+" `"+te+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return O(E)}function ee(E,A,F,$,B){return new y((E||"React class")+": "+A+" type `"+F+"."+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function Q(E){function A(F,$,B,te,U){var Y=F[$],J=ne(Y);if(J!=="object")return new y("Invalid "+te+" `"+U+"` of type `"+J+"` "+("supplied to `"+B+"`, expected `object`."));for(var se in E){var re=E[se];if(typeof re!="function")return ee(B,te,U,se,oe(re));var _e=re(Y,se,B,te,U+"."+se,n);if(_e)return _e}return null}return O(A)}function ae(E){function A(F,$,B,te,U){var Y=F[$],J=ne(Y);if(J!=="object")return new y("Invalid "+te+" `"+U+"` of type `"+J+"` "+("supplied to `"+B+"`, expected `object`."));var se=r({},F[$],E);for(var re in se){var _e=E[re];if(o(E,re)&&typeof _e!="function")return ee(B,te,U,re,oe(_e));if(!_e)return new y("Invalid "+te+" `"+U+"` key `"+re+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(F[$],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(E),null," "));var D=_e(Y,re,B,te,U+"."+re,n);if(D)return D}return null}return O(A)}function k(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(k);if(E===null||u(E))return!0;var A=p(E);if(A){var F=A.call(E),$;if(A!==E.entries){for(;!($=F.next()).done;)if(!k($.value))return!1}else for(;!($=F.next()).done;){var B=$.value;if(B&&!k(B[1]))return!1}}else return!1;return!0;default:return!1}}function q(E,A){return E==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function ne(E){var A=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":q(A,E)?"symbol":A}function oe(E){if(typeof E>"u"||E===null)return""+E;var A=ne(E);if(A==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return A}function fe(E){var A=oe(E);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function de(E){return!E.constructor||!E.constructor.name?h:E.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},ai}var si,ss;function ld(){if(ss)return si;ss=1;var e=ni();function t(){}function r(){}return r.resetWarningCache=t,si=function(){function n(a,s,u,c,l,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},si}var us;function cd(){if(us)return Rn.exports;us=1;var e={};if(e.NODE_ENV!=="production"){var t=es(),r=!0;Rn.exports=ud()(t.isElement,r)}else Rn.exports=ld()();return Rn.exports}var fd=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(n,o,i){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:i})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var a in n)r.d(i,a,(function(s){return n[s]}).bind(null,a));return i},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=2)}([function(e,t){e.exports=cd()},function(e,t){e.exports=g},function(e,t,r){r.r(t);var n=r(1),o=r(0),i=function(){return(i=Object.assign||function(b){for(var _,y=1,O=arguments.length;y<O;y++)for(var w in _=arguments[y])Object.prototype.hasOwnProperty.call(_,w)&&(b[w]=_[w]);return b}).apply(this,arguments)},a=function(b,_){var y={};for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&_.indexOf(O)<0&&(y[O]=b[O]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function"){var w=0;for(O=Object.getOwnPropertySymbols(b);w<O.length;w++)_.indexOf(O[w])<0&&Object.prototype.propertyIsEnumerable.call(b,O[w])&&(y[O[w]]=b[O[w]])}return y},s=0,u=n.forwardRef(function(b,_){var y=b.title,O=y===void 0?null:y,w=b.description,j=w===void 0?null:w,C=b.size,m=C===void 0?null:C,T=b.color,N=T===void 0?"currentColor":T,Z=b.horizontal,R=Z===void 0?null:Z,H=b.vertical,X=H===void 0?null:H,ee=b.rotate,Q=ee===void 0?null:ee,ae=b.spin,k=ae===void 0?null:ae,q=b.style,ne=q===void 0?{}:q,oe=b.children,fe=a(b,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);s++;var de,E=k!==null&&k,A=n.Children.map(oe,function(te){var U=te;E!==!0&&(E=(k===null?U.props.spin:k)===!0);var Y=U.props.size;typeof m=="number"&&typeof U.props.size=="number"&&(Y=U.props.size/m);var J={size:Y,color:N===null?U.props.color:N,horizontal:R===null?U.props.horizontal:R,vertical:X===null?U.props.vertical:X,rotate:Q===null?U.props.rotate:Q,spin:k===null?U.props.spin:k,inStack:!0};return n.cloneElement(U,J)});m!==null&&(ne.width=typeof m=="string"?m:1.5*m+"rem");var F,$="stack_labelledby_"+s,B="stack_describedby_"+s;if(O)de=j?$+" "+B:$;else if(F="presentation",j)throw new Error("title attribute required when description is set");return n.createElement("svg",i({ref:_,viewBox:"0 0 24 24",style:ne,role:F,"aria-labelledby":de},fe),O&&n.createElement("title",{id:$},O),j&&n.createElement("desc",{id:B},j),E&&n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),A)});u.displayName="Stack",u.propTypes={size:o.oneOfType([o.number,o.string]),color:o.string,horizontal:o.bool,vertical:o.bool,rotate:o.number,spin:o.oneOfType([o.bool,o.number]),children:o.oneOfType([o.arrayOf(o.node),o.node]).isRequired,className:o.string,style:o.object},u.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var c=u;r.d(t,"Icon",function(){return h}),r.d(t,"Stack",function(){return c});var l=function(){return(l=Object.assign||function(b){for(var _,y=1,O=arguments.length;y<O;y++)for(var w in _=arguments[y])Object.prototype.hasOwnProperty.call(_,w)&&(b[w]=_[w]);return b}).apply(this,arguments)},d=function(b,_){var y={};for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&_.indexOf(O)<0&&(y[O]=b[O]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function"){var w=0;for(O=Object.getOwnPropertySymbols(b);w<O.length;w++)_.indexOf(O[w])<0&&Object.prototype.propertyIsEnumerable.call(b,O[w])&&(y[O[w]]=b[O[w]])}return y},p=0,h=n.forwardRef(function(b,_){var y=b.path,O=b.id,w=O===void 0?++p:O,j=b.title,C=j===void 0?null:j,m=b.description,T=m===void 0?null:m,N=b.size,Z=N===void 0?null:N,R=b.color,H=R===void 0?"currentColor":R,X=b.horizontal,ee=X!==void 0&&X,Q=b.vertical,ae=Q!==void 0&&Q,k=b.rotate,q=k===void 0?0:k,ne=b.spin,oe=ne!==void 0&&ne,fe=b.style,de=fe===void 0?{}:fe,E=b.inStack,A=E!==void 0&&E,F=d(b,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),$={},B=[];Z!==null&&(A?B.push("scale("+Z+")"):(de.width=typeof Z=="string"?Z:1.5*Z+"rem",de.height=de.width)),ee&&B.push("scaleX(-1)"),ae&&B.push("scaleY(-1)"),q!==0&&B.push("rotate("+q+"deg)"),H!==null&&($.fill=H);var te=n.createElement("path",l({d:y,style:$},A?F:{})),U=te;B.length>0&&(de.transform=B.join(" "),de.transformOrigin="center",A&&(U=n.createElement("g",{style:de},te,n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var Y,J=U,se=oe===!0||typeof oe!="number"?2:oe,re=!A&&(ee||ae);if(se<0&&(re=!re),oe&&(J=n.createElement("g",{style:{animation:"spin"+(re?"-inverse":"")+" linear "+Math.abs(se)+"s infinite",transformOrigin:"center"}},U,!(ee||ae||q!==0)&&n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),A)return J;var _e,D="icon_labelledby_"+w,xe="icon_describedby_"+w;if(C)Y=T?D+" "+xe:D;else if(_e="presentation",T)throw new Error("title attribute required when description is set");return n.createElement("svg",l({ref:_,viewBox:"0 0 24 24",style:de,role:_e,"aria-labelledby":Y},F),C&&n.createElement("title",{id:D},C),T&&n.createElement("desc",{id:xe},T),!A&&oe&&(re?n.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),J)});h.displayName="Icon",h.propTypes={path:o.string.isRequired,size:o.oneOfType([o.number,o.string]),color:o.string,horizontal:o.bool,vertical:o.bool,rotate:o.number,spin:o.oneOfType([o.bool,o.number]),style:o.object,inStack:o.bool,className:o.string},h.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=h}]);const dd=Qo(fd);var ls={exports:{}};/*!
|
|
50
|
+
Copyright (c) 2018 Jed Watson.
|
|
51
|
+
Licensed under the MIT License (MIT), see
|
|
52
|
+
http://jedwatson.github.io/classnames
|
|
53
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ls);var pd=ls.exports;const Ar=Qo(pd);var S={},vd={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(t,r){return"Cannot apply '"+t+"' to '"+r.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(t,r){return"[mobx.array] Index out of bounds, "+t+" is larger than "+r},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(t){return"Cannot initialize from classes that inherit from Map: "+t.constructor.name},20:function(t){return"Cannot initialize map from "+t},21:function(t){return"Cannot convert to map from '"+t+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(t){return"Cannot obtain administration from "+t},25:function(t,r){return"the entry '"+t+"' does not exist in the observable map '"+r+"'"},26:"please specify a property",27:function(t,r){return"no observable property '"+t.toString()+"' found on the observable object '"+r+"'"},28:function(t){return"Cannot obtain atom from "+t},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(t,r){return"Cycle detected in computation "+t+": "+r},33:function(t){return"The setter of computed value '"+t+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(t){return"[ComputedValue '"+t+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(t){return"[mobx] `observableArray."+t+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+t+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},gd=S.NODE_ENV!=="production"?vd:{};function z(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(S.NODE_ENV!=="production"){var o=typeof e=="string"?e:gd[e];throw typeof o=="function"&&(o=o.apply(null,r)),new Error("[MobX] "+o)}throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var hd={};function Bn(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:hd}var cs=Object.assign,In=Object.getOwnPropertyDescriptor,bt=Object.defineProperty,Fn=Object.prototype,zn=[];Object.freeze(zn);var fs={};Object.freeze(fs);var md=typeof Proxy<"u",bd=Object.toString();function ds(){md||z(S.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function en(e){S.NODE_ENV!=="production"&&M.verifyProxies&&z("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function ct(){return++M.mobxGuid}function ui(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Lr=function(){};function Ae(e){return typeof e=="function"}function sr(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Un(e){return e!==null&&typeof e=="object"}function yt(e){if(!Un(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===bd}function ps(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Wn(e,t,r){bt(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function vs(e,t,r){bt(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function ur(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return Un(n)&&n[r]===!0}}function Tr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function yd(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function Mt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var gs=typeof Object.getOwnPropertySymbols<"u";function _d(e){var t=Object.keys(e);if(!gs)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return Fn.propertyIsEnumerable.call(e,n)})):t}var qn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:gs?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function li(e){return typeof e=="string"?e:typeof e=="symbol"?e.toString():new String(e).toString()}function hs(e){return e===null?null:typeof e=="object"?""+e:e}function Xe(e,t){return Fn.hasOwnProperty.call(e,t)}var wd=Object.getOwnPropertyDescriptors||function(t){var r={};return qn(t).forEach(function(n){r[n]=In(t,n)}),r};function Fe(e,t){return!!(e&t)}function ze(e,t,r){return r?e|=t:e&=~t,e}function ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Od(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xd(n.key),n)}}function Vr(e,t,r){return t&&Od(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mr(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Cd(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pt.apply(null,arguments)}function bs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ci(e,t)}function ci(e,t){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ci(e,t)}function Ed(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xd(e){var t=Ed(e,"string");return typeof t=="symbol"?t:t+""}function Cd(e,t){if(e){if(typeof e=="string")return ms(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ms(e,t):void 0}}var De=Symbol("mobx-stored-annotations");function _t(e){function t(r,n){if(rn(n))return e.decorate_20223_(r,n);tn(r,n,e)}return Object.assign(t,e)}function tn(e,t,r){if(Xe(e,De)||Wn(e,De,Pt({},e[De])),S.NODE_ENV!=="production"&&Kn(r)&&!Xe(e[De],t)){var n=e.constructor.name+".prototype."+t.toString();z("'"+n+"' is decorated with 'override', but no such decorated member was found on prototype.")}Sd(e,r,t),Kn(r)||(e[De][t]=r)}function Sd(e,t,r){if(S.NODE_ENV!=="production"&&!Kn(t)&&Xe(e[De],r)){var n=e.constructor.name+".prototype."+r.toString(),o=e[De][r].annotationType_,i=t.annotationType_;z("Cannot apply '@"+i+"' to '"+n+"':"+(`
|
|
55
|
+
The field is already decorated with '@`+o+"'.")+`
|
|
56
|
+
Re-decorating fields is not allowed.
|
|
57
|
+
Use '@override' decorator for methods overridden by subclass.`)}}function jd(e){return Xe(e,De)||Wn(e,De,Pt({},e[De])),e[De]}function rn(e){return typeof e=="object"&&typeof e.kind=="string"}function Yn(e,t){S.NODE_ENV!=="production"&&!t.includes(e.kind)&&z("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var ue=Symbol("mobx administration"),Wt=function(){function e(r){r===void 0&&(r=S.NODE_ENV!=="production"?"Atom@"+ct():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ve.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return Ds(this)},t.reportChanged=function(){et(),Rs(this),tt()},t.toString=function(){return this.name_},Vr(e,[{key:"isBeingObserved",get:function(){return Fe(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=ze(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Fe(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=ze(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Fe(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=ze(this.flags_,e.diffValueMask_,n===1)}}])}();Wt.isBeingObservedMask_=1,Wt.isPendingUnobservationMask_=2,Wt.diffValueMask_=4;var fi=ur("Atom",Wt);function ys(e,t,r){t===void 0&&(t=Lr),r===void 0&&(r=Lr);var n=new Wt(e);return t!==Lr&&Ip(n,t),r!==Lr&&Ws(n,r),n}function Ad(e,t){return e===t}function Ld(e,t){return Li(e,t)}function Td(e,t){return Li(e,t,1)}function Vd(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Gn={identity:Ad,structural:Ld,default:Vd,shallow:Td};function lr(e,t,r){return un(e)?e:Array.isArray(e)?Te.array(e,{name:r}):yt(e)?Te.object(e,void 0,{name:r}):Tr(e)?Te.map(e,{name:r}):Mt(e)?Te.set(e,{name:r}):typeof e=="function"&&!Nr(e)&&!sn(e)?ps(e)?kr(e):an(r,e):e}function Md(e,t,r){if(e==null||fn(e)||co(e)||Yt(e)||Ot(e))return e;if(Array.isArray(e))return Te.array(e,{name:r,deep:!1});if(yt(e))return Te.object(e,void 0,{name:r,deep:!1});if(Tr(e))return Te.map(e,{name:r,deep:!1});if(Mt(e))return Te.set(e,{name:r,deep:!1});S.NODE_ENV!=="production"&&z("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function Zn(e){return e}function Pd(e,t){return S.NODE_ENV!=="production"&&un(e)&&z("observable.struct should not be used with observable values"),Li(e,t)?t:e}var Nd="override";function Kn(e){return e.annotationType_===Nd}function nn(e,t){return{annotationType_:e,options_:t,make_:kd,extend_:Hd,decorate_20223_:Dd}}function kd(e,t,r,n){var o;if((o=this.options_)!=null&&o.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(Nr(r.value))return 1;var i=_s(e,this,t,r,!1);return bt(n,t,i),2}function Hd(e,t,r,n){var o=_s(e,this,t,r);return e.defineProperty_(t,o,n)}function Dd(e,t){S.NODE_ENV!=="production"&&Yn(t,["method","field"]);var r=t.kind,n=t.name,o=t.addInitializer,i=this,a=function(c){var l,d,p,h;return cr((l=(d=i.options_)==null?void 0:d.name)!=null?l:n.toString(),c,(p=(h=i.options_)==null?void 0:h.autoAction)!=null?p:!1)};if(r=="field")return function(u){var c,l=u;return Nr(l)||(l=a(l)),(c=i.options_)!=null&&c.bound&&(l=l.bind(this),l.isMobxAction=!0),l};if(r=="method"){var s;return Nr(e)||(e=a(e)),(s=this.options_)!=null&&s.bound&&o(function(){var u=this,c=u[n].bind(u);c.isMobxAction=!0,u[n]=c}),e}z("Cannot apply '"+i.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
|
|
58
|
+
'`+i.annotationType_+"' can only be used on properties with a function value."))}function Rd(e,t,r,n){var o=t.annotationType_,i=n.value;S.NODE_ENV!=="production"&&!Ae(i)&&z("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
59
|
+
'`+o+"' can only be used on properties with a function value."))}function _s(e,t,r,n,o){var i,a,s,u,c,l,d;o===void 0&&(o=M.safeDescriptors),Rd(e,t,r,n);var p=n.value;if((i=t.options_)!=null&&i.bound){var h;p=p.bind((h=e.proxy_)!=null?h:e.target_)}return{value:cr((a=(s=t.options_)==null?void 0:s.name)!=null?a:r.toString(),p,(u=(c=t.options_)==null?void 0:c.autoAction)!=null?u:!1,(l=t.options_)!=null&&l.bound?(d=e.proxy_)!=null?d:e.target_:void 0),configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function ws(e,t){return{annotationType_:e,options_:t,make_:$d,extend_:Bd,decorate_20223_:Id}}function $d(e,t,r,n){var o;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((o=this.options_)!=null&&o.bound&&(!Xe(e.target_,t)||!sn(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(sn(r.value))return 1;var i=Os(e,this,t,r,!1,!1);return bt(n,t,i),2}function Bd(e,t,r,n){var o,i=Os(e,this,t,r,(o=this.options_)==null?void 0:o.bound);return e.defineProperty_(t,i,n)}function Id(e,t){var r;S.NODE_ENV!=="production"&&Yn(t,["method"]);var n=t.name,o=t.addInitializer;return sn(e)||(e=kr(e)),(r=this.options_)!=null&&r.bound&&o(function(){var i=this,a=i[n].bind(i);a.isMobXFlow=!0,i[n]=a}),e}function Fd(e,t,r,n){var o=t.annotationType_,i=n.value;S.NODE_ENV!=="production"&&!Ae(i)&&z("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
60
|
+
'`+o+"' can only be used on properties with a generator function value."))}function Os(e,t,r,n,o,i){i===void 0&&(i=M.safeDescriptors),Fd(e,t,r,n);var a=n.value;if(sn(a)||(a=kr(a)),o){var s;a=a.bind((s=e.proxy_)!=null?s:e.target_),a.isMobXFlow=!0}return{value:a,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function di(e,t){return{annotationType_:e,options_:t,make_:zd,extend_:Ud,decorate_20223_:Wd}}function zd(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function Ud(e,t,r,n){return qd(e,this,t,r),e.defineComputedProperty_(t,Pt({},this.options_,{get:r.get,set:r.set}),n)}function Wd(e,t){S.NODE_ENV!=="production"&&Yn(t,["getter"]);var r=this,n=t.name,o=t.addInitializer;return o(function(){var i=Hr(this)[ue],a=Pt({},r.options_,{get:e,context:this});a.name||(a.name=S.NODE_ENV!=="production"?i.name_+"."+n.toString():"ObservableObject."+n.toString()),i.values_.set(n,new Je(a))}),function(){return this[ue].getObservablePropValue_(n)}}function qd(e,t,r,n){var o=t.annotationType_,i=n.get;S.NODE_ENV!=="production"&&!i&&z("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
61
|
+
'`+o+"' can only be used on getter(+setter) properties."))}function Xn(e,t){return{annotationType_:e,options_:t,make_:Yd,extend_:Gd,decorate_20223_:Zd}}function Yd(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function Gd(e,t,r,n){var o,i;return Kd(e,this,t,r),e.defineObservableProperty_(t,r.value,(o=(i=this.options_)==null?void 0:i.enhancer)!=null?o:lr,n)}function Zd(e,t){if(S.NODE_ENV!=="production"){if(t.kind==="field")throw z("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");Yn(t,["accessor"])}var r=this,n=t.kind,o=t.name,i=new WeakSet;function a(s,u){var c,l,d=Hr(s)[ue],p=new fr(u,(c=(l=r.options_)==null?void 0:l.enhancer)!=null?c:lr,S.NODE_ENV!=="production"?d.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);d.values_.set(o,p),i.add(s)}if(n=="accessor")return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[ue].getObservablePropValue_(o)},set:function(u){return i.has(this)||a(this,u),this[ue].setObservablePropValue_(o,u)},init:function(u){return i.has(this)||a(this,u),u}}}function Kd(e,t,r,n){var o=t.annotationType_;S.NODE_ENV!=="production"&&!("value"in n)&&z("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
62
|
+
'`+o+"' cannot be used on getter/setter properties"))}var Xd="true",Jd=Es();function Es(e){return{annotationType_:Xd,options_:e,make_:Qd,extend_:ep,decorate_20223_:tp}}function Qd(e,t,r,n){var o,i;if(r.get)return eo.make_(e,t,r,n);if(r.set){var a=cr(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:M.safeDescriptors?e.isPlainObject_:!0,set:a})===null?0:2:(bt(n,t,{configurable:!0,set:a}),2)}if(n!==e.target_&&typeof r.value=="function"){var s;if(ps(r.value)){var u,c=(u=this.options_)!=null&&u.autoBind?kr.bound:kr;return c.make_(e,t,r,n)}var l=(s=this.options_)!=null&&s.autoBind?an.bound:an;return l.make_(e,t,r,n)}var d=((o=this.options_)==null?void 0:o.deep)===!1?Te.ref:Te;if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var p;r.value=r.value.bind((p=e.proxy_)!=null?p:e.target_)}return d.make_(e,t,r,n)}function ep(e,t,r,n){var o,i;if(r.get)return eo.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:M.safeDescriptors?e.isPlainObject_:!0,set:cr(t.toString(),r.set)},n);if(typeof r.value=="function"&&(o=this.options_)!=null&&o.autoBind){var a;r.value=r.value.bind((a=e.proxy_)!=null?a:e.target_)}var s=((i=this.options_)==null?void 0:i.deep)===!1?Te.ref:Te;return s.extend_(e,t,r,n)}function tp(e,t){z("'"+this.annotationType_+"' cannot be used as a decorator")}var rp="observable",np="observable.ref",op="observable.shallow",ip="observable.struct",xs={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(xs);function Jn(e){return e||xs}var pi=Xn(rp),ap=Xn(np,{enhancer:Zn}),sp=Xn(op,{enhancer:Md}),up=Xn(ip,{enhancer:Pd}),Cs=_t(pi);function Qn(e){return e.deep===!0?lr:e.deep===!1?Zn:cp(e.defaultDecorator)}function lp(e){var t;return e?(t=e.defaultDecorator)!=null?t:Es(e):void 0}function cp(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:lr}function Ss(e,t,r){if(rn(t))return pi.decorate_20223_(e,t);if(sr(t)){tn(e,t,pi);return}return un(e)?e:yt(e)?Te.object(e,t,r):Array.isArray(e)?Te.array(e,t):Tr(e)?Te.map(e,t):Mt(e)?Te.set(e,t):typeof e=="object"&&e!==null?e:Te.box(e,t)}cs(Ss,Cs);var fp={box:function(t,r){var n=Jn(r);return new fr(t,Qn(n),n.name,!0,n.equals)},array:function(t,r){var n=Jn(r);return(M.useProxies===!1||n.proxy===!1?p1:n1)(t,Qn(n),n.name)},map:function(t,r){var n=Jn(r);return new Qs(t,Qn(n),n.name)},set:function(t,r){var n=Jn(r);return new tu(t,Qn(n),n.name)},object:function(t,r,n){return gr(function(){return Wp(M.useProxies===!1||(n==null?void 0:n.proxy)===!1?Hr({},n):Qp({},n),t,r)})},ref:_t(ap),shallow:_t(sp),deep:Cs,struct:_t(up)},Te=cs(Ss,fp),js="computed",dp="computed.struct",vi=di(js),pp=di(dp,{equals:Gn.structural}),eo=function(t,r){if(rn(r))return vi.decorate_20223_(t,r);if(sr(r))return tn(t,r,vi);if(yt(t))return _t(di(js,t));S.NODE_ENV!=="production"&&(Ae(t)||z("First argument to `computed` should be an expression."),Ae(r)&&z("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=yt(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new Je(n)};Object.assign(eo,vi),eo.struct=_t(pp);var As,Ls,to=0,vp=1,gp=(As=(Ls=In(function(){},"name"))==null?void 0:Ls.configurable)!=null?As:!1,Ts={value:"action",configurable:!0,writable:!1,enumerable:!1};function cr(e,t,r,n){r===void 0&&(r=!1),S.NODE_ENV!=="production"&&(Ae(t)||z("`action` can only be invoked on functions"),(typeof e!="string"||!e)&&z("actions should have valid names, got: '"+e+"'"));function o(){return hp(e,r,t,n||this,arguments)}return o.isMobxAction=!0,o.toString=function(){return t.toString()},gp&&(Ts.value=e,bt(o,"name",Ts)),o}function hp(e,t,r,n,o){var i=mp(e,t,n,o);try{return r.apply(n,o)}catch(a){throw i.error_=a,a}finally{bp(i)}}function mp(e,t,r,n){var o=S.NODE_ENV!=="production"&&Ve()&&!!e,i=0;if(S.NODE_ENV!=="production"&&o){i=Date.now();var a=n?Array.from(n):zn;Ue({type:wi,name:e,object:r,arguments:a})}var s=M.trackingDerivation,u=!t||!s;et();var c=M.allowStateChanges;u&&(dr(),c=gi(!0));var l=yi(!0),d={runAsAction_:u,prevDerivation_:s,prevAllowStateChanges_:c,prevAllowStateReads_:l,notifySpy_:o,startTime_:i,actionId_:vp++,parentActionId_:to};return to=d.actionId_,d}function bp(e){to!==e.actionId_&&z(30),to=e.parentActionId_,e.error_!==void 0&&(M.suppressReactionErrors=!0),hi(e.prevAllowStateChanges_),on(e.prevAllowStateReads_),tt(),e.runAsAction_&&Nt(e.prevDerivation_),S.NODE_ENV!=="production"&&e.notifySpy_&&We({time:Date.now()-e.startTime_}),M.suppressReactionErrors=!1}function gi(e){var t=M.allowStateChanges;return M.allowStateChanges=e,t}function hi(e){M.allowStateChanges=e}var yp="create",fr=function(e){function t(n,o,i,a,s){var u;return i===void 0&&(i=S.NODE_ENV!=="production"?"ObservableValue@"+ct():"ObservableValue"),a===void 0&&(a=!0),s===void 0&&(s=Gn.default),u=e.call(this,i)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=o,u.name_=i,u.equals=s,u.value_=o(n,void 0,i),S.NODE_ENV!=="production"&&a&&Ve()&&pr({type:yp,object:u,observableKind:"value",debugObjectName:u.name_,newValue:""+u.value_}),u}bs(t,e);var r=t.prototype;return r.dehanceValue=function(o){return this.dehancer!==void 0?this.dehancer(o):o},r.set=function(o){var i=this.value_;if(o=this.prepareNewValue_(o),o!==M.UNCHANGED){var a=Ve();S.NODE_ENV!=="production"&&a&&Ue({type:pt,object:this,observableKind:"value",debugObjectName:this.name_,newValue:o,oldValue:i}),this.setNewValue_(o),S.NODE_ENV!=="production"&&a&&We()}},r.prepareNewValue_=function(o){if(wt(this),rt(this)){var i=nt(this,{object:this,type:pt,newValue:o});if(!i)return M.UNCHANGED;o=i.newValue}return o=this.enhancer(o,this.value_,this.name_),this.equals(this.value_,o)?M.UNCHANGED:o},r.setNewValue_=function(o){var i=this.value_;this.value_=o,this.reportChanged(),ft(this)&&dt(this,{type:pt,object:this,newValue:o,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(o){return ln(this,o)},r.observe_=function(o,i){return i&&o({observableKind:"value",debugObjectName:this.name_,object:this,type:pt,newValue:this.value_,oldValue:void 0}),cn(this,o)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return hs(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Wt),Je=function(){function e(r){this.dependenciesState_=ve.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ve.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new no(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Qe.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||z(31),this.derivation=r.get,this.name_=r.name||(S.NODE_ENV!=="production"?"ComputedValue@"+ct():"ComputedValue"),r.set&&(this.setter_=cr(S.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?Gn.structural:Gn.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Sp(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&z(32,this.name_,this.derivation),M.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)mi(this)&&(this.warnAboutUntrackedRead_(),et(),this.value_=this.computeValue_(!1),tt());else if(Ds(this),mi(this)){var n=M.trackingContext;this.keepAlive_&&!n&&(M.trackingContext=this),this.trackAndCompute()&&Cp(this),M.trackingContext=n}var o=this.value_;if(oo(o))throw o.cause;return o},t.set=function(n){if(this.setter_){this.isRunningSetter&&z(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else z(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,o=this.dependenciesState_===ve.NOT_TRACKING_,i=this.computeValue_(!0),a=o||oo(n)||oo(i)||!this.equals_(n,i);return a&&(this.value_=i,S.NODE_ENV!=="production"&&Ve()&&pr({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:n,newValue:i})),a},t.computeValue_=function(n){this.isComputing=!0;var o=gi(!1),i;if(n)i=Vs(this,this.derivation,this.scope_);else if(M.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(a){i=new no(a)}return hi(o),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(bi(this),this.value_=void 0,S.NODE_ENV!=="production"&&this.isTracing_!==Qe.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(n,o){var i=this,a=!0,s=void 0;return Hp(function(){var u=i.get();if(!a||o){var c=dr();n({observableKind:"computed",debugObjectName:i.name_,type:pt,object:i,newValue:u,oldValue:s}),Nt(c)}a=!1,s=u})},t.warnAboutUntrackedRead_=function(){S.NODE_ENV!=="production"&&(this.isTracing_!==Qe.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:M.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return hs(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Vr(e,[{key:"isComputing",get:function(){return Fe(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=ze(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return Fe(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=ze(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return Fe(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=ze(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Fe(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=ze(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Fe(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=ze(this.flags_,e.diffValueMask_,n===1)}}])}();Je.isComputingMask_=1,Je.isRunningSetterMask_=2,Je.isBeingObservedMask_=4,Je.isPendingUnobservationMask_=8,Je.diffValueMask_=16;var ro=ur("ComputedValue",Je),ve;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ve||(ve={}));var Qe;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Qe||(Qe={}));var no=function(t){this.cause=void 0,this.cause=t};function oo(e){return e instanceof no}function mi(e){switch(e.dependenciesState_){case ve.UP_TO_DATE_:return!1;case ve.NOT_TRACKING_:case ve.STALE_:return!0;case ve.POSSIBLY_STALE_:{for(var t=yi(!0),r=dr(),n=e.observing_,o=n.length,i=0;i<o;i++){var a=n[i];if(ro(a)){if(M.disableErrorBoundaries)a.get();else try{a.get()}catch{return Nt(r),on(t),!0}if(e.dependenciesState_===ve.STALE_)return Nt(r),on(t),!0}}return Ps(e),Nt(r),on(t),!1}}}function wt(e){if(S.NODE_ENV!=="production"){var t=e.observers_.size>0;!M.allowStateChanges&&(t||M.enforceActions==="always")&&console.warn("[MobX] "+(M.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function _p(e){S.NODE_ENV!=="production"&&!M.allowStateReads&&M.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}function Vs(e,t,r){var n=yi(!0);Ps(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++M.runId;var o=M.trackingDerivation;M.trackingDerivation=e,M.inBatch++;var i;if(M.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(a){i=new no(a)}return M.inBatch--,M.trackingDerivation=o,Op(e),wp(e),on(n),i}function wp(e){S.NODE_ENV!=="production"&&e.observing_.length===0&&(typeof e.requiresObservable_=="boolean"?e.requiresObservable_:M.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}function Op(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=ve.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=r[a];s.diffValue===0&&(s.diffValue=1,o!==a&&(r[o]=s),o++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=o,e.newObserving_=null,i=t.length;i--;){var u=t[i];u.diffValue===0&&ks(u,e),u.diffValue=0}for(;o--;){var c=r[o];c.diffValue===1&&(c.diffValue=0,xp(c,e))}n!==ve.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function bi(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)ks(t[r],e);e.dependenciesState_=ve.NOT_TRACKING_}function Ms(e){var t=dr();try{return e()}finally{Nt(t)}}function dr(){var e=M.trackingDerivation;return M.trackingDerivation=null,e}function Nt(e){M.trackingDerivation=e}function yi(e){var t=M.allowStateReads;return M.allowStateReads=e,t}function on(e){M.allowStateReads=e}function Ps(e){if(e.dependenciesState_!==ve.UP_TO_DATE_){e.dependenciesState_=ve.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=ve.UP_TO_DATE_}}var io=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ao=!0,Ns=!1,M=function(){var e=Bn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ao=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new io().version&&(ao=!1),ao?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new io):(setTimeout(function(){Ns||z(35)},1),new io)}();function Ep(){if((M.pendingReactions.length||M.inBatch||M.isRunningReactions)&&z(36),Ns=!0,ao){var e=Bn();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),M=new io}}function xp(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ks(e,t){e.observers_.delete(t),e.observers_.size===0&&Hs(e)}function Hs(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,M.pendingUnobservations.push(e))}function et(){M.inBatch++}function tt(){if(--M.inBatch===0){Fs();for(var e=M.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof Je&&r.suspend_())}M.pendingUnobservations=[]}}function Ds(e){_p(e);var t=M.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&M.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&M.inBatch>0&&Hs(e),!1)}function Rs(e){e.lowestObserverState_!==ve.STALE_&&(e.lowestObserverState_=ve.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ve.UP_TO_DATE_&&(S.NODE_ENV!=="production"&&t.isTracing_!==Qe.NONE&&$s(t,e),t.onBecomeStale_()),t.dependenciesState_=ve.STALE_}))}function Cp(e){e.lowestObserverState_!==ve.STALE_&&(e.lowestObserverState_=ve.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ve.POSSIBLY_STALE_?(t.dependenciesState_=ve.STALE_,S.NODE_ENV!=="production"&&t.isTracing_!==Qe.NONE&&$s(t,e)):t.dependenciesState_===ve.UP_TO_DATE_&&(e.lowestObserverState_=ve.UP_TO_DATE_)}))}function Sp(e){e.lowestObserverState_===ve.UP_TO_DATE_&&(e.lowestObserverState_=ve.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ve.UP_TO_DATE_&&(t.dependenciesState_=ve.POSSIBLY_STALE_,t.onBecomeStale_())}))}function $s(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===Qe.BREAK){var r=[];Bs(Ys(e),r,1),new Function(`debugger;
|
|
63
|
+
/*
|
|
64
|
+
Tracing '`+e.name_+`'
|
|
65
|
+
|
|
66
|
+
You are entering this break point because derivation '`+e.name_+"' is being traced and '"+t.name_+`' is now forcing it to update.
|
|
67
|
+
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
|
|
68
|
+
The stackframe you are looking for is at least ~6-8 stack-frames up.
|
|
69
|
+
|
|
70
|
+
`+(e instanceof Je?e.derivation.toString().replace(/[*]\//g,"/"):"")+`
|
|
71
|
+
|
|
72
|
+
The dependencies for this derivation are:
|
|
73
|
+
|
|
74
|
+
`+r.join(`
|
|
75
|
+
`)+`
|
|
76
|
+
*/
|
|
77
|
+
`)()}}function Bs(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+" ".repeat(r-1)+e.name),e.dependencies&&e.dependencies.forEach(function(n){return Bs(n,t,r+1)})}var kt=function(){function e(r,n,o,i){r===void 0&&(r=S.NODE_ENV!=="production"?"Reaction@"+ct():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ve.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Qe.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=o,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,M.pendingReactions.push(this),Fs())},t.runReaction_=function(){if(!this.isDisposed){et(),this.isScheduled=!1;var n=M.trackingContext;if(M.trackingContext=this,mi(this)){this.isTrackPending=!0;try{this.onInvalidate_(),S.NODE_ENV!=="production"&&this.isTrackPending&&Ve()&&pr({name:this.name_,type:"scheduled-reaction"})}catch(o){this.reportExceptionInDerivation_(o)}}M.trackingContext=n,tt()}},t.track=function(n){if(!this.isDisposed){et();var o=Ve(),i;S.NODE_ENV!=="production"&&o&&(i=Date.now(),Ue({name:this.name_,type:"reaction"})),this.isRunning=!0;var a=M.trackingContext;M.trackingContext=this;var s=Vs(this,n,void 0);M.trackingContext=a,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&bi(this),oo(s)&&this.reportExceptionInDerivation_(s.cause),S.NODE_ENV!=="production"&&o&&We({time:Date.now()-i}),tt()}},t.reportExceptionInDerivation_=function(n){var o=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(M.disableErrorBoundaries)throw n;var i=S.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";M.suppressReactionErrors?S.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(i,n),S.NODE_ENV!=="production"&&Ve()&&pr({type:"error",name:this.name_,message:i,error:""+n}),M.globalReactionErrorHandlers.forEach(function(a){return a(n,o)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(et(),bi(this),tt()))},t.getDisposer_=function(n){var o=this,i=function a(){o.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",a)};return n==null||n.addEventListener==null||n.addEventListener("abort",i),i[ue]=this,i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),Kp(this,n)},Vr(e,[{key:"isDisposed",get:function(){return Fe(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=ze(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return Fe(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=ze(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return Fe(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=ze(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return Fe(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=ze(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return Fe(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=ze(this.flags_,e.diffValueMask_,n===1)}}])}();kt.isDisposedMask_=1,kt.isScheduledMask_=2,kt.isTrackPendingMask_=4,kt.isRunningMask_=8,kt.diffValueMask_=16;var Is=100,_i=function(t){return t()};function Fs(){M.inBatch>0||M.isRunningReactions||_i(jp)}function jp(){M.isRunningReactions=!0;for(var e=M.pendingReactions,t=0;e.length>0;){++t===Is&&(console.error(S.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+Is+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0]):"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,o=r.length;n<o;n++)r[n].runReaction_()}M.isRunningReactions=!1}var so=ur("Reaction",kt);function Ap(e){var t=_i;_i=function(n){return e(function(){return t(n)})}}function Ve(){return S.NODE_ENV!=="production"&&!!M.spyListeners.length}function pr(e){if(S.NODE_ENV!=="production"&&M.spyListeners.length)for(var t=M.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function Ue(e){if(S.NODE_ENV!=="production"){var t=Pt({},e,{spyReportStart:!0});pr(t)}}var Lp={type:"report-end",spyReportEnd:!0};function We(e){S.NODE_ENV!=="production"&&pr(e?Pt({},e,{type:"report-end",spyReportEnd:!0}):Lp)}function Tp(e){return S.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(M.spyListeners.push(e),ui(function(){M.spyListeners=M.spyListeners.filter(function(t){return t!==e})}))}var wi="action",Vp="action.bound",zs="autoAction",Mp="autoAction.bound",Pp="<unnamed action>",Oi=nn(wi),Np=nn(Vp,{bound:!0}),Ei=nn(zs,{autoAction:!0}),kp=nn(Mp,{autoAction:!0,bound:!0});function Us(e){var t=function(n,o){if(Ae(n))return cr(n.name||Pp,n,e);if(Ae(o))return cr(n,o,e);if(rn(o))return(e?Ei:Oi).decorate_20223_(n,o);if(sr(o))return tn(n,o,e?Ei:Oi);if(sr(n))return _t(nn(e?zs:wi,{name:n,autoAction:e}));S.NODE_ENV!=="production"&&z("Invalid arguments for `action`")};return t}var Pr=Us(!1);Object.assign(Pr,Oi);var an=Us(!0);Object.assign(an,Ei),Pr.bound=_t(Np),an.bound=_t(kp);function Nr(e){return Ae(e)&&e.isMobxAction===!0}function Hp(e,t){var r,n,o,i;t===void 0&&(t=fs),S.NODE_ENV!=="production"&&(Ae(e)||z("Autorun expects a function as first argument"),Nr(e)&&z("Autorun does not accept actions since actions are untrackable"));var a=(r=(n=t)==null?void 0:n.name)!=null?r:S.NODE_ENV!=="production"?e.name||"Autorun@"+ct():"Autorun",s=!t.scheduler&&!t.delay,u;if(s)u=new kt(a,function(){this.track(d)},t.onError,t.requiresObservable);else{var c=Rp(t),l=!1;u=new kt(a,function(){l||(l=!0,c(function(){l=!1,u.isDisposed||u.track(d)}))},t.onError,t.requiresObservable)}function d(){e(u)}return(o=t)!=null&&(o=o.signal)!=null&&o.aborted||u.schedule_(),u.getDisposer_((i=t)==null?void 0:i.signal)}var Dp=function(t){return t()};function Rp(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dp}var $p="onBO",Bp="onBUO";function Ip(e,t,r){return qs($p,e,t,r)}function Ws(e,t,r){return qs(Bp,e,t,r)}function qs(e,t,r,n){var o=Dr(t),i=Ae(n)?n:r,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var s=o[a];s&&(s.delete(i),s.size===0&&delete o[a])}}var Fp="never",uo="always",zp="observed";function Up(e){e.isolateGlobalState===!0&&Ep();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(M.useProxies=t===uo?!0:t===Fp?!1:typeof Proxy<"u"),t==="ifavailable"&&(M.verifyProxies=!0),r!==void 0){var n=r===uo?uo:r===zp;M.enforceActions=n,M.allowStateChanges=!(n===!0||n===uo)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in e&&(M[o]=!!e[o])}),M.allowStateReads=!M.observableRequiresReaction,S.NODE_ENV!=="production"&&M.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&Ap(e.reactionScheduler)}function Wp(e,t,r,n){S.NODE_ENV!=="production"&&(arguments.length>4&&z("'extendObservable' expected 2-4 arguments"),typeof e!="object"&&z("'extendObservable' expects an object as first argument"),Yt(e)&&z("'extendObservable' should not be used on maps, use map.merge instead"),yt(t)||z("'extendObservable' only accepts plain objects as second argument"),(un(t)||un(r))&&z("Extending an object with another observable (object) is not supported"));var o=wd(t);return gr(function(){var i=Hr(e,n)[ue];qn(o).forEach(function(a){i.extend_(a,o[a],r&&a in r?r[a]:!0)})}),e}function Ys(e,t){return Gs(Dr(e,t))}function Gs(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=qp(e.observing_).map(Gs)),t}function qp(e){return Array.from(new Set(e))}var Yp=0;function Zs(){this.message="FLOW_CANCELLED"}Zs.prototype=Object.create(Error.prototype);var xi=ws("flow"),Gp=ws("flow.bound",{bound:!0}),kr=Object.assign(function(t,r){if(rn(r))return xi.decorate_20223_(t,r);if(sr(r))return tn(t,r,xi);S.NODE_ENV!=="production"&&arguments.length!==1&&z("Flow expects single argument with generator function");var n=t,o=n.name||"<unnamed flow>",i=function(){var s=this,u=arguments,c=++Yp,l=Pr(o+" - runid: "+c+" - init",n).apply(s,u),d,p=void 0,h=new Promise(function(b,_){var y=0;d=_;function O(C){p=void 0;var m;try{m=Pr(o+" - runid: "+c+" - yield "+y++,l.next).call(l,C)}catch(T){return _(T)}j(m)}function w(C){p=void 0;var m;try{m=Pr(o+" - runid: "+c+" - yield "+y++,l.throw).call(l,C)}catch(T){return _(T)}j(m)}function j(C){if(Ae(C==null?void 0:C.then)){C.then(j,_);return}return C.done?b(C.value):(p=Promise.resolve(C.value),p.then(O,w))}O(void 0)});return h.cancel=Pr(o+" - runid: "+c+" - cancel",function(){try{p&&Ks(p);var b=l.return(void 0),_=Promise.resolve(b.value);_.then(Lr,Lr),Ks(_),d(new Zs)}catch(y){d(y)}}),h};return i.isMobXFlow=!0,i},xi);kr.bound=_t(Gp);function Ks(e){Ae(e.cancel)&&e.cancel()}function sn(e){return(e==null?void 0:e.isMobXFlow)===!0}function Zp(e,t){return e?fn(e)||!!e[ue]||fi(e)||so(e)||ro(e):!1}function un(e){return S.NODE_ENV!=="production"&&arguments.length!==1&&z("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),Zp(e)}function Kp(){if(S.NODE_ENV!=="production"){for(var e=!1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];typeof r[r.length-1]=="boolean"&&(e=r.pop());var o=Xp(r);if(!o)return z("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Qe.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?Qe.BREAK:Qe.LOG}}function Xp(e){switch(e.length){case 0:return M.trackingDerivation;case 1:return Dr(e[0]);case 2:return Dr(e[0],e[1])}}function Ht(e,t){t===void 0&&(t=void 0),et();try{return e.apply(t)}finally{tt()}}function vr(e){return e[ue]}var Jp={has:function(t,r){return S.NODE_ENV!=="production"&&M.trackingDerivation&&en("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),vr(t).has_(r)},get:function(t,r){return vr(t).get_(r)},set:function(t,r,n){var o;return sr(r)?(S.NODE_ENV!=="production"&&!vr(t).values_.has(r)&&en("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(o=vr(t).set_(r,n,!0))!=null?o:!0):!1},deleteProperty:function(t,r){var n;return S.NODE_ENV!=="production"&&en("delete properties from an observable object. Use 'remove' from 'mobx' instead."),sr(r)?(n=vr(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var o;return S.NODE_ENV!=="production"&&en("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(o=vr(t).defineProperty_(r,n))!=null?o:!0},ownKeys:function(t){return S.NODE_ENV!=="production"&&M.trackingDerivation&&en("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),vr(t).ownKeys_()},preventExtensions:function(t){z(13)}};function Qp(e,t){var r,n;return ds(),e=Hr(e,t),(n=(r=e[ue]).proxy_)!=null?n:r.proxy_=new Proxy(e,Jp)}function rt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ln(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),ui(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function nt(e,t){var r=dr();try{for(var n=[].concat(e.interceptors_||[]),o=0,i=n.length;o<i&&(t=n[o](t),t&&!t.type&&z(14),!!t);o++);return t}finally{Nt(r)}}function ft(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function cn(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),ui(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function dt(e,t){var r=dr(),n=e.changeListeners_;if(n){n=n.slice();for(var o=0,i=n.length;o<i;o++)n[o](t);Nt(r)}}function e1(e,t,r){return gr(function(){var n,o=Hr(e,r)[ue];S.NODE_ENV!=="production"&&t&&e[De]&&z("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(n=t)!=null||(t=jd(e)),qn(t).forEach(function(i){return o.make_(i,t[i])})}),e}var Xs="splice",pt="update",t1=1e4,r1={get:function(t,r){var n=t[ue];return r===ue?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):Xe(lo,r)?lo[r]:t[r]},set:function(t,r,n){var o=t[ue];return r==="length"&&o.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:o.set_(parseInt(r),n),!0},preventExtensions:function(){z(15)}},Ci=function(){function e(r,n,o,i){r===void 0&&(r=S.NODE_ENV!=="production"?"ObservableArray@"+ct():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=o,this.legacyMode_=i,this.atom_=new Wt(r),this.enhancer_=function(a,s){return n(a,s,S.NODE_ENV!=="production"?r+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return ln(this,n)},t.observe_=function(n,o){return o===void 0&&(o=!1),o&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),cn(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&z("Out of range: "+n);var o=this.values_.length;if(n!==o)if(n>o){for(var i=new Array(n-o),a=0;a<n-o;a++)i[a]=void 0;this.spliceWithArray_(o,0,i)}else this.spliceWithArray_(n,o-n)},t.updateArrayLength_=function(n,o){n!==this.lastKnownLength_&&z(16),this.lastKnownLength_+=o,this.legacyMode_&&o>0&&cu(n+o+1)},t.spliceWithArray_=function(n,o,i){var a=this;wt(this.atom_);var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?o=s-n:o==null?o=0:o=Math.max(0,Math.min(o,s-n)),i===void 0&&(i=zn),rt(this)){var u=nt(this,{object:this.proxy_,type:Xs,index:n,removedCount:o,added:i});if(!u)return zn;o=u.removedCount,i=u.added}if(i=i.length===0?i:i.map(function(d){return a.enhancer_(d,void 0)}),this.legacyMode_||S.NODE_ENV!=="production"){var c=i.length-o;this.updateArrayLength_(s,c)}var l=this.spliceItemsIntoValues_(n,o,i);return(o!==0||i.length!==0)&&this.notifyArraySplice_(n,i,l),this.dehanceValues_(l)},t.spliceItemsIntoValues_=function(n,o,i){if(i.length<t1){var a;return(a=this.values_).splice.apply(a,[n,o].concat(i))}else{var s=this.values_.slice(n,n+o),u=this.values_.slice(n+o);this.values_.length+=i.length-o;for(var c=0;c<i.length;c++)this.values_[n+c]=i[c];for(var l=0;l<u.length;l++)this.values_[n+i.length+l]=u[l];return s}},t.notifyArrayChildUpdate_=function(n,o,i){var a=!this.owned_&&Ve(),s=ft(this),u=s||a?{observableKind:"array",object:this.proxy_,type:pt,debugObjectName:this.atom_.name_,index:n,newValue:o,oldValue:i}:null;S.NODE_ENV!=="production"&&a&&Ue(u),this.atom_.reportChanged(),s&&dt(this,u),S.NODE_ENV!=="production"&&a&&We()},t.notifyArraySplice_=function(n,o,i){var a=!this.owned_&&Ve(),s=ft(this),u=s||a?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Xs,index:n,removed:i,added:o,removedCount:i.length,addedCount:o.length}:null;S.NODE_ENV!=="production"&&a&&Ue(u),this.atom_.reportChanged(),s&&dt(this,u),S.NODE_ENV!=="production"&&a&&We()},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn(S.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+n+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,o){var i=this.values_;if(this.legacyMode_&&n>i.length&&z(17,n,i.length),n<i.length){wt(this.atom_);var a=i[n];if(rt(this)){var s=nt(this,{type:pt,object:this.proxy_,index:n,newValue:o});if(!s)return;o=s.newValue}o=this.enhancer_(o,a);var u=o!==a;u&&(i[n]=o,this.notifyArrayChildUpdate_(n,o,a))}else{for(var c=new Array(n+1-i.length),l=0;l<c.length-1;l++)c[l]=void 0;c[c.length-1]=o,this.spliceWithArray_(i.length,0,c)}},e}();function n1(e,t,r,n){return r===void 0&&(r=S.NODE_ENV!=="production"?"ObservableArray@"+ct():"ObservableArray"),n===void 0&&(n=!1),ds(),gr(function(){var o=new Ci(r,t,n,!1);vs(o.values_,ue,o);var i=new Proxy(o.values_,r1);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var lo={clear:function(){return this.splice(0)},replace:function(t){var r=this[ue];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a=this[ue];switch(arguments.length){case 0:return[];case 1:return a.spliceWithArray_(t);case 2:return a.spliceWithArray_(t,r)}return a.spliceWithArray_(t,r,o)},spliceWithArray:function(t,r,n){return this[ue].spliceWithArray_(t,r,n)},push:function(){for(var t=this[ue],r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[ue].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[ue],r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return M.trackingDerivation&&z(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){M.trackingDerivation&&z(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[ue],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};Ee("at",qe),Ee("concat",qe),Ee("flat",qe),Ee("includes",qe),Ee("indexOf",qe),Ee("join",qe),Ee("lastIndexOf",qe),Ee("slice",qe),Ee("toString",qe),Ee("toLocaleString",qe),Ee("toSorted",qe),Ee("toSpliced",qe),Ee("with",qe),Ee("every",vt),Ee("filter",vt),Ee("find",vt),Ee("findIndex",vt),Ee("findLast",vt),Ee("findLastIndex",vt),Ee("flatMap",vt),Ee("forEach",vt),Ee("map",vt),Ee("some",vt),Ee("toReversed",vt),Ee("reduce",Js),Ee("reduceRight",Js);function Ee(e,t){typeof Array.prototype[e]=="function"&&(lo[e]=t(e))}function qe(e){return function(){var t=this[ue];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function vt(e){return function(t,r){var n=this,o=this[ue];o.atom_.reportObserved();var i=o.dehanceValues_(o.values_);return i[e](function(a,s){return t.call(r,a,s,n)})}}function Js(e){return function(){var t=this,r=this[ue];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),o=arguments[0];return arguments[0]=function(i,a,s){return o(i,a,s,t)},n[e].apply(n,arguments)}}var o1=ur("ObservableArrayAdministration",Ci);function co(e){return Un(e)&&o1(e[ue])}var i1={},qt="add",fo="delete",Qs=function(){function e(r,n,o){var i=this;n===void 0&&(n=lr),o===void 0&&(o=S.NODE_ENV!=="production"?"ObservableMap@"+ct():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[ue]=i1,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=o,Ae(Map)||z(18),gr(function(){i.keysAtom_=ys(S.NODE_ENV!=="production"?i.name_+".keys()":"ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,r&&i.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var o=this;if(!M.trackingDerivation)return this.has_(n);var i=this.hasMap_.get(n);if(!i){var a=i=new fr(this.has_(n),Zn,S.NODE_ENV!=="production"?this.name_+"."+li(n)+"?":"ObservableMap.key?",!1);this.hasMap_.set(n,a),Ws(a,function(){return o.hasMap_.delete(n)})}return i.get()},t.set=function(n,o){var i=this.has_(n);if(rt(this)){var a=nt(this,{type:i?pt:qt,object:this,newValue:o,name:n});if(!a)return this;o=a.newValue}return i?this.updateValue_(n,o):this.addValue_(n,o),this},t.delete=function(n){var o=this;if(wt(this.keysAtom_),rt(this)){var i=nt(this,{type:fo,object:this,name:n});if(!i)return!1}if(this.has_(n)){var a=Ve(),s=ft(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:fo,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return S.NODE_ENV!=="production"&&a&&Ue(u),Ht(function(){var c;o.keysAtom_.reportChanged(),(c=o.hasMap_.get(n))==null||c.setNewValue_(!1);var l=o.data_.get(n);l.setNewValue_(void 0),o.data_.delete(n)}),s&&dt(this,u),S.NODE_ENV!=="production"&&a&&We(),!0}return!1},t.updateValue_=function(n,o){var i=this.data_.get(n);if(o=i.prepareNewValue_(o),o!==M.UNCHANGED){var a=Ve(),s=ft(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:pt,object:this,oldValue:i.value_,name:n,newValue:o}:null;S.NODE_ENV!=="production"&&a&&Ue(u),i.setNewValue_(o),s&&dt(this,u),S.NODE_ENV!=="production"&&a&&We()}},t.addValue_=function(n,o){var i=this;wt(this.keysAtom_),Ht(function(){var c,l=new fr(o,i.enhancer_,S.NODE_ENV!=="production"?i.name_+"."+li(n):"ObservableMap.key",!1);i.data_.set(n,l),o=l.value_,(c=i.hasMap_.get(n))==null||c.setNewValue_(!0),i.keysAtom_.reportChanged()});var a=Ve(),s=ft(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:qt,object:this,name:n,newValue:o}:null;S.NODE_ENV!=="production"&&a&&Ue(u),s&&dt(this,u),S.NODE_ENV!=="production"&&a&&We()},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,o=this.keys();return eu({next:function(){var a=o.next(),s=a.done,u=a.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,o=this.keys();return eu({next:function(){var a=o.next(),s=a.done,u=a.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,o){for(var i=Mr(this),a;!(a=i()).done;){var s=a.value,u=s[0],c=s[1];n.call(o,c,u,this)}},t.merge=function(n){var o=this;return Yt(n)&&(n=new Map(n)),Ht(function(){yt(n)?_d(n).forEach(function(i){return o.set(i,n[i])}):Array.isArray(n)?n.forEach(function(i){var a=i[0],s=i[1];return o.set(a,s)}):Tr(n)?(yd(n)||z(19,n),n.forEach(function(i,a){return o.set(a,i)})):n!=null&&z(20,n)}),this},t.clear=function(){var n=this;Ht(function(){Ms(function(){for(var o=Mr(n.keys()),i;!(i=o()).done;){var a=i.value;n.delete(a)}})})},t.replace=function(n){var o=this;return Ht(function(){for(var i=a1(n),a=new Map,s=!1,u=Mr(o.data_.keys()),c;!(c=u()).done;){var l=c.value;if(!i.has(l)){var d=o.delete(l);if(d)s=!0;else{var p=o.data_.get(l);a.set(l,p)}}}for(var h=Mr(i.entries()),b;!(b=h()).done;){var _=b.value,y=_[0],O=_[1],w=o.data_.has(y);if(o.set(y,O),o.data_.has(y)){var j=o.data_.get(y);a.set(y,j),w||(s=!0)}}if(!s)if(o.data_.size!==a.size)o.keysAtom_.reportChanged();else for(var C=o.data_.keys(),m=a.keys(),T=C.next(),N=m.next();!T.done;){if(T.value!==N.value){o.keysAtom_.reportChanged();break}T=C.next(),N=m.next()}o.data_=a}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,o){return S.NODE_ENV!=="production"&&o===!0&&z("`observe` doesn't support fireImmediately=true in combination with maps."),cn(this,n)},t.intercept_=function(n){return ln(this,n)},Vr(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Yt=ur("ObservableMap",Qs);function eu(e){return e[Symbol.toStringTag]="MapIterator",Vi(e)}function a1(e){if(Tr(e)||Yt(e))return e;if(Array.isArray(e))return new Map(e);if(yt(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return z(21,e)}var s1={},tu=function(){function e(r,n,o){var i=this;n===void 0&&(n=lr),o===void 0&&(o=S.NODE_ENV!=="production"?"ObservableSet@"+ct():"ObservableSet"),this.name_=void 0,this[ue]=s1,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=o,Ae(Set)||z(22),this.enhancer_=function(a,s){return n(a,s,o)},gr(function(){i.atom_=ys(i.name_),r&&i.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;Ht(function(){Ms(function(){for(var o=Mr(n.data_.values()),i;!(i=o()).done;){var a=i.value;n.delete(a)}})})},t.forEach=function(n,o){for(var i=Mr(this),a;!(a=i()).done;){var s=a.value;n.call(o,s,s,this)}},t.add=function(n){var o=this;if(wt(this.atom_),rt(this)){var i=nt(this,{type:qt,object:this,newValue:n});if(!i)return this}if(!this.has(n)){Ht(function(){o.data_.add(o.enhancer_(n,void 0)),o.atom_.reportChanged()});var a=S.NODE_ENV!=="production"&&Ve(),s=ft(this),u=s||a?{observableKind:"set",debugObjectName:this.name_,type:qt,object:this,newValue:n}:null;a&&S.NODE_ENV!=="production"&&Ue(u),s&&dt(this,u),a&&S.NODE_ENV!=="production"&&We()}return this},t.delete=function(n){var o=this;if(rt(this)){var i=nt(this,{type:fo,object:this,oldValue:n});if(!i)return!1}if(this.has(n)){var a=S.NODE_ENV!=="production"&&Ve(),s=ft(this),u=s||a?{observableKind:"set",debugObjectName:this.name_,type:fo,object:this,oldValue:n}:null;return a&&S.NODE_ENV!=="production"&&Ue(u),Ht(function(){o.atom_.reportChanged(),o.data_.delete(n)}),s&&dt(this,u),a&&S.NODE_ENV!=="production"&&We(),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,o=Array.from(this.keys()),i=Array.from(this.values());return ru({next:function(){var s=n;return n+=1,s<i.length?{value:[o[s],i[s]],done:!1}:{value:void 0,done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,o=0,i=Array.from(this.data_.values());return ru({next:function(){return o<i.length?{value:n.dehanceValue_(i[o++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(n){if(Mt(n)&&!Ot(n))return n.intersection(this);var o=new Set(this);return o.intersection(n)},t.union=function(n){if(Mt(n)&&!Ot(n))return n.union(this);var o=new Set(this);return o.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(Mt(n)&&!Ot(n))return n.symmetricDifference(this);var o=new Set(this);return o.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(Mt(n)&&!Ot(n))return n.isDisjointFrom(this);var o=new Set(this);return o.isDisjointFrom(n)},t.replace=function(n){var o=this;return Ot(n)&&(n=new Set(n)),Ht(function(){Array.isArray(n)?(o.clear(),n.forEach(function(i){return o.add(i)})):Mt(n)?(o.clear(),n.forEach(function(i){return o.add(i)})):n!=null&&z("Cannot initialize set from "+n)}),this},t.observe_=function(n,o){return S.NODE_ENV!=="production"&&o===!0&&z("`observe` doesn't support fireImmediately=true in combination with sets."),cn(this,n)},t.intercept_=function(n){return ln(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Vr(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Ot=ur("ObservableSet",tu);function ru(e){return e[Symbol.toStringTag]="SetIterator",Vi(e)}var nu=Object.create(null),ou="remove",Si=function(){function e(r,n,o,i){n===void 0&&(n=new Map),i===void 0&&(i=Jd),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=r,this.values_=n,this.name_=o,this.defaultAnnotation_=i,this.keysAtom_=new Wt(S.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=yt(this.target_),S.NODE_ENV!=="production"&&!gu(this.defaultAnnotation_)&&z("defaultAnnotation must be valid annotation"),S.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,o){var i=this.values_.get(n);if(i instanceof Je)return i.set(o),!0;if(rt(this)){var a=nt(this,{type:pt,object:this.proxy_||this.target_,name:n,newValue:o});if(!a)return null;o=a.newValue}if(o=i.prepareNewValue_(o),o!==M.UNCHANGED){var s=ft(this),u=S.NODE_ENV!=="production"&&Ve(),c=s||u?{type:pt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:i.value_,name:n,newValue:o}:null;S.NODE_ENV!=="production"&&u&&Ue(c),i.setNewValue_(o),s&&dt(this,c),S.NODE_ENV!=="production"&&u&&We()}return!0},t.get_=function(n){return M.trackingDerivation&&!Xe(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,o,i){return i===void 0&&(i=!1),Xe(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,o):i?Reflect.set(this.target_,n,o):(this.target_[n]=o,!0):this.extend_(n,{value:o,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(n){if(!M.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var o=this.pendingKeys_.get(n);return o||(o=new fr(n in this.target_,Zn,S.NODE_ENV!=="production"?this.name_+"."+li(n)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(n,o)),o.get()},t.make_=function(n,o){if(o===!0&&(o=this.defaultAnnotation_),o!==!1){if(su(this,o,n),!(n in this.target_)){var i;if((i=this.target_[De])!=null&&i[n])return;z(1,o.annotationType_,this.name_+"."+n.toString())}for(var a=this.target_;a&&a!==Fn;){var s=In(a,n);if(s){var u=o.make_(this,n,s,a);if(u===0)return;if(u===1)break}a=Object.getPrototypeOf(a)}au(this,o,n)}},t.extend_=function(n,o,i,a){if(a===void 0&&(a=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(n,o,a);su(this,i,n);var s=i.extend_(this,n,o,a);return s&&au(this,i,n),s},t.defineProperty_=function(n,o,i){i===void 0&&(i=!1),wt(this.keysAtom_);try{et();var a=this.delete_(n);if(!a)return a;if(rt(this)){var s=nt(this,{object:this.proxy_||this.target_,name:n,type:qt,newValue:o.value});if(!s)return null;var u=s.newValue;o.value!==u&&(o=Pt({},o,{value:u}))}if(i){if(!Reflect.defineProperty(this.target_,n,o))return!1}else bt(this.target_,n,o);this.notifyPropertyAddition_(n,o.value)}finally{tt()}return!0},t.defineObservableProperty_=function(n,o,i,a){a===void 0&&(a=!1),wt(this.keysAtom_);try{et();var s=this.delete_(n);if(!s)return s;if(rt(this)){var u=nt(this,{object:this.proxy_||this.target_,name:n,type:qt,newValue:o});if(!u)return null;o=u.newValue}var c=iu(n),l={configurable:M.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:c.get,set:c.set};if(a){if(!Reflect.defineProperty(this.target_,n,l))return!1}else bt(this.target_,n,l);var d=new fr(o,i,S.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key",!1);this.values_.set(n,d),this.notifyPropertyAddition_(n,d.value_)}finally{tt()}return!0},t.defineComputedProperty_=function(n,o,i){i===void 0&&(i=!1),wt(this.keysAtom_);try{et();var a=this.delete_(n);if(!a)return a;if(rt(this)){var s=nt(this,{object:this.proxy_||this.target_,name:n,type:qt,newValue:void 0});if(!s)return null}o.name||(o.name=S.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key"),o.context=this.proxy_||this.target_;var u=iu(n),c={configurable:M.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(i){if(!Reflect.defineProperty(this.target_,n,c))return!1}else bt(this.target_,n,c);this.values_.set(n,new Je(o)),this.notifyPropertyAddition_(n,void 0)}finally{tt()}return!0},t.delete_=function(n,o){if(o===void 0&&(o=!1),wt(this.keysAtom_),!Xe(this.target_,n))return!0;if(rt(this)){var i=nt(this,{object:this.proxy_||this.target_,name:n,type:ou});if(!i)return null}try{var a;et();var s=ft(this),u=S.NODE_ENV!=="production"&&Ve(),c=this.values_.get(n),l=void 0;if(!c&&(s||u)){var d;l=(d=In(this.target_,n))==null?void 0:d.value}if(o){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(S.NODE_ENV!=="production"&&delete this.appliedAnnotations_[n],c&&(this.values_.delete(n),c instanceof fr&&(l=c.value_),Rs(c)),this.keysAtom_.reportChanged(),(a=this.pendingKeys_)==null||(a=a.get(n))==null||a.set(n in this.target_),s||u){var p={type:ou,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:l,name:n};S.NODE_ENV!=="production"&&u&&Ue(p),s&&dt(this,p),S.NODE_ENV!=="production"&&u&&We()}}finally{tt()}return!0},t.observe_=function(n,o){return S.NODE_ENV!=="production"&&o===!0&&z("`observe` doesn't support the fire immediately property for observable objects."),cn(this,n)},t.intercept_=function(n){return ln(this,n)},t.notifyPropertyAddition_=function(n,o){var i,a=ft(this),s=S.NODE_ENV!=="production"&&Ve();if(a||s){var u=a||s?{type:qt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:o}:null;S.NODE_ENV!=="production"&&s&&Ue(u),a&&dt(this,u),S.NODE_ENV!=="production"&&s&&We()}(i=this.pendingKeys_)==null||(i=i.get(n))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),qn(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Hr(e,t){var r;if(S.NODE_ENV!=="production"&&t&&fn(e)&&z("Options can't be provided for already observable objects."),Xe(e,ue))return S.NODE_ENV!=="production"&&!(fu(e)instanceof Si)&&z("Cannot convert '"+po(e)+`' into observable object:
|
|
78
|
+
The target is already observable of different type.
|
|
79
|
+
Extending builtins is not supported.`),e;S.NODE_ENV!=="production"&&!Object.isExtensible(e)&&z("Cannot make the designated object observable; it is not extensible");var n=(r=t==null?void 0:t.name)!=null?r:S.NODE_ENV!=="production"?(yt(e)?"ObservableObject":e.constructor.name)+"@"+ct():"ObservableObject",o=new Si(e,new Map,String(n),lp(t));return Wn(e,ue,o),e}var u1=ur("ObservableObjectAdministration",Si);function iu(e){return nu[e]||(nu[e]={get:function(){return this[ue].getObservablePropValue_(e)},set:function(r){return this[ue].setObservablePropValue_(e,r)}})}function fn(e){return Un(e)?u1(e[ue]):!1}function au(e,t,r){var n;S.NODE_ENV!=="production"&&(e.appliedAnnotations_[r]=t),(n=e.target_[De])==null||delete n[r]}function su(e,t,r){if(S.NODE_ENV!=="production"&&!gu(t)&&z("Cannot annotate '"+e.name_+"."+r.toString()+"': Invalid annotation."),S.NODE_ENV!=="production"&&!Kn(t)&&Xe(e.appliedAnnotations_,r)){var n=e.name_+"."+r.toString(),o=e.appliedAnnotations_[r].annotationType_,i=t.annotationType_;z("Cannot apply '"+i+"' to '"+n+"':"+(`
|
|
80
|
+
The field is already annotated with '`+o+"'.")+`
|
|
81
|
+
Re-annotating fields is not allowed.
|
|
82
|
+
Use 'override' annotation for methods overridden by subclass.`)}}var l1=lu(0),c1=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),ji=0,uu=function(){};function f1(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}f1(uu,Array.prototype);var Ai=function(e){function t(n,o,i,a){var s;return i===void 0&&(i=S.NODE_ENV!=="production"?"ObservableArray@"+ct():"ObservableArray"),a===void 0&&(a=!1),s=e.call(this)||this,gr(function(){var u=new Ci(i,o,a,!0);u.proxy_=s,vs(s,ue,u),n&&n.length&&s.spliceWithArray(0,0,n),c1&&Object.defineProperty(s,"0",l1)}),s}bs(t,e);var r=t.prototype;return r.concat=function(){this[ue].atom_.reportObserved();for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Array.prototype.concat.apply(this.slice(),i.map(function(s){return co(s)?s.slice():s}))},r[Symbol.iterator]=function(){var n=this,o=0;return Vi({next:function(){return o<n.length?{value:n[o++],done:!1}:{done:!0,value:void 0}}})},Vr(t,[{key:"length",get:function(){return this[ue].getArrayLength_()},set:function(o){this[ue].setArrayLength_(o)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(uu);Object.entries(lo).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&Wn(Ai.prototype,t,r)});function lu(e){return{enumerable:!1,configurable:!0,get:function(){return this[ue].get_(e)},set:function(r){this[ue].set_(e,r)}}}function d1(e){bt(Ai.prototype,""+e,lu(e))}function cu(e){if(e>ji){for(var t=ji;t<e+100;t++)d1(t);ji=e}}cu(1e3);function p1(e,t,r){return new Ai(e,t,r)}function Dr(e,t){if(typeof e=="object"&&e!==null){if(co(e))return t!==void 0&&z(23),e[ue].atom_;if(Ot(e))return e.atom_;if(Yt(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||z(25,t,po(e)),r}if(fn(e)){if(!t)return z(26);var n=e[ue].values_.get(t);return n||z(27,t,po(e)),n}if(fi(e)||ro(e)||so(e))return e}else if(Ae(e)&&so(e[ue]))return e[ue];z(28)}function fu(e,t){if(e||z(29),fi(e)||ro(e)||so(e)||Yt(e)||Ot(e))return e;if(e[ue])return e[ue];z(24,e)}function po(e,t){var r;if(t!==void 0)r=Dr(e,t);else{if(Nr(e))return e.name;fn(e)||Yt(e)||Ot(e)?r=fu(e):r=Dr(e)}return r.name_}function gr(e){var t=dr(),r=gi(!0);et();try{return e()}finally{tt(),hi(r),Nt(t)}}var du=Fn.toString;function Li(e,t,r){return r===void 0&&(r=-1),Ti(e,t,r)}function Ti(e,t,r,n,o){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var a=du.call(e);if(a!==du.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=pu(e),t=pu(t);var s=a==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!(Ae(u)&&u instanceof u&&Ae(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],o=o||[];for(var l=n.length;l--;)if(n[l]===e)return o[l]===t;if(n.push(e),o.push(t),s){if(l=e.length,l!==t.length)return!1;for(;l--;)if(!Ti(e[l],t[l],r-1,n,o))return!1}else{var d=Object.keys(e),p;if(l=d.length,Object.keys(t).length!==l)return!1;for(;l--;)if(p=d[l],!(Xe(t,p)&&Ti(e[p],t[p],r-1,n,o)))return!1}return n.pop(),o.pop(),!0}function pu(e){return co(e)?e.slice():Tr(e)||Yt(e)||Mt(e)||Ot(e)?Array.from(e.entries()):e}var vu,v1=((vu=Bn().Iterator)==null?void 0:vu.prototype)||{};function Vi(e){return e[Symbol.iterator]=g1,Object.assign(Object.create(v1),e)}function g1(){return this}function gu(e){return e instanceof Object&&typeof e.annotationType_=="string"&&Ae(e.make_)&&Ae(e.extend_)}if(["Symbol","Map","Set"].forEach(function(e){var t=Bn();typeof t[e]>"u"&&z("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Tp,extras:{getDebugName:po},$mobx:ue}),!g.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!e1)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var h1={};function m1(e){e()}function b1(e){e||(e=m1,h1.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),Up({reactionScheduler:e})}function y1(e){return Ys(e)}var _1=1e4,w1=1e4,O1=function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(n){n===void 0&&(n=_1),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var o=Date.now();r.registrations.forEach(function(i,a){o-i.registeredAt>=n&&(r.finalize(i.value),r.registrations.delete(a))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,w1))}}),e}(),E1=typeof FinalizationRegistry<"u"?FinalizationRegistry:O1,Mi=new E1(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Pi={exports:{}},Ni={};/**
|
|
83
|
+
* @license React
|
|
84
|
+
* use-sync-external-store-shim.production.min.js
|
|
85
|
+
*
|
|
86
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the MIT license found in the
|
|
89
|
+
* LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/var hu;function x1(){if(hu)return Ni;hu=1;var e=g;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var h=p(),b=n({inst:{value:h,getSnapshot:p}}),_=b[0].inst,y=b[1];return i(function(){_.value=h,_.getSnapshot=p,u(_)&&y({inst:_})},[d,h,p]),o(function(){return u(_)&&y({inst:_}),d(function(){u(_)&&y({inst:_})})},[d]),a(h),h}function u(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!r(d,h)}catch{return!0}}function c(d,p){return p()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Ni.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,Ni}var ki={},mu;function C1(){if(mu)return ki;mu=1;var e={};/**
|
|
91
|
+
* @license React
|
|
92
|
+
* use-sync-external-store-shim.development.js
|
|
93
|
+
*
|
|
94
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the MIT license found in the
|
|
97
|
+
* LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/return e.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=g,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(C){{for(var m=arguments.length,T=new Array(m>1?m-1:0),N=1;N<m;N++)T[N-1]=arguments[N];o("error",C,T)}}function o(C,m,T){{var N=r.ReactDebugCurrentFrame,Z=N.getStackAddendum();Z!==""&&(m+="%s",T=T.concat([Z]));var R=T.map(function(H){return String(H)});R.unshift("Warning: "+m),Function.prototype.apply.call(console[C],console,R)}}function i(C,m){return C===m&&(C!==0||1/C===1/m)||C!==C&&m!==m}var a=typeof Object.is=="function"?Object.is:i,s=t.useState,u=t.useEffect,c=t.useLayoutEffect,l=t.useDebugValue,d=!1,p=!1;function h(C,m,T){d||t.startTransition!==void 0&&(d=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var N=m();if(!p){var Z=m();a(N,Z)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}var R=s({inst:{value:N,getSnapshot:m}}),H=R[0].inst,X=R[1];return c(function(){H.value=N,H.getSnapshot=m,b(H)&&X({inst:H})},[C,N,m]),u(function(){b(H)&&X({inst:H});var ee=function(){b(H)&&X({inst:H})};return C(ee)},[C]),l(N),N}function b(C){var m=C.getSnapshot,T=C.value;try{var N=m();return!a(T,N)}catch{return!0}}function _(C,m,T){return m()}var y=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",O=!y,w=O?_:h,j=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:w;ki.useSyncExternalStore=j,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ki}var S1={};S1.NODE_ENV==="production"?Pi.exports=x1():Pi.exports=C1();var j1=Pi.exports;function bu(e){e.reaction=new kt("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function A1(e,t){t===void 0&&(t="observed");var r=g.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(s){return Mi.unregister(n),n.onStoreChange=s,n.reaction||(bu(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)===null||u===void 0||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var o=r.current;o.reaction||(bu(o),Mi.register(r,o,o)),g.useDebugValue(o.reaction,y1),j1.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot);var i,a;if(o.reaction.track(function(){try{i=e()}catch(s){a=s}}),a)throw a;return i}var yu={},Hi,Di,_u=!0,wu=typeof Symbol=="function"&&Symbol.for,L1=(Di=(Hi=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Hi===void 0?void 0:Hi.configurable)!==null&&Di!==void 0?Di:!1,Ou=wu?Symbol.for("react.forward_ref"):typeof g.forwardRef=="function"&&g.forwardRef(function(e){return null}).$$typeof,Eu=wu?Symbol.for("react.memo"):typeof g.memo=="function"&&g.memo(function(e){return null}).$$typeof;function dn(e,t){var r;if(yu.NODE_ENV!=="production"&&_u&&t&&(_u=!1,console.warn("[mobx-react-lite] `observer(fn, { forwardRef: true })` is deprecated, use `observer(React.forwardRef(fn))`")),Eu&&e.$$typeof===Eu)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,o=e,i=e.displayName||e.name;if(Ou&&e.$$typeof===Ou&&(n=!0,o=e.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a=function(s,u){return A1(function(){return o(s,u)},i)};return a.displayName=e.displayName,L1&&Object.defineProperty(a,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(a.contextTypes=e.contextTypes),n&&(a=g.forwardRef(a)),a=g.memo(a),V1(e,a),yu.NODE_ENV!=="production"&&Object.defineProperty(a,"contextTypes",{set:function(){var s,u;throw new Error("[mobx-react-lite] `".concat(this.displayName||((s=this.type)===null||s===void 0?void 0:s.displayName)||((u=this.type)===null||u===void 0?void 0:u.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),a}var T1={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function V1(e,t){Object.keys(e).forEach(function(r){T1[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}var Ri;b1(Hn.unstable_batchedUpdates),Ri=Mi.finalizeAllImmediately;const xu=new Set,Ye=new WeakMap,Rr=new WeakMap,hr=new WeakMap,$i=new WeakMap,M1=new WeakMap,$r=new WeakMap,vo=new WeakMap;let Gt;const mr="__aa_tgt",Bi="__aa_del",P1=e=>{const t=R1(e);t&&t.forEach(r=>$1(r))},N1=e=>{e.forEach(t=>{t.target===Gt&&H1(),Ye.has(t.target)&&br(t.target)})};function k1(e){const t=$i.get(e);t==null||t.disconnect();let r=Ye.get(e),n=0;const o=5;r||(r=Ir(e),Ye.set(e,r));const{offsetWidth:i,offsetHeight:a}=Gt,u=[r.top-o,i-(r.left+o+r.width),a-(r.top+o+r.height),r.left-o].map(l=>`${-1*Math.floor(l)}px`).join(" "),c=new IntersectionObserver(()=>{++n>1&&br(e)},{root:Gt,threshold:1,rootMargin:u});c.observe(e),$i.set(e,c)}function br(e){clearTimeout(vo.get(e));const t=go(e),r=typeof t=="function"?500:t.duration;vo.set(e,setTimeout(()=>{const n=hr.get(e);(!n||n.finished)&&(Ye.set(e,Ir(e)),k1(e))},r))}function H1(){clearTimeout(vo.get(Gt)),vo.set(Gt,setTimeout(()=>{xu.forEach(e=>ju(e,t=>Cu(()=>br(t))))},100))}function D1(e){setTimeout(()=>{M1.set(e,setInterval(()=>Cu(br.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function Cu(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let Ii,Br;typeof window<"u"&&(Gt=document.documentElement,Ii=new MutationObserver(P1),Br=new ResizeObserver(N1),Br.observe(Gt));function R1(e){return e.reduce((t,r)=>{if(t===!1)return!1;if(r.target instanceof Element){if(Fi(r.target),!t.has(r.target)){t.add(r.target);for(let n=0;n<r.target.children.length;n++){const o=r.target.children.item(n);if(o){if(Bi in o)return!1;Fi(r.target,o),t.add(o)}}}if(r.removedNodes.length)for(let n=0;n<r.removedNodes.length;n++){const o=r.removedNodes[n];if(Bi in o)return!1;o instanceof Element&&(t.add(o),Fi(r.target,o),Rr.set(o,[r.previousSibling,r.nextSibling]))}}return t},new Set)}function Fi(e,t){!t&&!(mr in e)?Object.defineProperty(e,mr,{value:e}):t&&!(mr in t)&&Object.defineProperty(t,mr,{value:e})}function $1(e){var t;const r=Gt.contains(e),n=Ye.has(e);r&&Rr.has(e)&&Rr.delete(e),hr.has(e)&&((t=hr.get(e))===null||t===void 0||t.cancel()),n&&r?B1(e):n&&!r?F1(e):I1(e)}function Et(e){return Number(e.replace(/[^0-9.\-]/g,""))}function Ir(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX,width:t.width,height:t.height}}function Su(e,t,r){let n=t.width,o=t.height,i=r.width,a=r.height;const s=getComputedStyle(e);if(s.getPropertyValue("box-sizing")==="content-box"){const c=Et(s.paddingTop)+Et(s.paddingBottom)+Et(s.borderTopWidth)+Et(s.borderBottomWidth),l=Et(s.paddingLeft)+Et(s.paddingRight)+Et(s.borderRightWidth)+Et(s.borderLeftWidth);n-=l,i-=l,o-=c,a-=c}return[n,i,o,a].map(Math.round)}function go(e){return mr in e&&$r.has(e[mr])?$r.get(e[mr]):{duration:250,easing:"ease-in-out"}}function ju(e,...t){t.forEach(r=>r(e,$r.has(e)));for(let r=0;r<e.children.length;r++){const n=e.children.item(r);n&&t.forEach(o=>o(n,$r.has(n)))}}function B1(e){const t=Ye.get(e),r=Ir(e);let n;if(!t)return;const o=go(e);if(typeof o!="function"){const i=t.left-r.left,a=t.top-r.top,[s,u,c,l]=Su(e,t,r),d={transform:`translate(${i}px, ${a}px)`},p={transform:"translate(0, 0)"};s!==u&&(d.width=`${s}px`,p.width=`${u}px`),c!==l&&(d.height=`${c}px`,p.height=`${l}px`),n=e.animate([d,p],o)}else n=new Animation(o(e,"remain",t,r)),n.play();hr.set(e,n),Ye.set(e,r),n.addEventListener("finish",br.bind(null,e))}function I1(e){const t=Ir(e);Ye.set(e,t);const r=go(e);let n;typeof r!="function"?n=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:r.duration*1.5,easing:"ease-in"}):(n=new Animation(r(e,"add",t)),n.play()),hr.set(e,n),n.addEventListener("finish",br.bind(null,e))}function F1(e){if(!Rr.has(e)||!Ye.has(e))return;const[t,r]=Rr.get(e);Object.defineProperty(e,Bi,{value:!0}),r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):t&&t.parentNode&&t.parentNode.appendChild(e);const[n,o,i,a]=z1(e),s=go(e),u=Ye.get(e);let c;Object.assign(e.style,{position:"absolute",top:`${n}px`,left:`${o}px`,width:`${i}px`,height:`${a}px`,margin:0,pointerEvents:"none",transformOrigin:"center",zIndex:100}),typeof s!="function"?c=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:s.duration,easing:"ease-out"}):(c=new Animation(s(e,"remove",u)),c.play()),hr.set(e,c),c.addEventListener("finish",()=>{var l;e.remove(),Ye.delete(e),Rr.delete(e),hr.delete(e),(l=$i.get(e))===null||l===void 0||l.disconnect()})}function z1(e){const t=Ye.get(e),[r,,n]=Su(e,t,Ir(e));let o=e.parentElement;for(;o&&(getComputedStyle(o).position==="static"||o instanceof HTMLBodyElement);)o=o.parentElement;o||(o=document.body);const i=getComputedStyle(o),a=Ye.get(o)||Ir(o),s=Math.round(t.top-a.top)-Et(i.borderTopWidth),u=Math.round(t.left-a.left)-Et(i.borderLeftWidth);return[s,u,r,n]}function U1(e,t={}){Ii&&Br&&(getComputedStyle(e).position==="static"&&Object.assign(e.style,{position:"relative"}),ju(e,br,D1,r=>Br==null?void 0:Br.observe(r)),typeof t=="function"?$r.set(e,t):$r.set(e,{duration:250,easing:"ease-in-out",...t}),Ii.observe(e,{childList:!0}),xu.add(e))}function W1(e){const t=g.useRef(null);return g.useEffect(()=>{t.current instanceof HTMLElement&&U1(t.current,e)},[t]),t}const be=ge;function ge(...e){return(Array.isArray(e[0])?e[0]:[...e]).filter(Boolean).flatMap(o=>typeof o=="string"?o.split(" ").map(i=>{if(i=i.replace(/gjs-/g,"gs-utl-"),!i.includes("gs-utl-")&&!i.startsWith("gs-")){const a=i.split(":"),s=a.pop(),u=a.join(":"),c=s==null?void 0:s.startsWith("!"),d=`gs-utl-${c?s==null?void 0:s.slice(1):s}`,p=c?`!${d}`:d;return u?`${u}:${p}`:p}return i}):o).join(" ")}const Ce=g.forwardRef(function({as:t,children:r,className:n,col:o,revert:i,full:a,nowrap:s,space:u,justify:c,items:l,...d},p){const h=t||"div";return L.jsx(h,{ref:p,className:ge(["gs-utl-flex",n,o&&!i&&"gs-utl-flex-col",o&&i&&"gs-utl-flex-col-reverse",!o&&i&&"gs-utl-flex-row-reverse",a&&!o&&"gs-utl-w-full",a&&o&&"gs-utl-h-full",s?"gs-utl-flex-nowrap":"gs-utl-flex-wrap",u==="x2s"&&(o?"gs-utl-space-y-0.5":"gs-utl-space-x-0.5"),u==="xs"&&(o?"gs-utl-space-y-1":"gs-utl-space-x-1"),u==="s"&&(o?"gs-utl-space-y-2":"gs-utl-space-x-2"),u==="m"&&(o?"gs-utl-space-y-4":"gs-utl-space-x-4"),u==="l"&&(o?"gs-utl-space-y-6":"gs-utl-space-x-6"),u==="xl"&&(o?"gs-utl-space-y-8":"gs-utl-space-x-8"),l==="start"&&"gs-utl-items-start",l==="end"&&"gs-utl-items-end",l==="center"&&"gs-utl-items-center",c==="start"&&"gs-utl-justify-start",c==="end"&&"gs-utl-justify-end",c==="center"&&"gs-utl-justify-center",c==="between"&&"gs-utl-justify-between"]),...d,children:r})}),le=g.forwardRef(function({children:t,className:r,grow:n,...o},i){return L.jsx("div",{ref:i,className:ge([r,n&&"flex-1"]),...o,children:t})}),q1=150,ye={bgTr:"gs-utl-bg-transparent",txt:"gs-theme-cl-txt gs-utl-text-gray-900 dark:gs-utl-text-gray-400",txtLowEmphasis:"gs-utl-text-neutral-500 dark:gs-utl-text-neutral-500",txtHighEmphasis:"gs-utl-text-black dark:gs-utl-text-gray-200",txtHighEmphasisH:"hover:gs-utl-text-black hover:dark:gs-utl-text-gray-200",tA:"gs-theme-cl-tA gs-utl-text-violet-400",tAo:"gs-theme-cl-tAo gs-utl-text-violet-800 dark:gs-utl-text-violet-400",hTAo:"gs-theme-cl-hTAo hover:gs-utl-text-violet-800 hover:dark:gs-utl-text-violet-400",grouphTAo:"gs-theme-cl-grouphTAo group-hover:gs-utl-text-violet-800 group-hover:dark:gs-utl-text-violet-400",bA:"gs-theme-cl-bA gs-utl-border-violet-400",bgA:"gs-theme-cl-bgA gs-utl-bg-violet-400 gs-utl-text-white dark:gs-utl-bg-violet-500",bgA2:"gs-theme-cl-bgA2 gs-utl-bg-violet-500 gs-utl-text-white",bgO:"gs-theme-cl-bg0 gs-utl-bg-violet-50 gs-utl-text-violet-900 dark:gs-utl-bg-zinc-800 dark:gs-utl-text-violet-400",bg:"gs-theme-cl-bg gs-utl-bg-white dark:gs-utl-bg-zinc-900",bgBlur:"gs-utl-bg-white/50 dark:gs-utl-bg-zinc-900/50 gs-utl-backdrop-blur-sm",bgH:"gs-theme-cl-bgH gs-utl-bg-gray-100 dark:gs-utl-bg-zinc-700",bgH75:"gs-utl-bg-gray-100/75 dark:gs-utl-bg-zinc-700/75",hBgH:"gs-theme-cl-hBgH hover:gs-utl-bg-gray-50 hover:dark:gs-utl-bg-zinc-800",bgH2:"gs-theme-cl-bgH2 gs-utl-bg-gray-25 dark:gs-utl-bg-zinc-800",hBgH2:"gs-theme-cl-hBgH2 hover:gs-utl-bg-gray-25 hover:dark:gs-utl-bg-zinc-800",hBgAct:"gs-theme-cl-hBgAct hover:gs-utl-bg-violet-800 hover:dark:gs-utl-bg-violet-400",hBgA2:"gs-theme-cl-hBgA2 hover:gs-utl-bg-violet-500 hover:dark:gs-utl-bg-violet-600",hBgDark:"hover:gs-utl-bg-black/10",sel:"gs-theme-cl-sel gs-utl-bg-pink-200 gs-utl-text-pink-900",selBr:"gs-theme-cl-selBr gs-utl-border-pink-900",cmp:"gs-theme-cl-cmp gs-utl-bg-blue-450 gs-utl-text-white",cmpSymbol:"gs-theme-cl-cmpSymbol gs-utl-bg-[#7b61ff] gs-utl-text-white",cmpBgSoft:"gs-theme-cl-cmpBgSoft gs-utl-bg-blue-100 dark:gs-utl-bg-sky-800",cmpBgSymbolSoft:"gs-theme-cl-cmpBgSymbolSoft gs-utl-bg-violet-200 dark:gs-utl-bg-violet-800",cmpBgSoftX:"gs-theme-cl-cmpBgSoftX gs-utl-bg-blue-50 dark:gs-utl-bg-gray-800",cmpBgSymbolSoftX:"gs-theme-cl-cmpBgSymbolSoftX gs-utl-bg-[#edebff] dark:gs-utl-bg-[#2d1b4b]",cmpTxtActive:"gs-theme-cl-cmpTxtActive dark:gs-utl-text-gray-300",cmpBr:"gs-theme-cl-cmpBr gs-utl-border-blue-450",cmpSymbolBr:"gs-theme-cl-cmpSymbolBr gs-utl-border-[#7b61ff]",cmpTargetBg:"gs-utl-bg-amber-500 gs-utl-text-white",cmpTargetBgOpac:"gs-utl-bg-amber-500/5",cmpTargetBr:"gs-utl-border-amber-500",tW:"gs-utl-text-amber-500",bgW:"gs-utl-bg-amber-500",bgRed:"gs-utl-bg-red-500",hBgRed:"hover:gs-utl-bg-red-600",hBgW:"hover:gs-utl-bg-amber-600",br:"gs-theme-cl-br gs-utl-border-gray-300 dark:gs-utl-border-zinc-700",brRed:"gs-utl-border-red-500",brLight:"gs-utl-border-white/25"},Y1={enter:"gs-utl-transition gs-utl-duration-100 gs-utl-ease-out",enterFrom:"gs-utl-scale-95 gs-utl-opacity-0",enterTo:"gs-utl-opacity-100",leave:"gs-utl-transition gs-utl-ease-in gs-utl-duration-100",leaveFrom:"gs-utl-scale-100 gs-utl-opacity-100",leaveTo:"gs-utl-scale-95 gs-utl-opacity-0"},G1={...{enter:"gs-utl-transition gs-utl-duration-100 gs-utl-ease-out",enterFrom:"gs-utl-opacity-0",enterTo:"gs-utl-opacity-100"},...{leave:"gs-utl-transition gs-utl-ease-in gs-utl-duration-100",leaveFrom:"gs-utl-opacity-100",leaveTo:"gs-utl-opacity-0"}},zi={xy:"gs-utl-px-4 gs-utl-py-2",xyS:"gs-utl-px-2 gs-utl-py-1",xyS2:"gs-utl-px-2 gs-utl-py-0.5",x:"gs-utl-px-4",xS:"gs-utl-px-2",y:"gs-utl-py-2",s:"gs-utl-p-2"},Z1={bg:ye.bg,bgH:ye.bgH},Au={bg:"gs-utl-bg-zinc-700",txt:"gs-utl-text-white",block:"gs-utl-text-xs gs-utl-mt-1 gs-utl-bg-white/10 gs-utl-rounded gs-utl-px-2 gs-utl-py-1"},ot={rnd:"gs-utl-rounded",pill:"gs-utl-rounded-full",b:"gs-utl-border",bT:"gs-utl-border-transparent",bS:"gs-utl-border-2",bt:"gs-utl-border-t",bb:"gs-utl-border-b",br:"gs-utl-border-r",bl:"gs-utl-border-l",bA:"gs-theme-cl-bA gs-utl-border-violet-400 dark:gs-utl-border-violet-500"},K1={focus:"gs-theme-ring-focus focus:gs-utl-outline-none focus-visible:gs-utl-ring-2 gs-utl-ring-violet-300 gs-utl-ring-opacity-80",deepFocus:"focus:gs-utl-outline-none [&:has(:focus-visible)]:gs-utl-ring-2 gs-utl-ring-violet-300 gs-utl-ring-opacity-80"},pn={s3x:"13px",s2x:"14px",sx:"16px",s:"18px"},Lu={click:"gs-utl-cursor-pointer gs-utl-transition-opacity gs-utl-opacity-75 hover:gs-utl-opacity-100",hover:"gs-utl-transition-opacity gs-utl-opacity-50 hover:gs-utl-opacity-100",hoverGroup:"group-hover:gs-utl-opacity-100 gs-utl-opacity-0 gs-utl-transition-opacity",dot:"gs-utl-w-[6px] gs-utl-h-[6px] gs-utl-rounded-full",scrollY:"gs-utl-overflow-y-auto gs-utl-overflow-x-hidden",txtEllips:"gs-utl-text-ellipsis gs-utl-overflow-hidden gs-utl-whitespace-nowrap",coverAbs:"gs-utl-absolute gs-utl-top-0 gs-utl-left-0 gs-utl-w-full gs-utl-h-full",disabled:"gs-utl-opacity-50 gs-utl-pointer-events-none",noFocusOut:"focus:gs-utl-outline-none",spin:"gs-utl-animate-spin-fast"},X1={link:ge(ye.tAo),inputText:"gs-theme-elStyles-inputText focus:gs-utl-outline-none gs-utl-placeholder:text-neutral-400 placeholder:dark:gs-utl-text-neutral-500"},J1=({variant:e,size:t="m",className:r,active:n,border:o=!0,rounded:i=!0,disabled:a=!1,withBg:s,block:u,full:c})=>{const l=e==="pr",d=e==="out",p=e==="out-clear",h=e==="warn",b=e==="danger",_=o&&(d||p||!e);return["gs-utl-transition-colors gs-utl-cursor-pointer",u&&"block",t==="s"&&"gjs-p-1 text-sm",t==="m"&&"gjs-p-1 gjs-px-2",t==="m2"&&"gjs-p-1 gjs-px-3",t==="lg"&&"gjs-p-2 gjs-px-4 text-lg",r,i&&ot.rnd,_&&`${ot.b} ${ye.br}`,s&&ye.bg,_&&ge(ot.b,d&&ye.bA,d&&ye.tAo,!a&&ye.hBgH),h&&ge(ye.bgW,ye.hBgW,!a&&ye.hBgW,"text-white"),b&&ge(ye.bgRed,!a&&ye.hBgRed,"text-white"),l&&ge(ye.bgA2,!a&&ye.hBgAct),n&&ye.bgA,a&&"disabled:gs-utl-opacity-80 cursor-not-allowed",c&&"w-full",K1.focus]};function Ui({children:e,...t}){const{variant:r,size:n,active:o,border:i,rounded:a,block:s,full:u,className:c,icon:l,loading:d,withBg:p,...h}=t,b=d?{icon:Nf,size:"18px",className:ge("animate-spin-fast")}:qa(l)?{icon:l,size:"18px"}:l;return L.jsx("button",{className:ge(J1(t)),disabled:t.disabled,...h,children:b?L.jsxs(Ce,{className:ge("gap-2"),items:"center",nowrap:!0,children:[L.jsx(le,{children:L.jsx(Or,{...b})}),e&&L.jsx(le,{children:e})]}):e})}var Q1=Object.defineProperty,ev=(e,t,r)=>t in e?Q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wi=(e,t,r)=>(ev(e,typeof t!="symbol"?t+"":t,r),r);let tv=class{constructor(){Wi(this,"current",this.detect()),Wi(this,"handoffState","pending"),Wi(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ho=new tv,vn=(e,t)=>{ho.isServer?g.useEffect(e,t):g.useLayoutEffect(e,t)};function Fr(e){let t=g.useRef(e);return vn(()=>{t.current=e},[e]),t}let Dt=function(e){let t=Fr(e);return g.useCallback((...r)=>t.current(...r),[t])};function rv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function gn(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return rv(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=gn();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function Tu(){let[e]=g.useState(gn);return g.useEffect(()=>()=>e.dispose(),[e]),e}function nv(){let e=typeof document>"u";return"useSyncExternalStore"in Ke?(t=>t.useSyncExternalStore)(Ke)(()=>()=>{},()=>!1,()=>!e):!1}function Vu(){let e=nv(),[t,r]=Ke.useState(ho.isHandoffComplete);return t&&ho.isHandoffComplete===!1&&r(!1),Ke.useEffect(()=>{t!==!0&&r(!0)},[t]),Ke.useEffect(()=>ho.handoff(),[]),e?!1:t}function xt(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xt),n}let ov=Symbol();function Mu(...e){let t=g.useRef(e);g.useEffect(()=>{t.current=e},[e]);let r=Dt(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[ov]))?void 0:r}function mo(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Pu=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pu||{}),Zt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Zt||{});function Nu({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:a,mergeRefs:s}){s=s??iv;let u=ku(t,e);if(i)return bo(u,r,n,a,s);let c=o??0;if(c&2){let{static:l=!1,...d}=u;if(l)return bo(d,r,n,a,s)}if(c&1){let{unmount:l=!0,...d}=u;return xt(l?0:1,{0(){return null},1(){return bo({...d,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return bo(u,r,n,a,s)}function bo(e,t={},r,n,o){let{as:i=r,children:a,refName:s="ref",...u}=Yi(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},l=typeof a=="function"?a(t):a;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let d={};if(t){let p=!1,h=[];for(let[b,_]of Object.entries(t))typeof _=="boolean"&&(p=!0),_===!0&&h.push(b);p&&(d["data-headlessui-state"]=h.join(" "))}if(i===g.Fragment&&Object.keys(Hu(u)).length>0){if(!g.isValidElement(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(_=>` - ${_}`).join(`
|
|
99
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(_=>` - ${_}`).join(`
|
|
100
|
+
`)].join(`
|
|
101
|
+
`));let p=l.props,h=typeof(p==null?void 0:p.className)=="function"?(..._)=>mo(p==null?void 0:p.className(..._),u.className):mo(p==null?void 0:p.className,u.className),b=h?{className:h}:{};return g.cloneElement(l,Object.assign({},ku(l.props,Hu(Yi(u,["ref"]))),d,c,{ref:o(l.ref,c.ref)},b))}return g.createElement(i,Object.assign({},Yi(u,["ref"]),i!==g.Fragment&&c,i!==g.Fragment&&d),l)}function iv(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function ku(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...i){let a=r[n];for(let s of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function qi(e){var t;return Object.assign(g.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Hu(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Yi(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Gi=g.createContext(null);Gi.displayName="OpenClosedContext";var Rt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Rt||{});function Du(){return g.useContext(Gi)}function av({value:e,children:t}){return g.createElement(Gi.Provider,{value:e},t)}function Zi(){let e=g.useRef(!1);return vn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function sv(e=0){let[t,r]=g.useState(e),n=Zi(),o=g.useCallback(u=>{n.current&&r(c=>c|u)},[t,n]),i=g.useCallback(u=>!!(t&u),[t]),a=g.useCallback(u=>{n.current&&r(c=>c&~u)},[r,n]),s=g.useCallback(u=>{n.current&&r(c=>c^u)},[r]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}function uv(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Ki(e,...t){e&&t.length>0&&e.classList.add(...t)}function Xi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function lv(e,t){let r=gn();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,a]=[n,o].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(l=>l.includes("ms")?parseFloat(l):parseFloat(l)*1e3).sort((l,d)=>d-l);return c}),s=i+a;if(s!==0){r.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",l=>{l.target===l.currentTarget&&c.dispose()})});let u=r.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function cv(e,t,r,n){let o=r?"enter":"leave",i=gn(),a=n!==void 0?uv(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=xt(o,{enter:()=>t.enter,leave:()=>t.leave}),u=xt(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=xt(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Xi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ki(e,...t.base,...s,...c),i.nextFrame(()=>{Xi(e,...t.base,...s,...c),Ki(e,...t.base,...s,...u),lv(e,()=>(Xi(e,...t.base,...s),Ki(e,...t.base,...t.entered),a()))}),i.dispose}function fv({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:i}){let a=Zi(),s=Tu(),u=Fr(r);vn(()=>{e&&(u.current="enter")},[e]),vn(()=>{let c=gn();s.add(c.dispose);let l=t.current;if(l&&u.current!=="idle"&&a.current)return c.dispose(),o.current(u.current),c.add(cv(l,n.current,u.current==="enter",()=>{c.dispose(),i.current(u.current)})),c.dispose},[r])}function Kt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let yo=g.createContext(null);yo.displayName="TransitionContext";var dv=(e=>(e.Visible="visible",e.Hidden="hidden",e))(dv||{});function pv(){let e=g.useContext(yo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function vv(){let e=g.useContext(_o);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let _o=g.createContext(null);_o.displayName="NestingContext";function wo(e){return"children"in e?wo(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ru(e,t){let r=Fr(e),n=g.useRef([]),o=Zi(),i=Tu(),a=Dt((h,b=Zt.Hidden)=>{let _=n.current.findIndex(({el:y})=>y===h);_!==-1&&(xt(b,{[Zt.Unmount](){n.current.splice(_,1)},[Zt.Hidden](){n.current[_].state="hidden"}}),i.microTask(()=>{var y;!wo(n)&&o.current&&((y=r.current)==null||y.call(r))}))}),s=Dt(h=>{let b=n.current.find(({el:_})=>_===h);return b?b.state!=="visible"&&(b.state="visible"):n.current.push({el:h,state:"visible"}),()=>a(h,Zt.Unmount)}),u=g.useRef([]),c=g.useRef(Promise.resolve()),l=g.useRef({enter:[],leave:[],idle:[]}),d=Dt((h,b,_)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([y])=>y!==h)),t==null||t.chains.current[b].push([h,new Promise(y=>{u.current.push(y)})]),t==null||t.chains.current[b].push([h,new Promise(y=>{Promise.all(l.current[b].map(([O,w])=>w)).then(()=>y())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>_(b)):_(b)}),p=Dt((h,b,_)=>{Promise.all(l.current[b].splice(0).map(([y,O])=>O)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>_(b))});return g.useMemo(()=>({children:n,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:l}),[s,a,n,d,p,l,c])}function gv(){}let hv=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $u(e){var t;let r={};for(let n of hv)r[n]=(t=e[n])!=null?t:gv;return r}function mv(e){let t=g.useRef($u(e));return g.useEffect(()=>{t.current=$u(e)},[e]),t}let bv="div",Bu=Pu.RenderStrategy;function yv(e,t){var r,n;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:u,enterFrom:c,enterTo:l,entered:d,leave:p,leaveFrom:h,leaveTo:b,..._}=e,y=g.useRef(null),O=Mu(y,t),w=(r=_.unmount)==null||r?Zt.Unmount:Zt.Hidden,{show:j,appear:C,initial:m}=pv(),[T,N]=g.useState(j?"visible":"hidden"),Z=vv(),{register:R,unregister:H}=Z;g.useEffect(()=>R(y),[R,y]),g.useEffect(()=>{if(w===Zt.Hidden&&y.current){if(j&&T!=="visible"){N("visible");return}return xt(T,{hidden:()=>H(y),visible:()=>R(y)})}},[T,y,R,H,j,w]);let X=Fr({base:Kt(_.className),enter:Kt(u),enterFrom:Kt(c),enterTo:Kt(l),entered:Kt(d),leave:Kt(p),leaveFrom:Kt(h),leaveTo:Kt(b)}),ee=mv({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),Q=Vu();g.useEffect(()=>{if(Q&&T==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,T,Q]);let ae=m&&!C,k=C&&j&&m,q=!Q||ae?"idle":j?"enter":"leave",ne=sv(0),oe=Dt($=>xt($,{enter:()=>{ne.addFlag(Rt.Opening),ee.current.beforeEnter()},leave:()=>{ne.addFlag(Rt.Closing),ee.current.beforeLeave()},idle:()=>{}})),fe=Dt($=>xt($,{enter:()=>{ne.removeFlag(Rt.Opening),ee.current.afterEnter()},leave:()=>{ne.removeFlag(Rt.Closing),ee.current.afterLeave()},idle:()=>{}})),de=Ru(()=>{N("hidden"),H(y)},Z),E=g.useRef(!1);fv({immediate:k,container:y,classes:X,direction:q,onStart:Fr($=>{E.current=!0,de.onStart(y,$,oe)}),onStop:Fr($=>{E.current=!1,de.onStop(y,$,fe),$==="leave"&&!wo(de)&&(N("hidden"),H(y))})});let A=_,F={ref:O};return k?A={...A,className:mo(_.className,...X.current.enter,...X.current.enterFrom)}:E.current&&(A.className=mo(_.className,(n=y.current)==null?void 0:n.className),A.className===""&&delete A.className),g.createElement(_o.Provider,{value:de},g.createElement(av,{value:xt(T,{visible:Rt.Open,hidden:Rt.Closed})|ne.flags},Nu({ourProps:F,theirProps:A,defaultTag:bv,features:Bu,visible:T==="visible",name:"Transition.Child"})))}function _v(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,a=g.useRef(null),s=Mu(a,t);Vu();let u=Du();if(r===void 0&&u!==null&&(r=(u&Rt.Open)===Rt.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,l]=g.useState(r?"visible":"hidden"),d=Ru(()=>{l("hidden")}),[p,h]=g.useState(!0),b=g.useRef([r]);vn(()=>{p!==!1&&b.current[b.current.length-1]!==r&&(b.current.push(r),h(!1))},[b,r]);let _=g.useMemo(()=>({show:r,appear:n,initial:p}),[r,n,p]);g.useEffect(()=>{if(r)l("visible");else if(!wo(d))l("hidden");else{let j=a.current;if(!j)return;let C=j.getBoundingClientRect();C.x===0&&C.y===0&&C.width===0&&C.height===0&&l("hidden")}},[r,d]);let y={unmount:o},O=Dt(()=>{var j;p&&h(!1),(j=e.beforeEnter)==null||j.call(e)}),w=Dt(()=>{var j;p&&h(!1),(j=e.beforeLeave)==null||j.call(e)});return g.createElement(_o.Provider,{value:d},g.createElement(yo.Provider,{value:_},Nu({ourProps:{...y,as:g.Fragment,children:g.createElement(Iu,{ref:s,...y,...i,beforeEnter:O,beforeLeave:w})},theirProps:{},defaultTag:g.Fragment,features:Bu,visible:c==="visible",name:"Transition"})))}function wv(e,t){let r=g.useContext(yo)!==null,n=Du()!==null;return g.createElement(g.Fragment,null,!r&&n?g.createElement(Ji,{ref:t,...e}):g.createElement(Iu,{ref:t,...e}))}let Ji=qi(_v),Iu=qi(yv),Ov=qi(wv),Fu=Object.assign(Ji,{Child:Ov,Root:Ji});var zu=function(t){return t.reduce(function(r,n){var o=n[0],i=n[1];return r[o]=i,r},{})},Uu=typeof window<"u"&&window.document&&window.document.createElement?Ke.useLayoutEffect:Ke.useEffect,Re="top",it="bottom",at="right",$e="left",Qi="auto",hn=[Re,it,at,$e],zr="start",mn="end",Ev="clippingParents",Wu="viewport",bn="popper",xv="reference",qu=hn.reduce(function(e,t){return e.concat([t+"-"+zr,t+"-"+mn])},[]),Yu=[].concat(hn,[Qi]).reduce(function(e,t){return e.concat([t,t+"-"+zr,t+"-"+mn])},[]),Cv="beforeRead",Sv="read",jv="afterRead",Av="beforeMain",Lv="main",Tv="afterMain",Vv="beforeWrite",Mv="write",Pv="afterWrite",Nv=[Cv,Sv,jv,Av,Lv,Tv,Vv,Mv,Pv];function Ct(e){return e?(e.nodeName||"").toLowerCase():null}function Ge(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yr(e){var t=Ge(e).Element;return e instanceof t||e instanceof Element}function st(e){var t=Ge(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ea(e){if(typeof ShadowRoot>"u")return!1;var t=Ge(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kv(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!st(i)||!Ct(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Hv(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(u,c){return u[c]="",u},{});!st(o)||!Ct(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const Dv={name:"applyStyles",enabled:!0,phase:"write",fn:kv,effect:Hv,requires:["computeStyles"]};function St(e){return e.split("-")[0]}var _r=Math.max,Oo=Math.min,Ur=Math.round;function ta(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Gu(){return!/^((?!chrome|android).)*safari/i.test(ta())}function Wr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&st(e)&&(o=e.offsetWidth>0&&Ur(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ur(n.height)/e.offsetHeight||1);var a=yr(e)?Ge(e):window,s=a.visualViewport,u=!Gu()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,l=(n.top+(u&&s?s.offsetTop:0))/i,d=n.width/o,p=n.height/i;return{width:d,height:p,top:l,right:c+d,bottom:l+p,left:c,x:c,y:l}}function ra(e){var t=Wr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Zu(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ea(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function $t(e){return Ge(e).getComputedStyle(e)}function Rv(e){return["table","td","th"].indexOf(Ct(e))>=0}function Xt(e){return((yr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Eo(e){return Ct(e)==="html"?e:e.assignedSlot||e.parentNode||(ea(e)?e.host:null)||Xt(e)}function Ku(e){return!st(e)||$t(e).position==="fixed"?null:e.offsetParent}function $v(e){var t=/firefox/i.test(ta()),r=/Trident/i.test(ta());if(r&&st(e)){var n=$t(e);if(n.position==="fixed")return null}var o=Eo(e);for(ea(o)&&(o=o.host);st(o)&&["html","body"].indexOf(Ct(o))<0;){var i=$t(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function yn(e){for(var t=Ge(e),r=Ku(e);r&&Rv(r)&&$t(r).position==="static";)r=Ku(r);return r&&(Ct(r)==="html"||Ct(r)==="body"&&$t(r).position==="static")?t:r||$v(e)||t}function na(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _n(e,t,r){return _r(e,Oo(t,r))}function Bv(e,t,r){var n=_n(e,t,r);return n>r?r:n}function Xu(){return{top:0,right:0,bottom:0,left:0}}function Ju(e){return Object.assign({},Xu(),e)}function Qu(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Iv=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ju(typeof t!="number"?t:Qu(t,hn))};function Fv(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=St(r.placement),u=na(s),c=[$e,at].indexOf(s)>=0,l=c?"height":"width";if(!(!i||!a)){var d=Iv(o.padding,r),p=ra(i),h=u==="y"?Re:$e,b=u==="y"?it:at,_=r.rects.reference[l]+r.rects.reference[u]-a[u]-r.rects.popper[l],y=a[u]-r.rects.reference[u],O=yn(i),w=O?u==="y"?O.clientHeight||0:O.clientWidth||0:0,j=_/2-y/2,C=d[h],m=w-p[l]-d[b],T=w/2-p[l]/2+j,N=_n(C,T,m),Z=u;r.modifiersData[n]=(t={},t[Z]=N,t.centerOffset=N-T,t)}}function zv(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Zu(t.elements.popper,o)&&(t.elements.arrow=o))}const Uv={name:"arrow",enabled:!0,phase:"main",fn:Fv,effect:zv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qr(e){return e.split("-")[1]}var Wv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qv(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Ur(r*o)/o||0,y:Ur(n*o)/o||0}}function el(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,b=a.y,_=b===void 0?0:b,y=typeof l=="function"?l({x:h,y:_}):{x:h,y:_};h=y.x,_=y.y;var O=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),j=$e,C=Re,m=window;if(c){var T=yn(r),N="clientHeight",Z="clientWidth";if(T===Ge(r)&&(T=Xt(r),$t(T).position!=="static"&&s==="absolute"&&(N="scrollHeight",Z="scrollWidth")),T=T,o===Re||(o===$e||o===at)&&i===mn){C=it;var R=d&&T===m&&m.visualViewport?m.visualViewport.height:T[N];_-=R-n.height,_*=u?1:-1}if(o===$e||(o===Re||o===it)&&i===mn){j=at;var H=d&&T===m&&m.visualViewport?m.visualViewport.width:T[Z];h-=H-n.width,h*=u?1:-1}}var X=Object.assign({position:s},c&&Wv),ee=l===!0?qv({x:h,y:_},Ge(r)):{x:h,y:_};if(h=ee.x,_=ee.y,u){var Q;return Object.assign({},X,(Q={},Q[C]=w?"0":"",Q[j]=O?"0":"",Q.transform=(m.devicePixelRatio||1)<=1?"translate("+h+"px, "+_+"px)":"translate3d("+h+"px, "+_+"px, 0)",Q))}return Object.assign({},X,(t={},t[C]=w?_+"px":"",t[j]=O?h+"px":"",t.transform="",t))}function Yv(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:St(t.placement),variation:qr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,el(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,el(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Gv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yv,data:{}};var xo={passive:!0};function Zv(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,u=Ge(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(l){l.addEventListener("scroll",r.update,xo)}),s&&u.addEventListener("resize",r.update,xo),function(){i&&c.forEach(function(l){l.removeEventListener("scroll",r.update,xo)}),s&&u.removeEventListener("resize",r.update,xo)}}const Kv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zv,data:{}};var Xv={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(e){return e.replace(/left|right|bottom|top/g,function(t){return Xv[t]})}var Jv={start:"end",end:"start"};function tl(e){return e.replace(/start|end/g,function(t){return Jv[t]})}function oa(e){var t=Ge(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ia(e){return Wr(Xt(e)).left+oa(e).scrollLeft}function Qv(e,t){var r=Ge(e),n=Xt(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=Gu();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+ia(e),y:u}}function eg(e){var t,r=Xt(e),n=oa(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_r(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_r(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+ia(e),u=-n.scrollTop;return $t(o||r).direction==="rtl"&&(s+=_r(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function aa(e){var t=$t(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function rl(e){return["html","body","#document"].indexOf(Ct(e))>=0?e.ownerDocument.body:st(e)&&aa(e)?e:rl(Eo(e))}function wn(e,t){var r;t===void 0&&(t=[]);var n=rl(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ge(n),a=o?[i].concat(i.visualViewport||[],aa(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(wn(Eo(a)))}function sa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tg(e,t){var r=Wr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function nl(e,t,r){return t===Wu?sa(Qv(e,r)):yr(t)?tg(t,r):sa(eg(Xt(e)))}function rg(e){var t=wn(Eo(e)),r=["absolute","fixed"].indexOf($t(e).position)>=0,n=r&&st(e)?yn(e):e;return yr(n)?t.filter(function(o){return yr(o)&&Zu(o,n)&&Ct(o)!=="body"}):[]}function ng(e,t,r,n){var o=t==="clippingParents"?rg(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var l=nl(e,c,n);return u.top=_r(l.top,u.top),u.right=Oo(l.right,u.right),u.bottom=Oo(l.bottom,u.bottom),u.left=_r(l.left,u.left),u},nl(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ol(e){var t=e.reference,r=e.element,n=e.placement,o=n?St(n):null,i=n?qr(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Re:u={x:a,y:t.y-r.height};break;case it:u={x:a,y:t.y+t.height};break;case at:u={x:t.x+t.width,y:s};break;case $e:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?na(o):null;if(c!=null){var l=c==="y"?"height":"width";switch(i){case zr:u[c]=u[c]-(t[l]/2-r[l]/2);break;case mn:u[c]=u[c]+(t[l]/2-r[l]/2);break}}return u}function On(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?Ev:s,c=r.rootBoundary,l=c===void 0?Wu:c,d=r.elementContext,p=d===void 0?bn:d,h=r.altBoundary,b=h===void 0?!1:h,_=r.padding,y=_===void 0?0:_,O=Ju(typeof y!="number"?y:Qu(y,hn)),w=p===bn?xv:bn,j=e.rects.popper,C=e.elements[b?w:p],m=ng(yr(C)?C:C.contextElement||Xt(e.elements.popper),u,l,a),T=Wr(e.elements.reference),N=ol({reference:T,element:j,strategy:"absolute",placement:o}),Z=sa(Object.assign({},j,N)),R=p===bn?Z:T,H={top:m.top-R.top+O.top,bottom:R.bottom-m.bottom+O.bottom,left:m.left-R.left+O.left,right:R.right-m.right+O.right},X=e.modifiersData.offset;if(p===bn&&X){var ee=X[o];Object.keys(H).forEach(function(Q){var ae=[at,it].indexOf(Q)>=0?1:-1,k=[Re,it].indexOf(Q)>=0?"y":"x";H[Q]+=ee[k]*ae})}return H}function og(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?Yu:u,l=qr(n),d=l?s?qu:qu.filter(function(b){return qr(b)===l}):hn,p=d.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=d);var h=p.reduce(function(b,_){return b[_]=On(e,{placement:_,boundary:o,rootBoundary:i,padding:a})[St(_)],b},{});return Object.keys(h).sort(function(b,_){return h[b]-h[_]})}function ig(e){if(St(e)===Qi)return[];var t=Co(e);return[tl(e),t,tl(t)]}function ag(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,u=r.fallbackPlacements,c=r.padding,l=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,b=h===void 0?!0:h,_=r.allowedAutoPlacements,y=t.options.placement,O=St(y),w=O===y,j=u||(w||!b?[Co(y)]:ig(y)),C=[y].concat(j).reduce(function($,B){return $.concat(St(B)===Qi?og(t,{placement:B,boundary:l,rootBoundary:d,padding:c,flipVariations:b,allowedAutoPlacements:_}):B)},[]),m=t.rects.reference,T=t.rects.popper,N=new Map,Z=!0,R=C[0],H=0;H<C.length;H++){var X=C[H],ee=St(X),Q=qr(X)===zr,ae=[Re,it].indexOf(ee)>=0,k=ae?"width":"height",q=On(t,{placement:X,boundary:l,rootBoundary:d,altBoundary:p,padding:c}),ne=ae?Q?at:$e:Q?it:Re;m[k]>T[k]&&(ne=Co(ne));var oe=Co(ne),fe=[];if(i&&fe.push(q[ee]<=0),s&&fe.push(q[ne]<=0,q[oe]<=0),fe.every(function($){return $})){R=X,Z=!1;break}N.set(X,fe)}if(Z)for(var de=b?3:1,E=function(B){var te=C.find(function(U){var Y=N.get(U);if(Y)return Y.slice(0,B).every(function(J){return J})});if(te)return R=te,"break"},A=de;A>0;A--){var F=E(A);if(F==="break")break}t.placement!==R&&(t.modifiersData[n]._skip=!0,t.placement=R,t.reset=!0)}}const sg={name:"flip",enabled:!0,phase:"main",fn:ag,requiresIfExists:["offset"],data:{_skip:!1}};function il(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function al(e){return[Re,at,it,$e].some(function(t){return e[t]>=0})}function ug(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=On(t,{elementContext:"reference"}),s=On(t,{altBoundary:!0}),u=il(a,n),c=il(s,o,i),l=al(u),d=al(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const lg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ug};function cg(e,t,r){var n=St(e),o=[$e,Re].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[$e,at].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function fg(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=Yu.reduce(function(l,d){return l[d]=cg(d,t.rects,i),l},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const dg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fg};function pg(e){var t=e.state,r=e.name;t.modifiersData[r]=ol({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const vg={name:"popperOffsets",enabled:!0,phase:"read",fn:pg,data:{}};function gg(e){return e==="x"?"y":"x"}function hg(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,u=r.boundary,c=r.rootBoundary,l=r.altBoundary,d=r.padding,p=r.tether,h=p===void 0?!0:p,b=r.tetherOffset,_=b===void 0?0:b,y=On(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),O=St(t.placement),w=qr(t.placement),j=!w,C=na(O),m=gg(C),T=t.modifiersData.popperOffsets,N=t.rects.reference,Z=t.rects.popper,R=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ee={x:0,y:0};if(T){if(i){var Q,ae=C==="y"?Re:$e,k=C==="y"?it:at,q=C==="y"?"height":"width",ne=T[C],oe=ne+y[ae],fe=ne-y[k],de=h?-Z[q]/2:0,E=w===zr?N[q]:Z[q],A=w===zr?-Z[q]:-N[q],F=t.elements.arrow,$=h&&F?ra(F):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xu(),te=B[ae],U=B[k],Y=_n(0,N[q],$[q]),J=j?N[q]/2-de-Y-te-H.mainAxis:E-Y-te-H.mainAxis,se=j?-N[q]/2+de+Y+U+H.mainAxis:A+Y+U+H.mainAxis,re=t.elements.arrow&&yn(t.elements.arrow),_e=re?C==="y"?re.clientTop||0:re.clientLeft||0:0,D=(Q=X==null?void 0:X[C])!=null?Q:0,xe=ne+J-D-_e,Ne=ne+se-D,Pe=_n(h?Oo(oe,xe):oe,ne,h?_r(fe,Ne):fe);T[C]=Pe,ee[C]=Pe-ne}if(s){var Be,Lt=C==="x"?Re:$e,lt=C==="x"?it:at,we=T[m],je=m==="y"?"height":"width",rr=we+y[Lt],nr=we-y[lt],Er=[Re,$e].indexOf(O)!==-1,xr=(Be=X==null?void 0:X[m])!=null?Be:0,or=Er?rr:we-N[je]-Z[je]-xr+H.altAxis,mt=Er?we+N[je]+Z[je]-xr-H.altAxis:nr,Tt=h&&Er?Bv(or,we,mt):_n(h?or:rr,we,h?mt:nr);T[m]=Tt,ee[m]=Tt-we}t.modifiersData[n]=ee}}const mg={name:"preventOverflow",enabled:!0,phase:"main",fn:hg,requiresIfExists:["offset"]};function bg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yg(e){return e===Ge(e)||!st(e)?oa(e):bg(e)}function _g(e){var t=e.getBoundingClientRect(),r=Ur(t.width)/e.offsetWidth||1,n=Ur(t.height)/e.offsetHeight||1;return r!==1||n!==1}function wg(e,t,r){r===void 0&&(r=!1);var n=st(t),o=st(t)&&_g(t),i=Xt(t),a=Wr(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Ct(t)!=="body"||aa(i))&&(s=yg(t)),st(t)?(u=Wr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=ia(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function Og(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function Eg(e){var t=Og(e);return Nv.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function xg(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Cg(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var sl={placement:"bottom",modifiers:[],strategy:"absolute"};function ul(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Sg(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?sl:o;return function(s,u,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},sl,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},d=[],p=!1,h={state:l,setOptions:function(O){var w=typeof O=="function"?O(l.options):O;_(),l.options=Object.assign({},i,l.options,w),l.scrollParents={reference:yr(s)?wn(s):s.contextElement?wn(s.contextElement):[],popper:wn(u)};var j=Eg(Cg([].concat(n,l.options.modifiers)));return l.orderedModifiers=j.filter(function(C){return C.enabled}),b(),h.update()},forceUpdate:function(){if(!p){var O=l.elements,w=O.reference,j=O.popper;if(ul(w,j)){l.rects={reference:wg(w,yn(j),l.options.strategy==="fixed"),popper:ra(j)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(H){return l.modifiersData[H.name]=Object.assign({},H.data)});for(var C=0;C<l.orderedModifiers.length;C++){if(l.reset===!0){l.reset=!1,C=-1;continue}var m=l.orderedModifiers[C],T=m.fn,N=m.options,Z=N===void 0?{}:N,R=m.name;typeof T=="function"&&(l=T({state:l,options:Z,name:R,instance:h})||l)}}}},update:xg(function(){return new Promise(function(y){h.forceUpdate(),y(l)})}),destroy:function(){_(),p=!0}};if(!ul(s,u))return h;h.setOptions(c).then(function(y){!p&&c.onFirstUpdate&&c.onFirstUpdate(y)});function b(){l.orderedModifiers.forEach(function(y){var O=y.name,w=y.options,j=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var m=C({state:l,name:O,instance:h,options:j}),T=function(){};d.push(m||T)}})}function _(){d.forEach(function(y){return y()}),d=[]}return h}}var jg=[Kv,vg,Gv,Dv,dg,sg,mg,Uv,lg],Ag=Sg({defaultModifiers:jg}),Lg=typeof Element<"u",Tg=typeof Map=="function",Vg=typeof Set=="function",Mg=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function So(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!So(e[n],t[n]))return!1;return!0}var i;if(Tg&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!So(n.value[1],t.get(n.value[0])))return!1;return!0}if(Vg&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Mg&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(Lg&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!So(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var Pg=function(t,r){try{return So(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Ng=Qo(Pg);var kg=[],ll=function(t,r,n){n===void 0&&(n={});var o=Ke.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||kg},a=Ke.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],u=a[1],c=Ke.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var b=h.state,_=Object.keys(b.elements);wc.flushSync(function(){u({styles:zu(_.map(function(y){return[y,b.styles[y]||{}]})),attributes:zu(_.map(function(y){return[y,b.attributes[y]]}))})})},requires:["computeStyles"]}},[]),l=Ke.useMemo(function(){var p={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Ng(o.current,p)?o.current||p:(o.current=p,p)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),d=Ke.useRef();return Uu(function(){d.current&&d.current.setOptions(l)},[l]),Uu(function(){if(!(t==null||r==null)){var p=n.createPopper||Ag,h=p(t,r,l);return d.current=h,function(){h.destroy(),d.current=null}}},[t,r,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const cl=e=>typeof e<"u";var ua=(e=>(e.web="web",e.email="email",e))(ua||{});const la=g.forwardRef(function({children:t,title:r,onClose:n,icon:o,shadow:i=!0,padding:a=!0,border:s=!0,round:u=!0,className:c,classNameBody:l,size:d="m",titleClass:p=ge("gs-utl-mb-2 gs-utl-mt-0.5"),style:h,bg:b,..._},y){return L.jsxs("div",{..._,ref:y,style:h,className:ge([c,b||Z1.bg,ot.b,u&&ot.rnd,s?ye.br:ot.bT,"gs-utl-card gs-utl-overflow-auto",i&&"gs-utl-shadow-md",a&&d==="l"&&"gs-utl-p-5",a&&d==="m"&&"gs-utl-px-4 gs-utl-py-2",a&&d==="s"&&"gs-utl-px-2 gs-utl-py-1",a&&d==="xs"&&"gs-utl-px-2 gs-utl-py-0.5",a&&d==="x2s"&&"gs-utl-px-0.5"]),children:[(r||n)&&r!==!1&&L.jsxs(Ce,{className:ge("gs-utl-card-title",p),items:"center",children:[L.jsx(le,{className:ge("truncate"),grow:!0,children:r}),(n||o)&&L.jsx(le,{onClick:n,className:ge("cursor-pointer transition-opacity opacity-50 hover:gs-utl-opacity-100"),children:L.jsx(Or,{icon:o||zt.close,size:"18px"})})]}),L.jsx("div",{className:ge("gs-utl-card-body",l),children:t})]})}),Hg=()=>Vn().contextMenu;var Dg={},ca=Hn;Dg.NODE_ENV==="production"?(ca.createRoot,ca.hydrateRoot):ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Rg({action:e,icon:t,label:r,className:n,items:o,...i}){const a=g.useRef(null),[s,u]=g.useState(),c=a.current,l=ge([n,"gs-utl-last:border-b-0 gs-utl-gap-2 gs-utl-select-none",ye.br,zi.xy,ot.bb,i.disabled&&Lu.disabled,...e?[ye.hBgH,"gs-utl-cursor-pointer"]:["gs-utl-cursor-default"]]),d=h=>Dn(e)&&e({event:h});g.useEffect(()=>{if(!c)return;const h=setTimeout(()=>u(c.getBoundingClientRect()),i.active?0:q1);return()=>clearTimeout(h)},[c,i.active]);const p=()=>{var h;return(h=i.onActive)==null?void 0:h.call(i)};return L.jsxs(Ce,{ref:a,items:"center",nowrap:!0,className:l,onClick:d,onPointerEnter:p,children:[t&&L.jsx(le,{children:L.jsx(Or,{icon:t,size:pn.s})}),L.jsx(le,{className:ge(i.classNameLabel,Lu.txtEllips),grow:!0,children:r}),!!(o!=null&&o.length)&&L.jsxs(L.Fragment,{children:[L.jsx(le,{children:L.jsx(Or,{icon:zt.chevronRight,size:pn.s,className:ge("-gs-utl-mr-2")})}),s&&i.active&&L.jsx(Ig,{items:o,x:s.left,y:s.top,w:s.width,h:s.height,open:!0})]})]})}function jo({className:e,as:t="label",bold:r,m:n="gjs-mb-1",size:o="m",capitalize:i=!0,children:a,tip:s,...u}){const c=t;return L.jsxs(c,{className:ge(e,n,s?"gs-utl-flex gs-utl-gap-2 gs-utl-items-center":"block",i&&"capitalize",r&&"font-semibold",o==="s"&&"text-sm"),...u,children:[!!s&&L.jsx(pl,{classNameWrp:"gs-utl-normal-case",classNameContent:"gs-utl-max-w-60",title:s,children:L.jsx(Or,{icon:zt.information,size:pn.s2x})}),a]})}ge("cursor-default select-none focus:gs-utl-outline-none","z-20 max-h-full");const $g={strategy:"fixed",placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["top"]}}]},fl=Ua()&&document.body,dl=(e={})=>({...$g,placement:"right-start",modifiers:[{name:"offset",options:{offset:e.offset||[0,5]}},{name:"flip",options:{boundary:e.boundary??fl}},{name:"preventOverflow",options:{boundary:e.boundary??fl}}]}),Bg=dl(),Ao="gs-ctx-menu-list",Ig=dn(function({open:t,items:r,x:n,y:o,w:i,h:a}){const s=Hg(),[u,c]=g.useState(),[l,d]=g.useState(null),p=g.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(n,o,i,a)}),[n,o,i,a,t]),{styles:h,attributes:b}=ll(p,l,Bg),_=Ar(`${Ao}-wrp gs-utl-z-20`),y=Ar(`${Ao} gs-utl-z-20`),O=Ar(`${Ao}-body gs-utl-max-w-56`),w=Ar(`${Ao}-item`),j="gs-utl-max-w-40",C=m=>{const{action:T,onClick:N}=m;if(T||N)return Z=>{const R={editor:s.store.appEditorStore.editor,...Z};Dn(T)?(T(R),s.hide()):Dn(N)&&(N(R),s.hide())}};return L.jsx("div",{className:_,ref:d,style:h.popper,...b.popper,children:L.jsx(Fu,{show:!!t,...G1,unmount:!1,children:L.jsx(la,{padding:!1,className:y,classNameBody:O,children:r.map((m,T)=>g.createElement(Rg,{...m,key:m.id??T,className:w,classNameLabel:j,action:C(m),onActive:()=>c(m),active:u===m}))})})})}),fa="gs-cmp-tooltip";function pl({className:e,classNameWrp:t,classNameContent:r,children:n,title:o,onClick:i,inline:a,size:s}){const[u,c]=g.useState(!1),[l,d]=g.useState(!1),p=cl(s),[h,b]=g.useState(null),[_,y]=g.useState(null),O=ll(h,_,{...dl(),placement:"bottom"}),w=ge(`${fa}-target`,!a&&"block",e,!i&&"cursor-auto"),j=ge(`${fa}-content`,r,"fixed z-30 text-sm",!p&&!r&&"whitespace-nowrap",s==="s"&&"w-60");return g.useEffect(()=>{var C;u&&((C=O.update)==null||C.call(O))},[u,O.update]),g.useEffect(()=>{const C=setTimeout(()=>c(l),10);return()=>clearTimeout(C)},[l]),L.jsxs("div",{className:ge(fa,"relative",t),children:[L.jsx("span",{ref:b,className:w,onMouseEnter:()=>o&&d(!0),onMouseLeave:()=>d(!1),children:L.jsx("div",{className:ge(a&&"inline-block"),onClick:()=>{d(!1),i==null||i()},children:n})}),!!l&&L.jsx("div",{className:j,ref:y,style:O.styles.popper,...O.attributes.popper,children:L.jsx(Fu,{show:!!u,unmount:!1,...Y1,children:L.jsx(la,{className:ge(Au.txt),bg:Au.bg,size:"s",border:!1,children:o})})})]})}function Fg({children:e,title:t,classNameWrp:r,...n}){return L.jsx(pl,{title:t,classNameWrp:r,children:L.jsx(Ui,{...n,children:e})})}const zg={info:ye.bgA,error:"bg-red-500",success:"bg-green-500",warning:"bg-orange-400"},Ug=g.forwardRef(function(t,r){const n={info:zt.informationVariant,error:zt.fire,success:zt.checkBold,warning:zt.alertRhombus},{children:o,className:i,content:a,id:s,buttons:u=[],variant:c="info",autoHideTimeout:l=3e3}=t,d=g.useRef(null),p=g.useRef(),h=n[c],b=zg[c];g.useImperativeHandle(r,()=>d.current,[]);const _=()=>{var j;return(j=t.onDismiss)==null?void 0:j.call(t,s)},y=()=>{l&&(p.current=setTimeout(_,l))},O=()=>p.current&&clearTimeout(p.current);g.useEffect(()=>(y(),O),[]);const w=a||o;return L.jsx(la,{className:be(i,"overflow-hidden relative"),ref:d,onPointerEnter:O,onPointerLeave:y,children:L.jsxs(Ce,{space:"m",items:"center",className:be(zi.y),children:[L.jsx(le,{className:be(b,ot.pill,"text-white gjs-p-1"),children:L.jsx(Or,{icon:h,size:pn.s})}),L.jsx(le,{grow:!0,className:be("gjs-pr-3"),children:L.jsxs(Ce,{col:!0,space:"xs",children:[L.jsx(le,{className:be("text-lg font-medium leading-6"),children:t.header}),w&&L.jsx(le,{className:be(ye.txtLowEmphasis),children:w}),!!u.length&&L.jsx(Ce,{space:"m",justify:"end",children:u.map(({id:j,...C})=>L.jsx(Ui,{...C},j))})]})}),L.jsx(le,{className:be("absolute top-1 right-1"),children:L.jsx(Fg,{onClick:_,border:!1,children:L.jsx(Or,{icon:zt.close,size:pn.s})})})]})})});dn(g.forwardRef(function({className:t,toasts:r,onDismiss:n,...o},i){const a=W1({});return L.jsx("div",{className:be(t,"w-80 gs-utl-z-30"),...o,ref:a,children:r.map(s=>L.jsx(Ug,{...s,className:be("gjs-mb-2"),onDismiss:n},s.uuid||s.id))})}));const vl=new Map,Wg=g.forwardRef(function({svg:t,iconSize:r,...n},o){let i=vl.get(t);return i||(i=xc(t,r),vl.set(t,i)),L.jsx("div",{...n,ref:o,dangerouslySetInnerHTML:{__html:i}})}),qg=e=>e.replace(/[^a-z0-9.]/gi,"_").toLowerCase(),gl=(e,t,r="html")=>{const{Pages:n}=e,o=Lo({page:t,key:"slug"});return`${n.getMain()===t?"index":Tc(o||t.getName())}.${r}`},Yg="custom-html-body",hl="data-custom-html-body",Se={title:({cmp:e})=>e.tagName==="title",favicon:({cmp:e})=>{var t;return e.tagName==="link"&&((t=e.attributes.attributes)==null?void 0:t.rel)==="icon"},description:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="description"},keywords:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="keywords"},socialTitle:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.property)==="og:title"},socialImage:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.property)==="og:image"},socialDescription:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.property)==="og:description"},charset:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.charset)},viewport:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="viewport"},robots:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="robots"},generator:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="generator"}},Gg=e=>{for(const t in Se){const r=t;if(Se[r]({cmp:e}))return r}},Zg=(e,t,r)=>{const n=[];let o=r;return e.getMainComponent().findType(Yg).forEach(i=>{n.push(i),o=(o||"")+i.getInnerHTML()}),{components:n,html:o,changed:o!==t}},Kg=e=>{const t={...e.get("settings")??{}},r=e.getMainComponent(),{head:n}=r;if(n){const o=[];n.components().forEach(i=>{const{content:a,href:s}=i.getAttributes({noClass:!0,noStyle:!0});Se.title({cmp:i})?t.title=i.getInnerHTML():Se.favicon({cmp:i})?t.favicon=s:Se.description({cmp:i})?t.description=a:Se.keywords({cmp:i})?t.keywords=a:Se.socialTitle({cmp:i})?t.socialTitle=a:Se.socialDescription({cmp:i})?t.socialDescription=a:Se.socialImage({cmp:i})?t.socialImage=a:Gg(i)||o.push(i.toHTML())}),o.length&&(t.customCodeHead=o.join(`
|
|
102
|
+
`))}return t.customCodeBody=Zg(e,t.customCodeBody).html,t},ml=e=>e.getModel().get("customData")??{},Xg=e=>(e==null?void 0:e.projectDataCustom.globalPageSettings)??{},Lo=e=>{const{page:t,key:r,appEditorStore:n,def:o="",defPage:i=""}=e;return(t?Kg(t)[r]??i:Xg(n)[r])??o},wr=(e,t)=>{const r=e.em.getEditor(),o=ml(r).globalPageSettings||{};return Lo({page:e,key:t})||o[t]},Jg=()=>Vn().i18nStore,bl="gs-custom-layout",Qg=g.forwardRef(function({className:t,component:r,noWrapper:n,id:o,render:i,...a},s){const{editor:u}=Sa(),c=g.useRef(null),l=r,d=l&&u?L.jsx(l,{editor:u}):null,p=Ar(bl,o&&`${bl}__${o}`,t),h=c.current,b=n&&!i;return g.useImperativeHandle(s,()=>c.current,[]),g.useEffect(()=>{if(!i||!h)return;const _=w=>h.appendChild(w),y=w=>h.removeChild(w),O=i({editor:u,addEl:_,removeEl:y});if(qa(O))h.innerHTML=O;else{if(O instanceof HTMLElement)return _(O),()=>{y(O)};if(Dn(O))return()=>{O()}}},[i,u,h]),b?d:L.jsx("div",{className:p,ref:c,...a,children:d})});dn(Qg);var yl=(e=>(e.gjs="gjs",e.gjsStudio="gjs-studio",e))(yl||{});const eh=()=>Vn().localSettingsStore,th=()=>Vn().modalStore;function rh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_l(Object(r),!0).forEach(function(n){rh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nh(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function oh(e,t){if(e==null)return{};var r=nh(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ih(e,t){return ah(e)||sh(e,t)||uh(e,t)||lh()}function ah(e){if(Array.isArray(e))return e}function sh(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){o=!0,i=u}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function uh(e,t){if(e){if(typeof e=="string")return Ol(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ol(e,t)}}function Ol(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
103
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ch(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function El(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?El(Object(r),!0).forEach(function(n){ch(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function En(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return t.apply(r,[].concat(o,s))}}}function To(e){return{}.toString.call(e).includes("Object")}function dh(e){return!Object.keys(e).length}function xn(e){return typeof e=="function"}function ph(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vh(e,t){return To(t)||Jt("changeType"),Object.keys(t).some(function(r){return!ph(e,r)})&&Jt("changeField"),t}function gh(e){xn(e)||Jt("selectorType")}function hh(e){xn(e)||To(e)||Jt("handlerType"),To(e)&&Object.values(e).some(function(t){return!xn(t)})&&Jt("handlersType")}function mh(e){e||Jt("initialIsRequired"),To(e)||Jt("initialType"),dh(e)&&Jt("initialContent")}function bh(e,t){throw new Error(e[t]||e.default)}var yh={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Jt=En(bh)(yh),Vo={changes:vh,selector:gh,handler:hh,initial:mh};function _h(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vo.initial(e),Vo.handler(t);var r={current:e},n=En(Eh)(r,t),o=En(Oh)(r),i=En(Vo.changes)(e),a=En(wh)(r);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(l){return l};return Vo.selector(c),c(r.current)}function u(c){fh(n,o,i,a)(c)}return[s,u]}function wh(e,t){return xn(t)?t(e.current):t}function Oh(e,t){return e.current=xl(xl({},e.current),t),t}function Eh(e,t,r){return xn(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var xh={create:_h},Ch={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Sh(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return t.apply(r,[].concat(o,s))}}}function jh(e){return{}.toString.call(e).includes("Object")}function Ah(e){return e||Sl("configIsRequired"),jh(e)||Sl("configType"),e.urls?(Lh(),{paths:{vs:e.urls.monacoBase}}):e}function Lh(){console.warn(Cl.deprecation)}function Th(e,t){throw new Error(e[t]||e.default)}var Cl={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
104
|
+
You are using deprecated way of configuration.
|
|
105
|
+
|
|
106
|
+
Instead of using
|
|
107
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
108
|
+
use
|
|
109
|
+
monaco.config({ paths: { vs: '...' } })
|
|
110
|
+
|
|
111
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
112
|
+
`},Sl=Sh(Th)(Cl),Vh={config:Ah},Mh=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}};function jl(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],jl(e[r],t[r]))}),wl(wl({},e),t)}var Ph={type:"cancelation",msg:"operation is manually canceled"};function da(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(Ph):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Nh=xh.create({config:Ch,isInitialized:!1,resolve:null,reject:null,monaco:null}),Al=ih(Nh,2),Cn=Al[0],Mo=Al[1];function kh(e){var t=Vh.config(e),r=t.monaco,n=oh(t,["monaco"]);Mo(function(o){return{config:jl(o.config,n),monaco:r}})}function Hh(){var e=Cn(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Mo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),da(pa);if(window.monaco&&window.monaco.editor)return Ll(window.monaco),e.resolve(window.monaco),da(pa);Mh(Dh,$h)(Bh)}return da(pa)}function Dh(e){return document.body.appendChild(e)}function Rh(e){var t=document.createElement("script");return e&&(t.src=e),t}function $h(e){var t=Cn(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=Rh("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Bh(){var e=Cn(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Ll(r),e.resolve(r)},function(r){e.reject(r)})}function Ll(e){Cn().monaco||Mo({monaco:e})}function Ih(){return Cn(function(e){var t=e.monaco;return t})}var pa=new Promise(function(e,t){return Mo({resolve:e,reject:t})}),Tl={config:kh,init:Hh,__getMonacoInstance:Ih},Fh={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},va=Fh,zh={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Uh=zh;function Wh({children:e}){return g.createElement("div",{style:Uh.container},e)}var qh=Wh,Yh=qh;function Gh({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return g.createElement("section",{style:{...va.wrapper,width:e,height:t},...a},!r&&g.createElement(Yh,null,n),g.createElement("div",{ref:o,style:{...va.fullWidth,...!r&&va.hide},className:i}))}var Zh=Gh,Vl=g.memo(Zh);function Kh(e){g.useEffect(e,[])}var Ml=Kh;function Xh(e,t,r=!0){let n=g.useRef(!0);g.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Ze=Xh;function Sn(){}function Yr(e,t,r,n){return Jh(e,n)||Qh(e,t,r,n)}function Jh(e,t){return e.editor.getModel(Pl(e,t))}function Qh(e,t,r,n){return e.editor.createModel(t,r,n?Pl(e,n):void 0)}function Pl(e,t){return e.Uri.parse(t)}function em({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:l="Loading...",options:d={},height:p="100%",width:h="100%",className:b,wrapperProps:_={},beforeMount:y=Sn,onMount:O=Sn}){let[w,j]=g.useState(!1),[C,m]=g.useState(!0),T=g.useRef(null),N=g.useRef(null),Z=g.useRef(null),R=g.useRef(O),H=g.useRef(y),X=g.useRef(!1);Ml(()=>{let k=Tl.init();return k.then(q=>(N.current=q)&&m(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>T.current?ae():k.cancel()}),Ze(()=>{if(T.current&&N.current){let k=T.current.getOriginalEditor(),q=Yr(N.current,e||"",n||r||"text",i||"");q!==k.getModel()&&k.setModel(q)}},[i],w),Ze(()=>{if(T.current&&N.current){let k=T.current.getModifiedEditor(),q=Yr(N.current,t||"",o||r||"text",a||"");q!==k.getModel()&&k.setModel(q)}},[a],w),Ze(()=>{let k=T.current.getModifiedEditor();k.getOption(N.current.editor.EditorOption.readOnly)?k.setValue(t||""):t!==k.getValue()&&(k.executeEdits("",[{range:k.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),k.pushUndoStop())},[t],w),Ze(()=>{var k,q;(q=(k=T.current)==null?void 0:k.getModel())==null||q.original.setValue(e||"")},[e],w),Ze(()=>{let{original:k,modified:q}=T.current.getModel();N.current.editor.setModelLanguage(k,n||r||"text"),N.current.editor.setModelLanguage(q,o||r||"text")},[r,n,o],w),Ze(()=>{var k;(k=N.current)==null||k.editor.setTheme(c)},[c],w),Ze(()=>{var k;(k=T.current)==null||k.updateOptions(d)},[d],w);let ee=g.useCallback(()=>{var ne;if(!N.current)return;H.current(N.current);let k=Yr(N.current,e||"",n||r||"text",i||""),q=Yr(N.current,t||"",o||r||"text",a||"");(ne=T.current)==null||ne.setModel({original:k,modified:q})},[r,t,o,e,n,i,a]),Q=g.useCallback(()=>{var k;!X.current&&Z.current&&(T.current=N.current.editor.createDiffEditor(Z.current,{automaticLayout:!0,...d}),ee(),(k=N.current)==null||k.editor.setTheme(c),j(!0),X.current=!0)},[d,c,ee]);g.useEffect(()=>{w&&R.current(T.current,N.current)},[w]),g.useEffect(()=>{!C&&!w&&Q()},[C,w,Q]);function ae(){var q,ne,oe,fe;let k=(q=T.current)==null?void 0:q.getModel();s||((ne=k==null?void 0:k.original)==null||ne.dispose()),u||((oe=k==null?void 0:k.modified)==null||oe.dispose()),(fe=T.current)==null||fe.dispose()}return g.createElement(Vl,{width:h,height:p,isEditorReady:w,loading:l,_ref:Z,className:b,wrapperProps:_})}var tm=em;g.memo(tm);function rm(e){let t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}var nm=rm,Po=new Map;function om({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:u="Loading...",options:c={},overrideServices:l={},saveViewState:d=!0,keepCurrentModel:p=!1,width:h="100%",height:b="100%",className:_,wrapperProps:y={},beforeMount:O=Sn,onMount:w=Sn,onChange:j,onValidate:C=Sn}){let[m,T]=g.useState(!1),[N,Z]=g.useState(!0),R=g.useRef(null),H=g.useRef(null),X=g.useRef(null),ee=g.useRef(w),Q=g.useRef(O),ae=g.useRef(),k=g.useRef(n),q=nm(i),ne=g.useRef(!1),oe=g.useRef(!1);Ml(()=>{let E=Tl.init();return E.then(A=>(R.current=A)&&Z(!1)).catch(A=>(A==null?void 0:A.type)!=="cancelation"&&console.error("Monaco initialization: error:",A)),()=>H.current?de():E.cancel()}),Ze(()=>{var A,F,$,B;let E=Yr(R.current,e||n||"",t||o||"",i||r||"");E!==((A=H.current)==null?void 0:A.getModel())&&(d&&Po.set(q,(F=H.current)==null?void 0:F.saveViewState()),($=H.current)==null||$.setModel(E),d&&((B=H.current)==null||B.restoreViewState(Po.get(i))))},[i],m),Ze(()=>{var E;(E=H.current)==null||E.updateOptions(c)},[c],m),Ze(()=>{!H.current||n===void 0||(H.current.getOption(R.current.editor.EditorOption.readOnly)?H.current.setValue(n):n!==H.current.getValue()&&(oe.current=!0,H.current.executeEdits("",[{range:H.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),H.current.pushUndoStop(),oe.current=!1))},[n],m),Ze(()=>{var A,F;let E=(A=H.current)==null?void 0:A.getModel();E&&o&&((F=R.current)==null||F.editor.setModelLanguage(E,o))},[o],m),Ze(()=>{var E;s!==void 0&&((E=H.current)==null||E.revealLine(s))},[s],m),Ze(()=>{var E;(E=R.current)==null||E.editor.setTheme(a)},[a],m);let fe=g.useCallback(()=>{var E;if(!(!X.current||!R.current)&&!ne.current){Q.current(R.current);let A=i||r,F=Yr(R.current,n||e||"",t||o||"",A||"");H.current=(E=R.current)==null?void 0:E.editor.create(X.current,{model:F,automaticLayout:!0,...c},l),d&&H.current.restoreViewState(Po.get(A)),R.current.editor.setTheme(a),s!==void 0&&H.current.revealLine(s),T(!0),ne.current=!0}},[e,t,r,n,o,i,c,l,d,a,s]);g.useEffect(()=>{m&&ee.current(H.current,R.current)},[m]),g.useEffect(()=>{!N&&!m&&fe()},[N,m,fe]),k.current=n,g.useEffect(()=>{var E,A;m&&j&&((E=ae.current)==null||E.dispose(),ae.current=(A=H.current)==null?void 0:A.onDidChangeModelContent(F=>{oe.current||j(H.current.getValue(),F)}))},[m,j]),g.useEffect(()=>{if(m){let E=R.current.editor.onDidChangeMarkers(A=>{var $;let F=($=H.current.getModel())==null?void 0:$.uri;if(F&&A.find(B=>B.path===F.path)){let B=R.current.editor.getModelMarkers({resource:F});C==null||C(B)}});return()=>{E==null||E.dispose()}}return()=>{}},[m,C]);function de(){var E,A;(E=ae.current)==null||E.dispose(),p?d&&Po.set(i,H.current.saveViewState()):(A=H.current.getModel())==null||A.dispose(),H.current.dispose()}return g.createElement(Vl,{width:h,height:b,isEditorReady:m,loading:u,_ref:X,className:_,wrapperProps:y})}var im=om,am=g.memo(im),sm=am;const um=e=>{var t;(t=e.getAction("editor.action.formatDocument"))==null||t.run()},lm="gs-field-code",cm={minimap:{enabled:!1},lineNumbers:"off",scrollBeyondLastLine:!1,contextmenu:!1,fixedOverflowWidgets:!0,showFoldingControls:"always",suggestOnTriggerCharacters:!1,lineDecorationsWidth:0,renderLineHighlight:"none",wordWrapOverride1:"off",tabSize:2,scrollbar:{verticalScrollbarSize:8,horizontal:"hidden",alwaysConsumeMouseWheel:!1}};function fm({size:e,value:t,label:r,language:n,onChange:o,clean:i,padding:a,isDarkTheme:s,className:u,containerClassName:c,noMinHeight:l,onMount:d,readOnly:p,description:h}){const b=typeof t=="string"?t:JSON.stringify(t,null,2);return L.jsxs("div",{className:be(lm,"flex flex-col w-full h-full",c),children:[!!r&&L.jsx(jo,{children:r}),!!h&&L.jsx(jo,{as:"span",size:e,className:be(ye.txtLowEmphasis),capitalize:!1,children:h}),L.jsx("div",{className:be("flex-grow","w-full","h-full",!l&&"gs-utl-min-h-48"),style:{position:"relative",width:"100%",height:"100%"},children:L.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0},children:L.jsx(sm,{defaultLanguage:n,defaultValue:b,theme:s?"vs-dark":"light",className:be(ot.b,ot.rnd,ye.br,u),options:{...cm,readOnly:p,...i&&{domReadOnly:!0,overviewRulerLanes:0,selectOnLineNumbers:!1,folding:!1,matchBrackets:"never",guides:{indentation:!1}},...Ac(a)&&{lineDecorationsWidth:a*2,padding:{top:a,bottom:a}}},onChange:o,onMount:(_,y)=>{let O=!1;const w=()=>um(_);_.onDidChangeModelLanguageConfiguration(w),_.onDidScrollChange(()=>{O||(O=!0,w())}),setTimeout(w,10),d==null||d(_,y)}})})})]})}const dm=e=>e.Assets.getAll().reduce((n,o)=>{const i=o.getSrc(),a=i.match(/^data:([^;]+);/);if(a){const s=i.split(",")[1],u=qg(o.get("name"));n[i]={mime:a[1],name:u,base64:s}}return n},{}),pm=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Nl=(e,t,r={})=>{let n=e;const o=r.pathPfx||"";for(const i in t)if(n.includes(i)){const a=t[i];n=n.replace(new RegExp(pm(i),"g"),`${o}${a.name}`),a.found=!0}return n},vm=(e,t)=>`${t||""}${e||""}`,gm=(e,t)=>{const r=e?`<div ${hl}>${e}</div>`:"",n=t?`<div ${hl} data-gjs-global>${t}</div>`:"";return`${r}${n}`},hm=async(e,t={})=>{const{page:r,skipProject:n,assetsFolder:o="assets",filenameCss:i="style.css",styles:a,isMJML:s}=t,u=[],c=r?[r]:e.Pages.getAll(),l=dm(e),d=`${o}/`,p=e.getCss({keepUnusedStyles:!0,component:r==null?void 0:r.getMainComponent()})||"",h=Nl(p,l,{pathPfx:d}),b=a==="inline",_=a==="skip",y=ml(e).globalPageSettings||{},O=c.map(w=>{var Be,Lt,lt;const j=w.getName(),C=wr(w,"title")||j,m=wr(w,"favicon"),T=wr(w,"description"),N=wr(w,"keywords"),Z=wr(w,"socialTitle"),R=wr(w,"socialDescription"),H=wr(w,"socialImage"),X=Lo({page:w,key:"customCodeHead"}),ee=vm(X,y.customCodeHead),Q=Lo({page:w,key:"customCodeBody"}),ae=gm(Q,y.customCodeBody),k=w.getMainComponent(),q=e.getJs({component:k}),ne=q?`<script>${q}<\/script>`:"",oe=[],fe=[],de=k.toHTML({asDocument:!1}).replace("</body>",`${ae}${ne}</body>`),E=k.head;let A=C&&`<title>${C}</title>`,F=m&&`<link rel="icon" href="${m}"/>`,$=T&&`<meta name="description" content="${T}"/>`,B=N&&`<meta name="keywords" content="${N}"/>`,te=Z&&`<meta property="og:title" content="${Z}"/>`,U=R&&`<meta property="og:description" content="${R}"/>`,Y=H&&`<meta property="og:image" content="${H}"/>`,J='<meta charset="utf-8">',se='<meta name="viewport" content="width=device-width,initial-scale=1">',re='<meta name="robots" content="index,follow">',_e='<meta name="generator" content="GrapesJS Studio">';E.components().forEach(we=>{const je=we.toHTML();Se.title({cmp:we})?A=je:Se.favicon({cmp:we})?F=je:Se.description({cmp:we})?$=je:Se.keywords({cmp:we})?B=je:Se.socialTitle({cmp:we})?te=je:Se.socialDescription({cmp:we})?U=je:Se.socialImage({cmp:we})?Y=je:Se.charset({cmp:we})?J=je:Se.viewport({cmp:we})?se=je:Se.robots({cmp:we})?re=je:Se.generator({cmp:we})&&(_e=je)}),A&&oe.push(A),J&&oe.push(J),se&&oe.push(se),re&&oe.push(re),_e&&oe.push(_e),$&&oe.push($),B&&oe.push(B),te&&oe.push(te),U&&oe.push(U),Y&&oe.push(Y),F&&oe.push(F),fe.length&&oe.push(...fe),ee&&oe.push(ee),h&&!_&&oe.push(b?`<style>${h}</style>`:`<link rel="stylesheet" href="./${i}">`);const D=k.doctype||"<!DOCTYPE html>",xe=(Lt=(Be=k.docEl).__attrToString)==null?void 0:Lt.call(Be),Ne=(lt=E.__attrToString)==null?void 0:lt.call(E),Pe=s?e.runCommand("mjml-code-to-html").html:`${D}
|
|
113
|
+
<html${xe?` ${xe}`:""}>
|
|
114
|
+
<head${Ne?` ${Ne}`:""}>
|
|
115
|
+
${oe.join(`
|
|
116
|
+
`)}
|
|
117
|
+
</head>
|
|
118
|
+
${de}
|
|
119
|
+
</html>
|
|
120
|
+
`;return{filename:gl(e,w),content:Nl(Pe,l,{pathPfx:d}),mimeType:"text/html"}});u.push(...O),s&&c.forEach(w=>{u.push({filename:gl(e,w,"mjml"),content:w.getMainComponent().toHTML(),mimeType:"text/mjml"})});for(const w in l){const j=l[w];j.found&&u.push({path:o,filename:j.name,content:atob(j.base64),mimeType:j.mime})}return h&&!b&&!_&&u.push({filename:i,content:h,mimeType:"text/css"}),n||u.push({filename:"gjs-project.grapesjs",content:JSON.stringify(e.getProjectData()),mimeType:"application/json"}),u};dn(function({buttonProps:t,content:r,code:n,onAction:o}){const i=th(),a=Jg(),s=Sa(),{isProjectTypeEmail:u}=s,c=s.editor,{isDarkTheme:l}=eh(),[d,p]=g.useState(),h=()=>{const _=(d||"").trim();o?o(_):c.setComponents(_),i.close()};g.useEffect(()=>{n?p(n):(async()=>{if(u)p(c.getHtml());else{const O=(await hm(c,{page:c.Pages.getSelected(),skipProject:!0,styles:"inline"})).find(w=>w.mimeType==="text/html");O&&p(O.content)}})()},[]);const b=(t==null?void 0:t.children)||a.t("actions.importCode.button");return L.jsxs(Ce,{col:!0,space:"m",children:[L.jsx(le,{children:r??a.t("actions.importCode.content")}),L.jsx(le,{className:ge("h-96"),children:d!==void 0&&L.jsx(fm,{value:d,onChange:_=>p(_||""),isDarkTheme:l,language:"html"})}),L.jsx(Ce,{justify:"end",children:L.jsx(Ui,{size:"m2",variant:"pr",onClick:h,...t,children:b})})]})});function mm(e){const{Blocks:t}=e,r="Content",n="Layout",o={className:"h-7",full:!0,space:"s",nowrap:!0},i={category:n,full:!0},a="gjs-border-2 gjs-border-current gjs-rounded-sm",s=(u,c)=>{t.add(u,{select:!0,category:r,...c})};s("mj-text",{label:"Text",media:`<svg viewBox="0 0 24 24">
|
|
121
|
+
<path fill="currentColor" d="M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" />
|
|
122
|
+
</svg>`,content:"<mj-text>Insert text here</mj-text>",activate:!0}),s("mj-button",{label:"Button",media:`<svg viewBox="0 0 24 24">
|
|
123
|
+
<path fill="currentColor" d="M20 20.5C20 21.3 19.3 22 18.5 22H13C12.6 22 12.3 21.9 12 21.6L8 17.4L8.7 16.6C8.9 16.4 9.2 16.3 9.5 16.3H9.7L12 18V9C12 8.4 12.4 8 13 8S14 8.4 14 9V13.5L15.2 13.6L19.1 15.8C19.6 16 20 16.6 20 17.1V20.5M20 2H4C2.9 2 2 2.9 2 4V12C2 13.1 2.9 14 4 14H8V12H4V4H20V12H18V14H20C21.1 14 22 13.1 22 12V4C22 2.9 21.1 2 20 2Z" />
|
|
124
|
+
</svg>`,content:"<mj-button>Button</mj-button>"}),s("mj-image",{label:"Image",media:`<svg viewBox="0 0 24 24">
|
|
125
|
+
<path fill="currentColor" d="M21,3H3C2,3 1,4 1,5V19A2,2 0 0,0 3,21H21C22,21 23,20 23,19V5C23,4 22,3 21,3M5,17L8.5,12.5L11,15.5L14.5,11L19,17H5Z" />
|
|
126
|
+
</svg>`,content:`<mj-image src="${Sc}"/>`,activate:!0}),s("mj-divider",{label:"Divider",media:`<svg viewBox="0 0 24 24">
|
|
127
|
+
<path fill="currentColor" d="M21 18H2V20H21V18M19 10V14H4V10H19M20 8H3C2.45 8 2 8.45 2 9V15C2 15.55 2.45 16 3 16H20C20.55 16 21 15.55 21 15V9C21 8.45 20.55 8 20 8M21 4H2V6H21V4Z" />
|
|
128
|
+
</svg>`,content:"<mj-divider/>"}),s("mj-social",{label:"Social",media:`<svg viewBox="0 0 24 24">
|
|
129
|
+
<path fill="currentColor" d="M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z" />
|
|
130
|
+
</svg>`,content:`<mj-social font-size="12px" icon-size="24px" border-radius="12px" mode="horizontal">
|
|
131
|
+
<mj-social-element name="facebook"></mj-social-element>
|
|
132
|
+
<mj-social-element name="linkedin"></mj-social-element>
|
|
133
|
+
<mj-social-element name="twitter"></mj-social-element>
|
|
134
|
+
</mj-social>`}),s("mj-social-element",{label:"Social Element",media:`<svg viewBox="0 0 24 24">
|
|
135
|
+
<path d="M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12S8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5S19.66 2 18 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12S4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.34C15.11 18.55 15.08 18.77 15.08 19C15.08 20.61 16.39 21.91 18 21.91S20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08M18 4C18.55 4 19 4.45 19 5S18.55 6 18 6 17 5.55 17 5 17.45 4 18 4M6 13C5.45 13 5 12.55 5 12S5.45 11 6 11 7 11.45 7 12 6.55 13 6 13M18 20C17.45 20 17 19.55 17 19S17.45 18 18 18 19 18.45 19 19 18.55 20 18 20Z" />
|
|
136
|
+
</svg>`,content:'<mj-social-element name="facebook">Facebook</mj-social-element>'}),s("mj-spacer",{label:"Spacer",media:`<svg viewBox="0 0 24 24">
|
|
137
|
+
<path fill="currentColor" d="M8,18H11V15H2V13H22V15H13V18H16L12,22L8,18M12,2L8,6H11V9H2V11H22V9H13V6H16L12,2Z" />
|
|
138
|
+
</svg>`,content:"<mj-spacer/>"}),s("mj-navbar",{label:"Navbar",media:`<svg viewBox="0 0 24 24">
|
|
139
|
+
<path fill="currentColor" d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />
|
|
140
|
+
</svg>`,content:`<mj-navbar>
|
|
141
|
+
<mj-navbar-link>HOME</mj-navbar-link>
|
|
142
|
+
<mj-navbar-link>ABOUT</mj-navbar-link>
|
|
143
|
+
<mj-navbar-link>CONTACT</mj-navbar-link>
|
|
144
|
+
<mj-navbar-link>BLOG</mj-navbar-link>
|
|
145
|
+
</mj-navbar>`}),s("mj-hero",{label:"Hero",media:`<svg viewBox="0 0 24 24">
|
|
146
|
+
<path fill="currentColor" d="M20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20M4,6V18H20V6H4M6,9H18V11H6V9M6,13H16V15H6V13Z" />
|
|
147
|
+
</svg>`,content:`<mj-hero mode="fixed-height" height="469px" background-width="600px" background-height="469px" background-url="${Wa({width:600,height:300,text:"Hero Image",fg:"555"})}" background-color="#2a3448" padding="100px 0px">
|
|
148
|
+
<mj-text padding="20px" color="#ffffff" font-family="Helvetica" align="center" font-size="45px" line-height="45px" font-weight="900">
|
|
149
|
+
Heading title
|
|
150
|
+
</mj-text>
|
|
151
|
+
<mj-text padding="20px" color="#ffffff" font-family="Helvetica" align="center">
|
|
152
|
+
Place here your hero content text
|
|
153
|
+
</mj-text>
|
|
154
|
+
<mj-button href="https://mjml.io/" align="center">
|
|
155
|
+
Call to action!
|
|
156
|
+
</mj-button>
|
|
157
|
+
</mj-hero>`}),s("mj-raw",{label:"HTML block",activate:!0,media:`<svg viewBox="0 0 24 24">
|
|
158
|
+
<path d="M5.59 3.41L7 4.82L3.82 8L7 11.18L5.59 12.6L1 8L5.59 3.41M11.41 3.41L16 8L11.41 12.6L10 11.18L13.18 8L10 4.82L11.41 3.41M22 6V18C22 19.11 21.11 20 20 20H4C2.9 20 2 19.11 2 18V14H4V18H20V6H17.03V4H20C21.11 4 22 4.89 22 6Z" />
|
|
159
|
+
</svg>`,content:`<mj-raw>
|
|
160
|
+
<span>Insert here you custom HTML</span>
|
|
161
|
+
</mj-raw>`}),s("mj-1-column",{...i,label:"1 Column",mediaReact:L.jsx(Ce,{...o,children:L.jsx(le,{className:a,grow:!0})}),content:`<mj-section>
|
|
162
|
+
<mj-column></mj-column>
|
|
163
|
+
</mj-section>`}),s("mj-2-columns-50-50",{...i,label:"2 Columns 50/50",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0})]}),content:`<mj-section>
|
|
164
|
+
<mj-column></mj-column>
|
|
165
|
+
<mj-column></mj-column>
|
|
166
|
+
</mj-section>`}),s("mj-2-columns-25-75",{...i,label:"2 Columns 25/75",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-3/4")})]}),content:`<mj-section>
|
|
167
|
+
<mj-column width="25%"></mj-column>
|
|
168
|
+
<mj-column width="75%"></mj-column>
|
|
169
|
+
</mj-section>`}),s("mj-2-columns-33-67",{...i,label:"2 Columns 33/67",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/3")}),L.jsx(le,{className:be(a,"gs-utl-basis-2/3")})]}),content:`<mj-section>
|
|
170
|
+
<mj-column width="33%"></mj-column>
|
|
171
|
+
<mj-column width="67%"></mj-column>
|
|
172
|
+
</mj-section>`}),s("mj-2-columns-67-33",{...i,label:"2 Columns 67/33",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-2/3")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/3")})]}),content:`<mj-section>
|
|
173
|
+
<mj-column width="67%"></mj-column>
|
|
174
|
+
<mj-column width="33%"></mj-column>
|
|
175
|
+
</mj-section>`}),s("mj-2-columns-75-25",{...i,label:"2 Columns 75/25",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-3/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")})]}),content:`<mj-section>
|
|
176
|
+
<mj-column width="75%"></mj-column>
|
|
177
|
+
<mj-column width="25%"></mj-column>
|
|
178
|
+
</mj-section>`}),s("mj-3-columns",{...i,label:"3 Columns",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0})]}),content:`<mj-section>
|
|
179
|
+
<mj-column></mj-column>
|
|
180
|
+
<mj-column></mj-column>
|
|
181
|
+
<mj-column></mj-column>
|
|
182
|
+
</mj-section>`}),s("mj-3-columns-25-25-50",{...i,label:"3 Columns 25/25/50",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-2/4")})]}),content:`<mj-section>
|
|
183
|
+
<mj-column width="25%"></mj-column>
|
|
184
|
+
<mj-column width="25%"></mj-column>
|
|
185
|
+
<mj-column width="50%"></mj-column>
|
|
186
|
+
</mj-section>`}),s("mj-3-columns-25-50-25",{...i,label:"3 Columns 25/50/25",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-2/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")})]}),content:`<mj-section>
|
|
187
|
+
<mj-column width="25%"></mj-column>
|
|
188
|
+
<mj-column width="50%"></mj-column>
|
|
189
|
+
<mj-column width="25%"></mj-column>
|
|
190
|
+
</mj-section>`}),s("mj-3-columns-50-25-25",{...i,label:"3 Columns 50/25/25",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-2/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")})]}),content:`<mj-section>
|
|
191
|
+
<mj-column width="50%"></mj-column>
|
|
192
|
+
<mj-column width="25%"></mj-column>
|
|
193
|
+
<mj-column width="25%"></mj-column>
|
|
194
|
+
</mj-section>`}),s("mj-4-columns",{...i,label:"4 Columns",mediaReact:L.jsxs(Ce,{...o,children:[L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0})]}),content:`<mj-section>
|
|
195
|
+
<mj-column></mj-column>
|
|
196
|
+
<mj-column></mj-column>
|
|
197
|
+
<mj-column></mj-column>
|
|
198
|
+
<mj-column></mj-column>
|
|
199
|
+
</mj-section>`})}ua.email+"",ua.web+"";const bm=/\s(?![^(]*\))/,kl=/^-?[0-9]+[a-zA-Z%]{0,}$/;function Hl(e){const t=e.split(bm),r=t.indexOf("inset")>=0,n=t.filter(l=>l!=="inset"),o=n.filter(l=>!kl.test(l))[0]||"currentColor",i=n.filter(l=>kl.test(l)),[a="0",s="0",u="0",c="0"]=i;return{x:a,y:s,blur:u,spread:c,inset:r,color:o}}function ga(e){const t=e.indexOf("(")+1,r=e.lastIndexOf(")");return{name:e.substring(0,t-1).trim(),value:String.prototype.substring.apply(e,[t,r>=0?r:void 0]).trim()}}var Dl={},ha={exports:{}},jn={};/**
|
|
200
|
+
* @license React
|
|
201
|
+
* react-jsx-runtime.production.min.js
|
|
202
|
+
*
|
|
203
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the MIT license found in the
|
|
206
|
+
* LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/var Rl;function ym(){if(Rl)return jn;Rl=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,u,c){var l,d={},p=null,h=null;c!==void 0&&(p=""+c),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(h=u.ref);for(l in u)n.call(u,l)&&!i.hasOwnProperty(l)&&(d[l]=u[l]);if(s&&s.defaultProps)for(l in u=s.defaultProps,u)d[l]===void 0&&(d[l]=u[l]);return{$$typeof:t,type:s,key:p,ref:h,props:d,_owner:o.current}}return jn.Fragment=r,jn.jsx=a,jn.jsxs=a,jn}var No={};/**
|
|
208
|
+
* @license React
|
|
209
|
+
* react-jsx-runtime.development.js
|
|
210
|
+
*
|
|
211
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the MIT license found in the
|
|
214
|
+
* LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/var $l;function _m(){return $l||($l=1,Dl.NODE_ENV!=="production"&&function(){var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.iterator,_="@@iterator";function y(v){if(v===null||typeof v!="object")return null;var P=b&&v[b]||v[_];return typeof P=="function"?P:null}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(v){{for(var P=arguments.length,f=new Array(P>1?P-1:0),x=1;x<P;x++)f[x-1]=arguments[x];j("error",v,f)}}function j(v,P,f){{var x=O.ReactDebugCurrentFrame,V=x.getStackAddendum();V!==""&&(P+="%s",f=f.concat([V]));var I=f.map(function(W){return String(W)});I.unshift("Warning: "+P),Function.prototype.apply.call(console[v],console,I)}}var C=!1,m=!1,T=!1,N=!1,Z=!1,R;R=Symbol.for("react.module.reference");function H(v){return!!(typeof v=="string"||typeof v=="function"||v===n||v===i||Z||v===o||v===c||v===l||N||v===h||C||m||T||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===a||v.$$typeof===s||v.$$typeof===u||v.$$typeof===R||v.getModuleId!==void 0))}function X(v,P,f){var x=v.displayName;if(x)return x;var V=P.displayName||P.name||"";return V!==""?f+"("+V+")":f}function ee(v){return v.displayName||"Context"}function Q(v){if(v==null)return null;if(typeof v.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case l:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case s:var P=v;return ee(P)+".Consumer";case a:var f=v;return ee(f._context)+".Provider";case u:return X(v,v.render,"ForwardRef");case d:var x=v.displayName||null;return x!==null?x:Q(v.type)||"Memo";case p:{var V=v,I=V._payload,W=V._init;try{return Q(W(I))}catch{return null}}}return null}var ae=Object.assign,k=0,q,ne,oe,fe,de,E,A;function F(){}F.__reactDisabledLog=!0;function $(){{if(k===0){q=console.log,ne=console.info,oe=console.warn,fe=console.error,de=console.group,E=console.groupCollapsed,A=console.groupEnd;var v={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}k++}}function B(){{if(k--,k===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ae({},v,{value:q}),info:ae({},v,{value:ne}),warn:ae({},v,{value:oe}),error:ae({},v,{value:fe}),group:ae({},v,{value:de}),groupCollapsed:ae({},v,{value:E}),groupEnd:ae({},v,{value:A})})}k<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=O.ReactCurrentDispatcher,U;function Y(v,P,f){{if(U===void 0)try{throw Error()}catch(V){var x=V.stack.trim().match(/\n( *(at )?)/);U=x&&x[1]||""}return`
|
|
216
|
+
`+U+v}}var J=!1,se;{var re=typeof WeakMap=="function"?WeakMap:Map;se=new re}function _e(v,P){if(!v||J)return"";{var f=se.get(v);if(f!==void 0)return f}var x;J=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=te.current,te.current=null,$();try{if(P){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(ke){x=ke}Reflect.construct(v,[],W)}else{try{W.call()}catch(ke){x=ke}v.call(W.prototype)}}else{try{throw Error()}catch(ke){x=ke}v()}}catch(ke){if(ke&&x&&typeof ke.stack=="string"){for(var G=ke.stack.split(`
|
|
217
|
+
`),ie=x.stack.split(`
|
|
218
|
+
`),K=G.length-1,ce=ie.length-1;K>=1&&ce>=0&&G[K]!==ie[ce];)ce--;for(;K>=1&&ce>=0;K--,ce--)if(G[K]!==ie[ce]){if(K!==1||ce!==1)do if(K--,ce--,ce<0||G[K]!==ie[ce]){var pe=`
|
|
219
|
+
`+G[K].replace(" at new "," at ");return v.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",v.displayName)),typeof v=="function"&&se.set(v,pe),pe}while(K>=1&&ce>=0);break}}}finally{J=!1,te.current=I,B(),Error.prepareStackTrace=V}var Oe=v?v.displayName||v.name:"",He=Oe?Y(Oe):"";return typeof v=="function"&&se.set(v,He),He}function D(v,P,f){return _e(v,!1)}function xe(v){var P=v.prototype;return!!(P&&P.isReactComponent)}function Ne(v,P,f){if(v==null)return"";if(typeof v=="function")return _e(v,xe(v));if(typeof v=="string")return Y(v);switch(v){case c:return Y("Suspense");case l:return Y("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case u:return D(v.render);case d:return Ne(v.type,P,f);case p:{var x=v,V=x._payload,I=x._init;try{return Ne(I(V),P,f)}catch{}}}return""}var Pe=Object.prototype.hasOwnProperty,Be={},Lt=O.ReactDebugCurrentFrame;function lt(v){if(v){var P=v._owner,f=Ne(v.type,v._source,P?P.type:null);Lt.setExtraStackFrame(f)}else Lt.setExtraStackFrame(null)}function we(v,P,f,x,V){{var I=Function.call.bind(Pe);for(var W in v)if(I(v,W)){var G=void 0;try{if(typeof v[W]!="function"){var ie=Error((x||"React class")+": "+f+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ie.name="Invariant Violation",ie}G=v[W](P,W,x,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(K){G=K}G&&!(G instanceof Error)&&(lt(V),w("%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).",x||"React class",f,W,typeof G),lt(null)),G instanceof Error&&!(G.message in Be)&&(Be[G.message]=!0,lt(V),w("Failed %s type: %s",f,G.message),lt(null))}}}var je=Array.isArray;function rr(v){return je(v)}function nr(v){{var P=typeof Symbol=="function"&&Symbol.toStringTag,f=P&&v[Symbol.toStringTag]||v.constructor.name||"Object";return f}}function Er(v){try{return xr(v),!1}catch{return!0}}function xr(v){return""+v}function or(v){if(Er(v))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nr(v)),xr(v)}var mt=O.ReactCurrentOwner,Tt={key:!0,ref:!0,__self:!0,__source:!0},zo,Mn,Zr;Zr={};function Pn(v){if(Pe.call(v,"ref")){var P=Object.getOwnPropertyDescriptor(v,"ref").get;if(P&&P.isReactWarning)return!1}return v.ref!==void 0}function Ta(v){if(Pe.call(v,"key")){var P=Object.getOwnPropertyDescriptor(v,"key").get;if(P&&P.isReactWarning)return!1}return v.key!==void 0}function Va(v,P){if(typeof v.ref=="string"&&mt.current&&P&&mt.current.stateNode!==P){var f=Q(mt.current.type);Zr[f]||(w('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',Q(mt.current.type),v.ref),Zr[f]=!0)}}function Ma(v,P){{var f=function(){zo||(zo=!0,w("%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)",P))};f.isReactWarning=!0,Object.defineProperty(v,"key",{get:f,configurable:!0})}}function Pa(v,P){{var f=function(){Mn||(Mn=!0,w("%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)",P))};f.isReactWarning=!0,Object.defineProperty(v,"ref",{get:f,configurable:!0})}}var Na=function(v,P,f,x,V,I,W){var G={$$typeof:t,type:v,key:P,ref:f,props:W,_owner:I};return G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(G,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G};function ka(v,P,f,x,V){{var I,W={},G=null,ie=null;f!==void 0&&(or(f),G=""+f),Ta(P)&&(or(P.key),G=""+P.key),Pn(P)&&(ie=P.ref,Va(P,V));for(I in P)Pe.call(P,I)&&!Tt.hasOwnProperty(I)&&(W[I]=P[I]);if(v&&v.defaultProps){var K=v.defaultProps;for(I in K)W[I]===void 0&&(W[I]=K[I])}if(G||ie){var ce=typeof v=="function"?v.displayName||v.name||"Unknown":v;G&&Ma(W,ce),ie&&Pa(W,ce)}return Na(v,G,ie,V,x,mt.current,W)}}var Nn=O.ReactCurrentOwner,Kr=O.ReactDebugCurrentFrame;function Ut(v){if(v){var P=v._owner,f=Ne(v.type,v._source,P?P.type:null);Kr.setExtraStackFrame(f)}else Kr.setExtraStackFrame(null)}var Vt;Vt=!1;function Cr(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function Xr(){{if(Nn.current){var v=Q(Nn.current.type);if(v)return`
|
|
220
|
+
|
|
221
|
+
Check the render method of \``+v+"`."}return""}}function Uo(v){return""}var Wo={};function qo(v){{var P=Xr();if(!P){var f=typeof v=="string"?v:v.displayName||v.name;f&&(P=`
|
|
222
|
+
|
|
223
|
+
Check the top-level render call using <`+f+">.")}return P}}function Yo(v,P){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var f=qo(P);if(Wo[f])return;Wo[f]=!0;var x="";v&&v._owner&&v._owner!==Nn.current&&(x=" It was passed a child from "+Q(v._owner.type)+"."),Ut(v),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,x),Ut(null)}}function kn(v,P){{if(typeof v!="object")return;if(rr(v))for(var f=0;f<v.length;f++){var x=v[f];Cr(x)&&Yo(x,P)}else if(Cr(v))v._store&&(v._store.validated=!0);else if(v){var V=y(v);if(typeof V=="function"&&V!==v.entries)for(var I=V.call(v),W;!(W=I.next()).done;)Cr(W.value)&&Yo(W.value,P)}}}function Go(v){{var P=v.type;if(P==null||typeof P=="string")return;var f;if(typeof P=="function")f=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===u||P.$$typeof===d))f=P.propTypes;else return;if(f){var x=Q(P);we(f,v.props,"prop",x,v)}else if(P.PropTypes!==void 0&&!Vt){Vt=!0;var V=Q(P);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ha(v){{for(var P=Object.keys(v.props),f=0;f<P.length;f++){var x=P[f];if(x!=="children"&&x!=="key"){Ut(v),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Ut(null);break}}v.ref!==null&&(Ut(v),w("Invalid attribute `ref` supplied to `React.Fragment`."),Ut(null))}}function Zo(v,P,f,x,V,I){{var W=H(v);if(!W){var G="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(G+=" 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 ie=Uo();ie?G+=ie:G+=Xr();var K;v===null?K="null":rr(v)?K="array":v!==void 0&&v.$$typeof===t?(K="<"+(Q(v.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):K=typeof v,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",K,G)}var ce=ka(v,P,f,V,I);if(ce==null)return ce;if(W){var pe=P.children;if(pe!==void 0)if(x)if(rr(pe)){for(var Oe=0;Oe<pe.length;Oe++)kn(pe[Oe],v);Object.freeze&&Object.freeze(pe)}else w("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 kn(pe,v)}return v===n?Ha(ce):Go(ce),ce}}function Ko(v,P,f){return Zo(v,P,f,!0)}function Xo(v,P,f){return Zo(v,P,f,!1)}var Da=Xo,Ra=Ko;No.Fragment=n,No.jsx=Da,No.jsxs=Ra}()),No}Dl.NODE_ENV==="production"?ha.exports=ym():ha.exports=_m();var Me=ha.exports;const Bl=g.createContext(null),wm=({children:e})=>{const[t,r]=g.useState({setEditor:n=>{r(o=>({...o,editor:n}))}});return Me.jsx(Bl.Provider,{value:t,children:e})},jt=()=>{const e=g.useContext(Bl);if(!e)throw new Error("useEditorInstance must be used within EditorInstanceProvider");return e},Il=g.createContext(null),Om=({children:e})=>{const[t,r]=g.useState(()=>({setRefCanvas(n){r(o=>({...o,refCanvas:n}))},setCustomModal(n){r(o=>({...o,customModal:n}))},setCustomAssets(n){r(o=>({...o,customAssets:n}))},setCustomBlocks(n){r(o=>({...o,customBlocks:n}))},setCustomRte(n){r(o=>({...o,customRte:n}))},setCustomStyles(n){r(o=>({...o,customStyles:n}))},setCustomLayers(n){r(o=>({...o,customLayers:n}))},setCustomSelectors(n){r(o=>({...o,customSelectors:n}))},setCustomTraits(n){r(o=>({...o,customTraits:n}))},setReady(n){r(o=>({...o,ready:n}))}}));return Me.jsx(Il.Provider,{value:t,children:e})},Bt=()=>{const e=g.useContext(Il);if(!e)throw new Error("useEditorOptions must be used within EditorOptionsProvider");return e};function Em(...e){return(Array.isArray(e[0])?e[0]:[...e]).filter(Boolean).join(" ")}function Qt(e){return typeof e=="function"}function gt(){}const Fl=e=>typeof e=="string",xm=async e=>{const t=document.createElement("link");t.href=e,t.rel="stylesheet",document.head.appendChild(t)},zl=e=>{const t=Fl(e)?{id:e,src:e}:e;return new Promise((r,n)=>{const o=document.createElement("script");if(document.querySelector(`script[src="${t.src}"]`))return r(t.id);o.src=t.src,o.onload=()=>r(t.id),o.onerror=()=>n(t.id),document.head.appendChild(o)})},Cm=e=>{const t=e.map(r=>zl(r));return Promise.allSettled(t)},Ul=e=>function(){const t=g.useRef(null);return g.useEffect(()=>{const{current:r}=t;r&&(Fl(e)?r.innerHTML=e:r.appendChild(e))},[t.current]),Me.jsx("div",{ref:t})},Wl=new WeakMap;function Gr(e){if(!e)return()=>null;const t=Wl.get(e);if(t)return t;const r=function({children:n}){return Hn.createPortal(n,e)};return Wl.set(e,r),r}g.memo(function({children:e}){const{editor:t}=jt(),r=Bt(),[n,o]=g.useState(!1),[i,a]=g.useState({assets:[],types:[],close:()=>{},select:()=>{},Container:()=>null});return g.useEffect(()=>{if(!t)return;const s=t.Assets.events.custom,u=({open:c,assets:l,types:d,select:p,close:h,container:b})=>{c&&a({assets:l,types:d,select:p,close:h,Container:Gr(b)}),o(c)};return t.on(s,u),()=>{t.off(s,u)}},[t]),g.useEffect(()=>r.setCustomAssets(!0),[]),t&&Qt(e)?e({open:n,...i}):null}),g.memo(function({children:e}){const{editor:t}=jt(),r=Bt(),[n,o]=g.useState(()=>({blocks:[],dragStart:gt,dragStop:gt,mapCategoryBlocks:new Map,Container:()=>null}));return g.useEffect(()=>{if(!t)return;const i=t.Blocks.events.custom,a=({blocks:s,container:u,dragStart:c,dragStop:l})=>{const d=s.reduce((p,h)=>{const b=h.getCategoryLabel(),_=p.get(b);return _?_.push(h):p.set(b,[h]),p},new Map);o({blocks:s,dragStart:c,dragStop:l,mapCategoryBlocks:d,Container:Gr(u)})};return t.on(i,a),t.Blocks.__trgCustom(),()=>{t.off(i,a)}},[t]),g.useEffect(()=>r.setCustomBlocks(!0),[]),t&&Qt(e)?e(n):null}),g.memo(function({children:e}){const{editor:t}=jt(),[r,n]=g.useState(()=>({devices:[],selected:"",select:gt}));return g.useEffect(()=>{if(!t)return;const{Devices:o}=t,i=o.events.all,a=()=>{var s;n({devices:o.getDevices(),selected:(s=o.getSelected())==null?void 0:s.id,select:u=>o.select(u)})};return t.on(i,a),a(),()=>{t.off(i,a)}},[t]),t&&Qt(e)?e(r):null});const Sm=e=>!!(e&&!Array.isArray(e)&&typeof e=="object");async function jm(e){const t=e.map(({id:i,src:a})=>({id:i,src:a})),r=e.reduce((i,a)=>(i[a.id]=a,i),{}),n=[],o=[];return(await Cm(t)).forEach(i=>{i.status==="fulfilled"?n.push(r[i.value]):o.push(r[i.reason])}),{loaded:n,failed:o}}const Am=async e=>{const t=[...e],r={};if(t.length){const n={},o=[];if(t.forEach((i,a)=>{Sm(i)&&(n[i.id]={index:a},o.push(i))}),o.length){const{loaded:i}=await jm(o);i.forEach(({id:a,options:s})=>{n[a].loaded=!0,r[a]=s||{}})}Object.keys(n).forEach(i=>{const a=n[i];a.loaded?t[a.index]=i:t[a.index]=!1})}return{plugins:t.filter(Boolean),pluginOptions:r}},Lm=g.memo(function({children:e,className:t,style:r,options:n={},plugins:o=[],grapesjs:i,grapesjsCss:a,onEditor:s=gt,onReady:u,onUpdate:c,waitReady:l,...d}){const{setEditor:p}=jt(),h=Bt(),[b,_]=g.useState(!1),y=g.useRef(null);g.useEffect(()=>{if(!h.ready||!y.current)return;const N=y.current,Z=h.refCanvas;let R,H={},X=[];const ee=Q=>{const ae={height:"100%",...n,plugins:[...X,...n.plugins||[]],pluginsOpts:{...n.pluginsOpts,...H},modal:{...n.modal,custom:!!h.customModal},assetManager:{...n.assetManager,custom:!!h.customAssets},styleManager:{...n.styleManager,custom:!!h.customStyles},blockManager:{...n.blockManager,custom:!!h.customBlocks},richTextEditor:{...n.richTextEditor,custom:!!h.customRte},layerManager:{...n.layerManager,custom:!!h.customLayers},traitManager:{...n.traitManager,custom:!!h.customTraits},selectorManager:{...n.selectorManager,custom:!!h.customSelectors},container:Z||N,customUI:!!Z,...Z?{panels:{defaults:[]}}:{}};R=Q.init(ae),p(R),s(R),c&&R.on("update",()=>{c(R.getProjectData(),R)}),R.onReady(()=>{_(!0),u==null||u(R)})};return(async()=>{a&&await xm(a);const Q=await Am(o);X=Q.plugins,H=Q.pluginOptions,typeof i=="string"?(await zl(i),ee(window.grapesjs)):ee(i)})(),()=>R==null?void 0:R.destroy()},[h.ready]);const O=n.height??"100%",w=n.width??"100%",j=Em("gjs-editor-wrapper",t),C=l&&!b,m=g.useMemo(()=>({...r,height:O,width:w}),[O,w,r]),T=g.useMemo(()=>({...m,...C?{opacity:0,width:0,height:0}:{}}),[m,C]);return Me.jsxs(Me.Fragment,{children:[l&&!b?Me.jsx("div",{className:j,style:m,children:l}):null,Me.jsx("div",{...d,ref:y,className:j,style:T,children:e})]})}),Tm=g.memo(function(){const e=Bt();return g.useEffect(()=>e.setReady(!0),[]),Me.jsx(Me.Fragment,{})});g.memo(function({children:e,...t}){return Me.jsx(wm,{children:Me.jsx(Om,{children:Me.jsxs(Lm,{...t,children:[e,Me.jsx(Tm,{})]})})})}),g.memo(function({children:e}){const{editor:t}=jt(),r=Bt(),[n,o]=g.useState(()=>({root:void 0,Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Layers:i}=t,a=i.events.custom,s=({container:u})=>{o({root:i.getRoot(),Container:Gr(u)})};return t.on(a,s),i.__trgCustom({}),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomLayers(!0),[]),t&&Qt(e)?e(n):null}),g.memo(function({children:e}){const{editor:t}=jt(),r=Bt(),[n,o]=g.useState(!1),[i,a]=g.useState({title:Me.jsx(Me.Fragment,{}),content:Me.jsx(Me.Fragment,{}),attributes:{},close:gt});return g.useEffect(()=>{if(!t)return;const s="modal",u=({open:c,title:l,content:d,close:p,attributes:h})=>{c&&a({title:g.createElement(Ul(l)),content:g.createElement(Ul(d)),attributes:h,close:p}),o(c)};return t.on(s,u),()=>{t.off(s,u)}},[t]),g.useEffect(()=>r.setCustomModal(!0),[]),t&&typeof e=="function"?e({open:n,...i}):null}),g.memo(function({children:e}){const{editor:t}=jt(),[r,n]=g.useState(()=>({pages:[],selected:void 0,select:gt,add:gt,remove:gt}));return g.useEffect(()=>{if(!t)return;const{Pages:o}=t,i=o.events.all,a=()=>{n({pages:o.getAll(),selected:o.getSelected(),select:(...s)=>o.select(...s),add:(...s)=>o.add(...s),remove:(...s)=>o.remove(...s)})};return t.on(i,a),a(),()=>{t.off(i,a)}},[t]),t&&Qt(e)?e(r):null}),g.memo(function({children:e}){const{editor:t}=jt(),r=Bt(),[n,o]=g.useState(()=>({selectors:[],states:[],selectedState:"",targets:[],addSelector:gt,removeSelector:gt,setState:gt,Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Selectors:i}=t,a=i.events.custom,s=({container:u})=>{o({selectors:i.getSelected(),states:i.getStates(),selectedState:i.getState(),targets:i.getSelectedTargets().map(c=>c.getSelectorsString()),addSelector:(...c)=>i.addSelected(...c),removeSelector:(...c)=>i.removeSelected(...c),setState:(...c)=>i.setState(...c),Container:Gr(u)})};return t.on(a,s),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomSelectors(!0),[]),t&&Qt(e)?e(n):null}),g.memo(function({children:e}){const{editor:t}=jt(),r=Bt(),[n,o]=g.useState(()=>({sectors:[],Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Styles:i}=t,a=i.events.custom,s=({container:u})=>{o({sectors:i.getSectors({visible:!0}),Container:Gr(u)})};return t.on(a,s),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomStyles(!0),[]),t&&Qt(e)?e(n):null}),g.memo(function({children:e}){const{editor:t}=jt(),r=Bt(),[n,o]=g.useState(()=>({traits:[],Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Traits:i}=t,a=i.events.custom,s=({container:u})=>{o({traits:i.getCurrent(),Container:Gr(u)})};return t.on(a,s),i.__trgCustom(),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomTraits(!0),[]),t&&Qt(e)?e(n):null});var Vm={grad:.9,turn:360,rad:360/(2*Math.PI)},It=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Le=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},ut=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},ql=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Yl=function(e){return{r:ut(e.r,0,255),g:ut(e.g,0,255),b:ut(e.b,0,255),a:ut(e.a)}},ma=function(e){return{r:Le(e.r),g:Le(e.g),b:Le(e.b),a:Le(e.a,3)}},Mm=/^#([0-9a-f]{3,8})$/i,ko=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Gl=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=a?i===t?(r-n)/a:i===r?2+(n-t)/a:4+(t-r)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},Zl=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var i=Math.floor(t),a=n*(1-r),s=n*(1-(t-i)*r),u=n*(1-(1-t+i)*r),c=i%6;return{r:255*[n,s,a,a,u,n][c],g:255*[u,n,n,s,a,a][c],b:255*[a,a,u,n,n,s][c],a:o}},Kl=function(e){return{h:ql(e.h),s:ut(e.s,0,100),l:ut(e.l,0,100),a:ut(e.a)}},Xl=function(e){return{h:Le(e.h),s:Le(e.s),l:Le(e.l),a:Le(e.a,3)}},Jl=function(e){return Zl((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},An=function(e){return{h:(t=Gl(e)).h,s:(o=(200-(r=t.s))*(n=t.v)/100)>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,n,o},Pm=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Nm=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,km=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hm=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ba={string:[[function(e){var t=Mm.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Le(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Le(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=km.exec(e)||Hm.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Yl({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Pm.exec(e)||Nm.exec(e);if(!t)return null;var r,n,o=Kl({h:(r=t[1],n=t[2],n===void 0&&(n="deg"),Number(r)*(Vm[n]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Jl(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=o===void 0?1:o;return It(t)&&It(r)&&It(n)?Yl({r:Number(t),g:Number(r),b:Number(n),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=o===void 0?1:o;if(!It(t)||!It(r)||!It(n))return null;var a=Kl({h:Number(t),s:Number(r),l:Number(n),a:Number(i)});return Jl(a)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,i=o===void 0?1:o;if(!It(t)||!It(r)||!It(n))return null;var a=function(s){return{h:ql(s.h),s:ut(s.s,0,100),v:ut(s.v,0,100),a:ut(s.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(i)});return Zl(a)},"hsv"]]},Ql=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},Dm=function(e){return typeof e=="string"?Ql(e.trim(),ba.string):typeof e=="object"&&e!==null?Ql(e,ba.object):[null,void 0]},ya=function(e,t){var r=An(e);return{h:r.h,s:ut(r.s+100*t,0,100),l:r.l,a:r.a}},_a=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},ec=function(e,t){var r=An(e);return{h:r.h,s:r.s,l:ut(r.l+100*t,0,100),a:r.a}},wa=function(){function e(t){this.parsed=Dm(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return Le(_a(this.rgba),2)},e.prototype.isDark=function(){return _a(this.rgba)<.5},e.prototype.isLight=function(){return _a(this.rgba)>=.5},e.prototype.toHex=function(){return t=ma(this.rgba),r=t.r,n=t.g,o=t.b,a=(i=t.a)<1?ko(Le(255*i)):"","#"+ko(r)+ko(n)+ko(o)+a;var t,r,n,o,i,a},e.prototype.toRgb=function(){return ma(this.rgba)},e.prototype.toRgbString=function(){return t=ma(this.rgba),r=t.r,n=t.g,o=t.b,(i=t.a)<1?"rgba("+r+", "+n+", "+o+", "+i+")":"rgb("+r+", "+n+", "+o+")";var t,r,n,o,i},e.prototype.toHsl=function(){return Xl(An(this.rgba))},e.prototype.toHslString=function(){return t=Xl(An(this.rgba)),r=t.h,n=t.s,o=t.l,(i=t.a)<1?"hsla("+r+", "+n+"%, "+o+"%, "+i+")":"hsl("+r+", "+n+"%, "+o+"%)";var t,r,n,o,i},e.prototype.toHsv=function(){return t=Gl(this.rgba),{h:Le(t.h),s:Le(t.s),v:Le(t.v),a:Le(t.a,3)};var t},e.prototype.invert=function(){return Ft({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Ft(ya(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ft(ya(this.rgba,-t))},e.prototype.grayscale=function(){return Ft(ya(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ft(ec(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ft(ec(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Ft({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):Le(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=An(this.rgba);return typeof t=="number"?Ft({h:t,s:r.s,l:r.l,a:r.a}):Le(r.h)},e.prototype.isEqual=function(t){return this.toHex()===Ft(t).toHex()},e}(),Ft=function(e){return e instanceof wa?e:new wa(e)},tc=[],Rm=function(e){e.forEach(function(t){tc.indexOf(t)<0&&(t(wa,ba),tc.push(t))})};function $m(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var o in r)n[r[o]]=o;var i={};e.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,u,c=n[this.toHex()];if(c)return c;if(a!=null&&a.closest){var l=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in r)i[h]=new e(r[h]).toRgb();for(var b in r){var _=(s=l,u=i[b],Math.pow(s.r-u.r,2)+Math.pow(s.g-u.g,2)+Math.pow(s.b-u.b,2));_<d&&(d=_,p=b)}return p}},t.string.push([function(a){var s=a.toLowerCase(),u=s==="transparent"?"#0000":r[s];return u?new e(u).toRgb():null},"name"])}const rc=e=>cl(e)?e:"",Bm=(e={})=>ge("w-full placeholder:italic",ye.bgTr,X1.inputText,e.disabled&&ye.txtLowEmphasis),Im="gs-input-field";g.forwardRef(function(t,r){const{className:n,value:o,label:i,size:a="m",type:s,placeholder:u,required:c,disabled:l,readOnly:d,description:p,name:h,style:b,tip:_,onInput:y,onChange:O,onBlur:w}=t,[j,C]=g.useState(rc(o)),m=Bm(t),T=g.useRef(null);g.useImperativeHandle(r,()=>T.current,[]),g.useEffect(()=>{C(rc(o))},[o]);const N=(X,ee)=>{O==null||O(X,ee)},Z=X=>{const{key:ee}=X;switch(ee){case"Escape":return C(o);case"Enter":return N(j)}},R=()=>{N(j),w==null||w()},H=X=>{const ee=X.target.value;C(ee),y==null||y(ee)};return L.jsxs("div",{className:ge(Im,n),style:b,ref:T,children:[!!i&&L.jsx(jo,{size:a,children:i}),!!p&&L.jsx(jo,{size:a,tip:_,as:"span",className:ge(ye.txtLowEmphasis),capitalize:!1,children:p}),L.jsx(Ce,{className:ge(ye.bg,ot.b,ot.rnd,ye.br,a==="m"&&zi.xy,a==="s"&&"gjs-px-3 gjs-py-1"),items:"center",space:"x2s",children:L.jsx(le,{grow:!0,children:L.jsx("input",{className:m,name:h,value:j,onChange:H,placeholder:u,required:c,onBlur:R,onKeyDown:Z,readOnly:d,disabled:l,type:s})})})]})}),Rm([$m]);function nc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Fm(e){return"nodeType"in e}function zm(e){var t,r;return e?nc(e)?e:Fm(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Um(e){return nc(e)?!1:e instanceof zm(e).HTMLElement}var oc;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(oc||(oc={}));const ic=Object.freeze({x:0,y:0});var ac;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ac||(ac={}));function sc(e,t,r=ic){if(!e||!Um(e))return r;const n={x:r.x+e.offsetLeft,y:r.y+e.offsetTop};return e.offsetParent===t?n:sc(e.offsetParent,t,n)}function Wm(e){const{offsetWidth:t,offsetHeight:r}=e,{x:n,y:o}=sc(e,null);return{width:t,height:r,offsetTop:o,offsetLeft:n}}var uc;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(uc||(uc={}));var lc;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(lc||(lc={}));var Oa;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Oa||(Oa={}));var Ea;(function(e){e.Optimized="optimized"})(Ea||(Ea={})),Oa.WhileDragging,Ea.Optimized;var cc;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(cc||(cc={}));var ht;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(ht||(ht={})),ht.Space,ht.Enter,ht.Esc,ht.Space,ht.Enter;var fc;(function(e){e[e.RightClick=2]="RightClick"})(fc||(fc={})),{...ic},ht.Down,ht.Right,ht.Up,ht.Left;const qm=/^-?[0-9]+(\.[0-9]+)?[a-zA-Z%]{0,}$/,Ym=/,(?![^(]*\))/,xa=/\s(?![^(]*\))/,Gm=/^(closest-side|closest-corner|farthest-side|farthest-corner)/i,Ca=/^circle|ellipse/i,Zm=e=>{var l;const t=[],{name:r,value:n}=ga(e),[o,...i]=n.split(Ym).map(d=>d.trim()).filter(Boolean),a=i.length>1,s=a?o:"",u={type:"none"},c=a?i:[o,...i];if(qm.test(s))u.type="angle",u.value=s;else if(/^to\s/.test(s))u.type="side-or-corner",u.value=s;else if(Gm.test(s))u.type="size",u.value=s;else if(Ca.test(s)||/^at\s/.test(s)||/\sat\s/.test(s)){u.type="at",u.value=s;const d=((l=s.match(Ca))==null?void 0:l[0])||"circle";u.shape=d;const p={x:"0%",y:"0%"},h={x:"0%",y:"0%"},[b,_]=s.replace(Ca,"").trim().split("at").map(y=>y.trim());if(b){const[y,O]=b.split(xa);p.x=y,p.y=O||y}if(_){const[y,O]=_.split(xa);h.x=y,h.y=O||y}u.size=p,u.position=h}return c.forEach(d=>{const[p,h]=d.split(xa);t.push({color:p,hint:h?parseFloat(h):null})}),t.forEach((d,p)=>{d.hint===null&&(d.hint=p/(t.length-1)*100)}),{name:r,orientation:u,colorStops:t}};var er=(e=>(e.Image="image",e.Gradient="gradient",e.Color="color",e))(er||{});const Ho="background-image",tr="__background-type",Ln=Ho,Do=["%"],Ro=["s","ms"],Tn=["deg","rad","grad"],At=["px","%","em","rem","vw","vh"],dc={type:"select",options:["visible","hidden","scroll","auto"].map(e=>({id:e})),default:"visible"},Km=e=>`linear-gradient(${e} 1%, ${e} 100%)`,$o=e=>({id:e,label:e.split("-").map(Jo).join(" ")}),pc=e=>({property:t,to:r})=>{if(r.value){const n=t.getOption(),o=t.getParent().getProperty(e),i=o.getUnit(),a={units:n.units||[],min:n.min,max:n.max,unit:""};(!i||(a==null?void 0:a.units.indexOf(i))<0)&&(a.unit=(a==null?void 0:a.units[0])||""),o.up(a)}},Xm=e=>{const t=`${e}-name`,r=`${e}-value`;return(n,{separatorLayers:o})=>{const i=n[e]||"";return i?i.split(o).map(a=>{const{name:s,value:u}=ga(a);return{[t]:s,[r]:u}}):[]}},vc=e=>{const t={[Ln]:e};if(e.indexOf("url(")>-1)t[tr]=er.Image;else if(e.indexOf("gradient(")>-1){const r=Zm(e),n=r.colorStops,o=r.name.indexOf("linear")>=0;n.length===2&&o&&n[0].color===n[1].color?t[tr]=er.Color:t[tr]=er.Gradient}else t[tr]=er.Color,t[Ln]=Km(e);return t},gc=(e="filter")=>{const t=`${e}-name`,r=`${e}-value`;return{property:e,type:"stack",layerSeparator:" ",fromStyle(n,{separatorLayers:o}){const i=n[e]||"";return i?i.split(o).map(a=>{const{name:s,value:u}=ga(a);return{[t]:s,[r]:u}}):[]},toStyle(n,{name:o}){return{[o]:`${n[t]}(${n[r]||"0"})`}},properties:[{property:t,type:"select",default:"blur",options:[{id:"blur",label:"Blur",min:0,units:["px","em","rem","vw","vh"]},{id:"brightness",label:"Brightness",min:0,units:["%"]},{id:"contrast",label:"Contrast",min:0,units:["%"]},{id:"grayscale",label:"Grayscale",min:0,max:100,units:["%"]},{id:"hue-rotate",label:"Hue rotate",min:0,max:360,units:["deg","rad","grad"]},{id:"invert",label:"Invert",min:0,max:100,units:["%"]},{id:"saturate",label:"Saturate",min:0,units:["%"]},{id:"sepia",label:"Sepia",min:0,max:100,units:["%"]}],onChange:pc(r)},{property:r,type:"integer"}]}},Bo=(e,{x:t,y:r,mergable:n}={})=>{const o={property:`${e}-x`,type:"integer",units:At,...t},i={property:`${e}-y`,type:"integer",units:At,...r};return{property:e,type:"composite",properties:[o,i],...n&&{fromStyle(a,{name:s,separator:u,property:c}){const[l,d]=c.getProperties(),[p,h]=(a[s]||"").split(u);return{[l.getId()]:a[l.getName()]||p||"",[d.getId()]:a[d.getName()]||h||p||""}},toStyle(a,{name:s,property:u}){const[c,l]=u.getProperties(),d=a[c.getId()],p=a[l.getId()];return{[s]:d===p?d:`${d} ${p}`}}}}},Jm=(e,t="")=>{const r=`${e}-name`,n=`${e}-value`;return(o,{name:i})=>({[i]:`${o[r]}(${o[n]||t})`})};["top","middle","bottom"].map($o),["none","solid","dotted","dashed","double","groove","ridge","inset","outset"].map($o),Bo("gap",{x:{property:"row-gap",min:0,default:"0"},y:{property:"column-gap",min:0,default:"0"},mergable:!0}),["baseline","top","middle","bottom"].map($o),new RegExp("(?<!\\(.*[^)]),(?![^(]*\\))"),er.Image,er.Gradient,er.Color,["background-position-x","background-position-y"].map(e=>({type:"integer",property:e,units:At,default:"0px"})),["background-size-x","background-size-y"].map(e=>({type:"integer",property:e,units:At,default:"auto"})),["border-top-width","border-right-width","border-bottom-width","border-left-width"].map(e=>({type:"integer",property:e,default:"0",units:At})),["border-top-style","border-right-style","border-bottom-style","border-left-style"].map(e=>({type:"select",property:e,default:"none",options:[{id:"none",label:"None"},{id:"solid",label:"Solid"},{id:"dotted",label:"Dotted"},{id:"dashed",label:"Dashed"},{id:"double",label:"Double"},{id:"groove",label:"Groove"},{id:"ridge",label:"Ridge"},{id:"inset",label:"Inset"},{id:"outset",label:"Outset"}]})),["border-top-color","border-right-color","border-bottom-color","border-left-color"].map(e=>({type:"color",property:e,default:"currentColor"})),Bo("overflow",{x:dc,y:dc,mergable:!0}),gc(),gc("backdrop-filter"),["width","height","min-width","min-height","max-width","max-height","padding","margin","color","font-size","line-height","letter-height","border","border-radius","background","opacity","box-shadow","text-shadow","filter","backdrop-filter","transform","all"].map($o),Ro[0],Ro[0],Xm("transform"),Jm("transform","0"),pc("transform-value"),Bo("transform-origin",{x:{default:"50%"},y:{default:"50%"}}),Bo("perspective-origin",{x:{default:"50%"},y:{default:"50%"}}),yl.gjsStudio;const Qm=g.createContext(void 0),Vn=()=>{const e=g.useContext(Qm);if(!e)throw new Error("useStore must be used inside of StoreProvider");return e},Io=({icon:e,layout:t,tooltip:r,className:n,forceRemove:o,removeLayouts:i})=>({type:"button",icon:e,tooltip:r,className:n,size:"s",editorEvents:{[`${Ga.layoutToggleId}${t.id}`]:({fromEvent:a,setState:s})=>{s({active:a.isOpen})}},onClick:({editor:a})=>{i==null||i.forEach(s=>a.runCommand(ar.layoutRemove,{id:s,force:o})),a.runCommand(ar.layoutToggle,{...t})}}),hc={type:"static",layoutId:"leftPanelsContainer"},mc={width:240,overflow:"hidden"};Io({tooltip:"Blocks",removeLayouts:["pagesLayers","ps"],layout:{id:"blocks",layout:"panelBlocks",header:{label:"Blocks"},style:mc,placer:hc}}),Io({tooltip:"Pages & Layers",removeLayouts:["blocks","ps"],layout:{id:"pagesLayers",layout:"panelPagesLayers",header:!1,style:mc,placer:hc}}),Io({tooltip:"Page Settings",removeLayouts:["pagesLayers","blocks"],layout:{id:"ps",layout:"panelPageSettings",header:{label:"Page Settings"},style:{marginLeft:40}}}),Io({icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,10.11C13.03,10.11 13.87,10.95 13.87,12C13.87,13 13.03,13.85 12,13.85C10.97,13.85 10.13,13 10.13,12C10.13,10.95 10.97,10.11 12,10.11M7.37,20C8,20.38 9.38,19.8 10.97,18.3C10.45,17.71 9.94,17.07 9.46,16.4C8.64,16.32 7.83,16.2 7.06,16.04C6.55,18.18 6.74,19.65 7.37,20M8.08,14.26L7.79,13.75C7.68,14.04 7.57,14.33 7.5,14.61C7.77,14.67 8.07,14.72 8.38,14.77C8.28,14.6 8.18,14.43 8.08,14.26M14.62,13.5L15.43,12L14.62,10.5C14.32,9.97 14,9.5 13.71,9.03C13.17,9 12.6,9 12,9C11.4,9 10.83,9 10.29,9.03C10,9.5 9.68,9.97 9.38,10.5L8.57,12L9.38,13.5C9.68,14.03 10,14.5 10.29,14.97C10.83,15 11.4,15 12,15C12.6,15 13.17,15 13.71,14.97C14,14.5 14.32,14.03 14.62,13.5M12,6.78C11.81,7 11.61,7.23 11.41,7.5C11.61,7.5 11.8,7.5 12,7.5C12.2,7.5 12.39,7.5 12.59,7.5C12.39,7.23 12.19,7 12,6.78M12,17.22C12.19,17 12.39,16.77 12.59,16.5C12.39,16.5 12.2,16.5 12,16.5C11.8,16.5 11.61,16.5 11.41,16.5C11.61,16.77 11.81,17 12,17.22M16.62,4C16,3.62 14.62,4.2 13.03,5.7C13.55,6.29 14.06,6.93 14.54,7.6C15.36,7.68 16.17,7.8 16.94,7.96C17.45,5.82 17.26,4.35 16.62,4M15.92,9.74L16.21,10.25C16.32,9.96 16.43,9.67 16.5,9.39C16.23,9.33 15.93,9.28 15.62,9.23C15.72,9.4 15.82,9.57 15.92,9.74M17.37,2.69C18.84,3.53 19,5.74 18.38,8.32C20.92,9.07 22.75,10.31 22.75,12C22.75,13.69 20.92,14.93 18.38,15.68C19,18.26 18.84,20.47 17.37,21.31C15.91,22.15 13.92,21.19 12,19.36C10.08,21.19 8.09,22.15 6.62,21.31C5.16,20.47 5,18.26 5.62,15.68C3.08,14.93 1.25,13.69 1.25,12C1.25,10.31 3.08,9.07 5.62,8.32C5,5.74 5.16,3.53 6.62,2.69C8.09,1.85 10.08,2.81 12,4.64C13.92,2.81 15.91,1.85 17.37,2.69M17.08,12C17.42,12.75 17.72,13.5 17.97,14.26C20.07,13.63 21.25,12.73 21.25,12C21.25,11.27 20.07,10.37 17.97,9.74C17.72,10.5 17.42,11.25 17.08,12M6.92,12C6.58,11.25 6.28,10.5 6.03,9.74C3.93,10.37 2.75,11.27 2.75,12C2.75,12.73 3.93,13.63 6.03,14.26C6.28,13.5 6.58,12.75 6.92,12M15.92,14.26C15.82,14.43 15.72,14.6 15.62,14.77C15.93,14.72 16.23,14.67 16.5,14.61C16.43,14.33 16.32,14.04 16.21,13.75L15.92,14.26M13.03,18.3C14.62,19.8 16,20.38 16.62,20C17.26,19.65 17.45,18.18 16.94,16.04C16.17,16.2 15.36,16.32 14.54,16.4C14.06,17.07 13.55,17.71 13.03,18.3M8.08,9.74C8.18,9.57 8.28,9.4 8.38,9.23C8.07,9.28 7.77,9.33 7.5,9.39C7.57,9.67 7.68,9.96 7.79,10.25L8.08,9.74M10.97,5.7C9.38,4.2 8,3.62 7.37,4C6.74,4.35 6.55,5.82 7.06,7.96C7.83,7.8 8.64,7.68 9.46,7.6C9.94,6.93 10.45,6.29 10.97,5.7Z" /></svg>',tooltip:"Custom Component",className:"gs-utl-mt-auto",layout:{id:"customLayout",layout:{type:"custom",component:()=>L.jsx("div",{children:"Custom Reat component"})},header:{label:"Custom"},style:{marginLeft:40}}});const Sa=()=>Vn().appEditorStore,eb=()=>{try{return Sa()}catch{}};var zt=(e=>(e.alertRhombus="alertRhombus",e.alignHorizontalCenter="alignHorizontalCenter",e.alignHorizontalLeft="alignHorizontalLeft",e.alignHorizontalRight="alignHorizontalRight",e.applicationBracketsOutline="applicationBracketsOutline",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowULeftTop="arrowULeftTop",e.arrowURightTop="arrowURightTop",e.borderAllVariant="borderAllVariant",e.borderRadius="borderRadius",e.borderStyle="borderStyle",e.cellphoneLink="cellphoneLink",e.check="check",e.checkBold="checkBold",e.checkboxBlank="checkboxBlank",e.chevronUp="chevronUp",e.chevronDown="chevronDown",e.chevronLeft="chevronLeft",e.chevronRight="chevronRight",e.close="close",e.codeBraces="codeBraces",e.cog="cog",e.contentCopy="contentCopy",e.contentSave="contentSave",e.delete="delete",e.dotsVertical="dotsVertical",e.email="email",e.emailOutline="emailOutline",e.eye="eye",e.eyedropperVariant="eyedropperVariant",e.eyeOff="eyeOff",e.eyeOffOutline="eyeOffOutline",e.eyeOutline="eyeOutline",e.fire="fire",e.flare="flare",e.floppy="floppy",e.folder="folder",e.fullscreen="fullscreen",e.gradientVertical="gradientVertical",e.helpCircle="helpCircle",e.image="image",e.information="information",e.informationVariant="informationVariant",e.layers="layers",e.link="link",e.lock="lock",e.lockOpenVariant="lockOpenVariant",e.menuDown="menuDown",e.newspaperVariantOutline="newspaperVariantOutline",e.paletteSwatch="paletteSwatch",e.panVertical="panVertical",e.phone="phone",e.plus="plus",e.plusBox="plusBox",e.powerPlug="powerPlug",e.refresh="refresh",e.rhombusOutline="rhombusOutline",e.tag="tag",e.target="target",e.targetVariant="targetVariant",e.textBoxMultiple="textBoxMultiple",e.trayArrowDown="trayArrowDown",e.unfoldLessHorizontal="unfoldLessHorizontal",e.unfoldMoreHorizontal="unfoldMoreHorizontal",e.viewDayOutline="viewDayOutline",e.viewGridPlus="viewGridPlus",e.web="web",e.xml="xml",e))(zt||{});const ja={alertRhombus:Ic,alignHorizontalCenter:Fc,alignHorizontalLeft:zc,alignHorizontalRight:Uc,applicationBracketsOutline:Wc,arrowDown:qc,arrowRight:Yc,arrowULeftTop:Gc,arrowURightTop:Zc,borderAllVariant:Kc,borderRadius:Xc,borderStyle:Jc,cellphoneLink:Qc,check:ef,checkBold:tf,checkboxBlank:rf,chevronUp:sf,chevronDown:nf,chevronLeft:of,chevronRight:af,close:uf,codeBraces:lf,cog:cf,contentCopy:ff,contentSave:df,delete:pf,dotsVertical:vf,email:gf,emailOutline:hf,eye:mf,eyedropperVariant:wf,eyeOff:bf,eyeOffOutline:yf,eyeOutline:_f,fire:Of,flare:Ef,floppy:xf,folder:Cf,fullscreen:Sf,gradientVertical:jf,helpCircle:Af,image:Lf,information:Tf,informationVariant:Vf,layers:Mf,link:Pf,lock:kf,lockOpenVariant:Hf,menuDown:Df,newspaperVariantOutline:Rf,paletteSwatch:$f,panVertical:Bf,phone:If,plus:Ff,plusBox:zf,powerPlug:Uf,refresh:Wf,rhombusOutline:qf,tag:Yf,target:Gf,targetVariant:Zf,textBoxMultiple:Kf,trayArrowDown:Xf,unfoldLessHorizontal:Jf,unfoldMoreHorizontal:Qf,viewDayOutline:ed,viewGridPlus:td,web:rd,xml:nd},tb="gs-cmp-icon",Or=dn(function({className:t,icon:r,size:n,rotate:o,horizontal:i,vertical:a}){var d;const s=(d=eb())==null?void 0:d.sdkCustomIcons,u=(s==null?void 0:s[r])||(ja==null?void 0:ja[r])||r,c=[i&&"scaleX(-1)",a&&"scaleY(-1)",o&&`rotate(${o}deg)`].filter(p=>!!p).join(" ");if(!u)return null;const l=Ar(tb,t);return u.startsWith("<svg")||u.startsWith("<?xml")?L.jsx(Wg,{className:l,style:{transform:c||void 0},svg:u,iconSize:n}):L.jsx(dd,{className:l,path:u,size:n,rotate:o,horizontal:i,vertical:a})});var bc=(e=>(e.dark="dark",e.light="light",e.auto="auto",e))(bc||{});const Aa=new WeakMap,rb=(e,t)=>{Aa.set(e,t)},nb=e=>{Aa.delete(e)},La=e=>Aa.get(e),Fo=e=>{const t=e.target,r=t.closest(".tox"),n=t.matches(".ephox-snooker-resizer-bar");(r||n)&&e.stopPropagation()},yc=e=>{e.stopPropagation(),e.preventDefault()},ob=(e,t)=>{const r=e.getDoc(),n=e.getWin();if(t!=null&&t.event){const{event:o}=t,{clientX:i,clientY:a}=o;let s;if(r.caretRangeFromPoint)s=r.caretRangeFromPoint(i,a);else if(r.caretPositionFromPoint){const u=r.caretPositionFromPoint(i,a);s=r.createRange(),s==null||s.setStart(u.offsetNode,u.offset)}if(s){const u=n.getSelection();u==null||u.removeAllRanges(),u==null||u.addRange(s),e.selection.setRng(s)}}else e.execCommand("SelectAll")},ib=e=>{var c,l;const{el:t,editor:r,componentView:n}=e,o=r.runCommand(ar.getStateTheme),i=n.model,a={target:t,inline:!0,skin:(o==null?void 0:o.theme)===bc.dark?"oxide-dark":"oxide",menubar:!1,image_advtab:!0,paste_data_images:!0,statusbar:!1,branding:!1,forced_root_block:"div",plugins:"advlist autolink lists link image media table",toolbar_mode:"sliding",toolbar:"bold italic underline strikethrough forecolor backcolor alignleft aligncenter alignright alignjustify link image | fontfamily fontsize bullist numlist outdent indent table"},s=((l=(c=e.pluginOpts)==null?void 0:c.loadConfig)==null?void 0:l.call(c,{config:a,editor:r,componentView:n,component:i}))||{};return{...a,...s}},_c=(e,t=document)=>new Promise((r,n)=>{const o=Array.isArray(e)?[...e]:[e],{head:i}=t,a=s=>{if(s.length){const u=t.createElement("script");u.src=s.shift(),u.onload=a.bind(null,s),u.onerror=n,i.appendChild(u)}else r()};a(o)}),ab="rteTinyMce";return Pc(function(e,t={}){const r={cdnScript:"https://cdn.jsdelivr.net/npm/tinymce@6.8.5/tinymce.min.js",...t},{cdnScript:n}=r,o=e.Canvas.events,i=async(u,c)=>{const l=u.ownerDocument,d=l.defaultView,p=c==null?void 0:c.view;if(!d||!p){console.warn("Missing required data",{win:d,componentView:p});return}const h=ib({el:u,editor:e,componentView:p,pluginOpts:r}),_=(await d.tinymce.init(h))[0];if(!_)return;const O=(await window.tinymce.init({...h,target:document.createElement("div")}))[0];return _.ui.show(),l.body.addEventListener("mousedown",Fo),document.body.addEventListener("mousedown",Fo),_.on("Change",()=>Hc(u)),_.on("blur",()=>_.ui.show()),_.on("OpenWindow",function(){var C;const w=(C=l.querySelector(".tox-dialog"))==null?void 0:C.closest(".tox");w&&(w==null?void 0:w.ownerDocument)!==document&&(document.body.appendChild(w),_.once("CloseWindow",()=>{w&&w.ownerDocument===document&&l.body.appendChild(w)}))}),u.addEventListener("dragstart",yc,{capture:!0}),e.runCommand(ar.setStateContextMenu,{enabled:!1}),ob(_,c),{rteEditor:_,rteEditorShallow:O}},a=(u,c)=>{u.ownerDocument.body.removeEventListener("mousedown",Fo),document.body.removeEventListener("mousedown",Fo),u.removeEventListener("dragstart",yc,{capture:!0}),e.runCommand(ar.setStateContextMenu,{enabled:!0}),c.rteEditor.destroy(),c.rteEditorShallow.destroy()};e.on(o.frameLoad,async({window:u})=>{_c(n,u.document)}),e.onReady(()=>{_c(n,document)}),e.setCustomRte({parseContent:!0,async enable(u,c,l){const d=La(u);if(d)return d.rteEditor;const p=await i(u,l);return p&&rb(u,p),p==null?void 0:p.rteEditor},disable(u){const c=La(u);c&&(nb(u),a(u,c))},getContent(u){var l,d;const c=La(u);return c?(d=(l=c.rteEditor).getContent)==null?void 0:d.call(l):u.innerHTML}});const s=Dc(e,r.enableOnClick);Nc({editor:e,licenseKey:r.licenseKey,plan:jr.startup,pluginName:ab,cleanup:()=>{e.RichTextEditor.customRte=void 0,s()}})})});
|