1const u=/^[A-Za-z][A-Za-z\s.'-]{0,48}$/,d=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;function b(e){return String(e||"").replace(/[^A-Za-z\s.'-]/g,"").replace(/\s{2,}/g," ")}function y(e){return String(e||"").replace(/\D/g,"").slice(0,3)}function v(e,r=10){return String(e||"").replace(/\D/g,"").slice(0,r)}function l(e,r=""){const t=String(r||"").toLowerCase();if(t.includes("aadhaar")||t.includes("aadhar"))return String(e||"").replace(/\D/g,"").slice(0,12);if(t.includes("pan"))return String(e||"").replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,10);if(t.includes("passport")){const a=String(e||"").replace(/[^A-Za-z0-9]/g,"").toUpperCase(),n=a.match(/[A-Z]/);if(!n)return"";const s=n[0],c=a.slice(a.indexOf(s)+1).replace(/\D/g,"").slice(0,7);return`${s}${c}`}return t.includes("driv")||t.includes("licence")||t.includes("license")?String(e||"").replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,15):String(e||"").replace(/[^A-Za-z0-9]/g,"").slice(0,16)}function o(e,r="Name",{minLength:t=2}={}){const a=String(e||"").trim();return a?a.length<t?t<=1?`${r} is required`:`${r} must be at least ${t} characters`:u.test(a)?"":`${r} can only contain letters`:`${r} is required`}function g(e){const r=String(e||"").trim();if(!r)return"Age is required";if(!/^\d+$/.test(r))return"Age must be a number";const t=Number(r);return t<5?"Age must be 5 years or above":t>100?"Enter a valid age":""}function A(e){const r=String(e||"").trim();return r?d.test(r)?"":"Enter a valid email address":"Email is required"}function N(e,r="+91"){const t=String(e||"").replace(/\D/g,"");if(!t)return"Mobile number is required";const a=String(r||"").replace(/\s/g,"");if(!a||a==="+")return"Country code is required";if(a==="+91"||a==="91"){if(t.length!==10)return"Mobile number must be 10 digits";if(!/^[6-9]/.test(t))return"Mobile number must start with 6â9"}else if(t.length<8||t.length>15)return"Enter a valid mobile number";return""}function f(e,r=""){const t=String(r||"").toLowerCase(),a=l(e,r);return a?t.includes("aadhaar")||t.includes("aadhar")?/^\d{12}$/.test(a)?"":"Aadhaar must be a 12-digit number":t.includes("pan")?/^[A-Z]{5}[0-9]{4}[A-Z]$/.test(a)?"":"PAN must be 10 characters (e.g. ABCDE1234F)":t.includes("passport")?/^[A-Z][0-9]{7}$/.test(a)?"":"Passport must be 1 letter + 7 digits (e.g. A1234567)":t.includes("driv")||t.includes("licence")||t.includes("license")?/^[A-Z0-9]{15}$/.test(a)?"":"Driving Licence must be a 15-character alphanumeric code":a.length<8?"ID number must be at least 8 characters":a.length>16?"ID number must be at most 16 characters":"":"ID number is required"}function i(e,r){return String(e||"").trim()?"":`${r} is required`}function S(e,r=!0){return{firstName:o(e.firstName,"First name"),lastName:o(e.lastName,"Last name",{minLength:1}),age:g(e.age),gender:i(e.gender,"Gender"),idType:i(e.idType,"ID type"),idNo:f(e.idNo,e.idType),accommodation:r?i(e.accommodation,"Accommodation"):""}}function D(e){return Object.values(e).some(Boolean)}function I(e={}){return{district:i(e.district,"District"),depot:i(e.depot,"Depot"),destination:i(e.destination,"Destination"),packageType:i(e.packageType,"Package tour")}}function C(e,r="PNR"){const t=String(e||"").trim();return t?t.length<4?`Enter a valid ${r}`:"":`${r} is required`}const m="Invalid PNR no or mobile number entered";function P(){return m}const E=[{id:1,label:"Passenger Details"},{id:2,label:"Passenger Contact"},{id:3,label:"Review & Confirm"},{id:4,label:"Payment"},{id:5,label:"Booking Confirmation"}],$=["PAN Card","Driving Licence","Aadhaar Card","Passport","Other"],k=["Male","Female","Others"],M=6,w=["Children below 5 years of age do not require a ticket and will not be provided a separate seat or bed.","Children aged 5 years and above must travel on a full adult ticket.","Age proof (birth certificate / Aadhaar) may be required at boarding for child passengers.","No child concession is applicable on tour package fares.","Accommodation (if opted) is shared as per the selected occupancy. Extra bedding is subject to availability."],T=["The seat(s) booked under this e-ticket are not transferable.","This e-ticket is valid only for the specified seat number and bus service.","Please carry a valid ID card for each passenger along with this e-ticket during the journey.","Please keep the ticket safely till the end of the journey.","The Corporation reserves the right to change or cancel the class of service.","On seats reserved for ladies, only a lady can travel.","Luggage charges will be levied as per rules.","Please reach the boarding point 15 minutes before the start of the journey.","Children up to 5 years of age are not required to purchase a ticket. A valid age proof must be produced at the time of entry/check-in.","Children up to 5 years may enjoy all the amenities included in the package when accompanied by a parent or guardian.","If the package includes overnight stay, no separate bed will be provided for children up to 5 years. They will be accommodated using the existing bedding with their parent/guardian.","Children above 5 years of age must purchase a full ticket.","No child concession or discount is applicable for children above 5 years of age."],q=e=>new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",maximumFractionDigits:0}).format(e);function R(e,r="â"){const t=String(e||"").replace(/\s/g,"");return t?t.length<=4?t:`${"X".repeat(t.length-4)}${t.slice(-4)}`:r}function L(e){return{id:h(),firstName:"",lastName:"",age:"",gender:"",idType:"",idNo:"",accommodation:"",index:e}}function h(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`pax-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}export{w as C,k as G,$ as I,M,E as S,T,N as a,I as b,A as c,R as d,i as e,q as f,b as g,D as h,P as i,y as j,L as k,l,S as m,v as s,C as v};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.