diff --git a/pr-preview/pr-442/404.html b/pr-preview/pr-442/404.html deleted file mode 100644 index 5b1c315a..00000000 --- a/pr-preview/pr-442/404.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - 404 | Vue Qrcode Reader - - - - - - - - - - - - -
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/api/QrcodeCapture.html b/pr-preview/pr-442/api/QrcodeCapture.html deleted file mode 100644 index 51a802c3..00000000 --- a/pr-preview/pr-442/api/QrcodeCapture.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - QrcodeCapture | Vue Qrcode Reader - - - - - - - - - - - - - - - - -
Skip to content

QrcodeCapture

Browser Support

The newest API this component depend on is the FileReader API. Vue Native is not supported (see #206).

Internet ExplorerEdgeFirefoxChromeSafari
10+YesYesYesYes¹
  1. It doesn't work in web apps added to home screen (PWA mode) on iOS prior to 11.3 (see this StackOverflow question)

Events

detect

  • Payload Type: DetectedBarcode[]

The component renders to a simple file picker input element. Clicking opens a file dialog. On supporting mobile devices the camera is started to take a picture. The selected images are directly scanned and positive results are indicated by the detect event. You can also select multiple images at the same time (still one event per image though). If no QR code can be recognized an empty array is emitted.

The structure of the event payload is the same as for the detect event on QrcodeStream.

decode removed in v5.0.0

Use detect instead. TODO: link old docs.

Props

formats since v5.3.0

  • Payload Type: BarcodeDetectorOptions['formats']
  • Default: ['qr_code']

The formats prop defines which barcode formats are detected. Supported Formats.

html
<qrcode-capture :formats="['qr_code', 'code_128']"></qrcode-capture>

disabled, capture, multiple, ...

Technically, QrcodeCapture does not explicitly define any other props. But checkout the components template:

html
<template>
-  <input
-    @change="onChangeInput"
-    type="file"
-    name="image"
-    accept="image/*"
-    capture="environment"
-    multiple
-  />
-</template>

Because the input element is the root element of the component and because Vue components accept fallthrough attributes you can make use of any valid input attribute:

html
<qrcode-capture disabled />

You can also override attributes. To remove attributes, set them to null:

html
<qrcode-capture :capture="null" />

Slots

no slots

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/api/QrcodeDropZone.html b/pr-preview/pr-442/api/QrcodeDropZone.html deleted file mode 100644 index 2497169f..00000000 --- a/pr-preview/pr-442/api/QrcodeDropZone.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - QrcodeDropZone | Vue Qrcode Reader - - - - - - - - - - - - - - - - -
Skip to content

QrcodeDropZone

Browser Support

The newest API this component depend on is the FileReader API. Vue Native is not supported (see #206).

Internet ExplorerEdgeFirefoxChromeSafari
10+YesYesYesYes

Events

detect

  • Payload Type: DetectedBarcode[]

You can drag-and-drop image files from your desktop or images embedded into other web pages anywhere in the area the component occupies. The images are directly scanned and positive results are indicated by the detect event. You can also drop multiple images at the same time (still one event per image though). If no QR code can be recognized an empty array is emitted.

The structure of the event payload is the same as for the detect event on QrcodeStream.

error new in v5.0.0

Error events are emitted when a dropped url can't be fetched due to CORS or a dropped file has an unsupported file type.

html
<qrcode-drop-zone @detect="onDetect">
-  <!-- ... -->
-</qrcode-drop-zone>
javascript
methods: {
-  onError (error) {
-    if (error.name === 'DropImageFetchError') {
-      // drag-and-dropped URL (probably just an <img> element) from different
-      // domain without CORS header caused same-origin-policy violation
-    } else if (error.name === 'DropImageDecodeError') {
-      // drag-and-dropped file is not of type image and can't be decoded
-    } else {
-      // idk, open an issue ¯\_(ツ)_/¯
-    }
-  }
-}

formats since v5.3.0

  • Payload Type: BarcodeDetectorOptions['formats']
  • Default: ['qr_code']

The formats prop defines which barcode formats are detected. Supported Formats.

html
<qrcode-drop-zone :formats="['qr_code', 'code_128']"></qrcode-drop-zone>

dragover

  • Payload Type: Boolean

When the user is dragging something over the the component you might want to apply some emphasizing styling. Do that by reacting to the dragover event.

html
<qrcode-drop-zone @dragover="onDragOver">
-  <div :class="{ highlight: draggingOver }">
-    <!-- ... -->
-  </div>
-</qrcode-drop-zone>
javascript
data () {
-  return {
-    draggingOver: false
-  }
-},
-
-methods: {
-  onDragOver (draggingOver) {
-    this.draggingOver = draggingOver
-  }
-}

WARNING

This is a custom event not to be confused with native dragover. If you really need to listen for the DOM event instead, use Vues native event modifier.

decode removed in v5.0.0

Use detect instead.

docs for v4.0.0

Props

no props

Slots

default

This component merely renders a wrapper div. Its height is defined by the content inside so it will have zero height if you don't provide any content.

html
<qrcode-drop-zone>
-  <b>put anything here</b>
-</qrcode-drop-zone>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/api/QrcodeStream.html b/pr-preview/pr-442/api/QrcodeStream.html deleted file mode 100644 index de4ff4aa..00000000 --- a/pr-preview/pr-442/api/QrcodeStream.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - QrcodeStream | Vue Qrcode Reader - - - - - - - - - - - - - - - - -
Skip to content

QrcodeStream

Browser Support

This component fundamentally depends on the Stream API. Vue Native is not supported (see #206).

Internet ExplorerEdgeFirefoxChromeSafari
NoYesYesYes¹Yes²
  1. Chrome requires HTTPS or localhost (see Troubleshooting for help)
  2. Safari also requires HTTPS even on localhost (see #48). Support is limited for:
    • web apps added to home screen (PWA mode): at least iOS 13.4 (see #76)
    • iOS browsers other than Safari (Chrome for iOS, Firefox for iOS, ...): at least iOS 14.3 (see #29)
    • WkWebView component in native iOS apps: at least iOS 14.3 (see #29)

Events

detect

  • Payload Type: DetectedBarcode[]

Once a stream from the users camera is loaded, it's displayed and continuously scanned for QR codes. Results are indicated by the detect event.

html
<qrcode-stream @detect="onDetect"></qrcode-stream>
javascript
methods: {
-  onDetect (detectedCodes) {
-    // ...
-  }
-}

The payload is an array of one or multiple detected codes (only QR codes supported at the moment). The structure of the array items is accroding to the Barcode Detection API spec. Here is an example:

json
[
-  {
-    "boundingBox": {
-      "x": 82,
-      "y": 70,
-      "width": 178,
-      "height": 188,
-      "top": 70,
-      "right": 260,
-      "bottom": 258,
-      "left": 82
-    },
-    "rawValue": "https://wikipedia.org",
-    "format": "qr_code",
-    "cornerPoints": [
-      { "x": 82, "y": 91 },
-      { "x": 244, "y": 70 },
-      { "x": 260, "y": 240 },
-      { "x": 94, "y": 258 }
-    ]
-  },
-  {
-    "boundingBox": {
-      "x": 322,
-      "y": 135,
-      "width": 244,
-      "height": 240,
-      "top": 135,
-      "right": 566,
-      "bottom": 375,
-      "left": 322
-    },
-    "rawValue": "Hello, world!",
-    "format": "qr_code",
-    "cornerPoints": [
-      { "x": 322, "y": 160 },
-      { "x": 542, "y": 135 },
-      { "x": 566, "y": 359 },
-      { "x": 342, "y": 375 }
-    ]
-  }
-]

TIP

If you scan the same QR code multiple times in a row, detect is still only emitted once. When you hold a QR code in the camera, frames are actually decoded multiple times a second but you don't want to be flooded with detect events that often. That's why the last decoded QR code is always cached and only new results are propagated. However changing the value of paused resets this internal cache.

formats since v5.3.0

  • Payload Type: BarcodeDetectorOptions['formats']
  • Default: ['qr_code']

The formats prop defines which barcode formats are detected. Supported Formats.

html
<qrcode-stream :formats="['qr_code', 'code_128']"></qrcode-stream>

camera-on since v5.0.0

  • Payload Type: Promise<MediaTrackCapabilities>

It might take a while before the component is ready and the scanning process starts. The user has to be asked for camera access permission first and the camera stream has to be loaded.

If you want to show a loading indicator, you can listen for the camera-on event. It's emitted as soon as the camera start streaming.

It carries a promise which resolves with the cameras MediaTrackCapabilities when everything is ready.

html
<qrcode-stream @camera-on="onReady"></qrcode-stream>
javascript
methods: {
-  onReady(capabilities) {
-    // hide loading indicator
-  }
-}

WARNING

In Chrome you can't prompt users for permissions a second time. Once denied, users can only manually grant them. Make sure your users understand why you need access to their camera before you mount this component. Otherwise they might panic and deny and then get frustrated because they don't know how to change their decision.

camera-off since v5.0.0

  • Payload Type: void

Emitted whenever the camera is turned off. This happens whenever the camera constraints are modified and the camera has to be restarted or a different camera is started. For example when switching between front and rear camera.

error since v5.0.0

  • Payload Type: Error

Error events are emitted in particular when camera initialization fails. This can happen a couple of reasons.

html
<qrcode-stream @error="onError"></qrcode-stream>
javascript
methods: {
-  onError(error) {
-    if (error.name === 'NotAllowedError') {
-      // user denied camera access permission
-    } else if (error.name === 'NotFoundError') {
-      // no suitable camera device installed
-    } else if (error.name === 'NotSupportedError') {
-      // page is not served over HTTPS (or localhost)
-    } else if (error.name === 'NotReadableError') {
-      // maybe camera is already in use
-    } else if (error.name === 'OverconstrainedError') {
-      // did you request the front camera although there is none?
-    } else if (error.name === 'StreamApiNotSupportedError') {
-      // browser seems to be lacking features
-    }
-  }
-}

decode removed in v5.0.0

Use detect instead.

docs for v4.0.0

init removed in v5.0.0

Use camera-on/error instead.

docs for v4.0.0

camera removed in v5.0.0

Use constraints instead.

docs for v4.0.0

Props

paused since v5.0.0

  • Input Type: Boolean
  • Default: false

Setting this prop to true freezes the camera. Useful if you want to show some microinteraction after successful scans. When you unpause the camera is restarted so the camera-on event is emitted again.

track

  • Input Type: Function
  • Default: undefined

You can visually highlight detected QR codes in real-time. A transparent canvas overlays the camera stream. When a QR code is detected, its location is painted to the canvas.

To enable this feature, pass a function to track that defines how this should look like. This function is called to produce each frame. It receives the location object as the first argument and a CanvasRenderingContext2D instance as the second argument.

For example check out this demo.

Note that this scanning frequency has to be increased. So if you want to go easy on your target device you might not want to enable tracking.

DANGER

Avoid access to reactive properties in this function (like stuff in data, computed or your Vuex store). The function is called several times a second and might cause memory leaks. To be safe don't access this at all.

constraints

  • Input Type: MediaTrackConstraints
  • Default: { facingMode: "environment" }

With this prop you can pass an object with various camera configuration options. For example whether to use front- or rear camera.

The object must be of type MediaTrackConstriants.

The object is passed as-is to getUserMedia, which is the API call for requesting a camera stream:

js
navigator.mediaDevices.getUserMedia({
-  audio: false,
-  video: the_constraint_object_you_provide
-})

Every time the prop is modified, a new camera stream is requested so the camera-on event is emitted again. You can catch errors with the error event. An error can occur for example when you try to use the front camera on a device that doesn't have one.

html
<qrcode-stream
-  :constraints="{ facingMode }"
-  @error="onError"
-></qrcode-stream>
js
data () {
-  return {
-    facingMode: 'environment'
-  }
-},
-
-methods: {
-  startFrontCamera () {
-    this.facingMode = 'user'
-  },
-
-  onError (error) {
-    const cameraMissingError = error.name === 'OverconstrainedError'
-    const triedFrontCamera = this.facingMode === 'user'
-
-    if (triedFrontCamera && cameraMissingError) {
-      // no front camera on this device
-    }
-  }
-}

torch

  • Input Type: Boolean
  • Default: false

With the torch prop you can turn a devices flashlight on/off. This is not consistently supported by all devices and browsers. Support can even vary on the same device with the same browser. For example the rear camera often has a flashlight but the front camera doesn't. We can only tell if flashlight control is supported once the camera is loaded and the camera-on event has been emitted. At the moment, torch silently fails on unsupported devices. But from the camera-on events payload you can access the MediaTrackCapabilities object. This will tell you whether or not torch is supported.

Due to API limitations the camera stream must be reloaded when turning the torch on/off. That means the camera-on event will be emitted again.

html
<qrcode-stream
-  :torch="true"
-  @camera-on="onInit"
-></qrcode-stream>
js
methods: {
-  onInit (capabilities) {
-    const TORCH_IS_SUPPORTED = !!capabilities.torch
-  }
-}

Slots

default

Any distributed content overlays the camera stream, wrapped in a position: absolute container.

html
<qrcode-stream>
-  <b>stuff here overlays the camera stream</b>
-</qrcode-stream>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/assets/api_QrcodeCapture.md.BSxZMWGQ.js b/pr-preview/pr-442/assets/api_QrcodeCapture.md.BSxZMWGQ.js deleted file mode 100644 index dd0acbef..00000000 --- a/pr-preview/pr-442/assets/api_QrcodeCapture.md.BSxZMWGQ.js +++ /dev/null @@ -1,10 +0,0 @@ -import{_ as n,a as l,b as o,c as r,d as h}from"./chunks/safari_32x32.Bkuv9jEj.js";import{_ as p,D as d,c,k as e,a as t,I as a,R as i,o as k}from"./chunks/framework.Bgy0wF8y.js";const I=JSON.parse('{"title":"QrcodeCapture","description":"","frontmatter":{},"headers":[],"relativePath":"api/QrcodeCapture.md","filePath":"api/QrcodeCapture.md","lastUpdated":1708022193000}'),u={name:"api/QrcodeCapture.md"},g=i('

QrcodeCapture

Browser Support

The newest API this component depend on is the FileReader API. Vue Native is not supported (see #206).

Internet ExplorerEdgeFirefoxChromeSafari
10+YesYesYesYes¹
  1. It doesn't work in web apps added to home screen (PWA mode) on iOS prior to 11.3 (see this StackOverflow question)

Events

detect

The component renders to a simple file picker input element. Clicking opens a file dialog. On supporting mobile devices the camera is started to take a picture. The selected images are directly scanned and positive results are indicated by the detect event. You can also select multiple images at the same time (still one event per image though). If no QR code can be recognized an empty array is emitted.

The structure of the event payload is the same as for the detect event on QrcodeStream.

',10),m={id:"decode",tabindex:"-1"},E=e("code",null,"decode",-1),y=e("a",{class:"header-anchor",href:"#decode","aria-label":'Permalink to "`decode` "'},"​",-1),_=e("p",null,[t("Use "),e("code",null,"detect"),t(" instead. TODO: link old docs.")],-1),b=e("h2",{id:"props",tabindex:"-1"},[t("Props "),e("a",{class:"header-anchor",href:"#props","aria-label":'Permalink to "Props"'},"​")],-1),f={id:"formats",tabindex:"-1"},v=e("code",null,"formats",-1),F=e("a",{class:"header-anchor",href:"#formats","aria-label":'Permalink to "`formats` "'},"​",-1),C=i(`

The formats prop defines which barcode formats are detected. Supported Formats.

html
<qrcode-capture :formats="['qr_code', 'code_128']"></qrcode-capture>

disabled, capture, multiple, ...

Technically, QrcodeCapture does not explicitly define any other props. But checkout the components template:

html
<template>
-  <input
-    @change="onChangeInput"
-    type="file"
-    name="image"
-    accept="image/*"
-    capture="environment"
-    multiple
-  />
-</template>

Because the input element is the root element of the component and because Vue components accept fallthrough attributes you can make use of any valid input attribute:

html
<qrcode-capture disabled />

You can also override attributes. To remove attributes, set them to null:

html
<qrcode-capture :capture="null" />

Slots

no slots

`,12);function q(x,B,T,P,S,A){const s=d("Badge");return k(),c("div",null,[g,e("h3",m,[E,t(),a(s,{text:"removed in v5.0.0",type:"danger"}),t(),y]),_,b,e("h3",f,[v,t(),a(s,{text:"since v5.3.0",type:"info"}),t(),F]),C])}const Q=p(u,[["render",q]]);export{I as __pageData,Q as default}; diff --git a/pr-preview/pr-442/assets/api_QrcodeCapture.md.BSxZMWGQ.lean.js b/pr-preview/pr-442/assets/api_QrcodeCapture.md.BSxZMWGQ.lean.js deleted file mode 100644 index 6cf93e47..00000000 --- a/pr-preview/pr-442/assets/api_QrcodeCapture.md.BSxZMWGQ.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as n,a as l,b as o,c as r,d as h}from"./chunks/safari_32x32.Bkuv9jEj.js";import{_ as p,D as d,c,k as e,a as t,I as a,R as i,o as k}from"./chunks/framework.Bgy0wF8y.js";const I=JSON.parse('{"title":"QrcodeCapture","description":"","frontmatter":{},"headers":[],"relativePath":"api/QrcodeCapture.md","filePath":"api/QrcodeCapture.md","lastUpdated":1708022193000}'),u={name:"api/QrcodeCapture.md"},g=i("",10),m={id:"decode",tabindex:"-1"},E=e("code",null,"decode",-1),y=e("a",{class:"header-anchor",href:"#decode","aria-label":'Permalink to "`decode` "'},"​",-1),_=e("p",null,[t("Use "),e("code",null,"detect"),t(" instead. TODO: link old docs.")],-1),b=e("h2",{id:"props",tabindex:"-1"},[t("Props "),e("a",{class:"header-anchor",href:"#props","aria-label":'Permalink to "Props"'},"​")],-1),f={id:"formats",tabindex:"-1"},v=e("code",null,"formats",-1),F=e("a",{class:"header-anchor",href:"#formats","aria-label":'Permalink to "`formats` "'},"​",-1),C=i("",12);function q(x,B,T,P,S,A){const s=d("Badge");return k(),c("div",null,[g,e("h3",m,[E,t(),a(s,{text:"removed in v5.0.0",type:"danger"}),t(),y]),_,b,e("h3",f,[v,t(),a(s,{text:"since v5.3.0",type:"info"}),t(),F]),C])}const Q=p(u,[["render",q]]);export{I as __pageData,Q as default}; diff --git a/pr-preview/pr-442/assets/api_QrcodeDropZone.md.DouRcg2y.js b/pr-preview/pr-442/assets/api_QrcodeDropZone.md.DouRcg2y.js deleted file mode 100644 index 4dcb8e89..00000000 --- a/pr-preview/pr-442/assets/api_QrcodeDropZone.md.DouRcg2y.js +++ /dev/null @@ -1,30 +0,0 @@ -import{_ as n,a as l,b as r,c as h,d as p}from"./chunks/safari_32x32.Bkuv9jEj.js";import{_ as o,D as d,c as k,k as s,a as e,I as t,R as a,o as c}from"./chunks/framework.Bgy0wF8y.js";const N=JSON.parse('{"title":"QrcodeDropZone","description":"","frontmatter":{},"headers":[],"relativePath":"api/QrcodeDropZone.md","filePath":"api/QrcodeDropZone.md","lastUpdated":1703524587000}'),g={name:"api/QrcodeDropZone.md"},E=a('

QrcodeDropZone

Browser Support

The newest API this component depend on is the FileReader API. Vue Native is not supported (see #206).

Internet ExplorerEdgeFirefoxChromeSafari
10+YesYesYesYes

Events

detect

  • Payload Type: DetectedBarcode[]

You can drag-and-drop image files from your desktop or images embedded into other web pages anywhere in the area the component occupies. The images are directly scanned and positive results are indicated by the detect event. You can also drop multiple images at the same time (still one event per image though). If no QR code can be recognized an empty array is emitted.

The structure of the event payload is the same as for the detect event on QrcodeStream.

',9),y={id:"error",tabindex:"-1"},u=s("code",null,"error",-1),m=s("a",{class:"header-anchor",href:"#error","aria-label":'Permalink to "`error` "'},"​",-1),_=a(`

Error events are emitted when a dropped url can't be fetched due to CORS or a dropped file has an unsupported file type.

html
<qrcode-drop-zone @detect="onDetect">
-  <!-- ... -->
-</qrcode-drop-zone>
javascript
methods: {
-  onError (error) {
-    if (error.name === 'DropImageFetchError') {
-      // drag-and-dropped URL (probably just an <img> element) from different
-      // domain without CORS header caused same-origin-policy violation
-    } else if (error.name === 'DropImageDecodeError') {
-      // drag-and-dropped file is not of type image and can't be decoded
-    } else {
-      // idk, open an issue ¯\\_(ツ)_/¯
-    }
-  }
-}
`,3),v={id:"formats",tabindex:"-1"},b=s("code",null,"formats",-1),f=s("a",{class:"header-anchor",href:"#formats","aria-label":'Permalink to "`formats` "'},"​",-1),D=a(`
  • Payload Type: BarcodeDetectorOptions['formats']
  • Default: ['qr_code']

The formats prop defines which barcode formats are detected. Supported Formats.

html
<qrcode-drop-zone :formats="['qr_code', 'code_128']"></qrcode-drop-zone>

dragover

  • Payload Type: Boolean

When the user is dragging something over the the component you might want to apply some emphasizing styling. Do that by reacting to the dragover event.

html
<qrcode-drop-zone @dragover="onDragOver">
-  <div :class="{ highlight: draggingOver }">
-    <!-- ... -->
-  </div>
-</qrcode-drop-zone>
javascript
data () {
-  return {
-    draggingOver: false
-  }
-},
-
-methods: {
-  onDragOver (draggingOver) {
-    this.draggingOver = draggingOver
-  }
-}

WARNING

This is a custom event not to be confused with native dragover. If you really need to listen for the DOM event instead, use Vues native event modifier.

`,9),F={id:"decode",tabindex:"-1"},A=s("code",null,"decode",-1),C=s("a",{class:"header-anchor",href:"#decode","aria-label":'Permalink to "`decode` "'},"​",-1),q=a(`

Use detect instead.

docs for v4.0.0

Props

no props

Slots

default

This component merely renders a wrapper div. Its height is defined by the content inside so it will have zero height if you don't provide any content.

html
<qrcode-drop-zone>
-  <b>put anything here</b>
-</qrcode-drop-zone>
`,8);function T(x,B,P,S,I,w){const i=d("Badge");return c(),k("div",null,[E,s("h3",y,[u,e(),t(i,{text:"new in v5.0.0",type:"info"}),e(),m]),_,s("h3",v,[b,e(),t(i,{text:"since v5.3.0",type:"info"}),e(),f]),D,s("h3",F,[A,e(),t(i,{text:"removed in v5.0.0",type:"danger"}),e(),C]),q])}const O=o(g,[["render",T]]);export{N as __pageData,O as default}; diff --git a/pr-preview/pr-442/assets/api_QrcodeDropZone.md.DouRcg2y.lean.js b/pr-preview/pr-442/assets/api_QrcodeDropZone.md.DouRcg2y.lean.js deleted file mode 100644 index 16837957..00000000 --- a/pr-preview/pr-442/assets/api_QrcodeDropZone.md.DouRcg2y.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as n,a as l,b as r,c as h,d as p}from"./chunks/safari_32x32.Bkuv9jEj.js";import{_ as o,D as d,c as k,k as s,a as e,I as t,R as a,o as c}from"./chunks/framework.Bgy0wF8y.js";const N=JSON.parse('{"title":"QrcodeDropZone","description":"","frontmatter":{},"headers":[],"relativePath":"api/QrcodeDropZone.md","filePath":"api/QrcodeDropZone.md","lastUpdated":1703524587000}'),g={name:"api/QrcodeDropZone.md"},E=a("",9),y={id:"error",tabindex:"-1"},u=s("code",null,"error",-1),m=s("a",{class:"header-anchor",href:"#error","aria-label":'Permalink to "`error` "'},"​",-1),_=a("",3),v={id:"formats",tabindex:"-1"},b=s("code",null,"formats",-1),f=s("a",{class:"header-anchor",href:"#formats","aria-label":'Permalink to "`formats` "'},"​",-1),D=a("",9),F={id:"decode",tabindex:"-1"},A=s("code",null,"decode",-1),C=s("a",{class:"header-anchor",href:"#decode","aria-label":'Permalink to "`decode` "'},"​",-1),q=a("",8);function T(x,B,P,S,I,w){const i=d("Badge");return c(),k("div",null,[E,s("h3",y,[u,e(),t(i,{text:"new in v5.0.0",type:"info"}),e(),m]),_,s("h3",v,[b,e(),t(i,{text:"since v5.3.0",type:"info"}),e(),f]),D,s("h3",F,[A,e(),t(i,{text:"removed in v5.0.0",type:"danger"}),e(),C]),q])}const O=o(g,[["render",T]]);export{N as __pageData,O as default}; diff --git a/pr-preview/pr-442/assets/api_QrcodeStream.md.2p_HD5_g.js b/pr-preview/pr-442/assets/api_QrcodeStream.md.2p_HD5_g.js deleted file mode 100644 index aa1e8d96..00000000 --- a/pr-preview/pr-442/assets/api_QrcodeStream.md.2p_HD5_g.js +++ /dev/null @@ -1,100 +0,0 @@ -import{_ as n,a as h,b as l,c as p,d as r}from"./chunks/safari_32x32.Bkuv9jEj.js";import{_ as k,D as o,c as d,k as s,a as i,I as e,R as t,o as c}from"./chunks/framework.Bgy0wF8y.js";const ps=JSON.parse('{"title":"QrcodeStream","description":"","frontmatter":{},"headers":[],"relativePath":"api/QrcodeStream.md","filePath":"api/QrcodeStream.md","lastUpdated":1707952687000}'),E={name:"api/QrcodeStream.md"},g=t('

QrcodeStream

Browser Support

This component fundamentally depends on the Stream API. Vue Native is not supported (see #206).

Internet ExplorerEdgeFirefoxChromeSafari
NoYesYesYes¹Yes²
  1. Chrome requires HTTPS or localhost (see Troubleshooting for help)
  2. Safari also requires HTTPS even on localhost (see #48). Support is limited for:
    • web apps added to home screen (PWA mode): at least iOS 13.4 (see #76)
    • iOS browsers other than Safari (Chrome for iOS, Firefox for iOS, ...): at least iOS 14.3 (see #29)
    • WkWebView component in native iOS apps: at least iOS 14.3 (see #29)

Events

detect

  • Payload Type: DetectedBarcode[]

Once a stream from the users camera is loaded, it's displayed and continuously scanned for QR codes. Results are indicated by the detect event.

html
<qrcode-stream @detect="onDetect"></qrcode-stream>
javascript
methods: {
-  onDetect (detectedCodes) {
-    // ...
-  }
-}

The payload is an array of one or multiple detected codes (only QR codes supported at the moment). The structure of the array items is accroding to the Barcode Detection API spec. Here is an example:

json
[
-  {
-    "boundingBox": {
-      "x": 82,
-      "y": 70,
-      "width": 178,
-      "height": 188,
-      "top": 70,
-      "right": 260,
-      "bottom": 258,
-      "left": 82
-    },
-    "rawValue": "https://wikipedia.org",
-    "format": "qr_code",
-    "cornerPoints": [
-      { "x": 82, "y": 91 },
-      { "x": 244, "y": 70 },
-      { "x": 260, "y": 240 },
-      { "x": 94, "y": 258 }
-    ]
-  },
-  {
-    "boundingBox": {
-      "x": 322,
-      "y": 135,
-      "width": 244,
-      "height": 240,
-      "top": 135,
-      "right": 566,
-      "bottom": 375,
-      "left": 322
-    },
-    "rawValue": "Hello, world!",
-    "format": "qr_code",
-    "cornerPoints": [
-      { "x": 322, "y": 160 },
-      { "x": 542, "y": 135 },
-      { "x": 566, "y": 359 },
-      { "x": 342, "y": 375 }
-    ]
-  }
-]

TIP

If you scan the same QR code multiple times in a row, detect is still only emitted once. When you hold a QR code in the camera, frames are actually decoded multiple times a second but you don't want to be flooded with detect events that often. That's why the last decoded QR code is always cached and only new results are propagated. However changing the value of paused resets this internal cache.

`,14),y={id:"formats",tabindex:"-1"},u=s("code",null,"formats",-1),m=s("a",{class:"header-anchor",href:"#formats","aria-label":'Permalink to "`formats` "'},"​",-1),F=t('
  • Payload Type: BarcodeDetectorOptions['formats']
  • Default: ['qr_code']

The formats prop defines which barcode formats are detected. Supported Formats.

html
<qrcode-stream :formats="['qr_code', 'code_128']"></qrcode-stream>
',3),C={id:"camera-on",tabindex:"-1"},f=s("code",null,"camera-on",-1),b=s("a",{class:"header-anchor",href:"#camera-on","aria-label":'Permalink to "`camera-on` "'},"​",-1),_=t(`
  • Payload Type: Promise<MediaTrackCapabilities>

It might take a while before the component is ready and the scanning process starts. The user has to be asked for camera access permission first and the camera stream has to be loaded.

If you want to show a loading indicator, you can listen for the camera-on event. It's emitted as soon as the camera start streaming.

It carries a promise which resolves with the cameras MediaTrackCapabilities when everything is ready.

html
<qrcode-stream @camera-on="onReady"></qrcode-stream>
javascript
methods: {
-  onReady(capabilities) {
-    // hide loading indicator
-  }
-}

WARNING

In Chrome you can't prompt users for permissions a second time. Once denied, users can only manually grant them. Make sure your users understand why you need access to their camera before you mount this component. Otherwise they might panic and deny and then get frustrated because they don't know how to change their decision.

`,7),v={id:"camera-off",tabindex:"-1"},q=s("code",null,"camera-off",-1),B=s("a",{class:"header-anchor",href:"#camera-off","aria-label":'Permalink to "`camera-off` "'},"​",-1),A=s("ul",null,[s("li",null,[s("strong",null,"Payload Type:"),i(),s("code",null,"void")])],-1),D=s("p",null,"Emitted whenever the camera is turned off. This happens whenever the camera constraints are modified and the camera has to be restarted or a different camera is started. For example when switching between front and rear camera.",-1),T={id:"error",tabindex:"-1"},x=s("code",null,"error",-1),w=s("a",{class:"header-anchor",href:"#error","aria-label":'Permalink to "`error` "'},"​",-1),S=t(`
  • Payload Type: Error

Error events are emitted in particular when camera initialization fails. This can happen a couple of reasons.

html
<qrcode-stream @error="onError"></qrcode-stream>
javascript
methods: {
-  onError(error) {
-    if (error.name === 'NotAllowedError') {
-      // user denied camera access permission
-    } else if (error.name === 'NotFoundError') {
-      // no suitable camera device installed
-    } else if (error.name === 'NotSupportedError') {
-      // page is not served over HTTPS (or localhost)
-    } else if (error.name === 'NotReadableError') {
-      // maybe camera is already in use
-    } else if (error.name === 'OverconstrainedError') {
-      // did you request the front camera although there is none?
-    } else if (error.name === 'StreamApiNotSupportedError') {
-      // browser seems to be lacking features
-    }
-  }
-}
`,4),P={id:"decode",tabindex:"-1"},I=s("code",null,"decode",-1),R=s("a",{class:"header-anchor",href:"#decode","aria-label":'Permalink to "`decode` "'},"​",-1),N=s("p",null,[i("Use "),s("code",null,"detect"),i(" instead.")],-1),j=s("p",null,[s("a",{href:"https://github.com/gruhn/vue-qrcode-reader/blob/781484fccd186e8e30c6191f85beec3bd174ef59/docs/api/QrcodeStream.md",target:"_blank",rel:"noreferrer"},"docs for v4.0.0")],-1),M={id:"init",tabindex:"-1"},V=s("code",null,"init",-1),Q=s("a",{class:"header-anchor",href:"#init","aria-label":'Permalink to "`init` "'},"​",-1),O=s("p",null,[i("Use "),s("code",null,"camera-on"),i("/"),s("code",null,"error"),i(" instead.")],-1),W=s("p",null,[s("a",{href:"https://github.com/gruhn/vue-qrcode-reader/blob/781484fccd186e8e30c6191f85beec3bd174ef59/docs/api/QrcodeStream.md",target:"_blank",rel:"noreferrer"},"docs for v4.0.0")],-1),U={id:"camera",tabindex:"-1"},H=s("code",null,"camera",-1),Y=s("a",{class:"header-anchor",href:"#camera","aria-label":'Permalink to "`camera` "'},"​",-1),z=s("p",null,[i("Use "),s("code",null,"constraints"),i(" instead.")],-1),$=s("p",null,[s("a",{href:"https://github.com/gruhn/vue-qrcode-reader/blob/781484fccd186e8e30c6191f85beec3bd174ef59/docs/api/QrcodeStream.md",target:"_blank",rel:"noreferrer"},"docs for v4.0.0")],-1),G=s("h2",{id:"props",tabindex:"-1"},[i("Props "),s("a",{class:"header-anchor",href:"#props","aria-label":'Permalink to "Props"'},"​")],-1),J={id:"paused",tabindex:"-1"},K=s("code",null,"paused",-1),L=s("a",{class:"header-anchor",href:"#paused","aria-label":'Permalink to "`paused` "'},"​",-1),X=t(`
  • Input Type: Boolean
  • Default: false

Setting this prop to true freezes the camera. Useful if you want to show some microinteraction after successful scans. When you unpause the camera is restarted so the camera-on event is emitted again.

track

  • Input Type: Function
  • Default: undefined

You can visually highlight detected QR codes in real-time. A transparent canvas overlays the camera stream. When a QR code is detected, its location is painted to the canvas.

To enable this feature, pass a function to track that defines how this should look like. This function is called to produce each frame. It receives the location object as the first argument and a CanvasRenderingContext2D instance as the second argument.

For example check out this demo.

Note that this scanning frequency has to be increased. So if you want to go easy on your target device you might not want to enable tracking.

DANGER

Avoid access to reactive properties in this function (like stuff in data, computed or your Vuex store). The function is called several times a second and might cause memory leaks. To be safe don't access this at all.

constraints

  • Input Type: MediaTrackConstraints
  • Default: { facingMode: "environment" }

With this prop you can pass an object with various camera configuration options. For example whether to use front- or rear camera.

The object must be of type MediaTrackConstriants.

The object is passed as-is to getUserMedia, which is the API call for requesting a camera stream:

js
navigator.mediaDevices.getUserMedia({
-  audio: false,
-  video: the_constraint_object_you_provide
-})

Every time the prop is modified, a new camera stream is requested so the camera-on event is emitted again. You can catch errors with the error event. An error can occur for example when you try to use the front camera on a device that doesn't have one.

html
<qrcode-stream
-  :constraints="{ facingMode }"
-  @error="onError"
-></qrcode-stream>
js
data () {
-  return {
-    facingMode: 'environment'
-  }
-},
-
-methods: {
-  startFrontCamera () {
-    this.facingMode = 'user'
-  },
-
-  onError (error) {
-    const cameraMissingError = error.name === 'OverconstrainedError'
-    const triedFrontCamera = this.facingMode === 'user'
-
-    if (triedFrontCamera && cameraMissingError) {
-      // no front camera on this device
-    }
-  }
-}

torch

  • Input Type: Boolean
  • Default: false

With the torch prop you can turn a devices flashlight on/off. This is not consistently supported by all devices and browsers. Support can even vary on the same device with the same browser. For example the rear camera often has a flashlight but the front camera doesn't. We can only tell if flashlight control is supported once the camera is loaded and the camera-on event has been emitted. At the moment, torch silently fails on unsupported devices. But from the camera-on events payload you can access the MediaTrackCapabilities object. This will tell you whether or not torch is supported.

Due to API limitations the camera stream must be reloaded when turning the torch on/off. That means the camera-on event will be emitted again.

html
<qrcode-stream
-  :torch="true"
-  @camera-on="onInit"
-></qrcode-stream>
js
methods: {
-  onInit (capabilities) {
-    const TORCH_IS_SUPPORTED = !!capabilities.torch
-  }
-}

Slots

default

Any distributed content overlays the camera stream, wrapped in a position: absolute container.

html
<qrcode-stream>
-  <b>stuff here overlays the camera stream</b>
-</qrcode-stream>
`,28);function Z(ss,is,as,es,ts,ns){const a=o("Badge");return c(),d("div",null,[g,s("h3",y,[u,i(),e(a,{text:"since v5.3.0",type:"info"}),i(),m]),F,s("h3",C,[f,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),b]),_,s("h3",v,[q,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),B]),A,D,s("h3",T,[x,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),w]),S,s("h3",P,[I,i(),e(a,{text:"removed in v5.0.0",type:"danger"}),i(),R]),N,j,s("h3",M,[V,i(),e(a,{text:"removed in v5.0.0",type:"danger"}),i(),Q]),O,W,s("h3",U,[H,i(),e(a,{text:"removed in v5.0.0",type:"danger"}),i(),Y]),z,$,G,s("h3",J,[K,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),L]),X])}const rs=k(E,[["render",Z]]);export{ps as __pageData,rs as default}; diff --git a/pr-preview/pr-442/assets/api_QrcodeStream.md.2p_HD5_g.lean.js b/pr-preview/pr-442/assets/api_QrcodeStream.md.2p_HD5_g.lean.js deleted file mode 100644 index 15b82850..00000000 --- a/pr-preview/pr-442/assets/api_QrcodeStream.md.2p_HD5_g.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as n,a as h,b as l,c as p,d as r}from"./chunks/safari_32x32.Bkuv9jEj.js";import{_ as k,D as o,c as d,k as s,a as i,I as e,R as t,o as c}from"./chunks/framework.Bgy0wF8y.js";const ps=JSON.parse('{"title":"QrcodeStream","description":"","frontmatter":{},"headers":[],"relativePath":"api/QrcodeStream.md","filePath":"api/QrcodeStream.md","lastUpdated":1707952687000}'),E={name:"api/QrcodeStream.md"},g=t("",14),y={id:"formats",tabindex:"-1"},u=s("code",null,"formats",-1),m=s("a",{class:"header-anchor",href:"#formats","aria-label":'Permalink to "`formats` "'},"​",-1),F=t("",3),C={id:"camera-on",tabindex:"-1"},f=s("code",null,"camera-on",-1),b=s("a",{class:"header-anchor",href:"#camera-on","aria-label":'Permalink to "`camera-on` "'},"​",-1),_=t("",7),v={id:"camera-off",tabindex:"-1"},q=s("code",null,"camera-off",-1),B=s("a",{class:"header-anchor",href:"#camera-off","aria-label":'Permalink to "`camera-off` "'},"​",-1),A=s("ul",null,[s("li",null,[s("strong",null,"Payload Type:"),i(),s("code",null,"void")])],-1),D=s("p",null,"Emitted whenever the camera is turned off. This happens whenever the camera constraints are modified and the camera has to be restarted or a different camera is started. For example when switching between front and rear camera.",-1),T={id:"error",tabindex:"-1"},x=s("code",null,"error",-1),w=s("a",{class:"header-anchor",href:"#error","aria-label":'Permalink to "`error` "'},"​",-1),S=t("",4),P={id:"decode",tabindex:"-1"},I=s("code",null,"decode",-1),R=s("a",{class:"header-anchor",href:"#decode","aria-label":'Permalink to "`decode` "'},"​",-1),N=s("p",null,[i("Use "),s("code",null,"detect"),i(" instead.")],-1),j=s("p",null,[s("a",{href:"https://github.com/gruhn/vue-qrcode-reader/blob/781484fccd186e8e30c6191f85beec3bd174ef59/docs/api/QrcodeStream.md",target:"_blank",rel:"noreferrer"},"docs for v4.0.0")],-1),M={id:"init",tabindex:"-1"},V=s("code",null,"init",-1),Q=s("a",{class:"header-anchor",href:"#init","aria-label":'Permalink to "`init` "'},"​",-1),O=s("p",null,[i("Use "),s("code",null,"camera-on"),i("/"),s("code",null,"error"),i(" instead.")],-1),W=s("p",null,[s("a",{href:"https://github.com/gruhn/vue-qrcode-reader/blob/781484fccd186e8e30c6191f85beec3bd174ef59/docs/api/QrcodeStream.md",target:"_blank",rel:"noreferrer"},"docs for v4.0.0")],-1),U={id:"camera",tabindex:"-1"},H=s("code",null,"camera",-1),Y=s("a",{class:"header-anchor",href:"#camera","aria-label":'Permalink to "`camera` "'},"​",-1),z=s("p",null,[i("Use "),s("code",null,"constraints"),i(" instead.")],-1),$=s("p",null,[s("a",{href:"https://github.com/gruhn/vue-qrcode-reader/blob/781484fccd186e8e30c6191f85beec3bd174ef59/docs/api/QrcodeStream.md",target:"_blank",rel:"noreferrer"},"docs for v4.0.0")],-1),G=s("h2",{id:"props",tabindex:"-1"},[i("Props "),s("a",{class:"header-anchor",href:"#props","aria-label":'Permalink to "Props"'},"​")],-1),J={id:"paused",tabindex:"-1"},K=s("code",null,"paused",-1),L=s("a",{class:"header-anchor",href:"#paused","aria-label":'Permalink to "`paused` "'},"​",-1),X=t("",28);function Z(ss,is,as,es,ts,ns){const a=o("Badge");return c(),d("div",null,[g,s("h3",y,[u,i(),e(a,{text:"since v5.3.0",type:"info"}),i(),m]),F,s("h3",C,[f,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),b]),_,s("h3",v,[q,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),B]),A,D,s("h3",T,[x,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),w]),S,s("h3",P,[I,i(),e(a,{text:"removed in v5.0.0",type:"danger"}),i(),R]),N,j,s("h3",M,[V,i(),e(a,{text:"removed in v5.0.0",type:"danger"}),i(),Q]),O,W,s("h3",U,[H,i(),e(a,{text:"removed in v5.0.0",type:"danger"}),i(),Y]),z,$,G,s("h3",J,[K,i(),e(a,{text:"since v5.0.0",type:"info"}),i(),L]),X])}const rs=k(E,[["render",Z]]);export{ps as __pageData,rs as default}; diff --git a/pr-preview/pr-442/assets/app.DQIwyA96.js b/pr-preview/pr-442/assets/app.DQIwyA96.js deleted file mode 100644 index c826fe44..00000000 --- a/pr-preview/pr-442/assets/app.DQIwyA96.js +++ /dev/null @@ -1,7 +0,0 @@ -import{v as s,aa as p,ab as u,ac as c,ad as l,ae as f,af as d,ag as m,ah as h,ai as A,aj as g,Y as v,d as P,u as y,j as C,z as w,ak as _,al as b,am as E,an as R}from"./chunks/framework.Bgy0wF8y.js";import{t as j}from"./chunks/theme.DG-lrbgZ.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const o=i(j),D=P({name:"VitePressApp",setup(){const{site:e}=y();return C(()=>{w(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),e.value.router.prefetchLinks&&_(),b(),E(),o.setup&&o.setup(),()=>R(o.Layout)}});async function L(){const e=S(),a=O();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),o.enhanceApp&&await o.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function O(){return h(D)}function S(){let e=s,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(n),__vite__mapDeps([]))),s&&(e=!1),r},o.NotFound)}s&&L().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{L as createApp}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} \ No newline at end of file diff --git a/pr-preview/pr-442/assets/chunks/@localSearchIndexroot.Ba0k1oZn.js b/pr-preview/pr-442/assets/chunks/@localSearchIndexroot.Ba0k1oZn.js deleted file mode 100644 index 2be0718d..00000000 --- a/pr-preview/pr-442/assets/chunks/@localSearchIndexroot.Ba0k1oZn.js +++ /dev/null @@ -1 +0,0 @@ -const e='{"documentCount":58,"nextId":58,"documentIds":{"0":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#qrcodecapture","1":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#browser-support","2":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#events","3":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#detect","4":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#decode","5":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#props","6":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#formats","7":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#disabled-capture-multiple","8":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeCapture.html#slots","9":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#qrcodedropzone","10":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#browser-support","11":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#events","12":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#detect","13":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#error","14":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#formats","15":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#dragover","16":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#decode","17":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#props","18":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#slots","19":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeDropZone.html#default","20":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#qrcodestream","21":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#browser-support","22":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#events","23":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#detect","24":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#formats","25":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#camera-on","26":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#camera-off","27":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#error","28":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#decode","29":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#init","30":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#camera","31":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#props","32":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#paused","33":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#track","34":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#constraints","35":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#torch","36":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#slots","37":"/vue-qrcode-reader/pr-preview/pr-442/api/QrcodeStream.html#default","38":"/vue-qrcode-reader/pr-preview/pr-442/demos/DragDrop.html#decode-by-drag-drop","39":"/vue-qrcode-reader/pr-preview/pr-442/demos/DragDrop.html#source","40":"/vue-qrcode-reader/pr-preview/pr-442/demos/FullDemo.html#full-demo","41":"/vue-qrcode-reader/pr-preview/pr-442/demos/FullDemo.html#source","42":"/vue-qrcode-reader/pr-preview/pr-442/demos/Fullscreen.html#fullscreen","43":"/vue-qrcode-reader/pr-preview/pr-442/demos/Fullscreen.html#source","44":"/vue-qrcode-reader/pr-preview/pr-442/demos/LoadingIndicator.html#show-loading-indicator","45":"/vue-qrcode-reader/pr-preview/pr-442/demos/LoadingIndicator.html#source","46":"/vue-qrcode-reader/pr-preview/pr-442/demos/ScanSameQrcodeMoreThanOnce.html#scan-same-qr-code-more-than-once","47":"/vue-qrcode-reader/pr-preview/pr-442/demos/ScanSameQrcodeMoreThanOnce.html#source","48":"/vue-qrcode-reader/pr-preview/pr-442/demos/Simple.html#simple","49":"/vue-qrcode-reader/pr-preview/pr-442/demos/Simple.html#source","50":"/vue-qrcode-reader/pr-preview/pr-442/demos/SwitchCamera.html#switch-to-front-camera","51":"/vue-qrcode-reader/pr-preview/pr-442/demos/SwitchCamera.html#source","52":"/vue-qrcode-reader/pr-preview/pr-442/demos/Torch.html#torch-flashlight","53":"/vue-qrcode-reader/pr-preview/pr-442/demos/Torch.html#source","54":"/vue-qrcode-reader/pr-preview/pr-442/demos/Upload.html#decode-by-upload","55":"/vue-qrcode-reader/pr-preview/pr-442/demos/Upload.html#source","56":"/vue-qrcode-reader/pr-preview/pr-442/demos/Validate.html#pause-validate","57":"/vue-qrcode-reader/pr-preview/pr-442/demos/Validate.html#source"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,1],"1":[2,1,39],"2":[1,1,1],"3":[1,2,69],"4":[1,2,8],"5":[1,1,1],"6":[1,2,25],"7":[4,2,60],"8":[1,1,3],"9":[1,1,1],"10":[2,1,19],"11":[1,1,1],"12":[1,2,64],"13":[1,2,67],"14":[1,2,26],"15":[1,2,65],"16":[1,2,8],"17":[1,1,3],"18":[1,1,1],"19":[1,2,36],"20":[1,1,1],"21":[2,1,58],"22":[1,1,1],"23":[1,2,141],"24":[1,2,25],"25":[2,2,105],"26":[2,2,32],"27":[1,2,73],"28":[1,2,8],"29":[1,2,10],"30":[1,2,8],"31":[1,1,1],"32":[1,2,33],"33":[1,2,105],"34":[1,2,101],"35":[1,2,98],"36":[1,1,1],"37":[1,2,21],"38":[5,1,27],"39":[1,6,106],"40":[2,1,1],"41":[1,3,325],"42":[1,1,26],"43":[1,2,148],"44":[3,1,30],"45":[1,4,61],"46":[7,1,67],"47":[1,8,99],"48":[1,1,38],"49":[1,2,154],"50":[4,1,16],"51":[1,5,90],"52":[3,1,43],"53":[1,3,118],"54":[3,1,52],"55":[1,4,67],"56":[3,1,29],"57":[1,4,134]},"averageFieldLength":[1.5172413793103448,1.9310344827586208,50.87931034482759],"storedFields":{"0":{"title":"QrcodeCapture","titles":[]},"1":{"title":"Browser Support","titles":["QrcodeCapture"]},"2":{"title":"Events","titles":["QrcodeCapture"]},"3":{"title":"detect","titles":["QrcodeCapture","Events"]},"4":{"title":"decode","titles":["QrcodeCapture","Events"]},"5":{"title":"Props","titles":["QrcodeCapture"]},"6":{"title":"formats","titles":["QrcodeCapture","Props"]},"7":{"title":"disabled, capture, multiple, ...","titles":["QrcodeCapture","Props"]},"8":{"title":"Slots","titles":["QrcodeCapture"]},"9":{"title":"QrcodeDropZone","titles":[]},"10":{"title":"Browser Support","titles":["QrcodeDropZone"]},"11":{"title":"Events","titles":["QrcodeDropZone"]},"12":{"title":"detect","titles":["QrcodeDropZone","Events"]},"13":{"title":"error","titles":["QrcodeDropZone","Events"]},"14":{"title":"formats","titles":["QrcodeDropZone","Events"]},"15":{"title":"dragover","titles":["QrcodeDropZone","Events"]},"16":{"title":"decode","titles":["QrcodeDropZone","Events"]},"17":{"title":"Props","titles":["QrcodeDropZone"]},"18":{"title":"Slots","titles":["QrcodeDropZone"]},"19":{"title":"default","titles":["QrcodeDropZone","Slots"]},"20":{"title":"QrcodeStream","titles":[]},"21":{"title":"Browser Support","titles":["QrcodeStream"]},"22":{"title":"Events","titles":["QrcodeStream"]},"23":{"title":"detect","titles":["QrcodeStream","Events"]},"24":{"title":"formats","titles":["QrcodeStream","Events"]},"25":{"title":"camera-on","titles":["QrcodeStream","Events"]},"26":{"title":"camera-off","titles":["QrcodeStream","Events"]},"27":{"title":"error","titles":["QrcodeStream","Events"]},"28":{"title":"decode","titles":["QrcodeStream","Events"]},"29":{"title":"init","titles":["QrcodeStream","Events"]},"30":{"title":"camera","titles":["QrcodeStream","Events"]},"31":{"title":"Props","titles":["QrcodeStream"]},"32":{"title":"paused","titles":["QrcodeStream","Props"]},"33":{"title":"track","titles":["QrcodeStream","Props"]},"34":{"title":"constraints","titles":["QrcodeStream","Props"]},"35":{"title":"torch","titles":["QrcodeStream","Props"]},"36":{"title":"Slots","titles":["QrcodeStream"]},"37":{"title":"default","titles":["QrcodeStream","Slots"]},"38":{"title":"Decode by Drag&Drop","titles":[]},"39":{"title":"Source","titles":["Decode by Drag&Drop",null]},"40":{"title":"Full Demo","titles":[]},"41":{"title":"Source","titles":["Full Demo",null]},"42":{"title":"Fullscreen","titles":[]},"43":{"title":"Source","titles":["Fullscreen",null]},"44":{"title":"Show Loading Indicator","titles":[]},"45":{"title":"Source","titles":["Show Loading Indicator",null]},"46":{"title":"Scan Same QR Code More Than Once","titles":[]},"47":{"title":"Source","titles":["Scan Same QR Code More Than Once",null]},"48":{"title":"Simple","titles":[]},"49":{"title":"Source","titles":["Simple",null]},"50":{"title":"Switch to Front Camera","titles":[]},"51":{"title":"Source","titles":["Switch to Front Camera",null]},"52":{"title":"Torch (Flashlight)","titles":[]},"53":{"title":"Source","titles":["Torch (Flashlight)",null]},"54":{"title":"Decode by Upload","titles":[]},"55":{"title":"Source","titles":["Decode by Upload",null]},"56":{"title":"Pause & Validate","titles":[]},"57":{"title":"Source","titles":["Pause & Validate",null]}},"dirtCount":0,"index":[["|",{"2":{"53":1}}],["\\t\\t",{"2":{"49":1}}],["\\t",{"2":{"49":2}}],["8",{"2":{"41":1,"47":1,"49":1,"57":1}}],["82",{"2":{"23":3}}],["$nexttick",{"2":{"45":1}}],["$refs",{"2":{"43":1}}],["$",{"2":{"41":3,"49":1}}],["`requestfullscreen`",{"2":{"43":3}}],["`bold",{"2":{"41":1}}],["`",{"2":{"41":3,"49":2}}],["`$",{"2":{"41":1}}],["`camera",{"2":{"41":1}}],["`qrcodestream`",{"2":{"41":1}}],["`enumeratedevices`",{"2":{"41":1}}],["+=",{"2":{"41":8,"49":8}}],["+",{"2":{"39":1,"41":2}}],["keys",{"2":{"41":2}}],["key=",{"2":{"41":3,"53":1,"55":1}}],["kind",{"2":{"39":1,"41":2,"53":2}}],["know",{"2":{"25":1}}],["green",{"2":{"57":1}}],["grained",{"2":{"41":1}}],["grant",{"2":{"25":1,"41":1,"49":1}}],["global",{"2":{"49":1}}],["guarantee",{"2":{"41":1}}],["given",{"2":{"41":1}}],["g",{"2":{"41":1}}],["go",{"2":{"33":1,"42":1}}],["getusermedia",{"2":{"34":2}}],["get",{"2":{"25":1}}],["gt",{"2":{"25":1}}],["5",{"2":{"49":1}}],["5cb984",{"2":{"41":1}}],["50px",{"2":{"51":2,"53":2}}],["500",{"2":{"47":1}}],["50",{"2":{"41":1}}],["542",{"2":{"23":1}}],["566",{"2":{"23":2}}],["93",{"2":{"41":1}}],["94",{"2":{"23":1}}],["91",{"2":{"23":1}}],["70",{"2":{"23":3}}],["76",{"2":{"21":1}}],["x26",{"2":{"34":2,"51":4,"57":2}}],["x",{"2":{"23":10,"41":7,"49":2}}],["x3c",{"2":{"6":2,"7":5,"13":4,"14":2,"15":5,"19":4,"23":2,"24":2,"25":2,"27":2,"34":2,"35":2,"37":4,"39":18,"41":37,"43":13,"45":14,"47":17,"49":31,"51":17,"53":21,"55":18,"57":20}}],["2px",{"2":{"49":1}}],["255",{"2":{"47":3,"57":3}}],["258",{"2":{"23":2}}],["2000",{"2":{"57":1}}],["20px",{"2":{"45":1}}],["206",{"2":{"1":1,"10":1,"21":1}}],["2rem",{"2":{"43":1,"45":1}}],["2",{"2":{"41":3,"49":1}}],["240",{"2":{"23":2}}],["244",{"2":{"23":2}}],["260",{"2":{"23":2}}],["29",{"2":{"21":2}}],["4rem",{"2":{"57":1}}],["4",{"2":{"21":1}}],["48",{"2":{"21":1}}],["lang=",{"2":{"41":1,"49":1,"53":1}}],["label>",{"2":{"41":1}}],["label",{"2":{"41":8,"53":2}}],["lacking",{"2":{"27":1}}],["last",{"2":{"23":1,"39":1,"41":1,"46":1,"47":1,"55":1,"56":1,"57":1}}],["lt",{"2":{"25":1}}],["length",{"2":{"53":1}}],["less",{"2":{"42":1}}],["leaks",{"2":{"33":1}}],["least",{"2":{"21":3}}],["left",{"2":{"23":2,"43":1,"51":1,"53":1}}],["long",{"2":{"57":2}}],["low",{"2":{"52":1}}],["log",{"2":{"39":1,"41":1,"53":1,"55":1}}],["logerrors",{"2":{"39":2,"43":2}}],["looks",{"2":{"56":1}}],["look",{"2":{"33":1}}],["location",{"2":{"33":2}}],["localhost",{"2":{"21":2,"27":1,"41":2,"49":2}}],["load",{"2":{"39":1}}],["loading",{"0":{"44":1},"1":{"45":1},"2":{"25":2,"44":1,"45":7}}],["loaded",{"2":{"23":1,"25":1,"35":1}}],["light",{"2":{"52":1}}],["linear",{"2":{"41":1}}],["linewidth",{"2":{"41":2,"49":1}}],["lineto",{"2":{"41":2}}],["link",{"2":{"4":1}}],["limitations",{"2":{"35":1}}],["limited",{"2":{"21":1}}],["like",{"2":{"33":2,"48":1,"56":1}}],["listen",{"2":{"15":1,"25":1,"44":1}}],["z",{"2":{"43":1}}],["zero",{"2":{"19":1}}],["zone>",{"2":{"13":1,"14":1,"15":1,"19":2,"39":1}}],["zone",{"2":{"13":1,"14":1,"15":1,"39":1}}],["007bff",{"2":{"41":1,"49":1}}],["0",{"2":{"16":2,"28":2,"29":2,"30":2,"43":6,"47":1,"49":1,"53":2,"55":1,"57":1}}],["=>",{"2":{"39":1,"41":5,"47":2,"49":1,"53":3,"55":1,"57":1}}],["==",{"2":{"39":1,"43":1,"53":1}}],["===",{"2":{"13":2,"27":6,"34":2,"39":2,"41":8,"49":7,"51":3,"53":1,"57":3}}],["=",{"2":{"15":1,"34":3,"35":1,"39":5,"41":29,"43":3,"45":4,"47":5,"49":9,"51":7,"53":9,"55":2,"57":5}}],["ツ",{"2":{"13":1}}],["¯",{"2":{"13":2}}],["js",{"2":{"49":2}}],["jsmethods",{"2":{"35":1}}],["jsdata",{"2":{"34":1}}],["jsnavigator",{"2":{"34":1}}],["json",{"2":{"23":1,"39":1,"41":1,"47":1,"49":1,"55":1}}],["javascriptdata",{"2":{"15":1}}],["javascriptmethods",{"2":{"13":1,"23":1,"25":1,"27":1}}],["justify",{"2":{"47":1,"57":1}}],["just",{"2":{"13":1,"56":1}}],["using",{"2":{"52":1}}],["useful",{"2":{"32":1}}],["users",{"2":{"23":1,"25":3,"38":1,"50":1,"57":1}}],["user",{"2":{"15":1,"25":1,"27":1,"34":2,"41":2,"43":2,"51":3,"55":1}}],["use",{"2":{"4":1,"7":1,"15":1,"16":1,"27":1,"28":1,"29":1,"30":1,"34":2,"38":1,"41":3,"43":1,"48":1,"49":3,"52":1}}],["umd",{"2":{"49":1}}],["utf",{"2":{"49":1}}],["utilize",{"2":{"48":1}}],["uploaded",{"2":{"54":2}}],["upload",{"0":{"54":1},"1":{"55":1},"2":{"54":1}}],["upc",{"2":{"41":2}}],["ups",{"2":{"39":1}}],["unpkg",{"2":{"49":2}}],["unpause",{"2":{"32":1}}],["undefined",{"2":{"33":1,"41":1,"57":3}}],["understand",{"2":{"25":1}}],["unsupported",{"2":{"13":1,"35":1}}],["url",{"2":{"13":2,"57":2}}],["v",{"2":{"39":1,"41":6,"45":2,"47":1,"51":2,"53":5,"55":2,"57":3}}],["variety",{"2":{"41":2}}],["various",{"2":{"34":1}}],["vary",{"2":{"35":1}}],["value=",{"2":{"41":2,"53":1,"55":1}}],["value",{"2":{"23":1,"41":19,"49":10,"53":6,"55":4}}],["validationpending",{"2":{"57":2}}],["validationfailure",{"2":{"57":2}}],["validation",{"2":{"57":9}}],["validationsuccess",{"2":{"57":2}}],["validate",{"0":{"56":1},"1":{"57":1}}],["valid",{"2":{"7":1}}],["via",{"2":{"54":1}}],["vite",{"2":{"48":1}}],["vitepress",{"2":{"43":1,"47":1,"51":1,"53":1}}],["visible",{"2":{"44":1}}],["visually",{"2":{"33":1,"41":1}}],["viewport",{"2":{"43":1,"49":1}}],["view",{"2":{"41":1,"46":1}}],["videoinput",{"2":{"41":1,"53":1}}],["videodevices",{"2":{"41":2}}],["video",{"2":{"34":1}}],["violation",{"2":{"13":1}}],["void",{"2":{"26":1}}],["v4",{"2":{"16":1,"28":1,"29":1,"30":1}}],["vueqrcodereader",{"2":{"49":1}}],["vuex",{"2":{"33":1}}],["vues",{"2":{"15":1}}],["vue",{"2":{"1":1,"7":1,"10":1,"21":1,"39":1,"41":2,"43":1,"45":1,"47":1,"49":5,"51":1,"53":2,"55":1,"57":1}}],["rgba",{"2":{"47":1,"57":1}}],["rather",{"2":{"41":1,"43":1,"49":1}}],["rawvalue",{"2":{"23":2,"39":1,"41":4,"47":1,"49":1,"55":1,"57":1}}],["rm",{"2":{"41":1}}],["row",{"2":{"23":1,"46":1,"47":1}}],["root",{"2":{"7":1}}],["right",{"2":{"23":2,"41":1,"43":2,"48":1}}],["reload",{"2":{"45":2}}],["reloaded",{"2":{"35":1}}],["re",{"2":{"44":1,"45":1}}],["ref=",{"2":{"43":1}}],["ref",{"2":{"41":7,"49":3,"53":5}}],["red",{"2":{"39":1,"41":2,"49":1,"51":1,"53":1,"57":1}}],["received",{"2":{"56":1}}],["receives",{"2":{"33":1}}],["recognized",{"2":{"3":1,"12":1}}],["required",{"2":{"41":1,"49":1}}],["requires",{"2":{"21":2}}],["requestfullscreen",{"2":{"43":4}}],["requested",{"2":{"34":1}}],["requesting",{"2":{"34":1,"41":1}}],["request",{"2":{"27":1}}],["resolve",{"2":{"47":2,"57":2}}],["resolves",{"2":{"25":1}}],["resetvalidationstate",{"2":{"57":2}}],["reset",{"2":{"46":1}}],["resets",{"2":{"23":1}}],["result",{"2":{"39":5,"41":5,"47":5,"49":5,"55":5,"57":6}}],["results",{"2":{"3":1,"12":1,"23":2}}],["restarted",{"2":{"26":1,"32":1}}],["read",{"2":{"57":1}}],["reader",{"2":{"49":2}}],["ready",{"2":{"25":2}}],["reactive",{"2":{"33":1}}],["reacting",{"2":{"15":1}}],["real",{"2":{"33":1,"41":1}}],["really",{"2":{"15":1,"57":1}}],["reasons",{"2":{"27":1}}],["rear",{"2":{"26":1,"34":1,"35":1,"41":2,"50":1,"51":1,"55":1}}],["return",{"2":{"15":1,"34":1,"39":1,"41":1,"43":3,"45":1,"47":2,"49":1,"51":1,"53":2,"55":1,"57":5}}],["remove",{"2":{"7":1}}],["renders",{"2":{"3":1,"19":1}}],[">destroy",{"2":{"45":1}}],[">",{"2":{"6":1,"7":3,"13":2,"14":1,"15":3,"23":1,"24":1,"25":1,"27":1,"34":1,"35":1,"39":4,"41":12,"43":4,"45":2,"47":4,"49":9,"51":5,"53":8,"55":5,"57":5}}],["hr",{"2":{"55":1}}],["h1>",{"2":{"49":1}}],["h1>simple",{"2":{"49":1}}],["hits",{"2":{"43":1}}],["hide",{"2":{"25":1}}],["highlighted",{"2":{"41":1}}],["highlight",{"2":{"15":1,"33":1}}],["how",{"2":{"25":1,"33":1}}],["however",{"2":{"23":1,"46":1}}],["hold",{"2":{"23":1}}],["home",{"2":{"1":1,"21":1}}],["http",{"2":{"41":1,"49":1,"57":1}}],["https",{"2":{"21":2,"23":1,"27":1,"41":2,"49":4}}],["html>",{"2":{"49":2}}],["html",{"2":{"6":1,"7":3,"13":1,"14":1,"15":1,"19":1,"23":1,"24":1,"25":1,"27":1,"34":1,"35":1,"37":1,"49":2}}],["handling",{"2":{"41":2}}],["happening",{"2":{"54":1}}],["happened",{"2":{"41":1}}],["happen",{"2":{"27":1}}],["happens",{"2":{"26":1}}],["have",{"2":{"19":1,"34":1,"41":1,"46":1,"51":2,"57":1}}],["has",{"2":{"13":1,"25":2,"26":1,"33":1,"35":2,"41":2}}],["head>",{"2":{"49":2}}],["header",{"2":{"13":1}}],["hello",{"2":{"23":1}}],["help",{"2":{"21":1}}],["here",{"2":{"19":1,"23":1,"37":1,"39":1}}],["height",{"2":{"19":2,"23":2,"39":1,"41":3,"47":1,"49":2,"51":1,"53":1,"57":1}}],["fullscreenelement",{"2":{"43":1}}],["fullscreenicon",{"2":{"43":2}}],["fullscreenchange=",{"2":{"43":1}}],["fullscreen",{"0":{"42":1},"1":{"43":1},"2":{"42":1,"43":16}}],["full",{"0":{"40":1},"1":{"41":1}}],["functons",{"2":{"41":1}}],["function",{"2":{"33":5,"41":6,"49":3,"53":2}}],["fundamentally",{"2":{"21":1}}],["following",{"2":{"41":1,"54":1}}],["fontsize",{"2":{"41":2}}],["font",{"2":{"39":2,"41":2,"45":2,"51":1,"53":1,"57":2}}],["force",{"2":{"44":1,"55":1}}],["for=",{"2":{"41":4,"53":1,"55":1}}],["format",{"2":{"23":2,"41":4}}],["formats=",{"2":{"6":1,"14":1,"24":1,"41":1}}],["formats",{"0":{"6":1,"14":1,"24":1},"2":{"6":4,"14":4,"24":4,"41":2}}],["for",{"2":{"3":1,"12":1,"15":1,"16":1,"21":4,"23":1,"25":3,"26":1,"28":1,"29":1,"30":1,"33":1,"34":3,"35":1,"38":1,"41":5,"43":1,"44":1,"48":1,"49":1,"53":1}}],["fff",{"2":{"39":1}}],["flow",{"2":{"47":1,"57":1}}],["flooded",{"2":{"23":1,"46":1}}],["flex",{"2":{"47":2,"57":2}}],["flash",{"2":{"53":2}}],["flashlight",{"0":{"52":1},"1":{"53":1},"2":{"35":3,"52":2}}],["flavor",{"2":{"41":1}}],["feature",{"2":{"33":1,"38":1,"52":1}}],["features",{"2":{"27":1}}],["fetched",{"2":{"13":1}}],["failure",{"2":{"57":3}}],["fails",{"2":{"27":1,"35":1}}],["facingmode",{"2":{"34":5,"41":3,"51":7}}],["fallback",{"2":{"38":1}}],["fallthrough",{"2":{"7":1}}],["false",{"2":{"15":1,"32":1,"34":1,"35":1,"39":1,"41":20,"43":1,"45":3,"47":4,"51":2,"53":2,"57":3}}],["frequency",{"2":{"33":1}}],["freezes",{"2":{"32":1}}],["frame",{"2":{"33":1,"56":1}}],["frames",{"2":{"23":1}}],["front",{"0":{"50":1},"1":{"51":1},"2":{"26":1,"27":1,"34":3,"35":1,"41":2,"50":1,"51":1,"55":1}}],["from",{"2":{"12":1,"13":1,"23":1,"35":1,"39":1,"41":2,"43":2,"45":1,"47":2,"51":2,"53":3,"55":1,"57":1}}],["frustrated",{"2":{"25":1}}],["finally",{"2":{"54":1}}],["fine",{"2":{"41":1}}],["fixed",{"2":{"43":1}}],["film",{"2":{"41":1}}],["filltext",{"2":{"41":1}}],["fillstyle",{"2":{"41":1}}],["filter",{"2":{"41":2,"53":1}}],["files",{"2":{"12":1}}],["file",{"2":{"3":2,"7":1,"13":3,"48":1,"54":2,"55":1}}],["filereader",{"2":{"1":1,"10":1}}],["firstdetectedcode",{"2":{"57":2}}],["firstpoint",{"2":{"41":5}}],["first",{"2":{"25":1,"33":1}}],["firefox",{"2":{"21":1,"43":2}}],["ms",{"2":{"47":2,"57":2}}],["msexitfullscreen",{"2":{"43":2}}],["msrequestfullscreen",{"2":{"43":2}}],["must",{"2":{"34":1,"35":1}}],["multiple",{"0":{"7":1},"2":{"3":1,"7":1,"12":1,"23":3,"41":1,"46":2}}],["micro",{"2":{"41":1}}],["microinteraction",{"2":{"32":1}}],["might",{"2":{"15":1,"25":2,"33":2,"43":1,"46":1,"52":1}}],["margin",{"2":{"41":1,"43":1,"45":1}}],["matrix",{"2":{"41":2}}],["math",{"2":{"41":1}}],["maxi",{"2":{"41":1}}],["max",{"2":{"41":1}}],["map",{"2":{"39":1,"41":2,"47":1,"49":1,"55":1}}],["maybe",{"2":{"27":1}}],["manually",{"2":{"25":1}}],["make",{"2":{"7":1,"25":1,"52":1}}],["memo=",{"2":{"53":1}}],["memory",{"2":{"33":1}}],["meta",{"2":{"49":2}}],["methods",{"2":{"15":1,"34":1,"39":1,"43":1,"45":1,"47":1,"51":1,"55":1,"57":1}}],["message",{"2":{"39":1,"41":1,"49":1,"57":1}}],["means",{"2":{"35":1}}],["mediadeviceinfo",{"2":{"53":2}}],["mediadevices",{"2":{"34":1,"41":1,"53":1}}],["mediatrackconstriants",{"2":{"34":1}}],["mediatrackconstraints",{"2":{"34":1}}],["mediatrackcapabilities",{"2":{"25":2,"35":1}}],["merely",{"2":{"19":1}}],["mozcancelfullscreen",{"2":{"43":2}}],["mozrequestfullscreen",{"2":{"43":2}}],["move",{"2":{"43":1}}],["moveto",{"2":{"41":1}}],["more",{"0":{"46":1},"1":{"47":1},"2":{"41":3,"42":1,"57":1}}],["mounting",{"2":{"44":1}}],["mount",{"2":{"25":1,"49":1}}],["moment",{"2":{"23":1,"35":1}}],["modified",{"2":{"26":1,"34":1}}],["modifier",{"2":{"15":1}}],["model=",{"2":{"41":3,"53":1,"55":1}}],["modern",{"2":{"41":1}}],["mode",{"2":{"1":1,"21":1}}],["mobile",{"2":{"3":1,"41":1,"43":1,"54":1}}],["y",{"2":{"23":10,"41":7,"49":2}}],["your",{"2":{"12":1,"25":1,"33":2,"43":1,"46":1,"48":1,"51":2,"54":2}}],["you",{"2":{"3":1,"7":2,"12":2,"15":2,"19":1,"23":3,"25":5,"27":1,"32":2,"33":3,"34":4,"35":3,"38":1,"39":1,"41":4,"43":1,"46":3,"48":1,"49":1,"50":1,"51":2,"52":2,"54":3,"56":1}}],["yes²",{"2":{"21":1}}],["yes¹",{"2":{"1":1,"21":1}}],["yes",{"2":{"1":3,"10":4,"21":2}}],["black",{"2":{"49":1,"57":1}}],["block",{"2":{"41":1}}],["build",{"2":{"48":1}}],["bundler",{"2":{"48":1}}],["button>",{"2":{"43":1,"45":1,"51":1,"53":1}}],["button",{"2":{"43":6,"44":1,"45":2,"51":3,"53":3}}],["but",{"2":{"7":1,"23":1,"35":2,"41":2,"43":1,"54":1}}],["break",{"2":{"51":2}}],["br",{"2":{"41":1}}],["browsers",{"2":{"21":1,"35":1,"52":1}}],["browser",{"0":{"1":1,"10":1,"21":1},"2":{"27":1,"35":1,"41":1,"48":1,"49":1,"54":1}}],["back",{"2":{"43":1}}],["background",{"2":{"39":2,"43":1,"47":1,"57":1}}],["barcodeformats",{"2":{"41":5}}],["barcode",{"2":{"6":1,"14":1,"23":1,"24":1,"41":4}}],["barcodedetectoroptions",{"2":{"6":1,"14":1,"24":1}}],["border",{"2":{"49":1}}],["body>",{"2":{"49":2}}],["box",{"2":{"41":1}}],["bounding",{"2":{"41":1}}],["boundingbox",{"2":{"23":2,"41":7,"49":1}}],["bold",{"2":{"39":2,"41":1,"45":1,"51":1,"53":1,"57":1}}],["bottom",{"2":{"23":2,"43":2,"45":1}}],["boolean",{"2":{"15":1,"32":1,"35":1}}],["b>stuff",{"2":{"37":1}}],["b>",{"2":{"19":1,"37":1,"39":2,"41":2,"47":2,"49":2,"55":2,"57":2}}],["b>put",{"2":{"19":1}}],["behavior",{"2":{"54":1}}],["below",{"2":{"44":1}}],["beginpath",{"2":{"41":1}}],["becoming",{"2":{"44":1}}],["becomes",{"2":{"41":1,"43":1}}],["because",{"2":{"7":2,"25":1}}],["best",{"2":{"41":1}}],["been",{"2":{"35":1}}],["between",{"2":{"26":1,"44":1}}],["before",{"2":{"25":2,"41":1}}],["be",{"2":{"3":1,"12":1,"13":2,"15":1,"23":1,"25":2,"26":1,"27":1,"33":2,"34":1,"35":2,"38":1,"39":1,"46":1,"52":1,"54":1}}],["by",{"0":{"38":1,"54":1},"1":{"39":1,"55":1},"2":{"3":1,"12":1,"15":1,"19":1,"23":1,"35":1,"41":4,"43":1,"52":1,"56":1}}],["ok",{"2":{"39":1}}],["occur",{"2":{"34":1}}],["occupies",{"2":{"12":1,"42":1}}],["opera",{"2":{"43":2}}],["open",{"2":{"13":1}}],["opens",{"2":{"3":1}}],["option>",{"2":{"41":2,"53":1,"55":1}}],["option",{"2":{"41":16,"53":1,"55":5}}],["options",{"2":{"34":1,"55":4}}],["outline",{"2":{"41":1}}],["out",{"2":{"33":1}}],["object",{"2":{"33":1,"34":4,"35":1,"41":2}}],["overlays",{"2":{"33":1,"37":2}}],["overconstrainederror",{"2":{"27":1,"34":1,"41":1,"49":1,"51":1}}],["over",{"2":{"15":1,"27":1}}],["override",{"2":{"7":1}}],["org",{"2":{"23":1}}],["origin",{"2":{"13":1,"39":1}}],["or",{"2":{"12":1,"13":1,"21":1,"23":1,"26":1,"27":1,"33":1,"34":1,"35":1,"38":1,"41":3,"49":1,"50":1}}],["otherpoints",{"2":{"41":2}}],["otherwise",{"2":{"25":1}}],["other",{"2":{"7":1,"12":1,"21":1,"41":1,"48":1}}],["old",{"2":{"4":1}}],["off=",{"2":{"47":1}}],["off",{"0":{"26":1},"2":{"26":1,"35":2,"52":1,"53":1}}],["often",{"2":{"23":1,"35":1,"41":1,"46":1}}],["of",{"2":{"3":1,"7":2,"12":1,"13":1,"23":3,"27":1,"34":1,"39":1,"41":7,"46":1,"49":1,"52":1}}],["onmounted",{"2":{"53":2}}],["onfullscreenchange",{"2":{"43":2}}],["on`",{"2":{"41":1}}],["oninit",{"2":{"35":2}}],["onready",{"2":{"25":2}}],["on=",{"2":{"25":1,"35":1,"41":1,"45":1,"47":1,"53":1,"57":1}}],["only",{"2":{"23":3,"25":1,"35":1,"41":2,"46":1,"49":1,"52":1}}],["oncameraoff",{"2":{"47":2}}],["oncameraon",{"2":{"45":2,"47":2,"53":2}}],["oncameraready",{"2":{"41":2}}],["once",{"0":{"46":1},"1":{"47":1},"2":{"23":2,"25":1,"35":1}}],["onchangeinput",{"2":{"7":1}}],["ondragover",{"2":{"15":2,"39":2}}],["ondetect",{"2":{"13":1,"23":2,"39":2,"41":2,"47":2,"49":3,"55":2,"57":2}}],["onerror",{"2":{"13":1,"27":2,"34":2,"41":2,"47":2,"49":3,"51":2,"53":1,"57":2}}],["one",{"2":{"3":1,"12":1,"23":1,"34":1,"41":2,"56":1}}],["on",{"0":{"25":1},"2":{"1":2,"3":2,"10":1,"12":1,"21":2,"25":1,"29":1,"32":1,"33":1,"34":3,"35":7,"41":2,"43":2,"44":1,"48":1,"49":1,"50":1,"51":2,"52":1,"53":1,"54":1}}],["createapp",{"2":{"49":2}}],["create",{"2":{"44":1,"45":1}}],["cross",{"2":{"39":1}}],["ctx",{"2":{"41":21,"49":4}}],["centered",{"2":{"41":1}}],["centery",{"2":{"41":3}}],["centerx",{"2":{"41":3}}],["center",{"2":{"39":1,"41":1,"45":1,"47":1,"57":2}}],["custom",{"2":{"15":1}}],["client",{"2":{"54":1}}],["click=",{"2":{"43":1,"45":1,"51":1,"53":1}}],["clicking",{"2":{"3":1}}],["classic",{"2":{"54":1}}],["class=",{"2":{"15":1,"39":4,"41":3,"43":2,"45":1,"47":2,"51":2,"53":1,"55":1,"57":4}}],["closepath",{"2":{"41":1}}],["ch",{"2":{"52":1}}],["choose",{"2":{"50":1}}],["choice",{"2":{"41":1}}],["charset=",{"2":{"49":1}}],["changes",{"2":{"46":1}}],["change",{"2":{"25":1,"41":1,"46":1}}],["change=",{"2":{"7":1}}],["changing",{"2":{"23":1}}],["checkmark",{"2":{"47":2}}],["checkbox",{"2":{"41":3}}],["check",{"2":{"33":1}}],["checkout",{"2":{"7":1}}],["chrome",{"2":{"21":2,"25":1,"43":2}}],["column",{"2":{"57":1}}],["color",{"2":{"39":4,"41":1,"43":1,"47":1,"49":1,"51":1,"53":1,"57":4}}],["comes",{"2":{"54":1}}],["com",{"2":{"49":2}}],["computed",{"2":{"33":1,"41":2,"43":1,"53":2,"57":1}}],["components",{"2":{"7":2,"39":1,"43":1,"45":1,"47":1,"48":1,"51":1,"55":1,"57":1}}],["component",{"2":{"1":1,"3":1,"7":1,"10":1,"12":1,"15":1,"19":1,"21":2,"25":2,"38":1,"42":1,"44":2,"45":1,"54":1}}],["covered",{"2":{"43":1}}],["covers",{"2":{"42":1}}],["codabar",{"2":{"41":1}}],["codes",{"2":{"23":3,"33":1,"41":4,"46":1}}],["code",{"0":{"46":1},"1":{"47":1},"2":{"3":1,"6":3,"12":1,"14":3,"23":5,"24":3,"33":1,"39":2,"41":9,"46":3,"47":2,"49":2,"55":2,"56":1}}],["couple",{"2":{"27":1}}],["cornerpoints",{"2":{"23":2,"41":1}}],["cors",{"2":{"13":2}}],["conditions",{"2":{"52":1}}],["consider",{"2":{"43":1}}],["consistently",{"2":{"35":1}}],["console",{"2":{"39":1,"41":1,"43":1,"47":1,"51":1,"53":3,"55":1,"57":1}}],["const",{"2":{"34":2,"35":1,"41":21,"43":1,"49":6,"51":3,"53":5,"55":1}}],["constraintoptions",{"2":{"41":3}}],["constraint",{"2":{"34":1}}],["constraints=",{"2":{"34":1,"41":1,"51":1,"53":1}}],["constraints",{"0":{"34":1},"2":{"26":1,"30":1,"41":5}}],["confirmation",{"2":{"47":2}}],["configuration",{"2":{"34":1}}],["confused",{"2":{"15":1}}],["context",{"2":{"41":2,"49":2}}],["content=",{"2":{"49":1}}],["content",{"2":{"19":2,"37":1,"46":1,"47":1,"57":1}}],["container",{"2":{"37":1}}],["control",{"2":{"35":1,"41":1}}],["continuously",{"2":{"23":1}}],["case",{"2":{"51":2}}],["care",{"2":{"41":1}}],["carries",{"2":{"25":1}}],["catch",{"2":{"34":1}}],["calling",{"2":{"43":2}}],["call",{"2":{"34":1}}],["called",{"2":{"33":2}}],["cause",{"2":{"33":1}}],["caused",{"2":{"13":1}}],["capabilities",{"2":{"25":1,"35":2,"53":3}}],["capture=",{"2":{"7":2,"55":1}}],["capture>",{"2":{"6":1}}],["capture",{"0":{"7":1},"2":{"6":1,"7":2,"55":2}}],["cache",{"2":{"23":1,"46":1}}],["cached",{"2":{"23":1,"46":1}}],["canvasrenderingcontext2d",{"2":{"33":1}}],["canvas",{"2":{"33":2,"41":1}}],["can",{"2":{"3":2,"7":2,"12":3,"13":2,"25":3,"27":1,"33":1,"34":3,"35":4,"38":1,"39":2,"41":3,"46":1,"50":1,"52":2,"54":1,"56":1}}],["cameramissingerror",{"2":{"34":2,"51":3}}],["cameras",{"2":{"25":1,"41":2,"49":1,"52":1}}],["camera",{"0":{"25":1,"26":1,"30":1,"50":1},"1":{"51":1},"2":{"3":1,"23":2,"25":6,"26":5,"27":5,"29":1,"32":3,"33":1,"34":7,"35":8,"37":2,"41":10,"43":2,"44":2,"45":1,"46":1,"47":2,"49":4,"50":1,"51":4,"52":1,"53":3,"54":1,"55":2,"57":1}}],["etc",{"2":{"43":1}}],["esc",{"2":{"43":1}}],["err",{"2":{"41":10,"49":10,"53":2}}],["errors",{"2":{"34":1}}],["error=",{"2":{"27":1,"34":1,"39":1,"41":1,"43":1,"47":1,"49":1,"51":1,"53":1,"57":1}}],["error",{"0":{"13":1,"27":1},"2":{"13":4,"27":9,"29":1,"34":4,"39":13,"41":15,"43":1,"47":1,"49":12,"51":7,"53":4,"57":1}}],["edge",{"2":{"41":1,"43":2}}],["e",{"2":{"41":2}}],["ean",{"2":{"41":2}}],["easy",{"2":{"33":1}}],["each",{"2":{"33":1,"56":1}}],["en",{"2":{"49":1}}],["enterfullscreen",{"2":{"43":2}}],["entire",{"2":{"42":2,"43":1}}],["enumeratedevices",{"2":{"41":1,"53":1}}],["enable",{"2":{"33":2}}],["environment",{"2":{"7":1,"34":2,"41":2,"51":4,"55":1}}],["every",{"2":{"34":1}}],["everything",{"2":{"25":1,"54":1}}],["even",{"2":{"21":1,"35":1,"43":1}}],["event",{"2":{"3":4,"12":4,"15":4,"23":1,"25":1,"32":1,"34":2,"35":2,"41":1,"43":1,"44":1,"46":1}}],["events",{"0":{"2":1,"11":1,"22":1},"1":{"3":1,"4":1,"12":1,"13":1,"14":1,"15":1,"16":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1},"2":{"13":1,"23":1,"27":1,"35":1,"46":1}}],["exitfullscreen",{"2":{"43":4}}],["exit",{"2":{"43":2}}],["exploit",{"2":{"46":1}}],["explicitly",{"2":{"7":1}}],["expanded",{"2":{"41":1}}],["expensive",{"2":{"41":1}}],["export",{"2":{"39":1,"43":1,"45":1,"47":1,"51":1,"55":1,"57":1}}],["example",{"2":{"23":1,"26":1,"33":1,"34":2,"35":1,"48":1}}],["elem",{"2":{"43":9}}],["element",{"2":{"3":1,"7":2,"13":1,"42":1}}],["else",{"2":{"13":2,"27":5,"39":2,"41":7,"43":8,"49":7,"53":1}}],["emphasizing",{"2":{"15":1}}],["empty",{"2":{"3":1,"12":1}}],["embedded",{"2":{"12":1}}],["emitted",{"2":{"3":1,"12":1,"13":1,"23":1,"25":1,"26":1,"27":1,"32":1,"34":1,"35":2,"46":1}}],["quot",{"2":{"34":2,"46":2}}],["question",{"2":{"1":1}}],["qrcodedropzone",{"0":{"9":1},"1":{"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1},"2":{"38":1,"39":2}}],["qrcode",{"2":{"6":2,"7":2,"13":2,"14":2,"15":2,"19":2,"23":2,"24":2,"25":2,"27":2,"34":2,"35":2,"37":2,"39":2,"41":1,"43":2,"45":2,"47":2,"49":4,"51":2,"53":2,"55":1,"57":2}}],["qrcodestream",{"0":{"20":1},"1":{"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1},"2":{"3":1,"12":1,"41":1,"42":1,"43":2,"45":2,"47":2,"51":2,"53":1,"57":2}}],["qrcodecapture",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1},"2":{"7":1,"54":1,"55":2}}],["qr",{"0":{"46":1},"1":{"47":1},"2":{"3":1,"6":2,"12":1,"14":2,"23":7,"24":2,"33":2,"41":4,"46":4,"56":1}}],["3000",{"2":{"57":1}}],["300px",{"2":{"39":1}}],["39",{"2":{"41":1}}],["35495e",{"2":{"41":1}}],["359",{"2":{"23":1}}],["3c3c43",{"2":{"39":1}}],["342",{"2":{"23":1}}],["375",{"2":{"23":2}}],["322",{"2":{"23":3}}],["3",{"2":{"1":1,"21":2,"41":1,"49":1}}],["1rem",{"2":{"43":1}}],["1",{"2":{"41":1,"57":1}}],["12",{"2":{"41":1}}],["128",{"2":{"6":1,"14":1,"24":1,"41":1,"47":1}}],["100",{"2":{"47":2,"57":2}}],["1000",{"2":{"43":1}}],["10b981",{"2":{"39":1}}],["10px",{"2":{"39":1,"41":1,"51":2,"53":2,"57":1}}],["10+",{"2":{"1":1,"10":1}}],["160",{"2":{"23":1}}],["188",{"2":{"23":1}}],["178",{"2":{"23":1}}],["14",{"2":{"21":2}}],["135",{"2":{"23":3}}],["13",{"2":{"21":1,"41":1}}],["11",{"2":{"1":1}}],["pending",{"2":{"57":2}}],["permitted",{"2":{"41":1,"49":1}}],["permissions",{"2":{"25":1,"41":1}}],["permission",{"2":{"25":1,"27":1,"41":2,"43":2,"49":1}}],["per",{"2":{"3":1,"12":1}}],["physical",{"2":{"43":1}}],["phones",{"2":{"41":1}}],["push",{"2":{"44":1}}],["pushes",{"2":{"43":1}}],["put",{"2":{"42":1}}],["pdf417",{"2":{"41":1}}],["px",{"2":{"41":1}}],["p>last",{"2":{"49":1}}],["p>",{"2":{"39":2,"41":8,"47":1,"49":2,"51":2,"53":3,"55":3,"57":1}}],["p",{"2":{"39":2,"41":2,"47":1,"49":1,"51":2,"53":1,"55":1,"57":1}}],["position",{"2":{"37":1,"43":2,"47":1,"51":1,"53":1,"57":1}}],["positive",{"2":{"3":1,"12":1}}],["policy",{"2":{"13":1}}],["pausing",{"2":{"56":1}}],["pause",{"0":{"56":1},"1":{"57":1}}],["paused=",{"2":{"47":1,"57":1}}],["paused",{"0":{"32":1},"2":{"23":1,"46":1,"47":4,"56":1,"57":5}}],["paintcentertext",{"2":{"41":2}}],["paintboundingbox",{"2":{"41":2,"49":3}}],["paintoutline",{"2":{"41":2}}],["painted",{"2":{"33":1}}],["padding",{"2":{"39":1,"57":1}}],["passed",{"2":{"34":1}}],["pass",{"2":{"33":1,"34":1}}],["page",{"2":{"27":1,"48":1}}],["pages",{"2":{"12":1}}],["particular",{"2":{"27":1}}],["panic",{"2":{"25":1}}],["payload",{"2":{"3":2,"6":1,"12":2,"14":1,"15":1,"23":2,"24":1,"25":1,"26":1,"27":1,"35":1}}],["pretend",{"2":{"57":1}}],["progress",{"2":{"57":1}}],["project",{"2":{"48":1}}],["produce",{"2":{"33":1}}],["prompted",{"2":{"54":1}}],["prompt",{"2":{"25":1,"43":1}}],["promise",{"2":{"25":2,"47":1,"57":1}}],["process",{"2":{"25":1,"56":1}}],["provide",{"2":{"19":1,"34":1}}],["probably",{"2":{"13":1}}],["properties",{"2":{"33":1}}],["propagated",{"2":{"23":1}}],["prop",{"2":{"6":1,"14":1,"24":1,"32":1,"34":2,"35":1,"46":1,"52":1}}],["props",{"0":{"5":1,"17":1,"31":1},"1":{"6":1,"7":1,"32":1,"33":1,"34":1,"35":1},"2":{"7":1,"17":1}}],["prior",{"2":{"1":1}}],["pick",{"2":{"53":1}}],["picked",{"2":{"41":1}}],["picker",{"2":{"3":1}}],["picture",{"2":{"3":1,"54":1}}],["pwa",{"2":{"1":1,"21":1}}],["adjust",{"2":{"54":1}}],["added",{"2":{"1":1,"21":1}}],["aeschbacher",{"2":{"52":1}}],["available",{"2":{"42":1}}],["avoid",{"2":{"33":1}}],["aztec",{"2":{"41":1}}],["await",{"2":{"41":1,"45":1,"47":1,"53":1,"57":2}}],["amp",{"0":{"38":1,"56":1},"1":{"39":1,"57":1}}],["absolute",{"2":{"37":1,"43":1,"47":1,"51":1,"53":1,"57":1}}],["audio",{"2":{"34":1}}],["again",{"2":{"32":1,"34":1,"35":1,"46":1}}],["after",{"2":{"32":1,"52":1}}],["alt=",{"2":{"43":1,"47":1,"51":1,"53":1}}],["although",{"2":{"27":1}}],["align",{"2":{"39":1,"45":1,"57":1}}],["allows",{"2":{"54":1}}],["allow",{"2":{"50":1}}],["all",{"2":{"33":1,"35":1,"48":1}}],["already",{"2":{"27":1,"41":1,"43":1,"49":1,"52":1}}],["always",{"2":{"23":1,"42":1}}],["also",{"2":{"3":1,"7":1,"12":1,"21":1,"38":1,"41":1,"50":1}}],["active",{"2":{"53":1}}],["actually",{"2":{"23":1,"54":1}}],["across",{"2":{"52":1}}],["access",{"2":{"25":2,"27":1,"33":2,"35":1,"41":3,"43":1,"49":2}}],["accept",{"2":{"7":1}}],["accept=",{"2":{"7":1}}],["accroding",{"2":{"23":1}}],["async",{"2":{"41":1,"45":1,"47":1,"53":1,"57":1}}],["asked",{"2":{"25":1,"43":1}}],["as",{"2":{"3":1,"12":1,"25":2,"33":2,"34":1,"38":2,"53":2}}],["argument",{"2":{"33":2}}],["array",{"2":{"3":1,"12":1,"23":2}}],["area",{"2":{"12":1,"39":2}}],["are",{"2":{"3":2,"6":1,"12":2,"13":1,"14":1,"23":3,"24":1,"26":1,"27":1,"41":4,"49":1,"54":2}}],["another",{"2":{"43":1,"54":1}}],["angle",{"2":{"41":1}}],["anything",{"2":{"19":1}}],["anywhere",{"2":{"12":1}}],["any",{"2":{"7":2,"19":1,"37":1}}],["an",{"2":{"3":1,"12":1,"13":3,"23":2,"34":2,"39":1,"46":1,"48":1}}],["and",{"2":{"3":1,"7":1,"12":2,"13":3,"23":2,"25":4,"26":2,"33":2,"35":2,"38":1,"43":2,"44":2,"45":1,"46":1,"48":1,"52":2,"54":1}}],["attribute",{"2":{"7":1}}],["attributes",{"2":{"7":3}}],["at",{"2":{"3":1,"12":1,"21":3,"23":1,"33":1,"35":1,"56":1}}],["a",{"2":{"3":3,"13":2,"15":1,"19":1,"23":4,"25":4,"26":1,"27":1,"33":5,"34":3,"35":2,"37":1,"38":2,"41":4,"42":1,"43":2,"44":1,"46":3,"48":2,"51":2,"54":1,"56":1,"57":2}}],["app",{"2":{"49":5}}],["apply",{"2":{"15":1}}],["apps",{"2":{"1":1,"21":2}}],["api",{"2":{"1":2,"10":2,"21":1,"23":1,"34":1,"35":1,"41":1,"49":1}}],["wrapped",{"2":{"37":1}}],["wrapper",{"2":{"19":1,"42":1,"43":2}}],["weight",{"2":{"39":2,"41":1,"45":1,"51":1,"53":1,"57":1}}],["we",{"2":{"35":1,"41":1,"46":1}}],["webkitexitfullscreen",{"2":{"43":2}}],["webkitrequestfullscreen",{"2":{"43":2}}],["web",{"2":{"1":1,"12":1,"21":1}}],["world",{"2":{"23":1}}],["works",{"2":{"48":1}}],["work",{"2":{"1":1,"46":1}}],["wkwebview",{"2":{"21":1}}],["window",{"2":{"47":1,"57":1}}],["wide",{"2":{"41":1}}],["width=device",{"2":{"49":1}}],["width=",{"2":{"47":1}}],["width",{"2":{"23":2,"41":5,"43":1,"47":1,"49":3,"51":1,"53":1,"57":1}}],["wikipedia",{"2":{"23":1}}],["will",{"2":{"19":1,"35":2}}],["withbase",{"2":{"43":3,"47":3,"51":3,"53":2}}],["with",{"2":{"15":1,"23":1,"25":1,"34":3,"35":2,"38":1,"43":1,"46":1,"54":4}}],["without",{"2":{"13":1,"43":1,"48":1}}],["watch",{"2":{"43":1}}],["warning",{"2":{"15":1,"25":1}}],["want",{"2":{"15":1,"23":1,"25":1,"32":1,"33":2,"46":1,"52":1}}],["what",{"2":{"39":1}}],["whether",{"2":{"34":1,"35":1}}],["whenever",{"2":{"26":2}}],["when",{"2":{"13":1,"15":1,"23":1,"25":1,"26":1,"27":1,"32":1,"33":1,"34":1,"35":1,"43":1,"46":3}}],["white",{"2":{"41":1,"43":1}}],["while",{"2":{"25":1}}],["which",{"2":{"6":1,"14":1,"24":1,"25":1,"34":1,"54":1}}],["why",{"2":{"23":1,"25":1,"46":1}}],["ts",{"2":{"41":1,"53":1}}],["turning",{"2":{"35":1}}],["turn",{"2":{"35":1,"52":1}}],["turned",{"2":{"26":1}}],["taking",{"2":{"57":1}}],["takes",{"2":{"41":1}}],["take",{"2":{"3":1,"25":1,"54":1}}],["target",{"2":{"33":1}}],["triedrearcamera",{"2":{"51":2}}],["triedfrontcamera",{"2":{"34":2,"51":2}}],["try",{"2":{"34":1}}],["transparent",{"2":{"33":1}}],["track=",{"2":{"41":1,"49":1}}],["trackfunctionoptions",{"2":{"41":3}}],["trackfunctionselected",{"2":{"41":3}}],["tracking",{"2":{"33":1}}],["track",{"0":{"33":1},"2":{"33":1,"41":1}}],["true",{"2":{"32":1,"35":1,"41":1,"45":3,"47":2,"51":2,"57":2}}],["troubleshooting",{"2":{"21":1}}],["title>",{"2":{"49":1}}],["title>simple",{"2":{"49":1}}],["tip",{"2":{"23":1}}],["timeout",{"2":{"47":2,"57":3}}],["times",{"2":{"23":2,"33":1,"46":2}}],["time",{"2":{"3":1,"12":1,"25":1,"33":1,"34":1,"41":1,"56":1,"57":1}}],["textalign",{"2":{"41":1}}],["text",{"2":{"39":1,"41":7,"45":1,"55":5,"57":1}}],["tell",{"2":{"35":2}}],["template>",{"2":{"7":2,"39":2,"41":2,"43":2,"45":2,"47":2,"51":2,"53":2,"55":2,"57":2}}],["template",{"2":{"7":1}}],["technically",{"2":{"7":1}}],["type=",{"2":{"7":1,"41":1}}],["type",{"2":{"3":1,"6":1,"12":1,"13":2,"14":1,"15":1,"23":1,"24":1,"25":1,"26":1,"27":1,"32":1,"33":1,"34":2,"35":1}}],["toggle",{"2":{"43":1,"53":1}}],["torchactive",{"2":{"53":6}}],["torchnotsupported",{"2":{"53":4}}],["torch=",{"2":{"35":1,"53":1}}],["torch",{"0":{"35":1,"52":1},"1":{"53":1},"2":{"35":6,"52":1,"53":3}}],["top",{"2":{"23":2,"43":1,"51":1,"53":1}}],["todo",{"2":{"4":1}}],["to",{"0":{"50":1},"1":{"51":1},"2":{"1":2,"3":2,"7":2,"13":1,"15":4,"21":1,"23":2,"25":5,"26":1,"27":1,"32":2,"33":9,"34":3,"35":1,"41":2,"42":1,"43":1,"44":2,"46":2,"48":1,"49":1,"50":1,"51":2,"52":1,"54":1,"57":1}}],["t",{"2":{"1":1,"13":2,"19":1,"23":1,"25":2,"33":1,"34":1,"35":1,"39":2,"41":1,"43":1,"46":2,"51":2}}],["thing",{"2":{"46":1}}],["this",{"2":{"1":2,"10":1,"15":2,"19":1,"21":1,"23":1,"25":1,"26":1,"27":1,"32":1,"33":7,"34":4,"35":2,"39":6,"41":3,"43":7,"45":5,"46":1,"47":6,"48":2,"49":2,"51":7,"54":1,"55":1,"57":14}}],["than",{"0":{"46":1},"1":{"47":1},"2":{"21":1,"41":1,"49":1}}],["that",{"2":{"15":1,"23":2,"33":2,"34":1,"35":1,"38":1,"39":2,"41":1,"42":1,"46":4,"48":1,"52":1}}],["though",{"2":{"3":1,"12":1,"46":1}}],["there",{"2":{"27":1,"44":1}}],["then",{"2":{"25":1}}],["they",{"2":{"25":2}}],["their",{"2":{"25":2,"50":1}}],["them",{"2":{"7":1,"25":1,"48":1}}],["the",{"2":{"1":2,"3":9,"6":1,"7":4,"10":2,"12":9,"14":1,"15":5,"19":1,"21":1,"23":11,"24":1,"25":7,"26":3,"27":1,"32":3,"33":6,"34":8,"35":13,"37":2,"38":1,"41":11,"42":3,"43":5,"44":5,"46":7,"48":1,"49":1,"50":1,"52":4,"54":2,"56":2,"57":1}}],["dx",{"2":{"41":1}}],["databar",{"2":{"41":2}}],["data",{"2":{"33":1,"39":1,"41":1,"43":1,"45":1,"47":1,"51":1,"55":1,"57":1}}],["danger",{"2":{"33":1}}],["due",{"2":{"13":1,"35":1}}],["dropdown",{"2":{"41":1,"54":1}}],["dropimagedecodeerror",{"2":{"13":1,"39":1}}],["dropimagefetcherror",{"2":{"13":1,"39":1}}],["dropped",{"2":{"13":4}}],["drop",{"0":{"38":1},"1":{"39":1},"2":{"12":2,"13":2,"14":2,"15":2,"19":2,"38":1,"39":7}}],["draggingover",{"2":{"15":5}}],["dragging",{"2":{"15":1}}],["dragover=",{"2":{"15":1,"39":1}}],["dragover",{"0":{"15":1},"2":{"15":2,"39":5}}],["drag",{"0":{"38":1},"1":{"39":1},"2":{"12":1,"13":2,"38":1}}],["doctype",{"2":{"49":1}}],["document",{"2":{"43":9}}],["docs",{"2":{"4":1,"16":1,"28":1,"29":1,"30":1}}],["don",{"2":{"19":1,"23":1,"25":1,"33":1,"46":1,"51":2}}],["dom",{"2":{"15":1}}],["domain",{"2":{"13":1}}],["do",{"2":{"15":1}}],["does",{"2":{"7":1}}],["doesn",{"2":{"1":1,"34":1,"35":1,"43":1,"46":1}}],["did",{"2":{"27":1}}],["dist",{"2":{"49":2}}],["distributed",{"2":{"37":1}}],["display",{"2":{"41":1,"47":1,"57":1}}],["displayed",{"2":{"23":1,"56":1}}],["disabled=",{"2":{"53":1}}],["disabled",{"0":{"7":1},"2":{"7":1}}],["div>",{"2":{"15":1,"39":3,"41":4,"43":1,"45":3,"47":3,"49":2,"51":2,"53":2,"55":2,"57":5}}],["div",{"2":{"15":1,"19":1,"39":1,"43":1,"45":1,"47":1,"49":2,"57":3}}],["different",{"2":{"13":1,"26":1,"41":1}}],["directly",{"2":{"3":1,"12":1,"54":1}}],["dialog",{"2":{"3":1,"43":1,"54":1,"55":1}}],["destroyed",{"2":{"45":4}}],["destroy",{"2":{"44":1}}],["desk",{"2":{"41":1}}],["desktop",{"2":{"12":1,"38":1,"43":1}}],["delay",{"2":{"44":1,"57":1}}],["demos",{"2":{"48":1}}],["demo",{"0":{"40":1},"1":{"41":1},"2":{"33":1,"48":1,"49":2}}],["deviceid",{"2":{"41":3,"53":3}}],["device",{"2":{"27":1,"33":1,"34":2,"35":1,"41":3,"49":1,"50":1,"51":2,"53":4}}],["devices",{"2":{"3":1,"35":3,"41":2,"52":1,"53":5}}],["decision",{"2":{"25":1}}],["decoded",{"2":{"13":1,"23":2,"39":1,"46":3}}],["decode",{"0":{"4":1,"16":1,"28":1,"38":1,"54":1},"1":{"39":1,"55":1},"2":{"39":1,"41":1,"47":1,"55":1,"57":1}}],["deny",{"2":{"25":1}}],["denied",{"2":{"25":1,"27":1}}],["defined",{"2":{"19":1}}],["define",{"2":{"7":1}}],["defines",{"2":{"6":1,"14":1,"24":1,"33":1}}],["defaultconstraintoptions",{"2":{"41":3}}],["default",{"0":{"19":1,"37":1},"2":{"6":1,"14":1,"24":1,"32":1,"33":1,"34":1,"35":1,"39":1,"41":3,"43":1,"45":1,"47":1,"51":1,"55":2,"57":1}}],["detection",{"2":{"23":1,"41":1}}],["detect=",{"2":{"13":1,"23":1,"39":1,"41":1,"47":1,"49":1,"55":1,"57":1}}],["detectedcode",{"2":{"41":7,"49":2}}],["detectedcodes",{"2":{"23":1,"39":3,"41":9,"47":2,"49":4,"55":3}}],["detected",{"2":{"6":1,"14":1,"23":1,"24":1,"33":2,"41":2,"52":1}}],["detectedbarcode",{"2":{"3":1,"12":1,"23":1}}],["detect",{"0":{"3":1,"12":1,"23":1},"2":{"3":2,"4":1,"12":2,"16":1,"23":3,"28":1,"46":1}}],["depends",{"2":{"21":1}}],["depend",{"2":{"1":1,"10":1}}],["icon",{"2":{"53":2}}],["ie",{"2":{"43":2}}],["id=",{"2":{"41":1,"49":1}}],["id",{"2":{"41":2}}],["idk",{"2":{"13":1}}],["implementation",{"2":{"43":1}}],["important",{"2":{"43":1}}],["import",{"2":{"39":1,"41":2,"43":2,"45":1,"47":2,"51":2,"53":3,"55":1,"57":1}}],["img",{"2":{"43":2,"47":1,"51":2,"53":2}}],["img>",{"2":{"13":1}}],["image",{"2":{"3":1,"7":2,"12":2,"13":1,"39":1,"54":1}}],["images",{"2":{"3":2,"12":3,"38":1,"39":2}}],["if=",{"2":{"39":1,"45":2,"51":2,"53":2,"57":3}}],["if",{"2":{"3":1,"12":1,"13":2,"15":1,"19":1,"23":1,"25":1,"27":6,"32":1,"33":1,"34":1,"35":1,"39":2,"41":7,"43":10,"49":7,"51":2,"53":2,"54":1}}],["ios",{"2":{"1":1,"21":7,"41":1}}],["inconsistent",{"2":{"52":1}}],["increased",{"2":{"33":1}}],["index",{"2":{"43":1}}],["indicator",{"0":{"44":1},"1":{"45":1},"2":{"25":2,"44":1,"45":2}}],["indicated",{"2":{"3":1,"12":1,"23":1}}],["invasive",{"2":{"43":1}}],["invoke",{"2":{"41":1}}],["inline",{"2":{"41":1}}],["infrared",{"2":{"41":1}}],["initial",{"2":{"49":1}}],["initialization",{"2":{"27":1}}],["init",{"0":{"29":1}}],["internally",{"2":{"41":1}}],["internal",{"2":{"23":1}}],["into",{"2":{"12":1}}],["insecurecontexterror",{"2":{"41":1,"49":1}}],["instance",{"2":{"33":1}}],["installed",{"2":{"27":1,"41":2,"49":1}}],["instead",{"2":{"4":1,"15":1,"16":1,"28":1,"29":1,"30":1}}],["inside",{"2":{"19":1}}],["input",{"2":{"3":1,"7":3,"32":1,"33":1,"34":1,"35":1,"41":1}}],["in",{"2":{"1":1,"12":1,"21":1,"23":2,"25":1,"27":2,"33":3,"37":1,"41":7,"42":1,"43":1,"46":2,"48":2,"49":3,"52":1,"53":1,"55":1,"57":1}}],["itf",{"2":{"41":1}}],["items",{"2":{"23":1}}],["its",{"2":{"19":1,"33":1}}],["it",{"2":{"1":1,"19":1,"23":1,"25":3,"33":1,"38":1,"46":1,"54":1,"56":1,"57":1}}],["isvalid",{"2":{"57":6}}],["isdraggingover",{"2":{"39":2}}],["issue",{"2":{"13":1}}],["is",{"2":{"1":2,"3":3,"7":1,"10":2,"12":2,"13":1,"15":2,"19":1,"21":2,"23":6,"25":2,"26":2,"27":3,"32":2,"33":4,"34":6,"35":5,"39":1,"41":4,"43":2,"44":1,"46":5,"49":3,"52":1,"54":2,"56":2,"57":2}}],["switchcamera",{"2":{"51":2}}],["switch",{"0":{"50":1},"1":{"51":1},"2":{"51":3}}],["switching",{"2":{"26":1}}],["svg",{"2":{"43":2,"47":1,"51":1,"53":2}}],["skipping",{"2":{"43":1}}],["sponsored",{"2":{"52":1}}],["space",{"2":{"41":1,"42":1}}],["span>",{"2":{"41":1}}],["span",{"2":{"41":1}}],["spec",{"2":{"23":1}}],["src=",{"2":{"43":1,"47":1,"49":2,"51":1,"53":1}}],["src",{"2":{"39":1,"41":1,"43":1,"45":1,"47":1,"51":1,"53":1,"55":1,"57":1}}],["side",{"2":{"54":1}}],["single",{"2":{"48":1}}],["size",{"2":{"45":1,"57":1}}],["simply",{"2":{"42":1}}],["simple",{"0":{"48":1},"1":{"49":1},"2":{"3":1}}],["silently",{"2":{"35":1}}],["should",{"2":{"33":1,"38":1,"41":1}}],["showscanconfirmation",{"2":{"47":4}}],["show=",{"2":{"47":1}}],["show",{"0":{"44":1},"1":{"45":1},"2":{"25":1,"32":1,"44":1}}],["success",{"2":{"57":3}}],["successful",{"2":{"32":1}}],["suitable",{"2":{"27":1,"41":1,"49":1}}],["sure",{"2":{"25":1}}],["supports",{"2":{"54":1}}],["supporting",{"2":{"3":1}}],["supported",{"2":{"1":1,"6":1,"10":1,"14":1,"21":1,"23":1,"24":1,"35":4,"41":2,"49":1,"53":1}}],["support",{"0":{"1":1,"10":1,"21":1},"2":{"21":1,"35":1,"52":1}}],["s",{"2":{"23":2,"25":1,"39":1,"46":2,"57":1}}],["sans",{"2":{"41":1}}],["safe",{"2":{"33":1}}],["safari",{"2":{"21":2,"43":2}}],["same",{"0":{"46":1},"1":{"47":1},"2":{"3":2,"12":2,"13":1,"23":1,"35":2,"46":2}}],["solid",{"2":{"49":1}}],["sorry",{"2":{"39":1}}],["source",{"0":{"39":1,"41":1,"43":1,"45":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1}}],["soon",{"2":{"25":1}}],["so",{"2":{"19":1,"32":1,"33":1,"34":1,"42":1,"43":2,"54":1,"56":1,"57":1}}],["sometimes",{"2":{"41":1}}],["something",{"2":{"15":1}}],["some",{"2":{"15":1,"32":1,"39":1,"44":1,"57":1}}],["slots",{"0":{"8":1,"18":1,"36":1},"1":{"19":1,"37":1},"2":{"8":1}}],["step",{"2":{"48":1}}],["style=",{"2":{"49":2}}],["style",{"2":{"41":1,"43":1,"45":1,"47":1,"51":1,"53":1,"57":1}}],["style>",{"2":{"39":2,"41":1,"43":1,"45":1,"47":1,"51":1,"53":1,"57":1}}],["styling",{"2":{"15":1}}],["store",{"2":{"33":1}}],["stuff",{"2":{"33":1}}],["stroketext",{"2":{"41":1}}],["strokerect",{"2":{"41":1,"49":1}}],["stroke",{"2":{"41":1}}],["strokestyle",{"2":{"41":3,"49":1}}],["stringify",{"2":{"39":1,"41":1,"47":1,"49":1,"55":1}}],["streamapinotsupportederror",{"2":{"27":1,"41":1,"49":1}}],["streaming",{"2":{"25":1}}],["stream>",{"2":{"23":1,"24":1,"25":1,"27":1,"34":1,"35":1,"37":2,"43":1,"45":1,"47":1,"49":1,"51":1,"53":1,"57":1}}],["stream",{"2":{"21":1,"23":2,"24":1,"25":2,"27":1,"33":1,"34":3,"35":2,"37":2,"41":2,"43":2,"44":1,"45":1,"47":1,"49":2,"51":1,"53":1,"56":1,"57":1}}],["structure",{"2":{"3":1,"12":1,"23":1}}],["still",{"2":{"3":1,"12":1,"23":1,"56":1}}],["standalone",{"2":{"38":1}}],["starting",{"2":{"52":1}}],["startfrontcamera",{"2":{"34":1}}],["start",{"2":{"25":1}}],["startswith",{"2":{"57":1}}],["starts",{"2":{"25":1}}],["started",{"2":{"3":1,"26":1}}],["stackoverflow",{"2":{"1":1}}],["scale=1",{"2":{"49":1}}],["scans",{"2":{"32":1}}],["scanning",{"2":{"25":1,"33":1,"41":1,"46":1,"54":1}}],["scanned",{"2":{"3":1,"12":1,"23":1,"38":1,"56":1}}],["scan",{"0":{"46":1},"1":{"47":1},"2":{"23":1,"46":1,"47":2}}],["scoped>",{"2":{"41":1,"43":1,"45":1,"47":1,"51":1,"53":1,"57":1}}],["script",{"2":{"41":1,"49":2,"53":1}}],["script>",{"2":{"39":2,"41":1,"43":2,"45":2,"47":2,"49":4,"51":2,"53":1,"55":2,"57":2}}],["screen",{"2":{"1":1,"21":1,"42":1}}],["secure",{"2":{"41":2,"49":2}}],["second",{"2":{"23":1,"25":1,"33":2,"46":1}}],["serif`",{"2":{"41":1}}],["served",{"2":{"27":1}}],["several",{"2":{"33":1}}],["settimeout",{"2":{"47":1,"57":1}}],["setting",{"2":{"32":1}}],["setup",{"2":{"41":1,"49":1,"53":1}}],["set",{"2":{"7":1}}],["select>",{"2":{"41":2,"53":1,"55":1}}],["select",{"2":{"3":1,"41":6,"53":1,"55":1}}],["selectedbarcodeformats",{"2":{"41":2}}],["selectedconstraints",{"2":{"41":3}}],["selected",{"2":{"3":1,"53":6,"55":3}}],["seem",{"2":{"51":2}}],["seems",{"2":{"27":1}}],["see",{"2":{"1":2,"10":1,"21":6,"48":1}}],["new",{"2":{"23":1,"34":1,"47":1,"57":1}}],["newest",{"2":{"1":1,"10":1}}],["need",{"2":{"15":1,"25":1,"41":1,"48":1,"49":1}}],["null",{"2":{"7":2,"39":3,"43":1,"53":3,"55":1,"57":1}}],["navigator",{"2":{"41":1,"53":1}}],["name",{"2":{"13":2,"27":6,"34":1,"39":2,"41":8,"49":8,"51":1}}],["name=",{"2":{"7":1,"49":1}}],["native",{"2":{"1":1,"10":1,"15":2,"21":2}}],["norearcamera",{"2":{"51":3}}],["nofrontcamera",{"2":{"51":3}}],["nowrap",{"2":{"41":1,"47":1,"57":1}}],["none",{"2":{"27":1}}],["no",{"2":{"3":1,"8":1,"12":1,"17":1,"21":1,"27":1,"34":1,"41":1,"49":1}}],["noticed",{"2":{"46":1}}],["nothing",{"2":{"41":1,"54":1}}],["note",{"2":{"33":1,"41":1,"43":1,"52":1}}],["notreadableerror",{"2":{"27":1,"41":1,"49":1}}],["notsupportederror",{"2":{"27":1,"41":1,"49":1}}],["notfounderror",{"2":{"27":1,"41":1,"49":1}}],["notallowederror",{"2":{"27":1,"41":1,"49":1}}],["not",{"2":{"1":1,"7":1,"10":1,"13":1,"15":1,"21":1,"27":1,"33":1,"35":2,"39":1,"41":3,"42":2,"49":2,"53":1,"54":1,"57":1}}]],"serializationVersion":2}';export{e as default}; diff --git a/pr-preview/pr-442/assets/chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js b/pr-preview/pr-442/assets/chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js deleted file mode 100644 index 7d4d3277..00000000 --- a/pr-preview/pr-442/assets/chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js +++ /dev/null @@ -1 +0,0 @@ -import{d as X,h as i,y as u,j as Y,A as Z,g as O,o as ee,c as te,k as g,O as ae,a4 as oe,a7 as ne,r as se}from"./framework.Bgy0wF8y.js";import{s as p,b as n,c as ie,d as re,k as ce}from"./camera.mAncAYbH.js";const ue=X({__name:"QrcodeStream",props:{constraints:{type:Object,default(){return{facingMode:"environment"}}},formats:{type:Array,default:()=>["qr_code"]},paused:{type:Boolean,default:!1},torch:{type:Boolean,default:!1},track:{type:Function}},emits:["detect","camera-on","camera-off","error"],setup(N,{emit:j}){const o=N,h=j,_=i(o.constraints),w=i(o.formats);u(()=>o.constraints,(t,e)=>{JSON.stringify(t)!==JSON.stringify(e)&&(_.value=t)},{deep:!0}),u(()=>o.formats,(t,e)=>{JSON.stringify(t)!==JSON.stringify(e)&&(w.value=t)},{deep:!0});const f=i(),v=i(),l=i(),m=i(!1),y=i(!1);Y(()=>{y.value=!0}),Z(()=>{p()});const M=O(()=>({torch:o.torch,constraints:_.value,shouldStream:y.value&&!o.paused}));u(M,async t=>{const e=l.value;n(e!==void 0,"cameraSettings watcher should never be triggered when component is not mounted. Thus video element should always be defined.");const a=f.value;n(a!==void 0,"cameraSettings watcher should never be triggered when component is not mounted. Thus canvas should always be defined.");const d=a.getContext("2d");if(n(d!==null,"if cavnas is defined, canvas 2d context should also be non-null"),t.shouldStream){p(),m.value=!1;try{const r=await ie(e,t);y.value?(m.value=!0,h("camera-on",r)):await p()}catch(r){h("error",r)}}else a.width=e.videoWidth,a.height=e.videoHeight,d.drawImage(e,0,0,e.videoWidth,e.videoHeight),p(),m.value=!1,h("camera-off")},{deep:!0}),u(w,t=>{y.value&&re(t)});const S=O(()=>M.value.shouldStream&&m.value);u(S,t=>{if(t){n(f.value!==void 0,"shouldScan watcher should only be triggered when component is mounted. Thus pause frame canvas is defined"),x(f.value),n(v.value!==void 0,"shouldScan watcher should only be triggered when component is mounted. Thus tracking canvas is defined"),x(v.value);const e=()=>o.track===void 0?500:40;n(l.value!==void 0,"shouldScan watcher should only be triggered when component is mounted. Thus video element is defined"),ce(l.value,{detectHandler:a=>h("detect",a),formats:w.value,locateHandler:J,minDelay:e()})}});const x=t=>{const e=t.getContext("2d");n(e!==null,"canvas 2d context should always be non-null"),e.clearRect(0,0,t.width,t.height)},J=t=>{const e=v.value;n(e!==void 0,"onLocate handler should only be called when component is mounted. Thus tracking canvas is always defined.");const a=l.value;if(n(a!==void 0,"onLocate handler should only be called when component is mounted. Thus video element is always defined."),t.length===0||o.track===void 0)x(e);else{const d=a.offsetWidth,r=a.offsetHeight,k=a.videoWidth,R=a.videoHeight,B=Math.max(d/k,r/R),T=k*B,C=R*B,D=T/k,E=C/R,F=(d-T)/2,z=(r-C)/2,H=({x:c,y:s})=>({x:Math.floor(c*D),y:Math.floor(s*E)}),L=({x:c,y:s})=>({x:Math.floor(c+F),y:Math.floor(s+z)}),I=t.map(c=>{const{boundingBox:s,cornerPoints:Q}=c,{x:U,y:V}=L(H({x:s.x,y:s.y})),{x:$,y:G}=H({x:s.width,y:s.height});return{...c,cornerPoints:Q.map(K=>L(H(K))),boundingBox:DOMRectReadOnly.fromRect({x:U,y:V,width:$,height:G})}});e.width=a.offsetWidth,e.height=a.offsetHeight;const P=e.getContext("2d");o.track(I,P)}},q={width:"100%",height:"100%",position:"relative","z-index":"0"},W={width:"100%",height:"100%",position:"absolute",top:"0",left:"0"},b={width:"100%",height:"100%","object-fit":"cover"},A=O(()=>S.value?b:{...b,visibility:"hidden",position:"absolute"});return(t,e)=>(ee(),te("div",{style:q},[g("video",{ref_key:"videoRef",ref:l,style:ae(A.value),autoplay:"",muted:"",playsinline:""},null,4),oe(g("canvas",{id:"qrcode-stream-pause-frame",ref_key:"pauseFrameRef",ref:f,style:b},null,512),[[ne,!S.value]]),g("canvas",{id:"qrcode-stream-tracking-layer",ref_key:"trackingLayerRef",ref:v,style:W},null,512),g("div",{style:W},[se(t.$slots,"default")])]))}});export{ue as _}; diff --git a/pr-preview/pr-442/assets/chunks/VPLocalSearchBox.BQmUvU87.js b/pr-preview/pr-442/assets/chunks/VPLocalSearchBox.BQmUvU87.js deleted file mode 100644 index 68769302..00000000 --- a/pr-preview/pr-442/assets/chunks/VPLocalSearchBox.BQmUvU87.js +++ /dev/null @@ -1,13 +0,0 @@ -import{Y as pt,h as oe,y as Ve,ao as kt,ap as Nt,d as It,G as xe,aq as et,g as Fe,ar as Dt,as as Ot,z as _t,at as Rt,j as Oe,P as he,W as Ee,au as Mt,U as Lt,V as zt,av as Pt,Z as Bt,v as Vt,aw as $t,o as ee,b as Wt,k as E,a2 as jt,m as U,a4 as Kt,ax as Jt,ay as Ut,c as re,n as tt,e as Se,E as rt,F as at,a as ve,t as pe,az as Ht,p as Gt,q as qt,a9 as nt,aA as Qt,ad as Yt,aj as Zt,_ as Xt}from"./framework.Bgy0wF8y.js";import{u as er,c as tr,L as rr}from"./theme.DG-lrbgZ.js";const ar={root:()=>pt(()=>import("./@localSearchIndexroot.Ba0k1oZn.js"),__vite__mapDeps([]))};/*! -* tabbable 6.2.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var mt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Te=mt.join(","),yt=typeof Element>"u",ue=yt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ke=!yt&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Ne=function o(e,t){var r;t===void 0&&(t=!0);var n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=n===""||n==="true",i=a||t&&e&&o(e.parentNode);return i},nr=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},gt=function(e,t,r){if(Ne(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Te));return t&&ue.call(e,Te)&&n.unshift(e),n=n.filter(r),n},bt=function o(e,t,r){for(var n=[],a=Array.from(e);a.length;){var i=a.shift();if(!Ne(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,l=o(u,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var d=ue.call(i,Te);d&&r.filter(i)&&(t||!e.includes(i))&&n.push(i);var h=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),v=!Ne(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(h&&v){var y=o(h===!0?i.children:h.children,!0,r);r.flatten?n.push.apply(n,y):n.push({scopeParent:i,candidates:y})}else a.unshift.apply(a,i.children)}}return n},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},se=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||nr(e))&&!wt(e)?0:e.tabIndex},ir=function(e,t){var r=se(e);return r<0&&t&&!wt(e)?0:r},or=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){return e.tagName==="INPUT"},sr=function(e){return xt(e)&&e.type==="hidden"},ur=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},lr=function(e,t){for(var r=0;rsummary:first-of-type"),i=a?e.parentElement:e;if(ue.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var u=e.parentElement,l=ke(e);if(u&&!u.shadowRoot&&n(u)===!0)return it(e);e.assignedSlot?e=e.assignedSlot:!u&&l!==e.ownerDocument?e=l.host:e=u}e=s}if(hr(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return it(e);return!1},pr=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r=0)},yr=function o(e){var t=[],r=[];return e.forEach(function(n,a){var i=!!n.scopeParent,s=i?n.scopeParent:n,u=ir(s,i),l=i?o(n.candidates):s;u===0?i?t.push.apply(t,l):t.push(s):r.push({documentOrder:a,tabIndex:u,item:n,isScope:i,content:l})}),r.sort(or).reduce(function(n,a){return a.isScope?n.push.apply(n,a.content):n.push(a.content),n},[]).concat(t)},gr=function(e,t){t=t||{};var r;return t.getShadowRoot?r=bt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:mr}):r=gt(e,t.includeContainer,$e.bind(null,t)),yr(r)},br=function(e,t){t=t||{};var r;return t.getShadowRoot?r=bt([e],t.includeContainer,{filter:Ie.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=gt(e,t.includeContainer,Ie.bind(null,t)),r},le=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ue.call(e,Te)===!1?!1:$e(t,e)},wr=mt.concat("iframe").join(","),_e=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ue.call(e,wr)===!1?!1:Ie(t,e)};/*! -* focus-trap 7.5.4 -* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/function ot(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function st(o){for(var e=1;e0){var r=e[e.length-1];r!==t&&r.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},Sr=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ar=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ge=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Cr=function(e){return ge(e)&&!e.shiftKey},Tr=function(e){return ge(e)&&e.shiftKey},lt=function(e){return setTimeout(e,0)},ct=function(e,t){var r=-1;return e.every(function(n,a){return t(n)?(r=a,!1):!0}),r},me=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?p-1:0),I=1;I=0)c=r.activeElement;else{var f=i.tabbableGroups[0],p=f&&f.firstTabbableNode;c=p||d("fallbackFocus")}if(!c)throw new Error("Your focus-trap needs to have at least one focusable element");return c},v=function(){if(i.containerGroups=i.containers.map(function(c){var f=gr(c,a.tabbableOptions),p=br(c,a.tabbableOptions),N=f.length>0?f[0]:void 0,I=f.length>0?f[f.length-1]:void 0,M=p.find(function(m){return le(m)}),z=p.slice().reverse().find(function(m){return le(m)}),P=!!f.find(function(m){return se(m)>0});return{container:c,tabbableNodes:f,focusableNodes:p,posTabIndexesFound:P,firstTabbableNode:N,lastTabbableNode:I,firstDomTabbableNode:M,lastDomTabbableNode:z,nextTabbableNode:function(x){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,j=f.indexOf(x);return j<0?$?p.slice(p.indexOf(x)+1).find(function(G){return le(G)}):p.slice(0,p.indexOf(x)).reverse().find(function(G){return le(G)}):f[j+($?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(c){return c.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(c){return c.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},y=function w(c){var f=c.activeElement;if(f)return f.shadowRoot&&f.shadowRoot.activeElement!==null?w(f.shadowRoot):f},b=function w(c){if(c!==!1&&c!==y(document)){if(!c||!c.focus){w(h());return}c.focus({preventScroll:!!a.preventScroll}),i.mostRecentlyFocusedNode=c,Sr(c)&&c.select()}},S=function(c){var f=d("setReturnFocus",c);return f||(f===!1?!1:c)},g=function(c){var f=c.target,p=c.event,N=c.isBackward,I=N===void 0?!1:N;f=f||Ae(p),v();var M=null;if(i.tabbableGroups.length>0){var z=l(f,p),P=z>=0?i.containerGroups[z]:void 0;if(z<0)I?M=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:M=i.tabbableGroups[0].firstTabbableNode;else if(I){var m=ct(i.tabbableGroups,function(B){var J=B.firstTabbableNode;return f===J});if(m<0&&(P.container===f||_e(f,a.tabbableOptions)&&!le(f,a.tabbableOptions)&&!P.nextTabbableNode(f,!1))&&(m=z),m>=0){var x=m===0?i.tabbableGroups.length-1:m-1,$=i.tabbableGroups[x];M=se(f)>=0?$.lastTabbableNode:$.lastDomTabbableNode}else ge(p)||(M=P.nextTabbableNode(f,!1))}else{var j=ct(i.tabbableGroups,function(B){var J=B.lastTabbableNode;return f===J});if(j<0&&(P.container===f||_e(f,a.tabbableOptions)&&!le(f,a.tabbableOptions)&&!P.nextTabbableNode(f))&&(j=z),j>=0){var G=j===i.tabbableGroups.length-1?0:j+1,q=i.tabbableGroups[G];M=se(f)>=0?q.firstTabbableNode:q.firstDomTabbableNode}else ge(p)||(M=P.nextTabbableNode(f))}}else M=d("fallbackFocus");return M},A=function(c){var f=Ae(c);if(!(l(f,c)>=0)){if(me(a.clickOutsideDeactivates,c)){s.deactivate({returnFocus:a.returnFocusOnDeactivate});return}me(a.allowOutsideClick,c)||c.preventDefault()}},T=function(c){var f=Ae(c),p=l(f,c)>=0;if(p||f instanceof Document)p&&(i.mostRecentlyFocusedNode=f);else{c.stopImmediatePropagation();var N,I=!0;if(i.mostRecentlyFocusedNode)if(se(i.mostRecentlyFocusedNode)>0){var M=l(i.mostRecentlyFocusedNode),z=i.containerGroups[M].tabbableNodes;if(z.length>0){var P=z.findIndex(function(m){return m===i.mostRecentlyFocusedNode});P>=0&&(a.isKeyForward(i.recentNavEvent)?P+1=0&&(N=z[P-1],I=!1))}}else i.containerGroups.some(function(m){return m.tabbableNodes.some(function(x){return se(x)>0})})||(I=!1);else I=!1;I&&(N=g({target:i.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(i.recentNavEvent)})),b(N||i.mostRecentlyFocusedNode||h())}i.recentNavEvent=void 0},F=function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=c;var p=g({event:c,isBackward:f});p&&(ge(c)&&c.preventDefault(),b(p))},L=function(c){if(Ar(c)&&me(a.escapeDeactivates,c)!==!1){c.preventDefault(),s.deactivate();return}(a.isKeyForward(c)||a.isKeyBackward(c))&&F(c,a.isKeyBackward(c))},R=function(c){var f=Ae(c);l(f,c)>=0||me(a.clickOutsideDeactivates,c)||me(a.allowOutsideClick,c)||(c.preventDefault(),c.stopImmediatePropagation())},V=function(){if(i.active)return ut.activateTrap(n,s),i.delayInitialFocusTimer=a.delayInitialFocus?lt(function(){b(h())}):b(h()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",A,{capture:!0,passive:!1}),r.addEventListener("touchstart",A,{capture:!0,passive:!1}),r.addEventListener("click",R,{capture:!0,passive:!1}),r.addEventListener("keydown",L,{capture:!0,passive:!1}),s},k=function(){if(i.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",A,!0),r.removeEventListener("touchstart",A,!0),r.removeEventListener("click",R,!0),r.removeEventListener("keydown",L,!0),s},_=function(c){var f=c.some(function(p){var N=Array.from(p.removedNodes);return N.some(function(I){return I===i.mostRecentlyFocusedNode})});f&&b(h())},C=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(_):void 0,O=function(){C&&(C.disconnect(),i.active&&!i.paused&&i.containers.map(function(c){C.observe(c,{subtree:!0,childList:!0})}))};return s={get active(){return i.active},get paused(){return i.paused},activate:function(c){if(i.active)return this;var f=u(c,"onActivate"),p=u(c,"onPostActivate"),N=u(c,"checkCanFocusTrap");N||v(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,f==null||f();var I=function(){N&&v(),V(),O(),p==null||p()};return N?(N(i.containers.concat()).then(I,I),this):(I(),this)},deactivate:function(c){if(!i.active)return this;var f=st({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},c);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,k(),i.active=!1,i.paused=!1,O(),ut.deactivateTrap(n,s);var p=u(f,"onDeactivate"),N=u(f,"onPostDeactivate"),I=u(f,"checkCanReturnFocus"),M=u(f,"returnFocus","returnFocusOnDeactivate");p==null||p();var z=function(){lt(function(){M&&b(S(i.nodeFocusedBeforeActivation)),N==null||N()})};return M&&I?(I(S(i.nodeFocusedBeforeActivation)).then(z,z),this):(z(),this)},pause:function(c){if(i.paused||!i.active)return this;var f=u(c,"onPause"),p=u(c,"onPostPause");return i.paused=!0,f==null||f(),k(),O(),p==null||p(),this},unpause:function(c){if(!i.paused||!i.active)return this;var f=u(c,"onUnpause"),p=u(c,"onPostUnpause");return i.paused=!1,f==null||f(),v(),V(),O(),p==null||p(),this},updateContainerElements:function(c){var f=[].concat(c).filter(Boolean);return i.containers=f.map(function(p){return typeof p=="string"?r.querySelector(p):p}),i.active&&v(),O(),this}},s.updateContainerElements(e),s};function Ir(o,e={}){let t;const{immediate:r,...n}=e,a=oe(!1),i=oe(!1),s=h=>t&&t.activate(h),u=h=>t&&t.deactivate(h),l=()=>{t&&(t.pause(),i.value=!0)},d=()=>{t&&(t.unpause(),i.value=!1)};return Ve(()=>kt(o),h=>{h&&(t=Nr(h,{...n,onActivate(){a.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){a.value=!1,e.onDeactivate&&e.onDeactivate()}}),r&&s())},{flush:"post"}),Nt(()=>u()),{hasFocus:a,isPaused:i,activate:s,deactivate:u,pause:l,unpause:d}}class fe{constructor(e,t=!0,r=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=r,this.iframesTimeout=n}static matches(e,t){const r=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return r.every(i=>n.call(e,i)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(r=>{const n=t.filter(a=>a.contains(r)).length>0;t.indexOf(r)===-1&&!n&&t.push(r)}),t}getIframeContents(e,t,r=()=>{}){let n;try{const a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{r()}n&&t(n)}isIframeBlank(e){const t="about:blank",r=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&r!==t&&r}observeIframeLoad(e,t,r){let n=!1,a=null;const i=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,r))}catch{r()}}};e.addEventListener("load",i),a=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,r){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,r):this.getIframeContents(e,t,r):this.observeIframeLoad(e,t,r)}catch{r()}}waitForIframes(e,t){let r=0;this.forEachIframe(e,()=>!0,n=>{r++,this.waitForIframes(n.querySelector("html"),()=>{--r||t()})},n=>{n||t()})}forEachIframe(e,t,r,n=()=>{}){let a=e.querySelectorAll("iframe"),i=a.length,s=0;a=Array.prototype.slice.call(a);const u=()=>{--i<=0&&n(s)};i||u(),a.forEach(l=>{fe.matches(l,this.exclude)?u():this.onIframeReady(l,d=>{t(l)&&(s++,r(d)),u()},u)})}createIterator(e,t,r){return document.createNodeIterator(e,t,r,!1)}createInstanceOnIframe(e){return new fe(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,r){const n=e.compareDocumentPosition(r),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){const i=t.compareDocumentPosition(r),s=Node.DOCUMENT_POSITION_FOLLOWING;if(i&s)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let r;return t===null?r=e.nextNode():r=e.nextNode()&&e.nextNode(),{prevNode:t,node:r}}checkIframeFilter(e,t,r,n){let a=!1,i=!1;return n.forEach((s,u)=>{s.val===r&&(a=u,i=s.handled)}),this.compareNodeIframe(e,t,r)?(a===!1&&!i?n.push({val:r,handled:!0}):a!==!1&&!i&&(n[a].handled=!0),!0):(a===!1&&n.push({val:r,handled:!1}),!1)}handleOpenIframes(e,t,r,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,r,n)})})}iterateThroughNodes(e,t,r,n,a){const i=this.createIterator(t,e,n);let s=[],u=[],l,d,h=()=>({prevNode:d,node:l}=this.getIteratorNode(i),l);for(;h();)this.iframes&&this.forEachIframe(t,v=>this.checkIframeFilter(l,d,v,s),v=>{this.createInstanceOnIframe(v).forEachNode(e,y=>u.push(y),n)}),u.push(l);u.forEach(v=>{r(v)}),this.iframes&&this.handleOpenIframes(s,e,r,n),a()}forEachNode(e,t,r,n=()=>{}){const a=this.getContexts();let i=a.length;i||n(),a.forEach(s=>{const u=()=>{this.iterateThroughNodes(e,s,t,r,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(s,u):u()})}}let Dr=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new fe(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const r=this.opt.log;this.opt.debug&&typeof r=="object"&&typeof r[t]=="function"&&r[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,r=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){const i=t[a],s=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);s!==""&&u!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(s)}|${this.escapeStr(u)})`,`gm${r}`),n+`(${this.processSynomyms(s)}|${this.processSynomyms(u)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,r,n)=>{let a=n.charAt(r+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const r=this.opt.ignorePunctuation;return Array.isArray(r)&&r.length&&t.push(this.escapeStr(r.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",r=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(a=>{r.every(i=>{if(i.indexOf(a)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let r=this.opt.accuracy,n=typeof r=="string"?r:r.value,a=typeof r=="string"?[]:r.limiters,i="";switch(a.forEach(s=>{i+=`|${this.escapeStr(s)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(r=>{this.opt.separateWordSearch?r.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):r.trim()&&t.indexOf(r)===-1&&t.push(r)}),{keywords:t.sort((r,n)=>n.length-r.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let r=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:i,valid:s}=this.callNoMatchOnInvalidRanges(n,r);s&&(n.start=a,n.length=i-a,t.push(n),r=i)}),t}callNoMatchOnInvalidRanges(e,t){let r,n,a=!1;return e&&typeof e.start<"u"?(r=parseInt(e.start,10),n=r+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-r>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:r,end:n,valid:a}}checkWhitespaceRanges(e,t,r){let n,a=!0,i=r.length,s=t-i,u=parseInt(e.start,10)-s;return u=u>i?i:u,n=u+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),u<0||n-u<0||u>i||n>i?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):r.substring(u,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:u,end:n,valid:a}}getTextNodes(e){let t="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{r.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:r})})}matchesExclude(e){return fe.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,r){const n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),i=a.splitText(r-t);let s=document.createElement(n);return s.setAttribute("data-markjs","true"),this.opt.className&&s.setAttribute("class",this.opt.className),s.textContent=a.textContent,a.parentNode.replaceChild(s,a),i}wrapRangeInMappedTextNode(e,t,r,n,a){e.nodes.every((i,s)=>{const u=e.nodes[s+1];if(typeof u>"u"||u.start>t){if(!n(i.node))return!1;const l=t-i.start,d=(r>i.end?i.end:r)-i.start,h=e.value.substr(0,i.start),v=e.value.substr(d+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,d),e.value=h+v,e.nodes.forEach((y,b)=>{b>=s&&(e.nodes[b].start>0&&b!==s&&(e.nodes[b].start-=d),e.nodes[b].end-=d)}),r-=d,a(i.node.previousSibling,i.start),r>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,r,n,a){const i=t===0?0:t+1;this.getTextNodes(s=>{s.nodes.forEach(u=>{u=u.node;let l;for(;(l=e.exec(u.textContent))!==null&&l[i]!=="";){if(!r(l[i],u))continue;let d=l.index;if(i!==0)for(let h=1;h{let u;for(;(u=e.exec(s.value))!==null&&u[i]!=="";){let l=u.index;if(i!==0)for(let h=1;hr(u[i],h),(h,v)=>{e.lastIndex=v,n(h)})}a()})}wrapRangeFromIndex(e,t,r,n){this.getTextNodes(a=>{const i=a.value.length;e.forEach((s,u)=>{let{start:l,end:d,valid:h}=this.checkWhitespaceRanges(s,i,a.value);h&&this.wrapRangeInMappedTextNode(a,l,d,v=>t(v,s,a.value.substring(l,d),u),v=>{r(v,s)})}),n()})}unwrapMatches(e){const t=e.parentNode;let r=document.createDocumentFragment();for(;e.firstChild;)r.appendChild(e.removeChild(e.firstChild));t.replaceChild(r,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let r=0,n="wrapMatches";const a=i=>{r++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,s)=>this.opt.filter(s,i,r),a,()=>{r===0&&this.opt.noMatch(e),this.opt.done(r)})}mark(e,t){this.opt=t;let r=0,n="wrapMatches";const{keywords:a,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),s=this.opt.caseSensitive?"":"i",u=l=>{let d=new RegExp(this.createRegExp(l),`gm${s}`),h=0;this.log(`Searching with expression "${d}"`),this[n](d,1,(v,y)=>this.opt.filter(y,l,r,h),v=>{h++,r++,this.opt.each(v)},()=>{h===0&&this.opt.noMatch(l),a[i-1]===l?this.opt.done(r):u(a[a.indexOf(l)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(r):u(a[0])}markRanges(e,t){this.opt=t;let r=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,i,s,u)=>this.opt.filter(a,i,s,u),(a,i)=>{r++,this.opt.each(a,i)},()=>{this.opt.done(r)})):this.opt.done(r)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,r=>{this.unwrapMatches(r)},r=>{const n=fe.matches(r,t),a=this.matchesExclude(r);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Or(o){const e=new Dr(o);return this.mark=(t,r)=>(e.mark(t,r),this),this.markRegExp=(t,r)=>(e.markRegExp(t,r),this),this.markRanges=(t,r)=>(e.markRanges(t,r),this),this.unmark=t=>(e.unmark(t),this),this}var W=function(){return W=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=o.length&&(o=void 0),{value:o&&o[r++],done:!o}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(o,e){var t=typeof Symbol=="function"&&o[Symbol.iterator];if(!t)return o;var r=t.call(o),n,a=[],i;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(i)throw i.error}}return a}var Mr="ENTRIES",Ft="KEYS",Et="VALUES",H="",Re=function(){function o(e,t){var r=e._tree,n=Array.from(r.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:r,keys:n}]:[]}return o.prototype.next=function(){var e=this.dive();return this.backtrack(),e},o.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var e=ce(this._path),t=e.node,r=e.keys;if(ce(r)===H)return{done:!1,value:this.result()};var n=t.get(ce(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()},o.prototype.backtrack=function(){if(this._path.length!==0){var e=ce(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}},o.prototype.key=function(){return this.set._prefix+this._path.map(function(e){var t=e.keys;return ce(t)}).filter(function(e){return e!==H}).join("")},o.prototype.value=function(){return ce(this._path).node.get(H)},o.prototype.result=function(){switch(this._type){case Et:return this.value();case Ft:return this.key();default:return[this.key(),this.value()]}},o.prototype[Symbol.iterator]=function(){return this},o}(),ce=function(o){return o[o.length-1]},Lr=function(o,e,t){var r=new Map;if(e===void 0)return r;for(var n=e.length+1,a=n+t,i=new Uint8Array(a*n).fill(t+1),s=0;st)continue e}St(o.get(y),e,t,r,n,S,i,s+y)}}}catch(f){u={error:f}}finally{try{v&&!v.done&&(l=h.return)&&l.call(h)}finally{if(u)throw u.error}}},Me=function(){function o(e,t){e===void 0&&(e=new Map),t===void 0&&(t=""),this._size=void 0,this._tree=e,this._prefix=t}return o.prototype.atPrefix=function(e){var t,r;if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");var n=K(De(this._tree,e.slice(this._prefix.length)),2),a=n[0],i=n[1];if(a===void 0){var s=K(Je(i),2),u=s[0],l=s[1];try{for(var d=D(u.keys()),h=d.next();!h.done;h=d.next()){var v=h.value;if(v!==H&&v.startsWith(l)){var y=new Map;return y.set(v.slice(l.length),u.get(v)),new o(y,e)}}}catch(b){t={error:b}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}}return new o(a,e)},o.prototype.clear=function(){this._size=void 0,this._tree.clear()},o.prototype.delete=function(e){return this._size=void 0,zr(this._tree,e)},o.prototype.entries=function(){return new Re(this,Mr)},o.prototype.forEach=function(e){var t,r;try{for(var n=D(this),a=n.next();!a.done;a=n.next()){var i=K(a.value,2),s=i[0],u=i[1];e(s,u,this)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},o.prototype.fuzzyGet=function(e,t){return Lr(this._tree,e,t)},o.prototype.get=function(e){var t=We(this._tree,e);return t!==void 0?t.get(H):void 0},o.prototype.has=function(e){var t=We(this._tree,e);return t!==void 0&&t.has(H)},o.prototype.keys=function(){return new Re(this,Ft)},o.prototype.set=function(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;var r=Le(this._tree,e);return r.set(H,t),this},Object.defineProperty(o.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var e=this.entries();!e.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),o.prototype.update=function(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;var r=Le(this._tree,e);return r.set(H,t(r.get(H))),this},o.prototype.fetch=function(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;var r=Le(this._tree,e),n=r.get(H);return n===void 0&&r.set(H,n=t()),n},o.prototype.values=function(){return new Re(this,Et)},o.prototype[Symbol.iterator]=function(){return this.entries()},o.from=function(e){var t,r,n=new o;try{for(var a=D(e),i=a.next();!i.done;i=a.next()){var s=K(i.value,2),u=s[0],l=s[1];n.set(u,l)}}catch(d){t={error:d}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n},o.fromObject=function(e){return o.from(Object.entries(e))},o}(),De=function(o,e,t){var r,n;if(t===void 0&&(t=[]),e.length===0||o==null)return[o,t];try{for(var a=D(o.keys()),i=a.next();!i.done;i=a.next()){var s=i.value;if(s!==H&&e.startsWith(s))return t.push([o,s]),De(o.get(s),e.slice(s.length),t)}}catch(u){r={error:u}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return t.push([o,e]),De(void 0,"",t)},We=function(o,e){var t,r;if(e.length===0||o==null)return o;try{for(var n=D(o.keys()),a=n.next();!a.done;a=n.next()){var i=a.value;if(i!==H&&e.startsWith(i))return We(o.get(i),e.slice(i.length))}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},Le=function(o,e){var t,r,n=e.length;e:for(var a=0;o&&a0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Me,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},o.prototype.discard=function(e){var t=this,r=this._idToShortId.get(e);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(e,": it is not in the index"));this._idToShortId.delete(e),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(n,a){t.removeFieldLength(r,a,t._documentCount,n)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},o.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var e=this._options.autoVacuum,t=e.minDirtFactor,r=e.minDirtCount,n=e.batchSize,a=e.batchWait;this.conditionalVacuum({batchSize:n,batchWait:a},{minDirtCount:r,minDirtFactor:t})}},o.prototype.discardAll=function(e){var t,r,n=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var a=D(e),i=a.next();!i.done;i=a.next()){var s=i.value;this.discard(s)}}catch(u){t={error:u}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}finally{this._options.autoVacuum=n}this.maybeAutoVacuum()},o.prototype.replace=function(e){var t=this._options,r=t.idField,n=t.extractField,a=n(e,r);this.discard(a),this.add(e)},o.prototype.vacuum=function(e){return e===void 0&&(e={}),this.conditionalVacuum(e)},o.prototype.conditionalVacuum=function(e,t){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var n=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=Ke,r.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)},o.prototype.performVacuuming=function(e,t){return _r(this,void 0,void 0,function(){var r,n,a,i,s,u,l,d,h,v,y,b,S,g,A,T,F,L,R,V,k,_,C,O,w;return Rr(this,function(c){switch(c.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(t))return[3,10];n=e.batchSize||je.batchSize,a=e.batchWait||je.batchWait,i=1,c.label=1;case 1:c.trys.push([1,7,8,9]),s=D(this._index),u=s.next(),c.label=2;case 2:if(u.done)return[3,6];l=K(u.value,2),d=l[0],h=l[1];try{for(v=(_=void 0,D(h)),y=v.next();!y.done;y=v.next()){b=K(y.value,2),S=b[0],g=b[1];try{for(A=(O=void 0,D(g)),T=A.next();!T.done;T=A.next())F=K(T.value,1),L=F[0],!this._documentIds.has(L)&&(g.size<=1?h.delete(S):g.delete(L))}catch(f){O={error:f}}finally{try{T&&!T.done&&(w=A.return)&&w.call(A)}finally{if(O)throw O.error}}}}catch(f){_={error:f}}finally{try{y&&!y.done&&(C=v.return)&&C.call(v)}finally{if(_)throw _.error}}return this._index.get(d).size===0&&this._index.delete(d),i%n!==0?[3,4]:[4,new Promise(function(f){return setTimeout(f,a)})];case 3:c.sent(),c.label=4;case 4:i+=1,c.label=5;case 5:return u=s.next(),[3,2];case 6:return[3,9];case 7:return R=c.sent(),V={error:R},[3,9];case 8:try{u&&!u.done&&(k=s.return)&&k.call(s)}finally{if(V)throw V.error}return[7];case 9:this._dirtCount-=r,c.label=10;case 10:return[4,null];case 11:return c.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},o.prototype.vacuumConditionsMet=function(e){if(e==null)return!0;var t=e.minDirtCount,r=e.minDirtFactor;return t=t||Be.minDirtCount,r=r||Be.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=r},Object.defineProperty(o.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),o.prototype.has=function(e){return this._idToShortId.has(e)},o.prototype.getStoredFields=function(e){var t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)},o.prototype.search=function(e,t){var r,n;t===void 0&&(t={});var a=this.executeQuery(e,t),i=[];try{for(var s=D(a),u=s.next();!u.done;u=s.next()){var l=K(u.value,2),d=l[0],h=l[1],v=h.score,y=h.terms,b=h.match,S=y.length||1,g={id:this._documentIds.get(d),score:v*S,terms:Object.keys(b),queryTerms:y,match:b};Object.assign(g,this._storedFields.get(d)),(t.filter==null||t.filter(g))&&i.push(g)}}catch(A){r={error:A}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return e===o.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||i.sort(ht),i},o.prototype.autoSuggest=function(e,t){var r,n,a,i;t===void 0&&(t={}),t=W(W({},this._options.autoSuggestOptions),t);var s=new Map;try{for(var u=D(this.search(e,t)),l=u.next();!l.done;l=u.next()){var d=l.value,h=d.score,v=d.terms,y=v.join(" "),b=s.get(y);b!=null?(b.score+=h,b.count+=1):s.set(y,{score:h,terms:v,count:1})}}catch(R){r={error:R}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}var S=[];try{for(var g=D(s),A=g.next();!A.done;A=g.next()){var T=K(A.value,2),b=T[0],F=T[1],h=F.score,v=F.terms,L=F.count;S.push({suggestion:b,terms:v,score:h/L})}}catch(R){a={error:R}}finally{try{A&&!A.done&&(i=g.return)&&i.call(g)}finally{if(a)throw a.error}}return S.sort(ht),S},Object.defineProperty(o.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),o.loadJSON=function(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)},o.getDefault=function(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error('MiniSearch: unknown option "'.concat(e,'"'))},o.loadJS=function(e,t){var r,n,a,i,s,u,l=e.index,d=e.documentCount,h=e.nextId,v=e.documentIds,y=e.fieldIds,b=e.fieldLength,S=e.averageFieldLength,g=e.storedFields,A=e.dirtCount,T=e.serializationVersion;if(T!==1&&T!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var F=new o(t);F._documentCount=d,F._nextId=h,F._documentIds=Ce(v),F._idToShortId=new Map,F._fieldIds=y,F._fieldLength=Ce(b),F._avgFieldLength=S,F._storedFields=Ce(g),F._dirtCount=A||0,F._index=new Me;try{for(var L=D(F._documentIds),R=L.next();!R.done;R=L.next()){var V=K(R.value,2),k=V[0],_=V[1];F._idToShortId.set(_,k)}}catch(P){r={error:P}}finally{try{R&&!R.done&&(n=L.return)&&n.call(L)}finally{if(r)throw r.error}}try{for(var C=D(l),O=C.next();!O.done;O=C.next()){var w=K(O.value,2),c=w[0],f=w[1],p=new Map;try{for(var N=(s=void 0,D(Object.keys(f))),I=N.next();!I.done;I=N.next()){var M=I.value,z=f[M];T===1&&(z=z.ds),p.set(parseInt(M,10),Ce(z))}}catch(P){s={error:P}}finally{try{I&&!I.done&&(u=N.return)&&u.call(N)}finally{if(s)throw s.error}}F._index.set(c,p)}}catch(P){a={error:P}}finally{try{O&&!O.done&&(i=C.return)&&i.call(C)}finally{if(a)throw a.error}}return F},o.prototype.executeQuery=function(e,t){var r=this;if(t===void 0&&(t={}),e===o.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){var n=W(W(W({},t),e),{queries:void 0}),a=e.queries.map(function(g){return r.executeQuery(g,n)});return this.combineResults(a,n.combineWith)}var i=this._options,s=i.tokenize,u=i.processTerm,l=i.searchOptions,d=W(W({tokenize:s,processTerm:u},l),t),h=d.tokenize,v=d.processTerm,y=h(e).flatMap(function(g){return v(g)}).filter(function(g){return!!g}),b=y.map(jr(d)),S=b.map(function(g){return r.executeQuerySpec(g,d)});return this.combineResults(S,d.combineWith)},o.prototype.executeQuerySpec=function(e,t){var r,n,a,i,s=W(W({},this._options.searchOptions),t),u=(s.fields||this._options.fields).reduce(function(M,z){var P;return W(W({},M),(P={},P[z]=ze(s.boost,z)||1,P))},{}),l=s.boostDocument,d=s.weights,h=s.maxFuzzy,v=s.bm25,y=W(W({},ft.weights),d),b=y.fuzzy,S=y.prefix,g=this._index.get(e.term),A=this.termResults(e.term,e.term,1,g,u,l,v),T,F;if(e.prefix&&(T=this._index.atPrefix(e.term)),e.fuzzy){var L=e.fuzzy===!0?.2:e.fuzzy,R=L<1?Math.min(h,Math.round(e.term.length*L)):L;R&&(F=this._index.fuzzyGet(e.term,R))}if(T)try{for(var V=D(T),k=V.next();!k.done;k=V.next()){var _=K(k.value,2),C=_[0],O=_[1],w=C.length-e.term.length;if(w){F==null||F.delete(C);var c=S*C.length/(C.length+.3*w);this.termResults(e.term,C,c,O,u,l,v,A)}}}catch(M){r={error:M}}finally{try{k&&!k.done&&(n=V.return)&&n.call(V)}finally{if(r)throw r.error}}if(F)try{for(var f=D(F.keys()),p=f.next();!p.done;p=f.next()){var C=p.value,N=K(F.get(C),2),I=N[0],w=N[1];if(w){var c=b*C.length/(C.length+w);this.termResults(e.term,C,c,I,u,l,v,A)}}}catch(M){a={error:M}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(a)throw a.error}}return A},o.prototype.executeWildcardQuery=function(e){var t,r,n=new Map,a=W(W({},this._options.searchOptions),e);try{for(var i=D(this._documentIds),s=i.next();!s.done;s=i.next()){var u=K(s.value,2),l=u[0],d=u[1],h=a.boostDocument?a.boostDocument(d,"",this._storedFields.get(l)):1;n.set(l,{score:h,terms:[],match:{}})}}catch(v){t={error:v}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},o.prototype.combineResults=function(e,t){if(t===void 0&&(t=Ue),e.length===0)return new Map;var r=t.toLowerCase();return e.reduce(Vr[r])||new Map},o.prototype.toJSON=function(){var e,t,r,n,a=[];try{for(var i=D(this._index),s=i.next();!s.done;s=i.next()){var u=K(s.value,2),l=u[0],d=u[1],h={};try{for(var v=(r=void 0,D(d)),y=v.next();!y.done;y=v.next()){var b=K(y.value,2),S=b[0],g=b[1];h[S]=Object.fromEntries(g)}}catch(A){r={error:A}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}a.push([l,h])}}catch(A){e={error:A}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:a,serializationVersion:2}},o.prototype.termResults=function(e,t,r,n,a,i,s,u){var l,d,h,v,y;if(u===void 0&&(u=new Map),n==null)return u;try{for(var b=D(Object.keys(a)),S=b.next();!S.done;S=b.next()){var g=S.value,A=a[g],T=this._fieldIds[g],F=n.get(T);if(F!=null){var L=F.size,R=this._avgFieldLength[T];try{for(var V=(h=void 0,D(F.keys())),k=V.next();!k.done;k=V.next()){var _=k.value;if(!this._documentIds.has(_)){this.removeTerm(T,_,t),L-=1;continue}var C=i?i(this._documentIds.get(_),t,this._storedFields.get(_)):1;if(C){var O=F.get(_),w=this._fieldLength.get(_)[T],c=Wr(O,L,this._documentCount,w,R,s),f=r*A*C*c,p=u.get(_);if(p){p.score+=f,Jr(p.terms,e);var N=ze(p.match,t);N?N.push(g):p.match[t]=[g]}else u.set(_,{score:f,terms:[e],match:(y={},y[t]=[g],y)})}}}catch(I){h={error:I}}finally{try{k&&!k.done&&(v=V.return)&&v.call(V)}finally{if(h)throw h.error}}}}}catch(I){l={error:I}}finally{try{S&&!S.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}return u},o.prototype.addTerm=function(e,t,r){var n=this._index.fetch(r,vt),a=n.get(e);if(a==null)a=new Map,a.set(t,1),n.set(e,a);else{var i=a.get(t);a.set(t,(i||0)+1)}},o.prototype.removeTerm=function(e,t,r){if(!this._index.has(r)){this.warnDocumentChanged(t,e,r);return}var n=this._index.fetch(r,vt),a=n.get(e);a==null||a.get(t)==null?this.warnDocumentChanged(t,e,r):a.get(t)<=1?a.size<=1?n.delete(e):a.delete(t):a.set(t,a.get(t)-1),this._index.get(r).size===0&&this._index.delete(r)},o.prototype.warnDocumentChanged=function(e,t,r){var n,a;try{for(var i=D(Object.keys(this._fieldIds)),s=i.next();!s.done;s=i.next()){var u=s.value;if(this._fieldIds[u]===t){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(e),' has changed before removal: term "').concat(r,'" was not present in field "').concat(u,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(l){n={error:l}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}},o.prototype.addDocumentId=function(e){var t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t},o.prototype.addFields=function(e){for(var t=0;t(Gt("data-v-4306aaa1"),o=o(),qt(),o),Hr=["aria-owns"],Gr={class:"shell"},qr=["title"],Qr=Y(()=>E("svg",{class:"search-icon",width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("circle",{cx:"11",cy:"11",r:"8"}),E("path",{d:"m21 21l-4.35-4.35"})])],-1)),Yr=[Qr],Zr={class:"search-actions before"},Xr=["title"],ea=Y(()=>E("svg",{width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 12H5m7 7l-7-7l7-7"})],-1)),ta=[ea],ra=["placeholder"],aa={class:"search-actions"},na=["title"],ia=Y(()=>E("svg",{width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 14h7v7H3zM3 3h7v7H3zm11 1h7m-7 5h7m-7 6h7m-7 5h7"})],-1)),oa=[ia],sa=["disabled","title"],ua=Y(()=>E("svg",{width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 5H9l-7 7l7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm-2 4l-6 6m0-6l6 6"})],-1)),la=[ua],ca=["id","role","aria-labelledby"],fa=["aria-selected"],da=["href","aria-label","onMouseenter","onFocusin"],ha={class:"titles"},va=Y(()=>E("span",{class:"title-icon"},"#",-1)),pa=["innerHTML"],ma=Y(()=>E("svg",{width:"18",height:"18",viewBox:"0 0 24 24"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"})],-1)),ya={class:"title main"},ga=["innerHTML"],ba={key:0,class:"excerpt-wrapper"},wa={key:0,class:"excerpt",inert:""},xa=["innerHTML"],Fa=Y(()=>E("div",{class:"excerpt-gradient-bottom"},null,-1)),Ea=Y(()=>E("div",{class:"excerpt-gradient-top"},null,-1)),Sa={key:0,class:"no-results"},Aa={class:"search-keyboard-shortcuts"},Ca=["aria-label"],Ta=Y(()=>E("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19V5m-7 7l7-7l7 7"})],-1)),ka=[Ta],Na=["aria-label"],Ia=Y(()=>E("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m7-7l-7 7l-7-7"})],-1)),Da=[Ia],Oa=["aria-label"],_a=Y(()=>E("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[E("g",{fill:"none",stroke:"currentcolor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("path",{d:"m9 10l-5 5l5 5"}),E("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})])],-1)),Ra=[_a],Ma=["aria-label"],La=It({__name:"VPLocalSearchBox",emits:["close"],setup(o,{emit:e}){var z,P;const t=e,r=xe(),n=xe(),a=xe(ar),i=er(),{activate:s}=Ir(r,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:u,theme:l}=i,d=et(async()=>{var m,x,$,j,G,q,B,J,Z;return nt(Br.loadJSON(($=await((x=(m=a.value)[u.value])==null?void 0:x.call(m)))==null?void 0:$.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((j=l.value.search)==null?void 0:j.provider)==="local"&&((q=(G=l.value.search.options)==null?void 0:G.miniSearch)==null?void 0:q.searchOptions)},...((B=l.value.search)==null?void 0:B.provider)==="local"&&((Z=(J=l.value.search.options)==null?void 0:J.miniSearch)==null?void 0:Z.options)}))}),v=Fe(()=>{var m,x;return((m=l.value.search)==null?void 0:m.provider)==="local"&&((x=l.value.search.options)==null?void 0:x.disableQueryPersistence)===!0}).value?oe(""):Dt("vitepress:local-search-filter",""),y=Ot("vitepress:local-search-detailed-list",((z=l.value.search)==null?void 0:z.provider)==="local"&&((P=l.value.search.options)==null?void 0:P.detailedView)===!0),b=Fe(()=>{var m,x,$;return((m=l.value.search)==null?void 0:m.provider)==="local"&&(((x=l.value.search.options)==null?void 0:x.disableDetailedView)===!0||(($=l.value.search.options)==null?void 0:$.detailedView)===!1)}),S=Fe(()=>{var x,$,j,G,q,B,J;const m=((x=l.value.search)==null?void 0:x.options)??l.value.algolia;return((q=(G=(j=($=m==null?void 0:m.locales)==null?void 0:$[u.value])==null?void 0:j.translations)==null?void 0:G.button)==null?void 0:q.buttonText)||((J=(B=m==null?void 0:m.translations)==null?void 0:B.button)==null?void 0:J.buttonText)||"Search"});_t(()=>{b.value&&(y.value=!1)});const g=xe([]),A=oe(!1);Ve(v,()=>{A.value=!1});const T=et(async()=>{if(n.value)return nt(new Or(n.value))},null),F=new rr(16);Rt(()=>[d.value,v.value,y.value],async([m,x,$],j,G)=>{var be,He,Ge,qe;(j==null?void 0:j[0])!==m&&F.clear();let q=!1;if(G(()=>{q=!0}),!m)return;g.value=m.search(x).slice(0,16),A.value=!0;const B=$?await Promise.all(g.value.map(Q=>L(Q.id))):[];if(q)return;for(const{id:Q,mod:ae}of B){const ne=Q.slice(0,Q.indexOf("#"));let te=F.get(ne);if(te)continue;te=new Map,F.set(ne,te);const X=ae.default??ae;if(X!=null&&X.render||X!=null&&X.setup){const ie=Qt(X);ie.config.warnHandler=()=>{},ie.provide(Yt,i),Object.defineProperties(ie.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Qe=document.createElement("div");ie.mount(Qe),Qe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var Xe;const we=(Xe=de.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(we==null?void 0:we.startsWith("#"))&&we.slice(1);if(!Ye)return;let Ze="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)Ze+=de.outerHTML;te.set(Ye,Ze)}),ie.unmount()}if(q)return}const J=new Set;if(g.value=g.value.map(Q=>{const[ae,ne]=Q.id.split("#"),te=F.get(ae),X=(te==null?void 0:te.get(ne))??"";for(const ie in Q.match)J.add(ie);return{...Q,text:X}}),await he(),q)return;await new Promise(Q=>{var ae;(ae=T.value)==null||ae.unmark({done:()=>{var ne;(ne=T.value)==null||ne.markRegExp(M(J),{done:Q})}})});const Z=((be=r.value)==null?void 0:be.querySelectorAll(".result .excerpt"))??[];for(const Q of Z)(He=Q.querySelector('mark[data-markjs="true"]'))==null||He.scrollIntoView({block:"center"});(qe=(Ge=n.value)==null?void 0:Ge.firstElementChild)==null||qe.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function L(m){const x=Zt(m.slice(0,m.indexOf("#")));try{if(!x)throw new Error(`Cannot find file for id: ${m}`);return{id:m,mod:await pt(()=>import(x),__vite__mapDeps([]))}}catch($){return console.error($),{id:m,mod:{}}}}const R=oe(),V=Fe(()=>{var m;return((m=v.value)==null?void 0:m.length)<=0});function k(m=!0){var x,$;(x=R.value)==null||x.focus(),m&&(($=R.value)==null||$.select())}Oe(()=>{k()});function _(m){m.pointerType==="mouse"&&k()}const C=oe(-1),O=oe(!1);Ve(g,m=>{C.value=m.length?0:-1,w()});function w(){he(()=>{const m=document.querySelector(".result.selected");m&&m.scrollIntoView({block:"nearest"})})}Ee("ArrowUp",m=>{m.preventDefault(),C.value--,C.value<0&&(C.value=g.value.length-1),O.value=!0,w()}),Ee("ArrowDown",m=>{m.preventDefault(),C.value++,C.value>=g.value.length&&(C.value=0),O.value=!0,w()});const c=Mt();Ee("Enter",m=>{if(m.target instanceof HTMLButtonElement&&m.target.type!=="submit")return;const x=g.value[C.value];if(m.target instanceof HTMLInputElement&&!x){m.preventDefault();return}x&&(c.go(x.id),t("close"))}),Ee("Escape",()=>{t("close")});const f={modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}},p=Lt(tr)(zt(()=>{var m;return(m=l.value.search)==null?void 0:m.options}),f);Oe(()=>{window.history.pushState(null,"",null)}),Pt("popstate",m=>{m.preventDefault(),t("close")});const N=Bt(Vt?document.body:null);Oe(()=>{he(()=>{N.value=!0,he().then(()=>s())})}),$t(()=>{N.value=!1});function I(){v.value="",he().then(()=>k(!1))}function M(m){return new RegExp([...m].sort((x,$)=>$.length-x.length).map(x=>`(${x.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}return(m,x)=>{var $,j,G,q;return ee(),Wt(Ht,{to:"body"},[E("div",{ref_key:"el",ref:r,role:"button","aria-owns":($=g.value)!=null&&$.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[E("div",{class:"backdrop",onClick:x[0]||(x[0]=B=>m.$emit("close"))}),E("div",Gr,[E("form",{class:"search-bar",onPointerup:x[4]||(x[4]=B=>_(B)),onSubmit:x[5]||(x[5]=jt(()=>{},["prevent"]))},[E("label",{title:S.value,id:"localsearch-label",for:"localsearch-input"},Yr,8,qr),E("div",Zr,[E("button",{class:"back-button",title:U(p)("modal.backButtonTitle"),onClick:x[1]||(x[1]=B=>m.$emit("close"))},ta,8,Xr)]),Kt(E("input",{ref_key:"searchInput",ref:R,"onUpdate:modelValue":x[2]||(x[2]=B=>Ut(v)?v.value=B:null),placeholder:S.value,id:"localsearch-input","aria-labelledby":"localsearch-label",class:"search-input"},null,8,ra),[[Jt,U(v)]]),E("div",aa,[b.value?Se("",!0):(ee(),re("button",{key:0,class:tt(["toggle-layout-button",{"detailed-list":U(y)}]),type:"button",title:U(p)("modal.displayDetails"),onClick:x[3]||(x[3]=B=>C.value>-1&&(y.value=!U(y)))},oa,10,na)),E("button",{class:"clear-button",type:"reset",disabled:V.value,title:U(p)("modal.resetButtonTitle"),onClick:I},la,8,sa)])],32),E("ul",{ref_key:"resultsEl",ref:n,id:(j=g.value)!=null&&j.length?"localsearch-list":void 0,role:(G=g.value)!=null&&G.length?"listbox":void 0,"aria-labelledby":(q=g.value)!=null&&q.length?"localsearch-label":void 0,class:"results",onMousemove:x[7]||(x[7]=B=>O.value=!1)},[(ee(!0),re(at,null,rt(g.value,(B,J)=>(ee(),re("li",{key:B.id,role:"option","aria-selected":C.value===J?"true":"false"},[E("a",{href:B.id,class:tt(["result",{selected:C.value===J}]),"aria-label":[...B.titles,B.title].join(" > "),onMouseenter:Z=>!O.value&&(C.value=J),onFocusin:Z=>C.value=J,onClick:x[6]||(x[6]=Z=>m.$emit("close"))},[E("div",null,[E("div",ha,[va,(ee(!0),re(at,null,rt(B.titles,(Z,be)=>(ee(),re("span",{key:be,class:"title"},[E("span",{class:"text",innerHTML:Z},null,8,pa),ma]))),128)),E("span",ya,[E("span",{class:"text",innerHTML:B.title},null,8,ga)])]),U(y)?(ee(),re("div",ba,[B.text?(ee(),re("div",wa,[E("div",{class:"vp-doc",innerHTML:B.text},null,8,xa)])):Se("",!0),Fa,Ea])):Se("",!0)])],42,da)],8,fa))),128)),U(v)&&!g.value.length&&A.value?(ee(),re("li",Sa,[ve(pe(U(p)("modal.noResultsText"))+' "',1),E("strong",null,pe(U(v)),1),ve('" ')])):Se("",!0)],40,ca),E("div",Aa,[E("span",null,[E("kbd",{"aria-label":U(p)("modal.footer.navigateUpKeyAriaLabel")},ka,8,Ca),E("kbd",{"aria-label":U(p)("modal.footer.navigateDownKeyAriaLabel")},Da,8,Na),ve(" "+pe(U(p)("modal.footer.navigateText")),1)]),E("span",null,[E("kbd",{"aria-label":U(p)("modal.footer.selectKeyAriaLabel")},Ra,8,Oa),ve(" "+pe(U(p)("modal.footer.selectText")),1)]),E("span",null,[E("kbd",{"aria-label":U(p)("modal.footer.closeKeyAriaLabel")},"esc",8,Ma),ve(" "+pe(U(p)("modal.footer.closeText")),1)])])])],8,Hr)])}}}),$a=Xt(La,[["__scopeId","data-v-4306aaa1"]]);export{$a as default}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} \ No newline at end of file diff --git a/pr-preview/pr-442/assets/chunks/camera.mAncAYbH.js b/pr-preview/pr-442/assets/chunks/camera.mAncAYbH.js deleted file mode 100644 index e16da0dc..00000000 --- a/pr-preview/pr-442/assets/chunks/camera.mAncAYbH.js +++ /dev/null @@ -1,3 +0,0 @@ -import{d as ri,h as ni,j as ai,a9 as ii,o as oi,b as si,J as ui}from"./framework.Bgy0wF8y.js";const Co=ri({__name:"DemoWrapper",props:{component:Object},setup(r){const i=r,o=ni();return ai(()=>{i.component&&(o.value=ii(i.component))}),(u,d)=>(oi(),si(ui(o.value)))}});var lr=(r,i,o)=>{if(!i.has(r))throw TypeError("Cannot "+o)},er=(r,i,o)=>(lr(r,i,"read from private field"),o?o.call(r):i.get(r)),ci=(r,i,o)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,o)},li=(r,i,o,u)=>(lr(r,i,"write to private field"),i.set(r,o),o);const dr=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],di=[...dr,["unknown"]].map(r=>r[0]),Ve=new Map(dr);function fi(r){for(const[i,o]of Ve)if(r===o)return i;return"unknown"}function pi(r){if(fr(r))return{width:r.naturalWidth,height:r.naturalHeight};if(pr(r))return{width:r.width.baseVal.value,height:r.height.baseVal.value};if(hr(r))return{width:r.videoWidth,height:r.videoHeight};if(vr(r))return{width:r.width,height:r.height};if(gr(r))return{width:r.displayWidth,height:r.displayHeight};if(mr(r))return{width:r.width,height:r.height};if(yr(r))return{width:r.width,height:r.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function fr(r){try{return r instanceof HTMLImageElement}catch{return!1}}function pr(r){try{return r instanceof SVGImageElement}catch{return!1}}function hr(r){try{return r instanceof HTMLVideoElement}catch{return!1}}function mr(r){try{return r instanceof HTMLCanvasElement}catch{return!1}}function vr(r){try{return r instanceof ImageBitmap}catch{return!1}}function yr(r){try{return r instanceof OffscreenCanvas}catch{return!1}}function gr(r){try{return r instanceof VideoFrame}catch{return!1}}function wr(r){try{return r instanceof Blob}catch{return!1}}function hi(r){try{return r instanceof ImageData}catch{return!1}}function mi(r,i){try{const o=new OffscreenCanvas(r,i);if(o.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return o;throw void 0}catch{const o=document.createElement("canvas");return o.width=r,o.height=i,o}}async function br(r){if(fr(r)&&!await wi(r))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(pr(r)&&!await bi(r))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(gr(r)&&Ci(r))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(hr(r)&&(r.readyState===0||r.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(vr(r)&&_i(r))throw new DOMException("The image source is detached.","InvalidStateError");const{width:i,height:o}=pi(r);if(i===0||o===0)return null;const u=mi(i,o).getContext("2d");u.drawImage(r,0,0);try{return u.getImageData(0,0,i,o)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function vi(r){let i;try{if(globalThis.createImageBitmap)i=await createImageBitmap(r);else if(globalThis.Image){i=new Image;let o="";try{o=URL.createObjectURL(r),i.src=o,await i.decode()}finally{URL.revokeObjectURL(o)}}else return r}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await br(i)}function yi(r){const{width:i,height:o}=r;if(i===0||o===0)return null;const u=r.getContext("2d");try{return u.getImageData(0,0,i,o)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function gi(r){if(wr(r))return await vi(r);if(hi(r)){if($i(r))throw new DOMException("The image data has been detached.","InvalidStateError");return r}return mr(r)||yr(r)?yi(r):await br(r)}async function wi(r){try{return await r.decode(),!0}catch{return!1}}async function bi(r){var i;try{return await((i=r.decode)==null?void 0:i.call(r)),!0}catch{return!1}}function Ci(r){return r.format===null}function $i(r){return r.data.buffer.byteLength===0}function _i(r){return r.width===0&&r.height===0}function tr(r,i){return r instanceof DOMException?new DOMException(`${i}: ${r.message}`,r.name):r instanceof Error?new r.constructor(`${i}: ${r.message}`):new Error(`${i}: ${r}`)}const rr=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function Si(r){return r.join("|")}function Pi(r){const i=nr(r);let o=0,u=rr.length-1;for(;o<=u;){const d=Math.floor((o+u)/2),p=rr[d],g=nr(p);if(g===i)return p;g{const o=r.match(/_(.+?)\.wasm$/);return o?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.1.3/dist/${o[1]}/${r}`:i+r}};let ar=new WeakMap;function ft(r,i){var o;const u=ar.get(r);if(u!=null&&u.modulePromise&&i===void 0)return u.modulePromise;const d=(o=u==null?void 0:u.moduleOverrides)!=null?o:Ri,p=r({...d});return ar.set(r,{moduleOverrides:d,modulePromise:p}),p}async function xi(r,i,o=ye){const u={...ye,...o},d=await ft(r),{size:p}=i,g=new Uint8Array(await i.arrayBuffer()),w=d._malloc(p);d.HEAPU8.set(g,w);const _=d.readBarcodesFromImage(w,p,Cr(d,u));d._free(w);const m=[];for(let $=0;$<_.size();++$)m.push($r(_.get($)));return m}async function Ii(r,i,o=ye){const u={...ye,...o},d=await ft(r),{data:p,width:g,height:w,data:{byteLength:_}}=i,m=d._malloc(_);d.HEAPU8.set(p,m);const $=d.readBarcodesFromPixmap(m,g,w,Cr(d,u));d._free(m);const P=[];for(let C=0;C<$.size();++C)P.push($r($.get(C)));return P}({...ye,formats:[...ye.formats]});var pt=(()=>{var r=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(i={}){var o=i,u,d;o.ready=new Promise((e,t)=>{u=e,d=t});var p=Object.assign({},o),g="./this.program",w=typeof window=="object",_=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var m="";function $(e){return o.locateFile?o.locateFile(e,m):m+e}var P;(w||_)&&(_?m=self.location.href:typeof document<"u"&&document.currentScript&&(m=document.currentScript.src),r&&(m=r),m.indexOf("blob:")!==0?m=m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):m="",_&&(P=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})),o.print||console.log.bind(console);var C=o.printErr||console.error.bind(console);Object.assign(o,p),p=null,o.arguments&&o.arguments,o.thisProgram&&(g=o.thisProgram),o.quit&&o.quit;var U;o.wasmBinary&&(U=o.wasmBinary),typeof WebAssembly!="object"&&Oe("no native wasm support detected");var I,B=!1,A,D,X,ge,Y,x,mt,vt;function yt(){var e=I.buffer;o.HEAP8=A=new Int8Array(e),o.HEAP16=X=new Int16Array(e),o.HEAPU8=D=new Uint8Array(e),o.HEAPU16=ge=new Uint16Array(e),o.HEAP32=Y=new Int32Array(e),o.HEAPU32=x=new Uint32Array(e),o.HEAPF32=mt=new Float32Array(e),o.HEAPF64=vt=new Float64Array(e)}var gt=[],wt=[],bt=[];function Fr(){if(o.preRun)for(typeof o.preRun=="function"&&(o.preRun=[o.preRun]);o.preRun.length;)jr(o.preRun.shift());Ne(gt)}function kr(){Ne(wt)}function Ur(){if(o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;)Lr(o.postRun.shift());Ne(bt)}function jr(e){gt.unshift(e)}function Wr(e){wt.unshift(e)}function Lr(e){bt.unshift(e)}var ue=0,we=null;function Hr(e){var t;ue++,(t=o.monitorRunDependencies)===null||t===void 0||t.call(o,ue)}function Vr(e){var t;if(ue--,(t=o.monitorRunDependencies)===null||t===void 0||t.call(o,ue),ue==0&&we){var n=we;we=null,n()}}function Oe(e){var t;(t=o.onAbort)===null||t===void 0||t.call(o,e),e="Aborted("+e+")",C(e),B=!0,e+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(e);throw d(n),n}var Br="data:application/octet-stream;base64,",Ct=e=>e.startsWith(Br),de;de="zxing_reader.wasm",Ct(de)||(de=$(de));function $t(e){if(e==de&&U)return new Uint8Array(U);if(P)return P(e);throw"both async and sync fetching of the wasm failed"}function qr(e){return!U&&(w||_)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>$t(e)):Promise.resolve().then(()=>$t(e))}function _t(e,t,n){return qr(e).then(a=>WebAssembly.instantiate(a,t)).then(a=>a).then(n,a=>{C(`failed to asynchronously prepare wasm: ${a}`),Oe(a)})}function Gr(e,t,n,a){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Ct(t)&&typeof fetch=="function"?fetch(t,{credentials:"same-origin"}).then(s=>{var c=WebAssembly.instantiateStreaming(s,n);return c.then(a,function(l){return C(`wasm streaming compile failed: ${l}`),C("falling back to ArrayBuffer instantiation"),_t(t,n,a)})}):_t(t,n,a)}function Nr(){var e={a:Ia};function t(a,s){return q=a.exports,I=q.ia,yt(),xt=q.ma,Wr(q.ja),Vr(),q}Hr();function n(a){t(a.instance)}if(o.instantiateWasm)try{return o.instantiateWasm(e,t)}catch(a){C(`Module.instantiateWasm callback failed with error: ${a}`),d(a)}return Gr(U,de,e,n).catch(d),{}}var Ne=e=>{for(;e.length>0;)e.shift()(o)};o.noExitRuntime;var Me=[],Ae=0,zr=e=>{var t=new ze(e);return t.get_caught()||(t.set_caught(!0),Ae--),t.set_rethrown(!1),Me.push(t),zt(t.excPtr),t.get_exception_ptr()},re=0,Yr=()=>{F(0,0);var e=Me.pop();Nt(e.excPtr),re=0};function ze(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(t){x[this.ptr+4>>2]=t},this.get_type=function(){return x[this.ptr+4>>2]},this.set_destructor=function(t){x[this.ptr+8>>2]=t},this.get_destructor=function(){return x[this.ptr+8>>2]},this.set_caught=function(t){t=t?1:0,A[this.ptr+12>>0]=t},this.get_caught=function(){return A[this.ptr+12>>0]!=0},this.set_rethrown=function(t){t=t?1:0,A[this.ptr+13>>0]=t},this.get_rethrown=function(){return A[this.ptr+13>>0]!=0},this.init=function(t,n){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(n)},this.set_adjusted_ptr=function(t){x[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return x[this.ptr+16>>2]},this.get_exception_ptr=function(){var t=Jt(this.get_type());if(t)return x[this.excPtr>>2];var n=this.get_adjusted_ptr();return n!==0?n:this.excPtr}}var Jr=e=>{throw re||(re=e),re},Ye=e=>{var t=re;if(!t)return Te(0),0;var n=new ze(t);n.set_adjusted_ptr(t);var a=n.get_type();if(!a)return Te(0),t;for(var s in e){var c=e[s];if(c===0||c===a)break;var l=n.ptr+16;if(Yt(c,a,l))return Te(c),t}return Te(a),t},Qr=()=>Ye([]),Xr=e=>Ye([e]),Kr=(e,t)=>Ye([e,t]),Zr=()=>{var e=Me.pop();e||Oe("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(Me.push(e),e.set_rethrown(!0),e.set_caught(!1),Ae++),re=t,re},en=(e,t,n)=>{var a=new ze(e);throw a.init(t,n),re=e,Ae++,re},tn=()=>Ae,De={},Je=e=>{for(;e.length;){var t=e.pop(),n=e.pop();n(t)}};function Qe(e){return this.fromWireType(Y[e>>2])}var fe={},ce={},Re={},St,xe=e=>{throw new St(e)},le=(e,t,n)=>{e.forEach(function(f){Re[f]=t});function a(f){var h=n(f);h.length!==e.length&&xe("Mismatched type converter count");for(var y=0;y{ce.hasOwnProperty(f)?s[h]=ce[f]:(c.push(f),fe.hasOwnProperty(f)||(fe[f]=[]),fe[f].push(()=>{s[h]=ce[f],++l,l===c.length&&a(s)}))}),c.length===0&&a(s)},rn=e=>{var t=De[e];delete De[e];var n=t.rawConstructor,a=t.rawDestructor,s=t.fields,c=s.map(l=>l.getterReturnType).concat(s.map(l=>l.setterArgumentType));le([e],c,l=>{var f={};return s.forEach((h,y)=>{var b=h.fieldName,T=l[y],E=h.getter,O=h.getterContext,k=l[y+s.length],H=h.setter,R=h.setterContext;f[b]={read:z=>T.fromWireType(E(O,z)),write:(z,v)=>{var S=[];H(R,z,k.toWireType(S,v)),Je(S)}}}),[{name:t.name,fromWireType:h=>{var y={};for(var b in f)y[b]=f[b].read(h);return a(h),y},toWireType:(h,y)=>{for(var b in f)if(!(b in y))throw new TypeError(`Missing field: "${b}"`);var T=n();for(b in f)f[b].write(T,y[b]);return h!==null&&h.push(a,T),T},argPackAdvance:ee,readValueFromPointer:Qe,destructorFunction:a}]})},nn=(e,t,n,a,s)=>{},an=()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Pt=e},Pt,N=e=>{for(var t="",n=e;D[n];)t+=Pt[D[n++]];return t},pe,M=e=>{throw new pe(e)};function on(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var a=t.name;if(e||M(`type "${a}" must have a positive integer typeid pointer`),ce.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;M(`Cannot register type '${a}' twice`)}if(ce[e]=t,delete Re[e],fe.hasOwnProperty(e)){var s=fe[e];delete fe[e],s.forEach(c=>c())}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return on(e,t,n)}var ee=8,sn=(e,t,n,a)=>{t=N(t),Z(e,{name:t,fromWireType:function(s){return!!s},toWireType:function(s,c){return c?n:a},argPackAdvance:ee,readValueFromPointer:function(s){return this.fromWireType(D[s])},destructorFunction:null})},un=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Xe=e=>{function t(n){return n.$$.ptrType.registeredClass.name}M(t(e)+" instance already deleted")},Ke=!1,Tt=e=>{},cn=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},Et=e=>{e.count.value-=1;var t=e.count.value===0;t&&cn(e)},Ot=(e,t,n)=>{if(t===n)return e;if(n.baseClass===void 0)return null;var a=Ot(e,t,n.baseClass);return a===null?null:n.downcast(a)},Mt={},ln=()=>Object.keys($e).length,dn=()=>{var e=[];for(var t in $e)$e.hasOwnProperty(t)&&e.push($e[t]);return e},be=[],Ze=()=>{for(;be.length;){var e=be.pop();e.$$.deleteScheduled=!1,e.delete()}},Ce,fn=e=>{Ce=e,be.length&&Ce&&Ce(Ze)},pn=()=>{o.getInheritedInstanceCount=ln,o.getLiveInheritedInstances=dn,o.flushPendingDeletes=Ze,o.setDelayFunction=fn},$e={},hn=(e,t)=>{for(t===void 0&&M("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},mn=(e,t)=>(t=hn(e,t),$e[t]),Ie=(e,t)=>{(!t.ptrType||!t.ptr)&&xe("makeClassHandle requires ptr and ptrType");var n=!!t.smartPtrType,a=!!t.smartPtr;return n!==a&&xe("Both smartPtrType and smartPtr must be specified"),t.count={value:1},_e(Object.create(e,{$$:{value:t,writable:!0}}))};function vn(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=mn(this.registeredClass,t);if(n!==void 0){if(n.$$.count.value===0)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var a=n.clone();return this.destructor(e),a}function s(){return this.isSmartPointer?Ie(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Ie(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var c=this.registeredClass.getActualType(t),l=Mt[c];if(!l)return s.call(this);var f;this.isConst?f=l.constPointerType:f=l.pointerType;var h=Ot(t,this.registeredClass,f.registeredClass);return h===null?s.call(this):this.isSmartPointer?Ie(f.registeredClass.instancePrototype,{ptrType:f,ptr:h,smartPtrType:this,smartPtr:e}):Ie(f.registeredClass.instancePrototype,{ptrType:f,ptr:h})}var _e=e=>typeof FinalizationRegistry>"u"?(_e=t=>t,e):(Ke=new FinalizationRegistry(t=>{Et(t.$$)}),_e=t=>{var n=t.$$,a=!!n.smartPtr;if(a){var s={$$:n};Ke.register(t,s,t)}return t},Tt=t=>Ke.unregister(t),_e(e)),yn=()=>{Object.assign(Fe.prototype,{isAliasOf(e){if(!(this instanceof Fe)||!(e instanceof Fe))return!1;var t=this.$$.ptrType.registeredClass,n=this.$$.ptr;e.$$=e.$$;for(var a=e.$$.ptrType.registeredClass,s=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;a.baseClass;)s=a.upcast(s),a=a.baseClass;return t===a&&n===s},clone(){if(this.$$.ptr||Xe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=_e(Object.create(Object.getPrototypeOf(this),{$$:{value:un(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Xe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&M("Object already scheduled for deletion"),Tt(this),Et(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Xe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&M("Object already scheduled for deletion"),be.push(this),be.length===1&&Ce&&Ce(Ze),this.$$.deleteScheduled=!0,this}})};function Fe(){}var Se=(e,t)=>Object.defineProperty(t,"name",{value:e}),At=(e,t,n)=>{if(e[t].overloadTable===void 0){var a=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||M(`Function '${n}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[a.argCount]=a}},et=(e,t,n)=>{o.hasOwnProperty(e)?((n===void 0||o[e].overloadTable!==void 0&&o[e].overloadTable[n]!==void 0)&&M(`Cannot register public name '${e}' twice`),At(o,e,e),o.hasOwnProperty(n)&&M(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),o[e].overloadTable[n]=t):(o[e]=t,n!==void 0&&(o[e].numArguments=n))},gn=48,wn=57,bn=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return t>=gn&&t<=wn?`_${e}`:e};function Cn(e,t,n,a,s,c,l,f){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=a,this.baseClass=s,this.getActualType=c,this.upcast=l,this.downcast=f,this.pureVirtualFunctions=[]}var tt=(e,t,n)=>{for(;t!==n;)t.upcast||M(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function $n(e,t){if(t===null)return this.isReference&&M(`null is not a valid ${this.name}`),0;t.$$||M(`Cannot pass "${ot(t)}" as a ${this.name}`),t.$$.ptr||M(`Cannot pass deleted object as a pointer of type ${this.name}`);var n=t.$$.ptrType.registeredClass,a=tt(t.$$.ptr,n,this.registeredClass);return a}function _n(e,t){var n;if(t===null)return this.isReference&&M(`null is not a valid ${this.name}`),this.isSmartPointer?(n=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,n),n):0;(!t||!t.$$)&&M(`Cannot pass "${ot(t)}" as a ${this.name}`),t.$$.ptr||M(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&M(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var a=t.$$.ptrType.registeredClass;if(n=tt(t.$$.ptr,a,this.registeredClass),this.isSmartPointer)switch(t.$$.smartPtr===void 0&&M("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:M(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var s=t.clone();n=this.rawShare(n,ne.toHandle(()=>s.delete())),e!==null&&e.push(this.rawDestructor,n)}break;default:M("Unsupporting sharing policy")}return n}function Sn(e,t){if(t===null)return this.isReference&&M(`null is not a valid ${this.name}`),0;t.$$||M(`Cannot pass "${ot(t)}" as a ${this.name}`),t.$$.ptr||M(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&M(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass,a=tt(t.$$.ptr,n,this.registeredClass);return a}function Dt(e){return this.fromWireType(x[e>>2])}var Pn=()=>{Object.assign(ke.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t;(t=this.rawDestructor)===null||t===void 0||t.call(this,e)},argPackAdvance:ee,readValueFromPointer:Dt,deleteObject(e){e!==null&&e.delete()},fromWireType:vn})};function ke(e,t,n,a,s,c,l,f,h,y,b){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=a,this.isSmartPointer=s,this.pointeeType=c,this.sharingPolicy=l,this.rawGetPointee=f,this.rawConstructor=h,this.rawShare=y,this.rawDestructor=b,!s&&t.baseClass===void 0?a?(this.toWireType=$n,this.destructorFunction=null):(this.toWireType=Sn,this.destructorFunction=null):this.toWireType=_n}var Rt=(e,t,n)=>{o.hasOwnProperty(e)||xe("Replacing nonexistant public symbol"),o[e].overloadTable!==void 0&&n!==void 0?o[e].overloadTable[n]=t:(o[e]=t,o[e].argCount=n)},Tn=(e,t,n)=>{var a=o["dynCall_"+e];return n&&n.length?a.apply(null,[t].concat(n)):a.call(null,t)},Ue=[],xt,j=e=>{var t=Ue[e];return t||(e>=Ue.length&&(Ue.length=e+1),Ue[e]=t=xt.get(e)),t},En=(e,t,n)=>{if(e.includes("j"))return Tn(e,t,n);var a=j(t).apply(null,n);return a},On=(e,t)=>{var n=[];return function(){return n.length=0,Object.assign(n,arguments),En(e,t,n)}},K=(e,t)=>{e=N(e);function n(){return e.includes("j")?On(e,t):j(t)}var a=n();return typeof a!="function"&&M(`unknown function pointer with signature ${e}: ${t}`),a},Mn=(e,t)=>{var n=Se(t,function(a){this.name=t,this.message=a;var s=new Error(a).stack;s!==void 0&&(this.stack=this.toString()+` -`+s.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},n},It,Ft=e=>{var t=Gt(e),n=N(t);return ae(t),n},je=(e,t)=>{var n=[],a={};function s(c){if(!a[c]&&!ce[c]){if(Re[c]){Re[c].forEach(s);return}n.push(c),a[c]=!0}}throw t.forEach(s),new It(`${e}: `+n.map(Ft).join([", "]))},An=(e,t,n,a,s,c,l,f,h,y,b,T,E)=>{b=N(b),c=K(s,c),f&&(f=K(l,f)),y&&(y=K(h,y)),E=K(T,E);var O=bn(b);et(O,function(){je(`Cannot construct ${b} due to unbound types`,[a])}),le([e,t,n],a?[a]:[],function(k){k=k[0];var H,R;a?(H=k.registeredClass,R=H.instancePrototype):R=Fe.prototype;var z=Se(b,function(){if(Object.getPrototypeOf(this)!==v)throw new pe("Use 'new' to construct "+b);if(S.constructor_body===void 0)throw new pe(b+" has no accessible constructor");var Zt=S.constructor_body[arguments.length];if(Zt===void 0)throw new pe(`Tried to invoke ctor of ${b} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(S.constructor_body).toString()}) parameters instead!`);return Zt.apply(this,arguments)}),v=Object.create(R,{constructor:{value:z}});z.prototype=v;var S=new Cn(b,z,v,E,H,c,f,y);if(S.baseClass){var V,G;(G=(V=S.baseClass).__derivedClasses)!==null&&G!==void 0||(V.__derivedClasses=[]),S.baseClass.__derivedClasses.push(S)}var he=new ke(b,S,!0,!1,!1),He=new ke(b+"*",S,!1,!1,!1),Kt=new ke(b+" const*",S,!1,!0,!1);return Mt[e]={pointerType:He,constPointerType:Kt},Rt(O,z),[he,He,Kt]})},rt=(e,t)=>{for(var n=[],a=0;a>2]);return n};function Dn(e){for(var t=1;t{var l=rt(t,n);s=K(a,s),le([],[e],function(f){f=f[0];var h=`constructor ${f.name}`;if(f.registeredClass.constructor_body===void 0&&(f.registeredClass.constructor_body=[]),f.registeredClass.constructor_body[t-1]!==void 0)throw new pe(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${f.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return f.registeredClass.constructor_body[t-1]=()=>{je(`Cannot construct ${f.name} due to unbound types`,l)},le([],l,y=>(y.splice(1,0,null),f.registeredClass.constructor_body[t-1]=nt(h,y,null,s,c),[])),[]})},kt=e=>{e=e.trim();const t=e.indexOf("(");return t!==-1?e.substr(0,t):e},xn=(e,t,n,a,s,c,l,f,h)=>{var y=rt(n,a);t=N(t),t=kt(t),c=K(s,c),le([],[e],function(b){b=b[0];var T=`${b.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),f&&b.registeredClass.pureVirtualFunctions.push(t);function E(){je(`Cannot call ${T} due to unbound types`,y)}var O=b.registeredClass.instancePrototype,k=O[t];return k===void 0||k.overloadTable===void 0&&k.className!==b.name&&k.argCount===n-2?(E.argCount=n-2,E.className=b.name,O[t]=E):(At(O,t,T),O[t].overloadTable[n-2]=E),le([],y,function(H){var R=nt(T,H,b,c,l);return O[t].overloadTable===void 0?(R.argCount=n-2,O[t]=R):O[t].overloadTable[n-2]=R,[]}),[]})};function In(){Object.assign(Ut.prototype,{get(e){return this.allocated[e]},has(e){return this.allocated[e]!==void 0},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function Ut(){this.allocated=[void 0],this.freelist=[]}var Q=new Ut,at=e=>{e>=Q.reserved&&--Q.get(e).refcount===0&&Q.free(e)},Fn=()=>{for(var e=0,t=Q.reserved;t{Q.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Q.reserved=Q.allocated.length,o.count_emval_handles=Fn},ne={toValue:e=>(e||M("Cannot use deleted val. handle = "+e),Q.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Q.allocate({refcount:1,value:e})}}},Un=(e,t)=>{t=N(t),Z(e,{name:t,fromWireType:n=>{var a=ne.toValue(n);return at(n),a},toWireType:(n,a)=>ne.toHandle(a),argPackAdvance:ee,readValueFromPointer:Qe,destructorFunction:null})},jn=(e,t,n)=>{switch(t){case 1:return n?function(a){return this.fromWireType(A[a>>0])}:function(a){return this.fromWireType(D[a>>0])};case 2:return n?function(a){return this.fromWireType(X[a>>1])}:function(a){return this.fromWireType(ge[a>>1])};case 4:return n?function(a){return this.fromWireType(Y[a>>2])}:function(a){return this.fromWireType(x[a>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Wn=(e,t,n,a)=>{t=N(t);function s(){}s.values={},Z(e,{name:t,constructor:s,fromWireType:function(c){return this.constructor.values[c]},toWireType:(c,l)=>l.value,argPackAdvance:ee,readValueFromPointer:jn(t,n,a),destructorFunction:null}),et(t,s)},it=(e,t)=>{var n=ce[e];return n===void 0&&M(t+" has unknown type "+Ft(e)),n},Ln=(e,t,n)=>{var a=it(e,"enum");t=N(t);var s=a.constructor,c=Object.create(a.constructor.prototype,{value:{value:n},constructor:{value:Se(`${a.name}_${t}`,function(){})}});s.values[n]=c,s[t]=c},ot=e=>{if(e===null)return"null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e},Hn=(e,t)=>{switch(t){case 4:return function(n){return this.fromWireType(mt[n>>2])};case 8:return function(n){return this.fromWireType(vt[n>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Vn=(e,t,n)=>{t=N(t),Z(e,{name:t,fromWireType:a=>a,toWireType:(a,s)=>s,argPackAdvance:ee,readValueFromPointer:Hn(t,n),destructorFunction:null})},Bn=(e,t,n,a,s,c,l)=>{var f=rt(t,n);e=N(e),e=kt(e),s=K(a,s),et(e,function(){je(`Cannot call ${e} due to unbound types`,f)},t-1),le([],f,function(h){var y=[h[0],null].concat(h.slice(1));return Rt(e,nt(e,y,null,s,c),t-1),[]})},qn=(e,t,n)=>{switch(t){case 1:return n?a=>A[a>>0]:a=>D[a>>0];case 2:return n?a=>X[a>>1]:a=>ge[a>>1];case 4:return n?a=>Y[a>>2]:a=>x[a>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Gn=(e,t,n,a,s)=>{t=N(t);var c=b=>b;if(a===0){var l=32-8*n;c=b=>b<>>l}var f=t.includes("unsigned"),h=(b,T)=>{},y;f?y=function(b,T){return h(T,this.name),T>>>0}:y=function(b,T){return h(T,this.name),T},Z(e,{name:t,fromWireType:c,toWireType:y,argPackAdvance:ee,readValueFromPointer:qn(t,n,a!==0),destructorFunction:null})},Nn=(e,t,n)=>{var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],s=a[t];function c(l){var f=x[l>>2],h=x[l+4>>2];return new s(A.buffer,h,f)}n=N(n),Z(e,{name:n,fromWireType:c,argPackAdvance:ee,readValueFromPointer:c},{ignoreDuplicateRegistrations:!0})},jt=(e,t,n,a)=>{if(!(a>0))return 0;for(var s=n,c=n+a-1,l=0;l=55296&&f<=57343){var h=e.charCodeAt(++l);f=65536+((f&1023)<<10)|h&1023}if(f<=127){if(n>=c)break;t[n++]=f}else if(f<=2047){if(n+1>=c)break;t[n++]=192|f>>6,t[n++]=128|f&63}else if(f<=65535){if(n+2>=c)break;t[n++]=224|f>>12,t[n++]=128|f>>6&63,t[n++]=128|f&63}else{if(n+3>=c)break;t[n++]=240|f>>18,t[n++]=128|f>>12&63,t[n++]=128|f>>6&63,t[n++]=128|f&63}}return t[n]=0,n-s},zn=(e,t,n)=>jt(e,D,t,n),Wt=e=>{for(var t=0,n=0;n=55296&&a<=57343?(t+=4,++n):t+=3}return t},Lt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Yn=(e,t,n)=>{for(var a=t+n,s=t;e[s]&&!(s>=a);)++s;if(s-t>16&&e.buffer&&Lt)return Lt.decode(e.subarray(t,s));for(var c="";t>10,56320|y&1023)}}return c},st=(e,t)=>e?Yn(D,e,t):"",Jn=(e,t)=>{t=N(t);var n=t==="std::string";Z(e,{name:t,fromWireType(a){var s=x[a>>2],c=a+4,l;if(n)for(var f=c,h=0;h<=s;++h){var y=c+h;if(h==s||D[y]==0){var b=y-f,T=st(f,b);l===void 0?l=T:(l+="\0",l+=T),f=y+1}}else{for(var E=new Array(s),h=0;h>2]=c,n&&l)zn(s,h,c+1);else if(l)for(var y=0;y255&&(ae(h),M("String has UTF-16 code units that do not fit in 8 bits")),D[h+y]=b}else for(var y=0;y{for(var n=e,a=n>>1,s=a+t/2;!(a>=s)&&ge[a];)++a;if(n=a<<1,n-e>32&&Ht)return Ht.decode(D.subarray(e,n));for(var c="",l=0;!(l>=t/2);++l){var f=X[e+l*2>>1];if(f==0)break;c+=String.fromCharCode(f)}return c},Xn=(e,t,n)=>{var a;if((a=n)!==null&&a!==void 0||(n=2147483647),n<2)return 0;n-=2;for(var s=t,c=n>1]=f,t+=2}return X[t>>1]=0,t-s},Kn=e=>e.length*2,Zn=(e,t)=>{for(var n=0,a="";!(n>=t/4);){var s=Y[e+n*4>>2];if(s==0)break;if(++n,s>=65536){var c=s-65536;a+=String.fromCharCode(55296|c>>10,56320|c&1023)}else a+=String.fromCharCode(s)}return a},ea=(e,t,n)=>{var a;if((a=n)!==null&&a!==void 0||(n=2147483647),n<4)return 0;for(var s=t,c=s+n-4,l=0;l=55296&&f<=57343){var h=e.charCodeAt(++l);f=65536+((f&1023)<<10)|h&1023}if(Y[t>>2]=f,t+=4,t+4>c)break}return Y[t>>2]=0,t-s},ta=e=>{for(var t=0,n=0;n=55296&&a<=57343&&++n,t+=4}return t},ra=(e,t,n)=>{n=N(n);var a,s,c,l,f;t===2?(a=Qn,s=Xn,l=Kn,c=()=>ge,f=1):t===4&&(a=Zn,s=ea,l=ta,c=()=>x,f=2),Z(e,{name:n,fromWireType:h=>{for(var y=x[h>>2],b=c(),T,E=h+4,O=0;O<=y;++O){var k=h+4+O*t;if(O==y||b[k>>f]==0){var H=k-E,R=a(E,H);T===void 0?T=R:(T+="\0",T+=R),E=k+t}}return ae(h),T},toWireType:(h,y)=>{typeof y!="string"&&M(`Cannot pass non-string to C++ string type ${n}`);var b=l(y),T=lt(4+b+t);return x[T>>2]=b>>f,s(y,T+4,b+t),h!==null&&h.push(ae,T),T},argPackAdvance:ee,readValueFromPointer:Qe,destructorFunction(h){ae(h)}})},na=(e,t,n,a,s,c)=>{De[e]={name:N(t),rawConstructor:K(n,a),rawDestructor:K(s,c),fields:[]}},aa=(e,t,n,a,s,c,l,f,h,y)=>{De[e].fields.push({fieldName:N(t),getterReturnType:n,getter:K(a,s),getterContext:c,setterArgumentType:l,setter:K(f,h),setterContext:y})},ia=(e,t)=>{t=N(t),Z(e,{isVoid:!0,name:t,argPackAdvance:0,fromWireType:()=>{},toWireType:(n,a)=>{}})},ut=[],oa=(e,t,n,a)=>(e=ut[e],t=ne.toValue(t),e(null,t,n,a)),sa={},ua=e=>{var t=sa[e];return t===void 0?N(e):t},Vt=()=>{if(typeof globalThis=="object")return globalThis;function e(t){t.$$$embind_global$$$=t;var n=typeof $$$embind_global$$$=="object"&&t.$$$embind_global$$$==t;return n||delete t.$$$embind_global$$$,n}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},ca=e=>e===0?ne.toHandle(Vt()):(e=ua(e),ne.toHandle(Vt()[e])),la=e=>{var t=ut.length;return ut.push(e),t},da=(e,t)=>{for(var n=new Array(e),a=0;a>2],"parameter "+a);return n},fa=Reflect.construct,pa=(e,t,n)=>{var a=[],s=e.toWireType(a,n);return a.length&&(x[t>>2]=ne.toHandle(a)),s},ha=(e,t,n)=>{var a=da(e,t),s=a.shift();e--;var c=new Array(e),l=(h,y,b,T)=>{for(var E=0,O=0;Oh.name).join(", ")}) => ${s.name}>`;return la(Se(f,l))},ma=e=>{e>4&&(Q.get(e).refcount+=1)},va=e=>{var t=ne.toValue(e);Je(t),at(e)},ya=(e,t)=>{e=it(e,"_emval_take_value");var n=e.readValueFromPointer(t);return ne.toHandle(n)},ga=()=>{Oe("")},wa=(e,t,n)=>D.copyWithin(e,t,t+n),ba=()=>2147483648,Ca=e=>{var t=I.buffer,n=(e-t.byteLength+65535)/65536;try{return I.grow(n),yt(),1}catch{}},$a=e=>{var t=D.length;e>>>=0;var n=ba();if(e>n)return!1;for(var a=(h,y)=>h+(y-h%y)%y,s=1;s<=4;s*=2){var c=t*(1+.2/s);c=Math.min(c,e+100663296);var l=Math.min(n,a(Math.max(e,c),65536)),f=Ca(l);if(f)return!0}return!1},ct={},_a=()=>g||"./this.program",Pe=()=>{if(!Pe.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:_a()};for(var n in ct)ct[n]===void 0?delete t[n]:t[n]=ct[n];var a=[];for(var n in t)a.push(`${n}=${t[n]}`);Pe.strings=a}return Pe.strings},Sa=(e,t)=>{for(var n=0;n>0]=e.charCodeAt(n);A[t>>0]=0},Pa=(e,t)=>{var n=0;return Pe().forEach((a,s)=>{var c=t+n;x[e+s*4>>2]=c,Sa(a,c),n+=a.length+1}),0},Ta=(e,t)=>{var n=Pe();x[e>>2]=n.length;var a=0;return n.forEach(s=>a+=s.length+1),x[t>>2]=a,0},Ea=e=>e,We=e=>e%4===0&&(e%100!==0||e%400===0),Oa=(e,t)=>{for(var n=0,a=0;a<=t;n+=e[a++]);return n},Bt=[31,29,31,30,31,30,31,31,30,31,30,31],qt=[31,28,31,30,31,30,31,31,30,31,30,31],Ma=(e,t)=>{for(var n=new Date(e.getTime());t>0;){var a=We(n.getFullYear()),s=n.getMonth(),c=(a?Bt:qt)[s];if(t>c-n.getDate())t-=c-n.getDate()+1,n.setDate(1),s<11?n.setMonth(s+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1));else return n.setDate(n.getDate()+t),n}return n};function Aa(e,t,n){var a=Wt(e)+1,s=new Array(a);return jt(e,s,0,s.length),s}var Da=(e,t)=>{A.set(e,t)},Ra=(e,t,n,a)=>{var s=x[a+40>>2],c={tm_sec:Y[a>>2],tm_min:Y[a+4>>2],tm_hour:Y[a+8>>2],tm_mday:Y[a+12>>2],tm_mon:Y[a+16>>2],tm_year:Y[a+20>>2],tm_wday:Y[a+24>>2],tm_yday:Y[a+28>>2],tm_isdst:Y[a+32>>2],tm_gmtoff:Y[a+36>>2],tm_zone:s?st(s):""},l=st(n),f={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var h in f)l=l.replace(new RegExp(h,"g"),f[h]);var y=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b=["January","February","March","April","May","June","July","August","September","October","November","December"];function T(v,S,V){for(var G=typeof v=="number"?v.toString():v||"";G.length0?1:0}var G;return(G=V(v.getFullYear()-S.getFullYear()))===0&&(G=V(v.getMonth()-S.getMonth()))===0&&(G=V(v.getDate()-S.getDate())),G}function k(v){switch(v.getDay()){case 0:return new Date(v.getFullYear()-1,11,29);case 1:return v;case 2:return new Date(v.getFullYear(),0,3);case 3:return new Date(v.getFullYear(),0,2);case 4:return new Date(v.getFullYear(),0,1);case 5:return new Date(v.getFullYear()-1,11,31);case 6:return new Date(v.getFullYear()-1,11,30)}}function H(v){var S=Ma(new Date(v.tm_year+1900,0,1),v.tm_yday),V=new Date(S.getFullYear(),0,4),G=new Date(S.getFullYear()+1,0,4),he=k(V),He=k(G);return O(he,S)<=0?O(He,S)<=0?S.getFullYear()+1:S.getFullYear():S.getFullYear()-1}var R={"%a":v=>y[v.tm_wday].substring(0,3),"%A":v=>y[v.tm_wday],"%b":v=>b[v.tm_mon].substring(0,3),"%B":v=>b[v.tm_mon],"%C":v=>{var S=v.tm_year+1900;return E(S/100|0,2)},"%d":v=>E(v.tm_mday,2),"%e":v=>T(v.tm_mday,2," "),"%g":v=>H(v).toString().substring(2),"%G":v=>H(v),"%H":v=>E(v.tm_hour,2),"%I":v=>{var S=v.tm_hour;return S==0?S=12:S>12&&(S-=12),E(S,2)},"%j":v=>E(v.tm_mday+Oa(We(v.tm_year+1900)?Bt:qt,v.tm_mon-1),3),"%m":v=>E(v.tm_mon+1,2),"%M":v=>E(v.tm_min,2),"%n":()=>` -`,"%p":v=>v.tm_hour>=0&&v.tm_hour<12?"AM":"PM","%S":v=>E(v.tm_sec,2),"%t":()=>" ","%u":v=>v.tm_wday||7,"%U":v=>{var S=v.tm_yday+7-v.tm_wday;return E(Math.floor(S/7),2)},"%V":v=>{var S=Math.floor((v.tm_yday+7-(v.tm_wday+6)%7)/7);if((v.tm_wday+371-v.tm_yday-2)%7<=2&&S++,S){if(S==53){var V=(v.tm_wday+371-v.tm_yday)%7;V!=4&&(V!=3||!We(v.tm_year))&&(S=1)}}else{S=52;var G=(v.tm_wday+7-v.tm_yday-1)%7;(G==4||G==5&&We(v.tm_year%400-1))&&S++}return E(S,2)},"%w":v=>v.tm_wday,"%W":v=>{var S=v.tm_yday+7-(v.tm_wday+6)%7;return E(Math.floor(S/7),2)},"%y":v=>(v.tm_year+1900).toString().substring(2),"%Y":v=>v.tm_year+1900,"%z":v=>{var S=v.tm_gmtoff,V=S>=0;return S=Math.abs(S)/60,S=S/60*100+S%60,(V?"+":"-")+("0000"+S).slice(-4)},"%Z":v=>v.tm_zone,"%%":()=>"%"};l=l.replace(/%%/g,"\0\0");for(var h in R)l.includes(h)&&(l=l.replace(new RegExp(h,"g"),R[h](c)));l=l.replace(/\0\0/g,"%");var z=Aa(l);return z.length>t?0:(Da(z,e),z.length-1)},xa=(e,t,n,a,s)=>Ra(e,t,n,a);St=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},an(),pe=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},yn(),pn(),Pn(),It=o.UnboundTypeError=Mn(Error,"UnboundTypeError"),In(),kn();var Ia={s:zr,u:Yr,b:Qr,g:Xr,q:Kr,J:Zr,f:en,V:tn,d:Jr,da:rn,Q:nn,_:sn,ca:An,ba:Rn,w:xn,Y:Un,x:Wn,h:Ln,L:Vn,M:Bn,t:Gn,o:Nn,K:Jn,C:ra,A:na,ea:aa,$:ia,R:oa,ha:at,fa:ca,Z:ha,N:ma,O:va,aa:ya,B:ga,X:wa,W:$a,T:Pa,U:Ta,E:Qa,D:Wa,F:Ja,n:Xa,a:Fa,e:Ha,m:ja,k:Ba,H:za,v:Ga,G:Ya,z:Za,P:ti,l:Va,j:La,c:Ua,p:ka,I:Na,r:Ka,i:qa,y:ei,ga:Ea,S:xa},q=Nr(),ae=o._free=e=>(ae=o._free=q.ka)(e),lt=o._malloc=e=>(lt=o._malloc=q.la)(e),Gt=e=>(Gt=q.na)(e),F=(e,t)=>(F=q.oa)(e,t),Te=e=>(Te=q.pa)(e),W=()=>(W=q.qa)(),L=e=>(L=q.ra)(e),Nt=e=>(Nt=q.sa)(e),zt=e=>(zt=q.ta)(e),Yt=(e,t,n)=>(Yt=q.ua)(e,t,n),Jt=e=>(Jt=q.va)(e);o.dynCall_viijii=(e,t,n,a,s,c,l)=>(o.dynCall_viijii=q.wa)(e,t,n,a,s,c,l);var Qt=o.dynCall_jiiii=(e,t,n,a,s)=>(Qt=o.dynCall_jiiii=q.xa)(e,t,n,a,s);o.dynCall_iiiiij=(e,t,n,a,s,c,l)=>(o.dynCall_iiiiij=q.ya)(e,t,n,a,s,c,l),o.dynCall_iiiiijj=(e,t,n,a,s,c,l,f,h)=>(o.dynCall_iiiiijj=q.za)(e,t,n,a,s,c,l,f,h),o.dynCall_iiiiiijj=(e,t,n,a,s,c,l,f,h,y)=>(o.dynCall_iiiiiijj=q.Aa)(e,t,n,a,s,c,l,f,h,y);function Fa(e,t){var n=W();try{return j(e)(t)}catch(a){if(L(n),a!==a+0)throw a;F(1,0)}}function ka(e,t,n,a){var s=W();try{j(e)(t,n,a)}catch(c){if(L(s),c!==c+0)throw c;F(1,0)}}function Ua(e,t,n){var a=W();try{j(e)(t,n)}catch(s){if(L(a),s!==s+0)throw s;F(1,0)}}function ja(e,t,n,a){var s=W();try{return j(e)(t,n,a)}catch(c){if(L(s),c!==c+0)throw c;F(1,0)}}function Wa(e,t,n,a,s){var c=W();try{return j(e)(t,n,a,s)}catch(l){if(L(c),l!==l+0)throw l;F(1,0)}}function La(e,t){var n=W();try{j(e)(t)}catch(a){if(L(n),a!==a+0)throw a;F(1,0)}}function Ha(e,t,n){var a=W();try{return j(e)(t,n)}catch(s){if(L(a),s!==s+0)throw s;F(1,0)}}function Va(e){var t=W();try{j(e)()}catch(n){if(L(t),n!==n+0)throw n;F(1,0)}}function Ba(e,t,n,a,s){var c=W();try{return j(e)(t,n,a,s)}catch(l){if(L(c),l!==l+0)throw l;F(1,0)}}function qa(e,t,n,a,s,c,l,f,h,y,b){var T=W();try{j(e)(t,n,a,s,c,l,f,h,y,b)}catch(E){if(L(T),E!==E+0)throw E;F(1,0)}}function Ga(e,t,n,a,s,c,l){var f=W();try{return j(e)(t,n,a,s,c,l)}catch(h){if(L(f),h!==h+0)throw h;F(1,0)}}function Na(e,t,n,a,s){var c=W();try{j(e)(t,n,a,s)}catch(l){if(L(c),l!==l+0)throw l;F(1,0)}}function za(e,t,n,a,s,c){var l=W();try{return j(e)(t,n,a,s,c)}catch(f){if(L(l),f!==f+0)throw f;F(1,0)}}function Ya(e,t,n,a,s,c,l,f){var h=W();try{return j(e)(t,n,a,s,c,l,f)}catch(y){if(L(h),y!==y+0)throw y;F(1,0)}}function Ja(e,t,n,a){var s=W();try{return j(e)(t,n,a)}catch(c){if(L(s),c!==c+0)throw c;F(1,0)}}function Qa(e,t,n,a){var s=W();try{return j(e)(t,n,a)}catch(c){if(L(s),c!==c+0)throw c;F(1,0)}}function Xa(e){var t=W();try{return j(e)()}catch(n){if(L(t),n!==n+0)throw n;F(1,0)}}function Ka(e,t,n,a,s,c,l,f){var h=W();try{j(e)(t,n,a,s,c,l,f)}catch(y){if(L(h),y!==y+0)throw y;F(1,0)}}function Za(e,t,n,a,s,c,l,f,h,y,b,T){var E=W();try{return j(e)(t,n,a,s,c,l,f,h,y,b,T)}catch(O){if(L(E),O!==O+0)throw O;F(1,0)}}function ei(e,t,n,a,s,c,l,f,h,y,b,T,E,O,k,H){var R=W();try{j(e)(t,n,a,s,c,l,f,h,y,b,T,E,O,k,H)}catch(z){if(L(R),z!==z+0)throw z;F(1,0)}}function ti(e,t,n,a,s){var c=W();try{return Qt(e,t,n,a,s)}catch(l){if(L(c),l!==l+0)throw l;F(1,0)}}var Le;we=function e(){Le||Xt(),Le||(we=e)};function Xt(){if(ue>0||(Fr(),ue>0))return;function e(){Le||(Le=!0,o.calledRun=!0,!B&&(kr(),u(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),Ur()))}o.setStatus?(o.setStatus("Running..."),setTimeout(function(){setTimeout(function(){o.setStatus("")},1),e()},1)):e()}if(o.preInit)for(typeof o.preInit=="function"&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Xt(),i.ready}})();function Fi(r){return ft(pt,r)}async function ki(r,i){return xi(pt,r,i)}async function Ui(r,i){return Ii(pt,r,i)}var Ee;class Ge extends EventTarget{constructor(i={}){var o;super(),ci(this,Ee,void 0);try{const u=(o=i==null?void 0:i.formats)==null?void 0:o.filter(d=>d!=="unknown");if((u==null?void 0:u.length)===0)throw new TypeError("Hint option provided, but is empty.");u==null||u.forEach(d=>{if(!Ve.has(d))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${d}' is not a valid enum value of type BarcodeFormat.`)}),li(this,Ee,u??[]),Fi().then(d=>{this.dispatchEvent(new CustomEvent("load",{detail:d}))}).catch(d=>{this.dispatchEvent(new CustomEvent("error",{detail:d}))})}catch(u){throw tr(u,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return di.filter(i=>i!=="unknown")}async detect(i){try{const o=await gi(i);if(o===null)return[];let u;try{wr(o)?u=await ki(o,{tryHarder:!0,formats:er(this,Ee).map(d=>Ve.get(d))}):u=await Ui(o,{tryHarder:!0,formats:er(this,Ee).map(d=>Ve.get(d))})}catch(d){throw console.error(d),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return u.map(d=>{const{topLeft:{x:p,y:g},topRight:{x:w,y:_},bottomLeft:{x:m,y:$},bottomRight:{x:P,y:C}}=d.position,U=Math.min(p,w,m,P),I=Math.min(g,_,$,C),B=Math.max(p,w,m,P),A=Math.max(g,_,$,C);return{boundingBox:new DOMRectReadOnly(U,I,B-U,A-I),rawValue:d.text,format:fi(d.format),cornerPoints:[{x:p,y:g},{x:w,y:_},{x:P,y:C},{x:m,y:$}]}})}catch(o){throw tr(o,"Failed to execute 'detect' on 'BarcodeDetector'")}}}Ee=new WeakMap;const ht=(r,i,o="error")=>{let u,d;const p=new Promise((g,w)=>{u=g,d=w,r.addEventListener(i,u),r.addEventListener(o,d)});return p.finally(()=>{r.removeEventListener(i,u),r.removeEventListener(o,d)}),p},ir=r=>new Promise(i=>setTimeout(i,r));class ji extends Error{constructor(){super("can't process cross-origin image"),this.name="DropImageFetchError"}}class _r extends Error{constructor(){super("this browser has no Stream API support"),this.name="StreamApiNotSupportedError"}}class Wi extends Error{constructor(){super("camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."),this.name="InsecureContextError"}}class Li extends Error{constructor(){super("Loading camera stream timed out after 6 seconds. If you are on iOS in PWA mode, this is a known issue (see https://github.com/gruhn/vue-qrcode-reader/issues/298)"),this.name="StreamLoadTimeoutError"}}let dt;const $o=r=>{dt=new Ge({formats:r})},_o=async(r,{detectHandler:i,locateHandler:o,minDelay:u,formats:d})=>{console.debug("[vue-qrcode-reader] start scanning"),dt=new Ge({formats:d});const p=g=>async w=>{if(r.readyState===0)console.debug("[vue-qrcode-reader] stop scanning: video element readyState is 0");else{const{lastScanned:_,contentBefore:m,lastScanHadContent:$}=g;if(w-_!m.includes(B.rawValue));C&&i(P);const U=P.length>0;U&&o(P),!U&&$&&o(P);const I={lastScanned:w,lastScanHadContent:U,contentBefore:C?P.map(B=>B.rawValue):m};window.requestAnimationFrame(p(I))}}};p({lastScanned:performance.now(),contentBefore:[],lastScanHadContent:!1})(performance.now())},Hi=async r=>{if(r.startsWith("http")&&r.includes(location.host)===!1)throw new ji;const i=document.createElement("img");return i.src=r,await ht(i,"load"),i},So=async(r,i=["qr_code"])=>await new Ge({formats:i}).detect(r),Po=async(r,i=["qr_code"])=>{const o=new Ge({formats:i}),u=await Hi(r);return await o.detect(u)};var Sr={},J={};Object.defineProperty(J,"__esModule",{value:!0});J.compactObject=Er;J.deprecated=Qi;var Vi=J.detectBrowser=Xi;J.disableLog=zi;J.disableWarnings=Yi;J.extractVersion=Be;J.filterStats=Ki;J.log=Ji;J.walkStats=qe;J.wrapPeerConnectionEvent=Ni;function Bi(r,i,o){return i=qi(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}function qi(r){var i=Gi(r,"string");return oe(i)==="symbol"?i:String(i)}function Gi(r,i){if(oe(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var u=o.call(r,i||"default");if(oe(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}function oe(r){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},oe(r)}var Pr=!0,Tr=!0;function Be(r,i,o){var u=r.match(i);return u&&u.length>=o&&parseInt(u[o],10)}function Ni(r,i,o){if(r.RTCPeerConnection){var u=r.RTCPeerConnection.prototype,d=u.addEventListener;u.addEventListener=function(g,w){if(g!==i)return d.apply(this,arguments);var _=function($){var P=o($);P&&(w.handleEvent?w.handleEvent(P):w(P))};return this._eventMap=this._eventMap||{},this._eventMap[i]||(this._eventMap[i]=new Map),this._eventMap[i].set(w,_),d.apply(this,[g,_])};var p=u.removeEventListener;u.removeEventListener=function(g,w){if(g!==i||!this._eventMap||!this._eventMap[i])return p.apply(this,arguments);if(!this._eventMap[i].has(w))return p.apply(this,arguments);var _=this._eventMap[i].get(w);return this._eventMap[i].delete(w),this._eventMap[i].size===0&&delete this._eventMap[i],Object.keys(this._eventMap).length===0&&delete this._eventMap,p.apply(this,[g,_])},Object.defineProperty(u,"on"+i,{get:function(){return this["_on"+i]},set:function(w){this["_on"+i]&&(this.removeEventListener(i,this["_on"+i]),delete this["_on"+i]),w&&this.addEventListener(i,this["_on"+i]=w)},enumerable:!0,configurable:!0})}}function zi(r){return typeof r!="boolean"?new Error("Argument type: "+oe(r)+". Please use a boolean."):(Pr=r,r?"adapter.js logging disabled":"adapter.js logging enabled")}function Yi(r){return typeof r!="boolean"?new Error("Argument type: "+oe(r)+". Please use a boolean."):(Tr=!r,"adapter.js deprecation warnings "+(r?"disabled":"enabled"))}function Ji(){if((typeof window>"u"?"undefined":oe(window))==="object"){if(Pr)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function Qi(r,i){Tr&&console.warn(r+" is deprecated, please use "+i+" instead.")}function Xi(r){var i={browser:null,version:null};if(typeof r>"u"||!r.navigator||!r.navigator.userAgent)return i.browser="Not a browser.",i;var o=r.navigator;if(o.mozGetUserMedia)i.browser="firefox",i.version=Be(o.userAgent,/Firefox\/(\d+)\./,1);else if(o.webkitGetUserMedia||r.isSecureContext===!1&&r.webkitRTCPeerConnection)i.browser="chrome",i.version=Be(o.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(r.RTCPeerConnection&&o.userAgent.match(/AppleWebKit\/(\d+)\./))i.browser="safari",i.version=Be(o.userAgent,/AppleWebKit\/(\d+)\./,1),i.supportsUnifiedPlan=r.RTCRtpTransceiver&&"currentDirection"in r.RTCRtpTransceiver.prototype;else return i.browser="Not a supported browser.",i;return i}function or(r){return Object.prototype.toString.call(r)==="[object Object]"}function Er(r){return or(r)?Object.keys(r).reduce(function(i,o){var u=or(r[o]),d=u?Er(r[o]):r[o],p=u&&!Object.keys(d).length;return d===void 0||p?i:Object.assign(i,Bi({},o,d))},{}):r}function qe(r,i,o){!i||o.has(i.id)||(o.set(i.id,i),Object.keys(i).forEach(function(u){u.endsWith("Id")?qe(r,r.get(i[u]),o):u.endsWith("Ids")&&i[u].forEach(function(d){qe(r,r.get(d),o)})}))}function Ki(r,i,o){var u=o?"outbound-rtp":"inbound-rtp",d=new Map;if(i===null)return d;var p=[];return r.forEach(function(g){g.type==="track"&&g.trackIdentifier===i.id&&p.push(g)}),p.forEach(function(g){r.forEach(function(w){w.type===u&&w.trackId===g.id&&qe(r,w,d)})}),d}Object.defineProperty(Sr,"__esModule",{value:!0});var Zi=Sr.shimGetUserMedia=ro,eo=to(J);function Or(r){if(typeof WeakMap!="function")return null;var i=new WeakMap,o=new WeakMap;return(Or=function(d){return d?o:i})(r)}function to(r,i){if(r&&r.__esModule)return r;if(r===null||ie(r)!=="object"&&typeof r!="function")return{default:r};var o=Or(i);if(o&&o.has(r))return o.get(r);var u={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in r)if(p!=="default"&&Object.prototype.hasOwnProperty.call(r,p)){var g=d?Object.getOwnPropertyDescriptor(r,p):null;g&&(g.get||g.set)?Object.defineProperty(u,p,g):u[p]=r[p]}return u.default=r,o&&o.set(r,u),u}function ie(r){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ie(r)}var sr=eo.log;function ro(r,i){var o=r&&r.navigator;if(o.mediaDevices){var u=function(m){if(ie(m)!=="object"||m.mandatory||m.optional)return m;var $={};return Object.keys(m).forEach(function(P){if(!(P==="require"||P==="advanced"||P==="mediaSource")){var C=ie(m[P])==="object"?m[P]:{ideal:m[P]};C.exact!==void 0&&typeof C.exact=="number"&&(C.min=C.max=C.exact);var U=function(A,D){return A?A+D.charAt(0).toUpperCase()+D.slice(1):D==="deviceId"?"sourceId":D};if(C.ideal!==void 0){$.optional=$.optional||[];var I={};typeof C.ideal=="number"?(I[U("min",P)]=C.ideal,$.optional.push(I),I={},I[U("max",P)]=C.ideal,$.optional.push(I)):(I[U("",P)]=C.ideal,$.optional.push(I))}C.exact!==void 0&&typeof C.exact!="number"?($.mandatory=$.mandatory||{},$.mandatory[U("",P)]=C.exact):["min","max"].forEach(function(B){C[B]!==void 0&&($.mandatory=$.mandatory||{},$.mandatory[U(B,P)]=C[B])})}}),m.advanced&&($.optional=($.optional||[]).concat(m.advanced)),$},d=function(m,$){if(i.version>=61)return $(m);if(m=JSON.parse(JSON.stringify(m)),m&&ie(m.audio)==="object"){var P=function(A,D,X){D in A&&!(X in A)&&(A[X]=A[D],delete A[D])};m=JSON.parse(JSON.stringify(m)),P(m.audio,"autoGainControl","googAutoGainControl"),P(m.audio,"noiseSuppression","googNoiseSuppression"),m.audio=u(m.audio)}if(m&&ie(m.video)==="object"){var C=m.video.facingMode;C=C&&(ie(C)==="object"?C:{ideal:C});var U=i.version<66;if(C&&(C.exact==="user"||C.exact==="environment"||C.ideal==="user"||C.ideal==="environment")&&!(o.mediaDevices.getSupportedConstraints&&o.mediaDevices.getSupportedConstraints().facingMode&&!U)){delete m.video.facingMode;var I;if(C.exact==="environment"||C.ideal==="environment"?I=["back","rear"]:(C.exact==="user"||C.ideal==="user")&&(I=["front"]),I)return o.mediaDevices.enumerateDevices().then(function(B){B=B.filter(function(D){return D.kind==="videoinput"});var A=B.find(function(D){return I.some(function(X){return D.label.toLowerCase().includes(X)})});return!A&&B.length&&I.includes("back")&&(A=B[B.length-1]),A&&(m.video.deviceId=C.exact?{exact:A.deviceId}:{ideal:A.deviceId}),m.video=u(m.video),sr("chrome: "+JSON.stringify(m)),$(m)})}m.video=u(m.video)}return sr("chrome: "+JSON.stringify(m)),$(m)},p=function(m){return i.version>=64?m:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[m.name]||m.name,message:m.message,constraint:m.constraint||m.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},g=function(m,$,P){d(m,function(C){o.webkitGetUserMedia(C,$,function(U){P&&P(p(U))})})};if(o.getUserMedia=g.bind(o),o.mediaDevices.getUserMedia){var w=o.mediaDevices.getUserMedia.bind(o.mediaDevices);o.mediaDevices.getUserMedia=function(_){return d(_,function(m){return w(m).then(function($){if(m.audio&&!$.getAudioTracks().length||m.video&&!$.getVideoTracks().length)throw $.getTracks().forEach(function(P){P.stop()}),new DOMException("","NotFoundError");return $},function($){return Promise.reject(p($))})})}}}}var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});var no=Mr.shimGetUserMedia=oo,ao=io(J);function Ar(r){if(typeof WeakMap!="function")return null;var i=new WeakMap,o=new WeakMap;return(Ar=function(d){return d?o:i})(r)}function io(r,i){if(r&&r.__esModule)return r;if(r===null||me(r)!=="object"&&typeof r!="function")return{default:r};var o=Ar(i);if(o&&o.has(r))return o.get(r);var u={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in r)if(p!=="default"&&Object.prototype.hasOwnProperty.call(r,p)){var g=d?Object.getOwnPropertyDescriptor(r,p):null;g&&(g.get||g.set)?Object.defineProperty(u,p,g):u[p]=r[p]}return u.default=r,o&&o.set(r,u),u}function me(r){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},me(r)}function oo(r,i){var o=r&&r.navigator,u=r&&r.MediaStreamTrack;if(o.getUserMedia=function(_,m,$){ao.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),o.mediaDevices.getUserMedia(_).then(m,$)},!(i.version>55&&"autoGainControl"in o.mediaDevices.getSupportedConstraints())){var d=function(m,$,P){$ in m&&!(P in m)&&(m[P]=m[$],delete m[$])},p=o.mediaDevices.getUserMedia.bind(o.mediaDevices);if(o.mediaDevices.getUserMedia=function(_){return me(_)==="object"&&me(_.audio)==="object"&&(_=JSON.parse(JSON.stringify(_)),d(_.audio,"autoGainControl","mozAutoGainControl"),d(_.audio,"noiseSuppression","mozNoiseSuppression")),p(_)},u&&u.prototype.getSettings){var g=u.prototype.getSettings;u.prototype.getSettings=function(){var _=g.apply(this,arguments);return d(_,"mozAutoGainControl","autoGainControl"),d(_,"mozNoiseSuppression","noiseSuppression"),_}}if(u&&u.prototype.applyConstraints){var w=u.prototype.applyConstraints;u.prototype.applyConstraints=function(_){return this.kind==="audio"&&me(_)==="object"&&(_=JSON.parse(JSON.stringify(_)),d(_,"autoGainControl","mozAutoGainControl"),d(_,"noiseSuppression","mozNoiseSuppression")),w.apply(this,[_])}}}}var te={};Object.defineProperty(te,"__esModule",{value:!0});te.shimAudioContext=yo;te.shimCallbacksAPI=fo;te.shimConstraints=xr;te.shimCreateOfferLegacy=vo;var so=te.shimGetUserMedia=po;te.shimLocalStreamsAPI=co;te.shimRTCIceServerUrls=ho;te.shimRemoteStreamsAPI=lo;te.shimTrackEventTransceiver=mo;var Dr=uo(J);function Rr(r){if(typeof WeakMap!="function")return null;var i=new WeakMap,o=new WeakMap;return(Rr=function(d){return d?o:i})(r)}function uo(r,i){if(r&&r.__esModule)return r;if(r===null||se(r)!=="object"&&typeof r!="function")return{default:r};var o=Rr(i);if(o&&o.has(r))return o.get(r);var u={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in r)if(p!=="default"&&Object.prototype.hasOwnProperty.call(r,p)){var g=d?Object.getOwnPropertyDescriptor(r,p):null;g&&(g.get||g.set)?Object.defineProperty(u,p,g):u[p]=r[p]}return u.default=r,o&&o.set(r,u),u}function se(r){"@babel/helpers - typeof";return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},se(r)}function co(r){if(!(se(r)!=="object"||!r.RTCPeerConnection)){if("getLocalStreams"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in r.RTCPeerConnection.prototype)){var i=r.RTCPeerConnection.prototype.addTrack;r.RTCPeerConnection.prototype.addStream=function(u){var d=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(u)||this._localStreams.push(u),u.getAudioTracks().forEach(function(p){return i.call(d,p,u)}),u.getVideoTracks().forEach(function(p){return i.call(d,p,u)})},r.RTCPeerConnection.prototype.addTrack=function(u){for(var d=this,p=arguments.length,g=new Array(p>1?p-1:0),w=1;w=0)){u._remoteStreams.push(p);var g=new Event("addstream");g.stream=p,u.dispatchEvent(g)}})}),i.apply(u,arguments)}}}function fo(r){if(!(se(r)!=="object"||!r.RTCPeerConnection)){var i=r.RTCPeerConnection.prototype,o=i.createOffer,u=i.createAnswer,d=i.setLocalDescription,p=i.setRemoteDescription,g=i.addIceCandidate;i.createOffer=function(m,$){var P=arguments.length>=2?arguments[2]:arguments[0],C=o.apply(this,[P]);return $?(C.then(m,$),Promise.resolve()):C},i.createAnswer=function(m,$){var P=arguments.length>=2?arguments[2]:arguments[0],C=u.apply(this,[P]);return $?(C.then(m,$),Promise.resolve()):C};var w=function(m,$,P){var C=d.apply(this,[m]);return P?(C.then($,P),Promise.resolve()):C};i.setLocalDescription=w,w=function(m,$,P){var C=p.apply(this,[m]);return P?(C.then($,P),Promise.resolve()):C},i.setRemoteDescription=w,w=function(m,$,P){var C=g.apply(this,[m]);return P?(C.then($,P),Promise.resolve()):C},i.addIceCandidate=w}}function po(r){var i=r&&r.navigator;if(i.mediaDevices&&i.mediaDevices.getUserMedia){var o=i.mediaDevices,u=o.getUserMedia.bind(o);i.mediaDevices.getUserMedia=function(d){return u(xr(d))}}!i.getUserMedia&&i.mediaDevices&&i.mediaDevices.getUserMedia&&(i.getUserMedia=(function(p,g,w){i.mediaDevices.getUserMedia(p).then(g,w)}).bind(i))}function xr(r){return r&&r.video!==void 0?Object.assign({},r,{video:Dr.compactObject(r.video)}):r}function ho(r){if(r.RTCPeerConnection){var i=r.RTCPeerConnection;r.RTCPeerConnection=function(u,d){if(u&&u.iceServers){for(var p=[],g=0;g{let i=!1,o;return(...u)=>(i||(o=r(u),i=!0),o)};function To(r,i){if(r===!1)throw new Error(i??"assertion failure")}function ur(r){throw new Error("this code should be unreachable")}const wo=go(()=>{const r=Vi(window);switch(r.browser){case"chrome":Zi(window,r);break;case"firefox":no(window,r);break;case"safari":so(window,r);break;default:throw new _r}});let ve=Promise.resolve({type:"stop",data:{}});async function cr(r,i,o){var w,_;if(console.debug("[vue-qrcode-reader] starting camera with constraints: ",JSON.stringify(i)),window.isSecureContext!==!0)throw new Wi;if(((w=navigator==null?void 0:navigator.mediaDevices)==null?void 0:w.getUserMedia)===void 0)throw new _r;wo(),console.debug("[vue-qrcode-reader] calling getUserMedia");const u=await navigator.mediaDevices.getUserMedia({audio:!1,video:i});r.srcObject!==void 0?r.srcObject=u:r.mozSrcObject!==void 0?r.mozSrcObject=u:window.URL.createObjectURL?r.src=window.URL.createObjectURL(u):window.webkitURL?r.src=window.webkitURL.createObjectURL(u):r.src=u.id,r.play(),console.debug("[vue-qrcode-reader] waiting for video element to load"),await Promise.race([ht(r,"loadeddata"),ir(6e3).then(()=>{throw new Li})]),console.debug("[vue-qrcode-reader] video element loaded"),await ir(500);const[d]=u.getVideoTracks(),p=((_=d==null?void 0:d.getCapabilities)==null?void 0:_.call(d))??{};let g=!1;return o&&p.torch&&(await d.applyConstraints({advanced:[{torch:!0}]}),g=!0),console.debug("[vue-qrcode-reader] camera ready"),{type:"start",data:{videoEl:r,stream:u,capabilities:p,constraints:i,isTorchOn:g}}}async function Eo(r,{constraints:i,torch:o,restart:u=!1}){ve=ve.then(p=>{if(p.type==="start"){const{data:{videoEl:g,stream:w,constraints:_,isTorchOn:m}}=p;return!u&&r===g&&i===_&&o===m?p:Ir(g,w,m).then(()=>cr(r,i,o))}else if(p.type==="stop"||p.type==="failed")return cr(r,i,o);ur()}).catch(p=>(console.debug(`[vue-qrcode-reader] starting camera failed with "${p}"`),{type:"failed",error:p}));const d=await ve;if(d.type==="stop")throw new Error("Something went wrong with the camera task queue (start task).");if(d.type==="failed")throw d.error;if(d.type==="start")return d.data.capabilities;ur()}async function Ir(r,i,o){console.debug("[vue-qrcode-reader] stopping camera"),r.src="",r.srcObject=null,r.load(),await ht(r,"error");for(const u of i.getTracks())o??await u.applyConstraints({advanced:[{torch:!1}]}),i.removeTrack(u),u.stop();return{type:"stop",data:{}}}async function Oo(){if(ve=ve.then(i=>{if(i.type==="stop"||i.type==="failed")return i;const{data:{videoEl:o,stream:u,isTorchOn:d}}=i;return Ir(o,u,d)}),(await ve).type==="start")throw new Error("Something went wrong with the camera task queue (stop task).")}export{Co as _,Po as a,To as b,Eo as c,$o as d,_o as k,So as p,Oo as s}; diff --git a/pr-preview/pr-442/assets/chunks/framework.Bgy0wF8y.js b/pr-preview/pr-442/assets/chunks/framework.Bgy0wF8y.js deleted file mode 100644 index 6d6f4d3e..00000000 --- a/pr-preview/pr-442/assets/chunks/framework.Bgy0wF8y.js +++ /dev/null @@ -1,2 +0,0 @@ -function Ei(e,t){const n=Object.create(null),i=e.split(",");for(let s=0;s!!n[s]}const te={},yt=[],Fe=()=>{},To=()=>!1,Gt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ti=e=>e.startsWith("onUpdate:"),ce=Object.assign,Ai=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ao=Object.prototype.hasOwnProperty,X=(e,t)=>Ao.call(e,t),k=Array.isArray,vt=e=>en(e)==="[object Map]",Rt=e=>en(e)==="[object Set]",ns=e=>en(e)==="[object Date]",q=e=>typeof e=="function",ie=e=>typeof e=="string",Ge=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",er=e=>(G(e)||q(e))&&q(e.then)&&q(e.catch),tr=Object.prototype.toString,en=e=>tr.call(e),So=e=>en(e).slice(8,-1),nr=e=>en(e)==="[object Object]",Si=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$t=Ei(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},jo=/-(\w)/g,Le=Fn(e=>e.replace(jo,(t,n)=>n?n.toUpperCase():"")),Oo=/\B([A-Z])/g,mt=Fn(e=>e.replace(Oo,"-$1").toLowerCase()),Ln=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),bn=Fn(e=>e?`on${Ln(e)}`:""),et=(e,t)=>!Object.is(e,t),wn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Tn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ro=e=>{const t=ie(e)?Number(e):NaN;return isNaN(t)?e:t};let is;const ci=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ji(e){if(k(e)){const t={};for(let n=0;n{if(n){const i=n.split(Po);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Oi(e){let t="";if(ie(e))t=e;else if(k(e))for(let n=0;ntn(n,t))}const Jc=e=>ie(e)?e:e==null?"":k(e)||G(e)&&(e.toString===tr||!q(e.toString))?JSON.stringify(e,sr,2):String(e),sr=(e,t)=>t&&t.__v_isRef?sr(e,t.value):vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],r)=>(n[Qn(i,r)+" =>"]=s,n),{})}:Rt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Qn(n))}:Ge(t)?Qn(t):G(t)&&!k(t)&&!nr(t)?String(t):t,Qn=(e,t="")=>{var n;return Ge(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ve;class Ho{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ve,!t&&ve&&(this.index=(ve.scopes||(ve.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ve;try{return ve=this,t()}finally{ve=n}}}on(){ve=this}off(){ve=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},or=e=>(e.w&tt)>0,lr=e=>(e.n&tt)>0,Uo=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(u==="length"||!Ge(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":k(e)?Si(n)&&l.push(o.get("length")):(l.push(o.get(ut)),vt(e)&&l.push(o.get(ui)));break;case"delete":k(e)||(l.push(o.get(ut)),vt(e)&&l.push(o.get(ui)));break;case"set":vt(e)&&l.push(o.get(ut));break}if(l.length===1)l[0]&&pi(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);pi(Mi(a))}}function pi(e,t){const n=k(e)?e:[...e];for(const i of n)i.computed&&rs(i);for(const i of n)i.computed||rs(i)}function rs(e,t){(e!==je||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ko(e,t){var n;return(n=An.get(e))==null?void 0:n.get(t)}const Vo=Ei("__proto__,__v_isRef,__isVue"),fr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ge)),os=qo();function qo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Q(this);for(let r=0,o=this.length;r{e[t]=function(...n){Mt();const i=Q(this)[t].apply(this,n);return Pt(),i}}),e}function Wo(e){const t=Q(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ur{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const s=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(s?r?rl:hr:r?mr:dr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=k(t);if(!s){if(o&&X(os,n))return Reflect.get(os,n,i);if(n==="hasOwnProperty")return Wo}const l=Reflect.get(t,n,i);return(Ge(n)?fr.has(n):Vo(n))||(s||xe(t,"get",n),r)?l:pe(l)?o&&Si(n)?l:l.value:G(l)?s?Hn(l):Nn(l):l}}class pr extends ur{constructor(t=!1){super(!1,t)}set(t,n,i,s){let r=t[n];if(!this._shallow){const a=Et(r);if(!Sn(i)&&!Et(i)&&(r=Q(r),i=Q(i)),!k(t)&&pe(r)&&!pe(i))return a?!1:(r.value=i,!0)}const o=k(t)&&Si(n)?Number(n)e,kn=e=>Reflect.getPrototypeOf(e);function ln(e,t,n=!1,i=!1){e=e.__v_raw;const s=Q(e),r=Q(t);n||(et(t,r)&&xe(s,"get",t),xe(s,"get",r));const{has:o}=kn(s),l=i?Ii:n?ki:Wt;if(o.call(s,t))return l(e.get(t));if(o.call(s,r))return l(e.get(r));e!==s&&e.get(t)}function an(e,t=!1){const n=this.__v_raw,i=Q(n),s=Q(e);return t||(et(e,s)&&xe(i,"has",e),xe(i,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function cn(e,t=!1){return e=e.__v_raw,!t&&xe(Q(e),"iterate",ut),Reflect.get(e,"size",e)}function ls(e){e=Q(e);const t=Q(this);return kn(t).has.call(t,e)||(t.add(e),De(t,"add",e,e)),this}function as(e,t){t=Q(t);const n=Q(this),{has:i,get:s}=kn(n);let r=i.call(n,e);r||(e=Q(e),r=i.call(n,e));const o=s.call(n,e);return n.set(e,t),r?et(t,o)&&De(n,"set",e,t):De(n,"add",e,t),this}function cs(e){const t=Q(this),{has:n,get:i}=kn(t);let s=n.call(t,e);s||(e=Q(e),s=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return s&&De(t,"delete",e,void 0),r}function fs(){const e=Q(this),t=e.size!==0,n=e.clear();return t&&De(e,"clear",void 0,void 0),n}function fn(e,t){return function(i,s){const r=this,o=r.__v_raw,l=Q(o),a=t?Ii:e?ki:Wt;return!e&&xe(l,"iterate",ut),o.forEach((c,u)=>i.call(s,a(c),a(u),r))}}function un(e,t,n){return function(...i){const s=this.__v_raw,r=Q(s),o=vt(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=s[e](...i),u=n?Ii:t?ki:Wt;return!t&&xe(r,"iterate",a?ui:ut),{next(){const{value:d,done:g}=c.next();return g?{value:d,done:g}:{value:l?[u(d[0]),u(d[1])]:u(d),done:g}},[Symbol.iterator](){return this}}}}function Ke(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qo(){const e={get(r){return ln(this,r)},get size(){return cn(this)},has:an,add:ls,set:as,delete:cs,clear:fs,forEach:fn(!1,!1)},t={get(r){return ln(this,r,!1,!0)},get size(){return cn(this)},has:an,add:ls,set:as,delete:cs,clear:fs,forEach:fn(!1,!0)},n={get(r){return ln(this,r,!0)},get size(){return cn(this,!0)},has(r){return an.call(this,r,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:fn(!0,!1)},i={get(r){return ln(this,r,!0,!0)},get size(){return cn(this,!0)},has(r){return an.call(this,r,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=un(r,!1,!1),n[r]=un(r,!0,!1),t[r]=un(r,!1,!0),i[r]=un(r,!0,!0)}),[e,n,t,i]}const[Zo,Go,el,tl]=Qo();function Fi(e,t){const n=t?e?tl:el:e?Go:Zo;return(i,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(X(n,s)&&s in i?n:i,s,r)}const nl={get:Fi(!1,!1)},il={get:Fi(!1,!0)},sl={get:Fi(!0,!1)},dr=new WeakMap,mr=new WeakMap,hr=new WeakMap,rl=new WeakMap;function ol(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ll(e){return e.__v_skip||!Object.isExtensible(e)?0:ol(So(e))}function Nn(e){return Et(e)?e:Li(e,!1,Yo,nl,dr)}function al(e){return Li(e,!1,Xo,il,mr)}function Hn(e){return Li(e,!0,Jo,sl,hr)}function Li(e,t,n,i,s){if(!G(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=s.get(e);if(r)return r;const o=ll(e);if(o===0)return e;const l=new Proxy(e,o===2?i:n);return s.set(e,l),l}function bt(e){return Et(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function Et(e){return!!(e&&e.__v_isReadonly)}function Sn(e){return!!(e&&e.__v_isShallow)}function gr(e){return bt(e)||Et(e)}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function Dt(e){return En(e,"__v_skip",!0),e}const Wt=e=>G(e)?Nn(e):e,ki=e=>G(e)?Hn(e):e;function Ni(e){Xe&&je&&(e=Q(e),cr(e.dep||(e.dep=Mi())))}function Hi(e,t){e=Q(e);const n=e.dep;n&&pi(n)}function pe(e){return!!(e&&e.__v_isRef===!0)}function ae(e){return xr(e,!1)}function $i(e){return xr(e,!0)}function xr(e,t){return pe(e)?e:new cl(e,t)}class cl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Q(t),this._value=n?t:Wt(t)}get value(){return Ni(this),this._value}set value(t){const n=this.__v_isShallow||Sn(t)||Et(t);t=n?t:Q(t),et(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Wt(t),Hi(this))}}function yr(e){return pe(e)?e.value:e}const fl={get:(e,t,n)=>yr(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return pe(s)&&!pe(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function vr(e){return bt(e)?e:new Proxy(e,fl)}class ul{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Ni(this),()=>Hi(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function pl(e){return new ul(e)}class dl{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ko(Q(this._object),this._key)}}class ml{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function hl(e,t,n){return pe(e)?e:q(e)?new ml(e):G(e)&&arguments.length>1?gl(e,t,n):ae(e)}function gl(e,t,n){const i=e[t];return pe(i)?i:new dl(e,t,n)}class xl{constructor(t,n,i,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Pi(t,()=>{this._dirty||(this._dirty=!0,Hi(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const t=Q(this);return Ni(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function yl(e,t,n=!1){let i,s;const r=q(e);return r?(i=e,s=Fe):(i=e.get,s=e.set),new xl(i,s,r||!s,n)}function Qe(e,t,n,i){let s;try{s=i?e(...i):e()}catch(r){nn(r,t,n)}return s}function Te(e,t,n,i){if(q(e)){const r=Qe(e,t,n,i);return r&&er(r)&&r.catch(o=>{nn(o,t,n)}),r}const s=[];for(let r=0;r>>1,s=de[i],r=Yt(s);rIe&&de.splice(t,1)}function _l(e){k(e)?wt.push(...e):(!$e||!$e.includes(e,e.allowRecurse?lt+1:lt))&&wt.push(e),wr()}function us(e,t,n=zt?Ie+1:0){for(;nYt(n)-Yt(i)),lt=0;lt<$e.length;lt++)$e[lt]();$e=null,lt=0}}const Yt=e=>e.id==null?1/0:e.id,Cl=(e,t)=>{const n=Yt(e)-Yt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _r(e){di=!1,zt=!0,de.sort(Cl);try{for(Ie=0;Ieie(b)?b.trim():b)),d&&(s=n.map(Tn))}let l,a=i[l=bn(t)]||i[l=bn(Le(t))];!a&&r&&(a=i[l=bn(mt(t))]),a&&Te(a,e,6,s);const c=i[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Te(c,e,6,s)}}function Cr(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const r=e.emits;let o={},l=!1;if(!q(e)){const a=c=>{const u=Cr(c,t,!0);u&&(l=!0,ce(o,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(G(e)&&i.set(e,null),null):(k(r)?r.forEach(a=>o[a]=null):ce(o,r),G(e)&&i.set(e,o),o)}function Un(e,t){return!e||!Gt(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,mt(t))||X(e,t))}let ue=null,Bn=null;function On(e){const t=ue;return ue=e,Bn=e&&e.type.__scopeId||null,t}function Xc(e){Bn=e}function Qc(){Bn=null}function Tl(e,t=ue,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&Es(-1);const r=On(t);let o;try{o=e(...s)}finally{On(r),i._d&&Es(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Zn(e){const{type:t,vnode:n,proxy:i,withProxy:s,props:r,propsOptions:[o],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:g,setupState:b,ctx:C,inheritAttrs:T}=e;let I,V;const L=On(e);try{if(n.shapeFlag&4){const m=s||i,M=m;I=Se(u.call(M,m,d,r,b,g,C)),V=a}else{const m=t;I=Se(m.length>1?m(r,{attrs:a,slots:l,emit:c}):m(r,null)),V=t.props?a:Al(a)}}catch(m){Vt.length=0,nn(m,e,1),I=se(we)}let x=I;if(V&&T!==!1){const m=Object.keys(V),{shapeFlag:M}=x;m.length&&M&7&&(o&&m.some(Ti)&&(V=Sl(V,o)),x=nt(x,V))}return n.dirs&&(x=nt(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),I=x,On(L),I}const Al=e=>{let t;for(const n in e)(n==="class"||n==="style"||Gt(n))&&((t||(t={}))[n]=e[n]);return t},Sl=(e,t)=>{const n={};for(const i in e)(!Ti(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function jl(e,t,n){const{props:i,children:s,component:r}=e,{props:o,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?ps(i,o,c):!!o;if(a&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Sr(e,t){t&&t.pendingBranch?k(e)?t.effects.push(...e):t.effects.push(e):_l(e)}function Ui(e,t){return Kn(e,null,t)}function ef(e,t){return Kn(e,null,{flush:"post"})}const pn={};function Ze(e,t,n){return Kn(e,t,n)}function Kn(e,t,{immediate:n,deep:i,flush:s,onTrack:r,onTrigger:o}=te){var l;const a=rr()===((l=le)==null?void 0:l.scope)?le:null;let c,u=!1,d=!1;if(pe(e)?(c=()=>e.value,u=Sn(e)):bt(e)?(c=()=>e,i=!0):k(e)?(d=!0,u=e.some(m=>bt(m)||Sn(m)),c=()=>e.map(m=>{if(pe(m))return m.value;if(bt(m))return ft(m);if(q(m))return Qe(m,a,2)})):q(e)?t?c=()=>Qe(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return g&&g(),Te(e,a,3,[b])}:c=Fe,t&&i){const m=c;c=()=>ft(m())}let g,b=m=>{g=L.onStop=()=>{Qe(m,a,4),g=L.onStop=void 0}},C;if(jt)if(b=Fe,t?n&&Te(t,a,3,[c(),d?[]:void 0,b]):c(),s==="sync"){const m=Aa();C=m.__watcherHandles||(m.__watcherHandles=[])}else return Fe;let T=d?new Array(e.length).fill(pn):pn;const I=()=>{if(L.active)if(t){const m=L.run();(i||u||(d?m.some((M,K)=>et(M,T[K])):et(m,T)))&&(g&&g(),Te(t,a,3,[m,T===pn?void 0:d&&T[0]===pn?[]:T,b]),T=m)}else L.run()};I.allowRecurse=!!t;let V;s==="sync"?V=I:s==="post"?V=()=>he(I,a&&a.suspense):(I.pre=!0,a&&(I.id=a.uid),V=()=>Dn(I));const L=new Pi(c,V);t?n?I():T=L.run():s==="post"?he(L.run.bind(L),a&&a.suspense):L.run();const x=()=>{L.stop(),a&&a.scope&&Ai(a.scope.effects,L)};return C&&C.push(x),x}function Ml(e,t,n){const i=this.proxy,s=ie(e)?e.includes(".")?jr(i,e):()=>i[e]:e.bind(i,i);let r;q(t)?r=t:(r=t.handler,n=t);const o=le;St(this);const l=Kn(s,r.bind(i),n);return o?St(o):pt(),l}function jr(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s{ft(n,t)});else if(nr(e))for(const n in e)ft(e[n],t);return e}function tf(e,t){const n=ue;if(n===null)return e;const i=Yn(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),Ir(()=>{e.isUnmounting=!0}),e}const _e=[Function,Array],Or={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_e,onEnter:_e,onAfterEnter:_e,onEnterCancelled:_e,onBeforeLeave:_e,onLeave:_e,onAfterLeave:_e,onLeaveCancelled:_e,onBeforeAppear:_e,onAppear:_e,onAfterAppear:_e,onAppearCancelled:_e},Il={name:"BaseTransition",props:Or,setup(e,{slots:t}){const n=zn(),i=Pl();let s;return()=>{const r=t.default&&Mr(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const T of r)if(T.type!==we){o=T;break}}const l=Q(e),{mode:a}=l;if(i.isLeaving)return Gn(o);const c=ms(o);if(!c)return Gn(o);const u=mi(c,l,i,n);hi(c,u);const d=n.subTree,g=d&&ms(d);let b=!1;const{getTransitionKey:C}=c.type;if(C){const T=C();s===void 0?s=T:T!==s&&(s=T,b=!0)}if(g&&g.type!==we&&(!at(c,g)||b)){const T=mi(g,l,i,n);if(hi(g,T),a==="out-in")return i.isLeaving=!0,T.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},Gn(o);a==="in-out"&&c.type!==we&&(T.delayLeave=(I,V,L)=>{const x=Rr(i,g);x[String(g.key)]=g,I[ze]=()=>{V(),I[ze]=void 0,delete u.delayedLeave},u.delayedLeave=L})}return o}}},Fl=Il;function Rr(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function mi(e,t,n,i){const{appear:s,mode:r,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:g,onAfterLeave:b,onLeaveCancelled:C,onBeforeAppear:T,onAppear:I,onAfterAppear:V,onAppearCancelled:L}=t,x=String(e.key),m=Rr(n,e),M=(j,F)=>{j&&Te(j,i,9,F)},K=(j,F)=>{const w=F[1];M(j,F),k(j)?j.every(H=>H.length<=1)&&w():j.length<=1&&w()},N={mode:r,persisted:o,beforeEnter(j){let F=l;if(!n.isMounted)if(s)F=T||l;else return;j[ze]&&j[ze](!0);const w=m[x];w&&at(e,w)&&w.el[ze]&&w.el[ze](),M(F,[j])},enter(j){let F=a,w=c,H=u;if(!n.isMounted)if(s)F=I||a,w=V||c,H=L||u;else return;let S=!1;const z=j[dn]=oe=>{S||(S=!0,oe?M(H,[j]):M(w,[j]),N.delayedLeave&&N.delayedLeave(),j[dn]=void 0)};F?K(F,[j,z]):z()},leave(j,F){const w=String(e.key);if(j[dn]&&j[dn](!0),n.isUnmounting)return F();M(d,[j]);let H=!1;const S=j[ze]=z=>{H||(H=!0,F(),z?M(C,[j]):M(b,[j]),j[ze]=void 0,m[w]===e&&delete m[w])};m[w]=e,g?K(g,[j,S]):S()},clone(j){return mi(j,t,n,i)}};return N}function Gn(e){if(sn(e))return e=nt(e),e.children=null,e}function ms(e){return sn(e)?e.children?e.children[0]:void 0:e}function hi(e,t){e.shapeFlag&6&&e.component?hi(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Mr(e,t=!1,n){let i=[],s=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function nf(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:r,suspensible:o=!0,onError:l}=e;let a=null,c,u=0;const d=()=>(u++,a=null,g()),g=()=>{let b;return a||(b=a=t().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),l)return new Promise((T,I)=>{l(C,()=>T(d()),()=>I(C),u+1)});throw C}).then(C=>b!==a&&a?a:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),c=C,C)))};return Bi({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return c},setup(){const b=le;if(c)return()=>ei(c,b);const C=L=>{a=null,nn(L,b,13,!i)};if(o&&b.suspense||jt)return g().then(L=>()=>ei(L,b)).catch(L=>(C(L),()=>i?se(i,{error:L}):null));const T=ae(!1),I=ae(),V=ae(!!s);return s&&setTimeout(()=>{V.value=!1},s),r!=null&&setTimeout(()=>{if(!T.value&&!I.value){const L=new Error(`Async component timed out after ${r}ms.`);C(L),I.value=L}},r),g().then(()=>{T.value=!0,b.parent&&sn(b.parent.vnode)&&Dn(b.parent.update)}).catch(L=>{C(L),I.value=L}),()=>{if(T.value&&c)return ei(c,b);if(I.value&&i)return se(i,{error:I.value});if(n&&!V.value)return se(n)}}})}function ei(e,t){const{ref:n,props:i,children:s,ce:r}=t.vnode,o=se(e,i,s);return o.ref=n,o.ce=r,delete t.vnode.ce,o}const sn=e=>e.type.__isKeepAlive;function Ll(e,t){Pr(e,"a",t)}function kl(e,t){Pr(e,"da",t)}function Pr(e,t,n=le){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Vn(t,i,n),n){let s=n.parent;for(;s&&s.parent;)sn(s.parent.vnode)&&Nl(i,t,n,s),s=s.parent}}function Nl(e,t,n,i){const s=Vn(t,e,i,!0);qn(()=>{Ai(i[t],s)},n)}function Vn(e,t,n=le,i=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Mt(),St(n);const l=Te(t,n,e,o);return pt(),Pt(),l});return i?s.unshift(r):s.push(r),r}}const Be=e=>(t,n=le)=>(!jt||e==="sp")&&Vn(e,(...i)=>t(...i),n),Hl=Be("bm"),It=Be("m"),$l=Be("bu"),Dl=Be("u"),Ir=Be("bum"),qn=Be("um"),Ul=Be("sp"),Bl=Be("rtg"),Kl=Be("rtc");function Vl(e,t=le){Vn("ec",e,t)}function sf(e,t,n,i){let s;const r=n;if(k(e)||ie(e)){s=new Array(e.length);for(let o=0,l=e.length;ot(o,l,void 0,r));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,a=o.length;lIn(t)?!(t.type===we||t.type===ge&&!Fr(t.children)):!0)?e:null}function of(e,t){const n={};for(const i in e)n[/[A-Z]/.test(i)?`on:${i}`:bn(i)]=e[i];return n}const gi=e=>e?Qr(e)?Yn(e)||e.proxy:gi(e.parent):null,Ut=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gi(e.parent),$root:e=>gi(e.root),$emit:e=>e.emit,$options:e=>Ki(e),$forceUpdate:e=>e.f||(e.f=()=>Dn(e.update)),$nextTick:e=>e.n||(e.n=$n.bind(e.proxy)),$watch:e=>Ml.bind(e)}),ti=(e,t)=>e!==te&&!e.__isScriptSetup&&X(e,t),ql={get({_:e},t){const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(ti(i,t))return o[t]=1,i[t];if(s!==te&&X(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&X(c,t))return o[t]=3,r[t];if(n!==te&&X(n,t))return o[t]=4,n[t];xi&&(o[t]=0)}}const u=Ut[t];let d,g;if(u)return t==="$attrs"&&xe(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==te&&X(n,t))return o[t]=4,n[t];if(g=a.config.globalProperties,X(g,t))return g[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:r}=e;return ti(s,t)?(s[t]=n,!0):i!==te&&X(i,t)?(i[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:r}},o){let l;return!!n[o]||e!==te&&X(e,o)||ti(t,o)||(l=r[0])&&X(l,o)||X(i,o)||X(Ut,o)||X(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function lf(){return Wl().slots}function Wl(){const e=zn();return e.setupContext||(e.setupContext=Gr(e))}function hs(e){return k(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xi=!0;function zl(e){const t=Ki(e),n=e.proxy,i=e.ctx;xi=!1,t.beforeCreate&&gs(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:o,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:g,beforeUpdate:b,updated:C,activated:T,deactivated:I,beforeDestroy:V,beforeUnmount:L,destroyed:x,unmounted:m,render:M,renderTracked:K,renderTriggered:N,errorCaptured:j,serverPrefetch:F,expose:w,inheritAttrs:H,components:S,directives:z,filters:oe}=t;if(c&&Yl(c,i,null),o)for(const J in o){const $=o[J];q($)&&(i[J]=$.bind(n))}if(s){const J=s.call(n,n);G(J)&&(e.data=Nn(J))}if(xi=!0,r)for(const J in r){const $=r[J],Ne=q($)?$.bind(n,n):q($.get)?$.get.bind(n,n):Fe,rn=!q($)&&q($.set)?$.set.bind(n):Fe,it=ne({get:Ne,set:rn});Object.defineProperty(i,J,{enumerable:!0,configurable:!0,get:()=>it.value,set:Re=>it.value=Re})}if(l)for(const J in l)Lr(l[J],i,n,J);if(a){const J=q(a)?a.call(n):a;Reflect.ownKeys(J).forEach($=>{ea($,J[$])})}u&&gs(u,e,"c");function B(J,$){k($)?$.forEach(Ne=>J(Ne.bind(n))):$&&J($.bind(n))}if(B(Hl,d),B(It,g),B($l,b),B(Dl,C),B(Ll,T),B(kl,I),B(Vl,j),B(Kl,K),B(Bl,N),B(Ir,L),B(qn,m),B(Ul,F),k(w))if(w.length){const J=e.exposed||(e.exposed={});w.forEach($=>{Object.defineProperty(J,$,{get:()=>n[$],set:Ne=>n[$]=Ne})})}else e.exposed||(e.exposed={});M&&e.render===Fe&&(e.render=M),H!=null&&(e.inheritAttrs=H),S&&(e.components=S),z&&(e.directives=z)}function Yl(e,t,n=Fe){k(e)&&(e=yi(e));for(const i in e){const s=e[i];let r;G(s)?"default"in s?r=Ct(s.from||i,s.default,!0):r=Ct(s.from||i):r=Ct(s),pe(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[i]=r}}function gs(e,t,n){Te(k(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lr(e,t,n,i){const s=i.includes(".")?jr(n,i):()=>n[i];if(ie(e)){const r=t[e];q(r)&&Ze(s,r)}else if(q(e))Ze(s,e.bind(n));else if(G(e))if(k(e))e.forEach(r=>Lr(r,t,n,i));else{const r=q(e.handler)?e.handler.bind(n):t[e.handler];q(r)&&Ze(s,r,e)}}function Ki(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!s.length&&!n&&!i?a=t:(a={},s.length&&s.forEach(c=>Rn(a,c,o,!0)),Rn(a,t,o)),G(t)&&r.set(t,a),a}function Rn(e,t,n,i=!1){const{mixins:s,extends:r}=t;r&&Rn(e,r,n,!0),s&&s.forEach(o=>Rn(e,o,n,!0));for(const o in t)if(!(i&&o==="expose")){const l=Jl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Jl={data:xs,props:ys,emits:ys,methods:Ht,computed:Ht,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:Ht,directives:Ht,watch:Ql,provide:xs,inject:Xl};function xs(e,t){return t?e?function(){return ce(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Xl(e,t){return Ht(yi(e),yi(t))}function yi(e){if(k(e)){const t={};for(let n=0;n1)return n&&q(t)?t.call(i&&i.proxy):t}}function ta(e,t,n,i=!1){const s={},r={};En(r,Wn,1),e.propsDefaults=Object.create(null),Nr(e,t,s,r);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=i?s:al(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function na(e,t,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=e,l=Q(s),[a]=e.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d{a=!0;const[g,b]=Hr(d,t,!0);ce(o,g),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return G(e)&&i.set(e,yt),yt;if(k(r))for(let u=0;u-1,b[1]=T<0||C-1||X(b,"default"))&&l.push(d)}}}const c=[o,l];return G(e)&&i.set(e,c),c}function vs(e){return e[0]!=="$"}function bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ws(e,t){return bs(e)===bs(t)}function _s(e,t){return k(t)?t.findIndex(n=>ws(n,e)):q(t)&&ws(t,e)?0:-1}const $r=e=>e[0]==="_"||e==="$stable",Vi=e=>k(e)?e.map(Se):[Se(e)],ia=(e,t,n)=>{if(t._n)return t;const i=Tl((...s)=>Vi(t(...s)),n);return i._c=!1,i},Dr=(e,t,n)=>{const i=e._ctx;for(const s in e){if($r(s))continue;const r=e[s];if(q(r))t[s]=ia(s,r,i);else if(r!=null){const o=Vi(r);t[s]=()=>o}}},Ur=(e,t)=>{const n=Vi(t);e.slots.default=()=>n},sa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Q(t),En(t,"_",n)):Dr(t,e.slots={})}else e.slots={},t&&Ur(e,t);En(e.slots,Wn,1)},ra=(e,t,n)=>{const{vnode:i,slots:s}=e;let r=!0,o=te;if(i.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(ce(s,t),!n&&l===1&&delete s._):(r=!t.$stable,Dr(t,s)),o=t}else t&&(Ur(e,t),o={default:1});if(r)for(const l in s)!$r(l)&&o[l]==null&&delete s[l]};function Pn(e,t,n,i,s=!1){if(k(e)){e.forEach((g,b)=>Pn(g,t&&(k(t)?t[b]:t),n,i,s));return}if(_t(i)&&!s)return;const r=i.shapeFlag&4?Yn(i.component)||i.component.proxy:i.el,o=s?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===te?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ie(c)?(u[c]=null,X(d,c)&&(d[c]=null)):pe(c)&&(c.value=null)),q(a))Qe(a,l,12,[o,u]);else{const g=ie(a),b=pe(a);if(g||b){const C=()=>{if(e.f){const T=g?X(d,a)?d[a]:u[a]:a.value;s?k(T)&&Ai(T,r):k(T)?T.includes(r)||T.push(r):g?(u[a]=[r],X(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else g?(u[a]=o,X(d,a)&&(d[a]=o)):b&&(a.value=o,e.k&&(u[e.k]=o))};o?(C.id=-1,he(C,n)):C()}}}let Ve=!1;const mn=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",hn=e=>e.nodeType===8;function oa(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:r,parentNode:o,remove:l,insert:a,createComment:c}}=e,u=(x,m)=>{if(!m.hasChildNodes()){n(null,x,m),jn(),m._vnode=x;return}Ve=!1,d(m.firstChild,x,null,null,null),jn(),m._vnode=x,Ve&&console.error("Hydration completed but contains mismatches.")},d=(x,m,M,K,N,j=!1)=>{const F=hn(x)&&x.data==="[",w=()=>T(x,m,M,K,N,F),{type:H,ref:S,shapeFlag:z,patchFlag:oe}=m;let fe=x.nodeType;m.el=x,oe===-2&&(j=!1,m.dynamicChildren=null);let B=null;switch(H){case Tt:fe!==3?m.children===""?(a(m.el=s(""),o(x),x),B=x):B=w():(x.data!==m.children&&(Ve=!0,x.data=m.children),B=r(x));break;case we:L(x)?(B=r(x),V(m.el=x.content.firstChild,x,M)):fe!==8||F?B=w():B=r(x);break;case Kt:if(F&&(x=r(x),fe=x.nodeType),fe===1||fe===3){B=x;const J=!m.children.length;for(let $=0;${j=j||!!m.dynamicChildren;const{type:F,props:w,patchFlag:H,shapeFlag:S,dirs:z,transition:oe}=m,fe=F==="input"||F==="option";if(fe||H!==-1){z&&Pe(m,null,M,"created");let B=!1;if(L(x)){B=Kr(K,oe)&&M&&M.vnode.props&&M.vnode.props.appear;const $=x.content.firstChild;B&&oe.beforeEnter($),V($,x,M),m.el=x=$}if(w)if(fe||!j||H&48)for(const $ in w)(fe&&($.endsWith("value")||$==="indeterminate")||Gt($)&&!$t($)||$[0]===".")&&i(x,$,null,w[$],!1,void 0,M);else w.onClick&&i(x,"onClick",null,w.onClick,!1,void 0,M);let J;if((J=w&&w.onVnodeBeforeMount)&&Ce(J,M,m),z&&Pe(m,null,M,"beforeMount"),((J=w&&w.onVnodeMounted)||z||B)&&Sr(()=>{J&&Ce(J,M,m),B&&oe.enter(x),z&&Pe(m,null,M,"mounted")},K),S&16&&!(w&&(w.innerHTML||w.textContent))){let $=b(x.firstChild,m,x,M,K,N,j);for(;$;){Ve=!0;const Ne=$;$=$.nextSibling,l(Ne)}}else S&8&&x.textContent!==m.children&&(Ve=!0,x.textContent=m.children)}return x.nextSibling},b=(x,m,M,K,N,j,F)=>{F=F||!!m.dynamicChildren;const w=m.children,H=w.length;for(let S=0;S{const{slotScopeIds:F}=m;F&&(N=N?N.concat(F):F);const w=o(x),H=b(r(x),m,w,M,K,N,j);return H&&hn(H)&&H.data==="]"?r(m.anchor=H):(Ve=!0,a(m.anchor=c("]"),w,H),H)},T=(x,m,M,K,N,j)=>{if(Ve=!0,m.el=null,j){const H=I(x);for(;;){const S=r(x);if(S&&S!==H)l(S);else break}}const F=r(x),w=o(x);return l(x),n(null,m,w,F,M,K,mn(w),N),F},I=(x,m="[",M="]")=>{let K=0;for(;x;)if(x=r(x),x&&hn(x)&&(x.data===m&&K++,x.data===M)){if(K===0)return r(x);K--}return x},V=(x,m,M)=>{const K=m.parentNode;K&&K.replaceChild(x,m);let N=M;for(;N;)N.vnode.el===m&&(N.vnode.el=N.subTree.el=x),N=N.parent},L=x=>x.nodeType===1&&x.tagName.toLowerCase()==="template";return[u,d]}const he=Sr;function la(e){return Br(e)}function aa(e){return Br(e,oa)}function Br(e,t){const n=ci();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:g,setScopeId:b=Fe,insertStaticContent:C}=e,T=(f,p,h,y=null,v=null,A=null,R=!1,E=null,O=!!p.dynamicChildren)=>{if(f===p)return;f&&!at(f,p)&&(y=on(f),Re(f,v,A,!0),f=null),p.patchFlag===-2&&(O=!1,p.dynamicChildren=null);const{type:_,ref:D,shapeFlag:P}=p;switch(_){case Tt:I(f,p,h,y);break;case we:V(f,p,h,y);break;case Kt:f==null&&L(p,h,y,R);break;case ge:S(f,p,h,y,v,A,R,E,O);break;default:P&1?M(f,p,h,y,v,A,R,E,O):P&6?z(f,p,h,y,v,A,R,E,O):(P&64||P&128)&&_.process(f,p,h,y,v,A,R,E,O,ht)}D!=null&&v&&Pn(D,f&&f.ref,A,p||f,!p)},I=(f,p,h,y)=>{if(f==null)i(p.el=l(p.children),h,y);else{const v=p.el=f.el;p.children!==f.children&&c(v,p.children)}},V=(f,p,h,y)=>{f==null?i(p.el=a(p.children||""),h,y):p.el=f.el},L=(f,p,h,y)=>{[f.el,f.anchor]=C(f.children,p,h,y,f.el,f.anchor)},x=({el:f,anchor:p},h,y)=>{let v;for(;f&&f!==p;)v=g(f),i(f,h,y),f=v;i(p,h,y)},m=({el:f,anchor:p})=>{let h;for(;f&&f!==p;)h=g(f),s(f),f=h;s(p)},M=(f,p,h,y,v,A,R,E,O)=>{R=R||p.type==="svg",f==null?K(p,h,y,v,A,R,E,O):F(f,p,v,A,R,E,O)},K=(f,p,h,y,v,A,R,E)=>{let O,_;const{type:D,props:P,shapeFlag:U,transition:W,dirs:Y}=f;if(O=f.el=o(f.type,A,P&&P.is,P),U&8?u(O,f.children):U&16&&j(f.children,O,null,y,v,A&&D!=="foreignObject",R,E),Y&&Pe(f,null,y,"created"),N(O,f,f.scopeId,R,y),P){for(const Z in P)Z!=="value"&&!$t(Z)&&r(O,Z,null,P[Z],A,f.children,y,v,He);"value"in P&&r(O,"value",null,P.value),(_=P.onVnodeBeforeMount)&&Ce(_,y,f)}Y&&Pe(f,null,y,"beforeMount");const ee=Kr(v,W);ee&&W.beforeEnter(O),i(O,p,h),((_=P&&P.onVnodeMounted)||ee||Y)&&he(()=>{_&&Ce(_,y,f),ee&&W.enter(O),Y&&Pe(f,null,y,"mounted")},v)},N=(f,p,h,y,v)=>{if(h&&b(f,h),y)for(let A=0;A{for(let _=O;_{const E=p.el=f.el;let{patchFlag:O,dynamicChildren:_,dirs:D}=p;O|=f.patchFlag&16;const P=f.props||te,U=p.props||te;let W;h&&st(h,!1),(W=U.onVnodeBeforeUpdate)&&Ce(W,h,p,f),D&&Pe(p,f,h,"beforeUpdate"),h&&st(h,!0);const Y=v&&p.type!=="foreignObject";if(_?w(f.dynamicChildren,_,E,h,y,Y,A):R||$(f,p,E,null,h,y,Y,A,!1),O>0){if(O&16)H(E,p,P,U,h,y,v);else if(O&2&&P.class!==U.class&&r(E,"class",null,U.class,v),O&4&&r(E,"style",P.style,U.style,v),O&8){const ee=p.dynamicProps;for(let Z=0;Z{W&&Ce(W,h,p,f),D&&Pe(p,f,h,"updated")},y)},w=(f,p,h,y,v,A,R)=>{for(let E=0;E{if(h!==y){if(h!==te)for(const E in h)!$t(E)&&!(E in y)&&r(f,E,h[E],null,R,p.children,v,A,He);for(const E in y){if($t(E))continue;const O=y[E],_=h[E];O!==_&&E!=="value"&&r(f,E,_,O,R,p.children,v,A,He)}"value"in y&&r(f,"value",h.value,y.value)}},S=(f,p,h,y,v,A,R,E,O)=>{const _=p.el=f?f.el:l(""),D=p.anchor=f?f.anchor:l("");let{patchFlag:P,dynamicChildren:U,slotScopeIds:W}=p;W&&(E=E?E.concat(W):W),f==null?(i(_,h,y),i(D,h,y),j(p.children,h,D,v,A,R,E,O)):P>0&&P&64&&U&&f.dynamicChildren?(w(f.dynamicChildren,U,h,v,A,R,E),(p.key!=null||v&&p===v.subTree)&&qi(f,p,!0)):$(f,p,h,D,v,A,R,E,O)},z=(f,p,h,y,v,A,R,E,O)=>{p.slotScopeIds=E,f==null?p.shapeFlag&512?v.ctx.activate(p,h,y,R,O):oe(p,h,y,v,A,R,O):fe(f,p,O)},oe=(f,p,h,y,v,A,R)=>{const E=f.component=va(f,y,v);if(sn(f)&&(E.ctx.renderer=ht),ba(E),E.asyncDep){if(v&&v.registerDep(E,B),!f.el){const O=E.subTree=se(we);V(null,O,p,h)}return}B(E,f,p,h,v,A,R)},fe=(f,p,h)=>{const y=p.component=f.component;if(jl(f,p,h))if(y.asyncDep&&!y.asyncResolved){J(y,p,h);return}else y.next=p,wl(y.update),y.update();else p.el=f.el,y.vnode=p},B=(f,p,h,y,v,A,R)=>{const E=()=>{if(f.isMounted){let{next:D,bu:P,u:U,parent:W,vnode:Y}=f,ee=D,Z;st(f,!1),D?(D.el=Y.el,J(f,D,R)):D=Y,P&&wn(P),(Z=D.props&&D.props.onVnodeBeforeUpdate)&&Ce(Z,W,D,Y),st(f,!0);const re=Zn(f),Ae=f.subTree;f.subTree=re,T(Ae,re,d(Ae.el),on(Ae),f,v,A),D.el=re.el,ee===null&&Ol(f,re.el),U&&he(U,v),(Z=D.props&&D.props.onVnodeUpdated)&&he(()=>Ce(Z,W,D,Y),v)}else{let D;const{el:P,props:U}=p,{bm:W,m:Y,parent:ee}=f,Z=_t(p);if(st(f,!1),W&&wn(W),!Z&&(D=U&&U.onVnodeBeforeMount)&&Ce(D,ee,p),st(f,!0),P&&Xn){const re=()=>{f.subTree=Zn(f),Xn(P,f.subTree,f,v,null)};Z?p.type.__asyncLoader().then(()=>!f.isUnmounted&&re()):re()}else{const re=f.subTree=Zn(f);T(null,re,h,y,f,v,A),p.el=re.el}if(Y&&he(Y,v),!Z&&(D=U&&U.onVnodeMounted)){const re=p;he(()=>Ce(D,ee,re),v)}(p.shapeFlag&256||ee&&_t(ee.vnode)&&ee.vnode.shapeFlag&256)&&f.a&&he(f.a,v),f.isMounted=!0,p=h=y=null}},O=f.effect=new Pi(E,()=>Dn(_),f.scope),_=f.update=()=>O.run();_.id=f.uid,st(f,!0),_()},J=(f,p,h)=>{p.component=f;const y=f.vnode.props;f.vnode=p,f.next=null,na(f,p.props,y,h),ra(f,p.children,h),Mt(),us(f),Pt()},$=(f,p,h,y,v,A,R,E,O=!1)=>{const _=f&&f.children,D=f?f.shapeFlag:0,P=p.children,{patchFlag:U,shapeFlag:W}=p;if(U>0){if(U&128){rn(_,P,h,y,v,A,R,E,O);return}else if(U&256){Ne(_,P,h,y,v,A,R,E,O);return}}W&8?(D&16&&He(_,v,A),P!==_&&u(h,P)):D&16?W&16?rn(_,P,h,y,v,A,R,E,O):He(_,v,A,!0):(D&8&&u(h,""),W&16&&j(P,h,y,v,A,R,E,O))},Ne=(f,p,h,y,v,A,R,E,O)=>{f=f||yt,p=p||yt;const _=f.length,D=p.length,P=Math.min(_,D);let U;for(U=0;UD?He(f,v,A,!0,!1,P):j(p,h,y,v,A,R,E,O,P)},rn=(f,p,h,y,v,A,R,E,O)=>{let _=0;const D=p.length;let P=f.length-1,U=D-1;for(;_<=P&&_<=U;){const W=f[_],Y=p[_]=O?Ye(p[_]):Se(p[_]);if(at(W,Y))T(W,Y,h,null,v,A,R,E,O);else break;_++}for(;_<=P&&_<=U;){const W=f[P],Y=p[U]=O?Ye(p[U]):Se(p[U]);if(at(W,Y))T(W,Y,h,null,v,A,R,E,O);else break;P--,U--}if(_>P){if(_<=U){const W=U+1,Y=WU)for(;_<=P;)Re(f[_],v,A,!0),_++;else{const W=_,Y=_,ee=new Map;for(_=Y;_<=U;_++){const ye=p[_]=O?Ye(p[_]):Se(p[_]);ye.key!=null&&ee.set(ye.key,_)}let Z,re=0;const Ae=U-Y+1;let gt=!1,Gi=0;const Ft=new Array(Ae);for(_=0;_=Ae){Re(ye,v,A,!0);continue}let Me;if(ye.key!=null)Me=ee.get(ye.key);else for(Z=Y;Z<=U;Z++)if(Ft[Z-Y]===0&&at(ye,p[Z])){Me=Z;break}Me===void 0?Re(ye,v,A,!0):(Ft[Me-Y]=_+1,Me>=Gi?Gi=Me:gt=!0,T(ye,p[Me],h,null,v,A,R,E,O),re++)}const es=gt?ca(Ft):yt;for(Z=es.length-1,_=Ae-1;_>=0;_--){const ye=Y+_,Me=p[ye],ts=ye+1{const{el:A,type:R,transition:E,children:O,shapeFlag:_}=f;if(_&6){it(f.component.subTree,p,h,y);return}if(_&128){f.suspense.move(p,h,y);return}if(_&64){R.move(f,p,h,ht);return}if(R===ge){i(A,p,h);for(let P=0;PE.enter(A),v);else{const{leave:P,delayLeave:U,afterLeave:W}=E,Y=()=>i(A,p,h),ee=()=>{P(A,()=>{Y(),W&&W()})};U?U(A,Y,ee):ee()}else i(A,p,h)},Re=(f,p,h,y=!1,v=!1)=>{const{type:A,props:R,ref:E,children:O,dynamicChildren:_,shapeFlag:D,patchFlag:P,dirs:U}=f;if(E!=null&&Pn(E,null,h,f,!0),D&256){p.ctx.deactivate(f);return}const W=D&1&&U,Y=!_t(f);let ee;if(Y&&(ee=R&&R.onVnodeBeforeUnmount)&&Ce(ee,p,f),D&6)Eo(f.component,h,y);else{if(D&128){f.suspense.unmount(h,y);return}W&&Pe(f,null,p,"beforeUnmount"),D&64?f.type.remove(f,p,h,v,ht,y):_&&(A!==ge||P>0&&P&64)?He(_,p,h,!1,!0):(A===ge&&P&384||!v&&D&16)&&He(O,p,h),y&&Qi(f)}(Y&&(ee=R&&R.onVnodeUnmounted)||W)&&he(()=>{ee&&Ce(ee,p,f),W&&Pe(f,null,p,"unmounted")},h)},Qi=f=>{const{type:p,el:h,anchor:y,transition:v}=f;if(p===ge){Co(h,y);return}if(p===Kt){m(f);return}const A=()=>{s(h),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(f.shapeFlag&1&&v&&!v.persisted){const{leave:R,delayLeave:E}=v,O=()=>R(h,A);E?E(f.el,A,O):O()}else A()},Co=(f,p)=>{let h;for(;f!==p;)h=g(f),s(f),f=h;s(p)},Eo=(f,p,h)=>{const{bum:y,scope:v,update:A,subTree:R,um:E}=f;y&&wn(y),v.stop(),A&&(A.active=!1,Re(R,f,p,h)),E&&he(E,p),he(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},He=(f,p,h,y=!1,v=!1,A=0)=>{for(let R=A;Rf.shapeFlag&6?on(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),Zi=(f,p,h)=>{f==null?p._vnode&&Re(p._vnode,null,null,!0):T(p._vnode||null,f,p,null,null,null,h),us(),jn(),p._vnode=f},ht={p:T,um:Re,m:it,r:Qi,mt:oe,mc:j,pc:$,pbc:w,n:on,o:e};let Jn,Xn;return t&&([Jn,Xn]=t(ht)),{render:Zi,hydrate:Jn,createApp:Gl(Zi,Jn)}}function st({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Kr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qi(e,t,n=!1){const i=e.children,s=t.children;if(k(i)&&k(s))for(let r=0;r>1,e[n[l]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}const fa=e=>e.__isTeleport,Bt=e=>e&&(e.disabled||e.disabled===""),Cs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bi=(e,t)=>{const n=e&&e.to;return ie(n)?t?t(n):null:n},ua={name:"Teleport",__isTeleport:!0,process(e,t,n,i,s,r,o,l,a,c){const{mc:u,pc:d,pbc:g,o:{insert:b,querySelector:C,createText:T,createComment:I}}=c,V=Bt(t.props);let{shapeFlag:L,children:x,dynamicChildren:m}=t;if(e==null){const M=t.el=T(""),K=t.anchor=T("");b(M,n,i),b(K,n,i);const N=t.target=bi(t.props,C),j=t.targetAnchor=T("");N&&(b(j,N),o=o||Cs(N));const F=(w,H)=>{L&16&&u(x,w,H,s,r,o,l,a)};V?F(n,K):N&&F(N,j)}else{t.el=e.el;const M=t.anchor=e.anchor,K=t.target=e.target,N=t.targetAnchor=e.targetAnchor,j=Bt(e.props),F=j?n:K,w=j?M:N;if(o=o||Cs(K),m?(g(e.dynamicChildren,m,F,s,r,o,l),qi(e,t,!0)):a||d(e,t,F,w,s,r,o,l,!1),V)j?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gn(t,n,M,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const H=t.target=bi(t.props,C);H&&gn(t,H,null,c,0)}else j&&gn(t,K,N,c,1)}Vr(t)},remove(e,t,n,i,{um:s,o:{remove:r}},o){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:d,props:g}=e;if(d&&r(u),o&&r(c),l&16){const b=o||!Bt(g);for(let C=0;C0?be||yt:null,da(),At>0&&be&&be.push(e),e}function cf(e,t,n,i,s,r){return Wr(Jr(e,t,n,i,s,r,!0))}function zr(e,t,n,i,s){return Wr(se(e,t,n,i,s,!0))}function In(e){return e?e.__v_isVNode===!0:!1}function at(e,t){return e.type===t.type&&e.key===t.key}const Wn="__vInternal",Yr=({key:e})=>e??null,_n=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ie(e)||pe(e)||q(e)?{i:ue,r:e,k:t,f:!!n}:e:null);function Jr(e,t=null,n=null,i=0,s=null,r=e===ge?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yr(t),ref:t&&_n(t),scopeId:Bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ue};return l?(Wi(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ie(n)?8:16),At>0&&!o&&be&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&be.push(a),a}const se=ma;function ma(e,t=null,n=null,i=0,s=null,r=!1){if((!e||e===Tr)&&(e=we),In(e)){const l=nt(e,t,!0);return n&&Wi(l,n),At>0&&!r&&be&&(l.shapeFlag&6?be[be.indexOf(e)]=l:be.push(l)),l.patchFlag|=-2,l}if(Ea(e)&&(e=e.__vccOpts),t){t=ha(t);let{class:l,style:a}=t;l&&!ie(l)&&(t.class=Oi(l)),G(a)&&(gr(a)&&!k(a)&&(a=ce({},a)),t.style=ji(a))}const o=ie(e)?1:Rl(e)?128:fa(e)?64:G(e)?4:q(e)?2:0;return Jr(e,t,n,i,s,o,r,!0)}function ha(e){return e?gr(e)||Wn in e?ce({},e):e:null}function nt(e,t,n=!1){const{props:i,ref:s,patchFlag:r,children:o}=e,l=t?ga(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Yr(l),ref:t&&t.ref?n&&s?k(s)?s.concat(_n(t)):[s,_n(t)]:_n(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nt(e.ssContent),ssFallback:e.ssFallback&&nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xr(e=" ",t=0){return se(Tt,null,e,t)}function ff(e,t){const n=se(Kt,null,e);return n.staticCount=t,n}function uf(e="",t=!1){return t?(qr(),zr(we,null,e)):se(we,null,e)}function Se(e){return e==null||typeof e=="boolean"?se(we):k(e)?se(ge,null,e.slice()):typeof e=="object"?Ye(e):se(Tt,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nt(e)}function Wi(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(k(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),Wi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Wn in t)?t._ctx=ue:s===3&&ue&&(ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:ue},n=32):(t=String(t),i&64?(n=16,t=[Xr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ga(...e){const t={};for(let n=0;nle||ue;let zi,xt,Ts="__VUE_INSTANCE_SETTERS__";(xt=ci()[Ts])||(xt=ci()[Ts]=[]),xt.push(e=>le=e),zi=e=>{xt.length>1?xt.forEach(t=>t(e)):xt[0](e)};const St=e=>{zi(e),e.scope.on()},pt=()=>{le&&le.scope.off(),zi(null)};function Qr(e){return e.vnode.shapeFlag&4}let jt=!1;function ba(e,t=!1){jt=t;const{props:n,children:i}=e.vnode,s=Qr(e);ta(e,n,s,t),sa(e,i);const r=s?wa(e,t):void 0;return jt=!1,r}function wa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Dt(new Proxy(e.ctx,ql));const{setup:i}=n;if(i){const s=e.setupContext=i.length>1?Gr(e):null;St(e),Mt();const r=Qe(i,e,0,[e.props,s]);if(Pt(),pt(),er(r)){if(r.then(pt,pt),t)return r.then(o=>{As(e,o,t)}).catch(o=>{nn(o,e,0)});e.asyncDep=r}else As(e,r,t)}else Zr(e,t)}function As(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=vr(t)),Zr(e,n)}let Ss;function Zr(e,t,n){const i=e.type;if(!e.render){if(!t&&Ss&&!i.render){const s=i.template||Ki(e).template;if(s){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=i,c=ce(ce({isCustomElement:r,delimiters:l},o),a);i.render=Ss(s,c)}}e.render=i.render||Fe}{St(e),Mt();try{zl(e)}finally{Pt(),pt()}}}function _a(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return xe(e,"get","$attrs"),t[n]}}))}function Gr(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return _a(e)},slots:e.slots,emit:e.emit,expose:t}}function Yn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vr(Dt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ut)return Ut[n](e)},has(t,n){return n in t||n in Ut}}))}function Ca(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Ea(e){return q(e)&&"__vccOpts"in e}const ne=(e,t)=>yl(e,t,jt);function wi(e,t,n){const i=arguments.length;return i===2?G(t)&&!k(t)?In(t)?se(e,null,[t]):se(e,t):se(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&In(n)&&(n=[n]),se(e,t,n))}const Ta=Symbol.for("v-scx"),Aa=()=>Ct(Ta);function pf(e,t,n,i){const s=n[i];if(s&&Sa(s,e))return s;const r=t();return r.memo=e.slice(),n[i]=r}function Sa(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i0&&be&&be.push(e),!0}const ja="3.3.13",Oa="http://www.w3.org/2000/svg",ct=typeof document<"u"?document:null,js=ct&&ct.createElement("template"),Ra={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t?ct.createElementNS(Oa,e):ct.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,r){const o=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{js.innerHTML=i?`${e}`:e;const l=js.content;if(i){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qe="transition",Lt="animation",Jt=Symbol("_vtc"),eo=(e,{slots:t})=>wi(Fl,Ma(e),t);eo.displayName="Transition";const to={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};eo.props=ce({},Or,to);const rt=(e,t=[])=>{k(e)?e.forEach(n=>n(...t)):e&&e(...t)},Os=e=>e?k(e)?e.some(t=>t.length>1):e.length>1:!1;function Ma(e){const t={};for(const S in e)S in to||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=o,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,C=Pa(s),T=C&&C[0],I=C&&C[1],{onBeforeEnter:V,onEnter:L,onEnterCancelled:x,onLeave:m,onLeaveCancelled:M,onBeforeAppear:K=V,onAppear:N=L,onAppearCancelled:j=x}=t,F=(S,z,oe)=>{ot(S,z?u:l),ot(S,z?c:o),oe&&oe()},w=(S,z)=>{S._isLeaving=!1,ot(S,d),ot(S,b),ot(S,g),z&&z()},H=S=>(z,oe)=>{const fe=S?N:L,B=()=>F(z,S,oe);rt(fe,[z,B]),Rs(()=>{ot(z,S?a:r),We(z,S?u:l),Os(fe)||Ms(z,i,T,B)})};return ce(t,{onBeforeEnter(S){rt(V,[S]),We(S,r),We(S,o)},onBeforeAppear(S){rt(K,[S]),We(S,a),We(S,c)},onEnter:H(!1),onAppear:H(!0),onLeave(S,z){S._isLeaving=!0;const oe=()=>w(S,z);We(S,d),La(),We(S,g),Rs(()=>{S._isLeaving&&(ot(S,d),We(S,b),Os(m)||Ms(S,i,I,oe))}),rt(m,[S,oe])},onEnterCancelled(S){F(S,!1),rt(x,[S])},onAppearCancelled(S){F(S,!0),rt(j,[S])},onLeaveCancelled(S){w(S),rt(M,[S])}})}function Pa(e){if(e==null)return null;if(G(e))return[ni(e.enter),ni(e.leave)];{const t=ni(e);return[t,t]}}function ni(e){return Ro(e)}function We(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Jt]||(e[Jt]=new Set)).add(t)}function ot(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[Jt];n&&(n.delete(t),n.size||(e[Jt]=void 0))}function Rs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ia=0;function Ms(e,t,n,i){const s=e._endId=++Ia,r=()=>{s===e._endId&&i()};if(n)return setTimeout(r,n);const{type:o,timeout:l,propCount:a}=Fa(e,t);if(!o)return i();const c=o+"end";let u=0;const d=()=>{e.removeEventListener(c,g),r()},g=b=>{b.target===e&&++u>=a&&d()};setTimeout(()=>{u(n[C]||"").split(", "),s=i(`${qe}Delay`),r=i(`${qe}Duration`),o=Ps(s,r),l=i(`${Lt}Delay`),a=i(`${Lt}Duration`),c=Ps(l,a);let u=null,d=0,g=0;t===qe?o>0&&(u=qe,d=o,g=r.length):t===Lt?c>0&&(u=Lt,d=c,g=a.length):(d=Math.max(o,c),u=d>0?o>c?qe:Lt:null,g=u?u===qe?r.length:a.length:0);const b=u===qe&&/\b(transform|all)(,|$)/.test(i(`${qe}Property`).toString());return{type:u,timeout:d,propCount:g,hasTransform:b}}function Ps(e,t){for(;e.lengthIs(n)+Is(e[i])))}function Is(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function La(){return document.body.offsetHeight}function ka(e,t,n){const i=e[Jt];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Yi=Symbol("_vod"),df={beforeMount(e,{value:t},{transition:n}){e[Yi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),kt(e,!0),i.enter(e)):i.leave(e,()=>{kt(e,!1)}):kt(e,t))},beforeUnmount(e,{value:t}){kt(e,t)}};function kt(e,t){e.style.display=t?e[Yi]:"none"}const Na=Symbol("");function Ha(e,t,n){const i=e.style,s=ie(n);if(n&&!s){if(t&&!ie(t))for(const r in t)n[r]==null&&_i(i,r,"");for(const r in n)_i(i,r,n[r])}else{const r=i.display;if(s){if(t!==n){const o=i[Na];o&&(n+=";"+o),i.cssText=n}}else t&&e.removeAttribute("style");Yi in e&&(i.display=r)}}const Fs=/\s*!important$/;function _i(e,t,n){if(k(n))n.forEach(i=>_i(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=$a(e,t);Fs.test(n)?e.setProperty(mt(i),n.replace(Fs,""),"important"):e[i]=n}}const Ls=["Webkit","Moz","ms"],ii={};function $a(e,t){const n=ii[t];if(n)return n;let i=Le(t);if(i!=="filter"&&i in e)return ii[t]=i;i=Ln(i);for(let s=0;ssi||(qa.then(()=>si=0),si=Date.now());function za(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Te(Ya(i,n.value),t,5,[i])};return n.value=e,n.attached=Wa(),n}function Ya(e,t){if(k(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const $s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ja=(e,t,n,i,s=!1,r,o,l,a)=>{t==="class"?ka(e,i,s):t==="style"?Ha(e,n,i):Gt(t)?Ti(t)||Ka(e,t,n,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xa(e,t,i,s))?Ua(e,t,i,r,o,l,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Da(e,t,i,s))};function Xa(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&$s(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return $s(t)&&ie(n)?!1:t in e}const Ot=e=>{const t=e.props["onUpdate:modelValue"]||!1;return k(t)?n=>wn(t,n):t};function Qa(e){e.target.composing=!0}function Ds(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ue=Symbol("_assign"),mf={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Ue]=Ot(s);const r=i||s.props&&s.props.type==="number";Je(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=Tn(l)),e[Ue](l)}),n&&Je(e,"change",()=>{e.value=e.value.trim()}),t||(Je(e,"compositionstart",Qa),Je(e,"compositionend",Ds),Je(e,"change",Ds))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:s}},r){if(e[Ue]=Ot(r),e.composing)return;const o=s||e.type==="number"?Tn(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===l)||(e.value=l))}},hf={deep:!0,created(e,t,n){e[Ue]=Ot(n),Je(e,"change",()=>{const i=e._modelValue,s=Xt(e),r=e.checked,o=e[Ue];if(k(i)){const l=Ri(i,s),a=l!==-1;if(r&&!a)o(i.concat(s));else if(!r&&a){const c=[...i];c.splice(l,1),o(c)}}else if(Rt(i)){const l=new Set(i);r?l.add(s):l.delete(s),o(l)}else o(no(e,r))})},mounted:Us,beforeUpdate(e,t,n){e[Ue]=Ot(n),Us(e,t,n)}};function Us(e,{value:t,oldValue:n},i){e._modelValue=t,k(t)?e.checked=Ri(t,i.props.value)>-1:Rt(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=tn(t,no(e,!0)))}const gf={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const s=Rt(t);Je(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Tn(Xt(o)):Xt(o));e[Ue](e.multiple?s?new Set(r):r:r[0])}),e[Ue]=Ot(i)},mounted(e,{value:t}){Bs(e,t)},beforeUpdate(e,t,n){e[Ue]=Ot(n)},updated(e,{value:t}){Bs(e,t)}};function Bs(e,t){const n=e.multiple;if(!(n&&!k(t)&&!Rt(t))){for(let i=0,s=e.options.length;i-1:r.selected=t.has(o);else if(tn(Xt(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xt(e){return"_value"in e?e._value:e.value}function no(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Za=["ctrl","shift","alt","meta"],Ga={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Za.some(n=>e[`${n}Key`]&&!t.includes(n))},xf=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(s,...r)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=s=>{if(!("key"in s))return;const r=mt(s.key);if(t.some(o=>o===r||ec[o]===r))return e(s)})},io=ce({patchProp:Ja},Ra);let qt,Ks=!1;function tc(){return qt||(qt=la(io))}function nc(){return qt=Ks?qt:aa(io),Ks=!0,qt}const vf=(...e)=>{const t=tc().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=so(i);if(!s)return;const r=t._component;!q(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},bf=(...e)=>{const t=nc().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=so(i);if(s)return n(s,!0,s instanceof SVGElement)},t};function so(e){return ie(e)?document.querySelector(e):e}const wf=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},ic=window.__VP_SITE_DATA__;function Ji(e){return rr()?(Do(e),!0):!1}function Oe(e){return typeof e=="function"?e():yr(e)}function _f(e,t){const n=Oe;return function(...i){return ne(()=>e.apply(this,i.map(s=>n(s))))}}const ro=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const sc=Object.prototype.toString,rc=e=>sc.call(e)==="[object Object]",Qt=()=>{},Vs=oc();function oc(){var e,t;return ro&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function lc(e,t){function n(...i){return new Promise((s,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(s).catch(r)})}return n}const oo=e=>e();function ac(e,t={}){let n,i,s=Qt;const r=l=>{clearTimeout(l),s(),s=Qt};return l=>{const a=Oe(e),c=Oe(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(i&&(r(i),i=null),Promise.resolve(l())):new Promise((u,d)=>{s=t.rejectOnCancel?d:u,c&&!i&&(i=setTimeout(()=>{n&&r(n),i=null,u(l())},c)),n=setTimeout(()=>{i&&r(i),i=null,u(l())},a)})}}function cc(e=oo){const t=ae(!0);function n(){t.value=!1}function i(){t.value=!0}const s=(...r)=>{t.value&&e(...r)};return{isActive:Hn(t),pause:n,resume:i,eventFilter:s}}function fc(e){return zn()}function lo(...e){if(e.length!==1)return hl(...e);const t=e[0];return typeof t=="function"?Hn(pl(()=>({get:t,set:Qt}))):ae(t)}function ao(e,t,n={}){const{eventFilter:i=oo,...s}=n;return Ze(e,lc(i,t),s)}function uc(e,t,n={}){const{eventFilter:i,...s}=n,{eventFilter:r,pause:o,resume:l,isActive:a}=cc(i);return{stop:ao(e,t,{...s,eventFilter:r}),pause:o,resume:l,isActive:a}}function co(e,t=!0,n){fc()?It(e,n):t?e():$n(e)}function Cf(e,t,n={}){const{debounce:i=0,maxWait:s=void 0,...r}=n;return ao(e,t,{...r,eventFilter:ac(i,{maxWait:s})})}function Ef(e,t,n){let i;pe(n)?i={evaluating:n}:i={};const{lazy:s=!1,evaluating:r=void 0,shallow:o=!0,onError:l=Qt}=i,a=ae(!s),c=o?$i(t):ae(t);let u=0;return Ui(async d=>{if(!a.value)return;u++;const g=u;let b=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const C=await e(T=>{d(()=>{r&&(r.value=!1),b||T()})});g===u&&(c.value=C)}catch(C){l(C)}finally{r&&g===u&&(r.value=!1),b=!0}}),s?ne(()=>(a.value=!0,c.value)):c}function fo(e){var t;const n=Oe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ke=ro?window:void 0;function Zt(...e){let t,n,i,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,s]=e,t=ke):[t,n,i,s]=e,!t)return Qt;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},l=(u,d,g,b)=>(u.addEventListener(d,g,b),()=>u.removeEventListener(d,g,b)),a=Ze(()=>[fo(t),Oe(s)],([u,d])=>{if(o(),!u)return;const g=rc(d)?{...d}:d;r.push(...n.flatMap(b=>i.map(C=>l(u,b,C,g))))},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return Ji(c),c}function pc(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Tf(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=ke,eventName:r="keydown",passive:o=!1,dedupe:l=!1}=i,a=pc(t);return Zt(s,r,u=>{u.repeat&&Oe(l)||a(u)&&n(u)},o)}function dc(){const e=ae(!1),t=zn();return t&&It(()=>{e.value=!0},t),e}function mc(e){const t=dc();return ne(()=>(t.value,!!e()))}function hc(e,t={}){const{window:n=ke}=t,i=mc(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const r=ae(!1),o=c=>{r.value=c.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",o):s.removeListener(o))},a=Ui(()=>{i.value&&(l(),s=n.matchMedia(Oe(e)),"addEventListener"in s?s.addEventListener("change",o):s.addListener(o),r.value=s.matches)});return Ji(()=>{a(),l(),s=void 0}),r}const xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yn="__vueuse_ssr_handlers__",gc=xc();function xc(){return yn in xn||(xn[yn]=xn[yn]||{}),xn[yn]}function uo(e,t){return gc[e]||t}function yc(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const vc={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},qs="vueuse-storage";function Xi(e,t,n,i={}){var s;const{flush:r="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:d=ke,eventFilter:g,onError:b=w=>{console.error(w)},initOnMounted:C}=i,T=(u?$i:ae)(typeof t=="function"?t():t);if(!n)try{n=uo("getDefaultStorage",()=>{var w;return(w=ke)==null?void 0:w.localStorage})()}catch(w){b(w)}if(!n)return T;const I=Oe(t),V=yc(I),L=(s=i.serializer)!=null?s:vc[V],{pause:x,resume:m}=uc(T,()=>K(T.value),{flush:r,deep:o,eventFilter:g});d&&l&&co(()=>{Zt(d,"storage",j),Zt(d,qs,F),C&&j()}),C||j();function M(w,H){d&&d.dispatchEvent(new CustomEvent(qs,{detail:{key:e,oldValue:w,newValue:H,storageArea:n}}))}function K(w){try{const H=n.getItem(e);if(w==null)M(H,null),n.removeItem(e);else{const S=L.write(w);H!==S&&(n.setItem(e,S),M(H,S))}}catch(H){b(H)}}function N(w){const H=w?w.newValue:n.getItem(e);if(H==null)return a&&I!=null&&n.setItem(e,L.write(I)),I;if(!w&&c){const S=L.read(H);return typeof c=="function"?c(S,I):V==="object"&&!Array.isArray(S)?{...I,...S}:S}else return typeof H!="string"?H:L.read(H)}function j(w){if(!(w&&w.storageArea!==n)){if(w&&w.key==null){T.value=I;return}if(!(w&&w.key!==e)){x();try{(w==null?void 0:w.newValue)!==L.write(T.value)&&(T.value=N(w))}catch(H){b(H)}finally{w?$n(m):m()}}}}function F(w){j(w.detail)}return T}function po(e){return hc("(prefers-color-scheme: dark)",e)}function bc(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:s=ke,storage:r,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:a,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},g=po({window:s}),b=ne(()=>g.value?"dark":"light"),C=a||(o==null?lo(i):Xi(o,i,r,{window:s,listenToStorageChanges:l})),T=ne(()=>C.value==="auto"?b.value:C.value),I=uo("updateHTMLAttrs",(m,M,K)=>{const N=typeof m=="string"?s==null?void 0:s.document.querySelector(m):fo(m);if(!N)return;let j;if(u&&(j=s.document.createElement("style"),j.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(j)),M==="class"){const F=K.split(/\s/g);Object.values(d).flatMap(w=>(w||"").split(/\s/g)).filter(Boolean).forEach(w=>{F.includes(w)?N.classList.add(w):N.classList.remove(w)})}else N.setAttribute(M,K);u&&(s.getComputedStyle(j).opacity,document.head.removeChild(j))});function V(m){var M;I(t,n,(M=d[m])!=null?M:m)}function L(m){e.onChanged?e.onChanged(m,V):V(m)}Ze(T,L,{flush:"post",immediate:!0}),co(()=>L(T.value));const x=ne({get(){return c?C.value:T.value},set(m){C.value=m}});try{return Object.assign(x,{store:C,system:b,state:T})}catch{return x}}function wc(e={}){const{valueDark:t="dark",valueLight:n="",window:i=ke}=e,s=bc({...e,onChanged:(l,a)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,l==="dark",a,l):a(l)},modes:{dark:t,light:n}}),r=ne(()=>s.system?s.system.value:po({window:i}).value?"dark":"light");return ne({get(){return s.value==="dark"},set(l){const a=l?"dark":"light";r.value===a?s.value="auto":s.value=a}})}function ri(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Af(e,t,n={}){const{window:i=ke}=n;return Xi(e,t,i==null?void 0:i.localStorage,n)}function mo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const oi=new WeakMap;function Sf(e,t=!1){const n=ae(t);let i=null,s="";Ze(lo(e),l=>{const a=ri(Oe(l));if(a){const c=a;if(oi.get(c)||oi.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(s=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ri(Oe(e));!l||n.value||(Vs&&(i=Zt(l,"touchmove",a=>{_c(a)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},o=()=>{const l=ri(Oe(e));!l||!n.value||(Vs&&(i==null||i()),l.style.overflow=s,oi.delete(l),n.value=!1)};return Ji(o),ne({get(){return n.value},set(l){l?r():o()}})}function jf(e,t,n={}){const{window:i=ke}=n;return Xi(e,t,i==null?void 0:i.sessionStorage,n)}function Of(e={}){const{window:t=ke,behavior:n="auto"}=e;if(!t)return{x:ae(0),y:ae(0)};const i=ae(t.scrollX),s=ae(t.scrollY),r=ne({get(){return i.value},set(l){scrollTo({left:l,behavior:n})}}),o=ne({get(){return s.value},set(l){scrollTo({top:l,behavior:n})}});return Zt(t,"scroll",()=>{i.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:r,y:o}}const ho=/^(?:[a-z]+:|\/\/)/i,Cc="vitepress-theme-appearance",go=/#.*$/,Ec=/(index)?\.(md|html)$/,Ee=typeof document<"u",xo={relativePath:"",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function Tc(e,t,n=!1){if(t===void 0)return!1;if(e=Ws(`/${e}`),n)return new RegExp(t).test(e);if(Ws(t)!==e)return!1;const i=t.match(go);return i?(Ee?location.hash:"")===i[0]:!0}function Ws(e){return decodeURI(e).replace(go,"").replace(Ec,"")}function Ac(e){return ho.test(e)}function Sc(e,t){var i,s,r,o,l,a,c;const n=Object.keys(e.locales).find(u=>u!=="root"&&!Ac(u)&&Tc(t,`/${u}/`,!0))||"root";return Object.assign({},e,{localeIndex:n,lang:((i=e.locales[n])==null?void 0:i.lang)??e.lang,dir:((s=e.locales[n])==null?void 0:s.dir)??e.dir,title:((r=e.locales[n])==null?void 0:r.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:vo(e.head,((a=e.locales[n])==null?void 0:a.head)??[]),themeConfig:{...e.themeConfig,...(c=e.locales[n])==null?void 0:c.themeConfig}})}function yo(e,t){const n=t.title||e.title,i=t.titleTemplate??e.titleTemplate;if(typeof i=="string"&&i.includes(":title"))return i.replace(/:title/g,n);const s=jc(e.title,i);return`${n}${s}`}function jc(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function Oc(e,t){const[n,i]=t;if(n!=="meta")return!1;const s=Object.entries(i)[0];return s==null?!1:e.some(([r,o])=>r===n&&o[s[0]]===s[1])}function vo(e,t){return[...e.filter(n=>!Oc(t,n)),...t]}const Rc=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,Mc=/^[a-z]:/i;function zs(e){const t=Mc.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(Rc,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const Pc=Symbol(),dt=$i(ic);function Rf(e){const t=ne(()=>Sc(dt.value,e.data.relativePath)),n=t.value.appearance,i=n==="force-dark"?ae(!0):n?wc({storageKey:Cc,initialValue:()=>typeof n=="string"?n:"auto",...typeof n=="object"?n:{}}):ae(!1);return{site:t,theme:ne(()=>t.value.themeConfig),page:ne(()=>e.data),frontmatter:ne(()=>e.data.frontmatter),params:ne(()=>e.data.params),lang:ne(()=>t.value.lang),dir:ne(()=>t.value.dir),localeIndex:ne(()=>t.value.localeIndex||"root"),title:ne(()=>yo(t.value,e.data)),description:ne(()=>e.data.description||t.value.description),isDark:i}}function Ic(){const e=Ct(Pc);if(!e)throw new Error("vitepress data not properly injected in app");return e}const Fc={ez:"application/andrew-inset",aw:"application/applixware",atom:"application/atom+xml",atomcat:"application/atomcat+xml",atomdeleted:"application/atomdeleted+xml",atomsvc:"application/atomsvc+xml",dwd:"application/atsc-dwd+xml",held:"application/atsc-held+xml",rsat:"application/atsc-rsat+xml",bdoc:"application/bdoc",xcs:"application/calendar+xml",ccxml:"application/ccxml+xml",cdfx:"application/cdfx+xml",cdmia:"application/cdmi-capability",cdmic:"application/cdmi-container",cdmid:"application/cdmi-domain",cdmio:"application/cdmi-object",cdmiq:"application/cdmi-queue",cu:"application/cu-seeme",mpd:"application/dash+xml",davmount:"application/davmount+xml",dbk:"application/docbook+xml",dssc:"application/dssc+der",xdssc:"application/dssc+xml",es:"application/ecmascript",ecma:"application/ecmascript",emma:"application/emma+xml",emotionml:"application/emotionml+xml",epub:"application/epub+zip",exi:"application/exi",fdt:"application/fdt+xml",pfr:"application/font-tdpfr",geojson:"application/geo+json",gml:"application/gml+xml",gpx:"application/gpx+xml",gxf:"application/gxf",gz:"application/gzip",hjson:"application/hjson",stk:"application/hyperstudio",ink:"application/inkml+xml",inkml:"application/inkml+xml",ipfix:"application/ipfix",its:"application/its+xml",jar:"application/java-archive",war:"application/java-archive",ear:"application/java-archive",ser:"application/java-serialized-object",class:"application/java-vm",js:"application/javascript",mjs:"application/javascript",json:"application/json",map:"application/json",json5:"application/json5",jsonml:"application/jsonml+json",jsonld:"application/ld+json",lgr:"application/lgr+xml",lostxml:"application/lost+xml",hqx:"application/mac-binhex40",cpt:"application/mac-compactpro",mads:"application/mads+xml",webmanifest:"application/manifest+json",mrc:"application/marc",mrcx:"application/marcxml+xml",ma:"application/mathematica",nb:"application/mathematica",mb:"application/mathematica",mathml:"application/mathml+xml",mbox:"application/mbox",mscml:"application/mediaservercontrol+xml",metalink:"application/metalink+xml",meta4:"application/metalink4+xml",mets:"application/mets+xml",maei:"application/mmt-aei+xml",musd:"application/mmt-usd+xml",mods:"application/mods+xml",m21:"application/mp21",mp21:"application/mp21",mp4s:"application/mp4",m4p:"application/mp4",doc:"application/msword",dot:"application/msword",mxf:"application/mxf",nq:"application/n-quads",nt:"application/n-triples",cjs:"application/node",bin:"application/octet-stream",dms:"application/octet-stream",lrf:"application/octet-stream",mar:"application/octet-stream",so:"application/octet-stream",dist:"application/octet-stream",distz:"application/octet-stream",pkg:"application/octet-stream",bpk:"application/octet-stream",dump:"application/octet-stream",elc:"application/octet-stream",deploy:"application/octet-stream",exe:"application/octet-stream",dll:"application/octet-stream",deb:"application/octet-stream",dmg:"application/octet-stream",iso:"application/octet-stream",img:"application/octet-stream",msi:"application/octet-stream",msp:"application/octet-stream",msm:"application/octet-stream",buffer:"application/octet-stream",oda:"application/oda",opf:"application/oebps-package+xml",ogx:"application/ogg",omdoc:"application/omdoc+xml",onetoc:"application/onenote",onetoc2:"application/onenote",onetmp:"application/onenote",onepkg:"application/onenote",oxps:"application/oxps",relo:"application/p2p-overlay+xml",xer:"application/patch-ops-error+xml",pdf:"application/pdf",pgp:"application/pgp-encrypted",asc:"application/pgp-signature",sig:"application/pgp-signature",prf:"application/pics-rules",p10:"application/pkcs10",p7m:"application/pkcs7-mime",p7c:"application/pkcs7-mime",p7s:"application/pkcs7-signature",p8:"application/pkcs8",ac:"application/pkix-attr-cert",cer:"application/pkix-cert",crl:"application/pkix-crl",pkipath:"application/pkix-pkipath",pki:"application/pkixcmp",pls:"application/pls+xml",ai:"application/postscript",eps:"application/postscript",ps:"application/postscript",provx:"application/provenance+xml",cww:"application/prs.cww",pskcxml:"application/pskc+xml",raml:"application/raml+yaml",rdf:"application/rdf+xml",owl:"application/rdf+xml",rif:"application/reginfo+xml",rnc:"application/relax-ng-compact-syntax",rl:"application/resource-lists+xml",rld:"application/resource-lists-diff+xml",rs:"application/rls-services+xml",rapd:"application/route-apd+xml",sls:"application/route-s-tsid+xml",rusd:"application/route-usd+xml",gbr:"application/rpki-ghostbusters",mft:"application/rpki-manifest",roa:"application/rpki-roa",rsd:"application/rsd+xml",rss:"application/rss+xml",rtf:"application/rtf",sbml:"application/sbml+xml",scq:"application/scvp-cv-request",scs:"application/scvp-cv-response",spq:"application/scvp-vp-request",spp:"application/scvp-vp-response",sdp:"application/sdp",senmlx:"application/senml+xml",sensmlx:"application/sensml+xml",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",shf:"application/shf+xml",siv:"application/sieve",sieve:"application/sieve",smi:"application/smil+xml",smil:"application/smil+xml",rq:"application/sparql-query",srx:"application/sparql-results+xml",gram:"application/srgs",grxml:"application/srgs+xml",sru:"application/sru+xml",ssdl:"application/ssdl+xml",ssml:"application/ssml+xml",swidtag:"application/swid+xml",tei:"application/tei+xml",teicorpus:"application/tei+xml",tfi:"application/thraud+xml",tsd:"application/timestamped-data",toml:"application/toml",trig:"application/trig",ttml:"application/ttml+xml",ubj:"application/ubjson",rsheet:"application/urc-ressheet+xml",td:"application/urc-targetdesc+xml",vxml:"application/voicexml+xml",wasm:"application/wasm",wgt:"application/widget",hlp:"application/winhlp",wsdl:"application/wsdl+xml",wspolicy:"application/wspolicy+xml",xaml:"application/xaml+xml",xav:"application/xcap-att+xml",xca:"application/xcap-caps+xml",xdf:"application/xcap-diff+xml",xel:"application/xcap-el+xml",xns:"application/xcap-ns+xml",xenc:"application/xenc+xml",xhtml:"application/xhtml+xml",xht:"application/xhtml+xml",xlf:"application/xliff+xml",xml:"application/xml",xsl:"application/xml",xsd:"application/xml",rng:"application/xml",dtd:"application/xml-dtd",xop:"application/xop+xml",xpl:"application/xproc+xml",xslt:"application/xml",xspf:"application/xspf+xml",mxml:"application/xv+xml",xhvml:"application/xv+xml",xvml:"application/xv+xml",xvm:"application/xv+xml",yang:"application/yang",yin:"application/yin+xml",zip:"application/zip","3gpp":"video/3gpp",adp:"audio/adpcm",amr:"audio/amr",au:"audio/basic",snd:"audio/basic",mid:"audio/midi",midi:"audio/midi",kar:"audio/midi",rmi:"audio/midi",mxmf:"audio/mobile-xmf",mp3:"audio/mpeg",m4a:"audio/mp4",mp4a:"audio/mp4",mpga:"audio/mpeg",mp2:"audio/mpeg",mp2a:"audio/mpeg",m2a:"audio/mpeg",m3a:"audio/mpeg",oga:"audio/ogg",ogg:"audio/ogg",spx:"audio/ogg",opus:"audio/ogg",s3m:"audio/s3m",sil:"audio/silk",wav:"audio/wav",weba:"audio/webm",xm:"audio/xm",ttc:"font/collection",otf:"font/otf",ttf:"font/ttf",woff:"font/woff",woff2:"font/woff2",exr:"image/aces",apng:"image/apng",avif:"image/avif",bmp:"image/bmp",cgm:"image/cgm",drle:"image/dicom-rle",emf:"image/emf",fits:"image/fits",g3:"image/g3fax",gif:"image/gif",heic:"image/heic",heics:"image/heic-sequence",heif:"image/heif",heifs:"image/heif-sequence",hej2:"image/hej2k",hsj2:"image/hsj2",ief:"image/ief",jls:"image/jls",jp2:"image/jp2",jpg2:"image/jp2",jpeg:"image/jpeg",jpg:"image/jpeg",jpe:"image/jpeg",jph:"image/jph",jhc:"image/jphc",jpm:"image/jpm",jpx:"image/jpx",jpf:"image/jpx",jxr:"image/jxr",jxra:"image/jxra",jxrs:"image/jxrs",jxs:"image/jxs",jxsc:"image/jxsc",jxsi:"image/jxsi",jxss:"image/jxss",ktx:"image/ktx",ktx2:"image/ktx2",png:"image/png",btif:"image/prs.btif",pti:"image/prs.pti",sgi:"image/sgi",svg:"image/svg+xml",svgz:"image/svg+xml",t38:"image/t38",tif:"image/tiff",tiff:"image/tiff",tfx:"image/tiff-fx",webp:"image/webp",wmf:"image/wmf","disposition-notification":"message/disposition-notification",u8msg:"message/global",u8dsn:"message/global-delivery-status",u8mdn:"message/global-disposition-notification",u8hdr:"message/global-headers",eml:"message/rfc822",mime:"message/rfc822","3mf":"model/3mf",gltf:"model/gltf+json",glb:"model/gltf-binary",igs:"model/iges",iges:"model/iges",msh:"model/mesh",mesh:"model/mesh",silo:"model/mesh",mtl:"model/mtl",obj:"model/obj",stpz:"model/step+zip",stpxz:"model/step-xml+zip",stl:"model/stl",wrl:"model/vrml",vrml:"model/vrml",x3db:"model/x3d+fastinfoset",x3dbz:"model/x3d+binary",x3dv:"model/x3d-vrml",x3dvz:"model/x3d+vrml",x3d:"model/x3d+xml",x3dz:"model/x3d+xml",appcache:"text/cache-manifest",manifest:"text/cache-manifest",ics:"text/calendar",ifb:"text/calendar",coffee:"text/coffeescript",litcoffee:"text/coffeescript",css:"text/css",csv:"text/csv",html:"text/html",htm:"text/html",shtml:"text/html",jade:"text/jade",jsx:"text/jsx",less:"text/less",markdown:"text/markdown",md:"text/markdown",mml:"text/mathml",mdx:"text/mdx",n3:"text/n3",txt:"text/plain",text:"text/plain",conf:"text/plain",def:"text/plain",list:"text/plain",log:"text/plain",in:"text/plain",ini:"text/plain",dsc:"text/prs.lines.tag",rtx:"text/richtext",sgml:"text/sgml",sgm:"text/sgml",shex:"text/shex",slim:"text/slim",slm:"text/slim",spdx:"text/spdx",stylus:"text/stylus",styl:"text/stylus",tsv:"text/tab-separated-values",t:"text/troff",tr:"text/troff",roff:"text/troff",man:"text/troff",me:"text/troff",ms:"text/troff",ttl:"text/turtle",uri:"text/uri-list",uris:"text/uri-list",urls:"text/uri-list",vcard:"text/vcard",vtt:"text/vtt",yaml:"text/yaml",yml:"text/yaml","3gp":"video/3gpp","3g2":"video/3gpp2",h261:"video/h261",h263:"video/h263",h264:"video/h264",m4s:"video/iso.segment",jpgv:"video/jpeg",jpgm:"image/jpm",mj2:"video/mj2",mjp2:"video/mj2",ts:"video/mp2t",mp4:"video/mp4",mp4v:"video/mp4",mpg4:"video/mp4",mpeg:"video/mpeg",mpg:"video/mpeg",mpe:"video/mpeg",m1v:"video/mpeg",m2v:"video/mpeg",ogv:"video/ogg",qt:"video/quicktime",mov:"video/quicktime",webm:"video/webm"};function Lc(e){let t=(""+e).trim().toLowerCase(),n=t.lastIndexOf(".");return Fc[~n?t.substring(++n):t]}function kc(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function Ys(e){return ho.test(e)||!e.startsWith("/")?e:kc(dt.value.base,e)}function Nc(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),Ee){const n="/vue-qrcode-reader/pr-preview/pr-442/";t=zs(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let i=__VP_HASH_MAP__[t.toLowerCase()];if(i||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",i=__VP_HASH_MAP__[t.toLowerCase()]),!i)return null;t=`${n}assets/${t}.${i}.js`}else t=`./${zs(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let Cn=[];function Mf(e){Cn.push(e),qn(()=>{Cn=Cn.filter(t=>t!==e)})}const Hc=Symbol(),bo="http://a.com",$c=()=>({path:"/",component:null,data:xo});function Pf(e,t){const n=Nn($c()),i={route:n,go:s};async function s(l=Ee?location.href:"/"){var a,c;l=Ci(l),await((a=i.onBeforeRouteChange)==null?void 0:a.call(i,l))!==!1&&(Qs(l),await o(l),await((c=i.onAfterRouteChanged)==null?void 0:c.call(i,l)))}let r=null;async function o(l,a=0,c=!1){var g;if(await((g=i.onBeforePageLoad)==null?void 0:g.call(i,l))===!1)return;const u=new URL(l,bo),d=r=u.pathname;try{let b=await e(d);if(!b)throw new Error(`Page not found: ${d}`);if(r===d){r=null;const{default:C,__pageData:T}=b;if(!C)throw new Error(`Invalid route component: ${C}`);n.path=Ee?d:Ys(d),n.component=Dt(C),n.data=Dt(T),Ee&&$n(()=>{let I=dt.value.base+T.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!dt.value.cleanUrls&&!I.endsWith("/")&&(I+=".html"),I!==u.pathname&&(u.pathname=I,l=I+u.search+u.hash,history.replaceState(null,"",l)),u.hash&&!a){let V=null;try{V=document.getElementById(decodeURIComponent(u.hash).slice(1))}catch(L){console.warn(L)}if(V){Js(V,u.hash);return}}window.scrollTo(0,a)})}}catch(b){if(!/fetch|Page not found/.test(b.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(b),!c)try{const C=await fetch(dt.value.base+"hashmap.json");window.__VP_HASH_MAP__=await C.json(),await o(l,a,!0);return}catch{}r===d&&(r=null,n.path=Ee?d:Ys(d),n.component=t?Dt(t):null,n.data=xo)}}return Ee&&(window.addEventListener("click",l=>{if(l.target.closest("button"))return;const c=l.target.closest("a");if(c&&!c.closest(".vp-raw")&&(c instanceof SVGElement||!c.download)){const{target:u}=c,{href:d,origin:g,pathname:b,hash:C,search:T}=new URL(c.href instanceof SVGAnimatedString?c.href.animVal:c.href,c.baseURI),I=window.location,V=Lc(b);!l.ctrlKey&&!l.shiftKey&&!l.altKey&&!l.metaKey&&!u&&g===I.origin&&(!V||V==="text/html")&&(l.preventDefault(),b===I.pathname&&T===I.search?(C!==I.hash&&(history.pushState(null,"",C),window.dispatchEvent(new Event("hashchange"))),C?Js(c,C,c.classList.contains("header-anchor")):(Qs(d),window.scrollTo(0,0))):s(d))}},{capture:!0}),window.addEventListener("popstate",async l=>{var a;await o(Ci(location.href),l.state&&l.state.scrollPosition||0),(a=i.onAfterRouteChanged)==null||a.call(i,location.href)}),window.addEventListener("hashchange",l=>{l.preventDefault()})),i}function Dc(){const e=Ct(Hc);if(!e)throw new Error("useRouter() is called without provider.");return e}function wo(){return Dc().route}function Js(e,t,n=!1){let i=null;try{i=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(s){console.warn(s)}if(i){let s=function(){!n||Math.abs(c-window.scrollY)>window.innerHeight?window.scrollTo(0,c):window.scrollTo({left:0,top:c,behavior:"smooth"})},r=dt.value.scrollOffset,o=0,l=24;if(typeof r=="object"&&"padding"in r&&(l=r.padding,r=r.selector),typeof r=="number")o=r;else if(typeof r=="string")o=Xs(r,l);else if(Array.isArray(r))for(const u of r){const d=Xs(u,l);if(d){o=d;break}}const a=parseInt(window.getComputedStyle(i).paddingTop,10),c=window.scrollY+i.getBoundingClientRect().top-o+a;requestAnimationFrame(s)}}function Xs(e,t){const n=document.querySelector(e);if(!n)return 0;const i=n.getBoundingClientRect().bottom;return i<0?0:i+t}function Qs(e){Ee&&e!==Ci(location.href)&&(history.replaceState({scrollPosition:window.scrollY},document.title),history.pushState(null,"",e))}function Ci(e){const t=new URL(e,bo);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),dt.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const li=()=>Cn.forEach(e=>e()),If=Bi({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=wo(),{site:n}=Ic();return()=>wi(e.as,n.value.contentProps??{style:{position:"relative"}},[t.component?wi(t.component,{onVnodeMounted:li,onVnodeUpdated:li,onVnodeUnmounted:li}):"404 Page Not Found"])}}),Uc="modulepreload",Bc=function(e){return"/vue-qrcode-reader/pr-preview/pr-442/"+e},Zs={},Ff=function(t,n,i){let s=Promise.resolve();return n&&n.length>0&&(document.getElementsByTagName("link"),s=Promise.all(n.map(r=>{if(r=Bc(r),r in Zs)return;Zs[r]=!0;const o=r.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${l}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":Uc,o||(a.as="script",a.crossOrigin=""),a.href=r,document.head.appendChild(a),o)return new Promise((c,u)=>{a.addEventListener("load",c),a.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${r}`)))})}))),s.then(()=>t()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},Lf=Bi({setup(e,{slots:t}){const n=ae(!1);return It(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function kf(){Ee&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const i=(n=t.parentElement)==null?void 0:n.parentElement;if(!i)return;const s=Array.from(i.querySelectorAll("input")).indexOf(t);if(s<0)return;const r=i.querySelector(".blocks");if(!r)return;const o=Array.from(r.children).find(c=>c.classList.contains("active"));if(!o)return;const l=r.children[s];if(!l||o===l)return;o.classList.remove("active"),l.classList.add("active");const a=i==null?void 0:i.querySelector(`label[for="${t.id}"]`);a==null||a.scrollIntoView({block:"nearest"})}})}function Nf(){if(Ee){const e=new WeakMap;window.addEventListener("click",t=>{var i;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const s=n.parentElement,r=(i=n.nextElementSibling)==null?void 0:i.nextElementSibling;if(!s||!r)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(s.className);let l="";r.querySelectorAll("span.line:not(.diff.remove)").forEach(a=>l+=(a.textContent||"")+` -`),l=l.slice(0,-1),o&&(l=l.replace(/^ *(\$|>) /gm,"").trim()),Kc(l).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const a=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,a)})}})}}async function Kc(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const i=document.getSelection(),s=i?i.rangeCount>0&&i.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),s&&(i.removeAllRanges(),i.addRange(s)),n&&n.focus()}}function Hf(e,t){let n=[],i=!0;const s=r=>{if(i){i=!1;return}const o=r.map(Gs);n.forEach((l,a)=>{const c=o.findIndex(u=>u==null?void 0:u.isEqualNode(l??null));c!==-1?delete o[c]:(l==null||l.remove(),delete n[a])}),o.forEach(l=>l&&document.head.appendChild(l)),n=[...n,...o].filter(Boolean)};Ui(()=>{const r=e.data,o=t.value,l=r&&r.description,a=r&&r.frontmatter.head||[],c=yo(o,r);c!==document.title&&(document.title=c);const u=l||o.description;let d=document.querySelector("meta[name=description]");d?d.getAttribute("content")!==u&&d.setAttribute("content",u):Gs(["meta",{name:"description",content:u}]),s(vo(o.head,qc(a)))})}function Gs([e,t,n]){const i=document.createElement(e);for(const s in t)i.setAttribute(s,t[s]);return n&&(i.innerHTML=n),e==="script"&&!t.async&&(i.async=!1),i}function Vc(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function qc(e){return e.filter(t=>!Vc(t))}const ai=new Set,_o=()=>document.createElement("link"),Wc=e=>{const t=_o();t.rel="prefetch",t.href=e,document.head.appendChild(t)},zc=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let vn;const Yc=Ee&&(vn=_o())&&vn.relList&&vn.relList.supports&&vn.relList.supports("prefetch")?Wc:zc;function $f(){if(!Ee||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const i=()=>{n&&n.disconnect(),n=new IntersectionObserver(r=>{r.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:a}=l;if(!ai.has(a)){ai.add(a);const c=Nc(a);c&&Yc(c)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(r=>{const{hostname:o,pathname:l}=new URL(r.href instanceof SVGAnimatedString?r.href.animVal:r.href,r.baseURI),a=l.match(/\.\w+$/);a&&a[0]!==".html"||r.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(r):ai.add(l))})})};It(i);const s=wo();Ze(()=>s.path,i),qn(()=>{n&&n.disconnect()})}export{ea as $,qn as A,ef as B,Dl as C,Zc as D,sf as E,ge as F,$i as G,Mf as H,se as I,Gc as J,ho as K,wo as L,ga as M,Ct as N,ji as O,$n as P,Of as Q,ff as R,Hn as S,eo as T,_f as U,hl as V,Tf as W,nf as X,Ff as Y,Sf as Z,wf as _,Xr as a,of as a0,yf as a1,xf as a2,lf as a3,tf as a4,gf as a5,hf as a6,df as a7,pf as a8,Dt as a9,vf as aA,Hf as aa,Hc as ab,Rf as ac,Pc as ad,If as ae,Lf as af,dt as ag,bf as ah,Pf as ai,Nc as aj,$f as ak,Nf as al,kf as am,wi as an,fo as ao,Ji as ap,Ef as aq,jf as ar,Af as as,Cf as at,Dc as au,Zt as av,Ir as aw,mf as ax,pe as ay,af as az,zr as b,cf as c,Bi as d,uf as e,Ys as f,ne as g,ae as h,Ac as i,It as j,Jr as k,Lc as l,yr as m,Oi as n,qr as o,Xc as p,Qc as q,rf as r,Tc as s,Jc as t,Ic as u,Ee as v,Tl as w,hc as x,Ze as y,Ui as z}; diff --git a/pr-preview/pr-442/assets/chunks/safari_32x32.Bkuv9jEj.js b/pr-preview/pr-442/assets/chunks/safari_32x32.Bkuv9jEj.js deleted file mode 100644 index 692523a1..00000000 --- a/pr-preview/pr-442/assets/chunks/safari_32x32.Bkuv9jEj.js +++ /dev/null @@ -1 +0,0 @@ -const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACgJJREFUeNrEV3l0VPUV/n7vvVkyk0y2yUISJgFCCAMUWcQALoAaUEiV1l3U9iiVthbautRTPZ621ta9BzgKtW5VKseKHMGlUgFjICxBFhNWEwOEyTrZZn37e73vZURQarX/OHN+eS9v3vvd79773e/ex0zTxHf5YVk3rv36Owwd4Hg6+Rwoo68JxjG6zMPp4uFOz8LD1x/ETRc0woBg3wPwAlRjuCkpxUxTM6UBJdn8Yc+nLz96oP1US7+90zpyXvi/oRMewzChawZUjY6GaV9k8AShctWIDlzEYt2V0GL55ITXw0xj4iSjc96CzBXPrxxcaeiGvc23BmA9aGgaHE4hJy3dU+HJ8gUKc91Zfq/HbWpFV6K/90LWd8SDZLeIGB8+/pm5+7NmqbF/UO0tKnKWz70q/UExViiv3zjw3LcCYNre6vDlZMwfHiz5UcnY0osDRZ786fkhzMrah7xEE3BkP9Dfjl6u0vxXzw2Rjc/WLWvZunWDh57PSiVxYqX3b3f9YtgfNrwRtnIf+0YAdFWHK81xfuWFYx8fOWXUrNwCH6ZkdmFu1lYMM/YBnTuB9k+haLmo9d2Hjdz1rAXZw/oXd7/cmf/C38NvPfF7nzQ4MNvvRl5+zv5IlNtekCcEaOtD/xOApmrIKfL/LFh93lP5ZQXufHKnxr8PF/n2gA3uBk4dAPr6cNI7D++X3IdWYRQcookiUwRfmJbF37J0mWdsVfXJVcsW7VUP71u1ZBx8/EArhJBm7c99TYHYnueW+O8Z//1pz/gD+e6ydAV3FG/DxembwdrfAY7WwexTUF/4ENaNXo2IbxSyOBNpzECag0cmVUgaJGQEJ4wd/utXNrex8TPW1TaDGYba26OEhwBYJXaOZZHN63PVlF82+YmM3EyU+1TcWVKHMY5twMn3gNYm6CjGe+PWYFf57XCmEf9dRCqBgSfwTo6j/wmExwkvb8BZkJ/tufXpN+pC3hEnWnrD/RF9wCah1r7/3AEQPFnFcxYu9+TlYKRPw23F9ShiFPITWyjnbYh6Z2CFeJ+69dWuneH9D+5RxaSYWx4MVlZfeXkgWJThpAA7BQuEAK/bgXhCgbu0vCji/fHKj7Y8cBuVrS0sgqkr5yCdBv+Eint85WUjSjM0/CSwDWWsfsh4RztCafOweP2kze8/d+v9CDftPfPZnc8UjT5/6ePLL1l88xVOlYfLYdgg0txOZDji2O+5bP6B42vP09GwxQagdn7y1ewLaf6cqUvuzPMxLCmrQxm3AzhO97eHEMq6GjeuqXxn+1NLrwFU+SvlGu9obvjToqv5tPR/V9101SW8pFMkSC2dAlyUkoTDjfjU634lnUwB0BTxS0pjIHP81AXZZcP9d5TVY1xaAxmvBUIhdOcswCNdd/VtXznjp2C67CqvhpA/Bpw33+aNqSSghT+FdHiD8vGKu+8eNWvOTo/P6+A5Ei6eg0MQiHQSHGVT5igZhWVk7YTgTzu7GRkkrZnByfNuqDiEy/17qMyIdKdOosc9Exsqnkb9qmfWQzNC7jl/BJ83lgRKh27qQzLDOPAFU+CiJdet2Hty5/b9wflXTLMqiiNS8sQJzqo7T3YaVzh2ug1g9djdp43zxOsBzcsdqVImXFeyC+ih1daKCKvEG6V/gWi4UTl14sSc0tef5TNI4u3osaHQE6csVyxumVwAyszJZvawgnxN0QnkUFlz1pdAWtFi2aXj7RTM+s3C0wA4ejhieoOVhX2jcqKkbm3N0JUM/KP4SXQ7CpGeNFF1zWXTqOVNM1JO2y2I/li9RbMWXadWAYXOkyRI8aRi/3Zm17dP3RkFNoDsqulnZoAoYs71dRx1orMFiMrYkH4vDjknwC8bIPvgVfKEfdGdzSHawGqGOhlXU0shEJoFkHPA5CkKPEWGt84FmEy3+qbLBmCcJYZsikPtnc7FjjD09OBjLMBruA2FFMaENRZQGAe7+1UlIeo0D7DTHpF7FgirJVtL0027RasUEkU1IRGipKQhFpegRBIw4jqDGO1KdUP35/sQlfVJLNE2ie/pwoBcjEfVpRCdFMqkBt1BLHY68P6Tj606tenF5WDMiRQDTPtofhFeOyeqxegvq/sQYxij6UDvBl4CCacr9RNXAa19DOttzWeibK7sv4U1ktSOcCUQZwJ0us1DcNOHDc+F2Nt6Vj7POJ62lVkK0LKqZIgAZsp46tj9yecDiQ0gl1Ymi534Hvq7jeZkReyljkt8jqxBRGOuoSQZVpXpKLv06gVH1/y5zIx1nGC8E8ztSxlgFrHA+UrA5ZRD8Jf7C4KTb6H0cDqNTgYB0XRrGUyKRqXk2/e+QA9JKQDMB2MwEwOt5VCYuW7tyd92+0M/zx1THowQeQQSEd5Kuakgt7Qkc9xdK54/+NiiGpPnRddoEqPADHLFSeQiMaJoaWLCWVk1/sXAzAtqJFklHhAHRAX9lP9IlNK55ZWPzGTf6lQ7dlo80CCHA4iFcxIh1vrhW0dXK3tee04UDUSjSUTjMoh3SMq0YhKCNT+8dNLv3trsKjpvuipJVHaGXXqqJMMBZdrk2VM+KK6aWhOlErTIl5RURBMy7aMg0dVtyg2vPWS1nFQKHFb/lViyu4yk3X34QHJHTKFu3Lj+ZWXqD5aZgYoRUTLqJBkl7hDLGRyaiBGz587wB6fUhw8d+CAZlQ8wjje92b5xeSNL5wm5fiFOHutWyAmcFYVEUoYsM8gfr3/T7GupO910U2OhCjFcBFnXDx0Ud2WQIV6ORZLvPrLYe/Ozm2KUAY5L2kTzknRbzUVW4xAy0lnxhbOqCW61xQODeKBQJ5XImGEYKeOa7X1Coso7uK1F3fHXpWeSlbOlwAqHmvBCNlTdmREaXxlAaYYHelvDFnHjH5YoFIFIlHI4QDmkc8s7kZTGymsinkSCDFiKl0hQnZO3GuVcsbSDQj9ohV5kSDTVH5c33L8QSrzzrLGDtM2SmCSYM0HTgVA02p+OkgAq5A78c+dh1DZtfD4WiSUw/4GVYmBErqqLFAUVbpcTDsoeb8viF/3A6gWWAMkEgmYQJAYlJHasr5U3PXo7pMHWr8w9dmESCXW+ZBfvaqiZWuVYeFga806pqmLx/AnYfSyOLfuOrQ0N/PJ4KGvRw9vjc2YrBQU8PUGpMMDzVqdjNj8sOdZMKw2ASIwXj+39TKx7aYV+bNMqO83nmjwNczvhFwhcZ57S8NirPnZqVlePf41D8L2ZmynTaKtmISE7mxq6T7y4rq9peXhkpSN46bXOkefPdhQERvHeTB8nOJyk9IYhiaLa196hnGjcqxytfdto2/MuTC36X981KFo2gFQfQiTU5g3veP3aWNO2mTwzlXC31tbcLDc2HpT2d4b1Lmun2jNVj3f7SYhyqL2m00XdVJMDkCM9lsB8o5cdC8B3/XbM4Tv+/EeAAQD76+LH+g+/1QAAAABJRU5ErkJggg==",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TiyItonYQdchQnSyIijhqFYpQodQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxcnRSdJES/5cUWsR4cNyPd/ced+8AoV5mqtkxDqiaZaTiMTGTXRU7XxFAH0LoxZDETH0umUzAc3zdw8fXuyjP8j735wgpOZMBPpF4lumGRbxBPL1p6Zz3icOsKCnE58RjBl2Q+JHrsstvnAsOCzwzbKRT88RhYrHQxnIbs6KhEk8RRxRVo3wh47LCeYuzWq6y5j35C4M5bWWZ6zSHEccilpCECBlVlFCGhSitGikmUrQf8/APOv4kuWRylcDIsYAKVEiOH/wPfndr5icn3KRgDAi82PbHCNC5CzRqtv19bNuNE8D/DFxpLX+lDsx8kl5raZEjoGcbuLhuafIecLkDDDzpkiE5kp+mkM8D72f0TVmg/xboXnN7a+7j9AFIU1eJG+DgEBgtUPa6x7u72nv790yzvx8yGXKNiB+LuAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB+QFEg0TAvTIUL0AAAdPSURBVFjDpZdtjFxVGcd/zzn3zs7MvrQktJQCEUgIrwmWYpUYIqiYQAFRoyQkEoz6AY18MQqiSH2BBI1BwWCiCQkEE02JNWpCU2tooChJQUtkqYWWpYV22d12d2Z3XnbuPed5/HDvbmfZFiucycmdO3Nz/7/zPP/znHOEk2wffv61kU4I1xt2NaqXmujZEFYKuULWFMkmIPzbSfYimv/lpSs/++rJvFf+1wPrdh5ci9n31fRW0JqhGIqJAhFDgQwhB8kQMiDD0x31yfwjR7v5o29c/aX5/xvgqqfHqk03cC/CHaB1wwDFMIxYfJcCoLjPC3HJcNIj8XOkvkPiuxNC9u2dl3398ZMGWLdzaq2PssWwDYuioiWAlqMuhG0RZAGiR+LbpH6ONOmQ+C6J6+IkbJvpNT/z4uWbOv1a7p3iG56dudRHvwvcBsEheASHWNkpOv3/Lf6WAAmC4Bw4Ae8UL0bq80+trld3f+L1n592QoD1z7RPN5U/C7K2CE7R+0UL4eKz+Iz1PSssijtneLECwimVNDtvMDb/fsPhTfVlAOtfOFx3lv8JOOt9eVcMEUOcIaKIU5yPJC6S+Eg1zc51LduyDMC1ancZdrmVNsOM3vQ0s2MHaezdT/PV12m9cZC8MYOZnlDflf6QsjsiguF8EYXEB4bqnWuufeV7N1EmjSv+duSMXPSbAHmnY419b8ns+AymIM6BFKEVMbAjeK/UV1cZPHcNbrACpUGLHhFCASAKYjgpYUTxongfZKQuvwL+mADMe93ksFpj/yGb3DMu+ATna0jFg/eIE0SkGJlF1CLtqYzO5AGGzqpQP39tOTNysFAIExEiYCCKSZmS0hPDtd6aG1+5c6Nf/9f9KyzlsYndB+zI/pmESg2X1pFKrexVJK1CWkF8BUkSxKfgPIgja2SExjS1NTVEMsTneJnH+3m89PAuw7ucxAWci4UnBDAjV1mbxIrfOPP61NHpN1tnukod0hpWqSBJBZIEcwJCEQEHmGKaISFFYgLO05vp0to7zvCFQ6A55jPMihqhVlYOM1RBVQgmiHN4p5e4VqP58cmXp88krWPpIAwMQlLFnEcNTA0zMDNMwcRh5g9RHbyZgfqaZKC+ytcGb+uMV96Kcy2gBxYwDZhGsIjGQjwqhAhBhRAAZ0NJY9/cGepruMogVGpYER1EDZFynigULlTCq7tnK83uh6ae+OJ4n/kfW33f81s7b0/+Z8Vwd6VqhvkctUC0iDMlaGFIwzCzwhumFddpyHmkdcxXUbXjj9oMUyXf/QzxwGtfO7JUHIDJ735kwmL6M6SD0UM1Qy2gGogxoDESVYlqhKjEqOQxzrlg1dMsqaJWimrfVY9BxL0vYJMTuHR46wlrkOcJoQPWRa2Hxh4aj0UixkAIZY+REOObibqqEytqW7HiCahRWhVUsNYROHQASQYgpCcsg4Pn75kVi0DAYiBKhrecGAMQwGKxcLkIRELQ3yaYzBpWL6qoYFKKqxV5d4a8sRdcAr6CDMg5wJHjAVSss1EkB0oICwQtxaUwpHMRMUXIJzPf+2ViZvsFWWMLddwE649AL4PmFM5XEJ+ill4H7Fq+Y9o0EnTuh4V4UQ1NA5GIIxRQTjGLiFiuZjfvWLe55TB7adGURunSPi80Joq0uAR8imC3ce1DA+8EUDu6QWidLbQQWoi0EWmDtYjaJmqHGHuEGI72VD+9Y93vdpSLkdtupQEXIOgzpHS7iPNF5StWwbNHhur3vBNg1xUPb8e1bxVp/UukZQVIG2Ees5yosZHH+Asfwgefu+z3Tx1bVzeNDrmMQwgjslDxpJQSwR98GX/0EFKpIy5doAzAF+Y2f3nL8bzw0Z03Dvecu1DEjzhRiSE52D2FsdGLN2fHXdjd3aOPALcXJXcphH97H35iDElr/QCIWQ72ldknv/o476M5AJX8PjNaiz5YSIGBpQMs3ixtKfDY8Od+/eSKz//mnJMVXHnTgytPvWbT2uVbm7tGvyPC/VLuroqr4EJGZfRpJKkiSbU/An3OtShmf8DsySjsaG25fbJf9NQbHxgOceBqIV5nMbuF3vyDjad/cO9SgG+8NsBQ9pxg6xdTUBiBdP/zJN02ktaLH5cDIKbH7tWmRGwKTFFbBbYaMxFTNHR2Nd3klTz1cG/ppvTh83qI3GDGASvmYxl1I5x+AWjEYn5ycRZWGVyEcQlw2sJALeaTWO/mBfHl2/L7LxrHZKMZ40t8UF9BOGUNxAw0vDe3qb3pg1zV3PbjsXc9F/DAxaNocrmZ/IM+iPyMi4n1YSzMvwcI+6eF9seObr9zz3FnwbL2kwsOU+UqM36EWdus2IhkH1hvYWQVls9jMSty/u4tl5j/tFFtXtHcds/Yezqccvcrpzuze0y4RYQVAri5qfnK2/uqbr4NbuF0VKwlhQl11ix/VHr6UHPbt8be1+l4ySwZzj/psI2GXeCwi0R76menG77dQPLuYd+Z3SMxf9aHZOv0U3fMnsxr/wvq7XNZFeVo6QAAAABJRU5ErkJggg==",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAJVUlEQVR4AZXXA5QkSxbG8f+NiERlVbV77Hm2ubZt27Zt27Zt7zzb9lit6kIisDlc6zvnl8ZNZwj/b17eE9KkJkJWCc0KEhXec+SrFFC9fNnH7wu+AXwPwQCW/xAJO/inzJ54BwV4/iZjd/imDq0MwPEf4t96+vUSeimX37YacCxGA+7fF3AN/zIb7nsPAcLxB79J5a2RANSgu2J5RpYcElK9hqwar0nW6nT6O5ZcuOmh4/df0jrkfcgoVOf8GrgX+/LCaQHCPxfwGP4pc2ff/hTg3LutfOH+U3jRilPvrNrxU6WV3MWm2WJSgWZZq5CsJKSB84+9LyeONfB+wirfMbRv+SL3Xv91hsZXAZ8n7f/TJZHw6GEAtp19kgYcgQdGunw3cAjAMQe/6Zj5bPSDvdbonarmAmilkIHJCmezgGrm+EyzavQKff2xDyCKTiMAEpQn9YqLNhR848YZdnTXAn2G+bszYcjmAMhGNnuA2dnlr3VKHey9e+Ly5R/Wk673+VnfBjfhj4wuCS8Y/axa1VwvTy0+o9eHlSj6eN9gpdlIpLv4oFFYwCr6EjhxTUyDRfz50vcDz+aoFfpvz4LhUSu45ilHK8CrIIdYZU/IfCBrFl9ap15Nq9nlhqElblN7Qr948SdhKHDXqV+wXq1BJQOC01ApVAVQQKhAFAAohG4eOGR1IPPP4orLv8n0+nUsbu6/MQ3JFPMhCEAvmOXLZF5WRNNON/p6YXJLIMs5dugczaiDBjxnx3v4w+DepO0BVSWESoPy3Da7EluBiaaARRDKGrUg9AeOBcs0J/qPAMf87VOhWLaaZdKTGofo2dOXm3m0dgQj+CgVb1JxukUZZQC05jwEyIsGbpDi8xhVWW7eeTjn7Twa1GU4B3i/R9hNY60lW3A0sX1GDeLU1NBP+/aJKvjIVa5xTNPk30zNAB05kWa1C9KqUM0SPZQDwt1nL+Hk5gWcPHQBS1ubuSI/ghAUwWbs6DZ49Nrv4a2gZBJCVQt7efAiSHI4ycWfwGy20BLZtuxuGnD9svXz4XTmPu14zplGqRnLYbw2ttfkANCE28aRiXlY1qfTWsTkdTdT6gY6qXB9w2dPeQxPO/5b2PxwjF4BodxfBN47gteE6lHAt0G0WnBmz22aW3G4D+o+SjkENBJABfb3awA+CYgpwCf8YdvduP0l36UcNFBlhe8pEOHpf/oC373ovhh9Fa68GnwA58FW4BzYXXh8DcqAqjsE5PgACMHzjwkA4INCNRw3tie54/Uf567XfovLZ49H5R38oCLkFlXkoBMe8bMf8JOz7oL2t+EGl4AdgANspXAWrDudWLdJtVN1hxBkrEZAQgAIUmMPFQBQPkAM56i1rJu9M003jc6n8N0SugX0cny3Qvc7EDSv+vNL4FrQgxnoXwpVF1wQbBVqI2zZeXINU3fwQR8TUIQgQC0AXgDozDWxUxl/LA7h59ExFFGLUXsr0osIkaWKKpyJ8caAUjhAZIZr+gdywdxBnFhej19RoIqrIT4IvNQcbO69iwdvPMlw8nXYxt1We69wQYtHCF6QWpnH7NjRZk17inO2H8j35+/M5HDFcGOast8gigusjSl1glUxXjRBwGjob3dcp5dwYno9YauG0RKq9WCWgiuhkAm+uDhWdQfn9U3WR3XfBB8UuF0E14tYJCWSOp6w+iwOUTcT9fo0+h2i+R7VlCXfHtAzA9r9KVq96drM7r7qzpL3FCwGugEKIO9A0QkUFrwf8KSeNXUH/0x9ReUj7O4C9J4zUGpS7ZCkxBvNUcuv5/NLP8ybz34MN3VXsHB0J0euvZWR0R5n3XYMl285iFbWwQfBaCHvD1iU7gQDaGCwt+86tSYkdhs/iK2pO9Q73lC5mNIlUhdCrApUqZHEgQ6oyBF8xBGLbuZbj3obG8tJxic7tCYLGAYyeNNXn84X/3gfhrI+zkcsUhs5btkt0ANFgApwAIUHpYiriwEMcZ96x1eULqawia4LwWmNrhRiFUjAlimDbWMkZY944QwrR6bAC/SETVuHOXfDUmRujqHBFENqwNapJg+6yzqWTM7j1wvKBfYHp2AAzv4cQMJ3FQB/esyLrxhtTB0x0dzmR9IZtfuV3ChhtICRnCptcObmo+jbFovHZhg0+lzcj/jJtYeyZXoJjQRGWgVz3SbtsfV8572fqs9STtgqSB4AIOBrCrgGOAzA/OHRLzWAdUF/Y2Czd+S24Qs3UJEq91yGviHEMVE2y8rFF/OKs+7NrZetwOgSCYbhBFanU+TOML+twdKl1/Hel3yb8XaOnxLUIIAHAuAAAQJvBQCMfix3Cj5oBr55bSTVs4yyjUiXIdJWjDhUANEeHwxj7S73P+h64tRT2CYKjXUCwbNweIb73/5s3vTUn7Joso+bF/QgQAl4oJSAoJhKc85e/WJuHu8yMEHCKxfwx/c/0QDWBv3KVtx510Rze1VfhqidzBHrEtWoYLjAtyvUSA6jXSoTsaVq0hVDNjRgyaIZ4jEHFnwQlASwAIAHFJ6tieLWkVt557aDgIoPDYuE1w7zt/nTe5523lA6e9J4tqMaSmajZtwl0hWSVTBUElrVbqpdwFAOrRJSB0ZwSlCxRzR/n0AIhbbcOBzJZO9FwIeZa2jAGboCwO8+9kwF+MolDzbKXh6pcrzuV1q5SAiYPgi1UPOAE0JpCD2LpLWGRScOIg+mpkINcOLItZLCREz2vgZ82L3lFQI4ALG8nn1ZFw004Jw3hzTj+TOH09nx+smomnHHNMxAjNqzI1oVZLtYaNQSt0e8p4BgAmiPKO/oxhqrQIe3Am8AYElXgAAg4Z2Kv826N+5pC1Q+WtxOOj+q74mT6vuBVtKxqRloI1ZU7PYXQPo3BUR+LxtQ3tluywj+tzouXgZcDsCCYv/OASS8IuMfc+aHn64BB5BG/ddlUe+NrWTetOMOjajnI1V5pZxI4oTUQWJrPhC54HSQTpXo2flxevmi7wKPADjoxPP+ZTtRimcu5F/lgi8/UgEeINLFqlY8/5K6kEc2ov6CGoku0GLR2iHGQ+RqnkJgziXTlUo+ALwdYHj53L9tH8r8Qw7k3+Win91PhtMZDViAysXNieaO0xumf1pi8kNjXSw0qkq0uFKJnxbtb5TYnc3yW38PdAA2Tp8qQODfRDacehf+W3ZetVLVR68Ay/+YbO3N5n9Z/i+Y9KFhNXXwqQAAAABJRU5ErkJggg==",Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAHqUlEQVR4AZ2XA5SkSxJGb0Rmucf2zLNtDde2bdv27rNt27Zt+42NVvnPjH3b/6k+PTU8e8u8X2bEjxQ2g7lf+KhrLltqQGQzsHpNM2PGChDYBPLWJ9/LhpBSSUNXNy1xZtz4rWNvz0yS5p4WwlQzG4yBQDcqc3H+Ce3ouBt4FaAxf566wUPYWHB581PvZ30E7x0Qpv39SF30999+KFarPyVp7m8hOGLEzMCMFAMDBEQ14PxDmi8cOep3f7kGiMt+/wsHhPUH+Ni7aKeRykNx+MidQ0/XyVZvHEBIjJQIGGZiZgKAmZEmEswUM1An4jMP6uDB3waeC51r1htC3vjwHAZSseiAUBg2/CtSq50kSZIDAmYAjlQILSfAOrNhAQOL0Yn3dS0WvwOcFbo620Mgr7/nIFosz2ccEIYWB/9C6rVDvVl06gwz1xJsZgDSBwtYFPRtCoVfAofFnp61QvjWD18ZM8QBYUJdvtos9x7qIIiqSoyqIvyfOESMGEOsVA7VQnGVdgw6MzZq/SHcD3fYEg1eR5WT2BHd7s165UqL0cv/QNJ7QAaOXgTST+m7iCICYAC08grQ+hOxKITwLl8q3uhyucU0VUW8eZU85IgAfzpo9FHfu+ON/FDRECJOFDSCqOJaUiBWyoRmQlQHAoQmqg7xBUAgGmaAgQGYCUbAknyz3nMUMAOIAP79n9ky7fjAJxblbPpWWw4Ln3lhpWuWsmgMBAWJoN4jjQbNEPC77c2wffchP24sJlDvWkT3gocIyx7BecH5HCIREVA1VMGpOOcIqo3p+ZH5TwCXhUZw/sXlr0aAbUdu+Z1cM3L97mNkr7c6mdpIiN4TCIhTpFKGUWMZ+b0fUdhzH95YlWHByggGkyYrW8/+FI0lD9L5xKH45lJ8rkDWR7IZxXtQJ6SVMmISvgNcptXno9gtI9i58zPbVZP68xLN9RY873p6Bd+4bz6+lKOgDpck6MgxTPnPkSwtTuGU63t4fhHUE8GArDN2mgDffucgxmfm0njix5R0OeKzCAYCNqAvcBLE53cCXpb4yLvY9o2p30hiOBUIgDMVfnf1a2y/skqukMU3mkz++2F0bnMQvzmrm9U1TykHAAaYQW8Nhheb/OszQ5gi96Mv/wrN5AADAQQEAbGA4FD/TeA0jwaCxT2NFDWj6pQr9h7Hb258g96eHkbtcyAde+/Hfy7oYXXdM7gAzQBGCgaDi7CqkuGU27r52yf2Iw7dh1zlUfBFIIIIIqSIgdgeAF6cES1ONVKCCIVG4Kkpg3loq+Ec/PhbDNp/P95Y6fumvZRdVw6QBCjljOcWCa8uc+w4Yl+oP4J4BwZI2w9gKoACRLPBZgaYgGEYLgQu22sMXcUsQ8aNZd5K66s5tMtbZTAEqCewYFXAFcYTNQMCCAMRALAhYHiwtj+0tLEagbkj8ly/y2jm1ANRwDYiBzAGIC2P0Q9tu3NAMQOzLgADa0mCCoVG5NodhvFCdTVbDwXvwWzDcjPIOpg0XAm1pag1QWjDDAwzuszAp37mgdGOSwJrOrIcW3+TM4c12XECPD0vbbgkrC33Cl0V2HOKsc2YQJj7BF61fcoGPp0LoACYPWFA+y3BGOxyXNP5Cvcse55fvrP4tjzpE4GhAiIgpPJhxYTvvKME5afJVB4FLQCRlIFzDNF4Mhr4aECI95lqABxtiAgqxo8ePpfr3jmGkz43lkNvKfPsIqGRCFi6I9p9ivHL93RQtSWsfvM4JmQDZh7BaOseZ0ZIErsPQIZd9y0BrLCqdqcpM8WICDqwf5wovUmNyaXRHL//Fzl47M7MXaa8tTICMG2kMnVs4NpXnuaFF0/mN1u/gVkeIa4tN4uAhshdwCw3KSO+sKKqQMDsJERnGhjGWiQWKfk8Cysr+eBtRzB73M68b/LObDliFAB3r1rGNfc9zqNvPcX90+ugOUgiSHvXp/dJEk8CsHkNleYjM2gx+cXJd5vKdGCtcrR+qiKYGT1JjSQGMuKJgHSXKXclHLlLnp9sVybUDSfWXveQ9rXdA/RLPQKTn5moQJQYfhKz+iAiedr2X2BEMwAGZwoAGAZJoE6enUZEvj2tCo2ICu1yA1yMVq3V4k8AvJPUWX1gelrHVyY7IEiIX41ez0AIgLbvRAdiMaL1Jp2rm1y0e+Ajk8qEBq3RD5RHM3O1evwacGY2o30uAEkenUGL8S+lIbQRfmFeD7VWFw0shxktJCR0dTV4V0fkmv0qWJIgwkB5QBCLpm/L+05KCwXXLwcQe3ImAxnz3MQ0RC18JWb0JFNyGIEUZxgARMMaDZo9gTv2abDXsAoxERSjXyC4EKxeq8W+0/JiSdc9LY9PzqCdcU+lIaTW3Dlm3cnm5AATjH415pqJLO9uyPfGRI7frddCI5oDgf5NWJpJfLBciX0Lk1KbvIXUH5nO+piczkQYe8vrunTW1A9Frz81lf1NxBED9WqTMTFw7741xudqWBQwiEYIwR6q1+ORJ5+39Bogfu9r4za8NCs/NJ0NscWz4zXkPUAE8F21rUNGZ2pI9lzem0z9w5Qw+C/b9lKp0a0wNwR7olKN/YvToaO8Nsth44vT8v2HsCmmvTjBNQdlN3t5vnrXhVrrTDZref5flF4uFtha3PUAAAAASUVORK5CYII=",C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAKI0lEQVR4AYzVA3QmSRfH4V93vwjGM/mSzVhr27Zt27Zt2/aOrTUGi7GN2HnZ3VV1v+rJzlo557m3zq3U/Z8T8l8+giDwRMS1+I/c6I3Fv/nHy3Q67SqlI0RaGuv6imTPFAmeFQlHiaivI23naJY7s7Wpvq9FJHqbyWQi/J2/vUilM66IOBa5bMtBIv7EIFTB/Hojo5cZeXWukadntXltnp0tNxLdBUoF0efmcq0HWUQ70umsa/FX/nIY+lnPYuXqqoEi2YnNmVA+/FGbi4ZpOfmTUJ00JAjPHOmr88b4+nzrbHuOZqcMCtWlw7V8/JMxzRklIrmJq9ZUD7RQQc6z+KM/DURCz6K5uf5Yo3OpsTOVnPiKUie97qvLh+TMmR/7cvvEvJz4SSgXjfLlktH+2vMdE3Ny1ie+XDk0Z055I69OeVWp8bO1iMmnmpsbjrXW7ea3+P0g8CxamuvOy+Wzcu8IZfZ/IlCXfJyVI94J5PqxWdnlHSVHDQtln8FK9rT2jgxScszwYO3dDeOycuS7gVz2SVYOeTKnHhijTS7wJdVSf56FiPIs1nGiApBqzXiAzuczR7dr32HwLcOSZnaNoaTEuCXthZ9aEqRdh8JCqApdknFQAIBnBSGUxTVBHoq1sF2HHKvD9rQuajBbdk9w58kJN93cfAwwpKCwaG1WW3CqlSVLlzsWk39a0F/nm+vvGOTLbg/l9E3DW2X313wZ8FIgO9kvfem7RroP0tLbfp97jjTSa7S2bLfnaBbdrWe/Cjt9mJPSt0VOu3WKPHj6U7Lrwzl9j/2qmaC1ftqMRf0tlq9Y6Vi49Q1N9O/XJ8L2G3Z+aOTMWNcJ85Qu7+a7Q5c6lHX0SbmGJXnBKwjQ8RA/pgjauhVGZ/K2O16esEiYqeNcP/c9Lh15GS902pEe5Y47fk6oR8+Kd93OZlj06d0rgrNy1SoXMJ74e7oFXT4/582EFBYHTlk3w7dNCZaGLu06gU6ASQJxEAvPchwLHG3wlKHBLWb92jW8PPk1th/zIjvucCep/S/goKImKpvi+NmkvHZG4Bi/cS/gC03SjfXq2ROAsLXiwnd/dGjJ+yYsEG/yMpf/lShirkvggPFAfgO3jWc0YcwjE09y8uxJPDP5PTp/O46Lex/A9H3PZBtpZcjKOJsUG3J297j5rnfK1oUXAl94xWW4gBkz4fPSVt/df9xCRcfiwO3bObBfes2ClIFYSOiGqN9RUUfwaS6I4+gsL094lvcmPYP3w3e85ZTw+gm30DnmMy9lol1EO6Pd4xZqUjZr0uRFpeMnfWVcW9h2YMl2yxrpvKIlNBpxBi3yaAwUibhGodGO7Y6KEEadAO0q0kVJtl4zh8nv3s55syaxevlqFlbW8MBptxGWlKJ1jnhCaAg0gxZ7RLtX2owoa9v1S7azcKOSjHlbLm0yZFUoZcUBO3QPqPMF40TxUeBve2jnmsDPcsXXQ/ju3fvZtLGSZRV15BfM4+lDzmLRNnuR9FsIXUEcRb0vdmdIWbuQKCPKSthMCzcqRuhTkdIkXM2sWpefaoSYPWtpY9Z1o3B0iHaEF3MreHLsW8Q9jxVrqtE2fOJmO/DeUefiBmlCB7QYlNHEPM30Wphpdyc8w5qUwRjpYxGLijLSMR0YoqA+HQUTuiywHGOI7rWFFjxjUL7i7G4OF+y0CynnOlquu4bWikpaO3bm7lOvgmQB5EKMOLgCAHkFfYqgX8KwMitkAgdtMwFce8BoLWIMjhgaslCdBjvEaEMEpXBVgMr5bJSEB/t2JJP3mdW3H7MOPJj2WnHvUWdT039jYrkMIgJr34plcIyhNm2oyxgQjQ1D20wLNypahY3tY0IQCtGjkoSKvjR2rhEbjmVCO9Oa5zbsTNfCJNPnLaB67mzYaw/uvvI2xu+0P242gxYHtCYi2mCUwRNDtwKNbQSB0D5miDIt3Kjk8/ml5cWGMITSgijMkMsLjjJgz57tkg64vX8H9irrwHez59G0ZiWtgeK2FSne3GhXPC+BhAaUQLiOwdFtu5QvdndIqKC8yBBlWrhRqaxrmN6rvaad67jVrQ6ZPPQtUmhfbLigUiH7lhZy3SbdmDZ7Pk0rl/J1XYar6mL8VNwdT4FZGw4EbcFEVBQM/eyunC9UtbgU24xe7RSVtQ3TLdyo3Pns0B/LCv2KAZ0dh1DL1l0DUmkHAlA5TbeYx3O7lLNy6RIWzpvD08vSPJLpQmtRyc/hQOCAL7ZbPpbg2LPxoSXlsHWXAFdpGdjJcUpt1h3PDf3RwhERD9Dzpn/9/LSqkoseHIXu0Nl49QYK2ivmN8KHp5WxW6KCl8ZN5rW6Aio69sQrjCEYxPXAscQyPwtjOJbJx9i4WAjSHl1dSDV5+saDjbfdejUvABdvuMWunjti5Eix+HLagpe375nz+3bxvHioZasuAQvWOFy2cze2d5dz6Rufct/yzlS0Wx+PBCYPEsTAdy3nV/m27gQOiRAq6ly26BSQDI307eJ62/bM+l9OW/iyxahRo8UZOXIUhx56iAuYqd9MfKY2KL/0qvdjqqRbPlbYpQMXb7Kcmz+czuKCjYmVd0XwMb/+M2orjvXzV8DRHhLGEd9ln9KAmqYkXTxDVW1CPXFiGCtJVDwLXLb9zvuuzXRtOLfedodYnH/jy3f26dS04IK9TGxNbaEe4FVx9durSHXYiQE9y1HNLpJPQj5uxdq6H/U2jmVScfonNb1s6MKqJJt18llREdMX7GFifTo2Ljj/hpfvtPh/I/UAI0cYxQH829q2bdsNqujKOLXts21Ftd2ebd9ytKpjqw5n99/3tnYn+X16CicsPBJE8HCfRzm5bYiIjkte6FCMr8MuujBkU4O+NEDGliQJ3Q9rGB0oY1CQBHFSQUd/GeKsAuGvokOgCsMZBwaFaBhLeh5z+WpWhtgxcucTPfzyEzhV0+uY+NSFROTk5rchgvHylSJLbYhITs1YrUnNr1NvOzFut0uffVTxzqeBG+LM6HnYgXnhNgw5o2F4gIoRNHwwnRdESuh5xIWNCVYsCrJj7gmHd8LeJ3r6HTcccsvrlLSM1USoityGiC94+YEsWdsQcdo/ZL7NWO0urlGxPszlGbtH02cfkz0Lz8pYG2nFTH8Fy8MkrAiX6KxiXZQNi+htzgnVM36/S98Y+cRTXKtBMta4T/uHzidfe3+Pl1/kFxS1IWLQ6Ll9i/PuZMiWlg+3ShRsy9QwO0jBmFM2feIZiz75rJlY9IlnrfrY05I+J0TF9iwHbpWokK0tH4rz72QMGjOvL/na82e8/JbRaDQAYGLbjl3TyqiZrbXmZX2z0Xuv0orsAhsSHpEcG50l3KuygmOcU1ZwJ2P7zt3TiOAeRqOJid/h5Y+uXLlioF81E6xTt749QwJOL8+5ef5QTcHd5MbSnPONpY/O85nfginGOUQwruUeRPyJL/ivb8iQIW3Wrl3LR6/4v69NZWXlf+V/BK4NOBMXQvW6AAAAAElFTkSuQmCC";export{A as _,i as a,w as b,Q as c,C as d}; diff --git a/pr-preview/pr-442/assets/chunks/theme.DG-lrbgZ.js b/pr-preview/pr-442/assets/chunks/theme.DG-lrbgZ.js deleted file mode 100644 index aba7332e..00000000 --- a/pr-preview/pr-442/assets/chunks/theme.DG-lrbgZ.js +++ /dev/null @@ -1,7 +0,0 @@ -var De=Object.defineProperty;var Fe=(s,e,t)=>e in s?De(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var oe=(s,e,t)=>(Fe(s,typeof e!="symbol"?e+"":e,t),t);import{d as $,o as a,c as l,r as u,n as T,a as H,t as L,_ as m,b as k,w as h,e as f,T as ce,u as xe,i as Oe,l as Ue,f as ue,g as b,h as M,j as U,k as c,m as i,p as E,q as D,s as O,v as K,x as re,y as G,z as ee,A as de,B as Ve,C as Ge,D as j,F as C,E as B,G as ve,H as Y,I as _,J as x,K as Le,L as te,M as X,N as se,O as je,P as Re,Q as Se,R as qe,S as Ke,U as We,V as Ye,W as ye,X as Je,Y as Xe,Z as Me,$ as Ce,a0 as Ze,a1 as Qe,a2 as et,a3 as tt}from"./framework.Bgy0wF8y.js";const st=$({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(a(),l("span",{class:T(["VPBadge",e.type])},[u(e.$slots,"default",{},()=>[H(L(e.text),1)],!0)],2))}}),nt=m(st,[["__scopeId","data-v-a4b1b27b"]]),ot={key:0,class:"VPBackdrop"},at=$({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(a(),k(ce,{name:"fade"},{default:h(()=>[e.show?(a(),l("div",ot)):f("",!0)]),_:1}))}}),rt=m(at,[["__scopeId","data-v-061aabc2"]]),P=xe;function it(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function ie(s){return/^\//.test(s)?s:`/${s}`}function he(s){const{pathname:e,search:t,hash:n,protocol:o}=new URL(s,"http://a.com");if(Oe(s)||s.startsWith("#")||!o.startsWith("http")||/\.(?!html|md)\w+($|\?)/i.test(s)&&Ue(s))return s;const{site:r}=P(),d=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return ue(d)}function J({removeCurrent:s=!0,correspondingLink:e=!1}={}){const{site:t,localeIndex:n,page:o,theme:r}=P(),d=b(()=>{var v,g;return{label:(v=t.value.locales[n.value])==null?void 0:v.label,link:((g=t.value.locales[n.value])==null?void 0:g.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:b(()=>Object.entries(t.value.locales).flatMap(([v,g])=>s&&d.value.label===g.label?[]:{text:g.label,link:lt(g.link||(v==="root"?"/":`/${v}/`),r.value.i18nRouting!==!1&&e,o.value.relativePath.slice(d.value.link.length-1),!t.value.cleanUrls)})),currentLang:d}}function lt(s,e,t,n){return e?s.replace(/\/$/,"")+ie(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const ct=s=>(E("data-v-619d9b14"),s=s(),D(),s),ut={class:"NotFound"},dt={class:"code"},vt={class:"title"},ht=ct(()=>c("div",{class:"divider"},null,-1)),pt={class:"quote"},_t={class:"action"},ft=["href","aria-label"],mt=$({__name:"NotFound",setup(s){const{site:e,theme:t}=P(),{localeLinks:n}=J({removeCurrent:!1}),o=M("/");return U(()=>{var d;const r=window.location.pathname.replace(e.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(o.value=((d=n.value.find(({link:p})=>p.startsWith(r)))==null?void 0:d.link)||n.value[0].link)}),(r,d)=>{var p,v,g,w,y;return a(),l("div",ut,[c("p",dt,L(((p=i(t).notFound)==null?void 0:p.code)??"404"),1),c("h1",vt,L(((v=i(t).notFound)==null?void 0:v.title)??"PAGE NOT FOUND"),1),ht,c("blockquote",pt,L(((g=i(t).notFound)==null?void 0:g.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),c("div",_t,[c("a",{class:"link",href:i(ue)(o.value),"aria-label":((w=i(t).notFound)==null?void 0:w.linkLabel)??"go to home"},L(((y=i(t).notFound)==null?void 0:y.linkText)??"Take me home"),9,ft)])])}}}),gt=m(mt,[["__scopeId","data-v-619d9b14"]]);function Ie(s,e){if(Array.isArray(s))return Z(s);if(s==null)return[];e=ie(e);const t=Object.keys(s).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>e.startsWith(ie(o))),n=t?s[t]:[];return Array.isArray(n)?Z(n):Z(n.items,n.base)}function $t(s){const e=[];let t=0;for(const n in s){const o=s[n];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function kt(s){const e=[];function t(n){for(const o of n)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(s),e}function le(s,e){return Array.isArray(e)?e.some(t=>le(s,t)):O(s,e.link)?!0:e.items?le(s,e.items):!1}function Z(s,e){return[...s].map(t=>{const n={...t},o=n.base||e;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=Z(n.items,o)),n})}function F(){const{frontmatter:s,page:e,theme:t}=P(),n=re("(min-width: 960px)"),o=M(!1),r=b(()=>{const A=t.value.sidebar,V=e.value.relativePath;return A?Ie(A,V):[]}),d=M(r.value);G(r,(A,V)=>{JSON.stringify(A)!==JSON.stringify(V)&&(d.value=r.value)});const p=b(()=>s.value.sidebar!==!1&&d.value.length>0&&s.value.layout!=="home"),v=b(()=>g?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),g=b(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),w=b(()=>p.value&&n.value),y=b(()=>p.value?$t(d.value):[]);function I(){o.value=!0}function S(){o.value=!1}function N(){o.value?S():I()}return{isOpen:o,sidebar:d,sidebarGroups:y,hasSidebar:p,hasAside:g,leftAside:v,isSidebarEnabled:w,open:I,close:S,toggle:N}}function bt(s,e){let t;ee(()=>{t=s.value?document.activeElement:void 0}),U(()=>{window.addEventListener("keyup",n)}),de(()=>{window.removeEventListener("keyup",n)});function n(o){o.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}const Te=M(K?location.hash:"");K&&window.addEventListener("hashchange",()=>{Te.value=location.hash});function yt(s){const{page:e}=P(),t=M(!1),n=b(()=>s.value.collapsed!=null),o=b(()=>!!s.value.link),r=M(!1),d=()=>{r.value=O(e.value.relativePath,s.value.link)};G([e,s,Te],d),U(d);const p=b(()=>r.value?!0:s.value.items?le(e.value.relativePath,s.value.items):!1),v=b(()=>!!(s.value.items&&s.value.items.length));ee(()=>{t.value=!!(n.value&&s.value.collapsed)}),Ve(()=>{(r.value||p.value)&&(t.value=!1)});function g(){n.value&&(t.value=!t.value)}return{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:p,hasChildren:v,toggle:g}}function Pt(){const{hasSidebar:s}=F(),e=re("(min-width: 960px)"),t=re("(min-width: 1280px)");return{isAsideEnabled:b(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const wt=71;function pe(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function _e(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{title:Vt(t),link:"#"+t.id,level:n}});return Lt(e,s)}function Vt(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Lt(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;s=s.filter(d=>d.level>=n&&d.level<=o);const r=[];e:for(let d=0;d=0;v--){const g=s[v];if(g.level{requestAnimationFrame(r),window.addEventListener("scroll",n)}),Ge(()=>{d(location.hash)}),de(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const p=[].slice.call(s.value.querySelectorAll(".outline-link")),v=[].slice.call(document.querySelectorAll(".content .header-anchor")).filter(S=>p.some(N=>N.hash===S.hash&&S.offsetParent!==null)),g=window.scrollY,w=window.innerHeight,y=document.body.offsetHeight,I=Math.abs(g+w-y)<1;if(v.length&&I){d(v[v.length-1].hash);return}for(let S=0;S{const o=j("VPDocOutlineItem",!0);return a(),l("ul",{class:T(t.root?"root":"nested")},[(a(!0),l(C,null,B(t.headers,({children:r,link:d,title:p})=>(a(),l("li",null,[c("a",{class:"outline-link",href:d,onClick:e,title:p},L(p),9,Ct),r!=null&&r.length?(a(),k(o,{key:0,headers:r},null,8,["headers"])):f("",!0)]))),256))],2)}}}),fe=m(It,[["__scopeId","data-v-de750f2b"]]),Tt=s=>(E("data-v-d35fdd76"),s=s(),D(),s),At={class:"content"},Nt={class:"outline-title",role:"heading","aria-level":"2"},Bt={"aria-labelledby":"doc-outline-aria-label"},Ht=Tt(()=>c("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),zt=$({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=P(),n=ve([]);Y(()=>{n.value=_e(e.value.outline??t.value.outline)});const o=M(),r=M();return St(o,r),(d,p)=>(a(),l("div",{class:T(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:o,role:"navigation"},[c("div",At,[c("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),c("div",Nt,L(i(pe)(i(t))),1),c("nav",Bt,[Ht,_(fe,{headers:n.value,root:!0},null,8,["headers"])])])],2))}}),Et=m(zt,[["__scopeId","data-v-d35fdd76"]]),Dt={class:"VPDocAsideCarbonAds"},Ft=$({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,n)=>(a(),l("div",Dt,[_(i(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),xt=s=>(E("data-v-0d95ea04"),s=s(),D(),s),Ot={class:"VPDocAside"},Ut=xt(()=>c("div",{class:"spacer"},null,-1)),Gt=$({__name:"VPDocAside",setup(s){const{theme:e}=P();return(t,n)=>(a(),l("div",Ot,[u(t.$slots,"aside-top",{},void 0,!0),u(t.$slots,"aside-outline-before",{},void 0,!0),_(Et),u(t.$slots,"aside-outline-after",{},void 0,!0),Ut,u(t.$slots,"aside-ads-before",{},void 0,!0),i(e).carbonAds?(a(),k(Ft,{key:0,"carbon-ads":i(e).carbonAds},null,8,["carbon-ads"])):f("",!0),u(t.$slots,"aside-ads-after",{},void 0,!0),u(t.$slots,"aside-bottom",{},void 0,!0)]))}}),jt=m(Gt,[["__scopeId","data-v-0d95ea04"]]);function Rt(){const{theme:s,page:e}=P();return b(()=>{const{text:t="Edit this page",pattern:n=""}=s.value.editLink||{};let o;return typeof n=="function"?o=n(e.value):o=n.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function qt(){const{page:s,theme:e,frontmatter:t}=P();return b(()=>{var v,g,w,y,I,S,N,A;const n=Ie(e.value.sidebar,s.value.relativePath),o=kt(n),r=o.findIndex(V=>O(s.value.relativePath,V.link)),d=((v=e.value.docFooter)==null?void 0:v.prev)===!1&&!t.value.prev||t.value.prev===!1,p=((g=e.value.docFooter)==null?void 0:g.next)===!1&&!t.value.next||t.value.next===!1;return{prev:d?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((w=o[r-1])==null?void 0:w.docFooterText)??((y=o[r-1])==null?void 0:y.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((I=o[r-1])==null?void 0:I.link)},next:p?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((S=o[r+1])==null?void 0:S.docFooterText)??((N=o[r+1])==null?void 0:N.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((A=o[r+1])==null?void 0:A.link)}}})}const Kt={},Wt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Yt=c("path",{d:"M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"},null,-1),Jt=c("path",{d:"M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"},null,-1),Xt=[Yt,Jt];function Zt(s,e){return a(),l("svg",Wt,Xt)}const Qt=m(Kt,[["render",Zt]]),z=$({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=b(()=>e.tag??(e.href?"a":"span")),n=b(()=>e.href&&Le.test(e.href));return(o,r)=>(a(),k(x(t.value),{class:T(["VPLink",{link:o.href,"vp-external-link-icon":n.value,"no-icon":o.noIcon}]),href:o.href?i(he)(o.href):void 0,target:o.target??(n.value?"_blank":void 0),rel:o.rel??(n.value?"noreferrer":void 0)},{default:h(()=>[u(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),es={class:"VPLastUpdated"},ts=["datetime"],ss=$({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,frontmatter:n,lang:o}=P(),r=b(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),d=b(()=>r.value.toISOString()),p=M("");return U(()=>{ee(()=>{var v,g,w;p.value=new Intl.DateTimeFormat((g=(v=e.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&g.forceLocale?o.value:void 0,((w=e.value.lastUpdated)==null?void 0:w.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(v,g)=>{var w;return a(),l("p",es,[H(L(((w=i(e).lastUpdated)==null?void 0:w.text)||i(e).lastUpdatedText||"Last updated")+": ",1),c("time",{datetime:d.value},L(p.value),9,ts)])}}}),ns=m(ss,[["__scopeId","data-v-8bf92a8a"]]),os={key:0,class:"VPDocFooter"},as={key:0,class:"edit-info"},rs={key:0,class:"edit-link"},is={key:1,class:"last-updated"},ls={key:1,class:"prev-next"},cs={class:"pager"},us=["innerHTML"],ds=["innerHTML"],vs={class:"pager"},hs=["innerHTML"],ps=["innerHTML"],_s=$({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:n}=P(),o=Rt(),r=qt(),d=b(()=>e.value.editLink&&n.value.editLink!==!1),p=b(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),v=b(()=>d.value||p.value||r.value.prev||r.value.next);return(g,w)=>{var y,I,S,N;return v.value?(a(),l("footer",os,[u(g.$slots,"doc-footer-before",{},void 0,!0),d.value||p.value?(a(),l("div",as,[d.value?(a(),l("div",rs,[_(z,{class:"edit-link-button",href:i(o).url,"no-icon":!0},{default:h(()=>[_(Qt,{class:"edit-link-icon","aria-label":"edit icon"}),H(" "+L(i(o).text),1)]),_:1},8,["href"])])):f("",!0),p.value?(a(),l("div",is,[_(ns)])):f("",!0)])):f("",!0),(y=i(r).prev)!=null&&y.link||(I=i(r).next)!=null&&I.link?(a(),l("nav",ls,[c("div",cs,[(S=i(r).prev)!=null&&S.link?(a(),k(z,{key:0,class:"pager-link prev",href:i(r).prev.link},{default:h(()=>{var A;return[c("span",{class:"desc",innerHTML:((A=i(e).docFooter)==null?void 0:A.prev)||"Previous page"},null,8,us),c("span",{class:"title",innerHTML:i(r).prev.text},null,8,ds)]}),_:1},8,["href"])):f("",!0)]),c("div",vs,[(N=i(r).next)!=null&&N.link?(a(),k(z,{key:0,class:"pager-link next",href:i(r).next.link},{default:h(()=>{var A;return[c("span",{class:"desc",innerHTML:((A=i(e).docFooter)==null?void 0:A.next)||"Next page"},null,8,hs),c("span",{class:"title",innerHTML:i(r).next.text},null,8,ps)]}),_:1},8,["href"])):f("",!0)])])):f("",!0)])):f("",!0)}}}),fs=m(_s,[["__scopeId","data-v-d34a2671"]]),ms={},gs={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},$s=c("path",{d:"M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"},null,-1),ks=[$s];function bs(s,e){return a(),l("svg",gs,ks)}const me=m(ms,[["render",bs]]),ys={key:0,class:"VPDocOutlineDropdown"},Ps={key:0,class:"items"},ws=$({__name:"VPDocOutlineDropdown",setup(s){const{frontmatter:e,theme:t}=P(),n=M(!1);Y(()=>{n.value=!1});const o=ve([]);return Y(()=>{o.value=_e(e.value.outline??t.value.outline)}),(r,d)=>o.value.length>0?(a(),l("div",ys,[c("button",{onClick:d[0]||(d[0]=p=>n.value=!n.value),class:T({open:n.value})},[H(L(i(pe)(i(t)))+" ",1),_(me,{class:"icon"})],2),n.value?(a(),l("div",Ps,[_(fe,{headers:o.value},null,8,["headers"])])):f("",!0)])):f("",!0)}}),Vs=m(ws,[["__scopeId","data-v-6bcb85b1"]]),Ls=s=>(E("data-v-2d2e07c0"),s=s(),D(),s),Ss={class:"container"},Ms=Ls(()=>c("div",{class:"aside-curtain"},null,-1)),Cs={class:"aside-container"},Is={class:"aside-content"},Ts={class:"content"},As={class:"content-container"},Ns={class:"main"},Bs=$({__name:"VPDoc",setup(s){const{theme:e}=P(),t=te(),{hasSidebar:n,hasAside:o,leftAside:r}=F(),d=b(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(p,v)=>{const g=j("Content");return a(),l("div",{class:T(["VPDoc",{"has-sidebar":i(n),"has-aside":i(o)}])},[u(p.$slots,"doc-top",{},void 0,!0),c("div",Ss,[i(o)?(a(),l("div",{key:0,class:T(["aside",{"left-aside":i(r)}])},[Ms,c("div",Cs,[c("div",Is,[_(jt,null,{"aside-top":h(()=>[u(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[u(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[u(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[u(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[u(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[u(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):f("",!0),c("div",Ts,[c("div",As,[u(p.$slots,"doc-before",{},void 0,!0),_(Vs),c("main",Ns,[_(g,{class:T(["vp-doc",[d.value,i(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),_(fs,null,{"doc-footer-before":h(()=>[u(p.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),u(p.$slots,"doc-after",{},void 0,!0)])])]),u(p.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Hs=m(Bs,[["__scopeId","data-v-2d2e07c0"]]),zs=$({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{}},setup(s){const e=s,t=b(()=>e.href&&Le.test(e.href)),n=b(()=>e.tag||e.href?"a":"button");return(o,r)=>(a(),k(x(n.value),{class:T(["VPButton",[o.size,o.theme]]),href:o.href?i(he)(o.href):void 0,target:t.value?"_blank":void 0,rel:t.value?"noreferrer":void 0},{default:h(()=>[H(L(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),Es=m(zs,[["__scopeId","data-v-96e83405"]]),Ds=["src","alt"],Fs=$({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const n=j("VPImage",!0);return e.image?(a(),l(C,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),l("img",X({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:i(ue)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Ds)):(a(),l(C,{key:1},[_(n,X({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),_(n,X({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):f("",!0)}}}),Q=m(Fs,[["__scopeId","data-v-419390b4"]]),xs=s=>(E("data-v-029864af"),s=s(),D(),s),Os={class:"container"},Us={class:"main"},Gs={key:0,class:"name"},js=["innerHTML"],Rs=["innerHTML"],qs=["innerHTML"],Ks={key:0,class:"actions"},Ws={key:0,class:"image"},Ys={class:"image-container"},Js=xs(()=>c("div",{class:"image-bg"},null,-1)),Xs=$({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=se("hero-image-slot-exists");return(t,n)=>(a(),l("div",{class:T(["VPHero",{"has-image":t.image||i(e)}])},[c("div",Os,[c("div",Us,[u(t.$slots,"home-hero-info",{},()=>[t.name?(a(),l("h1",Gs,[c("span",{innerHTML:t.name,class:"clip"},null,8,js)])):f("",!0),t.text?(a(),l("p",{key:1,innerHTML:t.text,class:"text"},null,8,Rs)):f("",!0),t.tagline?(a(),l("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,qs)):f("",!0)],!0),t.actions?(a(),l("div",Ks,[(a(!0),l(C,null,B(t.actions,o=>(a(),l("div",{key:o.link,class:"action"},[_(Es,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link},null,8,["theme","text","href"])]))),128))])):f("",!0)]),t.image||i(e)?(a(),l("div",Ws,[c("div",Ys,[Js,u(t.$slots,"home-hero-image",{},()=>[t.image?(a(),k(Q,{key:0,class:"image-src",image:t.image},null,8,["image"])):f("",!0)],!0)])])):f("",!0)])],2))}}),Zs=m(Xs,[["__scopeId","data-v-029864af"]]),Qs=$({__name:"VPHomeHero",setup(s){const{frontmatter:e}=P();return(t,n)=>i(e).hero?(a(),k(Zs,{key:0,class:"VPHomeHero",name:i(e).hero.name,text:i(e).hero.text,tagline:i(e).hero.tagline,image:i(e).hero.image,actions:i(e).hero.actions},{"home-hero-info":h(()=>[u(t.$slots,"home-hero-info")]),"home-hero-image":h(()=>[u(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):f("",!0)}}),en={},tn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},sn=c("path",{d:"M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"},null,-1),nn=[sn];function on(s,e){return a(),l("svg",tn,nn)}const an=m(en,[["render",on]]),rn={class:"box"},ln={key:0,class:"icon"},cn=["innerHTML"],un=["innerHTML"],dn=["innerHTML"],vn={key:4,class:"link-text"},hn={class:"link-text-value"},pn=$({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(a(),k(z,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:h(()=>[c("article",rn,[typeof e.icon=="object"&&e.icon.wrap?(a(),l("div",ln,[_(Q,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),k(Q,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),l("div",{key:2,class:"icon",innerHTML:e.icon},null,8,cn)):f("",!0),c("h2",{class:"title",innerHTML:e.title},null,8,un),e.details?(a(),l("p",{key:3,class:"details",innerHTML:e.details},null,8,dn)):f("",!0),e.linkText?(a(),l("div",vn,[c("p",hn,[H(L(e.linkText)+" ",1),_(an,{class:"link-text-icon"})])])):f("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),_n=m(pn,[["__scopeId","data-v-d9af38f1"]]),fn={key:0,class:"VPFeatures"},mn={class:"container"},gn={class:"items"},$n=$({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=b(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,o)=>n.features?(a(),l("div",fn,[c("div",mn,[c("div",gn,[(a(!0),l(C,null,B(n.features,r=>(a(),l("div",{key:r.title,class:T(["item",[t.value]])},[_(_n,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):f("",!0)}}),kn=m($n,[["__scopeId","data-v-d5115e9e"]]),bn=$({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=P();return(t,n)=>i(e).features?(a(),k(kn,{key:0,class:"VPHomeFeatures",features:i(e).features},null,8,["features"])):f("",!0)}}),yn={class:"VPHome"},Pn=$({__name:"VPHome",setup(s){return(e,t)=>{const n=j("Content");return a(),l("div",yn,[u(e.$slots,"home-hero-before",{},void 0,!0),_(Qs,null,{"home-hero-info":h(()=>[u(e.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":h(()=>[u(e.$slots,"home-hero-image",{},void 0,!0)]),_:3}),u(e.$slots,"home-hero-after",{},void 0,!0),u(e.$slots,"home-features-before",{},void 0,!0),_(bn),u(e.$slots,"home-features-after",{},void 0,!0),_(n)])}}}),wn=m(Pn,[["__scopeId","data-v-0ef74a11"]]),Vn={},Ln={class:"VPPage"};function Sn(s,e){const t=j("Content");return a(),l("div",Ln,[u(s.$slots,"page-top"),_(t),u(s.$slots,"page-bottom")])}const Mn=m(Vn,[["render",Sn]]),Cn=$({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=P(),{hasSidebar:n}=F();return(o,r)=>(a(),l("div",{class:T(["VPContent",{"has-sidebar":i(n),"is-home":i(t).layout==="home"}]),id:"VPContent"},[i(e).isNotFound?u(o.$slots,"not-found",{key:0},()=>[_(gt)],!0):i(t).layout==="page"?(a(),k(Mn,{key:1},{"page-top":h(()=>[u(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[u(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):i(t).layout==="home"?(a(),k(wn,{key:2},{"home-hero-before":h(()=>[u(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":h(()=>[u(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":h(()=>[u(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[u(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[u(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[u(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):i(t).layout&&i(t).layout!=="doc"?(a(),k(x(i(t).layout),{key:3})):(a(),k(Hs,{key:4},{"doc-top":h(()=>[u(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[u(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":h(()=>[u(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[u(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[u(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":h(()=>[u(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":h(()=>[u(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[u(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[u(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[u(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":h(()=>[u(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),In=m(Cn,[["__scopeId","data-v-dd819c96"]]),Tn={class:"container"},An=["innerHTML"],Nn=["innerHTML"],Bn=$({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=F();return(o,r)=>i(e).footer&&i(t).footer!==!1?(a(),l("footer",{key:0,class:T(["VPFooter",{"has-sidebar":i(n)}])},[c("div",Tn,[i(e).footer.message?(a(),l("p",{key:0,class:"message",innerHTML:i(e).footer.message},null,8,An)):f("",!0),i(e).footer.copyright?(a(),l("p",{key:1,class:"copyright",innerHTML:i(e).footer.copyright},null,8,Nn)):f("",!0)])],2)):f("",!0)}}),Hn=m(Bn,[["__scopeId","data-v-1435e191"]]),zn={class:"header"},En={class:"outline"},Dn=$({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=P(),n=M(!1),o=M(0),r=M();Y(()=>{n.value=!1});function d(){n.value=!n.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function p(g){g.target.classList.contains("outline-link")&&(r.value&&(r.value.style.transition="none"),Re(()=>{n.value=!1}))}function v(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(g,w)=>(a(),l("div",{class:"VPLocalNavOutlineDropdown",style:je({"--vp-vh":o.value+"px"})},[g.headers.length>0?(a(),l("button",{key:0,onClick:d,class:T({open:n.value})},[H(L(i(pe)(i(t)))+" ",1),_(me,{class:"icon"})],2)):(a(),l("button",{key:1,onClick:v},L(i(t).returnToTopLabel||"Return to top"),1)),_(ce,{name:"flyout"},{default:h(()=>[n.value?(a(),l("div",{key:0,ref_key:"items",ref:r,class:"items",onClick:p},[c("div",zn,[c("a",{class:"top-link",href:"#",onClick:v},L(i(t).returnToTopLabel||"Return to top"),1)]),c("div",En,[_(fe,{headers:g.headers},null,8,["headers"])])],512)):f("",!0)]),_:1})],4))}}),Fn=m(Dn,[["__scopeId","data-v-44680368"]]),xn={},On={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Un=c("path",{d:"M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"},null,-1),Gn=c("path",{d:"M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"},null,-1),jn=c("path",{d:"M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"},null,-1),Rn=c("path",{d:"M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"},null,-1),qn=[Un,Gn,jn,Rn];function Kn(s,e){return a(),l("svg",On,qn)}const Wn=m(xn,[["render",Kn]]),Yn=["aria-expanded"],Jn={class:"menu-text"},Xn=$({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=F(),{y:o}=Se(),r=ve([]),d=M(0);U(()=>{d.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),Y(()=>{r.value=_e(t.value.outline??e.value.outline)});const p=b(()=>r.value.length===0&&!n.value),v=b(()=>({VPLocalNav:!0,fixed:p.value,"reached-top":o.value>=d.value}));return(g,w)=>i(t).layout!=="home"&&(!p.value||i(o)>=d.value)?(a(),l("div",{key:0,class:T(v.value)},[i(n)?(a(),l("button",{key:0,class:"menu","aria-expanded":g.open,"aria-controls":"VPSidebarNav",onClick:w[0]||(w[0]=y=>g.$emit("open-menu"))},[_(Wn,{class:"menu-icon"}),c("span",Jn,L(i(e).sidebarMenuLabel||"Menu"),1)],8,Yn)):f("",!0),_(Fn,{headers:r.value,navHeight:d.value},null,8,["headers","navHeight"])],2)):f("",!0)}}),Zn=m(Xn,[["__scopeId","data-v-b41d0476"]]);function Qn(){const s=M(!1);function e(){s.value=!0,window.addEventListener("resize",o)}function t(){s.value=!1,window.removeEventListener("resize",o)}function n(){s.value?t():e()}function o(){window.outerWidth>=768&&t()}const r=te();return G(()=>r.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:n}}const eo={},to={class:"VPSwitch",type:"button",role:"switch"},so={class:"check"},no={key:0,class:"icon"};function oo(s,e){return a(),l("button",to,[c("span",so,[s.$slots.default?(a(),l("span",no,[u(s.$slots,"default",{},void 0,!0)])):f("",!0)])])}const ao=m(eo,[["render",oo],["__scopeId","data-v-4cabb2c0"]]),ro={},io={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},lo=c("path",{d:"M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"},null,-1),co=[lo];function uo(s,e){return a(),l("svg",io,co)}const vo=m(ro,[["render",uo]]),ho={},po={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},_o=qe('',9),fo=[_o];function mo(s,e){return a(),l("svg",po,fo)}const go=m(ho,[["render",mo]]),$o=$({__name:"VPSwitchAppearance",setup(s){const{isDark:e}=P(),t=se("toggle-appearance",()=>{e.value=!e.value}),n=b(()=>e.value?"Switch to light theme":"Switch to dark theme");return(o,r)=>(a(),k(ao,{title:n.value,class:"VPSwitchAppearance","aria-checked":i(e),onClick:i(t)},{default:h(()=>[_(go,{class:"sun"}),_(vo,{class:"moon"})]),_:1},8,["title","aria-checked","onClick"]))}}),ge=m($o,[["__scopeId","data-v-15997bbb"]]),ko={key:0,class:"VPNavBarAppearance"},bo=$({__name:"VPNavBarAppearance",setup(s){const{site:e}=P();return(t,n)=>i(e).appearance&&i(e).appearance!=="force-dark"?(a(),l("div",ko,[_(ge)])):f("",!0)}}),yo=m(bo,[["__scopeId","data-v-edd6a71e"]]),$e=M();let Ae=!1,ae=0;function Po(s){const e=M(!1);if(K){!Ae&&wo(),ae++;const t=G($e,n=>{var o,r,d;n===s.el.value||(o=s.el.value)!=null&&o.contains(n)?(e.value=!0,(r=s.onFocus)==null||r.call(s)):(e.value=!1,(d=s.onBlur)==null||d.call(s))});de(()=>{t(),ae--,ae||Vo()})}return Ke(e)}function wo(){document.addEventListener("focusin",Ne),Ae=!0,$e.value=document.activeElement}function Vo(){document.removeEventListener("focusin",Ne)}function Ne(){$e.value=document.activeElement}const Lo={},So={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Mo=c("path",{d:"M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"},null,-1),Co=[Mo];function Io(s,e){return a(),l("svg",So,Co)}const Be=m(Lo,[["render",Io]]),To={},Ao={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},No=c("circle",{cx:"12",cy:"12",r:"2"},null,-1),Bo=c("circle",{cx:"19",cy:"12",r:"2"},null,-1),Ho=c("circle",{cx:"5",cy:"12",r:"2"},null,-1),zo=[No,Bo,Ho];function Eo(s,e){return a(),l("svg",Ao,zo)}const Do=m(To,[["render",Eo]]),Fo={class:"VPMenuLink"},xo=$({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),l("div",Fo,[_(z,{class:T({active:i(O)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:h(()=>[H(L(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ne=m(xo,[["__scopeId","data-v-be9b55a3"]]),Oo={class:"VPMenuGroup"},Uo={key:0,class:"title"},Go=$({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),l("div",Oo,[e.text?(a(),l("p",Uo,L(e.text),1)):f("",!0),(a(!0),l(C,null,B(e.items,n=>(a(),l(C,null,["link"in n?(a(),k(ne,{key:0,item:n},null,8,["item"])):f("",!0)],64))),256))]))}}),jo=m(Go,[["__scopeId","data-v-6076d07c"]]),Ro={class:"VPMenu"},qo={key:0,class:"items"},Ko=$({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(a(),l("div",Ro,[e.items?(a(),l("div",qo,[(a(!0),l(C,null,B(e.items,n=>(a(),l(C,{key:n.text},["link"in n?(a(),k(ne,{key:0,item:n},null,8,["item"])):(a(),k(jo,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):f("",!0),u(e.$slots,"default",{},void 0,!0)]))}}),Wo=m(Ko,[["__scopeId","data-v-0c08c142"]]),Yo=["aria-expanded","aria-label"],Jo={key:0,class:"text"},Xo=["innerHTML"],Zo={class:"menu"},Qo=$({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=M(!1),t=M();Po({el:t,onBlur:n});function n(){e.value=!1}return(o,r)=>(a(),l("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=d=>e.value=!0),onMouseleave:r[2]||(r[2]=d=>e.value=!1)},[c("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:r[0]||(r[0]=d=>e.value=!e.value)},[o.button||o.icon?(a(),l("span",Jo,[o.icon?(a(),k(x(o.icon),{key:0,class:"option-icon"})):f("",!0),o.button?(a(),l("span",{key:1,innerHTML:o.button},null,8,Xo)):f("",!0),_(Be,{class:"text-icon"})])):(a(),k(Do,{key:1,class:"icon"}))],8,Yo),c("div",Zo,[_(Wo,{items:o.items},{default:h(()=>[u(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),ke=m(Qo,[["__scopeId","data-v-cfce16b6"]]),ea={discord:'Discord',facebook:'Facebook',github:'GitHub',instagram:'Instagram',linkedin:'LinkedIn',mastodon:'Mastodon',slack:'Slack',twitter:'Twitter',x:'X',youtube:'YouTube'},ta=["href","aria-label","innerHTML"],sa=$({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=b(()=>typeof e.icon=="object"?e.icon.svg:ea[e.icon]);return(n,o)=>(a(),l("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,ta))}}),na=m(sa,[["__scopeId","data-v-ba1b278e"]]),oa={class:"VPSocialLinks"},aa=$({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(a(),l("div",oa,[(a(!0),l(C,null,B(e.links,({link:n,icon:o,ariaLabel:r})=>(a(),k(na,{key:n,icon:o,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),be=m(aa,[["__scopeId","data-v-0ee7996e"]]),ra={key:0,class:"group translations"},ia={class:"trans-title"},la={key:1,class:"group"},ca={class:"item appearance"},ua={class:"label"},da={class:"appearance-action"},va={key:2,class:"group"},ha={class:"item social-links"},pa=$({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=P(),{localeLinks:n,currentLang:o}=J({correspondingLink:!0}),r=b(()=>n.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(d,p)=>r.value?(a(),k(ke,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:h(()=>[i(n).length&&i(o).label?(a(),l("div",ra,[c("p",ia,L(i(o).label),1),(a(!0),l(C,null,B(i(n),v=>(a(),k(ne,{key:v.link,item:v},null,8,["item"]))),128))])):f("",!0),i(e).appearance&&i(e).appearance!=="force-dark"?(a(),l("div",la,[c("div",ca,[c("p",ua,L(i(t).darkModeSwitchLabel||"Appearance"),1),c("div",da,[_(ge)])])])):f("",!0),i(t).socialLinks?(a(),l("div",va,[c("div",ha,[_(be,{class:"social-links-list",links:i(t).socialLinks},null,8,["links"])])])):f("",!0)]),_:1})):f("",!0)}}),_a=m(pa,[["__scopeId","data-v-d029d2fa"]]),fa=s=>(E("data-v-cea4dddf"),s=s(),D(),s),ma=["aria-expanded"],ga=fa(()=>c("span",{class:"container"},[c("span",{class:"top"}),c("span",{class:"middle"}),c("span",{class:"bottom"})],-1)),$a=[ga],ka=$({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(a(),l("button",{type:"button",class:T(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},$a,10,ma))}}),ba=m(ka,[["__scopeId","data-v-cea4dddf"]]),ya=["innerHTML"],Pa=$({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),k(z,{class:T({VPNavBarMenuLink:!0,active:i(O)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:h(()=>[c("span",{innerHTML:t.item.text},null,8,ya)]),_:1},8,["class","href","target","rel"]))}}),wa=m(Pa,[["__scopeId","data-v-fe8d6e8e"]]),Va=$({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=P(),n=r=>"link"in r?O(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(n),o=b(()=>n(e.item));return(r,d)=>(a(),k(ke,{class:T({VPNavBarMenuGroup:!0,active:i(O)(i(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||o.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),La=s=>(E("data-v-38df8c6b"),s=s(),D(),s),Sa={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Ma=La(()=>c("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Ca=$({__name:"VPNavBarMenu",setup(s){const{theme:e}=P();return(t,n)=>i(e).nav?(a(),l("nav",Sa,[Ma,(a(!0),l(C,null,B(i(e).nav,o=>(a(),l(C,{key:o.text},["link"in o?(a(),k(wa,{key:0,item:o},null,8,["item"])):(a(),k(Va,{key:1,item:o},null,8,["item"]))],64))),128))])):f("",!0)}}),Ia=m(Ca,[["__scopeId","data-v-38df8c6b"]]);function Ta(s,e){const{localeIndex:t}=P();function n(o){var S,N;const r=o.split("."),d=s&&typeof s=="object",p=d&&((N=(S=s.locales)==null?void 0:S[t.value])==null?void 0:N.translations)||null,v=d&&s.translations||null;let g=p,w=v,y=e;const I=r.pop();for(const A of r){let V=null;const R=y==null?void 0:y[A];R&&(V=y=R);const W=w==null?void 0:w[A];W&&(V=w=W);const q=g==null?void 0:g[A];q&&(V=g=q),R||(y=V),W||(w=V),q||(g=V)}return(g==null?void 0:g[I])??(w==null?void 0:w[I])??(y==null?void 0:y[I])??""}return n}const Aa=["aria-label"],Na={class:"DocSearch-Button-Container"},Ba=c("svg",{class:"DocSearch-Search-Icon",width:"20",height:"20",viewBox:"0 0 20 20","aria-label":"search icon"},[c("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Ha={class:"DocSearch-Button-Placeholder"},za=c("span",{class:"DocSearch-Button-Keys"},[c("kbd",{class:"DocSearch-Button-Key"}),c("kbd",{class:"DocSearch-Button-Key"},"K")],-1),we=$({__name:"VPNavBarSearchButton",setup(s){const{theme:e}=P(),t={button:{buttonText:"Search",buttonAriaLabel:"Search"}},n=We(Ta)(Ye(()=>{var o;return(o=e.value.search)==null?void 0:o.options}),t);return(o,r)=>(a(),l("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":i(n)("button.buttonAriaLabel")},[c("span",Na,[Ba,c("span",Ha,L(i(n)("button.buttonText")),1)]),za],8,Aa))}}),Ea={class:"VPNavBarSearch"},Da={id:"local-search"},Fa={key:1,id:"docsearch"},xa=$({__name:"VPNavBarSearch",setup(s){const e=Je(()=>Xe(()=>import("./VPLocalSearchBox.BQmUvU87.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:n}=P(),o=M(!1),r=M(!1);U(()=>{});function d(){o.value||(o.value=!0,setTimeout(p,16))}function p(){const y=new Event("keydown");y.key="k",y.metaKey=!0,window.dispatchEvent(y),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||p()},16)}function v(y){const I=y.target,S=I.tagName;return I.isContentEditable||S==="INPUT"||S==="SELECT"||S==="TEXTAREA"}const g=M(!1);ye("k",y=>{(y.ctrlKey||y.metaKey)&&(y.preventDefault(),g.value=!0)}),ye("/",y=>{v(y)||(y.preventDefault(),g.value=!0)});const w="local";return(y,I)=>{var S;return a(),l("div",Ea,[i(w)==="local"?(a(),l(C,{key:0},[g.value?(a(),k(i(e),{key:0,onClose:I[0]||(I[0]=N=>g.value=!1)})):f("",!0),c("div",Da,[_(we,{onClick:I[1]||(I[1]=N=>g.value=!0)})])],64)):i(w)==="algolia"?(a(),l(C,{key:1},[o.value?(a(),k(i(t),{key:0,algolia:((S=i(n).search)==null?void 0:S.options)??i(n).algolia,onVnodeBeforeMount:I[2]||(I[2]=N=>r.value=!0)},null,8,["algolia"])):f("",!0),r.value?f("",!0):(a(),l("div",Fa,[_(we,{onClick:d})]))],64)):f("",!0)])}}}),Oa=$({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>i(e).socialLinks?(a(),k(be,{key:0,class:"VPNavBarSocialLinks",links:i(e).socialLinks},null,8,["links"])):f("",!0)}}),Ua=m(Oa,[["__scopeId","data-v-b90d606d"]]),Ga=["href"],ja=$({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=P(),{hasSidebar:n}=F(),{currentLang:o}=J();return(r,d)=>(a(),l("div",{class:T(["VPNavBarTitle",{"has-sidebar":i(n)}])},[c("a",{class:"title",href:i(t).logoLink??i(he)(i(o).link)},[u(r.$slots,"nav-bar-title-before",{},void 0,!0),i(t).logo?(a(),k(Q,{key:0,class:"logo",image:i(t).logo},null,8,["image"])):f("",!0),i(t).siteTitle?(a(),l(C,{key:1},[H(L(i(t).siteTitle),1)],64)):i(t).siteTitle===void 0?(a(),l(C,{key:2},[H(L(i(e).title),1)],64)):f("",!0),u(r.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ga)],2))}}),Ra=m(ja,[["__scopeId","data-v-e11d3fa6"]]),qa={},Ka={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Wa=c("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),Ya=c("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1),Ja=[Wa,Ya];function Xa(s,e){return a(),l("svg",Ka,Ja)}const He=m(qa,[["render",Xa]]),Za={class:"items"},Qa={class:"title"},er=$({__name:"VPNavBarTranslations",setup(s){const{theme:e}=P(),{localeLinks:t,currentLang:n}=J({correspondingLink:!0});return(o,r)=>i(t).length&&i(n).label?(a(),k(ke,{key:0,class:"VPNavBarTranslations",icon:He,label:i(e).langMenuLabel||"Change language"},{default:h(()=>[c("div",Za,[c("p",Qa,L(i(n).label),1),(a(!0),l(C,null,B(i(t),d=>(a(),k(ne,{key:d.link,item:d},null,8,["item"]))),128))])]),_:1},8,["label"])):f("",!0)}}),tr=m(er,[["__scopeId","data-v-de1fc0f4"]]),sr=s=>(E("data-v-2310de9b"),s=s(),D(),s),nr={class:"container"},or={class:"title"},ar={class:"content"},rr=sr(()=>c("div",{class:"curtain"},null,-1)),ir={class:"content-body"},lr=$({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const{y:e}=Se(),{hasSidebar:t}=F(),{frontmatter:n}=P(),o=M({});return Ve(()=>{o.value={"has-sidebar":t.value,top:n.value.layout==="home"&&e.value===0}}),(r,d)=>(a(),l("div",{class:T(["VPNavBar",o.value])},[c("div",nr,[c("div",or,[_(Ra,null,{"nav-bar-title-before":h(()=>[u(r.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[u(r.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),c("div",ar,[rr,c("div",ir,[u(r.$slots,"nav-bar-content-before",{},void 0,!0),_(xa,{class:"search"}),_(Ia,{class:"menu"}),_(tr,{class:"translations"}),_(yo,{class:"appearance"}),_(Ua,{class:"social-links"}),_(_a,{class:"extra"}),u(r.$slots,"nav-bar-content-after",{},void 0,!0),_(ba,{class:"hamburger",active:r.isScreenOpen,onClick:d[0]||(d[0]=p=>r.$emit("toggle-screen"))},null,8,["active"])])])])],2))}}),cr=m(lr,[["__scopeId","data-v-2310de9b"]]),ur={key:0,class:"VPNavScreenAppearance"},dr={class:"text"},vr=$({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=P();return(n,o)=>i(e).appearance&&i(e).appearance!=="force-dark"?(a(),l("div",ur,[c("p",dr,L(i(t).darkModeSwitchLabel||"Appearance"),1),_(ge)])):f("",!0)}}),hr=m(vr,[["__scopeId","data-v-d8bae44b"]]),pr=$({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=se("close-screen");return(t,n)=>(a(),k(z,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:i(e)},{default:h(()=>[H(L(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),_r=m(pr,[["__scopeId","data-v-200dc0ee"]]),fr={},mr={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},gr=c("path",{d:"M18.9,10.9h-6v-6c0-0.6-0.4-1-1-1s-1,0.4-1,1v6h-6c-0.6,0-1,0.4-1,1s0.4,1,1,1h6v6c0,0.6,0.4,1,1,1s1-0.4,1-1v-6h6c0.6,0,1-0.4,1-1S19.5,10.9,18.9,10.9z"},null,-1),$r=[gr];function kr(s,e){return a(),l("svg",mr,$r)}const br=m(fr,[["render",kr]]),yr=$({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=se("close-screen");return(t,n)=>(a(),k(z,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:i(e)},{default:h(()=>[H(L(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),ze=m(yr,[["__scopeId","data-v-3cf840c1"]]),Pr={class:"VPNavScreenMenuGroupSection"},wr={key:0,class:"title"},Vr=$({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),l("div",Pr,[e.text?(a(),l("p",wr,L(e.text),1)):f("",!0),(a(!0),l(C,null,B(e.items,n=>(a(),k(ze,{key:n.text,item:n},null,8,["item"]))),128))]))}}),Lr=m(Vr,[["__scopeId","data-v-aec8949d"]]),Sr=["aria-controls","aria-expanded"],Mr=["innerHTML"],Cr=["id"],Ir={key:1,class:"group"},Tr=$({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=M(!1),n=b(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(r,d)=>(a(),l("div",{class:T(["VPNavScreenMenuGroup",{open:t.value}])},[c("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:o},[c("span",{class:"button-text",innerHTML:r.text},null,8,Mr),_(br,{class:"button-icon"})],8,Sr),c("div",{id:n.value,class:"items"},[(a(!0),l(C,null,B(r.items,p=>(a(),l(C,{key:p.text},["link"in p?(a(),l("div",{key:p.text,class:"item"},[_(ze,{item:p},null,8,["item"])])):(a(),l("div",Ir,[_(Lr,{text:p.text,items:p.items},null,8,["text","items"])]))],64))),128))],8,Cr)],2))}}),Ar=m(Tr,[["__scopeId","data-v-1826ffb1"]]),Nr={key:0,class:"VPNavScreenMenu"},Br=$({__name:"VPNavScreenMenu",setup(s){const{theme:e}=P();return(t,n)=>i(e).nav?(a(),l("nav",Nr,[(a(!0),l(C,null,B(i(e).nav,o=>(a(),l(C,{key:o.text},["link"in o?(a(),k(_r,{key:0,item:o},null,8,["item"])):(a(),k(Ar,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):f("",!0)}}),Hr=$({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>i(e).socialLinks?(a(),k(be,{key:0,class:"VPNavScreenSocialLinks",links:i(e).socialLinks},null,8,["links"])):f("",!0)}}),zr={class:"list"},Er=$({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=J({correspondingLink:!0}),n=M(!1);function o(){n.value=!n.value}return(r,d)=>i(e).length&&i(t).label?(a(),l("div",{key:0,class:T(["VPNavScreenTranslations",{open:n.value}])},[c("button",{class:"title",onClick:o},[_(He,{class:"icon lang"}),H(" "+L(i(t).label)+" ",1),_(Be,{class:"icon chevron"})]),c("ul",zr,[(a(!0),l(C,null,B(i(e),p=>(a(),l("li",{key:p.link,class:"item"},[_(z,{class:"link",href:p.link},{default:h(()=>[H(L(p.text),1)]),_:2},1032,["href"])]))),128))])],2)):f("",!0)}}),Dr=m(Er,[["__scopeId","data-v-2f607720"]]),Fr={class:"container"},xr=$({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=M(null),t=Me(K?document.body:null);return(n,o)=>(a(),k(ce,{name:"fade",onEnter:o[0]||(o[0]=r=>t.value=!0),onAfterLeave:o[1]||(o[1]=r=>t.value=!1)},{default:h(()=>[n.open?(a(),l("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[c("div",Fr,[u(n.$slots,"nav-screen-content-before",{},void 0,!0),_(Br,{class:"menu"}),_(Dr,{class:"translations"}),_(hr,{class:"appearance"}),_(Hr,{class:"social-links"}),u(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):f("",!0)]),_:3}))}}),Or=m(xr,[["__scopeId","data-v-d3d8bd42"]]),Ur={key:0,class:"VPNav"},Gr=$({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=Qn(),{frontmatter:o}=P(),r=b(()=>o.value.navbar!==!1);return Ce("close-screen",t),ee(()=>{K&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(d,p)=>r.value?(a(),l("header",Ur,[_(cr,{"is-screen-open":i(e),onToggleScreen:i(n)},{"nav-bar-title-before":h(()=>[u(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[u(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[u(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[u(d.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),_(Or,{open:i(e)},{"nav-screen-content-before":h(()=>[u(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[u(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):f("",!0)}}),jr=m(Gr,[["__scopeId","data-v-560cee4f"]]),Rr=s=>(E("data-v-9e342a69"),s=s(),D(),s),qr=["role","tabindex"],Kr=Rr(()=>c("div",{class:"indicator"},null,-1)),Wr={key:1,class:"items"},Yr=$({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:d,hasChildren:p,toggle:v}=yt(b(()=>e.item)),g=b(()=>p.value?"section":"div"),w=b(()=>o.value?"a":"div"),y=b(()=>p.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),I=b(()=>o.value?void 0:"button"),S=b(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":o.value},{"is-active":r.value},{"has-active":d.value}]);function N(V){"key"in V&&V.key!=="Enter"||!e.item.link&&v()}function A(){e.item.link&&v()}return(V,R)=>{const W=j("VPSidebarItem",!0);return a(),k(x(g.value),{class:T(["VPSidebarItem",S.value])},{default:h(()=>[V.item.text?(a(),l("div",X({key:0,class:"item",role:I.value},Ze(V.item.items?{click:N,keydown:N}:{},!0),{tabindex:V.item.items&&0}),[Kr,V.item.link?(a(),k(z,{key:0,tag:w.value,class:"link",href:V.item.link,rel:V.item.rel,target:V.item.target},{default:h(()=>[(a(),k(x(y.value),{class:"text",innerHTML:V.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),k(x(y.value),{key:1,class:"text",innerHTML:V.item.text},null,8,["innerHTML"])),V.item.collapsed!=null?(a(),l("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:A,onKeydown:Qe(A,["enter"]),tabindex:"0"},[_(me,{class:"caret-icon"})],32)):f("",!0)],16,qr)):f("",!0),V.item.items&&V.item.items.length?(a(),l("div",Wr,[V.depth<5?(a(!0),l(C,{key:0},B(V.item.items,q=>(a(),k(W,{key:q.text,item:q,depth:V.depth+1},null,8,["item","depth"]))),128)):f("",!0)])):f("",!0)]),_:1},8,["class"])}}}),Jr=m(Yr,[["__scopeId","data-v-9e342a69"]]),Ee=s=>(E("data-v-71901613"),s=s(),D(),s),Xr=Ee(()=>c("div",{class:"curtain"},null,-1)),Zr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Qr=Ee(()=>c("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),ei=$({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const{sidebarGroups:e,hasSidebar:t}=F(),n=s,o=M(null),r=Me(K?document.body:null);return G([n,o],()=>{var d;n.open?(r.value=!0,(d=o.value)==null||d.focus()):r.value=!1},{immediate:!0,flush:"post"}),(d,p)=>i(t)?(a(),l("aside",{key:0,class:T(["VPSidebar",{open:d.open}]),ref_key:"navEl",ref:o,onClick:p[0]||(p[0]=et(()=>{},["stop"]))},[Xr,c("nav",Zr,[Qr,u(d.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),l(C,null,B(i(e),v=>(a(),l("div",{key:v.text,class:"group"},[_(Jr,{item:v,depth:0},null,8,["item"])]))),128)),u(d.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):f("",!0)}}),ti=m(ei,[["__scopeId","data-v-71901613"]]),si=$({__name:"VPSkipLink",setup(s){const e=te(),t=M();G(()=>e.path,()=>t.value.focus());function n({target:o}){const r=document.getElementById(decodeURIComponent(o.hash).slice(1));if(r){const d=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",d)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",d),r.focus(),window.scrollTo(0,0)}}return(o,r)=>(a(),l(C,null,[c("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),c("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),ni=m(si,[["__scopeId","data-v-331cf70e"]]),oi=$({__name:"Layout",setup(s){const{isOpen:e,open:t,close:n}=F(),o=te();G(()=>o.path,n),bt(e,n);const{frontmatter:r}=P(),d=tt(),p=b(()=>!!d["home-hero-image"]);return Ce("hero-image-slot-exists",p),(v,g)=>{const w=j("Content");return i(r).layout!==!1?(a(),l("div",{key:0,class:T(["Layout",i(r).pageClass])},[u(v.$slots,"layout-top",{},void 0,!0),_(ni),_(rt,{class:"backdrop",show:i(e),onClick:i(n)},null,8,["show","onClick"]),_(jr,null,{"nav-bar-title-before":h(()=>[u(v.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[u(v.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[u(v.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[u(v.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":h(()=>[u(v.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[u(v.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),_(Zn,{open:i(e),onOpenMenu:i(t)},null,8,["open","onOpenMenu"]),_(ti,{open:i(e)},{"sidebar-nav-before":h(()=>[u(v.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":h(()=>[u(v.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),_(In,null,{"page-top":h(()=>[u(v.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[u(v.$slots,"page-bottom",{},void 0,!0)]),"not-found":h(()=>[u(v.$slots,"not-found",{},void 0,!0)]),"home-hero-before":h(()=>[u(v.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":h(()=>[u(v.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":h(()=>[u(v.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[u(v.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[u(v.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[u(v.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":h(()=>[u(v.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[u(v.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[u(v.$slots,"doc-after",{},void 0,!0)]),"doc-top":h(()=>[u(v.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[u(v.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":h(()=>[u(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[u(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[u(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[u(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[u(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[u(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),_(Hn),u(v.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),k(w,{key:1}))}}}),ai=m(oi,[["__scopeId","data-v-b05b2250"]]),li={Layout:ai,enhanceApp:({app:s})=>{s.component("Badge",nt)}};class ci{constructor(e=10){oe(this,"max");oe(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}export{ci as L,Ta as c,li as t,P as u}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/chunks/VPLocalSearchBox.BQmUvU87.js","assets/chunks/framework.Bgy0wF8y.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} \ No newline at end of file diff --git a/pr-preview/pr-442/assets/demos_DragDrop.md.rlfOSb1I.js b/pr-preview/pr-442/assets/demos_DragDrop.md.rlfOSb1I.js deleted file mode 100644 index d5ef075d..00000000 --- a/pr-preview/pr-442/assets/demos_DragDrop.md.rlfOSb1I.js +++ /dev/null @@ -1,86 +0,0 @@ -import{p as B,a as m,_ as f}from"./chunks/camera.mAncAYbH.js";import{d as F,o as r,c as E,r as v,a2 as e,_ as A,D as C,k as t,a as d,t as c,e as _,I as y,w as D,n as q,R as b}from"./chunks/framework.Bgy0wF8y.js";const O=F({__name:"QrcodeDropZone",props:{formats:{type:Array,default:()=>["qr_code"]}},emits:["detect","dragover","error"],setup(s,{emit:h}){const g=s,p=h,n=async a=>{try{const i=await a;p("detect",i)}catch(i){p("error",i)}},l=a=>{p("dragover",a)},o=({dataTransfer:a})=>{if(!a)return;l(!1);const i=[...Array.from(a.files)],k=a.getData("text/uri-list");i.forEach(u=>{n(B(u))}),k!==""&&n(m(k,g.formats))};return(a,i)=>(r(),E("div",{onDrop:e(o,["prevent","stop"]),onDragenter:i[0]||(i[0]=e(k=>l(!0),["prevent","stop"])),onDragleave:i[1]||(i[1]=e(k=>l(!1),["prevent","stop"])),onDragover:i[2]||(i[2]=e(()=>{},["prevent","stop"]))},[v(a.$slots,"default")],32))}}),S={components:{QrcodeDropZone:O},data(){return{result:null,error:null,dragover:!1}},methods:{onDetect(s){console.log(s),this.result=JSON.stringify(s.map(h=>h.rawValue))},logErrors(s){s.name==="DropImageFetchError"?this.error="Sorry, you can't load cross-origin images :/":s.name==="DropImageDecodeError"?this.error="Ok, that's not an image. That can't be decoded.":this.error="Ups, what kind of error is this?! "+s.message},onDragOver(s){this.dragover=s}}},x={class:"decode-result"},w={key:0,class:"drop-error"};function N(s,h,g,p,n,l){const o=C("qrcode-drop-zone");return r(),E("div",null,[t("p",x,[d(" Last result: "),t("b",null,c(n.result),1)]),n.error!==null?(r(),E("p",w,c(n.error),1)):_("",!0),y(o,{onDetect:l.onDetect,onDragover:l.onDragOver,onError:l.logErrors},{default:D(()=>[t("div",{class:q(["drop-area",{dragover:n.dragover}])}," DROP SOME IMAGES HERE ",2)]),_:1},8,["onDetect","onDragover","onError"])])}const I=A(S,[["render",N]]),V=t("h1",{id:"decode-by-drag-drop",tabindex:"-1"},[d("Decode by Drag&Drop "),t("a",{class:"header-anchor",href:"#decode-by-drag-drop","aria-label":'Permalink to "Decode by Drag&Drop"'},"​")],-1),P=t("p",null,[d("With the "),t("code",null,"QrcodeDropZone"),d(" component you can also drag-and-drop images that should be scanned. Use it as a standalone feature or as a fallback for desktop users.")],-1),U=b(`

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <p
-      v-if="error !== null"
-      class="drop-error"
-    >
-      {{ error }}
-    </p>
-
-    <qrcode-drop-zone
-      @detect="onDetect"
-      @dragover="onDragOver"
-      @error="logErrors"
-    >
-      <div
-        class="drop-area"
-        :class="{ dragover: dragover }"
-      >
-        DROP SOME IMAGES HERE
-      </div>
-    </qrcode-drop-zone>
-  </div>
-</template>
-
-<script>
-import { QrcodeDropZone } from '../../../../src'
-
-export default {
-  components: { QrcodeDropZone },
-
-  data() {
-    return {
-      result: null,
-      error: null,
-      dragover: false
-    }
-  },
-
-  methods: {
-    onDetect(detectedCodes) {
-      console.log(detectedCodes)
-
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-    },
-
-    logErrors(error) {
-      if (error.name === 'DropImageFetchError') {
-        this.error = "Sorry, you can't load cross-origin images :/"
-      } else if (error.name === 'DropImageDecodeError') {
-        this.error = "Ok, that's not an image. That can't be decoded."
-      } else {
-        this.error = 'Ups, what kind of error is this?! ' + error.message
-      }
-    },
-
-    onDragOver(isDraggingOver) {
-      this.dragover = isDraggingOver
-    }
-  }
-}
-</script>
-
-<style>
-.drop-area {
-  height: 300px;
-  color: #fff;
-  text-align: center;
-  font-weight: bold;
-  padding: 10px;
-
-  background-color: #3c3c43;
-}
-
-.dragover {
-  background-color: #10b981;
-}
-
-.drop-error {
-  color: red;
-  font-weight: bold;
-}
-</style>
`,2),R=JSON.parse('{"title":"Decode by Drag&Drop","description":"","frontmatter":{},"headers":[],"relativePath":"demos/DragDrop.md","filePath":"demos/DragDrop.md","lastUpdated":1621091954000}'),z={name:"demos/DragDrop.md"},Z=F({...z,setup(s){return(h,g)=>{const p=C("ClientOnly");return r(),E("div",null,[V,P,y(p,null,{default:D(()=>[y(f,{component:I})]),_:1}),U])}}});export{R as __pageData,Z as default}; diff --git a/pr-preview/pr-442/assets/demos_DragDrop.md.rlfOSb1I.lean.js b/pr-preview/pr-442/assets/demos_DragDrop.md.rlfOSb1I.lean.js deleted file mode 100644 index d5ef075d..00000000 --- a/pr-preview/pr-442/assets/demos_DragDrop.md.rlfOSb1I.lean.js +++ /dev/null @@ -1,86 +0,0 @@ -import{p as B,a as m,_ as f}from"./chunks/camera.mAncAYbH.js";import{d as F,o as r,c as E,r as v,a2 as e,_ as A,D as C,k as t,a as d,t as c,e as _,I as y,w as D,n as q,R as b}from"./chunks/framework.Bgy0wF8y.js";const O=F({__name:"QrcodeDropZone",props:{formats:{type:Array,default:()=>["qr_code"]}},emits:["detect","dragover","error"],setup(s,{emit:h}){const g=s,p=h,n=async a=>{try{const i=await a;p("detect",i)}catch(i){p("error",i)}},l=a=>{p("dragover",a)},o=({dataTransfer:a})=>{if(!a)return;l(!1);const i=[...Array.from(a.files)],k=a.getData("text/uri-list");i.forEach(u=>{n(B(u))}),k!==""&&n(m(k,g.formats))};return(a,i)=>(r(),E("div",{onDrop:e(o,["prevent","stop"]),onDragenter:i[0]||(i[0]=e(k=>l(!0),["prevent","stop"])),onDragleave:i[1]||(i[1]=e(k=>l(!1),["prevent","stop"])),onDragover:i[2]||(i[2]=e(()=>{},["prevent","stop"]))},[v(a.$slots,"default")],32))}}),S={components:{QrcodeDropZone:O},data(){return{result:null,error:null,dragover:!1}},methods:{onDetect(s){console.log(s),this.result=JSON.stringify(s.map(h=>h.rawValue))},logErrors(s){s.name==="DropImageFetchError"?this.error="Sorry, you can't load cross-origin images :/":s.name==="DropImageDecodeError"?this.error="Ok, that's not an image. That can't be decoded.":this.error="Ups, what kind of error is this?! "+s.message},onDragOver(s){this.dragover=s}}},x={class:"decode-result"},w={key:0,class:"drop-error"};function N(s,h,g,p,n,l){const o=C("qrcode-drop-zone");return r(),E("div",null,[t("p",x,[d(" Last result: "),t("b",null,c(n.result),1)]),n.error!==null?(r(),E("p",w,c(n.error),1)):_("",!0),y(o,{onDetect:l.onDetect,onDragover:l.onDragOver,onError:l.logErrors},{default:D(()=>[t("div",{class:q(["drop-area",{dragover:n.dragover}])}," DROP SOME IMAGES HERE ",2)]),_:1},8,["onDetect","onDragover","onError"])])}const I=A(S,[["render",N]]),V=t("h1",{id:"decode-by-drag-drop",tabindex:"-1"},[d("Decode by Drag&Drop "),t("a",{class:"header-anchor",href:"#decode-by-drag-drop","aria-label":'Permalink to "Decode by Drag&Drop"'},"​")],-1),P=t("p",null,[d("With the "),t("code",null,"QrcodeDropZone"),d(" component you can also drag-and-drop images that should be scanned. Use it as a standalone feature or as a fallback for desktop users.")],-1),U=b(`

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <p
-      v-if="error !== null"
-      class="drop-error"
-    >
-      {{ error }}
-    </p>
-
-    <qrcode-drop-zone
-      @detect="onDetect"
-      @dragover="onDragOver"
-      @error="logErrors"
-    >
-      <div
-        class="drop-area"
-        :class="{ dragover: dragover }"
-      >
-        DROP SOME IMAGES HERE
-      </div>
-    </qrcode-drop-zone>
-  </div>
-</template>
-
-<script>
-import { QrcodeDropZone } from '../../../../src'
-
-export default {
-  components: { QrcodeDropZone },
-
-  data() {
-    return {
-      result: null,
-      error: null,
-      dragover: false
-    }
-  },
-
-  methods: {
-    onDetect(detectedCodes) {
-      console.log(detectedCodes)
-
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-    },
-
-    logErrors(error) {
-      if (error.name === 'DropImageFetchError') {
-        this.error = "Sorry, you can't load cross-origin images :/"
-      } else if (error.name === 'DropImageDecodeError') {
-        this.error = "Ok, that's not an image. That can't be decoded."
-      } else {
-        this.error = 'Ups, what kind of error is this?! ' + error.message
-      }
-    },
-
-    onDragOver(isDraggingOver) {
-      this.dragover = isDraggingOver
-    }
-  }
-}
-</script>
-
-<style>
-.drop-area {
-  height: 300px;
-  color: #fff;
-  text-align: center;
-  font-weight: bold;
-  padding: 10px;
-
-  background-color: #3c3c43;
-}
-
-.dragover {
-  background-color: #10b981;
-}
-
-.drop-error {
-  color: red;
-  font-weight: bold;
-}
-</style>
`,2),R=JSON.parse('{"title":"Decode by Drag&Drop","description":"","frontmatter":{},"headers":[],"relativePath":"demos/DragDrop.md","filePath":"demos/DragDrop.md","lastUpdated":1621091954000}'),z={name:"demos/DragDrop.md"},Z=F({...z,setup(s){return(h,g)=>{const p=C("ClientOnly");return r(),E("div",null,[V,P,y(p,null,{default:D(()=>[y(f,{component:I})]),_:1}),U])}}});export{R as __pageData,Z as default}; diff --git a/pr-preview/pr-442/assets/demos_FullDemo.md.BrHQ4b73.js b/pr-preview/pr-442/assets/demos_FullDemo.md.BrHQ4b73.js deleted file mode 100644 index 10e1d57c..00000000 --- a/pr-preview/pr-442/assets/demos_FullDemo.md.BrHQ4b73.js +++ /dev/null @@ -1,238 +0,0 @@ -import{_ as I}from"./chunks/camera.mAncAYbH.js";import{d as _,h as E,g as V,o as t,c as k,k as l,a as c,a4 as u,a5 as x,F as B,E as f,t as o,I as D,m as $,a6 as M,p as R,q as U,_ as H,D as Y,w as z,R as j}from"./chunks/framework.Bgy0wF8y.js";import{_ as Q}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const W=r=>(R("data-v-df3f27d7"),r=r(),U(),r),X=["value"],J=["value"],L=W(()=>l("br",null,null,-1)),G=["onUpdate:modelValue","id"],K=["for"],Z={class:"error"},ss={class:"decode-result"},is=_({__name:"FullDemo",setup(r){const F=E("");function A(a){console.log(a),F.value=JSON.stringify(a.map(i=>i.rawValue))}const d=E({facingMode:"environment"}),m=[{label:"rear camera",constraints:{facingMode:"environment"}},{label:"front camera",constraints:{facingMode:"user"}}],v=E(m);async function q(){const i=(await navigator.mediaDevices.enumerateDevices()).filter(({kind:s})=>s==="videoinput");v.value=[...m,...i.map(({deviceId:s,label:n})=>({label:`${n} (ID: ${s})`,constraints:{deviceId:s}}))],h.value=""}function S(a,i){for(const s of a){const[n,...y]=s.cornerPoints;i.strokeStyle="red",i.beginPath(),i.moveTo(n.x,n.y);for(const{x:p,y:e}of y)i.lineTo(p,e);i.lineTo(n.x,n.y),i.closePath(),i.stroke()}}function w(a,i){for(const s of a){const{boundingBox:{x:n,y,width:p,height:e}}=s;i.lineWidth=2,i.strokeStyle="#007bff",i.strokeRect(n,y,p,e)}}function T(a,i){for(const s of a){const{boundingBox:n,rawValue:y}=s,p=n.x+n.width/2,e=n.y+n.height/2,N=Math.max(12,50*n.width/i.canvas.width);i.font=`bold ${N}px sans-serif`,i.textAlign="center",i.lineWidth=3,i.strokeStyle="#35495e",i.strokeText(s.rawValue,p,e),i.fillStyle="#5cb984",i.fillText(y,p,e)}}const b=[{text:"nothing (default)",value:void 0},{text:"outline",value:S},{text:"centered text",value:T},{text:"bounding box",value:w}],C=E(b[1]),g=E({aztec:!1,code_128:!1,code_39:!1,code_93:!1,codabar:!1,databar:!1,databar_expanded:!1,data_matrix:!1,dx_film_edge:!1,ean_13:!1,ean_8:!1,itf:!1,maxi_code:!1,micro_qr_code:!1,pdf417:!1,qr_code:!0,rm_qr_code:!1,upc_a:!1,upc_e:!1,linear_codes:!1,matrix_codes:!1}),O=V(()=>Object.keys(g.value).filter(a=>g.value[a])),h=E("");function P(a){h.value=`[${a.name}]: `,a.name==="NotAllowedError"?h.value+="you need to grant camera access permission":a.name==="NotFoundError"?h.value+="no camera on this device":a.name==="NotSupportedError"?h.value+="secure context required (HTTPS, localhost)":a.name==="NotReadableError"?h.value+="is the camera already in use?":a.name==="OverconstrainedError"?h.value+="installed cameras are not suitable":a.name==="StreamApiNotSupportedError"?h.value+="Stream API is not supported in this browser":a.name==="InsecureContextError"?h.value+="Camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.":h.value+=a.message}return(a,i)=>(t(),k("div",null,[l("p",null,[c(" Modern mobile phones often have a variety of different cameras installed (e.g. front, rear, wide-angle, infrared, desk-view). The one picked by default is sometimes not the best choice. For more fine-grained control, you can select a camera by device constraints or by the device ID: "),u(l("select",{"onUpdate:modelValue":i[0]||(i[0]=s=>d.value=s)},[(t(!0),k(B,null,f(v.value,s=>(t(),k("option",{key:s.label,value:s.constraints},o(s.label),9,X))),128))],512),[[x,d.value]])]),l("p",null,[c(" Detected codes are visually highlighted in real-time. Use the following dropdown to change the flavor: "),u(l("select",{"onUpdate:modelValue":i[1]||(i[1]=s=>C.value=s)},[(t(),k(B,null,f(b,s=>l("option",{key:s.text,value:s},o(s.text),9,J)),64))],512),[[x,C.value]])]),l("p",null,[c(" By default only QR-codes are detected but a variety of other barcode formats are also supported. You can select one or multiple but the more you select the more expensive scanning becomes: "),L,(t(!0),k(B,null,f(Object.keys(g.value),s=>(t(),k("span",{key:s,class:"barcode-format-checkbox"},[u(l("input",{type:"checkbox","onUpdate:modelValue":n=>g.value[s]=n,id:s},null,8,G),[[M,g.value[s]]]),l("label",{for:s},o(s),9,K)]))),128))]),l("p",Z,o(h.value),1),l("p",ss,[c(" Last result: "),l("b",null,o(F.value),1)]),l("div",null,[D($(Q),{constraints:d.value,track:C.value.value,formats:O.value,onError:P,onDetect:A,onCameraOn:q},null,8,["constraints","track","formats"])])]))}}),as=H(is,[["__scopeId","data-v-df3f27d7"]]),ns=l("h1",{id:"full-demo",tabindex:"-1"},[c("Full Demo "),l("a",{class:"header-anchor",href:"#full-demo","aria-label":'Permalink to "Full Demo"'},"​")],-1),ls=j(`

Source

vue
<template>
-  <div>
-    <p>
-      Modern mobile phones often have a variety of different cameras installed (e.g. front, rear,
-      wide-angle, infrared, desk-view). The one picked by default is sometimes not the best choice.
-      For more fine-grained control, you can select a camera by device constraints or by the device
-      ID:
-
-      <select v-model="selectedConstraints">
-        <option
-          v-for="option in constraintOptions"
-          :key="option.label"
-          :value="option.constraints"
-        >
-          {{ option.label }}
-        </option>
-      </select>
-    </p>
-
-    <p>
-      Detected codes are visually highlighted in real-time. Use the following dropdown to change the
-      flavor:
-
-      <select v-model="trackFunctionSelected">
-        <option
-          v-for="option in trackFunctionOptions"
-          :key="option.text"
-          :value="option"
-        >
-          {{ option.text }}
-        </option>
-      </select>
-    </p>
-
-    <p>
-      By default only QR-codes are detected but a variety of other barcode formats are also
-      supported. You can select one or multiple but the more you select the more expensive scanning
-      becomes: <br />
-
-      <span
-        v-for="option in Object.keys(barcodeFormats)"
-        :key="option"
-        class="barcode-format-checkbox"
-      >
-        <input
-          type="checkbox"
-          v-model="barcodeFormats[option]"
-          :id="option"
-        />
-        <label :for="option">{{ option }}</label>
-      </span>
-    </p>
-
-    <p class="error">{{ error }}</p>
-
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <div>
-      <qrcode-stream
-        :constraints="selectedConstraints"
-        :track="trackFunctionSelected.value"
-        :formats="selectedBarcodeFormats"
-        @error="onError"
-        @detect="onDetect"
-        @camera-on="onCameraReady"
-      />
-    </div>
-  </div>
-</template>
-
-<script setup lang="ts">
-import { ref, computed } from 'vue'
-import { QrcodeStream } from '../../../../src'
-
-/*** detection handling ***/
-
-const result = ref('')
-
-function onDetect(detectedCodes) {
-  console.log(detectedCodes)
-  result.value = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-}
-
-/*** select camera ***/
-
-const selectedConstraints = ref({ facingMode: 'environment' })
-const defaultConstraintOptions = [
-  { label: 'rear camera', constraints: { facingMode: 'environment' } },
-  { label: 'front camera', constraints: { facingMode: 'user' } }
-]
-const constraintOptions = ref(defaultConstraintOptions)
-
-async function onCameraReady() {
-  // NOTE: on iOS we can't invoke \`enumerateDevices\` before the user has given
-  // camera access permission. \`QrcodeStream\` internally takes care of
-  // requesting the permissions. The \`camera-on\` event should guarantee that this
-  // has happened.
-  const devices = await navigator.mediaDevices.enumerateDevices()
-  const videoDevices = devices.filter(({ kind }) => kind === 'videoinput')
-
-  constraintOptions.value = [
-    ...defaultConstraintOptions,
-    ...videoDevices.map(({ deviceId, label }) => ({
-      label: \`\${label} (ID: \${deviceId})\`,
-      constraints: { deviceId }
-    }))
-  ]
-
-  error.value = ''
-}
-
-/*** track functons ***/
-
-function paintOutline(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const [firstPoint, ...otherPoints] = detectedCode.cornerPoints
-
-    ctx.strokeStyle = 'red'
-
-    ctx.beginPath()
-    ctx.moveTo(firstPoint.x, firstPoint.y)
-    for (const { x, y } of otherPoints) {
-      ctx.lineTo(x, y)
-    }
-    ctx.lineTo(firstPoint.x, firstPoint.y)
-    ctx.closePath()
-    ctx.stroke()
-  }
-}
-function paintBoundingBox(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const {
-      boundingBox: { x, y, width, height }
-    } = detectedCode
-
-    ctx.lineWidth = 2
-    ctx.strokeStyle = '#007bff'
-    ctx.strokeRect(x, y, width, height)
-  }
-}
-function paintCenterText(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const { boundingBox, rawValue } = detectedCode
-
-    const centerX = boundingBox.x + boundingBox.width / 2
-    const centerY = boundingBox.y + boundingBox.height / 2
-
-    const fontSize = Math.max(12, (50 * boundingBox.width) / ctx.canvas.width)
-
-    ctx.font = \`bold \${fontSize}px sans-serif\`
-    ctx.textAlign = 'center'
-
-    ctx.lineWidth = 3
-    ctx.strokeStyle = '#35495e'
-    ctx.strokeText(detectedCode.rawValue, centerX, centerY)
-
-    ctx.fillStyle = '#5cb984'
-    ctx.fillText(rawValue, centerX, centerY)
-  }
-}
-const trackFunctionOptions = [
-  { text: 'nothing (default)', value: undefined },
-  { text: 'outline', value: paintOutline },
-  { text: 'centered text', value: paintCenterText },
-  { text: 'bounding box', value: paintBoundingBox }
-]
-const trackFunctionSelected = ref(trackFunctionOptions[1])
-
-/*** barcode formats ***/
-
-const barcodeFormats = ref({
-  aztec: false,
-  code_128: false,
-  code_39: false,
-  code_93: false,
-  codabar: false,
-  databar: false,
-  databar_expanded: false,
-  data_matrix: false,
-  dx_film_edge: false,
-  ean_13: false,
-  ean_8: false,
-  itf: false,
-  maxi_code: false,
-  micro_qr_code: false,
-  pdf417: false,
-  qr_code: true,
-  rm_qr_code: false,
-  upc_a: false,
-  upc_e: false,
-  linear_codes: false,
-  matrix_codes: false
-})
-const selectedBarcodeFormats = computed(() => {
-  return Object.keys(barcodeFormats.value).filter((format) => barcodeFormats.value[format])
-})
-
-/*** error handling ***/
-
-const error = ref('')
-
-function onError(err) {
-  error.value = \`[\${err.name}]: \`
-
-  if (err.name === 'NotAllowedError') {
-    error.value += 'you need to grant camera access permission'
-  } else if (err.name === 'NotFoundError') {
-    error.value += 'no camera on this device'
-  } else if (err.name === 'NotSupportedError') {
-    error.value += 'secure context required (HTTPS, localhost)'
-  } else if (err.name === 'NotReadableError') {
-    error.value += 'is the camera already in use?'
-  } else if (err.name === 'OverconstrainedError') {
-    error.value += 'installed cameras are not suitable'
-  } else if (err.name === 'StreamApiNotSupportedError') {
-    error.value += 'Stream API is not supported in this browser'
-  } else if (err.name === 'InsecureContextError') {
-    error.value +=
-      'Camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.'
-  } else {
-    error.value += err.message
-  }
-}
-</script>
-
-<style scoped>
-.error {
-  font-weight: bold;
-  color: red;
-}
-.barcode-format-checkbox {
-  margin-right: 10px;
-  white-space: nowrap;
-  display: inline-block;
-}
-</style>
`,2),es=JSON.parse('{"title":"Full Demo","description":"","frontmatter":{},"headers":[],"relativePath":"demos/FullDemo.md","filePath":"demos/FullDemo.md","lastUpdated":1707952687000}'),hs={name:"demos/FullDemo.md"},Es=_({...hs,setup(r){return(F,A)=>{const d=Y("ClientOnly");return t(),k("div",null,[ns,D(d,null,{default:z(()=>[D(I,{component:as})]),_:1}),ls])}}});export{es as __pageData,Es as default}; diff --git a/pr-preview/pr-442/assets/demos_FullDemo.md.BrHQ4b73.lean.js b/pr-preview/pr-442/assets/demos_FullDemo.md.BrHQ4b73.lean.js deleted file mode 100644 index 10e1d57c..00000000 --- a/pr-preview/pr-442/assets/demos_FullDemo.md.BrHQ4b73.lean.js +++ /dev/null @@ -1,238 +0,0 @@ -import{_ as I}from"./chunks/camera.mAncAYbH.js";import{d as _,h as E,g as V,o as t,c as k,k as l,a as c,a4 as u,a5 as x,F as B,E as f,t as o,I as D,m as $,a6 as M,p as R,q as U,_ as H,D as Y,w as z,R as j}from"./chunks/framework.Bgy0wF8y.js";import{_ as Q}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const W=r=>(R("data-v-df3f27d7"),r=r(),U(),r),X=["value"],J=["value"],L=W(()=>l("br",null,null,-1)),G=["onUpdate:modelValue","id"],K=["for"],Z={class:"error"},ss={class:"decode-result"},is=_({__name:"FullDemo",setup(r){const F=E("");function A(a){console.log(a),F.value=JSON.stringify(a.map(i=>i.rawValue))}const d=E({facingMode:"environment"}),m=[{label:"rear camera",constraints:{facingMode:"environment"}},{label:"front camera",constraints:{facingMode:"user"}}],v=E(m);async function q(){const i=(await navigator.mediaDevices.enumerateDevices()).filter(({kind:s})=>s==="videoinput");v.value=[...m,...i.map(({deviceId:s,label:n})=>({label:`${n} (ID: ${s})`,constraints:{deviceId:s}}))],h.value=""}function S(a,i){for(const s of a){const[n,...y]=s.cornerPoints;i.strokeStyle="red",i.beginPath(),i.moveTo(n.x,n.y);for(const{x:p,y:e}of y)i.lineTo(p,e);i.lineTo(n.x,n.y),i.closePath(),i.stroke()}}function w(a,i){for(const s of a){const{boundingBox:{x:n,y,width:p,height:e}}=s;i.lineWidth=2,i.strokeStyle="#007bff",i.strokeRect(n,y,p,e)}}function T(a,i){for(const s of a){const{boundingBox:n,rawValue:y}=s,p=n.x+n.width/2,e=n.y+n.height/2,N=Math.max(12,50*n.width/i.canvas.width);i.font=`bold ${N}px sans-serif`,i.textAlign="center",i.lineWidth=3,i.strokeStyle="#35495e",i.strokeText(s.rawValue,p,e),i.fillStyle="#5cb984",i.fillText(y,p,e)}}const b=[{text:"nothing (default)",value:void 0},{text:"outline",value:S},{text:"centered text",value:T},{text:"bounding box",value:w}],C=E(b[1]),g=E({aztec:!1,code_128:!1,code_39:!1,code_93:!1,codabar:!1,databar:!1,databar_expanded:!1,data_matrix:!1,dx_film_edge:!1,ean_13:!1,ean_8:!1,itf:!1,maxi_code:!1,micro_qr_code:!1,pdf417:!1,qr_code:!0,rm_qr_code:!1,upc_a:!1,upc_e:!1,linear_codes:!1,matrix_codes:!1}),O=V(()=>Object.keys(g.value).filter(a=>g.value[a])),h=E("");function P(a){h.value=`[${a.name}]: `,a.name==="NotAllowedError"?h.value+="you need to grant camera access permission":a.name==="NotFoundError"?h.value+="no camera on this device":a.name==="NotSupportedError"?h.value+="secure context required (HTTPS, localhost)":a.name==="NotReadableError"?h.value+="is the camera already in use?":a.name==="OverconstrainedError"?h.value+="installed cameras are not suitable":a.name==="StreamApiNotSupportedError"?h.value+="Stream API is not supported in this browser":a.name==="InsecureContextError"?h.value+="Camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.":h.value+=a.message}return(a,i)=>(t(),k("div",null,[l("p",null,[c(" Modern mobile phones often have a variety of different cameras installed (e.g. front, rear, wide-angle, infrared, desk-view). The one picked by default is sometimes not the best choice. For more fine-grained control, you can select a camera by device constraints or by the device ID: "),u(l("select",{"onUpdate:modelValue":i[0]||(i[0]=s=>d.value=s)},[(t(!0),k(B,null,f(v.value,s=>(t(),k("option",{key:s.label,value:s.constraints},o(s.label),9,X))),128))],512),[[x,d.value]])]),l("p",null,[c(" Detected codes are visually highlighted in real-time. Use the following dropdown to change the flavor: "),u(l("select",{"onUpdate:modelValue":i[1]||(i[1]=s=>C.value=s)},[(t(),k(B,null,f(b,s=>l("option",{key:s.text,value:s},o(s.text),9,J)),64))],512),[[x,C.value]])]),l("p",null,[c(" By default only QR-codes are detected but a variety of other barcode formats are also supported. You can select one or multiple but the more you select the more expensive scanning becomes: "),L,(t(!0),k(B,null,f(Object.keys(g.value),s=>(t(),k("span",{key:s,class:"barcode-format-checkbox"},[u(l("input",{type:"checkbox","onUpdate:modelValue":n=>g.value[s]=n,id:s},null,8,G),[[M,g.value[s]]]),l("label",{for:s},o(s),9,K)]))),128))]),l("p",Z,o(h.value),1),l("p",ss,[c(" Last result: "),l("b",null,o(F.value),1)]),l("div",null,[D($(Q),{constraints:d.value,track:C.value.value,formats:O.value,onError:P,onDetect:A,onCameraOn:q},null,8,["constraints","track","formats"])])]))}}),as=H(is,[["__scopeId","data-v-df3f27d7"]]),ns=l("h1",{id:"full-demo",tabindex:"-1"},[c("Full Demo "),l("a",{class:"header-anchor",href:"#full-demo","aria-label":'Permalink to "Full Demo"'},"​")],-1),ls=j(`

Source

vue
<template>
-  <div>
-    <p>
-      Modern mobile phones often have a variety of different cameras installed (e.g. front, rear,
-      wide-angle, infrared, desk-view). The one picked by default is sometimes not the best choice.
-      For more fine-grained control, you can select a camera by device constraints or by the device
-      ID:
-
-      <select v-model="selectedConstraints">
-        <option
-          v-for="option in constraintOptions"
-          :key="option.label"
-          :value="option.constraints"
-        >
-          {{ option.label }}
-        </option>
-      </select>
-    </p>
-
-    <p>
-      Detected codes are visually highlighted in real-time. Use the following dropdown to change the
-      flavor:
-
-      <select v-model="trackFunctionSelected">
-        <option
-          v-for="option in trackFunctionOptions"
-          :key="option.text"
-          :value="option"
-        >
-          {{ option.text }}
-        </option>
-      </select>
-    </p>
-
-    <p>
-      By default only QR-codes are detected but a variety of other barcode formats are also
-      supported. You can select one or multiple but the more you select the more expensive scanning
-      becomes: <br />
-
-      <span
-        v-for="option in Object.keys(barcodeFormats)"
-        :key="option"
-        class="barcode-format-checkbox"
-      >
-        <input
-          type="checkbox"
-          v-model="barcodeFormats[option]"
-          :id="option"
-        />
-        <label :for="option">{{ option }}</label>
-      </span>
-    </p>
-
-    <p class="error">{{ error }}</p>
-
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <div>
-      <qrcode-stream
-        :constraints="selectedConstraints"
-        :track="trackFunctionSelected.value"
-        :formats="selectedBarcodeFormats"
-        @error="onError"
-        @detect="onDetect"
-        @camera-on="onCameraReady"
-      />
-    </div>
-  </div>
-</template>
-
-<script setup lang="ts">
-import { ref, computed } from 'vue'
-import { QrcodeStream } from '../../../../src'
-
-/*** detection handling ***/
-
-const result = ref('')
-
-function onDetect(detectedCodes) {
-  console.log(detectedCodes)
-  result.value = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-}
-
-/*** select camera ***/
-
-const selectedConstraints = ref({ facingMode: 'environment' })
-const defaultConstraintOptions = [
-  { label: 'rear camera', constraints: { facingMode: 'environment' } },
-  { label: 'front camera', constraints: { facingMode: 'user' } }
-]
-const constraintOptions = ref(defaultConstraintOptions)
-
-async function onCameraReady() {
-  // NOTE: on iOS we can't invoke \`enumerateDevices\` before the user has given
-  // camera access permission. \`QrcodeStream\` internally takes care of
-  // requesting the permissions. The \`camera-on\` event should guarantee that this
-  // has happened.
-  const devices = await navigator.mediaDevices.enumerateDevices()
-  const videoDevices = devices.filter(({ kind }) => kind === 'videoinput')
-
-  constraintOptions.value = [
-    ...defaultConstraintOptions,
-    ...videoDevices.map(({ deviceId, label }) => ({
-      label: \`\${label} (ID: \${deviceId})\`,
-      constraints: { deviceId }
-    }))
-  ]
-
-  error.value = ''
-}
-
-/*** track functons ***/
-
-function paintOutline(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const [firstPoint, ...otherPoints] = detectedCode.cornerPoints
-
-    ctx.strokeStyle = 'red'
-
-    ctx.beginPath()
-    ctx.moveTo(firstPoint.x, firstPoint.y)
-    for (const { x, y } of otherPoints) {
-      ctx.lineTo(x, y)
-    }
-    ctx.lineTo(firstPoint.x, firstPoint.y)
-    ctx.closePath()
-    ctx.stroke()
-  }
-}
-function paintBoundingBox(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const {
-      boundingBox: { x, y, width, height }
-    } = detectedCode
-
-    ctx.lineWidth = 2
-    ctx.strokeStyle = '#007bff'
-    ctx.strokeRect(x, y, width, height)
-  }
-}
-function paintCenterText(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const { boundingBox, rawValue } = detectedCode
-
-    const centerX = boundingBox.x + boundingBox.width / 2
-    const centerY = boundingBox.y + boundingBox.height / 2
-
-    const fontSize = Math.max(12, (50 * boundingBox.width) / ctx.canvas.width)
-
-    ctx.font = \`bold \${fontSize}px sans-serif\`
-    ctx.textAlign = 'center'
-
-    ctx.lineWidth = 3
-    ctx.strokeStyle = '#35495e'
-    ctx.strokeText(detectedCode.rawValue, centerX, centerY)
-
-    ctx.fillStyle = '#5cb984'
-    ctx.fillText(rawValue, centerX, centerY)
-  }
-}
-const trackFunctionOptions = [
-  { text: 'nothing (default)', value: undefined },
-  { text: 'outline', value: paintOutline },
-  { text: 'centered text', value: paintCenterText },
-  { text: 'bounding box', value: paintBoundingBox }
-]
-const trackFunctionSelected = ref(trackFunctionOptions[1])
-
-/*** barcode formats ***/
-
-const barcodeFormats = ref({
-  aztec: false,
-  code_128: false,
-  code_39: false,
-  code_93: false,
-  codabar: false,
-  databar: false,
-  databar_expanded: false,
-  data_matrix: false,
-  dx_film_edge: false,
-  ean_13: false,
-  ean_8: false,
-  itf: false,
-  maxi_code: false,
-  micro_qr_code: false,
-  pdf417: false,
-  qr_code: true,
-  rm_qr_code: false,
-  upc_a: false,
-  upc_e: false,
-  linear_codes: false,
-  matrix_codes: false
-})
-const selectedBarcodeFormats = computed(() => {
-  return Object.keys(barcodeFormats.value).filter((format) => barcodeFormats.value[format])
-})
-
-/*** error handling ***/
-
-const error = ref('')
-
-function onError(err) {
-  error.value = \`[\${err.name}]: \`
-
-  if (err.name === 'NotAllowedError') {
-    error.value += 'you need to grant camera access permission'
-  } else if (err.name === 'NotFoundError') {
-    error.value += 'no camera on this device'
-  } else if (err.name === 'NotSupportedError') {
-    error.value += 'secure context required (HTTPS, localhost)'
-  } else if (err.name === 'NotReadableError') {
-    error.value += 'is the camera already in use?'
-  } else if (err.name === 'OverconstrainedError') {
-    error.value += 'installed cameras are not suitable'
-  } else if (err.name === 'StreamApiNotSupportedError') {
-    error.value += 'Stream API is not supported in this browser'
-  } else if (err.name === 'InsecureContextError') {
-    error.value +=
-      'Camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.'
-  } else {
-    error.value += err.message
-  }
-}
-</script>
-
-<style scoped>
-.error {
-  font-weight: bold;
-  color: red;
-}
-.barcode-format-checkbox {
-  margin-right: 10px;
-  white-space: nowrap;
-  display: inline-block;
-}
-</style>
`,2),es=JSON.parse('{"title":"Full Demo","description":"","frontmatter":{},"headers":[],"relativePath":"demos/FullDemo.md","filePath":"demos/FullDemo.md","lastUpdated":1707952687000}'),hs={name:"demos/FullDemo.md"},Es=_({...hs,setup(r){return(F,A)=>{const d=Y("ClientOnly");return t(),k("div",null,[ns,D(d,null,{default:z(()=>[D(I,{component:as})]),_:1}),ls])}}});export{es as __pageData,Es as default}; diff --git a/pr-preview/pr-442/assets/demos_Fullscreen.md.4ENCkVUf.js b/pr-preview/pr-442/assets/demos_Fullscreen.md.4ENCkVUf.js deleted file mode 100644 index e2fbf5ee..00000000 --- a/pr-preview/pr-442/assets/demos_Fullscreen.md.4ENCkVUf.js +++ /dev/null @@ -1,130 +0,0 @@ -import{_ as y}from"./chunks/camera.mAncAYbH.js";import{_ as F,f as o,D as t,o as k,c as E,I as e,w as r,k as i,n as u,d as C,a as d,R as m}from"./chunks/framework.Bgy0wF8y.js";import{_ as f}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const B={components:{QrcodeStream:f},data(){return{fullscreen:!1}},computed:{fullscreenIcon(){return this.fullscreen?"/fullscreen-exit.svg":"/fullscreen.svg"}},watch:{fullscreen(s){s?this.requestFullscreen():this.exitFullscreen()}},methods:{onFullscreenChange(s){this.fullscreen=document.fullscreenElement!==null},requestFullscreen(){const s=this.$refs.wrapper;s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen?s.webkitRequestFullscreen():s.msRequestFullscreen&&s.msRequestFullscreen()},exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},logErrors:console.error,withBase:o}},A=["src"];function D(s,a,c,h,l,n){const g=t("qrcode-stream");return k(),E("div",{class:u({fullscreen:l.fullscreen}),ref:"wrapper",onFullscreenchange:a[1]||(a[1]=(...p)=>n.onFullscreenChange&&n.onFullscreenChange(...p))},[e(g,{onError:n.logErrors},{default:r(()=>[i("button",{onClick:a[0]||(a[0]=p=>l.fullscreen=!l.fullscreen),class:"fullscreen-button"},[i("img",{src:n.withBase(n.fullscreenIcon),alt:"toggle fullscreen"},null,8,A)])]),_:1},8,["onError"])],34)}const q=F(B,[["render",D],["__scopeId","data-v-39d64d0c"]]),_=i("h1",{id:"fullscreen",tabindex:"-1"},[d("Fullscreen "),i("a",{class:"header-anchor",href:"#fullscreen","aria-label":'Permalink to "Fullscreen"'},"​")],-1),b=i("p",null,[i("code",null,"QrcodeStream"),d(" always covers the entire space available. Not more, not less. So to go fullscreen, simply put the component in a wrapper element that occupies the entire screen.")],-1),x=m(`

Source

vue
<template>
-  <div
-    :class="{ fullscreen: fullscreen }"
-    ref="wrapper"
-    @fullscreenchange="onFullscreenChange"
-  >
-    <qrcode-stream @error="logErrors">
-      <button
-        @click="fullscreen = !fullscreen"
-        class="fullscreen-button"
-      >
-        <img
-          :src="withBase(fullscreenIcon)"
-          alt="toggle fullscreen"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-// NOTE: calling \`requestFullscreen\` might prompt the user with another
-// permission dialog. You already asked for camera access permission so this is
-// a rather invasive move.
-//
-// Even without calling \`requestFullscreen\` the entire viewport is covered
-// by the camera stream. So consider skipping \`requestFullscreen\` in your
-// implementation.
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      fullscreen: false
-    }
-  },
-
-  computed: {
-    fullscreenIcon() {
-      if (this.fullscreen) {
-        return '/fullscreen-exit.svg'
-      } else {
-        return '/fullscreen.svg'
-      }
-    }
-  },
-
-  watch: {
-    fullscreen(enterFullscreen) {
-      if (enterFullscreen) {
-        this.requestFullscreen()
-      } else {
-        this.exitFullscreen()
-      }
-    }
-  },
-
-  methods: {
-    onFullscreenChange(event) {
-      // This becomes important when the user doesn't use the button to exit
-      // fullscreen but hits ESC on desktop, pushes a physical back button on
-      // mobile etc.
-
-      this.fullscreen = document.fullscreenElement !== null
-    },
-
-    requestFullscreen() {
-      const elem = this.$refs.wrapper
-
-      if (elem.requestFullscreen) {
-        elem.requestFullscreen()
-      } else if (elem.mozRequestFullScreen) {
-        /* Firefox */
-        elem.mozRequestFullScreen()
-      } else if (elem.webkitRequestFullscreen) {
-        /* Chrome, Safari and Opera */
-        elem.webkitRequestFullscreen()
-      } else if (elem.msRequestFullscreen) {
-        /* IE/Edge */
-        elem.msRequestFullscreen()
-      }
-    },
-
-    exitFullscreen() {
-      if (document.exitFullscreen) {
-        document.exitFullscreen()
-      } else if (document.mozCancelFullScreen) {
-        /* Firefox */
-        document.mozCancelFullScreen()
-      } else if (document.webkitExitFullscreen) {
-        /* Chrome, Safari and Opera */
-        document.webkitExitFullscreen()
-      } else if (document.msExitFullscreen) {
-        /* IE/Edge */
-        document.msExitFullscreen()
-      }
-    },
-
-    logErrors: console.error,
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-.fullscreen {
-  position: fixed;
-  z-index: 1000;
-  top: 0;
-  bottom: 0;
-  right: 0;
-  left: 0;
-}
-.fullscreen-button {
-  background-color: white;
-  position: absolute;
-  bottom: 0;
-  right: 0;
-  margin: 1rem;
-}
-.fullscreen-button img {
-  width: 2rem;
-}
-</style>
`,2),z=JSON.parse('{"title":"Fullscreen","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Fullscreen.md","filePath":"demos/Fullscreen.md","lastUpdated":1621091954000}'),v={name:"demos/Fullscreen.md"},I=C({...v,setup(s){return(a,c)=>{const h=t("ClientOnly");return k(),E("div",null,[_,b,e(h,null,{default:r(()=>[e(y,{component:q})]),_:1}),x])}}});export{z as __pageData,I as default}; diff --git a/pr-preview/pr-442/assets/demos_Fullscreen.md.4ENCkVUf.lean.js b/pr-preview/pr-442/assets/demos_Fullscreen.md.4ENCkVUf.lean.js deleted file mode 100644 index e2fbf5ee..00000000 --- a/pr-preview/pr-442/assets/demos_Fullscreen.md.4ENCkVUf.lean.js +++ /dev/null @@ -1,130 +0,0 @@ -import{_ as y}from"./chunks/camera.mAncAYbH.js";import{_ as F,f as o,D as t,o as k,c as E,I as e,w as r,k as i,n as u,d as C,a as d,R as m}from"./chunks/framework.Bgy0wF8y.js";import{_ as f}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const B={components:{QrcodeStream:f},data(){return{fullscreen:!1}},computed:{fullscreenIcon(){return this.fullscreen?"/fullscreen-exit.svg":"/fullscreen.svg"}},watch:{fullscreen(s){s?this.requestFullscreen():this.exitFullscreen()}},methods:{onFullscreenChange(s){this.fullscreen=document.fullscreenElement!==null},requestFullscreen(){const s=this.$refs.wrapper;s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen?s.webkitRequestFullscreen():s.msRequestFullscreen&&s.msRequestFullscreen()},exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},logErrors:console.error,withBase:o}},A=["src"];function D(s,a,c,h,l,n){const g=t("qrcode-stream");return k(),E("div",{class:u({fullscreen:l.fullscreen}),ref:"wrapper",onFullscreenchange:a[1]||(a[1]=(...p)=>n.onFullscreenChange&&n.onFullscreenChange(...p))},[e(g,{onError:n.logErrors},{default:r(()=>[i("button",{onClick:a[0]||(a[0]=p=>l.fullscreen=!l.fullscreen),class:"fullscreen-button"},[i("img",{src:n.withBase(n.fullscreenIcon),alt:"toggle fullscreen"},null,8,A)])]),_:1},8,["onError"])],34)}const q=F(B,[["render",D],["__scopeId","data-v-39d64d0c"]]),_=i("h1",{id:"fullscreen",tabindex:"-1"},[d("Fullscreen "),i("a",{class:"header-anchor",href:"#fullscreen","aria-label":'Permalink to "Fullscreen"'},"​")],-1),b=i("p",null,[i("code",null,"QrcodeStream"),d(" always covers the entire space available. Not more, not less. So to go fullscreen, simply put the component in a wrapper element that occupies the entire screen.")],-1),x=m(`

Source

vue
<template>
-  <div
-    :class="{ fullscreen: fullscreen }"
-    ref="wrapper"
-    @fullscreenchange="onFullscreenChange"
-  >
-    <qrcode-stream @error="logErrors">
-      <button
-        @click="fullscreen = !fullscreen"
-        class="fullscreen-button"
-      >
-        <img
-          :src="withBase(fullscreenIcon)"
-          alt="toggle fullscreen"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-// NOTE: calling \`requestFullscreen\` might prompt the user with another
-// permission dialog. You already asked for camera access permission so this is
-// a rather invasive move.
-//
-// Even without calling \`requestFullscreen\` the entire viewport is covered
-// by the camera stream. So consider skipping \`requestFullscreen\` in your
-// implementation.
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      fullscreen: false
-    }
-  },
-
-  computed: {
-    fullscreenIcon() {
-      if (this.fullscreen) {
-        return '/fullscreen-exit.svg'
-      } else {
-        return '/fullscreen.svg'
-      }
-    }
-  },
-
-  watch: {
-    fullscreen(enterFullscreen) {
-      if (enterFullscreen) {
-        this.requestFullscreen()
-      } else {
-        this.exitFullscreen()
-      }
-    }
-  },
-
-  methods: {
-    onFullscreenChange(event) {
-      // This becomes important when the user doesn't use the button to exit
-      // fullscreen but hits ESC on desktop, pushes a physical back button on
-      // mobile etc.
-
-      this.fullscreen = document.fullscreenElement !== null
-    },
-
-    requestFullscreen() {
-      const elem = this.$refs.wrapper
-
-      if (elem.requestFullscreen) {
-        elem.requestFullscreen()
-      } else if (elem.mozRequestFullScreen) {
-        /* Firefox */
-        elem.mozRequestFullScreen()
-      } else if (elem.webkitRequestFullscreen) {
-        /* Chrome, Safari and Opera */
-        elem.webkitRequestFullscreen()
-      } else if (elem.msRequestFullscreen) {
-        /* IE/Edge */
-        elem.msRequestFullscreen()
-      }
-    },
-
-    exitFullscreen() {
-      if (document.exitFullscreen) {
-        document.exitFullscreen()
-      } else if (document.mozCancelFullScreen) {
-        /* Firefox */
-        document.mozCancelFullScreen()
-      } else if (document.webkitExitFullscreen) {
-        /* Chrome, Safari and Opera */
-        document.webkitExitFullscreen()
-      } else if (document.msExitFullscreen) {
-        /* IE/Edge */
-        document.msExitFullscreen()
-      }
-    },
-
-    logErrors: console.error,
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-.fullscreen {
-  position: fixed;
-  z-index: 1000;
-  top: 0;
-  bottom: 0;
-  right: 0;
-  left: 0;
-}
-.fullscreen-button {
-  background-color: white;
-  position: absolute;
-  bottom: 0;
-  right: 0;
-  margin: 1rem;
-}
-.fullscreen-button img {
-  width: 2rem;
-}
-</style>
`,2),z=JSON.parse('{"title":"Fullscreen","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Fullscreen.md","filePath":"demos/Fullscreen.md","lastUpdated":1621091954000}'),v={name:"demos/Fullscreen.md"},I=C({...v,setup(s){return(a,c)=>{const h=t("ClientOnly");return k(),E("div",null,[_,b,e(h,null,{default:r(()=>[e(y,{component:q})]),_:1}),x])}}});export{z as __pageData,I as default}; diff --git a/pr-preview/pr-442/assets/demos_LoadingIndicator.md.Cje69sbN.js b/pr-preview/pr-442/assets/demos_LoadingIndicator.md.Cje69sbN.js deleted file mode 100644 index 5c9abbac..00000000 --- a/pr-preview/pr-442/assets/demos_LoadingIndicator.md.Cje69sbN.js +++ /dev/null @@ -1,57 +0,0 @@ -import{_ as y}from"./chunks/camera.mAncAYbH.js";import{_ as F}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";import{_ as C,D as E,o as i,c as t,k as s,b as m,w as r,e,d as u,I as k,a as l,R as _}from"./chunks/framework.Bgy0wF8y.js";const B={components:{QrcodeStream:F},data(){return{loading:!0,destroyed:!1}},methods:{onCameraOn(){this.loading=!1},async reload(){this.destroyed=!0,await this.$nextTick(),this.destroyed=!1,this.loading=!0}}},f={key:0,class:"loading-indicator"};function D(d,a,o,h,p,n){const g=E("qrcode-stream");return i(),t("div",null,[s("button",{onClick:a[0]||(a[0]=(...c)=>n.reload&&n.reload(...c))},"Destroy And Re-Create Component"),p.destroyed?e("",!0):(i(),m(g,{key:0,onCameraOn:n.onCameraOn},{default:r(()=>[p.loading?(i(),t("div",f," Loading... ")):e("",!0)]),_:1},8,["onCameraOn"]))])}const A=C(B,[["render",D],["__scopeId","data-v-3ae3ffac"]]),v=s("h1",{id:"show-loading-indicator",tabindex:"-1"},[l("Show Loading Indicator "),s("a",{class:"header-anchor",href:"#show-loading-indicator","aria-label":'Permalink to "Show Loading Indicator"'},"​")],-1),b=s("p",null,[l("There is some delay between mounting the component and the camera stream becoming visible. Listen for the "),s("code",null,"camera-on"),l(" event to show a loading indicator.")],-1),q=s("p",null,"Push the button below to force destroy and re-create the component.",-1),w=_(`

Source

vue
<template>
-  <div>
-    <button @click="reload">Destroy And Re-Create Component</button>
-
-    <qrcode-stream
-      @camera-on="onCameraOn"
-      v-if="!destroyed"
-    >
-      <div
-        class="loading-indicator"
-        v-if="loading"
-      >
-        Loading...
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      loading: true,
-      destroyed: false
-    }
-  },
-
-  methods: {
-    onCameraOn() {
-      this.loading = false
-    },
-
-    async reload() {
-      this.destroyed = true
-      await this.$nextTick()
-      this.destroyed = false
-      this.loading = true
-    }
-  }
-}
-</script>
-
-<style scoped>
-button {
-  margin-bottom: 20px;
-}
-
-.loading-indicator {
-  font-weight: bold;
-  font-size: 2rem;
-  text-align: center;
-}
-</style>
`,2),O=JSON.parse('{"title":"Show Loading Indicator","description":"","frontmatter":{},"headers":[],"relativePath":"demos/LoadingIndicator.md","filePath":"demos/LoadingIndicator.md","lastUpdated":1688667092000}'),x={name:"demos/LoadingIndicator.md"},N=u({...x,setup(d){return(a,o)=>{const h=E("ClientOnly");return i(),t("div",null,[v,b,q,k(h,null,{default:r(()=>[k(y,{component:A})]),_:1}),w])}}});export{O as __pageData,N as default}; diff --git a/pr-preview/pr-442/assets/demos_LoadingIndicator.md.Cje69sbN.lean.js b/pr-preview/pr-442/assets/demos_LoadingIndicator.md.Cje69sbN.lean.js deleted file mode 100644 index 5c9abbac..00000000 --- a/pr-preview/pr-442/assets/demos_LoadingIndicator.md.Cje69sbN.lean.js +++ /dev/null @@ -1,57 +0,0 @@ -import{_ as y}from"./chunks/camera.mAncAYbH.js";import{_ as F}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";import{_ as C,D as E,o as i,c as t,k as s,b as m,w as r,e,d as u,I as k,a as l,R as _}from"./chunks/framework.Bgy0wF8y.js";const B={components:{QrcodeStream:F},data(){return{loading:!0,destroyed:!1}},methods:{onCameraOn(){this.loading=!1},async reload(){this.destroyed=!0,await this.$nextTick(),this.destroyed=!1,this.loading=!0}}},f={key:0,class:"loading-indicator"};function D(d,a,o,h,p,n){const g=E("qrcode-stream");return i(),t("div",null,[s("button",{onClick:a[0]||(a[0]=(...c)=>n.reload&&n.reload(...c))},"Destroy And Re-Create Component"),p.destroyed?e("",!0):(i(),m(g,{key:0,onCameraOn:n.onCameraOn},{default:r(()=>[p.loading?(i(),t("div",f," Loading... ")):e("",!0)]),_:1},8,["onCameraOn"]))])}const A=C(B,[["render",D],["__scopeId","data-v-3ae3ffac"]]),v=s("h1",{id:"show-loading-indicator",tabindex:"-1"},[l("Show Loading Indicator "),s("a",{class:"header-anchor",href:"#show-loading-indicator","aria-label":'Permalink to "Show Loading Indicator"'},"​")],-1),b=s("p",null,[l("There is some delay between mounting the component and the camera stream becoming visible. Listen for the "),s("code",null,"camera-on"),l(" event to show a loading indicator.")],-1),q=s("p",null,"Push the button below to force destroy and re-create the component.",-1),w=_(`

Source

vue
<template>
-  <div>
-    <button @click="reload">Destroy And Re-Create Component</button>
-
-    <qrcode-stream
-      @camera-on="onCameraOn"
-      v-if="!destroyed"
-    >
-      <div
-        class="loading-indicator"
-        v-if="loading"
-      >
-        Loading...
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      loading: true,
-      destroyed: false
-    }
-  },
-
-  methods: {
-    onCameraOn() {
-      this.loading = false
-    },
-
-    async reload() {
-      this.destroyed = true
-      await this.$nextTick()
-      this.destroyed = false
-      this.loading = true
-    }
-  }
-}
-</script>
-
-<style scoped>
-button {
-  margin-bottom: 20px;
-}
-
-.loading-indicator {
-  font-weight: bold;
-  font-size: 2rem;
-  text-align: center;
-}
-</style>
`,2),O=JSON.parse('{"title":"Show Loading Indicator","description":"","frontmatter":{},"headers":[],"relativePath":"demos/LoadingIndicator.md","filePath":"demos/LoadingIndicator.md","lastUpdated":1688667092000}'),x={name:"demos/LoadingIndicator.md"},N=u({...x,setup(d){return(a,o)=>{const h=E("ClientOnly");return i(),t("div",null,[v,b,q,k(h,null,{default:r(()=>[k(y,{component:A})]),_:1}),w])}}});export{O as __pageData,N as default}; diff --git a/pr-preview/pr-442/assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.js b/pr-preview/pr-442/assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.js deleted file mode 100644 index e46d0e11..00000000 --- a/pr-preview/pr-442/assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.js +++ /dev/null @@ -1,86 +0,0 @@ -import{_ as o}from"./chunks/camera.mAncAYbH.js";import{_ as c,f as y,D as p,o as e,c as E,k as s,a as i,t as F,I as l,w as r,a4 as C,a7 as m,d as u,R as B}from"./chunks/framework.Bgy0wF8y.js";import{_ as f}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const _={components:{QrcodeStream:f},data(){return{paused:!1,result:"",showScanConfirmation:!1}},methods:{onCameraOn(){this.showScanConfirmation=!1},onCameraOff(){this.showScanConfirmation=!0},onError:console.error,async onDetect(a){this.result=JSON.stringify(a.map(n=>n.rawValue)),this.paused=!0,await this.timeout(500),this.paused=!1},timeout(a){return new Promise(n=>{window.setTimeout(n,a)})},withBase:y}},D={class:"decode-result"},w={class:"scan-confirmation"},A=["src"];function S(a,n,d,k,t,h){const g=p("qrcode-stream");return e(),E("div",null,[s("p",D,[i(" Last result: "),s("b",null,F(t.result),1)]),l(g,{paused:t.paused,onDetect:h.onDetect,onCameraOn:h.onCameraOn,onCameraOff:h.onCameraOff,onError:h.onError},{default:r(()=>[C(s("div",w,[s("img",{src:h.withBase("/checkmark.svg"),alt:"Checkmark",width:"128"},null,8,A)],512),[[m,t.showScanConfirmation]])]),_:1},8,["paused","onDetect","onCameraOn","onCameraOff","onError"])])}const q=c(_,[["render",S],["__scopeId","data-v-2c48d920"]]),v=s("h1",{id:"scan-same-qr-code-more-than-once",tabindex:"-1"},[i("Scan Same QR Code More Than Once "),s("a",{class:"header-anchor",href:"#scan-same-qr-code-more-than-once","aria-label":'Permalink to "Scan Same QR Code More Than Once"'},"​")],-1),O=s("p",null,[i("You might have noticed that scanning the same QR code again doesn't work. The thing is when a QR code is in the view of your the camera it's decoded multiple times a second. You don't want to be flooded with "),s("code",null,"detect"),i(` events that often though. That's why the last decoded QR code is "cached" and an event is only emitted, when the decoded content changes.`)],-1),b=s("p",null,[i("However this cache is reset when you change the "),s("code",null,"paused"),i(" prop. We can exploit that to scan same QR codes multiple times in a row.")],-1),Q=B(`

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-stream
-      :paused="paused"
-      @detect="onDetect"
-      @camera-on="onCameraOn"
-      @camera-off="onCameraOff"
-      @error="onError"
-    >
-      <div
-        v-show="showScanConfirmation"
-        class="scan-confirmation"
-      >
-        <img
-          :src="withBase('/checkmark.svg')"
-          alt="Checkmark"
-          width="128"
-        />
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      paused: false,
-      result: '',
-      showScanConfirmation: false
-    }
-  },
-
-  methods: {
-    onCameraOn() {
-      this.showScanConfirmation = false
-    },
-
-    onCameraOff() {
-      this.showScanConfirmation = true
-    },
-
-    onError: console.error,
-
-    async onDetect(detectedCodes) {
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-
-      this.paused = true
-      await this.timeout(500)
-      this.paused = false
-    },
-
-    timeout(ms) {
-      return new Promise((resolve) => {
-        window.setTimeout(resolve, ms)
-      })
-    },
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-.scan-confirmation {
-  position: absolute;
-  width: 100%;
-  height: 100%;
-
-  background-color: rgba(255, 255, 255, 0.8);
-
-  display: flex;
-  flex-flow: row nowrap;
-  justify-content: center;
-}
-</style>
`,2),N=JSON.parse('{"title":"Scan Same QR Code More Than Once","description":"","frontmatter":{},"headers":[],"relativePath":"demos/ScanSameQrcodeMoreThanOnce.md","filePath":"demos/ScanSameQrcodeMoreThanOnce.md","lastUpdated":1688836566000}'),x={name:"demos/ScanSameQrcodeMoreThanOnce.md"},P=u({...x,setup(a){return(n,d)=>{const k=p("ClientOnly");return e(),E("div",null,[v,O,b,l(k,null,{default:r(()=>[l(o,{component:q})]),_:1}),Q])}}});export{N as __pageData,P as default}; diff --git a/pr-preview/pr-442/assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.lean.js b/pr-preview/pr-442/assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.lean.js deleted file mode 100644 index e46d0e11..00000000 --- a/pr-preview/pr-442/assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.lean.js +++ /dev/null @@ -1,86 +0,0 @@ -import{_ as o}from"./chunks/camera.mAncAYbH.js";import{_ as c,f as y,D as p,o as e,c as E,k as s,a as i,t as F,I as l,w as r,a4 as C,a7 as m,d as u,R as B}from"./chunks/framework.Bgy0wF8y.js";import{_ as f}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const _={components:{QrcodeStream:f},data(){return{paused:!1,result:"",showScanConfirmation:!1}},methods:{onCameraOn(){this.showScanConfirmation=!1},onCameraOff(){this.showScanConfirmation=!0},onError:console.error,async onDetect(a){this.result=JSON.stringify(a.map(n=>n.rawValue)),this.paused=!0,await this.timeout(500),this.paused=!1},timeout(a){return new Promise(n=>{window.setTimeout(n,a)})},withBase:y}},D={class:"decode-result"},w={class:"scan-confirmation"},A=["src"];function S(a,n,d,k,t,h){const g=p("qrcode-stream");return e(),E("div",null,[s("p",D,[i(" Last result: "),s("b",null,F(t.result),1)]),l(g,{paused:t.paused,onDetect:h.onDetect,onCameraOn:h.onCameraOn,onCameraOff:h.onCameraOff,onError:h.onError},{default:r(()=>[C(s("div",w,[s("img",{src:h.withBase("/checkmark.svg"),alt:"Checkmark",width:"128"},null,8,A)],512),[[m,t.showScanConfirmation]])]),_:1},8,["paused","onDetect","onCameraOn","onCameraOff","onError"])])}const q=c(_,[["render",S],["__scopeId","data-v-2c48d920"]]),v=s("h1",{id:"scan-same-qr-code-more-than-once",tabindex:"-1"},[i("Scan Same QR Code More Than Once "),s("a",{class:"header-anchor",href:"#scan-same-qr-code-more-than-once","aria-label":'Permalink to "Scan Same QR Code More Than Once"'},"​")],-1),O=s("p",null,[i("You might have noticed that scanning the same QR code again doesn't work. The thing is when a QR code is in the view of your the camera it's decoded multiple times a second. You don't want to be flooded with "),s("code",null,"detect"),i(` events that often though. That's why the last decoded QR code is "cached" and an event is only emitted, when the decoded content changes.`)],-1),b=s("p",null,[i("However this cache is reset when you change the "),s("code",null,"paused"),i(" prop. We can exploit that to scan same QR codes multiple times in a row.")],-1),Q=B(`

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-stream
-      :paused="paused"
-      @detect="onDetect"
-      @camera-on="onCameraOn"
-      @camera-off="onCameraOff"
-      @error="onError"
-    >
-      <div
-        v-show="showScanConfirmation"
-        class="scan-confirmation"
-      >
-        <img
-          :src="withBase('/checkmark.svg')"
-          alt="Checkmark"
-          width="128"
-        />
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      paused: false,
-      result: '',
-      showScanConfirmation: false
-    }
-  },
-
-  methods: {
-    onCameraOn() {
-      this.showScanConfirmation = false
-    },
-
-    onCameraOff() {
-      this.showScanConfirmation = true
-    },
-
-    onError: console.error,
-
-    async onDetect(detectedCodes) {
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-
-      this.paused = true
-      await this.timeout(500)
-      this.paused = false
-    },
-
-    timeout(ms) {
-      return new Promise((resolve) => {
-        window.setTimeout(resolve, ms)
-      })
-    },
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-.scan-confirmation {
-  position: absolute;
-  width: 100%;
-  height: 100%;
-
-  background-color: rgba(255, 255, 255, 0.8);
-
-  display: flex;
-  flex-flow: row nowrap;
-  justify-content: center;
-}
-</style>
`,2),N=JSON.parse('{"title":"Scan Same QR Code More Than Once","description":"","frontmatter":{},"headers":[],"relativePath":"demos/ScanSameQrcodeMoreThanOnce.md","filePath":"demos/ScanSameQrcodeMoreThanOnce.md","lastUpdated":1688836566000}'),x={name:"demos/ScanSameQrcodeMoreThanOnce.md"},P=u({...x,setup(a){return(n,d)=>{const k=p("ClientOnly");return e(),E("div",null,[v,O,b,l(k,null,{default:r(()=>[l(o,{component:q})]),_:1}),Q])}}});export{N as __pageData,P as default}; diff --git a/pr-preview/pr-442/assets/demos_Simple.md.G-a-t5Hl.js b/pr-preview/pr-442/assets/demos_Simple.md.G-a-t5Hl.js deleted file mode 100644 index b1d8b861..00000000 --- a/pr-preview/pr-442/assets/demos_Simple.md.G-a-t5Hl.js +++ /dev/null @@ -1,79 +0,0 @@ -import{_ as s,c as i,o as a,R as n}from"./chunks/framework.Bgy0wF8y.js";const F=JSON.parse('{"title":"Simple","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Simple.md","filePath":"demos/Simple.md","lastUpdated":1692216176000}'),h={name:"demos/Simple.md"},k=n(`

Simple

All other demos on this page utilize single-file components. To use them in your project you need a bundler like vite. For an example that works without a build step and right in the browser:

SEE THIS DEMO

Source

html
<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-  <title>Simple Demo</title>
-
-  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
-  <script src="https://unpkg.com/vue-qrcode-reader@5/dist/vue-qrcode-reader.umd.js"></script>
-</head>
-<body>
-	<div id="app">
-    <h1>Simple Demo</h1>
-
-    <p style="color: red">{{ error }}</p>
-
-    <p>Last result: <b>{{ result }}</b></p>
-
-    <div style="border: 2px solid black">
-  		<qrcode-stream :track="paintBoundingBox" @detect="onDetect" @error="onError"></qrcode-stream>
-    </div>
-	</div>
-</body>
-<script>
-  const { createApp, ref } = Vue
-
-  const result = ref('')
-  const error = ref('')
-
-  function paintBoundingBox(detectedCodes, ctx) {
-    for (const detectedCode of detectedCodes) {
-      const {
-        boundingBox: { x, y, width, height }
-      } = detectedCode
-
-      ctx.lineWidth = 2
-      ctx.strokeStyle = '#007bff'
-      ctx.strokeRect(x, y, width, height)
-    }
-  }
-
-  function onError(err) {
-    error.value = \`[\${err.name}]: \`
-
-    if (err.name === 'NotAllowedError') {
-      error.value += 'you need to grant camera access permission'
-    } else if (err.name === 'NotFoundError') {
-      error.value += 'no camera on this device'
-    } else if (err.name === 'NotSupportedError') {
-      error.value += 'secure context required (HTTPS, localhost)'
-    } else if (err.name === 'NotReadableError') {
-      error.value += 'is the camera already in use?'
-    } else if (err.name === 'OverconstrainedError') {
-      error.value += 'installed cameras are not suitable'
-    } else if (err.name === 'StreamApiNotSupportedError') {
-      error.value += 'Stream API is not supported in this browser'
-    } else if (err.name === 'InsecureContextError') {
-      error.value += 'Camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.'
-    } else {
-      error.value += err.message
-    }
-  }
-
-  function onDetect(detectedCodes) {
-    result.value = JSON.stringify(
-      detectedCodes.map(code => code.rawValue)
-    )
-  }
-
-  const app = createApp({
-    setup() {
-      return { result, error, onDetect, onError, paintBoundingBox }
-    }
-  })
-  app.use(VueQrcodeReader)
-  app.mount('#app')
-</script>
-</html>
`,5),l=[k];function t(p,e,E,r,d,g){return a(),i("div",null,l)}const o=s(h,[["render",t]]);export{F as __pageData,o as default}; diff --git a/pr-preview/pr-442/assets/demos_Simple.md.G-a-t5Hl.lean.js b/pr-preview/pr-442/assets/demos_Simple.md.G-a-t5Hl.lean.js deleted file mode 100644 index ee53c76a..00000000 --- a/pr-preview/pr-442/assets/demos_Simple.md.G-a-t5Hl.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,R as n}from"./chunks/framework.Bgy0wF8y.js";const F=JSON.parse('{"title":"Simple","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Simple.md","filePath":"demos/Simple.md","lastUpdated":1692216176000}'),h={name:"demos/Simple.md"},k=n("",5),l=[k];function t(p,e,E,r,d,g){return a(),i("div",null,l)}const o=s(h,[["render",t]]);export{F as __pageData,o as default}; diff --git a/pr-preview/pr-442/assets/demos_SwitchCamera.md.CsE5Ha3g.js b/pr-preview/pr-442/assets/demos_SwitchCamera.md.CsE5Ha3g.js deleted file mode 100644 index f56a2590..00000000 --- a/pr-preview/pr-442/assets/demos_SwitchCamera.md.CsE5Ha3g.js +++ /dev/null @@ -1,95 +0,0 @@ -import{_ as c}from"./chunks/camera.mAncAYbH.js";import{_ as y,f as F,D as E,o as t,c as l,e as r,I as e,w as d,k as a,d as C,a as m,R as u}from"./chunks/framework.Bgy0wF8y.js";import{_ as B}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const f={components:{QrcodeStream:B},data(){return{facingMode:"environment",noRearCamera:!1,noFrontCamera:!1}},methods:{switchCamera(){switch(this.facingMode){case"environment":this.facingMode="user";break;case"user":this.facingMode="environment";break}},onError(n){const s=this.facingMode==="user",p=this.facingMode==="environment",i=n.name==="OverconstrainedError";p&&i&&(this.noRearCamera=!0),s&&i&&(this.noFrontCamera=!0),console.error(n)},withBase:F}},D={key:0,class:"error"},A={key:1,class:"error"},_=["src"];function v(n,s,p,i,k,h){const g=E("qrcode-stream");return t(),l("div",null,[k.noFrontCamera?(t(),l("p",D," You don't seem to have a front camera on your device ")):r("",!0),k.noRearCamera?(t(),l("p",A," You don't seem to have a rear camera on your device ")):r("",!0),e(g,{constraints:{facingMode:k.facingMode},onError:h.onError},{default:d(()=>[a("button",{onClick:s[0]||(s[0]=(...o)=>h.switchCamera&&h.switchCamera(...o))},[a("img",{src:h.withBase("/camera-switch.svg"),alt:"switch camera"},null,8,_)])]),_:1},8,["constraints","onError"])])}const w=y(f,[["render",v],["__scopeId","data-v-6622b1c4"]]),q=a("h1",{id:"switch-to-front-camera",tabindex:"-1"},[m("Switch to Front Camera "),a("a",{class:"header-anchor",href:"#switch-to-front-camera","aria-label":'Permalink to "Switch to Front Camera"'},"​")],-1),b=a("p",null,"You can also allow users to choose the front or rear camera on their device.",-1),M=u(`

Source

vue
<template>
-  <div>
-    <p
-      class="error"
-      v-if="noFrontCamera"
-    >
-      You don't seem to have a front camera on your device
-    </p>
-
-    <p
-      class="error"
-      v-if="noRearCamera"
-    >
-      You don't seem to have a rear camera on your device
-    </p>
-
-    <qrcode-stream
-      :constraints="{ facingMode }"
-      @error="onError"
-    >
-      <button @click="switchCamera">
-        <img
-          :src="withBase('/camera-switch.svg')"
-          alt="switch camera"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      facingMode: 'environment',
-      noRearCamera: false,
-      noFrontCamera: false
-    }
-  },
-
-  methods: {
-    switchCamera() {
-      switch (this.facingMode) {
-        case 'environment':
-          this.facingMode = 'user'
-          break
-        case 'user':
-          this.facingMode = 'environment'
-          break
-      }
-    },
-
-    onError(error) {
-      const triedFrontCamera = this.facingMode === 'user'
-      const triedRearCamera = this.facingMode === 'environment'
-
-      const cameraMissingError = error.name === 'OverconstrainedError'
-
-      if (triedRearCamera && cameraMissingError) {
-        this.noRearCamera = true
-      }
-
-      if (triedFrontCamera && cameraMissingError) {
-        this.noFrontCamera = true
-      }
-
-      console.error(error)
-    },
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-button {
-  position: absolute;
-  left: 10px;
-  top: 10px;
-}
-button img {
-  width: 50px;
-  height: 50px;
-}
-.error {
-  color: red;
-  font-weight: bold;
-}
-</style>
`,2),O=JSON.parse('{"title":"Switch to Front Camera","description":"","frontmatter":{},"headers":[],"relativePath":"demos/SwitchCamera.md","filePath":"demos/SwitchCamera.md","lastUpdated":1621091954000}'),S={name:"demos/SwitchCamera.md"},V=C({...S,setup(n){return(s,p)=>{const i=E("ClientOnly");return t(),l("div",null,[q,b,e(i,null,{default:d(()=>[e(c,{component:w})]),_:1}),M])}}});export{O as __pageData,V as default}; diff --git a/pr-preview/pr-442/assets/demos_SwitchCamera.md.CsE5Ha3g.lean.js b/pr-preview/pr-442/assets/demos_SwitchCamera.md.CsE5Ha3g.lean.js deleted file mode 100644 index f56a2590..00000000 --- a/pr-preview/pr-442/assets/demos_SwitchCamera.md.CsE5Ha3g.lean.js +++ /dev/null @@ -1,95 +0,0 @@ -import{_ as c}from"./chunks/camera.mAncAYbH.js";import{_ as y,f as F,D as E,o as t,c as l,e as r,I as e,w as d,k as a,d as C,a as m,R as u}from"./chunks/framework.Bgy0wF8y.js";import{_ as B}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const f={components:{QrcodeStream:B},data(){return{facingMode:"environment",noRearCamera:!1,noFrontCamera:!1}},methods:{switchCamera(){switch(this.facingMode){case"environment":this.facingMode="user";break;case"user":this.facingMode="environment";break}},onError(n){const s=this.facingMode==="user",p=this.facingMode==="environment",i=n.name==="OverconstrainedError";p&&i&&(this.noRearCamera=!0),s&&i&&(this.noFrontCamera=!0),console.error(n)},withBase:F}},D={key:0,class:"error"},A={key:1,class:"error"},_=["src"];function v(n,s,p,i,k,h){const g=E("qrcode-stream");return t(),l("div",null,[k.noFrontCamera?(t(),l("p",D," You don't seem to have a front camera on your device ")):r("",!0),k.noRearCamera?(t(),l("p",A," You don't seem to have a rear camera on your device ")):r("",!0),e(g,{constraints:{facingMode:k.facingMode},onError:h.onError},{default:d(()=>[a("button",{onClick:s[0]||(s[0]=(...o)=>h.switchCamera&&h.switchCamera(...o))},[a("img",{src:h.withBase("/camera-switch.svg"),alt:"switch camera"},null,8,_)])]),_:1},8,["constraints","onError"])])}const w=y(f,[["render",v],["__scopeId","data-v-6622b1c4"]]),q=a("h1",{id:"switch-to-front-camera",tabindex:"-1"},[m("Switch to Front Camera "),a("a",{class:"header-anchor",href:"#switch-to-front-camera","aria-label":'Permalink to "Switch to Front Camera"'},"​")],-1),b=a("p",null,"You can also allow users to choose the front or rear camera on their device.",-1),M=u(`

Source

vue
<template>
-  <div>
-    <p
-      class="error"
-      v-if="noFrontCamera"
-    >
-      You don't seem to have a front camera on your device
-    </p>
-
-    <p
-      class="error"
-      v-if="noRearCamera"
-    >
-      You don't seem to have a rear camera on your device
-    </p>
-
-    <qrcode-stream
-      :constraints="{ facingMode }"
-      @error="onError"
-    >
-      <button @click="switchCamera">
-        <img
-          :src="withBase('/camera-switch.svg')"
-          alt="switch camera"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      facingMode: 'environment',
-      noRearCamera: false,
-      noFrontCamera: false
-    }
-  },
-
-  methods: {
-    switchCamera() {
-      switch (this.facingMode) {
-        case 'environment':
-          this.facingMode = 'user'
-          break
-        case 'user':
-          this.facingMode = 'environment'
-          break
-      }
-    },
-
-    onError(error) {
-      const triedFrontCamera = this.facingMode === 'user'
-      const triedRearCamera = this.facingMode === 'environment'
-
-      const cameraMissingError = error.name === 'OverconstrainedError'
-
-      if (triedRearCamera && cameraMissingError) {
-        this.noRearCamera = true
-      }
-
-      if (triedFrontCamera && cameraMissingError) {
-        this.noFrontCamera = true
-      }
-
-      console.error(error)
-    },
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-button {
-  position: absolute;
-  left: 10px;
-  top: 10px;
-}
-button img {
-  width: 50px;
-  height: 50px;
-}
-.error {
-  color: red;
-  font-weight: bold;
-}
-</style>
`,2),O=JSON.parse('{"title":"Switch to Front Camera","description":"","frontmatter":{},"headers":[],"relativePath":"demos/SwitchCamera.md","filePath":"demos/SwitchCamera.md","lastUpdated":1621091954000}'),S={name:"demos/SwitchCamera.md"},V=C({...S,setup(n){return(s,p)=>{const i=E("ClientOnly");return t(),l("div",null,[q,b,e(i,null,{default:d(()=>[e(c,{component:w})]),_:1}),M])}}});export{O as __pageData,V as default}; diff --git a/pr-preview/pr-442/assets/demos_Torch.md.BvBd56EY.js b/pr-preview/pr-442/assets/demos_Torch.md.BvBd56EY.js deleted file mode 100644 index 972bcfd4..00000000 --- a/pr-preview/pr-442/assets/demos_Torch.md.BvBd56EY.js +++ /dev/null @@ -1,97 +0,0 @@ -import{_ as B}from"./chunks/camera.mAncAYbH.js";import{d as c,h as E,j as v,g as A,o as l,c as p,k as s,a as e,a4 as D,a5 as m,F as f,E as _,e as d,a8 as q,t as b,b as w,w as o,m as g,f as x,_ as N,D as S,I as y,R as I}from"./chunks/framework.Bgy0wF8y.js";import{_ as T}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const $=["value"],M={key:0,class:"error"},O=["disabled"],P=["src"],V=c({__name:"Torch",setup(F){const i=E(null),h=E([]);v(async()=>{h.value=(await navigator.mediaDevices.enumerateDevices()).filter(({kind:t})=>t==="videoinput"),h.value.length>0&&(i.value=h.value[0])});const a=E(!1),r=E(!1),u=A(()=>a.value?"/flash-off.svg":"/flash-on.svg");function C(t){console.log(t),r.value=!t.torch}return(t,k)=>(l(),p("div",null,[s("p",null,[e(" Pick camera: "),D(s("select",{"onUpdate:modelValue":k[0]||(k[0]=n=>i.value=n)},[(l(!0),p(f,null,_(h.value,n=>(l(),p("option",{key:n.label,value:n},b(n.label),9,$))),128))],512),[[m,i.value]])]),r.value?(l(),p("p",M," Torch not supported for active camera ")):d("",!0),i.value!==null?q([a.value,i.value.deviceId],()=>(l(),w(g(T),{key:1,torch:a.value,constraints:{deviceId:i.value.deviceId},onError:console.error,onCameraOn:C},{default:o(()=>[s("button",{onClick:k[1]||(k[1]=n=>a.value=!a.value),disabled:r.value},[s("img",{src:g(x)(u.value),alt:"toggle torch"},null,8,P)],8,O)]),_:1},8,["torch","constraints","onError"])),k,2):d("",!0)]))}}),U=N(V,[["__scopeId","data-v-cf37801d"]]),j=s("h1",{id:"torch-flashlight",tabindex:"-1"},[e("Torch (Flashlight) "),s("a",{class:"header-anchor",href:"#torch-flashlight","aria-label":'Permalink to "Torch (Flashlight)"'},"​")],-1),J=s("p",null,[e("In low-light conditions you might want to make use of the cameras flashlight. Using the "),s("code",null,"torch"),e(" prop, you can turn the flashlight on/off. Note that support is inconsistent across devices and browsers and can only be detected after already starting the camera.")],-1),L=s("p",null,[e("Feature sponsored by "),s("a",{href:"https://aeschbacher.ch",target:"_blank",rel:"noreferrer"},"aeschbacher.ch")],-1),Q=I(`

Source

vue
<template>
-  <div>
-    <p>
-      Pick camera:
-      <select v-model="selected">
-        <option
-          v-for="device in devices"
-          :key="device.label"
-          :value="device"
-        >
-          {{ device.label }}
-        </option>
-      </select>
-    </p>
-
-    <p
-      v-if="torchNotSupported"
-      class="error"
-    >
-      Torch not supported for active camera
-    </p>
-
-    <qrcode-stream
-      :torch="torchActive"
-      :constraints="{ deviceId: selected.deviceId }"
-      v-if="selected !== null"
-      @error="console.error"
-      @camera-on="onCameraOn"
-      v-memo="[torchActive, selected.deviceId]"
-    >
-      <button
-        @click="torchActive = !torchActive"
-        :disabled="torchNotSupported"
-      >
-        <img
-          :src="withBase(icon)"
-          alt="toggle torch"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script setup lang="ts">
-import { ref, onMounted, computed } from 'vue'
-import { withBase } from 'vitepress'
-import { QrcodeStream } from '../../../../src'
-
-const selected = ref(null as MediaDeviceInfo | null)
-const devices = ref([] as MediaDeviceInfo[])
-
-onMounted(async () => {
-  devices.value = (await navigator.mediaDevices.enumerateDevices()).filter(
-    ({ kind }) => kind === 'videoinput'
-  )
-
-  if (devices.value.length > 0) {
-    selected.value = devices.value[0]
-  }
-})
-
-const torchActive = ref(false)
-const torchNotSupported = ref(false)
-
-const icon = computed(() => {
-  if (torchActive.value) {
-    return '/flash-off.svg'
-  } else {
-    return '/flash-on.svg'
-  }
-})
-
-function onCameraOn(capabilities) {
-  console.log(capabilities)
-  torchNotSupported.value = !capabilities.torch
-}
-
-function onError(err) {
-  console.error(err)
-}
-</script>
-
-<style scoped>
-button {
-  position: absolute;
-  left: 10px;
-  top: 10px;
-}
-button img {
-  width: 50px;
-  height: 50px;
-}
-.error {
-  color: red;
-  font-weight: bold;
-}
-</style>
`,2),K=JSON.parse('{"title":"Torch (Flashlight)","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Torch.md","filePath":"demos/Torch.md","lastUpdated":1688667092000}'),R={name:"demos/Torch.md"},W=c({...R,setup(F){return(i,h)=>{const a=S("ClientOnly");return l(),p("div",null,[j,J,L,y(a,null,{default:o(()=>[y(B,{component:U})]),_:1}),Q])}}});export{K as __pageData,W as default}; diff --git a/pr-preview/pr-442/assets/demos_Torch.md.BvBd56EY.lean.js b/pr-preview/pr-442/assets/demos_Torch.md.BvBd56EY.lean.js deleted file mode 100644 index 972bcfd4..00000000 --- a/pr-preview/pr-442/assets/demos_Torch.md.BvBd56EY.lean.js +++ /dev/null @@ -1,97 +0,0 @@ -import{_ as B}from"./chunks/camera.mAncAYbH.js";import{d as c,h as E,j as v,g as A,o as l,c as p,k as s,a as e,a4 as D,a5 as m,F as f,E as _,e as d,a8 as q,t as b,b as w,w as o,m as g,f as x,_ as N,D as S,I as y,R as I}from"./chunks/framework.Bgy0wF8y.js";import{_ as T}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";const $=["value"],M={key:0,class:"error"},O=["disabled"],P=["src"],V=c({__name:"Torch",setup(F){const i=E(null),h=E([]);v(async()=>{h.value=(await navigator.mediaDevices.enumerateDevices()).filter(({kind:t})=>t==="videoinput"),h.value.length>0&&(i.value=h.value[0])});const a=E(!1),r=E(!1),u=A(()=>a.value?"/flash-off.svg":"/flash-on.svg");function C(t){console.log(t),r.value=!t.torch}return(t,k)=>(l(),p("div",null,[s("p",null,[e(" Pick camera: "),D(s("select",{"onUpdate:modelValue":k[0]||(k[0]=n=>i.value=n)},[(l(!0),p(f,null,_(h.value,n=>(l(),p("option",{key:n.label,value:n},b(n.label),9,$))),128))],512),[[m,i.value]])]),r.value?(l(),p("p",M," Torch not supported for active camera ")):d("",!0),i.value!==null?q([a.value,i.value.deviceId],()=>(l(),w(g(T),{key:1,torch:a.value,constraints:{deviceId:i.value.deviceId},onError:console.error,onCameraOn:C},{default:o(()=>[s("button",{onClick:k[1]||(k[1]=n=>a.value=!a.value),disabled:r.value},[s("img",{src:g(x)(u.value),alt:"toggle torch"},null,8,P)],8,O)]),_:1},8,["torch","constraints","onError"])),k,2):d("",!0)]))}}),U=N(V,[["__scopeId","data-v-cf37801d"]]),j=s("h1",{id:"torch-flashlight",tabindex:"-1"},[e("Torch (Flashlight) "),s("a",{class:"header-anchor",href:"#torch-flashlight","aria-label":'Permalink to "Torch (Flashlight)"'},"​")],-1),J=s("p",null,[e("In low-light conditions you might want to make use of the cameras flashlight. Using the "),s("code",null,"torch"),e(" prop, you can turn the flashlight on/off. Note that support is inconsistent across devices and browsers and can only be detected after already starting the camera.")],-1),L=s("p",null,[e("Feature sponsored by "),s("a",{href:"https://aeschbacher.ch",target:"_blank",rel:"noreferrer"},"aeschbacher.ch")],-1),Q=I(`

Source

vue
<template>
-  <div>
-    <p>
-      Pick camera:
-      <select v-model="selected">
-        <option
-          v-for="device in devices"
-          :key="device.label"
-          :value="device"
-        >
-          {{ device.label }}
-        </option>
-      </select>
-    </p>
-
-    <p
-      v-if="torchNotSupported"
-      class="error"
-    >
-      Torch not supported for active camera
-    </p>
-
-    <qrcode-stream
-      :torch="torchActive"
-      :constraints="{ deviceId: selected.deviceId }"
-      v-if="selected !== null"
-      @error="console.error"
-      @camera-on="onCameraOn"
-      v-memo="[torchActive, selected.deviceId]"
-    >
-      <button
-        @click="torchActive = !torchActive"
-        :disabled="torchNotSupported"
-      >
-        <img
-          :src="withBase(icon)"
-          alt="toggle torch"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script setup lang="ts">
-import { ref, onMounted, computed } from 'vue'
-import { withBase } from 'vitepress'
-import { QrcodeStream } from '../../../../src'
-
-const selected = ref(null as MediaDeviceInfo | null)
-const devices = ref([] as MediaDeviceInfo[])
-
-onMounted(async () => {
-  devices.value = (await navigator.mediaDevices.enumerateDevices()).filter(
-    ({ kind }) => kind === 'videoinput'
-  )
-
-  if (devices.value.length > 0) {
-    selected.value = devices.value[0]
-  }
-})
-
-const torchActive = ref(false)
-const torchNotSupported = ref(false)
-
-const icon = computed(() => {
-  if (torchActive.value) {
-    return '/flash-off.svg'
-  } else {
-    return '/flash-on.svg'
-  }
-})
-
-function onCameraOn(capabilities) {
-  console.log(capabilities)
-  torchNotSupported.value = !capabilities.torch
-}
-
-function onError(err) {
-  console.error(err)
-}
-</script>
-
-<style scoped>
-button {
-  position: absolute;
-  left: 10px;
-  top: 10px;
-}
-button img {
-  width: 50px;
-  height: 50px;
-}
-.error {
-  color: red;
-  font-weight: bold;
-}
-</style>
`,2),K=JSON.parse('{"title":"Torch (Flashlight)","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Torch.md","filePath":"demos/Torch.md","lastUpdated":1688667092000}'),R={name:"demos/Torch.md"},W=c({...R,setup(F){return(i,h)=>{const a=S("ClientOnly");return l(),p("div",null,[j,J,L,y(a,null,{default:o(()=>[y(B,{component:U})]),_:1}),Q])}}});export{K as __pageData,W as default}; diff --git a/pr-preview/pr-442/assets/demos_Upload.md.TStSOs7i.js b/pr-preview/pr-442/assets/demos_Upload.md.TStSOs7i.js deleted file mode 100644 index 6450ef4a..00000000 --- a/pr-preview/pr-442/assets/demos_Upload.md.TStSOs7i.js +++ /dev/null @@ -1,57 +0,0 @@ -import{p as y,_ as u}from"./chunks/camera.mAncAYbH.js";import{d as c,o as e,c as p,_ as F,D as g,k as s,a as h,a4 as m,a5 as C,F as _,E as f,t as o,I as d,w as D,R as B}from"./chunks/framework.Bgy0wF8y.js";const v=c({__name:"QrcodeCapture",props:{formats:{type:Array,default:()=>["qr_code"]}},emits:["detect"],setup(i,{emit:a}){const r=i,k=a,n=l=>{if(!(!(l.target instanceof HTMLInputElement)||!l.target.files))for(const E of Array.from(l.target.files))y(E,r.formats).then(t=>{k("detect",t)})};return(l,E)=>(e(),p("input",{onChange:n,type:"file",name:"image",accept:"image/*",capture:"environment",multiple:""},null,32))}}),A={components:{QrcodeCapture:v},data(){const i=[{text:"rear camera (default)",value:"environment"},{text:"front camera",value:"user"},{text:"force file dialog",value:null}];return{result:"",options:i,selected:i[0]}},methods:{onDetect(i){console.log(i),this.result=JSON.stringify(i.map(a=>a.rawValue))}}},b=["value"],q=s("hr",null,null,-1),x={class:"decode-result"};function w(i,a,r,k,n,l){const E=g("qrcode-capture");return e(),p("div",null,[s("p",null,[h(" Capture: "),m(s("select",{"onUpdate:modelValue":a[0]||(a[0]=t=>n.selected=t)},[(e(!0),p(_,null,f(n.options,t=>(e(),p("option",{key:t.text,value:t},o(t.text),9,b))),128))],512),[[C,n.selected]])]),q,s("p",x,[h(" Last result: "),s("b",null,o(n.result),1)]),d(E,{onDetect:l.onDetect,capture:n.selected.value},null,8,["onDetect","capture"])])}const S=F(A,[["render",w]]),U=s("h1",{id:"decode-by-upload",tabindex:"-1"},[h("Decode by Upload "),s("a",{class:"header-anchor",href:"#decode-by-upload","aria-label":'Permalink to "Decode by Upload"'},"​")],-1),N=s("p",null,[h("Finally, with "),s("code",null,"QrcodeCapture"),h(" comes another component which allows image scanning via classic file upload. Nothing is actually uploaded. Everything is happening client-side.")],-1),V=s("p",null,"If you are on mobile and your browser supports it, you are not prompted with a file dialog but with your camera. So you can directly take the picture to be uploaded. Adjust this behavior with the following dropdown:",-1),O=B(`

Source

vue
<template>
-  <div>
-    <p>
-      Capture:
-      <select v-model="selected">
-        <option
-          v-for="option in options"
-          :key="option.text"
-          :value="option"
-        >
-          {{ option.text }}
-        </option>
-      </select>
-    </p>
-
-    <hr />
-
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-capture
-      @detect="onDetect"
-      :capture="selected.value"
-    />
-  </div>
-</template>
-
-<script>
-import { QrcodeCapture } from '../../../../src'
-
-export default {
-  components: { QrcodeCapture },
-
-  data() {
-    const options = [
-      { text: 'rear camera (default)', value: 'environment' },
-      { text: 'front camera', value: 'user' },
-      { text: 'force file dialog', value: null }
-    ]
-
-    return {
-      result: '',
-      options,
-      selected: options[0]
-    }
-  },
-
-  methods: {
-    onDetect(detectedCodes) {
-      console.log(detectedCodes)
-
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-    }
-  }
-}
-</script>
`,2),P=JSON.parse('{"title":"Decode by Upload","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Upload.md","filePath":"demos/Upload.md","lastUpdated":1703524587000}'),Q={name:"demos/Upload.md"},$=c({...Q,setup(i){return(a,r)=>{const k=g("ClientOnly");return e(),p("div",null,[U,N,V,d(k,null,{default:D(()=>[d(u,{component:S})]),_:1}),O])}}});export{P as __pageData,$ as default}; diff --git a/pr-preview/pr-442/assets/demos_Upload.md.TStSOs7i.lean.js b/pr-preview/pr-442/assets/demos_Upload.md.TStSOs7i.lean.js deleted file mode 100644 index 6450ef4a..00000000 --- a/pr-preview/pr-442/assets/demos_Upload.md.TStSOs7i.lean.js +++ /dev/null @@ -1,57 +0,0 @@ -import{p as y,_ as u}from"./chunks/camera.mAncAYbH.js";import{d as c,o as e,c as p,_ as F,D as g,k as s,a as h,a4 as m,a5 as C,F as _,E as f,t as o,I as d,w as D,R as B}from"./chunks/framework.Bgy0wF8y.js";const v=c({__name:"QrcodeCapture",props:{formats:{type:Array,default:()=>["qr_code"]}},emits:["detect"],setup(i,{emit:a}){const r=i,k=a,n=l=>{if(!(!(l.target instanceof HTMLInputElement)||!l.target.files))for(const E of Array.from(l.target.files))y(E,r.formats).then(t=>{k("detect",t)})};return(l,E)=>(e(),p("input",{onChange:n,type:"file",name:"image",accept:"image/*",capture:"environment",multiple:""},null,32))}}),A={components:{QrcodeCapture:v},data(){const i=[{text:"rear camera (default)",value:"environment"},{text:"front camera",value:"user"},{text:"force file dialog",value:null}];return{result:"",options:i,selected:i[0]}},methods:{onDetect(i){console.log(i),this.result=JSON.stringify(i.map(a=>a.rawValue))}}},b=["value"],q=s("hr",null,null,-1),x={class:"decode-result"};function w(i,a,r,k,n,l){const E=g("qrcode-capture");return e(),p("div",null,[s("p",null,[h(" Capture: "),m(s("select",{"onUpdate:modelValue":a[0]||(a[0]=t=>n.selected=t)},[(e(!0),p(_,null,f(n.options,t=>(e(),p("option",{key:t.text,value:t},o(t.text),9,b))),128))],512),[[C,n.selected]])]),q,s("p",x,[h(" Last result: "),s("b",null,o(n.result),1)]),d(E,{onDetect:l.onDetect,capture:n.selected.value},null,8,["onDetect","capture"])])}const S=F(A,[["render",w]]),U=s("h1",{id:"decode-by-upload",tabindex:"-1"},[h("Decode by Upload "),s("a",{class:"header-anchor",href:"#decode-by-upload","aria-label":'Permalink to "Decode by Upload"'},"​")],-1),N=s("p",null,[h("Finally, with "),s("code",null,"QrcodeCapture"),h(" comes another component which allows image scanning via classic file upload. Nothing is actually uploaded. Everything is happening client-side.")],-1),V=s("p",null,"If you are on mobile and your browser supports it, you are not prompted with a file dialog but with your camera. So you can directly take the picture to be uploaded. Adjust this behavior with the following dropdown:",-1),O=B(`

Source

vue
<template>
-  <div>
-    <p>
-      Capture:
-      <select v-model="selected">
-        <option
-          v-for="option in options"
-          :key="option.text"
-          :value="option"
-        >
-          {{ option.text }}
-        </option>
-      </select>
-    </p>
-
-    <hr />
-
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-capture
-      @detect="onDetect"
-      :capture="selected.value"
-    />
-  </div>
-</template>
-
-<script>
-import { QrcodeCapture } from '../../../../src'
-
-export default {
-  components: { QrcodeCapture },
-
-  data() {
-    const options = [
-      { text: 'rear camera (default)', value: 'environment' },
-      { text: 'front camera', value: 'user' },
-      { text: 'force file dialog', value: null }
-    ]
-
-    return {
-      result: '',
-      options,
-      selected: options[0]
-    }
-  },
-
-  methods: {
-    onDetect(detectedCodes) {
-      console.log(detectedCodes)
-
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-    }
-  }
-}
-</script>
`,2),P=JSON.parse('{"title":"Decode by Upload","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Upload.md","filePath":"demos/Upload.md","lastUpdated":1703524587000}'),Q={name:"demos/Upload.md"},$=c({...Q,setup(i){return(a,r)=>{const k=g("ClientOnly");return e(),p("div",null,[U,N,V,d(k,null,{default:D(()=>[d(u,{component:S})]),_:1}),O])}}});export{P as __pageData,$ as default}; diff --git a/pr-preview/pr-442/assets/demos_Validate.md.DnbsXjY7.js b/pr-preview/pr-442/assets/demos_Validate.md.DnbsXjY7.js deleted file mode 100644 index 992537c4..00000000 --- a/pr-preview/pr-442/assets/demos_Validate.md.DnbsXjY7.js +++ /dev/null @@ -1,119 +0,0 @@ -import{_ as c}from"./chunks/camera.mAncAYbH.js";import{_ as F}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";import{_ as o,D as E,o as a,c as n,k as l,a as r,t as C,I as k,w as d,e as t,d as u,R as B}from"./chunks/framework.Bgy0wF8y.js";const m={components:{QrcodeStream:F},data(){return{isValid:void 0,paused:!1,result:null}},computed:{validationPending(){return this.isValid===void 0&&this.paused},validationSuccess(){return this.isValid===!0},validationFailure(){return this.isValid===!1}},methods:{onError:console.error,resetValidationState(){this.isValid=void 0},async onDetect([i]){this.result=i.rawValue,this.paused=!0,await this.timeout(3e3),this.isValid=this.result.startsWith("http"),await this.timeout(2e3),this.paused=!1},timeout(i){return new Promise(h=>{window.setTimeout(h,i)})}}},D={class:"decode-result"},v={key:0,class:"validation-success"},A={key:1,class:"validation-failure"},_={key:2,class:"validation-pending"};function f(i,h,g,p,e,s){const y=E("qrcode-stream");return a(),n("div",null,[l("p",D,[r(" Last result: "),l("b",null,C(e.result),1)]),k(y,{paused:e.paused,onDetect:s.onDetect,onError:s.onError,onCameraOn:s.resetValidationState},{default:d(()=>[s.validationSuccess?(a(),n("div",v," This is a URL ")):t("",!0),s.validationFailure?(a(),n("div",A," This is NOT a URL! ")):t("",!0),s.validationPending?(a(),n("div",_," Long validation in progress... ")):t("",!0)]),_:1},8,["paused","onDetect","onError","onCameraOn"])])}const V=o(m,[["render",f],["__scopeId","data-v-2a6ebd39"]]),q=l("h1",{id:"pause-validate",tabindex:"-1"},[r("Pause & Validate "),l("a",{class:"header-anchor",href:"#pause-validate","aria-label":'Permalink to "Pause & Validate"'},"​")],-1),w=l("p",null,"By pausing you can process each scanned QR-code one at a time. The last received frame is still displayed so it just looks like the stream is paused.",-1),b=B(`

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-stream
-      :paused="paused"
-      @detect="onDetect"
-      @error="onError"
-      @camera-on="resetValidationState"
-    >
-      <div
-        v-if="validationSuccess"
-        class="validation-success"
-      >
-        This is a URL
-      </div>
-
-      <div
-        v-if="validationFailure"
-        class="validation-failure"
-      >
-        This is NOT a URL!
-      </div>
-
-      <div
-        v-if="validationPending"
-        class="validation-pending"
-      >
-        Long validation in progress...
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      isValid: undefined,
-      paused: false,
-      result: null
-    }
-  },
-
-  computed: {
-    validationPending() {
-      return this.isValid === undefined && this.paused
-    },
-
-    validationSuccess() {
-      return this.isValid === true
-    },
-
-    validationFailure() {
-      return this.isValid === false
-    }
-  },
-
-  methods: {
-    onError: console.error,
-
-    resetValidationState() {
-      this.isValid = undefined
-    },
-
-    async onDetect([firstDetectedCode]) {
-      this.result = firstDetectedCode.rawValue
-      this.paused = true
-
-      // pretend it's taking really long
-      await this.timeout(3000)
-      this.isValid = this.result.startsWith('http')
-
-      // some more delay, so users have time to read the message
-      await this.timeout(2000)
-      this.paused = false
-    },
-
-    timeout(ms) {
-      return new Promise((resolve) => {
-        window.setTimeout(resolve, ms)
-      })
-    }
-  }
-}
-</script>
-
-<style scoped>
-.validation-success,
-.validation-failure,
-.validation-pending {
-  position: absolute;
-  width: 100%;
-  height: 100%;
-
-  background-color: rgba(255, 255, 255, 0.8);
-  padding: 10px;
-  text-align: center;
-  font-weight: bold;
-  font-size: 1.4rem;
-  color: black;
-
-  display: flex;
-  flex-flow: column nowrap;
-  justify-content: center;
-}
-.validation-success {
-  color: green;
-}
-.validation-failure {
-  color: red;
-}
-</style>
`,2),L=JSON.parse('{"title":"Pause & Validate","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Validate.md","filePath":"demos/Validate.md","lastUpdated":1688836566000}'),S={name:"demos/Validate.md"},N=u({...S,setup(i){return(h,g)=>{const p=E("ClientOnly");return a(),n("div",null,[q,w,k(p,null,{default:d(()=>[k(c,{component:V})]),_:1}),b])}}});export{L as __pageData,N as default}; diff --git a/pr-preview/pr-442/assets/demos_Validate.md.DnbsXjY7.lean.js b/pr-preview/pr-442/assets/demos_Validate.md.DnbsXjY7.lean.js deleted file mode 100644 index 992537c4..00000000 --- a/pr-preview/pr-442/assets/demos_Validate.md.DnbsXjY7.lean.js +++ /dev/null @@ -1,119 +0,0 @@ -import{_ as c}from"./chunks/camera.mAncAYbH.js";import{_ as F}from"./chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js";import{_ as o,D as E,o as a,c as n,k as l,a as r,t as C,I as k,w as d,e as t,d as u,R as B}from"./chunks/framework.Bgy0wF8y.js";const m={components:{QrcodeStream:F},data(){return{isValid:void 0,paused:!1,result:null}},computed:{validationPending(){return this.isValid===void 0&&this.paused},validationSuccess(){return this.isValid===!0},validationFailure(){return this.isValid===!1}},methods:{onError:console.error,resetValidationState(){this.isValid=void 0},async onDetect([i]){this.result=i.rawValue,this.paused=!0,await this.timeout(3e3),this.isValid=this.result.startsWith("http"),await this.timeout(2e3),this.paused=!1},timeout(i){return new Promise(h=>{window.setTimeout(h,i)})}}},D={class:"decode-result"},v={key:0,class:"validation-success"},A={key:1,class:"validation-failure"},_={key:2,class:"validation-pending"};function f(i,h,g,p,e,s){const y=E("qrcode-stream");return a(),n("div",null,[l("p",D,[r(" Last result: "),l("b",null,C(e.result),1)]),k(y,{paused:e.paused,onDetect:s.onDetect,onError:s.onError,onCameraOn:s.resetValidationState},{default:d(()=>[s.validationSuccess?(a(),n("div",v," This is a URL ")):t("",!0),s.validationFailure?(a(),n("div",A," This is NOT a URL! ")):t("",!0),s.validationPending?(a(),n("div",_," Long validation in progress... ")):t("",!0)]),_:1},8,["paused","onDetect","onError","onCameraOn"])])}const V=o(m,[["render",f],["__scopeId","data-v-2a6ebd39"]]),q=l("h1",{id:"pause-validate",tabindex:"-1"},[r("Pause & Validate "),l("a",{class:"header-anchor",href:"#pause-validate","aria-label":'Permalink to "Pause & Validate"'},"​")],-1),w=l("p",null,"By pausing you can process each scanned QR-code one at a time. The last received frame is still displayed so it just looks like the stream is paused.",-1),b=B(`

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-stream
-      :paused="paused"
-      @detect="onDetect"
-      @error="onError"
-      @camera-on="resetValidationState"
-    >
-      <div
-        v-if="validationSuccess"
-        class="validation-success"
-      >
-        This is a URL
-      </div>
-
-      <div
-        v-if="validationFailure"
-        class="validation-failure"
-      >
-        This is NOT a URL!
-      </div>
-
-      <div
-        v-if="validationPending"
-        class="validation-pending"
-      >
-        Long validation in progress...
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      isValid: undefined,
-      paused: false,
-      result: null
-    }
-  },
-
-  computed: {
-    validationPending() {
-      return this.isValid === undefined && this.paused
-    },
-
-    validationSuccess() {
-      return this.isValid === true
-    },
-
-    validationFailure() {
-      return this.isValid === false
-    }
-  },
-
-  methods: {
-    onError: console.error,
-
-    resetValidationState() {
-      this.isValid = undefined
-    },
-
-    async onDetect([firstDetectedCode]) {
-      this.result = firstDetectedCode.rawValue
-      this.paused = true
-
-      // pretend it's taking really long
-      await this.timeout(3000)
-      this.isValid = this.result.startsWith('http')
-
-      // some more delay, so users have time to read the message
-      await this.timeout(2000)
-      this.paused = false
-    },
-
-    timeout(ms) {
-      return new Promise((resolve) => {
-        window.setTimeout(resolve, ms)
-      })
-    }
-  }
-}
-</script>
-
-<style scoped>
-.validation-success,
-.validation-failure,
-.validation-pending {
-  position: absolute;
-  width: 100%;
-  height: 100%;
-
-  background-color: rgba(255, 255, 255, 0.8);
-  padding: 10px;
-  text-align: center;
-  font-weight: bold;
-  font-size: 1.4rem;
-  color: black;
-
-  display: flex;
-  flex-flow: column nowrap;
-  justify-content: center;
-}
-.validation-success {
-  color: green;
-}
-.validation-failure {
-  color: red;
-}
-</style>
`,2),L=JSON.parse('{"title":"Pause & Validate","description":"","frontmatter":{},"headers":[],"relativePath":"demos/Validate.md","filePath":"demos/Validate.md","lastUpdated":1688836566000}'),S={name:"demos/Validate.md"},N=u({...S,setup(i){return(h,g)=>{const p=E("ClientOnly");return a(),n("div",null,[q,w,k(p,null,{default:d(()=>[k(c,{component:V})]),_:1}),b])}}});export{L as __pageData,N as default}; diff --git a/pr-preview/pr-442/assets/index.md.B7Kjx8aZ.js b/pr-preview/pr-442/assets/index.md.B7Kjx8aZ.js deleted file mode 100644 index b0d28609..00000000 --- a/pr-preview/pr-442/assets/index.md.B7Kjx8aZ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o}from"./chunks/framework.Bgy0wF8y.js";const p=JSON.parse('{"title":"","titleTemplate":":title","description":"","frontmatter":{"layout":"home","titleTemplate":":title","hero":{"name":"Vue Qrcode Reader","tagline":"A set of Vue.js components for detecting and decoding QR codes.","image":{"src":"/logo.png","alt":"VueQrcodeReader"},"actions":[{"theme":"brand","text":"See Demos →","link":"/demos/FullDemo"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/gruhn/vue-qrcode-reader"}]}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1707952687000}'),a={name:"index.md"};function n(r,d,i,s,c,l){return o(),t("div")}const u=e(a,[["render",n]]);export{p as __pageData,u as default}; diff --git a/pr-preview/pr-442/assets/index.md.B7Kjx8aZ.lean.js b/pr-preview/pr-442/assets/index.md.B7Kjx8aZ.lean.js deleted file mode 100644 index b0d28609..00000000 --- a/pr-preview/pr-442/assets/index.md.B7Kjx8aZ.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o}from"./chunks/framework.Bgy0wF8y.js";const p=JSON.parse('{"title":"","titleTemplate":":title","description":"","frontmatter":{"layout":"home","titleTemplate":":title","hero":{"name":"Vue Qrcode Reader","tagline":"A set of Vue.js components for detecting and decoding QR codes.","image":{"src":"/logo.png","alt":"VueQrcodeReader"},"actions":[{"theme":"brand","text":"See Demos →","link":"/demos/FullDemo"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/gruhn/vue-qrcode-reader"}]}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1707952687000}'),a={name:"index.md"};function n(r,d,i,s,c,l){return o(),t("div")}const u=e(a,[["render",n]]);export{p as __pageData,u as default}; diff --git a/pr-preview/pr-442/assets/inter-italic-cyrillic-ext.5XJwZIOp.woff2 b/pr-preview/pr-442/assets/inter-italic-cyrillic-ext.5XJwZIOp.woff2 deleted file mode 100644 index 2a687296..00000000 Binary files a/pr-preview/pr-442/assets/inter-italic-cyrillic-ext.5XJwZIOp.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-italic-cyrillic.D6csxwjC.woff2 b/pr-preview/pr-442/assets/inter-italic-cyrillic.D6csxwjC.woff2 deleted file mode 100644 index f6403515..00000000 Binary files a/pr-preview/pr-442/assets/inter-italic-cyrillic.D6csxwjC.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-italic-greek-ext.CHOfFY1k.woff2 b/pr-preview/pr-442/assets/inter-italic-greek-ext.CHOfFY1k.woff2 deleted file mode 100644 index 00218960..00000000 Binary files a/pr-preview/pr-442/assets/inter-italic-greek-ext.CHOfFY1k.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-italic-greek.9J96vYpw.woff2 b/pr-preview/pr-442/assets/inter-italic-greek.9J96vYpw.woff2 deleted file mode 100644 index 71c265f8..00000000 Binary files a/pr-preview/pr-442/assets/inter-italic-greek.9J96vYpw.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-italic-latin-ext.BGcWXLrn.woff2 b/pr-preview/pr-442/assets/inter-italic-latin-ext.BGcWXLrn.woff2 deleted file mode 100644 index 9c1b9440..00000000 Binary files a/pr-preview/pr-442/assets/inter-italic-latin-ext.BGcWXLrn.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-italic-latin.DbsTr1gm.woff2 b/pr-preview/pr-442/assets/inter-italic-latin.DbsTr1gm.woff2 deleted file mode 100644 index 01fcf207..00000000 Binary files a/pr-preview/pr-442/assets/inter-italic-latin.DbsTr1gm.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-italic-vietnamese.DHNAd7Wr.woff2 b/pr-preview/pr-442/assets/inter-italic-vietnamese.DHNAd7Wr.woff2 deleted file mode 100644 index e4f788ee..00000000 Binary files a/pr-preview/pr-442/assets/inter-italic-vietnamese.DHNAd7Wr.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-roman-cyrillic-ext.DxP3Awbn.woff2 b/pr-preview/pr-442/assets/inter-roman-cyrillic-ext.DxP3Awbn.woff2 deleted file mode 100644 index 28593ccb..00000000 Binary files a/pr-preview/pr-442/assets/inter-roman-cyrillic-ext.DxP3Awbn.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-roman-cyrillic.CMhn1ESj.woff2 b/pr-preview/pr-442/assets/inter-roman-cyrillic.CMhn1ESj.woff2 deleted file mode 100644 index a20adc16..00000000 Binary files a/pr-preview/pr-442/assets/inter-roman-cyrillic.CMhn1ESj.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-roman-greek-ext.D0mI3NpI.woff2 b/pr-preview/pr-442/assets/inter-roman-greek-ext.D0mI3NpI.woff2 deleted file mode 100644 index e3b0be76..00000000 Binary files a/pr-preview/pr-442/assets/inter-roman-greek-ext.D0mI3NpI.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-roman-greek.JvnBZ4YD.woff2 b/pr-preview/pr-442/assets/inter-roman-greek.JvnBZ4YD.woff2 deleted file mode 100644 index f790e047..00000000 Binary files a/pr-preview/pr-442/assets/inter-roman-greek.JvnBZ4YD.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-roman-latin-ext.ZlYT4o7i.woff2 b/pr-preview/pr-442/assets/inter-roman-latin-ext.ZlYT4o7i.woff2 deleted file mode 100644 index 715bd903..00000000 Binary files a/pr-preview/pr-442/assets/inter-roman-latin-ext.ZlYT4o7i.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-roman-latin.Bu8hRsVA.woff2 b/pr-preview/pr-442/assets/inter-roman-latin.Bu8hRsVA.woff2 deleted file mode 100644 index a540b7af..00000000 Binary files a/pr-preview/pr-442/assets/inter-roman-latin.Bu8hRsVA.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/inter-roman-vietnamese.ClpjcLMQ.woff2 b/pr-preview/pr-442/assets/inter-roman-vietnamese.ClpjcLMQ.woff2 deleted file mode 100644 index 5a9f9cb9..00000000 Binary files a/pr-preview/pr-442/assets/inter-roman-vietnamese.ClpjcLMQ.woff2 and /dev/null differ diff --git a/pr-preview/pr-442/assets/style.CIOzXh8s.css b/pr-preview/pr-442/assets/style.CIOzXh8s.css deleted file mode 100644 index 69cd3c81..00000000 --- a/pr-preview/pr-442/assets/style.CIOzXh8s.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-roman-cyrillic.CMhn1ESj.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-roman-cyrillic-ext.DxP3Awbn.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-roman-greek.JvnBZ4YD.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-roman-greek-ext.D0mI3NpI.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-roman-latin.Bu8hRsVA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-roman-latin-ext.ZlYT4o7i.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-roman-vietnamese.ClpjcLMQ.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-italic-cyrillic.D6csxwjC.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-italic-cyrillic-ext.5XJwZIOp.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-italic-greek.9J96vYpw.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-italic-greek-ext.CHOfFY1k.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-italic-latin.DbsTr1gm.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-italic-latin-ext.BGcWXLrn.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/vue-qrcode-reader/pr-preview/pr-442/assets/inter-italic-vietnamese.DHNAd7Wr.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Chinese Quotes;src:local("PingFang SC Regular"),local("PingFang SC"),local("SimHei"),local("Source Han Sans SC");unicode-range:U+2018,U+2019,U+201C,U+201D}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Chinese Quotes", "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E")}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-green-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-green-1);--vp-code-line-diff-remove-color: var(--vp-c-red-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-red-1);--vp-code-line-warning-color: var(--vp-c-yellow-soft);--vp-code-line-error-color: var(--vp-c-red-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-brand-soft);--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-gray-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-brand-1);--vp-badge-tip-bg: var(--vp-c-brand-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);direction:ltr;font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{display:inline-block;margin:auto 2px -2px}mjx-container>svg{margin:auto}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-brand-1)}.custom-block.tip a:hover{color:var(--vp-c-brand-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s}.vp-doc blockquote>p{margin:0;font-size:16px;color:var(--vp-c-text-2);transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin-bottom:4px;text-align:center;letter-spacing:1px;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge[data-v-a4b1b27b]{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.vp-doc h1>.VPBadge[data-v-a4b1b27b]{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge[data-v-a4b1b27b]{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge[data-v-a4b1b27b]{vertical-align:middle}.vp-doc h4>.VPBadge[data-v-a4b1b27b],.vp-doc h5>.VPBadge[data-v-a4b1b27b],.vp-doc h6>.VPBadge[data-v-a4b1b27b]{vertical-align:middle;line-height:18px}.VPBadge.info[data-v-a4b1b27b]{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip[data-v-a4b1b27b]{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning[data-v-a4b1b27b]{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger[data-v-a4b1b27b]{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-061aabc2]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-061aabc2],.VPBackdrop.fade-leave-to[data-v-061aabc2]{opacity:0}.VPBackdrop.fade-leave-active[data-v-061aabc2]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-061aabc2]{display:none}}.NotFound[data-v-619d9b14]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-619d9b14]{padding:96px 32px 168px}}.code[data-v-619d9b14]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-619d9b14]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-619d9b14]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-619d9b14]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-619d9b14]{padding-top:20px}.link[data-v-619d9b14]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-619d9b14]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-de750f2b]{position:relative;z-index:1}.nested[data-v-de750f2b]{padding-left:16px}.outline-link[data-v-de750f2b]{display:block;line-height:28px;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s;font-weight:400}.outline-link[data-v-de750f2b]:hover,.outline-link.active[data-v-de750f2b]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-de750f2b]{padding-left:13px}.VPDocAsideOutline[data-v-d35fdd76]{display:none}.VPDocAsideOutline.has-outline[data-v-d35fdd76]{display:block}.content[data-v-d35fdd76]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-d35fdd76]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-d35fdd76]{letter-spacing:.4px;line-height:28px;font-size:13px;font-weight:600}.VPDocAside[data-v-0d95ea04]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-0d95ea04]{flex-grow:1}.VPDocAside[data-v-0d95ea04] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-0d95ea04] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-0d95ea04] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-8bf92a8a]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-8bf92a8a]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-d34a2671]{margin-top:64px}.edit-info[data-v-d34a2671]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-d34a2671]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-d34a2671]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-d34a2671]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-d34a2671]{margin-right:8px;width:14px;height:14px;fill:currentColor}.prev-next[data-v-d34a2671]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-d34a2671]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-d34a2671]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-d34a2671]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-d34a2671]{margin-left:auto;text-align:right}.desc[data-v-d34a2671]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-d34a2671]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDocOutlineDropdown[data-v-6bcb85b1]{margin-bottom:48px}.VPDocOutlineDropdown button[data-v-6bcb85b1]{display:block;font-size:14px;font-weight:500;line-height:24px;border:1px solid var(--vp-c-border);padding:4px 12px;color:var(--vp-c-text-2);background-color:var(--vp-c-default-soft);border-radius:8px;transition:color .5s}.VPDocOutlineDropdown button[data-v-6bcb85b1]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPDocOutlineDropdown button.open[data-v-6bcb85b1]{color:var(--vp-c-text-1)}.icon[data-v-6bcb85b1]{display:inline-block;vertical-align:middle;width:16px;height:16px;fill:currentColor}[data-v-6bcb85b1] .outline-link{font-size:14px;font-weight:400}.open>.icon[data-v-6bcb85b1]{transform:rotate(90deg)}.items[data-v-6bcb85b1]{margin-top:12px;border-left:1px solid var(--vp-c-divider)}.VPDoc[data-v-2d2e07c0]{padding:32px 24px 96px;width:100%}.VPDoc .VPDocOutlineDropdown[data-v-2d2e07c0]{display:none}@media (min-width: 960px) and (max-width: 1279px){.VPDoc .VPDocOutlineDropdown[data-v-2d2e07c0]{display:block}}@media (min-width: 768px){.VPDoc[data-v-2d2e07c0]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-2d2e07c0]{padding:32px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-2d2e07c0]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-2d2e07c0]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-2d2e07c0]{display:flex;justify-content:center}.VPDoc .aside[data-v-2d2e07c0]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-2d2e07c0]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-2d2e07c0]{max-width:1104px}}.container[data-v-2d2e07c0]{margin:0 auto;width:100%}.aside[data-v-2d2e07c0]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-2d2e07c0]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-2d2e07c0]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 32px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-2d2e07c0]::-webkit-scrollbar{display:none}.aside-curtain[data-v-2d2e07c0]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-2d2e07c0]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 32px));padding-bottom:32px}.content[data-v-2d2e07c0]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-2d2e07c0]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-2d2e07c0]{order:1;margin:0;min-width:640px}}.content-container[data-v-2d2e07c0]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-2d2e07c0]{max-width:688px}.external-link-icon-enabled :is(.vp-doc a[href*="://"][data-v-2d2e07c0],.vp-doc a[target=_blank][data-v-2d2e07c0]):after{content:"";color:currentColor}.VPButton[data-v-96e83405]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-96e83405]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-96e83405]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-96e83405]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-96e83405]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-96e83405]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-96e83405]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-96e83405]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-96e83405]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-96e83405]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-96e83405]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-96e83405]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-96e83405]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-419390b4]{display:none}.dark .VPImage.light[data-v-419390b4]{display:none}.VPHero[data-v-029864af]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-029864af]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-029864af]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-029864af]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-029864af]{flex-direction:row}}.main[data-v-029864af]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-029864af]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-029864af]{text-align:left}}@media (min-width: 960px){.main[data-v-029864af]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-029864af]{max-width:592px}}.name[data-v-029864af],.text[data-v-029864af]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-029864af],.VPHero.has-image .text[data-v-029864af]{margin:0 auto}.name[data-v-029864af]{color:var(--vp-home-hero-name-color)}.clip[data-v-029864af]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-029864af],.text[data-v-029864af]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-029864af],.text[data-v-029864af]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-029864af],.VPHero.has-image .text[data-v-029864af]{margin:0}}.tagline[data-v-029864af]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-029864af]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-029864af]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-029864af]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-029864af]{margin:0}}.actions[data-v-029864af]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-029864af]{justify-content:center}@media (min-width: 640px){.actions[data-v-029864af]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-029864af]{justify-content:flex-start}}.action[data-v-029864af]{flex-shrink:0;padding:6px}.image[data-v-029864af]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-029864af]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-029864af]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-029864af]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-029864af]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-029864af]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-029864af]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-029864af]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-029864af]{width:320px;height:320px}}[data-v-029864af] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-029864af] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-029864af] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-d9af38f1]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-d9af38f1]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-d9af38f1]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-d9af38f1]>.VPImage{margin-bottom:20px}.icon[data-v-d9af38f1]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-d9af38f1]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-d9af38f1]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-d9af38f1]{padding-top:8px}.link-text-value[data-v-d9af38f1]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-d9af38f1]{display:inline-block;margin-left:6px;width:14px;height:14px;fill:currentColor}.VPFeatures[data-v-d5115e9e]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-d5115e9e]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-d5115e9e]{padding:0 64px}}.container[data-v-d5115e9e]{margin:0 auto;max-width:1152px}.items[data-v-d5115e9e]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-d5115e9e]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-d5115e9e],.item.grid-4[data-v-d5115e9e],.item.grid-6[data-v-d5115e9e]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-d5115e9e],.item.grid-4[data-v-d5115e9e]{width:50%}.item.grid-3[data-v-d5115e9e],.item.grid-6[data-v-d5115e9e]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-d5115e9e]{width:25%}}.VPHome[data-v-0ef74a11]{padding-bottom:96px}.VPHome[data-v-0ef74a11] .VPHomeSponsors{margin-top:112px;margin-bottom:-128px}@media (min-width: 768px){.VPHome[data-v-0ef74a11]{padding-bottom:128px}}.VPContent[data-v-dd819c96]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-dd819c96]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-dd819c96]{margin:0}@media (min-width: 960px){.VPContent[data-v-dd819c96]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-dd819c96]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-dd819c96]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-1435e191]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-1435e191]{display:none}.VPFooter[data-v-1435e191] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-1435e191] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-1435e191]{padding:32px}}.container[data-v-1435e191]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-1435e191],.copyright[data-v-1435e191]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-44680368]{padding:12px 20px 11px}.VPLocalNavOutlineDropdown button[data-v-44680368]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-44680368]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-44680368]{color:var(--vp-c-text-1)}.icon[data-v-44680368]{display:inline-block;vertical-align:middle;margin-left:2px;width:14px;height:14px;fill:currentColor}[data-v-44680368] .outline-link{font-size:14px;padding:2px 0}.open>.icon[data-v-44680368]{transform:rotate(90deg)}.items[data-v-44680368]{position:absolute;top:64px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}.header[data-v-44680368]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-44680368]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-44680368]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-44680368]{transition:all .2s ease-out}.flyout-leave-active[data-v-44680368]{transition:all .15s ease-in}.flyout-enter-from[data-v-44680368],.flyout-leave-to[data-v-44680368]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-b41d0476]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--vp-c-gutter);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-b41d0476]{position:fixed}.VPLocalNav.reached-top[data-v-b41d0476]{border-top-color:transparent}@media (min-width: 960px){.VPLocalNav[data-v-b41d0476]{display:none}}.menu[data-v-b41d0476]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-b41d0476]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-b41d0476]{padding:0 32px}}.menu-icon[data-v-b41d0476]{margin-right:8px;width:16px;height:16px;fill:currentColor}.VPOutlineDropdown[data-v-b41d0476]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-b41d0476]{padding:12px 32px 11px}}.VPSwitch[data-v-4cabb2c0]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-4cabb2c0]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-4cabb2c0]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-4cabb2c0]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-4cabb2c0] svg{position:absolute;top:3px;left:3px;width:12px;height:12px;fill:var(--vp-c-text-2)}.dark .icon[data-v-4cabb2c0] svg{fill:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-15997bbb]{opacity:1}.moon[data-v-15997bbb],.dark .sun[data-v-15997bbb]{opacity:0}.dark .moon[data-v-15997bbb]{opacity:1}.dark .VPSwitchAppearance[data-v-15997bbb] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-edd6a71e]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-edd6a71e]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-be9b55a3]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-be9b55a3]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-be9b55a3]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-be9b55a3]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-6076d07c]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-6076d07c]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-6076d07c]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-6076d07c]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-0c08c142]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-0c08c142] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-0c08c142] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-0c08c142] .group:last-child{padding-bottom:0}.VPMenu[data-v-0c08c142] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-0c08c142] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-0c08c142] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-0c08c142] .action{padding-left:24px}.VPFlyout[data-v-cfce16b6]{position:relative}.VPFlyout[data-v-cfce16b6]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-cfce16b6]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-cfce16b6]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-cfce16b6]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-cfce16b6]{color:var(--vp-c-brand-2)}.VPFlyout:hover .menu[data-v-cfce16b6],.button[aria-expanded=true]+.menu[data-v-cfce16b6]{opacity:1;visibility:visible;transform:translateY(0)}.button[aria-expanded=false]+.menu[data-v-cfce16b6]{opacity:0;visibility:hidden;transform:translateY(0)}.button[data-v-cfce16b6]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-cfce16b6]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-cfce16b6]{margin-right:0;width:16px;height:16px;fill:currentColor}.text-icon[data-v-cfce16b6]{margin-left:4px;width:14px;height:14px;fill:currentColor}.icon[data-v-cfce16b6]{width:20px;height:20px;fill:currentColor;transition:fill .25s}.menu[data-v-cfce16b6]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-ba1b278e]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-ba1b278e]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-ba1b278e]>svg{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-0ee7996e]{display:flex;justify-content:center}.VPNavBarExtra[data-v-d029d2fa]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-d029d2fa]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-d029d2fa]{display:none}}.trans-title[data-v-d029d2fa]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-d029d2fa],.item.social-links[data-v-d029d2fa]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-d029d2fa]{min-width:176px}.appearance-action[data-v-d029d2fa]{margin-right:-2px}.social-links-list[data-v-d029d2fa]{margin:-4px -8px}.VPNavBarHamburger[data-v-cea4dddf]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-cea4dddf]{display:none}}.container[data-v-cea4dddf]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-cea4dddf]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-cea4dddf]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-cea4dddf]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-cea4dddf]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-cea4dddf]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-cea4dddf]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-cea4dddf],.VPNavBarHamburger.active:hover .middle[data-v-cea4dddf],.VPNavBarHamburger.active:hover .bottom[data-v-cea4dddf]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-cea4dddf],.middle[data-v-cea4dddf],.bottom[data-v-cea4dddf]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-cea4dddf]{top:0;left:0;transform:translate(0)}.middle[data-v-cea4dddf]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-cea4dddf]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-fe8d6e8e]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-fe8d6e8e],.VPNavBarMenuLink[data-v-fe8d6e8e]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-38df8c6b]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-38df8c6b]{display:flex}}/*! @docsearch/css 3.6.0 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.30196078431372547);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}.DocSearch-Button-Key--pressed{transform:translate3d(0,1px,0);box-shadow:var(--docsearch-key-pressed-shadow)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-b90d606d]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-b90d606d]{display:flex;align-items:center}}.title[data-v-e11d3fa6]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-e11d3fa6]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-e11d3fa6]{border-bottom-color:var(--vp-c-divider)}}[data-v-e11d3fa6] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-de1fc0f4]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-de1fc0f4]{display:flex;align-items:center}}.title[data-v-de1fc0f4]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-2310de9b]{position:relative;border-bottom:1px solid transparent;padding:0 8px 0 24px;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap}@media (min-width: 768px){.VPNavBar[data-v-2310de9b]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar[data-v-2310de9b]{padding:0}.VPNavBar[data-v-2310de9b]:not(.has-sidebar):not(.top){border-bottom-color:var(--vp-c-gutter);background-color:var(--vp-nav-bg-color)}}.container[data-v-2310de9b]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-2310de9b],.container>.content[data-v-2310de9b]{pointer-events:none}.container[data-v-2310de9b] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-2310de9b]{max-width:100%}}.title[data-v-2310de9b]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-2310de9b]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-2310de9b]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-2310de9b]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-2310de9b]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-2310de9b]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-2310de9b]{display:flex;justify-content:flex-end;align-items:center;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.top) .content-body[data-v-2310de9b]{position:relative;background-color:var(--vp-nav-bg-color)}}@media (max-width: 767px){.content-body[data-v-2310de9b]{column-gap:.5rem}}.menu+.translations[data-v-2310de9b]:before,.menu+.appearance[data-v-2310de9b]:before,.menu+.social-links[data-v-2310de9b]:before,.translations+.appearance[data-v-2310de9b]:before,.appearance+.social-links[data-v-2310de9b]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-2310de9b]:before,.translations+.appearance[data-v-2310de9b]:before{margin-right:16px}.appearance+.social-links[data-v-2310de9b]:before{margin-left:16px}.social-links[data-v-2310de9b]{margin-right:-8px}@media (min-width: 960px){.VPNavBar.has-sidebar .curtain[data-v-2310de9b]{position:absolute;right:0;bottom:-31px;width:calc(100% - var(--vp-sidebar-width));height:32px}.VPNavBar.has-sidebar .curtain[data-v-2310de9b]:before{display:block;width:100%;height:32px;background:linear-gradient(var(--vp-c-bg),transparent 70%);content:""}}@media (min-width: 1440px){.VPNavBar.has-sidebar .curtain[data-v-2310de9b]{width:calc(100% - ((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)))}}.VPNavScreenAppearance[data-v-d8bae44b]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-d8bae44b]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-200dc0ee]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-200dc0ee]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-3cf840c1]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-3cf840c1]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-aec8949d]{display:block}.title[data-v-aec8949d]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-1826ffb1]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-1826ffb1]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-1826ffb1]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-1826ffb1]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-1826ffb1]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-1826ffb1]{transform:rotate(45deg)}.button[data-v-1826ffb1]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-1826ffb1]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-1826ffb1]{width:14px;height:14px;fill:var(--vp-c-text-2);transition:fill .5s,transform .25s}.group[data-v-1826ffb1]:first-child{padding-top:0}.group+.group[data-v-1826ffb1],.group+.item[data-v-1826ffb1]{padding-top:4px}.VPNavScreenTranslations[data-v-2f607720]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-2f607720]{height:auto}.title[data-v-2f607720]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-2f607720]{width:16px;height:16px;fill:currentColor}.icon.lang[data-v-2f607720]{margin-right:8px}.icon.chevron[data-v-2f607720]{margin-left:4px}.list[data-v-2f607720]{padding:4px 0 0 24px}.link[data-v-2f607720]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-d3d8bd42]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 1px);right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .5s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-d3d8bd42],.VPNavScreen.fade-leave-active[data-v-d3d8bd42]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-d3d8bd42],.VPNavScreen.fade-leave-active .container[data-v-d3d8bd42]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-d3d8bd42],.VPNavScreen.fade-leave-to[data-v-d3d8bd42]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-d3d8bd42],.VPNavScreen.fade-leave-to .container[data-v-d3d8bd42]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-d3d8bd42]{display:none}}.container[data-v-d3d8bd42]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-d3d8bd42],.menu+.appearance[data-v-d3d8bd42],.translations+.appearance[data-v-d3d8bd42]{margin-top:24px}.menu+.social-links[data-v-d3d8bd42]{margin-top:16px}.appearance+.social-links[data-v-d3d8bd42]{margin-top:16px}.VPNav[data-v-560cee4f]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-560cee4f]{position:fixed}}.VPSidebarItem.level-0[data-v-9e342a69]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-9e342a69]{padding-bottom:10px}.item[data-v-9e342a69]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-9e342a69]{cursor:pointer}.indicator[data-v-9e342a69]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-9e342a69],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-9e342a69],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-9e342a69],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-9e342a69]{background-color:var(--vp-c-brand-1)}.link[data-v-9e342a69]{display:flex;align-items:center;flex-grow:1}.text[data-v-9e342a69]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-9e342a69]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-9e342a69],.VPSidebarItem.level-2 .text[data-v-9e342a69],.VPSidebarItem.level-3 .text[data-v-9e342a69],.VPSidebarItem.level-4 .text[data-v-9e342a69],.VPSidebarItem.level-5 .text[data-v-9e342a69]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-9e342a69],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-9e342a69],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-9e342a69],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-9e342a69],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-9e342a69],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-9e342a69]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-9e342a69],.VPSidebarItem.level-1.has-active>.item>.text[data-v-9e342a69],.VPSidebarItem.level-2.has-active>.item>.text[data-v-9e342a69],.VPSidebarItem.level-3.has-active>.item>.text[data-v-9e342a69],.VPSidebarItem.level-4.has-active>.item>.text[data-v-9e342a69],.VPSidebarItem.level-5.has-active>.item>.text[data-v-9e342a69],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-9e342a69],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-9e342a69],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-9e342a69],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-9e342a69],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-9e342a69],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-9e342a69]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-9e342a69],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-9e342a69],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-9e342a69],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-9e342a69],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-9e342a69],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-9e342a69]{color:var(--vp-c-brand-1)}.caret[data-v-9e342a69]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-9e342a69]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-9e342a69]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-9e342a69]{width:18px;height:18px;fill:currentColor;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-9e342a69]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-9e342a69],.VPSidebarItem.level-2 .items[data-v-9e342a69],.VPSidebarItem.level-3 .items[data-v-9e342a69],.VPSidebarItem.level-4 .items[data-v-9e342a69],.VPSidebarItem.level-5 .items[data-v-9e342a69]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-9e342a69]{display:none}.VPSidebar[data-v-71901613]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-71901613]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-71901613]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-71901613]{z-index:1;padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-71901613]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-71901613]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-71901613]{outline:0}.group+.group[data-v-71901613]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-71901613]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSkipLink[data-v-331cf70e]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-331cf70e]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-331cf70e]{top:14px;left:16px}}.Layout[data-v-b05b2250]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-b8241a05]{border-top:1px solid var(--vp-c-gutter);padding:88px 24px 96px;background-color:var(--vp-c-bg)}.container[data-v-b8241a05]{margin:0 auto;max-width:1152px}.love[data-v-b8241a05]{margin:0 auto;width:28px;height:28px;color:var(--vp-c-text-3)}.icon[data-v-b8241a05]{width:28px;height:28px;fill:currentColor}.message[data-v-b8241a05]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-b8241a05]{padding-top:32px}.action[data-v-b8241a05]{padding-top:40px;text-align:center}.VPTeamPage[data-v-3f1e01df]{padding-bottom:96px}@media (min-width: 768px){.VPTeamPage[data-v-3f1e01df]{padding-bottom:128px}}.VPTeamPageSection+.VPTeamPageSection[data-v-3f1e01df-s],.VPTeamMembers+.VPTeamPageSection[data-v-3f1e01df-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-3f1e01df-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-3f1e01df-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-3f1e01df-s],.VPTeamMembers+.VPTeamPageSection[data-v-3f1e01df-s]{margin-top:96px}}.VPTeamMembers[data-v-3f1e01df-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-3f1e01df-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-3f1e01df-s]{padding:0 64px}}.VPTeamPageTitle[data-v-14e50b84]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-14e50b84]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-14e50b84]{padding:80px 64px 48px}}.title[data-v-14e50b84]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-14e50b84]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-14e50b84]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-14e50b84]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-39c22789]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-39c22789]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-39c22789]{padding:0 64px}}.title[data-v-39c22789]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-39c22789]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-39c22789]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-39c22789]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-39c22789]{padding-top:40px}.VPTeamMembersItem[data-v-9df1d724]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-9df1d724]{padding:32px}.VPTeamMembersItem.small .data[data-v-9df1d724]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-9df1d724]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-9df1d724]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-9df1d724]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-9df1d724]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-9df1d724]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-9df1d724]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-9df1d724]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-9df1d724]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-9df1d724]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-9df1d724]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-9df1d724]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-9df1d724]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-9df1d724]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-9df1d724]{text-align:center}.avatar[data-v-9df1d724]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-9df1d724]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-9df1d724]{margin:0;font-weight:600}.affiliation[data-v-9df1d724]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-9df1d724]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-9df1d724]:hover{color:var(--vp-c-brand-1)}.desc[data-v-9df1d724]{margin:0 auto}.desc[data-v-9df1d724] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-9df1d724]{display:flex;justify-content:center;height:56px}.sp-link[data-v-9df1d724]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-9df1d724]:hover,.sp .sp-link.link[data-v-9df1d724]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-9df1d724]{margin-right:8px;width:16px;height:16px;fill:currentColor}.VPTeamMembers.small .container[data-v-2cd7520c]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-2cd7520c]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-2cd7520c]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-2cd7520c]{max-width:876px}.VPTeamMembers.medium .container[data-v-2cd7520c]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-2cd7520c]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-2cd7520c]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-2cd7520c]{max-width:760px}.container[data-v-2cd7520c]{display:grid;gap:24px;margin:0 auto;max-width:1152px}.decode-result{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drop-area{height:300px;color:#fff;text-align:center;font-weight:700;padding:10px;background-color:#3c3c43}.dragover{background-color:#10b981}.drop-error{color:red;font-weight:700}.error[data-v-df3f27d7]{font-weight:700;color:red}.barcode-format-checkbox[data-v-df3f27d7]{margin-right:10px;white-space:nowrap;display:inline-block}.fullscreen[data-v-39d64d0c]{position:fixed;z-index:1000;top:0;bottom:0;right:0;left:0}.fullscreen-button[data-v-39d64d0c]{background-color:#fff;position:absolute;bottom:0;right:0;margin:1rem}.fullscreen-button img[data-v-39d64d0c]{width:2rem}button[data-v-3ae3ffac]{margin-bottom:20px}.loading-indicator[data-v-3ae3ffac]{font-weight:700;font-size:2rem;text-align:center}.scan-confirmation[data-v-2c48d920]{position:absolute;width:100%;height:100%;background-color:#fffc;display:flex;flex-flow:row nowrap;justify-content:center}button[data-v-6622b1c4]{position:absolute;left:10px;top:10px}button img[data-v-6622b1c4]{width:50px;height:50px}.error[data-v-6622b1c4]{color:red;font-weight:700}button[data-v-cf37801d]{position:absolute;left:10px;top:10px}button img[data-v-cf37801d]{width:50px;height:50px}.error[data-v-cf37801d]{color:red;font-weight:700}.validation-success[data-v-2a6ebd39],.validation-failure[data-v-2a6ebd39],.validation-pending[data-v-2a6ebd39]{position:absolute;width:100%;height:100%;background-color:#fffc;padding:10px;text-align:center;font-weight:700;font-size:1.4rem;color:#000;display:flex;flex-flow:column nowrap;justify-content:center}.validation-success[data-v-2a6ebd39]{color:green}.validation-failure[data-v-2a6ebd39]{color:red}.VPLocalSearchBox[data-v-4306aaa1]{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex}.backdrop[data-v-4306aaa1]{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-backdrop-bg-color);transition:opacity .5s}.shell[data-v-4306aaa1]{position:relative;padding:12px;margin:64px auto;display:flex;flex-direction:column;gap:16px;background:var(--vp-local-search-bg);width:min(100vw - 60px,900px);height:min-content;max-height:min(100vh - 128px,900px);border-radius:6px}@media (max-width: 767px){.shell[data-v-4306aaa1]{margin:0;width:100vw;height:100vh;max-height:none;border-radius:0}}.search-bar[data-v-4306aaa1]{border:1px solid var(--vp-c-divider);border-radius:4px;display:flex;align-items:center;padding:0 12px;cursor:text}@media (max-width: 767px){.search-bar[data-v-4306aaa1]{padding:0 8px}}.search-bar[data-v-4306aaa1]:focus-within{border-color:var(--vp-c-brand-1)}.search-icon[data-v-4306aaa1]{margin:8px}@media (max-width: 767px){.search-icon[data-v-4306aaa1]{display:none}}.search-input[data-v-4306aaa1]{padding:6px 12px;font-size:inherit;width:100%}@media (max-width: 767px){.search-input[data-v-4306aaa1]{padding:6px 4px}}.search-actions[data-v-4306aaa1]{display:flex;gap:4px}@media (any-pointer: coarse){.search-actions[data-v-4306aaa1]{gap:8px}}@media (min-width: 769px){.search-actions.before[data-v-4306aaa1]{display:none}}.search-actions button[data-v-4306aaa1]{padding:8px}.search-actions button[data-v-4306aaa1]:not([disabled]):hover,.toggle-layout-button.detailed-list[data-v-4306aaa1]{color:var(--vp-c-brand-1)}.search-actions button.clear-button[data-v-4306aaa1]:disabled{opacity:.37}.search-keyboard-shortcuts[data-v-4306aaa1]{font-size:.8rem;opacity:75%;display:flex;flex-wrap:wrap;gap:16px;line-height:14px}.search-keyboard-shortcuts span[data-v-4306aaa1]{display:flex;align-items:center;gap:4px}@media (max-width: 767px){.search-keyboard-shortcuts[data-v-4306aaa1]{display:none}}.search-keyboard-shortcuts kbd[data-v-4306aaa1]{background:#8080801a;border-radius:4px;padding:3px 6px;min-width:24px;display:inline-block;text-align:center;vertical-align:middle;border:1px solid rgba(128,128,128,.15);box-shadow:0 2px 2px #0000001a}.results[data-v-4306aaa1]{display:flex;flex-direction:column;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.result[data-v-4306aaa1]{display:flex;align-items:center;gap:8px;border-radius:4px;transition:none;line-height:1rem;border:solid 2px var(--vp-local-search-result-border);outline:none}.result>div[data-v-4306aaa1]{margin:12px;width:100%;overflow:hidden}@media (max-width: 767px){.result>div[data-v-4306aaa1]{margin:8px}}.titles[data-v-4306aaa1]{display:flex;flex-wrap:wrap;gap:4px;position:relative;z-index:1001;padding:2px 0}.title[data-v-4306aaa1]{display:flex;align-items:center;gap:4px}.title.main[data-v-4306aaa1]{font-weight:500}.title-icon[data-v-4306aaa1]{opacity:.5;font-weight:500;color:var(--vp-c-brand-1)}.title svg[data-v-4306aaa1]{opacity:.5}.result.selected[data-v-4306aaa1]{--vp-local-search-result-bg: var(--vp-local-search-result-selected-bg);border-color:var(--vp-local-search-result-selected-border)}.excerpt-wrapper[data-v-4306aaa1]{position:relative}.excerpt[data-v-4306aaa1]{opacity:75%;pointer-events:none;max-height:140px;overflow:hidden;position:relative;opacity:.5;margin-top:4px}.result.selected .excerpt[data-v-4306aaa1]{opacity:1}.excerpt[data-v-4306aaa1] *{font-size:.8rem!important;line-height:130%!important}.titles[data-v-4306aaa1] mark,.excerpt[data-v-4306aaa1] mark{background-color:var(--vp-local-search-highlight-bg);color:var(--vp-local-search-highlight-text);border-radius:2px;padding:0 2px}.excerpt[data-v-4306aaa1] .vp-code-group .tabs{display:none}.excerpt[data-v-4306aaa1] .vp-code-group div[class*=language-]{border-radius:8px!important}.excerpt-gradient-bottom[data-v-4306aaa1]{position:absolute;bottom:-1px;left:0;width:100%;height:8px;background:linear-gradient(transparent,var(--vp-local-search-result-bg));z-index:1000}.excerpt-gradient-top[data-v-4306aaa1]{position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vp-local-search-result-bg),transparent);z-index:1000}.result.selected .titles[data-v-4306aaa1],.result.selected .title-icon[data-v-4306aaa1]{color:var(--vp-c-brand-1)!important}.no-results[data-v-4306aaa1]{font-size:.9rem;text-align:center;padding:12px}svg[data-v-4306aaa1]{flex:none} diff --git a/pr-preview/pr-442/camera-switch.svg b/pr-preview/pr-442/camera-switch.svg deleted file mode 100644 index aee2cd71..00000000 --- a/pr-preview/pr-442/camera-switch.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pr-preview/pr-442/checkmark.svg b/pr-preview/pr-442/checkmark.svg deleted file mode 100644 index 1b04049c..00000000 --- a/pr-preview/pr-442/checkmark.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pr-preview/pr-442/debug-memory-leak.html b/pr-preview/pr-442/debug-memory-leak.html deleted file mode 100644 index d4ef55a4..00000000 --- a/pr-preview/pr-442/debug-memory-leak.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - Document - - - - - - diff --git a/pr-preview/pr-442/demos/DragDrop.html b/pr-preview/pr-442/demos/DragDrop.html deleted file mode 100644 index 8d23800a..00000000 --- a/pr-preview/pr-442/demos/DragDrop.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - Decode by Drag&Drop | Vue Qrcode Reader - - - - - - - - - - - - - - - - -
Skip to content

Decode by Drag&Drop

With the QrcodeDropZone component you can also drag-and-drop images that should be scanned. Use it as a standalone feature or as a fallback for desktop users.

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <p
-      v-if="error !== null"
-      class="drop-error"
-    >
-      {{ error }}
-    </p>
-
-    <qrcode-drop-zone
-      @detect="onDetect"
-      @dragover="onDragOver"
-      @error="logErrors"
-    >
-      <div
-        class="drop-area"
-        :class="{ dragover: dragover }"
-      >
-        DROP SOME IMAGES HERE
-      </div>
-    </qrcode-drop-zone>
-  </div>
-</template>
-
-<script>
-import { QrcodeDropZone } from '../../../../src'
-
-export default {
-  components: { QrcodeDropZone },
-
-  data() {
-    return {
-      result: null,
-      error: null,
-      dragover: false
-    }
-  },
-
-  methods: {
-    onDetect(detectedCodes) {
-      console.log(detectedCodes)
-
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-    },
-
-    logErrors(error) {
-      if (error.name === 'DropImageFetchError') {
-        this.error = "Sorry, you can't load cross-origin images :/"
-      } else if (error.name === 'DropImageDecodeError') {
-        this.error = "Ok, that's not an image. That can't be decoded."
-      } else {
-        this.error = 'Ups, what kind of error is this?! ' + error.message
-      }
-    },
-
-    onDragOver(isDraggingOver) {
-      this.dragover = isDraggingOver
-    }
-  }
-}
-</script>
-
-<style>
-.drop-area {
-  height: 300px;
-  color: #fff;
-  text-align: center;
-  font-weight: bold;
-  padding: 10px;
-
-  background-color: #3c3c43;
-}
-
-.dragover {
-  background-color: #10b981;
-}
-
-.drop-error {
-  color: red;
-  font-weight: bold;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/FullDemo.html b/pr-preview/pr-442/demos/FullDemo.html deleted file mode 100644 index 7a6b2a3a..00000000 --- a/pr-preview/pr-442/demos/FullDemo.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - - Full Demo | Vue Qrcode Reader - - - - - - - - - - - - - - - - - -
Skip to content

Full Demo

Source

vue
<template>
-  <div>
-    <p>
-      Modern mobile phones often have a variety of different cameras installed (e.g. front, rear,
-      wide-angle, infrared, desk-view). The one picked by default is sometimes not the best choice.
-      For more fine-grained control, you can select a camera by device constraints or by the device
-      ID:
-
-      <select v-model="selectedConstraints">
-        <option
-          v-for="option in constraintOptions"
-          :key="option.label"
-          :value="option.constraints"
-        >
-          {{ option.label }}
-        </option>
-      </select>
-    </p>
-
-    <p>
-      Detected codes are visually highlighted in real-time. Use the following dropdown to change the
-      flavor:
-
-      <select v-model="trackFunctionSelected">
-        <option
-          v-for="option in trackFunctionOptions"
-          :key="option.text"
-          :value="option"
-        >
-          {{ option.text }}
-        </option>
-      </select>
-    </p>
-
-    <p>
-      By default only QR-codes are detected but a variety of other barcode formats are also
-      supported. You can select one or multiple but the more you select the more expensive scanning
-      becomes: <br />
-
-      <span
-        v-for="option in Object.keys(barcodeFormats)"
-        :key="option"
-        class="barcode-format-checkbox"
-      >
-        <input
-          type="checkbox"
-          v-model="barcodeFormats[option]"
-          :id="option"
-        />
-        <label :for="option">{{ option }}</label>
-      </span>
-    </p>
-
-    <p class="error">{{ error }}</p>
-
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <div>
-      <qrcode-stream
-        :constraints="selectedConstraints"
-        :track="trackFunctionSelected.value"
-        :formats="selectedBarcodeFormats"
-        @error="onError"
-        @detect="onDetect"
-        @camera-on="onCameraReady"
-      />
-    </div>
-  </div>
-</template>
-
-<script setup lang="ts">
-import { ref, computed } from 'vue'
-import { QrcodeStream } from '../../../../src'
-
-/*** detection handling ***/
-
-const result = ref('')
-
-function onDetect(detectedCodes) {
-  console.log(detectedCodes)
-  result.value = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-}
-
-/*** select camera ***/
-
-const selectedConstraints = ref({ facingMode: 'environment' })
-const defaultConstraintOptions = [
-  { label: 'rear camera', constraints: { facingMode: 'environment' } },
-  { label: 'front camera', constraints: { facingMode: 'user' } }
-]
-const constraintOptions = ref(defaultConstraintOptions)
-
-async function onCameraReady() {
-  // NOTE: on iOS we can't invoke `enumerateDevices` before the user has given
-  // camera access permission. `QrcodeStream` internally takes care of
-  // requesting the permissions. The `camera-on` event should guarantee that this
-  // has happened.
-  const devices = await navigator.mediaDevices.enumerateDevices()
-  const videoDevices = devices.filter(({ kind }) => kind === 'videoinput')
-
-  constraintOptions.value = [
-    ...defaultConstraintOptions,
-    ...videoDevices.map(({ deviceId, label }) => ({
-      label: `${label} (ID: ${deviceId})`,
-      constraints: { deviceId }
-    }))
-  ]
-
-  error.value = ''
-}
-
-/*** track functons ***/
-
-function paintOutline(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const [firstPoint, ...otherPoints] = detectedCode.cornerPoints
-
-    ctx.strokeStyle = 'red'
-
-    ctx.beginPath()
-    ctx.moveTo(firstPoint.x, firstPoint.y)
-    for (const { x, y } of otherPoints) {
-      ctx.lineTo(x, y)
-    }
-    ctx.lineTo(firstPoint.x, firstPoint.y)
-    ctx.closePath()
-    ctx.stroke()
-  }
-}
-function paintBoundingBox(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const {
-      boundingBox: { x, y, width, height }
-    } = detectedCode
-
-    ctx.lineWidth = 2
-    ctx.strokeStyle = '#007bff'
-    ctx.strokeRect(x, y, width, height)
-  }
-}
-function paintCenterText(detectedCodes, ctx) {
-  for (const detectedCode of detectedCodes) {
-    const { boundingBox, rawValue } = detectedCode
-
-    const centerX = boundingBox.x + boundingBox.width / 2
-    const centerY = boundingBox.y + boundingBox.height / 2
-
-    const fontSize = Math.max(12, (50 * boundingBox.width) / ctx.canvas.width)
-
-    ctx.font = `bold ${fontSize}px sans-serif`
-    ctx.textAlign = 'center'
-
-    ctx.lineWidth = 3
-    ctx.strokeStyle = '#35495e'
-    ctx.strokeText(detectedCode.rawValue, centerX, centerY)
-
-    ctx.fillStyle = '#5cb984'
-    ctx.fillText(rawValue, centerX, centerY)
-  }
-}
-const trackFunctionOptions = [
-  { text: 'nothing (default)', value: undefined },
-  { text: 'outline', value: paintOutline },
-  { text: 'centered text', value: paintCenterText },
-  { text: 'bounding box', value: paintBoundingBox }
-]
-const trackFunctionSelected = ref(trackFunctionOptions[1])
-
-/*** barcode formats ***/
-
-const barcodeFormats = ref({
-  aztec: false,
-  code_128: false,
-  code_39: false,
-  code_93: false,
-  codabar: false,
-  databar: false,
-  databar_expanded: false,
-  data_matrix: false,
-  dx_film_edge: false,
-  ean_13: false,
-  ean_8: false,
-  itf: false,
-  maxi_code: false,
-  micro_qr_code: false,
-  pdf417: false,
-  qr_code: true,
-  rm_qr_code: false,
-  upc_a: false,
-  upc_e: false,
-  linear_codes: false,
-  matrix_codes: false
-})
-const selectedBarcodeFormats = computed(() => {
-  return Object.keys(barcodeFormats.value).filter((format) => barcodeFormats.value[format])
-})
-
-/*** error handling ***/
-
-const error = ref('')
-
-function onError(err) {
-  error.value = `[${err.name}]: `
-
-  if (err.name === 'NotAllowedError') {
-    error.value += 'you need to grant camera access permission'
-  } else if (err.name === 'NotFoundError') {
-    error.value += 'no camera on this device'
-  } else if (err.name === 'NotSupportedError') {
-    error.value += 'secure context required (HTTPS, localhost)'
-  } else if (err.name === 'NotReadableError') {
-    error.value += 'is the camera already in use?'
-  } else if (err.name === 'OverconstrainedError') {
-    error.value += 'installed cameras are not suitable'
-  } else if (err.name === 'StreamApiNotSupportedError') {
-    error.value += 'Stream API is not supported in this browser'
-  } else if (err.name === 'InsecureContextError') {
-    error.value +=
-      'Camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.'
-  } else {
-    error.value += err.message
-  }
-}
-</script>
-
-<style scoped>
-.error {
-  font-weight: bold;
-  color: red;
-}
-.barcode-format-checkbox {
-  margin-right: 10px;
-  white-space: nowrap;
-  display: inline-block;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/Fullscreen.html b/pr-preview/pr-442/demos/Fullscreen.html deleted file mode 100644 index 56fa9b05..00000000 --- a/pr-preview/pr-442/demos/Fullscreen.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - Fullscreen | Vue Qrcode Reader - - - - - - - - - - - - - - - - - -
Skip to content

Fullscreen

QrcodeStream always covers the entire space available. Not more, not less. So to go fullscreen, simply put the component in a wrapper element that occupies the entire screen.

Source

vue
<template>
-  <div
-    :class="{ fullscreen: fullscreen }"
-    ref="wrapper"
-    @fullscreenchange="onFullscreenChange"
-  >
-    <qrcode-stream @error="logErrors">
-      <button
-        @click="fullscreen = !fullscreen"
-        class="fullscreen-button"
-      >
-        <img
-          :src="withBase(fullscreenIcon)"
-          alt="toggle fullscreen"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-// NOTE: calling `requestFullscreen` might prompt the user with another
-// permission dialog. You already asked for camera access permission so this is
-// a rather invasive move.
-//
-// Even without calling `requestFullscreen` the entire viewport is covered
-// by the camera stream. So consider skipping `requestFullscreen` in your
-// implementation.
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      fullscreen: false
-    }
-  },
-
-  computed: {
-    fullscreenIcon() {
-      if (this.fullscreen) {
-        return '/fullscreen-exit.svg'
-      } else {
-        return '/fullscreen.svg'
-      }
-    }
-  },
-
-  watch: {
-    fullscreen(enterFullscreen) {
-      if (enterFullscreen) {
-        this.requestFullscreen()
-      } else {
-        this.exitFullscreen()
-      }
-    }
-  },
-
-  methods: {
-    onFullscreenChange(event) {
-      // This becomes important when the user doesn't use the button to exit
-      // fullscreen but hits ESC on desktop, pushes a physical back button on
-      // mobile etc.
-
-      this.fullscreen = document.fullscreenElement !== null
-    },
-
-    requestFullscreen() {
-      const elem = this.$refs.wrapper
-
-      if (elem.requestFullscreen) {
-        elem.requestFullscreen()
-      } else if (elem.mozRequestFullScreen) {
-        /* Firefox */
-        elem.mozRequestFullScreen()
-      } else if (elem.webkitRequestFullscreen) {
-        /* Chrome, Safari and Opera */
-        elem.webkitRequestFullscreen()
-      } else if (elem.msRequestFullscreen) {
-        /* IE/Edge */
-        elem.msRequestFullscreen()
-      }
-    },
-
-    exitFullscreen() {
-      if (document.exitFullscreen) {
-        document.exitFullscreen()
-      } else if (document.mozCancelFullScreen) {
-        /* Firefox */
-        document.mozCancelFullScreen()
-      } else if (document.webkitExitFullscreen) {
-        /* Chrome, Safari and Opera */
-        document.webkitExitFullscreen()
-      } else if (document.msExitFullscreen) {
-        /* IE/Edge */
-        document.msExitFullscreen()
-      }
-    },
-
-    logErrors: console.error,
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-.fullscreen {
-  position: fixed;
-  z-index: 1000;
-  top: 0;
-  bottom: 0;
-  right: 0;
-  left: 0;
-}
-.fullscreen-button {
-  background-color: white;
-  position: absolute;
-  bottom: 0;
-  right: 0;
-  margin: 1rem;
-}
-.fullscreen-button img {
-  width: 2rem;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/LoadingIndicator.html b/pr-preview/pr-442/demos/LoadingIndicator.html deleted file mode 100644 index bd52dd32..00000000 --- a/pr-preview/pr-442/demos/LoadingIndicator.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - Show Loading Indicator | Vue Qrcode Reader - - - - - - - - - - - - - - - - - -
Skip to content

Show Loading Indicator

There is some delay between mounting the component and the camera stream becoming visible. Listen for the camera-on event to show a loading indicator.

Push the button below to force destroy and re-create the component.

Source

vue
<template>
-  <div>
-    <button @click="reload">Destroy And Re-Create Component</button>
-
-    <qrcode-stream
-      @camera-on="onCameraOn"
-      v-if="!destroyed"
-    >
-      <div
-        class="loading-indicator"
-        v-if="loading"
-      >
-        Loading...
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      loading: true,
-      destroyed: false
-    }
-  },
-
-  methods: {
-    onCameraOn() {
-      this.loading = false
-    },
-
-    async reload() {
-      this.destroyed = true
-      await this.$nextTick()
-      this.destroyed = false
-      this.loading = true
-    }
-  }
-}
-</script>
-
-<style scoped>
-button {
-  margin-bottom: 20px;
-}
-
-.loading-indicator {
-  font-weight: bold;
-  font-size: 2rem;
-  text-align: center;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/ScanSameQrcodeMoreThanOnce.html b/pr-preview/pr-442/demos/ScanSameQrcodeMoreThanOnce.html deleted file mode 100644 index 7cbdbe36..00000000 --- a/pr-preview/pr-442/demos/ScanSameQrcodeMoreThanOnce.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - Scan Same QR Code More Than Once | Vue Qrcode Reader - - - - - - - - - - - - - - - - - -
Skip to content

Scan Same QR Code More Than Once

You might have noticed that scanning the same QR code again doesn't work. The thing is when a QR code is in the view of your the camera it's decoded multiple times a second. You don't want to be flooded with detect events that often though. That's why the last decoded QR code is "cached" and an event is only emitted, when the decoded content changes.

However this cache is reset when you change the paused prop. We can exploit that to scan same QR codes multiple times in a row.

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-stream
-      :paused="paused"
-      @detect="onDetect"
-      @camera-on="onCameraOn"
-      @camera-off="onCameraOff"
-      @error="onError"
-    >
-      <div
-        v-show="showScanConfirmation"
-        class="scan-confirmation"
-      >
-        <img
-          :src="withBase('/checkmark.svg')"
-          alt="Checkmark"
-          width="128"
-        />
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      paused: false,
-      result: '',
-      showScanConfirmation: false
-    }
-  },
-
-  methods: {
-    onCameraOn() {
-      this.showScanConfirmation = false
-    },
-
-    onCameraOff() {
-      this.showScanConfirmation = true
-    },
-
-    onError: console.error,
-
-    async onDetect(detectedCodes) {
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-
-      this.paused = true
-      await this.timeout(500)
-      this.paused = false
-    },
-
-    timeout(ms) {
-      return new Promise((resolve) => {
-        window.setTimeout(resolve, ms)
-      })
-    },
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-.scan-confirmation {
-  position: absolute;
-  width: 100%;
-  height: 100%;
-
-  background-color: rgba(255, 255, 255, 0.8);
-
-  display: flex;
-  flex-flow: row nowrap;
-  justify-content: center;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/Simple.html b/pr-preview/pr-442/demos/Simple.html deleted file mode 100644 index 908b863b..00000000 --- a/pr-preview/pr-442/demos/Simple.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - Simple | Vue Qrcode Reader - - - - - - - - - - - - - - - -
Skip to content

Simple

All other demos on this page utilize single-file components. To use them in your project you need a bundler like vite. For an example that works without a build step and right in the browser:

SEE THIS DEMO

Source

html
<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-  <title>Simple Demo</title>
-
-  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
-  <script src="https://unpkg.com/vue-qrcode-reader@5/dist/vue-qrcode-reader.umd.js"></script>
-</head>
-<body>
-	<div id="app">
-    <h1>Simple Demo</h1>
-
-    <p style="color: red">{{ error }}</p>
-
-    <p>Last result: <b>{{ result }}</b></p>
-
-    <div style="border: 2px solid black">
-  		<qrcode-stream :track="paintBoundingBox" @detect="onDetect" @error="onError"></qrcode-stream>
-    </div>
-	</div>
-</body>
-<script>
-  const { createApp, ref } = Vue
-
-  const result = ref('')
-  const error = ref('')
-
-  function paintBoundingBox(detectedCodes, ctx) {
-    for (const detectedCode of detectedCodes) {
-      const {
-        boundingBox: { x, y, width, height }
-      } = detectedCode
-
-      ctx.lineWidth = 2
-      ctx.strokeStyle = '#007bff'
-      ctx.strokeRect(x, y, width, height)
-    }
-  }
-
-  function onError(err) {
-    error.value = `[${err.name}]: `
-
-    if (err.name === 'NotAllowedError') {
-      error.value += 'you need to grant camera access permission'
-    } else if (err.name === 'NotFoundError') {
-      error.value += 'no camera on this device'
-    } else if (err.name === 'NotSupportedError') {
-      error.value += 'secure context required (HTTPS, localhost)'
-    } else if (err.name === 'NotReadableError') {
-      error.value += 'is the camera already in use?'
-    } else if (err.name === 'OverconstrainedError') {
-      error.value += 'installed cameras are not suitable'
-    } else if (err.name === 'StreamApiNotSupportedError') {
-      error.value += 'Stream API is not supported in this browser'
-    } else if (err.name === 'InsecureContextError') {
-      error.value += 'Camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.'
-    } else {
-      error.value += err.message
-    }
-  }
-
-  function onDetect(detectedCodes) {
-    result.value = JSON.stringify(
-      detectedCodes.map(code => code.rawValue)
-    )
-  }
-
-  const app = createApp({
-    setup() {
-      return { result, error, onDetect, onError, paintBoundingBox }
-    }
-  })
-  app.use(VueQrcodeReader)
-  app.mount('#app')
-</script>
-</html>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/SwitchCamera.html b/pr-preview/pr-442/demos/SwitchCamera.html deleted file mode 100644 index b36a8a8c..00000000 --- a/pr-preview/pr-442/demos/SwitchCamera.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Switch to Front Camera | Vue Qrcode Reader - - - - - - - - - - - - - - - - - -
Skip to content

Switch to Front Camera

You can also allow users to choose the front or rear camera on their device.

Source

vue
<template>
-  <div>
-    <p
-      class="error"
-      v-if="noFrontCamera"
-    >
-      You don't seem to have a front camera on your device
-    </p>
-
-    <p
-      class="error"
-      v-if="noRearCamera"
-    >
-      You don't seem to have a rear camera on your device
-    </p>
-
-    <qrcode-stream
-      :constraints="{ facingMode }"
-      @error="onError"
-    >
-      <button @click="switchCamera">
-        <img
-          :src="withBase('/camera-switch.svg')"
-          alt="switch camera"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { withBase } from 'vitepress'
-
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      facingMode: 'environment',
-      noRearCamera: false,
-      noFrontCamera: false
-    }
-  },
-
-  methods: {
-    switchCamera() {
-      switch (this.facingMode) {
-        case 'environment':
-          this.facingMode = 'user'
-          break
-        case 'user':
-          this.facingMode = 'environment'
-          break
-      }
-    },
-
-    onError(error) {
-      const triedFrontCamera = this.facingMode === 'user'
-      const triedRearCamera = this.facingMode === 'environment'
-
-      const cameraMissingError = error.name === 'OverconstrainedError'
-
-      if (triedRearCamera && cameraMissingError) {
-        this.noRearCamera = true
-      }
-
-      if (triedFrontCamera && cameraMissingError) {
-        this.noFrontCamera = true
-      }
-
-      console.error(error)
-    },
-
-    withBase
-  }
-}
-</script>
-
-<style scoped>
-button {
-  position: absolute;
-  left: 10px;
-  top: 10px;
-}
-button img {
-  width: 50px;
-  height: 50px;
-}
-.error {
-  color: red;
-  font-weight: bold;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/Torch.html b/pr-preview/pr-442/demos/Torch.html deleted file mode 100644 index 90e024fb..00000000 --- a/pr-preview/pr-442/demos/Torch.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - Torch (Flashlight) | Vue Qrcode Reader - - - - - - - - - - - - - - - - - -
Skip to content

Torch (Flashlight)

In low-light conditions you might want to make use of the cameras flashlight. Using the torch prop, you can turn the flashlight on/off. Note that support is inconsistent across devices and browsers and can only be detected after already starting the camera.

Feature sponsored by aeschbacher.ch

Source

vue
<template>
-  <div>
-    <p>
-      Pick camera:
-      <select v-model="selected">
-        <option
-          v-for="device in devices"
-          :key="device.label"
-          :value="device"
-        >
-          {{ device.label }}
-        </option>
-      </select>
-    </p>
-
-    <p
-      v-if="torchNotSupported"
-      class="error"
-    >
-      Torch not supported for active camera
-    </p>
-
-    <qrcode-stream
-      :torch="torchActive"
-      :constraints="{ deviceId: selected.deviceId }"
-      v-if="selected !== null"
-      @error="console.error"
-      @camera-on="onCameraOn"
-      v-memo="[torchActive, selected.deviceId]"
-    >
-      <button
-        @click="torchActive = !torchActive"
-        :disabled="torchNotSupported"
-      >
-        <img
-          :src="withBase(icon)"
-          alt="toggle torch"
-        />
-      </button>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script setup lang="ts">
-import { ref, onMounted, computed } from 'vue'
-import { withBase } from 'vitepress'
-import { QrcodeStream } from '../../../../src'
-
-const selected = ref(null as MediaDeviceInfo | null)
-const devices = ref([] as MediaDeviceInfo[])
-
-onMounted(async () => {
-  devices.value = (await navigator.mediaDevices.enumerateDevices()).filter(
-    ({ kind }) => kind === 'videoinput'
-  )
-
-  if (devices.value.length > 0) {
-    selected.value = devices.value[0]
-  }
-})
-
-const torchActive = ref(false)
-const torchNotSupported = ref(false)
-
-const icon = computed(() => {
-  if (torchActive.value) {
-    return '/flash-off.svg'
-  } else {
-    return '/flash-on.svg'
-  }
-})
-
-function onCameraOn(capabilities) {
-  console.log(capabilities)
-  torchNotSupported.value = !capabilities.torch
-}
-
-function onError(err) {
-  console.error(err)
-}
-</script>
-
-<style scoped>
-button {
-  position: absolute;
-  left: 10px;
-  top: 10px;
-}
-button img {
-  width: 50px;
-  height: 50px;
-}
-.error {
-  color: red;
-  font-weight: bold;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/Upload.html b/pr-preview/pr-442/demos/Upload.html deleted file mode 100644 index 58891219..00000000 --- a/pr-preview/pr-442/demos/Upload.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Decode by Upload | Vue Qrcode Reader - - - - - - - - - - - - - - - - -
Skip to content

Decode by Upload

Finally, with QrcodeCapture comes another component which allows image scanning via classic file upload. Nothing is actually uploaded. Everything is happening client-side.

If you are on mobile and your browser supports it, you are not prompted with a file dialog but with your camera. So you can directly take the picture to be uploaded. Adjust this behavior with the following dropdown:

Source

vue
<template>
-  <div>
-    <p>
-      Capture:
-      <select v-model="selected">
-        <option
-          v-for="option in options"
-          :key="option.text"
-          :value="option"
-        >
-          {{ option.text }}
-        </option>
-      </select>
-    </p>
-
-    <hr />
-
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-capture
-      @detect="onDetect"
-      :capture="selected.value"
-    />
-  </div>
-</template>
-
-<script>
-import { QrcodeCapture } from '../../../../src'
-
-export default {
-  components: { QrcodeCapture },
-
-  data() {
-    const options = [
-      { text: 'rear camera (default)', value: 'environment' },
-      { text: 'front camera', value: 'user' },
-      { text: 'force file dialog', value: null }
-    ]
-
-    return {
-      result: '',
-      options,
-      selected: options[0]
-    }
-  },
-
-  methods: {
-    onDetect(detectedCodes) {
-      console.log(detectedCodes)
-
-      this.result = JSON.stringify(detectedCodes.map((code) => code.rawValue))
-    }
-  }
-}
-</script>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/demos/Validate.html b/pr-preview/pr-442/demos/Validate.html deleted file mode 100644 index 86038432..00000000 --- a/pr-preview/pr-442/demos/Validate.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - Pause & Validate | Vue Qrcode Reader - - - - - - - - - - - - - - - - - -
Skip to content

Pause & Validate

By pausing you can process each scanned QR-code one at a time. The last received frame is still displayed so it just looks like the stream is paused.

Source

vue
<template>
-  <div>
-    <p class="decode-result">
-      Last result: <b>{{ result }}</b>
-    </p>
-
-    <qrcode-stream
-      :paused="paused"
-      @detect="onDetect"
-      @error="onError"
-      @camera-on="resetValidationState"
-    >
-      <div
-        v-if="validationSuccess"
-        class="validation-success"
-      >
-        This is a URL
-      </div>
-
-      <div
-        v-if="validationFailure"
-        class="validation-failure"
-      >
-        This is NOT a URL!
-      </div>
-
-      <div
-        v-if="validationPending"
-        class="validation-pending"
-      >
-        Long validation in progress...
-      </div>
-    </qrcode-stream>
-  </div>
-</template>
-
-<script>
-import { QrcodeStream } from '../../../../src'
-
-export default {
-  components: { QrcodeStream },
-
-  data() {
-    return {
-      isValid: undefined,
-      paused: false,
-      result: null
-    }
-  },
-
-  computed: {
-    validationPending() {
-      return this.isValid === undefined && this.paused
-    },
-
-    validationSuccess() {
-      return this.isValid === true
-    },
-
-    validationFailure() {
-      return this.isValid === false
-    }
-  },
-
-  methods: {
-    onError: console.error,
-
-    resetValidationState() {
-      this.isValid = undefined
-    },
-
-    async onDetect([firstDetectedCode]) {
-      this.result = firstDetectedCode.rawValue
-      this.paused = true
-
-      // pretend it's taking really long
-      await this.timeout(3000)
-      this.isValid = this.result.startsWith('http')
-
-      // some more delay, so users have time to read the message
-      await this.timeout(2000)
-      this.paused = false
-    },
-
-    timeout(ms) {
-      return new Promise((resolve) => {
-        window.setTimeout(resolve, ms)
-      })
-    }
-  }
-}
-</script>
-
-<style scoped>
-.validation-success,
-.validation-failure,
-.validation-pending {
-  position: absolute;
-  width: 100%;
-  height: 100%;
-
-  background-color: rgba(255, 255, 255, 0.8);
-  padding: 10px;
-  text-align: center;
-  font-weight: bold;
-  font-size: 1.4rem;
-  color: black;
-
-  display: flex;
-  flex-flow: column nowrap;
-  justify-content: center;
-}
-.validation-success {
-  color: green;
-}
-.validation-failure {
-  color: red;
-}
-</style>

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/flash-off.svg b/pr-preview/pr-442/flash-off.svg deleted file mode 100644 index 2d34c96f..00000000 --- a/pr-preview/pr-442/flash-off.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pr-preview/pr-442/flash-on.svg b/pr-preview/pr-442/flash-on.svg deleted file mode 100644 index 9d0d023a..00000000 --- a/pr-preview/pr-442/flash-on.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pr-preview/pr-442/fullscreen-exit.svg b/pr-preview/pr-442/fullscreen-exit.svg deleted file mode 100644 index 85e2eaaa..00000000 --- a/pr-preview/pr-442/fullscreen-exit.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pr-preview/pr-442/fullscreen.svg b/pr-preview/pr-442/fullscreen.svg deleted file mode 100644 index 08d4f2cf..00000000 --- a/pr-preview/pr-442/fullscreen.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pr-preview/pr-442/hashmap.json b/pr-preview/pr-442/hashmap.json deleted file mode 100644 index f9016daf..00000000 --- a/pr-preview/pr-442/hashmap.json +++ /dev/null @@ -1 +0,0 @@ -{"demos_loadingindicator.md":"Cje69sbN","api_qrcodecapture.md":"BSxZMWGQ","demos_torch.md":"BvBd56EY","api_qrcodedropzone.md":"DouRcg2y","demos_fulldemo.md":"BrHQ4b73","demos_fullscreen.md":"4ENCkVUf","demos_upload.md":"TStSOs7i","demos_switchcamera.md":"CsE5Ha3g","demos_validate.md":"DnbsXjY7","index.md":"B7Kjx8aZ","demos_dragdrop.md":"rlfOSb1I","demos_simple.md":"G-a-t5Hl","api_qrcodestream.md":"2p_HD5_g","demos_scansameqrcodemorethanonce.md":"AqtKYt6n"} diff --git a/pr-preview/pr-442/index.html b/pr-preview/pr-442/index.html deleted file mode 100644 index c82dd8a5..00000000 --- a/pr-preview/pr-442/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Vue Qrcode Reader - - - - - - - - - - - - - - - -
Skip to content

Vue Qrcode Reader

A set of Vue.js components for detecting and decoding QR codes.

VueQrcodeReader

Released under the MIT License.

- - - - \ No newline at end of file diff --git a/pr-preview/pr-442/logo.png b/pr-preview/pr-442/logo.png deleted file mode 100644 index bbd815d0..00000000 Binary files a/pr-preview/pr-442/logo.png and /dev/null differ diff --git a/pr-preview/pr-442/manifest.webmanifest b/pr-preview/pr-442/manifest.webmanifest deleted file mode 100644 index 82c71ca0..00000000 --- a/pr-preview/pr-442/manifest.webmanifest +++ /dev/null @@ -1 +0,0 @@ -{"name":"Vue Qrcode Reader","short_name":"Vue QR","start_url":"/vue-qrcode-reader/pr-preview/pr-442/","display":"standalone","background_color":"#ffffff","lang":"en","scope":"/vue-qrcode-reader/pr-preview/pr-442/","theme_color":"#10b981","icons":[{"src":"pwa-192x192.png","sizes":"192x192","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png"}]} diff --git a/pr-preview/pr-442/pwa-192x192.png b/pr-preview/pr-442/pwa-192x192.png deleted file mode 100644 index cfda4297..00000000 Binary files a/pr-preview/pr-442/pwa-192x192.png and /dev/null differ diff --git a/pr-preview/pr-442/pwa-512x512.png b/pr-preview/pr-442/pwa-512x512.png deleted file mode 100644 index 37226e77..00000000 Binary files a/pr-preview/pr-442/pwa-512x512.png and /dev/null differ diff --git a/pr-preview/pr-442/registerSW.js b/pr-preview/pr-442/registerSW.js deleted file mode 100644 index c5b63404..00000000 --- a/pr-preview/pr-442/registerSW.js +++ /dev/null @@ -1 +0,0 @@ -if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('/vue-qrcode-reader/pr-preview/pr-442/sw.js', { scope: '/vue-qrcode-reader/pr-preview/pr-442/' })})} \ No newline at end of file diff --git a/pr-preview/pr-442/select-camera-demo.html b/pr-preview/pr-442/select-camera-demo.html deleted file mode 100644 index 80f1eb2d..00000000 --- a/pr-preview/pr-442/select-camera-demo.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - -cameras:
-
    -
    - -

    Capabilities:

    -
    
    -
    -
    -
    -
    diff --git a/pr-preview/pr-442/simple-demo.html b/pr-preview/pr-442/simple-demo.html
    deleted file mode 100644
    index 40a1b5e0..00000000
    --- a/pr-preview/pr-442/simple-demo.html
    +++ /dev/null
    @@ -1,79 +0,0 @@
    -
    -
    -
    -  
    -  
    -
    -  Simple Demo
    -
    -  
    -  
    -
    -
    -	
    -

    Simple Demo

    - -

    {{ error }}

    - -

    Last result: {{ result }}

    - -
    - -
    -
    - - - diff --git a/pr-preview/pr-442/sw.js b/pr-preview/pr-442/sw.js deleted file mode 100644 index 0205e8fc..00000000 --- a/pr-preview/pr-442/sw.js +++ /dev/null @@ -1,330 +0,0 @@ -/** - * Copyright 2018 Google Inc. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// If the loader is already loaded, just stop. -if (!self.define) { - let registry = {}; - - // Used for `eval` and `importScripts` where we can't get script URL by other means. - // In both cases, it's safe to use a global var because those functions are synchronous. - let nextDefineUri; - - const singleRequire = (uri, parentUri) => { - uri = new URL(uri + ".js", parentUri).href; - return registry[uri] || ( - - new Promise(resolve => { - if ("document" in self) { - const script = document.createElement("script"); - script.src = uri; - script.onload = resolve; - document.head.appendChild(script); - } else { - nextDefineUri = uri; - importScripts(uri); - resolve(); - } - }) - - .then(() => { - let promise = registry[uri]; - if (!promise) { - throw new Error(`Module ${uri} didn’t register its module`); - } - return promise; - }) - ); - }; - - self.define = (depsNames, factory) => { - const uri = nextDefineUri || ("document" in self ? document.currentScript.src : "") || location.href; - if (registry[uri]) { - // Module is already loading or loaded. - return; - } - let exports = {}; - const require = depUri => singleRequire(depUri, uri); - const specialDeps = { - module: { uri }, - exports, - require - }; - registry[uri] = Promise.all(depsNames.map( - depName => specialDeps[depName] || require(depName) - )).then(deps => { - factory(...deps); - return exports; - }); - }; -} -define(['./workbox-5199072c'], (function (workbox) { 'use strict'; - - self.skipWaiting(); - workbox.clientsClaim(); - - /** - * The precacheAndRoute() method efficiently caches and responds to - * requests for URLs in the manifest. - * See https://goo.gl/S9QRab - */ - workbox.precacheAndRoute([{ - "url": "404.html", - "revision": "8944eda878f068645f079a94065a637d" - }, { - "url": "api/QrcodeCapture.html", - "revision": "b83c190a2f377beac620a2a8726e66b9" - }, { - "url": "api/QrcodeDropZone.html", - "revision": "f3fe162102b65675f1ccaa53f830da0c" - }, { - "url": "api/QrcodeStream.html", - "revision": "812d09656a3e15abcf7523572cd589f1" - }, { - "url": "assets/api_QrcodeCapture.md.BSxZMWGQ.js", - "revision": null - }, { - "url": "assets/api_QrcodeCapture.md.BSxZMWGQ.lean.js", - "revision": null - }, { - "url": "assets/api_QrcodeDropZone.md.DouRcg2y.js", - "revision": null - }, { - "url": "assets/api_QrcodeDropZone.md.DouRcg2y.lean.js", - "revision": null - }, { - "url": "assets/api_QrcodeStream.md.2p_HD5_g.js", - "revision": null - }, { - "url": "assets/api_QrcodeStream.md.2p_HD5_g.lean.js", - "revision": null - }, { - "url": "assets/app.DQIwyA96.js", - "revision": null - }, { - "url": "assets/chunks/@localSearchIndexroot.Ba0k1oZn.js", - "revision": null - }, { - "url": "assets/chunks/camera.mAncAYbH.js", - "revision": null - }, { - "url": "assets/chunks/framework.Bgy0wF8y.js", - "revision": null - }, { - "url": "assets/chunks/QrcodeStream.vue_vue_type_script_setup_true_lang.C0hd0nsi.js", - "revision": null - }, { - "url": "assets/chunks/safari_32x32.Bkuv9jEj.js", - "revision": null - }, { - "url": "assets/chunks/theme.DG-lrbgZ.js", - "revision": null - }, { - "url": "assets/chunks/VPLocalSearchBox.BQmUvU87.js", - "revision": null - }, { - "url": "assets/demos_DragDrop.md.rlfOSb1I.js", - "revision": null - }, { - "url": "assets/demos_DragDrop.md.rlfOSb1I.lean.js", - "revision": null - }, { - "url": "assets/demos_FullDemo.md.BrHQ4b73.js", - "revision": null - }, { - "url": "assets/demos_FullDemo.md.BrHQ4b73.lean.js", - "revision": null - }, { - "url": "assets/demos_Fullscreen.md.4ENCkVUf.js", - "revision": null - }, { - "url": "assets/demos_Fullscreen.md.4ENCkVUf.lean.js", - "revision": null - }, { - "url": "assets/demos_LoadingIndicator.md.Cje69sbN.js", - "revision": null - }, { - "url": "assets/demos_LoadingIndicator.md.Cje69sbN.lean.js", - "revision": null - }, { - "url": "assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.js", - "revision": null - }, { - "url": "assets/demos_ScanSameQrcodeMoreThanOnce.md.AqtKYt6n.lean.js", - "revision": null - }, { - "url": "assets/demos_Simple.md.G-a-t5Hl.js", - "revision": null - }, { - "url": "assets/demos_Simple.md.G-a-t5Hl.lean.js", - "revision": null - }, { - "url": "assets/demos_SwitchCamera.md.CsE5Ha3g.js", - "revision": null - }, { - "url": "assets/demos_SwitchCamera.md.CsE5Ha3g.lean.js", - "revision": null - }, { - "url": "assets/demos_Torch.md.BvBd56EY.js", - "revision": null - }, { - "url": "assets/demos_Torch.md.BvBd56EY.lean.js", - "revision": null - }, { - "url": "assets/demos_Upload.md.TStSOs7i.js", - "revision": null - }, { - "url": "assets/demos_Upload.md.TStSOs7i.lean.js", - "revision": null - }, { - "url": "assets/demos_Validate.md.DnbsXjY7.js", - "revision": null - }, { - "url": "assets/demos_Validate.md.DnbsXjY7.lean.js", - "revision": null - }, { - "url": "assets/index.md.B7Kjx8aZ.js", - "revision": null - }, { - "url": "assets/index.md.B7Kjx8aZ.lean.js", - "revision": null - }, { - "url": "assets/inter-italic-cyrillic-ext.5XJwZIOp.woff2", - "revision": null - }, { - "url": "assets/inter-italic-cyrillic.D6csxwjC.woff2", - "revision": null - }, { - "url": "assets/inter-italic-greek-ext.CHOfFY1k.woff2", - "revision": null - }, { - "url": "assets/inter-italic-greek.9J96vYpw.woff2", - "revision": null - }, { - "url": "assets/inter-italic-latin-ext.BGcWXLrn.woff2", - "revision": null - }, { - "url": "assets/inter-italic-latin.DbsTr1gm.woff2", - "revision": null - }, { - "url": "assets/inter-italic-vietnamese.DHNAd7Wr.woff2", - "revision": null - }, { - "url": "assets/inter-roman-cyrillic-ext.DxP3Awbn.woff2", - "revision": null - }, { - "url": "assets/inter-roman-cyrillic.CMhn1ESj.woff2", - "revision": null - }, { - "url": "assets/inter-roman-greek-ext.D0mI3NpI.woff2", - "revision": null - }, { - "url": "assets/inter-roman-greek.JvnBZ4YD.woff2", - "revision": null - }, { - "url": "assets/inter-roman-latin-ext.ZlYT4o7i.woff2", - "revision": null - }, { - "url": "assets/inter-roman-latin.Bu8hRsVA.woff2", - "revision": null - }, { - "url": "assets/inter-roman-vietnamese.ClpjcLMQ.woff2", - "revision": null - }, { - "url": "assets/style.CIOzXh8s.css", - "revision": null - }, { - "url": "camera-switch.svg", - "revision": "c966900237eef848d4aeb18b0ad64371" - }, { - "url": "checkmark.svg", - "revision": "398fc16c5cbd6c20b529b76742c33942" - }, { - "url": "debug-memory-leak.html", - "revision": "baffbefe1bde1d10f0c089b20f0cb9ed" - }, { - "url": "demos/DragDrop.html", - "revision": "e814ba3a6a91a11234e33a03c5cc6184" - }, { - "url": "demos/FullDemo.html", - "revision": "2e896147b2f7b661ec3aa7a2b95ff8f3" - }, { - "url": "demos/Fullscreen.html", - "revision": "44a8b630c5228f536a4561424d4ccdba" - }, { - "url": "demos/LoadingIndicator.html", - "revision": "eaf1b942584a4b584f30019030deda87" - }, { - "url": "demos/ScanSameQrcodeMoreThanOnce.html", - "revision": "76421d472b3da46df88c808d500b4b7c" - }, { - "url": "demos/Simple.html", - "revision": "9358a6f5c37e25dcd43995709f69c2d7" - }, { - "url": "demos/SwitchCamera.html", - "revision": "17d6c1757f39cd5d28353a7121286253" - }, { - "url": "demos/Torch.html", - "revision": "546fbc8d62ba3db93f8388365c232acb" - }, { - "url": "demos/Upload.html", - "revision": "6b65dc7698b210b99ba67ea63850f771" - }, { - "url": "demos/Validate.html", - "revision": "2464f94bb57f9bb0208303edcf50291e" - }, { - "url": "flash-off.svg", - "revision": "8b05f5dcd6712992a544b34520ec7262" - }, { - "url": "flash-on.svg", - "revision": "23580871877110ec5e7dcd41efdbd07b" - }, { - "url": "fullscreen-exit.svg", - "revision": "77f8bddd41a7894d1a00324ed9dcb8f9" - }, { - "url": "fullscreen.svg", - "revision": "432c44f09de0b4e0f9e236fad9b8c7f9" - }, { - "url": "index.html", - "revision": "1542ba9940eba573ceb79b09dfde18b9" - }, { - "url": "logo.png", - "revision": "5f0c1d6358641bc48207acb9fa0b6182" - }, { - "url": "pwa-192x192.png", - "revision": "05431c417219f6c247a23488366a2b41" - }, { - "url": "pwa-512x512.png", - "revision": "5e0a4893ebdd02af95cf73c7b7759ddd" - }, { - "url": "registerSW.js", - "revision": "79501193458de0f3a03d897a8191127f" - }, { - "url": "select-camera-demo.html", - "revision": "caa12e13f97000bc06e565e64bb8bd0f" - }, { - "url": "simple-demo.html", - "revision": "d2e0337bc830c36ac24089933500e897" - }, { - "url": "pwa-192x192.png", - "revision": "05431c417219f6c247a23488366a2b41" - }, { - "url": "pwa-512x512.png", - "revision": "5e0a4893ebdd02af95cf73c7b7759ddd" - }, { - "url": "manifest.webmanifest", - "revision": "7eaa47f75472f3c337a22e16da887d96" - }], {}); - workbox.cleanupOutdatedCaches(); - workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"))); - -})); diff --git a/pr-preview/pr-442/workbox-5199072c.js b/pr-preview/pr-442/workbox-5199072c.js deleted file mode 100644 index 077fa26d..00000000 --- a/pr-preview/pr-442/workbox-5199072c.js +++ /dev/null @@ -1,3391 +0,0 @@ -define(['exports'], (function (exports) { 'use strict'; - - // @ts-ignore - try { - self['workbox:core:7.0.0'] && _(); - } catch (e) {} - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Claim any currently available clients once the service worker - * becomes active. This is normally used in conjunction with `skipWaiting()`. - * - * @memberof workbox-core - */ - function clientsClaim() { - self.addEventListener('activate', () => self.clients.claim()); - } - - /* - Copyright 2019 Google LLC - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - const logger = (() => { - // Don't overwrite this value if it's already set. - // See https://github.com/GoogleChrome/workbox/pull/2284#issuecomment-560470923 - if (!('__WB_DISABLE_DEV_LOGS' in globalThis)) { - self.__WB_DISABLE_DEV_LOGS = false; - } - let inGroup = false; - const methodToColorMap = { - debug: `#7f8c8d`, - log: `#2ecc71`, - warn: `#f39c12`, - error: `#c0392b`, - groupCollapsed: `#3498db`, - groupEnd: null // No colored prefix on groupEnd - }; - const print = function (method, args) { - if (self.__WB_DISABLE_DEV_LOGS) { - return; - } - if (method === 'groupCollapsed') { - // Safari doesn't print all console.groupCollapsed() arguments: - // https://bugs.webkit.org/show_bug.cgi?id=182754 - if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) { - console[method](...args); - return; - } - } - const styles = [`background: ${methodToColorMap[method]}`, `border-radius: 0.5em`, `color: white`, `font-weight: bold`, `padding: 2px 0.5em`]; - // When in a group, the workbox prefix is not displayed. - const logPrefix = inGroup ? [] : ['%cworkbox', styles.join(';')]; - console[method](...logPrefix, ...args); - if (method === 'groupCollapsed') { - inGroup = true; - } - if (method === 'groupEnd') { - inGroup = false; - } - }; - // eslint-disable-next-line @typescript-eslint/ban-types - const api = {}; - const loggerMethods = Object.keys(methodToColorMap); - for (const key of loggerMethods) { - const method = key; - api[method] = (...args) => { - print(method, args); - }; - } - return api; - })(); - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - const messages = { - 'invalid-value': ({ - paramName, - validValueDescription, - value - }) => { - if (!paramName || !validValueDescription) { - throw new Error(`Unexpected input to 'invalid-value' error.`); - } - return `The '${paramName}' parameter was given a value with an ` + `unexpected value. ${validValueDescription} Received a value of ` + `${JSON.stringify(value)}.`; - }, - 'not-an-array': ({ - moduleName, - className, - funcName, - paramName - }) => { - if (!moduleName || !className || !funcName || !paramName) { - throw new Error(`Unexpected input to 'not-an-array' error.`); - } - return `The parameter '${paramName}' passed into ` + `'${moduleName}.${className}.${funcName}()' must be an array.`; - }, - 'incorrect-type': ({ - expectedType, - paramName, - moduleName, - className, - funcName - }) => { - if (!expectedType || !paramName || !moduleName || !funcName) { - throw new Error(`Unexpected input to 'incorrect-type' error.`); - } - const classNameStr = className ? `${className}.` : ''; - return `The parameter '${paramName}' passed into ` + `'${moduleName}.${classNameStr}` + `${funcName}()' must be of type ${expectedType}.`; - }, - 'incorrect-class': ({ - expectedClassName, - paramName, - moduleName, - className, - funcName, - isReturnValueProblem - }) => { - if (!expectedClassName || !moduleName || !funcName) { - throw new Error(`Unexpected input to 'incorrect-class' error.`); - } - const classNameStr = className ? `${className}.` : ''; - if (isReturnValueProblem) { - return `The return value from ` + `'${moduleName}.${classNameStr}${funcName}()' ` + `must be an instance of class ${expectedClassName}.`; - } - return `The parameter '${paramName}' passed into ` + `'${moduleName}.${classNameStr}${funcName}()' ` + `must be an instance of class ${expectedClassName}.`; - }, - 'missing-a-method': ({ - expectedMethod, - paramName, - moduleName, - className, - funcName - }) => { - if (!expectedMethod || !paramName || !moduleName || !className || !funcName) { - throw new Error(`Unexpected input to 'missing-a-method' error.`); - } - return `${moduleName}.${className}.${funcName}() expected the ` + `'${paramName}' parameter to expose a '${expectedMethod}' method.`; - }, - 'add-to-cache-list-unexpected-type': ({ - entry - }) => { - return `An unexpected entry was passed to ` + `'workbox-precaching.PrecacheController.addToCacheList()' The entry ` + `'${JSON.stringify(entry)}' isn't supported. You must supply an array of ` + `strings with one or more characters, objects with a url property or ` + `Request objects.`; - }, - 'add-to-cache-list-conflicting-entries': ({ - firstEntry, - secondEntry - }) => { - if (!firstEntry || !secondEntry) { - throw new Error(`Unexpected input to ` + `'add-to-cache-list-duplicate-entries' error.`); - } - return `Two of the entries passed to ` + `'workbox-precaching.PrecacheController.addToCacheList()' had the URL ` + `${firstEntry} but different revision details. Workbox is ` + `unable to cache and version the asset correctly. Please remove one ` + `of the entries.`; - }, - 'plugin-error-request-will-fetch': ({ - thrownErrorMessage - }) => { - if (!thrownErrorMessage) { - throw new Error(`Unexpected input to ` + `'plugin-error-request-will-fetch', error.`); - } - return `An error was thrown by a plugins 'requestWillFetch()' method. ` + `The thrown error message was: '${thrownErrorMessage}'.`; - }, - 'invalid-cache-name': ({ - cacheNameId, - value - }) => { - if (!cacheNameId) { - throw new Error(`Expected a 'cacheNameId' for error 'invalid-cache-name'`); - } - return `You must provide a name containing at least one character for ` + `setCacheDetails({${cacheNameId}: '...'}). Received a value of ` + `'${JSON.stringify(value)}'`; - }, - 'unregister-route-but-not-found-with-method': ({ - method - }) => { - if (!method) { - throw new Error(`Unexpected input to ` + `'unregister-route-but-not-found-with-method' error.`); - } - return `The route you're trying to unregister was not previously ` + `registered for the method type '${method}'.`; - }, - 'unregister-route-route-not-registered': () => { - return `The route you're trying to unregister was not previously ` + `registered.`; - }, - 'queue-replay-failed': ({ - name - }) => { - return `Replaying the background sync queue '${name}' failed.`; - }, - 'duplicate-queue-name': ({ - name - }) => { - return `The Queue name '${name}' is already being used. ` + `All instances of backgroundSync.Queue must be given unique names.`; - }, - 'expired-test-without-max-age': ({ - methodName, - paramName - }) => { - return `The '${methodName}()' method can only be used when the ` + `'${paramName}' is used in the constructor.`; - }, - 'unsupported-route-type': ({ - moduleName, - className, - funcName, - paramName - }) => { - return `The supplied '${paramName}' parameter was an unsupported type. ` + `Please check the docs for ${moduleName}.${className}.${funcName} for ` + `valid input types.`; - }, - 'not-array-of-class': ({ - value, - expectedClass, - moduleName, - className, - funcName, - paramName - }) => { - return `The supplied '${paramName}' parameter must be an array of ` + `'${expectedClass}' objects. Received '${JSON.stringify(value)},'. ` + `Please check the call to ${moduleName}.${className}.${funcName}() ` + `to fix the issue.`; - }, - 'max-entries-or-age-required': ({ - moduleName, - className, - funcName - }) => { - return `You must define either config.maxEntries or config.maxAgeSeconds` + `in ${moduleName}.${className}.${funcName}`; - }, - 'statuses-or-headers-required': ({ - moduleName, - className, - funcName - }) => { - return `You must define either config.statuses or config.headers` + `in ${moduleName}.${className}.${funcName}`; - }, - 'invalid-string': ({ - moduleName, - funcName, - paramName - }) => { - if (!paramName || !moduleName || !funcName) { - throw new Error(`Unexpected input to 'invalid-string' error.`); - } - return `When using strings, the '${paramName}' parameter must start with ` + `'http' (for cross-origin matches) or '/' (for same-origin matches). ` + `Please see the docs for ${moduleName}.${funcName}() for ` + `more info.`; - }, - 'channel-name-required': () => { - return `You must provide a channelName to construct a ` + `BroadcastCacheUpdate instance.`; - }, - 'invalid-responses-are-same-args': () => { - return `The arguments passed into responsesAreSame() appear to be ` + `invalid. Please ensure valid Responses are used.`; - }, - 'expire-custom-caches-only': () => { - return `You must provide a 'cacheName' property when using the ` + `expiration plugin with a runtime caching strategy.`; - }, - 'unit-must-be-bytes': ({ - normalizedRangeHeader - }) => { - if (!normalizedRangeHeader) { - throw new Error(`Unexpected input to 'unit-must-be-bytes' error.`); - } - return `The 'unit' portion of the Range header must be set to 'bytes'. ` + `The Range header provided was "${normalizedRangeHeader}"`; - }, - 'single-range-only': ({ - normalizedRangeHeader - }) => { - if (!normalizedRangeHeader) { - throw new Error(`Unexpected input to 'single-range-only' error.`); - } - return `Multiple ranges are not supported. Please use a single start ` + `value, and optional end value. The Range header provided was ` + `"${normalizedRangeHeader}"`; - }, - 'invalid-range-values': ({ - normalizedRangeHeader - }) => { - if (!normalizedRangeHeader) { - throw new Error(`Unexpected input to 'invalid-range-values' error.`); - } - return `The Range header is missing both start and end values. At least ` + `one of those values is needed. The Range header provided was ` + `"${normalizedRangeHeader}"`; - }, - 'no-range-header': () => { - return `No Range header was found in the Request provided.`; - }, - 'range-not-satisfiable': ({ - size, - start, - end - }) => { - return `The start (${start}) and end (${end}) values in the Range are ` + `not satisfiable by the cached response, which is ${size} bytes.`; - }, - 'attempt-to-cache-non-get-request': ({ - url, - method - }) => { - return `Unable to cache '${url}' because it is a '${method}' request and ` + `only 'GET' requests can be cached.`; - }, - 'cache-put-with-no-response': ({ - url - }) => { - return `There was an attempt to cache '${url}' but the response was not ` + `defined.`; - }, - 'no-response': ({ - url, - error - }) => { - let message = `The strategy could not generate a response for '${url}'.`; - if (error) { - message += ` The underlying error is ${error}.`; - } - return message; - }, - 'bad-precaching-response': ({ - url, - status - }) => { - return `The precaching request for '${url}' failed` + (status ? ` with an HTTP status of ${status}.` : `.`); - }, - 'non-precached-url': ({ - url - }) => { - return `createHandlerBoundToURL('${url}') was called, but that URL is ` + `not precached. Please pass in a URL that is precached instead.`; - }, - 'add-to-cache-list-conflicting-integrities': ({ - url - }) => { - return `Two of the entries passed to ` + `'workbox-precaching.PrecacheController.addToCacheList()' had the URL ` + `${url} with different integrity values. Please remove one of them.`; - }, - 'missing-precache-entry': ({ - cacheName, - url - }) => { - return `Unable to find a precached response in ${cacheName} for ${url}.`; - }, - 'cross-origin-copy-response': ({ - origin - }) => { - return `workbox-core.copyResponse() can only be used with same-origin ` + `responses. It was passed a response with origin ${origin}.`; - }, - 'opaque-streams-source': ({ - type - }) => { - const message = `One of the workbox-streams sources resulted in an ` + `'${type}' response.`; - if (type === 'opaqueredirect') { - return `${message} Please do not use a navigation request that results ` + `in a redirect as a source.`; - } - return `${message} Please ensure your sources are CORS-enabled.`; - } - }; - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - const generatorFunction = (code, details = {}) => { - const message = messages[code]; - if (!message) { - throw new Error(`Unable to find message for code '${code}'.`); - } - return message(details); - }; - const messageGenerator = generatorFunction; - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Workbox errors should be thrown with this class. - * This allows use to ensure the type easily in tests, - * helps developers identify errors from workbox - * easily and allows use to optimise error - * messages correctly. - * - * @private - */ - class WorkboxError extends Error { - /** - * - * @param {string} errorCode The error code that - * identifies this particular error. - * @param {Object=} details Any relevant arguments - * that will help developers identify issues should - * be added as a key on the context object. - */ - constructor(errorCode, details) { - const message = messageGenerator(errorCode, details); - super(message); - this.name = errorCode; - this.details = details; - } - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /* - * This method throws if the supplied value is not an array. - * The destructed values are required to produce a meaningful error for users. - * The destructed and restructured object is so it's clear what is - * needed. - */ - const isArray = (value, details) => { - if (!Array.isArray(value)) { - throw new WorkboxError('not-an-array', details); - } - }; - const hasMethod = (object, expectedMethod, details) => { - const type = typeof object[expectedMethod]; - if (type !== 'function') { - details['expectedMethod'] = expectedMethod; - throw new WorkboxError('missing-a-method', details); - } - }; - const isType = (object, expectedType, details) => { - if (typeof object !== expectedType) { - details['expectedType'] = expectedType; - throw new WorkboxError('incorrect-type', details); - } - }; - const isInstance = (object, - // Need the general type to do the check later. - // eslint-disable-next-line @typescript-eslint/ban-types - expectedClass, details) => { - if (!(object instanceof expectedClass)) { - details['expectedClassName'] = expectedClass.name; - throw new WorkboxError('incorrect-class', details); - } - }; - const isOneOf = (value, validValues, details) => { - if (!validValues.includes(value)) { - details['validValueDescription'] = `Valid values are ${JSON.stringify(validValues)}.`; - throw new WorkboxError('invalid-value', details); - } - }; - const isArrayOfClass = (value, - // Need general type to do check later. - expectedClass, - // eslint-disable-line - details) => { - const error = new WorkboxError('not-array-of-class', details); - if (!Array.isArray(value)) { - throw error; - } - for (const item of value) { - if (!(item instanceof expectedClass)) { - throw error; - } - } - }; - const finalAssertExports = { - hasMethod, - isArray, - isInstance, - isOneOf, - isType, - isArrayOfClass - }; - - // @ts-ignore - try { - self['workbox:routing:7.0.0'] && _(); - } catch (e) {} - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * The default HTTP method, 'GET', used when there's no specific method - * configured for a route. - * - * @type {string} - * - * @private - */ - const defaultMethod = 'GET'; - /** - * The list of valid HTTP methods associated with requests that could be routed. - * - * @type {Array} - * - * @private - */ - const validMethods = ['DELETE', 'GET', 'HEAD', 'PATCH', 'POST', 'PUT']; - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * @param {function()|Object} handler Either a function, or an object with a - * 'handle' method. - * @return {Object} An object with a handle method. - * - * @private - */ - const normalizeHandler = handler => { - if (handler && typeof handler === 'object') { - { - finalAssertExports.hasMethod(handler, 'handle', { - moduleName: 'workbox-routing', - className: 'Route', - funcName: 'constructor', - paramName: 'handler' - }); - } - return handler; - } else { - { - finalAssertExports.isType(handler, 'function', { - moduleName: 'workbox-routing', - className: 'Route', - funcName: 'constructor', - paramName: 'handler' - }); - } - return { - handle: handler - }; - } - }; - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * A `Route` consists of a pair of callback functions, "match" and "handler". - * The "match" callback determine if a route should be used to "handle" a - * request by returning a non-falsy value if it can. The "handler" callback - * is called when there is a match and should return a Promise that resolves - * to a `Response`. - * - * @memberof workbox-routing - */ - class Route { - /** - * Constructor for Route class. - * - * @param {workbox-routing~matchCallback} match - * A callback function that determines whether the route matches a given - * `fetch` event by returning a non-falsy value. - * @param {workbox-routing~handlerCallback} handler A callback - * function that returns a Promise resolving to a Response. - * @param {string} [method='GET'] The HTTP method to match the Route - * against. - */ - constructor(match, handler, method = defaultMethod) { - { - finalAssertExports.isType(match, 'function', { - moduleName: 'workbox-routing', - className: 'Route', - funcName: 'constructor', - paramName: 'match' - }); - if (method) { - finalAssertExports.isOneOf(method, validMethods, { - paramName: 'method' - }); - } - } - // These values are referenced directly by Router so cannot be - // altered by minificaton. - this.handler = normalizeHandler(handler); - this.match = match; - this.method = method; - } - /** - * - * @param {workbox-routing-handlerCallback} handler A callback - * function that returns a Promise resolving to a Response - */ - setCatchHandler(handler) { - this.catchHandler = normalizeHandler(handler); - } - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * RegExpRoute makes it easy to create a regular expression based - * {@link workbox-routing.Route}. - * - * For same-origin requests the RegExp only needs to match part of the URL. For - * requests against third-party servers, you must define a RegExp that matches - * the start of the URL. - * - * @memberof workbox-routing - * @extends workbox-routing.Route - */ - class RegExpRoute extends Route { - /** - * If the regular expression contains - * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references}, - * the captured values will be passed to the - * {@link workbox-routing~handlerCallback} `params` - * argument. - * - * @param {RegExp} regExp The regular expression to match against URLs. - * @param {workbox-routing~handlerCallback} handler A callback - * function that returns a Promise resulting in a Response. - * @param {string} [method='GET'] The HTTP method to match the Route - * against. - */ - constructor(regExp, handler, method) { - { - finalAssertExports.isInstance(regExp, RegExp, { - moduleName: 'workbox-routing', - className: 'RegExpRoute', - funcName: 'constructor', - paramName: 'pattern' - }); - } - const match = ({ - url - }) => { - const result = regExp.exec(url.href); - // Return immediately if there's no match. - if (!result) { - return; - } - // Require that the match start at the first character in the URL string - // if it's a cross-origin request. - // See https://github.com/GoogleChrome/workbox/issues/281 for the context - // behind this behavior. - if (url.origin !== location.origin && result.index !== 0) { - { - logger.debug(`The regular expression '${regExp.toString()}' only partially matched ` + `against the cross-origin URL '${url.toString()}'. RegExpRoute's will only ` + `handle cross-origin requests if they match the entire URL.`); - } - return; - } - // If the route matches, but there aren't any capture groups defined, then - // this will return [], which is truthy and therefore sufficient to - // indicate a match. - // If there are capture groups, then it will return their values. - return result.slice(1); - }; - super(match, handler, method); - } - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - const getFriendlyURL = url => { - const urlObj = new URL(String(url), location.href); - // See https://github.com/GoogleChrome/workbox/issues/2323 - // We want to include everything, except for the origin if it's same-origin. - return urlObj.href.replace(new RegExp(`^${location.origin}`), ''); - }; - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * The Router can be used to process a `FetchEvent` using one or more - * {@link workbox-routing.Route}, responding with a `Response` if - * a matching route exists. - * - * If no route matches a given a request, the Router will use a "default" - * handler if one is defined. - * - * Should the matching Route throw an error, the Router will use a "catch" - * handler if one is defined to gracefully deal with issues and respond with a - * Request. - * - * If a request matches multiple routes, the **earliest** registered route will - * be used to respond to the request. - * - * @memberof workbox-routing - */ - class Router { - /** - * Initializes a new Router. - */ - constructor() { - this._routes = new Map(); - this._defaultHandlerMap = new Map(); - } - /** - * @return {Map>} routes A `Map` of HTTP - * method name ('GET', etc.) to an array of all the corresponding `Route` - * instances that are registered. - */ - get routes() { - return this._routes; - } - /** - * Adds a fetch event listener to respond to events when a route matches - * the event's request. - */ - addFetchListener() { - // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705 - self.addEventListener('fetch', event => { - const { - request - } = event; - const responsePromise = this.handleRequest({ - request, - event - }); - if (responsePromise) { - event.respondWith(responsePromise); - } - }); - } - /** - * Adds a message event listener for URLs to cache from the window. - * This is useful to cache resources loaded on the page prior to when the - * service worker started controlling it. - * - * The format of the message data sent from the window should be as follows. - * Where the `urlsToCache` array may consist of URL strings or an array of - * URL string + `requestInit` object (the same as you'd pass to `fetch()`). - * - * ``` - * { - * type: 'CACHE_URLS', - * payload: { - * urlsToCache: [ - * './script1.js', - * './script2.js', - * ['./script3.js', {mode: 'no-cors'}], - * ], - * }, - * } - * ``` - */ - addCacheListener() { - // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705 - self.addEventListener('message', event => { - // event.data is type 'any' - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access - if (event.data && event.data.type === 'CACHE_URLS') { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const { - payload - } = event.data; - { - logger.debug(`Caching URLs from the window`, payload.urlsToCache); - } - const requestPromises = Promise.all(payload.urlsToCache.map(entry => { - if (typeof entry === 'string') { - entry = [entry]; - } - const request = new Request(...entry); - return this.handleRequest({ - request, - event - }); - // TODO(philipwalton): TypeScript errors without this typecast for - // some reason (probably a bug). The real type here should work but - // doesn't: `Array | undefined>`. - })); // TypeScript - event.waitUntil(requestPromises); - // If a MessageChannel was used, reply to the message on success. - if (event.ports && event.ports[0]) { - void requestPromises.then(() => event.ports[0].postMessage(true)); - } - } - }); - } - /** - * Apply the routing rules to a FetchEvent object to get a Response from an - * appropriate Route's handler. - * - * @param {Object} options - * @param {Request} options.request The request to handle. - * @param {ExtendableEvent} options.event The event that triggered the - * request. - * @return {Promise|undefined} A promise is returned if a - * registered route can handle the request. If there is no matching - * route and there's no `defaultHandler`, `undefined` is returned. - */ - handleRequest({ - request, - event - }) { - { - finalAssertExports.isInstance(request, Request, { - moduleName: 'workbox-routing', - className: 'Router', - funcName: 'handleRequest', - paramName: 'options.request' - }); - } - const url = new URL(request.url, location.href); - if (!url.protocol.startsWith('http')) { - { - logger.debug(`Workbox Router only supports URLs that start with 'http'.`); - } - return; - } - const sameOrigin = url.origin === location.origin; - const { - params, - route - } = this.findMatchingRoute({ - event, - request, - sameOrigin, - url - }); - let handler = route && route.handler; - const debugMessages = []; - { - if (handler) { - debugMessages.push([`Found a route to handle this request:`, route]); - if (params) { - debugMessages.push([`Passing the following params to the route's handler:`, params]); - } - } - } - // If we don't have a handler because there was no matching route, then - // fall back to defaultHandler if that's defined. - const method = request.method; - if (!handler && this._defaultHandlerMap.has(method)) { - { - debugMessages.push(`Failed to find a matching route. Falling ` + `back to the default handler for ${method}.`); - } - handler = this._defaultHandlerMap.get(method); - } - if (!handler) { - { - // No handler so Workbox will do nothing. If logs is set of debug - // i.e. verbose, we should print out this information. - logger.debug(`No route found for: ${getFriendlyURL(url)}`); - } - return; - } - { - // We have a handler, meaning Workbox is going to handle the route. - // print the routing details to the console. - logger.groupCollapsed(`Router is responding to: ${getFriendlyURL(url)}`); - debugMessages.forEach(msg => { - if (Array.isArray(msg)) { - logger.log(...msg); - } else { - logger.log(msg); - } - }); - logger.groupEnd(); - } - // Wrap in try and catch in case the handle method throws a synchronous - // error. It should still callback to the catch handler. - let responsePromise; - try { - responsePromise = handler.handle({ - url, - request, - event, - params - }); - } catch (err) { - responsePromise = Promise.reject(err); - } - // Get route's catch handler, if it exists - const catchHandler = route && route.catchHandler; - if (responsePromise instanceof Promise && (this._catchHandler || catchHandler)) { - responsePromise = responsePromise.catch(async err => { - // If there's a route catch handler, process that first - if (catchHandler) { - { - // Still include URL here as it will be async from the console group - // and may not make sense without the URL - logger.groupCollapsed(`Error thrown when responding to: ` + ` ${getFriendlyURL(url)}. Falling back to route's Catch Handler.`); - logger.error(`Error thrown by:`, route); - logger.error(err); - logger.groupEnd(); - } - try { - return await catchHandler.handle({ - url, - request, - event, - params - }); - } catch (catchErr) { - if (catchErr instanceof Error) { - err = catchErr; - } - } - } - if (this._catchHandler) { - { - // Still include URL here as it will be async from the console group - // and may not make sense without the URL - logger.groupCollapsed(`Error thrown when responding to: ` + ` ${getFriendlyURL(url)}. Falling back to global Catch Handler.`); - logger.error(`Error thrown by:`, route); - logger.error(err); - logger.groupEnd(); - } - return this._catchHandler.handle({ - url, - request, - event - }); - } - throw err; - }); - } - return responsePromise; - } - /** - * Checks a request and URL (and optionally an event) against the list of - * registered routes, and if there's a match, returns the corresponding - * route along with any params generated by the match. - * - * @param {Object} options - * @param {URL} options.url - * @param {boolean} options.sameOrigin The result of comparing `url.origin` - * against the current origin. - * @param {Request} options.request The request to match. - * @param {Event} options.event The corresponding event. - * @return {Object} An object with `route` and `params` properties. - * They are populated if a matching route was found or `undefined` - * otherwise. - */ - findMatchingRoute({ - url, - sameOrigin, - request, - event - }) { - const routes = this._routes.get(request.method) || []; - for (const route of routes) { - let params; - // route.match returns type any, not possible to change right now. - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const matchResult = route.match({ - url, - sameOrigin, - request, - event - }); - if (matchResult) { - { - // Warn developers that using an async matchCallback is almost always - // not the right thing to do. - if (matchResult instanceof Promise) { - logger.warn(`While routing ${getFriendlyURL(url)}, an async ` + `matchCallback function was used. Please convert the ` + `following route to use a synchronous matchCallback function:`, route); - } - } - // See https://github.com/GoogleChrome/workbox/issues/2079 - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - params = matchResult; - if (Array.isArray(params) && params.length === 0) { - // Instead of passing an empty array in as params, use undefined. - params = undefined; - } else if (matchResult.constructor === Object && - // eslint-disable-line - Object.keys(matchResult).length === 0) { - // Instead of passing an empty object in as params, use undefined. - params = undefined; - } else if (typeof matchResult === 'boolean') { - // For the boolean value true (rather than just something truth-y), - // don't set params. - // See https://github.com/GoogleChrome/workbox/pull/2134#issuecomment-513924353 - params = undefined; - } - // Return early if have a match. - return { - route, - params - }; - } - } - // If no match was found above, return and empty object. - return {}; - } - /** - * Define a default `handler` that's called when no routes explicitly - * match the incoming request. - * - * Each HTTP method ('GET', 'POST', etc.) gets its own default handler. - * - * Without a default handler, unmatched requests will go against the - * network as if there were no service worker present. - * - * @param {workbox-routing~handlerCallback} handler A callback - * function that returns a Promise resulting in a Response. - * @param {string} [method='GET'] The HTTP method to associate with this - * default handler. Each method has its own default. - */ - setDefaultHandler(handler, method = defaultMethod) { - this._defaultHandlerMap.set(method, normalizeHandler(handler)); - } - /** - * If a Route throws an error while handling a request, this `handler` - * will be called and given a chance to provide a response. - * - * @param {workbox-routing~handlerCallback} handler A callback - * function that returns a Promise resulting in a Response. - */ - setCatchHandler(handler) { - this._catchHandler = normalizeHandler(handler); - } - /** - * Registers a route with the router. - * - * @param {workbox-routing.Route} route The route to register. - */ - registerRoute(route) { - { - finalAssertExports.isType(route, 'object', { - moduleName: 'workbox-routing', - className: 'Router', - funcName: 'registerRoute', - paramName: 'route' - }); - finalAssertExports.hasMethod(route, 'match', { - moduleName: 'workbox-routing', - className: 'Router', - funcName: 'registerRoute', - paramName: 'route' - }); - finalAssertExports.isType(route.handler, 'object', { - moduleName: 'workbox-routing', - className: 'Router', - funcName: 'registerRoute', - paramName: 'route' - }); - finalAssertExports.hasMethod(route.handler, 'handle', { - moduleName: 'workbox-routing', - className: 'Router', - funcName: 'registerRoute', - paramName: 'route.handler' - }); - finalAssertExports.isType(route.method, 'string', { - moduleName: 'workbox-routing', - className: 'Router', - funcName: 'registerRoute', - paramName: 'route.method' - }); - } - if (!this._routes.has(route.method)) { - this._routes.set(route.method, []); - } - // Give precedence to all of the earlier routes by adding this additional - // route to the end of the array. - this._routes.get(route.method).push(route); - } - /** - * Unregisters a route with the router. - * - * @param {workbox-routing.Route} route The route to unregister. - */ - unregisterRoute(route) { - if (!this._routes.has(route.method)) { - throw new WorkboxError('unregister-route-but-not-found-with-method', { - method: route.method - }); - } - const routeIndex = this._routes.get(route.method).indexOf(route); - if (routeIndex > -1) { - this._routes.get(route.method).splice(routeIndex, 1); - } else { - throw new WorkboxError('unregister-route-route-not-registered'); - } - } - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - let defaultRouter; - /** - * Creates a new, singleton Router instance if one does not exist. If one - * does already exist, that instance is returned. - * - * @private - * @return {Router} - */ - const getOrCreateDefaultRouter = () => { - if (!defaultRouter) { - defaultRouter = new Router(); - // The helpers that use the default Router assume these listeners exist. - defaultRouter.addFetchListener(); - defaultRouter.addCacheListener(); - } - return defaultRouter; - }; - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Easily register a RegExp, string, or function with a caching - * strategy to a singleton Router instance. - * - * This method will generate a Route for you if needed and - * call {@link workbox-routing.Router#registerRoute}. - * - * @param {RegExp|string|workbox-routing.Route~matchCallback|workbox-routing.Route} capture - * If the capture param is a `Route`, all other arguments will be ignored. - * @param {workbox-routing~handlerCallback} [handler] A callback - * function that returns a Promise resulting in a Response. This parameter - * is required if `capture` is not a `Route` object. - * @param {string} [method='GET'] The HTTP method to match the Route - * against. - * @return {workbox-routing.Route} The generated `Route`. - * - * @memberof workbox-routing - */ - function registerRoute(capture, handler, method) { - let route; - if (typeof capture === 'string') { - const captureUrl = new URL(capture, location.href); - { - if (!(capture.startsWith('/') || capture.startsWith('http'))) { - throw new WorkboxError('invalid-string', { - moduleName: 'workbox-routing', - funcName: 'registerRoute', - paramName: 'capture' - }); - } - // We want to check if Express-style wildcards are in the pathname only. - // TODO: Remove this log message in v4. - const valueToCheck = capture.startsWith('http') ? captureUrl.pathname : capture; - // See https://github.com/pillarjs/path-to-regexp#parameters - const wildcards = '[*:?+]'; - if (new RegExp(`${wildcards}`).exec(valueToCheck)) { - logger.debug(`The '$capture' parameter contains an Express-style wildcard ` + `character (${wildcards}). Strings are now always interpreted as ` + `exact matches; use a RegExp for partial or wildcard matches.`); - } - } - const matchCallback = ({ - url - }) => { - { - if (url.pathname === captureUrl.pathname && url.origin !== captureUrl.origin) { - logger.debug(`${capture} only partially matches the cross-origin URL ` + `${url.toString()}. This route will only handle cross-origin requests ` + `if they match the entire URL.`); - } - } - return url.href === captureUrl.href; - }; - // If `capture` is a string then `handler` and `method` must be present. - route = new Route(matchCallback, handler, method); - } else if (capture instanceof RegExp) { - // If `capture` is a `RegExp` then `handler` and `method` must be present. - route = new RegExpRoute(capture, handler, method); - } else if (typeof capture === 'function') { - // If `capture` is a function then `handler` and `method` must be present. - route = new Route(capture, handler, method); - } else if (capture instanceof Route) { - route = capture; - } else { - throw new WorkboxError('unsupported-route-type', { - moduleName: 'workbox-routing', - funcName: 'registerRoute', - paramName: 'capture' - }); - } - const defaultRouter = getOrCreateDefaultRouter(); - defaultRouter.registerRoute(route); - return route; - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - const _cacheNameDetails = { - googleAnalytics: 'googleAnalytics', - precache: 'precache-v2', - prefix: 'workbox', - runtime: 'runtime', - suffix: typeof registration !== 'undefined' ? registration.scope : '' - }; - const _createCacheName = cacheName => { - return [_cacheNameDetails.prefix, cacheName, _cacheNameDetails.suffix].filter(value => value && value.length > 0).join('-'); - }; - const eachCacheNameDetail = fn => { - for (const key of Object.keys(_cacheNameDetails)) { - fn(key); - } - }; - const cacheNames = { - updateDetails: details => { - eachCacheNameDetail(key => { - if (typeof details[key] === 'string') { - _cacheNameDetails[key] = details[key]; - } - }); - }, - getGoogleAnalyticsName: userCacheName => { - return userCacheName || _createCacheName(_cacheNameDetails.googleAnalytics); - }, - getPrecacheName: userCacheName => { - return userCacheName || _createCacheName(_cacheNameDetails.precache); - }, - getPrefix: () => { - return _cacheNameDetails.prefix; - }, - getRuntimeName: userCacheName => { - return userCacheName || _createCacheName(_cacheNameDetails.runtime); - }, - getSuffix: () => { - return _cacheNameDetails.suffix; - } - }; - - /* - Copyright 2020 Google LLC - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * A utility method that makes it easier to use `event.waitUntil` with - * async functions and return the result. - * - * @param {ExtendableEvent} event - * @param {Function} asyncFn - * @return {Function} - * @private - */ - function waitUntil(event, asyncFn) { - const returnPromise = asyncFn(); - event.waitUntil(returnPromise); - return returnPromise; - } - - // @ts-ignore - try { - self['workbox:precaching:7.0.0'] && _(); - } catch (e) {} - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - // Name of the search parameter used to store revision info. - const REVISION_SEARCH_PARAM = '__WB_REVISION__'; - /** - * Converts a manifest entry into a versioned URL suitable for precaching. - * - * @param {Object|string} entry - * @return {string} A URL with versioning info. - * - * @private - * @memberof workbox-precaching - */ - function createCacheKey(entry) { - if (!entry) { - throw new WorkboxError('add-to-cache-list-unexpected-type', { - entry - }); - } - // If a precache manifest entry is a string, it's assumed to be a versioned - // URL, like '/app.abcd1234.js'. Return as-is. - if (typeof entry === 'string') { - const urlObject = new URL(entry, location.href); - return { - cacheKey: urlObject.href, - url: urlObject.href - }; - } - const { - revision, - url - } = entry; - if (!url) { - throw new WorkboxError('add-to-cache-list-unexpected-type', { - entry - }); - } - // If there's just a URL and no revision, then it's also assumed to be a - // versioned URL. - if (!revision) { - const urlObject = new URL(url, location.href); - return { - cacheKey: urlObject.href, - url: urlObject.href - }; - } - // Otherwise, construct a properly versioned URL using the custom Workbox - // search parameter along with the revision info. - const cacheKeyURL = new URL(url, location.href); - const originalURL = new URL(url, location.href); - cacheKeyURL.searchParams.set(REVISION_SEARCH_PARAM, revision); - return { - cacheKey: cacheKeyURL.href, - url: originalURL.href - }; - } - - /* - Copyright 2020 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * A plugin, designed to be used with PrecacheController, to determine the - * of assets that were updated (or not updated) during the install event. - * - * @private - */ - class PrecacheInstallReportPlugin { - constructor() { - this.updatedURLs = []; - this.notUpdatedURLs = []; - this.handlerWillStart = async ({ - request, - state - }) => { - // TODO: `state` should never be undefined... - if (state) { - state.originalRequest = request; - } - }; - this.cachedResponseWillBeUsed = async ({ - event, - state, - cachedResponse - }) => { - if (event.type === 'install') { - if (state && state.originalRequest && state.originalRequest instanceof Request) { - // TODO: `state` should never be undefined... - const url = state.originalRequest.url; - if (cachedResponse) { - this.notUpdatedURLs.push(url); - } else { - this.updatedURLs.push(url); - } - } - } - return cachedResponse; - }; - } - } - - /* - Copyright 2020 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * A plugin, designed to be used with PrecacheController, to translate URLs into - * the corresponding cache key, based on the current revision info. - * - * @private - */ - class PrecacheCacheKeyPlugin { - constructor({ - precacheController - }) { - this.cacheKeyWillBeUsed = async ({ - request, - params - }) => { - // Params is type any, can't change right now. - /* eslint-disable */ - const cacheKey = (params === null || params === void 0 ? void 0 : params.cacheKey) || this._precacheController.getCacheKeyForURL(request.url); - /* eslint-enable */ - return cacheKey ? new Request(cacheKey, { - headers: request.headers - }) : request; - }; - this._precacheController = precacheController; - } - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * @param {string} groupTitle - * @param {Array} deletedURLs - * - * @private - */ - const logGroup = (groupTitle, deletedURLs) => { - logger.groupCollapsed(groupTitle); - for (const url of deletedURLs) { - logger.log(url); - } - logger.groupEnd(); - }; - /** - * @param {Array} deletedURLs - * - * @private - * @memberof workbox-precaching - */ - function printCleanupDetails(deletedURLs) { - const deletionCount = deletedURLs.length; - if (deletionCount > 0) { - logger.groupCollapsed(`During precaching cleanup, ` + `${deletionCount} cached ` + `request${deletionCount === 1 ? ' was' : 's were'} deleted.`); - logGroup('Deleted Cache Requests', deletedURLs); - logger.groupEnd(); - } - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * @param {string} groupTitle - * @param {Array} urls - * - * @private - */ - function _nestedGroup(groupTitle, urls) { - if (urls.length === 0) { - return; - } - logger.groupCollapsed(groupTitle); - for (const url of urls) { - logger.log(url); - } - logger.groupEnd(); - } - /** - * @param {Array} urlsToPrecache - * @param {Array} urlsAlreadyPrecached - * - * @private - * @memberof workbox-precaching - */ - function printInstallDetails(urlsToPrecache, urlsAlreadyPrecached) { - const precachedCount = urlsToPrecache.length; - const alreadyPrecachedCount = urlsAlreadyPrecached.length; - if (precachedCount || alreadyPrecachedCount) { - let message = `Precaching ${precachedCount} file${precachedCount === 1 ? '' : 's'}.`; - if (alreadyPrecachedCount > 0) { - message += ` ${alreadyPrecachedCount} ` + `file${alreadyPrecachedCount === 1 ? ' is' : 's are'} already cached.`; - } - logger.groupCollapsed(message); - _nestedGroup(`View newly precached URLs.`, urlsToPrecache); - _nestedGroup(`View previously precached URLs.`, urlsAlreadyPrecached); - logger.groupEnd(); - } - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - let supportStatus; - /** - * A utility function that determines whether the current browser supports - * constructing a new `Response` from a `response.body` stream. - * - * @return {boolean} `true`, if the current browser can successfully - * construct a `Response` from a `response.body` stream, `false` otherwise. - * - * @private - */ - function canConstructResponseFromBodyStream() { - if (supportStatus === undefined) { - const testResponse = new Response(''); - if ('body' in testResponse) { - try { - new Response(testResponse.body); - supportStatus = true; - } catch (error) { - supportStatus = false; - } - } - supportStatus = false; - } - return supportStatus; - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Allows developers to copy a response and modify its `headers`, `status`, - * or `statusText` values (the values settable via a - * [`ResponseInit`]{@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#Syntax} - * object in the constructor). - * To modify these values, pass a function as the second argument. That - * function will be invoked with a single object with the response properties - * `{headers, status, statusText}`. The return value of this function will - * be used as the `ResponseInit` for the new `Response`. To change the values - * either modify the passed parameter(s) and return it, or return a totally - * new object. - * - * This method is intentionally limited to same-origin responses, regardless of - * whether CORS was used or not. - * - * @param {Response} response - * @param {Function} modifier - * @memberof workbox-core - */ - async function copyResponse(response, modifier) { - let origin = null; - // If response.url isn't set, assume it's cross-origin and keep origin null. - if (response.url) { - const responseURL = new URL(response.url); - origin = responseURL.origin; - } - if (origin !== self.location.origin) { - throw new WorkboxError('cross-origin-copy-response', { - origin - }); - } - const clonedResponse = response.clone(); - // Create a fresh `ResponseInit` object by cloning the headers. - const responseInit = { - headers: new Headers(clonedResponse.headers), - status: clonedResponse.status, - statusText: clonedResponse.statusText - }; - // Apply any user modifications. - const modifiedResponseInit = modifier ? modifier(responseInit) : responseInit; - // Create the new response from the body stream and `ResponseInit` - // modifications. Note: not all browsers support the Response.body stream, - // so fall back to reading the entire body into memory as a blob. - const body = canConstructResponseFromBodyStream() ? clonedResponse.body : await clonedResponse.blob(); - return new Response(body, modifiedResponseInit); - } - - /* - Copyright 2020 Google LLC - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - function stripParams(fullURL, ignoreParams) { - const strippedURL = new URL(fullURL); - for (const param of ignoreParams) { - strippedURL.searchParams.delete(param); - } - return strippedURL.href; - } - /** - * Matches an item in the cache, ignoring specific URL params. This is similar - * to the `ignoreSearch` option, but it allows you to ignore just specific - * params (while continuing to match on the others). - * - * @private - * @param {Cache} cache - * @param {Request} request - * @param {Object} matchOptions - * @param {Array} ignoreParams - * @return {Promise} - */ - async function cacheMatchIgnoreParams(cache, request, ignoreParams, matchOptions) { - const strippedRequestURL = stripParams(request.url, ignoreParams); - // If the request doesn't include any ignored params, match as normal. - if (request.url === strippedRequestURL) { - return cache.match(request, matchOptions); - } - // Otherwise, match by comparing keys - const keysOptions = Object.assign(Object.assign({}, matchOptions), { - ignoreSearch: true - }); - const cacheKeys = await cache.keys(request, keysOptions); - for (const cacheKey of cacheKeys) { - const strippedCacheKeyURL = stripParams(cacheKey.url, ignoreParams); - if (strippedRequestURL === strippedCacheKeyURL) { - return cache.match(cacheKey, matchOptions); - } - } - return; - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * The Deferred class composes Promises in a way that allows for them to be - * resolved or rejected from outside the constructor. In most cases promises - * should be used directly, but Deferreds can be necessary when the logic to - * resolve a promise must be separate. - * - * @private - */ - class Deferred { - /** - * Creates a promise and exposes its resolve and reject functions as methods. - */ - constructor() { - this.promise = new Promise((resolve, reject) => { - this.resolve = resolve; - this.reject = reject; - }); - } - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - // Callbacks to be executed whenever there's a quota error. - // Can't change Function type right now. - // eslint-disable-next-line @typescript-eslint/ban-types - const quotaErrorCallbacks = new Set(); - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Runs all of the callback functions, one at a time sequentially, in the order - * in which they were registered. - * - * @memberof workbox-core - * @private - */ - async function executeQuotaErrorCallbacks() { - { - logger.log(`About to run ${quotaErrorCallbacks.size} ` + `callbacks to clean up caches.`); - } - for (const callback of quotaErrorCallbacks) { - await callback(); - { - logger.log(callback, 'is complete.'); - } - } - { - logger.log('Finished running callbacks.'); - } - } - - /* - Copyright 2019 Google LLC - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Returns a promise that resolves and the passed number of milliseconds. - * This utility is an async/await-friendly version of `setTimeout`. - * - * @param {number} ms - * @return {Promise} - * @private - */ - function timeout(ms) { - return new Promise(resolve => setTimeout(resolve, ms)); - } - - // @ts-ignore - try { - self['workbox:strategies:7.0.0'] && _(); - } catch (e) {} - - /* - Copyright 2020 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - function toRequest(input) { - return typeof input === 'string' ? new Request(input) : input; - } - /** - * A class created every time a Strategy instance instance calls - * {@link workbox-strategies.Strategy~handle} or - * {@link workbox-strategies.Strategy~handleAll} that wraps all fetch and - * cache actions around plugin callbacks and keeps track of when the strategy - * is "done" (i.e. all added `event.waitUntil()` promises have resolved). - * - * @memberof workbox-strategies - */ - class StrategyHandler { - /** - * Creates a new instance associated with the passed strategy and event - * that's handling the request. - * - * The constructor also initializes the state that will be passed to each of - * the plugins handling this request. - * - * @param {workbox-strategies.Strategy} strategy - * @param {Object} options - * @param {Request|string} options.request A request to run this strategy for. - * @param {ExtendableEvent} options.event The event associated with the - * request. - * @param {URL} [options.url] - * @param {*} [options.params] The return value from the - * {@link workbox-routing~matchCallback} (if applicable). - */ - constructor(strategy, options) { - this._cacheKeys = {}; - /** - * The request the strategy is performing (passed to the strategy's - * `handle()` or `handleAll()` method). - * @name request - * @instance - * @type {Request} - * @memberof workbox-strategies.StrategyHandler - */ - /** - * The event associated with this request. - * @name event - * @instance - * @type {ExtendableEvent} - * @memberof workbox-strategies.StrategyHandler - */ - /** - * A `URL` instance of `request.url` (if passed to the strategy's - * `handle()` or `handleAll()` method). - * Note: the `url` param will be present if the strategy was invoked - * from a workbox `Route` object. - * @name url - * @instance - * @type {URL|undefined} - * @memberof workbox-strategies.StrategyHandler - */ - /** - * A `param` value (if passed to the strategy's - * `handle()` or `handleAll()` method). - * Note: the `param` param will be present if the strategy was invoked - * from a workbox `Route` object and the - * {@link workbox-routing~matchCallback} returned - * a truthy value (it will be that value). - * @name params - * @instance - * @type {*|undefined} - * @memberof workbox-strategies.StrategyHandler - */ - { - finalAssertExports.isInstance(options.event, ExtendableEvent, { - moduleName: 'workbox-strategies', - className: 'StrategyHandler', - funcName: 'constructor', - paramName: 'options.event' - }); - } - Object.assign(this, options); - this.event = options.event; - this._strategy = strategy; - this._handlerDeferred = new Deferred(); - this._extendLifetimePromises = []; - // Copy the plugins list (since it's mutable on the strategy), - // so any mutations don't affect this handler instance. - this._plugins = [...strategy.plugins]; - this._pluginStateMap = new Map(); - for (const plugin of this._plugins) { - this._pluginStateMap.set(plugin, {}); - } - this.event.waitUntil(this._handlerDeferred.promise); - } - /** - * Fetches a given request (and invokes any applicable plugin callback - * methods) using the `fetchOptions` (for non-navigation requests) and - * `plugins` defined on the `Strategy` object. - * - * The following plugin lifecycle methods are invoked when using this method: - * - `requestWillFetch()` - * - `fetchDidSucceed()` - * - `fetchDidFail()` - * - * @param {Request|string} input The URL or request to fetch. - * @return {Promise} - */ - async fetch(input) { - const { - event - } = this; - let request = toRequest(input); - if (request.mode === 'navigate' && event instanceof FetchEvent && event.preloadResponse) { - const possiblePreloadResponse = await event.preloadResponse; - if (possiblePreloadResponse) { - { - logger.log(`Using a preloaded navigation response for ` + `'${getFriendlyURL(request.url)}'`); - } - return possiblePreloadResponse; - } - } - // If there is a fetchDidFail plugin, we need to save a clone of the - // original request before it's either modified by a requestWillFetch - // plugin or before the original request's body is consumed via fetch(). - const originalRequest = this.hasCallback('fetchDidFail') ? request.clone() : null; - try { - for (const cb of this.iterateCallbacks('requestWillFetch')) { - request = await cb({ - request: request.clone(), - event - }); - } - } catch (err) { - if (err instanceof Error) { - throw new WorkboxError('plugin-error-request-will-fetch', { - thrownErrorMessage: err.message - }); - } - } - // The request can be altered by plugins with `requestWillFetch` making - // the original request (most likely from a `fetch` event) different - // from the Request we make. Pass both to `fetchDidFail` to aid debugging. - const pluginFilteredRequest = request.clone(); - try { - let fetchResponse; - // See https://github.com/GoogleChrome/workbox/issues/1796 - fetchResponse = await fetch(request, request.mode === 'navigate' ? undefined : this._strategy.fetchOptions); - if ("development" !== 'production') { - logger.debug(`Network request for ` + `'${getFriendlyURL(request.url)}' returned a response with ` + `status '${fetchResponse.status}'.`); - } - for (const callback of this.iterateCallbacks('fetchDidSucceed')) { - fetchResponse = await callback({ - event, - request: pluginFilteredRequest, - response: fetchResponse - }); - } - return fetchResponse; - } catch (error) { - { - logger.log(`Network request for ` + `'${getFriendlyURL(request.url)}' threw an error.`, error); - } - // `originalRequest` will only exist if a `fetchDidFail` callback - // is being used (see above). - if (originalRequest) { - await this.runCallbacks('fetchDidFail', { - error: error, - event, - originalRequest: originalRequest.clone(), - request: pluginFilteredRequest.clone() - }); - } - throw error; - } - } - /** - * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on - * the response generated by `this.fetch()`. - * - * The call to `this.cachePut()` automatically invokes `this.waitUntil()`, - * so you do not have to manually call `waitUntil()` on the event. - * - * @param {Request|string} input The request or URL to fetch and cache. - * @return {Promise} - */ - async fetchAndCachePut(input) { - const response = await this.fetch(input); - const responseClone = response.clone(); - void this.waitUntil(this.cachePut(input, responseClone)); - return response; - } - /** - * Matches a request from the cache (and invokes any applicable plugin - * callback methods) using the `cacheName`, `matchOptions`, and `plugins` - * defined on the strategy object. - * - * The following plugin lifecycle methods are invoked when using this method: - * - cacheKeyWillByUsed() - * - cachedResponseWillByUsed() - * - * @param {Request|string} key The Request or URL to use as the cache key. - * @return {Promise} A matching response, if found. - */ - async cacheMatch(key) { - const request = toRequest(key); - let cachedResponse; - const { - cacheName, - matchOptions - } = this._strategy; - const effectiveRequest = await this.getCacheKey(request, 'read'); - const multiMatchOptions = Object.assign(Object.assign({}, matchOptions), { - cacheName - }); - cachedResponse = await caches.match(effectiveRequest, multiMatchOptions); - { - if (cachedResponse) { - logger.debug(`Found a cached response in '${cacheName}'.`); - } else { - logger.debug(`No cached response found in '${cacheName}'.`); - } - } - for (const callback of this.iterateCallbacks('cachedResponseWillBeUsed')) { - cachedResponse = (await callback({ - cacheName, - matchOptions, - cachedResponse, - request: effectiveRequest, - event: this.event - })) || undefined; - } - return cachedResponse; - } - /** - * Puts a request/response pair in the cache (and invokes any applicable - * plugin callback methods) using the `cacheName` and `plugins` defined on - * the strategy object. - * - * The following plugin lifecycle methods are invoked when using this method: - * - cacheKeyWillByUsed() - * - cacheWillUpdate() - * - cacheDidUpdate() - * - * @param {Request|string} key The request or URL to use as the cache key. - * @param {Response} response The response to cache. - * @return {Promise} `false` if a cacheWillUpdate caused the response - * not be cached, and `true` otherwise. - */ - async cachePut(key, response) { - const request = toRequest(key); - // Run in the next task to avoid blocking other cache reads. - // https://github.com/w3c/ServiceWorker/issues/1397 - await timeout(0); - const effectiveRequest = await this.getCacheKey(request, 'write'); - { - if (effectiveRequest.method && effectiveRequest.method !== 'GET') { - throw new WorkboxError('attempt-to-cache-non-get-request', { - url: getFriendlyURL(effectiveRequest.url), - method: effectiveRequest.method - }); - } - // See https://github.com/GoogleChrome/workbox/issues/2818 - const vary = response.headers.get('Vary'); - if (vary) { - logger.debug(`The response for ${getFriendlyURL(effectiveRequest.url)} ` + `has a 'Vary: ${vary}' header. ` + `Consider setting the {ignoreVary: true} option on your strategy ` + `to ensure cache matching and deletion works as expected.`); - } - } - if (!response) { - { - logger.error(`Cannot cache non-existent response for ` + `'${getFriendlyURL(effectiveRequest.url)}'.`); - } - throw new WorkboxError('cache-put-with-no-response', { - url: getFriendlyURL(effectiveRequest.url) - }); - } - const responseToCache = await this._ensureResponseSafeToCache(response); - if (!responseToCache) { - { - logger.debug(`Response '${getFriendlyURL(effectiveRequest.url)}' ` + `will not be cached.`, responseToCache); - } - return false; - } - const { - cacheName, - matchOptions - } = this._strategy; - const cache = await self.caches.open(cacheName); - const hasCacheUpdateCallback = this.hasCallback('cacheDidUpdate'); - const oldResponse = hasCacheUpdateCallback ? await cacheMatchIgnoreParams( - // TODO(philipwalton): the `__WB_REVISION__` param is a precaching - // feature. Consider into ways to only add this behavior if using - // precaching. - cache, effectiveRequest.clone(), ['__WB_REVISION__'], matchOptions) : null; - { - logger.debug(`Updating the '${cacheName}' cache with a new Response ` + `for ${getFriendlyURL(effectiveRequest.url)}.`); - } - try { - await cache.put(effectiveRequest, hasCacheUpdateCallback ? responseToCache.clone() : responseToCache); - } catch (error) { - if (error instanceof Error) { - // See https://developer.mozilla.org/en-US/docs/Web/API/DOMException#exception-QuotaExceededError - if (error.name === 'QuotaExceededError') { - await executeQuotaErrorCallbacks(); - } - throw error; - } - } - for (const callback of this.iterateCallbacks('cacheDidUpdate')) { - await callback({ - cacheName, - oldResponse, - newResponse: responseToCache.clone(), - request: effectiveRequest, - event: this.event - }); - } - return true; - } - /** - * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and - * executes any of those callbacks found in sequence. The final `Request` - * object returned by the last plugin is treated as the cache key for cache - * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have - * been registered, the passed request is returned unmodified - * - * @param {Request} request - * @param {string} mode - * @return {Promise} - */ - async getCacheKey(request, mode) { - const key = `${request.url} | ${mode}`; - if (!this._cacheKeys[key]) { - let effectiveRequest = request; - for (const callback of this.iterateCallbacks('cacheKeyWillBeUsed')) { - effectiveRequest = toRequest(await callback({ - mode, - request: effectiveRequest, - event: this.event, - // params has a type any can't change right now. - params: this.params // eslint-disable-line - })); - } - this._cacheKeys[key] = effectiveRequest; - } - return this._cacheKeys[key]; - } - /** - * Returns true if the strategy has at least one plugin with the given - * callback. - * - * @param {string} name The name of the callback to check for. - * @return {boolean} - */ - hasCallback(name) { - for (const plugin of this._strategy.plugins) { - if (name in plugin) { - return true; - } - } - return false; - } - /** - * Runs all plugin callbacks matching the given name, in order, passing the - * given param object (merged ith the current plugin state) as the only - * argument. - * - * Note: since this method runs all plugins, it's not suitable for cases - * where the return value of a callback needs to be applied prior to calling - * the next callback. See - * {@link workbox-strategies.StrategyHandler#iterateCallbacks} - * below for how to handle that case. - * - * @param {string} name The name of the callback to run within each plugin. - * @param {Object} param The object to pass as the first (and only) param - * when executing each callback. This object will be merged with the - * current plugin state prior to callback execution. - */ - async runCallbacks(name, param) { - for (const callback of this.iterateCallbacks(name)) { - // TODO(philipwalton): not sure why `any` is needed. It seems like - // this should work with `as WorkboxPluginCallbackParam[C]`. - await callback(param); - } - } - /** - * Accepts a callback and returns an iterable of matching plugin callbacks, - * where each callback is wrapped with the current handler state (i.e. when - * you call each callback, whatever object parameter you pass it will - * be merged with the plugin's current state). - * - * @param {string} name The name fo the callback to run - * @return {Array} - */ - *iterateCallbacks(name) { - for (const plugin of this._strategy.plugins) { - if (typeof plugin[name] === 'function') { - const state = this._pluginStateMap.get(plugin); - const statefulCallback = param => { - const statefulParam = Object.assign(Object.assign({}, param), { - state - }); - // TODO(philipwalton): not sure why `any` is needed. It seems like - // this should work with `as WorkboxPluginCallbackParam[C]`. - return plugin[name](statefulParam); - }; - yield statefulCallback; - } - } - } - /** - * Adds a promise to the - * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises} - * of the event event associated with the request being handled (usually a - * `FetchEvent`). - * - * Note: you can await - * {@link workbox-strategies.StrategyHandler~doneWaiting} - * to know when all added promises have settled. - * - * @param {Promise} promise A promise to add to the extend lifetime promises - * of the event that triggered the request. - */ - waitUntil(promise) { - this._extendLifetimePromises.push(promise); - return promise; - } - /** - * Returns a promise that resolves once all promises passed to - * {@link workbox-strategies.StrategyHandler~waitUntil} - * have settled. - * - * Note: any work done after `doneWaiting()` settles should be manually - * passed to an event's `waitUntil()` method (not this handler's - * `waitUntil()` method), otherwise the service worker thread my be killed - * prior to your work completing. - */ - async doneWaiting() { - let promise; - while (promise = this._extendLifetimePromises.shift()) { - await promise; - } - } - /** - * Stops running the strategy and immediately resolves any pending - * `waitUntil()` promises. - */ - destroy() { - this._handlerDeferred.resolve(null); - } - /** - * This method will call cacheWillUpdate on the available plugins (or use - * status === 200) to determine if the Response is safe and valid to cache. - * - * @param {Request} options.request - * @param {Response} options.response - * @return {Promise} - * - * @private - */ - async _ensureResponseSafeToCache(response) { - let responseToCache = response; - let pluginsUsed = false; - for (const callback of this.iterateCallbacks('cacheWillUpdate')) { - responseToCache = (await callback({ - request: this.request, - response: responseToCache, - event: this.event - })) || undefined; - pluginsUsed = true; - if (!responseToCache) { - break; - } - } - if (!pluginsUsed) { - if (responseToCache && responseToCache.status !== 200) { - responseToCache = undefined; - } - { - if (responseToCache) { - if (responseToCache.status !== 200) { - if (responseToCache.status === 0) { - logger.warn(`The response for '${this.request.url}' ` + `is an opaque response. The caching strategy that you're ` + `using will not cache opaque responses by default.`); - } else { - logger.debug(`The response for '${this.request.url}' ` + `returned a status code of '${response.status}' and won't ` + `be cached as a result.`); - } - } - } - } - } - return responseToCache; - } - } - - /* - Copyright 2020 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * An abstract base class that all other strategy classes must extend from: - * - * @memberof workbox-strategies - */ - class Strategy { - /** - * Creates a new instance of the strategy and sets all documented option - * properties as public instance properties. - * - * Note: if a custom strategy class extends the base Strategy class and does - * not need more than these properties, it does not need to define its own - * constructor. - * - * @param {Object} [options] - * @param {string} [options.cacheName] Cache name to store and retrieve - * requests. Defaults to the cache names provided by - * {@link workbox-core.cacheNames}. - * @param {Array} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} - * to use in conjunction with this caching strategy. - * @param {Object} [options.fetchOptions] Values passed along to the - * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) - * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796) - * `fetch()` requests made by this strategy. - * @param {Object} [options.matchOptions] The - * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions} - * for any `cache.match()` or `cache.put()` calls made by this strategy. - */ - constructor(options = {}) { - /** - * Cache name to store and retrieve - * requests. Defaults to the cache names provided by - * {@link workbox-core.cacheNames}. - * - * @type {string} - */ - this.cacheName = cacheNames.getRuntimeName(options.cacheName); - /** - * The list - * [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} - * used by this strategy. - * - * @type {Array} - */ - this.plugins = options.plugins || []; - /** - * Values passed along to the - * [`init`]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters} - * of all fetch() requests made by this strategy. - * - * @type {Object} - */ - this.fetchOptions = options.fetchOptions; - /** - * The - * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions} - * for any `cache.match()` or `cache.put()` calls made by this strategy. - * - * @type {Object} - */ - this.matchOptions = options.matchOptions; - } - /** - * Perform a request strategy and returns a `Promise` that will resolve with - * a `Response`, invoking all relevant plugin callbacks. - * - * When a strategy instance is registered with a Workbox - * {@link workbox-routing.Route}, this method is automatically - * called when the route matches. - * - * Alternatively, this method can be used in a standalone `FetchEvent` - * listener by passing it to `event.respondWith()`. - * - * @param {FetchEvent|Object} options A `FetchEvent` or an object with the - * properties listed below. - * @param {Request|string} options.request A request to run this strategy for. - * @param {ExtendableEvent} options.event The event associated with the - * request. - * @param {URL} [options.url] - * @param {*} [options.params] - */ - handle(options) { - const [responseDone] = this.handleAll(options); - return responseDone; - } - /** - * Similar to {@link workbox-strategies.Strategy~handle}, but - * instead of just returning a `Promise` that resolves to a `Response` it - * it will return an tuple of `[response, done]` promises, where the former - * (`response`) is equivalent to what `handle()` returns, and the latter is a - * Promise that will resolve once any promises that were added to - * `event.waitUntil()` as part of performing the strategy have completed. - * - * You can await the `done` promise to ensure any extra work performed by - * the strategy (usually caching responses) completes successfully. - * - * @param {FetchEvent|Object} options A `FetchEvent` or an object with the - * properties listed below. - * @param {Request|string} options.request A request to run this strategy for. - * @param {ExtendableEvent} options.event The event associated with the - * request. - * @param {URL} [options.url] - * @param {*} [options.params] - * @return {Array} A tuple of [response, done] - * promises that can be used to determine when the response resolves as - * well as when the handler has completed all its work. - */ - handleAll(options) { - // Allow for flexible options to be passed. - if (options instanceof FetchEvent) { - options = { - event: options, - request: options.request - }; - } - const event = options.event; - const request = typeof options.request === 'string' ? new Request(options.request) : options.request; - const params = 'params' in options ? options.params : undefined; - const handler = new StrategyHandler(this, { - event, - request, - params - }); - const responseDone = this._getResponse(handler, request, event); - const handlerDone = this._awaitComplete(responseDone, handler, request, event); - // Return an array of promises, suitable for use with Promise.all(). - return [responseDone, handlerDone]; - } - async _getResponse(handler, request, event) { - await handler.runCallbacks('handlerWillStart', { - event, - request - }); - let response = undefined; - try { - response = await this._handle(request, handler); - // The "official" Strategy subclasses all throw this error automatically, - // but in case a third-party Strategy doesn't, ensure that we have a - // consistent failure when there's no response or an error response. - if (!response || response.type === 'error') { - throw new WorkboxError('no-response', { - url: request.url - }); - } - } catch (error) { - if (error instanceof Error) { - for (const callback of handler.iterateCallbacks('handlerDidError')) { - response = await callback({ - error, - event, - request - }); - if (response) { - break; - } - } - } - if (!response) { - throw error; - } else { - logger.log(`While responding to '${getFriendlyURL(request.url)}', ` + `an ${error instanceof Error ? error.toString() : ''} error occurred. Using a fallback response provided by ` + `a handlerDidError plugin.`); - } - } - for (const callback of handler.iterateCallbacks('handlerWillRespond')) { - response = await callback({ - event, - request, - response - }); - } - return response; - } - async _awaitComplete(responseDone, handler, request, event) { - let response; - let error; - try { - response = await responseDone; - } catch (error) { - // Ignore errors, as response errors should be caught via the `response` - // promise above. The `done` promise will only throw for errors in - // promises passed to `handler.waitUntil()`. - } - try { - await handler.runCallbacks('handlerDidRespond', { - event, - request, - response - }); - await handler.doneWaiting(); - } catch (waitUntilError) { - if (waitUntilError instanceof Error) { - error = waitUntilError; - } - } - await handler.runCallbacks('handlerDidComplete', { - event, - request, - response, - error: error - }); - handler.destroy(); - if (error) { - throw error; - } - } - } - /** - * Classes extending the `Strategy` based class should implement this method, - * and leverage the {@link workbox-strategies.StrategyHandler} - * arg to perform all fetching and cache logic, which will ensure all relevant - * cache, cache options, fetch options and plugins are used (per the current - * strategy instance). - * - * @name _handle - * @instance - * @abstract - * @function - * @param {Request} request - * @param {workbox-strategies.StrategyHandler} handler - * @return {Promise} - * - * @memberof workbox-strategies.Strategy - */ - - /* - Copyright 2020 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * A {@link workbox-strategies.Strategy} implementation - * specifically designed to work with - * {@link workbox-precaching.PrecacheController} - * to both cache and fetch precached assets. - * - * Note: an instance of this class is created automatically when creating a - * `PrecacheController`; it's generally not necessary to create this yourself. - * - * @extends workbox-strategies.Strategy - * @memberof workbox-precaching - */ - class PrecacheStrategy extends Strategy { - /** - * - * @param {Object} [options] - * @param {string} [options.cacheName] Cache name to store and retrieve - * requests. Defaults to the cache names provided by - * {@link workbox-core.cacheNames}. - * @param {Array} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins} - * to use in conjunction with this caching strategy. - * @param {Object} [options.fetchOptions] Values passed along to the - * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init} - * of all fetch() requests made by this strategy. - * @param {Object} [options.matchOptions] The - * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions} - * for any `cache.match()` or `cache.put()` calls made by this strategy. - * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to - * get the response from the network if there's a precache miss. - */ - constructor(options = {}) { - options.cacheName = cacheNames.getPrecacheName(options.cacheName); - super(options); - this._fallbackToNetwork = options.fallbackToNetwork === false ? false : true; - // Redirected responses cannot be used to satisfy a navigation request, so - // any redirected response must be "copied" rather than cloned, so the new - // response doesn't contain the `redirected` flag. See: - // https://bugs.chromium.org/p/chromium/issues/detail?id=669363&desc=2#c1 - this.plugins.push(PrecacheStrategy.copyRedirectedCacheableResponsesPlugin); - } - /** - * @private - * @param {Request|string} request A request to run this strategy for. - * @param {workbox-strategies.StrategyHandler} handler The event that - * triggered the request. - * @return {Promise} - */ - async _handle(request, handler) { - const response = await handler.cacheMatch(request); - if (response) { - return response; - } - // If this is an `install` event for an entry that isn't already cached, - // then populate the cache. - if (handler.event && handler.event.type === 'install') { - return await this._handleInstall(request, handler); - } - // Getting here means something went wrong. An entry that should have been - // precached wasn't found in the cache. - return await this._handleFetch(request, handler); - } - async _handleFetch(request, handler) { - let response; - const params = handler.params || {}; - // Fall back to the network if we're configured to do so. - if (this._fallbackToNetwork) { - { - logger.warn(`The precached response for ` + `${getFriendlyURL(request.url)} in ${this.cacheName} was not ` + `found. Falling back to the network.`); - } - const integrityInManifest = params.integrity; - const integrityInRequest = request.integrity; - const noIntegrityConflict = !integrityInRequest || integrityInRequest === integrityInManifest; - // Do not add integrity if the original request is no-cors - // See https://github.com/GoogleChrome/workbox/issues/3096 - response = await handler.fetch(new Request(request, { - integrity: request.mode !== 'no-cors' ? integrityInRequest || integrityInManifest : undefined - })); - // It's only "safe" to repair the cache if we're using SRI to guarantee - // that the response matches the precache manifest's expectations, - // and there's either a) no integrity property in the incoming request - // or b) there is an integrity, and it matches the precache manifest. - // See https://github.com/GoogleChrome/workbox/issues/2858 - // Also if the original request users no-cors we don't use integrity. - // See https://github.com/GoogleChrome/workbox/issues/3096 - if (integrityInManifest && noIntegrityConflict && request.mode !== 'no-cors') { - this._useDefaultCacheabilityPluginIfNeeded(); - const wasCached = await handler.cachePut(request, response.clone()); - { - if (wasCached) { - logger.log(`A response for ${getFriendlyURL(request.url)} ` + `was used to "repair" the precache.`); - } - } - } - } else { - // This shouldn't normally happen, but there are edge cases: - // https://github.com/GoogleChrome/workbox/issues/1441 - throw new WorkboxError('missing-precache-entry', { - cacheName: this.cacheName, - url: request.url - }); - } - { - const cacheKey = params.cacheKey || (await handler.getCacheKey(request, 'read')); - // Workbox is going to handle the route. - // print the routing details to the console. - logger.groupCollapsed(`Precaching is responding to: ` + getFriendlyURL(request.url)); - logger.log(`Serving the precached url: ${getFriendlyURL(cacheKey instanceof Request ? cacheKey.url : cacheKey)}`); - logger.groupCollapsed(`View request details here.`); - logger.log(request); - logger.groupEnd(); - logger.groupCollapsed(`View response details here.`); - logger.log(response); - logger.groupEnd(); - logger.groupEnd(); - } - return response; - } - async _handleInstall(request, handler) { - this._useDefaultCacheabilityPluginIfNeeded(); - const response = await handler.fetch(request); - // Make sure we defer cachePut() until after we know the response - // should be cached; see https://github.com/GoogleChrome/workbox/issues/2737 - const wasCached = await handler.cachePut(request, response.clone()); - if (!wasCached) { - // Throwing here will lead to the `install` handler failing, which - // we want to do if *any* of the responses aren't safe to cache. - throw new WorkboxError('bad-precaching-response', { - url: request.url, - status: response.status - }); - } - return response; - } - /** - * This method is complex, as there a number of things to account for: - * - * The `plugins` array can be set at construction, and/or it might be added to - * to at any time before the strategy is used. - * - * At the time the strategy is used (i.e. during an `install` event), there - * needs to be at least one plugin that implements `cacheWillUpdate` in the - * array, other than `copyRedirectedCacheableResponsesPlugin`. - * - * - If this method is called and there are no suitable `cacheWillUpdate` - * plugins, we need to add `defaultPrecacheCacheabilityPlugin`. - * - * - If this method is called and there is exactly one `cacheWillUpdate`, then - * we don't have to do anything (this might be a previously added - * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin). - * - * - If this method is called and there is more than one `cacheWillUpdate`, - * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so, - * we need to remove it. (This situation is unlikely, but it could happen if - * the strategy is used multiple times, the first without a `cacheWillUpdate`, - * and then later on after manually adding a custom `cacheWillUpdate`.) - * - * See https://github.com/GoogleChrome/workbox/issues/2737 for more context. - * - * @private - */ - _useDefaultCacheabilityPluginIfNeeded() { - let defaultPluginIndex = null; - let cacheWillUpdatePluginCount = 0; - for (const [index, plugin] of this.plugins.entries()) { - // Ignore the copy redirected plugin when determining what to do. - if (plugin === PrecacheStrategy.copyRedirectedCacheableResponsesPlugin) { - continue; - } - // Save the default plugin's index, in case it needs to be removed. - if (plugin === PrecacheStrategy.defaultPrecacheCacheabilityPlugin) { - defaultPluginIndex = index; - } - if (plugin.cacheWillUpdate) { - cacheWillUpdatePluginCount++; - } - } - if (cacheWillUpdatePluginCount === 0) { - this.plugins.push(PrecacheStrategy.defaultPrecacheCacheabilityPlugin); - } else if (cacheWillUpdatePluginCount > 1 && defaultPluginIndex !== null) { - // Only remove the default plugin; multiple custom plugins are allowed. - this.plugins.splice(defaultPluginIndex, 1); - } - // Nothing needs to be done if cacheWillUpdatePluginCount is 1 - } - } - PrecacheStrategy.defaultPrecacheCacheabilityPlugin = { - async cacheWillUpdate({ - response - }) { - if (!response || response.status >= 400) { - return null; - } - return response; - } - }; - PrecacheStrategy.copyRedirectedCacheableResponsesPlugin = { - async cacheWillUpdate({ - response - }) { - return response.redirected ? await copyResponse(response) : response; - } - }; - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Performs efficient precaching of assets. - * - * @memberof workbox-precaching - */ - class PrecacheController { - /** - * Create a new PrecacheController. - * - * @param {Object} [options] - * @param {string} [options.cacheName] The cache to use for precaching. - * @param {string} [options.plugins] Plugins to use when precaching as well - * as responding to fetch events for precached assets. - * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to - * get the response from the network if there's a precache miss. - */ - constructor({ - cacheName, - plugins = [], - fallbackToNetwork = true - } = {}) { - this._urlsToCacheKeys = new Map(); - this._urlsToCacheModes = new Map(); - this._cacheKeysToIntegrities = new Map(); - this._strategy = new PrecacheStrategy({ - cacheName: cacheNames.getPrecacheName(cacheName), - plugins: [...plugins, new PrecacheCacheKeyPlugin({ - precacheController: this - })], - fallbackToNetwork - }); - // Bind the install and activate methods to the instance. - this.install = this.install.bind(this); - this.activate = this.activate.bind(this); - } - /** - * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and - * used to cache assets and respond to fetch events. - */ - get strategy() { - return this._strategy; - } - /** - * Adds items to the precache list, removing any duplicates and - * stores the files in the - * {@link workbox-core.cacheNames|"precache cache"} when the service - * worker installs. - * - * This method can be called multiple times. - * - * @param {Array} [entries=[]] Array of entries to precache. - */ - precache(entries) { - this.addToCacheList(entries); - if (!this._installAndActiveListenersAdded) { - self.addEventListener('install', this.install); - self.addEventListener('activate', this.activate); - this._installAndActiveListenersAdded = true; - } - } - /** - * This method will add items to the precache list, removing duplicates - * and ensuring the information is valid. - * - * @param {Array} entries - * Array of entries to precache. - */ - addToCacheList(entries) { - { - finalAssertExports.isArray(entries, { - moduleName: 'workbox-precaching', - className: 'PrecacheController', - funcName: 'addToCacheList', - paramName: 'entries' - }); - } - const urlsToWarnAbout = []; - for (const entry of entries) { - // See https://github.com/GoogleChrome/workbox/issues/2259 - if (typeof entry === 'string') { - urlsToWarnAbout.push(entry); - } else if (entry && entry.revision === undefined) { - urlsToWarnAbout.push(entry.url); - } - const { - cacheKey, - url - } = createCacheKey(entry); - const cacheMode = typeof entry !== 'string' && entry.revision ? 'reload' : 'default'; - if (this._urlsToCacheKeys.has(url) && this._urlsToCacheKeys.get(url) !== cacheKey) { - throw new WorkboxError('add-to-cache-list-conflicting-entries', { - firstEntry: this._urlsToCacheKeys.get(url), - secondEntry: cacheKey - }); - } - if (typeof entry !== 'string' && entry.integrity) { - if (this._cacheKeysToIntegrities.has(cacheKey) && this._cacheKeysToIntegrities.get(cacheKey) !== entry.integrity) { - throw new WorkboxError('add-to-cache-list-conflicting-integrities', { - url - }); - } - this._cacheKeysToIntegrities.set(cacheKey, entry.integrity); - } - this._urlsToCacheKeys.set(url, cacheKey); - this._urlsToCacheModes.set(url, cacheMode); - if (urlsToWarnAbout.length > 0) { - const warningMessage = `Workbox is precaching URLs without revision ` + `info: ${urlsToWarnAbout.join(', ')}\nThis is generally NOT safe. ` + `Learn more at https://bit.ly/wb-precache`; - { - logger.warn(warningMessage); - } - } - } - } - /** - * Precaches new and updated assets. Call this method from the service worker - * install event. - * - * Note: this method calls `event.waitUntil()` for you, so you do not need - * to call it yourself in your event handlers. - * - * @param {ExtendableEvent} event - * @return {Promise} - */ - install(event) { - // waitUntil returns Promise - // eslint-disable-next-line @typescript-eslint/no-unsafe-return - return waitUntil(event, async () => { - const installReportPlugin = new PrecacheInstallReportPlugin(); - this.strategy.plugins.push(installReportPlugin); - // Cache entries one at a time. - // See https://github.com/GoogleChrome/workbox/issues/2528 - for (const [url, cacheKey] of this._urlsToCacheKeys) { - const integrity = this._cacheKeysToIntegrities.get(cacheKey); - const cacheMode = this._urlsToCacheModes.get(url); - const request = new Request(url, { - integrity, - cache: cacheMode, - credentials: 'same-origin' - }); - await Promise.all(this.strategy.handleAll({ - params: { - cacheKey - }, - request, - event - })); - } - const { - updatedURLs, - notUpdatedURLs - } = installReportPlugin; - { - printInstallDetails(updatedURLs, notUpdatedURLs); - } - return { - updatedURLs, - notUpdatedURLs - }; - }); - } - /** - * Deletes assets that are no longer present in the current precache manifest. - * Call this method from the service worker activate event. - * - * Note: this method calls `event.waitUntil()` for you, so you do not need - * to call it yourself in your event handlers. - * - * @param {ExtendableEvent} event - * @return {Promise} - */ - activate(event) { - // waitUntil returns Promise - // eslint-disable-next-line @typescript-eslint/no-unsafe-return - return waitUntil(event, async () => { - const cache = await self.caches.open(this.strategy.cacheName); - const currentlyCachedRequests = await cache.keys(); - const expectedCacheKeys = new Set(this._urlsToCacheKeys.values()); - const deletedURLs = []; - for (const request of currentlyCachedRequests) { - if (!expectedCacheKeys.has(request.url)) { - await cache.delete(request); - deletedURLs.push(request.url); - } - } - { - printCleanupDetails(deletedURLs); - } - return { - deletedURLs - }; - }); - } - /** - * Returns a mapping of a precached URL to the corresponding cache key, taking - * into account the revision information for the URL. - * - * @return {Map} A URL to cache key mapping. - */ - getURLsToCacheKeys() { - return this._urlsToCacheKeys; - } - /** - * Returns a list of all the URLs that have been precached by the current - * service worker. - * - * @return {Array} The precached URLs. - */ - getCachedURLs() { - return [...this._urlsToCacheKeys.keys()]; - } - /** - * Returns the cache key used for storing a given URL. If that URL is - * unversioned, like `/index.html', then the cache key will be the original - * URL with a search parameter appended to it. - * - * @param {string} url A URL whose cache key you want to look up. - * @return {string} The versioned URL that corresponds to a cache key - * for the original URL, or undefined if that URL isn't precached. - */ - getCacheKeyForURL(url) { - const urlObject = new URL(url, location.href); - return this._urlsToCacheKeys.get(urlObject.href); - } - /** - * @param {string} url A cache key whose SRI you want to look up. - * @return {string} The subresource integrity associated with the cache key, - * or undefined if it's not set. - */ - getIntegrityForCacheKey(cacheKey) { - return this._cacheKeysToIntegrities.get(cacheKey); - } - /** - * This acts as a drop-in replacement for - * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match) - * with the following differences: - * - * - It knows what the name of the precache is, and only checks in that cache. - * - It allows you to pass in an "original" URL without versioning parameters, - * and it will automatically look up the correct cache key for the currently - * active revision of that URL. - * - * E.g., `matchPrecache('index.html')` will find the correct precached - * response for the currently active service worker, even if the actual cache - * key is `'/index.html?__WB_REVISION__=1234abcd'`. - * - * @param {string|Request} request The key (without revisioning parameters) - * to look up in the precache. - * @return {Promise} - */ - async matchPrecache(request) { - const url = request instanceof Request ? request.url : request; - const cacheKey = this.getCacheKeyForURL(url); - if (cacheKey) { - const cache = await self.caches.open(this.strategy.cacheName); - return cache.match(cacheKey); - } - return undefined; - } - /** - * Returns a function that looks up `url` in the precache (taking into - * account revision information), and returns the corresponding `Response`. - * - * @param {string} url The precached URL which will be used to lookup the - * `Response`. - * @return {workbox-routing~handlerCallback} - */ - createHandlerBoundToURL(url) { - const cacheKey = this.getCacheKeyForURL(url); - if (!cacheKey) { - throw new WorkboxError('non-precached-url', { - url - }); - } - return options => { - options.request = new Request(url); - options.params = Object.assign({ - cacheKey - }, options.params); - return this.strategy.handle(options); - }; - } - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - let precacheController; - /** - * @return {PrecacheController} - * @private - */ - const getOrCreatePrecacheController = () => { - if (!precacheController) { - precacheController = new PrecacheController(); - } - return precacheController; - }; - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Removes any URL search parameters that should be ignored. - * - * @param {URL} urlObject The original URL. - * @param {Array} ignoreURLParametersMatching RegExps to test against - * each search parameter name. Matches mean that the search parameter should be - * ignored. - * @return {URL} The URL with any ignored search parameters removed. - * - * @private - * @memberof workbox-precaching - */ - function removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching = []) { - // Convert the iterable into an array at the start of the loop to make sure - // deletion doesn't mess up iteration. - for (const paramName of [...urlObject.searchParams.keys()]) { - if (ignoreURLParametersMatching.some(regExp => regExp.test(paramName))) { - urlObject.searchParams.delete(paramName); - } - } - return urlObject; - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Generator function that yields possible variations on the original URL to - * check, one at a time. - * - * @param {string} url - * @param {Object} options - * - * @private - * @memberof workbox-precaching - */ - function* generateURLVariations(url, { - ignoreURLParametersMatching = [/^utm_/, /^fbclid$/], - directoryIndex = 'index.html', - cleanURLs = true, - urlManipulation - } = {}) { - const urlObject = new URL(url, location.href); - urlObject.hash = ''; - yield urlObject.href; - const urlWithoutIgnoredParams = removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching); - yield urlWithoutIgnoredParams.href; - if (directoryIndex && urlWithoutIgnoredParams.pathname.endsWith('/')) { - const directoryURL = new URL(urlWithoutIgnoredParams.href); - directoryURL.pathname += directoryIndex; - yield directoryURL.href; - } - if (cleanURLs) { - const cleanURL = new URL(urlWithoutIgnoredParams.href); - cleanURL.pathname += '.html'; - yield cleanURL.href; - } - if (urlManipulation) { - const additionalURLs = urlManipulation({ - url: urlObject - }); - for (const urlToAttempt of additionalURLs) { - yield urlToAttempt.href; - } - } - } - - /* - Copyright 2020 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * A subclass of {@link workbox-routing.Route} that takes a - * {@link workbox-precaching.PrecacheController} - * instance and uses it to match incoming requests and handle fetching - * responses from the precache. - * - * @memberof workbox-precaching - * @extends workbox-routing.Route - */ - class PrecacheRoute extends Route { - /** - * @param {PrecacheController} precacheController A `PrecacheController` - * instance used to both match requests and respond to fetch events. - * @param {Object} [options] Options to control how requests are matched - * against the list of precached URLs. - * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will - * check cache entries for a URLs ending with '/' to see if there is a hit when - * appending the `directoryIndex` value. - * @param {Array} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An - * array of regex's to remove search params when looking for a cache match. - * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will - * check the cache for the URL with a `.html` added to the end of the end. - * @param {workbox-precaching~urlManipulation} [options.urlManipulation] - * This is a function that should take a URL and return an array of - * alternative URLs that should be checked for precache matches. - */ - constructor(precacheController, options) { - const match = ({ - request - }) => { - const urlsToCacheKeys = precacheController.getURLsToCacheKeys(); - for (const possibleURL of generateURLVariations(request.url, options)) { - const cacheKey = urlsToCacheKeys.get(possibleURL); - if (cacheKey) { - const integrity = precacheController.getIntegrityForCacheKey(cacheKey); - return { - cacheKey, - integrity - }; - } - } - { - logger.debug(`Precaching did not find a match for ` + getFriendlyURL(request.url)); - } - return; - }; - super(match, precacheController.strategy); - } - } - - /* - Copyright 2019 Google LLC - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Add a `fetch` listener to the service worker that will - * respond to - * [network requests]{@link https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Custom_responses_to_requests} - * with precached assets. - * - * Requests for assets that aren't precached, the `FetchEvent` will not be - * responded to, allowing the event to fall through to other `fetch` event - * listeners. - * - * @param {Object} [options] See the {@link workbox-precaching.PrecacheRoute} - * options. - * - * @memberof workbox-precaching - */ - function addRoute(options) { - const precacheController = getOrCreatePrecacheController(); - const precacheRoute = new PrecacheRoute(precacheController, options); - registerRoute(precacheRoute); - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Adds items to the precache list, removing any duplicates and - * stores the files in the - * {@link workbox-core.cacheNames|"precache cache"} when the service - * worker installs. - * - * This method can be called multiple times. - * - * Please note: This method **will not** serve any of the cached files for you. - * It only precaches files. To respond to a network request you call - * {@link workbox-precaching.addRoute}. - * - * If you have a single array of files to precache, you can just call - * {@link workbox-precaching.precacheAndRoute}. - * - * @param {Array} [entries=[]] Array of entries to precache. - * - * @memberof workbox-precaching - */ - function precache(entries) { - const precacheController = getOrCreatePrecacheController(); - precacheController.precache(entries); - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * This method will add entries to the precache list and add a route to - * respond to fetch events. - * - * This is a convenience method that will call - * {@link workbox-precaching.precache} and - * {@link workbox-precaching.addRoute} in a single call. - * - * @param {Array} entries Array of entries to precache. - * @param {Object} [options] See the - * {@link workbox-precaching.PrecacheRoute} options. - * - * @memberof workbox-precaching - */ - function precacheAndRoute(entries, options) { - precache(entries); - addRoute(options); - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - const SUBSTRING_TO_FIND = '-precache-'; - /** - * Cleans up incompatible precaches that were created by older versions of - * Workbox, by a service worker registered under the current scope. - * - * This is meant to be called as part of the `activate` event. - * - * This should be safe to use as long as you don't include `substringToFind` - * (defaulting to `-precache-`) in your non-precache cache names. - * - * @param {string} currentPrecacheName The cache name currently in use for - * precaching. This cache won't be deleted. - * @param {string} [substringToFind='-precache-'] Cache names which include this - * substring will be deleted (excluding `currentPrecacheName`). - * @return {Array} A list of all the cache names that were deleted. - * - * @private - * @memberof workbox-precaching - */ - const deleteOutdatedCaches = async (currentPrecacheName, substringToFind = SUBSTRING_TO_FIND) => { - const cacheNames = await self.caches.keys(); - const cacheNamesToDelete = cacheNames.filter(cacheName => { - return cacheName.includes(substringToFind) && cacheName.includes(self.registration.scope) && cacheName !== currentPrecacheName; - }); - await Promise.all(cacheNamesToDelete.map(cacheName => self.caches.delete(cacheName))); - return cacheNamesToDelete; - }; - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Adds an `activate` event listener which will clean up incompatible - * precaches that were created by older versions of Workbox. - * - * @memberof workbox-precaching - */ - function cleanupOutdatedCaches() { - // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705 - self.addEventListener('activate', event => { - const cacheName = cacheNames.getPrecacheName(); - event.waitUntil(deleteOutdatedCaches(cacheName).then(cachesDeleted => { - { - if (cachesDeleted.length > 0) { - logger.log(`The following out-of-date precaches were cleaned up ` + `automatically:`, cachesDeleted); - } - } - })); - }); - } - - /* - Copyright 2018 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * NavigationRoute makes it easy to create a - * {@link workbox-routing.Route} that matches for browser - * [navigation requests]{@link https://developers.google.com/web/fundamentals/primers/service-workers/high-performance-loading#first_what_are_navigation_requests}. - * - * It will only match incoming Requests whose - * {@link https://fetch.spec.whatwg.org/#concept-request-mode|mode} - * is set to `navigate`. - * - * You can optionally only apply this route to a subset of navigation requests - * by using one or both of the `denylist` and `allowlist` parameters. - * - * @memberof workbox-routing - * @extends workbox-routing.Route - */ - class NavigationRoute extends Route { - /** - * If both `denylist` and `allowlist` are provided, the `denylist` will - * take precedence and the request will not match this route. - * - * The regular expressions in `allowlist` and `denylist` - * are matched against the concatenated - * [`pathname`]{@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/pathname} - * and [`search`]{@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/search} - * portions of the requested URL. - * - * *Note*: These RegExps may be evaluated against every destination URL during - * a navigation. Avoid using - * [complex RegExps](https://github.com/GoogleChrome/workbox/issues/3077), - * or else your users may see delays when navigating your site. - * - * @param {workbox-routing~handlerCallback} handler A callback - * function that returns a Promise resulting in a Response. - * @param {Object} options - * @param {Array} [options.denylist] If any of these patterns match, - * the route will not handle the request (even if a allowlist RegExp matches). - * @param {Array} [options.allowlist=[/./]] If any of these patterns - * match the URL's pathname and search parameter, the route will handle the - * request (assuming the denylist doesn't match). - */ - constructor(handler, { - allowlist = [/./], - denylist = [] - } = {}) { - { - finalAssertExports.isArrayOfClass(allowlist, RegExp, { - moduleName: 'workbox-routing', - className: 'NavigationRoute', - funcName: 'constructor', - paramName: 'options.allowlist' - }); - finalAssertExports.isArrayOfClass(denylist, RegExp, { - moduleName: 'workbox-routing', - className: 'NavigationRoute', - funcName: 'constructor', - paramName: 'options.denylist' - }); - } - super(options => this._match(options), handler); - this._allowlist = allowlist; - this._denylist = denylist; - } - /** - * Routes match handler. - * - * @param {Object} options - * @param {URL} options.url - * @param {Request} options.request - * @return {boolean} - * - * @private - */ - _match({ - url, - request - }) { - if (request && request.mode !== 'navigate') { - return false; - } - const pathnameAndSearch = url.pathname + url.search; - for (const regExp of this._denylist) { - if (regExp.test(pathnameAndSearch)) { - { - logger.log(`The navigation route ${pathnameAndSearch} is not ` + `being used, since the URL matches this denylist pattern: ` + `${regExp.toString()}`); - } - return false; - } - } - if (this._allowlist.some(regExp => regExp.test(pathnameAndSearch))) { - { - logger.debug(`The navigation route ${pathnameAndSearch} ` + `is being used.`); - } - return true; - } - { - logger.log(`The navigation route ${pathnameAndSearch} is not ` + `being used, since the URL being navigated to doesn't ` + `match the allowlist.`); - } - return false; - } - } - - /* - Copyright 2019 Google LLC - - Use of this source code is governed by an MIT-style - license that can be found in the LICENSE file or at - https://opensource.org/licenses/MIT. - */ - /** - * Helper function that calls - * {@link PrecacheController#createHandlerBoundToURL} on the default - * {@link PrecacheController} instance. - * - * If you are creating your own {@link PrecacheController}, then call the - * {@link PrecacheController#createHandlerBoundToURL} on that instance, - * instead of using this function. - * - * @param {string} url The precached URL which will be used to lookup the - * `Response`. - * @param {boolean} [fallbackToNetwork=true] Whether to attempt to get the - * response from the network if there's a precache miss. - * @return {workbox-routing~handlerCallback} - * - * @memberof workbox-precaching - */ - function createHandlerBoundToURL(url) { - const precacheController = getOrCreatePrecacheController(); - return precacheController.createHandlerBoundToURL(url); - } - - exports.NavigationRoute = NavigationRoute; - exports.cleanupOutdatedCaches = cleanupOutdatedCaches; - exports.clientsClaim = clientsClaim; - exports.createHandlerBoundToURL = createHandlerBoundToURL; - exports.precacheAndRoute = precacheAndRoute; - exports.registerRoute = registerRoute; - -}));