@polycyphers/bim 0.1.8 → 0.2.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.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("react");c=s(c,1);let l=require("dompurify");l=s(l,1);let u=require("react/jsx-runtime"),d=require("@polycyphers/license");var f={studio:`Open studio`,pricing:`Pricing`,start:`Start with your sketch`,eyebrow:`FROM YOUR FIRST IDEA`,hero:`Room for a better idea.`,intro:`Turn a sketch into thoughtful layouts. Explore the possibilities, refine the details, and take your chosen plan into BIM.`,try:`Explore a real example`,upload:`Upload a sketch`,steps:[`Your sketch`,`Measured footprint`,`Layout proposals`,`Your BIM model`],workspace:`Apartment concept`,example:`Reference project · site-confirmed geometry`,measure:`Measurements`,proposals:`Proposals`,refine:`Refine`,download:`Download`,back:`All projects`,generate:`Generate layouts`,generating:`Checking your layout…`,area:`Wall-axis area`,net:`Clear net area`,perimeter:`Perimeter`,recommended:`Recommended`,checks:`Rule checks`,schedule:`Room schedule`,tradeoffs:`The trade-offs`,send:`Preview edit`,chat:`What would you like to change?`,hint:`Try: “Make the bedroom 3.20 wide”`,save:`Apply measurements`,undo:`Undo`,delete:`Delete project data`,export:`Build & download model`,loading:`Loading…`,select:`Choose this layout`,warning:`Needs review`,pass:`Checked`,notes:`Source notes`,confirm:`Confirm the measurements before generating. The engine checks geometry; a sketch is not a survey.`,empty:`A little information. Better possibilities.`,emptyBody:`Upload a sketch for a local preview, then enter and confirm your measured walls and room programme. The engine checks every dimension.`,privacy:`Private project storage · configurable retention`,disclaimer:`Concept proposal, not a construction drawing; verify with a licensed architect/engineer.`,free:`Your configured free allowance is shown below.`,paid:`Project pricing is shown below.`,paidBody:`A project includes its layout proposals, chat refinements and BIM export, within the configured fair-use caps.`,before:`A sketch, with potential.`,after:`A plan, with purpose.`,downloadNote:`IFC4, DWG and DXF use the same checked scene. Revit and BIMcollab Zoom acceptance remains subject to actual viewer testing.`,language:`Language`,status:`Status`,width:`Width`,depth:`Depth`,signin:`Sign in`,email:`Email`,password:`Password`,account:`Account`,cancel:`Cancel`,close:`Close`},p={en:f,de:{...f,studio:`Studio öffnen`,pricing:`Preise`,start:`Mit Ihrer Skizze starten`,eyebrow:`VON DER ERSTEN IDEE`,hero:`Raum für eine bessere Idee.`,intro:`Aus Ihrer Skizze werden durchdachte Grundrisse. Vergleichen, verfeinern und als BIM-Konzept herunterladen.`,try:`Beispiel erkunden`,upload:`Skizze hochladen`,steps:[`Ihre Skizze`,`Gemessener Umriss`,`Grundrissvorschläge`,`Ihr BIM-Modell`],measure:`Maße`,proposals:`Vorschläge`,refine:`Verfeinern`,download:`Herunterladen`,generate:`Grundrisse erstellen`,save:`Maße anwenden`,checks:`Regelprüfung`,schedule:`Raumbuch`,tradeoffs:`Abwägungen`,send:`Änderung prüfen`,chat:`Was möchten Sie ändern?`,recommended:`Empfohlen`,select:`Grundriss wählen`,undo:`Rückgängig`,delete:`Projektdaten löschen`,export:`Modell erstellen und laden`,area:`Wandachsfläche`,net:`Lichte Nettofläche`,perimeter:`Umfang`,signin:`Anmelden`,email:`E-Mail`,password:`Passwort`,cancel:`Abbrechen`,close:`Schließen`},fr:{...f,studio:`Ouvrir le studio`,pricing:`Tarifs`,start:`Commencez par votre croquis`,eyebrow:`DE VOTRE PREMIÈRE IDÉE`,hero:`Place à une meilleure idée.`,intro:`Transformez un croquis en plans réfléchis. Comparez, affinez et emportez votre concept en BIM.`,try:`Explorer un exemple réel`,upload:`Importer un croquis`,steps:[`Votre croquis`,`Contour mesuré`,`Propositions`,`Votre modèle BIM`],measure:`Mesures`,proposals:`Propositions`,refine:`Affiner`,download:`Télécharger`,generate:`Générer les plans`,save:`Appliquer les mesures`,checks:`Règles vérifiées`,schedule:`Tableau des pièces`,tradeoffs:`Les compromis`,send:`Vérifier la modification`,chat:`Que souhaitez-vous modifier ?`,recommended:`Recommandé`,select:`Choisir ce plan`,undo:`Annuler`,delete:`Supprimer les données du projet`,export:`Créer et télécharger le modèle`,area:`Surface aux axes`,net:`Surface nette`,perimeter:`Périmètre`,signin:`Se connecter`,email:`E-mail`,password:`Mot de passe`,cancel:`Annuler`,close:`Fermer`},ar:{...f,studio:`فتح الاستوديو`,pricing:`الأسعار`,start:`ابدأ برسمك`,eyebrow:`من فكرتك الأولى`,hero:`مساحة لفكرة أفضل.`,intro:`حوّل رسمك إلى مخططات مدروسة. قارن الخيارات، حسّن التفاصيل، وحمّل نموذج BIM الذي تختاره.`,try:`استكشف مثالاً حقيقياً`,upload:`ارفع رسماً`,steps:[`رسمك`,`الأبعاد المؤكدة`,`مقترحات التخطيط`,`نموذج BIM`],measure:`الأبعاد`,proposals:`المقترحات`,refine:`تعديل`,download:`تحميل`,generate:`إنشاء المخططات`,save:`تطبيق الأبعاد`,checks:`فحص القواعد`,schedule:`جدول الغرف`,tradeoffs:`المفاضلات`,send:`معاينة التعديل`,chat:`ماذا تريد أن تعدّل؟`,recommended:`موصى به`,select:`اختر هذا المخطط`,undo:`تراجع`,delete:`حذف بيانات المشروع`,export:`إنشاء النموذج وتحميله`,area:`مساحة محاور الجدران`,net:`المساحة الصافية`,perimeter:`المحيط`,signin:`تسجيل الدخول`,email:`البريد الإلكتروني`,password:`كلمة المرور`,cancel:`إلغاء`,close:`إغلاق`}};Object.assign(p.de,{workspace:`Wohnungskonzept`,example:`Referenzprojekt · vor Ort bestätigte Geometrie`,back:`Alle Projekte`,generating:`Grundriss wird geprüft…`,hint:`Zum Beispiel: „Schlafzimmer 3,20 m breit machen“`,loading:`Laden…`,warning:`Prüfung erforderlich`,pass:`Geprüft`,notes:`Quellenhinweise`,confirm:`Maße vor der Erstellung bestätigen. Die Geometrieprüfung ersetzt kein Aufmaß.`,empty:`Wenige Angaben. Bessere Möglichkeiten.`,emptyBody:`Skizze lokal ansehen, dann gemessene Wände und Raumprogramm eingeben und prüfen. Die Engine kontrolliert jede Abmessung.`,privacy:`Privater Projektspeicher · konfigurierbare Aufbewahrung`,disclaimer:`Konzeptvorschlag, keine Ausführungszeichnung; durch zugelassene Architekten oder Ingenieure prüfen lassen.`,free:`Ihr konfiguriertes Freikontingent steht unten.`,paid:`Der Projektpreis steht unten.`,paidBody:`Ein Projekt umfasst Vorschläge, Chat-Änderungen und BIM-Export innerhalb der angezeigten Nutzungslimits.`,before:`Eine Skizze mit Potenzial.`,after:`Ein Plan mit Perspektive.`,downloadNote:`IFC4, DWG und DXF verwenden dieselbe geprüfte Szene. Die Freigabe für Revit und BIMcollab Zoom erfordert tatsächliche Viewer-Tests.`,language:`Sprache`,status:`Status`,width:`Breite`,depth:`Tiefe`,account:`Konto`}),Object.assign(p.fr,{workspace:`Concept d’appartement`,example:`Projet de référence · géométrie confirmée sur site`,back:`Tous les projets`,generating:`Vérification du plan…`,hint:`Exemple : « Donner 3,20 m de largeur à la chambre »`,loading:`Chargement…`,warning:`À vérifier`,pass:`Vérifié`,notes:`Notes sur les sources`,confirm:`Confirmez les dimensions avant de générer. Le contrôle géométrique ne remplace pas un relevé.`,empty:`Quelques informations. De meilleures possibilités.`,emptyBody:`Affichez un aperçu local du croquis, puis saisissez et vérifiez les murs mesurés et le programme. Le moteur contrôle chaque dimension.`,privacy:`Stockage privé · durée de conservation configurable`,disclaimer:`Proposition conceptuelle, non destinée à la construction ; à vérifier avec un architecte ou ingénieur habilité.`,free:`Votre quota gratuit configuré figure ci-dessous.`,paid:`Le tarif du projet figure ci-dessous.`,paidBody:`Un projet comprend les propositions, les modifications par chat et l’export BIM dans les limites affichées.`,before:`Un croquis prometteur.`,after:`Un plan qui prend forme.`,downloadNote:`IFC4, DWG et DXF utilisent la même scène vérifiée. La compatibilité avec Revit et BIMcollab Zoom reste soumise à des essais réels.`,language:`Langue`,status:`État`,width:`Largeur`,depth:`Profondeur`,account:`Compte`}),Object.assign(p.ar,{workspace:`تصوّر شقة`,example:`مشروع مرجعي · هندسة مؤكدة ميدانياً`,back:`كل المشاريع`,generating:`جارٍ فحص المخطط…`,hint:`مثال: «اجعل عرض غرفة النوم 3.20 م»`,loading:`جارٍ التحميل…`,warning:`يحتاج إلى مراجعة`,pass:`تم الفحص`,notes:`ملاحظات المصادر`,confirm:`أكّد الأبعاد قبل الإنشاء. فحص الهندسة لا يحل محل الرفع الميداني.`,empty:`معلومات قليلة. خيارات أفضل.`,emptyBody:`عاين الرسم محلياً، ثم أدخل أبعاد الجدران المقاسة وبرنامج الغرف وراجعها. يفحص المحرك كل بُعد.`,privacy:`تخزين خاص للمشروع · مدة احتفاظ قابلة للضبط`,disclaimer:`مقترح تصوّري وليس مخططاً تنفيذياً؛ يجب مراجعته مع مهندس أو معماري مرخّص.`,free:`تظهر حصتك المجانية المضبوطة أدناه.`,paid:`يظهر سعر المشروع أدناه.`,paidBody:`يشمل المشروع المقترحات وتعديلات المحادثة وتصدير BIM ضمن الحدود المعروضة.`,before:`رسم يحمل إمكانات.`,after:`مخطط واضح الهدف.`,downloadNote:`تستخدم IFC4 وDWG وDXF المشهد المفحوص نفسه. يبقى اعتماد Revit وBIMcollab Zoom رهن اختبار فعلي.`,language:`اللغة`,status:`الحالة`,width:`العرض`,depth:`العمق`,account:`الحساب`});var m={de:{"New project":`Neues Projekt`,"Enter measurements":`Maße eingeben`,"Resume saved project":`Gespeichertes Projekt öffnen`,"Measured footprint":`Gemessener Umriss`,"Length (m)":`Länge (m)`,"Bearing (°)":`Richtung (°)`,Wall:`Wand`,Exterior:`Außenwand`,"Party · no openings":`Brand-/Nachbarwand · keine Öffnungen`,"Add wall":`Wand hinzufügen`,"Remove last wall":`Letzte Wand entfernen`,"Room programme":`Raumprogramm`,"Bedroom width":`Schlafzimmerbreite`,"Bedroom depth":`Schlafzimmertiefe`,"Bathroom width":`Badbreite`,"Bathroom depth":`Badtiefe`,"Hall width":`Flurbreite`,"Wardrobe length":`Schranklänge`,"Balcony depth (0 for none)":`Balkontiefe (0 ohne Balkon)`,"Balcony sliding door width":`Breite der Balkonschiebetür`,"Entrance wall":`Eingangswand`,"Balcony wall":`Balkonwand`,"Choose a wall":`Wand wählen`,"Main view wall":`Wand zur Hauptaussicht`,"No preference":`Keine Präferenz`,"Clear ceiling height (m)":`Lichte Raumhöhe (m)`,Country:`Land`,"Check footprint & generate":`Umriss prüfen und erstellen`,"Attach sketch":`Skizze anhängen`,"Choose sketch image":`Skizzenbild wählen`,"Unsaved edit preview":`Nicht gespeicherte Änderungsvorschau`,"Apply as new version":`Als neue Version übernehmen`,"Discard preview":`Vorschau verwerfen`,"Create a verified account":`Verifiziertes Konto erstellen`,"Verify your email":`E-Mail bestätigen`,"Verification token":`Bestätigungscode`,"Send verification email":`Bestätigungs-E-Mail senden`,"Verify & set password":`Bestätigen und Passwort setzen`,"Create account":`Konto erstellen`,"Verify email":`E-Mail bestätigen`,"Sign in":`Anmelden`,"Value provenance & discrepancies":`Werteherkunft und Abweichungen`,"Discrepancy report":`Abweichungsbericht`},fr:{"New project":`Nouveau projet`,"Enter measurements":`Saisir les mesures`,"Resume saved project":`Reprendre le projet`,"Measured footprint":`Contour mesuré`,"Length (m)":`Longueur (m)`,"Bearing (°)":`Orientation (°)`,Wall:`Mur`,Exterior:`Extérieur`,"Party · no openings":`Mitoyen · sans ouverture`,"Add wall":`Ajouter un mur`,"Remove last wall":`Retirer le dernier mur`,"Room programme":`Programme des pièces`,"Bedroom width":`Largeur de chambre`,"Bedroom depth":`Profondeur de chambre`,"Bathroom width":`Largeur de salle de bains`,"Bathroom depth":`Profondeur de salle de bains`,"Hall width":`Largeur du dégagement`,"Wardrobe length":`Longueur du placard`,"Balcony depth (0 for none)":`Profondeur du balcon (0 sans balcon)`,"Balcony sliding door width":`Largeur de baie coulissante`,"Entrance wall":`Mur de l’entrée`,"Balcony wall":`Mur du balcon`,"Choose a wall":`Choisir un mur`,"Main view wall":`Mur vers la vue principale`,"No preference":`Sans préférence`,"Clear ceiling height (m)":`Hauteur libre (m)`,Country:`Pays`,"Check footprint & generate":`Vérifier le contour et générer`,"Attach sketch":`Joindre le croquis`,"Choose sketch image":`Choisir le croquis`,"Unsaved edit preview":`Aperçu non enregistré`,"Apply as new version":`Appliquer comme nouvelle version`,"Discard preview":`Abandonner l’aperçu`,"Create a verified account":`Créer un compte vérifié`,"Verify your email":`Vérifier votre e-mail`,"Verification token":`Code de vérification`,"Send verification email":`Envoyer l’e-mail de vérification`,"Verify & set password":`Vérifier et définir le mot de passe`,"Create account":`Créer un compte`,"Verify email":`Vérifier l’e-mail`,"Sign in":`Se connecter`,"Value provenance & discrepancies":`Origine des valeurs et écarts`,"Discrepancy report":`Rapport des écarts`},ar:{"New project":`مشروع جديد`,"Enter measurements":`أدخل الأبعاد`,"Resume saved project":`استئناف المشروع المحفوظ`,"Measured footprint":`المحيط المقاس`,"Length (m)":`الطول (م)`,"Bearing (°)":`الاتجاه (°)`,Wall:`الجدار`,Exterior:`خارجي`,"Party · no openings":`مشترك · بلا فتحات`,"Add wall":`إضافة جدار`,"Remove last wall":`حذف آخر جدار`,"Room programme":`برنامج الغرف`,"Bedroom width":`عرض غرفة النوم`,"Bedroom depth":`عمق غرفة النوم`,"Bathroom width":`عرض الحمام`,"Bathroom depth":`عمق الحمام`,"Hall width":`عرض الممر`,"Wardrobe length":`طول الخزانة`,"Balcony depth (0 for none)":`عمق الشرفة (0 بدون شرفة)`,"Balcony sliding door width":`عرض باب الشرفة المنزلق`,"Entrance wall":`جدار المدخل`,"Balcony wall":`جدار الشرفة`,"Choose a wall":`اختر جداراً`,"Main view wall":`جدار الإطلالة الرئيسية`,"No preference":`بلا تفضيل`,"Clear ceiling height (m)":`ارتفاع السقف الصافي (م)`,Country:`البلد`,"Check footprint & generate":`فحص المحيط وإنشاء المقترحات`,"Attach sketch":`إرفاق الرسم`,"Choose sketch image":`اختيار صورة الرسم`,"Unsaved edit preview":`معاينة تعديل غير محفوظ`,"Apply as new version":`تطبيق كإصدار جديد`,"Discard preview":`إلغاء المعاينة`,"Create a verified account":`إنشاء حساب موثّق`,"Verify your email":`تأكيد البريد الإلكتروني`,"Verification token":`رمز التحقق`,"Send verification email":`إرسال رسالة التحقق`,"Verify & set password":`تأكيد وتعيين كلمة المرور`,"Create account":`إنشاء حساب`,"Verify email":`تأكيد البريد`,"Sign in":`تسجيل الدخول`,"Value provenance & discrepancies":`مصادر القيم والفروقات`,"Discrepancy report":`تقرير الفروقات`}};Object.assign(m.de,{"Plan your next space":`Ihren nächsten Raum planen`,"Apartment layout":`Wohnungsgrundriss`,"House extension":`Hausanbau`,Renovation:`Renovierung`,"Account options":`Kontooptionen`,"Account actions":`Kontoaktionen`,"Delete project content":`Projektinhalte löschen`,"Sign out":`Abmelden`,"Before image upload":`Vor dem Bild-Upload`,"I have permission to use this image for this project.":`Ich darf dieses Bild für dieses Projekt verwenden.`,"I understand the AI image-processing disclosure above.":`Ich habe den obigen Hinweis zur KI-Bildverarbeitung verstanden.`,"What would you like to create?":`Was möchten Sie erstellen?`,"Upload for scanning":`Zur Sicherheitsprüfung hochladen`,"Remove local image":`Lokales Bild entfernen`,"What should the sketch reader focus on?":`Worauf soll die Skizzenanalyse achten?`,"Read saved sketch with AI · observations only":`Gespeicherte Skizze mit KI lesen · nur Beobachtungen`,"Recognized outline · estimated":`Erkannter Umriss · geschätzt`,"Preview recognized outline":`Erkannten Umriss ansehen`,"Local estimated preview only. The saved project is unchanged.":`Nur lokale Schätzvorschau. Das gespeicherte Projekt bleibt unverändert.`,"Sketch observations to confirm":`Zu prüfende Skizzenbeobachtungen`,"Required layout checks passed":`Erforderliche Grundrissprüfungen bestanden`,"Reference sources remain visible below.":`Referenzquellen stehen weiterhin unten.`,"Project billing":`Projektabrechnung`,"Continue to Stripe":`Weiter zu Stripe`,"Refresh project quote":`Projektangebot aktualisieren`,"View project price":`Projektpreis ansehen`,"Purchases are not enabled in this environment.":`Käufe sind in dieser Umgebung deaktiviert.`,"2D concept drawings":`2D-Konzeptzeichnungen`,"Prepare PDF / editable DXF / SVG":`PDF / bearbeitbares DXF / SVG vorbereiten`,Room:`Raum`,"Axis m²":`Achsfläche m²`,"Net m²":`Netto m²`,Total:`Summe`,Hide:`Ausblenden`,"Saved project files · download without a new export":`Gespeicherte Projektdateien · ohne neuen Export laden`,"Use saved sketch":`Gespeicherte Skizze verwenden`,"Allow optional visit and paywall analytics":`Optionale Besuchs- und Bezahlschrankenanalyse erlauben`,"Delete all project content?":`Alle Projektinhalte löschen?`,"Delete my project content":`Meine Projektinhalte löschen`,Cancel:`Abbrechen`,"Every supplied value and its source":`Alle angegebenen Werte und ihre Quellen`,"No discrepancies reported by the engine.":`Keine Abweichungen von der Engine gemeldet.`,"Discrepancy report unavailable.":`Abweichungsbericht nicht verfügbar.`,Value:`Wert`,"Origin / evidence":`Herkunft / Nachweis`,Source:`Quelle`,estimated:`geschätzt`,"user-given":`Nutzereingabe`,measured:`gemessen`,calculated:`berechnet`,unconfirmed:`unbestätigt`,"reviewed evidence":`geprüfter Nachweis`,unlabelled:`ohne Herkunft`,Unknown:`Unbekannt`,"Requested dimensions. Every value is checked by the shared engine.":`Gewünschte Maße. Jeder Wert wird von der gemeinsamen Engine geprüft.`,"I confirm these measured dimensions and angle assumptions.":`Ich bestätige diese gemessenen Maße und Winkelannahmen.`,"Your measurements define the plan.":`Ihre Maße bestimmen den Plan.`,"Local image preview. No dimensions are inferred from this display.":`Lokale Bildvorschau. Aus dieser Anzeige werden keine Maße abgeleitet.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`Skizze als Referenz anhängen. Hinter diesem Formular liegt kein versteckter Beispielumriss.`,"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.":`Der Dienst prüft und normalisiert das Bild vor der Speicherung. Die Dateiauswahl allein sendet es nicht an einen KI-Anbieter. Erst die angeforderte Skizzenanalyse übermittelt das bereinigte Bild an Anthropic Claude. EU-Speicherung bestimmt nicht den Ort der KI-Verarbeitung; Anbieterregion und Datenschutzbedingungen müssen konfiguriert werden.`,"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.":`Die Analyse sendet dieses bereinigte Bild an Anthropic Claude. EU-Speicherung und KI-Verarbeitungsort sind getrennt; der Dienst muss die Datenschutzbedingungen konfigurieren.`,"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.":`Damit wird die Löschung Ihrer Projekte, Skizzen und erzeugten Dateien in diesem Dienst angefordert. Kontoidentität, Abrechnungsdaten und notwendige Missbrauchsschutzdaten bleiben erhalten. Offene Abrechnung kann den Abschluss verzögern; das Ergebnis des Dienstes wird angezeigt.`}),Object.assign(m.fr,{"Plan your next space":`Préparez votre prochain espace`,"Apartment layout":`Plan d’appartement`,"House extension":`Extension de maison`,Renovation:`Rénovation`,"Account options":`Options du compte`,"Account actions":`Actions du compte`,"Delete project content":`Supprimer le contenu des projets`,"Sign out":`Se déconnecter`,"Before image upload":`Avant l’envoi de l’image`,"I have permission to use this image for this project.":`Je dispose de l’autorisation d’utiliser cette image pour ce projet.`,"I understand the AI image-processing disclosure above.":`J’ai compris les informations ci-dessus sur le traitement des images par IA.`,"What would you like to create?":`Que souhaitez-vous créer ?`,"Upload for scanning":`Envoyer pour contrôle de sécurité`,"Remove local image":`Retirer l’image locale`,"What should the sketch reader focus on?":`Sur quoi la lecture du croquis doit-elle porter ?`,"Read saved sketch with AI · observations only":`Lire le croquis enregistré par IA · observations seules`,"Recognized outline · estimated":`Contour reconnu · estimé`,"Preview recognized outline":`Prévisualiser le contour reconnu`,"Local estimated preview only. The saved project is unchanged.":`Aperçu estimé local uniquement. Le projet enregistré est inchangé.`,"Sketch observations to confirm":`Observations du croquis à confirmer`,"Required layout checks passed":`Contrôles requis du plan réussis`,"Reference sources remain visible below.":`Les sources de référence restent visibles ci-dessous.`,"Project billing":`Facturation du projet`,"Continue to Stripe":`Continuer vers Stripe`,"Refresh project quote":`Actualiser le devis du projet`,"View project price":`Voir le prix du projet`,"Purchases are not enabled in this environment.":`Les achats ne sont pas activés dans cet environnement.`,"2D concept drawings":`Dessins conceptuels 2D`,"Prepare PDF / editable DXF / SVG":`Préparer PDF / DXF modifiable / SVG`,Room:`Pièce`,"Axis m²":`Surface aux axes m²`,"Net m²":`Nette m²`,Total:`Total`,Hide:`Masquer`,"Saved project files · download without a new export":`Fichiers enregistrés · télécharger sans nouvel export`,"Use saved sketch":`Utiliser le croquis enregistré`,"Allow optional visit and paywall analytics":`Autoriser les statistiques facultatives de visite et de paiement`,"Delete all project content?":`Supprimer tout le contenu des projets ?`,"Delete my project content":`Supprimer le contenu de mes projets`,Cancel:`Annuler`,"Every supplied value and its source":`Chaque valeur fournie et sa source`,"No discrepancies reported by the engine.":`Aucun écart signalé par le moteur.`,"Discrepancy report unavailable.":`Rapport des écarts indisponible.`,Value:`Valeur`,"Origin / evidence":`Origine / preuve`,Source:`Source`,estimated:`estimé`,"user-given":`fourni par l’utilisateur`,measured:`mesuré`,calculated:`calculé`,unconfirmed:`non confirmé`,"reviewed evidence":`preuve vérifiée`,unlabelled:`sans origine`,Unknown:`Inconnu`,"Requested dimensions. Every value is checked by the shared engine.":`Dimensions demandées. Chaque valeur est contrôlée par le moteur partagé.`,"I confirm these measured dimensions and angle assumptions.":`Je confirme ces dimensions mesurées et hypothèses d’angles.`,"Your measurements define the plan.":`Vos mesures définissent le plan.`,"Local image preview. No dimensions are inferred from this display.":`Aperçu local de l’image. Aucune dimension n’est déduite de cet affichage.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`Joignez votre croquis comme référence. Aucun contour exemple n’est caché dans ce formulaire.`,"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.":`Le service contrôle et normalise l’image avant stockage. La sélection d’un fichier ne l’envoie pas à un fournisseur d’IA. Seule la lecture explicitement demandée transmet l’image assainie à Anthropic Claude. Le stockage dans l’UE ne détermine pas le lieu d’inférence ; la région du fournisseur et les conditions de traitement doivent être configurées.`,"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.":`La lecture transmet cette image assainie à Anthropic Claude. Le stockage dans l’UE et le lieu d’inférence sont distincts ; le service doit configurer les conditions de traitement.`,"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.":`Cette demande concerne les projets, croquis et fichiers générés dans ce service. L’identité du compte, la facturation et les données anti-abus nécessaires sont conservées. Une comptabilisation en attente peut retarder la suppression ; le résultat du service sera affiché.`}),Object.assign(m.ar,{"Plan your next space":`خطّط لمساحتك القادمة`,"Apartment layout":`تخطيط شقة`,"House extension":`توسعة منزل`,Renovation:`تجديد`,"Account options":`خيارات الحساب`,"Account actions":`إجراءات الحساب`,"Delete project content":`حذف محتوى المشاريع`,"Sign out":`تسجيل الخروج`,"Before image upload":`قبل رفع الصورة`,"I have permission to use this image for this project.":`لدي إذن باستخدام هذه الصورة لهذا المشروع.`,"I understand the AI image-processing disclosure above.":`أفهم توضيح معالجة الصورة بالذكاء الاصطناعي أعلاه.`,"What would you like to create?":`ماذا تريد إنشاءه؟`,"Upload for scanning":`رفع للفحص الأمني`,"Remove local image":`إزالة الصورة المحلية`,"What should the sketch reader focus on?":`على ماذا يجب أن تركز قراءة الرسم؟`,"Read saved sketch with AI · observations only":`قراءة الرسم المحفوظ بالذكاء الاصطناعي · ملاحظات فقط`,"Recognized outline · estimated":`المحيط المستخرج · تقديري`,"Preview recognized outline":`معاينة المحيط المستخرج`,"Local estimated preview only. The saved project is unchanged.":`معاينة تقديرية محلية فقط. المشروع المحفوظ لم يتغير.`,"Sketch observations to confirm":`ملاحظات الرسم المطلوب مراجعتها`,"Required layout checks passed":`اجتازت اختبارات التخطيط المطلوبة`,"Reference sources remain visible below.":`تبقى المصادر المرجعية ظاهرة أدناه.`,"Project billing":`فواتير المشروع`,"Continue to Stripe":`المتابعة إلى Stripe`,"Refresh project quote":`تحديث عرض سعر المشروع`,"View project price":`عرض سعر المشروع`,"Purchases are not enabled in this environment.":`عمليات الشراء غير مفعّلة في هذه البيئة.`,"2D concept drawings":`رسومات تصوّرية ثنائية الأبعاد`,"Prepare PDF / editable DXF / SVG":`إعداد PDF / DXF قابل للتحرير / SVG`,Room:`الغرفة`,"Axis m²":`مساحة المحاور م²`,"Net m²":`الصافي م²`,Total:`المجموع`,Hide:`إخفاء`,"Saved project files · download without a new export":`ملفات المشروع المحفوظة · تحميل دون تصدير جديد`,"Use saved sketch":`استخدام الرسم المحفوظ`,"Allow optional visit and paywall analytics":`السماح بتحليلات الزيارة والدفع الاختيارية`,"Delete all project content?":`حذف محتوى جميع المشاريع؟`,"Delete my project content":`حذف محتوى مشاريعي`,Cancel:`إلغاء`,"Every supplied value and its source":`كل قيمة واردة ومصدرها`,"No discrepancies reported by the engine.":`لم يبلغ المحرك عن اختلافات.`,"Discrepancy report unavailable.":`تقرير الفروقات غير متاح.`,Value:`القيمة`,"Origin / evidence":`المصدر / الدليل`,Source:`المرجع`,estimated:`تقديري`,"user-given":`أدخله المستخدم`,measured:`مقاس`,calculated:`محسوب`,unconfirmed:`غير مؤكّد`,"reviewed evidence":`دليل مُراجع`,unlabelled:`بلا مصدر`,Unknown:`غير معروف`,"Requested dimensions. Every value is checked by the shared engine.":`الأبعاد المطلوبة. يفحص المحرك المشترك كل قيمة.`,"I confirm these measured dimensions and angle assumptions.":`أؤكّد هذه الأبعاد المقاسة وافتراضات الزوايا.`,"Your measurements define the plan.":`أبعادك تحدد المخطط.`,"Local image preview. No dimensions are inferred from this display.":`معاينة محلية للصورة. لا تُستنتج أبعاد من هذا العرض.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`أرفق رسمك كمرجع. لا يوجد محيط نموذجي مخفي خلف هذا النموذج.`,"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.":`يفحص النظام الصورة ويوحّد تنسيقها قبل التخزين. اختيار الملف وحده لا يرسله إلى مزوّد ذكاء اصطناعي. تُرسل الصورة المنقّحة إلى Anthropic Claude فقط عند طلب قراءة الرسم المحفوظ. التخزين الأوروبي مستقل عن موقع المعالجة؛ يجب ضبط منطقة المزوّد وشروط معالجة البيانات.`,"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.":`ترسل القراءة هذه الصورة المنقّحة إلى Anthropic Claude. التخزين الأوروبي وموقع المعالجة مستقلان؛ يجب أن يضبط النظام شروط معالجة البيانات.`,"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.":`يطلب هذا حذف المشاريع والرسوم والملفات الناتجة في هذه الخدمة. تبقى هوية الحساب والفواتير وسجلات مكافحة الإساءة الضرورية محفوظة. قد تؤخر المحاسبة المعلّقة الإتمام؛ نعرض نتيجة الخدمة.`}),Object.assign(m.de,{"Verifying component license…":`Komponentenlizenz wird geprüft…`,"A valid component license is required":`Eine gültige Komponentenlizenz ist erforderlich`,"The studio stays closed until its installation license and signed revocation status are verified.":`Das Studio bleibt geschlossen, bis Installationslizenz und signierter Sperrstatus geprüft sind.`,"Check license again":`Lizenz erneut prüfen`,"License management":`Lizenzverwaltung`}),Object.assign(m.fr,{"Verifying component license…":`Vérification de la licence du composant…`,"A valid component license is required":`Une licence valide du composant est requise`,"The studio stays closed until its installation license and signed revocation status are verified.":`Le studio reste fermé tant que la licence d’installation et son état de révocation signé ne sont pas vérifiés.`,"Check license again":`Vérifier à nouveau la licence`,"License management":`Gestion des licences`}),Object.assign(m.ar,{"Verifying component license…":`جارٍ التحقق من ترخيص المكوّن…`,"A valid component license is required":`يلزم ترخيص صالح للمكوّن`,"The studio stays closed until its installation license and signed revocation status are verified.":`يبقى الاستوديو مغلقاً حتى التحقق من ترخيص التثبيت وحالة الإلغاء الموقّعة.`,"Check license again":`إعادة فحص الترخيص`,"License management":`إدارة التراخيص`}),Object.assign(m.de,{"No layout proposal is available":`Kein Grundrissvorschlag verfügbar`,"Your measurements are retained. Review the engine findings and measurements before trying again.":`Ihre Maße bleiben erhalten. Prüfen Sie die Hinweise der Engine und die Maße vor einem neuen Versuch.`,"Review measurements":`Maße überprüfen`}),Object.assign(m.fr,{"No layout proposal is available":`Aucune proposition de plan disponible`,"Your measurements are retained. Review the engine findings and measurements before trying again.":`Vos mesures sont conservées. Vérifiez les observations du moteur et les mesures avant de réessayer.`,"Review measurements":`Vérifier les mesures`}),Object.assign(m.ar,{"No layout proposal is available":`لا يتوفر مقترح مخطط`,"Your measurements are retained. Review the engine findings and measurements before trying again.":`تبقى أبعادك محفوظة. راجع ملاحظات المحرك والأبعاد قبل المحاولة مجدداً.`,"Review measurements":`مراجعة الأبعاد`}),Object.assign(m.de,{"Saved as a new version. Earlier versions are unchanged.":`Als neue Version gespeichert. Frühere Versionen bleiben unverändert.`,"Hide version history":`Versionsverlauf ausblenden`,"Version history & compare":`Versionsverlauf und Vergleich`,"Saved versions":`Gespeicherte Versionen`,"History and comparison are read-only. Restoring creates a new version after the service checks the current version.":`Verlauf und Vergleich sind schreibgeschützt. Eine Wiederherstellung erstellt nach Prüfung der aktuellen Version eine neue Version.`,"Earlier version":`Frühere Version`,"Later version":`Spätere Version`,"Compare saved versions":`Gespeicherte Versionen vergleichen`,"Restore earlier version":`Frühere Version wiederherstellen`,"Footprint area change":`Änderung der Grundfläche`,"Engine comparison of saved inputs. Source measurements retain their uncertainty.":`Engine-Vergleich gespeicherter Eingaben. Die Ausgangsmaße behalten ihre Unsicherheit.`,"Selected layout":`Gewählter Grundriss`,"Changed inputs":`Geänderte Eingaben`,"No input changes reported.":`Keine geänderten Eingaben gemeldet.`}),Object.assign(m.fr,{"Saved as a new version. Earlier versions are unchanged.":`Enregistré comme nouvelle version. Les versions précédentes restent inchangées.`,"Hide version history":`Masquer l’historique`,"Version history & compare":`Historique et comparaison`,"Saved versions":`Versions enregistrées`,"History and comparison are read-only. Restoring creates a new version after the service checks the current version.":`L’historique et la comparaison sont en lecture seule. La restauration crée une nouvelle version après contrôle de la version actuelle.`,"Earlier version":`Version précédente`,"Later version":`Version suivante`,"Compare saved versions":`Comparer les versions enregistrées`,"Restore earlier version":`Restaurer la version précédente`,"Footprint area change":`Variation de surface du contour`,"Engine comparison of saved inputs. Source measurements retain their uncertainty.":`Comparaison des entrées enregistrées par le moteur. Les mesures sources conservent leur incertitude.`,"Selected layout":`Plan sélectionné`,"Changed inputs":`Entrées modifiées`,"No input changes reported.":`Aucune modification des entrées signalée.`}),Object.assign(m.ar,{"Saved as a new version. Earlier versions are unchanged.":`حُفظ كنسخة جديدة. تبقى النسخ السابقة دون تغيير.`,"Hide version history":`إخفاء سجل النسخ`,"Version history & compare":`سجل النسخ والمقارنة`,"Saved versions":`النسخ المحفوظة`,"History and comparison are read-only. Restoring creates a new version after the service checks the current version.":`السجل والمقارنة للقراءة فقط. تنشئ الاستعادة نسخة جديدة بعد تحقق النظام من النسخة الحالية.`,"Earlier version":`النسخة السابقة`,"Later version":`النسخة اللاحقة`,"Compare saved versions":`مقارنة النسخ المحفوظة`,"Restore earlier version":`استعادة النسخة السابقة`,"Footprint area change":`تغيّر مساحة المحيط`,"Engine comparison of saved inputs. Source measurements retain their uncertainty.":`مقارنة المحرك للمدخلات المحفوظة. تبقى أبعاد المصدر غير مؤكدة.`,"Selected layout":`المخطط المختار`,"Changed inputs":`المدخلات المتغيّرة`,"No input changes reported.":`لم تُسجّل تغييرات في المدخلات.`}),Object.assign(m.de,{"Pending inputs are saved privately. They are not an accepted result.":`Ausstehende Eingaben sind privat gespeichert. Sie sind noch kein bestätigtes Ergebnis.`,"This paid project reached its configured limit. Another purchase will not extend its allowance.":`Dieses bezahlte Projekt hat seine festgelegte Grenze erreicht. Ein weiterer Kauf erweitert das Kontingent nicht.`}),Object.assign(m.fr,{"Pending inputs are saved privately. They are not an accepted result.":`Les données en attente sont enregistrées en privé. Elles ne constituent pas encore un résultat accepté.`,"This paid project reached its configured limit. Another purchase will not extend its allowance.":`Ce projet payé a atteint sa limite configurée. Un nouvel achat n’augmentera pas son quota.`}),Object.assign(m.ar,{"Pending inputs are saved privately. They are not an accepted result.":`حُفظت المدخلات المعلقة بشكل خاص. وهي ليست نتيجة معتمدة بعد.`,"This paid project reached its configured limit. Another purchase will not extend its allowance.":`وصل هذا المشروع المدفوع إلى الحد المحدد. لن تزيد عملية شراء أخرى حصته.`});function h(e,t){return e===`en`?t:m[e][t]??t}function g({language:e,version:t,busy:n,preview:r,open:i,versions:a,comparison:o,left:s,right:c,onToggle:l,onLeftChange:d,onRightChange:f,onCompare:p,onRestore:m}){let g=a?.some(e=>e.version===s),ee=a?.some(e=>e.version===c);return(0,u.jsxs)(`section`,{className:`paper version-history`,children:[(0,u.jsx)(`button`,{className:`outline`,disabled:n,"aria-expanded":i,"aria-controls":`bim-version-history`,onClick:l,children:h(e,i?`Hide version history`:`Version history & compare`)}),i&&a&&(0,u.jsxs)(`div`,{id:`bim-version-history`,children:[(0,u.jsx)(`h3`,{children:h(e,`Saved versions`)}),(0,u.jsx)(`p`,{children:h(e,`History and comparison are read-only. Restoring creates a new version after the service checks the current version.`)}),(0,u.jsx)(`ul`,{children:a.map(t=>(0,u.jsxs)(`li`,{children:[(0,u.jsxs)(`strong`,{children:[`v`,t.version]}),` · `,new Date(t.createdAtUtc).toLocaleString(e),t.selectedProposalId?` · `+t.selectedProposalId:``,t.note?` · `+t.note:``]},t.version))}),(0,u.jsxs)(`div`,{className:`actions`,children:[(0,u.jsxs)(`label`,{className:`field`,children:[h(e,`Earlier version`),(0,u.jsx)(`select`,{disabled:n,value:s,onChange:e=>d(Number(e.target.value)),children:a.map(e=>(0,u.jsxs)(`option`,{value:e.version,children:[`v`,e.version]},e.version))})]}),(0,u.jsxs)(`label`,{className:`field`,children:[h(e,`Later version`),(0,u.jsx)(`select`,{disabled:n,value:c,onChange:e=>f(Number(e.target.value)),children:a.map(e=>(0,u.jsxs)(`option`,{value:e.version,children:[`v`,e.version]},e.version))})]}),(0,u.jsx)(`button`,{className:`outline`,disabled:n||s===c||!g||!ee,onClick:p,children:h(e,`Compare saved versions`)}),(0,u.jsx)(`button`,{className:`outline`,disabled:n||r||s===t||!g,onClick:m,children:h(e,`Restore earlier version`)})]}),o&&(0,u.jsxs)(`article`,{className:`comparison-summary`,role:`status`,children:[(0,u.jsxs)(`h4`,{children:[`v`,o.leftVersion,` → v`,o.rightVersion]}),o.areaDeltaM2!=null&&(0,u.jsxs)(`p`,{children:[h(e,`Footprint area change`),`: `,o.areaDeltaM2.toLocaleString(e,{maximumFractionDigits:4}),` m² `,(0,u.jsxs)(`small`,{className:`value-tag`,children:[h(e,`calculated`),` · `,h(e,`unconfirmed`)]})]}),(0,u.jsx)(`p`,{children:h(e,`Engine comparison of saved inputs. Source measurements retain their uncertainty.`)}),(0,u.jsxs)(`p`,{children:[h(e,`Selected layout`),`: `,o.leftProposalId??`—`,` → `,o.rightProposalId??`—`]}),(0,u.jsx)(`h4`,{children:h(e,`Changed inputs`)}),o.changedInputs.length?(0,u.jsx)(`ul`,{children:o.changedInputs.map((e,t)=>(0,u.jsx)(`li`,{children:e},t))}):(0,u.jsx)(`p`,{children:h(e,`No input changes reported.`)})]})]})]})}var ee=()=>({schemaVersion:1,units:`m`,vertices:[],boundaryVertexIds:[],walls:[],rooms:[],openings:[]}),te=e=>({value:e,origin:`user-given`,source:`Explicitly entered in existing-plan review.`}),ne=()=>({value:NaN,origin:`estimated`,source:`Unspecified; enter a known value before review.`}),re=e=>e.values.values.filter(t=>(t.origin===`measured`||t.origin===`user-given`)&&(!e.requiredReviewPaths||e.requiredReviewPaths.includes(t.path))).map(e=>e.path),_=e=>[...e.vertices.flatMap(e=>[e.x,e.y]),...e.walls.map(e=>e.thickness),...e.openings.flatMap(e=>[e.offset,e.width])].every(e=>Number.isFinite(e.value));function v(e){let t=new Map,n=(e,n)=>{let r=e+`:`+n,i=t.get(r);return i||(i=crypto.randomUUID().replaceAll(`-`,``),t.set(r,i)),i},r=e=>e?{value:e.value,origin:`estimated`,source:e.source}:ne();return{schemaVersion:1,units:e.units,vertices:e.vertices.map(e=>({id:n(`v`,e.id),x:r(e.x),y:r(e.y)})),boundaryVertexIds:e.boundaryVertexIds.map(e=>n(`v`,e)),walls:e.walls.map(e=>({...e,id:n(`w`,e.id),startVertexId:n(`v`,e.startVertexId),endVertexId:n(`v`,e.endVertexId),thickness:r(e.thickness)})),rooms:e.rooms.map(e=>({...e,id:n(`r`,e.id),vertexIds:e.vertexIds.map(e=>n(`v`,e))})),openings:e.openings.map(e=>({...e,id:n(`o`,e.id),hostWallId:n(`w`,e.hostWallId),offset:r(e.offset),width:r(e.width),height:null,sill:null}))}}var ie={en:`Preserve an existing plan,Enter known coordinates and review boundaries before export. Optional image observations remain unconfirmed and cannot establish physical scale.,Load saved plan,Corners,Add corner,Use corners as outer boundary,Walls,Add wall,Start,End,Thickness,Rooms,Add room,Name,Corner numbers in boundary order,Openings,Add opening,Host wall,Position,Width,Height,Sill,Review geometry,Save reviewed plan,I checked these user-given values against my source. Estimates remain unconfirmed.,Export reviewed plan,Saved revision,Restore revision,Restore,Remove,Download,Unsaved changes,Type`.split(`,`),de:`Bestehenden Plan erhalten,Bekannte Koordinaten und Grenzen vor dem Export prüfen. Optionale Bildbeobachtungen bleiben unbestätigt und bestätigen keinen physischen Maßstab.,Plan laden,Ecken,Ecke hinzufügen,Ecken als Außenumriss verwenden,Wände,Wand hinzufügen,Anfang,Ende,Dicke,Räume,Raum hinzufügen,Name,Eckennummern in Umrissreihenfolge,Öffnungen,Öffnung hinzufügen,Wand,Position,Breite,Höhe,Brüstung,Geometrie prüfen,Geprüften Plan speichern,Ich habe die Nutzerangaben mit meiner Quelle verglichen. Schätzwerte bleiben unbestätigt.,Geprüften Plan exportieren,Gespeicherte Version,Version wiederherstellen,Wiederherstellen,Entfernen,Herunterladen,Ungespeicherte Änderungen,Art`.split(`,`),fr:`Conserver un plan existant,Saisir les coordonnées connues et vérifier les limites avant export. Les observations d’image restent non confirmées et ne valident aucune échelle physique.,Charger le plan,Sommets,Ajouter un sommet,Utiliser comme contour extérieur,Murs,Ajouter un mur,Début,Fin,Épaisseur,Pièces,Ajouter une pièce,Nom,Numéros des sommets dans l’ordre du contour,Ouvertures,Ajouter une ouverture,Mur support,Position,Largeur,Hauteur,Allège,Vérifier la géométrie,Enregistrer le plan vérifié,J’ai vérifié ces valeurs avec ma source. Les estimations restent non confirmées.,Exporter le plan vérifié,Version enregistrée,Restaurer la version,Restaurer,Supprimer,Télécharger,Modifications non enregistrées,Type`.split(`,`),ar:`الحفاظ على مخطط قائم,أدخل الإحداثيات المعروفة وراجع الحدود قبل التصدير. تبقى ملاحظات الصورة غير مؤكدة ولا تثبت مقياساً فعلياً.,تحميل المخطط,الزوايا,إضافة زاوية,استخدام الزوايا كحدود خارجية,الجدران,إضافة جدار,البداية,النهاية,السماكة,الغرف,إضافة غرفة,الاسم,أرقام الزوايا بترتيب الحدود,الفتحات,إضافة فتحة,الجدار,الموضع,العرض,الارتفاع,العتبة,فحص الهندسة,حفظ المخطط المراجع,راجعت القيم المقدمة مع مصدري. تبقى التقديرات غير مؤكدة.,تصدير المخطط المراجع,الإصدار المحفوظ,استعادة الإصدار,استعادة,إزالة,تنزيل,تغييرات غير محفوظة,النوع`.split(`,`)},y=()=>crypto.randomUUID().replaceAll(`-`,``);function b({projectId:e,projectVersion:t,language:n,api:r,onState:i,onDownload:a,disabled:o=!1,sourceObjectId:s,imageUrl:d,pendingDraft:f,persistPending:p,onPendingSaved:m,registerPendingSaver:h,loadSavedOnMount:g=!1}){let[b,ae]=(0,c.useState)(()=>f?.graph??ee()),[x,oe]=(0,c.useState)(f?.baseDigitizationRevision??0),[S,se]=(0,c.useState)(null),[C,w]=(0,c.useState)(!!f?.graph),[T,E]=(0,c.useState)(!1),[ce,D]=(0,c.useState)(``),[O,k]=(0,c.useState)(!1),[le,A]=(0,c.useState)(null),[ue,de]=(0,c.useState)(1),[j,fe]=(0,c.useState)([`svg`,`dxf`]),[pe,me]=(0,c.useState)(!1),[M,he]=(0,c.useState)(50),[ge,_e]=(0,c.useState)(f?.sourceObjectId??s),[ve,N]=(0,c.useState)(!1),[P,ye]=(0,c.useState)(null),[F,be]=(0,c.useState)(null),[xe,Se]=(0,c.useState)(``),[Ce,we]=(0,c.useState)(``),[Te,Ee]=(0,c.useState)(``),[De,Oe]=(0,c.useState)(()=>f?.graph?JSON.stringify(f.graph):null),I=(0,c.useRef)(0),L=(0,c.useRef)(!0),ke=(0,c.useRef)(!1),Ae=(0,c.useRef)(r),R=(0,c.useRef)(i);Ae.current=r,R.current=i;let z=o,B=ie[n],je=`/projects/${e}/digitization`,V=(0,c.useRef)(t),Me=(0,c.useRef)({g:b,revision:x,source:ge,dirty:C,persistPending:p,onPendingSaved:m});Me.current={g:b,revision:x,source:ge,dirty:C,persistPending:p,onPendingSaved:m};async function H(){let t=Me.current;if(!t.persistPending||!t.dirty&&t.revision>0)return null;if(!_(t.g))throw Error(`Enter known numeric values before preserving this draft or checkout. Missing values are never replaced with zero.`);let n=I.current,r=await t.persistPending({workflow:`existing-plan`,graph:t.g,sourceObjectId:t.source,baseDigitizationRevision:t.revision},V.current,e);if(!L.current||n!==I.current)throw new DOMException(`The pending workspace changed.`,`AbortError`);return V.current=r.version,Oe(JSON.stringify(t.g)),t.onPendingSaved?.(r),r}(0,c.useEffect)(()=>(h?.(H),()=>h?.(null)),[h]),(0,c.useEffect)(()=>(L.current=!0,()=>{L.current=!1,I.current++,R.current({busy:!1,hasUnsavedChanges:!1})}),[]),(0,c.useEffect)(()=>{R.current({busy:T,hasUnsavedChanges:C&&JSON.stringify(b)!==De})},[T,C,b,De]),(0,c.useEffect)(()=>{t!==V.current&&(V.current=t,I.current++,se(null),k(!1),A(null),f?.graph&&(ae(f.graph),Oe(JSON.stringify(f.graph)),oe(f.baseDigitizationRevision??0),w(!0)))},[t]),(0,c.useEffect)(()=>{I.current++,x>0&&ge!==s&&w(!0),_e(s),ye(null),be(null),N(!1),k(!1),se(null),A(null)},[s]),(0,c.useEffect)(()=>{if(!f?.graph&&!g)return;let e=I.current;Ae.current(je).then(t=>{L.current&&e===I.current&&t&&Number.isInteger(t.revision)&&(f?.graph?t.revision<=Me.current.revision||(I.current++,oe(t.revision),se(null),k(!1),A(null),D(`The saved plan changed. Your pending observations are restored; review them again before saving.`)):Fe(t))}).catch(()=>{})},[]);function U(e){I.current++,ae(e),w(!0),se(null),A(null),k(!1)}async function Ne(e,t){let n=I.current,r=await Ae.current(e,t);if(!L.current||n!==I.current)throw new DOMException(`The reviewed workspace changed.`,`AbortError`);return r}async function Pe(e){if(!(ke.current||z)){ke.current=!0,E(!0),D(``);try{await e()}catch(e){L.current&&!(e instanceof DOMException&&e.name===`AbortError`)&&D(e instanceof Error?e.message:String(e))}finally{ke.current=!1,L.current&&E(!1)}}}function Fe(e){L.current&&(_e(e.sourceObjectId??s),ye(null),be(null),N(!1),ae(e.graph),oe(e.revision),se({...e.review,svg:e.svg??e.review.svg,pricingNotice:e.pricingNotice??e.review.pricingNotice}),w(!1),Oe(null),k(!1),A(null),fe(e.availableFormats??[`svg`,`dxf`]),me(!1))}let W=(e,t,n=!1)=>(0,u.jsx)(`button`,{type:`button`,className:`outline`,disabled:T||z||n,onClick:t,children:e});function Ie(e,t,n){return(0,u.jsxs)(`label`,{className:`field`,children:[e,` (`,b.units,`)`,(0,u.jsx)(`input`,{type:`number`,step:`any`,value:!Number.isFinite(t.value)||t.origin===`estimated`?``:t.value,placeholder:t.origin===`estimated`&&Number.isFinite(t.value)?String(t.value):void 0,onChange:e=>{let t=e.currentTarget.valueAsNumber;n(Number.isFinite(t)?te(t):{value:NaN,origin:`estimated`,source:`Unspecified; enter a known value before review.`})}}),(0,u.jsxs)(`small`,{children:[t.origin,t.origin===`estimated`&&Number.isFinite(t.value)?`: `+t.value:``,` · `,t.source]})]})}function G(e,t,n){return(0,u.jsxs)(`label`,{className:`field`,children:[e,(0,u.jsxs)(`select`,{value:t,onChange:e=>n(e.target.value),children:[(0,u.jsx)(`option`,{value:``,children:`—`}),b.vertices.map((e,t)=>(0,u.jsx)(`option`,{value:e.id,children:t+1},e.id))]})]})}return(0,u.jsxs)(`details`,{className:`digitization-review paper`,children:[(0,u.jsxs)(`summary`,{children:[B[0],` `,C&&(0,u.jsx)(`small`,{children:B[31]})]}),(0,u.jsxs)(`fieldset`,{disabled:T||z,style:{border:0,padding:0,minWidth:0},children:[(0,u.jsx)(`p`,{children:B[1]}),(0,u.jsxs)(`label`,{children:[{en:`Input units`,de:`Eingabeeinheit`,fr:`Unité des données`,ar:`وحدات الإدخال`}[n],(0,u.jsx)(`select`,{disabled:T||z,value:b.units,onChange:e=>U({...b,units:e.target.value}),children:[`m`,`cm`,`mm`].map(e=>(0,u.jsx)(`option`,{children:e},e))})]}),W(B[2],()=>void Pe(async()=>{let e=await Ne(je);e?Fe(e):D({en:`No saved existing plan yet.`,de:`Noch kein bestehender Plan gespeichert.`,fr:`Aucun plan existant enregistré.`,ar:`لا يوجد مخطط قائم محفوظ بعد.`}[n])}),C),x>0&&(0,u.jsxs)(`p`,{children:[B[26],` `,x]}),ge&&(0,u.jsxs)(`section`,{children:[(0,u.jsxs)(`label`,{children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:ve,disabled:T||z,onChange:e=>N(e.target.checked)}),{en:`Send this saved image to Anthropic for unconfirmed image-coordinate observations. This does not establish physical scale.`,de:`Gespeichertes Bild an Anthropic für unbestätigte Bildkoordinaten senden. Dies bestätigt keinen Maßstab.`,fr:`Envoyer cette image à Anthropic pour des observations non confirmées. Aucune échelle physique ne sera confirmée.`,ar:`إرسال الصورة المحفوظة إلى Anthropic لملاحظات غير مؤكدة. هذا لا يحدد مقياساً فعلياً.`}[n]]}),W({en:`Read image observations`,de:`Bildbeobachtungen lesen`,fr:`Lire les observations de l’image`,ar:`قراءة ملاحظات الصورة`}[n],()=>void Pe(async()=>{let e=await Ne(je+`/recognize`,{expectedProjectVersion:V.current,expectedRevision:x,operationId:y(),sourceObjectId:ge,intent:`Identify existing boundaries, walls, rooms and openings as unconfirmed image coordinates only.`,allowAiProcessing:!0});L.current&&(ye(e),be(null),Se(``),we(``),Ee(``))}),!ve),P&&(0,u.jsxs)(`div`,{role:`status`,children:[(0,u.jsx)(`p`,{children:{en:`Estimated image tracing only. Physical calibration and reviewed measurements are still required; no metric plan was adopted.`,de:`Nur geschätzte Bildkonturen. Physische Kalibrierung und geprüfte Maße fehlen; kein metrischer Plan wurde übernommen.`,fr:`Tracé estimatif uniquement. Calibration et mesures vérifiées restent nécessaires ; aucun plan métrique adopté.`,ar:`تتبع تقديري للصورة فقط. ما زالت المعايرة والقياسات المراجعة مطلوبة؛ لم يتم اعتماد مخطط متري.`}[n]}),P.questions.map((e,t)=>(0,u.jsx)(`p`,{children:e},t)),P.candidate&&(0,u.jsxs)(`svg`,{"aria-label":`Unconfirmed image-coordinate tracing`,viewBox:`0 0 ${P.candidate.imageWidthPx} ${P.candidate.imageHeightPx}`,style:{width:`100%`,maxHeight:350},children:[d&&ge===s&&(0,u.jsx)(`image`,{href:d,width:P.candidate.imageWidthPx,height:P.candidate.imageHeightPx}),` `,P.candidate.walls.map(e=>{let t=P.candidate.vertices.find(t=>t.id===e.startVertexId),n=P.candidate.vertices.find(t=>t.id===e.endVertexId);return t&&n?(0,u.jsx)(`line`,{x1:t.xPx,y1:t.yPx,x2:n.xPx,y2:n.yPx,stroke:`#397e70`,strokeWidth:`2`},e.id):null}),P.candidate.vertices.map(e=>(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:e.xPx,cy:e.yPx,r:Math.max(3,P.candidate.imageWidthPx/120),fill:e.id===xe||e.id===Ce?`#bd641c`:`#397e70`}),(0,u.jsx)(`text`,{x:e.xPx+5,y:e.yPx-5,fontSize:Math.max(8,P.candidate.imageWidthPx/60),fill:`#1f2b28`,children:e.id})]},e.id))]})]})]}),P?.candidate&&(0,u.jsxs)(`section`,{children:[(0,u.jsx)(`h3`,{children:{en:`Calibration preview — not confirmed dimensions`,de:`Kalibrierungsvorschau — keine bestätigten Maße`,fr:`Aperçu calibré — mesures non confirmées`,ar:`معاينة المعايرة — قياسات غير مؤكدة`}[n]}),(0,u.jsx)(`p`,{children:{en:`Choose two endpoints and enter their known distance in metres. The selected start point is the coordinate origin. Uniform scaling assumes a rectified image; perspective remains uncorrected.`,de:`Zwei Endpunkte und ihren bekannten Abstand in Metern angeben. Der Anfang ist der Ursprung. Gleichmäßige Skalierung setzt ein entzerrtes Bild voraus; Perspektive bleibt unkorrigiert.`,fr:`Choisir deux points et saisir leur distance connue en mètres. Le début est l’origine. Une image rectifiée est supposée ; la perspective reste non corrigée.`,ar:`اختر نقطتين وأدخل المسافة المعروفة بالأمتار. نقطة البداية هي الأصل. يفترض التحجيم صورة مصححة؛ المنظور يبقى دون تصحيح.`}[n]}),[[`start`,xe,Se],[`end`,Ce,we]].map(([e,t,n])=>(0,u.jsxs)(`label`,{children:[e===`start`?B[8]:B[9],(0,u.jsxs)(`select`,{disabled:T||z,value:t,onChange:e=>{n(e.target.value),I.current++,be(null)},children:[(0,u.jsx)(`option`,{value:``,children:`—`}),P.candidate.vertices.map(e=>(0,u.jsx)(`option`,{value:e.id,children:e.id},e.id))]})]},e)),(0,u.jsxs)(`label`,{children:[{en:`Known distance (m)`,de:`Bekannter Abstand (m)`,fr:`Distance connue (m)`,ar:`المسافة المعروفة (م)`}[n],(0,u.jsx)(`input`,{type:`number`,min:`0`,step:`any`,disabled:T||z,value:Te,onChange:e=>{Ee(e.target.value),I.current++,be(null)}})]}),W({en:`Preview calibrated suggestions`,de:`Kalibrierte Vorschläge anzeigen`,fr:`Afficher les suggestions calibrées`,ar:`عرض اقتراحات المعايرة`}[n],()=>void Pe(async()=>{let e=await Ne(je+`/calibrate`,{expectedProjectVersion:V.current,expectedRevision:x,candidate:P.candidate,sourceObjectId:ge,calibration:{startVertexId:xe,endVertexId:Ce,originVertexId:xe,knownLength:te(Number(Te)),units:`m`}});L.current&&be(e)}),!xe||!Ce||xe===Ce||!Number.isFinite(Number(Te))||Number(Te)<=0),F&&(0,u.jsxs)(`div`,{role:`status`,children:[F.findings.map((e,t)=>(0,u.jsxs)(`p`,{children:[e.code,`: `,e.message]},t)),F.questions.map((e,t)=>(0,u.jsx)(`p`,{children:e},t)),F.draft&&W({en:`Start review from unconfirmed suggestions`,de:`Unbestätigte Vorschläge einzeln prüfen`,fr:`Vérifier les suggestions non confirmées`,ar:`بدء مراجعة الاقتراحات غير المؤكدة`}[n],()=>U(v(F.draft)),C)]})]}),(0,u.jsxs)(`fieldset`,{disabled:T||z,children:[(0,u.jsx)(`legend`,{children:B[3]}),b.vertices.map((e,t)=>(0,u.jsxs)(`article`,{children:[(0,u.jsx)(`strong`,{children:t+1}),Ie(`X`,e.x,t=>U({...b,vertices:b.vertices.map(n=>n.id===e.id?{...n,x:t}:n)})),Ie(`Y`,e.y,t=>U({...b,vertices:b.vertices.map(n=>n.id===e.id?{...n,y:t}:n)})),W(B[29],()=>U({...b,vertices:b.vertices.filter(t=>t.id!==e.id)}))]},e.id)),W(B[4],()=>U({...b,vertices:[...b.vertices,{id:y(),x:ne(),y:ne()}]})),W(B[5],()=>U({...b,boundaryVertexIds:b.vertices.map(e=>e.id)}),b.vertices.length<3)]}),(0,u.jsxs)(`fieldset`,{disabled:T||z,children:[(0,u.jsx)(`legend`,{children:B[6]}),b.walls.map(e=>(0,u.jsxs)(`article`,{children:[G(B[8],e.startVertexId,t=>U({...b,walls:b.walls.map(n=>n.id===e.id?{...n,startVertexId:t}:n)})),G(B[9],e.endVertexId,t=>U({...b,walls:b.walls.map(n=>n.id===e.id?{...n,endVertexId:t}:n)})),Ie(B[10],e.thickness,t=>U({...b,walls:b.walls.map(n=>n.id===e.id?{...n,thickness:t}:n)})),(0,u.jsxs)(`label`,{children:[B[32],(0,u.jsx)(`select`,{value:e.type,onChange:t=>U({...b,walls:b.walls.map(n=>n.id===e.id?{...n,type:t.target.value}:n)}),children:[`exterior`,`party`,`interior`].map(e=>(0,u.jsx)(`option`,{children:e},e))})]}),W(B[29],()=>U({...b,walls:b.walls.filter(t=>t.id!==e.id)}))]},e.id)),W(B[7],()=>U({...b,walls:[...b.walls,{id:y(),startVertexId:``,endVertexId:``,thickness:ne(),type:`interior`}]}))]}),(0,u.jsxs)(`fieldset`,{disabled:T||z,children:[(0,u.jsx)(`legend`,{children:B[11]}),b.rooms.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`label`,{children:[B[13],(0,u.jsx)(`input`,{value:e.name,onChange:t=>U({...b,rooms:b.rooms.map(n=>n.id===e.id?{...n,name:t.target.value}:n)})})]}),(0,u.jsxs)(`label`,{children:[{en:`Room use`,de:`Raumnutzung`,fr:`Usage de la pièce`,ar:`استخدام الغرفة`}[n],(0,u.jsx)(`input`,{value:e.function,onChange:t=>U({...b,rooms:b.rooms.map(n=>n.id===e.id?{...n,function:t.target.value}:n)})})]}),(0,u.jsxs)(`label`,{children:[B[14],(0,u.jsx)(`input`,{value:e.vertexIds.map(e=>b.vertices.findIndex(t=>t.id===e)+1).join(`,`),onChange:t=>U({...b,rooms:b.rooms.map(n=>n.id===e.id?{...n,vertexIds:t.target.value.split(`,`).map(e=>b.vertices[Number(e.trim())-1]?.id??``)}:n)})})]}),W(B[29],()=>U({...b,rooms:b.rooms.filter(t=>t.id!==e.id)}))]},e.id)),W(B[12],()=>U({...b,rooms:[...b.rooms,{id:y(),name:``,function:`unspecified`,vertexIds:[]}]}))]}),(0,u.jsxs)(`fieldset`,{disabled:T||z,children:[(0,u.jsx)(`legend`,{children:B[15]}),b.openings.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`label`,{children:[B[32],(0,u.jsxs)(`select`,{value:e.kind,onChange:t=>U({...b,openings:b.openings.map(n=>n.id===e.id?{...n,kind:t.target.value}:n)}),children:[(0,u.jsx)(`option`,{children:`door`}),(0,u.jsx)(`option`,{children:`window`})]})]}),(0,u.jsxs)(`label`,{children:[{en:`Opening operation`,de:`Öffnungsart`,fr:`Fonctionnement`,ar:`طريقة الفتح`}[n],(0,u.jsx)(`select`,{value:e.operation,onChange:t=>U({...b,openings:b.openings.map(n=>n.id===e.id?{...n,operation:t.target.value}:n)}),children:[`unknown`,`hinged-left`,`hinged-right`,`sliding`,`fixed`].map(e=>(0,u.jsx)(`option`,{children:e},e))})]}),(0,u.jsxs)(`label`,{children:[B[17],(0,u.jsxs)(`select`,{value:e.hostWallId,onChange:t=>U({...b,openings:b.openings.map(n=>n.id===e.id?{...n,hostWallId:t.target.value}:n)}),children:[(0,u.jsx)(`option`,{value:``,children:`—`}),b.walls.map((e,t)=>(0,u.jsx)(`option`,{value:e.id,children:t+1},e.id))]})]}),[`offset`,`width`,`height`,`sill`].map((t,n)=>(0,u.jsx)(c.default.Fragment,{children:Ie(B[18+n],e[t]??ne(),n=>U({...b,openings:b.openings.map(r=>r.id===e.id?{...r,[t]:(t===`height`||t===`sill`)&&!Number.isFinite(n.value)?null:n}:r)}))},t)),W(B[29],()=>U({...b,openings:b.openings.filter(t=>t.id!==e.id)}))]},e.id)),W(B[16],()=>U({...b,openings:[...b.openings,{id:y(),kind:`door`,hostWallId:``,offset:ne(),width:ne(),height:null,sill:null,operation:`unknown`}]}))]}),W(B[22],()=>void Pe(async()=>{let e=await Ne(je+`/review`,{expectedProjectVersion:V.current,expectedRevision:x,graph:b,sourceObjectId:ge});L.current&&(se(e),k(!1))}),!_(b)),S&&(0,u.jsxs)(`section`,{"aria-live":`polite`,children:[S.pricingNotice&&(0,u.jsx)(`p`,{children:S.pricingNotice}),S.svg&&(0,u.jsx)(`div`,{className:`engine-svg`,dangerouslySetInnerHTML:{__html:l.default.sanitize(S.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}),(0,u.jsx)(`ul`,{children:S.findings.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(`strong`,{children:e.code}),` `,e.message,` `,e.suggestedAction]},t))}),(0,u.jsxs)(`details`,{children:[(0,u.jsx)(`summary`,{children:B[22]}),S.values.values.map(e=>(0,u.jsxs)(`p`,{children:[e.path,`: `,e.value,` `,e.unit,` [`,e.origin,`]`]},e.path)),S.values.discrepancies.map(e=>(0,u.jsxs)(`p`,{children:[e.message,` `,e.question]},e.id))]}),(0,u.jsxs)(`label`,{children:[(0,u.jsx)(`input`,{type:`checkbox`,disabled:T||z,checked:O,onChange:e=>k(e.target.checked)}),B[24]]}),W(B[23],()=>void Pe(async()=>{await H(),Fe(await Ne(je,{expectedProjectVersion:V.current,expectedRevision:x,operationId:y(),graph:b,sourceObjectId:ge,reviewContentHash:S.contentHash,reviewedValuePaths:re(S)}))}),!O||!S.geometryValidated||!C&&x>0&&S.canExport||(S.requiredReviewPaths?.some(e=>!re(S).includes(e))??!1))]}),j.includes(`pdf`)&&(0,u.jsxs)(`label`,{children:[`PDF`,(0,u.jsx)(`input`,{type:`checkbox`,disabled:T||z,checked:pe,onChange:e=>{me(e.target.checked),A(null)}}),(0,u.jsxs)(`select`,{"aria-label":`PDF scale / paper`,disabled:T||z,value:M,onChange:e=>{he(Number(e.target.value)),A(null)},children:[(0,u.jsx)(`option`,{value:50,children:`1:50 · A2`}),(0,u.jsx)(`option`,{value:100,children:`1:100 · A3`})]}),(0,u.jsx)(`small`,{children:`100% · 1:100: compact labels`})]}),W(B[25],()=>void Pe(async()=>{let e=await Ne(je+`/exports`,{expectedProjectVersion:V.current,expectedRevision:x,operationId:y(),formats:pe?[`svg`,`dxf`,`pdf`]:[`svg`,`dxf`],scaleDenominator:M,paperSize:M===50?`A2`:`A3`});L.current&&A(e)}),C||!S?.canExport||x<1),x>1&&(0,u.jsxs)(`label`,{children:[B[27],(0,u.jsx)(`input`,{type:`number`,min:`1`,max:x-1,value:ue,onChange:e=>de(e.target.valueAsNumber)}),W(B[28],()=>void Pe(async()=>Fe(await Ne(je+`/undo`,{expectedProjectVersion:V.current,expectedRevision:x,targetRevision:ue,operationId:y()}))),C)]}),le&&Object.keys(le.files).map(e=>(0,u.jsx)(c.default.Fragment,{children:W(B[30]+` `+e.toUpperCase(),()=>a(e,le),C)},e)),ce&&(0,u.jsx)(`p`,{role:`alert`,children:ce}),(0,u.jsx)(`p`,{children:`Concept proposal, not a construction drawing; verify with a licensed architect/engineer.`})]})]})}var ae=`0.1.8`;(0,d.disableTelemetry)();var x=`bim`,oe=ae,S=`https://licenseapi.polycyphers.com/api/license/revoked.json`,se=`polycyphers-revocation-list`,C=1048576,w=86400,T=6e4,E=``,ce=0,D=`not_set`,O=null,k=null,le=new Set;function A(e){(0,d.setBrand)(e===`karamentreprises`?`karament`:null)}function ue(e){let t=typeof e==`string`?e.trim():``;if(t!==E){E=t,ce++,O=null,D=t?`checking`:`not_set`;for(let e of le)try{e()}catch{}}}function de(){ue(``)}function j(e){return le.add(e),()=>{le.delete(e)}}function fe(){return O?Date.now()>=O.expires?`expired`:Date.now()<O.until?O.status:`checking`:D}function pe(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function me(e,t=256){return typeof e==`string`&&e.length>0&&e.length<=t&&!/[\u0000-\u001f\u007f]/.test(e)}function M(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>0}function he(e){if(e.length>32768||!/^[-_A-Za-z0-9]+\.[-_A-Za-z0-9]+$/.test(e))return null;try{let t=Uint8Array.from(atob(e.split(`.`)[0].replace(/-/g,`+`).replace(/_/g,`/`)),e=>e.charCodeAt(0)),n=JSON.parse(new TextDecoder(`utf-8`,{fatal:!0}).decode(t));return pe(n)?n:null}catch{return null}}function ge(e){if(e===`*`)return!0;let t=e.split(`.`),n=oe.split(`.`);return t.length<=3&&t.every((e,t)=>e===`x`||e===`*`||/^\d+$/.test(e)&&e===n[t])}function _e(e){if(!me(e,253))return!1;let t=e.toLowerCase().replace(/^\*\./,``).replace(/^\./,``);return/^\[[0-9a-f:]+\]$/.test(t)||t.split(`.`).every(e=>/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(e))}function ve(e,t){let n=e.toLowerCase();return n===t?!0:n.startsWith(`*.`)?t.endsWith(n.slice(1))&&t.length>n.length-1:n.startsWith(`.`)?t===n.slice(1)||t.endsWith(n):!1}async function N(e){if(!e.ok)throw Error(`License service unavailable`);let t=e.headers.get(`content-length`);if(t&&(!/^\d+$/.test(t)||Number(t)>C))throw Error(`License response too large`);if(!e.body)throw Error(`License response missing`);let n=e.body.getReader(),r=0,i=[];try{for(;;){let e=await n.read();if(e.done)break;if(r+=e.value.byteLength,r>C)throw Error(`License response too large`);i.push(e.value)}}finally{await n.cancel().catch(()=>{}),n.releaseLock()}let a=new Uint8Array(r),o=0;for(let e of i)a.set(e,o),o+=e.byteLength;return JSON.parse(new TextDecoder(`utf-8`,{fatal:!0}).decode(a))}async function P(e,t){let n=new AbortController,r=setTimeout(()=>n.abort(),8e3);try{let r=await N(await fetch(S,{credentials:`omit`,cache:`no-store`,redirect:`error`,signal:n.signal}));if(!pe(r)||typeof r.token!=`string`||r.token.length>C||!M(r.iat)||!Array.isArray(r.revoked)||r.revoked.length>1e5||!r.revoked.every(e=>me(e,128)))throw Error(`Invalid revocation envelope`);let i=r.revoked,a=await(0,d.verifySystemMessage)(r.token,se,t);if(!a.ok)throw Error(`Invalid signed revocation list`);let o=a.payload;if(!M(o.iat)||!M(o.exp)||o.exp<=t||o.exp<=o.iat||o.exp-o.iat>w||o.iat>t+60||t-o.iat>w||o.iat!==r.iat||!Array.isArray(o.revoked)||o.revoked.length!==r.revoked.length||!o.revoked.every((e,t)=>me(e,128)&&e===i[t]))throw Error(`Stale or inconsistent revocation list`);return{revoked:r.revoked.includes(e),expires:Math.min(o.exp,o.iat+w)*1e3}}finally{clearTimeout(r)}}async function ye(e=!1){let t=fe();if(!e&&t===`licensed`)return t;if(!E)return`not_set`;if(k?.epoch===ce)return k.promise;let n=ce,r=E,i=(async()=>{let e=`invalid_signature`,t=null;try{let n=he(r);if(!n||!me(n.sub))return`invalid_signature`;let i=Math.floor(Date.now()/1e3),a=await(0,d.verifySystemMessage)(r,n.sub,i);if(!a.ok)return a.status;let o=a.payload;if(!me(o.sub)||!me(o.jti,128)||!M(o.iat)||!M(o.exp)||o.iat>i+60||o.exp<=o.iat)return`invalid_signature`;if(![`pro`,`team`,`enterprise`,`internal`].includes(String(o.tier)))return`wrong_tier`;if(o.exp<=i)return`expired`;if(!Array.isArray(o.pkg)||!o.pkg.length||o.pkg.length>32||!o.pkg.every(e=>me(e,128))||!o.pkg.includes(`bim`)||o.pkg.includes(`Polycyphers.Bim`))return`wrong_package`;if(typeof o.ver!=`string`||o.ver.length>64||!ge(o.ver))return`wrong_version`;let s=typeof location>`u`?``:location.hostname.toLowerCase();if(!s||!Array.isArray(o.dom)||!o.dom.length||o.dom.length>64||!o.dom.every(_e)||!o.dom.some(e=>ve(e,s)))return`wrong_domain`;let c=await P(o.jti,i);if(c.revoked)return`revoked`;let l=Math.min(o.exp*1e3,c.expires);return o.exp*1e3<=Date.now()?`expired`:l<=Date.now()?`unavailable`:(e=`licensed`,t={until:Math.min(l,Date.now()+T),expires:l,status:e},e)}catch{return`unavailable`}finally{n===ce&&(O=t,D=t?.status??`unavailable`)}})();k={epoch:n,promise:i};try{let e=await i;return n===ce?(D=e,e):fe()}finally{k?.promise===i&&(k=null)}}var F={baulynq:{name:`BauLynq`,subtitle:`Vision`,title:`BauLynq Vision`,downloadPrefix:`baulynq`,licenseUrl:`https://packages.polycyphers.com/bim`},karamentreprises:{name:`Karamentreprises`,subtitle:`BIM`,title:`Karamentreprises BIM`,downloadPrefix:`karamentreprises`,licenseUrl:`https://packages.karamentreprises.com/bim`},planlynq:{name:`PlanLynq`,subtitle:`Studio`,title:`PlanLynq Studio`,downloadPrefix:`planlynq`,licenseUrl:`https://packages.polycyphers.com/bim`}};function be(e,t){if(typeof e.priceMinorUnits!=`number`||!Number.isFinite(e.priceMinorUnits)||typeof e.currency!=`string`)return null;try{let n=new Intl.NumberFormat(t,{style:`currency`,currency:e.currency}),r=n.resolvedOptions().maximumFractionDigits??2;return n.format(e.priceMinorUnits/10**r)}catch{return null}}function xe(e){return typeof e.freeProposalGenerations==`number`&&typeof e.freeBimExports==`number`?{proposals:e.freeProposalGenerations,exports:e.freeBimExports}:null}function Se(e){return`polycyphers.bim.project.v1:`+encodeURIComponent(e)}function Ce(e,t){try{let n=e.getItem(Se(t));return n&&/^[a-f0-9]{32}$/i.test(n)?n:null}catch{return null}}function we(e,t,n){try{n&&/^[a-f0-9]{32}$/i.test(n)?e.setItem(Se(t),n):e.removeItem(Se(t))}catch{}}function Te(e){return{footprint:{edges:Array.from({length:4},(e,t)=>({id:`W`+(t+1),startVertexId:`V`+(t+1),endVertexId:`V`+((t+1)%4+1),lengthM:NaN,bearingDegrees:null,direction:`Any`,wallType:`exterior`}))},programme:{bedroomWidthM:NaN,bedroomDepthM:NaN,bathroomWidthM:NaN,bathroomDepthM:NaN,hallWidthM:NaN,wardrobeLengthM:NaN,balconyDepthM:NaN,slidingDoorWidthM:NaN,balconyEdgeId:``,entranceEdgeId:``,source:`User-entered project programme; dimensions require engine validation`},buildUps:null,viewEdgeId:``,country:`unspecified`,language:e}}function Ee(e){if(e.footprint.edges.length<3||e.footprint.edges.some(e=>!Number.isFinite(e.lengthM)||e.lengthM<=0||e.bearingDegrees!==null&&!Number.isFinite(e.bearingDegrees)))return`Enter every measured wall length. Leave an unknown bearing blank.`;if(e.programme){let t=e.programme;if([t.bedroomWidthM,t.bedroomDepthM,t.bathroomWidthM,t.bathroomDepthM,t.hallWidthM,t.wardrobeLengthM,t.slidingDoorWidthM].some(e=>!Number.isFinite(e)||e<=0)||!Number.isFinite(t.balconyDepthM)||t.balconyDepthM<0||!t.entranceEdgeId||!t.balconyEdgeId)return`Complete the room programme and choose the entrance and balcony walls.`}return null}function De(e,t){return!!e&&!!t&&e.isChanged&&e.expectedVersion===t.version&&e.snapshot.projectId===t.projectId}function Oe(e){let t=e?.toLowerCase().split(/[-_]/)[0];return t===`de`||t===`fr`||t===`ar`?t:`en`}function I(e,t,n){return n.some(e=>e.toLowerCase()===t.toLowerCase())?`estimated`:e.valueOrigins?e.valueOrigins.userGivenPaths.some(e=>e.toLowerCase()===t.toLowerCase())?`user-given`:`estimated`:t.startsWith(`programme.`)?e.programme?.source.startsWith(`User-entered`)?`user-given`:`estimated`:t.startsWith(`buildUps.`)?`estimated`:`user-given`}function L(e,t,n){let r=e.valueOrigins?.userGivenPaths??[...e.footprint.edges.flatMap((e,t)=>[...Number.isFinite(e.lengthM)?[`footprint.edges[${t}].lengthM`]:[],...e.bearingDegrees==null?[]:[`footprint.edges[${t}].bearingDegrees`]]),...Object.entries(e.programme??{}).filter(([,e])=>typeof e==`number`&&Number.isFinite(e)).map(([e])=>`programme.`+e)].filter(t=>I(e,t,n)===`user-given`);return{...e,valueOrigins:{userGivenPaths:[...r.filter(e=>e.toLowerCase()!==t.toLowerCase()),t]}}}var ke=(0,c.createContext)(`baulynq`),Ae=()=>location.pathname===`/verify-email`||location.pathname===`/verify`,R=()=>crypto.randomUUID().replaceAll(`-`,``);function z(){let e=F[(0,c.useContext)(ke)];return(0,u.jsxs)(`span`,{className:`brand`,children:[(0,u.jsx)(`svg`,{viewBox:`0 0 28 28`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M4 23V5h13v7h7v11H4m7 0V12h6m0 0V5`})}),(0,u.jsxs)(`strong`,{children:[e.name,(0,u.jsx)(`span`,{children:e.subtitle})]})]})}function B(){return(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`↗`})}function je(){return(0,u.jsxs)(`svg`,{viewBox:`0 0 450 340`,role:`img`,"aria-label":`Illustrative hand sketch of the reference footprint`,children:[(0,u.jsx)(`defs`,{children:(0,u.jsx)(`pattern`,{id:`sketchgrid`,width:`16`,height:`16`,patternUnits:`userSpaceOnUse`,children:(0,u.jsx)(`path`,{d:`M16 0H0V16`,fill:`none`,stroke:`#e9e4d8`,strokeWidth:`.5`})})}),(0,u.jsx)(`rect`,{width:`450`,height:`340`,fill:`url(#sketchgrid)`}),(0,u.jsxs)(`g`,{transform:`translate(66 53) rotate(-4 140 110)`,fill:`none`,stroke:`#77776e`,strokeWidth:`2.2`,strokeLinecap:`round`,children:[(0,u.jsx)(`path`,{d:`M12 233L255 235l-1-37 56 1-2-159-19-17L18 22Z`}),(0,u.jsx)(`path`,{d:`M13 232L17 21l272 4 19 14 2 160-55-2v36Z`,opacity:`.4`}),(0,u.jsx)(`path`,{d:`M129 232V115h178M130 154h74v77`,strokeDasharray:`5 7`}),(0,u.jsx)(`path`,{d:`M324 70v72m-5-7 5 8 5-8`,stroke:`#328577`})]}),(0,u.jsxs)(`g`,{fontFamily:`monospace`,fontSize:`15`,fill:`#72756e`,transform:`rotate(-4 200 170)`,children:[(0,u.jsxs)(`text`,{x:`145`,y:`62`,children:[`8.34`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`165`,y:`318`,children:[`7.40`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`21`,y:`172`,transform:`rotate(-90 21 172)`,children:[`6.40`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`387`,y:`153`,transform:`rotate(90 387 153)`,children:[`4.81`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`307`,y:`282`,children:[`1.70`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]})]}),(0,u.jsx)(`text`,{x:`29`,y:`32`,fontFamily:`monospace`,fontSize:`10`,fill:`#928f83`,children:`OWN ILLUSTRATION · USER-GIVEN / UNCONFIRMED`})]})}function V(e={}){let t=e.brand??`baulynq`,n=Oe(e.language??e.initialInput?.language??(typeof navigator>`u`?`en`:navigator.language)),[r,i]=(0,c.useState)(`checking`),[a,o]=(0,c.useState)(0);(0,c.useEffect)(()=>{let e=!0,n=!1,r=!1;A(t);let a=async()=>{if(n)r=!0;else{n=!0;try{let t=await ye(!0);e&&i(t)}catch{e&&i(`unavailable`)}finally{n=!1,r&&e&&(r=!1,a())}}};a();let o=j(()=>{e&&i(`checking`),a()}),s=setInterval(()=>{a()},3e4),c=setInterval(()=>{let t=fe();e&&t!==`licensed`&&i(t)},1e3);return()=>{e=!1,clearInterval(s),clearInterval(c),o()}},[t,a]);let s=(0,c.useCallback)(async(t,n)=>{let r=await ye(),a=fe();if(r!==`licensed`||a!==`licensed`)throw i(a),new DOMException(`A valid component license is required.`,`AbortError`);return e.transport?e.transport(t,n):fetch(`/v1`+t,n)},[e.transport]),l=r===`licensed`;return(0,u.jsx)(ke.Provider,{value:t,children:l?(0,u.jsx)(Me,{...e,transport:s},e.embedded?e.workspaceKey??`unscoped`:`public`):(0,u.jsxs)(`section`,{className:`bim-studio bim-license-gate`,dir:n===`ar`?`rtl`:`ltr`,"aria-label":`Component licensing`,children:[(0,u.jsx)(z,{}),(0,u.jsx)(`h1`,{children:h(n,r===`checking`?`Verifying component license…`:`A valid component license is required`)}),(0,u.jsxs)(`p`,{children:[F[t].title,` · `,r]}),(0,u.jsx)(`p`,{children:h(n,`The studio stays closed until its installation license and signed revocation status are verified.`)}),r!==`checking`&&(0,u.jsx)(`button`,{className:`outline`,onClick:()=>o(e=>e+1),children:h(n,`Check license again`)}),(0,u.jsxs)(`a`,{href:F[t].licenseUrl,children:[h(n,`License management`),` ↗`]})]})})}function Me({enableExistingPlanReview:e=!1,embedded:t=!1,transport:n,initialInput:r,workspaceKey:i,language:a,onStateChange:o,brand:s=`baulynq`,initialAccountMode:d,initialProjectId:f}={}){let[m,ee]=(0,c.useState)(()=>Oe(a??r?.language??(typeof navigator>`u`?`en`:navigator.language))),[te,ne]=(0,c.useState)(t||location.pathname===`/studio`?`studio`:`home`),[re,_]=(0,c.useState)(`measure`),[v,ie]=(0,c.useState)(null),[y,ae]=(0,c.useState)(r??null),[x,oe]=(0,c.useState)(`A`),[S,se]=(0,c.useState)(!1),[C,w]=(0,c.useState)(``),[T,E]=(0,c.useState)(``),[ce,D]=(0,c.useState)(``),[O,k]=(0,c.useState)(null),[le,A]=(0,c.useState)(null),[ue,de]=(0,c.useState)(null),[j,pe]=(0,c.useState)(``),[me,M]=(0,c.useState)(!t&&(Ae()||d===`login`||d===`signup`)),[he,ge]=(0,c.useState)(``),[_e,ve]=(0,c.useState)(``),[N,P]=(0,c.useState)({}),[ye,Se]=(0,c.useState)(!1),[I,L]=(0,c.useState)(!t&&Ae()?`verify`:!t&&d===`signup`?`signup`:`login`),[ke,V]=(0,c.useState)(()=>Ae()?new URLSearchParams(location.search).get(`token`)??``:``),[Me,Fe]=(0,c.useState)(),[W,Ie]=(0,c.useState)(null),[G,Le]=(0,c.useState)(null),[K,Re]=(0,c.useState)(null),[ze,Be]=(0,c.useState)(``),[q,Ve]=(0,c.useState)(null),[He,Ue]=(0,c.useState)([]),[We,Ge]=(0,c.useState)(!1),[Ke,qe]=(0,c.useState)(!1),[Je,Ye]=(0,c.useState)(!1),[Xe,Ze]=(0,c.useState)(null),[Qe,$e]=(0,c.useState)(null),[et,tt]=(0,c.useState)(null),[nt,rt]=(0,c.useState)(!1),[it,at]=(0,c.useState)(1),[ot,st]=(0,c.useState)(1),[ct,lt]=(0,c.useState)(!1),[ut,dt]=(0,c.useState)(!1),[ft,pt]=(0,c.useState)(!1),[mt,ht]=(0,c.useState)(null),[gt,_t]=(0,c.useState)(!1),[vt,yt]=(0,c.useState)([]),[bt,xt]=(0,c.useState)([]),[St,Ct]=(0,c.useState)(null),wt=(0,c.useRef)(t?void 0:f),Tt=(0,c.useRef)(null),Et=(0,c.useCallback)(e=>{Tt.current=e},[]),[Dt,Ot]=(0,c.useState)(!1),[kt,At]=(0,c.useState)([]),[jt,Mt]=(0,c.useState)(),Nt=(0,c.useRef)(null),Pt=(0,c.useRef)(!1),Ft=(0,c.useRef)(!0),J=(0,c.useRef)(0),It=(0,c.useRef)(``),Lt=(0,c.useRef)(void 0),Rt=(0,c.useRef)(i),Y=p[m],zt=i??Me,[Bt,Vt]=(0,c.useState)(!1),[Ht,Ut]=(0,c.useState)({busy:!1,hasUnsavedChanges:!1}),Wt=(0,c.useCallback)(e=>Ut(e),[]),Gt=(0,c.useRef)(o),Kt=Ht.hasUnsavedChanges||ct||!!G||gt,qt=Kt||!!T.trim()||!!K&&!q;(0,c.useEffect)(()=>{Gt.current=o},[o]),(0,c.useEffect)(()=>{Gt.current?.({busy:S||Ht.busy,hasUnsavedChanges:qt})},[S,Ht.busy,qt]),(0,c.useEffect)(()=>()=>{Gt.current?.({busy:!1,hasUnsavedChanges:!1})},[]),(0,c.useEffect)(()=>{$e(null),tt(null),at(Math.max(1,(v?.version??1)-1)),st(v?.version??1),v||rt(!1)},[v?.projectId,v?.version]);let Jt=G?.snapshot??v,X=Jt?.proposals.find(e=>e.id===x)??Jt?.proposals[0],Yt=be(N,m),Xt=xe(N),Zt=typeof N.checkoutAvailable==`boolean`?N.checkoutAvailable:N.checkoutEnabled===!0,Qt=[`paidRegenerations`,`chatRefinementsPerProject`,`exportsPerPaidProject`].every(e=>typeof N[e]==`number`&&Number.isInteger(N[e])&&Number(N[e])>=0)?{regenerations:Number(N.paidRegenerations),chat:Number(N.chatRefinementsPerProject),exports:Number(N.exportsPerPaidProject)}:null;(0,c.useEffect)(()=>(Ft.current=!0,()=>{Ft.current=!1,J.current++}),[]);function $t(e){let t=fe();if(!Ft.current||e!==J.current||t!==`licensed`)throw new DOMException(`The verified session changed.`,`AbortError`)}async function en(e,r){let i=J.current;$t(i);let a=new Headers(r?.headers).get(`Authorization`);if(!t&&e!==`/session`&&a&&a!==`Bearer `+It.current)throw new DOMException(`The verified session changed.`,`AbortError`);let o=await(n?n(e,r):fetch(`/v1`+e,r));if(e!==`/config`&&$t(i),!t&&o.status===401&&!e.startsWith(`/account/`))throw nn(),L(`login`),M(!0),w(`Sign in with a verified account to continue.`),new DOMException(`The verified session expired.`,`AbortError`);return o}function tn(){Ct(null),Tt.current=null,Vt(!1),Ut({busy:!1,hasUnsavedChanges:!1}),lt(!1),pt(!1),w(``),D(``),dt(!1),Ze(null),Ue([]),At([]),Mt(void 0),ht(null),_t(!1),yt([]),Ge(!1),qe(!1),E(``),ie(null),xt([]),ae(null),Le(null),Re(null),de(null),A(null),k(null),Ve(null),Ie(null),Ye(!1)}function nn(){(v||Lt.current)&&tn(),J.current++,It.current=``,Lt.current=void 0,pe(``),Fe(void 0)}async function Z(e,n,r){let i=J.current,a=await en(e,{method:r??(n?`POST`:`GET`),headers:{...n?{"Content-Type":`application/json`}:{},...!t&&j?{Authorization:`Bearer `+j}:{}},body:n?JSON.stringify(n):void 0});if(!a.ok){let n=`The service is temporarily unavailable.`,r={};try{let e=await a.json();e&&typeof e==`object`&&!Array.isArray(e)&&(r=e),n=String(r.detail??r.title??r.error??n)}catch{}$t(i),a.status===401&&(t||(nn(),e.startsWith(`/account/`)||L(`login`),M(!0)),n=t?`Your app session needs attention. Sign in again through your app.`:`Sign in with a verified account to continue.`);let o=/^\/projects\/([a-f0-9]{32})\//.exec(e)?.[1];throw!t&&a.status===402&&r.code===`project_quota_exceeded`&&o&&[`operation_cap`,`free_tier_unavailable`,`provider_cost_cap`].includes(String(r.reason))&&typeof r.projectPaid==`boolean`&&typeof r.canPurchase==`boolean`&&(Ct({projectId:o,projectPaid:r.projectPaid,canPurchase:r.canPurchase,reason:String(r.reason)}),r.canPurchase&&!r.projectPaid&&rn(`paywall`)),Error(n)}let o=a.status===204?null:await a.json();return $t(i),o}async function rn(e,n=Dt){if(!(t||N.analyticsEnabled!==!0))try{await en(`/analytics/events`,{method:`POST`,headers:{"Content-Type":`application/json`,...j?{Authorization:`Bearer `+j}:{}},body:JSON.stringify({eventId:R(),kind:e,consentGranted:n})})}catch{}}function an(e){Ot(e),rn(`visit`,e)}(0,c.useEffect)(()=>{a!==void 0&&ee(Oe(a))},[a]),(0,c.useEffect)(()=>{t||(document.documentElement.lang=m,document.documentElement.dir=m===`ar`?`rtl`:`ltr`)},[m,t]),(0,c.useEffect)(()=>{let e=!0;return en(`/config`).then(e=>e.ok?e.json():Promise.reject()).then(t=>{e&&P(t)}).catch(()=>{}),()=>{e=!1}},[n]),(0,c.useEffect)(()=>{!t&&Ae()&&history.replaceState({},``,location.pathname)},[t]),(0,c.useEffect)(()=>{if(!K){Be(``);return}let e=URL.createObjectURL(K);return Be(e),()=>URL.revokeObjectURL(e)},[K]),(0,c.useEffect)(()=>{t&&Rt.current!==i&&(J.current++,tn(),Rt.current=i)},[i,t]),(0,c.useEffect)(()=>{if(!zt)return;let e=Ce(localStorage,zt);if(Ie(e),!e||y||v)return;let t=!0;return Z(`/projects/`+e).then(e=>{t&&(Q(e),_(e.input.isDraft?`measure`:`proposals`))}).catch(e=>{t&&w(e instanceof Error?e.message:`Could not resume the project.`)}),()=>{t=!1}},[zt]);function on(){let e=wt.current;if(e!==void 0){if(!/^[a-f0-9]{32}$/i.test(e))throw Error(`The initial project identifier is unavailable.`);return e}return R()}function Q(t){wt.current=void 0,St?.projectId!==t.projectId&&Ct(null),$t(J.current),Ze(t.reconciliation),Ye(!1),t.input.isDraft||(lt(!1),_t(!1)),t.input.isDraft||yt([]),ie(t),ae(t.pendingDraft?.input?{...t.pendingDraft.input,isDraft:!1}:t.input.isDraft?y??Te(m):t.input),Vt(e&&(t.pendingDraft?.workflow??t.workflow)===`existing-plan`),t.pendingDraft&&(t.pendingDraft.input&&lt(!1),Ve(t.pendingDraft.sourceObjectId??null),E(t.pendingDraft.brief??``)),oe(t.selectedProposalId??t.proposals.find(e=>e.recommended)?.id??`A`),de(null),A(null),k(null),Le(null),zt&&(we(localStorage,zt,t.projectId),Ie(t.projectId))}async function $(e){if(!(Pt.current||Ht.busy)){Pt.current=!0,se(!0),w(``);try{await e()}catch(e){e instanceof DOMException&&e.name===`AbortError`||w(e instanceof Error?e.message:`Please try again.`)}finally{Pt.current=!1,se(!1)}}}function sn(e){pt(!1),ne(e),t||history.pushState({},``,e===`home`?`/`:`/studio`),window.scrollTo(0,0)}function cn(e=!1){Ht.busy||Ht.hasUnsavedChanges||(Ct(null),Tt.current=null,Vt(!1),lt(!1),e||Re(null),Ge(!1),qe(!1),Ue([]),At([]),Mt(void 0),ht(null),_t(!1),yt([]),E(``),ie(null),xt([]),ae(Te(m)),Le(null),de(null),A(null),k(null),Ye(!1),Ze(null),Ve(null),_(`measure`),sn(`studio`))}async function ln(){N.mode===`local-demo`?(sn(`studio`),await $(async()=>{let e=await Z(`/reference?language=`+m);ae(e),lt(!1),Ye(!1),_(`measure`),D(`Reference example loaded. Review its site-confirmed dimensions before generating.`)})):cn()}async function un(e,n){let r=J.current;if(!We||!Ke)throw Error(`Review the image permissions and AI disclosure before upload.`);let i=new FormData;i.append(`file`,n),i.append(`rightsAcknowledged`,`true`),i.append(`aiProcessingAcknowledged`,`true`);let a=await en(`/projects/${e.projectId}/uploads`,{method:`POST`,headers:!t&&j?{Authorization:`Bearer `+j}:{},body:i});if(!a.ok){let e=`Upload failed.`;try{let t=await a.json();e=t.detail??t.title??t.error??e}catch{}throw $t(r),Error(e)}let o=await a.json();return $t(r),Ve(o.upload.id),D(`Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.`),o.upload.id}async function dn(e,t=v?.version??0,n=v?.projectId??on()){if(e.input){let t=Ee(e.input);if(t)throw Error(t)}let r=await Z(`/drafts`,{projectId:n,operationId:R(),expectedVersion:t,pendingDraft:{...e,brief:T}});if(r.projectId!==n||r.version!==t+1||r.pendingDraft?.workflow!==e.workflow)throw Error(`Pending work could not be saved by this service. Checkout and generation are stopped; keep this page open.`);return r}function fn(e){Q(e),_(`measure`)}async function pn(){y&&await $(async()=>{let e=Ee(y);if(e)throw Error(e);if(K&&!q&&(!We||!Ke))throw Error(`Review the image permissions and AI disclosure, or remove the local image.`);if(!Je)throw Error(`Confirm the measured dimensions and bearings before generating.`);let n={...y,isDraft:!1,language:m},r=await Z(`/footprints/reconcile`,n.footprint);if(Ze(r),r.status!==`Unique`)throw Error(r.findings.map(e=>e.message).join(` `)||`The footprint needs another confirmed measurement.`);let i=v,a=q;t||(i=await dn({workflow:`manual`,input:n,sourceObjectId:a??void 0},i?.version??0,i?.projectId??on()),Q(i),Ze(r),K&&!a&&(a=await un(i,K),i=await dn({workflow:`manual`,input:n,sourceObjectId:a},i.version,i.projectId),Q(i),Ze(r)));let o=i?await Z(`/projects/${i.projectId}/edits`,{expectedVersion:i.version,operationId:R(),edit:{replaceInput:n,note:`Confirmed measurements`}}):await Z(`/projects`,{projectId:on(),operationId:R(),input:n});Q(o),Ct(null),_(o.input.isDraft?`measure`:`proposals`),K&&!a&&await un(o,K)})}async function mn(){T.trim()&&v&&await $(async()=>{let e=await Z(`/projects/${v.projectId}/chat`,{expectedVersion:v.version,operationId:R(),message:T});Le(e.preview),D(e.reply),E(``),_(`refine`)})}async function hn(){if(!De(G,v)||!G||!v)return;let e=G;await $(async()=>{Q(await Z(`/projects/${v.projectId}/edits`,{expectedVersion:e.expectedVersion,operationId:R(),edit:e.edit})),D(`Preview applied as a new saved version.`)})}async function gn(e){v&&!G&&await $(async()=>{Q(await Z(`/projects/${v.projectId}/edits`,{expectedVersion:v.version,operationId:R(),edit:{selectProposalId:e.id,note:`Selected layout `+e.id}}))})}async function _n(){v&&(nt?rt(!1):await $(async()=>{let e=await Z(`/projects/${v.projectId}/history`);$e(e),rt(!0)}))}async function vn(){v&&Qe?.some(e=>e.version===it)&&Qe.some(e=>e.version===ot)&&await $(async()=>{tt(await Z(`/projects/${v.projectId}/compare?left=${it}&right=${ot}`))})}async function yn(){v&&it!==v.version&&!G&&Qe?.some(e=>e.version===it)&&await $(async()=>{Q(await Z(`/projects/${v.projectId}/undo`,{expectedVersion:v.version,targetVersion:it,operationId:R()})),D(h(m,`Saved as a new version. Earlier versions are unchanged.`))})}function bn(){return(0,u.jsxs)(`section`,{className:`project-price`,children:[(0,u.jsx)(`h3`,{children:h(m,`Project billing`)}),(0,u.jsx)(`p`,{children:Bt?{en:`This workflow produces reviewed 2D files, not automatic BIM reconstruction. Saves use the configured project generation allowance; check the quote and limits before purchase.`,de:`Dieser Ablauf erstellt geprüfte 2D-Dateien, keine automatische BIM-Rekonstruktion. Speichern nutzt das Generierungskontingent; Angebot und Grenzen vor dem Kauf prüfen.`,fr:`Ce parcours produit des fichiers 2D vérifiés, sans reconstruction BIM automatique. L’enregistrement utilise le quota du projet ; vérifier le devis et les limites avant achat.`,ar:`ينتج هذا المسار ملفات ثنائية الأبعاد مراجعة، وليس إعادة بناء BIM تلقائية. يستخدم الحفظ حصة المشروع؛ راجع السعر والحدود قبل الشراء.`}[m]:`One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service.`}),Qt?(0,u.jsxs)(`p`,{className:`quota-disclosure`,children:[`After the initial proposal request: `,Qt.regenerations,` regenerations · `,Qt.chat,` chat refinements · `,Qt.exports,` `,Qt.exports===1?`BIM export`:`BIM exports`,` per paid project.`]}):(0,u.jsx)(`p`,{children:`Project usage limits are unavailable. Checkout stays disabled until they can be shown.`}),St!==null&&St.projectId===v?.projectId&&St.projectPaid?(0,u.jsx)(`p`,{role:`status`,children:h(m,`This paid project reached its configured limit. Another purchase will not extend its allowance.`)}):O?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`strong`,{children:be({priceMinorUnits:O.priceMinorUnits,currency:O.currency},m)}),(0,u.jsxs)(`p`,{children:[`Quote valid until `,new Date(O.expiresAtUtc).toLocaleString(m),`.`]}),(0,u.jsx)(`button`,{className:`ink full`,disabled:S||!Zt||!Qt,onClick:Sn,children:h(m,`Continue to Stripe`)}),(0,u.jsx)(`button`,{className:`textbtn`,disabled:S,onClick:xn,children:h(m,`Refresh project quote`)})]}):(0,u.jsx)(`button`,{className:`outline full`,disabled:S||!Zt,onClick:xn,children:h(m,`View project price`)}),!Zt&&(0,u.jsx)(`small`,{children:h(m,`Purchases are not enabled in this environment.`)}),(0,u.jsx)(`small`,{children:`A checkout return is not proof of payment; downloads use the service's verified entitlement.`})]})}async function xn(){v&&!t&&await $(async()=>{let e=await Z(`/account/quote`,{projectId:v.projectId});if(e.projectId!==v.projectId||!e.quoteId||be({priceMinorUnits:e.priceMinorUnits,currency:e.currency},m)===null||!Number.isFinite(Date.parse(e.expiresAtUtc)))throw Error(`A valid project quote was not supplied.`);k(e)})}async function Sn(){v&&O&&!t&&Zt&&Qt&&(St?.projectId!==v.projectId||!St.projectPaid)&&await $(async()=>{let e=O;if(K&&!q)throw Error(`Scan and save the selected image before checkout so it can be restored after payment.`);if(e.projectId!==v.projectId||Date.parse(e.expiresAtUtc)<=Date.now())throw Error(`This quote expired. Refresh the project quote before purchase.`);let t=v;if(Bt){let e=Tt.current;if(!e)throw Error(`The existing-plan editor is not ready to preserve your latest work. Checkout is stopped; keep this page open.`);t=await e()??t}else y&&(t=await dn({workflow:`manual`,input:y,sourceObjectId:q??void 0},t.version,t.projectId),Q(t));if(Date.parse(e.expiresAtUtc)<=Date.now())throw Error(`This quote expired. Refresh the project quote before purchase.`);let n=await Z(`/account/checkout`,{projectId:t.projectId,requestId:R(),quoteId:e.quoteId}),r=new URL(n.url);if(r.protocol!==`https:`||r.hostname!==`checkout.stripe.com`||r.username||r.password)throw Error(`The checkout address was not accepted.`);window.location.assign(r.href)})}function Cn(){tn(),J.current++,It.current=``,Lt.current=void 0,w(``),pe(``),Fe(void 0),ve(``),ge(``),V(``),D(`Signed out. Your saved project stays private and can resume after sign-in.`)}async function wn(){v&&X&&!G&&await $(async()=>{A(await Z(`/projects/${v.projectId}/drawings`,{expectedVersion:v.version,operationId:R(),proposalId:X.id})),D(`2D concept drawings prepared. This does not spend the BIM model export.`)})}async function Tn(){v&&X&&!G&&await $(async()=>{let e=await Z(`/projects/${v.projectId}/exports`,{expectedVersion:v.version,operationId:R(),proposalId:X.id});de(e),_(`download`)})}async function En(e,n=ue){n&&v&&await $(async()=>{let r=J.current,i=await en(`/projects/${v.projectId}/objects/${n.files[e].id}`,{headers:!t&&j?{Authorization:`Bearer `+j}:{}});if(!i.ok)throw Error(`Download unavailable.`);let a=await i.blob();$t(r);let o=URL.createObjectURL(a),c=document.createElement(`a`);c.href=o,c.download=`${F[s].downloadPrefix}-${n.proposalId}-v${n.version}.${e}`,c.click(),setTimeout(()=>URL.revokeObjectURL(o),1e3)})}async function Dn(e){Ht.busy||Pt.current||(![`image/png`,`image/jpeg`,`image/webp`].includes(e.type)||e.size>8388608?w(`Choose a PNG, JPEG or WebP up to 8 MB.`):(Re(e),Ve(null),Ge(!1),qe(!1),v?(_(`measure`),D(`Local preview only. Review permissions and AI disclosure before uploading the image.`)):(y||cn(!0),_(`measure`),D(`Local sketch preview only. Review permissions, then scan and store it privately before asking AI to read observations. No measured footprint is required for that step.`))))}async function On(){Kt||await $(async()=>{Q(await Z(`/drafts`,{projectId:on(),operationId:R()})),Vt(!0),_(`measure`),sn(`studio`)})}function kn(){return(0,u.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,u.jsx)(`h3`,{children:h(m,`Before image upload`)}),(0,u.jsx)(`p`,{children:h(m,`The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.`)}),(0,u.jsxs)(`label`,{className:`confirmation`,children:[(0,u.jsx)(`input`,{type:`checkbox`,disabled:S,checked:We,onChange:e=>Ge(e.target.checked)}),h(m,`I have permission to use this image for this project.`)]}),(0,u.jsxs)(`label`,{className:`confirmation`,children:[(0,u.jsx)(`input`,{type:`checkbox`,disabled:S,checked:Ke,onChange:e=>qe(e.target.checked)}),h(m,`I understand the AI image-processing disclosure above.`)]}),(0,u.jsxs)(`label`,{className:`field`,children:[h(m,`What would you like to create?`),(0,u.jsx)(`textarea`,{"aria-label":`Sketch brief`,disabled:S,value:T,maxLength:8e3,placeholder:`Room wishes, entrance and view, fixed walls, country…`,onChange:e=>E(e.target.value)})]}),(0,u.jsx)(`button`,{className:`ink`,disabled:S||!We||!Ke,onClick:An,children:h(m,`Upload for scanning`)}),(0,u.jsx)(`button`,{className:`quiet`,disabled:S,onClick:()=>{Re(null),Ge(!1),qe(!1)},children:h(m,`Remove local image`)})]})}async function An(){K&&await $(async()=>{let e=v;e||(e=await Z(`/drafts`,{projectId:on(),operationId:R()}),Q(e),_(`measure`)),await un(e,K)})}async function jn(){v&&q&&await $(async()=>{let e=await Z(`/projects/${v.projectId}/read-sketch`,{expectedVersion:v.version,operationId:R(),objectId:q,intent:T||`Read the sketch measurements and identify uncertainties.`});At(e.observations),Mt(e.values),ht(e.candidate??null),_t(!1),Ue(e.questions),D(`Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements.`),_(`measure`)})}async function Mn(){v&&await $(async()=>{let e=await Z(`/projects/${v.projectId}`,void 0,`DELETE`);ie(null),xt([]),ae(null),de(null),A(null),k(null),Le(null),lt(!1),Re(null),Ve(null),Ue([]),At([]),Mt(void 0),ht(null),_t(!1),yt([]),Ze(null),zt&&we(localStorage,zt,null),Ie(null),D(e.dataErased===!0?`Service reports project data erased. ${e.accountingPending?`Accounting cleanup is still pending.`:`Accounting cleanup completed.`}`:`Deletion accepted; data erasure is still pending. The service will continue cleanup.`)})}async function Nn(){!t&&j&&await $(async()=>{let e=await Z(`/account/data`,void 0,`DELETE`);Dt&&(await rn(`visit`,!1),Ot(!1)),tn(),J.current++,zt&&we(localStorage,zt,null),_(`measure`),D((e.dataErased?`Service reports project content erased.`:`Content deletion accepted; erasure is still pending.`)+` `+(e.accountingPending?`Accounting cleanup is still pending. `:``)+`Account identity, billing and required anti-abuse metadata are retained.`)})}async function Pn(){await $(async()=>{let e=J.current;if(I===`signup`){await Z(`/account/signup`,{email:he}),D(`Check your email for the verification link. No session is created until ownership is verified.`),L(`verify`),ve(``);return}let t=await Z(I===`verify`?`/account/verification/complete`:`/account/login`,I===`verify`?{token:ke,password:_e}:{email:he,password:_e});if(ve(``),V(``),!t.token){L(`login`),D(`Email verified. Sign in to continue.`);return}let n=await en(`/session`,{headers:{Authorization:`Bearer `+t.token}});if(!n.ok)throw Error(`The verified workspace could not be loaded.`);let r=await n.json();if($t(e),typeof r.workspaceKey!=`string`||!r.workspaceKey||r.workspaceKey.length>512)throw Error(`The verified workspace could not be loaded.`);Lt.current&&Lt.current!==r.workspaceKey&&tn(),J.current++,It.current=t.token,Lt.current=r.workspaceKey,pe(t.token),Fe(r.workspaceKey),M(!1),D(`Signed in. This session stays in memory only.`)})}function Fn(){mt?.input&&(lt(!0),ae({...y??Te(m),footprint:mt.input}),Ze(mt.reconciliation),yt(mt.input.edges.flatMap((e,t)=>[`footprint.edges[${t}].lengthM`,...e.bearingDegrees==null?[]:[`footprint.edges[${t}].bearingDegrees`]])),_t(!0),Ye(!1),Le(null),_(`measure`),D(`Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption.`))}function In(e){Re(null),Be(``),Ve(e),_(`measure`),D(`Saved sanitized sketch selected. Reading it with AI is a separate explicit action.`)}async function Ln(e,n){v&&await $(async()=>{let r=J.current,i=await en(`/projects/${v.projectId}/objects/${n.objectId}`,{headers:!t&&j?{Authorization:`Bearer `+j}:{}});if(!i.ok)throw Error(`Saved file is unavailable or expired.`);let a=await i.blob();$t(r);let o=URL.createObjectURL(a),c=document.createElement(`a`);c.href=o,c.download=`${F[s].downloadPrefix}-${e.kind}${e.version?`-v`+e.version:``}.${n.format}`,c.click(),setTimeout(()=>URL.revokeObjectURL(o),1e3)})}(0,c.useEffect)(()=>{if(!v)return;let e=!0;return Z(`/projects/${v.projectId}/artifacts`).then(t=>{e&&xt(Array.isArray(t)?t:[])}).catch(()=>{e&&xt([])}),()=>{e=!1}},[v?.projectId,v?.version,q]);let Rn=re===`measure`?Xe?.values:X?.values??Jt?.reconciliation.values??Xe?.values,zn=X?.findings.reduce((e,t)=>(e[t.status]=(e[t.status]??0)+1,e),{})??{};return(0,u.jsxs)(`div`,{className:`bim-studio`,dir:m===`ar`?`rtl`:`ltr`,children:[!t&&(0,u.jsxs)(`header`,{children:[(0,u.jsx)(`a`,{className:`logo`,href:`/`,onClick:e=>{e.preventDefault(),sn(`home`)},children:(0,u.jsx)(z,{})}),(0,u.jsxs)(`nav`,{children:[(0,u.jsx)(`a`,{href:`/#pricing`,onClick:()=>te!==`home`&&sn(`home`),children:Y.pricing}),(0,u.jsx)(`select`,{"aria-label":Y.language,value:m,onChange:e=>ee(e.target.value),children:[`en`,`de`,`fr`,`ar`].map(e=>(0,u.jsx)(`option`,{value:e,children:e.toUpperCase()},e))}),(0,u.jsx)(`button`,{className:`quiet account-action`,disabled:S,onClick:()=>j?sn(`studio`):M(!0),children:j?Y.account:Y.signin}),j&&(0,u.jsxs)(`div`,{className:`account-options`,children:[(0,u.jsx)(`button`,{className:`quiet`,"aria-label":h(m,`Account options`),"aria-expanded":ft,"aria-controls":`bim-account-actions`,disabled:S,onClick:()=>pt(!ft),children:`⋯`}),ft&&(0,u.jsxs)(`div`,{id:`bim-account-actions`,role:`group`,"aria-label":h(m,`Account actions`),className:`account-actions`,onKeyDown:e=>{e.key===`Escape`&&(pt(!1),e.currentTarget.parentElement?.querySelector(`button`)?.focus())},children:[(0,u.jsx)(`button`,{className:`quiet full`,disabled:S,onClick:()=>{pt(!1),dt(!0)},children:h(m,`Delete project content`)}),(0,u.jsx)(`button`,{className:`quiet full`,disabled:S,onClick:Cn,children:h(m,`Sign out`)})]})]}),(0,u.jsxs)(`button`,{className:`ink`,onClick:()=>sn(`studio`),children:[Y.studio,(0,u.jsx)(B,{})]})]})]}),te===`home`?(0,u.jsxs)(`main`,{className:`landing`,children:[(0,u.jsxs)(`section`,{className:`hero`,children:[(0,u.jsxs)(`span`,{className:`eyebrow`,children:[Y.eyebrow,` `,(0,u.jsx)(`span`,{children:`01 — VISION`})]}),(0,u.jsx)(`h1`,{children:Y.hero}),(0,u.jsx)(`p`,{children:Y.intro}),(0,u.jsxs)(`div`,{className:`actions`,children:[(0,u.jsxs)(`button`,{className:`ink large`,onClick:()=>sn(`studio`),children:[Y.start,(0,u.jsx)(B,{})]}),N.mode===`local-demo`?(0,u.jsxs)(`button`,{className:`textbtn`,onClick:ln,children:[Y.try,` →`]}):(0,u.jsxs)(`button`,{className:`textbtn`,onClick:()=>cn(),children:[h(m,`Enter measurements`),` →`]})]}),(0,u.jsxs)(`div`,{className:`proof`,children:[(0,u.jsx)(`span`,{className:`dot`}),`Your measurements. Checked geometry. One shared engine.`]})]}),(0,u.jsxs)(`section`,{className:`transformation`,children:[(0,u.jsxs)(`article`,{className:`sketch-card`,children:[(0,u.jsxs)(`div`,{className:`card-title`,children:[(0,u.jsx)(`span`,{children:`01 / SKETCH`}),(0,u.jsx)(`span`,{children:`THE STARTING POINT`})]}),(0,u.jsx)(je,{}),(0,u.jsx)(`h3`,{children:Y.before})]}),(0,u.jsx)(`div`,{className:`flow-arrow`,children:`→`}),(0,u.jsxs)(`article`,{className:`plan-card`,children:[(0,u.jsxs)(`div`,{className:`card-title`,children:[(0,u.jsx)(`span`,{children:`02 / POSSIBILITIES`}),(0,u.jsx)(`span`,{className:`teal`,children:`CHECKED BY THE ENGINE`})]}),(0,u.jsx)(`div`,{className:`mini-plan`,children:(0,u.jsx)(`img`,{src:`/reference-plan.svg`,alt:`Engine-generated reference layout A with checked dimensions`})}),(0,u.jsx)(`h3`,{children:Y.after}),N.mode===`local-demo`?(0,u.jsxs)(`button`,{className:`textbtn`,onClick:ln,children:[Y.try,` ↗`]}):(0,u.jsxs)(`button`,{className:`textbtn`,onClick:()=>cn(),children:[h(m,`Enter measurements`),` ↗`]})]})]}),(0,u.jsx)(`section`,{className:`process`,children:Y.steps.map((e,t)=>(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[`0`,t+1]}),(0,u.jsx)(`h3`,{children:e}),(0,u.jsx)(`p`,{children:[`A drawing or photo, with dimensions.`,`Confirm dimensions and fixed constraints.`,`Compare different ways to use your space.`,`Take the chosen concept into your BIM workflow.`][t]})]},e))}),(0,u.jsxs)(`section`,{className:`use-case-links`,children:[(0,u.jsx)(`h2`,{children:h(m,`Plan your next space`)}),(0,u.jsxs)(`a`,{href:`/apartment-layout/`,children:[h(m,`Apartment layout`),` ↗`]}),(0,u.jsxs)(`a`,{href:`/house-extension/`,children:[h(m,`House extension`),` ↗`]}),(0,u.jsxs)(`a`,{href:`/renovation/`,children:[h(m,`Renovation`),` ↗`]})]}),(0,u.jsxs)(`section`,{className:`price-section`,id:`pricing`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:`A CLEAR START`}),(0,u.jsxs)(`h2`,{children:[`A small project.`,(0,u.jsx)(`br`,{}),`A useful next step.`]}),(0,u.jsx)(`p`,{children:s===`planlynq`?{en:`Your PlanLynq account uses the allowances confirmed by this service.`,de:`Für Ihr PlanLynq-Konto gelten die vom Dienst bestätigten Nutzungslimits.`,fr:`Votre compte PlanLynq utilise les quotas confirmés par ce service.`,ar:`يستخدم حسابك في PlanLynq الحصص التي تؤكّدها هذه الخدمة.`}[m]:`Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits.`})]}),(0,u.jsxs)(`article`,{className:`price-card`,children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:F[s].title.toUpperCase()}),(0,u.jsx)(`h2`,{children:Yt??`Pricing opens with the service`}),(0,u.jsx)(`small`,{children:`Base pricing. Your project quote is shown before purchase.`}),(0,u.jsx)(`p`,{children:Xt?`${Xt.proposals} free proposal generations · ${Xt.exports} BIM exports`:`The local preview does not accept payments.`}),(0,u.jsx)(`p`,{children:`One project includes proposals, refinements and its model export.`}),Qt&&(0,u.jsxs)(`p`,{children:[`After the initial proposal request: `,Qt.regenerations,` regenerations · `,Qt.chat,` chat refinements · `,Qt.exports,` `,Qt.exports===1?`BIM export`:`BIM exports`,` per paid project.`]}),(0,u.jsxs)(`button`,{className:`ink`,onClick:()=>sn(`studio`),children:[Y.start,(0,u.jsx)(B,{})]})]})]}),(0,u.jsxs)(`footer`,{children:[(0,u.jsx)(z,{}),(0,u.jsx)(`span`,{children:Y.disclaimer})]})]}):(0,u.jsxs)(`main`,{className:`studio`,children:[(0,u.jsxs)(`aside`,{className:`rail`,children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:`WORKSPACE`}),(0,u.jsx)(`h2`,{children:Y.workspace}),(0,u.jsxs)(`span`,{className:`project-status`,children:[(0,u.jsx)(`span`,{className:`dot`}),N.mode===`local-demo`?`Local reference preview`:`Private project`]}),(0,u.jsx)(`div`,{className:`stage-nav`,children:[`measure`,`proposals`,`refine`,`download`].map((e,t)=>(0,u.jsxs)(`button`,{className:re===e?`active`:``,disabled:S,onClick:()=>_(e),children:[(0,u.jsxs)(`span`,{children:[`0`,t+1]}),Y[e]]},e))}),(0,u.jsxs)(`div`,{className:`rail-bottom`,children:[(0,u.jsx)(`p`,{children:Y.privacy}),typeof N.retentionDays==`number`&&(0,u.jsxs)(`p`,{children:[`Retention: `,N.retentionDays,` days, as configured by the service.`]}),v&&(0,u.jsx)(`button`,{className:`quiet danger`,onClick:Mn,children:Y.delete})]})]}),(0,u.jsxs)(`section`,{className:`workspace`,children:[(0,u.jsxs)(`div`,{className:`workspace-heading`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:v?`VERSION ${v.version} / ${v.projectId.slice(0,8)}`:`YOUR NEXT SPACE`}),(0,u.jsx)(`h1`,{children:Y[re]})]}),(0,u.jsxs)(`div`,{className:`workspace-controls`,children:[t&&(0,u.jsx)(`select`,{"aria-label":Y.language,value:m,onChange:e=>ee(e.target.value),children:[`en`,`de`,`fr`,`ar`].map(e=>(0,u.jsx)(`option`,{value:e,children:e.toUpperCase()},e))}),(0,u.jsx)(`button`,{className:`quiet`,disabled:S,onClick:()=>cn(),children:h(m,`New project`)}),v&&(0,u.jsx)(`button`,{className:`quiet compact-delete`,"aria-label":`Delete current project`,disabled:S,onClick:Mn,children:Y.delete}),v&&(0,u.jsxs)(`button`,{className:`outline`,disabled:S||!!G||v.version<2,onClick:()=>$(async()=>{Q(await Z(`/projects/${v.projectId}/undo`,{expectedVersion:v.version,targetVersion:v.version-1,operationId:R()}))}),children:[`↶ `,Y.undo]})]})]}),C&&(0,u.jsxs)(`div`,{role:`alert`,className:`alert`,children:[s===`karamentreprises`?C.replace(/Polycyphers/gi,`Karamentreprises`):C,(0,u.jsx)(`button`,{"aria-label":Y.close,onClick:()=>w(``),children:`×`})]}),ce&&(0,u.jsxs)(`div`,{role:`status`,className:`notice`,children:[ce,(0,u.jsx)(`button`,{"aria-label":Y.close,onClick:()=>D(``),children:`×`})]}),G&&(0,u.jsx)(`section`,{className:`notice preview-banner`,role:`status`,children:(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`strong`,{children:h(m,`Unsaved edit preview`)}),(0,u.jsxs)(`p`,{children:[`Review the recomputed plan, schedule and rule findings below. Your saved version `,v?.version,` is unchanged.`]}),(0,u.jsx)(`button`,{className:`ink`,disabled:S||!De(G,v),onClick:hn,children:h(m,`Apply as new version`)}),(0,u.jsx)(`button`,{className:`outline`,disabled:S,onClick:()=>Le(null),children:h(m,`Discard preview`)})]})}),!v&&!y?(0,u.jsxs)(`div`,{className:`empty`,children:[(0,u.jsx)(`span`,{className:`empty-icon`,children:`⌑`}),(0,u.jsx)(`h2`,{children:Y.empty}),(0,u.jsx)(`p`,{children:Y.emptyBody}),(0,u.jsxs)(`div`,{className:`actions`,children:[(0,u.jsxs)(`button`,{className:`ink large`,disabled:S,onClick:()=>Nt.current?.click(),children:[Y.upload,(0,u.jsx)(B,{})]}),(0,u.jsx)(`button`,{className:`outline`,disabled:S,onClick:()=>cn(),children:h(m,`Enter measurements`)})]}),W&&(0,u.jsx)(`button`,{className:`outline`,disabled:S,onClick:()=>$(async()=>{let e=await Z(`/projects/`+W);Q(e),_(e.input.isDraft?`measure`:`proposals`)}),children:h(m,`Resume saved project`)}),N.mode===`local-demo`&&(0,u.jsx)(`button`,{className:`textbtn`,disabled:S,onClick:ln,children:Y.try})]}):Bt?(0,u.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,u.jsx)(`h2`,{children:{en:`Review an existing plan`,de:`Bestehenden Plan prüfen`,fr:`Vérifier un plan existant`,ar:`مراجعة مخطط قائم`}[m]}),(0,u.jsx)(`p`,{children:{en:`Preserve the supplied geometry. Image observations never become confirmed metric dimensions automatically.`,de:`Die vorgegebene Geometrie bleibt erhalten. Bildbeobachtungen werden nie automatisch zu bestätigten metrischen Maßen.`,fr:`Conserver la géométrie fournie. Les observations d’image ne deviennent jamais automatiquement des mesures métriques confirmées.`,ar:`احفظ الهندسة المقدمة. لا تتحول ملاحظات الصورة تلقائياً إلى قياسات مترية مؤكدة.`}[m]}),(0,u.jsx)(`button`,{className:`outline`,disabled:S||Ht.busy,onClick:()=>Nt.current?.click(),children:Y.upload}),ze&&(0,u.jsx)(`img`,{src:ze,alt:`Local source image preview`,style:{maxWidth:`100%`,maxHeight:350}}),K&&!q&&kn()]}):re===`measure`&&y?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ne,{language:m,input:y,setInput:ae,onChange:e=>{lt(!0),Ye(!1),Le(null),Ze(t=>e===`footprint.diagonals`&&t?{status:`Unvalidated`,findings:[],suggestedDiagonal:t.suggestedDiagonal}:null),e&&yt(t=>t.filter(t=>t!==e))},estimatedFields:vt,confirmed:Je,setConfirmed:Ye,onGenerate:pn,busy:S,onUpload:()=>Nt.current?.click(),imageUrl:ze,geometry:Xe}),K&&!q&&kn(),q&&(0,u.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,u.jsx)(`p`,{children:h(m,`Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.`)}),(0,u.jsxs)(`label`,{className:`field`,children:[h(m,`What should the sketch reader focus on?`),(0,u.jsx)(`textarea`,{"aria-label":`Saved sketch brief`,disabled:S||Ht.busy,value:T,maxLength:8e3,onChange:e=>E(e.target.value)})]}),(0,u.jsx)(`button`,{className:`outline`,disabled:S,onClick:jn,children:h(m,`Read saved sketch with AI · observations only`)})]}),mt&&(0,u.jsxs)(`section`,{className:`paper candidate-panel`,children:[(0,u.jsx)(`h3`,{children:h(m,`Recognized outline · estimated`)}),(0,u.jsx)(`p`,{children:mt.input?`${mt.input.edges.length} linked boundary edges · geometry ${mt.status}`:`The reader did not return a complete, valid outline. Enter or correct measurements manually.`}),(0,u.jsx)(`p`,{children:`Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review.`}),(0,u.jsx)(`button`,{className:`outline`,disabled:S||!mt.input||gt,onClick:Fn,children:h(m,`Preview recognized outline`)}),gt&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:h(m,`Local estimated preview only. The saved project is unchanged.`)}),(0,u.jsx)(Pe,{candidate:mt})]}),(0,u.jsx)(U,{report:mt.values,language:m})]}),(kt.length>0||He.length>0)&&(0,u.jsxs)(`article`,{className:`paper findings`,children:[(0,u.jsx)(`h3`,{children:h(m,`Sketch observations to confirm`)}),(0,u.jsx)(`p`,{children:`AI readings are estimated and unconfirmed. Compare them with your image and site measurements; enter the reviewed values in the footprint form. No value is applied automatically.`}),kt.map((e,t)=>(0,u.jsxs)(`section`,{children:[(0,u.jsxs)(`strong`,{children:[e.kind,e.edgeId?` · `+e.edgeId:``]}),e.value!=null&&(0,u.jsxs)(`p`,{children:[e.value,` `,e.unit??`unit unknown`,` `,(0,u.jsx)(`span`,{className:`value-tag origin-estimated`,children:`estimated · unconfirmed`})]}),(0,u.jsx)(`p`,{children:e.evidence})]},t)),He.map((e,t)=>(0,u.jsx)(`p`,{children:e},t)),jt&&(0,u.jsx)(U,{report:jt,language:m})]})]}):X?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`metrics`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[Y.area,` `,(0,u.jsx)(H,{language:m,report:Rn,path:`centerlineAreaM2`})]}),(0,u.jsxs)(`strong`,{children:[X.centerlineAreaM2.toFixed(2),(0,u.jsx)(`small`,{children:`m²`})]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[Y.net,` `,(0,u.jsx)(H,{language:m,report:Rn,path:`netAreaM2`})]}),(0,u.jsxs)(`strong`,{children:[X.netAreaM2.toFixed(2),(0,u.jsx)(`small`,{children:`m²`})]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[Y.perimeter,` `,(0,u.jsx)(H,{language:m,report:Rn,path:`perimeterM`})]}),(0,u.jsxs)(`strong`,{children:[Jt?.reconciliation.solutions[0]?.perimeterM.toFixed(2),(0,u.jsx)(`small`,{children:`m`})]})]}),(0,u.jsxs)(`div`,{className:`metric-note`,children:[X.hasRequiredConflicts?Y.warning:h(m,`Required layout checks passed`),(0,u.jsx)(`span`,{children:h(m,`Reference sources remain visible below.`)})]})]}),(0,u.jsxs)(`div`,{className:`drawing-layout`,children:[(0,u.jsxs)(`article`,{className:`drawing paper`,children:[(0,u.jsxs)(`div`,{className:`drawing-top`,children:[(0,u.jsxs)(`span`,{children:[`LAYOUT `,X.id]}),(0,u.jsx)(`span`,{children:G?`UNSAVED EDIT PREVIEW`:`ENGINE-CHECKED CONCEPT`}),(0,u.jsx)(`span`,{children:`METRES / CONCEPT`})]}),(0,u.jsx)(`div`,{className:`engine-svg`,dangerouslySetInnerHTML:{__html:l.default.sanitize(X.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}),(0,u.jsxs)(`div`,{className:`drawing-bottom`,children:[(0,u.jsx)(`span`,{children:F[s].title.toUpperCase()}),(0,u.jsxs)(`span`,{children:[G?`PREVIEW / `:``,`v`,Jt?.version,` · `,m.toUpperCase()]})]})]}),(0,u.jsxs)(`aside`,{className:`proposal-panel`,children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:`FIND YOUR FIT`}),Jt?.proposals.map(e=>(0,u.jsxs)(`button`,{className:`proposal-card `+(x===e.id?`selected`:``),disabled:S,onClick:()=>{x!==e.id&&(oe(e.id),de(null),A(null))},children:[(0,u.jsx)(`span`,{className:`proposal-letter`,children:e.id}),(0,u.jsxs)(`div`,{children:[e.recommended&&(0,u.jsx)(`small`,{className:`badge`,children:Y.recommended}),(0,u.jsx)(`h3`,{children:e.title}),(0,u.jsx)(`p`,{children:e.tradeOffs[0]})]})]},e.id)),(0,u.jsxs)(`button`,{className:`ink full`,disabled:S||!!G,onClick:()=>gn(X),children:[Y.select,(0,u.jsx)(B,{})]}),!t&&v&&bn(),(0,u.jsxs)(`section`,{className:`drawing-downloads`,children:[(0,u.jsx)(`h3`,{children:h(m,`2D concept drawings`)}),(0,u.jsx)(`button`,{className:`outline full`,disabled:S||!!G,onClick:wn,children:h(m,`Prepare PDF / editable DXF / SVG`)}),le&&Object.keys(le.files).map(e=>(0,u.jsxs)(`button`,{className:`quiet`,onClick:()=>En(e,le),children:[e.toUpperCase(),` ↓`]},e)),(0,u.jsx)(`small`,{children:`Separate from the BIM model export. PDF is included when the service has PDF rendering configured.`})]}),(0,u.jsxs)(`div`,{className:`tradeoffs`,children:[(0,u.jsx)(`h3`,{children:Y.tradeoffs}),X.tradeOffs.map((e,t)=>(0,u.jsx)(`p`,{children:e},t))]}),re===`download`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`h3`,{children:Y.download}),ue?Object.keys(ue.files).map(e=>(0,u.jsxs)(`button`,{className:`outline full`,onClick:()=>En(e),children:[e.toUpperCase(),` ↓`]},e)):(0,u.jsxs)(`button`,{className:`ink full`,disabled:S||!!G||X.hasRequiredConflicts,onClick:Tn,children:[Y.export,(0,u.jsx)(B,{})]}),(0,u.jsx)(`small`,{children:ue?.viewerVerification??Y.downloadNote})]}):(0,u.jsxs)(`div`,{className:`chat`,children:[(0,u.jsx)(`h3`,{children:Y.chat}),(0,u.jsx)(`textarea`,{"aria-label":Y.chat,disabled:S||Ht.busy,placeholder:Y.hint,value:T,maxLength:8e3,onChange:e=>E(e.target.value)}),(0,u.jsxs)(`button`,{className:`outline full`,disabled:S||!T.trim(),onClick:mn,children:[Y.send,` →`]})]})]})]}),(0,u.jsxs)(`div`,{className:`detail-grid`,children:[(0,u.jsxs)(`article`,{className:`paper schedule`,children:[(0,u.jsx)(`h3`,{children:Y.schedule}),(0,u.jsxs)(`table`,{children:[(0,u.jsx)(`thead`,{children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{children:h(m,`Room`)}),(0,u.jsx)(`th`,{children:`W × D`}),(0,u.jsx)(`th`,{children:h(m,`Axis m²`)}),(0,u.jsx)(`th`,{children:h(m,`Net m²`)})]})}),(0,u.jsx)(`tbody`,{children:X.schedule.map(e=>(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`td`,{children:e.name}),(0,u.jsxs)(`td`,{children:[e.widthM.toFixed(2),` × `,e.depthM.toFixed(2),(0,u.jsx)(H,{language:m,report:Rn,path:`${e.roomId}.widthM`}),(0,u.jsx)(H,{language:m,report:Rn,path:`${e.roomId}.depthM`})]}),(0,u.jsxs)(`td`,{children:[e.centerlineAreaM2.toFixed(2),(0,u.jsx)(H,{language:m,report:Rn,path:`${e.roomId}.centerlineAreaM2`})]}),(0,u.jsxs)(`td`,{children:[e.netAreaM2.toFixed(2),(0,u.jsx)(H,{language:m,report:Rn,path:`${e.roomId}.netAreaM2`})]})]},e.roomId))}),(0,u.jsx)(`tfoot`,{children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{children:h(m,`Total`)}),(0,u.jsx)(`td`,{}),(0,u.jsxs)(`th`,{children:[X.centerlineAreaM2.toFixed(2),(0,u.jsx)(H,{language:m,report:Rn,path:`centerlineAreaM2`})]}),(0,u.jsxs)(`th`,{children:[X.netAreaM2.toFixed(2),(0,u.jsx)(H,{language:m,report:Rn,path:`netAreaM2`})]})]})})]})]}),(0,u.jsxs)(`article`,{className:`paper check-summary`,children:[(0,u.jsx)(`h3`,{children:Y.checks}),(0,u.jsx)(`div`,{className:`check-counts`,children:Object.entries(zn).map(([e,t])=>(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`strong`,{children:t}),e]},e))}),(0,u.jsxs)(`button`,{className:`textbtn`,onClick:()=>Se(!ye),children:[ye?h(m,`Hide`):Y.notes,` `,ye?`−`:`+`]}),(0,u.jsx)(`p`,{children:`Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred.`})]})]}),ye&&(0,u.jsx)(`article`,{className:`paper findings`,children:X.findings.map((e,t)=>(0,u.jsxs)(`details`,{children:[(0,u.jsxs)(`summary`,{children:[(0,u.jsx)(`span`,{className:`status `+e.status,children:e.status}),(0,u.jsx)(`code`,{children:e.ruleId}),(0,u.jsx)(`span`,{children:e.subjectId})]}),(0,u.jsx)(`p`,{children:e.measurement}),e.fix&&(0,u.jsx)(`p`,{children:e.fix}),(0,u.jsx)(`small`,{children:e.source})]},t))}),(0,u.jsx)(`p`,{className:`disclaimer`,children:Y.disclaimer})]}):Jt?(0,u.jsxs)(`section`,{className:`paper findings`,role:`status`,children:[(0,u.jsx)(`h2`,{children:h(m,`No layout proposal is available`)}),(0,u.jsx)(`p`,{children:h(m,`Your measurements are retained. Review the engine findings and measurements before trying again.`)}),(0,u.jsxs)(`p`,{children:[h(m,`Status`),`: `,Jt.reconciliation.status]}),Jt.reconciliation.findings.map((e,t)=>(0,u.jsx)(`p`,{children:e.message},t)),(0,u.jsx)(`button`,{className:`outline`,disabled:S,onClick:()=>_(`measure`),children:h(m,`Review measurements`)}),(0,u.jsx)(`p`,{className:`disclaimer`,children:Y.disclaimer})]}):null,e&&!v&&(0,u.jsx)(`button`,{className:`outline`,disabled:S||Ht.busy||Kt,onClick:()=>void On(),children:{en:`Preserve an existing plan`,de:`Bestehenden Plan erhalten`,fr:`Conserver un plan existant`,ar:`الحفاظ على مخطط قائم`}[m]}),e&&v&&(0,u.jsx)(`div`,{className:`actions`,children:(0,u.jsx)(`button`,{className:`outline`,disabled:S||Ht.busy||Kt,"aria-pressed":Bt,onClick:()=>Vt(!Bt),children:{en:`Existing plan / layout design`,de:`Bestandsplan / Entwurf`,fr:`Plan existant / conception`,ar:`مخطط قائم / تصميم`}[m]})}),v&&!X&&!t&&bn(),v?.pendingDraft&&(0,u.jsx)(`p`,{role:`status`,children:h(m,`Pending inputs are saved privately. They are not an accepted result.`)}),e&&v&&Bt&&(0,u.jsx)(b,{projectId:v.projectId,projectVersion:v.version,pendingDraft:v.pendingDraft??void 0,loadSavedOnMount:v.workflow===`existing-plan`&&!v.pendingDraft?.graph,persistPending:t?void 0:dn,onPendingSaved:t?void 0:fn,registerPendingSaver:t?void 0:Et,language:m,disabled:S,sourceObjectId:q??void 0,imageUrl:ze||void 0,api:Z,onState:Wt,onDownload:(e,t)=>void En(e,t)},v.projectId),v&&(0,u.jsx)(g,{language:m,version:v.version,busy:S,preview:!!G,open:nt,versions:Qe,comparison:et,left:it,right:ot,onToggle:_n,onLeftChange:e=>{at(e),tt(null)},onRightChange:e=>{st(e),tt(null)},onCompare:vn,onRestore:yn}),(Jt||Xe)&&(0,u.jsx)(U,{report:Rn,language:m})]}),(0,u.jsx)(`input`,{hidden:!0,type:`file`,ref:Nt,accept:`image/png,image/jpeg,image/webp`,onChange:e=>{let t=e.target.files?.[0];t&&Dn(t),e.target.value=``}})]}),S&&(0,u.jsxs)(`div`,{className:`working`,role:`status`,children:[(0,u.jsx)(`span`,{className:`spinner`}),Y.generating]}),te===`studio`&&v&&bt.length>0&&(0,u.jsx)(`section`,{className:`paper saved-files`,children:(0,u.jsxs)(`details`,{children:[(0,u.jsx)(`summary`,{children:h(m,`Saved project files · download without a new export`)}),bt.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`strong`,{children:[e.kind,e.version?` · v`+e.version:``,e.proposalId?` · `+e.proposalId:``]}),e.files.map(t=>(0,u.jsxs)(`button`,{className:`quiet`,disabled:S,onClick:()=>Ln(e,t),children:[t.format.toUpperCase(),` ↓`]},t.objectId)),e.kind===`upload`&&e.files.find(e=>[`png`,`jpeg`,`webp`].includes(e.format))&&(0,u.jsx)(`button`,{className:`outline`,disabled:S,onClick:()=>In(e.files.find(e=>[`png`,`jpeg`,`webp`].includes(e.format)).objectId),children:h(m,`Use saved sketch`)})]},e.artifactId))]})}),!t&&N.analyticsEnabled===!0&&(0,u.jsxs)(`aside`,{className:`analytics-choice`,children:[(0,u.jsxs)(`label`,{children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:Dt,onChange:e=>an(e.target.checked)}),` Allow optional visit and paywall analytics`]}),(0,u.jsx)(`small`,{children:`We send event type only, without drawings, dimensions, prompts, URLs or account IDs. Uncheck to withdraw consent and request deletion of this browser's client observations.`})]}),!t&&j&&ut&&(0,u.jsx)(`div`,{className:`modal-backdrop`,children:(0,u.jsxs)(`section`,{className:`modal paper`,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":`content-deletion-title`,children:[(0,u.jsx)(`h2`,{id:`content-deletion-title`,children:h(m,`Delete all project content?`)}),(0,u.jsx)(`p`,{children:h(m,`This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.`)}),(0,u.jsx)(`button`,{className:`outline full danger`,disabled:S,onClick:Nn,children:h(m,`Delete my project content`)}),(0,u.jsx)(`button`,{className:`quiet full`,disabled:S,onClick:()=>dt(!1),children:h(m,`Cancel`)})]})}),!t&&me&&(0,u.jsx)(`div`,{className:`modal-backdrop`,children:(0,u.jsxs)(`form`,{className:`modal paper`,onSubmit:e=>{e.preventDefault(),Pn()},children:[(0,u.jsx)(`button`,{type:`button`,className:`close`,"aria-label":Y.close,onClick:()=>M(!1),children:`×`}),(0,u.jsx)(z,{}),(0,u.jsx)(`h2`,{children:I===`signup`?h(m,`Create a verified account`):I===`verify`?h(m,`Verify your email`):Y.signin}),C&&(0,u.jsx)(`p`,{role:`alert`,children:s===`karamentreprises`?C.replace(/Polycyphers/gi,`Karamentreprises`):C}),ce&&(0,u.jsx)(`p`,{role:`status`,children:ce}),I!==`verify`&&(0,u.jsxs)(`label`,{className:`field`,children:[Y.email,(0,u.jsx)(`input`,{type:`email`,autoComplete:`email`,required:!0,value:he,onChange:e=>ge(e.target.value)})]}),I===`verify`&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:`Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form.`}),(0,u.jsxs)(`label`,{className:`field`,children:[h(m,`Verification token`),(0,u.jsx)(`input`,{autoComplete:`off`,required:!0,value:ke,onChange:e=>V(e.target.value)})]})]}),I!==`signup`&&(0,u.jsxs)(`label`,{className:`field`,children:[Y.password,(0,u.jsx)(`input`,{type:`password`,autoComplete:I===`verify`?`new-password`:`current-password`,minLength:I===`verify`?10:void 0,required:!0,value:_e,onChange:e=>ve(e.target.value)})]}),(0,u.jsx)(`button`,{className:`ink full`,disabled:S,children:I===`signup`?h(m,`Send verification email`):I===`verify`?h(m,`Verify & set password`):Y.signin}),(0,u.jsxs)(`div`,{className:`account-modes`,children:[(0,u.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>L(`login`),children:h(m,`Sign in`)}),(0,u.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>L(`signup`),children:h(m,`Create account`)}),(0,u.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>L(`verify`),children:h(m,`Verify email`)})]}),typeof N.verificationCompletionUrl==`string`&&(0,u.jsxs)(`p`,{children:[`Verification destination: `,N.verificationCompletionUrl]})]})})]})}function H({report:e,path:t,language:n=`en`}){let r=e?.values.find(e=>e.path===t)??e?.values.find(e=>e.path.endsWith(`.`+t));return(0,u.jsxs)(`small`,{className:`value-tag `+(r?.origin??`missing`),title:r?.source??`No provenance supplied for this displayed value.`,children:[h(n,r?.origin??`unlabelled`),` · `,h(n,r?.origin!==`estimated`&&r?.confirmed===!0?`reviewed evidence`:`unconfirmed`)]})}function U({report:e,language:t}){let n=t;return(0,u.jsxs)(`section`,{className:`paper provenance`,children:[(0,u.jsx)(`h3`,{children:h(t,`Value provenance & discrepancies`)}),(0,u.jsx)(`p`,{children:e?.notice??`No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified.`}),(0,u.jsx)(`h4`,{children:h(t,`Discrepancy report`)}),e?e.discrepancies.length?e.discrepancies.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`strong`,{children:[e.kind,` · `,e.subject]}),(0,u.jsx)(`p`,{children:e.message}),e.appliedFix&&(0,u.jsxs)(`p`,{children:[`Applied fix: `,e.appliedFix]}),e.question&&(0,u.jsxs)(`p`,{children:[`Measurement needed: `,e.question]}),e.ruleId&&(0,u.jsx)(`code`,{children:e.ruleId})]},e.id)):(0,u.jsx)(`p`,{children:h(n,`No discrepancies reported by the engine.`)}):(0,u.jsx)(`p`,{children:h(n,`Discrepancy report unavailable.`)}),(0,u.jsxs)(`details`,{children:[(0,u.jsx)(`summary`,{children:h(n,`Every supplied value and its source`)}),(0,u.jsxs)(`table`,{children:[(0,u.jsx)(`thead`,{children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{children:h(n,`Value`)}),(0,u.jsx)(`th`,{children:h(n,`Origin / evidence`)}),(0,u.jsx)(`th`,{children:h(n,`Source`)})]})}),(0,u.jsx)(`tbody`,{children:e?.values.map(t=>(0,u.jsxs)(`tr`,{children:[(0,u.jsxs)(`td`,{children:[(0,u.jsx)(`code`,{children:t.path}),(0,u.jsx)(`br`,{}),t.value,` `,t.unit]}),(0,u.jsx)(`td`,{children:(0,u.jsx)(H,{language:n,report:e,path:t.path})}),(0,u.jsxs)(`td`,{children:[t.source,t.inputPaths.length>0&&(0,u.jsxs)(`small`,{children:[`Inputs: `,t.inputPaths.join(`, `)]})]})]},t.path))})]})]})]})}function Ne({input:e,setInput:t,onChange:n,estimatedFields:r,confirmed:i,setConfirmed:a,onGenerate:o,busy:s,onUpload:c,imageUrl:l,geometry:d,language:f}){let p=f,m=(e,i)=>{i&&(e=L(e,i,r)),t(e),n(i)},g=e.programme,ee=[[`bedroomWidthM`,`Bedroom width`],[`bedroomDepthM`,`Bedroom depth`],[`bathroomWidthM`,`Bathroom width`],[`bathroomDepthM`,`Bathroom depth`],[`hallWidthM`,`Hall width`],[`wardrobeLengthM`,`Wardrobe length`],[`balconyDepthM`,`Balcony depth (0 for none)`],[`slidingDoorWidthM`,`Balcony sliding door width`]];function te(t){let n=e.footprint.edges,r=(t?[...n,{id:``,startVertexId:``,endVertexId:``,lengthM:NaN,bearingDegrees:null,direction:`Any`,wallType:`exterior`}]:n.slice(0,-1)).map((e,t,n)=>({...e,id:`W`+(t+1),startVertexId:`V`+(t+1),endVertexId:`V`+((t+1)%n.length+1)}));m({...e,footprint:{edges:r}})}return(0,u.jsxs)(`section`,{className:`measure-layout`,children:[(0,u.jsx)(`article`,{className:`paper form-card`,children:(0,u.jsxs)(`fieldset`,{disabled:s,style:{border:0,padding:0,minWidth:0},children:[(0,u.jsx)(`h2`,{children:h(p,`Measured footprint`)}),(0,u.jsx)(`p`,{children:`Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal. These are your measurements, not generated dimensions.`}),(0,u.jsx)(`div`,{className:`edge-table`,children:e.footprint.edges.map((t,n)=>(0,u.jsxs)(`div`,{className:`edge-row`,children:[(0,u.jsxs)(`strong`,{children:[t.id,` `,(0,u.jsxs)(`small`,{children:[t.startVertexId,` → `,t.endVertexId]})]}),(0,u.jsxs)(`label`,{children:[h(p,`Length (m)`),` `,(0,u.jsxs)(`small`,{children:[h(p,I(e,`footprint.edges[${n}].lengthM`,r)),` · `,h(p,`unconfirmed`)]}),(0,u.jsx)(`input`,{"aria-label":`${t.id} length`,type:`number`,min:`0`,step:`any`,value:Number.isFinite(t.lengthM)?t.lengthM:``,onChange:t=>m({...e,footprint:{...e.footprint,edges:e.footprint.edges.map((e,r)=>r===n?{...e,lengthM:t.target.value===``?NaN:Number(t.target.value)}:e)}},`footprint.edges[${n}].lengthM`)})]}),(0,u.jsxs)(`label`,{children:[h(p,`Bearing (°)`),` `,(0,u.jsxs)(`small`,{children:[h(p,I(e,`footprint.edges[${n}].bearingDegrees`,r)),` · `,h(p,`unconfirmed`)]}),(0,u.jsx)(`input`,{"aria-label":`${t.id} bearing`,type:`number`,step:`0.01`,placeholder:h(p,`Unknown`),value:t.bearingDegrees??``,onChange:t=>m({...e,footprint:{...e.footprint,edges:e.footprint.edges.map((e,r)=>r===n?{...e,bearingDegrees:t.target.value===``?null:Number(t.target.value)}:e)}},`footprint.edges[${n}].bearingDegrees`)})]}),(0,u.jsxs)(`label`,{children:[h(p,`Wall`),(0,u.jsxs)(`select`,{"aria-label":`${t.id} wall type`,value:t.wallType,onChange:t=>m({...e,footprint:{...e.footprint,edges:e.footprint.edges.map((e,r)=>r===n?{...e,wallType:t.target.value}:e)}}),children:[(0,u.jsx)(`option`,{value:`exterior`,children:h(p,`Exterior`)}),(0,u.jsx)(`option`,{value:`party`,children:h(p,`Party · no openings`)})]})]})]},t.id))}),g?.source.startsWith(`User-entered`)&&(0,u.jsxs)(`div`,{className:`actions`,children:[(0,u.jsx)(`button`,{className:`outline`,disabled:e.footprint.edges.length>=64,onClick:()=>te(!0),children:h(p,`Add wall`)}),(0,u.jsx)(`button`,{className:`quiet`,disabled:e.footprint.edges.length<=3,onClick:()=>te(!1),children:h(p,`Remove last wall`)})]}),d?.suggestedDiagonal&&(0,u.jsxs)(`label`,{className:`field`,children:[`Diagonal `,d.suggestedDiagonal.startVertexId,` → `,d.suggestedDiagonal.endVertexId,` (m)`,(0,u.jsx)(`small`,{children:d.suggestedDiagonal.reason}),(0,u.jsx)(`input`,{type:`number`,min:`0`,step:`any`,value:e.footprint.diagonals?.[0]?.lengthM??``,onChange:t=>m({...e,footprint:{...e.footprint,diagonals:t.target.value?[{startVertexId:d.suggestedDiagonal.startVertexId,endVertexId:d.suggestedDiagonal.endVertexId,lengthM:Number(t.target.value)}]:[]}},`footprint.diagonals`)})]}),(0,u.jsxs)(`details`,{open:!!g,children:[(0,u.jsx)(`summary`,{children:h(p,`Room programme`)}),g?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:h(p,`Requested dimensions. Every value is checked by the shared engine.`)}),(0,u.jsx)(`div`,{className:`programme-grid`,children:ee.map(([t,n])=>(0,u.jsxs)(`label`,{className:`field`,children:[h(p,n),` (m)`,(0,u.jsxs)(`small`,{children:[h(p,I(e,`programme.${t}`,r)),` · `,h(p,`unconfirmed`)]}),(0,u.jsx)(`input`,{type:`number`,min:`0`,step:`0.01`,value:Number.isFinite(g[t])?g[t]:``,onChange:n=>m({...e,programme:{...g,[t]:n.target.value===``?NaN:Number(n.target.value)}},`programme.${t}`)})]},t))}),[`entranceEdgeId`,`balconyEdgeId`].map(t=>(0,u.jsxs)(`label`,{className:`field`,children:[h(p,t===`entranceEdgeId`?`Entrance wall`:`Balcony wall`),(0,u.jsxs)(`select`,{value:g[t],onChange:n=>m({...e,programme:{...g,[t]:n.target.value}}),children:[(0,u.jsx)(`option`,{value:``,children:h(p,`Choose a wall`)}),e.footprint.edges.map(e=>(0,u.jsx)(`option`,{children:e.id},e.id))]})]},t))]}):(0,u.jsxs)(`p`,{children:[`This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions. `,(0,u.jsx)(`button`,{className:`textbtn`,onClick:()=>m({...e,programme:Te(e.language).programme}),children:`Enter my own room dimensions`})]})]}),(0,u.jsxs)(`label`,{className:`field`,children:[h(p,`Main view wall`),(0,u.jsxs)(`select`,{value:e.viewEdgeId,onChange:t=>m({...e,viewEdgeId:t.target.value}),children:[(0,u.jsx)(`option`,{value:``,children:h(p,`No preference`)}),e.footprint.edges.map(e=>(0,u.jsx)(`option`,{children:e.id},e.id))]})]}),(0,u.jsxs)(`label`,{className:`field`,children:[h(p,`Clear ceiling height (m)`),(0,u.jsxs)(`small`,{children:[h(p,I(e,`buildUps.clearCeilingHeightM`,r)),` · `,h(p,`unconfirmed`)]}),(0,u.jsx)(`input`,{type:`number`,step:`0.01`,min:`0`,value:Number(e.buildUps?.clearCeilingHeightM??2.8),onChange:t=>m({...e,buildUps:{...e.buildUps,clearCeilingHeightM:Number(t.target.value)}},`buildUps.clearCeilingHeightM`)})]}),(0,u.jsx)(`p`,{children:`Other wall/slab build-ups remain labelled concept placeholders from the shared engine.`}),(0,u.jsxs)(`label`,{className:`field`,children:[h(p,`Country`),(0,u.jsxs)(`select`,{value:e.country,onChange:t=>m({...e,country:t.target.value}),children:[(0,u.jsx)(`option`,{children:`unspecified`}),(0,u.jsx)(`option`,{children:`Lebanon`}),(0,u.jsx)(`option`,{children:`Germany`})]})]}),(0,u.jsxs)(`label`,{className:`confirmation`,children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:i,onChange:e=>a(e.target.checked)}),h(p,`I confirm these measured dimensions and angle assumptions.`)]}),(0,u.jsx)(`button`,{className:`ink full`,disabled:s||!i,onClick:o,children:h(p,`Check footprint & generate`)}),(0,u.jsx)(`button`,{className:`outline full`,onClick:c,children:h(p,`Attach sketch`)})]})}),(0,u.jsx)(`aside`,{className:`paper measure-sketch`,children:l?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`img`,{className:`uploaded-preview`,src:l,alt:`Your selected sketch, local preview`}),(0,u.jsx)(`p`,{children:h(p,`Local image preview. No dimensions are inferred from this display.`)})]}):(0,u.jsxs)(`div`,{className:`empty`,children:[(0,u.jsx)(`h3`,{children:h(p,`Your measurements define the plan.`)}),(0,u.jsx)(`p`,{children:h(p,`Attach your sketch for reference. There is no sample footprint hidden behind this form.`)}),(0,u.jsx)(`button`,{className:`outline`,disabled:s,onClick:c,children:h(p,`Choose sketch image`)})]})})]})}function Pe({candidate:e}){let t=e.reconciliation?.status===`Unique`?e.reconciliation.solutions[0]?.vertices:null,n=new Map;for(let t of e.values.values){let e=/^sketch\.topology\.vertices\.([A-Za-z0-9_-]+)\.(x|y)$/.exec(t.path);if(e){let r=n.get(e[1])??{x:NaN,y:NaN};r[e[2]]=t.value,n.set(e[1],r)}}let r=t?.length?t.map(e=>({id:e.id,x:e.position.x,y:-e.position.y})):e.input?.edges.map(e=>({id:e.startVertexId,...n.get(e.startVertexId)})).filter(e=>Number.isFinite(e.x)&&Number.isFinite(e.y))??[];if(r.length<3||r.length!==e.input?.edges.length)return null;let i=Math.min(...r.map(e=>e.x)),a=Math.min(...r.map(e=>e.y)),o=Math.max(...r.map(e=>e.x))-i,s=Math.max(...r.map(e=>e.y))-a,c=Math.min(560/Math.max(o,1e-6),300/Math.max(s,1e-6)),l=r.map(e=>({id:e.id,x:40+(e.x-i)*c,y:40+(e.y-a)*c}));return(0,u.jsxs)(`figure`,{className:`recognized-outline`,children:[(0,u.jsxs)(`svg`,{viewBox:`0 0 640 390`,role:`img`,"aria-label":`Unconfirmed recognized outline preview`,children:[(0,u.jsx)(`polygon`,{points:l.map(e=>`${e.x},${e.y}`).join(` `),fill:`rgba(41,124,112,.07)`,stroke:`#286e62`,strokeWidth:`2`}),l.map((t,n)=>{let r=l[(n+1)%l.length],i=e.input?.edges.find(e=>e.startVertexId===t.id);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:t.x,cy:t.y,r:`3`,fill:`#286e62`}),(0,u.jsx)(`text`,{x:t.x+5,y:t.y-7,fontSize:`10`,children:t.id}),i&&(0,u.jsxs)(`text`,{x:(t.x+r.x)/2+5,y:(t.y+r.y)/2+12,fontSize:`11`,children:[i.id,` · `,i.lengthM.toFixed(2),` m [estimated]`]})]},t.id)})]}),(0,u.jsxs)(`figcaption`,{children:[t?.length?`Deterministic closure preview from estimated inputs.`:`Image-space outline estimate; no physical scale.`,` Original recognized outline; form edits are checked when you request reconciliation.`]})]})}exports.BIM_PACKAGE_ID=x,exports.BIM_PACKAGE_VERSION=oe,exports.BimStudio=V,exports.checkBimLicense=ye,exports.clearLicense=de,Object.defineProperty(exports,"disableTelemetry",{enumerable:!0,get:function(){return d.disableTelemetry}}),Object.defineProperty(exports,"enableTelemetry",{enumerable:!0,get:function(){return d.enableTelemetry}}),exports.setLicense=ue;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("react");c=s(c,1);let l=require("dompurify");l=s(l,1);let u=require("react/jsx-runtime"),d=require("@polycyphers/license");var f={studio:`Open studio`,pricing:`Pricing`,start:`Start with your sketch`,eyebrow:`FROM YOUR FIRST IDEA`,hero:`Room for a better idea.`,intro:`Turn a sketch into thoughtful layouts. Explore the possibilities, refine the details, and take your chosen plan into BIM.`,try:`Explore a real example`,upload:`Upload a sketch`,steps:[`Your sketch`,`Measured footprint`,`Layout proposals`,`Your BIM model`],workspace:`Apartment concept`,example:`Reference project · site-confirmed geometry`,measure:`Measurements`,proposals:`Proposals`,refine:`Refine`,download:`Download`,back:`All projects`,generate:`Generate layouts`,generating:`Checking your layout…`,area:`Area to wall centres`,net:`Usable floor area`,perimeter:`Perimeter`,recommended:`Recommended`,checks:`Rule checks`,schedule:`Room schedule`,tradeoffs:`The trade-offs`,send:`Preview edit`,chat:`What would you like to change?`,hint:`Try: “Make the bedroom 3.20 wide”`,save:`Apply measurements`,undo:`Undo`,delete:`Delete project data`,export:`Build & download model`,loading:`Loading…`,select:`Choose this layout`,warning:`Needs review`,pass:`Checked`,notes:`Source notes`,confirm:`Confirm the measurements before generating. The engine checks geometry; a sketch is not a survey.`,empty:`A little information. Better possibilities.`,emptyBody:`Upload a sketch for a local preview, then enter and confirm your measured walls and room programme. The engine checks every dimension.`,privacy:`Private project storage · configurable retention`,disclaimer:`Concept proposal, not a construction drawing; verify with a licensed architect/engineer.`,free:`Your configured free allowance is shown below.`,paid:`Project pricing is shown below.`,paidBody:`A project includes its layout proposals, chat refinements and BIM export, within the configured fair-use caps.`,before:`A sketch, with potential.`,after:`A plan, with purpose.`,downloadNote:`IFC4, DWG and DXF use the same checked scene. Revit and BIMcollab Zoom acceptance remains subject to actual viewer testing.`,language:`Language`,status:`Status`,width:`Width`,depth:`Depth`,signin:`Sign in`,email:`Email`,password:`Password`,account:`Account`,cancel:`Cancel`,close:`Close`},p={en:f,de:{...f,studio:`Studio öffnen`,pricing:`Preise`,start:`Mit Ihrer Skizze starten`,eyebrow:`VON DER ERSTEN IDEE`,hero:`Raum für eine bessere Idee.`,intro:`Aus Ihrer Skizze werden durchdachte Grundrisse. Vergleichen, verfeinern und als BIM-Konzept herunterladen.`,try:`Echtes Beispiel ansehen`,upload:`Skizze hochladen`,steps:[`Ihre Skizze`,`Gemessene Grundfläche`,`Grundrissvorschläge`,`Ihr BIM-Modell`],measure:`Maße`,proposals:`Vorschläge`,refine:`Verfeinern`,download:`Herunterladen`,generate:`Grundrisse erstellen`,save:`Maße übernehmen`,checks:`Regelprüfung`,schedule:`Raumliste`,tradeoffs:`Vor- und Nachteile`,send:`Vorschau anzeigen`,chat:`Was möchten Sie ändern?`,recommended:`Empfohlen`,select:`Diesen Grundriss wählen`,undo:`Rückgängig`,delete:`Projektdaten löschen`,export:`Modell erstellen und herunterladen`,area:`Fläche bis Wandmitte`,net:`Nutzbare Fläche`,perimeter:`Umfang`,signin:`Anmelden`,email:`E-Mail`,password:`Passwort`,cancel:`Abbrechen`,close:`Schließen`},fr:{...f,studio:`Ouvrir le studio`,pricing:`Tarifs`,start:`Commencez par votre croquis`,eyebrow:`DÈS VOTRE PREMIÈRE IDÉE`,hero:`Place à une meilleure idée.`,intro:`Transformez un croquis en plans bien pensés. Comparez, affinez, puis exportez le plan choisi en BIM.`,try:`Voir un exemple réel`,upload:`Importer un croquis`,steps:[`Votre croquis`,`Contour mesuré`,`Variantes`,`Votre modèle BIM`],measure:`Mesures`,proposals:`Variantes`,refine:`Affiner`,download:`Télécharger`,generate:`Générer les variantes`,save:`Valider les mesures`,checks:`Contrôle des règles`,schedule:`Tableau des surfaces`,tradeoffs:`Avantages et inconvénients`,send:`Voir l’aperçu`,chat:`Que souhaitez-vous modifier ?`,recommended:`Recommandée`,select:`Choisir cette variante`,undo:`Annuler`,delete:`Supprimer les données du projet`,export:`Créer et télécharger le modèle`,area:`Surface à l’axe des murs`,net:`Surface utile`,perimeter:`Périmètre`,signin:`Se connecter`,email:`E-mail`,password:`Mot de passe`,cancel:`Annuler`,close:`Fermer`},ar:{...f,studio:`فتح الاستوديو`,pricing:`الأسعار`,start:`ابدأ برسمك الأولي`,eyebrow:`من فكرتك الأولى`,hero:`مساحة لفكرة أفضل.`,intro:`حوّل رسمك الأولي إلى مخططات مدروسة. قارن بين الخيارات، واضبط التفاصيل، ثم انقل المخطط الذي تختاره إلى BIM.`,try:`استكشف مثالاً حقيقياً`,upload:`رفع رسم أولي`,steps:[`رسمك الأولي`,`المسقط المقاس`,`مقترحات المخططات`,`نموذج BIM`],measure:`القياسات`,proposals:`المقترحات`,refine:`تعديل`,download:`تنزيل`,generate:`إنشاء المخططات`,save:`اعتماد القياسات`,checks:`فحص القواعد`,schedule:`جدول الغرف`,tradeoffs:`المزايا والعيوب`,send:`معاينة التعديل`,chat:`ماذا تريد أن تعدّل؟`,recommended:`موصى به`,select:`اختيار هذا المخطط`,undo:`تراجع`,delete:`حذف بيانات المشروع`,export:`إنشاء النموذج وتنزيله`,area:`المساحة حتى محاور الجدران`,net:`المساحة الصافية`,perimeter:`المحيط`,signin:`تسجيل الدخول`,email:`البريد الإلكتروني`,password:`كلمة المرور`,cancel:`إلغاء`,close:`إغلاق`}};Object.assign(p.de,{workspace:`Wohnungskonzept`,example:`Referenzprojekt · vor Ort bestätigte Geometrie`,back:`Alle Projekte`,generating:`Grundriss wird geprüft…`,hint:`Zum Beispiel: „Das Schlafzimmer 3,20\xA0m breit machen“`,loading:`Wird geladen…`,warning:`Prüfung erforderlich`,pass:`Geprüft`,notes:`Quellenhinweise`,confirm:`Bestätigen Sie die Maße, bevor Grundrisse erstellt werden. Die Engine prüft die Geometrie; eine Skizze ersetzt kein Aufmaß.`,empty:`Wenige Angaben. Bessere Möglichkeiten.`,emptyBody:`Laden Sie eine Skizze für eine lokale Vorschau hoch. Geben Sie dann Ihre gemessenen Wände und das Raumprogramm ein und bestätigen Sie sie. Die Engine prüft jedes Maß.`,privacy:`Privater Projektspeicher · einstellbare Aufbewahrungsdauer`,disclaimer:`Konzeptvorschlag, keine Ausführungszeichnung – lassen Sie ihn von einem zugelassenen Architekten oder Ingenieur prüfen.`,free:`Ihr kostenloses Kontingent sehen Sie unten.`,paid:`Den Projektpreis sehen Sie unten.`,paidBody:`Ein Projekt umfasst Vorschläge, Chat-Änderungen und BIM-Export im Rahmen der festgelegten Nutzungslimits.`,before:`Eine Skizze mit Potenzial.`,after:`Ein Plan mit Perspektive.`,downloadNote:`IFC4, DWG und DXF verwenden dieselbe geprüfte Szene. Ob Revit und BIMcollab Zoom die Dateien sauber öffnen, muss erst ein Test in diesen Programmen zeigen.`,language:`Sprache`,status:`Status`,width:`Breite`,depth:`Tiefe`,account:`Konto`}),Object.assign(p.fr,{workspace:`Concept d’appartement`,example:`Projet de référence · géométrie confirmée sur place`,back:`Tous les projets`,generating:`Vérification du plan…`,hint:`Exemple\xA0: « Passer la chambre à 3,20\xA0m de large »`,loading:`Chargement…`,warning:`À vérifier`,pass:`Vérifié`,notes:`Notes sur les sources`,confirm:`Confirmez les mesures avant de générer les variantes. Le moteur contrôle la géométrie ; un croquis ne remplace pas un relevé.`,empty:`Quelques informations. De meilleures possibilités.`,emptyBody:`Importez un croquis pour un aperçu local, puis saisissez et confirmez vos murs mesurés et le programme des pièces. Le moteur contrôle chaque dimension.`,privacy:`Stockage privé · durée de conservation configurable`,disclaimer:`Proposition conceptuelle, pas un plan d’exécution ; à faire vérifier par un architecte ou un ingénieur habilité.`,free:`Les limites de votre essai gratuit figurent ci-dessous.`,paid:`Le tarif du projet figure ci-dessous.`,paidBody:`Un projet comprend ses variantes, les ajustements par chat et l’export BIM, dans les limites d’usage prévues.`,before:`Un croquis prometteur.`,after:`Un plan qui prend forme.`,downloadNote:`Les fichiers IFC4, DWG et DXF reposent sur la même scène vérifiée. Leur ouverture dans Revit et BIMcollab Zoom reste à confirmer par des tests dans ces logiciels.`,language:`Langue`,status:`Statut`,width:`Largeur`,depth:`Profondeur`,account:`Compte`}),Object.assign(p.ar,{workspace:`تصميم مبدئي لشقة`,example:`مشروع مرجعي · شكل هندسي مؤكَّد في الموقع`,back:`كل المشاريع`,generating:`جارٍ فحص المخطط…`,hint:`مثال: «اجعل عرض غرفة النوم 3.20 م»`,loading:`جارٍ التحميل…`,warning:`يحتاج إلى مراجعة`,pass:`تم الفحص`,notes:`ملاحظات المصادر`,confirm:`أكّد القياسات قبل إنشاء المخططات. يتحقّق المحرّك من الشكل الهندسي، لكن الرسم الأولي لا يغني عن الرفع المساحي.`,empty:`معلومات قليلة. خيارات أفضل.`,emptyBody:`ارفع رسماً أولياً لمعاينته على جهازك، ثم أدخل قياسات جدرانك وبرنامج الغرف وأكّدها. يتحقّق المحرّك من كل بُعد.`,privacy:`تخزين خاص للمشروع · مدة احتفاظ قابلة للضبط`,disclaimer:`مقترح مبدئي، وليس مخططاً تنفيذياً؛ يجب أن يتحقّق منه مهندس معماري أو مهندس مختص مرخّص.`,free:`تجد أدناه حدود تجربتك المجانية.`,paid:`تجد سعر المشروع أدناه.`,paidBody:`يشمل المشروع مقترحات المخططات وتعديلات المحادثة وتصدير BIM، ضمن حدود الاستخدام العادل المحددة.`,before:`رسم أولي واعد.`,after:`مخطط واضح الهدف.`,downloadNote:`تعتمد ملفات IFC4 وDWG وDXF على المشهد نفسه الذي جرى التحقق منه. أما فتحها بشكل سليم في Revit وBIMcollab Zoom فلم يُتحقَّق منه بعد، ويتطلب اختباراً فعلياً في هذين البرنامجين.`,language:`اللغة`,status:`الحالة`,width:`العرض`,depth:`العمق`,account:`الحساب`});var m={de:{"New project":`Neues Projekt`,"Enter measurements":`Maße eingeben`,"Resume saved project":`Gespeichertes Projekt öffnen`,"Measured footprint":`Gemessene Grundfläche`,"Length (m)":`Länge (m)`,"Bearing (°)":`Richtung (°)`,Wall:`Wand`,Exterior:`Außenwand`,"Party · no openings":`Nachbarwand · keine Öffnungen`,"Add wall":`Wand hinzufügen`,"Remove last wall":`Letzte Wand entfernen`,"Room programme":`Raumprogramm`,"Bedroom width":`Schlafzimmerbreite`,"Bedroom depth":`Schlafzimmertiefe`,"Bathroom width":`Badbreite`,"Bathroom depth":`Badtiefe`,"Hall width":`Flurbreite`,"Wardrobe length":`Schranklänge`,"Balcony depth (0 for none)":`Balkontiefe (0 = kein Balkon)`,"Balcony sliding door width":`Breite der Balkonschiebetür`,"Entrance wall":`Eingangswand`,"Balcony wall":`Balkonwand`,"Choose a wall":`Wand wählen`,"Main view wall":`Wand zur Hauptaussicht`,"No preference":`Keine Vorgabe`,"Clear ceiling height (m)":`Lichte Raumhöhe (m)`,Country:`Land`,"Check footprint & generate":`Umriss prüfen, Grundrisse erstellen`,"Attach sketch":`Skizze anhängen`,"Choose sketch image":`Skizzenbild wählen`,"Unsaved edit preview":`Nicht gespeicherte Änderungsvorschau`,"Apply as new version":`Als neue Version übernehmen`,"Discard preview":`Vorschau verwerfen`,"Create a verified account":`Konto erstellen und bestätigen`,"Verify your email":`E-Mail bestätigen`,"Verification token":`Bestätigungscode`,"Send verification email":`Bestätigungs-E-Mail senden`,"Verify & set password":`Bestätigen und Passwort setzen`,"Create account":`Konto erstellen`,"Verify email":`E-Mail bestätigen`,"Sign in":`Anmelden`,"Value provenance & discrepancies":`Herkunft der Werte und Abweichungen`,"Discrepancy report":`Abweichungsbericht`},fr:{"New project":`Nouveau projet`,"Enter measurements":`Saisir les mesures`,"Resume saved project":`Reprendre le projet enregistré`,"Measured footprint":`Contour mesuré`,"Length (m)":`Longueur (m)`,"Bearing (°)":`Orientation (°)`,Wall:`Mur`,Exterior:`Extérieur`,"Party · no openings":`Mitoyen · sans ouverture`,"Add wall":`Ajouter un mur`,"Remove last wall":`Retirer le dernier mur`,"Room programme":`Programme des pièces`,"Bedroom width":`Largeur de la chambre`,"Bedroom depth":`Profondeur de la chambre`,"Bathroom width":`Largeur de la salle de bains`,"Bathroom depth":`Profondeur de la salle de bains`,"Hall width":`Largeur du dégagement`,"Wardrobe length":`Longueur du placard`,"Balcony depth (0 for none)":`Profondeur du balcon (0 si aucun)`,"Balcony sliding door width":`Largeur de la baie coulissante`,"Entrance wall":`Mur de l’entrée`,"Balcony wall":`Mur du balcon`,"Choose a wall":`Choisir un mur`,"Main view wall":`Mur côté vue principale`,"No preference":`Sans préférence`,"Clear ceiling height (m)":`Hauteur sous plafond (m)`,Country:`Pays`,"Check footprint & generate":`Vérifier le contour et générer`,"Attach sketch":`Joindre le croquis`,"Choose sketch image":`Choisir le croquis`,"Unsaved edit preview":`Aperçu non enregistré`,"Apply as new version":`Appliquer comme nouvelle version`,"Discard preview":`Ignorer l’aperçu`,"Create a verified account":`Créer un compte vérifié`,"Verify your email":`Vérifiez votre adresse e-mail`,"Verification token":`Code de vérification`,"Send verification email":`Envoyer l’e-mail de vérification`,"Verify & set password":`Vérifier et définir le mot de passe`,"Create account":`Créer un compte`,"Verify email":`Vérifier l’e-mail`,"Sign in":`Se connecter`,"Value provenance & discrepancies":`Origine des valeurs et écarts`,"Discrepancy report":`Rapport des écarts`},ar:{"New project":`مشروع جديد`,"Enter measurements":`إدخال القياسات`,"Resume saved project":`متابعة المشروع المحفوظ`,"Measured footprint":`المسقط المقاس`,"Length (m)":`الطول (م)`,"Bearing (°)":`الاتجاه (°)`,Wall:`الجدار`,Exterior:`خارجي`,"Party · no openings":`مشترك · بلا فتحات`,"Add wall":`إضافة جدار`,"Remove last wall":`حذف آخر جدار`,"Room programme":`برنامج الغرف`,"Bedroom width":`عرض غرفة النوم`,"Bedroom depth":`عمق غرفة النوم`,"Bathroom width":`عرض الحمام`,"Bathroom depth":`عمق الحمام`,"Hall width":`عرض الممر`,"Wardrobe length":`طول الخزانة`,"Balcony depth (0 for none)":`عمق الشرفة (0 = بلا شرفة)`,"Balcony sliding door width":`عرض باب الشرفة المنزلق`,"Entrance wall":`جدار المدخل`,"Balcony wall":`جدار الشرفة`,"Choose a wall":`اختر جداراً`,"Main view wall":`جدار الإطلالة الرئيسية`,"No preference":`بلا تفضيل`,"Clear ceiling height (m)":`ارتفاع السقف الصافي (م)`,Country:`البلد`,"Check footprint & generate":`فحص المسقط وإنشاء المخططات`,"Attach sketch":`إرفاق الرسم الأولي`,"Choose sketch image":`اختيار صورة الرسم الأولي`,"Unsaved edit preview":`معاينة تعديل غير محفوظ`,"Apply as new version":`تطبيق كنسخة جديدة`,"Discard preview":`تجاهل المعاينة`,"Create a verified account":`إنشاء حساب موثّق`,"Verify your email":`تأكيد البريد الإلكتروني`,"Verification token":`رمز التحقق`,"Send verification email":`إرسال رسالة التحقق`,"Verify & set password":`التأكيد وتعيين كلمة المرور`,"Create account":`إنشاء حساب`,"Verify email":`تأكيد البريد`,"Sign in":`تسجيل الدخول`,"Value provenance & discrepancies":`مصادر القيم والفروقات`,"Discrepancy report":`تقرير الفروقات`}};Object.assign(m.de,{"Plan your next space":`Ihr nächstes Vorhaben planen`,"Apartment layout":`Wohnungsgrundriss`,"House extension":`Hausanbau`,Renovation:`Umbau`,"Account options":`Kontooptionen`,"Account actions":`Kontoaktionen`,"Delete project content":`Projektinhalte löschen`,"Sign out":`Abmelden`,"Before image upload":`Vor dem Hochladen`,"I have permission to use this image for this project.":`Ich darf dieses Bild für dieses Projekt verwenden.`,"I understand the AI image-processing disclosure above.":`Ich habe den obigen Hinweis zur KI-Bildverarbeitung verstanden.`,"What would you like to create?":`Was möchten Sie erstellen?`,"Upload for scanning":`Zur Sicherheitsprüfung hochladen`,"Remove local image":`Lokales Bild entfernen`,"What should the sketch reader focus on?":`Worauf soll die Skizzenanalyse achten?`,"Read saved sketch with AI · observations only":`Gespeicherte Skizze mit KI lesen · nur Beobachtungen`,"Recognized outline · estimated":`Erkannter Umriss · geschätzt`,"Preview recognized outline":`Erkannten Umriss ansehen`,"Local estimated preview only. The saved project is unchanged.":`Nur lokale, geschätzte Vorschau. Das gespeicherte Projekt bleibt unverändert.`,"Sketch observations to confirm":`Zu bestätigende Beobachtungen aus der Skizze`,"Required layout checks passed":`Erforderliche Grundrissprüfungen bestanden`,"Reference sources remain visible below.":`Die Referenzquellen finden Sie weiterhin unten.`,"Project billing":`Projektabrechnung`,"Continue to Stripe":`Weiter zu Stripe`,"Refresh project quote":`Projektangebot aktualisieren`,"View project price":`Projektpreis ansehen`,"Purchases are not enabled in this environment.":`Käufe sind in dieser Umgebung deaktiviert.`,"2D concept drawings":`2D-Konzeptpläne`,"Prepare PDF / editable DXF / SVG":`PDF / bearbeitbares DXF / SVG vorbereiten`,Room:`Raum`,"Axis m²":`Achsfläche m²`,"Net m²":`Netto m²`,Total:`Summe`,Hide:`Ausblenden`,"Saved project files · download without a new export":`Gespeicherte Projektdateien · ohne neuen Export herunterladen`,"Use saved sketch":`Gespeicherte Skizze verwenden`,"Allow optional visit and paywall analytics":`Optionale Besuchs- und Bezahlschrankenanalyse erlauben`,"Delete all project content?":`Alle Projektinhalte löschen?`,"Delete my project content":`Meine Projektinhalte löschen`,Cancel:`Abbrechen`,"Every supplied value and its source":`Alle angegebenen Werte und ihre Quellen`,"No discrepancies reported by the engine.":`Die Engine meldet keine Abweichungen.`,"Discrepancy report unavailable.":`Abweichungsbericht nicht verfügbar.`,Value:`Wert`,"Origin / evidence":`Herkunft / Nachweis`,Source:`Quelle`,estimated:`geschätzt`,"user-given":`Ihre Angabe`,measured:`gemessen`,calculated:`berechnet`,unconfirmed:`unbestätigt`,"reviewed evidence":`geprüfter Nachweis`,unlabelled:`ohne Herkunftsangabe`,Unknown:`Unbekannt`,"Requested dimensions. Every value is checked by the shared engine.":`Gewünschte Maße. Jeder Wert wird von der gemeinsamen Engine geprüft.`,"I confirm these measured dimensions and angle assumptions.":`Ich bestätige diese gemessenen Maße und Winkelannahmen.`,"Your measurements define the plan.":`Ihre Maße bestimmen den Grundriss.`,"Local image preview. No dimensions are inferred from this display.":`Lokale Bildvorschau. Aus dieser Anzeige werden keine Maße abgeleitet.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`Hängen Sie Ihre Skizze als Referenz an. Hinter diesem Formular steckt keine Beispielgrundfläche.`,"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.":`Der Dienst prüft und normalisiert das Bild vor der Speicherung. Allein durch die Dateiauswahl wird es nicht an einen KI-Anbieter gesendet. Erst wenn Sie „Gespeicherte Skizze mit KI lesen“ anfordern, wird das bereinigte Bild an Anthropic Claude übermittelt. Die Speicherung in der EU ist vom Ort der KI-Verarbeitung getrennt; Anbieterregion und Bedingungen zur Datenverarbeitung muss der Dienst konfigurieren.`,"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.":`Beim Lesen wird dieses bereinigte Bild an Anthropic Claude gesendet. Speicherung in der EU und Ort der KI-Verarbeitung sind getrennt; die Bedingungen zur Datenverarbeitung muss der Dienst konfigurieren.`,"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.":`Damit wird die Löschung Ihrer Projekte, Skizzen und erzeugten Dateien in diesem Dienst angefordert. Kontoidentität, Abrechnungsdaten und notwendige Missbrauchsschutzdaten bleiben erhalten. Offene Abrechnungsvorgänge können den Abschluss verzögern; wir zeigen Ihnen das Ergebnis des Dienstes.`}),Object.assign(m.fr,{"Plan your next space":`Préparez votre prochain projet`,"Apartment layout":`Plan d’appartement`,"House extension":`Extension de maison`,Renovation:`Rénovation`,"Account options":`Options du compte`,"Account actions":`Actions du compte`,"Delete project content":`Supprimer le contenu des projets`,"Sign out":`Se déconnecter`,"Before image upload":`Avant l’import de l’image`,"I have permission to use this image for this project.":`J’ai l’autorisation d’utiliser cette image pour ce projet.`,"I understand the AI image-processing disclosure above.":`J’ai compris les informations ci-dessus sur le traitement des images par IA.`,"What would you like to create?":`Que souhaitez-vous créer ?`,"Upload for scanning":`Importer pour vérification`,"Remove local image":`Retirer l’image locale`,"What should the sketch reader focus on?":`Sur quoi la lecture du croquis doit-elle porter ?`,"Read saved sketch with AI · observations only":`Lire le croquis enregistré avec l’IA · observations uniquement`,"Recognized outline · estimated":`Contour reconnu · estimé`,"Preview recognized outline":`Prévisualiser le contour reconnu`,"Local estimated preview only. The saved project is unchanged.":`Aperçu estimé local uniquement. Le projet enregistré est inchangé.`,"Sketch observations to confirm":`Observations du croquis à confirmer`,"Required layout checks passed":`Contrôles obligatoires réussis`,"Reference sources remain visible below.":`Les sources de référence restent visibles ci-dessous.`,"Project billing":`Facturation du projet`,"Continue to Stripe":`Continuer vers Stripe`,"Refresh project quote":`Actualiser le devis du projet`,"View project price":`Voir le prix du projet`,"Purchases are not enabled in this environment.":`Les achats ne sont pas activés dans cet environnement.`,"2D concept drawings":`Plans conceptuels 2D`,"Prepare PDF / editable DXF / SVG":`Préparer PDF / DXF modifiable / SVG`,Room:`Pièce`,"Axis m²":`Axes m²`,"Net m²":`Utile m²`,Total:`Total`,Hide:`Masquer`,"Saved project files · download without a new export":`Fichiers enregistrés · télécharger sans nouvel export`,"Use saved sketch":`Utiliser le croquis enregistré`,"Allow optional visit and paywall analytics":`Autoriser les statistiques facultatives de visite et de paiement`,"Delete all project content?":`Supprimer tout le contenu des projets ?`,"Delete my project content":`Supprimer le contenu de mes projets`,Cancel:`Annuler`,"Every supplied value and its source":`Chaque valeur fournie et sa source`,"No discrepancies reported by the engine.":`Aucun écart signalé par le moteur.`,"Discrepancy report unavailable.":`Rapport des écarts indisponible.`,Value:`Valeur`,"Origin / evidence":`Origine / justificatif`,Source:`Source`,estimated:`estimé`,"user-given":`saisi par l’utilisateur`,measured:`mesuré`,calculated:`calculé`,unconfirmed:`non confirmé`,"reviewed evidence":`justificatif vérifié`,unlabelled:`sans origine`,Unknown:`Inconnu`,"Requested dimensions. Every value is checked by the shared engine.":`Dimensions demandées. Chaque valeur est contrôlée par le moteur commun.`,"I confirm these measured dimensions and angle assumptions.":`Je confirme ces dimensions mesurées et les hypothèses d’angle.`,"Your measurements define the plan.":`Vos mesures définissent le plan.`,"Local image preview. No dimensions are inferred from this display.":`Aperçu local de l’image. Aucune dimension n’est déduite de cet affichage.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`Joignez votre croquis pour référence. Aucun contour d’exemple n’est caché derrière ce formulaire.`,"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.":`Le service analyse et normalise l’image avant de l’enregistrer. Sélectionner un fichier ne l’envoie à aucun fournisseur d’IA. « Lire le croquis enregistré » n’envoie l’image nettoyée à Anthropic Claude que si vous demandez cette étape. Le stockage dans l’UE est distinct du lieu de traitement par l’IA ; la région du fournisseur et les conditions de traitement des données dépendent de la configuration du service.`,"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.":`La lecture envoie cette image nettoyée à Anthropic Claude. Le stockage dans l’UE et le lieu de traitement par l’IA sont distincts ; les conditions de traitement des données du fournisseur doivent être configurées par le service.`,"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.":`Cette action demande la suppression de vos projets, croquis et fichiers générés dans ce service. L’identité du compte, les données de facturation et les données anti-abus obligatoires sont conservées. Une opération comptable en attente peut retarder la suppression ; nous affichons le résultat transmis par le service.`}),Object.assign(m.ar,{"Plan your next space":`خطّط لمساحتك القادمة`,"Apartment layout":`توزيع شقة`,"House extension":`توسعة منزل`,Renovation:`تجديد`,"Account options":`خيارات الحساب`,"Account actions":`إجراءات الحساب`,"Delete project content":`حذف محتوى المشاريع`,"Sign out":`تسجيل الخروج`,"Before image upload":`قبل رفع الصورة`,"I have permission to use this image for this project.":`لديّ إذن باستخدام هذه الصورة في هذا المشروع.`,"I understand the AI image-processing disclosure above.":`فهمتُ الإفصاح الوارد أعلاه عن معالجة الصورة بالذكاء الاصطناعي.`,"What would you like to create?":`ماذا تريد أن تُنشئ؟`,"Upload for scanning":`رفع الصورة للفحص الأمني`,"Remove local image":`إزالة الصورة المحلية`,"What should the sketch reader focus on?":`على ماذا تركّز قراءة الرسم الأولي؟`,"Read saved sketch with AI · observations only":`قراءة الرسم المحفوظ بالذكاء الاصطناعي · ملاحظات فقط`,"Recognized outline · estimated":`الشكل الخارجي المستخرج · تقديري`,"Preview recognized outline":`معاينة الشكل الخارجي المستخرج`,"Local estimated preview only. The saved project is unchanged.":`معاينة تقديرية محلية فقط. المشروع المحفوظ لم يتغير.`,"Sketch observations to confirm":`ملاحظات من الرسم تحتاج إلى تأكيد`,"Required layout checks passed":`اجتاز المخطط الفحوص المطلوبة`,"Reference sources remain visible below.":`تبقى المصادر المرجعية ظاهرة أدناه.`,"Project billing":`فواتير المشروع`,"Continue to Stripe":`المتابعة إلى Stripe`,"Refresh project quote":`تحديث عرض سعر المشروع`,"View project price":`عرض سعر المشروع`,"Purchases are not enabled in this environment.":`عمليات الشراء غير مفعّلة في هذه البيئة.`,"2D concept drawings":`رسومات مبدئية ثنائية الأبعاد`,"Prepare PDF / editable DXF / SVG":`إعداد PDF وSVG وملف DXF قابل للتعديل`,Room:`الغرفة`,"Axis m²":`مساحة المحاور م²`,"Net m²":`الصافية م²`,Total:`المجموع`,Hide:`إخفاء`,"Saved project files · download without a new export":`ملفات المشروع المحفوظة · تنزيل دون تصدير جديد`,"Use saved sketch":`استخدام الرسم المحفوظ`,"Allow optional visit and paywall analytics":`السماح بتحليلات الزيارة والدفع الاختيارية`,"Delete all project content?":`حذف محتوى جميع المشاريع؟`,"Delete my project content":`حذف محتوى مشاريعي`,Cancel:`إلغاء`,"Every supplied value and its source":`كل قيمة مُقدَّمة ومصدرها`,"No discrepancies reported by the engine.":`لم يُبلغ المحرّك عن أي فروقات.`,"Discrepancy report unavailable.":`تقرير الفروقات غير متاح.`,Value:`القيمة`,"Origin / evidence":`المصدر / الدليل`,Source:`المرجع`,estimated:`تقديرية`,"user-given":`أدخلها المستخدم`,measured:`مقاسة`,calculated:`محسوبة`,unconfirmed:`غير مؤكَّدة`,"reviewed evidence":`دليل تمت مراجعته`,unlabelled:`بلا مصدر`,Unknown:`غير معروف`,"Requested dimensions. Every value is checked by the shared engine.":`الأبعاد المطلوبة. يتحقّق المحرّك المشترك من كل قيمة.`,"I confirm these measured dimensions and angle assumptions.":`أؤكّد هذه الأبعاد المقاسة وافتراضات الزوايا.`,"Your measurements define the plan.":`قياساتك تحدّد المخطط.`,"Local image preview. No dimensions are inferred from this display.":`معاينة محلية للصورة. لا تُستنتج أبعاد من هذا العرض.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`أرفق رسمك الأولي للرجوع إليه. لا يوجد مسقط جاهز مخفيّ خلف هذا النموذج.`,"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.":`تفحص الخدمة الصورة وتوحّد تنسيقها قبل تخزينها. ولا يؤدي اختيار الملف وحده إلى إرسالها إلى أي مزوّد للذكاء الاصطناعي. ولا يُرسل خيار «قراءة الرسم المحفوظ» الصورة المنقّحة إلى Anthropic Claude إلا عندما تطلب هذه الخطوة. التخزين داخل الاتحاد الأوروبي منفصل عن موقع المعالجة؛ وتتطلب منطقة المزوّد وشروط معالجة البيانات إعداداً من الخدمة.`,"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.":`تُرسل القراءة هذه الصورة المنقّحة إلى Anthropic Claude. التخزين داخل الاتحاد الأوروبي منفصل عن موقع المعالجة لدى المزوّد؛ ويجب أن تضبط الخدمة شروط المزوّد لمعالجة البيانات.`,"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.":`يطلب هذا الإجراء حذف مشاريعك ورسوماتك الأولية والملفات المُنشأة في هذه الخدمة. وتبقى هوية الحساب والفوترة وسجلات مكافحة إساءة الاستخدام اللازمة محفوظة. قد يتأخر إتمام الحذف بسبب عمليات محاسبية معلّقة؛ ونعرض لك النتيجة كما تُبلغ عنها الخدمة.`}),Object.assign(m.de,{"Verifying component license…":`Komponentenlizenz wird geprüft…`,"A valid component license is required":`Eine gültige Komponentenlizenz ist erforderlich`,"The studio stays closed until its installation license and signed revocation status are verified.":`Das Studio bleibt geschlossen, bis Installationslizenz und signierter Sperrstatus geprüft sind.`,"Check license again":`Lizenz erneut prüfen`,"License management":`Lizenzverwaltung`}),Object.assign(m.fr,{"Verifying component license…":`Vérification de la licence du composant…`,"A valid component license is required":`Une licence valide du composant est requise`,"The studio stays closed until its installation license and signed revocation status are verified.":`Le studio reste fermé tant que la licence d’installation et son état de révocation signé ne sont pas vérifiés.`,"Check license again":`Vérifier à nouveau la licence`,"License management":`Gestion des licences`}),Object.assign(m.ar,{"Verifying component license…":`جارٍ التحقق من ترخيص المكوّن…`,"A valid component license is required":`يلزم ترخيص صالح للمكوّن`,"The studio stays closed until its installation license and signed revocation status are verified.":`يبقى الاستوديو مغلقاً حتى التحقق من ترخيص التثبيت وحالة الإلغاء الموقّعة.`,"Check license again":`إعادة فحص الترخيص`,"License management":`إدارة التراخيص`}),Object.assign(m.de,{"No layout proposal is available":`Kein Grundrissvorschlag verfügbar`,"Your measurements are retained. Review the engine findings and measurements before trying again.":`Ihre Maße bleiben erhalten. Prüfen Sie die Hinweise der Engine und die Maße vor einem neuen Versuch.`,"Review measurements":`Maße überprüfen`}),Object.assign(m.fr,{"No layout proposal is available":`Aucune variante disponible`,"Your measurements are retained. Review the engine findings and measurements before trying again.":`Vos mesures sont conservées. Vérifiez les remarques du moteur et vos mesures avant de réessayer.`,"Review measurements":`Vérifier les mesures`}),Object.assign(m.ar,{"No layout proposal is available":`لا يتوفر مقترح مخطط`,"Your measurements are retained. Review the engine findings and measurements before trying again.":`قياساتك محفوظة. راجع ملاحظات المحرّك وقياساتك قبل المحاولة مجدداً.`,"Review measurements":`مراجعة القياسات`}),Object.assign(m.de,{"Saved as a new version. Earlier versions are unchanged.":`Als neue Version gespeichert. Frühere Versionen bleiben unverändert.`,"Hide version history":`Versionsverlauf ausblenden`,"Version history & compare":`Versionsverlauf und Vergleich`,"Saved versions":`Gespeicherte Versionen`,"History and comparison are read-only. Restoring creates a new version after the service checks the current version.":`Verlauf und Vergleich sind schreibgeschützt. Eine Wiederherstellung erstellt nach Prüfung der aktuellen Version eine neue Version.`,"Earlier version":`Frühere Version`,"Later version":`Spätere Version`,"Compare saved versions":`Gespeicherte Versionen vergleichen`,"Restore earlier version":`Frühere Version wiederherstellen`,"Footprint area change":`Änderung der Grundfläche`,"Engine comparison of saved inputs. Source measurements retain their uncertainty.":`Engine-Vergleich gespeicherter Eingaben. Die Ausgangsmaße behalten ihre Unsicherheit.`,"Selected layout":`Gewählter Grundriss`,"Changed inputs":`Geänderte Eingaben`,"No input changes reported.":`Keine geänderten Eingaben gemeldet.`}),Object.assign(m.fr,{"Saved as a new version. Earlier versions are unchanged.":`Enregistré comme nouvelle version. Les versions précédentes restent inchangées.`,"Hide version history":`Masquer l’historique`,"Version history & compare":`Historique et comparaison`,"Saved versions":`Versions enregistrées`,"History and comparison are read-only. Restoring creates a new version after the service checks the current version.":`L’historique et la comparaison sont en lecture seule. La restauration crée une nouvelle version après contrôle de la version actuelle.`,"Earlier version":`Ancienne version`,"Later version":`Nouvelle version`,"Compare saved versions":`Comparer les versions enregistrées`,"Restore earlier version":`Restaurer l’ancienne version`,"Footprint area change":`Variation de la surface au sol`,"Engine comparison of saved inputs. Source measurements retain their uncertainty.":`Comparaison des données enregistrées, faite par le moteur. Les mesures d’origine conservent leur incertitude.`,"Selected layout":`Variante choisie`,"Changed inputs":`Données modifiées`,"No input changes reported.":`Aucune donnée modifiée.`}),Object.assign(m.ar,{"Saved as a new version. Earlier versions are unchanged.":`حُفظ كنسخة جديدة. تبقى النسخ السابقة دون تغيير.`,"Hide version history":`إخفاء سجل النسخ`,"Version history & compare":`سجل النسخ والمقارنة`,"Saved versions":`النسخ المحفوظة`,"History and comparison are read-only. Restoring creates a new version after the service checks the current version.":`السجل والمقارنة للعرض فقط. تُنشئ الاستعادة نسخة جديدة بعد أن تتحقّق الخدمة من النسخة الحالية.`,"Earlier version":`النسخة السابقة`,"Later version":`النسخة اللاحقة`,"Compare saved versions":`مقارنة النسخ المحفوظة`,"Restore earlier version":`استعادة النسخة السابقة`,"Footprint area change":`تغيّر مساحة المسقط`,"Engine comparison of saved inputs. Source measurements retain their uncertainty.":`مقارنة أجراها المحرّك بين المدخلات المحفوظة. وتحتفظ قياسات المصدر بدرجة عدم اليقين الخاصة بها.`,"Selected layout":`المخطط المختار`,"Changed inputs":`المدخلات المتغيّرة`,"No input changes reported.":`لم تُسجّل تغييرات في المدخلات.`}),Object.assign(m.de,{"W × D":`B × T`,"Pending inputs are saved privately. They are not an accepted result.":`Ausstehende Eingaben sind privat gespeichert. Sie sind noch kein bestätigtes Ergebnis.`,"This paid project reached its configured limit. Another purchase will not extend its allowance.":`Dieses bezahlte Projekt hat sein festgelegtes Limit erreicht. Ein weiterer Kauf erweitert das Kontingent nicht.`}),Object.assign(m.fr,{"Pending inputs are saved privately. They are not an accepted result.":`Les données en attente sont enregistrées en privé. Elles ne constituent pas un résultat validé.`,"This paid project reached its configured limit. Another purchase will not extend its allowance.":`Ce projet payé a atteint sa limite. Un nouvel achat n’augmentera pas son quota.`}),Object.assign(m.ar,{"Pending inputs are saved privately. They are not an accepted result.":`حُفظت المدخلات المعلّقة بشكل خاص، وهي ليست نتيجة معتمدة.`,"This paid project reached its configured limit. Another purchase will not extend its allowance.":`بلغ هذا المشروع المدفوع الحدّ المحدد له، ولن يؤدي شراء آخر إلى زيادة حصته.`}),Object.assign(m.de,{"Upload a sketch · coming soon":`Skizze hochladen · bald verfügbar`,"Sketch reading · coming soon":`Skizzen auslesen · bald verfügbar`,"Sketch reading is not available yet. Enter your measurements instead.":`Das Auslesen von Skizzen ist noch nicht verfügbar. Geben Sie stattdessen Ihre Maße ein.`,"Edit by description · coming soon":`Bearbeiten per Beschreibung · bald verfügbar`,"Describing a change in your own words is not available yet. Choose another layout or change your measurements.":`Änderungen in eigenen Worten zu beschreiben ist noch nicht möglich. Wählen Sie einen anderen Grundriss oder ändern Sie Ihre Maße.`,"Enter your measured walls. The engine checks every dimension.":`Geben Sie Ihre gemessenen Wände ein. Jedes Maß wird geprüft.`}),Object.assign(m.fr,{"Upload a sketch · coming soon":`Importer un croquis · bientôt disponible`,"Sketch reading · coming soon":`Lecture de croquis · bientôt disponible`,"Sketch reading is not available yet. Enter your measurements instead.":`La lecture de croquis n’est pas encore disponible. Saisissez plutôt vos mesures.`,"Edit by description · coming soon":`Modifier par description · bientôt disponible`,"Describing a change in your own words is not available yet. Choose another layout or change your measurements.":`Décrire une modification avec vos propres mots n’est pas encore possible. Choisissez une autre variante ou modifiez vos mesures.`,"Enter your measured walls. The engine checks every dimension.":`Saisissez les murs que vous avez mesurés. Le moteur contrôle chaque dimension.`}),Object.assign(m.ar,{"Upload a sketch · coming soon":`رفع رسم أولي · قريباً`,"Sketch reading · coming soon":`قراءة الرسم الأولي · قريباً`,"Sketch reading is not available yet. Enter your measurements instead.":`قراءة الرسومات الأولية غير متاحة بعد. أدخل قياساتك بدلاً من ذلك.`,"Edit by description · coming soon":`التعديل بالوصف · قريباً`,"Describing a change in your own words is not available yet. Choose another layout or change your measurements.":`وصف التعديل بكلماتك غير متاح بعد. اختر مخططاً آخر أو عدّل قياساتك.`,"Enter your measured walls. The engine checks every dimension.":`أدخل قياسات جدرانك. يتحقّق المحرّك من كل بُعد.`}),Object.assign(m.de,{"Your room":`Ihr Raum`,Layouts:`Grundrisse`,"Enter the inside size of your space in metres.":`Geben Sie die Innenmaße Ihres Raums in Metern ein.`,"Room shape":`Raumform`,Rectangle:`Rechteck`,"L-shape":`L-Form`,Custom:`Eigene Form`,"Width (m)":`Breite (m)`,"Depth (m)":`Tiefe (m)`,"Cut-out width (m)":`Breite der Aussparung (m)`,"Cut-out depth (m)":`Tiefe der Aussparung (m)`,"The cut-out is taken from the back right corner.":`Die Aussparung liegt in der hinteren rechten Ecke.`,"The cut-out must be smaller than the room.":`Die Aussparung muss kleiner als der Raum sein.`,"Right angles assumed":`Rechte Winkel angenommen`,estimated:`geschätzt`,change:`ändern`,"Room wishes (optional)":`Raumwünsche (optional)`,"We suggest sensible room sizes. They are labelled estimated until you enter your own.":`Wir schlagen sinnvolle Raumgrößen vor. Sie bleiben als geschätzt markiert, bis Sie eigene eingeben.`,"Enter my own room sizes":`Eigene Raumgrößen eingeben`,"Use suggested sizes":`Vorgeschlagene Größen verwenden`,"More options":`Weitere Optionen`,"These are my measurements.":`Das sind meine Maße.`,"Show layouts":`Grundrisse anzeigen`,"Outline preview":`Umrissvorschau`,"The outline appears when every wall length and angle is known.":`Der Umriss erscheint, sobald alle Wandlängen und Winkel bekannt sind.`,"Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal.":`Wände in Umrissreihenfolge gegen den Uhrzeigersinn eingeben. Richtung: 0° Osten, 90° Norden. Unbekannte Winkel leer lassen; eventuell wird eine Diagonale abgefragt.`}),Object.assign(m.fr,{"Your room":`Votre pièce`,Layouts:`Variantes`,"Enter the inside size of your space in metres.":`Saisissez les dimensions intérieures de votre espace, en mètres.`,"Room shape":`Forme de la pièce`,Rectangle:`Rectangle`,"L-shape":`En L`,Custom:`Libre`,"Width (m)":`Largeur (m)`,"Depth (m)":`Profondeur (m)`,"Cut-out width (m)":`Largeur du décrochement (m)`,"Cut-out depth (m)":`Profondeur du décrochement (m)`,"The cut-out is taken from the back right corner.":`Le décrochement se situe dans l’angle arrière droit.`,"The cut-out must be smaller than the room.":`Le décrochement doit être plus petit que la pièce.`,"Right angles assumed":`Angles droits supposés`,estimated:`estimé`,change:`modifier`,"Room wishes (optional)":`Souhaits pour les pièces (facultatif)`,"We suggest sensible room sizes. They are labelled estimated until you enter your own.":`Nous proposons des dimensions de pièces adaptées. Elles restent indiquées comme estimées tant que vous n’avez pas saisi les vôtres.`,"Enter my own room sizes":`Saisir mes propres dimensions`,"Use suggested sizes":`Utiliser les dimensions proposées`,"More options":`Plus d’options`,"These are my measurements.":`Il s’agit de mes propres mesures.`,"Show layouts":`Afficher les variantes`,"Outline preview":`Aperçu du contour`,"The outline appears when every wall length and angle is known.":`Le contour s’affiche dès que toutes les longueurs et tous les angles sont connus.`,"Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal.":`Saisissez les murs dans l’ordre du contour, dans le sens inverse des aiguilles d’une montre. Orientation\xA0: 0° à l’est, 90° au nord. Laissez vides les angles inconnus ; une diagonale pourra vous être demandée.`}),Object.assign(m.ar,{"Your room":`غرفتك`,Layouts:`المخططات`,"Enter the inside size of your space in metres.":`أدخل المقاسات الداخلية لغرفتك بالأمتار.`,"Room shape":`شكل الغرفة`,Rectangle:`مستطيل`,"L-shape":`شكل L`,Custom:`مخصص`,"Width (m)":`العرض (م)`,"Depth (m)":`العمق (م)`,"Cut-out width (m)":`عرض الجزء المقتطع (م)`,"Cut-out depth (m)":`عمق الجزء المقتطع (م)`,"The cut-out is taken from the back right corner.":`يُقتطع الجزء من الزاوية الخلفية اليمنى.`,"The cut-out must be smaller than the room.":`يجب أن يكون الجزء المقتطع أصغر من الغرفة.`,"Right angles assumed":`يُفترض أن الزوايا قائمة`,estimated:`تقديرية`,change:`تغيير`,"Room wishes (optional)":`رغباتك للغرف (اختياري)`,"We suggest sensible room sizes. They are labelled estimated until you enter your own.":`نقترح مقاسات مناسبة للغرف، وتبقى موسومة بأنها تقديرية حتى تُدخل مقاساتك.`,"Enter my own room sizes":`إدخال مقاسات غرفي`,"Use suggested sizes":`استخدام المقاسات المقترحة`,"More options":`خيارات إضافية`,"These are my measurements.":`هذه قياساتي.`,"Show layouts":`عرض المخططات`,"Outline preview":`معاينة الشكل الخارجي`,"The outline appears when every wall length and angle is known.":`يظهر الشكل الخارجي بعد معرفة أطوال الجدران وزواياها كلها.`,"Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal.":`أدخل الجدران بترتيب الحدود، عكس اتجاه عقارب الساعة. الاتجاهات: 0° للشرق، و90° للشمال. اترك الزوايا غير المعروفة فارغة؛ فقد يطلب المحرّك قياس قطر واحد.`}),Object.assign(m.de,{Account:`Konto`,"Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form.":`Öffnen Sie den Bestätigungslink aus Ihrer E-Mail oder fügen Sie den Code unten ein. Die Bestätigung erfolgt erst, wenn Sie dieses Formular absenden.`}),Object.assign(m.fr,{Account:`Compte`,"Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form.":`Ouvrez le lien de vérification reçu par e-mail ou collez son code ci-dessous. La vérification n’a lieu qu’une fois ce formulaire envoyé.`}),Object.assign(m.ar,{Account:`الحساب`,"Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form.":`افتح رابط التحقق المرسل إلى بريدك الإلكتروني، أو الصق رمزه أدناه. ولا يجري التحقق إلا عند إرسال هذا النموذج.`}),Object.assign(m.de,{"Edit preview":`Änderungsvorschau`}),Object.assign(m.fr,{"W × D":`l × p`,"Edit preview":`Aperçu de la modification`}),Object.assign(m.ar,{"W × D":`العرض × العمق`,"Edit preview":`معاينة التعديل`}),Object.assign(m.de,{"Sign in with a verified account to continue.":`Melden Sie sich mit einem bestätigten Konto an, um fortzufahren.`,"One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service.":`Ein Projekt umfasst Vorschläge, Anpassungen und sein BIM-Modell im Rahmen der festgelegten Grenzen. Kostenlose Kontingente prüft der Dienst.`,"Project usage limits are unavailable. Checkout stays disabled until they can be shown.":`Die Nutzungsgrenzen des Projekts sind nicht verfügbar. Der Kauf bleibt gesperrt, bis sie angezeigt werden können.`,"A checkout return is not proof of payment; downloads use the service's verified entitlement.":`Die Rückkehr vom Bezahlvorgang ist kein Zahlungsnachweis; Downloads richten sich nach der vom Dienst bestätigten Berechtigung.`,"Choose a PNG, JPEG or WebP up to 8 MB.":`Wählen Sie eine PNG-, JPEG- oder WebP-Datei bis 8\xA0MB.`,"Service reports project data erased.":`Der Dienst meldet: Projektdaten gelöscht.`,"Service reports project content erased.":`Der Dienst meldet: Projektinhalte gelöscht.`,"Content deletion accepted; erasure is still pending.":`Löschung angenommen; das Entfernen läuft noch.`,"Deletion accepted; data erasure is still pending. The service will continue cleanup.":`Löschung angenommen; die Daten werden noch entfernt. Der Dienst setzt die Bereinigung fort.`,"Accounting cleanup is still pending.":`Die Bereinigung der Abrechnungsdaten läuft noch.`,"Accounting cleanup completed.":`Die Bereinigung der Abrechnungsdaten ist abgeschlossen.`,"Account identity, billing and required anti-abuse metadata are retained.":`Kontoidentität, Abrechnungsdaten und notwendige Missbrauchsschutzdaten bleiben erhalten.`,"Your measurements. Checked geometry. One shared engine.":`Ihre Maße. Geprüfte Geometrie. Eine gemeinsame Engine.`,"A small project.":`Ein kleines Projekt.`,"A useful next step.":`Ein sinnvoller nächster Schritt.`,"Pricing opens with the service":`Preise folgen mit dem Start des Dienstes`,"Base pricing. Your project quote is shown before purchase.":`Grundpreis. Ihr Projektangebot sehen Sie vor dem Kauf.`,"One project includes proposals, refinements and its model export.":`Ein Projekt umfasst Vorschläge, Anpassungen und den Modellexport.`,"Local reference preview":`Lokale Referenzvorschau`,"Private project":`Privates Projekt`,"The reader did not return a complete, valid outline. Enter or correct measurements manually.":`Es wurde kein vollständiger, gültiger Umriss erkannt. Geben Sie die Maße selbst ein oder korrigieren Sie sie.`,"Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review.":`Längen stammen nur aus beschrifteten Maßen. Bildkoordinaten ergeben keinen Maßstab. Winkel und Wandarten bleiben zu prüfende Annahmen.`,"AI readings are estimated and unconfirmed. Compare them with your image and site measurements; enter the reviewed values in the footprint form. No value is applied automatically.":`Erkannte Werte sind geschätzt und unbestätigt. Vergleichen Sie sie mit Ihrem Bild und Ihren Aufmaßen und tragen Sie geprüfte Werte selbst ein. Nichts wird automatisch übernommen.`,"unit unknown":`Einheit unbekannt`,"estimated · unconfirmed":`geschätzt · unbestätigt`,"Engine-checked concept":`Geprüftes Konzept`,Preview:`Vorschau`,"Unsaved edit preview":`Vorschau, nicht gespeichert`,"Layout {id}":`Grundriss {id}`,"Separate from the BIM model export. PDF is included when the service has PDF rendering configured.":`Getrennt vom BIM-Modellexport. PDF ist enthalten, wenn der Dienst PDF-Ausgabe anbietet.`,"Area m²":`Fläche m²`,Total:`Summe`,Status:`Status`,Source:`Quelle`,"Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred.":`Reine Referenzangaben werden offen ausgewiesen und nie als bestandene Prüfung dargestellt. Eine behördliche Zulassung wird nicht abgeleitet.`,"We send event type only, without drawings, dimensions, prompts, URLs or account IDs. Uncheck to withdraw consent and request deletion of this browser's client observations.":`Wir übermitteln nur die Art des Ereignisses – ohne Zeichnungen, Maße, Eingaben, URLs oder Konto-IDs. Wenn Sie das Häkchen entfernen, widerrufen Sie Ihre Einwilligung und beantragen die Löschung der in diesem Browser erfassten Daten.`,"Allow optional visit and paywall analytics":`Optionale Auswertung von Besuchen und Bezahlschranke erlauben`,"Angle (°)":`Winkel (°)`,"Shared wall · no windows or doors":`Gemeinsame Wand · keine Fenster oder Türen`,"Other wall/slab build-ups remain labelled concept placeholders from the shared engine.":`Andere Wand- und Deckenaufbauten bleiben gekennzeichnete Konzeptannahmen.`,"Not specified":`Keine Angabe`,Lebanon:`Libanon`,Germany:`Deutschland`,"Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal. These are your measurements, not generated dimensions.":`Wände in Umrissreihenfolge gegen den Uhrzeigersinn eingeben. Richtung: 0° Osten, 90° Norden. Unbekannte Winkel leer lassen; eventuell wird eine Diagonale abgefragt. Das sind Ihre Maße, keine vom System erzeugten.`,"This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions.":`Dieses Beispiel nutzt angenommene Raumgrößen. Sie bleiben geschätzt, bis Sie eigene Maße eingeben.`,"Enter my own room dimensions":`Eigene Raummaße eingeben`,"Reference example loaded. Review its site-confirmed dimensions before generating.":`Referenzbeispiel geladen. Prüfen Sie die vor Ort bestätigten Maße, bevor Sie Grundrisse erstellen.`,"Review the image permissions and AI disclosure before upload.":`Prüfen Sie Bildrechte und KI-Hinweis vor dem Hochladen.`,"Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.":`Skizze privat gespeichert. Das Lesen liefert Beobachtungen zur Bestätigung, nie ungeprüfte Maße.`,"Pending work could not be saved by this service. Checkout and generation are stopped; keep this page open.":`Ihr aktueller Stand konnte nicht gespeichert werden. Kauf und Erstellung sind angehalten; lassen Sie diese Seite geöffnet.`,"Review the image permissions and AI disclosure, or remove the local image.":`Prüfen Sie Bildrechte und KI-Hinweis oder entfernen Sie das lokale Bild.`,"Confirm the measured dimensions and bearings before generating.":`Bestätigen Sie Maße und Winkel, bevor Sie Grundrisse erstellen.`,"Preview applied as a new saved version.":`Vorschau als neue gespeicherte Version übernommen.`,"A valid project quote was not supplied.":`Es liegt kein gültiges Projektangebot vor.`,"Scan and save the selected image before checkout so it can be restored after payment.":`Lassen Sie das gewählte Bild vor dem Kauf prüfen und speichern, damit es nach der Zahlung wiederhergestellt werden kann.`,"This quote expired. Refresh the project quote before purchase.":`Dieses Angebot ist abgelaufen. Aktualisieren Sie es vor dem Kauf.`,"The existing-plan editor is not ready to preserve your latest work. Checkout is stopped; keep this page open.":`Der Bestandsplan-Editor kann Ihre letzte Arbeit noch nicht sichern. Der Kauf ist angehalten; lassen Sie diese Seite geöffnet.`,"The checkout address was not accepted.":`Die Adresse der Bezahlseite wurde nicht akzeptiert.`,"Signed out. Your saved project stays private and can resume after sign-in.":`Abgemeldet. Ihr gespeichertes Projekt bleibt privat und lässt sich nach der Anmeldung fortsetzen.`,"2D concept drawings prepared. This does not spend the BIM model export.":`2D-Konzeptpläne erstellt. Der BIM-Modellexport wird dafür nicht verbraucht.`,"Local sketch preview only. Review permissions, then scan and store it privately before asking AI to read observations. No measured footprint is required for that step.":`Nur lokale Skizzenvorschau. Prüfen Sie die Rechte, scannen und speichern Sie sie privat, bevor die KI sie liest. Dafür ist keine gemessene Grundfläche nötig.`,"Local preview only. Review permissions and AI disclosure before uploading the image.":`Nur lokale Vorschau. Prüfen Sie Rechte und KI-Hinweis vor dem Hochladen.`,"Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements.":`Erkannte Werte bleiben geschätzt. Prüfen Sie Umriss, Beschriftungen und Annahmen und übernehmen Sie geprüfte Maße ausdrücklich.`,"Check your email for the verification link. No session is created until ownership is verified.":`Den Bestätigungslink finden Sie in Ihrer E-Mail. Eine Sitzung entsteht erst nach der Bestätigung.`,"Email verified. Sign in to continue.":`E-Mail bestätigt. Melden Sie sich an, um fortzufahren.`,"The verified workspace could not be loaded.":`Der bestätigte Arbeitsbereich konnte nicht geladen werden.`,"Signed in. This session stays in memory only.":`Angemeldet. Diese Sitzung bleibt nur im Arbeitsspeicher.`,"Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption.":`Der erkannte Umriss ist eine lokale, geschätzte Vorschau. Keine Version und kein Vorschlag wurden geändert. Prüfen Sie jede Länge, jeden Winkel und jede Wandart vor der Übernahme.`,"Saved sanitized sketch selected. Reading it with AI is a separate explicit action.":`Gespeicherte, bereinigte Skizze gewählt. Das Lesen mit KI ist ein eigener, ausdrücklicher Schritt.`,"Enter every measured wall length. Leave an unknown bearing blank.":`Geben Sie jede gemessene Wandlänge ein. Unbekannte Winkel bleiben leer.`,"Complete the room programme and choose the entrance and balcony walls.":`Vervollständigen Sie das Raumprogramm und wählen Sie Eingangs- und Balkonwand.`,"Delete current project":`Aktuelles Projekt löschen`,"Quote valid until {date}.":`Angebot gültig bis {date}.`,"Files are kept for {days} days.":`Dateien werden {days}\xA0Tage aufbewahrt.`,"Review the recomputed plan, schedule and rule findings below. Your saved version {version} is unchanged.":`Prüfen Sie unten den neu berechneten Plan, die Raumliste und die Prüfergebnisse. Ihre gespeicherte Version {version} bleibt unverändert.`,"Applied fix: {fix}":`Angewandte Korrektur: {fix}`,"Measurement needed: {question}":`Benötigtes Maß: {question}`,"Inputs: {paths}":`Eingaben: {paths}`,"Diagonal {from} → {to} (m)":`Diagonale {from} → {to} (m)`,"{count} linked boundary edges · geometry {status}":`{count} verbundene Umrisskanten · Geometrie {status}`,"A CLEAR START":`EIN KLARER START`,"CHECKED BY THE ENGINE":`VON DER ENGINE GEPRÜFT`,"METRES / CONCEPT":`METER / KONZEPT`,"THE STARTING POINT":`DER AUSGANGSPUNKT`,WORKSPACE:`ARBEITSBEREICH`,"FIND YOUR FIT":`IHR PASSENDER GRUNDRISS`}),Object.assign(m.fr,{"Sign in with a verified account to continue.":`Connectez-vous avec un compte vérifié pour continuer.`,"One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service.":`Un projet comprend ses variantes, ses ajustements et son modèle BIM, dans les limites prévues. Les quotas gratuits sont contrôlés par le service.`,"Project usage limits are unavailable. Checkout stays disabled until they can be shown.":`Les limites d’utilisation du projet sont indisponibles. L’achat reste désactivé tant qu’elles ne peuvent pas être affichées.`,"A checkout return is not proof of payment; downloads use the service's verified entitlement.":`Revenir de la page de paiement ne prouve pas que le paiement a abouti ; les téléchargements reposent sur le droit d’accès vérifié par le service.`,"Choose a PNG, JPEG or WebP up to 8 MB.":`Choisissez un fichier PNG, JPEG ou WebP de 8\xA0Mo maximum.`,"Service reports project data erased.":`Le service indique que les données du projet sont effacées.`,"Service reports project content erased.":`Le service indique que le contenu des projets est effacé.`,"Content deletion accepted; erasure is still pending.":`Suppression acceptée ; l’effacement est encore en cours.`,"Deletion accepted; data erasure is still pending. The service will continue cleanup.":`Suppression acceptée ; l’effacement des données est en cours. Le service poursuit le nettoyage.`,"Accounting cleanup is still pending.":`Le nettoyage comptable est encore en cours.`,"Accounting cleanup completed.":`Le nettoyage comptable est terminé.`,"Account identity, billing and required anti-abuse metadata are retained.":`L’identité du compte, les données de facturation et les métadonnées anti-abus obligatoires sont conservées.`,"Your measurements. Checked geometry. One shared engine.":`Vos mesures. Une géométrie vérifiée. Un moteur commun.`,"A small project.":`Un petit projet.`,"A useful next step.":`Une prochaine étape utile.`,"Pricing opens with the service":`Les tarifs seront publiés à l’ouverture du service`,"Base pricing. Your project quote is shown before purchase.":`Tarif de base. Le devis de votre projet s’affiche avant l’achat.`,"One project includes proposals, refinements and its model export.":`Un projet comprend ses variantes, ses ajustements et l’export de son modèle.`,"Local reference preview":`Aperçu local de référence`,"Private project":`Projet privé`,"The reader did not return a complete, valid outline. Enter or correct measurements manually.":`Aucun contour complet et valide n’a été reconnu. Saisissez ou corrigez les mesures vous-même.`,"Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review.":`Les longueurs proviennent uniquement des cotes écrites. Les coordonnées de l’image ne donnent pas l’échelle réelle. Les orientations et les types de murs restent des hypothèses à vérifier.`,"AI readings are estimated and unconfirmed. Compare them with your image and site measurements; enter the reviewed values in the footprint form. No value is applied automatically.":`Les valeurs lues par l’IA sont estimées et non confirmées. Comparez-les à votre image et à vos mesures sur place, puis saisissez les valeurs vérifiées dans le formulaire du contour. Rien n’est appliqué automatiquement.`,"unit unknown":`unité inconnue`,"estimated · unconfirmed":`estimé · non confirmé`,"Engine-checked concept":`Concept contrôlé par le moteur`,Preview:`Aperçu`,"Unsaved edit preview":`Aperçu non enregistré`,"Layout {id}":`Variante {id}`,"Separate from the BIM model export. PDF is included when the service has PDF rendering configured.":`Indépendant de l’export du modèle BIM. Le PDF est inclus si le service le propose.`,"Area m²":`Surface m²`,Total:`Total`,Status:`Statut`,Source:`Source`,"Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred.":`Les éléments de référence sont signalés comme tels, jamais comme des contrôles réussis. Aucune conformité réglementaire nationale n’est déduite.`,"We send event type only, without drawings, dimensions, prompts, URLs or account IDs. Uncheck to withdraw consent and request deletion of this browser's client observations.":`Nous n’envoyons que le type d’événement, sans plans, dimensions, textes saisis, adresses web ni identifiants de compte. Décochez la case pour retirer votre consentement et demander la suppression des données collectées dans ce navigateur.`,"Allow optional visit and paywall analytics":`Autoriser les statistiques facultatives de visite et de paiement`,"Angle (°)":`Angle (°)`,"Shared wall · no windows or doors":`Mur mitoyen · sans fenêtre ni porte`,"Other wall/slab build-ups remain labelled concept placeholders from the shared engine.":`Les autres compositions de murs et de dalles restent des hypothèses de principe du moteur commun, signalées comme telles.`,"Not specified":`Non précisé`,Lebanon:`Liban`,Germany:`Allemagne`,"Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal. These are your measurements, not generated dimensions.":`Saisissez les murs dans l’ordre du contour, dans le sens inverse des aiguilles d’une montre. Orientation\xA0: 0° à l’est, 90° au nord. Laissez vides les angles inconnus ; une diagonale pourra vous être demandée. Ce sont vos mesures, pas des valeurs générées.`,"This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions.":`Cet exemple repose sur des dimensions de pièces proposées par le moteur. Elles restent estimées tant que vous ne les remplacez pas par les vôtres.`,"Enter my own room dimensions":`Saisir mes propres dimensions`,"Reference example loaded. Review its site-confirmed dimensions before generating.":`Exemple de référence chargé. Vérifiez ses dimensions confirmées sur place avant de générer les variantes.`,"Review the image permissions and AI disclosure before upload.":`Vérifiez vos droits sur l’image et les informations sur l’IA avant l’import.`,"Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.":`Croquis enregistré en privé. La lecture produit des observations à confirmer, jamais des dimensions non vérifiées.`,"Pending work could not be saved by this service. Checkout and generation are stopped; keep this page open.":`Votre travail en cours n’a pas pu être enregistré. L’achat et la génération sont suspendus ; gardez cette page ouverte.`,"Review the image permissions and AI disclosure, or remove the local image.":`Vérifiez vos droits sur l’image et les informations sur l’IA, ou retirez l’image locale.`,"Confirm the measured dimensions and bearings before generating.":`Confirmez les dimensions mesurées et les orientations avant de générer les variantes.`,"Preview applied as a new saved version.":`Aperçu appliqué comme nouvelle version enregistrée.`,"A valid project quote was not supplied.":`Aucun devis de projet valide n’a été fourni.`,"Scan and save the selected image before checkout so it can be restored after payment.":`Faites analyser et enregistrer l’image choisie avant l’achat pour la retrouver après le paiement.`,"This quote expired. Refresh the project quote before purchase.":`Ce devis a expiré. Actualisez-le avant l’achat.`,"The existing-plan editor is not ready to preserve your latest work. Checkout is stopped; keep this page open.":`L’éditeur de plan existant ne peut pas encore enregistrer vos dernières modifications. L’achat est suspendu ; gardez cette page ouverte.`,"The checkout address was not accepted.":`L’adresse de la page de paiement n’a pas été acceptée.`,"Signed out. Your saved project stays private and can resume after sign-in.":`Vous êtes déconnecté. Votre projet enregistré reste privé ; vous pourrez le reprendre après connexion.`,"2D concept drawings prepared. This does not spend the BIM model export.":`Plans conceptuels 2D prêts. L’export du modèle BIM n’est pas décompté.`,"Local sketch preview only. Review permissions, then scan and store it privately before asking AI to read observations. No measured footprint is required for that step.":`Aperçu local du croquis uniquement. Vérifiez vos droits, puis faites-le analyser et enregistrer en privé avant toute lecture par l’IA. Aucun contour mesuré n’est nécessaire pour cette étape.`,"Local preview only. Review permissions and AI disclosure before uploading the image.":`Aperçu local uniquement. Vérifiez vos droits et les informations sur l’IA avant d’importer l’image.`,"Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements.":`Les valeurs reconnues restent estimées. Vérifiez le contour, les cotes et les hypothèses, puis adoptez explicitement les mesures vérifiées.`,"Check your email for the verification link. No session is created until ownership is verified.":`Le lien de vérification vous a été envoyé par e-mail. Aucune session n’est ouverte tant que l’adresse n’est pas vérifiée.`,"Email verified. Sign in to continue.":`E-mail vérifié. Connectez-vous pour continuer.`,"The verified workspace could not be loaded.":`L’espace de travail vérifié n’a pas pu être chargé.`,"Signed in. This session stays in memory only.":`Vous êtes connecté. Cette session n’est conservée qu’en mémoire.`,"Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption.":`Le contour reconnu est un aperçu local estimé. Aucune version ni proposition n’a changé. Vérifiez chaque longueur, angle et type de mur avant de l’adopter.`,"Saved sanitized sketch selected. Reading it with AI is a separate explicit action.":`Croquis nettoyé sélectionné. Sa lecture par l’IA est une action distincte, à lancer vous-même.`,"Enter every measured wall length. Leave an unknown bearing blank.":`Saisissez chaque longueur de mur mesurée. Laissez vide toute orientation inconnue.`,"Complete the room programme and choose the entrance and balcony walls.":`Complétez le programme des pièces et choisissez le mur de l’entrée et celui du balcon.`,"Delete current project":`Supprimer le projet en cours`,"Quote valid until {date}.":`Devis valable jusqu’au {date}.`,"Files are kept for {days} days.":`Les fichiers sont conservés {days}\xA0jours.`,"Review the recomputed plan, schedule and rule findings below. Your saved version {version} is unchanged.":`Vérifiez ci-dessous le plan recalculé, le tableau des surfaces et les résultats des contrôles. Votre version enregistrée {version} reste inchangée.`,"Applied fix: {fix}":`Correction appliquée\xA0: {fix}`,"Measurement needed: {question}":`Mesure à fournir\xA0: {question}`,"Inputs: {paths}":`Données\xA0: {paths}`,"Diagonal {from} → {to} (m)":`Diagonale {from} → {to} (m)`,"{count} linked boundary edges · geometry {status}":`{count}\xA0côtés du contour reliés · géométrie {status}`,"A CLEAR START":`UN BON DÉPART`,"CHECKED BY THE ENGINE":`VÉRIFIÉ PAR LE MOTEUR`,"METRES / CONCEPT":`MÈTRES / CONCEPT`,"THE STARTING POINT":`LE POINT DE DÉPART`,WORKSPACE:`ESPACE DE TRAVAIL`,"FIND YOUR FIT":`TROUVEZ LA BONNE VARIANTE`}),Object.assign(m.ar,{"Sign in with a verified account to continue.":`سجّل الدخول بحساب موثّق للمتابعة.`,"One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service.":`يشمل المشروع الواحد المقترحات والتعديلات ونموذج BIM ضمن الحدود المحددة. وتتحقّق الخدمة من الحصص المجانية.`,"Project usage limits are unavailable. Checkout stays disabled until they can be shown.":`حدود استخدام المشروع غير متاحة. يبقى الشراء معطّلاً حتى يمكن عرضها.`,"A checkout return is not proof of payment; downloads use the service's verified entitlement.":`العودة من صفحة الدفع ليست إثباتاً للدفع؛ تعتمد التنزيلات على الاستحقاق الذي تؤكده الخدمة.`,"Choose a PNG, JPEG or WebP up to 8 MB.":`اختر ملف PNG أو JPEG أو WebP بحجم 8 ميغابايت كحد أقصى.`,"Service reports project data erased.":`تفيد الخدمة بأن بيانات المشروع حُذفت.`,"Service reports project content erased.":`تفيد الخدمة بأن محتوى المشاريع حُذف.`,"Content deletion accepted; erasure is still pending.":`قُبل طلب الحذف؛ ما زال المسح قيد التنفيذ.`,"Deletion accepted; data erasure is still pending. The service will continue cleanup.":`قُبل طلب الحذف؛ ما زال مسح البيانات قيد التنفيذ. ستواصل الخدمة التنظيف.`,"Accounting cleanup is still pending.":`ما زال تنظيف بيانات المحاسبة قيد التنفيذ.`,"Accounting cleanup completed.":`اكتمل تنظيف بيانات المحاسبة.`,"Account identity, billing and required anti-abuse metadata are retained.":`تُحفظ هوية الحساب والفوترة وبيانات منع إساءة الاستخدام المطلوبة.`,"Your measurements. Checked geometry. One shared engine.":`قياساتك. شكل هندسي متحقَّق منه. محرّك واحد مشترك.`,"A small project.":`مشروع صغير.`,"A useful next step.":`خطوة تالية مفيدة.`,"Pricing opens with the service":`تُعلن الأسعار عند إطلاق الخدمة`,"Base pricing. Your project quote is shown before purchase.":`السعر الأساسي. يظهر سعر مشروعك قبل الشراء.`,"One project includes proposals, refinements and its model export.":`يشمل المشروع الواحد المقترحات والتعديلات وتصدير النموذج.`,"Local reference preview":`معاينة مرجعية محلية`,"Private project":`مشروع خاص`,"The reader did not return a complete, valid outline. Enter or correct measurements manually.":`لم تُرجع القراءة شكلاً خارجياً كاملاً وصالحاً. أدخل القياسات أو صحّحها يدوياً.`,"Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review.":`تؤخذ الأطوال من الأبعاد المكتوبة فقط. لا تحدد إحداثيات الصورة مقياساً فعلياً. تبقى الزوايا وأنواع الجدران افتراضات للمراجعة.`,"AI readings are estimated and unconfirmed. Compare them with your image and site measurements; enter the reviewed values in the footprint form. No value is applied automatically.":`القيم التي يقرؤها الذكاء الاصطناعي تقديرية وغير مؤكدة. قارنها بصورتك وبقياساتك في الموقع، ثم أدخل القيم بعد مراجعتها في نموذج المسقط. لا تُطبَّق أي قيمة تلقائياً.`,"unit unknown":`الوحدة غير معروفة`,"estimated · unconfirmed":`تقديرية · غير مؤكَّدة`,"Engine-checked concept":`تصميم مبدئي تحقّق منه المحرّك`,Preview:`معاينة`,"Unsaved edit preview":`معاينة تعديل غير محفوظ`,"Layout {id}":`المخطط {id}`,"Separate from the BIM model export. PDF is included when the service has PDF rendering configured.":`منفصل عن تصدير نموذج BIM. ويُضمَّن ملف PDF إذا كانت الخدمة مهيّأة لإنشائه.`,"Area m²":`المساحة م²`,Total:`المجموع`,Status:`الحالة`,Source:`المصدر`,"Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred.":`تُعرض البنود المرجعية على حقيقتها، ولا تُقدَّم أبداً كفحوص ناجحة. ولا يُستنتج منها أي اعتماد قانوني خاص بالبلد.`,"We send event type only, without drawings, dimensions, prompts, URLs or account IDs. Uncheck to withdraw consent and request deletion of this browser's client observations.":`نرسل نوع الحدث فقط، دون رسومات أو أبعاد أو نصوص طلبات أو عناوين URL أو معرّفات الحساب. ألغِ التحديد لسحب موافقتك وطلب حذف البيانات المرصودة من هذا المتصفح.`,"Allow optional visit and paywall analytics":`السماح بإحصاءات اختيارية عن الزيارات وصفحة الدفع`,"Angle (°)":`الزاوية (°)`,"Shared wall · no windows or doors":`جدار مشترك · بلا نوافذ أو أبواب`,"Other wall/slab build-ups remain labelled concept placeholders from the shared engine.":`تبقى مقاطع الجدران والبلاطات الأخرى قيماً مبدئية مؤقتة من المحرّك المشترك، وهي معلَّمة على هذا الأساس.`,"Not specified":`غير محدد`,Lebanon:`لبنان`,Germany:`ألمانيا`,"Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal. These are your measurements, not generated dimensions.":`أدخل الجدران بترتيب الحدود، عكس اتجاه عقارب الساعة. الاتجاهات: 0° للشرق، و90° للشمال. اترك الزوايا غير المعروفة فارغة؛ فقد يطلب المحرّك قياس قطر واحد. هذه قياساتك، وليست أبعاداً مولَّدة.`,"This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions.":`يستخدم هذا المثال افتراضات المحرّك المبدئية لبرنامج الغرف، وتبقى تقديرية إلى أن تستبدلها بأبعادك.`,"Enter my own room dimensions":`إدخال أبعاد غرفي`,"Reference example loaded. Review its site-confirmed dimensions before generating.":`حُمّل المثال المرجعي. راجع أبعاده المؤكدة في الموقع قبل الإنشاء.`,"Review the image permissions and AI disclosure before upload.":`راجع أذونات الصورة وإفصاح الذكاء الاصطناعي قبل الرفع.`,"Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.":`حُفظ الرسم الأولي بشكل خاص. تُنتج القراءة ملاحظات تحتاج إلى تأكيدك، ولا تُنتج أبداً أبعاداً غير متحقَّق منها.`,"Pending work could not be saved by this service. Checkout and generation are stopped; keep this page open.":`تعذّر على الخدمة حفظ العمل المعلّق. توقّف الشراء والإنشاء؛ أبقِ هذه الصفحة مفتوحة.`,"Review the image permissions and AI disclosure, or remove the local image.":`راجع أذونات الصورة وإفصاح الذكاء الاصطناعي، أو أزل الصورة المحلية.`,"Confirm the measured dimensions and bearings before generating.":`أكّد الأبعاد المقاسة والاتجاهات قبل إنشاء المخططات.`,"Preview applied as a new saved version.":`طُبّقت المعاينة كنسخة محفوظة جديدة.`,"A valid project quote was not supplied.":`لم يُقدَّم عرض سعر صالح للمشروع.`,"Scan and save the selected image before checkout so it can be restored after payment.":`افحص الصورة المختارة واحفظها قبل الشراء لتُستعاد بعد الدفع.`,"This quote expired. Refresh the project quote before purchase.":`انتهت صلاحية عرض السعر. حدّثه قبل الشراء.`,"The existing-plan editor is not ready to preserve your latest work. Checkout is stopped; keep this page open.":`محرر المخطط القائم غير جاهز لحفظ آخر عملك. أُوقف الشراء؛ أبقِ هذه الصفحة مفتوحة.`,"The checkout address was not accepted.":`لم يُقبل رابط صفحة الدفع.`,"Signed out. Your saved project stays private and can resume after sign-in.":`تم تسجيل الخروج. يبقى مشروعك المحفوظ خاصاً ويمكن متابعته بعد تسجيل الدخول.`,"2D concept drawings prepared. This does not spend the BIM model export.":`جُهّزت الرسومات المبدئية ثنائية الأبعاد، ولا يُحتسب ذلك من تصدير نموذج BIM.`,"Local sketch preview only. Review permissions, then scan and store it privately before asking AI to read observations. No measured footprint is required for that step.":`معاينة محلية للرسم الأولي فقط. راجع الأذونات، ثم افحصه واحفظه بشكل خاص قبل أن يقرأ الذكاء الاصطناعي ملاحظاته. لا يلزم مسقط مقاس لهذه الخطوة.`,"Local preview only. Review permissions and AI disclosure before uploading the image.":`معاينة محلية فقط. راجع الأذونات وإفصاح الذكاء الاصطناعي قبل رفع الصورة.`,"Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements.":`تبقى القيم المتعرَّف عليها تقديرية. عاين المخطط وراجع التسميات والافتراضات، ثم اعتمد القياسات المراجعة صراحةً.`,"Check your email for the verification link. No session is created until ownership is verified.":`ستجد رابط التحقق في بريدك الإلكتروني. لن تُنشأ أي جلسة قبل التحقق من ملكية البريد.`,"Email verified. Sign in to continue.":`تم تأكيد البريد. سجّل الدخول للمتابعة.`,"The verified workspace could not be loaded.":`تعذّر تحميل مساحة العمل الموثّقة.`,"Signed in. This session stays in memory only.":`تم تسجيل الدخول. تبقى هذه الجلسة في الذاكرة فقط.`,"Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption.":`الشكل الخارجي المستخرج معاينة محلية تقديرية، ولم تتغير أي نسخة من المشروع أو أي مقترح. راجع كل طول واتجاه ونوع جدار قبل اعتماده.`,"Saved sanitized sketch selected. Reading it with AI is a separate explicit action.":`اختير الرسم المحفوظ المنقّى. قراءته بالذكاء الاصطناعي خطوة منفصلة وصريحة.`,"Enter every measured wall length. Leave an unknown bearing blank.":`أدخل طول كل جدار مقاس. اترك الاتجاه غير المعروف فارغاً.`,"Complete the room programme and choose the entrance and balcony walls.":`أكمل برنامج الغرف واختر جداري المدخل والشرفة.`,"Delete current project":`حذف المشروع الحالي`,"Quote valid until {date}.":`عرض السعر صالح حتى {date}.`,"Files are kept for {days} days.":`مدة حفظ الملفات: {days} يوم.`,"Review the recomputed plan, schedule and rule findings below. Your saved version {version} is unchanged.":`راجع أدناه المخطط المعاد حسابه وجدول الغرف ونتائج الفحص. تبقى نسختك المحفوظة {version} دون تغيير.`,"Applied fix: {fix}":`التصحيح المطبّق: {fix}`,"Measurement needed: {question}":`القياس المطلوب: {question}`,"Inputs: {paths}":`المدخلات: {paths}`,"Diagonal {from} → {to} (m)":`القطر {from} → {to} (م)`,"{count} linked boundary edges · geometry {status}":`حواف الحدود المترابطة: {count} · الشكل الهندسي: {status}`,"After the initial proposal request: {regenerations} regenerations · {chat} chat refinements · {exports} BIM exports per paid project.":`لكل مشروع مدفوع، بعد طلب المقترحات الأول — إعادة الإنشاء: {regenerations} · التعديل بالمحادثة: {chat} · تصدير BIM: {exports}.`,"A CLEAR START":`بداية واضحة`,"CHECKED BY THE ENGINE":`تحقّق منه المحرّك`,"METRES / CONCEPT":`أمتار / مبدئي`,"THE STARTING POINT":`نقطة البداية`,WORKSPACE:`مساحة العمل`,"FIND YOUR FIT":`اختر ما يناسبك`}),Object.assign(m.de,{Download:`Herunterladen`,"To print and share":`Zum Drucken und Teilen`,"Editable, for your architect":`Bearbeitbar, für Ihr Architekturbüro`,"For the web and presentations":`Für Web und Präsentationen`,"3D model (IFC)":`3D-Modell (IFC)`,"For BIM and CAD software":`Für BIM- und CAD-Programme`,"Prepare drawings":`Pläne vorbereiten`,"Prepare 3D model":`3D-Modell vorbereiten`,"Not available on this service.":`Bei diesem Dienst nicht verfügbar.`,"Prepare drawings first.":`Bereiten Sie zuerst die Pläne vor.`,"Apply or discard the preview first.":`Übernehmen oder verwerfen Sie zuerst die Vorschau.`,"This layout needs review before a 3D model can be made.":`Dieser Grundriss muss geprüft werden, bevor ein 3D-Modell entstehen kann.`,"Files are kept with your project for {days} days.":`Dateien bleiben {days}\xA0Tage bei Ihrem Projekt gespeichert.`}),Object.assign(m.fr,{Download:`Télécharger`,"To print and share":`Pour imprimer et partager`,"Editable, for your architect":`Modifiable, pour votre architecte`,"For the web and presentations":`Pour le web et les présentations`,"3D model (IFC)":`Modèle 3D (IFC)`,"For BIM and CAD software":`Pour les logiciels BIM et CAO`,"Prepare drawings":`Préparer les plans`,"Prepare 3D model":`Préparer le modèle 3D`,"Not available on this service.":`Indisponible sur ce service.`,"Prepare drawings first.":`Préparez d’abord les plans.`,"Apply or discard the preview first.":`Appliquez ou ignorez d’abord l’aperçu.`,"This layout needs review before a 3D model can be made.":`Cette variante doit être vérifiée avant de créer un modèle 3D.`,"Files are kept with your project for {days} days.":`Les fichiers sont conservés avec votre projet pendant {days}\xA0jours.`}),Object.assign(m.ar,{Download:`تنزيل`,"To print and share":`للطباعة والمشاركة`,"Editable, for your architect":`قابل للتعديل، لمهندسك المعماري`,"For the web and presentations":`للويب والعروض التقديمية`,"3D model (IFC)":`نموذج ثلاثي الأبعاد (IFC)`,"For BIM and CAD software":`لبرامج BIM وCAD`,"Prepare drawings":`تجهيز الرسومات`,"Prepare 3D model":`تجهيز النموذج ثلاثي الأبعاد`,"Not available on this service.":`غير متاح في هذه الخدمة.`,"Prepare drawings first.":`جهّز الرسومات أولاً.`,"Apply or discard the preview first.":`طبّق المعاينة أو تجاهلها أولاً.`,"This layout needs review before a 3D model can be made.":`يحتاج هذا المخطط إلى مراجعة قبل إنشاء نموذج ثلاثي الأبعاد.`,"Files are kept with your project for {days} days.":`تُحفظ الملفات مع مشروعك. مدة الحفظ: {days} يوم.`}),Object.assign(m.de,{"Compare side by side":`Nebeneinander vergleichen`}),Object.assign(m.fr,{"Compare side by side":`Comparer côte à côte`}),Object.assign(m.ar,{"Compare side by side":`مقارنة جنباً إلى جنب`}),Object.assign(m.de,{"Layout {id} chosen":`Grundriss {id} gewählt`,"Measurements saved":`Maße gespeichert`,Current:`Aktuell`,"Restore v{version}":`v{version} wiederherstellen`,"Saved · v{version}":`Gespeichert · v{version}`}),Object.assign(m.fr,{"Layout {id} chosen":`Variante {id} choisie`,"Measurements saved":`Mesures enregistrées`,Current:`Actuelle`,"Restore v{version}":`Restaurer v{version}`,"Saved · v{version}":`Enregistré · v{version}`}),Object.assign(m.ar,{"Layout {id} chosen":`تم اختيار المخطط {id}`,"Measurements saved":`حُفظت القياسات`,Current:`الحالية`,"Restore v{version}":`استعادة النسخة {version}`,"Saved · v{version}":`محفوظة · النسخة {version}`}),Object.assign(m.de,{"Adjust the room size":`Raumgröße anpassen`,"Change a measurement and the engine recalculates every layout. This saves a new version.":`Ändern Sie ein Maß, und alle Grundrisse werden neu berechnet. Dabei entsteht eine neue Version.`,"Update layouts":`Grundrisse aktualisieren`}),Object.assign(m.fr,{"Adjust the room size":`Ajuster les dimensions de la pièce`,"Change a measurement and the engine recalculates every layout. This saves a new version.":`Modifiez une mesure\xA0: le moteur recalcule toutes les variantes et enregistre une nouvelle version.`,"Update layouts":`Mettre à jour les variantes`}),Object.assign(m.ar,{"Adjust the room size":`تعديل مقاسات الغرفة`,"Change a measurement and the engine recalculates every layout. This saves a new version.":`غيّر أحد القياسات ليعيد المحرّك حساب كل المخططات. يُحفظ التغيير كنسخة جديدة.`,"Update layouts":`تحديث المخططات`});function h(e,t){return e===`en`?t:m[e][t]??t}function g(e,t,n){return h(e,t).replace(/\{(\w+)\}/g,(e,t)=>n[t]===void 0?e:String(n[t]))}function _(e){return e===`ar`?`ar-u-nu-latn`:e}var ee={"Files are kept for {days} days.":{en:{one:`Files are kept for {days} day.`},de:{one:`Dateien werden {days}\xA0Tag aufbewahrt.`},fr:{one:`Les fichiers sont conservés {days}\xA0jour.`},ar:{one:`مدة حفظ الملفات: يوم واحد.`,two:`مدة حفظ الملفات: يومان.`,few:`مدة حفظ الملفات: {days} أيام.`,many:`مدة حفظ الملفات: {days} يوماً.`}},"Files are kept with your project for {days} days.":{en:{one:`Files are kept with your project for {days} day.`},de:{one:`Dateien bleiben {days}\xA0Tag bei Ihrem Projekt gespeichert.`},fr:{one:`Les fichiers sont conservés avec votre projet pendant {days}\xA0jour.`},ar:{one:`تُحفظ الملفات مع مشروعك. مدة الحفظ: يوم واحد.`,two:`تُحفظ الملفات مع مشروعك. مدة الحفظ: يومان.`,few:`تُحفظ الملفات مع مشروعك. مدة الحفظ: {days} أيام.`,many:`تُحفظ الملفات مع مشروعك. مدة الحفظ: {days} يوماً.`}},"{count} linked boundary edges · geometry {status}":{en:{one:`{count} linked boundary edge · geometry {status}`},de:{one:`{count} verbundene Umrisskante · Geometrie {status}`},fr:{one:`{count}\xA0côté du contour relié · géométrie {status}`}},"{n} regenerations":{en:{one:`{n} regeneration`},de:{one:`{n} Neuberechnung`},fr:{one:`{n}\xA0nouveau calcul`}},"{n} chat refinements":{en:{one:`{n} chat refinement`},de:{one:`{n} Anpassung per Chat`},fr:{one:`{n}\xA0ajustement par chat`}},"{n} BIM exports":{en:{one:`{n} BIM export`},de:{one:`{n} BIM-Export`},fr:{one:`{n}\xA0export BIM`}}};Object.assign(m.de,{"{n} regenerations":`{n} Neuberechnungen`,"{n} chat refinements":`{n} Anpassungen per Chat`,"{n} BIM exports":`{n} BIM-Exporte`,"After the initial proposal request: {regenerations} · {chat} · {exports} per paid project.":`Nach der ersten Vorschlagsanfrage: {regenerations} · {chat} · {exports} je bezahltem Projekt.`}),Object.assign(m.fr,{"{n} regenerations":`{n}\xA0nouveaux calculs`,"{n} chat refinements":`{n}\xA0ajustements par chat`,"{n} BIM exports":`{n}\xA0exports BIM`,"After the initial proposal request: {regenerations} · {chat} · {exports} per paid project.":`Après la première demande de variantes\xA0: {regenerations} · {chat} · {exports} par projet payé.`});function v(e,t){return new Intl.PluralRules(_(e)).select(t)}function y(e,t,n,r={}){return(ee[t]?.[e]?.[v(e,n)]??h(e,t)).replace(/\{(\w+)\}/g,(e,t)=>r[t]===void 0?e:String(r[t]))}function b(e,t){return e===`ar`?g(e,`After the initial proposal request: {regenerations} regenerations · {chat} chat refinements · {exports} BIM exports per paid project.`,t):g(e,`After the initial proposal request: {regenerations} · {chat} · {exports} per paid project.`,{regenerations:y(e,`{n} regenerations`,t.regenerations,{n:t.regenerations}),chat:y(e,`{n} chat refinements`,t.chat,{n:t.chat}),exports:y(e,`{n} BIM exports`,t.exports,{n:t.exports})})}function x(e,t,n){return typeof t!=`number`||!Number.isFinite(t)?``:new Intl.NumberFormat(_(e),{minimumFractionDigits:n,maximumFractionDigits:n,numberingSystem:`latn`}).format(t)}function S(e){return e===`de`||e===`fr`}function C(e){let t=e.trim();return/^[+-]?(\d+([.,]\d*)?|[.,]\d+)$/.test(t)?t.replace(`,`,`.`):``}function te(e){let t=C(e);return t===``?NaN:Number(t)}function ne(e,t){return S(e)?String(t).replace(`.`,`,`):String(t)}var re={m:`م`,cm:`سم`,mm:`مم`,"m²":`م²`};function ie(e,t){return e===`ar`?re[t]??t:t}function w(e,t,n){return t+(S(e)?`\xA0`:` `)+ie(e,n)}Object.assign(m.de,{"Component licensing":`Komponentenlizenz`,"Sketch brief":`Beschreibung zur Skizze`,"Saved sketch brief":`Beschreibung zur gespeicherten Skizze`,"Room wishes, entrance and view, fixed walls, country…":`Raumwünsche, Eingang und Aussicht, feste Wände, Land…`,"Illustrative hand sketch of the reference footprint":`Beispielhafte Handskizze der Referenz-Grundfläche`,"Engine-generated reference layout A with checked dimensions":`Von der Engine erstellter Referenzgrundriss A mit geprüften Maßen`,"Local source image preview":`Lokale Vorschau des Ausgangsbilds`,"Your selected sketch, local preview":`Ihre ausgewählte Skizze, lokale Vorschau`,"Unconfirmed recognized outline preview":`Unbestätigte Vorschau des erkannten Umrisses`,"No provenance supplied for this displayed value.":`Für diesen angezeigten Wert ist keine Herkunft angegeben.`,"{id} length":`Länge {id}`,"{id} bearing":`Winkel {id}`,"{id} wall type":`Wandart {id}`,"Unconfirmed image-coordinate tracing":`Unbestätigte Nachzeichnung in Bildkoordinaten`,"PDF scale / paper":`PDF-Maßstab / Papierformat`}),Object.assign(m.fr,{"Component licensing":`Licence du composant`,"Sketch brief":`Description du croquis`,"Saved sketch brief":`Description du croquis enregistré`,"Room wishes, entrance and view, fixed walls, country…":`Pièces souhaitées, entrée et vue, murs fixes, pays…`,"Illustrative hand sketch of the reference footprint":`Croquis à main levée illustrant la surface au sol de référence`,"Engine-generated reference layout A with checked dimensions":`Variante de référence A générée par le moteur, aux dimensions vérifiées`,"Local source image preview":`Aperçu local de l’image source`,"Your selected sketch, local preview":`Votre croquis sélectionné, aperçu local`,"Unconfirmed recognized outline preview":`Aperçu non confirmé du contour reconnu`,"No provenance supplied for this displayed value.":`Aucune origine indiquée pour cette valeur affichée.`,"{id} length":`Longueur {id}`,"{id} bearing":`Angle {id}`,"{id} wall type":`Type de mur {id}`,"Unconfirmed image-coordinate tracing":`Tracé non confirmé en coordonnées d’image`,"PDF scale / paper":`Échelle PDF / format papier`}),Object.assign(m.ar,{"Component licensing":`ترخيص المكوّن`,"Sketch brief":`وصف الرسم الأولي`,"Saved sketch brief":`وصف الرسم الأولي المحفوظ`,"Room wishes, entrance and view, fixed walls, country…":`الغرف المطلوبة، المدخل والإطلالة، الجدران الثابتة، البلد…`,"Illustrative hand sketch of the reference footprint":`رسم يدوي توضيحي للمسقط المرجعي`,"Engine-generated reference layout A with checked dimensions":`المخطط المرجعي A من إنشاء المحرّك، بأبعاد جرى التحقق منها`,"Local source image preview":`معاينة محلية للصورة المصدر`,"Your selected sketch, local preview":`رسمك الأولي المختار، معاينة محلية`,"Unconfirmed recognized outline preview":`معاينة غير مؤكدة للشكل الخارجي المستخرج`,"No provenance supplied for this displayed value.":`لم يُذكر مصدر لهذه القيمة المعروضة.`,"{id} length":`طول {id}`,"{id} bearing":`زاوية {id}`,"{id} wall type":`نوع الجدار {id}`,"Unconfirmed image-coordinate tracing":`تتبّع غير مؤكد بإحداثيات الصورة`,"PDF scale / paper":`مقياس PDF / حجم الورق`}),ee[`{n} free proposal generations`]={en:{one:`{n} free proposal generation`},de:{one:`{n} kostenlose Vorschlagserstellung`},fr:{one:`{n}\xA0génération de variantes gratuite`}},Object.assign(m.de,{"{n} free proposal generations":`{n} kostenlose Vorschlagserstellungen`,"The local preview does not accept payments.":`Die lokale Vorschau nimmt keine Zahlungen an.`,"Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits.":`Der kostenlose Zugang ist in KEHBIMVISION und BauLynq BIM enthalten – im Rahmen der KI-Nutzungslimits der jeweiligen App.`,"No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified.":`Es wurde kein Herkunftsbericht geliefert. Die Werte sind unbestätigt; behandeln Sie sie nicht als gemessen oder geprüft.`,"Deterministic closure preview from estimated inputs.":`Rechnerisch geschlossene Vorschau aus geschätzten Werten.`,"Image-space outline estimate; no physical scale.":`Geschätzter Umriss in Bildkoordinaten; kein realer Maßstab.`,"Original recognized outline; form edits are checked when you request reconciliation.":`Ursprünglich erkannter Umriss; Änderungen im Formular werden beim Abgleich geprüft.`,"Deletion accepted; data erasure is still pending. The service will continue cleanup.":`Löschung angenommen; die Daten sind noch nicht vollständig gelöscht. Der Dienst setzt die Bereinigung fort.`,"YOUR NEXT SPACE":`IHR NÄCHSTES VORHABEN`,"VERSION {version} / {id}":`VERSION {version} / {id}`}),Object.assign(m.fr,{"{n} free proposal generations":`{n}\xA0générations de variantes gratuites`,"The local preview does not accept payments.":`L’aperçu local n’accepte aucun paiement.`,"Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits.":`L’accès gratuit est inclus dans KEHBIMVISION et BauLynq BIM, dans les limites d’usage de l’IA propres à chaque application.`,"No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified.":`Aucun rapport d’origine n’a été fourni. Les valeurs ne sont pas confirmées ; ne les considérez pas comme mesurées ou vérifiées.`,"Deterministic closure preview from estimated inputs.":`Aperçu du contour fermé par le calcul, à partir de valeurs estimées.`,"Image-space outline estimate; no physical scale.":`Contour estimé en coordonnées d’image ; aucune échelle réelle.`,"Original recognized outline; form edits are checked when you request reconciliation.":`Contour reconnu d’origine ; les modifications du formulaire sont vérifiées lors du rapprochement.`,"Deletion accepted; data erasure is still pending. The service will continue cleanup.":`Suppression acceptée ; l’effacement des données est encore en cours. Le service poursuit le nettoyage.`,"YOUR NEXT SPACE":`VOTRE PROCHAIN PROJET`,"VERSION {version} / {id}":`VERSION {version} / {id}`}),Object.assign(m.ar,{"Free allowance: {proposals} · {exports}":`إنشاء المقترحات مجاناً: {proposals} · تصدير BIM: {exports}`,"The local preview does not accept payments.":`لا تقبل المعاينة المحلية أي مدفوعات.`,"Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits.":`الوصول المجاني مشمول في KEHBIMVISION وBauLynq BIM، ضمن حدود استخدام الذكاء الاصطناعي الخاصة بكل تطبيق.`,"No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified.":`لم يُقدَّم تقرير عن مصدر القيم. القيم غير مؤكدة؛ فلا تعاملها على أنها مقاسة أو متحقَّق منها.`,"Deterministic closure preview from estimated inputs.":`معاينة الشكل المغلق حسابياً، مبنية على قيم تقديرية.`,"Image-space outline estimate; no physical scale.":`شكل خارجي تقديري بإحداثيات الصورة؛ دون مقياس فعلي.`,"Original recognized outline; form edits are checked when you request reconciliation.":`الشكل الخارجي المستخرج الأصلي؛ تُفحص تعديلات النموذج عند طلب المطابقة.`,"Deletion accepted; data erasure is still pending. The service will continue cleanup.":`قُبل الحذف؛ ولم يكتمل مسح البيانات بعد. ستواصل الخدمة عملية التنظيف.`,"YOUR NEXT SPACE":`مساحتك القادمة`,"VERSION {version} / {id}":`النسخة {version} / {id}`});function ae(e,t){return e===`ar`?g(e,`Free allowance: {proposals} · {exports}`,t):y(e,`{n} free proposal generations`,t.proposals,{n:t.proposals})+` · `+y(e,`{n} BIM exports`,t.exports,{n:t.exports})}var T={de:{Unique:`eindeutig`,Ambiguous:`mehrdeutig`,Inconsistent:`widersprüchlich`,Invalid:`ungültig`,Unvalidated:`nicht geprüft`,pass:`erfüllt`,warning:`Warnung`,conflict:`Konflikt`,unresolved:`ungelöst`,"auto-fixed":`automatisch korrigiert`,adjusted:`angepasst`,"reference-only":`nur Referenz`,"not-applicable":`nicht anwendbar`,info:`Info`,"not-requested":`nicht angefordert`,conflicting:`widersprüchlich`,unconfirmed:`unbestätigt`,missing:`fehlt`},fr:{Unique:`unique`,Ambiguous:`ambiguë`,Inconsistent:`incohérente`,Invalid:`non valide`,Unvalidated:`non vérifiée`,pass:`conforme`,warning:`avertissement`,conflict:`conflit`,unresolved:`non résolu`,"auto-fixed":`corrigé automatiquement`,adjusted:`ajusté`,"reference-only":`référence uniquement`,"not-applicable":`sans objet`,info:`info`,"not-requested":`non demandé`,conflicting:`contradictoire`,unconfirmed:`non confirmé`,missing:`manquant`},ar:{Unique:`محدَّد بشكل فريد`,Ambiguous:`ملتبس`,Inconsistent:`غير متّسق`,Invalid:`غير صالح`,Unvalidated:`لم يُتحقَّق منه`,pass:`مستوفى`,warning:`تحذير`,conflict:`تعارض`,unresolved:`غير محسوم`,"auto-fixed":`صُحِّح تلقائياً`,adjusted:`عُدِّل`,"reference-only":`للمرجع فقط`,"not-applicable":`لا ينطبق`,info:`معلومة`,"not-requested":`غير مطلوب`,conflicting:`متعارض`,unconfirmed:`غير مؤكَّد`,missing:`مفقود`}};function oe(e,t){let n=t??``;return e===`en`?n:T[e][n]??n}function E(e,t){let n=(Date.parse(e)-Date.now())/1e3;if(!Number.isFinite(n))return``;let r=new Intl.RelativeTimeFormat(_(t),{numeric:`auto`});for(let[e,t]of[[`day`,86400],[`hour`,3600],[`minute`,60]])if(Math.abs(n)>=t)return r.format(Math.round(n/t),e);return r.format(0,`minute`)}function se({language:e,version:t,busy:n,preview:r,open:i,versions:a,comparison:o,left:s,right:c,onToggle:l,onLeftChange:d,onRightChange:f,onCompare:p,onRestore:m,timeline:ee=!1,onRestoreVersion:v}){let y=a?.some(e=>e.version===s),b=a?.some(e=>e.version===c);return(0,u.jsxs)(`section`,{className:`paper version-history`,children:[(0,u.jsx)(`button`,{className:`outline`,disabled:n,"aria-expanded":i,"aria-controls":`bim-version-history`,onClick:l,children:h(e,i?`Hide version history`:`Version history & compare`)}),i&&a&&(0,u.jsxs)(`div`,{id:`bim-version-history`,children:[(0,u.jsx)(`h3`,{children:h(e,`Saved versions`)}),(0,u.jsx)(`p`,{children:h(e,`History and comparison are read-only. Restoring creates a new version after the service checks the current version.`)}),ee?(0,u.jsx)(`ol`,{className:`version-timeline`,children:[...a].sort((e,t)=>t.version-e.version).map(i=>(0,u.jsxs)(`li`,{"aria-current":i.version===t?`true`:void 0,children:[(0,u.jsxs)(`span`,{children:[(0,u.jsxs)(`strong`,{children:[`v`,i.version]}),` · `,i.selectedProposalId?g(e,`Layout {id} chosen`,{id:i.selectedProposalId}):h(e,`Measurements saved`),` · `,(0,u.jsx)(`time`,{dateTime:i.createdAtUtc,children:E(i.createdAtUtc,e)})]}),i.version===t?(0,u.jsx)(`small`,{children:h(e,`Current`)}):(0,u.jsx)(`button`,{className:`outline`,disabled:n||r,onClick:()=>v?.(i.version),children:g(e,`Restore v{version}`,{version:i.version})})]},i.version))}):(0,u.jsx)(`ul`,{children:a.map(t=>(0,u.jsxs)(`li`,{children:[(0,u.jsxs)(`strong`,{children:[`v`,t.version]}),` · `,new Date(t.createdAtUtc).toLocaleString(_(e)),t.selectedProposalId?` · `+t.selectedProposalId:``,t.note?` · `+t.note:``]},t.version))}),(0,u.jsxs)(`div`,{className:`actions`,children:[(0,u.jsxs)(`label`,{className:`field`,children:[h(e,`Earlier version`),(0,u.jsx)(`select`,{disabled:n,value:s,onChange:e=>d(Number(e.target.value)),children:a.map(e=>(0,u.jsxs)(`option`,{value:e.version,children:[`v`,e.version]},e.version))})]}),(0,u.jsxs)(`label`,{className:`field`,children:[h(e,`Later version`),(0,u.jsx)(`select`,{disabled:n,value:c,onChange:e=>f(Number(e.target.value)),children:a.map(e=>(0,u.jsxs)(`option`,{value:e.version,children:[`v`,e.version]},e.version))})]}),(0,u.jsx)(`button`,{className:`outline`,disabled:n||s===c||!y||!b,onClick:p,children:h(e,`Compare saved versions`)}),(0,u.jsx)(`button`,{className:`outline`,disabled:n||r||s===t||!y,onClick:m,children:h(e,`Restore earlier version`)})]}),o&&(0,u.jsxs)(`article`,{className:`comparison-summary`,role:`status`,children:[(0,u.jsxs)(`h4`,{children:[`v`,o.leftVersion,` → v`,o.rightVersion]}),o.areaDeltaM2!=null&&(0,u.jsxs)(`p`,{children:[h(e,`Footprint area change`),`: `,w(e,o.areaDeltaM2.toLocaleString(_(e),{maximumFractionDigits:4}),`m²`),` `,(0,u.jsxs)(`small`,{className:`value-tag`,children:[h(e,`calculated`),` · `,h(e,`unconfirmed`)]})]}),(0,u.jsx)(`p`,{children:h(e,`Engine comparison of saved inputs. Source measurements retain their uncertainty.`)}),(0,u.jsxs)(`p`,{children:[h(e,`Selected layout`),`: `,o.leftProposalId??`—`,` → `,o.rightProposalId??`—`]}),(0,u.jsx)(`h4`,{children:h(e,`Changed inputs`)}),o.changedInputs.length?(0,u.jsx)(`ul`,{children:o.changedInputs.map((e,t)=>(0,u.jsx)(`li`,{children:e},t))}):(0,u.jsx)(`p`,{children:h(e,`No input changes reported.`)})]})]})]})}var ce=e=>e==null||typeof e==`number`&&!Number.isFinite(e)?``:String(e),le=(e,t)=>{let n=C(e),r=C(t);return n===``||r===``?n===r:Number(n)===Number(r)};function ue({language:e,value:t,onText:n,...r}){let i=ce(t),[a,o]=(0,c.useState)(()=>i.replace(`.`,`,`));if(!S(e))return(0,u.jsx)(`input`,{...r,type:`number`,value:i,onChange:e=>n(e.target.value)});let s=le(a,i)?a:i.replace(`.`,`,`);return(0,u.jsx)(`input`,{...r,type:`text`,inputMode:r.inputMode??(Number(r.min)>=0?`decimal`:`text`),autoComplete:`off`,value:s,onChange:e=>{o(e.target.value),n(C(e.target.value))}})}var de=()=>({schemaVersion:1,units:`m`,vertices:[],boundaryVertexIds:[],walls:[],rooms:[],openings:[]}),D=e=>({value:e,origin:`user-given`,source:`Explicitly entered in existing-plan review.`}),O=()=>({value:NaN,origin:`estimated`,source:`Unspecified; enter a known value before review.`}),fe=e=>e.values.values.filter(t=>(t.origin===`measured`||t.origin===`user-given`)&&(!e.requiredReviewPaths||e.requiredReviewPaths.includes(t.path))).map(e=>e.path),k=e=>[...e.vertices.flatMap(e=>[e.x,e.y]),...e.walls.map(e=>e.thickness),...e.openings.flatMap(e=>[e.offset,e.width])].every(e=>Number.isFinite(e.value));function pe(e){let t=new Map,n=(e,n)=>{let r=e+`:`+n,i=t.get(r);return i||(i=crypto.randomUUID().replaceAll(`-`,``),t.set(r,i)),i},r=e=>e?{value:e.value,origin:`estimated`,source:e.source}:O();return{schemaVersion:1,units:e.units,vertices:e.vertices.map(e=>({id:n(`v`,e.id),x:r(e.x),y:r(e.y)})),boundaryVertexIds:e.boundaryVertexIds.map(e=>n(`v`,e)),walls:e.walls.map(e=>({...e,id:n(`w`,e.id),startVertexId:n(`v`,e.startVertexId),endVertexId:n(`v`,e.endVertexId),thickness:r(e.thickness)})),rooms:e.rooms.map(e=>({...e,id:n(`r`,e.id),vertexIds:e.vertexIds.map(e=>n(`v`,e))})),openings:e.openings.map(e=>({...e,id:n(`o`,e.id),hostWallId:n(`w`,e.hostWallId),offset:r(e.offset),width:r(e.width),height:null,sill:null}))}}var me={en:`Preserve an existing plan,Enter known coordinates and review boundaries before export. Optional image observations remain unconfirmed and cannot establish physical scale.,Load saved plan,Corners,Add corner,Use corners as outer boundary,Walls,Add wall,Start,End,Thickness,Rooms,Add room,Name,Corner numbers in boundary order,Openings,Add opening,Host wall,Position,Width,Height,Sill,Review geometry,Save reviewed plan,I checked these user-given values against my source. Estimates remain unconfirmed.,Export reviewed plan,Saved revision,Restore revision,Restore,Remove,Download,Unsaved changes,Type`.split(`,`),de:`Bestehenden Plan übernehmen,Bekannte Koordinaten eingeben und Umrisse vor dem Export prüfen. Optionale Bildbeobachtungen bleiben unbestätigt und legen keinen realen Maßstab fest.,Plan laden,Ecken,Ecke hinzufügen,Ecken als Außenumriss verwenden,Wände,Wand hinzufügen,Anfang,Ende,Dicke,Räume,Raum hinzufügen,Name,Eckennummern in Umrissreihenfolge,Öffnungen,Öffnung hinzufügen,Wand,Position,Breite,Höhe,Brüstung,Geometrie prüfen,Geprüften Plan speichern,Ich habe die Nutzerangaben mit meiner Quelle verglichen. Schätzwerte bleiben unbestätigt.,Geprüften Plan exportieren,Gespeicherte Version,Version wiederherstellen,Wiederherstellen,Entfernen,Herunterladen,Ungespeicherte Änderungen,Art`.split(`,`),fr:`Reprendre un plan existant,Saisissez les coordonnées connues et vérifiez les contours avant l’export. Les observations facultatives tirées de l’image restent non confirmées et ne permettent pas d’établir l’échelle réelle.,Charger le plan,Coins,Ajouter un coin,Utiliser les coins comme contour extérieur,Murs,Ajouter un mur,Début,Fin,Épaisseur,Pièces,Ajouter une pièce,Nom,Numéros des coins dans l’ordre du contour,Ouvertures,Ajouter une ouverture,Mur,Position,Largeur,Hauteur,Allège,Vérifier la géométrie,Enregistrer le plan vérifié,J’ai comparé ces valeurs saisies à ma source. Les estimations restent non confirmées.,Exporter le plan vérifié,Version enregistrée,Restaurer la version,Restaurer,Retirer,Télécharger,Modifications non enregistrées,Type`.split(`,`),ar:`الانطلاق من مخطط قائم,أدخل الإحداثيات المعروفة وراجع الحدود قبل التصدير. تبقى ملاحظات الصورة الاختيارية غير مؤكدة، ولا يمكنها تحديد مقياس فعلي.,فتح المخطط المحفوظ,الأركان,إضافة ركن,استخدام الأركان كحدود خارجية,الجدران,إضافة جدار,البداية,النهاية,السماكة,الغرف,إضافة غرفة,الاسم,أرقام الأركان بترتيب الحدود,الفتحات,إضافة فتحة,الجدار,الموضع,العرض,الارتفاع,العتبة,فحص الشكل الهندسي,حفظ المخطط بعد المراجعة,قارنتُ القيم التي أدخلها المستخدم بمصدري. وتبقى التقديرات غير مؤكدة.,تصدير المخطط بعد المراجعة,النسخة المحفوظة,استعادة النسخة,استعادة,إزالة,تنزيل,تغييرات غير محفوظة,النوع`.split(`,`)},he={en:`Click the room’s corners in order`,de:`Ecken des Raums der Reihe nach anklicken`,fr:`Cliquez sur les coins de la pièce dans l’ordre`,ar:`انقر أركان الغرفة بالترتيب`},A={en:{door:`Door`,window:`Window`,unknown:`Not known`,"hinged-left":`Hinged on the left`,"hinged-right":`Hinged on the right`,sliding:`Sliding`,fixed:`Fixed`},de:{door:`Tür`,window:`Fenster`,unknown:`Unbekannt`,"hinged-left":`Links angeschlagen`,"hinged-right":`Rechts angeschlagen`,sliding:`Schiebeflügel`,fixed:`Feststehend`},fr:{door:`Porte`,window:`Fenêtre`,unknown:`Inconnu`,"hinged-left":`Ouverture à gauche`,"hinged-right":`Ouverture à droite`,sliding:`Coulissant`,fixed:`Fixe`},ar:{door:`باب`,window:`نافذة`,unknown:`غير معروف`,"hinged-left":`مفصّلات على اليسار`,"hinged-right":`مفصّلات على اليمين`,sliding:`منزلق`,fixed:`ثابت`}},ge=()=>crypto.randomUUID().replaceAll(`-`,``);function _e({projectId:e,projectVersion:t,language:n,api:r,onState:i,onDownload:a,disabled:o=!1,sourceObjectId:s,imageUrl:d,pendingDraft:f,persistPending:m,onPendingSaved:g,registerPendingSaver:_,loadSavedOnMount:ee=!1,aiReading:v=!0}){let[y,b]=(0,c.useState)(()=>f?.graph??de()),[x,S]=(0,c.useState)(f?.baseDigitizationRevision??0),[C,re]=(0,c.useState)(null),[w,ae]=(0,c.useState)(!!f?.graph),[T,oe]=(0,c.useState)(!1),[E,se]=(0,c.useState)(``),[ce,le]=(0,c.useState)(!1),[_e,ve]=(0,c.useState)(null),[ye,be]=(0,c.useState)(1),[xe,Se]=(0,c.useState)([`svg`,`dxf`]),[Ce,we]=(0,c.useState)(!1),[Te,Ee]=(0,c.useState)(50),[j,De]=(0,c.useState)(f?.sourceObjectId??s),[Oe,ke]=(0,c.useState)(!1),[M,Ae]=(0,c.useState)(null),[N,je]=(0,c.useState)(null),[P,Me]=(0,c.useState)(``),[Ne,Pe]=(0,c.useState)(``),[F,Fe]=(0,c.useState)(``),[Ie,Le]=(0,c.useState)(()=>f?.graph?JSON.stringify(f.graph):null),I=(0,c.useRef)(0),L=(0,c.useRef)(!0),Re=(0,c.useRef)(!1),ze=(0,c.useRef)(r),Be=(0,c.useRef)(i);ze.current=r,Be.current=i;let R=o,z=me[n],Ve=`/projects/${e}/digitization`,B=(0,c.useRef)(t),He=(0,c.useRef)({g:y,revision:x,source:j,dirty:w,persistPending:m,onPendingSaved:g});He.current={g:y,revision:x,source:j,dirty:w,persistPending:m,onPendingSaved:g};async function Ue(){let t=He.current;if(!t.persistPending||!t.dirty&&t.revision>0)return null;if(!k(t.g))throw Error(`Enter known numeric values before preserving this draft or checkout. Missing values are never replaced with zero.`);let n=I.current,r=await t.persistPending({workflow:`existing-plan`,graph:t.g,sourceObjectId:t.source,baseDigitizationRevision:t.revision},B.current,e);if(!L.current||n!==I.current)throw new DOMException(`The pending workspace changed.`,`AbortError`);return B.current=r.version,Le(JSON.stringify(t.g)),t.onPendingSaved?.(r),r}(0,c.useEffect)(()=>(_?.(Ue),()=>_?.(null)),[_]),(0,c.useEffect)(()=>(L.current=!0,()=>{L.current=!1,I.current++,Be.current({busy:!1,hasUnsavedChanges:!1})}),[]),(0,c.useEffect)(()=>{Be.current({busy:T,hasUnsavedChanges:w&&JSON.stringify(y)!==Ie})},[T,w,y,Ie]),(0,c.useEffect)(()=>{t!==B.current&&(B.current=t,I.current++,re(null),le(!1),ve(null),f?.graph&&(b(f.graph),Le(JSON.stringify(f.graph)),S(f.baseDigitizationRevision??0),ae(!0)))},[t]),(0,c.useEffect)(()=>{I.current++,x>0&&j!==s&&ae(!0),De(s),Ae(null),je(null),ke(!1),le(!1),re(null),ve(null)},[s]),(0,c.useEffect)(()=>{if(!f?.graph&&!ee)return;let e=I.current;ze.current(Ve).then(t=>{L.current&&e===I.current&&t&&Number.isInteger(t.revision)&&(f?.graph?t.revision<=He.current.revision||(I.current++,S(t.revision),re(null),le(!1),ve(null),se(`The saved plan changed. Your pending observations are restored; review them again before saving.`)):We(t))}).catch(()=>{})},[]);function V(e){I.current++,b(e),ae(!0),re(null),ve(null),le(!1)}async function H(e,t){let n=I.current,r=await ze.current(e,t);if(!L.current||n!==I.current)throw new DOMException(`The reviewed workspace changed.`,`AbortError`);return r}async function U(e){if(!(Re.current||R)){Re.current=!0,oe(!0),se(``);try{await e()}catch(e){L.current&&!(e instanceof DOMException&&e.name===`AbortError`)&&se(e instanceof Error?e.message:String(e))}finally{Re.current=!1,L.current&&oe(!1)}}}function We(e){L.current&&(De(e.sourceObjectId??s),Ae(null),je(null),ke(!1),b(e.graph),S(e.revision),re({...e.review,svg:e.svg??e.review.svg,pricingNotice:e.pricingNotice??e.review.pricingNotice}),ae(!1),Le(null),le(!1),ve(null),Se(e.availableFormats??[`svg`,`dxf`]),we(!1))}let W=(e,t,n=!1)=>(0,u.jsx)(`button`,{type:`button`,className:`outline`,disabled:T||R||n,onClick:t,children:e});function Ge(e,t,r){return(0,u.jsxs)(`label`,{className:`field`,children:[e,` (`,ie(n,y.units),`)`,(0,u.jsx)(ue,{language:n,step:`any`,value:!Number.isFinite(t.value)||t.origin===`estimated`?``:t.value,placeholder:t.origin===`estimated`&&Number.isFinite(t.value)?ne(n,t.value):void 0,onText:e=>{let t=te(e);r(Number.isFinite(t)?D(t):{value:NaN,origin:`estimated`,source:`Unspecified; enter a known value before review.`})}}),(0,u.jsxs)(`small`,{children:[h(n,t.origin),t.origin===`estimated`&&Number.isFinite(t.value)?`: `+ne(n,t.value):``,` · `,t.source]})]})}function Ke(e,t,n){return(0,u.jsxs)(`label`,{className:`field`,children:[e,(0,u.jsxs)(`select`,{value:t,onChange:e=>n(e.target.value),children:[(0,u.jsx)(`option`,{value:``,children:`—`}),y.vertices.map((e,t)=>(0,u.jsx)(`option`,{value:e.id,children:t+1},e.id))]})]})}return(0,u.jsxs)(`details`,{className:`digitization-review paper`,children:[(0,u.jsxs)(`summary`,{children:[z[0],` `,w&&(0,u.jsx)(`small`,{children:z[31]})]}),(0,u.jsxs)(`fieldset`,{disabled:T||R,className:`bare`,children:[(0,u.jsx)(`p`,{children:z[1]}),(0,u.jsxs)(`label`,{children:[{en:`Input units`,de:`Eingabeeinheit`,fr:`Unité de saisie`,ar:`وحدات الإدخال`}[n],(0,u.jsx)(`select`,{disabled:T||R,value:y.units,onChange:e=>V({...y,units:e.target.value}),children:[`m`,`cm`,`mm`].map(e=>(0,u.jsx)(`option`,{value:e,children:ie(n,e)},e))})]}),W(z[2],()=>void U(async()=>{let e=await H(Ve);e?We(e):se({en:`No saved existing plan yet.`,de:`Noch kein bestehender Plan gespeichert.`,fr:`Aucun plan existant enregistré pour l’instant.`,ar:`لا يوجد مخطط قائم محفوظ بعد.`}[n])}),w),x>0&&(0,u.jsxs)(`p`,{children:[z[26],` `,x]}),j&&!v&&(0,u.jsx)(`p`,{className:`feature-soon`,children:{en:`Sketch reading · coming soon`,de:`Skizzen auslesen · bald verfügbar`,fr:`Lecture de croquis · bientôt disponible`,ar:`قراءة الرسم الأولي · قريباً`}[n]}),j&&v&&(0,u.jsxs)(`section`,{children:[(0,u.jsxs)(`label`,{children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:Oe,disabled:T||R,onChange:e=>ke(e.target.checked)}),{en:`Send this saved image to Anthropic for unconfirmed image-coordinate observations. This does not establish physical scale.`,de:`Gespeichertes Bild an Anthropic senden, um unbestätigte Bildkoordinaten zu erhalten. Daraus ergibt sich kein realer Maßstab.`,fr:`Envoyer cette image enregistrée à Anthropic pour obtenir des observations non confirmées, en coordonnées d’image. Cela ne permet pas d’établir l’échelle réelle.`,ar:`إرسال الصورة المحفوظة إلى Anthropic للحصول على ملاحظات غير مؤكدة بإحداثيات الصورة. لا يحدد ذلك مقياساً فعلياً.`}[n]]}),W({en:`Read image observations`,de:`Bildbeobachtungen lesen`,fr:`Lire les observations de l’image`,ar:`قراءة ملاحظات الصورة`}[n],()=>void U(async()=>{let e=await H(Ve+`/recognize`,{expectedProjectVersion:B.current,expectedRevision:x,operationId:ge(),sourceObjectId:j,intent:`Identify existing boundaries, walls, rooms and openings as unconfirmed image coordinates only.`,allowAiProcessing:!0});L.current&&(Ae(e),je(null),Me(``),Pe(``),Fe(``))}),!Oe),M&&(0,u.jsxs)(`div`,{role:`status`,children:[(0,u.jsx)(`p`,{children:{en:`Estimated image tracing only. Physical calibration and reviewed measurements are still required; no metric plan was adopted.`,de:`Nur geschätzte Bildkonturen. Kalibrierung und geprüfte Maße fehlen noch; es wurde kein maßstäblicher Plan übernommen.`,fr:`Simple tracé estimé à partir de l’image. Un calibrage et des mesures vérifiées restent nécessaires ; aucun plan métrique n’a été adopté.`,ar:`تتبّع تقديري للصورة فقط. ما زالت المعايرة الفعلية والقياسات المراجَعة مطلوبة؛ ولم يُعتمد أي مخطط متري.`}[n]}),M.questions.map((e,t)=>(0,u.jsx)(`p`,{children:e},t)),M.candidate&&(0,u.jsxs)(`svg`,{"aria-label":h(n,`Unconfirmed image-coordinate tracing`),viewBox:`0 0 ${M.candidate.imageWidthPx} ${M.candidate.imageHeightPx}`,className:`bim-trace`,children:[d&&j===s&&(0,u.jsx)(`image`,{href:d,width:M.candidate.imageWidthPx,height:M.candidate.imageHeightPx}),` `,M.candidate.walls.map(e=>{let t=M.candidate.vertices.find(t=>t.id===e.startVertexId),n=M.candidate.vertices.find(t=>t.id===e.endVertexId);return t&&n?(0,u.jsx)(`line`,{x1:t.xPx,y1:t.yPx,x2:n.xPx,y2:n.yPx,className:`bim-trace-line`},e.id):null}),M.candidate.vertices.map(e=>(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:e.xPx,cy:e.yPx,r:Math.max(3,M.candidate.imageWidthPx/120),className:`bim-trace-point`+(e.id===P||e.id===Ne?` is-calibration`:``)}),(0,u.jsx)(`text`,{x:e.xPx+5,y:e.yPx-5,fontSize:Math.max(8,M.candidate.imageWidthPx/60),className:`bim-trace-label`,children:e.id})]},e.id))]})]})]}),M?.candidate&&(0,u.jsxs)(`section`,{children:[(0,u.jsx)(`h3`,{children:{en:`Calibration preview — not confirmed dimensions`,de:`Kalibrierungsvorschau – keine bestätigten Maße`,fr:`Aperçu calibré — mesures non confirmées`,ar:`معاينة المعايرة — ليست أبعاداً مؤكدة`}[n]}),(0,u.jsx)(`p`,{children:{en:`Choose two endpoints and enter their known distance in metres. The selected start point is the coordinate origin. Uniform scaling assumes a rectified image; perspective remains uncorrected.`,de:`Wählen Sie zwei Endpunkte und geben Sie ihren bekannten Abstand in Metern ein. Der Startpunkt ist der Koordinatenursprung. Die gleichmäßige Skalierung setzt ein entzerrtes Bild voraus; die Perspektive wird nicht korrigiert.`,fr:`Choisissez deux extrémités et saisissez leur distance connue, en mètres. Le point de départ choisi sert d’origine. La mise à l’échelle uniforme suppose une image redressée ; la perspective n’est pas corrigée.`,ar:`اختر نقطتين وأدخل المسافة المعروفة بينهما بالأمتار. تُعدّ نقطة البداية المختارة أصل الإحداثيات. يفترض التحجيم المنتظم أن الصورة مصحَّحة، ويبقى المنظور دون تصحيح.`}[n]}),[[`start`,P,Me],[`end`,Ne,Pe]].map(([e,t,n])=>(0,u.jsxs)(`label`,{children:[e===`start`?z[8]:z[9],(0,u.jsxs)(`select`,{disabled:T||R,value:t,onChange:e=>{n(e.target.value),I.current++,je(null)},children:[(0,u.jsx)(`option`,{value:``,children:`—`}),M.candidate.vertices.map(e=>(0,u.jsx)(`option`,{value:e.id,children:e.id},e.id))]})]},e)),(0,u.jsxs)(`label`,{children:[{en:`Known distance (m)`,de:`Bekannter Abstand (m)`,fr:`Distance connue (m)`,ar:`المسافة المعروفة (م)`}[n],(0,u.jsx)(ue,{language:n,min:`0`,step:`any`,disabled:T||R,value:F,onText:e=>{Fe(e),I.current++,je(null)}})]}),W({en:`Preview calibrated suggestions`,de:`Kalibrierte Vorschläge anzeigen`,fr:`Afficher les suggestions calibrées`,ar:`معاينة الاقتراحات بعد المعايرة`}[n],()=>void U(async()=>{let e=await H(Ve+`/calibrate`,{expectedProjectVersion:B.current,expectedRevision:x,candidate:M.candidate,sourceObjectId:j,calibration:{startVertexId:P,endVertexId:Ne,originVertexId:P,knownLength:D(Number(F)),units:`m`}});L.current&&je(e)}),!P||!Ne||P===Ne||!Number.isFinite(Number(F))||Number(F)<=0),N&&(0,u.jsxs)(`div`,{role:`status`,children:[N.findings.map((e,t)=>(0,u.jsxs)(`p`,{children:[e.code,`: `,e.message]},t)),N.questions.map((e,t)=>(0,u.jsx)(`p`,{children:e},t)),N.draft&&W({en:`Start review from unconfirmed suggestions`,de:`Prüfung mit unbestätigten Vorschlägen beginnen`,fr:`Partir des suggestions non confirmées`,ar:`بدء المراجعة من الاقتراحات غير المؤكدة`}[n],()=>V(pe(N.draft)),w)]})]}),(0,u.jsxs)(`fieldset`,{disabled:T||R,children:[(0,u.jsx)(`legend`,{children:z[3]}),y.vertices.map((e,t)=>(0,u.jsxs)(`article`,{children:[(0,u.jsx)(`strong`,{children:t+1}),Ge(`X`,e.x,t=>V({...y,vertices:y.vertices.map(n=>n.id===e.id?{...n,x:t}:n)})),Ge(`Y`,e.y,t=>V({...y,vertices:y.vertices.map(n=>n.id===e.id?{...n,y:t}:n)})),W(z[29],()=>V({...y,vertices:y.vertices.filter(t=>t.id!==e.id)}))]},e.id)),W(z[4],()=>V({...y,vertices:[...y.vertices,{id:ge(),x:O(),y:O()}]})),W(z[5],()=>V({...y,boundaryVertexIds:y.vertices.map(e=>e.id)}),y.vertices.length<3)]}),(0,u.jsxs)(`fieldset`,{disabled:T||R,children:[(0,u.jsx)(`legend`,{children:z[6]}),y.walls.map(e=>(0,u.jsxs)(`article`,{children:[Ke(z[8],e.startVertexId,t=>V({...y,walls:y.walls.map(n=>n.id===e.id?{...n,startVertexId:t}:n)})),Ke(z[9],e.endVertexId,t=>V({...y,walls:y.walls.map(n=>n.id===e.id?{...n,endVertexId:t}:n)})),Ge(z[10],e.thickness,t=>V({...y,walls:y.walls.map(n=>n.id===e.id?{...n,thickness:t}:n)})),(0,u.jsxs)(`label`,{children:[z[32],(0,u.jsx)(`select`,{value:e.type,onChange:t=>V({...y,walls:y.walls.map(n=>n.id===e.id?{...n,type:t.target.value}:n)}),children:[`exterior`,`party`,`interior`].map(e=>(0,u.jsx)(`option`,{children:e},e))})]}),W(z[29],()=>V({...y,walls:y.walls.filter(t=>t.id!==e.id)}))]},e.id)),W(z[7],()=>V({...y,walls:[...y.walls,{id:ge(),startVertexId:``,endVertexId:``,thickness:O(),type:`interior`}]}))]}),(0,u.jsxs)(`fieldset`,{disabled:T||R,children:[(0,u.jsx)(`legend`,{children:z[11]}),y.rooms.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`label`,{children:[z[13],(0,u.jsx)(`input`,{value:e.name,onChange:t=>V({...y,rooms:y.rooms.map(n=>n.id===e.id?{...n,name:t.target.value}:n)})})]}),(0,u.jsxs)(`label`,{children:[{en:`Room use`,de:`Raumnutzung`,fr:`Usage de la pièce`,ar:`استخدام الغرفة`}[n],(0,u.jsx)(`input`,{value:e.function,onChange:t=>V({...y,rooms:y.rooms.map(n=>n.id===e.id?{...n,function:t.target.value}:n)})})]}),(0,u.jsxs)(`label`,{children:[z[14],(0,u.jsx)(`input`,{value:e.vertexIds.map(e=>y.vertices.findIndex(t=>t.id===e)+1).join(`,`),onChange:t=>V({...y,rooms:y.rooms.map(n=>n.id===e.id?{...n,vertexIds:t.target.value.split(`,`).map(e=>y.vertices[Number(e.trim())-1]?.id??``)}:n)})})]}),(0,u.jsx)(`div`,{className:`corner-picker`,role:`group`,"aria-label":he[n],children:y.vertices.map((t,n)=>(0,u.jsx)(`button`,{type:`button`,className:`corner-chip`,"aria-pressed":e.vertexIds.includes(t.id),disabled:T||R,onClick:()=>V({...y,rooms:y.rooms.map(n=>n.id===e.id?{...n,vertexIds:n.vertexIds.includes(t.id)?n.vertexIds.filter(e=>e!==t.id):[...n.vertexIds.filter(Boolean),t.id]}:n)}),children:n+1},t.id))}),W(z[29],()=>V({...y,rooms:y.rooms.filter(t=>t.id!==e.id)}))]},e.id)),W(z[12],()=>V({...y,rooms:[...y.rooms,{id:ge(),name:``,function:`unspecified`,vertexIds:[]}]}))]}),(0,u.jsxs)(`fieldset`,{disabled:T||R,children:[(0,u.jsx)(`legend`,{children:z[15]}),y.openings.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`label`,{children:[z[32],(0,u.jsxs)(`select`,{value:e.kind,onChange:t=>V({...y,openings:y.openings.map(n=>n.id===e.id?{...n,kind:t.target.value}:n)}),children:[(0,u.jsx)(`option`,{value:`door`,children:A[n].door}),(0,u.jsx)(`option`,{value:`window`,children:A[n].window})]})]}),(0,u.jsxs)(`label`,{children:[{en:`Opening operation`,de:`Öffnungsart`,fr:`Type d’ouverture`,ar:`طريقة الفتح`}[n],(0,u.jsx)(`select`,{value:e.operation,onChange:t=>V({...y,openings:y.openings.map(n=>n.id===e.id?{...n,operation:t.target.value}:n)}),children:[`unknown`,`hinged-left`,`hinged-right`,`sliding`,`fixed`].map(e=>(0,u.jsx)(`option`,{value:e,children:A[n][e]},e))})]}),(0,u.jsxs)(`label`,{children:[z[17],(0,u.jsxs)(`select`,{value:e.hostWallId,onChange:t=>V({...y,openings:y.openings.map(n=>n.id===e.id?{...n,hostWallId:t.target.value}:n)}),children:[(0,u.jsx)(`option`,{value:``,children:`—`}),y.walls.map((e,t)=>(0,u.jsx)(`option`,{value:e.id,children:t+1},e.id))]})]}),[`offset`,`width`,`height`,`sill`].map((t,n)=>(0,u.jsx)(c.default.Fragment,{children:Ge(z[18+n],e[t]??O(),n=>V({...y,openings:y.openings.map(r=>r.id===e.id?{...r,[t]:(t===`height`||t===`sill`)&&!Number.isFinite(n.value)?null:n}:r)}))},t)),W(z[29],()=>V({...y,openings:y.openings.filter(t=>t.id!==e.id)}))]},e.id)),W(z[16],()=>V({...y,openings:[...y.openings,{id:ge(),kind:`door`,hostWallId:``,offset:O(),width:O(),height:null,sill:null,operation:`unknown`}]}))]}),W(z[22],()=>void U(async()=>{let e=await H(Ve+`/review`,{expectedProjectVersion:B.current,expectedRevision:x,graph:y,sourceObjectId:j});L.current&&(re(e),le(!1))}),!k(y)),C&&(0,u.jsxs)(`section`,{"aria-live":`polite`,children:[C.pricingNotice&&(0,u.jsx)(`p`,{children:C.pricingNotice}),C.svg&&(0,u.jsx)(`div`,{className:`engine-svg`,dangerouslySetInnerHTML:{__html:l.default.sanitize(C.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}),(0,u.jsx)(`ul`,{children:C.findings.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(`strong`,{children:e.code}),` `,e.message,` `,e.suggestedAction]},t))}),(0,u.jsxs)(`details`,{children:[(0,u.jsx)(`summary`,{children:z[22]}),C.values.values.map(e=>(0,u.jsxs)(`p`,{children:[e.path,`: `,e.value,` `,e.unit,` [`,e.origin,`]`]},e.path)),C.values.discrepancies.map(e=>(0,u.jsxs)(`p`,{children:[e.message,` `,e.question]},e.id))]}),(0,u.jsxs)(`label`,{children:[(0,u.jsx)(`input`,{type:`checkbox`,disabled:T||R,checked:ce,onChange:e=>le(e.target.checked)}),z[24]]}),W(z[23],()=>void U(async()=>{await Ue(),We(await H(Ve,{expectedProjectVersion:B.current,expectedRevision:x,operationId:ge(),graph:y,sourceObjectId:j,reviewContentHash:C.contentHash,reviewedValuePaths:fe(C)}))}),!ce||!C.geometryValidated||!w&&x>0&&C.canExport||(C.requiredReviewPaths?.some(e=>!fe(C).includes(e))??!1))]}),xe.includes(`pdf`)&&(0,u.jsxs)(`label`,{children:[`PDF`,(0,u.jsx)(`input`,{type:`checkbox`,disabled:T||R,checked:Ce,onChange:e=>{we(e.target.checked),ve(null)}}),(0,u.jsxs)(`select`,{"aria-label":h(n,`PDF scale / paper`),disabled:T||R,value:Te,onChange:e=>{Ee(Number(e.target.value)),ve(null)},children:[(0,u.jsx)(`option`,{value:50,children:`1:50 · A2`}),(0,u.jsx)(`option`,{value:100,children:`1:100 · A3`})]}),(0,u.jsx)(`small`,{children:`100% · 1:100: compact labels`})]}),W(z[25],()=>void U(async()=>{let e=await H(Ve+`/exports`,{expectedProjectVersion:B.current,expectedRevision:x,operationId:ge(),formats:Ce?[`svg`,`dxf`,`pdf`]:[`svg`,`dxf`],scaleDenominator:Te,paperSize:Te===50?`A2`:`A3`});L.current&&ve(e)}),w||!C?.canExport||x<1),x>1&&(0,u.jsxs)(`label`,{children:[z[27],(0,u.jsx)(`input`,{type:`number`,min:`1`,max:x-1,value:ye,onChange:e=>be(e.target.valueAsNumber)}),W(z[28],()=>void U(async()=>We(await H(Ve+`/undo`,{expectedProjectVersion:B.current,expectedRevision:x,targetRevision:ye,operationId:ge()}))),w)]}),_e&&Object.keys(_e.files).map(e=>(0,u.jsx)(c.default.Fragment,{children:W(z[30]+` `+e.toUpperCase(),()=>a(e,_e),w)},e)),E&&(0,u.jsx)(`p`,{role:`alert`,children:E}),(0,u.jsx)(`p`,{children:p[n].disclaimer})]})]})}function ve(e,t){if(typeof e.priceMinorUnits!=`number`||!Number.isFinite(e.priceMinorUnits)||typeof e.currency!=`string`)return null;try{let n=new Intl.NumberFormat(t===`ar`?`ar-u-nu-latn`:t,{style:`currency`,currency:e.currency}),r=n.resolvedOptions().maximumFractionDigits??2;return n.format(e.priceMinorUnits/10**r)}catch{return null}}function ye(e){return typeof e.freeProposalGenerations==`number`&&typeof e.freeBimExports==`number`?{proposals:e.freeProposalGenerations,exports:e.freeBimExports}:null}function be(e){return`polycyphers.bim.project.v1:`+encodeURIComponent(e)}function xe(e,t){try{let n=e.getItem(be(t));return n&&/^[a-f0-9]{32}$/i.test(n)?n:null}catch{return null}}function Se(e,t,n){try{n&&/^[a-f0-9]{32}$/i.test(n)?e.setItem(be(t),n):e.removeItem(be(t))}catch{}}function Ce(e){return{footprint:{edges:Array.from({length:4},(e,t)=>({id:`W`+(t+1),startVertexId:`V`+(t+1),endVertexId:`V`+((t+1)%4+1),lengthM:NaN,bearingDegrees:null,direction:`Any`,wallType:`exterior`}))},programme:{bedroomWidthM:NaN,bedroomDepthM:NaN,bathroomWidthM:NaN,bathroomDepthM:NaN,hallWidthM:NaN,wardrobeLengthM:NaN,balconyDepthM:NaN,slidingDoorWidthM:NaN,balconyEdgeId:``,entranceEdgeId:``,source:`User-entered project programme; dimensions require engine validation`},buildUps:null,viewEdgeId:``,country:`unspecified`,language:e}}function we(e){if(e.footprint.edges.length<3||e.footprint.edges.some(e=>!Number.isFinite(e.lengthM)||e.lengthM<=0||e.bearingDegrees!==null&&!Number.isFinite(e.bearingDegrees)))return`Enter every measured wall length. Leave an unknown bearing blank.`;if(e.programme){let t=e.programme;if([t.bedroomWidthM,t.bedroomDepthM,t.bathroomWidthM,t.bathroomDepthM,t.hallWidthM,t.wardrobeLengthM,t.slidingDoorWidthM].some(e=>!Number.isFinite(e)||e<=0)||!Number.isFinite(t.balconyDepthM)||t.balconyDepthM<0||!t.entranceEdgeId||!t.balconyEdgeId)return`Complete the room programme and choose the entrance and balcony walls.`}return null}function Te(e,t){return!!e&&!!t&&e.isChanged&&e.expectedVersion===t.version&&e.snapshot.projectId===t.projectId}function Ee(e){let t=e?.toLowerCase().split(/[-_]/)[0];return t===`de`||t===`fr`||t===`ar`?t:`en`}function j(e,t,n){return n.some(e=>e.toLowerCase()===t.toLowerCase())?`estimated`:e.valueOrigins?e.valueOrigins.userGivenPaths.some(e=>e.toLowerCase()===t.toLowerCase())?`user-given`:`estimated`:t.startsWith(`programme.`)?e.programme?.source.startsWith(`User-entered`)?`user-given`:`estimated`:t.startsWith(`buildUps.`)?`estimated`:`user-given`}function De(e,t,n){let r=e.valueOrigins?.userGivenPaths??[...e.footprint.edges.flatMap((e,t)=>[...Number.isFinite(e.lengthM)?[`footprint.edges[${t}].lengthM`]:[],...e.bearingDegrees==null?[]:[`footprint.edges[${t}].bearingDegrees`]]),...Object.entries(e.programme??{}).filter(([,e])=>typeof e==`number`&&Number.isFinite(e)).map(([e])=>`programme.`+e)].filter(t=>j(e,t,n)===`user-given`);return{...e,valueOrigins:{userGivenPaths:[...r.filter(e=>e.toLowerCase()!==t.toLowerCase()),t]}}}var Oe=(e,t)=>e.map((n,r)=>({id:`W`+(r+1),startVertexId:`V`+(r+1),endVertexId:`V`+((r+1)%e.length+1),lengthM:n,bearingDegrees:t[r],direction:`Any`,wallType:`exterior`}));function ke(e,t){return Oe([e,t,e,t],[0,90,180,270])}function M(e,t,n,r){let i=[e,t,n,r].every(e=>Number.isFinite(e)&&e>0)&&n<e&&r<t,a=e=>i?e:NaN;return Oe([a(e),a(t-r),a(n),a(r),a(e-n),a(t)],[0,90,180,90,180,270])}function Ae(e){return{footprint:{edges:ke(NaN,NaN)},programme:null,buildUps:null,viewEdgeId:``,country:`unspecified`,language:e,valueOrigins:{userGivenPaths:[]}}}function N(e){let t=e.footprint.edges,n=t.map(e=>e.bearingDegrees),r=e=>e.length===n.length&&e.every((e,t)=>n[t]===e);return r([0,90,180,270])&&je(t[0].lengthM,t[2].lengthM)&&je(t[1].lengthM,t[3].lengthM)?{shape:`rectangle`,values:[t[0].lengthM,t[1].lengthM]}:r([0,90,180,90,180,270])&&t.every(e=>Number.isFinite(e.lengthM))?{shape:`l-shape`,values:[t[0].lengthM,t[5].lengthM,t[2].lengthM,t[3].lengthM]}:{shape:`custom`,values:[]}}var je=(e,t)=>Number.isNaN(e)&&Number.isNaN(t)||Math.abs(e-t)<1e-9;function P(e){let t=e.footprint.edges;if(t.length<3||t.some(e=>!Number.isFinite(e.lengthM)||e.lengthM<=0||e.bearingDegrees==null||!Number.isFinite(e.bearingDegrees)))return null;let n=[{x:0,y:0}];for(let e of t.slice(0,-1)){let t=n[n.length-1],r=e.bearingDegrees*Math.PI/180;n.push({x:t.x+e.lengthM*Math.cos(r),y:t.y+e.lengthM*Math.sin(r)})}return n}var Me=[[`rectangle`,`Rectangle`],[`l-shape`,`L-shape`],[`custom`,`Custom`]],Ne={rectangle:[`Width (m)`,`Depth (m)`],"l-shape":[`Width (m)`,`Depth (m)`,`Cut-out width (m)`,`Cut-out depth (m)`]};function Pe({input:e,language:t,onEdges:n,onShape:r}){let i=t,[a]=(0,c.useState)(()=>N(e)),[o,s]=(0,c.useState)(a.shape),[l,d]=(0,c.useState)(()=>[0,1,2,3].map(e=>Number.isFinite(a.values[e])?String(a.values[e]):``)),f=l.map(e=>e.trim()===``?NaN:Number(e)),p=(e,t)=>e===`rectangle`?ke(t[0],t[1]):M(t[0],t[1],t[2],t[3]);function m(e){s(e),r(e),e!==`custom`&&n(p(e,f))}function g(e,t){let r=l.map((n,r)=>r===e?t:n);d(r),o!==`custom`&&n(p(o,r.map(e=>e.trim()===``?NaN:Number(e))))}let _=o===`l-shape`&&f.every(Number.isFinite)&&(f[2]>=f[0]||f[3]>=f[1]);return(0,u.jsxs)(`div`,{className:`room-shape`,children:[(0,u.jsx)(`div`,{className:`segmented`,role:`group`,"aria-label":h(i,`Room shape`),children:Me.map(([e,t])=>(0,u.jsx)(`button`,{type:`button`,className:o===e?`active`:``,"aria-pressed":o===e,onClick:()=>m(e),children:h(i,t)},e))}),o!==`custom`&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`room-dimensions`,children:Ne[o].map((e,t)=>(0,u.jsxs)(`label`,{className:`field`,children:[h(i,e),(0,u.jsx)(ue,{language:i,inputMode:`decimal`,min:`0`,step:`0.01`,value:l[t],onText:e=>g(t,e)})]},e))}),o===`l-shape`&&(0,u.jsx)(`small`,{children:h(i,`The cut-out is taken from the back right corner.`)}),_&&(0,u.jsx)(`p`,{role:`alert`,className:`field-error`,children:h(i,`The cut-out must be smaller than the room.`)}),(0,u.jsxs)(`p`,{className:`assumed`,children:[h(i,`Right angles assumed`),` `,(0,u.jsx)(`small`,{className:`value-tag estimated`,children:h(i,`estimated`)}),` · `,(0,u.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>m(`custom`),children:h(i,`change`)})]})]})]})}function F({input:e,language:t}){let n=P(e);if(!n)return(0,u.jsx)(`p`,{className:`room-outline-empty`,children:h(t,`The outline appears when every wall length and angle is known.`)});let r=n.map(e=>e.x),i=n.map(e=>e.y),a=Math.min(...r),o=Math.max(...i),s=Math.min(260/Math.max(Math.max(...r)-a,1e-6),180/Math.max(o-Math.min(...i),1e-6)),c=n.map(e=>({x:30+(e.x-a)*s,y:30+(o-e.y)*s}));return(0,u.jsxs)(`figure`,{className:`room-outline`,children:[(0,u.jsxs)(`svg`,{viewBox:`0 0 320 240`,role:`img`,"aria-label":h(t,`Outline preview`),children:[(0,u.jsx)(`polygon`,{className:`room-outline-shape`,points:c.map(e=>`${e.x.toFixed(1)},${e.y.toFixed(1)}`).join(` `)}),e.footprint.edges.map((e,n)=>{let r=c[n],i=c[(n+1)%c.length];return(0,u.jsx)(`text`,{className:`room-outline-label`,x:(r.x+i.x)/2,y:(r.y+i.y)/2,textAnchor:`middle`,dominantBaseline:`middle`,children:x(t,e.lengthM,2)},e.id)})]}),(0,u.jsx)(`figcaption`,{children:h(t,`Outline preview`)})]})}function Fe({input:e,language:t,busy:n,onApply:r}){let i=t,a=e.footprint.edges,o=N(e).shape===`rectangle`,[s,l]=(0,c.useState)(()=>(o?[a[0].lengthM,a[1].lengthM]:a.map(e=>e.lengthM)).map(e=>Number.isFinite(e)?String(e):``)),d=s.map(e=>e.trim()===``?NaN:Number(e)),f=d.every(e=>Number.isFinite(e)&&e>0),p=o?[0,1,2,3].map(e=>({edgeId:a[e].id,lengthM:d[e%2]})):a.map((e,t)=>({edgeId:e.id,lengthM:d[t]})),m=p.some((e,t)=>Math.abs(e.lengthM-a[t].lengthM)>1e-9),g=o?[h(i,`Width (m)`),h(i,`Depth (m)`)]:a.map(e=>`${e.id} (${ie(i,`m`)})`);return(0,u.jsxs)(`form`,{className:`adjust-lengths`,onSubmit:e=>{e.preventDefault(),f&&m&&r(p)},children:[(0,u.jsx)(`h3`,{children:h(i,`Adjust the room size`)}),(0,u.jsx)(`p`,{children:h(i,`Change a measurement and the engine recalculates every layout. This saves a new version.`)}),(0,u.jsx)(`div`,{className:`room-dimensions`,children:g.map((e,t)=>(0,u.jsxs)(`label`,{className:`field`,children:[e,(0,u.jsx)(ue,{language:i,inputMode:`decimal`,min:`0`,step:`0.01`,disabled:n,value:s[t],onText:e=>l(s.map((n,r)=>r===t?e:n))})]},e))}),(0,u.jsx)(`button`,{className:`outline full`,disabled:n||!f||!m,children:h(i,`Update layouts`)})]})}var Ie=class extends Error{code;status;limit;suppressed=!1;constructor(e,t,n){super(e),this.name=`StudioRequestError`,this.code=t,this.status=n,this.limit=n===423||Le.includes(t)}},Le=[`guest_trial_limit`,`project_quota_exceeded`];function I(e,t){return(typeof e.code==`string`&&/^[a-z][a-z0-9_]{0,63}$/.test(e.code)?e.code:null)||(t===401?`session_expired`:t===423?`guest_trial_limit`:t===402?`project_quota_exceeded`:t===429?`rate_limited`:t===404||t===410?`not_found`:t===409||t===412?`conflict`:t===400||t===422?`invalid_input`:t>=500?`service_unavailable`:`unknown`)}var L={en:{guest_trial_limit:`You have used this free trial’s allowance. Download what you have; an account is needed to continue.`,project_quota_exceeded:`This project has reached its limit.`,rate_limited:`Too many requests in a short time. Wait a moment and try again.`,session_expired:`Your session ended. Sign in again to continue.`,invalid_input:`Some values could not be accepted. Check your measurements and try again.`,not_found:`This item is no longer available.`,conflict:`This project changed in another window. Reload it to continue.`,service_unavailable:`The service is busy right now. Try again in a moment.`,network:`We could not reach the service. Check your connection and try again.`,unavailable:`This action is not available right now.`,unknown:`Something went wrong. Try again.`},de:{guest_trial_limit:`Sie haben das Limit des kostenlosen Tests erreicht. Laden Sie Ihren bisherigen Stand herunter; zum Weiterarbeiten brauchen Sie ein Konto.`,project_quota_exceeded:`Dieses Projekt hat sein Limit erreicht.`,rate_limited:`Zu viele Anfragen in kurzer Zeit. Warten Sie kurz und versuchen Sie es erneut.`,session_expired:`Ihre Sitzung ist abgelaufen. Melden Sie sich erneut an, um weiterzuarbeiten.`,invalid_input:`Einige Werte wurden nicht angenommen. Prüfen Sie Ihre Maße und versuchen Sie es erneut.`,not_found:`Dieser Eintrag ist nicht mehr verfügbar.`,conflict:`Das Projekt wurde in einem anderen Fenster geändert. Laden Sie es neu.`,service_unavailable:`Der Dienst ist gerade ausgelastet. Versuchen Sie es gleich noch einmal.`,network:`Der Dienst ist nicht erreichbar. Prüfen Sie Ihre Verbindung und versuchen Sie es erneut.`,unavailable:`Diese Aktion ist gerade nicht verfügbar.`,unknown:`Da ist etwas schiefgelaufen. Versuchen Sie es erneut.`},fr:{guest_trial_limit:`Vous avez atteint la limite de cet essai gratuit. Téléchargez ce que vous avez déjà ; un compte est nécessaire pour continuer.`,project_quota_exceeded:`Ce projet a atteint sa limite.`,rate_limited:`Trop de demandes en peu de temps. Patientez un instant, puis réessayez.`,session_expired:`Votre session a expiré. Reconnectez-vous pour continuer.`,invalid_input:`Certaines valeurs n’ont pas été acceptées. Vérifiez vos mesures et réessayez.`,not_found:`Cet élément n’est plus disponible.`,conflict:`Ce projet a été modifié dans une autre fenêtre. Rechargez-le pour continuer.`,service_unavailable:`Le service est très sollicité. Réessayez dans un instant.`,network:`Impossible de joindre le service. Vérifiez votre connexion, puis réessayez.`,unavailable:`Cette action n’est pas disponible pour le moment.`,unknown:`Un problème est survenu. Réessayez.`},ar:{guest_trial_limit:`بلغت الحدّ الأقصى لهذه التجربة المجانية. نزّل ما أنجزته؛ وللمتابعة تحتاج إلى حساب.`,project_quota_exceeded:`بلغ هذا المشروع الحدّ المسموح به.`,rate_limited:`طلبات كثيرة في وقت قصير. انتظر قليلاً ثم حاول مرة أخرى.`,session_expired:`انتهت جلستك. سجّل الدخول مرة أخرى للمتابعة.`,invalid_input:`تعذّر قبول بعض القيم. راجع قياساتك وحاول مرة أخرى.`,not_found:`لم يعد هذا العنصر متاحاً.`,conflict:`تغيّر هذا المشروع في نافذة أخرى. أعد تحميله للمتابعة.`,service_unavailable:`الخدمة مشغولة الآن. حاول مرة أخرى بعد قليل.`,network:`تعذّر الوصول إلى الخدمة. تحقق من اتصالك وحاول مرة أخرى.`,unavailable:`هذا الإجراء غير متاح حالياً.`,unknown:`حدث خطأ ما. حاول مرة أخرى.`}};function Re(e,t){return L[e][t]??L[e][Le.includes(t)?`project_quota_exceeded`:`unknown`]}var ze=`0.2.0`;(0,d.disableTelemetry)();var Be=`bim`,R=ze,z=`https://licenseapi.polycyphers.com/api/license/revoked.json`,Ve=`polycyphers-revocation-list`,B=1048576,He=86400,Ue=6e4,V=``,H=0,U=`not_set`,We=null,W=null,Ge=new Set;function Ke(e){(0,d.setBrand)(e===`karamentreprises`?`karament`:null)}function qe(e){let t=typeof e==`string`?e.trim():``;if(t!==V){V=t,H++,We=null,U=t?`checking`:`not_set`;for(let e of Ge)try{e()}catch{}}}function Je(){qe(``)}function G(e){return Ge.add(e),()=>{Ge.delete(e)}}function Ye(){return We?Date.now()>=We.expires?`expired`:Date.now()<We.until?We.status:`checking`:U}function Xe(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function K(e,t=256){return typeof e==`string`&&e.length>0&&e.length<=t&&!/[\u0000-\u001f\u007f]/.test(e)}function Ze(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>0}function Qe(e){if(e.length>32768||!/^[-_A-Za-z0-9]+\.[-_A-Za-z0-9]+$/.test(e))return null;try{let t=Uint8Array.from(atob(e.split(`.`)[0].replace(/-/g,`+`).replace(/_/g,`/`)),e=>e.charCodeAt(0)),n=JSON.parse(new TextDecoder(`utf-8`,{fatal:!0}).decode(t));return Xe(n)?n:null}catch{return null}}function $e(e){if(e===`*`)return!0;let t=e.split(`.`),n=R.split(`.`);return t.length<=3&&t.every((e,t)=>e===`x`||e===`*`||/^\d+$/.test(e)&&e===n[t])}function et(e){if(!K(e,253))return!1;let t=e.toLowerCase().replace(/^\*\./,``).replace(/^\./,``);return/^\[[0-9a-f:]+\]$/.test(t)||t.split(`.`).every(e=>/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(e))}function tt(e,t){let n=e.toLowerCase();return n===t?!0:n.startsWith(`*.`)?t.endsWith(n.slice(1))&&t.length>n.length-1:n.startsWith(`.`)?t===n.slice(1)||t.endsWith(n):!1}async function nt(e){if(!e.ok)throw Error(`License service unavailable`);let t=e.headers.get(`content-length`);if(t&&(!/^\d+$/.test(t)||Number(t)>B))throw Error(`License response too large`);if(!e.body)throw Error(`License response missing`);let n=e.body.getReader(),r=0,i=[];try{for(;;){let e=await n.read();if(e.done)break;if(r+=e.value.byteLength,r>B)throw Error(`License response too large`);i.push(e.value)}}finally{await n.cancel().catch(()=>{}),n.releaseLock()}let a=new Uint8Array(r),o=0;for(let e of i)a.set(e,o),o+=e.byteLength;return JSON.parse(new TextDecoder(`utf-8`,{fatal:!0}).decode(a))}async function rt(e,t){let n=new AbortController,r=setTimeout(()=>n.abort(),8e3);try{let r=await nt(await fetch(z,{credentials:`omit`,cache:`no-store`,redirect:`error`,signal:n.signal}));if(!Xe(r)||typeof r.token!=`string`||r.token.length>B||!Ze(r.iat)||!Array.isArray(r.revoked)||r.revoked.length>1e5||!r.revoked.every(e=>K(e,128)))throw Error(`Invalid revocation envelope`);let i=r.revoked,a=await(0,d.verifySystemMessage)(r.token,Ve,t);if(!a.ok)throw Error(`Invalid signed revocation list`);let o=a.payload;if(!Ze(o.iat)||!Ze(o.exp)||o.exp<=t||o.exp<=o.iat||o.exp-o.iat>He||o.iat>t+60||t-o.iat>He||o.iat!==r.iat||!Array.isArray(o.revoked)||o.revoked.length!==r.revoked.length||!o.revoked.every((e,t)=>K(e,128)&&e===i[t]))throw Error(`Stale or inconsistent revocation list`);return{revoked:r.revoked.includes(e),expires:Math.min(o.exp,o.iat+He)*1e3}}finally{clearTimeout(r)}}async function it(e=!1){let t=Ye();if(!e&&t===`licensed`)return t;if(!V)return`not_set`;if(W?.epoch===H)return W.promise;let n=H,r=V,i=(async()=>{let e=`invalid_signature`,t=null;try{let n=Qe(r);if(!n||!K(n.sub))return`invalid_signature`;let i=Math.floor(Date.now()/1e3),a=await(0,d.verifySystemMessage)(r,n.sub,i);if(!a.ok)return a.status;let o=a.payload;if(!K(o.sub)||!K(o.jti,128)||!Ze(o.iat)||!Ze(o.exp)||o.iat>i+60||o.exp<=o.iat)return`invalid_signature`;if(![`pro`,`team`,`enterprise`,`internal`].includes(String(o.tier)))return`wrong_tier`;if(o.exp<=i)return`expired`;if(!Array.isArray(o.pkg)||!o.pkg.length||o.pkg.length>32||!o.pkg.every(e=>K(e,128))||!o.pkg.includes(`bim`)||o.pkg.includes(`Polycyphers.Bim`))return`wrong_package`;if(typeof o.ver!=`string`||o.ver.length>64||!$e(o.ver))return`wrong_version`;let s=typeof location>`u`?``:location.hostname.toLowerCase();if(!s||!Array.isArray(o.dom)||!o.dom.length||o.dom.length>64||!o.dom.every(et)||!o.dom.some(e=>tt(e,s)))return`wrong_domain`;let c=await rt(o.jti,i);if(c.revoked)return`revoked`;let l=Math.min(o.exp*1e3,c.expires);return o.exp*1e3<=Date.now()?`expired`:l<=Date.now()?`unavailable`:(e=`licensed`,t={until:Math.min(l,Date.now()+Ue),expires:l,status:e},e)}catch{return`unavailable`}finally{n===H&&(We=t,U=t?.status??`unavailable`)}})();W={epoch:n,promise:i};try{let e=await i;return n===H?(U=e,e):Ye()}finally{W?.promise===i&&(W=null)}}var at={baulynq:{name:`BauLynq`,subtitle:`Vision`,title:`BauLynq Vision`,downloadPrefix:`baulynq`,licenseUrl:`https://packages.polycyphers.com/bim`},karamentreprises:{name:`Karamentreprises`,subtitle:`BIM`,title:`Karamentreprises BIM`,downloadPrefix:`karamentreprises`,licenseUrl:`https://packages.karamentreprises.com/bim`},planlynq:{name:`PlanLynq`,subtitle:`Studio`,title:`PlanLynq Studio`,downloadPrefix:`planlynq`,licenseUrl:`https://packages.polycyphers.com/bim`}},ot=(0,c.createContext)(`baulynq`),st=()=>location.pathname===`/verify-email`||location.pathname===`/verify`,q=()=>crypto.randomUUID().replaceAll(`-`,``);function ct(){let e=at[(0,c.useContext)(ot)];return(0,u.jsxs)(`span`,{className:`brand`,children:[(0,u.jsx)(`svg`,{viewBox:`0 0 28 28`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M4 23V5h13v7h7v11H4m7 0V12h6m0 0V5`})}),(0,u.jsxs)(`strong`,{children:[e.name,(0,u.jsx)(`span`,{children:e.subtitle})]})]})}function lt(){return(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`↗`})}function ut({language:e}){return(0,u.jsxs)(`svg`,{className:`sketch-art`,viewBox:`0 0 450 340`,role:`img`,"aria-label":h(e,`Illustrative hand sketch of the reference footprint`),children:[(0,u.jsx)(`defs`,{children:(0,u.jsx)(`pattern`,{id:`sketchgrid`,width:`16`,height:`16`,patternUnits:`userSpaceOnUse`,children:(0,u.jsx)(`path`,{className:`grid`,d:`M16 0H0V16`,fill:`none`,strokeWidth:`.5`})})}),(0,u.jsx)(`rect`,{width:`450`,height:`340`,fill:`url(#sketchgrid)`}),(0,u.jsxs)(`g`,{transform:`translate(66 53) rotate(-4 140 110)`,className:`pencil`,fill:`none`,strokeWidth:`2.2`,strokeLinecap:`round`,children:[(0,u.jsx)(`path`,{d:`M12 233L255 235l-1-37 56 1-2-159-19-17L18 22Z`}),(0,u.jsx)(`path`,{d:`M13 232L17 21l272 4 19 14 2 160-55-2v36Z`,opacity:`.4`}),(0,u.jsx)(`path`,{d:`M129 232V115h178M130 154h74v77`,strokeDasharray:`5 7`}),(0,u.jsx)(`path`,{d:`M324 70v72m-5-7 5 8 5-8`,className:`arrow`})]}),(0,u.jsxs)(`g`,{className:`notes`,fontFamily:`monospace`,fontSize:`15`,transform:`rotate(-4 200 170)`,children:[(0,u.jsxs)(`text`,{x:`145`,y:`62`,children:[`8.34`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`165`,y:`318`,children:[`7.40`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`21`,y:`172`,transform:`rotate(-90 21 172)`,children:[`6.40`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`387`,y:`153`,transform:`rotate(90 387 153)`,children:[`4.81`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,u.jsxs)(`text`,{x:`307`,y:`282`,children:[`1.70`,(0,u.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]})]}),(0,u.jsx)(`text`,{x:`29`,y:`32`,fontFamily:`monospace`,fontSize:`10`,className:`caption`,children:`OWN ILLUSTRATION · USER-GIVEN / UNCONFIRMED`})]})}function dt(e={}){let t=e.brand??`baulynq`,n=Ee(e.language??e.initialInput?.language??(typeof navigator>`u`?`en`:navigator.language)),[r,i]=(0,c.useState)(`checking`),[a,o]=(0,c.useState)(0);(0,c.useEffect)(()=>{let e=!0,n=!1,r=!1;Ke(t);let a=async()=>{if(n)r=!0;else{n=!0;try{let t=await it(!0);e&&i(t)}catch{e&&i(`unavailable`)}finally{n=!1,r&&e&&(r=!1,a())}}};a();let o=G(()=>{e&&i(`checking`),a()}),s=setInterval(()=>{a()},3e4),c=setInterval(()=>{let t=Ye();e&&t!==`licensed`&&i(t)},1e3);return()=>{e=!1,clearInterval(s),clearInterval(c),o()}},[t,a]);let s=(0,c.useCallback)(async(t,n)=>{let r=await it(),a=Ye();if(r!==`licensed`||a!==`licensed`)throw i(a),new DOMException(`A valid component license is required.`,`AbortError`);return e.transport?e.transport(t,n):fetch(`/v1`+t,n)},[e.transport]),l=r===`licensed`;return(0,u.jsx)(ot.Provider,{value:t,children:l?(0,u.jsx)(ft,{...e,transport:s},e.embedded?e.workspaceKey??`unscoped`:`public`):(0,u.jsxs)(`section`,{className:`bim-studio bim-license-gate`,dir:n===`ar`?`rtl`:`ltr`,"aria-label":h(n,`Component licensing`),children:[(0,u.jsx)(ct,{}),(0,u.jsx)(`h1`,{children:h(n,r===`checking`?`Verifying component license…`:`A valid component license is required`)}),(0,u.jsxs)(`p`,{children:[at[t].title,` · `,r]}),(0,u.jsx)(`p`,{children:h(n,`The studio stays closed until its installation license and signed revocation status are verified.`)}),r!==`checking`&&(0,u.jsx)(`button`,{className:`outline`,onClick:()=>o(e=>e+1),children:h(n,`Check license again`)}),(0,u.jsxs)(`a`,{href:at[t].licenseUrl,children:[h(n,`License management`),` ↗`]})]})})}function ft({layout:e,progress:t,theme:n=`light`,chrome:r=`standalone`,features:i,measureFlow:a=`walls`,onError:o,onLimit:s,errorMessages:d,enableExistingPlanReview:f=!1,embedded:m=!1,transport:ee,initialInput:v,workspaceKey:S,language:C,onStateChange:te,brand:ne=`baulynq`,initialAccountMode:re,initialProjectId:T}={}){let[E,ce]=(0,c.useState)(()=>Ee(C??v?.language??(typeof navigator>`u`?`en`:navigator.language))),[le,ue]=(0,c.useState)(m||r===`host`||/^\/studio\/?$/.test(location.pathname)?`studio`:`home`),[de,D]=(0,c.useState)(`measure`),[O,fe]=(0,c.useState)(null),[k,pe]=(0,c.useState)(()=>v??(a===`room`&&!(S&&xe(localStorage,S))?Ae(Ee(C??(typeof navigator>`u`?`en`:navigator.language))):null)),[me,he]=(0,c.useState)(`A`),[A,ge]=(0,c.useState)(!1),[be,j]=(0,c.useState)(``),[De,Oe]=(0,c.useState)(``),[ke,M]=(0,c.useState)(``),[N,je]=(0,c.useState)(null),[P,Me]=(0,c.useState)(null),[Ne,Pe]=(0,c.useState)(null),[F,Le]=(0,c.useState)(``),[L,ze]=(0,c.useState)(!m&&(st()||re===`login`||re===`signup`)),[Be,R]=(0,c.useState)(``),[z,Ve]=(0,c.useState)(``),[B,He]=(0,c.useState)({}),[Ue,V]=(0,c.useState)(!1),[H,U]=(0,c.useState)(!m&&st()?`verify`:!m&&re===`signup`?`signup`:`login`),[We,W]=(0,c.useState)(()=>st()?new URLSearchParams(location.search).get(`token`)??``:``),[Ge,Ke]=(0,c.useState)(),[qe,Je]=(0,c.useState)(null),[G,Xe]=(0,c.useState)(null),[K,Ze]=(0,c.useState)(null),[Qe,$e]=(0,c.useState)(``),[et,tt]=(0,c.useState)(null),[nt,rt]=(0,c.useState)([]),[it,ot]=(0,c.useState)(!1),[dt,ft]=(0,c.useState)(!1),[pt,bt]=(0,c.useState)(!1),[xt,St]=(0,c.useState)(null),[Ct,wt]=(0,c.useState)(null),[Tt,Et]=(0,c.useState)(null),[Dt,Ot]=(0,c.useState)(!1),[kt,At]=(0,c.useState)(1),[jt,Mt]=(0,c.useState)(1),[Nt,Pt]=(0,c.useState)(!1),[Ft,It]=(0,c.useState)(!1),[Lt,Rt]=(0,c.useState)(``),[zt,Bt]=(0,c.useState)(!1),[Vt,Ht]=(0,c.useState)(!1),[Ut,Wt]=(0,c.useState)(null),[Gt,Kt]=(0,c.useState)(!1),[qt,Jt]=(0,c.useState)([]),[Yt,Xt]=(0,c.useState)([]),[Zt,Qt]=(0,c.useState)(null),$t=(0,c.useRef)(m?void 0:T),en=(0,c.useRef)(null),tn=(0,c.useCallback)(e=>{en.current=e},[]),[nn,rn]=(0,c.useState)(!1),[an,on]=(0,c.useState)([]),[sn,cn]=(0,c.useState)(),ln=(0,c.useRef)(v?void 0:k),un=r===`host`,dn=(0,c.useRef)(null),fn=(0,c.useRef)(!1),pn=(0,c.useRef)(!0),J=(0,c.useRef)(0),mn=(0,c.useRef)(``),hn=(0,c.useRef)(void 0),gn=(0,c.useRef)(S),Y=p[E],_n=S??Ge,[vn,yn]=(0,c.useState)(!1),[bn,xn]=(0,c.useState)({busy:!1,hasUnsavedChanges:!1}),Sn=(0,c.useCallback)(e=>xn(e),[]),Cn=(0,c.useRef)(te),wn=(0,c.useRef)({onError:o,onLimit:s});wn.current={onError:o,onLimit:s};let Tn=(e??(r===`host`?`consumer`:`classic`))===`consumer`,En=(t??(r===`host`?`inline`:`toast`))===`inline`,Dn=(e,t)=>En&&A&&Lt===e?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{className:`spinner`,"aria-hidden":`true`}),Y.generating]}):t,On=(d??(r===`host`?`localized`:`service`))===`localized`;function kn(e,t,n){let r=new Ie(On?Re(E,t):e,t,n);return wn.current.onError?.({code:t,status:n,message:r.message,limit:r.limit}),r.limit&&wn.current.onLimit&&(wn.current.onLimit(t),r.suppressed=!0),r}function An(e,t=`Please try again.`){e instanceof DOMException&&e.name===`AbortError`||(e instanceof Ie?e.suppressed||j(e.message):j(h(E,e instanceof Error?e.message:t)))}let jn=bn.hasUnsavedChanges||Ft||!!G||Gt,Mn=jn||!!De.trim()||!!K&&!et;(0,c.useEffect)(()=>{Cn.current=te},[te]),(0,c.useEffect)(()=>{Cn.current?.({busy:A||bn.busy,hasUnsavedChanges:Mn})},[A,bn.busy,Mn]),(0,c.useEffect)(()=>()=>{Cn.current?.({busy:!1,hasUnsavedChanges:!1})},[]),(0,c.useEffect)(()=>{wt(null),Et(null),At(Math.max(1,(O?.version??1)-1)),Mt(O?.version??1),O||Ot(!1)},[O?.projectId,O?.version]);let X=G?.snapshot??O,Z=X?.proposals.find(e=>e.id===me)??X?.proposals[0],Nn=i?.sketchUpload??(B.aiEnabled===!1?`soon`:`on`),Pn=i?.refine??(B.aiEnabled===!1?`soon`:`on`),Fn=(i?.billing??(B.billingEnabled===!1?`off`:`on`))===`on`,In=Nn===`on`,Ln=ve(B,E),Rn=ye(B),zn=typeof B.checkoutAvailable==`boolean`?B.checkoutAvailable:B.checkoutEnabled===!0,Bn=[`paidRegenerations`,`chatRefinementsPerProject`,`exportsPerPaidProject`].every(e=>typeof B[e]==`number`&&Number.isInteger(B[e])&&Number(B[e])>=0)?{regenerations:Number(B.paidRegenerations),chat:Number(B.chatRefinementsPerProject),exports:Number(B.exportsPerPaidProject)}:null;(0,c.useEffect)(()=>(pn.current=!0,()=>{pn.current=!1,J.current++}),[]);function Vn(e){let t=Ye();if(!pn.current||e!==J.current||t!==`licensed`)throw new DOMException(`The verified session changed.`,`AbortError`)}async function Hn(e,t){let n=J.current;Vn(n);let r=new Headers(t?.headers).get(`Authorization`);if(!m&&e!==`/session`&&r&&r!==`Bearer `+mn.current)throw new DOMException(`The verified session changed.`,`AbortError`);let i;try{i=await(ee?ee(e,t):fetch(`/v1`+e,t))}catch(t){throw t instanceof DOMException&&t.name===`AbortError`||e===`/config`?t:kn(t instanceof Error?t.message:`Please try again.`,t instanceof TypeError?`network`:`unavailable`,null)}if(e!==`/config`&&Vn(n),!m&&i.status===401&&!e.startsWith(`/account/`))throw Wn(),U(`login`),ze(!0),j(h(E,`Sign in with a verified account to continue.`)),new DOMException(`The verified session expired.`,`AbortError`);return i}function Un(){Qt(null),en.current=null,yn(!1),xn({busy:!1,hasUnsavedChanges:!1}),It(!1),Ht(!1),j(``),M(``),Bt(!1),St(null),rt([]),on([]),cn(void 0),Wt(null),Kt(!1),Jt([]),ot(!1),ft(!1),Oe(``),fe(null),Xt([]),pe(null),Xe(null),Ze(null),Pe(null),Me(null),je(null),tt(null),Je(null),bt(!1)}function Wn(){(O||hn.current)&&Un(),J.current++,mn.current=``,hn.current=void 0,Le(``),Ke(void 0)}async function Q(e,t,n){let r=J.current,i=await Hn(e,{method:n??(t?`POST`:`GET`),headers:{...t?{"Content-Type":`application/json`}:{},...!m&&F?{Authorization:`Bearer `+F}:{}},body:t?JSON.stringify(t):void 0});if(!i.ok){let t=`The service is temporarily unavailable.`,n={};try{let e=await i.json();e&&typeof e==`object`&&!Array.isArray(e)&&(n=e),t=String(n.detail??n.title??n.error??t)}catch{}Vn(r),i.status===401&&(m||(Wn(),e.startsWith(`/account/`)||U(`login`),ze(!0)),t=m?`Your app session needs attention. Sign in again through your app.`:`Sign in with a verified account to continue.`);let a=/^\/projects\/([a-f0-9]{32})\//.exec(e)?.[1];throw!m&&i.status===402&&n.code===`project_quota_exceeded`&&a&&[`operation_cap`,`free_tier_unavailable`,`provider_cost_cap`].includes(String(n.reason))&&typeof n.projectPaid==`boolean`&&typeof n.canPurchase==`boolean`&&(Qt({projectId:a,projectPaid:n.projectPaid,canPurchase:n.canPurchase,reason:String(n.reason)}),n.canPurchase&&!n.projectPaid&&Gn(`paywall`)),kn(t,I(n,i.status),i.status)}let a=i.status===204?null:await i.json();return Vn(r),a}async function Gn(e,t=nn){if(!(m||B.analyticsEnabled!==!0))try{await Hn(`/analytics/events`,{method:`POST`,headers:{"Content-Type":`application/json`,...F?{Authorization:`Bearer `+F}:{}},body:JSON.stringify({eventId:q(),kind:e,consentGranted:t})})}catch{}}function Kn(e){rn(e),Gn(`visit`,e)}(0,c.useEffect)(()=>{C!==void 0&&ce(Ee(C))},[C]),(0,c.useEffect)(()=>{!m&&!un&&(document.documentElement.lang=E,document.documentElement.dir=E===`ar`?`rtl`:`ltr`)},[E,m,un]),(0,c.useEffect)(()=>{let e=!0;return Hn(`/config`).then(e=>e.ok?e.json():Promise.reject()).then(t=>{e&&He(t)}).catch(()=>{}),()=>{e=!1}},[ee]),(0,c.useEffect)(()=>{!m&&st()&&history.replaceState({},``,location.pathname)},[m]),(0,c.useEffect)(()=>{if(!K){$e(``);return}let e=URL.createObjectURL(K);return $e(e),()=>URL.revokeObjectURL(e)},[K]),(0,c.useEffect)(()=>{m&&gn.current!==S&&(J.current++,Un(),gn.current=S)},[S,m]),(0,c.useEffect)(()=>{if(!_n)return;let e=xe(localStorage,_n);if(Je(e),!e||k&&k!==ln.current||O)return;let t=!0;return Q(`/projects/`+e).then(e=>{t&&(Yn(e),D(e.input.isDraft?`measure`:`proposals`))}).catch(e=>{t&&An(e,`Could not resume the project.`)}),()=>{t=!1}},[_n]);function qn(){return a===`room`?Ae(E):Ce(E)}function Jn(){let e=$t.current;if(e!==void 0){if(!/^[a-f0-9]{32}$/i.test(e))throw Error(`The initial project identifier is unavailable.`);return e}return q()}function Yn(e){$t.current=void 0,Zt?.projectId!==e.projectId&&Qt(null),Vn(J.current),St(e.reconciliation),bt(!1),e.input.isDraft||(It(!1),Kt(!1)),e.input.isDraft||Jt([]),fe(e),pe(e.pendingDraft?.input?{...e.pendingDraft.input,isDraft:!1}:e.input.isDraft?k??qn():e.input),yn(f&&(e.pendingDraft?.workflow??e.workflow)===`existing-plan`),e.pendingDraft&&(e.pendingDraft.input&&It(!1),tt(e.pendingDraft.sourceObjectId??null),Oe(e.pendingDraft.brief??``)),he(e.selectedProposalId??e.proposals.find(e=>e.recommended)?.id??`A`),Pe(null),Me(null),je(null),Xe(null),_n&&(Se(localStorage,_n,e.projectId),Je(e.projectId))}async function $(e,t=``){if(!(fn.current||bn.busy)){fn.current=!0,ge(!0),Rt(t),j(``);try{await e()}catch(e){An(e)}finally{fn.current=!1,ge(!1),Rt(``)}}}function Xn(e){Ht(!1),un?ue(`studio`):(ue(e),m||history.pushState({},``,e===`home`?`/`:`/studio`),window.scrollTo(0,0))}function Zn(e=!1){bn.busy||bn.hasUnsavedChanges||(Qt(null),en.current=null,yn(!1),It(!1),e||Ze(null),ot(!1),ft(!1),rt([]),on([]),cn(void 0),Wt(null),Kt(!1),Jt([]),Oe(``),fe(null),Xt([]),pe(qn()),Xe(null),Pe(null),Me(null),je(null),bt(!1),St(null),tt(null),D(`measure`),Xn(`studio`))}async function Qn(){B.mode===`local-demo`?(Xn(`studio`),await $(async()=>{let e=await Q(`/reference?language=`+E);pe(e),It(!1),bt(!1),D(`measure`),M(`Reference example loaded. Review its site-confirmed dimensions before generating.`)})):Zn()}async function $n(e,t){let n=J.current;if(!it||!dt)throw Error(`Review the image permissions and AI disclosure before upload.`);let r=new FormData;r.append(`file`,t),r.append(`rightsAcknowledged`,`true`),r.append(`aiProcessingAcknowledged`,`true`);let i=await Hn(`/projects/${e.projectId}/uploads`,{method:`POST`,headers:!m&&F?{Authorization:`Bearer `+F}:{},body:r});if(!i.ok){let e=`Upload failed.`,t=null;try{let n=await i.json();t=n,e=n.detail??n.title??n.error??e}catch{}throw Vn(n),kn(e,I(typeof t==`object`&&t?t:{},i.status),i.status)}let a=await i.json();return Vn(n),tt(a.upload.id),M(`Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.`),a.upload.id}async function er(e,t=O?.version??0,n=O?.projectId??Jn()){if(e.input){let t=we(e.input);if(t)throw Error(t)}let r=await Q(`/drafts`,{projectId:n,operationId:q(),expectedVersion:t,pendingDraft:{...e,brief:De}});if(r.projectId!==n||r.version!==t+1||r.pendingDraft?.workflow!==e.workflow)throw Error(`Pending work could not be saved by this service. Checkout and generation are stopped; keep this page open.`);return r}function tr(e){Yn(e),D(`measure`)}async function nr(){k&&await $(async()=>{let e=we(k);if(e)throw Error(e);if(K&&!et&&(!it||!dt))throw Error(`Review the image permissions and AI disclosure, or remove the local image.`);if(!pt)throw Error(`Confirm the measured dimensions and bearings before generating.`);let t={...k,isDraft:!1,language:E},n=await Q(`/footprints/reconcile`,t.footprint);if(St(n),n.status!==`Unique`)throw Error(n.findings.map(e=>e.message).join(` `)||`The footprint needs another confirmed measurement.`);let r=O,i=et;m||(r=await er({workflow:`manual`,input:t,sourceObjectId:i??void 0},r?.version??0,r?.projectId??Jn()),Yn(r),St(n),K&&!i&&(i=await $n(r,K),r=await er({workflow:`manual`,input:t,sourceObjectId:i},r.version,r.projectId),Yn(r),St(n)));let a=r?await Q(`/projects/${r.projectId}/edits`,{expectedVersion:r.version,operationId:q(),edit:{replaceInput:t,note:`Confirmed measurements`}}):await Q(`/projects`,{projectId:Jn(),operationId:q(),input:t});Yn(a),Qt(null),D(a.input.isDraft?`measure`:`proposals`),K&&!i&&await $n(a,K)},`generate`)}async function rr(){De.trim()&&O&&Pn===`on`&&await $(async()=>{let e=await Q(`/projects/${O.projectId}/chat`,{expectedVersion:O.version,operationId:q(),message:De});Xe(e.preview),M(e.reply),Oe(``),D(`refine`)})}async function ir(e){O&&!G&&await $(async()=>{Yn(await Q(`/projects/${O.projectId}/edits`,{expectedVersion:O.version,operationId:q(),edit:{edgeLengths:e,note:`Adjusted wall lengths`}})),D(`proposals`)},`adjust`)}async function ar(){if(!Te(G,O)||!G||!O)return;let e=G;await $(async()=>{Yn(await Q(`/projects/${O.projectId}/edits`,{expectedVersion:e.expectedVersion,operationId:q(),edit:e.edit})),M(`Preview applied as a new saved version.`)})}async function or(e){O&&!G&&await $(async()=>{Yn(await Q(`/projects/${O.projectId}/edits`,{expectedVersion:O.version,operationId:q(),edit:{selectProposalId:e.id,note:`Selected layout `+e.id}}))},`choose`)}async function sr(){O&&(Dt?Ot(!1):await $(async()=>{let e=await Q(`/projects/${O.projectId}/history`);wt(e),Ot(!0)}))}async function cr(){O&&Ct?.some(e=>e.version===kt)&&Ct.some(e=>e.version===jt)&&await $(async()=>{Et(await Q(`/projects/${O.projectId}/compare?left=${kt}&right=${jt}`))})}async function lr(e=kt){O&&e!==O.version&&!G&&Ct?.some(t=>t.version===e)&&await $(async()=>{Yn(await Q(`/projects/${O.projectId}/undo`,{expectedVersion:O.version,targetVersion:e,operationId:q()})),M(h(E,`Saved as a new version. Earlier versions are unchanged.`))})}function ur(){if(!Z)return null;let e=A||!!G,t=[[`pdf`,`To print and share`],[`dxf`,`Editable, for your architect`],[`svg`,`For the web and presentations`]],n=G?`Apply or discard the preview first.`:Z.hasRequiredConflicts?`This layout needs review before a 3D model can be made.`:``;return(0,u.jsxs)(`section`,{className:`download-panel`,"aria-labelledby":`bim-download-title`,children:[(0,u.jsx)(`h3`,{id:`bim-download-title`,children:h(E,`Download`)}),typeof B.retentionDays==`number`&&(0,u.jsx)(`p`,{className:`retention`,children:y(E,`Files are kept with your project for {days} days.`,Number(B.retentionDays),{days:Number(B.retentionDays)})}),!P&&(0,u.jsx)(`button`,{className:`outline full`,disabled:e,onClick:hr,children:Dn(`drawings`,h(E,`Prepare drawings`))}),(0,u.jsxs)(`ul`,{children:[t.map(([e,t])=>{let n=!!P?.files[e];return(0,u.jsxs)(`li`,{children:[(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`strong`,{children:e.toUpperCase()}),(0,u.jsx)(`small`,{children:h(E,t)})]}),n?(0,u.jsxs)(`button`,{className:`outline`,disabled:A,onClick:()=>_r(e,P),children:[h(E,`Download`),` ↓`]}):(0,u.jsx)(`small`,{className:`unavailable`,children:h(E,P?`Not available on this service.`:`Prepare drawings first.`)})]},e)}),(0,u.jsxs)(`li`,{children:[(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`strong`,{children:h(E,`3D model (IFC)`)}),(0,u.jsx)(`small`,{children:h(E,`For BIM and CAD software`)})]}),Ne?Object.keys(Ne.files).map(e=>(0,u.jsxs)(`button`,{className:`outline`,disabled:A,onClick:()=>_r(e),children:[e.toUpperCase(),` ↓`]},e)):(0,u.jsx)(`button`,{className:`outline`,disabled:e||Z.hasRequiredConflicts,"aria-describedby":n?`bim-3d-reason`:void 0,onClick:gr,children:Dn(`export`,h(E,`Prepare 3D model`))}),!Ne&&n&&(0,u.jsx)(`small`,{id:`bim-3d-reason`,className:`unavailable`,children:h(E,n)})]})]})]})}function dr(){return(0,u.jsxs)(`section`,{className:`project-price`,children:[(0,u.jsx)(`h3`,{children:h(E,`Project billing`)}),(0,u.jsx)(`p`,{children:vn?{en:`This workflow produces reviewed 2D files, not automatic BIM reconstruction. Saves use the configured project generation allowance; check the quote and limits before purchase.`,de:`Dieser Ablauf erstellt geprüfte 2D-Dateien, keine automatische BIM-Rekonstruktion. Jedes Speichern zählt zum Kontingent des Projekts; prüfen Sie Angebot und Limits vor dem Kauf.`,fr:`Ce parcours produit des fichiers 2D vérifiés, sans reconstruction BIM automatique. Chaque enregistrement est décompté du quota de génération du projet ; vérifiez le devis et les limites avant l’achat.`,ar:`ينتج هذا المسار ملفات ثنائية الأبعاد بعد مراجعتها، ولا يعيد بناء نموذج BIM تلقائياً. تُحتسب كل عملية حفظ من حصة الإنشاء المحددة للمشروع؛ راجع عرض السعر والحدود قبل الشراء.`}[E]:h(E,`One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service.`)}),Bn?(0,u.jsx)(`p`,{className:`quota-disclosure`,children:b(E,Bn)}):(0,u.jsx)(`p`,{children:h(E,`Project usage limits are unavailable. Checkout stays disabled until they can be shown.`)}),Zt!==null&&Zt.projectId===O?.projectId&&Zt.projectPaid?(0,u.jsx)(`p`,{role:`status`,children:h(E,`This paid project reached its configured limit. Another purchase will not extend its allowance.`)}):N?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`strong`,{children:ve({priceMinorUnits:N.priceMinorUnits,currency:N.currency},E)}),(0,u.jsx)(`p`,{children:g(E,`Quote valid until {date}.`,{date:new Date(N.expiresAtUtc).toLocaleString(_(E))})}),(0,u.jsx)(`button`,{className:`ink full`,disabled:A||!zn||!Bn,onClick:pr,children:h(E,`Continue to Stripe`)}),(0,u.jsx)(`button`,{className:`textbtn`,disabled:A,onClick:fr,children:h(E,`Refresh project quote`)})]}):(0,u.jsx)(`button`,{className:`outline full`,disabled:A||!zn,onClick:fr,children:h(E,`View project price`)}),!zn&&(0,u.jsx)(`small`,{children:h(E,`Purchases are not enabled in this environment.`)}),(0,u.jsx)(`small`,{children:h(E,`A checkout return is not proof of payment; downloads use the service's verified entitlement.`)})]})}async function fr(){O&&!m&&Fn&&await $(async()=>{let e=await Q(`/account/quote`,{projectId:O.projectId});if(e.projectId!==O.projectId||!e.quoteId||ve({priceMinorUnits:e.priceMinorUnits,currency:e.currency},E)===null||!Number.isFinite(Date.parse(e.expiresAtUtc)))throw Error(`A valid project quote was not supplied.`);je(e)})}async function pr(){O&&N&&!m&&Fn&&zn&&Bn&&(Zt?.projectId!==O.projectId||!Zt.projectPaid)&&await $(async()=>{let e=N;if(K&&!et)throw Error(`Scan and save the selected image before checkout so it can be restored after payment.`);if(e.projectId!==O.projectId||Date.parse(e.expiresAtUtc)<=Date.now())throw Error(`This quote expired. Refresh the project quote before purchase.`);let t=O;if(vn){let e=en.current;if(!e)throw Error(`The existing-plan editor is not ready to preserve your latest work. Checkout is stopped; keep this page open.`);t=await e()??t}else k&&(t=await er({workflow:`manual`,input:k,sourceObjectId:et??void 0},t.version,t.projectId),Yn(t));if(Date.parse(e.expiresAtUtc)<=Date.now())throw Error(`This quote expired. Refresh the project quote before purchase.`);let n=await Q(`/account/checkout`,{projectId:t.projectId,requestId:q(),quoteId:e.quoteId}),r=new URL(n.url);if(r.protocol!==`https:`||r.hostname!==`checkout.stripe.com`||r.username||r.password)throw Error(`The checkout address was not accepted.`);window.location.assign(r.href)})}function mr(){Un(),J.current++,mn.current=``,hn.current=void 0,j(``),Le(``),Ke(void 0),Ve(``),R(``),W(``),M(`Signed out. Your saved project stays private and can resume after sign-in.`)}async function hr(){O&&Z&&!G&&await $(async()=>{Me(await Q(`/projects/${O.projectId}/drawings`,{expectedVersion:O.version,operationId:q(),proposalId:Z.id})),M(`2D concept drawings prepared. This does not spend the BIM model export.`)},`drawings`)}async function gr(){O&&Z&&!G&&await $(async()=>{let e=await Q(`/projects/${O.projectId}/exports`,{expectedVersion:O.version,operationId:q(),proposalId:Z.id});Pe(e),D(`download`)},`export`)}async function _r(e,t=Ne){t&&O&&await $(async()=>{let n=J.current,r=await Hn(`/projects/${O.projectId}/objects/${t.files[e].id}`,{headers:!m&&F?{Authorization:`Bearer `+F}:{}});if(!r.ok)throw kn(`Download unavailable.`,I({},r.status),r.status);let i=await r.blob();Vn(n);let a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`${at[ne].downloadPrefix}-${t.proposalId}-v${t.version}.${e}`,o.click(),setTimeout(()=>URL.revokeObjectURL(a),1e3)})}async function vr(e){bn.busy||fn.current||!In||(![`image/png`,`image/jpeg`,`image/webp`].includes(e.type)||e.size>8388608?j(h(E,`Choose a PNG, JPEG or WebP up to 8 MB.`)):(Ze(e),tt(null),ot(!1),ft(!1),O?(D(`measure`),M(`Local preview only. Review permissions and AI disclosure before uploading the image.`)):(k||Zn(!0),D(`measure`),M(`Local sketch preview only. Review permissions, then scan and store it privately before asking AI to read observations. No measured footprint is required for that step.`))))}async function yr(){jn||await $(async()=>{Yn(await Q(`/drafts`,{projectId:Jn(),operationId:q()})),yn(!0),D(`measure`),Xn(`studio`)})}function br(){return(0,u.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,u.jsx)(`h3`,{children:h(E,`Before image upload`)}),(0,u.jsx)(`p`,{children:h(E,`The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.`)}),(0,u.jsxs)(`label`,{className:`confirmation`,children:[(0,u.jsx)(`input`,{type:`checkbox`,disabled:A,checked:it,onChange:e=>ot(e.target.checked)}),h(E,`I have permission to use this image for this project.`)]}),(0,u.jsxs)(`label`,{className:`confirmation`,children:[(0,u.jsx)(`input`,{type:`checkbox`,disabled:A,checked:dt,onChange:e=>ft(e.target.checked)}),h(E,`I understand the AI image-processing disclosure above.`)]}),(0,u.jsxs)(`label`,{className:`field`,children:[h(E,`What would you like to create?`),(0,u.jsx)(`textarea`,{"aria-label":h(E,`Sketch brief`),disabled:A,value:De,maxLength:8e3,placeholder:h(E,`Room wishes, entrance and view, fixed walls, country…`),onChange:e=>Oe(e.target.value)})]}),(0,u.jsx)(`button`,{className:`ink`,disabled:A||!it||!dt,onClick:xr,children:h(E,`Upload for scanning`)}),(0,u.jsx)(`button`,{className:`quiet`,disabled:A,onClick:()=>{Ze(null),ot(!1),ft(!1)},children:h(E,`Remove local image`)})]})}async function xr(){K&&In&&await $(async()=>{let e=O;e||(e=await Q(`/drafts`,{projectId:Jn(),operationId:q()}),Yn(e),D(`measure`)),await $n(e,K)})}async function Sr(){O&&et&&In&&await $(async()=>{let e=await Q(`/projects/${O.projectId}/read-sketch`,{expectedVersion:O.version,operationId:q(),objectId:et,intent:De||`Read the sketch measurements and identify uncertainties.`});on(e.observations),cn(e.values),Wt(e.candidate??null),Kt(!1),rt(e.questions),M(`Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements.`),D(`measure`)})}async function Cr(){O&&await $(async()=>{let e=await Q(`/projects/${O.projectId}`,void 0,`DELETE`);fe(null),Xt([]),pe(null),Pe(null),Me(null),je(null),Xe(null),It(!1),Ze(null),tt(null),rt([]),on([]),cn(void 0),Wt(null),Kt(!1),Jt([]),St(null),_n&&Se(localStorage,_n,null),Je(null),M(e.dataErased===!0?h(E,`Service reports project data erased.`)+` `+h(E,e.accountingPending?`Accounting cleanup is still pending.`:`Accounting cleanup completed.`):h(E,`Deletion accepted; data erasure is still pending. The service will continue cleanup.`))})}async function wr(){!m&&F&&await $(async()=>{let e=await Q(`/account/data`,void 0,`DELETE`);nn&&(await Gn(`visit`,!1),rn(!1)),Un(),J.current++,_n&&Se(localStorage,_n,null),D(`measure`),M([h(E,e.dataErased?`Service reports project content erased.`:`Content deletion accepted; erasure is still pending.`),...e.accountingPending?[h(E,`Accounting cleanup is still pending.`)]:[],h(E,`Account identity, billing and required anti-abuse metadata are retained.`)].join(` `))})}async function Tr(){await $(async()=>{let e=J.current;if(H===`signup`){await Q(`/account/signup`,{email:Be}),M(`Check your email for the verification link. No session is created until ownership is verified.`),U(`verify`),Ve(``);return}let t=await Q(H===`verify`?`/account/verification/complete`:`/account/login`,H===`verify`?{token:We,password:z}:{email:Be,password:z});if(Ve(``),W(``),!t.token){U(`login`),M(`Email verified. Sign in to continue.`);return}let n=await Hn(`/session`,{headers:{Authorization:`Bearer `+t.token}});if(!n.ok)throw Error(`The verified workspace could not be loaded.`);let r=await n.json();if(Vn(e),typeof r.workspaceKey!=`string`||!r.workspaceKey||r.workspaceKey.length>512)throw Error(`The verified workspace could not be loaded.`);hn.current&&hn.current!==r.workspaceKey&&Un(),J.current++,mn.current=t.token,hn.current=r.workspaceKey,Le(t.token),Ke(r.workspaceKey),ze(!1),M(`Signed in. This session stays in memory only.`)})}function Er(){Ut?.input&&(It(!0),pe({...k??qn(),footprint:Ut.input}),St(Ut.reconciliation),Jt(Ut.input.edges.flatMap((e,t)=>[`footprint.edges[${t}].lengthM`,...e.bearingDegrees==null?[]:[`footprint.edges[${t}].bearingDegrees`]])),Kt(!0),bt(!1),Xe(null),D(`measure`),M(`Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption.`))}function Dr(e){Ze(null),$e(``),tt(e),D(`measure`),M(`Saved sanitized sketch selected. Reading it with AI is a separate explicit action.`)}async function Or(e,t){O&&await $(async()=>{let n=J.current,r=await Hn(`/projects/${O.projectId}/objects/${t.objectId}`,{headers:!m&&F?{Authorization:`Bearer `+F}:{}});if(!r.ok)throw kn(`Saved file is unavailable or expired.`,I({},r.status),r.status);let i=await r.blob();Vn(n);let a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`${at[ne].downloadPrefix}-${e.kind}${e.version?`-v`+e.version:``}.${t.format}`,o.click(),setTimeout(()=>URL.revokeObjectURL(a),1e3)})}(0,c.useEffect)(()=>{if(!O)return;let e=!0;return Q(`/projects/${O.projectId}/artifacts`).then(t=>{e&&Xt(Array.isArray(t)?t:[])}).catch(()=>{e&&Xt([])}),()=>{e=!1}},[O?.projectId,O?.version,et]);let kr=de===`measure`?xt?.values:Z?.values??X?.reconciliation.values??xt?.values,Ar=e=>a===`room`&&e===`measure`?h(E,`Your room`):a===`room`&&e===`proposals`?h(E,`Layouts`):Y[e],jr=Z?.findings.reduce((e,t)=>(e[t.status]=(e[t.status]??0)+1,e),{})??{},Mr=F&&(0,u.jsxs)(`div`,{className:`account-options`,children:[(0,u.jsx)(`button`,{className:`quiet`,"aria-label":h(E,`Account options`),"aria-expanded":Vt,"aria-controls":`bim-account-actions`,disabled:A,onClick:()=>Ht(!Vt),children:`⋯`}),Vt&&(0,u.jsxs)(`div`,{id:`bim-account-actions`,role:`group`,"aria-label":h(E,`Account actions`),className:`account-actions`,onKeyDown:e=>{e.key===`Escape`&&(Ht(!1),e.currentTarget.parentElement?.querySelector(`button`)?.focus())},children:[(0,u.jsx)(`button`,{className:`quiet full`,disabled:A,onClick:()=>{Ht(!1),Bt(!0)},children:h(E,`Delete project content`)}),(0,u.jsx)(`button`,{className:`quiet full`,disabled:A,onClick:mr,children:h(E,`Sign out`)})]})]});return(0,u.jsxs)(`div`,{className:`bim-studio`+(un?` bim-chrome-host`:``),"data-bim-theme":n,dir:E===`ar`?`rtl`:`ltr`,children:[!m&&!un&&(0,u.jsxs)(`header`,{children:[(0,u.jsx)(`a`,{className:`logo`,href:`/`,onClick:e=>{e.preventDefault(),Xn(`home`)},children:(0,u.jsx)(ct,{})}),(0,u.jsxs)(`nav`,{children:[Fn&&(0,u.jsx)(`a`,{href:`/#pricing`,onClick:()=>le!==`home`&&Xn(`home`),children:Y.pricing}),(0,u.jsx)(`select`,{"aria-label":Y.language,value:E,onChange:e=>ce(e.target.value),children:[`en`,`de`,`fr`,`ar`].map(e=>(0,u.jsx)(`option`,{value:e,children:e.toUpperCase()},e))}),(0,u.jsx)(`button`,{className:`quiet account-action`,disabled:A,onClick:()=>F?Xn(`studio`):ze(!0),children:F?Y.account:Y.signin}),Mr,(0,u.jsxs)(`button`,{className:`ink`,onClick:()=>Xn(`studio`),children:[Y.studio,(0,u.jsx)(lt,{})]})]})]}),le===`home`?(0,u.jsxs)(`main`,{className:`landing`,children:[(0,u.jsxs)(`section`,{className:`hero`,children:[(0,u.jsxs)(`span`,{className:`eyebrow`,children:[Y.eyebrow,` `,(0,u.jsx)(`span`,{children:`01 — VISION`})]}),(0,u.jsx)(`h1`,{children:Y.hero}),(0,u.jsx)(`p`,{children:Y.intro}),(0,u.jsxs)(`div`,{className:`actions`,children:[(0,u.jsxs)(`button`,{className:`ink large`,onClick:()=>Xn(`studio`),children:[Y.start,(0,u.jsx)(lt,{})]}),B.mode===`local-demo`?(0,u.jsxs)(`button`,{className:`textbtn`,onClick:Qn,children:[Y.try,` →`]}):(0,u.jsxs)(`button`,{className:`textbtn`,onClick:()=>Zn(),children:[h(E,`Enter measurements`),` →`]})]}),(0,u.jsxs)(`div`,{className:`proof`,children:[(0,u.jsx)(`span`,{className:`dot`}),h(E,`Your measurements. Checked geometry. One shared engine.`)]})]}),(0,u.jsxs)(`section`,{className:`transformation`,children:[(0,u.jsxs)(`article`,{className:`sketch-card`,children:[(0,u.jsxs)(`div`,{className:`card-title`,children:[(0,u.jsx)(`span`,{children:`01 / SKETCH`}),(0,u.jsx)(`span`,{children:h(E,`THE STARTING POINT`)})]}),(0,u.jsx)(ut,{language:E}),(0,u.jsx)(`h3`,{children:Y.before})]}),(0,u.jsx)(`div`,{className:`flow-arrow`,children:`→`}),(0,u.jsxs)(`article`,{className:`plan-card`,children:[(0,u.jsxs)(`div`,{className:`card-title`,children:[(0,u.jsx)(`span`,{children:`02 / POSSIBILITIES`}),(0,u.jsx)(`span`,{className:`teal`,children:h(E,`CHECKED BY THE ENGINE`)})]}),(0,u.jsx)(`div`,{className:`mini-plan`,children:(0,u.jsx)(`img`,{src:`/reference-plan.svg`,alt:h(E,`Engine-generated reference layout A with checked dimensions`)})}),(0,u.jsx)(`h3`,{children:Y.after}),B.mode===`local-demo`?(0,u.jsxs)(`button`,{className:`textbtn`,onClick:Qn,children:[Y.try,` ↗`]}):(0,u.jsxs)(`button`,{className:`textbtn`,onClick:()=>Zn(),children:[h(E,`Enter measurements`),` ↗`]})]})]}),(0,u.jsx)(`section`,{className:`process`,children:Y.steps.map((e,t)=>(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[`0`,t+1]}),(0,u.jsx)(`h3`,{children:e}),(0,u.jsx)(`p`,{children:[`A drawing or photo, with dimensions.`,`Confirm dimensions and fixed constraints.`,`Compare different ways to use your space.`,`Take the chosen concept into your BIM workflow.`][t]})]},e))}),(0,u.jsxs)(`section`,{className:`use-case-links`,children:[(0,u.jsx)(`h2`,{children:h(E,`Plan your next space`)}),(0,u.jsxs)(`a`,{href:`/apartment-layout/`,children:[h(E,`Apartment layout`),` ↗`]}),(0,u.jsxs)(`a`,{href:`/house-extension/`,children:[h(E,`House extension`),` ↗`]}),(0,u.jsxs)(`a`,{href:`/renovation/`,children:[h(E,`Renovation`),` ↗`]})]}),Fn&&(0,u.jsxs)(`section`,{className:`price-section`,id:`pricing`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:h(E,`A CLEAR START`)}),(0,u.jsxs)(`h2`,{children:[h(E,`A small project.`),(0,u.jsx)(`br`,{}),h(E,`A useful next step.`)]}),(0,u.jsx)(`p`,{children:ne===`planlynq`?{en:`Your PlanLynq account uses the allowances confirmed by this service.`,de:`Für Ihr PlanLynq-Konto gelten die vom Dienst bestätigten Nutzungslimits.`,fr:`Votre compte PlanLynq utilise les quotas confirmés par ce service.`,ar:`يستخدم حسابك في PlanLynq الحصص التي تؤكّدها هذه الخدمة.`}[E]:h(E,`Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits.`)})]}),(0,u.jsxs)(`article`,{className:`price-card`,children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:at[ne].title.toUpperCase()}),(0,u.jsx)(`h2`,{children:Ln??h(E,`Pricing opens with the service`)}),(0,u.jsx)(`small`,{children:h(E,`Base pricing. Your project quote is shown before purchase.`)}),(0,u.jsx)(`p`,{children:Rn?ae(E,Rn):h(E,`The local preview does not accept payments.`)}),(0,u.jsx)(`p`,{children:h(E,`One project includes proposals, refinements and its model export.`)}),Bn&&(0,u.jsx)(`p`,{children:b(E,Bn)}),(0,u.jsxs)(`button`,{className:`ink`,onClick:()=>Xn(`studio`),children:[Y.start,(0,u.jsx)(lt,{})]})]})]}),(0,u.jsxs)(`footer`,{children:[(0,u.jsx)(ct,{}),(0,u.jsx)(`span`,{children:Y.disclaimer})]})]}):(0,u.jsxs)(`main`,{className:`studio`,children:[(0,u.jsxs)(`aside`,{className:`rail`,children:[(0,u.jsx)(`span`,{className:`eyebrow`,children:h(E,`WORKSPACE`)}),(0,u.jsx)(`h2`,{children:Y.workspace}),(0,u.jsxs)(`span`,{className:`project-status`,children:[(0,u.jsx)(`span`,{className:`dot`}),B.mode===`local-demo`?h(E,`Local reference preview`):h(E,`Private project`)]}),(0,u.jsx)(`div`,{className:`stage-nav`,children:[`measure`,`proposals`,`refine`,`download`].filter(e=>e!==`refine`||Pn===`on`&&!Tn).map((e,t)=>(0,u.jsxs)(`button`,{className:de===e?`active`:``,"aria-current":de===e?`step`:void 0,disabled:A,onClick:()=>D(e),children:[(0,u.jsxs)(`span`,{children:[`0`,t+1]}),Ar(e)]},e))}),(0,u.jsxs)(`div`,{className:`rail-bottom`,children:[(0,u.jsx)(`p`,{children:Y.privacy}),typeof B.retentionDays==`number`&&(0,u.jsx)(`p`,{children:y(E,`Files are kept for {days} days.`,Number(B.retentionDays),{days:Number(B.retentionDays)})}),O&&(0,u.jsx)(`button`,{className:`quiet danger`,onClick:Cr,children:Y.delete})]})]}),(0,u.jsxs)(`section`,{className:`workspace`,"aria-busy":A||void 0,children:[En&&(0,u.jsx)(`p`,{className:`bim-sr-only`,role:`status`,"aria-live":`polite`,children:A?Y.generating:``}),(0,u.jsxs)(`div`,{className:`workspace-heading`,children:[(0,u.jsxs)(`div`,{children:[Tn?O&&(0,u.jsx)(`span`,{className:`saved-indicator`,role:`status`,children:g(E,`Saved · v{version}`,{version:O.version})}):(0,u.jsx)(`span`,{className:`eyebrow`,children:O?g(E,`VERSION {version} / {id}`,{version:O.version,id:O.projectId.slice(0,8)}):h(E,`YOUR NEXT SPACE`)}),(0,u.jsx)(`h1`,{children:Ar(de)})]}),(0,u.jsxs)(`div`,{className:`workspace-controls`,children:[un&&!m&&(F?Mr:re&&(0,u.jsx)(`button`,{className:`quiet account-action`,disabled:A,onClick:()=>ze(!0),children:Y.signin})),m&&(0,u.jsx)(`select`,{"aria-label":Y.language,value:E,onChange:e=>ce(e.target.value),children:[`en`,`de`,`fr`,`ar`].map(e=>(0,u.jsx)(`option`,{value:e,children:e.toUpperCase()},e))}),(0,u.jsx)(`button`,{className:`quiet`,disabled:A,onClick:()=>Zn(),children:h(E,`New project`)}),O&&(0,u.jsx)(`button`,{className:`quiet compact-delete`,"aria-label":h(E,`Delete current project`),disabled:A,onClick:Cr,children:Y.delete}),O&&(0,u.jsxs)(`button`,{className:`outline`,disabled:A||!!G||O.version<2,onClick:()=>$(async()=>{Yn(await Q(`/projects/${O.projectId}/undo`,{expectedVersion:O.version,targetVersion:O.version-1,operationId:q()}))}),children:[`↶ `,Y.undo]})]})]}),be&&(0,u.jsxs)(`div`,{role:`alert`,className:`alert`,children:[ne===`karamentreprises`?be.replace(/Polycyphers/gi,`Karamentreprises`):be,(0,u.jsx)(`button`,{"aria-label":Y.close,onClick:()=>j(``),children:`×`})]}),ke&&(0,u.jsxs)(`div`,{role:`status`,className:`notice`,children:[h(E,ke),(0,u.jsx)(`button`,{"aria-label":Y.close,onClick:()=>M(``),children:`×`})]}),G&&(0,u.jsx)(`section`,{className:`notice preview-banner`,role:`status`,children:(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`strong`,{children:h(E,`Unsaved edit preview`)}),(0,u.jsx)(`p`,{children:g(E,`Review the recomputed plan, schedule and rule findings below. Your saved version {version} is unchanged.`,{version:O?.version})}),(0,u.jsx)(`button`,{className:`ink`,disabled:A||!Te(G,O),onClick:ar,children:h(E,`Apply as new version`)}),(0,u.jsx)(`button`,{className:`outline`,disabled:A,onClick:()=>Xe(null),children:h(E,`Discard preview`)})]})}),!O&&!k?(0,u.jsxs)(`div`,{className:`empty`,children:[(0,u.jsx)(`span`,{className:`empty-icon`,children:`⌑`}),(0,u.jsx)(`h2`,{children:Y.empty}),(0,u.jsx)(`p`,{children:In?Y.emptyBody:h(E,`Enter your measured walls. The engine checks every dimension.`)}),(0,u.jsx)(`div`,{className:`actions`,children:In?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`button`,{className:`ink large`,disabled:A,onClick:()=>dn.current?.click(),children:[Y.upload,(0,u.jsx)(lt,{})]}),(0,u.jsx)(`button`,{className:`outline`,disabled:A,onClick:()=>Zn(),children:h(E,`Enter measurements`)})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`button`,{className:`ink large`,disabled:A,onClick:()=>Zn(),children:[h(E,`Enter measurements`),(0,u.jsx)(lt,{})]}),Nn===`soon`&&(0,u.jsx)(ht,{language:E,label:`Upload a sketch · coming soon`,reason:`Sketch reading is not available yet. Enter your measurements instead.`})]})}),qe&&(0,u.jsx)(`button`,{className:`outline`,disabled:A,onClick:()=>$(async()=>{let e=await Q(`/projects/`+qe);Yn(e),D(e.input.isDraft?`measure`:`proposals`)}),children:h(E,`Resume saved project`)}),B.mode===`local-demo`&&(0,u.jsx)(`button`,{className:`textbtn`,disabled:A,onClick:Qn,children:Y.try})]}):vn?(0,u.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,u.jsx)(`h2`,{children:{en:`Review an existing plan`,de:`Bestehenden Plan prüfen`,fr:`Vérifier un plan existant`,ar:`مراجعة مخطط قائم`}[E]}),(0,u.jsx)(`p`,{children:{en:`Preserve the supplied geometry. Image observations never become confirmed metric dimensions automatically.`,de:`Die vorgegebene Geometrie bleibt erhalten. Bildbeobachtungen werden nie automatisch zu bestätigten Maßen in Metern.`,fr:`Reprendre la géométrie fournie. Les observations tirées d’une image ne deviennent jamais automatiquement des cotes confirmées.`,ar:`يُحافَظ على الشكل الهندسي المقدَّم. ولا تتحول ملاحظات الصورة تلقائياً أبداً إلى أبعاد مترية مؤكدة.`}[E]}),In?(0,u.jsx)(`button`,{className:`outline`,disabled:A||bn.busy,onClick:()=>dn.current?.click(),children:Y.upload}):Nn===`soon`&&(0,u.jsx)(ht,{language:E,label:`Upload a sketch · coming soon`,reason:`Sketch reading is not available yet. Enter your measurements instead.`}),Qe&&(0,u.jsx)(`img`,{src:Qe,alt:h(E,`Local source image preview`),className:`source-preview`}),K&&!et&&br()]}):de===`measure`&&k?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(vt,{progress:En&&A&&Lt===`generate`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{className:`spinner`,"aria-hidden":`true`}),Y.generating]}):void 0,flow:a,language:E,input:k,setInput:pe,onChange:e=>{It(!0),bt(!1),Xe(null),St(t=>e===`footprint.diagonals`&&t?{status:`Unvalidated`,findings:[],suggestedDiagonal:t.suggestedDiagonal}:null),e&&Jt(t=>t.filter(t=>t!==e))},estimatedFields:qt,confirmed:pt,setConfirmed:bt,onGenerate:nr,busy:A,onUpload:()=>dn.current?.click(),uploads:Nn,imageUrl:Qe,geometry:xt}),K&&!et&&br(),et&&In&&(0,u.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,u.jsx)(`p`,{children:h(E,`Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.`)}),(0,u.jsxs)(`label`,{className:`field`,children:[h(E,`What should the sketch reader focus on?`),(0,u.jsx)(`textarea`,{"aria-label":h(E,`Saved sketch brief`),disabled:A||bn.busy,value:De,maxLength:8e3,onChange:e=>Oe(e.target.value)})]}),(0,u.jsx)(`button`,{className:`outline`,disabled:A,onClick:Sr,children:h(E,`Read saved sketch with AI · observations only`)})]}),Ut&&(0,u.jsxs)(`section`,{className:`paper candidate-panel`,children:[(0,u.jsx)(`h3`,{children:h(E,`Recognized outline · estimated`)}),(0,u.jsx)(`p`,{children:Ut.input?y(E,`{count} linked boundary edges · geometry {status}`,Ut.input.edges.length,{count:Ut.input.edges.length,status:oe(E,Ut.status)}):h(E,`The reader did not return a complete, valid outline. Enter or correct measurements manually.`)}),(0,u.jsx)(`p`,{children:h(E,`Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review.`)}),(0,u.jsx)(`button`,{className:`outline`,disabled:A||!Ut.input||Gt,onClick:Er,children:h(E,`Preview recognized outline`)}),Gt&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:h(E,`Local estimated preview only. The saved project is unchanged.`)}),(0,u.jsx)(yt,{candidate:Ut,language:E})]}),(0,u.jsx)(_t,{report:Ut.values,language:E})]}),(an.length>0||nt.length>0)&&(0,u.jsxs)(`article`,{className:`paper findings`,children:[(0,u.jsx)(`h3`,{children:h(E,`Sketch observations to confirm`)}),(0,u.jsx)(`p`,{children:h(E,`AI readings are estimated and unconfirmed. Compare them with your image and site measurements; enter the reviewed values in the footprint form. No value is applied automatically.`)}),an.map((e,t)=>(0,u.jsxs)(`section`,{children:[(0,u.jsxs)(`strong`,{children:[e.kind,e.edgeId?` · `+e.edgeId:``]}),e.value!=null&&(0,u.jsxs)(`p`,{children:[e.value,` `,e.unit??h(E,`unit unknown`),` `,(0,u.jsx)(`span`,{className:`value-tag origin-estimated`,children:h(E,`estimated · unconfirmed`)})]}),(0,u.jsx)(`p`,{children:e.evidence})]},t)),nt.map((e,t)=>(0,u.jsx)(`p`,{children:e},t)),sn&&(0,u.jsx)(_t,{report:sn,language:E})]})]}):Z?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`metrics`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[Y.area,` `,(0,u.jsx)(gt,{language:E,report:kr,path:`centerlineAreaM2`})]}),(0,u.jsxs)(`strong`,{children:[x(E,Z.centerlineAreaM2,2),(0,u.jsx)(`small`,{children:ie(E,`m²`)})]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[Y.net,` `,(0,u.jsx)(gt,{language:E,report:kr,path:`netAreaM2`})]}),(0,u.jsxs)(`strong`,{children:[x(E,Z.netAreaM2,2),(0,u.jsx)(`small`,{children:ie(E,`m²`)})]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`span`,{children:[Y.perimeter,` `,(0,u.jsx)(gt,{language:E,report:kr,path:`perimeterM`})]}),(0,u.jsxs)(`strong`,{children:[x(E,X?.reconciliation.solutions[0]?.perimeterM,2),(0,u.jsx)(`small`,{children:ie(E,`m`)})]})]}),(0,u.jsxs)(`div`,{className:`metric-note`,children:[Z.hasRequiredConflicts?Y.warning:h(E,`Required layout checks passed`),(0,u.jsx)(`span`,{children:h(E,`Reference sources remain visible below.`)})]})]}),(0,u.jsxs)(`div`,{className:`drawing-layout`,children:[Tn&&Nt?(0,u.jsx)(`div`,{className:`compare-grid`,role:`group`,"aria-label":h(E,`Compare side by side`),children:X?.proposals.map(e=>(0,u.jsxs)(`figure`,{className:`paper compare-card`+(e.id===Z.id?` selected`:``),children:[(0,u.jsx)(`div`,{className:`engine-svg`,dangerouslySetInnerHTML:{__html:l.default.sanitize(e.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}),(0,u.jsxs)(`figcaption`,{children:[(0,u.jsx)(`strong`,{children:g(E,`Layout {id}`,{id:e.id})}),` · `,w(E,x(E,e.netAreaM2,2),`m²`),` `,(0,u.jsx)(`span`,{children:e.tradeOffs[0]})]})]},e.id))}):(0,u.jsxs)(`article`,{className:`drawing paper`,children:[(0,u.jsxs)(`div`,{className:`drawing-top`,children:[(0,u.jsx)(`span`,{children:g(E,`Layout {id}`,{id:Z.id})}),(0,u.jsx)(`span`,{children:G?h(E,`Edit preview`):h(E,`Engine-checked concept`)}),(0,u.jsx)(`span`,{children:h(E,`METRES / CONCEPT`)})]}),(0,u.jsx)(`div`,{className:`engine-svg`,dangerouslySetInnerHTML:{__html:l.default.sanitize(Z.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}),(0,u.jsxs)(`div`,{className:`drawing-bottom`,children:[(0,u.jsx)(`span`,{children:at[ne].title.toUpperCase()}),(0,u.jsxs)(`span`,{children:[G?h(E,`Preview`)+` / `:``,`v`,X?.version,` · `,E.toUpperCase()]})]})]}),(0,u.jsxs)(`aside`,{className:`proposal-panel`,children:[Tn?(0,u.jsx)(`button`,{type:`button`,className:`quiet compare-toggle`,"aria-pressed":Nt,disabled:(X?.proposals.length??0)<2,onClick:()=>Pt(!Nt),children:h(E,`Compare side by side`)}):(0,u.jsx)(`span`,{className:`eyebrow`,children:h(E,`FIND YOUR FIT`)}),X?.proposals.map(e=>(0,u.jsxs)(`button`,{className:`proposal-card `+(me===e.id?`selected`:``),disabled:A,onClick:()=>{me!==e.id&&(he(e.id),Pe(null),Me(null))},children:[(0,u.jsx)(`span`,{className:`proposal-letter`,children:e.id}),Tn&&(0,u.jsx)(`span`,{className:`proposal-thumb`,"aria-hidden":`true`,dangerouslySetInnerHTML:{__html:l.default.sanitize(e.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}),(0,u.jsxs)(`div`,{children:[e.recommended&&(0,u.jsx)(`small`,{className:`badge`,children:Y.recommended}),(0,u.jsx)(`h3`,{children:e.title}),(0,u.jsx)(`p`,{children:e.tradeOffs[0]})]})]},e.id)),(0,u.jsx)(`button`,{className:`ink full`,disabled:A||!!G,onClick:()=>or(Z),children:Dn(`choose`,(0,u.jsxs)(u.Fragment,{children:[Y.select,(0,u.jsx)(lt,{})]}))}),!m&&Fn&&O&&dr(),Tn?ur():(0,u.jsxs)(`section`,{className:`drawing-downloads`,children:[(0,u.jsx)(`h3`,{children:h(E,`2D concept drawings`)}),(0,u.jsx)(`button`,{className:`outline full`,disabled:A||!!G,onClick:hr,children:Dn(`drawings`,h(E,`Prepare PDF / editable DXF / SVG`))}),P&&Object.keys(P.files).map(e=>(0,u.jsxs)(`button`,{className:`quiet`,onClick:()=>_r(e,P),children:[e.toUpperCase(),` ↓`]},e)),(0,u.jsx)(`small`,{children:h(E,`Separate from the BIM model export. PDF is included when the service has PDF rendering configured.`)})]}),(0,u.jsxs)(`div`,{className:`tradeoffs`,children:[(0,u.jsx)(`h3`,{children:Y.tradeoffs}),Z.tradeOffs.map((e,t)=>(0,u.jsx)(`p`,{children:e},t))]}),de===`download`&&!Tn?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`h3`,{children:Y.download}),Ne?Object.keys(Ne.files).map(e=>(0,u.jsxs)(`button`,{className:`outline full`,onClick:()=>_r(e),children:[e.toUpperCase(),` ↓`]},e)):(0,u.jsx)(`button`,{className:`ink full`,disabled:A||!!G||Z.hasRequiredConflicts,onClick:gr,children:Dn(`export`,(0,u.jsxs)(u.Fragment,{children:[Y.export,(0,u.jsx)(lt,{})]}))}),(0,u.jsx)(`small`,{children:Ne?.viewerVerification??Y.downloadNote})]}):Tn&&Pn!==`on`?(0,u.jsxs)(u.Fragment,{children:[O&&X&&!G&&(0,u.jsx)(Fe,{input:X.input,language:E,busy:A,onApply:ir},O.version),Pn===`soon`&&(0,u.jsx)(`div`,{className:`chat chat-soon`,children:(0,u.jsx)(`h3`,{children:h(E,`Edit by description · coming soon`)})})]}):Pn===`off`?null:Pn===`soon`?(0,u.jsxs)(`div`,{className:`chat chat-soon`,children:[(0,u.jsx)(`h3`,{children:h(E,`Edit by description · coming soon`)}),(0,u.jsx)(`p`,{children:h(E,`Describing a change in your own words is not available yet. Choose another layout or change your measurements.`)})]}):(0,u.jsxs)(`div`,{className:`chat`,children:[(0,u.jsx)(`h3`,{children:Y.chat}),(0,u.jsx)(`textarea`,{"aria-label":Y.chat,disabled:A||bn.busy,placeholder:Y.hint,value:De,maxLength:8e3,onChange:e=>Oe(e.target.value)}),(0,u.jsxs)(`button`,{className:`outline full`,disabled:A||!De.trim(),onClick:rr,children:[Y.send,` →`]})]})]})]}),(0,u.jsxs)(`div`,{className:`detail-grid`,children:[(0,u.jsxs)(`article`,{className:`paper schedule`,children:[(0,u.jsx)(`h3`,{children:Y.schedule}),(0,u.jsxs)(`table`,{children:[(0,u.jsx)(`thead`,{children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{children:h(E,`Room`)}),(0,u.jsx)(`th`,{children:h(E,`W × D`)}),(0,u.jsx)(`th`,{children:h(E,`Area m²`)}),(0,u.jsx)(`th`,{children:h(E,`Net m²`)})]})}),(0,u.jsx)(`tbody`,{children:Z.schedule.map(e=>(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`td`,{children:e.name}),(0,u.jsxs)(`td`,{children:[x(E,e.widthM,2),` × `,x(E,e.depthM,2),(0,u.jsx)(gt,{language:E,report:kr,path:`${e.roomId}.widthM`}),(0,u.jsx)(gt,{language:E,report:kr,path:`${e.roomId}.depthM`})]}),(0,u.jsxs)(`td`,{children:[x(E,e.centerlineAreaM2,2),(0,u.jsx)(gt,{language:E,report:kr,path:`${e.roomId}.centerlineAreaM2`})]}),(0,u.jsxs)(`td`,{children:[x(E,e.netAreaM2,2),(0,u.jsx)(gt,{language:E,report:kr,path:`${e.roomId}.netAreaM2`})]})]},e.roomId))}),(0,u.jsx)(`tfoot`,{children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{children:h(E,`Total`)}),(0,u.jsx)(`td`,{}),(0,u.jsxs)(`th`,{children:[x(E,Z.centerlineAreaM2,2),(0,u.jsx)(gt,{language:E,report:kr,path:`centerlineAreaM2`})]}),(0,u.jsxs)(`th`,{children:[x(E,Z.netAreaM2,2),(0,u.jsx)(gt,{language:E,report:kr,path:`netAreaM2`})]})]})})]})]}),(0,u.jsxs)(`article`,{className:`paper check-summary`,children:[(0,u.jsx)(`h3`,{children:Y.checks}),(0,u.jsx)(`div`,{className:`check-counts`,children:Object.entries(jr).map(([e,t])=>(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`strong`,{children:t}),e]},e))}),(0,u.jsxs)(`button`,{className:`textbtn`,onClick:()=>V(!Ue),children:[Ue?h(E,`Hide`):Y.notes,` `,Ue?`−`:`+`]}),(0,u.jsx)(`p`,{children:h(E,`Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred.`)})]})]}),Ue&&(0,u.jsx)(`article`,{className:`paper findings`,children:Z.findings.map((e,t)=>(0,u.jsxs)(`details`,{children:[(0,u.jsxs)(`summary`,{children:[(0,u.jsx)(`span`,{className:`status `+e.status,children:oe(E,e.status)}),(0,u.jsx)(`code`,{children:e.ruleId}),(0,u.jsx)(`span`,{children:e.subjectId})]}),(0,u.jsx)(`p`,{children:e.measurement}),e.fix&&(0,u.jsx)(`p`,{children:e.fix}),(0,u.jsx)(`small`,{children:e.source})]},t))}),(0,u.jsx)(`p`,{className:`disclaimer`,children:Y.disclaimer})]}):X?(0,u.jsxs)(`section`,{className:`paper findings`,role:`status`,children:[(0,u.jsx)(`h2`,{children:h(E,`No layout proposal is available`)}),(0,u.jsx)(`p`,{children:h(E,`Your measurements are retained. Review the engine findings and measurements before trying again.`)}),(0,u.jsxs)(`p`,{children:[h(E,`Status`),`: `,oe(E,X.reconciliation.status)]}),X.reconciliation.findings.map((e,t)=>(0,u.jsx)(`p`,{children:e.message},t)),(0,u.jsx)(`button`,{className:`outline`,disabled:A,onClick:()=>D(`measure`),children:h(E,`Review measurements`)}),(0,u.jsx)(`p`,{className:`disclaimer`,children:Y.disclaimer})]}):null,f&&!O&&(0,u.jsx)(`button`,{className:Tn?`textbtn existing-plan-link`:`outline`,disabled:A||bn.busy||jn,onClick:()=>void yr(),children:Tn?{en:`I already have a measured plan`,de:`Ich habe bereits einen Plan mit Maßen`,fr:`J’ai déjà un plan coté`,ar:`لديّ مخطط مقاس بالفعل`}[E]:{en:`Preserve an existing plan`,de:`Bestehenden Plan übernehmen`,fr:`Reprendre un plan existant`,ar:`الانطلاق من مخطط قائم`}[E]}),f&&O&&(0,u.jsx)(`div`,{className:`actions`,children:(0,u.jsx)(`button`,{className:`outline`,disabled:A||bn.busy||jn,"aria-pressed":vn,onClick:()=>yn(!vn),children:{en:`Existing plan / layout design`,de:`Bestandsplan / Entwurf`,fr:`Plan existant / aménagement`,ar:`مخطط قائم / تصميم التوزيع`}[E]})}),O&&!Z&&!m&&Fn&&dr(),O?.pendingDraft&&(0,u.jsx)(`p`,{role:`status`,children:h(E,`Pending inputs are saved privately. They are not an accepted result.`)}),f&&O&&vn&&(0,u.jsx)(_e,{projectId:O.projectId,projectVersion:O.version,pendingDraft:O.pendingDraft??void 0,loadSavedOnMount:O.workflow===`existing-plan`&&!O.pendingDraft?.graph,persistPending:m?void 0:er,onPendingSaved:m?void 0:tr,registerPendingSaver:m?void 0:tn,language:E,disabled:A,sourceObjectId:et??void 0,imageUrl:Qe||void 0,api:Q,onState:Sn,onDownload:(e,t)=>void _r(e,t),aiReading:In},O.projectId),O&&(0,u.jsx)(se,{language:E,version:O.version,busy:A,preview:!!G,open:Dt,versions:Ct,comparison:Tt,left:kt,right:jt,onToggle:sr,onLeftChange:e=>{At(e),Et(null)},onRightChange:e=>{Mt(e),Et(null)},onCompare:cr,onRestore:()=>void lr(),timeline:Tn,onRestoreVersion:e=>void lr(e)}),(X||xt)&&(0,u.jsx)(_t,{report:kr,language:E})]}),(0,u.jsx)(`input`,{hidden:!0,type:`file`,ref:dn,accept:`image/png,image/jpeg,image/webp`,onChange:e=>{let t=e.target.files?.[0];t&&vr(t),e.target.value=``}})]}),A&&!En&&(0,u.jsxs)(`div`,{className:`working`,role:`status`,children:[(0,u.jsx)(`span`,{className:`spinner`}),Y.generating]}),le===`studio`&&O&&Yt.length>0&&(0,u.jsx)(`section`,{className:`paper saved-files`,children:(0,u.jsxs)(`details`,{children:[(0,u.jsx)(`summary`,{children:h(E,`Saved project files · download without a new export`)}),Yt.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`strong`,{children:[e.kind,e.version?` · v`+e.version:``,e.proposalId?` · `+e.proposalId:``]}),e.files.map(t=>(0,u.jsxs)(`button`,{className:`quiet`,disabled:A,onClick:()=>Or(e,t),children:[t.format.toUpperCase(),` ↓`]},t.objectId)),In&&e.kind===`upload`&&e.files.find(e=>[`png`,`jpeg`,`webp`].includes(e.format))&&(0,u.jsx)(`button`,{className:`outline`,disabled:A,onClick:()=>Dr(e.files.find(e=>[`png`,`jpeg`,`webp`].includes(e.format)).objectId),children:h(E,`Use saved sketch`)})]},e.artifactId))]})}),!m&&B.analyticsEnabled===!0&&(0,u.jsxs)(`aside`,{className:`analytics-choice`,children:[(0,u.jsxs)(`label`,{children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:nn,onChange:e=>Kn(e.target.checked)}),` `,h(E,`Allow optional visit and paywall analytics`)]}),(0,u.jsx)(`small`,{children:h(E,`We send event type only, without drawings, dimensions, prompts, URLs or account IDs. Uncheck to withdraw consent and request deletion of this browser's client observations.`)})]}),!m&&F&&zt&&(0,u.jsx)(`div`,{className:`modal-backdrop`,children:(0,u.jsxs)(mt,{className:`modal paper`,role:`alertdialog`,labelledBy:`content-deletion-title`,initialFocus:`.modal-cancel`,onClose:()=>{A||Bt(!1)},children:[(0,u.jsx)(`h2`,{id:`content-deletion-title`,children:h(E,`Delete all project content?`)}),(0,u.jsx)(`p`,{children:h(E,`This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.`)}),(0,u.jsx)(`button`,{className:`outline full danger`,disabled:A,onClick:wr,children:h(E,`Delete my project content`)}),(0,u.jsx)(`button`,{className:`quiet full modal-cancel`,disabled:A,onClick:()=>Bt(!1),children:h(E,`Cancel`)})]})}),!m&&L&&(0,u.jsx)(`div`,{className:`modal-backdrop`,children:(0,u.jsxs)(mt,{as:`form`,className:`modal paper`,role:`dialog`,labelledBy:`bim-signin-title`,onClose:()=>{A||ze(!1)},onSubmit:e=>{e.preventDefault(),Tr()},children:[(0,u.jsx)(`button`,{type:`button`,className:`close`,"aria-label":Y.close,onClick:()=>ze(!1),children:`×`}),(0,u.jsx)(ct,{}),(0,u.jsx)(`h2`,{id:`bim-signin-title`,children:H===`signup`?h(E,`Create a verified account`):H===`verify`?h(E,`Verify your email`):Y.signin}),(0,u.jsx)(`div`,{role:`tablist`,"aria-label":h(E,`Account`),className:`account-modes`,children:[`login`,`signup`,`verify`].map(e=>(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":H===e,className:`textbtn`+(H===e?` active`:``),onClick:()=>U(e),children:h(E,{login:`Sign in`,signup:`Create account`,verify:`Verify email`}[e])},e))}),be&&(0,u.jsx)(`p`,{role:`alert`,children:ne===`karamentreprises`?be.replace(/Polycyphers/gi,`Karamentreprises`):be}),ke&&(0,u.jsx)(`p`,{role:`status`,children:h(E,ke)}),H!==`verify`&&(0,u.jsxs)(`label`,{className:`field`,children:[Y.email,(0,u.jsx)(`input`,{type:`email`,autoComplete:`email`,required:!0,value:Be,onChange:e=>R(e.target.value)})]}),H===`verify`&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:h(E,`Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form.`)}),(0,u.jsxs)(`label`,{className:`field`,children:[h(E,`Verification token`),(0,u.jsx)(`input`,{autoComplete:`off`,required:!0,value:We,onChange:e=>W(e.target.value)})]})]}),H!==`signup`&&(0,u.jsxs)(`label`,{className:`field`,children:[Y.password,(0,u.jsx)(`input`,{type:`password`,autoComplete:H===`verify`?`new-password`:`current-password`,minLength:H===`verify`?10:void 0,required:!0,value:z,onChange:e=>Ve(e.target.value)})]}),(0,u.jsx)(`button`,{className:`ink full`,disabled:A,children:H===`signup`?h(E,`Send verification email`):H===`verify`?h(E,`Verify & set password`):Y.signin})]})})]})}var pt=`a[href],button:not([disabled]),input:not([disabled]):not([type=hidden]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`;function mt({as:e=`section`,role:t,labelledBy:n,className:r,initialFocus:i,onClose:a,onSubmit:o,children:s}){let l=(0,c.useRef)(null),d=(0,c.useRef)(a);d.current=a,(0,c.useEffect)(()=>{let e=document.activeElement instanceof HTMLElement?document.activeElement:null,t=l.current;return(i&&t?.querySelector(i)||t?.querySelector(`input:not([disabled]),select,textarea`)||t?.querySelector(pt)||t)?.focus(),()=>{e?.isConnected&&e.focus()}},[]);function f(e){if(e.key===`Escape`){e.stopPropagation(),d.current();return}if(e.key!==`Tab`||!l.current)return;let t=[...l.current.querySelectorAll(pt)];if(!t.length){e.preventDefault();return}let n=t[0],r=t[t.length-1];e.shiftKey&&(document.activeElement===n||document.activeElement===l.current)?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}let p={className:r,role:t,"aria-modal":!0,"aria-labelledby":n,tabIndex:-1,onKeyDown:f};return e===`form`?(0,u.jsx)(`form`,{ref:l,...p,onSubmit:o,children:s}):(0,u.jsx)(`section`,{ref:l,...p,children:s})}function ht({language:e,label:t,reason:n}){let r=(0,c.useId)();return(0,u.jsxs)(`div`,{className:`feature-soon`,children:[(0,u.jsx)(`button`,{type:`button`,className:`outline`,"aria-disabled":`true`,"aria-describedby":r,onClick:e=>e.preventDefault(),children:h(e,t)}),(0,u.jsx)(`small`,{id:r,children:h(e,n)})]})}function gt({report:e,path:t,language:n=`en`}){let r=e?.values.find(e=>e.path===t)??e?.values.find(e=>e.path.endsWith(`.`+t));return(0,u.jsxs)(`small`,{className:`value-tag `+(r?.origin??`missing`),title:r?.source??h(n,`No provenance supplied for this displayed value.`),children:[h(n,r?.origin??`unlabelled`),` · `,h(n,r?.origin!==`estimated`&&r?.confirmed===!0?`reviewed evidence`:`unconfirmed`)]})}function _t({report:e,language:t}){let n=t;return(0,u.jsxs)(`section`,{className:`paper provenance`,children:[(0,u.jsx)(`h3`,{children:h(t,`Value provenance & discrepancies`)}),(0,u.jsx)(`p`,{children:e?.notice??h(t,`No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified.`)}),(0,u.jsx)(`h4`,{children:h(t,`Discrepancy report`)}),e?e.discrepancies.length?e.discrepancies.map(e=>(0,u.jsxs)(`article`,{children:[(0,u.jsxs)(`strong`,{children:[oe(n,e.kind),` · `,e.subject]}),(0,u.jsx)(`p`,{children:e.message}),e.appliedFix&&(0,u.jsx)(`p`,{children:g(n,`Applied fix: {fix}`,{fix:e.appliedFix})}),e.question&&(0,u.jsx)(`p`,{children:g(n,`Measurement needed: {question}`,{question:e.question})}),e.ruleId&&(0,u.jsx)(`code`,{children:e.ruleId})]},e.id)):(0,u.jsx)(`p`,{children:h(n,`No discrepancies reported by the engine.`)}):(0,u.jsx)(`p`,{children:h(n,`Discrepancy report unavailable.`)}),(0,u.jsxs)(`details`,{children:[(0,u.jsx)(`summary`,{children:h(n,`Every supplied value and its source`)}),(0,u.jsxs)(`table`,{children:[(0,u.jsx)(`thead`,{children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{children:h(n,`Value`)}),(0,u.jsx)(`th`,{children:h(n,`Origin / evidence`)}),(0,u.jsx)(`th`,{children:h(n,`Source`)})]})}),(0,u.jsx)(`tbody`,{children:e?.values.map(t=>(0,u.jsxs)(`tr`,{children:[(0,u.jsxs)(`td`,{children:[(0,u.jsx)(`code`,{children:t.path}),(0,u.jsx)(`br`,{}),t.value,` `,t.unit]}),(0,u.jsx)(`td`,{children:(0,u.jsx)(gt,{language:n,report:e,path:t.path})}),(0,u.jsxs)(`td`,{children:[t.source,t.inputPaths.length>0&&(0,u.jsx)(`small`,{children:g(n,`Inputs: {paths}`,{paths:t.inputPaths.join(`, `)})})]})]},t.path))})]})]})]})}function vt({progress:e,flow:t=`walls`,input:n,setInput:r,onChange:i,estimatedFields:a,confirmed:o,setConfirmed:s,onGenerate:l,busy:d,onUpload:f,uploads:p=`on`,imageUrl:m,geometry:_,language:ee}){let v=ee,y=(e,t)=>{t&&(e=De(e,t,a)),r(e),i(t)},b=n.programme,x=[[`bedroomWidthM`,`Bedroom width`],[`bedroomDepthM`,`Bedroom depth`],[`bathroomWidthM`,`Bathroom width`],[`bathroomDepthM`,`Bathroom depth`],[`hallWidthM`,`Hall width`],[`wardrobeLengthM`,`Wardrobe length`],[`balconyDepthM`,`Balcony depth (0 for none)`],[`slidingDoorWidthM`,`Balcony sliding door width`]];function S(e){let t=n.footprint.edges,r=(e?[...t,{id:``,startVertexId:``,endVertexId:``,lengthM:NaN,bearingDegrees:null,direction:`Any`,wallType:`exterior`}]:t.slice(0,-1)).map((e,t,n)=>({...e,id:`W`+(t+1),startVertexId:`V`+(t+1),endVertexId:`V`+((t+1)%n.length+1)}));y({...n,footprint:{edges:r}})}let C=(0,u.jsx)(`div`,{className:`edge-table`,children:n.footprint.edges.map((e,t)=>(0,u.jsxs)(`div`,{className:`edge-row`,children:[(0,u.jsxs)(`strong`,{children:[e.id,` `,(0,u.jsxs)(`small`,{children:[e.startVertexId,` → `,e.endVertexId]})]}),(0,u.jsxs)(`label`,{children:[h(v,`Length (m)`),` `,(0,u.jsxs)(`small`,{children:[h(v,j(n,`footprint.edges[${t}].lengthM`,a)),` · `,h(v,`unconfirmed`)]}),(0,u.jsx)(ue,{language:v,"aria-label":g(v,`{id} length`,{id:e.id}),min:`0`,step:`any`,value:Number.isFinite(e.lengthM)?e.lengthM:``,onText:e=>y({...n,footprint:{...n.footprint,edges:n.footprint.edges.map((n,r)=>r===t?{...n,lengthM:e===``?NaN:Number(e)}:n)}},`footprint.edges[${t}].lengthM`)})]}),(0,u.jsxs)(`label`,{children:[h(v,`Angle (°)`),` `,(0,u.jsxs)(`small`,{children:[h(v,j(n,`footprint.edges[${t}].bearingDegrees`,a)),` · `,h(v,`unconfirmed`)]}),(0,u.jsx)(ue,{language:v,"aria-label":g(v,`{id} bearing`,{id:e.id}),step:`0.01`,placeholder:h(v,`Unknown`),value:e.bearingDegrees??``,onText:e=>y({...n,footprint:{...n.footprint,edges:n.footprint.edges.map((n,r)=>r===t?{...n,bearingDegrees:e===``?null:Number(e)}:n)}},`footprint.edges[${t}].bearingDegrees`)})]}),(0,u.jsxs)(`label`,{children:[h(v,`Wall`),(0,u.jsxs)(`select`,{"aria-label":g(v,`{id} wall type`,{id:e.id}),value:e.wallType,onChange:e=>y({...n,footprint:{...n.footprint,edges:n.footprint.edges.map((n,r)=>r===t?{...n,wallType:e.target.value}:n)}}),children:[(0,u.jsx)(`option`,{value:`exterior`,children:h(v,`Exterior`)}),(0,u.jsx)(`option`,{value:`party`,children:h(v,`Shared wall · no windows or doors`)})]})]})]},e.id))}),te=(0,u.jsxs)(`div`,{className:`actions`,children:[(0,u.jsx)(`button`,{className:`outline`,disabled:n.footprint.edges.length>=64,onClick:()=>S(!0),children:h(v,`Add wall`)}),(0,u.jsx)(`button`,{className:`quiet`,disabled:n.footprint.edges.length<=3,onClick:()=>S(!1),children:h(v,`Remove last wall`)})]}),ne=_?.suggestedDiagonal&&(0,u.jsxs)(`label`,{className:`field`,children:[g(v,`Diagonal {from} → {to} (m)`,{from:_.suggestedDiagonal.startVertexId,to:_.suggestedDiagonal.endVertexId}),(0,u.jsx)(`small`,{children:_.suggestedDiagonal.reason}),(0,u.jsx)(ue,{language:v,min:`0`,step:`any`,value:n.footprint.diagonals?.[0]?.lengthM??``,onText:e=>y({...n,footprint:{...n.footprint,diagonals:e?[{startVertexId:_.suggestedDiagonal.startVertexId,endVertexId:_.suggestedDiagonal.endVertexId,lengthM:Number(e)}]:[]}},`footprint.diagonals`)})]}),re=b&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:h(v,`Requested dimensions. Every value is checked by the shared engine.`)}),(0,u.jsx)(`div`,{className:`programme-grid`,children:x.map(([e,t])=>(0,u.jsxs)(`label`,{className:`field`,children:[h(v,t),` (`,ie(v,`m`),`)`,(0,u.jsxs)(`small`,{children:[h(v,j(n,`programme.${e}`,a)),` · `,h(v,`unconfirmed`)]}),(0,u.jsx)(ue,{language:v,min:`0`,step:`0.01`,value:Number.isFinite(b[e])?b[e]:``,onText:t=>y({...n,programme:{...b,[e]:t===``?NaN:Number(t)}},`programme.${e}`)})]},e))}),[`entranceEdgeId`,`balconyEdgeId`].map(e=>(0,u.jsxs)(`label`,{className:`field`,children:[h(v,e===`entranceEdgeId`?`Entrance wall`:`Balcony wall`),(0,u.jsxs)(`select`,{value:b[e],onChange:t=>y({...n,programme:{...b,[e]:t.target.value}}),children:[(0,u.jsx)(`option`,{value:``,children:h(v,`Choose a wall`)}),n.footprint.edges.map(e=>(0,u.jsx)(`option`,{children:e.id},e.id))]})]},e))]}),w=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`label`,{className:`field`,children:[h(v,`Main view wall`),(0,u.jsxs)(`select`,{value:n.viewEdgeId,onChange:e=>y({...n,viewEdgeId:e.target.value}),children:[(0,u.jsx)(`option`,{value:``,children:h(v,`No preference`)}),n.footprint.edges.map(e=>(0,u.jsx)(`option`,{children:e.id},e.id))]})]}),(0,u.jsxs)(`label`,{className:`field`,children:[h(v,`Clear ceiling height (m)`),(0,u.jsxs)(`small`,{children:[h(v,j(n,`buildUps.clearCeilingHeightM`,a)),` · `,h(v,`unconfirmed`)]}),(0,u.jsx)(ue,{language:v,step:`0.01`,min:`0`,value:Number(n.buildUps?.clearCeilingHeightM??2.8),onText:e=>y({...n,buildUps:{...n.buildUps,clearCeilingHeightM:Number(e)}},`buildUps.clearCeilingHeightM`)})]}),(0,u.jsx)(`p`,{children:h(v,`Other wall/slab build-ups remain labelled concept placeholders from the shared engine.`)}),(0,u.jsxs)(`label`,{className:`field`,children:[h(v,`Country`),(0,u.jsxs)(`select`,{value:n.country,onChange:e=>y({...n,country:e.target.value}),children:[(0,u.jsx)(`option`,{value:`unspecified`,children:h(v,`Not specified`)}),(0,u.jsx)(`option`,{value:`Lebanon`,children:h(v,`Lebanon`)}),(0,u.jsx)(`option`,{value:`Germany`,children:h(v,`Germany`)})]})]})]}),[ae,T]=(0,c.useState)(()=>N(n).shape);return t===`room`?(0,u.jsxs)(`section`,{className:`measure-layout room-step`,children:[(0,u.jsx)(`article`,{className:`paper form-card`,children:(0,u.jsxs)(`fieldset`,{disabled:d,className:`bare`,children:[(0,u.jsx)(`h2`,{children:h(v,`Your room`)}),(0,u.jsx)(`p`,{children:h(v,`Enter the inside size of your space in metres.`)}),(0,u.jsx)(Pe,{input:n,language:v,onEdges:e=>{let t=(n.valueOrigins?.userGivenPaths??[]).filter(e=>!e.startsWith(`footprint.`));r({...n,footprint:{edges:e},valueOrigins:{userGivenPaths:[...t,...e.flatMap((e,t)=>Number.isFinite(e.lengthM)?[`footprint.edges[${t}].lengthM`]:[])]}}),i(`footprint.edges`)},onShape:T}),ae===`custom`&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:h(v,`Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal.`)}),C,te]}),ne,(0,u.jsxs)(`details`,{className:`room-wishes`,children:[(0,u.jsx)(`summary`,{children:h(v,`Room wishes (optional)`)}),b?(0,u.jsxs)(u.Fragment,{children:[re,(0,u.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>y({...n,programme:null}),children:h(v,`Use suggested sizes`)})]}):(0,u.jsxs)(`p`,{children:[h(v,`We suggest sensible room sizes. They are labelled estimated until you enter your own.`),` `,(0,u.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>y({...n,programme:Ce(n.language).programme}),children:h(v,`Enter my own room sizes`)})]})]}),(0,u.jsxs)(`details`,{className:`more-options`,children:[(0,u.jsx)(`summary`,{children:h(v,`More options`)}),w]}),(0,u.jsxs)(`label`,{className:`confirmation`,children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),h(v,`These are my measurements.`)]}),(0,u.jsx)(`button`,{className:`ink full`,disabled:d||!o,onClick:l,children:e??h(v,`Show layouts`)}),p===`on`&&(0,u.jsx)(`button`,{className:`outline full`,onClick:f,children:h(v,`Attach sketch`)})]})}),(0,u.jsxs)(`aside`,{className:`paper measure-sketch room-preview`,children:[(0,u.jsx)(F,{input:n,language:v}),m&&(0,u.jsx)(`img`,{className:`uploaded-preview`,src:m,alt:h(v,`Your selected sketch, local preview`)}),p===`soon`&&(0,u.jsx)(ht,{language:v,label:`Sketch reading · coming soon`,reason:`Sketch reading is not available yet. Enter your measurements instead.`})]})]}):(0,u.jsxs)(`section`,{className:`measure-layout`,children:[(0,u.jsx)(`article`,{className:`paper form-card`,children:(0,u.jsxs)(`fieldset`,{disabled:d,className:`bare`,children:[(0,u.jsx)(`h2`,{children:h(v,`Measured footprint`)}),(0,u.jsx)(`p`,{children:h(v,`Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal. These are your measurements, not generated dimensions.`)}),C,b?.source.startsWith(`User-entered`)&&te,ne,(0,u.jsxs)(`details`,{open:!!b,children:[(0,u.jsx)(`summary`,{children:h(v,`Room programme`)}),b?(0,u.jsx)(u.Fragment,{children:re}):(0,u.jsxs)(`p`,{children:[h(v,`This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions.`),` `,(0,u.jsx)(`button`,{className:`textbtn`,onClick:()=>y({...n,programme:Ce(n.language).programme}),children:h(v,`Enter my own room dimensions`)})]})]}),w,(0,u.jsxs)(`label`,{className:`confirmation`,children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),h(v,`I confirm these measured dimensions and angle assumptions.`)]}),(0,u.jsx)(`button`,{className:`ink full`,disabled:d||!o,onClick:l,children:e??h(v,`Check footprint & generate`)}),p===`on`&&(0,u.jsx)(`button`,{className:`outline full`,onClick:f,children:h(v,`Attach sketch`)})]})}),(0,u.jsx)(`aside`,{className:`paper measure-sketch`,children:m?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`img`,{className:`uploaded-preview`,src:m,alt:h(v,`Your selected sketch, local preview`)}),(0,u.jsx)(`p`,{children:h(v,`Local image preview. No dimensions are inferred from this display.`)})]}):(0,u.jsxs)(`div`,{className:`empty`,children:[(0,u.jsx)(`h3`,{children:h(v,`Your measurements define the plan.`)}),p===`on`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`p`,{children:h(v,`Attach your sketch for reference. There is no sample footprint hidden behind this form.`)}),(0,u.jsx)(`button`,{className:`outline`,disabled:d,onClick:f,children:h(v,`Choose sketch image`)})]}):p===`soon`&&(0,u.jsx)(ht,{language:v,label:`Sketch reading · coming soon`,reason:`Sketch reading is not available yet. Enter your measurements instead.`})]})})]})}function yt({candidate:e,language:t}){let n=e.reconciliation?.status===`Unique`?e.reconciliation.solutions[0]?.vertices:null,r=new Map;for(let t of e.values.values){let e=/^sketch\.topology\.vertices\.([A-Za-z0-9_-]+)\.(x|y)$/.exec(t.path);if(e){let n=r.get(e[1])??{x:NaN,y:NaN};n[e[2]]=t.value,r.set(e[1],n)}}let i=n?.length?n.map(e=>({id:e.id,x:e.position.x,y:-e.position.y})):e.input?.edges.map(e=>({id:e.startVertexId,...r.get(e.startVertexId)})).filter(e=>Number.isFinite(e.x)&&Number.isFinite(e.y))??[];if(i.length<3||i.length!==e.input?.edges.length)return null;let a=Math.min(...i.map(e=>e.x)),o=Math.min(...i.map(e=>e.y)),s=Math.max(...i.map(e=>e.x))-a,c=Math.max(...i.map(e=>e.y))-o,l=Math.min(560/Math.max(s,1e-6),300/Math.max(c,1e-6)),d=i.map(e=>({id:e.id,x:40+(e.x-a)*l,y:40+(e.y-o)*l}));return(0,u.jsxs)(`figure`,{className:`recognized-outline`,children:[(0,u.jsxs)(`svg`,{viewBox:`0 0 640 390`,role:`img`,"aria-label":h(t,`Unconfirmed recognized outline preview`),children:[(0,u.jsx)(`polygon`,{points:d.map(e=>`${e.x},${e.y}`).join(` `)}),d.map((n,r)=>{let i=d[(r+1)%d.length],a=e.input?.edges.find(e=>e.startVertexId===n.id);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:n.x,cy:n.y,r:`3`}),(0,u.jsx)(`text`,{x:n.x+5,y:n.y-7,fontSize:`10`,children:n.id}),a&&(0,u.jsxs)(`text`,{x:(n.x+i.x)/2+5,y:(n.y+i.y)/2+12,fontSize:`11`,children:[a.id,` · `,w(t,x(t,a.lengthM,2),`m`),` [`,h(t,`estimated`),`]`]})]},n.id)})]}),(0,u.jsxs)(`figcaption`,{children:[h(t,n?.length?`Deterministic closure preview from estimated inputs.`:`Image-space outline estimate; no physical scale.`),` `,h(t,`Original recognized outline; form edits are checked when you request reconciliation.`)]})]})}exports.BIM_PACKAGE_ID=Be,exports.BIM_PACKAGE_VERSION=R,exports.BimStudio=dt,exports.checkBimLicense=it,exports.clearLicense=Je,Object.defineProperty(exports,"disableTelemetry",{enumerable:!0,get:function(){return d.disableTelemetry}}),Object.defineProperty(exports,"enableTelemetry",{enumerable:!0,get:function(){return d.enableTelemetry}}),exports.setLicense=qe;