@prisma-lossless/cli 7.8.0-lossless.12 → 7.8.0-lossless.16
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/build/index.js +493 -493
- package/build/studio.js +116 -118
- package/package.json +23 -23
- package/preinstall/index.js +8 -7
package/build/studio.js
CHANGED
|
@@ -116,6 +116,122 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
116
116
|
`,"<br />").replaceAll("\r","<br />")}function bpe(e){if(e==null)return"";if(typeof e=="object")try{return JSON.stringify(e)}catch{return String(e)}return String(e)}var jct="__ps_draft_id";function Vct(e){let{activeEditorCellKey:t,focusedCell:n,onFocusedCellChange:r,onEditorNavigate:i,setActiveEditorCellKey:o,table:s,stagedRows:a,setStagedRows:l}=e,u=!!Mhe(),{createUrl:c}=lo(),{data:d}=Hh();function h(y,v){l(b=>{let w=[...b];return w[y]={...w[y],...v},w})}function f(y){l(v=>[...v.slice(0,y),...v.slice(y+1)])}let p=(0,wpe.useCallback)(y=>{(0,xpe.flushSync)(()=>{o(v=>v===y.editorCellKey?null:v),r({columnId:y.columnId,rowIndex:y.rowIndex})})},[r,o]),m=Object.values(s.options.columns).map(y=>({...y,cell({cell:v}){return b=>{let{rowIndex:w,...x}=b;if(y.id==="__ps_select")return(0,to.jsx)(wa,{className:"hover:bg-transparent","data-select":"true",...x,children:(0,to.jsx)(zn,{className:"peer shrink-0 border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring bg-background w-full h-full rounded-none border-none",disabled:u,onClick:()=>f(w),variant:null,size:"icon",children:(0,to.jsx)("span",{className:"flex items-center justify-center text-current",children:(0,to.jsx)(KZ,{className:"opacity-10",size:14})})})});let S=String(y.id??""),k=n?.rowIndex===w&&n.columnId===S;if(cct(y.meta))return(0,to.jsx)(wa,{...x,className:G(x.className,k?GB:QB),"data-focused":k||void 0,"data-grid-column-id":S,"data-grid-visual-row-index":w,withContextMenu:!1,children:(0,to.jsx)("div",{className:"flex w-full items-center justify-end",children:(0,to.jsx)(V3,{createUrl:c,filterColumn:y.meta.sourceColumn,filterValue:(a[w]??{})[y.meta.currentColumnName],introspection:d,targetSchema:y.meta.sourceSchema,targetTable:y.meta.sourceTable})})});let C=y.meta;if(C.isAutoincrement)return(0,to.jsx)(wa,{className:G("italic text-muted-foreground select-none",k&&Qw),"data-focused":k||void 0,"data-grid-column-id":S,"data-grid-visual-row-index":w,onMouseDown:()=>r({columnId:S,rowIndex:w}),children:"(auto-increment)"});if(C.isComputed)return(0,to.jsx)(wa,{className:G("italic text-muted-foreground select-none",k&&Qw),"data-focused":k||void 0,"data-grid-column-id":S,"data-grid-visual-row-index":w,onMouseDown:()=>r({columnId:S,rowIndex:w}),children:"(computed)"});let N=Wct(iG(a[w]??{},w),S);return(0,to.jsx)(Hhe,{cellComponent:C_({cell:v,column:C}),containerProps:{...x,"data-focused":k||void 0,"data-grid-column-id":S,"data-grid-visual-row-index":w,className:G(x.className,k?GB:QB),onMouseDown(E){x.onMouseDown?.(E),!E.defaultPrevented&&r({columnId:S,rowIndex:w})}},inputComponent:ape({cell:v,column:C,context:"insert",onNavigate(E){i({columnId:S,direction:E,rowKey:iG(a[w]??{},w),rowKind:"insert"})},onSubmit(E){h(w,{[y.id]:E}),p({columnId:S,editorCellKey:N,rowIndex:w})},readonly:u,showSaveAction:!1}),isEditorOpen:t===N,linkComponent:_he({cell:v,column:C,createUrl:c,introspection:d}),onRequestClose:()=>p({columnId:S,editorCellKey:N,rowIndex:w}),onRequestOpen:()=>{r({columnId:S,rowIndex:w}),o(N)}})}}})),g=Zce({...s.options,columns:m,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:ptt(s.options.state,["pagination","sorting"])});return(0,to.jsx)(to.Fragment,{children:g.getRowModel().rows.map((y,v)=>(0,to.jsx)(Fy,{children:y.getVisibleCells().map((b,w)=>{if(typeof b.column.columnDef.cell=="function"){let x=b.column.columnDef.cell(b.getContext());return(0,to.jsx)(x,{...lq(b.column,"cell"),rowIndex:v},w)}return null})},v))})}function Wct(e,t){return`insert:${e}:${t}`}function iG(e,t){let n=e[jct];return typeof n=="string"&&n.length>0?n:`draft-${t}`}function Uct(e){let{scopeKey:t,searchTerm:n,setPageIndexParam:r,setSearchParam:i,supportsFullTableSearch:o}=e,[s,a]=En(o?`table-row-search:${t}`:void 0,{isOpen:n.length>0}),[l,u]=(0,Is.useState)(n),c=(0,Is.useRef)(null),d=o&&s.isOpen;(0,Is.useEffect)(()=>{u(n)},[n]),(0,Is.useEffect)(()=>{if(!o){a({isOpen:!1});return}n.length>0&&a({isOpen:!0})},[n,a,o]),(0,Is.useEffect)(()=>{d&&(c.current?.focus(),c.current?.select())},[d]),(0,Is.useEffect)(()=>{if(!o||l===n)return;let m=setTimeout(()=>{i(l),r("0")},350);return()=>clearTimeout(m)},[l,n,r,i,o]);let h=(0,Is.useCallback)(()=>{c.current?.blur(),a({isOpen:!1}),u(""),i(""),r("0")},[r,a,i]),f=(0,Is.useCallback)(()=>{a({isOpen:!0})},[a]),p=(0,Is.useCallback)(m=>{let g=m.trim();a({isOpen:!0}),u(g),i(g),r("0"),requestAnimationFrame(()=>{c.current?.focus(),c.current?.select()})},[r,a,i]);return{closeRowSearch:h,isRowSearchOpen:d,openRowSearch:f,rowSearchInputRef:c,runRowSearch:p,searchInput:l,setSearchInput:u}}var Hct=50;function $ct(e){let t=!!kJ(),{adapter:n,hasAiFilter:r,requestLlm:i}=is(),{metadata:{activeTable:o},createUrl:s,searchParam:a,setPageIndexParam:l,setSearchParam:u}=lo(),c=n.capabilities?.fullTableSearch===!0,d=o?`${o.schema}.${o.name}`:void 0,{pinnedColumnIds:h,setPinnedColumnIds:f}=nue(),p=a??"",m=c?p:"",{sortingState:g,setSortingState:y}=hO(),{isInfiniteScrollEnabled:v,paginationState:b,setInfiniteScrollEnabled:w,setPaginationState:x}=D1(),[S,k]=(0,Ne.useState)(1),{appliedFilter:C,editingFilter:N,setEditingFilter:E,applyEditingFilter:D,totalEditingFilters:q}=cO(o?.columns),z=(0,Ne.useMemo)(()=>lG({activeRowSearchTerm:m,filter:C,pageSize:v?25:b.pageSize,selectionScopeKey:d,sortingState:g}),[m,C,v,b.pageSize,d,g]),{data:_,refetch:R}=Hh(),T=(0,Ne.useMemo)(()=>tc({defaultSchema:n.defaultSchema,dialect:n.capabilities?.sqlDialect??"postgresql",introspection:_}),[n.capabilities?.sqlDialect,n.defaultSchema,_]),B=(0,Ne.useMemo)(()=>!n.capabilities?.sqlEditorLint||!hdt(n)?null:{dialect:T.dialect,lintSql:(te,me)=>n.sqlLint(te,me),schemaVersion:T.version},[n,T.dialect,T.version]),{data:A,isFetching:M,refetch:P}=Pst({pageIndex:v?0:b.pageIndex,pageSize:v?25*S:b.pageSize,sortOrder:g,filter:C,searchScope:c?"row":"table",searchTerm:m}),[F,I]=(0,Ne.useState)(null),V=(0,Ne.useMemo)(()=>v&&M&&(A==null||A.rows.length===0)&&F?.key===z?F.data:A,[A,z,M,v,F]);(0,Ne.useEffect)(()=>{if(!v||!A){F!=null&&I(null);return}M&&A.rows.length===0||I(te=>te?.key===z&&te.data.filteredRowCount===A.filteredRowCount&&te.data.rows===A.rows?te:{data:A,key:z})},[A,z,M,v,F]);let{deleteSelection:W,isSelecting:j,rowSelectionState:X,setRowSelectionState:$}=zst(V),{tableUiState:K,updateTableUiState:Q}=j3({editingFilter:N}),[J]=En(Bte,{requestId:0,tableId:null}),[oe,be]=En(d?`datagrid:${d}:selection-state`:void 0,Tp),[Me,Je]=En(d?`datagrid:${d}:focused-cell`:void 0,null),[Ve]=En(d?`datagrid:${d}:column-order`:void 0,[]),[Ct]=En(d?`datagrid:${d}:column-pinning`:void 0,{left:["__ps_select"],right:[]}),He=Uct({scopeKey:d??"",searchTerm:p,setPageIndexParam:l,setSearchParam:u,supportsFullTableSearch:c}),de=(0,Ne.useMemo)(()=>V?.rows??[],[V?.rows]),ie=(0,Ne.useMemo)(()=>K?.stagedRows??[],[K?.stagedRows]),ze=(0,Ne.useMemo)(()=>K?.stagedUpdates??[],[K?.stagedUpdates]),[Le,Oe]=(0,Ne.useState)(null),[rt,Ht]=(0,Ne.useState)(0),[$t,dt]=(0,Ne.useState)(0),[et,pt]=(0,Ne.useState)(!1),[nn,Dt]=(0,Ne.useState)(!0),[Ot,Kt]=(0,Ne.useState)(0),[Er,Dn]=(0,Ne.useState)(!1),[Zn,Un]=(0,Ne.useState)(!1),[he,Ae]=(0,Ne.useState)(!1),ge=Object.values(X).filter(Boolean).length,Be=zde(oe),ye=Be!=null||ge>0,De=Kct(ge),gt=Yct(ge),ce=idt(adt({stagedRows:ie,stagedUpdates:ze})),$e=(0,Ne.useRef)(null),it=(0,Ne.useRef)(!1),Jt=(0,Ne.useRef)(z),Nt=(0,Ne.useCallback)(te=>{Q(me=>{let _t=me.stagedRows??[];me.stagedRows=typeof te=="function"?te(_t):te})},[Q]),tt=(0,Ne.useCallback)(te=>{Q(me=>{let _t=me.stagedUpdates??[];me.stagedUpdates=typeof te=="function"?te(_t):te})},[Q]),vn=(0,Ne.useMemo)(()=>new Map(ze.map(te=>[te.rowId,te])),[ze]),Yt=(0,Ne.useMemo)(()=>de.map(te=>{let me=String(te.__ps_rowid??""),_t=vn.get(me);return _t?{...te,..._t.changes}:te}),[de,vn]),Mt=ie.length>0||ze.length>0,bt=ze.length,Rn=ie.length+bt,ps=odt(Rn),md=Ot===0?null:Ot%2===0?"motion-safe:animate-[ps-discard-wiggle-b_420ms_ease-in-out]":"motion-safe:animate-[ps-discard-wiggle-a_420ms_ease-in-out]",Fu=Ot===0?null:Ot%2===0?"ps-discard-wiggle-b":"ps-discard-wiggle-a";(0,Ne.useEffect)(()=>{Oe(null)},[o?.name,o?.schema,b.pageIndex,b.pageSize]),(0,Ne.useEffect)(()=>{Jt.current!==z&&(Jt.current=z,$e.current=null,it.current=!1,k(1))},[z]),(0,Ne.useEffect)(()=>{v||($e.current=null,it.current=!1,k(1))},[v]),(0,Ne.useEffect)(()=>{ge===0&&he&&Ae(!1)},[he,ge]),(0,Ne.useEffect)(()=>{Mt||(Er&&Dn(!1),Zn&&Un(!1),Ot!==0&&Kt(0))},[Ot,Mt,Zn,Er]),(0,Ne.useEffect)(()=>{!ye&&et&&pt(!1)},[ye,et]);let gd=!Object.values(o?.columns??{}).some(te=>te.pkPosition!=null),Or=Mhe(),Df=Ist(),wr=Bst(),ms=pdt(V?.filteredRowCount??1/0,b.pageSize),ju=v&&mdt(V?.filteredRowCount??1/0,de.length),Tr=b.pageIndex>0,Wa=ms!=null&&b.pageIndex<ms-1;(0,Ne.useLayoutEffect)(()=>{let te=$e.current;if(te==null){it.current=!1;return}if(M){it.current=!0;return}(de.length>=te||!ju||it.current)&&($e.current=null,it.current=!1)},[ju,M,de.length]);let Vu=o?`${o.schema}.${o.name}`:null,yd=(0,Ne.useMemo)(()=>uct({introspection:_,table:o}),[o,_]),Wu=(0,Ne.useMemo)(()=>tdt({backRelationColumns:yd,columns:o?.columns}),[o?.columns,yd]),Zs=(0,Ne.useMemo)(()=>Wu,[Wu]),Ua=(0,Ne.useMemo)(()=>oG({columnOrder:Ve,columnPinning:Ct,defaultColumnIds:Zs}),[Zs,Ve,Ct]),gs=(0,Ne.useMemo)(()=>{let te=Yt;return Be?Dct({columnIds:Ua,range:Be,rows:te}):ge>0?Rct({columnIds:Ua,rowSelectionState:X,rows:te}):null},[Be,Yt,X,ge,Ua]),zo=(0,Ne.useMemo)(()=>Jct(o?.columns,gd),[o?.columns,gd]),er=(0,Ne.useMemo)(()=>oG({columnOrder:Ve,columnPinning:Ct,defaultColumnIds:Zs}),[Zs,Ve,Ct]),Gi=(0,Ne.useMemo)(()=>Zct({displayRows:Yt,persistedRows:de,stagedRows:ie}),[Yt,de,ie]),ur=(0,Ne.useMemo)(()=>qde({columnIds:er,focusedCell:Me,rowCount:Gi.length}),[Gi.length,er,Me]),Ri=(0,Ne.useCallback)(()=>{Mt&&Kt(te=>te+1)},[Mt]),Um=(0,Ne.useCallback)(te=>{if(Mt){Ri();return}Jt.current=lG({activeRowSearchTerm:m,filter:C,pageSize:te?25:b.pageSize,selectionScopeKey:d,sortingState:g}),$e.current=null,it.current=!1,k(1),w(te),te&&b.pageIndex!==0&&l("0")},[m,C,Mt,b.pageIndex,b.pageSize,d,w,l,g,Ri]),Uu=(0,Ne.useCallback)(()=>{let te=dct({hasMoreInfiniteRows:ju,isInfiniteScrollEnabled:v,loadedInfinitePageCount:S,loadedRowCount:de.length,pendingRowTarget:$e.current});te!=null&&($e.current=null,it.current=!1,$e.current=te,k(me=>me+1))},[ju,v,S,de.length]),bi=(0,Ne.useCallback)(te=>{cdt(te)&&(uq(Me,te)||Je(te))},[Me,Je]);(0,Ne.useEffect)(()=>{uq(Me,ur)||Je(ur)},[Me,ur,Je]);let Ol=(0,Ne.useCallback)(async te=>await i({prompt:te,task:"table-filter"}),[i]),R0=(0,Ne.useCallback)(async te=>{if(!(!r||!o))try{await ppe({aiFilter:Ol,applyEditingFilter:D,filterOperators:_.filterOperators,request:te,setEditingFilter:E,table:o})}catch(me){Ey.error("AI filtering failed.",{description:me instanceof Error?me.message:String(me)})}},[o,D,r,_.filterOperators,Ol,E]),qS=(0,Ne.useCallback)(()=>{Ht(te=>te+1)},[]);function GT(){if(!Mt)return;let te=()=>{Oe(null),Ey.success(sdt(Rn))},me=()=>{if(ze.length===0){te();return}wr.mutate({updates:ze.map(({changes:_t,row:bn})=>({changes:_t,row:bn}))},{onSuccess(){tt([]),te()}})};if(ie.length===0){me();return}Df.mutate(Xct(ie),{onSuccess(){Nt([]),me()}})}let Rf=(0,Ne.useCallback)(async()=>{await R(),await P()},[P,R]),I0=(0,Ne.useCallback)(()=>{Nt(te=>[...te,Qct()]),bi(er[0]?{columnId:er[0],rowIndex:0}:null)},[er,bi,Nt]);function XT(){Oe(null),Nt([]),tt([])}function P0(){XT(),Un(!1)}function zS(){W(),Ae(!1)}function FS(te){return gs?Ict({table:gs,format:te,includeColumnHeader:nn}):""}function Hm(te){let me=FS(te);pt(!1),!(!me||typeof navigator.clipboard?.writeText!="function")&&navigator.clipboard.writeText(me).catch(_t=>{console.error("Failed to copy selection export:",_t)})}function $m(te){if(!o)return;let me=FS(te);pt(!1),me&&Lct({content:me,filename:Pct({format:te,schema:o.schema,table:o.name}),format:te})}let jS=(0,Ne.useMemo)(()=>lct({canGoToNextPage:Wa,canGoToPreviousPage:Tr,hasAiFilter:r,hasStagedChanges:Mt,isInsertingDisabled:Or>0,onDiscardStagedChanges:()=>Un(!0),onFocusFilterWithAi:qS,onFocusSearch:He.openRowSearch,onGoToNextPage(){if(Mt){Ri();return}Wa&&x(te=>({...te,pageIndex:te.pageIndex+1}))},onGoToPreviousPage(){if(Mt){Ri();return}Tr&&x(te=>({...te,pageIndex:te.pageIndex-1}))},onInsertRow:I0,onRefresh:()=>{Rf()},onRunFilterWithAi:R0,onRunSearch:He.runRowSearch,onSaveStagedChanges:()=>Dn(!0),saveStagedChangesLabel:sG(Rn)}),[Wa,Tr,qS,R0,r,Mt,Or,I0,Rf,He.openRowSearch,He.runRowSearch,Rn,x,Ri]);Dje(jS);function JT(te,me,_t){let bn=String(_t.__ps_rowid??"");bn&&tt(ii=>kpe(ii,{columnName:me.name,row:_t,rowId:bn,value:te}))}function VS(te){let me=edt({columnId:te.columnId,direction:te.direction,editableColumnIds:zo,rowKey:te.rowKey,rowKind:te.rowKind,rows:Gi});Oe(me?PI({columnId:me.columnId,rowKey:me.rowKey,rowKind:me.rowKind}):null)}let Y=(0,Ne.useCallback)(te=>{(0,Xde.flushSync)(()=>{bi({columnId:te.columnId,rowIndex:te.rowIndex}),Oe(me=>me===te.editorCellKey?null:me)})},[bi]),Z=(0,Ne.useCallback)(te=>{if(!te||!zo.includes(te.columnId))return;let me=Gi[te.rowIndex];me&&Oe(PI({columnId:te.columnId,rowKey:me.rowKey,rowKind:me.rowKind}))},[zo,Gi]),se=(0,Ne.useRef)(null),ue=(0,Ne.useRef)(0),Ke=(0,Ne.useRef)(null);(0,Ne.useEffect)(()=>{if(!Vu||J.tableId!==Vu)return;let te=`${Vu}:${J.requestId}`;Ke.current!==te&&(Ke.current=te,dt(me=>me+1))},[Vu,J.requestId,J.tableId]),(0,Ne.useLayoutEffect)(()=>{se.current&&!Le&&(document.querySelector('[data-grid-scroll-container="true"]')?.focus({preventScroll:!0}),dt(te=>te+1)),se.current=Le},[Le]),(0,Ne.useEffect)(()=>{let te=me=>{if(Le||udt(document.activeElement)||document.querySelector('[role="dialog"]:not([data-studio-cell-editor="true"])')||me.altKey||me.ctrlKey||me.metaKey||!ur)return;if(me.key==="Enter"){me.preventDefault(),Z(ur);return}let _t=ldt(me.key);if(!_t)return;let bn=Date.now();if(me.repeat&&bn-ue.current<Hct){me.preventDefault();return}let ii=zit({columnIds:er,direction:_t,focusedCell:ur,rowCount:Gi.length});if(ii){if(me.preventDefault(),ue.current=bn,me.shiftKey){let Ii=Fde(oe)??aG({columnIds:er,focusedCell:ur,stagedRowCount:ie.length}),Tl=aG({columnIds:er,focusedCell:ii,stagedRowCount:ie.length});Ii&&Tl&&($({}),be(Pf=>oh(Pf,{type:"cell.select",end:Tl,start:Ii}))),bi(ii);return}$({}),be(Ii=>oh(Ii,{type:"reset"})),bi(ii)}};return window.addEventListener("keydown",te),()=>{window.removeEventListener("keydown",te)}},[Le,Gi.length,er,oe,bi,Z,ur,be,$,ie.length]);function Ye(te){if(!o)return!1;let{columnId:me}=te,_t=o.columns[me];return _t?Spe(_t,gd):!1}function mt(te){if(!o||te.length===0)return;let me=new Map;for(let _t of te){let bn=de[_t.rowIndex];if(!bn)continue;let ii=o.columns[_t.columnId];if(!ii||!Ye({columnId:ii.name,row:bn}))continue;let Ii=String(bn.__ps_rowid),Tl=me.get(Ii),Pf=Sz(ii,"=",_t.value);if(!Tl){me.set(Ii,{row:bn,changes:{[ii.name]:Pf}});continue}Tl.changes[ii.name]=Pf}me.size!==0&&(tt(_t=>rdt(_t,[...me.values()])),Ey.success(`Bulk paste staged for ${me.size} row${me.size===1?"":"s"}`))}let Zt=Object.values(o?.columns??{}).sort(nF).map(te=>({id:te.name,accessorKey:te.name,meta:te,header({table:me,header:_t}){return bn=>(0,qe.jsx)(hq,{table:me,header:_t,...bn,children:(0,qe.jsx)(Hde,{header:_t,column:te,isSortDisabled:Mt,onBlockedSortInteraction:Ri})})},cell({cell:me}){return _t=>{let bn=de[me.row.index]??me.row.original,ii=String(bn.__ps_rowid??""),Ii=ie.length+me.row.index,Tl=PI({columnId:te.name,rowKey:ii,rowKind:"persisted"}),Pf=Le===Tl,PV=vn.get(ii),LV=!!(PV&&Object.prototype.hasOwnProperty.call(PV.changes,te.name)),L0=ur?.rowIndex===Ii&&ur.columnId===te.name;return te.isAutoincrement||te.isComputed?(0,qe.jsx)(wa,{..._t,className:G(_t.className,L0&&Qw),"data-focused":L0||void 0,"data-grid-visual-row-index":Ii,withContextMenu:!1,children:C_({cell:me,column:te,searchTerm:m})}):(0,qe.jsx)(Hhe,{cellComponent:C_({cell:me,column:te,searchTerm:m}),containerProps:{..._t,"data-focused":L0||void 0,"data-grid-visual-row-index":Ii,className:G(_t.className,L0&&LV?GB:L0?Qw:LV?QB:void 0)},inputComponent:Pf?ape({cell:me,column:te,context:"edit",onNavigate(ZT){VS({columnId:te.name,direction:ZT,rowKey:ii,rowKind:"persisted"})},onSubmit(ZT){JT(ZT,te,bn),Y({columnId:te.name,editorCellKey:Tl,rowIndex:Ii})},readonly:gd,showSaveAction:!1}):null,isEditorOpen:Pf,linkComponent:_he({cell:me,column:te,createUrl:s,introspection:_}),onRequestClose:()=>Y({columnId:te.name,editorCellKey:Tl,rowIndex:Ii}),onRequestOpen:()=>{bi({columnId:te.name,rowIndex:Ii}),Oe(Tl)}})}}})),Lt=yd.map(te=>({accessorFn:()=>null,enableSorting:!1,id:te.name,meta:te,header({table:me,header:_t}){return bn=>(0,qe.jsx)(hq,{table:me,header:_t,...bn,children:(0,qe.jsx)(ndt,{name:te.name})})},cell({cell:me}){return _t=>{let bn=de[me.row.index]??me.row.original,ii=ie.length+me.row.index,Ii=ur?.rowIndex===ii&&ur.columnId===te.name;return(0,qe.jsx)(wa,{..._t,className:G(_t.className,Ii&&Qw),"data-focused":Ii||void 0,"data-grid-visual-row-index":ii,withContextMenu:!1,children:(0,qe.jsx)("div",{className:"flex h-full w-full items-center justify-end",children:(0,qe.jsx)(V3,{createUrl:s,filterColumn:te.sourceColumn,filterValue:bn[te.currentColumnName],introspection:_,targetSchema:te.sourceSchema,targetTable:te.sourceTable})})})}}})),vd=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!0,enableResizing:!1,enableSorting:!1,size:35,minSize:35,header({table:te}){return me=>(0,qe.jsx)(um,{...me,"aria-label":"Row selection spacer"})},cell({row:te}){return me=>(0,qe.jsx)(wa,{"data-select":"true",...me})}}],If=[...Zt,...vd,...Lt];return o?(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsxs)(f1,{className:N.filters.length>0?"border-b-0 pb-2":void 0,endContent:(0,qe.jsx)(zn,{"aria-label":"Refresh table",variant:"outline",size:"icon",onClick:()=>{Rf()},disabled:M,children:(0,qe.jsx)(Dz,{"data-icon":"inline-start",className:G(M&&"animate-spin")})}),children:[(0,qe.jsx)("div",{className:"flex min-w-0 items-center gap-2",children:(0,qe.jsx)(fdt,{disabled:Mt,onBlockedInteraction:Ri,rowSearch:He,supportsFullTableSearch:c})}),(0,qe.jsx)(_ct,{aiFilter:r?Ol:void 0,aiFocusRequestKey:rt,applyEditingFilter:D,disabled:Mt,editingFilter:N,filterOperators:_.filterOperators,onBlockedInteraction:Ri,setEditingFilter:E,table:o,totalEditingFilters:q}),(0,qe.jsx)(zn,{variant:"outline",className:"h-9 px-5",onClick:I0,disabled:Or>0,children:"Insert row"}),ye&&(0,qe.jsxs)(Mde,{open:et,onOpenChange:te=>{pt(te),te&&Dt(!0)},children:[(0,qe.jsx)(_de,{asChild:!0,children:(0,qe.jsxs)(zn,{"aria-expanded":et,"aria-label":"Copy selection as",variant:"outline",className:G("h-9 shrink-0 gap-1.5 px-3 font-sans",et&&"bg-accent text-accent-foreground"),children:[(0,qe.jsx)("span",{children:"copy as"}),(0,qe.jsx)(Mv,{className:"size-3.5 text-muted-foreground"})]})}),(0,qe.jsxs)(B3,{align:"start",side:"bottom",className:"w-[220px] max-w-[calc(100vw-2rem)] overflow-hidden p-1 font-sans",children:[(0,qe.jsx)(Ode,{checked:nn,className:"rounded-lg font-sans text-sm font-medium",onCheckedChange:te=>Dt(te===!0),onSelect:te=>{te.preventDefault()},children:"include column header"}),(0,qe.jsx)(Ade,{}),(0,qe.jsx)("div",{className:"p-0.5",children:[{action:()=>Hm("markdown"),label:"copy markdown"},{action:()=>Hm("csv"),label:"copy csv"},{action:()=>$m("markdown"),label:"save markdown"},{action:()=>$m("csv"),label:"save csv"}].map(te=>(0,qe.jsx)(Ede,{className:"rounded-lg font-sans text-sm font-medium",onSelect:te.action,children:te.label},te.label))})]})]}),Mt&&(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)(zn,{className:"h-9 border border-emerald-300 bg-emerald-100 px-5 font-sans text-emerald-950 hover:bg-emerald-200",onClick:()=>Dn(!0),children:sG(Rn)}),(0,qe.jsx)(zn,{"data-wiggle-animation":Fu?`${Fu}-${Ot}`:void 0,variant:"outline",className:G("h-9 border-amber-300 bg-amber-100 px-4 font-sans text-amber-950 hover:border-amber-400 hover:bg-amber-200 motion-safe:origin-center motion-safe:will-change-transform",md),onClick:()=>Un(!0),children:"Discard edits"})]}),j&&ge>0&&(0,qe.jsx)(zn,{variant:"secondary",size:"sm",onClick:()=>Ae(!0),children:De})]}),(0,qe.jsx)(Ect,{applyEditingFilter:D,disabled:Mt,editingFilter:N,filterOperators:_.filterOperators,onBlockedInteraction:Ri,setEditingFilter:E,sqlFilterLint:B,table:o}),(0,qe.jsx)(Ude,{areRowsInViewActionsLocked:Mt,canWriteToCell:Ye,columnDefs:If,focusScrollContainerKey:$t||void 0,focusRowIndexOffset:ie.length,focusedCell:ur,getBeforeRows:te=>(0,qe.jsx)(Vct,{activeEditorCellKey:Le,focusedCell:ur,onEditorNavigate:VS,onFocusedCellChange:bi,setActiveEditorCellKey:Oe,setStagedRows:Nt,stagedRows:ie,table:te}),hasMoreInfiniteRows:ju,infiniteScrollEnabled:v,isFetching:M,isProcessing:t,onFocusedCellChange:bi,onBlockedRowsInViewAction:Ri,onInfiniteScrollEnabledChange:Um,onLoadMoreRows:Uu,onPinnedColumnIdsChange:f,onPaginationChange:x,onPasteSelection:mt,onRowSelectionChange:$,onSortingChange:y,pageCount:ms,paginationState:b,pinnedColumnIds:h,rows:Yt,rowSelectionState:X,selectionScopeKey:d,sortingState:g}),(0,qe.jsx)(LI,{onOpenChange:Ae,onPrimaryAction:zS,open:he,primaryLabel:"delete",primaryVariant:"destructive",prompt:gt,secondaryLabel:"keep",title:"Confirm row deletion"}),(0,qe.jsx)(LI,{onOpenChange:Dn,onPrimaryAction:()=>{Dn(!1),GT()},open:Er,primaryLabel:"yes, write to db",prompt:ps,secondaryLabel:"no, keep editing",title:"Confirm staged row save"}),(0,qe.jsx)(LI,{onOpenChange:Un,onPrimaryAction:P0,open:Zn,primaryLabel:"yes, discard",primaryVariant:"destructive",prompt:ce,secondaryLabel:"no, keep editing",title:"Confirm staged edit discard"})]}):null}function Kct(e){return`Delete ${e} ${e===1?"row":"rows"}`}function Yct(e){return`Do you want to delete ${e} ${e===1?"row":"rows"}?`}function oG(e){let{columnOrder:t,columnPinning:n,defaultColumnIds:r}=e,i=new Set(r),o=[...t.filter(l=>i.has(l)),...r.filter(l=>!t.includes(l))],s=(n.left??[]).filter(l=>l!=="__ps_select"&&i.has(l)),a=new Set;return[...s,...o].filter(l=>a.has(l)?!1:(a.add(l),!0))}var xO="__ps_draft_id";function PI(e){return`${e.rowKind}:${e.rowKey}:${e.columnId}`}function Qct(){return{[xO]:crypto.randomUUID()}}function Gct(e,t){let n=e[xO];return typeof n=="string"&&n.length>0?n:`draft-${t}`}function Xct(e){return e.map(t=>{let{[xO]:n,...r}=t;return r})}function Jct(e,t){return Object.values(e??{}).filter(n=>Spe(n,t)).sort(nF).map(n=>n.name)}function Zct(e){let{displayRows:t,persistedRows:n,stagedRows:r}=e;return[...r.map((i,o)=>({row:i,rowKey:Gct(i,o),rowKind:"insert"})),...t.map((i,o)=>({row:i,rowKey:String(n[o]?.__ps_rowid??i.__ps_rowid??""),rowKind:"persisted"}))]}function edt(e){let{columnId:t,direction:n,editableColumnIds:r,rowKey:i,rowKind:o,rows:s}=e,a=s.findIndex(c=>c.rowKey===i&&c.rowKind===o),l=r.indexOf(t);if(a===-1||l===-1)return null;if(n==="tab"){let c=l+1;if(c<r.length)return{columnId:r[c],rowKey:i,rowKind:o};let d=s[a+1];return d?{columnId:r[0],rowKey:d.rowKey,rowKind:d.rowKind}:null}if(n==="left"||n==="right"){let c=r[l+(n==="left"?-1:1)];return c?{columnId:c,rowKey:i,rowKind:o}:null}let u=s[a+(n==="up"?-1:1)];return u?{columnId:t,rowKey:u.rowKey,rowKind:u.rowKind}:null}function Spe(e,t){return!t&&!e.isAutoincrement&&!e.isComputed}function nF(e,t){let n=e.pkPosition||1/0,r=t.pkPosition||1/0,i=n-r;return Number.isFinite(i)?i||e.name.localeCompare(t.name):Number.isNaN(i)?e.name.localeCompare(t.name):i}function tdt(e){let{backRelationColumns:t,columns:n}=e;return[...Object.values(n??{}).sort(nF).map(r=>r.name),...t.map(r=>r.name)]}function ndt(e){let{name:t}=e;return(0,qe.jsx)("div",{className:"flex h-full min-w-0 items-center px-2",children:(0,qe.jsx)("span",{className:"min-w-0 truncate font-mono text-xs text-foreground/90",children:t})})}function kpe(e,t){let{columnName:n,row:r,rowId:i,value:o}=t,s=[...e],a=s.findIndex(h=>h.rowId===i),l=s[a],u=l?.row??r,c={...l?.changes??{}};if(ctt(u[n],o)?delete c[n]:c[n]=o,Object.keys(c).length===0)return a!==-1&&s.splice(a,1),s;let d={changes:c,row:u,rowId:i};return a===-1?(s.push(d),s):(s[a]=d,s)}function rdt(e,t){let n=e;for(let r of t){let i=String(r.row.__ps_rowid??"");if(i)for(let[o,s]of Object.entries(r.changes))n=kpe(n,{columnName:o,row:r.row,rowId:i,value:s})}return n}function sG(e){return`Save ${e} ${e===1?"row":"rows"}`}function idt(e){return`Discard edits to ${e} ${e===1?"cell":"cells"}?`}function odt(e){return`Commit ${e} updated ${e===1?"row":"rows"} to the database?`}function sdt(e){return`${e===1?"Row":"Rows"} saved successfully`}function adt(e){let{stagedRows:t,stagedUpdates:n}=e,r=t.reduce((o,s)=>{let a=Object.keys(s).filter(l=>l!==xO).length;return o+Math.max(a,1)},0),i=n.reduce((o,s)=>o+Object.keys(s.changes).length,0);return r+i}function ldt(e){switch(e){case"ArrowUp":return"up";case"ArrowDown":return"down";case"ArrowLeft":return"left";case"ArrowRight":return"right";default:return null}}function udt(e){if(!(e instanceof HTMLElement)||!e.isConnected)return!1;let t=e.tagName.toLowerCase();return t==="input"||t==="textarea"||t==="select"?!0:e.isContentEditable}function aG(e){let{columnIds:t,focusedCell:n,stagedRowCount:r}=e;if(!n||n.rowIndex<r)return null;let i=t.indexOf(n.columnId);return i===-1?null:{columnId:n.columnId,columnIndex:i,rowIndex:n.rowIndex-r}}function cdt(e){return e==null?!0:typeof e!="object"?!1:"columnId"in e&&typeof e.columnId=="string"&&"rowIndex"in e&&Number.isInteger(e.rowIndex)}function ddt(e){let{event:t,onPrimaryAction:n,onSecondaryAction:r,primaryRef:i,secondaryRef:o}=e;if(t.key!=="ArrowLeft"&&t.key!=="ArrowRight"&&t.key!=="ArrowUp"&&t.key!=="ArrowDown"&&t.key!=="Enter")return;let s=document.activeElement===o.current?"secondary":"primary";if(t.key==="Enter"){if(t.preventDefault(),s==="primary"){n();return}r();return}if(t.preventDefault(),t.key==="ArrowLeft"||t.key==="ArrowUp"){i.current?.focus();return}o.current?.focus()}function LI(e){let{onOpenChange:t,onPrimaryAction:n,open:r,primaryClassName:i,primaryLabel:o,primaryVariant:s="default",prompt:a,secondaryLabel:l,title:u}=e,c=(0,Ne.useRef)(null),d=(0,Ne.useRef)(null),h=(0,Ne.useCallback)(()=>{t(!1)},[t]);return(0,qe.jsx)(cst,{open:r,onOpenChange:t,children:(0,qe.jsxs)(yhe,{className:"max-w-[280px] gap-2.5 p-3 font-sans",onKeyDown:f=>ddt({event:f,onPrimaryAction:n,onSecondaryAction:h,primaryRef:c,secondaryRef:d}),onOpenAutoFocus:f=>{f.preventDefault(),c.current?.focus()},children:[(0,qe.jsxs)(vhe,{className:"gap-0 text-left",children:[(0,qe.jsx)(whe,{className:"sr-only",children:u}),(0,qe.jsx)(xhe,{className:"font-sans text-[13px] leading-5 text-foreground",children:a})]}),(0,qe.jsxs)(bhe,{className:"flex-row justify-end gap-1.5",children:[(0,qe.jsx)(She,{ref:c,size:"sm",variant:s,className:i,onClick:n,children:o}),(0,qe.jsx)(khe,{ref:d,size:"sm",variant:"secondary",onClick:h,children:l})]})]})})}function hdt(e){return typeof e.sqlLint=="function"}function fdt(e){let{disabled:t=!1,onBlockedInteraction:n,rowSearch:r,supportsFullTableSearch:i}=e,{closeRowSearch:o,isRowSearchOpen:s,openRowSearch:a,rowSearchInputRef:l,searchInput:u,setSearchInput:c}=r;(0,Ne.useEffect)(()=>{t&&o()},[o,t]);function d(){n?.()}function h(f){t&&(f.preventDefault(),d())}return i?(0,qe.jsxs)("div",{className:G("relative h-9 transition-[width] duration-200 ease-out",s?"w-56":"w-9"),"data-row-search-open":s?"true":"false",children:[(0,qe.jsx)(zn,{"aria-disabled":t||void 0,"aria-label":"Global search",variant:"outline",size:"icon",className:G("absolute right-0 top-0 min-w-9 w-auto px-2 transition-opacity duration-200",t&&"opacity-70",s&&"opacity-0 pointer-events-none"),onMouseDown:h,onClick:()=>{if(t){d();return}a()},children:(0,qe.jsx)(_h,{})}),(0,qe.jsx)("div",{"data-row-search-input-wrapper":!0,className:G("absolute right-0 top-1/2 -translate-y-1/2 origin-right transition-[opacity,transform] duration-200 ease-out will-change-transform w-56 z-10",s?"opacity-100 scale-x-100":"opacity-0 scale-x-0 pointer-events-none"),children:(0,qe.jsx)(Fi,{"aria-disabled":t||void 0,"aria-label":"Global search",className:G("h-9 w-full bg-background shadow-none",t&&"opacity-70"),onMouseDown:h,onBlur:f=>{t||f.currentTarget.value.trim().length>0||o()},onChange:f=>{if(t){d();return}c(f.currentTarget.value)},onClick:()=>{t&&d()},onFocus:f=>{t&&(d(),f.currentTarget.blur())},onKeyDown:f=>{if(t){d(),f.preventDefault();return}f.key==="Escape"&&(f.preventDefault(),o())},placeholder:"Global search",ref:l,readOnly:t,value:u})})]}):null}function pdt(e,t){if(e===1/0)return;let n=Number((BigInt(e)+BigInt(t)-BigInt(1))/BigInt(t));return Number.isSafeInteger(n)?n:Number.MAX_SAFE_INTEGER}function lG(e){let{activeRowSearchTerm:t,filter:n,pageSize:r,selectionScopeKey:i,sortingState:o}=e;return JSON.stringify({activeRowSearchTerm:t,filter:n,pageSize:r,sortingState:o,table:i??""})}function mdt(e,t){return e===1/0?!0:BigInt(e)>BigInt(t)}function Npe(e){return(0,Cpe.jsx)("div",{children:"This view was incorrectly loaded, please report this bug."})}function Mpe(e){let{adapter:t,llm:n,onEvent:r,theme:i}=e;return t?(0,ci.jsx)(Oqe,{adapter:t,llm:n,onEvent:r,theme:i,children:(0,ci.jsx)(ydt,{})}):(console.error("No adapter provided to Studio component"),(0,ci.jsx)("div",{children:"Error: No adapter provided"}))}var gdt={schema:l9e,table:$ct,console:U4e,sql:Fot,default:Npe};function ydt(){let{isNavigationOpen:e}=is(),{metadata:{activeTable:t},viewParam:n}=lo(),{errorState:r,hasResolvedIntrospection:i,isRefetching:o,refetch:s}=Hh(),a=G("flex flex-col w-full h-full font-sans"),l=gdt[n??"default"]??Npe,u=n==="table"&&t==null&&r!=null&&!i;return(0,ci.jsx)("div",{className:"ps",style:{width:"100%",height:"100%"},children:(0,ci.jsx)(Rje,{children:(0,ci.jsx)("div",{className:a,children:(0,ci.jsxs)("div",{className:"flex gap-0 bg-background relative min-h-full rounded-lg",children:[(0,ci.jsx)(HX,{mode:"wait",children:e&&(0,ci.jsx)(uP.div,{initial:{width:0,opacity:0},animate:{width:"auto",opacity:1},exit:{width:0,opacity:0},transition:{duration:.14},children:(0,ci.jsx)(Ho,{})})}),(0,ci.jsx)(uP.div,{className:"flex w-full bg-secondary flex-col p-px rounded-lg self-start h-full min-h-full max-h-full overflow-clip",transition:{duration:.14},children:u?(0,ci.jsx)(vdt,{errorState:r,isRetrying:o,onRetry:()=>{s()}}):(0,ci.jsx)(l,{})})]})})})})}function vdt(e){let{errorState:t,isRetrying:n,onRetry:r}=e;return(0,ci.jsxs)("div",{className:"flex h-full min-h-0 flex-col bg-background",children:[(0,ci.jsx)(f1,{}),(0,ci.jsx)("div",{className:"flex flex-1 items-center justify-center p-6",children:(0,ci.jsx)(XP,{className:"w-full max-w-2xl",description:"Studio could not load schema and table metadata. Retry after checking database permissions or connectivity.",isRetrying:n,message:t.message,onRetry:r,queryPreview:t.queryPreview,source:t.adapterSource,title:"Could not load schema metadata"})})]})}var t0e=L(H()),n0e=L(Zve());var Hft=["mysql","postgres","sqlite"];function e0e(e){return typeof e=="string"&&Hft.includes(e)}var $ft={mysql:WW,postgres:nD,sqlite:tU};function Kft(){let e=window.__STUDIO_CONFIG__;if(e&&e0e(e.adapter))return{adapter:e.adapter};throw new Error("Invalid Prisma Studio frontend config.")}function Yft(){let e=document.getElementById("root");if(e instanceof HTMLElement)return e;throw new Error("Prisma Studio root element was not found.")}var Qft=$ft[Kft().adapter],Gft=Qft({executor:uA({url:"/bff"})}),Xft=e=>{fetch("/telemetry",{body:JSON.stringify(e),method:"POST"}).catch(()=>{})};window.__PVCE__=!0;(0,n0e.createRoot)(Yft()).render((0,t0e.createElement)(Mpe,{adapter:Gft,onEvent:Xft}));
|
|
117
117
|
/*! Bundled license information:
|
|
118
118
|
|
|
119
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
120
|
+
(**
|
|
121
|
+
* @license React
|
|
122
|
+
* use-sync-external-store-shim.development.js
|
|
123
|
+
*
|
|
124
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the MIT license found in the
|
|
127
|
+
* LICENSE file in the root directory of this source tree.
|
|
128
|
+
*)
|
|
129
|
+
|
|
130
|
+
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
|
|
131
|
+
(**
|
|
132
|
+
* @license React
|
|
133
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
134
|
+
*
|
|
135
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the MIT license found in the
|
|
138
|
+
* LICENSE file in the root directory of this source tree.
|
|
139
|
+
*)
|
|
140
|
+
|
|
141
|
+
uuidv7/dist/index.js:
|
|
142
|
+
(**
|
|
143
|
+
* uuidv7: A JavaScript implementation of UUID version 7
|
|
144
|
+
*
|
|
145
|
+
* Copyright 2021-2025 LiosK
|
|
146
|
+
*
|
|
147
|
+
* @license Apache-2.0
|
|
148
|
+
* @packageDocumentation
|
|
149
|
+
*)
|
|
150
|
+
|
|
151
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
152
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
153
|
+
lucide-react/dist/esm/Icon.js:
|
|
154
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
155
|
+
lucide-react/dist/esm/icons/arrow-down.js:
|
|
156
|
+
lucide-react/dist/esm/icons/arrow-right.js:
|
|
157
|
+
lucide-react/dist/esm/icons/arrow-up-1-0.js:
|
|
158
|
+
lucide-react/dist/esm/icons/arrow-up.js:
|
|
159
|
+
lucide-react/dist/esm/icons/asterisk.js:
|
|
160
|
+
lucide-react/dist/esm/icons/between-vertical-start.js:
|
|
161
|
+
lucide-react/dist/esm/icons/calculator.js:
|
|
162
|
+
lucide-react/dist/esm/icons/check.js:
|
|
163
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
164
|
+
lucide-react/dist/esm/icons/chevron-left.js:
|
|
165
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
166
|
+
lucide-react/dist/esm/icons/chevron-up.js:
|
|
167
|
+
lucide-react/dist/esm/icons/chevrons-left.js:
|
|
168
|
+
lucide-react/dist/esm/icons/chevrons-right.js:
|
|
169
|
+
lucide-react/dist/esm/icons/circle-alert.js:
|
|
170
|
+
lucide-react/dist/esm/icons/circle-check-big.js:
|
|
171
|
+
lucide-react/dist/esm/icons/circle.js:
|
|
172
|
+
lucide-react/dist/esm/icons/code-xml.js:
|
|
173
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
174
|
+
lucide-react/dist/esm/icons/corner-down-left.js:
|
|
175
|
+
lucide-react/dist/esm/icons/database.js:
|
|
176
|
+
lucide-react/dist/esm/icons/file-code-corner.js:
|
|
177
|
+
lucide-react/dist/esm/icons/funnel.js:
|
|
178
|
+
lucide-react/dist/esm/icons/gallery-vertical-end.js:
|
|
179
|
+
lucide-react/dist/esm/icons/key-round.js:
|
|
180
|
+
lucide-react/dist/esm/icons/key.js:
|
|
181
|
+
lucide-react/dist/esm/icons/laptop.js:
|
|
182
|
+
lucide-react/dist/esm/icons/loader-circle.js:
|
|
183
|
+
lucide-react/dist/esm/icons/minus.js:
|
|
184
|
+
lucide-react/dist/esm/icons/moon.js:
|
|
185
|
+
lucide-react/dist/esm/icons/panel-left-close.js:
|
|
186
|
+
lucide-react/dist/esm/icons/panel-left-open.js:
|
|
187
|
+
lucide-react/dist/esm/icons/pin.js:
|
|
188
|
+
lucide-react/dist/esm/icons/play.js:
|
|
189
|
+
lucide-react/dist/esm/icons/plus.js:
|
|
190
|
+
lucide-react/dist/esm/icons/refresh-cw.js:
|
|
191
|
+
lucide-react/dist/esm/icons/save.js:
|
|
192
|
+
lucide-react/dist/esm/icons/search.js:
|
|
193
|
+
lucide-react/dist/esm/icons/sparkles.js:
|
|
194
|
+
lucide-react/dist/esm/icons/square-arrow-right.js:
|
|
195
|
+
lucide-react/dist/esm/icons/square.js:
|
|
196
|
+
lucide-react/dist/esm/icons/sun.js:
|
|
197
|
+
lucide-react/dist/esm/icons/table-2.js:
|
|
198
|
+
lucide-react/dist/esm/icons/triangle-alert.js:
|
|
199
|
+
lucide-react/dist/esm/icons/undo-2.js:
|
|
200
|
+
lucide-react/dist/esm/icons/x.js:
|
|
201
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
202
|
+
(**
|
|
203
|
+
* @license lucide-react v0.562.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*)
|
|
208
|
+
|
|
209
|
+
@tanstack/table-core/build/lib/index.mjs:
|
|
210
|
+
(**
|
|
211
|
+
* table-core
|
|
212
|
+
*
|
|
213
|
+
* Copyright (c) TanStack
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the MIT license found in the
|
|
216
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
217
|
+
*
|
|
218
|
+
* @license MIT
|
|
219
|
+
*)
|
|
220
|
+
|
|
221
|
+
@tanstack/react-table/build/lib/index.mjs:
|
|
222
|
+
(**
|
|
223
|
+
* react-table
|
|
224
|
+
*
|
|
225
|
+
* Copyright (c) TanStack
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the MIT license found in the
|
|
228
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
229
|
+
*
|
|
230
|
+
* @license MIT
|
|
231
|
+
*)
|
|
232
|
+
*/
|
|
233
|
+
/*! Bundled license information:
|
|
234
|
+
|
|
119
235
|
react/cjs/react.production.js:
|
|
120
236
|
(**
|
|
121
237
|
* @license React
|
|
@@ -187,122 +303,4 @@ chart.js/dist/chart.js:
|
|
|
187
303
|
* (c) 2025 Chart.js Contributors
|
|
188
304
|
* Released under the MIT License
|
|
189
305
|
*)
|
|
190
|
-
|
|
191
|
-
@prisma/studio-core/dist/ui/index.js:
|
|
192
|
-
(*! Bundled license information:
|
|
193
|
-
|
|
194
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
195
|
-
(**
|
|
196
|
-
* @license React
|
|
197
|
-
* use-sync-external-store-shim.development.js
|
|
198
|
-
*
|
|
199
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the MIT license found in the
|
|
202
|
-
* LICENSE file in the root directory of this source tree.
|
|
203
|
-
*)
|
|
204
|
-
|
|
205
|
-
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
|
|
206
|
-
(**
|
|
207
|
-
* @license React
|
|
208
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
209
|
-
*
|
|
210
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the MIT license found in the
|
|
213
|
-
* LICENSE file in the root directory of this source tree.
|
|
214
|
-
*)
|
|
215
|
-
|
|
216
|
-
uuidv7/dist/index.js:
|
|
217
|
-
(**
|
|
218
|
-
* uuidv7: A JavaScript implementation of UUID version 7
|
|
219
|
-
*
|
|
220
|
-
* Copyright 2021-2025 LiosK
|
|
221
|
-
*
|
|
222
|
-
* @license Apache-2.0
|
|
223
|
-
* @packageDocumentation
|
|
224
|
-
*)
|
|
225
|
-
|
|
226
|
-
lucide-react/dist/esm/shared/src/utils.js:
|
|
227
|
-
lucide-react/dist/esm/defaultAttributes.js:
|
|
228
|
-
lucide-react/dist/esm/Icon.js:
|
|
229
|
-
lucide-react/dist/esm/createLucideIcon.js:
|
|
230
|
-
lucide-react/dist/esm/icons/arrow-down.js:
|
|
231
|
-
lucide-react/dist/esm/icons/arrow-right.js:
|
|
232
|
-
lucide-react/dist/esm/icons/arrow-up-1-0.js:
|
|
233
|
-
lucide-react/dist/esm/icons/arrow-up.js:
|
|
234
|
-
lucide-react/dist/esm/icons/asterisk.js:
|
|
235
|
-
lucide-react/dist/esm/icons/between-vertical-start.js:
|
|
236
|
-
lucide-react/dist/esm/icons/calculator.js:
|
|
237
|
-
lucide-react/dist/esm/icons/check.js:
|
|
238
|
-
lucide-react/dist/esm/icons/chevron-down.js:
|
|
239
|
-
lucide-react/dist/esm/icons/chevron-left.js:
|
|
240
|
-
lucide-react/dist/esm/icons/chevron-right.js:
|
|
241
|
-
lucide-react/dist/esm/icons/chevron-up.js:
|
|
242
|
-
lucide-react/dist/esm/icons/chevrons-left.js:
|
|
243
|
-
lucide-react/dist/esm/icons/chevrons-right.js:
|
|
244
|
-
lucide-react/dist/esm/icons/circle-alert.js:
|
|
245
|
-
lucide-react/dist/esm/icons/circle-check-big.js:
|
|
246
|
-
lucide-react/dist/esm/icons/circle.js:
|
|
247
|
-
lucide-react/dist/esm/icons/code-xml.js:
|
|
248
|
-
lucide-react/dist/esm/icons/copy.js:
|
|
249
|
-
lucide-react/dist/esm/icons/corner-down-left.js:
|
|
250
|
-
lucide-react/dist/esm/icons/database.js:
|
|
251
|
-
lucide-react/dist/esm/icons/file-code-corner.js:
|
|
252
|
-
lucide-react/dist/esm/icons/funnel.js:
|
|
253
|
-
lucide-react/dist/esm/icons/gallery-vertical-end.js:
|
|
254
|
-
lucide-react/dist/esm/icons/key-round.js:
|
|
255
|
-
lucide-react/dist/esm/icons/key.js:
|
|
256
|
-
lucide-react/dist/esm/icons/laptop.js:
|
|
257
|
-
lucide-react/dist/esm/icons/loader-circle.js:
|
|
258
|
-
lucide-react/dist/esm/icons/minus.js:
|
|
259
|
-
lucide-react/dist/esm/icons/moon.js:
|
|
260
|
-
lucide-react/dist/esm/icons/panel-left-close.js:
|
|
261
|
-
lucide-react/dist/esm/icons/panel-left-open.js:
|
|
262
|
-
lucide-react/dist/esm/icons/pin.js:
|
|
263
|
-
lucide-react/dist/esm/icons/play.js:
|
|
264
|
-
lucide-react/dist/esm/icons/plus.js:
|
|
265
|
-
lucide-react/dist/esm/icons/refresh-cw.js:
|
|
266
|
-
lucide-react/dist/esm/icons/save.js:
|
|
267
|
-
lucide-react/dist/esm/icons/search.js:
|
|
268
|
-
lucide-react/dist/esm/icons/sparkles.js:
|
|
269
|
-
lucide-react/dist/esm/icons/square-arrow-right.js:
|
|
270
|
-
lucide-react/dist/esm/icons/square.js:
|
|
271
|
-
lucide-react/dist/esm/icons/sun.js:
|
|
272
|
-
lucide-react/dist/esm/icons/table-2.js:
|
|
273
|
-
lucide-react/dist/esm/icons/triangle-alert.js:
|
|
274
|
-
lucide-react/dist/esm/icons/undo-2.js:
|
|
275
|
-
lucide-react/dist/esm/icons/x.js:
|
|
276
|
-
lucide-react/dist/esm/lucide-react.js:
|
|
277
|
-
(**
|
|
278
|
-
* @license lucide-react v0.562.0 - ISC
|
|
279
|
-
*
|
|
280
|
-
* This source code is licensed under the ISC license.
|
|
281
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
282
|
-
*)
|
|
283
|
-
|
|
284
|
-
@tanstack/table-core/build/lib/index.mjs:
|
|
285
|
-
(**
|
|
286
|
-
* table-core
|
|
287
|
-
*
|
|
288
|
-
* Copyright (c) TanStack
|
|
289
|
-
*
|
|
290
|
-
* This source code is licensed under the MIT license found in the
|
|
291
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
292
|
-
*
|
|
293
|
-
* @license MIT
|
|
294
|
-
*)
|
|
295
|
-
|
|
296
|
-
@tanstack/react-table/build/lib/index.mjs:
|
|
297
|
-
(**
|
|
298
|
-
* react-table
|
|
299
|
-
*
|
|
300
|
-
* Copyright (c) TanStack
|
|
301
|
-
*
|
|
302
|
-
* This source code is licensed under the MIT license found in the
|
|
303
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
304
|
-
*
|
|
305
|
-
* @license MIT
|
|
306
|
-
*)
|
|
307
|
-
*)
|
|
308
306
|
*/
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.8.0-lossless.
|
|
2
|
+
"version": "7.8.0-lossless.16",
|
|
3
3
|
"name": "@prisma-lossless/cli",
|
|
4
4
|
"description": "Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",
|
|
5
5
|
"keywords": [
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"main": "build/index.js",
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
|
-
"url": "https://github.com/
|
|
34
|
+
"url": "https://github.com/alexbaretta/prisma.git",
|
|
35
35
|
"directory": "packages/cli"
|
|
36
36
|
},
|
|
37
|
-
"homepage": "https://
|
|
37
|
+
"homepage": "https://github.com/alexbaretta/prisma#readme",
|
|
38
38
|
"author": "Tim Suchanek <suchanek@prisma.io>",
|
|
39
|
-
"bugs": "https://github.com/
|
|
39
|
+
"bugs": "https://github.com/alexbaretta/prisma/issues",
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": "^20.19 || ^22.12 || >=24.0"
|
|
@@ -112,19 +112,18 @@
|
|
|
112
112
|
"@opentelemetry/api": "1.9.0",
|
|
113
113
|
"@opentelemetry/context-async-hooks": "2.1.0",
|
|
114
114
|
"@opentelemetry/sdk-trace-base": "2.1.0",
|
|
115
|
-
"@prisma-lossless/adapter-libsql": "7.8.0-lossless.
|
|
116
|
-
"@prisma-lossless/client": "7.8.0-lossless.
|
|
117
|
-
"@prisma-lossless/client-generator-registry": "7.8.0-lossless.
|
|
118
|
-
"@prisma-lossless/credentials-store": "7.8.0-lossless.
|
|
119
|
-
"@prisma-lossless/debug": "7.8.0-lossless.
|
|
120
|
-
"@prisma-lossless/dmmf": "7.8.0-lossless.
|
|
121
|
-
"@prisma-lossless/driver-adapter-utils": "7.8.0-lossless.
|
|
122
|
-
"@prisma-lossless/fetch-engine": "7.8.0-lossless.
|
|
123
|
-
"@prisma-lossless/generator": "7.8.0-lossless.
|
|
124
|
-
"@prisma-lossless/get-platform": "7.8.0-lossless.
|
|
125
|
-
"@prisma-lossless/internals": "7.8.0-lossless.
|
|
126
|
-
"@prisma/
|
|
127
|
-
"@prisma-lossless/migrate": "7.8.0-lossless.12",
|
|
115
|
+
"@prisma-lossless/adapter-libsql": "7.8.0-lossless.16",
|
|
116
|
+
"@prisma-lossless/client": "7.8.0-lossless.16",
|
|
117
|
+
"@prisma-lossless/client-generator-registry": "7.8.0-lossless.16",
|
|
118
|
+
"@prisma-lossless/credentials-store": "7.8.0-lossless.16",
|
|
119
|
+
"@prisma-lossless/debug": "7.8.0-lossless.16",
|
|
120
|
+
"@prisma-lossless/dmmf": "7.8.0-lossless.16",
|
|
121
|
+
"@prisma-lossless/driver-adapter-utils": "7.8.0-lossless.16",
|
|
122
|
+
"@prisma-lossless/fetch-engine": "7.8.0-lossless.16",
|
|
123
|
+
"@prisma-lossless/generator": "7.8.0-lossless.16",
|
|
124
|
+
"@prisma-lossless/get-platform": "7.8.0-lossless.16",
|
|
125
|
+
"@prisma-lossless/internals": "7.8.0-lossless.16",
|
|
126
|
+
"@prisma-lossless/migrate": "7.8.0-lossless.16",
|
|
128
127
|
"@swc/core": "1.11.5",
|
|
129
128
|
"@swc/jest": "0.2.37",
|
|
130
129
|
"@types/better-sqlite3": "7.6.12",
|
|
@@ -166,15 +165,16 @@
|
|
|
166
165
|
"ts-pattern": "5.6.2",
|
|
167
166
|
"typescript": "5.4.5",
|
|
168
167
|
"xdg-app-paths": "8.3.0",
|
|
169
|
-
"zod": "3.24.2"
|
|
168
|
+
"zod": "3.24.2",
|
|
169
|
+
"@prisma-lossless/management-api-sdk": "7.8.0-lossless.16"
|
|
170
170
|
},
|
|
171
171
|
"dependencies": {
|
|
172
|
-
"@prisma-lossless/config": "7.8.0-lossless.
|
|
173
|
-
"@prisma/
|
|
174
|
-
"@prisma-lossless/engines": "7.8.0-lossless.12",
|
|
175
|
-
"@prisma/studio-core": "0.27.3",
|
|
172
|
+
"@prisma-lossless/config": "7.8.0-lossless.16",
|
|
173
|
+
"@prisma-lossless/engines": "7.8.0-lossless.16",
|
|
176
174
|
"mysql2": "3.15.3",
|
|
177
|
-
"postgres": "3.4.7"
|
|
175
|
+
"postgres": "3.4.7",
|
|
176
|
+
"@prisma-lossless/dev": "7.8.0-lossless.16",
|
|
177
|
+
"@prisma-lossless/studio-core": "7.8.0-lossless.16"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"better-sqlite3": ">=9.0.0",
|
package/preinstall/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
"use strict";var Z=Object.create;var c=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var X=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var DD=(D,u)=>{for(var F in u)c(D,F,{get:u[F],enumerable:!0})},_=(D,u,F,r)=>{if(u&&typeof u=="object"||typeof u=="function")for(let e of X(u))!Q.call(D,e)&&e!==F&&c(D,e,{get:()=>u[e],enumerable:!(r=q(u,e))||r.enumerable});return D};var uD=(D,u,F)=>(F=D!=null?Z(J(D)):{},_(u||!D||!D.__esModule?c(F,"default",{value:D,enumerable:!0}):F,D)),FD=D=>_(c({},"__esModule",{value:!0}),D);var AD={};DD(AD,{main:()=>pD,printMessageAndExitIfUnsupportedNodeVersion:()=>Y});module.exports=FD(AD);var N=uD(require("node:process"));var d,v,w,$,I=!0;typeof process<"u"&&({FORCE_COLOR:d,NODE_DISABLE_COLORS:v,NO_COLOR:w,TERM:$}=process.env||{},I=process.stdout&&process.stdout.isTTY);var eD={enabled:!v&&w==null&&$!=="dumb"&&(d!=null&&d!=="0"||I)};function E(D,u){let F=new RegExp(`\\x1b\\[${u}m`,"g"),r=`\x1B[${D}m`,e=`\x1B[${u}m`;return function(C){return!eD.enabled||C==null?C:r+(~(""+C).indexOf(e)?C.replace(F,e+r):C)+e}}var x=E(0,0),j=E(1,22),lD=E(2,22),cD=E(3,23),xD=E(4,24),gD=E(7,27),hD=E(8,28),bD=E(9,29),dD=E(30,39),yD=E(31,39),SD=E(32,39),TD=E(33,39),OD=E(34,39),MD=E(35,39),RD=E(36,39),ND=E(37,39),_D=E(90,39),m=E(90,39),vD=E(40,49),wD=E(41,49),$D=E(42,49),ID=E(43,49),jD=E(44,49),kD=E(45,49),PD=E(46,49),GD=E(47,49);function y(D){return Number.isInteger(D)?D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141):!1}var k=(D=0)=>u=>`\x1B[${u+D}m`,P=(D=0)=>u=>`\x1B[${38+D};5;${u}m`,G=(D=0)=>(u,F,r)=>`\x1B[${38+D};2;${u};${F};${r}m`,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},UD=Object.keys(n.modifier),rD=Object.keys(n.color),tD=Object.keys(n.bgColor),HD=[...rD,...tD];function oD(){let D=new Map;for(let[u,F]of Object.entries(n)){for(let[r,e]of Object.entries(F))n[r]={open:`\x1B[${e[0]}m`,close:`\x1B[${e[1]}m`},F[r]=n[r],D.set(e[0],e[1]);Object.defineProperty(n,u,{value:F,enumerable:!1})}return Object.defineProperty(n,"codes",{value:D,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi=k(),n.color.ansi256=P(),n.color.ansi16m=G(),n.bgColor.ansi=k(10),n.bgColor.ansi256=P(10),n.bgColor.ansi16m=G(10),Object.defineProperties(n,{rgbToAnsi256:{value:(u,F,r)=>u===F&&F===r?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:u=>{let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[r]=F;r.length===3&&(r=[...r].map(C=>C+C).join(""));let e=Number.parseInt(r,16);return[e>>16&255,e>>8&255,e&255]},enumerable:!1},hexToAnsi256:{value:u=>n.rgbToAnsi256(...n.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,r,e;if(u>=232)F=((u-232)*10+8)/255,r=F,e=F;else{u-=16;let t=u%36;F=Math.floor(u/36)/5,r=Math.floor(t/6)/5,e=t%6/5}let C=Math.max(F,r,e)*2;if(C===0)return 30;let o=30+(Math.round(e)<<2|Math.round(r)<<1|Math.round(F));return C===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(u,F,r)=>n.ansi256ToAnsi(n.rgbToAnsi256(u,F,r)),enumerable:!1},hexToAnsi:{value:u=>n.ansi256ToAnsi(n.hexToAnsi256(u)),enumerable:!1}}),n}var CD=oD(),S=CD;var ED=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,L=["\x1B","\x9B"],g=D=>`${L[0]}[${D}m`,W=(D,u,F)=>{let r=[];D=[...D];for(let e of D){let C=e;e.includes(";")&&(e=e.split(";")[0][0]+"0");let o=S.codes.get(Number.parseInt(e,10));if(o){let t=D.indexOf(o.toString());t===-1?r.push(g(u?o:C)):D.splice(t,1)}else if(u){r.push(g(0));break}else r.push(g(C))}if(u&&(r=r.filter((e,C)=>r.indexOf(e)===C),F!==void 0)){let e=g(S.codes.get(Number.parseInt(F,10)));r=r.reduce((C,o)=>o===e?[o,...C]:[...C,o],[])}return r.join("")};function p(D,u,F){let r=[...D],e=[],C=typeof F=="number"?F:r.length,o=!1,t,i=0,a="";for(let[f,B]of r.entries()){let l=!1;if(L.includes(B)){let b=/\d[^m]*/.exec(D.slice(f,f+18));t=b&&b.length>0?b[0]:void 0,i<C&&(o=!0,t!==void 0&&e.push(t))}else o&&B==="m"&&(o=!1,l=!0);if(!o&&!l&&i++,!ED.test(B)&&y(B.codePointAt())&&(i++,typeof F!="number"&&C++),i>u&&i<=C)a+=B;else if(i===u&&!o&&t!==void 0)a=W(e);else if(i>=C){a+=W(e,!0,t);break}}return a}function T({onlyFirst:D=!1}={}){let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}var nD=T();function O(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(nD,"")}function V(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}function z(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}function U(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9776&&D<=9783||D>=9800&&D<=9811||D===9855||D>=9866&&D<=9871||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101631&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129673||D>=129679&&D<=129734||D>=129742&&D<=129756||D>=129759&&D<=129769||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}function iD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}function H(D,{ambiguousAsWide:u=!1}={}){return iD(D),z(D)||U(D)||u&&V(D)?2:1}var K=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var sD=new Intl.Segmenter,aD=/^\p{Default_Ignorable_Code_Point}$/u;function A(D,u={}){if(typeof D!="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:r=!1}=u;if(r||(D=O(D)),D.length===0)return 0;let e=0,C={ambiguousAsWide:!F};for(let{segment:o}of sD.segment(D)){let t=o.codePointAt(0);if(!(t<=31||t>=127&&t<=159)&&!(t>=8203&&t<=8207||t===65279)&&!(t>=768&&t<=879||t>=6832&&t<=6911||t>=7616&&t<=7679||t>=8400&&t<=8447||t>=65056&&t<=65071)&&!(t>=55296&&t<=57343)&&!(t>=65024&&t<=65039)&&!aD.test(o)){if(K().test(o)){e+=2;continue}e+=H(t,C)}}return e}function h(D,u,F){if(D.charAt(u)===" ")return u;let r=F?1:-1;for(let e=0;e<=3;e++){let C=u+e*r;if(D.charAt(C)===" ")return C}return u}function M(D,u,F={}){let{position:r="end",space:e=!1,preferTruncationOnSpace:C=!1}=F,{truncationCharacter:o="\u2026"}=F;if(typeof D!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof D}`);if(typeof u!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof u}`);if(u<1)return"";if(u===1)return o;let t=A(D);if(t<=u)return D;if(r==="start"){if(C){let i=h(D,t-u+1,!0);return o+p(D,i,t).trim()}return e===!0&&(o+=" "),o+p(D,t-u+A(o),t)}if(r==="middle"){e===!0&&(o=` ${o} `);let i=Math.floor(u/2);if(C){let a=h(D,i),f=h(D,t-(u-i)+1,!0);return p(D,0,a)+o+p(D,f,t).trim()}return p(D,0,i)+o+p(D,t-(u-i)+A(o),t)}if(r==="end"){if(C){let i=h(D,u-1);return p(D,0,i)+o}return e===!0&&(o=` ${o}`),p(D,0,u-A(o))+o}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`)}var s={topLeft:"\u250C",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",vertical:"\u2502",horizontal:"\u2500"};function BD(D){return D.split(`
|
|
2
|
-
`).reduce((u,F)=>Math.max(u,
|
|
3
|
-
`);t.length<F&&t.push(...new Array(F-t.length).fill(""));let
|
|
4
|
-
`);return m(
|
|
5
|
-
`+
|
|
6
|
-
`+o)}function
|
|
7
|
-
`),height:
|
|
1
|
+
"use strict";var DD=Object.create;var g=Object.defineProperty;var uD=Object.getOwnPropertyDescriptor;var FD=Object.getOwnPropertyNames;var eD=Object.getPrototypeOf,rD=Object.prototype.hasOwnProperty;var tD=(D,u)=>{for(var F in u)g(D,F,{get:u[F],enumerable:!0})},_=(D,u,F,e)=>{if(u&&typeof u=="object"||typeof u=="function")for(let r of FD(u))!rD.call(D,r)&&r!==F&&g(D,r,{get:()=>u[r],enumerable:!(e=uD(u,r))||e.enumerable});return D};var S=(D,u,F)=>(F=D!=null?DD(eD(D)):{},_(u||!D||!D.__esModule?g(F,"default",{value:D,enumerable:!0}):F,D)),oD=D=>_(g({},"__esModule",{value:!0}),D);var hD={};tD(hD,{findStockPrismaDependencies:()=>X,main:()=>lD,printMessageAndExitIfStockPrismaIsDeclared:()=>q,printMessageAndExitIfUnsupportedNodeVersion:()=>Q});module.exports=oD(hD);var w=S(require("node:fs")),Z=S(require("node:path")),A=S(require("node:process"));var T,v,I,P,$=!0;typeof process<"u"&&({FORCE_COLOR:T,NODE_DISABLE_COLORS:v,NO_COLOR:I,TERM:P}=process.env||{},$=process.stdout&&process.stdout.isTTY);var nD={enabled:!v&&I==null&&P!=="dumb"&&(T!=null&&T!=="0"||$)};function C(D,u){let F=new RegExp(`\\x1b\\[${u}m`,"g"),e=`\x1B[${D}m`,r=`\x1B[${u}m`;return function(n){return!nD.enabled||n==null?n:e+(~(""+n).indexOf(r)?n.replace(F,r+e):n)+r}}var x=C(0,0),j=C(1,22),bD=C(2,22),yD=C(3,23),SD=C(4,24),TD=C(7,27),OD=C(8,28),RD=C(9,29),MD=C(30,39),kD=C(31,39),ND=C(32,39),wD=C(33,39),_D=C(34,39),vD=C(35,39),ID=C(36,39),PD=C(37,39),$D=C(90,39),m=C(90,39),jD=C(40,49),WD=C(41,49),GD=C(42,49),LD=C(43,49),VD=C(44,49),zD=C(45,49),UD=C(46,49),JD=C(47,49);function O(D){return Number.isInteger(D)?D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141):!1}var W=(D=0)=>u=>`\x1B[${u+D}m`,G=(D=0)=>u=>`\x1B[${38+D};5;${u}m`,L=(D=0)=>(u,F,e)=>`\x1B[${38+D};2;${u};${F};${e}m`,E={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},qD=Object.keys(E.modifier),CD=Object.keys(E.color),ED=Object.keys(E.bgColor),XD=[...CD,...ED];function sD(){let D=new Map;for(let[u,F]of Object.entries(E)){for(let[e,r]of Object.entries(F))E[e]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},F[e]=E[e],D.set(r[0],r[1]);Object.defineProperty(E,u,{value:F,enumerable:!1})}return Object.defineProperty(E,"codes",{value:D,enumerable:!1}),E.color.close="\x1B[39m",E.bgColor.close="\x1B[49m",E.color.ansi=W(),E.color.ansi256=G(),E.color.ansi16m=L(),E.bgColor.ansi=W(10),E.bgColor.ansi256=G(10),E.bgColor.ansi16m=L(10),Object.defineProperties(E,{rgbToAnsi256:{value:(u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),enumerable:!1},hexToRgb:{value:u=>{let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(n=>n+n).join(""));let r=Number.parseInt(e,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:u=>E.rgbToAnsi256(...E.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,r;if(u>=232)F=((u-232)*10+8)/255,e=F,r=F;else{u-=16;let t=u%36;F=Math.floor(u/36)/5,e=Math.floor(t/6)/5,r=t%6/5}let n=Math.max(F,e,r)*2;if(n===0)return 30;let o=30+(Math.round(r)<<2|Math.round(e)<<1|Math.round(F));return n===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(u,F,e)=>E.ansi256ToAnsi(E.rgbToAnsi256(u,F,e)),enumerable:!1},hexToAnsi:{value:u=>E.ansi256ToAnsi(E.hexToAnsi256(u)),enumerable:!1}}),E}var iD=sD(),R=iD;var aD=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,z=["\x1B","\x9B"],h=D=>`${z[0]}[${D}m`,V=(D,u,F)=>{let e=[];D=[...D];for(let r of D){let n=r;r.includes(";")&&(r=r.split(";")[0][0]+"0");let o=R.codes.get(Number.parseInt(r,10));if(o){let t=D.indexOf(o.toString());t===-1?e.push(h(u?o:n)):D.splice(t,1)}else if(u){e.push(h(0));break}else e.push(h(n))}if(u&&(e=e.filter((r,n)=>e.indexOf(r)===n),F!==void 0)){let r=h(R.codes.get(Number.parseInt(F,10)));e=e.reduce((n,o)=>o===r?[o,...n]:[...n,o],[])}return e.join("")};function p(D,u,F){let e=[...D],r=[],n=typeof F=="number"?F:e.length,o=!1,t,s=0,a="";for(let[f,B]of e.entries()){let l=!1;if(z.includes(B)){let y=/\d[^m]*/.exec(D.slice(f,f+18));t=y&&y.length>0?y[0]:void 0,s<n&&(o=!0,t!==void 0&&r.push(t))}else o&&B==="m"&&(o=!1,l=!0);if(!o&&!l&&s++,!aD.test(B)&&O(B.codePointAt())&&(s++,typeof F!="number"&&n++),s>u&&s<=n)a+=B;else if(s===u&&!o&&t!==void 0)a=V(r);else if(s>=n){a+=V(r,!0,t);break}}return a}function M({onlyFirst:D=!1}={}){let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}var BD=M();function k(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(BD,"")}function U(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}function J(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}function Y(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9776&&D<=9783||D>=9800&&D<=9811||D===9855||D>=9866&&D<=9871||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101631&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129673||D>=129679&&D<=129734||D>=129742&&D<=129756||D>=129759&&D<=129769||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}function pD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}function H(D,{ambiguousAsWide:u=!1}={}){return pD(D),J(D)||Y(D)||u&&U(D)?2:1}var K=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var fD=new Intl.Segmenter,cD=/^\p{Default_Ignorable_Code_Point}$/u;function c(D,u={}){if(typeof D!="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=u;if(e||(D=k(D)),D.length===0)return 0;let r=0,n={ambiguousAsWide:!F};for(let{segment:o}of fD.segment(D)){let t=o.codePointAt(0);if(!(t<=31||t>=127&&t<=159)&&!(t>=8203&&t<=8207||t===65279)&&!(t>=768&&t<=879||t>=6832&&t<=6911||t>=7616&&t<=7679||t>=8400&&t<=8447||t>=65056&&t<=65071)&&!(t>=55296&&t<=57343)&&!(t>=65024&&t<=65039)&&!cD.test(o)){if(K().test(o)){r+=2;continue}r+=H(t,n)}}return r}function d(D,u,F){if(D.charAt(u)===" ")return u;let e=F?1:-1;for(let r=0;r<=3;r++){let n=u+r*e;if(D.charAt(n)===" ")return n}return u}function N(D,u,F={}){let{position:e="end",space:r=!1,preferTruncationOnSpace:n=!1}=F,{truncationCharacter:o="\u2026"}=F;if(typeof D!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof D}`);if(typeof u!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof u}`);if(u<1)return"";if(u===1)return o;let t=c(D);if(t<=u)return D;if(e==="start"){if(n){let s=d(D,t-u+1,!0);return o+p(D,s,t).trim()}return r===!0&&(o+=" "),o+p(D,t-u+c(o),t)}if(e==="middle"){r===!0&&(o=` ${o} `);let s=Math.floor(u/2);if(n){let a=d(D,s),f=d(D,t-(u-s)+1,!0);return p(D,0,a)+o+p(D,f,t).trim()}return p(D,0,s)+o+p(D,t-(u-s)+c(o),t)}if(e==="end"){if(n){let s=d(D,u-1);return p(D,0,s)+o}return r===!0&&(o=` ${o}`),p(D,0,u-c(o))+o}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${e}`)}var i={topLeft:"\u250C",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",vertical:"\u2502",horizontal:"\u2500"};function mD(D){return D.split(`
|
|
2
|
+
`).reduce((u,F)=>Math.max(u,c(F)),0)+2}function b({title:D,width:u,height:F,str:e,horizontalPadding:r}){r=r||0,u=u||0,F=F||0,u=Math.max(u,mD(e)+r*2);let n=D?m(i.topLeft+i.horizontal)+" "+x(j(D))+" "+m(i.horizontal.repeat(u-D.length-2-3)+i.topRight)+x():m(i.topLeft+i.horizontal)+m(i.horizontal.repeat(u-3)+i.topRight),o=i.bottomLeft+i.horizontal.repeat(u-2)+i.bottomRight,t=e.split(`
|
|
3
|
+
`);t.length<F&&t.push(...new Array(F-t.length).fill(""));let s=t.slice(-F).map(a=>{let f=Math.min(c(a),u),B=Math.max(u-f-2,0);return`${m(i.vertical)}${" ".repeat(r)}${x(N(a,u-2))}${" ".repeat(B-r)}${m(i.vertical)}`}).join(`
|
|
4
|
+
`);return m(n+`
|
|
5
|
+
`+s+`
|
|
6
|
+
`+o)}var AD=["dependencies","devDependencies","optionalDependencies","peerDependencies"];function lD(){q(A.default.env.INIT_CWD),Q(A.default.versions.node)}function q(D){if(!D)return;let u=Z.default.join(D,"package.json");if(!w.default.existsSync(u))return;let F=gD(u),e=X(F);if(e.length===0)return;let r=["prisma-lossless cannot be installed with stock Prisma packages.",`Remove ${e.join(", ")} from ${u}.`,"Use prisma-lossless and @prisma-lossless/* packages instead."],n=b({str:r.join(`
|
|
7
|
+
`),height:r.length,width:72,horizontalPadding:4});console.error(n),A.default.exit(1)}function X(D){let u=new Set;for(let F of AD)for(let e of Object.keys(D[F]??{}))(e==="prisma"||e.startsWith("@prisma/"))&&u.add(e);return[...u].sort()}function gD(D){let u=JSON.parse(w.default.readFileSync(D,"utf-8"));return typeof u!="object"||u===null||Array.isArray(u)?{}:u}function xD(D){return D.split(".").slice(0,2).map(u=>parseInt(u,10))}function Q(D){let[u,F]=xD(D),e={20:19,22:12,24:0},r=e[u];if(!(typeof r<"u"&&F>=r)){let o=Object.entries(e).map(([B,l])=>`${B}.${l}+`).join(", "),t=Math.max(...Object.keys(e).map(B=>Number(B))),s=u>t,a=[`Prisma only supports Node.js versions ${o}.`,s?"Please use a supported Node.js version.":"Please upgrade your Node.js version."],f=b({str:a.join(`
|
|
8
|
+
`),height:a.length,width:48,horizontalPadding:4});s?console.warn(f):(console.error(f),A.default.exit(1))}}0&&(module.exports={findStockPrismaDependencies,main,printMessageAndExitIfStockPrismaIsDeclared,printMessageAndExitIfUnsupportedNodeVersion});
|