@g9tm/lynxcontrols-foundation 2.6.8 → 2.6.10

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "catalogVersion": 1,
3
3
  "package": "@g9tm/lynxcontrols-foundation",
4
- "version": "2.6.8",
4
+ "version": "2.6.10",
5
5
  "generatedBy": "node scripts/check-docs.mjs --write",
6
6
  "components": [],
7
7
  "exports": [
@@ -701,6 +701,14 @@
701
701
  "signature": "(lat: number, lon: number, options?: G9CoordinateFormatOptions): string",
702
702
  "summary": "A position as «lat، lon» that can never read as one number (AgriPad F-401: «۳۴٫۸۰۴۲,۵۰٫۴۱۶۰»): each number in the culture's digits and decimal separator, no grouping, a fixed number of decimals, the culture's list separator between them, the whole left-to-right isolated so RTL text keeps latitude first. `formatCoordinates(34.80421, 50.41603, { numberingSystem: 'persian' })` → `'⁦۳۴٫۸۰۴۲، ۵۰٫۴۱۶۰⁩'`."
703
703
  },
704
+ {
705
+ "id": "foundation.culture.formatCountOf",
706
+ "export": "formatCountOf",
707
+ "from": "@g9tm/lynxcontrols-foundation/culture",
708
+ "kind": "function",
709
+ "signature": "(current: string | number, total: string | number, numberingSystem?: G9NumberingSystem, options?: { readonly direction?: \"ltr\" | \"rtl\"; readonly separator?: string; }): string",
710
+ "summary": "A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left, «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did). Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through."
711
+ },
704
712
  {
705
713
  "id": "foundation.culture.formatIsoDate",
706
714
  "export": "formatIsoDate",
package/catalog/index.md CHANGED
@@ -1,4 +1,4 @@
1
- # Catalog index: `@g9tm/lynxcontrols-foundation` 2.6.8
1
+ # Catalog index: `@g9tm/lynxcontrols-foundation` 2.6.10
2
2
 
3
3
  One line per component; the card (`cards/<Export>.md`) has its props and an example.
4
4
 
package/dist/.tsbuildinfo CHANGED
@@ -1 +1 @@
1
- {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/words.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/contracts.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/sanitize.ts","../src/theme/appearance.ts","../src/theme/css-color.ts","../src/theme/token-themes.ts","../src/theme/appearance-kit.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129,130],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,133,135,137,138],[97,99,134],[97,99,128,133,134,135,136,137],[97,133,136],[97,99,142],[97,99,141,142],[97,99,141],[97,140,141,142,143,144,145,147],[97,99,140,141,146],[97,98,99,131,132,139,148,149,156,162,183,185],[97,99,150],[97,150,151,152,153,154,155],[97,150,151],[97,150,151,153],[97,150],[97,99,134,136,153,157,158],[97,134,136,157,158,159,160,161],[97,164,166],[97,146,164,168,169,170,173,174,176],[97,99,146,164,168,170,171,172,173],[97,146,164,169,170],[97,146,164],[97,146,170],[97,146,169],[97,146,164,168,170,175],[97,146,167,169,170,171,172,174,175,176,177,178,179,180,182],[97,146],[97,99,164,168,169,170,171],[97,99,146,164],[97,146,164,169,170,173,174,175],[97,132,146,164,166,181],[97,163,164,165],[97,146,164,166],[97,163,164,165,166,168,181,184],[97,164,166,168,181],[97,166]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"e4f055733edd90b02d1683c88b4461b744cef922ef9668a07e280da95fcf5562","signature":"b3575fc6f742fdcb7c500e826958dc5aabea5c7120a02373172ef934f3881084"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"7eab0819fe34344e8b7c1827df8fd1611f5fa67e545d73b0229b0e18075af508","signature":"995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7"},{"version":"1839ad9436ac1f550a368c38510fab56aadfc60241e7168f40ccec851d6bbef0","signature":"7a40f3fc523bbfd4f6cd88e6c2d64020b3ba0b17cd675fdeab82b61b006ea8ae"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"854f9b8c6d757b73f1c168038e3a5b24e2ca973d803c49ad43949447d4615f07","signature":"4285e8b8ec9bdea3ca2630c4d79f715587cc3262e5613fbd7bea8ffd32cc097c"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"24189dadf4ca8b95ef97800d08ca7c98abdf1d6f0a1955fe66d94608fce724f8","signature":"f55ab5598602804a77bd7ff4f8442ceb29c6603120e1e6fe39b346dbcea9a438"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"69c39cdb2e91af538c7e6f54dd653864e0bc3eb765ba4f394d80f945eb1bfdcf","signature":"fd74286e0037339f88fdc437ede3c31139164faf238651e54abb805732d4b541"},{"version":"34b8960c9c9618b4742beb6198843f0e58ad8669864dac868507480ea6d8b10b","signature":"5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"94b5279df6c3abe97e185b85128e29c68da26025d99317deb539810f628a36ce","signature":"f50eafec22168e69b6138149fbee4eacb5dbd53fbc15f9daa37558705d1a6bc7"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"0cb9b61e4d36bf870e79aada49bd42e797b928202f5350efc5d38c674a5dda1e","signature":"6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73"},{"version":"3cfad95bc4e3a7cae2da5cb4b5747145754f734c50aed196f681c08081f4e61a","signature":"93d15026bf4213d204b0ed4bd102a82945c519a716d51c245dca01d6ca7d0222"},{"version":"a440fc408fef832b41e8dd4988e1ab8d06c6d82a849c33efc9f59af0b8a35994","signature":"27c5013992e6c2d1a82395d90ac5877a70066f03f74b2a91d70e9eafa0666655"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"b0740410649ef8daf5925d4bbac60c8f4f79a31c61e8ce02e5ad26c8c11705ad","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"fa790fa82a01d9f729f941c5c80e4eec51314ce7afacfad53025970fe495d321","signature":"a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15"},{"version":"76f792c697c5ac05595d1ce061ae0b1b98296a76a5535868071d622455425a7c","signature":"dca501d8eff2db8c8309ccb2667b3b70f6e80290b91081bd740fe933fadc0c03"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"73f46861ae92cd4ccac31f5045c6b548952a844d84fcbf63499c1a59c986619f","signature":"f484e0e4fa693a32c3ec182f8cd0ad3994c5efdc44c5969fd8c236c00a772d30"},{"version":"1cb16dd6dabd3a510cf89485546a34d38bb885f34f981627e46fdf7cebc3948f","signature":"2e3bd3aa1d6f941426e608169489cb33633ef7fb0294677e0d3151ef6c8dc913"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"59d217109d70b75a91c57fee208242e56bb535687f2092c373885aae511fc42e","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"e89f8cb160b8a1855b3bd6ec67d8443f5174b1359af01e9da73ef7e2d79f39db","signature":"5479876a6d0549f1536798428c4dcd46e8d7a5e5dcfb7d5b48da5aa237b8160f"},{"version":"36bd279cafc26def48a052ec89b8fc1676e1d055c73c8c9fb6e736883dad1ff8","signature":"9d34e36b56059d024baeb63a17467d01f2327d9568af58a7bbb168726a0b0503"},{"version":"60c5ea3628c3e2d99052a4f4de39019d4b316e40b970f722728ec678b8be1257","signature":"a438a2ecbecc0d1939a52439ca0150297820fc9d68bd9bddb6af5e9db7ab9457"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,186]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[131,44],[127,45],[122,41],[129,46],[128,47],[123,48],[130,38],[132,38],[99,38],[133,38],[139,49],[135,50],[138,51],[137,52],[140,38],[143,53],[141,43],[144,54],[142,55],[148,56],[145,38],[147,57],[186,58],[149,38],[150,43],[151,59],[156,60],[152,61],[154,62],[153,63],[155,63],[134,38],[136,38],[159,64],[157,38],[162,65],[160,38],[161,38],[158,43],[167,66],[177,67],[174,68],[171,69],[146,43],[178,70],[179,71],[175,72],[180,73],[183,74],[169,75],[172,76],[173,38],[170,77],[176,78],[182,79],[166,80],[181,81],[163,38],[164,38],[185,82],[165,43],[184,83],[168,84]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/words.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/contracts.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/sanitize.ts","../src/theme/appearance.ts","../src/theme/css-color.ts","../src/theme/token-themes.ts","../src/theme/appearance-kit.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129,130],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,133,135,137,138],[97,99,134],[97,99,128,133,134,135,136,137],[97,133,136],[97,99,142],[97,99,141,142],[97,99,141],[97,140,141,142,143,144,145,147],[97,99,140,141,146],[97,98,99,131,132,139,148,149,156,162,183,185],[97,99,150],[97,150,151,152,153,154,155],[97,150,151],[97,150,151,153],[97,150],[97,99,134,136,153,157,158],[97,134,136,157,158,159,160,161],[97,164,166],[97,146,164,168,169,170,173,174,176],[97,99,146,164,168,170,171,172,173],[97,146,164,169,170],[97,146,164],[97,146,170],[97,146,169],[97,146,164,168,170,175],[97,146,167,169,170,171,172,174,175,176,177,178,179,180,182],[97,146],[97,99,164,168,169,170,171],[97,99,146,164],[97,146,164,169,170,173,174,175],[97,132,146,164,166,181],[97,163,164,165],[97,146,164,166],[97,163,164,165,166,168,181,184],[97,164,166,168,181],[97,166]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"ac48ec0028c69cd75134b79ca6636cd7ccff7d6f674062f2dbb9ce131b15260c","signature":"235f39f2ec81e985a2b53a9d91604316593cab5825e0871f41858d040a68e0ea"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"7eab0819fe34344e8b7c1827df8fd1611f5fa67e545d73b0229b0e18075af508","signature":"995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7"},{"version":"5327d23180a822f022eb490921a8773c42099f1316acf6be5235600e969c19cf","signature":"75a9c0d9c7fe1140420a459de28b333a69a4733654da7111da2a0f8f4cc6b25f"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"854f9b8c6d757b73f1c168038e3a5b24e2ca973d803c49ad43949447d4615f07","signature":"4285e8b8ec9bdea3ca2630c4d79f715587cc3262e5613fbd7bea8ffd32cc097c"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"24189dadf4ca8b95ef97800d08ca7c98abdf1d6f0a1955fe66d94608fce724f8","signature":"f55ab5598602804a77bd7ff4f8442ceb29c6603120e1e6fe39b346dbcea9a438"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"76112f449f7a83084f9d769043fa3ef3f1fe13a3a487e13fe5cee8d6beaf0c22","signature":"a70dd08b4798361e2715b6c7ab920b3f1033eb473fd019d4ca457cb2589c4179"},{"version":"34b8960c9c9618b4742beb6198843f0e58ad8669864dac868507480ea6d8b10b","signature":"5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"94b5279df6c3abe97e185b85128e29c68da26025d99317deb539810f628a36ce","signature":"f50eafec22168e69b6138149fbee4eacb5dbd53fbc15f9daa37558705d1a6bc7"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"0cb9b61e4d36bf870e79aada49bd42e797b928202f5350efc5d38c674a5dda1e","signature":"6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73"},{"version":"3cfad95bc4e3a7cae2da5cb4b5747145754f734c50aed196f681c08081f4e61a","signature":"93d15026bf4213d204b0ed4bd102a82945c519a716d51c245dca01d6ca7d0222"},{"version":"a440fc408fef832b41e8dd4988e1ab8d06c6d82a849c33efc9f59af0b8a35994","signature":"27c5013992e6c2d1a82395d90ac5877a70066f03f74b2a91d70e9eafa0666655"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"b0740410649ef8daf5925d4bbac60c8f4f79a31c61e8ce02e5ad26c8c11705ad","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"fa790fa82a01d9f729f941c5c80e4eec51314ce7afacfad53025970fe495d321","signature":"a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15"},{"version":"76f792c697c5ac05595d1ce061ae0b1b98296a76a5535868071d622455425a7c","signature":"dca501d8eff2db8c8309ccb2667b3b70f6e80290b91081bd740fe933fadc0c03"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"73f46861ae92cd4ccac31f5045c6b548952a844d84fcbf63499c1a59c986619f","signature":"f484e0e4fa693a32c3ec182f8cd0ad3994c5efdc44c5969fd8c236c00a772d30"},{"version":"1cb16dd6dabd3a510cf89485546a34d38bb885f34f981627e46fdf7cebc3948f","signature":"2e3bd3aa1d6f941426e608169489cb33633ef7fb0294677e0d3151ef6c8dc913"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"2d44ce57513b0cd6e37ae35ba15ec92b5e84d3af94c831ce4fb15bb682f9bb98","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"e89f8cb160b8a1855b3bd6ec67d8443f5174b1359af01e9da73ef7e2d79f39db","signature":"5479876a6d0549f1536798428c4dcd46e8d7a5e5dcfb7d5b48da5aa237b8160f"},{"version":"36bd279cafc26def48a052ec89b8fc1676e1d055c73c8c9fb6e736883dad1ff8","signature":"9d34e36b56059d024baeb63a17467d01f2327d9568af58a7bbb168726a0b0503"},{"version":"60c5ea3628c3e2d99052a4f4de39019d4b316e40b970f722728ec678b8be1257","signature":"a438a2ecbecc0d1939a52439ca0150297820fc9d68bd9bddb6af5e9db7ab9457"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,186]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[131,44],[127,45],[122,41],[129,46],[128,47],[123,48],[130,38],[132,38],[99,38],[133,38],[139,49],[135,50],[138,51],[137,52],[140,38],[143,53],[141,43],[144,54],[142,55],[148,56],[145,38],[147,57],[186,58],[149,38],[150,43],[151,59],[156,60],[152,61],[154,62],[153,63],[155,63],[134,38],[136,38],[159,64],[157,38],[162,65],[160,38],[161,38],[158,43],[167,66],[177,67],[174,68],[171,69],[146,43],[178,70],[179,71],[175,72],[180,73],[183,74],[169,75],[172,76],[173,38],[170,77],[176,78],[182,79],[166,80],[181,81],[163,38],[164,38],[185,82],[165,43],[184,83],[168,84]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -9,6 +9,6 @@ export { parseNaturalDate } from './natural-date.js';
9
9
  export { formatNumber, formatPlainNumber, type G9NumberFormatOptions, type G9NumberSymbols, getNumberSymbols, parseNumber, } from './numbers.js';
