@loicngr/kobo 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/dist/mcp-server/kobo-tasks-handlers.js +2 -1
- package/dist/server/routes/health.js +2 -2
- package/dist/server/routes/settings.js +2 -1
- package/dist/server/routes/workspaces.js +5 -11
- package/dist/server/services/agent/engines/claude-code/engine.js +6 -0
- package/dist/server/services/agent/engines/claude-code/resolve-binary.js +50 -0
- package/dist/server/services/agent/orchestrator.js +14 -5
- package/dist/server/services/auto-loop-service.js +2 -2
- package/dist/server/services/dev-server-service.js +2 -2
- package/dist/server/services/pr-watcher-service.js +63 -13
- package/dist/server/services/settings-service.js +62 -1
- package/dist/server/services/wakeup-service.js +2 -2
- package/dist/server/services/workspace-service.js +23 -1
- package/dist/server/services/worktree-service.js +17 -7
- package/dist/server/utils/git-ops.js +12 -4
- package/dist/server/utils/worktree-paths.js +134 -0
- package/dist/shared/consts.js +1 -0
- package/package.json +1 -1
- package/src/client/dist/spa/assets/ActivityFeed-B85xav_e.js +7 -0
- package/src/client/dist/spa/assets/ClosePopup-BP025_cK.js +1 -0
- package/src/client/dist/spa/assets/{CreatePage-U6TtJzNe.js → CreatePage-DyR33jFM.js} +2 -2
- package/src/client/dist/spa/assets/{DiffViewer-Di85TBIi.js → DiffViewer-CqhpTkym.js} +3 -3
- package/src/client/dist/spa/assets/{HealthPage-B7aWFxAZ.js → HealthPage-CkHv5qMK.js} +1 -1
- package/src/client/dist/spa/assets/{MainLayout-Dba6SdpU.css → MainLayout-B07zv82Z.css} +1 -1
- package/src/client/dist/spa/assets/{MainLayout-BHBrz4c9.js → MainLayout-l91ohFQA.js} +4 -4
- package/src/client/dist/spa/assets/{QBadge-fsQ2AokU.js → QBadge-DWH42dbo.js} +1 -1
- package/src/client/dist/spa/assets/{QBtn-DHwAb18J.js → QBtn-a6jxWjmW.js} +1 -1
- package/src/client/dist/spa/assets/{QCheckbox-CcY7ZSk9.js → QCheckbox-D5jfsxLV.js} +1 -1
- package/src/client/dist/spa/assets/{QChip-BhT0W2Dg.js → QChip-ByxK0Tuf.js} +1 -1
- package/src/client/dist/spa/assets/QExpansionItem-BaQJkGb-.js +1 -0
- package/src/client/dist/spa/assets/{QIcon-B0-pH3Qs.js → QIcon-BJuyqdsT.js} +1 -1
- package/src/client/dist/spa/assets/QInput-Cm5-AGQ4.js +1 -0
- package/src/client/dist/spa/assets/{QItemLabel-DWwenW2S.js → QItemLabel-DrTxqTqV.js} +1 -1
- package/src/client/dist/spa/assets/{QItemSection-KFAnxzMK.js → QItemSection-5YpFpPDm.js} +1 -1
- package/src/client/dist/spa/assets/{QList-NmIE6Rd9.js → QList-D0FtnQJI.js} +1 -1
- package/src/client/dist/spa/assets/QMenu-DgWZe7Uh.js +1 -0
- package/src/client/dist/spa/assets/QPage-ChUKoaKe.js +1 -0
- package/src/client/dist/spa/assets/{QRadio-DaZhdLCg.js → QRadio-B3aKjCVu.js} +1 -1
- package/src/client/dist/spa/assets/QScrollArea-usfgatuS.js +1 -0
- package/src/client/dist/spa/assets/{QSpace-COlmM_4F.js → QSpace-CLtL3aPy.js} +1 -1
- package/src/client/dist/spa/assets/{QSpinnerDots-DwtnRN2r.js → QSpinnerDots-CszPQQ9J.js} +1 -1
- package/src/client/dist/spa/assets/QTabPanels-CjpZTIJg.js +1 -0
- package/src/client/dist/spa/assets/{QToggle-CGpiJLDJ.js → QToggle-1-N9qWq4.js} +1 -1
- package/src/client/dist/spa/assets/QTooltip-D_hSPb7r.js +1 -0
- package/src/client/dist/spa/assets/{SearchPage-CVm-sqxH.js → SearchPage-B1WhFCUf.js} +1 -1
- package/src/client/dist/spa/assets/SettingsPage-B7S5fXGG.js +1 -0
- package/src/client/dist/spa/assets/SettingsPage-kHd651y8.css +1 -0
- package/src/client/dist/spa/assets/TouchPan-1PETKHN0.js +1 -0
- package/src/client/dist/spa/assets/WorkspacePage-D3MBshNH.js +4 -0
- package/src/client/dist/spa/assets/{WorkspacePage-DQxGe62K.css → WorkspacePage-d_B0-LNG.css} +1 -1
- package/src/client/dist/spa/assets/{build-path-tree-CdY1A6aP.js → build-path-tree-w3SEPAbh.js} +1 -1
- package/src/client/dist/spa/assets/{cssMode-BVNBMOxh.js → cssMode-B6CD4qMI.js} +1 -1
- package/src/client/dist/spa/assets/{documents-D6A3wRry.js → documents-kx0vLfSG.js} +1 -1
- package/src/client/dist/spa/assets/{editor.api-D6Vfp5yv.js → editor.api-wizjkvCK.js} +1 -1
- package/src/client/dist/spa/assets/{editor.main-CTCYF6V4.js → editor.main-Bn6fpPLF.js} +3 -3
- package/src/client/dist/spa/assets/expand-template-Cu5GSLCM.js +1 -0
- package/src/client/dist/spa/assets/{formatters-ejxELb0M.js → formatters-BD0_hovB.js} +1 -1
- package/src/client/dist/spa/assets/{freemarker2-nmzwPmzi.js → freemarker2-DW-DFUis.js} +1 -1
- package/src/client/dist/spa/assets/{handlebars-CI9lR7Ef.js → handlebars-CSSQFRHS.js} +1 -1
- package/src/client/dist/spa/assets/{html-BQ21REnv.js → html-Ba5lfQna.js} +1 -1
- package/src/client/dist/spa/assets/{htmlMode-io5J5Qr1.js → htmlMode-ocrlHn5h.js} +1 -1
- package/src/client/dist/spa/assets/i18n-CqK8B0Nz.js +1 -0
- package/src/client/dist/spa/assets/index-DE3PxEjy.js +2 -0
- package/src/client/dist/spa/assets/{javascript--u9PDBCv.js → javascript-DL3j24x3.js} +1 -1
- package/src/client/dist/spa/assets/{jsonMode-DBG5llk4.js → jsonMode-CtFp2BJe.js} +1 -1
- package/src/client/dist/spa/assets/{liquid-DxAS4nYF.js → liquid-B_GGNnlJ.js} +1 -1
- package/src/client/dist/spa/assets/marked.esm-D4t0_2pc.js +60 -0
- package/src/client/dist/spa/assets/{mdx-BNXTiODW.js → mdx-BXe8MrIz.js} +1 -1
- package/src/client/dist/spa/assets/models-BMOYJtwv.js +1 -0
- package/src/client/dist/spa/assets/{monaco.contribution-CT3LAK0J.js → monaco.contribution-DSSRKV2r.js} +2 -2
- package/src/client/dist/spa/assets/notifications-CG-oL2m2.js +1 -0
- package/src/client/dist/spa/assets/{python-DztNww13.js → python-DPtBXcrE.js} +1 -1
- package/src/client/dist/spa/assets/{razor-Cyr82NZF.js → razor-y1p5VjhT.js} +1 -1
- package/src/client/dist/spa/assets/{tsMode-CbQVgsIP.js → tsMode-CV2CQlAd.js} +1 -1
- package/src/client/dist/spa/assets/{typescript-UHOe4d1S.js → typescript-DsjWQLAN.js} +1 -1
- package/src/client/dist/spa/assets/use-checkbox-D7zmRxGI.js +1 -0
- package/src/client/dist/spa/assets/{use-id-CDuXkR0Z.js → use-id-CuaR1RiE.js} +1 -1
- package/src/client/dist/spa/assets/use-panel-D2MjPZiL.js +1 -0
- package/src/client/dist/spa/assets/{xml-DC88eFpV.js → xml-AQhpP8em.js} +1 -1
- package/src/client/dist/spa/assets/{yaml-DSTsIRJr.js → yaml-zZFlU7RD.js} +1 -1
- package/src/client/dist/spa/index.html +11 -13
- package/src/client/dist/spa/sounds/ca_va_peter.mp3 +0 -0
- package/src/client/dist/spa/sounds/dry-fart.mp3 +0 -0
- package/src/client/dist/spa/sounds/faaah.mp3 +0 -0
- package/src/client/dist/spa/sounds/for-shure.mp3 +0 -0
- package/src/client/dist/spa/sounds/travail_termine.mp3 +0 -0
- package/src/mcp-server/kobo-tasks-handlers.ts +2 -1
- package/src/client/dist/spa/assets/ActivityFeed-CIJPN8TH.js +0 -7
- package/src/client/dist/spa/assets/ClosePopup-DzB3mDtj.js +0 -1
- package/src/client/dist/spa/assets/QExpansionItem-VS4b4eY6.js +0 -1
- package/src/client/dist/spa/assets/QInput-D4WJro4e.js +0 -1
- package/src/client/dist/spa/assets/QMenu-CchbRXbp.js +0 -1
- package/src/client/dist/spa/assets/QPage-Cu7zkfc6.js +0 -1
- package/src/client/dist/spa/assets/QResizeObserver-Cf79V-VZ.js +0 -1
- package/src/client/dist/spa/assets/QScrollArea-DrVTDLU0.js +0 -1
- package/src/client/dist/spa/assets/QTabPanels-HXz-evuj.js +0 -1
- package/src/client/dist/spa/assets/QTooltip-DjJYMTkN.js +0 -1
- package/src/client/dist/spa/assets/SettingsPage-ayDKGo9H.js +0 -1
- package/src/client/dist/spa/assets/SettingsPage-wTBCvK6t.css +0 -1
- package/src/client/dist/spa/assets/WorkspacePage-xaVy8s5i.js +0 -4
- package/src/client/dist/spa/assets/expand-template-vHV2iwXf.js +0 -1
- package/src/client/dist/spa/assets/i18n-Do8Kn8n0.js +0 -1
- package/src/client/dist/spa/assets/index-C_e7KOYh.js +0 -2
- package/src/client/dist/spa/assets/is-BbsvEMaT.js +0 -1
- package/src/client/dist/spa/assets/marked.esm-DuOsJx63.js +0 -60
- package/src/client/dist/spa/assets/models-DNYEhFF7.js +0 -1
- package/src/client/dist/spa/assets/settings-Dbx1_ksA.js +0 -1
- package/src/client/dist/spa/assets/symbols-BVRrMH2r.js +0 -1
- package/src/client/dist/spa/assets/use-checkbox-DzHmcu7s.js +0 -1
- package/src/client/dist/spa/assets/use-panel-Br8QNRMk.js +0 -1
- /package/src/client/dist/spa/assets/{_plugin-vue_export-helper-B8bB5DBd.js → _plugin-vue_export-helper-Cj6tcsj6.js} +0 -0
- /package/src/client/dist/spa/assets/{abap-DzK-OTGh.js → abap-DiwvWnMr.js} +0 -0
- /package/src/client/dist/spa/assets/{apex-Bj60_dRt.js → apex-CmtZjKlf.js} +0 -0
- /package/src/client/dist/spa/assets/{azcli-B6NwaBAZ.js → azcli-DL2My_i-.js} +0 -0
- /package/src/client/dist/spa/assets/{bat-bf7wXV68.js → bat-B-nC98wG.js} +0 -0
- /package/src/client/dist/spa/assets/{bicep-C_bg8UgA.js → bicep-Ju5MwOgh.js} +0 -0
- /package/src/client/dist/spa/assets/{cameligo-CTWw4D4B.js → cameligo-8Eu1TyBr.js} +0 -0
- /package/src/client/dist/spa/assets/{clojure-CgdPoH0r.js → clojure-u-RpMkH3.js} +0 -0
- /package/src/client/dist/spa/assets/{coffee-gHQfdA5M.js → coffee-CdA7bbTe.js} +0 -0
- /package/src/client/dist/spa/assets/{cpp-BM4Jj4aW.js → cpp-CzNFP8ks.js} +0 -0
- /package/src/client/dist/spa/assets/{csharp-D8-bh4Cd.js → csharp-j1LThmcE.js} +0 -0
- /package/src/client/dist/spa/assets/{csp-CXBxRx0n.js → csp-CLRC61y6.js} +0 -0
- /package/src/client/dist/spa/assets/{css-DKjIxrmY.js → css-r6rC_7P2.js} +0 -0
- /package/src/client/dist/spa/assets/{cypher-C5e5inIh.js → cypher-CW08XVUh.js} +0 -0
- /package/src/client/dist/spa/assets/{dart-BhRHHm4x.js → dart-Cs9aL5T_.js} +0 -0
- /package/src/client/dist/spa/assets/{dockerfile-DW5REF8E.js → dockerfile-BWM0M184.js} +0 -0
- /package/src/client/dist/spa/assets/{ecl-Bw4Hg3n_.js → ecl-MJJuer5P.js} +0 -0
- /package/src/client/dist/spa/assets/{elixir-DHmoBvpZ.js → elixir-D2AIuXqn.js} +0 -0
- /package/src/client/dist/spa/assets/{flow9-BsFExz3v.js → flow9-B2H24giC.js} +0 -0
- /package/src/client/dist/spa/assets/{fsharp-BaeLhgfq.js → fsharp-CMk2OIJN.js} +0 -0
- /package/src/client/dist/spa/assets/{go-Bd-NFKIC.js → go-BrMkuJg0.js} +0 -0
- /package/src/client/dist/spa/assets/{graphql-DZVerJfy.js → graphql-PSR1UKGv.js} +0 -0
- /package/src/client/dist/spa/assets/{hcl-CAVzrZfH.js → hcl-DAQrbDOW.js} +0 -0
- /package/src/client/dist/spa/assets/{ini-CyXdX58t.js → ini-0TG5BxW0.js} +0 -0
- /package/src/client/dist/spa/assets/{java-B5pNgvhy.js → java-rgorz17v.js} +0 -0
- /package/src/client/dist/spa/assets/{julia-XRhmV3AN.js → julia-C8VMdHm8.js} +0 -0
- /package/src/client/dist/spa/assets/{kobo-commands-DiUm1Y34.js → kobo-commands-w8VepGvD.js} +0 -0
- /package/src/client/dist/spa/assets/{kotlin-DOd3J5vr.js → kotlin-CllWo3gX.js} +0 -0
- /package/src/client/dist/spa/assets/{less-veZSnyw6.js → less-Cgca25AP.js} +0 -0
- /package/src/client/dist/spa/assets/{lexon-QWGkuK0H.js → lexon-D0GHdBaw.js} +0 -0
- /package/src/client/dist/spa/assets/{lua-CYGpjuO5.js → lua-DmRsNG-P.js} +0 -0
- /package/src/client/dist/spa/assets/{m3-yNnrZkdc.js → m3-BgL5dNKT.js} +0 -0
- /package/src/client/dist/spa/assets/{markdown-BCSWEPSX.js → markdown-BuJfycGS.js} +0 -0
- /package/src/client/dist/spa/assets/{mips-OpYmcC30.js → mips-C9m_93PR.js} +0 -0
- /package/src/client/dist/spa/assets/{msdax-2oxoTO9Z.js → msdax-CpFHC9OI.js} +0 -0
- /package/src/client/dist/spa/assets/{mysql-5KlC-K_9.js → mysql-qFvltsqN.js} +0 -0
- /package/src/client/dist/spa/assets/{objective-c-CcDCgtLx.js → objective-c-Bnmr858J.js} +0 -0
- /package/src/client/dist/spa/assets/{pascal-BZGsbaEV.js → pascal-WP0_D5AO.js} +0 -0
- /package/src/client/dist/spa/assets/{pascaligo-DtD5qU3G.js → pascaligo-Blom4Rij.js} +0 -0
- /package/src/client/dist/spa/assets/{perl-C1jNNS3E.js → perl-B-vk8g64.js} +0 -0
- /package/src/client/dist/spa/assets/{pgsql-CT0fhiZa.js → pgsql-Cgvz6v67.js} +0 -0
- /package/src/client/dist/spa/assets/{php-D6DrXoPM.js → php-8a3Lrw9m.js} +0 -0
- /package/src/client/dist/spa/assets/{pla-b3-HN2pF.js → pla-DuFqEZ8V.js} +0 -0
- /package/src/client/dist/spa/assets/{postiats-Bin2ApVS.js → postiats-DkLtSgkp.js} +0 -0
- /package/src/client/dist/spa/assets/{powerquery-7ASnn-ZG.js → powerquery-BJ1aNepW.js} +0 -0
- /package/src/client/dist/spa/assets/{powershell-t4p7sU1H.js → powershell-rE98k687.js} +0 -0
- /package/src/client/dist/spa/assets/{protobuf-BUGeWa_j.js → protobuf-CUheFacr.js} +0 -0
- /package/src/client/dist/spa/assets/{pug-BuKcgC9s.js → pug-LDcAMD8w.js} +0 -0
- /package/src/client/dist/spa/assets/{qsharp-DSMtI_O7.js → qsharp-DUKSQoR1.js} +0 -0
- /package/src/client/dist/spa/assets/{r-DMlFgn7A.js → r-D-QApv87.js} +0 -0
- /package/src/client/dist/spa/assets/{redis-cXItkC5u.js → redis-SXdDyWR9.js} +0 -0
- /package/src/client/dist/spa/assets/{redshift-BZVbW7HE.js → redshift-Y6lsCryn.js} +0 -0
- /package/src/client/dist/spa/assets/{restructuredtext-BzjxwS8h.js → restructuredtext-edObr9a8.js} +0 -0
- /package/src/client/dist/spa/assets/{ruby-C5nyLV4l.js → ruby-CNnUfF-8.js} +0 -0
- /package/src/client/dist/spa/assets/{rust-BcmMsHdf.js → rust-IHUZWzBr.js} +0 -0
- /package/src/client/dist/spa/assets/{sb-Dnb1iy6B.js → sb-DrUvY44N.js} +0 -0
- /package/src/client/dist/spa/assets/{scala-anMIFYpA.js → scala-B4hbXGLM.js} +0 -0
- /package/src/client/dist/spa/assets/{scheme-BItQTe08.js → scheme-BGrd12j3.js} +0 -0
- /package/src/client/dist/spa/assets/{scss-BOv51BJ5.js → scss-x5G1ES4U.js} +0 -0
- /package/src/client/dist/spa/assets/{shell-BsRYRTNN.js → shell-DOehe2Y8.js} +0 -0
- /package/src/client/dist/spa/assets/{solidity-BtuLgGDx.js → solidity-BeRvcwWV.js} +0 -0
- /package/src/client/dist/spa/assets/{sophia-B0Vkc5MF.js → sophia-DZbkUNjy.js} +0 -0
- /package/src/client/dist/spa/assets/{sparql-B7lvkZQM.js → sparql-B7_oi5-h.js} +0 -0
- /package/src/client/dist/spa/assets/{sql-DvP5MpA3.js → sql-CTlsFWVE.js} +0 -0
- /package/src/client/dist/spa/assets/{st-GVUeyB3U.js → st-DJVEJdPE.js} +0 -0
- /package/src/client/dist/spa/assets/{swift-DSPIoCjm.js → swift-CwhT3fYa.js} +0 -0
- /package/src/client/dist/spa/assets/{systemverilog-Icj2-k23.js → systemverilog-BQN63pkN.js} +0 -0
- /package/src/client/dist/spa/assets/{tcl-Cd8KQcm-.js → tcl-DqwfpskA.js} +0 -0
- /package/src/client/dist/spa/assets/{touch-Co9pfjUU.js → touch-HRdTUO2o.js} +0 -0
- /package/src/client/dist/spa/assets/{twig-CBHmt8z3.js → twig-BiyenUgc.js} +0 -0
- /package/src/client/dist/spa/assets/{typespec-Ckc037mq.js → typespec-CWOJribt.js} +0 -0
- /package/src/client/dist/spa/assets/{use-quasar-Cc4smfg5.js → use-quasar-Sdcq6zzV.js} +0 -0
- /package/src/client/dist/spa/assets/{vb-B97GW9Wb.js → vb-Cq5F87m3.js} +0 -0
- /package/src/client/dist/spa/assets/{vue-i18n-eUDnMrPl.js → vue-i18n-BcfTCFFS.js} +0 -0
- /package/src/client/dist/spa/assets/{wgsl-DIKmb3YH.js → wgsl-BAvW2lVr.js} +0 -0
- /package/src/client/dist/spa/{notification.mp3 → sounds/hey.mp3} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(t,n){if(t===n)return!0;if(t!==null&&n!==null&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;let r,i;if(t.constructor===Array){if(r=t.length,r!==n.length)return!1;for(i=r;i--!==0;)if(e(t[i],n[i])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==n.size)return!1;let r=t.entries();for(i=r.next();i.done!==!0;){if(n.has(i.value[0])!==!0)return!1;i=r.next()}for(r=t.entries(),i=r.next();i.done!==!0;){if(e(i.value[1],n.get(i.value[0]))!==!0)return!1;i=r.next()}return!0}if(t.constructor===Set){if(t.size!==n.size)return!1;let e=t.entries();for(i=e.next();i.done!==!0;){if(n.has(i.value[0])!==!0)return!1;i=e.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(r=t.length,r!==n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let a=Object.keys(t).filter(e=>t[e]!==void 0);if(r=a.length,r!==Object.keys(n).filter(e=>n[e]!==void 0).length)return!1;for(i=r;i--!==0;){let r=a[i];if(e(t[r],n[r])!==!0)return!1}return!0}return t!==t&&n!==n}function t(e){return typeof e==`object`&&!!e&&Array.isArray(e)!==!0}export{t as n,e as t};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import{H as e,M as t,k as n,y as r}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{C as i,D as a,E as o,O as s,S as c,T as l,_ as u,b as d,k as ee,v as f,w as p,x as te}from"./QIcon-B0-pH3Qs.js";import{f as m}from"./use-id-CDuXkR0Z.js";import{d as ne,l as re,o as ie,s as h}from"./settings-Dbx1_ksA.js";import{u as g}from"./index-C_e7KOYh.js";import{p as ae}from"./QTooltip-DjJYMTkN.js";import{n as oe,t as se}from"./touch-Co9pfjUU.js";var{passive:ce}=te,le=[`both`,`horizontal`,`vertical`],_=s({name:`QScrollObserver`,props:{axis:{type:String,validator:e=>le.includes(e),default:`vertical`},debounce:[String,Number],scrollTarget:ne},emits:[`scroll`],setup(i,{emit:a}){let o={position:{top:0,left:0},direction:`down`,directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}},s=null,l,u;e(()=>i.scrollTarget,()=>{f(),ee()});function d(){s?.();let e=Math.max(0,re(l)),t=ie(l),n={top:e-o.position.top,left:t-o.position.left};if(i.axis===`vertical`&&n.top===0||i.axis===`horizontal`&&n.left===0)return;let r=Math.abs(n.top)>=Math.abs(n.left)?n.top<0?`up`:`down`:n.left<0?`left`:`right`;o.position={top:e,left:t},o.directionChanged=o.direction!==r,o.delta=n,o.directionChanged===!0&&(o.direction=r,o.inflectionPoint=o.position),a(`scroll`,{...o})}function ee(){l=h(u,i.scrollTarget),l.addEventListener(`scroll`,p,ce),p(!0)}function f(){l!==void 0&&(l.removeEventListener(`scroll`,p,ce),l=void 0)}function p(e){if(e===!0||i.debounce===0||i.debounce===`0`)d();else if(s===null){let[e,t]=i.debounce?[setTimeout(d,i.debounce),clearTimeout]:[requestAnimationFrame(d),cancelAnimationFrame];s=()=>{t(e),s=null}}}let{proxy:te}=r();return e(()=>te.$q.lang.rtl,d),t(()=>{u=te.$el.parentNode,ee()}),n(()=>{s?.(),f()}),Object.assign(te,{trigger:p,getPosition:()=>o}),c}});function ue(e,t,n){let r=i(e),a,o=r.left-t.event.x,s=r.top-t.event.y,c=Math.abs(o),l=Math.abs(s),u=t.direction;u.horizontal===!0&&u.vertical!==!0?a=o<0?`left`:`right`:u.horizontal!==!0&&u.vertical===!0?a=s<0?`up`:`down`:u.up===!0&&s<0?(a=`up`,c>l&&(u.left===!0&&o<0?a=`left`:u.right===!0&&o>0&&(a=`right`))):u.down===!0&&s>0?(a=`down`,c>l&&(u.left===!0&&o<0?a=`left`:u.right===!0&&o>0&&(a=`right`))):u.left===!0&&o<0?(a=`left`,c<l&&(u.up===!0&&s<0?a=`up`:u.down===!0&&s>0&&(a=`down`))):u.right===!0&&o>0&&(a=`right`,c<l&&(u.up===!0&&s<0?a=`up`:u.down===!0&&s>0&&(a=`down`)));let d=!1;if(a===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};a=t.event.lastDir,d=!0,a===`left`||a===`right`?(r.left-=o,c=0,o=0):(r.top-=s,l=0,s=0)}return{synthetic:d,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:r,direction:a,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:c,y:l},offset:{x:o,y:s},delta:{x:r.left-t.event.lastX,y:r.top-t.event.lastY}}}}var de=0,fe=ee({name:`touch-pan`,beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&m.has.touch!==!0)return;function r(e,t){n.mouse===!0&&t===!0?a(e):(n.stop===!0&&o(e),n.prevent===!0&&p(e))}let s={uid:`qvtp_`+ de++,handler:t,modifiers:n,direction:se(n),noop:c,mouseStart(e){oe(e,s)&&d(e)&&(u(s,`temp`,[[document,`mousemove`,`move`,`notPassiveCapture`],[document,`mouseup`,`end`,`passiveCapture`]]),s.start(e,!0))},touchStart(e){if(oe(e,s)){let t=e.target;u(s,`temp`,[[t,`touchmove`,`move`,`notPassiveCapture`],[t,`touchcancel`,`end`,`passiveCapture`],[t,`touchend`,`end`,`passiveCapture`]]),s.start(e)}},start(t,r){if(m.is.firefox===!0&&l(e,!0),s.lastEvt=t,r===!0||n.stop===!0){if(s.direction.all!==!0&&(r!==!0||s.modifiers.mouseAllDir!==!0&&s.modifiers.mousealldir!==!0)){let e=t.type.indexOf(`mouse`)===-1?new TouchEvent(t.type,t):new MouseEvent(t.type,t);t.defaultPrevented===!0&&p(e),t.cancelBubble===!0&&o(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:t.qClonedBy===void 0?[s.uid]:t.qClonedBy.concat(s.uid)}),s.initialEvent={target:t.target,event:e}}o(t)}let{left:a,top:c}=i(t);s.event={x:a,y:c,time:Date.now(),mouse:r===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:c}},move(e){if(s.event===void 0)return;let t=i(e),a=t.left-s.event.x,o=t.top-s.event.y;if(a===0&&o===0)return;s.lastEvt=e;let c=s.event.mouse===!0,l=()=>{r(e,c);let t;n.preserveCursor!==!0&&n.preservecursor!==!0&&(t=document.documentElement.style.cursor||``,document.documentElement.style.cursor=`grabbing`),c===!0&&document.body.classList.add(`no-pointer-events--children`),document.body.classList.add(`non-selectable`),ae(),s.styleCleanup=e=>{if(s.styleCleanup=void 0,t!==void 0&&(document.documentElement.style.cursor=t),document.body.classList.remove(`non-selectable`),c===!0){let t=()=>{document.body.classList.remove(`no-pointer-events--children`)};e===void 0?t():setTimeout(()=>{t(),e()},50)}else e!==void 0&&e()}};if(s.event.detected===!0){s.event.isFirst!==!0&&r(e,s.event.mouse);let{payload:t,synthetic:n}=ue(e,s,!1);t!==void 0&&(s.handler(t)===!1?s.end(e):(s.styleCleanup===void 0&&s.event.isFirst===!0&&l(),s.event.lastX=t.position.left,s.event.lastY=t.position.top,s.event.lastDir=n===!0?void 0:t.direction,s.event.isFirst=!1));return}if(s.direction.all===!0||c===!0&&(s.modifiers.mouseAllDir===!0||s.modifiers.mousealldir===!0)){l(),s.event.detected=!0,s.move(e);return}let u=Math.abs(a),d=Math.abs(o);u!==d&&(s.direction.horizontal===!0&&u>d||s.direction.vertical===!0&&u<d||s.direction.up===!0&&u<d&&o<0||s.direction.down===!0&&u<d&&o>0||s.direction.left===!0&&u>d&&a<0||s.direction.right===!0&&u>d&&a>0?(s.event.detected=!0,s.move(e)):s.end(e,!0))},end(t,n){if(s.event!==void 0){if(f(s,`temp`),m.is.firefox===!0&&l(e,!1),n===!0)s.styleCleanup?.(),s.event.detected!==!0&&s.initialEvent!==void 0&&s.initialEvent.target.dispatchEvent(s.initialEvent.event);else if(s.event.detected===!0){s.event.isFirst===!0&&s.handler(ue(t===void 0?s.lastEvt:t,s).payload);let{payload:e}=ue(t===void 0?s.lastEvt:t,s,!0),n=()=>{s.handler(e)};s.styleCleanup===void 0?n():s.styleCleanup(n)}s.event=void 0,s.initialEvent=void 0,s.lastEvt=void 0}}};e.__qtouchpan=s,n.mouse===!0&&u(s,`main`,[[e,`mousedown`,`mouseStart`,`passive${n.mouseCapture===!0||n.mousecapture===!0?`Capture`:``}`]]),m.has.touch===!0&&u(s,`main`,[[e,`touchstart`,`touchStart`,`passive${n.capture===!0?`Capture`:``}`],[e,`touchmove`,`noop`,`notPassiveCapture`]])},updated(e,t){let n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!=`function`&&n.end(),n.handler=t.value),n.direction=se(t.modifiers))},beforeUnmount(e){let t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),f(t,`main`),f(t,`temp`),m.is.firefox===!0&&l(e,!1),t.styleCleanup?.(),delete e.__qtouchpan)}}),{entries:pe,setPrototypeOf:me,isFrozen:he,getPrototypeOf:ge,getOwnPropertyDescriptor:_e}=Object,{freeze:v,seal:y,create:ve}=Object,{apply:ye,construct:b}=typeof Reflect<`u`&&Reflect;v||=function(e){return e},y||=function(e){return e},ye||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},b||=function(e){return new e(...[...arguments].slice(1))};var be=C(Array.prototype.forEach),xe=C(Array.prototype.lastIndexOf),Se=C(Array.prototype.pop),Ce=C(Array.prototype.push),we=C(Array.prototype.splice),Te=C(String.prototype.toLowerCase),Ee=C(String.prototype.toString),De=C(String.prototype.match),Oe=C(String.prototype.replace),ke=C(String.prototype.indexOf),Ae=C(String.prototype.trim),x=C(Object.prototype.hasOwnProperty),S=C(RegExp.prototype.test),je=w(TypeError);function C(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ye(e,t,n)}}function w(e){return function(){return b(e,[...arguments])}}function T(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Te;me&&me(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(he(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Me(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function E(e){let t=ve(null);for(let[n,r]of pe(e))x(e,n)&&(Array.isArray(r)?t[n]=Me(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=E(r):t[n]=r);return t}function Ne(e,t){for(;e!==null;){let n=_e(e,t);if(n){if(n.get)return C(n.get);if(typeof n.value==`function`)return C(n.value)}e=ge(e)}function n(){return null}return n}var Pe=v(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Fe=v(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Ie=v([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Le=v([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Re=v(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ze=v([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Be=v([`#text`]),Ve=v(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),He=v(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Ue=v(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),We=v([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),D=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ge=y(/<%[\w\W]*|[\w\W]*%>/gm),Ke=y(/\$\{[\w\W]*/gm),O=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),qe=y(/^aria-[\-\w]+$/),Je=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ye=y(/^(?:\w+script|data):/i),Xe=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ze=y(/^html$/i),Qe=y(/^[a-z][.\w]*(-[.\w]+)+$/i),$e=Object.freeze({__proto__:null,ARIA_ATTR:qe,ATTR_WHITESPACE:Xe,CUSTOM_ELEMENT:Qe,DATA_ATTR:O,DOCTYPE_NAME:Ze,ERB_EXPR:Ge,IS_ALLOWED_URI:Je,IS_SCRIPT_OR_DATA:Ye,MUSTACHE_EXPR:D,TMPLIT_EXPR:Ke}),et={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},tt=function(){return typeof window>`u`?null:window},nt=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},rt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function it(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tt(),t=e=>it(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==et.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:ee,trustedTypes:f}=e,p=c.prototype,te=Ne(p,`cloneNode`),m=Ne(p,`remove`),ne=Ne(p,`nextSibling`),re=Ne(p,`childNodes`),ie=Ne(p,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let h,g=``,{implementation:ae,createNodeIterator:oe,createDocumentFragment:se,getElementsByTagName:ce}=n,{importNode:le}=r,_=rt();t.isSupported=typeof pe==`function`&&typeof ie==`function`&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:me,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:y}=$e,{IS_ALLOWED_URI:ye}=$e,b=null,C=T({},[...Pe,...Fe,...Ie,...Re,...Be]),w=null,Me=T({},[...Ve,...He,...Ue,...We]),D=Object.seal(ve(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ge=null,Ke=null,O=Object.seal(ve(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),qe=!0,Ye=!0,Xe=!1,Qe=!0,k=!1,A=!0,j=!1,M=!1,at=!1,N=!1,P=!1,ot=!1,F=!0,st=!1,ct=!0,lt=!1,I={},L=null,ut=T({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),dt=null,ft=T({},[`audio`,`video`,`img`,`source`,`image`,`track`]),pt=null,mt=T({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ht=`http://www.w3.org/1998/Math/MathML`,R=`http://www.w3.org/2000/svg`,z=`http://www.w3.org/1999/xhtml`,B=z,V=!1,gt=null,_t=T({},[ht,R,z],Ee),vt=T({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),H=T({},[`annotation-xml`]),yt=T({},[`title`,`style`,`font`,`a`,`script`]),bt=null,xt=[`application/xhtml+xml`,`text/html`],U=null,W=null,St=n.createElement(`form`),Ct=function(e){return e instanceof RegExp||e instanceof Function},G=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(W&&W===e)){if((!e||typeof e!=`object`)&&(e={}),e=E(e),bt=xt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,U=bt===`application/xhtml+xml`?Ee:Te,b=x(e,`ALLOWED_TAGS`)?T({},e.ALLOWED_TAGS,U):C,w=x(e,`ALLOWED_ATTR`)?T({},e.ALLOWED_ATTR,U):Me,gt=x(e,`ALLOWED_NAMESPACES`)?T({},e.ALLOWED_NAMESPACES,Ee):_t,pt=x(e,`ADD_URI_SAFE_ATTR`)?T(E(mt),e.ADD_URI_SAFE_ATTR,U):mt,dt=x(e,`ADD_DATA_URI_TAGS`)?T(E(ft),e.ADD_DATA_URI_TAGS,U):ft,L=x(e,`FORBID_CONTENTS`)?T({},e.FORBID_CONTENTS,U):ut,Ge=x(e,`FORBID_TAGS`)?T({},e.FORBID_TAGS,U):E({}),Ke=x(e,`FORBID_ATTR`)?T({},e.FORBID_ATTR,U):E({}),I=x(e,`USE_PROFILES`)?e.USE_PROFILES:!1,qe=e.ALLOW_ARIA_ATTR!==!1,Ye=e.ALLOW_DATA_ATTR!==!1,Xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,A=e.SAFE_FOR_XML!==!1,j=e.WHOLE_DOCUMENT||!1,N=e.RETURN_DOM||!1,P=e.RETURN_DOM_FRAGMENT||!1,ot=e.RETURN_TRUSTED_TYPE||!1,at=e.FORCE_BODY||!1,F=e.SANITIZE_DOM!==!1,st=e.SANITIZE_NAMED_PROPS||!1,ct=e.KEEP_CONTENT!==!1,lt=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||Je,B=e.NAMESPACE||z,vt=e.MATHML_TEXT_INTEGRATION_POINTS||vt,H=e.HTML_INTEGRATION_POINTS||H,D=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(D.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(Ye=!1),P&&(N=!0),I&&(b=T({},Be),w=ve(null),I.html===!0&&(T(b,Pe),T(w,Ve)),I.svg===!0&&(T(b,Fe),T(w,He),T(w,We)),I.svgFilters===!0&&(T(b,Ie),T(w,He),T(w,We)),I.mathMl===!0&&(T(b,Re),T(w,Ue),T(w,We))),x(e,`ADD_TAGS`)||(O.tagCheck=null),x(e,`ADD_ATTR`)||(O.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?O.tagCheck=e.ADD_TAGS:(b===C&&(b=E(b)),T(b,e.ADD_TAGS,U))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?O.attributeCheck=e.ADD_ATTR:(w===Me&&(w=E(w)),T(w,e.ADD_ATTR,U))),e.ADD_URI_SAFE_ATTR&&T(pt,e.ADD_URI_SAFE_ATTR,U),e.FORBID_CONTENTS&&(L===ut&&(L=E(L)),T(L,e.FORBID_CONTENTS,U)),e.ADD_FORBID_CONTENTS&&(L===ut&&(L=E(L)),T(L,e.ADD_FORBID_CONTENTS,U)),ct&&(b[`#text`]=!0),j&&T(b,[`html`,`head`,`body`]),b.table&&(T(b,[`tbody`]),delete Ge.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw je(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw je(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);h=e.TRUSTED_TYPES_POLICY,g=h.createHTML(``)}else h===void 0&&(h=nt(f,i)),h!==null&&typeof g==`string`&&(g=h.createHTML(``));v&&v(e),W=e}},wt=T({},[...Fe,...Ie,...Le]),Tt=T({},[...Re,...ze]),Et=function(e){let t=ie(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:`template`});let n=Te(e.tagName),r=Te(t.tagName);return gt[e.namespaceURI]?e.namespaceURI===R?t.namespaceURI===z?n===`svg`:t.namespaceURI===ht?n===`svg`&&(r===`annotation-xml`||vt[r]):!!wt[n]:e.namespaceURI===ht?t.namespaceURI===z?n===`math`:t.namespaceURI===R?n===`math`&&H[r]:!!Tt[n]:e.namespaceURI===z?t.namespaceURI===R&&!H[r]||t.namespaceURI===ht&&!vt[r]?!1:!Tt[n]&&(yt[n]||!wt[n]):!!(bt===`application/xhtml+xml`&>[e.namespaceURI]):!1},K=function(e){Ce(t.removed,{element:e});try{ie(e).removeChild(e)}catch{m(e)}},q=function(e,n){try{Ce(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Ce(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(N||P)try{K(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Dt=function(e){let t=null,r=null;if(at)e=`<remove></remove>`+e;else{let t=De(e,/^[\r\n\t ]+/);r=t&&t[0]}bt===`application/xhtml+xml`&&B===z&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=h?h.createHTML(e):e;if(B===z)try{t=new ee().parseFromString(i,bt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(B,`template`,null);try{t.documentElement.innerHTML=V?g:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),B===z?ce.call(t,j?`html`:`body`)[0]:j?t.documentElement:a},Ot=function(e){return oe.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},kt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},At=function(e){return typeof s==`function`&&e instanceof s};function J(e,n,r){be(e,e=>{e.call(t,n,r,W)})}let jt=function(e){let n=null;if(J(_.beforeSanitizeElements,e,null),kt(e))return K(e),!0;let r=U(e.nodeName);if(J(_.uponSanitizeElement,e,{tagName:r,allowedTags:b}),A&&e.hasChildNodes()&&!At(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent)||e.nodeType===et.progressingInstruction||A&&e.nodeType===et.comment&&S(/<[/\w]/g,e.data))return K(e),!0;if(!(O.tagCheck instanceof Function&&O.tagCheck(r))&&(!b[r]||Ge[r])){if(!Ge[r]&&Nt(r)&&(D.tagNameCheck instanceof RegExp&&S(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r)))return!1;if(ct&&!L[r]){let t=ie(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=te(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}}return K(e),!0}return e instanceof c&&!Et(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&S(/<\/no(script|embed|frames)/i,e.innerHTML)?(K(e),!0):(k&&e.nodeType===et.text&&(n=e.textContent,be([ue,de,fe],e=>{n=Oe(n,e,` `)}),e.textContent!==n&&(Ce(t.removed,{element:e.cloneNode()}),e.textContent=n)),J(_.afterSanitizeElements,e,null),!1)},Mt=function(e,t,r){if(Ke[t]||F&&(t===`id`||t===`name`)&&(r in n||r in St))return!1;if(!(Ye&&!Ke[t]&&S(me,t))&&!(qe&&S(he,t))&&!(O.attributeCheck instanceof Function&&O.attributeCheck(t,e))){if(!w[t]||Ke[t]){if(!(Nt(e)&&(D.tagNameCheck instanceof RegExp&&S(D.tagNameCheck,e)||D.tagNameCheck instanceof Function&&D.tagNameCheck(e))&&(D.attributeNameCheck instanceof RegExp&&S(D.attributeNameCheck,t)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(t,e))||t===`is`&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&S(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r))))return!1}else if(!pt[t]&&!S(ye,Oe(r,_e,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ke(r,`data:`)===0&&dt[e])&&!(Xe&&!S(ge,Oe(r,_e,``)))&&r)return!1}return!0},Nt=function(e){return e!==`annotation-xml`&&De(e,y)},Pt=function(e){J(_.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||kt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:w,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=U(a),l=s,u=a===`value`?l:Ae(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,J(_.uponSanitizeAttribute,e,r),u=r.attrValue,st&&(c===`id`||c===`name`)&&(q(a,e),u=`user-content-`+u),A&&S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){q(a,e);continue}if(c===`attributename`&&De(u,`href`)){q(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){q(a,e);continue}if(!Qe&&S(/\/>/i,u)){q(a,e);continue}k&&be([ue,de,fe],e=>{u=Oe(u,e,` `)});let d=U(e.nodeName);if(!Mt(d,c,u)){q(a,e);continue}if(h&&typeof f==`object`&&typeof f.getAttributeType==`function`&&!o)switch(f.getAttributeType(d,c)){case`TrustedHTML`:u=h.createHTML(u);break;case`TrustedScriptURL`:u=h.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),kt(e)?K(e):Se(t.removed)}catch{q(a,e)}}J(_.afterSanitizeAttributes,e,null)},Ft=function e(t){let n=null,r=Ot(t);for(J(_.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)J(_.uponSanitizeShadowNode,n,null),jt(n),Pt(n),n.content instanceof a&&e(n.content);J(_.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(V=!e,V&&(e=`<!-->`),typeof e!=`string`&&!At(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw je(`dirty is not a string, aborting`)}else throw je(`toString is not a function`);if(!t.isSupported)return e;if(M||G(n),t.removed=[],typeof e==`string`&&(lt=!1),lt){if(e.nodeName){let t=U(e.nodeName);if(!b[t]||Ge[t])throw je(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Dt(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===et.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!N&&!k&&!j&&e.indexOf(`<`)===-1)return h&&ot?h.createHTML(e):e;if(i=Dt(e),!i)return N?null:ot?g:``}i&&at&&K(i.firstChild);let u=Ot(lt?e:i);for(;c=u.nextNode();)jt(c),Pt(c),c.content instanceof a&&Ft(c.content);if(lt)return e;if(N){if(P)for(l=se.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(w.shadowroot||w.shadowrootmode)&&(l=le.call(r,l,!0)),l}let d=j?i.outerHTML:i.innerHTML;return j&&b[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&S(Ze,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
2
|
-
`+d),k&&be([ue,de,fe],e=>{d=Oe(d,e,` `)}),h&&ot?h.createHTML(d):d},t.setConfig=function(){G(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),M=!0},t.clearConfig=function(){W=null,M=!1},t.isValidAttribute=function(e,t,n){return W||G({}),Mt(U(e),U(t),n)},t.addHook=function(e,t){typeof t==`function`&&Ce(_[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=xe(_[e],t);return n===-1?void 0:we(_[e],n,1)[0]}return Se(_[e])},t.removeHooks=function(e){_[e]=[]},t.removeAllHooks=function(){_=rt()},t}var k=it(),A;function j(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var M=j();function at(e){M=e}var N={exec:()=>null};function P(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(F.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ot=(()=>{try{return!0}catch{return!1}})(),F={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},st=/^(?:[ \t]*(?:\n|$))+/,ct=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,lt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,L=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ut=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,dt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ft=P(dt).replace(/bull/g,ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),pt=P(dt).replace(/bull/g,ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ht=/^[^\n]+/,R=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,z=P(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,R).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),B=P(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ut).getRegex(),V=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,gt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_t=P(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,gt).replace(`tag`,V).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vt=P(mt).replace(`hr`,I).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,V).getRegex(),H={blockquote:P(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,vt).getRegex(),code:ct,def:z,fences:lt,heading:L,hr:I,html:_t,lheading:ft,list:B,newline:st,paragraph:vt,table:N,text:ht},yt=P(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,I).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,V).getRegex(),bt={...H,lheading:pt,table:yt,paragraph:P(mt).replace(`hr`,I).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,yt).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,V).getRegex()},xt={...H,html:P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,gt).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:N,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P(mt).replace(`hr`,I).replace(`heading`,` *#{1,6} *[^
|
|
3
|
-
]`).replace(`lheading`,ft).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},U=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,St=/^( {2,}|\\)\n(?!\s*$)/,Ct=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,G=/[\p{P}\p{S}]/u,wt=/[\s\p{P}\p{S}]/u,Tt=/[^\s\p{P}\p{S}]/u,Et=P(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,wt).getRegex(),K=/(?!~)[\p{P}\p{S}]/u,q=/(?!~)[\s\p{P}\p{S}]/u,Dt=/(?:[^\s\p{P}\p{S}]|~)/u,Ot=P(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ot?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),kt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,At=P(kt,`u`).replace(/punct/g,G).getRegex(),J=P(kt,`u`).replace(/punct/g,K).getRegex(),jt=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Mt=P(jt,`gu`).replace(/notPunctSpace/g,Tt).replace(/punctSpace/g,wt).replace(/punct/g,G).getRegex(),Nt=P(jt,`gu`).replace(/notPunctSpace/g,Dt).replace(/punctSpace/g,q).replace(/punct/g,K).getRegex(),Pt=P(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Tt).replace(/punctSpace/g,wt).replace(/punct/g,G).getRegex(),Ft=P(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,G).getRegex(),It=P(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Tt).replace(/punctSpace/g,wt).replace(/punct/g,G).getRegex(),Lt=P(/\\(punct)/,`gu`).replace(/punct/g,G).getRegex(),Rt=P(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),zt=P(gt).replace(`(?:-->|$)`,`-->`).getRegex(),Bt=P(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,zt).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Vt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ht=P(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,Vt).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ut=P(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Vt).replace(`ref`,R).getRegex(),Wt=P(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,R).getRegex(),Gt=P(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Ut).replace(`nolink`,Wt).getRegex(),Kt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,qt={_backpedal:N,anyPunctuation:Lt,autolink:Rt,blockSkip:Ot,br:St,code:W,del:N,delLDelim:N,delRDelim:N,emStrongLDelim:At,emStrongRDelimAst:Mt,emStrongRDelimUnd:Pt,escape:U,link:Ht,nolink:Wt,punctuation:Et,reflink:Ut,reflinkSearch:Gt,tag:Bt,text:Ct,url:N},Jt={...qt,link:P(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Vt).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Vt).getRegex()},Yt={...qt,emStrongRDelimAst:Nt,emStrongLDelim:J,delLDelim:Ft,delRDelim:It,url:P(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Kt).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:P(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Kt).getRegex()},Xt={...Yt,br:P(St).replace(`{2,}`,`*`).getRegex(),text:P(Yt.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Zt={normal:H,gfm:bt,pedantic:xt},Qt={normal:qt,gfm:Yt,breaks:Xt,pedantic:Jt},$t={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},en=e=>$t[e];function Y(e,t){if(t){if(F.escapeTest.test(e))return e.replace(F.escapeReplace,en)}else if(F.escapeTestNoEncode.test(e))return e.replace(F.escapeReplaceNoEncode,en);return e}function tn(e){try{e=encodeURI(e).replace(F.percentDecode,`%`)}catch{return null}return e}function nn(e,t){let n=e.replace(F.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(F.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(F.slashPipe,`|`);return n}function rn(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function an(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function on(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function sn(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function cn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
4
|
-
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
5
|
-
`)}var ln=class{constructor(e){g(this,`options`,void 0),g(this,`rules`,void 0),g(this,`lexer`,void 0),this.options=e||M}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:rn(e,`
|
|
6
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=cn(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=rn(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:rn(t[0],`
|
|
7
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=rn(t[0],`
|
|
8
|
-
`).split(`
|
|
9
|
-
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
10
|
-
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
11
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|
12
|
-
${s}`:s,r=r?`${r}
|
|
13
|
-
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
|
|
14
|
-
`+e.join(`
|
|
15
|
-
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
|
|
16
|
-
`+e.join(`
|
|
17
|
-
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
18
|
-
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=on(t[2].split(`
|
|
19
|
-
`,1)[0],t[1].length),l=e.split(`
|
|
20
|
-
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
|
|
21
|
-
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),ee=this.rules.other.blockquoteBeginRegex(d);for(;e;){let f=e.split(`
|
|
22
|
-
`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||ee.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
|
|
23
|
-
`+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
24
|
-
`+l}u=!l.trim(),r+=f+`
|
|
25
|
-
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=nn(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
26
|
-
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(nn(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
27
|
-
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=rn(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=an(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),sn(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return sn(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},X=class e{constructor(e){g(this,`tokens`,void 0),g(this,`options`,void 0),g(this,`state`,void 0),g(this,`inlineQueue`,void 0),g(this,`tokenizer`,void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||M,this.options.tokenizer=this.options.tokenizer||new ln,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:F,block:Zt.normal,inline:Qt.normal};this.options.pedantic?(t.block=Zt.pedantic,t.inline=Qt.pedantic):this.options.gfm&&(t.block=Zt.gfm,this.options.breaks?t.inline=Qt.breaks:t.inline=Qt.gfm),this.tokenizer.rules=t}static get rules(){return{block:Zt,inline:Qt}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(F.carriageReturn,`
|
|
28
|
-
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(F.tabCharGlobal,` `).replace(F.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
|
|
29
|
-
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
30
|
-
`)?``:`
|
|
31
|
-
`)+r.raw,n.text+=`
|
|
32
|
-
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
33
|
-
`)?``:`
|
|
34
|
-
`)+r.raw,n.text+=`
|
|
35
|
-
`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
|
|
36
|
-
`)?``:`
|
|
37
|
-
`)+r.raw,a.text+=`
|
|
38
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
39
|
-
`)?``:`
|
|
40
|
-
`)+r.raw,n.text+=`
|
|
41
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},un=class{constructor(e){g(this,`options`,void 0),g(this,`parser`,void 0),this.options=e||M}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(F.notSpaceStart)?.[0],i=e.replace(F.endingNewline,``)+`
|
|
42
|
-
`;return r?`<pre><code class="language-`+Y(r)+`">`+(n?i:Y(i,!0))+`</code></pre>
|
|
43
|
-
`:`<pre><code>`+(n?i:Y(i,!0))+`</code></pre>
|
|
44
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
45
|
-
${this.parser.parse(e)}</blockquote>
|
|
46
|
-
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
47
|
-
`}hr(e){return`<hr>
|
|
48
|
-
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
49
|
-
`+r+`</`+i+`>
|
|
50
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
51
|
-
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
52
|
-
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
53
|
-
<thead>
|
|
54
|
-
`+t+`</thead>
|
|
55
|
-
`+r+`</table>
|
|
56
|
-
`}tablerow({text:e}){return`<tr>
|
|
57
|
-
${e}</tr>
|
|
58
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
59
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Y(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=tn(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Y(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=tn(e);if(i===null)return Y(n);e=i;let a=`<img src="${e}" alt="${Y(n)}"`;return t&&(a+=` title="${Y(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Y(e.text)}},dn=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Z=class e{constructor(e){g(this,`options`,void 0),g(this,`renderer`,void 0),g(this,`textRenderer`,void 0),this.options=e||M,this.options.renderer=this.options.renderer||new un,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new dn}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},fn=(A=class{constructor(e){g(this,`options`,void 0),g(this,`block`,void 0),this.options=e||M}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?X.lex:X.lexInline}provideParser(e=this.block){return e?Z.parse:Z.parseInline}},g(A,`passThroughHooks`,new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`])),g(A,`passThroughHooksRespectAsync`,new Set([`preprocess`,`postprocess`,`processAllTokens`])),A),Q=new class{constructor(...e){g(this,`defaults`,j()),g(this,`options`,this.setOptions),g(this,`parse`,this.parseMarkdown(!0)),g(this,`parseInline`,this.parseMarkdown(!1)),g(this,`Parser`,Z),g(this,`Renderer`,un),g(this,`TextRenderer`,dn),g(this,`Lexer`,X),g(this,`Tokenizer`,ln),g(this,`Hooks`,fn),this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new un(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ln(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new fn;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];fn.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&fn.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return X.lex(e,t??this.defaults)}parser(e,t){return Z.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?X.lex:X.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Z.parse:Z.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?X.lex:X.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Z.parse:Z.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
60
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Y(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function $(e,t){return Q.parse(e,t)}$.options=$.setOptions=function(e){return Q.setOptions(e),$.defaults=Q.defaults,at($.defaults),$},$.getDefaults=j,$.defaults=M,$.use=function(...e){return Q.use(...e),$.defaults=Q.defaults,at($.defaults),$},$.walkTokens=function(e,t){return Q.walkTokens(e,t)},$.parseInline=Q.parseInline,$.Parser=Z,$.parser=Z.parse,$.Renderer=un,$.TextRenderer=dn,$.Lexer=X,$.lexer=X.lex,$.Tokenizer=ln,$.Hooks=fn,$.parse=$,$.options,$.setOptions,$.use,$.walkTokens,$.parseInline,Z.parse,X.lex;export{_ as i,k as n,fe as r,$ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,D as t,E as n,H as r,O as i,P as a,Q as o,S as s,j as c,k as l,l as u,y as d}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{D as f,E as p,O as m,S as h,a as ee,g,m as _,t as v,w as y}from"./QIcon-B0-pH3Qs.js";import{u as b}from"./use-id-CDuXkR0Z.js";import{t as x}from"./is-BbsvEMaT.js";import{a as S,c as C,i as w,l as T,n as E,o as D,s as O,u as k}from"./QInput-D4WJro4e.js";import{g as te}from"./index-C_e7KOYh.js";import{n as ne,t as re}from"./QItemSection-KFAnxzMK.js";import{t as ie}from"./QItemLabel-DWwenW2S.js";import{f as A}from"./QTooltip-DjJYMTkN.js";import{t as ae}from"./QMenu-CchbRXbp.js";import{n as j,t as oe}from"./QChip-BhT0W2Dg.js";var se=m({name:`QField`,inheritAttrs:!1,props:{...T,tag:{type:String,default:`label`}},emits:C,setup(){return O(k({tagProp:!0}))}}),M=1e3,N=[`start`,`center`,`end`,`start-force`,`center-force`,`end-force`],P=Array.prototype.filter,ce=window.getComputedStyle(document.body).overflowAnchor===void 0?h:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;let n=e.children||[];P.call(n,e=>e.dataset&&e.dataset.qVsAnchor!==void 0).forEach(e=>{delete e.dataset.qVsAnchor});let r=n[t];r?.dataset&&(r.dataset.qVsAnchor=``)}))};function F(e,t){return e+t}function I(e,t,n,r,i,a,o,s){let c=e===window?document.scrollingElement||document.documentElement:e,l=i===!0?`offsetWidth`:`offsetHeight`,u={scrollStart:0,scrollViewSize:-o-s,scrollMaxSize:0,offsetStart:-o,offsetEnd:-s};if(i===!0?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=c.scrollLeft,u.scrollViewSize+=c.clientWidth),u.scrollMaxSize=c.scrollWidth,a===!0&&(u.scrollStart=(j===!0?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=c.scrollTop,u.scrollViewSize+=c.clientHeight),u.scrollMaxSize=c.scrollHeight),n!==null)for(let e=n.previousElementSibling;e!==null;e=e.previousElementSibling)e.classList.contains(`q-virtual-scroll--skip`)===!1&&(u.offsetStart+=e[l]);if(r!==null)for(let e=r.nextElementSibling;e!==null;e=e.nextElementSibling)e.classList.contains(`q-virtual-scroll--skip`)===!1&&(u.offsetEnd+=e[l]);if(t!==e){let n=c.getBoundingClientRect(),r=t.getBoundingClientRect();i===!0?(u.offsetStart+=r.left-n.left,u.offsetEnd-=r.width):(u.offsetStart+=r.top-n.top,u.offsetEnd-=r.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function L(e,t,n,r){t===`end`&&(t=(e===window?document.body:e)[n===!0?`scrollWidth`:`scrollHeight`]),e===window?n===!0?(r===!0&&(t=(j===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(r===!0&&(t=(j===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function R(e,t,n,r){if(n>=r)return 0;let i=t.length,a=Math.floor(n/M),o=Math.floor((r-1)/M)+1,s=e.slice(a,o).reduce(F,0);return n%M!==0&&(s-=t.slice(a*M,n).reduce(F,0)),r%M!==0&&r!==i&&(s-=t.slice(r,o*M).reduce(F,0)),s}var z={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]};function B({virtualScrollLength:e,getVirtualScrollTarget:a,getVirtualScrollEl:f,virtualScrollItemSizeComputed:p}){let{props:m,emit:h,proxy:ee}=d(),{$q:g}=ee,_,v,y,x=[],S,C=o(0),w=o(0),T=o({}),E=o(null),D=o(null),O=o(null),k=o({from:0,to:0}),te=u(()=>m.tableColspan===void 0?100:m.tableColspan);p===void 0&&(p=u(()=>m.virtualScrollItemSize));let ne=u(()=>p.value+`;`+m.virtualScrollHorizontal);r(u(()=>ne.value+`;`+m.virtualScrollSliceRatioBefore+`;`+m.virtualScrollSliceRatioAfter),()=>{B()}),r(ne,re);function re(){z(v,!0)}function ie(e){z(e===void 0?v:e)}function A(t,n){let r=a();if(r==null||r.nodeType===8)return;let i=I(r,f(),E.value,D.value,m.virtualScrollHorizontal,g.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);y!==i.scrollViewSize&&B(i.scrollViewSize),j(r,i,Math.min(e.value-1,Math.max(0,parseInt(t,10)||0)),0,N.indexOf(n)===-1?v!==-1&&t>v?`end`:`start`:n)}function ae(){let t=a();if(t==null||t.nodeType===8)return;let n=I(t,f(),E.value,D.value,m.virtualScrollHorizontal,g.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),r=e.value-1,i=n.scrollMaxSize-n.offsetStart-n.offsetEnd-w.value;if(_===n.scrollStart)return;if(n.scrollMaxSize<=0){j(t,n,0,0);return}y!==n.scrollViewSize&&B(n.scrollViewSize),oe(k.value.from);let o=Math.floor(n.scrollMaxSize-Math.max(n.scrollViewSize,n.offsetEnd)-Math.min(S[r],n.scrollViewSize/2));if(o>0&&Math.ceil(n.scrollStart)>=o){j(t,n,r,n.scrollMaxSize-n.offsetEnd-x.reduce(F,0));return}let s=0,c=n.scrollStart-n.offsetStart,l=c;if(c<=i&&c+n.scrollViewSize>=C.value)c-=C.value,s=k.value.from,l=c;else for(let e=0;c>=x[e]&&s<r;e++)c-=x[e],s+=M;for(;c>0&&s<r;)c-=S[s],c>-n.scrollViewSize?(s++,l=c):l=S[s]+c;j(t,n,s,l)}function j(t,n,r,i,a){let o=typeof a==`string`&&a.indexOf(`-force`)!==-1,s=o===!0?a.replace(`-force`,``):a,c=s===void 0?`start`:s,l=Math.max(0,r-T.value[c]),u=l+T.value.total;u>e.value&&(u=e.value,l=Math.max(0,u-T.value.total)),_=n.scrollStart;let d=l!==k.value.from||u!==k.value.to;if(d===!1&&s===void 0){ue(r);return}let{activeElement:f}=document,p=O.value;d===!0&&p!==null&&p!==f&&p.contains(f)===!0&&(p.addEventListener(`focusout`,se),setTimeout(()=>{p?.removeEventListener(`focusout`,se)})),ce(p,r-l);let h=s===void 0?0:S.slice(l,r).reduce(F,0);if(d===!0){let t=u>=k.value.from&&l<=k.value.to?k.value.to:u;k.value={from:l,to:t},C.value=R(x,S,0,l),w.value=R(x,S,u,e.value),requestAnimationFrame(()=>{k.value.to!==u&&_===n.scrollStart&&(k.value={from:k.value.from,to:u},w.value=R(x,S,u,e.value))})}requestAnimationFrame(()=>{if(_!==n.scrollStart)return;d===!0&&oe(l);let e=S.slice(l,r).reduce(F,0),a=e+n.offsetStart+C.value,c=a+S[r],u=a+i;if(s!==void 0){let t=e-h,i=n.scrollStart+t;u=o!==!0&&i<a&&c<i+n.scrollViewSize?i:s===`end`?c-n.scrollViewSize:a-(s===`start`?0:Math.round((n.scrollViewSize-S[r])/2))}_=u,L(t,u,m.virtualScrollHorizontal,g.lang.rtl),ue(r)})}function oe(e){let t=O.value;if(t){let n=P.call(t.children,e=>e.classList&&e.classList.contains(`q-virtual-scroll--skip`)===!1),r=n.length,i=m.virtualScrollHorizontal===!0?e=>e.getBoundingClientRect().width:e=>e.offsetHeight,a=e,o,s;for(let e=0;e<r;){for(o=i(n[e]),e++;e<r&&n[e].classList.contains(`q-virtual-scroll--with-prev`)===!0;)o+=i(n[e]),e++;s=o-S[a],s!==0&&(S[a]+=s,x[Math.floor(a/M)]+=s),a++}}}function se(){O.value?.focus()}function z(t,r){let i=Number(p.value);(r===!0||Array.isArray(S)===!1)&&(S=[]);let a=S.length;S.length=e.value;for(let t=e.value-1;t>=a;t--)S[t]=i;let o=Math.floor((e.value-1)/M);x=[];for(let t=0;t<=o;t++){let n=0,r=Math.min((t+1)*M,e.value);for(let e=t*M;e<r;e++)n+=S[e];x.push(n)}v=-1,_=void 0,C.value=R(x,S,0,k.value.from),w.value=R(x,S,k.value.to,e.value),t>=0?(oe(k.value.from),n(()=>{A(t)})):de()}function B(e){if(e===void 0&&typeof window<`u`){let t=a();t!=null&&t.nodeType!==8&&(e=I(t,f(),E.value,D.value,m.virtualScrollHorizontal,g.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}y=e;let t=parseFloat(m.virtualScrollSliceRatioBefore)||0,n=parseFloat(m.virtualScrollSliceRatioAfter)||0,r=1+t+n,i=e===void 0||e<=0?1:Math.ceil(e/p.value),o=Math.max(1,i,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/r));T.value={total:Math.ceil(o*r),start:Math.ceil(o*t),center:Math.ceil(o*(.5+t)),end:Math.ceil(o*(1+t)),view:i}}function le(e,t){let n=m.virtualScrollHorizontal===!0?`width`:`height`,r={[`--q-virtual-scroll-item-`+n]:p.value+`px`};return[e===`tbody`?s(e,{class:`q-virtual-scroll__padding`,key:`before`,ref:E},[s(`tr`,[s(`td`,{style:{[n]:`${C.value}px`,...r},colspan:te.value})])]):s(e,{class:`q-virtual-scroll__padding`,key:`before`,ref:E,style:{[n]:`${C.value}px`,...r}}),s(e,{class:`q-virtual-scroll__content`,key:`content`,ref:O,tabindex:-1},t.flat()),e===`tbody`?s(e,{class:`q-virtual-scroll__padding`,key:`after`,ref:D},[s(`tr`,[s(`td`,{style:{[n]:`${w.value}px`,...r},colspan:te.value})])]):s(e,{class:`q-virtual-scroll__padding`,key:`after`,ref:D,style:{[n]:`${w.value}px`,...r}})]}function ue(e){v!==e&&(m.onVirtualScroll!==void 0&&h(`virtualScroll`,{index:e,from:k.value.from,to:k.value.to-1,direction:e<v?`decrease`:`increase`,ref:ee}),v=e)}B();let de=b(ae,g.platform.is.ios===!0?120:35);i(()=>{B()});let fe=!1;return c(()=>{fe=!0}),t(()=>{if(fe!==!0)return;let e=a();_!==void 0&&e!=null&&e.nodeType!==8?L(e,_,m.virtualScrollHorizontal,g.lang.rtl):A(v)}),l(()=>{de.cancel()}),Object.assign(ee,{scrollTo:A,reset:re,refresh:ie}),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:B,onVirtualScrollEvt:de,localResetVirtualScroll:z,padVirtualScroll:le,scrollTo:A,reset:re,refresh:ie}}var le=e=>[`add`,`add-unique`,`toggle`].includes(e),ue=".*+?^${}()|[]\\",de=Object.keys(T);function fe(e,t){if(typeof e==`function`)return e;let n=e===void 0?t:e;return e=>typeof e==`object`&&e&&n in e?e[n]:e}var V=m({name:`QSelect`,inheritAttrs:!1,props:{...z,...S,...T,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:le},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>[`default`,`menu`,`dialog`].includes(e),default:`default`},virtualScrollItemSize:z.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...C,`add`,`remove`,`inputValue`,`keyup`,`keypress`,`keydown`,`popupShow`,`popupHide`,`filterAbort`],setup(t,{slots:i,emit:c}){let{proxy:m}=d(),{$q:h}=m,b=o(!1),S=o(!1),C=o(-1),T=o(``),j=o(!1),M=o(!1),N=null,P=null,ce,F,I,L=null,R,z,V,pe,me=o(null),H=o(null),U=o(null),he=o(null),ge=o(null),_e=w(t),ve=E(lt),W=u(()=>Array.isArray(t.options)?t.options.length:0),{virtualScrollSliceRange:ye,virtualScrollSliceSizeComputed:be,localResetVirtualScroll:xe,padVirtualScroll:Se,onVirtualScrollEvt:Ce,scrollTo:we,setVirtualScrollSize:Te}=B({virtualScrollLength:W,getVirtualScrollTarget:at,getVirtualScrollEl:it,virtualScrollItemSizeComputed:u(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize)}),G=k(),K=u(()=>{let e=t.mapOptions===!0&&t.multiple!==!0,n=t.modelValue!==void 0&&(t.modelValue!==null||e===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){let r=t.mapOptions===!0&&ce!==void 0?ce:[],i=n.map(e=>Ze(e,r));return t.modelValue===null&&e===!0?i.filter(e=>e!==null):i}return n}),Ee=u(()=>{let e={};return de.forEach(n=>{let r=t[n];r!==void 0&&(e[n]=r)}),e}),De=u(()=>t.optionsDark===null?G.isDark.value:t.optionsDark),Oe=u(()=>D(K.value)),ke=u(()=>{let e=`q-field__input q-placeholder col`;return t.hideSelected===!0||K.value.length===0?[e,t.inputClass]:(e+=` q-field__input--padding`,t.inputClass===void 0?e:[e,t.inputClass])}),Ae=u(()=>(t.virtualScrollHorizontal===!0?`q-virtual-scroll--horizontal`:``)+(t.popupContentClass?` `+t.popupContentClass:``)),je=u(()=>W.value===0),Me=u(()=>K.value.map(e=>J.value(e)).join(`, `)),Ne=u(()=>t.displayValue===void 0?Me.value:t.displayValue),Pe=u(()=>t.optionsHtml===!0?()=>!0:e=>e?.html===!0),Fe=u(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||K.value.some(Pe.value))),Ie=u(()=>G.focused.value===!0?t.tabindex:-1),Le=u(()=>{let e={tabindex:t.tabindex,role:`combobox`,"aria-label":t.label,"aria-readonly":t.readonly===!0?`true`:`false`,"aria-autocomplete":t.useInput===!0?`list`:`none`,"aria-expanded":b.value===!0?`true`:`false`,"aria-controls":`${G.targetUid.value}_lb`};return C.value>=0&&(e[`aria-activedescendant`]=`${G.targetUid.value}_${C.value}`),e}),Re=u(()=>({id:`${G.targetUid.value}_lb`,role:`listbox`,"aria-multiselectable":t.multiple===!0?`true`:`false`})),ze=u(()=>K.value.map((e,t)=>({index:t,opt:e,html:Pe.value(e),selected:!0,removeAtIndex:Je,toggleOption:X,tabindex:Ie.value}))),Be=u(()=>{if(W.value===0)return[];let{from:e,to:n}=ye.value;return t.options.slice(e,n).map((n,r)=>{let i=Y.value(n)===!0,a=Qe(n)===!0,o=e+r,s={clickable:!0,active:a,activeClass:Ue.value,manualFocus:!0,focused:!1,disable:i,tabindex:-1,dense:t.optionsDense,dark:De.value,role:`option`,"aria-selected":a===!0?`true`:`false`,id:`${G.targetUid.value}_${o}`,onClick:()=>{X(n)}};return i!==!0&&(C.value===o&&(s.focused=!0),h.platform.is.desktop===!0&&(s.onMousemove=()=>{b.value===!0&&Z(o)})),{index:o,opt:n,html:Pe.value(n),label:J.value(n),selected:s.active,focused:s.focused,toggleOption:X,setOptionIndex:Z,itemProps:s}})}),Ve=u(()=>t.dropdownIcon===void 0?h.iconSet.arrow.dropdown:t.dropdownIcon),He=u(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ue=u(()=>t.optionsSelectedClass===void 0?t.color===void 0?``:`text-${t.color}`:t.optionsSelectedClass),q=u(()=>fe(t.optionValue,`value`)),J=u(()=>fe(t.optionLabel,`label`)),Y=u(()=>fe(t.optionDisable,`disable`)),We=u(()=>K.value.map(q.value)),Ge=u(()=>{let e={onInput:lt,onChange:ve,onKeydown:rt,onKeyup:tt,onKeypress:nt,onFocus:$e,onClick(e){F===!0&&p(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=ve,e});r(K,e=>{ce=e,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&G.innerLoading.value!==!0&&(S.value!==!0&&b.value!==!0||Oe.value!==!0)&&(I!==!0&&Ct(),(S.value===!0||b.value===!0)&&Q(``))},{immediate:!0}),r(()=>t.fillInput,Ct),r(b,wt),r(W,Tt);function Ke(e){return t.emitValue===!0?q.value(e):e}function qe(e){if(e!==-1&&e<K.value.length)if(t.multiple===!0){let n=t.modelValue.slice();c(`remove`,{index:e,value:n.splice(e,1)[0]}),c(`update:modelValue`,n)}else c(`update:modelValue`,null)}function Je(e){qe(e),G.focus()}function Ye(e,n){let r=Ke(e);if(t.multiple!==!0){t.fillInput===!0&&dt(J.value(e),!0,!0),c(`update:modelValue`,r);return}if(K.value.length===0){c(`add`,{index:0,value:r}),c(`update:modelValue`,t.multiple===!0?[r]:r);return}if(n===!0&&Qe(e)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;let i=t.modelValue.slice();c(`add`,{index:i.length,value:r}),i.push(r),c(`update:modelValue`,i)}function X(e,n){if(G.editable.value!==!0||e===void 0||Y.value(e)===!0)return;let r=q.value(e);if(t.multiple!==!0){n!==!0&&(dt(t.fillInput===!0?J.value(e):``,!0,!0),$()),H.value?.focus(),(K.value.length===0||x(q.value(K.value[0]),r)!==!0)&&c(`update:modelValue`,t.emitValue===!0?r:e);return}if((F!==!0||j.value===!0)&&G.focus(),$e(),K.value.length===0){let n=t.emitValue===!0?r:e;c(`add`,{index:0,value:n}),c(`update:modelValue`,t.multiple===!0?[n]:n);return}let i=t.modelValue.slice(),a=We.value.findIndex(e=>x(e,r));if(a!==-1)c(`remove`,{index:a,value:i.splice(a,1)[0]});else{if(t.maxValues!==void 0&&i.length>=t.maxValues)return;let n=t.emitValue===!0?r:e;c(`add`,{index:i.length,value:n}),i.push(n)}c(`update:modelValue`,i)}function Z(e){if(h.platform.is.desktop!==!0)return;let t=e!==-1&&e<W.value?e:-1;C.value!==t&&(C.value=t)}function Xe(e=1,n){if(b.value===!0){let r=C.value;do r=A(r+e,-1,W.value-1);while(r!==-1&&r!==C.value&&Y.value(t.options[r])===!0);C.value!==r&&(Z(r),we(r),n!==!0&&t.useInput===!0&&t.fillInput===!0&&ut(r>=0?J.value(t.options[r]):R,!0))}}function Ze(e,n){let r=t=>x(q.value(t),e);return t.options.find(r)||n.find(r)||e}function Qe(e){let t=q.value(e);return We.value.find(e=>x(e,t))!==void 0}function $e(e){t.useInput===!0&&H.value!==null&&(e===void 0||H.value===e.target&&e.target.value===Me.value)&&H.value.select()}function et(e){_(e,27)===!0&&b.value===!0&&(p(e),$(),Ct()),c(`keyup`,e)}function tt(e){let{value:n}=e.target;if(e.keyCode!==void 0){et(e);return}if(e.target.value=``,N!==null&&(clearTimeout(N),N=null),P!==null&&(clearTimeout(P),P=null),Ct(),typeof n==`string`&&n.length!==0){let e=n.toLocaleLowerCase(),r=n=>{let r=t.options.find(t=>String(n.value(t)).toLocaleLowerCase()===e);return r===void 0?!1:(K.value.indexOf(r)===-1?X(r):$(),!0)},i=e=>{r(q)!==!0&&e!==!0&&r(J)!==!0&&Q(n,!0,()=>i(!0))};i()}else G.clearValue(e)}function nt(e){c(`keypress`,e)}function rt(e){if(c(`keydown`,e),g(e)===!0)return;let r=T.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),i=e.shiftKey!==!0&&t.disableTabSelection!==!0&&t.multiple!==!0&&(C.value!==-1||r===!0);if(e.keyCode===27){y(e);return}if(e.keyCode===9&&i===!1){xt();return}if(e.target===void 0||e.target.id!==G.targetUid.value||G.editable.value!==!0)return;if(e.keyCode===40&&G.innerLoading.value!==!0&&b.value===!1){f(e),St();return}if(e.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&T.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?qe(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&c(`update:modelValue`,null);return}(e.keyCode===35||e.keyCode===36)&&(typeof T.value!=`string`||T.value.length===0)&&(f(e),C.value=-1,Xe(e.keyCode===36?1:-1,t.multiple)),(e.keyCode===33||e.keyCode===34)&&be.value!==void 0&&(f(e),C.value=Math.max(-1,Math.min(W.value,C.value+(e.keyCode===33?-1:1)*be.value.view)),Xe(e.keyCode===33?1:-1,t.multiple)),(e.keyCode===38||e.keyCode===40)&&(f(e),Xe(e.keyCode===38?-1:1,t.multiple));let a=W.value;if((V===void 0||pe<Date.now())&&(V=``),a>0&&t.useInput!==!0&&e.key!==void 0&&e.key.length===1&&e.altKey===!1&&e.ctrlKey===!1&&e.metaKey===!1&&(e.keyCode!==32||V.length!==0)){b.value!==!0&&St(e);let r=e.key.toLocaleLowerCase(),i=V.length===1&&V[0]===r;pe=Date.now()+1500,i===!1&&(f(e),V+=r);let o=RegExp(`^`+V.split(``).map(e=>ue.indexOf(e)===-1?e:`\\`+e).join(`.*`),`i`),s=C.value;if(i===!0||s<0||o.test(J.value(t.options[s]))!==!0)do s=A(s+1,-1,a-1);while(s!==C.value&&(Y.value(t.options[s])===!0||o.test(J.value(t.options[s]))!==!0));C.value!==s&&n(()=>{Z(s),we(s),s>=0&&t.useInput===!0&&t.fillInput===!0&&ut(J.value(t.options[s]),!0)});return}if(!(e.keyCode!==13&&(e.keyCode!==32||t.useInput===!0||V!==``)&&(e.keyCode!==9||i===!1))){if(e.keyCode!==9&&f(e),C.value!==-1&&C.value<a){X(t.options[C.value]);return}if(r===!0){let e=(e,n)=>{if(n){if(le(n)!==!0)return}else n=t.newValueMode;dt(``,t.multiple!==!0,!0),e!=null&&((n===`toggle`?X:Ye)(e,n===`add-unique`),t.multiple!==!0&&(H.value?.focus(),$()))};if(t.onNewValue===void 0?e(T.value):c(`newValue`,T.value,e),t.multiple!==!0)return}b.value===!0?xt():G.innerLoading.value!==!0&&St()}}function it(){return F===!0?ge.value:U.value!==null&&U.value.contentEl!==null?U.value.contentEl:void 0}function at(){return it()}function ot(){return t.hideSelected===!0?[]:i[`selected-item`]===void 0?i.selected===void 0?t.useChips===!0?ze.value.map((e,n)=>s(oe,{key:`option-`+n,removable:G.editable.value===!0&&Y.value(e.opt)!==!0,dense:!0,textColor:t.color,tabindex:Ie.value,onRemove(){e.removeAtIndex(n)}},()=>s(`span`,{class:`ellipsis`,[e.html===!0?`innerHTML`:`textContent`]:J.value(e.opt)}))):[s(`span`,{class:`ellipsis`,[Fe.value===!0?`innerHTML`:`textContent`]:Ne.value})]:[].concat(i.selected()):ze.value.map(e=>i[`selected-item`](e)).slice()}function st(){if(je.value===!0)return i[`no-option`]===void 0?void 0:i[`no-option`]({inputValue:T.value});let e=i.option===void 0?e=>s(ne,{key:e.index,...e.itemProps},()=>s(re,()=>s(ie,()=>s(`span`,{[e.html===!0?`innerHTML`:`textContent`]:e.label})))):i.option,t=Se(`div`,Be.value.map(e));return i[`before-options`]!==void 0&&(t=i[`before-options`]().concat(t)),ee(i[`after-options`],t)}function ct(e,n){let r=n===!0?{...Le.value,...G.splitAttrs.attributes.value}:void 0,i={ref:n===!0?H:void 0,key:`i_t`,class:ke.value,style:t.inputStyle,value:T.value===void 0?``:T.value,type:`search`,...r,id:n===!0?G.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":e===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Ge.value};return e!==!0&&F===!0&&(Array.isArray(i.class)===!0?i.class=[...i.class,`no-pointer-events`]:i.class+=` no-pointer-events`),s(`input`,i)}function lt(e){N!==null&&(clearTimeout(N),N=null),P!==null&&(clearTimeout(P),P=null),!(e&&e.target&&e.target.qComposing===!0)&&(ut(e.target.value||``),I=!0,R=T.value,G.focused.value!==!0&&(F!==!0||j.value===!0)&&G.focus(),t.onFilter!==void 0&&(N=setTimeout(()=>{N=null,Q(T.value)},t.inputDebounce)))}function ut(e,n){T.value!==e&&(T.value=e,n===!0||t.inputDebounce===0||t.inputDebounce===`0`?c(`inputValue`,e):P=setTimeout(()=>{P=null,c(`inputValue`,e)},t.inputDebounce))}function dt(e,n,r){I=r!==!0,t.useInput===!0&&(ut(e,!0),(n===!0||r!==!0)&&(R=e),n!==!0&&Q(e))}function Q(e,r,i){if(t.onFilter===void 0||r!==!0&&G.focused.value!==!0)return;G.innerLoading.value===!0?c(`filterAbort`):(G.innerLoading.value=!0,M.value=!0),e!==``&&t.multiple!==!0&&K.value.length!==0&&I!==!0&&e===J.value(K.value[0])&&(e=``);let a=setTimeout(()=>{b.value===!0&&(b.value=!1)},10);L!==null&&clearTimeout(L),L=a,c(`filter`,e,(e,t)=>{(r===!0||G.focused.value===!0)&&L===a&&(clearTimeout(L),typeof e==`function`&&e(),M.value=!1,n(()=>{G.innerLoading.value=!1,G.editable.value===!0&&(r===!0?b.value===!0&&$():b.value===!0?wt(!0):b.value=!0),typeof t==`function`&&n(()=>{t(m)}),typeof i==`function`&&n(()=>{i(m)})}))},()=>{G.focused.value===!0&&L===a&&(clearTimeout(L),G.innerLoading.value=!1,M.value=!1),b.value===!0&&(b.value=!1)})}function ft(){return s(ae,{ref:U,class:Ae.value,style:t.popupContentStyle,modelValue:b.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&je.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:De.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:He.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...Re.value,onScrollPassive:Ce,onBeforeShow:Dt,onBeforeHide:pt,onShow:mt},st)}function pt(e){Ot(e),xt()}function mt(){Te()}function ht(e){p(e),H.value?.focus(),j.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function gt(e){p(e),n(()=>{j.value=!1})}function _t(){let e=[s(se,{class:`col-auto ${G.fieldClass.value}`,...Ee.value,for:G.targetUid.value,dark:De.value,square:!0,loading:M.value,itemAligned:!1,filled:!0,stackLabel:T.value.length!==0,...G.splitAttrs.listeners.value,onFocus:ht,onBlur:gt},{...i,rawControl:()=>G.getControl(!0),before:void 0,after:void 0})];return b.value===!0&&e.push(s(`div`,{ref:ge,class:Ae.value+` scroll`,style:t.popupContentStyle,...Re.value,onClick:y,onScrollPassive:Ce},st())),s(te,{ref:he,modelValue:S.value,position:t.useInput===!0?`top`:void 0,transitionShow:z,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Dt,onBeforeHide:vt,onHide:yt,onShow:bt},()=>s(`div`,{class:`q-select__dialog`+(De.value===!0?` q-select__dialog--dark q-dark`:``)+(j.value===!0?` q-select__dialog--focused`:``)},e))}function vt(e){Ot(e),he.value!==null&&he.value.__updateRefocusTarget(G.rootRef.value.querySelector(`.q-field__native > [tabindex]:last-child`)),G.focused.value=!1}function yt(e){$(),G.focused.value===!1&&c(`blur`,e),Ct()}function bt(){let e=document.activeElement;(e===null||e.id!==G.targetUid.value)&&H.value!==null&&H.value!==e&&H.value.focus(),Te()}function xt(){S.value!==!0&&(C.value=-1,b.value===!0&&(b.value=!1),G.focused.value===!1&&(L!==null&&(clearTimeout(L),L=null),G.innerLoading.value===!0&&(c(`filterAbort`),G.innerLoading.value=!1,M.value=!1)))}function St(e){G.editable.value===!0&&(F===!0?(G.onControlFocusin(e),S.value=!0,n(()=>{G.focus()})):G.focus(),t.onFilter===void 0?(je.value!==!0||i[`no-option`]!==void 0)&&(b.value=!0):Q(T.value))}function $(){S.value=!1,xt()}function Ct(){t.useInput===!0&&dt(t.multiple!==!0&&t.fillInput===!0&&K.value.length!==0&&J.value(K.value[0])||``,!0,!0)}function wt(e){let n=-1;if(e===!0){if(K.value.length!==0){let e=q.value(K.value[0]);n=t.options.findIndex(t=>x(q.value(t),e))}xe(n)}Z(n)}function Tt(e,t){b.value===!0&&G.innerLoading.value===!1&&(xe(-1,!0),n(()=>{b.value===!0&&G.innerLoading.value===!1&&(e>t?xe():wt(!0))}))}function Et(){S.value===!1&&U.value!==null&&U.value.updatePosition()}function Dt(e){e!==void 0&&p(e),c(`popupShow`,e),G.hasPopupOpen=!0,G.onControlFocusin(e)}function Ot(e){e!==void 0&&p(e),c(`popupHide`,e),G.hasPopupOpen=!1,G.onControlFocusout(e)}function kt(){F=h.platform.is.mobile!==!0&&t.behavior!==`dialog`?!1:t.behavior!==`menu`&&(t.useInput===!0?i[`no-option`]!==void 0||t.onFilter!==void 0||je.value===!1:!0),z=h.platform.is.ios===!0&&F===!0&&t.useInput===!0?`fade`:t.transitionShow}return e(kt),a(Et),kt(),l(()=>{N!==null&&clearTimeout(N),P!==null&&clearTimeout(P)}),Object.assign(m,{showPopup:St,hidePopup:$,removeAtIndex:qe,add:Ye,toggleOption:X,getOptionIndex:()=>C.value,setOptionIndex:Z,moveOptionSelection:Xe,filter:Q,updateMenuPosition:Et,updateInputValue:dt,isOptionSelected:Qe,getEmittingOptionValue:Ke,isOptionDisabled:(...e)=>Y.value.apply(null,e)===!0,getOptionValue:(...e)=>q.value.apply(null,e),getOptionLabel:(...e)=>J.value.apply(null,e)}),Object.assign(G,{innerValue:K,fieldClass:u(()=>`q-select q-field--auto-height q-select--with${t.useInput===!0?``:`out`}-input q-select--with${t.useChips===!0?``:`out`}-chips q-select--${t.multiple===!0?`multiple`:`single`}`),inputRef:me,targetRef:H,hasValue:Oe,showPopup:St,floatingLabel:u(()=>t.hideSelected!==!0&&Oe.value===!0||typeof T.value==`number`||T.value.length!==0||D(t.displayValue)),getControlChild:()=>{if(G.editable.value!==!1&&(S.value===!0||je.value!==!0||i[`no-option`]!==void 0))return F===!0?_t():ft();G.hasPopupOpen===!0&&(G.hasPopupOpen=!1)},controlEvents:{onFocusin(e){G.onControlFocusin(e)},onFocusout(e){G.onControlFocusout(e,()=>{Ct(),xt()})},onClick(e){if(y(e),F!==!0&&b.value===!0){xt(),H.value?.focus();return}St(e)}},getControl:e=>{let n=ot(),r=e===!0||S.value!==!0||F!==!0;if(t.useInput===!0)n.push(ct(e,r));else if(G.editable.value===!0){let i=r===!0?Le.value:void 0;n.push(s(`input`,{ref:r===!0?H:void 0,key:`d_t`,class:`q-select__focus-target`,id:r===!0?G.targetUid.value:void 0,value:Ne.value,readonly:!0,"data-autofocus":e===!0||t.autofocus===!0||void 0,...i,onKeydown:rt,onKeyup:et,onKeypress:nt})),r===!0&&typeof t.autocomplete==`string`&&t.autocomplete.length!==0&&n.push(s(`input`,{class:`q-select__autocomplete-input`,autocomplete:t.autocomplete,tabindex:-1,onKeyup:tt}))}if(_e.value!==void 0&&t.disable!==!0&&We.value.length!==0){let e=We.value.map(e=>s(`option`,{value:e,selected:!0}));n.push(s(`select`,{class:`hidden`,name:_e.value,multiple:t.multiple},e))}return s(`div`,{class:`q-field__native row items-center`,...t.useInput===!0||r!==!0?void 0:G.splitAttrs.attributes.value,...G.splitAttrs.listeners.value},n)},getInnerAppend:()=>t.loading!==!0&&M.value!==!0&&t.hideDropdownIcon!==!0?[s(v,{class:`q-select__dropdown-icon`+(b.value===!0?` rotate-180`:``),name:Ve.value})]:null}),O(G)}}),pe=[{id:`auto`,label:`Auto`,i18nLabelKey:`model.auto`,i18nDescriptionKey:`model.autoDescription`},{id:`claude-opus-4-7`,label:`Opus 4.7 (Classic)`,i18nLabelKey:`model.opus47Classic`,i18nDescriptionKey:`model.opus47ClassicDescription`},{id:`claude-opus-4-7[1m]`,label:`Opus 4.7 (1M)`,i18nLabelKey:`model.opus471m`,i18nDescriptionKey:`model.opus471mDescription`},{id:`claude-opus-4-6`,label:`Opus 4.6 (Classic)`,i18nLabelKey:`model.opusClassic`,i18nDescriptionKey:`model.opusClassicDescription`},{id:`claude-opus-4-6[1m]`,label:`Opus 4.6 (1M)`,i18nLabelKey:`model.opus1m`,i18nDescriptionKey:`model.opus1mDescription`},{id:`claude-sonnet-4-6`,label:`Sonnet 4.6 (Classic)`,i18nLabelKey:`model.sonnetClassic`,i18nDescriptionKey:`model.sonnetClassicDescription`},{id:`claude-sonnet-4-6[1m]`,label:`Sonnet 4.6 (1M)`,i18nLabelKey:`model.sonnet1m`,i18nDescriptionKey:`model.sonnet1mDescription`},{id:`claude-haiku-4-5-20251001`,label:`Haiku 4.5`,i18nLabelKey:`model.haiku`,i18nDescriptionKey:`model.haikuDescription`}].map(e=>({value:e.id,i18nLabelKey:e.i18nLabelKey,i18nDescriptionKey:e.i18nDescriptionKey}));export{V as n,pe as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,H as t,M as n,N as r,Q as i,S as a,j as o,k as s,l as c,o as l,y as u}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{O as d,j as f,m as p}from"./QIcon-B0-pH3Qs.js";import{a as m,f as h,l as g,s as _}from"./use-id-CDuXkR0Z.js";import{d as v,h as y,m as b,p as x,u as S}from"./QBtn-DHwAb18J.js";var C={},w=!1;function T(){w=!0}function ee(){let e=null,t=u();function n(){e!==null&&(clearTimeout(e),e=null)}return o(n),s(n),{removeTimeout:n,registerTimeout(r,i){n(),y(t)===!1&&(e=setTimeout(()=>{e=null,r()},i))}}}function te(){let t,n=u();function r(){t=void 0}return o(r),s(r),{removeTick:r,registerTick(r){t=r,e(()=>{t===r&&(y(n)===!1&&t(),t=void 0)})}}}var ne={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},re=[`beforeShow`,`show`,`beforeHide`,`hide`];function E({showing:r,canShow:i,hideOnRouteChange:a,handleShow:o,handleHide:s,processOnMount:c}){let l=u(),{props:d,emit:f,proxy:p}=l,m;function h(e){r.value===!0?v(e):g(e)}function g(t){if(d.disable===!0||t?.qAnchorHandled===!0||i!==void 0&&i(t)!==!0)return;let n=d[`onUpdate:modelValue`]!==void 0;n===!0&&(f(`update:modelValue`,!0),m=t,e(()=>{m===t&&(m=void 0)})),(d.modelValue===null||n===!1)&&_(t)}function _(e){r.value!==!0&&(r.value=!0,f(`beforeShow`,e),o===void 0?f(`show`,e):o(e))}function v(t){if(d.disable===!0)return;let n=d[`onUpdate:modelValue`]!==void 0;n===!0&&(f(`update:modelValue`,!1),m=t,e(()=>{m===t&&(m=void 0)})),(d.modelValue===null||n===!1)&&y(t)}function y(e){r.value!==!1&&(r.value=!1,f(`beforeHide`,e),s===void 0?f(`hide`,e):s(e))}function x(e){d.disable===!0&&e===!0?d[`onUpdate:modelValue`]!==void 0&&f(`update:modelValue`,!1):e===!0!==r.value&&(e===!0?_:y)(m)}t(()=>d.modelValue,x),a!==void 0&&b(l)===!0&&t(()=>p.$route.fullPath,()=>{a.value===!0&&r.value===!0&&v()}),c===!0&&n(()=>{x(d.modelValue)});let S={show:g,hide:v,toggle:h};return Object.assign(p,S),S}var D={transitionShow:{type:String,default:`fade`},transitionHide:{type:String,default:`fade`},transitionDuration:{type:[String,Number],default:300}};function O(e,t=()=>{},n=()=>{}){return{transitionProps:c(()=>{let r=`q-transition--${e.transitionShow||t()}`,i=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:c(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}var k=[],A=[],ie=1,ae=document.body;function j(e,t){let n=document.createElement(`div`);if(n.id=t===void 0?e:`q-portal--${t}--${ie++}`,C.globalNodes!==void 0){let e=C.globalNodes.class;e!==void 0&&(n.className=e)}return ae.appendChild(n),k.push(n),A.push(t),n}function M(e){let t=k.indexOf(e);k.splice(t,1),A.splice(t,1),e.remove()}var N=[];function oe(e){return N.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function P(e,t){do{if(e.$options.name===`QMenu`){if(e.hide(t),e.$props.separateClosePopup===!0)return x(e)}else if(e.__qPortal===!0){let n=x(e);return n?.$options.name===`QPopupProxy`?(e.hide(t),n):e}e=x(e)}while(e!=null)}function se(e,t,n){for(;n!==0&&e!=null;){if(e.__qPortal===!0){if(n--,e.$options.name===`QMenu`){e=P(e,t);continue}e.hide(t)}e=x(e)}}var ce=d({name:`QPortal`,setup(e,{slots:t}){return()=>t.default()}});function F(e){for(e=e.parent;e!=null;){if(e.type.name===`QGlobalDialog`)return!0;if(e.type.name===`QDialog`||e.type.name===`QMenu`)return!1;e=e.parent}return!1}function I(e,t,n,o){let s=i(!1),c=i(!1),u=null,d={},p=o===`dialog`&&F(e);function m(t){if(t===!0){g(d),c.value=!0;return}c.value=!1,s.value===!1&&(p===!1&&u===null&&(u=j(!1,o)),s.value=!0,N.push(e.proxy),_(d))}function h(t){if(c.value=!1,t!==!0)return;g(d),s.value=!1;let n=N.indexOf(e.proxy);n!==-1&&N.splice(n,1),u!==null&&(M(u),u=null)}return r(()=>{h(!0)}),e.proxy.__qPortal=!0,f(e.proxy,`contentEl`,()=>t.value),{showPortal:m,hidePortal:h,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>p===!0?n():s.value===!0?[a(l,{to:u},a(ce,n))]:void 0}}var L=[Element,String],R=[null,document,document.body,document.scrollingElement,document.documentElement];function z(e,t){let n=v(t);if(n===void 0){if(e==null)return window;n=e.closest(`.scroll,.scroll-y,.overflow-auto`)}return R.includes(n)?window:n}function B(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function V(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function H(e,t,n=0){let r=arguments[3]===void 0?performance.now():arguments[3],i=B(e);if(n<=0){i!==t&&W(e,t);return}requestAnimationFrame(a=>{let o=a-r,s=i+(t-i)/Math.max(o,n)*o;W(e,s),s!==t&&H(e,t,n-o,a)})}function U(e,t,n=0){let r=arguments[3]===void 0?performance.now():arguments[3],i=V(e);if(n<=0){i!==t&&G(e,t);return}requestAnimationFrame(a=>{let o=a-r,s=i+(t-i)/Math.max(o,n)*o;G(e,s),s!==t&&U(e,t,n-o,a)})}function W(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function G(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function le(e,t,n){if(n){H(e,t,n);return}W(e,t)}function ue(e,t,n){if(n){U(e,t,n);return}G(e,t)}var K;function de(){if(K!==void 0)return K;let e=document.createElement(`p`),t=document.createElement(`div`);S(e,{width:`100%`,height:`200px`}),S(t,{position:`absolute`,top:`0px`,left:`0px`,visibility:`hidden`,width:`200px`,height:`150px`,overflow:`hidden`}),t.appendChild(e),document.body.appendChild(t);let n=e.offsetWidth;t.style.overflow=`scroll`;let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),K=n-r,K}function fe(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains(`scroll`)||e.classList.contains(`overflow-auto`)||[`auto`,`scroll`].includes(window.getComputedStyle(e)[`overflow-y`])):e.scrollWidth>e.clientWidth&&(e.classList.contains(`scroll`)||e.classList.contains(`overflow-auto`)||[`auto`,`scroll`].includes(window.getComputedStyle(e)[`overflow-x`]))}var q=[],J;function pe(e){J=e.keyCode===27}function me(){J===!0&&(J=!1)}function he(e){J===!0&&(J=!1,p(e,27)===!0&&q[q.length-1](e))}function Y(e){window[e](`keydown`,pe),window[e](`blur`,me),window[e](`keyup`,he),J=!1}function ge(e){h.is.desktop===!0&&(q.push(e),q.length===1&&Y(`addEventListener`))}function X(e){let t=q.indexOf(e);t!==-1&&(q.splice(t,1),q.length===0&&Y(`removeEventListener`))}var Z=[];function Q(e){Z[Z.length-1](e)}function _e(e){h.is.desktop===!0&&(Z.push(e),Z.length===1&&document.body.addEventListener(`focusin`,Q))}function ve(e){let t=Z.indexOf(e);t!==-1&&(Z.splice(t,1),Z.length===0&&document.body.removeEventListener(`focusin`,Q))}function $(e){return btoa(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}var ye=m(`settings`,{state:()=>({global:{defaultModel:`claude-opus-4-7`,dangerouslySkipPermissions:!0,prPromptTemplate:``,gitConventions:``,editorCommand:``,browserNotifications:!0,audioNotifications:!0,notionStatusProperty:``,notionInProgressStatus:``,defaultPermissionMode:`plan`,notionMcpKey:``,sentryMcpKey:``,tags:[]},activeMcpServers:[],projects:[],loading:!1,showVerboseSystemMessages:localStorage.getItem(`kobo:showVerboseSystemMessages`)===`true`}),getters:{getProjectByPath:e=>t=>e.projects.find(e=>e.path===t)??null,projectPaths:e=>e.projects.map(e=>e.path)},actions:{async fetchSettings(){this.loading=!0;try{let e=await fetch(`/api/settings`);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();this.global=t.global,this.projects=t.projects}catch(e){console.error(`[settings store] fetchSettings failed:`,e)}finally{this.loading=!1}},async fetchActiveMcpServers(){try{let e=await fetch(`/api/settings/mcp-servers`);if(!e.ok)throw Error(`HTTP ${e.status}`);this.activeMcpServers=await e.json()}catch(e){console.error(`[settings store] fetchActiveMcpServers failed:`,e),this.activeMcpServers=[]}},async updateGlobal(e){try{let t=await fetch(`/api/settings/global`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)throw Error(`HTTP ${t.status}`);this.global=await t.json()}catch(e){throw console.error(`[settings store] updateGlobal failed:`,e),e}},async upsertProject(e,t){try{let n=$(e),r=await fetch(`/api/settings/projects/${n}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!r.ok)throw Error(`HTTP ${r.status}`);let i=await r.json(),a=this.projects.findIndex(t=>t.path===e);a>=0?this.projects[a]=i:this.projects.push(i)}catch(e){throw console.error(`[settings store] upsertProject failed:`,e),e}},toggleVerboseSystemMessages(){this.showVerboseSystemMessages=!this.showVerboseSystemMessages,localStorage.setItem(`kobo:showVerboseSystemMessages`,String(this.showVerboseSystemMessages))},async deleteProject(e){try{let t=$(e),n=await fetch(`/api/settings/projects/${t}`,{method:`DELETE`});if(!n.ok)throw Error(`HTTP ${n.status}`);this.projects=this.projects.filter(t=>t.path!==e)}catch(e){throw console.error(`[settings store] deleteProject failed:`,e),e}}}});export{w as A,E as C,ee as D,te as E,T as O,D as S,ne as T,oe as _,X as a,M as b,de as c,L as d,ue as f,se as g,P as h,ge as i,C as k,B as l,I as m,_e as n,V as o,le as p,ve as r,z as s,ye as t,fe as u,N as v,re as w,O as x,j as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`_q_s_`,t=`_q_l_`,n=`_q_pc_`,r=`_q_fo_`,i=`_q_tabs_`;function a(){}export{e as a,n as i,r as n,i as o,t as r,a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Q as e,S as t,l as n,tt as r,y as i}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{D as a,a as o,f as s,n as c,p as l,r as u,s as d}from"./QIcon-B0-pH3Qs.js";import{a as f,r as p}from"./QInput-D4WJro4e.js";function m(r,i){let a=e(null),o=n(()=>r.disable===!0?null:t(`span`,{ref:a,class:`no-outline`,tabindex:-1}));function s(e){let t=i.value;e?.qAvoidFocus!==!0&&(e?.type.indexOf(`key`)===0?document.activeElement!==t&&t?.contains(document.activeElement)===!0&&t.focus():a.value!==null&&(e===void 0||t?.contains(e.target)===!0)&&a.value.focus())}return{refocusTargetEl:o,refocusTarget:s}}var h={xs:30,sm:35,md:40,lg:50,xl:60},g={...u,...l,...f,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e===`tf`||e===`ft`},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},_=[`update:modelValue`];function v(l,u){let{props:f,slots:g,emit:_,proxy:v}=i(),{$q:y}=v,b=c(f,y),x=e(null),{refocusTargetEl:S,refocusTarget:C}=m(f,x),w=s(f,h),T=n(()=>f.val!==void 0&&Array.isArray(f.modelValue)),E=n(()=>{let e=r(f.val);return T.value===!0?f.modelValue.findIndex(t=>r(t)===e):-1}),D=n(()=>T.value===!0?E.value!==-1:r(f.modelValue)===r(f.trueValue)),O=n(()=>T.value===!0?E.value===-1:r(f.modelValue)===r(f.falseValue)),k=n(()=>D.value===!1&&O.value===!1),A=n(()=>f.disable===!0?-1:f.tabindex||0),j=n(()=>`q-${l} cursor-pointer no-outline row inline no-wrap items-center`+(f.disable===!0?` disabled`:``)+(b.value===!0?` q-${l}--dark`:``)+(f.dense===!0?` q-${l}--dense`:``)+(f.leftLabel===!0?` reverse`:``)),M=n(()=>`q-${l}__inner relative-position non-selectable q-${l}__inner--${D.value===!0?`truthy`:O.value===!0?`falsy`:`indet`}${f.color!==void 0&&(f.keepColor===!0||(l===`toggle`?D.value===!0:O.value!==!0))?` text-${f.color}`:``}`),N=p(n(()=>{let e={type:`checkbox`};return f.name!==void 0&&Object.assign(e,{".checked":D.value,"^checked":D.value===!0?`checked`:void 0,name:f.name,value:T.value===!0?f.val:f.trueValue}),e})),P=n(()=>{let e={tabindex:A.value,role:l===`toggle`?`switch`:`checkbox`,"aria-label":f.label,"aria-checked":k.value===!0?`mixed`:D.value===!0?`true`:`false`};return f.disable===!0&&(e[`aria-disabled`]=`true`),e});function F(e){e!==void 0&&(a(e),C(e)),f.disable!==!0&&_(`update:modelValue`,I(),e)}function I(){if(T.value===!0){if(D.value===!0){let e=f.modelValue.slice();return e.splice(E.value,1),e}return f.modelValue.concat([f.val])}if(D.value===!0){if(f.toggleOrder!==`ft`||f.toggleIndeterminate===!1)return f.falseValue}else if(O.value===!0){if(f.toggleOrder===`ft`||f.toggleIndeterminate===!1)return f.trueValue}else return f.toggleOrder===`ft`?f.falseValue:f.trueValue;return f.indeterminateValue}function L(e){(e.keyCode===13||e.keyCode===32)&&a(e)}function R(e){(e.keyCode===13||e.keyCode===32)&&F(e)}let z=u(D,k);return Object.assign(v,{toggle:F}),()=>{let e=z();f.disable!==!0&&N(e,`unshift`,` q-${l}__native absolute q-ma-none q-pa-none`);let n=[t(`div`,{class:M.value,style:w.value,"aria-hidden":`true`},e)];S.value!==null&&n.push(S.value);let r=f.label===void 0?d(g.default):o(g.default,[f.label]);return r!==void 0&&n.push(t(`div`,{class:`q-${l}__label q-anchor--skip`},r)),t(`div`,{ref:x,class:j.value,...P.value,onClick:F,onKeydown:L,onKeyup:R},n)}}export{m as a,h as i,_ as n,g as r,v as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as e,Q as t,S as n,i as r,l as i,y as a}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{C as o,D as s,M as c,S as l,T as u,_ as d,b as f,k as p,s as m,v as h}from"./QIcon-B0-pH3Qs.js";import{f as g}from"./use-id-CDuXkR0Z.js";import{D as _}from"./settings-Dbx1_ksA.js";import{f as v}from"./QBtn-DHwAb18J.js";import{p as y}from"./QTooltip-DjJYMTkN.js";import{n as b,t as x}from"./touch-Co9pfjUU.js";function S(e){let t=[.06,6,50];return typeof e==`string`&&e.length&&e.split(`:`).forEach((e,n)=>{let r=parseFloat(e);r&&(t[n]=r)}),t}var C=p({name:`touch-swipe`,beforeMount(e,{value:t,arg:n,modifiers:r}){if(r.mouse!==!0&&g.has.touch!==!0)return;let i=r.mouseCapture===!0?`Capture`:``,a={handler:t,sensitivity:S(n),direction:x(r),noop:l,mouseStart(e){b(e,a)&&f(e)&&(d(a,`temp`,[[document,`mousemove`,`move`,`notPassive${i}`],[document,`mouseup`,`end`,`notPassiveCapture`]]),a.start(e,!0))},touchStart(e){if(b(e,a)){let t=e.target;d(a,`temp`,[[t,`touchmove`,`move`,`notPassiveCapture`],[t,`touchcancel`,`end`,`notPassiveCapture`],[t,`touchend`,`end`,`notPassiveCapture`]]),a.start(e)}},start(t,n){g.is.firefox===!0&&u(e,!0);let r=o(t);a.event={x:r.left,y:r.top,time:Date.now(),mouse:n===!0,dir:!1}},move(e){if(a.event===void 0)return;if(a.event.dir!==!1){s(e);return}let t=Date.now()-a.event.time;if(t===0)return;let n=o(e),r=n.left-a.event.x,i=Math.abs(r),c=n.top-a.event.y,l=Math.abs(c);if(a.event.mouse!==!0){if(i<a.sensitivity[1]&&l<a.sensitivity[1]){a.end(e);return}}else if(window.getSelection().toString()!==``){a.end(e);return}else if(i<a.sensitivity[2]&&l<a.sensitivity[2])return;let u=i/t,d=l/t;a.direction.vertical===!0&&i<l&&i<100&&d>a.sensitivity[0]&&(a.event.dir=c<0?`up`:`down`),a.direction.horizontal===!0&&i>l&&l<100&&u>a.sensitivity[0]&&(a.event.dir=r<0?`left`:`right`),a.direction.up===!0&&i<l&&c<0&&i<100&&d>a.sensitivity[0]&&(a.event.dir=`up`),a.direction.down===!0&&i<l&&c>0&&i<100&&d>a.sensitivity[0]&&(a.event.dir=`down`),a.direction.left===!0&&i>l&&r<0&&l<100&&u>a.sensitivity[0]&&(a.event.dir=`left`),a.direction.right===!0&&i>l&&r>0&&l<100&&u>a.sensitivity[0]&&(a.event.dir=`right`),a.event.dir===!1?a.end(e):(s(e),a.event.mouse===!0&&(document.body.classList.add(`no-pointer-events--children`),document.body.classList.add(`non-selectable`),y(),a.styleCleanup=e=>{a.styleCleanup=void 0,document.body.classList.remove(`non-selectable`);let t=()=>{document.body.classList.remove(`no-pointer-events--children`)};e===!0?setTimeout(t,50):t()}),a.handler({evt:e,touch:a.event.mouse!==!0,mouse:a.event.mouse,direction:a.event.dir,duration:t,distance:{x:i,y:l}}))},end(t){a.event!==void 0&&(h(a,`temp`),g.is.firefox===!0&&u(e,!1),a.styleCleanup?.(!0),t!==void 0&&a.event.dir!==!1&&s(t),a.event=void 0)}};e.__qtouchswipe=a,r.mouse===!0&&d(a,`main`,[[e,`mousedown`,`mouseStart`,`passive${r.mouseCapture===!0||r.mousecapture===!0?`Capture`:``}`]]),g.has.touch===!0&&d(a,`main`,[[e,`touchstart`,`touchStart`,`passive${r.capture===!0?`Capture`:``}`],[e,`touchmove`,`noop`,`notPassiveCapture`]])},updated(e,t){let n=e.__qtouchswipe;n!==void 0&&(t.oldValue!==t.value&&(typeof t.value!=`function`&&n.end(),n.handler=t.value),n.direction=x(t.modifiers))},beforeUnmount(e){let t=e.__qtouchswipe;t!==void 0&&(h(t,`main`),h(t,`temp`),g.is.firefox===!0&&u(e,!1),t.styleCleanup?.(),delete e.__qtouchswipe)}});function w(){let e=Object.create(null);return{getCache:(t,n)=>e[t]===void 0?e[t]=typeof n==`function`?n():n:e[t],setCache(t,n){e[t]=n},hasCache(t){return Object.hasOwnProperty.call(e,t)},clearCache(t){t===void 0?e=Object.create(null):delete e[t]}}}var T={name:{required:!0},disable:Boolean},E={setup(e,{slots:t}){return()=>n(`div`,{class:`q-panel scroll`,role:`tabpanel`},m(t.default))}},D={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},O=[`update:modelValue`,`beforeTransition`,`transition`];function k(){let{props:o,emit:s,proxy:l}=a(),{getCache:u}=w(),{registerTimeout:d}=_(),f,p,h=t(null),g={value:null};function y(e){let t=o.vertical===!0?`up`:`left`;L((l.$q.lang.rtl===!0?-1:1)*(e.direction===t?1:-1))}let b=i(()=>[[C,y,void 0,{horizontal:o.vertical!==!0,vertical:o.vertical,mouse:!0}]]),x=i(()=>o.transitionPrev||`slide-${o.vertical===!0?`down`:`right`}`),S=i(()=>o.transitionNext||`slide-${o.vertical===!0?`up`:`left`}`),T=i(()=>`--q-transition-duration: ${o.transitionDuration}ms`),D=i(()=>typeof o.modelValue==`string`||typeof o.modelValue==`number`?o.modelValue:String(o.modelValue)),O=i(()=>({include:o.keepAliveInclude,exclude:o.keepAliveExclude,max:o.keepAliveMax})),k=i(()=>o.keepAliveInclude!==void 0||o.keepAliveExclude!==void 0);e(()=>o.modelValue,(e,t)=>{let n=N(e)===!0?P(e):-1;p!==!0&&I(n===-1?0:n<P(t)?-1:1),g.value!==n&&(g.value=n,s(`beforeTransition`,e,t),d(()=>{s(`transition`,e,t)},o.transitionDuration))});function A(){L(1)}function j(){L(-1)}function M(e){s(`update:modelValue`,e)}function N(e){return e!=null&&e!==``}function P(e){return f.findIndex(t=>t.props.name===e&&t.props.disable!==``&&t.props.disable!==!0)}function F(){return f.filter(e=>e.props.disable!==``&&e.props.disable!==!0)}function I(e){let t=e!==0&&o.animated===!0&&g.value!==-1?`q-transition--`+(e===-1?x.value:S.value):null;h.value!==t&&(h.value=t)}function L(e,t=g.value){let n=t+e;for(;n!==-1&&n<f.length;){let t=f[n];if(t!==void 0&&t.props.disable!==``&&t.props.disable!==!0){I(e),p=!0,s(`update:modelValue`,t.props.name),setTimeout(()=>{p=!1});return}n+=e}o.infinite===!0&&f.length!==0&&t!==-1&&t!==f.length&&L(e,e===-1?f.length:-1)}function R(){let e=P(o.modelValue);return g.value!==e&&(g.value=e),!0}function z(){let e=N(o.modelValue)===!0&&R()&&f[g.value];return o.keepAlive===!0?[n(r,O.value,[n(k.value===!0?u(D.value,()=>({...E,name:D.value})):E,{key:D.value,style:T.value},()=>e)])]:[n(`div`,{class:`q-panel scroll`,style:T.value,key:D.value,role:`tabpanel`},[e])]}function B(){if(f.length!==0)return o.animated===!0?[n(c,{name:h.value},z)]:z()}function V(e){return f=v(m(e.default,[])).filter(e=>e.props!==null&&e.props.slot===void 0&&N(e.props.name)===!0),f.length}function H(){return f}return Object.assign(l,{next:A,previous:j,goTo:M}),{panelIndex:g,panelDirectives:b,updatePanelsList:V,updatePanelIndex:R,getPanelContent:B,getEnabledPanels:F,getPanels:H,isValidPanelName:N,keepAliveProps:O,needsUniqueKeepAliveWrapper:k,goToPanelByOffset:L,goToPanel:M,nextPanel:A,previousPanel:j}}export{w as a,D as i,T as n,O as r,k as t};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/client/dist/spa/assets/{restructuredtext-BzjxwS8h.js → restructuredtext-edObr9a8.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|