efficient-shell 15.2.0 → 15.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/{Browser-42QAXKYW.js → Browser-QK2CCZTR.js} +19 -19
  2. package/dist/Calculator-DB4U2KXJ.js +29 -0
  3. package/dist/{CurrencyConverter-VFTDSYQ3.js → CurrencyConverter-D5MWU2M2.js} +9 -9
  4. package/dist/{Files-OAVWF6EW.js → Files-6WMIQAVD.js} +74 -74
  5. package/dist/{Notepad-LNNSVEFG.js → Notepad-FKSRP7R6.js} +9 -9
  6. package/dist/PdfViewer-AIAVQYZ6.js +1 -0
  7. package/dist/PomodoroTimer-U62N64F6.js +91 -0
  8. package/dist/{Preview-GDNUQKGN.js → Preview-2GS2CWRA.js} +43 -43
  9. package/dist/Sidebar-KAALEIIX.js +44 -0
  10. package/dist/{Stock-NNDDNQBJ.js → Stock-DUXAE4DY.js} +3 -3
  11. package/dist/{Weather-NGQALCXO.js → Weather-XXPZTLY7.js} +22 -22
  12. package/dist/{WorldClock-LX4BQPZJ.js → WorldClock-6ANSNTXU.js} +7 -7
  13. package/dist/ai/index.js +40 -40
  14. package/dist/apps/index.js +1 -1
  15. package/dist/bin/browser-check.js +1 -1
  16. package/dist/bin/media-host-check.js +1 -1
  17. package/dist/bin/ui-check.js +1 -1
  18. package/dist/charts/ChordChart.js +1 -1
  19. package/dist/charts/FlowChart.js +1 -1
  20. package/dist/charts/RadarChart.js +1 -1
  21. package/dist/charts/SankeyChart.js +1 -1
  22. package/dist/charts/SpecChart.js +1 -1
  23. package/dist/charts/SunburstChart.js +1 -1
  24. package/dist/charts/TreemapChart.js +1 -1
  25. package/dist/{chunk-JVITCC65.js → chunk-26ZOXLE6.js} +1 -1
  26. package/dist/chunk-2RLUG5ID.js +1 -0
  27. package/dist/{chunk-ZC2FZLYX.js → chunk-345FP3IX.js} +4 -4
  28. package/dist/chunk-35Q7ZMQD.js +8 -0
  29. package/dist/{chunk-ZYWLX5EK.js → chunk-3AVXNZY5.js} +1 -1
  30. package/dist/chunk-3FININUU.js +1 -0
  31. package/dist/chunk-3H476JWK.js +4 -0
  32. package/dist/chunk-422SFOQU.js +28 -0
  33. package/dist/{chunk-QQ6TGD7K.js → chunk-4KPOTWYF.js} +47 -47
  34. package/dist/{chunk-TWSROAS7.js → chunk-4MDSZSLC.js} +1 -1
  35. package/dist/{chunk-DXTRHNP4.js → chunk-4NTAZLT3.js} +2 -2
  36. package/dist/{chunk-TVMDDQJP.js → chunk-52RSW6TO.js} +1 -1
  37. package/dist/{chunk-26I3OTGP.js → chunk-5B7CLXHC.js} +1 -1
  38. package/dist/{chunk-SXNT73VT.js → chunk-5LB7LCEG.js} +19 -19
  39. package/dist/{chunk-CMC25URA.js → chunk-5LG6TOV6.js} +6 -6
  40. package/dist/{chunk-IIUFCTT6.js → chunk-5OXQ5M5S.js} +1 -1
  41. package/dist/{chunk-AVUH35GW.js → chunk-5QHNDAZ6.js} +1 -1
  42. package/dist/{chunk-52YTUQW3.js → chunk-5QRHQCRG.js} +1 -1
  43. package/dist/{chunk-T43ATI2N.js → chunk-5RCKE4X2.js} +6 -6
  44. package/dist/{chunk-LFGJUJRZ.js → chunk-5Y2JZL3I.js} +13 -13
  45. package/dist/{chunk-QIAJ3QNV.js → chunk-62UNBUTU.js} +1 -1
  46. package/dist/chunk-A4ROXNUF.js +2 -0
  47. package/dist/{chunk-PAD65HG7.js → chunk-ABIWAS5K.js} +1 -1
  48. package/dist/{chunk-3TVMQCYR.js → chunk-AKEED2BC.js} +1 -1
  49. package/dist/chunk-APFDZ2HG.js +1 -0
  50. package/dist/{chunk-S3F2TY7X.js → chunk-ASNRA3ZL.js} +1 -1
  51. package/dist/{chunk-QI2LJ7OL.js → chunk-B4Y5NGHR.js} +9 -9
  52. package/dist/{chunk-ZZKBCNK6.js → chunk-BTMZ5MUY.js} +11 -11
  53. package/dist/chunk-C4TG6XS4.js +19 -0
  54. package/dist/{chunk-NXPIX7NO.js → chunk-C75ICYHF.js} +1 -1
  55. package/dist/{chunk-JJ5W4BRW.js → chunk-CGX2IGQO.js} +1 -1
  56. package/dist/{chunk-2MUZFHZW.js → chunk-CIZAUBWA.js} +6 -6
  57. package/dist/{chunk-5JQCWXIQ.js → chunk-CMEPDSYB.js} +1 -1
  58. package/dist/{chunk-JHEHW5BE.js → chunk-D7MRZZVV.js} +3 -3
  59. package/dist/chunk-DEV3ZHPP.js +8 -0
  60. package/dist/chunk-DN6NGGP5.js +8 -0
  61. package/dist/{chunk-OEZC5N6J.js → chunk-E43VGO66.js} +1 -1
  62. package/dist/{chunk-7ZJ7VK2N.js → chunk-EJ5NIA42.js} +1 -1
  63. package/dist/{chunk-M5JEYZ3A.js → chunk-EJMCK7E3.js} +4 -4
  64. package/dist/{chunk-GBCLIWUQ.js → chunk-EULBBS5L.js} +1 -1
  65. package/dist/{chunk-7FYTL6SD.js → chunk-FAPZFMS3.js} +1 -1
  66. package/dist/chunk-FGP2IOFN.js +15 -0
  67. package/dist/{chunk-ABRCV7DQ.js → chunk-FHTL7ZZR.js} +1 -1
  68. package/dist/{chunk-KWBYE5MN.js → chunk-GGNQEZ2D.js} +8 -8
  69. package/dist/{chunk-NBV3XK3Q.js → chunk-GL3D5EOZ.js} +2 -2
  70. package/dist/{chunk-VQ3OSYTA.js → chunk-GUOAPXUY.js} +4 -4
  71. package/dist/{chunk-IJWRJPX6.js → chunk-HU5FTTW2.js} +7 -7
  72. package/dist/{chunk-SKPAIZSC.js → chunk-INQQUAIO.js} +4 -4
  73. package/dist/{chunk-HMTZP7NJ.js → chunk-JA4I5BEB.js} +1 -1
  74. package/dist/{chunk-ZQWKVLSY.js → chunk-JGN27L4Q.js} +12 -12
  75. package/dist/{chunk-BN37AISA.js → chunk-JIHDUZJZ.js} +3 -3
  76. package/dist/chunk-JRKD7SD3.js +24 -0
  77. package/dist/{chunk-FYHUCRLU.js → chunk-JWS77LQE.js} +1 -1
  78. package/dist/{chunk-6F3XQJR6.js → chunk-KERCZSIA.js} +1 -1
  79. package/dist/{chunk-ECZEJ6BE.js → chunk-KIIZNION.js} +6 -6
  80. package/dist/{chunk-L664TIIV.js → chunk-KJ4CHRRC.js} +7 -7
  81. package/dist/{chunk-VIBGF2HJ.js → chunk-L2WQOJ3T.js} +1 -1
  82. package/dist/{chunk-3CIJFWB4.js → chunk-LFUXWZV7.js} +1 -1
  83. package/dist/{chunk-OCKOZV46.js → chunk-LGVVXYW7.js} +1 -1
  84. package/dist/{chunk-ZS36DB4X.js → chunk-MF7OELXP.js} +2 -2
  85. package/dist/{chunk-OCITNQGF.js → chunk-MQNSKFZY.js} +10 -10
  86. package/dist/{chunk-M6ODRWTM.js → chunk-NJY4HPNB.js} +5 -5
  87. package/dist/{chunk-MDGM5NUO.js → chunk-NM7U42KL.js} +9 -9
  88. package/dist/{chunk-2QUACZ6O.js → chunk-NZNPU2GD.js} +1 -1
  89. package/dist/{chunk-QBR73AJX.js → chunk-OEWBWKKD.js} +11 -11
  90. package/dist/{chunk-LKNDLXL3.js → chunk-OHWP24DL.js} +1 -1
  91. package/dist/{chunk-VNKLIWNQ.js → chunk-OK2J6WSC.js} +1 -1
  92. package/dist/{chunk-3HPCQMYH.js → chunk-P56YLT73.js} +12 -12
  93. package/dist/{chunk-VTYALYW4.js → chunk-PCNFY6EK.js} +12 -12
  94. package/dist/{chunk-FM5ASDVN.js → chunk-PM6HY5BH.js} +1 -1
  95. package/dist/{chunk-ABAUJLI4.js → chunk-PO2KNVCC.js} +1 -1
  96. package/dist/chunk-PRN2QDX6.js +7 -0
  97. package/dist/{chunk-7M7GKYHS.js → chunk-QE2F4YQQ.js} +9 -9
  98. package/dist/{chunk-QJY52ZHG.js → chunk-QSFQTMWV.js} +1 -1
  99. package/dist/{chunk-YVI2XJCB.js → chunk-QSOBETAI.js} +5 -5
  100. package/dist/chunk-QXEZBS3H.js +6 -0
  101. package/dist/{chunk-32HTOZFT.js → chunk-QYOIS4BN.js} +3 -3
  102. package/dist/chunk-R6YVKP6D.js +3 -0
  103. package/dist/chunk-R72SBGYR.js +9 -0
  104. package/dist/{chunk-QMUW35QL.js → chunk-RIA6KKIB.js} +6 -6
  105. package/dist/{chunk-D3L2QCGF.js → chunk-RTZFWH5U.js} +1 -1
  106. package/dist/{chunk-HVWRF7N4.js → chunk-S6C7X6CR.js} +19 -19
  107. package/dist/{chunk-7T6NWAPG.js → chunk-SJUEGYT2.js} +1 -1
  108. package/dist/{chunk-JE4BGFDJ.js → chunk-TAB3K2WF.js} +1 -1
  109. package/dist/{chunk-4H4HJIWI.js → chunk-TAIH2VIW.js} +1 -1
  110. package/dist/{chunk-NTVACRKD.js → chunk-TALQMTCE.js} +3 -3
  111. package/dist/{chunk-KKZXGWSX.js → chunk-TEYG2W7A.js} +2 -2
  112. package/dist/{chunk-FZZBBZXZ.js → chunk-TMXMIRWG.js} +8 -8
  113. package/dist/{chunk-J43RRDEP.js → chunk-TSZPGDU3.js} +1 -1
  114. package/dist/{chunk-HKXP3JJ5.js → chunk-TTUUXGEW.js} +1 -1
  115. package/dist/{chunk-T65TAQLW.js → chunk-TXGVSWH6.js} +13 -13
  116. package/dist/{chunk-UA7SWROJ.js → chunk-U7PA4KNZ.js} +3 -3
  117. package/dist/{chunk-2M3KB4RH.js → chunk-UYM7562M.js} +2 -2
  118. package/dist/chunk-V4BA3FGC.js +14 -0
  119. package/dist/{chunk-JFTLFF52.js → chunk-V62FEHS4.js} +3 -3
  120. package/dist/{chunk-PYGXSGXC.js → chunk-VB4ZPIZF.js} +1 -1
  121. package/dist/{chunk-K3OLOLFT.js → chunk-VHBRVW5O.js} +3 -3
  122. package/dist/{chunk-5R25GNE2.js → chunk-WNHDYTTI.js} +2 -2
  123. package/dist/chunk-WR3SULZW.js +13 -0
  124. package/dist/{chunk-WHHHECBC.js → chunk-WSQ73CRR.js} +2 -2
  125. package/dist/{chunk-BMZL5BHA.js → chunk-XMBMI27I.js} +1 -1
  126. package/dist/{chunk-HBAATSUS.js → chunk-XSMVWJV3.js} +1 -1
  127. package/dist/{chunk-M4NT6HGJ.js → chunk-YEDAXZYO.js} +1 -1
  128. package/dist/{chunk-ILH7RDAD.js → chunk-YGNJIOOH.js} +10 -10
  129. package/dist/{chunk-C5Q4AKXO.js → chunk-YXMXATYP.js} +1 -1
  130. package/dist/data/DataTable.js +1 -1
  131. package/dist/data/EntityList.js +1 -1
  132. package/dist/data/Gantt.js +1 -1
  133. package/dist/data/ListLoadError.js +1 -1
  134. package/dist/data/ListToolbar.js +1 -1
  135. package/dist/data/ResizableTable.js +1 -1
  136. package/dist/data/statusColumn.js +1 -1
  137. package/dist/forms/AlignmentGrid.js +1 -1
  138. package/dist/forms/BorderInput.js +1 -1
  139. package/dist/forms/BrandAssetEditor.js +1 -1
  140. package/dist/forms/Button.js +1 -1
  141. package/dist/forms/ColorPicker.js +1 -1
  142. package/dist/forms/ComposerAttachments.js +1 -1
  143. package/dist/forms/CornersInput.js +1 -1
  144. package/dist/forms/DatePicker.js +1 -1
  145. package/dist/forms/DateRangePicker.js +1 -1
  146. package/dist/forms/DisplayChips.js +1 -1
  147. package/dist/forms/FilePicker.js +1 -1
  148. package/dist/forms/IconButton.js +1 -1
  149. package/dist/forms/IconPicker.js +1 -1
  150. package/dist/forms/Input.js +1 -1
  151. package/dist/forms/InputNumber.js +1 -1
  152. package/dist/forms/LinkPicker.js +1 -1
  153. package/dist/forms/MediaLibrary.js +1 -1
  154. package/dist/forms/MediaUploadField.js +1 -1
  155. package/dist/forms/MediaUploadGrid.js +1 -1
  156. package/dist/forms/MediaUsedInList.js +1 -1
  157. package/dist/forms/NumericKeypad.js +1 -1
  158. package/dist/forms/PictureTiles.js +1 -1
  159. package/dist/forms/PositionInput.js +1 -1
  160. package/dist/forms/RenameField.js +1 -1
  161. package/dist/forms/SearchInput.js +1 -1
  162. package/dist/forms/Segmented.js +1 -1
  163. package/dist/forms/Select.js +1 -1
  164. package/dist/forms/SidesInput.js +1 -1
  165. package/dist/forms/Slider.js +1 -1
  166. package/dist/forms/Snippet.js +1 -1
  167. package/dist/forms/SplitButton.js +1 -1
  168. package/dist/forms/TagInput.js +1 -1
  169. package/dist/forms/TextToolbar.js +1 -1
  170. package/dist/forms/UnitMenu.js +1 -1
  171. package/dist/forms/WidthsBar.js +1 -1
  172. package/dist/index.js +359 -359
  173. package/dist/map/index.js +5 -5
  174. package/dist/page-tabs/index.js +5 -5
  175. package/dist/pdf/index.js +1 -1
  176. package/dist/routine-index.json +1 -1
  177. package/dist/shell/AppUpdateBanner.js +1 -1
  178. package/dist/shell/ColoredBadge.js +1 -1
  179. package/dist/shell/ConfirmDialog.js +1 -1
  180. package/dist/shell/ContextMenu.js +1 -1
  181. package/dist/shell/Dialog.js +1 -1
  182. package/dist/shell/Drawer.js +1 -1
  183. package/dist/shell/DropdownMenu.js +1 -1
  184. package/dist/shell/EditableGrid.js +1 -1
  185. package/dist/shell/FloatingBar.js +1 -1
  186. package/dist/shell/GlobalSearch.js +1 -1
  187. package/dist/shell/HelpCenter.js +1 -1
  188. package/dist/shell/IconRail.js +1 -1
  189. package/dist/shell/ImageLightbox.js +1 -1
  190. package/dist/shell/ItemCount.js +1 -1
  191. package/dist/shell/LanguageSelect.js +1 -1
  192. package/dist/shell/Markdown.js +1 -1
  193. package/dist/shell/Popover.js +1 -1
  194. package/dist/shell/PopupMenu.js +1 -1
  195. package/dist/shell/ResizeHandle.js +1 -1
  196. package/dist/shell/SearchableSelect.js +1 -1
  197. package/dist/shell/SettingReset.js +1 -1
  198. package/dist/shell/SidebarLayout.js +1 -1
  199. package/dist/shell/SidebarNav.js +1 -1
  200. package/dist/shell/SortableList.js +1 -1
  201. package/dist/shell/StatusBadge.js +1 -1
  202. package/dist/shell/Tabs.js +1 -1
  203. package/dist/shell/Tooltip.js +1 -1
  204. package/dist/shell/TopNav.js +1 -1
  205. package/dist/shell/TransferProgress.js +1 -1
  206. package/dist/shell/Tree.js +1 -1
  207. package/dist/shell/discardGuard.js +1 -1
  208. package/dist/telemetry/index.js +1 -1
  209. package/dist/templates/AuthScreen.js +1 -1
  210. package/dist/templates/ChatTemplate.js +1 -1
  211. package/dist/templates/CheckoutTemplate.js +1 -1
  212. package/dist/templates/DashboardTemplate.js +1 -1
  213. package/dist/templates/DataTablePage.js +1 -1
  214. package/dist/templates/EmailTemplate.js +1 -1
  215. package/dist/templates/ErrorBoundary.js +1 -1
  216. package/dist/templates/FormLayoutPage.js +1 -1
  217. package/dist/templates/GalleryTemplate.js +1 -1
  218. package/dist/ui/index.js +1 -1
  219. package/dist/value-index.json +1 -1
  220. package/dist/version.js +1 -1
  221. package/package.json +1 -1
  222. package/dist/Calculator-C7APPCLE.js +0 -29
  223. package/dist/PdfViewer-ADPTYOAO.js +0 -1
  224. package/dist/PomodoroTimer-AGSHX2JO.js +0 -91
  225. package/dist/Sidebar-SWLVNJ6L.js +0 -44
  226. package/dist/chunk-7QFXUNFA.js +0 -8
  227. package/dist/chunk-7YJBWOQG.js +0 -2
  228. package/dist/chunk-CIT4YPEO.js +0 -8
  229. package/dist/chunk-DTZDOXK3.js +0 -19
  230. package/dist/chunk-EQDYCSUX.js +0 -13
  231. package/dist/chunk-IBPJJO4N.js +0 -28
  232. package/dist/chunk-M6T7N4SN.js +0 -14
  233. package/dist/chunk-MQERW3QR.js +0 -3
  234. package/dist/chunk-NJJG2VAW.js +0 -24
  235. package/dist/chunk-QVGASI5H.js +0 -9
  236. package/dist/chunk-QZYV4TDD.js +0 -1
  237. package/dist/chunk-S6IW2F4J.js +0 -8
  238. package/dist/chunk-TB7BO2XS.js +0 -6
  239. package/dist/chunk-UMLXFQVC.js +0 -1
  240. package/dist/chunk-XQMVECQM.js +0 -15
  241. package/dist/chunk-YX4QGW7Z.js +0 -4
  242. package/dist/chunk-Z2MP46QJ.js +0 -1
  243. package/dist/chunk-ZUQ72WER.js +0 -7
  244. /package/dist/{chunk-LPQQNPH5.js → chunk-TEQ5ZPAL.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as e}from"module";import{join as n}from"path";import{existsSync as t,readFileSync as i,readdirSync as r}from"fs";function o(t){return function(t,i){for(const r of[n(process.cwd(),"package.json"),i])try{return e(r)(t)}catch{}throw new Error(`${t} is not installed; add it to this repository's devDependencies`)}("typescript",t)}var s=/[.+^$()|[\]\\]/g;function a(e){let n="",t=0;for(let i=0;i<e.length;i++){const r=e[i];"*"===r?"*"===e[i+1]?"/"===e[i+2]?(n+="(?:[^/]+/)*",i+=2):(n+=".*",i+=1):n+="[^/]*":"?"===r?n+="[^/]":"{"===r?(n+="(?:",t+=1):"}"===r&&t>0?(n+=")",t-=1):n+=","===r&&t>0?"|":r.replace(s,"\\$&")}if(0!==t)throw new Error(`unbalanced { in glob "${e}"`);return new RegExp(`^${n}$`)}function g(e){const n=e.map(a);return e=>n.some(n=>n.test(e))}var c=new Set(["node_modules",".git"]),l=new Set(["dist","coverage",".next",".turbo"]);function d(e){const n=e.search(/[*?{]/),t=-1===n?e:e.slice(0,n),i=t.lastIndexOf("/");return-1===i?"":t.slice(0,i)}function h(e,t){const i=g(t),o=[...new Set(t.map(d))].sort(),s=o.filter(e=>!o.some(n=>n!==e&&(""===n||e.startsWith(`${n}/`)))),a=new Set,h=t=>{let o;try{o=r(n(e,t),{withFileTypes:!0})}catch{return}for(const e of o){const n=t?`${t}/${e.name}`:e.name;e.isDirectory()?c.has(e.name)||""===t&&l.has(e.name)||h(n):e.isFile()&&i(n)&&a.add(n)}};for(const e of s)h(e);return[...a].sort(u)}var u=(e,n)=>e<n?-1:e>n?1:0;Object.keys({fast:120,base:160}).map(e=>`--motion-${e}`).join(", "),Object.keys({body:400,control:500,heading:600,figure:700}).map(e=>`--weight-${e}`).join(", "),Object.keys({hairline:1,strong:2,accent:4}).map(e=>`--border-${e}`).join(", "),[2,4,8,12,16,20,24,32,40,48].join("/");var p=(...e)=>["origin",...e].join("-");new RegExp(["(?:transformOrigin|transform-origin)\\s*[:=]\\s*[\"'`]?\\s*(?:top left|left top|0 0|0% 0%|0px 0px)(?![\\w%-])",`(?<![\\w-])!?${p("top","left")}(?![\\w-])`,`(?<![\\w-])!?${p("\\[0_0\\]")}`].join("|"));var f=(...e)=>e.join(""),m="3xs|2xs|xs|sm|base|lg|xl|[2-9]xl";new RegExp(`(?<![\\w-])!?(?:${f("te","xt-")}(?:(?:${m})(?:\\/[\\w.()-]+)?|\\[(?:length:)?[\\d.]+(?:px|rem|em)\\])|${f("fo","nt-")}(?:thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\\[\\d+\\]))(?![\\w-])`),new RegExp(`(?<![\\w-])${f("round","ed")}(?:-(?:full|sm|md|lg|xl|[23]xl|[trblse]|tl|tr|br|bl|\\([^)]*\\)|\\[[^\\]]*\\]))*(?![\\w-])`);new RegExp(`(?<![\\w-])${f("b","g-")}(?!(?:none|transparent|current|inherit|cover|contain|auto|fixed|local|scroll|center|top|bottom|left|right|repeat|no-repeat|clip|origin|blend|linear|radial|conic|gradient|position|size|image)(?![\\w]))[\\w\\[(#][^\\s'"\`]*`);var w=`${m}|left|center|right|justify|start|end|wrap|nowrap|balance|pretty|ellipsis|clip|transparent|current|inherit|shadow`;new RegExp(`(?<![\\w-])${f("te","xt-")}(?!(?:${w})(?![\\w]))(?!\\[[\\d.]+(?:px|rem|em)\\])(?!\\[length:)[\\w\\[(#][^\\s'"\`]*`),new RegExp(`(?<![\\w-])${f("p","[xs]?-")}(?:\\d|\\[|\\()`),new RegExp(`(?<![\\w-])${f("p","y-")}(?:0|px|0\\.5|\\[[0-3](?:\\.\\d+)?px\\])(?![\\w.-])`),new RegExp(`(?<![\\w-])${f("round","ed-full")}(?![\\w-])`),new RegExp(`(?<![\\w-])${f("te","xt-")}(?:xs|2xs|3xs|\\[(?:9|10|11|12)px\\])(?![\\w-])`),new RegExp(`(?<![\\w-])${f("p","y-")}`),new RegExp(`(?<![\\w-])!?(?:${f("dura","tion-")}|${f("del","ay-")})(?:\\d+|\\[[^\\]]+\\])(?![\\w-])|(?<![\\w-])!?${f("fo","nt-")}\\[\\d+\\](?![\\w-])|(?<![\\w-])!?${f("bor","der")}(?:-[xytrblse])?-\\[[\\d.]+px\\](?![\\w-])`,"g");var $={busy:{words:["Accepting","Adding","Applying","Approving","Arranging","Asking","Assigning","Booking","Building","Calculating","Cancelling","Capturing","Changing","Checking","Choosing","Closing","Combining","Comparing","Completing","Confirming","Connecting","Converting","Copying","Correcting","Counting","Creating","Deleting","Detaching","Downloading","Drawing","Duplicating","Emailing","Ending","Exporting","Fetching","Filing","Finding","Flushing","Generating","Grouping","Importing","Linking","Loading","Locating","Looking","Making","Marking","Matching","Measuring","Merging","Moving","Opening","Ordering","Paying","Pending","Posting","Preparing","Previewing","Pricing","Processing","Provisioning","Publishing","Purging","Pushing","Queued","Queuing","Quoting","Re-booking","Re-importing","Re-opening","Reading","Rebooting","Rebuilding","Receiving","Reconciling","Reconnecting","Recording","Refreshing","Refunding","Regenerating","Registering","Reinstating","Rejecting","Removing","Reopening","Requesting","Resending","Resetting","Resolving","Restarting","Restoring","Resuming","Retrying","Reversing","Reverting","Running","Saving","Searching","Sending","Setting","Settling","Sharing","Signing","Splitting","Starting","Submitting","Suggesting","Switching","Syncing","Taking","Testing","Transferring","Typing","Updating","Uploading","Verifying","Waiting","Withdrawing","Working"]}};new Set(($.busy?.words??[]).map(e=>e.toLowerCase()));var x=(...e)=>e.join("-");x("p[xytrblse]?",""),x("max","[wh]",""),x("h",""),x("w",""),x("[wh]",""),x("min","h","");var y=class extends Error{},b=new Set(["$schema","schema","include","exclude","allow"]),R=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),S=e=>"string"==typeof e&&""!==e.trim();var v="d3as2htf4hwbtr.cloudfront.net",k={dealer:{bucket:"inovit-dealer-portal-assets",hosts:["d201q0i87q901p.cloudfront.net"],key_pattern:"^marketing/"},media:{bucket:"regis-media-production",hosts:["media.regis.design","d21nnr9ivf9hcc.cloudfront.net"],key_pattern:"^[a-z0-9_]+/storefront/(?!uploads/thumbs/)"},site:{bucket:"inovit-ecommerce-media",hosts:["cdn.inovit.com","dhxlibd8r3td0.cloudfront.net"],key_pattern:"^images/"}},j=Object.values(k),C=Object.freeze([...new Set([...j.flatMap(e=>e.hosts),v,...j.map(e=>e.bucket)])].sort()),A=new RegExp([...C.map(e=>{return`(?<![\\w-])${n=e,n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?![\\w-])`;var n}),"(?<![\\w-])[a-z0-9]+\\.cloudfront\\.net(?![\\w-])","(?<![\\w-])(?:[a-z0-9-]+\\.)*s3(?:[.-][a-z0-9-]+)*\\.amazonaws\\.com(?![\\w-])","s3://"].join("|"),"gi");function E(e,n,t){const i=e.createSourceFile(n,t,e.ScriptTarget.Latest,!0,function(e,n){return n.endsWith(".tsx")?e.ScriptKind.TSX:n.endsWith(".jsx")?e.ScriptKind.JSX:/\.[cm]?js$/.test(n)?e.ScriptKind.JS:e.ScriptKind.TS}(e,n)),r=[],o=(e,n)=>{const t=i.getLineAndCharacterOfPosition(e.getStart(i)).line+1;for(const e of function(e){return[...e.matchAll(A)].map(e=>({match:e[0],index:e.index??0}))}(n)){const i=n.slice(0,e.index);r.push({line:t+(i.match(/\n/g)?.length??0),match:e.match})}},s=n=>{e.isStringLiteral(n)||e.isNoSubstitutionTemplateLiteral(n)||e.isTemplateHead(n)||e.isTemplateMiddle(n)||e.isTemplateTail(n)?o(n,n.text):e.isRegularExpressionLiteral(n)&&o(n,n.text.replace(/\\(.)/g,"$1")),e.forEachChild(n,s)};return s(i),r}var O="media-host-check.config.json",T="efficient-shell-media-host-check",P=`${T}: no code writes a media origin; files are reached through the storage backend, the API's URL, media() or imageCopyUrl() (harness API-15, SSOT-2).\n\n ${T} check this repository; exits 1 on a finding\n ${T} --json print the result as JSON\n\nRefused in any string, template or regular expression: every host and bucket in\nthe image-copies contract, any *.cloudfront.net host, any S3 endpoint, and s3://.\nReads ${O} in the current directory.`;function L(e,t,r){const o=[],s=g(r.exclude);for(const e of r.include)0===h(t,[e]).length&&o.push(`include "${e}" matches no file; delete it`);const a=h(t,r.include).filter(e=>(e=>/\.(?:[cm]?[jt]s|[jt]sx)$/.test(e)&&!e.endsWith(".d.ts"))(e)&&!s(e)),c=[];for(const r of a)for(const o of E(e,r,i(n(t,r),"utf8")))c.push({file:r,...o});const l=(e,n)=>e.toLowerCase()===n.toLowerCase();for(const e of r.allow)c.some(n=>n.file===e.file&&l(e.match,n.match))||o.push(`allow ${e.file} "${e.match}" matches nothing any more; delete it`);return{files:a.length,findings:c.filter(e=>!(e=>r.allow.some(n=>n.file===e.file&&l(n.match,e.match)))(e)),problems:o}}process.exitCode=function(e,r){let o=!1;for(const n of e){if("--help"===n||"-h"===n)return r.out(P),0;if("--version"===n||"-v"===n)return r.out(r.version),0;if("--json"!==n)return r.err(`${T}: unknown argument "${n}"\n\n${P}`),2;o=!0}const s=n(r.cwd,O);if(!t(s))return r.err(`${T}: no ${O} in ${r.cwd}. Run it from the repository root.`),2;let a;try{const e=function(e,n="media-host-check.config.json"){const t=[];if(!R(e))throw new y(`${n}: expected an object`);for(const n of Object.keys(e))b.has(n)||t.push(`unknown key "${n}"`);1!==e.schema&&t.push('"schema" must be 1');const i=(n,i)=>{const r=e[n];return void 0!==r||i?!Array.isArray(r)||!r.every(S)||i&&0===r.length?(t.push(`"${n}" must be ${i?"a non-empty":"an"} array of globs`),[]):r:[]},r=i("include",!0),o=i("exclude",!1),s=[];void 0===e.allow||Array.isArray(e.allow)||t.push('"allow" must be an array');for(const[n,i]of(Array.isArray(e.allow)?e.allow:[]).entries()){if(!(R(i)&&S(i.file)&&S(i.match)&&S(i.reason))){t.push(`allow[${n}] needs "file", "match" and "reason", each a non-empty string`);continue}const e=Object.keys(i).filter(e=>!["file","match","reason"].includes(e));e.length&&t.push(`allow[${n}] has unknown keys: ${e.join(", ")}`),s.push({file:i.file,match:i.match,reason:i.reason})}if(t.length)throw new y(`${n}:\n ${t.join("\n ")}`);return{schema:1,include:r,exclude:o,allow:s}}(JSON.parse(i(s,"utf8")),O);a=L(r.loadTypeScript(),r.cwd,e)}catch(e){return r.err(`${T}: ${e instanceof y||e instanceof SyntaxError?e.message:String(e)}`),2}const g=a.findings.length>0||a.problems.length>0;if(o)return r.out(JSON.stringify({ok:!g,...a},null,2)),g?1:0;if(!g)return r.out(`${T}: ${a.files} files, no media origin written in code (harness API-15, SSOT-2).`),0;for(const e of a.findings)r.err(`${e.file}:${e.line} "${e.match}" is a media origin written in code.`);for(const e of a.problems)r.err(`${O}: ${e}`);return a.findings.length&&r.err(`\nReach the file through the storage backend, the URL the API returns, media() or imageCopyUrl() (harness API-15, SSOT-2). An origin that must stay goes in "allow" in ${O}, with its reason.`),1}(process.argv.slice(2),{cwd:process.cwd(),out:e=>console.log(e),err:e=>console.error(e),loadTypeScript:()=>o(import.meta.url),version:"15.2.0"});
