@oktis-works/admin 0.4.19 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/_astro/{ActivityWidget.DGLCPDgH.js → ActivityWidget.BbEtaaM-.js} +2 -2
- package/dist/client/_astro/{AdminBar.Cj9iKizr.js → AdminBar.CU2eba2D.js} +2 -2
- package/dist/client/_astro/{AtGlanceWidget.B1bDhxvN.js → AtGlanceWidget.C1hpeDlx.js} +1 -1
- package/dist/client/_astro/ContentEditor.Bc5Jq8Dv.js +1 -0
- package/dist/client/_astro/{ContentEditor.SP4PO6Pb.js → ContentEditor.DvpaqJBD.js} +2 -2
- package/dist/client/_astro/ContentTypeWorkspace.DakVi21h.js +1 -0
- package/dist/client/_astro/{CustomFieldsManager.CvWD3R1q.js → CustomFieldsManager.B7WOTvb7.js} +1 -1
- package/dist/client/_astro/DashboardHome.CUfuLLDH.js +1 -0
- package/dist/client/_astro/DashboardLayout.CGou4voc.css +1 -0
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.Dpnx6U2l.js +4 -0
- package/dist/client/_astro/{Footer.BqzSGnHm.js → Footer.rUGgtlfI.js} +1 -1
- package/dist/client/_astro/{GeneralSettings.Ditcyy4b.js → GeneralSettings.C4mnJ7P2.js} +1 -1
- package/dist/client/_astro/{MediaLibrary.qzwN-LI5.js → MediaLibrary.2geQYfXB.js} +1 -1
- package/dist/client/_astro/{PluginManager.DEkeX_0Z.js → PluginManager.D3pm88iu.js} +1 -1
- package/dist/client/_astro/PostTypesManager.Cyhr3VEJ.js +1 -0
- package/dist/client/_astro/{QuickDraftWidget.xoJjOM58.js → QuickDraftWidget.CPljoS31.js} +2 -2
- package/dist/client/_astro/{ResourceHubs.BHlRlPvI.js → ResourceHubs.DpCJERsJ.js} +1 -1
- package/dist/client/_astro/{TaxonomiesManager.DKQAGS8n.js → TaxonomiesManager.P3bc-fnu.js} +1 -1
- package/dist/client/_astro/{TaxonomyTermsManager.CyB7XH-D.js → TaxonomyTermsManager.BxP9gwm7.js} +1 -1
- package/dist/client/_astro/{ThemeManager.BBKCx5pa.js → ThemeManager.3MUOwqex.js} +1 -1
- package/dist/client/_astro/{UserCreateForm.BDsHkQYW.js → UserCreateForm.C3RiEJEa.js} +1 -1
- package/dist/client/_astro/{UsersManager.DeQ4uL3a.js → UsersManager.DR9XR3FX.js} +1 -1
- package/dist/client/_astro/api.25OAsWO0.js +1 -0
- package/dist/client/_astro/{extensions.DLE6XtMB.js → extensions.Bj86CHnv.js} +1 -1
- package/dist/client/_astro/i18n.C24_pkIi.js +1 -0
- package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.BPE3sVZJ.js → login.astro_astro_type_script_index_0_lang.O-AlzgHd.js} +1 -1
- package/dist/client/_astro/pt-BR.BPvwNpKR.js +1 -0
- package/dist/client/_astro/{src.lFTwiz1W.js → src.Cq47pnsg.js} +1 -1
- package/dist/client/_astro/{version.Cwfv80ER.js → version.BQq07lEn.js} +1 -1
- package/dist/server/chunks/{ContentEditor_CxZJjeXR.mjs → ContentEditor_DS7flRjR.mjs} +12 -5
- package/dist/server/chunks/{DashboardLayout_DCIiRkcO.mjs → DashboardLayout_09DepSVn.mjs} +7 -7
- package/dist/server/chunks/{MediaLibrary_azhfNs4N.mjs → MediaLibrary_Xs09kLza.mjs} +2 -2
- package/dist/server/chunks/{ResourceHubs_BJMX1AJR.mjs → ResourceHubs_Dwb0xyPZ.mjs} +1 -1
- package/dist/server/chunks/{_slug__BEfbBGa_.mjs → _slug__l8CTaLpP.mjs} +1 -1
- package/dist/server/chunks/{access_DNxcWCO1.mjs → access_D93W5BWD.mjs} +2 -2
- package/dist/server/chunks/{custom-fields_DI9f2Pqi.mjs → custom-fields_Dp7DHJ0M.mjs} +2 -2
- package/dist/server/chunks/{edit_3GtD2cva.mjs → edit_hSCrM2Gq.mjs} +12 -12
- package/dist/server/chunks/{general_CbiPNS7I.mjs → general_Ct9MU7b-.mjs} +2 -2
- package/dist/server/chunks/{i18n_DIBvEjfq.mjs → i18n_BqFK0MIW.mjs} +20 -2
- package/dist/server/chunks/{index_C3amWOJX.mjs → index_B77wdzK2.mjs} +1 -1
- package/dist/server/chunks/{index_BZJqnzEO.mjs → index_CBfRX_VO.mjs} +89 -44
- package/dist/server/chunks/{index_kTsjYnf7.mjs → index_Cv2j9xC_.mjs} +5 -5
- package/dist/server/chunks/{index_BcV8TVEC.mjs → index_DQ5pFuPN.mjs} +2 -2
- package/dist/server/chunks/{index_CTJw_OsD.mjs → index_uv0IHg8r.mjs} +2 -2
- package/dist/server/chunks/{new_uLMmBd95.mjs → new_DpJfTahF.mjs} +2 -2
- package/dist/server/chunks/{new_Dg9ykZGm.mjs → new_XOnqlHm3.mjs} +12 -12
- package/dist/server/chunks/{operations_vnv5cnws.mjs → operations_0sYvzzNC.mjs} +2 -2
- package/dist/server/chunks/{plugins_pNXwbZGI.mjs → plugins_Clk92l6Q.mjs} +2 -2
- package/dist/server/chunks/{post-types_g7oMw8xZ.mjs → post-types_DziideHh.mjs} +40 -14
- package/dist/server/chunks/{pt-BR_BM0FS26r.mjs → pt-BR_CBnqy3xP.mjs} +15 -1
- package/dist/server/chunks/{resources_DhbyXd_o.mjs → resources_dPTDnpAf.mjs} +2 -2
- package/dist/server/chunks/{taxonomies_CX8h73Lt.mjs → taxonomies_Bc6xPaKp.mjs} +2 -2
- package/dist/server/chunks/{taxonomy_D8om_RNg.mjs → taxonomy_Cv4_KTTL.mjs} +11 -11
- package/dist/server/chunks/{themes_JX5WVf2J.mjs → themes_BRtDtEK7.mjs} +2 -2
- package/dist/server/chunks/{upload_r2qJskLo.mjs → upload_CB_L9tkU.mjs} +2 -2
- package/dist/server/entry.mjs +96 -72
- package/dist/server/virtual_astro_middleware.mjs +1 -1
- package/package.json +6 -5
- package/dist/client/_astro/ContentList.o2zVu57t.js +0 -1
- package/dist/client/_astro/DashboardHome.DnCbpnkg.js +0 -1
- package/dist/client/_astro/DashboardLayout.BOoRKX4v.css +0 -1
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.7Kcbf7KO.js +0 -1
- package/dist/client/_astro/PostTypesManager.CGYbeXgb.js +0 -1
- package/dist/client/_astro/api.DD5u5p4h.js +0 -1
- package/dist/client/_astro/i18n.JWFhLjfn.js +0 -1
- package/dist/client/_astro/pt-BR.CGjPpous.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./i18n.JWFhLjfn.js";import{i as t,l as n,r,s as i}from"./solid.DN8T1HsY.js";import{d as a,f as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./web.Bze9SKEA.js";var g=e(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),_=e(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),v=e(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=g(),a=_();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),y=e(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),b=e(((e,t)=>{var n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),x=e(((e,t)=>{var n=_(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=g(),{safeRe:a,t:o}=v(),s=y(),{compareIdentifiers:c}=b(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);this.prerelease=l[4]?l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),S=e(((e,t)=>{var n=x();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),C=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),w=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),T=e(((e,t)=>{var n=x();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),E=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),D=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).major})),O=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).minor})),k=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).patch})),A=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),j=e(((e,t)=>{var n=x();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),M=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(t,e,r)})),N=e(((e,t)=>{var n=j();t.exports=(e,t)=>n(e,t,!0)})),P=e(((e,t)=>{var n=x();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),F=e(((e,t)=>{var n=P();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),I=e(((e,t)=>{var n=P();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),L=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)>0})),R=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)<0})),z=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)===0})),B=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)!==0})),V=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)>=0})),H=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)<=0})),U=e(((e,t)=>{var n=z(),r=B(),i=L(),a=V(),o=R(),s=H();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),ee=e(((e,t)=>{var n=x(),r=S(),{safeRe:i,t:a}=v();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),te=e(((e,t)=>{var n=S(),r=g(),i=x(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),ne=e(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),W=e(((e,t)=>{var n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!S(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&C(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(b,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,I(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>T(e,this.options)).join(` `).split(/\s+/).map(e=>F(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let g=new Map,_=l.map(e=>new a(e,this.options));for(let e of _){if(S(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>w(e,n)&&t.set.some(t=>w(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}};var r=new(ne()),i=y(),a=G(),o=_(),s=x(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=v(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=g(),b=new RegExp(l[u.BUILD],`g`),S=e=>e.value===`<0.0.0-0`,C=e=>e.value===``,w=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},T=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=A(e,t),o(`caret`,e),e=O(e,t),o(`tildes`,e),e=M(e,t),o(`xrange`,e),e=P(e,t),o(`stars`,e),e),E=e=>!e||e.toLowerCase()===`x`||e===`*`,D=(e,t,n)=>E(e)&&!E(t)||E(t)&&n&&!E(n),O=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(` `),k=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return E(n)?c=``:E(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},A=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(` `),j=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return E(n)?c=``:E(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},M=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>N(e,t)).join(` `)),N=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),D(i,a,s))return e;let l=E(i),u=l||E(a),d=u||E(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},P=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),F=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),I=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=E(r)?``:E(i)?`>=${r}.0.0${e?`-0`:``}`:E(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=E(l)?``:E(u)?`<${+l+1}.0.0-0`:E(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),G=e(((e,t)=>{var n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.value=this.semver===n?``:this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),this.semver=r[2]?new c(r[2],this.options.loose):n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``||new l(t.value,n).test(this.value):t.operator===``?t.value===``||new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=y(),{safeRe:i,t:a}=v(),o=U(),s=_(),c=x(),l=W()})),K=e(((e,t)=>{var n=W();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),re=e(((e,t)=>{var n=W();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ie=e(((e,t)=>{var n=x(),r=W();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),ae=e(((e,t)=>{var n=x(),r=W();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),q=e(((e,t)=>{var n=x(),r=W(),i=L();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),J=e(((e,t)=>{var n=W();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=e(((e,t)=>{var n=x(),r=G(),{ANY:i}=r,a=W(),o=K(),s=L(),c=R(),l=H(),u=V();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),oe=e(((e,t)=>{var n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),se=e(((e,t)=>{var n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),ce=e(((e,t)=>{var n=W();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),le=e(((e,t)=>{var n=K(),r=j();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ue=e(((e,t)=>{var n=W(),r=G(),{ANY:i}=r,a=K(),o=j(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s}));e(((e,t)=>{var n=v(),r=g(),i=x(),a=b();t.exports={parse:S(),valid:C(),clean:w(),inc:T(),diff:E(),major:D(),minor:O(),patch:k(),prerelease:A(),compare:j(),rcompare:M(),compareLoose:N(),compareBuild:P(),sort:F(),rsort:I(),gt:L(),lt:R(),eq:z(),neq:B(),gte:V(),lte:H(),cmp:U(),coerce:ee(),truncate:te(),Comparator:G(),Range:W(),satisfies:K(),toComparators:re(),maxSatisfying:ie(),minSatisfying:ae(),minVersion:q(),validRange:J(),outside:Y(),gtr:oe(),ltr:se(),intersects:ce(),simplifyRange:le(),subset:ue(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))();var de=d(`<span class=spinner aria-label=Carregando>`),fe=d(`<button>`),pe=d(`<label class=field__label><!$><!/><!$><!/><input class=input>`),me=d(`<input class=input>`),he=d(`<p class="field__error notice--error">`),ge=d(`<div><!$><!/><!$><!/><!$><!/>`),_e=d(`<span aria-hidden=true> *`),X=d(`<option value>`),ve=d(`<label class=field__label><!$><!/><select class=input><!$><!/><!$><!/>`),ye=d(`<select class=input><!$><!/><!$><!/>`),Z=d(`<div><!$><!/><!$><!/>`),Q=d(`<option>`),be=d(`<div class=card-header><h3>`),xe=d(`<span>`),Se=d(`<table class=table><thead><tr></tr></thead><tbody>`),Ce=d(`<div class=table-loading><span class=spinner aria-label=Carregando>`),we=d(`<p class=muted>`),Te=d(`<th>`),Ee=d(`<tr>`),De=d(`<td>`),$=d(`<div class=pagination><button class="btn btn-secondary btn-sm"type=button>← Anterior</button><span class=muted>Página <!$><!/> de <!$><!/></span><button class="btn btn-secondary btn-sm"type=button>Próxima →`),Oe=[`primary`,`secondary`,`danger`,`ghost`];function ke(e){let r=Oe.includes(e.variant)?e.variant:`secondary`,o=()=>[`btn`,`btn-${r}`,e.size===`sm`?`btn-sm`:``,e.class??``].filter(Boolean).join(` `);return(()=>{var r=f(fe);return r.$$click=()=>e.onClick?.(),u(r,i(t,{get when(){return e.loading},get fallback(){return e.children},get children(){return f(de)}})),n(t=>{var n=e.type??`button`,i=o(),s=e.disabled||e.loading;return n!==t.e&&h(r,`type`,t.e=n),i!==t.t&&m(r,t.t=i),s!==t.a&&a(r,`disabled`,t.a=s),t},{e:void 0,t:void 0,a:void 0}),c(),r})()}function Ae(e){let r=t=>{e.onInput?.(t.currentTarget.value)};return(()=>{var o=f(ge),l=o.firstChild,[d,g]=s(l.nextSibling),_=d.nextSibling,[v,y]=s(_.nextSibling),b=v.nextSibling,[x,S]=s(b.nextSibling);return u(o,i(t,{get when(){return e.label},get children(){var t=f(pe),i=t.firstChild,[o,l]=s(i.nextSibling),d=o.nextSibling,[m,g]=s(d.nextSibling),_=m.nextSibling;return u(t,()=>e.label,o,l),u(t,(()=>{var t=p(()=>!!e.required);return()=>t()?f(_e):null})(),m,g),_.$$input=r,n(t=>{var n=e.type??`text`,r=e.name,i=e.placeholder,o=e.disabled,s=e.required;return n!==t.e&&h(_,`type`,t.e=n),r!==t.t&&h(_,`name`,t.t=r),i!==t.a&&h(_,`placeholder`,t.a=i),o!==t.o&&a(_,`disabled`,t.o=o),s!==t.i&&a(_,`required`,t.i=s),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>a(_,`value`,e.value??``)),c(),t}}),d,g),u(o,i(t,{get when(){return!e.label},get children(){var t=f(me);return t.$$input=r,n(n=>{var r=e.type??`text`,i=e.name,o=e.placeholder,s=e.disabled,c=e.required;return r!==n.e&&h(t,`type`,n.e=r),i!==n.t&&h(t,`name`,n.t=i),o!==n.a&&h(t,`placeholder`,n.a=o),s!==n.o&&a(t,`disabled`,n.o=s),c!==n.i&&a(t,`required`,n.i=c),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>a(t,`value`,e.value??``)),c(),t}}),v,y),u(o,i(t,{get when(){return e.error},get children(){var t=f(he);return u(t,()=>e.error),t}}),x,S),n(()=>m(o,`field ${e.class??``}`.trim())),o})()}function je(e){let o=e.options;return(()=>{var c=f(Z),l=c.firstChild,[d,p]=s(l.nextSibling),g=d.nextSibling,[_,v]=s(g.nextSibling);return u(c,i(t,{get when(){return e.label},get children(){var c=f(ve),l=c.firstChild,[d,p]=s(l.nextSibling),m=d.nextSibling,g=m.firstChild,[_,v]=s(g.nextSibling),y=_.nextSibling,[b,x]=s(y.nextSibling);return u(c,()=>e.label,d,p),m.addEventListener(`change`,t=>e.onChange?.(t.currentTarget.value)),u(m,i(t,{get when(){return e.placeholder},get children(){var t=f(X);return u(t,()=>e.placeholder),t}}),_,v),u(m,i(r,{each:o,children:e=>(()=>{var t=f(Q);return u(t,()=>e.label),n(()=>a(t,`value`,e.value)),t})()}),b,x),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&h(m,`name`,t.e=n),r!==t.t&&a(m,`disabled`,t.t=r),t},{e:void 0,t:void 0}),n(()=>a(m,`value`,e.value??``)),c}}),d,p),u(c,i(t,{get when(){return!e.label},get children(){var c=f(ye),l=c.firstChild,[d,p]=s(l.nextSibling),m=d.nextSibling,[g,_]=s(m.nextSibling);return c.addEventListener(`change`,t=>e.onChange?.(t.currentTarget.value)),u(c,i(t,{get when(){return e.placeholder},get children(){var t=f(X);return u(t,()=>e.placeholder),t}}),d,p),u(c,i(r,{each:o,children:e=>(()=>{var t=f(Q);return u(t,()=>e.label),n(()=>a(t,`value`,e.value)),t})()}),g,_),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&h(c,`name`,t.e=n),r!==t.t&&a(c,`disabled`,t.t=r),t},{e:void 0,t:void 0}),n(()=>a(c,`value`,e.value??``)),c}}),_,v),n(()=>m(c,`field ${e.class??``}`.trim())),c})()}function Me(e){return(()=>{var r=f(Z),a=r.firstChild,[o,c]=s(a.nextSibling),l=o.nextSibling,[d,p]=s(l.nextSibling);return u(r,i(t,{get when(){return e.title},get children(){var t=f(be),n=t.firstChild;return u(n,()=>e.title),t}}),o,c),u(r,()=>e.children,d,p),n(()=>m(r,`card ${e.class??``}`.trim())),r})()}function Ne(e){let t=e.variant??`secondary`;return(()=>{var n=f(xe);return m(n,`badge badge-${t}`),u(n,()=>e.children),n})()}function Pe(e){let a=e.columns;return i(t,{get when(){return!e.loading},get fallback(){return f(Ce)},get children(){return i(t,{get when(){return e.data.length>0},get fallback(){return(()=>{var t=f(we);return u(t,()=>e.emptyMessage??`Nenhum registro.`),t})()},get children(){var s=f(Se),c=s.firstChild,l=c.firstChild,d=c.nextSibling;return u(l,i(r,{each:a,children:e=>(()=>{var t=f(Te);return u(t,()=>e.label),n(n=>o(t,e.width?{width:e.width}:void 0,n)),t})()})),u(d,i(r,{get each(){return e.data},children:e=>(()=>{var n=f(Ee);return u(n,i(r,{each:a,children:n=>(()=>{var r=f(De);return u(r,i(t,{get when(){return n.render},get fallback(){return String(e[n.key]??``)},get children(){return n.render?.(e[n.key],e)}})),r})()})),n})()})),s}})}})}function Fe(e){let r=()=>Math.max(1,Math.ceil(e.total/Math.max(1,e.limit)));return i(t,{get when(){return r()>1},get children(){var t=f($),i=t.firstChild,o=i.nextSibling,l=o.firstChild.nextSibling,[d,p]=s(l.nextSibling),m=d.nextSibling.nextSibling,[h,g]=s(m.nextSibling),_=o.nextSibling;return i.$$click=()=>e.onPageChange(e.page-1),u(o,()=>e.page,d,p),u(o,r,h,g),_.$$click=()=>e.onPageChange(e.page+1),n(t=>{var n=e.page<=1,o=e.page>=r();return n!==t.e&&a(i,`disabled`,t.e=n),o!==t.t&&a(_,`disabled`,t.t=o),t},{e:void 0,t:void 0}),c(),t}})}l([`click`,`input`]);export{Fe as a,Ae as i,ke as n,je as o,Me as r,Pe as s,Ne as t};
|
|
1
|
+
import{o as e}from"./i18n.C24_pkIi.js";import{i as t,l as n,r,s as i}from"./solid.DN8T1HsY.js";import{d as a,f as o,i as s,l as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./web.Bze9SKEA.js";var g=e(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),_=e(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),v=e(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=g(),a=_();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),y=e(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),b=e(((e,t)=>{var n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),x=e(((e,t)=>{var n=_(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=g(),{safeRe:a,t:o}=v(),s=y(),{compareIdentifiers:c}=b(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);this.prerelease=l[4]?l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),S=e(((e,t)=>{var n=x();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),C=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),w=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),T=e(((e,t)=>{var n=x();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),E=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),D=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).major})),O=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).minor})),k=e(((e,t)=>{var n=x();t.exports=(e,t)=>new n(e,t).patch})),A=e(((e,t)=>{var n=S();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),j=e(((e,t)=>{var n=x();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),M=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(t,e,r)})),N=e(((e,t)=>{var n=j();t.exports=(e,t)=>n(e,t,!0)})),P=e(((e,t)=>{var n=x();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),F=e(((e,t)=>{var n=P();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),I=e(((e,t)=>{var n=P();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),L=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)>0})),R=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)<0})),z=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)===0})),B=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)!==0})),V=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)>=0})),H=e(((e,t)=>{var n=j();t.exports=(e,t,r)=>n(e,t,r)<=0})),U=e(((e,t)=>{var n=z(),r=B(),i=L(),a=V(),o=R(),s=H();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),ee=e(((e,t)=>{var n=x(),r=S(),{safeRe:i,t:a}=v();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),te=e(((e,t)=>{var n=S(),r=g(),i=x(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),ne=e(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),W=e(((e,t)=>{var n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!S(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&C(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(b,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,I(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>T(e,this.options)).join(` `).split(/\s+/).map(e=>F(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let g=new Map,_=l.map(e=>new a(e,this.options));for(let e of _){if(S(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>w(e,n)&&t.set.some(t=>w(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}};var r=new(ne()),i=y(),a=G(),o=_(),s=x(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=v(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=g(),b=new RegExp(l[u.BUILD],`g`),S=e=>e.value===`<0.0.0-0`,C=e=>e.value===``,w=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},T=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=A(e,t),o(`caret`,e),e=O(e,t),o(`tildes`,e),e=M(e,t),o(`xrange`,e),e=P(e,t),o(`stars`,e),e),E=e=>!e||e.toLowerCase()===`x`||e===`*`,D=(e,t,n)=>E(e)&&!E(t)||E(t)&&n&&!E(n),O=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(` `),k=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return E(n)?c=``:E(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},A=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(` `),j=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return E(n)?c=``:E(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},M=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>N(e,t)).join(` `)),N=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),D(i,a,s))return e;let l=E(i),u=l||E(a),d=u||E(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},P=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),F=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),I=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=E(r)?``:E(i)?`>=${r}.0.0${e?`-0`:``}`:E(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=E(l)?``:E(u)?`<${+l+1}.0.0-0`:E(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),G=e(((e,t)=>{var n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.value=this.semver===n?``:this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),this.semver=r[2]?new c(r[2],this.options.loose):n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``||new l(t.value,n).test(this.value):t.operator===``?t.value===``||new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=y(),{safeRe:i,t:a}=v(),o=U(),s=_(),c=x(),l=W()})),K=e(((e,t)=>{var n=W();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),re=e(((e,t)=>{var n=W();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ie=e(((e,t)=>{var n=x(),r=W();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),ae=e(((e,t)=>{var n=x(),r=W();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),q=e(((e,t)=>{var n=x(),r=W(),i=L();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),J=e(((e,t)=>{var n=W();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=e(((e,t)=>{var n=x(),r=G(),{ANY:i}=r,a=W(),o=K(),s=L(),c=R(),l=H(),u=V();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),oe=e(((e,t)=>{var n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),se=e(((e,t)=>{var n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),ce=e(((e,t)=>{var n=W();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),le=e(((e,t)=>{var n=K(),r=j();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ue=e(((e,t)=>{var n=W(),r=G(),{ANY:i}=r,a=K(),o=j(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s}));e(((e,t)=>{var n=v(),r=g(),i=x(),a=b();t.exports={parse:S(),valid:C(),clean:w(),inc:T(),diff:E(),major:D(),minor:O(),patch:k(),prerelease:A(),compare:j(),rcompare:M(),compareLoose:N(),compareBuild:P(),sort:F(),rsort:I(),gt:L(),lt:R(),eq:z(),neq:B(),gte:V(),lte:H(),cmp:U(),coerce:ee(),truncate:te(),Comparator:G(),Range:W(),satisfies:K(),toComparators:re(),maxSatisfying:ie(),minSatisfying:ae(),minVersion:q(),validRange:J(),outside:Y(),gtr:oe(),ltr:se(),intersects:ce(),simplifyRange:le(),subset:ue(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))();var de=d(`<span class=spinner aria-label=Carregando>`),fe=d(`<button>`),pe=d(`<label class=field__label><!$><!/><!$><!/><input class=input>`),me=d(`<input class=input>`),he=d(`<p class="field__error notice--error">`),ge=d(`<div><!$><!/><!$><!/><!$><!/>`),_e=d(`<span aria-hidden=true> *`),X=d(`<option value>`),ve=d(`<label class=field__label><!$><!/><select class=input><!$><!/><!$><!/>`),ye=d(`<select class=input><!$><!/><!$><!/>`),Z=d(`<div><!$><!/><!$><!/>`),Q=d(`<option>`),be=d(`<div class=card-header><h3>`),xe=d(`<span>`),Se=d(`<table class=table><thead><tr></tr></thead><tbody>`),Ce=d(`<div class=table-loading><span class=spinner aria-label=Carregando>`),we=d(`<p class=muted>`),Te=d(`<th>`),Ee=d(`<tr>`),De=d(`<td>`),$=d(`<div class=pagination><button class="btn btn-secondary btn-sm"type=button>← Anterior</button><span class=muted>Página <!$><!/> de <!$><!/></span><button class="btn btn-secondary btn-sm"type=button>Próxima →`),Oe=[`primary`,`secondary`,`danger`,`ghost`];function ke(e){let r=Oe.includes(e.variant)?e.variant:`secondary`,o=()=>[`btn`,`btn-${r}`,e.size===`sm`?`btn-sm`:``,e.class??``].filter(Boolean).join(` `);return(()=>{var r=f(fe);return r.$$click=()=>e.onClick?.(),u(r,i(t,{get when(){return e.loading},get fallback(){return e.children},get children(){return f(de)}})),n(t=>{var n=e.type??`button`,i=o(),s=e.disabled||e.loading;return n!==t.e&&h(r,`type`,t.e=n),i!==t.t&&m(r,t.t=i),s!==t.a&&a(r,`disabled`,t.a=s),t},{e:void 0,t:void 0,a:void 0}),c(),r})()}function Ae(e){let r=t=>{e.onInput?.(t.currentTarget.value)};return(()=>{var o=f(ge),l=o.firstChild,[d,g]=s(l.nextSibling),_=d.nextSibling,[v,y]=s(_.nextSibling),b=v.nextSibling,[x,S]=s(b.nextSibling);return u(o,i(t,{get when(){return e.label},get children(){var t=f(pe),i=t.firstChild,[o,l]=s(i.nextSibling),d=o.nextSibling,[m,g]=s(d.nextSibling),_=m.nextSibling;return u(t,()=>e.label,o,l),u(t,(()=>{var t=p(()=>!!e.required);return()=>t()?f(_e):null})(),m,g),_.$$input=r,n(t=>{var n=e.type??`text`,r=e.name,i=e.placeholder,o=e.disabled,s=e.required;return n!==t.e&&h(_,`type`,t.e=n),r!==t.t&&h(_,`name`,t.t=r),i!==t.a&&h(_,`placeholder`,t.a=i),o!==t.o&&a(_,`disabled`,t.o=o),s!==t.i&&a(_,`required`,t.i=s),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>a(_,`value`,e.value??``)),c(),t}}),d,g),u(o,i(t,{get when(){return!e.label},get children(){var t=f(me);return t.$$input=r,n(n=>{var r=e.type??`text`,i=e.name,o=e.placeholder,s=e.disabled,c=e.required;return r!==n.e&&h(t,`type`,n.e=r),i!==n.t&&h(t,`name`,n.t=i),o!==n.a&&h(t,`placeholder`,n.a=o),s!==n.o&&a(t,`disabled`,n.o=s),c!==n.i&&a(t,`required`,n.i=c),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n(()=>a(t,`value`,e.value??``)),c(),t}}),v,y),u(o,i(t,{get when(){return e.error},get children(){var t=f(he);return u(t,()=>e.error),t}}),x,S),n(()=>m(o,`field ${e.class??``}`.trim())),o})()}function je(e){let o=e.options;return(()=>{var c=f(Z),l=c.firstChild,[d,p]=s(l.nextSibling),g=d.nextSibling,[_,v]=s(g.nextSibling);return u(c,i(t,{get when(){return e.label},get children(){var c=f(ve),l=c.firstChild,[d,p]=s(l.nextSibling),m=d.nextSibling,g=m.firstChild,[_,v]=s(g.nextSibling),y=_.nextSibling,[b,x]=s(y.nextSibling);return u(c,()=>e.label,d,p),m.addEventListener(`change`,t=>e.onChange?.(t.currentTarget.value)),u(m,i(t,{get when(){return e.placeholder},get children(){var t=f(X);return u(t,()=>e.placeholder),t}}),_,v),u(m,i(r,{each:o,children:e=>(()=>{var t=f(Q);return u(t,()=>e.label),n(()=>a(t,`value`,e.value)),t})()}),b,x),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&h(m,`name`,t.e=n),r!==t.t&&a(m,`disabled`,t.t=r),t},{e:void 0,t:void 0}),n(()=>a(m,`value`,e.value??``)),c}}),d,p),u(c,i(t,{get when(){return!e.label},get children(){var c=f(ye),l=c.firstChild,[d,p]=s(l.nextSibling),m=d.nextSibling,[g,_]=s(m.nextSibling);return c.addEventListener(`change`,t=>e.onChange?.(t.currentTarget.value)),u(c,i(t,{get when(){return e.placeholder},get children(){var t=f(X);return u(t,()=>e.placeholder),t}}),d,p),u(c,i(r,{each:o,children:e=>(()=>{var t=f(Q);return u(t,()=>e.label),n(()=>a(t,`value`,e.value)),t})()}),g,_),n(t=>{var n=e.name,r=e.disabled;return n!==t.e&&h(c,`name`,t.e=n),r!==t.t&&a(c,`disabled`,t.t=r),t},{e:void 0,t:void 0}),n(()=>a(c,`value`,e.value??``)),c}}),_,v),n(()=>m(c,`field ${e.class??``}`.trim())),c})()}function Me(e){return(()=>{var r=f(Z),a=r.firstChild,[o,c]=s(a.nextSibling),l=o.nextSibling,[d,p]=s(l.nextSibling);return u(r,i(t,{get when(){return e.title},get children(){var t=f(be),n=t.firstChild;return u(n,()=>e.title),t}}),o,c),u(r,()=>e.children,d,p),n(()=>m(r,`card ${e.class??``}`.trim())),r})()}function Ne(e){let t=e.variant??`secondary`;return(()=>{var n=f(xe);return m(n,`badge badge-${t}`),u(n,()=>e.children),n})()}function Pe(e){let a=e.columns;return i(t,{get when(){return!e.loading},get fallback(){return f(Ce)},get children(){return i(t,{get when(){return e.data.length>0},get fallback(){return(()=>{var t=f(we);return u(t,()=>e.emptyMessage??`Nenhum registro.`),t})()},get children(){var s=f(Se),c=s.firstChild,l=c.firstChild,d=c.nextSibling;return u(l,i(r,{each:a,children:e=>(()=>{var t=f(Te);return u(t,()=>e.label),n(n=>o(t,e.width?{width:e.width}:void 0,n)),t})()})),u(d,i(r,{get each(){return e.data},children:e=>(()=>{var n=f(Ee);return u(n,i(r,{each:a,children:n=>(()=>{var r=f(De);return u(r,i(t,{get when(){return n.render},get fallback(){return String(e[n.key]??``)},get children(){return n.render?.(e[n.key],e)}})),r})()})),n})()})),s}})}})}function Fe(e){let r=()=>Math.max(1,Math.ceil(e.total/Math.max(1,e.limit)));return i(t,{get when(){return r()>1},get children(){var t=f($),i=t.firstChild,o=i.nextSibling,l=o.firstChild.nextSibling,[d,p]=s(l.nextSibling),m=d.nextSibling.nextSibling,[h,g]=s(m.nextSibling),_=o.nextSibling;return i.$$click=()=>e.onPageChange(e.page-1),u(o,()=>e.page,d,p),u(o,r,h,g),_.$$click=()=>e.onPageChange(e.page+1),n(t=>{var n=e.page<=1,o=e.page>=r();return n!==t.e&&a(i,`disabled`,t.e=n),o!==t.t&&a(_,`disabled`,t.t=o),t},{e:void 0,t:void 0}),c(),t}})}l([`click`,`input`]);export{Fe as a,Ae as i,ke as n,je as o,Me as r,Pe as s,Ne as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={name:`okcms`,version:`0.4.
|
|
1
|
+
var e={name:`okcms`,version:`0.4.20`,private:!0,description:`Hybrid, modular, API-first CMS`,engines:{node:`>=20.0.0`,bun:`>=1.3.0`},workspaces:[`apps/*`,`packages/*`,`plugins/*`,`themes/*`],overrides:{ioredis:`5.3.0`},scripts:{dev:`bun run --filter '@oktis-works/*' dev`,build:`bun run --filter '@oktis-works/*' build`,test:`vitest`,"test:run":`vitest run`,lint:`eslint .`,typecheck:`tsc --noEmit`,clean:`rm -rf node_modules apps/*/node_modules packages/*/node_modules`,changeset:`changeset`,"version-packages":`changeset version`,"publish:all":`node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f "$pkg/package.json" ] || continue; echo "→ publishing $pkg"; (cd "$pkg" && npm publish --access public) || exit 1; done`},devDependencies:{"@oktis-works/cms":`^0.4.20`,"@changesets/changelog-github":`^1.0.1`,"@changesets/cli":`^3.0.3`,"@types/node":`22.0.0`,"@types/semver":`7.7.0`,"@typescript-eslint/eslint-plugin":`^8.71.0`,"@typescript-eslint/parser":`8.0.0`,autoprefixer:`^10.6.1`,eslint:`9.0.0`,playwright:`1.59.1`,"playwright-core":`1.59.1`,postcss:`^8.5.28`,sass:`^1.105.1`,tailwindcss:`^4.3.3`,typescript:`5.7.3`,"typescript-eslint":`8.31.0`,vitest:`3.0.0`},packageManager:`bun@1.3.14`}.version;export{e as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
2
|
-
import { a as For2, d as createMemo$1, f as createSignal$1, l as Show2 } from "./
|
|
1
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
|
|
2
|
+
import { a as For2, d as createMemo$1, f as createSignal$1, l as Show2 } from "./DashboardLayout_09DepSVn.mjs";
|
|
3
3
|
import { t as FieldTypePicker } from "./FieldTypePicker_CXwpmcQ3.mjs";
|
|
4
4
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
5
5
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
@@ -1487,8 +1487,15 @@ function ContentEditor(props) {
|
|
|
1487
1487
|
setErrors([err instanceof Error ? err.message : String(err)]);
|
|
1488
1488
|
}
|
|
1489
1489
|
const editId = new URLSearchParams(window.location.search).get("id");
|
|
1490
|
-
if (editId) try {
|
|
1491
|
-
const existing = await apiClient.getContentById(editId);
|
|
1490
|
+
if (editId || props.singleton) try {
|
|
1491
|
+
const existing = editId ? await apiClient.getContentById(editId) : await apiClient.getSingletonContent(draft().type);
|
|
1492
|
+
if (!existing) {
|
|
1493
|
+
await loadGroups({
|
|
1494
|
+
type: draft().type,
|
|
1495
|
+
status: draft().status
|
|
1496
|
+
});
|
|
1497
|
+
return;
|
|
1498
|
+
}
|
|
1492
1499
|
const rawRow = existing;
|
|
1493
1500
|
setDraft({
|
|
1494
1501
|
id: existing.id,
|
|
@@ -1537,7 +1544,7 @@ function ContentEditor(props) {
|
|
|
1537
1544
|
get children() {
|
|
1538
1545
|
return ssr(_tmpl$, ssrHydrationKey(), escape(message()));
|
|
1539
1546
|
}
|
|
1540
|
-
})), escape(types().find((type) => type.slug === draft().type)?.singularLabel || draft().type), draft().id ? escape(t("content.editor.editing")) : escape(t("content.editor.adding")), `/content
|
|
1547
|
+
})), escape(types().find((type) => type.slug === draft().type)?.singularLabel || draft().type), draft().id ? escape(t("content.editor.editing")) : escape(t("content.editor.adding")), `/content/${escape(encodeURIComponent(draft().type), true)}`, escape(t("content.editor.backToList")), ssrAttribute("disabled", saving(), true), saving() ? escape(t("content.editor.saving")) : escape(t("content.editor.save")), escape(createComponent(Show, {
|
|
1541
1548
|
get when() {
|
|
1542
1549
|
return hasSupport("title");
|
|
1543
1550
|
},
|
|
@@ -2,7 +2,7 @@ import "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, s as renderSlot, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_m8b8Eemd.mjs";
|
|
5
|
-
import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./
|
|
5
|
+
import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_BqFK0MIW.mjs";
|
|
6
6
|
import { t as require_semver } from "./semver_WbqCUY_o.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyle } from "solid-js/web";
|
|
8
8
|
import { For, For as For2, Show, Show as Show2, createMemo as createMemo$1, createSignal, createSignal as createSignal$1, onMount, onMount as onMount$1 } from "solid-js";
|
|
@@ -439,7 +439,7 @@ var _tmpl$8$1 = [
|
|
|
439
439
|
"<header",
|
|
440
440
|
" id=\"admin-bar\" role=\"banner\"><div class=\"admin-bar-left\"><a href=\"/\" class=\"admin-bar-brand\"",
|
|
441
441
|
"><svg viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\"><rect width=\"32\" height=\"32\" rx=\"8\" fill=\"url(#grad)\"></rect><path d=\"M8 10h16M8 16h12M8 22h8\" stroke=\"#0A0A0A\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><defs><linearGradient id=\"grad\" x1=\"0\" y1=\"0\" x2=\"32\" y2=\"32\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0%\" stop-color=\"#D8B45E\"></stop><stop offset=\"100%\" stop-color=\"#B99542\"></stop></linearGradient></defs></svg><span>OkCMS</span></a><div class=\"admin-bar-separator\"></div><nav class=\"admin-bar-menu\"",
|
|
442
|
-
"><a href=\"/content\" class=\"admin-bar-menu-item\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"></path><polyline points=\"14 2 14 8 20 8\"></polyline><line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"></line><line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"></line></svg><!--$-->",
|
|
442
|
+
"><a href=\"/content/post\" class=\"admin-bar-menu-item\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"></path><polyline points=\"14 2 14 8 20 8\"></polyline><line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"></line><line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"></line></svg><!--$-->",
|
|
443
443
|
"<!--/--></a><a href=\"/media\" class=\"admin-bar-menu-item\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"></circle><polyline points=\"21 15 16 10 5 21\"></polyline></svg><!--$-->",
|
|
444
444
|
"<!--/--></a><a href=\"/settings\" class=\"admin-bar-menu-item\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"3\"></circle><path d=\"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z\"></path></svg><!--$-->",
|
|
445
445
|
"<!--/--></a></nav></div><div class=\"admin-bar-right\"><div class=\"notifications-dropdown\"><button class=\"notifications-btn\"",
|
|
@@ -585,7 +585,7 @@ function AdminBar(props) {
|
|
|
585
585
|
/** Versão do release atual (ex.: "0.4.0"). */
|
|
586
586
|
var APP_VERSION = {
|
|
587
587
|
name: "okcms",
|
|
588
|
-
version: "0.4.
|
|
588
|
+
version: "0.4.20",
|
|
589
589
|
"private": true,
|
|
590
590
|
description: "Hybrid, modular, API-first CMS",
|
|
591
591
|
engines: {
|
|
@@ -612,7 +612,7 @@ var APP_VERSION = {
|
|
|
612
612
|
"publish:all": "node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f \"$pkg/package.json\" ] || continue; echo \"→ publishing $pkg\"; (cd \"$pkg\" && npm publish --access public) || exit 1; done"
|
|
613
613
|
},
|
|
614
614
|
devDependencies: {
|
|
615
|
-
"@oktis-works/cms": "^0.4.
|
|
615
|
+
"@oktis-works/cms": "^0.4.20",
|
|
616
616
|
"@changesets/changelog-github": "^1.0.1",
|
|
617
617
|
"@changesets/cli": "^3.0.3",
|
|
618
618
|
"@types/node": "22.0.0",
|
|
@@ -830,7 +830,7 @@ function QuickDraftWidget() {
|
|
|
830
830
|
get each() {
|
|
831
831
|
return drafts();
|
|
832
832
|
},
|
|
833
|
-
children: (draft) => ssr(_tmpl$7, ssrHydrationKey(), `/content/edit?id=${escape(draft.id, true)}`, escape(draft.title), escape(t("content.list.statuses.draft")), escape(formatDate(draft.updated_at)))
|
|
833
|
+
children: (draft) => ssr(_tmpl$7, ssrHydrationKey(), `/content/${escape(encodeURIComponent(draft.type || "post"), true)}/edit?id=${escape(draft.id, true)}`, escape(draft.title), escape(t("content.list.statuses.draft")), escape(formatDate(draft.updated_at)))
|
|
834
834
|
}))) : ssr(_tmpl$8, ssrHydrationKey(), escape(t("dashboard.widgets.quickDraft.noDrafts"))))), ssr(_tmpl$2$1, ssrHydrationKey())];
|
|
835
835
|
}
|
|
836
836
|
});
|
|
@@ -891,7 +891,7 @@ function ActivityWidget() {
|
|
|
891
891
|
},
|
|
892
892
|
description: `${item.status === "PUBLISHED" ? t("activity.published") : t("activity.updated")} "${item.title}"`,
|
|
893
893
|
timestamp: updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
894
|
-
url: `/content/edit?id=${item.id}`
|
|
894
|
+
url: `/content/${encodeURIComponent(item.type || "post")}/edit?id=${item.id}`
|
|
895
895
|
});
|
|
896
896
|
});
|
|
897
897
|
for (const user of usersRes.data ?? []) activities.push({
|
|
@@ -1030,7 +1030,7 @@ var $$DashboardLayout = createComponent$1(($$result, $$props, $$slots) => {
|
|
|
1030
1030
|
"client:component-hydration": "load",
|
|
1031
1031
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/admin-bar/AdminBar.tsx",
|
|
1032
1032
|
"client:component-export": "AdminBar"
|
|
1033
|
-
})}${maybeRenderHead($$result)}<div class="layout" data-astro-cid-ynf3rr4n><!-- Sidebar colapsavel — o estado (body.sidebar-collapsed) e aplicado pelo script abaixo --><aside class="sidebar" data-astro-cid-ynf3rr4n><div class="sidebar-header" data-astro-cid-ynf3rr4n><span class="sidebar-collapsed-brand"${addAttribute(t("layout.appName"), "title")} data-astro-cid-ynf3rr4n><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="28" height="28" data-astro-cid-ynf3rr4n><rect width="32" height="32" rx="8" fill="url(#grad)" data-astro-cid-ynf3rr4n></rect><path d="M8 10h16M8 16h12M8 22h8" stroke="#0A0A0A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n></path><defs data-astro-cid-ynf3rr4n><linearGradient id="grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse" data-astro-cid-ynf3rr4n><stop offset="0%" stop-color="#D8B45E" data-astro-cid-ynf3rr4n></stop><stop offset="100%" stop-color="#B99542" data-astro-cid-ynf3rr4n></stop></linearGradient></defs></svg></span></div><nav class="sidebar-nav" data-astro-cid-ynf3rr4n><a href="/"${addAttribute(["nav-item", { active: navActive.dashboard }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="3" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect></svg><span class="nav-label" data-sidebar-i18n="layout.nav.dashboard" data-astro-cid-ynf3rr4n>${t("layout.nav.dashboard")}</span></a><div${addAttribute(["nav-group", { open: navActive.content }], "class:list")} data-nav-group="content" data-astro-cid-ynf3rr4n><div class="nav-group-header" data-astro-cid-ynf3rr4n><
|
|
1033
|
+
})}${maybeRenderHead($$result)}<div class="layout" data-astro-cid-ynf3rr4n><!-- Sidebar colapsavel — o estado (body.sidebar-collapsed) e aplicado pelo script abaixo --><aside class="sidebar" data-astro-cid-ynf3rr4n><div class="sidebar-header" data-astro-cid-ynf3rr4n><span class="sidebar-collapsed-brand"${addAttribute(t("layout.appName"), "title")} data-astro-cid-ynf3rr4n><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="28" height="28" data-astro-cid-ynf3rr4n><rect width="32" height="32" rx="8" fill="url(#grad)" data-astro-cid-ynf3rr4n></rect><path d="M8 10h16M8 16h12M8 22h8" stroke="#0A0A0A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n></path><defs data-astro-cid-ynf3rr4n><linearGradient id="grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse" data-astro-cid-ynf3rr4n><stop offset="0%" stop-color="#D8B45E" data-astro-cid-ynf3rr4n></stop><stop offset="100%" stop-color="#B99542" data-astro-cid-ynf3rr4n></stop></linearGradient></defs></svg></span></div><nav class="sidebar-nav" data-astro-cid-ynf3rr4n><a href="/"${addAttribute(["nav-item", { active: navActive.dashboard }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="3" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect></svg><span class="nav-label" data-sidebar-i18n="layout.nav.dashboard" data-astro-cid-ynf3rr4n>${t("layout.nav.dashboard")}</span></a><div${addAttribute(["nav-group", { open: navActive.content }], "class:list")} data-nav-group="content" data-astro-cid-ynf3rr4n><div class="nav-group-header" data-astro-cid-ynf3rr4n><div${addAttribute(["nav-item", { active: navActive.content }], "class:list")} data-astro-cid-ynf3rr4n><i data-lucide="file-text" aria-hidden="true" data-astro-cid-ynf3rr4n></i><span class="nav-label" data-sidebar-i18n="layout.nav.content" data-astro-cid-ynf3rr4n>${t("layout.nav.content")}</span></div><button class="nav-group-toggle" type="button"${addAttribute(navActive.content ? "true" : "false", "aria-expanded")} aria-label="Toggle content menu" data-astro-cid-ynf3rr4n>⌄</button></div><div class="nav-submenu" data-astro-cid-ynf3rr4n><div data-post-types-menu data-astro-cid-ynf3rr4n></div></div></div><a href="/media"${addAttribute(["nav-item", { active: navActive.media }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="18" height="18" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><circle cx="8.5" cy="8.5" r="1.5" data-astro-cid-ynf3rr4n></circle><polyline points="21 15 16 10 5 21" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-sidebar-i18n="layout.nav.media" data-astro-cid-ynf3rr4n>${t("layout.nav.media")}</span></a><a href="/users"${addAttribute(["nav-item", { active: navActive.users }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-ynf3rr4n></path><circle cx="9" cy="7" r="4" data-astro-cid-ynf3rr4n></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87" data-astro-cid-ynf3rr4n></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.users" data-astro-cid-ynf3rr4n>${t("layout.nav.users")}</span></a><div${addAttribute(["nav-group", { open: navActive.settings }], "class:list")} data-nav-group="settings" data-astro-cid-ynf3rr4n><div class="nav-group-header" data-astro-cid-ynf3rr4n><a href="/settings"${addAttribute(["nav-item", { active: navActive.settings }], "class:list")} data-astro-cid-ynf3rr4n><svg class="settings-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 0-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" data-astro-cid-ynf3rr4n></path><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></circle></svg><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06-.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.82-.33l-.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0-2.83l-.06-.06a1.65 1.65 0 0 0-.33-1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.settings" data-astro-cid-ynf3rr4n>${t("layout.nav.settings")}</span></a><button class="nav-group-toggle" type="button"${addAttribute(navActive.settings ? "true" : "false", "aria-expanded")} aria-label="Toggle settings menu" data-astro-cid-ynf3rr4n>⌄</button></div><!-- Submenu de configurações fica agrupado diretamente sob Settings. --><div class="nav-submenu" data-astro-cid-ynf3rr4n>${settingsChildren.map((child) => renderTemplate`<a${addAttribute(child.href, "href")}${addAttribute(["nav-subitem", { active: child.active }], "class:list")}${addAttribute(child.key, "data-sidebar-i18n")} data-astro-cid-ynf3rr4n>${t(child.key)}</a>`)}</div></div><a href="/plugins"${addAttribute(["nav-item", { active: navActive.plugins }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="2" y="2" width="20" height="20" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><path d="M15 7h4a2 2 0 0 1 2 2v4" data-astro-cid-ynf3rr4n></path><path d="M9 17H5a2 2 0 0 1-2-2V9" data-astro-cid-ynf3rr4n></path><line x1="8" y1="12" x2="16" y2="12" data-astro-cid-ynf3rr4n></line></svg><span class="nav-label" data-sidebar-i18n="layout.nav.plugins" data-astro-cid-ynf3rr4n>${t("layout.nav.plugins")}</span></a><a href="/themes"${addAttribute(["nav-item", { active: navActive.themes }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="10" data-astro-cid-ynf3rr4n></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" data-astro-cid-ynf3rr4n></path><path d="M2 12h20" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.themes" data-astro-cid-ynf3rr4n>${t("layout.nav.themes")}</span></a><!-- D1: slots de extensao — paginas de menu declaradas por plugins ativos -->${renderComponent($$result, "PluginExtensionsSlot", PluginExtensionsSlot, {
|
|
1034
1034
|
"client:load": true,
|
|
1035
1035
|
"data-astro-cid-ynf3rr4n": true,
|
|
1036
1036
|
"client:component-hydration": "load",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
2
|
-
import { a as For2, c as Select, f as createSignal, l as Show2, o as Input, p as onMount, r as Button, s as Pagination } from "./
|
|
1
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
|
|
2
|
+
import { a as For2, c as Select, f as createSignal, l as Show2, o as Input, p as onMount, r as Button, s as Pagination } from "./DashboardLayout_09DepSVn.mjs";
|
|
3
3
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
4
4
|
//#region src/components/media/MediaLibrary.tsx
|
|
5
5
|
var _tmpl$ = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
1
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
|
|
2
2
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
3
3
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
4
4
|
//#region src/components/apps/settings/ResourceHubs.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
|
|
5
5
|
//#region src/pages/plugins/[slug].astro
|
|
6
6
|
var _slug__exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Slug,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as AccessManager } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
|
|
5
|
+
import { t as AccessManager } from "./ResourceHubs_Dwb0xyPZ.mjs";
|
|
6
6
|
//#region src/pages/settings/access.astro
|
|
7
7
|
var access_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Access,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
|
|
6
6
|
import { t as FieldTypePicker } from "./FieldTypePicker_CXwpmcQ3.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as ContentEditor } from "./
|
|
6
|
-
//#region src/pages/content/edit.astro
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_DS7flRjR.mjs";
|
|
6
|
+
//#region src/pages/content/[type]/edit.astro
|
|
7
7
|
var edit_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Edit,
|
|
9
9
|
file: () => $$file,
|
|
@@ -14,23 +14,23 @@ var $$Edit = createComponent(($$result, $$props, $$slots) => {
|
|
|
14
14
|
const Astro = $$result.createAstro($$props, $$slots);
|
|
15
15
|
Astro.self = $$Edit;
|
|
16
16
|
const { t } = Astro.locals;
|
|
17
|
-
const
|
|
17
|
+
const contentType = Astro.params.type ?? "post";
|
|
18
18
|
return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
|
|
19
19
|
"title": t("content.editor.save"),
|
|
20
|
-
"data-astro-cid-
|
|
21
|
-
}, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="editor-page" data-astro-cid-
|
|
20
|
+
"data-astro-cid-w7izymzk": true
|
|
21
|
+
}, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="editor-page" data-astro-cid-w7izymzk>${renderComponent($$result, "ContentEditor", ContentEditor, {
|
|
22
22
|
"client:load": true,
|
|
23
|
-
"initialType":
|
|
24
|
-
"data-astro-cid-
|
|
23
|
+
"initialType": contentType,
|
|
24
|
+
"data-astro-cid-w7izymzk": true,
|
|
25
25
|
"client:component-hydration": "load",
|
|
26
26
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/content/ContentEditor.tsx",
|
|
27
27
|
"client:component-export": "ContentEditor"
|
|
28
28
|
})}</div>` })}`;
|
|
29
|
-
}, "/home/runner/work/cms/cms/apps/admin/src/pages/content/edit.astro", void 0);
|
|
30
|
-
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/content/edit.astro";
|
|
31
|
-
var $$url = "/content/edit";
|
|
29
|
+
}, "/home/runner/work/cms/cms/apps/admin/src/pages/content/[type]/edit.astro", void 0);
|
|
30
|
+
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/content/[type]/edit.astro";
|
|
31
|
+
var $$url = "/content/[type]/edit";
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0virtual:astro:page:src/pages/content/edit@_@astro
|
|
33
|
+
//#region \0virtual:astro:page:src/pages/content/[type]/edit@_@astro
|
|
34
34
|
var page = () => edit_exports;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { page };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { c as Select, d as createMemo, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
|
|
5
|
+
import { c as Select, d as createMemo, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
|
|
6
6
|
import { createComponent, escape, memo, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
//#region src/components/apps/settings/GeneralSettings.tsx
|
|
8
8
|
var _tmpl$ = [
|
|
@@ -90,7 +90,7 @@ async function loadLocale(locale) {
|
|
|
90
90
|
"./locales/it.json": () => import("./it_BDY3lerP.mjs"),
|
|
91
91
|
"./locales/ja.json": () => import("./ja_C-EybQiV.mjs"),
|
|
92
92
|
"./locales/pl.json": () => import("./pl_DH5LKmVG.mjs"),
|
|
93
|
-
"./locales/pt-BR.json": () => import("./pt-
|
|
93
|
+
"./locales/pt-BR.json": () => import("./pt-BR_CBnqy3xP.mjs"),
|
|
94
94
|
"./locales/ru.json": () => import("./ru_CFa1xYFr.mjs"),
|
|
95
95
|
"./locales/sw.json": () => import("./sw_QZf7NSsI.mjs"),
|
|
96
96
|
"./locales/tr.json": () => import("./tr_Fjry5R-K.mjs"),
|
|
@@ -317,6 +317,10 @@ var ApiClient = class {
|
|
|
317
317
|
async getContentById(id) {
|
|
318
318
|
return this.request("GET", `/api/v1/content/${id}`);
|
|
319
319
|
}
|
|
320
|
+
async getSingletonContent(type) {
|
|
321
|
+
const response = await this.request("GET", `/api/v1/content/singleton/${encodeURIComponent(type)}`);
|
|
322
|
+
return "content" in response ? response.content : response;
|
|
323
|
+
}
|
|
320
324
|
async createContent(data) {
|
|
321
325
|
return this.request("POST", `/api/v1/content`, data);
|
|
322
326
|
}
|
|
@@ -795,6 +799,7 @@ var content = {
|
|
|
795
799
|
"list": {
|
|
796
800
|
"title": "Content",
|
|
797
801
|
"description": "Search, filter, edit and publish your content.",
|
|
802
|
+
"typeNotFound": "This content type was not found.",
|
|
798
803
|
"columns": {
|
|
799
804
|
"title": "Title",
|
|
800
805
|
"type": "Type",
|
|
@@ -1015,6 +1020,12 @@ var settings = {
|
|
|
1015
1020
|
"revisions": "Revisions"
|
|
1016
1021
|
},
|
|
1017
1022
|
"hasArchive": "Has public archive (/slug)",
|
|
1023
|
+
"singleton": "Singleton (only one content entry)",
|
|
1024
|
+
"icon": "Sidebar icon (Lucide name)",
|
|
1025
|
+
"iconHint": "Examples: box, package, shopping-bag, file-text",
|
|
1026
|
+
"editTitle": "Edit Content Type",
|
|
1027
|
+
"update": "Update",
|
|
1028
|
+
"cancel": "Cancel",
|
|
1018
1029
|
"create": "Create"
|
|
1019
1030
|
},
|
|
1020
1031
|
"table": {
|
|
@@ -1024,7 +1035,14 @@ var settings = {
|
|
|
1024
1035
|
"source": "Source",
|
|
1025
1036
|
"supports": "Supports",
|
|
1026
1037
|
"archive": "Archive",
|
|
1027
|
-
"
|
|
1038
|
+
"mode": "Mode",
|
|
1039
|
+
"singleton": "Singleton",
|
|
1040
|
+
"collection": "Collection",
|
|
1041
|
+
"icon": "Icon",
|
|
1042
|
+
"actions": {
|
|
1043
|
+
"edit": "Edit",
|
|
1044
|
+
"remove": "Remove"
|
|
1045
|
+
}
|
|
1028
1046
|
},
|
|
1029
1047
|
"sources": {
|
|
1030
1048
|
"admin": "Admin",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
|
|
5
5
|
//#region src/pages/settings/index.astro
|
|
6
6
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Index,
|