@seatlayer/core 0.98.0 → 0.99.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 (80) hide show
  1. package/dist/{categoryInventory-4XH7dMDH.d.ts → categoryInventory-DdJdJ4Og.d.ts} +1 -1
  2. package/dist/{categoryInventory-C-bfH2av.d.cts → categoryInventory-DuOez0-4.d.cts} +1 -1
  3. package/dist/{chunk-M5VINTGE.js → chunk-23OTKCJU.js} +1 -1
  4. package/dist/{chunk-CUACREZL.js → chunk-CTIGUXXK.js} +1 -1
  5. package/dist/{chunk-P4C24CIZ.js → chunk-D723OZEY.js} +1 -1
  6. package/dist/chunk-FYJJSWEM.js +1 -0
  7. package/dist/chunk-GLGXP5I7.js +1 -0
  8. package/dist/{chunk-FLMKHAUT.js → chunk-HO4MFTVX.js} +1 -1
  9. package/dist/chunk-HYEZPOZU.js +1 -0
  10. package/dist/chunk-K22SISYC.js +1 -0
  11. package/dist/{chunk-YPESNMTC.js → chunk-KFVUBZMK.js} +1 -1
  12. package/dist/{chunk-OLGPAFXW.js → chunk-L34T3APU.js} +1 -1
  13. package/dist/{chunk-IW7QZIMF.js → chunk-N4J4CT6P.js} +1 -1
  14. package/dist/{chunk-2P72QUJR.js → chunk-UIMDB6GZ.js} +1 -1
  15. package/dist/chunk-UISTXRO5.js +1 -0
  16. package/dist/{chunk-ASIIXY5M.js → chunk-VWT44HBR.js} +1 -1
  17. package/dist/core/chart-ops/index.cjs +1 -1
  18. package/dist/core/chart-ops/index.d.cts +6 -4
  19. package/dist/core/chart-ops/index.d.ts +6 -4
  20. package/dist/core/chart-ops/index.js +1 -1
  21. package/dist/core/inventory/index.cjs +1 -1
  22. package/dist/core/inventory/index.d.cts +4 -4
  23. package/dist/core/inventory/index.d.ts +4 -4
  24. package/dist/core/inventory/index.js +1 -1
  25. package/dist/core/layout/index.cjs +1 -1
  26. package/dist/core/layout/index.d.cts +5 -5
  27. package/dist/core/layout/index.d.ts +5 -5
  28. package/dist/core/layout/index.js +1 -1
  29. package/dist/core/quality/index.d.cts +3 -3
  30. package/dist/core/quality/index.d.ts +3 -3
  31. package/dist/core/quality/index.js +1 -1
  32. package/dist/core/render-assets/index.d.cts +2 -2
  33. package/dist/core/render-assets/index.d.ts +2 -2
  34. package/dist/core/seatConfidence.d.cts +1 -1
  35. package/dist/core/seatConfidence.d.ts +1 -1
  36. package/dist/core/sections/index.cjs +1 -1
  37. package/dist/core/sections/index.d.cts +5 -5
  38. package/dist/core/sections/index.d.ts +5 -5
  39. package/dist/core/sections/index.js +1 -1
  40. package/dist/{eventConfigurations-BEyHDxBT.d.ts → eventConfigurations-BISNREZL.d.ts} +1 -1
  41. package/dist/{eventConfigurations-BE0rFmbQ.d.cts → eventConfigurations-DYn5XP3J.d.cts} +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.d.cts +13 -13
  44. package/dist/index.d.ts +13 -13
  45. package/dist/index.js +1 -1
  46. package/dist/{labeling-HWSKKrX8.d.ts → labeling-CzuSxAkr.d.ts} +1 -1
  47. package/dist/{labeling-SURRJh5u.d.cts → labeling-owTTG6e0.d.cts} +1 -1
  48. package/dist/{openPanorama-6FMXAJ6O.js → openPanorama-VD6PE3YZ.js} +2 -2
  49. package/dist/{renderedQuality-CZNfpB1H.d.ts → renderedQuality-BMSbVkwu.d.ts} +1 -1
  50. package/dist/{renderedQuality-QWHMvOej.d.cts → renderedQuality-Bl1Kq_XO.d.cts} +1 -1
  51. package/dist/{renderer-DEnthjgs.d.cts → renderer-Ccv8ZDZS.d.cts} +1 -1
  52. package/dist/{renderer-CuXYGgR3.d.ts → renderer-njHDbIqI.d.ts} +1 -1
  53. package/dist/{seatTypeIcons-BAyWebjw.d.cts → seatTypeIcons-QwEebl3k.d.cts} +1 -1
  54. package/dist/{seatTypeIcons-CqLiEH9C.d.ts → seatTypeIcons-dy3XQVWN.d.ts} +1 -1
  55. package/dist/{sections-DOk8zxm5.d.ts → sections-C8VTe6BN.d.ts} +1 -1
  56. package/dist/{sections-BlCiPWJJ.d.cts → sections-DSIfnBJY.d.cts} +1 -1
  57. package/dist/{segmentedRowModel-BbHdWqJy.d.cts → segmentedRowModel-CDvvJJ4-.d.cts} +1 -1
  58. package/dist/{segmentedRowModel-oVUtwW87.d.ts → segmentedRowModel-I8eYUQft.d.ts} +1 -1
  59. package/dist/{tableSizing-ExOrUwtX.d.ts → tableSizing-BLtQ-KV0.d.ts} +20 -13
  60. package/dist/{tableSizing-DaEXRHYs.d.cts → tableSizing-CB8g2Fs0.d.cts} +20 -13
  61. package/dist/{ticketRestrictions-BvG_INSV.d.cts → ticketRestrictions-BvlWLw10.d.cts} +2 -2
  62. package/dist/{ticketRestrictions-BHUMet7N.d.ts → ticketRestrictions-DUjN2bZn.d.ts} +2 -2
  63. package/dist/{types-BbqhOJ5L.d.ts → types-DWx32xXH.d.cts} +10 -1
  64. package/dist/{types-BbqhOJ5L.d.cts → types-DWx32xXH.d.ts} +10 -1
  65. package/dist/view3d/crossfade/panorama.cjs +1 -1
  66. package/dist/view3d/crossfade/panorama.d.cts +1 -1
  67. package/dist/view3d/crossfade/panorama.d.ts +1 -1
  68. package/dist/view3d/crossfade/panorama.js +1 -1
  69. package/dist/view3d/index.cjs +103 -47
  70. package/dist/view3d/index.d.cts +21 -4
  71. package/dist/view3d/index.d.ts +21 -4
  72. package/dist/view3d/index.js +101 -45
  73. package/dist/view3d/scene/scene.worker.cjs +1 -1
  74. package/dist/view3d/scene/scene.worker.js +1 -1
  75. package/package.json +1 -1
  76. package/dist/chunk-2MXDWZQ4.js +0 -1
  77. package/dist/chunk-QEPYNCBJ.js +0 -1
  78. package/dist/chunk-SPM2LMKI.js +0 -1
  79. package/dist/chunk-VAI2VDQR.js +0 -1
  80. package/dist/chunk-Z43H6AWN.js +0 -1
@@ -1,7 +1,7 @@
1
- import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-BbqhOJ5L.cjs';
2
- import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-DEnthjgs.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-C-bfH2av.cjs';
4
- export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GA_UNIT_LABEL_PREFIX, b as GroupedTableBookingMode, c as GroupedTableInventoryUnit, d as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, e as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, R as RestrictionChartDoc, f as RestrictionSeat, T as TicketOptionApplicabilityIssue, g as TicketSelection, h as TicketSelectionIssue, i as TicketSelectionOptions, j as TicketTierResolution, k as applicableTicketTiers, l as companionSelectionIssue, m as eventInventoryLimitFor, n as gaAreasOf, o as gaInventorySegments, p as gaUnitLabel, q as gaUnitLabels, r as groupedTableInventory, s as growJoinedGAInventory, t as isFullChartDoc, u as isGaUnitLabel, v as resolveTicketTierForSeat, w as ticketOptionNotApplicableIssue, x as ticketSelectionIssue, y as ticketTierAppliesToSeat, z as validGAInventorySegments } from '../../ticketRestrictions-BvG_INSV.cjs';
1
+ import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-DWx32xXH.cjs';
2
+ import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-Ccv8ZDZS.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-DuOez0-4.cjs';
4
+ export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GA_UNIT_LABEL_PREFIX, b as GroupedTableBookingMode, c as GroupedTableInventoryUnit, d as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, e as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, R as RestrictionChartDoc, f as RestrictionSeat, T as TicketOptionApplicabilityIssue, g as TicketSelection, h as TicketSelectionIssue, i as TicketSelectionOptions, j as TicketTierResolution, k as applicableTicketTiers, l as companionSelectionIssue, m as eventInventoryLimitFor, n as gaAreasOf, o as gaInventorySegments, p as gaUnitLabel, q as gaUnitLabels, r as groupedTableInventory, s as growJoinedGAInventory, t as isFullChartDoc, u as isGaUnitLabel, v as resolveTicketTierForSeat, w as ticketOptionNotApplicableIssue, x as ticketSelectionIssue, y as ticketTierAppliesToSeat, z as validGAInventorySegments } from '../../ticketRestrictions-BvlWLw10.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-BbqhOJ5L.js';
2
- import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-CuXYGgR3.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-4XH7dMDH.js';
4
- export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GA_UNIT_LABEL_PREFIX, b as GroupedTableBookingMode, c as GroupedTableInventoryUnit, d as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, e as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, R as RestrictionChartDoc, f as RestrictionSeat, T as TicketOptionApplicabilityIssue, g as TicketSelection, h as TicketSelectionIssue, i as TicketSelectionOptions, j as TicketTierResolution, k as applicableTicketTiers, l as companionSelectionIssue, m as eventInventoryLimitFor, n as gaAreasOf, o as gaInventorySegments, p as gaUnitLabel, q as gaUnitLabels, r as groupedTableInventory, s as growJoinedGAInventory, t as isFullChartDoc, u as isGaUnitLabel, v as resolveTicketTierForSeat, w as ticketOptionNotApplicableIssue, x as ticketSelectionIssue, y as ticketTierAppliesToSeat, z as validGAInventorySegments } from '../../ticketRestrictions-BHUMet7N.js';
1
+ import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-DWx32xXH.js';
2
+ import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-njHDbIqI.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-DdJdJ4Og.js';
4
+ export { C as ClientInventoryModelVersion, a as CompanionSelectionIssue, D as DEFAULT_EVENT_INVENTORY_LIMIT, G as GA_UNIT_LABEL_PREFIX, b as GroupedTableBookingMode, c as GroupedTableInventoryUnit, d as GroupedTableProjectionError, L as LARGE_VENUE_INVENTORY_MODULE, M as MAX_EVENT_INVENTORY, e as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, R as RestrictionChartDoc, f as RestrictionSeat, T as TicketOptionApplicabilityIssue, g as TicketSelection, h as TicketSelectionIssue, i as TicketSelectionOptions, j as TicketTierResolution, k as applicableTicketTiers, l as companionSelectionIssue, m as eventInventoryLimitFor, n as gaAreasOf, o as gaInventorySegments, p as gaUnitLabel, q as gaUnitLabels, r as groupedTableInventory, s as growJoinedGAInventory, t as isFullChartDoc, u as isGaUnitLabel, v as resolveTicketTierForSeat, w as ticketOptionNotApplicableIssue, x as ticketSelectionIssue, y as ticketTierAppliesToSeat, z as validGAInventorySegments } from '../../ticketRestrictions-DUjN2bZn.js';
5
5
 
6
6
  /**
7
7
  * Best-available seat selection — a PURE, fully unit-testable ranking function.
@@ -1 +1 @@
1
- import{a as F,b as T,c as L,d as X,e as K,f as J,g as z,h as D,i as Y,j as $,k as q,l as H}from"../../chunk-CUACREZL.js";import{a as nt,b as ot,c as et,d as rt}from"../../chunk-2P72QUJR.js";import{a as m}from"../../chunk-5N4H3KMR.js";import{a as Q,b as U,c as V,d as Z,e as tt}from"../../chunk-M5VINTGE.js";import"../../chunk-P4C24CIZ.js";import"../../chunk-IW7QZIMF.js";import"../../chunk-Z43H6AWN.js";import"../../chunk-TQN2VWQO.js";import"../../chunk-5BMXWOE7.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}from"../../chunk-FLMKHAUT.js";import{Oa as f,d as _,e as v,f as I,g as j}from"../../chunk-VAI2VDQR.js";import"../../chunk-5ITK5236.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 at(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 ct(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 lt(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 pt(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{Q as CATEGORY_INVENTORY_FAMILIES,v as DEFAULT_EVENT_INVENTORY_LIMIT,C as GA_UNIT_LABEL_PREFIX,q as GroupedTableProjectionError,I as LARGE_VENUE_INVENTORY_MODULE,y as MAX_DIRECT_ROW_SWEEP,_ as MAX_EVENT_INVENTORY,g as MAX_GA_CAPACITY,d as MAX_ROW_BLOCK_ROWS,u as MAX_ROW_SEATS,b as MIN_ROW_BLOCK_ROWS,s as MIN_ROW_SEATS,K as applicableTicketTiers,et as capacityControl,ot as categoryCapacity,nt as chartCapacity,z as companionSelectionIssue,Z as describeCategoryInventoryConflict,U as effectiveSeatOwnerCategoryCounts,j as eventInventoryLimitFor,E as gaAreasOf,B as gaInventorySegments,k as gaUnitLabel,W as gaUnitLabels,H as groupedTableInventory,A as growJoinedGAInventory,V as inspectCategoryInventoryConflicts,ct as intactRowBlockMembers,T as isFullChartDoc,N as isGaUnitLabel,Y as pickBestAvailable,$ as pickBestAvailableInventory,tt as remediateCategoryInventoryConflicts,rt as resizeChartCapacity,at as resolveRowBlockCount,pt as resolveRowStartCapacity,lt as resolveRowTerminalCapacity,J as resolveTicketTierForSeat,x as rowBlockEdgePoint,w as rowBlockPreviewRows,S as rowStartEndpoint,P as rowTerminalEndpoint,O as rowWithStartCapacity,R as rowWithTerminalCapacity,F as strandedSingles,L as ticketOptionNotApplicableIssue,D as ticketSelectionIssue,X as ticketTierAppliesToSeat,G as validGAInventorySegments};
1
+ import{a as F,b as T,c as L,d as X,e as K,f as J,g as z,h as D,i as Y,j as $,k as q,l as H}from"../../chunk-CTIGUXXK.js";import{a as nt,b as ot,c as et,d as rt}from"../../chunk-UIMDB6GZ.js";import{a as m}from"../../chunk-5N4H3KMR.js";import{a as Q,b as U,c as V,d as Z,e as tt}from"../../chunk-23OTKCJU.js";import"../../chunk-D723OZEY.js";import"../../chunk-N4J4CT6P.js";import"../../chunk-HYEZPOZU.js";import"../../chunk-TQN2VWQO.js";import"../../chunk-5BMXWOE7.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}from"../../chunk-HO4MFTVX.js";import{Oa as f,d as _,e as v,f as I,g as j}from"../../chunk-UISTXRO5.js";import"../../chunk-5ITK5236.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 at(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 ct(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 lt(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 pt(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{Q as CATEGORY_INVENTORY_FAMILIES,v as DEFAULT_EVENT_INVENTORY_LIMIT,C as GA_UNIT_LABEL_PREFIX,q as GroupedTableProjectionError,I as LARGE_VENUE_INVENTORY_MODULE,y as MAX_DIRECT_ROW_SWEEP,_ as MAX_EVENT_INVENTORY,g as MAX_GA_CAPACITY,d as MAX_ROW_BLOCK_ROWS,u as MAX_ROW_SEATS,b as MIN_ROW_BLOCK_ROWS,s as MIN_ROW_SEATS,K as applicableTicketTiers,et as capacityControl,ot as categoryCapacity,nt as chartCapacity,z as companionSelectionIssue,Z as describeCategoryInventoryConflict,U as effectiveSeatOwnerCategoryCounts,j as eventInventoryLimitFor,E as gaAreasOf,B as gaInventorySegments,k as gaUnitLabel,W as gaUnitLabels,H as groupedTableInventory,A as growJoinedGAInventory,V as inspectCategoryInventoryConflicts,ct as intactRowBlockMembers,T as isFullChartDoc,N as isGaUnitLabel,Y as pickBestAvailable,$ as pickBestAvailableInventory,tt as remediateCategoryInventoryConflicts,rt as resizeChartCapacity,at as resolveRowBlockCount,pt as resolveRowStartCapacity,lt as resolveRowTerminalCapacity,J as resolveTicketTierForSeat,x as rowBlockEdgePoint,w as rowBlockPreviewRows,S as rowStartEndpoint,P as rowTerminalEndpoint,O as rowWithStartCapacity,R as rowWithTerminalCapacity,F as strandedSingles,L as ticketOptionNotApplicableIssue,D as ticketSelectionIssue,X as ticketTierAppliesToSeat,G as validGAInventorySegments};
@@ -1 +1 @@
1
- "use strict";var ce=Object.defineProperty;var gt=Object.getOwnPropertyDescriptor;var Mt=Object.getOwnPropertyNames;var St=Object.prototype.hasOwnProperty;var wt=(e,t)=>{for(var n in t)ce(e,n,{get:t[n],enumerable:!0})},Pt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Mt(t))!St.call(e,r)&&r!==n&&ce(e,r,{get:()=>t[r],enumerable:!(o=gt(t,r))||o.enumerable});return e};var It=e=>Pt(ce({},"__esModule",{value:!0}),e);var eo={};wt(eo,{AUTOMATIC_ROUND_TABLE_RADIUS_MAX:()=>Ve,AUTOMATIC_ROUND_TABLE_RADIUS_MIN:()=>Ye,DEFAULT_SEAT_RADIUS:()=>pt,FLOOR_STACK_GAP_RATIO:()=>ft,FLOOR_STACK_MIN_SURFACE_PX:()=>bt,TABLE_SEAT_OFFSET:()=>X,TEXT_BACKGROUND_PADDING_MAX:()=>mo,TEXT_BACKGROUND_RADIUS_MAX:()=>bo,TEXT_LETTER_SPACING_MAX:()=>fo,TEXT_LETTER_SPACING_MIN:()=>uo,TEXT_LINE_HEIGHT_MAX:()=>lo,TEXT_LINE_HEIGHT_MIN:()=>co,TEXT_OPACITY_MIN:()=>ho,TEXT_WIDTH_MAX:()=>ao,TEXT_WIDTH_MIN:()=>so,allObjects:()=>lt,applyAffine:()=>Xn,automaticRoundTableRadius:()=>cn,buildAisleHoles:()=>Ct,buildSeatIndex:()=>Wn,buildSectionShell:()=>kt,chartBounds:()=>W,combinedFloorZoneId:()=>ve,composeAffine:()=>Kn,createPerspectiveCamera:()=>Hn,cubicPoint:()=>q,decomposeAffineLinear:()=>Yn,distanceToRings:()=>_e,distributeAlongCubic:()=>le,expandBooth:()=>at,expandChart:()=>Tn,expandRow:()=>rt,expandRowSlots:()=>ot,expandTable:()=>st,expandTableSlots:()=>Pe,floorObjects:()=>En,floorStackPlacements:()=>ht,floorsOf:()=>te,gridStats:()=>Jn,hitTest:()=>Qn,initialFloorMode:()=>Bn,invertAffine:()=>Un,layoutCombinedFloorPlan:()=>jn,layoutFloorStack:()=>Nn,mainFloorId:()=>mt,nearestWithin:()=>qn,objectCenter:()=>Ie,owningSectionForObject:()=>ct,perspectiveTangentAffine:()=>Gn,pointInPolygon:()=>we,pointInPolygonWithHoles:()=>$,polygonArea:()=>de,polygonInscribedAnchor:()=>he,polygonLabelPoint:()=>Rn,polygonNetArea:()=>At,projectPerspectivePoint:()=>ae,queryRect:()=>Zn,resolveSegmentedRowGroups:()=>me,rowInventoryCount:()=>vn,rowSeatPositions:()=>ie,segmentedRowComponentSeats:()=>Dt,segmentedRowComponents:()=>_t,segmentedRowSeatTotal:()=>Lt,smoothCubicThroughMiddle:()=>vt,stackFloors:()=>An,tableInventoryCount:()=>kn,tableSeatCountsBySide:()=>it,textLayoutMetrics:()=>ue,translateObject:()=>se,usableHoles:()=>V});module.exports=It(eo);var no=Math.PI/180;function H(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function F(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function q(e,t){let n=1-t,o=n*n*n,r=3*n*n*t,i=3*n*t*t,s=t*t*t;return{x:o*e.start.x+r*e.control1.x+i*e.control2.x+s*e.end.x,y:o*e.start.y+r*e.control1.y+i*e.control2.y+s*e.end.y}}function vt(e,t,n){let o={x:(e.x+t.x)/2,y:(e.y+t.y)/2},r={x:(n.x-o.x)*4/3,y:(n.y-o.y)*4/3};return{start:{...e},control1:{x:e.x+(t.x-e.x)/3+r.x,y:e.y+(t.y-e.y)/3+r.y},control2:{x:e.x+(t.x-e.x)*2/3+r.x,y:e.y+(t.y-e.y)*2/3+r.y},end:{...t}}}function le(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[q(e,.5)];let o=Array.from({length:n+1},(u,a)=>q(e,a/n)),r=new Float64Array(o.length);for(let u=1;u<o.length;u+=1){let a=o[u].x-o[u-1].x,c=o[u].y-o[u-1].y;r[u]=r[u-1]+Math.hypot(a,c)}let i=r[r.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let s=[],l=1;for(let u=0;u<t;u+=1){let a=i*u/(t-1);for(;l<r.length-1&&r[l]<a;)l+=1;let c=r[l-1],f=r[l],m=f===c?0:(a-c)/(f-c);s.push({x:o[l-1].x+(o[l].x-o[l-1].x)*m,y:o[l-1].y+(o[l].y-o[l-1].y)*m})}return s}function T(e,t){return{x:e.x+t.x,y:e.y+t.y}}function z(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _(e,t){return{x:e.x*t,y:e.y*t}}function Z(e,t=13){return Array.from({length:t},(n,o)=>q(e,o/(t-1)))}function Ce(e,t){let n=Math.max(0,Math.min(1,t))*(e.length-1),o=Math.min(e.length-2,Math.floor(n));return F(e[o],e[o+1],n-o)}function Re(e,t,n){let o=Math.max(0,Math.min(1,t)),r=Math.max(o,Math.min(1,n)),i=[Ce(e,o)];for(let s=1;s<e.length-1;s+=1){let l=s/(e.length-1);l>o+1e-9&&l<r-1e-9&&i.push(e[s])}return i.push(Ce(e,r)),i}function Oe(e,t){let n=[[0,1],[1,2],[2,3],[3,0]],o=0,r=Number.POSITIVE_INFINITY;n.forEach(([m,p],y)=>{let h=H(F(e[m],e[p],.5),t);h<r&&(r=h,o=y)});let i=e[o],s=e[(o+1)%4],l=e[(o+2)%4],u=e[(o+3)%4],a=F(i,s,.5),c=z(t,a),f=Math.max(1e-9,Math.hypot(c.x,c.y));return{p0:i,p1:s,p2:l,p3:u,normal:_(c,1/f),depth:(H(i,u)+H(s,l))/2}}function Ee(e){let{p0:t,p1:n,p2:o,p3:r,normal:i,depth:s}=e,l=z(n,t),u=z(o,r),a=s*.22,c=s*.12;return{nearPath:{start:t,control1:T(T(t,_(l,1/3)),_(i,a)),control2:T(T(t,_(l,2/3)),_(i,a)),end:n},farPath:{start:o,control1:T(T(r,_(u,2/3)),_(i,c)),control2:T(T(r,_(u,1/3)),_(i,c)),end:r}}}function kt(e,t,n){if(e.length!==4)throw new Error("A section shell requires four mapped bounds corners");let o=e.reduce((y,h)=>T(y,h),{x:0,y:0});o.x/=4,o.y/=4;let r=H(e[0],e[1]),i=H(e[0],e[3]),s=n==="auto"?r>i*1.25&&H(o,t)>i?"bezier":"tapered":n;if(s==="rectangle")return{mode:s,outline:e.map(y=>({...y}))};let l=Oe(e,t),{p0:u,p1:a,p2:c,p3:f}=l;if(s==="tapered")return{mode:s,outline:[T(u,_(z(a,u),.14)),T(u,_(z(a,u),1-.14)),c,f]};let{nearPath:m,farPath:p}=Ee(l);return{mode:s,outline:[...Z(m),...Z(p).slice(1)]}}function Ct(e,t,n,o){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 r=Oe(e,t),{p0:i,p1:s,p2:l,p3:u}=r,a=o==="bezier"?Ee(r):null,c=a?Z(a.nearPath):null,f=a?Z(a.farPath).reverse():null,m=Math.min(.055,.18/(n+1));return Array.from({length:n},(p,y)=>{let h=(y+1)/(n+1),x=h-m/2,M=h+m/2;return c&&f?[...Re(c,x,M),...Re(f,x,M).reverse()]:[F(i,s,x),F(i,s,M),F(u,l,M),F(u,l,x)]})}var so=40,ao=1200,co=.8,lo=3,uo=-2,fo=20,ho=.1,mo=40,bo=40,Ae=e=>Math.max(1,e.fontSize*.6+(e.letterSpacing??0));function Rt(e,t){let n=e.text.split(/\r?\n/);if(!e.width)return Math.max(1,n.length);let o=Math.max(1,Math.floor(t/Ae(e))),r=0;for(let i of n){if(!i.length){r+=1;continue}let s=0;for(let l of i.split(/\s+/)){let u=l.length;s&&s+1+u<=o?s+=1+u:(r+=Math.max(1,Math.ceil(u/o)),s=u%o)}}return Math.max(1,r)}function ue(e){let t=e.background?.padding??0,n=e.text.split(/\r?\n/),o=Math.max(1,...n.map(l=>l.length))*Ae(e),r=e.width??o+t*2,i=Math.max(1,r-t*2),s=Rt(e,i);return{width:r,height:s*e.fontSize*(e.lineHeight??1.2)+t*2,lineCount:s,padding:t}}function Ot(e,t,n){let o=n.x-t.x,r=n.y-t.y,i=o*o+r*r,s=i?Math.max(0,Math.min(1,((e.x-t.x)*o+(e.y-t.y)*r)/i)):0;return Math.hypot(e.x-(t.x+s*o),e.y-(t.y+s*r))}function _e(e,t){let n=1/0;for(let o of t)if(!(o.length<2))for(let r=0,i=o.length-1;r<o.length;i=r++){let s=Ot(e,o[i],o[r]);s<n&&(n=s)}return n}function Te(e,t){let n=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){let i=t[o].x,s=t[o].y,l=t[r].x,u=t[r].y;s>e.y!=u>e.y&&e.x<(l-i)*(e.y-s)/(u-s)+i&&(n=!n)}return n}function De(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function Et(e,t,n){let o=Te(e,t)&&!n.some(i=>Te(e,i)),r=_e(e,[t,...n]);return o?r:-r}function K(e,t,n,o,r){let i=Et({x:e,y:t},o,r);return{x:e,y:t,h:n,d:i,max:i+n*Math.SQRT2}}var fe=class{constructor(){this.items=[]}get size(){return this.items.length}push(t){let n=this.items;n.push(t);let o=n.length-1;for(;o>0;){let r=o-1>>1;if(n[r].max>=n[o].max)break;[n[r],n[o]]=[n[o],n[r]],o=r}}pop(){let t=this.items,n=t[0],o=t.pop();if(t.length&&o){t[0]=o;let r=0;for(;;){let i=r*2+1,s=i+1,l=r;if(i<t.length&&t[i].max>t[l].max&&(l=i),s<t.length&&t[s].max>t[l].max&&(l=s),l===r)break;[t[l],t[r]]=[t[r],t[l]],r=l}}return n}};function de(e){if(e.length<3)return 0;let t=0;for(let n=0,o=e.length-1;n<e.length;o=n++)t+=(e[o].x+e[n].x)*(e[o].y-e[n].y);return Math.abs(t)/2}function At(e,t){return Math.max(0,de(e)-De(t).reduce((n,o)=>n+de(o),0))}function he(e,t){let n=De(t);if(!e.length)return{point:{x:0,y:0},radius:0};if(e.length<3){let h=e.reduce((M,P)=>M+P.x,0)/e.length,x=e.reduce((M,P)=>M+P.y,0)/e.length;return{point:{x:h,y:x},radius:0}}let o=1/0,r=1/0,i=-1/0,s=-1/0;for(let h of e)h.x<o&&(o=h.x),h.y<r&&(r=h.y),h.x>i&&(i=h.x),h.y>s&&(s=h.y);let l=i-o,u=s-r,a=Math.min(l,u);if(!(a>0))return{point:{x:(o+i)/2,y:(r+s)/2},radius:0};let c=Math.max(l,u)/150,f=new fe,m=a/2;for(let h=o;h<i;h+=a)for(let x=r;x<s;x+=a)f.push(K(h+m,x+m,m,e,n));let p=K(o+l/2,r+u/2,0,e,n),y=0;for(;f.size;){let h=f.pop();if(!h)break;h.d>p.d&&(p=h),!(h.max-p.d<=c)&&(y>=4e3||(y+=1,m=h.h/2,f.push(K(h.x-m,h.y-m,m,e,n)),f.push(K(h.x+m,h.y-m,m,e,n)),f.push(K(h.x-m,h.y+m,m,e,n)),f.push(K(h.x+m,h.y+m,m,e,n))))}return{point:{x:p.x,y:p.y},radius:Math.max(0,p.d)}}function J(e,t,n){return Math.max(t,Math.min(n,e))}function L(e,t,n){return e<t?t:e>n?n:e}var go=Math.PI*2;function Le(e,t,n){return Tt(e,r=>({x:r.x+t,y:r.y+n}))}function Tt(e,t,n=1,o=!1){return{...e,start:t(e.start),segments:e.segments.map(r=>r.kind==="line"?{...r,end:t(r.end)}:r.kind==="arc"?{...r,center:t(r.center),radius:r.radius*Math.abs(n),clockwise:o?!r.clockwise:r.clockwise,end:t(r.end)}:{...r,control1:t(r.control1),control2:t(r.control2),end:t(r.end)})}}var Mo=4/3;function _t(e,t,n){let o=[];for(let r=0;r<e.length-1;r+=1){let i=e[r],s=e[r+1],l=Math.hypot(s.x-i.x,s.y-i.y);if(l<=0)continue;let u=Math.max(1,Math.round(l/n)),a=l/u,c=Math.atan2(s.y-i.y,s.x-i.x),f=r===0,p=(r>0?t[r-1]:void 0)==="break"?2:1,y=f?{...i}:{x:i.x+Math.cos(c)*a*p,y:i.y+Math.sin(c)*a*p},h=f?u+1:Math.max(1,u-(p-1));o.push({origin:y,rotation:c*180/Math.PI,seatCount:h,seatSpacing:a})}return o}function Dt(e){let t=e.rotation*Math.PI/180,n={x:Math.cos(t),y:Math.sin(t)};return Array.from({length:e.seatCount},(o,r)=>({x:e.origin.x+n.x*r*e.seatSpacing,y:e.origin.y+n.y*r*e.seatSpacing}))}function Lt(e){return e.reduce((t,n)=>t+n.seatCount,0)}function me(e){let t=new Map,n=new Map;for(let o of e){if(o.type!=="row"||!o.segmentedRow)continue;let r=n.get(o.segmentedRow.groupId)??[];r.push(o),n.set(o.segmentedRow.groupId,r)}for(let[o,r]of n){let i=r.slice().sort((m,p)=>m.segmentedRow.componentIndex-p.segmentedRow.componentIndex),s=i[0]?.segmentedRow?.componentCount??0,l=i[0]?.segmentedRow;if(!l||!(s>=2&&i.length===s&&l?.boundaryBefore==="start"&&i.every((m,p)=>m.segmentedRow?.kind==="segmented-row-v1"&&m.segmentedRow.groupId===o&&m.segmentedRow.componentCount===s&&m.segmentedRow.componentIndex===p&&m.segmentedRow.repeatLabelOnComponents===l.repeatLabelOnComponents&&(p===0?m.segmentedRow.boundaryBefore==="start":m.segmentedRow.boundaryBefore!=="start")&&m.segmentedRow.displayLabel===l.displayLabel)))continue;let a=i.reduce((m,p)=>m+p.seatCount,0),c=0,f=0;for(let m of i)m.segmentedRow.boundaryBefore==="break"&&(c+=1),t.set(m.id,{groupId:o,adjacencyOffset:c,displayOffset:f,displayLabel:l.displayLabel,totalSeats:a,canonical:i[0],viewFromSeatUrl:l.viewFromSeatUrl,viewFromSeatMeta:l.viewFromSeatMeta,confidenceEvidence:l.confidenceEvidence}),c+=m.seatCount,f+=m.seatCount}return t}var Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var Nt="abcdefghijklmnopqrstuvwxyz";function jt(e,t){let n=t.length,o=e+1,r="";for(;o>0;){o-=1;let i=o%n;r=t[i]+r,o=Math.floor(o/n)}return r}function be(e,t=!1){let n=t?Nt:Ft;return jt(Math.max(0,Math.floor(e)-1),n)}var Bt=[[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 Fe(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of Bt)for(;t>=o;)n+=r,t-=o;return n}function Ht(e){let t=new Array(e);return Array.from({length:e},(n,o)=>o).sort((n,o)=>Math.abs(2*n-(e-1))-Math.abs(2*o-(e-1))||n-o).forEach((n,o)=>t[n]=o),t}function ee(e,t){let n=e.seatLabelStart??1,o=e.seatNumbering?.direction??"ltr",r=e.seatNumbering?.step??1,i=e.seatNumbering?.scheme??"decimal",s=e.seatNumbering?.prefix??"",l=e.seatNumbering?.endAt,u=e.seatCount;if(i==="updown"||i==="updown-descending"){let p=Math.ceil(u/2),y=i==="updown"?t<p?n+2*t:n-1+2*(u-t):t<p?n+2*(p-1-t):n+1+2*(t-p);return`${s}${y}`}let a=i==="odd"||i==="even"?2:r,c=l!=null&&Number.isFinite(l)?l-(u-1)*a:n,f=o==="center"?Ht(u)[t]:o==="rtl"?u-1-t:t,m;switch(i){case"odd":{let p=c%2===1?c:c+1;m=String(p+f*2);break}case"even":{let p=c%2===0?c:c+1;m=String(p+f*2);break}case"roman":m=Fe(c+f*r);break;case"letters-upper":m=be(c+f*r,!1);break;case"letters-lower":m=be(c+f*r,!0);break;default:m=String(c+f*r);break}return`${s}${m}`}function Xt(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function Ne(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${ee(e,t)}`}function pe(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(e.seatDisplayLabelMode==="number")return ee(e,t);if(!n)return`${e.displayLabel||e.label}-${ee(e,t)}`;let r=Xt(n),i=n.displayOffset+t;return`${n.displayLabel}-${ee(r,i)}`}var G=.02291666666666667,ko=1/G,Ut=58,Kt=Ut*G;var Gt=3,je=0,ye=120,Yt=0,Vt=45,zt=7,Y=1.2;function xe(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function $t(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=zt?e:Gt}function Be(e,t={}){let n=xe(t.floorBaseHeightM,je,ye,0),o=Math.min(ye,n+$t(e.elevation)*Kt),r=e.height===void 0?o:xe(e.height,je,ye,o),i=xe(e.rake,Yt,Vt,0);return{height:r,rake:i}}function He(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 Xe(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 o=1/0;for(let r=0;r+1<e.length;r++){let i=e[r],s=e[r+1],l=s.x-i.x,u=s.y-i.y,a=l*l+u*u,c=a>1e-12?((t-i.x)*l+(n-i.y)*u)/a:0;c<0?c=0:c>1&&(c=1);let f=t-(i.x+c*l),m=n-(i.y+c*u);if(Math.abs(f)>=o||Math.abs(m)>=o)continue;let p=Math.hypot(f,m);p<o&&(o=p)}return o}function Wt(e){let t=0,n=0;for(let i of e)t+=i.x,n+=i.y;let o=e.length||1;t/=o,n/=o;let r=0;for(let i of e){let s=Math.hypot(i.x-t,i.y-n);s>r&&(r=s)}return{cx:t,cy:n,r}}function Ue(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function ge(e,t){let n=1/0;for(let o of He(e)){let r=Xe(t,o.x,o.y);r<n&&(n=r)}for(let o of He(t)){let r=Xe(e,o.x,o.y);r<n&&(n=r)}return n}function Qt(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,o=0;for(let c of e)n+=c.x,o+=c.y;n/=e.length,o/=e.length;let r=-1,i=e[0];for(let c of e){let f=Math.hypot(c.x-n,c.y-o);f>r&&(r=f,i=c)}let s=i.x-n,l=i.y-o,u=Math.hypot(s,l);u>1e-9?(s/=u,l/=u):(s=1,l=0);let a=e.map((c,f)=>({p:c,i:f,t:(c.x-n)*s+(c.y-o)*l})).sort((c,f)=>c.t-f.t);return{pts:a.map(c=>c.p),seatIndices:a.map(c=>t[c.i])}}function qt(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let P of e)n+=P.x,o+=P.y;n/=t,o/=t;let r=0,i=0,s=0,l=0,u=0,a=0,c=0;for(let P of e){let k=P.x-n,v=P.y-o;r+=k*k,s+=v*v,i+=k*v,l+=k*k*k,u+=v*v*v,a+=k*v*v,c+=v*k*k}let f=r*s-i*i;if(Math.abs(f)<1e-9)return null;let m=(l+a)/2,p=(u+c)/2,y=(m*s-p*i)/f,h=(p*r-m*i)/f,x=y+n,M=h+o;return!Number.isFinite(x)||!Number.isFinite(M)?null:{cx:x,cy:M}}var Zt=.15;function Jt(e){if(e.length<2)return null;let t=e.map(P=>{let k=0,v=0;for(let w of P.pts)k+=w.x,v+=w.y;return{x:k/P.pts.length,y:v/P.pts.length}}),n=0,o=0;for(let P of t)n+=P.x,o+=P.y;n/=t.length,o/=t.length;let r=0,i=0,s=0;for(let P of t){let k=P.x-n,v=P.y-o;r+=k*k,i+=k*v,s+=v*v}let l=r+s,u=r*s-i*i,a=l/2+Math.sqrt(Math.max(0,l*l/4-u)),c,f;Math.abs(i)>1e-12?(c=a-s,f=i):r>=s?(c=1,f=0):(c=0,f=1);let m=Math.hypot(c,f);if(!(m>1e-12))return null;c/=m,f/=m;let p=1/0,y=-1/0,h=[];for(let P of e){let k=1/0,v=-1/0;for(let w of P.pts){let d=w.x*c+w.y*f;d<k&&(k=d),d>v&&(v=d),d<p&&(p=d),d>y&&(y=d)}h.push(v-k)}let x=y-p;return x>1e-9?(h.sort((P,k)=>P-k),h[Math.min(h.length-1,Math.floor(h.length*.9))]/x<=en?{x:c,y:f}:null):null}var en=.35;function Ke(e,t,n,o){let r=new Map;for(let d of n){let b=t[d],S=b.rowId||`__seat-${d}`,g=r.get(S);g||(g={pts:[],idx:[]},r.set(S,g)),g.pts.push({x:b.x,y:b.y}),g.idx.push(d)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[d,b]of r){let S=Qt(b.pts,b.idx),g=0;for(let I of S.pts)g+=Math.hypot(I.x-o.x,I.y-o.y);i.push({id:d,pts:S.pts,seatIndices:S.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:g/S.pts.length})}let s=i.map(d=>Wt(d.pts)),l=i.length<=256?i.length*(i.length-1)/2:0,u=l?new Float64Array(l):null;u?.fill(Number.NaN);let a=u?new Map(i.map((d,b)=>[d,b])):null,c=(d,b)=>(d>b&&([d,b]=[b,d]),d*(2*i.length-d-1)/2+(b-d-1)),f=(d,b)=>{if(!u)return ge(i[d].pts,i[b].pts);let S=c(d,b),g=u[S];if(!Number.isNaN(g))return g;let I=ge(i[d].pts,i[b].pts);return u[S]=I,I},m=(d,b)=>a?f(a.get(d),a.get(b)):ge(d.pts,b.pts),p=[];for(let d=0;d<i.length;d++){let b=1/0;for(let S=0;S<i.length;S++){if(d===S||Ue(s[d],s[S])>=b)continue;let g=f(d,S);g<b&&(b=g)}Number.isFinite(b)&&p.push(b)}p.sort((d,b)=>d-b);let y=p.length?p[Math.floor(p.length/2)]:1,h=Math.max(y*1.8,1e-6),x=i.map(()=>[]);for(let d=0;d<i.length;d++)for(let b=d+1;b<i.length;b++)Ue(s[d],s[b])>h||f(d,b)<=h&&(x[d].push(b),x[b].push(d));let M=0;for(let d=0;d<i.length;d++){if(i[d].blockId!==-1)continue;let b=M++,S=[d];for(i[d].blockId=b;S.length;){let g=S.pop();for(let I of x[g])i[I].blockId===-1&&(i[I].blockId=b,S.push(I))}}let P=new Map;for(let d of i){let b=P.get(d.blockId)??[];b.push(d),P.set(d.blockId,b)}let k=[];for(let d of i){if(d.pts.length<4)continue;let b=qt(d.pts);b&&(!Number.isFinite(b.cx)||!Number.isFinite(b.cy)||k.push({x:b.cx,y:b.cy}))}let v=k.length>=2?(()=>{let d=k.map(g=>g.x).sort((g,I)=>g-I),b=k.map(g=>g.y).sort((g,I)=>g-I),S=Math.floor(k.length/2);return{cx:d[S],cy:b[S]}})():null;if(v){let d=C=>Math.hypot(C.x-v.cx,C.y-v.cy),b=1/0,S=-1/0,g=[];for(let C of i){let R=1/0,O=-1/0;for(let N of C.pts){let j=d(N);j<R&&(R=j),j>O&&(O=j)}g.push(O-R),R<b&&(b=R),O>S&&(S=O)}let I=S-b;g.sort((C,R)=>C-R);let A=g[Math.min(g.length-1,Math.floor(g.length*.9))];if(I>1e-9&&A/I<=Zt){let C=i.map(E=>{let Q=0;for(let xt of E.pts)Q+=d(xt);return{row:E,radius:Q/E.pts.length}}),R=0,O=0;for(let E of C)R+=E.radius,O+=E.row.focalDistance;R/=C.length,O/=C.length;let N=0;for(let E of C)N+=(E.radius-R)*(E.row.focalDistance-O);if(N<0)for(let E of C)E.radius=-E.radius;let B=1/0;for(let E of C)E.radius<B&&(B=E.radius);C.sort((E,Q)=>E.radius-Q.radius);let D=-1,U=-1/0,yt=I/Math.max(1,C.length)*.5,ke=[];for(let E of C)E.radius-U>yt&&(D++,U=E.radius),E.row.ordinal=D,E.row.blockDepth=E.radius-B,ke.push(E.row);return{sectionId:e,rows:ke,blockCount:M}}}let w=[];for(let[,d]of P){let b=Jt(d);if(b){let S=I=>{let A=0;for(let C of I.pts)A+=C.x*b.x+C.y*b.y;return A/I.pts.length};d.sort((I,A)=>S(I)-S(A)),d.length>=2&&d[0].focalDistance>d[d.length-1].focalDistance&&d.reverse();let g=0;for(let I=0;I<d.length;I++)I>0&&(g+=m(d[I-1],d[I])),d[I].ordinal=I,d[I].blockDepth=g,w.push(d[I])}else{let S=1/0;for(let g of d)g.focalDistance<S&&(S=g.focalDistance);d.sort((g,I)=>g.focalDistance-I.focalDistance);for(let g=0;g<d.length;g++)d[g].ordinal=g,d[g].blockDepth=Math.max(0,d[g].focalDistance-S),w.push(d[g])}}return{sectionId:e,rows:w,blockCount:M}}var tn=/^\d{4}-\d{2}-\d{2}$/;function nn(e){let t=Date.parse(e);return Number.isFinite(t)?tn.test(e)?t+864e5:t:null}function on(e,t=Date.now()){if(e.validUntil===void 0){if(e.status!=="approved")return!0;let o=e.assessedAt?Date.parse(e.assessedAt):Number.NaN;return Number.isFinite(o)&&(t instanceof Date?t.getTime():t)<=o+366*864e5}let n=nn(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function rn(e,t,n){return!(e.eventConfigurationId&&e.eventConfigurationId!==t||e.eventConfigurationVersion!==void 0&&e.eventConfigurationVersion!==n)}function sn(e){return e.status!=="draft"&&e.status!=="retracted"}function an(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 Ge(e,t={}){return!!e&&sn(e)&&rn(e,t.activeConfigurationId,t.activeConfigurationVersion)&&an(e,t.activeBasisSha256)&&on(e,t.now)}var Ye=36,Ve=160;function cn(e,t=360){let n=J(Math.round(Number.isFinite(e)?e:1),1,40),o=J(Number.isFinite(t)?t:360,120,360);return Math.round(J(n*4*(360/o),Ye,Ve))}var ln=new Set(["pitch-football","rink-hockey","track-athletics","oval-cricket","pitch-rugby","diamond-baseball","court-basketball","court-tennis","ring-boxing"]);function un(e){return!!e&&ln.has(e)}var ze=1.1;var To=Math.PI*2;var _o=(()=>{let t={x:0,y:52},n=25,o={x:70,y:t.y-70},r=(o.x*o.x+o.y*o.y-4900)/(2*(o.y+70)),i=r+70,s=[],l=Math.atan2(o.y-r,o.x),u=Math.atan2(o.y-r,-o.x);for(let a=0;a<=24;a++){let c=l+(u-l)*a/24;s.push({x:i*Math.cos(c),y:r+i*Math.sin(c)})}return{half:70,home:t,backstop:n,fence:s}})();function $e(e){return un(e)}function fn(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,o=e.width,r=e.height;return[{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+r},{x:t,y:n+r}]}function dn(e,t,n){let o=n*Math.PI/180,r=Math.cos(o),i=Math.sin(o),s=e.x-t.x,l=e.y-t.y;return{x:t.x+s*r-l*i,y:t.y+s*i+l*r}}function We(e){let t=fn(e);if(!t||t.length<2)return null;let n=e.rotation??0,o=Math.abs(n)<1e-6?t:t.map(u=>dn(u,{x:t.reduce((a,c)=>a+c.x,0)/t.length,y:t.reduce((a,c)=>a+c.y,0)/t.length},n)),r=1/0,i=1/0,s=-1/0,l=-1/0;for(let u of o)r=Math.min(r,u.x),i=Math.min(i,u.y),s=Math.max(s,u.x),l=Math.max(l,u.y);return!Number.isFinite(r)||s-r<1e-6||l-i<1e-6?null:{minX:r,minY:i,maxX:s,maxY:l}}var hn=5,mn=3,bn=.92,pn=1.9,yn=2,xn=.6,gn=1,Mn=.06;function Sn(e){return e.heightM!==void 0?e.heightM:e.stageKind==="ring-boxing"?ze:$e(e.stageKind)?Mn:gn}function Qe(e){let t=1/0,n=1/0,o=-1/0,r=-1/0,i=-1/0;for(let s of te(e)){let l=s.baseHeightM??0;for(let u of s.objects){if(u.type!=="shape"||u.role!=="stage")continue;let a=We(u);a&&(t=Math.min(t,a.minX),n=Math.min(n,a.minY),o=Math.max(o,a.maxX),r=Math.max(r,a.maxY),i=Math.max(i,l+Sn(u)))}}return!Number.isFinite(t)||!Number.isFinite(i)?null:{minX:t,minY:n,maxX:o,maxY:r,deckTopM:i}}function wn(e,t,n,o){let r=1/0,i=1/0,s=-1/0,l=-1/0;for(let p of e)Number.isFinite(p.eyeHeightM)&&(r=Math.min(r,p.x),s=Math.max(s,p.x),i=Math.min(i,p.y),l=Math.max(l,p.y));if(!Number.isFinite(r))return null;let u=r*t,a=i*t,c=Math.max(1,Math.ceil((s-r)*t/n)+1),f=Math.max(1,Math.ceil((l-i)*t/n)+1),m=new Float64Array(c*f).fill(-1/0);for(let p of e){if(!Number.isFinite(p.eyeHeightM))continue;let y=p.eyeHeightM-Y,h=Math.min(c-1,Math.max(0,Math.floor((p.x*t-u)/n))),M=Math.min(f-1,Math.max(0,Math.floor((p.y*t-a)/n)))*c+h,P=y+o;P>m[M]&&(m[M]=P)}return{cellM:n,minX:u,minY:a,cols:c,rows:f,top:m}}function Pn(e,t,n){let o=Math.floor((t-e.minX)/e.cellM),r=Math.floor((n-e.minY)/e.cellM);return o<0||r<0||o>=e.cols||r>=e.rows?-1/0:e.top[r*e.cols+o]}function qe(e,t,n={}){let o=new Map;if(!t||!e.length)return o;let r=n.metresPerChartUnit??G,i=n.cellM??xn,s=n.chairBackM??bn,l=n.selfRowSkipM??yn,u=n.clearThreshold??.9,a=n.partialThreshold??.25,c=Math.max(1,n.columns??hn),f=Math.max(1,n.rows??mn),m=wn(e,r,i,s);if(!m)return o;let p=(t.maxX-t.minX)*r,y=(t.maxY-t.minY)*r,h=p>=y,x=(t.minX+t.maxX)/2*r,M=(t.minY+t.maxY)/2*r,P=[];for(let v=0;v<c;v++){let w=(v+.5)/c-.5,d=h?x+w*p:x,b=h?M:M+w*y;for(let S=0;S<f;S++){let g=t.deckTopM+(f===1?0:S/(f-1)*pn);P.push({x:d,y:b,z:g})}}let k=i/2;for(let v of e){if(!Number.isFinite(v.eyeHeightM))continue;let w=v.x*r,d=v.y*r,b=v.eyeHeightM,S=0,g=1/0;for(let A of P){let C=A.x-w,R=A.y-d,O=Math.hypot(C,R);if(!(O>l)){S++;continue}let N=C/O,j=R/O,B=0;for(let D=l;D<O;D+=k){let U=Pn(m,w+N*D,d+j*D);if(!(!Number.isFinite(U)||U>=b)&&U>b+(A.z-b)*D/O){B=D;break}}B?g=Math.min(g,B):S++}let I=S/P.length;I>=u||o.set(v.id,{seatId:v.id,mark:I<a?"obstructedView":"restrictedView",visibleFraction:I,totalRays:P.length,atDistanceM:Number.isFinite(g)?g:0})}return o}function Ze(e,t){if(!t.size)return 0;let n=0;for(let o of e){let r=t.get(o.id);if(!r)continue;let i=o.commercial;i?.restrictedView!==void 0||i?.obstructedView!==void 0||(o.commercial={...i,[r.mark]:!0},n++)}return n}function Me(e){return e?e.accessibility?.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var re=Math.PI/180,In=9,X=16;function Se(e,t,n,o){let r=n*re,i=Math.cos(r),s=Math.sin(r);return{x:o.x+e*i-t*s,y:o.y+e*s+t*i}}function ie(e){let{seatCount:t,seatSpacing:n,curve:o,rotation:r,origin:i}=e,s=[];if(e.path)return le(e.path,t);if(t<=1)return t===1&&s.push({x:i.x,y:i.y}),s;if(o===0){for(let a=0;a<t;a++)s.push(Se(a*n,0,r,i));return s}let l=o/(t-1)*re,u=n/(2*Math.sin(Math.abs(l)/2));for(let a=0;a<t;a++){let c=a*l,f=u*Math.sin(c),m=-u+u*Math.cos(c);s.push(Se(f,m,r,i))}return s}function nt(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function vn(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 ot(e,t){let n=nt(e);return ie(e).map((o,r)=>{let i=n.get(r),s=Me(i),l=Ne(e,r,i),u={...e.commercial,...i?.commercial};return{index:r,x:o.x+(i?.dx??0),y:o.y+(i?.dy??0),label:l,displayLabel:pe(e,r,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:s.length>0,accessibility:s,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(u).some(a=>a!==void 0&&a!==!1&&a!=="")?u:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle??e.seatLabelStyle}})}function rt(e){let t=[];for(let n of ot(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)),o={top:0,bottom:0,left:0,right:0};if(!n.length)return o;let r=Math.max(0,Math.round(e.seatCount));for(let i=0;i<r;i++)o[n[i%n.length]]+=1;return o}function Pe(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let o=new Map((e.overrides??[]).map(c=>[c.index,c])),r=(c,f,m,p)=>{let y=o.get(c),h=Me(y),x=y?.label??`${e.label}-${c+1}`,M=e.displayLabel??e.label;return{index:c,label:x,displayLabel:y?.displayLabel??`${M}-${c+1}`,x:f+(y?.dx??0),y:m+(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 c=(e.radius??40)+X,f=e.rotation*re,m=Math.max(0,Math.min(360,e.seatArc??360));if(m>=360||n===1){for(let x=0;x<n;x++){let M=f+x/n*2*Math.PI;t.push(r(x,e.center.x+c*Math.cos(M),e.center.y+c*Math.sin(M)))}return t}let p=m*re,y=(2*Math.PI-p)/2,h=f+y;for(let x=0;x<n;x++){let M=h+x/(n-1)*p;t.push(r(x,e.center.x+c*Math.cos(M),e.center.y+c*Math.sin(M)))}return t}let i=e.width??80,s=e.height??50,l=it(e),u=["top","bottom","left","right"],a=0;for(let c of u){let f=l[c];for(let m=0;m<f;m++){let p,y;c==="top"?(p=-i/2+(m+.5)*i/f,y=-s/2-X):c==="bottom"?(p=-i/2+(m+.5)*i/f,y=s/2+X):c==="left"?(p=-i/2-X,y=-s/2+(m+.5)*s/f):(p=i/2+X,y=-s/2+(m+.5)*s/f);let h=Se(p,y,e.rotation,e.center);t.push(r(a++,h.x,h.y,c))}}return t}function kn(e){return e.bookAsWhole||e.variableOccupancy?Math.max(0,Math.round(e.seatCount)):Pe(e).filter(t=>!t.skipped).length}function st(e){return Pe(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 at(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"}]}function we(e,t){let n=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){let i=t[o].x,s=t[o].y,l=t[r].x,u=t[r].y;s>e.y!=u>e.y&&e.x<(l-i)*(e.y-s)/(u-s)+i&&(n=!n)}return n}function Cn(e,t){return t.some((n,o)=>{let r=t[(o+1)%t.length],i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y);if(Math.abs(i)>1e-7)return!1;let s=(e.x-n.x)*(r.x-n.x)+(e.y-n.y)*(r.y-n.y),l=(r.x-n.x)**2+(r.y-n.y)**2;return s>=-1e-7&&s<=l+1e-7})}function V(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function $(e,t,n){return we(e,t)&&!V(n).some(o=>we(e,o)||Cn(e,o))}function Rn(e,t){return he(e,t).point}function oe(e){if(!e.length)return{x:0,y:0};let t=0,n=0;for(let o of e)t+=o.x,n+=o.y;return{x:t/e.length,y:n/e.length}}function Ie(e){switch(e.type){case"row":{let t=ie(e),n=nt(e),o=0,r=0,i=0;for(let s=0;s<t.length;s++){let l=n.get(s);l?.skip||(o+=t[s].x+(l?.dx??0),r+=t[s].y+(l?.dy??0),i++)}return i?{x:o/i,y:r/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 oe(e.points);case"section":return oe(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?oe(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 Je(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function On(e,t){if(e.type!=="gaArea"||!Je(e.points,t.outline))return!1;let n=V(e.holes),o=V(t.holes);return n.length===o.length&&n.every((r,i)=>Je(r,o[i]))}function ct(e,t,n=e.filter(r=>r.type==="section"),o=Ie(t)){let r="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(r?n.find(s=>(s.logicalSectionId??s.id)===r&&(On(t,s)||$(o,s.outline,s.holes))):void 0)??n.find(s=>$(o,s.outline,s.holes))}function te(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 En(e,t){let n=te(e);return(t?n.find(o=>o.id===t):n[0])?.objects??[]}function lt(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}function se(e,t,n){let o=i=>({x:i.x+t,y:i.y+n}),r=i=>i.map(o);switch(e.type){case"row":return{...e,origin:o(e.origin)};case"table":case"booth":return{...e,center:o(e.center)};case"gaArea":return{...e,points:r(e.points),...e.holes?{holes:V(e.holes).map(r)}:{}};case"section":return{...e,outline:r(e.outline),...e.outlinePath?{outlinePath:Le(e.outlinePath,t,n)}:{},...e.holes?{holes:V(e.holes).map(r)}:{}};case"text":return{...e,position:o(e.position)};case"shape":return{...e,...e.points?{points:r(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 An(e,t=900){if(!e.floors||e.floors.length<2)return e;let n=[];return e.floors.forEach((o,r)=>{let i=-r*t;for(let s of o.objects)n.push(i===0?s:se(s,0,i))}),{...e,objects:n,floors:void 0}}function et(e,t,n,o,r,i,s,l,u){let a=[],c=e.filter(h=>h.type==="section"),f=me(e),m=h=>!h?.eventConfigurationId||h.eventConfigurationId===o&&(h.eventConfigurationVersion===void 0||h.eventConfigurationVersion===u),p=h=>Ge(h,{activeConfigurationId:o,activeConfigurationVersion:u,activeBasisSha256:r,now:l}),y=(h,x)=>p(h)?{...h,coverage:x}:void 0;for(let h of e){let x=[];if(h.type==="row"?x=rt(h):h.type==="table"?x=st(h):h.type==="booth"&&(x=at(h)),!x.length)continue;for(let w of x)w.viewUrl&&!m(w.viewMeta)&&(w.viewUrl=void 0,w.viewMeta=void 0);if(h.type==="row"){let w=f.get(h.id);if(w){let d=new Map((h.overrides??[]).map(b=>[b.index,b]));for(let b of x){let S=Number(b.id.slice(b.id.lastIndexOf(":")+1));if(!Number.isInteger(S))continue;b.logicalRowId=w.groupId,b.logicalSeatIndex=w.adjacencyOffset+S,d.get(S)?.displayLabel||(b.displayLabel=pe(h,S,w)),!b.viewUrl&&w.viewFromSeatUrl&&m(w.viewFromSeatMeta)&&(b.viewUrl=w.viewFromSeatUrl,b.viewMeta=w.viewFromSeatMeta);let g=d.get(S)?.confidenceEvidence;b.confidenceEvidence=y(g,"exact-seat")??y(h.confidenceEvidence,"row-representative")??y(w.confidenceEvidence,"row-representative")}}}let M=ct(e,h,c,h.type==="row"?oe(x):Ie(h)),P=M?.viewFromSeatUrl,v=(M?.zone?t?.find(w=>w.id===M.zone):void 0)?.focalPoint??n;for(let w of x){if(!w.confidenceEvidence){let d=Number(w.id.slice(w.id.lastIndexOf(":")+1)),b=(h.type==="row"||h.type==="table")&&Number.isInteger(d)?h.overrides?.find(S=>S.index===d)?.confidenceEvidence:void 0;w.confidenceEvidence=y(b,"exact-seat")??(h.type==="row"?y(h.confidenceEvidence,"row-representative"):void 0)}w.confidenceEvidence??=y(M?.confidenceEvidence,"section-representative")??(s?y(s.evidence,s.coverage):void 0),!w.viewUrl&&P&&m(M?.viewFromSeatMeta)&&(w.viewUrl=P,w.viewMeta=M?.viewFromSeatMeta),!w.viewUrl&&i&&m(i.meta)&&(w.viewUrl=i.url,w.viewMeta=i.meta),M&&(w.sectionId=M.logicalSectionId??M.id),M?.zone&&(w.zoneId=M.zone),v&&(w.focalPoint={...v})}a.push(...x)}return a}function Tn(e,t={}){if(e.floors?.length){let o=[];for(let r of e.floors){let i=r.focalPoint??e.focalPoint,s=r.viewFromSeatUrl?{url:r.viewFromSeatUrl,meta:r.viewFromSeatMeta}:e.viewFromSeatUrl?{url:e.viewFromSeatUrl,meta:e.viewFromSeatMeta}:void 0,l=r.confidenceEvidence?{evidence:r.confidenceEvidence,coverage:"floor-representative"}:e.confidenceEvidence?{evidence:e.confidenceEvidence,coverage:"venue-representative"}:void 0,u=et(r.objects,e.zones,i,e.eventConfigurationId,e.confidenceBasisSha256,s,l,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);t.resolveEyeHeights!==!1&&tt(r.objects,r.focalPoint??e.focalPoint,r.baseHeightM??0,u);for(let a of u)a.floorId=r.id;for(let a of u)o.push(a)}return o}let n=et(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&&tt(e.objects,e.focalPoint,t.floorBaseHeightM??0,n),_n(e,n,t)}function _n(e,t,n){return!n.deriveRestrictedView||e.derivedRestrictedView===!1||n.resolveEyeHeights===!1||Ze(t,qe(t,Qe(e))),t}function tt(e,t,n,o){let r=e.filter(f=>f.type==="section"),i=n>0||r.some(f=>f.height!==void 0||f.rake!==void 0||(f.elevation??0)>0);if(!r.length||!i||!t){for(let f of o)f.eyeHeightM=n+Y;return}let s=new Array(o.length),l=new Map;for(let f of r)l.has(f.id)||l.set(f.id,f);let u=new Map,a=new Map;for(let f=0;f<o.length;f++){let m=o[f],y=(m.sectionId?l.get(m.sectionId)??r.find(x=>x.logicalSectionId===m.sectionId&&$({x:m.x,y:m.y},x.outline,x.holes)):void 0)??r.find(x=>$({x:m.x,y:m.y},x.outline,x.holes))??null;if(s[f]=y,!y)continue;u.has(y.id)||u.set(y.id,Be(y,{floorBaseHeightM:n}));let h=a.get(y.id);h?h.push(f):a.set(y.id,[f])}let c=new Array(o.length).fill(void 0);for(let[f,m]of a){let p=u.get(f);if(!p)continue;let y=p.rake>0?Math.tan(p.rake*Math.PI/180):0,h=Ke(f,o,m,t);for(let x of h.rows){let M=x.blockDepth*G*y,P=p.height+M;for(let k of x.seatIndices)c[k]=P}}for(let f=0;f<o.length;f++){let m=o[f],p=s[f];if(!p){m.eyeHeightM=n+Y;continue}let y=u.get(p.id);m.eyeHeightM=(c[f]??y.height)+Y}}var ne=40;function W(e,t){let n=t?.freeText==="exclude",o=1/0,r=1/0,i=-1/0,s=-1/0,l=(a,c)=>{a<o&&(o=a),c<r&&(r=c),a>i&&(i=a),c>s&&(s=c)},u=a=>{if(Array.isArray(a))for(let c of a)!c||typeof c!="object"||l(c.x,c.y)};for(let a of lt(e))if(a.type==="row"){let c=new Map((a.overrides??[]).map(f=>[f.index,f]));ie(a).forEach((f,m)=>{let p=c.get(m);p?.skip||l(f.x+(p?.dx??0),f.y+(p?.dy??0))})}else if(a.type==="gaArea")u(a.points);else if(a.type==="section")u(a.outline);else if(a.type==="decorImage")l(a.x,a.y),l(a.x+a.width,a.y+a.height);else if(a.type==="shape")a.points&&a.points.length?u(a.points):a.x!=null&&a.y!=null&&a.width!=null&&a.height!=null&&(l(a.x,a.y),l(a.x+a.width,a.y+a.height));else if(a.type==="table"){let c=X+In,f=a.shape==="round"?(a.radius??40)+c:Math.max((a.width??80)/2,(a.height??50)/2)+c;l(a.center.x-f,a.center.y-f),l(a.center.x+f,a.center.y+f)}else if(a.type==="booth"){let c=Math.max(a.width,a.height)/2;l(a.center.x-c,a.center.y-c),l(a.center.x+c,a.center.y+c)}else if(a.type==="text"){if(n)continue;let c=ue(a);l(a.position.x,a.position.y),l(a.position.x+c.width,a.position.y+c.height)}for(let a of[e.referenceImage,e.backgroundImage]){if(!a)continue;let{center:c,width:f}=a;if(!c||!Number.isFinite(c.x)||!Number.isFinite(c.y)||!Number.isFinite(f))continue;let m=f*3/4;l(c.x-f/2,c.y-m/2),l(c.x+f/2,c.y+m/2)}if(!isFinite(o)){let a=e.focalPoint??{x:0,y:0};return{x:a.x-200,y:a.y-200,width:400,height:400}}return{x:o-ne,y:r-ne,width:i-o+ne*2,height:s-r+ne*2}}function ut(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}var ft=.08,Dn=.045;function ve(e){return`__floor__:${encodeURIComponent(e)}`}function dt(e,t,n){return{...e,objects:t,floors:void 0,...n?{focalPoint:n}:{},referenceImage:void 0,backgroundImage:void 0}}function Ln(e,t,n){let o=e.focalPoint??t.focalPoint;return o?o.x:n.x+n.width/2}function ht(e){let t=e.floors??[];if(!t.length)return[];let n=t.map(s=>W(dt(e,s.objects,s.focalPoint),{freeText:"exclude"})),r=Math.max(1,...n.map(s=>s.width))*ft,i=0;return t.map((s,l)=>{let u=n[l],a=i-(u.y+u.height);return i-=u.height+r,{floorId:s.id,label:s.name??s.id,level:l,levelBadge:l===0?"G":String(l),translation:{x:-Ln(s,e,u),y:a},bounds:u}})}function Fn(e,t,n,o){let r=t==="name"?e.label:e.levelBadge;if(!r)return[];let i=Math.max(1,n*Dn),s=e.bounds.x+e.translation.x,l=e.bounds.y+e.translation.y+i*.4,u=`floor-level-${e.floorId}`,a={type:"text",id:`${u}-text`,text:r,position:{x:s,y:l},fontSize:i,rotation:0,color:o,bold:!0};if(t==="name")return[a];let c=i*.95;return[{type:"shape",id:`${u}-badge`,kind:"ellipse",x:s-c*.35,y:l-c*.3,width:c*2,height:c*2,fill:"transparent",stroke:{color:o,width:Math.max(1,i*.09)},opacity:.8},a]}function Nn(e,t={}){let n=e.floors;if(!n||n.length<2)return e;let o=ht(e),r=[];n.forEach((a,c)=>{let{x:f,y:m}=o[c].translation;for(let p of a.objects)c>0&&p.type==="shape"&&p.role==="stage"||r.push(se(p,f,m))});let i={...e,objects:r,floors:void 0},s=W(i,{freeText:"exclude"}),l=Math.max(1,s.width,s.height),u=e.theme?.textColor??"#94a3b8";for(let a of o)r.push(...Fn(a,t.labelStyle??"number",l,u));return{...i,objects:r,referenceImage:void 0,backgroundImage:void 0}}function jn(e){if(!e.floors||e.floors.length<2)return e;let t=!e.zones?.length,n=new Set,o=e.floors.flatMap(i=>i.objects.flatMap(s=>{if(s.type==="shape"&&s.role==="stage"){let l=JSON.stringify([s.kind,s.x,s.y,s.width,s.height,s.points,s.rotation??0,s.label,s.heightM,s.eventConfigurationIds]);if(n.has(l))return[];n.add(l)}return t&&s.type==="section"?[{...s,zone:ve(i.id)}]:[s]})),r=t?e.floors.map(i=>({id:ve(i.id),label:i.name,focalPoint:{...i.focalPoint}})):e.zones;return{...e,objects:o,zones:r,floors:void 0,referenceImage:void 0,backgroundImage:ut(e)}}function mt(e){let t=e.floors;if(!t?.length)return null;let n=t.find(i=>i.objects.some(s=>s.type==="shape"&&s.role==="stage"));if(n)return n.id;let o=t[0],r=-1;for(let i of t){let s=W(dt(e,i.objects,i.focalPoint),{freeText:"exclude"}),l=s.width*s.height;l>r&&(r=l,o=i)}return o.id}var bt=640;function Bn(e,t){return(e.floors?.length??0)<2?null:e.floorOverview==="combined"||!Number.isFinite(t)||t<=0||t>=bt?"all":mt(e)}function Hn(e,t=0){let n=Math.max(1,e.width,e.height),o={x:e.x+e.width/2,y:e.y+e.height/2},r=n*1.55,i=Math.max(n*.82,Math.max(0,t)+n*.45);return{target:o,distance:r,height:i,focalLength:Math.hypot(r,i),yawRad:-8*Math.PI/180}}function ae(e,t,n=0){let o=t.x-e.target.x,r=t.y-e.target.y,i=Math.cos(e.yawRad),s=Math.sin(e.yawRad),l=o*i-r*s,a=o*s+r*i-e.distance,c=n-e.height,f=Math.hypot(e.distance,e.height),m=(-e.distance*a-e.height*c)/f,p=(-e.height*a+e.distance*c)/f,y=Math.max(f*.08,m),h=e.focalLength/y;return{x:e.target.x+l*h,y:e.target.y-p*h,depth:y,scale:h}}function Xn(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 Un(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,o=-e.b/t,r=-e.c/t,i=e.a/t;return{a:n,b:o,c:r,d:i,e:-(n*e.e+r*e.f),f:-(o*e.e+i*e.f)}}function Kn(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 Gn(e,t,n=()=>0){let o=ae(e,t,n(t)),r={x:t.x+1,y:t.y},i={x:t.x,y:t.y+1},s=ae(e,r,n(r)),l=ae(e,i,n(i)),u=s.x-o.x,a=s.y-o.y,c=l.x-o.x,f=l.y-o.y;return{a:u,b:a,c,d:f,e:o.x-u*t.x-c*t.y,f:o.y-a*t.x-f*t.y}}function Yn(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 Vn(e){if(e.kind==="circle")return{hx:e.r,hy:e.r};let t=e.width/2,n=e.height/2,o=e.rotation??0;if(!o)return{hx:t,hy:n};let r=o*Math.PI/180,i=Math.abs(Math.cos(r)),s=Math.abs(Math.sin(r));return{hx:t*i+n*s,hy:t*s+n*i}}function zn(e,t,n){let o=t-e.seat.x,r=n-e.seat.y;if(e.shape.kind==="circle")return o*o+r*r<=e.shape.r*e.shape.r;let i=e.shape.rotation??0,s=o,l=r;if(i){let u=-i*Math.PI/180,a=Math.cos(u),c=Math.sin(u);s=o*a-r*c,l=o*c+r*a}return Math.abs(s)<=e.shape.width/2&&Math.abs(l)<=e.shape.height/2}function $n(e,t,n,o,r){if(e.shape.kind==="circle"){let y=Math.min(Math.max(e.seat.x,t),o),h=Math.min(Math.max(e.seat.y,n),r),x=e.seat.x-y,M=e.seat.y-h;return x*x+M*M<=e.shape.r*e.shape.r}let i=e.shape.rotation??0;if(!i)return e.seat.x-e.hx<=o&&e.seat.x+e.hx>=t&&e.seat.y-e.hy<=r&&e.seat.y+e.hy>=n;let s=i*Math.PI/180,l=Math.cos(s),u=Math.sin(s),a=e.shape.width/2,c=e.shape.height/2,f=[[-a,-c],[a,-c],[a,c],[-a,c]].map(([y,h])=>[e.seat.x+y*l-h*u,e.seat.y+y*u+h*l]),m=[[t,n],[o,n],[o,r],[t,r]],p=[[1,0],[0,1],[l,u],[-u,l]];for(let[y,h]of p){let x=1/0,M=-1/0;for(let[v,w]of f){let d=v*y+w*h;d<x&&(x=d),d>M&&(M=d)}let P=1/0,k=-1/0;for(let[v,w]of m){let d=v*y+w*h;d<P&&(P=d),d>k&&(k=d)}if(M<P||k<x)return!1}return!0}function Wn(e,t={}){let n=t.seatRadius??pt,o=e.length,r=new Array(o),i=1/0,s=1/0,l=-1/0,u=-1/0,a=0;for(let d=0;d<o;d++){let b=e[d],S=t.shapeOf?.(b)??{kind:"circle",r:n},{hx:g,hy:I}=Vn(S);r[d]={seat:b,shape:S,hx:g,hy:I},b.x-g<i&&(i=b.x-g),b.y-I<s&&(s=b.y-I),b.x+g>l&&(l=b.x+g),b.y+I>u&&(u=b.y+I),g>a&&(a=g),I>a&&(a=I)}o===0&&(i=0,s=0,l=0,u=0);let c=a>0?a*4:1,f=Math.max(l-i,0),m=Math.max(u-s,0),p=Math.max(64,t.maxCells??o*4),y=c,h=Math.max(1,Math.ceil(f/y)||1),x=Math.max(1,Math.ceil(m/y)||1);for(;h*x>p&&(h>1||x>1);)y*=2,h=Math.max(1,Math.ceil(f/y)||1),x=Math.max(1,Math.ceil(m/y)||1);let M=h*x,P=new Int32Array(M+1),k=0;for(let d=0;d<o;d++){let b=r[d],S=L(Math.floor((b.seat.x-b.hx-i)/y),0,h-1),g=L(Math.floor((b.seat.x+b.hx-i)/y),0,h-1),I=L(Math.floor((b.seat.y-b.hy-s)/y),0,x-1),A=L(Math.floor((b.seat.y+b.hy-s)/y),0,x-1);for(let C=I;C<=A;C++)for(let R=S;R<=g;R++)P[C*h+R+1]++,k++}for(let d=0;d<M;d++)P[d+1]+=P[d];let v=new Int32Array(k),w=P.slice(0,M);for(let d=0;d<o;d++){let b=r[d],S=L(Math.floor((b.seat.x-b.hx-i)/y),0,h-1),g=L(Math.floor((b.seat.x+b.hx-i)/y),0,h-1),I=L(Math.floor((b.seat.y-b.hy-s)/y),0,x-1),A=L(Math.floor((b.seat.y+b.hy-s)/y),0,x-1);for(let C=I;C<=A;C++)for(let R=S;R<=g;R++){let O=C*h+R;v[w[O]++]=d}}return{seats:e,entries:r,minX:i,minY:s,cell:y,cols:h,rows:x,cellStart:P,items:v,stamp:new Int32Array(o),epoch:0}}function Qn(e,t,n={}){let{cols:o,rows:r,cell:i,minX:s,minY:l,cellStart:u,items:a,entries:c}=e,f=Math.floor((t.x-s)/i),m=Math.floor((t.y-l)/i);if(f<0||m<0||f>=o||m>=r)return null;let p=m*o+f,y=u[p+1],h=-1,x=1/0;for(let M=u[p];M<y;M++){let P=a[M],k=c[P];if(n.filter&&!n.filter(k.seat.id,k.seat)||!zn(k,t.x,t.y))continue;let v=t.x-k.seat.x,w=t.y-k.seat.y,d=v*v+w*w;(d<x||d===x&&P<h)&&(x=d,h=P)}return h<0?null:c[h].seat.id}function qn(e,t,n,o={}){if(!(n>0))return null;let{cols:r,rows:i,cell:s,minX:l,minY:u,cellStart:a,items:c,entries:f}=e,m=Math.max(0,Math.floor((t.x-n-l)/s)),p=Math.min(r-1,Math.floor((t.x+n-l)/s)),y=Math.max(0,Math.floor((t.y-n-u)/s)),h=Math.min(i-1,Math.floor((t.y+n-u)/s));if(m>p||y>h)return null;let x=-1,M=n*n,P=e.stamp,k=++e.epoch;for(let v=y;v<=h;v++){let w=v*r;for(let d=m;d<=p;d++){let b=w+d,S=a[b+1];for(let g=a[b];g<S;g++){let I=c[g];if(P[I]===k)continue;P[I]=k;let A=f[I];if(o.filter&&!o.filter(A.seat.id,A.seat))continue;let C=t.x-A.seat.x,R=t.y-A.seat.y,O=C*C+R*R;(O<M||O===M&&I<x)&&(M=O,x=I)}}}return x<0?null:f[x].seat.id}function Zn(e,t,n={}){let o=Math.min(t.x,t.x+t.width),r=Math.max(t.x,t.x+t.width),i=Math.min(t.y,t.y+t.height),s=Math.max(t.y,t.y+t.height),l=n.mode??"center",{cols:u,rows:a,cell:c,minX:f,minY:m,cellStart:p,items:y,entries:h}=e,x=Math.max(0,Math.floor((o-f)/c)),M=Math.min(u-1,Math.floor((r-f)/c)),P=Math.max(0,Math.floor((i-m)/c)),k=Math.min(a-1,Math.floor((s-m)/c));if(x>M||P>k)return[];let v=[],w=e.stamp,d=++e.epoch;for(let b=P;b<=k;b++){let S=b*u;for(let g=x;g<=M;g++){let I=S+g,A=p[I+1];for(let C=p[I];C<A;C++){let R=y[C];if(w[R]===d)continue;w[R]=d;let O=h[R];if(n.filter&&!n.filter(O.seat.id,O.seat))continue;(l==="center"?O.seat.x>=o&&O.seat.x<=r&&O.seat.y>=i&&O.seat.y<=s:$n(O,o,i,r,s))&&v.push(R)}}}return v.sort((b,S)=>b-S),v.map(b=>h[b].seat.id)}function Jn(e){let t=e.cols*e.rows,n=0,o=0;for(let i=0;i<t;i++){let s=e.cellStart[i+1]-e.cellStart[i];s>0&&n++,s>o&&(o=s)}let r=e.items.length;return{cell:e.cell,cols:e.cols,rows:e.rows,cells:t,occupiedCells:n,refs:r,maxPerCell:o,meanPerOccupiedCell:n?r/n:0}}0&&(module.exports={AUTOMATIC_ROUND_TABLE_RADIUS_MAX,AUTOMATIC_ROUND_TABLE_RADIUS_MIN,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,allObjects,applyAffine,automaticRoundTableRadius,buildAisleHoles,buildSeatIndex,buildSectionShell,chartBounds,combinedFloorZoneId,composeAffine,createPerspectiveCamera,cubicPoint,decomposeAffineLinear,distanceToRings,distributeAlongCubic,expandBooth,expandChart,expandRow,expandRowSlots,expandTable,expandTableSlots,floorObjects,floorStackPlacements,floorsOf,gridStats,hitTest,initialFloorMode,invertAffine,layoutCombinedFloorPlan,layoutFloorStack,mainFloorId,nearestWithin,objectCenter,owningSectionForObject,perspectiveTangentAffine,pointInPolygon,pointInPolygonWithHoles,polygonArea,polygonInscribedAnchor,polygonLabelPoint,polygonNetArea,projectPerspectivePoint,queryRect,resolveSegmentedRowGroups,rowInventoryCount,rowSeatPositions,segmentedRowComponentSeats,segmentedRowComponents,segmentedRowSeatTotal,smoothCubicThroughMiddle,stackFloors,tableInventoryCount,tableSeatCountsBySide,textLayoutMetrics,translateObject,usableHoles});
1
+ "use strict";var ce=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var xt=Object.getOwnPropertyNames;var gt=Object.prototype.hasOwnProperty;var Mt=(e,t)=>{for(var n in t)ce(e,n,{get:t[n],enumerable:!0})},St=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xt(t))!gt.call(e,r)&&r!==n&&ce(e,r,{get:()=>t[r],enumerable:!(o=yt(t,r))||o.enumerable});return e};var wt=e=>St(ce({},"__esModule",{value:!0}),e);var no={};Mt(no,{AUTOMATIC_ROUND_TABLE_RADIUS_MAX:()=>Ve,AUTOMATIC_ROUND_TABLE_RADIUS_MIN:()=>Ye,DEFAULT_SEAT_RADIUS:()=>mt,FLOOR_STACK_GAP_RATIO:()=>ft,FLOOR_STACK_MIN_SURFACE_PX:()=>Hn,TABLE_SEAT_OFFSET:()=>X,TEXT_BACKGROUND_PADDING_MAX:()=>po,TEXT_BACKGROUND_RADIUS_MAX:()=>yo,TEXT_LETTER_SPACING_MAX:()=>mo,TEXT_LETTER_SPACING_MIN:()=>ho,TEXT_LINE_HEIGHT_MAX:()=>fo,TEXT_LINE_HEIGHT_MIN:()=>uo,TEXT_OPACITY_MIN:()=>bo,TEXT_WIDTH_MAX:()=>lo,TEXT_WIDTH_MIN:()=>co,allObjects:()=>lt,applyAffine:()=>Gn,automaticRoundTableRadius:()=>cn,buildAisleHoles:()=>vt,buildSeatIndex:()=>qn,buildSectionShell:()=>It,chartBounds:()=>$,combinedFloorZoneId:()=>ve,composeAffine:()=>Yn,createPerspectiveCamera:()=>Un,cubicPoint:()=>q,decomposeAffineLinear:()=>zn,distanceToRings:()=>_e,distributeAlongCubic:()=>le,expandBooth:()=>at,expandChart:()=>Tn,expandRow:()=>rt,expandRowSlots:()=>ot,expandTable:()=>st,expandTableSlots:()=>Pe,floorObjects:()=>On,floorStackPlacements:()=>ht,floorsOf:()=>te,gridStats:()=>to,hitTest:()=>Zn,initialFloorMode:()=>Xn,invertAffine:()=>Kn,layoutCombinedFloorPlan:()=>jn,layoutFloorStack:()=>Nn,mainFloorId:()=>Bn,nearestWithin:()=>Jn,objectCenter:()=>Ie,owningSectionForObject:()=>ct,perspectiveTangentAffine:()=>Vn,pointInPolygon:()=>we,pointInPolygonWithHoles:()=>W,polygonArea:()=>de,polygonInscribedAnchor:()=>he,polygonLabelPoint:()=>Rn,polygonNetArea:()=>Et,projectPerspectivePoint:()=>ae,queryRect:()=>eo,resolveSegmentedRowGroups:()=>me,rowInventoryCount:()=>vn,rowSeatPositions:()=>ie,segmentedRowComponentSeats:()=>Tt,segmentedRowComponents:()=>At,segmentedRowSeatTotal:()=>_t,smoothCubicThroughMiddle:()=>Pt,stackFloors:()=>An,tableInventoryCount:()=>kn,tableSeatCountsBySide:()=>it,textLayoutMetrics:()=>ue,translateObject:()=>se,usableHoles:()=>V});module.exports=wt(no);var ro=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 q(e,t){let n=1-t,o=n*n*n,r=3*n*n*t,i=3*n*t*t,s=t*t*t;return{x:o*e.start.x+r*e.control1.x+i*e.control2.x+s*e.end.x,y:o*e.start.y+r*e.control1.y+i*e.control2.y+s*e.end.y}}function Pt(e,t,n){let o={x:(e.x+t.x)/2,y:(e.y+t.y)/2},r={x:(n.x-o.x)*4/3,y:(n.y-o.y)*4/3};return{start:{...e},control1:{x:e.x+(t.x-e.x)/3+r.x,y:e.y+(t.y-e.y)/3+r.y},control2:{x:e.x+(t.x-e.x)*2/3+r.x,y:e.y+(t.y-e.y)*2/3+r.y},end:{...t}}}function le(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[q(e,.5)];let o=Array.from({length:n+1},(u,a)=>q(e,a/n)),r=new Float64Array(o.length);for(let u=1;u<o.length;u+=1){let a=o[u].x-o[u-1].x,c=o[u].y-o[u-1].y;r[u]=r[u-1]+Math.hypot(a,c)}let i=r[r.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let s=[],l=1;for(let u=0;u<t;u+=1){let a=i*u/(t-1);for(;l<r.length-1&&r[l]<a;)l+=1;let c=r[l-1],f=r[l],b=f===c?0:(a-c)/(f-c);s.push({x:o[l-1].x+(o[l].x-o[l-1].x)*b,y:o[l-1].y+(o[l].y-o[l-1].y)*b})}return s}function T(e,t){return{x:e.x+t.x,y:e.y+t.y}}function z(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _(e,t){return{x:e.x*t,y:e.y*t}}function Z(e,t=13){return Array.from({length:t},(n,o)=>q(e,o/(t-1)))}function Ce(e,t){let n=Math.max(0,Math.min(1,t))*(e.length-1),o=Math.min(e.length-2,Math.floor(n));return N(e[o],e[o+1],n-o)}function Re(e,t,n){let o=Math.max(0,Math.min(1,t)),r=Math.max(o,Math.min(1,n)),i=[Ce(e,o)];for(let s=1;s<e.length-1;s+=1){let l=s/(e.length-1);l>o+1e-9&&l<r-1e-9&&i.push(e[s])}return i.push(Ce(e,r)),i}function Ee(e,t){let n=[[0,1],[1,2],[2,3],[3,0]],o=0,r=Number.POSITIVE_INFINITY;n.forEach(([b,p],y)=>{let m=H(N(e[b],e[p],.5),t);m<r&&(r=m,o=y)});let i=e[o],s=e[(o+1)%4],l=e[(o+2)%4],u=e[(o+3)%4],a=N(i,s,.5),c=z(t,a),f=Math.max(1e-9,Math.hypot(c.x,c.y));return{p0:i,p1:s,p2:l,p3:u,normal:_(c,1/f),depth:(H(i,u)+H(s,l))/2}}function Oe(e){let{p0:t,p1:n,p2:o,p3:r,normal:i,depth:s}=e,l=z(n,t),u=z(o,r),a=s*.22,c=s*.12;return{nearPath:{start:t,control1:T(T(t,_(l,1/3)),_(i,a)),control2:T(T(t,_(l,2/3)),_(i,a)),end:n},farPath:{start:o,control1:T(T(r,_(u,2/3)),_(i,c)),control2:T(T(r,_(u,1/3)),_(i,c)),end:r}}}function It(e,t,n){if(e.length!==4)throw new Error("A section shell requires four mapped bounds corners");let o=e.reduce((y,m)=>T(y,m),{x:0,y:0});o.x/=4,o.y/=4;let r=H(e[0],e[1]),i=H(e[0],e[3]),s=n==="auto"?r>i*1.25&&H(o,t)>i?"bezier":"tapered":n;if(s==="rectangle")return{mode:s,outline:e.map(y=>({...y}))};let l=Ee(e,t),{p0:u,p1:a,p2:c,p3:f}=l;if(s==="tapered")return{mode:s,outline:[T(u,_(z(a,u),.14)),T(u,_(z(a,u),1-.14)),c,f]};let{nearPath:b,farPath:p}=Oe(l);return{mode:s,outline:[...Z(b),...Z(p).slice(1)]}}function vt(e,t,n,o){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 r=Ee(e,t),{p0:i,p1:s,p2:l,p3:u}=r,a=o==="bezier"?Oe(r):null,c=a?Z(a.nearPath):null,f=a?Z(a.farPath).reverse():null,b=Math.min(.055,.18/(n+1));return Array.from({length:n},(p,y)=>{let m=(y+1)/(n+1),g=m-b/2,w=m+b/2;return c&&f?[...Re(c,g,w),...Re(f,g,w).reverse()]:[N(i,s,g),N(i,s,w),N(u,l,w),N(u,l,g)]})}var co=40,lo=1200,uo=.8,fo=3,ho=-2,mo=20,bo=.1,po=40,yo=40,Ae=e=>Math.max(1,e.fontSize*.6+(e.letterSpacing??0));function kt(e,t){let n=e.text.split(/\r?\n/);if(!e.width)return Math.max(1,n.length);let o=Math.max(1,Math.floor(t/Ae(e))),r=0;for(let i of n){if(!i.length){r+=1;continue}let s=0;for(let l of i.split(/\s+/)){let u=l.length;s&&s+1+u<=o?s+=1+u:(r+=Math.max(1,Math.ceil(u/o)),s=u%o)}}return Math.max(1,r)}function ue(e){let t=e.background?.padding??0,n=e.text.split(/\r?\n/),o=Math.max(1,...n.map(l=>l.length))*Ae(e),r=e.width??o+t*2,i=Math.max(1,r-t*2),s=kt(e,i);return{width:r,height:s*e.fontSize*(e.lineHeight??1.2)+t*2,lineCount:s,padding:t}}function Ct(e,t,n){let o=n.x-t.x,r=n.y-t.y,i=o*o+r*r,s=i?Math.max(0,Math.min(1,((e.x-t.x)*o+(e.y-t.y)*r)/i)):0;return Math.hypot(e.x-(t.x+s*o),e.y-(t.y+s*r))}function _e(e,t){let n=1/0;for(let o of t)if(!(o.length<2))for(let r=0,i=o.length-1;r<o.length;i=r++){let s=Ct(e,o[i],o[r]);s<n&&(n=s)}return n}function Te(e,t){let n=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){let i=t[o].x,s=t[o].y,l=t[r].x,u=t[r].y;s>e.y!=u>e.y&&e.x<(l-i)*(e.y-s)/(u-s)+i&&(n=!n)}return n}function De(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function Rt(e,t,n){let o=Te(e,t)&&!n.some(i=>Te(e,i)),r=_e(e,[t,...n]);return o?r:-r}function G(e,t,n,o,r){let i=Rt({x:e,y:t},o,r);return{x:e,y:t,h:n,d:i,max:i+n*Math.SQRT2}}var fe=class{constructor(){this.items=[]}get size(){return this.items.length}push(t){let n=this.items;n.push(t);let o=n.length-1;for(;o>0;){let r=o-1>>1;if(n[r].max>=n[o].max)break;[n[r],n[o]]=[n[o],n[r]],o=r}}pop(){let t=this.items,n=t[0],o=t.pop();if(t.length&&o){t[0]=o;let r=0;for(;;){let i=r*2+1,s=i+1,l=r;if(i<t.length&&t[i].max>t[l].max&&(l=i),s<t.length&&t[s].max>t[l].max&&(l=s),l===r)break;[t[l],t[r]]=[t[r],t[l]],r=l}}return n}};function de(e){if(e.length<3)return 0;let t=0;for(let n=0,o=e.length-1;n<e.length;o=n++)t+=(e[o].x+e[n].x)*(e[o].y-e[n].y);return Math.abs(t)/2}function Et(e,t){return Math.max(0,de(e)-De(t).reduce((n,o)=>n+de(o),0))}function he(e,t){let n=De(t);if(!e.length)return{point:{x:0,y:0},radius:0};if(e.length<3){let m=e.reduce((w,v)=>w+v.x,0)/e.length,g=e.reduce((w,v)=>w+v.y,0)/e.length;return{point:{x:m,y:g},radius:0}}let o=1/0,r=1/0,i=-1/0,s=-1/0;for(let m of e)m.x<o&&(o=m.x),m.y<r&&(r=m.y),m.x>i&&(i=m.x),m.y>s&&(s=m.y);let l=i-o,u=s-r,a=Math.min(l,u);if(!(a>0))return{point:{x:(o+i)/2,y:(r+s)/2},radius:0};let c=Math.max(l,u)/150,f=new fe,b=a/2;for(let m=o;m<i;m+=a)for(let g=r;g<s;g+=a)f.push(G(m+b,g+b,b,e,n));let p=G(o+l/2,r+u/2,0,e,n),y=0;for(;f.size;){let m=f.pop();if(!m)break;m.d>p.d&&(p=m),!(m.max-p.d<=c)&&(y>=4e3||(y+=1,b=m.h/2,f.push(G(m.x-b,m.y-b,b,e,n)),f.push(G(m.x+b,m.y-b,b,e,n)),f.push(G(m.x-b,m.y+b,b,e,n)),f.push(G(m.x+b,m.y+b,b,e,n))))}return{point:{x:p.x,y:p.y},radius:Math.max(0,p.d)}}function J(e,t,n){return Math.max(t,Math.min(n,e))}function F(e,t,n){return e<t?t:e>n?n:e}var So=Math.PI*2;function Le(e,t,n){return Ot(e,r=>({x:r.x+t,y:r.y+n}))}function Ot(e,t,n=1,o=!1){return{...e,start:t(e.start),segments:e.segments.map(r=>r.kind==="line"?{...r,end:t(r.end)}:r.kind==="arc"?{...r,center:t(r.center),radius:r.radius*Math.abs(n),clockwise:o?!r.clockwise:r.clockwise,end:t(r.end)}:{...r,control1:t(r.control1),control2:t(r.control2),end:t(r.end)})}}var wo=4/3;function At(e,t,n){let o=[];for(let r=0;r<e.length-1;r+=1){let i=e[r],s=e[r+1],l=Math.hypot(s.x-i.x,s.y-i.y);if(l<=0)continue;let u=Math.max(1,Math.round(l/n)),a=l/u,c=Math.atan2(s.y-i.y,s.x-i.x),f=r===0,p=(r>0?t[r-1]:void 0)==="break"?2:1,y=f?{...i}:{x:i.x+Math.cos(c)*a*p,y:i.y+Math.sin(c)*a*p},m=f?u+1:Math.max(1,u-(p-1));o.push({origin:y,rotation:c*180/Math.PI,seatCount:m,seatSpacing:a})}return o}function Tt(e){let t=e.rotation*Math.PI/180,n={x:Math.cos(t),y:Math.sin(t)};return Array.from({length:e.seatCount},(o,r)=>({x:e.origin.x+n.x*r*e.seatSpacing,y:e.origin.y+n.y*r*e.seatSpacing}))}function _t(e){return e.reduce((t,n)=>t+n.seatCount,0)}function me(e){let t=new Map,n=new Map;for(let o of e){if(o.type!=="row"||!o.segmentedRow)continue;let r=n.get(o.segmentedRow.groupId)??[];r.push(o),n.set(o.segmentedRow.groupId,r)}for(let[o,r]of n){let i=r.slice().sort((b,p)=>b.segmentedRow.componentIndex-p.segmentedRow.componentIndex),s=i[0]?.segmentedRow?.componentCount??0,l=i[0]?.segmentedRow;if(!l||!(s>=2&&i.length===s&&l?.boundaryBefore==="start"&&i.every((b,p)=>b.segmentedRow?.kind==="segmented-row-v1"&&b.segmentedRow.groupId===o&&b.segmentedRow.componentCount===s&&b.segmentedRow.componentIndex===p&&b.segmentedRow.repeatLabelOnComponents===l.repeatLabelOnComponents&&(p===0?b.segmentedRow.boundaryBefore==="start":b.segmentedRow.boundaryBefore!=="start")&&b.segmentedRow.displayLabel===l.displayLabel)))continue;let a=i.reduce((b,p)=>b+p.seatCount,0),c=0,f=0;for(let b of i)b.segmentedRow.boundaryBefore==="break"&&(c+=1),t.set(b.id,{groupId:o,adjacencyOffset:c,displayOffset:f,displayLabel:l.displayLabel,totalSeats:a,canonical:i[0],viewFromSeatUrl:l.viewFromSeatUrl,viewFromSeatMeta:l.viewFromSeatMeta,confidenceEvidence:l.confidenceEvidence}),c+=b.seatCount,f+=b.seatCount}return t}var Dt="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var Lt="abcdefghijklmnopqrstuvwxyz";function Ft(e,t){let n=t.length,o=e+1,r="";for(;o>0;){o-=1;let i=o%n;r=t[i]+r,o=Math.floor(o/n)}return r}function be(e,t=!1){let n=t?Lt:Dt;return Ft(Math.max(0,Math.floor(e)-1),n)}var Nt=[[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 Fe(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of Nt)for(;t>=o;)n+=r,t-=o;return n}function jt(e){let t=new Array(e);return Array.from({length:e},(n,o)=>o).sort((n,o)=>Math.abs(2*n-(e-1))-Math.abs(2*o-(e-1))||n-o).forEach((n,o)=>t[n]=o),t}function ee(e,t){let n=e.seatLabelStart??1,o=e.seatNumbering?.direction??"ltr",r=e.seatNumbering?.step??1,i=e.seatNumbering?.scheme??"decimal",s=e.seatNumbering?.prefix??"",l=e.seatNumbering?.endAt,u=e.seatCount;if(i==="updown"||i==="updown-descending"){let p=Math.ceil(u/2),y=i==="updown"?t<p?n+2*t:n-1+2*(u-t):t<p?n+2*(p-1-t):n+1+2*(t-p);return`${s}${y}`}let a=i==="odd"||i==="even"?2:r,c=l!=null&&Number.isFinite(l)?l-(u-1)*a:n,f=o==="center"?jt(u)[t]:o==="rtl"?u-1-t:t,b;switch(i){case"odd":{let p=c%2===1?c:c+1;b=String(p+f*2);break}case"even":{let p=c%2===0?c:c+1;b=String(p+f*2);break}case"roman":b=Fe(c+f*r);break;case"letters-upper":b=be(c+f*r,!1);break;case"letters-lower":b=be(c+f*r,!0);break;default:b=String(c+f*r);break}return`${s}${b}`}function Bt(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function Ne(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${ee(e,t)}`}function pe(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(e.seatDisplayLabelMode==="number")return ee(e,t);if(!n)return`${e.displayLabel||e.label}-${ee(e,t)}`;let r=Bt(n),i=n.displayOffset+t;return`${n.displayLabel}-${ee(r,i)}`}var K=.02291666666666667,Ro=1/K,Ht=58,Xt=Ht*K;var Ut=3,je=0,ye=120,Gt=0,Kt=45,Yt=7,Y=1.2;function xe(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function Vt(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=Yt?e:Ut}function Be(e,t={}){let n=xe(t.floorBaseHeightM,je,ye,0),o=Math.min(ye,n+Vt(e.elevation)*Xt),r=e.height===void 0?o:xe(e.height,je,ye,o),i=xe(e.rake,Gt,Kt,0);return{height:r,rake:i}}function He(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 Xe(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 o=1/0;for(let r=0;r+1<e.length;r++){let i=e[r],s=e[r+1],l=s.x-i.x,u=s.y-i.y,a=l*l+u*u,c=a>1e-12?((t-i.x)*l+(n-i.y)*u)/a:0;c<0?c=0:c>1&&(c=1);let f=t-(i.x+c*l),b=n-(i.y+c*u);if(Math.abs(f)>=o||Math.abs(b)>=o)continue;let p=Math.hypot(f,b);p<o&&(o=p)}return o}function zt(e){let t=0,n=0;for(let i of e)t+=i.x,n+=i.y;let o=e.length||1;t/=o,n/=o;let r=0;for(let i of e){let s=Math.hypot(i.x-t,i.y-n);s>r&&(r=s)}return{cx:t,cy:n,r}}function Ue(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function ge(e,t){let n=1/0;for(let o of He(e)){let r=Xe(t,o.x,o.y);r<n&&(n=r)}for(let o of He(t)){let r=Xe(e,o.x,o.y);r<n&&(n=r)}return n}function Wt(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,o=0;for(let c of e)n+=c.x,o+=c.y;n/=e.length,o/=e.length;let r=-1,i=e[0];for(let c of e){let f=Math.hypot(c.x-n,c.y-o);f>r&&(r=f,i=c)}let s=i.x-n,l=i.y-o,u=Math.hypot(s,l);u>1e-9?(s/=u,l/=u):(s=1,l=0);let a=e.map((c,f)=>({p:c,i:f,t:(c.x-n)*s+(c.y-o)*l})).sort((c,f)=>c.t-f.t);return{pts:a.map(c=>c.p),seatIndices:a.map(c=>t[c.i])}}function $t(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let v of e)n+=v.x,o+=v.y;n/=t,o/=t;let r=0,i=0,s=0,l=0,u=0,a=0,c=0;for(let v of e){let R=v.x-n,C=v.y-o;r+=R*R,s+=C*C,i+=R*C,l+=R*R*R,u+=C*C*C,a+=R*C*C,c+=C*R*R}let f=r*s-i*i;if(Math.abs(f)<1e-9)return null;let b=(l+a)/2,p=(u+c)/2,y=(b*s-p*i)/f,m=(p*r-b*i)/f,g=y+n,w=m+o;return!Number.isFinite(g)||!Number.isFinite(w)?null:{cx:g,cy:w}}var Qt=.15;function qt(e){if(e.length<2)return null;let t=e.map(M=>{let d=0,h=0;for(let S of M.pts)d+=S.x,h+=S.y;return{x:d/M.pts.length,y:h/M.pts.length}}),n=0,o=0;for(let M of t)n+=M.x,o+=M.y;n/=t.length,o/=t.length;let r=0,i=0,s=0;for(let M of t){let d=M.x-n,h=M.y-o;r+=d*d,i+=d*h,s+=h*h}let l=r+s,u=r*s-i*i,a=l/2+Math.sqrt(Math.max(0,l*l/4-u)),c,f;Math.abs(i)>1e-12?(c=a-s,f=i):r>=s?(c=1,f=0):(c=0,f=1);let b=Math.hypot(c,f);if(!(b>1e-12))return null;c/=b,f/=b;let p=0,y=0,m=0;for(let M of e){if(M.pts.length<2)continue;let d=M.pts[0],h=M.pts[M.pts.length-1],S=h.x-d.x,x=h.y-d.y,I=Math.hypot(S,x);if(!(I>1e-9))continue;let A=S/I,P=x/I;p+=(A*A-P*P)*I,y+=2*A*P*I,m+=I}if(m>0&&Math.hypot(p,y)>=Jt*m){let M=Math.atan2(y,p)/2,d=Math.cos(M),h=Math.sin(M);Math.abs(c*d+f*h)>en&&(c=-h,f=d)}let g=1/0,w=-1/0,v=[];for(let M of e){let d=1/0,h=-1/0;for(let S of M.pts){let x=S.x*c+S.y*f;x<d&&(d=x),x>h&&(h=x),x<g&&(g=x),x>w&&(w=x)}v.push(h-d)}let R=w-g;return R>1e-9?(v.sort((M,d)=>M-d),v[Math.min(v.length-1,Math.floor(v.length*.9))]/R<=Zt?{x:c,y:f}:null):null}var Zt=.35,Jt=.8,en=.7;function Ge(e,t,n,o){let r=new Map;for(let d of n){let h=t[d],S=h.rowId||`__seat-${d}`,x=r.get(S);x||(x={pts:[],idx:[]},r.set(S,x)),x.pts.push({x:h.x,y:h.y}),x.idx.push(d)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[d,h]of r){let S=Wt(h.pts,h.idx),x=0;for(let I of S.pts)x+=Math.hypot(I.x-o.x,I.y-o.y);i.push({id:d,pts:S.pts,seatIndices:S.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:x/S.pts.length})}let s=i.map(d=>zt(d.pts)),l=i.length<=256?i.length*(i.length-1)/2:0,u=l?new Float64Array(l):null;u?.fill(Number.NaN);let a=u?new Map(i.map((d,h)=>[d,h])):null,c=(d,h)=>(d>h&&([d,h]=[h,d]),d*(2*i.length-d-1)/2+(h-d-1)),f=(d,h)=>{if(!u)return ge(i[d].pts,i[h].pts);let S=c(d,h),x=u[S];if(!Number.isNaN(x))return x;let I=ge(i[d].pts,i[h].pts);return u[S]=I,I},b=(d,h)=>a?f(a.get(d),a.get(h)):ge(d.pts,h.pts),p=[];for(let d=0;d<i.length;d++){let h=1/0;for(let S=0;S<i.length;S++){if(d===S||Ue(s[d],s[S])>=h)continue;let x=f(d,S);x<h&&(h=x)}Number.isFinite(h)&&p.push(h)}p.sort((d,h)=>d-h);let y=p.length?p[Math.floor(p.length/2)]:1,m=Math.max(y*1.8,1e-6),g=i.map(()=>[]);for(let d=0;d<i.length;d++)for(let h=d+1;h<i.length;h++)Ue(s[d],s[h])>m||f(d,h)<=m&&(g[d].push(h),g[h].push(d));let w=0;for(let d=0;d<i.length;d++){if(i[d].blockId!==-1)continue;let h=w++,S=[d];for(i[d].blockId=h;S.length;){let x=S.pop();for(let I of g[x])i[I].blockId===-1&&(i[I].blockId=h,S.push(I))}}let v=new Map;for(let d of i){let h=v.get(d.blockId)??[];h.push(d),v.set(d.blockId,h)}let R=[];for(let d of i){if(d.pts.length<4)continue;let h=$t(d.pts);h&&(!Number.isFinite(h.cx)||!Number.isFinite(h.cy)||R.push({x:h.cx,y:h.cy}))}let C=R.length>=2?(()=>{let d=R.map(x=>x.x).sort((x,I)=>x-I),h=R.map(x=>x.y).sort((x,I)=>x-I),S=Math.floor(R.length/2);return{cx:d[S],cy:h[S]}})():null;if(C){let d=P=>Math.hypot(P.x-C.cx,P.y-C.cy),h=1/0,S=-1/0,x=[];for(let P of i){let k=1/0,E=-1/0;for(let D of P.pts){let j=d(D);j<k&&(k=j),j>E&&(E=j)}x.push(E-k),k<h&&(h=k),E>S&&(S=E)}let I=S-h;x.sort((P,k)=>P-k);let A=x[Math.min(x.length-1,Math.floor(x.length*.9))];if(I>1e-9&&A/I<=Qt){let P=i.map(O=>{let Q=0;for(let pt of O.pts)Q+=d(pt);return{row:O,radius:Q/O.pts.length}}),k=0,E=0;for(let O of P)k+=O.radius,E+=O.row.focalDistance;k/=P.length,E/=P.length;let D=0;for(let O of P)D+=(O.radius-k)*(O.row.focalDistance-E);if(D<0)for(let O of P)O.radius=-O.radius;let B=1/0;for(let O of P)O.radius<B&&(B=O.radius);P.sort((O,Q)=>O.radius-Q.radius);let L=-1,U=-1/0,bt=I/Math.max(1,P.length)*.5,ke=[];for(let O of P)O.radius-U>bt&&(L++,U=O.radius),O.row.ordinal=L,O.row.blockDepth=O.radius-B,ke.push(O.row);return{sectionId:e,rows:ke,blockCount:w}}}let M=[];for(let[,d]of v){let h=qt(d);if(h){let S=P=>{let k=0;for(let E of P.pts)k+=E.x*h.x+E.y*h.y;return k/P.pts.length};d.sort((P,k)=>S(P)-S(k)),d.length>=2&&d[0].focalDistance>d[d.length-1].focalDistance&&d.reverse();let x=[],I=y*.5;for(let P of d){let k=x[x.length-1];k&&Math.abs(S(P)-S(k[0]))<I?k.push(P):x.push([P])}let A=0;for(let P=0;P<x.length;P++){if(P>0){let k=1/0;for(let E of x[P-1])for(let D of x[P])k=Math.min(k,b(E,D));A+=k}for(let k of x[P])k.ordinal=P,k.blockDepth=A,M.push(k)}}else{let S=1/0;for(let x of d)x.focalDistance<S&&(S=x.focalDistance);d.sort((x,I)=>x.focalDistance-I.focalDistance);for(let x=0;x<d.length;x++)d[x].ordinal=x,d[x].blockDepth=Math.max(0,d[x].focalDistance-S),M.push(d[x])}}return{sectionId:e,rows:M,blockCount:w}}var tn=/^\d{4}-\d{2}-\d{2}$/;function nn(e){let t=Date.parse(e);return Number.isFinite(t)?tn.test(e)?t+864e5:t:null}function on(e,t=Date.now()){if(e.validUntil===void 0){if(e.status!=="approved")return!0;let o=e.assessedAt?Date.parse(e.assessedAt):Number.NaN;return Number.isFinite(o)&&(t instanceof Date?t.getTime():t)<=o+366*864e5}let n=nn(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function rn(e,t,n){return!(e.eventConfigurationId&&e.eventConfigurationId!==t||e.eventConfigurationVersion!==void 0&&e.eventConfigurationVersion!==n)}function sn(e){return e.status!=="draft"&&e.status!=="retracted"}function an(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 Ke(e,t={}){return!!e&&sn(e)&&rn(e,t.activeConfigurationId,t.activeConfigurationVersion)&&an(e,t.activeBasisSha256)&&on(e,t.now)}var Ye=36,Ve=160;function cn(e,t=360){let n=J(Math.round(Number.isFinite(e)?e:1),1,40),o=J(Number.isFinite(t)?t:360,120,360);return Math.round(J(n*4*(360/o),Ye,Ve))}var ln=new Set(["pitch-football","rink-hockey","track-athletics","oval-cricket","pitch-rugby","diamond-baseball","court-basketball","court-tennis","ring-boxing"]);function un(e){return!!e&&ln.has(e)}var ze=1.1;var Do=Math.PI*2;var Lo=(()=>{let t={x:0,y:52},n=25,o={x:70,y:t.y-70},r=(o.x*o.x+o.y*o.y-4900)/(2*(o.y+70)),i=r+70,s=[],l=Math.atan2(o.y-r,o.x),u=Math.atan2(o.y-r,-o.x);for(let a=0;a<=24;a++){let c=l+(u-l)*a/24;s.push({x:i*Math.cos(c),y:r+i*Math.sin(c)})}return{half:70,home:t,backstop:n,fence:s}})();function We(e){return un(e)}function fn(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,o=e.width,r=e.height;return[{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+r},{x:t,y:n+r}]}function dn(e,t,n){let o=n*Math.PI/180,r=Math.cos(o),i=Math.sin(o),s=e.x-t.x,l=e.y-t.y;return{x:t.x+s*r-l*i,y:t.y+s*i+l*r}}function $e(e){let t=fn(e);if(!t||t.length<2)return null;let n=e.rotation??0,o=Math.abs(n)<1e-6?t:t.map(u=>dn(u,{x:t.reduce((a,c)=>a+c.x,0)/t.length,y:t.reduce((a,c)=>a+c.y,0)/t.length},n)),r=1/0,i=1/0,s=-1/0,l=-1/0;for(let u of o)r=Math.min(r,u.x),i=Math.min(i,u.y),s=Math.max(s,u.x),l=Math.max(l,u.y);return!Number.isFinite(r)||s-r<1e-6||l-i<1e-6?null:{minX:r,minY:i,maxX:s,maxY:l}}var hn=5,mn=3,bn=.92,pn=1.9,yn=2,xn=.6,gn=1,Mn=.06;function Sn(e){return e.heightM!==void 0?e.heightM:e.stageKind==="ring-boxing"?ze:We(e.stageKind)?Mn:gn}function Qe(e){let t=1/0,n=1/0,o=-1/0,r=-1/0,i=-1/0;for(let s of te(e)){let l=s.baseHeightM??0;for(let u of s.objects){if(u.type!=="shape"||u.role!=="stage")continue;let a=$e(u);a&&(t=Math.min(t,a.minX),n=Math.min(n,a.minY),o=Math.max(o,a.maxX),r=Math.max(r,a.maxY),i=Math.max(i,l+Sn(u)))}}return!Number.isFinite(t)||!Number.isFinite(i)?null:{minX:t,minY:n,maxX:o,maxY:r,deckTopM:i}}function wn(e,t,n,o){let r=1/0,i=1/0,s=-1/0,l=-1/0;for(let p of e)Number.isFinite(p.eyeHeightM)&&(r=Math.min(r,p.x),s=Math.max(s,p.x),i=Math.min(i,p.y),l=Math.max(l,p.y));if(!Number.isFinite(r))return null;let u=r*t,a=i*t,c=Math.max(1,Math.ceil((s-r)*t/n)+1),f=Math.max(1,Math.ceil((l-i)*t/n)+1),b=new Float64Array(c*f).fill(-1/0);for(let p of e){if(!Number.isFinite(p.eyeHeightM))continue;let y=p.eyeHeightM-Y,m=Math.min(c-1,Math.max(0,Math.floor((p.x*t-u)/n))),w=Math.min(f-1,Math.max(0,Math.floor((p.y*t-a)/n)))*c+m,v=y+o;v>b[w]&&(b[w]=v)}return{cellM:n,minX:u,minY:a,cols:c,rows:f,top:b}}function Pn(e,t,n){let o=Math.floor((t-e.minX)/e.cellM),r=Math.floor((n-e.minY)/e.cellM);return o<0||r<0||o>=e.cols||r>=e.rows?-1/0:e.top[r*e.cols+o]}function qe(e,t,n={}){let o=new Map;if(!t||!e.length)return o;let r=n.metresPerChartUnit??K,i=n.cellM??xn,s=n.chairBackM??bn,l=n.selfRowSkipM??yn,u=n.clearThreshold??.9,a=n.partialThreshold??.25,c=Math.max(1,n.columns??hn),f=Math.max(1,n.rows??mn),b=wn(e,r,i,s);if(!b)return o;let p=(t.maxX-t.minX)*r,y=(t.maxY-t.minY)*r,m=p>=y,g=(t.minX+t.maxX)/2*r,w=(t.minY+t.maxY)/2*r,v=[];for(let C=0;C<c;C++){let M=(C+.5)/c-.5,d=m?g+M*p:g,h=m?w:w+M*y;for(let S=0;S<f;S++){let x=t.deckTopM+(f===1?0:S/(f-1)*pn);v.push({x:d,y:h,z:x})}}let R=i/2;for(let C of e){if(!Number.isFinite(C.eyeHeightM))continue;let M=C.x*r,d=C.y*r,h=C.eyeHeightM,S=0,x=1/0;for(let A of v){let P=A.x-M,k=A.y-d,E=Math.hypot(P,k);if(!(E>l)){S++;continue}let D=P/E,j=k/E,B=0;for(let L=l;L<E;L+=R){let U=Pn(b,M+D*L,d+j*L);if(!(!Number.isFinite(U)||U>=h)&&U>h+(A.z-h)*L/E){B=L;break}}B?x=Math.min(x,B):S++}let I=S/v.length;I>=u||o.set(C.id,{seatId:C.id,mark:I<a?"obstructedView":"restrictedView",visibleFraction:I,totalRays:v.length,atDistanceM:Number.isFinite(x)?x:0})}return o}function Ze(e,t){if(!t.size)return 0;let n=0;for(let o of e){let r=t.get(o.id);if(!r)continue;let i=o.commercial;i?.restrictedView!==void 0||i?.obstructedView!==void 0||(o.commercial={...i,[r.mark]:!0},n++)}return n}function Me(e){return e?e.accessibility?.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var re=Math.PI/180,In=9,X=16;function Se(e,t,n,o){let r=n*re,i=Math.cos(r),s=Math.sin(r);return{x:o.x+e*i-t*s,y:o.y+e*s+t*i}}function ie(e){let{seatCount:t,seatSpacing:n,curve:o,rotation:r,origin:i}=e,s=[];if(e.path)return le(e.path,t);if(t<=1)return t===1&&s.push({x:i.x,y:i.y}),s;if(o===0){for(let a=0;a<t;a++)s.push(Se(a*n,0,r,i));return s}let l=o/(t-1)*re,u=n/(2*Math.sin(Math.abs(l)/2));for(let a=0;a<t;a++){let c=a*l,f=u*Math.sin(c),b=-u+u*Math.cos(c);s.push(Se(f,b,r,i))}return s}function nt(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function vn(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 ot(e,t){let n=nt(e);return ie(e).map((o,r)=>{let i=n.get(r),s=Me(i),l=Ne(e,r,i),u={...e.commercial,...i?.commercial};return{index:r,x:o.x+(i?.dx??0),y:o.y+(i?.dy??0),label:l,displayLabel:pe(e,r,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:s.length>0,accessibility:s,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(u).some(a=>a!==void 0&&a!==!1&&a!=="")?u:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle??e.seatLabelStyle}})}function rt(e){let t=[];for(let n of ot(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)),o={top:0,bottom:0,left:0,right:0};if(!n.length)return o;let r=Math.max(0,Math.round(e.seatCount));for(let i=0;i<r;i++)o[n[i%n.length]]+=1;return o}function Pe(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let o=new Map((e.overrides??[]).map(c=>[c.index,c])),r=(c,f,b,p)=>{let y=o.get(c),m=Me(y),g=y?.label??`${e.label}-${c+1}`,w=e.displayLabel??e.label;return{index:c,label:g,displayLabel:y?.displayLabel??`${w}-${c+1}`,x:f+(y?.dx??0),y:b+(y?.dy??0),categoryKey:y?.categoryKey??e.categoryKey,skipped:!!y?.skip,accessible:m.length>0,accessibility:m,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)+X,f=e.rotation*re,b=Math.max(0,Math.min(360,e.seatArc??360));if(b>=360||n===1){for(let g=0;g<n;g++){let w=f+g/n*2*Math.PI;t.push(r(g,e.center.x+c*Math.cos(w),e.center.y+c*Math.sin(w)))}return t}let p=b*re,y=(2*Math.PI-p)/2,m=f+y;for(let g=0;g<n;g++){let w=m+g/(n-1)*p;t.push(r(g,e.center.x+c*Math.cos(w),e.center.y+c*Math.sin(w)))}return t}let i=e.width??80,s=e.height??50,l=it(e),u=["top","bottom","left","right"],a=0;for(let c of u){let f=l[c];for(let b=0;b<f;b++){let p,y;c==="top"?(p=-i/2+(b+.5)*i/f,y=-s/2-X):c==="bottom"?(p=-i/2+(b+.5)*i/f,y=s/2+X):c==="left"?(p=-i/2-X,y=-s/2+(b+.5)*s/f):(p=i/2+X,y=-s/2+(b+.5)*s/f);let m=Se(p,y,e.rotation,e.center);t.push(r(a++,m.x,m.y,c))}}return t}function kn(e){return e.bookAsWhole||e.variableOccupancy?Math.max(0,Math.round(e.seatCount)):Pe(e).filter(t=>!t.skipped).length}function st(e){return Pe(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 at(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"}]}function we(e,t){let n=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){let i=t[o].x,s=t[o].y,l=t[r].x,u=t[r].y;s>e.y!=u>e.y&&e.x<(l-i)*(e.y-s)/(u-s)+i&&(n=!n)}return n}function Cn(e,t){return t.some((n,o)=>{let r=t[(o+1)%t.length],i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y);if(Math.abs(i)>1e-7)return!1;let s=(e.x-n.x)*(r.x-n.x)+(e.y-n.y)*(r.y-n.y),l=(r.x-n.x)**2+(r.y-n.y)**2;return s>=-1e-7&&s<=l+1e-7})}function V(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function W(e,t,n){return we(e,t)&&!V(n).some(o=>we(e,o)||Cn(e,o))}function Rn(e,t){return he(e,t).point}function oe(e){if(!e.length)return{x:0,y:0};let t=0,n=0;for(let o of e)t+=o.x,n+=o.y;return{x:t/e.length,y:n/e.length}}function Ie(e){switch(e.type){case"row":{let t=ie(e),n=nt(e),o=0,r=0,i=0;for(let s=0;s<t.length;s++){let l=n.get(s);l?.skip||(o+=t[s].x+(l?.dx??0),r+=t[s].y+(l?.dy??0),i++)}return i?{x:o/i,y:r/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 oe(e.points);case"section":return oe(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?oe(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 Je(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function En(e,t){if(e.type!=="gaArea"||!Je(e.points,t.outline))return!1;let n=V(e.holes),o=V(t.holes);return n.length===o.length&&n.every((r,i)=>Je(r,o[i]))}function ct(e,t,n=e.filter(r=>r.type==="section"),o=Ie(t)){let r="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(r?n.find(s=>(s.logicalSectionId??s.id)===r&&(En(t,s)||W(o,s.outline,s.holes))):void 0)??n.find(s=>W(o,s.outline,s.holes))}function te(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 On(e,t){let n=te(e);return(t?n.find(o=>o.id===t):n[0])?.objects??[]}function lt(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}function se(e,t,n){let o=i=>({x:i.x+t,y:i.y+n}),r=i=>i.map(o);switch(e.type){case"row":return{...e,origin:o(e.origin)};case"table":case"booth":return{...e,center:o(e.center)};case"gaArea":return{...e,points:r(e.points),...e.holes?{holes:V(e.holes).map(r)}:{}};case"section":return{...e,outline:r(e.outline),...e.outlinePath?{outlinePath:Le(e.outlinePath,t,n)}:{},...e.holes?{holes:V(e.holes).map(r)}:{}};case"text":return{...e,position:o(e.position)};case"shape":return{...e,...e.points?{points:r(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 An(e,t=900){if(!e.floors||e.floors.length<2)return e;let n=[];return e.floors.forEach((o,r)=>{let i=-r*t;for(let s of o.objects)n.push(i===0?s:se(s,0,i))}),{...e,objects:n,floors:void 0}}function et(e,t,n,o,r,i,s,l,u){let a=[],c=e.filter(m=>m.type==="section"),f=me(e),b=m=>!m?.eventConfigurationId||m.eventConfigurationId===o&&(m.eventConfigurationVersion===void 0||m.eventConfigurationVersion===u),p=m=>Ke(m,{activeConfigurationId:o,activeConfigurationVersion:u,activeBasisSha256:r,now:l}),y=(m,g)=>p(m)?{...m,coverage:g}:void 0;for(let m of e){let g=[];if(m.type==="row"?g=rt(m):m.type==="table"?g=st(m):m.type==="booth"&&(g=at(m)),!g.length)continue;for(let M of g)M.viewUrl&&!b(M.viewMeta)&&(M.viewUrl=void 0,M.viewMeta=void 0);if(m.type==="row"){let M=f.get(m.id);if(M){let d=new Map((m.overrides??[]).map(h=>[h.index,h]));for(let h of g){let S=Number(h.id.slice(h.id.lastIndexOf(":")+1));if(!Number.isInteger(S))continue;h.logicalRowId=M.groupId,h.logicalSeatIndex=M.adjacencyOffset+S,d.get(S)?.displayLabel||(h.displayLabel=pe(m,S,M)),!h.viewUrl&&M.viewFromSeatUrl&&b(M.viewFromSeatMeta)&&(h.viewUrl=M.viewFromSeatUrl,h.viewMeta=M.viewFromSeatMeta);let x=d.get(S)?.confidenceEvidence;h.confidenceEvidence=y(x,"exact-seat")??y(m.confidenceEvidence,"row-representative")??y(M.confidenceEvidence,"row-representative")}}}let w=ct(e,m,c,m.type==="row"?oe(g):Ie(m)),v=w?.viewFromSeatUrl,C=(w?.zone?t?.find(M=>M.id===w.zone):void 0)?.focalPoint??n;for(let M of g){if(!M.confidenceEvidence){let d=Number(M.id.slice(M.id.lastIndexOf(":")+1)),h=(m.type==="row"||m.type==="table")&&Number.isInteger(d)?m.overrides?.find(S=>S.index===d)?.confidenceEvidence:void 0;M.confidenceEvidence=y(h,"exact-seat")??(m.type==="row"?y(m.confidenceEvidence,"row-representative"):void 0)}M.confidenceEvidence??=y(w?.confidenceEvidence,"section-representative")??(s?y(s.evidence,s.coverage):void 0),!M.viewUrl&&v&&b(w?.viewFromSeatMeta)&&(M.viewUrl=v,M.viewMeta=w?.viewFromSeatMeta),!M.viewUrl&&i&&b(i.meta)&&(M.viewUrl=i.url,M.viewMeta=i.meta),w&&(M.sectionId=w.logicalSectionId??w.id),w?.zone&&(M.zoneId=w.zone),C&&(M.focalPoint={...C})}a.push(...g)}return a}function Tn(e,t={}){if(e.floors?.length){let o=[];for(let r of e.floors){let i=r.focalPoint??e.focalPoint,s=r.viewFromSeatUrl?{url:r.viewFromSeatUrl,meta:r.viewFromSeatMeta}:e.viewFromSeatUrl?{url:e.viewFromSeatUrl,meta:e.viewFromSeatMeta}:void 0,l=r.confidenceEvidence?{evidence:r.confidenceEvidence,coverage:"floor-representative"}:e.confidenceEvidence?{evidence:e.confidenceEvidence,coverage:"venue-representative"}:void 0,u=et(r.objects,e.zones,i,e.eventConfigurationId,e.confidenceBasisSha256,s,l,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);t.resolveEyeHeights!==!1&&tt(r.objects,r.focalPoint??e.focalPoint,r.baseHeightM??0,u);for(let a of u)a.floorId=r.id;for(let a of u)o.push(a)}return o}let n=et(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&&tt(e.objects,e.focalPoint,t.floorBaseHeightM??0,n),_n(e,n,t)}function _n(e,t,n){return!n.deriveRestrictedView||e.derivedRestrictedView===!1||n.resolveEyeHeights===!1||Ze(t,qe(t,Qe(e))),t}function tt(e,t,n,o){let r=e.filter(f=>f.type==="section"),i=n>0||r.some(f=>f.height!==void 0||f.rake!==void 0||(f.elevation??0)>0);if(!r.length||!i||!t){for(let f of o)f.eyeHeightM=n+Y;return}let s=new Array(o.length),l=new Map;for(let f of r)l.has(f.id)||l.set(f.id,f);let u=new Map,a=new Map;for(let f=0;f<o.length;f++){let b=o[f],y=(b.sectionId?l.get(b.sectionId)??r.find(g=>g.logicalSectionId===b.sectionId&&W({x:b.x,y:b.y},g.outline,g.holes)):void 0)??r.find(g=>W({x:b.x,y:b.y},g.outline,g.holes))??null;if(s[f]=y,!y)continue;u.has(y.id)||u.set(y.id,Be(y,{floorBaseHeightM:n}));let m=a.get(y.id);m?m.push(f):a.set(y.id,[f])}let c=new Array(o.length).fill(void 0);for(let[f,b]of a){let p=u.get(f);if(!p)continue;let y=p.rake>0?Math.tan(p.rake*Math.PI/180):0,m=Ge(f,o,b,t);for(let g of m.rows){let w=g.blockDepth*K*y,v=p.height+w;for(let R of g.seatIndices)c[R]=v}}for(let f=0;f<o.length;f++){let b=o[f],p=s[f];if(!p){b.eyeHeightM=n+Y;continue}let y=u.get(p.id);b.eyeHeightM=(c[f]??y.height)+Y}}var ne=40;function $(e,t){let n=t?.freeText==="exclude",o=1/0,r=1/0,i=-1/0,s=-1/0,l=(a,c)=>{a<o&&(o=a),c<r&&(r=c),a>i&&(i=a),c>s&&(s=c)},u=a=>{if(Array.isArray(a))for(let c of a)!c||typeof c!="object"||l(c.x,c.y)};for(let a of lt(e))if(a.type==="row"){let c=new Map((a.overrides??[]).map(f=>[f.index,f]));ie(a).forEach((f,b)=>{let p=c.get(b);p?.skip||l(f.x+(p?.dx??0),f.y+(p?.dy??0))})}else if(a.type==="gaArea")u(a.points);else if(a.type==="section")u(a.outline);else if(a.type==="decorImage")l(a.x,a.y),l(a.x+a.width,a.y+a.height);else if(a.type==="shape")a.points&&a.points.length?u(a.points):a.x!=null&&a.y!=null&&a.width!=null&&a.height!=null&&(l(a.x,a.y),l(a.x+a.width,a.y+a.height));else if(a.type==="table"){let c=X+In,f=a.shape==="round"?(a.radius??40)+c:Math.max((a.width??80)/2,(a.height??50)/2)+c;l(a.center.x-f,a.center.y-f),l(a.center.x+f,a.center.y+f)}else if(a.type==="booth"){let c=Math.max(a.width,a.height)/2;l(a.center.x-c,a.center.y-c),l(a.center.x+c,a.center.y+c)}else if(a.type==="text"){if(n)continue;let c=ue(a);l(a.position.x,a.position.y),l(a.position.x+c.width,a.position.y+c.height)}for(let a of[e.referenceImage,e.backgroundImage]){if(!a)continue;let{center:c,width:f}=a;if(!c||!Number.isFinite(c.x)||!Number.isFinite(c.y)||!Number.isFinite(f))continue;let b=f*3/4;l(c.x-f/2,c.y-b/2),l(c.x+f/2,c.y+b/2)}if(!isFinite(o)){let a=e.focalPoint??{x:0,y:0};return{x:a.x-200,y:a.y-200,width:400,height:400}}return{x:o-ne,y:r-ne,width:i-o+ne*2,height:s-r+ne*2}}function ut(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}var ft=.08,Dn=.045;function ve(e){return`__floor__:${encodeURIComponent(e)}`}function dt(e,t,n){return{...e,objects:t,floors:void 0,...n?{focalPoint:n}:{},referenceImage:void 0,backgroundImage:void 0}}function Ln(e,t,n){let o=e.focalPoint??t.focalPoint;return o?o.x:n.x+n.width/2}function ht(e){let t=e.floors??[];if(!t.length)return[];let n=t.map(s=>$(dt(e,s.objects,s.focalPoint),{freeText:"exclude"})),r=Math.max(1,...n.map(s=>s.width))*ft,i=0;return t.map((s,l)=>{let u=n[l],a=i-(u.y+u.height);return i-=u.height+r,{floorId:s.id,label:s.name??s.id,level:l,levelBadge:l===0?"G":String(l),translation:{x:-Ln(s,e,u),y:a},bounds:u}})}function Fn(e,t,n,o){let r=t==="name"?e.label:e.levelBadge;if(!r)return[];let i=Math.max(1,n*Dn),s=e.bounds.x+e.translation.x,l=e.bounds.y+e.translation.y+i*.4,u=`floor-level-${e.floorId}`,a={type:"text",id:`${u}-text`,text:r,position:{x:s,y:l},fontSize:i,rotation:0,color:o,bold:!0};if(t==="name")return[a];let c=i*.95;return[{type:"shape",id:`${u}-badge`,kind:"ellipse",x:s-c*.35,y:l-c*.3,width:c*2,height:c*2,fill:"transparent",stroke:{color:o,width:Math.max(1,i*.09)},opacity:.8},a]}function Nn(e,t={}){let n=e.floors;if(!n||n.length<2)return e;let o=ht(e),r=[];n.forEach((a,c)=>{let{x:f,y:b}=o[c].translation;for(let p of a.objects)c>0&&p.type==="shape"&&p.role==="stage"||r.push(se(p,f,b))});let i={...e,objects:r,floors:void 0},s=$(i,{freeText:"exclude"}),l=Math.max(1,s.width,s.height),u=e.theme?.textColor??"#94a3b8";for(let a of o)r.push(...Fn(a,t.labelStyle??"number",l,u));return{...i,objects:r,referenceImage:void 0,backgroundImage:void 0}}function jn(e){if(!e.floors||e.floors.length<2)return e;let t=!e.zones?.length,n=new Set,o=e.floors.flatMap(i=>i.objects.flatMap(s=>{if(s.type==="shape"&&s.role==="stage"){let l=JSON.stringify([s.kind,s.x,s.y,s.width,s.height,s.points,s.rotation??0,s.label,s.heightM,s.eventConfigurationIds]);if(n.has(l))return[];n.add(l)}return t&&s.type==="section"?[{...s,zone:ve(i.id)}]:[s]})),r=t?e.floors.map(i=>({id:ve(i.id),label:i.name,focalPoint:{...i.focalPoint}})):e.zones;return{...e,objects:o,zones:r,floors:void 0,referenceImage:void 0,backgroundImage:ut(e)}}function Bn(e){let t=e.floors;if(!t?.length)return null;let n=t.find(i=>i.objects.some(s=>s.type==="shape"&&s.role==="stage"));if(n)return n.id;let o=t[0],r=-1;for(let i of t){let s=$(dt(e,i.objects,i.focalPoint),{freeText:"exclude"}),l=s.width*s.height;l>r&&(r=l,o=i)}return o.id}var Hn=640;function Xn(e,t){return(e.floors?.length??0)<2?null:"all"}function Un(e,t=0){let n=Math.max(1,e.width,e.height),o={x:e.x+e.width/2,y:e.y+e.height/2},r=n*1.55,i=Math.max(n*.82,Math.max(0,t)+n*.45);return{target:o,distance:r,height:i,focalLength:Math.hypot(r,i),yawRad:-8*Math.PI/180}}function ae(e,t,n=0){let o=t.x-e.target.x,r=t.y-e.target.y,i=Math.cos(e.yawRad),s=Math.sin(e.yawRad),l=o*i-r*s,a=o*s+r*i-e.distance,c=n-e.height,f=Math.hypot(e.distance,e.height),b=(-e.distance*a-e.height*c)/f,p=(-e.height*a+e.distance*c)/f,y=Math.max(f*.08,b),m=e.focalLength/y;return{x:e.target.x+l*m,y:e.target.y-p*m,depth:y,scale:m}}function Gn(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 Kn(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,o=-e.b/t,r=-e.c/t,i=e.a/t;return{a:n,b:o,c:r,d:i,e:-(n*e.e+r*e.f),f:-(o*e.e+i*e.f)}}function Yn(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 Vn(e,t,n=()=>0){let o=ae(e,t,n(t)),r={x:t.x+1,y:t.y},i={x:t.x,y:t.y+1},s=ae(e,r,n(r)),l=ae(e,i,n(i)),u=s.x-o.x,a=s.y-o.y,c=l.x-o.x,f=l.y-o.y;return{a:u,b:a,c,d:f,e:o.x-u*t.x-c*t.y,f:o.y-a*t.x-f*t.y}}function zn(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 mt=9;function Wn(e){if(e.kind==="circle")return{hx:e.r,hy:e.r};let t=e.width/2,n=e.height/2,o=e.rotation??0;if(!o)return{hx:t,hy:n};let r=o*Math.PI/180,i=Math.abs(Math.cos(r)),s=Math.abs(Math.sin(r));return{hx:t*i+n*s,hy:t*s+n*i}}function $n(e,t,n){let o=t-e.seat.x,r=n-e.seat.y;if(e.shape.kind==="circle")return o*o+r*r<=e.shape.r*e.shape.r;let i=e.shape.rotation??0,s=o,l=r;if(i){let u=-i*Math.PI/180,a=Math.cos(u),c=Math.sin(u);s=o*a-r*c,l=o*c+r*a}return Math.abs(s)<=e.shape.width/2&&Math.abs(l)<=e.shape.height/2}function Qn(e,t,n,o,r){if(e.shape.kind==="circle"){let y=Math.min(Math.max(e.seat.x,t),o),m=Math.min(Math.max(e.seat.y,n),r),g=e.seat.x-y,w=e.seat.y-m;return g*g+w*w<=e.shape.r*e.shape.r}let i=e.shape.rotation??0;if(!i)return e.seat.x-e.hx<=o&&e.seat.x+e.hx>=t&&e.seat.y-e.hy<=r&&e.seat.y+e.hy>=n;let s=i*Math.PI/180,l=Math.cos(s),u=Math.sin(s),a=e.shape.width/2,c=e.shape.height/2,f=[[-a,-c],[a,-c],[a,c],[-a,c]].map(([y,m])=>[e.seat.x+y*l-m*u,e.seat.y+y*u+m*l]),b=[[t,n],[o,n],[o,r],[t,r]],p=[[1,0],[0,1],[l,u],[-u,l]];for(let[y,m]of p){let g=1/0,w=-1/0;for(let[C,M]of f){let d=C*y+M*m;d<g&&(g=d),d>w&&(w=d)}let v=1/0,R=-1/0;for(let[C,M]of b){let d=C*y+M*m;d<v&&(v=d),d>R&&(R=d)}if(w<v||R<g)return!1}return!0}function qn(e,t={}){let n=t.seatRadius??mt,o=e.length,r=new Array(o),i=1/0,s=1/0,l=-1/0,u=-1/0,a=0;for(let d=0;d<o;d++){let h=e[d],S=t.shapeOf?.(h)??{kind:"circle",r:n},{hx:x,hy:I}=Wn(S);r[d]={seat:h,shape:S,hx:x,hy:I},h.x-x<i&&(i=h.x-x),h.y-I<s&&(s=h.y-I),h.x+x>l&&(l=h.x+x),h.y+I>u&&(u=h.y+I),x>a&&(a=x),I>a&&(a=I)}o===0&&(i=0,s=0,l=0,u=0);let c=a>0?a*4:1,f=Math.max(l-i,0),b=Math.max(u-s,0),p=Math.max(64,t.maxCells??o*4),y=c,m=Math.max(1,Math.ceil(f/y)||1),g=Math.max(1,Math.ceil(b/y)||1);for(;m*g>p&&(m>1||g>1);)y*=2,m=Math.max(1,Math.ceil(f/y)||1),g=Math.max(1,Math.ceil(b/y)||1);let w=m*g,v=new Int32Array(w+1),R=0;for(let d=0;d<o;d++){let h=r[d],S=F(Math.floor((h.seat.x-h.hx-i)/y),0,m-1),x=F(Math.floor((h.seat.x+h.hx-i)/y),0,m-1),I=F(Math.floor((h.seat.y-h.hy-s)/y),0,g-1),A=F(Math.floor((h.seat.y+h.hy-s)/y),0,g-1);for(let P=I;P<=A;P++)for(let k=S;k<=x;k++)v[P*m+k+1]++,R++}for(let d=0;d<w;d++)v[d+1]+=v[d];let C=new Int32Array(R),M=v.slice(0,w);for(let d=0;d<o;d++){let h=r[d],S=F(Math.floor((h.seat.x-h.hx-i)/y),0,m-1),x=F(Math.floor((h.seat.x+h.hx-i)/y),0,m-1),I=F(Math.floor((h.seat.y-h.hy-s)/y),0,g-1),A=F(Math.floor((h.seat.y+h.hy-s)/y),0,g-1);for(let P=I;P<=A;P++)for(let k=S;k<=x;k++){let E=P*m+k;C[M[E]++]=d}}return{seats:e,entries:r,minX:i,minY:s,cell:y,cols:m,rows:g,cellStart:v,items:C,stamp:new Int32Array(o),epoch:0}}function Zn(e,t,n={}){let{cols:o,rows:r,cell:i,minX:s,minY:l,cellStart:u,items:a,entries:c}=e,f=Math.floor((t.x-s)/i),b=Math.floor((t.y-l)/i);if(f<0||b<0||f>=o||b>=r)return null;let p=b*o+f,y=u[p+1],m=-1,g=1/0;for(let w=u[p];w<y;w++){let v=a[w],R=c[v];if(n.filter&&!n.filter(R.seat.id,R.seat)||!$n(R,t.x,t.y))continue;let C=t.x-R.seat.x,M=t.y-R.seat.y,d=C*C+M*M;(d<g||d===g&&v<m)&&(g=d,m=v)}return m<0?null:c[m].seat.id}function Jn(e,t,n,o={}){if(!(n>0))return null;let{cols:r,rows:i,cell:s,minX:l,minY:u,cellStart:a,items:c,entries:f}=e,b=Math.max(0,Math.floor((t.x-n-l)/s)),p=Math.min(r-1,Math.floor((t.x+n-l)/s)),y=Math.max(0,Math.floor((t.y-n-u)/s)),m=Math.min(i-1,Math.floor((t.y+n-u)/s));if(b>p||y>m)return null;let g=-1,w=n*n,v=e.stamp,R=++e.epoch;for(let C=y;C<=m;C++){let M=C*r;for(let d=b;d<=p;d++){let h=M+d,S=a[h+1];for(let x=a[h];x<S;x++){let I=c[x];if(v[I]===R)continue;v[I]=R;let A=f[I];if(o.filter&&!o.filter(A.seat.id,A.seat))continue;let P=t.x-A.seat.x,k=t.y-A.seat.y,E=P*P+k*k;(E<w||E===w&&I<g)&&(w=E,g=I)}}}return g<0?null:f[g].seat.id}function eo(e,t,n={}){let o=Math.min(t.x,t.x+t.width),r=Math.max(t.x,t.x+t.width),i=Math.min(t.y,t.y+t.height),s=Math.max(t.y,t.y+t.height),l=n.mode??"center",{cols:u,rows:a,cell:c,minX:f,minY:b,cellStart:p,items:y,entries:m}=e,g=Math.max(0,Math.floor((o-f)/c)),w=Math.min(u-1,Math.floor((r-f)/c)),v=Math.max(0,Math.floor((i-b)/c)),R=Math.min(a-1,Math.floor((s-b)/c));if(g>w||v>R)return[];let C=[],M=e.stamp,d=++e.epoch;for(let h=v;h<=R;h++){let S=h*u;for(let x=g;x<=w;x++){let I=S+x,A=p[I+1];for(let P=p[I];P<A;P++){let k=y[P];if(M[k]===d)continue;M[k]=d;let E=m[k];if(n.filter&&!n.filter(E.seat.id,E.seat))continue;(l==="center"?E.seat.x>=o&&E.seat.x<=r&&E.seat.y>=i&&E.seat.y<=s:Qn(E,o,i,r,s))&&C.push(k)}}}return C.sort((h,S)=>h-S),C.map(h=>m[h].seat.id)}function to(e){let t=e.cols*e.rows,n=0,o=0;for(let i=0;i<t;i++){let s=e.cellStart[i+1]-e.cellStart[i];s>0&&n++,s>o&&(o=s)}let r=e.items.length;return{cell:e.cell,cols:e.cols,rows:e.rows,cells:t,occupiedCells:n,refs:r,maxPerCell:o,meanPerOccupiedCell:n?r/n:0}}0&&(module.exports={AUTOMATIC_ROUND_TABLE_RADIUS_MAX,AUTOMATIC_ROUND_TABLE_RADIUS_MIN,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,allObjects,applyAffine,automaticRoundTableRadius,buildAisleHoles,buildSeatIndex,buildSectionShell,chartBounds,combinedFloorZoneId,composeAffine,createPerspectiveCamera,cubicPoint,decomposeAffineLinear,distanceToRings,distributeAlongCubic,expandBooth,expandChart,expandRow,expandRowSlots,expandTable,expandTableSlots,floorObjects,floorStackPlacements,floorsOf,gridStats,hitTest,initialFloorMode,invertAffine,layoutCombinedFloorPlan,layoutFloorStack,mainFloorId,nearestWithin,objectCenter,owningSectionForObject,perspectiveTangentAffine,pointInPolygon,pointInPolygonWithHoles,polygonArea,polygonInscribedAnchor,polygonLabelPoint,polygonNetArea,projectPerspectivePoint,queryRect,resolveSegmentedRowGroups,rowInventoryCount,rowSeatPositions,segmentedRowComponentSeats,segmentedRowComponents,segmentedRowSeatTotal,smoothCubicThroughMiddle,stackFloors,tableInventoryCount,tableSeatCountsBySide,textLayoutMetrics,translateObject,usableHoles});
@@ -1,8 +1,8 @@
1
- import { P as Point, t as CubicPath, u as TextObject } from '../../types-BbqhOJ5L.cjs';
2
- export { F as FloorLabelStyle } from '../../types-BbqhOJ5L.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-DaEXRHYs.cjs';
4
- export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-BbHdWqJy.cjs';
5
- import { E as ExpandedSeat } from '../../renderer-DEnthjgs.cjs';
1
+ import { P as Point, t as CubicPath, u as TextObject } from '../../types-DWx32xXH.cjs';
2
+ export { F as FloorLabelStyle } from '../../types-DWx32xXH.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-CB8g2Fs0.cjs';
4
+ export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-CDvvJJ4-.cjs';
5
+ import { E as ExpandedSeat } from '../../renderer-Ccv8ZDZS.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, t as CubicPath, u as TextObject } from '../../types-BbqhOJ5L.js';
2
- export { F as FloorLabelStyle } from '../../types-BbqhOJ5L.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-ExOrUwtX.js';
4
- export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-oVUtwW87.js';
5
- import { E as ExpandedSeat } from '../../renderer-CuXYGgR3.js';
1
+ import { P as Point, t as CubicPath, u as TextObject } from '../../types-DWx32xXH.js';
2
+ export { F as FloorLabelStyle } from '../../types-DWx32xXH.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-BLtQ-KV0.js';
4
+ export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-I8eYUQft.js';
5
+ import { E as ExpandedSeat } from '../../renderer-njHDbIqI.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 U,b as V,c as W,d as X,e as Y,f as Z,g as _,h as $,i as fo,j as mo,k as po,l as to,m as xo,n as ao,o as bo,p as co,q as go,r as ho,s as io,t as jo,u as ko}from"../../chunk-QEPYNCBJ.js";import{a as oo,b as ro,c as eo}from"../../chunk-IW7QZIMF.js";import"../../chunk-5BMXWOE7.js";import{$ as u,Aa as w,Ba as y,Ca as z,D as c,Da as A,E as d,Ea as B,F as g,Fa as C,G as h,Ga as D,H as i,Ha as E,I as j,Ia as F,J as k,Ja as G,K as l,Ka as H,L as n,La as I,Ma as J,Na as K,Oa as L,Pa as M,Qa as N,Ra as O,Sa as P,Ta as Q,Ua as R,Va as S,Wa as T,Z as q,_ as s,aa 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-VAI2VDQR.js";import"../../chunk-5ITK5236.js";import"../../chunk-CRCGO52K.js";export{ro as AUTOMATIC_ROUND_TABLE_RADIUS_MAX,oo as AUTOMATIC_ROUND_TABLE_RADIUS_MIN,fo as DEFAULT_SEAT_RADIUS,U as FLOOR_STACK_GAP_RATIO,_ as FLOOR_STACK_MIN_SURFACE_PX,w 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,P as allObjects,go as applyAffine,eo as automaticRoundTableRadius,i as buildAisleHoles,mo as buildSeatIndex,h as buildSectionShell,T as chartBounds,V as combinedFloorZoneId,io as composeAffine,bo as createPerspectiveCamera,c as cubicPoint,ko as decomposeAffineLinear,j as distanceToRings,g as distributeAlongCubic,G as expandBooth,S as expandChart,B as expandRow,A as expandRowSlots,F as expandTable,D as expandTableSlots,O as floorObjects,W as floorStackPlacements,N as floorsOf,ao as gridStats,po as hitTest,$ as initialFloorMode,ho as invertAffine,Y as layoutCombinedFloorPlan,X as layoutFloorStack,Z as mainFloorId,to as nearestWithin,L as objectCenter,M as owningSectionForObject,jo as perspectiveTangentAffine,H as pointInPolygon,J as pointInPolygonWithHoles,k as polygonArea,n as polygonInscribedAnchor,K as polygonLabelPoint,l as polygonNetArea,co as projectPerspectivePoint,xo as queryRect,v as resolveSegmentedRowGroups,z as rowInventoryCount,y as rowSeatPositions,s as segmentedRowComponentSeats,q as segmentedRowComponents,u as segmentedRowSeatTotal,d as smoothCubicThroughMiddle,R as stackFloors,E as tableInventoryCount,C as tableSeatCountsBySide,b as textLayoutMetrics,Q as translateObject,I as usableHoles};
1
+ import{a as U,b as V,c as W,d as X,e as Y,f as Z,g as _,h as $,i as fo,j as mo,k as po,l as to,m as xo,n as ao,o as bo,p as co,q as go,r as ho,s as io,t as jo,u as ko}from"../../chunk-GLGXP5I7.js";import{a as oo,b as ro,c as eo}from"../../chunk-N4J4CT6P.js";import"../../chunk-5BMXWOE7.js";import{$ as u,Aa as w,Ba as y,Ca as z,D as c,Da as A,E as d,Ea as B,F as g,Fa as C,G as h,Ga as D,H as i,Ha as E,I as j,Ia as F,J as k,Ja as G,K as l,Ka as H,L as n,La as I,Ma as J,Na as K,Oa as L,Pa as M,Qa as N,Ra as O,Sa as P,Ta as Q,Ua as R,Va as S,Wa as T,Z as q,_ as s,aa 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-UISTXRO5.js";import"../../chunk-5ITK5236.js";import"../../chunk-CRCGO52K.js";export{ro as AUTOMATIC_ROUND_TABLE_RADIUS_MAX,oo as AUTOMATIC_ROUND_TABLE_RADIUS_MIN,fo as DEFAULT_SEAT_RADIUS,U as FLOOR_STACK_GAP_RATIO,_ as FLOOR_STACK_MIN_SURFACE_PX,w 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,P as allObjects,go as applyAffine,eo as automaticRoundTableRadius,i as buildAisleHoles,mo as buildSeatIndex,h as buildSectionShell,T as chartBounds,V as combinedFloorZoneId,io as composeAffine,bo as createPerspectiveCamera,c as cubicPoint,ko as decomposeAffineLinear,j as distanceToRings,g as distributeAlongCubic,G as expandBooth,S as expandChart,B as expandRow,A as expandRowSlots,F as expandTable,D as expandTableSlots,O as floorObjects,W as floorStackPlacements,N as floorsOf,ao as gridStats,po as hitTest,$ as initialFloorMode,ho as invertAffine,Y as layoutCombinedFloorPlan,X as layoutFloorStack,Z as mainFloorId,to as nearestWithin,L as objectCenter,M as owningSectionForObject,jo as perspectiveTangentAffine,H as pointInPolygon,J as pointInPolygonWithHoles,k as polygonArea,n as polygonInscribedAnchor,K as polygonLabelPoint,l as polygonNetArea,co as projectPerspectivePoint,xo as queryRect,v as resolveSegmentedRowGroups,z as rowInventoryCount,y as rowSeatPositions,s as segmentedRowComponentSeats,q as segmentedRowComponents,u as segmentedRowSeatTotal,d as smoothCubicThroughMiddle,R as stackFloors,E as tableInventoryCount,C as tableSeatCountsBySide,b as textLayoutMetrics,Q as translateObject,I as usableHoles};
@@ -1,7 +1,7 @@
1
- import { A as AccessibilityType } from '../../types-BbqhOJ5L.cjs';
1
+ import { A as AccessibilityType } from '../../types-DWx32xXH.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-QWHMvOej.cjs';
4
- import '../../renderer-DEnthjgs.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-Bl1Kq_XO.cjs';
4
+ import '../../renderer-Ccv8ZDZS.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-BbqhOJ5L.js';
1
+ import { A as AccessibilityType } from '../../types-DWx32xXH.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-CZNfpB1H.js';
4
- import '../../renderer-CuXYGgR3.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-BMSbVkwu.js';
4
+ import '../../renderer-njHDbIqI.js';
5
5
 
6
6
  /**
7
7
  * Rendering constants that quality inspection must agree with.
@@ -1 +1 @@
1
- import{a as J,b as K,c as L}from"../../chunk-YPESNMTC.js";import{A as i,B as j,C as k,D as l,E as n,F as q,G as s,H as u,I as v,J as w,K as y,L as z,M as A,N as B,O as C,P as D,Q as E,R as F,S as G,T as H,U as I,m as o,n as r,o as e,p as f,q as m,r as p,s as t,t as x,u as a,v as b,w as c,x as d,y as g,z as h}from"../../chunk-Z43H6AWN.js";import"../../chunk-JBOTRSMY.js";export{n as ACCESS_GLYPH_PATH,k as ACCESS_GLYPH_VIEWBOX,l as ACCESS_TYPE_GLYPH_PATHS,y as AUTHORED_LABEL_MIN_CONTRAST,f as BLOCK_LABEL_FILL_RATIO,e as BOOTH_LABEL_FONT_SIZE,g as DARK_BOOKABLE_LABEL_INK,G as DARK_NEUTRAL_SECTION_FILL,t as GA_CAPACITY_LABEL_FONT_SIZE,x as GA_FILL_OPACITY,p as GA_LABEL_FONT_SIZE,d as LARGE_TEXT_CONTRAST,h as LIGHT_BOOKABLE_LABEL_INK,F as LIGHT_NEUTRAL_SECTION_FILL,K as MIN_POINTER_TARGET_PX,a as MIN_VISIBLE_BOOKABLE_LABEL_PX,J as RENDERED_QUALITY_REPORT_VERSION,r as ROW_LABEL_FONT_SIZE,o as SEAT_LABEL_FONT_SIZE,c as SECTION_NAME_CONTRAST,b as SMALL_TEXT_CONTRAST,D as accessGlyphInk,q as accessGlyphPath,s as accessibilityRingInk,m as blockLabelFontSize,u as bookableMarkerLabel,z as categoryBandInk,w as compositeHexOver,C as explicitOrStateAwareLabelInk,L as inspectRenderedQualityEvidence,j as isBookableLabelLegibleAtScale,E as isLightFill,A as mapSeparatingInk,i as minimumTextContrast,H as neutralSectionFill,v as renderedTextContrast,B as stateAwareBookableLabelInk,I as summarizeLabelInkContrast};
1
+ import{a as J,b as K,c as L}from"../../chunk-KFVUBZMK.js";import{A as g,B as h,C as i,D as j,E as k,F as l,G as n,H as q,I as s,J as u,K as v,L as w,M as y,N as z,O as A,P as B,Q as C,R as D,S as E,T as F,U as G,V as H,W as I,o,p as r,q as e,r as f,s as m,t as p,u as t,v as x,w as a,x as b,y as c,z as d}from"../../chunk-HYEZPOZU.js";import"../../chunk-JBOTRSMY.js";export{n as ACCESS_GLYPH_PATH,k as ACCESS_GLYPH_VIEWBOX,l as ACCESS_TYPE_GLYPH_PATHS,y as AUTHORED_LABEL_MIN_CONTRAST,f as BLOCK_LABEL_FILL_RATIO,e as BOOTH_LABEL_FONT_SIZE,g as DARK_BOOKABLE_LABEL_INK,G as DARK_NEUTRAL_SECTION_FILL,t as GA_CAPACITY_LABEL_FONT_SIZE,x as GA_FILL_OPACITY,p as GA_LABEL_FONT_SIZE,d as LARGE_TEXT_CONTRAST,h as LIGHT_BOOKABLE_LABEL_INK,F as LIGHT_NEUTRAL_SECTION_FILL,K as MIN_POINTER_TARGET_PX,a as MIN_VISIBLE_BOOKABLE_LABEL_PX,J as RENDERED_QUALITY_REPORT_VERSION,r as ROW_LABEL_FONT_SIZE,o as SEAT_LABEL_FONT_SIZE,c as SECTION_NAME_CONTRAST,b as SMALL_TEXT_CONTRAST,D as accessGlyphInk,q as accessGlyphPath,s as accessibilityRingInk,m as blockLabelFontSize,u as bookableMarkerLabel,z as categoryBandInk,w as compositeHexOver,C as explicitOrStateAwareLabelInk,L as inspectRenderedQualityEvidence,j as isBookableLabelLegibleAtScale,E as isLightFill,A as mapSeparatingInk,i as minimumTextContrast,H as neutralSectionFill,v as renderedTextContrast,B as stateAwareBookableLabelInk,I as summarizeLabelInkContrast};
@@ -1,5 +1,5 @@
1
- import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-BbqhOJ5L.cjs';
2
- export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-BAyWebjw.cjs';
1
+ import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-DWx32xXH.cjs';
2
+ export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-QwEebl3k.cjs';
3
3
 
4
4
  type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-BbqhOJ5L.js';
2
- export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-CqLiEH9C.js';
1
+ import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-DWx32xXH.js';
2
+ export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-dy3XQVWN.js';
3
3
 
4
4
  type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { d as ResolvedSeatConfidenceEvidence } from '../types-BbqhOJ5L.cjs';
1
+ import { d as ResolvedSeatConfidenceEvidence } from '../types-DWx32xXH.cjs';
2
2
 
3
3
  interface SeatConfidenceDisclosure {
4
4
  headline: string;
@@ -1,4 +1,4 @@
1
- import { d as ResolvedSeatConfidenceEvidence } from '../types-BbqhOJ5L.js';
1
+ import { d as ResolvedSeatConfidenceEvidence } from '../types-DWx32xXH.js';
2
2
 
3
3
  interface SeatConfidenceDisclosure {
4
4
  headline: string;