10
10
  export { formatAgo, formatAgoWithTime, type G9Now, type G9RelativeTimeOptions, type G9RelativeTimeParts, G9RelativeTimeUnit, type G9RelativeTimeWithClockOptions, getRelativeTimeParts, } from './relative-time.js';
11
11
  export { createStrings, formatTemplate, type G9PartialStringTable, G9StringKey, type G9StringProvider, type G9Strings, type G9StringsOptions, type G9StringTable, g9ArabicStrings, g9BuiltInStringTables, g9EnglishStrings, g9PersianStrings, g9StringKeys, g9StringResourceName, } from './strings.js';
12
- export { bytesToBase64, formatCompact, formatSignedPercent, formatWeight, type G9TypedNumber, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey, } from './text.js';
12
+ export { bytesToBase64, formatCompact, formatCountOf, formatSignedPercent, formatWeight, type G9TypedNumber, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey, } from './text.js';
13
13
  export { type G9WordKey, type G9WordTable, g9ArabicWords, g9EnglishWords, g9PersianWords, g9SizeUnits, g9Word, } from './words.js';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/culture/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,4BAA4B,EAC5B,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,2BAA2B,EAC3B,cAAc,EACd,cAAc,EACd,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,KAAK,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,WAAW,EACX,iBAAiB,EACjB,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC3F,OAAO,EACL,WAAW,EACX,QAAQ,EACR,aAAa,EACb,KAAK,UAAU,EACf,cAAc,EACd,UAAU,EACV,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,gBAAgB,EAChB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,kBAAkB,EAClB,KAAK,8BAA8B,EACnC,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,oBAAoB,EACzB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,GACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,KAAK,aAAa,EAClB,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,MAAM,GACP,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/culture/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,M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B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,gBAAgB,EAChB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,kBAAkB,EAClB,KAAK,8BAA8B,EACnC,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,oBAAoB,EACzB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,GACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,aAAa,EACb,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,KAAK,aAAa,EAClB,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,MAAM,GACP,MAAM,SAAS,CAAC"}
@@ -9,5 +9,5 @@ export { parseNaturalDate } from "./natural-date.js";
9
9
  export { formatNumber, formatPlainNumber, getNumberSymbols, parseNumber } from "./numbers.js";
10
10
  export { G9RelativeTimeUnit, formatAgo, formatAgoWithTime, getRelativeTimeParts } from "./relative-time.js";
11
11
  export { G9StringKey, createStrings, formatTemplate, g9ArabicStrings, g9BuiltInStringTables, g9EnglishStrings, g9PersianStrings, g9StringKeys, g9StringResourceName } from "./strings.js";
12
- export { bytesToBase64, formatCompact, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey } from "./text.js";
12
+ export { bytesToBase64, formatCompact, formatCountOf, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey } from "./text.js";
13
13
  export { g9ArabicWords, g9EnglishWords, g9PersianWords, g9SizeUnits, g9Word } from "./words.js";
@@ -55,6 +55,17 @@ export declare const isolateLtr: (text: string) => string;
55
55
  export declare const isolateRtl: (text: string) => string;
56
56
  /** First-strong isolate: the direction of the text's first letter. */
57
57
  export declare const isolate: (text: string) => string;
