@baic/yolk-cli 2.1.0-alpha.13 → 2.1.0-alpha.131

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 (511) hide show
  1. package/compiled/commander/index.d.ts +430 -0
  2. package/compiled/commander/index.js +1970 -0
  3. package/compiled/commander/package.json +1 -0
  4. package/compiled/glob/index.d.ts +102 -0
  5. package/compiled/glob/index.js +2222 -0
  6. package/compiled/glob/package.json +1 -0
  7. package/compiled/minimatch/index.d.ts +312 -0
  8. package/compiled/minimatch/index.js +1292 -0
  9. package/compiled/minimatch/package.json +1 -0
  10. package/compiled/mkdirp/index.d.ts +114 -0
  11. package/compiled/mkdirp/index.js +348 -0
  12. package/compiled/mkdirp/package.json +1 -0
  13. package/compiled/mustache/index.d.ts +423 -0
  14. package/compiled/mustache/index.js +828 -0
  15. package/compiled/mustache/package.json +1 -0
  16. package/compiled/prettier/index.d.ts +904 -0
  17. package/compiled/prettier/index.js +49376 -0
  18. package/compiled/prettier/package.json +1 -0
  19. package/compiled/rimraf/index.d.ts +48 -0
  20. package/compiled/rimraf/index.js +449 -0
  21. package/compiled/rimraf/package.json +1 -0
  22. package/compiled/staged-git-files/index.js +267 -0
  23. package/compiled/staged-git-files/package.json +1 -0
  24. package/es/.prettierrc.js +15 -0
  25. package/es/index.d.ts +1 -0
  26. package/es/index.js +1 -1
  27. package/es/yolk.d.ts +5 -1
  28. package/es/yolk.js +1 -1
  29. package/lib/.prettierrc.js +15 -0
  30. package/lib/index.d.ts +1 -0
  31. package/lib/index.js +1 -1
  32. package/lib/yolk.d.ts +5 -1
  33. package/lib/yolk.js +1 -1
  34. package/package.json +39 -26
  35. package/templates/miniprogram/.eslintrc +1 -1
  36. package/templates/miniprogram/.gitignore.tpl +8 -6
  37. package/templates/miniprogram/.npmrc.tpl +2 -0
  38. package/templates/miniprogram/.prettierignore +5 -1
  39. package/templates/miniprogram/.prettierrc.js +1 -0
  40. package/templates/miniprogram/README.md.tpl +2 -2
  41. package/templates/miniprogram/global.d.ts +1 -33
  42. package/templates/miniprogram/package.json.tpl +5 -0
  43. package/templates/miniprogram/project.config.json.tpl +5 -3
  44. package/templates/miniprogram/src/app.scss +0 -1
  45. package/templates/miniprogram/src/app.tsx +4 -6
  46. package/templates/miniprogram/src/pages/demo/examples/Input.tsx +11 -2
  47. package/templates/miniprogram/src/pages/demo/examples/Textarea.tsx +13 -2
  48. package/templates/miniprogram/src/pages/index/index.tsx +3 -1
  49. package/templates/miniprogram/src/types/user.d.ts +4 -2
  50. package/templates/umi-mobile/.eslintrc +1 -1
  51. package/templates/umi-mobile/.gitignore.tpl +3 -2
  52. package/templates/umi-mobile/.npmrc.tpl +2 -0
  53. package/templates/umi-mobile/.prettierignore +6 -2
  54. package/templates/umi-mobile/.prettierrc.js +1 -0
  55. package/templates/umi-mobile/.umirc.ts.tpl +2 -2
  56. package/templates/umi-mobile/README.md.tpl +2 -2
  57. package/templates/umi-mobile/package.json.tpl +5 -0
  58. package/templates/umi-mobile/src/app.tsx +2 -2
  59. package/templates/umi-mobile/src/pages/404.tsx +0 -1
  60. package/templates/umi-mobile/src/pages/demo/examples/BarCode.tsx +0 -1
  61. package/templates/umi-mobile/src/pages/demo/examples/Iconfont.tsx +1 -2
  62. package/templates/umi-mobile/src/pages/demo/examples/Input.tsx +1 -3
  63. package/templates/umi-mobile/src/pages/demo/examples/List/1.tsx +1 -2
  64. package/templates/umi-mobile/src/pages/demo/examples/List/2.tsx +1 -1
  65. package/templates/umi-mobile/src/pages/demo/examples/List/3.tsx +1 -1
  66. package/templates/umi-mobile/src/pages/demo/examples/List/4.tsx +9 -10
  67. package/templates/umi-mobile/src/pages/demo/examples/Loading.tsx +0 -1
  68. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -3
  69. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -3
  70. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -3
  71. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -3
  72. package/templates/umi-mobile/src/pages/demo/examples/PagingList/1.tsx +1 -2
  73. package/templates/umi-mobile/src/pages/demo/examples/QrCode.tsx +0 -1
  74. package/templates/umi-mobile/src/pages/demo/examples/Required.tsx +0 -1
  75. package/templates/umi-mobile/src/pages/demo/examples/TimerButton.tsx +0 -1
  76. package/templates/umi-mobile/src/pages/demo/examples/usePreload.tsx +1 -1
  77. package/templates/umi-mobile/src/pages/demo/index.tsx +8 -8
  78. package/templates/umi-mobile/src/pages/index.tsx +0 -2
  79. package/templates/umi-mobile/src/types/user.d.ts +2 -2
  80. package/templates/umi-mobile-h5+app/.eslintrc +1 -1
  81. package/templates/umi-mobile-h5+app/.gitignore.tpl +3 -2
  82. package/templates/umi-mobile-h5+app/.npmrc.tpl +2 -0
  83. package/templates/umi-mobile-h5+app/.prettierignore +6 -2
  84. package/templates/umi-mobile-h5+app/.prettierrc.js +1 -0
  85. package/templates/umi-mobile-h5+app/.umirc.ts.tpl +2 -2
  86. package/templates/umi-mobile-h5+app/README.md.tpl +2 -2
  87. package/templates/umi-mobile-h5+app/package.json.tpl +5 -0
  88. package/templates/umi-mobile-h5+app/src/pages/demo/examples/Input.tsx +1 -2
  89. package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/4.tsx +2 -2
  90. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  91. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  92. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  93. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  94. package/templates/umi-mobile-h5+app/src/types/user.d.ts +2 -2
  95. package/templates/umi-mobile-native/.eslintrc +1 -1
  96. package/templates/umi-mobile-native/.gitignore.tpl +3 -2
  97. package/templates/umi-mobile-native/.npmrc.tpl +2 -0
  98. package/templates/umi-mobile-native/.prettierignore +6 -2
  99. package/templates/umi-mobile-native/.prettierrc.js +1 -0
  100. package/templates/umi-mobile-native/.umirc.ts.tpl +2 -2
  101. package/templates/umi-mobile-native/README.md.tpl +2 -2
  102. package/templates/umi-mobile-native/package.json.tpl +5 -0
  103. package/templates/umi-mobile-native/src/common/Xprinter.ts +4 -4
  104. package/templates/umi-mobile-native/src/common/bluetooth.ts +2 -2
  105. package/templates/umi-mobile-native/src/pages/demo/examples/Input.tsx +1 -2
  106. package/templates/umi-mobile-native/src/pages/demo/examples/List/4.tsx +2 -2
  107. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  108. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  109. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  110. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  111. package/templates/umi-mobile-native/src/types/user.d.ts +2 -2
  112. package/templates/umi-web/.eslintrc +1 -1
  113. package/templates/umi-web/.gitignore.tpl +3 -2
  114. package/templates/umi-web/.npmrc.tpl +2 -0
  115. package/templates/umi-web/.prettierignore +6 -2
  116. package/templates/umi-web/.prettierrc.js +1 -0
  117. package/templates/umi-web/.umirc.ts.tpl +1 -2
  118. package/templates/umi-web/README.md.tpl +1 -1
  119. package/templates/umi-web/package.json.tpl +5 -0
  120. package/templates/umi-web/src/pages/404.tsx +2 -3
  121. package/templates/umi-web/src/pages/demo/examples/BankInput.tsx +1 -2
  122. package/templates/umi-web/src/pages/demo/examples/Grid/5.tsx +1 -2
  123. package/templates/umi-web/src/pages/demo/examples/Input/2.tsx +2 -1
  124. package/templates/umi-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
  125. package/templates/umi-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
  126. package/templates/umi-web/src/pages/demo/index.tsx +3 -2
  127. package/templates/umi-web/src/pages/index.tsx +0 -2
  128. package/templates/umi-web/src/types/user.d.ts +2 -2
  129. package/templates/umi-web-screen/.eslintrc +1 -1
  130. package/templates/umi-web-screen/.gitignore.tpl +3 -2
  131. package/templates/umi-web-screen/.npmrc.tpl +2 -0
  132. package/templates/umi-web-screen/.prettierignore +6 -2
  133. package/templates/umi-web-screen/.prettierrc.js +1 -0
  134. package/templates/umi-web-screen/.umirc.ts.tpl +1 -2
  135. package/templates/umi-web-screen/README.md.tpl +1 -1
  136. package/templates/umi-web-screen/package.json.tpl +5 -0
  137. package/templates/umi-web-screen/src/components/resize-container/index.tsx +14 -14
  138. package/templates/umi-web-screen/src/layouts/controller/index.tsx +5 -9
  139. package/templates/umi-web-screen/src/pages/404.tsx +2 -3
  140. package/templates/umi-web-screen/src/pages/template/components/charts/demo-line/index.tsx +2 -3
  141. package/templates/umi-web-screen/src/pages/template/controller/index.tsx +11 -12
  142. package/templates/umi-web-screen/src/types/user.d.ts +2 -2
  143. package/templates/ice-mobile/.eslintrc +0 -6
  144. package/templates/ice-mobile/.gitignore.tpl +0 -33
  145. package/templates/ice-mobile/.icerc.ts +0 -3
  146. package/templates/ice-mobile/.prettierignore +0 -9
  147. package/templates/ice-mobile/.prettierrc +0 -11
  148. package/templates/ice-mobile/.stylelintrc +0 -3
  149. package/templates/ice-mobile/README.md.tpl +0 -34
  150. package/templates/ice-mobile/package.json.tpl +0 -11
  151. package/templates/ice-mobile/public/favicon.ico +0 -0
  152. package/templates/ice-mobile/public/index.html +0 -15
  153. package/templates/ice-mobile/src/app.tsx +0 -5
  154. package/templates/ice-mobile/src/common/request.ts +0 -3
  155. package/templates/ice-mobile/src/common/util.ts +0 -7
  156. package/templates/ice-mobile/src/components/index.ts +0 -0
  157. package/templates/ice-mobile/src/global.less +0 -3
  158. package/templates/ice-mobile/src/layouts/index.tsx +0 -5
  159. package/templates/ice-mobile/src/pages/404.tsx +0 -10
  160. package/templates/ice-mobile/src/pages/demo/examples/BarCode.tsx +0 -4
  161. package/templates/ice-mobile/src/pages/demo/examples/Iconfont.tsx +0 -18
  162. package/templates/ice-mobile/src/pages/demo/examples/Input.tsx +0 -17
  163. package/templates/ice-mobile/src/pages/demo/examples/List/1.tsx +0 -12
  164. package/templates/ice-mobile/src/pages/demo/examples/List/2.tsx +0 -29
  165. package/templates/ice-mobile/src/pages/demo/examples/List/3.tsx +0 -29
  166. package/templates/ice-mobile/src/pages/demo/examples/List/4.tsx +0 -55
  167. package/templates/ice-mobile/src/pages/demo/examples/List/mock.ts +0 -30
  168. package/templates/ice-mobile/src/pages/demo/examples/Loading.tsx +0 -12
  169. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  170. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  171. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  172. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  173. package/templates/ice-mobile/src/pages/demo/examples/PagingList/1.tsx +0 -6
  174. package/templates/ice-mobile/src/pages/demo/examples/QrCode.tsx +0 -4
  175. package/templates/ice-mobile/src/pages/demo/examples/Required.tsx +0 -4
  176. package/templates/ice-mobile/src/pages/demo/examples/TimerButton.tsx +0 -4
  177. package/templates/ice-mobile/src/pages/demo/examples/usePreload.tsx +0 -9
  178. package/templates/ice-mobile/src/pages/demo/index.tsx +0 -87
  179. package/templates/ice-mobile/src/pages/index.tsx +0 -3
  180. package/templates/ice-mobile/src/routes.ts +0 -29
  181. package/templates/ice-mobile/src/types/user.d.ts +0 -3
  182. package/templates/ice-mobile/tsconfig.json +0 -3
  183. package/templates/ice-mobile/typings.d.ts +0 -1
  184. package/templates/ice-mobile-h5+app/.eslintrc +0 -6
  185. package/templates/ice-mobile-h5+app/.gitignore.tpl +0 -33
  186. package/templates/ice-mobile-h5+app/.icerc.ts +0 -5
  187. package/templates/ice-mobile-h5+app/.prettierignore +0 -9
  188. package/templates/ice-mobile-h5+app/.prettierrc +0 -11
  189. package/templates/ice-mobile-h5+app/.stylelintrc +0 -3
  190. package/templates/ice-mobile-h5+app/README.md.tpl +0 -34
  191. package/templates/ice-mobile-h5+app/h5+app/manifest.json +0 -87
  192. package/templates/ice-mobile-h5+app/package.json.tpl +0 -11
  193. package/templates/ice-mobile-h5+app/public/favicon.ico +0 -0
  194. package/templates/ice-mobile-h5+app/public/index.html +0 -15
  195. package/templates/ice-mobile-h5+app/src/app.tsx +0 -5
  196. package/templates/ice-mobile-h5+app/src/common/request.ts +0 -3
  197. package/templates/ice-mobile-h5+app/src/common/util.ts +0 -7
  198. package/templates/ice-mobile-h5+app/src/components/index.ts +0 -0
  199. package/templates/ice-mobile-h5+app/src/global.less +0 -3
  200. package/templates/ice-mobile-h5+app/src/layouts/index.tsx +0 -5
  201. package/templates/ice-mobile-h5+app/src/pages/404.tsx +0 -10
  202. package/templates/ice-mobile-h5+app/src/pages/demo/examples/BarCode.tsx +0 -4
  203. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +0 -18
  204. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Input.tsx +0 -17
  205. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/1.tsx +0 -12
  206. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/2.tsx +0 -29
  207. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/3.tsx +0 -29
  208. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/4.tsx +0 -55
  209. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/mock.ts +0 -30
  210. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Loading.tsx +0 -12
  211. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  212. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  213. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  214. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  215. package/templates/ice-mobile-h5+app/src/pages/demo/examples/PagingList/1.tsx +0 -6
  216. package/templates/ice-mobile-h5+app/src/pages/demo/examples/QrCode.tsx +0 -4
  217. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Required.tsx +0 -4
  218. package/templates/ice-mobile-h5+app/src/pages/demo/examples/TimerButton.tsx +0 -4
  219. package/templates/ice-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +0 -9
  220. package/templates/ice-mobile-h5+app/src/pages/demo/index.tsx +0 -87
  221. package/templates/ice-mobile-h5+app/src/pages/index.tsx +0 -3
  222. package/templates/ice-mobile-h5+app/src/routes.ts +0 -29
  223. package/templates/ice-mobile-h5+app/src/types/user.d.ts +0 -3
  224. package/templates/ice-mobile-h5+app/tsconfig.json +0 -3
  225. package/templates/ice-mobile-h5+app/typings.d.ts +0 -1
  226. package/templates/ice-mobile-native/.eslintrc +0 -6
  227. package/templates/ice-mobile-native/.gitignore.tpl +0 -38
  228. package/templates/ice-mobile-native/.icerc.ts +0 -7
  229. package/templates/ice-mobile-native/.prettierignore +0 -9
  230. package/templates/ice-mobile-native/.prettierrc +0 -11
  231. package/templates/ice-mobile-native/.stylelintrc +0 -3
  232. package/templates/ice-mobile-native/README.md.tpl +0 -34
  233. package/templates/ice-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
  234. package/templates/ice-mobile-native/android/app/build.gradle +0 -66
  235. package/templates/ice-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
  236. package/templates/ice-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
  237. package/templates/ice-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
  238. package/templates/ice-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
  239. package/templates/ice-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
  240. package/templates/ice-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
  241. package/templates/ice-mobile-native/android/app/proguard-rules.pro +0 -303
  242. package/templates/ice-mobile-native/android/app/src/main/AndroidManifest.xml +0 -98
  243. package/templates/ice-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +0 -89
  244. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +0 -6
  245. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_error.html +0 -92
  246. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +0 -19
  247. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +0 -119
  248. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +0 -17
  249. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +0 -17
  250. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +0 -26
  251. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +0 -265
  252. package/templates/ice-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
  253. package/templates/ice-mobile-native/android/app/src/main/res/values/colors.xml +0 -5
  254. package/templates/ice-mobile-native/android/app/src/main/res/values/strings.xml +0 -3
  255. package/templates/ice-mobile-native/android/build.gradle +0 -9
  256. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  257. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  258. package/templates/ice-mobile-native/android/gradle.properties +0 -22
  259. package/templates/ice-mobile-native/android/gradlew +0 -185
  260. package/templates/ice-mobile-native/android/gradlew.bat +0 -89
  261. package/templates/ice-mobile-native/android/settings.gradle +0 -16
  262. package/templates/ice-mobile-native/ios/HBuilder/HBuilder.entitlements +0 -5
  263. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
  264. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
  265. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
  266. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
  267. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
  268. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
  269. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
  270. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
  271. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
  272. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +0 -62
  273. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +0 -6
  274. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +0 -20
  275. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
  276. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
  277. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
  278. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +0 -26
  279. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +0 -21
  280. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
  281. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +0 -22
  282. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
  283. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
  284. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +0 -22
  285. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
  286. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
  287. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +0 -22
  288. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
  289. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
  290. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +0 -21
  291. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
  292. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +0 -22
  293. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
  294. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
  295. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +0 -22
  296. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
  297. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
  298. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +0 -23
  299. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
  300. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
  301. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
  302. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +0 -23
  303. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
  304. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
  305. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
  306. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +0 -23
  307. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
  308. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
  309. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
  310. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +0 -23
  311. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
  312. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
  313. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
  314. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +0 -22
  315. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
  316. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
  317. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +0 -22
  318. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
  319. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
  320. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +0 -22
  321. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
  322. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
  323. package/templates/ice-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
  324. package/templates/ice-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
  325. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.h +0 -16
  326. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.m +0 -225
  327. package/templates/ice-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +0 -65
  328. package/templates/ice-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +0 -13
  329. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +0 -486
  330. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +0 -16
  331. package/templates/ice-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +0 -67
  332. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +0 -79
  333. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
  334. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
  335. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
  336. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
  337. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
  338. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
  339. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
  340. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
  341. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
  342. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
  343. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
  344. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
  345. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
  346. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
  347. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
  348. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
  349. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
  350. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.h +0 -19
  351. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.m +0 -161
  352. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.h +0 -19
  353. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.m +0 -235
  354. package/templates/ice-mobile-native/ios/HBuilder-Hello/control.xml +0 -107
  355. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +0 -4
  356. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +0 -12
  357. package/templates/ice-mobile-native/ios/HBuilder-Hello/main.m +0 -18
  358. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +0 -4
  359. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +0 -3
  360. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +0 -13
  361. package/templates/ice-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +0 -1607
  362. package/templates/ice-mobile-native/package.json.tpl +0 -11
  363. package/templates/ice-mobile-native/public/favicon.ico +0 -0
  364. package/templates/ice-mobile-native/public/index.html +0 -15
  365. package/templates/ice-mobile-native/src/app.tsx +0 -5
  366. package/templates/ice-mobile-native/src/common/Xprinter.ts +0 -58
  367. package/templates/ice-mobile-native/src/common/bluetooth.ts +0 -354
  368. package/templates/ice-mobile-native/src/common/bridge.ts +0 -59
  369. package/templates/ice-mobile-native/src/common/request.ts +0 -3
  370. package/templates/ice-mobile-native/src/common/util.ts +0 -7
  371. package/templates/ice-mobile-native/src/components/index.ts +0 -0
  372. package/templates/ice-mobile-native/src/global.less +0 -3
  373. package/templates/ice-mobile-native/src/layouts/index.tsx +0 -5
  374. package/templates/ice-mobile-native/src/pages/404.tsx +0 -10
  375. package/templates/ice-mobile-native/src/pages/demo/examples/BarCode.tsx +0 -4
  376. package/templates/ice-mobile-native/src/pages/demo/examples/Iconfont.tsx +0 -18
  377. package/templates/ice-mobile-native/src/pages/demo/examples/Input.tsx +0 -17
  378. package/templates/ice-mobile-native/src/pages/demo/examples/List/1.tsx +0 -12
  379. package/templates/ice-mobile-native/src/pages/demo/examples/List/2.tsx +0 -29
  380. package/templates/ice-mobile-native/src/pages/demo/examples/List/3.tsx +0 -29
  381. package/templates/ice-mobile-native/src/pages/demo/examples/List/4.tsx +0 -55
  382. package/templates/ice-mobile-native/src/pages/demo/examples/List/mock.ts +0 -30
  383. package/templates/ice-mobile-native/src/pages/demo/examples/Loading.tsx +0 -12
  384. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  385. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  386. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  387. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  388. package/templates/ice-mobile-native/src/pages/demo/examples/PagingList/1.tsx +0 -6
  389. package/templates/ice-mobile-native/src/pages/demo/examples/QrCode.tsx +0 -4
  390. package/templates/ice-mobile-native/src/pages/demo/examples/Required.tsx +0 -4
  391. package/templates/ice-mobile-native/src/pages/demo/examples/TimerButton.tsx +0 -4
  392. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +0 -64
  393. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/style.less +0 -16
  394. package/templates/ice-mobile-native/src/pages/demo/examples/usePreload.tsx +0 -9
  395. package/templates/ice-mobile-native/src/pages/demo/index.tsx +0 -89
  396. package/templates/ice-mobile-native/src/pages/index.tsx +0 -3
  397. package/templates/ice-mobile-native/src/routes.ts +0 -29
  398. package/templates/ice-mobile-native/src/types/user.d.ts +0 -3
  399. package/templates/ice-mobile-native/tsconfig.json +0 -3
  400. package/templates/ice-mobile-native/typings.d.ts +0 -1
  401. package/templates/ice-web/.eslintrc +0 -6
  402. package/templates/ice-web/.gitignore.tpl +0 -33
  403. package/templates/ice-web/.icerc.ts +0 -3
  404. package/templates/ice-web/.prettierignore +0 -9
  405. package/templates/ice-web/.prettierrc +0 -11
  406. package/templates/ice-web/.stylelintrc +0 -3
  407. package/templates/ice-web/README.md.tpl +0 -34
  408. package/templates/ice-web/package.json.tpl +0 -11
  409. package/templates/ice-web/public/favicon.ico +0 -0
  410. package/templates/ice-web/public/index.html +0 -15
  411. package/templates/ice-web/src/app.tsx +0 -5
  412. package/templates/ice-web/src/common/request.ts +0 -3
  413. package/templates/ice-web/src/common/util.ts +0 -7
  414. package/templates/ice-web/src/components/index.ts +0 -0
  415. package/templates/ice-web/src/global.less +0 -5
  416. package/templates/ice-web/src/layouts/index.tsx +0 -5
  417. package/templates/ice-web/src/pages/404.tsx +0 -17
  418. package/templates/ice-web/src/pages/demo/examples/BankInput.tsx +0 -13
  419. package/templates/ice-web/src/pages/demo/examples/BarCode.tsx +0 -4
  420. package/templates/ice-web/src/pages/demo/examples/Collapse.tsx +0 -4
  421. package/templates/ice-web/src/pages/demo/examples/DatePicker.tsx +0 -4
  422. package/templates/ice-web/src/pages/demo/examples/Flex.tsx +0 -10
  423. package/templates/ice-web/src/pages/demo/examples/Grid/1.tsx +0 -25
  424. package/templates/ice-web/src/pages/demo/examples/Grid/2.tsx +0 -26
  425. package/templates/ice-web/src/pages/demo/examples/Grid/3.tsx +0 -37
  426. package/templates/ice-web/src/pages/demo/examples/Grid/4.tsx +0 -43
  427. package/templates/ice-web/src/pages/demo/examples/Grid/5.tsx +0 -36
  428. package/templates/ice-web/src/pages/demo/examples/Grid/6.tsx +0 -28
  429. package/templates/ice-web/src/pages/demo/examples/Iconfont.tsx +0 -18
  430. package/templates/ice-web/src/pages/demo/examples/ImagePreview.tsx +0 -20
  431. package/templates/ice-web/src/pages/demo/examples/Input/1.tsx +0 -4
  432. package/templates/ice-web/src/pages/demo/examples/Input/2.tsx +0 -80
  433. package/templates/ice-web/src/pages/demo/examples/LinkButton/1.tsx +0 -4
  434. package/templates/ice-web/src/pages/demo/examples/LinkButton/2.tsx +0 -9
  435. package/templates/ice-web/src/pages/demo/examples/LinkButton/3.tsx +0 -12
  436. package/templates/ice-web/src/pages/demo/examples/Loading.tsx +0 -12
  437. package/templates/ice-web/src/pages/demo/examples/MobileInput.tsx +0 -4
  438. package/templates/ice-web/src/pages/demo/examples/NumberInput.tsx +0 -4
  439. package/templates/ice-web/src/pages/demo/examples/PagingTable.tsx +0 -21
  440. package/templates/ice-web/src/pages/demo/examples/QrCode.tsx +0 -4
  441. package/templates/ice-web/src/pages/demo/examples/RangeNumber/1.tsx +0 -4
  442. package/templates/ice-web/src/pages/demo/examples/RangeNumber/2.tsx +0 -15
  443. package/templates/ice-web/src/pages/demo/examples/Required.tsx +0 -4
  444. package/templates/ice-web/src/pages/demo/examples/SearchLayout.tsx +0 -46
  445. package/templates/ice-web/src/pages/demo/examples/Table/1.tsx +0 -64
  446. package/templates/ice-web/src/pages/demo/examples/Table/2.tsx +0 -29
  447. package/templates/ice-web/src/pages/demo/examples/Table/3.tsx +0 -39
  448. package/templates/ice-web/src/pages/demo/examples/Table/4.tsx +0 -42
  449. package/templates/ice-web/src/pages/demo/examples/TimerButton.tsx +0 -4
  450. package/templates/ice-web/src/pages/demo/examples/Title/1.tsx +0 -4
  451. package/templates/ice-web/src/pages/demo/examples/Title/2.tsx +0 -5
  452. package/templates/ice-web/src/pages/demo/examples/WaterMark.tsx +0 -8
  453. package/templates/ice-web/src/pages/demo/examples/Wrapper.tsx +0 -40
  454. package/templates/ice-web/src/pages/demo/examples/usePreload.tsx +0 -9
  455. package/templates/ice-web/src/pages/demo/index.tsx +0 -135
  456. package/templates/ice-web/src/pages/index.tsx +0 -3
  457. package/templates/ice-web/src/routes.ts +0 -29
  458. package/templates/ice-web/src/types/user.d.ts +0 -3
  459. package/templates/ice-web/tsconfig.json +0 -3
  460. package/templates/ice-web/typings.d.ts +0 -1
  461. package/templates/ice-web-screen/.eslintrc +0 -6
  462. package/templates/ice-web-screen/.gitignore.tpl +0 -33
  463. package/templates/ice-web-screen/.icerc.ts +0 -3
  464. package/templates/ice-web-screen/.prettierignore +0 -9
  465. package/templates/ice-web-screen/.prettierrc +0 -11
  466. package/templates/ice-web-screen/.stylelintrc +0 -3
  467. package/templates/ice-web-screen/README.md.tpl +0 -34
  468. package/templates/ice-web-screen/package.json.tpl +0 -12
  469. package/templates/ice-web-screen/public/favicon.ico +0 -0
  470. package/templates/ice-web-screen/public/index.html +0 -15
  471. package/templates/ice-web-screen/src/app.tsx +0 -5
  472. package/templates/ice-web-screen/src/common/request.ts +0 -3
  473. package/templates/ice-web-screen/src/common/util.ts +0 -15
  474. package/templates/ice-web-screen/src/components/index.ts +0 -1
  475. package/templates/ice-web-screen/src/components/resize-container/index.tsx +0 -95
  476. package/templates/ice-web-screen/src/components/resize-container/style.module.less +0 -3
  477. package/templates/ice-web-screen/src/constants.ts +0 -7
  478. package/templates/ice-web-screen/src/global.less +0 -31
  479. package/templates/ice-web-screen/src/hooks/use-size.ts +0 -18
  480. package/templates/ice-web-screen/src/layouts/16_9/fixed.less +0 -18
  481. package/templates/ice-web-screen/src/layouts/16_9/index.tsx +0 -34
  482. package/templates/ice-web-screen/src/layouts/16_9/style.module.less +0 -19
  483. package/templates/ice-web-screen/src/layouts/components/index.ts +0 -0
  484. package/templates/ice-web-screen/src/layouts/controller/index.tsx +0 -79
  485. package/templates/ice-web-screen/src/layouts/index.tsx +0 -11
  486. package/templates/ice-web-screen/src/pages/404.tsx +0 -17
  487. package/templates/ice-web-screen/src/pages/index.tsx +0 -3
  488. package/templates/ice-web-screen/src/pages/template/16_9/index.tsx +0 -13
  489. package/templates/ice-web-screen/src/pages/template/16_9/style.module.less +0 -7
  490. package/templates/ice-web-screen/src/pages/template/components/charts/demo-line/index.tsx +0 -274
  491. package/templates/ice-web-screen/src/pages/template/components/charts/index.ts +0 -1
  492. package/templates/ice-web-screen/src/pages/template/components/index.ts +0 -1
  493. package/templates/ice-web-screen/src/pages/template/controller/index.tsx +0 -85
  494. package/templates/ice-web-screen/src/pages/template/index.tsx +0 -15
  495. package/templates/ice-web-screen/src/pages/template/style.module.less +0 -3
  496. package/templates/ice-web-screen/src/routes.ts +0 -29
  497. package/templates/ice-web-screen/src/styles/vars.less +0 -5
  498. package/templates/ice-web-screen/src/types/user.d.ts +0 -3
  499. package/templates/ice-web-screen/tsconfig.json +0 -3
  500. package/templates/ice-web-screen/typings.d.ts +0 -1
  501. package/templates/miniprogram/.editorconfig +0 -12
  502. package/templates/miniprogram/.prettierrc +0 -12
  503. package/templates/miniprogram/src/pages/demo/index.module.scss.d.ts +0 -5
  504. package/templates/miniprogram/src/pages/index/index.module.scss.d.ts +0 -5
  505. package/templates/umi-mobile/.prettierrc +0 -11
  506. package/templates/umi-mobile-h5+app/.prettierrc +0 -11
  507. package/templates/umi-mobile-native/.prettierrc +0 -11
  508. package/templates/umi-web/.prettierrc +0 -11
  509. package/templates/umi-web-screen/.prettierrc +0 -11
  510. /package/templates/miniprogram/src/pages/demo/{index.module.scss → style.scss} +0 -0
  511. /package/templates/miniprogram/src/pages/index/{index.module.scss → style.scss} +0 -0
