├── .gitignore
├── LICENSE
├── README.md
├── demo
├── .env
├── .gitignore
├── LICENSE
├── README.md
├── package-lock.json
├── package.json
├── public
│ ├── 404.html
│ ├── CNAME
│ ├── favicon
│ │ ├── green-grid-144-168-192-180x180.png
│ │ ├── green-grid-144-168-192-512x512.png
│ │ ├── green-grid-144-168-192.svg
│ │ └── site.webmanifest
│ └── index.html
├── src
│ ├── App.test.tsx
│ ├── App.tsx
│ ├── index.tsx
│ ├── react-app-env.d.ts
│ ├── setupTests.ts
│ ├── stitches.config.ts
│ └── ui
│ │ ├── DarkModeButton.tsx
│ │ └── Link.tsx
└── tsconfig.json
├── package-lock.json
├── package.json
├── src
├── __mocks__
│ ├── maxTouchPointsOne.mock.ts
│ ├── maxTouchPointsUndefined.mock.ts
│ ├── maxTouchPointsZero.mock.ts
│ ├── mqAllFalse.mock.ts
│ ├── mqHybridChromebook.mock.ts
│ ├── mqHybridPrimaryInputMouse.mock.ts
│ ├── mqHybridPrimaryInputTouch.mock.ts
│ ├── mqMatchMediaUndefined.mock.ts
│ ├── mqMouseOnly.mock.ts
│ ├── mqSamsungGalaxyNote.mock.ts
│ ├── mqTouchOnly.mock.ts
│ ├── onTouchStartInWindowFalse.mock.ts
│ ├── onTouchStartInWindowTrue.mock.ts
│ ├── passiveEventsFalse.mock.ts
│ ├── passiveEventsTrue.mock.ts
│ ├── pointerEventInWindowFalse.mock.ts
│ ├── pointerEventInWindowTrue.mock.ts
│ ├── screen414x896.mock.ts
│ ├── screen768x1024.mock.ts
│ ├── touchEventInWindowFalse.mock.ts
│ ├── touchEventInWindowTrue.mock.ts
│ ├── userAgentFirefoxWindows.mock.ts
│ ├── userAgentIPad.mock.ts
│ ├── userAgentIPhone.mock.ts
│ └── userAgentMac.mock.ts
├── __tests__
│ ├── edgeCasesAndLegacyDevices
│ │ ├── firefoxWindowsHybrid.test.ts
│ │ ├── hybridChrombook.test.ts
│ │ ├── hybridDesktopNoOnTouchStartInWindow.test.ts
│ │ ├── iPad.test.ts
│ │ ├── iPadRequestDesktopSite.test.ts
│ │ ├── iPhone.test.ts
│ │ ├── iPhoneRequestDesktopSite.test.ts
│ │ ├── legacyDesktopComputer.test.ts
│ │ ├── legacyTouchDevice.test.ts
│ │ ├── microsoftHybridWithPointerEventsButNoTouchEventsPrimaryInputMouse.test.ts
│ │ ├── microsoftHybridWithPointerEventsButNoTouchEventsPrimaryInputTouch.test.ts
│ │ ├── mouseOnlyTouchEventInWindow.test.ts
│ │ ├── noWindow.test.ts
│ │ ├── samsungGalaxyNote.test.ts
│ │ ├── touchOnlyNoPointerEvents.test.ts
│ │ └── windowsComputerInTabletMode.test.ts
│ ├── modernDeviceWithFullSupportForApis
│ │ ├── hybridPrimaryInputMouse.test.ts
│ │ ├── hybridPrimaryInputTouch.test.ts
│ │ ├── mouseOnly.test.ts
│ │ └── touchOnly.test.ts
│ └── passiveEvents
│ │ ├── noPassiveEventSupport.test.ts
│ │ └── passiveEventSupport.test.ts
└── index.ts
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | coverage
4 | *gitigx*
5 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Rafael Pedicini
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Detect It
2 |
3 | [](https://www.npmjs.com/package/detect-it) [](https://bundlephobia.com/result?p=detect-it) 
4 |
5 | - **[Live detection demo](https://detect-it.rafgraph.dev)**
6 | - Detect if a device is `mouseOnly`, `touchOnly`, or `hybrid`
7 | - Detect if the primary input is `mouse` or `touch`
8 | - Detect if the browser supports Pointer Events, Touch Events, and passive event listeners
9 | - You may also be interested in [Event From](https://github.com/rafgraph/event-from), which determines if a browser event was caused by `mouse`, `touch`, or `key` input
10 |
11 |
12 | Detect It's state is determined using multiple media query and API detections. Detect It uses the `hover` and `pointer` media queries, the Pointer Events API and max touch points detections, and two Touch Events API detections (browsers respond differently to each Touch Events API detection depending on the device 😩 welcome to WebDev). But now you don't have to worry about any of this, just let Detect It handle the details while you optimize your app for the type of device that's being used. 😁
13 |
14 | Detect It has been tested on numerous real world devices (since 2016), and the tests mock multiple devices and edge cases to ensure accurate results. The detection relies on how the browser presents the capabilities of the device as it is not possible to access the device hardware directly.
15 |
16 | ---
17 |
18 | [CDN option](#pre-built-cdn-option) ⚡️ [Recommended usage](#recommended-usage) ⚡️ [Device responsive UX](#device-responsive-ux) ⚡️ [Setting event listeners](#setting-event-listeners) ⚡️ [Detection details](#detection-details)
19 |
20 | ---
21 |
22 | ```
23 | npm install --save detect-it
24 | ```
25 |
26 | ```js
27 | import * as detectIt from 'detect-it';
28 | // OR
29 | import {
30 | deviceType,
31 | primaryInput,
32 | supportsPointerEvents,
33 | supportsTouchEvents,
34 | supportsPassiveEvents,
35 | } from 'detect-it';
36 | ```
37 |
38 | ```js
39 | // types
40 | deviceType: 'mouseOnly' | 'touchOnly' | 'hybrid';
41 | primaryInput: 'mouse' | 'touch';
42 | supportsPointerEvents: boolean;
43 | supportsTouchEvents: boolean;
44 | supportsPassiveEvents: boolean;
45 | ```
46 |
47 | ---
48 |
49 | ### `deviceType`
50 |
51 | **`mouseOnly` | `touchOnly` | `hybrid`**
52 |
53 | Indicates if the the device is `mouseOnly`, `touchOnly` or `hybrid`. For info on how the detection works and how specific devices are classified see the [Detection details](#detection-details) section.
54 |
55 | ```js
56 | import { deviceType } from 'detect-it';
57 |
58 | if (deviceType === 'hybrid') {
59 | // ensure the site is usable by both mouse and touch input
60 | }
61 | ```
62 |
63 | ---
64 |
65 | ### `primaryInput`
66 |
67 | **`mouse` | `touch`**
68 |
69 | Indicates if the primary input for the device is `mouse` or `touch`. For more info on how to use `primaryInput` see the [Recommended usage](#recommended-usage) section.
70 |
71 | ```js
72 | import { primaryInput } from 'detect-it';
73 |
74 | if (primaryInput === 'touch') {
75 | // tailor UX for touch input
76 | } else {
77 | // tailor UX for mouse input
78 | }
79 | ```
80 |
81 | ---
82 |
83 | ### `supportsPointerEvents`
84 |
85 | **`boolean`**
86 |
87 | Indicates if the browser supports the Pointer Events API. See [MDN's Pointer Events](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events) and the [W3C Pointer Events specification](https://www.w3.org/TR/pointerevents/) for more information on Pointer Events. See [Can I use](https://caniuse.com/mdn-api_pointerevent) for current support.
88 |
89 | ```js
90 | import { supportsPointerEvents } from 'detect-it';
91 |
92 | if (supportsPointerEvents) {
93 | element.addEventListener('pointerenter', handlePointerEnter, false);
94 | }
95 | ```
96 |
97 | ---
98 |
99 | ### `supportsTouchEvents`
100 |
101 | **`boolean`**
102 |
103 | Indicates if the browser supports the Touch Events API. See [MDN's Touch Events](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events) and the [W3C Touch Events specification](https://w3c.github.io/touch-events/) for more information on Touch Events.
104 |
105 | ```js
106 | import { supportsTouchEvents } from 'detect-it';
107 |
108 | if (supportsTouchEvents) {
109 | element.addEventListener('touchstart', handleTouchStart, false);
110 | }
111 | ```
112 |
113 | ---
114 |
115 | ### `supportsPassiveEvents`
116 |
117 | **`boolean`**
118 |
119 | Indicates if the browser supports passive event listeners. See this [Passive Events Explainer](https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md) for more information on passive events. See [Can I use](https://caniuse.com/passive-event-listener) for current support.
120 |
121 | ```js
122 | import { supportsPassiveEvents } from 'detect-it';
123 |
124 | if (supportsPassiveEvents) {
125 | // passive events are supported by the browser
126 | document.addEventListener('scroll', handleScroll, {
127 | capture: false,
128 | passive: true,
129 | });
130 | } else {
131 | // passive events are not supported by the browser
132 | document.addEventListener('scroll', handleScroll, false);
133 | }
134 | ```
135 |
136 | ---
137 |
138 | ## Pre-built CDN option
139 |
140 | Optionally, instead of using `npm install` you can load Detect It directly in the browser. A minified and production ready UMD version is available from the Unpkg CDN for this purpose.
141 |
142 | ```html
143 |
144 |
145 | ```
146 |
147 | ```js
148 | // it will be available on the window as DetectIt
149 | if (window.DetectIt.primaryInput === 'touch') {
150 | // tailor UX for touch input
151 | }
152 | ```
153 |
154 | ---
155 |
156 | ## Recommended usage
157 |
158 | TL;DR:
159 |
160 | - Use `primaryInput` to optimize the user experience for either `mouse` or `touch` input (note that the app should still be usable by both inputs). Use this along with classic responsive design that adapts to screen/window size to create a fully device responsive app.
161 | - Listening for user interactions:
162 | - If the browser `supportsPointerEvents` then only set Pointer Event listeners and use [`pointerType`](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType) to determine if the interaction was from `mouse` or `touch`.
163 | - Otherwise always set both Mouse Event and Touch Event listeners and use [Event From](https://github.com/rafgraph/event-from) to ignore Mouse Events generated from touch input.
164 |
165 | ### Device responsive UX
166 |
167 | Device responsive UX is about creating web apps that feel native on every device. This goes beyond classic responsive design, which only responds to the screen/window size, and includes how the user can interact with the app (the capabilities of the device). Can the user hover, swipe, long press, etc?
168 |
169 | There are 3 parts of device responsive UX: **Size** (size of screen/window), **Capabilities** (what the user can do/capabilities of the device), and **Interaction** (is the user hovering, touching, etc). **Size** and **Capabilities** need to be known at render time (when the UI is rendered before the user interacts with it), and **Interaction** needs to be known at interaction time (when the user is interacting with the app).
170 |
171 | - **Size**
172 | - This can be determined using media queries, for example `(max-width: 600px)`, either applied via CSS or in JavaScript by using something like [React Media](https://github.com/ReactTraining/react-media).
173 | - **Capabilities**
174 | - This is what **Detect It** is for - knowing at render time what the capabilities of the device are. There are a number of ways that you can use `deviceType` or `primaryInput` to optimize the UX for the capabilities of the device, however, in most cases I've found it makes sense to just use `primaryInput` and optimize the UX for `mouse` or `touch`, while ensuring that the app is still usable by both inputs.
175 | - Putting **Size** and **Capabilities** together, one approach is to optimize the UX for 4 scenarios:
176 | - Wide screen with `primaryInput` `mouse`: desktop/laptop with a normal window
177 | - Narrow screen and `primaryInput` `mouse`: desktop/laptop with a narrow window
178 | - Wide screen with `primaryInput` `touch`: tablet
179 | - Narrow screen with `primaryInput` `touch`: phone
180 | - **Interaction**
181 | - Is the user hovering, touching, etc. To help with this I created [React Interactive](https://github.com/rafgraph/react-interactive) which provides a callback for interactive state changes (`hover`, `mouseActive`, `touchActive`, `keyActive`) and allows you to style touch interactions in a way that feels native and is not possible with CSS pseudo classes.
182 |
183 | ### Setting event listeners
184 |
185 | Setting event listeners can be thought of as either setting Pointer Event listeners **_or_** setting Mouse Event and Touch Event listeners. Pointer Events can do everything that Mouse Events and Touch Events can do (and more), without having to worry about if a Mouse Event was caused by touch input and so should be ignored. It is generally preferred to use Pointer Events if they are supported.
186 |
187 | #### Pointer Event listeners
188 |
189 | If the browser `supportsPointerEvents` then only set Pointer Event listeners and use [`pointerType`](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType) to determine if the interaction was from `mouse` or `touch`.
190 |
191 | ```js
192 | import { supportsPointerEvents } from 'detect-it';
193 |
194 | const handlePointerEnter = (e) => {
195 | if (e.pointerType === 'mouse') {
196 | // event from mouse input
197 | } else {
198 | // event from touch input
199 | // note that pointerType can be 'mouse', 'touch' or 'pen'
200 | // but in most situations it makes it makes sense to treat 'touch' and 'pen' as the same
201 | }
202 | };
203 |
204 | if (supportsPointerEvents) {
205 | element.addEventListener('pointerenter', handlePointerEnter, false);
206 | } else {
207 | // set mouse and touch event listeners
208 | }
209 | ```
210 |
211 | #### Mouse Event and Touch Event listeners
212 |
213 | If the browser doesn't support Pointer Events, then there are a couple of ways to approach setting mouse and touch event listeners.
214 |
215 | > Note that a touch interaction will fire Touch Events as the interaction is in progress (touch on the screen), and will fire Mouse Events during a long press (extended touch on the screen), or after the touch interaction has finished (after the touch is removed from the screen) to support sites that only listen for Mouse Events.
216 |
217 | **Option 1**: If the device is `mouseOnly` or `touchOnly` then only set mouse or touch listeners, and if the device is `hybrid` set both mouse and touch event listeners and ignore Mouse Events caused by touch input (you can use [Event From](https://github.com/rafgraph/event-from) for this).
218 |
219 | **Option 2**: Always set both mouse and touch event listeners and use [Event From](https://github.com/rafgraph/event-from) to ignore Mouse Events from touch input.
220 |
221 | I prefer option 2 as it's simpler to code and I haven't noticed any performance impact from setting extra listeners (note that setting Touch Event listeners on a browser that doesn't support Touch Events is fine, the browser will just ignore the event listeners).
222 |
223 | ```js
224 | import { supportsPointerEvents } from 'detect-it';
225 | import { eventFrom } from 'event-from';
226 |
227 | const handleMouseEnter = (e) => {
228 | if (eventFrom(e) !== 'mouse') return;
229 | // code for handling mouse enter event from mouse input
230 | };
231 |
232 | const handleTouchStart = (e) => {
233 | // code for handling touch start from touch input
234 | };
235 |
236 | if (supportsPointerEvents) {
237 | // set pointer event listeners
238 | } else {
239 | // Pointer Events are not supported so set both Mouse Event and Touch Event listeners
240 | element.addEventListener('mouseenter', handleMouseEnter, false);
241 | element.addEventListener('touchstart', handleTouchStart, false);
242 | }
243 | ```
244 |
245 | ---
246 |
247 | ## Detection details
248 |
249 | #### Determining the `deviceType` and `primaryInput`
250 |
251 | To determine the `deviceType` and `primaryInput` Detect It uses several media query and API detections to triangulate what type of device is being used. The entire detection is done when the script is imported so the results are known at render time (Detect It doesn't set any event listeners).
252 |
253 | Detect It uses the `hover` and `pointer` media queries, the Pointer Events API and max touch points detections, and two Touch Events API detections (browsers respond differently to each Touch Events API detection depending on the device). For more on this see the comments in the [source code](https://github.com/rafgraph/detect-it/blob/main/src/index.ts) for notes about detecting the device type and edge cases.
254 |
255 | #### Device tests and limitations
256 |
257 | Detect It has been tested on numerous real world devices (since 2016), and the [tests](https://github.com/rafgraph/detect-it/tree/main/src/__tests__) mock multiple devices and edge cases to ensure accurate results. However, these detections are limited by how the browser presents the capabilities of the device (the APIs it exposes and how it responds to media queries) so there are some limitations. For example, on an iPad it is impossible to tell if a mouse is connected, so Detect It always treats iPads as a `hybrid` device with `primaryInput` `touch`.
258 |
259 | In the case of a legacy browser or device that doesn't support the detections (e.g. no media query or Pointer Events support), Detect It will fall back to a default `mouseOnly` or `touchOnly` state.
260 |
261 | #### Hybrid device definition
262 |
263 | Detect It has a wide definition for what constitutes a `hybrid` device, or rather a strict definition for what are `mouseOnly` and `touchOnly` devices, because if a device strays from only a fine point and hover with a mouse, or a coarse touch with a finger, then it should be treated uniquely when considering how the user will interact with it. Below is the source code for determining `deviceType`:
264 |
265 | ```js
266 | // a hybrid device is one that both hasTouch and
267 | // any input can hover or has a fine pointer, or the primary pointer is not coarse
268 | // if it's not a hybrid, then if it hasTouch it's touchOnly, otherwise it's mouseOnly
269 | export const deviceType =
270 | hasTouch && (hasAnyHoverOrAnyFinePointer || !hasCoarsePrimaryPointer)
271 | ? 'hybrid'
272 | : hasTouch
273 | ? 'touchOnly'
274 | : 'mouseOnly';
275 | ```
276 |
277 | #### Some `hybrid` device examples
278 |
279 | - A touch capable Chromebook
280 | - A touch capable Windows computer (both when it's used as a regular computer, and when in tablet mode, e.g. Microsoft Surface without a keyboard)
281 | - A Samsung Galaxy Note with stylus
282 | - All iPads now that they support a mouse and keyboard (note that Apple makes it impossible to know if a mouse or keyboard is attached, so iPads are always treated as a `hybrid` with `primaryInput` `touch`)
283 |
--------------------------------------------------------------------------------
/demo/.env:
--------------------------------------------------------------------------------
1 | SKIP_PREFLIGHT_CHECK=true
--------------------------------------------------------------------------------
/demo/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 | .eslintcache
21 |
22 | npm-debug.log*
23 | yarn-debug.log*
24 | yarn-error.log*
25 |
--------------------------------------------------------------------------------
/demo/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Rafael Pedicini
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/demo/README.md:
--------------------------------------------------------------------------------
1 | # Demo App for [`detect-it`](https://github.com/rafgraph/detect-it)
2 |
3 | Live demo app: https://detect-it.rafgraph.dev
4 |
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "detect-it-demo",
3 | "version": "0.1.0",
4 | "private": true,
5 | "homepage": "https://detect-it.rafgraph.dev",
6 | "dependencies": {
7 | "@radix-ui/react-icons": "^1.0.3",
8 | "@stitches/react": "^0.1.9",
9 | "detect-it": "^4.0.1",
10 | "react": "^17.0.2",
11 | "react-dom": "^17.0.2",
12 | "react-interactive": "^1.0.0",
13 | "use-dark-mode": "^2.3.1"
14 | },
15 | "devDependencies": {
16 | "@testing-library/jest-dom": "^5.12.0",
17 | "@testing-library/react": "^11.2.6",
18 | "@testing-library/user-event": "^13.1.8",
19 | "@types/jest": "^26.0.23",
20 | "@types/node": "^15.0.1",
21 | "@types/react": "^17.0.4",
22 | "@types/react-dom": "^17.0.3",
23 | "browserslist-config-css-grid": "^1.0.0",
24 | "gh-pages": "^3.1.0",
25 | "react-scripts": "^4.0.3",
26 | "typescript": "^4.2.4"
27 | },
28 | "scripts": {
29 | "dev": "npm install --save ../ && npm start",
30 | "devCleanup": "npm install --save detect-it@latest",
31 | "deploy": "gh-pages --dist build --message \"Built from main branch `date +%Y%m%d`-`date +%H%M%S`\"",
32 | "predeploy": "npm run devCleanup && npm run lint && npm test -- --watchAll=false && npm run build",
33 | "lint": "eslint src",
34 | "start": "react-scripts start",
35 | "build": "react-scripts build",
36 | "test": "react-scripts test",
37 | "eject": "react-scripts eject"
38 | },
39 | "eslintConfig": {
40 | "extends": [
41 | "react-app",
42 | "react-app/jest"
43 | ]
44 | },
45 | "browserslist": {
46 | "production": [
47 | "last 2 versions or > 0.2% and not dead and extends browserslist-config-css-grid"
48 | ],
49 | "development": [
50 | "last 1 chrome version",
51 | "last 1 firefox version",
52 | "last 1 safari version"
53 | ]
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/demo/public/404.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |