@seatlayer/core 0.102.0 → 0.103.0

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.
Files changed (167) hide show
  1. package/dist/ar-D6ASWQBI.js +1 -0
  2. package/dist/be-T23MSCFC.js +1 -0
  3. package/dist/bg-2MMSY43I.js +1 -0
  4. package/dist/ca-EXRTYE33.js +1 -0
  5. package/dist/{categoryInventory-7gSFTu0l.d.cts → categoryInventory-D_gpkfsq.d.cts} +1 -1
  6. package/dist/{categoryInventory-hJxuFF9L.d.ts → categoryInventory-i-mGCBD3.d.ts} +1 -1
  7. package/dist/{chunk-ZS5YFXSE.js → chunk-2STEWCI2.js} +1 -1
  8. package/dist/chunk-33SRM2CP.js +1 -0
  9. package/dist/chunk-3W4ZMU4G.js +1 -0
  10. package/dist/chunk-76AUT55N.js +1 -0
  11. package/dist/chunk-B75VUM6L.js +1 -0
  12. package/dist/{chunk-GTRYL7YV.js → chunk-FAY7ARLB.js} +1 -1
  13. package/dist/chunk-NWRHKTMV.js +1 -0
  14. package/dist/{chunk-4DYJCT62.js → chunk-QG7ZFUNX.js} +1 -1
  15. package/dist/{chunk-AFJWTB7L.js → chunk-R2TRYVOY.js} +1 -1
  16. package/dist/{chunk-PHV2U54Y.js → chunk-RF4QU72N.js} +1 -1
  17. package/dist/{chunk-FOIYJ5NT.js → chunk-TFYAMLCK.js} +1 -1
  18. package/dist/chunk-TZBJCAXH.js +1 -0
  19. package/dist/{chunk-254ABRJF.js → chunk-UEYHH7Y5.js} +1 -1
  20. package/dist/{chunk-COECA63Q.js → chunk-WH2EVBIG.js} +1 -1
  21. package/dist/chunk-WKWXU5QM.js +1 -0
  22. package/dist/core/chart-ops/index.cjs +1 -1
  23. package/dist/core/chart-ops/index.d.cts +466 -14
  24. package/dist/core/chart-ops/index.d.ts +466 -14
  25. package/dist/core/chart-ops/index.js +1 -1
  26. package/dist/core/color.d.cts +1 -1
  27. package/dist/core/color.d.ts +1 -1
  28. package/dist/core/inventory/index.cjs +1 -1
  29. package/dist/core/inventory/index.d.cts +4 -4
  30. package/dist/core/inventory/index.d.ts +4 -4
  31. package/dist/core/inventory/index.js +1 -1
  32. package/dist/core/layout/index.cjs +1 -1
  33. package/dist/core/layout/index.d.cts +5 -5
  34. package/dist/core/layout/index.d.ts +5 -5
  35. package/dist/core/layout/index.js +1 -1
  36. package/dist/core/quality/index.d.cts +3 -3
  37. package/dist/core/quality/index.d.ts +3 -3
  38. package/dist/core/render-assets/index.cjs +1 -1
  39. package/dist/core/render-assets/index.d.cts +45 -5
  40. package/dist/core/render-assets/index.d.ts +45 -5
  41. package/dist/core/render-assets/index.js +1 -1
  42. package/dist/core/seatConfidence.d.cts +1 -1
  43. package/dist/core/seatConfidence.d.ts +1 -1
  44. package/dist/core/sections/index.cjs +1 -1
  45. package/dist/core/sections/index.d.cts +5 -5
  46. package/dist/core/sections/index.d.ts +5 -5
  47. package/dist/core/sections/index.js +1 -1
  48. package/dist/cs-L5EG7LLR.js +1 -0
  49. package/dist/cy-AB2Q6XHI.js +1 -0
  50. package/dist/da-EGJO7W4Q.js +1 -0
  51. package/dist/de-Q56NNVPD.js +1 -0
  52. package/dist/el-JW2YADAL.js +1 -0
  53. package/dist/es-N35HVHMD.js +1 -0
  54. package/dist/et-53UYPQR7.js +1 -0
  55. package/dist/{eventConfigurations-BHIfPJJJ.d.cts → eventConfigurations-C0x_OtjQ.d.cts} +1 -1
  56. package/dist/{eventConfigurations-I5UBS6r9.d.ts → eventConfigurations-CDPqKz_8.d.ts} +1 -1
  57. package/dist/{fa-5MS3C6YX.js → fa-JL3HW42Q.js} +1 -1
  58. package/dist/fi-ZFWROLPU.js +1 -0
  59. package/dist/fr-6EKBGKIT.js +1 -0
  60. package/dist/he-KSOTIRJW.js +1 -0
  61. package/dist/hi-RWHSYCVV.js +1 -0
  62. package/dist/hr-ECH5LYKR.js +1 -0
  63. package/dist/hu-BAXHRRWC.js +1 -0
  64. package/dist/id-ECFNLK3G.js +1 -0
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.cts +22 -15
  67. package/dist/index.d.ts +22 -15
  68. package/dist/index.js +1 -1
  69. package/dist/{it-KG53QPQF.js → it-HT57FDFI.js} +1 -1
  70. package/dist/ja-LHVHSM5J.js +1 -0
  71. package/dist/ko-G2HVHBKT.js +1 -0
  72. package/dist/ku-MNPV6BJJ.js +1 -0
  73. package/dist/{labeling-CDKZ9TO1.d.ts → labeling-20iLar-Q.d.ts} +1 -1
  74. package/dist/{labeling-2A31f781.d.cts → labeling-DW_pEMgl.d.cts} +1 -1
  75. package/dist/localeLoaders-L36RHPNS.js +1 -0
  76. package/dist/lt-GB2GJDNS.js +1 -0
  77. package/dist/lv-3ZE6IM47.js +1 -0
  78. package/dist/ms-YH2PYOHG.js +1 -0
  79. package/dist/nl-D4FX7T7U.js +1 -0
  80. package/dist/no-5YNLYHN4.js +1 -0
  81. package/dist/pl-RUXCR6JV.js +1 -0
  82. package/dist/pt-TKFGIUL6.js +1 -0
  83. package/dist/{renderedQuality-CwZ8hY-5.d.cts → renderedQuality-BIWwSRMS.d.cts} +1 -1
  84. package/dist/{renderedQuality-wDIiUId3.d.ts → renderedQuality-CdpKQidA.d.ts} +1 -1
  85. package/dist/{renderer-D6ggv3bV.d.cts → renderer-BSjyHBDK.d.cts} +1 -1
  86. package/dist/{renderer-CdJx5l3B.d.ts → renderer-BurPZ2Io.d.ts} +1 -1
  87. package/dist/ro-UFIOIOVH.js +1 -0
  88. package/dist/ru-VMRD53B7.js +1 -0
  89. package/dist/{seatTypeIcons-DMJX4rVN.d.cts → seatTypeIcons-BlEzPXFf.d.cts} +1 -1
  90. package/dist/{seatTypeIcons-UpUTD8Xf.d.ts → seatTypeIcons-D_T5HfJs.d.ts} +1 -1
  91. package/dist/{sections-lpdfwSdO.d.ts → sections-BySKMsFE.d.ts} +1 -1
  92. package/dist/{sections-CempT5a0.d.cts → sections-DXUcW0ZT.d.cts} +1 -1
  93. package/dist/{segmentedRowModel-HwY4XuYa.d.ts → segmentedRowModel-C5qFY6jJ.d.ts} +1 -1
  94. package/dist/{segmentedRowModel-Ddx5ol8T.d.cts → segmentedRowModel-CyW-LFuI.d.cts} +1 -1
  95. package/dist/sk-XIK2KO3F.js +1 -0
  96. package/dist/sl-CDZGH6C6.js +1 -0
  97. package/dist/sr-A3TESNV3.js +1 -0
  98. package/dist/sv-HKGKDGSG.js +1 -0
  99. package/dist/{tableSizing-C0zx97eg.d.ts → tableSizing-Bos5ueqg.d.cts} +5 -4
  100. package/dist/{tableSizing-BJqAuJDg.d.cts → tableSizing-CAiE_oii.d.ts} +5 -4
  101. package/dist/th-ZPGRIY7D.js +1 -0
  102. package/dist/{ticketRestrictions-DDQHiKF-.d.cts → ticketRestrictions-DKdJWh9u.d.cts} +2 -2
  103. package/dist/{ticketRestrictions-AU8UUmdL.d.ts → ticketRestrictions-DRDtAVKw.d.ts} +2 -2
  104. package/dist/tr-IUB54G3R.js +1 -0
  105. package/dist/{types-DL7qIUrD.d.cts → types-ZviQR7ch.d.cts} +127 -8
  106. package/dist/{types-DL7qIUrD.d.ts → types-ZviQR7ch.d.ts} +127 -8
  107. package/dist/uk-JQKEV42K.js +1 -0
  108. package/dist/vi-KRM5S2Q7.js +1 -0
  109. package/dist/view3d/crossfade/panorama.d.cts +1 -1
  110. package/dist/view3d/crossfade/panorama.d.ts +1 -1
  111. package/dist/view3d/index.cjs +54 -54
  112. package/dist/view3d/index.d.cts +7 -3
  113. package/dist/view3d/index.d.ts +7 -3
  114. package/dist/view3d/index.js +44 -44
  115. package/dist/view3d/scene/scene.worker.cjs +1 -1
  116. package/dist/view3d/scene/scene.worker.js +1 -1
  117. package/dist/zh-Hans-FEUYIOYS.js +1 -0
  118. package/dist/zh-Hant-PK2XOE2G.js +1 -0
  119. package/package.json +1 -1
  120. package/dist/ar-TGXEBJUB.js +0 -1
  121. package/dist/be-JIDOHWF6.js +0 -1
  122. package/dist/bg-ODVJNCC2.js +0 -1
  123. package/dist/ca-3I7TMWYU.js +0 -1
  124. package/dist/chunk-4R6TXHY2.js +0 -1
  125. package/dist/chunk-5N4H3KMR.js +0 -1
  126. package/dist/chunk-66T4EAUA.js +0 -1
  127. package/dist/chunk-EIV3CAGV.js +0 -1
  128. package/dist/chunk-FUFRWRPM.js +0 -1
  129. package/dist/chunk-TAMY7HTV.js +0 -1
  130. package/dist/chunk-TQN2VWQO.js +0 -1
  131. package/dist/cs-XXB624Z3.js +0 -1
  132. package/dist/cy-W2QNU2GO.js +0 -1
  133. package/dist/da-Q47YPK2E.js +0 -1
  134. package/dist/de-TS3DPLM5.js +0 -1
  135. package/dist/el-3JQUH6DB.js +0 -1
  136. package/dist/es-GP7VOX7S.js +0 -1
  137. package/dist/et-A22OMZ6V.js +0 -1
  138. package/dist/fi-OJLAOJO2.js +0 -1
  139. package/dist/fr-7ATOYJCF.js +0 -1
  140. package/dist/he-37LKRY5W.js +0 -1
  141. package/dist/hi-YXZ5EWK7.js +0 -1
  142. package/dist/hr-QFOPGLMR.js +0 -1
  143. package/dist/hu-RHRBK46E.js +0 -1
  144. package/dist/id-A5Q3MLSX.js +0 -1
  145. package/dist/ja-CC6EPUSN.js +0 -1
  146. package/dist/ko-7H4RGYFK.js +0 -1
  147. package/dist/ku-HFYWPSS4.js +0 -1
  148. package/dist/localeLoaders-4YMC7FIZ.js +0 -1
  149. package/dist/lt-HQXE7W47.js +0 -1
  150. package/dist/lv-AN25XXPB.js +0 -1
  151. package/dist/ms-CWAYSF6E.js +0 -1
  152. package/dist/nl-63QBRZSZ.js +0 -1
  153. package/dist/no-RAPQMKWU.js +0 -1
  154. package/dist/pl-ILSTD4ZV.js +0 -1
  155. package/dist/pt-WF3US5D7.js +0 -1
  156. package/dist/ro-XR3HT6DE.js +0 -1
  157. package/dist/ru-TLJEWDPA.js +0 -1
  158. package/dist/sk-OJC2EL3Z.js +0 -1
  159. package/dist/sl-7RGTVXCV.js +0 -1
  160. package/dist/sr-NHDJ54BS.js +0 -1
  161. package/dist/sv-ZODCCBCU.js +0 -1
  162. package/dist/th-VCZA4MP5.js +0 -1
  163. package/dist/tr-ROKZO3HC.js +0 -1
  164. package/dist/uk-LP2DPUHC.js +0 -1
  165. package/dist/vi-JDK3JRJR.js +0 -1
  166. package/dist/zh-Hans-P3GB3FAZ.js +0 -1
  167. package/dist/zh-Hant-YU4OKSFZ.js +0 -1
@@ -1,7 +1,7 @@
1
- import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-DL7qIUrD.cjs';
2
- import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-D6ggv3bV.cjs';
3
- export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-7gSFTu0l.cjs';
4
- export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GABoxMode, b as GA_UNIT_LABEL_PREFIX, c as GroupedTableBookingMode, d as GroupedTableInventoryUnit, e as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, f as MAX_GA_CAPACITY, g as MAX_ONE_PARTY_GUESTS, N as NotForSaleSelectionIssue, O as ONE_PARTY_LIMIT_MESSAGE, R as RestrictionChartDoc, h as RestrictionSeat, T as TicketOptionApplicabilityIssue, i as TicketSelection, j as TicketSelectionIssue, k as TicketSelectionOptions, l as TicketTierResolution, m as applicableTicketTiers, n as companionSelectionIssue, o as eventInventoryLimitFor, p as gaAreasOf, q as gaBoxBounds, r as gaBoxMode, s as gaInventorySegments, t as gaUnitLabel, u as gaUnitLabels, v as gaUnitLabelsForModel, w as gaWheelchairPlaceCount, x as gaWheelchairUnitLabels, y as groupedTableInventory, z as growJoinedGAInventory, A as isFullChartDoc, B as isGaUnitLabel, E as resolveTicketTierForSeat, F as ticketOptionNotApplicableIssue, H as ticketSelectionIssue, I as ticketTierAppliesToSeat, J as validGAInventorySegments } from '../../ticketRestrictions-DDQHiKF-.cjs';
1
+ import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-ZviQR7ch.cjs';
2
+ import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-BSjyHBDK.cjs';
3
+ export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-D_gpkfsq.cjs';
4
+ export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GABoxMode, b as GA_UNIT_LABEL_PREFIX, c as GroupedTableBookingMode, d as GroupedTableInventoryUnit, e as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, f as MAX_GA_CAPACITY, g as MAX_ONE_PARTY_GUESTS, N as NotForSaleSelectionIssue, O as ONE_PARTY_LIMIT_MESSAGE, R as RestrictionChartDoc, h as RestrictionSeat, T as TicketOptionApplicabilityIssue, i as TicketSelection, j as TicketSelectionIssue, k as TicketSelectionOptions, l as TicketTierResolution, m as applicableTicketTiers, n as companionSelectionIssue, o as eventInventoryLimitFor, p as gaAreasOf, q as gaBoxBounds, r as gaBoxMode, s as gaInventorySegments, t as gaUnitLabel, u as gaUnitLabels, v as gaUnitLabelsForModel, w as gaWheelchairPlaceCount, x as gaWheelchairUnitLabels, y as groupedTableInventory, z as growJoinedGAInventory, A as isFullChartDoc, B as isGaUnitLabel, E as resolveTicketTierForSeat, F as ticketOptionNotApplicableIssue, H as ticketSelectionIssue, I as ticketTierAppliesToSeat, J as validGAInventorySegments } from '../../ticketRestrictions-DKdJWh9u.cjs';
5
5
 