58
+ /**
59
+ * A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's
60
+ * digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces
61
+ * have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left,
62
+ * «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did).
63
+ * Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through.
64
+ */
65
+ export declare function formatCountOf(current: number | string, total: number | string, numberingSystem?: G9NumberingSystem, options?: {
66
+ readonly direction?: 'ltr' | 'rtl';
67
+ readonly separator?: string;
68
+ }): string;
58
69
  /**
59
70
  * A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end
60
71
  * (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/culture/text.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAoC,MAAM,UAAU,CAAC;AAepF,sHAAsH;AACtH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAItE;AAED,qHAAqH;AACrH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SA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r = (text)=>`⁦${text}⁩`;
182
182
  const isolateRtl = (text)=>`⁧${text}⁩`;
183
183
  const isolate = (text)=>`⁨${text}⁩`;
184
+ function formatCountOf(current, total, numberingSystem = 'latin', options = {}) {
185
+ var _options_separator;
186
+ const text = toNativeDigits(`${current}${null != (_options_separator = options.separator) ? _options_separator : ' / '}${total}`, numberingSystem);
187
+ return 'rtl' === options.direction ? isolateRtl(text) : isolateLtr(text);
188
+ }
184
189
  function formatSignedPercent(value, options = {}) {
185
190
  var _options_decimals, _options_numberingSystem;
186
191
  const v = false === options.fromFraction ? value : 100 * value;
@@ -209,6 +214,6 @@ function normalizePhone(input, country = {
209
214
  if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;
210
215
  return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;
211
216
  }
212
- export { bytesToBase64, formatCompact, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey };
217
+ export { bytesToBase64, formatCompact, formatCountOf, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey };
213
218
 
214
219
  //# sourceMappingURL=text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"culture/text.js","sources":["../../src/culture/text.ts"],"sourcesContent":["// Text helpers every app re-wrote (SAC core/text.ts, Riskara core/text.ts, ShopManager core/text.ts, G9Hub intl): search\n// keys that match Persian however it was typed, numbers grouped while the person types (caret kept), compact money,\n// signed percentages that survive right-to-left text, bidi isolation and phone numbers.\nimport { type G9NumberingSystem, normalizeToAscii, toNativeDigits } from './digits';\nimport { formatNumber, getNumberSymbols } from './numbers';\n\n/** Arabic letter forms typed on Arabic keyboards → the Persian forms (ي ك ى ة ۀ), plus Arabic-Indic digits → Persian. */\nconst LETTERS: ReadonlyArray<readonly [RegExp, string]> = [\n [/[يى]/g, 'ی'],\n [/ك/g, 'ک'],\n [/ۀ/g, 'ه'],\n [/ة/g, 'ه'],\n [/[أإٱآ]/g, 'ا'],\n [/ؤ/g, 'و'],\n];\n// Harakat, tatweel, and the ZWNJ / bidi marks that make identical-looking words differ.\nconst MARKS = /[ً-ٰٟـ‌-‏‪-‮⁦-⁩]/g;\n\n/** Unifies how Persian is written: Arabic letter forms → Persian, digits → ASCII, marks removed, spaces collapsed. */\nexport function normalizeText(input: string | null | undefined): string {\n let s = normalizeToAscii(input ?? '');\n for (const [re, to] of LETTERS) s = s.replace(re, to);\n return s.replace(MARKS, '').replace(/\\s+/g, ' ').trim();\n}\n\n/** A key to compare for search: {@link normalizeText}, lower-cased, ZWNJ-split words joined (`می‌روم` = `میروم`). */\nexport function searchKey(input: string | null | undefined): string {\n return normalizeText(input).toLowerCase();\n}\n\n/** True when every word of `query` appears in `text` (any order, any spelling variant `normalizeText` unifies). */\nexport function matchesSearch(text: string | null | undefined, query: string | null | undefined): boolean {\n const words = searchKey(query).split(' ').filter(Boolean);\n if (words.length === 0) return true;\n const hay = searchKey(text);\n return words.every((w) => hay.includes(w));\n}\n\n/** The result of {@link groupWhileTyping}. */\nexport interface G9TypedNumber {\n /** The text to show (grouped, in the requested digits). */\n readonly text: string;\n /** Where the caret goes in `text`. */\n readonly caret: number;\n /** The value, or null when the text is empty or only a sign. */\n readonly value: number | null;\n}\n\n/**\n * Regroups a number while it is typed and keeps the caret after the same digit (SAC `groupTyped`): typing `1234567`\n * shows `1,234,567` (or `۱٬۲۳۴٬۵۶۷`), and the caret does not jump to the end when a digit is inserted in the middle.\n * Accepts any digits and separators the person types; `decimals` 0 refuses a decimal point.\n */\nexport function groupWhileTyping(\n raw: string,\n caret: number = raw.length,\n options: {\n readonly numberingSystem?: G9NumberingSystem;\n readonly decimals?: number;\n readonly allowNegative?: boolean;\n /** Thousands separators while typing. Default true; false for identifiers (a port, a code; 2.5.8). */\n readonly grouping?: boolean;\n } = {},\n): G9TypedNumber {\n const system = options.numberingSystem ?? 'latin';\n const sym = getNumberSymbols(system);\n const decimals = options.decimals ?? 0;\n // how many significant characters (digits, the decimal point, a minus) stand before the caret\n const ascii = normalizeToAscii(raw);\n const isDecimal = (ch: string) => ch === '.' || ch === '٫' || ch === '/' || (ch === ',' && false);\n let before = 0;\n let digits = '';\n let point = false;\n let negative = false;\n for (let i = 0; i < ascii.length; i++) {\n const ch = ascii[i] as string;\n let kept = false;\n if (ch >= '0' && ch <= '9') {\n digits += ch;\n kept = true;\n } else if (isDecimal(ch) && decimals > 0 && !point) {\n digits += '.';\n point = true;\n kept = true;\n } else if ((ch === '-' || ch === '−') && options.allowNegative && digits.length === 0 && !negative) {\n negative = true;\n kept = true;\n }\n if (kept && i < caret) before++;\n }\n let [int = '', frac] = digits.split('.');\n const grouping = options.grouping !== false;\n // an identifier keeps what was typed (its leading zeros too); an amount drops them\n if (grouping) int = int.replace(/^0+(?=\\d)/, '');\n if (frac !== undefined) frac = frac.slice(0, decimals);\n const grouped = grouping ? int.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',') : int;\n const asciiText = `${negative ? '-' : ''}${grouped}${point ? `.${frac ?? ''}` : ''}`;\n // place the caret after the same number of significant characters\n let pos = 0;\n let seen = 0;\n while (pos < asciiText.length && seen < before) {\n if (asciiText[pos] !== ',') seen++;\n pos++;\n }\n const value = int === '' && !frac ? null : Number(`${negative ? '-' : ''}${int || '0'}${frac ? `.${frac}` : ''}`);\n const text =\n system === 'latin'\n ? asciiText\n : toNativeDigits(asciiText.replace(/,/g, sym.group).replace('.', sym.decimal).replace('-', sym.minus), system);\n // the native minus may be two characters (a bidi mark + the sign): shift the caret by the extra length\n const extra = negative && system !== 'latin' ? sym.minus.length - 1 : 0;\n return { text, caret: pos + (pos > 0 ? extra : 0), value: Number.isFinite(value as number) ? value : null };\n}\n\nconst FA_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'هزار میلیارد'],\n [1e9, 'میلیارد'],\n [1e6, 'میلیون'],\n [1e3, 'هزار'],\n];\nconst EN_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'T'],\n [1e9, 'B'],\n [1e6, 'M'],\n [1e3, 'K'],\n];\n\n/**\n * A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or\n * `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole.\n */\nexport function formatCompact(\n value: number,\n options: { readonly language?: string; readonly numberingSystem?: G9NumberingSystem; readonly unit?: string } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n const abs = Math.abs(value);\n const units = fa ? FA_UNITS : EN_UNITS;\n const hit = units.find(([n]) => abs >= n);\n const n = hit ? value / hit[0] : value;\n const body = formatNumber(n, { numberingSystem: system, maximumFractionDigits: hit ? 1 : 0, useGrouping: true });\n const unit = hit ? (fa ? ` ${hit[1]}` : hit[1]) : '';\n return `${body}${unit}${options.unit ? ` ${options.unit}` : ''}`;\n}\n\n/**\n * A weighed quantity (ShopManager `QtyText` / `kg`): kilograms to one decimal, dropped when whole, grouped, in the\n * culture's digits — `2.5` → `۲٫۵ کیلوگرم` (fa, long) / `۲٫۵ کیلو` (fa, short) / `2.5 kg` (en). Under a kilogram,\n * `grams: true` writes grams instead (`0.35` → `۳۵۰ گرم` / `350 g`).\n */\nexport function formatWeight(\n kilograms: number,\n options: {\n readonly language?: string;\n readonly numberingSystem?: G9NumberingSystem;\n readonly short?: boolean;\n readonly grams?: boolean;\n readonly decimals?: number;\n } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n if (options.grams && Math.abs(kilograms) < 1 && kilograms !== 0) {\n const g = formatNumber(Math.round(kilograms * 1000), { numberingSystem: system, maximumFractionDigits: 0 });\n return fa ? `${g} گرم` : `${g} g`;\n }\n const body = formatNumber(kilograms, { numberingSystem: system, maximumFractionDigits: options.decimals ?? 1 });\n return fa ? `${body} ${options.short ? 'کیلو' : 'کیلوگرم'}` : `${body} kg`;\n}\n\nconst B64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n/** Standard base64 of bytes (PrimJS has neither `btoa` nor `Buffer`): data URIs of generated images. */\nexport function bytesToBase64(bytes: Uint8Array): string {\n const parts: string[] = [];\n let line = '';\n for (let i = 0; i < bytes.length; i += 3) {\n const a = bytes[i] as number;\n const b = i + 1 < bytes.length ? (bytes[i + 1] as number) : 0;\n const c = i + 2 < bytes.length ? (bytes[i + 2] as number) : 0;\n const n = (a << 16) | (b << 8) | c;\n line += B64.charAt((n >> 18) & 63) + B64.charAt((n >> 12) & 63);\n line += i + 1 < bytes.length ? B64.charAt((n >> 6) & 63) : '=';\n line += i + 2 < bytes.length ? B64.charAt(n & 63) : '=';\n // join in pieces: one string grown by += for 40 KB is slow on an interpreter\n if (line.length >= 4096) {\n parts.push(line);\n line = '';\n }\n }\n parts.push(line);\n return parts.join('');\n}\n\n/** Left-to-right isolate (FSI…PDI would guess; LRI forces): keeps `+12.5%` and phone numbers whole inside RTL text. */\nexport const isolateLtr = (text: string): string => `⁦${text}⁩`;\n/** Right-to-left isolate. */\nexport const isolateRtl = (text: string): string => `⁧${text}⁩`;\n/** First-strong isolate: the direction of the text's first letter. */\nexport const isolate = (text: string): string => `⁨${text}⁩`;\n\n/**\n * A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end\n * (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.\n */\nexport function formatSignedPercent(\n value: number,\n options: {\n readonly decimals?: number;\n readonly numberingSystem?: G9NumberingSystem;\n readonly fromFraction?: boolean;\n } = {},\n): string {\n const v = options.fromFraction === false ? value : value * 100;\n const decimals = options.decimals ?? 1;\n const rounded = Number(v.toFixed(decimals));\n const sign = rounded > 0 ? '+' : rounded < 0 ? '−' : '';\n const body = formatNumber(Math.abs(rounded), {\n numberingSystem: options.numberingSystem ?? 'latin',\n maximumFractionDigits: decimals,\n useGrouping: true,\n });\n const percent = options.numberingSystem && options.numberingSystem !== 'latin' ? '٪' : '%';\n return isolateLtr(`${sign}${body}${percent}`);\n}\n\n/**\n * A phone number in E.164 (`+989121234567`), or null. Accepts any digits, spaces, dashes, a leading 0, 00 or +, and the\n * national form; `country` gives the calling code for national numbers (default Iran, 98).\n */\nexport function normalizePhone(\n input: string | null | undefined,\n country: { readonly code: string; readonly nationalLength: number } = { code: '98', nationalLength: 10 },\n): string | null {\n const ascii = normalizeToAscii(input ?? '').replace(/[\\s\\-().]/g, '');\n if (!/^\\+?\\d+$/.test(ascii)) return null;\n let digits = ascii.startsWith('+') ? ascii.slice(1) : ascii.startsWith('00') ? ascii.slice(2) : ascii;\n if (!ascii.startsWith('+') && !ascii.startsWith('00')) {\n if (digits.startsWith('0')) digits = digits.slice(1);\n if (digits.length === country.nationalLength) digits = country.code + digits;\n }\n if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;\n return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;\n}\n"],"names":["LETTERS","MARKS","normalizeText","input","s","normalizeToAscii","re","to","searchKey","matchesSearch","text","query","words","Boolean","hay","w","groupWhileTyping","raw","caret","options","_options_numberingSystem","_options_decimals","system","sym","getNumberSymbols","decimals","ascii","isDecimal","ch","before","digits","point","negative","i","kept","int","frac","grouping","undefined","grouped","asciiText","pos","seen","value","Number","toNativeDigits","extra","FA_UNITS","EN_UNITS","formatCompact","_options_language","fa","abs","Math","units","hit","n","body","formatNumber","unit","formatWeight","kilograms","g","B64","bytesToBase64","bytes","parts","line","a","b","c","isolateLtr","isolateRtl","isolate","formatSignedPercent","v","rounded","sign","percent","normalizePhone","country"],"mappings":";;AAOA,MAAMA,UAAoD;IACxD;QAAC;QAAS;KAAI;IACd;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAW;KAAI;IACh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AU3D,QAAQ,eAAe,IAAIA,AAA4B,YAA5BA,QAAQ,eAAe,GAAe,MAAM;IACvF,OAAOoD,WAAW,GAAGM,OAAOpB,OAAOqB,SAAS;AAC9C;AAMO,SAASC,eACd5E,KAAgC,EAChC6E,UAAsE;IAAE,MAAM;IAAM,gBAAgB;AAAG,CAAC;IAExG,MAAMtD,QAAQrB,iBAAiBF,QAAAA,QAAAA,QAAS,IAAI,OAAO,CAAC,cAAc;IAClE,IAAI,CAAC,WAAW,IAAI,CAACuB,QAAQ,OAAO;IACpC,IAAII,SAASJ,MAAM,UAAU,CAAC,OAAOA,MAAM,KAAK,CAAC,KAAKA,MAAM,UAAU,CAAC,QAAQA,MAAM,KAAK,CAAC,KAAKA;IAChG,IAAI,CAACA,MAAM,UAAU,CAAC,QAAQ,CAACA,MAAM,UAAU,CAAC,OAAO;QACrD,IAAII,OAAO,UAAU,CAAC,MAAMA,SAASA,OAAO,KAAK,CAAC;QAClD,IAAIA,OAAO,MAAM,KAAKkD,QAAQ,cAAc,EAAElD,SAASkD,QAAQ,IAAI,GAAGlD;IACxE;IACA,IAAIA,OAAO,UAAU,CAACkD,QAAQ,IAAI,KAAKlD,OAAO,MAAM,KAAKkD,QAAQ,IAAI,CAAC,MAAM,GAAGA,QAAQ,cAAc,EAAE,OAAO;IAC9G,OAAOlD,OAAO,MAAM,IAAI,KAAKA,OAAO,MAAM,IAAI,KAAK,CAAC,CAAC,EAAEA,QAAQ,GAAG;AACpE"}
