@seatlayer/core 0.87.0 → 0.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,l as bt}from"../../chunk-PI3UH2EN.js";import{a as xt,b as Mt,c as gt,d as wt,e as Ct,f as B,h as N}from"../../chunk-OLTZIZEM.js";import"../../chunk-WAGKI44J.js";import"../../chunk-W53J4FJS.js";import"../../chunk-TQN2VWQO.js";import"../../chunk-CFRNWESM.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-AHPF5SD6.js";import"../../chunk-R7TV7RYQ.js";import"../../chunk-4I2VWFJY.js";import{Aa as j,Ba as _,Ga as I,I as O,va as S,x as R,xa as v,ya as P}from"../../chunk-E7TOTX6I.js";import"../../chunk-5ITK5236.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 Pt(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 jt(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 Bt(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 Nt(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 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=$(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 Wt(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{xt as CATEGORY_INVENTORY_FAMILIES,ht 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,ut as applicableTicketTiers,z as capacityControl,Pt as categoryCapacity,k as chartCapacity,ft as companionSelectionIssue,wt as describeCategoryInventoryConflict,Mt as effectiveSeatOwnerCategoryCounts,nt as gaAreasOf,et as gaInventorySegments,Z as gaUnitLabel,ot as gaUnitLabels,bt as groupedTableInventory,rt as growJoinedGAInventory,gt as inspectCategoryInventoryConflicts,Nt as intactRowBlockMembers,st as isFullChartDoc,at as isGaUnitLabel,yt as pickBestAvailable,dt as pickBestAvailableInventory,Ct as remediateCategoryInventoryConflicts,jt as resizeChartCapacity,Bt as resolveRowBlockCount,Wt as resolveRowStartCapacity,Gt as resolveRowTerminalCapacity,pt as resolveTicketTierForSeat,G as rowBlockEdgePoint,J as rowBlockPreviewRows,q as rowStartEndpoint,$ as rowTerminalEndpoint,Y as rowWithStartCapacity,U as rowWithTerminalCapacity,it as strandedSingles,ct as ticketOptionNotApplicableIssue,mt as ticketSelectionIssue,lt as ticketTierAppliesToSeat,tt as validGAInventorySegments};
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,l as bt}from"../../chunk-PI3UH2EN.js";import{a as xt,b as Mt,c as gt,d as wt,e as Ct,f as B,h as N}from"../../chunk-3X2CEDBN.js";import"../../chunk-WAGKI44J.js";import"../../chunk-W53J4FJS.js";import"../../chunk-TQN2VWQO.js";import"../../chunk-5BMXWOE7.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-AHPF5SD6.js";import"../../chunk-R7TV7RYQ.js";import"../../chunk-4I2VWFJY.js";import{Aa as j,Ba as _,Ga as I,I as O,va as S,x as R,xa as v,ya as P}from"../../chunk-E7TOTX6I.js";import"../../chunk-5ITK5236.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 Pt(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 jt(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 Bt(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 Nt(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 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=$(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 Wt(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{xt as CATEGORY_INVENTORY_FAMILIES,ht 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,ut as applicableTicketTiers,z as capacityControl,Pt as categoryCapacity,k as chartCapacity,ft as companionSelectionIssue,wt as describeCategoryInventoryConflict,Mt as effectiveSeatOwnerCategoryCounts,nt as gaAreasOf,et as gaInventorySegments,Z as gaUnitLabel,ot as gaUnitLabels,bt as groupedTableInventory,rt as growJoinedGAInventory,gt as inspectCategoryInventoryConflicts,Nt as intactRowBlockMembers,st as isFullChartDoc,at as isGaUnitLabel,yt as pickBestAvailable,dt as pickBestAvailableInventory,Ct as remediateCategoryInventoryConflicts,jt as resizeChartCapacity,Bt as resolveRowBlockCount,Wt as resolveRowStartCapacity,Gt as resolveRowTerminalCapacity,pt as resolveTicketTierForSeat,G as rowBlockEdgePoint,J as rowBlockPreviewRows,q as rowStartEndpoint,$ as rowTerminalEndpoint,Y as rowWithStartCapacity,U as rowWithTerminalCapacity,it as strandedSingles,ct as ticketOptionNotApplicableIssue,mt as ticketSelectionIssue,lt as ticketTierAppliesToSeat,tt as validGAInventorySegments};
@@ -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 eo,j as fo,k as mo,l as po,m as to,n as xo,o as ao,p as bo,q as co,r as go,s as ho,t as io,u as jo}from"../../chunk-QTBBVSN6.js";import{a as $,b as oo,c as ro}from"../../chunk-WAGKI44J.js";import"../../chunk-CFRNWESM.js";import{A as d,Aa as E,B as g,Ba as F,C as h,Ca as G,D as i,Da as H,E as j,Ea as I,F as k,Fa as J,G as l,Ga as K,H as n,Ha as L,Ia as M,Ja as N,Ka as O,La as P,Ma as Q,Na as R,Oa as S,V as q,W 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,ta as w,u as a,ua as y,v as b,va as z,wa as A,xa as B,ya as C,z as c,za as D}from"../../chunk-E7TOTX6I.js";import"../../chunk-5ITK5236.js";import"../../chunk-CRCGO52K.js";export{oo as AUTOMATIC_ROUND_TABLE_RADIUS_MAX,$ as AUTOMATIC_ROUND_TABLE_RADIUS_MIN,eo as DEFAULT_SEAT_RADIUS,T as FLOOR_STACK_GAP_RATIO,Z 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,co as applyAffine,ro as automaticRoundTableRadius,i as buildAisleHoles,fo as buildSeatIndex,h as buildSectionShell,S as chartBounds,U as combinedFloorZoneId,ho as composeAffine,ao as createPerspectiveCamera,c as cubicPoint,jo 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,V as floorStackPlacements,M as floorsOf,xo as gridStats,mo as hitTest,_ as initialFloorMode,go as invertAffine,X as layoutCombinedFloorPlan,W as layoutFloorStack,Y as mainFloorId,po as nearestWithin,K as objectCenter,L as owningSectionForObject,io as perspectiveTangentAffine,H as pointInPolygon,I as pointInPolygonWithHoles,k as polygonArea,n as polygonInscribedAnchor,J as polygonLabelPoint,l as polygonNetArea,bo as projectPerspectivePoint,to 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
+ 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 eo,j as fo,k as mo,l as po,m as to,n as xo,o as ao,p as bo,q as co,r as go,s as ho,t as io,u as jo}from"../../chunk-66Q5LOBH.js";import{a as $,b as oo,c as ro}from"../../chunk-WAGKI44J.js";import"../../chunk-5BMXWOE7.js";import{A as d,Aa as E,B as g,Ba as F,C as h,Ca as G,D as i,Da as H,E as j,Ea as I,F as k,Fa as J,G as l,Ga as K,H as n,Ha as L,Ia as M,Ja as N,Ka as O,La as P,Ma as Q,Na as R,Oa as S,V as q,W 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,ta as w,u as a,ua as y,v as b,va as z,wa as A,xa as B,ya as C,z as c,za as D}from"../../chunk-E7TOTX6I.js";import"../../chunk-5ITK5236.js";import"../../chunk-CRCGO52K.js";export{oo as AUTOMATIC_ROUND_TABLE_RADIUS_MAX,$ as AUTOMATIC_ROUND_TABLE_RADIUS_MIN,eo as DEFAULT_SEAT_RADIUS,T as FLOOR_STACK_GAP_RATIO,Z 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,co as applyAffine,ro as automaticRoundTableRadius,i as buildAisleHoles,fo as buildSeatIndex,h as buildSectionShell,S as chartBounds,U as combinedFloorZoneId,ho as composeAffine,ao as createPerspectiveCamera,c as cubicPoint,jo 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,V as floorStackPlacements,M as floorsOf,xo as gridStats,mo as hitTest,_ as initialFloorMode,go as invertAffine,X as layoutCombinedFloorPlan,W as layoutFloorStack,Y as mainFloorId,po as nearestWithin,K as objectCenter,L as owningSectionForObject,io as perspectiveTangentAffine,H as pointInPolygon,I as pointInPolygonWithHoles,k as polygonArea,n as polygonInscribedAnchor,J as polygonLabelPoint,l as polygonNetArea,bo as projectPerspectivePoint,to 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 +1 @@
1
- "use strict";var L=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var ee=(e,t)=>{for(var n in t)L(e,n,{get:t[n],enumerable:!0})},te=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of z(t))!q.call(e,a)&&a!==n&&L(e,a,{get:()=>t[a],enumerable:!(r=X(t,a))||r.enumerable});return e};var ne=e=>te(L({},"__esModule",{value:!0}),e);var Fe={};ee(Fe,{DECOR_STAMP_ICON_PATHS:()=>Re,DEFAULT_SHAPE_LINE_CAP:()=>$,DEFAULT_SHAPE_LINE_ENDING:()=>C,DEFAULT_SHAPE_LINE_JOIN:()=>Y,SEAT_GLYPHS:()=>O,SEAT_GLYPH_DETAIL_MIN_PX:()=>ot,SEAT_GLYPH_INSET:()=>st,SEAT_GLYPH_ORDER:()=>Ne,SEAT_GLYPH_VIEWBOX:()=>it,SEAT_TYPE_ICON_BODY:()=>K,SEAT_TYPE_ICON_VIEWBOX:()=>ct,SHAPE_LINE_CAPS:()=>je,SHAPE_LINE_ENDINGS:()=>Be,SHAPE_LINE_JOINS:()=>De,VENUE_ICONS:()=>v,VENUE_ICON_GROUP_LABELS:()=>Ce,VENUE_ICON_GROUP_ORDER:()=>Ee,VENUE_ICON_KEYS:()=>Ve,VENUE_ICON_STROKE:()=>rt,VENUE_ICON_VIEWBOX:()=>nt,buyerBackgroundImage:()=>D,buyerFacingChartDoc:()=>Oe,hasConflictingLegacyTrace:()=>Ie,isOpenShapeKind:()=>U,isPointShapeKind:()=>He,isSeatGlyphKind:()=>k,isVenueIconKey:()=>_e,migrateLegacyBackgroundLayersInPlace:()=>xe,resolveSeatGlyph:()=>Qe,resolvedShapeLineStyle:()=>Ze,seatGlyph:()=>I,seatGlyphFit:()=>we,seatGlyphLabel:()=>Te,seatGlyphPath:()=>Pe,seatTypeIconBody:()=>F,seatTypeIconSvg:()=>Ge,shapeArrowMetrics:()=>Ke,traceReferenceImage:()=>ve,venueIcon:()=>Z,venueIconPath:()=>Ae});module.exports=ne(Fe);function E(e){let t=e;return delete t.referenceScan,delete t.referenceInventorySource,delete t.referenceInventoryExclusion,delete t.referenceSource,delete t.referenceAnnotationSource,e}var re="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var ae="abcdefghijklmnopqrstuvwxyz";function ie(e,t){let n=t.length,r=e+1,a="";for(;r>0;){r-=1;let i=r%n;a=t[i]+a,r=Math.floor(r/n)}return a}function M(e,t=!1){let n=t?ae:re;return ie(Math.max(0,Math.floor(e)-1),n)}var oe=[[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 R(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[r,a]of oe)for(;t>=r;)n+=a,t-=r;return n}function se(e){let t=new Array(e);return Array.from({length:e},(n,r)=>r).sort((n,r)=>Math.abs(2*n-(e-1))-Math.abs(2*r-(e-1))||n-r).forEach((n,r)=>t[n]=r),t}function p(e,t){let n=e.seatLabelStart??1,r=e.seatNumbering?.direction??"ltr",a=e.seatNumbering?.step??1,i=e.seatNumbering?.scheme??"decimal",o=e.seatNumbering?.prefix??"",l=e.seatNumbering?.endAt,h=e.seatCount;if(i==="updown"||i==="updown-descending"){let c=Math.ceil(h/2),W=i==="updown"?t<c?n+2*t:n-1+2*(h-t):t<c?n+2*(c-1-t):n+1+2*(t-c);return`${o}${W}`}let J=i==="odd"||i==="even"?2:a,s=l!=null&&Number.isFinite(l)?l-(h-1)*J:n,d=r==="center"?se(h)[t]:r==="rtl"?h-1-t:t,u;switch(i){case"odd":{let c=s%2===1?s:s+1;u=String(c+d*2);break}case"even":{let c=s%2===0?s:s+1;u=String(c+d*2);break}case"roman":u=R(s+d*a);break;case"letters-upper":u=M(s+d*a,!1);break;case"letters-lower":u=M(s+d*a,!0);break;default:u=String(s+d*a);break}return`${o}${u}`}function le(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function g(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${p(e,t)}`}function S(e,t,n,r){if(r?.displayLabel)return r.displayLabel;if(e.seatDisplayLabelMode==="number")return p(e,t);if(!n)return`${e.displayLabel||e.label}-${p(e,t)}`;let a=le(n),i=n.displayOffset+t;return`${n.displayLabel}-${p(a,i)}`}var ce=["skip","dx","dy","glyph","accessible","accessibility","wheelchairSpaceType","commercial","viewFromSeatUrl","viewFromSeatMeta","confidenceEvidence"];function T(e,t){return!e||!t?!e&&!t:e.size===t.size&&e.color===t.color}function f(e){let t=new Map;for(let n of e.overrides??[])t.set(n.index,n);return t}function A(e){let t=f(e),n=[];for(let r=0;r<e.seatCount;r+=1){let a=t.get(r),i={};for(let o of ce){let l=a?.[o];l!==void 0&&(i[o]=l)}n.push([g(e,r,a),S(e,r,void 0,a),a?.categoryKey??e.categoryKey,a?.labelStyle??e.seatLabelStyle??null,i])}return JSON.stringify(n)}function ue(e){return JSON.parse(JSON.stringify(e))}function y(e,t){let n=ue(e);return t(n)&&A(n)===A(e)?n:e}function de(e){if(e.seatLabelStyle||e.seatCount<1)return!1;let t=f(e);if(t.size<e.seatCount)return!1;let n;for(let r=0;r<e.seatCount;r+=1){let a=t.get(r)?.labelStyle;if(!a)return!1;if(!n)n=a;else if(!T(n,a))return!1}if(!n)return!1;e.seatLabelStyle={...n};for(let r of e.overrides??[])delete r.labelStyle;return!0}function pe(e){if(!/^-?\d+$/.test(e))return;let t=Number(e);return Number.isSafeInteger(t)&&String(t)===e?t:void 0}function he(e){if(!e.length)return;let t=e[0].lastIndexOf("-");if(t<=0)return;let n=e[0].slice(0,t),r=[];for(let i of e){if(!i.startsWith(`${n}-`))return;let o=pe(i.slice(n.length+1));if(o===void 0)return;r.push(o)}if(r.length===1)return{base:n,start:r[0],direction:"ltr"};let a=r[1]-r[0];if(!(a!==1&&a!==-1)){for(let i=1;i<r.length;i+=1)if(r[i]-r[i-1]!==a)return;return a===1?{base:n,start:r[0],direction:"ltr"}:{base:n,start:r[r.length-1],direction:"rtl"}}}function be(e){if(e.seatCount<1)return!1;let t=f(e);if(!(e.overrides??[]).some(a=>a.label!==void 0))return!1;let n=[];for(let a=0;a<e.seatCount;a+=1)n.push(g(e,a,t.get(a)));let r=he(n);if(!r)return!1;r.base===e.label?delete e.seatLabelBase:e.seatLabelBase=r.base,r.start===1?delete e.seatLabelStart:e.seatLabelStart=r.start,r.direction==="ltr"?delete e.seatNumbering:e.seatNumbering={direction:"rtl"};for(let a of e.overrides??[])delete a.label;return!0}function fe(e){if(e.seatDisplayLabelMode||e.seatCount<1)return!1;let t=f(e);for(let n=0;n<e.seatCount;n+=1){let r=t.get(n)?.displayLabel;if(r===void 0||r!==p(e,n))return!1}e.seatDisplayLabelMode="number";for(let n of e.overrides??[])delete n.displayLabel;return!0}function ge(e,t){t.categoryKey===e.categoryKey&&delete t.categoryKey,t.labelStyle&&T(t.labelStyle,e.seatLabelStyle)&&delete t.labelStyle,t.label!==void 0&&t.label===g(e,t.index)&&delete t.label,(!e.segmentedRow||e.seatDisplayLabelMode==="number")&&t.displayLabel!==void 0&&t.displayLabel===S(e,t.index)&&delete t.displayLabel}function P(e){return Object.keys(e).every(t=>t==="index")}function ye(e){if(!e.overrides?.length)return!1;for(let n of e.overrides)ge(e,n);let t=e.overrides.filter(n=>!P(n));return t.length?e.overrides=t:delete e.overrides,!0}function me(e,t){if(!t.segmentedRow||JSON.stringify([e.seatNumbering,e.seatLabelStart])===JSON.stringify([t.seatNumbering,t.seatLabelStart])||t.seatDisplayLabelMode==="number")return!0;let r=f(t);for(let a=0;a<t.seatCount;a+=1)if(r.get(a)?.displayLabel===void 0)return!1;return!0}function Le(e){if(e.type!=="row")return e;let t=y(e,de);return t=y(t,be),t=y(t,fe),t=y(t,ye),me(e,t)?t:e}function Me(e){if(!e.overrides?.length)return e;let t=e.displayLabel??e.label,n=[];for(let a of e.overrides){let i={...a};i.label===`${e.label}-${i.index+1}`&&delete i.label,i.displayLabel===`${t}-${i.index+1}`&&delete i.displayLabel,i.categoryKey===e.categoryKey&&delete i.categoryKey,i.dx===0&&delete i.dx,i.dy===0&&delete i.dy,P(i)||n.push(i)}let r={...e};return n.length?r.overrides=n:delete r.overrides,r}function _(e){return e.type==="row"?Le(e):e.type==="table"?Me(e):e}function w(e){let t=e.objects.map(_),n=e.floors?.map(r=>({...r,objects:r.objects.map(_)}));return{...e,objects:t,...n?{floors:n}:{}}}var V=2,Se=3,N=6;function b(e,t){if(!Number.isFinite(e))return e;let n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function m(e){return{...e,x:b(e.x,V),y:b(e.y,V)}}function Q(e){let t={...e};t.origin&&typeof t.origin=="object"&&(t.origin=m(t.origin)),Array.isArray(t.outline)&&(t.outline=t.outline.map(m)),Array.isArray(t.points)&&(t.points=t.points.map(m)),typeof t.rotation=="number"&&(t.rotation=b(t.rotation,N)),typeof t.seatSpacing=="number"&&(t.seatSpacing=b(t.seatSpacing,N));let n=t.labelPresentation;return n?.position&&(t.labelPresentation={...n,position:m(n.position)}),Array.isArray(t.overrides)&&(t.overrides=t.overrides.map(r=>{let a={...r};for(let i of["dx","dy"]){let o=a[i];if(typeof o!="number")continue;let l=b(o,Se);l===0?delete a[i]:a[i]=l}return a})),t}function ve(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function D(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}function G(e){let t=D(e);if(!t?.url)return;let{calibration:n,derivedScale:r,assetId:a,...i}=t;return i}function xe(e){let t=n=>{let r=n.backgroundImage;r?.assetId&&(n.referenceImage||(n.referenceImage=r,n.backgroundImage=void 0))};t(e);for(let n of e.floors??[])t(n);return e}function j(e){let t=Q(e);return E(t),delete t.editor,delete t.arcFanGeneration,delete t.rowBlockGeneration,t}function ke(e){let t={...e};return delete t.referenceCategorySource,delete t.referenceDirectSeatImport,t}function Oe(e){let t=G(e),n=e.floors?.map(r=>({...r,objects:r.objects.map(j),referenceImage:void 0,backgroundImage:G(r)}));return w({...e,categories:e.categories.map(ke),objects:e.objects.map(j),referenceImage:void 0,venueSurveyRegistrations:void 0,backgroundImage:t,...n?{floors:n}:{}})}function Ie(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var nt=24,rt=2,Ce={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},Ee=["facilities","food-drink","navigation","accessibility"],B="M13 4.6a1.6 1.6 0 1 0-3.2 0 1.6 1.6 0 0 0 3.2 0 M11 6.5V13h5l2.4 6 M15 16.4A5 5 0 1 1 9 11.3",v=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:"M16 7a4 4 0 1 0-8 0 4 4 0 0 0 8 0 M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:"M15 5a3 3 0 1 0-6 0 3 3 0 0 0 6 0 M12 8l-4 10h8l-4-10 M10 18v4 M14 18v4"},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:B},{key:"first-aid",label:"First aid",group:"facilities",path:"M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z M12 8v8 M8 12h8"},{key:"coat-check",label:"Coat check",group:"facilities",path:"M12 6a2 2 0 0 1 0-4 2 2 0 0 1 1.6 3.2L21 13H3l8.4-7.8 M3 13h18"},{key:"atm",label:"ATM / cash",group:"facilities",path:"M2 6h20v12H2V6Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0 M6 9h.01 M18 15h.01"},{key:"info",label:"Info point",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M12 11v5 M12 8h.01"},{key:"lost-found",label:"Lost & found",group:"facilities",path:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14 M16 16l5 5 M9 8.5a2 2 0 1 1 3 1.7c-.8.5-1 .8-1 1.8 M11 15h.01"},{key:"restrooms",label:"Restrooms",group:"facilities",path:"M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M9 18v-3.5a3 3 0 0 1 6 0V18"},{key:"charging",label:"Charging point",group:"facilities",path:"M3 8h13v8H3V8Z M16 10h3v4h-3 M9.6 9l-2 3.5h2.5l-1.5 3"},{key:"smoking",label:"Smoking area",group:"facilities",path:"M2 15h13v3H2v-3Z M18 16h2 M19 8c0 1 1 1.5 1 2.5S19 12 19 13"},{key:"no-smoking",label:"No smoking",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M5.6 5.6l12.8 12.8 M7 13h6v2H7v-2Z"},{key:"food",label:"Food",group:"food-drink",path:"M7 3v6a2 2 0 0 0 4 0V3 M9 11v10 M17 3c-1.6 1-2.2 3-2.2 6 0 2 .9 3.2 2.2 3.6V21"},{key:"bar",label:"Bar",group:"food-drink",path:"M4 5h16l-8 8-8-8Z M12 13v6 M8 20h8"},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 8h13v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8Z M17 9h2a2 2 0 0 1 0 4h-2 M8 2v2 M11 2v2 M4 21h14"},{key:"water",label:"Water / drinks",group:"food-drink",path:"M12 22a7 7 0 0 1-7-7c0-5 7-12 7-12s7 7 7 12a7 7 0 0 1-7 7Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:"M6 8h12l-1 12H7L6 8Z M9 8V6a3 3 0 0 1 6 0v2"},{key:"screen",label:"Screen",group:"facilities",path:"M3 4h18v12H3V4Z M9 20h6 M12 16v4 M10 8l4 2-4 2V8Z"},{key:"sound-booth",label:"Sound booth",group:"facilities",path:"M6 4v16 M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4 M12 4v16 M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M18 4v16 M18 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4"},{key:"entrance",label:"Entrance",group:"navigation",path:"M14 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-5 M3 12h11 M10 8l4 4-4 4"},{key:"exit",label:"Exit",group:"navigation",path:"M10 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h5 M14 12h7 M17 8l4 4-4 4"},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:"M14 4.6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0 M12.5 8l-3.5 2 1.6 3.6-2 4.4 M12.5 10l3.5 1.5 M9 10.5l-3.5 1 M15 12h6 M18 9l3 3-3 3"},{key:"stairs",label:"Stairs",group:"navigation",path:"M3 20v-4h4v-4h4v-4h4V4h5"},{key:"elevator",label:"Elevator",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M8 11l1.5-2 1.5 2 M8 14l1.5 2 1.5-2 M15 8v8"},{key:"parking",label:"Parking",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M9 17V7h4a3 3 0 0 1 0 6H9"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:B},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:"M8 20a4 4 0 0 1-2-3c0-1 .5-2 .5-3a4.5 4.5 0 1 1 9 0c0 1.4-1 2-2 2.4-1.2.5-1.5 1-1.5 2.2 M17 6a5 5 0 0 1 1 6 M19.5 4a8 8 0 0 1 1.2 9"}],Re={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},H=new Map(v.map(e=>[e.key,e]));function Z(e){return e?H.get(e):void 0}function Ae(e){return Z(e)?.path}function _e(e){return typeof e=="string"&&H.has(e)}var Ve=v.map(e=>e.key);var it=24,ot=16,st=.14,O=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22}}],Ne=O.map(e=>e.key),x=new Map(O.map(e=>[e.key,e]));function I(e){return x.get(e)??x.get("circle")}function Te(e){return I(e).label}function Pe(e){return I(e).path}function we(e,t){return{scale:t*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function k(e){return typeof e=="string"&&x.has(e)}function Qe(e,t){return k(e)?e:k(t?.seatGlyph)?t.seatGlyph:"circle"}var ct=20,K={wheelchair:'<circle cx="10.6" cy="3.7" r="1.7" /><path d="M8.9 6.3v4.3a1.3 1.3 0 0 0 1.3 1.3h3.4l1.9 4.5h1.9" /><circle cx="9.7" cy="13.3" r="4.7" />',companion:'<circle cx="6" cy="6" r="2" /><circle cx="14" cy="6" r="2" /><path d="M2.5 16v-3.5A3.5 3.5 0 0 1 6 9a3.5 3.5 0 0 1 3.5 3.5V16M10.5 16v-3.5A3.5 3.5 0 0 1 14 9a3.5 3.5 0 0 1 3.5 3.5V16" />',"semi-ambulatory":'<circle cx="8" cy="4" r="1.7" /><path d="m8 6 2 4 3 2M10 10l-2 3-1 4M10 10l2 7M14 7l2 10" />',"designated-aisle":'<path d="M3.5 5.5v7h8.5V10H6.5M5 12.5V17M11 12.5V17" /><path d="M13.5 6.5H19M16.5 4l2.5 2.5L16.5 9" />',"step-free":'<circle cx="5.5" cy="5" r="1.7" /><path d="M5.5 7v4l3 2M2.5 16.5H8l7-7h3M8 16.5h10" />',hearing:'<path d="M7 16c-1-1.2-1.5-2.4-1.5-3.8V9a5 5 0 1 1 10 0c0 2.2-1.2 3.2-2.6 4-1.2.7-1.7 1.4-1.7 2.4A2.6 2.6 0 0 1 8.6 18" />',cart:'<path d="M8 6.5A4 4 0 1 0 8 13M17 6.5a4 4 0 1 0 0 6.5" />',"sign-language":'<path d="M6 16V8.5a1 1 0 0 1 2 0v3M8 11V5.5a1 1 0 0 1 2 0V11M10 11V4.5a1 1 0 0 1 2 0V11M12 11V6a1 1 0 0 1 2 0v6l1-1.5a1.2 1.2 0 0 1 2 1.3L14 17H9.5A3.5 3.5 0 0 1 6 13.5" />',"low-vision":'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><circle cx="10" cy="10" r="2.5" /><path d="m15 4 .5-1.5M17 5l1.5-.8" />',"sensory-friendly":'<path d="M4 11v-1a6 6 0 0 1 12 0v1M4 11h2.5v5H5a1 1 0 0 1-1-1v-4ZM16 11h-2.5v5H15a1 1 0 0 0 1-1v-4Z" /><path d="M8.5 11.5c.8.7 2.2.7 3 0M9 14c.6.4 1.4.4 2 0" />',"plus-size":'<path d="M5 9V6.5A2.5 2.5 0 0 1 7.5 4h5A2.5 2.5 0 0 1 15 6.5V9M3.5 8.5v5h13v-5M6 13.5V17M14 13.5V17" />',"lift-armrest":'<path d="M5 10V6.5A2.5 2.5 0 0 1 7.5 4h4A2.5 2.5 0 0 1 14 6.5V10M4 9v4h11V9M6 13v4M13 13v4" /><path d="M17 11V4M15 6l2-2 2 2" />',obstructedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="m4 17 12-14" />',restrictedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="M10 7.5v3.5M10 13.5h.01" />',premium:'<path d="m10 2.5 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7Z" />',note:'<circle cx="10" cy="10" r="7.5" /><path d="M10 9.2v4.6M10 6.3h.01" />'};function F(e){return K[e]??""}function Ge(e,t={}){let n=F(e);if(!n)return"";let r=t.size??18,a=20;return`<svg viewBox="0 0 ${a} ${a}" width="${r}" height="${r}" fill="none" stroke="currentColor" stroke-width="1.45" stroke-linecap="round" stroke-linejoin="round"`+(t.className?` class="${t.className}"`:"")+` aria-hidden="true" focusable="false">${n}</svg>`}var je=["butt","round","square"],De=["miter","round","bevel"],Be=["none","arrow"],$="round",Y="round",C="none";function U(e){return e==="line"||e==="polyline"}function He(e){return e==="polygon"||U(e)}function Ze(e){return{lineCap:e.lineCap??$,lineJoin:e.lineJoin??Y,startEnding:e.startEnding??C,endEnding:e.endEnding??C}}function Ke(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SEAT_TYPE_ICON_BODY,SEAT_TYPE_ICON_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphPath,seatTypeIconBody,seatTypeIconSvg,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconPath});
1
+ "use strict";var l=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var G=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},N=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q(t))!T.call(e,a)&&a!==n&&l(e,a,{get:()=>t[a],enumerable:!(r=A(t,a))||r.enumerable});return e};var P=e=>N(l({},"__esModule",{value:!0}),e);var le={};G(le,{DECOR_STAMP_ICON_PATHS:()=>Y,DEFAULT_SHAPE_LINE_CAP:()=>V,DEFAULT_SHAPE_LINE_ENDING:()=>f,DEFAULT_SHAPE_LINE_JOIN:()=>_,SEAT_GLYPHS:()=>p,SEAT_GLYPH_DETAIL_MIN_PX:()=>Me,SEAT_GLYPH_INSET:()=>Le,SEAT_GLYPH_ORDER:()=>W,SEAT_GLYPH_VIEWBOX:()=>me,SEAT_TYPE_ICON_BODY:()=>C,SEAT_TYPE_ICON_VIEWBOX:()=>ve,SHAPE_LINE_CAPS:()=>ne,SHAPE_LINE_ENDINGS:()=>ae,SHAPE_LINE_JOINS:()=>re,VENUE_ICONS:()=>c,VENUE_ICON_GROUP_LABELS:()=>K,VENUE_ICON_GROUP_ORDER:()=>F,VENUE_ICON_KEYS:()=>$,VENUE_ICON_STROKE:()=>be,VENUE_ICON_VIEWBOX:()=>ye,buyerBackgroundImage:()=>x,buyerFacingChartDoc:()=>Z,hasConflictingLegacyTrace:()=>B,isOpenShapeKind:()=>R,isPointShapeKind:()=>ie,isSeatGlyphKind:()=>d,isVenueIconKey:()=>J,migrateLegacyBackgroundLayersInPlace:()=>D,resolveSeatGlyph:()=>ee,resolvedShapeLineStyle:()=>oe,seatGlyph:()=>h,seatGlyphFit:()=>q,seatGlyphLabel:()=>z,seatGlyphPath:()=>X,seatTypeIconBody:()=>E,seatTypeIconSvg:()=>te,shapeArrowMetrics:()=>se,traceReferenceImage:()=>j,venueIcon:()=>I,venueIconPath:()=>U});module.exports=P(le);function g(e){let t=e;return delete t.referenceScan,delete t.referenceInventorySource,delete t.referenceInventoryExclusion,delete t.referenceSource,delete t.referenceAnnotationSource,e}var m=2,w=3,M=6;function o(e,t){if(!Number.isFinite(e))return e;let n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function s(e){return{...e,x:o(e.x,m),y:o(e.y,m)}}function L(e){let t={...e};t.origin&&typeof t.origin=="object"&&(t.origin=s(t.origin)),Array.isArray(t.outline)&&(t.outline=t.outline.map(s)),Array.isArray(t.points)&&(t.points=t.points.map(s)),typeof t.rotation=="number"&&(t.rotation=o(t.rotation,M)),typeof t.seatSpacing=="number"&&(t.seatSpacing=o(t.seatSpacing,M));let n=t.labelPresentation;return n?.position&&(t.labelPresentation={...n,position:s(n.position)}),Array.isArray(t.overrides)&&(t.overrides=t.overrides.map(r=>{let a={...r};for(let i of["dx","dy"]){let y=a[i];if(typeof y!="number")continue;let b=o(y,w);b===0?delete a[i]:a[i]=b}return a})),t}function j(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function x(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}function S(e){let t=x(e);if(!t?.url)return;let{calibration:n,derivedScale:r,assetId:a,...i}=t;return i}function D(e){let t=n=>{let r=n.backgroundImage;r?.assetId&&(n.referenceImage||(n.referenceImage=r,n.backgroundImage=void 0))};t(e);for(let n of e.floors??[])t(n);return e}function v(e){let t=L(e);return g(t),delete t.editor,delete t.arcFanGeneration,delete t.rowBlockGeneration,t}function H(e){let t={...e};return delete t.referenceCategorySource,delete t.referenceDirectSeatImport,t}function Z(e){let t=S(e),n=e.floors?.map(r=>({...r,objects:r.objects.map(v),referenceImage:void 0,backgroundImage:S(r)}));return{...e,categories:e.categories.map(H),objects:e.objects.map(v),referenceImage:void 0,venueSurveyRegistrations:void 0,backgroundImage:t,...n?{floors:n}:{}}}function B(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var ye=24,be=2,K={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},F=["facilities","food-drink","navigation","accessibility"],k="M13 4.6a1.6 1.6 0 1 0-3.2 0 1.6 1.6 0 0 0 3.2 0 M11 6.5V13h5l2.4 6 M15 16.4A5 5 0 1 1 9 11.3",c=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:"M16 7a4 4 0 1 0-8 0 4 4 0 0 0 8 0 M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:"M15 5a3 3 0 1 0-6 0 3 3 0 0 0 6 0 M12 8l-4 10h8l-4-10 M10 18v4 M14 18v4"},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:k},{key:"first-aid",label:"First aid",group:"facilities",path:"M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z M12 8v8 M8 12h8"},{key:"coat-check",label:"Coat check",group:"facilities",path:"M12 6a2 2 0 0 1 0-4 2 2 0 0 1 1.6 3.2L21 13H3l8.4-7.8 M3 13h18"},{key:"atm",label:"ATM / cash",group:"facilities",path:"M2 6h20v12H2V6Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0 M6 9h.01 M18 15h.01"},{key:"info",label:"Info point",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M12 11v5 M12 8h.01"},{key:"lost-found",label:"Lost & found",group:"facilities",path:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14 M16 16l5 5 M9 8.5a2 2 0 1 1 3 1.7c-.8.5-1 .8-1 1.8 M11 15h.01"},{key:"restrooms",label:"Restrooms",group:"facilities",path:"M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M9 18v-3.5a3 3 0 0 1 6 0V18"},{key:"charging",label:"Charging point",group:"facilities",path:"M3 8h13v8H3V8Z M16 10h3v4h-3 M9.6 9l-2 3.5h2.5l-1.5 3"},{key:"smoking",label:"Smoking area",group:"facilities",path:"M2 15h13v3H2v-3Z M18 16h2 M19 8c0 1 1 1.5 1 2.5S19 12 19 13"},{key:"no-smoking",label:"No smoking",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M5.6 5.6l12.8 12.8 M7 13h6v2H7v-2Z"},{key:"food",label:"Food",group:"food-drink",path:"M7 3v6a2 2 0 0 0 4 0V3 M9 11v10 M17 3c-1.6 1-2.2 3-2.2 6 0 2 .9 3.2 2.2 3.6V21"},{key:"bar",label:"Bar",group:"food-drink",path:"M4 5h16l-8 8-8-8Z M12 13v6 M8 20h8"},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 8h13v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8Z M17 9h2a2 2 0 0 1 0 4h-2 M8 2v2 M11 2v2 M4 21h14"},{key:"water",label:"Water / drinks",group:"food-drink",path:"M12 22a7 7 0 0 1-7-7c0-5 7-12 7-12s7 7 7 12a7 7 0 0 1-7 7Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:"M6 8h12l-1 12H7L6 8Z M9 8V6a3 3 0 0 1 6 0v2"},{key:"screen",label:"Screen",group:"facilities",path:"M3 4h18v12H3V4Z M9 20h6 M12 16v4 M10 8l4 2-4 2V8Z"},{key:"sound-booth",label:"Sound booth",group:"facilities",path:"M6 4v16 M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4 M12 4v16 M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M18 4v16 M18 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4"},{key:"entrance",label:"Entrance",group:"navigation",path:"M14 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-5 M3 12h11 M10 8l4 4-4 4"},{key:"exit",label:"Exit",group:"navigation",path:"M10 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h5 M14 12h7 M17 8l4 4-4 4"},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:"M14 4.6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0 M12.5 8l-3.5 2 1.6 3.6-2 4.4 M12.5 10l3.5 1.5 M9 10.5l-3.5 1 M15 12h6 M18 9l3 3-3 3"},{key:"stairs",label:"Stairs",group:"navigation",path:"M3 20v-4h4v-4h4v-4h4V4h5"},{key:"elevator",label:"Elevator",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M8 11l1.5-2 1.5 2 M8 14l1.5 2 1.5-2 M15 8v8"},{key:"parking",label:"Parking",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M9 17V7h4a3 3 0 0 1 0 6H9"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:k},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:"M8 20a4 4 0 0 1-2-3c0-1 .5-2 .5-3a4.5 4.5 0 1 1 9 0c0 1.4-1 2-2 2.4-1.2.5-1.5 1-1.5 2.2 M17 6a5 5 0 0 1 1 6 M19.5 4a8 8 0 0 1 1.2 9"}],Y={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},O=new Map(c.map(e=>[e.key,e]));function I(e){return e?O.get(e):void 0}function U(e){return I(e)?.path}function J(e){return typeof e=="string"&&O.has(e)}var $=c.map(e=>e.key);var me=24,Me=16,Le=.14,p=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22}}],W=p.map(e=>e.key),u=new Map(p.map(e=>[e.key,e]));function h(e){return u.get(e)??u.get("circle")}function z(e){return h(e).label}function X(e){return h(e).path}function q(e,t){return{scale:t*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function d(e){return typeof e=="string"&&u.has(e)}function ee(e,t){return d(e)?e:d(t?.seatGlyph)?t.seatGlyph:"circle"}var ve=20,C={wheelchair:'<circle cx="10.6" cy="3.7" r="1.7" /><path d="M8.9 6.3v4.3a1.3 1.3 0 0 0 1.3 1.3h3.4l1.9 4.5h1.9" /><circle cx="9.7" cy="13.3" r="4.7" />',companion:'<circle cx="6" cy="6" r="2" /><circle cx="14" cy="6" r="2" /><path d="M2.5 16v-3.5A3.5 3.5 0 0 1 6 9a3.5 3.5 0 0 1 3.5 3.5V16M10.5 16v-3.5A3.5 3.5 0 0 1 14 9a3.5 3.5 0 0 1 3.5 3.5V16" />',"semi-ambulatory":'<circle cx="8" cy="4" r="1.7" /><path d="m8 6 2 4 3 2M10 10l-2 3-1 4M10 10l2 7M14 7l2 10" />',"designated-aisle":'<path d="M3.5 5.5v7h8.5V10H6.5M5 12.5V17M11 12.5V17" /><path d="M13.5 6.5H19M16.5 4l2.5 2.5L16.5 9" />',"step-free":'<circle cx="5.5" cy="5" r="1.7" /><path d="M5.5 7v4l3 2M2.5 16.5H8l7-7h3M8 16.5h10" />',hearing:'<path d="M7 16c-1-1.2-1.5-2.4-1.5-3.8V9a5 5 0 1 1 10 0c0 2.2-1.2 3.2-2.6 4-1.2.7-1.7 1.4-1.7 2.4A2.6 2.6 0 0 1 8.6 18" />',cart:'<path d="M8 6.5A4 4 0 1 0 8 13M17 6.5a4 4 0 1 0 0 6.5" />',"sign-language":'<path d="M6 16V8.5a1 1 0 0 1 2 0v3M8 11V5.5a1 1 0 0 1 2 0V11M10 11V4.5a1 1 0 0 1 2 0V11M12 11V6a1 1 0 0 1 2 0v6l1-1.5a1.2 1.2 0 0 1 2 1.3L14 17H9.5A3.5 3.5 0 0 1 6 13.5" />',"low-vision":'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><circle cx="10" cy="10" r="2.5" /><path d="m15 4 .5-1.5M17 5l1.5-.8" />',"sensory-friendly":'<path d="M4 11v-1a6 6 0 0 1 12 0v1M4 11h2.5v5H5a1 1 0 0 1-1-1v-4ZM16 11h-2.5v5H15a1 1 0 0 0 1-1v-4Z" /><path d="M8.5 11.5c.8.7 2.2.7 3 0M9 14c.6.4 1.4.4 2 0" />',"plus-size":'<path d="M5 9V6.5A2.5 2.5 0 0 1 7.5 4h5A2.5 2.5 0 0 1 15 6.5V9M3.5 8.5v5h13v-5M6 13.5V17M14 13.5V17" />',"lift-armrest":'<path d="M5 10V6.5A2.5 2.5 0 0 1 7.5 4h4A2.5 2.5 0 0 1 14 6.5V10M4 9v4h11V9M6 13v4M13 13v4" /><path d="M17 11V4M15 6l2-2 2 2" />',obstructedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="m4 17 12-14" />',restrictedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="M10 7.5v3.5M10 13.5h.01" />',premium:'<path d="m10 2.5 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7Z" />',note:'<circle cx="10" cy="10" r="7.5" /><path d="M10 9.2v4.6M10 6.3h.01" />'};function E(e){return C[e]??""}function te(e,t={}){let n=E(e);if(!n)return"";let r=t.size??18,a=20;return`<svg viewBox="0 0 ${a} ${a}" width="${r}" height="${r}" fill="none" stroke="currentColor" stroke-width="1.45" stroke-linecap="round" stroke-linejoin="round"`+(t.className?` class="${t.className}"`:"")+` aria-hidden="true" focusable="false">${n}</svg>`}var ne=["butt","round","square"],re=["miter","round","bevel"],ae=["none","arrow"],V="round",_="round",f="none";function R(e){return e==="line"||e==="polyline"}function ie(e){return e==="polygon"||R(e)}function oe(e){return{lineCap:e.lineCap??V,lineJoin:e.lineJoin??_,startEnding:e.startEnding??f,endEnding:e.endEnding??f}}function se(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SEAT_TYPE_ICON_BODY,SEAT_TYPE_ICON_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphPath,seatTypeIconBody,seatTypeIconSvg,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconPath});
@@ -1 +1 @@
1
- import{a as p,b as t,c as x,d as a}from"../../chunk-P4J57TK6.js";import{a as s,b as u,c as v,d as w,e as y,f as z,g as A,h as B,i as C,j as D,k as E,l as F,m as G,n as H,o as I,p as J,q as K,r as L,s as M,t as N}from"../../chunk-TQN2VWQO.js";import{k as o,l as r,m as e,n as f,o as m}from"../../chunk-CFRNWESM.js";import{a as b,b as c,c as d,d as g,e as h,f as i,g as j,h as k,i as l,j as n,k as q}from"../../chunk-UL5OIGIF.js";import"../../chunk-5ITK5236.js";export{z as DECOR_STAMP_ICON_PATHS,H as DEFAULT_SHAPE_LINE_CAP,J as DEFAULT_SHAPE_LINE_ENDING,I as DEFAULT_SHAPE_LINE_JOIN,g as SEAT_GLYPHS,c as SEAT_GLYPH_DETAIL_MIN_PX,d as SEAT_GLYPH_INSET,h as SEAT_GLYPH_ORDER,b as SEAT_GLYPH_VIEWBOX,t as SEAT_TYPE_ICON_BODY,p as SEAT_TYPE_ICON_VIEWBOX,E as SHAPE_LINE_CAPS,G as SHAPE_LINE_ENDINGS,F as SHAPE_LINE_JOINS,y as VENUE_ICONS,v as VENUE_ICON_GROUP_LABELS,w as VENUE_ICON_GROUP_ORDER,D as VENUE_ICON_KEYS,u as VENUE_ICON_STROKE,s as VENUE_ICON_VIEWBOX,r as buyerBackgroundImage,f as buyerFacingChartDoc,m as hasConflictingLegacyTrace,K as isOpenShapeKind,L as isPointShapeKind,n as isSeatGlyphKind,C as isVenueIconKey,e as migrateLegacyBackgroundLayersInPlace,q as resolveSeatGlyph,M as resolvedShapeLineStyle,i as seatGlyph,l as seatGlyphFit,j as seatGlyphLabel,k as seatGlyphPath,x as seatTypeIconBody,a as seatTypeIconSvg,N as shapeArrowMetrics,o as traceReferenceImage,A as venueIcon,B as venueIconPath};
1
+ import{a as p,b as t,c as x,d as a}from"../../chunk-P4J57TK6.js";import{a as s,b as u,c as v,d as w,e as y,f as z,g as A,h as B,i as C,j as D,k as E,l as F,m as G,n as H,o as I,p as J,q as K,r as L,s as M,t as N}from"../../chunk-TQN2VWQO.js";import{k as o,l as r,m as e,n as f,o as m}from"../../chunk-5BMXWOE7.js";import{a as b,b as c,c as d,d as g,e as h,f as i,g as j,h as k,i as l,j as n,k as q}from"../../chunk-UL5OIGIF.js";import"../../chunk-5ITK5236.js";export{z as DECOR_STAMP_ICON_PATHS,H as DEFAULT_SHAPE_LINE_CAP,J as DEFAULT_SHAPE_LINE_ENDING,I as DEFAULT_SHAPE_LINE_JOIN,g as SEAT_GLYPHS,c as SEAT_GLYPH_DETAIL_MIN_PX,d as SEAT_GLYPH_INSET,h as SEAT_GLYPH_ORDER,b as SEAT_GLYPH_VIEWBOX,t as SEAT_TYPE_ICON_BODY,p as SEAT_TYPE_ICON_VIEWBOX,E as SHAPE_LINE_CAPS,G as SHAPE_LINE_ENDINGS,F as SHAPE_LINE_JOINS,y as VENUE_ICONS,v as VENUE_ICON_GROUP_LABELS,w as VENUE_ICON_GROUP_ORDER,D as VENUE_ICON_KEYS,u as VENUE_ICON_STROKE,s as VENUE_ICON_VIEWBOX,r as buyerBackgroundImage,f as buyerFacingChartDoc,m as hasConflictingLegacyTrace,K as isOpenShapeKind,L as isPointShapeKind,n as isSeatGlyphKind,C as isVenueIconKey,e as migrateLegacyBackgroundLayersInPlace,q as resolveSeatGlyph,M as resolvedShapeLineStyle,i as seatGlyph,l as seatGlyphFit,j as seatGlyphLabel,k as seatGlyphPath,x as seatTypeIconBody,a as seatTypeIconSvg,N as shapeArrowMetrics,o as traceReferenceImage,A as venueIcon,B as venueIconPath};