@figurosity/consumer-pose-generator 0.1.6 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".pg-overview-content h1{color:#fff;text-align:left;margin:0 0 15px}.pg-overview-content .text-subheading{text-align:left;color:#fff;font-size:20px;font-weight:600}@media(max-width:1023.98px){.pg-overview-content{background:url(https://static.figurosity.com/pose-generator/temp/pose-27.webp) center/contain no-repeat,radial-gradient(147.55% 89.72% at 66.15% 11.38%,#c86dd7,#3023ae);height:100%;padding:20px}.pg-overview-content h1,.pg-overview-content .text-subheading{text-align:center!important}}.pg-exit-button{overflow:hidden}.pg-overview-buttons{z-index:111;position:fixed;bottom:0;left:0;right:0;border-top:1px solid #cccccc}.pg-overview-buttons .pg-animated-count{text-align:center}@media(min-width:768px){.pg-overview-buttons .pg-animated-count{text-align:right}}.pg-card{z-index:9}.pg-card .q-card{background-color:#ffffffd9;border-color:#fff;border-width:1px;border-radius:14px}.pg-card .q-item__section--avatar{min-width:40px}.pg-card-label{font-size:18px;font-weight:900}.pg-card-caption{font-size:14px;font-weight:500;color:#676767}.pg-cards{color:#170a27;z-index:9}.pg-base-button.q-btn{color:#000c;background-color:#ffffff80!important}.pg-base-button.q-btn--outline:before{border-color:#000000b3}.pg-base-button.q-btn .q-icon{font-size:32px}.pg-controls{width:380px}.pg-controls .q-btn--outline:before{border-width:4px}.pg-play-button{position:relative}.pg-play-button.pg-base-button.q-btn .q-icon{font-size:26px;padding:7px 5px 5px;margin-bottom:3px}.pg-play-button .pg-timer-progress{position:absolute;top:0;left:0;z-index:2}.pg-timer-seconds{color:#000c;font-weight:900;font-size:30px;text-align:right;transition:all .3s ease;line-height:40px}.pg-timer-seconds.flash{color:#0087ff}.pg-expansions{background-color:#fff}.pg-expansions .q-separator{margin:0 10px}.pg-durations-tool .q-slider__selection{display:none}.pg-durations-tool-title{font-weight:900;color:#626262!important}.pg-durations-tool .q-slider__marker-labels{font-weight:900;color:#626262;transition:color .15s ease}.pg-durations-tool .pg-durations-tool__is-active{color:#0087ff!important}.c-pose-position{width:200px;height:200px;position:relative;margin:0 auto 10px;color:#0087ff;overflow:hidden}.c-pose-position.disabled{opacity:.7}.c-pose-position *{box-sizing:border-box}.c-pose-position .quickpose-angle{position:absolute;top:0;left:0;z-index:100;border-radius:100px}.c-pose-position .quickpose-angle img{width:96%;height:auto;border-radius:100px}.quarters{transform:rotate(45deg);width:96%;height:96%;position:absolute;top:1px;left:1px;z-index:90;border-radius:100px;overflow:hidden}.quarters.overlay{z-index:110}.quarters.borders .quarter{transition:background-color .3s;border:1px solid #0087ff;background-color:#fff;border-color:#0087ff}.quarters.borders .quarter>span{position:absolute;font-size:13px;left:50%;top:50%;transform:translate(-50%) translateY(-50%) rotate(-45deg)}.quarters.borders .quarter.hover{border-color:#0087ff}.quarters.borders .quarter.active{color:#fff!important;outline:0;border-color:#fff;background-color:#0087ff}.quarters .quarter{border:1px solid transparent;height:49%;width:49%;position:absolute;z-index:110;text-transform:uppercase}.quarters .quarter.active{color:#fff!important}.quarters .quarter.back{top:0;left:0;border-radius:100px 0 0}.quarters .quarter.back.active{border-radius:100px 0 0}.quarters .quarter.left{top:0;right:0;border-radius:0 100px 0 0}.quarters .quarter.left.active{border-radius:0 100px 0 0}.quarters .quarter.front{bottom:0;right:0;border-radius:0 0 100px}.quarters .quarter.front.active{border-radius:0 0 100px}.quarters .quarter.right{bottom:0;left:0;border-radius:0 0 0 100px}.quarters .quarter.right.active{border-radius:0 0 0 100px}.pg-overview{z-index:1;padding-bottom:110px}.pg-display-image{position:absolute;top:50%;left:50%;width:100%;height:auto;-webkit-transform:translateZ(0) translateX(-50%) translateY(-50%) scale3d(1,1,1);transform:translateZ(0) translate(-50%) translateY(-50%) scaleZ(1);z-index:2}.pg-display-image.flip-horizontal{-webkit-transform:translateZ(0) translateX(-50%) translateY(-50%) scale3d(1,1,1) scaleX(-1);transform:translateZ(0) translate(-50%) translateY(-50%) scaleZ(1) scaleX(-1)}.pg-display{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1}.pg-display.negative{background-color:#000!important}.pgfade-enter-from,.pgfade-enter-active,.pgfade-enter-to{z-index:2}.pgfade-leave-from,.pgfade-leave-active,.pgfade-leave-to{z-index:1}.pgfade-enter-active{transition:opacity .25s ease}.pgfade-enter-from{opacity:0}.pgfade-enter-to{opacity:1}.pgfade-leave-active{transition:none}.pg-interaction-detector{position:fixed;top:0;right:0;bottom:0;left:0;z-index:6}.pg-viewport{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2100;background-color:#fffffffc;transition:background-color .25s ease}.pg-viewport .loading-graphic{position:absolute;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.pg-viewport h1{position:fixed;line-height:100%;top:0;right:0;bottom:0;left:0;z-index:400;color:#000}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { ref as j, computed as y, watch as Ne, onBeforeMount as Co, defineComponent as T, h, openBlock as O, createBlock as _t, unref as A, createElementBlock as $, Fragment as Xe, renderList as Ze, createVNode as B, normalizeClass as mt, createElementVNode as De, toDisplayString as _o, onMounted as bt, onBeforeUnmount as Jt, Transition as qt, withDirectives as vt, vShow as yt, normalizeStyle as on, TransitionGroup as bo, withCtx as jt, inject as Io } from "vue";
2
+ import { ref as Z, computed as y, watch as ce, onBeforeMount as _o, defineComponent as _, h, openBlock as L, createBlock as It, unref as N, createElementBlock as F, Fragment as Ze, renderList as Ke, createVNode as H, normalizeClass as yt, createElementVNode as Ae, toDisplayString as bo, onMounted as Qe, onBeforeUnmount as Pt, Transition as jt, withDirectives as Et, vShow as St, normalizeStyle as rn, TransitionGroup as Io, withCtx as Gt, inject as xs } from "vue";
3
3
  import { useRoute as Po } from "vue-router";