1
+ {"version":3,"file":"culture/text.js","sources":["../../src/culture/text.ts"],"sourcesContent":["// Text helpers every app re-wrote (SAC core/text.ts, Riskara core/text.ts, ShopManager core/text.ts, G9Hub intl): search\n// keys that match Persian however it was typed, numbers grouped while the person types (caret kept), compact money,\n// signed percentages that survive right-to-left text, bidi isolation and phone numbers.\nimport { type G9NumberingSystem, normalizeToAscii, toNativeDigits } from './digits';\nimport { formatNumber, getNumberSymbols } from './numbers';\n\n/** Arabic letter forms typed on Arabic keyboards → the Persian forms (ي ك ى ة ۀ), plus Arabic-Indic digits → Persian. */\nconst LETTERS: ReadonlyArray<readonly [RegExp, string]> = [\n [/[يى]/g, 'ی'],\n [/ك/g, 'ک'],\n [/ۀ/g, 'ه'],\n [/ة/g, 'ه'],\n [/[أإٱآ]/g, 'ا'],\n [/ؤ/g, 'و'],\n];\n// Harakat, tatweel, and the ZWNJ / bidi marks that make identical-looking words differ.\nconst MARKS = /[ً-ٰٟـ‌-‏‪-‮⁦-⁩]/g;\n\n/** Unifies how Persian is written: Arabic letter forms → Persian, digits → ASCII, marks removed, spaces collapsed. */\nexport function normalizeText(input: string | null | undefined): string {\n let s = normalizeToAscii(input ?? '');\n for (const [re, to] of LETTERS) s = s.replace(re, to);\n return s.replace(MARKS, '').replace(/\\s+/g, ' ').trim();\n}\n\n/** A key to compare for search: {@link normalizeText}, lower-cased, ZWNJ-split words joined (`می‌روم` = `میروم`). */\nexport function searchKey(input: string | null | undefined): string {\n return normalizeText(input).toLowerCase();\n}\n\n/** True when every word of `query` appears in `text` (any order, any spelling variant `normalizeText` unifies). */\nexport function matchesSearch(text: string | null | undefined, query: string | null | undefined): boolean {\n const words = searchKey(query).split(' ').filter(Boolean);\n if (words.length === 0) return true;\n const hay = searchKey(text);\n return words.every((w) => hay.includes(w));\n}\n\n/** The result of {@link groupWhileTyping}. */\nexport interface G9TypedNumber {\n /** The text to show (grouped, in the requested digits). */\n readonly text: string;\n /** Where the caret goes in `text`. */\n readonly caret: number;\n /** The value, or null when the text is empty or only a sign. */\n readonly value: number | null;\n}\n\n/**\n * Regroups a number while it is typed and keeps the caret after the same digit (SAC `groupTyped`): typing `1234567`\n * shows `1,234,567` (or `۱٬۲۳۴٬۵۶۷`), and the caret does not jump to the end when a digit is inserted in the middle.\n * Accepts any digits and separators the person types; `decimals` 0 refuses a decimal point.\n */\nexport function groupWhileTyping(\n raw: string,\n caret: number = raw.length,\n options: {\n readonly numberingSystem?: G9NumberingSystem;\n readonly decimals?: number;\n readonly allowNegative?: boolean;\n /** Thousands separators while typing. Default true; false for identifiers (a port, a code; 2.5.8). */\n readonly grouping?: boolean;\n } = {},\n): G9TypedNumber {\n const system = options.numberingSystem ?? 'latin';\n const sym = getNumberSymbols(system);\n const decimals = options.decimals ?? 0;\n // how many significant characters (digits, the decimal point, a minus) stand before the caret\n const ascii = normalizeToAscii(raw);\n const isDecimal = (ch: string) => ch === '.' || ch === '٫' || ch === '/' || (ch === ',' && false);\n let before = 0;\n let digits = '';\n let point = false;\n let negative = false;\n for (let i = 0; i < ascii.length; i++) {\n const ch = ascii[i] as string;\n let kept = false;\n if (ch >= '0' && ch <= '9') {\n digits += ch;\n kept = true;\n } else if (isDecimal(ch) && decimals > 0 && !point) {\n digits += '.';\n point = true;\n kept = true;\n } else if ((ch === '-' || ch === '−') && options.allowNegative && digits.length === 0 && !negative) {\n negative = true;\n kept = true;\n }\n if (kept && i < caret) before++;\n }\n let [int = '', frac] = digits.split('.');\n const grouping = options.grouping !== false;\n // an identifier keeps what was typed (its leading zeros too); an amount drops them\n if (grouping) int = int.replace(/^0+(?=\\d)/, '');\n if (frac !== undefined) frac = frac.slice(0, decimals);\n const grouped = grouping ? int.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',') : int;\n const asciiText = `${negative ? '-' : ''}${grouped}${point ? `.${frac ?? ''}` : ''}`;\n // place the caret after the same number of significant characters\n let pos = 0;\n let seen = 0;\n while (pos < asciiText.length && seen < before) {\n if (asciiText[pos] !== ',') seen++;\n pos++;\n }\n const value = int === '' && !frac ? null : Number(`${negative ? '-' : ''}${int || '0'}${frac ? `.${frac}` : ''}`);\n const text =\n system === 'latin'\n ? asciiText\n : toNativeDigits(asciiText.replace(/,/g, sym.group).replace('.', sym.decimal).replace('-', sym.minus), system);\n // the native minus may be two characters (a bidi mark + the sign): shift the caret by the extra length\n const extra = negative && system !== 'latin' ? sym.minus.length - 1 : 0;\n return { text, caret: pos + (pos > 0 ? extra : 0), value: Number.isFinite(value as number) ? value : null };\n}\n\nconst FA_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'هزار میلیارد'],\n [1e9, 'میلیارد'],\n [1e6, 'میلیون'],\n [1e3, 'هزار'],\n];\nconst EN_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'T'],\n [1e9, 'B'],\n [1e6, 'M'],\n [1e3, 'K'],\n];\n\n/**\n * A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or\n * `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole.\n */\nexport function formatCompact(\n value: number,\n options: { readonly language?: string; readonly numberingSystem?: G9NumberingSystem; readonly unit?: string } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n const abs = Math.abs(value);\n const units = fa ? FA_UNITS : EN_UNITS;\n const hit = units.find(([n]) => abs >= n);\n const n = hit ? value / hit[0] : value;\n const body = formatNumber(n, { numberingSystem: system, maximumFractionDigits: hit ? 1 : 0, useGrouping: true });\n const unit = hit ? (fa ? ` ${hit[1]}` : hit[1]) : '';\n return `${body}${unit}${options.unit ? ` ${options.unit}` : ''}`;\n}\n\n/**\n * A weighed quantity (ShopManager `QtyText` / `kg`): kilograms to one decimal, dropped when whole, grouped, in the\n * culture's digits — `2.5` → `۲٫۵ کیلوگرم` (fa, long) / `۲٫۵ کیلو` (fa, short) / `2.5 kg` (en). Under a kilogram,\n * `grams: true` writes grams instead (`0.35` → `۳۵۰ گرم` / `350 g`).\n */\nexport function formatWeight(\n kilograms: number,\n options: {\n readonly language?: string;\n readonly numberingSystem?: G9NumberingSystem;\n readonly short?: boolean;\n readonly grams?: boolean;\n readonly decimals?: number;\n } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n if (options.grams && Math.abs(kilograms) < 1 && kilograms !== 0) {\n const g = formatNumber(Math.round(kilograms * 1000), { numberingSystem: system, maximumFractionDigits: 0 });\n return fa ? `${g} گرم` : `${g} g`;\n }\n const body = formatNumber(kilograms, { numberingSystem: system, maximumFractionDigits: options.decimals ?? 1 });\n return fa ? `${body} ${options.short ? 'کیلو' : 'کیلوگرم'}` : `${body} kg`;\n}\n\nconst B64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n/** Standard base64 of bytes (PrimJS has neither `btoa` nor `Buffer`): data URIs of generated images. */\nexport function bytesToBase64(bytes: Uint8Array): string {\n const parts: string[] = [];\n let line = '';\n for (let i = 0; i < bytes.length; i += 3) {\n const a = bytes[i] as number;\n const b = i + 1 < bytes.length ? (bytes[i + 1] as number) : 0;\n const c = i + 2 < bytes.length ? (bytes[i + 2] as number) : 0;\n const n = (a << 16) | (b << 8) | c;\n line += B64.charAt((n >> 18) & 63) + B64.charAt((n >> 12) & 63);\n line += i + 1 < bytes.length ? B64.charAt((n >> 6) & 63) : '=';\n line += i + 2 < bytes.length ? B64.charAt(n & 63) : '=';\n // join in pieces: one string grown by += for 40 KB is slow on an interpreter\n if (line.length >= 4096) {\n parts.push(line);\n line = '';\n }\n }\n parts.push(line);\n return parts.join('');\n}\n\n/** Left-to-right isolate (FSI…PDI would guess; LRI forces): keeps `+12.5%` and phone numbers whole inside RTL text. */\nexport const isolateLtr = (text: string): string => `⁦${text}⁩`;\n/** Right-to-left isolate. */\nexport const isolateRtl = (text: string): string => `⁧${text}⁩`;\n/** First-strong isolate: the direction of the text's first letter. */\nexport const isolate = (text: string): string => `⁨${text}⁩`;\n\n/**\n * A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's\n * digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces\n * have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left,\n * «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did).\n * Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through.\n */\nexport function formatCountOf(\n current: number | string,\n total: number | string,\n numberingSystem: G9NumberingSystem = 'latin',\n options: { readonly direction?: 'ltr' | 'rtl'; readonly separator?: string } = {},\n): string {\n const text = toNativeDigits(`${current}${options.separator ?? ' / '}${total}`, numberingSystem);\n return options.direction === 'rtl' ? isolateRtl(text) : isolateLtr(text);\n}\n\n/**\n * A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end\n * (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.\n */\nexport function formatSignedPercent(\n value: number,\n options: {\n readonly decimals?: number;\n readonly numberingSystem?: G9NumberingSystem;\n readonly fromFraction?: boolean;\n } = {},\n): string {\n const v = options.fromFraction === false ? value : value * 100;\n const decimals = options.decimals ?? 1;\n const rounded = Number(v.toFixed(decimals));\n const sign = rounded > 0 ? '+' : rounded < 0 ? '−' : '';\n const body = formatNumber(Math.abs(rounded), {\n numberingSystem: options.numberingSystem ?? 'latin',\n maximumFractionDigits: decimals,\n useGrouping: true,\n });\n const percent = options.numberingSystem && options.numberingSystem !== 'latin' ? '٪' : '%';\n return isolateLtr(`${sign}${body}${percent}`);\n}\n\n/**\n * A phone number in E.164 (`+989121234567`), or null. Accepts any digits, spaces, dashes, a leading 0, 00 or +, and the\n * national form; `country` gives the calling code for national numbers (default Iran, 98).\n */\nexport function normalizePhone(\n input: string | null | undefined,\n country: { readonly code: string; readonly nationalLength: number } = { code: '98', nationalLength: 10 },\n): string | null {\n const ascii = normalizeToAscii(input ?? '').replace(/[\\s\\-().]/g, '');\n if (!/^\\+?\\d+$/.test(ascii)) return null;\n let digits = ascii.startsWith('+') ? ascii.slice(1) : ascii.startsWith('00') ? ascii.slice(2) : ascii;\n if (!ascii.startsWith('+') && !ascii.startsWith('00')) {\n if (digits.startsWith('0')) digits = digits.slice(1);\n if (digits.length === country.nationalLength) digits = country.code + digits;\n }\n if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;\n return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;\n}\n"],"names":["LETTERS","MARKS","normalizeText","input","s","normalizeToAscii","re","to","searchKey","matchesSearch","text","query","words","Boolean","hay","w","groupWhileTyping","raw","caret","options","_options_numberingSystem","_options_decimals","system","sym","getNumberSymbols","decimals","ascii","isDecimal","ch","before","digits","point","negative","i","kept","int","frac","grouping","undefined","grouped","asciiText","pos","seen","value","Number","toNativeDigits","extra","FA_UNITS","EN_UNITS","formatCompact","_options_language","fa","abs","Math","units","hit","n","body","formatNumber","unit","formatWeight","kilograms","g","B64","bytesToBase64","bytes","parts","line","a","b","c","isolateLtr","isolateRtl","isolate","formatCountOf","current","total","numberingSystem","_options_separator","formatSignedPercent","v","rounded","sign","percent","normalizePhone","country"],"mappings":";;AAOA,MAAMA,UAAoD;IACxD;QAAC;QAAS;KAAI;IACd;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAW;KAAI;IAChB;QAAC;QAAM;KAAI;CACZ;AAED,MAAMC,QAAQ;AAGP,SAASC,cAAcC,KAAgC;IAC5D,IAAIC,IAAIC,iBAAiBF,QAAAA,QAAAA,QAAS;IAClC,KAAK,MAAM,CAACG,IAAIC,GAAG,IAAIP,QAASI,IAAIA,EAAE,OAAO,CAACE,IAAIC;IAClD,OAAOH,EAAE,OAAO,CAACH,OAAO,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI;AACvD;AAGO,SAASO,UAAUL,KAAgC;IACxD,OAAOD,cAAcC,OAAO,WAAW;AACzC;AAGO,SAASM,cAAcC,IAA+B,EAAEC,KAAgC;IAC7F,MAAMC,QAAQJ,UAAUG,OAAO,KAAK,CAAC,KAAK,MAAM,CAACE;IACjD,IAAID,AAAiB,MAAjBA,MAAM,MAAM,EAAQ,OAAO;IAC/B,MAAME,MAAMN,UAAUE;IACtB,OA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AAAA,QAAAA,QAAS,IAAI,OAAO,CAAC,cAAc;IAClE,IAAI,CAAC,WAAW,IAAI,CAACuB,QAAQ,OAAO;IACpC,IAAII,SAASJ,MAAM,UAAU,CAAC,OAAOA,MAAM,KAAK,CAAC,KAAKA,MAAM,UAAU,CAAC,QAAQA,MAAM,KAAK,CAAC,KAAKA;IAChG,IAAI,CAACA,MAAM,UAAU,CAAC,QAAQ,CAACA,MAAM,UAAU,CAAC,OAAO;QACrD,IAAII,OAAO,UAAU,CAAC,MAAMA,SAASA,OAAO,KAAK,CAAC;QAClD,IAAIA,OAAO,MAAM,KAAKuD,QAAQ,cAAc,EAAEvD,SAASuD,QAAQ,IAAI,GAAGvD;IACxE;IACA,IAAIA,OAAO,UAAU,CAACuD,QAAQ,IAAI,KAAKvD,OAAO,MAAM,KAAKuD,QAAQ,IAAI,CAAC,MAAM,GAAGA,QAAQ,cAAc,EAAE,OAAO;IAC9G,OAAOvD,OAAO,MAAM,IAAI,KAAKA,OAAO,MAAM,IAAI,KAAK,CAAC,CAAC,EAAEA,QAAQ,GAAG;AACpE"}
@@ -195,6 +195,12 @@ export interface G9HostServices {
195
195
  * soft-input modes (iOS, desktop) omit it, which is where MAUI's helper was a no-op too.
196
196
  */
197
197
  setSoftInputMode?(mode: G9SoftInputMode): void;
198
+ /**
199
+ * Hears whether a G9 text input has the focus (true when the first one takes it, false when the last one lets it
200
+ * go), for a host that handles keys itself: its single-key shortcuts stay quiet while the person types (G9Hub 126,
201
+ * 2.6.10). Optional; the app reads the same from `g9TextFocus` / `useG9TextFocused`.
202
+ */
203
+ textFocus?(focused: boolean): void;
198
204
  }
