@seatlayer/core 0.74.0 → 0.75.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/ar-JOSU54ZZ.js +1 -0
- package/dist/be-UDIVAZGH.js +1 -0
- package/dist/bg-AJX2SNK4.js +1 -0
- package/dist/ca-MC23KMQH.js +1 -0
- package/dist/{categoryInventory-Bcmnr6ZH.d.ts → categoryInventory-C5I2U-EM.d.ts} +1 -1
- package/dist/{categoryInventory-DueSAIBX.d.cts → categoryInventory-DFp26meo.d.cts} +1 -1
- package/dist/chunk-KHFCTR3V.js +1 -0
- package/dist/{chunk-UX67GDLV.js → chunk-N3DPHRJ3.js} +1 -1
- package/dist/{chunk-JLYR66MT.js → chunk-OGIAQX62.js} +1 -1
- package/dist/chunk-QUOAQQMP.js +1 -0
- package/dist/chunk-SPM2LMKI.js +1 -0
- package/dist/{chunk-N5NRM4NW.js → chunk-TN6DFYEV.js} +1 -1
- package/dist/{chunk-ZMYRXJOA.js → chunk-UVAV3E7K.js} +1 -1
- package/dist/chunk-X2GZ5O7C.js +1 -0
- package/dist/{chunk-BAWUBGWY.js → chunk-YACNGDTE.js} +1 -1
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +4 -4
- package/dist/core/chart-ops/index.d.ts +4 -4
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.d.cts +4 -4
- package/dist/core/inventory/index.d.ts +4 -4
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.cjs +1 -1
- package/dist/core/layout/index.d.cts +5 -5
- package/dist/core/layout/index.d.ts +5 -5
- package/dist/core/layout/index.js +1 -1
- package/dist/core/quality/index.d.cts +3 -3
- package/dist/core/quality/index.d.ts +3 -3
- package/dist/core/render-assets/index.d.cts +1 -1
- package/dist/core/render-assets/index.d.ts +1 -1
- package/dist/core/seatConfidence.d.cts +1 -1
- package/dist/core/seatConfidence.d.ts +1 -1
- package/dist/core/sections/index.cjs +1 -1
- package/dist/core/sections/index.d.cts +5 -5
- package/dist/core/sections/index.d.ts +5 -5
- package/dist/core/sections/index.js +1 -1
- package/dist/cs-Q4OEV3NE.js +1 -0
- package/dist/cy-TPDRMPTK.js +1 -0
- package/dist/da-U6XXTCII.js +1 -0
- package/dist/de-ZV54ZWHR.js +1 -0
- package/dist/el-5VQKNNQV.js +1 -0
- package/dist/es-Y3BNIAEW.js +1 -0
- package/dist/et-HCCA6TE3.js +1 -0
- package/dist/{eventConfigurations-C7YAqkFR.d.ts → eventConfigurations-BQGuLLv0.d.ts} +1 -1
- package/dist/{eventConfigurations-DwXdrjqj.d.cts → eventConfigurations-DAaOaKJK.d.cts} +1 -1
- package/dist/fa-SZ3EAODM.js +1 -0
- package/dist/fi-S34TMT35.js +1 -0
- package/dist/fr-RQIXNHQ5.js +1 -0
- package/dist/he-PPNABESI.js +1 -0
- package/dist/hr-IZOGRWC5.js +1 -0
- package/dist/hu-K7EOGFAB.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +148 -14
- package/dist/index.d.ts +148 -14
- package/dist/index.js +1 -1
- package/dist/it-PD5WJDNR.js +1 -0
- package/dist/ja-3CFZ2KK6.js +1 -0
- package/dist/ku-MQJTRLDV.js +1 -0
- package/dist/{labeling-iugoy25P.d.cts → labeling-BZp91HiS.d.cts} +1 -1
- package/dist/{labeling-BUCj-kHU.d.ts → labeling-Duul2sao.d.ts} +1 -1
- package/dist/{layout-Dv3R0Mpw.d.ts → layout-DGbWo5fV.d.ts} +12 -3
- package/dist/{layout-DPJX6D9k.d.cts → layout-Gkx3fo5_.d.cts} +12 -3
- package/dist/localeLoaders-ETY2H7H3.js +1 -0
- package/dist/lt-6Q5DJHXR.js +1 -0
- package/dist/lv-BQ3LWGW6.js +1 -0
- package/dist/nl-ZPVH2YGT.js +1 -0
- package/dist/no-R7I6YW7N.js +1 -0
- package/dist/openPanorama-6FMXAJ6O.js +20 -0
- package/dist/pl-EU2O5DYI.js +1 -0
- package/dist/pt-UMSFOY5P.js +1 -0
- package/dist/{renderedQuality-CfonzUpl.d.ts → renderedQuality-BYhJ3Cer.d.ts} +1 -1
- package/dist/{renderedQuality-CSHrmnHf.d.cts → renderedQuality-CEPse8ir.d.cts} +1 -1
- package/dist/{renderer-Dn4Plcv9.d.cts → renderer-BlLKrW-U.d.ts} +17 -1
- package/dist/{renderer-C5avrVLy.d.ts → renderer-Cv_gzYvT.d.cts} +17 -1
- package/dist/ro-GR35LU2L.js +1 -0
- package/dist/ru-CXYAZQEV.js +1 -0
- package/dist/{sections-DhJ7TukF.d.cts → sections-CRSGPI3T.d.cts} +1 -1
- package/dist/{sections-uV7vqDHj.d.ts → sections-DIVvr8QN.d.ts} +1 -1
- package/dist/{segmentedRowModel-DgSEzAYd.d.ts → segmentedRowModel-CD-YT9bT.d.ts} +1 -1
- package/dist/{segmentedRowModel-DWOjcPrU.d.cts → segmentedRowModel-CvyOS6Bx.d.cts} +1 -1
- package/dist/sk-GUB52YMC.js +1 -0
- package/dist/sl-J7N6LDON.js +1 -0
- package/dist/sr-A7GQEH7K.js +1 -0
- package/dist/sv-ARLHHSPZ.js +1 -0
- package/dist/{ticketRestrictions-JT87K45q.d.cts → ticketRestrictions-C31mrE97.d.cts} +2 -2
- package/dist/{ticketRestrictions-DIh61MqE.d.ts → ticketRestrictions-DXO2eckD.d.ts} +2 -2
- package/dist/tr-6TE3U7WM.js +1 -0
- package/dist/{types-Dx4jA8aI.d.cts → types-BVRza86Q.d.cts} +15 -0
- package/dist/{types-Dx4jA8aI.d.ts → types-BVRza86Q.d.ts} +15 -0
- package/dist/uk-RMVPSRMH.js +1 -0
- package/dist/view3d/crossfade/panorama.cjs +1 -1
- package/dist/view3d/crossfade/panorama.d.cts +20 -2
- package/dist/view3d/crossfade/panorama.d.ts +20 -2
- package/dist/view3d/crossfade/panorama.js +1 -1
- package/dist/view3d/index.cjs +31 -31
- package/dist/view3d/index.d.cts +30 -3
- package/dist/view3d/index.d.ts +30 -3
- package/dist/view3d/index.js +25 -25
- package/dist/view3d/scene/scene.worker.cjs +1 -1
- package/dist/view3d/scene/scene.worker.js +1 -1
- package/dist/zh-Hans-SNO4DA32.js +1 -0
- package/dist/zh-Hant-TVIKBD5S.js +1 -0
- package/package.json +2 -2
- package/dist/ar-JP4VPYJ2.js +0 -1
- package/dist/be-ROTFZNMH.js +0 -1
- package/dist/bg-YMQ3B5NS.js +0 -1
- package/dist/ca-L2OMCHWL.js +0 -1
- package/dist/chunk-52MZJZMW.js +0 -1
- package/dist/chunk-5JB4VW6B.js +0 -1
- package/dist/chunk-6TIKEDC4.js +0 -1
- package/dist/chunk-BLPBTW6I.js +0 -1
- package/dist/chunk-KN7GLEAI.js +0 -1
- package/dist/chunk-YFV4DSSX.js +0 -1
- package/dist/cs-CHBOZAYY.js +0 -1
- package/dist/cy-ZIVBYZBX.js +0 -1
- package/dist/da-PUY5IIER.js +0 -1
- package/dist/de-ILFIEU77.js +0 -1
- package/dist/el-5EG3QS5T.js +0 -1
- package/dist/es-YXZQB5VZ.js +0 -1
- package/dist/et-FZIUC4FC.js +0 -1
- package/dist/fa-KKBNUDRE.js +0 -1
- package/dist/fi-B6JSP5Z5.js +0 -1
- package/dist/fr-T5LHFRKG.js +0 -1
- package/dist/he-JF4HU75D.js +0 -1
- package/dist/hr-S5OXZ3NI.js +0 -1
- package/dist/hu-ZZDYG6ZF.js +0 -1
- package/dist/it-A5VCFTQP.js +0 -1
- package/dist/ja-PAJD5HFJ.js +0 -1
- package/dist/ku-KV2AIB6I.js +0 -1
- package/dist/localeLoaders-VULFUGJH.js +0 -1
- package/dist/lt-OSFNYQ2L.js +0 -1
- package/dist/lv-5INNWEN5.js +0 -1
- package/dist/nl-YOLY3DXM.js +0 -1
- package/dist/no-C5MG5NPH.js +0 -1
- package/dist/openPanorama-HGRYMWKC.js +0 -20
- package/dist/pl-ERGM2HA3.js +0 -1
- package/dist/pt-S6SBTHES.js +0 -1
- package/dist/ro-NQ4LIATX.js +0 -1
- package/dist/ru-ICFP6U3S.js +0 -1
- package/dist/sk-VYH6WIZ2.js +0 -1
- package/dist/sl-AA54VE5P.js +0 -1
- package/dist/sr-Z27ZL5ZE.js +0 -1
- package/dist/sv-BT4MNMB5.js +0 -1
- package/dist/tr-3TSE3BBR.js +0 -1
- package/dist/uk-YD2PBENU.js +0 -1
- package/dist/zh-Hans-VPQE6LWU.js +0 -1
- package/dist/zh-Hant-PUKPX45I.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-
|
|
2
|
-
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-
|
|
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-
|
|
4
|
-
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-
|
|
1
|
+
import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-BVRza86Q.cjs';
|
|
2
|
+
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-Cv_gzYvT.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-DFp26meo.cjs';
|
|
4
|
+
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-C31mrE97.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-
|
|
2
|
-
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-
|
|
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-
|
|
4
|
-
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-
|
|
1
|
+
import { P as Point, A as AccessibilityType, C as ChartDoc, R as RowObject } from '../../types-BVRza86Q.js';
|
|
2
|
+
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-BlLKrW-U.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-C5I2U-EM.js';
|
|
4
|
+
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-DXO2eckD.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Best-available seat selection — a PURE, fully unit-testable ranking function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as it,b as st,c as ct,d as lt,e as ut,f as pt,g as ft,h as mt,i as yt,j as dt,k as ht}from"../../chunk-
|
|
1
|
+
import{a as it,b as st,c as ct,d as lt,e as ut,f as pt,g as ft,h as mt,i as yt,j as dt,k as ht}from"../../chunk-OGIAQX62.js";import{a as bt,b as xt,c as Mt,d as gt,e as wt,f as B,h as N}from"../../chunk-X2GZ5O7C.js";import"../../chunk-FMZ6HLDH.js";import"../../chunk-QLDV5ZGA.js";import{a as H,b as V,c as Z,d as tt,e as et,f as ot,g as rt,h as nt,i as at}from"../../chunk-N3DPHRJ3.js";import"../../chunk-YACNGDTE.js";import{Da as S,Fa as v,Ga as P,I as O,Ia as j,Ja as _,Oa as I,x as R}from"../../chunk-QUOAQQMP.js";import"../../chunk-JBOTRSMY.js";import"../../chunk-CRCGO52K.js";function g(t){return t.floors?.length?t.floors.flatMap(e=>e.objects):t.objects}function k(t){return g(t).reduce((e,r)=>r.type==="row"?e+S(r):r.type==="table"?e+j(r):r.type==="gaArea"?e+Math.max(0,Math.floor(r.capacity)):r.type==="booth"?e+1:e,0)}function St(t){let e={};for(let o of t.categories??[])e[o.key]=0;let r=(o,n)=>{n>0&&(e[o]=(e[o]??0)+n)};for(let o of g(t))if(o.type==="row")for(let n of v(o))r(n.categoryKey,1);else if(o.type==="table")if(o.bookAsWhole||o.variableOccupancy)r(o.categoryKey,Math.max(0,Math.round(o.seatCount)));else for(let n of _(o))r(n.categoryKey,1);else o.type==="gaArea"?r(o.categoryKey,Math.max(0,Math.floor(o.capacity))):o.type==="booth"&&r(o.categoryKey,1);return e}function z(t){if(!t.template)return null;let e=g(t),r=e.filter(u=>u.type==="row"||u.type==="table"||u.type==="gaArea");if(!r.length)return null;let n=e.filter(u=>u.type==="booth").length+r.reduce((u,f)=>u+(f.type==="table"?2:1),0),i=k(t),c=Math.max(n+1,Math.min(5e4,i*4)),l=[.5,1,1.5,2].map(u=>O(Math.round(i*u),n,c));return{family:t.template.family,display:t.template.family.replace(/-/g," ").replace(/\b\w/g,u=>u.toUpperCase()),min:n,max:c,presets:["S","M","L","XL"].map((u,f)=>({size:u,seats:l[f]}))}}function A(t){let e=v(t);return e.length?R(e):{...t.origin}}function Pt(t,e){let r=z(t);if(!r)return structuredClone(t);let o=structuredClone(t),n=g(o),i=n.filter(a=>a.type==="row"||a.type==="table"||a.type==="gaArea"),c=n.filter(a=>a.type==="booth").length,l=Math.max(r.min,Math.min(r.max,Math.round(e))),u=l-c,f=i.map((a,s)=>{let m=a.type==="gaArea"?Math.max(0,Math.floor(a.capacity)):a.seatCount,x=a.type==="table"?2:1;return{object:a,index:s,current:m,minimum:x,value:x,fraction:0}}),K=f.reduce((a,s)=>a+s.minimum,0),w=Math.max(0,u-K),L=f.reduce((a,s)=>a+Math.max(1,s.current-s.minimum),0);for(let a of f){let s=w*Math.max(1,a.current-a.minimum)/L,m=Math.floor(s);a.value+=m,a.fraction=s-m}w=u-f.reduce((a,s)=>a+s.value,0),f.sort((a,s)=>s.fraction-a.fraction||a.index-s.index);for(let a=0;a<w;a++)f[a%f.length].value++;f.sort((a,s)=>a.index-s.index);for(let a of f)if(a.object.type==="row"){let s=A(a.object);a.object.seatCount=a.value;let m=A(a.object);a.object.origin.x+=s.x-m.x,a.object.origin.y+=s.y-m.y}else if(a.object.type==="table"){let s=a.object;if(s.seatCountsBySide){let m=["top","bottom","left","right"],x=P(s),F=m.reduce((p,y)=>p+x[y],0)||1,d=m.map((p,y)=>{let C=a.value*x[p]/F;return{side:p,index:y,value:Math.floor(C),fraction:C-Math.floor(C)}}),X=a.value-d.reduce((p,y)=>p+y.value,0);d.sort((p,y)=>y.fraction-p.fraction||p.index-y.index);for(let p=0;p<X;p++)d[p%d.length].value+=1;d.sort((p,y)=>p.index-y.index),s.seatCountsBySide={top:d[0].value,bottom:d[1].value,left:d[2].value,right:d[3].value},s.sides=m.filter(p=>s.seatCountsBySide[p]>0)}s.seatCount=a.value,s.overrides&&(s.overrides=s.overrides.filter(m=>m.index<a.value),s.overrides.length||delete s.overrides)}else a.object.capacity=a.value;return o.floors?.length&&(o.objects=o.floors[0].objects),o.template={family:o.template.family,targetSeats:l},o=N(o).doc,o.template={family:t.template.family,targetSeats:k(o)},o}var W=1,T=100;function J(t,e){if(!Number.isInteger(e)||e<W||e>T)return null;let r=t.rotation*Math.PI/180,o={x:Math.cos(r),y:Math.sin(r)},n={x:-o.y,y:o.x};return Array.from({length:e},(i,c)=>{let l=t.style==="intertwined"&&c%2===1?t.seatSpacing/2:0;return{type:"row",id:`__block_preview_${c}`,label:"",origin:{x:t.origin.x+n.x*c*t.rowGap+o.x*l,y:t.origin.y+n.y*c*t.rowGap+o.y*l},rotation:t.rotation,curve:t.curve,seatCount:t.seatsPerRow,seatSpacing:t.seatSpacing,categoryKey:"__preview__"}})}function G(t,e=t.rowCount){let r=J(t,e);return r?.length?I(r[r.length-1]):null}function It(t,e){if(!Number.isFinite(e.x)||!Number.isFinite(e.y)||t.rowGap<=0)return null;let r=G(t,1);if(!r)return null;let o=t.rotation*Math.PI/180,n={x:-Math.sin(o),y:Math.cos(o)},i=(e.x-r.x)*n.x+(e.y-r.y)*n.y,c=Math.max(W,Math.min(T,Math.round(i/t.rowGap)+1)),l=G(t,c);return l?{rowCount:c,edgePoint:l}:null}function Bt(t,e){return t.length!==e.rowCount?!1:[...t].sort((o,n)=>(o.rowBlockGeneration?.rowIndex??1/0)-(n.rowBlockGeneration?.rowIndex??1/0)).every((o,n)=>{let i=o.rowBlockGeneration;return i?.kind==="row-block-v1"&&i.groupId===e.groupId&&i.rowIndex===n&&i.signature===e.signature&&JSON.stringify(i)===JSON.stringify({...e,rowIndex:n})})}var h=1,b=300,D=330;function M(t){return t.seatCount>1?t.curve/(t.seatCount-1):0}function E(t,e){let r=t.rotation*Math.PI/180,o=M(t)*Math.PI/180,n,i;if(Math.abs(o)<1e-9)n=e*t.seatSpacing,i=0;else{let c=t.seatSpacing/(2*Math.sin(Math.abs(o)/2)),l=o*e;n=c*Math.sin(l),i=-c+c*Math.cos(l)}return{x:t.origin.x+n*Math.cos(r)-i*Math.sin(r),y:t.origin.y+n*Math.sin(r)+i*Math.cos(r)}}function Q(t,e,r){let o=(t??[]).map(n=>({...n,index:n.index+e})).filter(n=>n.index>=0&&n.index<r);return o.length?o:void 0}function U(t,e){if(t.path||!Number.isInteger(e)||e<h||e>b)return null;let r=M(t);return{...t,seatCount:e,curve:r*(e-1)}}function Y(t,e){if(t.path||!Number.isInteger(e)||e<h||e>b)return null;let r=M(t),o=t.seatCount-e,n=-o;return{...t,origin:E(t,o),rotation:B(t.rotation-r*o),seatCount:e,curve:r*(e-1),overrides:Q(t.overrides,n,e)}}function $(t,e=t.seatCount){let r=U(t,e);return r?E(r,e-1):null}function q(t,e=t.seatCount){return Y(t,e)?.origin??null}function kt(t,e){if(t.path||!Number.isFinite(e.x)||!Number.isFinite(e.y))return null;let r=M(t),o=Math.abs(r)<1e-9?b:Math.min(b,Math.floor(D/Math.abs(r))+1),n=null;for(let i=h;i<=Math.max(h,o);i+=1){let c=$(t,i);if(!c)continue;let l=Math.hypot(c.x-e.x,c.y-e.y),u=r*(i-1);(!n||l<n.distance||l===n.distance&&i<n.seatCount)&&(n={seatCount:i,curve:u,endpoint:c,distance:l})}return n}function Gt(t,e){if(t.path||!Number.isFinite(e.x)||!Number.isFinite(e.y))return null;let r=M(t),o=Math.abs(r)<1e-9?b:Math.min(b,Math.floor(D/Math.abs(r))+1),n=null;for(let i=h;i<=Math.max(h,o);i+=1){let c=q(t,i);if(!c)continue;let l=Math.hypot(c.x-e.x,c.y-e.y),u=r*(i-1);(!n||l<n.distance||l===n.distance&&i<n.seatCount)&&(n={seatCount:i,curve:u,endpoint:c,distance:l})}return n}export{bt as CATEGORY_INVENTORY_FAMILIES,dt as GroupedTableProjectionError,D as MAX_DIRECT_ROW_SWEEP,V as MAX_EVENT_INVENTORY,H as MAX_GA_CAPACITY,T as MAX_ROW_BLOCK_ROWS,b as MAX_ROW_SEATS,W as MIN_ROW_BLOCK_ROWS,h as MIN_ROW_SEATS,lt as applicableTicketTiers,z as capacityControl,St as categoryCapacity,k as chartCapacity,pt as companionSelectionIssue,gt as describeCategoryInventoryConflict,xt as effectiveSeatOwnerCategoryCounts,nt as gaAreasOf,et as gaInventorySegments,Z as gaUnitLabel,ot as gaUnitLabels,ht as groupedTableInventory,rt as growJoinedGAInventory,Mt as inspectCategoryInventoryConflicts,Bt as intactRowBlockMembers,at as isGaUnitLabel,mt as pickBestAvailable,yt as pickBestAvailableInventory,wt as remediateCategoryInventoryConflicts,Pt as resizeChartCapacity,It as resolveRowBlockCount,Gt as resolveRowStartCapacity,kt as resolveRowTerminalCapacity,ut as resolveTicketTierForSeat,G as rowBlockEdgePoint,J as rowBlockPreviewRows,q as rowStartEndpoint,$ as rowTerminalEndpoint,Y as rowWithStartCapacity,U as rowWithTerminalCapacity,it as strandedSingles,st as ticketOptionNotApplicableIssue,ft as ticketSelectionIssue,ct as ticketTierAppliesToSeat,tt as validGAInventorySegments};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Z=Object.defineProperty;var Je=Object.getOwnPropertyDescriptor;var et=Object.getOwnPropertyNames;var tt=Object.prototype.hasOwnProperty;var nt=(e,t)=>{for(var n in t)Z(e,n,{get:t[n],enumerable:!0})},ot=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of et(t))!tt.call(e,r)&&r!==n&&Z(e,r,{get:()=>t[r],enumerable:!(o=Je(t,r))||o.enumerable});return e};var rt=e=>ot(Z({},"__esModule",{value:!0}),e);var xn={};nt(xn,{DEFAULT_SEAT_RADIUS:()=>Qe,FLOOR_STACK_GAP_RATIO:()=>Ke,FLOOR_STACK_MIN_SURFACE_PX:()=>qe,TABLE_SEAT_OFFSET:()=>F,TEXT_BACKGROUND_PADDING_MAX:()=>Tn,TEXT_BACKGROUND_RADIUS_MAX:()=>Rn,TEXT_LETTER_SPACING_MAX:()=>On,TEXT_LETTER_SPACING_MIN:()=>En,TEXT_LINE_HEIGHT_MAX:()=>Cn,TEXT_LINE_HEIGHT_MIN:()=>vn,TEXT_OPACITY_MIN:()=>An,TEXT_WIDTH_MAX:()=>In,TEXT_WIDTH_MIN:()=>Pn,allObjects:()=>Ye,applyAffine:()=>on,buildAisleHoles:()=>ct,buildSeatIndex:()=>dn,buildSectionShell:()=>st,chartBounds:()=>X,composeAffine:()=>sn,createPerspectiveCamera:()=>nn,cubicPoint:()=>G,decomposeAffineLinear:()=>an,distanceToRings:()=>Pe,distributeAlongCubic:()=>J,expandBooth:()=>Xe,expandChart:()=>qt,expandRow:()=>pe,expandRowSlots:()=>Ne,expandTable:()=>Ue,expandTableSlots:()=>ye,floorObjects:()=>$t,floorStackPlacements:()=>$e,floorsOf:()=>Ve,gridStats:()=>yn,hitTest:()=>hn,initialFloorMode:()=>tn,invertAffine:()=>rn,layoutFloorStack:()=>en,mainFloorId:()=>We,nearestWithin:()=>mn,objectCenter:()=>He,owningSectionForObject:()=>Ge,perspectiveTangentAffine:()=>cn,pointInPolygon:()=>he,pointInPolygonWithHoles:()=>U,polygonArea:()=>ne,polygonInscribedAnchor:()=>oe,polygonLabelPoint:()=>Kt,polygonNetArea:()=>ft,projectPerspectivePoint:()=>q,queryRect:()=>pn,resolveSegmentedRowGroups:()=>re,rowInventoryCount:()=>Gt,rowSeatPositions:()=>me,segmentedRowComponentSeats:()=>mt,segmentedRowComponents:()=>ht,segmentedRowSeatTotal:()=>pt,smoothCubicThroughMiddle:()=>it,stackFloors:()=>Wt,tableInventoryCount:()=>Vt,tableSeatCountsBySide:()=>Be,textLayoutMetrics:()=>ee,translateObject:()=>W});module.exports=rt(xn);var gn=Math.PI/180;function j(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function D(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function G(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 it(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 J(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[G(e,.5)];let o=Array.from({length:n+1},(c,u)=>G(e,u/n)),r=new Float64Array(o.length);for(let c=1;c<o.length;c+=1){let u=o[c].x-o[c-1].x,a=o[c].y-o[c-1].y;r[c]=r[c-1]+Math.hypot(u,a)}let i=r[r.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let s=[],l=1;for(let c=0;c<t;c+=1){let u=i*c/(t-1);for(;l<r.length-1&&r[l]<u;)l+=1;let a=r[l-1],d=r[l],p=d===a?0:(u-a)/(d-a);s.push({x:o[l-1].x+(o[l].x-o[l-1].x)*p,y:o[l-1].y+(o[l].y-o[l-1].y)*p})}return s}function _(e,t){return{x:e.x+t.x,y:e.y+t.y}}function B(e,t){return{x:e.x-t.x,y:e.y-t.y}}function k(e,t){return{x:e.x*t,y:e.y*t}}function V(e,t=13){return Array.from({length:t},(n,o)=>G(e,o/(t-1)))}function xe(e,t){let n=Math.max(0,Math.min(1,t))*(e.length-1),o=Math.min(e.length-2,Math.floor(n));return D(e[o],e[o+1],n-o)}function be(e,t,n){let o=Math.max(0,Math.min(1,t)),r=Math.max(o,Math.min(1,n)),i=[xe(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(xe(e,r)),i}function ge(e,t){let n=[[0,1],[1,2],[2,3],[3,0]],o=0,r=Number.POSITIVE_INFINITY;n.forEach(([p,x],m)=>{let h=j(D(e[p],e[x],.5),t);h<r&&(r=h,o=m)});let i=e[o],s=e[(o+1)%4],l=e[(o+2)%4],c=e[(o+3)%4],u=D(i,s,.5),a=B(t,u),d=Math.max(1e-9,Math.hypot(a.x,a.y));return{p0:i,p1:s,p2:l,p3:c,normal:k(a,1/d),depth:(j(i,c)+j(s,l))/2}}function Se(e){let{p0:t,p1:n,p2:o,p3:r,normal:i,depth:s}=e,l=B(n,t),c=B(o,r),u=s*.22,a=s*.12;return{nearPath:{start:t,control1:_(_(t,k(l,1/3)),k(i,u)),control2:_(_(t,k(l,2/3)),k(i,u)),end:n},farPath:{start:o,control1:_(_(r,k(c,2/3)),k(i,a)),control2:_(_(r,k(c,1/3)),k(i,a)),end:r}}}function st(e,t,n){if(e.length!==4)throw new Error("A section shell requires four mapped bounds corners");let o=e.reduce((m,h)=>_(m,h),{x:0,y:0});o.x/=4,o.y/=4;let r=j(e[0],e[1]),i=j(e[0],e[3]),s=n==="auto"?r>i*1.25&&j(o,t)>i?"bezier":"tapered":n;if(s==="rectangle")return{mode:s,outline:e.map(m=>({...m}))};let l=ge(e,t),{p0:c,p1:u,p2:a,p3:d}=l;if(s==="tapered")return{mode:s,outline:[_(c,k(B(u,c),.14)),_(c,k(B(u,c),1-.14)),a,d]};let{nearPath:p,farPath:x}=Se(l);return{mode:s,outline:[...V(p),...V(x).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=ge(e,t),{p0:i,p1:s,p2:l,p3:c}=r,u=o==="bezier"?Se(r):null,a=u?V(u.nearPath):null,d=u?V(u.farPath).reverse():null,p=Math.min(.055,.18/(n+1));return Array.from({length:n},(x,m)=>{let h=(m+1)/(n+1),f=h-p/2,b=h+p/2;return a&&d?[...be(a,f,b),...be(d,f,b).reverse()]:[D(i,s,f),D(i,s,b),D(c,l,b),D(c,l,f)]})}var Pn=40,In=1200,vn=.8,Cn=3,En=-2,On=20,An=.1,Tn=40,Rn=40,Me=e=>Math.max(1,e.fontSize*.6+(e.letterSpacing??0));function at(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/Me(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 c=l.length;s&&s+1+c<=o?s+=1+c:(r+=Math.max(1,Math.ceil(c/o)),s=c%o)}}return Math.max(1,r)}function ee(e){let t=e.background?.padding??0,n=e.text.split(/\r?\n/),o=Math.max(1,...n.map(l=>l.length))*Me(e),r=e.width??o+t*2,i=Math.max(1,r-t*2),s=at(e,i);return{width:r,height:s*e.fontSize*(e.lineHeight??1.2)+t*2,lineCount:s,padding:t}}function lt(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 Pe(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=lt(e,o[i],o[r]);s<n&&(n=s)}return n}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,c=t[r].y;s>e.y!=c>e.y&&e.x<(l-i)*(e.y-s)/(c-s)+i&&(n=!n)}return n}function ut(e,t,n){let o=we(e,t)&&!n.some(i=>we(e,i)),r=Pe(e,[t,...n]);return o?r:-r}function N(e,t,n,o,r){let i=ut({x:e,y:t},o,r);return{x:e,y:t,h:n,d:i,max:i+n*Math.SQRT2}}var te=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 ne(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 ft(e,t){return Math.max(0,ne(e)-(t??[]).reduce((n,o)=>n+ne(o),0))}function oe(e,t){let n=t??[];if(!e.length)return{point:{x:0,y:0},radius:0};if(e.length<3){let h=e.reduce((b,M)=>b+M.x,0)/e.length,f=e.reduce((b,M)=>b+M.y,0)/e.length;return{point:{x:h,y:f},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,c=s-r,u=Math.min(l,c);if(!(u>0))return{point:{x:(o+i)/2,y:(r+s)/2},radius:0};let a=Math.max(l,c)/150,d=new te,p=u/2;for(let h=o;h<i;h+=u)for(let f=r;f<s;f+=u)d.push(N(h+p,f+p,p,e,n));let x=N(o+l/2,r+c/2,0,e,n),m=0;for(;d.size;){let h=d.pop();if(!h)break;h.d>x.d&&(x=h),!(h.max-x.d<=a)&&(m>=4e3||(m+=1,p=h.h/2,d.push(N(h.x-p,h.y-p,p,e,n)),d.push(N(h.x+p,h.y-p,p,e,n)),d.push(N(h.x-p,h.y+p,p,e,n)),d.push(N(h.x+p,h.y+p,p,e,n))))}return{point:{x:x.x,y:x.y},radius:Math.max(0,x.d)}}function L(e,t,n){return e<t?t:e>n?n:e}var Dn=Math.PI*2;function Ie(e,t,n){return dt(e,r=>({x:r.x+t,y:r.y+n}))}function dt(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 jn=4/3;function ht(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 c=Math.max(1,Math.round(l/n)),u=l/c,a=Math.atan2(s.y-i.y,s.x-i.x),d=r===0,x=(r>0?t[r-1]:void 0)==="break"?2:1,m=d?{...i}:{x:i.x+Math.cos(a)*u*x,y:i.y+Math.sin(a)*u*x},h=d?c+1:Math.max(1,c-(x-1));o.push({origin:m,rotation:a*180/Math.PI,seatCount:h,seatSpacing:u})}return o}function mt(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 pt(e){return e.reduce((t,n)=>t+n.seatCount,0)}function re(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((p,x)=>p.segmentedRow.componentIndex-x.segmentedRow.componentIndex),s=i[0]?.segmentedRow?.componentCount??0,l=i[0]?.segmentedRow;if(!l||!(s>=2&&i.length===s&&l?.boundaryBefore==="start"&&i.every((p,x)=>p.segmentedRow?.kind==="segmented-row-v1"&&p.segmentedRow.groupId===o&&p.segmentedRow.componentCount===s&&p.segmentedRow.componentIndex===x&&p.segmentedRow.repeatLabelOnComponents===l.repeatLabelOnComponents&&(x===0?p.segmentedRow.boundaryBefore==="start":p.segmentedRow.boundaryBefore!=="start")&&p.segmentedRow.displayLabel===l.displayLabel)))continue;let u=i.reduce((p,x)=>p+x.seatCount,0),a=0,d=0;for(let p of i)p.segmentedRow.boundaryBefore==="break"&&(a+=1),t.set(p.id,{groupId:o,adjacencyOffset:a,displayOffset:d,displayLabel:l.displayLabel,totalSeats:u,canonical:i[0],viewFromSeatUrl:l.viewFromSeatUrl,viewFromSeatMeta:l.viewFromSeatMeta,confidenceEvidence:l.confidenceEvidence}),a+=p.seatCount,d+=p.seatCount}return t}var yt="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var xt="abcdefghijklmnopqrstuvwxyz";function bt(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 ie(e,t=!1){let n=t?xt:yt;return bt(Math.max(0,Math.floor(e)-1),n)}var gt=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function ve(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of gt)for(;t>=o;)n+=r,t-=o;return n}function St(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 se(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,c=e.seatCount;if(i==="updown"||i==="updown-descending"){let x=Math.ceil(c/2),m=i==="updown"?t<x?n+2*t:n-1+2*(c-t):t<x?n+2*(x-1-t):n+1+2*(t-x);return`${s}${m}`}let u=i==="odd"||i==="even"?2:r,a=l!=null&&Number.isFinite(l)?l-(c-1)*u:n,d=o==="center"?St(c)[t]:o==="rtl"?c-1-t:t,p;switch(i){case"odd":{let x=a%2===1?a:a+1;p=String(x+d*2);break}case"even":{let x=a%2===0?a:a+1;p=String(x+d*2);break}case"roman":p=ve(a+d*r);break;case"letters-upper":p=ie(a+d*r,!1);break;case"letters-lower":p=ie(a+d*r,!0);break;default:p=String(a+d*r);break}return`${s}${p}`}function Mt(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function Ce(e,t,n){return n?.label??`${e.label}-${se(e,t)}`}function ce(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(!n)return`${e.displayLabel||e.label}-${se(e,t)}`;let r=Mt(n),i=n.displayOffset+t;return`${n.displayLabel}-${se(r,i)}`}var Y=.02291666666666667,Hn=1/Y,wt=58,Pt=wt*Y;var It=3,Ee=0,ae=120,vt=0,Ct=45,Et=7,K=1.2;function le(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function Ot(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=Et?e:It}function Oe(e,t={}){let n=le(t.floorBaseHeightM,Ee,ae,0),o=Math.min(ae,n+Ot(e.elevation)*Pt),r=e.height===void 0?o:le(e.height,Ee,ae,o),i=le(e.rake,vt,Ct,0);return{height:r,rake:i}}function Ae(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 Te(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,c=s.y-i.y,u=l*l+c*c,a=u>1e-12?((t-i.x)*l+(n-i.y)*c)/u:0;a<0?a=0:a>1&&(a=1);let d=Math.hypot(t-(i.x+a*l),n-(i.y+a*c));d<o&&(o=d)}return o}function At(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 Re(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function ue(e,t){let n=1/0;for(let o of Ae(e)){let r=Te(t,o.x,o.y);r<n&&(n=r)}for(let o of Ae(t)){let r=Te(e,o.x,o.y);r<n&&(n=r)}return n}function Tt(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,o=0;for(let a of e)n+=a.x,o+=a.y;n/=e.length,o/=e.length;let r=-1,i=e[0];for(let a of e){let d=Math.hypot(a.x-n,a.y-o);d>r&&(r=d,i=a)}let s=i.x-n,l=i.y-o,c=Math.hypot(s,l);c>1e-9?(s/=c,l/=c):(s=1,l=0);let u=e.map((a,d)=>({p:a,i:d,t:(a.x-n)*s+(a.y-o)*l})).sort((a,d)=>a.t-d.t);return{pts:u.map(a=>a.p),seatIndices:u.map(a=>t[a.i])}}function Rt(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let M of e)n+=M.x,o+=M.y;n/=t,o/=t;let r=0,i=0,s=0,l=0,c=0,u=0,a=0;for(let M of e){let g=M.x-n,y=M.y-o;r+=g*g,s+=y*y,i+=g*y,l+=g*g*g,c+=y*y*y,u+=g*y*y,a+=y*g*g}let d=r*s-i*i;if(Math.abs(d)<1e-9)return null;let p=(l+u)/2,x=(c+a)/2,m=(p*s-x*i)/d,h=(x*r-p*i)/d,f=m+n,b=h+o;return!Number.isFinite(f)||!Number.isFinite(b)?null:{cx:f,cy:b}}var _t=.15;function kt(e){if(e.length<2)return null;let t=e.map(M=>{let g=0,y=0;for(let P of M.pts)g+=P.x,y+=P.y;return{x:g/M.pts.length,y:y/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 g=M.x-n,y=M.y-o;r+=g*g,i+=g*y,s+=y*y}let l=r+s,c=r*s-i*i,u=l/2+Math.sqrt(Math.max(0,l*l/4-c)),a,d;Math.abs(i)>1e-12?(a=u-s,d=i):r>=s?(a=1,d=0):(a=0,d=1);let p=Math.hypot(a,d);if(!(p>1e-12))return null;a/=p,d/=p;let x=1/0,m=-1/0,h=[];for(let M of e){let g=1/0,y=-1/0;for(let P of M.pts){let S=P.x*a+P.y*d;S<g&&(g=S),S>y&&(y=S),S<x&&(x=S),S>m&&(m=S)}h.push(y-g)}let f=m-x;return f>1e-9?(h.sort((M,g)=>M-g),h[Math.min(h.length-1,Math.floor(h.length*.9))]/f<=Lt?{x:a,y:d}:null):null}var Lt=.35;function _e(e,t,n,o){let r=new Map;for(let f of n){let b=t[f],M=b.rowId||`__seat-${f}`,g=r.get(M);g||(g={pts:[],idx:[]},r.set(M,g)),g.pts.push({x:b.x,y:b.y}),g.idx.push(f)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[f,b]of r){let M=Tt(b.pts,b.idx),g=0;for(let y of M.pts)g+=Math.hypot(y.x-o.x,y.y-o.y);i.push({id:f,pts:M.pts,seatIndices:M.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:g/M.pts.length})}let s=i.map(f=>At(f.pts)),l=[];for(let f=0;f<i.length;f++){let b=1/0;for(let M=0;M<i.length;M++){if(f===M||Re(s[f],s[M])>=b)continue;let g=ue(i[f].pts,i[M].pts);g<b&&(b=g)}Number.isFinite(b)&&l.push(b)}l.sort((f,b)=>f-b);let c=l.length?l[Math.floor(l.length/2)]:1,u=Math.max(c*1.8,1e-6),a=i.map(()=>[]);for(let f=0;f<i.length;f++)for(let b=f+1;b<i.length;b++)Re(s[f],s[b])>u||ue(i[f].pts,i[b].pts)<=u&&(a[f].push(b),a[b].push(f));let d=0;for(let f=0;f<i.length;f++){if(i[f].blockId!==-1)continue;let b=d++,M=[f];for(i[f].blockId=b;M.length;){let g=M.pop();for(let y of a[g])i[y].blockId===-1&&(i[y].blockId=b,M.push(y))}}let p=new Map;for(let f of i){let b=p.get(f.blockId)??[];b.push(f),p.set(f.blockId,b)}let x=[];for(let f of i){if(f.pts.length<4)continue;let b=Rt(f.pts);b&&(!Number.isFinite(b.cx)||!Number.isFinite(b.cy)||x.push({x:b.cx,y:b.cy}))}let m=x.length>=2?(()=>{let f=x.map(g=>g.x).sort((g,y)=>g-y),b=x.map(g=>g.y).sort((g,y)=>g-y),M=Math.floor(x.length/2);return{cx:f[M],cy:b[M]}})():null;if(m){let f=S=>Math.hypot(S.x-m.cx,S.y-m.cy),b=1/0,M=-1/0,g=[];for(let S of i){let w=1/0,v=-1/0;for(let C of S.pts){let I=f(C);I<w&&(w=I),I>v&&(v=I)}g.push(v-w),w<b&&(b=w),v>M&&(M=v)}let y=M-b;g.sort((S,w)=>S-w);let P=g[Math.min(g.length-1,Math.floor(g.length*.9))];if(y>1e-9&&P/y<=_t){let S=i.map(E=>{let H=0;for(let Ze of E.pts)H+=f(Ze);return{row:E,radius:H/E.pts.length}}),w=0,v=0;for(let E of S)w+=E.radius,v+=E.row.focalDistance;w/=S.length,v/=S.length;let C=0;for(let E of S)C+=(E.radius-w)*(E.row.focalDistance-v);if(C<0)for(let E of S)E.radius=-E.radius;let R=1/0;for(let E of S)E.radius<R&&(R=E.radius);S.sort((E,H)=>E.radius-H.radius);let A=-1,O=-1/0,T=y/Math.max(1,S.length)*.5,Q=[];for(let E of S)E.radius-O>T&&(A++,O=E.radius),E.row.ordinal=A,E.row.blockDepth=E.radius-R,Q.push(E.row);return{sectionId:e,rows:Q,blockCount:d}}}let h=[];for(let[,f]of p){let b=kt(f);if(b){let M=y=>{let P=0;for(let S of y.pts)P+=S.x*b.x+S.y*b.y;return P/y.pts.length};f.sort((y,P)=>M(y)-M(P)),f.length>=2&&f[0].focalDistance>f[f.length-1].focalDistance&&f.reverse();let g=0;for(let y=0;y<f.length;y++)y>0&&(g+=ue(f[y-1].pts,f[y].pts)),f[y].ordinal=y,f[y].blockDepth=g,h.push(f[y])}else{let M=1/0;for(let g of f)g.focalDistance<M&&(M=g.focalDistance);f.sort((g,y)=>g.focalDistance-y.focalDistance);for(let g=0;g<f.length;g++)f[g].ordinal=g,f[g].blockDepth=Math.max(0,f[g].focalDistance-M),h.push(f[g])}}return{sectionId:e,rows:h,blockCount:d}}var Dt=/^\d{4}-\d{2}-\d{2}$/;function jt(e){let t=Date.parse(e);return Number.isFinite(t)?Dt.test(e)?t+864e5:t:null}function Ft(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=jt(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function Nt(e,t,n){return!(e.eventConfigurationId&&e.eventConfigurationId!==t||e.eventConfigurationVersion!==void 0&&e.eventConfigurationVersion!==n)}function Bt(e){return e.status!=="draft"&&e.status!=="retracted"}function Ut(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&&Bt(e)&&Nt(e,t.activeConfigurationId,t.activeConfigurationVersion)&&Ut(e,t.activeBasisSha256)&&Ft(e,t.now)}function Fe(e){return e?e.accessibility&&e.accessibility.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var $=Math.PI/180,Xt=9,F=16;function de(e,t,n,o){let r=n*$,i=Math.cos(r),s=Math.sin(r);return{x:o.x+e*i-t*s,y:o.y+e*s+t*i}}function me(e){let{seatCount:t,seatSpacing:n,curve:o,rotation:r,origin:i}=e,s=[];if(e.path)return J(e.path,t);if(t<=1)return t===1&&s.push({x:i.x,y:i.y}),s;if(o===0){for(let u=0;u<t;u++)s.push(de(u*n,0,r,i));return s}let l=o/(t-1)*$,c=n/(2*Math.sin(Math.abs(l)/2));for(let u=0;u<t;u++){let a=u*l,d=c*Math.sin(a),p=-c+c*Math.cos(a);s.push(de(d,p,r,i))}return s}function Ht(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function Gt(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 Ne(e,t){let n=Ht(e);return me(e).map((o,r)=>{let i=n.get(r),s=Fe(i),l=Ce(e,r,i),c={...e.commercial,...i?.commercial};return{index:r,x:o.x+(i?.dx??0),y:o.y+(i?.dy??0),label:l,displayLabel:ce(e,r,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:s.length>0,accessibility:s,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(c).some(u=>u!==void 0&&u!==!1&&u!=="")?c:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle}})}function pe(e){let t=[];for(let n of Ne(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 Be(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 ye(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let o=new Map((e.overrides??[]).map(a=>[a.index,a])),r=(a,d,p,x)=>{let m=o.get(a),h=Fe(m),f=m?.label??`${e.label}-${a+1}`,b=e.displayLabel??e.label;return{index:a,label:f,displayLabel:m?.displayLabel??`${b}-${a+1}`,x:d+(m?.dx??0),y:p+(m?.dy??0),categoryKey:m?.categoryKey??e.categoryKey,skipped:!!m?.skip,accessible:h.length>0,accessibility:h,wheelchairSpaceType:m?.wheelchairSpaceType,commercial:m?.commercial,glyph:m?.glyph,viewUrl:m?.viewFromSeatUrl,viewMeta:m?.viewFromSeatUrl?m.viewFromSeatMeta:void 0,labelStyle:m?.labelStyle,...x?{side:x}:{}}};if(e.shape==="round"){let a=(e.radius??40)+F,d=e.rotation*$,p=Math.max(0,Math.min(360,e.seatArc??360));if(p>=360||n===1){for(let f=0;f<n;f++){let b=d+f/n*2*Math.PI;t.push(r(f,e.center.x+a*Math.cos(b),e.center.y+a*Math.sin(b)))}return t}let x=p*$,m=(2*Math.PI-x)/2,h=d+m;for(let f=0;f<n;f++){let b=h+f/(n-1)*x;t.push(r(f,e.center.x+a*Math.cos(b),e.center.y+a*Math.sin(b)))}return t}let i=e.width??80,s=e.height??50,l=Be(e),c=["top","bottom","left","right"],u=0;for(let a of c){let d=l[a];for(let p=0;p<d;p++){let x,m;a==="top"?(x=-i/2+(p+.5)*i/d,m=-s/2-F):a==="bottom"?(x=-i/2+(p+.5)*i/d,m=s/2+F):a==="left"?(x=-i/2-F,m=-s/2+(p+.5)*s/d):(x=i/2+F,m=-s/2+(p+.5)*s/d);let h=de(x,m,e.rotation,e.center);t.push(r(u++,h.x,h.y,a))}}return t}function Vt(e){return e.bookAsWhole||e.variableOccupancy?Math.max(0,Math.round(e.seatCount)):ye(e).filter(t=>!t.skipped).length}function Ue(e){return ye(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 Xe(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 he(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,c=t[r].y;s>e.y!=c>e.y&&e.x<(l-i)*(e.y-s)/(c-s)+i&&(n=!n)}return n}function Yt(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 U(e,t,n){return he(e,t)&&!(n??[]).some(o=>he(e,o)||Yt(e,o))}function Kt(e,t){return oe(e,t).point}function fe(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 He(e){switch(e.type){case"row":{let t=pe(e);if(!t.length)return{x:e.origin.x,y:e.origin.y};let n=0,o=0;for(let r of t)n+=r.x,o+=r.y;return{x:n/t.length,y:o/t.length}}case"table":case"booth":return{x:e.center.x,y:e.center.y};case"gaArea":return fe(e.points);case"section":return fe(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?fe(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 Le(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function zt(e,t){if(e.type!=="gaArea"||!Le(e.points,t.outline))return!1;let n=e.holes??[],o=t.holes??[];return n.length===o.length&&n.every((r,i)=>Le(r,o[i]))}function Ge(e,t){let n=e.filter(s=>s.type==="section"),o="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0,r=He(t);return(o?n.find(s=>(s.logicalSectionId??s.id)===o&&(zt(t,s)||U(r,s.outline,s.holes))):void 0)??n.find(s=>U(r,s.outline,s.holes))}function Ve(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 $t(e,t){let n=Ve(e);return(t?n.find(o=>o.id===t):n[0])?.objects??[]}function Ye(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}function W(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:e.holes.map(r)}:{}};case"section":return{...e,outline:r(e.outline),...e.outlinePath?{outlinePath:Ie(e.outlinePath,t,n)}:{},...e.holes?{holes: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 Wt(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:W(s,0,i))}),{...e,objects:n,floors:void 0}}function De(e,t,n,o,r,i,s,l,c){let u=[],a=re(e),d=m=>!m?.eventConfigurationId||m.eventConfigurationId===o&&(m.eventConfigurationVersion===void 0||m.eventConfigurationVersion===c),p=m=>ke(m,{activeConfigurationId:o,activeConfigurationVersion:c,activeBasisSha256:r,now:l}),x=(m,h)=>p(m)?{...m,coverage:h}:void 0;for(let m of e){let h=[];if(m.type==="row"?h=pe(m):m.type==="table"?h=Ue(m):m.type==="booth"&&(h=Xe(m)),!h.length)continue;for(let y of h)y.viewUrl&&!d(y.viewMeta)&&(y.viewUrl=void 0,y.viewMeta=void 0);if(m.type==="row"){let y=a.get(m.id);if(y){let P=new Map((m.overrides??[]).map(S=>[S.index,S]));for(let S of h){let w=Number(S.id.slice(S.id.lastIndexOf(":")+1));if(!Number.isInteger(w))continue;S.logicalRowId=y.groupId,S.logicalSeatIndex=y.adjacencyOffset+w,P.get(w)?.displayLabel||(S.displayLabel=ce(m,w,y)),!S.viewUrl&&y.viewFromSeatUrl&&d(y.viewFromSeatMeta)&&(S.viewUrl=y.viewFromSeatUrl,S.viewMeta=y.viewFromSeatMeta);let v=P.get(w)?.confidenceEvidence;S.confidenceEvidence=x(v,"exact-seat")??x(m.confidenceEvidence,"row-representative")??x(y.confidenceEvidence,"row-representative")}}}let f=Ge(e,m),b=f?.viewFromSeatUrl,g=(f?.zone?t?.find(y=>y.id===f.zone):void 0)?.focalPoint??n;for(let y of h){if(!y.confidenceEvidence){let P=Number(y.id.slice(y.id.lastIndexOf(":")+1)),S=(m.type==="row"||m.type==="table")&&Number.isInteger(P)?m.overrides?.find(w=>w.index===P)?.confidenceEvidence:void 0;y.confidenceEvidence=x(S,"exact-seat")??(m.type==="row"?x(m.confidenceEvidence,"row-representative"):void 0)}y.confidenceEvidence??=x(f?.confidenceEvidence,"section-representative")??(s?x(s.evidence,s.coverage):void 0),!y.viewUrl&&b&&d(f?.viewFromSeatMeta)&&(y.viewUrl=b,y.viewMeta=f?.viewFromSeatMeta),!y.viewUrl&&i&&d(i.meta)&&(y.viewUrl=i.url,y.viewMeta=i.meta),f&&(y.sectionId=f.logicalSectionId??f.id),f?.zone&&(y.zoneId=f.zone),g&&(y.focalPoint={...g})}u.push(...h)}return u}function qt(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,c=De(r.objects,e.zones,i,e.eventConfigurationId,e.confidenceBasisSha256,s,l,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);t.resolveEyeHeights!==!1&&je(r.objects,r.focalPoint??e.focalPoint,r.baseHeightM??0,c);for(let u of c)u.floorId=r.id;o.push(...c)}return o}let n=De(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&&je(e.objects,e.focalPoint,t.floorBaseHeightM??0,n),n}function je(e,t,n,o){let r=e.filter(a=>a.type==="section"),i=n>0||r.some(a=>a.height!==void 0||a.rake!==void 0||(a.elevation??0)>0);if(!r.length||!i||!t){for(let a of o)a.eyeHeightM=n+K;return}let s=new Array(o.length),l=new Map,c=new Map;for(let a=0;a<o.length;a++){let d=o[a],x=(d.sectionId?r.find(h=>h.id===d.sectionId)??r.find(h=>h.logicalSectionId===d.sectionId&&U({x:d.x,y:d.y},h.outline,h.holes)):void 0)??r.find(h=>U({x:d.x,y:d.y},h.outline,h.holes))??null;if(s[a]=x,!x)continue;l.has(x.id)||l.set(x.id,Oe(x,{floorBaseHeightM:n}));let m=c.get(x.id);m?m.push(a):c.set(x.id,[a])}let u=new Array(o.length).fill(void 0);for(let[a,d]of c){let p=l.get(a);if(!p)continue;let x=p.rake>0?Math.tan(p.rake*Math.PI/180):0,m=_e(a,o,d,t);for(let h of m.rows){let f=h.blockDepth*Y*x,b=p.height+f;for(let M of h.seatIndices)u[M]=b}}for(let a=0;a<o.length;a++){let d=o[a],p=s[a];if(!p){d.eyeHeightM=n+K;continue}let x=l.get(p.id);d.eyeHeightM=(u[a]??x.height)+K}}var z=40;function X(e,t){let n=t?.freeText==="exclude",o=1/0,r=1/0,i=-1/0,s=-1/0,l=(c,u)=>{c<o&&(o=c),u<r&&(r=u),c>i&&(i=c),u>s&&(s=u)};for(let c of Ye(e))if(c.type==="row"){let u=new Map((c.overrides??[]).map(a=>[a.index,a]));me(c).forEach((a,d)=>{let p=u.get(d);p?.skip||l(a.x+(p?.dx??0),a.y+(p?.dy??0))})}else if(c.type==="gaArea")for(let u of c.points)l(u.x,u.y);else if(c.type==="section")for(let u of c.outline)l(u.x,u.y);else if(c.type==="decorImage")l(c.x,c.y),l(c.x+c.width,c.y+c.height);else if(c.type==="shape")if(c.points&&c.points.length)for(let u of c.points)l(u.x,u.y);else c.x!=null&&c.y!=null&&c.width!=null&&c.height!=null&&(l(c.x,c.y),l(c.x+c.width,c.y+c.height));else if(c.type==="table"){let u=F+Xt,a=c.shape==="round"?(c.radius??40)+u:Math.max((c.width??80)/2,(c.height??50)/2)+u;l(c.center.x-a,c.center.y-a),l(c.center.x+a,c.center.y+a)}else if(c.type==="booth"){let u=Math.max(c.width,c.height)/2;l(c.center.x-u,c.center.y-u),l(c.center.x+u,c.center.y+u)}else if(c.type==="text"){if(n)continue;let u=ee(c);l(c.position.x,c.position.y),l(c.position.x+u.width,c.position.y+u.height)}for(let c of[e.referenceImage,e.backgroundImage]){if(!c)continue;let{center:u,width:a}=c,d=a*3/4;l(u.x-a/2,u.y-d/2),l(u.x+a/2,u.y+d/2)}if(!isFinite(o)){let c=e.focalPoint??{x:0,y:0};return{x:c.x-200,y:c.y-200,width:400,height:400}}return{x:o-z,y:r-z,width:i-o+z*2,height:s-r+z*2}}var Ke=.08,Qt=.045;function ze(e,t,n){return{...e,objects:t,floors:void 0,...n?{focalPoint:n}:{},referenceImage:void 0,backgroundImage:void 0}}function Zt(e,t,n){let o=e.focalPoint??t.focalPoint;return o?o.x:n.x+n.width/2}function $e(e){let t=e.floors??[];if(!t.length)return[];let n=t.map(s=>X(ze(e,s.objects,s.focalPoint),{freeText:"exclude"})),r=Math.max(1,...n.map(s=>s.width))*Ke,i=0;return t.map((s,l)=>{let c=n[l],u=i-(c.y+c.height);return i-=c.height+r,{floorId:s.id,label:s.name??s.id,level:l,levelBadge:l===0?"G":String(l),translation:{x:-Zt(s,e,c),y:u},bounds:c}})}function Jt(e,t,n,o){let r=t==="name"?e.label:e.levelBadge;if(!r)return[];let i=Math.max(1,n*Qt),s=e.bounds.x+e.translation.x,l=e.bounds.y+e.translation.y+i*.4,c=`floor-level-${e.floorId}`,u={type:"text",id:`${c}-text`,text:r,position:{x:s,y:l},fontSize:i,rotation:0,color:o,bold:!0};if(t==="name")return[u];let a=i*.95;return[{type:"shape",id:`${c}-badge`,kind:"ellipse",x:s-a*.35,y:l-a*.3,width:a*2,height:a*2,fill:"transparent",stroke:{color:o,width:Math.max(1,i*.09)},opacity:.8},u]}function en(e,t={}){let n=e.floors;if(!n||n.length<2)return e;let o=$e(e),r=[];n.forEach((u,a)=>{let{x:d,y:p}=o[a].translation;for(let x of u.objects)a>0&&x.type==="shape"&&x.role==="stage"||r.push(W(x,d,p))});let i={...e,objects:r,floors:void 0},s=X(i,{freeText:"exclude"}),l=Math.max(1,s.width,s.height),c=e.theme?.textColor??"#94a3b8";for(let u of o)r.push(...Jt(u,t.labelStyle??"number",l,c));return{...i,objects:r,referenceImage:void 0,backgroundImage:void 0}}function We(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=X(ze(e,i.objects,i.focalPoint),{freeText:"exclude"}),l=s.width*s.height;l>r&&(r=l,o=i)}return o.id}var qe=640;function tn(e,t){return(e.floors?.length??0)<2?null:!Number.isFinite(t)||t<=0||t>=qe?"all":We(e)}function nn(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 q(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,u=o*s+r*i-e.distance,a=n-e.height,d=Math.hypot(e.distance,e.height),p=(-e.distance*u-e.height*a)/d,x=(-e.height*u+e.distance*a)/d,m=Math.max(d*.08,p),h=e.focalLength/m;return{x:e.target.x+l*h,y:e.target.y-x*h,depth:m,scale:h}}function on(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 rn(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 sn(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 cn(e,t,n=()=>0){let o=q(e,t,n(t)),r={x:t.x+1,y:t.y},i={x:t.x,y:t.y+1},s=q(e,r,n(r)),l=q(e,i,n(i)),c=s.x-o.x,u=s.y-o.y,a=l.x-o.x,d=l.y-o.y;return{a:c,b:u,c:a,d,e:o.x-c*t.x-a*t.y,f:o.y-u*t.x-d*t.y}}function an(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 Qe=9;function ln(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 un(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 c=-i*Math.PI/180,u=Math.cos(c),a=Math.sin(c);s=o*u-r*a,l=o*a+r*u}return Math.abs(s)<=e.shape.width/2&&Math.abs(l)<=e.shape.height/2}function fn(e,t,n,o,r){if(e.shape.kind==="circle"){let m=Math.min(Math.max(e.seat.x,t),o),h=Math.min(Math.max(e.seat.y,n),r),f=e.seat.x-m,b=e.seat.y-h;return f*f+b*b<=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),c=Math.sin(s),u=e.shape.width/2,a=e.shape.height/2,d=[[-u,-a],[u,-a],[u,a],[-u,a]].map(([m,h])=>[e.seat.x+m*l-h*c,e.seat.y+m*c+h*l]),p=[[t,n],[o,n],[o,r],[t,r]],x=[[1,0],[0,1],[l,c],[-c,l]];for(let[m,h]of x){let f=1/0,b=-1/0;for(let[y,P]of d){let S=y*m+P*h;S<f&&(f=S),S>b&&(b=S)}let M=1/0,g=-1/0;for(let[y,P]of p){let S=y*m+P*h;S<M&&(M=S),S>g&&(g=S)}if(b<M||g<f)return!1}return!0}function dn(e,t={}){let n=t.seatRadius??Qe,o=e.length,r=new Array(o),i=1/0,s=1/0,l=-1/0,c=-1/0,u=0;for(let S=0;S<o;S++){let w=e[S],v=t.shapeOf?.(w)??{kind:"circle",r:n},{hx:C,hy:I}=ln(v);r[S]={seat:w,shape:v,hx:C,hy:I},w.x-C<i&&(i=w.x-C),w.y-I<s&&(s=w.y-I),w.x+C>l&&(l=w.x+C),w.y+I>c&&(c=w.y+I),C>u&&(u=C),I>u&&(u=I)}o===0&&(i=0,s=0,l=0,c=0);let a=u>0?u*4:1,d=Math.max(l-i,0),p=Math.max(c-s,0),x=Math.max(64,t.maxCells??o*4),m=a,h=Math.max(1,Math.ceil(d/m)||1),f=Math.max(1,Math.ceil(p/m)||1);for(;h*f>x&&(h>1||f>1);)m*=2,h=Math.max(1,Math.ceil(d/m)||1),f=Math.max(1,Math.ceil(p/m)||1);let b=h*f,M=new Int32Array(b+1),g=0;for(let S=0;S<o;S++){let w=r[S],v=L(Math.floor((w.seat.x-w.hx-i)/m),0,h-1),C=L(Math.floor((w.seat.x+w.hx-i)/m),0,h-1),I=L(Math.floor((w.seat.y-w.hy-s)/m),0,f-1),R=L(Math.floor((w.seat.y+w.hy-s)/m),0,f-1);for(let A=I;A<=R;A++)for(let O=v;O<=C;O++)M[A*h+O+1]++,g++}for(let S=0;S<b;S++)M[S+1]+=M[S];let y=new Int32Array(g),P=M.slice(0,b);for(let S=0;S<o;S++){let w=r[S],v=L(Math.floor((w.seat.x-w.hx-i)/m),0,h-1),C=L(Math.floor((w.seat.x+w.hx-i)/m),0,h-1),I=L(Math.floor((w.seat.y-w.hy-s)/m),0,f-1),R=L(Math.floor((w.seat.y+w.hy-s)/m),0,f-1);for(let A=I;A<=R;A++)for(let O=v;O<=C;O++){let T=A*h+O;y[P[T]++]=S}}return{seats:e,entries:r,minX:i,minY:s,cell:m,cols:h,rows:f,cellStart:M,items:y,stamp:new Int32Array(o),epoch:0}}function hn(e,t,n={}){let{cols:o,rows:r,cell:i,minX:s,minY:l,cellStart:c,items:u,entries:a}=e,d=Math.floor((t.x-s)/i),p=Math.floor((t.y-l)/i);if(d<0||p<0||d>=o||p>=r)return null;let x=p*o+d,m=c[x+1],h=-1,f=1/0;for(let b=c[x];b<m;b++){let M=u[b],g=a[M];if(n.filter&&!n.filter(g.seat.id,g.seat)||!un(g,t.x,t.y))continue;let y=t.x-g.seat.x,P=t.y-g.seat.y,S=y*y+P*P;(S<f||S===f&&M<h)&&(f=S,h=M)}return h<0?null:a[h].seat.id}function mn(e,t,n,o={}){if(!(n>0))return null;let{cols:r,rows:i,cell:s,minX:l,minY:c,cellStart:u,items:a,entries:d}=e,p=Math.max(0,Math.floor((t.x-n-l)/s)),x=Math.min(r-1,Math.floor((t.x+n-l)/s)),m=Math.max(0,Math.floor((t.y-n-c)/s)),h=Math.min(i-1,Math.floor((t.y+n-c)/s));if(p>x||m>h)return null;let f=-1,b=n*n,M=e.stamp,g=++e.epoch;for(let y=m;y<=h;y++){let P=y*r;for(let S=p;S<=x;S++){let w=P+S,v=u[w+1];for(let C=u[w];C<v;C++){let I=a[C];if(M[I]===g)continue;M[I]=g;let R=d[I];if(o.filter&&!o.filter(R.seat.id,R.seat))continue;let A=t.x-R.seat.x,O=t.y-R.seat.y,T=A*A+O*O;(T<b||T===b&&I<f)&&(b=T,f=I)}}}return f<0?null:d[f].seat.id}function pn(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:c,rows:u,cell:a,minX:d,minY:p,cellStart:x,items:m,entries:h}=e,f=Math.max(0,Math.floor((o-d)/a)),b=Math.min(c-1,Math.floor((r-d)/a)),M=Math.max(0,Math.floor((i-p)/a)),g=Math.min(u-1,Math.floor((s-p)/a));if(f>b||M>g)return[];let y=[],P=e.stamp,S=++e.epoch;for(let w=M;w<=g;w++){let v=w*c;for(let C=f;C<=b;C++){let I=v+C,R=x[I+1];for(let A=x[I];A<R;A++){let O=m[A];if(P[O]===S)continue;P[O]=S;let T=h[O];if(n.filter&&!n.filter(T.seat.id,T.seat))continue;(l==="center"?T.seat.x>=o&&T.seat.x<=r&&T.seat.y>=i&&T.seat.y<=s:fn(T,o,i,r,s))&&y.push(O)}}}return y.sort((w,v)=>w-v),y.map(w=>h[w].seat.id)}function yn(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={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,buildAisleHoles,buildSeatIndex,buildSectionShell,chartBounds,composeAffine,createPerspectiveCamera,cubicPoint,decomposeAffineLinear,distanceToRings,distributeAlongCubic,expandBooth,expandChart,expandRow,expandRowSlots,expandTable,expandTableSlots,floorObjects,floorStackPlacements,floorsOf,gridStats,hitTest,initialFloorMode,invertAffine,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});
|
|
1
|
+
"use strict";var te=Object.defineProperty;var it=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var ct=Object.prototype.hasOwnProperty;var at=(e,t)=>{for(var n in t)te(e,n,{get:t[n],enumerable:!0})},lt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of st(t))!ct.call(e,r)&&r!==n&&te(e,r,{get:()=>t[r],enumerable:!(o=it(t,r))||o.enumerable});return e};var ut=e=>lt(te({},"__esModule",{value:!0}),e);var jn={};at(jn,{DEFAULT_SEAT_RADIUS:()=>rt,FLOOR_STACK_GAP_RATIO:()=>Je,FLOOR_STACK_MIN_SURFACE_PX:()=>ot,TABLE_SEAT_OFFSET:()=>H,TEXT_BACKGROUND_PADDING_MAX:()=>qn,TEXT_BACKGROUND_RADIUS_MAX:()=>Qn,TEXT_LETTER_SPACING_MAX:()=>$n,TEXT_LETTER_SPACING_MIN:()=>zn,TEXT_LINE_HEIGHT_MAX:()=>Gn,TEXT_LINE_HEIGHT_MIN:()=>Vn,TEXT_OPACITY_MIN:()=>Wn,TEXT_WIDTH_MAX:()=>Kn,TEXT_WIDTH_MIN:()=>Yn,allObjects:()=>Ze,applyAffine:()=>In,buildAisleHoles:()=>ht,buildSeatIndex:()=>An,buildSectionShell:()=>dt,chartBounds:()=>G,composeAffine:()=>Cn,createPerspectiveCamera:()=>Pn,cubicPoint:()=>z,decomposeAffineLinear:()=>kn,distanceToRings:()=>Ce,distributeAlongCubic:()=>ne,expandBooth:()=>We,expandChart:()=>pn,expandRow:()=>xe,expandRowSlots:()=>Ge,expandTable:()=>$e,expandTableSlots:()=>ge,floorObjects:()=>mn,floorStackPlacements:()=>tt,floorsOf:()=>W,gridStats:()=>Fn,hitTest:()=>_n,initialFloorMode:()=>wn,invertAffine:()=>vn,layoutFloorStack:()=>Sn,mainFloorId:()=>nt,nearestWithin:()=>Dn,objectCenter:()=>qe,owningSectionForObject:()=>Qe,perspectiveTangentAffine:()=>En,pointInPolygon:()=>pe,pointInPolygonWithHoles:()=>V,polygonArea:()=>ie,polygonInscribedAnchor:()=>se,polygonLabelPoint:()=>dn,polygonNetArea:()=>yt,projectPerspectivePoint:()=>J,queryRect:()=>Ln,resolveSegmentedRowGroups:()=>ce,rowInventoryCount:()=>ln,rowSeatPositions:()=>ye,segmentedRowComponentSeats:()=>Mt,segmentedRowComponents:()=>gt,segmentedRowSeatTotal:()=>St,smoothCubicThroughMiddle:()=>ft,stackFloors:()=>bn,tableInventoryCount:()=>un,tableSeatCountsBySide:()=>ze,textLayoutMetrics:()=>oe,translateObject:()=>Z});module.exports=ut(jn);var Hn=Math.PI/180;function N(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function j(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function z(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 ft(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 ne(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[z(e,.5)];let o=Array.from({length:n+1},(c,u)=>z(e,u/n)),r=new Float64Array(o.length);for(let c=1;c<o.length;c+=1){let u=o[c].x-o[c-1].x,a=o[c].y-o[c-1].y;r[c]=r[c-1]+Math.hypot(u,a)}let i=r[r.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let s=[],l=1;for(let c=0;c<t;c+=1){let u=i*c/(t-1);for(;l<r.length-1&&r[l]<u;)l+=1;let a=r[l-1],d=r[l],m=d===a?0:(u-a)/(d-a);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 A(e,t){return{x:e.x+t.x,y:e.y+t.y}}function K(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 $(e,t=13){return Array.from({length:t},(n,o)=>z(e,o/(t-1)))}function Me(e,t){let n=Math.max(0,Math.min(1,t))*(e.length-1),o=Math.min(e.length-2,Math.floor(n));return j(e[o],e[o+1],n-o)}function Se(e,t,n){let o=Math.max(0,Math.min(1,t)),r=Math.max(o,Math.min(1,n)),i=[Me(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(Me(e,r)),i}function we(e,t){let n=[[0,1],[1,2],[2,3],[3,0]],o=0,r=Number.POSITIVE_INFINITY;n.forEach(([m,y],b)=>{let h=N(j(e[m],e[y],.5),t);h<r&&(r=h,o=b)});let i=e[o],s=e[(o+1)%4],l=e[(o+2)%4],c=e[(o+3)%4],u=j(i,s,.5),a=K(t,u),d=Math.max(1e-9,Math.hypot(a.x,a.y));return{p0:i,p1:s,p2:l,p3:c,normal:_(a,1/d),depth:(N(i,c)+N(s,l))/2}}function Pe(e){let{p0:t,p1:n,p2:o,p3:r,normal:i,depth:s}=e,l=K(n,t),c=K(o,r),u=s*.22,a=s*.12;return{nearPath:{start:t,control1:A(A(t,_(l,1/3)),_(i,u)),control2:A(A(t,_(l,2/3)),_(i,u)),end:n},farPath:{start:o,control1:A(A(r,_(c,2/3)),_(i,a)),control2:A(A(r,_(c,1/3)),_(i,a)),end:r}}}function dt(e,t,n){if(e.length!==4)throw new Error("A section shell requires four mapped bounds corners");let o=e.reduce((b,h)=>A(b,h),{x:0,y:0});o.x/=4,o.y/=4;let r=N(e[0],e[1]),i=N(e[0],e[3]),s=n==="auto"?r>i*1.25&&N(o,t)>i?"bezier":"tapered":n;if(s==="rectangle")return{mode:s,outline:e.map(b=>({...b}))};let l=we(e,t),{p0:c,p1:u,p2:a,p3:d}=l;if(s==="tapered")return{mode:s,outline:[A(c,_(K(u,c),.14)),A(c,_(K(u,c),1-.14)),a,d]};let{nearPath:m,farPath:y}=Pe(l);return{mode:s,outline:[...$(m),...$(y).slice(1)]}}function ht(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=we(e,t),{p0:i,p1:s,p2:l,p3:c}=r,u=o==="bezier"?Pe(r):null,a=u?$(u.nearPath):null,d=u?$(u.farPath).reverse():null,m=Math.min(.055,.18/(n+1));return Array.from({length:n},(y,b)=>{let h=(b+1)/(n+1),f=h-m/2,x=h+m/2;return a&&d?[...Se(a,f,x),...Se(d,f,x).reverse()]:[j(i,s,f),j(i,s,x),j(c,l,x),j(c,l,f)]})}var Yn=40,Kn=1200,Vn=.8,Gn=3,zn=-2,$n=20,Wn=.1,qn=40,Qn=40,Ie=e=>Math.max(1,e.fontSize*.6+(e.letterSpacing??0));function mt(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/Ie(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 c=l.length;s&&s+1+c<=o?s+=1+c:(r+=Math.max(1,Math.ceil(c/o)),s=c%o)}}return Math.max(1,r)}function oe(e){let t=e.background?.padding??0,n=e.text.split(/\r?\n/),o=Math.max(1,...n.map(l=>l.length))*Ie(e),r=e.width??o+t*2,i=Math.max(1,r-t*2),s=mt(e,i);return{width:r,height:s*e.fontSize*(e.lineHeight??1.2)+t*2,lineCount:s,padding:t}}function bt(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 Ce(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=bt(e,o[i],o[r]);s<n&&(n=s)}return n}function ve(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,c=t[r].y;s>e.y!=c>e.y&&e.x<(l-i)*(e.y-s)/(c-s)+i&&(n=!n)}return n}function pt(e,t,n){let o=ve(e,t)&&!n.some(i=>ve(e,i)),r=Ce(e,[t,...n]);return o?r:-r}function X(e,t,n,o,r){let i=pt({x:e,y:t},o,r);return{x:e,y:t,h:n,d:i,max:i+n*Math.SQRT2}}var re=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 ie(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 yt(e,t){return Math.max(0,ie(e)-(t??[]).reduce((n,o)=>n+ie(o),0))}function se(e,t){let n=t??[];if(!e.length)return{point:{x:0,y:0},radius:0};if(e.length<3){let h=e.reduce((x,S)=>x+S.x,0)/e.length,f=e.reduce((x,S)=>x+S.y,0)/e.length;return{point:{x:h,y:f},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,c=s-r,u=Math.min(l,c);if(!(u>0))return{point:{x:(o+i)/2,y:(r+s)/2},radius:0};let a=Math.max(l,c)/150,d=new re,m=u/2;for(let h=o;h<i;h+=u)for(let f=r;f<s;f+=u)d.push(X(h+m,f+m,m,e,n));let y=X(o+l/2,r+c/2,0,e,n),b=0;for(;d.size;){let h=d.pop();if(!h)break;h.d>y.d&&(y=h),!(h.max-y.d<=a)&&(b>=4e3||(b+=1,m=h.h/2,d.push(X(h.x-m,h.y-m,m,e,n)),d.push(X(h.x+m,h.y-m,m,e,n)),d.push(X(h.x-m,h.y+m,m,e,n)),d.push(X(h.x+m,h.y+m,m,e,n))))}return{point:{x:y.x,y:y.y},radius:Math.max(0,y.d)}}function D(e,t,n){return e<t?t:e>n?n:e}var to=Math.PI*2;function Ee(e,t,n){return xt(e,r=>({x:r.x+t,y:r.y+n}))}function xt(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 no=4/3;function gt(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 c=Math.max(1,Math.round(l/n)),u=l/c,a=Math.atan2(s.y-i.y,s.x-i.x),d=r===0,y=(r>0?t[r-1]:void 0)==="break"?2:1,b=d?{...i}:{x:i.x+Math.cos(a)*u*y,y:i.y+Math.sin(a)*u*y},h=d?c+1:Math.max(1,c-(y-1));o.push({origin:b,rotation:a*180/Math.PI,seatCount:h,seatSpacing:u})}return o}function Mt(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 St(e){return e.reduce((t,n)=>t+n.seatCount,0)}function ce(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,y)=>m.segmentedRow.componentIndex-y.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,y)=>m.segmentedRow?.kind==="segmented-row-v1"&&m.segmentedRow.groupId===o&&m.segmentedRow.componentCount===s&&m.segmentedRow.componentIndex===y&&m.segmentedRow.repeatLabelOnComponents===l.repeatLabelOnComponents&&(y===0?m.segmentedRow.boundaryBefore==="start":m.segmentedRow.boundaryBefore!=="start")&&m.segmentedRow.displayLabel===l.displayLabel)))continue;let u=i.reduce((m,y)=>m+y.seatCount,0),a=0,d=0;for(let m of i)m.segmentedRow.boundaryBefore==="break"&&(a+=1),t.set(m.id,{groupId:o,adjacencyOffset:a,displayOffset:d,displayLabel:l.displayLabel,totalSeats:u,canonical:i[0],viewFromSeatUrl:l.viewFromSeatUrl,viewFromSeatMeta:l.viewFromSeatMeta,confidenceEvidence:l.confidenceEvidence}),a+=m.seatCount,d+=m.seatCount}return t}var wt="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var Pt="abcdefghijklmnopqrstuvwxyz";function It(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 ae(e,t=!1){let n=t?Pt:wt;return It(Math.max(0,Math.floor(e)-1),n)}var vt=[[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 ke(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of vt)for(;t>=o;)n+=r,t-=o;return n}function Ct(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 le(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,c=e.seatCount;if(i==="updown"||i==="updown-descending"){let y=Math.ceil(c/2),b=i==="updown"?t<y?n+2*t:n-1+2*(c-t):t<y?n+2*(y-1-t):n+1+2*(t-y);return`${s}${b}`}let u=i==="odd"||i==="even"?2:r,a=l!=null&&Number.isFinite(l)?l-(c-1)*u:n,d=o==="center"?Ct(c)[t]:o==="rtl"?c-1-t:t,m;switch(i){case"odd":{let y=a%2===1?a:a+1;m=String(y+d*2);break}case"even":{let y=a%2===0?a:a+1;m=String(y+d*2);break}case"roman":m=ke(a+d*r);break;case"letters-upper":m=ae(a+d*r,!1);break;case"letters-lower":m=ae(a+d*r,!0);break;default:m=String(a+d*r);break}return`${s}${m}`}function Et(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function Oe(e,t,n){return n?.label??`${e.label}-${le(e,t)}`}function ue(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(!n)return`${e.displayLabel||e.label}-${le(e,t)}`;let r=Et(n),i=n.displayOffset+t;return`${n.displayLabel}-${le(r,i)}`}var B=.02291666666666667,ao=1/B,kt=58,Ot=kt*B;var Rt=3,Re=0,fe=120,Tt=0,At=45,_t=7,U=1.2;function de(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function Dt(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=_t?e:Rt}function Te(e,t={}){let n=de(t.floorBaseHeightM,Re,fe,0),o=Math.min(fe,n+Dt(e.elevation)*Ot),r=e.height===void 0?o:de(e.height,Re,fe,o),i=de(e.rake,Tt,At,0);return{height:r,rake:i}}function Ae(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 _e(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,c=s.y-i.y,u=l*l+c*c,a=u>1e-12?((t-i.x)*l+(n-i.y)*c)/u:0;a<0?a=0:a>1&&(a=1);let d=Math.hypot(t-(i.x+a*l),n-(i.y+a*c));d<o&&(o=d)}return o}function Lt(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 De(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function he(e,t){let n=1/0;for(let o of Ae(e)){let r=_e(t,o.x,o.y);r<n&&(n=r)}for(let o of Ae(t)){let r=_e(e,o.x,o.y);r<n&&(n=r)}return n}function Ft(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,o=0;for(let a of e)n+=a.x,o+=a.y;n/=e.length,o/=e.length;let r=-1,i=e[0];for(let a of e){let d=Math.hypot(a.x-n,a.y-o);d>r&&(r=d,i=a)}let s=i.x-n,l=i.y-o,c=Math.hypot(s,l);c>1e-9?(s/=c,l/=c):(s=1,l=0);let u=e.map((a,d)=>({p:a,i:d,t:(a.x-n)*s+(a.y-o)*l})).sort((a,d)=>a.t-d.t);return{pts:u.map(a=>a.p),seatIndices:u.map(a=>t[a.i])}}function jt(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let S of e)n+=S.x,o+=S.y;n/=t,o/=t;let r=0,i=0,s=0,l=0,c=0,u=0,a=0;for(let S of e){let g=S.x-n,p=S.y-o;r+=g*g,s+=p*p,i+=g*p,l+=g*g*g,c+=p*p*p,u+=g*p*p,a+=p*g*g}let d=r*s-i*i;if(Math.abs(d)<1e-9)return null;let m=(l+u)/2,y=(c+a)/2,b=(m*s-y*i)/d,h=(y*r-m*i)/d,f=b+n,x=h+o;return!Number.isFinite(f)||!Number.isFinite(x)?null:{cx:f,cy:x}}var Nt=.15;function Ht(e){if(e.length<2)return null;let t=e.map(S=>{let g=0,p=0;for(let P of S.pts)g+=P.x,p+=P.y;return{x:g/S.pts.length,y:p/S.pts.length}}),n=0,o=0;for(let S of t)n+=S.x,o+=S.y;n/=t.length,o/=t.length;let r=0,i=0,s=0;for(let S of t){let g=S.x-n,p=S.y-o;r+=g*g,i+=g*p,s+=p*p}let l=r+s,c=r*s-i*i,u=l/2+Math.sqrt(Math.max(0,l*l/4-c)),a,d;Math.abs(i)>1e-12?(a=u-s,d=i):r>=s?(a=1,d=0):(a=0,d=1);let m=Math.hypot(a,d);if(!(m>1e-12))return null;a/=m,d/=m;let y=1/0,b=-1/0,h=[];for(let S of e){let g=1/0,p=-1/0;for(let P of S.pts){let M=P.x*a+P.y*d;M<g&&(g=M),M>p&&(p=M),M<y&&(y=M),M>b&&(b=M)}h.push(p-g)}let f=b-y;return f>1e-9?(h.sort((S,g)=>S-g),h[Math.min(h.length-1,Math.floor(h.length*.9))]/f<=Xt?{x:a,y:d}:null):null}var Xt=.35;function Le(e,t,n,o){let r=new Map;for(let f of n){let x=t[f],S=x.rowId||`__seat-${f}`,g=r.get(S);g||(g={pts:[],idx:[]},r.set(S,g)),g.pts.push({x:x.x,y:x.y}),g.idx.push(f)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[f,x]of r){let S=Ft(x.pts,x.idx),g=0;for(let p of S.pts)g+=Math.hypot(p.x-o.x,p.y-o.y);i.push({id:f,pts:S.pts,seatIndices:S.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:g/S.pts.length})}let s=i.map(f=>Lt(f.pts)),l=[];for(let f=0;f<i.length;f++){let x=1/0;for(let S=0;S<i.length;S++){if(f===S||De(s[f],s[S])>=x)continue;let g=he(i[f].pts,i[S].pts);g<x&&(x=g)}Number.isFinite(x)&&l.push(x)}l.sort((f,x)=>f-x);let c=l.length?l[Math.floor(l.length/2)]:1,u=Math.max(c*1.8,1e-6),a=i.map(()=>[]);for(let f=0;f<i.length;f++)for(let x=f+1;x<i.length;x++)De(s[f],s[x])>u||he(i[f].pts,i[x].pts)<=u&&(a[f].push(x),a[x].push(f));let d=0;for(let f=0;f<i.length;f++){if(i[f].blockId!==-1)continue;let x=d++,S=[f];for(i[f].blockId=x;S.length;){let g=S.pop();for(let p of a[g])i[p].blockId===-1&&(i[p].blockId=x,S.push(p))}}let m=new Map;for(let f of i){let x=m.get(f.blockId)??[];x.push(f),m.set(f.blockId,x)}let y=[];for(let f of i){if(f.pts.length<4)continue;let x=jt(f.pts);x&&(!Number.isFinite(x.cx)||!Number.isFinite(x.cy)||y.push({x:x.cx,y:x.cy}))}let b=y.length>=2?(()=>{let f=y.map(g=>g.x).sort((g,p)=>g-p),x=y.map(g=>g.y).sort((g,p)=>g-p),S=Math.floor(y.length/2);return{cx:f[S],cy:x[S]}})():null;if(b){let f=M=>Math.hypot(M.x-b.cx,M.y-b.cy),x=1/0,S=-1/0,g=[];for(let M of i){let w=1/0,I=-1/0;for(let v of M.pts){let C=f(v);C<w&&(w=C),C>I&&(I=C)}g.push(I-w),w<x&&(x=w),I>S&&(S=I)}let p=S-x;g.sort((M,w)=>M-w);let P=g[Math.min(g.length-1,Math.floor(g.length*.9))];if(p>1e-9&&P/p<=Nt){let M=i.map(E=>{let L=0;for(let F of E.pts)L+=f(F);return{row:E,radius:L/E.pts.length}}),w=0,I=0;for(let E of M)w+=E.radius,I+=E.row.focalDistance;w/=M.length,I/=M.length;let v=0;for(let E of M)v+=(E.radius-w)*(E.row.focalDistance-I);if(v<0)for(let E of M)E.radius=-E.radius;let T=1/0;for(let E of M)E.radius<T&&(T=E.radius);M.sort((E,L)=>E.radius-L.radius);let R=-1,k=-1/0,O=p/Math.max(1,M.length)*.5,Y=[];for(let E of M)E.radius-k>O&&(R++,k=E.radius),E.row.ordinal=R,E.row.blockDepth=E.radius-T,Y.push(E.row);return{sectionId:e,rows:Y,blockCount:d}}}let h=[];for(let[,f]of m){let x=Ht(f);if(x){let S=p=>{let P=0;for(let M of p.pts)P+=M.x*x.x+M.y*x.y;return P/p.pts.length};f.sort((p,P)=>S(p)-S(P)),f.length>=2&&f[0].focalDistance>f[f.length-1].focalDistance&&f.reverse();let g=0;for(let p=0;p<f.length;p++)p>0&&(g+=he(f[p-1].pts,f[p].pts)),f[p].ordinal=p,f[p].blockDepth=g,h.push(f[p])}else{let S=1/0;for(let g of f)g.focalDistance<S&&(S=g.focalDistance);f.sort((g,p)=>g.focalDistance-p.focalDistance);for(let g=0;g<f.length;g++)f[g].ordinal=g,f[g].blockDepth=Math.max(0,f[g].focalDistance-S),h.push(f[g])}}return{sectionId:e,rows:h,blockCount:d}}var Bt=/^\d{4}-\d{2}-\d{2}$/;function Ut(e){let t=Date.parse(e);return Number.isFinite(t)?Bt.test(e)?t+864e5:t:null}function Yt(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=Ut(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function Kt(e,t,n){return!(e.eventConfigurationId&&e.eventConfigurationId!==t||e.eventConfigurationVersion!==void 0&&e.eventConfigurationVersion!==n)}function Vt(e){return e.status!=="draft"&&e.status!=="retracted"}function Gt(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 Fe(e,t={}){return!!e&&Vt(e)&&Kt(e,t.activeConfigurationId,t.activeConfigurationVersion)&&Gt(e,t.activeBasisSha256)&&Yt(e,t.now)}var ho=Math.PI*2;function je(e){return e==="pitch-football"||e==="rink-hockey"||e==="track-athletics"||e==="oval-cricket"}function zt(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 $t(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 Ne(e){let t=zt(e);if(!t||t.length<2)return null;let n=e.rotation??0,o=Math.abs(n)<1e-6?t:t.map(c=>$t(c,{x:t.reduce((u,a)=>u+a.x,0)/t.length,y:t.reduce((u,a)=>u+a.y,0)/t.length},n)),r=1/0,i=1/0,s=-1/0,l=-1/0;for(let c of o)r=Math.min(r,c.x),i=Math.min(i,c.y),s=Math.max(s,c.x),l=Math.max(l,c.y);return!Number.isFinite(r)||s-r<1e-6||l-i<1e-6?null:{minX:r,minY:i,maxX:s,maxY:l}}var Wt=5,qt=3,Qt=.92,Zt=1.9,Jt=2,en=.6,tn=1,nn=.06;function on(e){return e.heightM!==void 0?e.heightM:je(e.stageKind)?nn:tn}function He(e){let t=1/0,n=1/0,o=-1/0,r=-1/0,i=-1/0;for(let s of W(e)){let l=s.baseHeightM??0;for(let c of s.objects){if(c.type!=="shape"||c.role!=="stage")continue;let u=Ne(c);u&&(t=Math.min(t,u.minX),n=Math.min(n,u.minY),o=Math.max(o,u.maxX),r=Math.max(r,u.maxY),i=Math.max(i,l+on(c)))}}return!Number.isFinite(t)||!Number.isFinite(i)?null:{minX:t,minY:n,maxX:o,maxY:r,deckTopM:i}}function rn(e,t,n,o){let r=1/0,i=1/0,s=-1/0,l=-1/0;for(let y of e)Number.isFinite(y.eyeHeightM)&&(r=Math.min(r,y.x),s=Math.max(s,y.x),i=Math.min(i,y.y),l=Math.max(l,y.y));if(!Number.isFinite(r))return null;let c=r*t,u=i*t,a=Math.max(1,Math.ceil((s-r)*t/n)+1),d=Math.max(1,Math.ceil((l-i)*t/n)+1),m=new Float64Array(a*d).fill(-1/0);for(let y of e){if(!Number.isFinite(y.eyeHeightM))continue;let b=y.eyeHeightM-U,h=Math.min(a-1,Math.max(0,Math.floor((y.x*t-c)/n))),x=Math.min(d-1,Math.max(0,Math.floor((y.y*t-u)/n)))*a+h,S=b+o;S>m[x]&&(m[x]=S)}return{cellM:n,minX:c,minY:u,cols:a,rows:d,top:m}}function sn(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 Xe(e,t,n={}){let o=new Map;if(!t||!e.length)return o;let r=n.metresPerChartUnit??B,i=n.cellM??en,s=n.chairBackM??Qt,l=n.selfRowSkipM??Jt,c=n.clearThreshold??.9,u=n.partialThreshold??.25,a=Math.max(1,n.columns??Wt),d=Math.max(1,n.rows??qt),m=rn(e,r,i,s);if(!m)return o;let y=(t.maxX-t.minX)*r,b=(t.maxY-t.minY)*r,h=y>=b,f=(t.minX+t.maxX)/2*r,x=(t.minY+t.maxY)/2*r,S=[];for(let p=0;p<a;p++){let P=(p+.5)/a-.5,M=h?f+P*y:f,w=h?x:x+P*b;for(let I=0;I<d;I++){let v=t.deckTopM+(d===1?0:I/(d-1)*Zt);S.push({x:M,y:w,z:v})}}let g=i/2;for(let p of e){if(!Number.isFinite(p.eyeHeightM))continue;let P=p.x*r,M=p.y*r,w=p.eyeHeightM,I=0,v=1/0;for(let T of S){let R=T.x-P,k=T.y-M,O=Math.hypot(R,k);if(!(O>l)){I++;continue}let Y=R/O,E=k/O,L=0;for(let F=l;F<O;F+=g){let ee=sn(m,P+Y*F,M+E*F);if(!(!Number.isFinite(ee)||ee>=w)&&ee>w+(T.z-w)*F/O){L=F;break}}L?v=Math.min(v,L):I++}let C=I/S.length;C>=c||o.set(p.id,{seatId:p.id,mark:C<u?"obstructedView":"restrictedView",visibleFraction:C,totalRays:S.length,atDistanceM:Number.isFinite(v)?v:0})}return o}function Be(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 Ve(e){return e?e.accessibility&&e.accessibility.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var Q=Math.PI/180,cn=9,H=16;function be(e,t,n,o){let r=n*Q,i=Math.cos(r),s=Math.sin(r);return{x:o.x+e*i-t*s,y:o.y+e*s+t*i}}function ye(e){let{seatCount:t,seatSpacing:n,curve:o,rotation:r,origin:i}=e,s=[];if(e.path)return ne(e.path,t);if(t<=1)return t===1&&s.push({x:i.x,y:i.y}),s;if(o===0){for(let u=0;u<t;u++)s.push(be(u*n,0,r,i));return s}let l=o/(t-1)*Q,c=n/(2*Math.sin(Math.abs(l)/2));for(let u=0;u<t;u++){let a=u*l,d=c*Math.sin(a),m=-c+c*Math.cos(a);s.push(be(d,m,r,i))}return s}function an(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function ln(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 Ge(e,t){let n=an(e);return ye(e).map((o,r)=>{let i=n.get(r),s=Ve(i),l=Oe(e,r,i),c={...e.commercial,...i?.commercial};return{index:r,x:o.x+(i?.dx??0),y:o.y+(i?.dy??0),label:l,displayLabel:ue(e,r,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:s.length>0,accessibility:s,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(c).some(u=>u!==void 0&&u!==!1&&u!=="")?c:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle}})}function xe(e){let t=[];for(let n of Ge(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 ze(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 ge(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let o=new Map((e.overrides??[]).map(a=>[a.index,a])),r=(a,d,m,y)=>{let b=o.get(a),h=Ve(b),f=b?.label??`${e.label}-${a+1}`,x=e.displayLabel??e.label;return{index:a,label:f,displayLabel:b?.displayLabel??`${x}-${a+1}`,x:d+(b?.dx??0),y:m+(b?.dy??0),categoryKey:b?.categoryKey??e.categoryKey,skipped:!!b?.skip,accessible:h.length>0,accessibility:h,wheelchairSpaceType:b?.wheelchairSpaceType,commercial:b?.commercial,glyph:b?.glyph,viewUrl:b?.viewFromSeatUrl,viewMeta:b?.viewFromSeatUrl?b.viewFromSeatMeta:void 0,labelStyle:b?.labelStyle,...y?{side:y}:{}}};if(e.shape==="round"){let a=(e.radius??40)+H,d=e.rotation*Q,m=Math.max(0,Math.min(360,e.seatArc??360));if(m>=360||n===1){for(let f=0;f<n;f++){let x=d+f/n*2*Math.PI;t.push(r(f,e.center.x+a*Math.cos(x),e.center.y+a*Math.sin(x)))}return t}let y=m*Q,b=(2*Math.PI-y)/2,h=d+b;for(let f=0;f<n;f++){let x=h+f/(n-1)*y;t.push(r(f,e.center.x+a*Math.cos(x),e.center.y+a*Math.sin(x)))}return t}let i=e.width??80,s=e.height??50,l=ze(e),c=["top","bottom","left","right"],u=0;for(let a of c){let d=l[a];for(let m=0;m<d;m++){let y,b;a==="top"?(y=-i/2+(m+.5)*i/d,b=-s/2-H):a==="bottom"?(y=-i/2+(m+.5)*i/d,b=s/2+H):a==="left"?(y=-i/2-H,b=-s/2+(m+.5)*s/d):(y=i/2+H,b=-s/2+(m+.5)*s/d);let h=be(y,b,e.rotation,e.center);t.push(r(u++,h.x,h.y,a))}}return t}function un(e){return e.bookAsWhole||e.variableOccupancy?Math.max(0,Math.round(e.seatCount)):ge(e).filter(t=>!t.skipped).length}function $e(e){return ge(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 We(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 pe(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,c=t[r].y;s>e.y!=c>e.y&&e.x<(l-i)*(e.y-s)/(c-s)+i&&(n=!n)}return n}function fn(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,t,n){return pe(e,t)&&!(n??[]).some(o=>pe(e,o)||fn(e,o))}function dn(e,t){return se(e,t).point}function me(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 qe(e){switch(e.type){case"row":{let t=xe(e);if(!t.length)return{x:e.origin.x,y:e.origin.y};let n=0,o=0;for(let r of t)n+=r.x,o+=r.y;return{x:n/t.length,y:o/t.length}}case"table":case"booth":return{x:e.center.x,y:e.center.y};case"gaArea":return me(e.points);case"section":return me(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?me(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 Ue(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function hn(e,t){if(e.type!=="gaArea"||!Ue(e.points,t.outline))return!1;let n=e.holes??[],o=t.holes??[];return n.length===o.length&&n.every((r,i)=>Ue(r,o[i]))}function Qe(e,t){let n=e.filter(s=>s.type==="section"),o="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0,r=qe(t);return(o?n.find(s=>(s.logicalSectionId??s.id)===o&&(hn(t,s)||V(r,s.outline,s.holes))):void 0)??n.find(s=>V(r,s.outline,s.holes))}function W(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 mn(e,t){let n=W(e);return(t?n.find(o=>o.id===t):n[0])?.objects??[]}function Ze(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}function Z(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:e.holes.map(r)}:{}};case"section":return{...e,outline:r(e.outline),...e.outlinePath?{outlinePath:Ee(e.outlinePath,t,n)}:{},...e.holes?{holes: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 bn(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:Z(s,0,i))}),{...e,objects:n,floors:void 0}}function Ye(e,t,n,o,r,i,s,l,c){let u=[],a=ce(e),d=b=>!b?.eventConfigurationId||b.eventConfigurationId===o&&(b.eventConfigurationVersion===void 0||b.eventConfigurationVersion===c),m=b=>Fe(b,{activeConfigurationId:o,activeConfigurationVersion:c,activeBasisSha256:r,now:l}),y=(b,h)=>m(b)?{...b,coverage:h}:void 0;for(let b of e){let h=[];if(b.type==="row"?h=xe(b):b.type==="table"?h=$e(b):b.type==="booth"&&(h=We(b)),!h.length)continue;for(let p of h)p.viewUrl&&!d(p.viewMeta)&&(p.viewUrl=void 0,p.viewMeta=void 0);if(b.type==="row"){let p=a.get(b.id);if(p){let P=new Map((b.overrides??[]).map(M=>[M.index,M]));for(let M of h){let w=Number(M.id.slice(M.id.lastIndexOf(":")+1));if(!Number.isInteger(w))continue;M.logicalRowId=p.groupId,M.logicalSeatIndex=p.adjacencyOffset+w,P.get(w)?.displayLabel||(M.displayLabel=ue(b,w,p)),!M.viewUrl&&p.viewFromSeatUrl&&d(p.viewFromSeatMeta)&&(M.viewUrl=p.viewFromSeatUrl,M.viewMeta=p.viewFromSeatMeta);let I=P.get(w)?.confidenceEvidence;M.confidenceEvidence=y(I,"exact-seat")??y(b.confidenceEvidence,"row-representative")??y(p.confidenceEvidence,"row-representative")}}}let f=Qe(e,b),x=f?.viewFromSeatUrl,g=(f?.zone?t?.find(p=>p.id===f.zone):void 0)?.focalPoint??n;for(let p of h){if(!p.confidenceEvidence){let P=Number(p.id.slice(p.id.lastIndexOf(":")+1)),M=(b.type==="row"||b.type==="table")&&Number.isInteger(P)?b.overrides?.find(w=>w.index===P)?.confidenceEvidence:void 0;p.confidenceEvidence=y(M,"exact-seat")??(b.type==="row"?y(b.confidenceEvidence,"row-representative"):void 0)}p.confidenceEvidence??=y(f?.confidenceEvidence,"section-representative")??(s?y(s.evidence,s.coverage):void 0),!p.viewUrl&&x&&d(f?.viewFromSeatMeta)&&(p.viewUrl=x,p.viewMeta=f?.viewFromSeatMeta),!p.viewUrl&&i&&d(i.meta)&&(p.viewUrl=i.url,p.viewMeta=i.meta),f&&(p.sectionId=f.logicalSectionId??f.id),f?.zone&&(p.zoneId=f.zone),g&&(p.focalPoint={...g})}u.push(...h)}return u}function pn(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,c=Ye(r.objects,e.zones,i,e.eventConfigurationId,e.confidenceBasisSha256,s,l,t.now,t.eventConfigurationVersion??e.eventConfigurationVersion);t.resolveEyeHeights!==!1&&Ke(r.objects,r.focalPoint??e.focalPoint,r.baseHeightM??0,c);for(let u of c)u.floorId=r.id;o.push(...c)}return o}let n=Ye(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&&Ke(e.objects,e.focalPoint,t.floorBaseHeightM??0,n),yn(e,n,t)}function yn(e,t,n){return!n.deriveRestrictedView||e.derivedRestrictedView===!1||n.resolveEyeHeights===!1||Be(t,Xe(t,He(e))),t}function Ke(e,t,n,o){let r=e.filter(a=>a.type==="section"),i=n>0||r.some(a=>a.height!==void 0||a.rake!==void 0||(a.elevation??0)>0);if(!r.length||!i||!t){for(let a of o)a.eyeHeightM=n+U;return}let s=new Array(o.length),l=new Map,c=new Map;for(let a=0;a<o.length;a++){let d=o[a],y=(d.sectionId?r.find(h=>h.id===d.sectionId)??r.find(h=>h.logicalSectionId===d.sectionId&&V({x:d.x,y:d.y},h.outline,h.holes)):void 0)??r.find(h=>V({x:d.x,y:d.y},h.outline,h.holes))??null;if(s[a]=y,!y)continue;l.has(y.id)||l.set(y.id,Te(y,{floorBaseHeightM:n}));let b=c.get(y.id);b?b.push(a):c.set(y.id,[a])}let u=new Array(o.length).fill(void 0);for(let[a,d]of c){let m=l.get(a);if(!m)continue;let y=m.rake>0?Math.tan(m.rake*Math.PI/180):0,b=Le(a,o,d,t);for(let h of b.rows){let f=h.blockDepth*B*y,x=m.height+f;for(let S of h.seatIndices)u[S]=x}}for(let a=0;a<o.length;a++){let d=o[a],m=s[a];if(!m){d.eyeHeightM=n+U;continue}let y=l.get(m.id);d.eyeHeightM=(u[a]??y.height)+U}}var q=40;function G(e,t){let n=t?.freeText==="exclude",o=1/0,r=1/0,i=-1/0,s=-1/0,l=(c,u)=>{c<o&&(o=c),u<r&&(r=u),c>i&&(i=c),u>s&&(s=u)};for(let c of Ze(e))if(c.type==="row"){let u=new Map((c.overrides??[]).map(a=>[a.index,a]));ye(c).forEach((a,d)=>{let m=u.get(d);m?.skip||l(a.x+(m?.dx??0),a.y+(m?.dy??0))})}else if(c.type==="gaArea")for(let u of c.points)l(u.x,u.y);else if(c.type==="section")for(let u of c.outline)l(u.x,u.y);else if(c.type==="decorImage")l(c.x,c.y),l(c.x+c.width,c.y+c.height);else if(c.type==="shape")if(c.points&&c.points.length)for(let u of c.points)l(u.x,u.y);else c.x!=null&&c.y!=null&&c.width!=null&&c.height!=null&&(l(c.x,c.y),l(c.x+c.width,c.y+c.height));else if(c.type==="table"){let u=H+cn,a=c.shape==="round"?(c.radius??40)+u:Math.max((c.width??80)/2,(c.height??50)/2)+u;l(c.center.x-a,c.center.y-a),l(c.center.x+a,c.center.y+a)}else if(c.type==="booth"){let u=Math.max(c.width,c.height)/2;l(c.center.x-u,c.center.y-u),l(c.center.x+u,c.center.y+u)}else if(c.type==="text"){if(n)continue;let u=oe(c);l(c.position.x,c.position.y),l(c.position.x+u.width,c.position.y+u.height)}for(let c of[e.referenceImage,e.backgroundImage]){if(!c)continue;let{center:u,width:a}=c,d=a*3/4;l(u.x-a/2,u.y-d/2),l(u.x+a/2,u.y+d/2)}if(!isFinite(o)){let c=e.focalPoint??{x:0,y:0};return{x:c.x-200,y:c.y-200,width:400,height:400}}return{x:o-q,y:r-q,width:i-o+q*2,height:s-r+q*2}}var Je=.08,xn=.045;function et(e,t,n){return{...e,objects:t,floors:void 0,...n?{focalPoint:n}:{},referenceImage:void 0,backgroundImage:void 0}}function gn(e,t,n){let o=e.focalPoint??t.focalPoint;return o?o.x:n.x+n.width/2}function tt(e){let t=e.floors??[];if(!t.length)return[];let n=t.map(s=>G(et(e,s.objects,s.focalPoint),{freeText:"exclude"})),r=Math.max(1,...n.map(s=>s.width))*Je,i=0;return t.map((s,l)=>{let c=n[l],u=i-(c.y+c.height);return i-=c.height+r,{floorId:s.id,label:s.name??s.id,level:l,levelBadge:l===0?"G":String(l),translation:{x:-gn(s,e,c),y:u},bounds:c}})}function Mn(e,t,n,o){let r=t==="name"?e.label:e.levelBadge;if(!r)return[];let i=Math.max(1,n*xn),s=e.bounds.x+e.translation.x,l=e.bounds.y+e.translation.y+i*.4,c=`floor-level-${e.floorId}`,u={type:"text",id:`${c}-text`,text:r,position:{x:s,y:l},fontSize:i,rotation:0,color:o,bold:!0};if(t==="name")return[u];let a=i*.95;return[{type:"shape",id:`${c}-badge`,kind:"ellipse",x:s-a*.35,y:l-a*.3,width:a*2,height:a*2,fill:"transparent",stroke:{color:o,width:Math.max(1,i*.09)},opacity:.8},u]}function Sn(e,t={}){let n=e.floors;if(!n||n.length<2)return e;let o=tt(e),r=[];n.forEach((u,a)=>{let{x:d,y:m}=o[a].translation;for(let y of u.objects)a>0&&y.type==="shape"&&y.role==="stage"||r.push(Z(y,d,m))});let i={...e,objects:r,floors:void 0},s=G(i,{freeText:"exclude"}),l=Math.max(1,s.width,s.height),c=e.theme?.textColor??"#94a3b8";for(let u of o)r.push(...Mn(u,t.labelStyle??"number",l,c));return{...i,objects:r,referenceImage:void 0,backgroundImage:void 0}}function nt(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=G(et(e,i.objects,i.focalPoint),{freeText:"exclude"}),l=s.width*s.height;l>r&&(r=l,o=i)}return o.id}var ot=640;function wn(e,t){return(e.floors?.length??0)<2?null:!Number.isFinite(t)||t<=0||t>=ot?"all":nt(e)}function Pn(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 J(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,u=o*s+r*i-e.distance,a=n-e.height,d=Math.hypot(e.distance,e.height),m=(-e.distance*u-e.height*a)/d,y=(-e.height*u+e.distance*a)/d,b=Math.max(d*.08,m),h=e.focalLength/b;return{x:e.target.x+l*h,y:e.target.y-y*h,depth:b,scale:h}}function In(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 vn(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 Cn(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 En(e,t,n=()=>0){let o=J(e,t,n(t)),r={x:t.x+1,y:t.y},i={x:t.x,y:t.y+1},s=J(e,r,n(r)),l=J(e,i,n(i)),c=s.x-o.x,u=s.y-o.y,a=l.x-o.x,d=l.y-o.y;return{a:c,b:u,c:a,d,e:o.x-c*t.x-a*t.y,f:o.y-u*t.x-d*t.y}}function kn(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 rt=9;function On(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 Rn(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 c=-i*Math.PI/180,u=Math.cos(c),a=Math.sin(c);s=o*u-r*a,l=o*a+r*u}return Math.abs(s)<=e.shape.width/2&&Math.abs(l)<=e.shape.height/2}function Tn(e,t,n,o,r){if(e.shape.kind==="circle"){let b=Math.min(Math.max(e.seat.x,t),o),h=Math.min(Math.max(e.seat.y,n),r),f=e.seat.x-b,x=e.seat.y-h;return f*f+x*x<=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),c=Math.sin(s),u=e.shape.width/2,a=e.shape.height/2,d=[[-u,-a],[u,-a],[u,a],[-u,a]].map(([b,h])=>[e.seat.x+b*l-h*c,e.seat.y+b*c+h*l]),m=[[t,n],[o,n],[o,r],[t,r]],y=[[1,0],[0,1],[l,c],[-c,l]];for(let[b,h]of y){let f=1/0,x=-1/0;for(let[p,P]of d){let M=p*b+P*h;M<f&&(f=M),M>x&&(x=M)}let S=1/0,g=-1/0;for(let[p,P]of m){let M=p*b+P*h;M<S&&(S=M),M>g&&(g=M)}if(x<S||g<f)return!1}return!0}function An(e,t={}){let n=t.seatRadius??rt,o=e.length,r=new Array(o),i=1/0,s=1/0,l=-1/0,c=-1/0,u=0;for(let M=0;M<o;M++){let w=e[M],I=t.shapeOf?.(w)??{kind:"circle",r:n},{hx:v,hy:C}=On(I);r[M]={seat:w,shape:I,hx:v,hy:C},w.x-v<i&&(i=w.x-v),w.y-C<s&&(s=w.y-C),w.x+v>l&&(l=w.x+v),w.y+C>c&&(c=w.y+C),v>u&&(u=v),C>u&&(u=C)}o===0&&(i=0,s=0,l=0,c=0);let a=u>0?u*4:1,d=Math.max(l-i,0),m=Math.max(c-s,0),y=Math.max(64,t.maxCells??o*4),b=a,h=Math.max(1,Math.ceil(d/b)||1),f=Math.max(1,Math.ceil(m/b)||1);for(;h*f>y&&(h>1||f>1);)b*=2,h=Math.max(1,Math.ceil(d/b)||1),f=Math.max(1,Math.ceil(m/b)||1);let x=h*f,S=new Int32Array(x+1),g=0;for(let M=0;M<o;M++){let w=r[M],I=D(Math.floor((w.seat.x-w.hx-i)/b),0,h-1),v=D(Math.floor((w.seat.x+w.hx-i)/b),0,h-1),C=D(Math.floor((w.seat.y-w.hy-s)/b),0,f-1),T=D(Math.floor((w.seat.y+w.hy-s)/b),0,f-1);for(let R=C;R<=T;R++)for(let k=I;k<=v;k++)S[R*h+k+1]++,g++}for(let M=0;M<x;M++)S[M+1]+=S[M];let p=new Int32Array(g),P=S.slice(0,x);for(let M=0;M<o;M++){let w=r[M],I=D(Math.floor((w.seat.x-w.hx-i)/b),0,h-1),v=D(Math.floor((w.seat.x+w.hx-i)/b),0,h-1),C=D(Math.floor((w.seat.y-w.hy-s)/b),0,f-1),T=D(Math.floor((w.seat.y+w.hy-s)/b),0,f-1);for(let R=C;R<=T;R++)for(let k=I;k<=v;k++){let O=R*h+k;p[P[O]++]=M}}return{seats:e,entries:r,minX:i,minY:s,cell:b,cols:h,rows:f,cellStart:S,items:p,stamp:new Int32Array(o),epoch:0}}function _n(e,t,n={}){let{cols:o,rows:r,cell:i,minX:s,minY:l,cellStart:c,items:u,entries:a}=e,d=Math.floor((t.x-s)/i),m=Math.floor((t.y-l)/i);if(d<0||m<0||d>=o||m>=r)return null;let y=m*o+d,b=c[y+1],h=-1,f=1/0;for(let x=c[y];x<b;x++){let S=u[x],g=a[S];if(n.filter&&!n.filter(g.seat.id,g.seat)||!Rn(g,t.x,t.y))continue;let p=t.x-g.seat.x,P=t.y-g.seat.y,M=p*p+P*P;(M<f||M===f&&S<h)&&(f=M,h=S)}return h<0?null:a[h].seat.id}function Dn(e,t,n,o={}){if(!(n>0))return null;let{cols:r,rows:i,cell:s,minX:l,minY:c,cellStart:u,items:a,entries:d}=e,m=Math.max(0,Math.floor((t.x-n-l)/s)),y=Math.min(r-1,Math.floor((t.x+n-l)/s)),b=Math.max(0,Math.floor((t.y-n-c)/s)),h=Math.min(i-1,Math.floor((t.y+n-c)/s));if(m>y||b>h)return null;let f=-1,x=n*n,S=e.stamp,g=++e.epoch;for(let p=b;p<=h;p++){let P=p*r;for(let M=m;M<=y;M++){let w=P+M,I=u[w+1];for(let v=u[w];v<I;v++){let C=a[v];if(S[C]===g)continue;S[C]=g;let T=d[C];if(o.filter&&!o.filter(T.seat.id,T.seat))continue;let R=t.x-T.seat.x,k=t.y-T.seat.y,O=R*R+k*k;(O<x||O===x&&C<f)&&(x=O,f=C)}}}return f<0?null:d[f].seat.id}function Ln(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:c,rows:u,cell:a,minX:d,minY:m,cellStart:y,items:b,entries:h}=e,f=Math.max(0,Math.floor((o-d)/a)),x=Math.min(c-1,Math.floor((r-d)/a)),S=Math.max(0,Math.floor((i-m)/a)),g=Math.min(u-1,Math.floor((s-m)/a));if(f>x||S>g)return[];let p=[],P=e.stamp,M=++e.epoch;for(let w=S;w<=g;w++){let I=w*c;for(let v=f;v<=x;v++){let C=I+v,T=y[C+1];for(let R=y[C];R<T;R++){let k=b[R];if(P[k]===M)continue;P[k]=M;let O=h[k];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:Tn(O,o,i,r,s))&&p.push(k)}}}return p.sort((w,I)=>w-I),p.map(w=>h[w].seat.id)}function Fn(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={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,buildAisleHoles,buildSeatIndex,buildSectionShell,chartBounds,composeAffine,createPerspectiveCamera,cubicPoint,decomposeAffineLinear,distanceToRings,distributeAlongCubic,expandBooth,expandChart,expandRow,expandRowSlots,expandTable,expandTableSlots,floorObjects,floorStackPlacements,floorsOf,gridStats,hitTest,initialFloorMode,invertAffine,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});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as Point, u as CubicPath, v as TextObject } from '../../types-
|
|
2
|
-
export { F as FloorLabelStyle } from '../../types-
|
|
3
|
-
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-
|
|
4
|
-
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-
|
|
5
|
-
import { E as ExpandedSeat } from '../../renderer-
|
|
1
|
+
import { P as Point, u as CubicPath, v as TextObject } from '../../types-BVRza86Q.cjs';
|
|
2
|
+
export { F as FloorLabelStyle } from '../../types-BVRza86Q.cjs';
|
|
3
|
+
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-Gkx3fo5_.cjs';
|
|
4
|
+
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-CvyOS6Bx.cjs';
|
|
5
|
+
import { E as ExpandedSeat } from '../../renderer-Cv_gzYvT.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, u as CubicPath, v as TextObject } from '../../types-
|
|
2
|
-
export { F as FloorLabelStyle } from '../../types-
|
|
3
|
-
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-
|
|
4
|
-
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-
|
|
5
|
-
import { E as ExpandedSeat } from '../../renderer-
|
|
1
|
+
import { P as Point, u as CubicPath, v as TextObject } from '../../types-BVRza86Q.js';
|
|
2
|
+
export { F as FloorLabelStyle } from '../../types-BVRza86Q.js';
|
|
3
|
+
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-DGbWo5fV.js';
|
|
4
|
+
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-CD-YT9bT.js';
|
|
5
|
+
import { E as ExpandedSeat } from '../../renderer-BlLKrW-U.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 T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as oo,k as ro,l as eo,m as fo,n as mo,o as po,p as to,q as xo,r as ao,s as bo}from"../../chunk-
|
|
1
|
+
import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as oo,k as ro,l as eo,m as fo,n as mo,o as po,p as to,q as xo,r as ao,s as bo}from"../../chunk-UVAV3E7K.js";import{A as d,B as g,Ba as w,C as h,Ca as y,D as i,Da as z,E as j,Ea as A,F as k,Fa as B,G as l,Ga as C,H as n,Ha as D,Ia as E,Ja as F,Ka as G,La as H,Ma as I,Na as J,Oa as K,Pa as L,Qa as M,Ra as N,Sa as O,Ta as P,Ua as Q,V as q,Va as R,W as s,Wa as S,X as u,Y as v,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,z as c}from"../../chunk-QUOAQQMP.js";import"../../chunk-CRCGO52K.js";export{Z as DEFAULT_SEAT_RADIUS,T as FLOOR_STACK_GAP_RATIO,X 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,O as allObjects,po as applyAffine,i as buildAisleHoles,_ as buildSeatIndex,h as buildSectionShell,S as chartBounds,xo as composeAffine,fo as createPerspectiveCamera,c as cubicPoint,bo as decomposeAffineLinear,j as distanceToRings,g as distributeAlongCubic,G as expandBooth,R as expandChart,B as expandRow,A as expandRowSlots,F as expandTable,D as expandTableSlots,N as floorObjects,U as floorStackPlacements,M as floorsOf,eo as gridStats,$ as hitTest,Y as initialFloorMode,to as invertAffine,V as layoutFloorStack,W as mainFloorId,oo as nearestWithin,K as objectCenter,L as owningSectionForObject,ao as perspectiveTangentAffine,H as pointInPolygon,I as pointInPolygonWithHoles,k as polygonArea,n as polygonInscribedAnchor,J as polygonLabelPoint,l as polygonNetArea,mo as projectPerspectivePoint,ro as queryRect,v as resolveSegmentedRowGroups,z as rowInventoryCount,y as rowSeatPositions,s as segmentedRowComponentSeats,q as segmentedRowComponents,u as segmentedRowSeatTotal,d as smoothCubicThroughMiddle,Q as stackFloors,E as tableInventoryCount,C as tableSeatCountsBySide,b as textLayoutMetrics,P as translateObject};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccessibilityType } from '../../types-
|
|
1
|
+
import { A as AccessibilityType } from '../../types-BVRza86Q.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-
|
|
4
|
-
import '../../renderer-
|
|
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-CEPse8ir.cjs';
|
|
4
|
+
import '../../renderer-Cv_gzYvT.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-
|
|
1
|
+
import { A as AccessibilityType } from '../../types-BVRza86Q.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-
|
|
4
|
-
import '../../renderer-
|
|
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-BYhJ3Cer.js';
|
|
4
|
+
import '../../renderer-BlLKrW-U.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Rendering constants that quality inspection must agree with.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-
|
|
1
|
+
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-BVRza86Q.cjs';
|
|
2
2
|
|
|
3
3
|
type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-
|
|
1
|
+
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-BVRza86Q.js';
|
|
2
2
|
|
|
3
3
|
type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
|
|
4
4
|
/**
|