@cloudflare/kumo 2.13.2 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +2 -2
- package/ai/component-registry.json +548 -8
- package/ai/component-registry.md +853 -19
- package/ai/schemas.ts +90 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +311 -69
- package/dist/ai/schemas.js +185 -23
- package/dist/catalog.d.ts +11 -11
- package/dist/chunks/{AlertDialogTrigger-k3f8nevrda6awa4s.js → AlertDialogTrigger-dkihgpvj12si73w3.js} +5 -5
- package/dist/chunks/{AutocompleteItem-ksckpihly1c23f3j.js → AutocompleteItem-drxau0wm3735nihq.js} +17 -29
- package/dist/chunks/AutocompleteSeparator-hqtaxxxye1rfezfg.js +12 -0
- package/dist/chunks/{Button-oczevl8g75m85ew9.js → Button-ccl5r1xlbe3gh998.js} +3 -3
- package/dist/chunks/{CSPContext-guqghj8kxoukvlky.js → CSPContext-ctyrgg64girv38ls.js} +1 -7
- package/dist/chunks/{CSPProvider-f3it239kgztzgryk.js → CSPProvider-p9ensukmowjpkgc0.js} +2 -2
- package/dist/chunks/{CheckboxGroup-g5xn5gnq8ocqyoum.js → CheckboxGroup-knvypu2d1s0iz86k.js} +63 -45
- package/dist/chunks/{CheckboxGroupContext-f9wox07n2u5moq4h.js → CheckboxGroupContext-lgc9dwxou662i6zo.js} +3 -5
- package/dist/chunks/{CheckboxRoot-o5bfpje6e4p6pdgm.js → CheckboxIndicator-n982pbktfkxsa5zz.js} +128 -132
- package/dist/chunks/{CollapsiblePanel-e80n35tnsb2cskt9.js → CollapsiblePanel-jm0ni90g7wz7ppkc.js} +33 -36
- package/dist/chunks/{ComboboxClear-glm805v81uaaf3su.js → ComboboxClear-c2kvjkh9yc6xfl38.js} +83 -98
- package/dist/chunks/{ComboboxEmpty-hwv2kjxnf9un635e.js → ComboboxEmpty-o0q20j2l2syar9kx.js} +662 -586
- package/dist/chunks/{ComboboxPopup-fx7xex6g75t9u0gm.js → ComboboxPopup-oxgggc2wxy6bfmru.js} +57 -57
- package/dist/chunks/{CompositeItem-l7zee38lq5m224d5.js → CompositeItem-hzuk5x3e5zsfgnyj.js} +4 -7
- package/dist/chunks/CompositeList-lbr4enu6yzek7oa9.js +180 -0
- package/dist/chunks/{CompositeListContext-oetjj2x8li8678as.js → CompositeListContext-m9frxn53kkmr23d0.js} +2 -5
- package/dist/chunks/{CompositeRoot-l6ot8jo0umdics5m.js → CompositeRoot-g72lchaerolf5dc9.js} +61 -63
- package/dist/chunks/{CompositeRootContext-ofhzmevv7hadjhyy.js → CompositeRootContext-ixz4myr7uwvavx6w.js} +1 -1
- package/dist/chunks/DialogHandle-klk7uo1q1y8ghyx5.js +68 -0
- package/dist/chunks/{DialogPopup-mp89aob2nown2akq.js → DialogPopup-olsvyf7ulia6ekb1.js} +28 -71
- package/dist/chunks/DialogRoot-hl3genvzl9h8ridm.js +16 -0
- package/dist/chunks/{DialogTrigger-cmok07cf3ks0kzug.js → DialogTrigger-g44cuem7n4wez533.js} +23 -20
- package/dist/chunks/DialogViewport-e1tqfisqexc7o9z8.js +42 -0
- package/dist/chunks/{DirectionContext-jc1g0w645603sd6p.js → DirectionContext-opvqcb794uxicri4.js} +1 -4
- package/dist/chunks/{DirectionProvider-ihtfgxd5qpm6oth1.js → DirectionProvider-er2gibtc9a1f0kep.js} +2 -2
- package/dist/chunks/DrawerViewport-eqzib92gukr4qap3.js +1483 -0
- package/dist/chunks/{FieldControl-oz007qbkl6ejp7di.js → FieldControl-c5sahhd5xg3nr2x7.js} +58 -31
- package/dist/chunks/{FieldDescription-ju607ea6gwgzga8p.js → FieldDescription-ldfiii5bvssfib3d.js} +13 -12
- package/dist/chunks/{FieldItemContext-j85dc0ihramj5ezs.js → FieldItemContext-kpsmvqm5a98m8zpx.js} +1 -1
- package/dist/chunks/FieldLabel-j9teqs9f1exqv346.js +351 -0
- package/dist/chunks/{FieldsetLegend-j5piwq1giyhrr8s4.js → FieldsetLegend-jyy40ylt2ynkvgob.js} +7 -14
- package/dist/chunks/{FieldsetRootContext-b633e9uzilttuyfi.js → FieldsetRootContext-7nlstw7wronafxhw.js} +1 -1
- package/dist/chunks/{FloatingPortalLite-mlt7ztrvhzepwi5y.js → FloatingPortalLite-da0wdcmem7ahkle6.js} +3 -3
- package/dist/chunks/{FloatingTree-oosjswl1s9q4obvg.js → FloatingTree-lhdqtlu8s6m66n7l.js} +6 -6
- package/dist/chunks/Form-fjfbann47c7ws316.js +113 -0
- package/dist/chunks/{FormContext-xz0b4h7ue30fkkn1.js → FormContext-bsu99v8i8pwu1yxc.js} +4 -3
- package/dist/chunks/{Input-ovqfhsmpfcrg5czm.js → Input-irwtufp5t73pwnoj.js} +2 -2
- package/dist/chunks/{LabelableContext-hetas2e4y0kywfas.js → LabelableContext-ccxbhu73vrk089m1.js} +18 -45
- package/dist/chunks/ListboxSeparator-nfyv54r2v5qtmosj.js +21 -0
- package/dist/chunks/{MenuBackdrop-dlntmavtopj7wv0l.js → MenuBackdrop-ouznwyglg27bosoj.js} +7 -12
- package/dist/chunks/{MenuSubmenuTrigger-fzubf5xr7ohsgsi7.js → MenuSubmenuTrigger-mbbda6ucik6nphbq.js} +378 -292
- package/dist/chunks/{MenuTrigger-ntugq34yppc8ouwe.js → MenuTrigger-disngqnt74owi30p.js} +32 -41
- package/dist/chunks/{Menubar-d57cyjuztbge4dvv.js → Menubar-fluuxyn8c2zuz5pr.js} +12 -23
- package/dist/chunks/{MenubarContext-ei2r6vu6lmsspozo.js → MenubarContext-blatefsj42br7jh8.js} +1 -1
- package/dist/chunks/{MeterLabel-c40b0q8r81cftkjj.js → MeterLabel-k6no448jvaidaptf.js} +15 -18
- package/dist/chunks/NullStore-jwgpmovsgl47g9bv.js +109 -0
- package/dist/chunks/{PopoverClose-e91n3nkw16qnyese.js → PopoverClose-kpyt8hbqc52lnjb8.js} +183 -190
- package/dist/chunks/PrehydrationScript-j6zlrxmojrqni6b9.js +63 -0
- package/dist/chunks/{RadioGroup-lsix4haqxfigpuv8.js → RadioGroup-pok1e5qbnbujrz1e.js} +38 -35
- package/dist/chunks/{RadioGroupContext-ft0nndmzqynjz8a2.js → RadioGroupContext-galfnl2el7y2krov.js} +1 -1
- package/dist/chunks/{RadioIndicator-mwkahpwyqfc6yk1i.js → RadioIndicator-jd511oajbwmyjxbg.js} +49 -102
- package/dist/chunks/{ScrollAreaThumb-kmhan411yxfo0362.js → ScrollAreaThumb-eed3hf0pmrblshfw.js} +298 -385
- package/dist/chunks/{SelectGroupLabel-m4h5hrft9043nsd1.js → SelectSeparator-mrjooj7vmjez6fua.js} +447 -502
- package/dist/chunks/{Separator-b8wf5rea6m1cei8k.js → Separator-bcm4ezllqxvtpvuj.js} +2 -2
- package/dist/chunks/{SwitchRoot-e3hnyh3mf8qd30hj.js → SwitchRoot-gahuqddsq1s55p8m.js} +40 -85
- package/dist/chunks/{TabsList-c0inft3sf8gi2o4v.js → TabsList-ebl0v8gu8wn28zss.js} +204 -175
- package/dist/chunks/{Toggle-c8p9m3puz8l4mav7.js → Toggle-mbshs50266z9hgxp.js} +12 -13
- package/dist/chunks/{ToggleGroup-xz9zrh7t1htn6ht4.js → ToggleGroup-k2caz2ghv6zbzp5l.js} +13 -38
- package/dist/chunks/{ToggleGroupContext-cdk2zo6ciddpockn.js → ToggleGroupContext-h4v7jaf77rp2xng9.js} +3 -5
- package/dist/chunks/{ToolbarGroupContext-nriz3632ymugfj6h.js → ToolbarGroupContext-e5cg7needj0edodc.js} +3 -5
- package/dist/chunks/{ToolbarInput-er5t9irqvuwcjrir.js → ToolbarInput-i4h95tes75w0p5y2.js} +28 -33
- package/dist/chunks/{ToolbarRootContext-lvi96r1vvs93rhde.js → ToolbarRootContext-eqk40r8uh4h6r211.js} +1 -1
- package/dist/chunks/{TooltipPopup-l2zrbjavf1cqclfx.js → TooltipPopup-dm4y0hbdeylzp22y.js} +125 -127
- package/dist/chunks/{TooltipProvider-eyhgia63aq2x4frl.js → TooltipProvider-h40qf9wcn0atj15v.js} +14 -17
- package/dist/chunks/adaptiveOriginMiddleware-b8ztjthe278xq7lm.js +51 -0
- package/dist/chunks/{addEventListener-lhqvk2ahlzjsanyg.js → addEventListener-l40nxvf06iukgvnj.js} +1 -1
- package/dist/chunks/areArraysEqual-bcx201k1x9ziizym.js +15 -0
- package/dist/chunks/{autocomplete-dn6g4rc8bktdl4an.js → autocomplete-m6h1pbygknrz5div.js} +7 -7
- package/dist/chunks/{badge-xw5ydgdjx2o5qxbl.js → badge-dq8bx752b9dp7dst.js} +2 -1
- package/dist/chunks/{banner-n1ekcvrwashsgv93.js → banner-msnmqm7of2lck01x.js} +2 -2
- package/dist/chunks/{breadcrumbs-ffwe8tzqzmpyikq5.js → breadcrumbs-lhi1qrdh74mb4zsx.js} +4 -3
- package/dist/chunks/button-group-i9dh83xutyuxyry7.js +59 -0
- package/dist/chunks/{button-h36q7tklakhd38nx.js → button-pa1bq9b85hawg41a.js} +1 -1
- package/dist/chunks/{chart-qmls2klknm1pd6hs.js → chart-kd1xd6crso2i956o.js} +936 -49
- package/dist/chunks/{checkbox-jachq6akfh72x12r.js → checkbox-lbo436duy7krxcsk.js} +6 -7
- package/dist/chunks/clamp-jcjhzx71s6wt1rnc.js +7 -0
- package/dist/chunks/{clipboard-text-ms46uaujvkjmjnng.js → clipboard-text-gd6s3n1bqse9zgt8.js} +5 -5
- package/dist/chunks/{collapsible-jyajpe40jcca357s.js → collapsible-l8g94on4w7qfosmn.js} +1 -1
- package/dist/chunks/{combobox-hxarufzb1z61xnbv.js → combobox-hdxtsm2gqcxxgfju.js} +12 -11
- package/dist/chunks/{command-palette-iomiziccabzh4ogg.js → command-palette-crtm3nd32yjhuax1.js} +7 -7
- package/dist/chunks/{composite-o65hjzwwzb4kvl4w.js → composite-ab8dmdfoj6tmhcn1.js} +9 -21
- package/dist/chunks/{constants-j09lrtg73n4vlx5x.js → constants-flxfd6q03phtu007.js} +1 -1
- package/dist/chunks/{core-kjfqbvgicl9i3abf.js → core-n0de50o00ej2ecfe.js} +69 -55
- package/dist/chunks/createBaseUIEventDetails-3ob3qgs95ffm8l0w.js +49 -0
- package/dist/chunks/{ComboboxChipRemove-ksyozjezihhstmbu.js → createItems-b8n8vigg5nak6j9s.js} +113 -57
- package/dist/chunks/{createToastManager-kv89sv0xhhsvmq54.js → createToastManager-onmoqrmr8zo02rif.js} +305 -357
- package/dist/chunks/{css-d3t41yfupsmz7l1a.js → css-j501gxq1am2gnikh.js} +1 -1
- package/dist/chunks/{date-picker-fwe3vllwco4u1utz.js → date-picker-cotkexrpqu5tjikv.js} +54 -49
- package/dist/chunks/{date-range-picker-iymdx410i1hpvxai.js → date-range-picker-i6d8y1yemm7x5ins.js} +15 -14
- package/dist/chunks/{dialog-o0164pgcyc74lvp9.js → dialog-glpnivujociqs9lh.js} +13 -10
- package/dist/chunks/{dropdown-d5qrzj1w1a96w2we.js → dropdown-m53ji1d66mws89wh.js} +4 -4
- package/dist/chunks/{empty-ox60d384lkwbj5n4.js → empty-hkvg3is3uc6dj1at.js} +46 -38
- package/dist/chunks/{engine-io35xsj9fgfxtihg.js → engine-g5egnkub1ikv3wvy.js} +2 -2
- package/dist/chunks/{engine-javascript-d795u677f1802oaf.js → engine-javascript-e9xj8hhz9xfqhpnu.js} +200 -185
- package/dist/chunks/{engine-oniguruma-xjlw46ay321yj1av.js → engine-oniguruma-ias56ildu01gf939.js} +8 -7
- package/dist/chunks/error-f4f6l13zx6tynxmy.js +6 -0
- package/dist/chunks/{field-kgz7w7yixmtpg010.js → field-oqtso1v0oszlxi0e.js} +3 -3
- package/dist/chunks/{flow-fmfb3ri8cxo7w9ci.js → flow-iz8sn24h5q6q4b10.js} +76 -60
- package/dist/chunks/formatNumber-kcnmauoqxku5a84c.js +21 -0
- package/dist/chunks/{getCssDimensions-mi941fe1jvztqm6b.js → getCssDimensions-olosvhh5husavesv.js} +2 -2
- package/dist/chunks/getElementTransform-cuiqmjglkrz4db6c.js +38 -0
- package/dist/chunks/{getPseudoElementBounds-jg72lmrlwgbqhmjh.js → getPseudoElementBounds-x7b9uqi5hdb1lq2r.js} +13 -4
- package/dist/chunks/{github-light-kb466scjoy42qxpu.js → github-light-hir7yctc38258pwt.js} +1 -1
- package/dist/chunks/{graphql-gtqr4wytdf0qjybo.js → graphql-n9vlzkvcp2j19p7a.js} +1 -1
- package/dist/chunks/{html-ijyj3f9k0foag15c.js → html-nimj6ljkkifnc9ni.js} +2 -2
- package/dist/chunks/{index.parts-i4iu310eo65d7lfc.js → index.parts-b9zmk3ta77w8dy9f.js} +86 -34
- package/dist/chunks/{index.parts-mr7tgwe4pgfozkt5.js → index.parts-bq90erougcgrwlgk.js} +47 -50
- package/dist/chunks/{index.parts-7z8hqx6zl9yajzvs.js → index.parts-c1ocmbxanagpan6d.js} +206 -366
- package/dist/chunks/{index.parts-nd3mitrhxf806lsa.js → index.parts-cc0yi5vo7s4x3r9p.js} +140 -145
- package/dist/chunks/{index.parts-j2ecf25zajyd5ia3.js → index.parts-cdxa6fwtp3lpkpp4.js} +2 -2
- package/dist/chunks/{index.parts-komdbdvf823cm5jw.js → index.parts-cl2xux9bjec6cibd.js} +14 -11
- package/dist/chunks/{index.parts-bv57na43ve93uz3x.js → index.parts-d4wim8mcnl9a2n9d.js} +67 -36
- package/dist/chunks/{index.parts-gslyp9n88qdh38n1.js → index.parts-e9s1lqq3qa9l6ndm.js} +2 -2
- package/dist/chunks/{index.parts-i4lbjqdnhsnjtny6.js → index.parts-eks3uafpskcxle6j.js} +33 -22
- package/dist/chunks/{index2.parts-kiwz8e3k8utvm4zb.js → index.parts-fbip2x29k5okvypg.js} +9 -12
- package/dist/chunks/index.parts-fhza3s183grld7zq.js +102 -0
- package/dist/chunks/{index.parts-lz9cnngidxppvhz7.js → index.parts-ftxrjoy00esi3aau.js} +27 -40
- package/dist/chunks/{index.parts-kt0w73ciea6adi2i.js → index.parts-g390bxx23hdko02m.js} +2 -2
- package/dist/chunks/{index.parts-fl4zaorc97ed3keb.js → index.parts-gf9v1piz8xxt8ap1.js} +197 -244
- package/dist/chunks/{index.parts-ef9111sjk9e3al87.js → index.parts-h7wtkrxpz4m8eqn9.js} +63 -83
- package/dist/chunks/index.parts-hmx3qlh517ii56yi.js +116 -0
- package/dist/chunks/{index2.parts-mv7x6w0p2splvf6b.js → index.parts-i6gbeimeit8gzhvi.js} +2 -2
- package/dist/chunks/{index.parts-gj1k50tf9fcs7nru.js → index.parts-ioii4acz2bjrf6sb.js} +17 -21
- package/dist/chunks/{index.parts-i5twygaksh86erb7.js → index.parts-iq66xivmdw2mouvx.js} +7 -6
- package/dist/chunks/{index.parts-hxjt52jbictdzgad.js → index.parts-j6kbr29a542ya81m.js} +275 -388
- package/dist/chunks/{index.parts-lhpuh6pw7rjcddnl.js → index.parts-jjup1zgnozoxi7ky.js} +41 -57
- package/dist/chunks/index.parts-jknln7yxhdokkvd6.js +991 -0
- package/dist/chunks/{index.parts-nzwjx603vcq1kryz.js → index.parts-jpm6c0fe0gyky12m.js} +22 -54
- package/dist/chunks/{index.parts-jmb5ztstw4xlfyp9.js → index.parts-kgiqby97w6tn6jw7.js} +15 -20
- package/dist/chunks/{index.parts-c5yto0l67i7ok5fd.js → index.parts-lpafjiz853r94ydb.js} +59 -59
- package/dist/chunks/{index.parts-cpviii2nt413tb8k.js → index.parts-moguar0t0u4aumou.js} +6 -5
- package/dist/chunks/{index.parts-ieuelcd4z5e0mcb7.js → index.parts-mw0e646n3qp6v1qe.js} +11 -11
- package/dist/chunks/{index.parts-nc6jzjq91z2nye75.js → index.parts-olcmo45gi8e1qma1.js} +2 -3
- package/dist/chunks/{index.parts-bmzuqorz0tmneh7t.js → index.parts-p2lcxzhh1ll3584m.js} +41 -39
- package/dist/chunks/{inertValue-f9pgp32jxnm88df3.js → inertValue-e0o6qvuef83v78fk.js} +2 -2
- package/dist/chunks/inline-copy-text-gbd7jhwpor27l4rq.js +104 -0
- package/dist/chunks/{input-pehjmr1q131tz38w.js → input-c8lv9ulv0kortliq.js} +2 -2
- package/dist/chunks/{input-group-kshukialqry0fmra.js → input-group-fjr4r5ax0x78ppax.js} +10 -7
- package/dist/chunks/{input-ikfimmpl5sngvh9s.js → input-h5ox92gf13ge04hp.js} +11 -10
- package/dist/chunks/{isElementDisabled-ffsy1y4adxocmexb.js → isElementDisabled-o0j7po84u0xjuwgg.js} +1 -1
- package/dist/chunks/{label-ie2gpde0nco1avi7.js → label-gzyfw17u08irhdo8.js} +2 -2
- package/dist/chunks/{layer-card-dnikj7emx8qeaspz.js → layer-card-idh3863vdgprgqai.js} +5 -3
- package/dist/chunks/layer-dialog-j5ywmzs46ccg6oqy.js +381 -0
- package/dist/chunks/{link-gp4swsrd3vfnvori.js → link-cqyfjezntvr53rh7.js} +2 -2
- package/dist/chunks/locale-provider-kjlnws7jln3ak0dr.js +29 -0
- package/dist/chunks/{menubar-ljbsj2ulayebjyza.js → menubar-fjhotkmndttb8mua.js} +13 -12
- package/dist/chunks/{mergeCleanups-pexn3wul6a4zn873.js → mergeCleanups-ix8l84cgutsbotpd.js} +1 -1
- package/dist/chunks/{meter-fl03ece4glrrzizj.js → meter-majprsslwmpbmkzg.js} +1 -1
- package/dist/chunks/{pagination-i3jewbdolgru0xnr.js → pagination-oaenm9t7ou3lmcgw.js} +2 -2
- package/dist/chunks/{popover-jal8z9sv176703lf.js → popover-hr0bfgg48xzjggky.js} +2 -2
- package/dist/chunks/popupHandle-7ghmro8a5uerjwu5.js +177 -0
- package/dist/chunks/{popupStoreUtils-jrxqkz5jmlijlr91.js → popupStoreUtils-i0y57dvmcnqrh4pv.js} +178 -101
- package/dist/chunks/{popupStateMapping-hdv48wmkzb2mqful.js → popupTriggerMap-ehv0fuhnmy59j3pn.js} +167 -193
- package/dist/chunks/{portal-provider-gznk6snyqj6egd6d.js → portal-provider-eveknxf26oudn7pp.js} +4 -0
- package/dist/chunks/{radio-gvy6ekh5hu9awlru.js → radio-35dx7y6rjrezbjsp.js} +4 -4
- package/dist/chunks/reason-parts-m5ishukzeux3q0pc.js +39 -0
- package/dist/chunks/{resolveAriaLabelledBy-h9qwvo10ftlj6t9k.js → resolveAriaLabelledBy-nc8mdie5shy87nsb.js} +1 -1
- package/dist/chunks/{resolveValueLabel-bq3nrzord518kp9q.js → resolveValueLabel-hpmsash3ektitvnb.js} +44 -10
- package/dist/chunks/{safePolygon-szbj0u31i6mpt36d.js → safePolygon-kmd5wsz26l4xtj6c.js} +35 -29
- package/dist/chunks/{safeReact-bavzz23j5tex60z2.js → safeReact-hpp4cck3y2s5jg75.js} +2 -2
- package/dist/chunks/scrollable-b6m9ze1u7ps0q1qn.js +34 -0
- package/dist/chunks/{select-ndqpqpmqtmn497rq.js → select-futox5zqr3r80y9a.js} +8 -9
- package/dist/chunks/{sensitive-input-jtbp3mvdynz9wewu.js → sensitive-input-cw33yncetxk3fbrl.js} +3 -3
- package/dist/chunks/{serializeValue-ci3kihruew64i36f.js → serializeValue-ipcakiw32jb7kany.js} +1 -1
- package/dist/chunks/{sidebar-icky50wdc2b1biw8.js → sidebar-in9zhvr473afsjpp.js} +104 -31
- package/dist/chunks/{skeleton-line-hlk5vauzo7xsalbo.js → skeleton-line-m9dyh126t9k07jvg.js} +8 -5
- package/dist/chunks/{sql-do9h6435gka97c4c.js → sql-hqp2eekl7qhmxe92.js} +1 -1
- package/dist/chunks/{stringifyLocale-cl8et9xf6zon4qbs.js → stringifyLocale-bxsgxdnzaef2vcar.js} +1 -1
- package/dist/chunks/{styles-dbhgpd8fm76fdfo3.js → styles-kl02oyrlnld7arja.js} +2 -2
- package/dist/chunks/{surface-ef2kr5pn7r1y3ipk.js → surface-irf0af2mfglu4p0j.js} +1 -1
- package/dist/chunks/{switch-oghrd7f6i5jqar59.js → switch-cqsvolm7h69z7vgg.js} +3 -3
- package/dist/chunks/{table-miggde3uqhhrd5at.js → table-yf8ul2e5nbemioi1.js} +1 -1
- package/dist/chunks/{tabs-mr2dsloqfe0io4a5.js → tabs-gf57qqf1wcclaejq.js} +1 -1
- package/dist/chunks/tag-input-ohfybx5dbxy3houy.js +139 -0
- package/dist/chunks/{text-jzp4mdlr222iuzxt.js → text-f1wxz183ckq7qtl7.js} +3 -2
- package/dist/chunks/{toast-g435fvt74w5orxqo.js → toast-bzaothy2yrezh787.js} +7 -6
- package/dist/chunks/{toolbar-e0b61hr6ys6dmwhv.js → toolbar-h213d8e22yjh5cwq.js} +6 -5
- package/dist/chunks/{tooltip-jq15p5jzgfrhslpo.js → tooltip-o4natsv01lpq8oq2.js} +3 -3
- package/dist/chunks/{useAnchoredPopupScrollLock-lbrqp1zm5z821z20.js → useAnchoredPopupScrollLock-kp3kai20u91sdm7v.js} +4 -4
- package/dist/chunks/{useAnimationFrame-ssgc72hyq6sg3yit.js → useAnimationFrame-0tt315hl9n3jzl86.js} +5 -4
- package/dist/chunks/{useAriaLabelledBy-bvw56m1d7czf0w3f.js → useAriaLabelledBy-ox8dum59shmgypq1.js} +3 -6
- package/dist/chunks/{useBaseUiId-gqkl5ep5pn6hd0rw.js → useBaseUiId-lg1teubxudgin0w2.js} +2 -2
- package/dist/chunks/{useButton-cpo6u2idqcnou6vy.js → useButton-h7s9aq1sfw6arawe.js} +56 -21
- package/dist/chunks/{useClick-fvwb39qgead2jyft.js → useClick-l0p0endoxrlp0ae5.js} +8 -7
- package/dist/chunks/{useCollapsiblePanel-bw63vwvq9a3sj73q.js → useCollapsiblePanel-g6t146nqj521pild.js} +60 -71
- package/dist/chunks/{useCompositeItem-esr3n4pmlssiuxuy.js → useCompositeItem-p7090ga00dpqcg5j.js} +4 -4
- package/dist/chunks/useCompositeListItem-odg6yo4h8866b37o.js +54 -0
- package/dist/chunks/{useControlled-nlx0kk1ksgk0auvi.js → useControlled-lfns1ot6kwowa4t4.js} +3 -3
- package/dist/chunks/{useDismiss-kbtx2o3ruyh3jwgn.js → useDismiss-me91ertzzz3gly12.js} +54 -23
- package/dist/chunks/useFieldValidation-e5pc8loiwzd68g4f.js +224 -0
- package/dist/chunks/{useFilteredItems-ns32d3hpp626kt73.js → useFilteredItems-kw2za6m9bng7twr0.js} +36 -38
- package/dist/chunks/{useFloatingRootContext-o6mk8fvodtbbm2v1.js → useFloatingRootContext-c849wtis7gx013m8.js} +7 -7
- package/dist/chunks/{useFocus-gdfx28bn90keg8cf.js → useFocus-lqwrnfa1svv3bcx1.js} +14 -10
- package/dist/chunks/{useForcedRerendering-el1fbg3ib5yo0v7k.js → useForcedRerendering-i3n4ms0xose8borh.js} +1 -1
- package/dist/chunks/{useId-l9soitgw3e4jk5ie.js → useId-f8w657f9yys10abm.js} +2 -2
- package/dist/chunks/{useLabel-nh9hf8h7o6oquqn5.js → useLabel-kcggu762z3z2taeb.js} +10 -9
- package/dist/chunks/useLabelableId-gqiiuqqn2k0u62r4.js +56 -0
- package/dist/chunks/{useListNavigation-jnxpvegv3ak857b1.js → useListNavigation-3nyjs362qcau34in.js} +51 -39
- package/dist/chunks/{useOnMount-j4wobeq47l3u9olo.js → useOnMount-hadwgyauanbzrvem.js} +3 -3
- package/dist/chunks/{useOpenChangeComplete-dpkex2e23s1evpol.js → useOpenChangeComplete-lk2gfu250t7r20c6.js} +48 -38
- package/dist/chunks/usePopupHandleStore-hx871cmn66j0q7wz.js +27 -0
- package/dist/chunks/{usePopupViewport-hu0kn0ziyf1vqzrs.js → usePopupViewport-iy5j9zawjrr3pcs0.js} +89 -57
- package/dist/chunks/{usePositioner-fz9uswhkhg22lo42.js → usePositioner-k9nc7cl550bgfwzs.js} +151 -142
- package/dist/chunks/{usePreviousValue-le0grv8f43vmunn1.js → usePreviousValue-io5t1pdxehw21l85.js} +2 -2
- package/dist/chunks/{useRegisterFieldControl-m1rxsuvtpau2341n.js → useRegisterFieldControl-lvusf6vc963clx02.js} +16 -10
- package/dist/chunks/{useRegisteredLabelId-dh83mybmzy75waje.js → useRegisteredLabelId-hw6b87h1k7kow1o2.js} +4 -4
- package/dist/chunks/{useRender-gtnbrp1ityffi4xf.js → useRender-onwjigxa00uch2ip.js} +2 -2
- package/dist/chunks/{useRenderDialogRoot-hhowqeoreyr6uuc7.js → useRenderDialogRoot-lddunc01twftravv.js} +123 -110
- package/dist/chunks/{useRenderElement-m8kc7jyuczp71mq8.js → useRenderElement-lrvp2pwrpt5zq1zd.js} +56 -46
- package/dist/chunks/{useScrollLock-mpns3u42eks8hhex.js → useScrollLock-buonkbwuland9wl3.js} +65 -38
- package/dist/chunks/{useStableCallback-ninxmksdjvwl6ejj.js → useStableCallback-b1i1ghzd9k75bb85.js} +3 -3
- package/dist/chunks/{useSwipeDismiss-bpbyw2ihsw3fw6y9.js → useSwipeDismiss-m1s13x9t9ey9ax3p.js} +73 -175
- package/dist/chunks/{useTimeout-oqptmu2xmyv5ccic.js → useTimeout-cpql3c8p250cr093.js} +3 -3
- package/dist/chunks/{useTransitionStatus-ig4waxl2kervpyw4.js → useTransitionStatus-bwqaavnekreihom2.js} +9 -5
- package/dist/chunks/{useTriggerFocusGuards-j8nano0pqu9dscrz.js → useTriggerFocusGuards-lz7wt484xltizro4.js} +4 -3
- package/dist/chunks/{useTypeahead-onenwjyhgw955ygx.js → useTypeahead-kvag4w6hu2g1kbwt.js} +10 -17
- package/dist/chunks/{useValueAsRef-lrn42zari17368c9.js → useValueAsRef-o4s9ohb3aczypmnk.js} +3 -3
- package/dist/chunks/{useValueChanged-kthmz4wk7ywnjwtx.js → useValueChanged-cz5wflhe8g15n6w1.js} +5 -8
- package/dist/chunks/{valueToPercent-henpkkj3juy3ukeu.js → valueToPercent-d7gbqk1umostj7ch.js} +1 -1
- package/dist/chunks/{vendor-floating-ui-dsysdmve7iazaaes.js → vendor-floating-ui-fqblx3wa0r71mjoo.js} +87 -187
- package/dist/chunks/{vendor-utils-luqsvbyuig727bnr.js → vendor-utils-ecfbsk425x1bm0gh.js} +119 -29
- package/dist/chunks/vesper-g839e590k3dxnwh3.js +5 -0
- package/dist/chunks/{visuallyHidden-n14xllazfozg55ox.js → visuallyHidden-nous086atnlxtf74.js} +1 -1
- package/dist/chunks/{wasm-nfbosyhilcq70atf.js → wasm-cpasy0o9lsjrm39j.js} +1 -1
- package/dist/code/server.d.ts +9 -10
- package/dist/code/server.js +8 -7
- package/dist/code.d.ts +8 -8
- package/dist/code.js +18 -16
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button-group.d.ts +2 -0
- package/dist/components/button-group.js +3 -0
- package/dist/components/button.js +1 -1
- package/dist/components/chart.d.ts +2 -2
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.d.ts +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.d.ts +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/inline-copy-text.d.ts +2 -0
- package/dist/components/inline-copy-text.js +3 -0
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/layer-dialog.d.ts +2 -0
- package/dist/components/layer-dialog.js +3 -0
- package/dist/components/link.d.ts +8 -9
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.d.ts +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.d.ts +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table-of-contents.d.ts +1 -1
- package/dist/components/table.d.ts +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag-input.d.ts +2 -0
- package/dist/components/tag-input.js +3 -0
- package/dist/components/text.d.ts +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toolbar.d.ts +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-BXsHCLB82.d.ts → index--RbAKeBL.d.ts} +1 -1
- package/dist/{index-CeBzVJP8.d.ts → index-BK1tZgmP.d.ts} +1 -1
- package/dist/{index-CGbkysYW2.d.ts → index-BMe3cpLB.d.ts} +5 -4
- package/dist/{index-Di3sC6UF.d.ts → index-C0d8uwYO.d.ts} +4 -4
- package/dist/index-C7RoG_CH.d.ts +57 -0
- package/dist/{index-DBlw3E9m.d.ts → index-CNJRbVxG.d.ts} +1 -1
- package/dist/{index-BcRyiNd72.d.ts → index-ChGFA5-n.d.ts} +5 -1
- package/dist/index-CiwC1j1N.d.ts +37 -0
- package/dist/{index-BoPqM1Ia2.d.ts → index-Cqrye3KD.d.ts} +1 -1
- package/dist/{index-Bw3M24Mi.d.ts → index-CrQi3QCY.d.ts} +2 -1
- package/dist/{index-BlEUcijd.d.ts → index-CtTNoYA2.d.ts} +69 -1
- package/dist/{index-D97n4Bpf2.d.ts → index-DWZia2ui.d.ts} +1 -1
- package/dist/index-NqlNd7cQ.d.ts +144 -0
- package/dist/index-jNWPjJl9.d.ts +75 -0
- package/dist/index.d.ts +31 -26
- package/dist/index.js +49 -44
- package/dist/{input-group-DpGSsAZy.d.ts → input-group-B3M_WRqm.d.ts} +1 -1
- package/dist/locale-provider-BLGya10h.d.ts +28 -0
- package/dist/{portal-provider-4AHCxYE6.d.ts → portal-provider-BAqPpq_a.d.ts} +4 -0
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +2 -2
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/otp-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.js +41 -41
- package/dist/scripts/theme-generator/config.d.ts +4 -5
- package/dist/scripts/theme-generator/types.d.ts +12 -13
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/{index-Dzzi1o7w2.d.ts → text-B4l7S5Z0.d.ts} +60 -1
- package/dist/{tooltip-BuCo6Ki4.d.ts → tooltip-D_vhi1PN.d.ts} +1 -1
- package/dist/{types-C402rKiz.d.ts → types-C6in2C8V.d.ts} +6 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +3 -2
- package/package.json +22 -5
- package/scripts/component-registry/discovery.ts +3 -0
- package/scripts/component-registry/metadata.ts +37 -0
- package/scripts/generate-globe-land-mask.mjs +80 -0
- package/dist/chunks/CheckboxIndicator-igofmpn0wcfdqooa.js +0 -49
- package/dist/chunks/CompositeList-tx08unuok7wsl2d9.js +0 -129
- package/dist/chunks/DialogHandle-b3froel96o9fwjmm.js +0 -139
- package/dist/chunks/DialogRoot-fp7d16uxogvye294.js +0 -15
- package/dist/chunks/FieldLabel-f6vwzm8nefzxwlh8.js +0 -558
- package/dist/chunks/Form-is7d5c1kbk1wn39s.js +0 -102
- package/dist/chunks/areArraysEqual-nlbeaqlzf4274zr3.js +0 -7
- package/dist/chunks/clamp-kvu4wtr1dw6b3pnd.js +0 -7
- package/dist/chunks/createBaseUIEventDetails-ddivuhl74gni72qn.js +0 -86
- package/dist/chunks/error-mm98alb8acdy93vq.js +0 -15
- package/dist/chunks/formatNumber-hjijm58g645q6a0n.js +0 -26
- package/dist/chunks/getEmptyRootContext-ekvv3rp5w16ewoqx.js +0 -18
- package/dist/chunks/index.parts-hve0zir3biaolih0.js +0 -128
- package/dist/chunks/index.parts-jv5kiaeixrjah9js.js +0 -119
- package/dist/chunks/index.parts-k7ezm98skegahepw.js +0 -2464
- package/dist/chunks/store-9b2cp7rx1dvq90fp.js +0 -88
- package/dist/chunks/useCompositeListItem-0exfww37ospqz69b.js +0 -75
- package/dist/chunks/useIsHydrating-b6whcsimonagru6u.js +0 -22
- package/dist/chunks/useLabelableId-b1kwq9st3rjrtakn.js +0 -60
- package/dist/chunks/vesper-ho3j3gt6ilwfuc1g.js +0 -5
- package/dist/cn-DCSItmT-.d.ts +0 -5
- /package/dist/{index-AMEc1MEg2.d.ts → index-AMEc1MEg.d.ts} +0 -0
- /package/dist/{index-D2Gvly0i2.d.ts → index-D2Gvly0i.d.ts} +0 -0
- /package/dist/{index-DIV3riUd2.d.ts → index-DIV3riUd.d.ts} +0 -0
- /package/dist/{index-FCkuxSvs2.d.ts → index-FCkuxSvs.d.ts} +0 -0
- /package/dist/{index-_Sl5wohy2.d.ts → index-_Sl5wohy.d.ts} +0 -0
- /package/dist/{index-bAud6rG22.d.ts → index-bAud6rG2.d.ts} +0 -0
package/dist/chunks/{engine-javascript-d795u677f1802oaf.js → engine-javascript-e9xj8hhz9xfqhpnu.js}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@4.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@4.3.1/node_modules/@shikijs/engine-javascript/dist/scanner-DX8LRFGE.mjs
|
|
3
3
|
const MAX = 4294967295;
|
|
4
4
|
var JavaScriptScanner = class {
|
|
5
|
+
patterns;
|
|
6
|
+
options;
|
|
5
7
|
regexps;
|
|
6
8
|
constructor(patterns, options = {}) {
|
|
7
9
|
this.patterns = patterns;
|
|
@@ -73,7 +75,7 @@ var JavaScriptScanner = class {
|
|
|
73
75
|
}
|
|
74
76
|
};
|
|
75
77
|
//#endregion
|
|
76
|
-
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.
|
|
78
|
+
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js
|
|
77
79
|
function r$2(e) {
|
|
78
80
|
if ([...e].length !== 1) throw new Error(`Expected "${e}" to be a single code point`);
|
|
79
81
|
return e.codePointAt(0);
|
|
@@ -103,7 +105,7 @@ function u(e, t) {
|
|
|
103
105
|
return e;
|
|
104
106
|
}
|
|
105
107
|
//#endregion
|
|
106
|
-
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.
|
|
108
|
+
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
|
|
107
109
|
const m$1 = o$1`\[\^?`;
|
|
108
110
|
const b$1 = `c.? | C(?:-.?)?|${o$1`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${o$1`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${o$1`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${o$1`o\{[^\}]*\}?`}|${o$1`\d{1,3}`}`;
|
|
109
111
|
const y$1 = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/;
|
|
@@ -209,7 +211,7 @@ function F$1(e, n, t, o) {
|
|
|
209
211
|
if (a === "N" || a === "R") return { token: k$1("newline", t, { negate: a === "N" }) };
|
|
210
212
|
if (a === "O") return { token: k$1("any", t) };
|
|
211
213
|
if (a === "X") return { token: k$1("text_segment", t) };
|
|
212
|
-
const r = x(t, { inCharClass: !1 });
|
|
214
|
+
const r = x$1(t, { inCharClass: !1 });
|
|
213
215
|
return Array.isArray(r) ? { tokens: r } : { token: r };
|
|
214
216
|
}
|
|
215
217
|
if (s === "(") {
|
|
@@ -220,13 +222,13 @@ function F$1(e, n, t, o) {
|
|
|
220
222
|
return { lastIndex: o + 1 };
|
|
221
223
|
}
|
|
222
224
|
if (/^\(\?[-imx]+[:)]$/.test(t)) return { token: L$1(t, e) };
|
|
223
|
-
if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, t === "(" && !e.captureGroup || t === "(?:") return { token: f
|
|
224
|
-
if (t === "(?>") return { token: f
|
|
225
|
-
if (t === "(?=" || t === "(?!" || t === "(?<=" || t === "(?<!") return { token: f
|
|
226
|
-
if (t === "(" && e.captureGroup || t.startsWith("(?<") && t.endsWith(">") || t.startsWith("(?'") && t.endsWith("'")) return { token: f
|
|
225
|
+
if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, t === "(" && !e.captureGroup || t === "(?:") return { token: f("group", t) };
|
|
226
|
+
if (t === "(?>") return { token: f("atomic", t) };
|
|
227
|
+
if (t === "(?=" || t === "(?!" || t === "(?<=" || t === "(?<!") return { token: f(t[2] === "<" ? "lookbehind" : "lookahead", t, { negate: t.endsWith("!") }) };
|
|
228
|
+
if (t === "(" && e.captureGroup || t.startsWith("(?<") && t.endsWith(">") || t.startsWith("(?'") && t.endsWith("'")) return { token: f("capturing", t, { ...t !== "(" && { name: t.slice(3, -1) } }) };
|
|
227
229
|
if (t.startsWith("(?~")) {
|
|
228
230
|
if (t === "(?~|") throw new Error(`Unsupported absence function kind "${t}"`);
|
|
229
|
-
return { token: f
|
|
231
|
+
return { token: f("absence_repeater", t) };
|
|
230
232
|
}
|
|
231
233
|
throw t === "(?(" ? /* @__PURE__ */ new Error(`Unsupported conditional "${t}"`) : /* @__PURE__ */ new Error(`Invalid or unsupported group option "${t}"`);
|
|
232
234
|
}
|
|
@@ -272,7 +274,7 @@ function K$1(e, n, t) {
|
|
|
272
274
|
};
|
|
273
275
|
}
|
|
274
276
|
function X$1(e) {
|
|
275
|
-
if (e[0] === "\\") return x(e, { inCharClass: !0 });
|
|
277
|
+
if (e[0] === "\\") return x$1(e, { inCharClass: !0 });
|
|
276
278
|
if (e[0] === "[") {
|
|
277
279
|
const n = /\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);
|
|
278
280
|
if (!n || !i.has(n.groups.name)) throw new Error(`Invalid POSIX class "${e}"`);
|
|
@@ -283,7 +285,7 @@ function X$1(e) {
|
|
|
283
285
|
}
|
|
284
286
|
return e === "-" ? U$1(e) : e === "&&" ? H(e) : d(r$2(e), e);
|
|
285
287
|
}
|
|
286
|
-
function x(e, { inCharClass: n }) {
|
|
288
|
+
function x$1(e, { inCharClass: n }) {
|
|
287
289
|
const t = e[1];
|
|
288
290
|
if (t === "c" || t === "C") return Z(e);
|
|
289
291
|
if ("dDhHsSwW".includes(t)) return q(e);
|
|
@@ -396,7 +398,7 @@ function Q$1(e) {
|
|
|
396
398
|
raw: e
|
|
397
399
|
};
|
|
398
400
|
}
|
|
399
|
-
function f
|
|
401
|
+
function f(e, n, t = {}) {
|
|
400
402
|
return {
|
|
401
403
|
type: "GroupOpen",
|
|
402
404
|
kind: e,
|
|
@@ -458,7 +460,7 @@ function L$1(e, n) {
|
|
|
458
460
|
o ??= "";
|
|
459
461
|
const s = (n.getCurrentModX() || t.includes("x")) && !o.includes("x"), a = v(t), r = v(o), i = {};
|
|
460
462
|
if (a && (i.enable = a), r && (i.disable = r), e.endsWith(")")) return n.replaceCurrentModX(s), I$1("flags", e, { flags: i });
|
|
461
|
-
if (e.endsWith(":")) return n.pushModX(s), n.numOpenGroups++, f
|
|
463
|
+
if (e.endsWith(":")) return n.pushModX(s), n.numOpenGroups++, f("group", e, { ...(a || r) && { flags: i } });
|
|
462
464
|
throw new Error(`Unexpected flag modifier "${e}"`);
|
|
463
465
|
}
|
|
464
466
|
function j(e) {
|
|
@@ -504,11 +506,11 @@ function O$1(e) {
|
|
|
504
506
|
if (e[0] === "{") {
|
|
505
507
|
const { minStr: s, maxStr: a } = /^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups, r = 1e5;
|
|
506
508
|
if (+s > r || a && +a > r) throw new Error("Quantifier value unsupported in Oniguruma");
|
|
507
|
-
if (t = +s, o = a === void 0 ? +s : a === "" ?
|
|
509
|
+
if (t = +s, o = a === void 0 ? +s : a === "" ? 1 / 0 : +a, t > o && (n = "possessive", [t, o] = [o, t]), e.endsWith("?")) {
|
|
508
510
|
if (n === "possessive") throw new Error("Unsupported possessive interval quantifier chain with \"?\"");
|
|
509
511
|
n = "lazy";
|
|
510
512
|
} else n || (n = "greedy");
|
|
511
|
-
} else t = e[0] === "+" ? 1 : 0, o = e[0] === "?" ? 1 :
|
|
513
|
+
} else t = e[0] === "+" ? 1 : 0, o = e[0] === "?" ? 1 : 1 / 0, n = e[1] === "+" ? "possessive" : e[1] === "?" ? "lazy" : "greedy";
|
|
512
514
|
return _$1(n, t, o, e);
|
|
513
515
|
}
|
|
514
516
|
function q(e) {
|
|
@@ -601,7 +603,7 @@ function te$1(e) {
|
|
|
601
603
|
return n;
|
|
602
604
|
}
|
|
603
605
|
//#endregion
|
|
604
|
-
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.
|
|
606
|
+
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js
|
|
605
607
|
function o(e, t) {
|
|
606
608
|
if (!Array.isArray(e.body)) throw new Error("Expected node with body array");
|
|
607
609
|
if (e.body.length !== 1) return !1;
|
|
@@ -623,7 +625,7 @@ const y = /* @__PURE__ */ new Set([
|
|
|
623
625
|
"Subroutine"
|
|
624
626
|
]);
|
|
625
627
|
//#endregion
|
|
626
|
-
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.
|
|
628
|
+
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js
|
|
627
629
|
function J(e, r = {}) {
|
|
628
630
|
const n = {
|
|
629
631
|
flags: "",
|
|
@@ -638,30 +640,30 @@ function J(e, r = {}) {
|
|
|
638
640
|
singleline: !1,
|
|
639
641
|
...r.rules
|
|
640
642
|
}
|
|
641
|
-
},
|
|
643
|
+
}, o = M$1(e, {
|
|
642
644
|
flags: n.flags,
|
|
643
645
|
rules: {
|
|
644
646
|
captureGroup: n.rules.captureGroup,
|
|
645
647
|
singleline: n.rules.singleline
|
|
646
648
|
}
|
|
647
|
-
}),
|
|
648
|
-
const u =
|
|
649
|
-
switch (
|
|
649
|
+
}), i = (p, N) => {
|
|
650
|
+
const u = o.tokens[t.nextIndex];
|
|
651
|
+
switch (t.parent = p, t.nextIndex++, u.type) {
|
|
650
652
|
case "Alternator": return b();
|
|
651
653
|
case "Assertion": return W(u);
|
|
652
|
-
case "Backreference": return X(u,
|
|
654
|
+
case "Backreference": return X(u, t);
|
|
653
655
|
case "Character": return m(u.value, { useLastValid: !!N.isCheckingRangeEnd });
|
|
654
|
-
case "CharacterClassHyphen": return ee(u,
|
|
655
|
-
case "CharacterClassOpen": return re(u,
|
|
656
|
-
case "CharacterSet": return ne(u,
|
|
656
|
+
case "CharacterClassHyphen": return ee(u, t, N);
|
|
657
|
+
case "CharacterClassOpen": return re(u, t, N);
|
|
658
|
+
case "CharacterSet": return ne(u, t);
|
|
657
659
|
case "Directive": return I(u.kind, { flags: u.flags });
|
|
658
|
-
case "GroupOpen": return te(u,
|
|
660
|
+
case "GroupOpen": return te(u, t, N);
|
|
659
661
|
case "NamedCallout": return U(u.kind, u.tag, u.arguments);
|
|
660
|
-
case "Quantifier": return oe(u,
|
|
661
|
-
case "Subroutine": return ae(u,
|
|
662
|
+
case "Quantifier": return oe(u, t);
|
|
663
|
+
case "Subroutine": return ae(u, t);
|
|
662
664
|
default: throw new Error(`Unexpected token type "${u.type}"`);
|
|
663
665
|
}
|
|
664
|
-
},
|
|
666
|
+
}, t = {
|
|
665
667
|
capturingGroups: [],
|
|
666
668
|
hasNumberedRef: !1,
|
|
667
669
|
namedGroupsByName: /* @__PURE__ */ new Map(),
|
|
@@ -672,16 +674,16 @@ function J(e, r = {}) {
|
|
|
672
674
|
skipLookbehindValidation: n.skipLookbehindValidation,
|
|
673
675
|
skipPropertyNameValidation: n.skipPropertyNameValidation,
|
|
674
676
|
subroutines: [],
|
|
675
|
-
tokens:
|
|
677
|
+
tokens: o.tokens,
|
|
676
678
|
unicodePropertyMap: n.unicodePropertyMap,
|
|
677
|
-
walk:
|
|
678
|
-
},
|
|
679
|
-
let
|
|
680
|
-
for (;
|
|
681
|
-
const p = s
|
|
682
|
-
p.type === "Alternative" ? (
|
|
679
|
+
walk: i
|
|
680
|
+
}, d = B(T(o.flags));
|
|
681
|
+
let s = d.body[0];
|
|
682
|
+
for (; t.nextIndex < o.tokens.length;) {
|
|
683
|
+
const p = i(s, {});
|
|
684
|
+
p.type === "Alternative" ? (d.body.push(p), s = p) : s.body.push(p);
|
|
683
685
|
}
|
|
684
|
-
const { capturingGroups: a, hasNumberedRef: l, namedGroupsByName: c, subroutines: f } =
|
|
686
|
+
const { capturingGroups: a, hasNumberedRef: l, namedGroupsByName: c, subroutines: f } = t;
|
|
685
687
|
if (l && c.size && !n.rules.captureGroup) throw new Error("Numbered backref/subroutine not allowed when using named capture");
|
|
686
688
|
for (const { ref: p } of f) if (typeof p == "number") {
|
|
687
689
|
if (p > a.length) throw new Error("Subroutine uses a group number that's not defined");
|
|
@@ -690,7 +692,7 @@ function J(e, r = {}) {
|
|
|
690
692
|
if (c.get(p).length > 1) throw new Error(o$1`Subroutine uses a duplicate group name "\g<${p}>"`);
|
|
691
693
|
c.get(p)[0].isSubroutined = !0;
|
|
692
694
|
} else throw new Error(o$1`Subroutine uses a group name that's not defined "\g<${p}>"`);
|
|
693
|
-
return
|
|
695
|
+
return d;
|
|
694
696
|
}
|
|
695
697
|
function W({ kind: e }) {
|
|
696
698
|
return F(u({
|
|
@@ -707,106 +709,106 @@ function W({ kind: e }) {
|
|
|
707
709
|
}[e], `Unexpected assertion kind "${e}"`), { negate: e === o$1`\B` || e === o$1`\Y` });
|
|
708
710
|
}
|
|
709
711
|
function X({ raw: e }, r) {
|
|
710
|
-
const n = /^\\k[<']/.test(e),
|
|
711
|
-
const
|
|
712
|
+
const n = /^\\k[<']/.test(e), o = n ? e.slice(3, -1) : e.slice(1), i = (t, d = !1) => {
|
|
713
|
+
const s = r.capturingGroups.length;
|
|
712
714
|
let a = !1;
|
|
713
|
-
if (
|
|
715
|
+
if (t > s) if (r.skipBackrefValidation) a = !0;
|
|
714
716
|
else throw new Error(`Not enough capturing groups defined to the left "${e}"`);
|
|
715
|
-
return r.hasNumberedRef = !0, k(
|
|
717
|
+
return r.hasNumberedRef = !0, k(d ? s + 1 - t : t, { orphan: a });
|
|
716
718
|
};
|
|
717
719
|
if (n) {
|
|
718
|
-
const
|
|
719
|
-
if (
|
|
720
|
-
if (/[-+]/.test(
|
|
721
|
-
if (!r.namedGroupsByName.has(
|
|
722
|
-
return k(
|
|
720
|
+
const t = /^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(o);
|
|
721
|
+
if (t) return i(+t.groups.num, !!t.groups.sign);
|
|
722
|
+
if (/[-+]/.test(o)) throw new Error(`Invalid backref name "${e}"`);
|
|
723
|
+
if (!r.namedGroupsByName.has(o)) throw new Error(`Group name not defined to the left "${e}"`);
|
|
724
|
+
return k(o);
|
|
723
725
|
}
|
|
724
|
-
return
|
|
726
|
+
return i(+o);
|
|
725
727
|
}
|
|
726
728
|
function ee(e, r, n) {
|
|
727
|
-
const { tokens:
|
|
728
|
-
if (!n.isCheckingRangeEnd &&
|
|
729
|
-
const a =
|
|
729
|
+
const { tokens: o, walk: i } = r, t = r.parent, d = t.body.at(-1), s = o[r.nextIndex];
|
|
730
|
+
if (!n.isCheckingRangeEnd && d && d.type !== "CharacterClass" && d.type !== "CharacterClassRange" && s && s.type !== "CharacterClassOpen" && s.type !== "CharacterClassClose" && s.type !== "CharacterClassIntersector") {
|
|
731
|
+
const a = i(t, {
|
|
730
732
|
...n,
|
|
731
733
|
isCheckingRangeEnd: !0
|
|
732
734
|
});
|
|
733
|
-
if (
|
|
735
|
+
if (d.type === "Character" && a.type === "Character") return t.body.pop(), L(d, a);
|
|
734
736
|
throw new Error("Invalid character class range");
|
|
735
737
|
}
|
|
736
738
|
return m(r$2("-"));
|
|
737
739
|
}
|
|
738
740
|
function re({ negate: e }, r, n) {
|
|
739
|
-
const { tokens:
|
|
740
|
-
let
|
|
741
|
-
for (;
|
|
742
|
-
if (
|
|
741
|
+
const { tokens: o, walk: i } = r, t = [C()], d = o[r.nextIndex];
|
|
742
|
+
let s = z(d);
|
|
743
|
+
for (; s.type !== "CharacterClassClose";) {
|
|
744
|
+
if (s.type === "CharacterClassIntersector") t.push(C()), r.nextIndex++;
|
|
743
745
|
else {
|
|
744
|
-
const l =
|
|
745
|
-
l.body.push(
|
|
746
|
+
const l = t.at(-1);
|
|
747
|
+
l.body.push(i(l, n));
|
|
746
748
|
}
|
|
747
|
-
|
|
749
|
+
s = z(o[r.nextIndex], d);
|
|
748
750
|
}
|
|
749
751
|
const a = C({ negate: e });
|
|
750
|
-
return
|
|
752
|
+
return t.length === 1 ? a.body = t[0].body : (a.kind = "intersection", a.body = t.map((l) => l.body.length === 1 ? l.body[0] : l)), r.nextIndex++, a;
|
|
751
753
|
}
|
|
752
|
-
function ne({ kind: e, negate: r, value: n },
|
|
753
|
-
const { normalizeUnknownPropertyNames:
|
|
754
|
+
function ne({ kind: e, negate: r, value: n }, o) {
|
|
755
|
+
const { normalizeUnknownPropertyNames: i$1, skipPropertyNameValidation: t, unicodePropertyMap: d } = o;
|
|
754
756
|
if (e === "property") {
|
|
755
|
-
const
|
|
756
|
-
if (i.has(
|
|
757
|
+
const s = w(n);
|
|
758
|
+
if (i.has(s) && !d?.has(s)) e = "posix", n = s;
|
|
757
759
|
else return Q(n, {
|
|
758
760
|
negate: r,
|
|
759
|
-
normalizeUnknownPropertyNames:
|
|
760
|
-
skipPropertyNameValidation:
|
|
761
|
-
unicodePropertyMap:
|
|
761
|
+
normalizeUnknownPropertyNames: i$1,
|
|
762
|
+
skipPropertyNameValidation: t,
|
|
763
|
+
unicodePropertyMap: d
|
|
762
764
|
});
|
|
763
765
|
}
|
|
764
766
|
return e === "posix" ? R(n, { negate: r }) : E(e, { negate: r });
|
|
765
767
|
}
|
|
766
768
|
function te(e, r, n) {
|
|
767
|
-
const { tokens:
|
|
768
|
-
if (a.type === "CapturingGroup" && (
|
|
769
|
-
let p = D(
|
|
769
|
+
const { tokens: o, capturingGroups: i, namedGroupsByName: t, skipLookbehindValidation: d, walk: s } = r, a = ie(e), l = a.type === "AbsenceFunction", c = $(a), f = c && a.negate;
|
|
770
|
+
if (a.type === "CapturingGroup" && (i.push(a), a.name && l$1(t, a.name, []).push(a)), l && n.isInAbsenceFunction) throw new Error("Nested absence function not supported by Oniguruma");
|
|
771
|
+
let p = D(o[r.nextIndex]);
|
|
770
772
|
for (; p.type !== "GroupClose";) {
|
|
771
773
|
if (p.type === "Alternator") a.body.push(b()), r.nextIndex++;
|
|
772
774
|
else {
|
|
773
|
-
const N = a.body.at(-1), u =
|
|
775
|
+
const N = a.body.at(-1), u = s(N, {
|
|
774
776
|
...n,
|
|
775
777
|
isInAbsenceFunction: n.isInAbsenceFunction || l,
|
|
776
778
|
isInLookbehind: n.isInLookbehind || c,
|
|
777
779
|
isInNegLookbehind: n.isInNegLookbehind || f
|
|
778
780
|
});
|
|
779
|
-
if (N.body.push(u), (c || n.isInLookbehind) && !
|
|
781
|
+
if (N.body.push(u), (c || n.isInLookbehind) && !d) {
|
|
780
782
|
const v = "Lookbehind includes a pattern not allowed by Oniguruma";
|
|
781
783
|
if (f || n.isInNegLookbehind) {
|
|
782
784
|
if (M(u) || u.type === "CapturingGroup") throw new Error(v);
|
|
783
785
|
} else if (M(u) || $(u) && u.negate) throw new Error(v);
|
|
784
786
|
}
|
|
785
787
|
}
|
|
786
|
-
p = D(
|
|
788
|
+
p = D(o[r.nextIndex]);
|
|
787
789
|
}
|
|
788
790
|
return r.nextIndex++, a;
|
|
789
791
|
}
|
|
790
|
-
function oe({ kind: e, min: r, max: n },
|
|
791
|
-
const
|
|
792
|
-
if (!
|
|
793
|
-
const
|
|
794
|
-
return
|
|
792
|
+
function oe({ kind: e, min: r, max: n }, o) {
|
|
793
|
+
const i = o.parent, t = i.body.at(-1);
|
|
794
|
+
if (!t || !s(t)) throw new Error("Quantifier requires a repeatable token");
|
|
795
|
+
const d = _(e, r, n, t);
|
|
796
|
+
return i.body.pop(), d;
|
|
795
797
|
}
|
|
796
798
|
function ae({ raw: e }, r) {
|
|
797
|
-
const { capturingGroups: n, subroutines:
|
|
798
|
-
let
|
|
799
|
-
const
|
|
800
|
-
if (
|
|
801
|
-
const
|
|
802
|
-
if (r.hasNumberedRef = !0,
|
|
803
|
-
"":
|
|
804
|
-
"+": a +
|
|
805
|
-
"-": a + 1 -
|
|
806
|
-
}[
|
|
807
|
-
} else
|
|
808
|
-
const
|
|
809
|
-
return
|
|
799
|
+
const { capturingGroups: n, subroutines: o } = r;
|
|
800
|
+
let i = e.slice(3, -1);
|
|
801
|
+
const t = /^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);
|
|
802
|
+
if (t) {
|
|
803
|
+
const s = +t.groups.num, a = n.length;
|
|
804
|
+
if (r.hasNumberedRef = !0, i = {
|
|
805
|
+
"": s,
|
|
806
|
+
"+": a + s,
|
|
807
|
+
"-": a + 1 - s
|
|
808
|
+
}[t.groups.sign], i < 1) throw new Error("Invalid subroutine number");
|
|
809
|
+
} else i === "0" && (i = 0);
|
|
810
|
+
const d = O(i);
|
|
811
|
+
return o.push(d), d;
|
|
810
812
|
}
|
|
811
813
|
function G(e, r) {
|
|
812
814
|
if (e !== "repeater") throw new Error(`Unexpected absence function kind "${e}"`);
|
|
@@ -858,9 +860,9 @@ function m(e, r) {
|
|
|
858
860
|
...r
|
|
859
861
|
};
|
|
860
862
|
if (e > 1114111) {
|
|
861
|
-
const
|
|
863
|
+
const o = e.toString(16);
|
|
862
864
|
if (n.useLastValid) e = 1114111;
|
|
863
|
-
else throw e > 1310719 ? /* @__PURE__ */ new Error(`Invalid code point out of range "\\x{${
|
|
865
|
+
else throw e > 1310719 ? /* @__PURE__ */ new Error(`Invalid code point out of range "\\x{${o}}"`) : /* @__PURE__ */ new Error(`Invalid code point out of range in JS "\\x{${o}}"`);
|
|
864
866
|
}
|
|
865
867
|
return {
|
|
866
868
|
type: "Character",
|
|
@@ -889,11 +891,11 @@ function L(e, r) {
|
|
|
889
891
|
};
|
|
890
892
|
}
|
|
891
893
|
function E(e, r) {
|
|
892
|
-
const n = !!r?.negate,
|
|
894
|
+
const n = !!r?.negate, o = {
|
|
893
895
|
type: "CharacterSet",
|
|
894
896
|
kind: e
|
|
895
897
|
};
|
|
896
|
-
return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (
|
|
898
|
+
return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (o.negate = n), (e === "text_segment" || e === "newline" && !n) && (o.variableLength = !0), o;
|
|
897
899
|
}
|
|
898
900
|
function I(e, r = {}) {
|
|
899
901
|
if (e === "keep") return {
|
|
@@ -954,14 +956,14 @@ function R(e, r) {
|
|
|
954
956
|
negate: n
|
|
955
957
|
};
|
|
956
958
|
}
|
|
957
|
-
function _(e, r, n,
|
|
959
|
+
function _(e, r, n, o) {
|
|
958
960
|
if (r > n) throw new Error("Invalid reversed quantifier range");
|
|
959
961
|
return {
|
|
960
962
|
type: "Quantifier",
|
|
961
963
|
kind: e,
|
|
962
964
|
min: r,
|
|
963
965
|
max: n,
|
|
964
|
-
body:
|
|
966
|
+
body: o
|
|
965
967
|
};
|
|
966
968
|
}
|
|
967
969
|
function B(e, r) {
|
|
@@ -985,28 +987,28 @@ function Q(e, r) {
|
|
|
985
987
|
unicodePropertyMap: null,
|
|
986
988
|
...r
|
|
987
989
|
};
|
|
988
|
-
let
|
|
989
|
-
if (!
|
|
990
|
-
if (n.normalizeUnknownPropertyNames)
|
|
990
|
+
let o = n.unicodePropertyMap?.get(w(e));
|
|
991
|
+
if (!o) {
|
|
992
|
+
if (n.normalizeUnknownPropertyNames) o = de(e);
|
|
991
993
|
else if (n.unicodePropertyMap && !n.skipPropertyNameValidation) throw new Error(o$1`Invalid Unicode property "\p{${e}}"`);
|
|
992
994
|
}
|
|
993
995
|
return {
|
|
994
996
|
type: "CharacterSet",
|
|
995
997
|
kind: "property",
|
|
996
|
-
value:
|
|
998
|
+
value: o ?? e,
|
|
997
999
|
negate: n.negate
|
|
998
1000
|
};
|
|
999
1001
|
}
|
|
1000
|
-
function ie({ flags: e, kind: r, name: n, negate:
|
|
1002
|
+
function ie({ flags: e, kind: r, name: n, negate: o, number: i }) {
|
|
1001
1003
|
switch (r) {
|
|
1002
1004
|
case "absence_repeater": return G("repeater");
|
|
1003
1005
|
case "atomic": return A({ atomic: !0 });
|
|
1004
|
-
case "capturing": return P(
|
|
1006
|
+
case "capturing": return P(i, { name: n });
|
|
1005
1007
|
case "group": return A({ flags: e });
|
|
1006
1008
|
case "lookahead":
|
|
1007
1009
|
case "lookbehind": return K({
|
|
1008
1010
|
behind: r === "lookbehind",
|
|
1009
|
-
negate:
|
|
1011
|
+
negate: o
|
|
1010
1012
|
});
|
|
1011
1013
|
default: throw new Error(`Unexpected group kind "${r}"`);
|
|
1012
1014
|
}
|
|
@@ -1037,15 +1039,16 @@ function w(e) {
|
|
|
1037
1039
|
return e.replace(/[- _]+/g, "").toLowerCase();
|
|
1038
1040
|
}
|
|
1039
1041
|
function z(e, r) {
|
|
1040
|
-
|
|
1042
|
+
const n = r;
|
|
1043
|
+
return u(e, `Unclosed character class${n?.type === "Character" && n.value === 93 && n.raw === "]" ? " (started with \"]\")" : ""}`);
|
|
1041
1044
|
}
|
|
1042
1045
|
function D(e) {
|
|
1043
1046
|
return u(e, "Unclosed group");
|
|
1044
1047
|
}
|
|
1045
1048
|
//#endregion
|
|
1046
|
-
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.
|
|
1049
|
+
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js
|
|
1047
1050
|
function S(a, v, N = null) {
|
|
1048
|
-
function
|
|
1051
|
+
function b(e, s) {
|
|
1049
1052
|
for (let t = 0; t < e.length; t++) {
|
|
1050
1053
|
const r = n(e[t], s, t, e);
|
|
1051
1054
|
t = Math.max(-1, t + r);
|
|
@@ -1060,40 +1063,39 @@ function S(a, v, N = null) {
|
|
|
1060
1063
|
container: r,
|
|
1061
1064
|
root: a,
|
|
1062
1065
|
remove() {
|
|
1063
|
-
|
|
1066
|
+
x(r).splice(Math.max(0, l(t) + i), 1), i--, c = !0;
|
|
1064
1067
|
},
|
|
1065
1068
|
removeAllNextSiblings() {
|
|
1066
|
-
return
|
|
1069
|
+
return x(r).splice(l(t) + 1);
|
|
1067
1070
|
},
|
|
1068
1071
|
removeAllPrevSiblings() {
|
|
1069
1072
|
const o = l(t) + i;
|
|
1070
|
-
return i -= o,
|
|
1073
|
+
return i -= o, x(r).splice(0, Math.max(0, o));
|
|
1071
1074
|
},
|
|
1072
|
-
replaceWith(o,
|
|
1073
|
-
const
|
|
1074
|
-
r ? r[Math.max(0, l(t) + i)] = o : u(s, "Can't replace root node")[t] = o,
|
|
1075
|
+
replaceWith(o, m = {}) {
|
|
1076
|
+
const y = !!m.traverse;
|
|
1077
|
+
r ? r[Math.max(0, l(t) + i)] = o : u(s, "Can't replace root node")[t] = o, y && n(o, s, t, r), c = !0;
|
|
1075
1078
|
},
|
|
1076
|
-
replaceWithMultiple(o,
|
|
1077
|
-
const
|
|
1078
|
-
if (
|
|
1079
|
+
replaceWithMultiple(o, m = {}) {
|
|
1080
|
+
const y = !!m.traverse;
|
|
1081
|
+
if (x(r).splice(Math.max(0, l(t) + i), 1, ...o), i += o.length - 1, y) {
|
|
1079
1082
|
let g = 0;
|
|
1080
|
-
for (let
|
|
1083
|
+
for (let p = 0; p < o.length; p++) g += n(o[p], s, l(t) + p + g, r);
|
|
1081
1084
|
}
|
|
1082
1085
|
c = !0;
|
|
1083
1086
|
},
|
|
1084
1087
|
skip() {
|
|
1085
1088
|
c = !0;
|
|
1086
1089
|
}
|
|
1087
|
-
}, { type:
|
|
1088
|
-
if (R?.(d, N), P?.(d, N), !c) switch (
|
|
1090
|
+
}, { type: f } = e, u$1 = v["*"], h = v[f], R = typeof u$1 == "function" ? u$1 : u$1?.enter, P = typeof h == "function" ? h : h?.enter;
|
|
1091
|
+
if (R?.(d, N), P?.(d, N), !c) switch (f) {
|
|
1089
1092
|
case "AbsenceFunction":
|
|
1090
|
-
case "CapturingGroup":
|
|
1091
|
-
case "Group":
|
|
1092
|
-
u$1(e.body, e);
|
|
1093
|
-
break;
|
|
1094
1093
|
case "Alternative":
|
|
1094
|
+
case "CapturingGroup":
|
|
1095
1095
|
case "CharacterClass":
|
|
1096
|
-
|
|
1096
|
+
case "Group":
|
|
1097
|
+
case "LookaroundAssertion":
|
|
1098
|
+
b(e.body, e);
|
|
1097
1099
|
break;
|
|
1098
1100
|
case "Assertion":
|
|
1099
1101
|
case "Backreference":
|
|
@@ -1106,22 +1108,19 @@ function S(a, v, N = null) {
|
|
|
1106
1108
|
case "CharacterClassRange":
|
|
1107
1109
|
n(e.min, e, "min"), n(e.max, e, "max");
|
|
1108
1110
|
break;
|
|
1109
|
-
case "LookaroundAssertion":
|
|
1110
|
-
u$1(e.body, e);
|
|
1111
|
-
break;
|
|
1112
1111
|
case "Quantifier":
|
|
1113
1112
|
n(e.body, e, "body");
|
|
1114
1113
|
break;
|
|
1115
1114
|
case "Regex":
|
|
1116
|
-
|
|
1115
|
+
b(e.body, e), n(e.flags, e, "flags");
|
|
1117
1116
|
break;
|
|
1118
|
-
default: throw new Error(`Unexpected node type "${
|
|
1117
|
+
default: throw new Error(`Unexpected node type "${f}"`);
|
|
1119
1118
|
}
|
|
1120
|
-
return
|
|
1119
|
+
return h?.exit?.(d, N), u$1?.exit?.(d, N), i;
|
|
1121
1120
|
}
|
|
1122
1121
|
return n(a), a;
|
|
1123
1122
|
}
|
|
1124
|
-
function
|
|
1123
|
+
function x(a) {
|
|
1125
1124
|
if (!Array.isArray(a)) throw new Error("Container expected");
|
|
1126
1125
|
return a;
|
|
1127
1126
|
}
|
|
@@ -1338,12 +1337,13 @@ function atomic(expression, data) {
|
|
|
1338
1337
|
aGPos = index;
|
|
1339
1338
|
inAG = true;
|
|
1340
1339
|
} else if (inAG && noncapturingStart) numGroupsOpenInAG++;
|
|
1341
|
-
else if (capturingStart)
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1340
|
+
else if (capturingStart) {
|
|
1341
|
+
if (inAG) numGroupsOpenInAG++;
|
|
1342
|
+
else {
|
|
1343
|
+
numCapturesBeforeAG++;
|
|
1344
|
+
captureNumMap.push(numCapturesBeforeAG + numAGs);
|
|
1345
|
+
}
|
|
1346
|
+
} else if (m === ")" && inAG) {
|
|
1347
1347
|
if (!numGroupsOpenInAG) {
|
|
1348
1348
|
numAGs++;
|
|
1349
1349
|
const addedCaptureNum = numCapturesBeforeAG + numAGs;
|
|
@@ -1419,9 +1419,10 @@ function possessive(expression) {
|
|
|
1419
1419
|
if (m === "[") {
|
|
1420
1420
|
if (!numCharClassesOpen) lastCharClassIndex = index;
|
|
1421
1421
|
numCharClassesOpen++;
|
|
1422
|
-
} else if (m === "]")
|
|
1423
|
-
|
|
1424
|
-
|
|
1422
|
+
} else if (m === "]") {
|
|
1423
|
+
if (numCharClassesOpen) numCharClassesOpen--;
|
|
1424
|
+
else lastCharClassIndex = null;
|
|
1425
|
+
} else if (!numCharClassesOpen) {
|
|
1425
1426
|
if (qMod === "+" && lastToken && !lastToken.startsWith("(")) {
|
|
1426
1427
|
if (invalidQ) throw new Error(`Invalid quantifier "${m}"`);
|
|
1427
1428
|
let charsAdded = -1;
|
|
@@ -1650,26 +1651,36 @@ function mapCaptureTransfers(captureTransfers, left, reps, numCapturesAddedInExp
|
|
|
1650
1651
|
return captureTransfers;
|
|
1651
1652
|
}
|
|
1652
1653
|
//#endregion
|
|
1653
|
-
//#region ../../node_modules/.pnpm/oniguruma-to-es@4.3.
|
|
1654
|
+
//#region ../../node_modules/.pnpm/oniguruma-to-es@4.3.6/node_modules/oniguruma-to-es/dist/esm/index.js
|
|
1654
1655
|
var cp = String.fromCodePoint;
|
|
1655
1656
|
var r = String.raw;
|
|
1656
|
-
var envFlags = {
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
}
|
|
1657
|
+
var envFlags = {};
|
|
1658
|
+
var globalRegExp = globalThis.RegExp;
|
|
1659
|
+
envFlags.flagGroups = (() => {
|
|
1660
|
+
try {
|
|
1661
|
+
new globalRegExp("(?i:)");
|
|
1662
|
+
} catch {
|
|
1663
|
+
return false;
|
|
1664
|
+
}
|
|
1665
|
+
return true;
|
|
1666
|
+
})();
|
|
1667
|
+
envFlags.unicodeSets = (() => {
|
|
1668
|
+
try {
|
|
1669
|
+
new globalRegExp("[[]]", "v");
|
|
1670
|
+
} catch {
|
|
1671
|
+
return false;
|
|
1672
|
+
}
|
|
1673
|
+
return true;
|
|
1674
|
+
})();
|
|
1664
1675
|
envFlags.bugFlagVLiteralHyphenIsRange = envFlags.unicodeSets ? (() => {
|
|
1665
1676
|
try {
|
|
1666
|
-
new
|
|
1677
|
+
new globalRegExp(r`[\d\-a]`, "v");
|
|
1667
1678
|
} catch {
|
|
1668
1679
|
return true;
|
|
1669
1680
|
}
|
|
1670
1681
|
return false;
|
|
1671
1682
|
})() : false;
|
|
1672
|
-
envFlags.bugNestedClassIgnoresNegation = envFlags.unicodeSets &&
|
|
1683
|
+
envFlags.bugNestedClassIgnoresNegation = envFlags.unicodeSets && new globalRegExp("[[^a]]", "v").test("a");
|
|
1673
1684
|
function getNewCurrentFlags(current, { enable, disable }) {
|
|
1674
1685
|
return {
|
|
1675
1686
|
dotAll: !disable?.dotAll && !!(enable?.dotAll || current.dotAll),
|
|
@@ -1983,19 +1994,20 @@ var FirstPassVisitor = {
|
|
|
1983
1994
|
if (kind === "text_segment_boundary") throw new Error(`Unsupported text segment boundary "\\${negate ? "Y" : "y"}"`);
|
|
1984
1995
|
else if (kind === "line_end") replaceWith(setParentDeep(K({ body: [b({ body: [F("string_end")] }), b({ body: [m(10)] })] }), parent));
|
|
1985
1996
|
else if (kind === "line_start") replaceWith(setParentDeep(parseFragment(r`(?<=\A|\n(?!\z))`, { skipLookbehindValidation: true }), parent));
|
|
1986
|
-
else if (kind === "search_start")
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1997
|
+
else if (kind === "search_start") {
|
|
1998
|
+
if (supportedGNodes.has(node)) {
|
|
1999
|
+
root.flags.sticky = true;
|
|
2000
|
+
remove();
|
|
2001
|
+
} else {
|
|
2002
|
+
const prev = container[key - 1];
|
|
2003
|
+
if (prev && isAlwaysNonZeroLength(prev)) replaceWith(setParentDeep(K({ negate: true }), parent));
|
|
2004
|
+
else if (avoidSubclass) throw new Error(r`Uses "\G" in a way that requires a subclass`);
|
|
2005
|
+
else {
|
|
2006
|
+
replaceWith(setParent(F("string_start"), parent));
|
|
2007
|
+
state.strategy = "clip_search";
|
|
2008
|
+
}
|
|
1996
2009
|
}
|
|
1997
|
-
}
|
|
1998
|
-
else if (kind === "string_end" || kind === "string_start") {} else if (kind === "string_end_newline") replaceWith(setParentDeep(parseFragment(r`(?=\n?\z)`), parent));
|
|
2010
|
+
} else if (kind === "string_end" || kind === "string_start") {} else if (kind === "string_end_newline") replaceWith(setParentDeep(parseFragment(r`(?=\n?\z)`), parent));
|
|
1999
2011
|
else if (kind === "word_boundary") {
|
|
2000
2012
|
if (!wordIsAscii && !asciiWordBoundaries) {
|
|
2001
2013
|
const b = `(?:(?<=${defaultWordChar})(?!${defaultWordChar})|(?<!${defaultWordChar})(?=${defaultWordChar}))`;
|
|
@@ -2046,16 +2058,17 @@ var FirstPassVisitor = {
|
|
|
2046
2058
|
replaceWith(setParentDeep(parseFragment(r`(?>\r\n|${minTargetEs2024 ? r`\p{RGI_Emoji}` : emoji}|\P{M}\p{M}*)`, { skipPropertyNameValidation: true }), parent));
|
|
2047
2059
|
} else if (kind === "hex") replaceWith(setParent(Q("AHex", { negate }), parent));
|
|
2048
2060
|
else if (kind === "newline") replaceWith(setParentDeep(parseFragment(negate ? "[^\n]" : "(?>\r\n?|[\n\v\f
\u2028\u2029])"), parent));
|
|
2049
|
-
else if (kind === "posix")
|
|
2050
|
-
if (
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2061
|
+
else if (kind === "posix") {
|
|
2062
|
+
if (!minTargetEs2024 && (value === "graph" || value === "print")) {
|
|
2063
|
+
if (accuracy === "strict") throw new Error(`POSIX class "${value}" requires min target ES2024 or non-strict accuracy`);
|
|
2064
|
+
let ascii = {
|
|
2065
|
+
graph: "!-~",
|
|
2066
|
+
print: " -~"
|
|
2067
|
+
}[value];
|
|
2068
|
+
if (negate) ascii = `\0-${cp(ascii.codePointAt(0) - 1)}${cp(ascii.codePointAt(2) + 1)}-\u{10FFFF}`;
|
|
2069
|
+
replaceWith(setParentDeep(parseFragment(`[${ascii}]`), parent));
|
|
2070
|
+
} else replaceWith(setParentDeep(setNegate(parseFragment(PosixClassMap.get(value)), negate), parent));
|
|
2071
|
+
} else if (kind === "property") {
|
|
2059
2072
|
if (!JsUnicodePropertyMap.has(w(value))) node.key = "sc";
|
|
2060
2073
|
} else if (kind === "space") replaceWith(setParent(Q("space", { negate }), parent));
|
|
2061
2074
|
else if (kind === "word") replaceWith(setParentDeep(setNegate(parseFragment(defaultWordChar), negate), parent));
|
|
@@ -2063,13 +2076,14 @@ var FirstPassVisitor = {
|
|
|
2063
2076
|
},
|
|
2064
2077
|
Directive({ node, parent, root, remove, replaceWith, removeAllPrevSiblings, removeAllNextSiblings }) {
|
|
2065
2078
|
const { kind, flags } = node;
|
|
2066
|
-
if (kind === "flags")
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2079
|
+
if (kind === "flags") {
|
|
2080
|
+
if (!flags.enable && !flags.disable) remove();
|
|
2081
|
+
else {
|
|
2082
|
+
const flagGroup = A({ flags });
|
|
2083
|
+
flagGroup.body[0].body = removeAllNextSiblings();
|
|
2084
|
+
replaceWith(setParentDeep(flagGroup, parent), { traverse: true });
|
|
2085
|
+
}
|
|
2086
|
+
} else if (kind === "keep") {
|
|
2073
2087
|
const firstAlt = root.body[0];
|
|
2074
2088
|
const topLevel = root.body.length === 1 && o(firstAlt, { type: "Group" }) && firstAlt.body[0].body.length === 1 ? firstAlt.body[0] : root;
|
|
2075
2089
|
if (parent.parent !== topLevel || topLevel.body.length > 1) throw new Error(r`Uses "\K" in a way that's unsupported`);
|
|
@@ -2205,7 +2219,7 @@ var SecondPassVisitor = {
|
|
|
2205
2219
|
}
|
|
2206
2220
|
},
|
|
2207
2221
|
exit({ node }, { openRefs }) {
|
|
2208
|
-
openRefs.delete(node.number);
|
|
2222
|
+
if (openRefs.get(node.number) === node) openRefs.delete(node.number);
|
|
2209
2223
|
}
|
|
2210
2224
|
},
|
|
2211
2225
|
Group: {
|
|
@@ -3057,7 +3071,7 @@ function toRegExpDetails(pattern, options) {
|
|
|
3057
3071
|
return details;
|
|
3058
3072
|
}
|
|
3059
3073
|
//#endregion
|
|
3060
|
-
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@4.
|
|
3074
|
+
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@4.3.1/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs
|
|
3061
3075
|
/**
|
|
3062
3076
|
* The default regex constructor for the JavaScript RegExp engine.
|
|
3063
3077
|
*/
|
|
@@ -3085,10 +3099,11 @@ function defaultJavaScriptRegexConstructor(pattern, options) {
|
|
|
3085
3099
|
* Set `forgiving` to `true` to ignore these errors and skip any unsupported or invalid patterns.
|
|
3086
3100
|
*/
|
|
3087
3101
|
function createJavaScriptRegexEngine(options = {}) {
|
|
3088
|
-
const _options =
|
|
3102
|
+
const _options = {
|
|
3089
3103
|
target: "auto",
|
|
3090
|
-
cache: /* @__PURE__ */ new Map()
|
|
3091
|
-
|
|
3104
|
+
cache: /* @__PURE__ */ new Map(),
|
|
3105
|
+
...options
|
|
3106
|
+
};
|
|
3092
3107
|
_options.regexConstructor ||= (pattern) => defaultJavaScriptRegexConstructor(pattern, { target: _options.target });
|
|
3093
3108
|
return {
|
|
3094
3109
|
createScanner(patterns) {
|