Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sencha/reext

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sencha/reext - npm Package Compare versions

Comparing version 0.0.294 to 0.0.295

4

dist/reext.es.js
import { jsxs as b, jsx as p, Fragment as oe } from "react/jsx-runtime";
import _, { cloneElement as Ne, useState as U, useRef as Z, useEffect as q } from "react";
import { createPortal as X } from "react-dom";
const ze = "@sencha/reext", Ke = "0.0.294", Le = "React ReExt", Me = "./dist/ReExt/types.d.ts", Ue = "./dist/reext.es.js", Fe = {
const ze = "@sencha/reext", Ke = "0.0.295", Le = "React ReExt", Me = "./dist/ReExt/types.d.ts", Ue = "./dist/reext.es.js", Fe = {
b: "npm run buildclonedeep && npm run buildisequal && npm run buildfill && npm run buildgetconfig && npm run buildglobalprovider && npm run buildisevent && npm run builditeratechildren && npm run buildloadextjsfiles && npm run buildpropupdate && npm run buildresizeobserver && npm run builduntilextloaded && npm run buildwatermark",

@@ -1333,3 +1333,3 @@ buildclonedeep: "esbuild ./src/lib/modules/cloneDeep.jsx --format=esm --bundle --minify --outfile=./src/lib/cloneDeep.js",

TrialDialog: { value: null },
Version: { value: "2024-08-25-a" },
Version: { value: "2024-08-26-a" },
Type: { value: null },

@@ -1336,0 +1336,0 @@ DaysLeft: { value: null }

@@ -1,2 +0,2 @@

(function(A,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],l):(A=typeof globalThis<"u"?globalThis:A||self,l(A.ReExt={},A.jsxRuntime,A.React,A.ReactDOM))})(this,function(A,l,v,q){"use strict";const fe={name:"@sencha/reext",version:"0.0.294",description:"React ReExt",types:"./dist/ReExt/types.d.ts",module:"./dist/reext.es.js",scripts:{b:"npm run buildclonedeep && npm run buildisequal && npm run buildfill && npm run buildgetconfig && npm run buildglobalprovider && npm run buildisevent && npm run builditeratechildren && npm run buildloadextjsfiles && npm run buildpropupdate && npm run buildresizeobserver && npm run builduntilextloaded && npm run buildwatermark",buildclonedeep:"esbuild ./src/lib/modules/cloneDeep.jsx --format=esm --bundle --minify --outfile=./src/lib/cloneDeep.js",buildisequal:"esbuild ./src/lib/modules/isEqual.jsx --format=esm --bundle --minify --outfile=./src/lib/isEqual.js",buildfill:"esbuild ./src/lib/modules/Fill.jsx --format=esm --bundle --minify --outfile=./src/lib/Fill.js",buildgetconfig:"esbuild ./src/lib/modules/getconfig.jsx --format=esm --bundle --minify --outfile=./src/lib/getconfig.js",buildglobalprovider:"esbuild ./src/lib/modules/GlobalProvider.jsx --format=esm --minify --outfile=./src/lib/GlobalProvider.js --inject:./src/lib/modules/react-shim.js",buildisevent:"esbuild ./src/lib/modules/isevent.jsx --format=esm --bundle --minify --outfile=./src/lib/isevent.js",builditeratechildren:"esbuild ./src/lib/modules/iteratechildren.jsx --format=esm --bundle --minify --outfile=./src/lib/iteratechildren.js --external:react --external:react-dom",buildloadextjsfiles:"esbuild ./src/lib/modules/loadextjsfiles.jsx --format=esm --bundle --minify --outfile=./src/lib/loadextjsfiles.js",buildpropupdate:"esbuild ./src/lib/modules/propupdate.jsx --format=esm --bundle --minify --outfile=./src/lib/propupdate.js",buildresizeobserver:"esbuild ./src/lib/modules/resizeobserver.jsx --format=esm --bundle --minify --outfile=./src/lib/resizeobserver.js",builduntilextloaded:"esbuild ./src/lib/modules/untilextloaded.jsx --format=esm --bundle --minify --outfile=./src/lib/untilextloaded.js",buildwatermark:"esbuild ./src/lib/modules/watermark.jsx --format=esm --bundle --minify --outfile=./src/lib/watermark.js",preinstall:"node ./dist/scripts/preinstall.js",postinstall:"node ./dist/scripts/postinstall.js",prepublishOnly:"node ./public/scripts/prepublish.js",postpack:"node ./public/scripts/postpack.js",postpublish:"node ./public/scripts/postpublish.js",pack:"npm pack --pack-destination zip",dev:"vite",builddev:"vite build -m development",build:"vite build",test:"vitest run",watch:"vitest",coverage:"vitest run --coverage",lint:"eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0"},author:{name:"Sencha, Inc.",email:"marc.gusmano@sencha.com",url:"http://www.sencha.com"},homepage:"https://www.sencha.com/products/reext/",keywords:["React","NextJS","Sencha","ExtJS","Components","ReExt"],license:"MIT",exports:{".":{import:"./dist/reext.es.js"}},devDependencies:{"@vitejs/plugin-react-swc":"^3.7.0",eslint:"8.57.0","eslint-plugin-react":"^7.35.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.9",vite:"^5.4.1"},dependencies:{react:"^18.3.1","react-dom":"^18.3.1"}},Ie=(e,t)=>{for(var r in e)typeof e[r]=="function"&&function(i,a){var s=r;e[r]=function(){t===!0&&console.log("---"),console.log("globalState."+s+" payload:",arguments[0]),t===!0&&console.log(new Error().stack),t===!0&&console.log("---");var n=a.apply(this,arguments);return n}}(r,e[r])},Oe=async(e,t,r)=>{console.log("dispatch:",e.type,e.payload),r.dispatchStack&&console.log(new Error().stack)},We=(e,t,r)=>{const[i,a]=v.useReducer(e,t),s=v.useRef(null);var n=r.middleware;n===void 0&&(n=[]);var o=r.middlewareafter;return o===void 0&&(o=[]),v.useEffect(()=>{o.map(c=>c(s.current,i))},[o,i]),[i,c=>{n.map(p=>p(c,i,r)),s.current=c,a(c)}]},pe=v.createContext(),ye=()=>v.useContext(pe),He=(e,t)=>{var r={...e};return r[t.type.toLowerCase()]=t.payload,window.vscodeapi!==void 0&&vscodeapi.setState(r),r},Je=e=>{if(e===void 0)return;var t=e.types,r={};for(let o in t)t.hasOwnProperty(o)&&(r["set"+o]=c=>s({type:o,payload:c}));var i={};for(let o in t)t.hasOwnProperty(o)&&(i[o.toLowerCase()]=t[o].value);v.useEffect(()=>{e.dispatchTrace&&e.middleware.push(Oe)},[e]),e.actionTrace&&Ie(r,e.actionStack);const[a,s]=We(He,i,e),n=(o,c)=>{var p={};for(const[d]of Object.entries(c))p[d]=o[d];return p};return v.createElement(pe.Provider,{value:{...n(a,i),...r}},e.children)};function V(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++)t[r]=V(e[r]);return t}if(e instanceof Object){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=V(e[r]));return t}return e}function re(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!re(e[r],t[r]))return!1;return!0}if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a of r)if(!t.hasOwnProperty(a)||!re(e[a],t[a]))return!1;return!0}return!1}function Ne({reactversion:e,extver:t,extlocation:r,exttoolkit:i,exttheme:a,type:s,packageversion:n,style:o,flexdirection:c,...p}){return l.jsxs("div",{name:"ReExtRootLogo","data-rid":p.rid,style:{display:"flex",flexDirection:c,alignItems:"center",color:"black",padding:5,...o},children:[l.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),l.jsxs("div",{style:{margin:"0 0 0 3px"},children:[l.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:l.jsx("a",{style:p.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:l.jsxs("i",{children:["React ReExt ",n]})})}),l.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:l.jsx("span",{style:{margin:"0 0 0 0"},children:s})}),l.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:l.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",l.jsx("b",{children:e})]})}),l.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:l.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",l.jsxs("b",{children:[t," (",r,")"]})]})}),l.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[l.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",l.jsx("b",{children:i})]}),l.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",l.jsx("b",{children:a})]})]})]})]})}var ze=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},Ke=(e,t,r,i)=>{if(!(typeof window===void 0||typeof window>"u")){var a={};if(a.xtype=e,t!==void 0)for(let[n,o]of Object.entries(t))a[n]=o;if(r.references===!0&&(a.controller=window.Ext.create("Ext.app.ViewController")),a.store!==void 0&&(a.store.listeners!==void 0?a.store.listeners.load===void 0&&(a.store.listeners.load=n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}):a.store.listeners={load:n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}}),a.listeners===void 0){a.listeners={};for(let[n,o]of Object.entries(r)){var s=ze(n);s!==null&&(a.listeners[s]=function(){o(...arguments)})}Object.keys(a.listeners).length===0&&delete a.listeners}return a}},Le=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},he=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=[],a=[];if(e===void 0)return[];e.length===void 0?a.push(e):a=e;try{return a.map(s=>{var n,o;if(t.xtype==="tabpanel"){var c;window.Ext.ReExtTheme==="classic"?c="Ext.panel.Panel":c="Ext.Panel",n=window.Ext.create(c,{layout:"fit",title:s.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{boxready:f=>{o=q.createPortal(s,f.el.dom),i.push(o);var C=f.el.dom.parentNode;r.observe(C)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),t.add(n),window.Ext.isClassic===!0?p="Ext.container.Container":p="Ext.Container",window.Ext.isClassic!==!0&&(o=q.createPortal(s,n.items.items[0].el.dom),i.push(o))}else{var p;window.Ext.isClassic===!0?p="Ext.container.Container":p="Ext.Container";var d={...s.props.style,layout:"fit",cls:"ReExtWidgetRoot"};n=window.Ext.create(p,d),t.add(n);var w=v.cloneElement(s,{ReExtParent:t});window.Ext.isClassic===!0?o=q.createPortal(w,n.el.dom):o=q.createPortal(w,n.innerElement.dom),i.push(o)}}),i}catch(s){return console.error("iteratechldren:",s.toString()),[]}}},Me=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=s=>{let n=s.charAt(0).toUpperCase(),o=s.slice(1);var c="set"+(n+o);return c},a;window.Ext.isClassic===!0?t==="items"?(e.removeAll(!0),e.add(r)):t!=="layout"&&(a=i(t),e[a]!==void 0?e[a](r):e[t]=r):(a=i(t),e[a]!==void 0&&e[a](r))}},Ue=()=>{var e;return typeof ResizeObserver<"u"?(e=new ResizeObserver(t=>{if(!(typeof window===void 0||typeof window>"u"))for(let o of t){var r=0,i=o.target.children.item(r);if(i!==null&&o.contentBoxSize){let c=o.contentBoxSize[0];var a=c.inlineSize,s=window.Ext.getCmp(i.id);if(s!==void 0)window.Ext.getCmp(i.id).setWidth(a),window.Ext.getCmp(i.id).setHeight(c.blockSize);else if(!i.classList.contains("wm")){console.log("child not found",i.id);var n=i.getAttribute("w");n!=="w"&&console.warn("child not resized",i)}}}}),e):null};async function Fe(){return await new Promise(e=>{function t(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(r),e(1)})}var r=setInterval(t,5)})}var Be=(e,t,r)=>{if(typeof window>"u")return;let i=document.createElement("div");i.classList.add("wm"),i.style.zIndex=2e4,i.style.position="absolute",i.style.bottom="0px",i.style.right="0px",i.style.color="white",i.style.fontSize="10px",i.style.fontWeight="bold",i.style.fontStyle="italic",i.style.background="#B87333",i.style.padding="1px 3px 1px 1px",i.style.border="1px solid lightgray",i.style.borderRadius="3px 3px 3px 3px",i.innerText="ReExt "+t,r!==null?r.appendChild(i):e.el!==void 0&&e.el.dom.appendChild(i)};function qe(e){const t=ye();if(typeof window===void 0||typeof window>"u")return;const[r,i]=v.useState(null),[a,s]=v.useState(null),n=v.useRef(null);n.current=a;const o=()=>n.current,[c,p]=v.useState(null),d=v.useRef(null);d.current=c;const w=()=>d.current,f=v.useRef(null);var C=Ue();v.useEffect(()=>{var m,b="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await Fe(),e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]),b==="false"&&e.xtype!=="logo"){var k;w()==null?k=e.config:k=w();try{var y=Ke(e.xtype,k,e,o),$=Ext.ClassManager.getByAlias("widget."+y.xtype);if($===void 0){var I="ReExt "+y.xtype+" could not be created";y={xtype:"label",text:I,style:{color:"red",background:"lightgray"}}}if(y.height===void 0&&y.xtype!=="window"&&(window.Ext.isClassic===!0&&y.xtype==="grid"?y.height=0:y.height="100%"),y.width===void 0&&y.xtype!=="window"&&(window.Ext.isClassic===!0&&y.xtype==="grid"?y.width=0:y.width="100%"),window.Ext.isClassic===!0){const W=ue=>{var F=ue.el.dom.parentNode;C.observe(F)};y.listeners===void 0?y.listeners={boxready:W}:y.listeners.boxready=W}y.xtype!=="window"&&(y.renderTo=f.current),m=window.Ext.create(y),s(m),n.current=m,e.config!==void 0&&e.config.reference!==void 0&&e.ReExtParent!==void 0&&(e.ReExtParent.ReExtChildren===void 0&&(e.ReExtParent.ReExtChildren=[]),e.ReExtParent.ReExtChildren.push(m)),f.current===null?console.warn("ReExtRootRef.current,props",f.current,e):(f.current.style.background="transparent",f.current.firstChild.remove());var T=he(e.children,m,C);i(T),t.type!==null&&t.type!=="production"&&Be(m,y.xtype,f.current),e.ready!==void 0&&e.ready(m)}catch(W){console.error(W)}}})(),()=>{b="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&m!=null&&(s(null),window.Ext.destroy(m))}},[t.type]),v.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&e.config!==void 0){if(n.current!==null){e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]);for(const[T]of Object.entries(d.current)){if(Le(T)!=null||T==="xtype")return;var m=V(d.current[T]),b=V(e.config[T]);m!=null&&delete m.listeners,b!==void 0&&m!==null&&delete b.listeners;const W=ue=>{let F=[],or=JSON.stringify(ue,function(br,B){if(typeof B=="object"&&B!==null){if(F.indexOf(B)!==-1)return;F.push(B)}return B});return F=null,or};var k=W(m),y=W(b),$=re(k,y);if(!$&&(Me(n.current,T,b),T==="items")){var I=he(e.children,n.current,C);i(I)}}}p(e.config),d.current=e.config}},[e.config]);var R="",z="",O="",E="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){z=window.Ext.versions.core.version,E=window.Ext.ReExtTheme,R=window.Ext.ReExtLocation;var te=window.Ext.isClassic;te===!0?O="classic":O="modern"}if(!(typeof window===void 0||typeof window>"u")){var u="";if(t.type==="production"||t.type===null?u="production":u=`${t.type} - ${t.daysleft} days left`,e.xtype==="logo")return l.jsx(Ne,{reactversion:v.version,extver:z,extlocation:R,exttoolkit:O,exttheme:E,type:u,packageversion:fe.version,flexdirection:e.flexdirection,style:e.style});var j;e.style===void 0||e.style.height===void 0?j=1:j="none";var g="";if(e.className!==void 0&&(g=e.className),e.xtype==="window")return null;var h,K,S={};return e.child===!0&&(S={height:"100%"}),r===null?(h={...e.style,...S,flex:j,position:"relative",display:"flex",overflow:"hidden"},K=g+" fill"):r.length===0?(h={...e.style,...S,flex:j,position:"relative",display:"flex",overflow:"hidden"},K=g+" fill"):(h={...e.style,flex:j,position:"relative",display:"flex",overflow:"hidden"},K=g),l.jsx("div",{name:"ReExtRoot-"+e.xtype,"data-rid":e.rid,className:K,style:h,ref:f,children:l.jsx("div",{className:"portalroot",style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:r!==null&&r.map(m=>m)})})}}}async function Ve(){if(typeof window===void 0||typeof window>"u")return;function e(t){t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.padding="0",t.style.boxSizing="border-box",t.style.overflow="hidden"}document.documentElement&&e(document.documentElement),document.body&&e(document.body),document.getElementById("root")&&e(document.getElementById("root"))}function Ge(){if(!(typeof window===void 0||typeof window>"u"))return l.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:l.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}var Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ye=Xe(()=>{}),ie=crypto,we=e=>e instanceof CryptoKey,G=new TextEncoder,L=new TextDecoder;function Qe(...e){let t=e.reduce((a,{length:s})=>a+s,0),r=new Uint8Array(t),i=0;for(let a of e)r.set(a,i),i+=a.length;return r}var Ze=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r},M=e=>{let t=e;t instanceof Uint8Array&&(t=L.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Ze(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}},H=class extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(t=Error.captureStackTrace)==null||t.call(Error,this,this.constructor)}},P=class extends H{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=t}},me=class extends H{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=t}},J=class extends H{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}},x=class extends H{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}},D=class extends H{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}},et=class extends H{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};function _(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function X(e,t){return e.name===t}function ae(e){return parseInt(e.name.slice(4),10)}function tt(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function rt(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let i=t.pop();r+=`one of ${t.join(", ")}, or ${i}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function it(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!X(e.algorithm,"HMAC"))throw _("HMAC");let i=parseInt(t.slice(2),10);if(ae(e.algorithm.hash)!==i)throw _(`SHA-${i}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!X(e.algorithm,"RSASSA-PKCS1-v1_5"))throw _("RSASSA-PKCS1-v1_5");let i=parseInt(t.slice(2),10);if(ae(e.algorithm.hash)!==i)throw _(`SHA-${i}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!X(e.algorithm,"RSA-PSS"))throw _("RSA-PSS");let i=parseInt(t.slice(2),10);if(ae(e.algorithm.hash)!==i)throw _(`SHA-${i}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw _("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!X(e.algorithm,"ECDSA"))throw _("ECDSA");let i=tt(t);if(e.algorithm.namedCurve!==i)throw _(i,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}rt(e,r)}function ve(e,t,...r){var i;if(r.length>2){let a=r.pop();e+=`one of type ${r.join(", ")}, or ${a}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&((i=t.constructor)!=null&&i.name)&&(e+=` Received an instance of ${t.constructor.name}`),e}var ge=(e,...t)=>ve("Key must be ",e,...t);function be(e,t,...r){return ve(`Key for the ${e} algorithm must be `,t,...r)}var xe=e=>we(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Y=["CryptoKey"],at=(...e)=>{let t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(let i of t){let a=Object.keys(i);if(!r||r.size===0){r=new Set(a);continue}for(let s of a){if(r.has(s))return!1;r.add(s)}}return!0},nt=at;function ot(e){return typeof e=="object"&&e!==null}function Q(e){if(!ot(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var st=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function lt(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new J('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new J('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new J('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new J('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var ct=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=lt(e),i=[t,e.ext??!1,e.key_ops??r],a={...e};return delete a.alg,delete a.use,ie.subtle.importKey("jwk",a,...i)},dt=ct,Ee=e=>M(e),ne,oe,Se=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",ke=async(e,t,r,i)=>{let a=e.get(t);if(a!=null&&a[i])return a[i];let s=await dt({...r,alg:i});return a?a[i]=s:e.set(t,{[i]:s}),s},ut=(e,t)=>{if(Se(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?Ee(r.k):(oe||(oe=new WeakMap),ke(oe,e,r,t))}return e},ft=(e,t)=>{if(Se(e)){let r=e.export({format:"jwk"});return r.k?Ee(r.k):(ne||(ne=new WeakMap),ke(ne,e,r,t))}return e},pt={normalizePublicKey:ut,normalizePrivateKey:ft},N=e=>e==null?void 0:e[Symbol.toStringTag],yt=(e,t)=>{if(!(t instanceof Uint8Array)){if(!xe(t))throw new TypeError(be(e,t,...Y,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${N(t)} instances for symmetric algorithms must be of type "secret"`)}},ht=(e,t,r)=>{if(!xe(t))throw new TypeError(be(e,t,...Y));if(t.type==="secret")throw new TypeError(`${N(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${N(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${N(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${N(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${N(t)} instances for asymmetric algorithm encryption must be of type "public"`)},wt=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?yt(e,t):ht(e,t,r)},mt=wt;function vt(e,t,r,i,a){if(a.crit!==void 0&&(i==null?void 0:i.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||i.crit===void 0)return new Set;if(!Array.isArray(i.crit)||i.crit.length===0||i.crit.some(n=>typeof n!="string"||n.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let s;r!==void 0?s=new Map([...Object.entries(r),...t.entries()]):s=t;for(let n of i.crit){if(!s.has(n))throw new J(`Extension Header Parameter "${n}" is not recognized`);if(a[n]===void 0)throw new e(`Extension Header Parameter "${n}" is missing`);if(s.get(n)&&i[n]===void 0)throw new e(`Extension Header Parameter "${n}" MUST be integrity protected`)}return new Set(i.crit)}var gt=vt;function bt(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new J(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function xt(e,t,r){if(t=await pt.normalizePublicKey(t,e),we(t))return it(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(ge(t,...Y));return ie.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(ge(t,...Y,"Uint8Array"))}var Et=async(e,t,r,i)=>{let a=await xt(e,t,"verify");st(e,a);let s=bt(e,a.algorithm);try{return await ie.subtle.verify(s,a,r,i)}catch{return!1}},St=Et;async function kt(e,t,r){if(!Q(e))throw new x("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new x('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new x("JWS Protected Header incorrect type");if(e.payload===void 0)throw new x("JWS Payload missing");if(typeof e.signature!="string")throw new x("JWS Signature missing or incorrect type");if(e.header!==void 0&&!Q(e.header))throw new x("JWS Unprotected Header incorrect type");let i={};if(e.protected)try{let C=M(e.protected);i=JSON.parse(L.decode(C))}catch{throw new x("JWS Protected Header is invalid")}if(!nt(i,e.header))throw new x("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...i,...e.header},s=gt(x,new Map([["b64",!0]]),r==null?void 0:r.crit,i,a),n=!0;if(s.has("b64")&&(n=i.b64,typeof n!="boolean"))throw new x('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:o}=a;if(typeof o!="string"||!o)throw new x('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(n){if(typeof e.payload!="string")throw new x("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new x("JWS Payload must be a string or an Uint8Array instance");let c=!1;typeof t=="function"&&(t=await t(i,e),c=!0),mt(o,t,"verify");let p=Qe(G.encode(e.protected??""),G.encode("."),typeof e.payload=="string"?G.encode(e.payload):e.payload),d;try{d=M(e.signature)}catch{throw new x("Failed to base64url decode the signature")}if(!await St(o,t,d,p))throw new et;let w;if(n)try{w=M(e.payload)}catch{throw new x("Failed to base64url decode the payload")}else typeof e.payload=="string"?w=G.encode(e.payload):w=e.payload;let f={payload:w};return e.protected!==void 0&&(f.protectedHeader=i),e.header!==void 0&&(f.unprotectedHeader=e.header),c?{...f,key:t}:f}async function $t(e,t,r){if(e instanceof Uint8Array&&(e=L.decode(e)),typeof e!="string")throw new x("Compact JWS must be a string or Uint8Array");let{0:i,1:a,2:s,length:n}=e.split(".");if(n!==3)throw new x("Invalid Compact JWS");let o=await kt({payload:a,protected:i,signature:s},t,r),c={payload:o.payload,protectedHeader:o.protectedHeader};return typeof t=="function"?{...c,key:o.key}:c}var Ct=e=>Math.floor(e.getTime()/1e3),At=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,$e=e=>{let t=At.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");let r=parseFloat(t[2]),i=t[3].toLowerCase(),a;switch(i){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(r*60);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(r*3600);break;case"day":case"days":case"d":a=Math.round(r*86400);break;case"week":case"weeks":case"w":a=Math.round(r*604800);break;default:a=Math.round(r*31557600);break}return t[1]==="-"||t[4]==="ago"?-a:a},Ce=e=>e.toLowerCase().replace(/^application\//,""),jt=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,Rt=(e,t,r={})=>{let i;try{i=JSON.parse(L.decode(t))}catch{}if(!Q(i))throw new D("JWT Claims Set must be a top-level JSON object");let{typ:a}=r;if(a&&(typeof e.typ!="string"||Ce(e.typ)!==Ce(a)))throw new P('unexpected "typ" JWT header value',i,"typ","check_failed");let{requiredClaims:s=[],issuer:n,subject:o,audience:c,maxTokenAge:p}=r,d=[...s];p!==void 0&&d.push("iat"),c!==void 0&&d.push("aud"),o!==void 0&&d.push("sub"),n!==void 0&&d.push("iss");for(let R of new Set(d.reverse()))if(!(R in i))throw new P(`missing required "${R}" claim`,i,R,"missing");if(n&&!(Array.isArray(n)?n:[n]).includes(i.iss))throw new P('unexpected "iss" claim value',i,"iss","check_failed");if(o&&i.sub!==o)throw new P('unexpected "sub" claim value',i,"sub","check_failed");if(c&&!jt(i.aud,typeof c=="string"?[c]:c))throw new P('unexpected "aud" claim value',i,"aud","check_failed");let w;switch(typeof r.clockTolerance){case"string":w=$e(r.clockTolerance);break;case"number":w=r.clockTolerance;break;case"undefined":w=0;break;default:throw new TypeError("Invalid clockTolerance option type")}let{currentDate:f}=r,C=Ct(f||new Date);if((i.iat!==void 0||p)&&typeof i.iat!="number")throw new P('"iat" claim must be a number',i,"iat","invalid");if(i.nbf!==void 0){if(typeof i.nbf!="number")throw new P('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>C+w)throw new P('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(i.exp!==void 0){if(typeof i.exp!="number")throw new P('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=C-w)throw new me('"exp" claim timestamp check failed',i,"exp","check_failed")}if(p){let R=C-i.iat,z=typeof p=="number"?p:$e(p);if(R-w>z)throw new me('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(R<0-w)throw new P('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};async function Tt(e,t,r){var s;let i=await $t(e,t,r);if((s=i.protectedHeader.crit)!=null&&s.includes("b64")&&i.protectedHeader.b64===!1)throw new D("JWTs MUST NOT use unencoded payload");let a={payload:Rt(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return typeof t=="function"?{...a,key:i.key}:a}var Pt=M;function Dt(e){if(typeof e!="string")throw new D("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new D("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new D("Invalid JWT");if(!t)throw new D("JWTs must contain a payload");let i;try{i=Pt(t)}catch{throw new D("Failed to base64url decode the payload")}let a;try{a=JSON.parse(L.decode(i))}catch{throw new D("Failed to parse the decoded payload as JSON")}if(!Q(a))throw new D("Invalid JWT Claims Set");return a}function Z(e){var t=new Error(e);return t.source="ulid",t}var se="0123456789ABCDEFGHJKMNPQRSTVWXYZ",U=se.length,Ae=Math.pow(2,48)-1,_t=10,It=16;function Ot(e){var t=Math.floor(e()*U);return t===U&&(t=U-1),se.charAt(t)}function Wt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>Ae)throw Z("cannot encode time greater than "+Ae);if(e<0)throw Z("time must be positive");if(Number.isInteger(e)===!1)throw Z("time must be an integer");for(var r=void 0,i="";t>0;t--)r=e%U,i=se.charAt(r)+i,e=(e-r)/U;return i}function Ht(e,t){for(var r="";e>0;e--)r=Ot(t)+r;return r}function Jt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};try{var i=Ye();return function(){return i.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw Z("secure crypto unusable, insecure Math.random not allowed")}function Nt(e){return e||(e=Jt()),function(t){return isNaN(t)&&(t=Date.now()),Wt(t,_t)+Ht(It,e)}}Nt();var le;function zt(e){return le==null?void 0:le.get(e)}var ce;function Kt(e){return ce==null?void 0:ce.get(e)}var de;function Lt(e,t){var r;return(r=de==null?void 0:de.get(e))==null?void 0:r.get(t)}function Mt(e){var r,i;let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((i=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor)==null?void 0:i.name))??"null":t}function ee(e,t,r,i,a){let s=a&&"input"in a?a.input:r.value,n=(a==null?void 0:a.expected)??e.expects??null,o=(a==null?void 0:a.received)??Mt(s),c={kind:e.kind,type:e.type,input:s,expected:n,received:o,message:`Invalid ${t}: ${n?`Expected ${n} but r`:"R"}eceived ${o}`,requirement:e.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},p=e.kind==="schema",d=(a==null?void 0:a.message)??e.message??Lt(e.reference,c.lang)??(p?Kt(c.lang):null)??i.message??zt(c.lang);d&&(c.message=typeof d=="function"?d(c):d),p&&(r.typed=!1),r.issues?r.issues.push(c):r.issues=[c]}function je(e){return{kind:"transformation",type:"brand",reference:je,async:!1,name:e,_run(t){return t}}}function Ut(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function Re(e){return{kind:"schema",type:"number",reference:Re,expects:"number",async:!1,message:e,_run(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:ee(this,"type",t,r),t}}}function Te(e,...t){let r={kind:"schema",type:"optional",reference:Te,expects:`${e.expects} | undefined`,async:!1,wrapped:e,_run(i,a){return i.value===void 0&&("default"in this&&(i.value=Ut(this,i,a)),i.value===void 0)?(i.typed=!0,i):this.wrapped._run(i,a)}};return 0 in t&&(r.default=t[0]),r}function Pe(e,t){return{kind:"schema",type:"strict_object",reference:Pe,expects:"Object",async:!1,entries:e,message:t,_run(r,i){var s;let a=r.value;if(a&&typeof a=="object"){r.typed=!0,r.value={};for(let n in this.entries){let o=a[n],c=this.entries[n]._run({typed:!1,value:o},i);if(c.issues){let p={type:"object",origin:"value",input:a,key:n,value:o};for(let d of c.issues)d.path?d.path.unshift(p):d.path=[p],(s=r.issues)==null||s.push(d);if(r.issues||(r.issues=c.issues),i.abortEarly){r.typed=!1;break}}c.typed||(r.typed=!1),(c.value!==void 0||n in a)&&(r.value[n]=c.value)}if(!r.issues||!i.abortEarly){for(let n in a)if(!(n in this.entries)){let o=a[n];ee(this,"type",r,i,{input:o,expected:"never",path:[{type:"object",origin:"value",input:a,key:n,value:o}]});break}}}else ee(this,"type",r,i);return r}}}function De(e){return{kind:"schema",type:"string",reference:De,expects:"string",async:!1,message:e,_run(t,r){return typeof t.value=="string"?t.typed=!0:ee(this,"type",t,r),t}}}function Ft(...e){return{...e[0],pipe:e,_run(t,r){for(let i of e)if(i.kind!=="metadata"){if(t.issues&&(i.kind==="schema"||i.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=i._run(t,r))}return t}}}var Bt=Ft(De(),je("lid"));Pe({id:Bt,ver:Te(Re())});var qt=e=>()=>e*48271%2147483647/2147483647,Vt=e=>typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(typeof e=="string"?e:String.fromCharCode(...e)),Gt=e=>typeof Buffer<"u"?Buffer.from(e,"base64").toString():atob(e),Xt=(e,t)=>{let r=qt(t),i=new TextEncoder().encode(e).map(a=>a^Math.floor(r()*256));return Vt(i)},Yt=e=>e.split("").reverse().join(""),Qt=e=>typeof e=="object"&&!!e&&"sub"in e&&"exp"in e&&typeof e.sub=="string"&&typeof e.exp=="number",Zt=async e=>{let t=Yt(Gt(e));return{decoded:Dt(t),jwt:t}},er=async e=>{let{decoded:t,jwt:r}=await Zt(e);if(!Qt(t))throw new Error("Invalid license key");let{sub:i,exp:a}=t,s=new TextEncoder().encode(Xt(i,a));return await Tt(r,s),t};function tr({r:e,v:t,t:r}){const i=ye();if(v.useEffect(()=>{e!==void 0&&e.toLowerCase().includes("ehsug")?i.setType("production"):i.setType(r)},[]),v.useEffect(()=>{const a=async n=>{if(n===void 0)return{type:"nokey",daysleft:0};try{const o=await er(n),d=new Date(o.exp*1e3)-new Date,w=Math.floor(d/(1e3*60*60*24));return w>0?{type:"trial",daysleft:w}:{type:"expired",daysleft:0}}catch(o){return o.message.includes("claim timestamp check failed")?{type:"expired",daysleft:0}:{type:"invalidkey",daysleft:0}}},s=async()=>{var n=await a(e);switch(i.setType(n.type),i.setDaysLeft(n.daysleft),n.type){case"production":case"trial":i.setTrialDialog(!1);break;case"nokey":case"expired":case"invalidkey":default:i.setTrialDialog(!0);break}};i.type!==null&&i.type!=="production"&&s()},[i.type]),i.type!=="production"&&i.trialdialog===!0)return l.jsx("div",{style:{zIndex:2e5,fontSize:"22px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:l.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[l.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[l.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),l.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the React ReExt v",t," Trial"]})]}),i.type==="trial"||i.type==="nokey"&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of React ReExt.",l.jsx("br",{}),"Without a valid trial key, this dialog will appear.",l.jsx("br",{}),l.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),l.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:l.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"0px solid lightgray"},src:"https://www.sencha.com/forms/reext/trial-reext.php"})}),l.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[l.jsx("div",{style:{fontSize:"12px"},children:i.type}),l.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{i.setTrialDialog(!1)},children:"Close"})]})]}),i.type==="expired"&&l.jsx(l.Fragment,{children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[l.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key has expired"}),l.jsx("div",{children:"Contact Sencha Sales"}),l.jsx("div",{children:l.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})}),i.type==="invalidkey"&&l.jsx(l.Fragment,{children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[l.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key is invalid"}),l.jsx("div",{children:"Contact Sencha Sales"}),l.jsx("div",{children:l.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})})]})})}async function rr(e){try{let j=async(S,m,b)=>await new Promise(k=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=b,window.Ext.ReExtTheme=S,window.Ext.ReExtLi=!0,k(1)})}),g=async S=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((m,b)=>{let k=document.getElementsByTagName("HEAD")[0];var y=!1;for(let $=0;$<k.childNodes.length;$++)k.childNodes[$].src===S&&(y=!0);if(y===!1){let $=document.createElement("script");$.addEventListener("load",()=>m(1)),$.addEventListener("error",()=>{var I=`${S} (js)
(function(A,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],l):(A=typeof globalThis<"u"?globalThis:A||self,l(A.ReExt={},A.jsxRuntime,A.React,A.ReactDOM))})(this,function(A,l,v,q){"use strict";const fe={name:"@sencha/reext",version:"0.0.295",description:"React ReExt",types:"./dist/ReExt/types.d.ts",module:"./dist/reext.es.js",scripts:{b:"npm run buildclonedeep && npm run buildisequal && npm run buildfill && npm run buildgetconfig && npm run buildglobalprovider && npm run buildisevent && npm run builditeratechildren && npm run buildloadextjsfiles && npm run buildpropupdate && npm run buildresizeobserver && npm run builduntilextloaded && npm run buildwatermark",buildclonedeep:"esbuild ./src/lib/modules/cloneDeep.jsx --format=esm --bundle --minify --outfile=./src/lib/cloneDeep.js",buildisequal:"esbuild ./src/lib/modules/isEqual.jsx --format=esm --bundle --minify --outfile=./src/lib/isEqual.js",buildfill:"esbuild ./src/lib/modules/Fill.jsx --format=esm --bundle --minify --outfile=./src/lib/Fill.js",buildgetconfig:"esbuild ./src/lib/modules/getconfig.jsx --format=esm --bundle --minify --outfile=./src/lib/getconfig.js",buildglobalprovider:"esbuild ./src/lib/modules/GlobalProvider.jsx --format=esm --minify --outfile=./src/lib/GlobalProvider.js --inject:./src/lib/modules/react-shim.js",buildisevent:"esbuild ./src/lib/modules/isevent.jsx --format=esm --bundle --minify --outfile=./src/lib/isevent.js",builditeratechildren:"esbuild ./src/lib/modules/iteratechildren.jsx --format=esm --bundle --minify --outfile=./src/lib/iteratechildren.js --external:react --external:react-dom",buildloadextjsfiles:"esbuild ./src/lib/modules/loadextjsfiles.jsx --format=esm --bundle --minify --outfile=./src/lib/loadextjsfiles.js",buildpropupdate:"esbuild ./src/lib/modules/propupdate.jsx --format=esm --bundle --minify --outfile=./src/lib/propupdate.js",buildresizeobserver:"esbuild ./src/lib/modules/resizeobserver.jsx --format=esm --bundle --minify --outfile=./src/lib/resizeobserver.js",builduntilextloaded:"esbuild ./src/lib/modules/untilextloaded.jsx --format=esm --bundle --minify --outfile=./src/lib/untilextloaded.js",buildwatermark:"esbuild ./src/lib/modules/watermark.jsx --format=esm --bundle --minify --outfile=./src/lib/watermark.js",preinstall:"node ./dist/scripts/preinstall.js",postinstall:"node ./dist/scripts/postinstall.js",prepublishOnly:"node ./public/scripts/prepublish.js",postpack:"node ./public/scripts/postpack.js",postpublish:"node ./public/scripts/postpublish.js",pack:"npm pack --pack-destination zip",dev:"vite",builddev:"vite build -m development",build:"vite build",test:"vitest run",watch:"vitest",coverage:"vitest run --coverage",lint:"eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0"},author:{name:"Sencha, Inc.",email:"marc.gusmano@sencha.com",url:"http://www.sencha.com"},homepage:"https://www.sencha.com/products/reext/",keywords:["React","NextJS","Sencha","ExtJS","Components","ReExt"],license:"MIT",exports:{".":{import:"./dist/reext.es.js"}},devDependencies:{"@vitejs/plugin-react-swc":"^3.7.0",eslint:"8.57.0","eslint-plugin-react":"^7.35.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.9",vite:"^5.4.1"},dependencies:{react:"^18.3.1","react-dom":"^18.3.1"}},Ie=(e,t)=>{for(var r in e)typeof e[r]=="function"&&function(i,a){var s=r;e[r]=function(){t===!0&&console.log("---"),console.log("globalState."+s+" payload:",arguments[0]),t===!0&&console.log(new Error().stack),t===!0&&console.log("---");var n=a.apply(this,arguments);return n}}(r,e[r])},Oe=async(e,t,r)=>{console.log("dispatch:",e.type,e.payload),r.dispatchStack&&console.log(new Error().stack)},We=(e,t,r)=>{const[i,a]=v.useReducer(e,t),s=v.useRef(null);var n=r.middleware;n===void 0&&(n=[]);var o=r.middlewareafter;return o===void 0&&(o=[]),v.useEffect(()=>{o.map(c=>c(s.current,i))},[o,i]),[i,c=>{n.map(p=>p(c,i,r)),s.current=c,a(c)}]},pe=v.createContext(),ye=()=>v.useContext(pe),He=(e,t)=>{var r={...e};return r[t.type.toLowerCase()]=t.payload,window.vscodeapi!==void 0&&vscodeapi.setState(r),r},Je=e=>{if(e===void 0)return;var t=e.types,r={};for(let o in t)t.hasOwnProperty(o)&&(r["set"+o]=c=>s({type:o,payload:c}));var i={};for(let o in t)t.hasOwnProperty(o)&&(i[o.toLowerCase()]=t[o].value);v.useEffect(()=>{e.dispatchTrace&&e.middleware.push(Oe)},[e]),e.actionTrace&&Ie(r,e.actionStack);const[a,s]=We(He,i,e),n=(o,c)=>{var p={};for(const[d]of Object.entries(c))p[d]=o[d];return p};return v.createElement(pe.Provider,{value:{...n(a,i),...r}},e.children)};function V(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++)t[r]=V(e[r]);return t}if(e instanceof Object){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=V(e[r]));return t}return e}function re(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!re(e[r],t[r]))return!1;return!0}if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a of r)if(!t.hasOwnProperty(a)||!re(e[a],t[a]))return!1;return!0}return!1}function Ne({reactversion:e,extver:t,extlocation:r,exttoolkit:i,exttheme:a,type:s,packageversion:n,style:o,flexdirection:c,...p}){return l.jsxs("div",{name:"ReExtRootLogo","data-rid":p.rid,style:{display:"flex",flexDirection:c,alignItems:"center",color:"black",padding:5,...o},children:[l.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),l.jsxs("div",{style:{margin:"0 0 0 3px"},children:[l.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:l.jsx("a",{style:p.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:l.jsxs("i",{children:["React ReExt ",n]})})}),l.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:l.jsx("span",{style:{margin:"0 0 0 0"},children:s})}),l.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:l.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",l.jsx("b",{children:e})]})}),l.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:l.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",l.jsxs("b",{children:[t," (",r,")"]})]})}),l.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[l.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",l.jsx("b",{children:i})]}),l.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",l.jsx("b",{children:a})]})]})]})]})}var ze=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},Ke=(e,t,r,i)=>{if(!(typeof window===void 0||typeof window>"u")){var a={};if(a.xtype=e,t!==void 0)for(let[n,o]of Object.entries(t))a[n]=o;if(r.references===!0&&(a.controller=window.Ext.create("Ext.app.ViewController")),a.store!==void 0&&(a.store.listeners!==void 0?a.store.listeners.load===void 0&&(a.store.listeners.load=n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}):a.store.listeners={load:n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}}),a.listeners===void 0){a.listeners={};for(let[n,o]of Object.entries(r)){var s=ze(n);s!==null&&(a.listeners[s]=function(){o(...arguments)})}Object.keys(a.listeners).length===0&&delete a.listeners}return a}},Le=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},he=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=[],a=[];if(e===void 0)return[];e.length===void 0?a.push(e):a=e;try{return a.map(s=>{var n,o;if(t.xtype==="tabpanel"){var c;window.Ext.ReExtTheme==="classic"?c="Ext.panel.Panel":c="Ext.Panel",n=window.Ext.create(c,{layout:"fit",title:s.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{boxready:f=>{o=q.createPortal(s,f.el.dom),i.push(o);var C=f.el.dom.parentNode;r.observe(C)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),t.add(n),window.Ext.isClassic===!0?p="Ext.container.Container":p="Ext.Container",window.Ext.isClassic!==!0&&(o=q.createPortal(s,n.items.items[0].el.dom),i.push(o))}else{var p;window.Ext.isClassic===!0?p="Ext.container.Container":p="Ext.Container";var d={...s.props.style,layout:"fit",cls:"ReExtWidgetRoot"};n=window.Ext.create(p,d),t.add(n);var w=v.cloneElement(s,{ReExtParent:t});window.Ext.isClassic===!0?o=q.createPortal(w,n.el.dom):o=q.createPortal(w,n.innerElement.dom),i.push(o)}}),i}catch(s){return console.error("iteratechldren:",s.toString()),[]}}},Me=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=s=>{let n=s.charAt(0).toUpperCase(),o=s.slice(1);var c="set"+(n+o);return c},a;window.Ext.isClassic===!0?t==="items"?(e.removeAll(!0),e.add(r)):t!=="layout"&&(a=i(t),e[a]!==void 0?e[a](r):e[t]=r):(a=i(t),e[a]!==void 0&&e[a](r))}},Ue=()=>{var e;return typeof ResizeObserver<"u"?(e=new ResizeObserver(t=>{if(!(typeof window===void 0||typeof window>"u"))for(let o of t){var r=0,i=o.target.children.item(r);if(i!==null&&o.contentBoxSize){let c=o.contentBoxSize[0];var a=c.inlineSize,s=window.Ext.getCmp(i.id);if(s!==void 0)window.Ext.getCmp(i.id).setWidth(a),window.Ext.getCmp(i.id).setHeight(c.blockSize);else if(!i.classList.contains("wm")){console.log("child not found",i.id);var n=i.getAttribute("w");n!=="w"&&console.warn("child not resized",i)}}}}),e):null};async function Fe(){return await new Promise(e=>{function t(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(r),e(1)})}var r=setInterval(t,5)})}var Be=(e,t,r)=>{if(typeof window>"u")return;let i=document.createElement("div");i.classList.add("wm"),i.style.zIndex=2e4,i.style.position="absolute",i.style.bottom="0px",i.style.right="0px",i.style.color="white",i.style.fontSize="10px",i.style.fontWeight="bold",i.style.fontStyle="italic",i.style.background="#B87333",i.style.padding="1px 3px 1px 1px",i.style.border="1px solid lightgray",i.style.borderRadius="3px 3px 3px 3px",i.innerText="ReExt "+t,r!==null?r.appendChild(i):e.el!==void 0&&e.el.dom.appendChild(i)};function qe(e){const t=ye();if(typeof window===void 0||typeof window>"u")return;const[r,i]=v.useState(null),[a,s]=v.useState(null),n=v.useRef(null);n.current=a;const o=()=>n.current,[c,p]=v.useState(null),d=v.useRef(null);d.current=c;const w=()=>d.current,f=v.useRef(null);var C=Ue();v.useEffect(()=>{var m,b="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await Fe(),e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]),b==="false"&&e.xtype!=="logo"){var k;w()==null?k=e.config:k=w();try{var y=Ke(e.xtype,k,e,o),$=Ext.ClassManager.getByAlias("widget."+y.xtype);if($===void 0){var I="ReExt "+y.xtype+" could not be created";y={xtype:"label",text:I,style:{color:"red",background:"lightgray"}}}if(y.height===void 0&&y.xtype!=="window"&&(window.Ext.isClassic===!0&&y.xtype==="grid"?y.height=0:y.height="100%"),y.width===void 0&&y.xtype!=="window"&&(window.Ext.isClassic===!0&&y.xtype==="grid"?y.width=0:y.width="100%"),window.Ext.isClassic===!0){const W=ue=>{var F=ue.el.dom.parentNode;C.observe(F)};y.listeners===void 0?y.listeners={boxready:W}:y.listeners.boxready=W}y.xtype!=="window"&&(y.renderTo=f.current),m=window.Ext.create(y),s(m),n.current=m,e.config!==void 0&&e.config.reference!==void 0&&e.ReExtParent!==void 0&&(e.ReExtParent.ReExtChildren===void 0&&(e.ReExtParent.ReExtChildren=[]),e.ReExtParent.ReExtChildren.push(m)),f.current===null?console.warn("ReExtRootRef.current,props",f.current,e):(f.current.style.background="transparent",f.current.firstChild.remove());var T=he(e.children,m,C);i(T),t.type!==null&&t.type!=="production"&&Be(m,y.xtype,f.current),e.ready!==void 0&&e.ready(m)}catch(W){console.error(W)}}})(),()=>{b="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&m!=null&&(s(null),window.Ext.destroy(m))}},[t.type]),v.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&e.config!==void 0){if(n.current!==null){e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]);for(const[T]of Object.entries(d.current)){if(Le(T)!=null||T==="xtype")return;var m=V(d.current[T]),b=V(e.config[T]);m!=null&&delete m.listeners,b!==void 0&&m!==null&&delete b.listeners;const W=ue=>{let F=[],or=JSON.stringify(ue,function(br,B){if(typeof B=="object"&&B!==null){if(F.indexOf(B)!==-1)return;F.push(B)}return B});return F=null,or};var k=W(m),y=W(b),$=re(k,y);if(!$&&(Me(n.current,T,b),T==="items")){var I=he(e.children,n.current,C);i(I)}}}p(e.config),d.current=e.config}},[e.config]);var R="",z="",O="",E="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){z=window.Ext.versions.core.version,E=window.Ext.ReExtTheme,R=window.Ext.ReExtLocation;var te=window.Ext.isClassic;te===!0?O="classic":O="modern"}if(!(typeof window===void 0||typeof window>"u")){var u="";if(t.type==="production"||t.type===null?u="production":u=`${t.type} - ${t.daysleft} days left`,e.xtype==="logo")return l.jsx(Ne,{reactversion:v.version,extver:z,extlocation:R,exttoolkit:O,exttheme:E,type:u,packageversion:fe.version,flexdirection:e.flexdirection,style:e.style});var j;e.style===void 0||e.style.height===void 0?j=1:j="none";var g="";if(e.className!==void 0&&(g=e.className),e.xtype==="window")return null;var h,K,S={};return e.child===!0&&(S={height:"100%"}),r===null?(h={...e.style,...S,flex:j,position:"relative",display:"flex",overflow:"hidden"},K=g+" fill"):r.length===0?(h={...e.style,...S,flex:j,position:"relative",display:"flex",overflow:"hidden"},K=g+" fill"):(h={...e.style,flex:j,position:"relative",display:"flex",overflow:"hidden"},K=g),l.jsx("div",{name:"ReExtRoot-"+e.xtype,"data-rid":e.rid,className:K,style:h,ref:f,children:l.jsx("div",{className:"portalroot",style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:r!==null&&r.map(m=>m)})})}}}async function Ve(){if(typeof window===void 0||typeof window>"u")return;function e(t){t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.padding="0",t.style.boxSizing="border-box",t.style.overflow="hidden"}document.documentElement&&e(document.documentElement),document.body&&e(document.body),document.getElementById("root")&&e(document.getElementById("root"))}function Ge(){if(!(typeof window===void 0||typeof window>"u"))return l.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:l.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}var Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ye=Xe(()=>{}),ie=crypto,we=e=>e instanceof CryptoKey,G=new TextEncoder,L=new TextDecoder;function Qe(...e){let t=e.reduce((a,{length:s})=>a+s,0),r=new Uint8Array(t),i=0;for(let a of e)r.set(a,i),i+=a.length;return r}var Ze=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r},M=e=>{let t=e;t instanceof Uint8Array&&(t=L.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Ze(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}},H=class extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(t=Error.captureStackTrace)==null||t.call(Error,this,this.constructor)}},P=class extends H{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=t}},me=class extends H{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=t}},J=class extends H{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}},x=class extends H{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}},D=class extends H{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}},et=class extends H{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};function _(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function X(e,t){return e.name===t}function ae(e){return parseInt(e.name.slice(4),10)}function tt(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function rt(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let i=t.pop();r+=`one of ${t.join(", ")}, or ${i}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function it(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!X(e.algorithm,"HMAC"))throw _("HMAC");let i=parseInt(t.slice(2),10);if(ae(e.algorithm.hash)!==i)throw _(`SHA-${i}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!X(e.algorithm,"RSASSA-PKCS1-v1_5"))throw _("RSASSA-PKCS1-v1_5");let i=parseInt(t.slice(2),10);if(ae(e.algorithm.hash)!==i)throw _(`SHA-${i}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!X(e.algorithm,"RSA-PSS"))throw _("RSA-PSS");let i=parseInt(t.slice(2),10);if(ae(e.algorithm.hash)!==i)throw _(`SHA-${i}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw _("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!X(e.algorithm,"ECDSA"))throw _("ECDSA");let i=tt(t);if(e.algorithm.namedCurve!==i)throw _(i,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}rt(e,r)}function ve(e,t,...r){var i;if(r.length>2){let a=r.pop();e+=`one of type ${r.join(", ")}, or ${a}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&((i=t.constructor)!=null&&i.name)&&(e+=` Received an instance of ${t.constructor.name}`),e}var ge=(e,...t)=>ve("Key must be ",e,...t);function be(e,t,...r){return ve(`Key for the ${e} algorithm must be `,t,...r)}var xe=e=>we(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Y=["CryptoKey"],at=(...e)=>{let t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(let i of t){let a=Object.keys(i);if(!r||r.size===0){r=new Set(a);continue}for(let s of a){if(r.has(s))return!1;r.add(s)}}return!0},nt=at;function ot(e){return typeof e=="object"&&e!==null}function Q(e){if(!ot(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var st=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function lt(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new J('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new J('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new J('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new J('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var ct=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=lt(e),i=[t,e.ext??!1,e.key_ops??r],a={...e};return delete a.alg,delete a.use,ie.subtle.importKey("jwk",a,...i)},dt=ct,Ee=e=>M(e),ne,oe,Se=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",ke=async(e,t,r,i)=>{let a=e.get(t);if(a!=null&&a[i])return a[i];let s=await dt({...r,alg:i});return a?a[i]=s:e.set(t,{[i]:s}),s},ut=(e,t)=>{if(Se(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?Ee(r.k):(oe||(oe=new WeakMap),ke(oe,e,r,t))}return e},ft=(e,t)=>{if(Se(e)){let r=e.export({format:"jwk"});return r.k?Ee(r.k):(ne||(ne=new WeakMap),ke(ne,e,r,t))}return e},pt={normalizePublicKey:ut,normalizePrivateKey:ft},N=e=>e==null?void 0:e[Symbol.toStringTag],yt=(e,t)=>{if(!(t instanceof Uint8Array)){if(!xe(t))throw new TypeError(be(e,t,...Y,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${N(t)} instances for symmetric algorithms must be of type "secret"`)}},ht=(e,t,r)=>{if(!xe(t))throw new TypeError(be(e,t,...Y));if(t.type==="secret")throw new TypeError(`${N(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${N(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${N(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${N(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${N(t)} instances for asymmetric algorithm encryption must be of type "public"`)},wt=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?yt(e,t):ht(e,t,r)},mt=wt;function vt(e,t,r,i,a){if(a.crit!==void 0&&(i==null?void 0:i.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||i.crit===void 0)return new Set;if(!Array.isArray(i.crit)||i.crit.length===0||i.crit.some(n=>typeof n!="string"||n.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let s;r!==void 0?s=new Map([...Object.entries(r),...t.entries()]):s=t;for(let n of i.crit){if(!s.has(n))throw new J(`Extension Header Parameter "${n}" is not recognized`);if(a[n]===void 0)throw new e(`Extension Header Parameter "${n}" is missing`);if(s.get(n)&&i[n]===void 0)throw new e(`Extension Header Parameter "${n}" MUST be integrity protected`)}return new Set(i.crit)}var gt=vt;function bt(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new J(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function xt(e,t,r){if(t=await pt.normalizePublicKey(t,e),we(t))return it(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(ge(t,...Y));return ie.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(ge(t,...Y,"Uint8Array"))}var Et=async(e,t,r,i)=>{let a=await xt(e,t,"verify");st(e,a);let s=bt(e,a.algorithm);try{return await ie.subtle.verify(s,a,r,i)}catch{return!1}},St=Et;async function kt(e,t,r){if(!Q(e))throw new x("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new x('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new x("JWS Protected Header incorrect type");if(e.payload===void 0)throw new x("JWS Payload missing");if(typeof e.signature!="string")throw new x("JWS Signature missing or incorrect type");if(e.header!==void 0&&!Q(e.header))throw new x("JWS Unprotected Header incorrect type");let i={};if(e.protected)try{let C=M(e.protected);i=JSON.parse(L.decode(C))}catch{throw new x("JWS Protected Header is invalid")}if(!nt(i,e.header))throw new x("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...i,...e.header},s=gt(x,new Map([["b64",!0]]),r==null?void 0:r.crit,i,a),n=!0;if(s.has("b64")&&(n=i.b64,typeof n!="boolean"))throw new x('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:o}=a;if(typeof o!="string"||!o)throw new x('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(n){if(typeof e.payload!="string")throw new x("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new x("JWS Payload must be a string or an Uint8Array instance");let c=!1;typeof t=="function"&&(t=await t(i,e),c=!0),mt(o,t,"verify");let p=Qe(G.encode(e.protected??""),G.encode("."),typeof e.payload=="string"?G.encode(e.payload):e.payload),d;try{d=M(e.signature)}catch{throw new x("Failed to base64url decode the signature")}if(!await St(o,t,d,p))throw new et;let w;if(n)try{w=M(e.payload)}catch{throw new x("Failed to base64url decode the payload")}else typeof e.payload=="string"?w=G.encode(e.payload):w=e.payload;let f={payload:w};return e.protected!==void 0&&(f.protectedHeader=i),e.header!==void 0&&(f.unprotectedHeader=e.header),c?{...f,key:t}:f}async function $t(e,t,r){if(e instanceof Uint8Array&&(e=L.decode(e)),typeof e!="string")throw new x("Compact JWS must be a string or Uint8Array");let{0:i,1:a,2:s,length:n}=e.split(".");if(n!==3)throw new x("Invalid Compact JWS");let o=await kt({payload:a,protected:i,signature:s},t,r),c={payload:o.payload,protectedHeader:o.protectedHeader};return typeof t=="function"?{...c,key:o.key}:c}var Ct=e=>Math.floor(e.getTime()/1e3),At=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,$e=e=>{let t=At.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");let r=parseFloat(t[2]),i=t[3].toLowerCase(),a;switch(i){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(r*60);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(r*3600);break;case"day":case"days":case"d":a=Math.round(r*86400);break;case"week":case"weeks":case"w":a=Math.round(r*604800);break;default:a=Math.round(r*31557600);break}return t[1]==="-"||t[4]==="ago"?-a:a},Ce=e=>e.toLowerCase().replace(/^application\//,""),jt=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,Rt=(e,t,r={})=>{let i;try{i=JSON.parse(L.decode(t))}catch{}if(!Q(i))throw new D("JWT Claims Set must be a top-level JSON object");let{typ:a}=r;if(a&&(typeof e.typ!="string"||Ce(e.typ)!==Ce(a)))throw new P('unexpected "typ" JWT header value',i,"typ","check_failed");let{requiredClaims:s=[],issuer:n,subject:o,audience:c,maxTokenAge:p}=r,d=[...s];p!==void 0&&d.push("iat"),c!==void 0&&d.push("aud"),o!==void 0&&d.push("sub"),n!==void 0&&d.push("iss");for(let R of new Set(d.reverse()))if(!(R in i))throw new P(`missing required "${R}" claim`,i,R,"missing");if(n&&!(Array.isArray(n)?n:[n]).includes(i.iss))throw new P('unexpected "iss" claim value',i,"iss","check_failed");if(o&&i.sub!==o)throw new P('unexpected "sub" claim value',i,"sub","check_failed");if(c&&!jt(i.aud,typeof c=="string"?[c]:c))throw new P('unexpected "aud" claim value',i,"aud","check_failed");let w;switch(typeof r.clockTolerance){case"string":w=$e(r.clockTolerance);break;case"number":w=r.clockTolerance;break;case"undefined":w=0;break;default:throw new TypeError("Invalid clockTolerance option type")}let{currentDate:f}=r,C=Ct(f||new Date);if((i.iat!==void 0||p)&&typeof i.iat!="number")throw new P('"iat" claim must be a number',i,"iat","invalid");if(i.nbf!==void 0){if(typeof i.nbf!="number")throw new P('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>C+w)throw new P('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(i.exp!==void 0){if(typeof i.exp!="number")throw new P('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=C-w)throw new me('"exp" claim timestamp check failed',i,"exp","check_failed")}if(p){let R=C-i.iat,z=typeof p=="number"?p:$e(p);if(R-w>z)throw new me('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(R<0-w)throw new P('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};async function Tt(e,t,r){var s;let i=await $t(e,t,r);if((s=i.protectedHeader.crit)!=null&&s.includes("b64")&&i.protectedHeader.b64===!1)throw new D("JWTs MUST NOT use unencoded payload");let a={payload:Rt(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return typeof t=="function"?{...a,key:i.key}:a}var Pt=M;function Dt(e){if(typeof e!="string")throw new D("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new D("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new D("Invalid JWT");if(!t)throw new D("JWTs must contain a payload");let i;try{i=Pt(t)}catch{throw new D("Failed to base64url decode the payload")}let a;try{a=JSON.parse(L.decode(i))}catch{throw new D("Failed to parse the decoded payload as JSON")}if(!Q(a))throw new D("Invalid JWT Claims Set");return a}function Z(e){var t=new Error(e);return t.source="ulid",t}var se="0123456789ABCDEFGHJKMNPQRSTVWXYZ",U=se.length,Ae=Math.pow(2,48)-1,_t=10,It=16;function Ot(e){var t=Math.floor(e()*U);return t===U&&(t=U-1),se.charAt(t)}function Wt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>Ae)throw Z("cannot encode time greater than "+Ae);if(e<0)throw Z("time must be positive");if(Number.isInteger(e)===!1)throw Z("time must be an integer");for(var r=void 0,i="";t>0;t--)r=e%U,i=se.charAt(r)+i,e=(e-r)/U;return i}function Ht(e,t){for(var r="";e>0;e--)r=Ot(t)+r;return r}function Jt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};try{var i=Ye();return function(){return i.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw Z("secure crypto unusable, insecure Math.random not allowed")}function Nt(e){return e||(e=Jt()),function(t){return isNaN(t)&&(t=Date.now()),Wt(t,_t)+Ht(It,e)}}Nt();var le;function zt(e){return le==null?void 0:le.get(e)}var ce;function Kt(e){return ce==null?void 0:ce.get(e)}var de;function Lt(e,t){var r;return(r=de==null?void 0:de.get(e))==null?void 0:r.get(t)}function Mt(e){var r,i;let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((i=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor)==null?void 0:i.name))??"null":t}function ee(e,t,r,i,a){let s=a&&"input"in a?a.input:r.value,n=(a==null?void 0:a.expected)??e.expects??null,o=(a==null?void 0:a.received)??Mt(s),c={kind:e.kind,type:e.type,input:s,expected:n,received:o,message:`Invalid ${t}: ${n?`Expected ${n} but r`:"R"}eceived ${o}`,requirement:e.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},p=e.kind==="schema",d=(a==null?void 0:a.message)??e.message??Lt(e.reference,c.lang)??(p?Kt(c.lang):null)??i.message??zt(c.lang);d&&(c.message=typeof d=="function"?d(c):d),p&&(r.typed=!1),r.issues?r.issues.push(c):r.issues=[c]}function je(e){return{kind:"transformation",type:"brand",reference:je,async:!1,name:e,_run(t){return t}}}function Ut(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function Re(e){return{kind:"schema",type:"number",reference:Re,expects:"number",async:!1,message:e,_run(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:ee(this,"type",t,r),t}}}function Te(e,...t){let r={kind:"schema",type:"optional",reference:Te,expects:`${e.expects} | undefined`,async:!1,wrapped:e,_run(i,a){return i.value===void 0&&("default"in this&&(i.value=Ut(this,i,a)),i.value===void 0)?(i.typed=!0,i):this.wrapped._run(i,a)}};return 0 in t&&(r.default=t[0]),r}function Pe(e,t){return{kind:"schema",type:"strict_object",reference:Pe,expects:"Object",async:!1,entries:e,message:t,_run(r,i){var s;let a=r.value;if(a&&typeof a=="object"){r.typed=!0,r.value={};for(let n in this.entries){let o=a[n],c=this.entries[n]._run({typed:!1,value:o},i);if(c.issues){let p={type:"object",origin:"value",input:a,key:n,value:o};for(let d of c.issues)d.path?d.path.unshift(p):d.path=[p],(s=r.issues)==null||s.push(d);if(r.issues||(r.issues=c.issues),i.abortEarly){r.typed=!1;break}}c.typed||(r.typed=!1),(c.value!==void 0||n in a)&&(r.value[n]=c.value)}if(!r.issues||!i.abortEarly){for(let n in a)if(!(n in this.entries)){let o=a[n];ee(this,"type",r,i,{input:o,expected:"never",path:[{type:"object",origin:"value",input:a,key:n,value:o}]});break}}}else ee(this,"type",r,i);return r}}}function De(e){return{kind:"schema",type:"string",reference:De,expects:"string",async:!1,message:e,_run(t,r){return typeof t.value=="string"?t.typed=!0:ee(this,"type",t,r),t}}}function Ft(...e){return{...e[0],pipe:e,_run(t,r){for(let i of e)if(i.kind!=="metadata"){if(t.issues&&(i.kind==="schema"||i.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=i._run(t,r))}return t}}}var Bt=Ft(De(),je("lid"));Pe({id:Bt,ver:Te(Re())});var qt=e=>()=>e*48271%2147483647/2147483647,Vt=e=>typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(typeof e=="string"?e:String.fromCharCode(...e)),Gt=e=>typeof Buffer<"u"?Buffer.from(e,"base64").toString():atob(e),Xt=(e,t)=>{let r=qt(t),i=new TextEncoder().encode(e).map(a=>a^Math.floor(r()*256));return Vt(i)},Yt=e=>e.split("").reverse().join(""),Qt=e=>typeof e=="object"&&!!e&&"sub"in e&&"exp"in e&&typeof e.sub=="string"&&typeof e.exp=="number",Zt=async e=>{let t=Yt(Gt(e));return{decoded:Dt(t),jwt:t}},er=async e=>{let{decoded:t,jwt:r}=await Zt(e);if(!Qt(t))throw new Error("Invalid license key");let{sub:i,exp:a}=t,s=new TextEncoder().encode(Xt(i,a));return await Tt(r,s),t};function tr({r:e,v:t,t:r}){const i=ye();if(v.useEffect(()=>{e!==void 0&&e.toLowerCase().includes("ehsug")?i.setType("production"):i.setType(r)},[]),v.useEffect(()=>{const a=async n=>{if(n===void 0)return{type:"nokey",daysleft:0};try{const o=await er(n),d=new Date(o.exp*1e3)-new Date,w=Math.floor(d/(1e3*60*60*24));return w>0?{type:"trial",daysleft:w}:{type:"expired",daysleft:0}}catch(o){return o.message.includes("claim timestamp check failed")?{type:"expired",daysleft:0}:{type:"invalidkey",daysleft:0}}},s=async()=>{var n=await a(e);switch(i.setType(n.type),i.setDaysLeft(n.daysleft),n.type){case"production":case"trial":i.setTrialDialog(!1);break;case"nokey":case"expired":case"invalidkey":default:i.setTrialDialog(!0);break}};i.type!==null&&i.type!=="production"&&s()},[i.type]),i.type!=="production"&&i.trialdialog===!0)return l.jsx("div",{style:{zIndex:2e5,fontSize:"22px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:l.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[l.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[l.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),l.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the React ReExt v",t," Trial"]})]}),i.type==="trial"||i.type==="nokey"&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of React ReExt.",l.jsx("br",{}),"Without a valid trial key, this dialog will appear.",l.jsx("br",{}),l.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),l.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:l.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"0px solid lightgray"},src:"https://www.sencha.com/forms/reext/trial-reext.php"})}),l.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[l.jsx("div",{style:{fontSize:"12px"},children:i.type}),l.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{i.setTrialDialog(!1)},children:"Close"})]})]}),i.type==="expired"&&l.jsx(l.Fragment,{children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[l.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key has expired"}),l.jsx("div",{children:"Contact Sencha Sales"}),l.jsx("div",{children:l.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})}),i.type==="invalidkey"&&l.jsx(l.Fragment,{children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[l.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your React ReExt trial key is invalid"}),l.jsx("div",{children:"Contact Sencha Sales"}),l.jsx("div",{children:l.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})})]})})}async function rr(e){try{let j=async(S,m,b)=>await new Promise(k=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=b,window.Ext.ReExtTheme=S,window.Ext.ReExtLi=!0,k(1)})}),g=async S=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((m,b)=>{let k=document.getElementsByTagName("HEAD")[0];var y=!1;for(let $=0;$<k.childNodes.length;$++)k.childNodes[$].src===S&&(y=!0);if(y===!1){let $=document.createElement("script");$.addEventListener("load",()=>m(1)),$.addEventListener("error",()=>{var I=`${S} (js)

@@ -8,2 +8,2 @@ - did you download the SDK from the support portal?

- are you trying to download a file without an enterprise license?`;return console.error($),b($)}),y.addEventListener("load",()=>m(1)),k.appendChild(y)});var t=e.toolkit;(t==null||t==="")&&(t="modern");var r=e.theme;(r==null||r==="")&&(r="material");var i=e.packages;i===void 0&&(i={charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1});var a=e.debug,s=e.license,n=e.urlbase,o=e.location;(o==="remote"||o===null)&&(n="https://cdn.sencha.com/reext/ext/");var c=e.rtl;c===!1||c===void 0?c="":c="-rtl";var p=e.locale;p===void 0&&(p="en");var d=e.sdkversion;switch(d){case"7.0.0":d=d+".156";break;case"7.1.0":d=d+".46";break;case"7.2.0":case"7.3.0":case"7.3.1":case"7.4.0":case"7.5.0":case"7.5.1":case"7.6.0":case"7.7.0":case"7.8.0":break;default:throw`SDK version ${d} is not valid`}var w=n+"ext-"+d,f=n+"ext-addons-"+d;a===!0?a="-debug":a="";var C="";t==="modern"&&(C="-modern");var R=["ios","material","neptune","triton"];if(t==="modern"&&!R.includes(r))throw`${r} theme is not in ${t} toolkit for SDK version ${d}`;var z=["classic","crisp","graphite","gray","material","neptune","triton"];t==="classic"&&!z.includes(r)&&console.warn(`${r} is a custom theme in ${t} toolkit for SDK version ${d}`);var O=!1;(i.calendar===!0||i.d3===!0||i.exporter===!0||i.pivot===!0||i.pivotd3===!0||i.pivotlocale===!0||i.froalaeditor===!0)&&(O=!0),e.debug===!0&&await g("node_modules/@sencha/reext/dist/ReExt/debug.js");var E=w+"/build";if(d.slice(-1)==="c"){await g(`${E}/ext-${d}-toolkit-${t}-sdk.js`),await h(`${E}/ext-${d}-theme-${r}-sdk.css`),O===!0&&(await g(`${w}/ext-${d}-toolkit-${t}-addons.js`),await h(`${w}/ext-${d}-theme-${r}-addons.css`)),await j(r,s,o);return}if(await g(`${E}/ext${C}-all${c}${a}.js`),await h(`${E}/${t}/theme-${r}/resources/theme-${r}-all${c}.css`),i.fontawesome===!0&&await h(`${E}/packages/font-awesome/resources/font-awesome-all${a}.css`),g(`${E}/${t}/locale/locale-${p}${a}.js`),i.ux===!0&&(await g(`${E}/packages/ux/${t}/ux${a}.js`),d==="7.0.0"&&t==="modern"&&r==="neptune"&&await h(`${E}/packages/ux/${t}/${t}-${r}/resources/ux-all${a}.css`),d==="7.0.0"&&t==="classic"&&await h(`${E}/packages/ux/${t}/${r}/resources/ux-all${a}.css`),d!=="7.0.0"&&t==="classic"&&r==="material"&&await h(`${E}/packages/ux/${t}/${t}-${r}/resources/ux-all${a}.css`),d!=="7.0.0"&&t==="classic"&&r!=="material"&&r!=="gray"&&await h(`${E}/packages/ux/${t}/${r}/resources/ux-all${a}.css`)),i.charts===!0){await g(`${E}/packages/charts/${t}/charts${a}.js`);var te=!0;(t==="modern"&&r==="ios"&&d==="7.0.0"||r==="gray")&&(te=!1),te===!0&&(t==="classic"&&r!=="material"?await h(`${E}/packages/charts/${t}/${r}/resources/charts-all${a}.css`):await h(`${E}/packages/charts/${t}/${t}-${r}/resources/charts-all${a}.css`))}if(O===!0){var u;f=f+"/packages",i.calendar===!0&&(u="calendar",await g(`${f}/${u}/build/${t}/${u}${a}.js`),t==="modern"&&r==="ios"||d==="7.0.0.156"?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):await h(`${f}/${u}/build/${t}/${t}-${r}/resources/${u}-all${a}.css`))),i.d3===!0&&(u="d3",await g(`${f}/${u}/build/${t}/${u}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):await h(`${f}/${u}/build/${t}/${t}-${r}/resources/${u}-all${a}.css`))),i.exporter===!0&&(u="exporter",await g(`${f}/${u}/build/${t}/${u}${a}.js`),await h(`${f}/${u}/build/${t}/resources/${u}-all${a}.css`)),i.pivot===!0&&(u="pivot",await g(`${f}/${u}/build/${t}/${u}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):await h(`${f}/${u}/build/${t}/${t}-${r}/resources/${u}-all${a}.css`))),i.pivotd3===!0&&(u="pivot-d3",await g(`${f}/${u}/build/${t}/${u}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`):await h(`${f}/${u}/build/${t}/${t}-${r}/resources/${u}-all${a}.css`))),i.froalaeditor===!0&&(u="froala-editor",await g(`${f}/${u}/build/${t}/${u}${a}.js`),await h(`${f}/${u}/build/${t}/${r}/resources/${u}-all${a}.css`),await g(`${f}/${u}/development/froalaeditor.pkgd.js`),await h(`${f}/${u}/development/froalaeditor.pkgd.css`)),i.pivotlocale}async function K(S){var m=S.location;if(m==="local"){var b=S.overrides;if(b===void 0&&(b=!1),b!==!0&&(b=!1),b===!0){var k=`${S.urlbase}ext-${S.sdkversion}/${t}overrides.js`;console.log("overridefile",k);async function $(I){try{let T=await fetch(I,{method:"HEAD"});return T.status===404?(console.error("ReExtData.overrides is true but no overrides file exists"),!1):T.status===200}catch{return!1}}var y=await $(k);y&&await g(k)}}}await K(e),await j(r,s,o)}catch(j){console.warn("fail",j),alert(`Loading Failed:
`+j.toString())}}var _e="trial";function ir({children:e,ReExtData:t,reextkey:r,splash:i}){if(typeof window===void 0||typeof window>"u")return;const[a,s]=v.useState(!1);try{if(v.useEffect(()=>{(async()=>{var c={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};t===void 0&&(t=c);try{await rr(t),s(!0)}catch(p){console.error("fail",p)}})()},[]),!a)return i===!0||i==="true"?l.jsx(Ge,{}):null;if(a){var n={TrialDialog:{value:null},Version:{value:"2024-08-25-a"},Type:{value:null},DaysLeft:{value:null}};return l.jsxs(Je,{types:n,actionTrace:!1,actionStack:!1,dispatchTrace:!1,dispatchStack:!1,middleware:[],middlewareafter:[],children:[_e!=="production"&&l.jsx(tr,{r,v:fe.version,t:_e}),e]})}}catch(o){return l.jsx("div",{children:o.toString()})}}const ar=e=>{if(typeof window===void 0||typeof window>"u")return;const[t,r]=v.useState(e);var i=v.useRef();return i.current=t,[()=>i.current,r]};function nr(e){if(!(typeof window===void 0||typeof window>"u")){for(var t,r=e.getController(),i=e;r===void 0;)r=e.parent.getController(),i=e.parent;if(t=r.getReferences(),t===null&&(t={}),i.ReExtChildren!==void 0)for(var a=0;a<i.ReExtChildren.length;a++)i.ReExtChildren[a].reference!==null&&(t[i.ReExtChildren[a].reference]=i.ReExtChildren[a]);return t}}A.Fill=Ve,A.ReExtProvider=ir,A.ReExtReferences=nr,A.default=qe,A.useReExtState=ar,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
`+j.toString())}}var _e="trial";function ir({children:e,ReExtData:t,reextkey:r,splash:i}){if(typeof window===void 0||typeof window>"u")return;const[a,s]=v.useState(!1);try{if(v.useEffect(()=>{(async()=>{var c={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};t===void 0&&(t=c);try{await rr(t),s(!0)}catch(p){console.error("fail",p)}})()},[]),!a)return i===!0||i==="true"?l.jsx(Ge,{}):null;if(a){var n={TrialDialog:{value:null},Version:{value:"2024-08-26-a"},Type:{value:null},DaysLeft:{value:null}};return l.jsxs(Je,{types:n,actionTrace:!1,actionStack:!1,dispatchTrace:!1,dispatchStack:!1,middleware:[],middlewareafter:[],children:[_e!=="production"&&l.jsx(tr,{r,v:fe.version,t:_e}),e]})}}catch(o){return l.jsx("div",{children:o.toString()})}}const ar=e=>{if(typeof window===void 0||typeof window>"u")return;const[t,r]=v.useState(e);var i=v.useRef();return i.current=t,[()=>i.current,r]};function nr(e){if(!(typeof window===void 0||typeof window>"u")){for(var t,r=e.getController(),i=e;r===void 0;)r=e.parent.getController(),i=e.parent;if(t=r.getReferences(),t===null&&(t={}),i.ReExtChildren!==void 0)for(var a=0;a<i.ReExtChildren.length;a++)i.ReExtChildren[a].reference!==null&&(t[i.ReExtChildren[a].reference]=i.ReExtChildren[a]);return t}}A.Fill=Ve,A.ReExtProvider=ir,A.ReExtReferences=nr,A.default=qe,A.useReExtState=ar,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
{
"name": "@sencha/reext",
"version": "0.0.294",
"version": "0.0.295",
"description": "React ReExt",

@@ -5,0 +5,0 @@ "types": "./dist/ReExt/types.d.ts",

@@ -12,13 +12,23 @@ # ReExt - ExtJS Components in React

### Table of Contents
[Examples](#examples)
[Installation](#installation)
[Installing the Sencha ExtJS SDK](#installing-the-sencha-extjs-sdk)
1. [ReExt Examples](#reext-examples)
2. [Using the ReExt Designer VS Code Extension (preview version)](#using-the-reext-designer-vs-code-extension)
3. [Quick Start - not using VS Code Extension](#quick-start-not-using-vs-code-extension)
4. [Step by Step Guide not using VS Code Extension](#step-by-step-guide-not-using-vs-code-extension)
5. [Installation](#installation)
6. [Installing the Sencha ExtJS SDK](#installing-the-sencha-extjs-sdk)
7. [ReExt Trial Key](#reext-trial-key)
8. [Documentation](#documentation)
9. [Using ExtJS Overrides](#using-extjs-overrides)
10. [Using Custom Ext JS Components](#using-custom-ext-js-components)
## Examples
<a target="_blank" href="https://reextdemo.vercel.app?version=7.8.0&toolkit=classic&theme=classic">example using classic toolkit and classic theme</a>
## ReExt Examples
<a target="_blank" href="https://reextdemo.vercel.app?version=7.8.0&toolkit=classic&theme=classic">Examples using classic toolkit and classic theme</a>
## Using the ReExt Designer VS Code Extension (preview version)
## Using the ReExt Designer VS Code Extension
(preview version)
The best way to get started with ReExt is to use the ReExt Designer Extension (preview version) in <a target="_blank" href="https://code.visualstudio.com/download">VS Code</a>

@@ -32,3 +42,3 @@

## Quick Start - not using VS Code Extension
## Quick Start not using VS Code Extension
### (takes less than 1 minute to run)

@@ -92,3 +102,3 @@

# Step by Step Guide - not using VS Code Extension
# Step by Step Guide not using VS Code Extension

@@ -129,3 +139,3 @@ ## Create a React application

A licenced Commercial version of the framework can be acquired from the Sencha Support Portal directly or this can be done using the ReExt Designer VS Code Extension (Preview Version).
A licenced Commercial version of the framework can be acquired from the Sencha Support Portal directly or this can be done using the ReExt Designer VS Code Extension (preview version).

@@ -145,3 +155,3 @@ ReExt can be configured to use any commercially available version of the Sencha Ext JS framework (7x and above).

## React version
## React Version

@@ -282,2 +292,3 @@ ReExt has been tested with the latest version of React, which at the time of this publishing is React 18.3.1.

references={false}
child={false}
config={{text:'OK'}}

@@ -300,4 +311,5 @@ ready={(cmp)=>{console.log(cmp)}}

* style (optional): the css style to be attached to the parent div of the ExtJS component
* references (optional): used if using an Ext JS reference
* config (optional): a JavaScript object with the configs of the component as defined in <a target="_blank" href="https://docs.sencha.com/extjs/7.8.0/">https://docs.sencha.com/extjs/7.8.0/</a>
* references (optional): used if using an Ext JS reference
* child (optional): used if this ReExt component is a child of another ReExt component
* config (optional): a JavaScript object with the configs of the component as defined in <a target="_blank" href="https://docs.sencha.com/extjs/7.8.0/">https://docs.sencha.com/extjs/7.8.0/</a>
* ready(cmp) (optional): the event that is fired by the ReExt component when the underlying ExtJS component is created. The value of this config is a function in your React hosting component with the parameter being the created ExtJS object.

@@ -360,3 +372,3 @@ * storeloaded(store, cmp) (optional): the event that is fired by the ReExt component when the async store associated with the component is loaded.

## Custom Ext JS Components
## Using Custom Ext JS Components

@@ -363,0 +375,0 @@ Here is an example of using custom Ext JS components in your React / Next.js app. (app/layout.js)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc