zudoku 0.3.0-dev.55 → 0.3.0-dev.57
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/dist/app/demo.js +6 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +1 -1
- package/dist/app/entry.client.js +1 -1
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -1
- package/dist/app/entry.server.js +1 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +9 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +6 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/config/validators/validate.d.ts +77 -17
- package/dist/config/validators/validate.js +7 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/DeveloperHint.d.ts +5 -0
- package/dist/lib/components/DeveloperHint.js +10 -0
- package/dist/lib/components/DeveloperHint.js.map +1 -0
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationCategory.js +2 -2
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +8 -1
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +5 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
- package/dist/lib/plugins/api-keys/index.js +2 -12
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +4 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +5 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +13 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -3
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/vite/plugin-custom-css.js +2 -3
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/lib/AnchorLink-GNsUeGSX.js +705 -0
- package/lib/{AnchorLink-BaXHjhF-.js.map → AnchorLink-GNsUeGSX.js.map} +1 -1
- package/lib/Button-DpHMZvVs.js +4571 -0
- package/lib/Button-DpHMZvVs.js.map +1 -0
- package/lib/DevPortalProvider-Do9oJqme.js +1081 -0
- package/lib/{DevPortalProvider-GjdO0Xr-.js.map → DevPortalProvider-Do9oJqme.js.map} +1 -1
- package/lib/Markdown-DtLFdxD1.js +15031 -0
- package/lib/Markdown-DtLFdxD1.js.map +1 -0
- package/lib/MdxPage-CbwYRKf5.js +190 -0
- package/lib/{MdxPage-Dlujuj-J.js.map → MdxPage-CbwYRKf5.js.map} +1 -1
- package/lib/OperationList-DypxLtSC.js +5578 -0
- package/lib/OperationList-DypxLtSC.js.map +1 -0
- package/lib/Route-C1LyvITr.js +13 -0
- package/lib/{Route-CR6TEwVC.js.map → Route-C1LyvITr.js.map} +1 -1
- package/lib/Spinner-Bhbs5aPI.js +182 -0
- package/lib/Spinner-Bhbs5aPI.js.map +1 -0
- package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
- package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
- package/lib/assets/index-BPdJm2ty.js +4765 -0
- package/lib/assets/{index-CpIig0AX.js.map → index-BPdJm2ty.js.map} +1 -1
- package/lib/assets/worker-BWwCA-wk.js +14900 -0
- package/lib/assets/{worker-B5k2aBV9.js.map → worker-BWwCA-wk.js.map} +1 -1
- package/lib/context-_fYfJFgk.js +14 -0
- package/lib/{context-BoN_3uxi.js.map → context-_fYfJFgk.js.map} +1 -1
- package/lib/hook-Biq3zYel.js +92 -0
- package/lib/hook-Biq3zYel.js.map +1 -0
- package/lib/{index-Dih8IAqw.js → index-Bg82-bqR.js} +83 -103
- package/lib/{index-Dih8IAqw.js.map → index-Bg82-bqR.js.map} +1 -1
- package/lib/index-gsAuUwQh.js +418 -0
- package/lib/index-gsAuUwQh.js.map +1 -0
- package/lib/index-pI9JkN46.js +4765 -0
- package/lib/{index-Bn03IPZt.js.map → index-pI9JkN46.js.map} +1 -1
- package/lib/jsx-runtime-CJZJivg2.js +1526 -0
- package/lib/{jsx-runtime-DvZ6OKMM.js.map → jsx-runtime-CJZJivg2.js.map} +1 -1
- package/lib/prism-bash.min-DadFsM4Z.js +7 -0
- package/lib/{prism-bash.min-BtBk0onv.js.map → prism-bash.min-DadFsM4Z.js.map} +1 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
- package/lib/{prism-csharp.min-Cv7D49bv.js.map → prism-csharp.min-Yizuc34Y.js.map} +1 -1
- package/lib/prism-java.min-d5iT_mOd.js +7 -0
- package/lib/{prism-java.min-tNK-JX6x.js.map → prism-java.min-d5iT_mOd.js.map} +1 -1
- package/lib/prism-json.min-B1GJqK1k.js +2 -0
- package/lib/{prism-json.min-Cdtv-CME.js.map → prism-json.min-B1GJqK1k.js.map} +1 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +62 -0
- package/lib/{prism-markup-templating-iotg2sCU.js.map → prism-markup-templating-DZrrEs0A.js.map} +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
- package/lib/{prism-objectivec.min-CY4WGixz.js.map → prism-objectivec.min-BXSWqpJJ.js.map} +1 -1
- package/lib/prism-php.min-o7FpoMP_.js +11 -0
- package/lib/{prism-php.min-T6sIVgED.js.map → prism-php.min-o7FpoMP_.js.map} +1 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +10 -0
- package/lib/{prism-ruby.min-B-2KAa4y.js.map → prism-ruby.min-C7LwcKyz.js.map} +1 -1
- package/lib/router-CBw2vqJE.js +2973 -0
- package/lib/{router-ButO1QyY.js.map → router-CBw2vqJE.js.map} +1 -1
- package/lib/slugify-CiPVjteN.js +28 -0
- package/lib/{slugify-CmS97Vy8.js.map → slugify-CiPVjteN.js.map} +1 -1
- package/lib/state-DKdaQzvh.js +288 -0
- package/lib/{state-CmGfNKhR.js.map → state-DKdaQzvh.js.map} +1 -1
- package/lib/urql-DMlBWUKL.js +1592 -0
- package/lib/{urql-DtVKPBx_.js.map → urql-DMlBWUKL.js.map} +1 -1
- package/lib/util-_jwUlTBU.js +41 -0
- package/lib/{util-B5KX4h4M.js.map → util-_jwUlTBU.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +18 -24
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +34 -43
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +734 -1121
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +830 -1076
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +9689 -13781
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +171 -208
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +33 -41
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/lib/zudoku.plugin-redirect.js +8 -10
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/package.json +2 -2
- package/src/app/demo.tsx +6 -1
- package/src/app/entry.client.tsx +1 -1
- package/src/app/entry.server.tsx +1 -1
- package/src/app/main.tsx +11 -2
- package/src/app/standalone.tsx +6 -1
- package/src/lib/components/DeveloperHint.tsx +25 -0
- package/src/lib/components/Header.tsx +6 -1
- package/src/lib/components/NotFoundPage.tsx +8 -14
- package/src/lib/components/navigation/SideNavigationCategory.tsx +3 -3
- package/src/lib/core/DevPortalContext.ts +8 -1
- package/src/lib/oas/graphql/index.ts +7 -3
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
- package/src/lib/plugins/api-keys/index.tsx +2 -21
- package/src/lib/plugins/openapi/OperationList.tsx +14 -14
- package/src/lib/plugins/openapi/StaggeredRender.tsx +17 -0
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -5
- package/lib/AnchorLink-BaXHjhF-.js +0 -989
- package/lib/Combination-BfufJFkX.js +0 -1365
- package/lib/Combination-BfufJFkX.js.map +0 -1
- package/lib/DevPortalProvider-GjdO0Xr-.js +0 -1610
- package/lib/Markdown-B8nPVql1.js +0 -19708
- package/lib/Markdown-B8nPVql1.js.map +0 -1
- package/lib/MdxPage-Dlujuj-J.js +0 -223
- package/lib/OperationList-krPgt6sE.js +0 -8041
- package/lib/OperationList-krPgt6sE.js.map +0 -1
- package/lib/Playground-DOHxca0P.js +0 -539
- package/lib/Playground-DOHxca0P.js.map +0 -1
- package/lib/Route-CR6TEwVC.js +0 -13
- package/lib/Select-Boi_pe3L.js +0 -5298
- package/lib/Select-Boi_pe3L.js.map +0 -1
- package/lib/Spinner-oU0QJmi_.js +0 -16
- package/lib/Spinner-oU0QJmi_.js.map +0 -1
- package/lib/_commonjsHelpers-BxmBWJD2.js +0 -34
- package/lib/_commonjsHelpers-BxmBWJD2.js.map +0 -1
- package/lib/assets/index-CpIig0AX.js +0 -6341
- package/lib/assets/worker-B5k2aBV9.js +0 -18921
- package/lib/context-BoN_3uxi.js +0 -17
- package/lib/hook-CIuFuyBT.js +0 -90
- package/lib/hook-CIuFuyBT.js.map +0 -1
- package/lib/index-BL1P4Gqq.js +0 -280
- package/lib/index-BL1P4Gqq.js.map +0 -1
- package/lib/index-Bn03IPZt.js +0 -6341
- package/lib/index-FprhHF51.js +0 -253
- package/lib/index-FprhHF51.js.map +0 -1
- package/lib/jsx-runtime-DvZ6OKMM.js +0 -2110
- package/lib/mutation-DWY9x2Uc.js +0 -250
- package/lib/mutation-DWY9x2Uc.js.map +0 -1
- package/lib/prism-bash.min-BtBk0onv.js +0 -7
- package/lib/prism-csharp.min-Cv7D49bv.js +0 -30
- package/lib/prism-java.min-tNK-JX6x.js +0 -7
- package/lib/prism-json.min-Cdtv-CME.js +0 -2
- package/lib/prism-markup-templating-iotg2sCU.js +0 -94
- package/lib/prism-objectivec.min-CY4WGixz.js +0 -2
- package/lib/prism-php.min-T6sIVgED.js +0 -11
- package/lib/prism-ruby.min-B-2KAa4y.js +0 -8
- package/lib/router-ButO1QyY.js +0 -4062
- package/lib/slugify-CmS97Vy8.js +0 -50
- package/lib/state-CmGfNKhR.js +0 -436
- package/lib/urql-DtVKPBx_.js +0 -2567
- package/lib/util-B5KX4h4M.js +0 -55
package/lib/slugify-CmS97Vy8.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { c as commonjsGlobal, a as getDefaultExportFromCjs } from "./_commonjsHelpers-BxmBWJD2.js";
|
|
2
|
-
var slugify$1 = { exports: {} };
|
|
3
|
-
(function(module, exports) {
|
|
4
|
-
(function(name, root, factory) {
|
|
5
|
-
{
|
|
6
|
-
module.exports = factory();
|
|
7
|
-
module.exports["default"] = factory();
|
|
8
|
-
}
|
|
9
|
-
})("slugify", commonjsGlobal, function() {
|
|
10
|
-
var charMap = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`);
|
|
11
|
-
var locales = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
12
|
-
function replace(string, options) {
|
|
13
|
-
if (typeof string !== "string") {
|
|
14
|
-
throw new Error("slugify: string argument expected");
|
|
15
|
-
}
|
|
16
|
-
options = typeof options === "string" ? { replacement: options } : options || {};
|
|
17
|
-
var locale = locales[options.locale] || {};
|
|
18
|
-
var replacement = options.replacement === void 0 ? "-" : options.replacement;
|
|
19
|
-
var trim = options.trim === void 0 ? true : options.trim;
|
|
20
|
-
var slug = string.normalize().split("").reduce(function(result, ch) {
|
|
21
|
-
var appendChar = locale[ch];
|
|
22
|
-
if (appendChar === void 0) appendChar = charMap[ch];
|
|
23
|
-
if (appendChar === void 0) appendChar = ch;
|
|
24
|
-
if (appendChar === replacement) appendChar = " ";
|
|
25
|
-
return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
26
|
-
}, "");
|
|
27
|
-
if (options.strict) {
|
|
28
|
-
slug = slug.replace(/[^A-Za-z0-9\s]/g, "");
|
|
29
|
-
}
|
|
30
|
-
if (trim) {
|
|
31
|
-
slug = slug.trim();
|
|
32
|
-
}
|
|
33
|
-
slug = slug.replace(/\s+/g, replacement);
|
|
34
|
-
if (options.lower) {
|
|
35
|
-
slug = slug.toLowerCase();
|
|
36
|
-
}
|
|
37
|
-
return slug;
|
|
38
|
-
}
|
|
39
|
-
replace.extend = function(customMap) {
|
|
40
|
-
Object.assign(charMap, customMap);
|
|
41
|
-
};
|
|
42
|
-
return replace;
|
|
43
|
-
});
|
|
44
|
-
})(slugify$1);
|
|
45
|
-
var slugifyExports = slugify$1.exports;
|
|
46
|
-
const slugify = /* @__PURE__ */ getDefaultExportFromCjs(slugifyExports);
|
|
47
|
-
export {
|
|
48
|
-
slugify as s
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=slugify-CmS97Vy8.js.map
|
package/lib/state-CmGfNKhR.js
DELETED
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
import React__default from "react";
|
|
2
|
-
import { a as getDefaultExportFromCjs } from "./_commonjsHelpers-BxmBWJD2.js";
|
|
3
|
-
var define_import_meta_env_default$1 = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
4
|
-
const createStoreImpl = (createState) => {
|
|
5
|
-
let state;
|
|
6
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
7
|
-
const setState = (partial, replace) => {
|
|
8
|
-
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
9
|
-
if (!Object.is(nextState, state)) {
|
|
10
|
-
const previousState = state;
|
|
11
|
-
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
12
|
-
listeners.forEach((listener) => listener(state, previousState));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
const getState = () => state;
|
|
16
|
-
const getInitialState = () => initialState;
|
|
17
|
-
const subscribe = (listener) => {
|
|
18
|
-
listeners.add(listener);
|
|
19
|
-
return () => listeners.delete(listener);
|
|
20
|
-
};
|
|
21
|
-
const destroy = () => {
|
|
22
|
-
if ((define_import_meta_env_default$1 ? "production" : void 0) !== "production") {
|
|
23
|
-
console.warn(
|
|
24
|
-
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
listeners.clear();
|
|
28
|
-
};
|
|
29
|
-
const api = { setState, getState, getInitialState, subscribe, destroy };
|
|
30
|
-
const initialState = state = createState(setState, getState, api);
|
|
31
|
-
return api;
|
|
32
|
-
};
|
|
33
|
-
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
34
|
-
var withSelector = { exports: {} };
|
|
35
|
-
var withSelector_production_min = {};
|
|
36
|
-
var shim = { exports: {} };
|
|
37
|
-
var useSyncExternalStoreShim_production_min = {};
|
|
38
|
-
/**
|
|
39
|
-
* @license React
|
|
40
|
-
* use-sync-external-store-shim.production.min.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/
|
|
47
|
-
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
48
|
-
function requireUseSyncExternalStoreShim_production_min() {
|
|
49
|
-
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
50
|
-
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
51
|
-
var e = React__default;
|
|
52
|
-
function h(a, b) {
|
|
53
|
-
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
54
|
-
}
|
|
55
|
-
var k = "function" === typeof Object.is ? Object.is : h, l = e.useState, m = e.useEffect, n = e.useLayoutEffect, p = e.useDebugValue;
|
|
56
|
-
function q(a, b) {
|
|
57
|
-
var d = b(), f = l({ inst: { value: d, getSnapshot: b } }), c = f[0].inst, g = f[1];
|
|
58
|
-
n(function() {
|
|
59
|
-
c.value = d;
|
|
60
|
-
c.getSnapshot = b;
|
|
61
|
-
r(c) && g({ inst: c });
|
|
62
|
-
}, [a, d, b]);
|
|
63
|
-
m(function() {
|
|
64
|
-
r(c) && g({ inst: c });
|
|
65
|
-
return a(function() {
|
|
66
|
-
r(c) && g({ inst: c });
|
|
67
|
-
});
|
|
68
|
-
}, [a]);
|
|
69
|
-
p(d);
|
|
70
|
-
return d;
|
|
71
|
-
}
|
|
72
|
-
function r(a) {
|
|
73
|
-
var b = a.getSnapshot;
|
|
74
|
-
a = a.value;
|
|
75
|
-
try {
|
|
76
|
-
var d = b();
|
|
77
|
-
return !k(a, d);
|
|
78
|
-
} catch (f) {
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function t(a, b) {
|
|
83
|
-
return b();
|
|
84
|
-
}
|
|
85
|
-
var u = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t : q;
|
|
86
|
-
useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExternalStore : u;
|
|
87
|
-
return useSyncExternalStoreShim_production_min;
|
|
88
|
-
}
|
|
89
|
-
var useSyncExternalStoreShim_development = {};
|
|
90
|
-
/**
|
|
91
|
-
* @license React
|
|
92
|
-
* use-sync-external-store-shim.development.js
|
|
93
|
-
*
|
|
94
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the MIT license found in the
|
|
97
|
-
* LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/
|
|
99
|
-
var hasRequiredUseSyncExternalStoreShim_development;
|
|
100
|
-
function requireUseSyncExternalStoreShim_development() {
|
|
101
|
-
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
102
|
-
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
103
|
-
if (process.env.NODE_ENV !== "production") {
|
|
104
|
-
(function() {
|
|
105
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
106
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
107
|
-
}
|
|
108
|
-
var React = React__default;
|
|
109
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
110
|
-
function error(format) {
|
|
111
|
-
{
|
|
112
|
-
{
|
|
113
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
114
|
-
args[_key2 - 1] = arguments[_key2];
|
|
115
|
-
}
|
|
116
|
-
printWarning("error", format, args);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function printWarning(level, format, args) {
|
|
121
|
-
{
|
|
122
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
123
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
124
|
-
if (stack !== "") {
|
|
125
|
-
format += "%s";
|
|
126
|
-
args = args.concat([stack]);
|
|
127
|
-
}
|
|
128
|
-
var argsWithFormat = args.map(function(item) {
|
|
129
|
-
return String(item);
|
|
130
|
-
});
|
|
131
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
132
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function is(x, y) {
|
|
136
|
-
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
137
|
-
}
|
|
138
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
139
|
-
var useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue2 = React.useDebugValue;
|
|
140
|
-
var didWarnOld18Alpha = false;
|
|
141
|
-
var didWarnUncachedGetSnapshot = false;
|
|
142
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
143
|
-
{
|
|
144
|
-
if (!didWarnOld18Alpha) {
|
|
145
|
-
if (React.startTransition !== void 0) {
|
|
146
|
-
didWarnOld18Alpha = true;
|
|
147
|
-
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
var value = getSnapshot();
|
|
152
|
-
{
|
|
153
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
154
|
-
var cachedValue = getSnapshot();
|
|
155
|
-
if (!objectIs(value, cachedValue)) {
|
|
156
|
-
error("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
157
|
-
didWarnUncachedGetSnapshot = true;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
var _useState = useState({
|
|
162
|
-
inst: {
|
|
163
|
-
value,
|
|
164
|
-
getSnapshot
|
|
165
|
-
}
|
|
166
|
-
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
167
|
-
useLayoutEffect(function() {
|
|
168
|
-
inst.value = value;
|
|
169
|
-
inst.getSnapshot = getSnapshot;
|
|
170
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
171
|
-
forceUpdate({
|
|
172
|
-
inst
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}, [subscribe, value, getSnapshot]);
|
|
176
|
-
useEffect(function() {
|
|
177
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
178
|
-
forceUpdate({
|
|
179
|
-
inst
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
var handleStoreChange = function() {
|
|
183
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
184
|
-
forceUpdate({
|
|
185
|
-
inst
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
return subscribe(handleStoreChange);
|
|
190
|
-
}, [subscribe]);
|
|
191
|
-
useDebugValue2(value);
|
|
192
|
-
return value;
|
|
193
|
-
}
|
|
194
|
-
function checkIfSnapshotChanged(inst) {
|
|
195
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
196
|
-
var prevValue = inst.value;
|
|
197
|
-
try {
|
|
198
|
-
var nextValue = latestGetSnapshot();
|
|
199
|
-
return !objectIs(prevValue, nextValue);
|
|
200
|
-
} catch (error2) {
|
|
201
|
-
return true;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
205
|
-
return getSnapshot();
|
|
206
|
-
}
|
|
207
|
-
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
208
|
-
var isServerEnvironment = !canUseDOM;
|
|
209
|
-
var shim2 = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
210
|
-
var useSyncExternalStore$2 = React.useSyncExternalStore !== void 0 ? React.useSyncExternalStore : shim2;
|
|
211
|
-
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
212
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
213
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
214
|
-
}
|
|
215
|
-
})();
|
|
216
|
-
}
|
|
217
|
-
return useSyncExternalStoreShim_development;
|
|
218
|
-
}
|
|
219
|
-
var hasRequiredShim;
|
|
220
|
-
function requireShim() {
|
|
221
|
-
if (hasRequiredShim) return shim.exports;
|
|
222
|
-
hasRequiredShim = 1;
|
|
223
|
-
if (process.env.NODE_ENV === "production") {
|
|
224
|
-
shim.exports = requireUseSyncExternalStoreShim_production_min();
|
|
225
|
-
} else {
|
|
226
|
-
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
227
|
-
}
|
|
228
|
-
return shim.exports;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* @license React
|
|
232
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
233
|
-
*
|
|
234
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the MIT license found in the
|
|
237
|
-
* LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/
|
|
239
|
-
var hasRequiredWithSelector_production_min;
|
|
240
|
-
function requireWithSelector_production_min() {
|
|
241
|
-
if (hasRequiredWithSelector_production_min) return withSelector_production_min;
|
|
242
|
-
hasRequiredWithSelector_production_min = 1;
|
|
243
|
-
var h = React__default, n = requireShim();
|
|
244
|
-
function p(a, b) {
|
|
245
|
-
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
246
|
-
}
|
|
247
|
-
var q = "function" === typeof Object.is ? Object.is : p, r = n.useSyncExternalStore, t = h.useRef, u = h.useEffect, v = h.useMemo, w = h.useDebugValue;
|
|
248
|
-
withSelector_production_min.useSyncExternalStoreWithSelector = function(a, b, e, l, g) {
|
|
249
|
-
var c = t(null);
|
|
250
|
-
if (null === c.current) {
|
|
251
|
-
var f = { hasValue: false, value: null };
|
|
252
|
-
c.current = f;
|
|
253
|
-
} else f = c.current;
|
|
254
|
-
c = v(function() {
|
|
255
|
-
function a2(a3) {
|
|
256
|
-
if (!c2) {
|
|
257
|
-
c2 = true;
|
|
258
|
-
d2 = a3;
|
|
259
|
-
a3 = l(a3);
|
|
260
|
-
if (void 0 !== g && f.hasValue) {
|
|
261
|
-
var b2 = f.value;
|
|
262
|
-
if (g(b2, a3)) return k = b2;
|
|
263
|
-
}
|
|
264
|
-
return k = a3;
|
|
265
|
-
}
|
|
266
|
-
b2 = k;
|
|
267
|
-
if (q(d2, a3)) return b2;
|
|
268
|
-
var e2 = l(a3);
|
|
269
|
-
if (void 0 !== g && g(b2, e2)) return b2;
|
|
270
|
-
d2 = a3;
|
|
271
|
-
return k = e2;
|
|
272
|
-
}
|
|
273
|
-
var c2 = false, d2, k, m = void 0 === e ? null : e;
|
|
274
|
-
return [function() {
|
|
275
|
-
return a2(b());
|
|
276
|
-
}, null === m ? void 0 : function() {
|
|
277
|
-
return a2(m());
|
|
278
|
-
}];
|
|
279
|
-
}, [b, e, l, g]);
|
|
280
|
-
var d = r(a, c[0], c[1]);
|
|
281
|
-
u(function() {
|
|
282
|
-
f.hasValue = true;
|
|
283
|
-
f.value = d;
|
|
284
|
-
}, [d]);
|
|
285
|
-
w(d);
|
|
286
|
-
return d;
|
|
287
|
-
};
|
|
288
|
-
return withSelector_production_min;
|
|
289
|
-
}
|
|
290
|
-
var withSelector_development = {};
|
|
291
|
-
/**
|
|
292
|
-
* @license React
|
|
293
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
294
|
-
*
|
|
295
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
296
|
-
*
|
|
297
|
-
* This source code is licensed under the MIT license found in the
|
|
298
|
-
* LICENSE file in the root directory of this source tree.
|
|
299
|
-
*/
|
|
300
|
-
var hasRequiredWithSelector_development;
|
|
301
|
-
function requireWithSelector_development() {
|
|
302
|
-
if (hasRequiredWithSelector_development) return withSelector_development;
|
|
303
|
-
hasRequiredWithSelector_development = 1;
|
|
304
|
-
if (process.env.NODE_ENV !== "production") {
|
|
305
|
-
(function() {
|
|
306
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
307
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
308
|
-
}
|
|
309
|
-
var React = React__default;
|
|
310
|
-
var shim2 = requireShim();
|
|
311
|
-
function is(x, y) {
|
|
312
|
-
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
313
|
-
}
|
|
314
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
315
|
-
var useSyncExternalStore = shim2.useSyncExternalStore;
|
|
316
|
-
var useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue2 = React.useDebugValue;
|
|
317
|
-
function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
318
|
-
var instRef = useRef(null);
|
|
319
|
-
var inst;
|
|
320
|
-
if (instRef.current === null) {
|
|
321
|
-
inst = {
|
|
322
|
-
hasValue: false,
|
|
323
|
-
value: null
|
|
324
|
-
};
|
|
325
|
-
instRef.current = inst;
|
|
326
|
-
} else {
|
|
327
|
-
inst = instRef.current;
|
|
328
|
-
}
|
|
329
|
-
var _useMemo = useMemo(function() {
|
|
330
|
-
var hasMemo = false;
|
|
331
|
-
var memoizedSnapshot;
|
|
332
|
-
var memoizedSelection;
|
|
333
|
-
var memoizedSelector = function(nextSnapshot) {
|
|
334
|
-
if (!hasMemo) {
|
|
335
|
-
hasMemo = true;
|
|
336
|
-
memoizedSnapshot = nextSnapshot;
|
|
337
|
-
var _nextSelection = selector(nextSnapshot);
|
|
338
|
-
if (isEqual !== void 0) {
|
|
339
|
-
if (inst.hasValue) {
|
|
340
|
-
var currentSelection = inst.value;
|
|
341
|
-
if (isEqual(currentSelection, _nextSelection)) {
|
|
342
|
-
memoizedSelection = currentSelection;
|
|
343
|
-
return currentSelection;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
memoizedSelection = _nextSelection;
|
|
348
|
-
return _nextSelection;
|
|
349
|
-
}
|
|
350
|
-
var prevSnapshot = memoizedSnapshot;
|
|
351
|
-
var prevSelection = memoizedSelection;
|
|
352
|
-
if (objectIs(prevSnapshot, nextSnapshot)) {
|
|
353
|
-
return prevSelection;
|
|
354
|
-
}
|
|
355
|
-
var nextSelection = selector(nextSnapshot);
|
|
356
|
-
if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
|
|
357
|
-
return prevSelection;
|
|
358
|
-
}
|
|
359
|
-
memoizedSnapshot = nextSnapshot;
|
|
360
|
-
memoizedSelection = nextSelection;
|
|
361
|
-
return nextSelection;
|
|
362
|
-
};
|
|
363
|
-
var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
|
|
364
|
-
var getSnapshotWithSelector = function() {
|
|
365
|
-
return memoizedSelector(getSnapshot());
|
|
366
|
-
};
|
|
367
|
-
var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
|
|
368
|
-
return memoizedSelector(maybeGetServerSnapshot());
|
|
369
|
-
};
|
|
370
|
-
return [getSnapshotWithSelector, getServerSnapshotWithSelector];
|
|
371
|
-
}, [getSnapshot, getServerSnapshot, selector, isEqual]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
|
|
372
|
-
var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
373
|
-
useEffect(function() {
|
|
374
|
-
inst.hasValue = true;
|
|
375
|
-
inst.value = value;
|
|
376
|
-
}, [value]);
|
|
377
|
-
useDebugValue2(value);
|
|
378
|
-
return value;
|
|
379
|
-
}
|
|
380
|
-
withSelector_development.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector2;
|
|
381
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
382
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
383
|
-
}
|
|
384
|
-
})();
|
|
385
|
-
}
|
|
386
|
-
return withSelector_development;
|
|
387
|
-
}
|
|
388
|
-
if (process.env.NODE_ENV === "production") {
|
|
389
|
-
withSelector.exports = requireWithSelector_production_min();
|
|
390
|
-
} else {
|
|
391
|
-
withSelector.exports = requireWithSelector_development();
|
|
392
|
-
}
|
|
393
|
-
var withSelectorExports = withSelector.exports;
|
|
394
|
-
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
|
|
395
|
-
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
396
|
-
const { useDebugValue } = React__default;
|
|
397
|
-
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
398
|
-
let didWarnAboutEqualityFn = false;
|
|
399
|
-
const identity = (arg) => arg;
|
|
400
|
-
function useStore(api, selector = identity, equalityFn) {
|
|
401
|
-
if ((define_import_meta_env_default ? "production" : void 0) !== "production" && equalityFn && !didWarnAboutEqualityFn) {
|
|
402
|
-
console.warn(
|
|
403
|
-
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
404
|
-
);
|
|
405
|
-
didWarnAboutEqualityFn = true;
|
|
406
|
-
}
|
|
407
|
-
const slice = useSyncExternalStoreWithSelector(
|
|
408
|
-
api.subscribe,
|
|
409
|
-
api.getState,
|
|
410
|
-
api.getServerState || api.getInitialState,
|
|
411
|
-
selector,
|
|
412
|
-
equalityFn
|
|
413
|
-
);
|
|
414
|
-
useDebugValue(slice);
|
|
415
|
-
return slice;
|
|
416
|
-
}
|
|
417
|
-
const createImpl = (createState) => {
|
|
418
|
-
if ((define_import_meta_env_default ? "production" : void 0) !== "production" && typeof createState !== "function") {
|
|
419
|
-
console.warn(
|
|
420
|
-
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
421
|
-
);
|
|
422
|
-
}
|
|
423
|
-
const api = typeof createState === "function" ? createStore(createState) : createState;
|
|
424
|
-
const useBoundStore = (selector, equalityFn) => useStore(api, selector, equalityFn);
|
|
425
|
-
Object.assign(useBoundStore, api);
|
|
426
|
-
return useBoundStore;
|
|
427
|
-
};
|
|
428
|
-
const create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
429
|
-
const useAuthState = create(() => ({
|
|
430
|
-
isPending: true,
|
|
431
|
-
isAuthenticated: false
|
|
432
|
-
}));
|
|
433
|
-
export {
|
|
434
|
-
useAuthState as u
|
|
435
|
-
};
|
|
436
|
-
//# sourceMappingURL=state-CmGfNKhR.js.map
|