@@ -0,0 +1,1292 @@
1
+ /******/ (function() { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ({
3
+
4
+ /***/ 353:
5
+ /***/ (function(module) {
6
+
7
+ "use strict";
8
+
9
+ module.exports = balanced;
10
+ function balanced(a, b, str) {
11
+ if (a instanceof RegExp) a = maybeMatch(a, str);
12
+ if (b instanceof RegExp) b = maybeMatch(b, str);
13
+
14
+ var r = range(a, b, str);
15
+
16
+ return r && {
17
+ start: r[0],
18
+ end: r[1],
19
+ pre: str.slice(0, r[0]),
20
+ body: str.slice(r[0] + a.length, r[1]),
21
+ post: str.slice(r[1] + b.length)
22
+ };
23
+ }
24
+
25
+ function maybeMatch(reg, str) {
26
+ var m = str.match(reg);
27
+ return m ? m[0] : null;
28
+ }
29
+
30
+ balanced.range = range;
31
+ function range(a, b, str) {
32
+ var begs, beg, left, right, result;
33
+ var ai = str.indexOf(a);
34
+ var bi = str.indexOf(b, ai + 1);
35
+ var i = ai;
36
+
37
+ if (ai >= 0 && bi > 0) {
38
+ if(a===b) {
39
+ return [ai, bi];
40
+ }
41
+ begs = [];
42
+ left = str.length;
43
+
44
+ while (i >= 0 && !result) {
45
+ if (i == ai) {
46
+ begs.push(i);
47
+ ai = str.indexOf(a, i + 1);
48
+ } else if (begs.length == 1) {
49
+ result = [ begs.pop(), bi ];
50
+ } else {
51
+ beg = begs.pop();
52
+ if (beg < left) {
53
+ left = beg;
54
+ right = bi;
55
+ }
56
+
57
+ bi = str.indexOf(b, i + 1);
58
+ }
59
+
60
+ i = ai < bi && ai >= 0 ? ai : bi;
61
+ }
62
+
63
+ if (begs.length) {
64
+ result = [ left, right ];
65
+ }
66
+ }
67
+
68
+ return result;
69
+ }
70
+
71
+
72
+ /***/ }),
73
+
74
+ /***/ 390:
75
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
76
+
77
+ var balanced = __nccwpck_require__(353);
78
+
79
+ module.exports = expandTop;
80
+
81
+ var escSlash = '\0SLASH'+Math.random()+'\0';
82
+ var escOpen = '\0OPEN'+Math.random()+'\0';
83
+ var escClose = '\0CLOSE'+Math.random()+'\0';
84
+ var escComma = '\0COMMA'+Math.random()+'\0';
85
+ var escPeriod = '\0PERIOD'+Math.random()+'\0';
86
+
87
+ function numeric(str) {
88
+ return parseInt(str, 10) == str
89
+ ? parseInt(str, 10)
90
+ : str.charCodeAt(0);
91
+ }
92
+
93
+ function escapeBraces(str) {
94
+ return str.split('\\\\').join(escSlash)
95
+ .split('\\{').join(escOpen)
96
+ .split('\\}').join(escClose)
97
+ .split('\\,').join(escComma)
98
+ .split('\\.').join(escPeriod);
99
+ }
100
+
101
+ function unescapeBraces(str) {
102
+ return str.split(escSlash).join('\\')
103
+ .split(escOpen).join('{')
104
+ .split(escClose).join('}')
105
+ .split(escComma).join(',')
106
+ .split(escPeriod).join('.');
107
+ }
108
+
109
+
110
+ // Basically just str.split(","), but handling cases
111
+ // where we have nested braced sections, which should be
112
+ // treated as individual members, like {a,{b,c},d}
113
+ function parseCommaParts(str) {
114
+ if (!str)
115
+ return [''];
116
+
117
+ var parts = [];
118
+ var m = balanced('{', '}', str);
119
+
120
+ if (!m)
121
+ return str.split(',');
122
+
123
+ var pre = m.pre;
124
+ var body = m.body;
125
+ var post = m.post;
126
+ var p = pre.split(',');
127
+
128
+ p[p.length-1] += '{' + body + '}';
129
+ var postParts = parseCommaParts(post);
130
+ if (post.length) {
131
+ p[p.length-1] += postParts.shift();
132
+ p.push.apply(p, postParts);
133
+ }
134
+
135
+ parts.push.apply(parts, p);
136
+
137
+ return parts;
138
+ }
139
+
140
+ function expandTop(str) {
141
+ if (!str)
142
+ return [];
143
+
144
+ // I don't know why Bash 4.3 does this, but it does.
145
+ // Anything starting with {} will have the first two bytes preserved
146
+ // but *only* at the top level, so {},a}b will not expand to anything,
147
+ // but a{},b}c will be expanded to [a}c,abc].
148
+ // One could argue that this is a bug in Bash, but since the goal of
149
+ // this module is to match Bash's rules, we escape a leading {}
150
+ if (str.substr(0, 2) === '{}') {
151
+ str = '\\{\\}' + str.substr(2);
152
+ }
153
+
154
+ return expand(escapeBraces(str), true).map(unescapeBraces);
155
+ }
156
+
157
+ function embrace(str) {
158
+ return '{' + str + '}';
159
+ }
160
+ function isPadded(el) {
161
+ return /^-?0\d/.test(el);
162
+ }
163
+
164
+ function lte(i, y) {
165
+ return i <= y;
166
+ }
167
+ function gte(i, y) {
168
+ return i >= y;
169
+ }
170
+
171
+ function expand(str, isTop) {
172
+ var expansions = [];
173
+
174
+ var m = balanced('{', '}', str);
175
+ if (!m) return [str];
176
+
177
+ // no need to expand pre, since it is guaranteed to be free of brace-sets
178
+ var pre = m.pre;
179
+ var post = m.post.length
180
+ ? expand(m.post, false)
181
+ : [''];
182
+
183
+ if (/\$$/.test(m.pre)) {
184
+ for (var k = 0; k < post.length; k++) {
185
+ var expansion = pre+ '{' + m.body + '}' + post[k];
186
+ expansions.push(expansion);
187
+ }
188
+ } else {
189
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
190
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
191
+ var isSequence = isNumericSequence || isAlphaSequence;
192
+ var isOptions = m.body.indexOf(',') >= 0;
193
+ if (!isSequence && !isOptions) {
194
+ // {a},b}
195
+ if (m.post.match(/,.*\}/)) {
196
+ str = m.pre + '{' + m.body + escClose + m.post;
197
+ return expand(str);
198
+ }
199
+ return [str];
200
+ }
201
+
202
+ var n;
203
+ if (isSequence) {
204
+ n = m.body.split(/\.\./);
205
+ } else {
206
+ n = parseCommaParts(m.body);
207
+ if (n.length === 1) {
208
+ // x{{a,b}}y ==> x{a}y x{b}y
209
+ n = expand(n[0], false).map(embrace);
210
+ if (n.length === 1) {
211
+ return post.map(function(p) {
212
+ return m.pre + n[0] + p;
213
+ });
214
+ }
215
+ }
216
+ }
217
+
218
+ // at this point, n is the parts, and we know it's not a comma set
219
+ // with a single entry.
220
+ var N;
221
+
222
+ if (isSequence) {
223
+ var x = numeric(n[0]);
224
+ var y = numeric(n[1]);
225
+ var width = Math.max(n[0].length, n[1].length)
226
+ var incr = n.length == 3
227
+ ? Math.abs(numeric(n[2]))
228
+ : 1;
229
+ var test = lte;
230
+ var reverse = y < x;
231
+ if (reverse) {
232
+ incr *= -1;
233
+ test = gte;
234
+ }
235
+ var pad = n.some(isPadded);
236
+
237
+ N = [];
238
+
239
+ for (var i = x; test(i, y); i += incr) {
240
+ var c;
241
+ if (isAlphaSequence) {
242
+ c = String.fromCharCode(i);
243
+ if (c === '\\')
244
+ c = '';
245
+ } else {
246
+ c = String(i);
247
+ if (pad) {
248
+ var need = width - c.length;
249
+ if (need > 0) {
250
+ var z = new Array(need + 1).join('0');
251
+ if (i < 0)
252
+ c = '-' + z + c.slice(1);
253
+ else
254
+ c = z + c;
255
+ }
256
+ }
257
+ }
258
+ N.push(c);
259
+ }
260
+ } else {
261
+ N = [];
262
+
263
+ for (var j = 0; j < n.length; j++) {
264
+ N.push.apply(N, expand(n[j], false));
265
+ }
266
+ }
267
+
268
+ for (var j = 0; j < N.length; j++) {
269
+ for (var k = 0; k < post.length; k++) {
270
+ var expansion = pre + N[j] + post[k];
271
+ if (!isTop || isSequence || expansion)
272
+ expansions.push(expansion);
273
+ }
274
+ }
275
+ }
276
+
277
+ return expansions;
278
+ }
279
+
280
+
281
+
282
+ /***/ }),
283
+
284
+ /***/ 570:
285
+ /***/ (function(module) {
286
+
287
+ const isWindows = typeof process === 'object' &&
288
+ process &&
289
+ process.platform === 'win32'
290
+ module.exports = isWindows ? { sep: '\\' } : { sep: '/' }
291
+
292
+
293
+ /***/ }),
294
+
295
+ /***/ 11:
296
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
297
+
298
+ const minimatch = module.exports = (p, pattern, options = {}) => {
299
+ assertValidPattern(pattern)
300
+
301
+ // shortcut: comments match nothing.
302
+ if (!options.nocomment && pattern.charAt(0) === '#') {
303
+ return false
304
+ }
305
+
306
+ return new Minimatch(pattern, options).match(p)
307
+ }
308
+
309
+ module.exports = minimatch
310
+
311
+ const path = __nccwpck_require__(570)
312
+ minimatch.sep = path.sep
313
+
314
+ const GLOBSTAR = Symbol('globstar **')
315
+ minimatch.GLOBSTAR = GLOBSTAR
316
+ const expand = __nccwpck_require__(390)
317
+
318
+ const plTypes = {
319
+ '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
320
+ '?': { open: '(?:', close: ')?' },
321
+ '+': { open: '(?:', close: ')+' },
322
+ '*': { open: '(?:', close: ')*' },
323
+ '@': { open: '(?:', close: ')' }
324
+ }
325
+
326
+ // any single thing other than /
327
+ // don't need to escape / when using new RegExp()
328
+ const qmark = '[^/]'
329
+
330
+ // * => any number of characters
331
+ const star = qmark + '*?'
332
+
333
+ // ** when dots are allowed. Anything goes, except .. and .
334
+ // not (^ or / followed by one or two dots followed by $ or /),
335
+ // followed by anything, any number of times.
336
+ const twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
337
+
338
+ // not a ^ or / followed by a dot,
339
+ // followed by anything, any number of times.
340
+ const twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
341
+
342
+ // "abc" -> { a:true, b:true, c:true }
343
+ const charSet = s => s.split('').reduce((set, c) => {
344
+ set[c] = true
345
+ return set
346
+ }, {})
347
+
348
+ // characters that need to be escaped in RegExp.
349
+ const reSpecials = charSet('().*{}+?[]^$\\!')
350
+
351
+ // characters that indicate we have to add the pattern start
352
+ const addPatternStartSet = charSet('[.(')
353
+
354
+ // normalizes slashes.
355
+ const slashSplit = /\/+/
356
+
357
+ minimatch.filter = (pattern, options = {}) =>
358
+ (p, i, list) => minimatch(p, pattern, options)
359
+
360
+ const ext = (a, b = {}) => {
361
+ const t = {}
362
+ Object.keys(a).forEach(k => t[k] = a[k])
363
+ Object.keys(b).forEach(k => t[k] = b[k])
364
+ return t
365
+ }
366
+
367
+ minimatch.defaults = def => {
368
+ if (!def || typeof def !== 'object' || !Object.keys(def).length) {
369
+ return minimatch
370
+ }
371
+
372
+ const orig = minimatch
373
+
374
+ const m = (p, pattern, options) => orig(p, pattern, ext(def, options))
375
+ m.Minimatch = class Minimatch extends orig.Minimatch {
376
+ constructor (pattern, options) {
377
+ super(pattern, ext(def, options))
378
+ }
379
+ }
380
+ m.Minimatch.defaults = options => orig.defaults(ext(def, options)).Minimatch
381
+ m.filter = (pattern, options) => orig.filter(pattern, ext(def, options))
382
+ m.defaults = options => orig.defaults(ext(def, options))
383
+ m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options))
384
+ m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options))
385
+ m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options))
386
+
387
+ return m
388
+ }
389
+
390
+
391
+
392
+
393
+
394
+ // Brace expansion:
395
+ // a{b,c}d -> abd acd
396
+ // a{b,}c -> abc ac
397
+ // a{0..3}d -> a0d a1d a2d a3d
398
+ // a{b,c{d,e}f}g -> abg acdfg acefg
399
+ // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
400
+ //
401
+ // Invalid sets are not expanded.
402
+ // a{2..}b -> a{2..}b
403
+ // a{b}c -> a{b}c
404
+ minimatch.braceExpand = (pattern, options) => braceExpand(pattern, options)
405
+
406
+ const braceExpand = (pattern, options = {}) => {
407
+ assertValidPattern(pattern)
408
+
409
+ // Thanks to Yeting Li <https://github.com/yetingli> for
410
+ // improving this regexp to avoid a ReDOS vulnerability.
411
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
412
+ // shortcut. no need to expand.
413
+ return [pattern]
414
+ }
415
+
416
+ return expand(pattern)
417
+ }
418
+
419
+ const MAX_PATTERN_LENGTH = 1024 * 64
420
+ const assertValidPattern = pattern => {
421
+ if (typeof pattern !== 'string') {
422
+ throw new TypeError('invalid pattern')
423
+ }
424
+
425
+ if (pattern.length > MAX_PATTERN_LENGTH) {
426
+ throw new TypeError('pattern is too long')
427
+ }
428
+ }
429
+
430
+ // parse a component of the expanded set.
431
+ // At this point, no pattern may contain "/" in it
432
+ // so we're going to return a 2d array, where each entry is the full
433
+ // pattern, split on '/', and then turned into a regular expression.
434
+ // A regexp is made at the end which joins each array with an
435
+ // escaped /, and another full one which joins each regexp with |.
436
+ //
437
+ // Following the lead of Bash 4.1, note that "**" only has special meaning
438
+ // when it is the *only* thing in a path portion. Otherwise, any series
439
+ // of * is equivalent to a single *. Globstar behavior is enabled by
440
+ // default, and can be disabled by setting options.noglobstar.
441
+ const SUBPARSE = Symbol('subparse')
442
+
443
+ minimatch.makeRe = (pattern, options) =>
444
+ new Minimatch(pattern, options || {}).makeRe()
445
+
446
+ minimatch.match = (list, pattern, options = {}) => {
447
+ const mm = new Minimatch(pattern, options)
448
+ list = list.filter(f => mm.match(f))
449
+ if (mm.options.nonull && !list.length) {
450
+ list.push(pattern)
451
+ }
452
+ return list
453
+ }
454
+
455
+ // replace stuff like \* with *
456
+ const globUnescape = s => s.replace(/\\(.)/g, '$1')
457
+ const charUnescape = s => s.replace(/\\([^-\]])/g, '$1')
458
+ const regExpEscape = s => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
459
+ const braExpEscape = s => s.replace(/[[\]\\]/g, '\\$&')
460
+
461
+ class Minimatch {
462
+ constructor (pattern, options) {
463
+ assertValidPattern(pattern)
464
+
465
+ if (!options) options = {}
466
+
467
+ this.options = options
468
+ this.set = []
469
+ this.pattern = pattern
470
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape ||
471
+ options.allowWindowsEscape === false
472
+ if (this.windowsPathsNoEscape) {
473
+ this.pattern = this.pattern.replace(/\\/g, '/')
474
+ }
475
+ this.regexp = null
476
+ this.negate = false
477
+ this.comment = false
478
+ this.empty = false
479
+ this.partial = !!options.partial
480
+
481
+ // make the set of regexps etc.
482
+ this.make()
483
+ }
484
+
485
+ debug () {}
486
+
487
+ make () {
488
+ const pattern = this.pattern
489
+ const options = this.options
490
+
491
+ // empty patterns and comments match nothing.
492
+ if (!options.nocomment && pattern.charAt(0) === '#') {
493
+ this.comment = true
494
+ return
495
+ }
496
+ if (!pattern) {
497
+ this.empty = true
498
+ return
499
+ }
500
+
501
+ // step 1: figure out negation, etc.
502
+ this.parseNegate()
503
+
504
+ // step 2: expand braces
505
+ let set = this.globSet = this.braceExpand()
506
+
507
+ if (options.debug) this.debug = (...args) => console.error(...args)
508
+
509
+ this.debug(this.pattern, set)
510
+
511
+ // step 3: now we have a set, so turn each one into a series of path-portion
512
+ // matching patterns.
513
+ // These will be regexps, except in the case of "**", which is
514
+ // set to the GLOBSTAR object for globstar behavior,
515
+ // and will not contain any / characters
516
+ set = this.globParts = set.map(s => s.split(slashSplit))
517
+
518
+ this.debug(this.pattern, set)
519
+
520
+ // glob --> regexps
521
+ set = set.map((s, si, set) => s.map(this.parse, this))
522
+
523
+ this.debug(this.pattern, set)
524
+
525
+ // filter out everything that didn't compile properly.
526
+ set = set.filter(s => s.indexOf(false) === -1)
527
+
528
+ this.debug(this.pattern, set)
529
+
530
+ this.set = set
531
+ }
532
+
533
+ parseNegate () {
534
+ if (this.options.nonegate) return
535
+
536
+ const pattern = this.pattern
537
+ let negate = false
538
+ let negateOffset = 0
539
+
540
+ for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
541
+ negate = !negate
542
+ negateOffset++
543
+ }
544
+
545
+ if (negateOffset) this.pattern = pattern.slice(negateOffset)
546
+ this.negate = negate
547
+ }
548
+
549
+ // set partial to true to test if, for example,
550
+ // "/a/b" matches the start of "/*/b/*/d"
551
+ // Partial means, if you run out of file before you run
552
+ // out of pattern, then that's fine, as long as all
553
+ // the parts match.
554
+ matchOne (file, pattern, partial) {
555
+ var options = this.options
556
+
557
+ this.debug('matchOne',
558
+ { 'this': this, file: file, pattern: pattern })
559
+
560
+ this.debug('matchOne', file.length, pattern.length)
561
+
562
+ for (var fi = 0,
563
+ pi = 0,
564
+ fl = file.length,
565
+ pl = pattern.length
566
+ ; (fi < fl) && (pi < pl)
567
+ ; fi++, pi++) {
568
+ this.debug('matchOne loop')
569
+ var p = pattern[pi]
570
+ var f = file[fi]
571
+
572
+ this.debug(pattern, p, f)
573
+
574
+ // should be impossible.
575
+ // some invalid regexp stuff in the set.
576
+ /* istanbul ignore if */
577
+ if (p === false) return false
578
+
579
+ if (p === GLOBSTAR) {
580
+ this.debug('GLOBSTAR', [pattern, p, f])
581
+
582
+ // "**"
583
+ // a/**/b/**/c would match the following:
584
+ // a/b/x/y/z/c
585
+ // a/x/y/z/b/c
586
+ // a/b/x/b/x/c
587
+ // a/b/c
588
+ // To do this, take the rest of the pattern after
589
+ // the **, and see if it would match the file remainder.
590
+ // If so, return success.
591
+ // If not, the ** "swallows" a segment, and try again.
592
+ // This is recursively awful.
593
+ //
594
+ // a/**/b/**/c matching a/b/x/y/z/c
595
+ // - a matches a
596
+ // - doublestar
597
+ // - matchOne(b/x/y/z/c, b/**/c)
598
+ // - b matches b
599
+ // - doublestar
600
+ // - matchOne(x/y/z/c, c) -> no
601
+ // - matchOne(y/z/c, c) -> no
602
+ // - matchOne(z/c, c) -> no
603
+ // - matchOne(c, c) yes, hit
604
+ var fr = fi
605
+ var pr = pi + 1
606
+ if (pr === pl) {
607
+ this.debug('** at the end')
608
+ // a ** at the end will just swallow the rest.
609
+ // We have found a match.
610
+ // however, it will not swallow /.x, unless
611
+ // options.dot is set.
612
+ // . and .. are *never* matched by **, for explosively
613
+ // exponential reasons.
614
+ for (; fi < fl; fi++) {
615
+ if (file[fi] === '.' || file[fi] === '..' ||
616
+ (!options.dot && file[fi].charAt(0) === '.')) return false
617
+ }
618
+ return true
619
+ }
620
+
621
+ // ok, let's see if we can swallow whatever we can.
622
+ while (fr < fl) {
623
+ var swallowee = file[fr]
624
+
625
+ this.debug('\nglobstar while', file, fr, pattern, pr, swallowee)
626
+
627
+ // XXX remove this slice. Just pass the start index.
628
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
629
+ this.debug('globstar found match!', fr, fl, swallowee)
630
+ // found a match.
631
+ return true
632
+ } else {
633
+ // can't swallow "." or ".." ever.
634
+ // can only swallow ".foo" when explicitly asked.
635
+ if (swallowee === '.' || swallowee === '..' ||
636
+ (!options.dot && swallowee.charAt(0) === '.')) {
637
+ this.debug('dot detected!', file, fr, pattern, pr)
638
+ break
639
+ }
640
+
641
+ // ** swallows a segment, and continue.
642
+ this.debug('globstar swallow a segment, and continue')
643
+ fr++
644
+ }
645
+ }
646
+
647
+ // no match was found.
648
+ // However, in partial mode, we can't say this is necessarily over.
649
+ // If there's more *pattern* left, then
650
+ /* istanbul ignore if */
651
+ if (partial) {
652
+ // ran out of file
653
+ this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
654
+ if (fr === fl) return true
655
+ }
656
+ return false
657
+ }
658
+
659
+ // something other than **
660
+ // non-magic patterns just have to match exactly
661
+ // patterns with magic have been turned into regexps.
662
+ var hit
663
+ if (typeof p === 'string') {
664
+ hit = f === p
665
+ this.debug('string match', p, f, hit)
666
+ } else {
667
+ hit = f.match(p)
668
+ this.debug('pattern match', p, f, hit)
669
+ }
670
+
671
+ if (!hit) return false
672
+ }
673
+
674
+ // Note: ending in / means that we'll get a final ""
675
+ // at the end of the pattern. This can only match a
676
+ // corresponding "" at the end of the file.
677
+ // If the file ends in /, then it can only match a
678
+ // a pattern that ends in /, unless the pattern just
679
+ // doesn't have any more for it. But, a/b/ should *not*
680
+ // match "a/b/*", even though "" matches against the
681
+ // [^/]*? pattern, except in partial mode, where it might
682
+ // simply not be reached yet.
683
+ // However, a/b/ should still satisfy a/*
684
+
685
+ // now either we fell off the end of the pattern, or we're done.
686
+ if (fi === fl && pi === pl) {
687
+ // ran out of pattern and filename at the same time.
688
+ // an exact hit!
689
+ return true
690
+ } else if (fi === fl) {
691
+ // ran out of file, but still had pattern left.
692
+ // this is ok if we're doing the match as part of
693
+ // a glob fs traversal.
694
+ return partial
695
+ } else /* istanbul ignore else */ if (pi === pl) {
696
+ // ran out of pattern, still have file left.
697
+ // this is only acceptable if we're on the very last
698
+ // empty segment of a file with a trailing slash.
699
+ // a/* should match a/b/
700
+ return (fi === fl - 1) && (file[fi] === '')
701
+ }
702
+
703
+ // should be unreachable.
704
+ /* istanbul ignore next */
705
+ throw new Error('wtf?')
706
+ }
707
+
708
+ braceExpand () {
709
+ return braceExpand(this.pattern, this.options)
710
+ }
711
+
712
+ parse (pattern, isSub) {
713
+ assertValidPattern(pattern)
714
+
715
+ const options = this.options
716
+
717
+ // shortcuts
718
+ if (pattern === '**') {
719
+ if (!options.noglobstar)
720
+ return GLOBSTAR
721
+ else
722
+ pattern = '*'
723
+ }
724
+ if (pattern === '') return ''
725
+
726
+ let re = ''
727
+ let hasMagic = false
728
+ let escaping = false
729
+ // ? => one single character
730
+ const patternListStack = []
731
+ const negativeLists = []
732
+ let stateChar
733
+ let inClass = false
734
+ let reClassStart = -1
735
+ let classStart = -1
736
+ let cs
737
+ let pl
738
+ let sp
739
+ // . and .. never match anything that doesn't start with .,
740
+ // even when options.dot is set. However, if the pattern
741
+ // starts with ., then traversal patterns can match.
742
+ let dotTravAllowed = pattern.charAt(0) === '.'
743
+ let dotFileAllowed = options.dot || dotTravAllowed
744
+ const patternStart = () =>
745
+ dotTravAllowed
746
+ ? ''
747
+ : dotFileAllowed
748
+ ? '(?!(?:^|\\/)\\.{1,2}(?:$|\\/))'
749
+ : '(?!\\.)'
750
+ const subPatternStart = (p) =>
751
+ p.charAt(0) === '.'
752
+ ? ''
753
+ : options.dot
754
+ ? '(?!(?:^|\\/)\\.{1,2}(?:$|\\/))'
755
+ : '(?!\\.)'
756
+
757
+
758
+ const clearStateChar = () => {
759
+ if (stateChar) {
760
+ // we had some state-tracking character
761
+ // that wasn't consumed by this pass.
762
+ switch (stateChar) {
763
+ case '*':
764
+ re += star
765
+ hasMagic = true
766
+ break
767
+ case '?':
768
+ re += qmark
769
+ hasMagic = true
770
+ break
771
+ default:
772
+ re += '\\' + stateChar
773
+ break
774
+ }
775
+ this.debug('clearStateChar %j %j', stateChar, re)
776
+ stateChar = false
777
+ }
778
+ }
779
+
780
+ for (let i = 0, c; (i < pattern.length) && (c = pattern.charAt(i)); i++) {
781
+ this.debug('%s\t%s %s %j', pattern, i, re, c)
782
+
783
+ // skip over any that are escaped.
784
+ if (escaping) {
785
+ /* istanbul ignore next - completely not allowed, even escaped. */
786
+ if (c === '/') {
787
+ return false
788
+ }
789
+
790
+ if (reSpecials[c]) {
791
+ re += '\\'
792
+ }
793
+ re += c
794
+ escaping = false
795
+ continue
796
+ }
797
+
798
+ switch (c) {
799
+ /* istanbul ignore next */
800
+ case '/': {
801
+ // Should already be path-split by now.
802
+ return false
803
+ }
804
+
805
+ case '\\':
806
+ if (inClass && pattern.charAt(i + 1) === '-') {
807
+ re += c
808
+ continue
809
+ }
810
+
811
+ clearStateChar()
812
+ escaping = true
813
+ continue
814
+
815
+ // the various stateChar values
816
+ // for the "extglob" stuff.
817
+ case '?':
818
+ case '*':
819
+ case '+':
820
+ case '@':
821
+ case '!':
822
+ this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
823
+
824
+ // all of those are literals inside a class, except that
825
+ // the glob [!a] means [^a] in regexp
826
+ if (inClass) {
827
+ this.debug(' in class')
828
+ if (c === '!' && i === classStart + 1) c = '^'
829
+ re += c
830
+ continue
831
+ }
832
+
833
+ // if we already have a stateChar, then it means
834
+ // that there was something like ** or +? in there.
835
+ // Handle the stateChar, then proceed with this one.
836
+ this.debug('call clearStateChar %j', stateChar)
837
+ clearStateChar()
838
+ stateChar = c
839
+ // if extglob is disabled, then +(asdf|foo) isn't a thing.
840
+ // just clear the statechar *now*, rather than even diving into
841
+ // the patternList stuff.
842
+ if (options.noext) clearStateChar()
843
+ continue
844
+
845
+ case '(': {
846
+ if (inClass) {
847
+ re += '('
848
+ continue
849
+ }
850
+
851
+ if (!stateChar) {
852
+ re += '\\('
853
+ continue
854
+ }
855
+
856
+ const plEntry = {
857
+ type: stateChar,
858
+ start: i - 1,
859
+ reStart: re.length,
860
+ open: plTypes[stateChar].open,
861
+ close: plTypes[stateChar].close,
862
+ }
863
+ this.debug(this.pattern, '\t', plEntry)
864
+ patternListStack.push(plEntry)
865
+ // negation is (?:(?!(?:js)(?:<rest>))[^/]*)
866
+ re += plEntry.open
867
+ // next entry starts with a dot maybe?
868
+ if (plEntry.start === 0 && plEntry.type !== '!') {
869
+ dotTravAllowed = true
870
+ re += subPatternStart(pattern.slice(i + 1))
871
+ }
872
+ this.debug('plType %j %j', stateChar, re)
873
+ stateChar = false
874
+ continue
875
+ }
876
+
877
+ case ')': {
878
+ const plEntry = patternListStack[patternListStack.length - 1]
879
+ if (inClass || !plEntry) {
880
+ re += '\\)'
881
+ continue
882
+ }
883
+ patternListStack.pop()
884
+
885
+ // closing an extglob
886
+ clearStateChar()
887
+ hasMagic = true
888
+ pl = plEntry
889
+ // negation is (?:(?!js)[^/]*)
890
+ // The others are (?:<pattern>)<type>
891
+ re += pl.close
892
+ if (pl.type === '!') {
893
+ negativeLists.push(Object.assign(pl, { reEnd: re.length }))
894
+ }
895
+ continue
896
+ }
897
+
898
+ case '|': {
899
+ const plEntry = patternListStack[patternListStack.length - 1]
900
+ if (inClass || !plEntry) {
901
+ re += '\\|'
902
+ continue
903
+ }
904
+
905
+ clearStateChar()
906
+ re += '|'
907
+ // next subpattern can start with a dot?
908
+ if (plEntry.start === 0 && plEntry.type !== '!') {
909
+ dotTravAllowed = true
910
+ re += subPatternStart(pattern.slice(i + 1))
911
+ }
912
+ continue
913
+ }
914
+
915
+ // these are mostly the same in regexp and glob
916
+ case '[':
917
+ // swallow any state-tracking char before the [
918
+ clearStateChar()
919
+
920
+ if (inClass) {
921
+ re += '\\' + c
922
+ continue
923
+ }
924
+
925
+ inClass = true
926
+ classStart = i
927
+ reClassStart = re.length
928
+ re += c
929
+ continue
930
+
931
+ case ']':
932
+ // a right bracket shall lose its special
933
+ // meaning and represent itself in
934
+ // a bracket expression if it occurs
935
+ // first in the list. -- POSIX.2 2.8.3.2
936
+ if (i === classStart + 1 || !inClass) {
937
+ re += '\\' + c
938
+ continue
939
+ }
940
+
941
+ // split where the last [ was, make sure we don't have
942
+ // an invalid re. if so, re-walk the contents of the
943
+ // would-be class to re-translate any characters that
944
+ // were passed through as-is
945
+ // TODO: It would probably be faster to determine this
946
+ // without a try/catch and a new RegExp, but it's tricky
947
+ // to do safely. For now, this is safe and works.
948
+ cs = pattern.substring(classStart + 1, i)
949
+ try {
950
+ RegExp('[' + braExpEscape(charUnescape(cs)) + ']')
951
+ // looks good, finish up the class.
952
+ re += c
953
+ } catch (er) {
954
+ // out of order ranges in JS are errors, but in glob syntax,
955
+ // they're just a range that matches nothing.
956
+ re = re.substring(0, reClassStart) + '(?:$.)' // match nothing ever
957
+ }
958
+ hasMagic = true
959
+ inClass = false
960
+ continue
961
+
962
+ default:
963
+ // swallow any state char that wasn't consumed
964
+ clearStateChar()
965
+
966
+ if (reSpecials[c] && !(c === '^' && inClass)) {
967
+ re += '\\'
968
+ }
969
+
970
+ re += c
971
+ break
972
+
973
+ } // switch
974
+ } // for
975
+
976
+ // handle the case where we left a class open.
977
+ // "[abc" is valid, equivalent to "\[abc"
978
+ if (inClass) {
979
+ // split where the last [ was, and escape it
980
+ // this is a huge pita. We now have to re-walk
981
+ // the contents of the would-be class to re-translate
982
+ // any characters that were passed through as-is
983
+ cs = pattern.slice(classStart + 1)
984
+ sp = this.parse(cs, SUBPARSE)
985
+ re = re.substring(0, reClassStart) + '\\[' + sp[0]
986
+ hasMagic = hasMagic || sp[1]
987
+ }
988
+
989
+ // handle the case where we had a +( thing at the *end*
990
+ // of the pattern.
991
+ // each pattern list stack adds 3 chars, and we need to go through
992
+ // and escape any | chars that were passed through as-is for the regexp.
993
+ // Go through and escape them, taking care not to double-escape any
994
+ // | chars that were already escaped.
995
+ for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
996
+ let tail
997
+ tail = re.slice(pl.reStart + pl.open.length)
998
+ this.debug('setting tail', re, pl)
999
+ // maybe some even number of \, then maybe 1 \, followed by a |
1000
+ tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_, $1, $2) => {
1001
+ /* istanbul ignore else - should already be done */
1002
+ if (!$2) {
1003
+ // the | isn't already escaped, so escape it.
1004
+ $2 = '\\'
1005
+ }
1006
+
1007
+ // need to escape all those slashes *again*, without escaping the
1008
+ // one that we need for escaping the | character. As it works out,
1009
+ // escaping an even number of slashes can be done by simply repeating
1010
+ // it exactly after itself. That's why this trick works.
1011
+ //
1012
+ // I am sorry that you have to see this.
1013
+ return $1 + $1 + $2 + '|'
1014
+ })
1015
+
1016
+ this.debug('tail=%j\n %s', tail, tail, pl, re)
1017
+ const t = pl.type === '*' ? star
1018
+ : pl.type === '?' ? qmark
1019
+ : '\\' + pl.type
1020
+
1021
+ hasMagic = true
1022
+ re = re.slice(0, pl.reStart) + t + '\\(' + tail
1023
+ }
1024
+
1025
+ // handle trailing things that only matter at the very end.
1026
+ clearStateChar()
1027
+ if (escaping) {
1028
+ // trailing \\
1029
+ re += '\\\\'
1030
+ }
1031
+
1032
+ // only need to apply the nodot start if the re starts with
1033
+ // something that could conceivably capture a dot
1034
+ const addPatternStart = addPatternStartSet[re.charAt(0)]
1035
+
1036
+ // Hack to work around lack of negative lookbehind in JS
1037
+ // A pattern like: *.!(x).!(y|z) needs to ensure that a name
1038
+ // like 'a.xyz.yz' doesn't match. So, the first negative
1039
+ // lookahead, has to look ALL the way ahead, to the end of
1040
+ // the pattern.
1041
+ for (let n = negativeLists.length - 1; n > -1; n--) {
1042
+ const nl = negativeLists[n]
1043
+
1044
+ const nlBefore = re.slice(0, nl.reStart)
1045
+ const nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
1046
+ let nlAfter = re.slice(nl.reEnd)
1047
+ const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter
1048
+
1049
+ // Handle nested stuff like *(*.js|!(*.json)), where open parens
1050
+ // mean that we should *not* include the ) in the bit that is considered
1051
+ // "after" the negated section.
1052
+ const closeParensBefore = nlBefore.split(')').length
1053
+ const openParensBefore = nlBefore.split('(').length - closeParensBefore
1054
+ let cleanAfter = nlAfter
1055
+ for (let i = 0; i < openParensBefore; i++) {
1056
+ cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
1057
+ }
1058
+ nlAfter = cleanAfter
1059
+
1060
+ const dollar = nlAfter === '' && isSub !== SUBPARSE ? '(?:$|\\/)' : ''
1061
+
1062
+ re = nlBefore + nlFirst + nlAfter + dollar + nlLast
1063
+ }
1064
+
1065
+ // if the re is not "" at this point, then we need to make sure
1066
+ // it doesn't match against an empty path part.
1067
+ // Otherwise a/* will match a/, which it should not.
1068
+ if (re !== '' && hasMagic) {
1069
+ re = '(?=.)' + re
1070
+ }
1071
+
1072
+ if (addPatternStart) {
1073
+ re = patternStart() + re
1074
+ }
1075
+
1076
+ // parsing just a piece of a larger pattern.
1077
+ if (isSub === SUBPARSE) {
1078
+ return [re, hasMagic]
1079
+ }
1080
+
1081
+ // if it's nocase, and the lcase/uppercase don't match, it's magic
1082
+ if (options.nocase && !hasMagic) {
1083
+ hasMagic = pattern.toUpperCase() !== pattern.toLowerCase()
1084
+ }
1085
+
1086
+ // skip the regexp for non-magical patterns
1087
+ // unescape anything in it, though, so that it'll be
1088
+ // an exact match against a file etc.
1089
+ if (!hasMagic) {
1090
+ return globUnescape(pattern)
1091
+ }
1092
+
1093
+ const flags = options.nocase ? 'i' : ''
1094
+ try {
1095
+ return Object.assign(new RegExp('^' + re + '$', flags), {
1096
+ _glob: pattern,
1097
+ _src: re,
1098
+ })
1099
+ } catch (er) /* istanbul ignore next - should be impossible */ {
1100
+ // If it was an invalid regular expression, then it can't match
1101
+ // anything. This trick looks for a character after the end of
1102
+ // the string, which is of course impossible, except in multi-line
1103
+ // mode, but it's not a /m regex.
1104
+ return new RegExp('$.')
1105
+ }
1106
+ }
1107
+
1108
+ makeRe () {
1109
+ if (this.regexp || this.regexp === false) return this.regexp
1110
+
1111
+ // at this point, this.set is a 2d array of partial
1112
+ // pattern strings, or "**".
1113
+ //
1114
+ // It's better to use .match(). This function shouldn't
1115
+ // be used, really, but it's pretty convenient sometimes,
1116
+ // when you just want to work with a regex.
1117
+ const set = this.set
1118
+
1119
+ if (!set.length) {
1120
+ this.regexp = false
1121
+ return this.regexp
1122
+ }
1123
+ const options = this.options
1124
+
1125
+ const twoStar = options.noglobstar ? star
1126
+ : options.dot ? twoStarDot
1127
+ : twoStarNoDot
1128
+ const flags = options.nocase ? 'i' : ''
1129
+
1130
+ // coalesce globstars and regexpify non-globstar patterns
1131
+ // if it's the only item, then we just do one twoStar
1132
+ // if it's the first, and there are more, prepend (\/|twoStar\/)? to next
1133
+ // if it's the last, append (\/twoStar|) to previous
1134
+ // if it's in the middle, append (\/|\/twoStar\/) to previous
1135
+ // then filter out GLOBSTAR symbols
1136
+ let re = set.map(pattern => {
1137
+ pattern = pattern.map(p =>
1138
+ typeof p === 'string' ? regExpEscape(p)
1139
+ : p === GLOBSTAR ? GLOBSTAR
1140
+ : p._src
1141
+ ).reduce((set, p) => {
1142
+ if (!(set[set.length - 1] === GLOBSTAR && p === GLOBSTAR)) {
1143
+ set.push(p)
1144
+ }
1145
+ return set
1146
+ }, [])
1147
+ pattern.forEach((p, i) => {
1148
+ if (p !== GLOBSTAR || pattern[i-1] === GLOBSTAR) {
1149
+ return
1150
+ }
1151
+ if (i === 0) {
1152
+ if (pattern.length > 1) {
1153
+ pattern[i+1] = '(?:\\\/|' + twoStar + '\\\/)?' + pattern[i+1]
1154
+ } else {
1155
+ pattern[i] = twoStar
1156
+ }
1157
+ } else if (i === pattern.length - 1) {
1158
+ pattern[i-1] += '(?:\\\/|' + twoStar + ')?'
1159
+ } else {
1160
+ pattern[i-1] += '(?:\\\/|\\\/' + twoStar + '\\\/)' + pattern[i+1]
1161
+ pattern[i+1] = GLOBSTAR
1162
+ }
1163
+ })
1164
+ return pattern.filter(p => p !== GLOBSTAR).join('/')
1165
+ }).join('|')
1166
+
1167
+ // must match entire pattern
1168
+ // ending in a * or ** will make it less strict.
1169
+ re = '^(?:' + re + ')$'
1170
+
1171
+ // can match anything, as long as it's not this.
1172
+ if (this.negate) re = '^(?!' + re + ').*$'
1173
+
1174
+ try {
1175
+ this.regexp = new RegExp(re, flags)
1176
+ } catch (ex) /* istanbul ignore next - should be impossible */ {
1177
+ this.regexp = false
1178
+ }
1179
+ return this.regexp
1180
+ }
1181
+
1182
+ match (f, partial = this.partial) {
1183
+ this.debug('match', f, this.pattern)
1184
+ // short-circuit in the case of busted things.
1185
+ // comments, etc.
1186
+ if (this.comment) return false
1187
+ if (this.empty) return f === ''
1188
+
1189
+ if (f === '/' && partial) return true
1190
+
1191
+ const options = this.options
1192
+
1193
+ // windows: need to use /, not \
1194
+ if (path.sep !== '/') {
1195
+ f = f.split(path.sep).join('/')
1196
+ }
1197
+
1198
+ // treat the test path as a set of pathparts.
1199
+ f = f.split(slashSplit)
1200
+ this.debug(this.pattern, 'split', f)
1201
+
1202
+ // just ONE of the pattern sets in this.set needs to match
1203
+ // in order for it to be valid. If negating, then just one
1204
+ // match means that we have failed.
1205
+ // Either way, return on the first hit.
1206
+
1207
+ const set = this.set
1208
+ this.debug(this.pattern, 'set', set)
1209
+
1210
+ // Find the basename of the path by looking for the last non-empty segment
1211
+ let filename
1212
+ for (let i = f.length - 1; i >= 0; i--) {
1213
+ filename = f[i]
1214
+ if (filename) break
1215
+ }
1216
+
1217
+ for (let i = 0; i < set.length; i++) {
1218
+ const pattern = set[i]
1219
+ let file = f
1220
+ if (options.matchBase && pattern.length === 1) {
1221
+ file = [filename]
1222
+ }
1223
+ const hit = this.matchOne(file, pattern, partial)
1224
+ if (hit) {
1225
+ if (options.flipNegate) return true
1226
+ return !this.negate
1227
+ }
1228
+ }
1229
+
1230
+ // didn't get any hits. this is success if it's a negative
1231
+ // pattern, failure otherwise.
1232
+ if (options.flipNegate) return false
1233
+ return this.negate
1234
+ }
1235
+
1236
+ static defaults (def) {
1237
+ return minimatch.defaults(def).Minimatch
1238
+ }
1239
+ }
1240
+
1241
+ minimatch.Minimatch = Minimatch
1242
+
1243
+
1244
+ /***/ })
1245
+
1246
+ /******/ });
1247
+ /************************************************************************/
1248
+ /******/ // The module cache
1249
+ /******/ var __webpack_module_cache__ = {};
1250
+ /******/
1251
+ /******/ // The require function
1252
+ /******/ function __nccwpck_require__(moduleId) {
1253
+ /******/ // Check if module is in cache
1254
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1255
+ /******/ if (cachedModule !== undefined) {
1256
+ /******/ return cachedModule.exports;
1257
+ /******/ }
1258
+ /******/ // Create a new module (and put it into the cache)
1259
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1260
+ /******/ // no module.id needed
1261
+ /******/ // no module.loaded needed
1262
+ /******/ exports: {}
1263
+ /******/ };
1264
+ /******/
1265
+ /******/ // Execute the module function
1266
+ /******/ var threw = true;
1267
+ /******/ try {
1268
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
1269
+ /******/ threw = false;
1270
+ /******/ } finally {
1271
+ /******/ if(threw) delete __webpack_module_cache__[moduleId];
1272
+ /******/ }
1273
+ /******/
1274
+ /******/ // Return the exports of the module
1275
+ /******/ return module.exports;
1276
+ /******/ }
1277
+ /******/
1278
+ /************************************************************************/
1279
+ /******/ /* webpack/runtime/compat */
1280
+ /******/
1281
+ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
1282
+ /******/
1283
+ /************************************************************************/
1284
+ /******/
1285
+ /******/ // startup
1286
+ /******/ // Load entry module and return exports
1287
+ /******/ // This entry module is referenced by other modules so it can't be inlined
1288
+ /******/ var __webpack_exports__ = __nccwpck_require__(11);
1289
+ /******/ module.exports = __webpack_exports__;
1290
+ /******/
1291
+ /******/ })()
1292
+ ;