4
- import { defineStore as ie, getActivePinia as xo, storeToRefs as S } from "pinia";
5
- import { getConfig as es, DEFAULT_SATURATE as je, DEFAULT_CONTRAST as Ge, DEFAULT_BRIGHTNESS as Ye, useDynamicImages as wo, DEFAULT_VERTICAL as xs, DEFAULT_HORIZONTAL as ws, DEFAULT_SPACING as Ds, DEFAULT_VISIBLE as Do, DEFAULT as Me, SKINS as Gt, DURATION as Yt, FAILED as Wt, QUEUED as Mo, ABORTED as rn, LOADED as an, LOADING as Xt, UNLOADED as Et, NOTHING as Ao, EFFECTS as St, CAMERA_ANGLE as Ms, LIGHT_DIRECTION as As, GENDER as Tt, GRID as Ns, POSE_DIRECTION as Os, ADJUSTMENTS as ks, slugify as No, useEventBus as ln, useFilterStyle as Oo, FlipAnimation as ko, useWakeLock as Lo } from "@figurosity/toolbox";
6
- import cn from "lodash-es/debounce";
7
- import { useQuasar as It, QSlider as Vo, QSeparator as J, QCard as Uo, QItem as Ro, QItemSection as Ls, QIcon as Bo, QItemLabel as Vs, QCardSection as $o, QBtn as Oe, QPageSticky as zo, QCircularProgress as Ho } from "quasar";
8
- import { CExpansion as me, CBaseButton as Qe, CBaseButtons as un, CNewGridTool as Fo, CBasicTool as ts, CAnimatedNumber as qo, CGridOverlay as jo, CFloatingModal as Go, CDraggableDrawer as dn, CDraggableDrawers as Yo } from "@figurosity/consumer-controls";
9
- import { historyCircle as hn, contrast as pn, brightness as fn, shirt as Wo, cameraAngle as Xo, bulbLight as Zo, venus as Qo, cameraOrientation as Ko, grid as Jo, refresh as er, pause as tr, play as sr } from "@figurosity/icons";
4
+ import { defineStore as he, getActivePinia as xo, storeToRefs as S } from "pinia";
5
+ import { getConfig as es, DEFAULT_SATURATE as je, DEFAULT_CONTRAST as Ge, DEFAULT_BRIGHTNESS as Ye, useDynamicImages as Do, DEFAULT_VERTICAL as Ds, DEFAULT_HORIZONTAL as ws, DEFAULT_SPACING as Ms, DEFAULT_VISIBLE as wo, DEFAULT as Ne, SKINS as Yt, DURATION as Wt, FAILED as Xt, QUEUED as Mo, ABORTED as an, LOADED as ln, LOADING as Zt, UNLOADED as Tt, NOTHING as Ao, EFFECTS as Ct, CAMERA_ANGLE as As, LIGHT_DIRECTION as Ns, GENDER as _t, GRID as Os, POSE_DIRECTION as ks, ADJUSTMENTS as Ls, slugify as No, useEventBus as cn, useFilterStyle as Oo, FlipAnimation as ko, useWakeLock as Lo } from "@figurosity/toolbox";
6
+ import un from "lodash-es/debounce";
7
+ import { useQuasar as xt, QSlider as Vo, QSeparator as ne, QCard as Uo, QItem as Ro, QItemSection as Vs, QIcon as Bo, QItemLabel as Us, QCardSection as $o, QBtn as ke, QPageSticky as zo, QCircularProgress as Ho } from "quasar";
8
+ import { CExpansion as Ee, CBaseButton as Je, CBaseButtons as dn, CNewGridTool as Fo, CBasicTool as ts, CAnimatedNumber as qo, CGridOverlay as jo, CFloatingModal as Go, CDraggableDrawer as hn, CDraggableDrawers as Yo } from "@figurosity/consumer-controls";
9
+ import { historyCircle as pn, contrast as fn, brightness as gn, shirt as Wo, cameraAngle as Xo, bulbLight as Zo, venus as Ko, cameraOrientation as Qo, grid as Jo, refresh as er, pause as tr, play as sr } from "@figurosity/icons";
10
10
  function nr(e, t) {
11
11
  for (var s = 0; s < t.length; s++) {
12
12
  const n = t[s];
@@ -29,7 +29,7 @@ const or = {
29
29
  slugs: {},
30
30
  selected: [],
31
31
  playSelected: 1
32
- }, gn = {
32
+ }, mn = {
33
33
  random(e) {
34
34
  var s;
35
35
  if (!e.selected) return 1;
@@ -40,7 +40,7 @@ const or = {
40
40
  return e.collection.length > 0 ? e.collection.map((t) => e.models[t]) : [];
41
41
  },
42
42
  propertyById: (e) => (t, s, n = null) => e.models[t] && s in e.models[t] ? e.models[t][s] : n
43
- }, mn = {
43
+ }, vn = {
44
44
  getRandom(e) {
45
45
  if (!this.selected) return;
46
46
  const t = new Set(e), s = [...new Set(this.selected.filter((n) => t.has(n)))];
@@ -95,26 +95,26 @@ const or = {
95
95
  selected: e
96
96
  });
97
97
  }
98
- }, ke = ({
98
+ }, Le = ({
99
99
  storeId: e,
100
100
  state: t = {},
101
101
  getters: s = {},
102
102
  actions: n = {}
103
- }) => ie(e, {
103
+ }) => he(e, {
104
104
  state: () => ({
105
105
  ...or,
106
106
  ...t
107
107
  }),
108
108
  getters: {
109
- ...gn,
109
+ ...mn,
110
110
  ...s
111
111
  },
112
112
  actions: {
113
- ...mn,
113
+ ...vn,
114
114
  ...n
115
115
  }
116
116
  });
117
- function Le(e) {
117
+ function Ve(e) {
118
118
  return e.length ? typeof Intl < "u" && Intl.ListFormat ? new Intl.ListFormat("en-GB", {
119
119
  style: "long",
120
120
  type: "conjunction"
@@ -130,14 +130,14 @@ const rr = {}, ir = {
130
130
  };
131
131
  },
132
132
  caption(e) {
133
- return Le(e.selected.map((t) => e.models[t].name));
133
+ return Ve(e.selected.map((t) => e.models[t].name));
134
134
  }
135
- }, ar = {}, pe = ke({
135
+ }, ar = {}, me = Le({
136
136
  storeId: "pg-cameras",
137
137
  state: rr,
138
138
  getters: ir,
139
139
  actions: ar
140
- }), ge = ie("pg-adjustments", {
140
+ }), ye = he("pg-adjustments", {
141
141
  state: () => ({
142
142
  brightness: Ye,
143
143
  contrast: Ge,
@@ -152,7 +152,7 @@ const rr = {}, ir = {
152
152
  },
153
153
  caption(e) {
154
154
  const t = [];
155
- return e.brightness !== Ye && t.push("Brightness"), e.contrast !== Ge && t.push("Contrast"), e.saturate !== je && t.push("Saturation"), t.length === 0 && t.push("None"), Le(t);
155
+ return e.brightness !== Ye && t.push("Brightness"), e.contrast !== Ge && t.push("Contrast"), e.saturate !== je && t.push("Saturation"), t.length === 0 && t.push("None"), Ve(t);
156
156
  }
157
157
  },
158
158
  actions: {
@@ -187,8 +187,8 @@ const rr = {}, ir = {
187
187
  this.$reset();
188
188
  }
189
189
  }
190
- }), { setSelected: lr } = mn;
191
- function Us(e, t = !0) {
190
+ }), { setSelected: lr } = vn;
191
+ function Rs(e, t = !0) {
192
192
  if (!e) return t ? "0s" : "0 seconds";
193
193
  const s = e === 1 ? "second" : "seconds";
194
194
  if (e < 60)
@@ -196,7 +196,7 @@ function Us(e, t = !0) {
196
196
  const n = e / 60;
197
197
  return t ? `${n}m` : `${n} ${n === 1 ? "minute" : "minutes"}`;
198
198
  }
199
- const Z = ie("pg-durations", {
199
+ const Q = he("pg-durations", {
200
200
  state: () => ({
201
201
  models: {},
202
202
  collection: [],
@@ -218,16 +218,16 @@ const Z = ie("pg-durations", {
218
218
  return e.collection.findIndex((s) => String(s) === String(t));
219
219
  },
220
220
  title(e) {
221
- return Us(e.duration, !1);
221
+ return Rs(e.duration, !1);
222
222
  },
223
223
  values(e) {
224
224
  const t = e.models;
225
225
  return e.collection.map((n, r) => ({
226
226
  value: r,
227
- label: Us(t[n].seconds)
227
+ label: Rs(t[n].seconds)
228
228
  })) || [];
229
229
  },
230
- ...gn
230
+ ...mn
231
231
  },
232
232
  actions: {
233
233
  customReset() {
@@ -256,9 +256,9 @@ const Z = ie("pg-durations", {
256
256
  }
257
257
  }
258
258
  });
259
- function Ke() {
259
+ function et() {
260
260
  const { freeServer: e, paidServer: t } = es();
261
- return wo({ freeServer: e, paidServer: t });
261
+ return Do({ freeServer: e, paidServer: t });
262
262
  }
263
263
  const cr = {
264
264
  uuid: void 0,
@@ -266,12 +266,12 @@ const cr = {
266
266
  }, ur = {
267
267
  src(e) {
268
268
  return (t) => {
269
- const { getThumbnail: s } = Ke();
269
+ const { getThumbnail: s } = et();
270
270
  return s({ uuid: e.uuid, image: t });
271
271
  };
272
272
  },
273
273
  caption(e) {
274
- return Le(e.selected.map((t) => e.models[t].name));
274
+ return Ve(e.selected.map((t) => e.models[t].name));
275
275
  },
276
276
  playCaption(e) {
277
277
  var t, s;
@@ -279,7 +279,7 @@ const cr = {
279
279
  }
280
280
  }, dr = {
281
281
  getSrc(e, t) {
282
- const { getThumbnail: s } = Ke();
282
+ const { getThumbnail: s } = et();
283
283
  return t = t || this.uuid, s({ uuid: t, image: e });
284
284
  },
285
285
  getModelsByIds(e = []) {
@@ -292,7 +292,7 @@ const cr = {
292
292
  return this.propertyById(e, "slug", "normal");
293
293
  },
294
294
  customReset() {
295
- const e = this.appAuthStore, t = k();
295
+ const e = this.appAuthStore, t = V();
296
296
  if (e && e.authenticated) {
297
297
  const s = this.collection.filter(
298
298
  (n) => !t.censored.includes(n)
@@ -306,7 +306,7 @@ const cr = {
306
306
  selected: [1]
307
307
  });
308
308
  }
309
- }, V = ke({
309
+ }, R = Le({
310
310
  storeId: "pg-skins",
311
311
  state: cr,
312
312
  getters: ur,
@@ -317,7 +317,7 @@ const cr = {
317
317
  }, pr = {
318
318
  src(e) {
319
319
  return (t = "none") => {
320
- const { getThumbnail: s } = Ke(), n = t === "negative" ? "000000" : "ffffff", r = V();
320
+ const { getThumbnail: s } = et(), n = t === "negative" ? "000000" : "ffffff", r = R();
321
321
  return s({
322
322
  uuid: r.uuid,
323
323
  image: "nude",
@@ -375,26 +375,26 @@ const cr = {
375
375
  selected: 1
376
376
  });
377
377
  }
378
- }, R = ke({
378
+ }, z = Le({
379
379
  storeId: "pg-effects",
380
380
  state: hr,
381
381
  getters: pr,
382
382
  actions: fr
383
383
  }), gr = {}, mr = {
384
384
  caption(e) {
385
- return Le(e.selected.map((t) => e.models[t].name));
385
+ return Ve(e.selected.map((t) => e.models[t].name));
386
386
  }
387
- }, vr = {}, re = ke({
387
+ }, vr = {}, de = Le({
388
388
  storeId: "pg-genders",
389
389
  state: gr,
390
390
  getters: mr,
391
391
  actions: vr
392
- }), Ie = ie("pg-grid", {
392
+ }), xe = he("pg-grid", {
393
393
  state: () => ({
394
- visible: Do,
395
- spacing: Ds,
394
+ visible: wo,
395
+ spacing: Ms,
396
396
  horizontal: ws,
397
- vertical: xs
397
+ vertical: Ds
398
398
  }),
399
399
  getters: {
400
400
  changed: (e) => e.visible === !0,
@@ -408,9 +408,9 @@ const cr = {
408
408
  throw new Error(this.$id + " result must not be null");
409
409
  this.$patch({
410
410
  visible: e.visible === 1,
411
- spacing: e.spacing || Ds,
411
+ spacing: e.spacing || Ms,
412
412
  horizontal: e.horizontal || ws,
413
- vertical: e.vertical || xs
413
+ vertical: e.vertical || Ds
414
414
  });
415
415
  },
416
416
  customReset() {
@@ -452,9 +452,9 @@ const cr = {
452
452
  };
453
453
  },
454
454
  caption(e) {
455
- return Le(e.selected.map((t) => e.models[t].name));
455
+ return Ve(e.selected.map((t) => e.models[t].name));
456
456
  }
457
- }, Sr = {}, ee = ke({
457
+ }, Sr = {}, oe = Le({
458
458
  storeId: "pg-lights",
459
459
  state: yr,
460
460
  getters: Er,
@@ -475,7 +475,7 @@ function Cr(e, t) {
475
475
  }
476
476
  return s;
477
477
  }
478
- const Pe = ie("pg-poses", {
478
+ const De = he("pg-poses", {
479
479
  state: () => ({
480
480
  models: /* @__PURE__ */ Object.create(null),
481
481
  // { [id]: poseRow }
@@ -491,7 +491,7 @@ const Pe = ie("pg-poses", {
491
491
  getters: {
492
492
  // convenience getter
493
493
  unseenIds(e) {
494
- const s = k().filterData;
494
+ const s = V().filterData;
495
495
  return e.collection.filter((n) => !e.seen.has(n)).filter((n) => this.candidates(s).includes(n));
496
496
  },
497
497
  unseenCount() {
@@ -546,7 +546,7 @@ const Pe = ie("pg-poses", {
546
546
  this.seed = e ?? Date.now() & 4294967295;
547
547
  },
548
548
  async ensureUnseen({ minUnseen: e = 50, batch: t = 200 } = {}) {
549
- const s = k();
549
+ const s = V();
550
550
  if (s.filterData, this.unseenCount >= e || this.loading) return;
551
551
  await (async () => {
552
552
  try {
@@ -566,7 +566,7 @@ const Pe = ie("pg-poses", {
566
566
  }
567
567
  }), _r = {}, br = {
568
568
  caption(e) {
569
- return Le(e.selected.map((t) => e.models[t].name));
569
+ return Ve(e.selected.map((t) => e.models[t].name));
570
570
  }
571
571
  }, Ir = {
572
572
  getRandom(e) {
@@ -592,12 +592,12 @@ const Pe = ie("pg-poses", {
592
592
  const a = Math.floor(Math.random() * r.length);
593
593
  return r[a];
594
594
  }
595
- }, fe = ke({
595
+ }, ve = Le({
596
596
  storeId: "pg-positions",
597
597
  state: _r,
598
598
  getters: br,
599
599
  actions: Ir
600
- }), Rs = {
600
+ }), Bs = {
601
601
  entities: {
602
602
  cameras: {
603
603
  1: {
@@ -795,7 +795,7 @@ const Pe = ie("pg-poses", {
795
795
  result: {
796
796
  setUuid: "b22658f7-e757-4a7f-9071-89ccb7df966e"
797
797
  }
798
- }, k = ie("pg", {
798
+ }, V = he("pg", {
799
799
  /**
800
800
  *
801
801
  * @property {number} active The filter or drawer that is currently active.
@@ -808,9 +808,9 @@ const Pe = ie("pg-poses", {
808
808
  */
809
809
  state: () => ({
810
810
  animate: !1,
811
- active: Yt,
812
- playActive: Gt,
813
- mobileActive: Me,
811
+ active: Wt,
812
+ playActive: Yt,
813
+ mobileActive: Ne,
814
814
  censored: [],
815
815
  disable: !0,
816
816
  filtering: !1,
@@ -822,7 +822,7 @@ const Pe = ie("pg-poses", {
822
822
  }),
823
823
  getters: {
824
824
  filterData(e) {
825
- const t = ge(), s = pe(), n = Z(), r = R(), a = re(), c = Ie(), d = ee(), u = fe(), f = V(), g = c.visible === !0 ? 1 : 0;
825
+ const t = ye(), s = me(), n = Q(), r = z(), a = de(), c = xe(), d = oe(), u = ve(), f = R(), g = c.visible === !0 ? 1 : 0;
826
826
  return {
827
827
  cameras: s.selected,
828
828
  durations: n.selected,
@@ -847,17 +847,17 @@ const Pe = ie("pg-poses", {
847
847
  },
848
848
  actions: {
849
849
  init() {
850
- const e = Rs.entities, t = Rs.result;
850
+ const e = Bs.entities, t = Bs.result;
851
851
  this.updateStatesFromEntities(e);
852
- const s = V();
852
+ const s = R();
853
853
  s.uuid = t.setUuid;
854
854
  },
855
855
  updateStatesFromEntities(e) {
856
- const t = e, s = pe(), n = Z(), r = R(), a = re(), c = ee(), d = fe(), u = V();
856
+ const t = e, s = me(), n = Q(), r = z(), a = de(), c = oe(), d = ve(), u = R();
857
857
  s.setState(t.cameras), n.setState(t.durations), r.setState(t.effects), a.setState(t.genders), c.setState(t.lights), d.setState(t.positions), u.setState(t.skins);
858
858
  },
859
859
  updateSelectedFromResult(e) {
860
- const t = e, s = ge(), n = pe(), r = Z(), a = R(), c = re(), d = Ie(), u = ee(), f = fe(), g = V();
860
+ const t = e, s = ye(), n = me(), r = Q(), a = z(), c = de(), d = xe(), u = oe(), f = ve(), g = R();
861
861
  s.setValues(t.adjustments), d.setValues(t.grid), r.setSelected(t.durations), a.setSelected(t.effects), n.setSelected(t.cameras), c.setSelected(t.genders), u.setSelected(t.lights), f.setSelected(t.positions), g.setSelected(t.skins), g.uuid = t.setUuid;
862
862
  },
863
863
  hasAccess(e) {
@@ -870,7 +870,7 @@ const Pe = ie("pg-poses", {
870
870
  return this.disable = !0, this.loading = !0, new Promise((t, s) => {
871
871
  this.appPoseGeneratorStore.fetch(e).then((n) => {
872
872
  var a;
873
- this.updateStatesFromEntities(n.entities), this.updateSelectedFromResult(n.result), this.totalCount = n.result.total_count, Pe().ingestNormalized((a = n == null ? void 0 : n.entities) == null ? void 0 : a.poses), this.firstLoad = !0, t(n);
873
+ this.updateStatesFromEntities(n.entities), this.updateSelectedFromResult(n.result), this.totalCount = n.result.total_count, De().ingestNormalized((a = n == null ? void 0 : n.entities) == null ? void 0 : a.poses), this.firstLoad = !0, t(n);
874
874
  }).catch((n) => {
875
875
  s(n), console.log(n);
876
876
  }).finally(() => {
@@ -884,7 +884,7 @@ const Pe = ie("pg-poses", {
884
884
  }).catch((t) => {
885
885
  });
886
886
  },
887
- setSettings: cn(
887
+ setSettings: un(
888
888
  function() {
889
889
  console.log("setSettings"), this.internalSettings();
890
890
  },
@@ -917,12 +917,12 @@ const Pe = ie("pg-poses", {
917
917
  this.active !== e && (this.active = e);
918
918
  },
919
919
  customReset() {
920
- const e = ge(), t = pe(), s = Z(), n = R(), r = re(), a = Ie(), c = ee(), d = fe(), u = V();
920
+ const e = ye(), t = me(), s = Q(), n = z(), r = de(), a = xe(), c = oe(), d = ve(), u = R();
921
921
  e.customReset(), t.customReset(), s.customReset(), n.customReset(), r.customReset(), a.customReset(), c.customReset(), d.customReset(), u.customReset();
922
922
  }
923
923
  }
924
924
  });
925
- function ht(e) {
925
+ function ft(e) {
926
926
  if (!Array.isArray(e)) return [];
927
927
  const t = /* @__PURE__ */ new Set();
928
928
  for (let s = 0; s < e.length; s++) {
@@ -931,20 +931,20 @@ function ht(e) {
931
931
  }
932
932
  return Array.from(t).sort((s, n) => s - n);
933
933
  }
934
- function pt(e = {}) {
934
+ function gt(e = {}) {
935
935
  return {
936
- cameras: ht(e.cameras),
937
- genders: ht(e.genders),
938
- skins: ht(e.skins),
939
- species: ht(e.species),
936
+ cameras: ft(e.cameras),
937
+ genders: ft(e.genders),
938
+ skins: ft(e.skins),
939
+ species: ft(e.species),
940
940
  // subjects intentionally NOT part of cache key; pass-through if you need to display it
941
941
  subjects: e.subjects == null ? null : Number(e.subjects)
942
942
  };
943
943
  }
944
- function ft(e) {
944
+ function mt(e) {
945
945
  return JSON.stringify([e.cameras, e.genders, e.skins, e.species]);
946
946
  }
947
- const Pt = ie("pg-count", {
947
+ const Dt = he("pg-count", {
948
948
  state: () => ({
949
949
  // --- CACHE ---
950
950
  // entries[key] = { count:number, ts:number }
@@ -969,14 +969,14 @@ const Pt = ie("pg-count", {
969
969
  getters: {
970
970
  // Fresh cached count for given filters (or null)
971
971
  cachedCount: (e) => (t) => {
972
- const s = ft(pt(t)), n = e.entries[s];
972
+ const s = mt(gt(t)), n = e.entries[s];
973
973
  return !n || e.ttlMs && Date.now() - n.ts > e.ttlMs ? null : n.count;
974
974
  },
975
975
  filters() {
976
976
  return this.getFilters();
977
977
  },
978
978
  adjustedCount(e) {
979
- const t = ee(), s = fe(), n = t.selected.length, a = s.selected.length / 4;
979
+ const t = oe(), s = ve(), n = t.selected.length, a = s.selected.length / 4;
980
980
  return this.count * n * 36 * a;
981
981
  }
982
982
  },
@@ -993,7 +993,7 @@ const Pt = ie("pg-count", {
993
993
  this.entries[e] = { count: t, ts: Date.now() }, this._touchKey(e);
994
994
  },
995
995
  getFilters() {
996
- const e = pe(), t = re(), s = V(), n = R(), r = ee();
996
+ const e = me(), t = de(), s = R(), n = z(), r = oe();
997
997
  return {
998
998
  cameras: e.selected,
999
999
  genders: t.selected,
@@ -1007,7 +1007,7 @@ const Pt = ie("pg-count", {
1007
1007
  /* ------------------- public cache-only API ---------------------- */
1008
1008
  // Prime the cache for these filters (no UI updates). Returns the count.
1009
1009
  async prefetch() {
1010
- const e = this.getFilters(), t = pt(e), s = ft(t), n = this.cachedCount(e);
1010
+ const e = this.getFilters(), t = gt(e), s = mt(t), n = this.cachedCount(e);
1011
1011
  return n ?? (this.inFlight[s] || (this.inFlight[s] = this.appPoseGeneratorStore.count(t).then((a) => {
1012
1012
  const c = (a == null ? void 0 : a.result) ?? a;
1013
1013
  if (typeof (c == null ? void 0 : c.count) != "number")
@@ -1021,7 +1021,7 @@ const Pt = ie("pg-count", {
1021
1021
  // but uses a version gate so stale responses don't overwrite newer ones.
1022
1022
  // Also caches every response.
1023
1023
  async fetchForDisplay() {
1024
- const e = this.getFilters(), t = pt(e), s = ft(t);
1024
+ const e = this.getFilters(), t = gt(e), s = mt(t);
1025
1025
  this._lastKey = s;
1026
1026
  const n = ++this._reqId;
1027
1027
  this.loading = !0, this.error = null;
@@ -1044,7 +1044,7 @@ const Pt = ie("pg-count", {
1044
1044
  },
1045
1045
  // cache maintenance
1046
1046
  invalidate(e) {
1047
- const t = ft(pt(e));
1047
+ const t = mt(gt(e));
1048
1048
  if (this.entries[t]) {
1049
1049
  delete this.entries[t];
1050
1050
  const s = this.order.indexOf(t);
@@ -1068,69 +1068,69 @@ const Pt = ie("pg-count", {
1068
1068
  */
1069
1069
  loadImage({ url: e, callback: t = null }) {
1070
1070
  if (typeof Image > "u")
1071
- throw t && typeof t == "function" && t(e, Wt), new Error("Image() constructor does not exist.");
1071
+ throw t && typeof t == "function" && t(e, Xt), new Error("Image() constructor does not exist.");
1072
1072
  t && typeof t == "function" && t(e, Mo);
1073
1073
  let s = new Image();
1074
1074
  s.onabort = function(n) {
1075
- t && typeof t == "function" && t(e, rn), this.onerror = this.onabort = this.onload = null;
1075
+ t && typeof t == "function" && t(e, an), this.onerror = this.onabort = this.onload = null;
1076
1076
  }, s.onerror = function(n) {
1077
- t && typeof t == "function" && t(e, Wt), this.onerror = this.onabort = this.onload = null;
1077
+ t && typeof t == "function" && t(e, Xt), this.onerror = this.onabort = this.onload = null;
1078
1078
  }, s.onload = function(n) {
1079
- t && typeof t == "function" && t(e, an), this.onerror = this.onabort = this.onload = null;
1080
- }, s.src = e, t && typeof t == "function" && t(e, Xt);
1079
+ t && typeof t == "function" && t(e, ln), this.onerror = this.onabort = this.onload = null;
1080
+ }, s.src = e, t && typeof t == "function" && t(e, Zt);
1081
1081
  }
1082
1082
  };
1083
1083
  function xr(e, t) {
1084
1084
  return Object.values(e).find((s) => s.src === t);
1085
1085
  }
1086
- function wr({
1086
+ function Dr({
1087
1087
  poseId: e,
1088
1088
  index: t,
1089
1089
  skinId: s,
1090
1090
  effectId: n,
1091
1091
  lightDirection: r
1092
1092
  }) {
1093
- const a = R(), d = V().getSlugById(s), u = a.getSlugById(n);
1093
+ const a = z(), d = R().getSlugById(s), u = a.getSlugById(n);
1094
1094
  return `/figure-drawing-poses/${e}/${d}/${u}/${t}/${r === 1 ? 1 : 0}`;
1095
1095
  }
1096
- function vn(e, t = "lg") {
1096
+ function yn(e, t = "lg") {
1097
1097
  if (!e) return;
1098
- const { getPoseSmall: s, getPoseLarge: n } = Ke(), r = We(e);
1099
- return r.size = t, yn(r);
1098
+ const { getPoseSmall: s, getPoseLarge: n } = et(), r = We(e);
1099
+ return r.size = t, En(r);
1100
1100
  }
1101
- function yn({
1101
+ function En({
1102
1102
  poseId: e,
1103
1103
  index: t,
1104
1104
  skinId: s,
1105
1105
  effectId: n,
1106
1106
  size: r = "lg"
1107
1107
  }) {
1108
- const { getPoseSmall: a, getPoseLarge: c } = Ke(), d = Pe(), u = R(), f = V(), g = d.getModelById(e), v = f.getSlugById(s), C = u.getSlugById(n), _ = n === 3 ? "000000" : "ffffff";
1108
+ const { getPoseSmall: a, getPoseLarge: c } = et(), d = De(), u = z(), f = R(), g = d.getModelById(e), v = f.getSlugById(s), T = u.getSlugById(n), C = n === 3 ? "000000" : "ffffff";
1109
1109
  return r === "lg" ? c({
1110
1110
  uuid: g.uuid,
1111
1111
  skin: v,
1112
- effect: C,
1113
- color: _,
1112
+ effect: T,
1113
+ color: C,
1114
1114
  index: t
1115
1115
  }) : a({
1116
1116
  uuid: g.uuid,
1117
1117
  skin: v,
1118
- effect: C,
1119
- color: _,
1118
+ effect: T,
1119
+ color: C,
1120
1120
  index: t
1121
1121
  });
1122
1122
  }
1123
- function $t(e) {
1123
+ function Ht(e) {
1124
1124
  const t = e.split(".");
1125
1125
  return {
1126
1126
  id: e,
1127
- src: vn(e),
1128
- status: Et,
1127
+ src: yn(e),
1128
+ status: Tt,
1129
1129
  flipped: t[2] === 1
1130
1130
  };
1131
1131
  }
1132
- function Dr(e) {
1133
- const t = Pe(), s = ee(), n = R(), r = V(), a = fe(), c = t.models[e];
1132
+ function wr(e) {
1133
+ const t = De(), s = oe(), n = z(), r = R(), a = ve(), c = t.models[e];
1134
1134
  return [
1135
1135
  e,
1136
1136
  a.getRandom(c.index),
@@ -1150,7 +1150,7 @@ function We(e) {
1150
1150
  effectId: t[4]
1151
1151
  };
1152
1152
  }
1153
- const X = ie("pg-history", {
1153
+ const K = he("pg-history", {
1154
1154
  state: () => ({
1155
1155
  failed: 0,
1156
1156
  history: [],
@@ -1162,19 +1162,19 @@ const X = ie("pg-history", {
1162
1162
  }),
1163
1163
  getters: {
1164
1164
  playSrc(e) {
1165
- const t = R(), s = V(), n = this.history[this.index];
1165
+ const t = z(), s = R(), n = this.history[this.index];
1166
1166
  if (!n) return;
1167
1167
  const r = We(n);
1168
- return r.effectId = t.playSelected, r.skinId = s.playSelected, yn(r);
1168
+ return r.effectId = t.playSelected, r.skinId = s.playSelected, En(r);
1169
1169
  },
1170
1170
  previewSrc(e) {
1171
- return vn(e.queue[0], "sm");
1171
+ return yn(e.queue[0], "sm");
1172
1172
  },
1173
1173
  view360Path(e) {
1174
1174
  const t = e.index >= 0 && e.index < e.history.length ? e.history[e.index] : void 0;
1175
1175
  if (!t) return;
1176
- const s = R(), n = V(), r = We(t);
1177
- return r.effectId = s.playSelected, r.skinId = n.playSelected, wr(r);
1176
+ const s = z(), n = R(), r = We(t);
1177
+ return r.effectId = s.playSelected, r.skinId = n.playSelected, Dr(r);
1178
1178
  },
1179
1179
  previewFlipped(e) {
1180
1180
  const t = e.queue[0];
@@ -1246,19 +1246,19 @@ const X = ie("pg-history", {
1246
1246
  this.queue = [];
1247
1247
  },
1248
1248
  loadQueue() {
1249
- const e = Pt(), t = Pe(), s = e.filters, n = t.randomTake(20, s), r = [];
1249
+ const e = Dt(), t = De(), s = e.filters, n = t.randomTake(20, s), r = [];
1250
1250
  if (n.forEach((d) => {
1251
1251
  try {
1252
- const u = Dr(d);
1252
+ const u = wr(d);
1253
1253
  r.push(u);
1254
1254
  } catch (u) {
1255
1255
  console.error("error", u);
1256
1256
  }
1257
1257
  }), this.queue = [...r], r.length === 0) return;
1258
1258
  const a = r[0];
1259
- this.models[a] || (this.models[a] = $t(a));
1259
+ this.models[a] || (this.models[a] = Ht(a));
1260
1260
  const c = this.models[a];
1261
- c.status === Et && this.loadImage({
1261
+ c.status === Tt && this.loadImage({
1262
1262
  url: c.src,
1263
1263
  callback: this.updateStatus
1264
1264
  });
@@ -1271,11 +1271,11 @@ const X = ie("pg-history", {
1271
1271
  this.index++;
1272
1272
  return;
1273
1273
  }
1274
- const e = R(), t = Pe(), s = V(), n = k(), r = Z(), a = this.queue.shift();
1274
+ const e = z(), t = De(), s = R(), n = V(), r = Q(), a = this.queue.shift();
1275
1275
  if (a == null) return;
1276
- this.models[a] || (this.models[a] = $t(a));
1276
+ this.models[a] || (this.models[a] = Ht(a));
1277
1277
  const c = this.models[a];
1278
- (c.status === Et || c.status === Xt) && this.loadImage({
1278
+ (c.status === Tt || c.status === Zt) && this.loadImage({
1279
1279
  url: c.src,
1280
1280
  callback: this.updateStatus
1281
1281
  });
@@ -1304,7 +1304,7 @@ const X = ie("pg-history", {
1304
1304
  // },
1305
1305
  previous() {
1306
1306
  if (this.index === 0) return;
1307
- const e = V(), t = R(), s = this.index - 1;
1307
+ const e = R(), t = z(), s = this.index - 1;
1308
1308
  this.index = s;
1309
1309
  const n = this.history[s], { skinId: r, effectId: a } = We(n);
1310
1310
  t.playSelected = a, e.playSelected = r;
@@ -1316,12 +1316,12 @@ const X = ie("pg-history", {
1316
1316
  _preloadQueue(e = 5) {
1317
1317
  const t = this.queue.slice(0, e);
1318
1318
  for (const s of t) {
1319
- this.models[s] || (this.models[s] = $t(s));
1319
+ this.models[s] || (this.models[s] = Ht(s));
1320
1320
  const n = this.models[s], r = n.status;
1321
- if ((r === Et || r === Xt) && this.loadImage({
1321
+ if ((r === Tt || r === Zt) && this.loadImage({
1322
1322
  url: n.src,
1323
1323
  callback: this.updateStatus
1324
- }), r === Wt || r === rn) {
1324
+ }), r === Xt || r === an) {
1325
1325
  delete this.models[s];
1326
1326
  const a = this.queue.indexOf(s);
1327
1327
  a !== -1 && this.queue.splice(a, 1);
@@ -1330,25 +1330,33 @@ const X = ie("pg-history", {
1330
1330
  this.queue.length < 5 && this.loadQueue();
1331
1331
  }
1332
1332
  }
1333
- }), Bs = 0, Ct = 1, zt = 2, he = ie("pg-timer", {
1333
+ }), $s = 0, bt = 1, Xe = 2, ue = he("pg-timer", {
1334
1334
  state: () => ({
1335
- status: Ct,
1335
+ status: bt,
1336
1336
  interval: 0,
1337
1337
  intervalDelay: 25,
1338
1338
  seconds: 0,
1339
- milliseconds: 0
1339
+ milliseconds: 0,
1340
+ // Increments each time `_tick` detects the per-pose duration has elapsed
1341
+ // and the timer auto-advances. Watched by PoseGenerator.js to fire
1342
+ // `timer:completed` activity events. `lastLapPoseId` captures the pose
1343
+ // that just completed *before* `controlsStore.next()` advances history,
1344
+ // because by the time the Vue watcher flushes `historyStore.currentId`
1345
+ // already points at the next pose. Not used for any timer logic itself.
1346
+ completedLaps: 0,
1347
+ lastLapPoseId: null
1340
1348
  }),
1341
1349
  getters: {
1342
1350
  formatted(e) {
1343
- const s = Z().duration, n = s - e.seconds;
1351
+ const s = Q().duration, n = s - e.seconds;
1344
1352
  let r = Math.floor(n / 60), a = n - r * 60;
1345
1353
  return a = a >= 0 ? a : 59, r === 1 && a === 0 && s === 60 && (r = 0, a = 60), a = "0" + a, (s > 61 ? r + ":" : "") + a.substr(-2);
1346
1354
  },
1347
1355
  playing(e) {
1348
- return e.status === zt;
1356
+ return e.status === Xe;
1349
1357
  },
1350
1358
  paused(e) {
1351
- return e.status === Bs;
1359
+ return e.status === $s;
1352
1360
  }
1353
1361
  },
1354
1362
  actions: {
@@ -1359,7 +1367,7 @@ const X = ie("pg-history", {
1359
1367
  pause() {
1360
1368
  clearInterval(this.interval), this.$patch({
1361
1369
  interval: 0,
1362
- status: Bs
1370
+ status: $s
1363
1371
  });
1364
1372
  },
1365
1373
  restart() {
@@ -1382,7 +1390,7 @@ const X = ie("pg-history", {
1382
1390
  stop() {
1383
1391
  clearInterval(this.interval), this.resetTimer(), this.$patch({
1384
1392
  interval: 0,
1385
- status: Ct
1393
+ status: bt
1386
1394
  });
1387
1395
  },
1388
1396
  /**
@@ -1390,14 +1398,14 @@ const X = ie("pg-history", {
1390
1398
  * @param context
1391
1399
  */
1392
1400
  start() {
1393
- if (this.status !== zt) {
1401
+ if (this.status !== Xe) {
1394
1402
  clearInterval(this.interval), this.$patch({
1395
1403
  interval: 0
1396
1404
  });
1397
1405
  const e = setInterval(this._tick, this.intervalDelay);
1398
1406
  this.$patch({
1399
1407
  interval: e,
1400
- status: zt
1408
+ status: Xe
1401
1409
  });
1402
1410
  }
1403
1411
  },
@@ -1406,9 +1414,10 @@ const X = ie("pg-history", {
1406
1414
  * @param context
1407
1415
  */
1408
1416
  _tick() {
1409
- const e = Z(), t = Te(), s = e.duration, n = this.milliseconds + this.intervalDelay, r = Math.round(n / 1e3);
1417
+ const e = Q(), t = _e(), s = e.duration, n = this.milliseconds + this.intervalDelay, r = Math.round(n / 1e3);
1410
1418
  if (n === s * 1e3) {
1411
- this.resetTimer(), t.next();
1419
+ const a = K();
1420
+ this.lastLapPoseId = a.currentId || null, this.completedLaps++, this.resetTimer(), t.next();
1412
1421
  return;
1413
1422
  }
1414
1423
  this.$patch({
@@ -1417,12 +1426,12 @@ const X = ie("pg-history", {
1417
1426
  });
1418
1427
  }
1419
1428
  }
1420
- }), $s = 0, gt = 1, Mr = 2, Te = ie("pg-controls", {
1429
+ }), zs = 0, vt = 1, Mr = 2, _e = he("pg-controls", {
1421
1430
  state: () => ({
1422
1431
  timer: !0,
1423
1432
  next: !0,
1424
1433
  show: !1,
1425
- status: $s
1434
+ status: zs
1426
1435
  }),
1427
1436
  getters: {
1428
1437
  /**
@@ -1432,7 +1441,7 @@ const X = ie("pg-history", {
1432
1441
  * @param getters
1433
1442
  */
1434
1443
  nextDisabled(e) {
1435
- return X().nextDisabled;
1444
+ return K().nextDisabled;
1436
1445
  },
1437
1446
  /**
1438
1447
  * Is the the previous button disabled.
@@ -1441,7 +1450,7 @@ const X = ie("pg-history", {
1441
1450
  * @returns {boolean}
1442
1451
  */
1443
1452
  previousDisabled(e) {
1444
- return X().previousDisabled;
1453
+ return K().previousDisabled;
1445
1454
  }
1446
1455
  },
1447
1456
  actions: {
@@ -1449,23 +1458,23 @@ const X = ie("pg-history", {
1449
1458
  * Open the pose generator tool, reset history and start playing from queue
1450
1459
  */
1451
1460
  open() {
1452
- const e = he(), t = X(), s = k();
1453
- e.resetTimer(), t.next(), e.start(), this.$patch({ show: !0, status: gt }), s.$patch({ active: Me, playActive: Me });
1461
+ const e = ue(), t = K(), s = V();
1462
+ e.resetTimer(), t.next(), e.start(), this.$patch({ show: !0, status: vt }), s.$patch({ active: Ne, playActive: Ne });
1454
1463
  },
1455
1464
  /**
1456
1465
  * Close the pose generator tool
1457
1466
  */
1458
1467
  close() {
1459
- const e = he(), t = X(), s = k();
1460
- e.stop(), this.show = !1, this.status = $s, t.reset(), s.$patch({ active: Me, playActive: Me });
1468
+ const e = ue(), t = K(), s = V();
1469
+ e.stop(), this.show = !1, this.status = zs, t.reset(), s.$patch({ active: Ne, playActive: Ne });
1461
1470
  },
1462
1471
  /**
1463
1472
  * Check if currently inside of history, if so increment history index
1464
1473
  * if not load from the queue
1465
1474
  */
1466
- next: cn(
1475
+ next: un(
1467
1476
  function() {
1468
- X().next(), this.resetOrRestartTimer();
1477
+ K().next(), this.resetOrRestartTimer();
1469
1478
  },
1470
1479
  250,
1471
1480
  { leading: !0, maxWait: 500 }
@@ -1474,22 +1483,22 @@ const X = ie("pg-history", {
1474
1483
  * Move to the previous pose in history if it exists
1475
1484
  */
1476
1485
  previous() {
1477
- const e = X();
1486
+ const e = K();
1478
1487
  e.index > 0 && (e.previous(), this.resetOrRestartTimer());
1479
1488
  },
1480
1489
  /**
1481
1490
  *
1482
1491
  */
1483
1492
  pause() {
1484
- const e = he();
1493
+ const e = ue();
1485
1494
  this.status = Mr, e.pause();
1486
1495
  },
1487
1496
  /**
1488
1497
  *
1489
1498
  */
1490
1499
  play() {
1491
- const e = he();
1492
- this.status = gt, e.start();
1500
+ const e = ue();
1501
+ this.status = vt, e.start();
1493
1502
  },
1494
1503
  /**
1495
1504
  * Reset or restart the time based on the current play status
@@ -1497,7 +1506,7 @@ const X = ie("pg-history", {
1497
1506
  * @param dispatch
1498
1507
  */
1499
1508
  resetOrRestartTimer() {
1500
- const e = he();
1509
+ const e = ue();
1501
1510
  if (e.playing === !0) {
1502
1511
  e.restart();
1503
1512
  return;
@@ -1505,15 +1514,15 @@ const X = ie("pg-history", {
1505
1514
  e.resetTimer();
1506
1515
  },
1507
1516
  startTimer() {
1508
- const e = he();
1517
+ const e = ue();
1509
1518
  if (
1510
1519
  // p !== null &&
1511
- e.status === Ct && this.show === !0 && this.status === gt
1520
+ e.status === bt && this.show === !0 && this.status === vt
1512
1521
  ) {
1513
1522
  e.start();
1514
1523
  return;
1515
1524
  }
1516
- e.status === Ct && this.show === !0 && this.status === gt && this.startTimerLoop();
1525
+ e.status === bt && this.show === !0 && this.status === vt && this.startTimerLoop();
1517
1526
  },
1518
1527
  startTimerLoop() {
1519
1528
  setTimeout(() => {
@@ -1521,12 +1530,12 @@ const X = ie("pg-history", {
1521
1530
  }, 250);
1522
1531
  }
1523
1532
  }
1524
- }), zs = /* @__PURE__ */ Object.assign({ "../i18n/en-US/index.js": () => import("./index-BMl4y9AI.js") }), M = (e = "../i18n") => {
1525
- const t = It(), s = j({}), n = y(() => t.lang.isoName || "en-US"), r = async () => {
1533
+ }), Ar = "pose:viewed", Nr = "timer:started", Or = "timer:completed", kr = "pose:generated", Hs = /* @__PURE__ */ Object.assign({ "../i18n/en-US/index.js": () => import("./index-BMl4y9AI.js") }), A = (e = "../i18n") => {
1534
+ const t = xt(), s = Z({}), n = y(() => t.lang.isoName || "en-US"), r = async () => {
1526
1535
  const a = `${e}/${n.value}/index.js`;
1527
- if (zs[a])
1536
+ if (Hs[a])
1528
1537
  try {
1529
- const c = await zs[a]();
1538
+ const c = await Hs[a]();
1530
1539
  c.default && Object.assign(s.value, c.default);
1531
1540
  } catch (c) {
1532
1541
  console.error(`Error loading i18n for ${n.value}`, c);
@@ -1534,32 +1543,32 @@ const X = ie("pg-history", {
1534
1543
  else
1535
1544
  console.error(`Module not found: ${a}`);
1536
1545
  };
1537
- return Ne(
1546
+ return ce(
1538
1547
  () => n.value,
1539
1548
  () => {
1540
1549
  r();
1541
1550
  },
1542
1551
  { immediate: !0 }
1543
- ), Co(() => {
1552
+ ), _o(() => {
1544
1553
  r();
1545
1554
  }), { lang: s };
1546
- }, ae = ({
1555
+ }, pe = ({
1547
1556
  tab: e = Ao,
1548
1557
  store: t,
1549
1558
  options: s = [],
1550
1559
  playMode: n = !1
1551
1560
  }) => {
1552
- const r = xo(), a = k(r), c = y({
1561
+ const r = xo(), a = V(r), c = y({
1553
1562
  get: () => a.isExpanded(s, n),
1554
1563
  set: (f) => {
1555
1564
  f && a.setActive(e, n);
1556
1565
  }
1557
1566
  }), d = y(() => t && t.changed);
1558
1567
  return { click: () => a.setActive(e, n), expanded: c, selected: d };
1559
- }, En = T({
1568
+ }, Sn = _({
1560
1569
  name: "PgDurationsTool",
1561
1570
  setup(e, { slots: t, emit: s }) {
1562
- const n = k(), r = Z(), { loading: a } = S(n), { collectedModels: c, values: d } = S(r), u = y({
1571
+ const n = V(), r = Q(), { loading: a } = S(n), { collectedModels: c, values: d } = S(r), u = y({
1563
1572
  get: () => r.index,
1564
1573
  set: (g) => r.setSelectedByIndex(g)
1565
1574
  });
@@ -1581,7 +1590,7 @@ const X = ie("pg-history", {
1581
1590
  h(Vo, g, {
1582
1591
  // single label slot, Quasar passes { index, label }
1583
1592
  "marker-label": ({ marker: v }) => {
1584
- const C = { ...v.style, cursor: "default" };
1593
+ const T = { ...v.style, cursor: "default" };
1585
1594
  return h(
1586
1595
  "div",
1587
1596
  {
@@ -1593,7 +1602,7 @@ const X = ie("pg-history", {
1593
1602
  // add class for current selection
1594
1603
  ],
1595
1604
  onClick: () => u.value = v.value,
1596
- style: C
1605
+ style: T
1597
1606
  },
1598
1607
  v.label
1599
1608
  );
@@ -1604,12 +1613,12 @@ const X = ie("pg-history", {
1604
1613
  }
1605
1614
  return () => f();
1606
1615
  }
1607
- }), Ar = T({
1616
+ }), Lr = _({
1608
1617
  name: "PgDurationsExpansion",
1609
1618
  setup(e, { slots: t, emit: s }) {
1610
- const { lang: n } = M(), r = Z(), { title: a } = S(r), { expanded: c } = ae({
1611
- options: Yt,
1612
- tab: Yt
1619
+ const { lang: n } = A(), r = Q(), { title: a } = S(r), { expanded: c } = pe({
1620
+ options: Wt,
1621
+ tab: Wt
1613
1622
  }), d = y(() => {
1614
1623
  var f;
1615
1624
  return (f = n.value.pg) == null ? void 0 : f.tools.duration;
@@ -1621,13 +1630,13 @@ const X = ie("pg-history", {
1621
1630
  "onUpdate:modelValue": (g) => c.value = g,
1622
1631
  label: d.value,
1623
1632
  caption: a.value,
1624
- icon: hn
1633
+ icon: pn
1625
1634
  };
1626
- return h(me, f, () => h(En));
1635
+ return h(Ee, f, () => h(Sn));
1627
1636
  }
1628
1637
  return () => u();
1629
1638
  }
1630
- }), Nr = T({
1639
+ }), Vr = _({
1631
1640
  name: "PgSkinsToolButton",
1632
1641
  props: {
1633
1642
  id: Number,
@@ -1637,17 +1646,17 @@ const X = ie("pg-history", {
1637
1646
  },
1638
1647
  emits: ["click", "update:modelValue"],
1639
1648
  setup(e, { slots: t, emit: s }) {
1640
- const n = V(), r = k(), { selected: a, playSelected: c } = S(n), { loading: d } = S(r), u = y(() => n.getSrc(e.slug, e.uuid)), f = y(() => n.getAccessKey(e.slug)), g = y(() => n.propertyById(e.id, "name")), v = (I) => {
1649
+ const n = R(), r = V(), { selected: a, playSelected: c } = S(n), { loading: d } = S(r), u = y(() => n.getSrc(e.slug, e.uuid)), f = y(() => n.getAccessKey(e.slug)), g = y(() => n.propertyById(e.id, "name")), v = (P) => {
1641
1650
  if (e.playMode) {
1642
- n.playSelected = I;
1651
+ n.playSelected = P;
1643
1652
  return;
1644
1653
  }
1645
- n.toggleSelected(I);
1646
- }, C = y(
1654
+ n.toggleSelected(P);
1655
+ }, T = y(
1647
1656
  () => e.playMode ? c.value === e.id : a.value.includes(e.id)
1648
- ), _ = (I) => r.block(I), D = y(() => r.hasAccess(f.value));
1649
- function P() {
1650
- const I = {
1657
+ ), C = (P) => r.block(P), w = y(() => r.hasAccess(f.value));
1658
+ function I() {
1659
+ const P = {
1651
1660
  circle: !0,
1652
1661
  size: e.playMode ? "sm" : "lg",
1653
1662
  type: e.playMode ? "radio" : "checkbox",
@@ -1656,15 +1665,15 @@ const X = ie("pg-history", {
1656
1665
  image: u.value,
1657
1666
  onClick: () => v(e.id),
1658
1667
  disable: d.value,
1659
- selected: C.value,
1660
- hasAccess: D.value,
1661
- onBlockAccess: _
1668
+ selected: T.value,
1669
+ hasAccess: w.value,
1670
+ onBlockAccess: C
1662
1671
  };
1663
- return h(Qe, I);
1672
+ return h(Je, P);
1664
1673
  }
1665
- return () => P();
1674
+ return () => I();
1666
1675
  }
1667
- }), ss = T({
1676
+ }), ss = _({
1668
1677
  name: "PgSkinsTool",
1669
1678
  props: {
1670
1679
  noWrap: Boolean,
@@ -1674,7 +1683,7 @@ const X = ie("pg-history", {
1674
1683
  },
1675
1684
  emits: ["click", "update:modelValue"],
1676
1685
  setup(e, { slots: t, emit: s }) {
1677
- const n = V(), r = Pe(), a = X(), { currentId: c } = S(a), d = y(() => {
1686
+ const n = R(), r = De(), a = K(), { currentId: c } = S(a), d = y(() => {
1678
1687
  if (e.playMode) {
1679
1688
  const g = r.getModelById(c.value);
1680
1689
  return n.getModelsByIds(g == null ? void 0 : g.skin_ids);
@@ -1693,26 +1702,26 @@ const X = ie("pg-history", {
1693
1702
  "q-pa-xs": e.playMode
1694
1703
  })).value, d.value.length;
1695
1704
  const v = [];
1696
- return d.value.forEach((C) => {
1697
- const _ = {
1698
- id: C.id,
1699
- key: C.id,
1705
+ return d.value.forEach((T) => {
1706
+ const C = {
1707
+ id: T.id,
1708
+ key: T.id,
1700
1709
  playMode: e.playMode,
1701
- slug: C.slug,
1710
+ slug: T.slug,
1702
1711
  class: "q-ma-xs"
1703
1712
  };
1704
- u.value && (_.uuid = u.value), v.push(h(Nr, _));
1705
- }), h(un, {}, () => v);
1713
+ u.value && (C.uuid = u.value), v.push(h(Vr, C));
1714
+ }), h(dn, {}, () => v);
1706
1715
  }
1707
1716
  return () => f();
1708
1717
  }
1709
- }), Or = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM21.6892 29.2971C20.618 29.3471 19.7271 29.4371 19.0165 29.567C18.3059 29.687 17.7384 29.8469 17.3142 30.0469C16.9006 30.2468 16.6036 30.4767 16.4233 30.7366C16.2536 30.9866 16.1688 31.2615 16.1688 31.5614C16.1688 32.1612 16.3438 32.5861 16.6937 32.836C17.0544 33.0859 17.5528 33.2109 18.1892 33.2109C18.921 33.2109 19.5521 33.0909 20.0824 32.851C20.6233 32.6011 21.1589 32.2162 21.6892 31.6963V29.2971ZM12.7483 22.4442C13.7134 21.6245 14.7794 21.0147 15.946 20.6148C17.1127 20.2049 18.3748 20 19.7324 20C20.7081 20 21.5778 20.15 22.3415 20.4499C23.1157 20.7498 23.768 21.1696 24.2983 21.7095C24.8392 22.2393 25.2528 22.8741 25.5392 23.6139C25.8256 24.3536 25.9687 25.1634 25.9687 26.0431V35.7601H23.9642C23.5506 35.7601 23.2324 35.7051 23.0097 35.5951C22.7975 35.4852 22.6225 35.2552 22.4847 34.9053L22.1347 33.9157C21.721 34.2555 21.318 34.5555 20.9256 34.8154C20.5437 35.0753 20.146 35.2952 19.7324 35.4752C19.3188 35.6451 18.8733 35.7751 18.396 35.865C17.9294 35.955 17.4044 36 16.821 36C16.0998 36 15.4422 35.91 14.8483 35.7301C14.2544 35.5501 13.74 35.2852 13.3051 34.9353C12.8809 34.5754 12.5521 34.1306 12.3187 33.6007C12.0854 33.0709 11.9688 32.4611 11.9688 31.7713C11.9688 31.2015 12.1225 30.6317 12.4301 30.0619C12.7377 29.492 13.2627 28.9772 14.0051 28.5173C14.7581 28.0475 15.7551 27.6626 16.996 27.3627C18.2475 27.0528 19.8119 26.8778 21.6892 26.8379V26.0431C21.6892 25.0734 21.4718 24.3636 21.0369 23.9138C20.6021 23.4539 19.9763 23.224 19.1597 23.224C18.5551 23.224 18.0513 23.294 17.6483 23.4339C17.2453 23.5639 16.89 23.7088 16.5824 23.8688C16.2854 24.0187 16.0044 24.1637 15.7392 24.3037C15.4741 24.4336 15.1665 24.4986 14.8165 24.4986C14.5089 24.4986 14.2491 24.4286 14.0369 24.2887C13.8354 24.1387 13.6657 23.9638 13.5278 23.7638L12.7483 22.4442Z|0 0 56 56", kr = "M40.3077 8.63218C39.2846 8.63218 38.4615 7.8225 38.4615 6.81609C38.4615 5.80967 39.2846 5 40.3077 5H50.1538C51.1769 5 52 5.80967 52 6.81609V16.5019C52 17.5083 51.1769 18.318 50.1538 18.318C49.1308 18.318 48.3077 17.5083 48.3077 16.5019V11.1974L42.5462 16.8651C44.6 19.2033 45.8462 22.2453 45.8462 25.5823C45.8462 32.9375 39.7846 38.9003 32.3077 38.9003C29.5846 38.9003 27.0462 38.1058 24.9231 36.7437C23.2846 37.7955 21.4077 38.5068 19.3769 38.7717C19.3769 38.8095 19.3846 38.8549 19.3846 38.8927V42.5249H23.0769C24.1 42.5249 24.9231 43.3346 24.9231 44.341C24.9231 45.3474 24.1 46.1571 23.0769 46.1571H19.3846V49.1839C19.3846 50.1903 18.5615 51 17.5385 51C16.5154 51 15.6923 50.1903 15.6923 49.1839V46.1571H12C10.9769 46.1571 10.1538 45.3474 10.1538 44.341C10.1538 43.3346 10.9769 42.5249 12 42.5249H15.6923V38.8927C15.6923 38.8549 15.6923 38.8095 15.7 38.7717C9.09231 37.8863 4 32.317 4 25.5748C4 18.2196 10.0615 12.2568 17.5385 12.2568C20.2615 12.2568 22.8 13.0513 24.9231 14.4134C27.0462 13.0513 29.5846 12.2568 32.3077 12.2568C35.0615 12.2568 37.6308 13.0665 39.7692 14.4588L45.7 8.63218H40.3077ZM22 16.9483C20.6615 16.2749 19.1462 15.8965 17.5385 15.8965C12.1 15.8965 7.69231 20.2324 7.69231 25.5823C7.69231 30.9322 12.1 35.2681 17.5385 35.2681C19.1462 35.2681 20.6615 34.8898 22 34.2163C19.9846 31.8932 18.7692 28.874 18.7692 25.5823C18.7692 22.2907 19.9846 19.2714 22 16.9483ZM24.9231 31.9916C26.4538 30.2815 27.3846 28.0416 27.3846 25.5823C27.3846 23.123 26.4538 20.8832 24.9231 19.1731C23.3923 20.8832 22.4615 23.123 22.4615 25.5823C22.4615 28.0416 23.3923 30.2815 24.9231 31.9916ZM27.8462 34.2239C29.1846 34.8974 30.7 35.2757 32.3077 35.2757C37.7462 35.2757 42.1538 30.9398 42.1538 25.5899C42.1538 20.24 37.7462 15.8965 32.3077 15.8965C30.7 15.8965 29.1846 16.2749 27.8462 16.9483C29.8615 19.2714 31.0769 22.2907 31.0769 25.5823C31.0769 28.874 29.8615 31.8932 27.8462 34.2163V34.2239Z|0 0 56 56", Lr = "M38.35 22.875C38.35 25.65 37.2719 28.1648 35.5109 30.0365C33.98 31.6553 32.2838 33.9389 31.68 36.75H24.32C23.7162 33.9316 22.02 31.6553 20.4891 30.0365C18.7281 28.1648 17.65 25.65 17.65 22.875C17.65 17.1299 22.2859 12.4688 28 12.4688C33.7141 12.4688 38.35 17.1299 38.35 22.875ZM34.9 38.8963C34.9 36.4176 36.3159 34.2207 38.0122 32.4213C40.3625 29.9354 41.8 26.575 41.8 22.875C41.8 15.2148 35.6187 9 28 9C20.3812 9 14.2 15.2148 14.2 22.875C14.2 26.575 15.6375 29.9354 17.9878 32.4213C19.6841 34.2207 21.1 36.4176 21.1 38.8963V40.2188C21.1 43.4129 23.6731 46 26.85 46H29.15C32.3269 46 34.9 43.4129 34.9 40.2188V38.8963ZM27.425 19.4062C28.3809 19.4062 29.15 18.633 29.15 17.6719C29.15 16.7107 28.3809 15.9375 27.425 15.9375C23.9319 15.9375 21.1 18.7848 21.1 22.2969C21.1 23.258 21.8691 24.0312 22.825 24.0312C23.7809 24.0312 24.55 23.258 24.55 22.2969C24.55 20.6998 25.8366 19.4062 27.425 19.4062ZM9.21906 10.915C8.36375 10.4887 7.32875 10.8355 6.90469 11.6883C6.48062 12.541 6.82562 13.5889 7.68094 14.0225L9.98094 15.1787C10.8363 15.6051 11.8712 15.2582 12.2953 14.4055C12.7194 13.5527 12.3744 12.5049 11.5262 12.0785L9.22625 10.9223L9.21906 10.915ZM48.3191 14.0152C49.1744 13.5889 49.5194 12.5482 49.0881 11.6883C48.6569 10.8283 47.6291 10.4814 46.7738 10.915L44.4738 12.0713C43.6184 12.4977 43.2734 13.5383 43.7047 14.3982C44.1359 15.2582 45.1637 15.6051 46.0191 15.1715L48.3191 14.0152ZM6.725 21.1406C5.76906 21.1406 5 21.9139 5 22.875C5 23.8361 5.76906 24.6094 6.725 24.6094H9.025C9.98094 24.6094 10.75 23.8361 10.75 22.875C10.75 21.9139 9.98094 21.1406 9.025 21.1406H6.725ZM46.975 21.1406C46.0191 21.1406 45.25 21.9139 45.25 22.875C45.25 23.8361 46.0191 24.6094 46.975 24.6094H49.275C50.2309 24.6094 51 23.8361 51 22.875C51 21.9139 50.2309 21.1406 49.275 21.1406H46.975ZM11.5191 33.6787C12.3744 33.2523 12.7194 32.2117 12.2881 31.3518C11.8569 30.4918 10.8291 30.1449 9.97375 30.5785L7.67375 31.7348C6.81844 32.1611 6.47344 33.2018 6.90469 34.0617C7.33594 34.9217 8.36375 35.2686 9.21906 34.835L11.5191 33.6787ZM46.0191 30.5785C45.1637 30.1521 44.1287 30.499 43.7047 31.3518C43.2806 32.2045 43.6256 33.2523 44.4738 33.6787L46.7738 34.835C47.6291 35.2613 48.6641 34.9145 49.0881 34.0617C49.5122 33.209 49.1672 32.1611 48.3191 31.7348L46.0191 30.5785Z|0 0 56 56", Vr = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM20.9919 20C22.1874 20 23.2747 20.1858 24.2538 20.5574C25.2328 20.9291 26.0728 21.4614 26.7736 22.1544C27.4744 22.8374 28.0155 23.6711 28.3968 24.6554C28.7781 25.6397 28.9688 26.7495 28.9688 27.9849C28.9688 29.2203 28.7781 30.3352 28.3968 31.3296C28.0155 32.3139 27.4744 33.1525 26.7736 33.8456C26.0728 34.5386 25.2328 35.0709 24.2538 35.4426C23.2747 35.8142 22.1874 36 20.9919 36C19.7861 36 18.6886 35.8142 17.6992 35.4426C16.7201 35.0709 15.8802 34.5386 15.1794 33.8456C14.4786 33.1525 13.9324 32.3139 13.5407 31.3296C13.1594 30.3352 12.9688 29.2203 12.9688 27.9849C12.9688 26.7495 13.1594 25.6397 13.5407 24.6554C13.9324 23.6711 14.4786 22.8374 15.1794 22.1544C15.8802 21.4614 16.7201 20.9291 17.6992 20.5574C18.6886 20.1858 19.7861 20 20.9919 20ZM20.9919 32.8814C22.208 32.8814 23.1098 32.4746 23.6973 31.661C24.2847 30.8374 24.5784 29.6171 24.5784 28C24.5784 26.393 24.2847 25.1827 23.6973 24.3691C23.1098 23.5455 22.208 23.1337 20.9919 23.1337C19.7449 23.1337 18.8277 23.5455 18.2402 24.3691C17.6528 25.1827 17.3591 26.393 17.3591 28C17.3591 29.6171 17.6528 30.8374 18.2402 31.661C18.8277 32.4746 19.7449 32.8814 20.9919 32.8814Z|0 0 56 56", Ur = "M17.2632 11.643C17.8471 11.1836 18.5626 10.9375 19.3028 10.9375H19.6811C20.5694 14.7027 23.9578 17.5 28.0041 17.5C32.0505 17.5 35.4389 14.7027 36.3271 10.9375H36.7054C37.4456 10.9375 38.1611 11.1836 38.745 11.643L48.4003 19.2473L44.4527 25.3832L40.1514 22.9961C39.5428 22.6598 38.7944 22.668 38.194 23.0207C37.5936 23.3734 37.2153 24.0215 37.2153 24.7188V44.4062C37.2153 44.7672 36.9192 45.0625 36.5574 45.0625H19.4509C19.089 45.0625 18.7929 44.7672 18.7929 44.4062V24.7188C18.7929 24.0215 18.4228 23.3734 17.8224 23.0207C17.2221 22.668 16.4737 22.6598 15.8651 22.9961L11.5555 25.3832L7.60788 19.2473L17.2632 11.643ZM19.3028 7C17.6744 7 16.0953 7.54961 14.8206 8.55039L3.75069 17.2703C2.95294 17.902 2.76378 19.0258 3.3148 19.8789L9.23629 29.0664C9.79554 29.9359 10.9469 30.223 11.8516 29.7227L14.8453 28.0656V44.4062C14.8453 46.941 16.9096 49 19.4509 49H36.5574C39.0987 49 41.163 46.941 41.163 44.4062V28.0656L44.1484 29.7227C45.0613 30.223 46.2045 29.9359 46.7637 29.0664L52.6852 19.8789C53.2362 19.0258 53.0471 17.8938 52.2493 17.2703L41.1876 8.55039C39.9129 7.54961 38.3338 7 36.7054 7H19.3028ZM23.8426 10.9375H32.1656C31.4254 12.4879 29.8381 13.5625 28.0041 13.5625C26.1701 13.5625 24.5828 12.4879 23.8426 10.9375Z|0 0 56 56", Rr = "M14.0004 46C12.8959 45.9999 12.0004 45.1045 12.0004 44L12.0004 12C12.0004 10.8955 12.8959 10.0001 14.0004 10C15.105 10 16.0004 10.8954 16.0004 12L16.0004 44C16.0004 45.1046 15.105 46 14.0004 46zM43.4145 44.9707C42.6334 45.7515 41.3673 45.7517 40.5863 44.9707L23.6156 28L40.5863 11.0293C41.3673 10.2486 42.6334 10.2487 43.4145 11.0293C44.1955 11.8103 44.1955 13.0774 43.4145 13.8584L29.2738 28.001L43.4145 42.1426C44.1955 42.9236 44.1955 44.1897 43.4145 44.9707Z|0 0 56 56", Br = "M41.9998 10C43.1043 10.0001 43.9998 10.8955 43.9998 12V44C43.9998 45.1045 43.1043 45.9999 41.9998 46C40.8953 46 39.9998 45.1046 39.9998 44V12C39.9998 10.8954 40.8953 10 41.9998 10zM12.5858 11.0293C13.3668 10.2485 14.6329 10.2483 15.4139 11.0293L32.3846 28L15.4139 44.9707C14.633 45.7514 13.3668 45.7513 12.5858 44.9707C11.8047 44.1897 11.8047 42.9226 12.5858 42.1416L26.7264 27.999L12.5858 13.8574C11.8047 13.0764 11.8047 11.8103 12.5858 11.0293Z|0 0 56 56", Sn = T({
1718
+ }), Ur = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM21.6892 29.2971C20.618 29.3471 19.7271 29.4371 19.0165 29.567C18.3059 29.687 17.7384 29.8469 17.3142 30.0469C16.9006 30.2468 16.6036 30.4767 16.4233 30.7366C16.2536 30.9866 16.1688 31.2615 16.1688 31.5614C16.1688 32.1612 16.3438 32.5861 16.6937 32.836C17.0544 33.0859 17.5528 33.2109 18.1892 33.2109C18.921 33.2109 19.5521 33.0909 20.0824 32.851C20.6233 32.6011 21.1589 32.2162 21.6892 31.6963V29.2971ZM12.7483 22.4442C13.7134 21.6245 14.7794 21.0147 15.946 20.6148C17.1127 20.2049 18.3748 20 19.7324 20C20.7081 20 21.5778 20.15 22.3415 20.4499C23.1157 20.7498 23.768 21.1696 24.2983 21.7095C24.8392 22.2393 25.2528 22.8741 25.5392 23.6139C25.8256 24.3536 25.9687 25.1634 25.9687 26.0431V35.7601H23.9642C23.5506 35.7601 23.2324 35.7051 23.0097 35.5951C22.7975 35.4852 22.6225 35.2552 22.4847 34.9053L22.1347 33.9157C21.721 34.2555 21.318 34.5555 20.9256 34.8154C20.5437 35.0753 20.146 35.2952 19.7324 35.4752C19.3188 35.6451 18.8733 35.7751 18.396 35.865C17.9294 35.955 17.4044 36 16.821 36C16.0998 36 15.4422 35.91 14.8483 35.7301C14.2544 35.5501 13.74 35.2852 13.3051 34.9353C12.8809 34.5754 12.5521 34.1306 12.3187 33.6007C12.0854 33.0709 11.9688 32.4611 11.9688 31.7713C11.9688 31.2015 12.1225 30.6317 12.4301 30.0619C12.7377 29.492 13.2627 28.9772 14.0051 28.5173C14.7581 28.0475 15.7551 27.6626 16.996 27.3627C18.2475 27.0528 19.8119 26.8778 21.6892 26.8379V26.0431C21.6892 25.0734 21.4718 24.3636 21.0369 23.9138C20.6021 23.4539 19.9763 23.224 19.1597 23.224C18.5551 23.224 18.0513 23.294 17.6483 23.4339C17.2453 23.5639 16.89 23.7088 16.5824 23.8688C16.2854 24.0187 16.0044 24.1637 15.7392 24.3037C15.4741 24.4336 15.1665 24.4986 14.8165 24.4986C14.5089 24.4986 14.2491 24.4286 14.0369 24.2887C13.8354 24.1387 13.6657 23.9638 13.5278 23.7638L12.7483 22.4442Z|0 0 56 56", Rr = "M40.3077 8.63218C39.2846 8.63218 38.4615 7.8225 38.4615 6.81609C38.4615 5.80967 39.2846 5 40.3077 5H50.1538C51.1769 5 52 5.80967 52 6.81609V16.5019C52 17.5083 51.1769 18.318 50.1538 18.318C49.1308 18.318 48.3077 17.5083 48.3077 16.5019V11.1974L42.5462 16.8651C44.6 19.2033 45.8462 22.2453 45.8462 25.5823C45.8462 32.9375 39.7846 38.9003 32.3077 38.9003C29.5846 38.9003 27.0462 38.1058 24.9231 36.7437C23.2846 37.7955 21.4077 38.5068 19.3769 38.7717C19.3769 38.8095 19.3846 38.8549 19.3846 38.8927V42.5249H23.0769C24.1 42.5249 24.9231 43.3346 24.9231 44.341C24.9231 45.3474 24.1 46.1571 23.0769 46.1571H19.3846V49.1839C19.3846 50.1903 18.5615 51 17.5385 51C16.5154 51 15.6923 50.1903 15.6923 49.1839V46.1571H12C10.9769 46.1571 10.1538 45.3474 10.1538 44.341C10.1538 43.3346 10.9769 42.5249 12 42.5249H15.6923V38.8927C15.6923 38.8549 15.6923 38.8095 15.7 38.7717C9.09231 37.8863 4 32.317 4 25.5748C4 18.2196 10.0615 12.2568 17.5385 12.2568C20.2615 12.2568 22.8 13.0513 24.9231 14.4134C27.0462 13.0513 29.5846 12.2568 32.3077 12.2568C35.0615 12.2568 37.6308 13.0665 39.7692 14.4588L45.7 8.63218H40.3077ZM22 16.9483C20.6615 16.2749 19.1462 15.8965 17.5385 15.8965C12.1 15.8965 7.69231 20.2324 7.69231 25.5823C7.69231 30.9322 12.1 35.2681 17.5385 35.2681C19.1462 35.2681 20.6615 34.8898 22 34.2163C19.9846 31.8932 18.7692 28.874 18.7692 25.5823C18.7692 22.2907 19.9846 19.2714 22 16.9483ZM24.9231 31.9916C26.4538 30.2815 27.3846 28.0416 27.3846 25.5823C27.3846 23.123 26.4538 20.8832 24.9231 19.1731C23.3923 20.8832 22.4615 23.123 22.4615 25.5823C22.4615 28.0416 23.3923 30.2815 24.9231 31.9916ZM27.8462 34.2239C29.1846 34.8974 30.7 35.2757 32.3077 35.2757C37.7462 35.2757 42.1538 30.9398 42.1538 25.5899C42.1538 20.24 37.7462 15.8965 32.3077 15.8965C30.7 15.8965 29.1846 16.2749 27.8462 16.9483C29.8615 19.2714 31.0769 22.2907 31.0769 25.5823C31.0769 28.874 29.8615 31.8932 27.8462 34.2163V34.2239Z|0 0 56 56", Br = "M38.35 22.875C38.35 25.65 37.2719 28.1648 35.5109 30.0365C33.98 31.6553 32.2838 33.9389 31.68 36.75H24.32C23.7162 33.9316 22.02 31.6553 20.4891 30.0365C18.7281 28.1648 17.65 25.65 17.65 22.875C17.65 17.1299 22.2859 12.4688 28 12.4688C33.7141 12.4688 38.35 17.1299 38.35 22.875ZM34.9 38.8963C34.9 36.4176 36.3159 34.2207 38.0122 32.4213C40.3625 29.9354 41.8 26.575 41.8 22.875C41.8 15.2148 35.6187 9 28 9C20.3812 9 14.2 15.2148 14.2 22.875C14.2 26.575 15.6375 29.9354 17.9878 32.4213C19.6841 34.2207 21.1 36.4176 21.1 38.8963V40.2188C21.1 43.4129 23.6731 46 26.85 46H29.15C32.3269 46 34.9 43.4129 34.9 40.2188V38.8963ZM27.425 19.4062C28.3809 19.4062 29.15 18.633 29.15 17.6719C29.15 16.7107 28.3809 15.9375 27.425 15.9375C23.9319 15.9375 21.1 18.7848 21.1 22.2969C21.1 23.258 21.8691 24.0312 22.825 24.0312C23.7809 24.0312 24.55 23.258 24.55 22.2969C24.55 20.6998 25.8366 19.4062 27.425 19.4062ZM9.21906 10.915C8.36375 10.4887 7.32875 10.8355 6.90469 11.6883C6.48062 12.541 6.82562 13.5889 7.68094 14.0225L9.98094 15.1787C10.8363 15.6051 11.8712 15.2582 12.2953 14.4055C12.7194 13.5527 12.3744 12.5049 11.5262 12.0785L9.22625 10.9223L9.21906 10.915ZM48.3191 14.0152C49.1744 13.5889 49.5194 12.5482 49.0881 11.6883C48.6569 10.8283 47.6291 10.4814 46.7738 10.915L44.4738 12.0713C43.6184 12.4977 43.2734 13.5383 43.7047 14.3982C44.1359 15.2582 45.1637 15.6051 46.0191 15.1715L48.3191 14.0152ZM6.725 21.1406C5.76906 21.1406 5 21.9139 5 22.875C5 23.8361 5.76906 24.6094 6.725 24.6094H9.025C9.98094 24.6094 10.75 23.8361 10.75 22.875C10.75 21.9139 9.98094 21.1406 9.025 21.1406H6.725ZM46.975 21.1406C46.0191 21.1406 45.25 21.9139 45.25 22.875C45.25 23.8361 46.0191 24.6094 46.975 24.6094H49.275C50.2309 24.6094 51 23.8361 51 22.875C51 21.9139 50.2309 21.1406 49.275 21.1406H46.975ZM11.5191 33.6787C12.3744 33.2523 12.7194 32.2117 12.2881 31.3518C11.8569 30.4918 10.8291 30.1449 9.97375 30.5785L7.67375 31.7348C6.81844 32.1611 6.47344 33.2018 6.90469 34.0617C7.33594 34.9217 8.36375 35.2686 9.21906 34.835L11.5191 33.6787ZM46.0191 30.5785C45.1637 30.1521 44.1287 30.499 43.7047 31.3518C43.2806 32.2045 43.6256 33.2523 44.4738 33.6787L46.7738 34.835C47.6291 35.2613 48.6641 34.9145 49.0881 34.0617C49.5122 33.209 49.1672 32.1611 48.3191 31.7348L46.0191 30.5785Z|0 0 56 56", $r = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM20.9919 20C22.1874 20 23.2747 20.1858 24.2538 20.5574C25.2328 20.9291 26.0728 21.4614 26.7736 22.1544C27.4744 22.8374 28.0155 23.6711 28.3968 24.6554C28.7781 25.6397 28.9688 26.7495 28.9688 27.9849C28.9688 29.2203 28.7781 30.3352 28.3968 31.3296C28.0155 32.3139 27.4744 33.1525 26.7736 33.8456C26.0728 34.5386 25.2328 35.0709 24.2538 35.4426C23.2747 35.8142 22.1874 36 20.9919 36C19.7861 36 18.6886 35.8142 17.6992 35.4426C16.7201 35.0709 15.8802 34.5386 15.1794 33.8456C14.4786 33.1525 13.9324 32.3139 13.5407 31.3296C13.1594 30.3352 12.9688 29.2203 12.9688 27.9849C12.9688 26.7495 13.1594 25.6397 13.5407 24.6554C13.9324 23.6711 14.4786 22.8374 15.1794 22.1544C15.8802 21.4614 16.7201 20.9291 17.6992 20.5574C18.6886 20.1858 19.7861 20 20.9919 20ZM20.9919 32.8814C22.208 32.8814 23.1098 32.4746 23.6973 31.661C24.2847 30.8374 24.5784 29.6171 24.5784 28C24.5784 26.393 24.2847 25.1827 23.6973 24.3691C23.1098 23.5455 22.208 23.1337 20.9919 23.1337C19.7449 23.1337 18.8277 23.5455 18.2402 24.3691C17.6528 25.1827 17.3591 26.393 17.3591 28C17.3591 29.6171 17.6528 30.8374 18.2402 31.661C18.8277 32.4746 19.7449 32.8814 20.9919 32.8814Z|0 0 56 56", zr = "M17.2632 11.643C17.8471 11.1836 18.5626 10.9375 19.3028 10.9375H19.6811C20.5694 14.7027 23.9578 17.5 28.0041 17.5C32.0505 17.5 35.4389 14.7027 36.3271 10.9375H36.7054C37.4456 10.9375 38.1611 11.1836 38.745 11.643L48.4003 19.2473L44.4527 25.3832L40.1514 22.9961C39.5428 22.6598 38.7944 22.668 38.194 23.0207C37.5936 23.3734 37.2153 24.0215 37.2153 24.7188V44.4062C37.2153 44.7672 36.9192 45.0625 36.5574 45.0625H19.4509C19.089 45.0625 18.7929 44.7672 18.7929 44.4062V24.7188C18.7929 24.0215 18.4228 23.3734 17.8224 23.0207C17.2221 22.668 16.4737 22.6598 15.8651 22.9961L11.5555 25.3832L7.60788 19.2473L17.2632 11.643ZM19.3028 7C17.6744 7 16.0953 7.54961 14.8206 8.55039L3.75069 17.2703C2.95294 17.902 2.76378 19.0258 3.3148 19.8789L9.23629 29.0664C9.79554 29.9359 10.9469 30.223 11.8516 29.7227L14.8453 28.0656V44.4062C14.8453 46.941 16.9096 49 19.4509 49H36.5574C39.0987 49 41.163 46.941 41.163 44.4062V28.0656L44.1484 29.7227C45.0613 30.223 46.2045 29.9359 46.7637 29.0664L52.6852 19.8789C53.2362 19.0258 53.0471 17.8938 52.2493 17.2703L41.1876 8.55039C39.9129 7.54961 38.3338 7 36.7054 7H19.3028ZM23.8426 10.9375H32.1656C31.4254 12.4879 29.8381 13.5625 28.0041 13.5625C26.1701 13.5625 24.5828 12.4879 23.8426 10.9375Z|0 0 56 56", Hr = "M14.0004 46C12.8959 45.9999 12.0004 45.1045 12.0004 44L12.0004 12C12.0004 10.8955 12.8959 10.0001 14.0004 10C15.105 10 16.0004 10.8954 16.0004 12L16.0004 44C16.0004 45.1046 15.105 46 14.0004 46zM43.4145 44.9707C42.6334 45.7515 41.3673 45.7517 40.5863 44.9707L23.6156 28L40.5863 11.0293C41.3673 10.2486 42.6334 10.2487 43.4145 11.0293C44.1955 11.8103 44.1955 13.0774 43.4145 13.8584L29.2738 28.001L43.4145 42.1426C44.1955 42.9236 44.1955 44.1897 43.4145 44.9707Z|0 0 56 56", Fr = "M41.9998 10C43.1043 10.0001 43.9998 10.8955 43.9998 12V44C43.9998 45.1045 43.1043 45.9999 41.9998 46C40.8953 46 39.9998 45.1046 39.9998 44V12C39.9998 10.8954 40.8953 10 41.9998 10zM12.5858 11.0293C13.3668 10.2485 14.6329 10.2483 15.4139 11.0293L32.3846 28L15.4139 44.9707C14.633 45.7514 13.3668 45.7513 12.5858 44.9707C11.8047 44.1897 11.8047 42.9226 12.5858 42.1416L26.7264 27.999L12.5858 13.8574C11.8047 13.0764 11.8047 11.8103 12.5858 11.0293Z|0 0 56 56", Tn = _({
1710
1719
  name: "PgSkinsExpansion",
1711
1720
  props: { playMode: Boolean },
1712
1721
  setup(e, { slots: t, emit: s }) {
1713
- const { lang: n } = M(), r = V(), { expanded: a } = ae({
1714
- options: Gt,
1715
- tab: Gt,
1722
+ const { lang: n } = A(), r = R(), { expanded: a } = pe({
1723
+ options: Yt,
1724
+ tab: Yt,
1716
1725
  playMode: e.playMode
1717
1726
  }), c = y(() => {
1718
1727
  var u;
@@ -1727,22 +1736,22 @@ const X = ie("pg-history", {
1727
1736
  "onUpdate:modelValue": (v) => a.value = v,
1728
1737
  label: c.value,
1729
1738
  caption: u.value,
1730
- icon: Ur
1739
+ icon: zr
1731
1740
  }, g = {
1732
1741
  playMode: e.playMode
1733
1742
  };
1734
- return h(me, f, () => h(ss, g));
1743
+ return h(Ee, f, () => h(ss, g));
1735
1744
  }
1736
1745
  return () => d();
1737
1746
  }
1738
- }), $r = T({
1747
+ }), qr = _({
1739
1748
  name: "PgEffectsToolButton",
1740
1749
  props: {
1741
1750
  id: { type: Number, required: !0 },
1742
1751
  playMode: Boolean
1743
1752
  },
1744
1753
  setup(e, { slots: t, emit: s }) {
1745
- const n = R(), r = k(), { loading: a } = S(r), c = () => n.setSelected(e.id, e.playMode), d = y(() => e.playMode ? n.playSelected : n.selected);
1754
+ const n = z(), r = V(), { loading: a } = S(r), c = () => n.setSelected(e.id, e.playMode), d = y(() => e.playMode ? n.playSelected : n.selected);
1746
1755
  function u() {
1747
1756
  const f = {
1748
1757
  class: "pg-effects-tool-button",
@@ -1754,11 +1763,11 @@ const X = ie("pg-history", {
1754
1763
  type: "radio",
1755
1764
  onClick: c
1756
1765
  };
1757
- return h(Qe, f);
1766
+ return h(Je, f);
1758
1767
  }
1759
1768
  return () => u();
1760
1769
  }
1761
- }), Tn = T({
1770
+ }), Cn = _({
1762
1771
  name: "PgEffectsTool",
1763
1772
  props: {
1764
1773
  modelValue: { type: Number, default: 0 },
@@ -1768,7 +1777,7 @@ const X = ie("pg-history", {
1768
1777
  },
1769
1778
  emits: ["click", "update:modelValue"],
1770
1779
  setup(e, { slots: t, emit: s }) {
1771
- const n = R(), { collection: r } = S(n);
1780
+ const n = z(), { collection: r } = S(n);
1772
1781
  function a() {
1773
1782
  const d = {
1774
1783
  class: y(() => ({
@@ -1777,23 +1786,23 @@ const X = ie("pg-history", {
1777
1786
  }, u = [];
1778
1787
  return r.value.forEach((f) => {
1779
1788
  u.push(
1780
- h($r, {
1789
+ h(qr, {
1781
1790
  id: f,
1782
1791
  playMode: e.playMode,
1783
1792
  class: "q-ma-xs"
1784
1793
  })
1785
1794
  );
1786
- }), h(un, d, () => u);
1795
+ }), h(dn, d, () => u);
1787
1796
  }
1788
1797
  return () => a();
1789
1798
  }
1790
- }), Cn = T({
1799
+ }), _n = _({
1791
1800
  name: "PgEffectsExpansion",
1792
1801
  props: { playMode: Boolean },
1793
1802
  setup(e, { slots: t, emit: s }) {
1794
- const { lang: n } = M(), r = R(), { expanded: a } = ae({
1795
- options: St,
1796
- tab: St,
1803
+ const { lang: n } = A(), r = z(), { expanded: a } = pe({
1804
+ options: Ct,
1805
+ tab: Ct,
1797
1806
  playMode: e.playMode
1798
1807
  }), c = y(() => {
1799
1808
  var u;
@@ -1808,21 +1817,21 @@ const X = ie("pg-history", {
1808
1817
  "onUpdate:modelValue": (v) => a.value = v,
1809
1818
  label: c.value,
1810
1819
  caption: u.value,
1811
- icon: pn
1820
+ icon: fn
1812
1821
  }, g = {
1813
1822
  playMode: e.playMode
1814
1823
  };
1815
- return h(me, f, () => h(Tn, g));
1824
+ return h(Ee, f, () => h(Cn, g));
1816
1825
  }
1817
1826
  return () => d();
1818
1827
  }
1819
- }), zr = {
1828
+ }), jr = {
1820
1829
  __name: "PgCameraAnglesToolButton",
1821
1830
  props: {
1822
1831
  id: Number
1823
1832
  },
1824
1833
  setup(e) {
1825
- const t = e, s = pe(), n = k(), { selected: r } = S(s), { loading: a } = S(n), c = y(() => r.value.includes(t.id)), d = y(() => s.propertyById(t.id, "name")), u = y(() => s.src(t.id)), f = y(() => {
1834
+ const t = e, s = me(), n = V(), { selected: r } = S(s), { loading: a } = S(n), c = y(() => r.value.includes(t.id)), d = y(() => s.propertyById(t.id, "name")), u = y(() => s.src(t.id)), f = y(() => {
1826
1835
  switch (t.id) {
1827
1836
  case 2:
1828
1837
  return "cad";
@@ -1831,39 +1840,39 @@ const X = ie("pg-history", {
1831
1840
  default:
1832
1841
  return "can";
1833
1842
  }
1834
- }), g = (_) => n.block(_), v = y(() => n.hasAccess(f.value)), C = (_) => s.toggleSelected(_);
1835
- return (_, D) => (O(), _t(A(Qe), {
1843
+ }), g = (C) => n.block(C), v = y(() => n.hasAccess(f.value)), T = (C) => s.toggleSelected(C);
1844
+ return (C, w) => (L(), It(N(Je), {
1836
1845
  size: "lg",
1837
1846
  type: "checkbox",
1838
1847
  access: f.value,
1839
- onClick: D[0] || (D[0] = (P) => C(e.id)),
1848
+ onClick: w[0] || (w[0] = (I) => T(e.id)),
1840
1849
  image: u.value,
1841
1850
  label: d.value,
1842
1851
  selected: c.value,
1843
- disable: A(a),
1852
+ disable: N(a),
1844
1853
  "has-access": v.value,
1845
1854
  onBlockAccess: g
1846
1855
  }, null, 8, ["access", "image", "label", "selected", "disable", "has-access"]));
1847
1856
  }
1848
- }, Hr = { class: "pg-cameras-tool row q-col-gutter-sm flex justify-center" }, _n = {
1857
+ }, Gr = { class: "pg-cameras-tool row q-col-gutter-sm flex justify-center" }, bn = {
1849
1858
  __name: "PgCameraAnglesTool",
1850
1859
  setup(e) {
1851
- const t = pe(), { collection: s } = S(t);
1852
- return (n, r) => (O(), $("div", Hr, [
1853
- (O(!0), $(Xe, null, Ze(A(s), (a) => (O(), $("div", {
1860
+ const t = me(), { collection: s } = S(t);
1861
+ return (n, r) => (L(), F("div", Gr, [
1862
+ (L(!0), F(Ze, null, Ke(N(s), (a) => (L(), F("div", {
1854
1863
  class: "",
1855
1864
  key: a
1856
1865
  }, [
1857
- B(zr, { id: a }, null, 8, ["id"])
1866
+ H(jr, { id: a }, null, 8, ["id"])
1858
1867
  ]))), 128))
1859
1868
  ]));
1860
1869
  }
1861
- }, Fr = T({
1870
+ }, Yr = _({
1862
1871
  name: "PgCamerasExpansion",
1863
1872
  setup(e, { slots: t, emit: s }) {
1864
- const { lang: n } = M(), r = pe(), { caption: a } = S(r), { expanded: c } = ae({
1865
- options: Ms,
1866
- tab: Ms
1873
+ const { lang: n } = A(), r = me(), { caption: a } = S(r), { expanded: c } = pe({
1874
+ options: As,
1875
+ tab: As
1867
1876
  }), d = y(() => {
1868
1877
  var f;
1869
1878
  return (f = n.value.pg) == null ? void 0 : f.tools.angle;
@@ -1875,49 +1884,49 @@ const X = ie("pg-history", {
1875
1884
  "onUpdate:modelValue": (g) => c.value = g,
1876
1885
  label: d.value,
1877
1886
  caption: a.value,
1878
- icon: Or
1887
+ icon: Ur
1879
1888
  };
1880
- return h(me, f, () => h(_n));
1889
+ return h(Ee, f, () => h(bn));
1881
1890
  }
1882
1891
  return () => u();
1883
1892
  }
1884
- }), qr = {
1893
+ }), Wr = {
1885
1894
  __name: "PgLightsToolButton",
1886
1895
  props: { id: Number },
1887
1896
  setup(e) {
1888
- const t = e, s = ee(), n = k(), { selected: r } = S(s), { loading: a } = S(n), c = y(() => r.value.includes(t.id)), d = y(() => s.propertyById(t.id, "name")), u = y(() => s.src(t.id)), f = y(() => t.id === 1 ? "ldl" : "ldr"), g = y(() => n.hasAccess(f.value)), v = (_) => n.block(_), C = (_) => s.toggleSelected(_);
1889
- return (_, D) => (O(), _t(A(Qe), {
1897
+ const t = e, s = oe(), n = V(), { selected: r } = S(s), { loading: a } = S(n), c = y(() => r.value.includes(t.id)), d = y(() => s.propertyById(t.id, "name")), u = y(() => s.src(t.id)), f = y(() => t.id === 1 ? "ldl" : "ldr"), g = y(() => n.hasAccess(f.value)), v = (C) => n.block(C), T = (C) => s.toggleSelected(C);
1898
+ return (C, w) => (L(), It(N(Je), {
1890
1899
  size: "lg",
1891
1900
  type: "checkbox",
1892
- onClick: D[0] || (D[0] = (P) => C(e.id)),
1901
+ onClick: w[0] || (w[0] = (I) => T(e.id)),
1893
1902
  image: u.value,
1894
1903
  label: d.value,
1895
1904
  selected: c.value,
1896
1905
  access: f.value,
1897
- disable: A(a),
1906
+ disable: N(a),
1898
1907
  "has-access": g.value,
1899
1908
  onBlockAccess: v
1900
1909
  }, null, 8, ["image", "label", "selected", "access", "disable", "has-access"]));
1901
1910
  }
1902
- }, jr = { class: "pg-lights-tool row q-col-gutter-sm flex justify-center" }, bn = {
1911
+ }, Xr = { class: "pg-lights-tool row q-col-gutter-sm flex justify-center" }, In = {
1903
1912
  __name: "PgLightsTool",
1904
1913
  setup(e) {
1905
- const t = ee(), { collection: s } = S(t);
1906
- return (n, r) => (O(), $("div", jr, [
1907
- (O(!0), $(Xe, null, Ze(A(s), (a) => (O(), $("div", {
1914
+ const t = oe(), { collection: s } = S(t);
1915
+ return (n, r) => (L(), F("div", Xr, [
1916
+ (L(!0), F(Ze, null, Ke(N(s), (a) => (L(), F("div", {
1908
1917
  class: "",
1909
1918
  key: a
1910
1919
  }, [
1911
- B(qr, { id: a }, null, 8, ["id"])
1920
+ H(Wr, { id: a }, null, 8, ["id"])
1912
1921
  ]))), 128))
1913
1922
  ]));
1914
1923
  }
1915
- }, Gr = T({
1924
+ }, Zr = _({
1916
1925
  name: "PgLightsExpansion",
1917
1926
  setup(e, { slots: t, emit: s }) {
1918
- const { lang: n } = M(), r = ee(), { caption: a } = S(r), { expanded: c } = ae({
1919
- options: As,
1920
- tab: As
1927
+ const { lang: n } = A(), r = oe(), { caption: a } = S(r), { expanded: c } = pe({
1928
+ options: Ns,
1929
+ tab: Ns
1921
1930
  }), d = y(() => {
1922
1931
  var f;
1923
1932
  return (f = n.value.pg) == null ? void 0 : f.tools.light;
@@ -1929,22 +1938,22 @@ const X = ie("pg-history", {
1929
1938
  "onUpdate:modelValue": (g) => c.value = g,
1930
1939
  label: d.value,
1931
1940
  caption: a.value,
1932
- icon: Lr
1941
+ icon: Br
1933
1942
  };
1934
- return h(me, f, () => h(bn));
1943
+ return h(Ee, f, () => h(In));
1935
1944
  }
1936
1945
  return () => u();
1937
1946
  }
1938
- }), Yr = T({
1947
+ }), Kr = _({
1939
1948
  name: "PgGendersToolButton",
1940
1949
  props: {
1941
1950
  id: Number,
1942
1951
  compact: Boolean
1943
1952
  },
1944
1953
  setup(e, { slots: t, emit: s }) {
1945
- const n = re(), r = k(), { selected: a } = S(n), { loading: c } = S(r), d = y(() => e.id === 111 ? "lmf" : "lmm"), u = y(() => n.propertyById(e.id, "name")), f = y(() => n.propertyById(e.id, "slug")), g = y(() => a.value.includes(e.id)), v = y(() => r.hasAccess(d.value));
1946
- function C() {
1947
- const _ = {
1954
+ const n = de(), r = V(), { selected: a } = S(n), { loading: c } = S(r), d = y(() => e.id === 111 ? "lmf" : "lmm"), u = y(() => n.propertyById(e.id, "name")), f = y(() => n.propertyById(e.id, "slug")), g = y(() => a.value.includes(e.id)), v = y(() => r.hasAccess(d.value));
1955
+ function T() {
1956
+ const C = {
1948
1957
  size: e.compact ? "sm" : "lg",
1949
1958
  type: "checkbox",
1950
1959
  access: d.value,
@@ -1954,20 +1963,20 @@ const X = ie("pg-history", {
1954
1963
  selected: g.value,
1955
1964
  disable: c.value,
1956
1965
  hasAccess: v.value,
1957
- onBlockAccess: (D) => r.block(D)
1966
+ onBlockAccess: (w) => r.block(w)
1958
1967
  };
1959
- return h(Qe, _);
1968
+ return h(Je, C);
1960
1969
  }
1961
- return () => C();
1970
+ return () => T();
1962
1971
  }
1963
- }), In = T({
1972
+ }), Pn = _({
1964
1973
  name: "PgGendersTool",
1965
1974
  props: {
1966
1975
  compact: Boolean
1967
1976
  },
1968
1977
  emits: ["click", "update:modelValue"],
1969
1978
  setup(e, { slots: t, emit: s }) {
1970
- const n = re(), { collection: r } = S(n);
1979
+ const n = de(), { collection: r } = S(n);
1971
1980
  function a() {
1972
1981
  const c = {
1973
1982
  class: "pg-genders-tool row q-col-gutter-sm flex justify-center"
@@ -1979,18 +1988,18 @@ const X = ie("pg-history", {
1979
1988
  compact: e.compact
1980
1989
  };
1981
1990
  d.push(
1982
- h("div", { class: "" }, [h(Yr, f)])
1991
+ h("div", { class: "" }, [h(Kr, f)])
1983
1992
  );
1984
1993
  }), h("div", c, d);
1985
1994
  }
1986
1995
  return () => a();
1987
1996
  }
1988
- }), Wr = T({
1997
+ }), Qr = _({
1989
1998
  name: "PgEffectsExpansion",
1990
1999
  setup(e, { slots: t, emit: s }) {
1991
- const { lang: n } = M(), r = re(), { caption: a } = S(r), { expanded: c } = ae({
1992
- options: Tt,
1993
- tab: Tt
2000
+ const { lang: n } = A(), r = de(), { caption: a } = S(r), { expanded: c } = pe({
2001
+ options: _t,
2002
+ tab: _t
1994
2003
  }), d = y(() => {
1995
2004
  var f;
1996
2005
  return (f = n.value.pg) == null ? void 0 : f.tools.gender;
@@ -2002,16 +2011,16 @@ const X = ie("pg-history", {
2002
2011
  "onUpdate:modelValue": (g) => c.value = g,
2003
2012
  label: d.value,
2004
2013
  caption: a.value,
2005
- icon: kr
2014
+ icon: Rr
2006
2015
  };
2007
- return h(me, f, () => h(In, { desktop: !1 }));
2016
+ return h(Ee, f, () => h(Pn, { desktop: !1 }));
2008
2017
  }
2009
2018
  return () => u();
2010
2019
  }
2011
- }), Pn = T({
2020
+ }), xn = _({
2012
2021
  name: "PgGridTool",
2013
2022
  setup(e, { slots: t, emit: s }) {
2014
- const n = Ie(), { visible: r } = S(n), a = y({
2023
+ const n = xe(), { visible: r } = S(n), a = y({
2015
2024
  get: () => n.spacing,
2016
2025
  set: (g) => n.setSpacing(g)
2017
2026
  }), c = y({
@@ -2038,15 +2047,15 @@ const X = ie("pg-history", {
2038
2047
  }
2039
2048
  return () => f();
2040
2049
  }
2041
- }), xn = T({
2050
+ }), Dn = _({
2042
2051
  name: "PgLightsExpansion",
2043
2052
  props: {
2044
2053
  playMode: Boolean
2045
2054
  },
2046
2055
  setup(e, { slots: t, emit: s }) {
2047
- const { lang: n } = M(), r = Ie(), { caption: a } = S(r), { expanded: c } = ae({
2048
- options: Ns,
2049
- tab: Ns,
2056
+ const { lang: n } = A(), r = xe(), { caption: a } = S(r), { expanded: c } = pe({
2057
+ options: Os,
2058
+ tab: Os,
2050
2059
  playMode: e.playMode
2051
2060
  }), d = y(() => {
2052
2061
  var f;
@@ -2061,64 +2070,64 @@ const X = ie("pg-history", {
2061
2070
  caption: a.value,
2062
2071
  icon: "f_grid"
2063
2072
  };
2064
- return h(me, f, () => h(Pn));
2073
+ return h(Ee, f, () => h(xn));
2065
2074
  }
2066
2075
  return () => u();
2067
2076
  }
2068
- }), Xr = { class: "quarters overlay" }, Zr = ["onClick", "onMouseover", "onMouseleave"], Qr = { class: "quarters borders" }, Kr = { class: "quickpose-angle" }, Jr = ["src"], Hs = "cps", wn = {
2077
+ }), Jr = { class: "quarters overlay" }, ei = ["onClick", "onMouseover", "onMouseleave"], ti = { class: "quarters borders" }, si = { class: "quickpose-angle" }, ni = ["src"], Fs = "cps", wn = {
2069
2078
  __name: "PgPosePositionTool",
2070
2079
  setup(e) {
2071
- const t = fe(), s = re(), n = k(), { selected: r, collectedModels: a } = S(t), { collectedModels: c } = S(s), { loading: d } = S(n), u = j(null), f = y(() => {
2072
- const P = c.value;
2073
- return P.length === 2 ? Math.floor(Math.random() * 2) === 1 ? v("male") : v("female") : P.includes(110) ? v("male") : v("female");
2074
- }), g = y(() => n.hasAccess(Hs)), v = (P) => `https://static.figurosity.com/pose-generator/position/model-${P}.webp`, C = (P) => u.value = P, _ = (P) => u.value = null, D = (P) => {
2080
+ const t = ve(), s = de(), n = V(), { selected: r, collectedModels: a } = S(t), { collectedModels: c } = S(s), { loading: d } = S(n), u = Z(null), f = y(() => {
2081
+ const I = c.value;
2082
+ return I.length === 2 ? Math.floor(Math.random() * 2) === 1 ? v("male") : v("female") : I.includes(110) ? v("male") : v("female");
2083
+ }), g = y(() => n.hasAccess(Fs)), v = (I) => `https://static.figurosity.com/pose-generator/position/model-${I}.webp`, T = (I) => u.value = I, C = (I) => u.value = null, w = (I) => {
2075
2084
  if (!d.value) {
2076
2085
  if (g.value) {
2077
- t.toggleSelected(P);
2086
+ t.toggleSelected(I);
2078
2087
  return;
2079
2088
  }
2080
- n.block(Hs);
2089
+ n.block(Fs);
2081
2090
  }
2082
2091
  };
2083
- return (P, I) => (O(), $("div", {
2084
- class: mt(["c-pose-position", { disabled: A(d) }])
2092
+ return (I, P) => (L(), F("div", {
2093
+ class: yt(["c-pose-position", { disabled: N(d) }])
2085
2094
  }, [
2086
- De("div", Xr, [
2087
- (O(!0), $(Xe, null, Ze(A(a), (b) => (O(), $("div", {
2088
- class: mt(["quarter", b.slug]),
2095
+ Ae("div", Jr, [
2096
+ (L(!0), F(Ze, null, Ke(N(a), (b) => (L(), F("div", {
2097
+ class: yt(["quarter", b.slug]),
2089
2098
  key: b.id,
2090
- onClick: (x) => D(b.id),
2091
- onMouseover: (x) => C(b.slug),
2092
- onMouseleave: (x) => _(b.slug)
2093
- }, null, 42, Zr))), 128))
2099
+ onClick: (x) => w(b.id),
2100
+ onMouseover: (x) => T(b.slug),
2101
+ onMouseleave: (x) => C(b.slug)
2102
+ }, null, 42, ei))), 128))
2094
2103
  ]),
2095
- De("div", Qr, [
2096
- (O(!0), $(Xe, null, Ze(A(a), (b) => (O(), $("div", {
2097
- class: mt([
2104
+ Ae("div", ti, [
2105
+ (L(!0), F(Ze, null, Ke(N(a), (b) => (L(), F("div", {
2106
+ class: yt([
2098
2107
  "quarter",
2099
- b.slug + (A(r).includes(b.id) ? " active" : "") + (u.value === b.slug ? " hover" : "")
2108
+ b.slug + (N(r).includes(b.id) ? " active" : "") + (u.value === b.slug ? " hover" : "")
2100
2109
  ]),
2101
2110
  key: b.id,
2102
2111
  ref_for: !0,
2103
2112
  ref: b.slug
2104
2113
  }, [
2105
- De("span", null, _o(b.name), 1)
2114
+ Ae("span", null, bo(b.name), 1)
2106
2115
  ], 2))), 128))
2107
2116
  ]),
2108
- De("div", Kr, [
2109
- De("img", {
2117
+ Ae("div", si, [
2118
+ Ae("img", {
2110
2119
  src: f.value,
2111
2120
  class: ""
2112
- }, null, 8, Jr)
2121
+ }, null, 8, ni)
2113
2122
  ])
2114
2123
  ], 2));
2115
2124
  }
2116
- }, ei = T({
2125
+ }, oi = _({
2117
2126
  name: "PgEffectsExpansion",
2118
2127
  setup(e, { slots: t, emit: s }) {
2119
- const { lang: n } = M(), r = fe(), { caption: a } = S(r), { expanded: c } = ae({
2120
- options: Os,
2121
- tab: Os
2128
+ const { lang: n } = A(), r = ve(), { caption: a } = S(r), { expanded: c } = pe({
2129
+ options: ks,
2130
+ tab: ks
2122
2131
  }), d = y(() => {
2123
2132
  var f;
2124
2133
  return (f = n.value.pg) == null ? void 0 : f.tools.position;
@@ -2130,20 +2139,20 @@ const X = ie("pg-history", {
2130
2139
  "onUpdate:modelValue": (g) => c.value = g,
2131
2140
  label: d.value,
2132
2141
  caption: a.value,
2133
- icon: Vr
2142
+ icon: $r
2134
2143
  };
2135
- return h(me, f, () => h(wn));
2144
+ return h(Ee, f, () => h(wn));
2136
2145
  }
2137
2146
  return () => u();
2138
2147
  }
2139
- }), Dn = T({
2148
+ }), Mn = _({
2140
2149
  name: "PgBrightnessTool",
2141
2150
  props: {
2142
2151
  noIcons: Boolean
2143
2152
  },
2144
2153
  emits: ["update:modelValue"],
2145
2154
  setup(e, { slots: t, emit: s }) {
2146
- const n = ge(), r = y({
2155
+ const n = ye(), r = y({
2147
2156
  get: () => n.brightness,
2148
2157
  set: (c) => n.setBrightness(c)
2149
2158
  });
@@ -2159,11 +2168,11 @@ const X = ie("pg-history", {
2159
2168
  }
2160
2169
  return () => a();
2161
2170
  }
2162
- }), Mn = T({
2171
+ }), An = _({
2163
2172
  name: "PgBrightnessTool",
2164
2173
  emits: ["update:modelValue"],
2165
2174
  setup(e, { slots: t, emit: s }) {
2166
- const n = ge(), r = y({
2175
+ const n = ye(), r = y({
2167
2176
  get: () => n.contrast,
2168
2177
  set: (c) => n.setContrast(c)
2169
2178
  });
@@ -2178,11 +2187,11 @@ const X = ie("pg-history", {
2178
2187
  }
2179
2188
  return () => a();
2180
2189
  }
2181
- }), An = T({
2190
+ }), Nn = _({
2182
2191
  name: "PgBrightnessTool",
2183
2192
  emits: ["update:modelValue"],
2184
2193
  setup(e, { slots: t, emit: s }) {
2185
- const n = ge(), r = y({
2194
+ const n = ye(), r = y({
2186
2195
  get: () => n.saturate,
2187
2196
  set: (c) => n.setSaturate(c)
2188
2197
  });
@@ -2197,15 +2206,15 @@ const X = ie("pg-history", {
2197
2206
  }
2198
2207
  return () => a();
2199
2208
  }
2200
- }), Nn = T({
2209
+ }), On = _({
2201
2210
  name: "PgEffectsExpansion",
2202
2211
  props: {
2203
2212
  playMode: Boolean
2204
2213
  },
2205
2214
  setup(e, { slots: t, emit: s }) {
2206
- const { lang: n } = M(), r = ge(), { caption: a } = S(r), { expanded: c } = ae({
2207
- options: ks,
2208
- tab: ks,
2215
+ const { lang: n } = A(), r = ye(), { caption: a } = S(r), { expanded: c } = pe({
2216
+ options: Ls,
2217
+ tab: Ls,
2209
2218
  playMode: e.playMode
2210
2219
  }), d = y(() => {
2211
2220
  var f;
@@ -2218,45 +2227,45 @@ const X = ie("pg-history", {
2218
2227
  "onUpdate:modelValue": (g) => c.value = g,
2219
2228
  label: d.value,
2220
2229
  caption: a.value,
2221
- icon: fn
2230
+ icon: gn
2222
2231
  };
2223
- return h(me, f, () => [
2224
- h(Dn),
2232
+ return h(Ee, f, () => [
2225
2233
  h(Mn),
2226
- h(An)
2234
+ h(An),
2235
+ h(Nn)
2227
2236
  ]);
2228
2237
  }
2229
2238
  return () => u();
2230
2239
  }
2231
- }), ti = T({
2240
+ }), ri = _({
2232
2241
  name: "PgExpansions",
2233
2242
  setup(e, { slots: t, emit: s }) {
2234
2243
  function n() {
2235
2244
  return h("div", {
2236
2245
  class: "pg-expansions"
2237
2246
  }, [
2238
- h(Ar),
2239
- h(J),
2240
- h(Sn),
2241
- h(J),
2242
- h(Cn),
2243
- h(J),
2244
- h(Fr),
2245
- h(J),
2246
- h(Wr),
2247
- h(J),
2248
- h(ei),
2249
- h(J),
2250
- h(xn),
2251
- h(J),
2252
- h(Gr),
2253
- h(J),
2254
- h(Nn)
2247
+ h(Lr),
2248
+ h(ne),
2249
+ h(Tn),
2250
+ h(ne),
2251
+ h(_n),
2252
+ h(ne),
2253
+ h(Yr),
2254
+ h(ne),
2255
+ h(Qr),
2256
+ h(ne),
2257
+ h(oi),
2258
+ h(ne),
2259
+ h(Dn),
2260
+ h(ne),
2261
+ h(Zr),
2262
+ h(ne),
2263
+ h(On)
2255
2264
  ]);
2256
2265
  }
2257
2266
  return () => n();
2258
2267
  }
2259
- }), ve = T({
2268
+ }), Se = _({
2260
2269
  name: "PgCard",
2261
2270
  props: {
2262
2271
  label: String,
@@ -2284,13 +2293,13 @@ const X = ie("pg-history", {
2284
2293
  {
2285
2294
  default: () => [
2286
2295
  h(Ro, {}, () => [
2287
- h(Ls, { avatar: !0 }, () => [
2296
+ h(Vs, { avatar: !0 }, () => [
2288
2297
  h(Bo, { name: e.icon, size: "36px" })
2289
2298
  ]),
2290
- h(Ls, {}, () => [
2291
- h(Vs, { class: "pg-card-label" }, () => e.label),
2299
+ h(Vs, {}, () => [
2300
+ h(Us, { class: "pg-card-label" }, () => e.label),
2292
2301
  h(
2293
- Vs,
2302
+ Us,
2294
2303
  { class: "pg-card-caption", caption: !0 },
2295
2304
  () => e.caption
2296
2305
  )
@@ -2306,10 +2315,10 @@ const X = ie("pg-history", {
2306
2315
  }
2307
2316
  return () => n();
2308
2317
  }
2309
- }), si = T({
2318
+ }), ii = _({
2310
2319
  name: "PgDurationCard",
2311
2320
  setup(e, { slots: t, emit: s }) {
2312
- const { lang: n } = M(), r = Z(), { title: a } = S(r), c = y(() => {
2321
+ const { lang: n } = A(), r = Q(), { title: a } = S(r), c = y(() => {
2313
2322
  var u;
2314
2323
  return (u = n.value.pg) == null ? void 0 : u.tools.duration;
2315
2324
  });
@@ -2318,16 +2327,16 @@ const X = ie("pg-history", {
2318
2327
  class: "pg-duration-card",
2319
2328
  label: c.value,
2320
2329
  caption: a.value,
2321
- icon: hn
2330
+ icon: pn
2322
2331
  };
2323
- return h(ve, u, () => h(En, {}));
2332
+ return h(Se, u, () => h(Sn, {}));
2324
2333
  }
2325
2334
  return () => d();
2326
2335
  }
2327
- }), ni = T({
2336
+ }), ai = _({
2328
2337
  name: "PgSkinsCard",
2329
2338
  setup(e, { slots: t, emit: s }) {
2330
- const { lang: n } = M(), r = V(), a = y(() => {
2339
+ const { lang: n } = A(), r = R(), a = y(() => {
2331
2340
  var u;
2332
2341
  return (u = n.value.pg) == null ? void 0 : u.tools.skins;
2333
2342
  }), c = y(() => r.caption);
@@ -2338,16 +2347,16 @@ const X = ie("pg-history", {
2338
2347
  caption: c.value,
2339
2348
  icon: Wo
2340
2349
  };
2341
- return h(ve, u, {
2350
+ return h(Se, u, {
2342
2351
  default: () => h(ss, { desktop: !0 })
2343
2352
  });
2344
2353
  }
2345
2354
  return () => d();
2346
2355
  }
2347
- }), oi = T({
2356
+ }), li = _({
2348
2357
  name: "PgEffectsCard",
2349
2358
  setup(e, { slots: t, emit: s }) {
2350
- const { lang: n } = M(), r = R(), a = y(() => {
2359
+ const { lang: n } = A(), r = z(), a = y(() => {
2351
2360
  var u;
2352
2361
  return (u = n.value.pg) == null ? void 0 : u.tools.effects;
2353
2362
  }), c = y(() => r.caption);
@@ -2356,17 +2365,17 @@ const X = ie("pg-history", {
2356
2365
  class: "pg-skins-card",
2357
2366
  label: a.value,
2358
2367
  caption: c.value,
2359
- icon: pn
2368
+ icon: fn
2360
2369
  };
2361
- return h(ve, u, () => [h(Tn, { desktop: !0 })]);
2370
+ return h(Se, u, () => [h(Cn, { desktop: !0 })]);
2362
2371
  }
2363
2372
  return () => d();
2364
2373
  }
2365
- }), ri = T({
2374
+ }), ci = _({
2366
2375
  name: "PgCameraAnglesCard",
2367
2376
  emits: ["click", "update:modelValue"],
2368
2377
  setup(e, { slots: t, emit: s }) {
2369
- const { lang: n } = M(), r = pe(), { caption: a } = S(r), c = y(() => {
2378
+ const { lang: n } = A(), r = me(), { caption: a } = S(r), c = y(() => {
2370
2379
  var u;
2371
2380
  return (u = n.value.pg) == null ? void 0 : u.tools.angle;
2372
2381
  });
@@ -2377,14 +2386,14 @@ const X = ie("pg-history", {
2377
2386
  caption: a.value,
2378
2387
  icon: Xo
2379
2388
  };
2380
- return h(ve, u, () => [h(_n)]);
2389
+ return h(Se, u, () => [h(bn)]);
2381
2390
  }
2382
2391
  return () => d();
2383
2392
  }
2384
- }), ii = T({
2393
+ }), ui = _({
2385
2394
  name: "PgLightsCard",
2386
2395
  setup(e, { slots: t, emit: s }) {
2387
- const { lang: n } = M(), r = ee(), { caption: a } = S(r), c = y(() => {
2396
+ const { lang: n } = A(), r = oe(), { caption: a } = S(r), c = y(() => {
2388
2397
  var u;
2389
2398
  return (u = n.value.pg) == null ? void 0 : u.tools.light;
2390
2399
  });
@@ -2395,19 +2404,19 @@ const X = ie("pg-history", {
2395
2404
  caption: a.value,
2396
2405
  icon: Zo
2397
2406
  };
2398
- return h(ve, u, {
2399
- default: () => h(bn, { desktop: !0 })
2407
+ return h(Se, u, {
2408
+ default: () => h(In, { desktop: !0 })
2400
2409
  });
2401
2410
  }
2402
2411
  return () => d();
2403
2412
  }
2404
- }), ai = T({
2413
+ }), di = _({
2405
2414
  name: "PgGendersCard",
2406
2415
  setup(e, { slots: t, emit: s }) {
2407
- const { lang: n } = M(), r = re(), { caption: a } = S(r);
2408
- ae({
2409
- options: Tt,
2410
- tab: Tt
2416
+ const { lang: n } = A(), r = de(), { caption: a } = S(r);
2417
+ pe({
2418
+ options: _t,
2419
+ tab: _t
2411
2420
  });
2412
2421
  const c = y(() => {
2413
2422
  var u;
@@ -2418,16 +2427,16 @@ const X = ie("pg-history", {
2418
2427
  class: "pg-genders-card",
2419
2428
  label: c.value,
2420
2429
  caption: a.value,
2421
- icon: Qo
2430
+ icon: Ko
2422
2431
  };
2423
- return h(ve, u, () => [h(In)]);
2432
+ return h(Se, u, () => [h(Pn)]);
2424
2433
  }
2425
2434
  return () => d();
2426
2435
  }
2427
- }), li = T({
2436
+ }), hi = _({
2428
2437
  name: "PgPosePositionCard",
2429
2438
  setup(e, { slots: t, emit: s }) {
2430
- const { lang: n } = M(), r = fe(), { caption: a } = S(r), c = y(() => {
2439
+ const { lang: n } = A(), r = ve(), { caption: a } = S(r), c = y(() => {
2431
2440
  var u;
2432
2441
  return (u = n.value.pg) == null ? void 0 : u.tools.position;
2433
2442
  });
@@ -2436,15 +2445,15 @@ const X = ie("pg-history", {
2436
2445
  class: "pg-pose-position-card",
2437
2446
  label: c.value,
2438
2447
  caption: a.value,
2439
- icon: Ko
2448
+ icon: Qo
2440
2449
  };
2441
- return h(ve, u, {
2450
+ return h(Se, u, {
2442
2451
  default: () => h(wn)
2443
2452
  });
2444
2453
  }
2445
2454
  return () => d();
2446
2455
  }
2447
- }), ci = T({
2456
+ }), pi = _({
2448
2457
  name: "PgGridCard",
2449
2458
  props: {
2450
2459
  modelValue: { type: Number, default: 0 },
@@ -2453,7 +2462,7 @@ const X = ie("pg-history", {
2453
2462
  },
2454
2463
  emits: ["click", "update:modelValue"],
2455
2464
  setup(e, { slots: t, emit: s }) {
2456
- const { lang: n } = M(), r = Ie(), { caption: a } = S(r), c = y(() => {
2465
+ const { lang: n } = A(), r = xe(), { caption: a } = S(r), c = y(() => {
2457
2466
  var u;
2458
2467
  return (u = n.value.pg) == null ? void 0 : u.tools.grid;
2459
2468
  });
@@ -2464,28 +2473,28 @@ const X = ie("pg-history", {
2464
2473
  caption: a.value,
2465
2474
  icon: Jo
2466
2475
  };
2467
- return h(ve, u, { default: () => h(Pn) });
2476
+ return h(Se, u, { default: () => h(xn) });
2468
2477
  }
2469
2478
  return () => d();
2470
2479
  }
2471
- }), ui = T({
2480
+ }), fi = _({
2472
2481
  name: "PgAdjustmentsTool",
2473
2482
  setup(e, { slots: t, emit: s }) {
2474
2483
  function n() {
2475
2484
  return h("div", {
2476
2485
  class: "pg-adjustments-tool"
2477
2486
  }, [
2478
- h(Dn),
2479
2487
  h(Mn),
2480
- h(An)
2488
+ h(An),
2489
+ h(Nn)
2481
2490
  ]);
2482
2491
  }
2483
2492
  return () => n();
2484
2493
  }
2485
- }), di = T({
2494
+ }), gi = _({
2486
2495
  name: "PgAdjustmentsCard",
2487
2496
  setup(e, { slots: t, emit: s }) {
2488
- const { lang: n } = M(), r = ge(), { caption: a } = S(r), c = y(() => {
2497
+ const { lang: n } = A(), r = ye(), { caption: a } = S(r), c = y(() => {
2489
2498
  var u;
2490
2499
  return (u = n.value.pg) == null ? void 0 : u.tools.adjustment;
2491
2500
  });
@@ -2494,19 +2503,19 @@ const X = ie("pg-history", {
2494
2503
  class: "pg-adjustments-card",
2495
2504
  label: c.value,
2496
2505
  caption: a.value,
2497
- icon: fn
2506
+ icon: gn
2498
2507
  };
2499
- return h(ve, u, () => [h(ui)]);
2508
+ return h(Se, u, () => [h(fi)]);
2500
2509
  }
2501
2510
  return () => d();
2502
2511
  }
2503
- }), On = T({
2512
+ }), kn = _({
2504
2513
  name: "PgOverviewContent",
2505
2514
  props: {
2506
2515
  size: { default: "lg", type: String }
2507
2516
  },
2508
2517
  setup(e, { slots: t, emit: s }) {
2509
- const { lang: n } = M(), r = y(
2518
+ const { lang: n } = A(), r = y(
2510
2519
  () => n.value && n.value.pg ? n.value.pg.overview.title : "s"
2511
2520
  ), a = y(
2512
2521
  () => n.value && n.value.pg ? n.value.pg.overview.heading : ""
@@ -2524,7 +2533,7 @@ const X = ie("pg-history", {
2524
2533
  }
2525
2534
  return () => c();
2526
2535
  }
2527
- }), hi = T({
2536
+ }), mi = _({
2528
2537
  name: "PgCards",
2529
2538
  setup(e, { slots: t, emit: s }) {
2530
2539
  function n() {
@@ -2533,32 +2542,32 @@ const X = ie("pg-history", {
2533
2542
  style: "max-width: 1024px;width: 100%;margin: auto;"
2534
2543
  }, [
2535
2544
  h("div", { class: "row q-col-gutter-md" }, [
2536
- h("div", { class: "col-7" }, h(On)),
2537
- h("div", { class: "col-5" }, [h(si)])
2545
+ h("div", { class: "col-7" }, h(kn)),
2546
+ h("div", { class: "col-5" }, [h(ii)])
2538
2547
  ]),
2539
2548
  h("div", { class: "row q-col-gutter-md" }, [
2540
- h(ni, { class: "col-7" }),
2541
- h(oi, { class: "col-5" })
2549
+ h(ai, { class: "col-7" }),
2550
+ h(li, { class: "col-5" })
2542
2551
  ]),
2543
2552
  h("div", { class: "row q-col-gutter-md" }, [
2544
- h(ri, { class: "col-6" }),
2545
- h(ii, { class: "col-3" }),
2546
- h(ai, { class: "col-3" })
2553
+ h(ci, { class: "col-6" }),
2554
+ h(ui, { class: "col-3" }),
2555
+ h(di, { class: "col-3" })
2547
2556
  ]),
2548
2557
  h("div", { class: "row q-col-gutter-md" }, [
2549
- h(li, { class: "col-4" }),
2550
- h(ci, { class: "col-4" }),
2551
- h(di, { class: "col-4" })
2558
+ h(hi, { class: "col-4" }),
2559
+ h(pi, { class: "col-4" }),
2560
+ h(gi, { class: "col-4" })
2552
2561
  ])
2553
2562
  ]);
2554
2563
  }
2555
2564
  return () => n();
2556
2565
  }
2557
- }), pi = T({
2566
+ }), vi = _({
2558
2567
  name: "PgAnimatedCount",
2559
2568
  emits: ["click", "update:modelValue"],
2560
2569
  setup(e, { slots: t, emit: s }) {
2561
- const n = Pt(), r = k(), { filtering: a } = S(r), { lang: c } = M(), d = y(() => {
2570
+ const n = Dt(), r = V(), { filtering: a } = S(r), { lang: c } = A(), d = y(() => {
2562
2571
  var g;
2563
2572
  return (g = c.value.pg) == null ? void 0 : g.possibilities.title;
2564
2573
  }), { adjustedCount: u } = S(n);
@@ -2578,30 +2587,30 @@ const X = ie("pg-history", {
2578
2587
  }
2579
2588
  return () => f();
2580
2589
  }
2581
- }), fi = T({
2590
+ }), yi = _({
2582
2591
  name: "PgBottomButtons",
2583
2592
  setup(e, { slots: t, emit: s }) {
2584
- const n = Te(), r = Pt(), a = k(), c = (I) => a.customReset(), d = (I) => n.open(), {
2593
+ const n = _e(), r = Dt(), a = V(), c = (P) => a.customReset(), d = (P) => n.open(), {
2585
2594
  filters: u,
2586
2595
  adjustedCount: f,
2587
2596
  loading: g,
2588
2597
  error: v
2589
- } = S(r), { lang: C } = M(), _ = y(() => {
2590
- var I;
2591
- return (I = C.value.pg) == null ? void 0 : I.overview.startLabel;
2592
- }), D = y(() => {
2593
- var I;
2594
- return (I = C.value.pg) == null ? void 0 : I.overview.resetLabel;
2598
+ } = S(r), { lang: T } = A(), C = y(() => {
2599
+ var P;
2600
+ return (P = T.value.pg) == null ? void 0 : P.overview.startLabel;
2601
+ }), w = y(() => {
2602
+ var P;
2603
+ return (P = T.value.pg) == null ? void 0 : P.overview.resetLabel;
2595
2604
  });
2596
- Ne(
2605
+ ce(
2597
2606
  () => u.value,
2598
2607
  () => {
2599
2608
  r.fetchForDisplay();
2600
2609
  },
2601
2610
  { immediate: !0 }
2602
2611
  );
2603
- function P() {
2604
- const I = {
2612
+ function I() {
2613
+ const P = {
2605
2614
  class: "pg-buttons q-col-gutter-sm q-pa-md row"
2606
2615
  }, b = {
2607
2616
  class: "q-px-lg",
@@ -2611,76 +2620,76 @@ const X = ie("pg-history", {
2611
2620
  unelevated: !0
2612
2621
  }, x = {
2613
2622
  ...b,
2614
- label: _.value,
2623
+ label: C.value,
2615
2624
  onClick: d,
2616
2625
  disabled: g.value,
2617
2626
  "data-cy": "pg-button-start"
2618
- }, F = {
2627
+ }, B = {
2619
2628
  ...b,
2620
- label: D.value,
2629
+ label: w.value,
2621
2630
  outline: !0,
2622
2631
  onClick: c,
2623
2632
  disabled: g.value,
2624
2633
  "data-cy": "pg-button-reset"
2625
2634
  };
2626
- return h("div", I, [
2635
+ return h("div", P, [
2627
2636
  h("div", { class: "col col-sm-auto text-center" }, [
2628
- h(Oe, F)
2637
+ h(ke, B)
2629
2638
  ]),
2630
2639
  h("div", { class: "col col-sm-auto text-center" }, [
2631
- h(Oe, x)
2640
+ h(ke, x)
2632
2641
  ])
2633
2642
  ]);
2634
2643
  }
2635
- return () => P();
2644
+ return () => I();
2636
2645
  }
2637
- }), kn = T({
2646
+ }), Ln = _({
2638
2647
  name: "PgGridOverlay",
2639
2648
  setup(e, { slots: t, emit: s }) {
2640
- const n = It(), r = ln(), a = Ie(), {
2649
+ const n = xt(), r = cn(), a = xe(), {
2641
2650
  visible: c,
2642
2651
  spacing: d,
2643
2652
  horizontal: u,
2644
2653
  vertical: f
2645
- } = S(a), g = j({
2654
+ } = S(a), g = Z({
2646
2655
  width: 0,
2647
2656
  height: 0
2648
2657
  }), v = y(() => {
2649
- const I = g.value;
2650
- return I.width < I.height ? I.width : I.height;
2658
+ const P = g.value;
2659
+ return P.width < P.height ? P.width : P.height;
2660
+ }), T = y(() => {
2661
+ const P = v.value;
2662
+ return { width: P, height: P };
2651
2663
  }), C = y(() => {
2652
- const I = v.value;
2653
- return { width: I, height: I };
2654
- }), _ = y(() => {
2655
- const I = g.value, b = I.width, x = I.height;
2656
- let F = 0, le = 0;
2657
- return b > x && (le = (b - x) / 2), x > b && (F = (x - b) / 2), { top: F, left: le };
2658
- }), D = (I) => {
2659
- g.value = I;
2664
+ const P = g.value, b = P.width, x = P.height;
2665
+ let B = 0, te = 0;
2666
+ return b > x && (te = (b - x) / 2), x > b && (B = (x - b) / 2), { top: B, left: te };
2667
+ }), w = (P) => {
2668
+ g.value = P;
2660
2669
  };
2661
- bt(() => {
2662
- console.log("Ext bus exists?", !!r, "id:", r && r.__bus_id), r.$on("resize", D), r.$emit("resize", {
2670
+ Qe(() => {
2671
+ console.log("Ext bus exists?", !!r, "id:", r && r.__bus_id), r.$on("resize", w), r.$emit("resize", {
2663
2672
  width: window.innerWidth,
2664
2673
  height: window.innerHeight
2665
2674
  }), g.value = { width: n.screen.width, height: n.screen.height };
2666
- }), Jt(() => r.$off("resize"));
2667
- function P() {
2668
- const I = {
2675
+ }), Pt(() => r.$off("resize"));
2676
+ function I() {
2677
+ const P = {
2669
2678
  class: "pg-grid-overlay",
2670
2679
  style: "z-index: 8",
2671
2680
  visible: c.value,
2672
2681
  lines: d.value,
2673
2682
  offsetX: u.value / 100,
2674
2683
  offsetY: f.value / 100,
2675
- imagePoint: _.value,
2676
- imageSize: C.value,
2684
+ imagePoint: C.value,
2685
+ imageSize: T.value,
2677
2686
  viewportSize: g.value
2678
2687
  };
2679
- return h(jo, I);
2688
+ return h(jo, P);
2680
2689
  }
2681
- return () => P();
2690
+ return () => I();
2682
2691
  }
2683
- }), gi = T({
2692
+ }), Ei = _({
2684
2693
  name: "PgOverviewButtons",
2685
2694
  setup(e, { slots: t, emit: s }) {
2686
2695
  function n() {
@@ -2701,32 +2710,32 @@ const X = ie("pg-history", {
2701
2710
  style: "max-width: 1024px; margin: auto;"
2702
2711
  },
2703
2712
  [
2704
- h("div", a, h(pi)),
2705
- h("div", c, h(fi))
2713
+ h("div", a, h(vi)),
2714
+ h("div", c, h(yi))
2706
2715
  ]
2707
2716
  )
2708
2717
  );
2709
2718
  }
2710
2719
  return () => n();
2711
2720
  }
2712
- }), mi = { class: "column pg-overview full-width q-pt-lg" }, vi = {
2721
+ }), Si = { class: "column pg-overview full-width q-pt-lg" }, Ti = {
2713
2722
  __name: "PgOverview",
2714
2723
  setup(e) {
2715
- return (t, s) => (O(), $("div", mi, [
2716
- B(A(kn)),
2717
- B(A(hi), { class: "col full-height gt-sm" }),
2718
- B(A(On), {
2724
+ return (t, s) => (L(), F("div", Si, [
2725
+ H(N(Ln)),
2726
+ H(N(mi), { class: "col full-height gt-sm" }),
2727
+ H(N(kn), {
2719
2728
  class: "lt-md",
2720
2729
  style: { height: "200px" }
2721
2730
  }),
2722
- B(A(ti), {
2731
+ H(N(ri), {
2723
2732
  class: "lt-md",
2724
2733
  style: { "z-index": "9" }
2725
2734
  }),
2726
- B(A(gi))
2735
+ H(N(Ei))
2727
2736
  ]));
2728
2737
  }
2729
- }, yi = T({
2738
+ }, Ci = _({
2730
2739
  name: "PgExitButton",
2731
2740
  props: {
2732
2741
  show: {
@@ -2735,7 +2744,7 @@ const X = ie("pg-history", {
2735
2744
  }
2736
2745
  },
2737
2746
  setup(e, { slots: t, emit: s }) {
2738
- const n = Te(), { lang: r } = M(), a = y(() => {
2747
+ const n = _e(), { lang: r } = A(), a = y(() => {
2739
2748
  var u;
2740
2749
  return (u = r.value.pg) == null ? void 0 : u.buttons.exit.title;
2741
2750
  }), c = (u) => u.preventDefault();
@@ -2758,17 +2767,17 @@ const X = ie("pg-history", {
2758
2767
  style: "background-color: #fff!important"
2759
2768
  };
2760
2769
  return h(
2761
- qt,
2770
+ jt,
2762
2771
  { name: "fade" },
2763
- () => vt(
2764
- h(zo, u, () => [h(Oe, f)]),
2765
- [[yt, e.show]]
2772
+ () => Et(
2773
+ h(zo, u, () => [h(ke, f)]),
2774
+ [[St, e.show]]
2766
2775
  )
2767
2776
  );
2768
2777
  }
2769
2778
  return () => d();
2770
2779
  }
2771
- }), ns = T({
2780
+ }), ns = _({
2772
2781
  name: "PgBaseButton",
2773
2782
  props: {
2774
2783
  type: String,
@@ -2790,7 +2799,7 @@ const X = ie("pg-history", {
2790
2799
  round: !0
2791
2800
  };
2792
2801
  return h("div", {}, [
2793
- h(Oe, r, { default: () => {
2802
+ h(ke, r, { default: () => {
2794
2803
  var a;
2795
2804
  return (a = t.default) == null ? void 0 : a.call(t);
2796
2805
  } })
@@ -2798,14 +2807,14 @@ const X = ie("pg-history", {
2798
2807
  }
2799
2808
  return () => n();
2800
2809
  }
2801
- }), Ei = T({
2810
+ }), _i = _({
2802
2811
  name: "PgNextButton",
2803
2812
  setup(e, { slots: t, emit: s }) {
2804
- const n = Te(), { nextDisabled: r } = S(n);
2813
+ const n = _e(), { nextDisabled: r } = S(n);
2805
2814
  function a() {
2806
2815
  const c = {
2807
2816
  type: "next",
2808
- icon: Br,
2817
+ icon: Fr,
2809
2818
  onClick: n.next,
2810
2819
  disable: r.value
2811
2820
  };
@@ -2813,17 +2822,17 @@ const X = ie("pg-history", {
2813
2822
  }
2814
2823
  return () => a();
2815
2824
  }
2816
- }), Si = T({
2825
+ }), bi = _({
2817
2826
  name: "PgNextButton",
2818
2827
  setup(e, { slots: t, emit: s }) {
2819
- const n = he(), r = Z(), { milliseconds: a } = S(n), { duration: c } = S(r), d = Te(), { playing: u } = S(n), f = y(() => u.value ? tr : sr), g = () => u.value ? d.pause() : d.play();
2828
+ const n = ue(), r = Q(), { milliseconds: a } = S(n), { duration: c } = S(r), d = _e(), { playing: u } = S(n), f = y(() => u.value ? tr : sr), g = () => u.value ? d.pause() : d.play();
2820
2829
  function v() {
2821
- const C = {
2830
+ const T = {
2822
2831
  type: "play",
2823
2832
  icon: f.value,
2824
2833
  outline: !0,
2825
2834
  onClick: g
2826
- }, _ = {
2835
+ }, C = {
2827
2836
  class: "pg-timer-progress",
2828
2837
  min: 0,
2829
2838
  max: (c.value - 1) * 1e3,
@@ -2833,18 +2842,18 @@ const X = ie("pg-history", {
2833
2842
  thickness: 0.2,
2834
2843
  instantFeedback: !0
2835
2844
  };
2836
- return h(ns, C, () => [h(Ho, _)]);
2845
+ return h(ns, T, () => [h(Ho, C)]);
2837
2846
  }
2838
2847
  return () => v();
2839
2848
  }
2840
- }), Ti = T({
2849
+ }), Ii = _({
2841
2850
  name: "PgPreviousButton",
2842
2851
  setup(e, { slots: t, emit: s }) {
2843
- const n = Te(), { previousDisabled: r } = S(n);
2852
+ const n = _e(), { previousDisabled: r } = S(n);
2844
2853
  function a() {
2845
2854
  const c = {
2846
2855
  type: "previous",
2847
- icon: Rr,
2856
+ icon: Hr,
2848
2857
  onClick: n.previous,
2849
2858
  disable: r.value
2850
2859
  };
@@ -2852,29 +2861,29 @@ const X = ie("pg-history", {
2852
2861
  }
2853
2862
  return () => a();
2854
2863
  }
2855
- }), Ci = T({
2864
+ }), Pi = _({
2856
2865
  name: "PgTimer",
2857
2866
  setup(e, { slots: t, emit: s }) {
2858
- const n = he(), r = Z(), { formatted: a, milliseconds: c } = S(n), { duration: d } = S(r), u = y(() => {
2859
- let C = d.value * 1e3 - 300, _ = d.value * 1e3 - 600;
2860
- return c.value < C && c.value > _;
2867
+ const n = ue(), r = Q(), { formatted: a, milliseconds: c } = S(n), { duration: d } = S(r), u = y(() => {
2868
+ let T = d.value * 1e3 - 300, C = d.value * 1e3 - 600;
2869
+ return c.value < T && c.value > C;
2861
2870
  }), f = y(() => {
2862
- let C = 40;
2863
- return d.value > 60 && (C = 65), d.value >= 600 && (C = 85), { width: `${C}px` };
2871
+ let T = 40;
2872
+ return d.value > 60 && (T = 65), d.value >= 600 && (T = 85), { width: `${T}px` };
2864
2873
  }), g = y(() => ({
2865
2874
  "pg-timer-seconds": !0,
2866
2875
  flash: u.value
2867
2876
  }));
2868
2877
  function v() {
2869
- const C = {
2878
+ const T = {
2870
2879
  class: g.value,
2871
2880
  style: f.value
2872
2881
  };
2873
- return h("div", C, a.value);
2882
+ return h("div", T, a.value);
2874
2883
  }
2875
2884
  return () => v();
2876
2885
  }
2877
- }), Ln = T({
2886
+ }), Vn = _({
2878
2887
  name: "PgControls",
2879
2888
  props: { center: Boolean },
2880
2889
  setup(e, { slots: t, emit: s }) {
@@ -2884,14 +2893,14 @@ const X = ie("pg-history", {
2884
2893
  };
2885
2894
  e.center && (r.class = r.class + " justify-center");
2886
2895
  const a = [];
2887
- return a.push(h(Ti)), a.push(h(Si)), a.push(h(Ei)), a.push(h(Ci)), h("div", r, a);
2896
+ return a.push(h(Ii)), a.push(h(bi)), a.push(h(_i)), a.push(h(Pi)), h("div", r, a);
2888
2897
  }
2889
2898
  return () => n();
2890
2899
  }
2891
- }), Vn = T({
2900
+ }), Un = _({
2892
2901
  name: "PgView360",
2893
2902
  setup(e, { slots: t, emit: s }) {
2894
- const n = X(), { lang: r } = M(), a = y(() => {
2903
+ const n = K(), { lang: r } = A(), a = y(() => {
2895
2904
  var d;
2896
2905
  return (d = r.value.pg) == null ? void 0 : d.buttons.view360.title;
2897
2906
  });
@@ -2905,23 +2914,23 @@ const X = ie("pg-history", {
2905
2914
  outline: !0,
2906
2915
  color: "primary"
2907
2916
  };
2908
- return h(Oe, u);
2917
+ return h(ke, u);
2909
2918
  }
2910
2919
  return () => c();
2911
2920
  }
2912
- }), Un = T({
2921
+ }), Rn = _({
2913
2922
  name: "PgPlayExpansions",
2914
2923
  setup(e, { slots: t, emit: s }) {
2915
- const n = It();
2924
+ const n = xt();
2916
2925
  function r() {
2917
- const a = j(n.platform.is.desktop), c = {
2926
+ const a = Z(n.platform.is.desktop), c = {
2918
2927
  class: "pg-play-expansions"
2919
2928
  }, d = [];
2920
- return a.value && (d.push(h(Sn, { playMode: !0 })), d.push(h(J))), d.push(h(Cn, { playMode: !0 })), d.push(h(J)), d.push(h(xn, { playMode: !0 })), d.push(h(J)), d.push(h(Nn, { playMode: !0 })), a.value && d.push(h("div", { class: "q-pa-lg" }, [h(Vn)])), h("div", c, d);
2929
+ return a.value && (d.push(h(Tn, { playMode: !0 })), d.push(h(ne))), d.push(h(_n, { playMode: !0 })), d.push(h(ne)), d.push(h(Dn, { playMode: !0 })), d.push(h(ne)), d.push(h(On, { playMode: !0 })), a.value && d.push(h("div", { class: "q-pa-lg" }, [h(Un)])), h("div", c, d);
2921
2930
  }
2922
2931
  return () => r();
2923
2932
  }
2924
- }), _i = T({
2933
+ }), xi = _({
2925
2934
  name: "PgModalControls",
2926
2935
  props: {
2927
2936
  modelValue: Boolean,
@@ -2941,20 +2950,20 @@ const X = ie("pg-history", {
2941
2950
  "onUpdate:modelValue": (c) => n.value = c
2942
2951
  };
2943
2952
  return h(Go, a, {
2944
- default: () => h(Ln),
2945
- expanded: () => h(Un)
2953
+ default: () => h(Vn),
2954
+ expanded: () => h(Rn)
2946
2955
  });
2947
2956
  }
2948
2957
  return () => r();
2949
2958
  }
2950
- }), bi = ["src"], Ii = {
2959
+ }), Di = ["src"], wi = {
2951
2960
  __name: "PgDisplayImage",
2952
2961
  props: {
2953
2962
  flipped: Boolean,
2954
2963
  zIndex: Number
2955
2964
  },
2956
2965
  setup(e) {
2957
- const t = X(), s = ln(), n = e, r = y(() => t.playSrc), a = j(null), c = y(() => {
2966
+ const t = K(), s = cn(), n = e, r = y(() => t.playSrc), a = Z(null), c = y(() => {
2958
2967
  const f = {
2959
2968
  // ...filterStyle.value,
2960
2969
  zIndex: n.zIndex + 2
@@ -2971,23 +2980,23 @@ const X = ie("pg-history", {
2971
2980
  a.value = f.width > f.height;
2972
2981
  };
2973
2982
  function u() {
2974
- const f = window, g = document, v = g.documentElement, C = g.getElementsByTagName("body")[0], _ = f.innerWidth || v.clientWidth || C.clientWidth, D = f.innerHeight || v.clientHeight || C.clientHeight;
2975
- d({ width: _, height: D });
2983
+ const f = window, g = document, v = g.documentElement, T = g.getElementsByTagName("body")[0], C = f.innerWidth || v.clientWidth || T.clientWidth, w = f.innerHeight || v.clientHeight || T.clientHeight;
2984
+ d({ width: C, height: w });
2976
2985
  }
2977
- return bt(() => {
2986
+ return Qe(() => {
2978
2987
  u(), s.$on("resize", d);
2979
- }), Jt(() => s.$off("resize")), (f, g) => (O(), $("img", {
2988
+ }), Pt(() => s.$off("resize")), (f, g) => (L(), F("img", {
2980
2989
  src: r.value,
2981
- class: mt(["pg-display-image", { "flip-horizontal": e.flipped }]),
2982
- style: on(c.value)
2983
- }, null, 14, bi));
2990
+ class: yt(["pg-display-image", { "flip-horizontal": e.flipped }]),
2991
+ style: rn(c.value)
2992
+ }, null, 14, Di));
2984
2993
  }
2985
- }, Pi = {
2994
+ }, Mi = {
2986
2995
  __name: "PgDisplay",
2987
2996
  setup(e) {
2988
- const t = ge(), s = X();
2989
- Pe();
2990
- const n = R(), { playSelected: r } = S(n), { brightness: a, contrast: c, saturate: d } = S(t), { filterStyle: u } = Oo({
2997
+ const t = ye(), s = K();
2998
+ De();
2999
+ const n = z(), { playSelected: r } = S(n), { brightness: a, contrast: c, saturate: d } = S(t), { filterStyle: u } = Oo({
2991
3000
  brightness: a,
2992
3001
  contrast: c,
2993
3002
  saturate: d,
@@ -2995,31 +3004,31 @@ const X = ie("pg-history", {
2995
3004
  }), f = y(() => ({
2996
3005
  ...u.value,
2997
3006
  backgroundColor: r.value === 3 ? "#000000" : "#ffffff"
2998
- })), { current: g } = S(s), v = j([]), C = j(1);
2999
- return Ne(
3007
+ })), { current: g } = S(s), v = Z([]), T = Z(1);
3008
+ return ce(
3000
3009
  () => {
3001
- var _, D, P;
3002
- return [(_ = g.value) == null ? void 0 : _.id, (D = g.value) == null ? void 0 : D.src, (P = g.value) == null ? void 0 : P.status];
3010
+ var C, w, I;
3011
+ return [(C = g.value) == null ? void 0 : C.id, (w = g.value) == null ? void 0 : w.src, (I = g.value) == null ? void 0 : I.status];
3003
3012
  },
3004
- ([_, D, P], I, b) => {
3005
- if (!(P === an && D)) return;
3006
- const x = _.split("."), F = _ ?? `${D}#${Date.now()}`;
3013
+ ([C, w, I], P, b) => {
3014
+ if (!(I === ln && w)) return;
3015
+ const x = C.split("."), B = C ?? `${w}#${Date.now()}`;
3007
3016
  v.value = [
3008
3017
  ...v.value,
3009
- { key: F, src: D, zIndex: C.value, flipped: x[2] === "1" }
3010
- ], C.value++, v.value.length > 1 && (v.value = v.value.slice(-1));
3018
+ { key: B, src: w, zIndex: T.value, flipped: x[2] === "1" }
3019
+ ], T.value++, v.value.length > 1 && (v.value = v.value.slice(-1));
3011
3020
  },
3012
3021
  { immediate: !0 }
3013
- ), (_, D) => (O(), $("div", {
3022
+ ), (C, w) => (L(), F("div", {
3014
3023
  class: "pg-display",
3015
- style: on(f.value)
3024
+ style: rn(f.value)
3016
3025
  }, [
3017
- B(bo, { name: "pgfade" }, {
3018
- default: jt(() => [
3019
- (O(!0), $(Xe, null, Ze(v.value, (P, I) => (O(), _t(Ii, {
3020
- key: P.key,
3021
- zIndex: parseInt(P.zIndex),
3022
- flipped: P.flipped
3026
+ H(Io, { name: "pgfade" }, {
3027
+ default: Gt(() => [
3028
+ (L(!0), F(Ze, null, Ke(v.value, (I, P) => (L(), It(wi, {
3029
+ key: I.key,
3030
+ zIndex: parseInt(I.zIndex),
3031
+ flipped: I.flipped
3023
3032
  }, null, 8, ["zIndex", "flipped"]))), 128))
3024
3033
  ]),
3025
3034
  _: 1
@@ -3027,24 +3036,24 @@ const X = ie("pg-history", {
3027
3036
  ], 4));
3028
3037
  }
3029
3038
  };
3030
- var Ht = { exports: {} };
3039
+ var Ft = { exports: {} };
3031
3040
  /*! Hammer.JS - v2.0.7 - 2016-04-22
3032
3041
  * http://hammerjs.github.io/
3033
3042
  *
3034
3043
  * Copyright (c) 2016 Jorik Tangelder;
3035
3044
  * Licensed under the MIT license */
3036
- var Fs;
3037
- function xi() {
3038
- return Fs || (Fs = 1, (function(e) {
3045
+ var qs;
3046
+ function Ai() {
3047
+ return qs || (qs = 1, (function(e) {
3039
3048
  (function(t, s, n, r) {
3040
3049
  var a = ["", "webkit", "Moz", "MS", "ms", "o"], c = s.createElement("div"), d = "function", u = Math.round, f = Math.abs, g = Date.now;
3041
3050
  function v(o, i, l) {
3042
- return setTimeout(F(o, l), i);
3051
+ return setTimeout(B(o, l), i);
3043
3052
  }
3044
- function C(o, i, l) {
3045
- return Array.isArray(o) ? (_(o, l[i], l), !0) : !1;
3053
+ function T(o, i, l) {
3054
+ return Array.isArray(o) ? (C(o, l[i], l), !0) : !1;
3046
3055
  }
3047
- function _(o, i, l) {
3056
+ function C(o, i, l) {
3048
3057
  var p;
3049
3058
  if (o)
3050
3059
  if (o.forEach)
@@ -3056,17 +3065,17 @@ function xi() {
3056
3065
  for (p in o)
3057
3066
  o.hasOwnProperty(p) && i.call(l, o[p], p, o);
3058
3067
  }
3059
- function D(o, i, l) {
3068
+ function w(o, i, l) {
3060
3069
  var p = "DEPRECATED METHOD: " + i + `
3061
3070
  ` + l + ` AT
3062
3071
  `;
3063
3072
  return function() {
3064
- var m = new Error("get-stack-trace"), E = m && m.stack ? m.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", w = t.console && (t.console.warn || t.console.log);
3065
- return w && w.call(t.console, p, E), o.apply(this, arguments);
3073
+ var m = new Error("get-stack-trace"), E = m && m.stack ? m.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", D = t.console && (t.console.warn || t.console.log);
3074
+ return D && D.call(t.console, p, E), o.apply(this, arguments);
3066
3075
  };
3067
3076
  }
3068
- var P;
3069
- typeof Object.assign != "function" ? P = function(i) {
3077
+ var I;
3078
+ typeof Object.assign != "function" ? I = function(i) {
3070
3079
  if (i === r || i === null)
3071
3080
  throw new TypeError("Cannot convert undefined or null to object");
3072
3081
  for (var l = Object(i), p = 1; p < arguments.length; p++) {
@@ -3076,40 +3085,40 @@ function xi() {
3076
3085
  m.hasOwnProperty(E) && (l[E] = m[E]);
3077
3086
  }
3078
3087
  return l;
3079
- } : P = Object.assign;
3080
- var I = D(function(i, l, p) {
3088
+ } : I = Object.assign;
3089
+ var P = w(function(i, l, p) {
3081
3090
  for (var m = Object.keys(l), E = 0; E < m.length; )
3082
3091
  (!p || p && i[m[E]] === r) && (i[m[E]] = l[m[E]]), E++;
3083
3092
  return i;
3084
- }, "extend", "Use `assign`."), b = D(function(i, l) {
3085
- return I(i, l, !0);
3093
+ }, "extend", "Use `assign`."), b = w(function(i, l) {
3094
+ return P(i, l, !0);
3086
3095
  }, "merge", "Use `assign`.");
3087
3096
  function x(o, i, l) {
3088
3097
  var p = i.prototype, m;
3089
- m = o.prototype = Object.create(p), m.constructor = o, m._super = p, l && P(m, l);
3098
+ m = o.prototype = Object.create(p), m.constructor = o, m._super = p, l && I(m, l);
3090
3099
  }
3091
- function F(o, i) {
3100
+ function B(o, i) {
3092
3101
  return function() {
3093
3102
  return o.apply(i, arguments);
3094
3103
  };
3095
3104
  }
3096
- function le(o, i) {
3105
+ function te(o, i) {
3097
3106
  return typeof o == d ? o.apply(i && i[0] || r, i) : o;
3098
3107
  }
3099
- function Ve(o, i) {
3108
+ function M(o, i) {
3100
3109
  return o === r ? i : o;
3101
3110
  }
3102
- function ye(o, i, l) {
3103
- _(Je(i), function(p) {
3111
+ function O(o, i, l) {
3112
+ C(tt(i), function(p) {
3104
3113
  o.addEventListener(p, l, !1);
3105
3114
  });
3106
3115
  }
3107
- function Q(o, i, l) {
3108
- _(Je(i), function(p) {
3116
+ function Y(o, i, l) {
3117
+ C(tt(i), function(p) {
3109
3118
  o.removeEventListener(p, l, !1);
3110
3119
  });
3111
3120
  }
3112
- function ce(o, i) {
3121
+ function q(o, i) {
3113
3122
  for (; o; ) {
3114
3123
  if (o == i)
3115
3124
  return !0;
@@ -3117,13 +3126,13 @@ function xi() {
3117
3126
  }
3118
3127
  return !1;
3119
3128
  }
3120
- function G(o, i) {
3129
+ function W(o, i) {
3121
3130
  return o.indexOf(i) > -1;
3122
3131
  }
3123
- function Je(o) {
3132
+ function tt(o) {
3124
3133
  return o.trim().split(/\s+/g);
3125
3134
  }
3126
- function xe(o, i, l) {
3135
+ function we(o, i, l) {
3127
3136
  if (o.indexOf && !l)
3128
3137
  return o.indexOf(i);
3129
3138
  for (var p = 0; p < o.length; ) {
@@ -3133,19 +3142,19 @@ function xi() {
3133
3142
  }
3134
3143
  return -1;
3135
3144
  }
3136
- function et(o) {
3145
+ function st(o) {
3137
3146
  return Array.prototype.slice.call(o, 0);
3138
3147
  }
3139
3148
  function rs(o, i, l) {
3140
3149
  for (var p = [], m = [], E = 0; E < o.length; ) {
3141
- var w = o[E][i];
3142
- xe(m, w) < 0 && p.push(o[E]), m[E] = w, E++;
3150
+ var D = o[E][i];
3151
+ we(m, D) < 0 && p.push(o[E]), m[E] = D, E++;
3143
3152
  }
3144
- return p = p.sort(function(U, H) {
3145
- return U[i] > H[i];
3153
+ return p = p.sort(function($, G) {
3154
+ return $[i] > G[i];
3146
3155
  }), p;
3147
3156
  }
3148
- function tt(o, i) {
3157
+ function nt(o, i) {
3149
3158
  for (var l, p, m = i[0].toUpperCase() + i.slice(1), E = 0; E < a.length; ) {
3150
3159
  if (l = a[E], p = l ? l + m : i, p in o)
3151
3160
  return p;
@@ -3153,22 +3162,22 @@ function xi() {
3153
3162
  }
3154
3163
  return r;
3155
3164
  }
3156
- var $n = 1;
3157
- function zn() {
3158
- return $n++;
3165
+ var zn = 1;
3166
+ function Hn() {
3167
+ return zn++;
3159
3168
  }
3160
3169
  function is(o) {
3161
3170
  var i = o.ownerDocument || o;
3162
3171
  return i.defaultView || i.parentWindow || t;
3163
3172
  }
3164
- var Hn = /mobile|tablet|ip(ad|hone|od)|android/i, as = "ontouchstart" in t, Fn = tt(t, "PointerEvent") !== r, qn = as && Hn.test(navigator.userAgent), Ue = "touch", jn = "pen", Dt = "mouse", Gn = "kinect", Yn = 25, z = 1, Ce = 2, N = 4, q = 8, st = 1, Re = 2, Be = 4, $e = 8, ze = 16, te = Re | Be, _e = $e | ze, ls = te | _e, cs = ["x", "y"], nt = ["clientX", "clientY"];
3165
- function Y(o, i) {
3173
+ var Fn = /mobile|tablet|ip(ad|hone|od)|android/i, as = "ontouchstart" in t, qn = nt(t, "PointerEvent") !== r, jn = as && Fn.test(navigator.userAgent), Ue = "touch", Gn = "pen", At = "mouse", Yn = "kinect", Wn = 25, j = 1, be = 2, k = 4, X = 8, ot = 1, Re = 2, Be = 4, $e = 8, ze = 16, re = Re | Be, Ie = $e | ze, ls = re | Ie, cs = ["x", "y"], rt = ["clientX", "clientY"];
3174
+ function J(o, i) {
3166
3175
  var l = this;
3167
3176
  this.manager = o, this.callback = i, this.element = o.element, this.target = o.options.inputTarget, this.domHandler = function(p) {
3168
- le(o.options.enable, [o]) && l.handler(p);
3177
+ te(o.options.enable, [o]) && l.handler(p);
3169
3178
  }, this.init();
3170
3179
  }
3171
- Y.prototype = {
3180
+ J.prototype = {
3172
3181
  /**
3173
3182
  * should handle the inputEvent data and trigger the callback
3174
3183
  * @virtual
@@ -3179,36 +3188,36 @@ function xi() {
3179
3188
  * bind the events
3180
3189
  */
3181
3190
  init: function() {
3182
- this.evEl && ye(this.element, this.evEl, this.domHandler), this.evTarget && ye(this.target, this.evTarget, this.domHandler), this.evWin && ye(is(this.element), this.evWin, this.domHandler);
3191
+ this.evEl && O(this.element, this.evEl, this.domHandler), this.evTarget && O(this.target, this.evTarget, this.domHandler), this.evWin && O(is(this.element), this.evWin, this.domHandler);
3183
3192
  },
3184
3193
  /**
3185
3194
  * unbind the events
3186
3195
  */
3187
3196
  destroy: function() {
3188
- this.evEl && Q(this.element, this.evEl, this.domHandler), this.evTarget && Q(this.target, this.evTarget, this.domHandler), this.evWin && Q(is(this.element), this.evWin, this.domHandler);
3197
+ this.evEl && Y(this.element, this.evEl, this.domHandler), this.evTarget && Y(this.target, this.evTarget, this.domHandler), this.evWin && Y(is(this.element), this.evWin, this.domHandler);
3189
3198
  }
3190
3199
  };
3191
- function Wn(o) {
3200
+ function Xn(o) {
3192
3201
  var i, l = o.options.inputClass;
3193
- return l ? i = l : Fn ? i = At : qn ? i = it : as ? i = Nt : i = rt, new i(o, Xn);
3202
+ return l ? i = l : qn ? i = Ot : jn ? i = lt : as ? i = kt : i = at, new i(o, Zn);
3194
3203
  }
3195
- function Xn(o, i, l) {
3196
- var p = l.pointers.length, m = l.changedPointers.length, E = i & z && p - m === 0, w = i & (N | q) && p - m === 0;
3197
- l.isFirst = !!E, l.isFinal = !!w, E && (o.session = {}), l.eventType = i, Zn(o, l), o.emit("hammer.input", l), o.recognize(l), o.session.prevInput = l;
3204
+ function Zn(o, i, l) {
3205
+ var p = l.pointers.length, m = l.changedPointers.length, E = i & j && p - m === 0, D = i & (k | X) && p - m === 0;
3206
+ l.isFirst = !!E, l.isFinal = !!D, E && (o.session = {}), l.eventType = i, Kn(o, l), o.emit("hammer.input", l), o.recognize(l), o.session.prevInput = l;
3198
3207
  }
3199
- function Zn(o, i) {
3208
+ function Kn(o, i) {
3200
3209
  var l = o.session, p = i.pointers, m = p.length;
3201
3210
  l.firstInput || (l.firstInput = us(i)), m > 1 && !l.firstMultiple ? l.firstMultiple = us(i) : m === 1 && (l.firstMultiple = !1);
3202
- var E = l.firstInput, w = l.firstMultiple, L = w ? w.center : E.center, U = i.center = ds(p);
3203
- i.timeStamp = g(), i.deltaTime = i.timeStamp - E.timeStamp, i.angle = Mt(L, U), i.distance = ot(L, U), Qn(l, i), i.offsetDirection = ps(i.deltaX, i.deltaY);
3204
- var H = hs(i.deltaTime, i.deltaX, i.deltaY);
3205
- i.overallVelocityX = H.x, i.overallVelocityY = H.y, i.overallVelocity = f(H.x) > f(H.y) ? H.x : H.y, i.scale = w ? eo(w.pointers, p) : 1, i.rotation = w ? Jn(w.pointers, p) : 0, i.maxPointers = l.prevInput ? i.pointers.length > l.prevInput.maxPointers ? i.pointers.length : l.prevInput.maxPointers : i.pointers.length, Kn(l, i);
3206
- var ne = o.element;
3207
- ce(i.srcEvent.target, ne) && (ne = i.srcEvent.target), i.target = ne;
3211
+ var E = l.firstInput, D = l.firstMultiple, U = D ? D.center : E.center, $ = i.center = ds(p);
3212
+ i.timeStamp = g(), i.deltaTime = i.timeStamp - E.timeStamp, i.angle = Nt(U, $), i.distance = it(U, $), Qn(l, i), i.offsetDirection = ps(i.deltaX, i.deltaY);
3213
+ var G = hs(i.deltaTime, i.deltaX, i.deltaY);
3214
+ i.overallVelocityX = G.x, i.overallVelocityY = G.y, i.overallVelocity = f(G.x) > f(G.y) ? G.x : G.y, i.scale = D ? to(D.pointers, p) : 1, i.rotation = D ? eo(D.pointers, p) : 0, i.maxPointers = l.prevInput ? i.pointers.length > l.prevInput.maxPointers ? i.pointers.length : l.prevInput.maxPointers : i.pointers.length, Jn(l, i);
3215
+ var ae = o.element;
3216
+ q(i.srcEvent.target, ae) && (ae = i.srcEvent.target), i.target = ae;
3208
3217
  }
3209
3218
  function Qn(o, i) {
3210
3219
  var l = i.center, p = o.offsetDelta || {}, m = o.prevDelta || {}, E = o.prevInput || {};
3211
- (i.eventType === z || E.eventType === N) && (m = o.prevDelta = {
3220
+ (i.eventType === j || E.eventType === k) && (m = o.prevDelta = {
3212
3221
  x: E.deltaX || 0,
3213
3222
  y: E.deltaY || 0
3214
3223
  }, p = o.offsetDelta = {
@@ -3216,14 +3225,14 @@ function xi() {
3216
3225
  y: l.y
3217
3226
  }), i.deltaX = m.x + (l.x - p.x), i.deltaY = m.y + (l.y - p.y);
3218
3227
  }
3219
- function Kn(o, i) {
3220
- var l = o.lastInterval || i, p = i.timeStamp - l.timeStamp, m, E, w, L;
3221
- if (i.eventType != q && (p > Yn || l.velocity === r)) {
3222
- var U = i.deltaX - l.deltaX, H = i.deltaY - l.deltaY, ne = hs(p, U, H);
3223
- E = ne.x, w = ne.y, m = f(ne.x) > f(ne.y) ? ne.x : ne.y, L = ps(U, H), o.lastInterval = i;
3228
+ function Jn(o, i) {
3229
+ var l = o.lastInterval || i, p = i.timeStamp - l.timeStamp, m, E, D, U;
3230
+ if (i.eventType != X && (p > Wn || l.velocity === r)) {
3231
+ var $ = i.deltaX - l.deltaX, G = i.deltaY - l.deltaY, ae = hs(p, $, G);
3232
+ E = ae.x, D = ae.y, m = f(ae.x) > f(ae.y) ? ae.x : ae.y, U = ps($, G), o.lastInterval = i;
3224
3233
  } else
3225
- m = l.velocity, E = l.velocityX, w = l.velocityY, L = l.direction;
3226
- i.velocity = m, i.velocityX = E, i.velocityY = w, i.direction = L;
3234
+ m = l.velocity, E = l.velocityX, D = l.velocityY, U = l.direction;
3235
+ i.velocity = m, i.velocityX = E, i.velocityY = D, i.direction = U;
3227
3236
  }
3228
3237
  function us(o) {
3229
3238
  for (var i = [], l = 0; l < o.pointers.length; )
@@ -3260,94 +3269,94 @@ function xi() {
3260
3269
  };
3261
3270
  }
3262
3271
  function ps(o, i) {
3263
- return o === i ? st : f(o) >= f(i) ? o < 0 ? Re : Be : i < 0 ? $e : ze;
3272
+ return o === i ? ot : f(o) >= f(i) ? o < 0 ? Re : Be : i < 0 ? $e : ze;
3264
3273
  }
3265
- function ot(o, i, l) {
3274
+ function it(o, i, l) {
3266
3275
  l || (l = cs);
3267
3276
  var p = i[l[0]] - o[l[0]], m = i[l[1]] - o[l[1]];
3268
3277
  return Math.sqrt(p * p + m * m);
3269
3278
  }
3270
- function Mt(o, i, l) {
3279
+ function Nt(o, i, l) {
3271
3280
  l || (l = cs);
3272
3281
  var p = i[l[0]] - o[l[0]], m = i[l[1]] - o[l[1]];
3273
3282
  return Math.atan2(m, p) * 180 / Math.PI;
3274
3283
  }
3275
- function Jn(o, i) {
3276
- return Mt(i[1], i[0], nt) + Mt(o[1], o[0], nt);
3277
- }
3278
3284
  function eo(o, i) {
3279
- return ot(i[0], i[1], nt) / ot(o[0], o[1], nt);
3285
+ return Nt(i[1], i[0], rt) + Nt(o[1], o[0], rt);
3280
3286
  }
3281
- var to = {
3282
- mousedown: z,
3283
- mousemove: Ce,
3284
- mouseup: N
3285
- }, so = "mousedown", no = "mousemove mouseup";
3286
- function rt() {
3287
- this.evEl = so, this.evWin = no, this.pressed = !1, Y.apply(this, arguments);
3287
+ function to(o, i) {
3288
+ return it(i[0], i[1], rt) / it(o[0], o[1], rt);
3288
3289
  }
3289
- x(rt, Y, {
3290
+ var so = {
3291
+ mousedown: j,
3292
+ mousemove: be,
3293
+ mouseup: k
3294
+ }, no = "mousedown", oo = "mousemove mouseup";
3295
+ function at() {
3296
+ this.evEl = no, this.evWin = oo, this.pressed = !1, J.apply(this, arguments);
3297
+ }
3298
+ x(at, J, {
3290
3299
  /**
3291
3300
  * handle mouse events
3292
3301
  * @param {Object} ev
3293
3302
  */
3294
3303
  handler: function(i) {
3295
- var l = to[i.type];
3296
- l & z && i.button === 0 && (this.pressed = !0), l & Ce && i.which !== 1 && (l = N), this.pressed && (l & N && (this.pressed = !1), this.callback(this.manager, l, {
3304
+ var l = so[i.type];
3305
+ l & j && i.button === 0 && (this.pressed = !0), l & be && i.which !== 1 && (l = k), this.pressed && (l & k && (this.pressed = !1), this.callback(this.manager, l, {
3297
3306
  pointers: [i],
3298
3307
  changedPointers: [i],
3299
- pointerType: Dt,
3308
+ pointerType: At,
3300
3309
  srcEvent: i
3301
3310
  }));
3302
3311
  }
3303
3312
  });
3304
- var oo = {
3305
- pointerdown: z,
3306
- pointermove: Ce,
3307
- pointerup: N,
3308
- pointercancel: q,
3309
- pointerout: q
3310
- }, ro = {
3313
+ var ro = {
3314
+ pointerdown: j,
3315
+ pointermove: be,
3316
+ pointerup: k,
3317
+ pointercancel: X,
3318
+ pointerout: X
3319
+ }, io = {
3311
3320
  2: Ue,
3312
- 3: jn,
3313
- 4: Dt,
3314
- 5: Gn
3321
+ 3: Gn,
3322
+ 4: At,
3323
+ 5: Yn
3315
3324
  // see https://twitter.com/jacobrossi/status/480596438489890816
3316
3325
  }, fs = "pointerdown", gs = "pointermove pointerup pointercancel";
3317
3326
  t.MSPointerEvent && !t.PointerEvent && (fs = "MSPointerDown", gs = "MSPointerMove MSPointerUp MSPointerCancel");
3318
- function At() {
3319
- this.evEl = fs, this.evWin = gs, Y.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
3327
+ function Ot() {
3328
+ this.evEl = fs, this.evWin = gs, J.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
3320
3329
  }
3321
- x(At, Y, {
3330
+ x(Ot, J, {
3322
3331
  /**
3323
3332
  * handle mouse events
3324
3333
  * @param {Object} ev
3325
3334
  */
3326
3335
  handler: function(i) {
3327
- var l = this.store, p = !1, m = i.type.toLowerCase().replace("ms", ""), E = oo[m], w = ro[i.pointerType] || i.pointerType, L = w == Ue, U = xe(l, i.pointerId, "pointerId");
3328
- E & z && (i.button === 0 || L) ? U < 0 && (l.push(i), U = l.length - 1) : E & (N | q) && (p = !0), !(U < 0) && (l[U] = i, this.callback(this.manager, E, {
3336
+ var l = this.store, p = !1, m = i.type.toLowerCase().replace("ms", ""), E = ro[m], D = io[i.pointerType] || i.pointerType, U = D == Ue, $ = we(l, i.pointerId, "pointerId");
3337
+ E & j && (i.button === 0 || U) ? $ < 0 && (l.push(i), $ = l.length - 1) : E & (k | X) && (p = !0), !($ < 0) && (l[$] = i, this.callback(this.manager, E, {
3329
3338
  pointers: l,
3330
3339
  changedPointers: [i],
3331
- pointerType: w,
3340
+ pointerType: D,
3332
3341
  srcEvent: i
3333
- }), p && l.splice(U, 1));
3342
+ }), p && l.splice($, 1));
3334
3343
  }
3335
3344
  });
3336
- var io = {
3337
- touchstart: z,
3338
- touchmove: Ce,
3339
- touchend: N,
3340
- touchcancel: q
3341
- }, ao = "touchstart", lo = "touchstart touchmove touchend touchcancel";
3345
+ var ao = {
3346
+ touchstart: j,
3347
+ touchmove: be,
3348
+ touchend: k,
3349
+ touchcancel: X
3350
+ }, lo = "touchstart", co = "touchstart touchmove touchend touchcancel";
3342
3351
  function ms() {
3343
- this.evTarget = ao, this.evWin = lo, this.started = !1, Y.apply(this, arguments);
3352
+ this.evTarget = lo, this.evWin = co, this.started = !1, J.apply(this, arguments);
3344
3353
  }
3345
- x(ms, Y, {
3354
+ x(ms, J, {
3346
3355
  handler: function(i) {
3347
- var l = io[i.type];
3348
- if (l === z && (this.started = !0), !!this.started) {
3349
- var p = co.call(this, i, l);
3350
- l & (N | q) && p[0].length - p[1].length === 0 && (this.started = !1), this.callback(this.manager, l, {
3356
+ var l = ao[i.type];
3357
+ if (l === j && (this.started = !0), !!this.started) {
3358
+ var p = uo.call(this, i, l);
3359
+ l & (k | X) && p[0].length - p[1].length === 0 && (this.started = !1), this.callback(this.manager, l, {
3351
3360
  pointers: p[0],
3352
3361
  changedPointers: p[1],
3353
3362
  pointerType: Ue,
@@ -3356,22 +3365,22 @@ function xi() {
3356
3365
  }
3357
3366
  }
3358
3367
  });
3359
- function co(o, i) {
3360
- var l = et(o.touches), p = et(o.changedTouches);
3361
- return i & (N | q) && (l = rs(l.concat(p), "identifier")), [l, p];
3368
+ function uo(o, i) {
3369
+ var l = st(o.touches), p = st(o.changedTouches);
3370
+ return i & (k | X) && (l = rs(l.concat(p), "identifier")), [l, p];
3362
3371
  }
3363
- var uo = {
3364
- touchstart: z,
3365
- touchmove: Ce,
3366
- touchend: N,
3367
- touchcancel: q
3368
- }, ho = "touchstart touchmove touchend touchcancel";
3369
- function it() {
3370
- this.evTarget = ho, this.targetIds = {}, Y.apply(this, arguments);
3372
+ var ho = {
3373
+ touchstart: j,
3374
+ touchmove: be,
3375
+ touchend: k,
3376
+ touchcancel: X
3377
+ }, po = "touchstart touchmove touchend touchcancel";
3378
+ function lt() {
3379
+ this.evTarget = po, this.targetIds = {}, J.apply(this, arguments);
3371
3380
  }
3372
- x(it, Y, {
3381
+ x(lt, J, {
3373
3382
  handler: function(i) {
3374
- var l = uo[i.type], p = po.call(this, i, l);
3383
+ var l = ho[i.type], p = fo.call(this, i, l);
3375
3384
  p && this.callback(this.manager, l, {
3376
3385
  pointers: p[0],
3377
3386
  changedPointers: p[1],
@@ -3380,32 +3389,32 @@ function xi() {
3380
3389
  });
3381
3390
  }
3382
3391
  });
3383
- function po(o, i) {
3384
- var l = et(o.touches), p = this.targetIds;
3385
- if (i & (z | Ce) && l.length === 1)
3392
+ function fo(o, i) {
3393
+ var l = st(o.touches), p = this.targetIds;
3394
+ if (i & (j | be) && l.length === 1)
3386
3395
  return p[l[0].identifier] = !0, [l, l];
3387
- var m, E, w = et(o.changedTouches), L = [], U = this.target;
3388
- if (E = l.filter(function(H) {
3389
- return ce(H.target, U);
3390
- }), i === z)
3396
+ var m, E, D = st(o.changedTouches), U = [], $ = this.target;
3397
+ if (E = l.filter(function(G) {
3398
+ return q(G.target, $);
3399
+ }), i === j)
3391
3400
  for (m = 0; m < E.length; )
3392
3401
  p[E[m].identifier] = !0, m++;
3393
- for (m = 0; m < w.length; )
3394
- p[w[m].identifier] && L.push(w[m]), i & (N | q) && delete p[w[m].identifier], m++;
3395
- if (L.length)
3402
+ for (m = 0; m < D.length; )
3403
+ p[D[m].identifier] && U.push(D[m]), i & (k | X) && delete p[D[m].identifier], m++;
3404
+ if (U.length)
3396
3405
  return [
3397
3406
  // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
3398
- rs(E.concat(L), "identifier"),
3399
- L
3407
+ rs(E.concat(U), "identifier"),
3408
+ U
3400
3409
  ];
3401
3410
  }
3402
- var fo = 2500, vs = 25;
3403
- function Nt() {
3404
- Y.apply(this, arguments);
3405
- var o = F(this.handler, this);
3406
- this.touch = new it(this.manager, o), this.mouse = new rt(this.manager, o), this.primaryTouch = null, this.lastTouches = [];
3411
+ var go = 2500, vs = 25;
3412
+ function kt() {
3413
+ J.apply(this, arguments);
3414
+ var o = B(this.handler, this);
3415
+ this.touch = new lt(this.manager, o), this.mouse = new at(this.manager, o), this.primaryTouch = null, this.lastTouches = [];
3407
3416
  }
3408
- x(Nt, Y, {
3417
+ x(kt, J, {
3409
3418
  /**
3410
3419
  * handle mouse and touch events
3411
3420
  * @param {Hammer} manager
@@ -3413,11 +3422,11 @@ function xi() {
3413
3422
  * @param {Object} inputData
3414
3423
  */
3415
3424
  handler: function(i, l, p) {
3416
- var m = p.pointerType == Ue, E = p.pointerType == Dt;
3425
+ var m = p.pointerType == Ue, E = p.pointerType == At;
3417
3426
  if (!(E && p.sourceCapabilities && p.sourceCapabilities.firesTouchEvents)) {
3418
3427
  if (m)
3419
- go.call(this, l, p);
3420
- else if (E && mo.call(this, p))
3428
+ mo.call(this, l, p);
3429
+ else if (E && vo.call(this, p))
3421
3430
  return;
3422
3431
  this.callback(i, l, p);
3423
3432
  }
@@ -3429,8 +3438,8 @@ function xi() {
3429
3438
  this.touch.destroy(), this.mouse.destroy();
3430
3439
  }
3431
3440
  });
3432
- function go(o, i) {
3433
- o & z ? (this.primaryTouch = i.changedPointers[0].identifier, ys.call(this, i)) : o & (N | q) && ys.call(this, i);
3441
+ function mo(o, i) {
3442
+ o & j ? (this.primaryTouch = i.changedPointers[0].identifier, ys.call(this, i)) : o & (k | X) && ys.call(this, i);
3434
3443
  }
3435
3444
  function ys(o) {
3436
3445
  var i = o.changedPointers[0];
@@ -3441,28 +3450,28 @@ function xi() {
3441
3450
  var E = p.indexOf(l);
3442
3451
  E > -1 && p.splice(E, 1);
3443
3452
  };
3444
- setTimeout(m, fo);
3453
+ setTimeout(m, go);
3445
3454
  }
3446
3455
  }
3447
- function mo(o) {
3456
+ function vo(o) {
3448
3457
  for (var i = o.srcEvent.clientX, l = o.srcEvent.clientY, p = 0; p < this.lastTouches.length; p++) {
3449
- var m = this.lastTouches[p], E = Math.abs(i - m.x), w = Math.abs(l - m.y);
3450
- if (E <= vs && w <= vs)
3458
+ var m = this.lastTouches[p], E = Math.abs(i - m.x), D = Math.abs(l - m.y);
3459
+ if (E <= vs && D <= vs)
3451
3460
  return !0;
3452
3461
  }
3453
3462
  return !1;
3454
3463
  }
3455
- var Es = tt(c.style, "touchAction"), Ss = Es !== r, Ts = "compute", Cs = "auto", Ot = "manipulation", be = "none", He = "pan-x", Fe = "pan-y", at = yo();
3456
- function kt(o, i) {
3464
+ var Es = nt(c.style, "touchAction"), Ss = Es !== r, Ts = "compute", Cs = "auto", Lt = "manipulation", Pe = "none", He = "pan-x", Fe = "pan-y", ct = Eo();
3465
+ function Vt(o, i) {
3457
3466
  this.manager = o, this.set(i);
3458
3467
  }
3459
- kt.prototype = {
3468
+ Vt.prototype = {
3460
3469
  /**
3461
3470
  * set the touchAction value on the element or enable the polyfill
3462
3471
  * @param {String} value
3463
3472
  */
3464
3473
  set: function(o) {
3465
- o == Ts && (o = this.compute()), Ss && this.manager.element.style && at[o] && (this.manager.element.style[Es] = o), this.actions = o.toLowerCase().trim();
3474
+ o == Ts && (o = this.compute()), Ss && this.manager.element.style && ct[o] && (this.manager.element.style[Es] = o), this.actions = o.toLowerCase().trim();
3466
3475
  },
3467
3476
  /**
3468
3477
  * just re-set the touchAction value
@@ -3476,9 +3485,9 @@ function xi() {
3476
3485
  */
3477
3486
  compute: function() {
3478
3487
  var o = [];
3479
- return _(this.manager.recognizers, function(i) {
3480
- le(i.options.enable, [i]) && (o = o.concat(i.getTouchAction()));
3481
- }), vo(o.join(" "));
3488
+ return C(this.manager.recognizers, function(i) {
3489
+ te(i.options.enable, [i]) && (o = o.concat(i.getTouchAction()));
3490
+ }), yo(o.join(" "));
3482
3491
  },
3483
3492
  /**
3484
3493
  * this method is called on each input cycle and provides the preventing of the browser behavior
@@ -3490,13 +3499,13 @@ function xi() {
3490
3499
  i.preventDefault();
3491
3500
  return;
3492
3501
  }
3493
- var p = this.actions, m = G(p, be) && !at[be], E = G(p, Fe) && !at[Fe], w = G(p, He) && !at[He];
3502
+ var p = this.actions, m = W(p, Pe) && !ct[Pe], E = W(p, Fe) && !ct[Fe], D = W(p, He) && !ct[He];
3494
3503
  if (m) {
3495
- var L = o.pointers.length === 1, U = o.distance < 2, H = o.deltaTime < 250;
3496
- if (L && U && H)
3504
+ var U = o.pointers.length === 1, $ = o.distance < 2, G = o.deltaTime < 250;
3505
+ if (U && $ && G)
3497
3506
  return;
3498
3507
  }
3499
- if (!(w && E) && (m || E && l & te || w && l & _e))
3508
+ if (!(D && E) && (m || E && l & re || D && l & Ie))
3500
3509
  return this.preventSrc(i);
3501
3510
  },
3502
3511
  /**
@@ -3507,13 +3516,13 @@ function xi() {
3507
3516
  this.manager.session.prevented = !0, o.preventDefault();
3508
3517
  }
3509
3518
  };
3510
- function vo(o) {
3511
- if (G(o, be))
3512
- return be;
3513
- var i = G(o, He), l = G(o, Fe);
3514
- return i && l ? be : i || l ? i ? He : Fe : G(o, Ot) ? Ot : Cs;
3519
+ function yo(o) {
3520
+ if (W(o, Pe))
3521
+ return Pe;
3522
+ var i = W(o, He), l = W(o, Fe);
3523
+ return i && l ? Pe : i || l ? i ? He : Fe : W(o, Lt) ? Lt : Cs;
3515
3524
  }
3516
- function yo() {
3525
+ function Eo() {
3517
3526
  if (!Ss)
3518
3527
  return !1;
3519
3528
  var o = {}, i = t.CSS && t.CSS.supports;
@@ -3521,11 +3530,11 @@ function xi() {
3521
3530
  o[l] = i ? t.CSS.supports("touch-action", l) : !0;
3522
3531
  }), o;
3523
3532
  }
3524
- var lt = 1, W = 2, we = 4, Ee = 8, ue = Ee, qe = 16, se = 32;
3525
- function de(o) {
3526
- this.options = P({}, this.defaults, o || {}), this.id = zn(), this.manager = null, this.options.enable = Ve(this.options.enable, !0), this.state = lt, this.simultaneous = {}, this.requireFail = [];
3533
+ var ut = 1, ee = 2, Me = 4, Te = 8, fe = Te, qe = 16, ie = 32;
3534
+ function ge(o) {
3535
+ this.options = I({}, this.defaults, o || {}), this.id = Hn(), this.manager = null, this.options.enable = M(this.options.enable, !0), this.state = ut, this.simultaneous = {}, this.requireFail = [];
3527
3536
  }
3528
- de.prototype = {
3537
+ ge.prototype = {
3529
3538
  /**
3530
3539
  * @virtual
3531
3540
  * @type {Object}
@@ -3537,7 +3546,7 @@ function xi() {
3537
3546
  * @return {Recognizer}
3538
3547
  */
3539
3548
  set: function(o) {
3540
- return P(this.options, o), this.manager && this.manager.touchAction.update(), this;
3549
+ return I(this.options, o), this.manager && this.manager.touchAction.update(), this;
3541
3550
  },
3542
3551
  /**
3543
3552
  * recognize simultaneous with an other recognizer.
@@ -3545,10 +3554,10 @@ function xi() {
3545
3554
  * @returns {Recognizer} this
3546
3555
  */
3547
3556
  recognizeWith: function(o) {
3548
- if (C(o, "recognizeWith", this))
3557
+ if (T(o, "recognizeWith", this))
3549
3558
  return this;
3550
3559
  var i = this.simultaneous;
3551
- return o = ct(o, this), i[o.id] || (i[o.id] = o, o.recognizeWith(this)), this;
3560
+ return o = dt(o, this), i[o.id] || (i[o.id] = o, o.recognizeWith(this)), this;
3552
3561
  },
3553
3562
  /**
3554
3563
  * drop the simultaneous link. it doesnt remove the link on the other recognizer.
@@ -3556,7 +3565,7 @@ function xi() {
3556
3565
  * @returns {Recognizer} this
3557
3566
  */
3558
3567
  dropRecognizeWith: function(o) {
3559
- return C(o, "dropRecognizeWith", this) ? this : (o = ct(o, this), delete this.simultaneous[o.id], this);
3568
+ return T(o, "dropRecognizeWith", this) ? this : (o = dt(o, this), delete this.simultaneous[o.id], this);
3560
3569
  },
3561
3570
  /**
3562
3571
  * recognizer can only run when an other is failing
@@ -3564,10 +3573,10 @@ function xi() {
3564
3573
  * @returns {Recognizer} this
3565
3574
  */
3566
3575
  requireFailure: function(o) {
3567
- if (C(o, "requireFailure", this))
3576
+ if (T(o, "requireFailure", this))
3568
3577
  return this;
3569
3578
  var i = this.requireFail;
3570
- return o = ct(o, this), xe(i, o) === -1 && (i.push(o), o.requireFailure(this)), this;
3579
+ return o = dt(o, this), we(i, o) === -1 && (i.push(o), o.requireFailure(this)), this;
3571
3580
  },
3572
3581
  /**
3573
3582
  * drop the requireFailure link. it does not remove the link on the other recognizer.
@@ -3575,10 +3584,10 @@ function xi() {
3575
3584
  * @returns {Recognizer} this
3576
3585
  */
3577
3586
  dropRequireFailure: function(o) {
3578
- if (C(o, "dropRequireFailure", this))
3587
+ if (T(o, "dropRequireFailure", this))
3579
3588
  return this;
3580
- o = ct(o, this);
3581
- var i = xe(this.requireFail, o);
3589
+ o = dt(o, this);
3590
+ var i = we(this.requireFail, o);
3582
3591
  return i > -1 && this.requireFail.splice(i, 1), this;
3583
3592
  },
3584
3593
  /**
@@ -3606,7 +3615,7 @@ function xi() {
3606
3615
  function p(m) {
3607
3616
  i.manager.emit(m, o);
3608
3617
  }
3609
- l < Ee && p(i.options.event + _s(l)), p(i.options.event), o.additionalEvent && p(o.additionalEvent), l >= Ee && p(i.options.event + _s(l));
3618
+ l < Te && p(i.options.event + _s(l)), p(i.options.event), o.additionalEvent && p(o.additionalEvent), l >= Te && p(i.options.event + _s(l));
3610
3619
  },
3611
3620
  /**
3612
3621
  * Check that all the require failure recognizers has failed,
@@ -3617,7 +3626,7 @@ function xi() {
3617
3626
  tryEmit: function(o) {
3618
3627
  if (this.canEmit())
3619
3628
  return this.emit(o);
3620
- this.state = se;
3629
+ this.state = ie;
3621
3630
  },
3622
3631
  /**
3623
3632
  * can we emit?
@@ -3625,7 +3634,7 @@ function xi() {
3625
3634
  */
3626
3635
  canEmit: function() {
3627
3636
  for (var o = 0; o < this.requireFail.length; ) {
3628
- if (!(this.requireFail[o].state & (se | lt)))
3637
+ if (!(this.requireFail[o].state & (ie | ut)))
3629
3638
  return !1;
3630
3639
  o++;
3631
3640
  }
@@ -3636,12 +3645,12 @@ function xi() {
3636
3645
  * @param {Object} inputData
3637
3646
  */
3638
3647
  recognize: function(o) {
3639
- var i = P({}, o);
3640
- if (!le(this.options.enable, [this, i])) {
3641
- this.reset(), this.state = se;
3648
+ var i = I({}, o);
3649
+ if (!te(this.options.enable, [this, i])) {
3650
+ this.reset(), this.state = ie;
3642
3651
  return;
3643
3652
  }
3644
- this.state & (ue | qe | se) && (this.state = lt), this.state = this.process(i), this.state & (W | we | Ee | qe) && this.tryEmit(i);
3653
+ this.state & (fe | qe | ie) && (this.state = ut), this.state = this.process(i), this.state & (ee | Me | Te | qe) && this.tryEmit(i);
3645
3654
  },
3646
3655
  /**
3647
3656
  * return the state of the recognizer
@@ -3669,19 +3678,19 @@ function xi() {
3669
3678
  }
3670
3679
  };
3671
3680
  function _s(o) {
3672
- return o & qe ? "cancel" : o & Ee ? "end" : o & we ? "move" : o & W ? "start" : "";
3681
+ return o & qe ? "cancel" : o & Te ? "end" : o & Me ? "move" : o & ee ? "start" : "";
3673
3682
  }
3674
3683
  function bs(o) {
3675
3684
  return o == ze ? "down" : o == $e ? "up" : o == Re ? "left" : o == Be ? "right" : "";
3676
3685
  }
3677
- function ct(o, i) {
3686
+ function dt(o, i) {
3678
3687
  var l = i.manager;
3679
3688
  return l ? l.get(o) : o;
3680
3689
  }
3681
- function K() {
3682
- de.apply(this, arguments);
3690
+ function se() {
3691
+ ge.apply(this, arguments);
3683
3692
  }
3684
- x(K, de, {
3693
+ x(se, ge, {
3685
3694
  /**
3686
3695
  * @namespace
3687
3696
  * @memberof AttrRecognizer
@@ -3710,14 +3719,14 @@ function xi() {
3710
3719
  * @returns {*} State
3711
3720
  */
3712
3721
  process: function(o) {
3713
- var i = this.state, l = o.eventType, p = i & (W | we), m = this.attrTest(o);
3714
- return p && (l & q || !m) ? i | qe : p || m ? l & N ? i | Ee : i & W ? i | we : W : se;
3722
+ var i = this.state, l = o.eventType, p = i & (ee | Me), m = this.attrTest(o);
3723
+ return p && (l & X || !m) ? i | qe : p || m ? l & k ? i | Te : i & ee ? i | Me : ee : ie;
3715
3724
  }
3716
3725
  });
3717
- function ut() {
3718
- K.apply(this, arguments), this.pX = null, this.pY = null;
3726
+ function ht() {
3727
+ se.apply(this, arguments), this.pX = null, this.pY = null;
3719
3728
  }
3720
- x(ut, K, {
3729
+ x(ht, se, {
3721
3730
  /**
3722
3731
  * @namespace
3723
3732
  * @memberof PanRecognizer
@@ -3730,14 +3739,14 @@ function xi() {
3730
3739
  },
3731
3740
  getTouchAction: function() {
3732
3741
  var o = this.options.direction, i = [];
3733
- return o & te && i.push(Fe), o & _e && i.push(He), i;
3742
+ return o & re && i.push(Fe), o & Ie && i.push(He), i;
3734
3743
  },
3735
3744
  directionTest: function(o) {
3736
- var i = this.options, l = !0, p = o.distance, m = o.direction, E = o.deltaX, w = o.deltaY;
3737
- return m & i.direction || (i.direction & te ? (m = E === 0 ? st : E < 0 ? Re : Be, l = E != this.pX, p = Math.abs(o.deltaX)) : (m = w === 0 ? st : w < 0 ? $e : ze, l = w != this.pY, p = Math.abs(o.deltaY))), o.direction = m, l && p > i.threshold && m & i.direction;
3745
+ var i = this.options, l = !0, p = o.distance, m = o.direction, E = o.deltaX, D = o.deltaY;
3746
+ return m & i.direction || (i.direction & re ? (m = E === 0 ? ot : E < 0 ? Re : Be, l = E != this.pX, p = Math.abs(o.deltaX)) : (m = D === 0 ? ot : D < 0 ? $e : ze, l = D != this.pY, p = Math.abs(o.deltaY))), o.direction = m, l && p > i.threshold && m & i.direction;
3738
3747
  },
3739
3748
  attrTest: function(o) {
3740
- return K.prototype.attrTest.call(this, o) && (this.state & W || !(this.state & W) && this.directionTest(o));
3749
+ return se.prototype.attrTest.call(this, o) && (this.state & ee || !(this.state & ee) && this.directionTest(o));
3741
3750
  },
3742
3751
  emit: function(o) {
3743
3752
  this.pX = o.deltaX, this.pY = o.deltaY;
@@ -3745,10 +3754,10 @@ function xi() {
3745
3754
  i && (o.additionalEvent = this.options.event + i), this._super.emit.call(this, o);
3746
3755
  }
3747
3756
  });
3748
- function Lt() {
3749
- K.apply(this, arguments);
3757
+ function Ut() {
3758
+ se.apply(this, arguments);
3750
3759
  }
3751
- x(Lt, K, {
3760
+ x(Ut, se, {
3752
3761
  /**
3753
3762
  * @namespace
3754
3763
  * @memberof PinchRecognizer
@@ -3759,10 +3768,10 @@ function xi() {
3759
3768
  pointers: 2
3760
3769
  },
3761
3770
  getTouchAction: function() {
3762
- return [be];
3771
+ return [Pe];
3763
3772
  },
3764
3773
  attrTest: function(o) {
3765
- return this._super.attrTest.call(this, o) && (Math.abs(o.scale - 1) > this.options.threshold || this.state & W);
3774
+ return this._super.attrTest.call(this, o) && (Math.abs(o.scale - 1) > this.options.threshold || this.state & ee);
3766
3775
  },
3767
3776
  emit: function(o) {
3768
3777
  if (o.scale !== 1) {
@@ -3772,10 +3781,10 @@ function xi() {
3772
3781
  this._super.emit.call(this, o);
3773
3782
  }
3774
3783
  });
3775
- function Vt() {
3776
- de.apply(this, arguments), this._timer = null, this._input = null;
3784
+ function Rt() {
3785
+ ge.apply(this, arguments), this._timer = null, this._input = null;
3777
3786
  }
3778
- x(Vt, de, {
3787
+ x(Rt, ge, {
3779
3788
  /**
3780
3789
  * @namespace
3781
3790
  * @memberof PressRecognizer
@@ -3793,27 +3802,27 @@ function xi() {
3793
3802
  },
3794
3803
  process: function(o) {
3795
3804
  var i = this.options, l = o.pointers.length === i.pointers, p = o.distance < i.threshold, m = o.deltaTime > i.time;
3796
- if (this._input = o, !p || !l || o.eventType & (N | q) && !m)
3805
+ if (this._input = o, !p || !l || o.eventType & (k | X) && !m)
3797
3806
  this.reset();
3798
- else if (o.eventType & z)
3807
+ else if (o.eventType & j)
3799
3808
  this.reset(), this._timer = v(function() {
3800
- this.state = ue, this.tryEmit();
3809
+ this.state = fe, this.tryEmit();
3801
3810
  }, i.time, this);
3802
- else if (o.eventType & N)
3803
- return ue;
3804
- return se;
3811
+ else if (o.eventType & k)
3812
+ return fe;
3813
+ return ie;
3805
3814
  },
3806
3815
  reset: function() {
3807
3816
  clearTimeout(this._timer);
3808
3817
  },
3809
3818
  emit: function(o) {
3810
- this.state === ue && (o && o.eventType & N ? this.manager.emit(this.options.event + "up", o) : (this._input.timeStamp = g(), this.manager.emit(this.options.event, this._input)));
3819
+ this.state === fe && (o && o.eventType & k ? this.manager.emit(this.options.event + "up", o) : (this._input.timeStamp = g(), this.manager.emit(this.options.event, this._input)));
3811
3820
  }
3812
3821
  });
3813
- function Ut() {
3814
- K.apply(this, arguments);
3822
+ function Bt() {
3823
+ se.apply(this, arguments);
3815
3824
  }
3816
- x(Ut, K, {
3825
+ x(Bt, se, {
3817
3826
  /**
3818
3827
  * @namespace
3819
3828
  * @memberof RotateRecognizer
@@ -3824,16 +3833,16 @@ function xi() {
3824
3833
  pointers: 2
3825
3834
  },
3826
3835
  getTouchAction: function() {
3827
- return [be];
3836
+ return [Pe];
3828
3837
  },
3829
3838
  attrTest: function(o) {
3830
- return this._super.attrTest.call(this, o) && (Math.abs(o.rotation) > this.options.threshold || this.state & W);
3839
+ return this._super.attrTest.call(this, o) && (Math.abs(o.rotation) > this.options.threshold || this.state & ee);
3831
3840
  }
3832
3841
  });
3833
- function Rt() {
3834
- K.apply(this, arguments);
3842
+ function $t() {
3843
+ se.apply(this, arguments);
3835
3844
  }
3836
- x(Rt, K, {
3845
+ x($t, se, {
3837
3846
  /**
3838
3847
  * @namespace
3839
3848
  * @memberof SwipeRecognizer
@@ -3842,25 +3851,25 @@ function xi() {
3842
3851
  event: "swipe",
3843
3852
  threshold: 10,
3844
3853
  velocity: 0.3,
3845
- direction: te | _e,
3854
+ direction: re | Ie,
3846
3855
  pointers: 1
3847
3856
  },
3848
3857
  getTouchAction: function() {
3849
- return ut.prototype.getTouchAction.call(this);
3858
+ return ht.prototype.getTouchAction.call(this);
3850
3859
  },
3851
3860
  attrTest: function(o) {
3852
3861
  var i = this.options.direction, l;
3853
- return i & (te | _e) ? l = o.overallVelocity : i & te ? l = o.overallVelocityX : i & _e && (l = o.overallVelocityY), this._super.attrTest.call(this, o) && i & o.offsetDirection && o.distance > this.options.threshold && o.maxPointers == this.options.pointers && f(l) > this.options.velocity && o.eventType & N;
3862
+ return i & (re | Ie) ? l = o.overallVelocity : i & re ? l = o.overallVelocityX : i & Ie && (l = o.overallVelocityY), this._super.attrTest.call(this, o) && i & o.offsetDirection && o.distance > this.options.threshold && o.maxPointers == this.options.pointers && f(l) > this.options.velocity && o.eventType & k;
3854
3863
  },
3855
3864
  emit: function(o) {
3856
3865
  var i = bs(o.offsetDirection);
3857
3866
  i && this.manager.emit(this.options.event + i, o), this.manager.emit(this.options.event, o);
3858
3867
  }
3859
3868
  });
3860
- function dt() {
3861
- de.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
3869
+ function pt() {
3870
+ ge.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
3862
3871
  }
3863
- x(dt, de, {
3872
+ x(pt, ge, {
3864
3873
  /**
3865
3874
  * @namespace
3866
3875
  * @memberof PinchRecognizer
@@ -3879,41 +3888,41 @@ function xi() {
3879
3888
  // a multi-tap can be a bit off the initial position
3880
3889
  },
3881
3890
  getTouchAction: function() {
3882
- return [Ot];
3891
+ return [Lt];
3883
3892
  },
3884
3893
  process: function(o) {
3885
3894
  var i = this.options, l = o.pointers.length === i.pointers, p = o.distance < i.threshold, m = o.deltaTime < i.time;
3886
- if (this.reset(), o.eventType & z && this.count === 0)
3895
+ if (this.reset(), o.eventType & j && this.count === 0)
3887
3896
  return this.failTimeout();
3888
3897
  if (p && m && l) {
3889
- if (o.eventType != N)
3898
+ if (o.eventType != k)
3890
3899
  return this.failTimeout();
3891
- var E = this.pTime ? o.timeStamp - this.pTime < i.interval : !0, w = !this.pCenter || ot(this.pCenter, o.center) < i.posThreshold;
3892
- this.pTime = o.timeStamp, this.pCenter = o.center, !w || !E ? this.count = 1 : this.count += 1, this._input = o;
3893
- var L = this.count % i.taps;
3894
- if (L === 0)
3900
+ var E = this.pTime ? o.timeStamp - this.pTime < i.interval : !0, D = !this.pCenter || it(this.pCenter, o.center) < i.posThreshold;
3901
+ this.pTime = o.timeStamp, this.pCenter = o.center, !D || !E ? this.count = 1 : this.count += 1, this._input = o;
3902
+ var U = this.count % i.taps;
3903
+ if (U === 0)
3895
3904
  return this.hasRequireFailures() ? (this._timer = v(function() {
3896
- this.state = ue, this.tryEmit();
3897
- }, i.interval, this), W) : ue;
3905
+ this.state = fe, this.tryEmit();
3906
+ }, i.interval, this), ee) : fe;
3898
3907
  }
3899
- return se;
3908
+ return ie;
3900
3909
  },
3901
3910
  failTimeout: function() {
3902
3911
  return this._timer = v(function() {
3903
- this.state = se;
3904
- }, this.options.interval, this), se;
3912
+ this.state = ie;
3913
+ }, this.options.interval, this), ie;
3905
3914
  },
3906
3915
  reset: function() {
3907
3916
  clearTimeout(this._timer);
3908
3917
  },
3909
3918
  emit: function() {
3910
- this.state == ue && (this._input.tapCount = this.count, this.manager.emit(this.options.event, this._input));
3919
+ this.state == fe && (this._input.tapCount = this.count, this.manager.emit(this.options.event, this._input));
3911
3920
  }
3912
3921
  });
3913
- function Se(o, i) {
3914
- return i = i || {}, i.recognizers = Ve(i.recognizers, Se.defaults.preset), new Bt(o, i);
3922
+ function Ce(o, i) {
3923
+ return i = i || {}, i.recognizers = M(i.recognizers, Ce.defaults.preset), new zt(o, i);
3915
3924
  }
3916
- Se.VERSION = "2.0.7", Se.defaults = {
3925
+ Ce.VERSION = "2.0.7", Ce.defaults = {
3917
3926
  /**
3918
3927
  * set if DOM events are being triggered.
3919
3928
  * But this is slower and unused by simple implementations, so disabled by default.
@@ -3954,13 +3963,13 @@ function xi() {
3954
3963
  */
3955
3964
  preset: [
3956
3965
  // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
3957
- [Ut, { enable: !1 }],
3958
- [Lt, { enable: !1 }, ["rotate"]],
3959
- [Rt, { direction: te }],
3960
- [ut, { direction: te }, ["swipe"]],
3961
- [dt],
3962
- [dt, { event: "doubletap", taps: 2 }, ["tap"]],
3963
- [Vt]
3966
+ [Bt, { enable: !1 }],
3967
+ [Ut, { enable: !1 }, ["rotate"]],
3968
+ [$t, { direction: re }],
3969
+ [ht, { direction: re }, ["swipe"]],
3970
+ [pt],
3971
+ [pt, { event: "doubletap", taps: 2 }, ["tap"]],
3972
+ [Rt]
3964
3973
  ],
3965
3974
  /**
3966
3975
  * Some CSS properties can be used to improve the working of Hammer.
@@ -4009,21 +4018,21 @@ function xi() {
4009
4018
  tapHighlightColor: "rgba(0,0,0,0)"
4010
4019
  }
4011
4020
  };
4012
- var Eo = 1, Is = 2;
4013
- function Bt(o, i) {
4014
- this.options = P({}, Se.defaults, i || {}), this.options.inputTarget = this.options.inputTarget || o, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = o, this.input = Wn(this), this.touchAction = new kt(this, this.options.touchAction), Ps(this, !0), _(this.options.recognizers, function(l) {
4021
+ var So = 1, Is = 2;
4022
+ function zt(o, i) {
4023
+ this.options = I({}, Ce.defaults, i || {}), this.options.inputTarget = this.options.inputTarget || o, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = o, this.input = Xn(this), this.touchAction = new Vt(this, this.options.touchAction), Ps(this, !0), C(this.options.recognizers, function(l) {
4015
4024
  var p = this.add(new l[0](l[1]));
4016
4025
  l[2] && p.recognizeWith(l[2]), l[3] && p.requireFailure(l[3]);
4017
4026
  }, this);
4018
4027
  }
4019
- Bt.prototype = {
4028
+ zt.prototype = {
4020
4029
  /**
4021
4030
  * set options
4022
4031
  * @param {Object} options
4023
4032
  * @returns {Manager}
4024
4033
  */
4025
4034
  set: function(o) {
4026
- return P(this.options, o), o.touchAction && this.touchAction.update(), o.inputTarget && (this.input.destroy(), this.input.target = o.inputTarget, this.input.init()), this;
4035
+ return I(this.options, o), o.touchAction && this.touchAction.update(), o.inputTarget && (this.input.destroy(), this.input.target = o.inputTarget, this.input.init()), this;
4027
4036
  },
4028
4037
  /**
4029
4038
  * stop recognizing for this session.
@@ -4032,7 +4041,7 @@ function xi() {
4032
4041
  * @param {Boolean} [force]
4033
4042
  */
4034
4043
  stop: function(o) {
4035
- this.session.stopped = o ? Is : Eo;
4044
+ this.session.stopped = o ? Is : So;
4036
4045
  },
4037
4046
  /**
4038
4047
  * run the recognizers!
@@ -4045,11 +4054,11 @@ function xi() {
4045
4054
  if (!i.stopped) {
4046
4055
  this.touchAction.preventDefaults(o);
4047
4056
  var l, p = this.recognizers, m = i.curRecognizer;
4048
- (!m || m && m.state & ue) && (m = i.curRecognizer = null);
4057
+ (!m || m && m.state & fe) && (m = i.curRecognizer = null);
4049
4058
  for (var E = 0; E < p.length; )
4050
4059
  l = p[E], i.stopped !== Is && // 1
4051
4060
  (!m || l == m || // 2
4052
- l.canRecognizeWith(m)) ? l.recognize(o) : l.reset(), !m && l.state & (W | we | Ee) && (m = i.curRecognizer = l), E++;
4061
+ l.canRecognizeWith(m)) ? l.recognize(o) : l.reset(), !m && l.state & (ee | Me | Te) && (m = i.curRecognizer = l), E++;
4053
4062
  }
4054
4063
  },
4055
4064
  /**
@@ -4058,7 +4067,7 @@ function xi() {
4058
4067
  * @returns {Recognizer|Null}
4059
4068
  */
4060
4069
  get: function(o) {
4061
- if (o instanceof de)
4070
+ if (o instanceof ge)
4062
4071
  return o;
4063
4072
  for (var i = this.recognizers, l = 0; l < i.length; l++)
4064
4073
  if (i[l].options.event == o)
@@ -4072,7 +4081,7 @@ function xi() {
4072
4081
  * @returns {Recognizer|Manager}
4073
4082
  */
4074
4083
  add: function(o) {
4075
- if (C(o, "add", this))
4084
+ if (T(o, "add", this))
4076
4085
  return this;
4077
4086
  var i = this.get(o.options.event);
4078
4087
  return i && this.remove(i), this.recognizers.push(o), o.manager = this, this.touchAction.update(), o;
@@ -4083,10 +4092,10 @@ function xi() {
4083
4092
  * @returns {Manager}
4084
4093
  */
4085
4094
  remove: function(o) {
4086
- if (C(o, "remove", this))
4095
+ if (T(o, "remove", this))
4087
4096
  return this;
4088
4097
  if (o = this.get(o), o) {
4089
- var i = this.recognizers, l = xe(i, o);
4098
+ var i = this.recognizers, l = we(i, o);
4090
4099
  l !== -1 && (i.splice(l, 1), this.touchAction.update());
4091
4100
  }
4092
4101
  return this;
@@ -4100,7 +4109,7 @@ function xi() {
4100
4109
  on: function(o, i) {
4101
4110
  if (o !== r && i !== r) {
4102
4111
  var l = this.handlers;
4103
- return _(Je(o), function(p) {
4112
+ return C(tt(o), function(p) {
4104
4113
  l[p] = l[p] || [], l[p].push(i);
4105
4114
  }), this;
4106
4115
  }
@@ -4114,8 +4123,8 @@ function xi() {
4114
4123
  off: function(o, i) {
4115
4124
  if (o !== r) {
4116
4125
  var l = this.handlers;
4117
- return _(Je(o), function(p) {
4118
- i ? l[p] && l[p].splice(xe(l[p], i), 1) : delete l[p];
4126
+ return C(tt(o), function(p) {
4127
+ i ? l[p] && l[p].splice(we(l[p], i), 1) : delete l[p];
4119
4128
  }), this;
4120
4129
  }
4121
4130
  },
@@ -4125,7 +4134,7 @@ function xi() {
4125
4134
  * @param {Object} data
4126
4135
  */
4127
4136
  emit: function(o, i) {
4128
- this.options.domEvents && So(o, i);
4137
+ this.options.domEvents && To(o, i);
4129
4138
  var l = this.handlers[o] && this.handlers[o].slice();
4130
4139
  if (!(!l || !l.length)) {
4131
4140
  i.type = o, i.preventDefault = function() {
@@ -4147,91 +4156,91 @@ function xi() {
4147
4156
  var l = o.element;
4148
4157
  if (l.style) {
4149
4158
  var p;
4150
- _(o.options.cssProps, function(m, E) {
4151
- p = tt(l.style, E), i ? (o.oldCssProps[p] = l.style[p], l.style[p] = m) : l.style[p] = o.oldCssProps[p] || "";
4159
+ C(o.options.cssProps, function(m, E) {
4160
+ p = nt(l.style, E), i ? (o.oldCssProps[p] = l.style[p], l.style[p] = m) : l.style[p] = o.oldCssProps[p] || "";
4152
4161
  }), i || (o.oldCssProps = {});
4153
4162
  }
4154
4163
  }
4155
- function So(o, i) {
4164
+ function To(o, i) {
4156
4165
  var l = s.createEvent("Event");
4157
4166
  l.initEvent(o, !0, !0), l.gesture = i, i.target.dispatchEvent(l);
4158
4167
  }
4159
- P(Se, {
4160
- INPUT_START: z,
4161
- INPUT_MOVE: Ce,
4162
- INPUT_END: N,
4163
- INPUT_CANCEL: q,
4164
- STATE_POSSIBLE: lt,
4165
- STATE_BEGAN: W,
4166
- STATE_CHANGED: we,
4167
- STATE_ENDED: Ee,
4168
- STATE_RECOGNIZED: ue,
4168
+ I(Ce, {
4169
+ INPUT_START: j,
4170
+ INPUT_MOVE: be,
4171
+ INPUT_END: k,
4172
+ INPUT_CANCEL: X,
4173
+ STATE_POSSIBLE: ut,
4174
+ STATE_BEGAN: ee,
4175
+ STATE_CHANGED: Me,
4176
+ STATE_ENDED: Te,
4177
+ STATE_RECOGNIZED: fe,
4169
4178
  STATE_CANCELLED: qe,
4170
- STATE_FAILED: se,
4171
- DIRECTION_NONE: st,
4179
+ STATE_FAILED: ie,
4180
+ DIRECTION_NONE: ot,
4172
4181
  DIRECTION_LEFT: Re,
4173
4182
  DIRECTION_RIGHT: Be,
4174
4183
  DIRECTION_UP: $e,
4175
4184
  DIRECTION_DOWN: ze,
4176
- DIRECTION_HORIZONTAL: te,
4177
- DIRECTION_VERTICAL: _e,
4185
+ DIRECTION_HORIZONTAL: re,
4186
+ DIRECTION_VERTICAL: Ie,
4178
4187
  DIRECTION_ALL: ls,
4179
- Manager: Bt,
4180
- Input: Y,
4181
- TouchAction: kt,
4182
- TouchInput: it,
4183
- MouseInput: rt,
4184
- PointerEventInput: At,
4185
- TouchMouseInput: Nt,
4188
+ Manager: zt,
4189
+ Input: J,
4190
+ TouchAction: Vt,
4191
+ TouchInput: lt,
4192
+ MouseInput: at,
4193
+ PointerEventInput: Ot,
4194
+ TouchMouseInput: kt,
4186
4195
  SingleTouchInput: ms,
4187
- Recognizer: de,
4188
- AttrRecognizer: K,
4189
- Tap: dt,
4190
- Pan: ut,
4191
- Swipe: Rt,
4192
- Pinch: Lt,
4193
- Rotate: Ut,
4194
- Press: Vt,
4195
- on: ye,
4196
- off: Q,
4197
- each: _,
4196
+ Recognizer: ge,
4197
+ AttrRecognizer: se,
4198
+ Tap: pt,
4199
+ Pan: ht,
4200
+ Swipe: $t,
4201
+ Pinch: Ut,
4202
+ Rotate: Bt,
4203
+ Press: Rt,
4204
+ on: O,
4205
+ off: Y,
4206
+ each: C,
4198
4207
  merge: b,
4199
- extend: I,
4200
- assign: P,
4208
+ extend: P,
4209
+ assign: I,
4201
4210
  inherit: x,
4202
- bindFn: F,
4203
- prefixed: tt
4211
+ bindFn: B,
4212
+ prefixed: nt
4204
4213
  });
4205
- var To = typeof t < "u" ? t : typeof self < "u" ? self : {};
4206
- To.Hammer = Se, e.exports ? e.exports = Se : t[n] = Se;
4214
+ var Co = typeof t < "u" ? t : typeof self < "u" ? self : {};
4215
+ Co.Hammer = Ce, e.exports ? e.exports = Ce : t[n] = Ce;
4207
4216
  })(window, document, "Hammer");
4208
- })(Ht)), Ht.exports;
4217
+ })(Ft)), Ft.exports;
4209
4218
  }
4210
- var xt = xi();
4211
- const oe = /* @__PURE__ */ nr({
4219
+ var wt = Ai();
4220
+ const le = /* @__PURE__ */ nr({
4212
4221
  __proto__: null
4213
- }, [xt]), Rn = 1, Bn = 2, Zt = 4, wi = {
4214
- mousedown: Rn,
4215
- mousemove: Bn,
4216
- mouseup: Zt
4222
+ }, [wt]), Bn = 1, $n = 2, Kt = 4, Ni = {
4223
+ mousedown: Bn,
4224
+ mousemove: $n,
4225
+ mouseup: Kt
4217
4226
  };
4218
- function Di(e, t) {
4227
+ function Oi(e, t) {
4219
4228
  for (let s = 0; s < e.length; s++)
4220
4229
  if (t(e[s]))
4221
4230
  return !0;
4222
4231
  return !1;
4223
4232
  }
4224
- function Mi(e) {
4233
+ function ki(e) {
4225
4234
  const t = e.prototype.handler;
4226
4235
  e.prototype.handler = function(n) {
4227
4236
  const r = this.store;
4228
- n.button > 0 && n.type === "pointerdown" && (Di(r, (a) => a.pointerId === n.pointerId) || r.push(n)), t.call(this, n);
4237
+ n.button > 0 && n.type === "pointerdown" && (Oi(r, (a) => a.pointerId === n.pointerId) || r.push(n)), t.call(this, n);
4229
4238
  };
4230
4239
  }
4231
- function Ai(e) {
4240
+ function Li(e) {
4232
4241
  e.prototype.handler = function(s) {
4233
- let n = wi[s.type];
4234
- n & Rn && s.button >= 0 && (this.pressed = !0), n & Bn && s.buttons === 0 && (n = Zt), this.pressed && (n & Zt && (this.pressed = !1), this.callback(this.manager, n, {
4242
+ let n = Ni[s.type];
4243
+ n & Bn && s.button >= 0 && (this.pressed = !0), n & $n && s.buttons === 0 && (n = Kt), this.pressed && (n & Kt && (this.pressed = !1), this.callback(this.manager, n, {
4235
4244
  pointers: [s],
4236
4245
  changedPointers: [s],
4237
4246
  pointerType: "mouse",
@@ -4239,35 +4248,35 @@ function Ai(e) {
4239
4248
  }));
4240
4249
  };
4241
4250
  }
4242
- Mi(xt.PointerEventInput);
4243
- Ai(xt.MouseInput);
4244
- const Ni = xt.Manager;
4245
- class wt {
4251
+ ki(wt.PointerEventInput);
4252
+ Li(wt.MouseInput);
4253
+ const Vi = wt.Manager;
4254
+ class Mt {
4246
4255
  constructor(t, s, n) {
4247
4256
  this.element = t, this.callback = s, this.options = { enable: !0, ...n };
4248
4257
  }
4249
4258
  }
4250
- const Oi = oe ? [
4251
- [oe.Pan, { event: "tripan", pointers: 3, threshold: 0, enable: !1 }],
4252
- [oe.Rotate, { enable: !1 }],
4253
- [oe.Pinch, { enable: !1 }],
4254
- [oe.Swipe, { enable: !1 }],
4255
- [oe.Pan, { threshold: 0, enable: !1 }],
4256
- [oe.Press, { enable: !1 }],
4257
- [oe.Tap, { event: "doubletap", taps: 2, enable: !1 }],
4259
+ const Ui = le ? [
4260
+ [le.Pan, { event: "tripan", pointers: 3, threshold: 0, enable: !1 }],
4261
+ [le.Rotate, { enable: !1 }],
4262
+ [le.Pinch, { enable: !1 }],
4263
+ [le.Swipe, { enable: !1 }],
4264
+ [le.Pan, { threshold: 0, enable: !1 }],
4265
+ [le.Press, { enable: !1 }],
4266
+ [le.Tap, { event: "doubletap", taps: 2, enable: !1 }],
4258
4267
  // TODO - rename to 'tap' and 'singletap' in the next major release
4259
- [oe.Tap, { event: "anytap", enable: !1 }],
4260
- [oe.Tap, { enable: !1 }]
4261
- ] : null, qs = {
4268
+ [le.Tap, { event: "anytap", enable: !1 }],
4269
+ [le.Tap, { enable: !1 }]
4270
+ ] : null, js = {
4262
4271
  tripan: ["rotate", "pinch", "pan"],
4263
4272
  rotate: ["pinch"],
4264
4273
  pinch: ["pan"],
4265
4274
  pan: ["press", "doubletap", "anytap", "tap"],
4266
4275
  doubletap: ["anytap"],
4267
4276
  anytap: ["tap"]
4268
- }, ki = {
4277
+ }, Ri = {
4269
4278
  doubletap: ["tap"]
4270
- }, Li = {
4279
+ }, Bi = {
4271
4280
  pointerdown: "pointerdown",
4272
4281
  pointermove: "pointermove",
4273
4282
  pointerup: "pointerup",
@@ -4286,7 +4295,7 @@ const Oi = oe ? [
4286
4295
  // IE
4287
4296
  "mousewheel"
4288
4297
  ]
4289
- }, Vi = {
4298
+ }, $i = {
4290
4299
  tap: "tap",
4291
4300
  anytap: "anytap",
4292
4301
  doubletap: "doubletap",
@@ -4326,7 +4335,7 @@ const Oi = oe ? [
4326
4335
  swiperight: "swipe",
4327
4336
  swipeup: "swipe",
4328
4337
  swipedown: "swipe"
4329
- }, js = {
4338
+ }, Gs = {
4330
4339
  click: "tap",
4331
4340
  anyclick: "anytap",
4332
4341
  dblclick: "doubletap",
@@ -4336,7 +4345,7 @@ const Oi = oe ? [
4336
4345
  mouseover: "pointerover",
4337
4346
  mouseout: "pointerout",
4338
4347
  mouseleave: "pointerleave"
4339
- }, Ui = typeof navigator < "u" && navigator.userAgent ? navigator.userAgent.toLowerCase() : "", Ae = typeof window < "u" ? window : global;
4348
+ }, zi = typeof navigator < "u" && navigator.userAgent ? navigator.userAgent.toLowerCase() : "", Oe = typeof window < "u" ? window : global;
4340
4349
  let Qt = !1;
4341
4350
  try {
4342
4351
  const e = {
@@ -4346,19 +4355,19 @@ try {
4346
4355
  return Qt = !0, !0;
4347
4356
  }
4348
4357
  };
4349
- Ae.addEventListener("test", null, e), Ae.removeEventListener("test", null);
4358
+ Oe.addEventListener("test", null, e), Oe.removeEventListener("test", null);
4350
4359
  } catch {
4351
4360
  Qt = !1;
4352
4361
  }
4353
- const Ri = Ui.indexOf("firefox") !== -1, { WHEEL_EVENTS: Bi } = os, Gs = "wheel", Ys = 4.000244140625, $i = 40, zi = 0.25;
4354
- class Hi extends wt {
4362
+ const Hi = zi.indexOf("firefox") !== -1, { WHEEL_EVENTS: Fi } = os, Ys = "wheel", Ws = 4.000244140625, qi = 40, ji = 0.25;
4363
+ class Gi extends Mt {
4355
4364
  constructor(t, s, n) {
4356
4365
  super(t, s, n), this.handleEvent = (r) => {
4357
4366
  if (!this.options.enable)
4358
4367
  return;
4359
4368
  let a = r.deltaY;
4360
- Ae.WheelEvent && (Ri && r.deltaMode === Ae.WheelEvent.DOM_DELTA_PIXEL && (a /= Ae.devicePixelRatio), r.deltaMode === Ae.WheelEvent.DOM_DELTA_LINE && (a *= $i)), a !== 0 && a % Ys === 0 && (a = Math.floor(a / Ys)), r.shiftKey && a && (a = a * zi), this.callback({
4361
- type: Gs,
4369
+ Oe.WheelEvent && (Hi && r.deltaMode === Oe.WheelEvent.DOM_DELTA_PIXEL && (a /= Oe.devicePixelRatio), r.deltaMode === Oe.WheelEvent.DOM_DELTA_LINE && (a *= qi)), a !== 0 && a % Ws === 0 && (a = Math.floor(a / Ws)), r.shiftKey && a && (a = a * ji), this.callback({
4370
+ type: Ys,
4362
4371
  center: {
4363
4372
  x: r.clientX,
4364
4373
  y: r.clientY
@@ -4368,7 +4377,7 @@ class Hi extends wt {
4368
4377
  pointerType: "mouse",
4369
4378
  target: r.target
4370
4379
  });
4371
- }, this.events = (this.options.events || []).concat(Bi), this.events.forEach((r) => t.addEventListener(r, this.handleEvent, Qt ? { passive: !1 } : !1));
4380
+ }, this.events = (this.options.events || []).concat(Fi), this.events.forEach((r) => t.addEventListener(r, this.handleEvent, Qt ? { passive: !1 } : !1));
4372
4381
  }
4373
4382
  destroy() {
4374
4383
  this.events.forEach((t) => this.element.removeEventListener(t, this.handleEvent));
@@ -4378,17 +4387,17 @@ class Hi extends wt {
4378
4387
  * if the specified event type is among those handled by this input.
4379
4388
  */
4380
4389
  enableEventType(t, s) {
4381
- t === Gs && (this.options.enable = s);
4390
+ t === Ys && (this.options.enable = s);
4382
4391
  }
4383
4392
  }
4384
- const { MOUSE_EVENTS: Fi } = os, Ws = "pointermove", Xs = "pointerover", Zs = "pointerout", Qs = "pointerenter", Ks = "pointerleave";
4385
- class qi extends wt {
4393
+ const { MOUSE_EVENTS: Yi } = os, Xs = "pointermove", Zs = "pointerover", Ks = "pointerout", Qs = "pointerenter", Js = "pointerleave";
4394
+ class Wi extends Mt {
4386
4395
  constructor(t, s, n) {
4387
4396
  super(t, s, n), this.handleEvent = (a) => {
4388
4397
  this.handleOverEvent(a), this.handleOutEvent(a), this.handleEnterEvent(a), this.handleLeaveEvent(a), this.handleMoveEvent(a);
4389
4398
  }, this.pressed = !1;
4390
4399
  const { enable: r } = this.options;
4391
- this.enableMoveEvent = r, this.enableLeaveEvent = r, this.enableEnterEvent = r, this.enableOutEvent = r, this.enableOverEvent = r, this.events = (this.options.events || []).concat(Fi), this.events.forEach((a) => t.addEventListener(a, this.handleEvent));
4400
+ this.enableMoveEvent = r, this.enableLeaveEvent = r, this.enableEnterEvent = r, this.enableOutEvent = r, this.enableOverEvent = r, this.events = (this.options.events || []).concat(Yi), this.events.forEach((a) => t.addEventListener(a, this.handleEvent));
4392
4401
  }
4393
4402
  destroy() {
4394
4403
  this.events.forEach((t) => this.element.removeEventListener(t, this.handleEvent));
@@ -4398,19 +4407,19 @@ class qi extends wt {
4398
4407
  * if the specified event type is among those handled by this input.
4399
4408
  */
4400
4409
  enableEventType(t, s) {
4401
- t === Ws && (this.enableMoveEvent = s), t === Xs && (this.enableOverEvent = s), t === Zs && (this.enableOutEvent = s), t === Qs && (this.enableEnterEvent = s), t === Ks && (this.enableLeaveEvent = s);
4410
+ t === Xs && (this.enableMoveEvent = s), t === Zs && (this.enableOverEvent = s), t === Ks && (this.enableOutEvent = s), t === Qs && (this.enableEnterEvent = s), t === Js && (this.enableLeaveEvent = s);
4402
4411
  }
4403
4412
  handleOverEvent(t) {
4404
- this.enableOverEvent && t.type === "mouseover" && this._emit(Xs, t);
4413
+ this.enableOverEvent && t.type === "mouseover" && this._emit(Zs, t);
4405
4414
  }
4406
4415
  handleOutEvent(t) {
4407
- this.enableOutEvent && t.type === "mouseout" && this._emit(Zs, t);
4416
+ this.enableOutEvent && t.type === "mouseout" && this._emit(Ks, t);
4408
4417
  }
4409
4418
  handleEnterEvent(t) {
4410
4419
  this.enableEnterEvent && t.type === "mouseenter" && this._emit(Qs, t);
4411
4420
  }
4412
4421
  handleLeaveEvent(t) {
4413
- this.enableLeaveEvent && t.type === "mouseleave" && this._emit(Ks, t);
4422
+ this.enableLeaveEvent && t.type === "mouseleave" && this._emit(Js, t);
4414
4423
  }
4415
4424
  handleMoveEvent(t) {
4416
4425
  if (this.enableMoveEvent)
@@ -4419,7 +4428,7 @@ class qi extends wt {
4419
4428
  t.button >= 0 && (this.pressed = !0);
4420
4429
  break;
4421
4430
  case "mousemove":
4422
- t.buttons === 0 && (this.pressed = !1), this.pressed || this._emit(Ws, t);
4431
+ t.buttons === 0 && (this.pressed = !1), this.pressed || this._emit(Xs, t);
4423
4432
  break;
4424
4433
  case "mouseup":
4425
4434
  this.pressed = !1;
@@ -4439,23 +4448,23 @@ class qi extends wt {
4439
4448
  });
4440
4449
  }
4441
4450
  }
4442
- const { KEY_EVENTS: ji } = os, Js = "keydown", en = "keyup";
4443
- class Gi extends wt {
4451
+ const { KEY_EVENTS: Xi } = os, en = "keydown", tn = "keyup";
4452
+ class Zi extends Mt {
4444
4453
  constructor(t, s, n) {
4445
4454
  super(t, s, n), this.handleEvent = (r) => {
4446
4455
  const a = r.target || r.srcElement;
4447
4456
  a.tagName === "INPUT" && a.type === "text" || a.tagName === "TEXTAREA" || (this.enableDownEvent && r.type === "keydown" && this.callback({
4448
- type: Js,
4457
+ type: en,
4449
4458
  srcEvent: r,
4450
4459
  key: r.key,
4451
4460
  target: r.target
4452
4461
  }), this.enableUpEvent && r.type === "keyup" && this.callback({
4453
- type: en,
4462
+ type: tn,
4454
4463
  srcEvent: r,
4455
4464
  key: r.key,
4456
4465
  target: r.target
4457
4466
  }));
4458
- }, this.enableDownEvent = this.options.enable, this.enableUpEvent = this.options.enable, this.events = (this.options.events || []).concat(ji), t.tabIndex = this.options.tabIndex || 0, t.style.outline = "none", this.events.forEach((r) => t.addEventListener(r, this.handleEvent));
4467
+ }, this.enableDownEvent = this.options.enable, this.enableUpEvent = this.options.enable, this.events = (this.options.events || []).concat(Xi), t.tabIndex = this.options.tabIndex || 0, t.style.outline = "none", this.events.forEach((r) => t.addEventListener(r, this.handleEvent));
4459
4468
  }
4460
4469
  destroy() {
4461
4470
  this.events.forEach((t) => this.element.removeEventListener(t, this.handleEvent));
@@ -4465,15 +4474,15 @@ class Gi extends wt {
4465
4474
  * if the specified event type is among those handled by this input.
4466
4475
  */
4467
4476
  enableEventType(t, s) {
4468
- t === Js && (this.enableDownEvent = s), t === en && (this.enableUpEvent = s);
4477
+ t === en && (this.enableDownEvent = s), t === tn && (this.enableUpEvent = s);
4469
4478
  }
4470
4479
  }
4471
- const tn = "contextmenu";
4472
- class Yi extends wt {
4480
+ const sn = "contextmenu";
4481
+ class Ki extends Mt {
4473
4482
  constructor(t, s, n) {
4474
4483
  super(t, s, n), this.handleEvent = (r) => {
4475
4484
  this.options.enable && this.callback({
4476
- type: tn,
4485
+ type: sn,
4477
4486
  center: {
4478
4487
  x: r.clientX,
4479
4488
  y: r.clientY
@@ -4492,26 +4501,26 @@ class Yi extends wt {
4492
4501
  * if the specified event type is among those handled by this input.
4493
4502
  */
4494
4503
  enableEventType(t, s) {
4495
- t === tn && (this.options.enable = s);
4504
+ t === sn && (this.options.enable = s);
4496
4505
  }
4497
4506
  }
4498
- const sn = 1, Kt = 2, nn = 4, Wi = {
4499
- pointerdown: sn,
4500
- pointermove: Kt,
4501
- pointerup: nn,
4502
- mousedown: sn,
4503
- mousemove: Kt,
4504
- mouseup: nn
4505
- }, Xi = 0, Zi = 1, Qi = 2, Ki = 1, Ji = 2, ea = 4;
4506
- function ta(e) {
4507
- const t = Wi[e.srcEvent.type];
4507
+ const nn = 1, Jt = 2, on = 4, Qi = {
4508
+ pointerdown: nn,
4509
+ pointermove: Jt,
4510
+ pointerup: on,
4511
+ mousedown: nn,
4512
+ mousemove: Jt,
4513
+ mouseup: on
4514
+ }, Ji = 0, ea = 1, ta = 2, sa = 1, na = 2, oa = 4;
4515
+ function ra(e) {
4516
+ const t = Qi[e.srcEvent.type];
4508
4517
  if (!t)
4509
4518
  return null;
4510
4519
  const { buttons: s, button: n } = e.srcEvent;
4511
4520
  let r = !1, a = !1, c = !1;
4512
- return t === Kt ? (r = !!(s & Ki), a = !!(s & ea), c = !!(s & Ji)) : (r = n === Xi, a = n === Zi, c = n === Qi), { leftButton: r, middleButton: a, rightButton: c };
4521
+ return t === Jt ? (r = !!(s & sa), a = !!(s & oa), c = !!(s & na)) : (r = n === Ji, a = n === ea, c = n === ta), { leftButton: r, middleButton: a, rightButton: c };
4513
4522
  }
4514
- function sa(e, t) {
4523
+ function ia(e, t) {
4515
4524
  const s = e.center;
4516
4525
  if (!s)
4517
4526
  return null;
@@ -4521,11 +4530,11 @@ function sa(e, t) {
4521
4530
  };
4522
4531
  return { center: s, offsetCenter: c };
4523
4532
  }
4524
- const Ft = {
4533
+ const qt = {
4525
4534
  srcElement: "root",
4526
4535
  priority: 0
4527
4536
  };
4528
- class na {
4537
+ class aa {
4529
4538
  constructor(t) {
4530
4539
  this.handleEvent = (s) => {
4531
4540
  if (this.isEmpty())
@@ -4546,8 +4555,8 @@ class na {
4546
4555
  }
4547
4556
  add(t, s, n, r = !1, a = !1) {
4548
4557
  const { handlers: c, handlersByElement: d } = this;
4549
- let u = Ft;
4550
- typeof n == "string" || n && n.addEventListener ? u = { ...Ft, srcElement: n } : n && (u = { ...Ft, ...n });
4558
+ let u = qt;
4559
+ typeof n == "string" || n && n.addEventListener ? u = { ...qt, srcElement: n } : n && (u = { ...qt, ...n });
4551
4560
  let f = d.get(u.srcElement);
4552
4561
  f || (f = [], d.set(u.srcElement, f));
4553
4562
  const g = {
@@ -4610,8 +4619,8 @@ class na {
4610
4619
  const s = this.eventManager.getElement();
4611
4620
  return {
4612
4621
  ...t,
4613
- ...ta(t),
4614
- ...sa(t, s),
4622
+ ...ra(t),
4623
+ ...ia(t, s),
4615
4624
  preventDefault: () => {
4616
4625
  t.srcEvent.preventDefault();
4617
4626
  },
@@ -4622,27 +4631,27 @@ class na {
4622
4631
  };
4623
4632
  }
4624
4633
  }
4625
- const oa = {
4634
+ const la = {
4626
4635
  // event handlers
4627
4636
  events: null,
4628
4637
  // custom recognizers
4629
4638
  recognizers: null,
4630
4639
  recognizerOptions: {},
4631
4640
  // Manager class
4632
- Manager: Ni,
4641
+ Manager: Vi,
4633
4642
  // allow browser default touch action
4634
4643
  // https://github.com/uber/react-map-gl/issues/506
4635
4644
  touchAction: "none",
4636
4645
  tabIndex: 0
4637
4646
  };
4638
- class ra {
4647
+ class ca {
4639
4648
  constructor(t = null, s) {
4640
4649
  this._onBasicInput = (r) => {
4641
- const { srcEvent: a } = r, c = Li[a.type];
4650
+ const { srcEvent: a } = r, c = Bi[a.type];
4642
4651
  c && this.manager.emit(c, r);
4643
4652
  }, this._onOtherEvent = (r) => {
4644
4653
  this.manager.emit(r.type, r);
4645
- }, this.options = { ...oa, ...s }, this.events = /* @__PURE__ */ new Map(), this.setElement(t);
4654
+ }, this.options = { ...la, ...s }, this.events = /* @__PURE__ */ new Map(), this.setElement(t);
4646
4655
  const { events: n } = this.options;
4647
4656
  n && this.on(n);
4648
4657
  }
@@ -4655,10 +4664,10 @@ class ra {
4655
4664
  const { options: s } = this, n = s.Manager;
4656
4665
  this.manager = new n(t, {
4657
4666
  touchAction: s.touchAction,
4658
- recognizers: s.recognizers || Oi
4659
- }).on("hammer.input", this._onBasicInput), s.recognizers || Object.keys(qs).forEach((r) => {
4667
+ recognizers: s.recognizers || Ui
4668
+ }).on("hammer.input", this._onBasicInput), s.recognizers || Object.keys(js).forEach((r) => {
4660
4669
  const a = this.manager.get(r);
4661
- a && qs[r].forEach((c) => {
4670
+ a && js[r].forEach((c) => {
4662
4671
  a.recognizeWith(c);
4663
4672
  });
4664
4673
  });
@@ -4669,14 +4678,14 @@ class ra {
4669
4678
  delete c.enable, a.set(c);
4670
4679
  }
4671
4680
  }
4672
- this.wheelInput = new Hi(t, this._onOtherEvent, {
4681
+ this.wheelInput = new Gi(t, this._onOtherEvent, {
4673
4682
  enable: !1
4674
- }), this.moveInput = new qi(t, this._onOtherEvent, {
4683
+ }), this.moveInput = new Wi(t, this._onOtherEvent, {
4675
4684
  enable: !1
4676
- }), this.keyInput = new Gi(t, this._onOtherEvent, {
4685
+ }), this.keyInput = new Zi(t, this._onOtherEvent, {
4677
4686
  enable: !1,
4678
4687
  tabIndex: s.tabIndex
4679
- }), this.contextmenuInput = new Yi(t, this._onOtherEvent, {
4688
+ }), this.contextmenuInput = new Ki(t, this._onOtherEvent, {
4680
4689
  enable: !1
4681
4690
  });
4682
4691
  for (const [r, a] of this.events)
@@ -4709,7 +4718,7 @@ class ra {
4709
4718
  const r = n.get(t);
4710
4719
  if (r && r.options.enable !== s) {
4711
4720
  r.set({ enable: s });
4712
- const a = ki[t];
4721
+ const a = Ri[t];
4713
4722
  a && !this.options.recognizers && a.forEach((c) => {
4714
4723
  const d = n.get(c);
4715
4724
  s ? (d.requireFailure(t), r.dropRequireFailure(c)) : d.dropRequireFailure(t);
@@ -4727,9 +4736,9 @@ class ra {
4727
4736
  this._addEventHandler(g, t[g], n, r, a);
4728
4737
  return;
4729
4738
  }
4730
- const { manager: c, events: d } = this, u = js[t] || t;
4739
+ const { manager: c, events: d } = this, u = Gs[t] || t;
4731
4740
  let f = d.get(u);
4732
- f || (f = new na(this), d.set(u, f), f.recognizerName = Vi[u] || u, c && c.on(u, f.handleEvent)), f.add(t, s, n, r, a), f.isEmpty() || this._toggleRecognizer(f.recognizerName, !0);
4741
+ f || (f = new aa(this), d.set(u, f), f.recognizerName = $i[u] || u, c && c.on(u, f.handleEvent)), f.add(t, s, n, r, a), f.isEmpty() || this._toggleRecognizer(f.recognizerName, !0);
4733
4742
  }
4734
4743
  /**
4735
4744
  * Process the event deregistration for a single event + handler.
@@ -4740,7 +4749,7 @@ class ra {
4740
4749
  this._removeEventHandler(c, t[c]);
4741
4750
  return;
4742
4751
  }
4743
- const { events: n } = this, r = js[t] || t, a = n.get(r);
4752
+ const { events: n } = this, r = Gs[t] || t, a = n.get(r);
4744
4753
  if (a && (a.remove(t, s), a.isEmpty())) {
4745
4754
  const { recognizerName: c } = a;
4746
4755
  let d = !1;
@@ -4753,19 +4762,19 @@ class ra {
4753
4762
  }
4754
4763
  }
4755
4764
  }
4756
- const ia = {
4765
+ const ua = {
4757
4766
  __name: "PgInteractionDetector",
4758
4767
  setup(e) {
4759
- const t = he(), s = Te(), n = j(null), r = j([]), a = j("ended"), c = j(0);
4768
+ const t = ue(), s = _e(), n = Z(null), r = Z([]), a = Z("ended"), c = Z(0);
4760
4769
  let d;
4761
- const { playing: u } = S(t), f = () => s.previous(), g = () => s.next(), v = () => s.close(), C = () => u.value ? s.pause() : s.play(), _ = (b) => b.reduce((x, F) => x + F, 0) / b.length, D = (b) => Math.abs(_(b)), P = (b) => {
4770
+ const { playing: u } = S(t), f = () => s.previous(), g = () => s.next(), v = () => s.close(), T = () => u.value ? s.pause() : s.play(), C = (b) => b.reduce((x, B) => x + B, 0) / b.length, w = (b) => Math.abs(C(b)), I = (b) => {
4762
4771
  const x = b.srcEvent.keyCode;
4763
4772
  if (x === 27 || (b.ctrlKey || b.altKey) && x === 87) {
4764
4773
  v();
4765
4774
  return;
4766
4775
  }
4767
4776
  if (x === 32) {
4768
- C();
4777
+ T();
4769
4778
  return;
4770
4779
  }
4771
4780
  if (x === 13 || x === 9 || x === 39) {
@@ -4776,28 +4785,28 @@ const ia = {
4776
4785
  f();
4777
4786
  return;
4778
4787
  }
4779
- }, I = (b) => {
4788
+ }, P = (b) => {
4780
4789
  if (!(b && (b.wheelDelta || b.deltaX))) return;
4781
- const F = b.deltaX, le = b.deltaY, Ve = 2;
4782
- if ((le > Ve || le < -Ve) && F === 0 || b.ctrlKey)
4790
+ const B = b.deltaX, te = b.deltaY, M = 2;
4791
+ if ((te > M || te < -M) && B === 0 || b.ctrlKey)
4783
4792
  return;
4784
4793
  b.preventDefault();
4785
- const ye = b.wheelDeltaX, Q = Q.value, ce = D(r.value);
4786
- if (Q.value = ce, r.value.push(ye), r.value.length > 6 && r.value.shift(), Math.abs(ye) < 80)
4794
+ const O = b.wheelDeltaX, Y = Y.value, q = w(r.value);
4795
+ if (Y.value = q, r.value.push(O), r.value.length > 6 && r.value.shift(), Math.abs(O) < 80)
4787
4796
  return;
4788
- const G = D(r.value);
4789
- if (a.value === "ended" && ce < G && Q < G && Q < ce) {
4790
- if (a.value = "started", c.value = Date.now(), ye > 0) {
4791
- ce();
4797
+ const W = w(r.value);
4798
+ if (a.value === "ended" && q < W && Y < W && Y < q) {
4799
+ if (a.value = "started", c.value = Date.now(), O > 0) {
4800
+ q();
4792
4801
  return;
4793
4802
  }
4794
4803
  g();
4795
4804
  return;
4796
4805
  }
4797
- a.value === "started" && G < ce && G < Q && ce < Q && (a.value = "ended");
4806
+ a.value === "started" && W < q && W < Y && q < Y && (a.value = "ended");
4798
4807
  };
4799
- return bt(() => {
4800
- d = new ra(n.value, {
4808
+ return Qe(() => {
4809
+ d = new ca(n.value, {
4801
4810
  recognizers: [
4802
4811
  // RecognizerClass, [options], [recognizeWith, ...], [requireFailure, ...]
4803
4812
  [Hammer.Pinch],
@@ -4812,28 +4821,28 @@ const ia = {
4812
4821
  // pinchmove: onPinchMove,
4813
4822
  // pinchin: onPinchIn,
4814
4823
  pinchout: v,
4815
- wheel: I,
4824
+ wheel: P,
4816
4825
  // keyup: onKeyUp,
4817
- keydown: P,
4826
+ keydown: I,
4818
4827
  doubletap: v,
4819
- tap: C
4828
+ tap: T
4820
4829
  // pointerdown: togglePlay,
4821
4830
  });
4822
- }), Jt(() => {
4831
+ }), Pt(() => {
4823
4832
  d && d.destroy();
4824
- }), (b, x) => (O(), $("div", {
4833
+ }), (b, x) => (L(), F("div", {
4825
4834
  class: "pg-interaction-detector",
4826
4835
  ref_key: "detector",
4827
4836
  ref: n
4828
4837
  }, null, 512));
4829
4838
  }
4830
- }, aa = T({
4839
+ }, da = _({
4831
4840
  name: "PgAdvancedButton",
4832
4841
  setup(e, { slots: t, emit: s }) {
4833
- const n = k(), { lang: r } = M(), a = y(() => {
4842
+ const n = V(), { lang: r } = A(), a = y(() => {
4834
4843
  var u;
4835
4844
  return (u = r.value.pg) == null ? void 0 : u.buttons.advanced.title;
4836
- }), c = () => n.mobileActive = St;
4845
+ }), c = () => n.mobileActive = Ct;
4837
4846
  function d() {
4838
4847
  const u = {
4839
4848
  class: "pg-button-advanced",
@@ -4844,61 +4853,61 @@ const ia = {
4844
4853
  outline: !0,
4845
4854
  color: "primary"
4846
4855
  };
4847
- return h(Oe, u);
4856
+ return h(ke, u);
4848
4857
  }
4849
4858
  return () => d();
4850
4859
  }
4851
- }), la = T({
4860
+ }), ha = _({
4852
4861
  name: "PgDefaultButtonRow",
4853
4862
  setup(e, { slots: t, emit: s }) {
4854
4863
  function n() {
4855
4864
  return h("div", {
4856
4865
  class: "pg-drawer-button-row q-pt-md q-pb-sm row"
4857
4866
  }, [
4858
- h("div", { class: "col text-center" }, [h(Vn)]),
4859
- h("div", { class: "col text-center" }, [h(aa)])
4867
+ h("div", { class: "col text-center" }, [h(Un)]),
4868
+ h("div", { class: "col text-center" }, [h(da)])
4860
4869
  ]);
4861
4870
  }
4862
4871
  return () => n();
4863
4872
  }
4864
- }), ca = T({
4873
+ }), pa = _({
4865
4874
  name: "PgDefaultDrawer",
4866
4875
  props: {},
4867
4876
  emits: ["click"],
4868
4877
  setup(e, { slots: t, emit: s }) {
4869
4878
  return () => h(
4870
- dn,
4871
- { name: Me },
4879
+ hn,
4880
+ { name: Ne },
4872
4881
  {
4873
- default: () => h(Ln, { center: !0 }),
4882
+ default: () => h(Vn, { center: !0 }),
4874
4883
  secondary: () => [
4875
4884
  h(ss, { playMode: !0 }),
4876
- h(la)
4885
+ h(ha)
4877
4886
  ]
4878
4887
  }
4879
4888
  );
4880
4889
  }
4881
- }), ua = T({
4890
+ }), fa = _({
4882
4891
  name: "PgAdvancedDrawer",
4883
4892
  props: {},
4884
4893
  emits: ["click"],
4885
4894
  setup(e, { slots: t, emit: s }) {
4886
- const { lang: n } = M(), r = y(() => {
4895
+ const { lang: n } = A(), r = y(() => {
4887
4896
  var a;
4888
4897
  return (a = n.value.pg) == null ? void 0 : a.buttons.advanced.title;
4889
4898
  });
4890
4899
  return () => h(
4891
- dn,
4892
- { class: "pg-effects-drawer", name: St, label: r.value },
4900
+ hn,
4901
+ { class: "pg-effects-drawer", name: Ct, label: r.value },
4893
4902
  {
4894
- default: () => h(Un, { center: !0, playMode: !0 })
4903
+ default: () => h(Rn, { center: !0, playMode: !0 })
4895
4904
  }
4896
4905
  );
4897
4906
  }
4898
- }), da = T({
4907
+ }), ga = _({
4899
4908
  name: "TsDrawers",
4900
4909
  setup(e, { slots: t, emit: s }) {
4901
- const n = k(), { mobileActive: r } = S(n);
4910
+ const n = V(), { mobileActive: r } = S(n);
4902
4911
  function a() {
4903
4912
  return h(
4904
4913
  Yo,
@@ -4906,22 +4915,22 @@ const ia = {
4906
4915
  modelValue: r.value,
4907
4916
  "onUpdate:modelValue": (c) => r.value = c
4908
4917
  },
4909
- () => [h(ca), h(ua)]
4918
+ () => [h(pa), h(fa)]
4910
4919
  );
4911
4920
  }
4912
4921
  return () => a();
4913
4922
  }
4914
- }), ha = { class: "pg-viewport full-height" }, pa = {
4923
+ }), ma = { class: "pg-viewport full-height" }, va = {
4915
4924
  __name: "PgViewport",
4916
4925
  props: {
4917
4926
  modelValue: Boolean
4918
4927
  },
4919
4928
  emits: ["update:modelValue"],
4920
4929
  setup(e, { emit: t }) {
4921
- const s = It(), n = j(s.platform.is.desktop), r = j(s.platform.is.mobile), a = k();
4922
- X();
4930
+ const s = xt(), n = Z(s.platform.is.desktop), r = Z(s.platform.is.mobile), a = V();
4931
+ K();
4923
4932
  const { loading: c } = S(a), d = e, u = t;
4924
- j(!0);
4933
+ Z(!0);
4925
4934
  const f = y({
4926
4935
  get() {
4927
4936
  return d.modelValue;
@@ -4930,74 +4939,123 @@ const ia = {
4930
4939
  u("update:modelValue", g);
4931
4940
  }
4932
4941
  });
4933
- return (g, v) => (O(), _t(qt, { name: "fade" }, {
4934
- default: jt(() => [
4935
- vt(De("div", ha, [
4936
- B(ia),
4937
- B(A(kn)),
4938
- B(Pi),
4939
- B(qt, { name: "fade" }, {
4940
- default: jt(() => [
4941
- vt(B(A(ko), { class: "loading-graphic" }, null, 512), [
4942
- [yt, A(c)]
4942
+ return (g, v) => (L(), It(jt, { name: "fade" }, {
4943
+ default: Gt(() => [
4944
+ Et(Ae("div", ma, [
4945
+ H(ua),
4946
+ H(N(Ln)),
4947
+ H(Mi),
4948
+ H(jt, { name: "fade" }, {
4949
+ default: Gt(() => [
4950
+ Et(H(N(ko), { class: "loading-graphic" }, null, 512), [
4951
+ [St, N(c)]
4943
4952
  ])
4944
4953
  ]),
4945
4954
  _: 1
4946
4955
  }),
4947
- B(A(yi)),
4948
- B(A(_i), {
4956
+ H(N(Ci)),
4957
+ H(N(xi), {
4949
4958
  class: "desktop-only",
4950
4959
  modelValue: n.value,
4951
- "onUpdate:modelValue": v[0] || (v[0] = (C) => n.value = C)
4960
+ "onUpdate:modelValue": v[0] || (v[0] = (T) => n.value = T)
4952
4961
  }, null, 8, ["modelValue"]),
4953
- vt(B(A(da), { class: "mobile-only" }, null, 512), [
4954
- [yt, r.value]
4962
+ Et(H(N(ga), { class: "mobile-only" }, null, 512), [
4963
+ [St, r.value]
4955
4964
  ])
4956
4965
  ], 512), [
4957
- [yt, f.value]
4966
+ [St, f.value]
4958
4967
  ])
4959
4968
  ]),
4960
4969
  _: 1
4961
4970
  }));
4962
4971
  }
4963
- }, Ca = T({
4972
+ }, Pa = _({
4964
4973
  name: "PoseGenerator",
4965
4974
  options: { slug: "pose-generator" },
4966
4975
  setup(e, { slots: t, emit: s }) {
4967
- const n = Po(), r = Symbol.for("user-auth"), a = Io(r), c = Pt(), d = Te(), u = X(), f = k(), { show: g } = S(d), { authenticated: v } = S(a), { filters: C } = S(c), { filterData: _ } = S(f);
4968
- let D = 0;
4969
- Ne(v, (I, b) => {
4970
- I === !1 && f.customReset(), I === !0 && b !== !0 && f.getSettings();
4971
- }), Ne(_, () => {
4972
- D++, u.updateQueue(), !(D < 3) && (console.log("watch filterData pgStore.setSettings()"), f.setSettings());
4973
- }), Ne(
4976
+ const n = Po(), r = Symbol.for("user-auth"), a = Symbol.for("activity-tracking"), c = xs(r), d = xs(a, null), u = Dt(), f = _e(), g = K(), v = V(), T = ue(), C = Q(), { show: w } = S(f), { authenticated: I } = S(c), { filters: P } = S(u), { filterData: b } = S(v);
4977
+ let x = 0;
4978
+ ce(I, (M, O) => {
4979
+ M === !1 && v.customReset(), M === !0 && O !== !0 && v.getSettings();
4980
+ }), ce(b, () => {
4981
+ x++, g.updateQueue(), !(x < 3) && (console.log("watch filterData pgStore.setSettings()"), v.setSettings());
4982
+ }), ce(
4974
4983
  () => n.fullPath,
4975
4984
  () => {
4976
- d.pause();
4985
+ f.pause();
4977
4986
  },
4978
4987
  { immediate: !0 }
4979
- ), Lo(), bt(() => {
4980
- f.init(), f.fetch().then(() => {
4981
- u.loadQueue();
4988
+ ), Lo(), Qe(() => {
4989
+ v.init(), v.fetch().then(() => {
4990
+ g.loadQueue();
4982
4991
  }).catch(() => {
4983
4992
  });
4984
4993
  });
4985
- function P() {
4986
- const I = {
4987
- modelValue: g.value,
4988
- "onUpdate:show": (b) => g.value = b
4994
+ const B = (M) => {
4995
+ M && (d == null || d.trackEvent(Ar, {
4996
+ pose_id: M,
4997
+ base_pose_id: M
4998
+ }));
4999
+ };
5000
+ Qe(async () => {
5001
+ d && (await d.beginPoseGenerator(), g.currentId && (d.beginSegment(String(g.currentId)), B(g.currentId)));
5002
+ }), ce(
5003
+ () => g.currentId,
5004
+ (M, O) => {
5005
+ !M || M === O || (d == null || d.beginSegment(String(M)), B(M));
5006
+ }
5007
+ ), ce(
5008
+ () => g.history.length,
5009
+ (M, O) => {
5010
+ if (!d || M <= O) return;
5011
+ const Y = g.history[M - 1];
5012
+ if (!Y) return;
5013
+ const q = Y.split(".").map((W) => parseInt(W));
5014
+ d.trackEvent(kr, {
5015
+ config: {
5016
+ pose_id: q[0],
5017
+ position_index: q[1],
5018
+ light_direction: q[2],
5019
+ skin_id: q[3],
5020
+ effect_id: q[4],
5021
+ duration_seconds: C.duration
5022
+ }
5023
+ });
5024
+ }
5025
+ ), ce(
5026
+ () => T.status,
5027
+ (M, O) => {
5028
+ !d || M !== Xe || O === Xe || d.trackEvent(Nr, {
5029
+ duration_seconds: C.duration
5030
+ });
5031
+ }
5032
+ ), ce(
5033
+ () => T.completedLaps,
5034
+ (M, O) => {
5035
+ !d || M <= O || d.trackEvent(Or, {
5036
+ pose_id: T.lastLapPoseId,
5037
+ duration_seconds: C.duration
5038
+ });
5039
+ }
5040
+ ), Pt(() => {
5041
+ d == null || d.end();
5042
+ });
5043
+ function te() {
5044
+ const M = {
5045
+ modelValue: w.value,
5046
+ "onUpdate:show": (O) => w.value = O
4989
5047
  };
4990
5048
  return [
4991
5049
  // overlay can now be absolutely positioned within the wrapper
4992
5050
  // h(GridOverlay, { style: 'z-index: 5;' }),
4993
- h(vi),
4994
- h(pa, I)
5051
+ h(Ti),
5052
+ h(va, M)
4995
5053
  ];
4996
5054
  }
4997
- return () => P();
5055
+ return () => te();
4998
5056
  }
4999
5057
  });
5000
5058
  export {
5001
- Ca as PoseGenerator,
5002
- k as usePgStore
5059
+ Pa as PoseGenerator,
5060
+ V as usePgStore
5003
5061
  };