6
6
  /**
7
7
  * Best-available seat selection — a PURE, fully unit-testable ranking function.
@@ -1,7 +1,7 @@
1
- import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-DL7qIUrD.js';
2
- import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-CdJx5l3B.js';
3
- export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-hJxuFF9L.js';
4
- export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GABoxMode, b as GA_UNIT_LABEL_PREFIX, c as GroupedTableBookingMode, d as GroupedTableInventoryUnit, e as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, f as MAX_GA_CAPACITY, g as MAX_ONE_PARTY_GUESTS, N as NotForSaleSelectionIssue, O as ONE_PARTY_LIMIT_MESSAGE, R as RestrictionChartDoc, h as RestrictionSeat, T as TicketOptionApplicabilityIssue, i as TicketSelection, j as TicketSelectionIssue, k as TicketSelectionOptions, l as TicketTierResolution, m as applicableTicketTiers, n as companionSelectionIssue, o as eventInventoryLimitFor, p as gaAreasOf, q as gaBoxBounds, r as gaBoxMode, s as gaInventorySegments, t as gaUnitLabel, u as gaUnitLabels, v as gaUnitLabelsForModel, w as gaWheelchairPlaceCount, x as gaWheelchairUnitLabels, y as groupedTableInventory, z as growJoinedGAInventory, A as isFullChartDoc, B as isGaUnitLabel, E as resolveTicketTierForSeat, F as ticketOptionNotApplicableIssue, H as ticketSelectionIssue, I as ticketTierAppliesToSeat, J as validGAInventorySegments } from '../../ticketRestrictions-AU8UUmdL.js';
1
+ import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-ZviQR7ch.js';
2
+ import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-BurPZ2Io.js';
3
+ export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-i-mGCBD3.js';
4
+ export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GABoxMode, b as GA_UNIT_LABEL_PREFIX, c as GroupedTableBookingMode, d as GroupedTableInventoryUnit, e as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, f as MAX_GA_CAPACITY, g as MAX_ONE_PARTY_GUESTS, N as NotForSaleSelectionIssue, O as ONE_PARTY_LIMIT_MESSAGE, R as RestrictionChartDoc, h as RestrictionSeat, T as TicketOptionApplicabilityIssue, i as TicketSelection, j as TicketSelectionIssue, k as TicketSelectionOptions, l as TicketTierResolution, m as applicableTicketTiers, n as companionSelectionIssue, o as eventInventoryLimitFor, p as gaAreasOf, q as gaBoxBounds, r as gaBoxMode, s as gaInventorySegments, t as gaUnitLabel, u as gaUnitLabels, v as gaUnitLabelsForModel, w as gaWheelchairPlaceCount, x as gaWheelchairUnitLabels, y as groupedTableInventory, z as growJoinedGAInventory, A as isFullChartDoc, B as isGaUnitLabel, E as resolveTicketTierForSeat, F as ticketOptionNotApplicableIssue, H as ticketSelectionIssue, I as ticketTierAppliesToSeat, J as validGAInventorySegments } from '../../ticketRestrictions-DRDtAVKw.js';
5
5
 
6
6
  /**
7
7
  * Best-available seat selection — a PURE, fully unit-testable ranking function.
@@ -1 +1 @@
1
- import{a as D,b as Y,c as $,d as q,e as H,f as Q,g as U,h as V,i as Z,j as tt,k as nt,l as ot,m as et}from"../../chunk-ZS5YFXSE.js";import{a as ut,b as lt,c as pt,d as ft}from"../../chunk-254ABRJF.js";import{a as m}from"../../chunk-5N4H3KMR.js";import{a as rt,b as it,c as at,d as ct,e as st}from"../../chunk-4R6TXHY2.js";import"../../chunk-66T4EAUA.js";import"../../chunk-PHV2U54Y.js";import"../../chunk-JRZHC75P.js";import"../../chunk-UEDS3HJ3.js";import"../../chunk-TQN2VWQO.js";import"../../chunk-FOIYJ5NT.js";import{a as C,b as N,c as g,d as k,e as G,f as B,g as W,h as A,i as E,j as F,k as T,l as L,m as X,n as K,o as J,p as z}from"../../chunk-COECA63Q.js";import{Pa as f,d as _,e as v,f as I,g as j}from"../../chunk-EIV3CAGV.js";import"../../chunk-KTMZ3QAO.js";import"../../chunk-JBOTRSMY.js";import"../../chunk-CRCGO52K.js";var b=1,d=100;function w(t,n){if(!Number.isInteger(n)||n<b||n>d)return null;let e=t.rotation*Math.PI/180,i={x:Math.cos(e),y:Math.sin(e)},o={x:-i.y,y:i.x};return Array.from({length:n},(r,a)=>{let c=t.style==="intertwined"&&a%2===1?t.seatSpacing/2:0;return{type:"row",id:`__block_preview_${a}`,label:"",origin:{x:t.origin.x+o.x*a*t.rowGap+i.x*c,y:t.origin.y+o.y*a*t.rowGap+i.y*c},rotation:t.rotation,curve:t.curve,seatCount:t.seatsPerRow,seatSpacing:t.seatSpacing,categoryKey:"__preview__"}})}function x(t,n=t.rowCount){let e=w(t,n);return e?.length?f(e[e.length-1]):null}function xt(t,n){if(!Number.isFinite(n.x)||!Number.isFinite(n.y)||t.rowGap<=0)return null;let e=x(t,1);if(!e)return null;let i=t.rotation*Math.PI/180,o={x:-Math.sin(i),y:Math.cos(i)},r=(n.x-e.x)*o.x+(n.y-e.y)*o.y,a=Math.max(b,Math.min(d,Math.round(r/t.rowGap)+1)),c=x(t,a);return c?{rowCount:a,edgePoint:c}:null}function bt(t,n){return t.length!==n.rowCount?!1:[...t].sort((i,o)=>(i.rowBlockGeneration?.rowIndex??1/0)-(o.rowBlockGeneration?.rowIndex??1/0)).every((i,o)=>{let r=i.rowBlockGeneration;return r?.kind==="row-block-v1"&&r.groupId===n.groupId&&r.rowIndex===o&&r.signature===n.signature&&JSON.stringify(r)===JSON.stringify({...n,rowIndex:o})})}var s=1,u=300,y=330;function l(t){return t.seatCount>1?t.curve/(t.seatCount-1):0}function h(t,n){let e=t.rotation*Math.PI/180,i=l(t)*Math.PI/180,o,r;if(Math.abs(i)<1e-9)o=n*t.seatSpacing,r=0;else{let a=t.seatSpacing/(2*Math.sin(Math.abs(i)/2)),c=i*n;o=a*Math.sin(c),r=-a+a*Math.cos(c)}return{x:t.origin.x+o*Math.cos(e)-r*Math.sin(e),y:t.origin.y+o*Math.sin(e)+r*Math.cos(e)}}function M(t,n,e){let i=(t??[]).map(o=>({...o,index:o.index+n})).filter(o=>o.index>=0&&o.index<e);return i.length?i:void 0}function R(t,n){if(t.path||!Number.isInteger(n)||n<s||n>u)return null;let e=l(t);return{...t,seatCount:n,curve:e*(n-1)}}function O(t,n){if(t.path||!Number.isInteger(n)||n<s||n>u)return null;let e=l(t),i=t.seatCount-n,o=-i;return{...t,origin:h(t,i),rotation:m(t.rotation-e*i),seatCount:n,curve:e*(n-1),overrides:M(t.overrides,o,n)}}function P(t,n=t.seatCount){let e=R(t,n);return e?h(e,n-1):null}function S(t,n=t.seatCount){return O(t,n)?.origin??null}function ht(t,n){if(t.path||!Number.isFinite(n.x)||!Number.isFinite(n.y))return null;let e=l(t),i=Math.abs(e)<1e-9?u:Math.min(u,Math.floor(y/Math.abs(e))+1),o=null;for(let r=s;r<=Math.max(s,i);r+=1){let a=P(t,r);if(!a)continue;let c=Math.hypot(a.x-n.x,a.y-n.y),p=e*(r-1);(!o||c<o.distance||c===o.distance&&r<o.seatCount)&&(o={seatCount:r,curve:p,endpoint:a,distance:c})}return o}function wt(t,n){if(t.path||!Number.isFinite(n.x)||!Number.isFinite(n.y))return null;let e=l(t),i=Math.abs(e)<1e-9?u:Math.min(u,Math.floor(y/Math.abs(e))+1),o=null;for(let r=s;r<=Math.max(s,i);r+=1){let a=S(t,r);if(!a)continue;let c=Math.hypot(a.x-n.x,a.y-n.y),p=e*(r-1);(!o||c<o.distance||c===o.distance&&r<o.seatCount)&&(o={seatCount:r,curve:p,endpoint:a,distance:c})}return o}export{rt as CATEGORY_INVENTORY_FAMILIES,v as DEFAULT_EVENT_INVENTORY_LIMIT,C as GA_UNIT_LABEL_PREFIX,ot as GroupedTableProjectionError,I as LARGE_VENUE_INVENTORY_MODULE,y as MAX_DIRECT_ROW_SWEEP,_ as MAX_EVENT_INVENTORY,g as MAX_GA_CAPACITY,W as MAX_ONE_PARTY_GUESTS,d as MAX_ROW_BLOCK_ROWS,u as MAX_ROW_SEATS,b as MIN_ROW_BLOCK_ROWS,s as MIN_ROW_SEATS,A as ONE_PARTY_LIMIT_MESSAGE,H as applicableTicketTiers,Z as behindStageLabels,pt as capacityControl,lt as categoryCapacity,ut as chartCapacity,U as companionSelectionIssue,ct as describeCategoryInventoryConflict,it as effectiveSeatOwnerCategoryCounts,j as eventInventoryLimitFor,z as gaAreasOf,F as gaBoxBounds,E as gaBoxMode,B as gaInventorySegments,k as gaUnitLabel,T as gaUnitLabels,L as gaUnitLabelsForModel,X as gaWheelchairPlaceCount,K as gaWheelchairUnitLabels,et as groupedTableInventory,J as growJoinedGAInventory,at as inspectCategoryInventoryConflicts,bt as intactRowBlockMembers,Y as isFullChartDoc,N as isGaUnitLabel,tt as pickBestAvailable,nt as pickBestAvailableInventory,st as remediateCategoryInventoryConflicts,ft as resizeChartCapacity,xt as resolveRowBlockCount,wt as resolveRowStartCapacity,ht as resolveRowTerminalCapacity,Q as resolveTicketTierForSeat,x as rowBlockEdgePoint,w as rowBlockPreviewRows,S as rowStartEndpoint,P as rowTerminalEndpoint,O as rowWithStartCapacity,R as rowWithTerminalCapacity,D as strandedSingles,$ as ticketOptionNotApplicableIssue,V as ticketSelectionIssue,q as ticketTierAppliesToSeat,G as validGAInventorySegments};
1
+ import{a as D,b as Y,c as $,d as q,e as H,f as Q,g as U,h as V,i as Z,j as tt,k as nt,l as ot,m as et}from"../../chunk-2STEWCI2.js";import{a as ut,b as lt,c as pt,d as ft}from"../../chunk-UEYHH7Y5.js";import{a as m}from"../../chunk-TZBJCAXH.js";import{a as rt,b as it,c as at,d as ct,e as st}from"../../chunk-76AUT55N.js";import"../../chunk-B75VUM6L.js";import"../../chunk-RF4QU72N.js";import"../../chunk-33SRM2CP.js";import"../../chunk-TFYAMLCK.js";import"../../chunk-JRZHC75P.js";import"../../chunk-UEDS3HJ3.js";import{a as C,b as N,c as g,d as k,e as G,f as B,g as W,h as A,i as E,j as F,k as T,l as L,m as X,n as K,o as J,p as z}from"../../chunk-WH2EVBIG.js";import{_a as f,d as _,e as v,f as I,g as j}from"../../chunk-3W4ZMU4G.js";import"../../chunk-KTMZ3QAO.js";import"../../chunk-JBOTRSMY.js";import"../../chunk-CRCGO52K.js";var b=1,d=100;function w(t,n){if(!Number.isInteger(n)||n<b||n>d)return null;let e=t.rotation*Math.PI/180,i={x:Math.cos(e),y:Math.sin(e)},o={x:-i.y,y:i.x};return Array.from({length:n},(r,a)=>{let c=t.style==="intertwined"&&a%2===1?t.seatSpacing/2:0;return{type:"row",id:`__block_preview_${a}`,label:"",origin:{x:t.origin.x+o.x*a*t.rowGap+i.x*c,y:t.origin.y+o.y*a*t.rowGap+i.y*c},rotation:t.rotation,curve:t.curve,seatCount:t.seatsPerRow,seatSpacing:t.seatSpacing,categoryKey:"__preview__"}})}function x(t,n=t.rowCount){let e=w(t,n);return e?.length?f(e[e.length-1]):null}function xt(t,n){if(!Number.isFinite(n.x)||!Number.isFinite(n.y)||t.rowGap<=0)return null;let e=x(t,1);if(!e)return null;let i=t.rotation*Math.PI/180,o={x:-Math.sin(i),y:Math.cos(i)},r=(n.x-e.x)*o.x+(n.y-e.y)*o.y,a=Math.max(b,Math.min(d,Math.round(r/t.rowGap)+1)),c=x(t,a);return c?{rowCount:a,edgePoint:c}:null}function bt(t,n){return t.length!==n.rowCount?!1:[...t].sort((i,o)=>(i.rowBlockGeneration?.rowIndex??1/0)-(o.rowBlockGeneration?.rowIndex??1/0)).every((i,o)=>{let r=i.rowBlockGeneration;return r?.kind==="row-block-v1"&&r.groupId===n.groupId&&r.rowIndex===o&&r.signature===n.signature&&JSON.stringify(r)===JSON.stringify({...n,rowIndex:o})})}var s=1,u=300,y=330;function l(t){return t.seatCount>1?t.curve/(t.seatCount-1):0}function h(t,n){let e=t.rotation*Math.PI/180,i=l(t)*Math.PI/180,o,r;if(Math.abs(i)<1e-9)o=n*t.seatSpacing,r=0;else{let a=t.seatSpacing/(2*Math.sin(Math.abs(i)/2)),c=i*n;o=a*Math.sin(c),r=-a+a*Math.cos(c)}return{x:t.origin.x+o*Math.cos(e)-r*Math.sin(e),y:t.origin.y+o*Math.sin(e)+r*Math.cos(e)}}function M(t,n,e){let i=(t??[]).map(o=>({...o,index:o.index+n})).filter(o=>o.index>=0&&o.index<e);return i.length?i:void 0}function R(t,n){if(t.path||!Number.isInteger(n)||n<s||n>u)return null;let e=l(t);return{...t,seatCount:n,curve:e*(n-1)}}function O(t,n){if(t.path||!Number.isInteger(n)||n<s||n>u)return null;let e=l(t),i=t.seatCount-n,o=-i;return{...t,origin:h(t,i),rotation:m(t.rotation-e*i),seatCount:n,curve:e*(n-1),overrides:M(t.overrides,o,n)}}function P(t,n=t.seatCount){let e=R(t,n);return e?h(e,n-1):null}function S(t,n=t.seatCount){return O(t,n)?.origin??null}function ht(t,n){if(t.path||!Number.isFinite(n.x)||!Number.isFinite(n.y))return null;let e=l(t),i=Math.abs(e)<1e-9?u:Math.min(u,Math.floor(y/Math.abs(e))+1),o=null;for(let r=s;r<=Math.max(s,i);r+=1){let a=P(t,r);if(!a)continue;let c=Math.hypot(a.x-n.x,a.y-n.y),p=e*(r-1);(!o||c<o.distance||c===o.distance&&r<o.seatCount)&&(o={seatCount:r,curve:p,endpoint:a,distance:c})}return o}function wt(t,n){if(t.path||!Number.isFinite(n.x)||!Number.isFinite(n.y))return null;let e=l(t),i=Math.abs(e)<1e-9?u:Math.min(u,Math.floor(y/Math.abs(e))+1),o=null;for(let r=s;r<=Math.max(s,i);r+=1){let a=S(t,r);if(!a)continue;let c=Math.hypot(a.x-n.x,a.y-n.y),p=e*(r-1);(!o||c<o.distance||c===o.distance&&r<o.seatCount)&&(o={seatCount:r,curve:p,endpoint:a,distance:c})}return o}export{rt as CATEGORY_INVENTORY_FAMILIES,v as DEFAULT_EVENT_INVENTORY_LIMIT,C as GA_UNIT_LABEL_PREFIX,ot as GroupedTableProjectionError,I as LARGE_VENUE_INVENTORY_MODULE,y as MAX_DIRECT_ROW_SWEEP,_ as MAX_EVENT_INVENTORY,g as MAX_GA_CAPACITY,W as MAX_ONE_PARTY_GUESTS,d as MAX_ROW_BLOCK_ROWS,u as MAX_ROW_SEATS,b as MIN_ROW_BLOCK_ROWS,s as MIN_ROW_SEATS,A as ONE_PARTY_LIMIT_MESSAGE,H as applicableTicketTiers,Z as behindStageLabels,pt as capacityControl,lt as categoryCapacity,ut as chartCapacity,U as companionSelectionIssue,ct as describeCategoryInventoryConflict,it as effectiveSeatOwnerCategoryCounts,j as eventInventoryLimitFor,z as gaAreasOf,F as gaBoxBounds,E as gaBoxMode,B as gaInventorySegments,k as gaUnitLabel,T as gaUnitLabels,L as gaUnitLabelsForModel,X as gaWheelchairPlaceCount,K as gaWheelchairUnitLabels,et as groupedTableInventory,J as growJoinedGAInventory,at as inspectCategoryInventoryConflicts,bt as intactRowBlockMembers,Y as isFullChartDoc,N as isGaUnitLabel,tt as pickBestAvailable,nt as pickBestAvailableInventory,st as remediateCategoryInventoryConflicts,ft as resizeChartCapacity,xt as resolveRowBlockCount,wt as resolveRowStartCapacity,ht as resolveRowTerminalCapacity,Q as resolveTicketTierForSeat,x as rowBlockEdgePoint,w as rowBlockPreviewRows,S as rowStartEndpoint,P as rowTerminalEndpoint,O as rowWithStartCapacity,R as rowWithTerminalCapacity,D as strandedSingles,$ as ticketOptionNotApplicableIssue,V as ticketSelectionIssue,q as ticketTierAppliesToSeat,G as validGAInventorySegments};
@@ -1 +1 @@
1
- "use strict";var fe=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var Lt=Object.prototype.hasOwnProperty;var _t=(e,t)=>{for(var n in t)fe(e,n,{get:t[n],enumerable:!0})},Dt=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Tt(t))!Lt.call(e,o)&&o!==n&&fe(e,o,{get:()=>t[o],enumerable:!(r=Ot(t,o))||r.enumerable});return e};var jt=e=>Dt(fe({},"__esModule",{value:!0}),e);var Cr={};_t(Cr,{AUTOMATIC_ROUND_TABLE_RADIUS_MAX:()=>nt,AUTOMATIC_ROUND_TABLE_RADIUS_MIN:()=>tt,CHAIR_NUMBERING_DIRECTIONS:()=>Ke,CHAIR_NUMBERING_FORMATS:()=>Ye,CHAIR_NUMBERING_START_MAX:()=>xe,DEFAULT_SEAT_RADIUS:()=>Pt,FLOOR_STACK_GAP_RATIO:()=>Mt,FLOOR_STACK_MIN_SURFACE_PX:()=>rr,TABLE_SEAT_OFFSET:()=>U,TEXT_BACKGROUND_PADDING_MAX:()=>Br,TEXT_BACKGROUND_RADIUS_MAX:()=>Hr,TEXT_LETTER_SPACING_MAX:()=>Nr,TEXT_LETTER_SPACING_MIN:()=>jr,TEXT_LINE_HEIGHT_MAX:()=>Dr,TEXT_LINE_HEIGHT_MIN:()=>_r,TEXT_OPACITY_MIN:()=>Fr,TEXT_WIDTH_MAX:()=>Lr,TEXT_WIDTH_MIN:()=>Tr,aisleSeatIds:()=>Rt,allObjects:()=>xt,applyAffine:()=>ar,automaticRoundTableRadius:()=>In,buildAisleHoles:()=>Bt,buildSeatIndex:()=>br,buildSectionShell:()=>Ft,chairNumberingProblem:()=>tn,chartBounds:()=>J,combinedFloorZoneId:()=>Ee,compactChairNumbering:()=>nn,composeAffine:()=>cr,createPerspectiveCamera:()=>ir,cubicPoint:()=>te,decomposeAffineLinear:()=>ur,distanceToRings:()=>He,distributeAlongCubic:()=>me,expandBooth:()=>yt,expandChart:()=>$n,expandRow:()=>bt,expandRowSlots:()=>mt,expandTable:()=>pt,expandTableSlots:()=>Re,floorObjects:()=>zn,floorStackPlacements:()=>vt,floorsOf:()=>Y,gridStats:()=>gr,hitTest:()=>hr,initialFloorMode:()=>or,invertAffine:()=>sr,isAisleSeat:()=>vr,isRowAisleSeats:()=>W,layoutCombinedFloorPlan:()=>tr,layoutFloorStack:()=>er,mainFloorId:()=>nr,mergeRowAisleSeats:()=>Ir,nearestWithin:()=>pr,objectCenter:()=>Ae,owningSectionForObject:()=>gt,perspectiveTangentAffine:()=>lr,pointInPolygon:()=>ke,pointInPolygonWithHoles:()=>Z,polygonArea:()=>pe,polygonInscribedAnchor:()=>ye,polygonLabelPoint:()=>Kn,polygonNetArea:()=>Vt,projectPerspectivePoint:()=>ue,queryRect:()=>yr,resolveRowAisleSeats:()=>wr,resolveSegmentedRowGroups:()=>Q,rowInventoryCount:()=>Gn,rowSeatPositions:()=>ce,segmentedRowComponentSeats:()=>Yt,segmentedRowComponents:()=>Kt,segmentedRowSeatTotal:()=>zt,smoothCubicThroughMiddle:()=>Nt,splitRowAisleSeats:()=>Pr,stackFloors:()=>Wn,tableChairBookingLabel:()=>Se,tableChairDisplayLabel:()=>Me,tableChairToken:()=>ze,tableInventoryCount:()=>Vn,tableSeatCountsBySide:()=>ht,textLayoutMetrics:()=>be,translateObject:()=>le,usableHoles:()=>z});module.exports=jt(Cr);var Rr=Math.PI/180;function H(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function N(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function te(e,t){let n=1-t,r=n*n*n,o=3*n*n*t,i=3*n*t*t,a=t*t*t;return{x:r*e.start.x+o*e.control1.x+i*e.control2.x+a*e.end.x,y:r*e.start.y+o*e.control1.y+i*e.control2.y+a*e.end.y}}function Nt(e,t,n){let r={x:(e.x+t.x)/2,y:(e.y+t.y)/2},o={x:(n.x-r.x)*4/3,y:(n.y-r.y)*4/3};return{start:{...e},control1:{x:e.x+(t.x-e.x)/3+o.x,y:e.y+(t.y-e.y)/3+o.y},control2:{x:e.x+(t.x-e.x)*2/3+o.x,y:e.y+(t.y-e.y)*2/3+o.y},end:{...t}}}function me(e,t,n=192){if(!Number.isInteger(t)||t<1)throw new Error("Path point count must be a positive integer");if(t===1)return[te(e,.5)];let r=Array.from({length:n+1},(d,s)=>te(e,s/n)),o=new Float64Array(r.length);for(let d=1;d<r.length;d+=1){let s=r[d].x-r[d-1].x,c=r[d].y-r[d-1].y;o[d]=o[d-1]+Math.hypot(s,c)}let i=o[o.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let a=[],l=1;for(let d=0;d<t;d+=1){let s=i*d/(t-1);for(;l<o.length-1&&o[l]<s;)l+=1;let c=o[l-1],u=o[l],h=u===c?0:(s-c)/(u-c);a.push({x:r[l-1].x+(r[l].x-r[l-1].x)*h,y:r[l-1].y+(r[l].y-r[l-1].y)*h})}return a}function T(e,t){return{x:e.x+t.x,y:e.y+t.y}}function $(e,t){return{x:e.x-t.x,y:e.y-t.y}}function L(e,t){return{x:e.x*t,y:e.y*t}}function ne(e,t=13){return Array.from({length:t},(n,r)=>te(e,r/(t-1)))}function _e(e,t){let n=Math.max(0,Math.min(1,t))*(e.length-1),r=Math.min(e.length-2,Math.floor(n));return N(e[r],e[r+1],n-r)}function De(e,t,n){let r=Math.max(0,Math.min(1,t)),o=Math.max(r,Math.min(1,n)),i=[_e(e,r)];for(let a=1;a<e.length-1;a+=1){let l=a/(e.length-1);l>r+1e-9&&l<o-1e-9&&i.push(e[a])}return i.push(_e(e,o)),i}function je(e,t){let n=[[0,1],[1,2],[2,3],[3,0]],r=0,o=Number.POSITIVE_INFINITY;n.forEach(([h,p],y)=>{let b=H(N(e[h],e[p],.5),t);b<o&&(o=b,r=y)});let i=e[r],a=e[(r+1)%4],l=e[(r+2)%4],d=e[(r+3)%4],s=N(i,a,.5),c=$(t,s),u=Math.max(1e-9,Math.hypot(c.x,c.y));return{p0:i,p1:a,p2:l,p3:d,normal:L(c,1/u),depth:(H(i,d)+H(a,l))/2}}function Ne(e){let{p0:t,p1:n,p2:r,p3:o,normal:i,depth:a}=e,l=$(n,t),d=$(r,o),s=a*.22,c=a*.12;return{nearPath:{start:t,control1:T(T(t,L(l,1/3)),L(i,s)),control2:T(T(t,L(l,2/3)),L(i,s)),end:n},farPath:{start:r,control1:T(T(o,L(d,2/3)),L(i,c)),control2:T(T(o,L(d,1/3)),L(i,c)),end:o}}}function Ft(e,t,n){if(e.length!==4)throw new Error("A section shell requires four mapped bounds corners");let r=e.reduce((y,b)=>T(y,b),{x:0,y:0});r.x/=4,r.y/=4;let o=H(e[0],e[1]),i=H(e[0],e[3]),a=n==="auto"?o>i*1.25&&H(r,t)>i?"bezier":"tapered":n;if(a==="rectangle")return{mode:a,outline:e.map(y=>({...y}))};let l=je(e,t),{p0:d,p1:s,p2:c,p3:u}=l;if(a==="tapered")return{mode:a,outline:[T(d,L($(s,d),.14)),T(d,L($(s,d),1-.14)),c,u]};let{nearPath:h,farPath:p}=Ne(l);return{mode:a,outline:[...ne(h),...ne(p).slice(1)]}}function Bt(e,t,n,r){if(e.length!==4)throw new Error("Aisle generation requires four mapped bounds corners");if(!Number.isInteger(n)||n<0||n>3)throw new Error("Aisle count must be an integer from 0 to 3");if(n===0)return[];let o=je(e,t),{p0:i,p1:a,p2:l,p3:d}=o,s=r==="bezier"?Ne(o):null,c=s?ne(s.nearPath):null,u=s?ne(s.farPath).reverse():null,h=Math.min(.055,.18/(n+1));return Array.from({length:n},(p,y)=>{let b=(y+1)/(n+1),x=b-h/2,w=b+h/2;return c&&u?[...De(c,x,w),...De(u,x,w).reverse()]:[N(i,a,x),N(i,a,w),N(d,l,w),N(d,l,x)]})}var Tr=40,Lr=1200,_r=.8,Dr=3,jr=-2,Nr=20,Fr=.1,Br=40,Hr=40,Fe=e=>Math.max(1,e.fontSize*.6+(e.letterSpacing??0));function Ht(e,t){let n=e.text.split(/\r?\n/);if(!e.width)return Math.max(1,n.length);let r=Math.max(1,Math.floor(t/Fe(e))),o=0;for(let i of n){if(!i.length){o+=1;continue}let a=0;for(let l of i.split(/\s+/)){let d=l.length;a&&a+1+d<=r?a+=1+d:(o+=Math.max(1,Math.ceil(d/r)),a=d%r)}}return Math.max(1,o)}function be(e){let t=e.background?.padding??0,n=e.text.split(/\r?\n/),r=Math.max(1,...n.map(l=>l.length))*Fe(e),o=e.width??r+t*2,i=Math.max(1,o-t*2),a=Ht(e,i);return{width:o,height:a*e.fontSize*(e.lineHeight??1.2)+t*2,lineCount:a,padding:t}}function Ut(e,t,n){let r=n.x-t.x,o=n.y-t.y,i=r*r+o*o,a=i?Math.max(0,Math.min(1,((e.x-t.x)*r+(e.y-t.y)*o)/i)):0;return Math.hypot(e.x-(t.x+a*r),e.y-(t.y+a*o))}function He(e,t){let n=1/0;for(let r of t)if(!(r.length<2))for(let o=0,i=r.length-1;o<r.length;i=o++){let a=Ut(e,r[i],r[o]);a<n&&(n=a)}return n}function Be(e,t){let n=!1;for(let r=0,o=t.length-1;r<t.length;o=r++){let i=t[r].x,a=t[r].y,l=t[o].x,d=t[o].y;a>e.y!=d>e.y&&e.x<(l-i)*(e.y-a)/(d-a)+i&&(n=!n)}return n}function Ue(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function Gt(e,t,n){let r=Be(e,t)&&!n.some(i=>Be(e,i)),o=He(e,[t,...n]);return r?o:-o}function V(e,t,n,r,o){let i=Gt({x:e,y:t},r,o);return{x:e,y:t,h:n,d:i,max:i+n*Math.SQRT2}}var he=class{constructor(){this.items=[]}get size(){return this.items.length}push(t){let n=this.items;n.push(t);let r=n.length-1;for(;r>0;){let o=r-1>>1;if(n[o].max>=n[r].max)break;[n[o],n[r]]=[n[r],n[o]],r=o}}pop(){let t=this.items,n=t[0],r=t.pop();if(t.length&&r){t[0]=r;let o=0;for(;;){let i=o*2+1,a=i+1,l=o;if(i<t.length&&t[i].max>t[l].max&&(l=i),a<t.length&&t[a].max>t[l].max&&(l=a),l===o)break;[t[l],t[o]]=[t[o],t[l]],o=l}}return n}};function pe(e){if(e.length<3)return 0;let t=0;for(let n=0,r=e.length-1;n<e.length;r=n++)t+=(e[r].x+e[n].x)*(e[r].y-e[n].y);return Math.abs(t)/2}function Vt(e,t){return Math.max(0,pe(e)-Ue(t).reduce((n,r)=>n+pe(r),0))}function ye(e,t){let n=Ue(t);if(!e.length)return{point:{x:0,y:0},radius:0};if(e.length<3){let b=e.reduce((w,I)=>w+I.x,0)/e.length,x=e.reduce((w,I)=>w+I.y,0)/e.length;return{point:{x:b,y:x},radius:0}}let r=1/0,o=1/0,i=-1/0,a=-1/0;for(let b of e)b.x<r&&(r=b.x),b.y<o&&(o=b.y),b.x>i&&(i=b.x),b.y>a&&(a=b.y);let l=i-r,d=a-o,s=Math.min(l,d);if(!(s>0))return{point:{x:(r+i)/2,y:(o+a)/2},radius:0};let c=Math.max(l,d)/150,u=new he,h=s/2;for(let b=r;b<i;b+=s)for(let x=o;x<a;x+=s)u.push(V(b+h,x+h,h,e,n));let p=V(r+l/2,o+d/2,0,e,n),y=0;for(;u.size;){let b=u.pop();if(!b)break;b.d>p.d&&(p=b),!(b.max-p.d<=c)&&(y>=4e3||(y+=1,h=b.h/2,u.push(V(b.x-h,b.y-h,h,e,n)),u.push(V(b.x+h,b.y-h,h,e,n)),u.push(V(b.x-h,b.y+h,h,e,n)),u.push(V(b.x+h,b.y+h,h,e,n))))}return{point:{x:p.x,y:p.y},radius:Math.max(0,p.d)}}function re(e,t,n){return Math.max(t,Math.min(n,e))}function j(e,t,n){return e<t?t:e>n?n:e}var Xr=Math.PI*2;function Ge(e,t,n){return Xt(e,o=>({x:o.x+t,y:o.y+n}))}function Xt(e,t,n=1,r=!1){return{...e,start:t(e.start),segments:e.segments.map(o=>o.kind==="line"?{...o,end:t(o.end)}:o.kind==="arc"?{...o,center:t(o.center),radius:o.radius*Math.abs(n),clockwise:r?!o.clockwise:o.clockwise,end:t(o.end)}:{...o,control1:t(o.control1),control2:t(o.control2),end:t(o.end)})}}var Kr=4/3;function Kt(e,t,n){let r=[];for(let o=0;o<e.length-1;o+=1){let i=e[o],a=e[o+1],l=Math.hypot(a.x-i.x,a.y-i.y);if(l<=0)continue;let d=Math.max(1,Math.round(l/n)),s=l/d,c=Math.atan2(a.y-i.y,a.x-i.x),u=o===0,p=(o>0?t[o-1]:void 0)==="break"?2:1,y=u?{...i}:{x:i.x+Math.cos(c)*s*p,y:i.y+Math.sin(c)*s*p},b=u?d+1:Math.max(1,d-(p-1));r.push({origin:y,rotation:c*180/Math.PI,seatCount:b,seatSpacing:s})}return r}function Yt(e){let t=e.rotation*Math.PI/180,n={x:Math.cos(t),y:Math.sin(t)};return Array.from({length:e.seatCount},(r,o)=>({x:e.origin.x+n.x*o*e.seatSpacing,y:e.origin.y+n.y*o*e.seatSpacing}))}function zt(e){return e.reduce((t,n)=>t+n.seatCount,0)}function Q(e){let t=new Map,n=new Map;for(let r of e){if(r.type!=="row"||!r.segmentedRow)continue;let o=n.get(r.segmentedRow.groupId)??[];o.push(r),n.set(r.segmentedRow.groupId,o)}for(let[r,o]of n){let i=o.slice().sort((h,p)=>h.segmentedRow.componentIndex-p.segmentedRow.componentIndex),a=i[0]?.segmentedRow?.componentCount??0,l=i[0]?.segmentedRow;if(!l||!(a>=2&&i.length===a&&l?.boundaryBefore==="start"&&i.every((h,p)=>h.segmentedRow?.kind==="segmented-row-v1"&&h.segmentedRow.groupId===r&&h.segmentedRow.componentCount===a&&h.segmentedRow.componentIndex===p&&h.segmentedRow.repeatLabelOnComponents===l.repeatLabelOnComponents&&(p===0?h.segmentedRow.boundaryBefore==="start":h.segmentedRow.boundaryBefore!=="start")&&h.segmentedRow.displayLabel===l.displayLabel)))continue;let s=i.reduce((h,p)=>h+p.seatCount,0),c=0,u=0;for(let h of i)h.segmentedRow.boundaryBefore==="break"&&(c+=1),t.set(h.id,{groupId:r,adjacencyOffset:c,displayOffset:u,displayLabel:l.displayLabel,totalSeats:s,canonical:i[0],viewFromSeatUrl:l.viewFromSeatUrl,viewFromSeatMeta:l.viewFromSeatMeta,confidenceEvidence:l.confidenceEvidence}),c+=h.seatCount,u+=h.seatCount}return t}var Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var $t="abcdefghijklmnopqrstuvwxyz";function Qt(e,t){let n=t.length,r=e+1,o="";for(;r>0;){r-=1;let i=r%n;o=t[i]+o,r=Math.floor(r/n)}return o}function q(e,t=!1){let n=t?$t:Wt;return Qt(Math.max(0,Math.floor(e)-1),n)}var qt=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function Ve(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[r,o]of qt)for(;t>=r;)n+=o,t-=r;return n}function Zt(e){let t=new Array(e);return Array.from({length:e},(n,r)=>r).sort((n,r)=>Math.abs(2*n-(e-1))-Math.abs(2*r-(e-1))||n-r).forEach((n,r)=>t[n]=r),t}function oe(e,t){let n=e.seatLabelStart??1,r=e.seatNumbering?.direction??"ltr",o=e.seatNumbering?.step??1,i=e.seatNumbering?.scheme??"decimal",a=e.seatNumbering?.prefix??"",l=e.seatNumbering?.endAt,d=e.seatCount;if(i==="updown"||i==="updown-descending"){let p=Math.ceil(d/2),y=i==="updown"?t<p?n+2*t:n-1+2*(d-t):t<p?n+2*(p-1-t):n+1+2*(t-p);return`${a}${y}`}let s=i==="odd"||i==="even"?2:o,c=l!=null&&Number.isFinite(l)?l-(d-1)*s:n,u=r==="center"?Zt(d)[t]:r==="rtl"?d-1-t:t,h;switch(i){case"odd":{let p=c%2===1?c:c+1;h=String(p+u*2);break}case"even":{let p=c%2===0?c:c+1;h=String(p+u*2);break}case"roman":h=Ve(c+u*o);break;case"letters-upper":h=q(c+u*o,!1);break;case"letters-lower":h=q(c+u*o,!0);break;default:h=String(c+u*o);break}return`${a}${h}`}function Jt(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function Xe(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${oe(e,t)}`}function ge(e,t,n,r){if(r?.displayLabel)return r.displayLabel;if(e.seatDisplayLabelMode==="number")return oe(e,t);if(!n)return`${e.displayLabel||e.label}-${oe(e,t)}`;let o=Jt(n),i=n.displayOffset+t;return`${n.displayLabel}-${oe(o,i)}`}var xe=999,Ke=["clockwise","anticlockwise"],Ye=["table-number","number","letter"];function Se(e,t){return`${e.label}-${t+1}`}function en(e,t,n){return e?.direction==="anticlockwise"?Math.max(0,t-1-n):n}function ze(e,t){let n=e.chairNumbering,r=n?.start??1,o=en(n,Math.max(0,Math.round(e.seatCount)),t);return n?.format==="letter"?q(Math.max(1,r)+o):String(r+o)}function Me(e,t){let n=ze(e,t);return(e.chairNumbering?.format??"table-number")==="table-number"?`${e.displayLabel??e.label}-${n}`:n}function tn(e){if(e===void 0)return null;if(!e||typeof e!="object"||Array.isArray(e))return"chairNumbering must be an object";let t=e,n=Object.keys(t).filter(r=>!["start","direction","format"].includes(r));return n.length?`chairNumbering has unsupported field(s): ${n.join(", ")}`:t.start!==void 0&&(!Number.isInteger(t.start)||t.start<0||t.start>xe)?`chairNumbering.start must be a whole number from 0 to ${xe}`:t.direction!==void 0&&!Ke.includes(t.direction)?"chairNumbering.direction must be clockwise or anticlockwise":t.format!==void 0&&!Ye.includes(t.format)?"chairNumbering.format must be table-number, number or letter":null}function nn(e){let t={};return e.start!==void 0&&e.start!==1&&(t.start=e.start),e.direction==="anticlockwise"&&(t.direction="anticlockwise"),e.format&&e.format!=="table-number"&&(t.format=e.format),Object.keys(t).length?t:void 0}var X=.02291666666666667,Jr=1/X,rn=58,on=rn*X;var an=3,We=0,we=120,sn=0,cn=45,ln=7,K=1.2;function ve(e,t,n,r){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):r}function un(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=ln?e:an}function $e(e,t={}){let n=ve(t.floorBaseHeightM,We,we,0),r=Math.min(we,n+un(e.elevation)*on),o=e.height===void 0?r:ve(e.height,We,we,r),i=ve(e.rake,sn,cn,0);return{height:o,rake:i}}function Qe(e){let t=e.length;return t<=3?[...e]:[e[Math.floor(t*.25)],e[Math.floor(t*.5)],e[Math.floor(t*.75)]]}function qe(e,t,n){if(!e.length)return 1/0;if(e.length===1)return Math.hypot(t-e[0].x,n-e[0].y);let r=1/0;for(let o=0;o+1<e.length;o++){let i=e[o],a=e[o+1],l=a.x-i.x,d=a.y-i.y,s=l*l+d*d,c=s>1e-12?((t-i.x)*l+(n-i.y)*d)/s:0;c<0?c=0:c>1&&(c=1);let u=t-(i.x+c*l),h=n-(i.y+c*d);if(Math.abs(u)>=r||Math.abs(h)>=r)continue;let p=Math.hypot(u,h);p<r&&(r=p)}return r}function dn(e){let t=0,n=0;for(let i of e)t+=i.x,n+=i.y;let r=e.length||1;t/=r,n/=r;let o=0;for(let i of e){let a=Math.hypot(i.x-t,i.y-n);a>o&&(o=a)}return{cx:t,cy:n,r:o}}function Ze(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function Pe(e,t){let n=1/0;for(let r of Qe(e)){let o=qe(t,r.x,r.y);o<n&&(n=o)}for(let r of Qe(t)){let o=qe(e,r.x,r.y);o<n&&(n=o)}return n}function fn(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,r=0;for(let c of e)n+=c.x,r+=c.y;n/=e.length,r/=e.length;let o=-1,i=e[0];for(let c of e){let u=Math.hypot(c.x-n,c.y-r);u>o&&(o=u,i=c)}let a=i.x-n,l=i.y-r,d=Math.hypot(a,l);d>1e-9?(a/=d,l/=d):(a=1,l=0);let s=e.map((c,u)=>({p:c,i:u,t:(c.x-n)*a+(c.y-r)*l})).sort((c,u)=>c.t-u.t);return{pts:s.map(c=>c.p),seatIndices:s.map(c=>t[c.i])}}function mn(e){let t=e.length;if(t<3)return null;let n=0,r=0;for(let I of e)n+=I.x,r+=I.y;n/=t,r/=t;let o=0,i=0,a=0,l=0,d=0,s=0,c=0;for(let I of e){let R=I.x-n,k=I.y-r;o+=R*R,a+=k*k,i+=R*k,l+=R*R*R,d+=k*k*k,s+=R*k*k,c+=k*R*R}let u=o*a-i*i;if(Math.abs(u)<1e-9)return null;let h=(l+s)/2,p=(d+c)/2,y=(h*a-p*i)/u,b=(p*o-h*i)/u,x=y+n,w=b+r;return!Number.isFinite(x)||!Number.isFinite(w)?null:{cx:x,cy:w}}var bn=.15;function hn(e){if(e.length<2)return null;let t=e.map(S=>{let f=0,m=0;for(let M of S.pts)f+=M.x,m+=M.y;return{x:f/S.pts.length,y:m/S.pts.length}}),n=0,r=0;for(let S of t)n+=S.x,r+=S.y;n/=t.length,r/=t.length;let o=0,i=0,a=0;for(let S of t){let f=S.x-n,m=S.y-r;o+=f*f,i+=f*m,a+=m*m}let l=o+a,d=o*a-i*i,s=l/2+Math.sqrt(Math.max(0,l*l/4-d)),c,u;Math.abs(i)>1e-12?(c=s-a,u=i):o>=a?(c=1,u=0):(c=0,u=1);let h=Math.hypot(c,u);if(!(h>1e-12))return null;c/=h,u/=h;let p=0,y=0,b=0;for(let S of e){if(S.pts.length<2)continue;let f=S.pts[0],m=S.pts[S.pts.length-1],M=m.x-f.x,g=m.y-f.y,P=Math.hypot(M,g);if(!(P>1e-9))continue;let O=M/P,v=g/P;p+=(O*O-v*v)*P,y+=2*O*v*P,b+=P}if(b>0&&Math.hypot(p,y)>=yn*b){let S=Math.atan2(y,p)/2,f=Math.cos(S),m=Math.sin(S);Math.abs(c*f+u*m)>gn&&(c=-m,u=f)}let x=1/0,w=-1/0,I=[];for(let S of e){let f=1/0,m=-1/0;for(let M of S.pts){let g=M.x*c+M.y*u;g<f&&(f=g),g>m&&(m=g),g<x&&(x=g),g>w&&(w=g)}I.push(m-f)}let R=w-x;return R>1e-9?(I.sort((S,f)=>S-f),I[Math.min(I.length-1,Math.floor(I.length*.9))]/R<=pn?{x:c,y:u}:null):null}var pn=.35,yn=.8,gn=.7;function Je(e,t,n,r){let o=new Map;for(let f of n){let m=t[f],M=m.rowId||`__seat-${f}`,g=o.get(M);g||(g={pts:[],idx:[]},o.set(M,g)),g.pts.push({x:m.x,y:m.y}),g.idx.push(f)}if(!o.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[f,m]of o){let M=fn(m.pts,m.idx),g=0;for(let P of M.pts)g+=Math.hypot(P.x-r.x,P.y-r.y);i.push({id:f,pts:M.pts,seatIndices:M.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:g/M.pts.length})}let a=i.map(f=>dn(f.pts)),l=i.length<=256?i.length*(i.length-1)/2:0,d=l?new Float64Array(l):null;d?.fill(Number.NaN);let s=d?new Map(i.map((f,m)=>[f,m])):null,c=(f,m)=>(f>m&&([f,m]=[m,f]),f*(2*i.length-f-1)/2+(m-f-1)),u=(f,m)=>{if(!d)return Pe(i[f].pts,i[m].pts);let M=c(f,m),g=d[M];if(!Number.isNaN(g))return g;let P=Pe(i[f].pts,i[m].pts);return d[M]=P,P},h=(f,m)=>s?u(s.get(f),s.get(m)):Pe(f.pts,m.pts),p=[];for(let f=0;f<i.length;f++){let m=1/0;for(let M=0;M<i.length;M++){if(f===M||Ze(a[f],a[M])>=m)continue;let g=u(f,M);g<m&&(m=g)}Number.isFinite(m)&&p.push(m)}p.sort((f,m)=>f-m);let y=p.length?p[Math.floor(p.length/2)]:1,b=Math.max(y*1.8,1e-6),x=i.map(()=>[]);for(let f=0;f<i.length;f++)for(let m=f+1;m<i.length;m++)Ze(a[f],a[m])>b||u(f,m)<=b&&(x[f].push(m),x[m].push(f));let w=0;for(let f=0;f<i.length;f++){if(i[f].blockId!==-1)continue;let m=w++,M=[f];for(i[f].blockId=m;M.length;){let g=M.pop();for(let P of x[g])i[P].blockId===-1&&(i[P].blockId=m,M.push(P))}}let I=new Map;for(let f of i){let m=I.get(f.blockId)??[];m.push(f),I.set(f.blockId,m)}let R=[];for(let f of i){if(f.pts.length<4)continue;let m=mn(f.pts);m&&(!Number.isFinite(m.cx)||!Number.isFinite(m.cy)||R.push({x:m.cx,y:m.cy}))}let k=R.length>=2?(()=>{let f=R.map(g=>g.x).sort((g,P)=>g-P),m=R.map(g=>g.y).sort((g,P)=>g-P),M=Math.floor(R.length/2);return{cx:f[M],cy:m[M]}})():null;if(k){let f=v=>Math.hypot(v.x-k.cx,v.y-k.cy),m=1/0,M=-1/0,g=[];for(let v of i){let C=1/0,A=-1/0;for(let _ of v.pts){let F=f(_);F<C&&(C=F),F>A&&(A=F)}g.push(A-C),C<m&&(m=C),A>M&&(M=A)}let P=M-m;g.sort((v,C)=>v-C);let O=g[Math.min(g.length-1,Math.floor(g.length*.9))];if(P>1e-9&&O/P<=bn){let v=i.map(E=>{let ee=0;for(let Et of E.pts)ee+=f(Et);return{row:E,radius:ee/E.pts.length}}),C=0,A=0;for(let E of v)C+=E.radius,A+=E.row.focalDistance;C/=v.length,A/=v.length;let _=0;for(let E of v)_+=(E.radius-C)*(E.row.focalDistance-A);if(_<0)for(let E of v)E.radius=-E.radius;let B=1/0;for(let E of v)E.radius<B&&(B=E.radius);v.sort((E,ee)=>E.radius-ee.radius);let D=-1,G=-1/0,At=P/Math.max(1,v.length)*.5,Le=[];for(let E of v)E.radius-G>At&&(D++,G=E.radius),E.row.ordinal=D,E.row.blockDepth=E.radius-B,Le.push(E.row);return{sectionId:e,rows:Le,blockCount:w}}}let S=[];for(let[,f]of I){let m=hn(f);if(m){let M=v=>{let C=0;for(let A of v.pts)C+=A.x*m.x+A.y*m.y;return C/v.pts.length};f.sort((v,C)=>M(v)-M(C)),f.length>=2&&f[0].focalDistance>f[f.length-1].focalDistance&&f.reverse();let g=[],P=y*.5;for(let v of f){let C=g[g.length-1];C&&Math.abs(M(v)-M(C[0]))<P?C.push(v):g.push([v])}let O=0;for(let v=0;v<g.length;v++){if(v>0){let C=1/0;for(let A of g[v-1])for(let _ of g[v])C=Math.min(C,h(A,_));O+=C}for(let C of g[v])C.ordinal=v,C.blockDepth=O,S.push(C)}}else{let M=1/0;for(let g of f)g.focalDistance<M&&(M=g.focalDistance);f.sort((g,P)=>g.focalDistance-P.focalDistance);for(let g=0;g<f.length;g++)f[g].ordinal=g,f[g].blockDepth=Math.max(0,f[g].focalDistance-M),S.push(f[g])}}return{sectionId:e,rows:S,blockCount:w}}var xn=/^\d{4}-\d{2}-\d{2}$/;function Sn(e){let t=Date.parse(e);return Number.isFinite(t)?xn.test(e)?t+864e5:t:null}function Mn(e,t=Date.now()){if(e.validUntil===void 0){if(e.status!=="approved")return!0;let r=e.assessedAt?Date.parse(e.assessedAt):Number.NaN;return Number.isFinite(r)&&(t instanceof Date?t.getTime():t)<=r+366*864e5}let n=Sn(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function wn(e,t,n){return!(e.eventConfigurationId&&e.eventConfigurationId!==t||e.eventConfigurationVersion!==void 0&&e.eventConfigurationVersion!==n)}function vn(e){return e.status!=="draft"&&e.status!=="retracted"}function Pn(e,t){return e.status===void 0?t===void 0:e.status!=="approved"?!0:typeof t=="string"&&typeof e.basisSha256=="string"&&e.basisSha256===t}function et(e,t={}){return!!e&&vn(e)&&wn(e,t.activeConfigurationId,t.activeConfigurationVersion)&&Pn(e,t.activeBasisSha256)&&Mn(e,t.now)}var tt=36,nt=160;function In(e,t=360){let n=re(Math.round(Number.isFinite(e)?e:1),1,40),r=re(Number.isFinite(t)?t:360,120,360);return Math.round(re(n*4*(360/r),tt,nt))}var Cn=new Set(["pitch-football","rink-hockey","track-athletics","oval-cricket","pitch-rugby","diamond-baseball","court-basketball","court-tennis","ring-boxing"]);function kn(e){return!!e&&Cn.has(e)}var rt=1.1;var io=Math.PI*2;var ao=(()=>{let t={x:0,y:52},n=25,r={x:70,y:t.y-70},o=(r.x*r.x+r.y*r.y-4900)/(2*(r.y+70)),i=o+70,a=[],l=Math.atan2(r.y-o,r.x),d=Math.atan2(r.y-o,-r.x);for(let s=0;s<=24;s++){let c=l+(d-l)*s/24;a.push({x:i*Math.cos(c),y:o+i*Math.sin(c)})}return{half:70,home:t,backstop:n,fence:a}})();function ot(e){return kn(e)}function Rn(e){if((e.kind==="polygon"||e.kind==="polyline"||e.kind==="line")&&e.points&&e.points.length>=2)return e.points;if(e.x==null||e.y==null||e.width==null||e.height==null)return null;let t=e.x,n=e.y,r=e.width,o=e.height;return[{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+o},{x:t,y:n+o}]}function An(e,t,n){let r=n*Math.PI/180,o=Math.cos(r),i=Math.sin(r),a=e.x-t.x,l=e.y-t.y;return{x:t.x+a*o-l*i,y:t.y+a*i+l*o}}function it(e){let t=Rn(e);if(!t||t.length<2)return null;let n=e.rotation??0,r=Math.abs(n)<1e-6?t:t.map(d=>An(d,{x:t.reduce((s,c)=>s+c.x,0)/t.length,y:t.reduce((s,c)=>s+c.y,0)/t.length},n)),o=1/0,i=1/0,a=-1/0,l=-1/0;for(let d of r)o=Math.min(o,d.x),i=Math.min(i,d.y),a=Math.max(a,d.x),l=Math.max(l,d.y);return!Number.isFinite(o)||a-o<1e-6||l-i<1e-6?null:{minX:o,minY:i,maxX:a,maxY:l}}var En=5,On=3,Tn=.92,Ln=1.9,_n=2,Dn=.6,jn=1,Nn=.06;function Fn(e){return e.heightM!==void 0?e.heightM:e.stageKind==="ring-boxing"?rt:ot(e.stageKind)?Nn:jn}function at(e){let t=1/0,n=1/0,r=-1/0,o=-1/0,i=-1/0;for(let a of Y(e)){let l=a.baseHeightM??0;for(let d of a.objects){if(d.type!=="shape"||d.role!=="stage")continue;let s=it(d);s&&(t=Math.min(t,s.minX),n=Math.min(n,s.minY),r=Math.max(r,s.maxX),o=Math.max(o,s.maxY),i=Math.max(i,l+Fn(d)))}}return!Number.isFinite(t)||!Number.isFinite(i)?null:{minX:t,minY:n,maxX:r,maxY:o,deckTopM:i}}function Bn(e,t,n,r){let o=1/0,i=1/0,a=-1/0,l=-1/0;for(let p of e)Number.isFinite(p.eyeHeightM)&&(o=Math.min(o,p.x),a=Math.max(a,p.x),i=Math.min(i,p.y),l=Math.max(l,p.y));if(!Number.isFinite(o))return null;let d=o*t,s=i*t,c=Math.max(1,Math.ceil((a-o)*t/n)+1),u=Math.max(1,Math.ceil((l-i)*t/n)+1),h=new Float64Array(c*u).fill(-1/0);for(let p of e){if(!Number.isFinite(p.eyeHeightM))continue;let y=p.eyeHeightM-K,b=Math.min(c-1,Math.max(0,Math.floor((p.x*t-d)/n))),w=Math.min(u-1,Math.max(0,Math.floor((p.y*t-s)/n)))*c+b,I=y+r;I>h[w]&&(h[w]=I)}return{cellM:n,minX:d,minY:s,cols:c,rows:u,top:h}}function Hn(e,t,n){let r=Math.floor((t-e.minX)/e.cellM),o=Math.floor((n-e.minY)/e.cellM);return r<0||o<0||r>=e.cols||o>=e.rows?-1/0:e.top[o*e.cols+r]}function st(e,t,n={}){let r=new Map;if(!t||!e.length)return r;let o=n.metresPerChartUnit??X,i=n.cellM??Dn,a=n.chairBackM??Tn,l=n.selfRowSkipM??_n,d=n.clearThreshold??.9,s=n.partialThreshold??.25,c=Math.max(1,n.columns??En),u=Math.max(1,n.rows??On),h=Bn(e,o,i,a);if(!h)return r;let p=(t.maxX-t.minX)*o,y=(t.maxY-t.minY)*o,b=p>=y,x=(t.minX+t.maxX)/2*o,w=(t.minY+t.maxY)/2*o,I=[];for(let k=0;k<c;k++){let S=(k+.5)/c-.5,f=b?x+S*p:x,m=b?w:w+S*y;for(let M=0;M<u;M++){let g=t.deckTopM+(u===1?0:M/(u-1)*Ln);I.push({x:f,y:m,z:g})}}let R=i/2;for(let k of e){if(!Number.isFinite(k.eyeHeightM))continue;let S=k.x*o,f=k.y*o,m=k.eyeHeightM,M=0,g=1/0;for(let O of I){let v=O.x-S,C=O.y-f,A=Math.hypot(v,C);if(!(A>l)){M++;continue}let _=v/A,F=C/A,B=0;for(let D=l;D<A;D+=R){let G=Hn(h,S+_*D,f+F*D);if(!(!Number.isFinite(G)||G>=m)&&G>m+(O.z-m)*D/A){B=D;break}}B?g=Math.min(g,B):M++}let P=M/I.length;P>=d||r.set(k.id,{seatId:k.id,mark:P<s?"obstructedView":"restrictedView",visibleFraction:P,totalRays:I.length,atDistanceM:Number.isFinite(g)?g:0})}return r}function ct(e,t){if(!t.size)return 0;let n=0;for(let r of e){let o=t.get(r.id);if(!o)continue;let i=r.commercial;i?.restrictedView!==void 0||i?.obstructedView!==void 0||(r.commercial={...i,[o.mark]:!0},n++)}return n}function Ie(e){return e?e.accessibility?.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var se=Math.PI/180,Un=9,U=16;function Ce(e,t,n,r){let o=n*se,i=Math.cos(o),a=Math.sin(o);return{x:r.x+e*i-t*a,y:r.y+e*a+t*i}}function ce(e){let{seatCount:t,seatSpacing:n,curve:r,rotation:o,origin:i}=e,a=[];if(e.path)return me(e.path,t);if(t<=1)return t===1&&a.push({x:i.x,y:i.y}),a;if(r===0){for(let s=0;s<t;s++)a.push(Ce(s*n,0,o,i));return a}let l=r/(t-1)*se,d=n/(2*Math.sin(Math.abs(l)/2));for(let s=0;s<t;s++){let c=s*l,u=d*Math.sin(c),h=-d+d*Math.cos(c);a.push(Ce(u,h,o,i))}return a}function ft(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function Gn(e){let t=new Set((e.overrides??[]).filter(n=>n.skip&&Number.isInteger(n.index)&&n.index>=0&&n.index<e.seatCount).map(n=>n.index));return Math.max(0,e.seatCount-t.size)}function mt(e,t){let n=ft(e);return ce(e).map((r,o)=>{let i=n.get(o),a=Ie(i),l=Xe(e,o,i),d={...e.commercial,...i?.commercial};return{index:o,x:r.x+(i?.dx??0),y:r.y+(i?.dy??0),label:l,displayLabel:ge(e,o,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:a.length>0,accessibility:a,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(d).some(s=>s!==void 0&&s!==!1&&s!=="")?d:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle??e.seatLabelStyle}})}function bt(e){let t=[];for(let n of mt(e))n.skipped||t.push({id:`${e.id}:${n.index}`,label:n.label,displayLabel:n.displayLabel===n.label?void 0:n.displayLabel,x:n.x,y:n.y,rowId:e.id,categoryKey:n.categoryKey,accessible:n.accessible||void 0,accessibility:n.accessibility.length?n.accessibility:void 0,wheelchairSpaceType:n.wheelchairSpaceType,commercial:n.commercial,glyph:n.glyph,viewUrl:n.viewUrl,viewMeta:n.viewMeta,labelStyle:n.labelStyle});return t}function ht(e){if(e.seatCountsBySide)return{...e.seatCountsBySide};let t=e.sides&&e.sides.length?e.sides:["top","bottom"],n=["top","bottom","left","right"].filter(i=>t.includes(i)),r={top:0,bottom:0,left:0,right:0};if(!n.length)return r;let o=Math.max(0,Math.round(e.seatCount));for(let i=0;i<o;i++)r[n[i%n.length]]+=1;return r}function Re(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let r=new Map((e.overrides??[]).map(c=>[c.index,c])),o=(c,u,h,p)=>{let y=r.get(c),b=Ie(y),x=y?.label??Se(e,c);return{index:c,label:x,displayLabel:y?.displayLabel??Me(e,c),x:u+(y?.dx??0),y:h+(y?.dy??0),categoryKey:y?.categoryKey??e.categoryKey,skipped:!!y?.skip,accessible:b.length>0,accessibility:b,wheelchairSpaceType:y?.wheelchairSpaceType,commercial:y?.commercial,glyph:y?.glyph,viewUrl:y?.viewFromSeatUrl,viewMeta:y?.viewFromSeatUrl?y.viewFromSeatMeta:void 0,labelStyle:y?.labelStyle,...p?{side:p}:{}}};if(e.shape==="round"){let c=(e.radius??40)+U,u=e.rotation*se,h=Math.max(0,Math.min(360,e.seatArc??360));if(h>=360||n===1){for(let x=0;x<n;x++){let w=u+x/n*2*Math.PI;t.push(o(x,e.center.x+c*Math.cos(w),e.center.y+c*Math.sin(w)))}return t}let p=h*se,y=(2*Math.PI-p)/2,b=u+y;for(let x=0;x<n;x++){let w=b+x/(n-1)*p;t.push(o(x,e.center.x+c*Math.cos(w),e.center.y+c*Math.sin(w)))}return t}let i=e.width??80,a=e.height??50,l=ht(e),d=["top","bottom","left","right"],s=0;for(let c of d){let u=l[c];for(let h=0;h<u;h++){let p,y;c==="top"?(p=-i/2+(h+.5)*i/u,y=-a/2-U):c==="bottom"?(p=-i/2+(h+.5)*i/u,y=a/2+U):c==="left"?(p=-i/2-U,y=-a/2+(h+.5)*a/u):(p=i/2+U,y=-a/2+(h+.5)*a/u);let b=Ce(p,y,e.rotation,e.center);t.push(o(s++,b.x,b.y,c))}}return t}function Vn(e){return e.bookAsWhole||e.variableOccupancy?Math.max(0,Math.round(e.seatCount)):Re(e).filter(t=>!t.skipped).length}function pt(e){return Re(e).filter(t=>!t.skipped).map(t=>({id:`${e.id}:${t.index}`,label:t.label,...t.displayLabel!==t.label?{displayLabel:t.displayLabel}:{},x:t.x,y:t.y,rowId:e.id,categoryKey:t.categoryKey,...t.accessible?{accessible:!0}:{},...t.accessibility.length?{accessibility:t.accessibility}:{},...t.wheelchairSpaceType?{wheelchairSpaceType:t.wheelchairSpaceType}:{},...t.commercial?{commercial:t.commercial}:{},...t.glyph?{glyph:t.glyph}:{},...t.viewUrl?{viewUrl:t.viewUrl}:{},...t.viewUrl&&t.viewMeta?{viewMeta:t.viewMeta}:{},...t.labelStyle?{labelStyle:t.labelStyle}:{}}))}function yt(e){return[{id:`${e.id}:0`,label:e.label,...e.displayLabel&&e.displayLabel!==e.label?{displayLabel:e.displayLabel}:{},x:e.center.x,y:e.center.y,rowId:e.id,categoryKey:e.categoryKey,kind:"booth",...e.commercial?.note?{commercial:{note:e.commercial.note}}:{}}]}function ke(e,t){let n=!1;for(let r=0,o=t.length-1;r<t.length;o=r++){let i=t[r].x,a=t[r].y,l=t[o].x,d=t[o].y;a>e.y!=d>e.y&&e.x<(l-i)*(e.y-a)/(d-a)+i&&(n=!n)}return n}function Xn(e,t){return t.some((n,r)=>{let o=t[(r+1)%t.length],i=(e.y-n.y)*(o.x-n.x)-(e.x-n.x)*(o.y-n.y);if(Math.abs(i)>1e-7)return!1;let a=(e.x-n.x)*(o.x-n.x)+(e.y-n.y)*(o.y-n.y),l=(o.x-n.x)**2+(o.y-n.y)**2;return a>=-1e-7&&a<=l+1e-7})}function z(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function Z(e,t,n){return ke(e,t)&&!z(n).some(r=>ke(e,r)||Xn(e,r))}function Kn(e,t){return ye(e,t).point}function ae(e){if(!e.length)return{x:0,y:0};let t=0,n=0;for(let r of e)t+=r.x,n+=r.y;return{x:t/e.length,y:n/e.length}}function Ae(e){switch(e.type){case"row":{let t=ce(e),n=ft(e),r=0,o=0,i=0;for(let a=0;a<t.length;a++){let l=n.get(a);l?.skip||(r+=t[a].x+(l?.dx??0),o+=t[a].y+(l?.dy??0),i++)}return i?{x:r/i,y:o/i}:{x:e.origin.x,y:e.origin.y}}case"table":case"booth":return{x:e.center.x,y:e.center.y};case"gaArea":return ae(e.points);case"section":return ae(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?ae(e.points):e.x!=null&&e.y!=null&&e.width!=null&&e.height!=null?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:e.x??0,y:e.y??0};case"decorImage":return{x:e.x+e.width/2,y:e.y+e.height/2}}}function lt(e,t){return e.length===t.length&&e.every((n,r)=>n.x===t[r].x&&n.y===t[r].y)}function Yn(e,t){if(e.type!=="gaArea"||!lt(e.points,t.outline))return!1;let n=z(e.holes),r=z(t.holes);return n.length===r.length&&n.every((o,i)=>lt(o,r[i]))}function gt(e,t,n=e.filter(o=>o.type==="section"),r=Ae(t)){let o="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(o?n.find(a=>(a.logicalSectionId??a.id)===o&&(Yn(t,a)||Z(r,a.outline,a.holes))):void 0)??n.find(a=>Z(r,a.outline,a.holes))}function Y(e){return e.floors&&e.floors.length?e.floors:[{id:"floor-0",name:"Main",objects:e.objects,focalPoint:e.focalPoint,referenceImage:e.referenceImage,backgroundImage:e.backgroundImage}]}function zn(e,t){let n=Y(e);return(t?n.find(r=>r.id===t):n[0])?.objects??[]}function xt(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}function le(e,t,n){let r=i=>({x:i.x+t,y:i.y+n}),o=i=>i.map(r);switch(e.type){case"row":return{...e,origin:r(e.origin)};case"table":case"booth":return{...e,center:r(e.center)};case"gaArea":return{...e,points:o(e.points),...e.holes?{holes:z(e.holes).map(o)}:{}};case"section":return{...e,outline:o(e.outline),...e.outlinePath?{outlinePath:Ge(e.outlinePath,t,n)}:{},...e.holes?{holes:z(e.holes).map(o)}:{}};case"text":return{...e,position:r(e.position)};case"shape":return{...e,...e.points?{points:o(e.points)}:{},...e.x!=null?{x:e.x+t}:{},...e.y!=null?{y:e.y+n}:{}};case"decorImage":return{...e,x:e.x+t,y:e.y+n}}}function Wn(e,t=900){if(!e.floors||e.floors.length<2)return e;let n=[];return e.floors.forEach((r,o)=>{let i=-o*t;for(let a of r.objects)n.push(i===0?a:le(a,0,i))}),{...e,objects:n,floors:void 0}}function ut(e,t,n,r,o,i,a,l,d){let s=[],c=e.filter(b=>b.type==="section"),u=Q(e),h=b=>!b?.eventConfigurationId||b.eventConfigurationId===r&&(b.eventConfigurationVersion===void 0||b.eventConfigurationVersion===d),p=b=>et(b,{activeConfigurationId:r,activeConfigurationVersion:d,activeBasisSha256:o,now:l}),y=(b,x)=>p(b)?{...b,coverage:x}:void 0;for(let b of e){let x=[];if(b.type==="row"?x=bt(b):b.type==="table"?x=pt(b):b.type==="booth"&&(x=yt(b)),!x.length)continue;for(let S of x)S.viewUrl&&!h(S.viewMeta)&&(S.viewUrl=void 0,S.viewMeta=void 0);if(b.type==="row"){let S=u.get(b.id);if(S){let f=new Map((b.overrides??[]).map(m=>[m.index,m]));for(let m of x){let M=Number(m.id.slice(m.id.lastIndexOf(":")+1));if(!Number.isInteger(M))continue;m.logicalRowId=S.groupId,m.logicalSeatIndex=S.adjacencyOffset+M,f.get(M)?.displayLabel||(m.displayLabel=ge(b,M,S)),!m.viewUrl&&S.viewFromSeatUrl&&h(S.viewFromSeatMeta)&&(m.viewUrl=S.viewFromSeatUrl,m.viewMeta=S.viewFromSeatMeta);let g=f.get(M)?.confidenceEvidence;m.confidenceEvidence=y(g,"exact-seat")??y(b.confidenceEvidence,"row-representative")??y(S.confidenceEvidence,"row-representative")}}}let w=gt(e,b,c,b.type==="row"?ae(x):Ae(b)),I=w?.viewFromSeatUrl,k=(w?.zone?t?.find(S=>S.id===w.zone):void 0)?.focalPoint??n;for(let S of x){if(!S.confidenceEvidence){let f=Number(S.id.slice(S.id.lastIndexOf(":")+1)),m=(b.type==="row"||b.type==="table")&&Number.isInteger(f)?b.overrides?.find(M=>M.index===f)?.confidenceEvidence:void 0;S.confidenceEvidence=y(m,"exact-seat")??(b.type==="row"?y(b.confidenceEvidence,"row-representative"):void 0)}S.confidenceEvidence??=y(w?.confidenceEvidence,"section-representative")??(a?y(a.evidence,a.coverage):void 0),!S.viewUrl&&I&&h(w?.viewFromSeatMeta)&&(S.viewUrl=I,S.viewMeta=w?.viewFromSeatMeta),!S.viewUrl&&i&&h(i.meta)&&(S.viewUrl=i.url,S.viewMeta=i.meta),w&&(S.sectionId=w.logicalSectionId??w.id),w?.zone&&(S.zoneId=w.zone),k&&(S.focalPoint={...k})}s.push(...x)}return s}function $n(e,t={}){if(e.floors?.length){let r=[];for(let o of e.floors){let i=o.focalPoint??e.focalPoint,a=o.viewFromSeatUrl?{url:o.viewFromSeatUrl,meta:o.viewFromSeatMeta}:e.viewFromSeatUrl?{url:e.viewFromSeatUrl,meta:e.viewFromSeatMeta}:void 0,l=o.confidenceEvidence?{evidence:o.confidenceEvidence,coverage:"floor-representative"}:e.confidenceEvidence?{evidence:e.confidenceEvidence,coverage:"venue-representative"}:void 0,d=ut(o.objects,e.zones,i,e.eventConfigurationId,e.confidenceBasisSha256,a,l,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);t.resolveEyeHeights!==!1&&dt(o.objects,o.focalPoint??e.focalPoint,o.baseHeightM??0,d);for(let s of d)s.floorId=o.id;for(let s of d)r.push(s)}return r}let n=ut(e.objects,e.zones,e.focalPoint,e.eventConfigurationId,e.confidenceBasisSha256,e.viewFromSeatUrl?{url:e.viewFromSeatUrl,meta:e.viewFromSeatMeta}:void 0,e.confidenceEvidence?{evidence:e.confidenceEvidence,coverage:"venue-representative"}:void 0,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);return t.resolveEyeHeights!==!1&&dt(e.objects,e.focalPoint,t.floorBaseHeightM??0,n),Qn(e,n,t)}function Qn(e,t,n){return!n.deriveRestrictedView||e.derivedRestrictedView===!1||n.resolveEyeHeights===!1||ct(t,st(t,at(e))),t}function dt(e,t,n,r){let o=e.filter(u=>u.type==="section"),i=n>0||o.some(u=>u.height!==void 0||u.rake!==void 0||(u.elevation??0)>0);if(!o.length||!i||!t){for(let u of r)u.eyeHeightM=n+K;return}let a=new Array(r.length),l=new Map;for(let u of o)l.has(u.id)||l.set(u.id,u);let d=new Map,s=new Map;for(let u=0;u<r.length;u++){let h=r[u],y=(h.sectionId?l.get(h.sectionId)??o.find(x=>x.logicalSectionId===h.sectionId&&Z({x:h.x,y:h.y},x.outline,x.holes)):void 0)??o.find(x=>Z({x:h.x,y:h.y},x.outline,x.holes))??null;if(a[u]=y,!y)continue;d.has(y.id)||d.set(y.id,$e(y,{floorBaseHeightM:n}));let b=s.get(y.id);b?b.push(u):s.set(y.id,[u])}let c=new Array(r.length).fill(void 0);for(let[u,h]of s){let p=d.get(u);if(!p)continue;let y=p.rake>0?Math.tan(p.rake*Math.PI/180):0,b=Je(u,r,h,t);for(let x of b.rows){let w=x.blockDepth*X*y,I=p.height+w;for(let R of x.seatIndices)c[R]=I}}for(let u=0;u<r.length;u++){let h=r[u],p=a[u];if(!p){h.eyeHeightM=n+K;continue}let y=d.get(p.id);h.eyeHeightM=(c[u]??y.height)+K}}var ie=40;function J(e,t){let n=t?.freeText==="exclude",r=1/0,o=1/0,i=-1/0,a=-1/0,l=(s,c)=>{s<r&&(r=s),c<o&&(o=c),s>i&&(i=s),c>a&&(a=c)},d=s=>{if(Array.isArray(s))for(let c of s)!c||typeof c!="object"||l(c.x,c.y)};for(let s of xt(e))if(s.type==="row"){let c=new Map((s.overrides??[]).map(u=>[u.index,u]));ce(s).forEach((u,h)=>{let p=c.get(h);p?.skip||l(u.x+(p?.dx??0),u.y+(p?.dy??0))})}else if(s.type==="gaArea")d(s.points);else if(s.type==="section")d(s.outline);else if(s.type==="decorImage")l(s.x,s.y),l(s.x+s.width,s.y+s.height);else if(s.type==="shape")s.points&&s.points.length?d(s.points):s.x!=null&&s.y!=null&&s.width!=null&&s.height!=null&&(l(s.x,s.y),l(s.x+s.width,s.y+s.height));else if(s.type==="table"){let c=U+Un,u=s.shape==="round"?(s.radius??40)+c:Math.max((s.width??80)/2,(s.height??50)/2)+c;l(s.center.x-u,s.center.y-u),l(s.center.x+u,s.center.y+u)}else if(s.type==="booth"){let c=Math.max(s.width,s.height)/2;l(s.center.x-c,s.center.y-c),l(s.center.x+c,s.center.y+c)}else if(s.type==="text"){if(n)continue;let c=be(s);l(s.position.x,s.position.y),l(s.position.x+c.width,s.position.y+c.height)}for(let s of[e.referenceImage,e.backgroundImage]){if(!s)continue;let{center:c,width:u}=s;if(!c||!Number.isFinite(c.x)||!Number.isFinite(c.y)||!Number.isFinite(u))continue;let h=u*3/4;l(c.x-u/2,c.y-h/2),l(c.x+u/2,c.y+h/2)}if(!isFinite(r)){let s=e.focalPoint??{x:0,y:0};return{x:s.x-200,y:s.y-200,width:400,height:400}}return{x:r-ie,y:o-ie,width:i-r+ie*2,height:a-o+ie*2}}function St(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}var Mt=.08,qn=.045;function Ee(e){return`__floor__:${encodeURIComponent(e)}`}function wt(e,t,n){return{...e,objects:t,floors:void 0,...n?{focalPoint:n}:{},referenceImage:void 0,backgroundImage:void 0}}function Zn(e,t,n){let r=e.focalPoint??t.focalPoint;return r?r.x:n.x+n.width/2}function vt(e){let t=e.floors??[];if(!t.length)return[];let n=t.map(a=>J(wt(e,a.objects,a.focalPoint),{freeText:"exclude"})),o=Math.max(1,...n.map(a=>a.width))*Mt,i=0;return t.map((a,l)=>{let d=n[l],s=i-(d.y+d.height);return i-=d.height+o,{floorId:a.id,label:a.name??a.id,level:l,levelBadge:l===0?"G":String(l),translation:{x:-Zn(a,e,d),y:s},bounds:d}})}function Jn(e,t,n,r){let o=t==="name"?e.label:e.levelBadge;if(!o)return[];let i=Math.max(1,n*qn),a=e.bounds.x+e.translation.x,l=e.bounds.y+e.translation.y+i*.4,d=`floor-level-${e.floorId}`,s={type:"text",id:`${d}-text`,text:o,position:{x:a,y:l},fontSize:i,rotation:0,color:r,bold:!0};if(t==="name")return[s];let c=i*.95;return[{type:"shape",id:`${d}-badge`,kind:"ellipse",x:a-c*.35,y:l-c*.3,width:c*2,height:c*2,fill:"transparent",stroke:{color:r,width:Math.max(1,i*.09)},opacity:.8},s]}function er(e,t={}){let n=e.floors;if(!n||n.length<2)return e;let r=vt(e),o=[];n.forEach((s,c)=>{let{x:u,y:h}=r[c].translation;for(let p of s.objects)c>0&&p.type==="shape"&&p.role==="stage"||o.push(le(p,u,h))});let i={...e,objects:o,floors:void 0},a=J(i,{freeText:"exclude"}),l=Math.max(1,a.width,a.height),d=e.theme?.textColor??"#94a3b8";for(let s of r)o.push(...Jn(s,t.labelStyle??"number",l,d));return{...i,objects:o,referenceImage:void 0,backgroundImage:void 0}}function tr(e){if(!e.floors||e.floors.length<2)return e;let t=!e.zones?.length,n=new Set,r=e.floors.flatMap(i=>i.objects.flatMap(a=>{if(a.type==="shape"&&a.role==="stage"){let l=JSON.stringify([a.kind,a.x,a.y,a.width,a.height,a.points,a.rotation??0,a.label,a.heightM,a.eventConfigurationIds]);if(n.has(l))return[];n.add(l)}return t&&a.type==="section"?[{...a,zone:Ee(i.id)}]:[a]})),o=t?e.floors.map(i=>({id:Ee(i.id),label:i.name,focalPoint:{...i.focalPoint}})):e.zones;return{...e,objects:r,zones:o,floors:void 0,referenceImage:void 0,backgroundImage:St(e)}}function nr(e){let t=e.floors;if(!t?.length)return null;let n=t.find(i=>i.objects.some(a=>a.type==="shape"&&a.role==="stage"));if(n)return n.id;let r=t[0],o=-1;for(let i of t){let a=J(wt(e,i.objects,i.focalPoint),{freeText:"exclude"}),l=a.width*a.height;l>o&&(o=l,r=i)}return r.id}var rr=640;function or(e,t){return(e.floors?.length??0)<2?null:"all"}function ir(e,t=0){let n=Math.max(1,e.width,e.height),r={x:e.x+e.width/2,y:e.y+e.height/2},o=n*1.55,i=Math.max(n*.82,Math.max(0,t)+n*.45);return{target:r,distance:o,height:i,focalLength:Math.hypot(o,i),yawRad:-8*Math.PI/180}}function ue(e,t,n=0){let r=t.x-e.target.x,o=t.y-e.target.y,i=Math.cos(e.yawRad),a=Math.sin(e.yawRad),l=r*i-o*a,s=r*a+o*i-e.distance,c=n-e.height,u=Math.hypot(e.distance,e.height),h=(-e.distance*s-e.height*c)/u,p=(-e.height*s+e.distance*c)/u,y=Math.max(u*.08,h),b=e.focalLength/y;return{x:e.target.x+l*b,y:e.target.y-p*b,depth:y,scale:b}}function ar(e,t){return{x:e.a*t.x+e.c*t.y+e.e,y:e.b*t.x+e.d*t.y+e.f}}function sr(e){let t=e.a*e.d-e.b*e.c;if(!Number.isFinite(t)||Math.abs(t)<1e-9)throw new Error("perspective projection produced a singular affine");let n=e.d/t,r=-e.b/t,o=-e.c/t,i=e.a/t;return{a:n,b:r,c:o,d:i,e:-(n*e.e+o*e.f),f:-(r*e.e+i*e.f)}}function cr(e,t){return{a:e.a*t.a+e.c*t.b,b:e.b*t.a+e.d*t.b,c:e.a*t.c+e.c*t.d,d:e.b*t.c+e.d*t.d,e:e.a*t.e+e.c*t.f+e.e,f:e.b*t.e+e.d*t.f+e.f}}function lr(e,t,n=()=>0){let r=ue(e,t,n(t)),o={x:t.x+1,y:t.y},i={x:t.x,y:t.y+1},a=ue(e,o,n(o)),l=ue(e,i,n(i)),d=a.x-r.x,s=a.y-r.y,c=l.x-r.x,u=l.y-r.y;return{a:d,b:s,c,d:u,e:r.x-d*t.x-c*t.y,f:r.y-s*t.x-u*t.y}}function ur(e){let t=Math.hypot(e.a,e.b),n=e.a*e.d-e.b*e.c;return{rotationDeg:Math.atan2(e.b,e.a)*180/Math.PI,scaleX:t,scaleY:n/Math.max(t,1e-9),skewX:(e.a*e.c+e.b*e.d)/Math.max(n,1e-9)}}var Pt=9;function dr(e){if(e.kind==="circle")return{hx:e.r,hy:e.r};let t=e.width/2,n=e.height/2,r=e.rotation??0;if(!r)return{hx:t,hy:n};let o=r*Math.PI/180,i=Math.abs(Math.cos(o)),a=Math.abs(Math.sin(o));return{hx:t*i+n*a,hy:t*a+n*i}}function fr(e,t,n){let r=t-e.seat.x,o=n-e.seat.y;if(e.shape.kind==="circle")return r*r+o*o<=e.shape.r*e.shape.r;let i=e.shape.rotation??0,a=r,l=o;if(i){let d=-i*Math.PI/180,s=Math.cos(d),c=Math.sin(d);a=r*s-o*c,l=r*c+o*s}return Math.abs(a)<=e.shape.width/2&&Math.abs(l)<=e.shape.height/2}function mr(e,t,n,r,o){if(e.shape.kind==="circle"){let y=Math.min(Math.max(e.seat.x,t),r),b=Math.min(Math.max(e.seat.y,n),o),x=e.seat.x-y,w=e.seat.y-b;return x*x+w*w<=e.shape.r*e.shape.r}let i=e.shape.rotation??0;if(!i)return e.seat.x-e.hx<=r&&e.seat.x+e.hx>=t&&e.seat.y-e.hy<=o&&e.seat.y+e.hy>=n;let a=i*Math.PI/180,l=Math.cos(a),d=Math.sin(a),s=e.shape.width/2,c=e.shape.height/2,u=[[-s,-c],[s,-c],[s,c],[-s,c]].map(([y,b])=>[e.seat.x+y*l-b*d,e.seat.y+y*d+b*l]),h=[[t,n],[r,n],[r,o],[t,o]],p=[[1,0],[0,1],[l,d],[-d,l]];for(let[y,b]of p){let x=1/0,w=-1/0;for(let[k,S]of u){let f=k*y+S*b;f<x&&(x=f),f>w&&(w=f)}let I=1/0,R=-1/0;for(let[k,S]of h){let f=k*y+S*b;f<I&&(I=f),f>R&&(R=f)}if(w<I||R<x)return!1}return!0}function br(e,t={}){let n=t.seatRadius??Pt,r=e.length,o=new Array(r),i=1/0,a=1/0,l=-1/0,d=-1/0,s=0;for(let f=0;f<r;f++){let m=e[f],M=t.shapeOf?.(m)??{kind:"circle",r:n},{hx:g,hy:P}=dr(M);o[f]={seat:m,shape:M,hx:g,hy:P},m.x-g<i&&(i=m.x-g),m.y-P<a&&(a=m.y-P),m.x+g>l&&(l=m.x+g),m.y+P>d&&(d=m.y+P),g>s&&(s=g),P>s&&(s=P)}r===0&&(i=0,a=0,l=0,d=0);let c=s>0?s*4:1,u=Math.max(l-i,0),h=Math.max(d-a,0),p=Math.max(64,t.maxCells??r*4),y=c,b=Math.max(1,Math.ceil(u/y)||1),x=Math.max(1,Math.ceil(h/y)||1);for(;b*x>p&&(b>1||x>1);)y*=2,b=Math.max(1,Math.ceil(u/y)||1),x=Math.max(1,Math.ceil(h/y)||1);let w=b*x,I=new Int32Array(w+1),R=0;for(let f=0;f<r;f++){let m=o[f],M=j(Math.floor((m.seat.x-m.hx-i)/y),0,b-1),g=j(Math.floor((m.seat.x+m.hx-i)/y),0,b-1),P=j(Math.floor((m.seat.y-m.hy-a)/y),0,x-1),O=j(Math.floor((m.seat.y+m.hy-a)/y),0,x-1);for(let v=P;v<=O;v++)for(let C=M;C<=g;C++)I[v*b+C+1]++,R++}for(let f=0;f<w;f++)I[f+1]+=I[f];let k=new Int32Array(R),S=I.slice(0,w);for(let f=0;f<r;f++){let m=o[f],M=j(Math.floor((m.seat.x-m.hx-i)/y),0,b-1),g=j(Math.floor((m.seat.x+m.hx-i)/y),0,b-1),P=j(Math.floor((m.seat.y-m.hy-a)/y),0,x-1),O=j(Math.floor((m.seat.y+m.hy-a)/y),0,x-1);for(let v=P;v<=O;v++)for(let C=M;C<=g;C++){let A=v*b+C;k[S[A]++]=f}}return{seats:e,entries:o,minX:i,minY:a,cell:y,cols:b,rows:x,cellStart:I,items:k,stamp:new Int32Array(r),epoch:0}}function hr(e,t,n={}){let{cols:r,rows:o,cell:i,minX:a,minY:l,cellStart:d,items:s,entries:c}=e,u=Math.floor((t.x-a)/i),h=Math.floor((t.y-l)/i);if(u<0||h<0||u>=r||h>=o)return null;let p=h*r+u,y=d[p+1],b=-1,x=1/0;for(let w=d[p];w<y;w++){let I=s[w],R=c[I];if(n.filter&&!n.filter(R.seat.id,R.seat)||!fr(R,t.x,t.y))continue;let k=t.x-R.seat.x,S=t.y-R.seat.y,f=k*k+S*S;(f<x||f===x&&I<b)&&(x=f,b=I)}return b<0?null:c[b].seat.id}function pr(e,t,n,r={}){if(!(n>0))return null;let{cols:o,rows:i,cell:a,minX:l,minY:d,cellStart:s,items:c,entries:u}=e,h=Math.max(0,Math.floor((t.x-n-l)/a)),p=Math.min(o-1,Math.floor((t.x+n-l)/a)),y=Math.max(0,Math.floor((t.y-n-d)/a)),b=Math.min(i-1,Math.floor((t.y+n-d)/a));if(h>p||y>b)return null;let x=-1,w=n*n,I=e.stamp,R=++e.epoch;for(let k=y;k<=b;k++){let S=k*o;for(let f=h;f<=p;f++){let m=S+f,M=s[m+1];for(let g=s[m];g<M;g++){let P=c[g];if(I[P]===R)continue;I[P]=R;let O=u[P];if(r.filter&&!r.filter(O.seat.id,O.seat))continue;let v=t.x-O.seat.x,C=t.y-O.seat.y,A=v*v+C*C;(A<w||A===w&&P<x)&&(w=A,x=P)}}}return x<0?null:u[x].seat.id}function yr(e,t,n={}){let r=Math.min(t.x,t.x+t.width),o=Math.max(t.x,t.x+t.width),i=Math.min(t.y,t.y+t.height),a=Math.max(t.y,t.y+t.height),l=n.mode??"center",{cols:d,rows:s,cell:c,minX:u,minY:h,cellStart:p,items:y,entries:b}=e,x=Math.max(0,Math.floor((r-u)/c)),w=Math.min(d-1,Math.floor((o-u)/c)),I=Math.max(0,Math.floor((i-h)/c)),R=Math.min(s-1,Math.floor((a-h)/c));if(x>w||I>R)return[];let k=[],S=e.stamp,f=++e.epoch;for(let m=I;m<=R;m++){let M=m*d;for(let g=x;g<=w;g++){let P=M+g,O=p[P+1];for(let v=p[P];v<O;v++){let C=y[v];if(S[C]===f)continue;S[C]=f;let A=b[C];if(n.filter&&!n.filter(A.seat.id,A.seat))continue;(l==="center"?A.seat.x>=r&&A.seat.x<=o&&A.seat.y>=i&&A.seat.y<=a:mr(A,r,i,o,a))&&k.push(C)}}}return k.sort((m,M)=>m-M),k.map(m=>b[m].seat.id)}function gr(e){let t=e.cols*e.rows,n=0,r=0;for(let i=0;i<t;i++){let a=e.cellStart[i+1]-e.cellStart[i];a>0&&n++,a>r&&(r=a)}let o=e.items.length;return{cell:e.cell,cols:e.cols,rows:e.rows,cells:t,occupiedCells:n,refs:o,maxPerCell:r,meanPerOccupiedCell:n?o/n:0}}var xr=[{key:"wheelchair",label:"Wheelchair space",short:"Wheelchair",icon:"\u267F"},{key:"companion",label:"Companion seat",short:"Companion",icon:"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}"},{key:"semi-ambulatory",label:"Semi-ambulatory (limited mobility)",short:"Limited mobility",icon:"\u{1F9AF}"},{key:"designated-aisle",label:"Designated aisle / transfer seat",short:"Aisle transfer",icon:"AS"},{key:"step-free",label:"Step-free accessible seat",short:"Step-free",icon:"SF"},{key:"hearing",label:"Assistive listening",short:"Hearing",icon:"\u{1F9BB}"},{key:"cart",label:"CART live-caption view",short:"CART captions",icon:"CC"},{key:"sign-language",label:"Sign-language view",short:"Sign language",icon:"\u{1F91F}"},{key:"low-vision",label:"Blind / low-vision viewing",short:"Low vision",icon:"LV"},{key:"sensory-friendly",label:"Quiet / sensory-friendly seating",short:"Sensory-friendly",icon:"QS"},{key:"plus-size",label:"Plus-size seat",short:"Plus-size",icon:"\u{1F4BA}"},{key:"lift-armrest",label:"Lift-up armrest",short:"Lift armrest",icon:"\u2195\uFE0F"}],Fo=new Map(xr.map(e=>[e.key,e]));var Sr=[{key:"obstructedView",label:"Obstructed view",short:"Obstructed",icon:"\u26D4"},{key:"restrictedView",label:"Restricted view",short:"Restricted",icon:"\u{1F441}"},{key:"premium",label:"Premium seat",short:"Premium",icon:"\u2605"}],Bo=new Map(Sr.map(e=>[e.key,e]));var It=["start","end","both","none"];var Mr=["reference-focal","bar","entrance","exit","restroom","screen","sound","concession","coat","wall","rail","suite","obstruction"],Ho=new Set(Mr);function W(e){return typeof e=="string"&&It.includes(e)}function de(e,t){return e&&t?"both":e?"start":t?"end":"none"}function Ct(e){let t=new Map,n=Q(e);if(!n.size)return t;let r=new Map;for(let o of e){if(o.type!=="row"||!n.has(o.id))continue;let i=o.segmentedRow.groupId,a=r.get(i)??[];a.push(o),r.set(i,a)}for(let o of r.values())o.sort((i,a)=>i.segmentedRow.componentIndex-a.segmentedRow.componentIndex),o.forEach((i,a)=>{let l=o[a+1];t.set(i.id,{start:a>0&&i.segmentedRow.boundaryBefore==="continuous",end:!!l&&l.segmentedRow.boundaryBefore==="continuous"})});return t}function kt(e,t){let n=Number.isInteger(e.seatCount)&&e.seatCount>0?e.seatCount:0,r=new Set;for(let u of e.overrides??[])u.skip&&r.add(u.index);let o=u=>u>=0&&u<n&&!r.has(u),i=de(!t?.start,!t?.end),a=W(e.aisleSeats)?e.aisleSeats:void 0,l=a??i,d=-1,s=-1;for(let u=0;u<n;u+=1)o(u)&&(d<0&&(d=u),s=u);let c=new Set;if(d>=0){(l==="start"||l==="both")&&c.add(d),(l==="end"||l==="both")&&c.add(s);for(let u of r)o(u-1)&&c.add(u-1),o(u+1)&&c.add(u+1)}return{...a?{override:a}:{},automatic:i,slots:[...c].sort((u,h)=>u-h)}}function wr(e,t=[e]){return kt(e,e.segmentedRow?Ct(t).get(e.id):void 0)}function Rt(e){let t=new Set;for(let n of Y(e)){let r=Ct(n.objects);for(let o of n.objects)if(o.type==="row")for(let i of kt(o,r.get(o.id)).slots)t.add(`${o.id}:${i}`)}return t}function vr(e,t,n){return Rt(e).has(`${t}:${n}`)}function Oe(e){let t=W(e.aisleSeats)?e.aisleSeats:"both";return{start:t==="start"||t==="both",end:t==="end"||t==="both"}}function Te(e,t){t==="both"?delete e.aisleSeats:e.aisleSeats=t}function Pr(e,t,n){if(!W(e.aisleSeats)){delete t.aisleSeats,delete n.aisleSeats;return}let r=Oe(e);Te(t,de(r.start,!0)),Te(n,de(!0,r.end))}function Ir(e,t){let n=e[0],r=e[e.length-1];if(!n||!r||!W(n.aisleSeats)&&!W(r.aisleSeats)){delete t.aisleSeats;return}Te(t,de(Oe(n).start,Oe(r).end))}0&&(module.exports={AUTOMATIC_ROUND_TABLE_RADIUS_MAX,AUTOMATIC_ROUND_TABLE_RADIUS_MIN,CHAIR_NUMBERING_DIRECTIONS,CHAIR_NUMBERING_FORMATS,CHAIR_NUMBERING_START_MAX,DEFAULT_SEAT_RADIUS,FLOOR_STACK_GAP_RATIO,FLOOR_STACK_MIN_SURFACE_PX,TABLE_SEAT_OFFSET,TEXT_BACKGROUND_PADDING_MAX,TEXT_BACKGROUND_RADIUS_MAX,TEXT_LETTER_SPACING_MAX,TEXT_LETTER_SPACING_MIN,TEXT_LINE_HEIGHT_MAX,TEXT_LINE_HEIGHT_MIN,TEXT_OPACITY_MIN,TEXT_WIDTH_MAX,TEXT_WIDTH_MIN,aisleSeatIds,allObjects,applyAffine,automaticRoundTableRadius,buildAisleHoles,buildSeatIndex,buildSectionShell,chairNumberingProblem,chartBounds,combinedFloorZoneId,compactChairNumbering,composeAffine,createPerspectiveCamera,cubicPoint,decomposeAffineLinear,distanceToRings,distributeAlongCubic,expandBooth,expandChart,expandRow,expandRowSlots,expandTable,expandTableSlots,floorObjects,floorStackPlacements,floorsOf,gridStats,hitTest,initialFloorMode,invertAffine,isAisleSeat,isRowAisleSeats,layoutCombinedFloorPlan,layoutFloorStack,mainFloorId,mergeRowAisleSeats,nearestWithin,objectCenter,owningSectionForObject,perspectiveTangentAffine,pointInPolygon,pointInPolygonWithHoles,polygonArea,polygonInscribedAnchor,polygonLabelPoint,polygonNetArea,projectPerspectivePoint,queryRect,resolveRowAisleSeats,resolveSegmentedRowGroups,rowInventoryCount,rowSeatPositions,segmentedRowComponentSeats,segmentedRowComponents,segmentedRowSeatTotal,smoothCubicThroughMiddle,splitRowAisleSeats,stackFloors,tableChairBookingLabel,tableChairDisplayLabel,tableChairToken,tableInventoryCount,tableSeatCountsBySide,textLayoutMetrics,translateObject,usableHoles});
1
+ "use strict";var be=Object.defineProperty;var Ut=Object.getOwnPropertyDescriptor;var Vt=Object.getOwnPropertyNames;var Xt=Object.prototype.hasOwnProperty;var Kt=(e,t)=>{for(var n in t)be(e,n,{get:t[n],enumerable:!0})},Yt=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vt(t))!Xt.call(e,o)&&o!==n&&be(e,o,{get:()=>t[o],enumerable:!(r=Ut(t,o))||r.enumerable});return e};var zt=e=>Yt(be({},"__esModule",{value:!0}),e);var Wr={};Kt(Wr,{AUTOMATIC_ROUND_TABLE_RADIUS_MAX:()=>ft,AUTOMATIC_ROUND_TABLE_RADIUS_MIN:()=>dt,CHAIR_NUMBERING_DIRECTIONS:()=>tt,CHAIR_NUMBERING_FORMATS:()=>nt,CHAIR_NUMBERING_START_MAX:()=>Pe,DEFAULT_SEAT_RADIUS:()=>Dt,FLOOR_STACK_GAP_RATIO:()=>Tt,FLOOR_STACK_MIN_SURFACE_PX:()=>Ir,TABLE_SEAT_OFFSET:()=>H,TEXT_BACKGROUND_PADDING_MAX:()=>so,TEXT_BACKGROUND_RADIUS_MAX:()=>co,TEXT_LETTER_SPACING_MAX:()=>io,TEXT_LETTER_SPACING_MIN:()=>oo,TEXT_LINE_HEIGHT_MAX:()=>ro,TEXT_LINE_HEIGHT_MIN:()=>no,TEXT_OPACITY_MIN:()=>ao,TEXT_WIDTH_MAX:()=>to,TEXT_WIDTH_MIN:()=>eo,aisleSeatIds:()=>Bt,allObjects:()=>Et,applyAffine:()=>Rr,automaticRoundTableRadius:()=>Wn,buildAisleHoles:()=>qt,buildSeatIndex:()=>jr,buildSectionShell:()=>$t,chairNumberingProblem:()=>In,chartBounds:()=>ne,combinedFloorZoneId:()=>_e,compactChairNumbering:()=>Cn,composeAffine:()=>Er,createPerspectiveCamera:()=>kr,cubicPoint:()=>oe,decomposeAffineLinear:()=>Tr,distanceToRings:()=>Xe,distributeAlongCubic:()=>pe,expandBooth:()=>kt,expandChart:()=>yr,expandRow:()=>vt,expandRowSlots:()=>Pt,expandTable:()=>Ct,expandTableSlots:()=>Te,floorObjects:()=>br,floorStackPlacements:()=>_t,floorsOf:()=>$,gridStats:()=>Gr,hitTest:()=>Nr,initialFloorMode:()=>Cr,invertAffine:()=>Or,isAisleSeat:()=>Kr,isRowAisleSeats:()=>q,layoutCombinedFloorPlan:()=>Pr,layoutFloorStack:()=>wr,mainFloorId:()=>vr,mergeRowAisleSeats:()=>zr,nearestWithin:()=>Fr,objectCenter:()=>Le,owningSectionForObject:()=>Ot,perspectiveTangentAffine:()=>Ar,pointInPolygon:()=>Ae,pointInPolygonWithHoles:()=>te,pointOnPolygonBoundary:()=>Rt,polygonArea:()=>xe,polygonInscribedAnchor:()=>Se,polygonLabelPoint:()=>mr,polygonNetArea:()=>en,projectPerspectivePoint:()=>me,queryRect:()=>Br,resolveRowAisleSeats:()=>Xr,resolveSegmentedRowGroups:()=>J,rowInventoryCount:()=>dr,rowSeatPositions:()=>de,segmentedRowComponentSeats:()=>pn,segmentedRowComponents:()=>bn,segmentedRowSeatTotal:()=>yn,smoothCubicThroughMiddle:()=>Wt,splitRowAisleSeats:()=>Yr,stackFloors:()=>pr,tableChairBookingLabel:()=>ve,tableChairDisplayLabel:()=>Ie,tableChairToken:()=>rt,tableInventoryCount:()=>fr,tableSeatCountsBySide:()=>It,textLayoutMetrics:()=>ye,translateObject:()=>fe,usableHoles:()=>U});module.exports=zt(Wr);var qr=Math.PI/180;function T(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function L(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function oe(e,t){let n=1-t,r=n*n*n,o=3*n*n*t,i=3*n*t*t,a=t*t*t;return{x:r*e.start.x+o*e.control1.x+i*e.control2.x+a*e.end.x,y:r*e.start.y+o*e.control1.y+i*e.control2.y+a*e.end.y}}function Wt(e,t,n){let r={x:(e.x+t.x)/2,y:(e.y+t.y)/2},o={x:(n.x-r.x)*4/3,y:(n.y-r.y)*4/3};return{start:{...e},control1:{x:e.x+(t.x-e.x)/3+o.x,y:e.y+(t.y-e.y)/3+o.y},control2:{x:e.x+(t.x-e.x)*2/3+o.x,y:e.y+(t.y-e.y)*2/3+o.y},end:{...t}}}function pe(e,t,n=192){if(!Number.isInteger(t)||t<1)throw new Error("Path point count must be a positive integer");if(t===1)return[oe(e,.5)];let r=Array.from({length:n+1},(d,s)=>oe(e,s/n)),o=new Float64Array(r.length);for(let d=1;d<r.length;d+=1){let s=r[d].x-r[d-1].x,l=r[d].y-r[d-1].y;o[d]=o[d-1]+Math.hypot(s,l)}let i=o[o.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let a=[],c=1;for(let d=0;d<t;d+=1){let s=i*d/(t-1);for(;c<o.length-1&&o[c]<s;)c+=1;let l=o[c-1],u=o[c],b=u===l?0:(s-l)/(u-l);a.push({x:r[c-1].x+(r[c].x-r[c-1].x)*b,y:r[c-1].y+(r[c].y-r[c-1].y)*b})}return a}function _(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Q(e,t){return{x:e.x-t.x,y:e.y-t.y}}function D(e,t){return{x:e.x*t,y:e.y*t}}function ie(e,t=13){return Array.from({length:t},(n,r)=>oe(e,r/(t-1)))}function Fe(e,t){let n=Math.max(0,Math.min(1,t))*(e.length-1),r=Math.min(e.length-2,Math.floor(n));return L(e[r],e[r+1],n-r)}function Be(e,t,n){let r=Math.max(0,Math.min(1,t)),o=Math.max(r,Math.min(1,n)),i=[Fe(e,r)];for(let a=1;a<e.length-1;a+=1){let c=a/(e.length-1);c>r+1e-9&&c<o-1e-9&&i.push(e[a])}return i.push(Fe(e,o)),i}function Ge(e,t){let n=[[0,1],[1,2],[2,3],[3,0]],r=0,o=Number.POSITIVE_INFINITY;n.forEach(([b,p],y)=>{let h=T(L(e[b],e[p],.5),t);h<o&&(o=h,r=y)});let i=e[r],a=e[(r+1)%4],c=e[(r+2)%4],d=e[(r+3)%4],s=L(i,a,.5),l=Q(t,s),u=Math.max(1e-9,Math.hypot(l.x,l.y));return{p0:i,p1:a,p2:c,p3:d,normal:D(l,1/u),depth:(T(i,d)+T(a,c))/2}}function He(e){let{p0:t,p1:n,p2:r,p3:o,normal:i,depth:a}=e,c=Q(n,t),d=Q(r,o),s=a*.22,l=a*.12;return{nearPath:{start:t,control1:_(_(t,D(c,1/3)),D(i,s)),control2:_(_(t,D(c,2/3)),D(i,s)),end:n},farPath:{start:r,control1:_(_(o,D(d,2/3)),D(i,l)),control2:_(_(o,D(d,1/3)),D(i,l)),end:o}}}function $t(e,t,n){if(e.length!==4)throw new Error("A section shell requires four mapped bounds corners");let r=e.reduce((y,h)=>_(y,h),{x:0,y:0});r.x/=4,r.y/=4;let o=T(e[0],e[1]),i=T(e[0],e[3]),a=n==="auto"?o>i*1.25&&T(r,t)>i?"bezier":"tapered":n;if(a==="rectangle")return{mode:a,outline:e.map(y=>({...y}))};let c=Ge(e,t),{p0:d,p1:s,p2:l,p3:u}=c;if(a==="tapered")return{mode:a,outline:[_(d,D(Q(s,d),.14)),_(d,D(Q(s,d),1-.14)),l,u]};let{nearPath:b,farPath:p}=He(c);return{mode:a,outline:[...ie(b),...ie(p).slice(1)]}}function qt(e,t,n,r){if(e.length!==4)throw new Error("Aisle generation requires four mapped bounds corners");if(!Number.isInteger(n)||n<0||n>3)throw new Error("Aisle count must be an integer from 0 to 3");if(n===0)return[];let o=Ge(e,t),{p0:i,p1:a,p2:c,p3:d}=o,s=r==="bezier"?He(o):null,l=s?ie(s.nearPath):null,u=s?ie(s.farPath).reverse():null,b=Math.min(.055,.18/(n+1));return Array.from({length:n},(p,y)=>{let h=(y+1)/(n+1),M=h-b/2,P=h+b/2;return l&&u?[...Be(l,M,P),...Be(u,M,P).reverse()]:[L(i,a,M),L(i,a,P),L(d,c,P),L(d,c,M)]})}var eo=40,to=1200,no=.8,ro=3,oo=-2,io=20,ao=.1,so=40,co=40,Ue=e=>Math.max(1,e.fontSize*.6+(e.letterSpacing??0));function Qt(e,t){let n=e.text.split(/\r?\n/);if(!e.width)return Math.max(1,n.length);let r=Math.max(1,Math.floor(t/Ue(e))),o=0;for(let i of n){if(!i.length){o+=1;continue}let a=0;for(let c of i.split(/\s+/)){let d=c.length;a&&a+1+d<=r?a+=1+d:(o+=Math.max(1,Math.ceil(d/r)),a=d%r)}}return Math.max(1,o)}function ye(e){let t=e.background?.padding??0,n=e.text.split(/\r?\n/),r=Math.max(1,...n.map(c=>c.length))*Ue(e),o=e.width??r+t*2,i=Math.max(1,o-t*2),a=Qt(e,i);return{width:o,height:a*e.fontSize*(e.lineHeight??1.2)+t*2,lineCount:a,padding:t}}function Zt(e,t,n){let r=n.x-t.x,o=n.y-t.y,i=r*r+o*o,a=i?Math.max(0,Math.min(1,((e.x-t.x)*r+(e.y-t.y)*o)/i)):0;return Math.hypot(e.x-(t.x+a*r),e.y-(t.y+a*o))}function Xe(e,t){let n=1/0;for(let r of t)if(!(r.length<2))for(let o=0,i=r.length-1;o<r.length;i=o++){let a=Zt(e,r[i],r[o]);a<n&&(n=a)}return n}function Ve(e,t){let n=!1;for(let r=0,o=t.length-1;r<t.length;o=r++){let i=t[r].x,a=t[r].y,c=t[o].x,d=t[o].y;a>e.y!=d>e.y&&e.x<(c-i)*(e.y-a)/(d-a)+i&&(n=!n)}return n}function Ke(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function Jt(e,t,n){let r=Ve(e,t)&&!n.some(i=>Ve(e,i)),o=Xe(e,[t,...n]);return r?o:-o}function X(e,t,n,r,o){let i=Jt({x:e,y:t},r,o);return{x:e,y:t,h:n,d:i,max:i+n*Math.SQRT2}}var ge=class{constructor(){this.items=[]}get size(){return this.items.length}push(t){let n=this.items;n.push(t);let r=n.length-1;for(;r>0;){let o=r-1>>1;if(n[o].max>=n[r].max)break;[n[o],n[r]]=[n[r],n[o]],r=o}}pop(){let t=this.items,n=t[0],r=t.pop();if(t.length&&r){t[0]=r;let o=0;for(;;){let i=o*2+1,a=i+1,c=o;if(i<t.length&&t[i].max>t[c].max&&(c=i),a<t.length&&t[a].max>t[c].max&&(c=a),c===o)break;[t[c],t[o]]=[t[o],t[c]],o=c}}return n}};function xe(e){if(e.length<3)return 0;let t=0;for(let n=0,r=e.length-1;n<e.length;r=n++)t+=(e[r].x+e[n].x)*(e[r].y-e[n].y);return Math.abs(t)/2}function en(e,t){return Math.max(0,xe(e)-Ke(t).reduce((n,r)=>n+xe(r),0))}function Se(e,t){let n=Ke(t);if(!e.length)return{point:{x:0,y:0},radius:0};if(e.length<3){let h=e.reduce((P,C)=>P+C.x,0)/e.length,M=e.reduce((P,C)=>P+C.y,0)/e.length;return{point:{x:h,y:M},radius:0}}let r=1/0,o=1/0,i=-1/0,a=-1/0;for(let h of e)h.x<r&&(r=h.x),h.y<o&&(o=h.y),h.x>i&&(i=h.x),h.y>a&&(a=h.y);let c=i-r,d=a-o,s=Math.min(c,d);if(!(s>0))return{point:{x:(r+i)/2,y:(o+a)/2},radius:0};let l=Math.max(c,d)/150,u=new ge,b=s/2;for(let h=r;h<i;h+=s)for(let M=o;M<a;M+=s)u.push(X(h+b,M+b,b,e,n));let p=X(r+c/2,o+d/2,0,e,n),y=0;for(;u.size;){let h=u.pop();if(!h)break;h.d>p.d&&(p=h),!(h.max-p.d<=l)&&(y>=4e3||(y+=1,b=h.h/2,u.push(X(h.x-b,h.y-b,b,e,n)),u.push(X(h.x+b,h.y-b,b,e,n)),u.push(X(h.x-b,h.y+b,b,e,n)),u.push(X(h.x+b,h.y+b,b,e,n))))}return{point:{x:p.x,y:p.y},radius:Math.max(0,p.d)}}function Z(e,t,n){return Math.max(t,Math.min(n,e))}function F(e,t,n){return e<t?t:e>n?n:e}function tn(e){return Z(e,0,1)}function Ye(e){let t=tn(e);return t*t*(3-2*t)}var K=Math.PI*2;function Y(e){return Number.isFinite(e.x)&&Number.isFinite(e.y)}function nn(e,t,n){let r=t-e;if(n){for(;r<0;)r+=K;for(;r>=K;)r-=K}else{for(;r>0;)r-=K;for(;r<=-K;)r+=K}return r}function $e(e){if(e.version!==1||e.closed!==!0||!Y(e.start)||!Array.isArray(e.segments)||e.segments.length<2||e.segments.length>512)return!1;let t=e.start;for(let n of e.segments){if(!n||!Y(n.end))return!1;if(n.kind==="line"){if(T(t,n.end)<=1e-9)return!1}else if(n.kind==="bezier"){if(!Y(n.control1)||!Y(n.control2)||T(t,n.end)<=1e-9)return!1}else if(n.kind==="arc"){if(!Y(n.center)||!Number.isFinite(n.radius)||n.radius<=1e-6||Math.abs(T(t,n.center)-n.radius)>Math.max(1e-4,n.radius*1e-4)||Math.abs(T(n.end,n.center)-n.radius)>Math.max(1e-4,n.radius*1e-4)||T(t,n.end)<=1e-9)return!1}else return!1;t=n.end}return T(t,e.start)<=1e-4}function rn(e,t,n){let r=1-n;return{x:r**3*e.x+3*r**2*n*t.control1.x+3*r*n**2*t.control2.x+n**3*t.end.x,y:r**3*e.y+3*r**2*n*t.control1.y+3*r*n**2*t.control2.y+n**3*t.end.y}}function qe(e,t=2){if(!$e(e))throw new Error("Section outline path is invalid");let n=Math.max(.25,t),r=[{...e.start}],o=e.start;for(let i of e.segments){if(i.kind==="line")r.push({...i.end});else if(i.kind==="arc"){let a=Math.atan2(o.y-i.center.y,o.x-i.center.x),c=Math.atan2(i.end.y-i.center.y,i.end.x-i.center.x),d=nn(a,c,i.clockwise),s=Math.max(2,Math.ceil(Math.abs(d)*i.radius/n));for(let l=1;l<=s;l+=1){let u=a+d*l/s;r.push({x:i.center.x+Math.cos(u)*i.radius,y:i.center.y+Math.sin(u)*i.radius})}}else{let a=T(o,i.control1)+T(i.control1,i.control2)+T(i.control2,i.end),c=Math.max(2,Math.ceil(a/n));for(let d=1;d<=c;d+=1)r.push(rn(o,i,d/c))}o=i.end}return T(r[r.length-1],r[0])<=1e-4&&r.pop(),r}function Qe(e,t,n){return on(e,o=>({x:o.x+t,y:o.y+n}))}function on(e,t,n=1,r=!1){return{...e,start:t(e.start),segments:e.segments.map(o=>o.kind==="line"?{...o,end:t(o.end)}:o.kind==="arc"?{...o,center:t(o.center),radius:o.radius*Math.abs(n),clockwise:r?!o.clockwise:o.clockwise,end:t(o.end)}:{...o,control1:t(o.control1),control2:t(o.control2),end:t(o.end)})}}var an=45,Me=150,sn=60;function cn(e){let t=an/100;if(e<=t)return Me;let n=Math.min(1,(e-t)/(1-t));return Me-n*(Me-sn)}var ze=.5523;function We(e,t){return Math.abs(e.x-t.x)<=1e-6&&Math.abs(e.y-t.y)<=1e-6}function ln(e){let t=[],n=[];for(e.forEach((r,o)=>{Y(r)&&(t.length&&We(t[t.length-1],r)||(t.push({x:r.x,y:r.y}),n.push(o)))});t.length>1&&We(t[0],t[t.length-1]);)t.pop(),n.pop();return{points:t,sourceIndex:n}}var un=.5,dn=4/3;function fn(e,t,n){let r=t.x-e.x,o=t.y-e.y,i=Math.hypot(r,o);if(i<=1e-9)return{kind:"line",end:{...t}};let a=-o/i,c=r/i,d=n*dn;return{kind:"bezier",control1:{x:e.x+r/3+a*d,y:e.y+o/3+c*d},control2:{x:e.x+r*2/3+a*d,y:e.y+o*2/3+c*d},end:{...t}}}function Ze(e,t){let{points:n,sourceIndex:r}=ln(e),o=n.length;if(o<3)return null;let i=Math.min(100,Math.max(0,t.cornerSmoothing??0))/100,a=t.edgeCurvature,c=new Array(o).fill(0);if(a?.length)for(let x=0;x<o;x+=1){let g=a[r[x]];c[x]=Number.isFinite(g)?Math.min(100,Math.max(-100,g))/100:0}let d=c.some(x=>Math.abs(x)>1e-6);if(i<=0&&!d)return null;let s=t.wideAngleThresholdDeg??cn(i),l=[];for(let x=0;x<o;x+=1)l[x]=T(n[x],n[(x+1)%o]);let u=new Array(o).fill(0);for(let x=0;x<o;x+=1){let g=n[(x-1+o)%o],f=n[x],m=n[(x+1)%o],w={x:g.x-f.x,y:g.y-f.y},S={x:m.x-f.x,y:m.y-f.y},v=Math.hypot(w.x,w.y),E=Math.hypot(S.x,S.y);if(v<=1e-9||E<=1e-9)continue;let I=Math.min(1,Math.max(-1,(w.x*S.x+w.y*S.y)/(v*E))),k=Math.acos(I)*180/Math.PI;if(k<s)continue;let O=Ye((k-s)/(180-s));u[x]=i*O*.5*Math.min(v,E)}for(let x=0;x<o;x+=1){let g=(x+1)%o,f=u[x]+u[g];if(f>l[x]&&f>1e-9){let m=l[x]/f;u[x]*=m,u[g]*=m}}let b=new Array(o),p=new Array(o);for(let x=0;x<o;x+=1){let g=n[(x-1+o)%o],f=n[x],m=n[(x+1)%o];if(u[x]<=1e-6){b[x]={...f},p[x]={...f};continue}let w=T(f,g)||1,S=T(f,m)||1;b[x]={x:f.x+(g.x-f.x)/w*u[x],y:f.y+(g.y-f.y)/w*u[x]},p[x]={x:f.x+(m.x-f.x)/S*u[x],y:f.y+(m.y-f.y)/S*u[x]}}if(u.every(x=>x<=1e-6)&&!d)return null;let y=[],h={...p[0]},M=h,P=(x,g)=>{if(T(M,x)<=1e-9)return;let f=c[g];Math.abs(f)>1e-6?y.push(fn(M,x,f*un*l[g])):y.push({kind:"line",end:{...x}}),M=x};for(let x=1;x<=o;x+=1){let g=x%o,f=n[g];P(b[g],(x-1)%o),u[g]>1e-6&&T(b[g],p[g])>1e-9&&(y.push({kind:"bezier",control1:L(b[g],f,ze),control2:L(p[g],f,ze),end:{...p[g]}}),M=p[g])}if(!y.length)return null;let C=y[y.length-1];T(C.end,h)>1e-9&&(C.kind==="line"?C.end={...h}:y.push({kind:"line",end:{...h}}));let R={version:1,closed:!0,start:h,segments:y};return $e(R)?R:null}function mn(e){let t=e.points??[];if(e.kind!=="polygon"||t.length<3||!Array.isArray(e.edgeCurvature))return[];let n=t.map((r,o)=>{let i=e.edgeCurvature[o];return Number.isFinite(i)?Math.min(100,Math.max(-100,i)):0});return n.some(r=>Math.abs(r)>.5)?n:[]}function hn(e){let t=mn(e);return t.length?Ze(e.points,{edgeCurvature:t}):null}function ae(e,t=2){let n=hn(e);return n?qe(n,t):e.points??[]}function bn(e,t,n){let r=[];for(let o=0;o<e.length-1;o+=1){let i=e[o],a=e[o+1],c=Math.hypot(a.x-i.x,a.y-i.y);if(c<=0)continue;let d=Math.max(1,Math.round(c/n)),s=c/d,l=Math.atan2(a.y-i.y,a.x-i.x),u=o===0,p=(o>0?t[o-1]:void 0)==="break"?2:1,y=u?{...i}:{x:i.x+Math.cos(l)*s*p,y:i.y+Math.sin(l)*s*p},h=u?d+1:Math.max(1,d-(p-1));r.push({origin:y,rotation:l*180/Math.PI,seatCount:h,seatSpacing:s})}return r}function pn(e){let t=e.rotation*Math.PI/180,n={x:Math.cos(t),y:Math.sin(t)};return Array.from({length:e.seatCount},(r,o)=>({x:e.origin.x+n.x*o*e.seatSpacing,y:e.origin.y+n.y*o*e.seatSpacing}))}function yn(e){return e.reduce((t,n)=>t+n.seatCount,0)}function J(e){let t=new Map,n=new Map;for(let r of e){if(r.type!=="row"||!r.segmentedRow)continue;let o=n.get(r.segmentedRow.groupId)??[];o.push(r),n.set(r.segmentedRow.groupId,o)}for(let[r,o]of n){let i=o.slice().sort((b,p)=>b.segmentedRow.componentIndex-p.segmentedRow.componentIndex),a=i[0]?.segmentedRow?.componentCount??0,c=i[0]?.segmentedRow;if(!c||!(a>=2&&i.length===a&&c?.boundaryBefore==="start"&&i.every((b,p)=>b.segmentedRow?.kind==="segmented-row-v1"&&b.segmentedRow.groupId===r&&b.segmentedRow.componentCount===a&&b.segmentedRow.componentIndex===p&&b.segmentedRow.repeatLabelOnComponents===c.repeatLabelOnComponents&&(p===0?b.segmentedRow.boundaryBefore==="start":b.segmentedRow.boundaryBefore!=="start")&&b.segmentedRow.displayLabel===c.displayLabel)))continue;let s=i.reduce((b,p)=>b+p.seatCount,0),l=0,u=0;for(let b of i)b.segmentedRow.boundaryBefore==="break"&&(l+=1),t.set(b.id,{groupId:r,adjacencyOffset:l,displayOffset:u,displayLabel:c.displayLabel,totalSeats:s,canonical:i[0],viewFromSeatUrl:c.viewFromSeatUrl,viewFromSeatMeta:c.viewFromSeatMeta,confidenceEvidence:c.confidenceEvidence}),l+=b.seatCount,u+=b.seatCount}return t}var gn="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var xn="abcdefghijklmnopqrstuvwxyz";function Sn(e,t){let n=t.length,r=e+1,o="";for(;r>0;){r-=1;let i=r%n;o=t[i]+o,r=Math.floor(r/n)}return o}function ee(e,t=!1){let n=t?xn:gn;return Sn(Math.max(0,Math.floor(e)-1),n)}var Mn=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function Je(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[r,o]of Mn)for(;t>=r;)n+=o,t-=r;return n}function wn(e){let t=new Array(e);return Array.from({length:e},(n,r)=>r).sort((n,r)=>Math.abs(2*n-(e-1))-Math.abs(2*r-(e-1))||n-r).forEach((n,r)=>t[n]=r),t}function se(e,t){let n=e.seatLabelStart??1,r=e.seatNumbering?.direction??"ltr",o=e.seatNumbering?.step??1,i=e.seatNumbering?.scheme??"decimal",a=e.seatNumbering?.prefix??"",c=e.seatNumbering?.endAt,d=e.seatCount;if(i==="updown"||i==="updown-descending"){let p=Math.ceil(d/2),y=i==="updown"?t<p?n+2*t:n-1+2*(d-t):t<p?n+2*(p-1-t):n+1+2*(t-p);return`${a}${y}`}let s=i==="odd"||i==="even"?2:o,l=c!=null&&Number.isFinite(c)?c-(d-1)*s:n,u=r==="center"?wn(d)[t]:r==="rtl"?d-1-t:t,b;switch(i){case"odd":{let p=l%2===1?l:l+1;b=String(p+u*2);break}case"even":{let p=l%2===0?l:l+1;b=String(p+u*2);break}case"roman":b=Je(l+u*o);break;case"letters-upper":b=ee(l+u*o,!1);break;case"letters-lower":b=ee(l+u*o,!0);break;default:b=String(l+u*o);break}return`${a}${b}`}function Pn(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function et(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${se(e,t)}`}function we(e,t,n,r){if(r?.displayLabel)return r.displayLabel;if(e.seatDisplayLabelMode==="number")return se(e,t);if(!n)return`${e.displayLabel||e.label}-${se(e,t)}`;let o=Pn(n),i=n.displayOffset+t;return`${n.displayLabel}-${se(o,i)}`}var Pe=999,tt=["clockwise","anticlockwise"],nt=["table-number","number","letter"];function ve(e,t){return`${e.label}-${t+1}`}function vn(e,t,n){return e?.direction==="anticlockwise"?Math.max(0,t-1-n):n}function rt(e,t){let n=e.chairNumbering,r=n?.start??1,o=vn(n,Math.max(0,Math.round(e.seatCount)),t);return n?.format==="letter"?ee(Math.max(1,r)+o):String(r+o)}function Ie(e,t){let n=rt(e,t);return(e.chairNumbering?.format??"table-number")==="table-number"?`${e.displayLabel??e.label}-${n}`:n}function In(e){if(e===void 0)return null;if(!e||typeof e!="object"||Array.isArray(e))return"chairNumbering must be an object";let t=e,n=Object.keys(t).filter(r=>!["start","direction","format"].includes(r));return n.length?`chairNumbering has unsupported field(s): ${n.join(", ")}`:t.start!==void 0&&(!Number.isInteger(t.start)||t.start<0||t.start>Pe)?`chairNumbering.start must be a whole number from 0 to ${Pe}`:t.direction!==void 0&&!tt.includes(t.direction)?"chairNumbering.direction must be clockwise or anticlockwise":t.format!==void 0&&!nt.includes(t.format)?"chairNumbering.format must be table-number, number or letter":null}function Cn(e){let t={};return e.start!==void 0&&e.start!==1&&(t.start=e.start),e.direction==="anticlockwise"&&(t.direction="anticlockwise"),e.format&&e.format!=="table-number"&&(t.format=e.format),Object.keys(t).length?t:void 0}var z=.02291666666666667,vo=1/z,kn=58,Rn=kn*z;var On=3,ot=0,Ce=120,En=0,An=45,Tn=7,W=1.2;function ke(e,t,n,r){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):r}function Ln(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=Tn?e:On}function it(e,t={}){let n=ke(t.floorBaseHeightM,ot,Ce,0),r=Math.min(Ce,n+Ln(e.elevation)*Rn),o=e.height===void 0?r:ke(e.height,ot,Ce,r),i=ke(e.rake,En,An,0);return{height:o,rake:i}}function at(e){let t=e.length;return t<=3?[...e]:[e[Math.floor(t*.25)],e[Math.floor(t*.5)],e[Math.floor(t*.75)]]}function st(e,t,n){if(!e.length)return 1/0;if(e.length===1)return Math.hypot(t-e[0].x,n-e[0].y);let r=1/0;for(let o=0;o+1<e.length;o++){let i=e[o],a=e[o+1],c=a.x-i.x,d=a.y-i.y,s=c*c+d*d,l=s>1e-12?((t-i.x)*c+(n-i.y)*d)/s:0;l<0?l=0:l>1&&(l=1);let u=t-(i.x+l*c),b=n-(i.y+l*d);if(Math.abs(u)>=r||Math.abs(b)>=r)continue;let p=Math.hypot(u,b);p<r&&(r=p)}return r}function _n(e){let t=0,n=0;for(let i of e)t+=i.x,n+=i.y;let r=e.length||1;t/=r,n/=r;let o=0;for(let i of e){let a=Math.hypot(i.x-t,i.y-n);a>o&&(o=a)}return{cx:t,cy:n,r:o}}function ct(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function Re(e,t){let n=1/0;for(let r of at(e)){let o=st(t,r.x,r.y);o<n&&(n=o)}for(let r of at(t)){let o=st(e,r.x,r.y);o<n&&(n=o)}return n}function Dn(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,r=0;for(let l of e)n+=l.x,r+=l.y;n/=e.length,r/=e.length;let o=-1,i=e[0];for(let l of e){let u=Math.hypot(l.x-n,l.y-r);u>o&&(o=u,i=l)}let a=i.x-n,c=i.y-r,d=Math.hypot(a,c);d>1e-9?(a/=d,c/=d):(a=1,c=0);let s=e.map((l,u)=>({p:l,i:u,t:(l.x-n)*a+(l.y-r)*c})).sort((l,u)=>l.t-u.t);return{pts:s.map(l=>l.p),seatIndices:s.map(l=>t[l.i])}}function jn(e){let t=e.length;if(t<3)return null;let n=0,r=0;for(let C of e)n+=C.x,r+=C.y;n/=t,r/=t;let o=0,i=0,a=0,c=0,d=0,s=0,l=0;for(let C of e){let R=C.x-n,x=C.y-r;o+=R*R,a+=x*x,i+=R*x,c+=R*R*R,d+=x*x*x,s+=R*x*x,l+=x*R*R}let u=o*a-i*i;if(Math.abs(u)<1e-9)return null;let b=(c+s)/2,p=(d+l)/2,y=(b*a-p*i)/u,h=(p*o-b*i)/u,M=y+n,P=h+r;return!Number.isFinite(M)||!Number.isFinite(P)?null:{cx:M,cy:P}}var Nn=.15;function Fn(e){if(e.length<2)return null;let t=e.map(g=>{let f=0,m=0;for(let w of g.pts)f+=w.x,m+=w.y;return{x:f/g.pts.length,y:m/g.pts.length}}),n=0,r=0;for(let g of t)n+=g.x,r+=g.y;n/=t.length,r/=t.length;let o=0,i=0,a=0;for(let g of t){let f=g.x-n,m=g.y-r;o+=f*f,i+=f*m,a+=m*m}let c=o+a,d=o*a-i*i,s=c/2+Math.sqrt(Math.max(0,c*c/4-d)),l,u;Math.abs(i)>1e-12?(l=s-a,u=i):o>=a?(l=1,u=0):(l=0,u=1);let b=Math.hypot(l,u);if(!(b>1e-12))return null;l/=b,u/=b;let p=0,y=0,h=0;for(let g of e){if(g.pts.length<2)continue;let f=g.pts[0],m=g.pts[g.pts.length-1],w=m.x-f.x,S=m.y-f.y,v=Math.hypot(w,S);if(!(v>1e-9))continue;let E=w/v,I=S/v;p+=(E*E-I*I)*v,y+=2*E*I*v,h+=v}if(h>0&&Math.hypot(p,y)>=Gn*h){let g=Math.atan2(y,p)/2,f=Math.cos(g),m=Math.sin(g);Math.abs(l*f+u*m)>Hn&&(l=-m,u=f)}let M=1/0,P=-1/0,C=[];for(let g of e){let f=1/0,m=-1/0;for(let w of g.pts){let S=w.x*l+w.y*u;S<f&&(f=S),S>m&&(m=S),S<M&&(M=S),S>P&&(P=S)}C.push(m-f)}let R=P-M;return R>1e-9?(C.sort((g,f)=>g-f),C[Math.min(C.length-1,Math.floor(C.length*.9))]/R<=Bn?{x:l,y:u}:null):null}var Bn=.35,Gn=.8,Hn=.7;function lt(e,t,n,r){let o=new Map;for(let f of n){let m=t[f],w=m.rowId||`__seat-${f}`,S=o.get(w);S||(S={pts:[],idx:[]},o.set(w,S)),S.pts.push({x:m.x,y:m.y}),S.idx.push(f)}if(!o.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[f,m]of o){let w=Dn(m.pts,m.idx),S=0;for(let v of w.pts)S+=Math.hypot(v.x-r.x,v.y-r.y);i.push({id:f,pts:w.pts,seatIndices:w.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:S/w.pts.length})}let a=i.map(f=>_n(f.pts)),c=i.length<=256?i.length*(i.length-1)/2:0,d=c?new Float64Array(c):null;d?.fill(Number.NaN);let s=d?new Map(i.map((f,m)=>[f,m])):null,l=(f,m)=>(f>m&&([f,m]=[m,f]),f*(2*i.length-f-1)/2+(m-f-1)),u=(f,m)=>{if(!d)return Re(i[f].pts,i[m].pts);let w=l(f,m),S=d[w];if(!Number.isNaN(S))return S;let v=Re(i[f].pts,i[m].pts);return d[w]=v,v},b=(f,m)=>s?u(s.get(f),s.get(m)):Re(f.pts,m.pts),p=[];for(let f=0;f<i.length;f++){let m=1/0;for(let w=0;w<i.length;w++){if(f===w||ct(a[f],a[w])>=m)continue;let S=u(f,w);S<m&&(m=S)}Number.isFinite(m)&&p.push(m)}p.sort((f,m)=>f-m);let y=p.length?p[Math.floor(p.length/2)]:1,h=Math.max(y*1.8,1e-6),M=i.map(()=>[]);for(let f=0;f<i.length;f++)for(let m=f+1;m<i.length;m++)ct(a[f],a[m])>h||u(f,m)<=h&&(M[f].push(m),M[m].push(f));let P=0;for(let f=0;f<i.length;f++){if(i[f].blockId!==-1)continue;let m=P++,w=[f];for(i[f].blockId=m;w.length;){let S=w.pop();for(let v of M[S])i[v].blockId===-1&&(i[v].blockId=m,w.push(v))}}let C=new Map;for(let f of i){let m=C.get(f.blockId)??[];m.push(f),C.set(f.blockId,m)}let R=[];for(let f of i){if(f.pts.length<4)continue;let m=jn(f.pts);m&&(!Number.isFinite(m.cx)||!Number.isFinite(m.cy)||R.push({x:m.cx,y:m.cy}))}let x=R.length>=2?(()=>{let f=R.map(S=>S.x).sort((S,v)=>S-v),m=R.map(S=>S.y).sort((S,v)=>S-v),w=Math.floor(R.length/2);return{cx:f[w],cy:m[w]}})():null;if(x){let f=I=>Math.hypot(I.x-x.cx,I.y-x.cy),m=1/0,w=-1/0,S=[];for(let I of i){let k=1/0,O=-1/0;for(let j of I.pts){let B=f(j);B<k&&(k=B),B>O&&(O=B)}S.push(O-k),k<m&&(m=k),O>w&&(w=O)}let v=w-m;S.sort((I,k)=>I-k);let E=S[Math.min(S.length-1,Math.floor(S.length*.9))];if(v>1e-9&&E/v<=Nn){let I=i.map(A=>{let re=0;for(let Ht of A.pts)re+=f(Ht);return{row:A,radius:re/A.pts.length}}),k=0,O=0;for(let A of I)k+=A.radius,O+=A.row.focalDistance;k/=I.length,O/=I.length;let j=0;for(let A of I)j+=(A.radius-k)*(A.row.focalDistance-O);if(j<0)for(let A of I)A.radius=-A.radius;let G=1/0;for(let A of I)A.radius<G&&(G=A.radius);I.sort((A,re)=>A.radius-re.radius);let N=-1,V=-1/0,Gt=v/Math.max(1,I.length)*.5,Ne=[];for(let A of I)A.radius-V>Gt&&(N++,V=A.radius),A.row.ordinal=N,A.row.blockDepth=A.radius-G,Ne.push(A.row);return{sectionId:e,rows:Ne,blockCount:P}}}let g=[];for(let[,f]of C){let m=Fn(f);if(m){let w=I=>{let k=0;for(let O of I.pts)k+=O.x*m.x+O.y*m.y;return k/I.pts.length};f.sort((I,k)=>w(I)-w(k)),f.length>=2&&f[0].focalDistance>f[f.length-1].focalDistance&&f.reverse();let S=[],v=y*.5;for(let I of f){let k=S[S.length-1];k&&Math.abs(w(I)-w(k[0]))<v?k.push(I):S.push([I])}let E=0;for(let I=0;I<S.length;I++){if(I>0){let k=1/0;for(let O of S[I-1])for(let j of S[I])k=Math.min(k,b(O,j));E+=k}for(let k of S[I])k.ordinal=I,k.blockDepth=E,g.push(k)}}else{let w=1/0;for(let S of f)S.focalDistance<w&&(w=S.focalDistance);f.sort((S,v)=>S.focalDistance-v.focalDistance);for(let S=0;S<f.length;S++)f[S].ordinal=S,f[S].blockDepth=Math.max(0,f[S].focalDistance-w),g.push(f[S])}}return{sectionId:e,rows:g,blockCount:P}}var Un=/^\d{4}-\d{2}-\d{2}$/;function Vn(e){let t=Date.parse(e);return Number.isFinite(t)?Un.test(e)?t+864e5:t:null}function Xn(e,t=Date.now()){if(e.validUntil===void 0){if(e.status!=="approved")return!0;let r=e.assessedAt?Date.parse(e.assessedAt):Number.NaN;return Number.isFinite(r)&&(t instanceof Date?t.getTime():t)<=r+366*864e5}let n=Vn(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function Kn(e,t,n){return!(e.eventConfigurationId&&e.eventConfigurationId!==t||e.eventConfigurationVersion!==void 0&&e.eventConfigurationVersion!==n)}function Yn(e){return e.status!=="draft"&&e.status!=="retracted"}function zn(e,t){return e.status===void 0?t===void 0:e.status!=="approved"?!0:typeof t=="string"&&typeof e.basisSha256=="string"&&e.basisSha256===t}function ut(e,t={}){return!!e&&Yn(e)&&Kn(e,t.activeConfigurationId,t.activeConfigurationVersion)&&zn(e,t.activeBasisSha256)&&Xn(e,t.now)}var dt=36,ft=160;function Wn(e,t=360){let n=Z(Math.round(Number.isFinite(e)?e:1),1,40),r=Z(Number.isFinite(t)?t:360,120,360);return Math.round(Z(n*4*(360/r),dt,ft))}var $n=new Set(["pitch-football","rink-hockey","track-athletics","oval-cricket","pitch-rugby","diamond-baseball","court-basketball","court-tennis","ring-boxing"]);function qn(e){return!!e&&$n.has(e)}var mt=1.1;var Eo=Math.PI*2;var Ao=(()=>{let t={x:0,y:52},n=25,r={x:70,y:t.y-70},o=(r.x*r.x+r.y*r.y-4900)/(2*(r.y+70)),i=o+70,a=[],c=Math.atan2(r.y-o,r.x),d=Math.atan2(r.y-o,-r.x);for(let s=0;s<=24;s++){let l=c+(d-c)*s/24;a.push({x:i*Math.cos(l),y:o+i*Math.sin(l)})}return{half:70,home:t,backstop:n,fence:a}})();function ht(e){return qn(e)}function Qn(e){if((e.kind==="polygon"||e.kind==="polyline"||e.kind==="line")&&e.points&&e.points.length>=2)return e.kind==="polygon"?ae(e,6):e.points;if(e.x==null||e.y==null||e.width==null||e.height==null)return null;let t=e.x,n=e.y,r=e.width,o=e.height;return[{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+o},{x:t,y:n+o}]}function Zn(e,t,n){let r=n*Math.PI/180,o=Math.cos(r),i=Math.sin(r),a=e.x-t.x,c=e.y-t.y;return{x:t.x+a*o-c*i,y:t.y+a*i+c*o}}function bt(e){let t=Qn(e);if(!t||t.length<2)return null;let n=e.rotation??0,r=Math.abs(n)<1e-6?t:t.map(d=>Zn(d,{x:t.reduce((s,l)=>s+l.x,0)/t.length,y:t.reduce((s,l)=>s+l.y,0)/t.length},n)),o=1/0,i=1/0,a=-1/0,c=-1/0;for(let d of r)o=Math.min(o,d.x),i=Math.min(i,d.y),a=Math.max(a,d.x),c=Math.max(c,d.y);return!Number.isFinite(o)||a-o<1e-6||c-i<1e-6?null:{minX:o,minY:i,maxX:a,maxY:c}}var Jn=5,er=3,tr=.92,nr=1.9,rr=2,or=.6,ir=1,ar=.06;function sr(e){return e.heightM!==void 0?e.heightM:e.stageKind==="ring-boxing"?mt:ht(e.stageKind)?ar:ir}function pt(e){let t=1/0,n=1/0,r=-1/0,o=-1/0,i=-1/0;for(let a of $(e)){let c=a.baseHeightM??0;for(let d of a.objects){if(d.type!=="shape"||d.role!=="stage")continue;let s=bt(d);s&&(t=Math.min(t,s.minX),n=Math.min(n,s.minY),r=Math.max(r,s.maxX),o=Math.max(o,s.maxY),i=Math.max(i,c+sr(d)))}}return!Number.isFinite(t)||!Number.isFinite(i)?null:{minX:t,minY:n,maxX:r,maxY:o,deckTopM:i}}function cr(e,t,n,r){let o=1/0,i=1/0,a=-1/0,c=-1/0;for(let p of e)Number.isFinite(p.eyeHeightM)&&(o=Math.min(o,p.x),a=Math.max(a,p.x),i=Math.min(i,p.y),c=Math.max(c,p.y));if(!Number.isFinite(o))return null;let d=o*t,s=i*t,l=Math.max(1,Math.ceil((a-o)*t/n)+1),u=Math.max(1,Math.ceil((c-i)*t/n)+1),b=new Float64Array(l*u).fill(-1/0);for(let p of e){if(!Number.isFinite(p.eyeHeightM))continue;let y=p.eyeHeightM-W,h=Math.min(l-1,Math.max(0,Math.floor((p.x*t-d)/n))),P=Math.min(u-1,Math.max(0,Math.floor((p.y*t-s)/n)))*l+h,C=y+r;C>b[P]&&(b[P]=C)}return{cellM:n,minX:d,minY:s,cols:l,rows:u,top:b}}function lr(e,t,n){let r=Math.floor((t-e.minX)/e.cellM),o=Math.floor((n-e.minY)/e.cellM);return r<0||o<0||r>=e.cols||o>=e.rows?-1/0:e.top[o*e.cols+r]}function yt(e,t,n={}){let r=new Map;if(!t||!e.length)return r;let o=n.metresPerChartUnit??z,i=n.cellM??or,a=n.chairBackM??tr,c=n.selfRowSkipM??rr,d=n.clearThreshold??.9,s=n.partialThreshold??.25,l=Math.max(1,n.columns??Jn),u=Math.max(1,n.rows??er),b=cr(e,o,i,a);if(!b)return r;let p=(t.maxX-t.minX)*o,y=(t.maxY-t.minY)*o,h=p>=y,M=(t.minX+t.maxX)/2*o,P=(t.minY+t.maxY)/2*o,C=[];for(let x=0;x<l;x++){let g=(x+.5)/l-.5,f=h?M+g*p:M,m=h?P:P+g*y;for(let w=0;w<u;w++){let S=t.deckTopM+(u===1?0:w/(u-1)*nr);C.push({x:f,y:m,z:S})}}let R=i/2;for(let x of e){if(!Number.isFinite(x.eyeHeightM))continue;let g=x.x*o,f=x.y*o,m=x.eyeHeightM,w=0,S=1/0;for(let E of C){let I=E.x-g,k=E.y-f,O=Math.hypot(I,k);if(!(O>c)){w++;continue}let j=I/O,B=k/O,G=0;for(let N=c;N<O;N+=R){let V=lr(b,g+j*N,f+B*N);if(!(!Number.isFinite(V)||V>=m)&&V>m+(E.z-m)*N/O){G=N;break}}G?S=Math.min(S,G):w++}let v=w/C.length;v>=d||r.set(x.id,{seatId:x.id,mark:v<s?"obstructedView":"restrictedView",visibleFraction:v,totalRays:C.length,atDistanceM:Number.isFinite(S)?S:0})}return r}function gt(e,t){if(!t.size)return 0;let n=0;for(let r of e){let o=t.get(r.id);if(!o)continue;let i=r.commercial;i?.restrictedView!==void 0||i?.obstructedView!==void 0||(r.commercial={...i,[o.mark]:!0},n++)}return n}function Oe(e){return e?e.accessibility?.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var ue=Math.PI/180,ur=9,H=16;function Ee(e,t,n,r){let o=n*ue,i=Math.cos(o),a=Math.sin(o);return{x:r.x+e*i-t*a,y:r.y+e*a+t*i}}function de(e){let{seatCount:t,seatSpacing:n,curve:r,rotation:o,origin:i}=e,a=[];if(e.path)return pe(e.path,t);if(t<=1)return t===1&&a.push({x:i.x,y:i.y}),a;if(r===0){for(let s=0;s<t;s++)a.push(Ee(s*n,0,o,i));return a}let c=r/(t-1)*ue,d=n/(2*Math.sin(Math.abs(c)/2));for(let s=0;s<t;s++){let l=s*c,u=d*Math.sin(l),b=-d+d*Math.cos(l);a.push(Ee(u,b,o,i))}return a}function wt(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function dr(e){let t=new Set((e.overrides??[]).filter(n=>n.skip&&Number.isInteger(n.index)&&n.index>=0&&n.index<e.seatCount).map(n=>n.index));return Math.max(0,e.seatCount-t.size)}function Pt(e,t){let n=wt(e);return de(e).map((r,o)=>{let i=n.get(o),a=Oe(i),c=et(e,o,i),d={...e.commercial,...i?.commercial};return{index:o,x:r.x+(i?.dx??0),y:r.y+(i?.dy??0),label:c,displayLabel:we(e,o,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:a.length>0,accessibility:a,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(d).some(s=>s!==void 0&&s!==!1&&s!=="")?d:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle??e.seatLabelStyle}})}function vt(e){let t=[];for(let n of Pt(e))n.skipped||t.push({id:`${e.id}:${n.index}`,label:n.label,displayLabel:n.displayLabel===n.label?void 0:n.displayLabel,x:n.x,y:n.y,rowId:e.id,categoryKey:n.categoryKey,accessible:n.accessible||void 0,accessibility:n.accessibility.length?n.accessibility:void 0,wheelchairSpaceType:n.wheelchairSpaceType,commercial:n.commercial,glyph:n.glyph,viewUrl:n.viewUrl,viewMeta:n.viewMeta,labelStyle:n.labelStyle});return t}function It(e){if(e.seatCountsBySide)return{...e.seatCountsBySide};let t=e.sides&&e.sides.length?e.sides:["top","bottom"],n=["top","bottom","left","right"].filter(i=>t.includes(i)),r={top:0,bottom:0,left:0,right:0};if(!n.length)return r;let o=Math.max(0,Math.round(e.seatCount));for(let i=0;i<o;i++)r[n[i%n.length]]+=1;return r}function Te(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let r=new Map((e.overrides??[]).map(l=>[l.index,l])),o=(l,u,b,p)=>{let y=r.get(l),h=Oe(y),M=y?.label??ve(e,l);return{index:l,label:M,displayLabel:y?.displayLabel??Ie(e,l),x:u+(y?.dx??0),y:b+(y?.dy??0),categoryKey:y?.categoryKey??e.categoryKey,skipped:!!y?.skip,accessible:h.length>0,accessibility:h,wheelchairSpaceType:y?.wheelchairSpaceType,commercial:y?.commercial,glyph:y?.glyph,viewUrl:y?.viewFromSeatUrl,viewMeta:y?.viewFromSeatUrl?y.viewFromSeatMeta:void 0,labelStyle:y?.labelStyle,...p?{side:p}:{}}};if(e.shape==="round"){let l=(e.radius??40)+H,u=e.rotation*ue,b=Math.max(0,Math.min(360,e.seatArc??360));if(b>=360||n===1){for(let M=0;M<n;M++){let P=u+M/n*2*Math.PI;t.push(o(M,e.center.x+l*Math.cos(P),e.center.y+l*Math.sin(P)))}return t}let p=b*ue,y=(2*Math.PI-p)/2,h=u+y;for(let M=0;M<n;M++){let P=h+M/(n-1)*p;t.push(o(M,e.center.x+l*Math.cos(P),e.center.y+l*Math.sin(P)))}return t}let i=e.width??80,a=e.height??50,c=It(e),d=["top","bottom","left","right"],s=0;for(let l of d){let u=c[l];for(let b=0;b<u;b++){let p,y;l==="top"?(p=-i/2+(b+.5)*i/u,y=-a/2-H):l==="bottom"?(p=-i/2+(b+.5)*i/u,y=a/2+H):l==="left"?(p=-i/2-H,y=-a/2+(b+.5)*a/u):(p=i/2+H,y=-a/2+(b+.5)*a/u);let h=Ee(p,y,e.rotation,e.center);t.push(o(s++,h.x,h.y,l))}}return t}function fr(e){return e.bookAsWhole||e.variableOccupancy?Math.max(0,Math.round(e.seatCount)):Te(e).filter(t=>!t.skipped).length}function Ct(e){return Te(e).filter(t=>!t.skipped).map(t=>({id:`${e.id}:${t.index}`,label:t.label,...t.displayLabel!==t.label?{displayLabel:t.displayLabel}:{},x:t.x,y:t.y,rowId:e.id,categoryKey:t.categoryKey,...t.accessible?{accessible:!0}:{},...t.accessibility.length?{accessibility:t.accessibility}:{},...t.wheelchairSpaceType?{wheelchairSpaceType:t.wheelchairSpaceType}:{},...t.commercial?{commercial:t.commercial}:{},...t.glyph?{glyph:t.glyph}:{},...t.viewUrl?{viewUrl:t.viewUrl}:{},...t.viewUrl&&t.viewMeta?{viewMeta:t.viewMeta}:{},...t.labelStyle?{labelStyle:t.labelStyle}:{}}))}function kt(e){return[{id:`${e.id}:0`,label:e.label,...e.displayLabel&&e.displayLabel!==e.label?{displayLabel:e.displayLabel}:{},x:e.center.x,y:e.center.y,rowId:e.id,categoryKey:e.categoryKey,kind:"booth",...e.commercial?.note?{commercial:{note:e.commercial.note}}:{}}]}function Ae(e,t){let n=!1;for(let r=0,o=t.length-1;r<t.length;o=r++){let i=t[r].x,a=t[r].y,c=t[o].x,d=t[o].y;a>e.y!=d>e.y&&e.x<(c-i)*(e.y-a)/(d-a)+i&&(n=!n)}return n}function Rt(e,t){return t.some((n,r)=>{let o=t[(r+1)%t.length],i=(e.y-n.y)*(o.x-n.x)-(e.x-n.x)*(o.y-n.y);if(Math.abs(i)>1e-7)return!1;let a=(e.x-n.x)*(o.x-n.x)+(e.y-n.y)*(o.y-n.y),c=(o.x-n.x)**2+(o.y-n.y)**2;return a>=-1e-7&&a<=c+1e-7})}function U(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function te(e,t,n){return Ae(e,t)&&!U(n).some(r=>Ae(e,r)||Rt(e,r))}function mr(e,t){return Se(e,t).point}function le(e){if(!e.length)return{x:0,y:0};let t=0,n=0;for(let r of e)t+=r.x,n+=r.y;return{x:t/e.length,y:n/e.length}}function Le(e){switch(e.type){case"row":{let t=de(e),n=wt(e),r=0,o=0,i=0;for(let a=0;a<t.length;a++){let c=n.get(a);c?.skip||(r+=t[a].x+(c?.dx??0),o+=t[a].y+(c?.dy??0),i++)}return i?{x:r/i,y:o/i}:{x:e.origin.x,y:e.origin.y}}case"table":case"booth":return{x:e.center.x,y:e.center.y};case"gaArea":return le(e.points);case"section":return le(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?le(e.points):e.x!=null&&e.y!=null&&e.width!=null&&e.height!=null?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:e.x??0,y:e.y??0};case"decorImage":return{x:e.x+e.width/2,y:e.y+e.height/2}}}function xt(e,t){return e.length===t.length&&e.every((n,r)=>n.x===t[r].x&&n.y===t[r].y)}function hr(e,t){if(e.type!=="gaArea"||!xt(e.points,t.outline))return!1;let n=U(e.holes),r=U(t.holes);return n.length===r.length&&n.every((o,i)=>xt(o,r[i]))}function Ot(e,t,n=e.filter(o=>o.type==="section"),r=Le(t)){let o="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(o?n.find(a=>(a.logicalSectionId??a.id)===o&&(hr(t,a)||te(r,a.outline,a.holes))):void 0)??n.find(a=>te(r,a.outline,a.holes))}function $(e){return e.floors&&e.floors.length?e.floors:[{id:"floor-0",name:"Main",objects:e.objects,focalPoint:e.focalPoint,referenceImage:e.referenceImage,backgroundImage:e.backgroundImage}]}function br(e,t){let n=$(e);return(t?n.find(r=>r.id===t):n[0])?.objects??[]}function Et(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}function fe(e,t,n){let r=i=>({x:i.x+t,y:i.y+n}),o=i=>i.map(r);switch(e.type){case"row":return{...e,origin:r(e.origin)};case"table":case"booth":return{...e,center:r(e.center)};case"gaArea":return{...e,points:o(e.points),...e.holes?{holes:U(e.holes).map(o)}:{}};case"section":return{...e,outline:o(e.outline),...e.outlinePath?{outlinePath:Qe(e.outlinePath,t,n)}:{},...e.holes?{holes:U(e.holes).map(o)}:{}};case"text":return{...e,position:r(e.position)};case"shape":return{...e,...e.points?{points:o(e.points)}:{},...e.holes?{holes:U(e.holes).map(o)}:{},...e.x!=null?{x:e.x+t}:{},...e.y!=null?{y:e.y+n}:{}};case"decorImage":return{...e,x:e.x+t,y:e.y+n}}}function pr(e,t=900){if(!e.floors||e.floors.length<2)return e;let n=[];return e.floors.forEach((r,o)=>{let i=-o*t;for(let a of r.objects)n.push(i===0?a:fe(a,0,i))}),{...e,objects:n,floors:void 0}}function St(e,t,n,r,o,i,a,c,d){let s=[],l=e.filter(h=>h.type==="section"),u=J(e),b=h=>!h?.eventConfigurationId||h.eventConfigurationId===r&&(h.eventConfigurationVersion===void 0||h.eventConfigurationVersion===d),p=h=>ut(h,{activeConfigurationId:r,activeConfigurationVersion:d,activeBasisSha256:o,now:c}),y=(h,M)=>p(h)?{...h,coverage:M}:void 0;for(let h of e){let M=[];if(h.type==="row"?M=vt(h):h.type==="table"?M=Ct(h):h.type==="booth"&&(M=kt(h)),!M.length)continue;for(let g of M)g.viewUrl&&!b(g.viewMeta)&&(g.viewUrl=void 0,g.viewMeta=void 0);if(h.type==="row"){let g=u.get(h.id);if(g){let f=new Map((h.overrides??[]).map(m=>[m.index,m]));for(let m of M){let w=Number(m.id.slice(m.id.lastIndexOf(":")+1));if(!Number.isInteger(w))continue;m.logicalRowId=g.groupId,m.logicalSeatIndex=g.adjacencyOffset+w,f.get(w)?.displayLabel||(m.displayLabel=we(h,w,g)),!m.viewUrl&&g.viewFromSeatUrl&&b(g.viewFromSeatMeta)&&(m.viewUrl=g.viewFromSeatUrl,m.viewMeta=g.viewFromSeatMeta);let S=f.get(w)?.confidenceEvidence;m.confidenceEvidence=y(S,"exact-seat")??y(h.confidenceEvidence,"row-representative")??y(g.confidenceEvidence,"row-representative")}}}let P=Ot(e,h,l,h.type==="row"?le(M):Le(h)),C=P?.viewFromSeatUrl,x=(P?.zone?t?.find(g=>g.id===P.zone):void 0)?.focalPoint??n;for(let g of M){if(!g.confidenceEvidence){let f=Number(g.id.slice(g.id.lastIndexOf(":")+1)),m=(h.type==="row"||h.type==="table")&&Number.isInteger(f)?h.overrides?.find(w=>w.index===f)?.confidenceEvidence:void 0;g.confidenceEvidence=y(m,"exact-seat")??(h.type==="row"?y(h.confidenceEvidence,"row-representative"):void 0)}g.confidenceEvidence??=y(P?.confidenceEvidence,"section-representative")??(a?y(a.evidence,a.coverage):void 0),!g.viewUrl&&C&&b(P?.viewFromSeatMeta)&&(g.viewUrl=C,g.viewMeta=P?.viewFromSeatMeta),!g.viewUrl&&i&&b(i.meta)&&(g.viewUrl=i.url,g.viewMeta=i.meta),P&&(g.sectionId=P.logicalSectionId??P.id),P?.zone&&(g.zoneId=P.zone),x&&(g.focalPoint={...x})}s.push(...M)}return s}function yr(e,t={}){if(e.floors?.length){let r=[];for(let o of e.floors){let i=o.focalPoint??e.focalPoint,a=o.viewFromSeatUrl?{url:o.viewFromSeatUrl,meta:o.viewFromSeatMeta}:e.viewFromSeatUrl?{url:e.viewFromSeatUrl,meta:e.viewFromSeatMeta}:void 0,c=o.confidenceEvidence?{evidence:o.confidenceEvidence,coverage:"floor-representative"}:e.confidenceEvidence?{evidence:e.confidenceEvidence,coverage:"venue-representative"}:void 0,d=St(o.objects,e.zones,i,e.eventConfigurationId,e.confidenceBasisSha256,a,c,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);t.resolveEyeHeights!==!1&&Mt(o.objects,o.focalPoint??e.focalPoint,o.baseHeightM??0,d);for(let s of d)s.floorId=o.id;for(let s of d)r.push(s)}return r}let n=St(e.objects,e.zones,e.focalPoint,e.eventConfigurationId,e.confidenceBasisSha256,e.viewFromSeatUrl?{url:e.viewFromSeatUrl,meta:e.viewFromSeatMeta}:void 0,e.confidenceEvidence?{evidence:e.confidenceEvidence,coverage:"venue-representative"}:void 0,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);return t.resolveEyeHeights!==!1&&Mt(e.objects,e.focalPoint,t.floorBaseHeightM??0,n),gr(e,n,t)}function gr(e,t,n){return!n.deriveRestrictedView||e.derivedRestrictedView===!1||n.resolveEyeHeights===!1||gt(t,yt(t,pt(e))),t}function Mt(e,t,n,r){let o=e.filter(u=>u.type==="section"),i=n>0||o.some(u=>u.height!==void 0||u.rake!==void 0||(u.elevation??0)>0);if(!o.length||!i||!t){for(let u of r)u.eyeHeightM=n+W;return}let a=new Array(r.length),c=new Map;for(let u of o)c.has(u.id)||c.set(u.id,u);let d=new Map,s=new Map;for(let u=0;u<r.length;u++){let b=r[u],y=(b.sectionId?c.get(b.sectionId)??o.find(M=>M.logicalSectionId===b.sectionId&&te({x:b.x,y:b.y},M.outline,M.holes)):void 0)??o.find(M=>te({x:b.x,y:b.y},M.outline,M.holes))??null;if(a[u]=y,!y)continue;d.has(y.id)||d.set(y.id,it(y,{floorBaseHeightM:n}));let h=s.get(y.id);h?h.push(u):s.set(y.id,[u])}let l=new Array(r.length).fill(void 0);for(let[u,b]of s){let p=d.get(u);if(!p)continue;let y=p.rake>0?Math.tan(p.rake*Math.PI/180):0,h=lt(u,r,b,t);for(let M of h.rows){let P=M.blockDepth*z*y,C=p.height+P;for(let R of M.seatIndices)l[R]=C}}for(let u=0;u<r.length;u++){let b=r[u],p=a[u];if(!p){b.eyeHeightM=n+W;continue}let y=d.get(p.id);b.eyeHeightM=(l[u]??y.height)+W}}var ce=40;function ne(e,t){let n=t?.freeText==="exclude",r=1/0,o=1/0,i=-1/0,a=-1/0,c=(s,l)=>{s<r&&(r=s),l<o&&(o=l),s>i&&(i=s),l>a&&(a=l)},d=s=>{if(Array.isArray(s))for(let l of s)!l||typeof l!="object"||c(l.x,l.y)};for(let s of Et(e))if(s.type==="row"){let l=new Map((s.overrides??[]).map(u=>[u.index,u]));de(s).forEach((u,b)=>{let p=l.get(b);p?.skip||c(u.x+(p?.dx??0),u.y+(p?.dy??0))})}else if(s.type==="gaArea")d(s.points);else if(s.type==="section")d(s.outline);else if(s.type==="decorImage")c(s.x,s.y),c(s.x+s.width,s.y+s.height);else if(s.type==="shape")s.points&&s.points.length?d(ae(s)):s.x!=null&&s.y!=null&&s.width!=null&&s.height!=null&&(c(s.x,s.y),c(s.x+s.width,s.y+s.height));else if(s.type==="table"){let l=H+ur,u=s.shape==="round"?(s.radius??40)+l:Math.max((s.width??80)/2,(s.height??50)/2)+l;c(s.center.x-u,s.center.y-u),c(s.center.x+u,s.center.y+u)}else if(s.type==="booth"){let l=Math.max(s.width,s.height)/2;c(s.center.x-l,s.center.y-l),c(s.center.x+l,s.center.y+l)}else if(s.type==="text"){if(n)continue;let l=ye(s);c(s.position.x,s.position.y),c(s.position.x+l.width,s.position.y+l.height)}for(let s of[e.referenceImage,e.backgroundImage]){if(!s)continue;let{center:l,width:u}=s;if(!l||!Number.isFinite(l.x)||!Number.isFinite(l.y)||!Number.isFinite(u))continue;let b=u*3/4;c(l.x-u/2,l.y-b/2),c(l.x+u/2,l.y+b/2)}if(!isFinite(r)){let s=e.focalPoint??{x:0,y:0};return{x:s.x-200,y:s.y-200,width:400,height:400}}return{x:r-ce,y:o-ce,width:i-r+ce*2,height:a-o+ce*2}}function At(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}var Tt=.08,xr=.045;function _e(e){return`__floor__:${encodeURIComponent(e)}`}function Lt(e,t,n){return{...e,objects:t,floors:void 0,...n?{focalPoint:n}:{},referenceImage:void 0,backgroundImage:void 0}}function Sr(e,t,n){let r=e.focalPoint??t.focalPoint;return r?r.x:n.x+n.width/2}function _t(e){let t=e.floors??[];if(!t.length)return[];let n=t.map(a=>ne(Lt(e,a.objects,a.focalPoint),{freeText:"exclude"})),o=Math.max(1,...n.map(a=>a.width))*Tt,i=0;return t.map((a,c)=>{let d=n[c],s=i-(d.y+d.height);return i-=d.height+o,{floorId:a.id,label:a.name??a.id,level:c,levelBadge:c===0?"G":String(c),translation:{x:-Sr(a,e,d),y:s},bounds:d}})}function Mr(e,t,n,r){let o=t==="name"?e.label:e.levelBadge;if(!o)return[];let i=Math.max(1,n*xr),a=e.bounds.x+e.translation.x,c=e.bounds.y+e.translation.y+i*.4,d=`floor-level-${e.floorId}`,s={type:"text",id:`${d}-text`,text:o,position:{x:a,y:c},fontSize:i,rotation:0,color:r,bold:!0};if(t==="name")return[s];let l=i*.95;return[{type:"shape",id:`${d}-badge`,kind:"ellipse",x:a-l*.35,y:c-l*.3,width:l*2,height:l*2,fill:"transparent",stroke:{color:r,width:Math.max(1,i*.09)},opacity:.8},s]}function wr(e,t={}){let n=e.floors;if(!n||n.length<2)return e;let r=_t(e),o=[];n.forEach((s,l)=>{let{x:u,y:b}=r[l].translation;for(let p of s.objects)l>0&&p.type==="shape"&&p.role==="stage"||o.push(fe(p,u,b))});let i={...e,objects:o,floors:void 0},a=ne(i,{freeText:"exclude"}),c=Math.max(1,a.width,a.height),d=e.theme?.textColor??"#94a3b8";for(let s of r)o.push(...Mr(s,t.labelStyle??"number",c,d));return{...i,objects:o,referenceImage:void 0,backgroundImage:void 0}}function Pr(e){if(!e.floors||e.floors.length<2)return e;let t=!e.zones?.length,n=new Set,r=e.floors.flatMap(i=>i.objects.flatMap(a=>{if(a.type==="shape"&&a.role==="stage"){let c=JSON.stringify([a.kind,a.x,a.y,a.width,a.height,a.points,a.rotation??0,a.label,a.heightM,a.eventConfigurationIds]);if(n.has(c))return[];n.add(c)}return t&&a.type==="section"?[{...a,zone:_e(i.id)}]:[a]})),o=t?e.floors.map(i=>({id:_e(i.id),label:i.name,focalPoint:{...i.focalPoint}})):e.zones;return{...e,objects:r,zones:o,floors:void 0,referenceImage:void 0,backgroundImage:At(e)}}function vr(e){let t=e.floors;if(!t?.length)return null;let n=t.find(i=>i.objects.some(a=>a.type==="shape"&&a.role==="stage"));if(n)return n.id;let r=t[0],o=-1;for(let i of t){let a=ne(Lt(e,i.objects,i.focalPoint),{freeText:"exclude"}),c=a.width*a.height;c>o&&(o=c,r=i)}return r.id}var Ir=640;function Cr(e,t){return(e.floors?.length??0)<2?null:"all"}function kr(e,t=0){let n=Math.max(1,e.width,e.height),r={x:e.x+e.width/2,y:e.y+e.height/2},o=n*1.55,i=Math.max(n*.82,Math.max(0,t)+n*.45);return{target:r,distance:o,height:i,focalLength:Math.hypot(o,i),yawRad:-8*Math.PI/180}}function me(e,t,n=0){let r=t.x-e.target.x,o=t.y-e.target.y,i=Math.cos(e.yawRad),a=Math.sin(e.yawRad),c=r*i-o*a,s=r*a+o*i-e.distance,l=n-e.height,u=Math.hypot(e.distance,e.height),b=(-e.distance*s-e.height*l)/u,p=(-e.height*s+e.distance*l)/u,y=Math.max(u*.08,b),h=e.focalLength/y;return{x:e.target.x+c*h,y:e.target.y-p*h,depth:y,scale:h}}function Rr(e,t){return{x:e.a*t.x+e.c*t.y+e.e,y:e.b*t.x+e.d*t.y+e.f}}function Or(e){let t=e.a*e.d-e.b*e.c;if(!Number.isFinite(t)||Math.abs(t)<1e-9)throw new Error("perspective projection produced a singular affine");let n=e.d/t,r=-e.b/t,o=-e.c/t,i=e.a/t;return{a:n,b:r,c:o,d:i,e:-(n*e.e+o*e.f),f:-(r*e.e+i*e.f)}}function Er(e,t){return{a:e.a*t.a+e.c*t.b,b:e.b*t.a+e.d*t.b,c:e.a*t.c+e.c*t.d,d:e.b*t.c+e.d*t.d,e:e.a*t.e+e.c*t.f+e.e,f:e.b*t.e+e.d*t.f+e.f}}function Ar(e,t,n=()=>0){let r=me(e,t,n(t)),o={x:t.x+1,y:t.y},i={x:t.x,y:t.y+1},a=me(e,o,n(o)),c=me(e,i,n(i)),d=a.x-r.x,s=a.y-r.y,l=c.x-r.x,u=c.y-r.y;return{a:d,b:s,c:l,d:u,e:r.x-d*t.x-l*t.y,f:r.y-s*t.x-u*t.y}}function Tr(e){let t=Math.hypot(e.a,e.b),n=e.a*e.d-e.b*e.c;return{rotationDeg:Math.atan2(e.b,e.a)*180/Math.PI,scaleX:t,scaleY:n/Math.max(t,1e-9),skewX:(e.a*e.c+e.b*e.d)/Math.max(n,1e-9)}}var Dt=9;function Lr(e){if(e.kind==="circle")return{hx:e.r,hy:e.r};let t=e.width/2,n=e.height/2,r=e.rotation??0;if(!r)return{hx:t,hy:n};let o=r*Math.PI/180,i=Math.abs(Math.cos(o)),a=Math.abs(Math.sin(o));return{hx:t*i+n*a,hy:t*a+n*i}}function _r(e,t,n){let r=t-e.seat.x,o=n-e.seat.y;if(e.shape.kind==="circle")return r*r+o*o<=e.shape.r*e.shape.r;let i=e.shape.rotation??0,a=r,c=o;if(i){let d=-i*Math.PI/180,s=Math.cos(d),l=Math.sin(d);a=r*s-o*l,c=r*l+o*s}return Math.abs(a)<=e.shape.width/2&&Math.abs(c)<=e.shape.height/2}function Dr(e,t,n,r,o){if(e.shape.kind==="circle"){let y=Math.min(Math.max(e.seat.x,t),r),h=Math.min(Math.max(e.seat.y,n),o),M=e.seat.x-y,P=e.seat.y-h;return M*M+P*P<=e.shape.r*e.shape.r}let i=e.shape.rotation??0;if(!i)return e.seat.x-e.hx<=r&&e.seat.x+e.hx>=t&&e.seat.y-e.hy<=o&&e.seat.y+e.hy>=n;let a=i*Math.PI/180,c=Math.cos(a),d=Math.sin(a),s=e.shape.width/2,l=e.shape.height/2,u=[[-s,-l],[s,-l],[s,l],[-s,l]].map(([y,h])=>[e.seat.x+y*c-h*d,e.seat.y+y*d+h*c]),b=[[t,n],[r,n],[r,o],[t,o]],p=[[1,0],[0,1],[c,d],[-d,c]];for(let[y,h]of p){let M=1/0,P=-1/0;for(let[x,g]of u){let f=x*y+g*h;f<M&&(M=f),f>P&&(P=f)}let C=1/0,R=-1/0;for(let[x,g]of b){let f=x*y+g*h;f<C&&(C=f),f>R&&(R=f)}if(P<C||R<M)return!1}return!0}function jr(e,t={}){let n=t.seatRadius??Dt,r=e.length,o=new Array(r),i=1/0,a=1/0,c=-1/0,d=-1/0,s=0;for(let f=0;f<r;f++){let m=e[f],w=t.shapeOf?.(m)??{kind:"circle",r:n},{hx:S,hy:v}=Lr(w);o[f]={seat:m,shape:w,hx:S,hy:v},m.x-S<i&&(i=m.x-S),m.y-v<a&&(a=m.y-v),m.x+S>c&&(c=m.x+S),m.y+v>d&&(d=m.y+v),S>s&&(s=S),v>s&&(s=v)}r===0&&(i=0,a=0,c=0,d=0);let l=s>0?s*4:1,u=Math.max(c-i,0),b=Math.max(d-a,0),p=Math.max(64,t.maxCells??r*4),y=l,h=Math.max(1,Math.ceil(u/y)||1),M=Math.max(1,Math.ceil(b/y)||1);for(;h*M>p&&(h>1||M>1);)y*=2,h=Math.max(1,Math.ceil(u/y)||1),M=Math.max(1,Math.ceil(b/y)||1);let P=h*M,C=new Int32Array(P+1),R=0;for(let f=0;f<r;f++){let m=o[f],w=F(Math.floor((m.seat.x-m.hx-i)/y),0,h-1),S=F(Math.floor((m.seat.x+m.hx-i)/y),0,h-1),v=F(Math.floor((m.seat.y-m.hy-a)/y),0,M-1),E=F(Math.floor((m.seat.y+m.hy-a)/y),0,M-1);for(let I=v;I<=E;I++)for(let k=w;k<=S;k++)C[I*h+k+1]++,R++}for(let f=0;f<P;f++)C[f+1]+=C[f];let x=new Int32Array(R),g=C.slice(0,P);for(let f=0;f<r;f++){let m=o[f],w=F(Math.floor((m.seat.x-m.hx-i)/y),0,h-1),S=F(Math.floor((m.seat.x+m.hx-i)/y),0,h-1),v=F(Math.floor((m.seat.y-m.hy-a)/y),0,M-1),E=F(Math.floor((m.seat.y+m.hy-a)/y),0,M-1);for(let I=v;I<=E;I++)for(let k=w;k<=S;k++){let O=I*h+k;x[g[O]++]=f}}return{seats:e,entries:o,minX:i,minY:a,cell:y,cols:h,rows:M,cellStart:C,items:x,stamp:new Int32Array(r),epoch:0}}function Nr(e,t,n={}){let{cols:r,rows:o,cell:i,minX:a,minY:c,cellStart:d,items:s,entries:l}=e,u=Math.floor((t.x-a)/i),b=Math.floor((t.y-c)/i);if(u<0||b<0||u>=r||b>=o)return null;let p=b*r+u,y=d[p+1],h=-1,M=1/0;for(let P=d[p];P<y;P++){let C=s[P],R=l[C];if(n.filter&&!n.filter(R.seat.id,R.seat)||!_r(R,t.x,t.y))continue;let x=t.x-R.seat.x,g=t.y-R.seat.y,f=x*x+g*g;(f<M||f===M&&C<h)&&(M=f,h=C)}return h<0?null:l[h].seat.id}function Fr(e,t,n,r={}){if(!(n>0))return null;let{cols:o,rows:i,cell:a,minX:c,minY:d,cellStart:s,items:l,entries:u}=e,b=Math.max(0,Math.floor((t.x-n-c)/a)),p=Math.min(o-1,Math.floor((t.x+n-c)/a)),y=Math.max(0,Math.floor((t.y-n-d)/a)),h=Math.min(i-1,Math.floor((t.y+n-d)/a));if(b>p||y>h)return null;let M=-1,P=n*n,C=e.stamp,R=++e.epoch;for(let x=y;x<=h;x++){let g=x*o;for(let f=b;f<=p;f++){let m=g+f,w=s[m+1];for(let S=s[m];S<w;S++){let v=l[S];if(C[v]===R)continue;C[v]=R;let E=u[v];if(r.filter&&!r.filter(E.seat.id,E.seat))continue;let I=t.x-E.seat.x,k=t.y-E.seat.y,O=I*I+k*k;(O<P||O===P&&v<M)&&(P=O,M=v)}}}return M<0?null:u[M].seat.id}function Br(e,t,n={}){let r=Math.min(t.x,t.x+t.width),o=Math.max(t.x,t.x+t.width),i=Math.min(t.y,t.y+t.height),a=Math.max(t.y,t.y+t.height),c=n.mode??"center",{cols:d,rows:s,cell:l,minX:u,minY:b,cellStart:p,items:y,entries:h}=e,M=Math.max(0,Math.floor((r-u)/l)),P=Math.min(d-1,Math.floor((o-u)/l)),C=Math.max(0,Math.floor((i-b)/l)),R=Math.min(s-1,Math.floor((a-b)/l));if(M>P||C>R)return[];let x=[],g=e.stamp,f=++e.epoch;for(let m=C;m<=R;m++){let w=m*d;for(let S=M;S<=P;S++){let v=w+S,E=p[v+1];for(let I=p[v];I<E;I++){let k=y[I];if(g[k]===f)continue;g[k]=f;let O=h[k];if(n.filter&&!n.filter(O.seat.id,O.seat))continue;(c==="center"?O.seat.x>=r&&O.seat.x<=o&&O.seat.y>=i&&O.seat.y<=a:Dr(O,r,i,o,a))&&x.push(k)}}}return x.sort((m,w)=>m-w),x.map(m=>h[m].seat.id)}function Gr(e){let t=e.cols*e.rows,n=0,r=0;for(let i=0;i<t;i++){let a=e.cellStart[i+1]-e.cellStart[i];a>0&&n++,a>r&&(r=a)}let o=e.items.length;return{cell:e.cell,cols:e.cols,rows:e.rows,cells:t,occupiedCells:n,refs:o,maxPerCell:r,meanPerOccupiedCell:n?o/n:0}}var Hr=[{key:"wheelchair",label:"Wheelchair space",short:"Wheelchair",icon:"\u267F"},{key:"companion",label:"Companion seat",short:"Companion",icon:"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}"},{key:"semi-ambulatory",label:"Semi-ambulatory (limited mobility)",short:"Limited mobility",icon:"\u{1F9AF}"},{key:"designated-aisle",label:"Designated aisle / transfer seat",short:"Aisle transfer",icon:"AS"},{key:"step-free",label:"Step-free accessible seat",short:"Step-free",icon:"SF"},{key:"hearing",label:"Assistive listening",short:"Hearing",icon:"\u{1F9BB}"},{key:"cart",label:"CART live-caption view",short:"CART captions",icon:"CC"},{key:"sign-language",label:"Sign-language view",short:"Sign language",icon:"\u{1F91F}"},{key:"low-vision",label:"Blind / low-vision viewing",short:"Low vision",icon:"LV"},{key:"sensory-friendly",label:"Quiet / sensory-friendly seating",short:"Sensory-friendly",icon:"QS"},{key:"plus-size",label:"Plus-size seat",short:"Plus-size",icon:"\u{1F4BA}"},{key:"lift-armrest",label:"Lift-up armrest",short:"Lift armrest",icon:"\u2195\uFE0F"}],ui=new Map(Hr.map(e=>[e.key,e]));var Ur=[{key:"obstructedView",label:"Obstructed view",short:"Obstructed",icon:"\u26D4"},{key:"restrictedView",label:"Restricted view",short:"Restricted",icon:"\u{1F441}"},{key:"premium",label:"Premium seat",short:"Premium",icon:"\u2605"}],di=new Map(Ur.map(e=>[e.key,e]));var jt=["start","end","both","none"];var Vr=["reference-focal","bar","entrance","exit","restroom","screen","sound","concession","coat","wall","rail","suite","obstruction"],fi=new Set(Vr);function q(e){return typeof e=="string"&&jt.includes(e)}function he(e,t){return e&&t?"both":e?"start":t?"end":"none"}function Nt(e){let t=new Map,n=J(e);if(!n.size)return t;let r=new Map;for(let o of e){if(o.type!=="row"||!n.has(o.id))continue;let i=o.segmentedRow.groupId,a=r.get(i)??[];a.push(o),r.set(i,a)}for(let o of r.values())o.sort((i,a)=>i.segmentedRow.componentIndex-a.segmentedRow.componentIndex),o.forEach((i,a)=>{let c=o[a+1];t.set(i.id,{start:a>0&&i.segmentedRow.boundaryBefore==="continuous",end:!!c&&c.segmentedRow.boundaryBefore==="continuous"})});return t}function Ft(e,t){let n=Number.isInteger(e.seatCount)&&e.seatCount>0?e.seatCount:0,r=new Set;for(let u of e.overrides??[])u.skip&&r.add(u.index);let o=u=>u>=0&&u<n&&!r.has(u),i=he(!t?.start,!t?.end),a=q(e.aisleSeats)?e.aisleSeats:void 0,c=a??i,d=-1,s=-1;for(let u=0;u<n;u+=1)o(u)&&(d<0&&(d=u),s=u);let l=new Set;if(d>=0){(c==="start"||c==="both")&&l.add(d),(c==="end"||c==="both")&&l.add(s);for(let u of r)o(u-1)&&l.add(u-1),o(u+1)&&l.add(u+1)}return{...a?{override:a}:{},automatic:i,slots:[...l].sort((u,b)=>u-b)}}function Xr(e,t=[e]){return Ft(e,e.segmentedRow?Nt(t).get(e.id):void 0)}function Bt(e){let t=new Set;for(let n of $(e)){let r=Nt(n.objects);for(let o of n.objects)if(o.type==="row")for(let i of Ft(o,r.get(o.id)).slots)t.add(`${o.id}:${i}`)}return t}function Kr(e,t,n){return Bt(e).has(`${t}:${n}`)}function De(e){let t=q(e.aisleSeats)?e.aisleSeats:"both";return{start:t==="start"||t==="both",end:t==="end"||t==="both"}}function je(e,t){t==="both"?delete e.aisleSeats:e.aisleSeats=t}function Yr(e,t,n){if(!q(e.aisleSeats)){delete t.aisleSeats,delete n.aisleSeats;return}let r=De(e);je(t,he(r.start,!0)),je(n,he(!0,r.end))}function zr(e,t){let n=e[0],r=e[e.length-1];if(!n||!r||!q(n.aisleSeats)&&!q(r.aisleSeats)){delete t.aisleSeats;return}je(t,he(De(n).start,De(r).end))}0&&(module.exports={AUTOMATIC_ROUND_TABLE_RADIUS_MAX,AUTOMATIC_ROUND_TABLE_RADIUS_MIN,CHAIR_NUMBERING_DIRECTIONS,CHAIR_NUMBERING_FORMATS,CHAIR_NUMBERING_START_MAX,DEFAULT_SEAT_RADIUS,FLOOR_STACK_GAP_RATIO,FLOOR_STACK_MIN_SURFACE_PX,TABLE_SEAT_OFFSET,TEXT_BACKGROUND_PADDING_MAX,TEXT_BACKGROUND_RADIUS_MAX,TEXT_LETTER_SPACING_MAX,TEXT_LETTER_SPACING_MIN,TEXT_LINE_HEIGHT_MAX,TEXT_LINE_HEIGHT_MIN,TEXT_OPACITY_MIN,TEXT_WIDTH_MAX,TEXT_WIDTH_MIN,aisleSeatIds,allObjects,applyAffine,automaticRoundTableRadius,buildAisleHoles,buildSeatIndex,buildSectionShell,chairNumberingProblem,chartBounds,combinedFloorZoneId,compactChairNumbering,composeAffine,createPerspectiveCamera,cubicPoint,decomposeAffineLinear,distanceToRings,distributeAlongCubic,expandBooth,expandChart,expandRow,expandRowSlots,expandTable,expandTableSlots,floorObjects,floorStackPlacements,floorsOf,gridStats,hitTest,initialFloorMode,invertAffine,isAisleSeat,isRowAisleSeats,layoutCombinedFloorPlan,layoutFloorStack,mainFloorId,mergeRowAisleSeats,nearestWithin,objectCenter,owningSectionForObject,perspectiveTangentAffine,pointInPolygon,pointInPolygonWithHoles,pointOnPolygonBoundary,polygonArea,polygonInscribedAnchor,polygonLabelPoint,polygonNetArea,projectPerspectivePoint,queryRect,resolveRowAisleSeats,resolveSegmentedRowGroups,rowInventoryCount,rowSeatPositions,segmentedRowComponentSeats,segmentedRowComponents,segmentedRowSeatTotal,smoothCubicThroughMiddle,splitRowAisleSeats,stackFloors,tableChairBookingLabel,tableChairDisplayLabel,tableChairToken,tableInventoryCount,tableSeatCountsBySide,textLayoutMetrics,translateObject,usableHoles});
@@ -1,8 +1,8 @@
1
- import { P as Point, v as CubicPath, w as TextObject, x as TableChairNumbering, T as TableObject, y as RowAisleSeats, C as ChartDoc, R as RowObject, a as ChartObject } from '../../types-DL7qIUrD.cjs';
2
- export { F as FloorLabelStyle } from '../../types-DL7qIUrD.cjs';
3
- export { A as AUTOMATIC_ROUND_TABLE_RADIUS_MAX, a as AUTOMATIC_ROUND_TABLE_RADIUS_MIN, C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, b as FLOOR_STACK_MIN_SURFACE_PX, c as FloorStackOptions, d as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, e as TableSeatSlot, f as allObjects, g as automaticRoundTableRadius, h as chartBounds, i as combinedFloorZoneId, j as expandBooth, k as expandChart, l as expandRow, m as expandRowSlots, n as expandTable, o as expandTableSlots, p as floorObjects, q as floorStackPlacements, r as floorsOf, s as initialFloorMode, t as layoutCombinedFloorPlan, u as layoutFloorStack, v as mainFloorId, w as objectCenter, x as owningSectionForObject, y as pointInPolygon, z as pointInPolygonWithHoles, B as polygonLabelPoint, D as rowInventoryCount, G as rowSeatPositions, H as stackFloors, I as tableInventoryCount, J as tableSeatCountsBySide, K as translateObject, L as usableHoles } from '../../tableSizing-BJqAuJDg.cjs';
4
- export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-Ddx5ol8T.cjs';
5
- import { E as ExpandedSeat } from '../../renderer-D6ggv3bV.cjs';
1
+ import { P as Point, v as CubicPath, w as TextObject, x as TableChairNumbering, T as TableObject, y as RowAisleSeats, C as ChartDoc, R as RowObject, a as ChartObject } from '../../types-ZviQR7ch.cjs';
2
+ export { F as FloorLabelStyle } from '../../types-ZviQR7ch.cjs';
3
+ export { A as AUTOMATIC_ROUND_TABLE_RADIUS_MAX, a as AUTOMATIC_ROUND_TABLE_RADIUS_MIN, C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, b as FLOOR_STACK_MIN_SURFACE_PX, c as FloorStackOptions, d as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, e as TableSeatSlot, f as allObjects, g as automaticRoundTableRadius, h as chartBounds, i as combinedFloorZoneId, j as expandBooth, k as expandChart, l as expandRow, m as expandRowSlots, n as expandTable, o as expandTableSlots, p as floorObjects, q as floorStackPlacements, r as floorsOf, s as initialFloorMode, t as layoutCombinedFloorPlan, u as layoutFloorStack, v as mainFloorId, w as objectCenter, x as owningSectionForObject, y as pointInPolygon, z as pointInPolygonWithHoles, B as pointOnPolygonBoundary, D as polygonLabelPoint, G as rowInventoryCount, H as rowSeatPositions, I as stackFloors, J as tableInventoryCount, K as tableSeatCountsBySide, L as translateObject, M as usableHoles } from '../../tableSizing-Bos5ueqg.cjs';
4
+ export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-CyW-LFuI.cjs';
5
+ import { E as ExpandedSeat } from '../../renderer-BSjyHBDK.cjs';
6
6
 
7
7
  type SectionShellMode = 'auto' | 'rectangle' | 'tapered' | 'bezier';
8
8
  declare function cubicPoint(path: CubicPath, t: number): Point;
@@ -1,8 +1,8 @@
1
- import { P as Point, v as CubicPath, w as TextObject, x as TableChairNumbering, T as TableObject, y as RowAisleSeats, C as ChartDoc, R as RowObject, a as ChartObject } from '../../types-DL7qIUrD.js';
2
- export { F as FloorLabelStyle } from '../../types-DL7qIUrD.js';
3
- export { A as AUTOMATIC_ROUND_TABLE_RADIUS_MAX, a as AUTOMATIC_ROUND_TABLE_RADIUS_MIN, C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, b as FLOOR_STACK_MIN_SURFACE_PX, c as FloorStackOptions, d as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, e as TableSeatSlot, f as allObjects, g as automaticRoundTableRadius, h as chartBounds, i as combinedFloorZoneId, j as expandBooth, k as expandChart, l as expandRow, m as expandRowSlots, n as expandTable, o as expandTableSlots, p as floorObjects, q as floorStackPlacements, r as floorsOf, s as initialFloorMode, t as layoutCombinedFloorPlan, u as layoutFloorStack, v as mainFloorId, w as objectCenter, x as owningSectionForObject, y as pointInPolygon, z as pointInPolygonWithHoles, B as polygonLabelPoint, D as rowInventoryCount, G as rowSeatPositions, H as stackFloors, I as tableInventoryCount, J as tableSeatCountsBySide, K as translateObject, L as usableHoles } from '../../tableSizing-C0zx97eg.js';
4
- export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-HwY4XuYa.js';
5
- import { E as ExpandedSeat } from '../../renderer-CdJx5l3B.js';
1
+ import { P as Point, v as CubicPath, w as TextObject, x as TableChairNumbering, T as TableObject, y as RowAisleSeats, C as ChartDoc, R as RowObject, a as ChartObject } from '../../types-ZviQR7ch.js';
2
+ export { F as FloorLabelStyle } from '../../types-ZviQR7ch.js';
3
+ export { A as AUTOMATIC_ROUND_TABLE_RADIUS_MAX, a as AUTOMATIC_ROUND_TABLE_RADIUS_MIN, C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, b as FLOOR_STACK_MIN_SURFACE_PX, c as FloorStackOptions, d as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, e as TableSeatSlot, f as allObjects, g as automaticRoundTableRadius, h as chartBounds, i as combinedFloorZoneId, j as expandBooth, k as expandChart, l as expandRow, m as expandRowSlots, n as expandTable, o as expandTableSlots, p as floorObjects, q as floorStackPlacements, r as floorsOf, s as initialFloorMode, t as layoutCombinedFloorPlan, u as layoutFloorStack, v as mainFloorId, w as objectCenter, x as owningSectionForObject, y as pointInPolygon, z as pointInPolygonWithHoles, B as pointOnPolygonBoundary, D as polygonLabelPoint, G as rowInventoryCount, H as rowSeatPositions, I as stackFloors, J as tableInventoryCount, K as tableSeatCountsBySide, L as translateObject, M as usableHoles } from '../../tableSizing-CAiE_oii.js';
4
+ export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-C5qFY6jJ.js';
5
+ import { E as ExpandedSeat } from '../../renderer-BurPZ2Io.js';
6
6
 
7
7
  type SectionShellMode = 'auto' | 'rectangle' | 'tapered' | 'bezier';
8
8
  declare function cubicPoint(path: CubicPath, t: number): Point;
@@ -1 +1 @@
1
- import{a as oo,b as ro,c as eo,d as fo,e as mo,f as po,g as to,h as xo,i as no,j as qo,k as so,l as uo,m as vo,n as wo,o as yo,p as zo,q as Ao,r as Bo,s as Co,t as Do,u as Eo}from"../../chunk-AFJWTB7L.js";import{a as ao,b as bo,c as co,d as go,e as ho,f as io,g as jo,h as ko,i as lo}from"../../chunk-PHV2U54Y.js";import"../../chunk-UEDS3HJ3.js";import"../../chunk-FOIYJ5NT.js";import{$ as s,Ba as F,Ca as G,D as c,Da as H,E as d,Ea as I,F as g,Fa as J,G as h,Ga as K,H as i,Ha as L,I as j,Ia as M,J as k,Ja as N,K as l,Ka as O,L as n,La as P,Ma as Q,Na as R,Oa as S,Pa as T,Qa as U,Ra as V,Sa as W,Ta as X,Ua as Y,Va as Z,Wa as _,Xa as $,_ as q,aa as u,ba as v,q as o,r,s as e,t as f,u as m,v as p,w as t,x,y as a,z as b}from"../../chunk-EIV3CAGV.js";import{j as w,k as y,l as z,m as A,n as B,o as C,p as D,q as E}from"../../chunk-KTMZ3QAO.js";import"../../chunk-CRCGO52K.js";export{bo as AUTOMATIC_ROUND_TABLE_RADIUS_MAX,ao as AUTOMATIC_ROUND_TABLE_RADIUS_MIN,y as CHAIR_NUMBERING_DIRECTIONS,z as CHAIR_NUMBERING_FORMATS,w as CHAIR_NUMBERING_START_MAX,no as DEFAULT_SEAT_RADIUS,oo as FLOOR_STACK_GAP_RATIO,to as FLOOR_STACK_MIN_SURFACE_PX,F as TABLE_SEAT_OFFSET,x as TEXT_BACKGROUND_PADDING_MAX,a as TEXT_BACKGROUND_RADIUS_MAX,p as TEXT_LETTER_SPACING_MAX,m as TEXT_LETTER_SPACING_MIN,f as TEXT_LINE_HEIGHT_MAX,e as TEXT_LINE_HEIGHT_MIN,t as TEXT_OPACITY_MIN,r as TEXT_WIDTH_MAX,o as TEXT_WIDTH_MIN,io as aisleSeatIds,X as allObjects,Ao as applyAffine,co as automaticRoundTableRadius,i as buildAisleHoles,qo as buildSeatIndex,h as buildSectionShell,D as chairNumberingProblem,$ as chartBounds,ro as combinedFloorZoneId,E as compactChairNumbering,Co as composeAffine,yo as createPerspectiveCamera,c as cubicPoint,Eo as decomposeAffineLinear,j as distanceToRings,g as distributeAlongCubic,O as expandBooth,_ as expandChart,J as expandRow,I as expandRowSlots,N as expandTable,L as expandTableSlots,W as floorObjects,eo as floorStackPlacements,V as floorsOf,wo as gridStats,so as hitTest,xo as initialFloorMode,Bo as invertAffine,jo as isAisleSeat,go as isRowAisleSeats,mo as layoutCombinedFloorPlan,fo as layoutFloorStack,po as mainFloorId,lo as mergeRowAisleSeats,uo as nearestWithin,T as objectCenter,U as owningSectionForObject,Do as perspectiveTangentAffine,P as pointInPolygon,R as pointInPolygonWithHoles,k as polygonArea,n as polygonInscribedAnchor,S as polygonLabelPoint,l as polygonNetArea,zo as projectPerspectivePoint,vo as queryRect,ho as resolveRowAisleSeats,v as resolveSegmentedRowGroups,H as rowInventoryCount,G as rowSeatPositions,s as segmentedRowComponentSeats,q as segmentedRowComponents,u as segmentedRowSeatTotal,d as smoothCubicThroughMiddle,ko as splitRowAisleSeats,Z as stackFloors,A as tableChairBookingLabel,C as tableChairDisplayLabel,B as tableChairToken,M as tableInventoryCount,K as tableSeatCountsBySide,b as textLayoutMetrics,Y as translateObject,Q as usableHoles};
1
+ import{a as ro,b as eo,c as fo,d as mo,e as po,f as to,g as xo,h as ao,i as qo,j as so,k as uo,l as vo,m as wo,n as yo,o as zo,p as Ao,q as Bo,r as Co,s as Do,t as Eo,u as Fo}from"../../chunk-R2TRYVOY.js";import{a as bo,b as co,c as go,d as ho,e as io,f as jo,g as ko,h as lo,i as no}from"../../chunk-RF4QU72N.js";import"../../chunk-TFYAMLCK.js";import"../../chunk-UEDS3HJ3.js";import{$a as V,E as c,F as d,G as g,H as h,I as i,J as j,K as k,L as l,La as F,M as n,Ma as G,Na as H,Oa as I,Pa as J,Qa as K,Ra as L,Sa as M,Ta as N,Ua as O,Va as P,Wa as Q,Xa as R,Ya as S,Za as T,_a as U,ab as W,bb as X,cb as Y,db as Z,eb as _,fb as $,ga as q,gb as oo,ha as s,ia as u,ja as v,q as o,r,s as e,t as f,u as m,v as p,w as t,x,y as a,z as b}from"../../chunk-3W4ZMU4G.js";import{j as w,k as y,l as z,m as A,n as B,o as C,p as D,q as E}from"../../chunk-KTMZ3QAO.js";import"../../chunk-CRCGO52K.js";export{co as AUTOMATIC_ROUND_TABLE_RADIUS_MAX,bo as AUTOMATIC_ROUND_TABLE_RADIUS_MIN,y as CHAIR_NUMBERING_DIRECTIONS,z as CHAIR_NUMBERING_FORMATS,w as CHAIR_NUMBERING_START_MAX,qo as DEFAULT_SEAT_RADIUS,ro as FLOOR_STACK_GAP_RATIO,xo as FLOOR_STACK_MIN_SURFACE_PX,F as TABLE_SEAT_OFFSET,x as TEXT_BACKGROUND_PADDING_MAX,a as TEXT_BACKGROUND_RADIUS_MAX,p as TEXT_LETTER_SPACING_MAX,m as TEXT_LETTER_SPACING_MIN,f as TEXT_LINE_HEIGHT_MAX,e as TEXT_LINE_HEIGHT_MIN,t as TEXT_OPACITY_MIN,r as TEXT_WIDTH_MAX,o as TEXT_WIDTH_MIN,jo as aisleSeatIds,Y as allObjects,Bo as applyAffine,go as automaticRoundTableRadius,i as buildAisleHoles,so as buildSeatIndex,h as buildSectionShell,D as chairNumberingProblem,oo as chartBounds,eo as combinedFloorZoneId,E as compactChairNumbering,Do as composeAffine,zo as createPerspectiveCamera,c as cubicPoint,Fo as decomposeAffineLinear,j as distanceToRings,g as distributeAlongCubic,O as expandBooth,$ as expandChart,J as expandRow,I as expandRowSlots,N as expandTable,L as expandTableSlots,X as floorObjects,fo as floorStackPlacements,W as floorsOf,yo as gridStats,uo as hitTest,ao as initialFloorMode,Co as invertAffine,ko as isAisleSeat,ho as isRowAisleSeats,po as layoutCombinedFloorPlan,mo as layoutFloorStack,to as mainFloorId,no as mergeRowAisleSeats,vo as nearestWithin,U as objectCenter,V as owningSectionForObject,Eo as perspectiveTangentAffine,P as pointInPolygon,S as pointInPolygonWithHoles,Q as pointOnPolygonBoundary,k as polygonArea,n as polygonInscribedAnchor,T as polygonLabelPoint,l as polygonNetArea,Ao as projectPerspectivePoint,wo as queryRect,io as resolveRowAisleSeats,v as resolveSegmentedRowGroups,H as rowInventoryCount,G as rowSeatPositions,s as segmentedRowComponentSeats,q as segmentedRowComponents,u as segmentedRowSeatTotal,d as smoothCubicThroughMiddle,lo as splitRowAisleSeats,_ as stackFloors,A as tableChairBookingLabel,C as tableChairDisplayLabel,B as tableChairToken,M as tableInventoryCount,K as tableSeatCountsBySide,b as textLayoutMetrics,Z as translateObject,R as usableHoles};
@@ -1,7 +1,7 @@
1
- import { A as AccessibilityType } from '../../types-DL7qIUrD.cjs';
1
+ import { A as AccessibilityType } from '../../types-ZviQR7ch.cjs';
2
2
  import { contrastRatioOrNull } from '../color.cjs';
3
- export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-CwZ8hY-5.cjs';
4
- import '../../renderer-D6ggv3bV.cjs';
3
+ export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-BIWwSRMS.cjs';
4
+ import '../../renderer-BSjyHBDK.cjs';
5
5
 
6
6
  /**
7
7
  * Rendering constants that quality inspection must agree with.
@@ -1,7 +1,7 @@
1
- import { A as AccessibilityType } from '../../types-DL7qIUrD.js';
1
+ import { A as AccessibilityType } from '../../types-ZviQR7ch.js';
2
2
  import { contrastRatioOrNull } from '../color.js';
3
- export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-wDIiUId3.js';
4
- import '../../renderer-CdJx5l3B.js';
3
+ export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-CdpKQidA.js';
4
+ import '../../renderer-BurPZ2Io.js';
5
5
 
6
6
  /**
7
7
  * Rendering constants that quality inspection must agree with.
@@ -1 +1 @@
1
- "use strict";var c=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var N=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})},P=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q(t))!T.call(e,a)&&a!==n&&c(e,a,{get:()=>t[a],enumerable:!(r=G(t,a))||r.enumerable});return e};var w=e=>P(c({},"__esModule",{value:!0}),e);var ce={};N(ce,{DECOR_STAMP_ICON_PATHS:()=>U,DEFAULT_SHAPE_LINE_CAP:()=>_,DEFAULT_SHAPE_LINE_ENDING:()=>f,DEFAULT_SHAPE_LINE_JOIN:()=>R,SEAT_GLYPHS:()=>h,SEAT_GLYPH_DETAIL_MIN_PX:()=>Le,SEAT_GLYPH_INSET:()=>ve,SEAT_GLYPH_ORDER:()=>X,SEAT_GLYPH_VIEWBOX:()=>Me,SEAT_TYPE_ICON_BODY:()=>E,SEAT_TYPE_ICON_VIEWBOX:()=>xe,SHAPE_LINE_CAPS:()=>re,SHAPE_LINE_ENDINGS:()=>ie,SHAPE_LINE_JOINS:()=>ae,VENUE_ICONS:()=>u,VENUE_ICON_GROUP_LABELS:()=>F,VENUE_ICON_GROUP_ORDER:()=>Y,VENUE_ICON_KEYS:()=>z,VENUE_ICON_STROKE:()=>ge,VENUE_ICON_VIEWBOX:()=>be,buyerBackgroundImage:()=>x,buyerFacingChartDoc:()=>B,hasConflictingLegacyTrace:()=>K,isOpenShapeKind:()=>A,isPointShapeKind:()=>oe,isSeatGlyphKind:()=>p,isVenueIconKey:()=>W,migrateLegacyBackgroundLayersInPlace:()=>H,resolveSeatGlyph:()=>te,resolvedShapeLineStyle:()=>se,seatGlyph:()=>l,seatGlyphFit:()=>C,seatGlyphLabel:()=>$,seatGlyphMarkOnSeat:()=>ee,seatGlyphPath:()=>q,seatTypeIconBody:()=>V,seatTypeIconSvg:()=>ne,shapeArrowMetrics:()=>le,traceReferenceImage:()=>D,venueIcon:()=>I,venueIconPath:()=>J});module.exports=w(ce);function g(e){let t=e;return delete t.referenceScan,delete t.referenceInventorySource,delete t.referenceInventoryExclusion,delete t.referenceSource,delete t.referenceAnnotationSource,e}var m=2,j=3,M=6;function o(e,t){if(!Number.isFinite(e))return e;let n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function s(e){return{...e,x:o(e.x,m),y:o(e.y,m)}}function L(e){let t={...e};t.origin&&typeof t.origin=="object"&&(t.origin=s(t.origin)),Array.isArray(t.outline)&&(t.outline=t.outline.map(s)),Array.isArray(t.points)&&(t.points=t.points.map(s)),typeof t.rotation=="number"&&(t.rotation=o(t.rotation,M)),typeof t.seatSpacing=="number"&&(t.seatSpacing=o(t.seatSpacing,M));let n=t.labelPresentation;return n?.position&&(t.labelPresentation={...n,position:s(n.position)}),Array.isArray(t.overrides)&&(t.overrides=t.overrides.map(r=>{let a={...r};for(let i of["dx","dy"]){let y=a[i];if(typeof y!="number")continue;let b=o(y,j);b===0?delete a[i]:a[i]=b}return a})),t}function D(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function x(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}function v(e){let t=x(e);if(!t?.url)return;let{calibration:n,derivedScale:r,assetId:a,...i}=t;return i}function H(e){let t=n=>{let r=n.backgroundImage;r?.assetId&&(n.referenceImage||(n.referenceImage=r,n.backgroundImage=void 0))};t(e);for(let n of e.floors??[])t(n);return e}function S(e){let t=L(e);return g(t),delete t.editor,delete t.arcFanGeneration,delete t.rowBlockGeneration,t}function Z(e){let t={...e};return delete t.referenceCategorySource,delete t.referenceDirectSeatImport,t}function B(e){let t=v(e),n=e.floors?.map(r=>({...r,objects:r.objects.map(S),referenceImage:void 0,backgroundImage:v(r)}));return{...e,categories:e.categories.map(Z),objects:e.objects.map(S),referenceImage:void 0,venueSurveyRegistrations:void 0,backgroundImage:t,...n?{floors:n}:{}}}function K(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var be=24,ge=2,F={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},Y=["facilities","food-drink","navigation","accessibility"],k="M13 4.6a1.6 1.6 0 1 0-3.2 0 1.6 1.6 0 0 0 3.2 0 M11 6.5V13h5l2.4 6 M15 16.4A5 5 0 1 1 9 11.3",u=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:"M16 7a4 4 0 1 0-8 0 4 4 0 0 0 8 0 M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:"M15 5a3 3 0 1 0-6 0 3 3 0 0 0 6 0 M12 8l-4 10h8l-4-10 M10 18v4 M14 18v4"},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:k},{key:"first-aid",label:"First aid",group:"facilities",path:"M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z M12 8v8 M8 12h8"},{key:"coat-check",label:"Coat check",group:"facilities",path:"M12 6a2 2 0 0 1 0-4 2 2 0 0 1 1.6 3.2L21 13H3l8.4-7.8 M3 13h18"},{key:"atm",label:"ATM / cash",group:"facilities",path:"M2 6h20v12H2V6Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0 M6 9h.01 M18 15h.01"},{key:"info",label:"Info point",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M12 11v5 M12 8h.01"},{key:"lost-found",label:"Lost & found",group:"facilities",path:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14 M16 16l5 5 M9 8.5a2 2 0 1 1 3 1.7c-.8.5-1 .8-1 1.8 M11 15h.01"},{key:"restrooms",label:"Restrooms",group:"facilities",path:"M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M9 18v-3.5a3 3 0 0 1 6 0V18"},{key:"charging",label:"Charging point",group:"facilities",path:"M3 8h13v8H3V8Z M16 10h3v4h-3 M9.6 9l-2 3.5h2.5l-1.5 3"},{key:"smoking",label:"Smoking area",group:"facilities",path:"M2 15h13v3H2v-3Z M18 16h2 M19 8c0 1 1 1.5 1 2.5S19 12 19 13"},{key:"no-smoking",label:"No smoking",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M5.6 5.6l12.8 12.8 M7 13h6v2H7v-2Z"},{key:"food",label:"Food",group:"food-drink",path:"M7 3v6a2 2 0 0 0 4 0V3 M9 11v10 M17 3c-1.6 1-2.2 3-2.2 6 0 2 .9 3.2 2.2 3.6V21"},{key:"bar",label:"Bar",group:"food-drink",path:"M4 5h16l-8 8-8-8Z M12 13v6 M8 20h8"},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 8h13v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8Z M17 9h2a2 2 0 0 1 0 4h-2 M8 2v2 M11 2v2 M4 21h14"},{key:"water",label:"Water / drinks",group:"food-drink",path:"M12 22a7 7 0 0 1-7-7c0-5 7-12 7-12s7 7 7 12a7 7 0 0 1-7 7Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:"M6 8h12l-1 12H7L6 8Z M9 8V6a3 3 0 0 1 6 0v2"},{key:"screen",label:"Screen",group:"facilities",path:"M3 4h18v12H3V4Z M9 20h6 M12 16v4 M10 8l4 2-4 2V8Z"},{key:"sound-booth",label:"Sound booth",group:"facilities",path:"M6 4v16 M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4 M12 4v16 M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M18 4v16 M18 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4"},{key:"entrance",label:"Entrance",group:"navigation",path:"M14 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-5 M3 12h11 M10 8l4 4-4 4"},{key:"exit",label:"Exit",group:"navigation",path:"M10 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h5 M14 12h7 M17 8l4 4-4 4"},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:"M14 4.6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0 M12.5 8l-3.5 2 1.6 3.6-2 4.4 M12.5 10l3.5 1.5 M9 10.5l-3.5 1 M15 12h6 M18 9l3 3-3 3"},{key:"stairs",label:"Stairs",group:"navigation",path:"M3 20v-4h4v-4h4v-4h4V4h5"},{key:"elevator",label:"Elevator",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M8 11l1.5-2 1.5 2 M8 14l1.5 2 1.5-2 M15 8v8"},{key:"parking",label:"Parking",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M9 17V7h4a3 3 0 0 1 0 6H9"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:k},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:"M8 20a4 4 0 0 1-2-3c0-1 .5-2 .5-3a4.5 4.5 0 1 1 9 0c0 1.4-1 2-2 2.4-1.2.5-1.5 1-1.5 2.2 M17 6a5 5 0 0 1 1 6 M19.5 4a8 8 0 0 1 1.2 9"}],U={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},O=new Map(u.map(e=>[e.key,e]));function I(e){return e?O.get(e):void 0}function J(e){return I(e)?.path}function W(e){return typeof e=="string"&&O.has(e)}var z=u.map(e=>e.key);var Me=24,Le=16,ve=.14,h=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null,mark:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21},mark:{x:12,y:10,radius:6}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22},mark:{x:12,y:10,radius:4.5}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21},mark:{x:12,y:5,radius:3}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5},mark:{x:12,y:7.5,radius:5.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5},mark:{x:12,y:8,radius:5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20},mark:{x:12,y:9.25,radius:6.5}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22},mark:{x:12,y:12.25,radius:4.75}}],X=h.map(e=>e.key),d=new Map(h.map(e=>[e.key,e]));function l(e){return d.get(e)??d.get("circle")}function $(e){return l(e).label}function q(e){return l(e).path}function C(e,t){return{scale:t*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function ee(e,t){let n=l(e);if(!n.bounds||!n.mark||!(t>0))return null;let r=C(n.bounds,t);return{x:(n.mark.x-r.centreX)*r.scale,y:(n.mark.y-r.centreY)*r.scale,radius:n.mark.radius*r.scale}}function p(e){return typeof e=="string"&&d.has(e)}function te(e,t){return p(e)?e:p(t?.seatGlyph)?t.seatGlyph:"circle"}var xe=20,E={wheelchair:'<circle cx="10.6" cy="3.7" r="1.7" /><path d="M8.9 6.3v4.3a1.3 1.3 0 0 0 1.3 1.3h3.4l1.9 4.5h1.9" /><circle cx="9.7" cy="13.3" r="4.7" />',companion:'<circle cx="6" cy="6" r="2" /><circle cx="14" cy="6" r="2" /><path d="M2.5 16v-3.5A3.5 3.5 0 0 1 6 9a3.5 3.5 0 0 1 3.5 3.5V16M10.5 16v-3.5A3.5 3.5 0 0 1 14 9a3.5 3.5 0 0 1 3.5 3.5V16" />',"semi-ambulatory":'<circle cx="8" cy="4" r="1.7" /><path d="m8 6 2 4 3 2M10 10l-2 3-1 4M10 10l2 7M14 7l2 10" />',"designated-aisle":'<path d="M3.5 5.5v7h8.5V10H6.5M5 12.5V17M11 12.5V17" /><path d="M13.5 6.5H19M16.5 4l2.5 2.5L16.5 9" />',"step-free":'<circle cx="5.5" cy="5" r="1.7" /><path d="M5.5 7v4l3 2M2.5 16.5H8l7-7h3M8 16.5h10" />',hearing:'<path d="M7 16c-1-1.2-1.5-2.4-1.5-3.8V9a5 5 0 1 1 10 0c0 2.2-1.2 3.2-2.6 4-1.2.7-1.7 1.4-1.7 2.4A2.6 2.6 0 0 1 8.6 18" />',cart:'<path d="M8 6.5A4 4 0 1 0 8 13M17 6.5a4 4 0 1 0 0 6.5" />',"sign-language":'<path d="M6 16V8.5a1 1 0 0 1 2 0v3M8 11V5.5a1 1 0 0 1 2 0V11M10 11V4.5a1 1 0 0 1 2 0V11M12 11V6a1 1 0 0 1 2 0v6l1-1.5a1.2 1.2 0 0 1 2 1.3L14 17H9.5A3.5 3.5 0 0 1 6 13.5" />',"low-vision":'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><circle cx="10" cy="10" r="2.5" /><path d="m15 4 .5-1.5M17 5l1.5-.8" />',"sensory-friendly":'<path d="M4 11v-1a6 6 0 0 1 12 0v1M4 11h2.5v5H5a1 1 0 0 1-1-1v-4ZM16 11h-2.5v5H15a1 1 0 0 0 1-1v-4Z" /><path d="M8.5 11.5c.8.7 2.2.7 3 0M9 14c.6.4 1.4.4 2 0" />',"plus-size":'<path d="M5 9V6.5A2.5 2.5 0 0 1 7.5 4h5A2.5 2.5 0 0 1 15 6.5V9M3.5 8.5v5h13v-5M6 13.5V17M14 13.5V17" />',"lift-armrest":'<path d="M5 10V6.5A2.5 2.5 0 0 1 7.5 4h4A2.5 2.5 0 0 1 14 6.5V10M4 9v4h11V9M6 13v4M13 13v4" /><path d="M17 11V4M15 6l2-2 2 2" />',obstructedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="m4 17 12-14" />',restrictedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="M10 7.5v3.5M10 13.5h.01" />',premium:'<path d="m10 2.5 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7Z" />',note:'<circle cx="10" cy="10" r="7.5" /><path d="M10 9.2v4.6M10 6.3h.01" />',aisle:'<path d="M2.5 6v7h6.5v-2.5H4.5M3.5 13v3.5M8 13v3.5" /><path d="M12.5 3v14M17 3v14" />',entrance:'<path d="M10 3.5h6.5v13H10" /><path d="M3 10h8.5M8.5 7l3 3-3 3" />',booth:'<path d="M3.5 8.5h13v8h-13ZM2.5 8.5 4 4h12l1.5 4.5M8 16.5v-4h4v4" />'};function V(e){return E[e]??""}function ne(e,t={}){let n=V(e);if(!n)return"";let r=t.size??18,a=20;return`<svg viewBox="0 0 ${a} ${a}" width="${r}" height="${r}" fill="none" stroke="currentColor" stroke-width="1.45" stroke-linecap="round" stroke-linejoin="round"`+(t.className?` class="${t.className}"`:"")+` aria-hidden="true" focusable="false">${n}</svg>`}var re=["butt","round","square"],ae=["miter","round","bevel"],ie=["none","arrow"],_="round",R="round",f="none";function A(e){return e==="line"||e==="polyline"}function oe(e){return e==="polygon"||A(e)}function se(e){return{lineCap:e.lineCap??_,lineJoin:e.lineJoin??R,startEnding:e.startEnding??f,endEnding:e.endEnding??f}}function le(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SEAT_TYPE_ICON_BODY,SEAT_TYPE_ICON_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphMarkOnSeat,seatGlyphPath,seatTypeIconBody,seatTypeIconSvg,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconPath});
1
+ "use strict";var R=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var ve=Object.prototype.hasOwnProperty;var Oe=(e,t)=>{for(var n in t)R(e,n,{get:t[n],enumerable:!0})},Ie=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Se(t))!ve.call(e,o)&&o!==n&&R(e,o,{get:()=>t[o],enumerable:!(r=ye(t,o))||r.enumerable});return e};var ke=e=>Ie(R({},"__esModule",{value:!0}),e);var l1={};Oe(l1,{DECOR_STAMP_ICON_PATHS:()=>Fe,DEFAULT_SHAPE_LINE_CAP:()=>me,DEFAULT_SHAPE_LINE_ENDING:()=>j,DEFAULT_SHAPE_LINE_JOIN:()=>fe,SEAT_GLYPHS:()=>w,SEAT_GLYPH_DETAIL_MIN_PX:()=>x1,SEAT_GLYPH_INSET:()=>_1,SEAT_GLYPH_ORDER:()=>We,SEAT_GLYPH_VIEWBOX:()=>k1,SEAT_TYPE_ICON_BODY:()=>Le,SEAT_TYPE_ICON_VIEWBOX:()=>C1,SHAPE_LINE_CAPS:()=>n1,SHAPE_LINE_ENDINGS:()=>o1,SHAPE_LINE_JOINS:()=>r1,VENUE_ICONS:()=>B,VENUE_ICON_BADGE:()=>N,VENUE_ICON_BADGE_INK:()=>ce,VENUE_ICON_GROUP_COLORS:()=>le,VENUE_ICON_GROUP_LABELS:()=>Qe,VENUE_ICON_GROUP_ORDER:()=>Ke,VENUE_ICON_KEYS:()=>Ye,VENUE_ICON_LEGACY_DEFAULT_INK:()=>$e,VENUE_ICON_STROKE:()=>He,VENUE_ICON_VIEWBOX:()=>De,buyerBackgroundImage:()=>z,buyerFacingChartDoc:()=>Ae,hasConflictingLegacyTrace:()=>Pe,isOpenShapeKind:()=>Me,isPointShapeKind:()=>a1,isSeatGlyphKind:()=>V,isVenueIconKey:()=>Ue,migrateLegacyBackgroundLayersInPlace:()=>Ee,resolveSeatGlyph:()=>e1,resolvedShapeLineStyle:()=>i1,seatGlyph:()=>T,seatGlyphFit:()=>ge,seatGlyphLabel:()=>Xe,seatGlyphMarkOnSeat:()=>qe,seatGlyphPath:()=>Je,seatTypeIconBody:()=>be,seatTypeIconSvg:()=>t1,shapeArrowMetrics:()=>s1,traceReferenceImage:()=>_e,venueIcon:()=>he,venueIconBadgeGlyph:()=>ue,venueIconPath:()=>ze});module.exports=ke(l1);function D(e){let t=e;return delete t.referenceScan,delete t.referenceInventorySource,delete t.referenceInventoryExclusion,delete t.referenceSource,delete t.referenceAnnotationSource,e}var H=2,xe=3,Q=6;function x(e,t){if(!Number.isFinite(e))return e;let n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function E(e){return{...e,x:x(e.x,H),y:x(e.y,H)}}function K(e){let t={...e};t.origin&&typeof t.origin=="object"&&(t.origin=E(t.origin)),Array.isArray(t.outline)&&(t.outline=t.outline.map(E)),Array.isArray(t.points)&&(t.points=t.points.map(E)),typeof t.rotation=="number"&&(t.rotation=x(t.rotation,Q)),typeof t.seatSpacing=="number"&&(t.seatSpacing=x(t.seatSpacing,Q));let n=t.labelPresentation;return n?.position&&(t.labelPresentation={...n,position:E(n.position)}),Array.isArray(t.overrides)&&(t.overrides=t.overrides.map(r=>{let o={...r};for(let i of["dx","dy"]){let c=o[i];if(typeof c!="number")continue;let L=x(c,xe);L===0?delete o[i]:o[i]=L}return o})),t}function _e(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function z(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}function $(e){let t=z(e);if(!t?.url)return;let{calibration:n,derivedScale:r,assetId:o,...i}=t;return i}function Ee(e){let t=n=>{let r=n.backgroundImage;r?.assetId&&(n.referenceImage||(n.referenceImage=r,n.backgroundImage=void 0))};t(e);for(let n of e.floors??[])t(n);return e}function F(e){let t=K(e);return D(t),delete t.editor,delete t.arcFanGeneration,delete t.rowBlockGeneration,t}function Ce(e){let t={...e};return delete t.referenceCategorySource,delete t.referenceDirectSeatImport,t}function Ae(e){let t=$(e),n=e.floors?.map(r=>({...r,objects:r.objects.map(F),referenceImage:void 0,backgroundImage:$(r)}));return{...e,categories:e.categories.map(Ce),objects:e.objects.map(F),referenceImage:void 0,venueSurveyRegistrations:void 0,designerSettings:void 0,backgroundImage:t,...n?{floors:n}:{}}}function Pe(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var C=["#e69f00","#56b4e9","#009e73","#f0e442","#0072b2","#d55e00","#cc79a7"],U="#a4508b";var Y="#ffffff";var Te={wheelchair:"M7.8 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM8 7L10.5 7L10.5 15L8 15ZM8 12.5L18 12.5L18 15L8 15ZM16 15L18 15L18 18L16 18ZM5.5 16a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0zM8 16a3 3 0 1 1 6 0a3 3 0 1 1 -6 0z",companion:"M5.5 6.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM4.5 18.5L6 11.5L11 11.5L12.5 18.5ZM12.5 7.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM11.5 19L13 12.5L18 12.5L19.5 19Z","semi-ambulatory":"M8.3 3.8a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM9 6.2L12 6.6L11 13.5L8.6 13L9 6.2ZM8.6 13L11 13L9.5 21L7 21ZM10.4 13L12.6 13L13.6 21L11.2 21ZM11.2 7.2L14 8L14.6 9.6L11.9 8.9ZM14.4 6.8L15.9 6.8L16.4 21L14.8 21Z","designated-aisle":"M3 5L6 5L6 14L3 14ZM3 12L13 12L13 15L3 15ZM5 15L7 15L7 20L5 20ZM11 15L13 15L13 20L11 20ZM13 7L20 7L17 4L19 4L23 8.5L19 13L17 13L20 10L13 10Z","step-free":"M4 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM4.4 7L7.5 7L7.5 13L11 15L9.5 17L5 14L4.4 7ZM2 19L8 19L17 10L22 10L22 13L18 13L10 21L2 21Z",hearing:"M15.5 3.5C9 2.2 5.5 6 5.5 11.5C5.5 16 8 19.5 10.5 21C13.2 22.6 16.4 20.8 15.4 18C14.8 16.4 12.9 16.1 13 14C13.1 11.9 15.8 11.4 15.8 8.5C15.8 5.4 13 4 15.5 3.5Z",cart:"M5.5 6L18.5 6a2.5 2.5 0 0 1 2.5 2.5L21 15.5a2.5 2.5 0 0 1 -2.5 2.5L11 18L7 20.5L7.5 18L5.5 18a2.5 2.5 0 0 1 -2.5 -2.5L3 8.5a2.5 2.5 0 0 1 2.5 -2.5zM6.5 11L17.5 11L17.5 12.6L6.5 12.6zM6.5 14L17.5 14L17.5 15.6L6.5 15.6z","sign-language":"M7 11L17 11L17 18a2 2 0 0 1 -2 2L9 20a2 2 0 0 1 -2 -2zM7.6 5L9.4 5L9.4 12L7.6 12zM9.9 3.5L11.7 3.5L11.7 12L9.9 12zM12.3 3.5L14.1 3.5L14.1 12L12.3 12zM14.6 5L16.4 5L16.4 12L14.6 12zM7.2 12.5L5 10.2L6.4 8.9L8.6 11.2Z","low-vision":"M2.5 12C6 6 18 6 21.5 12C18 18 6 18 2.5 12ZM9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM17.5 3L19 3L19 6L17.5 6ZM19 4L22 4L22 5.5L19 5.5Z","sensory-friendly":"M4 11C4 5 7 2.5 12 2.5S20 5 20 11L17 11C17 7 15.5 5.5 12 5.5S7 7 7 11ZM3 10L8 10L8 19L5 19a2 2 0 0 1 -2 -2ZM16 10L21 10L21 17a2 2 0 0 1 -2 2L16 19ZM9 12L15 12L15 14L9 14ZM10 16L14 16L14 18L10 18Z","plus-size":"M9.4 4.3a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0zM5 20L4 13C4 10.5 7 9.5 12 9.5C17 9.5 20 10.5 20 13L19 20Z","lift-armrest":"M5 6L8 6L8 19L5 19zM5 16L18 16L18 19L5 19zM8 12L17 12L17 14.5L8 14.5zM14 7L16 7L16 12L14 12zM12 7L18 7L15 3Z"},b1=Te.wheelchair;var le={facilities:U,"food-drink":C[5],navigation:C[2],accessibility:C[4]},ce=Y,N={minDiameterPx:12,glyphScale:.66,ringRatio:1/14,largeFromPx:24};function ue(e,t){return t>=N.largeFromPx&&e.solidLarge?e.solidLarge:e.solid}var u=e=>{let t=Math.round(e*100)/100;return Object.is(t,-0)?"0":String(t)},k=e=>`${u(e[0])} ${u(e[1])}`,I=(e,t,n,r)=>[e+n*Math.cos(r*Math.PI/180),t+n*Math.sin(r*Math.PI/180)];function pe(e){let t=`M${k(e.from)}`;for(let n of e.segs)t+=n.arc?`A${u(n.arc.r)} ${u(n.arc.r)} 0 ${n.arc.large} ${n.arc.sweep} ${k(n.to)}`:`L${k(n.to)}`;return`${t}Z`}function p(e){let t=[e.from,...e.segs.map(r=>r.to)],n=[];for(let r=e.segs.length-1;r>=0;r--){let o=e.segs[r].arc;n.push({to:t[r],arc:o&&{...o,sweep:o.sweep?0:1}})}return{from:t[t.length-1],segs:n}}function d(e,t,n){let r={r:n,large:0,sweep:1};return{from:[e-n,t],segs:[{to:[e+n,t],arc:r},{to:[e-n,t],arc:r}]}}function a(e,t,n,r,o){let i=Math.min(o,n/2,r/2),c={r:i,large:0,sweep:1};return i<=0?g([[e,t],[e+n,t],[e+n,t+r],[e,t+r]]):{from:[e+i,t],segs:[{to:[e+n-i,t]},{to:[e+n,t+i],arc:c},{to:[e+n,t+r-i]},{to:[e+n-i,t+r],arc:c},{to:[e+i,t+r]},{to:[e,t+r-i],arc:c},{to:[e,t+i]},{to:[e+i,t],arc:c}]}}function g(e){let t=0;for(let r=0;r<e.length;r++){let[o,i]=e[r],[c,L]=e[(r+1)%e.length];t+=o*L-c*i}let n=t>0?e:[...e].reverse();return{from:n[0],segs:[...n.slice(1).map(r=>({to:r})),{to:n[0]}]}}function l(e,t,n){let r=n/2,o=t[0]-e[0],i=t[1]-e[1],c=Math.hypot(o,i);if(c<1e-6)return d(e[0],e[1],r);let L=[i/c*r,-o/c*r],M={r,large:0,sweep:1},y=[e[0]+L[0],e[1]+L[1]];return{from:y,segs:[{to:[t[0]+L[0],t[1]+L[1]]},{to:[t[0]-L[0],t[1]-L[1]],arc:M},{to:[e[0]-L[0],e[1]-L[1]]},{to:y,arc:M}]}}function h(e,t,n=!1){let r=[],o=n?e.length:e.length-1;for(let i=0;i<o;i++)r.push(l(e[i],e[(i+1)%e.length],t));return r}function m(e,t,n,r,o,i){let c=i/2,L=o-r>180?1:0,M={r:c,large:0,sweep:1},y=I(e,t,n+c,r);return{from:y,segs:[{to:I(e,t,n+c,o),arc:{r:n+c,large:L,sweep:1}},{to:I(e,t,n-c,o),arc:M},{to:I(e,t,n-c,r),arc:{r:n-c,large:L,sweep:0}},{to:y,arc:M}]}}var s=(...e)=>e.flat().map(pe).join(" "),b=(e,t,n)=>`M${u(e-n)} ${u(t)}a${u(n)} ${u(n)} 0 1 0 ${u(2*n)} 0a${u(n)} ${u(n)} 0 1 0 ${u(-2*n)} 0`,f=(e,t,n,r,o)=>pe(a(e,t,n,r,o)),P=e=>`M${e.map(k).join("L")}`,A=(e,t,n,r,o)=>`M${k(I(e,t,n,r))}A${u(n)} ${u(n)} 0 ${o-r>180?1:0} 1 ${k(I(e,t,n,o))}`;function v(e,t,n,r=1){let o=i=>[i[0]*r+t,i[1]*r+n];return{head:[e.head[0]*r+t,e.head[1]*r+n,e.head[2]*r],limbs:e.limbs.map(i=>i.map(o)),arcs:e.arcs?.map(([i,c,L,M,y])=>[i*r+t,c*r+n,L*r,M,y])}}function _(e){return[b(e.head[0],e.head[1],e.head[2]),...e.limbs.map(P),...(e.arcs??[]).map(([t,n,r,o,i])=>A(t,n,r,o,i))].join(" ")}function O(e,t=2.6){return[d(e.head[0],e.head[1],e.head[2]+1),...e.limbs.flatMap(n=>h(n,t)),...(e.arcs??[]).map(([n,r,o,i,c])=>m(n,r,o,i,c,t-.2))]}var S={head:[10,4,2],limbs:[[[10,8.2],[10,14],[15.5,14],[18,19.5],[20.5,19.5]],[[10,10.6],[14.5,10.6]]],arcs:[[9.5,16,5.5,35,235]]},W={head:[10.6,3.9,1.9],limbs:[[[9.6,7.8],[7.6,12]],[[5.4,8.2],[9.4,8.4],[12.8,10]],[[4,15.6],[7.6,12],[11,13.6],[10.6,16.4]]]},X={cx:12,hr:1.9,arm:5,leg:3,r:2},J={cx:12,hr:1.9,sh:2.2,hem:6,leg:3},q={cx:6.2,hr:1.8,arm:3.6,leg:2.2,r:1.4},ee={cx:17.8,hr:1.8,sh:1.4,hem:4.1,leg:2.2};function te({cx:e,hr:t,arm:n,leg:r,r:o}){return[b(e,2+t,t),`M${u(e-n+o)} 8.5H${u(e+n-o)}a${o} ${o} 0 0 1 ${o} ${o}V15H${u(e+r)}V22H${u(e-r)}V15H${u(e-n)}V${u(8.5+o)}a${o} ${o} 0 0 1 ${o} ${-o}Z`,`M${u(e)} 15V22`].join(" ")}function ne({cx:e,hr:t,arm:n,leg:r,r:o}){return[d(e,2+t,t+1),a(e-n-.5,7.8,2*n+1,7.7,o+.5),a(e-r-.5,13,r,9.5,1),a(e+.5,13,r,9.5,1)]}function re({cx:e,hr:t,sh:n,hem:r,leg:o}){return[b(e,2+t,t),P([[e-n,8.5],[e+n,8.5],[e+r,16],[e+o,16],[e+o,22],[e-o,22],[e-o,16],[e-r,16]])+"Z",`M${u(e)} 16V22`].join(" ")}function oe({cx:e,hr:t,sh:n,hem:r,leg:o}){return[d(e,2+t,t+1),g([[e-n-.6,7.8],[e+n+.6,7.8],[e+r+.9,16.8],[e-r-.9,16.8]]),a(e-o-.1,15,o-.4,7.5,.9),a(e+.5,15,o-.4,7.5,.9)]}var Re=[[14.6,1.5],[5.2,13.6],[11,13.6],[9.4,22.5],[18.8,10.4],[13,10.4]],Ne="M8.5 3.5 4 5.5l-1.5 5 3 1 1-2v11h11v-11l1 2 3-1-1.5-5-4.5-2c-.5 1.5-1.8 2.5-3.5 2.5s-3-1-3.5-2.5Z",Ge="M12 2.5S5 9.5 5 14.5a7 7 0 0 0 14 0c0-5-7-12-7-12Z",Be="M2.5 21.5h19V3h-6v6.2H9.2v6.2H2.5Z",ae=[[9,3],[15,3],[15,9],[21,9],[21,15],[15,15],[15,21],[9,21],[9,15],[3,15],[3,9],[9,9]],Ze={from:[3.8,5.2],segs:[{to:[20.2,5.2]},{to:[22,7],arc:{r:1.8,large:0,sweep:1}},{to:[22,9.7]},{to:[22,14.3],arc:{r:2.3,large:0,sweep:0}},{to:[22,17]},{to:[20.2,18.8],arc:{r:1.8,large:0,sweep:1}},{to:[3.8,18.8]},{to:[2,17],arc:{r:1.8,large:0,sweep:1}},{to:[2,14.3]},{to:[2,9.7],arc:{r:2.3,large:0,sweep:0}},{to:[2,7]},{to:[3.8,5.2],arc:{r:1.8,large:0,sweep:1}}]},Ve={from:[12,1.6],segs:[{to:[20.4,4.9]},{to:[20.4,11.2]},{to:[12,22.4],arc:{r:13,large:0,sweep:1}},{to:[3.6,11.2],arc:{r:13,large:0,sweep:1}},{to:[3.6,4.9]},{to:[12,1.6]}]};function ie(e,t,n){return{from:[e-n,t],segs:[{to:[e+n,t],arc:{r:n,large:0,sweep:1}},{to:[e-n,t]}]}}var se={head:[13.2,4.3,2.2],limbs:[[[12.6,8.6],[11.2,15],[17.8,18.4],[9.4,18.4]],[[12.4,9.8],[16,14.4]]]},we=[[6,10.5],[15,10.5],[16.5,7],[18.5,5.5],[20,6.5],[21.5,8.5],[19.5,10],[18,12],[18,19],[16.5,19],[15.5,14],[9.5,14],[8.5,19],[7,19],[6.5,13]],je=[[5.4,9.8],[14.6,9.8],[16.1,6.4],[18.4,4.6],[20.5,5.9],[22.4,8.6],[19.9,10.6],[18.8,12.3],[18.8,19.8],[15.8,19.8],[15,14.8],[10.1,14.8],[9.2,19.8],[6.2,19.8],[5.6,13.2]],G=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:te(X),solid:s(ne(X))},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:re(J),solid:s(oe(J))},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:[f(2.5,2.5,19,19,3.5),_(v(S,4.6,4.3,.66))].join(" "),solid:s(O(S)),solidLarge:s(a(1.5,1.5,21,21,4.5),p(a(3.9,3.9,16.2,16.2,2.6)),O(v(S,4.9,4.7,.62),2.2))},{key:"first-aid",label:"First aid",group:"facilities",path:P(ae)+"Z",solid:s(g(ae.map(([e,t])=>[e+(e-12)*.08,t+(t-12)*.08])))},{key:"coat-check",label:"Coat check",group:"facilities",path:"M10 6.5a2 2 0 1 1 2 2V10 M12 10 3.4 16.9a1.4 1.4 0 0 0 .9 2.6h15.4a1.4 1.4 0 0 0 .9-2.6Z",solid:s(m(12,6.2,2.2,180,450,2.3),l([12,8.4],[12,10.5],2.3),h([[12,10.2],[3.2,18.8],[20.8,18.8]],2.8,!0))},{key:"atm",label:"ATM / cash",group:"facilities",path:[f(2,6,20,12,2),b(12,12,2.75),"M6 12h.01 M18 12h.01"].join(" "),solid:s(a(1.5,5.5,21,13,2.4),p(d(12,12,3.2)))},{key:"info",label:"Info point",group:"facilities",path:[b(12,12,9.5),"M10.8 11H12v5.8 M12 7.6h.01"].join(" "),solid:s(d(12,4.9,2.4),a(10.3,9.2,3.4,12.3,1),a(8.2,9.2,4,3,1),a(8.2,18.5,7.6,3,1))},{key:"lost-found",label:"Lost & found",group:"facilities",path:[b(10.5,10.5,7.5),"M16 16l5.5 5.5","M8.4 8.4a2.1 2.1 0 1 1 3 1.9c-.6.4-.9.8-.9 1.6 M10.5 14.6h.01"].join(" "),solid:s(m(12,7.6,4.2,180,405,3.4),h([[14.97,10.57],[12,13],[12,15]],3.4),d(12,20,2.1))},{key:"restrooms",label:"Toilets",group:"facilities",path:[te(q),re(ee)].join(" "),solid:s(ne(q),oe(ee))},{key:"charging",label:"Charging point",group:"facilities",path:[f(6,2,12,20,2.5),"M13.2 6.2 9.6 12h4.8l-3.6 5.8"].join(" "),solid:s(g(Re))},{key:"smoking",label:"Smoking area",group:"facilities",path:[f(2,14.5,14.5,4,1),"M6.5 14.5v4","M15.5 11.5c0-1.4 1.5-1.9 1.5-3.4s-1.5-2-1.5-3.4 M19 11.5c0-1.4 1.5-1.9 1.5-3.4s-1.5-2-1.5-3.4"].join(" "),solid:s(a(1.5,14,4.2,5,1.2),a(6.8,14,10.4,5,1.2),h([[15.9,11.4],[17.3,8.9],[15.9,6.4],[17.1,3.9]],2.2),h([[19.6,11.4],[21,8.9],[19.6,6.4],[20.8,3.9]],2.2))},{key:"no-smoking",label:"No smoking",group:"facilities",path:[b(12,12,9.5),"M5.3 5.3l13.4 13.4","M5.5 10.5h13v3h-13Z"].join(" "),solid:s(d(12,12,10.6),p(d(12,12,8)),l([6,6],[18,18],2.8),a(5,10.4,3,3.2,.6),a(16,10.4,3,3.2,.6))},{key:"food",label:"Food",group:"food-drink",path:"M5 2.5V8a2.5 2.5 0 0 0 5 0V2.5 M7.5 2.5v19 M18.5 13.5h-2c-1.3 0-2-1-2-2.5 0-4 1.5-7 4-8.5v19",solid:s(h([[4.9,2.6],[4.9,8]],2.2),h([[10.1,2.6],[10.1,8]],2.2),h([[7.5,2.6],[7.5,8]],2.2),m(7.5,8,2.6,0,180,2.2),l([7.5,10],[7.5,21.4],3),g([[19.4,2.2],[19.4,14.2],[16.2,14.2],[14.1,12],[14.1,9.4],[15.2,5.8],[17.3,3.3]]),l([18,13],[18,21.4],3))},{key:"bar",label:"Bar",group:"food-drink",path:"M3.5 3.5h17L12 13Z M6.2 6.5h11.6 M12 13v7.5 M8 20.5h8",solid:s(g([[2.8,3],[21.2,3],[12,13.6]]),l([12,12],[12,20.6],2.8),l([7.4,21],[16.6,21],2.8))},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 9h12v4.5a5.5 5.5 0 0 1-5.5 5.5h-1A5.5 5.5 0 0 1 4 13.5Z M16 10.5h1.2a2.75 2.75 0 0 1 0 5.5H16 M8 3v3 M12 3v3 M3 21.5h14",solid:s({from:[3.4,8.4],segs:[{to:[16.6,8.4]},{to:[16.6,13.4]},{to:[11,19.4],arc:{r:5.8,large:0,sweep:1}},{to:[9,19.4]},{to:[3.4,13.4],arc:{r:5.8,large:0,sweep:1}},{to:[3.4,8.4]}]},m(17.2,13.25,2.5,270,450,2.4),l([7.8,2.6],[7.8,5.6],2.4),l([12.2,2.6],[12.2,5.6],2.4),l([2.6,21.6],[17.4,21.6],2.6))},{key:"water",label:"Water / drinks",group:"food-drink",path:Ge,solid:"M12 1.2S4 8.9 4 14.5a8 8 0 0 0 16 0c0-5.6-8-13.3-8-13.3Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:Ne,solid:"M8.4 2.8 3.5 5l-1.9 6 4.2 1.4.4-.8v9.4h11.6v-9.4l.4.8 4.2-1.4-1.9-6-4.9-2.2c-.4 1.5-1.8 2.6-3.6 2.6s-3.2-1.1-3.6-2.6Z"},{key:"screen",label:"Screen",group:"facilities",path:[f(2,3.5,20,13.5,2),"M12 17v3.5 M8 20.5h8","M10 7.8v5.9l5-2.95Z"].join(" "),solid:s(a(1.5,3,21,14.4,2.4),p(g([[9.6,6.7],[16,10.2],[9.6,13.7]])),a(10.6,16.5,2.8,4,0),l([7.4,21],[16.6,21],2.8))},{key:"sound-booth",label:"Sound booth",group:"facilities",path:["M6 3v9 M6 16v5 M12 3v3 M12 10v11 M18 3v10 M18 17v4",b(6,14,2),b(12,8,2),b(18,15,2)].join(" "),solid:s(l([6,2.8],[6,21.2],1.8),l([12,2.8],[12,21.2],1.8),l([18,2.8],[18,21.2],1.8),a(3.2,11.6,5.6,4.8,1.4),a(9.2,5.6,5.6,4.8,1.4),a(15.2,12.6,5.6,4.8,1.4))},{key:"entrance",label:"Entrance",group:"navigation",path:"M11 7V3.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V17 M2.5 12h13.5 M12.5 8.5 16 12l-3.5 3.5",solid:s(h([[11,6.5],[11,2.6],[21,2.6],[21,21.4],[11,21.4],[11,17.5]],2.6),l([2.8,12],[13.5,12],3.2),g([[12.6,7.8],[18,12],[12.6,16.2]]))},{key:"exit",label:"Exit",group:"navigation",path:"M13 7V3.5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V17 M8 12h13.5 M18 8.5l3.5 3.5-3.5 3.5",solid:s(h([[13,6.5],[13,2.6],[3,2.6],[3,21.4],[13,21.4],[13,17.5]],2.6),l([7.2,12],[17,12],3.2),g([[16.2,7.8],[21.6,12],[16.2,16.2]]))},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:[_(v(W,-2,1.4,1.15)),"M15.5 13h6 M19 10.5l2.5 2.5-2.5 2.5"].join(" "),solid:s(O(v(W,-2,1.4,1.15),2.7),l([15.6,13],[19.5,13],2.8),g([[18.4,9.4],[22.4,13],[18.4,16.6]]))},{key:"stairs",label:"Stairs",group:"navigation",path:Be,solid:"M1.5 22.5h21V2h-7.8v6.4H8.4v6.4H1.5Z"},{key:"elevator",label:"Elevator",group:"navigation",path:[f(3.5,2.5,17,19,2.5),"M8.5 9.5 12 5.5l3.5 4Z M8.5 14.5l3.5 4 3.5-4Z"].join(" "),solid:s(g([[12,1.6],[19.6,10.2],[4.4,10.2]]),g([[4.4,13.8],[19.6,13.8],[12,22.4]]))},{key:"parking",label:"Parking",group:"navigation",path:[f(3,3,18,18,3),"M9.5 17V7h3.75a3 3 0 0 1 0 6H9.5"].join(" "),solid:"M6.5 21V3H12a5.5 5.5 0 0 1 0 11h-1.9v7Z M10.1 6.6v3.8H12a1.9 1.9 0 0 0 0-3.8Z"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:_(S),solid:s(O(S))},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:["M4 9a6 6 0 1 1 12 0c0 3-1.8 4.3-3 5.2-1.1.8-1.6 1.7-1.6 3.1a3.6 3.6 0 0 1-6.2 2.1","M7.5 9a2.5 2.5 0 0 1 5 0c0 1.2-.7 1.9-1.6 2.5","M18.5 5.5a6.5 6.5 0 0 1 0 8"].join(" "),solid:s(m(10,9,6,180,380,3),h([[15.64,11.05],[12.8,14.3],[11.5,17.2]],3),m(8.2,17.2,3.3,0,150,3),m(10,9,2.2,180,400,2.4),m(13.38,9.5,6.5,322,398,2.6))},{key:"box-office",label:"Box office / tickets",group:"navigation",path:"M3 7.5A1.5 1.5 0 0 1 4.5 6h15A1.5 1.5 0 0 1 21 7.5V10a2 2 0 0 0 0 4v2.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 16.5V14a2 2 0 0 0 0-4Z M15 6v2 M15 11v2 M15 16v2",solid:s(Ze,p(a(14.1,7,1.8,2.2,.9)),p(a(14.1,10.9,1.8,2.2,.9)),p(a(14.1,14.8,1.8,2.2,.9)))},{key:"escalator",label:"Escalator",group:"navigation",path:"M2.5 17H7l9-9h5.5v4h-4l-9 9h-6Z M11 4.5h.01 M11 8.2v3.3",solid:s(g([[2,16.4],[6.8,16.4],[15.8,7.4],[22,7.4],[22,12.6],[17.8,12.6],[8.8,21.6],[2,21.6]]),d(11,4.3,2.3),l([11,8],[11,11],2.6))},{key:"ramp",label:"Ramp",group:"navigation",path:"M2.5 19.5h19v-10Z M4.5 13.2 14 8.2 M10.53 7.76 14 8.2l-1.6 3.11",solid:s(g([[1.6,20.4],[22.4,20.4],[22.4,8.6]]),l([4.2,13.4],[13.2,8.6],2.6),g([[15.4,7.5],[13.16,11.84],[10.56,6.88]]))},{key:"taxi",label:"Taxi / rideshare",group:"navigation",path:["M9.5 2.5h5V5h-5Z M6.5 11 8 7h8l1.5 4",f(3.5,11,17,6,2),"M6.5 17v2.5 M17.5 17v2.5 M7 14h.01 M17 14h.01"].join(" "),solid:s(a(9,1.8,6,3.4,.8),g([[6,11.4],[7.6,6.4],[16.4,6.4],[18,11.4]]),a(2.8,10.6,18.4,7,2.2),p(d(6.8,14,1.3)),p(d(17.2,14,1.3)),a(4.8,16,3.6,5.2,1.2),a(15.6,16,3.6,5.2,1.2))},{key:"transit",label:"Bus / transit",group:"navigation",path:[f(4.5,2.5,15,16,3),"M4.5 10.5h15 M9 5.5h6 M7.5 18.5V21 M16.5 18.5V21 M8 14.5h.01 M16 14.5h.01"].join(" "),solid:s(a(4,2,16,17,3.2),p(a(6.2,5.8,11.6,5,1)),p(d(8,14.5,1.3)),p(d(16,14.5,1.3)),a(6,17,3.4,5,1.2),a(14.6,17,3.4,5,1.2))},{key:"bike-parking",label:"Bike parking",group:"navigation",path:[b(6,14.5,4),b(18,14.5,4),"M6 14.5 9 7.5h6.5L18 14.5 M9 7.5l2.5 7H6 M11.5 14.5l4-7 M7.5 6h3 M15.5 7.5 15 5.5h2"].join(" "),solid:s(d(6,14.5,4.9),p(d(6,14.5,2.7)),d(18,14.5,4.9),p(d(18,14.5,2.7)),h([[6,14.5],[9,7.5],[15.5,7.5],[18,14.5]],2.2),h([[9,7.5],[11.5,14.5],[15.5,7.5]],2.2),l([6,14.5],[11.5,14.5],2.2),l([7.2,5.8],[10.6,5.8],2.2),h([[15.4,7.3],[15,5.4],[17.2,5.4]],2.2))},{key:"meeting-point",label:"Meeting point",group:"navigation",path:["M9.5 2.5 12 5l2.5-2.5 M9.5 21.5 12 19l2.5 2.5 M2.5 9.5 5 12l-2.5 2.5 M21.5 9.5 19 12l2.5 2.5",b(10,9.6,1.5),b(14,9.6,1.5),"M7.5 15.5a2.5 2.5 0 0 1 5 0 M11.5 15.5a2.5 2.5 0 0 1 5 0"].join(" "),solid:s(h([[9.4,2.4],[12,5],[14.6,2.4]],2.6),h([[9.4,21.6],[12,19],[14.6,21.6]],2.6),h([[2.4,9.4],[5,12],[2.4,14.6]],2.6),h([[21.6,9.4],[19,12],[21.6,14.6]],2.6),d(9.7,9.3,2.2),d(14.3,9.3,2.2),ie(9.7,16,3),ie(14.3,16,3))},{key:"security",label:"Security / bag check",group:"facilities",path:"M12 2.5 19.5 5.5v6c0 4.6-3.2 8.4-7.5 10-4.3-1.6-7.5-5.4-7.5-10v-6Z M8.5 12l2.5 2.5 4.5-5",solid:s(Ve,p(g([[7.4,12.2],[9,10.6],[10.9,12.5],[15,8.4],[16.6,10],[10.9,15.7]])))},{key:"lockers",label:"Lockers",group:"facilities",path:[f(3.5,2.5,17,19,1.5),"M12 2.5v19 M6 6h3 M15 6h3 M9.5 11.5v2.5 M14.5 11.5v2.5"].join(" "),solid:s(a(3,2,8.4,20,1.4),p(a(5,5,4.4,1.7,.8)),p(a(8.6,10.8,1.5,3.8,.7)),a(12.6,2,8.4,20,1.4),p(a(14.6,5,4.4,1.7,.8)),p(a(13.9,10.8,1.5,3.8,.7)))},{key:"baby-change",label:"Baby change",group:"facilities",path:"M10 6.5l.8-3.3a1.2 1.2 0 0 1 2.4 0l.8 3.3 M8.5 6.5h7 M9.5 6.5l-.9 2.2a3 3 0 0 0-.1.9V19a2.5 2.5 0 0 0 2.5 2.5h2a2.5 2.5 0 0 0 2.5-2.5V9.6a3 3 0 0 0-.1-.9l-.9-2.2 M8.5 12.5h3 M8.5 16h3",solid:s(g([[9.6,6.2],[10.6,1.8],[13.4,1.8],[14.4,6.2]]),a(7.6,5.4,8.8,2.6,1),a(7.8,7.4,8.4,15,2.6),p(a(7.8,11.8,3.4,1.5,0)),p(a(7.8,15.4,3.4,1.5,0)))},{key:"prayer-room",label:"Prayer room",group:"facilities",path:[_(se),"M3 21.5h18"].join(" "),solid:s(O(se),a(2.4,20.2,19.2,2.6,1.3))},{key:"quiet-room",label:"Quiet room",group:"facilities",path:"M4 9h3.5l5-4v14l-5-4H4Z M15.5 9.5l5 5 M20.5 9.5l-5 5",solid:s(g([[2.6,8.4],[7.2,8.4],[13,3.6],[13,20.4],[7.2,15.6],[2.6,15.6]]),l([15.4,9.2],[20.8,14.8],2.8),l([20.8,9.2],[15.4,14.8],2.8))},{key:"wifi",label:"Wi-Fi",group:"facilities",path:[A(12,19,11.5,218,322),A(12,19,7.5,218,322),A(12,19,3.5,218,322),"M12 19h.01"].join(" "),solid:s(m(12,19.2,11,218,322,2.8),m(12,19.2,6.9,218,322,2.8),d(12,19.2,2.2))},{key:"vip-lounge",label:"VIP lounge",group:"facilities",path:["M6.5 11V7a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v4","M3.5 11.5a1.5 1.5 0 0 1 3 0V14h11v-2.5a1.5 1.5 0 0 1 3 0v6h-17Z","M5.5 17.5V20 M18.5 17.5V20"].join(" "),solid:s(a(6,4,12,8.5,2.2),a(2.4,9.6,4.6,9,2.2),a(17,9.6,4.6,9,2.2),a(6,13.2,12,5.4,.6),l([5,18],[5,20.6],2.4),l([19,18],[19,20.6],2.4))},{key:"accessible-entrance",label:"Accessible entrance",group:"accessibility",path:[_(v(S,.3,5,.62)),"M12.5 3.5H20a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1h-7.5"].join(" "),solid:s(O(v(S,.3,5,.62),2.2),h([[13,2.8],[21.2,2.8],[21.2,21.2],[13,21.2]],2.6))},{key:"assistance-dog",label:"Assistance-dog area",group:"accessibility",path:[P(we)+"Z","M6 10.8 3.5 7.5","M10.5 10.5V6h4.5l1 2.5"].join(" "),solid:s(g(je),l([6.2,11],[3.2,7.2],2.4),h([[10.5,11],[10.5,5.6],[15.2,5.6],[16.2,8.2]],2.2))}],y1=new Map(G.map(e=>[e.key,e]));var De=24,He=2,Qe={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},Ke=["facilities","food-drink","navigation","accessibility"],B=G,$e="#8b93a7",Fe={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},de=new Map(B.map(e=>[e.key,e]));function he(e){return e?de.get(e):void 0}function ze(e){return he(e)?.path}function Ue(e){return typeof e=="string"&&de.has(e)}var Ye=B.map(e=>e.key);var k1=24,x1=16,_1=.14,w=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null,mark:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21},mark:{x:12,y:10,radius:6}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22},mark:{x:12,y:10,radius:4.5}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21},mark:{x:12,y:5,radius:3}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5},mark:{x:12,y:7.5,radius:5.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5},mark:{x:12,y:8,radius:5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20},mark:{x:12,y:9.25,radius:6.5}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22},mark:{x:12,y:12.25,radius:4.75}}],We=w.map(e=>e.key),Z=new Map(w.map(e=>[e.key,e]));function T(e){return Z.get(e)??Z.get("circle")}function Xe(e){return T(e).label}function Je(e){return T(e).path}function ge(e,t){return{scale:t*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function qe(e,t){let n=T(e);if(!n.bounds||!n.mark||!(t>0))return null;let r=ge(n.bounds,t);return{x:(n.mark.x-r.centreX)*r.scale,y:(n.mark.y-r.centreY)*r.scale,radius:n.mark.radius*r.scale}}function V(e){return typeof e=="string"&&Z.has(e)}function e1(e,t){return V(e)?e:V(t?.seatGlyph)?t.seatGlyph:"circle"}var C1=20,Le={wheelchair:'<circle cx="10.6" cy="3.7" r="1.7" /><path d="M8.9 6.3v4.3a1.3 1.3 0 0 0 1.3 1.3h3.4l1.9 4.5h1.9" /><circle cx="9.7" cy="13.3" r="4.7" />',companion:'<circle cx="6" cy="6" r="2" /><circle cx="14" cy="6" r="2" /><path d="M2.5 16v-3.5A3.5 3.5 0 0 1 6 9a3.5 3.5 0 0 1 3.5 3.5V16M10.5 16v-3.5A3.5 3.5 0 0 1 14 9a3.5 3.5 0 0 1 3.5 3.5V16" />',"semi-ambulatory":'<circle cx="8" cy="4" r="1.7" /><path d="m8 6 2 4 3 2M10 10l-2 3-1 4M10 10l2 7M14 7l2 10" />',"designated-aisle":'<path d="M3.5 5.5v7h8.5V10H6.5M5 12.5V17M11 12.5V17" /><path d="M13.5 6.5H19M16.5 4l2.5 2.5L16.5 9" />',"step-free":'<circle cx="5.5" cy="5" r="1.7" /><path d="M5.5 7v4l3 2M2.5 16.5H8l7-7h3M8 16.5h10" />',hearing:'<path d="M7 16c-1-1.2-1.5-2.4-1.5-3.8V9a5 5 0 1 1 10 0c0 2.2-1.2 3.2-2.6 4-1.2.7-1.7 1.4-1.7 2.4A2.6 2.6 0 0 1 8.6 18" />',cart:'<path d="M8 6.5A4 4 0 1 0 8 13M17 6.5a4 4 0 1 0 0 6.5" />',"sign-language":'<path d="M6 16V8.5a1 1 0 0 1 2 0v3M8 11V5.5a1 1 0 0 1 2 0V11M10 11V4.5a1 1 0 0 1 2 0V11M12 11V6a1 1 0 0 1 2 0v6l1-1.5a1.2 1.2 0 0 1 2 1.3L14 17H9.5A3.5 3.5 0 0 1 6 13.5" />',"low-vision":'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><circle cx="10" cy="10" r="2.5" /><path d="m15 4 .5-1.5M17 5l1.5-.8" />',"sensory-friendly":'<path d="M4 11v-1a6 6 0 0 1 12 0v1M4 11h2.5v5H5a1 1 0 0 1-1-1v-4ZM16 11h-2.5v5H15a1 1 0 0 0 1-1v-4Z" /><path d="M8.5 11.5c.8.7 2.2.7 3 0M9 14c.6.4 1.4.4 2 0" />',"plus-size":'<path d="M5 9V6.5A2.5 2.5 0 0 1 7.5 4h5A2.5 2.5 0 0 1 15 6.5V9M3.5 8.5v5h13v-5M6 13.5V17M14 13.5V17" />',"lift-armrest":'<path d="M5 10V6.5A2.5 2.5 0 0 1 7.5 4h4A2.5 2.5 0 0 1 14 6.5V10M4 9v4h11V9M6 13v4M13 13v4" /><path d="M17 11V4M15 6l2-2 2 2" />',obstructedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="m4 17 12-14" />',restrictedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="M10 7.5v3.5M10 13.5h.01" />',premium:'<path d="m10 2.5 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7Z" />',note:'<circle cx="10" cy="10" r="7.5" /><path d="M10 9.2v4.6M10 6.3h.01" />',aisle:'<path d="M2.5 6v7h6.5v-2.5H4.5M3.5 13v3.5M8 13v3.5" /><path d="M12.5 3v14M17 3v14" />',entrance:'<path d="M10 3.5h6.5v13H10" /><path d="M3 10h8.5M8.5 7l3 3-3 3" />',booth:'<path d="M3.5 8.5h13v8h-13ZM2.5 8.5 4 4h12l1.5 4.5M8 16.5v-4h4v4" />'};function be(e){return Le[e]??""}function t1(e,t={}){let n=be(e);if(!n)return"";let r=t.size??18,o=20;return`<svg viewBox="0 0 ${o} ${o}" width="${r}" height="${r}" fill="none" stroke="currentColor" stroke-width="1.45" stroke-linecap="round" stroke-linejoin="round"`+(t.className?` class="${t.className}"`:"")+` aria-hidden="true" focusable="false">${n}</svg>`}var n1=["butt","round","square"],r1=["miter","round","bevel"],o1=["none","arrow"],me="round",fe="round",j="none";function Me(e){return e==="line"||e==="polyline"}function a1(e){return e==="polygon"||Me(e)}function i1(e){return{lineCap:e.lineCap??me,lineJoin:e.lineJoin??fe,startEnding:e.startEnding??j,endEnding:e.endEnding??j}}function s1(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SEAT_TYPE_ICON_BODY,SEAT_TYPE_ICON_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_BADGE,VENUE_ICON_BADGE_INK,VENUE_ICON_GROUP_COLORS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_LEGACY_DEFAULT_INK,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphMarkOnSeat,seatGlyphPath,seatTypeIconBody,seatTypeIconSvg,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconBadgeGlyph,venueIconPath});