2
+ import{createRequire as e}from"module";import{join as n}from"path";import{existsSync as t,readFileSync as i,readdirSync as r}from"fs";function o(t){return function(t,i){for(const r of[n(process.cwd(),"package.json"),i])try{return e(r)(t)}catch{}throw new Error(`${t} is not installed; add it to this repository's devDependencies`)}("typescript",t)}var s=/[.+^$()|[\]\\]/g;function a(e){let n="",t=0;for(let i=0;i<e.length;i++){const r=e[i];"*"===r?"*"===e[i+1]?"/"===e[i+2]?(n+="(?:[^/]+/)*",i+=2):(n+=".*",i+=1):n+="[^/]*":"?"===r?n+="[^/]":"{"===r?(n+="(?:",t+=1):"}"===r&&t>0?(n+=")",t-=1):n+=","===r&&t>0?"|":r.replace(s,"\\$&")}if(0!==t)throw new Error(`unbalanced { in glob "${e}"`);return new RegExp(`^${n}$`)}function g(e){const n=e.map(a);return e=>n.some(n=>n.test(e))}var c=new Set(["node_modules",".git"]),l=new Set(["dist","coverage",".next",".turbo"]);function d(e){const n=e.search(/[*?{]/),t=-1===n?e:e.slice(0,n),i=t.lastIndexOf("/");return-1===i?"":t.slice(0,i)}function h(e,t){const i=g(t),o=[...new Set(t.map(d))].sort(),s=o.filter(e=>!o.some(n=>n!==e&&(""===n||e.startsWith(`${n}/`)))),a=new Set,h=t=>{let o;try{o=r(n(e,t),{withFileTypes:!0})}catch{return}for(const e of o){const n=t?`${t}/${e.name}`:e.name;e.isDirectory()?c.has(e.name)||""===t&&l.has(e.name)||h(n):e.isFile()&&i(n)&&a.add(n)}};for(const e of s)h(e);return[...a].sort(u)}var u=(e,n)=>e<n?-1:e>n?1:0;Object.keys({fast:120,base:160}).map(e=>`--motion-${e}`).join(", "),Object.keys({body:400,control:500,heading:600,figure:700}).map(e=>`--weight-${e}`).join(", "),Object.keys({hairline:1,strong:2,accent:4}).map(e=>`--border-${e}`).join(", "),[2,4,8,12,16,20,24,32,40,48].join("/");var p=(...e)=>["origin",...e].join("-");new RegExp(["(?:transformOrigin|transform-origin)\\s*[:=]\\s*[\"'`]?\\s*(?:top left|left top|0 0|0% 0%|0px 0px)(?![\\w%-])",`(?<![\\w-])!?${p("top","left")}(?![\\w-])`,`(?<![\\w-])!?${p("\\[0_0\\]")}`].join("|"));var f=(...e)=>e.join(""),m="3xs|2xs|xs|sm|base|lg|xl|[2-9]xl";new RegExp(`(?<![\\w-])!?(?:${f("te","xt-")}(?:(?:${m})(?:\\/[\\w.()-]+)?|\\[(?:length:)?[\\d.]+(?:px|rem|em)\\])|${f("fo","nt-")}(?:thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\\[\\d+\\]))(?![\\w-])`),new RegExp(`(?<![\\w-])${f("round","ed")}(?:-(?:full|sm|md|lg|xl|[23]xl|[trblse]|tl|tr|br|bl|\\([^)]*\\)|\\[[^\\]]*\\]))*(?![\\w-])`);new RegExp(`(?<![\\w-])${f("b","g-")}(?!(?:none|transparent|current|inherit|cover|contain|auto|fixed|local|scroll|center|top|bottom|left|right|repeat|no-repeat|clip|origin|blend|linear|radial|conic|gradient|position|size|image)(?![\\w]))[\\w\\[(#][^\\s'"\`]*`);var w=`${m}|left|center|right|justify|start|end|wrap|nowrap|balance|pretty|ellipsis|clip|transparent|current|inherit|shadow`;new RegExp(`(?<![\\w-])${f("te","xt-")}(?!(?:${w})(?![\\w]))(?!\\[[\\d.]+(?:px|rem|em)\\])(?!\\[length:)[\\w\\[(#][^\\s'"\`]*`),new RegExp(`(?<![\\w-])${f("p","[xs]?-")}(?:\\d|\\[|\\()`),new RegExp(`(?<![\\w-])${f("p","y-")}(?:0|px|0\\.5|\\[[0-3](?:\\.\\d+)?px\\])(?![\\w.-])`),new RegExp(`(?<![\\w-])${f("round","ed-full")}(?![\\w-])`),new RegExp(`(?<![\\w-])${f("te","xt-")}(?:xs|2xs|3xs|\\[(?:9|10|11|12)px\\])(?![\\w-])`),new RegExp(`(?<![\\w-])${f("p","y-")}`),new RegExp(`(?<![\\w-])!?(?:${f("dura","tion-")}|${f("del","ay-")})(?:\\d+|\\[[^\\]]+\\])(?![\\w-])|(?<![\\w-])!?${f("fo","nt-")}\\[\\d+\\](?![\\w-])|(?<![\\w-])!?${f("bor","der")}(?:-[xytrblse])?-\\[[\\d.]+px\\](?![\\w-])`,"g");var $={busy:{words:["Accepting","Adding","Applying","Approving","Arranging","Asking","Assigning","Booking","Building","Calculating","Cancelling","Capturing","Changing","Checking","Choosing","Closing","Combining","Comparing","Completing","Confirming","Connecting","Converting","Copying","Correcting","Counting","Creating","Deleting","Detaching","Downloading","Drawing","Duplicating","Emailing","Ending","Exporting","Fetching","Filing","Finding","Flushing","Generating","Grouping","Importing","Linking","Loading","Locating","Looking","Making","Marking","Matching","Measuring","Merging","Moving","Opening","Ordering","Paying","Pending","Posting","Preparing","Previewing","Pricing","Processing","Provisioning","Publishing","Purging","Pushing","Queued","Queuing","Quoting","Re-booking","Re-importing","Re-opening","Reading","Rebooting","Rebuilding","Receiving","Reconciling","Reconnecting","Recording","Refreshing","Refunding","Regenerating","Registering","Reinstating","Rejecting","Removing","Reopening","Requesting","Resending","Resetting","Resolving","Restarting","Restoring","Resuming","Retrying","Reversing","Reverting","Running","Saving","Searching","Sending","Setting","Settling","Sharing","Signing","Splitting","Starting","Submitting","Suggesting","Switching","Syncing","Taking","Testing","Transferring","Typing","Updating","Uploading","Verifying","Waiting","Withdrawing","Working"]}};new Set(($.busy?.words??[]).map(e=>e.toLowerCase()));var x=(...e)=>e.join("-");x("p[xytrblse]?",""),x("max","[wh]",""),x("h",""),x("w",""),x("[wh]",""),x("min","h","");var y=class extends Error{},b=new Set(["$schema","schema","include","exclude","allow"]),R=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),S=e=>"string"==typeof e&&""!==e.trim();var v="d3as2htf4hwbtr.cloudfront.net",k={dealer:{bucket:"inovit-dealer-portal-assets",hosts:["d201q0i87q901p.cloudfront.net"],key_pattern:"^marketing/"},media:{bucket:"regis-media-production",hosts:["media.regis.design","d21nnr9ivf9hcc.cloudfront.net"],key_pattern:"^[a-z0-9_]+/storefront/(?!uploads/thumbs/)"},site:{bucket:"inovit-ecommerce-media",hosts:["cdn.inovit.com","dhxlibd8r3td0.cloudfront.net"],key_pattern:"^images/"}},j=Object.values(k),C=Object.freeze([...new Set([...j.flatMap(e=>e.hosts),v,...j.map(e=>e.bucket)])].sort()),A=new RegExp([...C.map(e=>{return`(?<![\\w-])${n=e,n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?![\\w-])`;var n}),"(?<![\\w-])[a-z0-9]+\\.cloudfront\\.net(?![\\w-])","(?<![\\w-])(?:[a-z0-9-]+\\.)*s3(?:[.-][a-z0-9-]+)*\\.amazonaws\\.com(?![\\w-])","s3://"].join("|"),"gi");function E(e,n,t){const i=e.createSourceFile(n,t,e.ScriptTarget.Latest,!0,function(e,n){return n.endsWith(".tsx")?e.ScriptKind.TSX:n.endsWith(".jsx")?e.ScriptKind.JSX:/\.[cm]?js$/.test(n)?e.ScriptKind.JS:e.ScriptKind.TS}(e,n)),r=[],o=(e,n)=>{const t=i.getLineAndCharacterOfPosition(e.getStart(i)).line+1;for(const e of function(e){return[...e.matchAll(A)].map(e=>({match:e[0],index:e.index??0}))}(n)){const i=n.slice(0,e.index);r.push({line:t+(i.match(/\n/g)?.length??0),match:e.match})}},s=n=>{e.isStringLiteral(n)||e.isNoSubstitutionTemplateLiteral(n)||e.isTemplateHead(n)||e.isTemplateMiddle(n)||e.isTemplateTail(n)?o(n,n.text):e.isRegularExpressionLiteral(n)&&o(n,n.text.replace(/\\(.)/g,"$1")),e.forEachChild(n,s)};return s(i),r}var O="media-host-check.config.json",T="efficient-shell-media-host-check",P=`${T}: no code writes a media origin; files are reached through the storage backend, the API's URL, media() or imageCopyUrl() (harness API-15, SSOT-2).\n\n ${T} check this repository; exits 1 on a finding\n ${T} --json print the result as JSON\n\nRefused in any string, template or regular expression: every host and bucket in\nthe image-copies contract, any *.cloudfront.net host, any S3 endpoint, and s3://.\nReads ${O} in the current directory.`;function L(e,t,r){const o=[],s=g(r.exclude);for(const e of r.include)0===h(t,[e]).length&&o.push(`include "${e}" matches no file; delete it`);const a=h(t,r.include).filter(e=>(e=>/\.(?:[cm]?[jt]s|[jt]sx)$/.test(e)&&!e.endsWith(".d.ts"))(e)&&!s(e)),c=[];for(const r of a)for(const o of E(e,r,i(n(t,r),"utf8")))c.push({file:r,...o});const l=(e,n)=>e.toLowerCase()===n.toLowerCase();for(const e of r.allow)c.some(n=>n.file===e.file&&l(e.match,n.match))||o.push(`allow ${e.file} "${e.match}" matches nothing any more; delete it`);return{files:a.length,findings:c.filter(e=>!(e=>r.allow.some(n=>n.file===e.file&&l(n.match,e.match)))(e)),problems:o}}process.exitCode=function(e,r){let o=!1;for(const n of e){if("--help"===n||"-h"===n)return r.out(P),0;if("--version"===n||"-v"===n)return r.out(r.version),0;if("--json"!==n)return r.err(`${T}: unknown argument "${n}"\n\n${P}`),2;o=!0}const s=n(r.cwd,O);if(!t(s))return r.err(`${T}: no ${O} in ${r.cwd}. Run it from the repository root.`),2;let a;try{const e=function(e,n="media-host-check.config.json"){const t=[];if(!R(e))throw new y(`${n}: expected an object`);for(const n of Object.keys(e))b.has(n)||t.push(`unknown key "${n}"`);1!==e.schema&&t.push('"schema" must be 1');const i=(n,i)=>{const r=e[n];return void 0!==r||i?!Array.isArray(r)||!r.every(S)||i&&0===r.length?(t.push(`"${n}" must be ${i?"a non-empty":"an"} array of globs`),[]):r:[]},r=i("include",!0),o=i("exclude",!1),s=[];void 0===e.allow||Array.isArray(e.allow)||t.push('"allow" must be an array');for(const[n,i]of(Array.isArray(e.allow)?e.allow:[]).entries()){if(!(R(i)&&S(i.file)&&S(i.match)&&S(i.reason))){t.push(`allow[${n}] needs "file", "match" and "reason", each a non-empty string`);continue}const e=Object.keys(i).filter(e=>!["file","match","reason"].includes(e));e.length&&t.push(`allow[${n}] has unknown keys: ${e.join(", ")}`),s.push({file:i.file,match:i.match,reason:i.reason})}if(t.length)throw new y(`${n}:\n ${t.join("\n ")}`);return{schema:1,include:r,exclude:o,allow:s}}(JSON.parse(i(s,"utf8")),O);a=L(r.loadTypeScript(),r.cwd,e)}catch(e){return r.err(`${T}: ${e instanceof y||e instanceof SyntaxError?e.message:String(e)}`),2}const g=a.findings.length>0||a.problems.length>0;if(o)return r.out(JSON.stringify({ok:!g,...a},null,2)),g?1:0;if(!g)return r.out(`${T}: ${a.files} files, no media origin written in code (harness API-15, SSOT-2).`),0;for(const e of a.findings)r.err(`${e.file}:${e.line} "${e.match}" is a media origin written in code.`);for(const e of a.problems)r.err(`${O}: ${e}`);return a.findings.length&&r.err(`\nReach the file through the storage backend, the URL the API returns, media() or imageCopyUrl() (harness API-15, SSOT-2). An origin that must stay goes in "allow" in ${O}, with its reason.`),1}(process.argv.slice(2),{cwd:process.cwd(),out:e=>console.log(e),err:e=>console.error(e),loadTypeScript:()=>o(import.meta.url),version:"15.2.1"});