@ankhorage/zora 27.3.9 → 27.4.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 (305) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/features/color/ColorHueScale.d.ts +4 -0
  4. package/dist/features/color/ColorHueScale.d.ts.map +1 -0
  5. package/dist/features/color/ColorHueScale.js +22 -0
  6. package/dist/features/color/ColorHueScale.js.map +1 -0
  7. package/dist/features/color/ColorPicker.d.ts +5 -0
  8. package/dist/features/color/ColorPicker.d.ts.map +1 -0
  9. package/dist/features/color/ColorPicker.js +48 -0
  10. package/dist/features/color/ColorPicker.js.map +1 -0
  11. package/dist/features/color/ColorTone.d.ts +5 -0
  12. package/dist/features/color/ColorTone.d.ts.map +1 -0
  13. package/dist/features/color/ColorTone.js +65 -0
  14. package/dist/features/color/ColorTone.js.map +1 -0
  15. package/dist/features/color/ColorWheel.d.ts +5 -0
  16. package/dist/features/color/ColorWheel.d.ts.map +1 -0
  17. package/dist/features/color/ColorWheel.js +125 -0
  18. package/dist/features/color/ColorWheel.js.map +1 -0
  19. package/dist/features/color/ColorWheelKeyboardProxy.d.ts +10 -0
  20. package/dist/features/color/ColorWheelKeyboardProxy.d.ts.map +1 -0
  21. package/dist/features/color/ColorWheelKeyboardProxy.js +2 -0
  22. package/dist/features/color/ColorWheelKeyboardProxy.js.map +1 -0
  23. package/dist/features/color/ColorWheelKeyboardProxy.native.d.ts +4 -0
  24. package/dist/features/color/ColorWheelKeyboardProxy.native.d.ts.map +1 -0
  25. package/dist/features/color/ColorWheelKeyboardProxy.native.js +17 -0
  26. package/dist/features/color/ColorWheelKeyboardProxy.native.js.map +1 -0
  27. package/dist/features/color/ColorWheelKeyboardProxy.web.d.ts +5 -0
  28. package/dist/features/color/ColorWheelKeyboardProxy.web.d.ts.map +1 -0
  29. package/dist/features/color/ColorWheelKeyboardProxy.web.js +29 -0
  30. package/dist/features/color/ColorWheelKeyboardProxy.web.js.map +1 -0
  31. package/dist/features/color/public.d.ts +6 -0
  32. package/dist/features/color/public.d.ts.map +1 -0
  33. package/dist/features/color/public.js +5 -0
  34. package/dist/features/color/public.js.map +1 -0
  35. package/dist/features/color/utils/resolveColorAtHue.d.ts +4 -0
  36. package/dist/features/color/utils/resolveColorAtHue.d.ts.map +1 -0
  37. package/dist/features/color/utils/resolveColorAtHue.js +12 -0
  38. package/dist/features/color/utils/resolveColorAtHue.js.map +1 -0
  39. package/dist/features/color/utils/resolveColorHue.d.ts +4 -0
  40. package/dist/features/color/utils/resolveColorHue.d.ts.map +1 -0
  41. package/dist/features/color/utils/resolveColorHue.js +8 -0
  42. package/dist/features/color/utils/resolveColorHue.js.map +1 -0
  43. package/dist/features/color/utils/resolveOklchColor.d.ts +5 -0
  44. package/dist/features/color/utils/resolveOklchColor.d.ts.map +1 -0
  45. package/dist/features/color/utils/resolveOklchColor.js +10 -0
  46. package/dist/features/color/utils/resolveOklchColor.js.map +1 -0
  47. package/dist/features/color/utils/resolveWheelColor.d.ts +4 -0
  48. package/dist/features/color/utils/resolveWheelColor.d.ts.map +1 -0
  49. package/dist/features/color/utils/resolveWheelColor.js +17 -0
  50. package/dist/features/color/utils/resolveWheelColor.js.map +1 -0
  51. package/dist/features/color/utils/resolveWheelColorComponents.d.ts +7 -0
  52. package/dist/features/color/utils/resolveWheelColorComponents.d.ts.map +1 -0
  53. package/dist/features/color/utils/resolveWheelColorComponents.js +11 -0
  54. package/dist/features/color/utils/resolveWheelColorComponents.js.map +1 -0
  55. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts.map +1 -1
  56. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js +11 -7
  57. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js.map +1 -1
  58. package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.d.ts +2 -2
  59. package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.d.ts.map +1 -1
  60. package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.js +7 -7
  61. package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.js.map +1 -1
  62. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphPointerDownReader.d.ts +7 -0
  63. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphPointerDownReader.d.ts.map +1 -0
  64. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphPointerDownReader.js +40 -0
  65. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphPointerDownReader.js.map +1 -0
  66. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.d.ts +1 -1
  67. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.d.ts.map +1 -1
  68. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js +28 -4
  69. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js.map +1 -1
  70. package/dist/features/selection/application/resolveSelectionEventIntent.d.ts +1 -1
  71. package/dist/features/selection/application/resolveSelectionEventIntent.d.ts.map +1 -1
  72. package/dist/features/selection/application/resolveSelectionEventIntent.js +14 -5
  73. package/dist/features/selection/application/resolveSelectionEventIntent.js.map +1 -1
  74. package/dist/index.d.ts +2 -0
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +1 -0
  77. package/dist/index.js.map +1 -1
  78. package/dist/types/color.d.ts +70 -0
  79. package/dist/types/color.d.ts.map +1 -0
  80. package/dist/types/color.js +2 -0
  81. package/dist/types/color.js.map +1 -0
  82. package/package.json +3 -1
  83. package/src/audit.test.ts +3 -3
  84. package/src/features/color/ColorHueScale.tsx +57 -0
  85. package/src/features/color/ColorPicker.tsx +105 -0
  86. package/src/features/color/ColorTone.tsx +137 -0
  87. package/src/features/color/ColorWheel.tsx +251 -0
  88. package/src/features/color/ColorWheelKeyboardProxy.native.tsx +34 -0
  89. package/src/features/color/ColorWheelKeyboardProxy.tsx +11 -0
  90. package/src/features/color/ColorWheelKeyboardProxy.web.tsx +47 -0
  91. package/src/features/color/public.ts +17 -0
  92. package/src/features/color/utils/colorMath.test.ts +37 -0
  93. package/src/features/color/utils/resolveColorAtHue.ts +14 -0
  94. package/src/features/color/utils/resolveColorHue.ts +10 -0
  95. package/src/features/color/utils/resolveOklchColor.ts +13 -0
  96. package/src/features/color/utils/resolveWheelColor.ts +28 -0
  97. package/src/features/color/utils/resolveWheelColorComponents.ts +16 -0
  98. package/src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx +16 -4
  99. package/src/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.ts +24 -4
  100. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphPointerDownReader.test.ts +28 -0
  101. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphPointerDownReader.ts +48 -0
  102. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.test.ts +16 -6
  103. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.ts +34 -3
  104. package/src/features/selection/application/resolveSelectionEventIntent.test.ts +1 -0
  105. package/src/features/selection/application/resolveSelectionEventIntent.ts +18 -4
  106. package/src/index.ts +14 -0
  107. package/src/types/color.ts +75 -0
  108. package/src/webPackageExports.test.ts +15 -0
  109. package/web-dist/authoring/index.js +6 -5
  110. package/web-dist/chunks/{Accordion-5w8chhxm.js → Accordion-001ymezm.js} +3 -63
  111. package/web-dist/chunks/{Accordion-2d5jdxeg.js → Accordion-01s50nga.js} +2 -2
  112. package/web-dist/chunks/{Accordion-dhnd347t.js → Accordion-09jkcm1x.js} +695 -4591
  113. package/web-dist/chunks/Accordion-0z2t95zw.js +548 -0
  114. package/web-dist/chunks/{Accordion-z1k4wg10.js → Accordion-120nmpbe.js} +3 -3
  115. package/web-dist/chunks/{Accordion-zrn4dy6s.js → Accordion-401452az.js} +6 -6
  116. package/web-dist/chunks/{Accordion-yy6qy5y2.js → Accordion-44bcsg35.js} +6 -6
  117. package/web-dist/chunks/{Accordion-5hvq2r84.js → Accordion-49m38edd.js} +4 -4
  118. package/web-dist/chunks/{Accordion-x4bpna1q.js → Accordion-49mzcav8.js} +4 -4
  119. package/web-dist/chunks/{Accordion-h3r90b65.js → Accordion-52a3dpsm.js} +4 -4
  120. package/web-dist/chunks/{Accordion-bhr3r525.js → Accordion-549akrjn.js} +4 -4
  121. package/web-dist/chunks/{Accordion-7atd70rg.js → Accordion-64px84rh.js} +10 -10
  122. package/web-dist/chunks/{Accordion-enracgev.js → Accordion-6ec9bfd8.js} +4 -4
  123. package/web-dist/chunks/Accordion-6jb7b67v.js +66 -0
  124. package/web-dist/chunks/{Accordion-5gbd0wzf.js → Accordion-8ac6dkcs.js} +1 -1
  125. package/web-dist/chunks/{Accordion-w18jbs39.js → Accordion-8q7hn9aj.js} +1 -1
  126. package/web-dist/chunks/{Accordion-825x4t0z.js → Accordion-8vcs6nz6.js} +1 -1
  127. package/web-dist/chunks/{Accordion-qqv9mak2.js → Accordion-9d3rd7ne.js} +1 -1
  128. package/web-dist/chunks/{Accordion-zfsnh03k.js → Accordion-9hcbf56f.js} +2 -2
  129. package/web-dist/chunks/{Accordion-rrmy3736.js → Accordion-a6xxvydp.js} +2 -2
  130. package/web-dist/chunks/{Accordion-dv281jw0.js → Accordion-b4yr6yq3.js} +2 -2
  131. package/web-dist/chunks/{Accordion-c1x8bqnr.js → Accordion-b8t2gq8g.js} +9 -9
  132. package/web-dist/chunks/{Accordion-25xjvp3t.js → Accordion-dk40hsc0.js} +2 -2
  133. package/web-dist/chunks/{Accordion-1dr6ktbf.js → Accordion-dxhs3xwx.js} +7 -7
  134. package/web-dist/chunks/{Accordion-q5swmcwm.js → Accordion-e1krqvc4.js} +3 -3
  135. package/web-dist/chunks/{Accordion-md1g54wg.js → Accordion-eq27a9ms.js} +6 -5
  136. package/web-dist/chunks/{Accordion-b7jgtnvm.js → Accordion-ew2cebyd.js} +3 -3
  137. package/web-dist/chunks/{Accordion-j3twwxyt.js → Accordion-g9m813fh.js} +2 -2
  138. package/web-dist/chunks/{Accordion-b36h9a7g.js → Accordion-gysa24fk.js} +1 -1
  139. package/web-dist/chunks/{Accordion-2xdwc579.js → Accordion-h21ah8w3.js} +6 -6
  140. package/web-dist/chunks/{Accordion-2rtkfs9t.js → Accordion-hfb983jm.js} +3 -3
  141. package/web-dist/chunks/{Accordion-5p0pc8wp.js → Accordion-j61qh3rb.js} +2 -2
  142. package/web-dist/chunks/{Accordion-tf459afq.js → Accordion-kexh248h.js} +2 -2
  143. package/web-dist/chunks/{Accordion-gbe84kyw.js → Accordion-kx6695j5.js} +2 -2
  144. package/web-dist/chunks/{Accordion-w42y21pt.js → Accordion-mrhkw8n6.js} +1 -1
  145. package/web-dist/chunks/{Accordion-vyr0wyp9.js → Accordion-ng9pnz9r.js} +9 -9
  146. package/web-dist/chunks/{Accordion-x3shxr1k.js → Accordion-p43psvv8.js} +6 -6
  147. package/web-dist/chunks/{Accordion-6y9ac3ad.js → Accordion-rcs75kj4.js} +3 -3
  148. package/web-dist/chunks/Accordion-rj3ayvn5.js +3925 -0
  149. package/web-dist/chunks/{Accordion-4d12nnq0.js → Accordion-sheqvs8c.js} +11 -11
  150. package/web-dist/chunks/{Accordion-j77vvja1.js → Accordion-ss57gqjb.js} +5 -5
  151. package/web-dist/chunks/{Accordion-hsnh2dgt.js → Accordion-sttjd4rs.js} +7 -7
  152. package/web-dist/chunks/{Accordion-n95zwem8.js → Accordion-sz17szqm.js} +8 -8
  153. package/web-dist/chunks/{Accordion-0ecj6p6b.js → Accordion-tchccn9f.js} +5 -5
  154. package/web-dist/chunks/{Accordion-4d4xahgg.js → Accordion-tpd1vvy9.js} +77 -74
  155. package/web-dist/chunks/{Accordion-bm75sm6d.js → Accordion-vzgpdtr2.js} +1 -1
  156. package/web-dist/chunks/{Accordion-4hthnyjj.js → Accordion-wdefxczv.js} +9 -9
  157. package/web-dist/chunks/{Accordion-2pq8kbaq.js → Accordion-wtqev4qa.js} +7 -7
  158. package/web-dist/chunks/{Accordion-s6n61fx6.js → Accordion-x33am5bc.js} +3 -3
  159. package/web-dist/chunks/{Accordion-5zx8d19h.js → Accordion-xfdp8w37.js} +13 -13
  160. package/web-dist/chunks/{Accordion-st7rj6hc.js → Accordion-xs9aspze.js} +4 -4
  161. package/web-dist/chunks/{Accordion-nf16vayy.js → Accordion-z4m47w0b.js} +2 -2
  162. package/web-dist/chunks/{Accordion-x2d68rrj.js → Accordion-z5kr43w5.js} +4 -4
  163. package/web-dist/chunks/{Accordion-nks69epp.js → Accordion-z8c7y6d8.js} +5 -5
  164. package/web-dist/components/accordion/Accordion.js +10 -10
  165. package/web-dist/components/accordion-item/AccordionItem.js +10 -10
  166. package/web-dist/components/activity-indicator/ActivityIndicator.js +3 -3
  167. package/web-dist/components/app-bar/AppBar.js +16 -15
  168. package/web-dist/components/app-header/AppHeader.js +16 -15
  169. package/web-dist/components/app-shell/AppShell.js +4 -4
  170. package/web-dist/components/auth-screen/AuthScreen.js +21 -19
  171. package/web-dist/components/avatar/Avatar.js +10 -10
  172. package/web-dist/components/avatar-group/AvatarGroup.js +10 -10
  173. package/web-dist/components/badge/Badge.js +5 -5
  174. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +19 -18
  175. package/web-dist/components/bottom-sheet/BottomSheet.js +6 -6
  176. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +6 -6
  177. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +6 -6
  178. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +6 -6
  179. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +6 -6
  180. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +6 -6
  181. package/web-dist/components/breadcrumbs/Breadcrumbs.js +15 -14
  182. package/web-dist/components/button/Button.js +11 -10
  183. package/web-dist/components/button-group/ButtonGroup.js +11 -10
  184. package/web-dist/components/camera-permission-view/CameraPermissionView.js +19 -18
  185. package/web-dist/components/card/Card.js +18 -17
  186. package/web-dist/components/card-back/CardBack.js +4 -4
  187. package/web-dist/components/card-hand/CardHand.js +4 -4
  188. package/web-dist/components/chat-list-item/ChatListItem.js +14 -14
  189. package/web-dist/components/checkbox/Checkbox.js +10 -10
  190. package/web-dist/components/checkbox-group/CheckboxGroup.js +10 -10
  191. package/web-dist/components/chess-board/ChessBoard.js +4 -4
  192. package/web-dist/components/chip/Chip.js +11 -11
  193. package/web-dist/components/chip-group/ChipGroup.js +11 -11
  194. package/web-dist/components/collection-editor/CollectionEditor.js +20 -19
  195. package/web-dist/components/color-hue-scale/ColorHueScale.d.ts +6 -0
  196. package/web-dist/components/color-hue-scale/ColorHueScale.js +33 -0
  197. package/web-dist/components/color-hue-scale/index.d.ts +1 -0
  198. package/web-dist/components/color-hue-scale/index.js +2 -0
  199. package/web-dist/components/color-picker/ColorPicker.d.ts +6 -0
  200. package/web-dist/components/color-picker/ColorPicker.js +33 -0
  201. package/web-dist/components/color-picker/index.d.ts +1 -0
  202. package/web-dist/components/color-picker/index.js +2 -0
  203. package/web-dist/components/color-tone/ColorTone.d.ts +6 -0
  204. package/web-dist/components/color-tone/ColorTone.js +33 -0
  205. package/web-dist/components/color-tone/index.d.ts +1 -0
  206. package/web-dist/components/color-tone/index.js +2 -0
  207. package/web-dist/components/color-wheel/ColorWheel.d.ts +6 -0
  208. package/web-dist/components/color-wheel/ColorWheel.js +33 -0
  209. package/web-dist/components/color-wheel/index.d.ts +1 -0
  210. package/web-dist/components/color-wheel/index.js +2 -0
  211. package/web-dist/components/content-rail/ContentRail.js +14 -13
  212. package/web-dist/components/data-table/DataTable.js +25 -24
  213. package/web-dist/components/date-picker/DatePicker.js +16 -15
  214. package/web-dist/components/dialog/Dialog.js +9 -9
  215. package/web-dist/components/divider/Divider.js +4 -4
  216. package/web-dist/components/empty-state/EmptyState.js +19 -18
  217. package/web-dist/components/explorer/Explorer.js +11 -11
  218. package/web-dist/components/field/Field.js +10 -10
  219. package/web-dist/components/file-explorer/FileExplorer.js +11 -11
  220. package/web-dist/components/flat-list/FlatList.js +11 -11
  221. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +21 -19
  222. package/web-dist/components/form/Form.js +15 -14
  223. package/web-dist/components/form-actions/FormActions.js +15 -14
  224. package/web-dist/components/form-error/FormError.js +15 -14
  225. package/web-dist/components/game/Game.js +5 -5
  226. package/web-dist/components/game-entity/GameEntity.js +5 -5
  227. package/web-dist/components/game-field/GameField.js +5 -5
  228. package/web-dist/components/game-input-zone/GameInputZone.js +5 -5
  229. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +5 -5
  230. package/web-dist/components/game-overlay/GameOverlay.js +5 -5
  231. package/web-dist/components/gradient/Gradient.js +5 -5
  232. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +5 -5
  233. package/web-dist/components/graph-view/GraphView.js +81 -18
  234. package/web-dist/components/grid/Grid.js +4 -4
  235. package/web-dist/components/grid-line-overlay/GridLineOverlay.js +4 -4
  236. package/web-dist/components/grid-ruler/GridRuler.js +4 -4
  237. package/web-dist/components/heading/Heading.js +5 -5
  238. package/web-dist/components/hero/Hero.js +20 -19
  239. package/web-dist/components/icon/Icon.js +4 -4
  240. package/web-dist/components/icon-button/IconButton.js +11 -10
  241. package/web-dist/components/image/Image.js +8 -8
  242. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +3 -3
  243. package/web-dist/components/list/List.js +11 -11
  244. package/web-dist/components/list-item/ListItem.js +11 -11
  245. package/web-dist/components/list-section/ListSection.js +11 -11
  246. package/web-dist/components/matrix-grid/MatrixGrid.js +5 -5
  247. package/web-dist/components/media-card/MediaCard.js +18 -17
  248. package/web-dist/components/media-explorer/MediaExplorer.js +11 -11
  249. package/web-dist/components/message-bubble/MessageBubble.js +14 -14
  250. package/web-dist/components/metric-card/MetricCard.js +18 -17
  251. package/web-dist/components/missing-element/MissingElement.js +9 -9
  252. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +21 -19
  253. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +21 -19
  254. package/web-dist/components/opening-book/OpeningBook.js +4 -4
  255. package/web-dist/components/otp-form/OtpForm.js +21 -19
  256. package/web-dist/components/pagination/Pagination.js +14 -13
  257. package/web-dist/components/palette-item/PaletteItem.js +18 -17
  258. package/web-dist/components/playing-card/PlayingCard.js +4 -4
  259. package/web-dist/components/poker-training-table/PokerTrainingTable.js +4 -4
  260. package/web-dist/components/popover-menu/PopoverMenu.js +10 -10
  261. package/web-dist/components/post-card/PostCard.js +18 -17
  262. package/web-dist/components/product-card/ProductCard.js +18 -17
  263. package/web-dist/components/progress/Progress.js +8 -8
  264. package/web-dist/components/progress-ring/ProgressRing.js +8 -8
  265. package/web-dist/components/radio/Radio.js +12 -12
  266. package/web-dist/components/radio-group/RadioGroup.js +12 -12
  267. package/web-dist/components/rating/Rating.js +7 -7
  268. package/web-dist/components/reader/Reader.js +21 -20
  269. package/web-dist/components/scan-overlay/ScanOverlay.js +19 -18
  270. package/web-dist/components/screen/Screen.js +4 -4
  271. package/web-dist/components/screen-section/ScreenSection.js +8 -8
  272. package/web-dist/components/scroll-view/ScrollView.js +4 -4
  273. package/web-dist/components/search-input/SearchInput.js +14 -12
  274. package/web-dist/components/section-header/SectionHeader.js +8 -8
  275. package/web-dist/components/section-list/SectionList.js +11 -11
  276. package/web-dist/components/select/Select.js +14 -13
  277. package/web-dist/components/selectable-item/SelectableItem.js +3 -3
  278. package/web-dist/components/selection-provider/SelectionProvider.js +3 -3
  279. package/web-dist/components/sign-in-form/SignInForm.js +21 -19
  280. package/web-dist/components/sign-up-form/SignUpForm.js +21 -19
  281. package/web-dist/components/skeleton/Skeleton.js +21 -20
  282. package/web-dist/components/skeleton-card/SkeletonCard.js +21 -20
  283. package/web-dist/components/skeleton-list/SkeletonList.js +21 -20
  284. package/web-dist/components/skeleton-text/SkeletonText.js +21 -20
  285. package/web-dist/components/surface/Surface.js +5 -5
  286. package/web-dist/components/switch/Switch.js +5 -5
  287. package/web-dist/components/tab/Tab.js +5 -5
  288. package/web-dist/components/tab-list/TabList.js +5 -5
  289. package/web-dist/components/tab-panel/TabPanel.js +5 -5
  290. package/web-dist/components/tabletop-table/TabletopTable.js +4 -4
  291. package/web-dist/components/tabs/Tabs.js +5 -5
  292. package/web-dist/components/text/Text.js +5 -5
  293. package/web-dist/components/text-input/TextInput.js +14 -12
  294. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +13 -12
  295. package/web-dist/components/time-picker/TimePicker.js +16 -15
  296. package/web-dist/components/timeline/Timeline.js +9 -9
  297. package/web-dist/components/toast/Toast.js +7 -7
  298. package/web-dist/components/toast-provider/ToastProvider.js +7 -7
  299. package/web-dist/components/toolbar/Toolbar.js +18 -17
  300. package/web-dist/components/tree-item/TreeItem.js +19 -18
  301. package/web-dist/components/tree-view/TreeView.js +1 -1
  302. package/web-dist/components/uploader/Uploader.js +23 -22
  303. package/web-dist/components/view/View.js +4 -4
  304. package/web-dist/manifest.json +1473 -1271
  305. package/web-dist/runtime/ZoraProvider.js +6 -6