199
205
  /** Every service the app can supply. Required ones are listed in {@link g9RequiredCapabilities}. */
200
206
  export interface G9Capabilities {
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/services/contracts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAA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E,OAAO,CAAC,cAAc,CAAC,EACjC,IAAI,EAAE,CAAC,GACN,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAIhC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,QAAQ,IAAI,cAAc,CAEhH"}
@@ -1 +1 @@
1
- {"version":3,"file":"services/contracts.js","sources":["../../src/services/contracts.ts"],"sourcesContent":["// Platform capability contracts (plan/specs/01-Architecture.md §8). Foundation defines the shapes only; the app\n// supplies implementations through the WP02 provider (`<G9Provider services={…}>`), platform adapters live in the\n// native and Lynxtron packages (WP12–WP14), and the features that use them (fields' dictation WP03, barcode WP09,\n// IntroCarousel WP09) own the behaviour. Nothing here requests a permission or touches a native module.\nimport { G9Error } from '../errors';\nimport type { G9RouteSink } from '../route/sink';\nimport type { G9AbortSignal } from './abort';\nimport type { G9Clock } from './clock';\nimport type { G9Haptics, G9Sounds } from './feedback';\nimport type { G9PreferenceStore } from './preferences';\n\n/** Result of asking for a runtime permission. `'restricted'`: blocked by policy, the user cannot grant it. */\nexport type G9PermissionStatus = 'granted' | 'denied' | 'restricted';\n\n/** Options of one dictation session. */\nexport interface G9SpeechToTextOptions {\n /** BCP 47 locale the recogniser listens for (from the culture, e.g. `'fa-IR'`). */\n readonly locale: string;\n /** Aborting stops listening; the session then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n /** Interim hypotheses while the user speaks, when the platform reports them. */\n readonly onPartialResult?: (text: string) => void;\n}\n\n/** How a dictation session ended. Expected outcomes are results, not errors (specs/03 §7). */\nexport type G9SpeechToTextResult =\n | { readonly status: 'recognized'; readonly text: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'no-match' }\n | { readonly status: 'denied' };\n\n/**\n * Speech recognition for dictation into fields (MAUI `IG9SpeechToText`). Optional: without it the microphone\n * affordance is hidden. A platform fault rejects with a `G9Error`.\n */\nexport interface G9SpeechToText {\n /** Whether a recogniser exists for this locale on this device (no permission prompt). */\n isAvailable(locale: string): Promise<boolean>;\n /** Asks for microphone and speech permission (only ever from a user action). */\n requestPermission(): Promise<G9PermissionStatus>;\n /** Listens once and settles exactly once. */\n listen(options: G9SpeechToTextOptions): Promise<G9SpeechToTextResult>;\n}\n\n/** Options of one scan. */\nexport interface G9ScanOptions {\n /** Symbologies to accept (e.g. `'qr'`, `'ean13'`, `'code128'`); empty or absent means every one the scanner has. */\n readonly formats?: ReadonlyArray<string>;\n /** Aborting closes the scanner; the scan then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n}\n\n/** How a scan ended. */\nexport type G9ScanResult =\n | { readonly status: 'scanned'; readonly text: string; readonly format: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'denied' };\n\n/** Barcode/QR scanning supplied by the app (WP09 barcode package). Optional: without it the scan action is hidden. */\nexport interface G9Scanner {\n /** Whether a camera scanner is usable on this device (no permission prompt). */\n isAvailable(): Promise<boolean>;\n /** Opens the scanner and settles exactly once. */\n scan(options?: G9ScanOptions): Promise<G9ScanResult>;\n}\n\n/** A media reference as the app describes it (an asset name, a file or a remote URI). */\nexport type G9MediaSource =\n | { readonly kind: 'image'; readonly uri: string }\n | { readonly kind: 'image'; readonly asset: string }\n | { readonly kind: 'video'; readonly uri: string }\n | { readonly kind: 'video'; readonly asset: string };\n\n/** A source resolved to something the platform can display; `uri` is what `<image>`/the video XElement load. */\nexport interface G9ResolvedMedia {\n readonly kind: 'image' | 'video';\n readonly uri: string;\n /** Intrinsic size when known, so layout can reserve space before the first frame. */\n readonly width?: number;\n readonly height?: number;\n}\n\n/** What a {@link G9MediaPlayer} tells its owner. */\nexport type G9MediaPlayerEvent =\n /** The first frame is ready to show. */\n | { readonly type: 'ready' }\n /** A looping video is about to end (`seconds` left); the owner may fade out. */\n | { readonly type: 'nearEnd'; readonly seconds: number }\n /** A looping video restarted from the beginning; the owner may fade back in. */\n | { readonly type: 'looped' }\n /** Playback failed; the owner falls back to the slide image. */\n | { readonly type: 'error'; readonly error: unknown };\n\n/** Options of {@link G9MediaProvider.createPlayer}. */\nexport interface G9MediaPlayerOptions {\n readonly loop?: boolean;\n readonly muted?: boolean;\n /** Best-effort seek applied once after the media opened (MAUI `InitialVideoStartSeconds`). */\n readonly startSeconds?: number;\n /** How early `nearEnd` fires, in seconds. */\n readonly nearEndSeconds?: number;\n}\n\n/**\n * One video player created by the app's media provider. `view` is what the control renders (the platform video\n * XElement the host registered, built by the app); the control never names a video tag itself.\n */\nexport interface G9MediaPlayer {\n /** The element to render (a ReactNode built by the app's provider; foundation keeps it opaque). */\n readonly view: unknown;\n play(): void;\n pause(): void;\n /** Releases the native player; idempotent. */\n dispose(): void;\n /** Subscribes to player events; returns the unsubscribe function. */\n subscribe(listener: (event: G9MediaPlayerEvent) => void): () => void;\n}\n\n/**\n * Resolves image and video sources for IntroCarousel and other media controls (WP09). Video is part of the contract on\n * every target, desktop included (decision D14 is open; no scope reduction is accepted). A provider that cannot play\n * video yet omits `createPlayer` or returns `false` from `supportsVideo`; controls then show the slide image and say\n * why (`'video-unsupported'`).\n */\nexport interface G9MediaProvider {\n resolve(source: G9MediaSource, options?: { readonly signal?: G9AbortSignal }): Promise<G9ResolvedMedia>;\n /** Whether this target can play video now (no permission prompt). Absent = `createPlayer` decides. */\n supportsVideo?(): boolean;\n /** Creates a player for a resolved video. The control disposes it on slide change, deactivation and unmount. */\n createPlayer?(media: G9ResolvedMedia, options?: G9MediaPlayerOptions): G9MediaPlayer;\n}\n\n/** A file the host picked or received (a handle: read and release it through the host's own files API). */\nexport interface G9FileRef {\n readonly id: string;\n readonly name?: string;\n readonly mime?: string;\n readonly size?: number;\n}\n\n/**\n * The system file chooser and camera (G9Hub `platform().files`). Optional: without it `G9DropZone` shows its area\n * disabled. A host that can drop files on the window emits `g9:drag` `{ active }` and `g9:drop` `{ files }`.\n */\nexport interface G9FilePicker {\n /** Opens the chooser filtered by category; resolves `[]` when cancelled. */\n pick(options: {\n readonly accept: 'image' | 'video' | 'media' | 'audio' | 'any';\n readonly multiple: boolean;\n }): Promise<readonly G9FileRef[]>;\n /** One photo from the camera, or `null` when cancelled. */\n camera?(options: { readonly mode: 'photo'; readonly facing?: 'user' | 'environment' }): Promise<G9FileRef | null>;\n /** Gives a file the app will not use back to the host. */\n release?(id: string): void;\n}\n\n/** Safe-area insets in logical pixels. */\nexport interface G9SafeInsets {\n readonly top: number;\n readonly end: number;\n readonly bottom: number;\n readonly start: number;\n}\n\n/** Android soft-input policy while a flow needs it (MAUI `G9KeyboardHelper.UseAndroidPanSoftInputMode`). */\nexport type G9SoftInputMode = 'pan' | 'resize';\n\n/**\n * Host integration the provider and overlays need (MAUI page/window plumbing), supplied by the native host. Required.\n * The system back press does not go through this object: the host sends a global event (default `g9:back`, specs/02\n * §4) and the provider dispatches it to the active `G9Host`; `exit` is what happens when nothing handled it.\n */\nexport interface G9HostServices {\n /** Leaves the app the platform way (Android moves the task to the back; desktop closes the window). */\n exit(): void;\n /** Hides the soft keyboard and clears focus (MAUI `G9KeyboardHelper.HideKeyboardAndClearFocus`). */\n hideKeyboard(): void;\n /** Current safe-area insets. */\n getSafeInsets(): G9SafeInsets;\n /** Called when the insets change (rotation, window resize). Returns an unsubscribe function. */\n subscribeSafeInsets(listener: (insets: G9SafeInsets) => void): () => void;\n /**\n * Switches the window's soft-input mode (Android only; `'resize'` is the app default). Hosts on platforms without\n * soft-input modes (iOS, desktop) omit it, which is where MAUI's helper was a no-op too.\n */\n setSoftInputMode?(mode: G9SoftInputMode): void;\n}\n\n/** Every service the app can supply. Required ones are listed in {@link g9RequiredCapabilities}. */\nexport interface G9Capabilities {\n readonly clock: G9Clock;\n readonly preferences: G9PreferenceStore;\n readonly host: G9HostServices;\n readonly speech?: G9SpeechToText;\n readonly scanner?: G9Scanner;\n readonly media?: G9MediaProvider;\n /**\n * The router places declare themselves to (`@g9tm/lynxcontrols/route` makes one). Optional: without it sheets, tab views\n * and hosts work as before and a `route` option only reports a one-time diagnostics warning.\n */\n readonly route?: G9RouteSink;\n /** Haptic feedback (optional: without it controls stay silent). */\n readonly haptics?: G9Haptics;\n /** Sound feedback (optional). */\n readonly sounds?: G9Sounds;\n /** The file chooser and camera (optional: `G9DropZone`). */\n readonly files?: G9FilePicker;\n}\n\n/** The name of a capability. */\nexport type G9CapabilityName = keyof G9Capabilities;\n\n/** Capabilities without which the provider cannot mount. */\nexport const g9RequiredCapabilities: ReadonlyArray<G9CapabilityName> = Object.freeze(['clock', 'preferences', 'host']);\n\n/** Thrown when code needs a capability the app did not supply (specs/03 §7: `G9CapabilityMissingError('speech')`). */\nexport class G9CapabilityMissingError extends G9Error {\n /** The missing capability. */\n readonly capability: string;\n\n constructor(capability: string, message?: string) {\n super('capability-missing', message ?? `The '${capability}' service is not available; supply it to G9Provider.`);\n this.name = 'G9CapabilityMissingError';\n this.capability = capability;\n }\n}\n\n/** `true` when the capability is present (optional features use this to hide themselves). */\nexport function hasCapability(services: Partial<G9Capabilities>, name: G9CapabilityName): boolean {\n return services[name] != null;\n}\n\n/** The capability, or throws {@link G9CapabilityMissingError} naming it. */\nexport function requireCapability<K extends G9CapabilityName>(\n services: Partial<G9Capabilities>,\n name: K,\n): NonNullable<G9Capabilities[K]> {\n const service = services[name];\n if (service == null) throw new G9CapabilityMissingError(name);\n return service as NonNullable<G9Capabilities[K]>;\n}\n\n/**\n * Checks every required capability at once (the provider calls this at mount).\n * @throws {G9CapabilityMissingError} for the first missing one, in {@link g9RequiredCapabilities} order.\n */\nexport function assertRequiredCapabilities(services: Partial<G9Capabilities>): asserts services is G9Capabilities {\n for (const name of g9RequiredCapabilities) requireCapability(services, name);\n}\n"],"names":["g9RequiredCapabilities","Object","G9CapabilityMissingError","G9Error","capability","message","hasCapability","services","name","requireCapability","service","assertRequiredCapabilities"],"mappings":";;;;;;;;;;;AAqNO,MAAMA,yBAA0DC,OAAO,MAAM,CAAC;IAAC;IAAS;IAAe;CAAO;AAG9G,MAAMC,iCAAiCC;IAI5C,YAAYC,UAAkB,EAAEC,OAAgB,CAAE;QAChD,KAAK,CAAC,sBAAsBA,QAAAA,UAAAA,UAAW,CAAC,KAAK,EAAED,WAAW,oDAAoD,CAAC,GAHjH,uBAAS,cAAT;QAIE,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,UAAU,GAAGA;IACpB;AACF;AAGO,SAASE,cAAcC,QAAiC,EAAEC,IAAsB;IACrF,OAAOD,AAAkB,QAAlBA,QAAQ,CAACC,KAAK;AACvB;AAGO,SAASC,kBACdF,QAAiC,EACjCC,IAAO;IAEP,MAAME,UAAUH,QAAQ,CAACC,KAAK;IAC9B,IAAIE,AAAW,QAAXA,SAAiB,MAAM,IAAIR,yBAAyBM;IACxD,OAAOE;AACT;AAMO,SAASC,2BAA2BJ,QAAiC;IAC1E,KAAK,MAAMC,QAAQR,uBAAwBS,kBAAkBF,UAAUC;AACzE"}
1
+ {"version":3,"file":"services/contracts.js","sources":["../../src/services/contracts.ts"],"sourcesContent":["// Platform capability contracts (plan/specs/01-Architecture.md §8). Foundation defines the shapes only; the app\n// supplies implementations through the WP02 provider (`<G9Provider services={…}>`), platform adapters live in the\n// native and Lynxtron packages (WP12–WP14), and the features that use them (fields' dictation WP03, barcode WP09,\n// IntroCarousel WP09) own the behaviour. Nothing here requests a permission or touches a native module.\nimport { G9Error } from '../errors';\nimport type { G9RouteSink } from '../route/sink';\nimport type { G9AbortSignal } from './abort';\nimport type { G9Clock } from './clock';\nimport type { G9Haptics, G9Sounds } from './feedback';\nimport type { G9PreferenceStore } from './preferences';\n\n/** Result of asking for a runtime permission. `'restricted'`: blocked by policy, the user cannot grant it. */\nexport type G9PermissionStatus = 'granted' | 'denied' | 'restricted';\n\n/** Options of one dictation session. */\nexport interface G9SpeechToTextOptions {\n /** BCP 47 locale the recogniser listens for (from the culture, e.g. `'fa-IR'`). */\n readonly locale: string;\n /** Aborting stops listening; the session then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n /** Interim hypotheses while the user speaks, when the platform reports them. */\n readonly onPartialResult?: (text: string) => void;\n}\n\n/** How a dictation session ended. Expected outcomes are results, not errors (specs/03 §7). */\nexport type G9SpeechToTextResult =\n | { readonly status: 'recognized'; readonly text: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'no-match' }\n | { readonly status: 'denied' };\n\n/**\n * Speech recognition for dictation into fields (MAUI `IG9SpeechToText`). Optional: without it the microphone\n * affordance is hidden. A platform fault rejects with a `G9Error`.\n */\nexport interface G9SpeechToText {\n /** Whether a recogniser exists for this locale on this device (no permission prompt). */\n isAvailable(locale: string): Promise<boolean>;\n /** Asks for microphone and speech permission (only ever from a user action). */\n requestPermission(): Promise<G9PermissionStatus>;\n /** Listens once and settles exactly once. */\n listen(options: G9SpeechToTextOptions): Promise<G9SpeechToTextResult>;\n}\n\n/** Options of one scan. */\nexport interface G9ScanOptions {\n /** Symbologies to accept (e.g. `'qr'`, `'ean13'`, `'code128'`); empty or absent means every one the scanner has. */\n readonly formats?: ReadonlyArray<string>;\n /** Aborting closes the scanner; the scan then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n}\n\n/** How a scan ended. */\nexport type G9ScanResult =\n | { readonly status: 'scanned'; readonly text: string; readonly format: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'denied' };\n\n/** Barcode/QR scanning supplied by the app (WP09 barcode package). Optional: without it the scan action is hidden. */\nexport interface G9Scanner {\n /** Whether a camera scanner is usable on this device (no permission prompt). */\n isAvailable(): Promise<boolean>;\n /** Opens the scanner and settles exactly once. */\n scan(options?: G9ScanOptions): Promise<G9ScanResult>;\n}\n\n/** A media reference as the app describes it (an asset name, a file or a remote URI). */\nexport type G9MediaSource =\n | { readonly kind: 'image'; readonly uri: string }\n | { readonly kind: 'image'; readonly asset: string }\n | { readonly kind: 'video'; readonly uri: string }\n | { readonly kind: 'video'; readonly asset: string };\n\n/** A source resolved to something the platform can display; `uri` is what `<image>`/the video XElement load. */\nexport interface G9ResolvedMedia {\n readonly kind: 'image' | 'video';\n readonly uri: string;\n /** Intrinsic size when known, so layout can reserve space before the first frame. */\n readonly width?: number;\n readonly height?: number;\n}\n\n/** What a {@link G9MediaPlayer} tells its owner. */\nexport type G9MediaPlayerEvent =\n /** The first frame is ready to show. */\n | { readonly type: 'ready' }\n /** A looping video is about to end (`seconds` left); the owner may fade out. */\n | { readonly type: 'nearEnd'; readonly seconds: number }\n /** A looping video restarted from the beginning; the owner may fade back in. */\n | { readonly type: 'looped' }\n /** Playback failed; the owner falls back to the slide image. */\n | { readonly type: 'error'; readonly error: unknown };\n\n/** Options of {@link G9MediaProvider.createPlayer}. */\nexport interface G9MediaPlayerOptions {\n readonly loop?: boolean;\n readonly muted?: boolean;\n /** Best-effort seek applied once after the media opened (MAUI `InitialVideoStartSeconds`). */\n readonly startSeconds?: number;\n /** How early `nearEnd` fires, in seconds. */\n readonly nearEndSeconds?: number;\n}\n\n/**\n * One video player created by the app's media provider. `view` is what the control renders (the platform video\n * XElement the host registered, built by the app); the control never names a video tag itself.\n */\nexport interface G9MediaPlayer {\n /** The element to render (a ReactNode built by the app's provider; foundation keeps it opaque). */\n readonly view: unknown;\n play(): void;\n pause(): void;\n /** Releases the native player; idempotent. */\n dispose(): void;\n /** Subscribes to player events; returns the unsubscribe function. */\n subscribe(listener: (event: G9MediaPlayerEvent) => void): () => void;\n}\n\n/**\n * Resolves image and video sources for IntroCarousel and other media controls (WP09). Video is part of the contract on\n * every target, desktop included (decision D14 is open; no scope reduction is accepted). A provider that cannot play\n * video yet omits `createPlayer` or returns `false` from `supportsVideo`; controls then show the slide image and say\n * why (`'video-unsupported'`).\n */\nexport interface G9MediaProvider {\n resolve(source: G9MediaSource, options?: { readonly signal?: G9AbortSignal }): Promise<G9ResolvedMedia>;\n /** Whether this target can play video now (no permission prompt). Absent = `createPlayer` decides. */\n supportsVideo?(): boolean;\n /** Creates a player for a resolved video. The control disposes it on slide change, deactivation and unmount. */\n createPlayer?(media: G9ResolvedMedia, options?: G9MediaPlayerOptions): G9MediaPlayer;\n}\n\n/** A file the host picked or received (a handle: read and release it through the host's own files API). */\nexport interface G9FileRef {\n readonly id: string;\n readonly name?: string;\n readonly mime?: string;\n readonly size?: number;\n}\n\n/**\n * The system file chooser and camera (G9Hub `platform().files`). Optional: without it `G9DropZone` shows its area\n * disabled. A host that can drop files on the window emits `g9:drag` `{ active }` and `g9:drop` `{ files }`.\n */\nexport interface G9FilePicker {\n /** Opens the chooser filtered by category; resolves `[]` when cancelled. */\n pick(options: {\n readonly accept: 'image' | 'video' | 'media' | 'audio' | 'any';\n readonly multiple: boolean;\n }): Promise<readonly G9FileRef[]>;\n /** One photo from the camera, or `null` when cancelled. */\n camera?(options: { readonly mode: 'photo'; readonly facing?: 'user' | 'environment' }): Promise<G9FileRef | null>;\n /** Gives a file the app will not use back to the host. */\n release?(id: string): void;\n}\n\n/** Safe-area insets in logical pixels. */\nexport interface G9SafeInsets {\n readonly top: number;\n readonly end: number;\n readonly bottom: number;\n readonly start: number;\n}\n\n/** Android soft-input policy while a flow needs it (MAUI `G9KeyboardHelper.UseAndroidPanSoftInputMode`). */\nexport type G9SoftInputMode = 'pan' | 'resize';\n\n/**\n * Host integration the provider and overlays need (MAUI page/window plumbing), supplied by the native host. Required.\n * The system back press does not go through this object: the host sends a global event (default `g9:back`, specs/02\n * §4) and the provider dispatches it to the active `G9Host`; `exit` is what happens when nothing handled it.\n */\nexport interface G9HostServices {\n /** Leaves the app the platform way (Android moves the task to the back; desktop closes the window). */\n exit(): void;\n /** Hides the soft keyboard and clears focus (MAUI `G9KeyboardHelper.HideKeyboardAndClearFocus`). */\n hideKeyboard(): void;\n /** Current safe-area insets. */\n getSafeInsets(): G9SafeInsets;\n /** Called when the insets change (rotation, window resize). Returns an unsubscribe function. */\n subscribeSafeInsets(listener: (insets: G9SafeInsets) => void): () => void;\n /**\n * Switches the window's soft-input mode (Android only; `'resize'` is the app default). Hosts on platforms without\n * soft-input modes (iOS, desktop) omit it, which is where MAUI's helper was a no-op too.\n */\n setSoftInputMode?(mode: G9SoftInputMode): void;\n /**\n * Hears whether a G9 text input has the focus (true when the first one takes it, false when the last one lets it\n * go), for a host that handles keys itself: its single-key shortcuts stay quiet while the person types (G9Hub 126,\n * 2.6.10). Optional; the app reads the same from `g9TextFocus` / `useG9TextFocused`.\n */\n textFocus?(focused: boolean): void;\n}\n\n/** Every service the app can supply. Required ones are listed in {@link g9RequiredCapabilities}. */\nexport interface G9Capabilities {\n readonly clock: G9Clock;\n readonly preferences: G9PreferenceStore;\n readonly host: G9HostServices;\n readonly speech?: G9SpeechToText;\n readonly scanner?: G9Scanner;\n readonly media?: G9MediaProvider;\n /**\n * The router places declare themselves to (`@g9tm/lynxcontrols/route` makes one). Optional: without it sheets, tab views\n * and hosts work as before and a `route` option only reports a one-time diagnostics warning.\n */\n readonly route?: G9RouteSink;\n /** Haptic feedback (optional: without it controls stay silent). */\n readonly haptics?: G9Haptics;\n /** Sound feedback (optional). */\n readonly sounds?: G9Sounds;\n /** The file chooser and camera (optional: `G9DropZone`). */\n readonly files?: G9FilePicker;\n}\n\n/** The name of a capability. */\nexport type G9CapabilityName = keyof G9Capabilities;\n\n/** Capabilities without which the provider cannot mount. */\nexport const g9RequiredCapabilities: ReadonlyArray<G9CapabilityName> = Object.freeze(['clock', 'preferences', 'host']);\n\n/** Thrown when code needs a capability the app did not supply (specs/03 §7: `G9CapabilityMissingError('speech')`). */\nexport class G9CapabilityMissingError extends G9Error {\n /** The missing capability. */\n readonly capability: string;\n\n constructor(capability: string, message?: string) {\n super('capability-missing', message ?? `The '${capability}' service is not available; supply it to G9Provider.`);\n this.name = 'G9CapabilityMissingError';\n this.capability = capability;\n }\n}\n\n/** `true` when the capability is present (optional features use this to hide themselves). */\nexport function hasCapability(services: Partial<G9Capabilities>, name: G9CapabilityName): boolean {\n return services[name] != null;\n}\n\n/** The capability, or throws {@link G9CapabilityMissingError} naming it. */\nexport function requireCapability<K extends G9CapabilityName>(\n services: Partial<G9Capabilities>,\n name: K,\n): NonNullable<G9Capabilities[K]> {\n const service = services[name];\n if (service == null) throw new G9CapabilityMissingError(name);\n return service as NonNullable<G9Capabilities[K]>;\n}\n\n/**\n * Checks every required capability at once (the provider calls this at mount).\n * @throws {G9CapabilityMissingError} for the first missing one, in {@link g9RequiredCapabilities} order.\n */\nexport function assertRequiredCapabilities(services: Partial<G9Capabilities>): asserts services is G9Capabilities {\n for (const name of g9RequiredCapabilities) requireCapability(services, name);\n}\n"],"names":["g9RequiredCapabilities","Object","G9CapabilityMissingError","G9Error","capability","message","hasCapability","services","name","requireCapability","service","assertRequiredCapabilities"],"mappings":";;;;;;;;;;;AA2NO,MAAMA,yBAA0DC,OAAO,MAAM,CAAC;IAAC;IAAS;IAAe;CAAO;AAG9G,MAAMC,iCAAiCC;IAI5C,YAAYC,UAAkB,EAAEC,OAAgB,CAAE;QAChD,KAAK,CAAC,sBAAsBA,QAAAA,UAAAA,UAAW,CAAC,KAAK,EAAED,WAAW,oDAAoD,CAAC,GAHjH,uBAAS,cAAT;QAIE,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,UAAU,GAAGA;IACpB;AACF;AAGO,SAASE,cAAcC,QAAiC,EAAEC,IAAsB;IACrF,OAAOD,AAAkB,QAAlBA,QAAQ,CAACC,KAAK;AACvB;AAGO,SAASC,kBACdF,QAAiC,EACjCC,IAAO;IAEP,MAAME,UAAUH,QAAQ,CAACC,KAAK;IAC9B,IAAIE,AAAW,QAAXA,SAAiB,MAAM,IAAIR,yBAAyBM;IACxD,OAAOE;AACT;AAMO,SAASC,2BAA2BJ,QAAiC;IAC1E,KAAK,MAAMC,QAAQR,uBAAwBS,kBAAkBF,UAAUC;AACzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"derived.d.ts","sourceRoot":"","sources":["../../src/tokens/derived.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,KAAK,cAAc,EAAW,MAAM,YAAY,CAAC;AAC3E,OAAO,KAAK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AC3C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;CACnC,GAAG,cAAc,CAmBjB"}
@@ -35,6 +35,7 @@ function toDerivedCssVariables(theme) {
35
35
  vars['--g9-switch-track-off'] = dark ? p.SurfaceContainerHighest : p.OutlineVariant;
36
36
  vars['--g9-switch-thumb-on'] = dark ? p.OnPrimaryContainer : p.OnPrimary;
37
37
  vars['--g9-switch-thumb-off'] = dark ? p.OnSurfaceVariant : p.Surface;
38
+ vars['--g9-field-notch-background'] = p.Background;
38
39
  return vars;
39
40
  }
40
41
  export { g9Derived, g9GradientTokens, toDerivedCssVariables };
@@ -1 +1 @@
1
- {"version":3,"file":"tokens/derived.js","sources":["../../src/tokens/derived.ts"],"sourcesContent":["// Derived colour variables: the few colours controls used to compute in script from the palette (a gradient's top and\n// bottom, a tinted stroke, a scheme-dependent switch colour). The provider writes them beside the token variables, so a\n// control paints with `var(...)` only and never re-renders for a theme change (a theme switch re-rendered every button\n// on the page: ~100 ms on a Galaxy A21s, 2026-11-18).\nimport { applyAlpha, darken, formatColor, lighten, mix } from '../theme/color';\nimport { cssVariableName, type G9CssVariables, g9Token } from './css-vars';\nimport type { G9ColorToken, G9PaletteValues } from './generated/palettes';\n\n/** The tokens a solid button paints as a soft vertical gradient (MAUI `BuildSolidOrGradient`). */\nexport const g9GradientTokens = Object.freeze([\n 'Primary',\n 'Info',\n 'Success',\n 'Warning',\n 'Error',\n 'Tertiary',\n] as const satisfies readonly G9ColorToken[]);\n/** A colour token that has gradient stops (`--g9-<token>-grad-top` / `-grad-bottom`). */\nexport type G9GradientToken = (typeof g9GradientTokens)[number];\n\nconst TRANSPARENT = '#00000000';\n\n/** The derived variables, as `var(...)` references (what controls write into their styles). */\nexport const g9Derived = Object.freeze({\n /** The lighter top stop of `token`'s button gradient. */\n gradientTop: (token: G9GradientToken): string => `var(${cssVariableName(token)}-grad-top)`,\n /** The darker bottom stop of `token`'s button gradient. */\n gradientBottom: (token: G9GradientToken): string => `var(${cssVariableName(token)}-grad-bottom)`,\n /** `token` as a top-to-bottom gradient (top, the colour at the middle, bottom). */\n gradient: (token: G9GradientToken): string =>\n `linear-gradient(to bottom, var(${cssVariableName(token)}-grad-top) 0%, ${g9Token(token)} 50%, var(${cssVariableName(token)}-grad-bottom) 100%)`,\n /** The tonal button's stroke: Primary mixed 65 % toward transparent. */\n tonalStroke: 'var(--g9-tonal-stroke)',\n /** Primary at 12 % / 38 % alpha (a header action's tint and border). */\n primaryA12: 'var(--g9-primary-a12)',\n primaryA38: 'var(--g9-primary-a38)',\n /** Switch colours, which differ by scheme (MAUI `G9Colors`). */\n switchTrackOn: g9Token('Primary'),\n switchTrackOff: 'var(--g9-switch-track-off)',\n switchThumbOn: 'var(--g9-switch-thumb-on)',\n switchThumbOff: 'var(--g9-switch-thumb-off)',\n});\n\n/** The derived variables' values for a resolved theme (the provider writes them with the token variables). */\nexport function toDerivedCssVariables(theme: {\n readonly palette: G9PaletteValues;\n readonly scheme: 'light' | 'dark';\n}): G9CssVariables {\n const p = theme.palette;\n const dark = theme.scheme === 'dark';\n const vars: Record<string, string> = {};\n for (const token of g9GradientTokens) {\n vars[`${cssVariableName(token)}-grad-top`] = formatColor(lighten(p[token], 0.08));\n vars[`${cssVariableName(token)}-grad-bottom`] = formatColor(darken(p[token], 0.08));\n }\n vars['--g9-tonal-stroke'] = formatColor(mix(p.Primary, TRANSPARENT, 0.65));\n vars['--g9-primary-a12'] = formatColor(applyAlpha(p.Primary, 0.12));\n vars['--g9-primary-a38'] = formatColor(applyAlpha(p.Primary, 0.38));\n vars['--g9-switch-track-off'] = dark ? p.SurfaceContainerHighest : p.OutlineVariant;\n vars['--g9-switch-thumb-on'] = dark ? p.OnPrimaryContainer : p.OnPrimary;\n vars['--g9-switch-thumb-off'] = dark ? p.OnSurfaceVariant : p.Surface;\n return vars;\n}\n"],"names":["g9GradientTokens","Object","TRANSPARENT","g9Derived","token","cssVariableName","g9Token","toDerivedCssVariables","theme","p","dark","vars","formatColor","lighten","darken","mix","applyAlpha"],"mappings":";;AASO,MAAMA,mBAAmBC,OAAO,MAAM,CAAC;IAC5C;IACA;IACA;IACA;IACA;IACA;CACD;AAID,MAAMC,cAAc;AAGb,MAAMC,YAAYF,OAAO,MAAM,CAAC;IAErC,aAAa,CAACG,QAAmC,CAAC,IAAI,EAAEC,gBAAgBD,OAAO,UAAU,CAAC;IAE1F,gBAAgB,CAACA,QAAmC,CAAC,IAAI,EAAEC,gBAAgBD,OAAO,aAAa,CAAC;IAEhG,UAAU,CAACA,QACT,CAAC,+BAA+B,EAAEC,gBAAgBD,OAAO,eAAe,EAAEE,QAAQF,OAAO,UAAU,EAAEC,gBAAgBD,OAAO,mBAAmB,CAAC;IAElJ,aAAa;IAEb,YAAY;IACZ,YAAY;IAEZ,eAAeE,QAAQ;IACvB,gBAAgB;IAChB,eAAe;IACf,gBAAgB;AAClB;AAGO,SAASC,sBAAsBC,KAGrC;IACC,MAAMC,IAAID,MAAM,OAAO;IACvB,MAAME,OAAOF,AAAiB,WAAjBA,MAAM,MAAM;IACzB,MAAMG,OAA+B,CAAC;IACtC,KAAK,MAAMP,SAASJ,iBAAkB;QACpCW,IAAI,CAAC,GAAGN,gBAAgBD,OAAO,SAAS,CAAC,CAAC,GAAGQ,YAAYC,QAAQJ,CAAC,CAACL,MAAM,EAAE;QAC3EO,IAAI,CAAC,GAAGN,gBAAgBD,OAAO,YAAY,CAAC,CAAC,GAAGQ,YAAYE,OAAOL,CAAC,CAACL,MAAM,EAAE;IAC/E;IACAO,IAAI,CAAC,oBAAoB,GAAGC,YAAYG,IAAIN,EAAE,OAAO,EAAEP,aAAa;IACpES,IAAI,CAAC,mBAAmB,GAAGC,YAAYI,WAAWP,EAAE,OAAO,EAAE;IAC7DE,IAAI,CAAC,mBAAmB,GAAGC,YAAYI,WAAWP,EAAE,OAAO,EAAE;IAC7DE,IAAI,CAAC,wBAAwB,GAAGD,OAAOD,EAAE,uBAAuB,GAAGA,EAAE,cAAc;IACnFE,IAAI,CAAC,uBAAuB,GAAGD,OAAOD,EAAE,kBAAkB,GAAGA,EAAE,SAAS;IACxEE,IAAI,CAAC,wBAAwB,GAAGD,OAAOD,EAAE,gBAAgB,GAAGA,EAAE,OAAO;IACrE,OAAOE;AACT"}
1
+ {"version":3,"file":"tokens/derived.js","sources":["../../src/tokens/derived.ts"],"sourcesContent":["// Derived colour variables: the few colours controls used to compute in script from the palette (a gradient's top and\n// bottom, a tinted stroke, a scheme-dependent switch colour). The provider writes them beside the token variables, so a\n// control paints with `var(...)` only and never re-renders for a theme change (a theme switch re-rendered every button\n// on the page: ~100 ms on a Galaxy A21s, 2026-11-18).\nimport { applyAlpha, darken, formatColor, lighten, mix } from '../theme/color';\nimport { cssVariableName, type G9CssVariables, g9Token } from './css-vars';\nimport type { G9ColorToken, G9PaletteValues } from './generated/palettes';\n\n/** The tokens a solid button paints as a soft vertical gradient (MAUI `BuildSolidOrGradient`). */\nexport const g9GradientTokens = Object.freeze([\n 'Primary',\n 'Info',\n 'Success',\n 'Warning',\n 'Error',\n 'Tertiary',\n] as const satisfies readonly G9ColorToken[]);\n/** A colour token that has gradient stops (`--g9-<token>-grad-top` / `-grad-bottom`). */\nexport type G9GradientToken = (typeof g9GradientTokens)[number];\n\nconst TRANSPARENT = '#00000000';\n\n/** The derived variables, as `var(...)` references (what controls write into their styles). */\nexport const g9Derived = Object.freeze({\n /** The lighter top stop of `token`'s button gradient. */\n gradientTop: (token: G9GradientToken): string => `var(${cssVariableName(token)}-grad-top)`,\n /** The darker bottom stop of `token`'s button gradient. */\n gradientBottom: (token: G9GradientToken): string => `var(${cssVariableName(token)}-grad-bottom)`,\n /** `token` as a top-to-bottom gradient (top, the colour at the middle, bottom). */\n gradient: (token: G9GradientToken): string =>\n `linear-gradient(to bottom, var(${cssVariableName(token)}-grad-top) 0%, ${g9Token(token)} 50%, var(${cssVariableName(token)}-grad-bottom) 100%)`,\n /** The tonal button's stroke: Primary mixed 65 % toward transparent. */\n tonalStroke: 'var(--g9-tonal-stroke)',\n /** Primary at 12 % / 38 % alpha (a header action's tint and border). */\n primaryA12: 'var(--g9-primary-a12)',\n primaryA38: 'var(--g9-primary-a38)',\n /** Switch colours, which differ by scheme (MAUI `G9Colors`). */\n switchTrackOn: g9Token('Primary'),\n switchTrackOff: 'var(--g9-switch-track-off)',\n switchThumbOn: 'var(--g9-switch-thumb-on)',\n switchThumbOff: 'var(--g9-switch-thumb-off)',\n});\n\n/** The derived variables' values for a resolved theme (the provider writes them with the token variables). */\nexport function toDerivedCssVariables(theme: {\n readonly palette: G9PaletteValues;\n readonly scheme: 'light' | 'dark';\n}): G9CssVariables {\n const p = theme.palette;\n const dark = theme.scheme === 'dark';\n const vars: Record<string, string> = {};\n for (const token of g9GradientTokens) {\n vars[`${cssVariableName(token)}-grad-top`] = formatColor(lighten(p[token], 0.08));\n vars[`${cssVariableName(token)}-grad-bottom`] = formatColor(darken(p[token], 0.08));\n }\n vars['--g9-tonal-stroke'] = formatColor(mix(p.Primary, TRANSPARENT, 0.65));\n vars['--g9-primary-a12'] = formatColor(applyAlpha(p.Primary, 0.12));\n vars['--g9-primary-a38'] = formatColor(applyAlpha(p.Primary, 0.38));\n vars['--g9-switch-track-off'] = dark ? p.SurfaceContainerHighest : p.OutlineVariant;\n vars['--g9-switch-thumb-on'] = dark ? p.OnPrimaryContainer : p.OnPrimary;\n vars['--g9-switch-thumb-off'] = dark ? p.OnSurfaceVariant : p.Surface;\n // the floated field label's notch on the page (a literal: native Lynx does not resolve a custom property whose value\n // is var(); a container of another colour sets its own literal, g9FieldNotchStyle). G9Hub, Android: the outline ran\n // through the label (2.6.10)\n vars['--g9-field-notch-background'] = p.Background;\n return vars;\n}\n"],"names":["g9GradientTokens","Object","TRANSPARENT","g9Derived","token","cssVariableName","g9Token","toDerivedCssVariables","theme","p","dark","vars","formatColor","lighten","darken","mix","applyAlpha"],"mappings":";;AASO,MAAMA,mBAA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GAAGA,EAAE,SAAS;IACxEE,IAAI,CAAC,wBAAwB,GAAGD,OAAOD,EAAE,gBAAgB,GAAGA,EAAE,OAAO;IAIrEE,IAAI,CAAC,8BAA8B,GAAGF,EAAE,UAAU;IAClD,OAAOE;AACT"}
package/docs/api.md CHANGED
@@ -279,6 +279,7 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
279
279
  | `formatAgoWithTime` | function | The phrase joined with the wall-clock time, e.g. `'6 h ago - 14:19'` (MAUI `FormatAgoWithTime`, the history timeline format). The time is `HH:mm` in the culture's digits at `utcOffsetMinutes`. |
280
280
  | `formatCompact` | function | A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole. |
281
281
  | `formatCoordinates` | function | A position as «lat، lon» that can never read as one number (AgriPad F-401: «۳۴٫۸۰۴۲,۵۰٫۴۱۶۰»): each number in the culture's digits and decimal separator, no grouping, a fixed number of decimals, the culture's list separator between them, the whole left-to-right isolated so RTL text keeps latitude first. `formatCoordinates(34.80421, 50.41603, { numberingSystem: 'persian' })` → `'⁦۳۴٫۸۰۴۲، ۵۰٫۴۱۶۰⁩'`. |
282
+ | `formatCountOf` | function | A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left, «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did). Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through. |
282
283
  | `formatIsoDate` | function | `YYYY-MM-DD`. |
283
284
  | `formatIsoDateTime` | function | `YYYY-MM-DDTHH:mm:ss.sss` (no zone). |
284
285
  | `formatLocalDateTime` | function | Writes a date or date-time with a .NET-style custom pattern, without Intl: `yyyy yy y`, `MMMM MMM MM M`, `dddd ddd dd d`, `HH H hh h`, `mm m`, `ss s`, `fff ff f`, `tt t`; `'quoted'`/`"quoted"` text and `\x` are literal; other non-letters (`/ : . - space`) are written as is. Names and AM/PM come from the culture's language (fa/ar/en); digits from its numbering system. A date without time formats as midnight. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/lynxcontrols-foundation",
3
- "version": "2.6.8",
3
+ "version": "2.6.10",
4
4
  "description": "Pure TypeScript core: design tokens, theme model, culture (strings, digits, calendars, relative time, durations), icon model, safe execution, diagnostics, preference and capability contracts. No React, no UI.",
5
5
  "license": "MIT",
6
6
  "type": "module",