peachsim 0.1.1659 → 0.1.1667
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/cli/bridge-flow-runner.ts +2 -2
- package/cli/commands/box.ts +2 -0
- package/cli/commands/control.ts +56 -17
- package/cli/commands/debug.ts +100 -9
- package/cli/commands/flow.ts +2 -2
- package/cli/commands/inspect/settle.ts +4 -2
- package/cli/commands/inspect/settling.ts +17 -14
- package/cli/commands/platform.ts +3 -0
- package/cli/current-sim.ts +21 -1
- package/cli/dev-build-freshness.ts +36 -2
- package/cli/maestro-compare.ts +44 -14
- package/cli/main.ts +3 -0
- package/cli/material-symbol-fonts.ts +3 -100
- package/cli/output-redaction.ts +21 -6
- package/cli/parent-pid.ts +2 -2
- package/cli/ws-bridge.ts +19 -1
- package/detox/attempt-events.cjs +48 -18
- package/detox/index.ts +0 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +2156 -25785
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +85 -37
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1747 -25394
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2195 -25834
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +190 -45
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +81 -9
- package/dist-lib/native-app-identity-project.cjs +81 -9
- package/dist-lib/native-app-identity-project.mjs +81 -9
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +26 -24
- package/dist-lib/public-origins-lib.json +79 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +18 -15
- package/dist-lib/sdk.mjs +18 -15
- package/dist-lib/skills.cjs +2995 -26434
- package/dist-lib/swift-compile.cjs +985 -24728
- package/dist-lib/swift-compile.mjs +914 -24657
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +28 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1780 -25372
- package/dist-lib/vite.cjs +73 -21
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/demo/demo-bundle-platform.d.ts +29 -0
- package/dist-types/packages/peach-engine/src/engine/app-font-registry.d.ts +13 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +19 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -4
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeSyncReplyContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +10 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/accessibilityBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/androidDateTimePickerBridgeContract.d.ts +41 -0
- package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +22 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +33 -0
- package/dist-types/packages/peach-globals/src/bridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +94 -0
- package/dist-types/packages/peach-globals/src/captureBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +31 -0
- package/dist-types/packages/peach-globals/src/debugBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +29 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +200 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +462 -0
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +47 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +47 -3334
- package/dist-types/packages/peach-globals/src/interactionBridgeContract.d.ts +21 -0
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +44 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +77 -0
- package/dist-types/packages/peach-globals/src/nativeViewContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/navigationBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +664 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +100 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +152 -0
- package/dist-types/packages/peach-globals/src/photoLibraryBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/portalBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +131 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +125 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +37 -0
- package/dist-types/packages/peach-globals/src/settingsBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/shareSheetBridgeContract.d.ts +14 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +82 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/speechSynthesisBridgeContract.d.ts +25 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +278 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +58 -0
- package/dist-types/packages/peach-globals/src/videoBridgeContract.d.ts +80 -0
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +331 -0
- package/dist-types/packages/peach-globals/src/windowBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +3 -5
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +20 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +15 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +16 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +174 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +185 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h +12 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h +1276 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTType.h +644 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +1441 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +106 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +429 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +665 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2504 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +634 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h +22 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +18 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/MobileCoreServices.h +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +14 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h +9 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h +2 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +817 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/usr/include/Availability.h +630 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +556 -0
- package/sdk/ios/usr/include/AvailabilityInternalLegacy.h +4346 -0
- package/sdk/ios/usr/include/AvailabilityVersions.h +547 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +130 -0
- package/sdk/ios/usr/include/MacTypes.h +3 -0
- package/sdk/ios/usr/include/TargetConditionals.h +14 -0
- package/sdk/ios/usr/include/__xlocale.h +41 -0
- package/sdk/ios/usr/include/_bounds.h +67 -0
- package/sdk/ios/usr/include/_ctermid.h +42 -0
- package/sdk/ios/usr/include/_mb_cur_max.h +39 -0
- package/sdk/ios/usr/include/_printf.h +38 -0
- package/sdk/ios/usr/include/_stdio.h +510 -0
- package/sdk/ios/usr/include/_types/_intmax_t.h +40 -0
- package/sdk/ios/usr/include/_types/_locale_t.h +38 -0
- package/sdk/ios/usr/include/_types/_uint16_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint32_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint64_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint8_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uintmax_t.h +40 -0
- package/sdk/ios/usr/include/_types.h +72 -0
- package/sdk/ios/usr/include/arm/_endian.h +105 -0
- package/sdk/ios/usr/include/arm/_mcontext.h +95 -0
- package/sdk/ios/usr/include/arm/_param.h +25 -0
- package/sdk/ios/usr/include/arm/_types.h +125 -0
- package/sdk/ios/usr/include/arm/endian.h +65 -0
- package/sdk/ios/usr/include/arm/signal.h +22 -0
- package/sdk/ios/usr/include/arm/types.h +110 -0
- package/sdk/ios/usr/include/asl.h +160 -0
- package/sdk/ios/usr/include/assert.h +14 -0
- package/sdk/ios/usr/include/dirent.h +224 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +114 -0
- package/sdk/ios/usr/include/dlfcn.h +16 -0
- package/sdk/ios/usr/include/errno.h +24 -0
- package/sdk/ios/usr/include/execinfo.h +11 -0
- package/sdk/ios/usr/include/fcntl.h +23 -0
- package/sdk/ios/usr/include/i386/_endian.h +105 -0
- package/sdk/ios/usr/include/i386/_mcontext.h +216 -0
- package/sdk/ios/usr/include/i386/_param.h +49 -0
- package/sdk/ios/usr/include/i386/_types.h +149 -0
- package/sdk/ios/usr/include/i386/endian.h +89 -0
- package/sdk/ios/usr/include/i386/signal.h +47 -0
- package/sdk/ios/usr/include/libkern/OSAtomic.h +51 -0
- package/sdk/ios/usr/include/libkern/OSAtomicDeprecated.h +1267 -0
- package/sdk/ios/usr/include/libkern/OSAtomicQueue.h +115 -0
- package/sdk/ios/usr/include/libkern/OSSpinLockDeprecated.h +212 -0
- package/sdk/ios/usr/include/libkern/_OSByteOrder.h +125 -0
- package/sdk/ios/usr/include/libkern/arm/_OSByteOrder.h +99 -0
- package/sdk/ios/usr/include/libkern/i386/_OSByteOrder.h +110 -0
- package/sdk/ios/usr/include/limits.h +4 -0
- package/sdk/ios/usr/include/mach/arm/_structs.h +741 -0
- package/sdk/ios/usr/include/mach/boolean.h +4 -0
- package/sdk/ios/usr/include/mach/exception_types.h +40 -0
- package/sdk/ios/usr/include/mach/host_info.h +200 -0
- package/sdk/ios/usr/include/mach/i386/_structs.h +1316 -0
- package/sdk/ios/usr/include/mach/kern_return.h +61 -0
- package/sdk/ios/usr/include/mach/mach.h +16 -0
- package/sdk/ios/usr/include/mach/mach_error.h +10 -0
- package/sdk/ios/usr/include/mach/mach_host.h +18 -0
- package/sdk/ios/usr/include/mach/mach_init.h +15 -0
- package/sdk/ios/usr/include/mach/mach_port.h +11 -0
- package/sdk/ios/usr/include/mach/mach_time.h +14 -0
- package/sdk/ios/usr/include/mach/mach_types.h +20 -0
- package/sdk/ios/usr/include/mach/machine/_structs.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +144 -0
- package/sdk/ios/usr/include/mach/task.h +14 -0
- package/sdk/ios/usr/include/mach/task_info.h +23 -0
- package/sdk/ios/usr/include/mach/task_policy.h +29 -0
- package/sdk/ios/usr/include/mach/thread_act.h +12 -0
- package/sdk/ios/usr/include/mach/thread_info.h +32 -0
- package/sdk/ios/usr/include/mach/time_value.h +4 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +8 -0
- package/sdk/ios/usr/include/mach/vm_region.h +43 -0
- package/sdk/ios/usr/include/mach/vm_statistics.h +491 -0
- package/sdk/ios/usr/include/mach/vm_types.h +8 -0
- package/sdk/ios/usr/include/mach-o/arch.h +21 -0
- package/sdk/ios/usr/include/mach-o/dyld.h +16 -0
- package/sdk/ios/usr/include/mach-o/dyld_images.h +71 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +17 -0
- package/sdk/ios/usr/include/mach-o/loader.h +158 -0
- package/sdk/ios/usr/include/mach-o/nlist.h +38 -0
- package/sdk/ios/usr/include/mach-o/stab.h +33 -0
- package/sdk/ios/usr/include/mach-o/utils.h +10 -0
- package/sdk/ios/usr/include/machine/_endian.h +42 -0
- package/sdk/ios/usr/include/machine/_mcontext.h +39 -0
- package/sdk/ios/usr/include/machine/_param.h +39 -0
- package/sdk/ios/usr/include/machine/_types.h +39 -0
- package/sdk/ios/usr/include/machine/endian.h +42 -0
- package/sdk/ios/usr/include/machine/signal.h +39 -0
- package/sdk/ios/usr/include/machine/types.h +42 -0
- package/sdk/ios/usr/include/math.h +5 -0
- package/sdk/ios/usr/include/module.modulemap +4 -0
- package/sdk/ios/usr/include/net/if.h +20 -0
- package/sdk/ios/usr/include/net/if_dl.h +10 -0
- package/sdk/ios/usr/include/net/if_var.h +15 -0
- package/sdk/ios/usr/include/net/net_kev.h +100 -0
- package/sdk/ios/usr/include/netdb.h +5 -0
- package/sdk/ios/usr/include/netinet/in.h +670 -0
- package/sdk/ios/usr/include/netinet6/in6.h +676 -0
- package/sdk/ios/usr/include/notify.h +45 -0
- package/sdk/ios/usr/include/notify_keys.h +17 -0
- package/sdk/ios/usr/include/objc/NSObject.h +79 -0
- package/sdk/ios/usr/include/os/availability.h +140 -0
- package/sdk/ios/usr/include/os/lock.h +24 -0
- package/sdk/ios/usr/include/os/log.h +77 -0
- package/sdk/ios/usr/include/os/object.h +13 -0
- package/sdk/ios/usr/include/peach/darwin.h +6 -0
- package/sdk/ios/usr/include/peach/netdb.h +316 -0
- package/sdk/ios/usr/include/peach/pthread.h +19 -0
- package/sdk/ios/usr/include/pthread.h +4 -0
- package/sdk/ios/usr/include/secure/_common.h +45 -0
- package/sdk/ios/usr/include/secure/_stdio.h +130 -0
- package/sdk/ios/usr/include/signal.h +132 -0
- package/sdk/ios/usr/include/stdint.h +205 -0
- package/sdk/ios/usr/include/stdio.h +65 -0
- package/sdk/ios/usr/include/stdlib.h +17 -0
- package/sdk/ios/usr/include/string.h +8 -0
- package/sdk/ios/usr/include/sys/__endian.h +108 -0
- package/sdk/ios/usr/include/sys/_endian.h +152 -0
- package/sdk/ios/usr/include/sys/_posix_availability.h +73 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_attr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_types.h +120 -0
- package/sdk/ios/usr/include/sys/_symbol_aliasing.h +1093 -0
- package/sdk/ios/usr/include/sys/_types/_errno_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_filesec_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_gid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_addr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_port_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_intptr_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_iovec_t.h +35 -0
- package/sdk/ios/usr/include/sys/_types/_mode_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_null.h +54 -0
- package/sdk/ios/usr/include/sys/_types/_o_dsync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_o_sync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_off_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_pid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ptrdiff_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_s_ifmt.h +74 -0
- package/sdk/ios/usr/include/sys/_types/_sa_family_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_seek_set.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_sigaltstack.h +50 -0
- package/sdk/ios/usr/include/sys/_types/_sigset_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_size_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_socklen_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ssize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timespec.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_timeval32.h +3 -0
- package/sdk/ios/usr/include/sys/_types/_u_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_ucontext.h +59 -0
- package/sdk/ios/usr/include/sys/_types/_uid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uintptr_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_va_list.h +49 -0
- package/sdk/ios/usr/include/sys/_types/_wchar_t.h +59 -0
- package/sdk/ios/usr/include/sys/_types.h +103 -0
- package/sdk/ios/usr/include/sys/appleapiopts.h +61 -0
- package/sdk/ios/usr/include/sys/cdefs.h +341 -0
- package/sdk/ios/usr/include/sys/constrained_ctypes.h +622 -0
- package/sdk/ios/usr/include/sys/dirent.h +141 -0
- package/sdk/ios/usr/include/sys/errno.h +271 -0
- package/sdk/ios/usr/include/sys/fcntl.h +649 -0
- package/sdk/ios/usr/include/sys/mman.h +273 -0
- package/sdk/ios/usr/include/sys/proc.h +65 -0
- package/sdk/ios/usr/include/sys/qos.h +61 -0
- package/sdk/ios/usr/include/sys/signal.h +394 -0
- package/sdk/ios/usr/include/sys/socket.h +752 -0
- package/sdk/ios/usr/include/sys/stdio.h +61 -0
- package/sdk/ios/usr/include/sys/sysctl.h +74 -0
- package/sdk/ios/usr/include/sys/syslimits.h +11 -0
- package/sdk/ios/usr/include/sys/time.h +5 -0
- package/sdk/ios/usr/include/sys/types.h +21 -0
- package/sdk/ios/usr/include/sys/ucontext.h +41 -0
- package/sdk/ios/usr/include/sys/xattr.h +50 -0
- package/sdk/ios/usr/include/time.h +2 -0
- package/sdk/ios/usr/include/unistd.h +3 -0
- package/sdk/ios/usr/include/uuid/uuid.h +19 -0
- package/sdk/ios/usr/include/xlocale/_stdio.h +85 -0
- package/sdk/ios/usr/lib/swift/CoreGraphics.swiftmodule/arm64-apple-ios-simulator.swiftinterface +8 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +20 -0
- package/sdk/ios/wasm/include/dlfcn.h +3 -0
- package/sdk/ios/wasm/include/netdb.h +4 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +3 -0
- package/sdk/ios/wasm/include/sys/socket.h +7 -0
- package/sdk/ios/wasm/include/sys/types.h +4 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +38 -0
- package/src/cli-runtime.ts +5 -5
- package/src/conformance-comparison-contract.ts +146 -0
- package/src/conformance-pixel-comparison.ts +327 -0
- package/src/device-catalog.ts +12 -3
- package/src/material-symbol-fonts.ts +107 -0
- package/src/stub-pattern-matcher.ts +4 -0
- package/src/swift-compile.ts +517 -189
- package/src/swift-compiler-digest.ts +6 -2
- package/src/swift-distribution.ts +2 -1
- package/src/swift-host.ts +26 -3
- package/src/swift-objc-compile.ts +72 -97
- package/src/swift-objc-import.ts +47 -11
- package/src/swift-objc-metadata.ts +54 -7
- package/src/swift-objc-sdk-tree.ts +17 -0
- package/src/swift-objc-sdk.ts +27 -24178
- package/src/swift-objc-standin.ts +4 -2
- package/src/swift-standins.ts +2 -2
- package/src/swift-toolchain.ts +36 -0
- package/src/swift-vite-lifetime.ts +42 -0
- package/src/swiftContract.ts +54 -0
- package/src/vite-plugin-one.ts +36 -15
- package/src/vite-plugin-swift.ts +21 -2
- package/src/xcode-header-search.ts +114 -0
- package/src/xcode-project.ts +103 -9
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
#ifndef _MACH_VM_STATISTICS_H_
|
|
2
|
+
#define _MACH_VM_STATISTICS_H_
|
|
3
|
+
|
|
4
|
+
#include <Availability.h>
|
|
5
|
+
#include <stdbool.h>
|
|
6
|
+
#include <sys/cdefs.h>
|
|
7
|
+
|
|
8
|
+
#include <mach/mach_types.h>
|
|
9
|
+
#include <mach/vm_types.h>
|
|
10
|
+
#include <mach/kern_return.h>
|
|
11
|
+
|
|
12
|
+
__BEGIN_DECLS
|
|
13
|
+
|
|
14
|
+
#pragma mark VM Statistics
|
|
15
|
+
|
|
16
|
+
struct vm_statistics {
|
|
17
|
+
natural_t free_count;
|
|
18
|
+
natural_t active_count;
|
|
19
|
+
natural_t inactive_count;
|
|
20
|
+
natural_t wire_count;
|
|
21
|
+
natural_t zero_fill_count;
|
|
22
|
+
natural_t reactivations;
|
|
23
|
+
natural_t pageins;
|
|
24
|
+
natural_t pageouts;
|
|
25
|
+
natural_t faults;
|
|
26
|
+
natural_t cow_faults;
|
|
27
|
+
natural_t lookups;
|
|
28
|
+
natural_t hits;
|
|
29
|
+
|
|
30
|
+
natural_t purgeable_count;
|
|
31
|
+
natural_t purges;
|
|
32
|
+
|
|
33
|
+
natural_t speculative_count;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
typedef struct vm_statistics *vm_statistics_t;
|
|
37
|
+
typedef struct vm_statistics vm_statistics_data_t;
|
|
38
|
+
|
|
39
|
+
struct vm_statistics64 {
|
|
40
|
+
natural_t free_count;
|
|
41
|
+
natural_t active_count;
|
|
42
|
+
natural_t inactive_count;
|
|
43
|
+
natural_t wire_count;
|
|
44
|
+
uint64_t zero_fill_count;
|
|
45
|
+
uint64_t reactivations;
|
|
46
|
+
uint64_t pageins;
|
|
47
|
+
uint64_t pageouts;
|
|
48
|
+
uint64_t faults;
|
|
49
|
+
uint64_t cow_faults;
|
|
50
|
+
uint64_t lookups;
|
|
51
|
+
uint64_t hits;
|
|
52
|
+
uint64_t purges;
|
|
53
|
+
natural_t purgeable_count;
|
|
54
|
+
|
|
55
|
+
natural_t speculative_count;
|
|
56
|
+
|
|
57
|
+
uint64_t decompressions;
|
|
58
|
+
uint64_t compressions;
|
|
59
|
+
uint64_t swapins;
|
|
60
|
+
uint64_t swapouts;
|
|
61
|
+
natural_t compressor_page_count;
|
|
62
|
+
natural_t throttled_count;
|
|
63
|
+
natural_t external_page_count;
|
|
64
|
+
natural_t internal_page_count;
|
|
65
|
+
uint64_t total_uncompressed_pages_in_compressor;
|
|
66
|
+
|
|
67
|
+
uint64_t swapped_count;
|
|
68
|
+
|
|
69
|
+
uint64_t total_tag_storage_pages;
|
|
70
|
+
|
|
71
|
+
uint64_t nontag_pageable_tag_storage_pages;
|
|
72
|
+
|
|
73
|
+
uint64_t nontag_wired_tag_storage_pages;
|
|
74
|
+
|
|
75
|
+
uint64_t free_tag_storage_pages;
|
|
76
|
+
|
|
77
|
+
uint64_t tag_storing_tag_storage_pages;
|
|
78
|
+
|
|
79
|
+
uint64_t total_tagged_pages;
|
|
80
|
+
|
|
81
|
+
uint64_t resident_tagged_pages;
|
|
82
|
+
|
|
83
|
+
uint64_t compressed_tagged_pages;
|
|
84
|
+
|
|
85
|
+
uint64_t tagged_compressions;
|
|
86
|
+
|
|
87
|
+
uint64_t tagged_decompressions;
|
|
88
|
+
|
|
89
|
+
uint64_t compressed_tag_storage_bytes;
|
|
90
|
+
|
|
91
|
+
uint64_t speculative_pages_created;
|
|
92
|
+
|
|
93
|
+
uint64_t speculative_pages_activated;
|
|
94
|
+
|
|
95
|
+
uint64_t swap_count;
|
|
96
|
+
|
|
97
|
+
uint64_t empty_tag_storing_tag_storage_pages;
|
|
98
|
+
|
|
99
|
+
uint64_t executable_count;
|
|
100
|
+
|
|
101
|
+
uint64_t shared_region_count;
|
|
102
|
+
|
|
103
|
+
uint64_t boot_stolen_count;
|
|
104
|
+
|
|
105
|
+
uint64_t secluded_count;
|
|
106
|
+
|
|
107
|
+
uint64_t active_internal_count;
|
|
108
|
+
|
|
109
|
+
uint64_t inactive_internal_count;
|
|
110
|
+
|
|
111
|
+
uint64_t active_external_count;
|
|
112
|
+
|
|
113
|
+
uint64_t inactive_external_count;
|
|
114
|
+
|
|
115
|
+
uint64_t purgeable_pageable_count;
|
|
116
|
+
|
|
117
|
+
uint64_t purgeable_wired_count;
|
|
118
|
+
|
|
119
|
+
uint64_t background_internal_count;
|
|
120
|
+
|
|
121
|
+
uint64_t background_external_count;
|
|
122
|
+
|
|
123
|
+
uint64_t donated_count;
|
|
124
|
+
|
|
125
|
+
uint64_t realtime_count;
|
|
126
|
+
|
|
127
|
+
uint64_t max_mem_count;
|
|
128
|
+
|
|
129
|
+
uint64_t phantom_ghosts_found;
|
|
130
|
+
|
|
131
|
+
uint64_t phantom_ghosts_added;
|
|
132
|
+
} __attribute__((aligned(8)));
|
|
133
|
+
|
|
134
|
+
typedef struct vm_statistics64 *vm_statistics64_t;
|
|
135
|
+
typedef struct vm_statistics64 vm_statistics64_data_t;
|
|
136
|
+
|
|
137
|
+
#define VM_STATISTICS_TRUNCATE_TO_32_BIT(value) ((uint32_t)(((value) > UINT32_MAX ) ? UINT32_MAX : (value)))
|
|
138
|
+
|
|
139
|
+
struct vm_extmod_statistics {
|
|
140
|
+
int64_t task_for_pid_count;
|
|
141
|
+
int64_t task_for_pid_caller_count;
|
|
142
|
+
int64_t thread_creation_count;
|
|
143
|
+
int64_t thread_creation_caller_count;
|
|
144
|
+
int64_t thread_set_state_count;
|
|
145
|
+
int64_t thread_set_state_caller_count;
|
|
146
|
+
} __attribute__((aligned(8)));
|
|
147
|
+
|
|
148
|
+
typedef struct vm_extmod_statistics *vm_extmod_statistics_t;
|
|
149
|
+
typedef struct vm_extmod_statistics vm_extmod_statistics_data_t;
|
|
150
|
+
|
|
151
|
+
typedef struct vm_purgeable_stat {
|
|
152
|
+
uint64_t count;
|
|
153
|
+
uint64_t size;
|
|
154
|
+
}vm_purgeable_stat_t;
|
|
155
|
+
|
|
156
|
+
struct vm_purgeable_info {
|
|
157
|
+
vm_purgeable_stat_t fifo_data[8];
|
|
158
|
+
vm_purgeable_stat_t obsolete_data;
|
|
159
|
+
vm_purgeable_stat_t lifo_data[8];
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
typedef struct vm_purgeable_info *vm_purgeable_info_t;
|
|
163
|
+
|
|
164
|
+
typedef int32_t vm_page_disposition_t;
|
|
165
|
+
|
|
166
|
+
#define VM_PAGE_QUERY_PAGE_PRESENT 0x0001
|
|
167
|
+
#define VM_PAGE_QUERY_PAGE_FICTITIOUS 0x0002
|
|
168
|
+
#define VM_PAGE_QUERY_PAGE_REF 0x0004
|
|
169
|
+
#define VM_PAGE_QUERY_PAGE_DIRTY 0x0008
|
|
170
|
+
#define VM_PAGE_QUERY_PAGE_PAGED_OUT 0x0010
|
|
171
|
+
#define VM_PAGE_QUERY_PAGE_COPIED 0x0020
|
|
172
|
+
#define VM_PAGE_QUERY_PAGE_SPECULATIVE 0x0040
|
|
173
|
+
#define VM_PAGE_QUERY_PAGE_EXTERNAL 0x0080
|
|
174
|
+
#define VM_PAGE_QUERY_PAGE_CS_VALIDATED 0x0100
|
|
175
|
+
#define VM_PAGE_QUERY_PAGE_CS_TAINTED 0x0200
|
|
176
|
+
#define VM_PAGE_QUERY_PAGE_CS_NX 0x0400
|
|
177
|
+
#define VM_PAGE_QUERY_PAGE_REUSABLE 0x0800
|
|
178
|
+
#define VM_PAGE_QUERY_PAGE_WIRED 0x1000
|
|
179
|
+
|
|
180
|
+
#pragma mark User Flags
|
|
181
|
+
|
|
182
|
+
#define VM_REALLOCATE_DEALLOCATE_SOURCE 0x0
|
|
183
|
+
#define VM_REALLOCATE_ZERO_FILL_SOURCE 0x1
|
|
184
|
+
|
|
185
|
+
#define VM_FLAGS_FIXED 0x00000000
|
|
186
|
+
#define VM_FLAGS_ANYWHERE 0x00000001
|
|
187
|
+
#define VM_FLAGS_PURGABLE 0x00000002
|
|
188
|
+
#define VM_FLAGS_4GB_CHUNK 0x00000004
|
|
189
|
+
#define VM_FLAGS_RANDOM_ADDR 0x00000008
|
|
190
|
+
#define VM_FLAGS_NO_CACHE 0x00000010
|
|
191
|
+
#define VM_FLAGS_RESILIENT_CODESIGN 0x00000020
|
|
192
|
+
#define VM_FLAGS_RESILIENT_MEDIA 0x00000040
|
|
193
|
+
#define VM_FLAGS_PERMANENT 0x00000080
|
|
194
|
+
#define VM_FLAGS_TPRO 0x00001000
|
|
195
|
+
#define VM_FLAGS_MTE 0x00002000
|
|
196
|
+
#define VM_FLAGS_OVERWRITE 0x00004000
|
|
197
|
+
#define VM_FLAGS_SUPERPAGE_MASK 0x00070000
|
|
198
|
+
#define VM_FLAGS_RETURN_DATA_ADDR 0x00100000
|
|
199
|
+
#define VM_FLAGS_GUARD_OBJECT_OPTOUT 0x00400000
|
|
200
|
+
#define VM_FLAGS_RETURN_4K_DATA_ADDR 0x00800000
|
|
201
|
+
#define VM_FLAGS_ALIAS_MASK 0xFF000000
|
|
202
|
+
#define VM_GET_FLAGS_ALIAS(flags, alias) \
|
|
203
|
+
(alias) = (((flags) >> 24) & 0xff)
|
|
204
|
+
#define VM_SET_FLAGS_ALIAS(flags, alias) \
|
|
205
|
+
(flags) = (((flags) & ~VM_FLAGS_ALIAS_MASK) | \
|
|
206
|
+
(((alias) & ~VM_FLAGS_ALIAS_MASK) << 24))
|
|
207
|
+
|
|
208
|
+
#define VM_FLAGS_HW (VM_FLAGS_TPRO | \
|
|
209
|
+
VM_FLAGS_MTE)
|
|
210
|
+
|
|
211
|
+
#define VM_FLAGS_USER_ALLOCATE (VM_FLAGS_FIXED | \
|
|
212
|
+
VM_FLAGS_ANYWHERE | \
|
|
213
|
+
VM_FLAGS_PURGABLE | \
|
|
214
|
+
VM_FLAGS_4GB_CHUNK | \
|
|
215
|
+
VM_FLAGS_RANDOM_ADDR | \
|
|
216
|
+
VM_FLAGS_NO_CACHE | \
|
|
217
|
+
VM_FLAGS_PERMANENT | \
|
|
218
|
+
VM_FLAGS_OVERWRITE | \
|
|
219
|
+
VM_FLAGS_GUARD_OBJECT_OPTOUT | \
|
|
220
|
+
VM_FLAGS_HW | \
|
|
221
|
+
VM_FLAGS_ALIAS_MASK)
|
|
222
|
+
|
|
223
|
+
#define VM_FLAGS_USER_MAP (VM_FLAGS_USER_ALLOCATE | \
|
|
224
|
+
VM_FLAGS_RETURN_4K_DATA_ADDR | \
|
|
225
|
+
VM_FLAGS_RETURN_DATA_ADDR)
|
|
226
|
+
|
|
227
|
+
#define VM_FLAGS_USER_REMAP (VM_FLAGS_FIXED | \
|
|
228
|
+
VM_FLAGS_ANYWHERE | \
|
|
229
|
+
VM_FLAGS_RANDOM_ADDR | \
|
|
230
|
+
VM_FLAGS_OVERWRITE| \
|
|
231
|
+
VM_FLAGS_RETURN_DATA_ADDR | \
|
|
232
|
+
VM_FLAGS_RESILIENT_CODESIGN | \
|
|
233
|
+
VM_FLAGS_RESILIENT_MEDIA)
|
|
234
|
+
|
|
235
|
+
#define VM_FLAGS_SUPERPAGE_SHIFT 16
|
|
236
|
+
#define SUPERPAGE_NONE 0
|
|
237
|
+
#define SUPERPAGE_SIZE_ANY 1
|
|
238
|
+
#define VM_FLAGS_SUPERPAGE_NONE (SUPERPAGE_NONE << VM_FLAGS_SUPERPAGE_SHIFT)
|
|
239
|
+
#define VM_FLAGS_SUPERPAGE_SIZE_ANY (SUPERPAGE_SIZE_ANY << VM_FLAGS_SUPERPAGE_SHIFT)
|
|
240
|
+
#define SUPERPAGE_SIZE_2MB 2
|
|
241
|
+
#define VM_FLAGS_SUPERPAGE_SIZE_2MB (SUPERPAGE_SIZE_2MB<<VM_FLAGS_SUPERPAGE_SHIFT)
|
|
242
|
+
|
|
243
|
+
#define GUARD_TYPE_VIRT_MEMORY 0x5
|
|
244
|
+
|
|
245
|
+
__enum_decl(virtual_memory_guard_exception_code_t, uint32_t, {
|
|
246
|
+
kGUARD_EXC_DEALLOC_GAP = 1,
|
|
247
|
+
kGUARD_EXC_RECLAIM_COPYIO_FAILURE = 2,
|
|
248
|
+
kGUARD_EXC_RECLAIM_INDEX_FAILURE = 4,
|
|
249
|
+
kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE = 8,
|
|
250
|
+
kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE = 9,
|
|
251
|
+
kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE = 10,
|
|
252
|
+
kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE = 11,
|
|
253
|
+
kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION = 12,
|
|
254
|
+
|
|
255
|
+
kGUARD_EXC_COW_DEFEATURED_COPY_DENIED = 13,
|
|
256
|
+
|
|
257
|
+
kGUARD_EXC_COW_DEFEATURED_EXTRACT_DENIED = 14,
|
|
258
|
+
|
|
259
|
+
kGUARD_EXC_COW_DEFEATURED_SHARE_MAP_AS_COPY_DENIED = 15,
|
|
260
|
+
kGUARD_EXC_COW_DEFEATURED_FIRST = kGUARD_EXC_COW_DEFEATURED_COPY_DENIED,
|
|
261
|
+
kGUARD_EXC_COW_DEFEATURED_LAST = kGUARD_EXC_COW_DEFEATURED_SHARE_MAP_AS_COPY_DENIED,
|
|
262
|
+
|
|
263
|
+
kGUARD_EXC_LARGE_ALLOCATION_TELEMETRY = 16,
|
|
264
|
+
|
|
265
|
+
kGUARD_EXC_SEC_ACCESS_FAULT = 98,
|
|
266
|
+
kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT = 99,
|
|
267
|
+
|
|
268
|
+
kGUARD_EXC_SEC_COPY_DENIED = 100,
|
|
269
|
+
kGUARD_EXC_SEC_SHARING_DENIED = 101,
|
|
270
|
+
|
|
271
|
+
kGUARD_EXC_MTE_SYNC_FAULT = 200,
|
|
272
|
+
kGUARD_EXC_MTE_ASYNC_USER_FAULT = 201,
|
|
273
|
+
kGUARD_EXC_MTE_ASYNC_KERN_FAULT = 202,
|
|
274
|
+
kGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT = 203,
|
|
275
|
+
kGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT = 204,
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
#define kGUARD_EXC_MTE_SOFT_MODE 0x100000
|
|
279
|
+
|
|
280
|
+
#pragma mark Ledger Tags
|
|
281
|
+
|
|
282
|
+
#define __VM_LEDGER_ACCOUNTING_POSTMARK 2019032600
|
|
283
|
+
|
|
284
|
+
#define VM_LEDGER_TAG_NONE 0x00000000
|
|
285
|
+
#define VM_LEDGER_TAG_DEFAULT 0x00000001
|
|
286
|
+
#define VM_LEDGER_TAG_NETWORK 0x00000002
|
|
287
|
+
#define VM_LEDGER_TAG_MEDIA 0x00000003
|
|
288
|
+
#define VM_LEDGER_TAG_GRAPHICS 0x00000004
|
|
289
|
+
#define VM_LEDGER_TAG_NEURAL 0x00000005
|
|
290
|
+
#define VM_LEDGER_TAG_MAX 0x00000005
|
|
291
|
+
#define VM_LEDGER_TAG_UNCHANGED ((int)-1)
|
|
292
|
+
|
|
293
|
+
#define VM_LEDGER_FLAG_NO_FOOTPRINT (1 << 0)
|
|
294
|
+
#define VM_LEDGER_FLAG_NO_FOOTPRINT_FOR_DEBUG (1 << 1)
|
|
295
|
+
#define VM_LEDGER_FLAG_FROM_KERNEL (1 << 2)
|
|
296
|
+
|
|
297
|
+
#define VM_LEDGER_FLAGS_USER (VM_LEDGER_FLAG_NO_FOOTPRINT | VM_LEDGER_FLAG_NO_FOOTPRINT_FOR_DEBUG)
|
|
298
|
+
#define VM_LEDGER_FLAGS_ALL (VM_LEDGER_FLAGS_USER | VM_LEDGER_FLAG_FROM_KERNEL)
|
|
299
|
+
|
|
300
|
+
#pragma mark User Memory Tags
|
|
301
|
+
|
|
302
|
+
#define VM_MEMORY_MALLOC 1
|
|
303
|
+
#define VM_MEMORY_MALLOC_SMALL 2
|
|
304
|
+
#define VM_MEMORY_MALLOC_LARGE 3
|
|
305
|
+
#define VM_MEMORY_MALLOC_HUGE 4
|
|
306
|
+
#define VM_MEMORY_SBRK 5
|
|
307
|
+
#define VM_MEMORY_REALLOC 6
|
|
308
|
+
#define VM_MEMORY_MALLOC_TINY 7
|
|
309
|
+
#define VM_MEMORY_MALLOC_LARGE_REUSABLE 8
|
|
310
|
+
#define VM_MEMORY_MALLOC_LARGE_REUSED 9
|
|
311
|
+
|
|
312
|
+
#define VM_MEMORY_ANALYSIS_TOOL 10
|
|
313
|
+
|
|
314
|
+
#define VM_MEMORY_MALLOC_NANO 11
|
|
315
|
+
#define VM_MEMORY_MALLOC_MEDIUM 12
|
|
316
|
+
#define VM_MEMORY_MALLOC_PROB_GUARD 13
|
|
317
|
+
|
|
318
|
+
#define VM_MEMORY_MACH_MSG 20
|
|
319
|
+
#define VM_MEMORY_IOKIT 21
|
|
320
|
+
#define VM_MEMORY_VM_RECLAIM 22
|
|
321
|
+
|
|
322
|
+
#define VM_MEMORY_STACK 30
|
|
323
|
+
#define VM_MEMORY_GUARD 31
|
|
324
|
+
#define VM_MEMORY_SHARED_PMAP 32
|
|
325
|
+
|
|
326
|
+
#define VM_MEMORY_DYLIB 33
|
|
327
|
+
#define VM_MEMORY_OBJC_DISPATCHERS 34
|
|
328
|
+
|
|
329
|
+
#define VM_MEMORY_UNSHARED_PMAP 35
|
|
330
|
+
|
|
331
|
+
#define VM_MEMORY_LIBCHANNEL 36
|
|
332
|
+
|
|
333
|
+
#define VM_MEMORY_APPKIT 40
|
|
334
|
+
#define VM_MEMORY_FOUNDATION 41
|
|
335
|
+
#define VM_MEMORY_COREGRAPHICS 42
|
|
336
|
+
#define VM_MEMORY_CORESERVICES 43
|
|
337
|
+
#define VM_MEMORY_CARBON VM_MEMORY_CORESERVICES
|
|
338
|
+
#define VM_MEMORY_JAVA 44
|
|
339
|
+
#define VM_MEMORY_COREDATA 45
|
|
340
|
+
#define VM_MEMORY_COREDATA_OBJECTIDS 46
|
|
341
|
+
|
|
342
|
+
#define VM_MEMORY_ATS 50
|
|
343
|
+
#define VM_MEMORY_LAYERKIT 51
|
|
344
|
+
#define VM_MEMORY_CGIMAGE 52
|
|
345
|
+
#define VM_MEMORY_TCMALLOC 53
|
|
346
|
+
|
|
347
|
+
#define VM_MEMORY_COREGRAPHICS_DATA 54
|
|
348
|
+
|
|
349
|
+
#define VM_MEMORY_COREGRAPHICS_SHARED 55
|
|
350
|
+
|
|
351
|
+
#define VM_MEMORY_COREGRAPHICS_FRAMEBUFFERS 56
|
|
352
|
+
|
|
353
|
+
#define VM_MEMORY_COREGRAPHICS_BACKINGSTORES 57
|
|
354
|
+
|
|
355
|
+
#define VM_MEMORY_COREGRAPHICS_XALLOC 58
|
|
356
|
+
|
|
357
|
+
#define VM_MEMORY_COREGRAPHICS_MISC VM_MEMORY_COREGRAPHICS
|
|
358
|
+
|
|
359
|
+
#define VM_MEMORY_DYLD 60
|
|
360
|
+
|
|
361
|
+
#define VM_MEMORY_DYLD_MALLOC 61
|
|
362
|
+
|
|
363
|
+
#define VM_MEMORY_SQLITE 62
|
|
364
|
+
|
|
365
|
+
#define VM_MEMORY_JAVASCRIPT_CORE 63
|
|
366
|
+
#define VM_MEMORY_WEBASSEMBLY VM_MEMORY_JAVASCRIPT_CORE
|
|
367
|
+
|
|
368
|
+
#define VM_MEMORY_JAVASCRIPT_JIT_EXECUTABLE_ALLOCATOR 64
|
|
369
|
+
#define VM_MEMORY_JAVASCRIPT_JIT_REGISTER_FILE 65
|
|
370
|
+
|
|
371
|
+
#define VM_MEMORY_GLSL 66
|
|
372
|
+
|
|
373
|
+
#define VM_MEMORY_OPENCL 67
|
|
374
|
+
|
|
375
|
+
#define VM_MEMORY_COREIMAGE 68
|
|
376
|
+
|
|
377
|
+
#define VM_MEMORY_WEBCORE_PURGEABLE_BUFFERS 69
|
|
378
|
+
|
|
379
|
+
#define VM_MEMORY_IMAGEIO 70
|
|
380
|
+
|
|
381
|
+
#define VM_MEMORY_COREPROFILE 71
|
|
382
|
+
|
|
383
|
+
#define VM_MEMORY_ASSETSD 72
|
|
384
|
+
|
|
385
|
+
#define VM_MEMORY_OS_ALLOC_ONCE 73
|
|
386
|
+
|
|
387
|
+
#define VM_MEMORY_LIBDISPATCH 74
|
|
388
|
+
|
|
389
|
+
#define VM_MEMORY_ACCELERATE 75
|
|
390
|
+
|
|
391
|
+
#define VM_MEMORY_COREUI 76
|
|
392
|
+
|
|
393
|
+
#define VM_MEMORY_COREUIFILE 77
|
|
394
|
+
|
|
395
|
+
#define VM_MEMORY_GENEALOGY 78
|
|
396
|
+
|
|
397
|
+
#define VM_MEMORY_RAWCAMERA 79
|
|
398
|
+
|
|
399
|
+
#define VM_MEMORY_CORPSEINFO 80
|
|
400
|
+
|
|
401
|
+
#define VM_MEMORY_ASL 81
|
|
402
|
+
|
|
403
|
+
#define VM_MEMORY_SWIFT_RUNTIME 82
|
|
404
|
+
|
|
405
|
+
#define VM_MEMORY_SWIFT_METADATA 83
|
|
406
|
+
|
|
407
|
+
#define VM_MEMORY_DHMM 84
|
|
408
|
+
|
|
409
|
+
#define VM_MEMORY_DFR 85
|
|
410
|
+
|
|
411
|
+
#define VM_MEMORY_SCENEKIT 86
|
|
412
|
+
|
|
413
|
+
#define VM_MEMORY_SKYWALK 87
|
|
414
|
+
|
|
415
|
+
#define VM_MEMORY_IOSURFACE 88
|
|
416
|
+
|
|
417
|
+
#define VM_MEMORY_LIBNETWORK 89
|
|
418
|
+
|
|
419
|
+
#define VM_MEMORY_AUDIO 90
|
|
420
|
+
|
|
421
|
+
#define VM_MEMORY_VIDEOBITSTREAM 91
|
|
422
|
+
|
|
423
|
+
#define VM_MEMORY_CM_XPC 92
|
|
424
|
+
|
|
425
|
+
#define VM_MEMORY_CM_RPC 93
|
|
426
|
+
|
|
427
|
+
#define VM_MEMORY_CM_MEMORYPOOL 94
|
|
428
|
+
|
|
429
|
+
#define VM_MEMORY_CM_READCACHE 95
|
|
430
|
+
|
|
431
|
+
#define VM_MEMORY_CM_CRABS 96
|
|
432
|
+
|
|
433
|
+
#define VM_MEMORY_QUICKLOOK_THUMBNAILS 97
|
|
434
|
+
|
|
435
|
+
#define VM_MEMORY_ACCOUNTS 98
|
|
436
|
+
|
|
437
|
+
#define VM_MEMORY_SANITIZER 99
|
|
438
|
+
|
|
439
|
+
#define VM_MEMORY_IOACCELERATOR 100
|
|
440
|
+
|
|
441
|
+
#define VM_MEMORY_CM_REGWARP 101
|
|
442
|
+
|
|
443
|
+
#define VM_MEMORY_EAR_DECODER 102
|
|
444
|
+
|
|
445
|
+
#define VM_MEMORY_COREUI_CACHED_IMAGE_DATA 103
|
|
446
|
+
|
|
447
|
+
#define VM_MEMORY_COLORSYNC 104
|
|
448
|
+
|
|
449
|
+
#define VM_MEMORY_BTINFO 105
|
|
450
|
+
|
|
451
|
+
#define VM_MEMORY_CM_HLS 106
|
|
452
|
+
|
|
453
|
+
#define VM_MEMORY_COMPOSITOR_SERVICES 107
|
|
454
|
+
|
|
455
|
+
#define VM_MEMORY_DEBUG 108
|
|
456
|
+
|
|
457
|
+
#define VM_MEMORY_NEURAL 109
|
|
458
|
+
|
|
459
|
+
#define VM_MEMORY_ROSETTA 230
|
|
460
|
+
#define VM_MEMORY_ROSETTA_THREAD_CONTEXT 231
|
|
461
|
+
#define VM_MEMORY_ROSETTA_INDIRECT_BRANCH_MAP 232
|
|
462
|
+
#define VM_MEMORY_ROSETTA_RETURN_STACK 233
|
|
463
|
+
#define VM_MEMORY_ROSETTA_EXECUTABLE_HEAP 234
|
|
464
|
+
#define VM_MEMORY_ROSETTA_USER_LDT 235
|
|
465
|
+
#define VM_MEMORY_ROSETTA_ARENA 236
|
|
466
|
+
#define VM_MEMORY_ROSETTA_10 239
|
|
467
|
+
|
|
468
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_1 240
|
|
469
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_2 241
|
|
470
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_3 242
|
|
471
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_4 243
|
|
472
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_5 244
|
|
473
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_6 245
|
|
474
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_7 246
|
|
475
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_8 247
|
|
476
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_9 248
|
|
477
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_10 249
|
|
478
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_11 250
|
|
479
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_12 251
|
|
480
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_13 252
|
|
481
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_14 253
|
|
482
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_15 254
|
|
483
|
+
#define VM_MEMORY_APPLICATION_SPECIFIC_16 255
|
|
484
|
+
|
|
485
|
+
#define VM_MEMORY_COUNT 256
|
|
486
|
+
|
|
487
|
+
#define VM_MAKE_TAG(tag) ((tag) << 24)
|
|
488
|
+
|
|
489
|
+
__END_DECLS
|
|
490
|
+
|
|
491
|
+
#endif
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <mach/machine.h>
|
|
3
|
+
enum NXByteOrder { NX_UnknownByteOrder, NX_LittleEndian, NX_BigEndian };
|
|
4
|
+
typedef struct NXArchInfo {
|
|
5
|
+
const char *name;
|
|
6
|
+
cpu_type_t cputype;
|
|
7
|
+
cpu_subtype_t cpusubtype;
|
|
8
|
+
enum NXByteOrder byteorder;
|
|
9
|
+
const char *description;
|
|
10
|
+
} NXArchInfo;
|
|
11
|
+
#ifdef __cplusplus
|
|
12
|
+
extern "C" {
|
|
13
|
+
#endif
|
|
14
|
+
const NXArchInfo *NXGetAllArchInfos(void);
|
|
15
|
+
const NXArchInfo *NXGetLocalArchInfo(void);
|
|
16
|
+
const NXArchInfo *NXGetArchInfoFromName(const char *);
|
|
17
|
+
const NXArchInfo *NXGetArchInfoFromCpuType(cpu_type_t, cpu_subtype_t);
|
|
18
|
+
void NXFreeArchInfo(const NXArchInfo *);
|
|
19
|
+
#ifdef __cplusplus
|
|
20
|
+
}
|
|
21
|
+
#endif
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <stdint.h>
|
|
3
|
+
#include <mach-o/loader.h>
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
uint32_t _dyld_image_count(void);
|
|
8
|
+
const struct mach_header *_dyld_get_image_header(uint32_t image_index);
|
|
9
|
+
intptr_t _dyld_get_image_vmaddr_slide(uint32_t image_index);
|
|
10
|
+
const char *_dyld_get_image_name(uint32_t image_index);
|
|
11
|
+
void _dyld_register_func_for_add_image(void (*func)(const struct mach_header *, intptr_t));
|
|
12
|
+
void _dyld_register_func_for_remove_image(void (*func)(const struct mach_header *, intptr_t));
|
|
13
|
+
int _NSGetExecutablePath(char *buf, uint32_t *bufsize);
|
|
14
|
+
#ifdef __cplusplus
|
|
15
|
+
}
|
|
16
|
+
#endif
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <stdint.h>
|
|
3
|
+
#include <stddef.h>
|
|
4
|
+
#include <stdbool.h>
|
|
5
|
+
#include <mach-o/loader.h>
|
|
6
|
+
#include <mach/mach_types.h>
|
|
7
|
+
#include <uuid/uuid.h>
|
|
8
|
+
enum dyld_image_mode { dyld_image_adding=0, dyld_image_removing=1, dyld_image_info_change=2, dyld_image_dyld_moved=3 };
|
|
9
|
+
#define DYLD_AOT_IMAGE_KEY_SIZE 32
|
|
10
|
+
#define DYLD_MAX_PROCESS_INFO_NOTIFY_COUNT 8
|
|
11
|
+
struct dyld_image_info {
|
|
12
|
+
const struct mach_header* imageLoadAddress;
|
|
13
|
+
const char* imageFilePath;
|
|
14
|
+
uintptr_t imageFileModDate;
|
|
15
|
+
};
|
|
16
|
+
typedef void (*dyld_image_notifier)(enum dyld_image_mode mode, uint32_t infoCount, const struct dyld_image_info info[]);
|
|
17
|
+
struct dyld_uuid_info {
|
|
18
|
+
const struct mach_header* imageLoadAddress;
|
|
19
|
+
uuid_t imageUUID;
|
|
20
|
+
};
|
|
21
|
+
struct dyld_aot_image_info {
|
|
22
|
+
const struct mach_header* x86LoadAddress;
|
|
23
|
+
const struct mach_header* aotLoadAddress;
|
|
24
|
+
uint64_t aotImageSize;
|
|
25
|
+
uint8_t aotImageKey[32];
|
|
26
|
+
};
|
|
27
|
+
struct dyld_aot_shared_cache_info {
|
|
28
|
+
const uintptr_t cacheBaseAddress;
|
|
29
|
+
uuid_t cacheUUID;
|
|
30
|
+
};
|
|
31
|
+
struct dyld_all_image_infos
|
|
32
|
+
{
|
|
33
|
+
uint32_t version;
|
|
34
|
+
uint32_t infoArrayCount;
|
|
35
|
+
const struct dyld_image_info* infoArray;
|
|
36
|
+
dyld_image_notifier notification;
|
|
37
|
+
bool processDetachedFromSharedRegion;
|
|
38
|
+
bool libSystemInitialized;
|
|
39
|
+
const struct mach_header* dyldImageLoadAddress;
|
|
40
|
+
void* jitInfo;
|
|
41
|
+
const char* dyldVersion;
|
|
42
|
+
const char* errorMessage;
|
|
43
|
+
uintptr_t terminationFlags;
|
|
44
|
+
void* coreSymbolicationShmPage;
|
|
45
|
+
uintptr_t systemOrderFlag;
|
|
46
|
+
uintptr_t uuidArrayCount;
|
|
47
|
+
const struct dyld_uuid_info* uuidArray;
|
|
48
|
+
struct dyld_all_image_infos* dyldAllImageInfosAddress;
|
|
49
|
+
uintptr_t initialImageCount;
|
|
50
|
+
uintptr_t errorKind;
|
|
51
|
+
const char* errorClientOfDylibPath;
|
|
52
|
+
const char* errorTargetDylibPath;
|
|
53
|
+
const char* errorSymbol;
|
|
54
|
+
uintptr_t sharedCacheSlide;
|
|
55
|
+
uint8_t sharedCacheUUID[16];
|
|
56
|
+
uintptr_t sharedCacheBaseAddress;
|
|
57
|
+
uint64_t infoArrayChangeTimestamp;
|
|
58
|
+
const char* dyldPath;
|
|
59
|
+
mach_port_t notifyPorts[8];
|
|
60
|
+
uintptr_t reserved[11-(8/2)];
|
|
61
|
+
uint64_t sharedCacheFSID;
|
|
62
|
+
uint64_t sharedCacheFSObjID;
|
|
63
|
+
uintptr_t compact_dyld_image_info_addr;
|
|
64
|
+
size_t compact_dyld_image_info_size;
|
|
65
|
+
uint32_t platform;
|
|
66
|
+
uint32_t aotInfoCount;
|
|
67
|
+
const struct dyld_aot_image_info* aotInfoArray;
|
|
68
|
+
uint64_t aotInfoArrayChangeTimestamp;
|
|
69
|
+
uintptr_t aotSharedCacheBaseAddress;
|
|
70
|
+
uint8_t aotSharedCacheUUID[16];
|
|
71
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <mach-o/loader.h>
|
|
3
|
+
#ifdef __cplusplus
|
|
4
|
+
extern "C" {
|
|
5
|
+
#endif
|
|
6
|
+
#ifdef __LP64__
|
|
7
|
+
uint8_t *getsectiondata(const struct mach_header_64 *mhp, const char *segname, const char *sectname, unsigned long *size);
|
|
8
|
+
uint8_t *getsegmentdata(const struct mach_header_64 *mhp, const char *segname, unsigned long *size);
|
|
9
|
+
#else
|
|
10
|
+
uint8_t *getsectiondata(const struct mach_header *mhp, const char *segname, const char *sectname, unsigned long *size);
|
|
11
|
+
uint8_t *getsegmentdata(const struct mach_header *mhp, const char *segname, unsigned long *size);
|
|
12
|
+
#endif
|
|
13
|
+
const struct section *getsectbynamefromheader(const struct mach_header *, const char *, const char *);
|
|
14
|
+
const struct section_64 *getsectbynamefromheader_64(const struct mach_header_64 *, const char *, const char *);
|
|
15
|
+
#ifdef __cplusplus
|
|
16
|
+
}
|
|
17
|
+
#endif
|