@@ -0,0 +1,3925 @@
1
+ 'use client';
2
+ import {
3
+ Icon3
4
+ } from "./Accordion-vzgpdtr2.js";
5
+ import {
6
+ useTheme
7
+ } from "./Accordion-tpd1vvy9.js";
8
+ import {
9
+ View3
10
+ } from "./Accordion-8q7hn9aj.js";
11
+ import {
12
+ Pressable
13
+ } from "./Accordion-g9m813fh.js";
14
+ import {
15
+ Text2
16
+ } from "./Accordion-8vcs6nz6.js";
17
+ import {
18
+ resolveControlSize,
19
+ resolveIconSize2,
20
+ resolveButtonColors
21
+ } from "./Accordion-6ec4gxv2.js";
22
+ import {
23
+ require_cjs
24
+ } from "./Accordion-xgpzh4wq.js";
25
+ import {
26
+ __toESM,
27
+ __commonJS
28
+ } from "./Accordion-nh0cs9hq.js";
29
+
30
+ // node_modules/react-native-svg/lib/module/lib/extract/transform.js
31
+ var require_transform = __commonJS(function(exports, module) {
32
+ function peg$subclass(child, parent) {
33
+ function ctor() {
34
+ this.constructor = child;
35
+ }
36
+ ctor.prototype = parent.prototype;
37
+ child.prototype = new ctor;
38
+ }
39
+ function peg$SyntaxError(message, expected, found, location) {
40
+ this.message = message;
41
+ this.expected = expected;
42
+ this.found = found;
43
+ this.location = location;
44
+ this.name = "SyntaxError";
45
+ if (typeof Error.captureStackTrace === "function") {
46
+ Error.captureStackTrace(this, peg$SyntaxError);
47
+ }
48
+ }
49
+ peg$subclass(peg$SyntaxError, Error);
50
+ peg$SyntaxError.buildMessage = function(expected, found) {
51
+ var DESCRIBE_EXPECTATION_FNS = {
52
+ literal: function(expectation) {
53
+ return '"' + literalEscape(expectation.text) + '"';
54
+ },
55
+ class: function(expectation) {
56
+ var escapedParts = "", i;
57
+ for (i = 0;i < expectation.parts.length; i++) {
58
+ escapedParts += expectation.parts[i] instanceof Array ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) : classEscape(expectation.parts[i]);
59
+ }
60
+ return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";
61
+ },
62
+ any: function(expectation) {
63
+ return "any character";
64
+ },
65
+ end: function(expectation) {
66
+ return "end of input";
67
+ },
68
+ other: function(expectation) {
69
+ return expectation.description;
70
+ }
71
+ };
72
+ function hex(ch) {
73
+ return ch.charCodeAt(0).toString(16).toUpperCase();
74
+ }
75
+ function literalEscape(s) {
76
+ return s.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(ch) {
77
+ return "\\x0" + hex(ch);
78
+ }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) {
79
+ return "\\x" + hex(ch);
80
+ });
81
+ }
82
+ function classEscape(s) {
83
+ return s.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(ch) {
84
+ return "\\x0" + hex(ch);
85
+ }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) {
86
+ return "\\x" + hex(ch);
87
+ });
88
+ }
89
+ function describeExpectation(expectation) {
90
+ return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
91
+ }
92
+ function describeExpected(expected) {
93
+ var descriptions = new Array(expected.length), i, j;
94
+ for (i = 0;i < expected.length; i++) {
95
+ descriptions[i] = describeExpectation(expected[i]);
96
+ }
97
+ descriptions.sort();
98
+ if (descriptions.length > 0) {
99
+ for (i = 1, j = 1;i < descriptions.length; i++) {
100
+ if (descriptions[i - 1] !== descriptions[i]) {
101
+ descriptions[j] = descriptions[i];
102
+ j++;
103
+ }
104
+ }
105
+ descriptions.length = j;
106
+ }
107
+ switch (descriptions.length) {
108
+ case 1:
109
+ return descriptions[0];
110
+ case 2:
111
+ return descriptions[0] + " or " + descriptions[1];
112
+ default:
113
+ return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1];
114
+ }
115
+ }
116
+ function describeFound(found) {
117
+ return found ? '"' + literalEscape(found) + '"' : "end of input";
118
+ }
119
+ return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
120
+ };
121
+ function peg$parse(input, options) {
122
+ options = options !== undefined ? options : {};
123
+ var peg$FAILED = {}, peg$startRuleFunctions = {
124
+ transformList: peg$parsetransformList
125
+ }, peg$startRuleFunction = peg$parsetransformList, peg$c0 = function(ts) {
126
+ return ts;
127
+ }, peg$c1 = function(t, ts) {
128
+ return multiply_matrices(t, ts);
129
+ }, peg$c2 = "matrix", peg$c3 = peg$literalExpectation("matrix", false), peg$c4 = "(", peg$c5 = peg$literalExpectation("(", false), peg$c6 = ")", peg$c7 = peg$literalExpectation(")", false), peg$c8 = function(a, b, c, d, e, f) {
130
+ return [a, c, e, b, d, f];
131
+ }, peg$c9 = "translate", peg$c10 = peg$literalExpectation("translate", false), peg$c11 = function(tx, ty) {
132
+ return [1, 0, tx, 0, 1, ty || 0];
133
+ }, peg$c12 = "scale", peg$c13 = peg$literalExpectation("scale", false), peg$c14 = function(sx, sy) {
134
+ return [sx, 0, 0, 0, sy === null ? sx : sy, 0];
135
+ }, peg$c15 = "rotate", peg$c16 = peg$literalExpectation("rotate", false), peg$c17 = function(angle, c) {
136
+ var cos = Math.cos(deg2rad * angle);
137
+ var sin = Math.sin(deg2rad * angle);
138
+ if (c !== null) {
139
+ var x = c[0];
140
+ var y = c[1];
141
+ return [cos, -sin, cos * -x + -sin * -y + x, sin, cos, sin * -x + cos * -y + y];
142
+ }
143
+ return [cos, -sin, 0, sin, cos, 0];
144
+ }, peg$c18 = "skewX", peg$c19 = peg$literalExpectation("skewX", false), peg$c20 = function(angle) {
145
+ return [1, Math.tan(deg2rad * angle), 0, 0, 1, 0];
146
+ }, peg$c21 = "skewY", peg$c22 = peg$literalExpectation("skewY", false), peg$c23 = function(angle) {
147
+ return [1, 0, 0, Math.tan(deg2rad * angle), 1, 0];
148
+ }, peg$c24 = function(f) {
149
+ return parseFloat(f.join(""));
150
+ }, peg$c25 = function(i) {
151
+ return parseInt(i.join(""));
152
+ }, peg$c26 = function(n) {
153
+ return n;
154
+ }, peg$c27 = function(n1, n2) {
155
+ return [n1, n2];
156
+ }, peg$c28 = ",", peg$c29 = peg$literalExpectation(",", false), peg$c30 = function(ds) {
157
+ return ds.join("");
158
+ }, peg$c31 = function(f) {
159
+ return f.join("");
160
+ }, peg$c32 = function(d) {
161
+ return d.join("");
162
+ }, peg$c33 = peg$otherExpectation("fractionalConstant"), peg$c34 = ".", peg$c35 = peg$literalExpectation(".", false), peg$c36 = function(d1, d2) {
163
+ return [d1 ? d1.join("") : null, ".", d2.join("")].join("");
164
+ }, peg$c37 = /^[eE]/, peg$c38 = peg$classExpectation(["e", "E"], false, false), peg$c39 = function(e) {
165
+ return [e[0], e[1], e[2].join("")].join("");
166
+ }, peg$c40 = /^[+\-]/, peg$c41 = peg$classExpectation(["+", "-"], false, false), peg$c42 = /^[0-9]/, peg$c43 = peg$classExpectation([["0", "9"]], false, false), peg$c44 = /^[ \t\r\n]/, peg$c45 = peg$classExpectation([" ", "\t", "\r", `
167
+ `], false, false), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{
168
+ line: 1,
169
+ column: 1
170
+ }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
171
+ if ("startRule" in options) {
172
+ if (!(options.startRule in peg$startRuleFunctions)) {
173
+ throw new Error(`Can't start parsing from rule "` + options.startRule + '".');
174
+ }
175
+ peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
176
+ }
177
+ function text() {
178
+ return input.substring(peg$savedPos, peg$currPos);
179
+ }
180
+ function location() {
181
+ return peg$computeLocation(peg$savedPos, peg$currPos);
182
+ }
183
+ function expected(description, location) {
184
+ location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);
185
+ throw peg$buildStructuredError([peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location);
186
+ }
187
+ function error(message, location) {
188
+ location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);
189
+ throw peg$buildSimpleError(message, location);
190
+ }
191
+ function peg$literalExpectation(text, ignoreCase) {
192
+ return {
193
+ type: "literal",
194
+ text,
195
+ ignoreCase
196
+ };
197
+ }
198
+ function peg$classExpectation(parts, inverted, ignoreCase) {
199
+ return {
200
+ type: "class",
201
+ parts,
202
+ inverted,
203
+ ignoreCase
204
+ };
205
+ }
206
+ function peg$anyExpectation() {
207
+ return {
208
+ type: "any"
209
+ };
210
+ }
211
+ function peg$endExpectation() {
212
+ return {
213
+ type: "end"
214
+ };
215
+ }
216
+ function peg$otherExpectation(description) {
217
+ return {
218
+ type: "other",
219
+ description
220
+ };
221
+ }
222
+ function peg$computePosDetails(pos) {
223
+ var details = peg$posDetailsCache[pos], p;
224
+ if (details) {
225
+ return details;
226
+ } else {
227
+ p = pos - 1;
228
+ while (!peg$posDetailsCache[p]) {
229
+ p--;
230
+ }
231
+ details = peg$posDetailsCache[p];
232
+ details = {
233
+ line: details.line,
234
+ column: details.column
235
+ };
236
+ while (p < pos) {
237
+ if (input.charCodeAt(p) === 10) {
238
+ details.line++;
239
+ details.column = 1;
240
+ } else {
241
+ details.column++;
242
+ }
243
+ p++;
244
+ }
245
+ peg$posDetailsCache[pos] = details;
246
+ return details;
247
+ }
248
+ }
249
+ function peg$computeLocation(startPos, endPos) {
250
+ var startPosDetails = peg$computePosDetails(startPos), endPosDetails = peg$computePosDetails(endPos);
251
+ return {
252
+ start: {
253
+ offset: startPos,
254
+ line: startPosDetails.line,
255
+ column: startPosDetails.column
256
+ },
257
+ end: {
258
+ offset: endPos,
259
+ line: endPosDetails.line,
260
+ column: endPosDetails.column
261
+ }
262
+ };
263
+ }
264
+ function peg$fail(expected) {
265
+ if (peg$currPos < peg$maxFailPos) {
266
+ return;
267
+ }
268
+ if (peg$currPos > peg$maxFailPos) {
269
+ peg$maxFailPos = peg$currPos;
270
+ peg$maxFailExpected = [];
271
+ }
272
+ peg$maxFailExpected.push(expected);
273
+ }
274
+ function peg$buildSimpleError(message, location) {
275
+ return new peg$SyntaxError(message, null, null, location);
276
+ }
277
+ function peg$buildStructuredError(expected, found, location) {
278
+ return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location);
279
+ }
280
+ function peg$parsetransformList() {
281
+ var s0, s1, s2, s3, s4;
282
+ s0 = peg$currPos;
283
+ s1 = [];
284
+ s2 = peg$parsewsp();
285
+ while (s2 !== peg$FAILED) {
286
+ s1.push(s2);
287
+ s2 = peg$parsewsp();
288
+ }
289
+ if (s1 !== peg$FAILED) {
290
+ s2 = peg$parsetransforms();
291
+ if (s2 === peg$FAILED) {
292
+ s2 = null;
293
+ }
294
+ if (s2 !== peg$FAILED) {
295
+ s3 = [];
296
+ s4 = peg$parsewsp();
297
+ while (s4 !== peg$FAILED) {
298
+ s3.push(s4);
299
+ s4 = peg$parsewsp();
300
+ }
301
+ if (s3 !== peg$FAILED) {
302
+ peg$savedPos = s0;
303
+ s1 = peg$c0(s2);
304
+ s0 = s1;
305
+ } else {
306
+ peg$currPos = s0;
307
+ s0 = peg$FAILED;
308
+ }
309
+ } else {
310
+ peg$currPos = s0;
311
+ s0 = peg$FAILED;
312
+ }
313
+ } else {
314
+ peg$currPos = s0;
315
+ s0 = peg$FAILED;
316
+ }
317
+ return s0;
318
+ }
319
+ function peg$parsetransforms() {
320
+ var s0, s1, s2, s3;
321
+ s0 = peg$currPos;
322
+ s1 = peg$parsetransform();
323
+ if (s1 !== peg$FAILED) {
324
+ s2 = [];
325
+ s3 = peg$parsecommaWsp();
326
+ while (s3 !== peg$FAILED) {
327
+ s2.push(s3);
328
+ s3 = peg$parsecommaWsp();
329
+ }
330
+ if (s2 !== peg$FAILED) {
331
+ s3 = peg$parsetransforms();
332
+ if (s3 !== peg$FAILED) {
333
+ peg$savedPos = s0;
334
+ s1 = peg$c1(s1, s3);
335
+ s0 = s1;
336
+ } else {
337
+ peg$currPos = s0;
338
+ s0 = peg$FAILED;
339
+ }
340
+ } else {
341
+ peg$currPos = s0;
342
+ s0 = peg$FAILED;
343
+ }
344
+ } else {
345
+ peg$currPos = s0;
346
+ s0 = peg$FAILED;
347
+ }
348
+ if (s0 === peg$FAILED) {
349
+ s0 = peg$parsetransform();
350
+ }
351
+ return s0;
352
+ }
353
+ function peg$parsetransform() {
354
+ var s0;
355
+ s0 = peg$parsematrix();
356
+ if (s0 === peg$FAILED) {
357
+ s0 = peg$parsetranslate();
358
+ if (s0 === peg$FAILED) {
359
+ s0 = peg$parsescale();
360
+ if (s0 === peg$FAILED) {
361
+ s0 = peg$parserotate();
362
+ if (s0 === peg$FAILED) {
363
+ s0 = peg$parseskewX();
364
+ if (s0 === peg$FAILED) {
365
+ s0 = peg$parseskewY();
366
+ }
367
+ }
368
+ }
369
+ }
370
+ }
371
+ return s0;
372
+ }
373
+ function peg$parsematrix() {
374
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17;
375
+ s0 = peg$currPos;
376
+ if (input.substr(peg$currPos, 6) === peg$c2) {
377
+ s1 = peg$c2;
378
+ peg$currPos += 6;
379
+ } else {
380
+ s1 = peg$FAILED;
381
+ if (peg$silentFails === 0) {
382
+ peg$fail(peg$c3);
383
+ }
384
+ }
385
+ if (s1 !== peg$FAILED) {
386
+ s2 = [];
387
+ s3 = peg$parsewsp();
388
+ while (s3 !== peg$FAILED) {
389
+ s2.push(s3);
390
+ s3 = peg$parsewsp();
391
+ }
392
+ if (s2 !== peg$FAILED) {
393
+ if (input.charCodeAt(peg$currPos) === 40) {
394
+ s3 = peg$c4;
395
+ peg$currPos++;
396
+ } else {
397
+ s3 = peg$FAILED;
398
+ if (peg$silentFails === 0) {
399
+ peg$fail(peg$c5);
400
+ }
401
+ }
402
+ if (s3 !== peg$FAILED) {
403
+ s4 = [];
404
+ s5 = peg$parsewsp();
405
+ while (s5 !== peg$FAILED) {
406
+ s4.push(s5);
407
+ s5 = peg$parsewsp();
408
+ }
409
+ if (s4 !== peg$FAILED) {
410
+ s5 = peg$parsenumber();
411
+ if (s5 !== peg$FAILED) {
412
+ s6 = peg$parsecommaWsp();
413
+ if (s6 !== peg$FAILED) {
414
+ s7 = peg$parsenumber();
415
+ if (s7 !== peg$FAILED) {
416
+ s8 = peg$parsecommaWsp();
417
+ if (s8 !== peg$FAILED) {
418
+ s9 = peg$parsenumber();
419
+ if (s9 !== peg$FAILED) {
420
+ s10 = peg$parsecommaWsp();
421
+ if (s10 !== peg$FAILED) {
422
+ s11 = peg$parsenumber();
423
+ if (s11 !== peg$FAILED) {
424
+ s12 = peg$parsecommaWsp();
425
+ if (s12 !== peg$FAILED) {
426
+ s13 = peg$parsenumber();
427
+ if (s13 !== peg$FAILED) {
428
+ s14 = peg$parsecommaWsp();
429
+ if (s14 !== peg$FAILED) {
430
+ s15 = peg$parsenumber();
431
+ if (s15 !== peg$FAILED) {
432
+ s16 = [];
433
+ s17 = peg$parsewsp();
434
+ while (s17 !== peg$FAILED) {
435
+ s16.push(s17);
436
+ s17 = peg$parsewsp();
437
+ }
438
+ if (s16 !== peg$FAILED) {
439
+ if (input.charCodeAt(peg$currPos) === 41) {
440
+ s17 = peg$c6;
441
+ peg$currPos++;
442
+ } else {
443
+ s17 = peg$FAILED;
444
+ if (peg$silentFails === 0) {
445
+ peg$fail(peg$c7);
446
+ }
447
+ }
448
+ if (s17 !== peg$FAILED) {
449
+ peg$savedPos = s0;
450
+ s1 = peg$c8(s5, s7, s9, s11, s13, s15);
451
+ s0 = s1;
452
+ } else {
453
+ peg$currPos = s0;
454
+ s0 = peg$FAILED;
455
+ }
456
+ } else {
457
+ peg$currPos = s0;
458
+ s0 = peg$FAILED;
459
+ }
460
+ } else {
461
+ peg$currPos = s0;
462
+ s0 = peg$FAILED;
463
+ }
464
+ } else {
465
+ peg$currPos = s0;
466
+ s0 = peg$FAILED;
467
+ }
468
+ } else {
469
+ peg$currPos = s0;
470
+ s0 = peg$FAILED;
471
+ }
472
+ } else {
473
+ peg$currPos = s0;
474
+ s0 = peg$FAILED;
475
+ }
476
+ } else {
477
+ peg$currPos = s0;
478
+ s0 = peg$FAILED;
479
+ }
480
+ } else {
481
+ peg$currPos = s0;
482
+ s0 = peg$FAILED;
483
+ }
484
+ } else {
485
+ peg$currPos = s0;
486
+ s0 = peg$FAILED;
487
+ }
488
+ } else {
489
+ peg$currPos = s0;
490
+ s0 = peg$FAILED;
491
+ }
492
+ } else {
493
+ peg$currPos = s0;
494
+ s0 = peg$FAILED;
495
+ }
496
+ } else {
497
+ peg$currPos = s0;
498
+ s0 = peg$FAILED;
499
+ }
500
+ } else {
501
+ peg$currPos = s0;
502
+ s0 = peg$FAILED;
503
+ }
504
+ } else {
505
+ peg$currPos = s0;
506
+ s0 = peg$FAILED;
507
+ }
508
+ } else {
509
+ peg$currPos = s0;
510
+ s0 = peg$FAILED;
511
+ }
512
+ } else {
513
+ peg$currPos = s0;
514
+ s0 = peg$FAILED;
515
+ }
516
+ } else {
517
+ peg$currPos = s0;
518
+ s0 = peg$FAILED;
519
+ }
520
+ return s0;
521
+ }
522
+ function peg$parsetranslate() {
523
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8;
524
+ s0 = peg$currPos;
525
+ if (input.substr(peg$currPos, 9) === peg$c9) {
526
+ s1 = peg$c9;
527
+ peg$currPos += 9;
528
+ } else {
529
+ s1 = peg$FAILED;
530
+ if (peg$silentFails === 0) {
531
+ peg$fail(peg$c10);
532
+ }
533
+ }
534
+ if (s1 !== peg$FAILED) {
535
+ s2 = [];
536
+ s3 = peg$parsewsp();
537
+ while (s3 !== peg$FAILED) {
538
+ s2.push(s3);
539
+ s3 = peg$parsewsp();
540
+ }
541
+ if (s2 !== peg$FAILED) {
542
+ if (input.charCodeAt(peg$currPos) === 40) {
543
+ s3 = peg$c4;
544
+ peg$currPos++;
545
+ } else {
546
+ s3 = peg$FAILED;
547
+ if (peg$silentFails === 0) {
548
+ peg$fail(peg$c5);
549
+ }
550
+ }
551
+ if (s3 !== peg$FAILED) {
552
+ s4 = [];
553
+ s5 = peg$parsewsp();
554
+ while (s5 !== peg$FAILED) {
555
+ s4.push(s5);
556
+ s5 = peg$parsewsp();
557
+ }
558
+ if (s4 !== peg$FAILED) {
559
+ s5 = peg$parsenumber();
560
+ if (s5 !== peg$FAILED) {
561
+ s6 = peg$parsecommaWspNumber();
562
+ if (s6 === peg$FAILED) {
563
+ s6 = null;
564
+ }
565
+ if (s6 !== peg$FAILED) {
566
+ s7 = [];
567
+ s8 = peg$parsewsp();
568
+ while (s8 !== peg$FAILED) {
569
+ s7.push(s8);
570
+ s8 = peg$parsewsp();
571
+ }
572
+ if (s7 !== peg$FAILED) {
573
+ if (input.charCodeAt(peg$currPos) === 41) {
574
+ s8 = peg$c6;
575
+ peg$currPos++;
576
+ } else {
577
+ s8 = peg$FAILED;
578
+ if (peg$silentFails === 0) {
579
+ peg$fail(peg$c7);
580
+ }
581
+ }
582
+ if (s8 !== peg$FAILED) {
583
+ peg$savedPos = s0;
584
+ s1 = peg$c11(s5, s6);
585
+ s0 = s1;
586
+ } else {
587
+ peg$currPos = s0;
588
+ s0 = peg$FAILED;
589
+ }
590
+ } else {
591
+ peg$currPos = s0;
592
+ s0 = peg$FAILED;
593
+ }
594
+ } else {
595
+ peg$currPos = s0;
596
+ s0 = peg$FAILED;
597
+ }
598
+ } else {
599
+ peg$currPos = s0;
600
+ s0 = peg$FAILED;
601
+ }
602
+ } else {
603
+ peg$currPos = s0;
604
+ s0 = peg$FAILED;
605
+ }
606
+ } else {
607
+ peg$currPos = s0;
608
+ s0 = peg$FAILED;
609
+ }
610
+ } else {
611
+ peg$currPos = s0;
612
+ s0 = peg$FAILED;
613
+ }
614
+ } else {
615
+ peg$currPos = s0;
616
+ s0 = peg$FAILED;
617
+ }
618
+ return s0;
619
+ }
620
+ function peg$parsescale() {
621
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8;
622
+ s0 = peg$currPos;
623
+ if (input.substr(peg$currPos, 5) === peg$c12) {
624
+ s1 = peg$c12;
625
+ peg$currPos += 5;
626
+ } else {
627
+ s1 = peg$FAILED;
628
+ if (peg$silentFails === 0) {
629
+ peg$fail(peg$c13);
630
+ }
631
+ }
632
+ if (s1 !== peg$FAILED) {
633
+ s2 = [];
634
+ s3 = peg$parsewsp();
635
+ while (s3 !== peg$FAILED) {
636
+ s2.push(s3);
637
+ s3 = peg$parsewsp();
638
+ }
639
+ if (s2 !== peg$FAILED) {
640
+ if (input.charCodeAt(peg$currPos) === 40) {
641
+ s3 = peg$c4;
642
+ peg$currPos++;
643
+ } else {
644
+ s3 = peg$FAILED;
645
+ if (peg$silentFails === 0) {
646
+ peg$fail(peg$c5);
647
+ }
648
+ }
649
+ if (s3 !== peg$FAILED) {
650
+ s4 = [];
651
+ s5 = peg$parsewsp();
652
+ while (s5 !== peg$FAILED) {
653
+ s4.push(s5);
654
+ s5 = peg$parsewsp();
655
+ }
656
+ if (s4 !== peg$FAILED) {
657
+ s5 = peg$parsenumber();
658
+ if (s5 !== peg$FAILED) {
659
+ s6 = peg$parsecommaWspNumber();
660
+ if (s6 === peg$FAILED) {
661
+ s6 = null;
662
+ }
663
+ if (s6 !== peg$FAILED) {
664
+ s7 = [];
665
+ s8 = peg$parsewsp();
666
+ while (s8 !== peg$FAILED) {
667
+ s7.push(s8);
668
+ s8 = peg$parsewsp();
669
+ }
670
+ if (s7 !== peg$FAILED) {
671
+ if (input.charCodeAt(peg$currPos) === 41) {
672
+ s8 = peg$c6;
673
+ peg$currPos++;
674
+ } else {
675
+ s8 = peg$FAILED;
676
+ if (peg$silentFails === 0) {
677
+ peg$fail(peg$c7);
678
+ }
679
+ }
680
+ if (s8 !== peg$FAILED) {
681
+ peg$savedPos = s0;
682
+ s1 = peg$c14(s5, s6);
683
+ s0 = s1;
684
+ } else {
685
+ peg$currPos = s0;
686
+ s0 = peg$FAILED;
687
+ }
688
+ } else {
689
+ peg$currPos = s0;
690
+ s0 = peg$FAILED;
691
+ }
692
+ } else {
693
+ peg$currPos = s0;
694
+ s0 = peg$FAILED;
695
+ }
696
+ } else {
697
+ peg$currPos = s0;
698
+ s0 = peg$FAILED;
699
+ }
700
+ } else {
701
+ peg$currPos = s0;
702
+ s0 = peg$FAILED;
703
+ }
704
+ } else {
705
+ peg$currPos = s0;
706
+ s0 = peg$FAILED;
707
+ }
708
+ } else {
709
+ peg$currPos = s0;
710
+ s0 = peg$FAILED;
711
+ }
712
+ } else {
713
+ peg$currPos = s0;
714
+ s0 = peg$FAILED;
715
+ }
716
+ return s0;
717
+ }
718
+ function peg$parserotate() {
719
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8;
720
+ s0 = peg$currPos;
721
+ if (input.substr(peg$currPos, 6) === peg$c15) {
722
+ s1 = peg$c15;
723
+ peg$currPos += 6;
724
+ } else {
725
+ s1 = peg$FAILED;
726
+ if (peg$silentFails === 0) {
727
+ peg$fail(peg$c16);
728
+ }
729
+ }
730
+ if (s1 !== peg$FAILED) {
731
+ s2 = [];
732
+ s3 = peg$parsewsp();
733
+ while (s3 !== peg$FAILED) {
734
+ s2.push(s3);
735
+ s3 = peg$parsewsp();
736
+ }
737
+ if (s2 !== peg$FAILED) {
738
+ if (input.charCodeAt(peg$currPos) === 40) {
739
+ s3 = peg$c4;
740
+ peg$currPos++;
741
+ } else {
742
+ s3 = peg$FAILED;
743
+ if (peg$silentFails === 0) {
744
+ peg$fail(peg$c5);
745
+ }
746
+ }
747
+ if (s3 !== peg$FAILED) {
748
+ s4 = [];
749
+ s5 = peg$parsewsp();
750
+ while (s5 !== peg$FAILED) {
751
+ s4.push(s5);
752
+ s5 = peg$parsewsp();
753
+ }
754
+ if (s4 !== peg$FAILED) {
755
+ s5 = peg$parsenumber();
756
+ if (s5 !== peg$FAILED) {
757
+ s6 = peg$parsecommaWspTwoNumbers();
758
+ if (s6 === peg$FAILED) {
759
+ s6 = null;
760
+ }
761
+ if (s6 !== peg$FAILED) {
762
+ s7 = [];
763
+ s8 = peg$parsewsp();
764
+ while (s8 !== peg$FAILED) {
765
+ s7.push(s8);
766
+ s8 = peg$parsewsp();
767
+ }
768
+ if (s7 !== peg$FAILED) {
769
+ if (input.charCodeAt(peg$currPos) === 41) {
770
+ s8 = peg$c6;
771
+ peg$currPos++;
772
+ } else {
773
+ s8 = peg$FAILED;
774
+ if (peg$silentFails === 0) {
775
+ peg$fail(peg$c7);
776
+ }
777
+ }
778
+ if (s8 !== peg$FAILED) {
779
+ peg$savedPos = s0;
780
+ s1 = peg$c17(s5, s6);
781
+ s0 = s1;
782
+ } else {
783
+ peg$currPos = s0;
784
+ s0 = peg$FAILED;
785
+ }
786
+ } else {
787
+ peg$currPos = s0;
788
+ s0 = peg$FAILED;
789
+ }
790
+ } else {
791
+ peg$currPos = s0;
792
+ s0 = peg$FAILED;
793
+ }
794
+ } else {
795
+ peg$currPos = s0;
796
+ s0 = peg$FAILED;
797
+ }
798
+ } else {
799
+ peg$currPos = s0;
800
+ s0 = peg$FAILED;
801
+ }
802
+ } else {
803
+ peg$currPos = s0;
804
+ s0 = peg$FAILED;
805
+ }
806
+ } else {
807
+ peg$currPos = s0;
808
+ s0 = peg$FAILED;
809
+ }
810
+ } else {
811
+ peg$currPos = s0;
812
+ s0 = peg$FAILED;
813
+ }
814
+ return s0;
815
+ }
816
+ function peg$parseskewX() {
817
+ var s0, s1, s2, s3, s4, s5, s6, s7;
818
+ s0 = peg$currPos;
819
+ if (input.substr(peg$currPos, 5) === peg$c18) {
820
+ s1 = peg$c18;
821
+ peg$currPos += 5;
822
+ } else {
823
+ s1 = peg$FAILED;
824
+ if (peg$silentFails === 0) {
825
+ peg$fail(peg$c19);
826
+ }
827
+ }
828
+ if (s1 !== peg$FAILED) {
829
+ s2 = [];
830
+ s3 = peg$parsewsp();
831
+ while (s3 !== peg$FAILED) {
832
+ s2.push(s3);
833
+ s3 = peg$parsewsp();
834
+ }
835
+ if (s2 !== peg$FAILED) {
836
+ if (input.charCodeAt(peg$currPos) === 40) {
837
+ s3 = peg$c4;
838
+ peg$currPos++;
839
+ } else {
840
+ s3 = peg$FAILED;
841
+ if (peg$silentFails === 0) {
842
+ peg$fail(peg$c5);
843
+ }
844
+ }
845
+ if (s3 !== peg$FAILED) {
846
+ s4 = [];
847
+ s5 = peg$parsewsp();
848
+ while (s5 !== peg$FAILED) {
849
+ s4.push(s5);
850
+ s5 = peg$parsewsp();
851
+ }
852
+ if (s4 !== peg$FAILED) {
853
+ s5 = peg$parsenumber();
854
+ if (s5 !== peg$FAILED) {
855
+ s6 = [];
856
+ s7 = peg$parsewsp();
857
+ while (s7 !== peg$FAILED) {
858
+ s6.push(s7);
859
+ s7 = peg$parsewsp();
860
+ }
861
+ if (s6 !== peg$FAILED) {
862
+ if (input.charCodeAt(peg$currPos) === 41) {
863
+ s7 = peg$c6;
864
+ peg$currPos++;
865
+ } else {
866
+ s7 = peg$FAILED;
867
+ if (peg$silentFails === 0) {
868
+ peg$fail(peg$c7);
869
+ }
870
+ }
871
+ if (s7 !== peg$FAILED) {
872
+ peg$savedPos = s0;
873
+ s1 = peg$c20(s5);
874
+ s0 = s1;
875
+ } else {
876
+ peg$currPos = s0;
877
+ s0 = peg$FAILED;
878
+ }
879
+ } else {
880
+ peg$currPos = s0;
881
+ s0 = peg$FAILED;
882
+ }
883
+ } else {
884
+ peg$currPos = s0;
885
+ s0 = peg$FAILED;
886
+ }
887
+ } else {
888
+ peg$currPos = s0;
889
+ s0 = peg$FAILED;
890
+ }
891
+ } else {
892
+ peg$currPos = s0;
893
+ s0 = peg$FAILED;
894
+ }
895
+ } else {
896
+ peg$currPos = s0;
897
+ s0 = peg$FAILED;
898
+ }
899
+ } else {
900
+ peg$currPos = s0;
901
+ s0 = peg$FAILED;
902
+ }
903
+ return s0;
904
+ }
905
+ function peg$parseskewY() {
906
+ var s0, s1, s2, s3, s4, s5, s6, s7;
907
+ s0 = peg$currPos;
908
+ if (input.substr(peg$currPos, 5) === peg$c21) {
909
+ s1 = peg$c21;
910
+ peg$currPos += 5;
911
+ } else {
912
+ s1 = peg$FAILED;
913
+ if (peg$silentFails === 0) {
914
+ peg$fail(peg$c22);
915
+ }
916
+ }
917
+ if (s1 !== peg$FAILED) {
918
+ s2 = [];
919
+ s3 = peg$parsewsp();
920
+ while (s3 !== peg$FAILED) {
921
+ s2.push(s3);
922
+ s3 = peg$parsewsp();
923
+ }
924
+ if (s2 !== peg$FAILED) {
925
+ if (input.charCodeAt(peg$currPos) === 40) {
926
+ s3 = peg$c4;
927
+ peg$currPos++;
928
+ } else {
929
+ s3 = peg$FAILED;
930
+ if (peg$silentFails === 0) {
931
+ peg$fail(peg$c5);
932
+ }
933
+ }
934
+ if (s3 !== peg$FAILED) {
935
+ s4 = [];
936
+ s5 = peg$parsewsp();
937
+ while (s5 !== peg$FAILED) {
938
+ s4.push(s5);
939
+ s5 = peg$parsewsp();
940
+ }
941
+ if (s4 !== peg$FAILED) {
942
+ s5 = peg$parsenumber();
943
+ if (s5 !== peg$FAILED) {
944
+ s6 = [];
945
+ s7 = peg$parsewsp();
946
+ while (s7 !== peg$FAILED) {
947
+ s6.push(s7);
948
+ s7 = peg$parsewsp();
949
+ }
950
+ if (s6 !== peg$FAILED) {
951
+ if (input.charCodeAt(peg$currPos) === 41) {
952
+ s7 = peg$c6;
953
+ peg$currPos++;
954
+ } else {
955
+ s7 = peg$FAILED;
956
+ if (peg$silentFails === 0) {
957
+ peg$fail(peg$c7);
958
+ }
959
+ }
960
+ if (s7 !== peg$FAILED) {
961
+ peg$savedPos = s0;
962
+ s1 = peg$c23(s5);
963
+ s0 = s1;
964
+ } else {
965
+ peg$currPos = s0;
966
+ s0 = peg$FAILED;
967
+ }
968
+ } else {
969
+ peg$currPos = s0;
970
+ s0 = peg$FAILED;
971
+ }
972
+ } else {
973
+ peg$currPos = s0;
974
+ s0 = peg$FAILED;
975
+ }
976
+ } else {
977
+ peg$currPos = s0;
978
+ s0 = peg$FAILED;
979
+ }
980
+ } else {
981
+ peg$currPos = s0;
982
+ s0 = peg$FAILED;
983
+ }
984
+ } else {
985
+ peg$currPos = s0;
986
+ s0 = peg$FAILED;
987
+ }
988
+ } else {
989
+ peg$currPos = s0;
990
+ s0 = peg$FAILED;
991
+ }
992
+ return s0;
993
+ }
994
+ function peg$parsenumber() {
995
+ var s0, s1, s2, s3;
996
+ s0 = peg$currPos;
997
+ s1 = peg$currPos;
998
+ s2 = peg$parsesign();
999
+ if (s2 === peg$FAILED) {
1000
+ s2 = null;
1001
+ }
1002
+ if (s2 !== peg$FAILED) {
1003
+ s3 = peg$parsefloatingPointConstant();
1004
+ if (s3 !== peg$FAILED) {
1005
+ s2 = [s2, s3];
1006
+ s1 = s2;
1007
+ } else {
1008
+ peg$currPos = s1;
1009
+ s1 = peg$FAILED;
1010
+ }
1011
+ } else {
1012
+ peg$currPos = s1;
1013
+ s1 = peg$FAILED;
1014
+ }
1015
+ if (s1 !== peg$FAILED) {
1016
+ peg$savedPos = s0;
1017
+ s1 = peg$c24(s1);
1018
+ }
1019
+ s0 = s1;
1020
+ if (s0 === peg$FAILED) {
1021
+ s0 = peg$currPos;
1022
+ s1 = peg$currPos;
1023
+ s2 = peg$parsesign();
1024
+ if (s2 === peg$FAILED) {
1025
+ s2 = null;
1026
+ }
1027
+ if (s2 !== peg$FAILED) {
1028
+ s3 = peg$parseintegerConstant();
1029
+ if (s3 !== peg$FAILED) {
1030
+ s2 = [s2, s3];
1031
+ s1 = s2;
1032
+ } else {
1033
+ peg$currPos = s1;
1034
+ s1 = peg$FAILED;
1035
+ }
1036
+ } else {
1037
+ peg$currPos = s1;
1038
+ s1 = peg$FAILED;
1039
+ }
1040
+ if (s1 !== peg$FAILED) {
1041
+ peg$savedPos = s0;
1042
+ s1 = peg$c25(s1);
1043
+ }
1044
+ s0 = s1;
1045
+ }
1046
+ return s0;
1047
+ }
1048
+ function peg$parsecommaWspNumber() {
1049
+ var s0, s1, s2;
1050
+ s0 = peg$currPos;
1051
+ s1 = peg$parsecommaWsp();
1052
+ if (s1 !== peg$FAILED) {
1053
+ s2 = peg$parsenumber();
1054
+ if (s2 !== peg$FAILED) {
1055
+ peg$savedPos = s0;
1056
+ s1 = peg$c26(s2);
1057
+ s0 = s1;
1058
+ } else {
1059
+ peg$currPos = s0;
1060
+ s0 = peg$FAILED;
1061
+ }
1062
+ } else {
1063
+ peg$currPos = s0;
1064
+ s0 = peg$FAILED;
1065
+ }
1066
+ return s0;
1067
+ }
1068
+ function peg$parsecommaWspTwoNumbers() {
1069
+ var s0, s1, s2, s3, s4;
1070
+ s0 = peg$currPos;
1071
+ s1 = peg$parsecommaWsp();
1072
+ if (s1 !== peg$FAILED) {
1073
+ s2 = peg$parsenumber();
1074
+ if (s2 !== peg$FAILED) {
1075
+ s3 = peg$parsecommaWsp();
1076
+ if (s3 !== peg$FAILED) {
1077
+ s4 = peg$parsenumber();
1078
+ if (s4 !== peg$FAILED) {
1079
+ peg$savedPos = s0;
1080
+ s1 = peg$c27(s2, s4);
1081
+ s0 = s1;
1082
+ } else {
1083
+ peg$currPos = s0;
1084
+ s0 = peg$FAILED;
1085
+ }
1086
+ } else {
1087
+ peg$currPos = s0;
1088
+ s0 = peg$FAILED;
1089
+ }
1090
+ } else {
1091
+ peg$currPos = s0;
1092
+ s0 = peg$FAILED;
1093
+ }
1094
+ } else {
1095
+ peg$currPos = s0;
1096
+ s0 = peg$FAILED;
1097
+ }
1098
+ return s0;
1099
+ }
1100
+ function peg$parsecommaWsp() {
1101
+ var s0, s1, s2, s3, s4;
1102
+ s0 = peg$currPos;
1103
+ s1 = [];
1104
+ s2 = peg$parsewsp();
1105
+ if (s2 !== peg$FAILED) {
1106
+ while (s2 !== peg$FAILED) {
1107
+ s1.push(s2);
1108
+ s2 = peg$parsewsp();
1109
+ }
1110
+ } else {
1111
+ s1 = peg$FAILED;
1112
+ }
1113
+ if (s1 !== peg$FAILED) {
1114
+ s2 = peg$parsecomma();
1115
+ if (s2 === peg$FAILED) {
1116
+ s2 = null;
1117
+ }
1118
+ if (s2 !== peg$FAILED) {
1119
+ s3 = [];
1120
+ s4 = peg$parsewsp();
1121
+ while (s4 !== peg$FAILED) {
1122
+ s3.push(s4);
1123
+ s4 = peg$parsewsp();
1124
+ }
1125
+ if (s3 !== peg$FAILED) {
1126
+ s1 = [s1, s2, s3];
1127
+ s0 = s1;
1128
+ } else {
1129
+ peg$currPos = s0;
1130
+ s0 = peg$FAILED;
1131
+ }
1132
+ } else {
1133
+ peg$currPos = s0;
1134
+ s0 = peg$FAILED;
1135
+ }
1136
+ } else {
1137
+ peg$currPos = s0;
1138
+ s0 = peg$FAILED;
1139
+ }
1140
+ if (s0 === peg$FAILED) {
1141
+ s0 = peg$currPos;
1142
+ s1 = peg$parsecomma();
1143
+ if (s1 !== peg$FAILED) {
1144
+ s2 = [];
1145
+ s3 = peg$parsewsp();
1146
+ while (s3 !== peg$FAILED) {
1147
+ s2.push(s3);
1148
+ s3 = peg$parsewsp();
1149
+ }
1150
+ if (s2 !== peg$FAILED) {
1151
+ s1 = [s1, s2];
1152
+ s0 = s1;
1153
+ } else {
1154
+ peg$currPos = s0;
1155
+ s0 = peg$FAILED;
1156
+ }
1157
+ } else {
1158
+ peg$currPos = s0;
1159
+ s0 = peg$FAILED;
1160
+ }
1161
+ }
1162
+ return s0;
1163
+ }
1164
+ function peg$parsecomma() {
1165
+ var s0;
1166
+ if (input.charCodeAt(peg$currPos) === 44) {
1167
+ s0 = peg$c28;
1168
+ peg$currPos++;
1169
+ } else {
1170
+ s0 = peg$FAILED;
1171
+ if (peg$silentFails === 0) {
1172
+ peg$fail(peg$c29);
1173
+ }
1174
+ }
1175
+ return s0;
1176
+ }
1177
+ function peg$parseintegerConstant() {
1178
+ var s0, s1;
1179
+ s0 = peg$currPos;
1180
+ s1 = peg$parsedigitSequence();
1181
+ if (s1 !== peg$FAILED) {
1182
+ peg$savedPos = s0;
1183
+ s1 = peg$c30(s1);
1184
+ }
1185
+ s0 = s1;
1186
+ return s0;
1187
+ }
1188
+ function peg$parsefloatingPointConstant() {
1189
+ var s0, s1, s2, s3;
1190
+ s0 = peg$currPos;
1191
+ s1 = peg$currPos;
1192
+ s2 = peg$parsefractionalConstant();
1193
+ if (s2 !== peg$FAILED) {
1194
+ s3 = peg$parseexponent();
1195
+ if (s3 === peg$FAILED) {
1196
+ s3 = null;
1197
+ }
1198
+ if (s3 !== peg$FAILED) {
1199
+ s2 = [s2, s3];
1200
+ s1 = s2;
1201
+ } else {
1202
+ peg$currPos = s1;
1203
+ s1 = peg$FAILED;
1204
+ }
1205
+ } else {
1206
+ peg$currPos = s1;
1207
+ s1 = peg$FAILED;
1208
+ }
1209
+ if (s1 !== peg$FAILED) {
1210
+ peg$savedPos = s0;
1211
+ s1 = peg$c31(s1);
1212
+ }
1213
+ s0 = s1;
1214
+ if (s0 === peg$FAILED) {
1215
+ s0 = peg$currPos;
1216
+ s1 = peg$currPos;
1217
+ s2 = peg$parsedigitSequence();
1218
+ if (s2 !== peg$FAILED) {
1219
+ s3 = peg$parseexponent();
1220
+ if (s3 !== peg$FAILED) {
1221
+ s2 = [s2, s3];
1222
+ s1 = s2;
1223
+ } else {
1224
+ peg$currPos = s1;
1225
+ s1 = peg$FAILED;
1226
+ }
1227
+ } else {
1228
+ peg$currPos = s1;
1229
+ s1 = peg$FAILED;
1230
+ }
1231
+ if (s1 !== peg$FAILED) {
1232
+ peg$savedPos = s0;
1233
+ s1 = peg$c32(s1);
1234
+ }
1235
+ s0 = s1;
1236
+ }
1237
+ return s0;
1238
+ }
1239
+ function peg$parsefractionalConstant() {
1240
+ var s0, s1, s2, s3;
1241
+ peg$silentFails++;
1242
+ s0 = peg$currPos;
1243
+ s1 = peg$parsedigitSequence();
1244
+ if (s1 === peg$FAILED) {
1245
+ s1 = null;
1246
+ }
1247
+ if (s1 !== peg$FAILED) {
1248
+ if (input.charCodeAt(peg$currPos) === 46) {
1249
+ s2 = peg$c34;
1250
+ peg$currPos++;
1251
+ } else {
1252
+ s2 = peg$FAILED;
1253
+ if (peg$silentFails === 0) {
1254
+ peg$fail(peg$c35);
1255
+ }
1256
+ }
1257
+ if (s2 !== peg$FAILED) {
1258
+ s3 = peg$parsedigitSequence();
1259
+ if (s3 !== peg$FAILED) {
1260
+ peg$savedPos = s0;
1261
+ s1 = peg$c36(s1, s3);
1262
+ s0 = s1;
1263
+ } else {
1264
+ peg$currPos = s0;
1265
+ s0 = peg$FAILED;
1266
+ }
1267
+ } else {
1268
+ peg$currPos = s0;
1269
+ s0 = peg$FAILED;
1270
+ }
1271
+ } else {
1272
+ peg$currPos = s0;
1273
+ s0 = peg$FAILED;
1274
+ }
1275
+ if (s0 === peg$FAILED) {
1276
+ s0 = peg$currPos;
1277
+ s1 = peg$parsedigitSequence();
1278
+ if (s1 !== peg$FAILED) {
1279
+ if (input.charCodeAt(peg$currPos) === 46) {
1280
+ s2 = peg$c34;
1281
+ peg$currPos++;
1282
+ } else {
1283
+ s2 = peg$FAILED;
1284
+ if (peg$silentFails === 0) {
1285
+ peg$fail(peg$c35);
1286
+ }
1287
+ }
1288
+ if (s2 !== peg$FAILED) {
1289
+ peg$savedPos = s0;
1290
+ s1 = peg$c32(s1);
1291
+ s0 = s1;
1292
+ } else {
1293
+ peg$currPos = s0;
1294
+ s0 = peg$FAILED;
1295
+ }
1296
+ } else {
1297
+ peg$currPos = s0;
1298
+ s0 = peg$FAILED;
1299
+ }
1300
+ }
1301
+ peg$silentFails--;
1302
+ if (s0 === peg$FAILED) {
1303
+ s1 = peg$FAILED;
1304
+ if (peg$silentFails === 0) {
1305
+ peg$fail(peg$c33);
1306
+ }
1307
+ }
1308
+ return s0;
1309
+ }
1310
+ function peg$parseexponent() {
1311
+ var s0, s1, s2, s3, s4;
1312
+ s0 = peg$currPos;
1313
+ s1 = peg$currPos;
1314
+ if (peg$c37.test(input.charAt(peg$currPos))) {
1315
+ s2 = input.charAt(peg$currPos);
1316
+ peg$currPos++;
1317
+ } else {
1318
+ s2 = peg$FAILED;
1319
+ if (peg$silentFails === 0) {
1320
+ peg$fail(peg$c38);
1321
+ }
1322
+ }
1323
+ if (s2 !== peg$FAILED) {
1324
+ s3 = peg$parsesign();
1325
+ if (s3 === peg$FAILED) {
1326
+ s3 = null;
1327
+ }
1328
+ if (s3 !== peg$FAILED) {
1329
+ s4 = peg$parsedigitSequence();
1330
+ if (s4 !== peg$FAILED) {
1331
+ s2 = [s2, s3, s4];
1332
+ s1 = s2;
1333
+ } else {
1334
+ peg$currPos = s1;
1335
+ s1 = peg$FAILED;
1336
+ }
1337
+ } else {
1338
+ peg$currPos = s1;
1339
+ s1 = peg$FAILED;
1340
+ }
1341
+ } else {
1342
+ peg$currPos = s1;
1343
+ s1 = peg$FAILED;
1344
+ }
1345
+ if (s1 !== peg$FAILED) {
1346
+ peg$savedPos = s0;
1347
+ s1 = peg$c39(s1);
1348
+ }
1349
+ s0 = s1;
1350
+ return s0;
1351
+ }
1352
+ function peg$parsesign() {
1353
+ var s0;
1354
+ if (peg$c40.test(input.charAt(peg$currPos))) {
1355
+ s0 = input.charAt(peg$currPos);
1356
+ peg$currPos++;
1357
+ } else {
1358
+ s0 = peg$FAILED;
1359
+ if (peg$silentFails === 0) {
1360
+ peg$fail(peg$c41);
1361
+ }
1362
+ }
1363
+ return s0;
1364
+ }
1365
+ function peg$parsedigitSequence() {
1366
+ var s0, s1;
1367
+ s0 = [];
1368
+ s1 = peg$parsedigit();
1369
+ if (s1 !== peg$FAILED) {
1370
+ while (s1 !== peg$FAILED) {
1371
+ s0.push(s1);
1372
+ s1 = peg$parsedigit();
1373
+ }
1374
+ } else {
1375
+ s0 = peg$FAILED;
1376
+ }
1377
+ return s0;
1378
+ }
1379
+ function peg$parsedigit() {
1380
+ var s0;
1381
+ if (peg$c42.test(input.charAt(peg$currPos))) {
1382
+ s0 = input.charAt(peg$currPos);
1383
+ peg$currPos++;
1384
+ } else {
1385
+ s0 = peg$FAILED;
1386
+ if (peg$silentFails === 0) {
1387
+ peg$fail(peg$c43);
1388
+ }
1389
+ }
1390
+ return s0;
1391
+ }
1392
+ function peg$parsewsp() {
1393
+ var s0;
1394
+ if (peg$c44.test(input.charAt(peg$currPos))) {
1395
+ s0 = input.charAt(peg$currPos);
1396
+ peg$currPos++;
1397
+ } else {
1398
+ s0 = peg$FAILED;
1399
+ if (peg$silentFails === 0) {
1400
+ peg$fail(peg$c45);
1401
+ }
1402
+ }
1403
+ return s0;
1404
+ }
1405
+ var deg2rad = Math.PI / 180;
1406
+ function multiply_matrices(l, r) {
1407
+ var al = l[0];
1408
+ var cl = l[1];
1409
+ var el = l[2];
1410
+ var bl = l[3];
1411
+ var dl = l[4];
1412
+ var fl = l[5];
1413
+ var ar = r[0];
1414
+ var cr = r[1];
1415
+ var er = r[2];
1416
+ var br = r[3];
1417
+ var dr = r[4];
1418
+ var fr = r[5];
1419
+ var a = al * ar + cl * br;
1420
+ var c = al * cr + cl * dr;
1421
+ var e = al * er + cl * fr + el;
1422
+ var b = bl * ar + dl * br;
1423
+ var d = bl * cr + dl * dr;
1424
+ var f = bl * er + dl * fr + fl;
1425
+ return [a, c, e, b, d, f];
1426
+ }
1427
+ peg$result = peg$startRuleFunction();
1428
+ if (peg$result !== peg$FAILED && peg$currPos === input.length) {
1429
+ return peg$result;
1430
+ } else {
1431
+ if (peg$result !== peg$FAILED && peg$currPos < input.length) {
1432
+ peg$fail(peg$endExpectation());
1433
+ }
1434
+ throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos));
1435
+ }
1436
+ }
1437
+ module.exports = {
1438
+ SyntaxError: peg$SyntaxError,
1439
+ parse: peg$parse
1440
+ };
1441
+ });
1442
+
1443
+ // node_modules/react-native-svg/lib/module/lib/extract/transformToRn.js
1444
+ var require_transformToRn = __commonJS(function(exports, module) {
1445
+ function peg$subclass(child, parent) {
1446
+ function C() {
1447
+ this.constructor = child;
1448
+ }
1449
+ C.prototype = parent.prototype;
1450
+ child.prototype = new C;
1451
+ }
1452
+ function peg$SyntaxError(message, expected, found, location) {
1453
+ var self = Error.call(this, message);
1454
+ if (Object.setPrototypeOf) {
1455
+ Object.setPrototypeOf(self, peg$SyntaxError.prototype);
1456
+ }
1457
+ self.expected = expected;
1458
+ self.found = found;
1459
+ self.location = location;
1460
+ self.name = "SyntaxError";
1461
+ return self;
1462
+ }
1463
+ peg$subclass(peg$SyntaxError, Error);
1464
+ function peg$padEnd(str, targetLength, padString) {
1465
+ padString = padString || " ";
1466
+ if (str.length > targetLength) {
1467
+ return str;
1468
+ }
1469
+ targetLength -= str.length;
1470
+ padString += padString.repeat(targetLength);
1471
+ return str + padString.slice(0, targetLength);
1472
+ }
1473
+ peg$SyntaxError.prototype.format = function(sources) {
1474
+ var str = "Error: " + this.message;
1475
+ if (this.location) {
1476
+ var src = null;
1477
+ var k;
1478
+ for (k = 0;k < sources.length; k++) {
1479
+ if (sources[k].source === this.location.source) {
1480
+ src = sources[k].text.split(/\r\n|\n|\r/g);
1481
+ break;
1482
+ }
1483
+ }
1484
+ var s = this.location.start;
1485
+ var offset_s = this.location.source && typeof this.location.source.offset === "function" ? this.location.source.offset(s) : s;
1486
+ var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;
1487
+ if (src) {
1488
+ var e = this.location.end;
1489
+ var filler = peg$padEnd("", offset_s.line.toString().length, " ");
1490
+ var line = src[s.line - 1];
1491
+ var last = s.line === e.line ? e.column : line.length + 1;
1492
+ var hatLen = last - s.column || 1;
1493
+ str += `
1494
+ --> ` + loc + `
1495
+ ` + filler + ` |
1496
+ ` + offset_s.line + " | " + line + `
1497
+ ` + filler + " | " + peg$padEnd("", s.column - 1, " ") + peg$padEnd("", hatLen, "^");
1498
+ } else {
1499
+ str += `
1500
+ at ` + loc;
1501
+ }
1502
+ }
1503
+ return str;
1504
+ };
1505
+ peg$SyntaxError.buildMessage = function(expected, found) {
1506
+ var DESCRIBE_EXPECTATION_FNS = {
1507
+ literal: function(expectation) {
1508
+ return '"' + literalEscape(expectation.text) + '"';
1509
+ },
1510
+ class: function(expectation) {
1511
+ var escapedParts = expectation.parts.map(function(part) {
1512
+ return Array.isArray(part) ? classEscape(part[0]) + "-" + classEscape(part[1]) : classEscape(part);
1513
+ });
1514
+ return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";
1515
+ },
1516
+ any: function() {
1517
+ return "any character";
1518
+ },
1519
+ end: function() {
1520
+ return "end of input";
1521
+ },
1522
+ other: function(expectation) {
1523
+ return expectation.description;
1524
+ }
1525
+ };
1526
+ function hex(ch) {
1527
+ return ch.charCodeAt(0).toString(16).toUpperCase();
1528
+ }
1529
+ function literalEscape(s) {
1530
+ return s.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(ch) {
1531
+ return "\\x0" + hex(ch);
1532
+ }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) {
1533
+ return "\\x" + hex(ch);
1534
+ });
1535
+ }
1536
+ function classEscape(s) {
1537
+ return s.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(ch) {
1538
+ return "\\x0" + hex(ch);
1539
+ }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) {
1540
+ return "\\x" + hex(ch);
1541
+ });
1542
+ }
1543
+ function describeExpectation(expectation) {
1544
+ return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
1545
+ }
1546
+ function describeExpected(expected) {
1547
+ var descriptions = expected.map(describeExpectation);
1548
+ var i, j;
1549
+ descriptions.sort();
1550
+ if (descriptions.length > 0) {
1551
+ for (i = 1, j = 1;i < descriptions.length; i++) {
1552
+ if (descriptions[i - 1] !== descriptions[i]) {
1553
+ descriptions[j] = descriptions[i];
1554
+ j++;
1555
+ }
1556
+ }
1557
+ descriptions.length = j;
1558
+ }
1559
+ switch (descriptions.length) {
1560
+ case 1:
1561
+ return descriptions[0];
1562
+ case 2:
1563
+ return descriptions[0] + " or " + descriptions[1];
1564
+ default:
1565
+ return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1];
1566
+ }
1567
+ }
1568
+ function describeFound(found) {
1569
+ return found ? '"' + literalEscape(found) + '"' : "end of input";
1570
+ }
1571
+ return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
1572
+ };
1573
+ function peg$parse(input, options) {
1574
+ options = options !== undefined ? options : {};
1575
+ var peg$FAILED = {};
1576
+ var peg$source = options.grammarSource;
1577
+ var peg$startRuleFunctions = {
1578
+ start: peg$parsestart
1579
+ };
1580
+ var peg$startRuleFunction = peg$parsestart;
1581
+ var peg$c0 = "matrix(";
1582
+ var peg$c1 = ")";
1583
+ var peg$c2 = "translate(";
1584
+ var peg$c3 = "scale(";
1585
+ var peg$c4 = "rotate(";
1586
+ var peg$c5 = "skewX(";
1587
+ var peg$c6 = "skewY(";
1588
+ var peg$c7 = ".";
1589
+ var peg$c8 = "e";
1590
+ var peg$r0 = /^[ \t\n\r,]/;
1591
+ var peg$r1 = /^[ \t\n\r]/;
1592
+ var peg$r2 = /^[+\-]/;
1593
+ var peg$r3 = /^[0-9]/;
1594
+ var peg$e0 = peg$otherExpectation("transform functions");
1595
+ var peg$e1 = peg$otherExpectation("transformFunctions");
1596
+ var peg$e2 = peg$otherExpectation("transform function");
1597
+ var peg$e3 = peg$otherExpectation("matrix");
1598
+ var peg$e4 = peg$literalExpectation("matrix(", false);
1599
+ var peg$e5 = peg$literalExpectation(")", false);
1600
+ var peg$e6 = peg$otherExpectation("translate");
1601
+ var peg$e7 = peg$literalExpectation("translate(", false);
1602
+ var peg$e8 = peg$otherExpectation("scale");
1603
+ var peg$e9 = peg$literalExpectation("scale(", false);
1604
+ var peg$e10 = peg$otherExpectation("rotate");
1605
+ var peg$e11 = peg$literalExpectation("rotate(", false);
1606
+ var peg$e12 = peg$otherExpectation("x, y");
1607
+ var peg$e13 = peg$otherExpectation("skewX");
1608
+ var peg$e14 = peg$literalExpectation("skewX(", false);
1609
+ var peg$e15 = peg$otherExpectation("skewY");
1610
+ var peg$e16 = peg$literalExpectation("skewY(", false);
1611
+ var peg$e17 = peg$otherExpectation("space or comma");
1612
+ var peg$e18 = peg$classExpectation([" ", "\t", `
1613
+ `, "\r", ","], false, false);
1614
+ var peg$e19 = peg$otherExpectation("whitespace");
1615
+ var peg$e20 = peg$classExpectation([" ", "\t", `
1616
+ `, "\r"], false, false);
1617
+ var peg$e21 = peg$classExpectation(["+", "-"], false, false);
1618
+ var peg$e22 = peg$classExpectation([["0", "9"]], false, false);
1619
+ var peg$e23 = peg$literalExpectation(".", false);
1620
+ var peg$e24 = peg$literalExpectation("e", false);
1621
+ var peg$f0 = function(head, tail) {
1622
+ const results = Array.isArray(head) ? head : [head];
1623
+ tail.forEach((element) => {
1624
+ if (Array.isArray(element[1])) {
1625
+ results.push(...element[1]);
1626
+ } else {
1627
+ results.push(element[1]);
1628
+ }
1629
+ });
1630
+ return results;
1631
+ };
1632
+ var peg$f1 = function(a, b, c, d, e, f, g, h, i) {
1633
+ return {
1634
+ matrix: [a, b, c, d, e, f, g, h, i]
1635
+ };
1636
+ };
1637
+ var peg$f2 = function(x, y) {
1638
+ if (y == undefined) {
1639
+ return {
1640
+ translate: x
1641
+ };
1642
+ }
1643
+ return {
1644
+ translate: [x, y]
1645
+ };
1646
+ };
1647
+ var peg$f3 = function(x, y) {
1648
+ if (y == undefined) {
1649
+ return {
1650
+ scale: x
1651
+ };
1652
+ }
1653
+ return [{
1654
+ scaleX: x
1655
+ }, {
1656
+ scaleY: y
1657
+ }];
1658
+ };
1659
+ var peg$f4 = function(x, yz) {
1660
+ if (yz !== null) {
1661
+ return {
1662
+ rotate: `${x}deg`
1663
+ };
1664
+ }
1665
+ return [{
1666
+ rotate: `${x}deg`
1667
+ }];
1668
+ };
1669
+ var peg$f5 = function(y, z) {
1670
+ return [y, z];
1671
+ };
1672
+ var peg$f6 = function(x) {
1673
+ return [{
1674
+ skewX: `${x}deg`
1675
+ }];
1676
+ };
1677
+ var peg$f7 = function(y) {
1678
+ return [{
1679
+ skewY: `${y}deg`
1680
+ }];
1681
+ };
1682
+ var peg$f8 = function() {
1683
+ return parseFloat(text());
1684
+ };
1685
+ var peg$currPos = options.peg$currPos | 0;
1686
+ var peg$savedPos = peg$currPos;
1687
+ var peg$posDetailsCache = [{
1688
+ line: 1,
1689
+ column: 1
1690
+ }];
1691
+ var peg$maxFailPos = peg$currPos;
1692
+ var peg$maxFailExpected = options.peg$maxFailExpected || [];
1693
+ var peg$silentFails = options.peg$silentFails | 0;
1694
+ var peg$result;
1695
+ if (options.startRule) {
1696
+ if (!(options.startRule in peg$startRuleFunctions)) {
1697
+ throw new Error(`Can't start parsing from rule "` + options.startRule + '".');
1698
+ }
1699
+ peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
1700
+ }
1701
+ function text() {
1702
+ return input.substring(peg$savedPos, peg$currPos);
1703
+ }
1704
+ function offset() {
1705
+ return peg$savedPos;
1706
+ }
1707
+ function range() {
1708
+ return {
1709
+ source: peg$source,
1710
+ start: peg$savedPos,
1711
+ end: peg$currPos
1712
+ };
1713
+ }
1714
+ function location() {
1715
+ return peg$computeLocation(peg$savedPos, peg$currPos);
1716
+ }
1717
+ function expected(description, location) {
1718
+ location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);
1719
+ throw peg$buildStructuredError([peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location);
1720
+ }
1721
+ function error(message, location) {
1722
+ location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);
1723
+ throw peg$buildSimpleError(message, location);
1724
+ }
1725
+ function peg$literalExpectation(text, ignoreCase) {
1726
+ return {
1727
+ type: "literal",
1728
+ text,
1729
+ ignoreCase
1730
+ };
1731
+ }
1732
+ function peg$classExpectation(parts, inverted, ignoreCase) {
1733
+ return {
1734
+ type: "class",
1735
+ parts,
1736
+ inverted,
1737
+ ignoreCase
1738
+ };
1739
+ }
1740
+ function peg$anyExpectation() {
1741
+ return {
1742
+ type: "any"
1743
+ };
1744
+ }
1745
+ function peg$endExpectation() {
1746
+ return {
1747
+ type: "end"
1748
+ };
1749
+ }
1750
+ function peg$otherExpectation(description) {
1751
+ return {
1752
+ type: "other",
1753
+ description
1754
+ };
1755
+ }
1756
+ function peg$computePosDetails(pos) {
1757
+ var details = peg$posDetailsCache[pos];
1758
+ var p;
1759
+ if (details) {
1760
+ return details;
1761
+ } else {
1762
+ if (pos >= peg$posDetailsCache.length) {
1763
+ p = peg$posDetailsCache.length - 1;
1764
+ } else {
1765
+ p = pos;
1766
+ while (!peg$posDetailsCache[--p]) {}
1767
+ }
1768
+ details = peg$posDetailsCache[p];
1769
+ details = {
1770
+ line: details.line,
1771
+ column: details.column
1772
+ };
1773
+ while (p < pos) {
1774
+ if (input.charCodeAt(p) === 10) {
1775
+ details.line++;
1776
+ details.column = 1;
1777
+ } else {
1778
+ details.column++;
1779
+ }
1780
+ p++;
1781
+ }
1782
+ peg$posDetailsCache[pos] = details;
1783
+ return details;
1784
+ }
1785
+ }
1786
+ function peg$computeLocation(startPos, endPos, offset) {
1787
+ var startPosDetails = peg$computePosDetails(startPos);
1788
+ var endPosDetails = peg$computePosDetails(endPos);
1789
+ var res = {
1790
+ source: peg$source,
1791
+ start: {
1792
+ offset: startPos,
1793
+ line: startPosDetails.line,
1794
+ column: startPosDetails.column
1795
+ },
1796
+ end: {
1797
+ offset: endPos,
1798
+ line: endPosDetails.line,
1799
+ column: endPosDetails.column
1800
+ }
1801
+ };
1802
+ if (offset && peg$source && typeof peg$source.offset === "function") {
1803
+ res.start = peg$source.offset(res.start);
1804
+ res.end = peg$source.offset(res.end);
1805
+ }
1806
+ return res;
1807
+ }
1808
+ function peg$fail(expected) {
1809
+ if (peg$currPos < peg$maxFailPos) {
1810
+ return;
1811
+ }
1812
+ if (peg$currPos > peg$maxFailPos) {
1813
+ peg$maxFailPos = peg$currPos;
1814
+ peg$maxFailExpected = [];
1815
+ }
1816
+ peg$maxFailExpected.push(expected);
1817
+ }
1818
+ function peg$buildSimpleError(message, location) {
1819
+ return new peg$SyntaxError(message, null, null, location);
1820
+ }
1821
+ function peg$buildStructuredError(expected, found, location) {
1822
+ return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location);
1823
+ }
1824
+ function peg$parsestart() {
1825
+ var s0, s1;
1826
+ peg$silentFails++;
1827
+ s0 = peg$parsetransformFunctions();
1828
+ peg$silentFails--;
1829
+ if (s0 === peg$FAILED) {
1830
+ s1 = peg$FAILED;
1831
+ if (peg$silentFails === 0) {
1832
+ peg$fail(peg$e0);
1833
+ }
1834
+ }
1835
+ return s0;
1836
+ }
1837
+ function peg$parsetransformFunctions() {
1838
+ var s0, s1, s2, s3, s4, s5;
1839
+ peg$silentFails++;
1840
+ s0 = peg$currPos;
1841
+ s1 = peg$parsefunction();
1842
+ if (s1 !== peg$FAILED) {
1843
+ s2 = [];
1844
+ s3 = peg$currPos;
1845
+ s4 = peg$parse_();
1846
+ s5 = peg$parsefunction();
1847
+ if (s5 !== peg$FAILED) {
1848
+ s4 = [s4, s5];
1849
+ s3 = s4;
1850
+ } else {
1851
+ peg$currPos = s3;
1852
+ s3 = peg$FAILED;
1853
+ }
1854
+ while (s3 !== peg$FAILED) {
1855
+ s2.push(s3);
1856
+ s3 = peg$currPos;
1857
+ s4 = peg$parse_();
1858
+ s5 = peg$parsefunction();
1859
+ if (s5 !== peg$FAILED) {
1860
+ s4 = [s4, s5];
1861
+ s3 = s4;
1862
+ } else {
1863
+ peg$currPos = s3;
1864
+ s3 = peg$FAILED;
1865
+ }
1866
+ }
1867
+ peg$savedPos = s0;
1868
+ s0 = peg$f0(s1, s2);
1869
+ } else {
1870
+ peg$currPos = s0;
1871
+ s0 = peg$FAILED;
1872
+ }
1873
+ peg$silentFails--;
1874
+ if (s0 === peg$FAILED) {
1875
+ s1 = peg$FAILED;
1876
+ if (peg$silentFails === 0) {
1877
+ peg$fail(peg$e1);
1878
+ }
1879
+ }
1880
+ return s0;
1881
+ }
1882
+ function peg$parsefunction() {
1883
+ var s0, s1;
1884
+ peg$silentFails++;
1885
+ s0 = peg$parsematrix();
1886
+ if (s0 === peg$FAILED) {
1887
+ s0 = peg$parsetranslate();
1888
+ if (s0 === peg$FAILED) {
1889
+ s0 = peg$parsescale();
1890
+ if (s0 === peg$FAILED) {
1891
+ s0 = peg$parserotate();
1892
+ if (s0 === peg$FAILED) {
1893
+ s0 = peg$parseskewX();
1894
+ if (s0 === peg$FAILED) {
1895
+ s0 = peg$parseskewY();
1896
+ }
1897
+ }
1898
+ }
1899
+ }
1900
+ }
1901
+ peg$silentFails--;
1902
+ if (s0 === peg$FAILED) {
1903
+ s1 = peg$FAILED;
1904
+ if (peg$silentFails === 0) {
1905
+ peg$fail(peg$e2);
1906
+ }
1907
+ }
1908
+ return s0;
1909
+ }
1910
+ function peg$parsematrix() {
1911
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17, s18, s19, s20, s21, s22, s23;
1912
+ peg$silentFails++;
1913
+ s0 = peg$currPos;
1914
+ s1 = peg$parse_();
1915
+ if (input.substr(peg$currPos, 7) === peg$c0) {
1916
+ s2 = peg$c0;
1917
+ peg$currPos += 7;
1918
+ } else {
1919
+ s2 = peg$FAILED;
1920
+ if (peg$silentFails === 0) {
1921
+ peg$fail(peg$e4);
1922
+ }
1923
+ }
1924
+ if (s2 !== peg$FAILED) {
1925
+ s3 = peg$parse_();
1926
+ s4 = peg$parseNUM();
1927
+ if (s4 !== peg$FAILED) {
1928
+ s5 = peg$parsespaceOrComma();
1929
+ s6 = peg$parseNUM();
1930
+ if (s6 !== peg$FAILED) {
1931
+ s7 = peg$parsespaceOrComma();
1932
+ s8 = peg$parseNUM();
1933
+ if (s8 !== peg$FAILED) {
1934
+ s9 = peg$parsespaceOrComma();
1935
+ s10 = peg$parseNUM();
1936
+ if (s10 !== peg$FAILED) {
1937
+ s11 = peg$parsespaceOrComma();
1938
+ s12 = peg$parseNUM();
1939
+ if (s12 !== peg$FAILED) {
1940
+ s13 = peg$parsespaceOrComma();
1941
+ s14 = peg$parseNUM();
1942
+ if (s14 !== peg$FAILED) {
1943
+ s15 = peg$parsespaceOrComma();
1944
+ s16 = peg$parseNUM();
1945
+ if (s16 !== peg$FAILED) {
1946
+ s17 = peg$parsespaceOrComma();
1947
+ s18 = peg$parseNUM();
1948
+ if (s18 !== peg$FAILED) {
1949
+ s19 = peg$parsespaceOrComma();
1950
+ s20 = peg$parseNUM();
1951
+ if (s20 !== peg$FAILED) {
1952
+ s21 = peg$parse_();
1953
+ if (input.charCodeAt(peg$currPos) === 41) {
1954
+ s22 = peg$c1;
1955
+ peg$currPos++;
1956
+ } else {
1957
+ s22 = peg$FAILED;
1958
+ if (peg$silentFails === 0) {
1959
+ peg$fail(peg$e5);
1960
+ }
1961
+ }
1962
+ if (s22 !== peg$FAILED) {
1963
+ s23 = peg$parse_();
1964
+ peg$savedPos = s0;
1965
+ s0 = peg$f1(s4, s6, s8, s10, s12, s14, s16, s18, s20);
1966
+ } else {
1967
+ peg$currPos = s0;
1968
+ s0 = peg$FAILED;
1969
+ }
1970
+ } else {
1971
+ peg$currPos = s0;
1972
+ s0 = peg$FAILED;
1973
+ }
1974
+ } else {
1975
+ peg$currPos = s0;
1976
+ s0 = peg$FAILED;
1977
+ }
1978
+ } else {
1979
+ peg$currPos = s0;
1980
+ s0 = peg$FAILED;
1981
+ }
1982
+ } else {
1983
+ peg$currPos = s0;
1984
+ s0 = peg$FAILED;
1985
+ }
1986
+ } else {
1987
+ peg$currPos = s0;
1988
+ s0 = peg$FAILED;
1989
+ }
1990
+ } else {
1991
+ peg$currPos = s0;
1992
+ s0 = peg$FAILED;
1993
+ }
1994
+ } else {
1995
+ peg$currPos = s0;
1996
+ s0 = peg$FAILED;
1997
+ }
1998
+ } else {
1999
+ peg$currPos = s0;
2000
+ s0 = peg$FAILED;
2001
+ }
2002
+ } else {
2003
+ peg$currPos = s0;
2004
+ s0 = peg$FAILED;
2005
+ }
2006
+ } else {
2007
+ peg$currPos = s0;
2008
+ s0 = peg$FAILED;
2009
+ }
2010
+ peg$silentFails--;
2011
+ if (s0 === peg$FAILED) {
2012
+ s1 = peg$FAILED;
2013
+ if (peg$silentFails === 0) {
2014
+ peg$fail(peg$e3);
2015
+ }
2016
+ }
2017
+ return s0;
2018
+ }
2019
+ function peg$parsetranslate() {
2020
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
2021
+ peg$silentFails++;
2022
+ s0 = peg$currPos;
2023
+ s1 = peg$parse_();
2024
+ if (input.substr(peg$currPos, 10) === peg$c2) {
2025
+ s2 = peg$c2;
2026
+ peg$currPos += 10;
2027
+ } else {
2028
+ s2 = peg$FAILED;
2029
+ if (peg$silentFails === 0) {
2030
+ peg$fail(peg$e7);
2031
+ }
2032
+ }
2033
+ if (s2 !== peg$FAILED) {
2034
+ s3 = peg$parse_();
2035
+ s4 = peg$parseNUM();
2036
+ if (s4 !== peg$FAILED) {
2037
+ s5 = peg$parsespaceOrComma();
2038
+ s6 = peg$parseNUM();
2039
+ if (s6 === peg$FAILED) {
2040
+ s6 = null;
2041
+ }
2042
+ s7 = peg$parse_();
2043
+ if (input.charCodeAt(peg$currPos) === 41) {
2044
+ s8 = peg$c1;
2045
+ peg$currPos++;
2046
+ } else {
2047
+ s8 = peg$FAILED;
2048
+ if (peg$silentFails === 0) {
2049
+ peg$fail(peg$e5);
2050
+ }
2051
+ }
2052
+ if (s8 !== peg$FAILED) {
2053
+ s9 = peg$parse_();
2054
+ peg$savedPos = s0;
2055
+ s0 = peg$f2(s4, s6);
2056
+ } else {
2057
+ peg$currPos = s0;
2058
+ s0 = peg$FAILED;
2059
+ }
2060
+ } else {
2061
+ peg$currPos = s0;
2062
+ s0 = peg$FAILED;
2063
+ }
2064
+ } else {
2065
+ peg$currPos = s0;
2066
+ s0 = peg$FAILED;
2067
+ }
2068
+ peg$silentFails--;
2069
+ if (s0 === peg$FAILED) {
2070
+ s1 = peg$FAILED;
2071
+ if (peg$silentFails === 0) {
2072
+ peg$fail(peg$e6);
2073
+ }
2074
+ }
2075
+ return s0;
2076
+ }
2077
+ function peg$parsescale() {
2078
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
2079
+ peg$silentFails++;
2080
+ s0 = peg$currPos;
2081
+ s1 = peg$parse_();
2082
+ if (input.substr(peg$currPos, 6) === peg$c3) {
2083
+ s2 = peg$c3;
2084
+ peg$currPos += 6;
2085
+ } else {
2086
+ s2 = peg$FAILED;
2087
+ if (peg$silentFails === 0) {
2088
+ peg$fail(peg$e9);
2089
+ }
2090
+ }
2091
+ if (s2 !== peg$FAILED) {
2092
+ s3 = peg$parse_();
2093
+ s4 = peg$parseNUM();
2094
+ if (s4 !== peg$FAILED) {
2095
+ s5 = peg$parsespaceOrComma();
2096
+ s6 = peg$parseNUM();
2097
+ if (s6 === peg$FAILED) {
2098
+ s6 = null;
2099
+ }
2100
+ s7 = peg$parse_();
2101
+ if (input.charCodeAt(peg$currPos) === 41) {
2102
+ s8 = peg$c1;
2103
+ peg$currPos++;
2104
+ } else {
2105
+ s8 = peg$FAILED;
2106
+ if (peg$silentFails === 0) {
2107
+ peg$fail(peg$e5);
2108
+ }
2109
+ }
2110
+ if (s8 !== peg$FAILED) {
2111
+ s9 = peg$parse_();
2112
+ peg$savedPos = s0;
2113
+ s0 = peg$f3(s4, s6);
2114
+ } else {
2115
+ peg$currPos = s0;
2116
+ s0 = peg$FAILED;
2117
+ }
2118
+ } else {
2119
+ peg$currPos = s0;
2120
+ s0 = peg$FAILED;
2121
+ }
2122
+ } else {
2123
+ peg$currPos = s0;
2124
+ s0 = peg$FAILED;
2125
+ }
2126
+ peg$silentFails--;
2127
+ if (s0 === peg$FAILED) {
2128
+ s1 = peg$FAILED;
2129
+ if (peg$silentFails === 0) {
2130
+ peg$fail(peg$e8);
2131
+ }
2132
+ }
2133
+ return s0;
2134
+ }
2135
+ function peg$parserotate() {
2136
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8;
2137
+ peg$silentFails++;
2138
+ s0 = peg$currPos;
2139
+ s1 = peg$parse_();
2140
+ if (input.substr(peg$currPos, 7) === peg$c4) {
2141
+ s2 = peg$c4;
2142
+ peg$currPos += 7;
2143
+ } else {
2144
+ s2 = peg$FAILED;
2145
+ if (peg$silentFails === 0) {
2146
+ peg$fail(peg$e11);
2147
+ }
2148
+ }
2149
+ if (s2 !== peg$FAILED) {
2150
+ s3 = peg$parse_();
2151
+ s4 = peg$parseNUM();
2152
+ if (s4 !== peg$FAILED) {
2153
+ s5 = peg$parsetwoNumbers();
2154
+ if (s5 === peg$FAILED) {
2155
+ s5 = null;
2156
+ }
2157
+ s6 = peg$parse_();
2158
+ if (input.charCodeAt(peg$currPos) === 41) {
2159
+ s7 = peg$c1;
2160
+ peg$currPos++;
2161
+ } else {
2162
+ s7 = peg$FAILED;
2163
+ if (peg$silentFails === 0) {
2164
+ peg$fail(peg$e5);
2165
+ }
2166
+ }
2167
+ if (s7 !== peg$FAILED) {
2168
+ s8 = peg$parse_();
2169
+ peg$savedPos = s0;
2170
+ s0 = peg$f4(s4, s5);
2171
+ } else {
2172
+ peg$currPos = s0;
2173
+ s0 = peg$FAILED;
2174
+ }
2175
+ } else {
2176
+ peg$currPos = s0;
2177
+ s0 = peg$FAILED;
2178
+ }
2179
+ } else {
2180
+ peg$currPos = s0;
2181
+ s0 = peg$FAILED;
2182
+ }
2183
+ peg$silentFails--;
2184
+ if (s0 === peg$FAILED) {
2185
+ s1 = peg$FAILED;
2186
+ if (peg$silentFails === 0) {
2187
+ peg$fail(peg$e10);
2188
+ }
2189
+ }
2190
+ return s0;
2191
+ }
2192
+ function peg$parsetwoNumbers() {
2193
+ var s0, s1, s2, s3, s4;
2194
+ peg$silentFails++;
2195
+ s0 = peg$currPos;
2196
+ s1 = peg$parsespaceOrComma();
2197
+ s2 = peg$parseNUM();
2198
+ if (s2 !== peg$FAILED) {
2199
+ s3 = peg$parsespaceOrComma();
2200
+ s4 = peg$parseNUM();
2201
+ if (s4 !== peg$FAILED) {
2202
+ peg$savedPos = s0;
2203
+ s0 = peg$f5(s2, s4);
2204
+ } else {
2205
+ peg$currPos = s0;
2206
+ s0 = peg$FAILED;
2207
+ }
2208
+ } else {
2209
+ peg$currPos = s0;
2210
+ s0 = peg$FAILED;
2211
+ }
2212
+ peg$silentFails--;
2213
+ if (s0 === peg$FAILED) {
2214
+ s1 = peg$FAILED;
2215
+ if (peg$silentFails === 0) {
2216
+ peg$fail(peg$e12);
2217
+ }
2218
+ }
2219
+ return s0;
2220
+ }
2221
+ function peg$parseskewX() {
2222
+ var s0, s1, s2, s3, s4, s5, s6, s7;
2223
+ peg$silentFails++;
2224
+ s0 = peg$currPos;
2225
+ s1 = peg$parse_();
2226
+ if (input.substr(peg$currPos, 6) === peg$c5) {
2227
+ s2 = peg$c5;
2228
+ peg$currPos += 6;
2229
+ } else {
2230
+ s2 = peg$FAILED;
2231
+ if (peg$silentFails === 0) {
2232
+ peg$fail(peg$e14);
2233
+ }
2234
+ }
2235
+ if (s2 !== peg$FAILED) {
2236
+ s3 = peg$parse_();
2237
+ s4 = peg$parseNUM();
2238
+ if (s4 !== peg$FAILED) {
2239
+ s5 = peg$parse_();
2240
+ if (input.charCodeAt(peg$currPos) === 41) {
2241
+ s6 = peg$c1;
2242
+ peg$currPos++;
2243
+ } else {
2244
+ s6 = peg$FAILED;
2245
+ if (peg$silentFails === 0) {
2246
+ peg$fail(peg$e5);
2247
+ }
2248
+ }
2249
+ if (s6 !== peg$FAILED) {
2250
+ s7 = peg$parse_();
2251
+ peg$savedPos = s0;
2252
+ s0 = peg$f6(s4);
2253
+ } else {
2254
+ peg$currPos = s0;
2255
+ s0 = peg$FAILED;
2256
+ }
2257
+ } else {
2258
+ peg$currPos = s0;
2259
+ s0 = peg$FAILED;
2260
+ }
2261
+ } else {
2262
+ peg$currPos = s0;
2263
+ s0 = peg$FAILED;
2264
+ }
2265
+ peg$silentFails--;
2266
+ if (s0 === peg$FAILED) {
2267
+ s1 = peg$FAILED;
2268
+ if (peg$silentFails === 0) {
2269
+ peg$fail(peg$e13);
2270
+ }
2271
+ }
2272
+ return s0;
2273
+ }
2274
+ function peg$parseskewY() {
2275
+ var s0, s1, s2, s3, s4, s5, s6, s7;
2276
+ peg$silentFails++;
2277
+ s0 = peg$currPos;
2278
+ s1 = peg$parse_();
2279
+ if (input.substr(peg$currPos, 6) === peg$c6) {
2280
+ s2 = peg$c6;
2281
+ peg$currPos += 6;
2282
+ } else {
2283
+ s2 = peg$FAILED;
2284
+ if (peg$silentFails === 0) {
2285
+ peg$fail(peg$e16);
2286
+ }
2287
+ }
2288
+ if (s2 !== peg$FAILED) {
2289
+ s3 = peg$parse_();
2290
+ s4 = peg$parseNUM();
2291
+ if (s4 !== peg$FAILED) {
2292
+ s5 = peg$parse_();
2293
+ if (input.charCodeAt(peg$currPos) === 41) {
2294
+ s6 = peg$c1;
2295
+ peg$currPos++;
2296
+ } else {
2297
+ s6 = peg$FAILED;
2298
+ if (peg$silentFails === 0) {
2299
+ peg$fail(peg$e5);
2300
+ }
2301
+ }
2302
+ if (s6 !== peg$FAILED) {
2303
+ s7 = peg$parse_();
2304
+ peg$savedPos = s0;
2305
+ s0 = peg$f7(s4);
2306
+ } else {
2307
+ peg$currPos = s0;
2308
+ s0 = peg$FAILED;
2309
+ }
2310
+ } else {
2311
+ peg$currPos = s0;
2312
+ s0 = peg$FAILED;
2313
+ }
2314
+ } else {
2315
+ peg$currPos = s0;
2316
+ s0 = peg$FAILED;
2317
+ }
2318
+ peg$silentFails--;
2319
+ if (s0 === peg$FAILED) {
2320
+ s1 = peg$FAILED;
2321
+ if (peg$silentFails === 0) {
2322
+ peg$fail(peg$e15);
2323
+ }
2324
+ }
2325
+ return s0;
2326
+ }
2327
+ function peg$parsespaceOrComma() {
2328
+ var s0, s1;
2329
+ peg$silentFails++;
2330
+ s0 = [];
2331
+ s1 = input.charAt(peg$currPos);
2332
+ if (peg$r0.test(s1)) {
2333
+ peg$currPos++;
2334
+ } else {
2335
+ s1 = peg$FAILED;
2336
+ if (peg$silentFails === 0) {
2337
+ peg$fail(peg$e18);
2338
+ }
2339
+ }
2340
+ while (s1 !== peg$FAILED) {
2341
+ s0.push(s1);
2342
+ s1 = input.charAt(peg$currPos);
2343
+ if (peg$r0.test(s1)) {
2344
+ peg$currPos++;
2345
+ } else {
2346
+ s1 = peg$FAILED;
2347
+ if (peg$silentFails === 0) {
2348
+ peg$fail(peg$e18);
2349
+ }
2350
+ }
2351
+ }
2352
+ peg$silentFails--;
2353
+ s1 = peg$FAILED;
2354
+ if (peg$silentFails === 0) {
2355
+ peg$fail(peg$e17);
2356
+ }
2357
+ return s0;
2358
+ }
2359
+ function peg$parse_() {
2360
+ var s0, s1;
2361
+ peg$silentFails++;
2362
+ s0 = [];
2363
+ s1 = input.charAt(peg$currPos);
2364
+ if (peg$r1.test(s1)) {
2365
+ peg$currPos++;
2366
+ } else {
2367
+ s1 = peg$FAILED;
2368
+ if (peg$silentFails === 0) {
2369
+ peg$fail(peg$e20);
2370
+ }
2371
+ }
2372
+ while (s1 !== peg$FAILED) {
2373
+ s0.push(s1);
2374
+ s1 = input.charAt(peg$currPos);
2375
+ if (peg$r1.test(s1)) {
2376
+ peg$currPos++;
2377
+ } else {
2378
+ s1 = peg$FAILED;
2379
+ if (peg$silentFails === 0) {
2380
+ peg$fail(peg$e20);
2381
+ }
2382
+ }
2383
+ }
2384
+ peg$silentFails--;
2385
+ s1 = peg$FAILED;
2386
+ if (peg$silentFails === 0) {
2387
+ peg$fail(peg$e19);
2388
+ }
2389
+ return s0;
2390
+ }
2391
+ function peg$parseNUM() {
2392
+ var s0, s1, s2, s3, s4, s5, s6, s7;
2393
+ s0 = peg$currPos;
2394
+ s1 = input.charAt(peg$currPos);
2395
+ if (peg$r2.test(s1)) {
2396
+ peg$currPos++;
2397
+ } else {
2398
+ s1 = peg$FAILED;
2399
+ if (peg$silentFails === 0) {
2400
+ peg$fail(peg$e21);
2401
+ }
2402
+ }
2403
+ if (s1 === peg$FAILED) {
2404
+ s1 = null;
2405
+ }
2406
+ s2 = peg$currPos;
2407
+ s3 = [];
2408
+ s4 = input.charAt(peg$currPos);
2409
+ if (peg$r3.test(s4)) {
2410
+ peg$currPos++;
2411
+ } else {
2412
+ s4 = peg$FAILED;
2413
+ if (peg$silentFails === 0) {
2414
+ peg$fail(peg$e22);
2415
+ }
2416
+ }
2417
+ while (s4 !== peg$FAILED) {
2418
+ s3.push(s4);
2419
+ s4 = input.charAt(peg$currPos);
2420
+ if (peg$r3.test(s4)) {
2421
+ peg$currPos++;
2422
+ } else {
2423
+ s4 = peg$FAILED;
2424
+ if (peg$silentFails === 0) {
2425
+ peg$fail(peg$e22);
2426
+ }
2427
+ }
2428
+ }
2429
+ if (input.charCodeAt(peg$currPos) === 46) {
2430
+ s4 = peg$c7;
2431
+ peg$currPos++;
2432
+ } else {
2433
+ s4 = peg$FAILED;
2434
+ if (peg$silentFails === 0) {
2435
+ peg$fail(peg$e23);
2436
+ }
2437
+ }
2438
+ if (s4 !== peg$FAILED) {
2439
+ s5 = [];
2440
+ s6 = input.charAt(peg$currPos);
2441
+ if (peg$r3.test(s6)) {
2442
+ peg$currPos++;
2443
+ } else {
2444
+ s6 = peg$FAILED;
2445
+ if (peg$silentFails === 0) {
2446
+ peg$fail(peg$e22);
2447
+ }
2448
+ }
2449
+ if (s6 !== peg$FAILED) {
2450
+ while (s6 !== peg$FAILED) {
2451
+ s5.push(s6);
2452
+ s6 = input.charAt(peg$currPos);
2453
+ if (peg$r3.test(s6)) {
2454
+ peg$currPos++;
2455
+ } else {
2456
+ s6 = peg$FAILED;
2457
+ if (peg$silentFails === 0) {
2458
+ peg$fail(peg$e22);
2459
+ }
2460
+ }
2461
+ }
2462
+ } else {
2463
+ s5 = peg$FAILED;
2464
+ }
2465
+ if (s5 !== peg$FAILED) {
2466
+ s3 = [s3, s4, s5];
2467
+ s2 = s3;
2468
+ } else {
2469
+ peg$currPos = s2;
2470
+ s2 = peg$FAILED;
2471
+ }
2472
+ } else {
2473
+ peg$currPos = s2;
2474
+ s2 = peg$FAILED;
2475
+ }
2476
+ if (s2 === peg$FAILED) {
2477
+ s2 = [];
2478
+ s3 = input.charAt(peg$currPos);
2479
+ if (peg$r3.test(s3)) {
2480
+ peg$currPos++;
2481
+ } else {
2482
+ s3 = peg$FAILED;
2483
+ if (peg$silentFails === 0) {
2484
+ peg$fail(peg$e22);
2485
+ }
2486
+ }
2487
+ if (s3 !== peg$FAILED) {
2488
+ while (s3 !== peg$FAILED) {
2489
+ s2.push(s3);
2490
+ s3 = input.charAt(peg$currPos);
2491
+ if (peg$r3.test(s3)) {
2492
+ peg$currPos++;
2493
+ } else {
2494
+ s3 = peg$FAILED;
2495
+ if (peg$silentFails === 0) {
2496
+ peg$fail(peg$e22);
2497
+ }
2498
+ }
2499
+ }
2500
+ } else {
2501
+ s2 = peg$FAILED;
2502
+ }
2503
+ }
2504
+ if (s2 !== peg$FAILED) {
2505
+ s3 = peg$currPos;
2506
+ if (input.charCodeAt(peg$currPos) === 101) {
2507
+ s4 = peg$c8;
2508
+ peg$currPos++;
2509
+ } else {
2510
+ s4 = peg$FAILED;
2511
+ if (peg$silentFails === 0) {
2512
+ peg$fail(peg$e24);
2513
+ }
2514
+ }
2515
+ if (s4 !== peg$FAILED) {
2516
+ s5 = input.charAt(peg$currPos);
2517
+ if (peg$r2.test(s5)) {
2518
+ peg$currPos++;
2519
+ } else {
2520
+ s5 = peg$FAILED;
2521
+ if (peg$silentFails === 0) {
2522
+ peg$fail(peg$e21);
2523
+ }
2524
+ }
2525
+ if (s5 === peg$FAILED) {
2526
+ s5 = null;
2527
+ }
2528
+ s6 = [];
2529
+ s7 = input.charAt(peg$currPos);
2530
+ if (peg$r3.test(s7)) {
2531
+ peg$currPos++;
2532
+ } else {
2533
+ s7 = peg$FAILED;
2534
+ if (peg$silentFails === 0) {
2535
+ peg$fail(peg$e22);
2536
+ }
2537
+ }
2538
+ if (s7 !== peg$FAILED) {
2539
+ while (s7 !== peg$FAILED) {
2540
+ s6.push(s7);
2541
+ s7 = input.charAt(peg$currPos);
2542
+ if (peg$r3.test(s7)) {
2543
+ peg$currPos++;
2544
+ } else {
2545
+ s7 = peg$FAILED;
2546
+ if (peg$silentFails === 0) {
2547
+ peg$fail(peg$e22);
2548
+ }
2549
+ }
2550
+ }
2551
+ } else {
2552
+ s6 = peg$FAILED;
2553
+ }
2554
+ if (s6 !== peg$FAILED) {
2555
+ s4 = [s4, s5, s6];
2556
+ s3 = s4;
2557
+ } else {
2558
+ peg$currPos = s3;
2559
+ s3 = peg$FAILED;
2560
+ }
2561
+ } else {
2562
+ peg$currPos = s3;
2563
+ s3 = peg$FAILED;
2564
+ }
2565
+ if (s3 === peg$FAILED) {
2566
+ s3 = null;
2567
+ }
2568
+ peg$savedPos = s0;
2569
+ s0 = peg$f8();
2570
+ } else {
2571
+ peg$currPos = s0;
2572
+ s0 = peg$FAILED;
2573
+ }
2574
+ return s0;
2575
+ }
2576
+ peg$result = peg$startRuleFunction();
2577
+ if (options.peg$library) {
2578
+ return {
2579
+ peg$result,
2580
+ peg$currPos,
2581
+ peg$FAILED,
2582
+ peg$maxFailExpected,
2583
+ peg$maxFailPos
2584
+ };
2585
+ }
2586
+ if (peg$result !== peg$FAILED && peg$currPos === input.length) {
2587
+ return peg$result;
2588
+ } else {
2589
+ if (peg$result !== peg$FAILED && peg$currPos < input.length) {
2590
+ peg$fail(peg$endExpectation());
2591
+ }
2592
+ throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos));
2593
+ }
2594
+ }
2595
+ module.exports = {
2596
+ StartRules: ["start"],
2597
+ SyntaxError: peg$SyntaxError,
2598
+ parse: peg$parse
2599
+ };
2600
+ });
2601
+
2602
+ // node_modules/@react-native/assets-registry/registry.js
2603
+ var require_registry = __commonJS(function(exports, module) {
2604
+ var assets = [];
2605
+ function registerAsset(asset) {
2606
+ return assets.push(asset);
2607
+ }
2608
+ function getAssetByID(assetId) {
2609
+ return assets[assetId - 1];
2610
+ }
2611
+ module.exports = { registerAsset, getAssetByID };
2612
+ });
2613
+
2614
+ // node_modules/@ankhorage/surface/src/features/button/adapters/inbound/ButtonPresentation.tsx
2615
+ var import_react_native = __toESM(require_cjs(), 1);
2616
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2617
+ function ButtonPresentation({ Icon, ...props }) {
2618
+ const {
2619
+ children,
2620
+ variant = "solid",
2621
+ color = "primary",
2622
+ size = "m",
2623
+ disabled = false,
2624
+ loading = false,
2625
+ leadingIcon,
2626
+ trailingIcon,
2627
+ fullWidth = false,
2628
+ onPress,
2629
+ testID,
2630
+ ...pressableProps
2631
+ } = props;
2632
+ const { theme } = useTheme();
2633
+ const controlSize = resolveControlSize(theme, size);
2634
+ return /* @__PURE__ */ jsx(Pressable, {
2635
+ ...pressableProps,
2636
+ disabled: disabled || loading,
2637
+ onPress,
2638
+ style: resolvePressableStyle(fullWidth),
2639
+ testID,
2640
+ children: (state) => /* @__PURE__ */ jsx(ButtonContent, {
2641
+ Icon,
2642
+ color,
2643
+ controlSize,
2644
+ fullWidth,
2645
+ leadingIcon,
2646
+ loading,
2647
+ size,
2648
+ state,
2649
+ theme,
2650
+ trailingIcon,
2651
+ variant,
2652
+ children
2653
+ })
2654
+ });
2655
+ }
2656
+ function ButtonContent({
2657
+ Icon,
2658
+ children,
2659
+ color,
2660
+ controlSize,
2661
+ fullWidth,
2662
+ leadingIcon,
2663
+ loading,
2664
+ size,
2665
+ state,
2666
+ theme,
2667
+ trailingIcon,
2668
+ variant
2669
+ }) {
2670
+ const colors = resolveButtonColors(theme, { variant, color, state });
2671
+ const iconSize = resolveIconSize2(theme, size);
2672
+ return /* @__PURE__ */ jsx(View3, {
2673
+ px: controlSize.paddingHorizontal,
2674
+ py: controlSize.paddingVertical,
2675
+ radius: controlSize.borderRadius,
2676
+ style: resolveButtonContentStyle(controlSize, colors, fullWidth, variant),
2677
+ children: loading ? /* @__PURE__ */ jsx(import_react_native.ActivityIndicator, {
2678
+ color: colors.contentColor,
2679
+ size: "small"
2680
+ }) : /* @__PURE__ */ jsxs(Fragment, {
2681
+ children: [
2682
+ leadingIcon ? /* @__PURE__ */ jsx(import_react_native.View, {
2683
+ style: resolveAccessoryStyle(theme.spacing.s, "leading"),
2684
+ children: /* @__PURE__ */ jsx(Icon, {
2685
+ ...leadingIcon,
2686
+ color: colors.contentColor,
2687
+ size: iconSize
2688
+ })
2689
+ }) : null,
2690
+ /* @__PURE__ */ jsx(Text2, {
2691
+ style: { color: colors.contentColor },
2692
+ variant: controlSize.textVariant,
2693
+ weight: "semiBold",
2694
+ children
2695
+ }),
2696
+ trailingIcon ? /* @__PURE__ */ jsx(import_react_native.View, {
2697
+ style: resolveAccessoryStyle(theme.spacing.s, "trailing"),
2698
+ children: /* @__PURE__ */ jsx(Icon, {
2699
+ ...trailingIcon,
2700
+ color: colors.contentColor,
2701
+ size: iconSize
2702
+ })
2703
+ }) : null
2704
+ ]
2705
+ })
2706
+ });
2707
+ }
2708
+ function resolvePressableStyle(fullWidth) {
2709
+ return { alignSelf: fullWidth ? "stretch" : "flex-start" };
2710
+ }
2711
+ function resolveButtonContentStyle(controlSize, colors, fullWidth, variant) {
2712
+ return {
2713
+ alignItems: "center",
2714
+ backgroundColor: colors.backgroundColor,
2715
+ borderColor: colors.borderColor,
2716
+ borderWidth: variant === "solid" ? 0 : 1,
2717
+ flexDirection: "row",
2718
+ justifyContent: "center",
2719
+ minHeight: controlSize.minHeight,
2720
+ opacity: colors.opacity,
2721
+ width: fullWidth ? "100%" : undefined
2722
+ };
2723
+ }
2724
+ function resolveAccessoryStyle(spacing, position) {
2725
+ return position === "leading" ? { marginRight: spacing } : { marginLeft: spacing };
2726
+ }
2727
+
2728
+ // node_modules/@ankhorage/surface/src/features/button/adapters/inbound/Button.web.tsx
2729
+ import { jsx as jsx2 } from "react/jsx-runtime";
2730
+ function Button3(props) {
2731
+ return /* @__PURE__ */ jsx2(ButtonPresentation, {
2732
+ ...props,
2733
+ Icon: Icon3
2734
+ });
2735
+ }
2736
+
2737
+ // node_modules/react-native-svg/lib/module/web/utils/index.js
2738
+ var camelCaseToDashed = (camelCase) => {
2739
+ return camelCase.replace(/[A-Z]/g, (m) => "-" + m.toLowerCase());
2740
+ };
2741
+ var getBoundingClientRect = (node) => {
2742
+ if (node) {
2743
+ const isElement = node.nodeType === 1;
2744
+ if (isElement && typeof node.getBoundingClientRect === "function") {
2745
+ return node.getBoundingClientRect();
2746
+ }
2747
+ }
2748
+ throw new Error("Can not get boundingClientRect of " + node || "undefined");
2749
+ };
2750
+ var measureLayout = (node, callback) => {
2751
+ const relativeNode = node === null || node === undefined ? undefined : node.parentNode;
2752
+ if (relativeNode) {
2753
+ setTimeout(() => {
2754
+ const relativeRect = getBoundingClientRect(relativeNode);
2755
+ const {
2756
+ height,
2757
+ left,
2758
+ top,
2759
+ width
2760
+ } = getBoundingClientRect(node);
2761
+ const x = left - relativeRect.left;
2762
+ const y = top - relativeRect.top;
2763
+ callback(x, y, width, height, left, top);
2764
+ }, 0);
2765
+ }
2766
+ };
2767
+ function remeasure() {
2768
+ const tag = this.state.touchable.responderID;
2769
+ if (tag === null) {
2770
+ return;
2771
+ }
2772
+ measureLayout(tag, this._handleQueryLayout);
2773
+ }
2774
+ function encodeSvg(svgString) {
2775
+ return svgString.replace("<svg", ~svgString.indexOf("xmlns") ? "<svg" : '<svg xmlns="http://www.w3.org/2000/svg"').replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/{/g, "%7B").replace(/}/g, "%7D").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
2776
+ }
2777
+ var KEEP_CAMEL_CASE = new Set(["stdDeviation", "edgeMode", "kernelMatrix", "kernelUnitLength", "preserveAlpha", "baseFrequency", "targetX", "targetY", "numOctaves", "stitchTiles", "filterUnits", "primitiveUnits", "pathLength", "gradientUnits", "gradientTransform", "spreadMethod", "markerHeight", "markerUnits", "markerWidth", "viewBox", "refX", "refY", "maskContentUnits", "maskUnits", "patternContentUnits", "patternTransform", "patternUnits", "textLength", "lengthAdjust", "startOffset", "clipPathUnits"]);
2778
+ var getAttributeName = (attr) => {
2779
+ return KEEP_CAMEL_CASE.has(attr) ? attr : camelCaseToDashed(attr);
2780
+ };
2781
+
2782
+ // node_modules/react-native-svg/lib/module/web/WebShape.js
2783
+ var import_react_native5 = __toESM(require_cjs());
2784
+ import React from "react";
2785
+
2786
+ // node_modules/react-native-svg/lib/module/web/utils/hasProperty.js
2787
+ function hasTouchableProperty(props) {
2788
+ return !!(props.onPress || props.onPressIn || props.onPressOut || props.onLongPress);
2789
+ }
2790
+
2791
+ // node_modules/react-native-svg/lib/module/lib/Matrix2D.js
2792
+ var DEG_TO_RAD = Math.PI / 180;
2793
+
2794
+ // node_modules/react-native-svg/lib/module/lib/extract/extractTransform.js
2795
+ var import_transform = __toESM(require_transform());
2796
+ var import_transformToRn = __toESM(require_transformToRn());
2797
+ var getAngleValueInDeg = (angle) => {
2798
+ if (angle.endsWith("rad")) {
2799
+ return parseFloat(angle) * (180 / Math.PI);
2800
+ }
2801
+ if (angle.endsWith("deg")) {
2802
+ return parseFloat(angle);
2803
+ }
2804
+ };
2805
+ function stringifyTransformArrayProps(transformArray) {
2806
+ if (!transformArray) {
2807
+ return "";
2808
+ }
2809
+ return transformArray.map((transform) => {
2810
+ const [key, value] = Object.entries(transform)[0];
2811
+ switch (key) {
2812
+ case "translateX":
2813
+ return `translate(${value}, 0)`;
2814
+ case "translateY":
2815
+ return `translate(0, ${value})`;
2816
+ case "rotate":
2817
+ return `rotate(${getAngleValueInDeg(value)})`;
2818
+ case "scale":
2819
+ return `scale(${value})`;
2820
+ case "scaleX":
2821
+ return `scale(${value}, 1)`;
2822
+ case "scaleY":
2823
+ return `scale(1, ${value})`;
2824
+ case "skewX":
2825
+ return `skewX(${getAngleValueInDeg(value)})`;
2826
+ case "skewY":
2827
+ return `skewY(${getAngleValueInDeg(value)})`;
2828
+ case "matrix":
2829
+ return `matrix(${value.join(", ")})`;
2830
+ default:
2831
+ return "";
2832
+ }
2833
+ }).join(" ");
2834
+ }
2835
+
2836
+ // node_modules/react-native-svg/lib/module/web/utils/parseTransform.js
2837
+ function parseTransformProp(transform, props) {
2838
+ const transformArray = [];
2839
+ props && transformArray.push(...stringifyTransformProps(props));
2840
+ if (Array.isArray(transform)) {
2841
+ if (typeof transform[0] === "number") {
2842
+ transformArray.push(`matrix(${transform.join(" ")})`);
2843
+ } else {
2844
+ const stringifiedProps = stringifyTransformArrayProps(transform).split(" ");
2845
+ transformArray.push(...stringifiedProps);
2846
+ }
2847
+ } else if (typeof transform === "string") {
2848
+ transformArray.push(transform);
2849
+ }
2850
+ return transformArray.length ? transformArray.join(" ") : undefined;
2851
+ }
2852
+ function stringifyTransformProps(transformProps) {
2853
+ const transformArray = [];
2854
+ if (transformProps.translate != null) {
2855
+ transformArray.push(`translate(${transformProps.translate})`);
2856
+ }
2857
+ if (transformProps.translateX != null || transformProps.translateY != null) {
2858
+ transformArray.push(`translate(${transformProps.translateX || 0}, ${transformProps.translateY || 0})`);
2859
+ }
2860
+ if (transformProps.scale != null) {
2861
+ transformArray.push(`scale(${transformProps.scale})`);
2862
+ }
2863
+ if (transformProps.scaleX != null || transformProps.scaleY != null) {
2864
+ transformArray.push(`scale(${transformProps.scaleX || 1}, ${transformProps.scaleY || 1})`);
2865
+ }
2866
+ if (transformProps.rotation != null) {
2867
+ transformArray.push(`rotate(${transformProps.rotation})`);
2868
+ }
2869
+ if (transformProps.skewX != null) {
2870
+ transformArray.push(`skewX(${transformProps.skewX})`);
2871
+ }
2872
+ if (transformProps.skewY != null) {
2873
+ transformArray.push(`skewY(${transformProps.skewY})`);
2874
+ }
2875
+ return transformArray;
2876
+ }
2877
+
2878
+ // node_modules/react-native-svg/lib/module/lib/resolve.js
2879
+ var import_react_native2 = __toESM(require_cjs());
2880
+ function resolve(styleProp, cleanedProps) {
2881
+ if (styleProp) {
2882
+ return import_react_native2.StyleSheet ? [styleProp, cleanedProps] : styleProp[Symbol.iterator] ? Object.assign({}, ...styleProp, cleanedProps) : Object.assign({}, styleProp, cleanedProps);
2883
+ } else {
2884
+ return cleanedProps;
2885
+ }
2886
+ }
2887
+
2888
+ // node_modules/react-native-svg/lib/module/lib/resolveAssetUri.js
2889
+ var import_react_native3 = __toESM(require_cjs());
2890
+ var import_registry = __toESM(require_registry());
2891
+ var svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
2892
+ function resolveAssetUri(source) {
2893
+ let src = {};
2894
+ if (typeof source === "number") {
2895
+ const asset = import_registry.getAssetByID(source);
2896
+ if (asset == null) {
2897
+ throw new Error(`Image: asset with ID "${source}" could not be found. Please check the image source or packager.`);
2898
+ }
2899
+ src = {
2900
+ width: asset.width,
2901
+ height: asset.height,
2902
+ scale: asset.scales[0]
2903
+ };
2904
+ if (asset.scales.length > 1) {
2905
+ const preferredScale = import_react_native3.PixelRatio.get();
2906
+ src.scale = asset.scales.reduce((prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev);
2907
+ }
2908
+ const scaleSuffix = src.scale !== 1 ? `@${src.scale}x` : "";
2909
+ src.uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : "";
2910
+ } else if (typeof source === "string") {
2911
+ src.uri = source;
2912
+ } else if (source && !Array.isArray(source) && typeof source.uri === "string") {
2913
+ src.uri = source.uri;
2914
+ }
2915
+ if (src.uri) {
2916
+ var _src;
2917
+ const match = (_src = src) === null || _src === undefined || (_src = _src.uri) === null || _src === undefined ? undefined : _src.match(svgDataUriPattern);
2918
+ if (match) {
2919
+ const [, prefix, svg] = match;
2920
+ const encodedSvg = encodeURIComponent(svg);
2921
+ src.uri = `${prefix}${encodedSvg}`;
2922
+ return src;
2923
+ }
2924
+ }
2925
+ return src;
2926
+ }
2927
+
2928
+ // node_modules/react-native-svg/lib/module/web/utils/prepare.js
2929
+ var prepare = (self, props = self.props) => {
2930
+ const {
2931
+ transform,
2932
+ origin,
2933
+ originX,
2934
+ originY,
2935
+ fontFamily,
2936
+ fontSize,
2937
+ fontWeight,
2938
+ fontStyle,
2939
+ style,
2940
+ forwardedRef,
2941
+ gradientTransform,
2942
+ patternTransform,
2943
+ onPress,
2944
+ ...rest
2945
+ } = props;
2946
+ const clean = {
2947
+ ...hasTouchableProperty(props) ? {
2948
+ onStartShouldSetResponder: self.touchableHandleStartShouldSetResponder,
2949
+ onResponderTerminationRequest: self.touchableHandleResponderTerminationRequest,
2950
+ onResponderGrant: self.touchableHandleResponderGrant,
2951
+ onResponderMove: self.touchableHandleResponderMove,
2952
+ onResponderRelease: self.touchableHandleResponderRelease,
2953
+ onResponderTerminate: self.touchableHandleResponderTerminate
2954
+ } : null,
2955
+ ...rest
2956
+ };
2957
+ if (origin != null) {
2958
+ clean["transform-origin"] = origin.toString().replace(",", " ");
2959
+ } else if (originX != null || originY != null) {
2960
+ clean["transform-origin"] = `${originX || 0} ${originY || 0}`;
2961
+ }
2962
+ const parsedTransform = parseTransformProp(transform, props);
2963
+ if (parsedTransform) {
2964
+ clean.transform = parsedTransform;
2965
+ }
2966
+ const parsedGradientTransform = parseTransformProp(gradientTransform);
2967
+ if (parsedGradientTransform) {
2968
+ clean.gradientTransform = parsedGradientTransform;
2969
+ }
2970
+ const parsedPatternTransform = parseTransformProp(patternTransform);
2971
+ if (parsedPatternTransform) {
2972
+ clean.patternTransform = parsedPatternTransform;
2973
+ }
2974
+ clean.ref = (el) => {
2975
+ self.elementRef.current = el;
2976
+ if (typeof forwardedRef === "function") {
2977
+ forwardedRef(el);
2978
+ } else if (forwardedRef) {
2979
+ forwardedRef.current = el;
2980
+ }
2981
+ };
2982
+ const styles = {};
2983
+ if (fontFamily != null) {
2984
+ styles.fontFamily = fontFamily;
2985
+ }
2986
+ if (fontSize != null) {
2987
+ styles.fontSize = fontSize;
2988
+ }
2989
+ if (fontWeight != null) {
2990
+ styles.fontWeight = fontWeight;
2991
+ }
2992
+ if (fontStyle != null) {
2993
+ styles.fontStyle = fontStyle;
2994
+ }
2995
+ clean.style = resolve(style, styles);
2996
+ if (onPress !== null) {
2997
+ clean.onClick = props.onPress;
2998
+ }
2999
+ if (props.href !== null && props.href !== undefined) {
3000
+ var _resolveAssetUri;
3001
+ clean.href = (_resolveAssetUri = resolveAssetUri(props.href)) === null || _resolveAssetUri === undefined ? undefined : _resolveAssetUri.uri;
3002
+ }
3003
+ return clean;
3004
+ };
3005
+
3006
+ // node_modules/react-native-svg/lib/module/web/utils/convertInt32Color.js
3007
+ function convertInt32ColorToRGBA(color) {
3008
+ const r = color >> 16 & 255;
3009
+ const g = color >> 8 & 255;
3010
+ const b = color & 255;
3011
+ const a = (color >> 24 & 255) / 255;
3012
+ const alpha = a.toFixed(2);
3013
+ return `rgba(${r},${g},${b},${alpha})`;
3014
+ }
3015
+
3016
+ // node_modules/react-native-svg/lib/module/lib/SvgTouchableMixin.js
3017
+ var import_react_native4 = __toESM(require_cjs());
3018
+ var PRESS_RETENTION_OFFSET = {
3019
+ top: 20,
3020
+ left: 20,
3021
+ right: 20,
3022
+ bottom: 30
3023
+ };
3024
+ var {
3025
+ Mixin
3026
+ } = import_react_native4.Touchable;
3027
+ var {
3028
+ touchableHandleStartShouldSetResponder,
3029
+ touchableHandleResponderTerminationRequest,
3030
+ touchableHandleResponderGrant,
3031
+ touchableHandleResponderMove,
3032
+ touchableHandleResponderRelease,
3033
+ touchableHandleResponderTerminate,
3034
+ touchableGetInitialState
3035
+ } = Mixin;
3036
+ var SvgTouchableMixin = {
3037
+ ...Mixin,
3038
+ touchableHandleStartShouldSetResponder(e) {
3039
+ const {
3040
+ onStartShouldSetResponder
3041
+ } = this.props;
3042
+ if (onStartShouldSetResponder) {
3043
+ return onStartShouldSetResponder(e);
3044
+ } else {
3045
+ return touchableHandleStartShouldSetResponder.call(this, e);
3046
+ }
3047
+ },
3048
+ touchableHandleResponderTerminationRequest(e) {
3049
+ const {
3050
+ onResponderTerminationRequest
3051
+ } = this.props;
3052
+ if (onResponderTerminationRequest) {
3053
+ return onResponderTerminationRequest(e);
3054
+ } else {
3055
+ return touchableHandleResponderTerminationRequest.call(this, e);
3056
+ }
3057
+ },
3058
+ touchableHandleResponderGrant(e) {
3059
+ const {
3060
+ onResponderGrant
3061
+ } = this.props;
3062
+ if (onResponderGrant) {
3063
+ return onResponderGrant(e);
3064
+ } else {
3065
+ return touchableHandleResponderGrant.call(this, e);
3066
+ }
3067
+ },
3068
+ touchableHandleResponderMove(e) {
3069
+ const {
3070
+ onResponderMove
3071
+ } = this.props;
3072
+ if (onResponderMove) {
3073
+ return onResponderMove(e);
3074
+ } else {
3075
+ return touchableHandleResponderMove.call(this, e);
3076
+ }
3077
+ },
3078
+ touchableHandleResponderRelease(e) {
3079
+ const {
3080
+ onResponderRelease
3081
+ } = this.props;
3082
+ if (onResponderRelease) {
3083
+ return onResponderRelease(e);
3084
+ } else {
3085
+ return touchableHandleResponderRelease.call(this, e);
3086
+ }
3087
+ },
3088
+ touchableHandleResponderTerminate(e) {
3089
+ const {
3090
+ onResponderTerminate
3091
+ } = this.props;
3092
+ if (onResponderTerminate) {
3093
+ return onResponderTerminate(e);
3094
+ } else {
3095
+ return touchableHandleResponderTerminate.call(this, e);
3096
+ }
3097
+ },
3098
+ touchableHandlePress(e) {
3099
+ const {
3100
+ onPress
3101
+ } = this.props;
3102
+ onPress && onPress(e);
3103
+ },
3104
+ touchableHandleActivePressIn(e) {
3105
+ const {
3106
+ onPressIn
3107
+ } = this.props;
3108
+ onPressIn && onPressIn(e);
3109
+ },
3110
+ touchableHandleActivePressOut(e) {
3111
+ const {
3112
+ onPressOut
3113
+ } = this.props;
3114
+ onPressOut && onPressOut(e);
3115
+ },
3116
+ touchableHandleLongPress(e) {
3117
+ const {
3118
+ onLongPress
3119
+ } = this.props;
3120
+ onLongPress && onLongPress(e);
3121
+ },
3122
+ touchableGetPressRectOffset() {
3123
+ const {
3124
+ pressRetentionOffset
3125
+ } = this.props;
3126
+ return pressRetentionOffset || PRESS_RETENTION_OFFSET;
3127
+ },
3128
+ touchableGetHitSlop() {
3129
+ const {
3130
+ hitSlop
3131
+ } = this.props;
3132
+ return hitSlop;
3133
+ },
3134
+ touchableGetHighlightDelayMS() {
3135
+ const {
3136
+ delayPressIn
3137
+ } = this.props;
3138
+ return delayPressIn || 0;
3139
+ },
3140
+ touchableGetLongPressDelayMS() {
3141
+ const {
3142
+ delayLongPress
3143
+ } = this.props;
3144
+ return delayLongPress === 0 ? 0 : delayLongPress || 500;
3145
+ },
3146
+ touchableGetPressOutDelayMS() {
3147
+ const {
3148
+ delayPressOut
3149
+ } = this.props;
3150
+ return delayPressOut || 0;
3151
+ }
3152
+ };
3153
+ var touchKeys = Object.keys(SvgTouchableMixin);
3154
+ var touchVals = touchKeys.map((key) => SvgTouchableMixin[key]);
3155
+ var numTouchKeys = touchKeys.length;
3156
+ var SvgTouchableMixin_default = (target) => {
3157
+ for (let i = 0;i < numTouchKeys; i++) {
3158
+ const key = touchKeys[i];
3159
+ const val = touchVals[i];
3160
+ if (typeof val === "function") {
3161
+ target[key] = val.bind(target);
3162
+ } else {
3163
+ target[key] = val;
3164
+ }
3165
+ }
3166
+ target.state = touchableGetInitialState();
3167
+ };
3168
+
3169
+ // node_modules/react-native-svg/lib/module/web/WebShape.js
3170
+ class WebShape extends React.Component {
3171
+ prepareProps(props) {
3172
+ return props;
3173
+ }
3174
+ elementRef = /* @__PURE__ */ React.createRef();
3175
+ lastMergedProps = {};
3176
+ setNativeProps(props) {
3177
+ const merged = Object.assign({}, this.props, this.lastMergedProps, props.style);
3178
+ this.lastMergedProps = merged;
3179
+ const clean = prepare(this, this.prepareProps(merged));
3180
+ const current = this.elementRef.current;
3181
+ if (current) {
3182
+ for (const cleanAttribute of Object.keys(clean)) {
3183
+ const cleanValue = clean[cleanAttribute];
3184
+ switch (cleanAttribute) {
3185
+ case "ref":
3186
+ case "children":
3187
+ break;
3188
+ case "style":
3189
+ for (const partialStyle of [].concat(clean.style ?? [])) {
3190
+ Object.assign(current.style, partialStyle);
3191
+ }
3192
+ break;
3193
+ case "fill":
3194
+ if (cleanValue && typeof cleanValue === "object") {
3195
+ const value = cleanValue;
3196
+ current.setAttribute("fill", convertInt32ColorToRGBA(value.payload));
3197
+ }
3198
+ break;
3199
+ case "stroke":
3200
+ if (cleanValue && typeof cleanValue === "object") {
3201
+ const value = cleanValue;
3202
+ current.setAttribute("stroke", convertInt32ColorToRGBA(value.payload));
3203
+ }
3204
+ break;
3205
+ default:
3206
+ current.setAttribute(getAttributeName(cleanAttribute), cleanValue);
3207
+ break;
3208
+ }
3209
+ }
3210
+ }
3211
+ }
3212
+ constructor(props) {
3213
+ super(props);
3214
+ if (hasTouchableProperty(props)) {
3215
+ SvgTouchableMixin_default(this);
3216
+ }
3217
+ this._remeasureMetricsOnActivation = remeasure.bind(this);
3218
+ }
3219
+ render() {
3220
+ if (!this.tag) {
3221
+ throw new Error("When extending `WebShape` you need to overwrite either `tag` or `render`!");
3222
+ }
3223
+ this.lastMergedProps = {};
3224
+ return import_react_native5.unstable_createElement(this.tag, prepare(this, this.prepareProps(this.props)));
3225
+ }
3226
+ }
3227
+
3228
+ // node_modules/react-native-svg/lib/module/elements.web.js
3229
+ class Circle extends WebShape {
3230
+ tag = "circle";
3231
+ }
3232
+
3233
+ class ClipPath extends WebShape {
3234
+ tag = "clipPath";
3235
+ }
3236
+
3237
+ class Defs extends WebShape {
3238
+ tag = "defs";
3239
+ }
3240
+
3241
+ class Ellipse extends WebShape {
3242
+ tag = "ellipse";
3243
+ }
3244
+
3245
+ class FeBlend extends WebShape {
3246
+ tag = "feBlend";
3247
+ }
3248
+
3249
+ class FeColorMatrix extends WebShape {
3250
+ tag = "feColorMatrix";
3251
+ }
3252
+
3253
+ class FeComponentTransfer extends WebShape {
3254
+ tag = "feComponentTransfer";
3255
+ }
3256
+
3257
+ class FeComposite extends WebShape {
3258
+ tag = "feComposite";
3259
+ }
3260
+
3261
+ class FeConvolveMatrix extends WebShape {
3262
+ tag = "feConvolveMatrix";
3263
+ }
3264
+
3265
+ class FeDiffuseLighting extends WebShape {
3266
+ tag = "feDiffuseLighting";
3267
+ }
3268
+
3269
+ class FeDisplacementMap extends WebShape {
3270
+ tag = "feDisplacementMap";
3271
+ }
3272
+
3273
+ class FeDistantLight extends WebShape {
3274
+ tag = "feDistantLight";
3275
+ }
3276
+
3277
+ class FeDropShadow extends WebShape {
3278
+ tag = "feDropShadow";
3279
+ }
3280
+
3281
+ class FeFlood extends WebShape {
3282
+ tag = "feFlood";
3283
+ }
3284
+ class FeGaussianBlur extends WebShape {
3285
+ tag = "feGaussianBlur";
3286
+ }
3287
+
3288
+ class FeImage extends WebShape {
3289
+ tag = "feImage";
3290
+ }
3291
+
3292
+ class FeMerge extends WebShape {
3293
+ tag = "feMerge";
3294
+ }
3295
+
3296
+ class FeMergeNode extends WebShape {
3297
+ tag = "feMergeNode";
3298
+ }
3299
+
3300
+ class FeMorphology extends WebShape {
3301
+ tag = "feMorphology";
3302
+ }
3303
+
3304
+ class FeOffset extends WebShape {
3305
+ tag = "feOffset";
3306
+ }
3307
+
3308
+ class FePointLight extends WebShape {
3309
+ tag = "fePointLight";
3310
+ }
3311
+
3312
+ class FeSpecularLighting extends WebShape {
3313
+ tag = "feSpecularLighting";
3314
+ }
3315
+
3316
+ class FeSpotLight extends WebShape {
3317
+ tag = "feSpotLight";
3318
+ }
3319
+
3320
+ class FeTile extends WebShape {
3321
+ tag = "feTile";
3322
+ }
3323
+
3324
+ class FeTurbulence extends WebShape {
3325
+ tag = "feTurbulence";
3326
+ }
3327
+
3328
+ class Filter extends WebShape {
3329
+ tag = "filter";
3330
+ }
3331
+
3332
+ class ForeignObject extends WebShape {
3333
+ tag = "foreignObject";
3334
+ }
3335
+
3336
+ class G extends WebShape {
3337
+ tag = "g";
3338
+ prepareProps(props) {
3339
+ const {
3340
+ x,
3341
+ y,
3342
+ ...rest
3343
+ } = props;
3344
+ if ((x || y) && !rest.translate) {
3345
+ rest.translate = `${x || 0}, ${y || 0}`;
3346
+ }
3347
+ return rest;
3348
+ }
3349
+ }
3350
+
3351
+ class Image extends WebShape {
3352
+ tag = "image";
3353
+ }
3354
+
3355
+ class Line extends WebShape {
3356
+ tag = "line";
3357
+ }
3358
+
3359
+ class LinearGradient extends WebShape {
3360
+ tag = "linearGradient";
3361
+ }
3362
+
3363
+ class Marker extends WebShape {
3364
+ tag = "marker";
3365
+ }
3366
+
3367
+ class Mask extends WebShape {
3368
+ tag = "mask";
3369
+ }
3370
+
3371
+ class Path extends WebShape {
3372
+ tag = "path";
3373
+ }
3374
+
3375
+ class Pattern extends WebShape {
3376
+ tag = "pattern";
3377
+ }
3378
+
3379
+ class Polygon extends WebShape {
3380
+ tag = "polygon";
3381
+ }
3382
+
3383
+ class Polyline extends WebShape {
3384
+ tag = "polyline";
3385
+ }
3386
+
3387
+ class RadialGradient extends WebShape {
3388
+ tag = "radialGradient";
3389
+ }
3390
+
3391
+ class Rect extends WebShape {
3392
+ tag = "rect";
3393
+ }
3394
+
3395
+ class Stop extends WebShape {
3396
+ tag = "stop";
3397
+ }
3398
+
3399
+ class Svg extends WebShape {
3400
+ tag = "svg";
3401
+ toDataURL(callback, options = {}) {
3402
+ const ref = this.elementRef.current;
3403
+ if (ref === null) {
3404
+ return;
3405
+ }
3406
+ const rect = getBoundingClientRect(ref);
3407
+ const width = Number(options.width) || rect.width;
3408
+ const height = Number(options.height) || rect.height;
3409
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3410
+ svg.setAttribute("viewBox", `0 0 ${rect.width} ${rect.height}`);
3411
+ svg.setAttribute("width", String(width));
3412
+ svg.setAttribute("height", String(height));
3413
+ svg.appendChild(ref.cloneNode(true));
3414
+ const img = new window.Image;
3415
+ img.onload = () => {
3416
+ const canvas = document.createElement("canvas");
3417
+ canvas.width = width;
3418
+ canvas.height = height;
3419
+ const context = canvas.getContext("2d");
3420
+ context === null || context === undefined || context.drawImage(img, 0, 0);
3421
+ callback(canvas.toDataURL().replace("data:image/png;base64,", ""));
3422
+ };
3423
+ img.src = `data:image/svg+xml;utf8,${encodeSvg(new window.XMLSerializer().serializeToString(svg))}`;
3424
+ }
3425
+ }
3426
+
3427
+ class Symbol2 extends WebShape {
3428
+ tag = "symbol";
3429
+ }
3430
+
3431
+ class TSpan extends WebShape {
3432
+ tag = "tspan";
3433
+ }
3434
+
3435
+ class Text extends WebShape {
3436
+ tag = "text";
3437
+ }
3438
+
3439
+ class TextPath extends WebShape {
3440
+ tag = "textPath";
3441
+ }
3442
+
3443
+ class Use extends WebShape {
3444
+ tag = "use";
3445
+ }
3446
+
3447
+ // node_modules/react-native-svg/lib/module/xml.js
3448
+ import * as React2 from "react";
3449
+ import { Component, useEffect, useMemo, useState } from "react";
3450
+
3451
+ // node_modules/react-native-svg/lib/module/utils/fetchData.js
3452
+ var import_react_native6 = __toESM(require_cjs());
3453
+ async function fetchText(uri) {
3454
+ if (!uri) {
3455
+ return null;
3456
+ }
3457
+ if (uri.startsWith("data:image/svg+xml;utf8") && import_react_native6.Platform.OS === "android") {
3458
+ return dataUriToXml(uri);
3459
+ } else if (uri.startsWith("data:image/svg+xml;base64")) {
3460
+ return decodeBase64Image(uri);
3461
+ } else {
3462
+ return fetchUriData(uri);
3463
+ }
3464
+ }
3465
+ var decodeBase64Image = (uri) => {
3466
+ const decoded = decodeURIComponent(uri);
3467
+ const splitContent = decoded.split(";")[1].split(",");
3468
+ const content = splitContent.slice(1).join(",");
3469
+ return atob(content);
3470
+ };
3471
+ function dataUriToXml(uri) {
3472
+ try {
3473
+ return decodeURIComponent(uri).split(",").slice(1).join(",");
3474
+ } catch (error) {
3475
+ throw new Error(`Decoding ${uri} failed with error: ${error}`);
3476
+ }
3477
+ }
3478
+ async function fetchUriData(uri) {
3479
+ const response = await fetch(uri);
3480
+ if (response.ok || response.status === 0 && uri.startsWith("file://")) {
3481
+ return await response.text();
3482
+ }
3483
+ throw new Error(`Fetching ${uri} failed with status ${response.status}`);
3484
+ }
3485
+
3486
+ // node_modules/react-native-svg/lib/module/xmlTags.js
3487
+ var tags = {
3488
+ circle: Circle,
3489
+ clipPath: ClipPath,
3490
+ defs: Defs,
3491
+ ellipse: Ellipse,
3492
+ filter: Filter,
3493
+ feBlend: FeBlend,
3494
+ feColorMatrix: FeColorMatrix,
3495
+ feComponentTransfer: FeComponentTransfer,
3496
+ feComposite: FeComposite,
3497
+ feConvolveMatrix: FeConvolveMatrix,
3498
+ feDiffuseLighting: FeDiffuseLighting,
3499
+ feDisplacementMap: FeDisplacementMap,
3500
+ feDistantLight: FeDistantLight,
3501
+ feDropShadow: FeDropShadow,
3502
+ feFlood: FeFlood,
3503
+ feGaussianBlur: FeGaussianBlur,
3504
+ feImage: FeImage,
3505
+ feMerge: FeMerge,
3506
+ feMergeNode: FeMergeNode,
3507
+ feMorphology: FeMorphology,
3508
+ feOffset: FeOffset,
3509
+ fePointLight: FePointLight,
3510
+ feSpecularLighting: FeSpecularLighting,
3511
+ feSpotLight: FeSpotLight,
3512
+ feTile: FeTile,
3513
+ feTurbulence: FeTurbulence,
3514
+ foreignObject: ForeignObject,
3515
+ g: G,
3516
+ image: Image,
3517
+ line: Line,
3518
+ linearGradient: LinearGradient,
3519
+ marker: Marker,
3520
+ mask: Mask,
3521
+ path: Path,
3522
+ pattern: Pattern,
3523
+ polygon: Polygon,
3524
+ polyline: Polyline,
3525
+ radialGradient: RadialGradient,
3526
+ rect: Rect,
3527
+ stop: Stop,
3528
+ svg: Svg,
3529
+ symbol: Symbol2,
3530
+ text: Text,
3531
+ textPath: TextPath,
3532
+ tspan: TSpan,
3533
+ use: Use
3534
+ };
3535
+
3536
+ // node_modules/react-native-svg/lib/module/xml.js
3537
+ function _extends() {
3538
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
3539
+ for (var e = 1;e < arguments.length; e++) {
3540
+ var t = arguments[e];
3541
+ for (var r in t)
3542
+ ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3543
+ }
3544
+ return n;
3545
+ }, _extends.apply(null, arguments);
3546
+ }
3547
+ function missingTag() {
3548
+ return null;
3549
+ }
3550
+ function SvgAst({
3551
+ ast,
3552
+ override
3553
+ }) {
3554
+ if (!ast) {
3555
+ return null;
3556
+ }
3557
+ const {
3558
+ props,
3559
+ children
3560
+ } = ast;
3561
+ const Svg = tags.svg;
3562
+ return /* @__PURE__ */ React2.createElement(Svg, _extends({}, props, override), children);
3563
+ }
3564
+ var err = console.error.bind(console);
3565
+ function SvgXml(props) {
3566
+ const {
3567
+ onError = err,
3568
+ xml,
3569
+ override,
3570
+ fallback
3571
+ } = props;
3572
+ try {
3573
+ const ast = useMemo(() => xml !== null ? parse2(xml) : null, [xml]);
3574
+ return /* @__PURE__ */ React2.createElement(SvgAst, {
3575
+ ast,
3576
+ override: override || props
3577
+ });
3578
+ } catch (error) {
3579
+ onError(error);
3580
+ return fallback ?? null;
3581
+ }
3582
+ }
3583
+ function SvgUri(props) {
3584
+ const {
3585
+ onError = err,
3586
+ uri,
3587
+ onLoad,
3588
+ fallback
3589
+ } = props;
3590
+ const [xml, setXml] = useState(null);
3591
+ const [isError, setIsError] = useState(false);
3592
+ useEffect(() => {
3593
+ uri ? fetchText(uri).then((data) => {
3594
+ setXml(data);
3595
+ isError && setIsError(false);
3596
+ onLoad === null || onLoad === undefined || onLoad();
3597
+ }).catch((e) => {
3598
+ onError(e);
3599
+ setIsError(true);
3600
+ }) : setXml(null);
3601
+ }, [onError, uri, onLoad]);
3602
+ if (isError) {
3603
+ return fallback ?? null;
3604
+ }
3605
+ return /* @__PURE__ */ React2.createElement(SvgXml, {
3606
+ xml,
3607
+ override: props,
3608
+ fallback
3609
+ });
3610
+ }
3611
+ var upperCase = (_match, letter) => letter.toUpperCase();
3612
+ var camelCase = (phrase) => phrase.replace(/[:-]([a-z])/g, upperCase);
3613
+ function getStyle(string) {
3614
+ const style = {};
3615
+ const declarations = string.split(";").filter((v) => v.trim());
3616
+ const {
3617
+ length
3618
+ } = declarations;
3619
+ for (let i = 0;i < length; i++) {
3620
+ const declaration = declarations[i];
3621
+ if (declaration.length !== 0) {
3622
+ const split = declaration.split(":");
3623
+ const property = split[0];
3624
+ const value = split[1];
3625
+ style[camelCase(property.trim())] = value.trim();
3626
+ }
3627
+ }
3628
+ return style;
3629
+ }
3630
+ function astToReact(value, index) {
3631
+ if (typeof value === "object") {
3632
+ const {
3633
+ Tag,
3634
+ props,
3635
+ children
3636
+ } = value;
3637
+ if (props !== null && props !== undefined && props.class) {
3638
+ props.className = props.class;
3639
+ delete props.class;
3640
+ }
3641
+ return /* @__PURE__ */ React2.createElement(Tag, _extends({
3642
+ key: index
3643
+ }, props), children.map(astToReact));
3644
+ }
3645
+ return value;
3646
+ }
3647
+ function repeat(str, i) {
3648
+ let result = "";
3649
+ while (i--) {
3650
+ result += str;
3651
+ }
3652
+ return result;
3653
+ }
3654
+ var toSpaces = (tabs) => repeat(" ", tabs.length);
3655
+ function locate(source, i) {
3656
+ const lines = source.split(`
3657
+ `);
3658
+ const nLines = lines.length;
3659
+ let column = i;
3660
+ let line = 0;
3661
+ for (;line < nLines; line++) {
3662
+ const {
3663
+ length
3664
+ } = lines[line];
3665
+ if (column >= length) {
3666
+ column -= length;
3667
+ } else {
3668
+ break;
3669
+ }
3670
+ }
3671
+ const before = source.slice(0, i).replace(/^\t+/, toSpaces);
3672
+ const beforeExec = /(^|\n).*$/.exec(before);
3673
+ const beforeLine = beforeExec && beforeExec[0] || "";
3674
+ const after = source.slice(i);
3675
+ const afterExec = /.*(\n|$)/.exec(after);
3676
+ const afterLine = afterExec && afterExec[0];
3677
+ const pad = repeat(" ", beforeLine.length);
3678
+ const snippet = `${beforeLine}${afterLine}
3679
+ ${pad}^`;
3680
+ return {
3681
+ line,
3682
+ column,
3683
+ snippet
3684
+ };
3685
+ }
3686
+ var validNameCharacters = /[a-zA-Z0-9:_-]/;
3687
+ var commentStart = /<!--/;
3688
+ var whitespace = /[\s\t\r\n]/;
3689
+ var quotemarks = /['"]/;
3690
+ function parse2(source, middleware) {
3691
+ const length = source.length;
3692
+ let currentElement = null;
3693
+ let state = metadata;
3694
+ let children = null;
3695
+ let root;
3696
+ const stack = [];
3697
+ function error(message) {
3698
+ const {
3699
+ line,
3700
+ column,
3701
+ snippet
3702
+ } = locate(source, i);
3703
+ throw new Error(`${message} (${line}:${column}). If this is valid SVG, it's probably a bug. Please raise an issue
3704
+
3705
+ ${snippet}`);
3706
+ }
3707
+ function metadata() {
3708
+ while (i + 1 < length && (source[i] !== "<" || !(validNameCharacters.test(source[i + 1]) || commentStart.test(source.slice(i, i + 4))))) {
3709
+ i++;
3710
+ }
3711
+ return neutral();
3712
+ }
3713
+ function neutral() {
3714
+ let text = "";
3715
+ let char;
3716
+ while (i < length && (char = source[i]) !== "<") {
3717
+ text += char;
3718
+ i += 1;
3719
+ }
3720
+ if (/\S/.test(text)) {
3721
+ children.push(text);
3722
+ }
3723
+ if (source[i] === "<") {
3724
+ return openingTag;
3725
+ }
3726
+ return neutral;
3727
+ }
3728
+ function openingTag() {
3729
+ const char = source[i];
3730
+ if (char === "?") {
3731
+ return neutral;
3732
+ }
3733
+ if (char === "!") {
3734
+ const start = i + 1;
3735
+ if (source.slice(start, i + 3) === "--") {
3736
+ return comment;
3737
+ }
3738
+ const end = i + 8;
3739
+ if (source.slice(start, end) === "[CDATA[") {
3740
+ return cdata;
3741
+ }
3742
+ if (/doctype/i.test(source.slice(start, end))) {
3743
+ return doctype;
3744
+ }
3745
+ }
3746
+ if (char === "/") {
3747
+ return closingTag;
3748
+ }
3749
+ const tag = getName();
3750
+ const props = {};
3751
+ const element = {
3752
+ tag,
3753
+ props,
3754
+ children: [],
3755
+ parent: currentElement,
3756
+ Tag: tags[tag] || missingTag
3757
+ };
3758
+ if (currentElement) {
3759
+ children.push(element);
3760
+ } else {
3761
+ root = element;
3762
+ }
3763
+ getAttributes(props);
3764
+ const {
3765
+ style
3766
+ } = props;
3767
+ if (typeof style === "string") {
3768
+ element.styles = style;
3769
+ props.style = getStyle(style);
3770
+ }
3771
+ let selfClosing = false;
3772
+ if (source[i] === "/") {
3773
+ i += 1;
3774
+ selfClosing = true;
3775
+ }
3776
+ if (source[i] !== ">") {
3777
+ error("Expected >");
3778
+ }
3779
+ if (!selfClosing) {
3780
+ currentElement = element;
3781
+ ({
3782
+ children
3783
+ } = element);
3784
+ stack.push(element);
3785
+ }
3786
+ return neutral;
3787
+ }
3788
+ function comment() {
3789
+ const index = source.indexOf("-->", i);
3790
+ if (!~index) {
3791
+ error("expected -->");
3792
+ }
3793
+ i = index + 2;
3794
+ return neutral;
3795
+ }
3796
+ function cdata() {
3797
+ const index = source.indexOf("]]>", i);
3798
+ if (!~index) {
3799
+ error("expected ]]>");
3800
+ }
3801
+ children.push(source.slice(i + 7, index));
3802
+ i = index + 2;
3803
+ return neutral;
3804
+ }
3805
+ function doctype() {
3806
+ const index = source.indexOf(">", i);
3807
+ if (index === -1) {
3808
+ error("expected >");
3809
+ }
3810
+ i = index;
3811
+ return neutral;
3812
+ }
3813
+ function closingTag() {
3814
+ const tag = getName();
3815
+ if (!tag) {
3816
+ error("Expected tag name");
3817
+ }
3818
+ if (currentElement && tag !== currentElement.tag) {
3819
+ error(`Expected closing tag </${tag}> to match opening tag <${currentElement.tag}>`);
3820
+ }
3821
+ allowSpaces();
3822
+ if (source[i] !== ">") {
3823
+ error("Expected >");
3824
+ }
3825
+ stack.pop();
3826
+ currentElement = stack[stack.length - 1];
3827
+ if (currentElement) {
3828
+ ({
3829
+ children
3830
+ } = currentElement);
3831
+ }
3832
+ return neutral;
3833
+ }
3834
+ function getName() {
3835
+ let name = "";
3836
+ let char;
3837
+ while (i < length && validNameCharacters.test(char = source[i])) {
3838
+ name += char;
3839
+ i += 1;
3840
+ }
3841
+ return name;
3842
+ }
3843
+ function getAttributes(props) {
3844
+ while (i < length) {
3845
+ if (!whitespace.test(source[i])) {
3846
+ return;
3847
+ }
3848
+ allowSpaces();
3849
+ const name = getName();
3850
+ if (!name) {
3851
+ return;
3852
+ }
3853
+ let value = true;
3854
+ allowSpaces();
3855
+ if (source[i] === "=") {
3856
+ i += 1;
3857
+ allowSpaces();
3858
+ value = getAttributeValue();
3859
+ if (name !== "id" && !isNaN(+value) && value.trim() !== "") {
3860
+ value = +value;
3861
+ }
3862
+ }
3863
+ props[camelCase(name)] = value;
3864
+ }
3865
+ }
3866
+ function getAttributeValue() {
3867
+ return quotemarks.test(source[i]) ? getQuotedAttributeValue() : getUnquotedAttributeValue();
3868
+ }
3869
+ function getUnquotedAttributeValue() {
3870
+ let value = "";
3871
+ do {
3872
+ const char = source[i];
3873
+ if (char === " " || char === ">" || char === "/") {
3874
+ return value;
3875
+ }
3876
+ value += char;
3877
+ i += 1;
3878
+ } while (i < length);
3879
+ return value;
3880
+ }
3881
+ function getQuotedAttributeValue() {
3882
+ const quotemark = source[i++];
3883
+ let value = "";
3884
+ let escaped = false;
3885
+ while (i < length) {
3886
+ const char = source[i++];
3887
+ if (char === quotemark && !escaped) {
3888
+ return value;
3889
+ }
3890
+ if (char === "\\" && !escaped) {
3891
+ escaped = true;
3892
+ }
3893
+ value += escaped ? `\\${char}` : char;
3894
+ escaped = false;
3895
+ }
3896
+ return value;
3897
+ }
3898
+ function allowSpaces() {
3899
+ while (i < length && whitespace.test(source[i])) {
3900
+ i += 1;
3901
+ }
3902
+ }
3903
+ let i = 0;
3904
+ while (i < length) {
3905
+ if (!state) {
3906
+ error("Unexpected character");
3907
+ }
3908
+ state = state();
3909
+ i += 1;
3910
+ }
3911
+ if (state !== neutral) {
3912
+ error("Unexpected end of input");
3913
+ }
3914
+ if (root) {
3915
+ const xml = (middleware ? middleware(root) : root) || root;
3916
+ const ast = xml.children.map(astToReact);
3917
+ const jsx = xml;
3918
+ jsx.children = ast;
3919
+ return jsx;
3920
+ }
3921
+ return null;
3922
+ }
3923
+ // node_modules/react-native-svg/lib/module/index.js
3924
+
3925
+ export { Button3, require_registry, Circle, Line, Path, Polygon, Svg, SvgUri };