1import{a as _a}from"./chunk-GZVCQYSH.js";import{a as Pn,b as xn,g as Ba,j as ba}from"./chunk-ATLPHYUF.js";var Ii=Ba((Xn,Ci)=>{"use strict";(function(o,e){typeof Xn=="object"&&typeof Ci<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.FroalaEditor))})(Xn,function(o){"use strict";o.LANGUAGE.de={translation:{"Font Awesome":"Font Awesome","Web Application Icons":"Web Anwendungen","Accessibility Icons":"Barrierefreiheit","Hand Icons":"H\xE4nde","Transportation Icons":"Transport","Gender Icons":"Geschlechter","Form Control Icons":"Formulare","Payment Icons":"Zahlungsarten","Chart Icons":"Diagramme","Currency Icons":"W\xE4hrungen","Text Editor Icons":"Text Editor","Brand Icons":"Marken","Type something":"Hier tippen",Bold:"Fett",Italic:"Kursiv",Underline:"Unterstrichen",Strikethrough:"Durchgestrichen",Size:"Gr\xF6\xDFe",Insert:"Einf\xFCgen",Delete:"L\xF6schen",Cancel:"Abbrechen",OK:"OK",Back:"Zur\xFCck",Remove:"Entfernen",More:"Mehr",Update:"Aktualisieren",Style:"Stil","Font Family":"Schriftart","Font Size":"Schriftgr\xF6\xDFe",Colors:"Farben",Color:"Farben",Background:"Hintergrund",Text:"Text","HEX Color":"Hexadezimaler Farbwert","Paragraph Format":"Formatierung",Normal:"Normal",Code:"Quelltext","Heading 1":"\xDCberschrift 1","Heading 2":"\xDCberschrift 2","Heading 3":"\xDCberschrift 3","Heading 4":"\xDCberschrift 4","Paragraph Style":"Absatzformatierung","Inline Style":"Inlineformatierung",Padding:"Abstand",Align:"Ausrichtung","Align Left":"Linksb\xFCndig ausrichten","Align Center":"Zentriert ausrichten","Align Right":"Rechtsb\xFCndig ausrichten","Align Justify":"Blocksatz",None:"Keine",Alignment:"Ausrichtung",Next:"N\xE4chste",Previous:"Vorherige","Advanced Options":"Erweiterte Optionen",Close:"schlie\xDFen",Default:"Standard","Ordered List":"Nummerierte Liste","Lower Alpha":"Kleinbuchstaben","Lower Greek":"Griechisches Alphabet","Lower Roman":"R\xF6mische Ziffern (klein)","Upper Alpha":"Grossbuchstaben","Upper Roman":"R\xF6mische Ziffern (gross)","Unordered List":"Unnummerierte Liste",Circle:"Kreis",Disc:"Kreis gef\xFCllt",Square:"Quadrat","Line Height":"Zeilenh\xF6he",Single:"Einfach",Double:"Doppelt","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergr\xF6\xDFern","Insert Link":"Link einf\xFCgen","Open in new tab":"In neuem Tab \xF6ffnen","Open Link":"Link \xF6ffnen","Edit Link":"Link bearbeiten",Unlink:"Link entfernen","Choose Link":"Einen Link ausw\xE4hlen","Insert Image":"Bild einf\xFCgen","Upload Image":"Bild hochladen","By URL":"Von URL",Browse:"Durchsuchen","Drop image":"Bild hineinziehen","or click":"oder hier klicken","Manage Images":"Bilder verwalten",Loading:"Laden",Deleting:"L\xF6schen",Tags:"Tags","Are you sure? Image will be deleted.":"Wollen Sie das Bild wirklich l\xF6schen?",Replace:"Ersetzen",Uploading:"Hochladen","Loading image":"Das Bild wird geladen",Display:"Textausrichtung",Inline:"Mit Text in einer Zeile","Break Text":"Text umbrechen","Alternative Text":"Alternativtext","Change Size":"Gr\xF6\xDFe \xE4ndern",Width:"Breite",Height:"H\xF6he","Something went wrong. Please try again.":"Etwas ist schief gelaufen. Bitte versuchen Sie es erneut.","Image Caption":"Bildbeschreibung","Advanced Edit":"Erweiterte Bearbeitung","Insert Video":"Video einf\xFCgen","Embedded Code":"Eingebetteter Code","Paste in a video URL":"F\xFCgen Sie die Video-URL ein","Drop video":"Video hineinziehen","Your browser does not support HTML5 video.":"Ihr Browser unterst\xFCtzt keine HTML5-Videos.","Upload Video":"Video hochladen","Insert Table":"Tabelle einf\xFCgen","Table Header":"Tabellenkopf","Remove Table":"Tabelle entfernen","Table Style":"Tabellenformatierung","Horizontal Align":"Horizontale Ausrichtung",Row:"Zeile","Insert row above":"Neue Zeile davor einf\xFCgen","Insert row below":"Neue Zeile danach einf\xFCgen","Delete row":"Zeile l\xF6schen",Column:"Spalte","Insert column before":"Neue Spalte davor einf\xFCgen","Insert column after":"Neue Spalte danach einf\xFCgen","Delete column":"Spalte l\xF6schen",Cell:"Zelle","Merge cells":"Zellen verbinden","Horizontal split":"Horizontal teilen","Vertical split":"Vertikal teilen","Cell Backgroun
1d":"Zellenfarbe","Vertical Align":"Vertikale Ausrichtung",Top:"Oben",Middle:"Zentriert",Bottom:"Unten","Align Top":"Oben ausrichten","Align Middle":"Zentriert ausrichten","Align Bottom":"Unten ausrichten","Cell Style":"Zellen-Stil","Table Properties":"Tabelleneigenschaften","Cell Properties":"Zelleigenschaften","Table Footer":"Tabellenfu\xDFzeile",Dimensions:"Abmessungen","Custom background color input":"Benutzerdefinierte Hintergrundfarbe eingeben","Background color picker":"Hintergrundfarbw\xE4hler","Custom border color input":"Benutzerdefinierte Rahmenfarbe eingeben","Border color picker":"Rahmenfarbw\xE4hler","Border width":"Rahmenbreite","Border style":"Rahmenstil","Border color":"Rahmenfarbe","Table width":"Tabellenbreite","Table height":"Tabellenh\xF6he","Left align":"Linksb\xFCndig ausrichten","Center align":"Zentriert ausrichten","Right align":"Rechtsb\xFCndig ausrichten",solid:"Durchgezogene Linie",dashed:"Gestrichelte Linie",double:"Doppelt",dotted:"Gepunktete Linie",groove:"Eingeschnittene Linie",ridge:"Erhabene Linie",inset:"Innere Linie",outset:"\xC4u\xDFere Linie","Upload File":"Datei hochladen","Insert File":"Datei einf\xFCgen","Drop file":"Datei hineinziehen",Emoticons:"Emoticons","Grinning face":"Grinsendes Gesicht","Grinning face with smiling eyes":"Grinsend Gesicht mit l\xE4chelnden Augen","Face with tears of joy":"Gesicht mit Tr\xE4nen der Freude","Smiling face with open mouth":"L\xE4chelndes Gesicht mit offenem Mund","Smiling face with open mouth and smiling eyes":"L\xE4chelndes Gesicht mit offenem Mund und l\xE4chelnden Augen","Smiling face with open mouth and cold sweat":"L\xE4chelndes Gesicht mit offenem Mund und kaltem Schwei\xDF","Smiling face with open mouth and tightly-closed eyes":"L\xE4chelndes Gesicht mit offenem Mund und fest geschlossenen Augen","Smiling face with halo":"L\xE4cheln Gesicht mit Heiligenschein","Smiling face with horns":"L\xE4cheln Gesicht mit H\xF6rnern","Winking face":"Zwinkerndes Gesicht","Smiling face with smiling eyes":"L\xE4chelndes Gesicht mit l\xE4chelnden Augen","Face savoring delicious food":"Gesicht leckeres Essen genie\xDFend","Relieved face":"Erleichtertes Gesicht","Smiling face with heart-shaped eyes":"L\xE4chelndes Gesicht mit herzf\xF6rmigen Augen","Smiling face with sunglasses":"L\xE4chelndes Gesicht mit Sonnenbrille","Smirking face":"Grinsendes Gesicht","Neutral face":"Neutrales Gesicht","Expressionless face":"Ausdrucksloses Gesicht","Unamused face":"Genervtes Gesicht","Face with cold sweat":"Gesicht mit kaltem Schwei\xDF","Pensive face":"Nachdenkliches Gesicht","Confused face":"Verwirrtes Gesicht","Confounded face":"Elendes Gesicht","Kissing face":"K\xFCssendes Gesicht","Face throwing a kiss":"Gesicht wirft einen Kuss","Kissing face with smiling eyes":"K\x
1FCssendes Gesicht mit l\xE4chelnden Augen","Kissing face with closed eyes":"K\xFCssendes Gesicht mit geschlossenen Augen","Face with stuck out tongue":"Gesicht mit herausgestreckter Zunge","Face with stuck out tongue and winking eye":"Gesicht mit herausgestreckter Zunge und zwinkerndem Auge","Face with stuck out tongue and tightly-closed eyes":"Gesicht mit herausgestreckter Zunge und fest geschlossenen Augen","Disappointed face":"Entt\xE4uschtes Gesicht","Worried face":"Besorgtes Gesicht","Angry face":"Ver\xE4rgertes Gesicht","Pouting face":"Schmollendes Gesicht","Crying face":"Weinendes Gesicht","Persevering face":"Ausharrendes Gesicht","Face with look of triumph":"Gesicht mit triumphierenden Blick","Disappointed but relieved face":"Entt\xE4uschtes, aber erleichtertes Gesicht","Frowning face with open mouth":"Entsetztes Gesicht mit offenem Mund","Anguished face":"Gequ\xE4ltes Gesicht","Fearful face":"Angstvolles Gesicht","Weary face":"M\xFCdes Gesicht","Sleepy face":"Schl\xE4friges Gesicht","Tired face":"G\xE4hnendes Gesicht","Grimacing face":"Grimassenschneidendes Gesicht","Loudly crying face":"Laut weinendes Gesicht","Face with open mouth":"Gesicht mit offenem Mund","Hushed face":"Besorgtes Gesicht mit offenem Mund","Face with open mouth and cold sweat":"Gesicht mit offenem Mund und kaltem Schwei\xDF","Face screaming in fear":"Vor Angst schreiendes Gesicht","Astonished face":"Erstauntes Gesicht","Flushed face":"Ger\xF6tetes Gesicht","Sleeping face":"Schlafendes Gesicht","Dizzy face":"Schwindliges Gesicht","Face without mouth":"Gesicht ohne Mund","Face with medical mask":"Gesicht mit Mundschutz",Break:"Zeilenumbruch",Subscript:"Tiefgestellt",Superscript:"Hochgestellt",Fullscreen:"Vollbild","Insert Horizontal Line":"Horizontale Linie einf\xFCgen","Clear Formatting":"Formatierung l\xF6schen",Save:"Speichern",Undo:"R\xFCckg\xE4ngig",Redo:"Wiederholen","Select All":"Alles ausw\xE4hlen","Code View":"Code-Ansicht",Quote:"Zitieren",Increase:"Vergr\xF6\xDFern",Decrease:"Verkleinern","Quick Insert":"Schnell einf\xFCgen","Special Characters":"Sonderzeichen",Latin:"Lateinisch",Greek:"Griechisch",Cyrillic:"Kyrillisch",Punctuation:"Satzzeichen",Currency:"W\xE4hrung",Arrows:"Pfeile",Math:"Mathematik",Misc:"Sonstige",Print:"Drucken","Spell Checker":"Rechtschreibpr\xFCfung",Help:"Hilfe",Shortcuts:"Tastaturkurzbefehle","Inline Editor":"Inline-Editor","Show the editor":"Editor anzeigen","Common actions":"H\xE4ufig verwendete Befehle",Copy:"Kopieren",Cut:"Ausschneiden",Paste:"Einf\xFCgen","Basic Formatting":"Grundformatierung","Increase quote level":"Zitatniveau erh\xF6hen","Decrease quote level":"Zitatniveau verringern","Image / Video":"Bild / Video","Resize larger":"Vergr\xF6\xDFern","Resize smaller":"Verkleinern",Table:"Tabelle","Select table cell":"Tabellenzelle ausw\xE4hlen","Extend selection one cell":"Erweitere Auswahl um eine Zelle","Extend selection one row":"Erweitere Auswahl um eine Zeile",Navigation:"Navigation","Focus popup / toolbar":"Fokus-Popup / Symbolleiste","Return focus to previous position":"Fokus auf vorherige Position","Embed URL":"URL einbetten","Paste in a URL to embed":"URL einf\xFCgen um sie einzubetten","The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?":"Der eingef\xFCgte Inhalt kommt aus einem Microsoft Word-Dokument. M\xF6chten Sie die Formatierungen behalten oder verwerfen?",Keep:"Behalten",Clean:"Bereinigen","Word Paste Detected":"Aus Word einf\xFCgen",Characters:"Zeichen","Find and Replace":"Suchen und ersetzen",Find:"Suchen","Replace with":"Ersetzen durch","Replace All":"Alle ersetzen","Match case":"Streichholzetui","Whole words only":"Nur ganze W\xF6rter","More Text":"Weitere Textformate","More Paragraph":"Weitere Absatzformate","More Rich":"Weitere Reichhaltige Formate","More Misc":"Weitere Formate","Text Color":"Textfarbe","Background Color":"Hintergrundfarbe",Border:"Rahmen","Select Table":"Tabelle ausw\xE4hlen","Drag Table":"Tabelle ziehen","Select PageBreak":"Seitenumbruch ausw\xE4hlen","Drag PageBreak":"Seitenumbruch z
1iehen","Page Break":"Seitenumbruch","Insert Anchor":"Anker einf\xFCgen","There are no entries matching":"Es gibt keine passenden Eintr\xE4ge","Update Anchor":"Anker aktualisieren","Edit Anchor":"Anker bearbeiten","Anchor Name":"Ankername","Anchor Link":"Anker-Link","Scroll to target":"Zum Ziel scrollen","Enter the anchor name without space":"Geben Sie den Ankamen ohne Leertaste ein","Anchor name already exists.":"Der Ankername ist bereits vorhanden.","Export to Word":"In Word exportieren","Ensure that all required dependent libraries are available for the plugin to work.":"Stellen Sie sicher, dass alle erforderlichen abh\xE4ngigen Bibliotheken f\xFCr die Funktion des Plugins verf\xFCgbar sind.","Import from Word":"Aus Word importieren","Please upload a valid file":"Bitte laden Sie eine g\xFCltige Datei hoch.","File size must be less than":"Die Dateigr\xF6\xDFe muss kleiner sein als","Code Snippet":"Code-Snippet","Insert Code Snippet":"Code-Snippet einf\xFCgen","Edit Code Snippet":"Code-Snippet bearbeiten"},direction:"ltr"}})});var Oi=Ba((jn,Li)=>{"use strict";(function(o,e){typeof jn=="object"&&typeof Li<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.FroalaEditor))})(jn,function(o){"use strict";o.LANGUAGE.fr={translation:{"Type something":"Tapez quelque chose",Bold:"Gras",Italic:"Italique",Underline:"Soulign\xE9",Strikethrough:"Barr\xE9",Size:"Taille",Insert:"Ins\xE9rer",Delete:"Supprimer",Cancel:"Annuler",OK:"Ok",Back:"Retour",Remove:"Supprimer",More:"Plus",Update:"Actualiser",Style:"Style","Font Family":"Polices de caract\xE8res","Font Size":"Taille de police","Text Color":"Couleur du texte","Background Color":"Couleur d'arri\xE8re plan","Line Height":"Hauteur de la ligne",Colors:"Couleurs",Color:"Couleur",Background:"Arri\xE8re-plan",Text:"Texte","HEX Color":"Couleur hexad\xE9cimale","Paragraph Format":"Format de paragraphe",Normal:"Normal",Code:"Code","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Single:"Simple","Paragraph Style":"Style de paragraphe","Inline Style":"Style en ligne",Gray:"Grise",Bordered:"Bord\xE9",Spaced:"Espac\xE9",Uppercase:"Majuscule",Padding:"Rembourrage",Align:"Aligner","Align Left":"Aligner \xE0 gauche","Align Center":"Aligner au centre","Align Right":"Aligner \xE0 droite","Align Justify":"Justifier",None:"Aucun",Alignment:"Alignement",Next:"Suivant",Previous:"Pr\xE9c\xE9dent","Advanced Options":"Options avanc\xE9es",Close:"Fermer","Download PDF":"T\xE9l\xE9charger le PDF","Inline Class":"Classe en ligne","Ordered List":"Liste ordonn\xE9e","Unordered List":"Liste non ordonn\xE9e",Default:"D\xE9faut",Circle:"Cercle",Disc:"Rond",Square:"Carr\xE9","Lower Alpha":"Alpha inf\xE9rieur","Lower Greek":"Grec inf\xE9rieur","Lower Roman":"Romain inf\xE9rieur","Upper Alpha":"Alpha sup\xE9rieur","Upper Roman":"Romain sup\xE9rieur","Decrease Indent":"Diminuer le retrait","Increase Indent":"Augmenter le retrait","Insert Link":"Ins\xE9rer un lien","Open in new tab":"Ouvrir dans un nouvel onglet","Open Link":"Ouvrir le lien","Edit Link":"Modifier le lien",Unlink:"Enlever le lien","Choose Link":"Choisir le lien","Insert Image":"Ins\xE9rer une image","Upload Image":"T\xE9l\xE9verser une image","By URL":"Par URL",Browse:"Parcourir","Drop image":"Cliquer pour parcourir","or click":"ou glisser/d\xE9poser en plein \xE9cran","Manage Images":"G\xE9rer les images",Loading:"Chargement",Deleting:"Suppression",Tags:"\xC9tiquettes","Are you sure? Image will be deleted.":"Etes-vous certain? L'image sera supprim\xE9e.",Replace:"Remplacer",Uploading:"Envoi en cours","Loading image":"Chargement d'image en cours",Display:"Afficher",Inline:"En ligne","Break Text":"Rompre le texte","Alternative Text":"Texte alternatif","Change Size":"Changer la dimension",Width:"Largeur",Height:"Hauteur","Something went wrong. Please try again.":"Quelque chose a mal tourn\xE9. Veuillez r\xE9essayer.","Image Caption":"L\xE9gende de l'image","Advanced Edit":"\xC9dition avanc\xE9e","Insert Video":"Ins\xE9rer une vid\xE9o","Embedded Code":"Code int\xE9gr\xE9","Paste in a video URL":"Coller l'URL d'une vid\xE9o","Drop video":"Cliquer pour parcourir","Your browser does not support HTML5 video.":"Votre navigateur ne supporte pas les vid\xE9os au format HTML5.","Upload Video":"T\xE9l\xE9verser une vid\xE9o","Insert Table":"Ins\xE9rer un tableau","Table Header":"Ent\xEAte de tableau","Remove Table":"Supprimer le tableau","Table Style":"Style de tableau","Horizontal Align":"Alignement horizontal",Row:"Ligne","Insert row above":"Ins\xE9rer une ligne au-dessus","Insert row below":"Ins\xE9rer une ligne en-dessous","Delete row":"Supprimer la ligne",Column:"Colonne","Insert column before":"Ins\xE9rer une colonne avant","Insert column after":"Ins\xE9rer une colonne apr\xE8s","Delete column":"Supprimer la colonne",Cell:"Cellule","Merge cells":"Fusionner les cellules","Horizontal split":"Diviser horizontalement","Vertical split":"Diviser verticalement","Cell Backgroun
1d":"Arri\xE8re-plan de la cellule","Vertical Align":"Alignement vertical",Top:"En haut",Middle:"Au centre",Bottom:"En bas","Align Top":"Aligner en haut","Align Middle":"Aligner au centre","Align Bottom":"Aligner en bas","Cell Style":"Style de cellule","Dashed Borders":"Bordures pointill\xE9es","Alternate Rows":"Lignes alternatives",Highlighted:"Soulign\xE9",Thick:"\xC9pais","Table Properties":"Propri\xE9t\xE9s du tableau","Cell Properties":"Propri\xE9t\xE9s de la cellule","Table Footer":"Pied de page du tableau",Dimensions:"Dimensions","Custom background color input":"Entr\xE9e couleur de fond personnalis\xE9e","Background color picker":"S\xE9lecteur de couleur de fond","Custom border color input":"Entr\xE9e couleur de bordure personnalis\xE9e","Border color picker":"S\xE9lecteur de couleur de bordure","Border width":"Largeur de bordure","Border style":"Style de bordure","Border color":"Couleur de bordure","Table width":"Largeur du tableau","Table height":"Hauteur du tableau","Left align":"Aligner \xE0 gauche","Center align":"Aligner au centre","Right align":"Aligner \xE0 droite",solid:"Ligne pleine",dashed:"Ligne en tirets","dashed Borders":"Bordures pointill\xE9es",dotted:"Ligne en points",double:"Ligne double",groove:"Ligne rainur\xE9e",ridge:"Ligne en relief",inset:"Ligne int\xE9rieure",outset:"Ligne ext\xE9rieure","Upload File":"T\xE9l\xE9verser un fichier","Drop file":"Cliquer pour parcourir",Emoticons:"\xC9motic\xF4nes","Grinning face":"Souriant visage","Grinning face with smiling eyes":"Souriant visage aux yeux souriants","Face with tears of joy":"Visage \xE0 des larmes de joie","Smiling face with open mouth":"Visage souriant avec la bouche ouverte","Smiling face with open mouth and smiling eyes":"Visage souriant avec la bouche ouverte et les yeux en souriant","Smiling face with open mouth and cold sweat":"Visage souriant avec la bouche ouverte et la sueur froide","Smiling face with open mouth and tightly-closed eyes":"Visage souriant avec la bouche ouverte et les yeux herm\xE9tiquement clos","Smiling face with halo":"Sourire visage avec halo","Smiling face with horns":"Visage souriant avec des cornes","Winking face":"Clin d'oeil visage","Smiling face with smiling eyes":"Sourire visage aux yeux souriants","Face savoring delicious food":"Visage savourant de d\xE9licieux plats","Relieved face":"Soulag\xE9 visage","Smiling face with heart-shaped eyes":"Visage souriant avec des yeux en forme de coeur","Smiling face with sunglasses":"Sourire visage avec des lunettes de soleil","Smirking face":"Souriant visage","Neutral face":"Visage neutre","Expressionless face":"Visage sans expression","Unamused face":"Visage pas amus\xE9","Face with cold sweat":"Face \xE0 la sueur froide","Pensive face":"pensif visage","Confused face":"Visage confus","Confounded face":"visage maudit","Kissing face":"Embrasser le visage","Face throwing a kiss":"Visage jetant un baiser","Kissing face with smiling eyes":"Embrasser le visage avec les yeux souriants","Kissing face with closed eyes":"Embrasser le visage avec les yeux ferm\xE9s","Face with stuck out tongue":"Visage avec sortait de la langue","Face with stuck out tongue and winking eye":"Visage avec sortait de la langue et des yeux clignotante","Face with stuck out tongue and tightly-closed eyes":"Visage avec sortait de la langue et les yeux ferm\xE9s herm\xE9tiquement","Disappointed face":"Visage d\xE9\xE7u","Worried face":"Visage inquiet","Angry face":"Visage en col\xE9re","Pouting face":"Faire la moue face","Crying face":"Pleurer visage","Persevering face":"Pers\xE9v\xE9rer face","Face with look of triumph":"Visage avec le regard de triomphe","Disappointed but relieved face":"D\xE9\xE7u, mais le visage soulag\xE9","Frowning face with open mouth":"Les sourcils fronc\xE9s visage avec la bouche ouverte","Anguished face":"Visage angoiss\xE9","Fearful face":"Craignant visage","Weary face":"Visage las","Sleepy face":"Visage endormi","Tired face":"Visage fatigu\xE9","Grimacing face":"Visage grima\xE7ante","Loudly crying face":"Pleurer bruyamment visage","Face with open mouth":"Visage \xE0 la bouche ouverte","Hushed face":"Visage feutr\xE9e","Face with open mouth and cold sweat":"Visage \xE0 la bouche ouverte et la sueur froide","Face screaming in fear":"Visage hurlant de peur","Astonished face":"Visage \xE9tonn\xE9","Flushed face":"Visage congestionn\xE9","Sleeping face":"Visage au bois dormant","Dizzy face":"Visage vertige","Face without mouth":"Visage sans bouche","Face with medical mask":"Visage avec un masque m\xE9dical",Break:"Rompre",Subscript:"Indice",Superscript:"Exposant",Fullscreen:"Plein \xE9cran","Insert Horizontal Line":"Ins\xE9rer une ligne horizontale","Clear Formatting":"Effacer le formatage",Save:"Sauvegarder",Ok:"Ok",Undo:"Annuler",Redo:"R\xE9tablir","Select All":"Tout s\xE9lectionner","Code View":"Mode HTML",Quote:"Citation",Increase:"Augmenter",Decrease:"Diminuer","Quick Insert":"Insertion rapide","Special Characters":"Caract\xE8res sp\xE9ciaux",Latin:"Latin",Greek:"Grec",Cyrillic:"Cyrillique",Punctuation:"Ponctuation",Currency:"Devise",Arrows:"Fl\xE8ches",Math:"Math",Misc:"Divers",Print:"Imprimer","Spell Checker":"Correcteur orthographique",Help:"Aide",Shortcuts:"Raccourcis","Inline Editor":"\xC9diteur en ligne","Show the editor":"Montrer l'\xE9diteur","Common actions":"Actions communes",Copy:"Copier",Cut:"Couper",Paste:"Coller","Basic Formatting":"Formatage de base","Increase quote level":"Augmenter le niveau de citation","Decrease quote level":"Diminuer le niveau de citation","Image / Video":"Image / vid\xE9o","Resize larger":"Redimensionner plus grand","Resize smaller":"Redimensionner plus petit",Table:"Table","Select table cell":"S\xE9lectionner la cellule du tableau","Extend selection one cell":"\xC9tendre la s\xE9lection d'une cellule","Extend selection one row":"\xC9tendre la s\xE9lection d'une ligne",Navigation:"Navigation","Focus popup / toolbar":"Focus popup / toolbar","Return focus to previous position":"Retourner l'accent sur le poste pr\xE9c\xE9dent","Embed URL":"URL int\xE9gr\xE9e","Paste in a URL to embed":"Coller une URL int\xE9gr\xE9e","The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?":"Le contenu coll\xE9 provient d'un document Microsoft Word. Voulez-vous conserver le format ou le nettoyer?",Keep:"Conserver",Clean:"Nettoyer","Word Paste Detected":"Copiage de mots d\xE9tect\xE9",Characters:"Caract\xE8res","Find and Replace":"Rechercher et remplacer",Find:"Trouver","Replace with":"Remplacer par","Replace All":"Remplacer tout","Match case":"\xC9tui de correspondance","Whole words only":"Des mots entiers seulement","More Text":"Autres options de texte","More Paragraph":"Autres options de paragraphe","More Rich":"Autres options d'enrichissement","More Misc":"Autres fonctionnalit\xE9s diverses",Border:"Fronti\xE8re","Select Table":"S\xE9lectionner le tableau","Drag Table":"Faire Glisser le tableau","Select PageBreak":"S\xE9lectionner saut de page","Drag PageBreak":"Faire Glisser saut de page","Page Break":"Saut de page","Insert Anchor":"Ins\xE9rer une ancre","There are no entries matching":"Il n'y a pas d'entr\xE9es correspondantes","Update Anchor":"Mettre \xE0 jour l'ancre","Edit Anchor":"Modifier l'ancre","Anchor Name":"Nom de l'ancre","Anchor Link":"Lien de l'ancre","Scroll to target":"Faire d\xE9filer jusqu'\xE0 la cible","Enter the anch
1or name without space":"Entrez le nom de l'ancre sans espace","Anchor name already exists.":"Le nom de l'ancre existe d\xE9j\xE0.","Export to Word":"Exporter vers Word","Ensure that all required dependent libraries are available for the plugin to work.":"Assurez-vous que toutes les biblioth\xE8ques d\xE9pendantes requises sont disponibles pour que l'extension fonctionne.","Import from Word":"Importer depuis Word","Please upload a valid file":"Veuillez t\xE9l\xE9charger un fichier valide.","File size must be less than":"La taille du fichier doit \xEAtre inf\xE9rieure \xE0","Code Snippet":"Extrait de Code","Insert Code Snippet":"Ins\xE9rer un extrait de code","Edit Code Snippet":"Modifier l'extrait de code"},direction:"ltr"}})});var Di=Ba((Zn,Ni)=>{"use strict";(function(o,e){typeof Zn=="object"&&typeof Ni<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.FroalaEditor))})(Zn,function(o){"use strict";o.LANGUAGE.it={translation:{"Type something":"Digita qualcosa","Text Color":"Colore del testo","Background Color":"Colore di sfondo","Inline Class":"Classe inline",Default:"Predefinito","Lower Alpha":"Alfa minuscole","Lower Greek":"Greche minuscole","Lower Roman":"Romane minuscole","Upper Alpha":"Alfa maiuscole","Upper Roman":"Romane maiuscole",Circle:"Cerchio",Disc:"Disco",Square:"Quadrato",Double:"Doppio","Download PDF":"Scarica il PDF",Bold:"Grassetto",Italic:"Corsivo",Underline:"Sottolineato",Strikethrough:"Barrato",Size:"Misurare",Insert:"Inserisci",Delete:"Cancella",Cancel:"Cancella",OK:"OK",Back:"Indietro",Remove:"Rimuovi",More:"Di pi\xF9",Update:"Aggiorna",Style:"Stile","Font Family":"Carattere","Font Size":"Dimensione Carattere",Colors:"Colori",Color:"Colore",Background:"Sfondo",Text:"Testo","HEX Color":"Colore Esadecimale","Paragraph Format":"Formattazione",Normal:"Normale",Code:"Codice","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4","Paragraph Style":"Stile Paragrafo","Inline Style":"Stile in Linea",Padding:"Imbottitura",Align:"Allinea","Align Left":"Allinea a Sinistra","Align Center":"Allinea al Cento","Align Right":"Allinea a Destra","Align Justify":"Giustifica",None:"Nessuno",Alignment:"Allineamento",Next:"Avanti",Previous:"Precedente","Advanced Options":"Opzioni avanzate",Close:"Chiudi","Ordered List":"Elenchi Numerati","Unordered List":"Elenchi Puntati","Decrease Indent":"Riduci Rientro","Increase Indent":"Aumenta Rientro","Insert Link":"Inserisci Link","Open in new tab":"Apri in nuova scheda","Open Link":"Apri Link","Edit Link":"Modifica Link",Unlink:"Rimuovi Link","Choose Link":"Scegli Link","Insert Image":"Inserisci Immagine","Upload Image":"Carica Immagine","By URL":"Inserisci URL",Browse:"Sfoglia","Drop image":"Rilascia immagine","or click":"oppure clicca qui","Manage Images":"Gestione Immagini",Loading:"Caricamento",Deleting:"Eliminazione",Tags:"Etichetta","Are you sure? Image will be deleted.":"Sei sicuro? L'immagine verr\xE0 cancellata.",Replace:"Sostituisci",Uploading:"Caricamento","
1Loading image":"Caricamento immagine",Display:"Visualizzazione",Inline:"In Linea","Break Text":"Separa dal Testo","Alternative Text":"Testo Alternativo","Change Size":"Cambia Dimensioni",Width:"Larghezza",Height:"Altezza","Something went wrong. Please try again.":"Qualcosa non ha funzionato. Riprova, per favore.","Image Caption":"Didascalia","Advanced Edit":"Avanzato","Insert Video":"Inserisci Video","Embedded Code":"Codice Incorporato","Paste in a video URL":"Incolla l'URL del video","Drop video":"Rilascia video","Your browser does not support HTML5 video.":"Il tuo browser non supporta i video html5.","Upload Video":"Carica Video","Insert Table":"Inserisci Tabella","Table Header":"Intestazione Tabella","Remove Table":"Rimuovi Tabella","Table Style":"Stile Tabella","Horizontal Align":"Allineamento Orizzontale",Row:"Riga","Insert row above":"Inserisci una riga prima","Insert row below":"Inserisci una riga dopo","Delete row":"Cancella riga",Column:"Colonna","Insert column before":"Inserisci una colonna prima","Insert column after":"Inserisci una colonna dopo","Delete column":"Cancella colonna",Cell:"Cella","Merge cells":"Unisci celle","Horizontal split":"Dividi in orizzontale","Vertical split":"Dividi in verticale","Cell Background":"Sfondo Cella","Vertical Align":"Allineamento Verticale",Top:"Alto",Middle:"Centro",Bottom:"Basso","Align Top":"Allinea in Alto","Align Middle":"Allinea al Centro","Align Bottom":"Allinea in Basso","Cell Style":"Stile Cella","Table Properties":"Propriet\xE0 Tabella","Cell Properties":"Propriet\xE0 Cella","Table Footer"
1:"Pi\xE8 di pagina della tabella",Dimensions:"Dimensioni","Custom background color input":"Inserimento colore di sfondo personalizzato","Background color picker":"Selettore colore di sfondo","Custom border color input":"Inserimento colore del bordo personalizzato","Border color picker":"Selettore colore del bordo","Border width":"Larghezza del bordo","Border style":"Stile del bordo","Border color":"Colore del bordo","Table width":"Larghezza del tabella","Table height":"Altezza del tabella","Left align":"Allinea a sinistra","Center align":"Allinea al centro","Right align":"Allinea a destra",solid:"Linea continua",dashed:"Linea tratteggiata",dotted:"Linea puntinata",double:"Doppio",groove:"Linea scanalata",ridge:"Linea in rilievo",inset:"Linea interna",outset:"Linea esterna","Upload File":"Carica File","Drop file":"Rilascia file",Emoticons:"Emoticon","Grinning face":"Sorridente","Grinning face with smiling eyes":"Sorridente con gli occhi sorridenti","Face with tears of joy":"Con lacrime di gioia","Smiling face with open mouth":"Sorridente con la bocca aperta","Smiling face with open mouth and smiling eyes":"Sorridente con la bocca aperta e gli occhi sorridenti","Smiling face with open mouth and cold sweat":"Sorridente con la bocca aperta e sudore freddo","Smiling face with open mouth and tightly-closed eyes":"Sorridente con la bocca aperta e gli occhi stretti","Smiling face with halo":"Sorridente con aureola","Smiling face with horns":"Diavolo sorridente","Winking face":"Ammiccante","Smiling face with smiling eyes":"Sorridente imbarazzato","Face savoring delicious food":"Goloso","Relieved face":"Rassicurato","Smiling face with heart-shaped eyes":"Sorridente con gli occhi a forma di cuore","Smiling face with sunglasses":"Sorridente con gli occhiali da sole","Smirking face":"Compiaciuto","Neutral face":"Neutro","Expressionless face":"Inespressivo","Unamused face":"Annoiato","Face with cold sweat":"Sudare freddo","Pensive face":"Pensieroso","Confused face":"Perplesso","Confounded face":"Confuso","Kissing face":"Bacio","Face throwing a kiss":"Manda un bacio","Kissing face with smiling eyes":"Bacio con gli occhi sorridenti","Kissing face with closed eyes":"Bacio con gli occhi chiusi","Face with stuck out tongue":"Linguaccia","Face with stuck out tongue and winking eye":"Linguaccia ammiccante","Face with stuck out tongue and tightly-closed eyes":"Linguaccia con occhi stretti","Disappointed face":"Deluso","Worried face":"Preoccupato","Angry face":"Arrabbiato","Pouting face":"Imbronciato","Crying face":"Pianto","Persevering face":"Perseverante","Face with look of triumph":"Trionfante","Disappointed but relieved face":"Deluso ma rassicurato","Frowning face with open mouth":"Accigliato con la bocca aperta","Anguished face":"Angosciato","Fearful face":"Pauroso","Weary face":"Stanco","Sleepy face":"Assonnato","Tired face":"Snervato","Grimacing face":"Smorfia","Loudly crying face":"Pianto a gran voce","Face with open mouth":"Bocca aperta","Hushed face":"Silenzioso","Face with open mouth and cold sweat":"Bocca aperta e sudore freddo","Face screaming in fear":"Urlante dalla paura","Astonished face":"Stupito","Flushed face":"Arrossito","Sleeping face":"Addormentato","Dizzy face":"Stordito","Face without mouth":"Senza parole","Face with medical mask":"Malattia infettiva",Break:"Separatore",Subscript:"Pedice",Superscript:"Apice",Fullscreen:"Schermo intero","Insert Horizontal Line":"Inserisci Divisore Orizzontale","Clear Formatting":"Cancella Formattazione",Save:"Salvare",Ok:"Ok",Undo:"Annulla",Redo:"Ripeti","Select All":"Seleziona Tutto","Code View":"Visualizza Codice",Quote:"Citazione",Increase:"Aumenta",Decrease:"Diminuisci","Quick Insert":"Inserimento Rapido","Special Characters":"Caratteri Speciali",Latin:"Latino",Greek:"Greco",Cyrillic:"Cirillico",Punctuation:"Punteggiatura",Currency:"Valuta",Arrows:"Frecce",Math:"Matematica",Misc:"Misc",Print:"Stampa","Spell Checker":"Correttore Ortografico",Help:"Aiuto",Shortcuts:"Scorciatoie","Inline Editor":"Editor in Linea","Show the editor":"Mostra Editor","Common actions":"Azioni comuni",Copy:"Copia",Cut:"Taglia",Paste:"Incolla","Basic Formatting":"Formattazione di base","Increase quote level":"Aumenta il livello di citazione","Decrease quote level":"Diminuisci il livello di citazione","Image / Video":"Immagine / Video","Resize larger":"Pi\xF9 grande","Resize smaller":"Pi\xF9 piccolo",Table:"Tabella","Select table cell":"Seleziona la cella della tabella","Extend selection one cell":"Estendi la selezione di una cella","Extend selection one row":"Estendi la selezione una riga",Navigation:"Navigazione","Focus popup / toolbar":"Metti a fuoco la barra degli strumenti","Return focus to previous position":"Rimetti il fuoco sulla posizione precedente","Embed URL":"Incorpora URL","Paste in a URL to embed":"Incolla un URL da incorporare","The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento di Microsoft Word. Vuoi mantenere la formattazione di Word o pulirlo?",Keep:"Mantieni",Clean:"Pulisci","Word Paste Detected":"\xC8 stato rilevato un incolla da Word",Characters:"Caratteri",Words:"Parole","Find and Replace":"Trova e sostituisci",Find:"Trovare","Replace with":"Sostituisci con","Replace All":"Sostituisci tutto","Match case":"Caso di corrispondenza","Whole words only":"Solo parole intere","More Text":"Altro Testo","More Paragraph":"Altro Paragrafo","More Rich":"Altro Ricco","More Misc":"Altro Varie",Border:"Confine","Select Table":"Seleziona tabella","Drag Table":"Trascina tabella","Select PageBreak":"Seleziona interruzione di pagina","Drag PageBreak":"Trascina interruzione di pagina","Page Break":"Interruzione di pagina","Insert Anchor":"Inserisci ancoraggio","There are no entries matching":"Non ci sono voci corrispondenti","Update Anchor":"Aggiorna ancoraggio","Edit Anchor":"Modifica ancoraggio","Anchor Name":"Nome ancoraggio","Anchor Link":"Link ancoraggio","Scroll to target":"Scorri fino all'obiettivo","Enter the anch
1or name without space":"Inserisci il nome dell'ancoraggio senza spazi","Anchor name already exists.":"Il nome dell'ancoraggio esiste gi\xE0.","Export to Word":"Esporta in Word","Ensure that all required dependent libraries are available for the plugin to work.":"Assicurati che tutte le librerie dipendenti richieste siano disponibili affinch\xE9 il plugin funzioni.","Import from Word":"Importa da Word","Please upload a valid file":"Carica un file valido.","File size must be less than":"La dimensione del file deve essere inferiore a","Code Snippet":"Frammento di Codice","Insert Code Snippet":"Inserisci frammento di codice","Edit Code Snippet":"Modifica frammento di codice"},direction:"ltr"}})});var xi=Ba((Qn,Pi)=>{"use strict";(function(o,e){typeof Qn=="object"&&typeof Pi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(Qn,function(o){"use strict";o.PLUGINS.align=function(e){var d=e.$;return{apply:function(t){var j=e.selection.ranges(0),s=(s=j.commonAncestorContainer).nodeType===Node.TEXT_NODE?e.selection.element():s,h=d(s).closest("table.fr-selection-handle-selected"),a=d(s).parents("TD, TH"),y=!e.selection.isCollapsed(),ne=s.tagName==="TD"||s.tagName==="TH",j=(y=y&&ne)&&((P=s.textContent)==null?void 0:P.trim())===((P=j.toString())==null?void 0:P.trim()),P=e.table&&e.table.selectedCells(),ne=ne||P&&0<P.length||a.length&&e.el.contains(a.get(0))&&s.tagName==="BR";if(d(s).parents(".fr-img-caption").length)d(s).css("text-align",t);else if(h.length&&e.el.contains(h[0]))h.find("td").css("text-align",t);else if(ne&&!y||j)P&&P.length?P.forEach(function(g){g=d(g),g.css("text-align",t),g.children().css("text-align","")}):((h=["TD","TH"].includes(s.tagName)?d(s):a).css("text-align",t),h.children().css("text-align",""));else{e.selection.save(),P&&P.length||e.html.wrap(!0,!0,!0,!0),e.selection.restore();for(var ue=e.helpers.selectionBlocks([".fr-code-snippet"]),v=0;v<ue.length;v++)d(ue[v]).css("text-align",t).removeClass("fr-temp-div"),d(ue[v]).attr("class")===""&&d(ue[v]).removeAttr("class"),d(ue[v]).attr("style")===""&&d(ue[v]).removeAttr("style");e.selection.save(),e.html.unwrap(),e.selection.restore()}},refresh:function(t){var s=e.selection.blocks();s.length&&(s=e.helpers.getAlignment(d(s[0])),t.find("> *").first().replaceWith(e.icon.create("align-".concat(s))))},refreshOnShow:function(t,s){var h=e.selection.blocks();h.length&&(h=e.helpers.getAlignment(d(h[0])),s.find('a.fr-command[data-param1="'.concat(h,'"]')).addClass("fr-active").attr("aria-selected",!0))},refreshForToolbar:function(t){var s=e.selection.blocks();s.length&&(s=(s=e.helpers.getAlignment(d(s[0]))).charAt(0).toUpperCase()+s.slice(1),"align".concat(s)===t.attr("data-cmd"))&&t.addClass("fr-active")}}},o.DefineIcon("align",{NAME:"align-left",SVG_KEY:"alignLeft"}),o.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),o.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),o.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"}),o.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"}),o.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var e,d='<ul class="fr-dropdown-list" role="presentation">',t=o.COMMANDS.align.options;for(e in t)t.hasOwnProperty(e)&&(d+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="align"data-param1="\n '.concat(e,'" title="').concat(this.language.translate(t[e]),'">').concat(this.icon.create("align-".concat(e)),'<span class="fr-sr-only">\n ').concat(this.language.translate(t[e]),"</span></a></li>"));return d+="</ul>"},callback:function(e,d){this.align.apply(d)},refresh:function(e){this.align.refresh(e)},refreshOnShow:function(e,d){this.align.refreshOnShow(e,d)},plugin:"align"}),o.RegisterCommand("alignLeft",{type:"button",icon:"align-left",title:"Align Left",callback:function(){this.align.apply("left")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),o.RegisterCommand("alignRight",{type:"button",icon:"align-right",title:"Align Right",callback:function(){this.align.apply("right")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),o.RegisterCommand("alignCenter",{type:"button",icon:"align-center",title:"Align Center",callback:function(){this.align.apply("center")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),o.RegisterCommand("alignJustify",{type:"button",icon:"align-justify",title:"Align Justify",callback:function(){this.align.apply("justify")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"})})});var Ui=Ba((Jn,Hi)=>{"use strict";(function(o,e){typeof Jn=="object"&&typeof Hi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(Jn,function(o){"use strict";Object.assign(o.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),o.PLUGINS.charCounter=function(e){var d,t,s=e.$;function h(P){var ne=e.opts.charCounterMax;if(!(ne<0)){var ue=t();
1if(P.type==="keydown"){if(ue<ne)return!0;var v=P.which;if(!e.keys.ctrlKey(P)&&e.keys.isCharacter(v)||v===o.KEYCODE.IME)return P.preventDefault(),P.stopPropagation(),e.events.trigger("charCounter.exceeded"),!1}if(v=P.originalEvent&&P.originalEvent.inputType||"",!/delete|historyUndo|historyRedo/.test(v)){if(P.type==="beforeinput"&&(v=P.data||P.originalEvent&&P.originalEvent.data||P.originalEvent&&P.originalEvent.dataTransfer&&P.originalEvent.dataTransfer.getData("text")||"",v=ue-e.win.getSelection().toString().length+v.length,ne-ue<=0||ne<v))return P.preventDefault(),P.stopPropagation(),e.events.trigger("charCounter.exceeded"),!1;if(P.type==="input"&&ne<ue){e.selection.save();for(var g,v=e.el,I=ne,k="",E=document.createTreeWalker(v,NodeFilter.SHOW_TEXT,null,!1),Q=!0;(g=E.nextNode())&&k.length<I;){var x=I-k.length;if(g.textContent.length>x){g.textContent=g.textContent.slice(0,x),Q=!1;break}k+=g.textContent}for(Q&&(g=E.previousNode());g=E.nextNode();)g.textContent="";e.selection.restore()}}}return!0}function a(P){return e.opts.charCounterMax<0||s("<div>").html(P).text().length+t()<=e.opts.charCounterMax?P:(e.events.trigger("charCounter.exceeded"),"")}function y(P,ne,ue){return e.opts.charCounterMax<0||(P.includes('<span class="fr-emoticon')||P.includes('<i class="fa ')?!(t()>=e.opts.charCounterMax&&(e.events.trigger("charCounter.exceeded"),1)):s("<div>").html(P).text().length+t()<=e.opts.charCounterMax||(e.events.trigger("charCounter.exceeded"),!1))}function j(){var P;e.opts.charCounterCount&&(P=t()+(0<e.opts.charCounterMax?"/"+e.opts.charCounterMax:""),d.text("".concat(e.language.translate("Characters")," : ").concat(P)),e.opts.toolbarBottom&&d.css("margin-bottom",e.$tb.outerHeight(!0)),0<=(P=e.$wp.get(0).offsetWidth-e.$wp.get(0).clientWidth))&&(e.opts.direction=="rtl"?d.css("margin-left",P):d.css("margin-right",P))}return{_init:function(){return!!e.$wp&&!!e.opts.charCounterCount&&((d=s(document.createElement("span")).attr("class","fr-counter")).css("bottom",e.$wp.css("border-bottom-width")),(e.$second_tb||e.$wp).append(d),e.events.on("keydown beforeinput input",h,!0),e.events.on("paste.afterCleanup",a),e.events.on("keyup contentChanged input",function(){e.events.trigger("charCounter.update")}),e.events.on("html.beforeInsert",y),e.events.on("charCounter.update",j),e.events.trigger("charCounter.update"),void e.events.on("destroy",function(){s(e.o_win).off("resize.char".concat(e.id)),d.removeData().remove(),d=null}))},count:t=function(){var ne=e.opts.iframe&&e.markdown&&e.markdown.isEnabled()?e.$el.text()||"":e.el.textContent||"",ue=e.$el.find(".fr-page-break"),v=(ue.text()||"").length;return ne.replace(/\u200B/g,"").length-v*ue.length}}}})});var Ki=Ba((ei,Vi)=>{"use strict";(function(o,e){typeof ei=="object"&&typeof Vi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ei,function(o){"use strict";o.PLUGINS.codeBeautifier=function(){var e,d,t,s,h={};function a(E,Q){var x,te={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},Ke={"@media":!0,"@supports":!0,"@document":!0},q=(Q=Q||{},E=(E=E||"").replace(/\r\n|[\r\u2028\u2029]/g,"\n"),Q.indent_size||4),ge=Q.indent_char||" ",U=Q.selector_separator_newline===void 0||Q.selector_separator_newline,Oe=Q.end_with_newline!==void 0&&Q.end_with_newline,J=Q.newline_between_rules===void 0||Q.newline_between_rules,be=Q.eol||"\n",Ne=(typeof q=="string"&&(q=parseInt(q,10)),Q.indent_with_tabs&&(ge=" ",q=1),be=be.replace(/\\r/,"\r").replace(/\\n
1/,"\n"),/^\s+$/),u=-1,it=0;function De(){return(x=E.charAt(++u))||""}function Vt(He){var ft=u;return He&&Ye(),He=E.charAt(u+1)||"",u=ft-1,De(),He}function Y(He){for(var ft=u;De();)if(x==="\\")De();else if(He.indexOf(x)!==-1||x==="\n")break;return E.substring(ft,u+1)}function Ye(){for(;Ne.test(Vt());)De()}function Ae(He){var ft=u;for(He=Vt()==="/",De();De();){if(!He&&x==="*"&&Vt()==="/"){De();break}if(He&&x==="\n")return E.substring(ft,u)}return E.substring(ft,u)+x}function dt(He){return E.substring(u-He.length,u).toLowerCase()===He}for(var je=E.match(/^[\t ]*/)[0],Pe=new Array(q+1).join(ge),qe=0,me=0,R={"{":function(He){R.singleSpace(),xe.push(He),R.newLine()},"}":function(He){R.newLine(),xe.push(He),R.newLine()},_lastCharWhitespace:function(){return Ne.test(xe[xe.length-1])},newLine:function(He){xe.length&&(He||xe[xe.length-1]==="\n"||R.trim(),xe.push("\n"),je)&&xe.push(je)},singleSpace:function(){xe.length&&!R._lastCharWhitespace()&&xe.push(" ")},preserveSingleSpace:function(){Dt&&R.singleSpace()},trim:function(){for(;R._lastCharWhitespace();)xe.pop()}},xe=[],nt=!1,ut=!1,ke=!1,pt="";;){var Bt,Et=(function(){var ft="";for(x&&Ne.test(x)&&(ft=x);Ne.test(De());)ft+=x;return ft})(),Dt=Et!=="",Et=Et.indexOf("\n")!==-1,Kt=pt,pt=x;if(!x)break;x==="/"&&Vt()==="*"?(Bt=qe===0,(Et||Bt)&&R.newLine(),xe.push(Ae()),R.newLine(),Bt&&R.newLine(!0)):x==="/"&&Vt()==="/"?(Et||Kt==="{"||R.trim(),R.singleSpace(),xe.push(Ae()),R.newLine()):x==="@"?(R.preserveSingleSpace(),xe.push(x),Bt=void 0,Bt=u,Et=Y(Et=": , {}()[]/='\""),u=Bt-1,De(),(Kt=Et).match(/[ :]$/)&&(De(),Kt=Y(": ").replace(/\s$/,""),xe.push(Kt),R.singleSpace()),(Kt=Kt.replace(/\s$/,""))in te&&(me+=1,Kt in Ke)&&(ke=!0)):x==="#"&&Vt()==="{"?(R.preserveSingleSpace(),xe.push(Y("}"))):x==="{"?Vt(!0)==="}"?(Ye(),De(),R.singleSpace(),xe.push("{}"),R.newLine(),J&&qe===0&&R.newLine(!0)):(qe++,je+=Pe,R["{"](x),nt=ke?(ke=!1,me<qe):me<=qe):x==="}"?(qe--,je=je.slice(0,-q),R["}"](x),ut=nt=!1,me&&me--,J&&qe===0&&R.newLine(!0)):x===":"?(Ye(),!nt&&!ke||dt("&")||(function(){for(var ft=0,bt=u+1;bt<E.length;bt++){var la=E.charAt(bt);if(la==="{")return 1;if(la==="(")ft+=1;else if(la===")"){if(ft===0)return;--ft}else if(la===" "||la==="}")return}})()?Vt()===":"?(De(),xe.push("::")):xe.push(":"):(ut=!0,xe.push(":"),R.singleSpace())):x==='"'||x==="'"?(R.preserveSingleSpace(),xe.push(Y(x))):x===" "?(ut=!1,xe.push(x),R.newLine()):x==="("?dt("url")?(xe.push(x),Ye(),De()&&(x!==")"&&x!=='"'&&x!=="'"?xe.push(Y(")")):u--)):(it++,R.preserveSingleSpace(),xe.push(x),Ye()):x===")"?(xe.push(x),it--):x===","?(xe.push(x),Ye(),U&&!ut&&it<1?R.newLine():R.singleSpace()):(x!=="]"&&(x!=="["&&x==="="?(Ye(),x="="):R.preserveSingleSpace()),xe.push(x))}return Q="",je&&(Q+=je),Q+=xe.join("").replace(/[\r\n\t ]+$/,""),Oe&&(Q+="\n"),Q=be!="\n"?Q.replace(/[\n]/g,be):Q}function y(E,Q){for(var x=0;x<Q.length;x+=1)if(Q[x]===E)return!0;return!1}function j(E){return E.replace(/^\s+|\s+$/g,"")}function P(E,Q){return new ue(E,Q).beautify()}e=h,d="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
10EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",t=new RegExp("[".concat(d,"]")),s=new RegExp("[".concat(d," ").concat("\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F","]")),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|".concat(e.newline.source)),e.allLineBreaks=new RegExp(e.lineBreak.source,"g"),e.isIdentifierStart=function(E){return E<65?E===36||E===64:E<91||(E<97?E===95:E<123||170<=E&&t.test(String.fromCharCode(E)))}
1,e.isIdentifierChar=function(E){return E<48?E===36:E<58||!(E<65)&&(E<91||(E<97?E===95:E<123||170<=E&&s.test(String.fromCharCode(E))))};var ne={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ue(E,Q){var x,te,Ke,q,ge,U,Oe,J,be,Ne,u,it,De,Vt=[],Y="";function Ye(He,ft){var bt=0;return He&&(bt=He.indentation_level,!x.just_added_newline())&&He.line_indent_level>bt&&(bt=He.line_indent_level),{mode:ft,parent:He,last_text:He?He.last_text:"",last_word:He?He.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:bt,line_indent_level:He?He.line_indent_level:bt,start_line_index:x.get_line_number(),ternary_depth:0}}for(it={TK_START_EXPR:function(){Bt();var He=ne.Expression;if(q.text==="["){if(ge==="TK_WORD"||J.last_text===")")return ge==="TK_RESERVED"&&y(J.last_text,Ke.line_starters)&&(x.space_before_token=!0),xe(He),me(),R(),void(De.space_in_paren&&(x.space_before_token=!0));He=ne.ArrayLiteral,!nt(J.mode)||J.last_text!=="["&&(J.last_text!==","||U!=="]"&&U!=="}")||De.keep_array_indentation||Pe()}else ge==="TK_RESERVED"&&J.last_text==="for"?He=ne.ForInitializer:ge==="TK_RESERVED"&&y(J.last_text,["if","while"])&&(He=ne.Conditional);J.last_text===" "||ge==="TK_START_BLOCK"?Pe():ge==="TK_END_EXPR"||ge==="TK_START_EXPR"||ge==="TK_END_BLOCK"||J.last_text==="."?je(q.wanted_newline):ge==="TK_RESERVED"&&q.text==="("||ge==="TK_WORD"||ge==="TK_OPERATOR"?ge==="TK_RESERVED"&&(J.last_word==="function"||J.last_word==="typeof")||J.last_text==="*"&&U==="function"?De.space_after_anon_function&&(x.space_before_token=!0):ge!=="TK_RESERVED"||!y(J.last_text,Ke.line_starters)&&J.last_text!=="catch"||De.space_before_conditional&&(x.space_before_token=!0):x.space_before_token=!0,q.text==="("&&ge==="TK_RESERVED"&&J.last_word==="await"&&(x.space_before_token=!0),q.text!=="("||ge!=="TK_EQUALS"&&ge!=="TK_OPERATOR"||pt()||je(),xe(He),me(),De.space_in_paren&&(x.space_before_token=!0),R()},TK_END_EXPR:function(){for(;J.mode===ne.Statement;)ke();J.multiline_frame&&je(q.text==="]"&&nt(J.mode)&&!De.keep_array_indentation),De.space_in_paren&&(ge!=="TK_START_EXPR"||De.space_in_empty_paren?x.space_before_token=!0:(x.trim(),x.space_before_token=!1)),(q.text==="]"&&De.keep_array_indentation?(me(),ke):(ke(),me))(),x.remove_redundant_indentation(be),J.do_while&&be.mode===ne.Conditional&&(be.mode=ne.Expression,J.do_block=!1,J.do_while=!1)}
1,TK_START_BLOCK:function(){var He=Et(1),ft=Et(2);!ft||!(ft.text===":"&&y(He.type,["TK_STRING","TK_WORD","TK_RESERVED"])||y(He.text,["get","set"])&&y(ft.type,["TK_WORD","TK_RESERVED"]))||y(U,["class","interface"])?xe(ne.BlockStatement):xe(ne.ObjectLiteral),ft=!He.comments_before.length&&He.text==="}"&&J.last_word==="function"&&ge==="TK_END_EXPR",De.brace_style==="expand"||De.brace_style==="none"&&q.wanted_newline?ge!=="TK_OPERATOR"&&(ft||ge==="TK_EQUALS"||ge==="TK_RESERVED"&&Dt(J.last_text)&&J.last_text!=="else")?x.space_before_token=!0:Pe(!1,!0):ge!=="TK_OPERATOR"&&ge!=="TK_START_EXPR"?ge==="TK_START_BLOCK"?Pe():x.space_before_token=!0:nt(be.mode)&&J.last_text===","&&(U==="}"?x.space_before_token=!0:Pe()),me(),R()},TK_END_BLOCK:function(){for(;J.mode===ne.Statement;)ke();var He=ge==="TK_START_BLOCK";De.brace_style==="expand"?He||Pe():He||(nt(J.mode)&&De.keep_array_indentation?(De.keep_array_indentation=!1,Pe(),De.keep_array_indentation=!0):Pe()),ke(),me()},TK_WORD:Kt,TK_RESERVED:Kt,TK_SEMICOLON:function(){for(Bt()&&(x.space_before_token=!1);J.mode===ne.Statement&&!J.if_block&&!J.do_block;)ke();me()},TK_STRING:function(){Bt()||ge==="TK_RESERVED"||ge==="TK_WORD"?x.space_before_token=!0:ge==="TK_COMMA"||ge==="TK_START_EXPR"||ge==="TK_EQUALS"||ge==="TK_OPERATOR"?pt()||je():Pe(),me()},TK_EQUALS:function(){Bt(),J.declaration_statement&&(J.declaration_assignment=!0),x.space_before_token=!0,me(),x.space_before_token=!0},TK_OPERATOR:function(){Bt();var He,ft;ge==="TK_RESERVED"&&Dt(J.last_text)?(x.space_before_token=!0,me()):q.text==="*"&&ge==="TK_DOT"?me():q.text===":"&&J.in_case?(J.case_body=!0,R(),me(),Pe(),J.in_case=!1):q.text==="::"?me():(ge==="TK_OPERATOR"&&je(),ft=He=!0,y(q.text,["--","++","!","~"])||y(q.text,["-","+"])&&(y(ge,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||y(J.last_text,Ke.line_starters)||J.last_text===",")?(ft=He=!1,!q.wanted_newline||q.text!=="--"&&q.text!=="++"||Pe(!1,!0),J.last_text===" "&&ut(J.mode)&&(He=!0),ge==="TK_RESERVED"?He=!0:ge==="TK_END_EXPR"?He=!(J.last_text==="]"&&(q.text==="--"||q.text==="++")):ge==="TK_OPERATOR"&&(He=y(q.text,["--","-","++","+"])&&y(J.last_text,["--","-","++","+"]),y(q.text,["+","-"]))&&y(J.last_text,["--","++"])&&(ft=!0),J.mode!==ne.BlockStatement&&J.mode!==ne.Statement||J.last_text!=="{"&&J.last_text!==" "||Pe()):q.text===":"?J.ternary_depth===0?He=!1:--J.ternary_depth:q.text==="?"?J.ternary_depth+=1:q.text==="*"&&ge==="TK_RESERVED"&&J.last_text==="function"&&(ft=He=!1),x.space_before_token=x.space_before_token||He,me(),x.space_before_token=ft)},TK_COMMA:function(){J.declaration_statement?(ut(J.parent.mode)&&(J.declaration_assignment=!1),me(),J.declaration_assignment?Pe(J.declaration_assignment=!1,!0):(x.space_before_token=!0,De.comma_first&&je())):(me(),J.mode===ne.ObjectLiteral||J.mode===ne.Statement&&J.parent.mode===ne.ObjectLiteral?(J.mode===ne.Statement&&ke(),Pe()):(x.space_before_token=!0,De.comma_first&&je()))},TK_BLOCK_COMMENT:function(){if(x.raw)x.add_raw_token(q),!q.directives||q.directives.preserve!=="end"||De.test_output_raw||(x.raw=!1);else if(q.directives)Pe(!1,!0),me(),q.directives.preserve==="start"&&(x.raw=!0),Pe(!1,!0);else if(h.newline.test(q.text)||q.wanted_newline){var He,ft=(function(O){O=O.replace(/\x0d/g,"");var we,Le=[];for(we=O.indexOf("\n");we!==-1;)Le.push(O.substring(0,we)),O=O.substring(we+1),we=O.indexOf("\n");return O.length&&Le.push(O),Le})(q.text),bt=!1,la=!1,ia=q.whitespace_before,da=ia.length;for(Pe(!1,!0),1<ft.length&&((function(O,we){for(var Le=0;Le<O.length;Le++)if(j(O[Le]).charAt(0)!==we)return;return 1})(ft.slice(1),"*")?bt=!0:(function(O,we){for(var Le,Ge=0,Ft=O.length;Ge<Ft;Ge++)if((Le=O[Ge])&&Le.indexOf(we)!==0)return;return 1})(ft.slice(1),ia)&&(la=!0)),me(ft[0]),He=1;He<ft.length;He++)Pe(!1,!0),bt?me(" ".concat(ft[He].replace(/^\s+/g,""))):la&&ft[He].length>da?me(ft[He].substring(da)):x.add_token(ft[He]);Pe(!1,!0)}else x.space_before_token=!0,me(),x.space_before_token=!0},TK_COMMENT:function(){q.wanted_newline?Pe(!1,!0):x.trim(!0),x.space_before_token=!0,me(),Pe(!1,!0)},TK_DOT:function(){Bt(),ge==="TK_RESERVED"&&Dt(J.last_text)?x.space_before_token=!0:je(J.last_text===")"&&De.break_chained_methods),me()},TK_UNKNOWN:function(){me(),q.text[q.text.length-1]==="\n"&&Pe()},TK_EOF:function(){for(;
vendor: 1,603 bytes, line 1
1J.mode===ne.Statement;)ke()}},De={},(Q=Q||{}).braces_on_own_line!==void 0&&(De.brace_style=Q.braces_on_own_line?"expand":"collapse"),De.brace_style=Q.brace_style||De.brace_style||"collapse",De.brace_style==="expand-strict"&&(De.brace_style="expand"),De.indent_size=Q.indent_size?parseInt(Q.indent_size,10):4,De.indent_char=Q.indent_char||" ",De.eol=Q.eol||"\n",De.preserve_newlines=Q.preserve_newlines===void 0||Q.preserve_newlines,De.break_chained_methods=Q.break_chained_methods!==void 0&&Q.break_chained_methods,De.max_preserve_newlines=Q.max_preserve_newlines===void 0?0:parseInt(Q.max_preserve_newlines,10),De.space_in_paren=Q.space_in_paren!==void 0&&Q.space_in_paren,De.space_in_empty_paren=Q.space_in_empty_paren!==void 0&&Q.space_in_empty_paren,De.jslint_happy=Q.jslint_happy!==void 0&&Q.jslint_happy,De.space_after_anon_function=Q.space_after_anon_function!==void 0&&Q.space_after_anon_function,De.keep_array_indentation=Q.keep_array_indentation!==void 0&&Q.keep_array_indentation,De.space_before_conditional=Q.space_before_conditional===void 0||Q.space_before_conditional,De.unescape_strings=Q.unescape_strings!==void 0&&Q.unescape_strings,De.wrap_line_length=Q.wrap_line_length===void 0?0:parseInt(Q.wrap_line_length,10),De.e4x=Q.e4x!==void 0&&Q.e4x,De.end_with_newline=Q.end_with_newline!==void 0&&Q.end_with_newline,De.comma_first=Q.comma_first!==void 0&&Q.comma_first,De.test_output_raw=Q.test_output_raw!==void 0&&Q.test_output_raw,De.jslint_happy&&(De.space_after_anon_function=!0),Q.indent_with_tabs&&(De.indent_char=" ",De.indent_size=1),De.eol=De.eol.replace(/\\r/,"\r").replace(/\\n
1/,"\n"),Oe="";0<De.indent_size;)Oe+=De.indent_char,--De.indent_size;var Ae=0;if(E&&E.length){for(;E.charAt(Ae)===" "||E.charAt(Ae)===" ";)Y+=E.charAt(Ae),Ae+=1;E=E.substring(Ae)}function dt(He){var ft=He.newlines;if(De.keep_array_indentation&&nt(J.mode))for(var bt=0;bt<ft;bt+=1)Pe(0<bt);else if(De.max_preserve_newlines&&ft>De.max_preserve_newlines&&(ft=De.max_preserve_newlines),De.preserve_newlines&&1<He.newlines){Pe();for(var la=1;la<ft;la+=1)Pe(!0)}it[(q=He).type]()}function je(He){He=He!==void 0&&He,x.just_added_newline()||(De.preserve_newlines&&q.wanted_newline||He||De.wrap_line_length&&x.current_line.get_character_count()+q.text.length+(x.space_before_token?1:0)>=De.wrap_line_length)&&Pe(!1,!0)}function Pe(He,ft){if(!ft&&J.last_text!==" "&&J.last_text!==","&&J.last_text!=="="&&ge!=="TK_OPERATOR")for(;J.mode===ne.Statement&&!J.if_block&&!J.do_block;)ke();x.add_new_line(He)&&(J.multiline_frame=!0)}function qe(){x.just_added_newline()&&(De.keep_array_indentation&&nt(J.mode)&&q.wanted_newline?(x.current_line.push(q.whitespace_before),x.space_before_token=!1):x.set_indent(J.indentation_level)&&(J.line_indent_level=J.indentation_level))}function me(He){x.raw?x.add_raw_token(q):(De.comma_first&&ge==="TK_COMMA"&&x.just_added_newline()&&x.previous_line.last()===","&&(x.previous_line.pop(),qe(),x.add_token(","),x.space_before_token=!0),He=He||q.text,qe(),x.add_token(He))}function R(){J.indentation_level+=1}function xe(He){be=J?(Ne.push(J),J):Ye(null,He),J=Ye(be,He)}function nt(He){return He===ne.ArrayLiteral}function ut(He){return y(He,[ne.Expression,ne.ForInitializer,ne.Conditional])}function ke(){0<Ne.length&&(be=J,J=Ne.pop(),be.mode===ne.Statement)&&x.remove_redundant_indentation(be)}function pt(){return J.parent.mode===ne.ObjectLiteral&&J.mode===ne.Statement&&(J.last_text===":"&&J.ternary_depth===0||ge==="TK_RESERVED"&&y(J.last_text,["get","set"]))}function Bt(){return(ge==="TK_RESERVED"&&y(J.last_text,["const","let","const"])&&q.type==="TK_WORD"||ge==="TK_RESERVED"&&J.last_text==="do"||ge==="TK_RESERVED"&&J.last_text==="return"&&!q.wanted_newline||ge==="TK_RESERVED"&&J.last_text==="else"&&(q.type!=="TK_RESERVED"||q.text!=="if")||ge==="TK_END_EXPR"&&(be.mode===ne.ForInitializer||be.mode===ne.Conditional)||ge==="TK_WORD"&&J.mode===ne.BlockStatement&&!J.in_case&&q.text!=="--"&&q.text!=="++"&&U!=="function"&&q.type!=="TK_WORD"&&q.type!=="TK_RESERVED"||J.mode===ne.ObjectLiteral&&(J.last_text===":"&&J.ternary_depth===0||ge==="TK_RESERVED"&&y(J.last_text,["get","set"])))&&(xe(ne.Statement),R(),ge==="TK_RESERVED"&&y(J.last_text,["const","let","const"])&&q.type==="TK_WORD"&&(J.declaration_statement=!0),pt()||je(q.type==="TK_RESERVED"&&y(q.text,["do","for","if","while"])),1)}function Dt(He){return y(He,["case","return","do","if","throw","else"])}function Et(He){return He=te+(He||0),He<0||He>=Vt.length?null:Vt[He]}function Kt(){if(q.type==="TK_RESERVED"&&J.mode!==ne.ObjectLiteral&&y(q.text,["set","get"])&&(q.type="TK_WORD"),q.type==="TK_RESERVED"&&J.mode===ne.ObjectLiteral&&Et(1).text===":"&&(q.type="TK_WORD"),Bt()||!q.wanted_newline||ut(J.mode)||ge==="TK_OPERATOR"&&J.last_text!=="--"&&J.last_text!=="++"||ge==="TK_EQUALS"||!De.preserve_newlines&&ge==="TK_RESERVED"&&y(J.last_text,["const","let","const","set","get"])||Pe(),J.do_block&&!J.do_while){if(q.type==="TK_RESERVED"&&q.text==="while")return x.space_before_token=!0,me(),x.space_before_token=!0,void(J.do_while=!0);Pe(),J.do_block=!1}if(J.if_block)if(J.else_block||q.type!=="TK_RESERVED"||q.text!=="else"){for(;J.mode===ne.Statement;)ke();J.if_block=!1,J.else_block=!1}else J.else_block=!0;q.type==="TK_RESERVED"&&(q.text==="case"||q.text==="default"&&J.in_case_statement)?(Pe(),(J.case_body||De.jslint_happy)&&(0<J.indentation_level&&(!J.parent||J.indentation_level>J.parent.indentation_level)&&--J.indentation_level,J.case_body=!1),me(),J.in_case=!0,J.in_case_statement=!0):(q.type==="TK_RESERVED"&&q.text==="function"&&(!(y(J.last_text,["}"," "])||x.just_added_newline()&&!y(J.last_text,["[","{",":","=",","]))||x.just_added_blankline()||q.comments_before.length||(Pe(),Pe(!0)),ge==="TK_RESERVED"||ge==="TK_WORD"?ge==="TK_RESERVED"&&y(J.last_text,["get","set","new","return","export","async"])||ge==="TK_RESERVED"&&J.last_text==="default"&&U==="export"?x.space_before_token=!0:Pe():ge==="TK_OPERATOR"||J.last_text==="="?x.space_before_token=!0:!J.multiline_frame&&(ut(J.mode)||nt(J.mode))||Pe()),ge!=="TK_COMMA"&&ge!=="TK_START_EXPR"&&ge!=="TK_EQUALS"&&ge!=="TK_OPERATOR"||pt()||je(),q.type==="TK_RESERVED"&&y(q.text,["function","get","set"])?(me(),J.last_word=q.text):(u="NONE",ge==="TK_END_BLOCK"?q.type!=="TK_RESERVED"||!y(q.text,["else","catch","finally"])||De.brace_style==="expand"||De.brace_style==="end-expand"||De.brace_style==="none"&&q.wanted_newline?u="NEWLINE":(u="SPACE",x.space_before_token=!0):ge==="TK_SEMICOLON"&&J.mode===ne.BlockStatement?u="NEWLINE":ge==="TK_SEMICOLON"&&ut(J.mode)?u="SPACE":ge==="TK_STRING"?u="NEWLINE":ge==="TK_RESERVED"||ge==="TK_WORD"||J.last_text==="*"&&U==="function"?u="SPACE":ge==="TK_START_BLOCK"?u="NEWLINE":ge==="TK_END_EXPR"&&(x.space_before_token=!0,u="NEWLINE"),q.type==="TK_RESERVED"&&y(q.text,Ke.line_starters)&&J.last_text!==")"&&(u=J.last_text==="else"||J.last_text==="export"?"SPACE":"NEWLINE"),q.type==="TK_RESERVED"&&y(q.text,["else","catch","finally"])?ge!=="TK_END_BLOCK"||De.brace_style==="expand"||De.brace_style==="end-expand"||De.brace_style==="none"&&q.wanted_newline?Pe():(x.trim(!0),x.current_line.last()!=="}"&&Pe(),x.space_before_token=!0):u==="NEWLINE"?ge==="TK_RESERVED"&&Dt(J.last_text)?x.space_before_token=!0:ge!=="TK_END_EXPR"?ge==="TK_START_EXPR"&&q.type==="TK_RESERVED"&&y(q.text,["const","let","const"])||J.last_text===":"||(q.type==="TK_RESERVED"&&q.text==="if"&&J.last_text==="else"?x.space_before_token=!0:Pe()):q.type==="TK_RESERVED"&&y(q.text,Ke.line_starters)&&J.last_text!==")"&&Pe():J.multiline_frame&&nt(J.mode)&&J.last_text===","&&U==="}"?Pe():u==="SPACE"&&(x.space_before_token=!0),me(),J.last_word=q.text,q.type==="TK_RESERVED"&&q.text==="do"&&(J.do_block=!0),q.type==="TK_RESERVED"&&q.text==="if"&&(J.if_block=!0)))}ge="TK_START_BLOCK",U="",(x=new g(Oe,Y)).raw=De.test_output_raw,Ne=[],xe(ne.BlockStatement),this.beautify=function(){var He,ft;for(Ke=new k(E,De),Vt=Ke.tokenize(),te=0;He=Et();){for(var bt=0;bt<He.comments_before.length;bt++)dt(He.comments_before[bt]);dt(He),U=J.last_text,ge=He.type,J.last_text=He.text,te+=1}
1return ft=x.get_code(),De.end_with_newline&&(ft+="\n"),ft=De.eol!="\n"?ft.replace(/[\n]/g,De.eol):ft}}function v(E){var Q=0,x=-1,te=[],Ke=!0;this.set_indent=function(q){Q=E.baseIndentLength+q*E.indent_length,x=q},this.get_character_count=function(){return Q},this.is_empty=function(){return Ke},this.last=function(){return this._empty?null:te[te.length-1]},this.push=function(q){te.push(q),Q+=q.length,Ke=!1},this.pop=function(){var q=null;return Ke||(q=te.pop(),Q-=q.length,Ke=te.length===0),q},this.remove_indent=function(){0<x&&(--x,Q-=E.indent_length)},this.trim=function(){for(;this.last()===" ";)te.pop(),--Q;Ke=te.length===0},this.toString=function(){var q="";return this._empty||(0<=x&&(q=E.indent_cache[x]),q+=te.join("")),q}}function g(E,Q){Q=Q||"",this.indent_cache=[Q],this.baseIndentLength=Q.length,this.indent_length=E.length,this.raw=!1;var x=[];this.baseIndentString=Q,this.indent_string=E,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new v(this),x.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return x.length},this.add_new_line=function(te){return!(this.get_line_number()===1&&this.just_added_newline()||!te&&this.just_added_newline()||(this.raw||this.add_outputline(),0))},this.get_code=function(){return x.join("\n").replace(/[\r\n\t ]+$/,"")},this.set_indent=function(te){if(1<x.length){for(;te>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(te),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(te){for(var Ke=0;Ke<te.newlines;Ke++)this.add_outputline();this.current_line.push(te.whitespace_before),this.current_line.push(te.text),this.space_before_token=!1},this.add_token=function(te){this.add_space_before_token(),this.current_line.push(te)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(te){if(!te.multiline_frame&&te.mode!==ne.ForInitializer&&te.mode!==ne.Conditional)for(var Ke=te.start_line_index,q=x.length;Ke<q;)x[Ke].remove_indent(),Ke++},this.trim=function(te){for(te=te!==void 0&&te,this.current_line.trim(E,Q);te&&1<x.length&&this.current_line.is_empty();)x.pop(),this.current_line=x[x.length-1],this.current_line.trim();this.previous_line=1<x.length?x[x.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){return!!this.just_added_newline()&&(x.length===1||x[x.length-2].is_empty())}}var I=function(Q,x,te,Ke,q,ge){this.type=Q,this.text=x,this.comments_before=[],this.newlines=te||0,this.wanted_newline=0<te,this.whitespace_before=Ke||"",this.parent=null,this.directives=null};function k(E,Q,x){var te,Ke,q,ge,U,Oe,J="\n\r ".split(""),be=/[0-9]/,Ne=/[01234567]/,u=/[0123456789abcdefABCDEF]/,it="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>".split(" "),De=(this.line_starters="continue,try,throw,return,const,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"])),Vt=/([\s\S]*?)((?:\*\/)|$)/g,Y=/([^\n\r\u2028\u2029]*)/g,Ye=/\/\* beautify( \w+[:]\w+)+ \*\//g,Ae=/ (\w+)[:](\w+)/g,dt=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,je=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;function Pe(){var qe=[];if(te=0,Ke="",Oe<=U)return["","TK_EOF"];var me=ge.length?ge[ge.length-1]:new I("TK_START_BLOCK","{"),R=E.charAt(U);for(U+=1;y(R,J);){if(h.newline.test(R)?R==="\n"&&E.charAt(U-2)==="\r"||(te+=1,qe=[]):qe.push(R),Oe<=U)return["","TK_EOF"];R=E.charAt(U),U+=1}if(qe.length&&(Ke=qe.join("")),be.test(R)){var xe=!0,nt=!0,ut=be;for(R==="0"&&U<Oe&&/[Xxo]/.test(E.charAt(U))?(nt=xe=!1,R+=E.charAt(U),U+=1,ut=/[o]/.test(E.charAt(U))?Ne:u):(R="",--U);U<Oe&&ut.test(E.charAt(U));)R+=E.charAt(U),U+=1,xe&&U<Oe&&E.charAt(U)==="."&&(R+=E.charAt(U),U+=1,xe=!1),nt&&U<Oe&&/[Ee]/.test(E.charAt(U))&&(R+=E.charAt(U),(U+=1)<Oe&&/[+-]/.test(E.charAt(U))&&(R+=E.charAt(U),U+=1),xe=nt=!1);return[R,"TK_WORD"]}if(h.isIdentifierStart(E.charCodeAt(U-1))){if(U<Oe)for(;h.isIdentifierChar(E.charCodeAt(U))&&(R+=E.charAt(U),(U+=1)!==Oe););return me.type==="TK_DOT"||me.type==="TK_RESERVED"&&y(me.text,["set","get"])||!y(R,De)?[R,"TK_WORD"]:R==="in"?[R,"TK_OPE
1RATOR"]:[R,"TK_RESERVED"]}if(R==="("||R==="[")return[R,"TK_START_EXPR"];if(R===")"||R==="]")return[R,"TK_END_EXPR"];if(R==="{")return[R,"TK_START_BLOCK"];if(R==="}")return[R,"TK_END_BLOCK"];if(R===" ")return[R,"TK_SEMICOLON"];if(R==="/"){var ke="";if(E.charAt(U)==="*")return U+=1,Vt.lastIndex=U,Ft=Vt.exec(E),ke="/*".concat(Ft[0]),U+=Ft[0].length,(Le=(function(qt){if(!qt.match(Ye))return null;for(var Tt={},ht=(Ae.lastIndex=0,Ae.exec(qt));ht;)Tt[ht[1]]=ht[2],ht=Ae.exec(qt);return Tt})(ke))&&Le.ignore==="start"&&(dt.lastIndex=U,ke+=(Ft=dt.exec(E))[0],U+=Ft[0].length),[ke=ke.replace(h.lineBreak,"\n"),"TK_BLOCK_COMMENT",Le];if(E.charAt(U)==="/")return U+=1,Y.lastIndex=U,Ft=Y.exec(E),ke="//".concat(Ft[0]),U+=Ft[0].length,[ke,"TK_COMMENT"]}if(R==="`"||R==="'"||R==='"'||(R==="/"||Q.e4x&&R==="<"&&E.slice(U-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/))&&(me.type==="TK_RESERVED"&&y(me.text,["return","case","throw","else","do","typeof","yield"])||me.type==="TK_END_EXPR"&&me.text===")"&&me.parent&&me.parent.type==="TK_RESERVED"&&y(me.parent.text,["if","while","for"])||y(me.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var pt=R,Bt=!1,Dt=!1,Et=R;if(pt==="/")for(var Kt=!1;U<Oe&&(Bt||Kt||E.charAt(U)!==pt)&&!h.newline.test(E.charAt(U));)Et+=E.charAt(U),Bt?Bt=!1:(Bt=E.charAt(U)==="\\",E.charAt(U)==="["?Kt=!0:E.charAt(U)==="]"&&(Kt=!1)),U+=1;else if(Q.e4x&&pt==="<"){var He=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/g,ft=E.slice(U-1),bt=He.exec(ft);if(bt&&bt.index===0){for(var la=bt[2],ia=0;bt;){var da=!!bt[1],O=bt[2],we=!!bt[bt.length-1]||O.slice(0,8)==="![CDATA[";if(O!==la||we||(da?--ia:++ia),ia<=0)break;bt=He.exec(ft)}var Le=bt?bt.index+bt[0].length:ft.length,ft=ft.slice(0,Le);return U+=Le-1,[ft=ft.replace(h.lineBreak,"\n"),"TK_STRING"]}}else for(;U<Oe&&(Bt||E.charAt(U)!==pt&&(pt==="`"||!h.newline.test(E.charAt(U))));)(Bt||pt==="`")&&h.newline.test(E.charAt(U))?(E.charAt(U)==="\r"&&E.charAt(U+1)==="\n"&&(U+=1),Et+="\n"):Et+=E.charAt(U),Bt=Bt?(E.charAt(U)!=="x"&&E.charAt(U)!=="u"||(Dt=!0),!1):E.charAt(U)==="\\",U+=1;if(Dt&&Q.unescape_strings&&(Et=(function(qt){for(var Tt,ht=!1,yt="",Yt=0,ta="",Pt=0;ht||Yt<qt.length;)if(Tt=qt.charAt(Yt),Yt++,ht){if(ht=!1,Tt==="x")ta=qt.substr(Yt,2),Yt+=2;else{if(Tt!=="u"){yt+="\\".concat(Tt);continue}ta=qt.substr(Yt,4),Yt+=4}if(!ta.match(/^[0123456789abcdefABCDEF]+$/))return qt;if(0<=(Pt=parseInt(ta,16))&&Pt<32)yt+=(Tt==="x"?"\\x":"\\u").concat(ta);else if(Pt===34||Pt===39||Pt===92)yt+="\\".concat(String.fromCharCode(Pt));else{if(Tt==="x"&&126<Pt&&Pt<=255)return qt;yt+=String.fromCharCode(Pt)}}else Tt==="\\"?ht=!0:yt+=Tt;return yt})(Et)),U<Oe&&E.charAt(U)===pt&&(Et+=pt,U+=1,pt==="/"))for(;U<Oe&&h.isIdentifierStart(E.charCodeAt(U));)Et+=E.charAt(U),U+=1;return[Et,"TK_STRING"]}if(R==="#"){if(ge.length===0&&E.charAt(U)==="!"){for(Et=R;U<Oe&&R!=="\n";)Et+=R=E.charAt(U),U+=1;return["".concat(j(Et),"\n"),"TK_UNKNOWN"]}var Ge="#";if(U<Oe&&be.test(E.charAt(U))){for(;Ge+=R=E.charAt(U),(U+=1)<Oe&&R!=="#"&&R!=="=";);return R!=="#"&&(E.charAt(U)==="["&&E.charAt(U+1)==="]"?(Ge+="[]",U+=2):E.charAt(U)==="{"&&E.charAt(U+1)==="}"&&(Ge+="{}",U+=2)),[Ge,"TK_WORD"]}}if(R==="<"&&(E.charAt(U)==="?"||E.charAt(U)==="%")){je.lastIndex=U-1;var Ft=je.exec(E);if(Ft)return R=Ft[0],U+=R.length-1,[R=R.replace(h.lineBreak,"\n"),"TK_STRING"]}if(R==="<"&&E.substring(U-1,U+3)==="<!--"){for(U+=3,R="<!--";!h.newline.test(E.charAt(U))&&U<Oe;)R+=E.charAt(U),U++;return q=!0,[R,"TK_COMMENT"]}if(R==="-"&&q&&E.substring(U-1,U+2)==="-->")return q=!1,U+=2,["-->","TK_COMMENT"];if(R===".")return[R,"TK_DOT"];if(y(R,it)){for(;U<Oe&&y(R+E.charAt(U),it)&&(R+=E.charAt(U),!(Oe<=(U+=1))););return R===","?[R,"TK_COMMA"]:R==="="?[R,"TK_EQUALS"]:[R,"TK_OPERATOR"]}return[R,"TK_UNKNOWN"]}this.tokenize=function(){Oe=E.length,U=0,q=!1,ge=[];for(var qe,me,R,xe=null,nt=[],ut=[];!me||me.type!=="TK_EOF";){for(R=Pe(),qe=new I(R[1],R[0],te,Ke);qe.type==="TK_COMMENT"||qe.type==="TK_BLOCK_COMMENT"||qe.type==="TK_UNKNOWN";)qe.type==="TK_BLOCK_COMMENT"&&(qe.directives=R[2]),ut.push(qe),R=Pe(),qe=new I(R[1],R[0],te,Ke);ut.length&&(qe.comments_before=ut,ut=[]),qe.type==="TK_START_BLOCK"||qe.type==="TK_START_EXPR"?(qe.parent=me,nt.push(xe),xe=qe):(qe.type==="TK_END_BLOCK"||qe.type==="TK_END_EXPR")&&xe&&(qe.text==="]"&&xe.text==="["||qe.text===")"&&xe.text==="("||qe.text==="}"&&xe.text==="{")&&(qe.parent=xe.parent,xe=nt.pop()),ge.push(qe),me=qe}return ge}}return{run:function(E,Q){function x(me){return me.replace(/\s+$/g,"")}var te,Ke,q,ge,U,Oe,J,be,Ne,u,it,De,Vt,Y;for((Q=Q||{}).wrap_line_length!==void 0&&parseInt(Q.wrap_line_length,10)!==0||Q.max_char===void 0||parseInt(Q.max_char,10)===0||(Q.wrap_line_length=Q.max_char),Ke=Q.indent_inner_html!==void 0&&Q.indent_inner_html,q=Q.indent_size===void 0?4:parseInt(Q.indent_size,10),ge=Q.indent_char===void 0?" ":Q.indent_char,Oe=Q.brace_style===void 0?"collapse":Q.brace_style,U=parseInt(Q.wrap_line_length,10)===0?32786:parseInt(Q.wrap_line_length||250,10),J=Q.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","const","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","address","pre"],be=Q.preserve_newlines===void 0||Q.preserve_newlines,Ne=be?isNaN(parseInt(Q.max_preserve_newlines,10))?32786:parseInt(Q.max_preserve_newlines,10):0,u=Q.indent_handlebars!==void 0&&Q.indent_handlebars,it=Q.wrap_attributes===void 0?"auto":Q.wrap_attributes,De=Q.wrap_attributes_indent_size!==void 0&&parseInt(Q.wrap_attributes_indent_size,10)||q,Vt=Q.end_with_newline!==void 0&&Q.end_with_newline,Y=Array.isArray(Q.extra_liners)?Q.extra_liners.concat():(typeof Q.extra_liners=="string"?Q.extra_liners:"head,body,/html").split(","),Q.indent_with_tabs&&(ge=" ",q=1),(te=new function(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=Ke,this.Utils={whitespace:"\n\r ".split(""),single_token:"br,input,link,meta,source,!doctype,basefont,base,area,hr,wbr,param,img,isindex,embed".split(","),extra_liners:Y,in_array:function(R,xe){for(var nt=0;nt<xe.length;nt++)if(R===xe[nt])return!0;return!1}},this.is_whitespace=function(me){for(;0<me.length;me++)if(!this.Utils.in_array(me.charAt(0),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var me="",me=this.input.charAt(this.pos);if(this.Utils.in_array(me,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(me,this.Utils.whitespace);)be&&me==="\n"&&this.newlines<=Ne&&(this.newlines+=1),this.pos++,me=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(me){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,me),this.print_indentation(me)):(this.line_char_count++,me.push(" "))},this.get_content=function(){for(var me=[];this.input.charAt(this.pos)!="<";){if(this.pos>=this.input.length)return me.length?me.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(me);else{if(u){var R=this.input.substr(this.pos,3);if(R==="{{#"||R==="{{/")break;
1if(R==="{{!")return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if(this.input.substr(this.pos,2)==="{{"&&this.get_tag(!0)==="{{else}}")break}R=this.input.charAt(this.pos),this.pos++,this.line_char_count++,me.push(R)}}return me.length?me.join(""):""},this.get_contents_to=function(me){var R;return this.pos===this.input.length?["","TK_EOF"]:(R="",(me=new RegExp("</".concat(me,"\\s*>"),"igm")).lastIndex=this.pos,me=(me=me.exec(this.input))?me.index:this.input.length,this.pos<me&&(R=this.input.substring(this.pos,me),this.pos=me),R)},this.record_tag=function(me){this.tags["".concat(me,"count")]?this.tags["".concat(me,"count")]++:this.tags["".concat(me,"count")]=1,this.tags[me+this.tags["".concat(me,"count")]]=this.indent_level,this.tags[me+this.tags["".concat(me,"count")]+"parent"]=this.tags.parent,this.tags.parent=me+this.tags["".concat(me,"count")]},this.retrieve_tag=function(me){if(this.tags["".concat(me,"count")]){for(var R=this.tags.parent;R&&me+this.tags["".concat(me,"count")]!==R;)R=this.tags["".concat(R,"parent")];R&&(this.indent_level=this.tags[me+this.tags["".concat(me,"count")]],this.tags.parent=this.tags[R+"parent"]),delete this.tags[me+this.tags["".concat(me,"count")]+"parent"],delete this.tags[me+this.tags["".concat(me,"count")]],this.tags["".concat(me,"count")]===1?delete this.tags["".concat(me,"count")]:this.tags["".concat(me,"count")]--}},this.indent_to_tag=function(me){if(this.tags["".concat(me,"count")]){for(var R=this.tags.parent;R&&me+this.tags["".concat(me,"count")]!==R;)R=this.tags["".concat(R,"parent")];R&&(this.indent_level=this.tags[me+this.tags["".concat(me,"count")]])}},this.get_tag=function(me){var R,xe,nt="",ut=[],ke=!1,pt=!0,Bt=this.pos,Dt=this.line_char_count;me=me!==void 0&&me;do{if(this.pos>=this.input.length)return me&&(this.pos=Bt,this.line_char_count=Dt),ut.length?ut.join(""):["","TK_EOF"];if(nt=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(nt,this.Utils.whitespace))ke=!0;else{if(nt!=="'"&&nt!=='"'||(nt+=this.get_unformatted(nt),ke=!0),nt==="="&&(ke=!1),ut.length&&ut[ut.length-1]!="="&&nt!=">"&&ke){if(this.space_or_wrap(ut),ke=!1,!pt&&it==="force"&&nt!="/"){this.print_newline(!0,ut),this.print_indentation(ut);for(var Et=0;Et<De;Et++)ut.push(ge)}for(var Kt=0;Kt<ut.length;Kt++)if(ut[Kt]===" "){pt=!1;break}}if(u&&xe==="<"&&nt+this.input.charAt(this.pos)==="{{"&&(nt+=this.get_unformatted("}}"),ut.length&&ut[ut.length-1]!=" "&&ut[ut.length-1]!="<"&&(nt=" ".concat(nt)),ke=!0),nt!=="<"||xe||(R=this.pos-1,xe="<"),u&&!xe&&2<=ut.length&&ut[ut.length-1]==="{"&&ut[ut.length-2]==="{"&&(R=nt==="#"||nt==="/"||nt==="!"?this.pos-3:this.pos-2,xe="{"),this.line_char_count++,ut.push(nt),ut[1]&&(ut[1]==="!"||ut[1]==="?"||ut[1]==="%")){ut=[this.get_comment(R)];break}if(u&&ut[1]&&ut[1]==="{"&&ut[2]&&ut[2]==="!"){ut=[this.get_comment(R)];break}if(u&&xe==="{"&&2<ut.length&&ut[ut.length-2]==="}"&&ut[ut.length-1]==="}")break}}while(nt!=">");var He=ut.join(""),ft=He.indexOf(" ")!=-1?He.indexOf(" "):He[0]==="{"?He.indexOf("}"):He.indexOf(">"),bt=He[0]!=="<"&&u?He[2]==="#"?3:2:1,bt=He.substring(bt,ft).toLowerCase();return He.charAt(He.length-2)==="/"||this.Utils.in_array(bt,this.Utils.single_token)?me||(this.tag_type="SINGLE"):u&&He[0]==="{"&&bt==="else"?me||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(bt,J)?(ft=this.get_unformatted("</".concat(bt,">"),He),ut.push(ft),this.pos,this.tag_type="SINGLE"):bt==="script"&&(He.search("type")===-1||-1<He.search("type")&&-1<He.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/))?me||(this.record_tag(bt),this.tag_type="SCRIPT"):bt==="style"&&(He.search("type")===-1||-1<He.search("type")&&-1<He.search("text/css"))?me||(this.record_tag(bt),this.tag_type="STYLE"):bt.charAt(0)==="!"?me||(this.tag_type="SINGLE",this.traverse_whitespace()):me||(bt.charAt(0)==="/"?(this.retrieve_tag(bt.substring(1)),this.tag_type="END"):(this.record_tag(bt),bt.toLowerCase()!="html"&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(ut),this.Utils.in_array(bt,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length)&&this.output[this.output.length-2]!="\n"&&this.print_newline(!0,this.output)),me&&(this.pos=Bt,this.line_char_count=Dt),ut.join("")},this.get_comment=function(me){var R="",xe=">",nt=!1,ut=(this.pos=me,this.input.charAt(this.pos));for(this.pos++;this.pos<=this.input.length&&((R+=ut)[R.length-1]!==xe[xe.length-1]||R.indexOf(xe)==-1);)!nt&&R.length<10&&(R.indexOf("<![if")===0?(xe="<![endif]>",nt=!0):R.indexOf("<![cdata[")===0?(xe="]]>",nt=!0):R.indexOf("<![")===0?(xe="]>",nt=!0):R.indexOf("<!--")===0?(xe="-->",nt=!0):R.indexOf("{{!")===0?(xe="}}",nt=!0):R.indexOf("<?")===0?(xe="?>",nt=!0):R.indexOf("<%")===0&&(xe="%>",nt=!0)),ut=this.input.charAt(this.pos),this.pos++;return R},this.get_unformatted=function(me,R){if(R&&R.toLowerCase().indexOf(me)!=-1)return"";var xe="",nt="",ut=!0,ke="";do{if(this.pos>=this.input.length)return nt;if(xe=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(xe,this.Utils.whitespace)){if(!ut){this.line_char_count--;continue}if(xe==="\n"||xe==="\r"){nt+="\n",this.line_char_count=0;continue}}nt+=xe,(ke+=xe.toLowerCase()).length>me.length&&(ke=ke.substring(1)),this.line_char_count++,ut=!0,u&&xe==="{"&&nt.length&&nt[nt.length-2]==="{"&&(nt+=this.get_unformatted("}}"))}while(ke!==me);return nt},this.get_token=function(){var me,R;return this.last_token==="TK_TAG_SCRIPT"||this.last_token==="TK_TAG_STYLE"?(me=this.last_token.substr(7),typeof(R=this.get_contents_to(me))!="str
1ing"?R:[R,"TK_".concat(me)]):this.current_mode==="CONTENT"?typeof(R=this.get_content())!="string"?R:[R,"TK_CONTENT"]:this.current_mode==="TAG"?typeof(R=this.get_tag())!="string"?R:[R,"TK_TAG_".concat(this.tag_type)]:void 0},this.get_full_indent=function(me){return(me=this.indent_level+me||0)<1?"":new Array(me+1).join(this.indent_string)},this.is_unformatted=function(me,R){return!(!this.Utils.in_array(me,R)||me.toLowerCase()=="a"&&this.Utils.in_array("a",R)&&(me=(this.get_tag(!0)||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/))&&!this.Utils.in_array(me,R))},this.printer=function(me,R,xe,nt,ut){this.input=me||"",this.output=[],this.indent_character=R,this.indent_string="",this.indent_size=xe,this.brace_style=ut,this.indent_level=0,this.wrap_line_length=nt;for(var ke=this.line_char_count=0;ke<this.indent_size;ke++)this.indent_string+=this.indent_character;this.print_newline=function(pt,Bt){this.line_char_count=0,Bt&&Bt.length&&(!pt&&Bt[Bt.length-1]=="\n"||(Bt[Bt.length-1]!="\n"&&(Bt[Bt.length-1]=x(Bt[Bt.length-1])),Bt.push("\n")))},this.print_indentation=function(pt){for(var Bt=0;Bt<this.indent_level;Bt++)pt.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(pt){this.is_whitespace(pt)&&!this.output.length||((pt||pt!=="")&&this.output.length&&this.output[this.output.length-1]==="\n"&&(this.print_indentation(this.output),pt=pt.replace(/^\s+/g,"")),this.print_token_raw(pt))},this.print_token_raw=function(pt){(pt=0<this.newlines?x(pt):pt)&&pt!==""&&(1<pt.length&&pt[pt.length-1]==="\n"?(this.output.push(pt.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(pt));for(var Bt=0;Bt<this.newlines;Bt++)this.print_newline(0<Bt,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){0<this.indent_level&&this.indent_level--}},this}).printer(E,ge,q,U,Oe);;){var Ye,Ae,dt,je,Pe=te.get_token();if(te.token_text=Pe[0],te.token_type=Pe[1],te.token_type==="TK_EOF")break;switch(te.token_type){case"TK_TAG_START":te.print_newline(!1,te.output),te.print_token(te.token_text),te.indent_content&&(te.indent(),te.indent_content=!1),te.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":te.print_newline(!1,te.output),te.print_token(te.token_text),te.current_mode="CONTENT";break;case"TK_TAG_END":te.last_token==="TK_CONTENT"&&te.last_text===""&&(qe=te.token_text.match(/\w+/)[0],(je=null)!==(je=te.output.length?te.output[te.output.length-1].match(/(?:<|{{#)\/?\s*(\w+)/):je)&&(je[1]==qe||te.Utils.in_array(je[1],J))||te.print_newline(!1,te.output)),te.print_token(te.token_text),te.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var qe=te.token_text.match(/^\s*<([a-z-]+)/i);qe&&te.Utils.in_array(qe[1],J)||te.print_newline(!1,te.output),te.print_token(te.token_text),te.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":te.print_token(te.token_text),te.indent_content&&(te.indent(),te.indent_content=!1),te.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":case"TK_CONTENT":te.print_token(te.token_text),te.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":te.token_text!==""&&(te.print_newline(!1,te.output),je=te.token_text,Ae=void 0,dt=1,te.token_type==="TK_SCRIPT"?Ae=P:te.token_type==="TK_STYLE"&&(Ae=a),Q.indent_scripts==="keep"?dt=0:Q.indent_scripts==="separate"&&(dt=-te.indent_level),Ye=te.get_full_indent(dt),je=Ae?Ae(je.replace(/^\s*/,Ye),Q):(Ae=je.match(/^\s*/)[0].match(/[^\n\r]*$/)[0].split(te.indent_string).length-1,dt=te.get_full_indent(dt-Ae),je.replace(/^\s*/,Ye).replace(/\r\n|\r|\n/g,"\n"+dt).replace(/\s+$/,"")))&&(te.print_token_raw(je),te.print_newline(!0,te.output)),te.current_mode="TAG";break;default:te.token_text!==""&&te.print_token(te.token_text)}te.last_token=te.token_type,te.last_text=te.token_text}return E=te.output.join("").replace(/[\r\n\t ]+$/,""),Vt&&(E+="\n"),E}}}})});var $i=Ba((ti,zi)=>{"use strict";(function(o,e){typeof ti=="object"&&typeof zi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ti,function(o){"use strict";Object.assign(o.DEFAULTS,{codeMirror:window.CodeMirror,codeMirrorOptions:{lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!0,mode:"text/html",tabSize:2},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","ol","table","dl"],brace_style:"expand",indent_char:" ",indent_size:1,wrap_line_length:0},codeViewKeepActiveButtons:["fullscreen"]}),o.PLUGINS.codeView=function(e){var d,t,s,h=e.$;function a(){return t?t.getValue():d.val()}function y(){s()&&(t&&t.setSize(null,e.opts.height||"auto"),e.opts.heightMin||e.opts.height?(e.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",e.opts.heightMin||e.opts.height),d.css("height",e.opts.height)):e.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",""))}var j,P=!1;function ne(){s()&&e.events.trigger("blur")}function ue(){s()&&P&&e.events.trigger("focus")}function v(k){d||(d=h('<textarea class="fr-code" tabIndex="-1">'),e.$wp.append(d),d.attr("dir",e.opts.direction),e.$box.hasClass("fr-basic")||(j=h('<a data-cmd="html" title="Code View" class="fr-command fr-btn html-switch'.concat(e.helpers.isMobile()?"":" fr-desktop",'" role="button" tabIndex="-1"><i class="fa fa-code"></i></button>')),e.$box.append(j),e.events.bindClick(e.$box,"a.html-switch",function(){e.events.trigger("commands.before",["html"]),g(!1),e.events.trigger("commands.after",["html"])})),E=function(){return!s()},e.events.on("buttons.refresh",E),e.events.on("copy",E,!0),e.events.on("cut",E,!0),e.events.on("paste",E,!0),e.events.on("destroy",I,!0),e.events.on("html.set",function(){s()&&g(!0)}),e.events.on("codeView.update",y),e.events.on("codeView.toggle",function(){e.$box.hasClass("fr-code-view")&&g()}),e.events.on("form.submit",function(){s()&&(e.html.set(a()),e.events.trigger("contentChanged",[],!0))}
vendor: 4,218 bytes, line 1
1,!0),!t&&e.opts.codeMirror?((t=e.opts.codeMirror.fromTextArea(d.get(0),e.opts.codeMirrorOptions)).on("blur",ne),t.on("focus",ue)):(e.events.$on(d,"keydown keyup change input",function(){e.opts.height?this.removeAttribute("rows"):(this.rows=1,this.value.length===0?this.style.height="auto":this.style.height="".concat(this.scrollHeight,"px"))}),e.events.$on(d,"blur",ne),e.events.$on(d,"focus",ue))),e.undo.saveStep(),e.html.cleanEmptyTags(),e.html.cleanWhiteTags(!0),e.core.hasFocus()&&!e.core.isEmpty()&&(e.selection.save(),e.$el.find('.fr-marker[data-type="true"]').first().replaceWith('<span class="fr-tmp fr-sm">F</span>'),e.$el.find('.fr-marker[data-type="false"]').last().replaceWith('<span class="fr-tmp fr-em">F</span>'));var E,Q,x,te,Ke,q=e.html.get(!1,!0),ge=(e.$el.find("span.fr-tmp").remove(),e.$box.toggleClass("fr-code-view",!0),!1);e.core.hasFocus()&&(ge=!0,e.events.disableBlur(),e.$el.blur()),q=(q=q.replace(/<span class="fr-tmp fr-sm">F<\/span>/,"FROALA-SM")).replace(/<span class="fr-tmp fr-em">F<\/span>/,"FROALA-EM"),e.codeBeautifier&&!q.includes("fr-embedly")&&(q=e.codeBeautifier.run(q,e.opts.codeBeautifierOptions)),t?(x=q.indexOf("FROALA-SM"),(te=q.indexOf("FROALA-EM"))<x?x=te:te-=9,Ke=(q=q.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).substring(0,x).length-q.substring(0,x).replace(/\n/g,"").length,Q=q.substring(0,te).length-q.substring(0,te).replace(/\n/g,"").length,x=q.substring(0,x).length-q.substring(0,q.substring(0,x).lastIndexOf("\n")+1).length,te=q.substring(0,te).length-q.substring(0,q.substring(0,te).lastIndexOf("\n")+1).length,t.setSize(null,e.opts.height||"auto"),e.opts.heightMin&&e.$box.find(".CodeMirror-scroll").css("min-height",e.opts.heightMin),t.setValue(q),P=!ge,t.focus(),P=!0,t.setSelection({line:Ke,ch:x},{line:Q,ch:te}),t.refresh(),t.clearHistory()):(x=q.indexOf("FROALA-SM"),te=q.indexOf("FROALA-EM")-9,e.opts.heightMin&&d.css("min-height",e.opts.heightMin),e.opts.height&&d.css("height",e.opts.height),e.opts.heightMax&&d.css("max-height",e.opts.height||e.opts.heightMax),d.val(q.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).trigger("change"),Ke=h(e.o_doc).scrollTop(),P=!ge,d.focus(),P=!0,d.get(0).setSelectionRange(x,te),h(e.o_doc).scrollTop(Ke)),e.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command, .fr-btn-grp > .fr-btn-wrap > .fr-command, .fr-more-toolbar > .fr-btn-wrap > .fr-command").not(k).filter(function(){return e.opts.codeViewKeepActiveButtons.indexOf(h(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!0),k.addClass("fr-active").attr("aria-pressed",!0),!e.helpers.isMobile()&&e.opts.toolbarInline&&e.toolbar.hide()}function g(k){k===void 0&&(k=!s());var E=e.$tb.find('.fr-command[data-cmd="html"]');k?(e.popups.hideAll(),v(E)):(e.$box.toggleClass("fr-code-view",!1),k=E,E=a(),e.html.set(E),e.$el.blur(),e.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command, .fr-btn-grp > .fr-btn-wrap > .fr-command, .fr-more-toolbar > .fr-btn-wrap > .fr-command").not(k).removeClass("fr-disabled").attr("aria-disabled",!1),k.removeClass("fr-active").attr("aria-pressed",!1),(E=h(e.el).children().first()).is("table")?(k=E.find("td").first()).length&&e.selection.setAtStart(k[0]):e.selection.setAtStart(e.el),e.selection.restore(),e.placeholder.refresh(),e.undo.saveStep(),e.events.trigger("codeView.update"))}function I(){s()&&g(!1),t&&t.toTextArea(),d.val("").removeData().remove(),d=null,j&&(j.remove(),j=null)}return{_init:function(){if(e.events.on("focus",function(){var k;e.opts.toolbarContainer&&(k=e.$tb.find('.fr-command[data-cmd="html"]'),(s()?(e.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").not(k).filter(function(){return e.opts.codeViewKeepActiveButtons.indexOf(h(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!1),k.addClass("fr-active")):(e.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").not(k).removeClass("fr-disabled").attr("aria-disabled",!1),k.removeClass("fr-active"))).attr("aria-pressed",!1))}),!e.$wp)return!1},toggle:g,isActive:s=function(){return e.$box.hasClass("fr-code-view")},get:a}},o.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.co
1deView.toggle()},plugin:"codeView"}),o.DefineIcon("html",{NAME:"code",SVG_KEY:"codeView"})})});var Wi=Ba((ai,Gi)=>{"use strict";(function(o,e){typeof ai=="object"&&typeof Gi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ai,function(o){"use strict";Object.assign(o.POPUP_TEMPLATES,{"textColor.picker":"[_BUTTONS_][_TEXT_COLORS_][_CUSTOM_COLOR_]","backgroundColor.picker":"[_BUTTONS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),Object.assign(o.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsButtons:["colorsBack","|","-"]}),o.PLUGINS.colors=function(e){var d=e.$,t='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer- \n '.concat(e.id,'"><div class="fr-input-line"><input maxlength="9" id="[ID]"\n type="text" placeholder="').concat(e.language.translate("HEX Color"),'" \n tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button \n type="button" class="fr-command fr-submit" data-cmd="[COMMAND]" tabIndex="2" role="button">\n ').concat(e.language.translate("OK"),"</button></div></div>");function s(j){for(var P=j==="text"?e.opts.colorsText:e.opts.colorsBackground,ne='<div class="fr-color-set fr-'.concat(j,'-color fr-selected-set">'),ue=0;ue<P.length;ue++)ue!==0&&ue%e.opts.colorsStep==0&&(ne+="<br>"),P[ue]!=="REMOVE"?ne+='<span class="fr-command fr-select-color" style="background:'.concat(P[ue].toUpperCase(),';" \n tabIndex="-1" aria-selected="false" role="button" data-cmd="apply').concat(j,'Color" \n data-param1="').concat(P[ue].toUpperCase(),'"><span class="fr-sr-only"> ').concat(e.language.translate("Color")).concat(P[ue]," \n </span></span>"):ne+='<span class="fr-command fr-select-color" data-cmd="apply'.concat(j,'Color"\n tabIndex="-1" role="button" data-param1="REMOVE" \n title="').concat(e.language.translate("Clear Formatting"),'">').concat(e.icon.create("remove"),' \n <span class="fr-sr-only"> ').concat(e.language.translate("Clear Formatting")," </span></span>");return"".concat(ne,"</div>")}function h(j){var P=e.popups.get("".concat(j,"Color.picker")),ne=d(e.selection.element()),ue=j==="background"?"background-color":"color",g=P.find(".fr-".concat(j,"-color .fr-select-color"));for(g.find(".fr-selected-color").remove(),g.removeClass("fr-active-item"),g.not('[data-param1="REMOVE"]').attr("aria-selected",!1);ne.get(0)!==e.el;){if(ne.css(ue)!=="transparent"&&ne.css(ue)!=="rgba(0, 0, 0, 0)"){var v=P.find(".fr-".concat(j,'-color .fr-select-color[data-param1="').concat(e.helpers.RGBToHex(ne.css(ue)),'"]'));v.append('<span class="fr-selected-color" aria-hidden="true">\uF00C</span>'),v.addClass("fr-active-item").attr("aria-selected",!0);break}ne=ne.parent()}var g=j,g=(I=e.popups.get("".concat(g,"Color.picker"))).find(".fr-".concat(g,"-color .fr-active-item")).attr("data-param1"),I=I.find(".fr-color-hex-layer input");g=g||"",I.length&&d(I.val(g).input).trigger("change")}function a(j){j!=="REMOVE"?e.format.applyStyle("background-color",e.helpers.HEXtoRGB(j)):e.format.removeStyle("background-color"),e.selection.save(),e.popups.hide("backgroundColor.picker"),e.selection.restore()}function y(j){j!=="REMOVE"?e.format.applyStyle("color",e.helpers.HEXtoRGB(j)):e.format.removeStyle("color"),e.selection.save(),e.popups.hide("textColor.picker"),e.selection.restore()}return{showColorsPopup:function(j){var P,ne,ue=e.$tb.find('.fr-command[data-cmd="'.concat(j,'"]')),v=e.popups.get("".concat(j,".picker"));(v=v||(function(g){var I="";
1e.opts.toolbarInline&&0<e.opts.colorsButtons.length&&(I+='<div class="fr-buttons fr-colors-buttons fr-tabs">\n '.concat(e.button.buildList(e.opts.colorsButtons),"\n </div>"));var k="";return I=g==="textColor"?(e.opts.colorsHEXInput&&(k=t.replace(/\[ID\]/g,"fr-color-hex-layer-text-".concat(e.id)).replace(/\[COMMAND\]/g,"customTextColor")),{buttons:I,text_colors:s("text"),custom_color:k}):(e.opts.colorsHEXInput&&(k=t.replace(/\[ID\]/g,"fr-color-hex-layer-background-".concat(e.id)).replace(/\[COMMAND\]/g,"customBackgroundColor")),{buttons:I,background_colors:s("background"),custom_color:k}),k=e.popups.create("".concat(g,".picker"),I),(function(E,Q){e.events.on("popup.tab",function(x){var te,Ke,q,ge,U,Oe,J,be=d(x.currentTarget);return!e.popups.isVisible(Q)||!be.is("span, input, button")||(te=x.which,Ke=!0,o.KEYCODE.TAB===te?(q=E.find("span.fr-select-color"),(be.is(q.first())&&x.shiftKey||be.is(E.find("span.fr-submit"))&&!x.shiftKey)&&(q=E.find(".fr-buttons"),Ke=!e.accessibility.focusToolbar(q,!!x.shiftKey)),Ke!==!1&&((q=E.find("span.fr-select-color")).add(E.find("input")),q.add(E.find("button.fr-submit")),U=q.index(be),U=x.shiftKey?((U-1)%q.length+q.length)%q.length:(U+1)%q.length,U=q.get(U),e.events.disableBlur(),U.focus(),Ke=!1)):o.KEYCODE.ARROW_UP===te||o.KEYCODE.ARROW_DOWN===te||o.KEYCODE.ARROW_LEFT===te||o.KEYCODE.ARROW_RIGHT===te?be.is("span.fr-select-color")&&(U=(q=be.parent().find("span.fr-select-color")).index(be),ge=e.opts.colorsStep,J=Math.floor(q.length/ge),Oe=U%ge,U=Math.floor(U/ge)*ge+Oe,Oe=J*ge,o.KEYCODE.ARROW_UP===te?U=((U-ge)%Oe+Oe)%Oe:o.KEYCODE.ARROW_DOWN===te?U=(U+ge)%Oe:o.KEYCODE.ARROW_LEFT===te?U=((U-1)%Oe+Oe)%Oe:o.KEYCODE.ARROW_RIGHT===te&&(U=(U+1)%Oe),J=d(q.get(U)),e.events.disableBlur(),J.focus(),Ke=!1):o.KEYCODE.ENTER===te&&(e.button.exec(be),Ke=!1),Ke===!1&&(x.preventDefault(),x.stopPropagation()),Ke)},!0)})(k,"".concat(g,".picker")),k})(j)).hasClass("fr-active")||(e.undo.saveStep(),e.popups.setContainer("".concat(j,".picker"),e.$tb),(ne=e.popups.get("".concat(P=j==="textColor"?"backgroundColor":"textColor",".picker")))!=null&&ne.hasClass("fr-active")?e.popups.hide("".concat(P,".picker")):e.selection.save(),h(j==="textColor"?"text":"background"),ue.isVisible()?(P=(ne=e.button.getPosition(ue)).left,ne=ne.top,e.popups.show("".concat(j,".picker"),P,ne,ue.outerHeight())):(e.position.forSelection(v),e.popups.show("".concat(j,".picker"))))},background:a,customColor:function(j){var P=e.popups.get("".concat(j,"Color.picker")).find(".fr-color-hex-layer input");P.length&&(j==="background"?a:y)(P.val())},text:y,back:function(){e.popups.hide("textColor.picker"),e.popups.hide("backgroundColor.picker"),e.toolbar.showInline()}}},o.DefineIcon("textColor",{NAME:"tint",SVG_KEY:"textColor"}),o.RegisterCommand("textColor",{title:"Text Color",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("textColor.picker")?(this.$el.find(".fr-marker").length&&this.events.disableBlur(),this.popups.hide("textColor.picker")):this.colors.showColorsPopup("textColor")}}),o.RegisterCommand("applytextColor",{undo:!0,callback:function(e,d){this.colors.text(d)}}),o.RegisterCommand("customTextColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("text")}}),o.DefineIcon("backgroundColor",{NAME:"paint-brush",SVG_KEY:"backgroundColor"}),o.RegisterCommand("backgroundColor",{title:"Background Color",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("backgroundColor.picker")?(this.$el.find(".fr-marker").length&&this.events.disableBlur(),this.popups.hide("backgroundColor.picker")):this.colors.showColorsPopup("backgroundColor")}}),o.RegisterCommand("applybackgroundColor",{undo:!0,callback:function(e,d){this.colors.background(d)}}),o.RegisterCommand("customBackgroundColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("background")}}),o.DefineIcon("colorsBack",{NAME:"arrow-left",SVG_KEY:"back"}),o.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),o.DefineIcon("remove",{NAME:"eraser",SVG_KEY:"remove"})})});var Yi=Ba((ni,qi)=>{"use strict";(function(o,e){typeof ni=="object"&&typeof qi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ni,function(o){"use strict";Object.assign(o.DEFAULTS,{dragInline:!0}),o.PLUGINS.draggable=function(e){var d=e.$;function t(v){return!(!v.originalEvent||!v.originalEvent.target||v.originalEvent.target.nodeType!==Node.TEXT_NODE)||(v.target&&v.target.tagName==="A"&&v.target.childNodes.length===1&&v.target.childNodes[0].tagName==="IMG"&&(v.target=v.target.childNodes[0]),d(v.target).hasClass("fr-draggable")?(e.undo.canDo()||e.undo.saveStep(),e.o
1pts.dragInline?e.$el.attr("contenteditable",!0):e.$el.attr("contenteditable",!1),e.opts.toolbarInline&&e.toolbar.hide(),d(v.target).addClass("fr-dragging"),e.browser.msie||e.browser.edge||e.selection.clear(),void v.originalEvent.dataTransfer.setData("text","Froala")):(v.preventDefault(),!1))}var s,h=function(g){return!(g&&(g.tagName==="HTML"||g.tagName==="BODY"||e.node.isElement(g)))};function a(v,g,I){var k,E;e.opts.iframe&&(k=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),E=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-left")),v+=e.$iframe.offset().top+k,g+=e.$iframe.offset().left+E),s.offset().top!==v&&s.css("top",v),s.offset().left!==g&&s.css("left",g),s.width()!==I&&s.css("width",I)}function y(v){if(v.originalEvent.dataTransfer.dropEffect="move",e.opts.dragInline)(!(function(){for(var q=null,ge=0;ge<o.INSTANCES.length;ge++)if((q=o.INSTANCES[ge].$el.find(".fr-dragging")).length)return q.get(0)})()||e.browser.msie||e.browser.edge)&&v.preventDefault();else{v.preventDefault();var g,I,k=v,E=e.doc.elementFromPoint(k.originalEvent.pageX-e.win.pageXOffset,k.originalEvent.pageY-e.win.pageYOffset);if(!h(E)){for(var Q=0,x=E;!h(x)&&x===E&&0<k.originalEvent.pageY-e.win.pageYOffset-Q;)x=e.doc.elementFromPoint(k.originalEvent.pageX-e.win.pageXOffset,k.originalEvent.pageY-e.win.pageYOffset-++Q);(!h(x)||s&&e.$el.find(x).length===0&&x!==s.get(0))&&(x=null);for(var te=0,Ke=E;!h(Ke)&&Ke===E&&k.originalEvent.pageY-e.win.pageYOffset+te<d(e.doc).height();)Ke=e.doc.elementFromPoint(k.originalEvent.pageX-e.win.pageXOffset,k.originalEvent.pageY-e.win.pageYOffset+ ++te);E=(Ke=!h(Ke)||s&&e.$el.find(Ke).length===0&&Ke!==s.get(0)?null:Ke)===null&&x?x:Ke&&x===null?Ke:Ke&&x?Q<te?x:Ke:null}d(E).hasClass("fr-drag-helper")||((E=(E=(E=E&&!e.node.isBlock(E)?e.node.blockParent(E):E)&&0<=["TD","TH","TR","THEAD","TBODY"].indexOf(E.tagName)?d(E).parents("table").get(0):E)&&0<=["LI"].indexOf(E.tagName)?d(E).parents("UL, OL").get(0):E)&&!d(E).hasClass("fr-drag-helper")?(s||(o.$draggable_helper||(o.$draggable_helper=d(document.createElement("div")).attr("class","fr-drag-helper")),s=o.$draggable_helper,e.events.on("shared.destroy",function(){s.html("").removeData().remove(),s=null},!0)),v=k.originalEvent.pageY<d(E).offset().top+d(E).outerHeight()/2,g=d(E),I=0,v||g.next().length!==0?(v||(g=g.next()),s.data("fr-position")==="before"&&g.is(s.data("fr-tag"))||(0<g.prev().length&&(I=parseFloat(g.prev().css("margin-bottom"))||0),I=Math.max(I,parseFloat(g.css("margin-top"))||0),a(g.offset().top-I/2-e.$box.offset().top,g.offset().left-e.win.pageXOffset-e.$box.offset().left,g.width()),s.data("fr-position","before"))):s.data("fr-position")==="after"&&g.is(s.data("fr-tag"))||(I=parseFloat(g.css("margin-bottom"))||0,a(g.offset().top+d(E).height()+I/2-e.$box.offset().top,g.offset().left-e.win.pageXOffset-e.$box.offset().left,g.width()),s.data("fr-position","after")),s.data("fr-tag",g),s.addClass("fr-visible"),e.$box.append(s)):s&&0<e.$box.find(s).length&&s.removeClass("fr-visible"))}}function j(v){v.originalEvent.dataTransfer.dropEffect="move",e.opts.dragInline||v.preventDefault()}function P(v){e.$el.attr("contenteditable",!0);var g=e.$el.find(".fr-dragging");s&&s.hasClass("fr-visible")&&e.$box.find(s).length?ne(v):g.length&&(v.preventDefault(),v.stopPropagation()),s&&e.$box.find(s).length&&s.removeClass("fr-visible"),g.removeClass("fr-dragging")}function ne(v){var g,I;e.$el.attr("contenteditable",!0);for(var k,E=0;E<o.INSTANCES.length;E++)if((g=o.INSTANCES[E].$el.find(".fr-dragging")).length){I=o.INSTANCES[E];break}if(g.length){if(v.preventDefault(),v.stopPropagation(),s&&s.hasClass("fr-visible")&&e.$box.find(s).length)s.data("fr-tag")[s.data("fr-position")]('<span class="fr-marker"></span>'),s.removeClass("fr-visible");else if(e.markers.insertAtPoint(v.originalEvent)===!1)return!1;return g.removeClass("fr-dragging"),(g=e.events.chainTrigger("element.beforeDrop",g))!==!1&&((v=g).parent().is("A")&&g.parent().get(0).childNodes.length===1&&(v=g.parent()),e.core.isEmpty()?e.events.focus():(e.$el.find(".fr-marker").replaceWith(o.MARKERS),e.selection.restore(
1)),I===e||e.undo.canDo()||e.undo.saveStep(),e.core.isEmpty()?e.$el.html(v):(k=e.markers.insert(),(e||"").selection&&v.contains(k)&&v.before(k),v.find(k).length===0?d(k).replaceWith(v):g.find(k).length===0&&d(k).replaceWith(g),g.after(o.MARKERS),e.selection.restore()),e.popups.hideAll(),e.selection.save(),e.$el.find(e.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(e.opts.htmlAllowedEmptyTags.join(",")).remove(),e.html.wrap(),e.html.fillEmptyBlocks(),e.selection.restore(),e.undo.saveStep(),e.opts.iframe&&e.size.syncIframe(),I!==e&&(I.popups.hideAll(),I.$el.find(I.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),I.html.wrap(),I.html.fillEmptyBlocks(),I.undo.saveStep(),I.events.trigger("element.dropped"),I.opts.iframe)&&I.size.syncIframe(),e.events.trigger("element.dropped",[v])),!1}s&&s.removeClass("fr-visible"),e.undo.canDo()||e.undo.saveStep(),setTimeout(function(){e.undo.saveStep()},0)}function ue(v){if(v&&v.tagName==="DIV"&&e.node.hasClass(v,"fr-drag-helper"))v.parentNode.removeChild(v);else if(v&&v.nodeType===Node.ELEMENT_NODE)for(var g=v.querySelectorAll("div.fr-drag-helper"),I=0;I<g.length;I++)g[I].parentNode.removeChild(g[I])}return{_init:function(){e.opts.enter===o.ENTER_BR&&(e.opts.dragInline=!0),e.events.on("dragstart",t,!0),e.events.on("dragover",y,!0),e.events.on("dragenter",j,!0),e.events.on("document.dragend",P,!0),e.events.on("document.drop",P,!0),e.events.on("drop",ne,!0),e.events.on("html.processGet",ue)}}}})});var ji=Ba((ii,Xi)=>{"use strict";(function(o,e){typeof ii=="object"&&typeof Xi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ii,function(o){"use strict";Object.assign(o.POPUP_TEMPLATES,{emoticons:"[_BUTTONS_][_CUSTOM_LAYER_]"}),Object.assign(o.DEFAULTS,{emoticonsSet:[{id:"people",name:"Smileys & People",code:"1f600",emoticons:[{code:"1f600",desc:"Grinning face"},{code:"1f601",desc:"Grinning Face with Smiling Eyes"},{code:"1f602",desc:"Face with Tears of Joy"},{code:"1f603",desc:"Smiling Face with Open Mouth"},{code:"1f604",desc:"Smiling Face with Open Mouth and Smiling Eyes"},{code:"1f605",desc:"Smiling Face with Open Mouth and Cold Sweat"},{code:"1f606",desc:"Smiling Face with Open Mouth and Tightly-Closed Eyes"},{code:"1f609",desc:"Winking Face"},{code:"1f60a",desc:"Smiling Face with Smiling Eyes"},{code:"1f608",desc:"Face Savouring Delicious Food"},{code:"1f60e",desc:"Smiling Face with Sunglasses"},{code:"1f60d",desc:"Smiling Face with Heart-Shaped Eyes"},{code:"1f618",desc:"Face Throwing a Kiss"},{code:"1f617",desc:"Kissing Face"},{code:"1f619",desc:"Kissing Face with Smiling Eyes"},{code:"1f61a",desc:"Kissing Face with Closed Eyes"},{code:"263a",desc:"White Smiling Face"},{code:"1f642",desc:"Slightly Smiling Face"},{code:"1f610",desc:"Neutral Face"},{code:"1f611",desc:"Expressionless Face"},{code:"1f636",desc:"Face Without Mouth"},{code:"1f60f",desc:"Smirking Face"},{code:"1f623",desc:"Persevering Face"},{code:"1f625",desc:"Disappointed but Relieved Face"},{code:"1f62e",desc:"Face with Open Mouth"},{code:"1f62f",desc:"Hushed Face"},{code:"1f62a",desc:"Sleepy Face"},{code:"1f62b",desc:"Tired Face"},{code:"1f634",desc:"Sleeping Face"},{code:"1f60c",desc:"Relieved Face"},{code:"1f61b",desc:"Face with Stuck-out Tongue"},{code:"1f61c",desc:"Face with Stuck-out Tongue and Winking Eye"},{code:"1f61d",desc:"Face with Stuck-out Tongue and Tightly-Closed Eyes"},{code:"1f612",desc:"Unamused Face"},{code:"1f613",desc:"Face with Cold Sweat"},{code:"1f613",desc:"Face with Cold Sweat"},{code:"1f614",desc:"Pensive Face"},{code:"1f615",desc:"Confused Face"},{code:"1f632",desc:"Astonished Face"},{code:"1f616",desc:"Confounded Face"},{code:"1f61e",desc:"Disappointed Face"},{code:"1f61f",desc:"Worried Face"},{code:"1f624",desc:"Face with Look of Triumph"},{code:"1f622",desc:"Crying Face"},{code:"1f62d",desc:"Loudly Crying Face"},{code:"1f626",desc:"Frowning Face with Open Mouth"},{code:"1f627",desc:"Anguished Face"},{code:"1f628",desc:"Fearful Face"},{code:"1f629",desc:"Weary Face"},{code:"1f62c",desc:"Grimacing Face"},{code:"1f630",desc:"Face with Open Mouth and Cold Sweat"},{code:"1f631",desc:"Face Screaming in Fear"},{code:"1f633",desc:"Flushed Face"},{code:"1f635",desc:"Dizzy Face"},{code:"1f621",desc:"Pouting Face"},{code:"1f620",desc:"Angry Face"},{code:"1f637",desc:"Face with Medical Mask"},{code:"1f607",desc:"Smiling Face with Halo"},{code:"1f608",desc:"Smiling Face with Horns"},{code:"1f47f",desc:"Imp"},{code:"1f479",desc:"Japanese Ogre"},{code:"1f47a",desc:"Japanese Goblin"},{code:"1f480",desc:"Skull"},{code:"1f47b",desc:"Ghost"},{code:"1f47d",desc:"Extraterrestrial Alien"},{code:"1f47e",desc:"Alien Monster"},{code:"1f4a9",desc:"Pile of Poo"}
1,{code:"1f63a",desc:"Smiling Cat Face with Open Mouth"},{code:"1f638",desc:"Grinning Cat Face with Smiling Eyes"},{code:"1f639",desc:"Cat Face with Tears of Joy"},{code:"1f63b",desc:"Smiling Cat Face with Heart-Shaped Eyes"},{code:"1f63c",desc:"Cat Face with Wry Smile"},{code:"1f63d",desc:"Kissing Cat Face with Closed Eyes"},{code:"1f640",desc:"Weary Cat Face"},{code:"1f63f",desc:"Crying Cat Face"},{code:"1f63e",desc:"Pouting Cat Face"},{code:"1f648",desc:"See-No-Evil Monkey"},{code:"1f649",desc:"Hear-No-Evil Monkey"},{code:"1f64a",desc:"Speak-No-Evil Monkey"},{code:"1f476",desc:"Baby"},{code:"1f466",desc:"Boy"},{code:"1f467",desc:"Girl"},{code:"1f468",desc:"Man"},{code:"1f469",desc:"Woman"},{code:"1f474",desc:"Older Man"},{code:"1f475",desc:"Older Woman"},{code:"1f46e",desc:"Police Officer"},{code:"1f482",desc:" Guardsman"},{code:"1f477",desc:" Construction Worker"},{code:"1f478",desc:"Princess"},{code:"1f473",desc:"Man with Turban"},{code:"1f472",desc:"Man with Gua Pi Mao"},{code:"1f471",desc:"Person with Blond Hair"},{code:"1f470",desc:"Bride with Veil"},{code:"1f47c",desc:"Baby Angel"},{code:"1f385",desc:"Father Christmas"},{code:"1f64e",desc:"Person with Pouting Face"},{code:"1f645",desc:"Face with No Good Gesture"},{code:"1f646",desc:"Face with Ok Gesture"},{code:"1f481",desc:"Information Desk Person"},{code:"1f64b",desc:"Happy Person Raising One Hand"},{code:"1f647",desc:"Person Bowing Deeply"},{code:"1f486",desc:"Face Massage"},{code:"1f487",desc:"Haircut"},{code:"1f6b6",desc:"Pedestrian"},{code:"1f3c3",desc:"Runner"},{code:"1f483",desc:"Dancer"},{code:"1f46f",desc:"Woman with Bunny Ears"},{code:"1f6c0",desc:"Bath"},{code:"1f464",desc:"Bust in Silhouette"},{code:"1f465",desc:"Busts in Silhouette"},{code:"1f3c7",desc:"Horse Racing"},{code:"1f3c2",desc:" Snowboarder"},{code:"1f3c4",desc:" Surfer"},{code:"1f6a3",desc:" Rowboat"},{code:"1f3ca",desc:" Swimmer"},{code:"1f6b4",desc:" Bicyclist"},{code:"1f6b5",desc:"Mountain Bicyclist"},{code:"1f46b",desc:" Man and Woman Holding Hands"},{code:"1f46c",desc:"Two Men Holding Hands"},{code:"1f46d",desc:"Two Women Holding Hands"},{code:"1f48f",desc:"Kiss"},{code:"1f468-2764-1f48b-1f468",uCode:"\u{1F468}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}",desc:"Man Kiss Man"},{code:"1f469-2764-1f48b-1f469",uCode:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F469}",desc:"Woman Kiss Woman"},{code:"1f491",desc:"Couple with Heart"},{code:"1f468-2764-1f468",uCode:"\u{1F468}\u200D\u2764\uFE0F\u200D\u{1F468}",desc:"Man Heart Man"},{code:"1f469-2764-1f469",uCode:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F469}
vendor: 28,320 bytes, line 1
1",desc:"Woman Heart Woman"},{code:"1f46a",desc:"Family"},{code:"1f468",desc:"Man Woman Boy"},{code:"1f468-1f469-1f467",desc:"Man Woman Girl"},{code:"1f468-1f469-1f467-1f466",desc:"Man Woman Girl Boy"},{code:"1f468-1f469-1f466-1f466",desc:"Man Woman Boy Boy"},{code:"1f468-1f469-1f467-1f467",desc:"Man Woman Girl Girl"},{code:"1f468-1f468-1f466",desc:"Man Man Boy"},{code:"1f468-1f468-1f467",desc:"Man Man Girl"},{code:"1f468-1f468-1f467-1f466",desc:"Man Man Girl Boy"},{code:"1f468-1f468-1f466-1f466",desc:"Man Man Boy Boy"},{code:"1f469-1f469-1f466",desc:"Woman Woman Boy"},{code:"1f469-1f469-1f467",desc:"Woman Woman Girl"},{code:"1f469-1f469-1f467-1f466",desc:"Woman Woman Girl Boy"},{code:"1f469-1f469-1f467-1f467",desc:"Woman Woman Girl Girl"},{code:"1f4aa",desc:"Flexed Biceps"},{code:"1f448",desc:"White Left Pointing Backhand Index"},{code:"1f449",desc:"White Right Pointing Backhand Index"},{code:"1f446",desc:"White Up Pointing Backhand Index"},{code:"1f447",desc:"White Down Pointing Backhand Index"},{code:"270c",desc:"Victory Hand"},{code:"270b",desc:"Raised Hand"},{code:"1f44c",desc:"Ok Hand Sign"},{code:"1f44d",desc:"Thumbs Up Sign"},{code:"1f44e",desc:"Thumbs Down Sign"},{code:"270a",desc:"Raised Fist"},{code:"1f44a",desc:"Fisted Hand Sign"},{code:"1f44b",desc:"Waving Hand Sign"},{code:"1f44f",desc:"Clapping Hands Sign"},{code:"1f450",desc:"Open Hands Sign"},{code:"1f64c",desc:"Person Raising Both Hands in Celebration"},{code:"1f64f",desc:"Person with Folded Hands"},{code:"1f485",desc:"Nail Polish"},{code:"1f442",desc:"Ear"},{code:"1f443",desc:"Nose"},{code:"1f463",desc:"Footprints"},{code:"1f440",desc:"Eyes"},{code:"1f445",desc:"Tongue"},{code:"1f444",desc:"Mouth"},{code:"1f48b",desc:"Kiss Mark"},{code:"1f498",desc:"Heart with Arrow"},{code:"2764",desc:"Heavy Black Heart"},{code:"1f493",desc:"Heavy Black Heart"},{code:"1f494",desc:"Broken Heart"},{code:"1f495",desc:"Two Hearts"},{code:"1f496",desc:"Sparkling Hearts"},{code:"1f497",desc:"Growing Hearts"},{code:"1f499",desc:"Blue Heart"},{code:"1f49a",desc:"Green Heart"},{code:"1f49b",desc:"Yellow Heart"},{code:"1f49c",desc:"Purple Heart"},{code:"1f49d",desc:"Heart with Ribbon"},{code:"1f49e",desc:"Revolving Hearts"},{code:"1f49f",desc:"Heart Decoration"},{code:"1f48c",desc:"Love Letter"},{code:"1f4a4",desc:"Sleeping Symbol"},{code:"1f4a2",desc:"Anger Symbol"},{code:"1f4a3",desc:"Bomb"},{code:"1f4a5",desc:"Collision Symbol"},{code:"1f4a6",desc:"Splashing Sweat Symbol"},{code:"1f4a8",desc:"Dash Symbol"},{code:"1f4ab",desc:"Dizzy Symbol"},{code:"1f4ab",desc:"Dizzy Symbol"},{code:"1f4ac",desc:"Speech Balloon"},{code:"1f4ad",desc:"Thought Balloon"},{code:"1f453",desc:"Eyeglasses"},{code:"1f454",desc:"Necktie"},{code:"1f455",desc:"T-Shirt"},{code:"1f456",desc:"Jeans"},{code:"1f457",desc:"Dress"},{code:"1f458",desc:"Kimono"},{code:"1f459",desc:"Bikini"},{code:"1f45a",desc:"Womans Clothes"},{code:"1f45b",desc:"Purse"},{code:"1f45c",desc:"Handbag"},{code:"1f45d",desc:"Pouch"},{code:"1f392",desc:"School Satchel"},{code:"1f45e",desc:"Mans Shoe"},{code:"1f45f",desc:"Athletic Shoe"},{code:"1f460",desc:"High-Heeled Shoe"},{code:"1f461",desc:"Womans Sandal"},{code:"1f462",desc:"Womans Boots"},{code:"1f451",desc:"Crown"},{code:"1f452",desc:"Womans Hat"},{code:"1f462",desc:"Top Hat"},{code:"1f393",desc:"Graduation Cap"},{code:"1f484",desc:"Lipstick"},{code:"1f48d",desc:"Ring"},{code:"1f48e",desc:"Gem Stone"}]},{id:"nature",name:"Animals & Nature",code:"1F435",emoticons:[{code:"1F435",desc:"Monkey Face"},{code:"1F412",desc:"Monkey"},{code:"1F436",desc:"Dog Face"},{code:"1F415",desc:"Dog"},{code:"1F429",desc:"Poodle"},{code:"1F43A",desc:"Wolf Face"},{code:"1F431",desc:"Cat Face"},{code:"1F408",desc:"Cat"},{code:"1F42F",desc:"Tiger Face"},{code:"1F405",desc:"Tiger"},{code:"1F406",desc:"Leopard"},{code:"1F434",desc:"Horse Face"},{code:"1F40E",desc:"Horse"},{code:"1F42E",desc:"Cow Face"},{code:"1F402",desc:"Ox"},{code:"1F403",desc:"Water Buffalo"},{code:"1F404",desc:"Cow"},{code:"1F437",desc:"Pig Face"},{code:"1F416",desc:"Pig"},{code:"1F417",desc:"Boar"},{code:"1F43D",desc:"Pig Nose"},{code:"1F40F",desc:"Ram"},{code:"1F411",desc:"Sheep"},{code:"1F410",desc:"Goat"},{code:"1F42A",desc:"Dromedary Camel"},{code:"1F42B",desc:"Bactrian Camel"},{code:"1F418",desc:"Elephant"},{code:"1F42D",desc:"Mouse Face"},{code:"1F401",desc:"Mouse"},{code:"1F400",desc:"Rat"},{code:"1F439",desc:"Hamster Face"},{code:"1F430",desc:"Rabbit Face"},{code:"1F407",desc:"Rabbit"},{code:"1F43B",desc:"Bear Face"},{code:"1F428",desc:"Koala"},{code:"1F43C",desc:"Panda Face"},{code:"1F43E",desc:"Paw Prints"},{code:"1F414",desc:"Chicken"},{code:"1F413",desc:"Rooster"},{code:"1F423",desc:"Hatching Chick"},{code:"1F424",desc:"Baby Chick"},{code:"1F425",desc:"Front-Facing Baby Chick"},{code:"1F426",desc:"Bird"},{code:"1F427",desc:"Penguin"},{code:"1F438",desc:"Frog Face"},{code:"1F40A",desc:"Crocodile"},{code:"1F422",desc:"Turtle"},{code:"1F40D",desc:"Snake"},{code:"1F432",desc:"Dragon Face"},{code:"1F409",desc:"Dragon"},{code:"1F433",desc:"Spouting Whale"},{code:"1F40B",desc:"Whale"},{code:"1F42C",desc:"Dolphin"},{code:"1F41F",desc:"Fish"},{code:"1F420",desc:"Tropical Fish"},{code:"1F421",desc:"Blowfish"},{code:"1F419",desc:"Octopus"},{code:"1F41A",desc:"Spiral Shell"},{code:"1F40C",desc:"Snail"},{code:"1F41B",desc:"Bug"},{code:"1F41C",desc:"Ant"},{code:"1F41D",desc:"Honeybee"},{code:"1F41E",desc:"Lady Beetle"},{code:"1F490",desc:"Bouquet"},{code:"1F338",desc:"Cherry Blossom"},{code:"1F4AE",desc:"White Flower"},{code:"1F339",desc:"Rose"},{code:"1F33A",desc:"Hibiscus"},{code:"1F33B",desc:"Sunflower"},{code:"1F33C",desc:"Blossom"},{code:"1F337",desc:"Tulip"},{code:"1F331",desc:"Seedling"},{code:"1F332",desc:"Evergreen Tree"},{code:"1F333",desc:"Deciduous Tree"},{code:"1F334",desc:"Palm Tree"},{code:"1F335",desc:"Cactus"},{code:"1F33E",desc:"Ear of Rice"},{code:"1F33F",desc:"Herb"},{code:"2618",desc:"Four Leaf Clover"},{code:"1F341",desc:"Maple Leaf"},{code:"1F342",desc:"Fallen Leaf"},{code:"1F343",desc:"Leaf Fluttering in Wind"}]},{id:"foods",name:"Food & Drink",code:"1F347",emoticons:[{code:"1F347",desc:"Grapes"},{code:"1F348",desc:"Melon"},{code:"1F349",desc:"Watermelon"},{code:"1F34A",desc:"Tangerine"},{code:"1F34B",desc:"Lemon"},{code:"1F34C",desc:"Banana"},{code:"1F34D",desc:"Pineapple"},{code:"1F34E",desc:"Red Apple"},{code:"1F34F",desc:"Green Apple"},{code:"1F350",desc:"Pear"},{code:"1F351",desc:"Peach"},{code:"1F352",desc:"Cherries"},{code:"1F353",desc:"Strawberry"},{code:"1F345",desc:"Tomato"},{code:"1F346",desc:"Aubergine"},{code:"1F33D",desc:"Ear of Maize"},{code:"1F344",desc:"Mushroom"},{code:"1F330",desc:"Chestnut"},{code:"1F35E",desc:"Bread"},{code:"1F356",desc:"Meat on Bone"},{code:"1F357",desc:"Poultry Leg"},{code:"1F354",desc:"Hamburger"},{code:"1F35F",desc:"French Fries"},{code:"1F355",desc:"Slice of Pizza"},{code:"1F373",desc:"Cooking"},{code:"1F372",desc:"Pot of Food"},{code:"1F371",desc:"Bento Box"},{code:"1F358",desc:"Rice Cracker"},{code:"1F359",desc:"Rice Ball"},{code:"1F35A",desc:"Cooked Rice"},{code:"1F35B",desc:"Curry and Rice"},{code:"1F35C",desc:"Steaming Bowl"},{code:"1F35D",desc:"Spaghetti"},{code:"1F360",desc:"Roasted Sweet Potato"},{code:"1F362",desc:"Oden"},{code:"1F363",desc:"Sushi"},{code:"1F364",desc:"Fried Shrimp"},{code:"1F365",desc:"Fish Cake with Swirl Design"},{code:"1F361",desc:"Dango"},{code:"1F366",desc:"Soft Ice Cream"},{code:"1F367",desc:"Shaved Ice"},{code:"1F368",desc:"Ice Cream"},{code:"1F369",desc:"Doughnut"},{code:"1F36A",desc:"Cookie"},{code:"1F382",desc:"Birthday Cake"},{code:"1F370",desc:"Shortcake"},{code:"1F36B",desc:"Chocolate Bar"},{code:"1F36C",desc:"Candy"},{code:"1F36D",desc:"Lollipop"},{code:"1F36E",desc:"Custard"},{code:"1F36F",desc:"Honey Pot"},{code:"1F37C",desc:"Baby Bottle"},{code:"2615",desc:"Hot Beverage"},{code:"1F375",desc:"Teacup Without Handle"},{code:"1F376",desc:"Sake Bottle and Cup"},{code:"1F377",desc:"Wine Glass"},{code:"1F378",desc:"Cocktail Glass"},{code:"1F379",desc:"Tropical Drink"},{code:"1F37A",desc:"Beer Mug"},{code:"1F37B",desc:"Clinking Beer Mugs"},{code:"1F374",desc:"Fork and Knife"},{code:"1F52A",desc:"Hocho"}]},{id:"activity",name:"Activities",code:"1f383",emoticons:[{code:"1f383",desc:" Jack-O-Lantern"},{code:"1f384",desc:"Christmas Tree"},{code:"1f386",desc:" Fireworks"},{code:"1f387",desc:"Firework Sparkler"},{code:"2728",desc:" Sparkles"},{code:"1f388",desc:"Balloon"},{code:"1f389",desc:"Party Popper"},{code:"1f38a",desc:"Confetti Ball"},{code:"1f38b",desc:"Tanabata Tree"},{code:"1f38d",desc:"Pine Decoration"},{code:"1f38e",desc:"Japanese Dolls"},{code:"1f38f",desc:"Carp Streamer"},{code:"1f390",desc:"Wind Chime"},{code:"1f391",desc:"Moon Viewing Ceremony"},{code:"1f380",desc:"Ribbon"},{code:"1f381",desc:"Wrapped Present"},{code:"1f3ab",desc:"Ticket"},{code:"1f3c6",desc:"Trophy"},{code:"1f388",desc:"Balloon"},{code:"26bd",desc:"Soccer Ball"},{code:"26be",desc:"Baseball"},{code:"1f3c0",desc:"Basketball and Hoop"},{code:"1f3c8",desc:"American Football"},{code:"1f3c9",desc:"Rugby Football"},{code:"1f3be",desc:"Tennis Racquet and Ball"},{code:"1f3b1",desc:"Billiards"},{code:"1f3b3",desc:"Bowling"},{code:"1f3af",desc:"Direct Hit"},{code:"26f3",desc:"Flag in Hole"},{code:"1f3a3",desc:"Fishing Pole and Fish"},{code:"1f3bd",desc:"Running Shirt with Sash"},{code:"1f3bf",desc:"Ski and Ski Boot"},{code:"1f3ae",desc:"Video Game"},{code:"1f3b2",desc:"Game Die"},{code:"2660",desc:"Black Spade Suit"},{code:"2665",desc:"Black Heart SuiT"},{code:"2666",desc:"Black Diamond Suit"},{code:"2663",desc:"Black Club Suit"},{code:"1f0cf",desc:"Playing Card Black Joker"},{code:"1f004",desc:"Mahjong Tile Red Dragon"},{code:"1f3b4",desc:"Flower Playing Cards"}]},{id:"places",name:"Travel & Places",code:"1f30d",emoticons:[{code:"1f30d",desc:"Earth Globe Europe-Africa"},{code:"1f30e",desc:"Earth Globe Americas"},{code:"1f30f",desc:"Earth Globe Asia-Australia"},{code:"1f310",desc:"Globe with Meridians"},{code:"1f5fe",desc:"Silhouette of Japan"},{code:"1f30b",desc:"Volcano"},{code:"1f5fb",desc:"Mount Fuji"},{code:"1f3e0",desc:"House Building"},{code:"1f3e1",desc:"House with Garden"},{code:"1f3e2",desc:"Office Building"},{code:"1f3e3",desc:"Japanese Post Office"},{code:"1f3e4",desc:"European Post Office"},{code:"1f3e5",desc:"Hospital"},{code:"1f3e6",desc:"Bank"},{code:"1f3e8",desc:"Hotel"},{code:"1f3e9",desc:"Love Hotel"},{code:"1f3ea",desc:"Convenience Store"},{code:"1f3eb",desc:"School"},{code:"1f3ec",desc:"Department Store"},{code:"1f3ed",desc:"Factory"},{code:"1f3ef",desc:"Japanese Castle"},{code:"1f3f0",desc:"European Castle"},{code:"1f492",desc:"Wedding"},{code:"1f5fc",desc:"Tokyo Tower"},{code:"1f5fd",desc:"Statue of Liberty"},{code:"26ea",desc:"Church"},{code:"26f2",desc:"Fountain"},{code:"26fa",desc:"Tent"},{code:"1f301",desc:"Foggy"},{code:"1f303",desc:"Night with Stars"},{code:"1f304",desc:"Sunrise over Mountains"},{code:"1f305",desc:"Sunrise"},{code:"1f306",desc:"Cityscape at Dusk"},{code:"1f307",desc:"Sunset over Buildings"},{code:"1f309",desc:"Bridge at Night"},{code:"2668",desc:"Hot Springs"},{code:"1f30c",desc:"Milky Way"},{code:"1f3a0",desc:"Carousel Horse"},{code:"1f3a1",desc:"Ferris Wheel"},{code:"1f3a2",desc:"Roller Coaster"},{code:"1f488",desc:"Barber Pole"},{code:"1f3aa",desc:"Circus Tent"},{code:"1f3ad",desc:"Performing Arts"},{code:"1f3a8",desc:"Artist Palette"},{code:"1f3b0",desc:"Slot Machine"},{code:"1f682",desc:"Steam Locomotive"},{code:"1f683",desc:"Railway Car"},{code:"1f684",desc:"High-Speed Train"},{code:"1f685",desc:"High-Speed Train with Bullet Nose"},{code:"1f686",desc:"Train"},{code:"1f687",desc:"Metro"},{code:"1f688",desc:"Light Rail"},{code:"1f689",desc:"Station"},{code:"1f68a",desc:"Tram"},{code:"1f69d",desc:"Monorail"},{code:"1f69e",desc:"Mountain Railway"},{code:"1f68b",desc:"Tram Car"},{code:"1f68c",desc:"Bus"},{code:"1f68d",desc:"Oncoming Bus"},{code:"1f68e",desc:"Trolleybus"},{code:"1f690",desc:"Minibus"},{code:"1f691",desc:"Ambulance"},{code:"1f692",desc:"Fire Engine"},{code:"1f693",desc:"Police Car"},{code:"1f694",desc:"Oncoming Police Car"},{code:"1f695",desc:"Taxi"},{code:"1f695",desc:"Oncoming Taxi"},{code:"1f697",desc:"Automobile"},{code:"1f698",desc:"Oncoming Automobile"},{code:"1f699",desc:"Recreational Vehicle"},{code:"1f69a",desc:"Delivery Truck"},{code:"1f69b",desc:"Articulated Lorry"},{code:"1f69c",desc:"Tractor"},{code:"1f6b2",desc:"Bicycle"},{code:"1f68f",desc:"Bus Stop"},{code:"26fd",desc:"Fuel Pump"},{code:"1f6a8",desc:"Police Cars Revolving Light"},{code:"1f6a5",desc:"Horizontal Traffic Light"},{code:"1f6a6",desc:"Vertical Traffic Light"},{code:"1f6a7",desc:"Construction Sign"},{code:"2693",desc:"Anchor"},{code:"26f5",desc:"Sailboat"},{code:"1f6a4",desc:"Speedboat"},{code:"1f6a2",desc:"Ship"},{code:"2708",desc:"Airplane"},{code:"1f4ba",desc:"Seat"},{code:"1f681",desc:"Helicopter"},{code:"1f69f",desc:"Suspension Railway"},{code:"1f6a0",desc:"Mountain Cableway"},{code:"1f6a1",desc:"Aerial Tramway"},{code:"1f680",desc:"Rocket"},{code:"1f6aa",desc:"Door"},{code:"1f6bd",desc:"Toilet"},{code:"1f6bf",desc:"Shower"},{code:"1f6c1",desc:"Bathtub"},{code:"231b",desc:"Hourglass"},{code:"23f3",desc:"Hourglass with Flowing Sand"},{code:"231a",desc:"Watch"},{code:"23f0",desc:"Alarm Clock"},{code:"1f55b",desc:"Clock Face Twelve Oclock"},{code:"1f567",desc:"Clock Face Twelve-Thirty"},{code:"1f550",desc:"Clock Face One Oclock"},{code:"1f55c",desc:"Clock Face One-thirty"},{code:"1f551",desc:"Clock Face Two Oclock"},{code:"1f55d",desc:"Clock Face Two-thirty"},{code:"1f552",desc:"Clock Face Three Oclock"},{code:"1f55e",desc:"Clock Face Three-thirty"},{code:"1f553",desc:"Clock Face Four Oclock"},{code:"1f55f",desc:"Clock Face Four-thirty"},{code:"1f554",desc:"Clock Face Five Oclock"},{code:"1f560",desc:"Clock Face Five-thirty"},{code:"1f555",desc:"Clock Face Six Oclock"},{code:"1f561",desc:"Clock Face Six-thirty"},{code:"1f556",desc:"Clock Face Seven Oclock"},{code:"1f562",desc:"Clock Face Seven-thirty"},{code:"1f557",desc:"Clock Face Eight Oclock"},{code:"1f563",desc:"Clock Face Eight-thirty"},{code:"1f558",desc:"Clock Face Nine Oclock"},{code:"1f564",desc:"Clock Face Nine-thirty"},{code:"1f559",desc:"Clock Face Ten Oclock"},{code:"1f565",desc:"Clock Face Ten-thirty"},{code:"1f55a",desc:"Clock Face Eleven Oclock"},{code:"1f566",desc:"Clock Face Eleven-thirty"},{code:"1f311",desc:"New Moon Symbol"},{code:"1f312",desc:"Waxing Crescent Moon Symbol"},{code:"1f313",desc:"First Quarter Moon Symbol"},{code:"1f314",desc:"Waxing Gibbous Moon Symbol"},{code:"1f315",desc:"Full Moon Symbol"},{code:"1f316",desc:"Waning Gibbous Moon Symbol"},{code:"1f317",desc:"Last Quarter Moon Symbol"},{code:"1f318",desc:"Waning Crescent Moon Symbol"},{code:"1f319",desc:"Crescent Moon"},{code:"1f31a",desc:"New Moon with Face"},{code:"1f31b",desc:"First Quarter Moon with Face"},{code:"1f31c",desc:"Last Quarter Moon with Face"},{code:"2600",desc:"Black Sun with Rays"},{code:"1f31d",desc:"Full Moon with Face"},{code:"1f31e",desc:"Sun with Face"},{code:"2b50",desc:"White Medium Star"},{code:"1f31f",desc:"Glowing Star"},{code:"1f320",desc:"Shooting Star"},{code:"2601",desc:"Cloud"},{code:"26c5",desc:"Sun Behind Cloud"},{code:"1f300",desc:"Cyclone"},{code:"1f308",desc:"Rainbow"},{code:"1f302",desc:"Closed Umbrella"},{code:"2614",desc:"Umbrella with Rain Drops"},{code:"26a1",desc:"High Voltage Sign"},{code:"2744",desc:"Snowflake"},{code:"2603",desc:"Snowman Without Snow"},{code:"1f525",desc:"Fire"},{code:"1f4a7",desc:"Droplet"},{code:"1F30A",desc:"Water Wave"}]},{id:"objects",name:"Objects",code:"1F507",emoticons:[{code:"1F507",desc:"Speaker with Cancellation Stroke"},{code:"1F508",desc:"Speaker"},{code:"1F509",desc:"Speaker with One Sound Wave"},{code:"1F50A",desc:"Speaker with Three Sound Wave"},{code:"1F4E2",desc:"Public Address Loudspeaker"},{code:"1F4E3",desc:"Cheering Megaphone"},{code:"1F4EF",desc:"Postal Horn"},{code:"1F514",desc:"Bell"},{code:"1F515",desc:"Bell with Cancellation Stroke"},{code:"1F3BC",desc:"Musical Score"},{code:"1F3B5",desc:"Musical Note"},{code:"1F3B6",desc:"Multiple Musical Notes"},{code:"1F3A4",desc:"Microphone"},{code:"1F3A7",desc:"Headphone"},{code:"1F4FB",desc:"Radio"},{code:"1F3B7",desc:"Saxophone"},{code:"1F3B8",desc:"Guitar"},{code:"1F3B9",desc:"Musical Keyboard"},{code:"1F3BA",desc:"Trumpet"},{code:"1F3BB",desc:"Violin"},{code:"1F4F1",desc:"Mobile Phone"},{code:"1F4F2",desc:"Mobile Phone with Rightwards Arrow at Left"},{code:"260E",desc:"Black Telephone"},{code:"1F4DE",desc:"Telephone Receiver"},{code:"1F4DF",desc:"Pager"},{code:"1F4E0",desc:"Fax Machine"},{code:"1F50B",desc:"Battery"},{code:"1F50C",desc:"Electric Plug"},{code:"1F4BB",desc:"Personal Computer"},{code:"1F4BD",desc:"Minidisc"},{code:"1F4BE",desc:"Floppy Disk"},{code:"1F4BF",desc:"Optical Disk"},{code:"1F4C0",desc:"Dvd"},{code:"1F3A5",desc:"Movie Camera"},{code:"1F3AC",desc:"Clapper Board"},{code:"1F4FA",desc:"Television"},{code:"1F4F7",desc:"Camera"},{code:"1F4F9",desc:"Video Camera"},{code:"1F4FC",desc:"Videocassette"},{code:"1F50D",desc:"Left-Pointing Magnifying Glass"},{code:"1F50E",desc:"Right-Pointing Magnifying Glass"},{code:"1F52C",desc:"Microscope"},{code:"1F52D",desc:"Telelscope"},{code:"1F4E1",desc:"Satellite Antenna"},{code:"1F4A1",desc:"Electric Light Bulb"},{code:"1F526",desc:"Electric Torch"},{code:"1F3EE",desc:"Izakaya Lantern"},{code:"1F4D4",desc:"Notebook with Decorative Cover"},{code:"1F4D5",desc:"Closed Book"},{code:"1F4D6",desc:"Open Book"},{code:"1F4D7",desc:"Green Book"},{code:"1F4D8",desc:"Blue Book"},{code:"1F4D9",desc:"Orange Book"},{code:"1F4DA",desc:"Books"},{code:"1F4D3",desc:"Notebook"},{code:"1F4D2",desc:"Ledger"},{code:"1F4C3",desc:"Curl"},{code:"1F4DC",desc:"Scroll"},{code:"1F4C4",desc:"Page Facing Up"},{code:"1F4F0",desc:"Newspaper"},{code:"1F4D1",desc:"Bookmark Tabs"},{code:"1F516",desc:"Bookmark"},{code:"1F4B0",desc:"Money Bag"},{code:"1F4B4",desc:"Banknote with Yen Sign"},{code:"1F4B5",desc:"Banknote with Dollar Sign"},{code:"1F4B6",desc:"Banknote with Euro Sign"},{code:"1F4B7",desc:"Banknote with Pound Sign"},{code:"1F4B8",desc:"Money with Wings"},{code:"1F4B3",desc:"Credit Card"},{code:"1F4B9",desc:"Chart with Upwards Trend and Yen Sign"},{code:"1F4B1",desc:"Currency Exchange"},{code:"1F4B2",desc:"Heavy Dollar Sign"},{code:"2709",desc:"Envelope"},{code:"1F4E7",desc:"E-Mail Symbol"},{code:"1F4E8",desc:"Incoming Envelope"},{code:"1F4E9",desc:"Envelope with Downwards Arrow Above"},{code:"1F4E4",desc:"Outbox Tray"},{code:"1F4E5",desc:"Inbox Tray"},{code:"1F4E6",desc:"Package"},{code:"1F4BE",desc:"Closed Mailbox with Raised Flag"},{code:"1F4EA",desc:"Closed Mailbox with Lowered Flag"},{code:"1F4EC",desc:"Open Mailbox with Raised Flag"},{code:"1F4ED",desc:"Open Mailbox with Lowered Flag"},{code:"1F5F3",desc:"Postbox"},{code:"270F",desc:"Pencil"},{code:"2712",desc:"Black Nib"},{code:"1F4DD",desc:"Memo"},{code:"1F4BC",desc:"Briefcase"},{code:"1F4C1",desc:"File Folder"},{code:"1F4C2",desc:"Open File Folder"},{code:"1F4C5",desc:"Calender"},{code:"1F4C6",desc:"Tear-off Calender"},{code:"1F4C7",desc:"Card Index"},{code:"1F4C8",desc:"Chart with Upwards Trend"},{code:"1F4C9",desc:"Chart with Downwards Trend"},{code:"1F4CA",desc:"Bar Chart"},{code:"1F4CB",desc:"Clipboard"},{code:"1F4CC",desc:"Pushpin"},{code:"1F4CD",desc:"Round Pushpin"},{code:"1F4CE",desc:"Paperclip"},{code:"1F4CF",desc:"Straight Ruler"},{code:"1F4D0",desc:"Triangular Ruler"},{code:"2702",desc:"Black Scissors"},{code:"1F512",desc:"Lock"},{code:"1F513",desc:"Open Lock"},{code:"1F50F",desc:"Lock with Ink Pen"},{code:"1F510",desc:"Closed Lock with Key"},{code:"1F511",desc:"Key"},{code:"1F528",desc:"Hammer"},{code:"1F52B",desc:"Pistol"},{code:"1F527",desc:"Wrench"},{code:"1F529",desc:"Nut and Bolt"},{code:"1F517",desc:"Link Symbol"},{code:"1F489",desc:"Syringe"},{code:"1F48A",desc:"Pill"},{code:"1F6AC",desc:"Smoking Symbol"},{code:"1F5FF",desc:"Moyai"},{code:"1F52E",desc:"Crystal Ball"}]},{id:"symbols",name:"Symbols",code:"1F3E7",emoticons:[{code:"1F3E7",desc:"Automated Teller Machine"},{code:"1F6AE",desc:"Put Litter in Its Place Symbol"},{code:"1F6B0",desc:"Potable Water Symbol"},{code:"267F",desc:"Wheelchair Symbol"},{code:"1F6B9",desc:"Mens Symbol"},{code:"1F6BA",desc:"Womens Symbol"},{code:"1F6BB",desc:"Restroom"},{code:"1F6BC",desc:"Baby Symbol"},{code:"1F6BE",desc:"Water Closet"},{code:"1F6C2",desc:"Passport Control"},{code:"1F6C3",desc:"Customs"},{code:"1F6C4",desc:"Baggage Claim"},{code:"1F6C5",desc:"Left Luggage"},{code:"26A0",desc:"Warning Sign"},{code:"1F6B8",desc:"Children Crossing"},{code:"26D4",desc:"No Entry"},{code:"1F6AB",desc:"No Entry Sign"},{code:"1F6B3",desc:"No Bicycles"},{code:"1F6AD",desc:"No Smoking Symbol"},{code:"1F6AF",desc:"Do Not Litter Symbol"},{code:"1F6B1",desc:"Non-Potable Water Symbol"},{code:"1F6B7",desc:"No Pedestrians"},{code:"1F4F5",desc:"No Mobile Phones"},{code:"1F51E",desc:"No One Under Eighteen Symbol"},{code:"2B06",desc:"Upwards Black Arrow"},{code:"2197",desc:"North East Arrow"},{code:"27A1",desc:"Black Rightwards Arrow"},{code:"2198",desc:"South East Arrow"},{code:"2B07",desc:"Downwards Black Arrow"},{code:"2199",desc:"South West Arrow"},{code:"2B05",desc:"Leftwards Black Arrow"},{code:"2196",desc:"North West Arrow"},{code:"2195",desc:"Up Down Arrow"},{code:"2194",desc:"Left Right Arrow"},{code:"21A9",desc:"Leftwards Arrow with Hook"},{code:"21AA",desc:"Rightwards Arrow with Hook"},{code:"2934",desc:"Arrow Pointing Rightwards Then Curving Upwards"},{code:"2935",desc:"Arrow Pointing Rightwards Then Curving Downwards"},{code:"1F503",desc:"Clockwise Downwards and Upwards Open Circle Arrows"},{code:"1F504",desc:"Anticlockwise Downwards and Upwards Open Circle Arrows"},{code:"1F519",desc:"Back with Leftwards Arrow Above"},{code:"1F51A",desc:"End with Leftwards Arrow Above"},{code:"1F51B",desc:"On with Exclamation Mark with Left Right Arrow Above"},{code:"1F51C",desc:"Soon with Rightwards Arrow Above"},{code:"1F51D",desc:"Top with Upwards Arrow Above"},{code:"1F52F",desc:"Six Pointed Star with Middle Dot"},{code:"2648",desc:"Aries"},{code:"2649",desc:"Taurus"},{code:"264A",desc:"Gemini"},{code:"264B",desc:"Cancer"},{code:"264C",desc:"Leo"},{code:"264D",desc:"Virgo"},{code:"264E",desc:"Libra"},{code:"264F",desc:"Scorpius"},{code:"2650",desc:"Sagittarius"},{code:"2651",desc:"Capricorn"},{code:"2652",desc:"Aquarius"},{code:"2653",desc:"Pisces"},{code:"26CE",desc:"Ophiuchus"},{code:"1F500",desc:"Twisted Rightwards Arrows"},{code:"1F501",desc:"Clockwise Rightwards and Leftwards Open Circle Arrows"},{code:"1F502",desc:"Clockwise Rightwards and Leftwards Open Circle Arrows with Circled One Overlay"},{code:"25B6",desc:"Black Right-Pointing Triangle"},{code:"23E9",desc:"Black Right-Pointing Double Triangle"},{code:"25C0",desc:"Black Left-Pointing Triangle"},{code:"23EA",desc:"Black Left-Pointing Double Triangle"},{code:"1F53C",desc:"Up-Pointing Small Red Triangle"},{code:"23EB",desc:"Black Up-Pointing Double Triangle"},{code:"1F53D",desc:"Down-Pointing Small Red Triangle"},{code:"23EC",desc:"Black Down-Pointing Double Triangle"},{code:"1F3A6",desc:"Cinema"},{code:"1F505",desc:"Low Brightness Symbol"},{code:"1F506",desc:"High Brightness Symbol"},{code:"1F4F6",desc:"Antenna with Bars"},{code:"1F4F3",desc:"Vibration Mode"},{code:"1F4F4",desc:"Mobile Phone off"},{code:"267B",desc:"Black Universal Recycling Symbol"},{code:"1F531",desc:"Trident Emblem"},{code:"1F4DB",desc:"Name Badge"},{code:"1F530",desc:"Japanese Symbol for Beginner"},{code:"2B55",desc:"Heavy Large Circle"},{code:"2705",desc:"White Heavy Check Mark"},{code:"2611",desc:"Ballot Box with Check"},{code:"2714",desc:"Heavy Check Mark"},{code:"2716",desc:"Heavy Multiplication X"},{code:"274C",desc:"Cross Mark"},{code:"274E",desc:"Negative Squared Cross Mark"},{code:"2795",desc:"Heavy Plus Sign"},{code:"2796",desc:"Heavy Minus Sign"},{code:"2797",desc:"Heavy Division Sign"},{code:"27B0",desc:"Curly Loop"},{code:"27BF",desc:"Double Curly Loop"},{code:"303D",desc:"Part Alternation Mark"},{code:"2733",desc:"Eight Spoked Asterisk"},{code:"2734",desc:"Eight Pointed Black Star"},{code:"2747",desc:"Sparkle"},{code:"203C",desc:"Double Exclamation Mark"},{code:"2049",desc:"Exclamation Question Mark"},{code:"2753",desc:"Black Question Mark Ornament"},{code:"2754",desc:"White Question Mark Ornament"},{code:"2755",desc:"White Exclamation Mark Ornament"},{code:"2757",desc:"Heavy Exclamation Mark Symbol"},{code:"3030",desc:"Wavy Dash"},{code:"2122",desc:"Trade Mark Sign"},{code:"1F51F",desc:"Keycap Ten"},{code:"1F4AF",desc:"Hundred Points Symbol"},{code:"1F520",desc:"Input Symbol for Latin Capital Letters"},{code:"1F521",desc:"Input Symbol for Latin Small Letters"},{code:"1F522",desc:"Input Symbol for Numbers"},{code:"1F523",desc:"Input Symbol for Symbols"},{code:"1F524",desc:"Input Symbol for Latin Letters"},{code:"1F170",desc:"Negative Squared Latin Capital Letter a"},{code:"1F18E",desc:"Negative Squared Ab"},{code:"1F171",desc:"Negative Squared Latin Capital Letter B"},{code:"1F191",desc:"Squared Cl"},{code:"1F192",desc:"Squared Cool"},{code:"1F193",desc:"Squared Free"},{code:"2139",desc:"Information Source"},{code:"1F194",desc:"Squared Id"},{code:"24C2",desc:"Circled Latin Capital Letter M"},{code:"1F195",desc:"Squared New"},{code:"1F196",desc:"Squared Ng"},{code:"1F17E",desc:"Negative Squared Latin Capital Letter O"},{code:"1F197",desc:"Squared Ok"},{code:"1F17F",desc:"Negative Squared Latin Capital Letter P"},{code:"1F198",desc:"Squared Sos"},{code:"1F199",desc:"Squared Up with Exclamation Mark"},{code:"1F19A",desc:"Squared Vs"},{code:"1F201",desc:"Squared Katakana Koko"},{code:"1F202",desc:"Squared Katakana Sa"},{code:"1F237",desc:"Squared Cjk Unified Ideograph-6708"},{code:"1F236",desc:"Squared Cjk Unified Ideograph-6709"},{code:"1F22F",desc:"Squared Cjk Unified Ideograph-6307"},{code:"1F250",desc:"Circled Ideograph Advantage"},{code:"1F239",desc:"Squared Cjk Unified Ideograph-5272"},{code:"1F21A",desc:"Squared Cjk Unified Ideograph-7121"},{code:"1F232",desc:"Squared Cjk Unified Ideograph-7981"},{code:"1F251",desc:"Circled Ideograph Accept"},{code:"1F238",desc:"Squared Cjk Unified Ideograph-7533"},{code:"1F234",desc:"Squared Cjk Unified Ideograph-5408"},{code:"1F233",desc:"Squared Cjk Unified Ideograph-7a7a"},{code:"3297",desc:"Circled Ideograph Congratulation"},{code:"3299",desc:"Circled Ideograph Secret"},{code:"1F23A",desc:"Squared Cjk Unified Ideograph-55b6"},{code:"1F235",desc:"Squared Cjk Unified Ideograph-6e80"},{code:"25AA",desc:"Black Small Square"},{code:"25AB",desc:"White Small Square"},{code:"25FB",desc:"White Medium Square"},{code:"25FC",desc:"Black Medium Square"},{code:"25FD",desc:"White Medium Small Square"},{code:"25FE",desc:"Black Medium Small Square"},{code:"2B1B",desc:"Black Large Square"},{code:"2B1C",desc:"White Large Square"},{code:"1F536",desc:"Large Orange Diamond"},{code:"1F537",desc:"Large Blue Diamond"},{code:"1F538",desc:"Small Orange Diamond"},{code:"1F539",desc:"Small Blue Diamond"},{code:"1F53A",desc:"Up-Pointing Red Triangle"},{code:"1F53B",desc:"Down-Pointing Red Triangle"},{code:"1F4A0",desc:"Diamond Shape with a Dot Inside"},{code:"1F518",desc:"Radio Button"},{code:"1F532",desc:"Black Square Button"},{code:"1F533",desc:"White Square Button"},{code:"26AA",desc:"Medium White Circle"},{code:"26AB",desc:"Medium Black Circle"},{code:"1F534",desc:"Large Red Circle"},{code:"1F535",desc:"Large Blue Circle"}]},{id:"flags",name:"Flags",code:"1F3C1",emoticons:[{code:"1f3c1",desc:"Chequered Flag"},{code:"1f1e8-1f1f3",desc:"China Flag"},{code:"1f38c",desc:"Crossed Flags"},{code:"1f1e9-1f1ea",desc:"Germany Flag"},{code:"1f1ea-1f1f8",desc:"Spain Flag"},{code:"1f1e6-1f1e8",desc:"Ascension Island Flag"},{code:"1f1e6-1f1e9",desc:"Andorra Flag"},{code:"1f1e6-1f1ea",desc:"United Arab Emirates Flag"},{code:"1f1e6-1f1eb",desc:"Afghanistan Flag"},{code:"1f1e6-1f1ec",desc:"Antigua & Barbuda Flag"},{code:"1f1e6-1f1ee",desc:"Anguilla Flag"},{code:"1f1e6-1f1f1",desc:"Albania Flag"},{code:"1f1e6-1f1f2",desc:"Armenia Flag"},{code:"1f1e6-1f1f4",desc:"Angola Flag"},{code:"1f1e6-1f1f6",desc:"Antarctica Flag"},{code:"1f1e6-1f1f7",desc:"Argentina Flag"},{code:"1f1e6-1f1f8",desc:"American Samoa Flag"},{code:"1f1e6-1f1f9",desc:"Austria Flag"},{code:"1f1e6-1f1fa",desc:"Australia Flag"},{code:"1f1e6-1f1fc",desc:"Aruba Flag"},{code:"1f1e6-1f1fd",desc:"\x
1C5land Islands Flag"},{code:"1f1e6-1f1ff",desc:"Azerbaijan Flag"},{code:"1f1e7-1f1e7",desc:"Barbados Flag"},{code:"1f1e7-1f1e9",desc:"Bangladesh Flag"},{code:"1f1e7-1f1ea",desc:"Belgium Flag"},{code:"1f1e7-1f1eb",desc:"Burkina Faso Flag"},{code:"1f1e7-1f1ec",desc:"Bulgaria Flag"},{code:"1f1e7-1f1ed",desc:"Bahrain Flag"},{code:"1f1e7-1f1ee",desc:"Burundi Flag"},{code:"1f1e7-1f1ef",desc:"Benin Flag"},{code:"1f1e7-1f1f1",desc:"St. Barth\xE9lemy Flag"},{code:"1f1e7-1f1f2",desc:"Bermuda Flag"},{code:"1f1e7-1f1f4",desc:"Bolivia Flag"},{code:"1f1e7-1f1f6",desc:"Caribbean Netherlands Flag"},{code:"1f1e7-1f1f7",desc:"Brazil Flag"},{code:"1f1e7-1f1f8",desc:"Bahamas Flag"},{code:"1f1e7-1f1f9",desc:"Bhutan Flag"},{code:"1f1e7-1f1fb",desc:"Bouvet Island Flag"},{code:"1f1e7-1f1fc",desc:"Botswana Flag"},{code:"1f1e7-1f1fe",desc:"Belarus Flag"},{code:"1f1e7-1f1ff",desc:"Belize Flag"},{code:"1f1e8-1f1e6",desc:"Canada Flag"},{code:"1f1e8-1f1e8",desc:"Cocos (keeling) Islands Flag"},{code:"1f1e8-1f1e9",desc:"Congo - Kinshasa Flag"},{code:"1f1e8-1f1eb",desc:"Central African Republic Flag"},{code:"1f1e8-1f1ec",desc:"Congo - Brazzaville Flag"},{code:"1f1e8-1f1ed",desc:"Switzerland Flag"},{code:"1f1e8-1f1ee",desc:"C\xF4te D\u2019ivoire Flag"},{code:"1f1e8-1f1f0",desc:"Cook Islands Flag"},{code:"1f1e8-1f1f1",desc:"Chile Flag"},{code:"1f1e8-1f1f2",desc:"Cameroon Flag"},{code:"1f1e8-1f1f4",desc:"Colombia Flag"},{code:"1f1e8-1f1f7",desc:"Costa Rica Flag"},{code:"1f1e8-1f1fa",desc:"Cuba Flag"},{code:"1f1e8-1f1fb",desc:"Cape Verde Flag"},{code:"1f1e8-1f1fc",desc:"Cura\xE
vendor: 5,789 bytes, line 1
17ao Flag"},{code:"1f1e8-1f1fd",desc:"Christmas Island Flag"},{code:"1f1e8-1f1fe",desc:"Cyprus Flag"},{code:"1f1e8-1f1ff",desc:'Czechia Flag"'},{code:"1f1e9-1f1ec",desc:"Diego Garcia Flag"},{code:"1f1e9-1f1ef",desc:"Djibouti Flag"},{code:"1f1e9-1f1f0",desc:"Denmark Flag"},{code:"1f1e9-1f1f2",desc:"Dominica Flag"},{code:"1f1e9-1f1f4",desc:"Dominican Republic Flag"},{code:"1f1e9-1f1ff",desc:"Algeria Flag"},{code:"1f1ea-1f1e6",desc:"Ceuta & Melilla Flag"},{code:"1f1ea-1f1e8",desc:"Ecuador Flag"},{code:"1f1ea-1f1ea",desc:"Estonia Flag"},{code:"1f1ea-1f1ec",desc:"Egypt Flag"},{code:"1f1ea-1f1ed",desc:"Western Sahara Flag"},{code:"1f1ea-1f1f7",desc:"Eritrea Flag"},{code:"1f1ea-1f1f9",desc:"Ethiopia Flag"},{code:"1f1ea-1f1fa",desc:"European Union Flag"},{code:"1f1eb-1f1ee",desc:"Finland Flag"},{code:"1f1eb-1f1ef",desc:"Fiji Flag"},{code:"1f1eb-1f1f0",desc:"Falkland Islands Flag"},{code:"1f1eb-1f1f2",desc:"Micronesia Flag"},{code:"1f1eb-1f1f4",desc:"Faroe Islands Flag"},{code:"1f1ec-1f1e6",desc:"Gabon Flag"},{code:"1f1ec-1f1e9",desc:"Grenada Flag"},{code:"1f1ec-1f1ea",desc:"Georgia Flag"},{code:"1f1ec-1f1eb",desc:"French Guiana Flag"},{code:"1f1ec-1f1ec",desc:"Guernsey Flag"},{code:"1f1ec-1f1ed",desc:"Ghana Flag"},{code:"1f1ec-1f1ee",desc:"Gibraltar Flag"},{code:"1f1ec-1f1f1",desc:"Greenland Flag"},{code:"1f1ec-1f1f2",desc:"Gambia Flag"},{code:"1f1ec-1f1f3",desc:"Guinea Flag"},{code:"1f1ec-1f1f5",desc:"Guadeloupe Flag"},{code:"1f1ec-1f1f6",desc:"Equatorial Guinea Flag"},{code:"1f1ec-1f1f7",desc:"Greece Flag"},{code:"1f1ec-1f1f8",desc:"South Georgia & South Sandwich Islands Flag"},{code:"1f1ec-1f1f9",desc:"Guatemala Flag"},{code:"1f1ec-1f1fa",desc:"Guam Flag"},{code:"1f1ec-1f1fc",desc:"Guinea-Bissau Flag"},{code:"1f1ec-1f1fe",desc:"Guyana Flag"},{code:"1f1ed-1f1f0",desc:"Hong Kong Sar China Flag"},{code:"1f1ed-1f1f2",desc:"Heard & Mcdonald Islands Flag"},{code:"1f1ed-1f1f3",desc:"Honduras Flag"},{code:"1f1ed-1f1f7",desc:"Croatia Flag"},{code:"1f1ed-1f1f9",desc:"Haiti Flag"},{code:"1f1ed-1f1fa",desc:"Hungary Flag"},{code:"1f1ee-1f1e8",desc:"Canary Islands Flag"},{code:"1f1ee-1f1e9",desc:"Indonesia Flag"},{code:"1f1ee-1f1ea",desc:"Ireland Flag"},{code:"1f1ee-1f1f1",desc:"Israel Flag"},{code:"1f1ee-1f1f2",desc:"Isle of Man Flag"},{code:"1f1ee-1f1f3",desc:"India Flag"},{code:"1f1ee-1f1f4",desc:"British Indian Ocean Territory Flag"},{code:"1f1ee-1f1f6",desc:"Iraq Flag"},{code:"1f1ee-1f1f7",desc:"Iran Flag"},{code:"1f1ee-1f1f8",desc:"Iceland Flag"},{code:"1f1ef-1f1ea",desc:"Jersey Flag"},{code:"1f1ef-1f1f2",desc:"Jamaica Flag"},{code:"1f1ef-1f1f4",desc:"Jordan Flag"},{code:"1f1f0-1f1ea",desc:"Kenya Flag"},{code:"1f1f0-1f1ec",desc:"Kyrgyzstan Flag"},{code:"1f1f0-1f1ed",desc:"Cambodia Flag"},{code:"1f1f0-1f1ee",desc:"Kiribati Flag"},{code:"1f1f0-1f1f2",desc:"Comoros Flag"},{code:"1f1f0-1f1f3",desc:"St. Kitts & Nevis Flag"},{code:"1f1f0-1f1f5",desc:"North Korea Flag"},{code:"1f1f0-1f1fc",desc:"Kuwait Flag"},{code:"1f1f0-1f1fe",desc:"Cayman Islands Flag"},{code:"1f1f0-1f1ff",desc:"Kazakhstan Flag"},{code:"1f1f1-1f1e6",desc:"Laos Flag"},{code:"1f1f1-1f1e7",desc:"Lebanon Flag"},{code:"1f1f1-1f1e8",desc:"St. Lucia Flag"},{code:"1f1f1-1f1ee",desc:"Liechtenstein Flag"},{code:"1f1f1-1f1f0",desc:"Sri Lanka Flag"},{code:"1f1f1-1f1f7",desc:"Liberia Flag"},{code:"1f1f1-1f1f8",desc:"Lesotho Flag"},{code:"1f1f1-1f1f9",desc:"Lithuania Flag"},{code:"1f1f1-1f1fa",desc:"Luxembourg Flag"},{code:"1f1f1-1f1fb",desc:"Latvia Flag"},{code:"1f1f1-1f1fe",desc:"Libya Flag"},{code:"1f1f2-1f1e6",desc:"Morocco Flag"},{code:"1f1f2-1f1e8",desc:"Monaco Flag"},{code:"1f1f2-1f1e9",desc:"Moldova Flag"},{code:"1f1f2-1f1ea",desc:"Montenegro Flag"},{code:"1f1f2-1f1eb",desc:"St. Martin Flag"},{code:"1f1f2-1f1ec",desc:"Madagascar Flag"},{code:"1f1f2-1f1ed",desc:"Marshall Islands Flag"},{code:"1f1f2-1f1f0",desc:"Macedonia Flag"},{code:"1f1f2-1f1f1",desc:"Mali Flag"},{code:"1f1f2-1f1f2",desc:"Myanmar (burma) Flag"},{code:"1f1f2-1f1f3",desc:"Mongolia Flag"},{code:"1f1f2-1f1f4",desc:"Macau Sar China Flag"},{code:"1f1f2-1f1f5",desc:"Northern Mariana Islands Flag"},{code:"1f1f2-1f1f6",desc:"Martinique Flag"},{code:"1f1f2-1f1f7",desc:"Mauritania Flag"},{code:"1f1f2-1f1f8",desc:"Montserrat Flag"},{code:"1f1f2-1f1f9",desc:"Malta Flag"},{code:"1f1f2-1f1fa",desc:"Mauritius Flag"},{code:"1f1f2-1f1fb",desc:"Maldives Flag"},{code:"1f1f2-1f1fc",desc:"Malawi Flag"},{code:"1f1f2-1f1fd",desc:"Mexico Flag"},{code:"1f1f2-1f1fe",desc:"Malaysia Flag"},{code:"1f1f2-1f1ff",desc:"Mozambique Flag"},{code:"1f1f3-1f1e6",desc:"Namibia Flag"},{code:"1f1f3-1f1e8",desc:"New Caledonia Flag"},{code:"1f1f3-1f1ea",desc:"Niger Flag"},{code:"1f1f3-1f1eb",desc:"Norfolk Island Flag"},{code:"1f1f3-1f1ec",desc:"Nigeria Flag"},{code:"1f1f3-1f1ee",desc:"Nicaragua Flag"},{code:"1f1f3-1f1f1",desc:"Netherlands Flag"},{code:"1f1f3-1f1f4",desc:"Norway Flag"},{code:"1f1f3-1f1f5",desc:"Nepal Flag"},{code:"1f1f3-1f1f7",desc:"Nauru Flag"},{code:"1f1f3-1f1fa",desc:"Niue Flag"},{code:"1f1f3-1f1ff",desc:"New Zealand Flag"},{code:"1f1f4-1f1f2",desc:"Oman Flag"},{code:"1f1f8-1f1ff",desc:"Swaziland Flag"},{code:"1f1f5-1f1e6",desc:"Panama Flag"},{code:"1f1f5-1f1ea",desc:"Peru Flag"},{code:"1f1f5-1f1eb",desc:"French Polynesia Flag"},{code:"1f1f5-1f1ec",desc:"Papua New Guinea Flag"},{code:"1f1f5-1f1ed",desc:"Philippines Flag"},{code:"1f1f5-1f1f0",desc:"Pakistan Flag"},{code:"1f1f5-1f1f1",desc:"Poland Flag"},{code:"1f1f5-1f1f2",desc:"St. Pierre & Miquelon Flag"},{code:"1f1f5-1f1f3",desc:"Pitcairn Islands Flag"},{code:"1f1f5-1f1f7",desc:"Puerto Rico Flag"},{code:"1f1f5-1f1f8",desc:"Palestinian Territories Flag"},{code:"1f1f5-1f1f9",desc:"Portugal Flag"},{code:"1f1f5-1f1fc",desc:"Palau Flag"},{code:"1f1f5-1f1fe",desc:"Paraguay Flag"},{code:"1f1f6-1f1e6",desc:"Qatar Flag"},{code:"1f1f7-1f1ea",desc:"R\x
1E9union Flag"},{code:"1f1f7-1f1f4",desc:"Romania Flag"},{code:"1f1f7-1f1f8",desc:"Serbia Flag"},{code:"1f1f7-1f1fc",desc:"Rwanda Flag"},{code:"1f1f8-1f1e6",desc:"Saudi Arabia Flag"},{code:"1f1f8-1f1e7",desc:"Solomon Islands Flag"},{code:"1f1f8-1f1e8",desc:"Seychelles Flag"},{code:"1f1f8-1f1e9",desc:"Sudan Flag"},{code:"1f1f8-1f1ea",desc:"Sweden Flag"},{code:"1f1f8-1f1ec",desc:"Singapore Flag"},{code:"1f1f8-1f1ee",desc:"Slovenia Flag"},{code:"1f1f8-1f1ed",desc:"St. Helena Flag"},{code:"1f1f8-1f1ef",desc:"Svalbard & Jan Mayen Flag"},{code:"1f1f8-1f1f1",desc:"Sierra Leone Flag"},{code:"1f1f8-1f1f2",desc:"San Marino Flag"},{code:"1f1f8-1f1f3",desc:"Senegal Flag"},{code:"1f1f8-1f1f4",desc:"Somalia Flag"},{code:"1f1f8-1f1f7",desc:"Suriname Flag"},{code:"1f1f8-1f1f8",desc:"South Sudan Flag"},{code:"1f1f8-1f1f9",desc:"S\xE3o Tom\xE9 & Pr\xEDncipe Flag"},{code:"1f1f8-1f1fb",desc:"El Salvador Flag"},{code:"1f1f8-1f1fd",desc:"Sint Maarten Flag"},{code:"1f1f8-1f1fe",desc:"Syria Flag"},{code:"1f1f9-1f1e6",desc:"Tristan Da Cunha Flag"},{code:"1f1f9-1f1e8",desc:"Turks & Caicos Islands Flag"},{code:"1f1f9-1f1eb",desc:"French Southern Territories Flag"},{code:"1f1f9-1f1ec",desc:"Togo Flag"},{code:"1f1f9-1f1ed",desc:"Thailand Flag"},{code:"1f1f9-1f1ef",desc:"Tajikistan Flag"},{code:"1f1f9-1f1f0",desc:"Tokelau Flag"},{code:"1f1f9-1f1f1",desc:"Timor-Leste Flag"},{code:"1f1f9-1f1f2",desc:"Turkmenistan Flag"},{code:"1f1f9-1f1f3",desc:"Tunisia Flag"},{code:"1f1f9-1f1f4",desc:"Tonga Flag"},{code:"1f1f9-1f1f7",desc:"Turkey Flag"},{code:"1f1f9-1f1f9",desc:"Trinidad & Tobago Flag"},{code:"1f1f9-1f1fb",desc:"Tuvalu Flag"},{code:"1f1f9-1f1fc",desc:"Taiwan Flag"},{code:"1f1f9-1f1ff",desc:"Tanzania Flag"},{code:"1f1fa-1f1e6",desc:"Ukraine City Flag"},{code:"1f1fa-1f1ec",desc:"Uganda Flag"},{code:"1f1fa-1f1f2",desc:"U.s. Outlying Islands Flag"},{code:"1f1fa-1f1fe",desc:"Uruguay Flag"},{code:"1f1fa-1f1ff",desc:"Uzbekistan Flag"},{code:"1f1fb-1f1e6",desc:"Vatican City Flag"},{code:"1f1fb-1f1e8",desc:"St. Vincent & Grenadines Flag"}
1,{code:"1f1fb-1f1ea",desc:"Venezuela Flag"},{code:"1f1fb-1f1ec",desc:"British Virgin Islands Flag"},{code:"1f1fb-1f1ee",desc:"U.s. Virgin Islands Flag"},{code:"1f1fb-1f1f3",desc:"Vietnam Flag"},{code:"1f1fc-1f1f8",desc:"Samoa Flag"},{code:"1f1fb-1f1fa",desc:"Vanuatu Flag"},{code:"1f1fc-1f1eb",desc:'"Wallis & Futuna Flag'},{code:"1f1fd-1f1f0",desc:"Kosovo Flag"},{code:"1f1fe-1f1ea",desc:"Yemen Flag"},{code:"1f1fe-1f1f9",desc:"Mayotte Flag"},{code:"1f1ff-1f1e6",desc:"South Africa Flag"},{code:"1f1ff-1f1f2",desc:"Zambia Flag"},{code:"1f1ff-1f1fc",desc:"Zimbabwe Flag"},{code:"1f1eb-1f1f7",desc:"France Flag"},{code:"1f1ec-1f1e7",desc:"United Kingdom Flag"},{code:"1f1ee-1f1f9",desc:"Italy Flag"},{code:"1f1ef-1f1f5",desc:"Japan Flag"},{code:"1f1f0-1f1f7",desc:"South Korea Flag"},{code:"1f1f7-1f1fa",desc:"Russia Flag"},{code:"1F6A9",desc:"Triangular Flag on Post"},{code:"1f1fa-1f1f8",desc:"United States Flag"}]}],emoticonsButtons:["emoticonsBack","|"],emoticonsUseImage:!0}),o.PLUGINS.emoticons=function(e){var d=e.$,t=e.opts.emoticonsSet,s=t&&t[0],h="";function a(){if(e.selection.isCollapsed()){var j=e.selection.element(),P=e.selection.endElement();if(j&&e.node.hasClass(j,"fr-emoticon"))return j;if(P&&e.node.hasClass(P,"fr-emoticon"))return P;if(j=e.selection.ranges(0),P=j.startContainer,P.nodeType==Node.ELEMENT_NODE&&0<P.childNodes.length&&0<j.startOffset&&(j=P.childNodes[j.startOffset-1],e.node.hasClass(j,"fr-emoticon")))return j}return!1}function y(){var j;return"".concat((j=s,'<div class="fr-buttons fr-tabs fr-tabs-scroll">\n '.concat((function(P,ne){var ue="";return P.forEach(function(k){var g={image:k.code.toLowerCase()},I=k.id===ne.id,k={elementClass:I?"fr-active fr-active-tab":"",emoticonsUnicodeClass:e.opts.emoticonsUseImage?"":"fr-tabs-unicode",title:e.language.translate(k.name),dataCmd:"setEmoticonCategory",dataParam1:k.id,image:e.opts.emoticonsUseImage?'<img src="https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/'.concat(g.image,'.svg"/>'):"&#x".concat(g.image,";")};ue+='<button class="fr-command fr-btn '.concat(k.elementClass," ").concat(k.emoticonsUnicodeClass,'" \n title="').concat(k.title,'" data-cmd="').concat(k.dataCmd,'" data-param1="').concat(k.dataParam1,'" aria-pressed="').concat(I,'">\n ').concat(k.image," </button>")}),ue})(t,j),"\n </div>")),"\n ").concat((j=s,'\n <div class="fr-icon-container fr-emoticon-container">\n '.concat((function(P){var ne="";return P.emoticons.forEach(function(ue){var v=ue.code.split("-").reduce(function(g,I){return(g?"".concat(g,"‍&#x"):"&#x").concat(I.toLowerCase(),";")},""),v={image:ue.code.toLowerCase(),compiledCode:ue.uCode||v},v={dataParam1:ue.code.toLowerCase(),dataParam2:v.compiledCode,title:e.language.translate(ue.desc),image:e.opts.emoticonsUseImage?'<img src="https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/'.concat(v.image,'.svg"/>'):"".concat(v.compiledCode),desc:e.language.translate(ue.desc)};ne+='<span class="fr-command fr-emoticon fr-icon" role="button" \n data-cmd="insertEmoticon" data-param1="'.concat(v.dataParam1,'" tabindex="0"\n data-param2="').concat(v.dataParam2,'" title="').concat(v.title,'" >\n ').concat(v.image,'<span class="fr-sr-only">').concat(v.desc," </span></span>")}),ne})(j),"\n </div>\n ")),"\n ").concat(e.opts.emoticonsUseImage?'<p style="font-size: 12px; text-align: center; padding: 0 5px;">Emoji free by <a class="fr-link" tabIndex="-1" href="http://emojione.com/" target="_blank" rel="nofollow noopener noreferrer" role="link" aria-label="Open Emoji One website.">Emoji One</a></p>':"")}return{_init:function(){var j;(j=function(){for(var ne=e.el.querySelectorAll(".fr-emoticon:not(.fr-deletable)"),ue=0;ue<ne.length;ue++)ne[ue].className+=" fr-deletable"})(),e.events.on("html.set",j),e.events.on("keydown",function(P){var ne;e.keys.isCharacter(P.which)&&e.selection.inEditor()&&(P=e.selection.ranges(0),ne=a(),e.node.hasClass(ne,"fr-emoticon-img")||e.node.hasClass(ne,"fr-emoticon"))&&ne&&(P.startOffset===0&&e.selection.element
1()===ne?d(ne).before(o.MARKERS+o.INVISIBLE_SPACE):d(ne).after(o.INVISIBLE_SPACE+o.MARKERS),e.selection.restore())}),e.events.on("keyup",function(P){for(var ne=e.el.querySelectorAll(".fr-emoticon"),ue=0;ue<ne.length;ue++)typeof ne[ue].textContent<"u"&&ne[ue].textContent.replace(/\u200B/gi,"").length===0&&d(ne[ue]).remove();P.which>=o.KEYCODE.ARROW_LEFT&&P.which<=o.KEYCODE.ARROW_DOWN||(P=a(),e.node.hasClass(P,"fr-emoticon-img")&&(d(P).append(o.MARKERS),e.selection.restore()))})},insert:function(j,P){var ne=a(),ue=e.selection.ranges(0);ne?(ue.startOffset===0&&e.selection.element()===ne?d(ne).before(o.MARKERS+o.INVISIBLE_SPACE):0<ue.startOffset&&e.selection.element()===ne&&ue.commonAncestorContainer.parentNode.classList.contains("fr-emoticon")&&d(ne).after(o.INVISIBLE_SPACE+o.MARKERS),e.selection.restore(),e.html.insert('<span class="fr-emoticon fr-deletable'.concat(P?" fr-emoticon-img":"",'"').concat(P?' style="background: url('.concat(P,');"'):"",">").concat(P?" ":j,"</span> ").concat(o.MARKERS),!0)):e.html.insert('<span class="fr-emoticon fr-deletable'.concat(P?" fr-emoticon-img":"",'"').concat(P?' style="background: url('.concat(P,');"'):"",">").concat(P?" ":j,"</span>").concat(o.INVISIBLE_SPACE),!0)},setEmoticonCategory:function(j){var P;s=t.filter(function(ne){return ne.id===j})[0],e.popups.get("emoticons").html(h+y()),P=e.popups.get("emoticons").children().not(".fr-buttons"),e.accessibility.registerPopup("emoticons"),e.accessibility.focusContent(P)},showEmoticonsPopup:function(){var j,P,ne=e.popups.get("emoticons");if(!ne){e.opts.toolbarInline&&0<e.opts.emoticonsButtons.length&&(h='<div class="fr-buttons fr-emoticons-buttons fr-tabs">'.concat(e.button.buildList(e.opts.emoticonsButtons),"</div>")),j={buttons:h,custom_layer:y()};var ue=j=e.popups.create("emoticons",j);e.events.on("popup.tab",function(v){var g,I,k,E,Q,x,te,Ke,q=d(v.currentTarget);return!e.popups.isVisible("emoticons")||!q.is("span, a")||(g=v.which,Q=window.getComputedStyle(ue.find(".fr-icon-container")[0]).getPropertyValue("grid-template-columns").split(" ").length,o.KEYCODE.TAB==g?(E=ue.find("span.fr-emoticon"),(q.is(E.first())&&v.shiftKey||q.is("a")&&!v.shiftKey)&&(E=ue.find(".fr-buttons"),k=!e.accessibility.focusToolbar(E,!!v.shiftKey)),k!==!1&&((E=ue.find("span.fr-emoticon")).add(ue.find("a.fr-link")),E.add(ue.find("button.fr-btn")),te=E.index(q),te=v.shiftKey?((te-1)%E.length+E.length)%E.length:(te+1)%E.length,I=E.get(te),e.events.disableBlur(),I.focus(),k=!1)):o.KEYCODE.ARROW_UP==g||o.KEYCODE.ARROW_DOWN==g||o.KEYCODE.ARROW_LEFT==g||o.KEYCODE.ARROW_RIGHT==g?q.is("span.fr-emoticon")&&(te=(E=q.parent().find("span.fr-emoticon")).index(q),Q=Q,x=Math.ceil(E.length/Q),Ke=te%Q,te=Math.floor(te/Q)*Q+Ke,Ke=x*Q,o.KEYCODE.ARROW_UP==g?te=((te-Q)%Ke+Ke)%Ke:o.KEYCODE.ARROW_DOWN==g?te=(te+Q)%Ke:o.KEYCODE.ARROW_LEFT==g?te=((te-1)%Ke+Ke)%Ke:o.KEYCODE.ARROW_RIGHT==g&&(te=(te+1)%Ke),I=d(E.get(te)),e.events.disableBlur(),I.focus(),k=!1):o.KEYCODE.ENTER==g&&(q.is("a")?q[0].click():e.button.exec(q),k=!1),k===!1&&(v.preventDefault(),v.stopPropagation()),k)},!0),ne=j}ne.hasClass("fr-active")||(e.popups.refresh("emoticons"),e.popups.setContainer("emoticons",e.$tb),j=e.$tb.find('.fr-command[data-cmd="emoticons"]'),P=(ne=e.button.getPosition(j)).left,e.popups.show("emoticons",P,ne.top,j.outerHeight()),e.popups.get("emoticons").css("overflow","hidden"))},back:function(){e.popups.hide("emoticons"),e.toolbar.showInline()}}},o.DefineIcon("emoticons",{NAME:"smile-o",FA5NAME:"smile",SVG_KEY:"smile"}),o.RegisterCommand("emoticons",{title:"Emoticons",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("emoticons")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("emoticons")):this.emoticons.showEmoticonsPopup()},plugin:"emoticons"}),o.RegisterCommand("insertEmoticon",{callback:function(e,d,t){this.emoticons.insert(t,this.opts.emoticonsUseImage?"https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/".concat(d,".svg"):null),this.popups.hide("emoticons")}}),o.RegisterCommand("setEmoticonCategory",{undo:!1,focus:!1,callback:function(e,d){this.emoticons.setEmoticonCategory(d)}}),o.DefineIcon("emoticonsBack",{NAME:"arrow-left",SVG_KEY:"back"}),o.RegisterCommand("emoticonsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.emoticons.back()}})})});var Qi=Ba((oi,Zi)=>{"use strict";(function(o,e){typeof oi=="object"&&typeof Zi<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(oi,function(o){"use strict";Object.assign(o.POPUP_TEMPLATES,{"file.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_PROGRESS_BAR_]"}),Object.assign(o.DEFAULTS,{fileUpload:!0,fileUploadURL:null,fileUploadParam:"file",fileUploadParams:{},fileUploadToS3:!1,fileUploadToAzure:!1,fileUploadMethod:"POST",fileMaxSize:10485760,fileAllowedTypes:["*"],fileInsertButtons:["fileBack","|"],fileUseSelectedText:!1}),o.PLUGINS.file=function(e){var d,t=e.$,s="https://i.froala.com/upload",h=2,a=3,y=4,j=5,P=6,ne={};function ue(){var be=e.popups.get("file.insert");(be=be||ge()).find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),be.find(".fr-file-progress-bar-layer").addClass("fr-active"),be.find(".fr-buttons").hide(),g(e.language.translate("Uploading"),0)}function v(be){var Ne=e.popups.get("file.insert");Ne&&(Ne.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),Ne.find(".fr-file-progress-bar-layer").removeClass("fr-active"),Ne.find(".fr-buttons").show(),be)&&(e.events.focus(),e.popups.hide("file.insert"))}function g(be,Ne){var u=e.popups.get("file.insert");u&&((u=u.find(".fr-file-progress-bar-layer")).find("h3").text(be+(Ne?" ".concat(Ne,"%"):"")),u.removeClass("fr-error"),Ne?(u.find("div").removeClass("fr-indeterminate"),u.find("div > span").css("width","".concat(Ne,"%"))):u.find("div").addClass("fr-indeterminate"))}function I(be,Ne,u,it){e.edit.on(),e.events.focus(!0),e.selection.restore(
1),e.opts.fileUseSelectedText&&e.selection.text().length&&(Ne=e.selection.text());var De,Vt='<a href="'.concat(be,'" id="fr-inserted-file" ');if(it!==void 0)for(De in it)it.hasOwnProperty(De)&&De!="link"&&(Vt+="".concat(De,'="').concat(it[De],'" '));Vt.indexOf(' class="')==-1&&(Vt+='class="fr-file" '),Vt+=">".concat(Ne,"</a>"),e.html.insert(Vt),be=e.$el.find("#fr-inserted-file"),be.removeAttr("id"),e.popups.hide("file.insert"),e.undo.saveStep(),J(),e.events.trigger("file.inserted",[be,u])}function k(be,Ne,u){var it,De,Vt=this.status,Y=this.response,Ye=this.responseXML,Ae=this.responseText;try{if(e.opts.fileUploadToS3||e.opts.fileUploadToAzure)if(Vt===201){if(e.opts.fileUploadToAzure){if(e.events.trigger("file.uploadedToAzure",[this.responseURL,u,Y],!0)===!1)return e.edit.on(),!1;De=Ne}else De=(function(dt){try{var je=t(dt).find("Location").text(),Pe=t(dt).find("Key").text();return e.events.trigger("file.uploadedToS3",[je,Pe,dt],!0)===!1?(e.edit.on(),!1):je}catch(qe){return x(y,dt),!1}})(Ye);De&&I(De,be,Y||Ye)}else x(y,Y||Ye);else 200<=Vt&&Vt<300?(it=(function(dt){try{var je;return e.events.trigger("file.uploaded",[dt],!0)===!1?(e.edit.on(),!1):(je=JSON.parse(dt)).link?je:(x(h,dt),!1)}catch(Pe){return x(y,dt),!1}})(Ae))&&I(it.link,be,Y||Ae,it):x(a,Y||Ae)}catch(dt){x(y,Y||Ae)}}function E(){x(y,this.response||this.responseText||this.responseXML)}function Q(be){be.lengthComputable&&(be=be.loaded/be.total*100|0,g(e.language.translate("Uploading"),be))}function x(be,Ne){var u,it;e.edit.on(),u=e.language.translate("Something went wrong. Please try again."),ue(),(it=e.popups.get("file.insert").find(".fr-file-progress-bar-layer")).addClass("fr-error"),(it=it.find("h3")).text(u),e.events.disableBlur(),it.focus(),e.events.trigger("file.error",[{code:be,message:ne[be]},Ne])}function te(){e.edit.on(),v(!0)}function Ke(be){if(be!==void 0&&0<be.length){var Ne=be[0].type;if(be[0].name&&be[0].name.endsWith(".msg")&&(Ne="application/vnd.ms-outlook"),e.events.trigger("file.beforeUpload",[be])===!1)return!1;var u,it,De=be[0];if(!(e.opts.fileUploadURL!==null&&e.opts.fileUploadURL!==s||e.opts.fileUploadToS3||e.opts.fileUploadToAzure))return qe=De,(me=new FileReader).onload=function(){me.result;for(var R=atob(me.result.split(",")[1]),xe=[],nt=0;nt<R.length;nt++)xe.push(R.charCodeAt(nt));var ut=qe.type;qe.name&&qe.name.endsWith(".msg")&&(ut="application/vnd.ms-outlook"),ut=window.URL.createObjectURL(new Blob([new Uint8Array(xe)],{type:ut})),e.file.insert(ut,qe.name,null)},ue(),me.readAsDataURL(qe),!1;if(De.size>e.opts.fileMaxSize)return x(j),!1;if(e.opts.fileAllowedTypes.indexOf("*")<0&&e.opts.fileAllowedTypes.indexOf(Ne.replace(/file\//g,""))<0)return x(P),!1;if(u=e.drag_support.formdata?e.drag_support.formdata?new FormData:null:u){if(e.opts.fileUploadToS3!==!1)for(it in u.append("key",e.opts.fileUploadToS3.keyStart+new Date().getTime()+"-"+(De.name||"untitled")),u.append("success_action_status","201"),u.append("X-Requested-With","xhr"),u.append("Content-Type",Ne),e.opts.fileUploadToS3.params)e.opts.fileUploadToS3.params.hasOwnProperty(it)&&u.append(it,e.opts.fileUploadToS3.params[it]);for(it in e.opts.fileUploadParams)e.opts.fileUploadParams.hasOwnProperty(it)&&u.append(it,e.opts.fileUploadParams[it]);u.append(e.opts.fileUploadParam,De);var Vt,be=e.opts.fileUploadURL,Y=(e.opts.fileUploadToS3&&(be=e.opts.fileUploadToS3.uploadURL||"https://".concat(e.opts.fileUploadToS3.region,".amazonaws.com/").concat(e.opts.fileUploadToS3.bucket)),e.opts.fileUploadMethod),Ye=(e.opts.fileUploadToAzure&&(be=e.opts.fileUploadToAzure.uploadURL?"".concat(e.opts.fileUploadToAzure.uploadURL,"/").concat(De.name):encodeURI("https://".concat(e.opts.fileUploadToAzure.account,".blob.core.windows.net/").concat(e.opts.fileUploadToAzure.container,"/").concat(De.name)),Vt=be,e.opts.fileUploadToAzure.SASToken&&(be+=e.opts.fileUploadToAzure.SASToken),Y="PUT"),e.core.getXHR(be,Y));if(e.opts.fileUploadToAzure){var Ae,dt,je,be=new Date().toUTCString();for(it in!e.opts.fileUploadToAzure.SASToken&&e.opts.fileUploadToAzure.accessKey&&(Ae=e.opts.fileUploadToAzure.account,Pe=e.opts.fileUploadToAzure.container,e.opts.fileUploadToAzure.uploadURL&&(Pe=(dt=e.opts.fileUploadToAzure.uploadURL.split("/")).pop(),Ae=dt.pop().split(".")[0]),dt="x-ms-blob-type:BlockBlob\nx-ms-date:".concat(be,"\nx-ms-version:2019-07-07"),Pe=encodeURI("/"+Ae+"/"+Pe+"/"+De.name),Y=Y+"\n\n\n"+De.size+"\n\n"+Ne+"\n\n\n\n\n\n\n"+dt+"\n"+Pe,dt=e.cryptoJSPlugin.cryptoJS.HmacSHA256(Y,e.cryptoJSPlugin.cryptoJS.enc.Base64.parse(e.opts.fileUploadToAzure.accessKey)).toString(e.cryptoJSPlugin.cryptoJS.enc.Base64),je=dt,Ye.setRequestHeader("Authorization","SharedKey "+Ae+":"+dt)),Ye.setRequestHeader("x-ms-version","2019-07-07"),Ye.setRequestHeader("x-ms-date",be),Ye.setRequestHeader("Content-Type",Ne),Ye.setRequestHeader("x-ms-blob-type","BlockBlob"),e.opts.fileUploadParams)e.opts.fileUploadParams.hasOwnProperty(it)&&Ye.setRequestHeader(it,e.opts.fileUploadParams[it]);for(it in e.opts.fileUploadToAzure.params)e.opts.fileUploadToAzure.params.hasOwnProperty(it)&&Ye.setRequestHeader(it,e.opts.fileUploadToAzure.params[it])}Ye.onload=function(){k.call(Ye,De.name,Vt,je)},Ye.onerror=E,Ye.upload.onprogress=Q,Ye.onabort=te,ue();var Pe=e.popups.get("file.insert");Pe&&(Pe.off("abortUpload"),Pe.on("abortUpload",function(){Ye.readyState!==4&&Ye.abort()})),Ye.send(e.opts.fileUploadToAzure?De:u)}}var qe,me}function q(){v()}function ge(be){var Ne,u;return be?(e.popups.onHide("file.insert",q),!0):(be="",e.opts.fileUpload||e.opts.fileInsertButtons.splice(e.opts.fileInsertButtons.indexOf("fileUpload"),1),be='<div class="fr-buttons fr-tabs">'.concat(e.button.buildList(e.opts.fileInsertButtons),"</div>"),Ne="",e.opts.fileUpload&&(Ne='<div class="fr-file-upload-layer fr-layer fr-active" id="fr-file-upload-layer-'.concat(e.id,'"><strong>').concat(e.language.translate("Drop file"),"</strong><br>(").concat(e.language.translate("or click"),')<div class="fr-form"><input type="file" name="').concat(e.opts.fileUploadParam,'" accept="').concat(0<=e.opts.fileAllowedTypes.indexOf("*")?"/":"").concat(e.opts.fileAllowedTypes.join(", ").toLowerCase(),'" tabIndex="-1" aria-labelledby="fr-file-upload-layer-').concat(e.id,'" role="button"></div></div>')),be=e.popups.create("file.insert",{buttons:be,upload_layer:Ne,progress_bar:'<div class="fr-file-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="fileDismissError" tabIndex="2" role="button">OK</button></div></div>'}),u=be,e.events.$on(u,"dragover dragenter",".fr-file-upload-layer",function(){return t(this).addClass("fr-drop"),!1},!0),e.events.$on(u,"dragleave dragend",".fr-file-upload-layer",function(){return t(this).removeClass("fr-drop"),!1},!0),e.events.$on(u,"drop",".fr-file-upload-layer",function(it){it.preventDefault(),it.stopPropagation(),t(this).removeClass("fr-drop"),it=it.originalEvent.dataTransfer,it&&it.files&&(u.data("instance")||e).file.upload(it.files)},!0),e.helpers.isIOS()&&e.events.$on(u,"touchstart",'.fr-file-upload-layer input[type="file"]',function(){t(this).trigger("click")}),e.events.$on(u,"change",'.fr-file-upload-layer input[type="file"]',function(){var it;this.files&&((it=u.data("instance")||e).events.disableBlur(),u.find("input:focus").blur(),it.events.enableBlur(),it.file.upload(this.files)),t(this).val("")},!0),be)}function U(be){e.node.hasClass(be,"fr-file")}function Oe(be){var Ne=be.originalEvent.dataTransfer;if(Ne&&Ne.files&&Ne.files.length){var u=Ne.files[0];if(u&&typeof u.type<"u"){if(u.type.indexOf("image")<0)return e.opts.fileUpload?(e.markers.remove(),e.markers.insertAtPoint(be.originalEvent),e.$el.find(".fr-marker").replaceWith(o.MARKERS),e.popups.hideAll(),e.popups.get("file.insert")||ge(),e.popups.setContainer("file.insert",e.$sc),e.popups.show("file.insert",be.originalEvent.pageX,be.originalEvent.pageY),ue(),Ke(Ne.files),be.preventDefault(),be.stopPropagation()):(be.preventDefault(),be.stopPropagation()),!1}else u.type.indexOf("image")<0&&(be.preventDefault(),be.stopPropagation())}}function J(){for(var be=Array.prototype.slice.call(e.el.querySelectorAll("a.fr-file")),Ne=[],u=0;u<be.length;u++)Ne.push(be[u].getAttribute("href"));if(d)for(u=0;
1u<d.length;u++)Ne.indexOf(d[u].getAttribute("href"))<0&&e.events.trigger("file.unlink",[d[u]]);d=be}return ne[1]="File cannot be loaded from the passed link.",ne[h]="No link in upload response.",ne[a]="Error during file upload.",ne[y]="Parsing response failed.",ne[j]="File is too large.",ne[P]="File file type is invalid.",ne[7]="Files can be uploaded only to same domain in IE 8 and IE 9.",{_init:function(){e.events.on("drop",Oe),e.events.$on(e.$win,"keydown",function(Ne){var Ne=Ne.which,u=e.popups.get("file.insert");u&&Ne===o.KEYCODE.ESC&&u.trigger("abortUpload")}),e.events.on("destroy",function(){var be=e.popups.get("file.insert");be&&be.trigger("abortUpload")}),e.events.on("link.beforeRemove",U),e.$wp&&(J(),e.events.on("contentChanged",J)),ge(!0)},showInsertPopup:function(){var be,Ne,u=e.$tb.find('.fr-command[data-cmd="insertFile"]'),it=(it=e.popups.get("file.insert"))||ge();v(),it.hasClass("fr-active")||(e.popups.refresh("file.insert"),e.popups.setContainer("file.insert",e.$tb),u.isVisible?(Ne=(be=e.button.getPosition(u)).left,e.popups.show("file.insert",Ne,be.top,u.outerHeight())):(e.position.forSelection(it),e.popups.show("file.insert")))},upload:Ke,insert:I,back:function(){e.events.disableBlur(),e.selection.restore(),e.events.enableBlur(),e.popups.hide("file.insert"),e.toolbar.showInline()},hideProgressBar:v}},o.DefineIcon("insertFile",{NAME:"file-o",FA5NAME:"file",SVG_KEY:"insertFile"}),o.RegisterCommand("insertFile",{title:"Upload File",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("file.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("file.insert")):this.file.showInsertPopup()},plugin:"file"}),o.DefineIcon("fileBack",{NAME:"arrow-left",SVG_KEY:"back"}),o.RegisterCommand("fileBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.file.back()},refresh:function(e){this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),o.RegisterCommand("fileDismissError",{title:"OK",callback:function(){this.file.hideProgressBar(!0)}})})});var eo=Ba((ri,Ji)=>{"use strict";(function(o,e){typeof ri=="object"&&typeof Ji<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ri,function(o){"use strict";Object.assign(o.DEFAULTS,{fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif,-webkit-standard":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},fontFamilySelection:!1,fontFamilyDefaultSelection:"Font Family"}),o.PLUGINS.fontFamily=function(e){var d=e.$;function t(h){return h=h.replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'| /g,"").split(","),d(this).grep(h,function(a){return 0<a.length})}function s(){var h,a,y=t(d(e.selection.element()).css("font-family")),j=[];for(h in e.opts.fontFamily)e.opts.fontFamily.hasOwnProperty(h)&&(a=(function(P,ne){for(var ue=0;ue<P.length;ue++)for(var v=0;v<ne.length;v++)if(P[ue].toLowerCase()===ne[v].toLowerCase())return[ue,v];return null})(y,t(h)))&&j.push([h,a]);return j.length===0?null:(j.sort(function(P,ne){var ue=P[1][0]-ne[1][0];return ue==0?P[1][1]-ne[1][1]:ue}),j[0][0])}return{apply:function(h){e.format.applyStyle("font-family",h)},refreshOnShow:function(h,a){a.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),a.find('.fr-command[data-param1="'.concat(s(),'"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(h){var a;e.opts.fontFamilySelection&&(a=d(e.selection.element()).css("font-family").replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'|/g,"").split(","),h.find("> span").text(e.opts.fontFamily[s()]||a[0]||e.language.translate(e.opts.fontFamilyDefaultSelection)))}}},o.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(e){return e.opts.fontFamilySelection},defaultSelection:function(e){return e.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var e,d='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontFamily;for(e in t)t.hasOwnProperty(e)&&(d+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontFamily" data-param1="'.concat(e,'" \n style="font-family: ').concat(e,'" title="').concat(t[e],'">').concat(t[e],"</a></li>"));return d+="</ul>"},title:"Font Family",callback:function(e,d){this.fontFamily.apply(d)},refresh:function(e){this.fontFamily.refresh(e)},refreshOnShow:function(e,d){this.fontFamily.refreshOnShow(e,d)},plugin:"fontFamily"}),o.DefineIcon("fontFamily",{NAME:"font",SVG_KEY:"fontFamily"})})});var ao=Ba((si,to)=>{"use strict";(function(o,e){typeof si=="object"&&typeof to<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(si,function(o){"use strict";Object.assign(o.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"Font Size",fontSizeUnit:"px"}),o.PLUGINS.fontSize=function(e){var d=e.$;return{apply:function(t){e.format.applyStyle("font-size",t)}
1,refreshOnShow:function(t,s){var h=d(e.selection.element()).css("font-size");e.opts.fontSizeUnit==="pt"&&(h="".concat(Math.round(72*parseFloat(h,10)/96),"pt")),s.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),s.find('.fr-command[data-param1="'.concat(h,'"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(t){var s;e.opts.fontSizeSelection&&(s=e.helpers.getPX(d(e.selection.element()).css("font-size")),e.opts.fontSizeUnit==="pt"&&(s="".concat(Math.round(72*parseFloat(s,10)/96),"pt")),t.find("> span").text(s))}}},o.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.fontSize,t=0;t<d.length;t++){var s=d[t];e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'.concat(s).concat(this.opts.fontSizeUnit,'" title="').concat(s,'">').concat(s,"</a></li>")}return e+="</ul>"},callback:function(e,d){this.fontSize.apply(d)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,d){this.fontSize.refreshOnShow(e,d)},plugin:"fontSize"}),o.DefineIcon("fontSize",{NAME:"text-height",SVG_KEY:"fontSize"})})});
1var io=Ba((li,no)=>{"use strict";(function(o,e){typeof li=="object"&&typeof no<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(li,function(o){"use strict";Object.assign(o.DEFAULTS,{helpSets:[{title:"Inline Editor",commands:[{val:"OSkeyE",desc:"Show the editor"}]},{title:"Common actions",commands:[{val:"OSkeyC",desc:"Copy"},{val:"OSkeyX",desc:"Cut"},{val:"OSkeyV",desc:"Paste"},{val:"OSkeyZ",desc:"Undo"},{val:"OSkeyShift+Z",desc:"Redo"},{val:"OSkeyK",desc:"Insert Link"},{val:"OSkeyP",desc:"Insert Image"},{val:"OSkeyD",desc:"Insert Anchor"}]},{title:"Basic Formatting",commands:[{val:"OSkeyA",desc:"Select All"},{val:"OSkeyB",desc:"Bold"},{val:"OSkeyI",desc:"Italic"},{val:"OSkeyU",desc:"Underline"},{val:"OSkeyS",desc:"Strikethrough"},{val:"OSkey]",desc:"Increase Indent"},{val:"OSkey[",desc:"Decrease Indent"}]},{title:"Quote",commands:[{val:"OSkey'",desc:"Increase quote level"},{val:"OSkeyShift+'",desc:"Decrease quote level"}]},{title:"Image / Video",commands:[{val:"OSkey+",desc:"Resize larger"},{val:"OSkey-",desc:"Resize smaller"}]},{title:"Table",commands:[{val:"Alt+Space",desc:"Select table cell"},{val:"Shift+Left/Right arrow",desc:"Extend selection one cell"},{val:"Shift+Up/Down arrow",desc:"Extend selection one row"}]},{title:"Navigation",commands:[{val:"OSkey/",desc:"Shortcuts"},{val:"Alt+F10",desc:"Focus popup / toolbar"},{val:"Esc",desc:"Return focus to previous position"}]},{title:"Find and Replace",commands:[{val:"OSkeyF",desc:"Find and Replace"}]}]}),o.PLUGINS.help=function(e){var d,t=e.$,s="help";return{_init:function(){},show:function(){var h,a;d||(a="<h4>".concat(e.language.translate("Shortcuts"),"</h4>"),h=(function(){for(var y='<div class="fr-help-modal">',j=0;j<e.opts.helpSets.length;j++){var P=e.opts.helpSets[j];v=(v="<table>")+"<thead><tr><th>".concat(e.language.translate(P.title),"</th></tr></thead>")+"<tbody>";for(var ne=0;ne<P.commands.length;ne++)var ue=P.commands[ne],v=(v=(v+="<tr>")+"<td>".concat(e.language.translate(ue.desc),"</td>"))+"<td>".concat(ue.val.replace("OSkey",e.helpers.isMac()?"⌘":"Ctrl+"),"</td>")+"</tr>";y+=v+="</tbody></table>"}return y+="</div>"})(),a=e.modals.create(s,a,h),d=a.$modal,e.events.$on(t(e.o_win),"resize",function(){e.modals.resize(s)})),e.modals.show(s),e.modals.resize(s)},hide:function(){e.modals.hide(s)}}},o.DefineIcon("help",{NAME:"question",SVG_KEY:"help"}),o.RegisterShortcut(o.KEYCODE.SLASH,"help",null,"/"),o.RegisterCommand("help",{title:"Help",icon:"help",undo:!1,focus:!1,modal:!0,callback:function(){this.help.show()},plugin:"help",showOnMobile:!1})})});var ro=Ba((ci,oo)=>{"use strict";(function(o,e){typeof ci=="object"&&typeof oo<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ci,function(o){"use strict";function e(a,y){(y==null||y>a.length)&&(y=a.length);for(var j=0,P=Array(y);j<y;j++)P[j]=a[j];return P}function d(a,y){var j,P,ne,ue,v=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(v)return ne=!(P=!0),{s:function(){v=v.call(a)},n:function(){var g=v.next();return P=g.done,g},e:function(g){ne=!0,j=g},f:function(){try{P||v.return==null||v.return()}finally{if(ne)throw j}}};if(Array.isArray(a)||(v=h(a))||y)return v&&(a=v),ue=0,{s:y=function(){},n:function(){return ue>=a.length?{done:!0}:{done:!1,value:a[ue++]}},e:function(g){throw g},f:y};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(a){return(function(y){if(Array.isArray(y))return e(y)})(a)||(function(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)})(a)||h(a)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function s(a){return(s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(a)}function h(a,y){var j;
vendor: 12,220 bytes, line 1
1if(a)return typeof a=="string"?e(a,y):(j=(j={}.toString.call(a).slice(8,-1))==="Object"&&a.constructor?a.constructor.name:j)==="Map"||j==="Set"?Array.from(a):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?e(a,y):void 0}Object.assign(o.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Object.assign(o.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:null,imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadToAzure:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif","webp"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded","fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5,imageAddNewLine:!1}),o.IMAGE_ALLOW_REGEX=/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i,o.PLUGINS.image=function(a){var y,j,P,ne,ue,v,g=a.$,I="https://i.froala.com/upload",k=!1,E=1,Q=2,x=3,te=4,Ke=5,q=6,ge={};function U(){var n=a.popups.get("image.insert").find(".fr-image-by-url-layer input");n.val(""),y&&n.val(y.attr("src")),n.trigger("change")}function Oe(){var n,l;(a.popups.get("image.edit")||dt())&&(a.popups.setContainer("image.edit",a.$sc),a.popups.refresh("image.edit"),n=(l=a.helpers.getImagePopupPosition(y)).top,l=l.left,y.hasClass("fr-uploading")?je():a.popups.show("image.edit",l,n,1,!0))}function J(){Pe()}function be(){for(var n,l,_,z=a.el.tagName=="IMG"?[a.el]:a.el.querySelectorAll("img"),_e=0;_e<z.length;_e++){var Be=g(z[_e]);!a.opts.htmlUntouched&&a.opts.useClasses?(!a.opts.imageDefaultAlign&&!a.opts.imageDefaultDisplay||(_=0<(_=Be).parents(".fr-img-caption").length?_.parents(".fr-img-caption").first():_).hasClass("fr-dii")||_.hasClass("fr-dib")||(_.addClass("fr-fi".concat(S(_)[0])),_.addClass("fr-di".concat(C(_)[0])),_.css("margin",""),_.css("float",""),_.css("display",""),_.css("z-index",""),_.css("position",""),_.css("overflow",""),_.css("vertical-align","")),a.opts.imageTextNear||(0<Be.parents(".fr-img-caption").length?Be.parents(".fr-img-caption").first():Be).removeClass("fr-dii").addClass("fr-dib")):a.opts.htmlUntouched||a.opts.useClasses||(a.opts.imageDefaultAlign||a.opts.imageDefaultDisplay)&&(l=_=void 0,_=(n=0<(n=Be).parents(".fr-img-caption").length?n.parents(".fr-img-caption").first():n).hasClass("fr-dib")?"block":n.hasClass("fr-dii")?"inline":null,l=n.hasClass("fr-fil")?"left":n.hasClass("fr-fir")?"right":S(n),b(n,_,l),n.removeClass("fr-dib fr-dii fr-fir fr-fil")),a.opts.iframe&&Be.on("load",a.size.syncIframe)}}function Ne(n){n===void 0&&(n=!0);var l,_=Array.prototype.slice.call(a.el.querySelectorAll("img")),z=[];for(Be=0;Be<_.length;Be++)z.push(_[Be].getAttribute("src")),g(_[Be]).toggleClass("fr-draggable",a.opts.imageMove),_[Be].getAttribute("class")===""&&_[Be].removeAttribute("class"),_[Be].getAttribute("style")===""&&_[Be].removeAttribute("style"),_[Be].parentNode&&_[Be].parentNode.parentNode&&a.node.hasClass(_[Be].parentNode.parentNode,"fr-img-caption")&&(l=_[Be].parentNode.parentNode,a.browser.mozilla||l.setAttribute("contenteditable",!1),l.setAttribute("draggable",!1),l.classList.add("fr-draggable"),l=_[Be].nextSibling)&&!a.browser.mozilla&&l.setAttribute("contenteditable",!0);if(ue)for(Be=0;Be<ue.length;Be++)z.indexOf(ue[Be].getAttribute("src"))<0&&a.events.trigger("image.removed",[g(ue[Be])]);if(ue&&n){for(var _e=[],Be=0;Be<ue.length;Be++)_e.push(ue[Be].getAttribute("src"));for(Be=0;Be<_.length;Be++)_e.indexOf(_[Be].getAttribute("src"))<0&&a.events.trigger("image.loaded",[g(_[Be])])}ue=_}function u(){var n,l,_,z,_e,Be,Te,et,St;j||(a.shared.$image_resizer?(j=a.shared.$image_resizer,ne=a.shared.$img_overlay,a.events.on("destroy",function(){g("body").first().append(j.removeClass("fr-active"))},!0)):(a.shared.$image_resizer=g(document.createElement("div")).attr("class","fr-image-resizer"),j=a.shared.$image_resizer,a.events.$on(j,"mousedown",function(ot){ot.stopPropagation()},!0),a.opts.imageResize&&(j.append(it("nw")+it("ne")+it("sw")+it("se")),a.shared.$img_overlay=g(document.createElement("div")).attr("class","fr-image-overlay"),ne=a.shared.$img_overlay,z=j.get(0).ownerDocument,g(z).find("body").first().append(ne))),a.events.on("shared.destroy",function(){j.html("").removeData().remove(),j=null,a.opts.imageResize&&(ne.remove(),ne=null)},!0),a.helpers.isMobile()||a.events.$on(g(a.o_win),"resize",function(){y&&!y.hasClass("fr-uploading")?ga(!0):y&&(u(),B(),je(!1))}),a.opts.imageResize&&(z=j.get(0).ownerDocument,a.events.$on(j,a._mousedown,".fr-handler",Vt),a.events.$on(g(z),a._mousemove,Y),a.events.$on(g(z.defaultView||z.parentWindow),a._mouseup,Ye),a.events.$on(ne,"mouseleave",Ye),n=1,l=null,_=0,a.events.on("keydown",function(ot){var ct,Ct;y&&(ct=navigator.userAgent.indexOf("Mac OS X")!=-1?ot.metaKey:ot.ctrlKey,((Ct=ot.which)!==l||200<ot.timeStamp-_)&&(n=1),(Ct==o.KEYCODE.EQUALS||a.browser.mozilla&&Ct==o.KEYCODE.FF_EQUALS)&&ct&&!ot.altKey?n=Le.call(this,ot,1,1,n):(Ct==o.KEYCODE.HYPHEN||a.browser.mozilla&&Ct==o.KEYCODE.FF_HYPHEN)&&ct&&!ot.altKey?n=Le.call(this,ot,2,-1,n):a.keys.ctrlKey(ot)||Ct!=o.KEYCODE.ENTER||(y.before("<br>"),R(y)),l=Ct,_=ot.timeStamp)},!0),a.events.on("keyup",function(){n=1}))),y&&((z=a.$wp||a.$sc).append(j),j.data("instance",a),_e=z.scrollTop()-(z.css("position")!="static"?z.offset().top:0),Be=z.scrollLeft()-(z.css("position")!="static"?z.offset().left:0),Be-=a.helpers.getPX(z.css("border-left-width")),_e-=a.helpers.getPX(z.css("border-top-width")),a.$el.is("img")&&a.$sc.is("body")&&(Be=_e=0),Te=pe(),he()&&(Te=Te.find(".fr-img-wrap")),St=et=0,a.opts.iframe&&(et=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-top")),St=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-left"))),j.css("top",(a.opts.iframe?Te.offset().top+et:Te.offset().top+_e)-1).css("left",(a.opts.iframe?Te.offset().left+St:Te.offset().left+Be)-1).css("width",Te.get(0).getBoundingClientRect().width).css("height",Te.get(0).getBoundingClientRect().height).addClass("fr-active"))}function it(n){return'<div class="fr-handler fr-h'.concat(n,'"></div>')}function De(n){he()&&y.parents(".fr-img-caption").css("width",n),y.css("width",n)}function Vt(n){if(!a.core.sameInstance(j))return!0;if(n.preventDefault(),n.stopPropagation(),a.$el.find("img.fr-error").left)return!1;a.undo.canDo()||a.undo.saveStep();var l=n.pageX||n.originalEvent.touches[0].pageX;if(n.type=="mousedown"){var _=a.$oel.get(0).ownerDocument,_=_.defaultView||_.parentWindow,z=!1;try{z=_.location!=_.parent.location&&!(_.$&&_.$.FE)}catch(_e){}z&&_.frameElement&&(z=_.frameElement.getBoundingClientRect(),l=n.clientX-z.left)}(P=g(this)).data("start-x",l),P.data("start-width",y.width()),P.data("start-height",y.height()),_=y.width(),a.opts.imageResizeWithPercent&&(n=y.parentsUntil(a.$el,a.html.blockTagsQuery()).get(0)||a.el,_=(_/g(n).outerWidth()*100).toFixed(2)+"%"),De(_),ne.show(),a.popups.hideAll(),Wt()}function Y(n){var l,_;return!a.core.sameInstance(j)||(P&&y?(n.preventDefault(),!a.$el.find("img.fr-error").left&&!!(n=n.pageX||(n.originalEvent.touches?n.originalEvent.touches[0].pageX:null))&&(n=n-P.data("start-x"),_=P.data("start-width"),(P.hasClass("fr-hnw")||P.hasClass("fr-hsw"))&&(n=0-n),a.opts.imageResizeWithPercent?(l=y.parentsUntil(a.$el,a.html.blockTagsQuery()).get(0)||a.el,_=((_+n)/g(l).outerWidth()*100).toFixed(2),a.opts.imageRoundPercent&&(_=Math.round(_)),De("".concat(_,"%")),(l=(he()?a.helpers.getPX(y.parents(".fr-img-caption").css("width"))/g(l).outerWidth()*100:a.helpers.getPX(y.css("width"))/g(l).outerWidth()*100).toFixed(2))===_||a.opts.imageRoundPercent||De("".concat(l,"%")),y.css("height","").removeAttr("height")):(_+n>=a.opts.imageMinWidth&&(De(_+n),l=he()?a.helpers.getPX(y.parents(".fr-img-caption").css("width")):a.helpers.getPX(y.css("width"))),l!==_+n&&De(l),((y.attr("style")||"").match(/(^height:)|(; *height:)/)||y.attr("height"))&&(y.css("height",P.data("start-height")*y.width()/P.data("start-width")),y.removeAttr("height"))),u(),void a.events.trigger("image.resize",[y]))):void 0)}function Ye(n){if(!a.core.sameInstance(j))return!0;if(P&&y){if(n&&n.stopPropagation(),a.$el.find("img.fr-error").left)return!1;P=null,ne.hide(),u(),Oe(),a.undo.saveStep(),a.events.trigger("image.resizeEnd",[y])}else j.removeClass("fr-active")}function Ae(n,l,_){a.edit.on(),y&&y.addClass("fr-error"),ge[n]?me(a.language.translate(ge[n])):me(a.language.translate("Something went wrong. Please try again.")),!y&&_&&Ge(_),a.events.trigger("image.error",[{code:n,message:ge[n]},l,_])}function dt(n){return n?(a.$wp&&a.events.$on(a.$wp,"scroll.image-edit",function(){y&&a.popups.isVisible("image.edit")&&(a.events.disableBlur(),Oe())}),!0):(n="",0<a.opts.imageEditButtons.length&&(n+='<div class="fr-buttons">\n '.concat(a.button.buildList(a.opts.imageEditButtons),"\n </div>"),a.popups.create("image.edit",{buttons:n})))}function je(n){var l,_,z=a.popups.get("image.insert");(z=z||ft()).find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),z.find(".fr-image-progress-bar-layer").addClass("fr-active"),z.find(".fr-buttons").hide(),y&&(z=pe(),a.popups.setContainer("image.insert",a.$sc),_=(l=a.helpers.getImagePopupPosition(z)).top,a.popups.show("image.insert",l.left,_,z.outerHeight())),n===void 0&&qe(a.language.translate("Uploading"),0)}function Pe(n){var l=a.popups.get("image.insert");l&&(l.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),l.find(".fr-image-progress-bar-layer").removeClass("fr-active"),l.find(".fr-buttons").show(),n||a.$el.find("img.fr-error").length)&&(a.events.focus(),a.$el.find("img.fr-error").length&&(a.$el.find("img.fr-error").remove(),a.undo.saveStep(),a.undo.run(),a.undo.dropRedo()),!a.$wp&&y&&(l=y,ga(!0),a.selection.setAfter(l.get(0)),a.selection.restore()),a.popups.hide("image.insert"))}function qe(n,l){var _=a.popups.get("image.insert");_&&((_=_.find(".fr-image-progress-bar-layer")).find("h3").text(n+(l?" ".concat(l,"%"):"")),_.removeClass("fr-error"),l?(_.find("div").removeClass("fr-indeterminate"),_.find("div > span").css("width","".concat(l,"%"))):_.find("div").addClass("fr-indeterminate"))}function me(n){je();var l=a.popups.get("image.insert").find(".fr-image-progress-bar-layer"),l=(l.addClass("fr-error"),l.find("h3"));l.text(n),a.events.disableBlur(),l.focus()}function R(n){fa.call(n.get(0))}function xe(){var n=g(this);a.popups.hide("image.insert"),n.removeClass("fr-uploading"),n.next().is("br")&&n.next().remove(),R(n),a.events.trigger("image.loaded",[n])}function nt(n,l,_,z,_e){z&&typeof z=="string"&&(z=a.$(z)),a.edit.off(),qe(a.language.translate("Loading image")),l&&(n=a.helpers.sanitizeURL(n)),l=new Image,l.onload=function(){var Be,Te;if(z){a.undo.canDo()||z.hasClass("fr-uploading")||a.undo.saveStep();for(var et,St=z.data("fr-old-src"),ot=(z.data("fr-image-pasted")&&(St=null),a.$wp?((Be=z.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted")).off("load"),St&&z.attr("src",St),!a.opts.trackChangesEnabled||z[0].parentNode&&z[0].parentNode.tagName==="SPAN"&&z[0].parentNode.hasAttribute("data-tracking")||a.track_changes.replaceSpecialItem(z),0<=(et=ue.indexOf(z[0]))&&(ue[et]=Be[0]),z.replaceWith(Be)):Be=z,Be.get(0).attributes),ct=0;ct<ot.length;ct++){var Ct=ot[ct];(Ct.nodeName.indexOf("data-")===0&&Ct.nodeName!=="data-pasted"||_&&_.hasOwnProperty(Ct.nodeName))&&Be.removeAttr(Ct.nodeName)}if(_!==void 0)for(Te in _)_.hasOwnProperty(Te)&&Te!="link"&&Be.attr("".concat(Te),_[Te]);Be.on("load",xe),Be.attr("src",n),a.edit.on(),Ne(!1),z[0].src!=n&&a.selection.restore(
1),a.undo.saveStep(),a.events.disableBlur(),a.$el.blur(),a.events.trigger(St?"image.replaced":"image.inserted",[Be,_e])}else(Be=Bt(n,_,xe))&&(Ne(!1),a.undo.saveStep(),a.events.disableBlur(),a.$el.blur(),a.events.trigger("image.inserted",[Be,_e]))},l.onerror=function(){Ae(E)},je(a.language.translate("Loading image")),l.src=n}function ut(n,l,_){qe(a.language.translate("Loading image"));var z,_e,Be=this.status,Te=this.response,et=this.responseXML,St=this.responseText;try{if(a.opts.imageUploadToS3||a.opts.imageUploadToAzure)if(Be==201){if(a.opts.imageUploadToAzure){if(a.events.trigger("image.uploadedToAzure",[this.responseURL,_,Te],!0)===!1)return a.edit.on(),!1;_e=l}else _e=(function(ot){try{var ct=g(ot).find("Location").text(),Ct=g(ot).find("Key").text();return a.events.trigger("image.uploadedToS3",[ct,Ct,ot],!0)===!1?(a.edit.on(),!1):ct}catch(jt){return Ae(te,ot),!1}})(et);_e&&nt(_e,!1,[],n,Te||et)}else Ae(te,Te||et,n);else 200<=Be&&Be<300?(z=(function(ot){try{var ct;return a.events.trigger("image.uploaded",[ot],!0)===!1?(a.edit.on(),!1):(ct=JSON.parse(ot)).link?ct:(Ae(Q,ot),!1)}catch(Ct){return Ae(te,ot),!1}})(St))&&nt(z.link,!1,z,n,Te||St):Ae(x,Te||St,n)}catch(ot){Ae(te,Te||St,n)}}function ke(){Ae(te,this.response||this.responseText||this.responseXML)}function pt(n){n.lengthComputable&&(n=n.loaded/n.total*100|0,qe(a.language.translate("Uploading"),n))}function Bt(n,l,_){var z,_e=g(document.createElement("img")).attr("src",n);if(l&&l!==void 0)for(z in l)l.hasOwnProperty(z)&&z!="link"&&(" data-".concat(z,'="').concat(l[z],'"'),_e.attr("".concat(z),l[z]));if(n=a.opts.imageDefaultWidth,n&&n!="auto"&&(n=a.opts.imageResizeWithPercent?"100%":"".concat(n,"px")),_e.attr("style",n?"width: ".concat(n,";"):""),b(_e,a.opts.imageDefaultDisplay,a.opts.imageDefaultAlign),_e.on("load",_),_e.on("error",_),a.edit.on(),a.events.focus(!0),a.selection.restore(),a.undo.saveStep(),a.opts.imageSplitHTML?a.markers.split():a.markers.insert(),a.html.wrap(),n=a.$el.find(".fr-marker"),n.length)(n.parent().is("hr")||n.parent().is("IMG"))&&n.parent().after(n),a.node.isLastSibling(n)&&n.parent().hasClass("fr-deletable")&&n.insertAfter(n.parent()),n.replaceWith(_e);else{if(a.opts.trackChangesEnabled)return Pe(!0),!1;a.$el.append(_e)}return a.selection.clear(),_e}function Dt(){a.edit.on(),Pe(!0)}function Et(n,l){if(n!==void 0&&0<n.length){if(a.events.trigger("image.beforeUpload",[n,l])===!1)return!1;var _,z,n=n[0];if(!(a.opts.imageUploadURL!==null&&a.opts.imageUploadURL!=I||a.opts.imageUploadToS3||a.opts.imageUploadToAzure))return In=n,Sn=l||y,(na=new FileReader).onload=function(){var Ya=na.result;if(na.result.indexOf("svg+xml")<0){for(var En=atob(na.result.split(",")[1]),ma=[],an=0;an<En.length;an++)ma.push(En.charCodeAt(an));Ya=window.URL.createObjectURL(new Blob([new Uint8Array(ma)],{type:In.type})),Sn&&Sn.data("fr-old-src",Sn.attr("src")),a.image.insert(Ya,!1,null,Sn)}else a.image.insert(Ya,null,null,a.image.get())},je(),na.readAsDataURL(In),!1;if(n.name||(n.name=new Date().getTime()+"."+(n.type||"image/jpeg").replace(/image\//g,"")),n.size>a.opts.imageMaxSize)return Ae(Ke),!1;if(a.opts.imageAllowedTypes.indexOf(n.type.replace(/image\//g,""))<0)return Ae(q),!1;if(_=a.drag_support.formdata?a.drag_support.formdata?new FormData:null:_){if(a.opts.imageUploadToS3!==!1)for(z in _.append("key",a.opts.imageUploadToS3.keyStart+new Date().getTime()+"-"+(n.name||"untitled")),_.append("success_action_status","201"),_.append("X-Requested-With","xhr"),_.append("Content-Type",n.type),a.opts.imageUploadToS3.params)a.opts.imageUploadToS3.params.hasOwnProperty(z)&&_.append(z,a.opts.imageUploadToS3.params[z]);for(z in a.opts.imageUploadParams)a.opts.imageUploadParams.hasOwnProperty(z)&&_.append(z,a.opts.imageUploadParams[z]);_.append(a.opts.imageUploadParam,n,n.name);var _e,Be=a.opts.imageUploadURL,Te=a.opts.imageUploadMethod,et=(a.opts.imageUploadToS3&&(Be=a.opts.imageUploadToS3.uploadURL||"https://".concat(a.opts.imageUploadToS3.region,".amazonaws.com/").concat(a.opts.imageUploadToS3.bucket)),a.opts.imageUploadToAzure&&(_e=Be=a.opts.imageUploadToAzure.uploadURL?"".concat(a.opts.imageUploadToAzure.uploadURL,"/").concat(n.name):encodeURI("https://".concat(a.opts.imageUploadToAzure.account,".blob.core.windows.net/").concat(a.opts.imageUploadToAzure.container,"/").concat(n.name)),a.opts.imageUploadToAzure.SASToken&&(Be+=a.opts.imageUploadToAzure.SASToken),Te="PUT"),a.core.getXHR(Be,Te));if(a.opts.imageUploadToAzure){var St,ot,ct,Be=new Date().toUTCString();for(z in!a.opts.imageUploadToAzure.SASToken&&a.opts.imageUploadToAzure.accessKey&&(St=a.opts.imageUploadToAzure.account,ct=a.opts.imageUploadToAzure.container,a.opts.imageUploadToAzure.uploadURL&&(ct=(ot=a.opts.imageUploadToAzure.uploadURL.split("/")).pop(),St=ot.pop().split(".")[0]),ot="x-ms-blob-type:BlockBlob\nx-ms-date:".concat(Be,"\nx-ms-version:2019-07-07"),ct=encodeURI("/"+St+"/"+ct+"/"+n.name),Te=Te+"\n\n\n"+n.size+"\n\n"+n.type+"\n\n\n\n\n\n\n"+ot+"\n"+ct,ot=a.cryptoJSPlugin.cryptoJS.HmacSHA256(Te,a.cryptoJSPlugin.cryptoJS.enc.Base64.parse(a.opts.imageUploadToAzure.accessKey)).toString(a.cryptoJSPlugin.cryptoJS.enc.Base64),et.setRequestHeader("Authorization","SharedKey "+St+":"+(ct=ot))),et.setRequestHeader("x-ms-version","2019-07-07"),et.setRequestHeader("x-ms-date",Be),et.setRequestHeader("Content-Type",n.type),et.setRequestHeader("x-ms-blob-type","BlockBlob"),a.opts.imageUploadParams)a.opts.imageUploadParams.hasOwnProperty(z)&&et.setRequestHeader(z,a.opts.imageUploadParams[z]);for(z in a.opts.imageUploadToAzure.params)a.opts.imageUploadToAzure.params.hasOwnProperty(z)&&et.setRequestHeader(z,a.opts.imageUploadToAzure.params[z])}
vendor: 8,898 bytes, line 1
1jt=et,va=_,sa=n,pa=l||y,Ga=_e,Hn=ct,(fn=new FileReader).onload=function(){var Ya=fn.result;if(fn.result.indexOf("svg+xml")<0){for(var En=atob(fn.result.split(",")[1]),ma=[],an=0;an<En.length;an++)ma.push(En.charCodeAt(an));Ya=window.URL.createObjectURL(new Blob([new Uint8Array(ma)],{type:"image/jpeg"}))}pa?(pa.on("load",Ct),pa.on("error",function(){Ct(),g(this).off("error")}),a.edit.on(),a.undo.saveStep(),pa.data("fr-old-src",pa.attr("src")),pa.attr("src",Ya)):Bt(Ya,null,Ct)},fn.readAsDataURL(sa)}}function Ct(){var Qa=g(this);Qa.off("load"),Qa.addClass("fr-uploading"),Qa.next().is("br")&&Qa.next().remove(),a.placeholder.refresh(),R(Qa),u(),je(),a.edit.off(),jt.onload=function(){ut.call(jt,Qa,Ga,Hn)},jt.onerror=ke,jt.upload.onprogress=pt,jt.onabort=Dt,g(Qa.off("abortUpload")).on("abortUpload",function(){jt.readyState!=4&&(jt.abort(),pa?(pa.attr("src",pa.data("fr-old-src")),pa.removeClass("fr-uploading")):Qa.remove(),ga(!0))}),jt.send(a.opts.imageUploadToAzure?sa:va)}var jt,va,sa,pa,Ga,Hn,fn,In,Sn,na}function Kt(n){if(n.is("img")&&0<n.parents(".fr-img-caption").length)return n.parents(".fr-img-caption")}function He(n){var l=n.originalEvent.dataTransfer;if(l&&l.files&&l.files.length){var _,z,_e,Be,Te=l.files[0];if(Te&&Te.type&&Te.type.indexOf("image")!==-1&&0<=a.opts.imageAllowedTypes.indexOf(Te.type.replace(/image\//g,"")))return a.opts.imageUpload?(a.markers.remove(),a.markers.insertAtPoint(n.originalEvent),a.$el.find(".fr-marker").replaceWith(o.MARKERS),a.$el.find(".fr-marker").length===0&&a.selection.setAtEnd(a.el),a.popups.hideAll(),a.popups.get("image.insert")||ft(),_=(a.popups.setContainer("image.insert",a.$sc),n.originalEvent.pageX),z=n.originalEvent.pageY,a.opts.iframe&&(_e=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-top")),Be=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-left")),z+=a.$iframe.offset().top+_e,_+=a.$iframe.offset().left+Be),a.popups.show("image.insert",_,z),je(),0<=a.opts.imageAllowedTypes.indexOf(Te.type.replace(/image\//g,""))?(ga(!0),Et(l.files)):Ae(q),n.preventDefault(),n.stopPropagation()):(n.preventDefault(),n.stopPropagation()),!1}}function ft(n){var l,_,z,_e,Be,Te,et;return n?(a.popups.onRefresh("image.insert",U),a.popups.onHide("image.insert",J),!0):(n="",a.opts.imageUpload||a.opts.imageInsertButtons.indexOf("imageUpload")===-1||a.opts.imageInsertButtons.splice(a.opts.imageInsertButtons.indexOf("imageUpload"),1),(z=a.button.buildList(a.opts.imageInsertButtons))!==""&&(n='<div class="fr-buttons fr-tabs">'.concat(z,"</div>")),z=a.opts.imageInsertButtons.indexOf("imageUpload"),_e=a.opts.imageInsertButtons.indexOf("imageByURL"),Be="",0<=z&&(l=" fr-active",Be='<div class="fr-image-upload-layer'.concat(l=0<=_e&&_e<z?"":l,' fr-layer" id="fr-image-upload-layer-').concat(a.id,'"><strong>').concat(a.language.translate("Drop image"),"</strong><br>(").concat(a.language.translate("or click"),')<div class="fr-form"><input type="file" accept="image/').concat(a.opts.imageAllowedTypes.join(", image/").toLowerCase(),'" tabIndex="-1" aria-labelledby="fr-image-upload-layer-').concat(a.id,'" role="button"></div></div>')),Te="",0<=_e&&(l=" fr-active",Te='<div class="fr-image-by-url-layer'.concat(l=0<=z&&z<_e?"":l,' fr-layer" id="fr-image-by-url-layer-').concat(a.id,'"><div class="fr-input-line"><input id="fr-image-by-url-layer-text-').concat(a.id,'" type="text" placeholder="http://" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageInsertByURL" tabIndex="2" role="button">').concat(a.language.translate("Insert"),"</button></div></div>")),1<=a.opts.imageInsertButtons.length&&(_=a.popups.create("image.insert",{buttons:n,upload_layer:Be,by_url_layer:Te,progress_bar:'<div class="fr-image-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="imageDismissError" tabIndex="2" role="button">OK</button></div></div>'})),a.$wp&&a.events.$on(a.$wp,"scroll",function(){y&&a.popups.isVisible("image.insert")&&B()}),et=_,a.events.$on(et,"dragover dragenter",".fr-image-upload-layer",function(St){return g(this).addClass("fr-drop"),(a.browser.msie||a.browser.edge)&&St.preventDefault(),!1},!0),a.events.$on(et,"dragleave dragend",".fr-image-upload-layer",function(St){return g(this).removeClass("fr-drop"),(a.browser.msie||a.browser.edge)&&St.preventDefault(),!1},!0),a.events.$on(et,"drop",".fr-image-upload-layer",function(ct){ct.preventDefault(),ct.stopPropagation(),g(this).removeClass("fr-drop");var ot,ct=ct.originalEvent.dataTransfer;ct&&ct.files&&((ot=et.data("instance")||a).events.disableBlur(),ot.image.upload(ct.files),ot.events.enableBlur())},!0),a.helpers.isIOS()&&a.events.$on(et,"touchstart",'.fr-image-upload-layer input[type="file"]',function(){g(this).trigger("click")},!0),a.events.$on(et,"change",'.fr-image-upload-layer input[type="file"]',function(){var St;this.files&&((St=et.data("instance")||a).events.disableBlur(),et.find("input:focus").blur(),St.events.enableBlur(),St.image.upload(this.files,y)),g(this).val("")},!0),_)}function bt(){y&&a.popups.get("image.alt").find("input").val(y.attr("alt")||"").trigger("change")}function la(){a.popups.get("image.alt")||ia(),Pe(),a.popups.refresh("image.alt"),a.popups.setContainer("image.alt",a.$sc);var _=pe(),l=a.helpers.getImagePopupPosition(_),n=l.top,l=l.left,_=_.outerHeight();a.opts.iframe&&he()&&(_=y?y.outerHeight():0),a.popups.show("image.alt",l,n,_,!0)}function ia(n){var l;return n?(a.popups.onRefresh("image.alt",bt),!0):(n="",n='<div class="fr-buttons fr-tabs">'.concat(a.button.buildList(a.opts.imageAltButtons),"</div>"),l="",l='<div class="fr-image-alt-layer fr-layer fr-active" id="fr-image-alt-layer-'.concat(a.id,'"><div class="fr-input-line"><input id="fr-image-alt-layer-text-').concat(a.id,'" type="text" placeholder="').concat(a.language.translate("Alternative Text"),'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetAlt" tabIndex="2" role="button">').concat(a.language.translate("Update"),"</button></div></div>"),n=a.popups.create("image.alt",{buttons:n,alt_layer:l}),a.$wp&&a.events.$on(a.$wp,"scroll.image-alt",function(){y&&a.popups.isVisible("image.alt")&&la()}),n)}function da(){var n=a.popups.get("image.size"),l=y.get(0).style.height?y.get(0).style.height:"auto",_=y.get(0).style.width?y.get(0).style.width:"auto";y&&(he()&&!y.parent().get(0).style.width&&y.parent().parent(),n.find('input[name="width"]').val(_).trigger("change"),n.find('input[name="height"]').val(l).trigger("change"))}function O(){a.popups.get("image.size")||we(),Pe(),a.popups.refresh("image.size"),a.popups.setContainer("image.size",a.$sc);var l=pe(),n=(l.outerWidth(),he()&&(l=l.find(".fr-img-wrap"),y.outerWidth()),l.outerHeight()),l=(a.opts.iframe&&he()&&(n=y?y.outerHeight():0),a.helpers.getImagePopupPosition(l)),_=l.top;a.popups.show("image.size",l.left,_,n,!0)}function we(n){var l;return n?(a.popups.onRefresh("image.size",da),!0):(n="",n='<div class="fr-buttons fr-tabs">'.concat(a.button.buildList(a.opts.imageSizeButtons),"</div>"),l="",l='<div class="fr-image-size-layer fr-layer fr-active" id="fr-image-size-layer-'.concat(a.id,'"><div class="fr-image-group"><div class="fr-input-line"><input id="fr-image-size-layer-width-\'').concat(a.id,'" type="text" name="width" placeholder="').concat(a.language.translate("Width"),'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-image-size-layer-height').concat(a.id,'" type="text" name="height" placeholder="').concat(a.language.translate("Height"),'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetSize" tabIndex="2" role="button">').concat(a.language.translate("Update"),"</button></div></div>"),n=a.popups.create("image.size",{buttons:n,size_layer:l}),a.$wp&&a.events.$on(a.$wp,"scroll.image-size",function(){y&&a.popups.isVisible("image.size")&&O()}),n)}function Le(n,l,_,z){return n.pageX=l,Vt.call(this,n),n.pageX=n.pageX+_*Math.floor(Math.pow(1.1,z)),Y.call(this,n),Ye.call(this,n),++z}function Ge(n){n=n||pe(),!a.opts.trackChangesEnabled||a.helpers.isMobile()||n[0].parentNode&&n[0].parentNode.tagName==="SPAN"&&n[0].parentNode.hasAttribute("data-tracking")?n&&a.events.trigger("image.beforeRemove",[n])!==!1&&(a.popups.hideAll(),V(),ga(!0),a.undo.canDo()||a.undo.saveStep(),n.get(0)==a.el?n.removeAttr("src"):((n.get(0).parentNode&&n.get(0).parentNode.tagName=="A"?(a.selection.setBefore(n.get(0).parentNode)||a.selection.setAfter(n.get(0).parentNode)||n.parent().after(o.MARKERS),g(n.get(0).parentNode)):(a.selection.setBefore(n.get(0))||a.selection.setAfter(n.get(0))||n.after(o.MARKERS),n)).remove(),a.html.fillEmptyBlocks(),a.selection.restore(
1)),a.undo.saveStep()):(a.track_changes.removeSpecialItem(n),a.popups.hideAll(),ga(!0))}function Ft(n){var l=n.which,_=document.getElementsByClassName("fs-transforms-container"),z=!1;if(_&&_.length){var _e,Be=d(_);try{for(Be.s();!(_e=Be.n()).done;){var Te=_e.value;Te.childNodes&&Te.childNodes.length&&(z=!0)}}catch(et){Be.e(et)}finally{Be.f()}}return!(y=z?null:y)||l!=o.KEYCODE.BACKSPACE&&l!=o.KEYCODE.DELETE?y&&l==o.KEYCODE.ESC?(_=y,ga(!0),a.selection.setAfter(_.get(0)),a.selection.restore(),n.preventDefault(),!1):!y||l!=o.KEYCODE.ARROW_LEFT&&l!=o.KEYCODE.ARROW_RIGHT?y&&l===o.KEYCODE.TAB?(n.preventDefault(),n.stopPropagation(),ga(!0),!1):y&&l!=o.KEYCODE.F10&&!a.keys.isBrowserAction(n)?(n.preventDefault(),n.stopPropagation(),!1):void 0:(_=y.get(0),ga(!0),l==o.KEYCODE.ARROW_LEFT?a.selection.setBefore(_):a.selection.setAfter(_),a.selection.restore(),n.preventDefault(),!1):(n.preventDefault(),n.stopPropagation(),Ge(),!1)}function qt(n){var l;if(n&&n.tagName=="IMG")a.node.hasClass(n,"fr-uploading")||a.node.hasClass(n,"fr-error")?n.parentNode.removeChild(n):a.node.hasClass(n,"fr-draggable")&&n.classList.remove("fr-draggable"),n.parentNode&&n.parentNode.parentNode&&a.node.hasClass(n.parentNode.parentNode,"fr-img-caption")&&((l=n.parentNode.parentNode).removeAttribute("contenteditable"),l.removeAttribute("draggable"),l.classList.remove("fr-draggable"),l=n.nextSibling)&&l.removeAttribute("contenteditable");else if(n&&n.nodeType==Node.ELEMENT_NODE)for(var _=n.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),z=0;z<_.length;z++)qt(_[z])}function Tt(n){if(a.events.trigger("image.beforePasteUpload",[n])===!1)g(n).removeAttr("data-fr-image-pasted");else{y=g(n),u(),Oe(),je(),y.on("load",function(){var _e=[];u(),g(a.popups.get("image.insert").get(0)).find("div.fr-active.fr-error").length<1&&je(),g(this).data("events").filter(function(Be){Be[0]==="load"&&_e.push(Be)}),_e.length<=1&&g(this).off("load")});for(var n=g(n).attr("src").split(","),l=atob(n[1]),_=[],z=0;z<l.length;z++)_.push(l.charCodeAt(z));Et([a.browser.safari&&!a.opts.imageUploadURL?new Blob([new Uint8Array(_)],{type:n[0].replace(/data\:/g,"")}):new Blob([new Uint8Array(_)],{type:n[0].replace(/data\:/g,"").replace(/;base64/g,"")})],y)}}function ht(){a.opts.imagePaste?a.$el.find("img[data-fr-image-pasted]").each(function(n,l){var _;a.opts.imagePasteProcess&&((_=a.opts.imageDefaultWidth)&&_!="auto"&&(_+=a.opts.imageResizeWithPercent?"%":"px"),g(l).css("width",_).removeClass("fr-dii fr-dib fr-fir fr-fil"),b(g(l),a.opts.imageDefaultDisplay,a.opts.imageDefaultAlign)),l.src.indexOf("data:")===0?Tt(l):l.src.indexOf("blob:")===0||l.src.indexOf("http")===0&&a.opts.imageUploadRemoteUrls&&a.opts.imageCORSProxy?((_=new Image).crossOrigin="Anonymous",_.onload=function(){var z=a.o_doc.createElement("CANVAS"),_e=z.getContext("2d");z.height=this.naturalHeight,z.width=this.naturalWidth,_e.drawImage(this,0,0),setTimeout(function(){Tt(l)},0),l.src=z.toDataURL(o.IMAGE_TYPE)},a.browser.msie&&o.IMAGE_ALLOW_REGEX.test(l.src)&&(o.IMAGE_TYPE="image/"+l.src.split(o.IMAGE_ALLOW_REGEX)[1]),_.src=(l.src.indexOf("blob:")===0?"":"".concat(a.opts.imageCORSProxy,"/"))+l.src,l.src.indexOf("blob:")!==0&&a.undo.saveStep()):l.src.indexOf("http")!==0||l.src.indexOf("https://mail.google.com/mail")===0?(a.selection.save(),g(l).remove(),a.selection.restore()):g(l).removeAttr("data-fr-image-pasted")}):a.$el.find("img[data-fr-image-pasted]").remove()}function yt(_){var _=_.target.result,l=a.opts.imageDefaultWidth,_=(l&&l!="auto"&&(l+=a.opts.imageResizeWithPercent?"%":"px"),a.undo.saveStep(),a.html.insert('<img data-fr-image-pasted="true" src="'.concat(_,'"').concat(l?' style="width: '.concat(l,';"'):"",">")),a.$el.find('img[data-fr-image-pasted="true"]'));_&&b(_,a.opts.imageDefaultDisplay,a.opts.imageDefaultAlign),a.events.trigger("paste.after")}function Yt(n,l){var _,z,_e=new FileReader;_e.onload=(_=l,(z=a.opts.imageDefaultWidth)&&z!="auto"&&(z+=a.opts.imageResizeWithPercent?"%":"px"),a.html.insert('<img data-fr-image-pasted="true" src="'.concat(_,'"').concat(z?' style="width: '.concat(z,';"'):"",">")),(_=a.$el.find('img[data-fr-image-pasted="true"]'))&&b(_,a.opts.imageDefaultDisplay,a.opts.imageDefaultAlign),void a.events.trigger("paste.after")),_e.readAsD
1ataURL(n,l)}function ta(n,l){var _=l||n&&n.clipboardData;if(_&&_.items){var l=(_||window.clipboardData).getData("text/html")||"",n=/caret-color:\s*rgb\(/.test(l)||/direction:\s*ltr.*margin-top:\s*0in/.test(l)||/width:\s*[\d.]+in/.test(l);if(l.match('content="Microsoft OneNote')||n)return!0;if(a.browser.mozilla&&(l===""||/<!--StartFragment-->([ ])<!--EndFragment-->/.test(l))&&(l=a.win.localStorage.getItem("fr-copied-html")),n=new DOMParser().parseFromString(l,"text/html").querySelector("img"),n&&!a.opts.imageUploadURL){if(!n)return!1;var l=n.src,z=null;if(_.types&&[].indexOf.call(_.types,"text/rtf")!=-1||_.getData("text/rtf"))z=_.items[0].getAsFile();else for(var _e=0;_e<_.items.length;_e++)if(z=_.items[_e].getAsFile()){o.IMAGE_TYPE=z.type;break}return z?(Yt(z,l),!1):void 0}var Be=null;if(_.types&&[].indexOf.call(_.types,"text/rtf")!=-1||_.getData("text/rtf"))Be=_.items[0].getAsFile();else for(var Te=0;Te<_.items.length&&!(Be=_.items[Te].getAsFile());Te++);return Be?(n=Be,(l=new FileReader).onload=yt,l.readAsDataURL(n),!1):void 0}}function Pt(n){return n=n.replace(/<img /gi,'<img data-fr-image-pasted="true" ')}function fa(n){if(g(this).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable")=="false"||n&&n.type=="touchend"&&v)return!0;if(n&&a.edit.isDisabled())return n.stopPropagation(),n.preventDefault(),!1;for(var l=0;l<o.INSTANCES.length;l++)o.INSTANCES[l]!=a&&o.INSTANCES[l].events.trigger("image.hideResizer");a.toolbar.disable(),n&&(n.stopPropagation(),n.preventDefault()),a.helpers.isMobile()&&(a.events.disableBlur(),a.$el.blur(),a.events.enableBlur()),a.opts.iframe&&a.size.syncIframe(),y=g(this),V(),u(),Oe(),a.browser.msie?(a.popups.areVisible()&&a.events.disableBlur(),a.win.getSelection&&(a.win.getSelection().removeAllRanges(),a.win.getSelection().addRange(a.doc.createRange()))):a.selection.clear(),a.helpers.isIOS()&&(a.events.disableBlur(),a.$el.blur()),a.button.bulkRefresh(),a.events.trigger("video.hideResizer")}function ga(n){y&&(ua||n===!0)&&(a.toolbar.enable(),j.removeClass("fr-active"),a.popups.hideAll(),Wt(),P=y=null,ne)&&ne.hide()}ge[E]="Image cannot be loaded from the passed link.",ge[Q]="No link in upload response.",ge[x]="Error during file upload.",ge[te]="Parsing response failed.",ge[Ke]="File is too large.",ge[q]="Image file type is invalid.",ge[7]="Files can be uploaded only to same domain in IE 8 and IE 9.";var ua=!(ge[8]="Image file is corrupted.");function qa(){ua=!0}function Wt(){ua=!1}function b(n,l,_){var z,_e;!a.opts.htmlUntouched&&a.opts.useClasses?(n.removeClass("fr-fil fr-fir fr-dib fr-dii"),_&&n.addClass("fr-fi".concat(_[0])),l&&n.addClass("fr-di".concat(l[0]))):l=="inline"?(n.css({display:"inline-block",verticalAlign:"bottom",margin:a.opts.imageDefaultMargin}),_=="center"?n.css({float:"none",marginBottom:"",marginTop:"",maxWidth:"calc(100% - ".concat(2*a.opts.imageDefaultMargin,"px)"),textAlign:"center"}):_=="left"?(z="0px",(_e=(_e=n.parent("span.fr-img-caption").get(0))||n.parent().get(0))&&_e.tagName.toLowerCase()==="li"?z="20px":_e&&_e.tagName.toLowerCase()==="p"&&(z="15px"),n.css({float:"left",marginLeft:0,maxWidth:"calc(100% - ".concat(a.opts.imageDefaultMargin,"px)"),textAlign:"left",marginRight:z})):n.css({float:"right",marginRight:0,maxWidth:"calc(100% - ".concat(a.opts.imageDefaultMargin,"px)"),textAlign:"right"})):l=="block"&&(n.css({display:"block",float:"none",verticalAlign:"top",margin:"".concat(a.opts.imageDefaultMargin,"px auto"),textAlign:"center"}),_=="left"?n.css({marginLeft:0,textAlign:"left"}):_=="right"&&n.css({marginRight:0,textAlign:"right"}))}function S(n){if(n=n===void 0?pe():n){if(n.hasClass("fr-fil"))return"left";if(n.hasClass("fr-fir"))return"right";if(n.hasClass("fr-dib")||n.hasClass("fr-dii"))return"center";var l=n.css("float");if(n.css("float","none"),n.css("display")=="block"){if(n.css("float",""),n.css("float")!=l&&n.css("float",l),parseInt(n.css("margin-left"),10)===0)return"left";if(parseInt(n.css("margin-right"),10)===0)return"right"}else{if(n.css("float",""),n.css("float")!=l&&n.css("float",l),n.css("float")=="left")return"left";if(n.css("float")=="right")return"right"}}return"center"}function C(n){var l=(n=n===void 0?pe():n).css("float");return n.css("float","none"),n.css("display")=="block"?(n.css("float",""),n.css("float")!=l&&n.css("float",l),"block"):(n.css("float",""),n.css("float")!=l&&n.css("float",l),"inline")}function B(){a.popups.get("image.insert")||ft(),a.popups.isVisible("image.insert")||(Pe(),a.popups.refresh("image.insert"),a.popups.setContainer("image.insert",a.$sc));var l=pe(),n=(l&&l.outerWidth(),he()&&(l=l.find(".fr-img-wrap"),y.outerWidth()),l.outerHeight(!0)),l=(a.opts.iframe&&he()&&(n=y?y.outerHeight():0),a.helpers.getImagePopupPosition(l)),_=l.top;a.popups.show("image.insert",l.left,_,n,!0)}function V(){var n;y&&(a.events.disableBlur(),a.selection.clear(),(n=a.doc.createRange()).selectNode(y.get(0)),a.browser.msie&&n.collapse(!0),a.selection.get().addRange(n),a.events.enableBlur())}function ie(){return y}function pe(){return he()?y.parents(".fr-img-caption").first():y}function he(){return!!y&&0<y.parents(".fr-img-caption").length}function ee(n){for(var l=document.createDocumentFragment();n.firstChild;){var _=n.removeChild(n.firstChild);l.appendChild(_)}n.parentNode.replaceChild(l,n)}return{_init:function(){var n;a.events.$on(a.$el,a._mousedown,a.el.tagName=="IMG"?null:'img:not([contenteditable="false"])',function(l){if(g(this).parents("contenteditable").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable")=="false")return!0;a.helpers.isMobile()||a.selection.clear(),k=!0,a.popups.areVisible()&&a.events.disableBlur(),a.browser.msie&&(a.events.disableBlur(),a.$el.attr("contenteditable",!1)),a.draggable||l.type=="touchstart"||l.preventDefault(),l.stopPropagation()}),a.events.$on(a.$el,a._mousedown,".fr-img-caption .fr-inner",function(l){a.core.hasFocus()||a.events.focus(),l.stopPropagation()}),a.events.$on(a.$el,"paste",".fr-img-caption .fr-inner",function(l){a.opts.toolbarInline===!0&&(a.toolbar.hide(),l.stopPropagation())}),a.events.$on(a.$el,a._mousedown,'img:not([contenteditable="false"])',function(l){var _=this;a.browser.mozilla&&l.which==3&&(g(this).attr("contenteditable",!1),setTimeout(function(){g(_).removeAttr("contenteditable")},200))}),a.events.$on(a.$el,a._mouseup,a.el.tagName=="IMG"?null:'img:not([contenteditable="false"])',function(l){if(g(this).parents("contenteditable").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable")=="false")return!0;k&&(k=!1,l.stopPropagation(),a.browser.msie)&&(a.$el.attr("contenteditable",!0),a.events.enableBlur())}),a.events.on("keyup",function(l){var _;l.shiftKey&&a.selection.text().replace(/\n/g,"")===""&&a.keys.isArrow(l.which)&&(l=a.selection.element
1(),_=a.selection.endElement(),l&&l.tagName=="IMG"?R(g(l)):_&&_.tagName=="IMG"&&R(g(_)))},!0),a.events.on("drop",He),a.events.on("element.beforeDrop",Kt),a.events.on("mousedown window.mousedown",qa),a.events.on("window.touchmove",Wt),a.events.on("mouseup window.mouseup",function(){if(y&&!a.helpers.isMobile())return ga(),!1;Wt()}),a.events.on("touchstart touchend",function(){if(y&&a.helpers.isMobile())return ga(),!1;Wt()}),a.events.on("commands.mousedown",function(l){0<l.parents(".fr-toolbar").length&&ga()}),a.events.on("image.resizeEnd",function(){a.opts.iframe&&a.size.syncIframe()}),a.events.on("blur image.hideResizer commands.undo commands.redo element.dropped",function(){ga(!(k=!1))}),a.events.on("modals.hide",function(){y&&(V(),a.selection.clear())}),a.events.on("image.resizeEnd",function(){a.win.getSelection&&R(y)}),a.events.on("filestack-init",function(){ft()}),a.events.on("filestack-init-edit",function(){for(var l=a.$(".fr-popup:not(.fr-do-not-hide)"),_=l.length-1;0<=_;_--)l[_].parentElement.removeChild(l[_]);dt()}),a.opts.imageAddNewLine&&a.events.on("image.inserted",function(l){var _=l.get(0);for(_.nextSibling&&_.nextSibling.tagName==="BR"&&(_=_.nextSibling);_&&!a.node.isElement(_);)_=a.node.isLastSibling(_)?_.parentNode:null;a.node.isElement(_)&&(a.opts.enter===o.ENTER_BR?l.after("<br>"):g(a.node.blockParent(l.get(0))).after("<".concat(a.html.defaultTag(),"><br></").concat(a.html.defaultTag(),">")))}),a.el.tagName=="IMG"&&a.$el.addClass("fr-view"),a.events.$on(a.$el,a.helpers.isMobile()&&!a.helpers.isWindowsPhone()?"touchend":"click",a.el.tagName=="IMG"?null:'img:not([contenteditable="false"])',fa),a.helpers.isMobile()&&(a.events.$on(a.$el,"touchstart",a.el.tagName=="IMG"?null:'img:not([contenteditable="false"])',function(){v=!1}),a.events.$on(a.$el,"touchmove",function(){v=!0})),a.$wp?(a.events.on("window.keydown keydown",Ft,!0),a.events.on("keyup",function(l){if(y&&l.which==o.KEYCODE.ENTER)return!1},!0),a.events.$on(a.$el,"keydown",function(){var l=a.selection.element();(l.nodeType===Node.TEXT_NODE||l.tagName=="BR"&&a.node.isLastSibling(l))&&(l=l.parentNode),a.node.hasClass(l,"fr-inner")||(a.node.hasClass(l,"fr-img-caption")||(l=g(l).parents(".fr-img-caption").get(0)),a.node.hasClass(l,"fr-img-caption")&&(a.opts.trackChangesEnabled||g(l).after(o.INVISIBLE_SPACE+o.MARKERS),a.selection.restore()))})):a.events.$on(a.$win,"keydown",Ft),a.events.on("toolbar.esc",function(){var l;if(y)return a.$wp?(a.events.disableBlur(),a.events.focus()):(l=y,ga(!0),a.selection.setAfter(l.get(0)),a.selection.restore()),!1},!0),a.events.on("toolbar.focusEditor",function(){if(y)return!1},!0),a.events.on("window.cut window.copy",function(l){var _;y&&a.popups.isVisible("image.edit")&&!a.popups.get("image.edit").find(":focus").length&&(_=pe(),he()?(_.before(o.START_MARKER),_.after(o.END_MARKER),a.selection.restore(),a.paste.saveCopiedText(_.get(0).outerHTML,_.text())):(V(),a.paste.saveCopiedText(y.get(0).outerHTML,y.attr("alt"))),l.type=="copy"?setTimeout(function(){R(y)}):(ga(!0),a.undo.saveStep(),setTimeout(function(){a.undo.saveStep()},0)))},!0),a.browser.msie&&a.events.on("keydown",function(l){if(!a.selection.isCollapsed()||!y)return!0;var _=l.which;_==o.KEYCODE.C&&a.keys.ctrlKey(l)?a.events.trigger("window.copy"):_==o.KEYCODE.X&&a.keys.ctrlKey(l)&&a.events.trigger("window.cut")}),a.events.$on(g(a.o_win),"keydown",function(l){if(a.opts.pluginsEnabled.includes("filestack")&&a.opts.iframe){var _=document.getElementsByClassName("fs-transforms-container"),z=!1;if(_&&_.length){var _e,Be=d(_);try{for(Be.s();!(_e=Be.n()).done;){var Te=_e.value;Te.childNodes&&Te.childNodes.length&&(z=!0)}}catch(et){Be.e(et)}finally{Be.f()}}z&&(y=null)}if(_=l.which,y&&_==o.KEYCODE.BACKSPACE)return l.preventDefault(),!1}),a.events.$on(a.$win,"keydown",function(l){l=l.which,y&&y.hasClass("fr-uploading")&&l==o.KEYCODE.ESC&&y.trigger("abortUpload")}),a.events.on("destroy",function(){y&&y.hasClass("fr-uploading")&&y.trigger("abortUpload")}),a.events.on("paste.before",ta),a.events.on("paste.beforeCleanup",Pt),a.events.on("paste.after",ht),a.events.on("html.set",be),a.events.on("html.inserted",be),be(),a.events.on("destroy",function(){ue=[]}),a.events.on("html.processGet",qt),a.opts.imageOutputSize&&a.events.on("html.beforeGet",function(){n=a.el.querySelectorAll("img");for(var l=0;l<n.length;
vendor: 6,354 bytes, line 1
1l++){var _=parseFloat(g(n[l]).css("padding-left"))+parseFloat(g(n[l]).css("padding-right")),_=g(n[l]).width()-_,_=n[l].style.width||_,z=n[l].style.height||g(n[l]).height();_&&n[l].setAttribute("width","".concat(_).replace(/px/,"")),z&&n[l].setAttribute("height","".concat(z).replace(/px/,""))}}),a.opts.iframe&&a.events.on("image.loaded",a.size.syncIframe),a.$wp&&(Ne(),a.events.on("contentChanged",Ne)),a.events.$on(g(a.o_win),"orientationchange.image",function(){setTimeout(function(){y&&R(y)},100)}),dt(!0),ft(!0),we(!0),ia(!0),a.events.on("node.remove",function(l){if(l.get(0).tagName=="IMG")return Ge(l),!1})},showInsertPopup:function(){var n,l,_=a.$tb.find('.fr-command[data-cmd="insertImage"]'),z=(z=a.popups.get("image.insert"))||ft();Pe(),z.hasClass("fr-active")||(a.popups.refresh("image.insert"),a.popups.setContainer("image.insert",a.$tb),_.isVisible()?(l=(n=a.button.getPosition(_)).left,a.popups.show("image.insert",l,n.top,_.outerHeight())):(a.position.forSelection(z),a.popups.show("image.insert")))},showLayer:function(n){var l,_,z,_e=a.popups.get("image.insert");y||a.opts.toolbarInline?y&&(_=pe(),l=0,he()&&(_=_.find(".fr-img-wrap"),l=y.outerWidth()/2),z=(_=a.helpers.getImagePopupPosition(_)).topPosition,_=_.leftPosition+l):(_=(l=a.$tb.find('.fr-command[data-cmd="insertImage"]')).offset().left,z=l.offset().top+(a.opts.toolbarBottom?10:l.outerHeight()-10)),!y&&a.opts.toolbarInline&&(z=_e.offset().top-a.helpers.getPX(_e.css("margin-top")),_e.hasClass("fr-above"))&&(z+=_e.outerHeight()),_e.find(".fr-layer").removeClass("fr-active"),_e.find(".fr-".concat(n,"-layer")).addClass("fr-active"),a.popups.show("image.insert",_,z,y?y.outerHeight():0,he()),a.accessibility.focusPopup(_e)},refreshUploadButton:function(n){var l=a.popups.get("image.insert");l&&l.find(".fr-image-upload-layer").hasClass("fr-active")&&n.addClass("fr-active").attr("aria-pressed",!0)},refreshByURLButton:function(n){var l=a.popups.get("image.insert");l&&l.find(".fr-image-by-url-layer").hasClass("fr-active")&&n.addClass("fr-active").attr("aria-pressed",!0)},upload:Et,insertByURL:function(){var n,l,_=a.popups.get("image.insert").find(".fr-image-by-url-layer input");0<_.val().length&&(je(),qe(a.language.translate("Loading image")),n=_.val().trim(),a.opts.imageUploadRemoteUrls&&a.opts.imageCORSProxy&&a.opts.imageUpload?((l=new XMLHttpRequest).onload=function(){this.status==200?Et([new Blob([this.response],{type:this.response.type||"image/png"})],y):Ae(E)},l.onerror=function(){nt(n,!0,[],y)},l.open("GET","".concat(a.opts.imageCORSProxy,"/").concat(n),!0),l.responseType="blob",l.send()):nt(n,!0,[],y),_.val(""),_.blur())},align:function(n){var l=pe();l.removeClass("fr-fir fr-fil"),!a.opts.htmlUntouched&&a.opts.useClasses?n=="left"?l.addClass("fr-fil"):n=="right"&&l.addClass("fr-fir"):b(l,C(),n),V(),u(),Oe(),a.selection.clear()},refreshAlign:function(n){y&&n.find("> *").first().replaceWith(a.icon.create("image-align-".concat(S())))},refreshAlignOnShow:function(n,l){y&&l.find('.fr-command[data-param1="'.concat(S(),'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(n){var l=pe();l.removeClass("fr-dii fr-dib"),!a.opts.htmlUntouched&&a.opts.useClasses?n=="inline"?l.addClass("fr-dii"):n=="block"&&l.addClass("fr-dib"):b(l,n,S()),V(),u(),Oe(),a.selection.clear()},refreshDisplayOnShow:function(n,l){y&&l.find('.fr-command[data-param1="'.concat(C(),'"]')).addClass("fr-active").attr("aria-selected",!0)},replace:B,back:function(){y?(a.events.disableBlur(),g(".fr-popup input:focus").blur(),R(y)):(a.events.disableBlur(),a.selection.restore(),a.events.enableBlur(),a.popups.hide("image.insert"),a.toolbar.showInline())},get:ie,getEl:pe,insert:nt,showProgressBar:je,remove:Ge,hideProgressBar:Pe,applyStyle:function(n,l,_){if(l===void 0&&(l=a.opts.imageStyles),_===void 0&&(_=a.opts.imageMultipleStyles),!y)return!1;var z=pe();_||((_=Object.keys(l)).splice(_.indexOf(n),1),z.removeClass(_.join(" "))),s(l[n])=="object"?(z.removeAttr("style"),z.css(l[n].style)):(z.toggleClass(n),he()&&y.hasClass(n)&&y.removeClass(n)),R(y)},showAltPopup:la,showSizePopup:O,setAlt:function(n){var l;y&&(l=a.popups.get("image.alt"),y.attr("alt",n||l.find("input").val()||""),l.find("input:focus").blur(),R(y))},setSize:function(n,l){var _,z;y&&(_=a.popups.get("image.size"),n=n||_.find('input[name="width"]').val()||"",l=l||_.find('input[name="height"]').val()||"",z=/^[\d]+((px)|%)*$/g,y.removeAttr("width").removeAttr("height"),n.match(z)?y.css("width",n):y.css("width",""),l.match(z)?y.css("height",l):y.css("height",""),he()&&(y.parents(".fr-img-caption").removeAttr("width").removeAttr("height"),n.match(z)?y.parents(".fr-img-caption").css("width",n):y.parents(".fr-img-caption").css("width",""),l.match(z)?y.parents(".fr-img-caption").css("height",l):y.parents(".fr-img-caption").css("height","")),_&&_.find("input:focus").blur(),R(y))},toggleCaption:function(){var n,l=a.$el.get(0),_=["fr-dii","fr-dib","fr-fil","fr-fir"];if(y&&!he()){(n=y).parent().is("a")&&(n=y.parent());var z=y.parents("ul")&&0<y.parents("ul").length?y.parents("ul"):y.parents("ol")&&0<y.parents("ol").length?y.parents("ol"):[],Te=(0<z.length&&(Te=z.find("li").length,_e=y.parents("li"),Be=document.createElement("li"),Te-1===_e.index())&&(z.append(Be),Be.innerHTML=" "),(y.attr("class")||"").split(/\s+/)),_e=Te.filter(function(sa){return _.includes(sa)}),Be=(y.attr("class",Te.filter(function(sa){return!_.includes(sa)}).join(" ")),n.attr("style")?jt=-1<(z=n.attr("style").split(":")).indexOf("width")?z[z.indexOf("width")+1].replace(";",""):"":n.attr("width")&&(jt=n.attr("width")),a.opts.imageResizeWithPercent?(-1<jt.indexOf("px")?null:jt)||"100%":y.width()+"px"),Te=(n.wrap('<div class="fr-img-space-wrap"><span '+(a.browser.mozilla?"":'contenteditable="false"')+'class="fr-img-caption '+_e.join(" ")+'" style="'+(n.attr("style")||"")+'" draggable="false"></span></div>'),n.wrap('<span class="fr-img-wrap"></span>'),y.after('<span class="fr-inner"'.concat(a.browser.mozilla?"":' contenteditable="true"',">").concat(o.START_MARKER).concat(a.language.translate("Image Caption")).concat(o.END_MARKER,"</span>")),y.parents(".fr-img-caption").css("width",Be),y.parents(".fr-img-space-wrap").length);Te==1?ee(l.querySelector(".fr-img-space-wrap")):1<Te&&(ee(l.querySelector(".fr-img-space-wrap")),ee(l.querySelector(".fr-img-space-wrap2"))),ga(!0),a.selection.restore(
vendor: 5,483 bytes, line 1
1)}else{if(n=pe(),y.insertBefore(n),n[0].querySelector("a")!==null){for(var et,z=n[0].querySelector("a"),St=document.createElement("a"),ot=0,ct=z.attributes,Ct=ct.length;ot<Ct;ot++)et=ct[ot],St.setAttribute(et.nodeName,et.nodeValue);y.wrap(St)}var jt=(n.attr("class")||"").split(/\s+/),va=["fr-img-caption"],_e=jt.filter(function(fn){return!va.includes(fn)}),Be=(y.attr("class")||"").split(/\s+/),Te=t(new Set(Be.concat(_e))),z=(y.attr("class",Te.join(" ")).attr("style",n.attr("style")),n.remove(),y.parents(".fr-img-space-wrap").length);z==1?ee(l.querySelector(".fr-img-space-wrap")):1<z&&(ee(l.querySelector(".fr-img-space-wrap")),ee(l.querySelector(".fr-img-space-wrap2"))),R(y)}},hasCaption:he,exitEdit:ga,edit:R}},o.DefineIcon("insertImage",{NAME:"image",SVG_KEY:"insertImage"}),o.RegisterShortcut(o.KEYCODE.P,"insertImage",null,"P"),o.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"}),o.DefineIcon("imageUpload",{NAME:"upload",SVG_KEY:"upload"}),o.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(a){this.image.refreshUploadButton(a)}}),o.DefineIcon("imageByURL",{NAME:"link",SVG_KEY:"insertLink"}),o.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(a){this.image.refreshByURLButton(a)}}),o.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(a){this.image.get()?a.text(this.language.translate("Replace")):a.text(this.language.translate("Insert"))}}),o.DefineIcon("imageDisplay",{NAME:"star",SVG_KEY:"imageDisplay"}),o.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(a,y){this.image.display(y)},refresh:function(a){this.opts.imageTextNear||a.addClass("fr-hidden")},refreshOnShow:function(a,y){this.image.refreshDisplayOnShow(a,y)}}),o.DefineIcon("image-align",{NAME:"align-left",SVG_KEY:"alignLeft"}),o.DefineIcon("image-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),o.DefineIcon("image-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),o.DefineIcon("image-align-center",{NAME:"align-justify",SVG_KEY:"alignCenter"}),o.DefineIcon("imageAlign",{NAME:"align-justify",SVG_KEY:"alignJustify"}),o.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right"},html:function(){var a,y='<ul class="fr-dropdown-list" role="presentation">',j=o.COMMANDS.imageAlign.options;for(a in j)j.hasOwnProperty(a)&&(y+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="imageAlign" data-param1="'.concat(a,'" title="').concat(this.language.translate(j[a]),'">').concat(this.icon.create("image-align-".concat(a)),'<span class="fr-sr-only">').concat(this.language.translate(j[a]),"</span></a></li>"));return y+="</ul>"},callback:function(a,y){this.image.align(y)},refresh:function(a){this.image.refreshAlign(a)},refreshOnShow:function(a,y){this.image.refreshAlignOnShow(a,y)}}),o.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),o.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),o.DefineIcon("imageRemove",{NAME:"trash",SVG_KEY:"remove"}),o.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),o.DefineIcon("imageBack",{NAME:"arrow-left",SVG_KEY:"back"}),o.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(a){this.$,this.image.get()||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),o.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),o.DefineIcon("imageStyle",{NAME:"magic",SVG_KEY:"imageClass"}),o.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var a,y,j='<ul class="fr-dropdown-list" role="presentation">',P=this.opts.imageStyles;for(a in P)P.hasOwnProperty(a)&&(s(y=P[a])=="object"&&(y=y.title),j+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="imageStyle" data-param1="'.concat(a,'">').concat(this.language.translate(y),"</a></li>"));return j+="</ul>"},callback:function(a,y){this.image.applyStyle(y)},refreshOnShow:function(a,y){var j=this.$,P=this.image.getEl();P&&y.find(".fr-command").each(function(){var ne=j(this).data("param1"),ne=P.hasClass(ne);j(this).toggleClass("fr-active",ne).attr("aria-selected",ne)})}}),o.DefineIcon("imageAlt",{NAME:"info",SVG_KEY:"imageAltText"}),o.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternative Text",callback:function(){this.image.showAltPopup()}}),o.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),o.DefineIcon("imageSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}
1),o.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),o.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),o.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt",SVG_KEY:"imageCaption"}),o.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(a){this.image.get()&&a.toggleClass("fr-active",this.image.hasCaption())}})})});var lo=Ba((di,so)=>{"use strict";(function(o,e){typeof di=="object"&&typeof so<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(di,function(o){"use strict";Object.assign(o.DEFAULTS,{inlineClasses:{"fr-class-code":"Code","fr-class-highlighted":"Highlighted","fr-class-transparency":"Transparent"}}),o.PLUGINS.inlineClass=function(e){var d=e.$;return{apply:function(t){e.format.toggle("span",{class:t})},refreshOnShow:function(t,s){s.find(".fr-command").each(function(){var h=d(this).data("param1"),h=e.format.is("span",{class:h});d(this).toggleClass("fr-active",h).attr("aria-selected",h)})}}},o.RegisterCommand("inlineClass",{type:"dropdown",title:"Inline Class",html:function(){var e,d='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.inlineClasses;for(e in t)t.hasOwnProperty(e)&&(d+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineClass" data-param1="'.concat(e,'" title="').concat(t[e],'">').concat(t[e],"</a></li>"));return d+="</ul>"},callback:function(e,d){this.inlineClass.apply(d)},refreshOnShow:function(e,d){this.inlineClass.refreshOnShow(e,d)},plugin:"inlineClass"}),o.DefineIcon("inlineClass",{NAME:"tag",SVG_KEY:"inlineClass"})})});var fo=Ba((fi,co)=>{"use strict";(function(o,e){typeof fi=="object"&&typeof co<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(fi,function(o){"use strict";Object.assign(o.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),o.PLUGINS.inlineStyle=function(e){return{apply:function(d){for(var t=d.split(";"),s=0;s<t.length;s++){var h=t[s].split(":");t[s].length&&h.length==2&&e.format.applyStyle(h[0].trim(),h[1].trim())}}}},o.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var e,d,t='<ul class="fr-dropdown-list" role="presentation">',s=this.opts.inlineStyles;for(e in s)s.hasOwnProperty(e)&&(d=s[e]+(s[e].indexOf("display:block;")===-1?" display:block;":""),t+='<li role="presentation"><span style="'.concat(d,'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineStyle" data-param1="').concat(s[e],'" title="').concat(this.language.translate(e),'">').concat(this.language.translate(e),"</a></span></li>"));return t+="</ul>"},title:"Inline Style",callback:function(e,d){this.inlineStyle.apply(d)},plugin:"inlineStyle"}),o.DefineIcon("inlineStyle",{NAME:"paint-brush",SVG_KEY:"inlineStyle"})})});var po=Ba((ui,uo)=>{"use strict";(function(o,e){typeof ui=="object"&&typeof uo<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(ui,function(o){"use strict";Object.assign(o.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),Object.assign(o.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),o.PLUGINS.link=function(e){var d=e.$;function t(){var I=e.image?e.image.get():null;if(I||!e.$wp)return e.el.tagName=="A"?e.el:I&&I.get(0).parentNode&&I.get(0).parentNode.tagName=="A"?I.get(0).parentNode:void 0;I=e.selection.ranges(0).commonAncestorContainer;try{I&&(I.contains&&I.contains(e.el)||!e.el.contains(I)||e.el==I)&&(I=null)}catch(E){I=null}if(I&&I.tagName==="A")return I;
1var g,I=e.selection.element(),k=e.selection.endElement();I.tagName=="A"||e.node.isElement(I)||(I=e.opts.iframe&&(g=e.markdown)!=null&&g.isEnabled()?null:d(I).parentsUntil(e.$el,"a").first().get(0)),k.tagName=="A"||e.node.isElement(k)||(k=e.opts.iframe&&(g=e.markdown)!=null&&g.isEnabled()?null:d(k).parentsUntil(e.$el,"a").first().get(0));try{k&&(k.contains&&k.contains(e.el)||!e.el.contains(k)||e.el==k)&&(k=null)}catch(E){k=null}try{I&&(I.contains&&I.contains(e.el)||!e.el.contains(I)||e.el==I)&&(I=null)}catch(E){I=null}return!k||k!=I||k.tagName!="A"||(e.browser.msie||e.helpers.isMobile())&&(e.selection.info(I).atEnd||e.selection.info(I).atStart)?null:I}function s(){var g,I,k=e.image?e.image.get():null,E=[];if(k)k.get(0).parentNode.tagName=="A"&&E.push(k.get(0).parentNode);else if(e.win.getSelection){var Q=e.win.getSelection();if(Q.getRangeAt&&Q.rangeCount)for(var x=e.doc.createRange(),te=0;te<Q.rangeCount;++te)if((I=(I=(g=Q.getRangeAt(te)).commonAncestorContainer)&&I.nodeType!=1?I.parentNode:I)&&I.nodeName.toLowerCase()=="a")E.push(I);else for(var Ke=I.getElementsByTagName("a"),q=0;q<Ke.length;++q)x.selectNodeContents(Ke[q]),x.compareBoundaryPoints(g.END_TO_START,g)<1&&-1<x.compareBoundaryPoints(g.START_TO_END,g)&&E.push(Ke[q])}else if(e.doc.selection&&e.doc.selection.type!="Control")if((I=(g=e.doc.selection.createRange()).parentElement()).nodeName.toLowerCase()=="a")E.push(I);else{Ke=I.getElementsByTagName("a"),x=e.doc.body.createTextRange();for(var ge=0;ge<Ke.length;++ge)x.moveToElementText(Ke[ge]),-1<x.compareEndPoints("StartToEnd",g)&&x.compareEndPoints("EndToStart",g)<1&&E.push(Ke[ge])}return E}function h(g){if(e.core.hasFocus()||e.opts.iframe&&(!document.hasFocus||document.hasFocus())){if(y(),g&&g.type==="keyup"&&(g.altKey||g.which==o.KEYCODE.ALT))return!0;setTimeout(function(){if(!g||g.which==1||g.type!="mouseup"){var I=t(),k=e.image?e.image.get():null;if(I&&!k){if(e.image){var k=e.node.contents(I);if(k.length==1&&k[0].tagName=="IMG")return(k=e.selection.ranges(0)).startOffset===0&&k.endOffset===0?d(I).before(o.INVISIBLE_SPACE+o.MARKERS):d(I).after(o.INVISIBLE_SPACE+o.MARKERS),e.selection.restore(),!1}g&&g.stopPropagation(),d(I).hasClass("fr-anchor")||a(I)}}},e.helpers.isIOS()?100:0)}}function a(I){e.popups.get("link.edit")||(function(){var Q="";1<=e.opts.linkEditButtons.length&&(e.el.tagName=="A"&&0<=e.opts.linkEditButtons.indexOf("linkRemove")&&e.opts.linkEditButtons.splice(e.opts.linkEditButtons.indexOf("linkRemove"),1),Q='<div class="fr-buttons">'.concat(e.button.buildList(e.opts.linkEditButtons),"</div>")),Q={buttons:Q},Q=e.popups.create("link.edit",Q),e.$wp&&e.events.$on(e.$wp,"scroll.link-edit",function(){var x=t();x&&e.popups.isVisible("link.edit")&&(d(x).hasClass("fr-anchor")||a(x))})})();var I=d(I),k=(e.popups.isVisible("link.edit")||e.popups.refresh("link.edit"),e.popups.setContainer("link.edit",e.$sc),I.offset().left+I.outerWidth()/2),E=I.offset().top+I.outerHeight();e.popups.show("link.edit",k,E,I.outerHeight(),!0)}function y(){e.popups.hide("link.edit")}function j(){var g=e.popups.get("link.insert"),I=t();if(I){for(var k=d(I),E=g.find('input.fr-link-attr[type="text"]'),Q=g.find('input.fr-link-attr[type="checkbox"]'),x=0;x<E.length;x++){var te,Ke=(te=d(E[x])).attr("name")||"",Ke=Ke==="href"?decodeURI(k.attr(Ke)):k.attr(Ke);te.val(Ke)}for(Q.attr("checked",!1),x=0;x<Q.length;x++)te=d(Q[x]),k.attr(te.attr("name"))==te.data("checked")&&te.attr("checked",!0);g.find('input.fr-link-attr[type="text"][name="text"]').val(k.text())}else g.find('input.fr-link-attr[type="text"]').val(""),g.find('input.fr-link-attr[type="checkbox"]').attr("checked",!1),g.find('input.fr-link-attr[type="text"][name="text"]').val(e.selection.text());g.find("input.fr-link-attr").trigger("change"),e.image&&e.image.get()?g.find('.fr-link-attr[name="text"]').parent().hide():g.find('.fr-link-attr[name="text"]').parent().show()}function P(E){if(E)return e.popups.onRefresh("link.insert",j),!0;var I,k,E="",te=(1<=e.opts.linkInsertButtons.length&&(E='<div class="fr-buttons fr-tabs">'.concat(e.button.buildList(e.opts.linkInsertButtons),"</div>")),""),Q=0,x=e.button.buildList(["anchorList"]),te='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'.concat(e.id,'">');for(I in te+='<div class="fr-link-input-layer"><div class="fr-input-line"><input id="fr-link-insert-layer-url-'.concat(e.id,'" name="href" type="text" class="fr-link-attr" placeholder="').concat(e.language.translate("URL"),'" tabIndex="').concat(++Q,'"></div><div class="fr-buttons">').concat(x,"</div></div>"),e.opts.linkText&&(te+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'.concat(e.id,'" name="text" t
1ype="text" class="fr-link-attr" placeholder="').concat(e.language.translate("Text"),'" tabIndex="').concat(++Q,'"></div>')),e.opts.linkAttributes)e.opts.linkAttributes.hasOwnProperty(I)&&(k=e.opts.linkAttributes[I],te+='<div class="fr-input-line"><input name="'.concat(I,'" type="text" class="fr-link-attr" placeholder="').concat(e.language.translate(k),'" tabIndex="').concat(++Q,'"></div>'));return e.opts.linkAlwaysBlank||(te+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'.concat(e.id,'" tabIndex="').concat(++Q,'"><span>').concat('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg>','</span></span><label id="fr-label-target-').concat(e.id,'">').concat(e.language.translate("Open in new tab"),"</label></div>")),te+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'.concat(++Q,'" type="button">').concat(e.language.translate("Insert"),"</button></div></div>"),x=e.popups.create("link.insert",{buttons:E,input_layer:te}),e.$wp&&e.events.$on(e.$wp,"scroll.link-insert",function(){e.image&&e.image.get()&&e.popups.isVisible("link.insert")&&v(),e.popups.isVisible("link.insert")&&ue()}),x}function ne(g,I,k){if(e.opts.trackChangesEnabled){if(e.edit.on(),e.events.focus(!0),e.undo.saveStep(),e.markers.insert(),e.html.wrap(),!e.$el.find(".fr-marker").length)return void e.popups.hide("link.insert");e.markers.remove()}if(e.events.trigger("link.beforeInsert",[g,I,k=k===void 0?{}:k])===!1)return!1;var E=e.image?e.image.get():null,Q=(E||e.el.tagName=="A"?e.el.tagName=="A"&&e.$el.focus():(e.selection.restore(),e.popups.hide("link.insert")),g);if(e.opts.linkConvertEmailAddress&&e.helpers.isEmail(g)&&!/^mailto:.*/i.test(g)&&(g="mailto:".concat(g)),e.opts.linkAutoPrefix===""||new RegExp("^("+o.LinkProtocols.join("|")+"):.","i").test(g)||/^data:image.*/i.test(g)||/^(https?:|ftps?:|file:|)\/\//i.test(g)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(g)||["/","{","[","#","(",".",'"',"\\"].indexOf((g||"")[0])<0&&(g=e.opts.linkAutoPrefix+g),(g=e.helpers.sanitizeURL(g))===decodeURIComponent(g)&&(g=encodeURI(g)),e.opts.linkAlwaysBlank&&(k.target="_blank"),e.opts.linkAlwaysNoFollow&&(k.rel="nofollow"),e.helpers.isEmail(Q)&&(k.target=null,k.rel=null),k.target=="_blank"?(e.opts.linkNoOpener&&(k.rel?k.rel+=" noopener":k.rel="noopener"),e.opts.linkNoReferrer&&(k.rel?k.rel+=" noreferrer":k.rel="noreferrer")):k.target==null&&(k.rel?k.rel=k.rel.replace(/noopener/,"").replace(/noreferrer/,""):k.rel=null),I=I||"",g===e.opts.linkAutoPrefix)return e.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),e.events.trigger("link.bad",[Q]),!1;var x,te=t();if(te){if((x=d(te)).attr("href",g),0<I.length&&x.text()!=I&&!E){e.opts.trackChangesEnabled&&((te=d(x.get(0).outerHTML)).insertBefore(x.parent()),te=e.track_changes.wrapLinkInTracking(te,e.track_changes.getPendingChanges().length-1),te=e.track_changes.wrapInDelete(te),x.parent().append(te));for(var Ke=x.get(0);Ke.childNodes.length===1&&Ke.childNodes[0].nodeType==Node.ELEMENT_NODE;)Ke=Ke.childNodes[0];d(Ke).text(I)}for(var q in E||x.prepend(o.START_MARKER).append(o.END_MARKER),k)k[q]?x.attr(q,k[q]):x.removeAttr(q);E||e.selection.restore()}else{if(E)E.wrap('<a href="'.concat(g,'"></a>')),e.image.hasCaption()&&E.parent().append(E.parents(".fr-img-caption").find(".fr-inner"));else if(e.format.remove("a"),e.selection.isCollapsed())I=I.length===0?Q:I,e.html.insert('<a href="'.concat(g,'">').concat(o.START_MARKER).concat(I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")).concat(o.END_MARKER,"</a>")),e.selection.restore();else if(0<I.length&&I!=e.selection.text().replace(/\n/g,""))e.selection.remove(),e.html.insert('<a href="'.concat(g,'">').concat(o.START_MARKER).concat(I.replace(/&/g,"&")).concat(o.END_MARKER,"</a>
1")),e.selection.restore();else{if(!e.selection.isCollapsed()){e.selection.save();for(var ge=e.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();ge.length;){var U=d(ge.pop()),Oe=(U.removeClass("fr-unprocessed"),e.node.deepestParent(U.get(0)));if(Oe){for(var J=U.get(0),be="",Ne="";J=J.parentNode,e.node.isBlock(J)||(be+=e.node.closeTagString(J),Ne=e.node.openTagString(J)+Ne),J!=Oe;);var u=e.node.openTagString(U.get(0))+U.html()+e.node.closeTagString(U.get(0)),U=(U.replaceWith('<span id="fr-break"></span>'),Oe.outerHTML);U=(U=U.replace(/<span id="fr-break"><\/span>/g,be+u+Ne)).replace(Ne+be,""),Oe.outerHTML=U}ge=e.$el.find(".fr-marker.fr-unprocessed").toArray()}e.html.cleanEmptyTags(),e.selection.restore()}e.format.apply("a",{href:g})}for(var it=s(),De=0;De<it.length;De++)(x=d(it[De])).attr(k),x.removeAttr("_moz_dirty");it.length==1&&e.$wp&&!E&&(d(it[0]).prepend(o.START_MARKER).append(o.END_MARKER),e.selection.restore())}E?((te=e.popups.get("link.insert"))&&te.find("input:focus").blur(),e.image.edit(E)):h()}function ue(){y();var g,I,k=t();k&&(e.popups.get("link.insert")||P(),e.popups.isVisible("link.insert")||(e.popups.refresh("link.insert"),e.selection.save(),e.helpers.isMobile()&&(e.events.disableBlur(),e.$el.blur(),e.events.enableBlur())),e.popups.setContainer("link.insert",e.$sc),g=(k=(e.image?e.image.get():null)||d(k)).offset().left+k.outerWidth()/2,I=k.offset().top+k.outerHeight(),e.popups.show("link.insert",g,I,k.outerHeight(),!0))}function v(){var g,I,k,E=e.image?e.image.getEl():null;E&&(I=e.popups.get("link.insert"),E.outerWidth(),e.image.hasCaption()&&(E=E.find(".fr-img-wrap"),d(E))&&d(E).find("img")&&d(E).find("img").outerWidth(),I=I||P(),j(),e.popups.setContainer("link.insert",e.$sc),g=(I=e.helpers.getImagePopupPosition(E)).top,I=I.left,k=E.outerHeight(),e.opts.iframe&&e.image.hasCaption()&&d(E)&&d(E).find("img")&&(k=d(E).find("img").outerHeight()),e.popups.show("link.insert",I,g,k,!0))}return{_init:function(){e.events.on("keyup",function(g){g.which!=o.KEYCODE.ESC&&h(g)}),e.events.on("window.mouseup",h),e.events.$on(e.$el,"click","a",function(g){e.edit.isDisabled()&&g.preventDefault()}),e.helpers.isMobile()&&e.events.$on(e.$doc,"selectionchange",h),P(!0),e.events.on("popups.show.link.insert",function(){var g=e.popups.get("link.insert").find('input.fr-link-attr[name="href"]');g.length&&g.trigger("focus")}),e.el.tagName=="A"&&e.$el.addClass("fr-view"),e.events.on("toolbar.esc",function(){if(e.popups.isVisible("link.edit"))return e.events.disableBlur(),e.events.focus(),!1},!0)},remove:function(){var g,I=t(),k=e.image?e.image.get():null;if(e.events.trigger("link.beforeRemove",[I])===!1)return!1;k&&I?e.image.hasCaption()?(k.addClass("img-link-caption"),d(I).replaceWith(d(I).html()),g=document.querySelectorAll("img.img-link-caption"),e.image.edit(d(g[0])),d(g[0]).removeClass("img-link-caption")):(k.unwrap(),e.image.edit(k)):I&&(e.selection.save(),d(I).replaceWith(d(I).html()),e.selection.restore(),y())},showInsertPopup:function(){var g,I,k=e.$tb.find('.fr-command[data-cmd="insertLink"]'),E=e.popups.get("link.insert");(E=E||P()).hasClass("fr-active")||(e.popups.refresh("link.insert"),e.popups.setContainer("link.insert",e.$tb||e.$sc),e.selection.save(),k.isVisible()?(I=(g=e.button.getPosition(k)).left,e.popups.show("link.insert",I,g.top,k.outerHeight())):(e.position.forSelection(E),e.popups.show("link.insert")),(I=E.find('button[data-cmd="anchorList"]')).isVisible()&&e.button.click(I))},usePredefined:function(g,I){var k,E,Q=e.opts.linkList[g]||I,x=(g=e.popups.get("link.insert")).find('input.fr-link-attr[type="text"]'),te=g.find('input.fr-link-attr[type="checkbox"]');for(Q.rel&&(g.rel=Q.rel),E=0;E<x.length;E++)Q[(k=d(x[E])).attr("name")]?(k.val(Q[k.attr("name")]),k.toggleClass("fr-not-empty",!0)):k.attr("name")!="text"&&k.val("");for(E=0;E<te.length;E++)(k=d(te[E])).attr("checked",k.data("checked")==Q[k.attr("name")]);e.accessibility.focusPopup(g)},insertCallback:function(){for(var g,I=e.popups.get("link.insert"),k=I.find('input.fr-link-attr[type="text"]'),E=I.find('input.fr-link-attr[type="checkbox"]'),Q=(k.filter('[name="href"]').val()||"").trim(),x=e.opts.linkText?k.filter('[name="text"]').val():"",te={},Ke=0;Ke<k.length;Ke++)g=d(k[Ke]),["href","text"].indexOf(g.attr("name"))<0&&(te[g.attr("name")]=g.val());for(Ke=0;Ke<E.length;Ke++)(g=d(E[Ke])).is(":checked")?te[g.attr("name")]=g.data("checked"):te[g.attr("name")]=g.data("unchecked")||null;I.rel&&(te.rel=I.rel),I=e.helpers.scrollTop(),ne(Q,x,te),d(e.o_win).scrollTop(I)},insert:ne,update:ue,get:t,allSelected:s,back:function(){e.image&&e.image.get()?e.image.back():(e.events.disableBlur(),e.selection.restore(
vendor: 5,400 bytes, line 1
1),e.events.enableBlur(),t()&&e.$wp?(e.selection.restore(),y(),h()):e.el.tagName=="A"?(e.$el.focus(),h()):(e.popups.hide("link.insert"),e.toolbar.showInline()))},imageLink:v,applyStyle:function(g,I,k){k===void 0&&(k=e.opts.linkMultipleStyles),I===void 0&&(I=e.opts.linkStyles);var E=t();if(!E)return!1;k||((k=Object.keys(I)).splice(k.indexOf(g),1),d(E).removeClass(k.join(" "))),d(E).toggleClass(g),h()},getAllAnchorList:function(){var g=e.$el.find('[data-cmd="anchor"]').get().map(function(Q){return Q.name}),I='<ul class="fr-dropdown-list" role="presentation">';if(!g.length)return!1;var k=e.icon.create("anchorListIcon");d(k).find("path").css("fill","dimgray");for(var E=0;E<g.length;E++)I+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="anchorList" data-param1="#'.concat(g[E],'">').concat(k).concat(g[E],"</a></li>");return I+="</ul>"},scrollToAnchor:function(k){var I,k=k.startsWith("#")?k.slice(1):k;return!!(k=e.$el.get(0).querySelector('[name="'.concat(k,'"]')))&&(k.scrollIntoView({behavior:"smooth",block:"center"}),e.linkToAnchor?e.linkToAnchor.focusOnAnchor(k):(I=e.doc.createRange(),e.selection.get().removeAllRanges(),I.selectNode(k),e.selection.get().addRange(I),$anchor.trigger("mousedown"),$anchor.trigger("mouseup")),!0)}}},o.DefineIcon("insertLink",{NAME:"link",SVG_KEY:"insertLink"}),o.RegisterShortcut(o.KEYCODE.K,"insertLink",null,"K"),o.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"}),o.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt",SVG_KEY:"openLink"}),o.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(e){var d,t=this.link.get();t?(e.removeClass("fr-hidden"),d="Open Link",t.href.includes("#")&&(d="Scroll to target"),e.attr("title",this.language.translate(d))):e.addClass("fr-hidden")},callback:function(){var e,d,t=this.link.get();t&&((e=t.getAttribute("href"))&&e.startsWith("#_mso")?(d='a[href="#'.concat(t.name,'"]'),(d=this.$el.find(d)).length&&d.get(0).scrollIntoView({behavior:"smooth",block:"center"})):e&&e.startsWith("#")?this.link.scrollToAnchor(e):t.href.indexOf("mailto:")!==-1?this.o_win.open(t.href).close():(t.target||(t.target="_self"),this.browser.msie||this.browser.edge?this.o_win.open(t.href,t.target):this.o_win.open(t.href,t.target,"noopener")),this.popups.hide("link.edit"))},plugin:"link"}),o.DefineIcon("linkEdit",{NAME:"edit",SVG_KEY:"edit"}),o.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),o.DefineIcon("linkRemove",{NAME:"unlink",SVG_KEY:"unlink"}),o.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),o.DefineIcon("linkBack",{NAME:"arrow-left",SVG_KEY:"back"}),o.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(e){var d=this.link.get()&&this.doc.hasFocus();this.image&&this.image.get()||d||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),o.DefineIcon("linkList",{NAME:"search",SVG_KEY:"search"}),o.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.linkList,t=0;t<d.length;t++)e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'.concat(t,'">').concat(d[t].displayText||d[t].text,"</a></li>");return e+="</ul>"},callback:function(e,d){this.link.usePredefined(d)},plugin:"link"}),o.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){this.link.get()?e.text(this.language.translate("Update")):e.text(this.language.translate("Insert"))},plugin:"link"}),o.DefineIcon("imageLink",{NAME:"link",SVG_KEY:"insertLink"}),o.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var d;this.link.get()?((d=e.prev()).hasClass("fr-separator")&&d.removeClass("fr-hidden"),e.addClass("fr-hidden")):((d=e.prev()).hasClass("fr-separator")&&d.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),o.DefineIcon("linkStyle",{NAME:"magic",SVG_KEY:"linkStyles"}),o.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e,d='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkStyles;for(e in t)t.hasOwnProperty(e)&&(d+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'.concat(e,'">').concat(this.language.translate(t[e]),"</a></li>"));return d+="</ul>"},callback:function(e,d){this.link.applyStyle(d)},refreshOnShow:function(e,d){var t,s=this.$,h=this.link.get();
1h&&(t=s(h),d.find(".fr-command").each(function(){var a=s(this).data("param1"),a=t.hasClass(a);s(this).toggleClass("fr-active",a).attr("aria-selected",a)}))},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),o.DefineIcon("anchorList",{}),o.RegisterCommand("anchorList",{title:"Anchor Link",type:"dropdown",focus:!0,undo:!1,icon:"",refreshAfterCallback:!0,html:function(){return this.link.getAllAnchorList()},callback:function(e,d){this.link.usePredefined(!1,{href:d,target:"_self",text:""})},refresh:function(e){this.link.getAllAnchorList()?e.show():e.hide()},refreshOnShow:function(e,d){d.find(".fr-dropdown-content")[0].innerHTML=this.link.getAllAnchorList();var t=d.parents(".fr-link-input-layer"),s=t.find(".fr-input-line");setTimeout(function(){d.css("top",s.height()-parseInt(s.css("padding-bottom"))),d.css("left",0),d.css("margin-left",0),d.css("width",t.width()),d.css("bottom","auto")},10)},plugin:"link"}),o.DefineIcon("anchorListIcon",{NAME:"bookmark",SVG_KEY:"bookmark",VIEWBOX:"-10 -10 35 35"})})});var go=Ba((pi,ho)=>{"use strict";(function(o,e){typeof pi=="object"&&typeof ho<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(pi,function(o){"use strict";function e(s,h){(h==null||h>s.length)&&(h=s.length);for(var a=0,y=Array(h);a<h;a++)y[a]=s[a];return y}function d(s){return(function(h){if(Array.isArray(h))return e(h)})(s)||(function(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)})(s)||t(s)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function t(s,h){var a;if(s)return typeof s=="string"?e(s,h):(a=(a={}.toString.call(s).slice(8,-1))==="Object"&&s.constructor?s.constructor.name:a)==="Map"||a==="Set"?Array.from(s):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(s,h):void 0}Object.assign(o.DEFAULTS,{listAdvancedTypes:!0}),o.PLUGINS.lists=function(s){var h=s.$;function a(v){return'<span class="fr-open-'.concat(v.toLowerCase(),'"></span>')}function y(v){return'<span class="fr-close-'.concat(v.toLowerCase(),'"></span>')}function j(v,g){for(var I=v,k=g,E=[],Q=0;Q<I.length;Q++){var x=I[Q].parentNode;I[Q].tagName=="LI"&&x.tagName!=k&&E.indexOf(x)<0&&E.push(x)}for(var te=E.length-1;0<=te;te--){var Ke=h(E[te]);Ke.replaceWith("<".concat(k.toLowerCase()," ").concat(s.node.attributes(Ke.get(0)),">").concat(Ke.html(),"</").concat(k.toLowerCase(),">"))}var q,ge=s.html.defaultTag(),U=null;v.length&&(q=s.opts.direction=="rtl"||h(v[0]).css("direction")=="rtl"?"margin-right":"margin-left");for(var Oe=0;Oe<v.length;Oe++){var J=s.helpers.getPX(h(v[Oe]).css(q))||0,be=0<(U=(v[Oe].style.marginLeft=null)===U?J:U)?"<".concat(g,' style="').concat(q,": ").concat(U,'px ">'):"<".concat(g,">"),Ne="</".concat(g,">");if(v[Oe].tagName=="TD"||v[Oe].tagName=="TH")v[Oe].firstChild||h(v[Oe]).append("".concat(be,"<li>\u200B</li>").concat(Ne));else if(v[Oe].tagName!="LI"){for(J-=U;0<J/s.opts.indentMargin;)be+="</".concat(g,">"),Ne+=Ne,J-=s.opts.indentMargin;var u=function(R){for(var xe=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"next",nt=xe==="next"?R.nextSibling:R.previousSibling;nt;){if(nt.nodeType!==Node.ELEMENT_NODE||nt.tagName!=="SPAN"||!nt.classList.contains("fr-marker"))return!0;nt=xe==="next"?nt.nextSibling:nt.previousSibling}return!1},it=h(v[Oe]),De=it.find("strong");if(ge&&v[Oe].tagName.toLowerCase()==ge){var Vt=s.node.attributes(v[Oe]);if(0<De.length&&s.node.blockParent(De[0])===it[0]){for(var Y=De[0].previousSibling,Ye=De[0].nextSibling,je=!Y&&!Ye,dt=Array.from(it[0].childNodes).every(function(xe){return xe.nodeType===Node.ELEMENT_NODE&&(xe.tagName==="STRONG"||xe.tagName==="BR")||xe.nodeType===Node.TEXT_NODE&&!xe.nodeValue.trim()}),Ae=De.parent();Ae.is("u")||Ae.is("em");)Ae=Ae.parent();var dt=je&&!Ae.is("span")||Ye&&Ye.tagName==="BR"&&!Ye.nextSibling||dt,je=je&&Ae.is("span")&&!u(Ae[0],"next")&&!u(Ae[0],"prev"),Pe=Y&&!u(De[0],"prev"),qe=Ye&&!u(De[0],"next");(dt||je||Pe&&qe||Pe&&!Ye||qe&&!Y)&&(Vt.includes("style=")?Vt=Vt.replace(/style="([^"]*)"/,function(me,R){var xe;
1return R.includes("font-weight:")?(xe=R.replace(/font-weight:\s*[^;]+/,"font-weight: bold"),'style="'.concat(xe,'"')):(xe=R.trim().endsWith(";")?" ":"; ",'style="'.concat(R).concat(xe,'font-weight: bold;"'))}):Vt+=' style="font-weight: bold;"',De.each(function(){this.replaceWith.apply(this,d(this.childNodes))}))}it.replaceWith("".concat(be,"<li").concat(Vt,">").concat(it[0].innerHTML,"</li>").concat(Ne))}else it.parent()[0].tagName!=="STRONG"||u(it[0],"next")||u(it[0],"prev")?De.length!=1||u(De[0],"next")||u(De[0],"prev")?it.wrap("".concat(be,"<li></li>").concat(Ne)):(De[0].outerHTML=De[0].innerHTML,it.wrap("".concat(be,'<li style="font-weight: bold;"></li>').concat(Ne))):(it.unwrap(),it.wrap("".concat(be,'<li style="font-weight: bold;"></li>').concat(Ne)))}}s.clean.lists()}function P(v){for(var g,I=[],k=v.length-1;0<=k;k--)for(g=k-1;0<=g;g--){if(h(v[g]).find(v[k]).length||v[g]==v[k]){h(v[k]).addClass("fr-removed-block-".concat(k)),I.push(k),v.splice(k,1);break}if(h(v[g]).contains(v[k])){h(v[g]).addClass("fr-removed-block-".concat(g)),I.push(g),v.splice(g,1);break}}var E=[],Q=!1,x=function(){var q,ge,U,Oe,J,be=h(v[k]),Ne=v[k].parentNode,u=be.attr("class"),it=be.attr("style");be.is(":first-child")&&(Q=!0,h(Ne.parentNode).removeAttr("start")),be.before(y(Ne.tagName)),Ne.parentNode.tagName=="LI"?(be.is(":last-child")&&(q=be.find("> ul, > ol").last()).length&&q.wrap("<".concat(Ne.tagName,">")),be.before(y("LI")),be.after(a("LI"))):Ne.parentNode.tagName=="OL"?Q||(be.before(y("OL")),be.after(a("OL"))):Ne.parentNode.tagName=="UL"?Q||(be.before(y("UL")),be.after(a("UL"))):(q="",U=ge=!1,it&&(q+=it.trim().replace(/;?$/,";")),it=s.opts.direction==="rtl"||be.css("direction")==="rtl"?"margin-right":"margin-left",(J=s.helpers.getPX(h(Ne).css(it)))&&(h(Ne).attr("style")||"").includes("".concat(it,":"))&&(q+="".concat(it,":").concat(J,"px;")),q=(q=(q=q.replace(/font-weight\s*:\s*bold\s*;?/i,function(){return ge=!0,""})).replace(/font-style\s*:\s*italic\s*;?/i,function(){return U=!0,""})).trim().length?q.trim().replace(/;{2,}/g,";").replace(/;$/,"")+";":"",Oe=function(Vt,Y,Ye){Vt.prepend(a(Ye)),Vt.append(y(Ye)),Y.each(function(){var Ae=h(this);Ae.before(y(Ye)),Ae.prepend(a(Ye)),Ae.append(y(Ye)),Ae.after(a(Ye))})},it=be.find(s.html.blockTagsQuery()),ge&&Oe(be,it,"STRONG"),U&&Oe(be,it,"EM"),s.html.defaultTag()&&be.find(s.html.blockTagsQuery()).length===0&&((J=h(document.createElement(s.html.defaultTag()))).attr(q?{style:q}:null),u&&J.addClass(u),J.append(be.contents()),be[0].innerHTML=J[0].outerHTML),s.node.isEmpty(be.get(0),!0)||be.find(s.html.blockTagsQuery()).length!==0||(Ne.parentNode.tagName=="DIV"&&s.html.defaultTag()?(be.prepend(a(s.html.defaultTag())),be.append(y(s.html.defaultTag()))):be.append("<br>")),be.append(a("LI")),be.prepend(y("LI"))),be.after(a(Ne.tagName)),Ne.parentNode.tagName=="LI"&&(Ne=Ne.parentNode.parentNode),E.indexOf(Ne)<0&&E.push(Ne)};for(k=0;k<v.length;k++)x();var te=function(){var q=h(E[k]),ge=q.html(),U=s.helpers.getPX(q.css("margin-left"))||0;ge=(ge=ge.replace(/<span class="fr-open-([a-z]*)"><\/span>/g,function(Oe,J){return 0<U?"<".concat(J,' style="margin-left:').concat(U,'px;">'):"<".concat(J,">")})).replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>"),q.replaceWith(s.node.openTagString(q.get(0))+ge+s.node.closeTagString(q.get(0)))};for(k=0;k<E.length;k++)te();return s.$el.find("li").filter(function(){if(0<this.children.length)return!1;var Ke,q=(function(U,Oe){var J,be,Ne,u,it=typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(it)return Ne=!(be=!0),{s:function(){it=it.call(U)},n:function(){var De=it.next();return be=De.done,De},e:function(De){Ne=!0,J=De},f:function(){try{be||it.return==null||it.return()}finally{if(Ne)throw J}}};if(Array.isArray(U)||(it=t(U))||Oe)return it&&(U=it),u=0,{s:Oe=function(){},n:function(){return u>=U.length?{done:!0}:{done:!1,value:U[u++]}},e:function(De){throw De},f:Oe};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})(this.childNodes);try{for(q.s();!(Ke=q.n()).done;){var ge=Ke.value;if(ge.nodeType===Node.TEXT_NODE&&ge.textContent.trim()!=="")return!1}}catch(U){q.e(U)}finally{q.f()}return!0}).remove(),s.$el.find("ul:empty, ol:empty").remove(),s.$el.find("strong:empty, em:empty").remove(),s.clean.lists(),s.$el.find("ul:empty, ol:empty").remove(),s.html.wrap(),I}function ne(v,g){var I=h(document.createElement("li"));if(v.childNodes.length)for(var k=v.childNodes[0].attributes,E=0;E<k.length;E++){var Q=k[E];Q.name==="style"&&(I[0].style.cssText+=Q.value)}h(v).prepend(I),h(v).removeAttr("start");for(var x=s.node.contents(g)[0];x&&!s.node.isList(x);){var te=x.nextSibling;I.append(x),x=te}}function ue(v){if(v=="indent"||v=="outdent"){var g=!1,I=s.selection.blocks(!1,!0),k=[],E=I[0].previousSibling||I[0].parentElement;if(v=="outdent"){if(I[0].parentNode.tagName!="UL"&&E.parentNode.tagName!="UL"&&E.parentNode.tagName!="OL"&&E.parentNode.tagName!="LI")return;if(!I[0].previousSibling&&E.parentNode.style.listStyleType=="none"){var Q=E;for(s.selection.save();0<Q.childNodes.length;)Q.parentNode.parentNode.append(Q.childNodes[0]);
1return s.clean.lists(),void s.selection.restore()}}else{if(I[0].parentElement.tagName!="UL"&&I[0].parentElement.tagName!="OL"&&I[0].parentElement.tagName!="LI")return;if(s.node.isBlock(I[0])&&I[0].tagName!=="LI"&&0<h(I[0]).parentsUntil(s.$el,"LI").length&&(I[0]=I[0].parentElement,E=I[0].parentElement),!I[0].previousSibling||I[0].previousSibling.tagName!="LI"){if(E&&["UL","OL"].includes(E.tagName)){var x=E,te=(s.selection.save(),x.tagName=="OL"?document.createElement("ol"):document.createElement("ul"));for(h(te).css("list-style-type",h(x).css("list-style-type"));0<x.childNodes.length;)te.append(x.childNodes[0]);return E=h(document.createElement("li")),E.css("list-style-type","none"),E.append(te),x.append(E.get(0)),s.clean.lists(),void s.selection.restore()}g=!0}}for(var Ke=0;Ke<I.length;Ke++)I[Ke].tagName=="LI"?(g=!0,k.push(I[Ke])):I[Ke].parentNode.tagName=="LI"&&k.indexOf(I[Ke].parentNode)<0&&(g=!0,k.push(I[Ke].parentNode));if(g){if(v=="indent"){var q=k;s.selection.save();for(var ge=!1,U=0;U<q.length;U++){var Oe,J,be,Ne=q[U].previousElementSibling;Ne&&Ne.tagName=="LI"&&!ge?(Oe=h(q[U]).find("> ul, > ol").last().get(0))?(ne(Oe,q[U]),h(Ne).append(h(Oe)),h(q[U]).remove()):((Oe=h(Ne).find("> ul, > ol").last().get(0))?h(Oe):(Oe=h("<".concat(q[U].parentNode.tagName,">")),h(Ne).append(Oe),Oe)).append(h(q[U])):!Ne||Ne.tagName!="OL"&&Ne.tagName!="UL"?(ge=!0,(Oe=q[U].parentNode).tagName!="UL"&&Oe.tagName!="OL"||(be=h(q[U]).find("> ol, > ul"),J=q[U].previousSibling==null,be.length?(ne(be=be.first().get(0),q[U]),J?h(Oe).prepend(h(be)):h(Oe).append(h(be)),h(q[U]).remove()):h(q[U]).wrap("<".concat(Oe.tagName,">")),J&&0<h(Oe).find("> li").length&&h(Oe).attr("start","2"))):(be=h(q[U]).find("> ol, > ul").first().get(0))?(ne(be,q[U]),h(Ne).append(h(be).children()),h(q[U]).remove(),h(be).remove()):h(Ne).append(h(q[U]))}s.clean.lists()}else{var u,it=k;s.selection.save();do{u=P(it),it=[];for(var De=0;De<u.length;De++){var Vt=s.$el.find(".fr-removed-block-".concat(u[De])).first().get(0);h(Vt).removeClass("fr-removed-block-".concat(u[De])),h(Vt).attr("class")==""&&h(Vt).removeAttr("class"),it.push(Vt)}}while(0<u.length)}s.selection.restore()}}}return{_init:function(){s.events.on("commands.after",ue),s.events.on("keydown",function(v){if(v.which==o.KEYCODE.TAB||(v.ctrlKey||v.metaKey)&&v.key==="]"){if(!v.shiftKey&&s.$tb.find('[data-cmd="indent"]').hasClass("fr-disabled"))return v.preventDefault(),v.stopPropagation(),!1;for(var g=s.selection.blocks(),I=[],k=0;k<g.length;k++)g[k].tagName=="LI"?I.push(g[k]):g[k].parentNode.tagName=="LI"&&I.push(g[k].parentNode);return 1<=I.length||I.length&&(s.selection.info(I[0]).atStart||s.node.isEmpty(I[0]))?(v.preventDefault(),v.stopPropagation(),v.shiftKey?s.commands.outdent():s.commands.indent(),!1):void 0}},!0),s.events.on("keydown",function(v){if(v.which==o.KEYCODE.ENTER&&!v.ctrlKey&&!v.metaKey){if(v=s.markers.insert(),!v)return!0;var g=v.parentNode,I=g.tagName==="STRONG",k=g.parentNode,E=k.tagName==="LI";!I||!E||g.previousSibling||g.nextSibling&&(g.nextSibling,g.nextSibling.tagName!=="BR"||g.nextSibling.nextSibling)||(g.outerHTML=g.innerHTML,h(k).css("font-weight","bold")),h(v).remove()}})},format:function(v,g){var I,k=s.selection.blocks(!0),E=1<k.length&&k[k.length-1],Q=s.selection.ranges();for(E&&E.firstChild&&Q.length&&s.node.isEmpty(E)&&!Q[0].endOffset&&Q[0].setEndAfter(E.firstChild,1),s.html.syncInputs(),s.selection.save(),s.browser.safari&&s.helpers.getSafariVersion()<17&&(E=s.selection.ranges(),Q)&&Q[0].endContainer&&E&&E[0].endContainer&&!Q[0].endContainer.isSameNode(E[0].endContainer)&&Q[0].endContainer.previousSibling&&Q[0].endContainer.previousSibling.isSameNode(E[0].endContainer)&&(E=h(E[0].endContainer).find('.fr-marker[data-type="false"]'),h(Q[0].endContainer).append(E[0])),s.html.wrap(!0,!0,!0,!0),s.selection.restore(),k=s.selection.blocks(!0),I=0;I<k.length;I++)k[I].tagName!="LI"&&k[I].parentNode.tagName=="LI"&&(k[I]=k[I].parentNode);if(s.selection.save(),(function(x,te){for(var Ke=!0,q=0;q<x.length;q++){if(x[q].tagName!="LI")return;x[q].parentNode.tagName!=te&&(Ke=!1)}return Ke})(k=k.filter(function(x){return!h(x).closest(".fr-code-snippet").length}
1),v)?g||P(k):j(k,v),s.html.unwrap(),s.selection.restore(),g=g||"default"){for(k=s.selection.blocks(),I=0;I<k.length;I++)k[I].tagName!="LI"&&k[I].parentNode.tagName=="LI"&&(k[I]=k[I].parentNode);for(I=0;I<k.length;I++)k[I].tagName=="LI"&&(h(k[I].parentNode).css("list-style-type",g==="default"?"":g),(h(k[I].parentNode).attr("style")||"").length===0)&&h(k[I].parentNode).removeAttr("style")}},refresh:function(v,g){var I,k=h(s.selection.element());k.get(0)!=s.el&&(I=((I=k.get(0)).tagName=="LI"||!I.firstElementChild||I.firstElementChild.tagName=="LI")&&(I.tagName=="LI"||I.firstElementChild)?I.firstElementChild&&I.firstElementChild.tagName=="LI"?k.get(0).firstChild:k.get(0):k.parents("li").get(0))&&I.parentNode.tagName==g&&s.el.contains(I.parentNode)&&v.addClass("fr-active")}}},o.DefineIcon("formatOLSimple",{NAME:"list-ol",SVG_KEY:"orderedList"}),o.RegisterCommand("formatOLSimple",{title:"Ordered List",type:"button",options:{default:"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(s){this.lists.refresh(s,"OL")},callback:function(s,h){this.lists.format("OL",h)},plugin:"lists"}),o.RegisterCommand("formatUL",{title:"Unordered List",type:"button",hasOptions:function(){return this.opts.listAdvancedTypes},options:{default:"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(s){this.lists.refresh(s,"UL")},callback:function(s,h){this.lists.format("UL",h)},plugin:"lists"}),o.RegisterCommand("formatOL",{title:"Ordered List",hasOptions:function(){return this.opts.listAdvancedTypes},options:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},refresh:function(s){this.lists.refresh(s,"OL")},callback:function(s,h){this.lists.format("OL",h)},plugin:"lists"}),o.DefineIcon("formatUL",{NAME:"list-ul",SVG_KEY:"unorderedList"}),o.DefineIcon("formatOL",{NAME:"list-ol",SVG_KEY:"orderedList"})})});var bo=Ba((hi,mo)=>{"use strict";(function(o,e){typeof hi=="object"&&typeof mo<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(hi,function(o){"use strict";Object.assign(o.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"}),o.PLUGINS.paragraphFormat=function(e){var d=e.$;return{apply:function(t){t=="N"&&(t=e.html.defaultTag()),e.selection.save(),e.html.wrap(!0,!0,!e.opts.paragraphFormat.BLOCKQUOTE,!0,!0),e.selection.restore();var s=e.helpers.selectionBlocks([".fr-code-snippet"]);e.selection.save(),e.$el.find("pre").attr("skip",!0);for(var h,a,y=0;y<s.length;y++)if(s[y].tagName!=t&&!e.node.isList(s[y])){var j,P=d(s[y]);if(s[y].tagName=="LI"){k=I=g=v=ue=ne=void 0;var ne=P,ue=t,v=e.html.defaultTag();if(ue&&ue.toLowerCase()!=v)if(0<ne.find("ul, ol").length)for(var g=d("<"+ue+">"),I=(ne.prepend(g),e.node.contents(ne.get(0))[0]);I&&["UL","OL"].indexOf(I.tagName)<0;){var k=I.nextSibling;g.append(I),I=k}else ne.html("<"+ue+">"+ne.html()+"</"+ue+">")}else s[y].parentNode.tagName=="LI"&&s[y]?(v=P,ue=t,ne=void 0,ne=e.html.defaultTag(),ue&&ue.toLowerCase()!=ne||(ue='div class="fr-temp-div"'),v.replaceWith(d("<"+ue+">").html(v.html()))):0<=["TD","TH"].indexOf(s[y].parentNode.tagName)?(h=P,a=t,j=void 0,j=e.html.defaultTag(),(a=a||'div class="fr-temp-div"'+(e.node.isEmpty(h.get(0),!0)?' data-empty="true"':"")).toLowerCase()==j?(e.node.isEmpty(h.get(0),!0)||h.append("<br/>"),h.replaceWith(h.html())):h.replaceWith(d("<"+a+">").html(h.html()))):(t==="PRE"&&P[0].nextSibling===null&&(j=d("<br>"),P[0].after(j[0])),a=P,((h=(h=t)||'div class="fr-temp-div"'+(e.node.isEmpty(a.get(0),!0)?' data-empty="true"':""))=="H1"||h=="H2"||h=="H3"||h=="H4"||h=="H5")&&-1<e.node.attributes(a.get(0)).indexOf("font-size:")?a.replaceWith(d("<"+h+" "+e.node.attributes(a.get(0)).replace(/font-size:[0-9]+px;?/,"")+">").html(a.html()).removeAttr("data-empty")):a.replaceWith(d("<"+h+" "+e.node.attributes(a.get(0))+">").html(a.html()).removeAttr("data-empty")))}e.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){d(this).prev().append("<br>"+d(this).html()),d(this).remove()}),e.$el.find("pre").removeAttr("skip"),e.html.unwrap(),e.selection.restore(
1)},refreshOnShow:function(t,s){var h,a,y=e.selection.blocks();(y.length?(y=y[0],h="N",a=e.html.defaultTag(),y.tagName.toLowerCase()!=a&&y!=e.el&&(h=y.tagName),s.find('.fr-command[data-param1="'+h+'"]')):s.find('.fr-command[data-param1="N"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(t){var s,h,a;e.opts.paragraphFormatSelection&&((s=e.selection.blocks()).length?(s=s[0],h="N",a=e.html.defaultTag(),s.tagName.toLowerCase()!=a&&s!=e.el&&(h=s.tagName),0<=["LI","TD","TH"].indexOf(h)&&(h="N"),t.find(">span").text(e.language.translate(e.opts.paragraphFormat[h]))):t.find(">span").text(e.language.translate(e.opts.paragraphFormat.N)))}}},o.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(e){return e.opts.paragraphFormatSelection},defaultSelection:function(e){return e.language.translate(e.opts.paragraphDefaultSelection)},displaySelectionWidth:80,html:function(){var e,d='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.paragraphFormat;for(e in t)t.hasOwnProperty(e)&&(this.shortcuts.get("paragraphFormat."+e),d+='<li role="presentation"><'+(e=="N"?this.html.defaultTag()||"DIV":e)+' style="padding: 0 !important; margin: 0 !important; border: 0 !important; background-color: transparent !important; '+(e=="PRE"||e=="N"?"font-size: 15px":"font-weight: bold !important; ")+(e=="H1"?"font-size: 2em !important; ":"")+(e=="H2"?"font-size: 1.5em !important; ":"")+(e=="H3"?"font-size: 1.17em !important; ":"")+(e=="H4"?"font-size: 15px !important;":"")+'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+e+'" title="'+this.language.translate(t[e])+'">'+this.language.translate(t[e])+"</a></"+(e=="N"?this.html.defaultTag()||"DIV":e)+"></li>");return d+="</ul>"},title:"Paragraph Format",callback:function(e,d){this.paragraphFormat.apply(d)},refresh:function(e){this.paragraphFormat.refresh(e)},refreshOnShow:function(e,d){this.paragraphFormat.refreshOnShow(e,d)},plugin:"paragraphFormat"}),o.DefineIcon("paragraphFormat",{NAME:"paragraph",SVG_KEY:"paragraphFormat"})})});var vo=Ba((gi,_o)=>{"use strict";(function(o,e){typeof gi=="object"&&typeof _o<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(gi,function(o){"use strict";Object.assign(o.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"],quickInsertEnabled:!0}),o.QUICK_INSERT_BUTTONS={},o.DefineIcon("quickInsert",{SVG_KEY:"add",template:"svg"}),o.RegisterQuickInsertButton=function(e,d){o.QUICK_INSERT_BUTTONS[e]=Object.assign({undo:!0},d)},o.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var e=this,d=e.$;e.shared.$qi_image_input||(e.shared.$qi_image_input=d(document.createElement("input")).attr("accept","image/"+e.opts.imageAllowedTypes.join(", image/").toLowerCase()).attr("name","quickInsertImage".concat(this.id)).attr("style","display: none;").attr("type","file"),d("body").first().append(e.shared.$qi_image_input),e.events.$on(e.shared.$qi_image_input,"change",function(){var t=d(this).data("inst");this.files&&(t.quickInsert.hide(),t.image.upload(this.files)),d(this).val("")},!0)),e.$qi_image_input=e.shared.$qi_image_input,e.helpers.isMobile()&&e.selection.save(),e.events.disableBlur(),e.$qi_image_input.data("inst",e)[0].click()}}),o.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of the video you want to insert."));e&&this.video.insertByURL(e)}}),o.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of any web content you want to insert."));e&&this.embedly.add(e)}}),o.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),o.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),o.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),o.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),o.PLUGINS.quickInsert=function(e){var d,t,s=e.$,h=!1;function a(g){var I,k,E=g.offset().top-e.$box.offset().top,Q=(e.$iframe&&e.$iframe.offset().left||0)+g.offset().left-g.position().left-4<d.outerWidth()?g.offset().left+d.outerWidth():0-d.outerWidth();e.opts.enter!=o.ENTER_BR?I=(d.outerHeight()-g.outerHeight())/2:(s(document.createElement("span")).html(o.INVISIBLE_SPACE).insertAfter(g),I=(d.outerHeight()-g.next().outerHeight())/2,g.next().remove()),e.opts.iframe&&(k=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),E+=e.$iframe.offset().top+k),d.hasClass("fr-on")&&0<=E&&t.css("top",E-I),0<=E&&E-Math.abs(I)<=e.$box.outerHeight()-g.outerHeight()?(d.hasClass("fr-hidden")&&(d.hasClass("fr-on")&&ne(),d.removeClass("fr-hidden")),d.css("top",E-I)):d.hasClass("fr-visible")&&!e.opts.toolbarInline&&(d.addClass("fr-hidden"),ue()),d.css("left",Q)}function y(g){(!e.markdown||!e.markdown.isEnabled())&&(d||(e.shared.$quick_insert||(e.shared.$quick_insert=s(document.createElement("div")).attr("class","fr-quick-insert").html('<a class="fr-floating-btn" role="button" tabIndex="-1" title="'.concat(e.language.translate("Quick Insert"),'">').concat(e.icon.create("quickInsert"),"</a>"))),d=e.shared.$quick_insert,e.tooltip.bind(e.$box,".fr-quick-insert > a.fr-floating-btn"),e.events.on("destroy",function(){s("body").first().append(d.removeClass("fr-on")),t&&(ue(),s("body").first().append(t.css("left",-9999).css("top",-9999)))},!0),e.events.on("shared.destroy",function(){d.html("").removeData().remove(),d=null,t&&(t.html("").removeData().remove(),t=null)},!0),e.events.on("commands.before",P),e.events.on("commands.after",function(){e.popups.areVisible()||j()}),e.events.bindClick(e.$box,".fr-quick-insert > a",ne),e.events.bindClick(e.$box,".fr-qi-helper > a.fr-btn",function(I){var k=s(I.currentTarget).data("cmd");if(e.events.trigger("quickInsert.commands.before",[k])===!1)return!1;o.QUICK_INSERT_BUTTONS[k].callback.apply(e,[I.currentTarget]),o.QUICK_INSERT_BUTTONS[k].undo&&e.undo.saveStep(),e.events.trigger("quickInsert.commands.after",[k]),e.quickInsert.hide()}),e.events.$on(e.$wp,"scroll",v),e.events.$on(e.$tb,"transitionend",".fr-more-toolbar",v)),d.hasClass("fr-on")&&ue(),e.$box.append(d),a(g),d.data("tag",g),d.addClass("fr-visible"))}function j(){var g,I,k;
1e.core.hasFocus()&&(g=e.selection.element(),e.opts.enter==o.ENTER_BR||e.node.isBlock(g)||(g=e.node.blockParent(g)),e.opts.enter!=o.ENTER_BR||e.node.isBlock(g)||(I=e.node.deepestParent(g))&&(g=I),k=function(){return e.opts.enter==o.ENTER_BR&&(g.tagName=="BR"&&(!g.previousSibling||g.previousSibling.tagName=="BR"||e.node.isBlock(g.previousSibling))||e.node.isEmpty(g)&&(!g.previousSibling||g.previousSibling.tagName=="BR"||e.node.isBlock(g.previousSibling))&&(!g.nextSibling||g.nextSibling.tagName=="BR"||e.node.isBlock(g.nextSibling)))},g&&((function(){return e.opts.enter!=o.ENTER_BR&&e.node.isEmpty(g)&&0<=e.opts.quickInsertTags.indexOf(g.tagName.toLowerCase())})()||k())?d&&d.data("tag").is(s(g))&&d.hasClass("fr-on")?ue():e.selection.isCollapsed()&&y(s(g)):P())}function P(){d&&!h&&(d.hasClass("fr-on")&&ue(),d.removeClass("fr-visible fr-on"),d.css("left",-9999).css("top",-9999))}function ne(g){if(g&&g.preventDefault(),d.hasClass("fr-on")&&!d.hasClass("fr-hidden"))ue();else{if(!e.shared.$qi_helper){for(var I=e.opts.quickInsertButtons,k='<div class="fr-qi-helper">',E=0,Q=0;Q<I.length;Q++){var x=o.QUICK_INSERT_BUTTONS[I[Q]];x&&(!x.requiredPlugin||o.PLUGINS[x.requiredPlugin]&&0<=e.opts.pluginsEnabled.indexOf(x.requiredPlugin))&&(k+='<a class="fr-btn fr-floating-btn" role="button" title="'.concat(e.language.translate(x.title),'" tabIndex="-1" data-cmd="').concat(I[Q],'" style="transition-delay: ').concat(.025*E++,'s;">').concat(e.icon.create(x.icon),"</a>"))}e.shared.$qi_helper=s(k+="</div>"),e.tooltip.bind(e.shared.$qi_helper,"a.fr-btn"),e.events.$on(e.shared.$qi_helper,"mousedown",function(te){te.preventDefault()},!0)}t=e.shared.$qi_helper,e.$box.append(t),h=!0,setTimeout(function(){h=!1,t.css("top",parseFloat(d.css("top"))),t.css("left",parseFloat(d.css("left"))+d.outerWidth()),t.find("a").addClass("fr-size-1"),d.addClass("fr-on")},10)}}function ue(){var g=e.$box.find(".fr-qi-helper");if(g.length){for(var I=g.find("a"),k=0;k<I.length;k++)(function(E){setTimeout(function(){g.children().eq(I.length-1-E).removeClass("fr-size-1")},25*E)})(k);setTimeout(function(){g.css("left",-9999),d&&!d.hasClass("fr-hidden")&&d.removeClass("fr-on")},25*k)}}function v(){d.hasClass("fr-visible")&&a(d.data("tag"))}return{_init:function(){if(!e.$wp||!e.opts.quickInsertEnabled)return!1;e.popups.onShow("image.edit",P),e.events.on("mouseup",j),e.helpers.isMobile()&&e.events.$on(s(e.o_doc),"selectionchange",j),e.events.on("blur",P),e.events.on("keyup",j),e.events.on("keydown",function(){setTimeout(function(){j()},0)})},hide:P}}})});var wo=Ba((mi,yo)=>{"use strict";(function(o,e){typeof mi=="object"&&typeof yo<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(mi,function(o){"use strict";function e(t,s){(s==null||s>t.length)&&(s=t.length);for(var h=0,a=Array(s);h<s;h++)a[h]=t[h];return a}function d(t){return(function(s){if(Array.isArray(s))return e(s)})(t)||(function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)})(t)||(function(s,h){{var a;if(s)return typeof s=="string"?e(s,h):(a=(a={}.toString.call(s).slice(8,-1))==="Object"&&s.constructor?s.constructor.name:a)==="Map"||a==="Set"?Array.from(s):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(s,h):void 0}})(t)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}Object.assign(o.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]","table.cellProperties":"[_CELL_PROPERTIES_FORM_][_BUTTONS_]","table.tableProperties":"[_TABLE_PROPERTIES_FORM_][_BUTTONS_]"}),Object.assign(o.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableFooter","tableRemove","tableRows","tableColumns","tableProperties","-","tableCells","tableCellProperties","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableDefaultWidth:"50%",tableDefaultAlign:"center",tableDefaultHeight:"100px",tableDefaultBGColor:"",tableDefaultBorderColor:"",tableDefaultBorderWidth:"",tableDefaultBorderStyle:"",tableBorderStyle:["solid","dashed","dotted","double","groove","ridge","inset","outset"],tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr
1-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,keepTextFormatOnTable:!1,tableInsertHelperOffset:15,proportionalTableResize:!0,enableTableSelection:!0}),o.PLUGINS.table=function(t){var s,h,a,y,j,P,ne,ue,v=t.$;function g(){var b,S=Y();S&&(t.popups.get("table.edit")||Q())&&(t.popups.setContainer("table.edit",t.$sc),b=(S=me(S)).left+(S.right-S.left)/2,t.popups.show("table.edit",b,S.bottom,S.bottom-S.top,!0),t.edit.isDisabled())&&(t.$el.removeClass("fr-no-selection"),t.edit.on(),t.button.bulkRefresh(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell").last().get(0)),t.selection.restore())}function I(){ht().length===0&&t.toolbar.enable()}function k(b){return b?(t.popups.onHide("table.insert",function(){t.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseover")}),!0):(b="",b={buttons:b=0<t.opts.tableInsertButtons.length?'<div class="fr-buttons fr-tabs">'.concat(t.button.buildList(t.opts.tableInsertButtons),"</div>"):b,rows_columns:(function(){for(var S='<div class="fr-table-size"><div class="fr-table-size-info">1 × 1</div><div class="fr-select-table-size">',C=1;C<=t.opts.tableInsertMaxSize;C++){for(var B=1;B<=t.opts.tableInsertMaxSize;B++){var V="inline-block",ie=(2<C&&!t.helpers.isMobile()&&(V="none"),"fr-table-cell ");C==1&&B==1&&(ie+=" hover"),S+='<span class="fr-command '.concat(ie,'" tabIndex="-1" data-cmd="tableInsert" data-row="').concat(C,'" data-col="').concat(B,'" data-param1="').concat(C,'" data-param2="').concat(B,'" style="display: ').concat(V,';" role="button"><span></span><span class="fr-sr-only">').concat(C," × ").concat(B," </span></span>")}S+='<div class="new-line"></div>'}return S+="</div></div>"})()},b=t.popups.create("table.insert",b),t.events.$on(b,"mouseover",".fr-table-size .fr-select-table-size .fr-table-cell",function(S){E(v(S.currentTarget))},!0),t.events.$on(b,"focus","[tabIndex]",function(S){E(v(S.currentTarget))}),t.events.on("popup.tab",function(S){var C,B,V,ie,pe,he=v(S.currentTarget);return!t.popups.isVisible("table.insert")||!he.is("span, a")||(C=S.which,o.KEYCODE.ARROW_UP==C||o.KEYCODE.ARROW_DOWN==C||o.KEYCODE.ARROW_LEFT==C||o.KEYCODE.ARROW_RIGHT==C?he.is("span.fr-table-cell")&&(ie=(pe=(B=he.parent().find("span.fr-table-cell")).index(he))%(V=t.opts.tableInsertMaxSize),pe=Math.floor(pe/V),o.KEYCODE.ARROW_UP==C?pe=Math.max(0,pe-1):o.KEYCODE.ARROW_DOWN==C?pe=Math.min(t.opts.tableInsertMaxSize-1,pe+1):o.KEYCODE.ARROW_LEFT==C?ie=Math.max(0,ie-1):o.KEYCODE.ARROW_RIGHT==C&&(ie=Math.min(t.opts.tableInsertMaxSize-1,ie+1)),E(pe=v(B.get(pe*V+ie))),t.events.disableBlur(),pe.focus(),V=!1):o.KEYCODE.ENTER==C&&(t.button.exec(he),V=!1),V===!1&&(S.preventDefault(),S.stopPropagation()),V)},!0),b)}function E(b){var S=b.data("row"),C=(S!==null&&(S=parseInt(S)),b.data("col")),B=(C!==null&&(C=parseInt(C)),b.parent());B.siblings(".fr-table-size-info").html("".concat(S," × ").concat(C)),B.find("> span").removeClass("hover fr-active-item");for(var V=1;V<=t.opts.tableInsertMaxSize;V++)for(var ie=0;ie<=t.opts.tableInsertMaxSize;ie++){var pe=B.find('> span[data-row="'.concat(V,'"][data-col="').concat(ie,'"]'));V<=S&&ie<=C?pe.addClass("hover"):V<=S+1||V<=2&&!t.helpers.isMobile()?pe.css("display","inline-block"):2<V&&!t.helpers.isMobile()&&pe.css("display","none")}b.addClass("fr-active-item")}function Q(b){return b?(t.popups.onHide("table.edit",I),!0):(b="",0<t.opts.tableEditButtons.length&&(b='<div class="fr-buttons">'.concat(t.button.buildList(t.opts.tableEditButtons),"</div>"),b=t.popups.create("table.edit",{buttons:b}),t.events.$on(t.$wp,"scroll.table-edit",function(){t.popups.isVisible("table.edit")&&g()}),b))}function x(b,S,C){b=v(b),S=v(S),C&&C!=="REMOVE"&&C!=="transparent"&&C!=="rgba(0, 0, 0, 0)"?(b.css("background-color",C),S.css("display","none")):(b.css("background-color","transparent"),S.css("display","block"))}function te(){var b,S=t.popups.get("table.cellProperties");return S||(b={cell_properties_form:'\n <div class="fr-cell-properties-form">\n <div class="fr-cell-properties-section">\n <label>
1'.concat(t.language.translate("Background"),'</label>\n <div class="fr-cell-bg-container">\n <input type="text" id="fr-cell-bg" class="fr-input" tabIndex="1" title="').concat(t.language.translate("Color"),'" placeholder="').concat(t.language.translate("Color"),'">\n <button type="button" title="').concat(t.language.translate("Color"),'" class="fr-command fr-btn-cell-bg-color" tabIndex="2" data-param1="cell" data-cmd="openColorPicker">\n <div class="fr-color-preview">\n <div class="fr-color-preview-indicator"></div>\n </div>\n </button>\n </div>\n </div>\n \n <div class="fr-cell-dimensions-container">\n <div class="fr-cell-dimension-section">\n <label>').concat(t.language.translate("Dimensions"),'</label>\n <div class="fr-dimension-inputs">\n <input type="text" id="fr-cell-width" tabIndex="3" title="').concat(t.language.translate("Width"),'" placeholder="').concat(t.language.translate("Width"),'">\n <span class="fr-dimension-separator">\xD7</span>\n <input type="text" id="fr-cell-height" tabIndex="4" title="').concat(t.language.translate("Height"),'" placeholder="').concat(t.language.translate("Height"),'">\n <label for="fr-cell-height"></label>\n </div>\n </div>\n \n <div class="fr-cell-padding-section">\n <label>').concat(t.language.translate("Padding"),'</label>\n <div>\n <input type="text" id="fr-cell-padding" tabIndex="5" title="').concat(t.language.translate("Size"),'" placeholder="').concat(t.language.translate("Size"),'">\n <label for="fr-cell-padding"></label>\n </div>\n </div>\n </div>\n \n <div class="fr-cell-properties-buttons">\n <button type="button" class="fr-command fr-enable-accessibility fr-cancel-button" tabIndex="6" data-cmd="onCancel">').concat(t.language.translate("Cancel"),'</button>\n <button type="button" class="fr-command fr-enable-accessibility fr-save-button" tabIndex="7" data-cmd="applyCellProperties">').concat(t.language.translate("Save"),"</button>\n </div>\n </div>"),buttons:""},S=t.popups.create("table.cellProperties",b),Ke(),t.events.$on(S,"input","#fr-cell-bg",function(){S.data("bg-modified",!0)}),t.events.$on(S,"input","#fr-cell-width",function(){S.data("width-modified",!0)}),t.events.$on(S,"input","#fr-cell-height",function(){S.data("height-modified",!0)}),t.events.$on(S,"input","#fr-cell-padding",function(){S.data("padding-modified",!0)})),S}function Ke(){var b=t.popups.get("table.cellProperties");b&&(b.data("bg-modified",!1),b.data("width-modified",!1),b.data("height-modified",!1),b.data("padding-modified",!1))}function q(b){var S,C,B,V,ie,pe=t.popups.get("table.colors").data("type");pe==="table"?(S=(B=t.popups.get("table.tableProperties")).find(".fr-color-preview"),C=B.find(".fr-color-preview-indicator"),B=B.find("#fr-table-bg")):pe==="cell"?(S=(V=t.popups.get("table.cellProperties")).find(".fr-color-preview"),C=V.find(".fr-color-preview-indicator"),B=V.find("#fr-cell-bg"),V=t.popups.get("table.cellProperties")):pe==="border"&&(S=(ie=t.popups.get("table.tableProperties")).find(".fr-border-color-preview"),C=ie.find(".fr-border-color-preview-indicator"),B=ie.find("#fr-table-border-color")),typeof b=="string"&&(t.helpers.isRGBColor(b)&&(b=t.helpers.RGBToHex(b).toUpperCase()),t.helpers.isValidHexColor(b)||b==="transparent"||b==="")&&(v(B).val(b),v(B).focus(),pe==="cell"&&v(V).data("bg-modified",!0),x(S,C,b))}function ge(C){var S=t.doc.createRange(),C=C.get(0).querySelector("td, th"),C=(S.setStart(C,0),S.collapse(!0),t.selection.get());C.removeAllRanges(),C.addRange(S)}function U(b){var S={startTag:"",closeTag:""};return{startTag:(S=t.opts.keepTextFormatOnTable?Oe((function(C){for(var B=new Set,V=C.textContent,ie=0,pe=[C.firstChild];0<pe.length;){var he=pe.pop();if(he&&(B.has(he)||(ie===0&&V!==he.textContent&&(V=he.textContent,ie++),B.add(he)),he.hasChildNodes()))for(var ee=0;ee<he.childNodes.length;){if(he.childNodes[ee].nodeType===3)return d(B);if(he.childNodes[ee].textContent){if(ie===0&&he.childNodes[ee].textContent!==V){V=he.childNodes[ee].textContent,pe.push(he.childNodes[ee]),ie++;break}he.childNodes[ee].textContent===V&&pe.push(he.childNodes[ee])}ee++}}return d(B)})(b).reverse()):S).startTag,closeTag:S.closeTag}}function Oe(b){var S="",C="",B=["br","#text","#comment","font"];if(0<b.length)for(var V=b.length-1;0<=V;
1V--){var ie=b[V],pe=t.node.isBlock(ie),he=B.indexOf(ie.nodeName.toLowerCase());if(!pe&&he<0){var ee=ie.style,n="";if(ee&&ee.length){for(var l=0;l<ee.length;l++)n+=ee[l]+": "+ee[ee[l]].replace(/"/gi,"")+"; ";n=n.trim()}S+=n?"<"+ie.nodeName.toLowerCase()+' style="'+n+'">':"<"+ie.nodeName.toLowerCase()+">",C="</"+ie.nodeName.toLowerCase()+">"+C}}return{startTag:S,closeTag:C}}function J(){var b=yt(),S=ht(),C=0<S.length,B=0<b.length;(C||B)&&(C&&(t.selection.setBefore(S[0])||t.selection.setAfter(S[0]),t.selection.restore(),t.popups.hide("table.edit")),ge(b),t.undo.saveStep(),je(),b.remove(),t.$el.focus())}function be(b){var S=yt();if(0<S.length&&!(0<t.$el.find("thead .fr-selected-cell").length&&b=="above"||0<t.$el.find("tfoot td.fr-selected-cell").length&&b=="below")){var C=Y(),B=qe(C);if(B!=null){for(var V,ie,pe=b=="above"?B.min_i:B.max_i,he="<tr>",ee=0;ee<C[pe].length;ee++)b=="below"&&pe<C.length-1&&C[pe][ee]==C[pe+1][ee]||b=="above"&&0<pe&&C[pe][ee]==C[pe-1][ee]?(ee===0||0<ee&&C[pe][ee]!=C[pe][ee-1])&&(V=v(C[pe][ee])).attr("rowspan",parseInt(V.attr("rowspan"),10)+1):(V=v(C[pe][ee])).attr("tagName").toUpperCase()=="TH"?he+='<th style="'+V.attr("style")+'" ><br></th>':(ie=U(C[pe][ee]),he+='<td style="'+V.attr("style")+'" >'+ie.startTag+"<br>"+ie.closeTag+"</td>");he+="</tr>",B=0<t.$el.find("thead .fr-selected-cell").length&&b=="below"||0<t.$el.find("tfoot td.fr-selected-cell").length&&b=="above"?v(S.find("tbody").not(S.find("> table tbody"))):(B=(B=v(S.find("tr").not(S.find("> table tr")))).filter(function(){return v(this).closest("table")[0]===S[0]}),v(B.get(pe))),b=="below"?B.attr("tagName")=="TBODY"?B.prepend(he):B[0].parentNode&&B[0].insertAdjacentHTML("afterend",he):b=="above"&&(B.attr("tagName")=="TBODY"?B.append(he):B.before(he),t.popups.isVisible("table.edit"))&&g()}}}function Ne(b,S,C){var B,V,ie,pe,he,ee=0,n=Y(C);if(b<(S=Math.min(S,n[0].length-1))){for(V=b;V<=S;V++)if(!(b<V&&n[0][V]==n[0][V-1])&&1<(pe=Math.min(parseInt(n[0][V].getAttribute("colspan"),10)||1,S-b+1))&&n[0][V]==n[0][V+1]){for(ee=pe-1,B=1;B<n.length;B++)if(n[B][V]!=n[B-1][V]){for(ie=V;ie<V+pe;ie++)if(n[B][ie]!==void 0){if(1<(he=parseInt(n[B][ie].getAttribute("colspan"),10)||1)&&n[B][ie]==n[B][ie+1])ie+=ee=Math.min(ee,he-1);else if(!(ee=Math.max(0,ee-1)))break}if(!ee)break}}}ee&&it(n,ee,"colspan",0,n.length-1,b,S)}function u(b,S,C){var B,V,ie,pe,he,ee=0,n=Y(C);if(b<(S=Math.min(S,n.length-1))){for(B=b;B<=S;B++)if(!(b<B&&n[B][0]==n[B-1][0])&&n[B][0]!==void 0&&1<(pe=Math.min(parseInt(n[B][0].getAttribute("rowspan"),10)||1,S-b+1))&&n[B][0]==n[B+1][0]){for(ee=pe-1,V=1;V<n[0].length;V++)if(n[B][V]!=n[B][V-1]){for(ie=B;ie<B+pe;ie++)if(n[ie][V]!==void 0){if(1<(he=parseInt(n[ie][V].getAttribute("rowspan"),10)||1)&&n[ie][V]==n[ie+1][V])ie+=ee=Math.min(ee,he-1);else if(!(ee=Math.max(0,ee-1)))break}if(!ee)break}}}ee&&it(n,ee,"rowspan",b,S,0,n[0].length-1)}function it(b,S,C,B,V,ie,pe){for(var he,ee,n=B;n<=V;n++)for(he=ie;he<=pe;he++)B<n&&b[n][he]==b[n-1][he]||ie<he&&b[n][he]==b[n][he-1]||b[n][he]!==void 0&&1<(ee=parseInt(b[n][he].getAttribute(C),10)||1)&&(1<ee-S?b[n][he].setAttribute(C,ee-S):b[n][he].removeAttribute(C))}function De(b,S,C,B,V){u(b,S,V),Ne(C,B,V)}function Vt(b){b.style.removeProperty("border"),b.style.removeProperty("border-top"),b.style.removeProperty("border-bottom"),b.style.removeProperty("border-left"),b.style.removeProperty("border-right")}function Y(b){var S=[];if(b=(b=b||null)==null&&0<ht().length?yt():b){if(!b.find("tr").html().match(/xl[0-9]+/gi)){for(var C=b.find("tr:empty"),B=C.length-1;0<=B;B--)v(C[B]).remove();C.length&&b.find("td[rowspan]").each(function(){var V=v(this),ie=parseInt(V.attr("rowspan"),10)-C.length;1<ie?V.attr("rowspan",ie):V.removeAttr("rowspan")})}b.find("tr").not(b.find("> table tr")).filter(function(){return v(this).closest("table")[0]===b[0]}).each(function(V,pe){var pe=v(pe),he=0;pe.find("> th, > td").each(function(ee,n){for(var l=v(n),_=parseInt(l.attr("colspan"),10)||1,z=parseInt(l.attr("rowspan"),10)||1,_e=V;_e<V+z;_e++)for(var Be=he;Be<he+_;Be++)S[_e]||(S[_e]=[]),S[_e][Be]?he++:S[_e][Be]=n;he+=_})})}return S}function Ye(b,S){for(var C=0;C<S.length;C++)for(var B=0;B<S[C].length;B++)if(S[C][B]==b)return{row:C,col:B}}function Ae(b,S,C){for(var B=b+1,V=S+1;B<C.length;){if(C[B][S]!=C[b][S]){B--;break}B++}for(B==C.length&&B--;V<C[b].length;){if(C[b][V]!=C[b][S]){V--;break}V++}return V==C[b].length&&V--,{row:B,col:V}}function dt(){t.el.querySelector(".fr-cell-fixed")&&t.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed"),t.el.querySelector(".fr-cell-handler")&&t.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function je(){var b=t.$el.find(".fr-selected-cell");0<b.length&&b.each(function(){var S=v(this);S.removeClass("fr-selected-cell"),S.attr("class")===""&&S.removeAttr("class")}),dt()}function Pe(){t.events.disableBlur(),t.selection.clear(),t.$el.addClass("fr-no-selection"),t.$el.blur(),t.events.enableBlur()}function qe(b){var S=t.$el.find(".fr-selected-cell");if(0<S.length){for(var ie=b.length,pe=0,he=b[0].length,ee=0,C=0;C<S.length;C++)var B=Ye(S[C],b),V=Ae(B.row,B.col,b),ie=Math.min(B.row,ie),pe=Math.max(V.row,pe),he=Math.min(B.col,he),ee=Math.max(V.col,ee);return{min_i:ie,max_i:pe,min_j:he,max_j:ee}}return null}function me(b){var S,C,B=qe(b);if(B!=null)return S=v(b[B.min_i][B.min_j]),C=v(b[B.min_i][B.max_j]),B=v(b[B.max_i][B.min_j]),{left:S.length&&S.offset().left,right:C.length&&C.offset().left+C.outerWidth(),top:S.length&&S.offset().top,bottom:B.length&&B.offset().top+B.outerHeight()}}function R(b,S){if(v(b).is(S))je(),v(b).addClass("fr-selected-cell");else{Pe(),t.edit.off();var C=Y(),B=Ye(b,C),V=Ye(S,C);if(B&&V){var ie=(function ee(n,l,_,z,_e){for(var Be,Te,et,St=n,ot=l,ct=_,Ct=z,jt=St;jt<=ot;jt++)(1<(parseInt(v(_e[jt][ct]).attr("rowspan"),10)||1)||1<(parseInt(v(_e[jt][ct]).attr("colspan"),10)||1))&&(et=Ae((Te=Ye(_e[jt][ct],_e)).row,Te.col,_e),St=Math.min(Te.row,St),ot=Math.max(et.row,ot),ct=Math.min(Te.col,ct),Ct=Math.max(et.col,Ct)),(1<(parseInt(v(_e[jt][Ct]).attr("rowspan"),10)||1)||1<(parseInt(v(_e[jt][Ct]).attr("colspan"),10)||1))&&(et=Ae((Te=Ye(_e[jt][Ct],_e)).row,Te.col,_e),St=Math.min(Te.row,St),ot=Math.max(et.row,ot),ct=Math.min(Te.col,ct),Ct=Math.max(et.col,Ct));for(Be=ct;Be<=Ct;Be++)(1<(parseInt(v(_e[St][Be]).attr("rowspan"),10)||1)||1<(parseInt(v(_e[St][Be]).attr("colspan"),10)||1))&&(et=Ae((Te=Ye(_e[St][Be],_e)).row,Te.col,_e),St=Math.min(Te.row,St),ot=Math.max(et.row,ot),ct=Math.min(Te.col,ct),Ct=Math.max(et.col,Ct)),(1<(parseInt(v(_e[ot][Be]).attr("rowspan"),10)||1)||1<(parseInt(v(_e[ot][Be]).attr("colspan"),10)||1))&&(et=Ae((Te=Ye(_e[ot][Be],_e)).row,Te.col,_e),St=Math.min(Te.row,St),ot=Math.max(et.row,ot),ct=Math.min(Te.col,ct),Ct=Math.max(et.col,Ct));return St==n&&ot==l&&ct==_&&Ct==z?{min_i:n,max_i:l,min_j:_,max_j:z}:ee(St,ot,ct,Ct,_e)})(Math.min(B.row,V.row),Math.max(B.row,V.row),Math.min(B.col,V.col),Math.max(B.col,V.col),C);je(),b.classList.add("fr-cell-fixed"),S.classList.add("fr-cell-handler");for(var pe=ie.min_i;pe<=ie.max_i;pe++)for(var he=ie.min_j;he<=ie.max_j;he++)v(b).closest("table").is(v(C[pe][he]).closest("table"))&&v(C[pe][he]).addClass("fr-selected-cell")}}}function xe(b){var S=null,C=v(b.target);return b.target.tagName=="TD"||b.target.tagName=="TH"?S=b.target:0<C.closest("th",C.closest("thead")[0]).length?S=C.closest("th",C.closest("thead")[0]).get(0):0<C.closest("td",C.closest("tr")[0]).length&&(S=C.closest("td",C.closest("tr")[0]).get(0)),t.$el.html.toString().search(S)===-1?null:S}function nt(){je(),t.popups.hide("table.edit")}function ut(b){var S,C,B=xe(b);if(v(B).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable")=="false")return!0;0<ht().length&&!B&&nt(),t.edit.isDisabled()&&!t.popups.isVisible("table.edit")||(S=!1,b.which==1&&v(B).hasClass("fr-selected-cell")&&(v(B).removeClass("fr-selected-cell"),S=!0),b.which!=1||b.which==1&&t.helpers.isMac()&&b.ctrlKey?(b.which==3||b.which==1&&t.helpers.isMac()&&b.ctrlKey)&&B&&nt():(y=!0,B&&(0<ht().length&&!b.shiftKey&&nt(),b.stopPropagation(),t.events.trigger("image.hideResizer"),t.events.trigger("video.hideResizer"),a=!0,C=B.tagName.toLowerCase(),b.shiftKey&&0<t.$el.find("".concat(C,".fr-selected-cell")).length?v(t.$el.find("".concat(C,".fr-selected-cell")).closest("table")).is(v(B).closest("table"))?R(j,B):Pe():((t.keys.ctrlKey(b)||b.shiftKey)&&b.currentTarget.tagName==="TD"&&(1<ht().length||v(B).find(t.selection.element
1()).length===0&&!v(B).is(t.selection.element()))&&Pe(),j=B,0<t.opts.tableEditButtons.length&&!S&&R(j,j)))))}function ke(b){var S,C,B,V,ie,pe,he,ee,n,l,_=t.popups.areVisible();return!(t.edit.isDisabled()||!_||_.hasClass("fr-do-not-hide"))||(b.target===document?null:(_=xe(b),ht().length===1&&_===null&&(t.toolbar.enable(),je()),(ht().length===1&&_&&_.tagName!=="TD"&&_.tagName!=="TH"||!a&&!t.$tb.is(b.target)&&!t.$tb.is(v(b.target).closest(".fr-toolbar")))&&(t.toolbar.enable(),setTimeout(function(){je()},100)),(b.target.tagName==="BODY"||b.target.tagName==="HTML")&&!_&&0<ht().length&&t.toolbar.enable(),void(b.which!=1||b.which==1&&t.helpers.isMac()&&b.ctrlKey||(y=!1,a&&(a=!1,xe(b)||ht().length!=1?0<ht().length?t.selection.isCollapsed()?(g(),t.toolbar.enable()):(je(),t.edit.on()):ht().length||(t.$el.removeClass("fr-no-selection"),t.edit.on()):je()),ne&&(ne=!1,s.removeClass("fr-moving"),t.$el.removeClass("fr-no-selection"),t.edit.on(),s.hasClass("fr-table-col-resizer")?(_=parseFloat(s.css("left"))+t.opts.tableResizerOffset+t.$wp.offset().left,t.opts.iframe&&(_-=t.$iframe.offset().left),s.data("release-position",_),s.removeData("max-left"),s.removeData("max-right")):(b=parseFloat(s.css("top")),s.data("release-position",b),s.removeData("max-top"),s.removeData("max-bottom")),_=s.data("origin"),b=s.data("release-position"),_!==b&&(l=s.data("first"),S=s.data("second"),C=s.data("table"),he=C.outerWidth(),t.undo.canDo()||t.undo.saveStep(),s.hasClass("fr-table-col-resizer")?(ee=Y(C),B=ee[0]?ee[0].length:0,B=fa(C,B),(l==-1||S==-1)&&t.opts.proportionalTableResize||(ee=(function(z,_e,Be){for(var Te=_e[0]?_e[0].length:0,et=z.outerWidth(),St=[],ot=[],ct=Be.find("col"),Ct=0;Ct<Te;Ct++){var jt=ct.eq(Ct),va=void 0,sa=parseFloat(jt.attr("width")||jt.css("width"));va=sa&&!isNaN(sa)?(jt.attr("width")||"").includes("%")||(jt.css("width")||"").includes("%")?sa/100*et:sa:v(_e[0][Ct]).outerWidth(),St[Ct]=va,ot[Ct]=va/et*100}return{currentWidths:St,currentPercentages:ot}})(C,ee,B),n=ee.currentWidths,ie=d(ee=ee.currentPercentages),V=(b-_)/he*100,t.opts.proportionalTableResize?(n=(ee[l]*(n[l]+b-_)/n[l]).toFixed(4),ee=(ee[l]+ee[S]-n).toFixed(4),ie[l]=+n,ie[S]=+ee):(ie[l]+=V,ie[S]-=V,ie[l]<1&&(n=1-ie[l],ie[l]=1,ie[S]-=n),ie[S]<1&&(ee=1-ie[S],ie[S]=1,ie[l]-=ee)),ua(B,ie)),V=B.find("col"),n=l==-1&&S==0,ee=l==V.length-1&&S==-1,(n||ee)&&(ie=C.parent(),B=parseFloat(ie.css("padding-left")),V=parseFloat(ie.css("padding-right")),n=B+V,ee=he/(ie.width()-n)*100,t.opts.direction=="rtl"&&S===0||t.opts.direction!="rtl"&&S!==0?pe=(he+b-_)/he*ee:(t.opts.direction=="rtl"&&S!==0||t.opts.direction!="rtl"&&S===0)&&(pe=(he-b+_)/he*ee),C.css("width","".concat(Math.round(pe).toFixed(4),"%")))):(B=C.find("tr"),V=Math.round(b-_),ie=C.height(),l!=-1&&S!=-1?(n=B.eq(l),he=n.outerHeight(),ee=Math.max(he+V,t.opts.tableResizingLimit),C.css("height",""),n.css("height",ee+"px"),C.css("height",C.height()+"px")):(pe=l==-1&&S==0,t.opts.proportionalTableResize?qa(C,(pe?-V:V)+ie):(C.css("height",""),pe?(b=B.eq(0),_=b.outerHeight(),he=Math.max(_-V,t.opts.tableResizingLimit),b.css("height",he+"px")):(ee=B.eq(B.length-1),n=ee.outerHeight(),l=Math.max(n+V,t.opts.tableResizingLimit),ee.css("height",l+"px")),C.css("height",C.height()+"px"))),t.opts.iframe&&t.$iframe.height(t.iframe_document.scrollingElement.offsetHeight)),t.selection.restore(),t.undo.saveStep(),t.events.trigger("table.resized",[C.get(0)])),s.removeData("origin"),s.removeData("release-position"),s.removeData("first"),s.removeData("second"),s.removeData("table"),ft())))))}function pt(b){(v(b.currentTarget).is(v(b.originalEvent.relatedTarget))||b.currentTarget.contains(b.originalEvent.relatedTarget)||b.originalEvent.relatedTarget&&b.originalEvent.relatedTarget.contains(b.currentTarget))&&!b.currentTarget.querySelector("input, textarea")||(t.events.$on(v("input, textarea"),"click",Pt),a===!0&&0<t.opts.tableEditButtons.length&&(v(b.currentTarget).closest("table").is(yt())?R(j,b.currentTarget):b.currentTarget.tagName!=="TD"&&b.currentTarget.tagName!=="TH"&&Pe()))}function Bt(b,S,C,B){for(var V,ie=S;ie!=t.el&&ie.tagName!="TD"&&ie.tagName!="TH"&&(B=="up"?V=ie.previousElementSibling:B=="down"&&(V=ie.nextElementSibling),!V);)ie=ie.parentNode;if(ie.tagName=="TD"||ie.tagName=="TH"){for(var pe,S=ie,he=B,ee=S;ee&&ee.tagName!="TABLE"&&ee.parentNode!=t.el;)ee=ee.parentNode;ee&&ee.tagName=="TABLE"&&(pe=Y(v(ee)),he=="up"?Dt(Ye(S,pe),ee,pe):he=="down"&&Et(Ye(S,pe),ee,pe))}
1else V&&(B=="up"&&t.selection.setAtEnd(V),B=="down")&&t.selection.setAtStart(V)}function Dt(b,S,C){0<v(".tribute-container").length&&v(".tribute-container").css("display")!="none"||(0<b.row?t.selection.setAtEnd(C[b.row-1][b.col]):Bt(0,S,0,"up"))}function Et(b,S,C){var B;0<v(".tribute-container").length&&v(".tribute-container").css("display")!="none"||(B=parseInt(C[b.row][b.col].getAttribute("rowspan"),10)||1,b.row<C.length-B?t.selection.setAtStart(C[b.row+B][b.col]):Bt(0,S,0,"down"))}function Kt(b){var S=b.which,C=t.selection.blocks();if(C.length&&((C=(C=C[0]).tagName!=="P"&&C.tagName!=="DIV"?C:C.parentNode).tagName=="TD"||C.tagName=="TH")){for(var B=C;B&&B.tagName!="TABLE"&&B.parentNode!=t.el;)B=B.parentNode;!B||B.tagName!="TABLE"||o.KEYCODE.ARROW_LEFT!=S&&o.KEYCODE.ARROW_UP!=S&&o.KEYCODE.ARROW_RIGHT!=S&&o.KEYCODE.ARROW_DOWN!=S||(0<ht().length&&nt(),t.browser.webkit&&(o.KEYCODE.ARROW_UP==S||o.KEYCODE.ARROW_DOWN==S)&&(function(V,ie,pe){if(V){var he=V.tagName==="TD"||V.tagName==="TH"?V:v(V).parentsUntil(t.el,"td, th").get(0);if(he){if(he.textContent.trim().length<=0&&he.children.length===1&&he.children[0].tagName==="BR")return 1;he.tagName!=="TD"&&he.tagName!=="TH"||!V||V.nodeType===Node.TEXT_NODE||(V.children&&0<V.children.length?(l=ie>V.children.length?V.children.length-1:ie-1,(l=V.children[l]||V.firstChild)&&typeof l.textContent=="string"&&(ie=(V=l).textContent.trim().length-1)):V.firstChild&&typeof V.firstChild.textContent=="string"&&(V=V.firstChild,ie=V.textContent.trim().length-1));var ee,n,l=document.createRange(),l=(l.selectNodeContents(he),l.getBoundingClientRect());if(ee=(V.textContent.trim().length<=0&&V.getBoundingClientRect?V:((ee=V).nodeType!==Node.TEXT_NODE&&(ee=(function(_){for(var z=document.createTreeWalker(_,NodeFilter.SHOW_TEXT,null,!1),_e=null;z.nextNode();)_e=z.currentNode;return _e})(V),ie=ee&&pe==="up"?ee.textContent.length:0),(n=document.createRange()).setStart(ee||V,ie),n.collapse(!0),n)).getBoundingClientRect(),pe==="up"){if(V.tagName==="BR"){if(he.firstChild.isSameNode(V))return 1;if(V.previousSibling&&(t.node.isBlock(V.previousSibling)||t.node.isVoid(V.previousSibling)))return}return Math.abs(ee.top-l.top)<=6}if(pe==="down"){if(V.tagName==="BR"){if(he.lastChild.isSameNode(V))return 1;if(V.nextSibling&&(t.node.isBlock(V.nextSibling)||t.node.isVoid(V.nextSibling)))return he.lastChild.isSameNode(V.nextSibling)||!1}return Math.abs(l.bottom-ee.bottom)<=6}}}})(t.selection.ranges(0).startContainer,t.selection.ranges(0).startOffset,o.KEYCODE.ARROW_UP==S?"up":"down")&&(b.preventDefault(),b.stopPropagation(),C=Ye(C,b=Y(v(B))),o.KEYCODE.ARROW_UP==S?Dt(C,B,b):o.KEYCODE.ARROW_DOWN==S&&Et(C,B,b),t.selection.restore()))}}function He(){t.shared.$table_resizer||(t.shared.$table_resizer=v(document.createElement("div")).attr("class","fr-table-resizer").html("<div></div>")),s=t.shared.$table_resizer,t.events.$on(s,"mousedown",function(S){return!t.core.sameInstance(s)||(0<ht().length&&nt(),S.which==1?(t.selection.save(),ne=!0,s.addClass("fr-moving"),Pe(),t.edit.off(),s.find("div").css("opacity",1),!1):void 0)}),t.events.$on(s,"mousemove",function(S){if(!t.core.sameInstance(s))return!0;ne&&(t.opts.iframe&&(S.pageX-=t.$iframe.offset().left,S.pageY-=t.$iframe.offset().top),Ge(S))});var b=function(C){ne&&ke(C)};window.addEventListener("mouseup",b,!0),t.events.on("destroy",function(){window.removeEventListener("mouseup",b,!0)},!0),t.events.on("shared.destroy",function(){s.html("").removeData().remove(),s=null},!0),t.events.on("destroy",function(){t.$el.find(".fr-selected-cell").removeClass("fr-selected-cell"),v("body").first().append(s.hide())},!0)}function ft(){s&&(s.find("div").css("opacity",0),s.css("top",0),s.css("left",0),s.css("height",0),s.css("width",0),s.find("div").css("height",0),s.find("div").css("width",0),s.css("padding-top",0),s.css("padding-bottom",0),s.css("padding-left",0),s.css("padding-right",0),s.hide())}function bt(){h&&h.removeClass("fr-visible").css("left","-9999px")}function la(b,S){if(ht().length===0){var C,B,V,ie,pe,he,ee,n,l,_,z,_e,Be;if(S&&(S.tagName=="HTML"||S.tagName=="BODY"||t.node.isElement(S)))for(C=1;C<=t.opts.tableInsertHelperOffset;C++){if(n=t.doc.elementFromPoint(b.pageX-t.win.pageXOffset,b.pageY-t.win.pageYOffset+C),v(n).hasClass("fr-tooltip"))return;if(n&&(n.tagName=="TH"||n.tagName=="TD"||n.tagName=="TABLE")&&(v(n).parents(".fr-wrapper").length||t.opts.iframe)&&v(n).closest("table").attr("contenteditable")!="false")return ee=b,n=v(n).closest("table"),void(t.$box.find(".fr-line-breaker").isVisible()||(h||qt(),t.$box.append(h),h.data("instance",t),n=v(n).find("tr").first(),B=ee.pageX,ie=V=0,t.opts.iframe&&(ee=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),pe=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left")),V+=t.$iframe.offset().left-t.helpers.scrollLeft()+pe,ie+=t.$iframe.offset().top-t.helpers.scrollTop()+ee),n.find("th, td").each(function(){var Te=v(this);return Te.offset().left<=B&&B<Te.offset().left+Te.outerWidth()/2?(he=parseInt(h.find("a").css("width"),10),h.css("top",ie+Te.offset().top-t.$box.offset().top-he-5),h.css("left",V+Te.offset().left-t.$box.offset().left-he/2),h.data("selected-cell",Te),h.data("position","before"),h.addClass("fr-visible"),!1):Te.offset().left+Te.outerWidth()/2<=B&&B<Te.offset().left+Te.outerWidth()?(he=parseInt(h.find("a").css("width"),10),h.css("top",ie+Te.offset().top-t.$box.offset().top-he-5),h.css("left",V+Te.offset().left-t.$box.offset().left+Te.outerWidth()-he/2),h.data("selected-cell",Te),h.data("position","after"),h.addClass("fr-visible"),!1):void 0})));if(pe=t.doc.elementFromPoint(b.pageX-t.win.pageXOffset+C,b.pageY-t.win.pageYOffset),v(pe).hasClass("fr-tooltip"))return;if(pe&&(pe.tagName=="TH"||pe.tagName=="TD"||pe.tagName=="TABLE")&&(v(pe).parents(".fr-wrapper").length||t.opts.iframe)&&v(pe).closest("table").attr("contenteditable")!="false")return ee=b,n=v(pe).closest("table"),void(t.$box.find(".fr-line-breaker").isVisible()||(h||qt(),t.$box.append(h),h.data("instance",t),n=v(n),l=ee.pageY,z=_=0,t.opts.iframe&&(ee=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),_e=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left")),_
vendor: 6,127 bytes, line 1
1+=t.$iframe.offset().left-t.helpers.scrollLeft()+_e,z+=t.$iframe.offset().top-t.helpers.scrollTop()+ee),n.find("tr").each(function(){var Te=v(this),et=(Be=parseInt(h.find("a").css("width"),10),_+Te.offset().left-t.$box.offset().left),et=t.$box.offset().left!==0?et-Be-5:et+Be-5;return Te.offset().top<=l&&l<Te.offset().top+Te.outerHeight()/2?(h.css("top",z+Te.offset().top-t.$box.offset().top-Be/2),h.css("left",et),h.data("selected-cell",Te.find("td").first()),h.data("position","above"),h.addClass("fr-visible"),!1):Te.offset().top+Te.outerHeight()/2<=l&&l<Te.offset().top+Te.outerHeight()?(h.css("top",z+Te.offset().top-t.$box.offset().top+Te.outerHeight()-Be/2),h.css("left",et),h.data("selected-cell",Te.find("td").first()),h.data("position","below"),h.addClass("fr-visible"),!1):void 0})))}t.core.sameInstance(h)&&bt()}}function ia(b,S){b=v(b),b.removeClass(S),b.length&&b.get(0).hasAttribute("class")&&!b.attr("class").trim()&&b.removeAttr("class")}function da(b){P=null;var S,C,B,V,ie,pe,he,ee,n,l,_,z,_e,Be,Te,et,St,ot,ct,Ct,jt,va,sa,pa,Ga=t.doc.elementFromPoint(b.pageX-t.win.pageXOffset,b.pageY-t.win.pageYOffset);if(v(Ga).length===0)return!1;t.opts.tableResizer&&(!t.popups.areVisible()||t.popups.areVisible()&&t.popups.isVisible("table.edit"))&&(S=b,sa=v(C=Ga),pa=(B=sa?sa.closest("table"):B).parent(),C&&C.tagName!="TD"&&C.tagName!="TH"&&(0<sa.closest("td").length?C=sa.closest("td"):0<sa.closest("th").length&&(C=sa.closest("th"))),!C||C.tagName!="TD"&&C.tagName!="TH"?s&&sa.get(0)!=s.get(0)&&sa.parent().get(0)!=s.get(0)&&t.core.sameInstance(s)&&ft():(sa=v(C),t.$el.find(sa).length!==0&&(ee=(Ct=sa.offset().left-1)+sa.outerWidth(),ie=(V=sa.offset().top-1)+sa.outerHeight(),Math.abs(S.pageX-Ct)<=t.opts.tableResizerOffset||Math.abs(ee-S.pageX)<=t.opts.tableResizerOffset?(ct=Ae((n=Ye(C,l=Y(B))).row,n.col,l),Te=B.offset().top,pe=B.outerHeight()-1,t.opts.direction!="rtl"?S.pageX-Ct<=t.opts.tableResizerOffset?(he=Ct,0<n.col?(jt=Ct-we(n.col-1,l)+t.opts.tableResizingLimit,va=Ct+we(n.col,l)-t.opts.tableResizingLimit,_=n.col-1,Be=n.col):(_=-1,Be=0,jt=t.$wp.offset().left-1+parseFloat(pa.css("padding-left")),va=t.opts.proportionalTableResize?B.offset().left-1+B.width()-l[0].length*t.opts.tableResizingLimit:Ct+we(n.col,l)-t.opts.tableResizingLimit)):ee-S.pageX<=t.opts.tableResizerOffset&&(he=ee,ct.col<l[ct.row].length&&l[ct.row][ct.col+1]?(jt=ee-we(ct.col,l)+t.opts.tableResizingLimit,va=ee+we(ct.col+1,l)-t.opts.tableResizingLimit,_=ct.col,Be=ct.col+1):(_=ct.col,Be=-1,jt=t.opts.proportionalTableResize?B.offset().left-1+l[0].length*t.opts.tableResizingLimit:ee-we(ct.col,l)+t.opts.tableResizingLimit,va=pa.offset().left-1+pa.width()-parseFloat(pa.css("padding-left")))):ee-S.pageX<=t.opts.tableResizerOffset?(he=ee,0<n.col?(jt=ee-we(n.col,l)+t.opts.tableResizingLimit,va=ee+we(n.col-1,l)-t.opts.tableResizingLimit,_=n.col,Be=n.col-1):(_=null,Be=0,jt=B.offset().left+l[0].length*t.opts.tableResizingLimit,va=pa.offset().left-1+pa.width()+parseFloat(pa.css("padding-left")))):S.pageX-Ct<=t.opts.tableResizerOffset&&(he=Ct,ct.col<l[ct.row].length&&l[ct.row][ct.col+1]?(jt=Ct-we(ct.col+1,l)+t.opts.tableResizingLimit,va=Ct+we(ct.col,l)-t.opts.tableResizingLimit,_=ct.col+1,Be=ct.col):(_=ct.col,Be=null,jt=pa.offset().left+parseFloat(pa.css("padding-left")),va=B.offset().left-1+B.width()-l[0].length*t.opts.tableResizingLimit)),s||He(),ft(),s.removeClass("fr-table-row-resizer"),s.addClass("fr-table-col-resizer"),s.data("table",B),s.data("first",_),s.data("second",Be),s.data("instance",t),t.$wp.append(s),ee=he-t.win.pageXOffset-t.opts.tableResizerOffset-t.$wp.offset().left,n=Te-t.$wp.offset().top+t.$wp.scrollTop(),t.opts.iframe&&(Ct=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),ct=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left")),ee+=t.$iframe.offset().left+ct,n+=t.$iframe.offset().top+Ct,jt+=t.$iframe.offset().left,va+=t.$iframe.offset().left),s.data("max-left",jt),s.data("max-right",va),s.data("origin",he-t.win.pageXOffset),s.css("top",n),s.css("left",ee),s.css("height",pe),s.find("div").css("height",pe),s.css("padding-left",t.opts.tableResizerOffset),s.css("padding-right",t.opts.tableResizerOffset),s.show()):Math.abs(S.pageY-V)<=t.opts.tableResizerOffset||Math.abs(ie-S.pageY)<=t.opts.tableResizerOffset?(_=Ae((l=Ye(C,pa=Y(B))).row,l.col,pa),Be=B.offset().left,Te=B.outerWidth()-1,S.pageY-V<=t.opts.tableResizerOffset?(et=V,0<l.row?(St=V-Le(l.row-1,pa),ot=t.win.outerHeight,z=l.row-1,_e=l.row):(z=-1,_e=0,St=t.$el.offset().top-1+parseInt(B.css("margin-top"),10),ot=t.opts.proportionalTableResize?B.offset().top-1+B.height()-pa.length*t.opts.tableResizingLimit:B.offset().top+sa.height())):ie-S.pageY<=t.opts.tableResizerOffset&&(et=ie,_.row<pa.length-1?(St=ie-Le(_.row,pa),ot=t.win.outerHeight,z=_.row,_e=_.row+1):(z=_.row,_e=-1,St=t.opts.proportionalTableResize?B.offset().top-1+pa.length*t.opts.tableResizingLimit:ie-Le(_.row,pa),ot=t.win.outerHeight)),s||He(),ft(),s.removeClass("fr-table-col-resizer"),s.addClass("fr-table-row-resizer"),s.data("table",B),s.data("first",z),s.data("second",_e),s.data("instance",t),t.$wp.append(s),ct=Be-t.$wp.offset().left,Ct=et-t.$wp.offset().top+t.$wp.scrollTop()-t.opts.tableResizerOffset,t.opts.iframe&&(jt=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),va=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left")),ct+=t.$iframe.offset().left+va,Ct+=t.$iframe.offset().top+jt,St+=t.$iframe.offset().top,ot+=t.$iframe.offset().top),s.data("max-top",St-t.$wp.offset().top+t.$wp.scrollTop()-t.opts.tableResizerOffset),s.data("max-bottom",ot-t.$wp.offset().top+t.$wp.scrollTop()-t.opts.tableResizerOffset),s.data("origin",Ct),s.css("top",Ct),s.css("left",ct),s.css("width",Te),s.find("div").css("width",Te),s.css("padding-top",t.opts.tableResizerOffset),s.css("padding-bottom",t.opts.tableResizerOffset),s.show()):t.core.sameInstance(s)&&ft()))),!t.opts.tableInsertHelper||t.popups.areVisible()||t.$tb.hasClass("fr-inline")&&t.$tb.isVisible()||la(b,Ga)}function O(){var b,S;ne&&(b=s.data("table").offset().top-t.win.pageYOffset,t.opts.iframe&&(S=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),b+=t.$
1iframe.offset().top-t.helpers.scrollTop()+S),s.css("top",b))}function we(b,S){for(var C=v(S[0][b]).outerWidth(),B=1;B<S.length;B++)C=Math.min(C,v(S[B][b]).outerWidth());return C}function Le(b,S){for(var C=v(S[b][0]).outerHeight(),B=1;B<S[b].length;B++)C=Math.min(C,v(S[b][B]).outerHeight());return C}function Ge(b){var S,C,B,V;1<ht().length&&y&&Pe(),y===!1&&a===!1&&ne===!1?(P&&clearTimeout(P),t.edit.isDisabled()&&!t.popups.isVisible("table.edit")||(P=setTimeout(da,30,b))):ne?s.hasClass("fr-table-col-resizer")?(S=b.pageX-t.win.pageXOffset,t.opts.iframe&&(S+=t.$iframe.offset().left),V=s.data("max-left"),C=s.data("max-right"),V<=S&&S<=C?s.css("left",S-t.opts.tableResizerOffset-t.$wp.offset().left):S<V&&parseFloat(s.css("left"),10)>V-t.opts.tableResizerOffset?s.css("left",V-t.opts.tableResizerOffset-t.$wp.offset().left):C<S&&parseFloat(s.css("left"),10)<C-t.opts.tableResizerOffset&&s.css("left",C-t.opts.tableResizerOffset-t.$wp.offset().left)):(V=b.pageY-t.win.pageYOffset,t.opts.iframe&&(V+=t.$iframe.offset().top),S=s.data("max-top"),C=s.data("max-bottom"),V=t.opts.height?(B=V-t.opts.tableResizerOffset-t.$wp.offset().top+t.$wp.scrollTop(),t.opts.iframe&&(C=t.win.innerHeight),B):(B=V-t.opts.tableResizerOffset-t.$wp.offset().top+t.helpers.scrollTop(),t.opts.iframe&&(B=V-t.opts.tableResizerOffset-t.$wp.offset().top),C=t.win.innerHeight,b.clientY),S<=B&&V<=C&&s.css("top",B)):y&&bt()}function Ft(b){t.node.isEmpty(b.get(0))?t.opts.keepTextFormatOnTable&&t.browser.mozilla?b.append(o.MARKERS):b.prepend(o.MARKERS):b.prepend(o.START_MARKER).append(o.END_MARKER)}function qt(){t.shared.$ti_helper||(t.shared.$ti_helper=v(document.createElement("div")).attr("class","fr-insert-helper").html('<a class="fr-floating-btn" role="button" tabIndex="-1" title="'.concat(t.language.translate("Insert"),'"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/></svg></a>')),t.events.bindClick(t.shared.$ti_helper,"a",function(){var b=h.data("selected-cell"),S=h.data("position"),C=h.data("instance")||t;S=="before"||S=="after"?(t.undo.saveStep(),b.addClass("fr-selected-cell"),C.table.insertColumn(S),b.removeClass("fr-selected-cell"),t.undo.saveStep()):S!="above"&&S!="below"||(t.undo.saveStep(),b.addClass("fr-selected-cell"),C.table.insertRow(S),b.removeClass("fr-selected-cell"),t.undo.saveStep()),bt()}),t.events.on("shared.destroy",function(){t.shared.$ti_helper.html("").removeData().remove(),t.shared.$ti_helper=null},!0),t.events.$on(t.shared.$ti_helper,"mousemove",function(b){b.stopPropagation()},!0),t.events.$on(v(t.o_win),"scroll",function(){bt()},!0),t.events.$on(t.$wp,"scroll",function(){bt()},!0)),h=t.shared.$ti_helper,t.events.on("destroy",function(){h=null}),t.tooltip.bind(t.$box,".fr-insert-helper > a.fr-floating-btn")}function Tt(){j=null,clearTimeout(P)}function ht(){return t.el.querySelectorAll(".fr-selected-cell")}function yt(){var b=ht(),S=t.$el.find("table.fr-selection-handle-selected");if(b.length){for(var C=b[0];C&&C.tagName!="TABLE"&&C.parentNode!=t.el;)C=C.parentNode;return C&&C.tagName=="TABLE"?v(C):v([])}return S.length?v(S.get(0)):v([])}function Yt(b){var S=t.popups.get("table.tableProperties"),C=S.find(".fr-table-alignment-container"),B=C.find(".fr-table-".concat(b,"-align")).get(0);C.find(".fr-table-left-align").get(0).innerHTML=t.icon.create("leftTableAlign"),C.find(".fr-table-center-align").get(0).innerHTML=t.icon.create("centerTableAlign"),C.find(".fr-table-right-align").get(0).innerHTML=t.icon.create("rightTableAlign"),B.innerHTML=t.icon.create("".concat(b,"TableAlignActive")),B.focus(),S.data("tableAlign",b)}function ta(){var b,S={buttons:"",table_properties_form:'\n <div class="fr-table-properties-form">\n <div class="fr-table-properties-section">\n <label>'.concat(t.language.translate("Background"),'</label>\n <div class="fr-table-bg-container">\n <div class="fr-input-line">\n <input type="text" title="').concat(t.language.translate("Custom background color input"),'" id="fr-table-bg" class="fr-input" placeholder="').concat(t.language.translate("C
1olor"),'" tabIndex="1" aria-required="true">\n </div>\n <button title="').concat(t.language.translate("Background color picker"),'" role="button" type="button" class="fr-command fr-enable-accessibility fr-btn-table-bg-color" data-param1="table" tabIndex="2" data-cmd="openColorPicker">\n <div class="fr-color-preview">\n <div class="fr-color-preview-indicator"></div>\n </div>\n </button>\n </div>\n <label>').concat(t.language.translate("Border"),'</label>\n <div class="fr-table-border-container">\n <div class="fr-input-line">\n <label class="fr-field-lable">').concat(t.language.translate("Style"),'</label>\n <div class= "fr-buttons fr-border-style"> ').concat(t.button.build("tableBorderStyle",o.COMMANDS.tableBorderStyle,!0),'</div>\n </div>\n <div class="fr-input-line">\n <input title="').concat(t.language.translate("Custom border color input"),'" id="fr-table-border-color" class="fr-input" type="text" placeholder="').concat(t.language.translate("Color"),'" tabIndex="3" aria-required="true">\n </div>\n <button title="').concat(t.language.translate("Border color picker"),'" role="button" type="button" class="fr-command fr-btn-table-border-bg-color fr-enable-accessibility" tabIndex="4" data-param1="border" data-cmd="openColorPicker">\n <div class="fr-border-color-preview">\n <div class="fr-border-color-preview-indicator"></div>\n </div>\n </button>\n <div class="fr-input-line">\n <input title="').concat(t.language.translate("Border width"),'" id="fr-table-border-width" type="text" class="fr-input" placeholder="').concat(t.language.translate("Width"),'" tabIndex="5" aria-required="true">\n </div>\n </div>\n <div class="fr-table-dimensions-section">\n <div>\n <label>').concat(t.language.translate("Dimensions"),'</label>\n <div class="fr-table-dimensions-container">\n <div class="fr-input-line">\n <input title="').concat(t.language.translate("Table width"),'" type="text" id="fr-table-width" placeholder="').concat(t.language.translate("Width"),'" tabIndex="6">\n </div>\n <span class="fr-dimension-separator">\xD7</span>\n <div class="fr-input-line">\n <input title="').concat(t.language.translate("Table height"),'" type="text" id="fr-table-height" placeholder="').concat(t.language.translate("Height"),'" tabIndex="7">\n </div>\n </div>\n </div>\n <div class="fr-table-alignment-section">\n <label>').concat(t.language.translate("Alignment"),'</label>\n <div class="fr-table-alignment-container">\n <button title="').concat(t.language.translate("Left align"),'" class="fr-enable-accessibility fr-command fr-table-left-align" data-param1="left" data-cmd="tableAlign" tabIndex="8">').concat(t.icon.create("leftTableAlign"),'</button>\n <button title="').concat(t.language.translate("Center align"),'" class="fr-enable-accessibility fr-command fr-table-center-align" data-param1="center" data-cmd="tableAlign" tabIndex="9">').concat(t.icon.create("centerTableAlign"),'</button>\n <button title="').concat(t.language.translate("Right align"),'" class="fr-enable-accessibility fr-command fr-table-right-align" data-param1="right" data-cmd="tableAlign" tabIndex="10">').concat(t.icon.create("rightTableAlign"),"</button>\n </div>\n </div>\n </div>\n <label>").concat(t.language.translate("Table Style"),'</label>\n <div class="fr-table-style-container">\n <div class="fr-input-line">\n <label class="fr-field-lable">').concat(t.language.translate("Style"),'</label>\n <div class= "fr-buttons fr-table-style"> ').concat(t.button.build("tableStyle",o.COMMANDS.tableStyle,!0),'</div>\n </div>\n </div>\n </div>\n <div class="fr-table-properties-buttons">\n <button role="button" type="button" class="fr-enable-accessibility fr-command fr-cancel-button" tabIndex="11" data-cmd="onCancel">').concat(t.language.translate("Cancel"),'</button>\n <button role="button" type="button" class="fr-enable-accessibility fr-command fr-save-button" tabIndex="12" data-cmd="applyTableProperties">').concat(t.language.translate("Save"),"</button>\n </div>\n </div>\n ")},C=t.popups.create("table.tableProperties",S);return(b=function(V,ie,pe){C.find(V).on("keydown",function(he){var ee=v(he.target),n=he.which;n!==o.KEYCODE.ENTER&&n!==o.KEYCODE.ARROW_DOWN&&n!==o.KEYCODE.SPACE||ee.hasClass("fr-active")||!ee.is("button")||(ie&&pe&&t.button.click(ee),he.preventDefault(),he.stopPropagation()),setTimeout(function(){var l;
1n===o.KEYCODE.TAB&&ie&&pe&&((l=he.shiftKey?C.find(ie):C.find(pe))&&l.length&&l.focus(),he.preventDefault(),he.stopPropagation())},10)})})(".fr-border-style > button",".fr-btn-table-bg-color","#fr-table-border-color"),b(".fr-border-style > .fr-dropdown-menu li",".fr-btn-table-bg-color","#fr-table-border-color"),b(".fr-table-style > button",".fr-table-right-align",".fr-cancel-button"),b(".fr-table-style > .fr-dropdown-menu li",".fr-table-right-align",".fr-cancel-button"),b(".fr-save-button",".fr-cancel-button","#fr-table-bg"),C}function Pt(){a=!1}function fa(b,S){var C=b.find("colgroup"),B=(C.length===0&&(C=v(t.doc.createElement("colgroup")),b.prepend(C)),C.find("col").length);if(B<S)for(var V=B;V<S;V++)C.append(v(t.doc.createElement("col")));else S<B&&C.find("col").slice(S).remove();return ua(C,ga(b)),b.find("th, td").each(function(){v(this).css("width","")}),C}function ga(b){var S=[];return b.find("colgroup").find("col").each(function(){var C=Math.round(v(this).width())||0;S.push(C)}),S}function ua(B,S){var C,B=B.find("col"),V=S.reduce(function(ie,pe){return ie+pe},0);.01<Math.abs(V-100)&&(C=100/V,S=S.map(function(ie){return ie*C})),B.each(function(ie){ie<S.length&&v(this).css("width",S[ie].toFixed(4)+"%")})}function qa(b,S){b.css("height","");var C=b.height(),B=b.find("tr"),V=(S-C)/B.length;B.each(function(){var ie=v(this),pe=ie.outerHeight(),pe=Math.max(pe+V,t.opts.tableResizingLimit);ie.css("height",pe+"px")}),b.css("height","".concat(S,"px"))}function Wt(){ia(t.$el.find("table.fr-selection-handle-selected"),"fr-selection-handle-selected fr-selection-handle-hover"),t.$box.find(".fr-selection-handle").addClass("fr-selection-handle-inactive")}return{_init:function(){if(!t.$wp)return!1;var b,S,C;t.helpers.isMobile()&&(t.events.$on(t.$el,"mousedown",ut),t.events.$on(t.$win,"mouseup",ke)),t.helpers.isMobile()||(ne=a=y=!1,t.events.$on(t.$el,"mousedown",ut),t.popups.onShow("image.edit",function(){je(),a=y=!1}),t.popups.onShow("link.edit",function(){je(),a=y=!1}),t.events.$on(t.$el,"mouseover","th, td",pt),t.events.$on(t.$win,"mouseup",ke),t.opts.iframe&&t.events.$on(v(t.o_win),"mouseup",ke),t.events.$on(t.$win,"mousemove",Ge),t.events.$on(v(t.o_win),"scroll",O),t.events.on("contentChanged",function(){0<ht().length&&!t.popups.isVisible("table.tableProperties")&&(g(),t.$el.find("img").on("load.selected-cells",function(){v(this).off("load.selected-cells"),0<ht().length&&g()}))}),t.events.$on(v(t.o_win),"resize",function(){je()}),t.events.on("toolbar.esc",function(){if(0<ht().length)return t.events.disableBlur(),t.events.focus(),!1},!0),t.events.$on(v(t.o_win),"keydown",function(){y&&a&&(a=y=!1,t.$el.removeClass("fr-no-selection"),t.edit.on(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell").last().get(0)),t.selection.restore(),je())}),t.events.$on(t.$el,"keydown",function(B){B.shiftKey?(function(V){var ie=ht();if(ie!=null&&0<ie.length){var pe,he=Y(),V=V.which,ie=ie.length==1?pe=ie[0]:(pe=t.el.querySelector(".fr-cell-fixed"),t.el.querySelector(".fr-cell-handler")),ie=Ye(ie,he);if(o.KEYCODE.ARROW_RIGHT==V){if(ie.col<he[0].length-1)return R(pe,he[ie.row][ie.col+1]),!1}else if(o.KEYCODE.ARROW_DOWN==V){if(ie.row<he.length-1)return R(pe,he[ie.row+1][ie.col]),!1}else if(o.KEYCODE.ARROW_LEFT==V){if(0<ie.col)return R(pe,he[ie.row][ie.col-1]),!1}else if(o.KEYCODE.ARROW_UP==V&&0<ie.row)return R(pe,he[ie.row-1][ie.col]),!1}})(B)===!1&&setTimeout(function(){g()},0):Kt(B)}),t.events.on("keydown",function(B){if((function(Be){var Te,et=Be.which;if(et==o.KEYCODE.TAB&&(0<ht().length?Te=t.$el.find(".fr-selected-cell").last():(et=t.selection.element()).tagName=="TD"||et.tagName=="TH"?Te=v(et):et!=t.el&&(0<v(et).parentsUntil(t.$el,"td").length?Te=v(et).parents("td").first():0<v(et).parentsUntil(t.$el,"th").length&&(Te=v(et).parents("th").first())),Te))return Be.preventDefault(),!!(t.selection.get().focusOffset===0&&0<v(t.selection.element()).parentsUntil(t.$el,"ol, ul").length&&(0<v(t.selection.element()).closest("li").prev().length||v(t.selection.element()).is("li")&&0<v(t.selection.element()).prev().length))||(nt(),Be.shiftKey?0<Te.prev().length?Ft(Te.prev()):0<Te.closest("tr").length&&0<Te.closest("tr").prev().length?Ft(Te.closest("tr").prev().find("td").last()):0<Te.closest("tbody").length&&0<Te.closest("table").find("thead tr").length&&Ft(Te.closest("table").find("thead tr th").last()):0<Te.next().length?Ft(Te.next()):0<Te.closest("tr").length&&0<Te.closest("tr").next().length?Ft(Te.closest("tr").next().find("td").first()):0<Te.closest("thead").length&&0<Te.closest("table").find("tbody tr").length?Ft(Te.closest("table").find("tbody tr td").first()):(Te.addClass("fr-selected-cell"),be("below"),je(),Ft(Te.closest("tr").next().find("td").first())),t.selection.restore(
1),!1)})(B)===!1)return!1;var V,ie,pe=function(){je(),Wt(),B.preventDefault(),B.stopPropagation()},he=t.$el.find("table.fr-selection-handle-selected"),ee=B.which;if(he.length&&!t.keys.isArrow(B.which)&&ee!==o.KEYCODE.TAB&&ee!==o.KEYCODE.ALT&&ee!==o.KEYCODE.ESC){if(B.ctrlKey||B.metaKey||ee===o.KEYCODE.SHIFT)return!0;J(),t.undo.saveStep(),pe();var n,l,_=t.html.defaultTag();return(ee===o.KEYCODE.ENTER||t.keys.isCharacter(ee)&&!B.ctrlKey&&!B.metaKey)&&(n=ee===o.KEYCODE.ENTER,_=_?(n?"<".concat(_,' id="cursor-marker"></'):"<".concat(_,' id="cursor-marker"> ').concat(ee===o.KEYCODE.SPACE?" ":B.key,"</")).concat(_,">"):n?'<br id="cursor-marker">':"".concat(ee===o.KEYCODE.SPACE?" ":B.key,' <br id="cursor-marker">'),t.html.insert(_,!0,!0),(l=t.$el.find("#cursor-marker").get(0))&&l.parentNode&&setTimeout(function(){var Be=t.doc.createRange(),Te=(Be.setStart(l,n?0:1),Be.setEnd(l,n?0:1),Be.collapse(!0),t.selection.get());Te.removeAllRanges(),Te.addRange(Be),t.$el.focus()},0),l)&&l.removeAttribute("id"),!1}if(he.length&&t.keys.isArrow(B.which))return ee=B.which===o.KEYCODE.ARROW_DOWN||B.which===o.KEYCODE.ARROW_RIGHT,_=B.which===o.KEYCODE.ARROW_UP||B.which===o.KEYCODE.ARROW_LEFT,(ee||_)&&(_=ee?he.next():he.prev())&&_.length&&_[0].nodeType===Node.ELEMENT_NODE&&((V=_[0]).tagName!=="UL"&&V.tagName!=="OL"||0<(ie=V.querySelectorAll("li")).length&&(V=ie[ie.length-1]),ie=t.doc.createRange(),ee?ie.setStartBefore(_[0]):(ie.selectNodeContents(V),ie.collapse(!1)),(ee=t.selection.get()).removeAllRanges(),ee.addRange(ie),setTimeout(function(){t.events.disableBlur(),t.$el[0].focus(),t.events.enableBlur()},0)),pe(),!1;B.ctrlKey||B.metaKey||!he.length||(je(),Wt());var z=ht();if(0<z.length){if(0<z.length&&t.keys.ctrlKey(B)&&B.which==o.KEYCODE.A)return je(),t.popups.isVisible("table.edit")&&t.popups.hide("table.edit"),z=[],!0;if(B.which==o.KEYCODE.ESC&&t.popups.isVisible("table.edit"))return je(),t.popups.hide("table.edit"),B.preventDefault(),B.stopPropagation(),B.stopImmediatePropagation(),!(z=[]);if(1<z.length&&(B.which==o.KEYCODE.BACKSPACE||B.which==o.KEYCODE.DELETE)){t.undo.saveStep();for(var _e=0;_e<z.length;_e++)v(z[_e]).html("<br>"),_e==z.length-1&&v(z[_e]).prepend(o.MARKERS);return t.selection.restore(),t.undo.saveStep(),!(z=[])}return 1<z.length&&B.which!=o.KEYCODE.F10&&!t.keys.isBrowserAction(B)?(B.preventDefault(),!(z=[])):void 0}return!(z=[])!==(function(Be){if(Be.altKey&&Be.which==o.KEYCODE.SPACE){var Te,et=t.selection.element();if(et.tagName=="TD"||et.tagName=="TH"?Te=et:0<v(et).closest("td").length?Te=v(et).closest("td").get(0):0<v(et).closest("th").length&&(Te=v(et).closest("th").get(0)),Te)return Be.preventDefault(),R(Te,Te),g(),!1}})(B)&&void 0},!0),b=null,S=[],t.events.on("html.beforeGet",function(){S=ht();for(var B=0;B<S.length;B++)S[B].className=(S[B].className||"").replace(/fr-selected-cell/g,"");(b=t.$el.find("table.fr-selection-handle-selected"))&&b.length&&ia(b,"fr-selection-handle-selected")}),t.events.on("html.afterGet",function(){for(var B=0;B<S.length;B++)S[B].className=(S[B].className?S[B].className.trim()+" ":"")+"fr-selected-cell";S=[],b&&b.length&&b.addClass("fr-selection-handle-selected")}),t.events.on("dragover",nt),t.events.on("element.dropped",function(B){B&&(nt(),a=y=!1,B=xe({target:B.get(0)}))&&(R(B,B),g())}),t.el.addEventListener("copy",function(B){var V,ie,pe,he,ee,n,l,_,z=(_=ht())&&_.length!==0?(z=(n=_[0]).parentElement,l=(_=_[_.length-1]).parentElement,V=z.closest("table"),ie=(V=Array.from(V.rows)).indexOf(z),pe=V.indexOf(l),he=Array.from(z.cells).indexOf(n),ee=Array.from(l.cells).indexOf(_),{rows:V.slice(ie,pe+1).map(function(_e){return Array.from(_e.cells).slice(he,ee+1)})}):null;z&&(n=z.rows.map(function(_e){return"<tr>"+_e.map(function(Be){var Te=Be.tagName.toLowerCase(),et=Be.getAttribute("style");return"<".concat(Te).concat(et?' style="'.concat(et,'"'):"",">").concat(Be.innerHTML,"</").concat(Te,">")}).join("")+"</tr>"}).join(""),l=z.rows.map(function(_e){return _e.map(function(Be){return Be.textContent.trim()}).join(" ")}).join("\n"),_="<table>".concat(n,"</table>"),t.paste.saveCopiedText(_,l),B.clipboardData.setData("text/html",_),B.preventDefault())}),t.events.on("commands.after",function(B){var V;B==="applyTableProperties"&&(V=!!(B=t.$el.find(".fr-selected-cell").closest("table")).length&&parseFloat(B[0].style.height))&&qa(B,V)}),C=t.language.translate("The content you are pasting does not contain a table.\nPlease ensure the copied content is in table format."),t.events.on("paste.before",function(B,V){return t.popups.hideAll(),t.$el.find("table.fr-selection-handle-selected").length&&(V=V||B&&B.clipboardData,V&&V.items&&(V=(V||window.clipboardData).getData("text/html")||"",!V||V.indexOf("<table")===-1))?(alert(C),B.preventDefault(),B.stopPropagation(),!1):!0}),t.events.on("html.beforeInsert",function(B){var V,ie;if(!ue)return V=t.$el.find("table.fr-selection-handle-selected"),!(V=(ie=ht()).length&&!V.length&&B.startsWith("<table")?v(ie[0].closest("table")):V).length||((ie=(function(pe){for(var he=t.doc.createElement("div"),ee=(he.innerHTML=pe,he.firstChild);ee;){var n=ee.nextSibling;(ee.nodeType===Node.TEXT_NODE&&ee.textContent.replace(/\u200b/g,"").trim()===""||ee.nodeType===Node.COMMENT_NODE||ee.tagName==="SPAN"&&ee.textContent.replace(/\u200b/g,"").trim()==="")&&ee.remove(),ee=n}return he.childNodes.length===1&&he.childNodes[0].tagName==="TABLE"&&he.childNodes[0]})(B))?((function(pe,he){for(var ee=he.get(0),n=(he=(ht().length?ht():ee.rows[0].cells)[0])&&he.parentNode?he.parentNode.rowIndex:0,l=he?he.cellIndex:0,_=ee.rows,z=pe.rows,_e=0;_e<z.length;_e++){if(!_[n+_e])for(var Be=_[_.length-1].cells.length,Te=ee.insertRow(),et=0;et<Be;et++)Te.insertCell();for(var St=_[n+_e],ot=function(){if(!St.cells[l+ct])for(var jt=0;jt<_.length;jt++)_[jt].insertCell();var va=St.cells[l+ct],sa=z[_e].cells[ct],pa=(va.outerHTML=sa.outerHTML,_[n+_e].cells[l+ct]);setTimeout(function(){t.events.trigger("cell.replaced",[va,pa])},10)},ct=0;ct<z[_e].cells.length;ct++)ot()}return!0})(ie,V)&&setTimeout(function(){t.$el.find(".fr-selected-cell").removeClass("fr-selected-cell");var pe=t.snapshot.get();t.undo_stack[t.undo_index-1]=pe},20),t.keys.positionCaret(),t.popups.hideAll(),t.events.trigger("html.inserted")):alert(C),!1);ue=!1}),k(!0),Q(!0),t.dragSelectControls._init()),t.events.on("destroy",Tt)},insert:function(b,S){var C,B,V=(function(){var ee={startTag:"",closeTag:""};{var n;
1t.opts.keepTextFormatOnTable&&(n=v(t.selection.element().firstChild).parentsUntil(t.$el),ee=Oe(n))}return{startTag:ee.startTag,closeTag:ee.closeTag}})(),ie=[];t.opts.tableDefaultWidth&&ie.push("width: "+t.opts.tableDefaultWidth+";"),t.opts.tableDefaultHeight&&ie.push("height: "+t.opts.tableDefaultHeight+";"),ie.push("margin: auto;"),t.opts.tableDefaultAlign==="left"?ie.push("float: left;"):t.opts.tableDefaultAlign==="right"&&ie.push("float: right;"),t.opts.tableDefaultBorderColor&&ie.push("border-color: "+t.opts.tableDefaultBorderColor+";"),t.opts.tableDefaultBorderWidth&&ie.push("border-width: "+t.opts.tableDefaultBorderWidth+";"),t.opts.tableDefaultBorderStyle&&ie.push("border-style: "+t.opts.tableDefaultBorderStyle+";"),t.opts.tableDefaultBGColor&&ie.push("background-color: "+t.opts.tableDefaultBorderStyle+";");var pe="<table "+((ie=ie.join(" "))?'style="'+ie+'"':"")+' class="fr-inserted-table">',he=100/S;for(pe+="<colgroup>",B=0;B<S;B++)pe+="<col"+(t.opts.tableDefaultWidth?' style="width: '+he.toFixed(4)+'%;"':"")+">";for(pe=pe+"</colgroup><tbody>",C=0;C<b;C++){for(pe+="<tr>",B=0;B<S;B++)pe+="<td>"+V.startTag,C===0&&B===0&&(pe+=o.MARKERS),pe+="<br>"+V.closeTag+"</td>";pe+="</tr>"}pe+="</tbody></table>",t.opts.trackChangesEnabled?(t.edit.on(),t.events.focus(!0),t.selection.restore(),t.undo.saveStep(),t.markers.insert(),t.html.wrap(),ie=t.$el.find(".fr-marker"),t.node.isLastSibling(ie)&&ie.parent().hasClass("fr-deletable")&&ie.insertAfter(ie.parent()),ie.replaceWith(pe),t.selection.clear()):(ue=!0,t.html.insert(pe)),t.selection.restore(),ia(ie=t.$el.find(".fr-inserted-table"),"fr-inserted-table"),t.events.trigger("table.inserted",[ie.get(0)])},remove:J,insertRow:be,deleteRow:function(){var b=yt();if(0<b.length){var S,C=Y(),B=qe(C);if(B!=null)if(B.min_i===0&&B.max_i==C.length-1)J();else{for(S=B.max_i;S>=B.min_i;S--){for(var V=(V=b.find("tr").not(b.find("> table tr"))).filter(function(){return v(this).closest("table")[0]===b[0]}),ie=v(V.get(S)),pe=0;pe<C[S].length;pe++)if(pe===0||C[S][pe]!=C[S][pe-1]){var he=v(C[S][pe]);if(he.attr("rowspan")&&1<parseInt(he.attr("rowspan"),10)&&((ee=parseInt(he.attr("rowspan"),10)-1)==1?he.removeAttr("rowspan"):he.attr("rowspan",ee)),S<C.length-1&&C[S][pe]==C[S+1][pe]&&(S===0||C[S][pe]!=C[S-1][pe])){for(var ee=C[S][pe],n=pe;0<n&&C[S][n]==C[S][n-1];)n--;n===0?v(V.get(S+1)).prepend(ee):v(C[S+1][n-1])[0].parentNode&&v(C[S+1][n-1])[0].insertAdjacentElement("afterend",ee)}}var l=ie.parent();ie.remove(),l.find("tr").length===0&&l.remove(),C=Y(b)}De(0,C.length-1,0,C[0].length-1,b),0<B.min_i?t.selection.setAtEnd(C[B.min_i-1][0]):t.selection.setAtEnd(C[0][0]),t.selection.restore(),t.popups.hide("table.edit")}}},insertColumn:function(b){var S,C,B,V,ie,pe,he,ee,n,l,_=yt();0<_.length&&(ee=qe(S=Y()),C=b=="before"?ee.min_j:ee.max_j,fa(_,S[0].length),ee=(function(z){var _e=z.reduce(function(Te,et){return Te+et},0);{var Be;return 0<_e?z.map(function(Te){return Te/_e*100}):(Be=100/z.length,new Array(z.length).fill(Be))}})(ee=ga(_)),he=100/(S[0].length+1),B=(100-he)/100,ee=ee.map(function(z){return z*B}),_.find("th, td").each(function(){(V=v(this)).data("old-width",V.outerWidth()/_.outerWidth()*100)}),n=b,l=C,ie=he,pe=ee,ee=(he=(he=_).find("colgroup")).find("col"),n=n==="before"?l:l+1,(l=v(t.doc.createElement("col"))).css("width",ie.toFixed(4)+"%"),n<ee.length?ee.eq(n).before(l):he.append(l),ee.each(function(z){z=pe[z]||ie,v(this).css("width",z.toFixed(4)+"%")}),_.find("tr").not(_.find("> table tr")).filter(function(){return v(this).closest("table")[0]===_[0]}).each(function(z){for(var _e,Be=v(this),Te=0,et=0;Te-1<C;){if(!(_e=Be.find("> th, > td").get(et))){_e=null;break}_e==S[z][Te]?(Te+=parseInt(v(_e).attr("colspan"),10)||1,et++):(Te+=parseInt(v(S[z][Te]).attr("colspan"),10)||1,b=="after"&&(_e=et===0?-1:Be.find("> th, > td").get(et-1)))}var St,ot,ct=v(_e);b=="after"&&C<Te-1||b=="before"&&0<C&&S[z][C]==S[z][C-1]?(z===0||0<z&&S[z][C]!=S[z-1][C])&&(St=parseInt(ct.attr("colspan"),10)+1,ct.attr("colspan",St),ct.removeData("old-width")):(St=(ct.get(0)||"").tagName,ot=0<Be.find("th").length&&St==="TH"?"<th><br></th>":(St=U(S[z][C]),ot=ct.attr("style")||"","<td".concat(ot?' style="'.concat(ot,'"'):"",">")+St.startTag+"<br>"+St.closeTag+"</td>"),v(ot).append("<br>"),_e==-1?Be.prepend(ot):_e==null?Be.append(ot):b=="before"?ct.before(ot):b=="after"&&ct.after(ot))}),_.find("th, td").each(function(){v(this).removeData("old-width")}),t.popups.isVisible("table.edit"))&&g()},deleteColumn:function(){if(0<(l=yt()).length){var b,S=Y(),C=(fa(l,S[0].length),qe(S));if(C!=null)if(C.min_j===0&&C.max_j==S[0].length-1)J();else{for(var B,V,n=ga(l),ie=C.max_j;ie>=C.min_j;ie--)for(b=0;b<S.length;b++)b!==0&&S[b][ie]==S[b-1][ie]||(V=v(S[b][ie]),1<(parseInt(V.attr("colspan"),10)||1)?((B=parseInt(V.attr("colspan"),10)-1)==1?V.removeAttr("colspan"):V.attr("colspan",B),V.removeData("old-width")):(B=v(V.parent().get(0)),V.remove(),B.find("> th, > td").length===0&&(B.prev().length===0||B.next().length===0||B.prev().find("> th[rowspan], > td[rowspan]").length<B.prev().find("> th, > td").length)&&B.remove()));De(0,S.length-1,0,S[0].length-1,l);var pe=C.min_j,he=C.max_j,ee=n,n=ee.length-(he-pe+1);if(0<n){for(var l=fa(l,n),_=0,z=0;z<ee.length;z++)(z<pe||he<z)&&(_+=ee[z]);for(var _e,Be=[],Te=0;Te<ee.length;Te++)(Te<pe||he<Te)&&(_e=100*ee[Te]/_,Be.push(_e));ua(l,Be)}0<C.min_j?t.selection.setAtEnd(S[C.min_i][C.min_j-1]):t.selection.setAtEnd(S[C.min_i][0]),t.selection.restore(
1),t.popups.hide("table.edit")}}},mergeCells:function(){if(1<ht().length&&(t.$el.find("th.fr-selected-cell").length===0||t.$el.find("td.fr-selected-cell").length===0)){dt();var b=Y(),S=qe(b);if(S!=null){var C,B=t.$el.find(".fr-selected-cell"),l=v(B[0]),V=l.closest("table"),ie=l.html(),pe=ga(V);for(S.min_j<S.max_j&&l.attr("colspan",S.max_j-S.min_j+1),S.min_i<S.max_i&&l.attr("rowspan",S.max_i-S.min_i+1),ee=1;ee<B.length;ee++)(C=v(B[ee])).html()!="<br>"&&C[0].innerText.trim()!==""&&(/<\/(p|div|h[1-6]|table|ul|ol|blockquote)>$/i.test(ie.trim())||(ie+="<br>"),ie+=C.html()),C.remove();l.html(ie),t.selection.setAtEnd(l.get(0)),t.selection.restore(),t.toolbar.enable(),u(S.min_i,S.max_i,V);for(var he=V.find("tr:empty"),ee=he.length-1;0<=ee;ee--)v(he[ee]).remove();Ne(S.min_j,S.max_j,V);var n,l=Y(V),S=l[0]?l[0].length:0;b[0].length>S&&(l=V.find("colgroup"),n=(b=b[0].map(function(z,_e){return v(z).is(".fr-selected-cell")?_e:null}).filter(function(z){return z!==null})).reduce(function(z,_e){return z+pe[_e]},0),ua(l,[].concat(d(pe.slice(0,Math.min.apply(Math,d(b)))),[n],d(pe.slice(Math.max.apply(Math,d(b))+1))))),fa(V,S),g()}}},splitCellVertically:function(){if(ht().length==1){var b=t.$el.find(".fr-selected-cell"),l=parseInt(b.attr("colspan"),10)||1,he=b.parent().outerWidth(),_=b.outerWidth(),n=b.parents("table"),ee=b.clone().html("<br>"),S=Y(),C=Ye(b.get(0),S);if(1<l)pe=Math.ceil(l/2),_=(function(z,_e,Be){var Te,et=0;for(Te=z;Te<=_e;Te++)et+=we(Te,Be);return et})(C.col,C.col+pe-1,S)/he*100,1<pe?b.attr("colspan",pe):b.removeAttr("colspan"),1<l-pe?ee.attr("colspan",l-pe):ee.removeAttr("colspan");else{for(var B,V,ie=0;ie<S.length;ie++)ie!==0&&S[ie][C.col]==S[ie-1][C.col]||(B=v(S[ie][C.col])).is(b)||(V=(parseInt(B.attr("colspan"),10)||1)+1,B.attr("colspan",V));_=_/he*100/2}b[0].parentNode&&b[0].insertAdjacentElement("afterend",ee[0]);var pe=n,he=C,ee=l,n=_,l=S,_=pe.find("colgroup");_.length===0&&(_=fa(pe,l[0].length)),l=_.find("col"),1<ee?(ee=ga(pe),ua(_,ee)):(pe=n,(ee=l.eq(he.col)).length&&ee.css("width",pe.toFixed(4)+"%"),(n=v(t.doc.createElement("col"))).css("width",pe.toFixed(4)+"%"),he.col+1<l.length?l.eq(he.col+1).before(n):_.append(n)),je(),t.popups.hide("table.edit")}},splitCellHorizontally:function(){if(ht().length==1){var b=t.$el.find(".fr-selected-cell"),S=b.parent(),C=b.closest("table"),B=parseInt(b.attr("rowspan"),10),V=Y(),ie=Ye(b.get(0),V),pe=b.clone().html("<br>");if(1<B){for(var he=Math.ceil(B/2),ee=(1<he?b.attr("rowspan",he):b.removeAttr("rowspan"),1<B-he?pe.attr("rowspan",B-he):pe.removeAttr("rowspan"),ie.row+he),n=ie.col===0?ie.col:ie.col-1;0<=n&&(V[ee][n]==V[ee][n-1]||0<ee&&V[ee][n]==V[ee-1][n]);)n--;n==-1?(B=(B=C.find("tr").not(C.find("> table tr"))).filter(function(){return v(this).closest("table")[0]===C[0]}),v(B.get(ee)).prepend(pe)):v(V[ee][n])[0].parentNode&&v(V[ee][n])[0].insertAdjacentElement("afterend",pe[0])}else{for(var l,he=v(document.createElement("tr")).append(pe),_=0;_<V[0].length;_++)_!==0&&V[ie.row][_]==V[ie.row][_-1]||(l=v(V[ie.row][_])).is(b)||l.attr("rowspan",(parseInt(l.attr("rowspan"),10)||1)+1);S[0].parentNode&&S[0].insertAdjacentElement("afterend",he[0])}je(),t.popups.hide("table.edit")}},addHeader:function(){var b=yt();if(0<b.length&&b.find("> th").length===0){var S,C="<thead><tr>",B=0,B=b.find("tr").first().find("> th").length;for(b.find("tr").first().find("> td").each(function(){var V=v(this);B+=parseInt(V.attr("colspan"),10)||1}),S=0;S<B;S++)C+="<th><br></th>";b.prepend(C+="</tr></thead>"),g()}},addFooter:function(){var b=yt();if(0<b.length&&b.find("tfoot").length===0){var S="<tfoot><tr>",C=0,B=b.find("thead tr").first();(B=B.length===0?b.find("tbody tr").first():B).find("th, td").each(function(){C+=parseInt(v(this).attr("colspan"),10)||1});for(var V=0;V<C;V++)S+="<td><br></td>";b.append(S+="</tr></tfoot>"),g()}},removeHeader:function(){var b=yt(),S=b.find("> thead");0<(S=v(S)).length&&(b.find("tbody tr").length===0?J():(S.remove(),0<ht().length?g():(t.popups.hide("table.edit"),(S=b.find("tbody tr").first().find("td").first().get(0))&&(t.selection.setAtEnd(S),t.selection.restore()))))},removeFooter:function(){var b=yt(),S=b.find("tfoot");0<S.length&&(b.find("tbody tr").length===0?J():(S.remove(),0<ht().length?g():(t.popups.hide("table.edit"),(S=b.find("tbody tr").first().find("td").first().get(0))&&(t.selection.setAtEnd(S),t.selection.restore(
1)))))},setBackground:function(b){var S=t.$el.find(".fr-selected-cell");b!="REMOVE"?S.css("background-color",t.helpers.HEXtoRGB(b)):S.css("background-color","")},showInsertPopup:function(){var b,S,C=t.$tb.find('.fr-command[data-cmd="insertTable"]');(t.popups.get("table.insert")||k()).hasClass("fr-active")||(t.popups.refresh("table.insert"),t.popups.setContainer("table.insert",t.$tb),S=(b=t.button.getPosition(C)).left,t.popups.show("table.insert",S,b.top,C.outerHeight()))},showEditPopup:g,showColorsPopup:function(b){var S,C,B,V,ie,pe,he,ee=Y();ee&&((t.popups.get("table.colors")||(function(){var n="",l=0;0<t.opts.tableColorsButtons.length&&(n='<div class="fr-buttons fr-colors-buttons fr-tabs">'.concat(t.button.buildList(t.opts.tableColorsButtons),"</div>"));var _="";return t.opts.colorsHEXInput&&(_='<div class="fr-color-hex-layer fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'.concat(t.id,'">\n <div class="fr-input-line">\n <input maxlength="7" id="fr-table-colors-hex-layer-text" data-cmd="applyCustomColor" tabIndex="').concat(++l,'" type="text" placeholder="').concat(t.language.translate("HEX Color"),'" aria-required="true">\n </div>\n <div class="fr-action-buttons">\n <button type="button" class="fr-command fr-submit" tabIndex="').concat(2,'" data-cmd="applyCustomColor" role="button">\n ').concat(t.language.translate("OK"),"\n </button>\n </div>\n </div>")),l={buttons:n,colors:(function(){for(var z='<div class="fr-color-set fr-table-colors">',_e=0;_e<t.opts.tableColors.length;_e++)_e!==0&&_e%t.opts.tableColorsStep==0&&(z+="<br>"),t.opts.tableColors[_e]!="REMOVE"?z+='<span class="fr-command fr-select-color" style="background: '.concat(t.opts.tableColors[_e],';" tabIndex="-1" aria-selected="false" role="button" data-cmd=\'onSelectColor\' data-param1="').concat(t.opts.tableColors[_e],'"><span class="fr-sr-only">').concat(t.language.translate("Color")," ").concat(t.opts.tableColors[_e]," </span></span>"):z+='<span class="fr-command fr-select-color" data-cmd=\'onColorClear\' tabIndex="-1" role="button" title="'.concat(t.language.translate("Clear Formatting"),'">').concat(t.icon.create("tableColorRemove"),'<span class="fr-sr-only">').concat(t.language.translate("Clear Formatting"),"</span></span>");return z+="</div>"})(),custom_color:_},n=t.popups.create("table.colors",l),(function(z){t.events.on("popup.tab",function(_e){var Be,Te,et,St,ot,ct,Ct,jt=v(_e.currentTarget);return!t.popups.isVisible("table.colors")||!jt.is("span, input, button")||(Be=_e.which,Te=!0,o.KEYCODE.TAB==Be?(et=z.find("span.fr-select-color"),(jt.is(et.first())&&_e.shiftKey||jt.is(z.find("span.fr-submit"))&&!_e.shiftKey)&&(et=z.find(".fr-buttons"),Te=!t.accessibility.focusToolbar(et,!!_e.shiftKey)),Te!==!1&&((et=z.find("span.fr-select-color")).add(z.find("input")),et.add(z.find("button.fr-submit")),ot=et.index(jt),ot=_e.shiftKey?((ot-1)%et.length+et.length)%et.length:(ot+1)%et.length,ot=et.get(ot),t.events.disableBlur(),ot.focus(),Te=!1)):o.KEYCODE.ARROW_UP==Be||o.KEYCODE.ARROW_DOWN==Be||o.KEYCODE.ARROW_LEFT==Be||o.KEYCODE.ARROW_RIGHT==Be?(ot=(et=jt.parent().find("span.fr-command")).index(jt),St=t.opts.colorsStep,Ct=Math.floor(et.length/St),ct=ot%St,ot=Math.floor(ot/St)*St+ct,ct=Ct*St,o.KEYCODE.ARROW_UP==Be?ot=((ot-St)%ct+ct)%ct:o.KEYCODE.ARROW_DOWN==Be?ot=(ot+St)%ct:o.KEYCODE.ARROW_LEFT==Be?ot=((ot-1)%ct+ct)%ct:o.KEYCODE.ARROW_RIGHT==Be&&(ot=(ot+1)%ct),Ct=v(et.get(ot)),t.events.disableBlur(),Ct.focus(),Te=!1):o.KEYCODE.ENTER==Be&&(t.button.exec(jt),Te=!1),Te===!1&&(_e.preventDefault(),_e.stopPropagation()),Te)},!0)})(n),n})()).data("type",b),t.popups.setContainer("table.colors",t.$sc),ee=((b=me(ee)).left+b.right)/2,S=b.bottom,C=t.popups.get("table.colors"),B=t.$el.find(".fr-selected-cell").first(),V=C.find(".fr-table-colors-hex-layer input"),ie=C.data("type"),pe=t.popups.get("table.cellProperties"),he="",ie==="tableCellBackgroun
1d"?(B.removeClass("fr-selected-cell"),he=(he=B.css("background-color"))&&he!=="rgba(0, 0, 0, 0)"&&he!=="transparent"?t.helpers.RGBToHex(he):"",B.addClass("fr-selected-cell")):ie==="cell"&&pe.length&&(he=pe.find(".fr-cell-bg-container input").val()),C.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),C.find('span[data-param1="'.concat(he,'"]')).addClass("fr-selected-color fr-active-item"),V.val(he).trigger("change"),t.popups.show("table.colors",ee,S,b.bottom-b.top,!0))},showTableProperties:function(){var b,S,C,B,V,ie,pe,he,ee,n,l,_,z,_e,Be=Y();Be&&(b=(b=t.popups.get("table.tableProperties"))||ta(),_e=yt(),b.data("tableStyle",{}),b.data("borderStyle",""),pe=_e[0],_=pe&&pe.getAttribute("style")||"",z=(n=!!_)&&/background(-color)?\s*:/i.test(_)?_e.css("background-color"):"",S=n&&/border(-color)?\s*:/i.test(_)?_e.css("border-color"):"",C=n&&/border(-style)?\s*:/i.test(_)?_e.css("border-style"):"",B=n&&/border(-width)?\s*:/i.test(_)?_e[0].style.borderWidth:"",V=n&&/(^|\s|;)width\s*:/i.test(_)&&pe?pe.style.width:"",ie=n&&/(^|\s|;)height\s*:/i.test(_)&&pe?pe.style.height:"",pe=n?/\bfloat\s*:\s*right\b/i.test(_)?"right":!/\bfloat\s*:\s*left\b/i.test(_)&&/\bmargin\s*:\s*auto\b/i.test(_)?"center":"left":"left",n="",ee={},_e.is("[class]")&&(_=_e.attr("class").split(/\s+/),he=t.opts.tableStyles,ee=_.reduce(function(Te,et){return he.hasOwnProperty(et)&&(Te[et]=he[et]),Te},{}),n=Object.values(ee).join(", ")),l=function(et,St,ot,ct){ct=t.helpers.isRGBColor(ct)?t.helpers.RGBToHex(ct):ct,b.find(et).val(ct),x(b.find(St),b.find(ot),ct)},_e=b.find(".fr-border-style").find(".fr-dropdown"),_=b.find(".fr-table-style").find(".fr-dropdown"),l("#fr-table-bg",".fr-color-preview",".fr-color-preview-indicator",z),l("#fr-table-border-color",".fr-border-color-preview",".fr-border-color-preview-indicator",S),_e.find("> span").text(t.language.translate(C)),_.find("> span").text(n||" "),Yt(pe),setTimeout(function(){B&&b.find("#fr-table-border-width").val(B).focus(),S&&b.find("#fr-table-border-color").focus(),V&&b.find("#fr-table-width").val(V).focus(),ie&&b.find("#fr-table-height").val(ie).focus(),C&&b.data("borderStyle",C),ee&&b.data("tableStyle",ee),b.find("#fr-table-bg").focus()},10),t.popups.setContainer("table.tableProperties",t.$sc),_e=((z=me(Be)).left+z.right)/2,t.popups.show("table.tableProperties",_e,z.bottom,z.bottom-z.top,!0))},hideTableProperties:function(){t.popups.hide("table.tableProperties")},updateTableAlign:Yt,back:function(b){var S,C,B,V;b&&t.popups.isVisible("table.colors")?(t.popups.hide("table.colors"),(V=Y())&&(C=(C=t.popups.get(S=(B=b==="table"||b==="border")?"table.tableProperties":"table.cellProperties"))||(B?ta:te)(),t.popups.setContainer(S,t.$sc),V=(B=me(V)).left+(B.right-B.left)/2,t.popups.show(S,V,B.bottom,B.bottom-B.top,!0),C.find(b==="table"?".fr-btn-table-bg-color":b==="border"?".fr-btn-table-border-bg-color":".fr-btn-cell-bg-color").focus())):0<ht().length?g():(t.popups.hide("table.insert"),t.toolbar.showInline())},verticalAlign:function(b){t.$el.find(".fr-selected-cell").css("vertical-align",b)},horizontalAlign:function(b){var S=t.$el.find(".fr-selected-cell");S.css("text-align",b),S.children().css("text-align","")},applyStyle:function(b,S,C,B){0<S.length&&(t.opts.useClasses||(S.get(0).tagName==="TABLE"?(function V(ie,pe){var he=ie.childNodes;if(0<he.length)for(var ee=0;ee<he.length;ee++)he[ee].tagName==="TD"?pe==="fr-dashed-borders"||pe==="fr-highlighted"||pe==="fr-thick"?Vt(he[ee]):pe==="fr-alternate-rows"&&he[ee].style.removeProperty("background-color"):V(he[ee],pe)})(S.get(0),b):Vt(S.get(0))),C||((C=Object.keys(B)).splice(C.indexOf(b),1),S.removeClass(C.join(" "))),S.toggleClass(b))},selectedTable:yt,selectedCells:ht,customColor:function(){var b=t.popups.get("table.colors").find(".fr-table-colors-hex-layer input"),S=b.val(),C=S;S&&S.length&&q(C=S.indexOf("#")!==0?"#"+S:C),b.val("")},selectCells:R,resetAll:Ke,showCellPropertiesPopup:function(){var b,S,C,B,V,ie,pe,he,ee,n,l,_,z,_e,Be=Y();Be&&((b=t.popups.get("table.cellProperties")||te()).find("#fr-cell-bg, #fr-cell-width, #fr-cell-height, #fr-cell-padding").val(""),Ke(),x(b.find(".fr-color-preview"),b.find(".fr-color-preview-indicator"),""),(S=t.table.selectedCells()).length)&&(B=!(C=null),ie=!(V=null),he=!(pe=null),n=!(ee=null),l=function(et){return et==="rgba(0, 100, 255, 0.15)"}
1,Array.from(S).forEach(function(Ct,et){var St,Ct=v(Ct),ot=Ct.css("background-color"),ot=(ot&&ot!=="rgba(0, 0, 0, 0)"&&ot!=="transparent"&&(St=t.helpers.RGBToHex(ot)),Ct.attr("data-cell-width")),ct=Ct.attr("data-cell-height"),Ct=Ct.attr("data-cell-padding");et===0?(V=ot||null,pe=ct||null,ee=Ct||null,C=St||null):(ot!==V&&(ie=!1),ct!==pe&&(he=!1),Ct!==ee&&(n=!1),St!==C&&(B=!1))}),_="",S.length===1?(_e=(z=v(S[0])).css("background-color"),(z[0]&&z[0].hasAttribute("style")&&/background(-color)?:/i.test(z.attr("style"))||!l(_e))&&(_=t.helpers.isRGBColor(_e)?t.helpers.RGBToHex(_e):_e)):B&&C&&Array.from(S).every(function(et){var St=v(et),et=et.getAttribute("style")||"",et=/background(-color)?:/i.test(et),St=St.css("background-color");return et||!l(St)})&&(_=t.helpers.isRGBColor(C)?t.helpers.RGBToHex(C):C),b.find("#fr-cell-bg").val(_),x(b.find(".fr-color-preview"),b.find(".fr-color-preview-indicator"),_),ie&&V&&b.find("#fr-cell-width").val(V),he&&pe&&b.find("#fr-cell-height").val(pe),n&&ee&&b.find("#fr-cell-padding").val(ee),t.popups.setContainer("table.cellProperties",t.$sc),_e=(z=me(Be)).left+(z.right-z.left)/2,t.popups.show("table.cellProperties",_e,z.bottom,z.bottom-z.top,!0))},updateSelectedColor:q,placeCursorInFirstCell:ge}},o.RegisterCommand("tableProperties",{title:"Table Properties",icon:"tablePropertiesIcon",undo:!1,focus:!1,popup:!0,callback:function(){this.table.showTableProperties()}}),o.RegisterCommand("openColorPicker",{title:"Select color",focus:!1,popup:!0,callback:function(t,s){this.table.showColorsPopup(s)}}),o.RegisterCommand("onCancel",{title:"Cancel",callback:function(){this.popups.hide("table.tableProperties"),this.popups.hide("table.cellProperties"),this.table.showEditPopup()}}),o.RegisterCommand("applyCustomColor",{title:"OK",undo:!0,callback:function(){var s=this.popups.get("table.colors"),t=s.find(".fr-table-colors-hex-layer input").val(),s=s.data("type");
vendor: 3,262 bytes, line 1
1s==="tableCellBackground"&&(this.table.setBackground(t),s=null),this.table.back(s),this.table.customColor()}}),o.RegisterCommand("onSelectColor",{undo:!0,focus:!1,callback:function(t,s){var h=this.popups.get("table.colors").data("type");h==="tableCellBackground"?this.table.setBackground(s):(this.table.back(h),this.table.updateSelectedColor(s))}}),o.RegisterCommand("tableAlign",{title:"Table Align",undo:!0,callback:function(t,s){this.table.updateTableAlign(s)}}),o.RegisterCommand("tableBorderStyle",{title:"",type:"dropdown",focus:!0,undo:!0,refreshAfterCallback:!0,displaySelection:function(t){return t.opts.tableBorderStyle},html:function(){for(var t='<ul class="fr-dropdown-list" role="presentation">',s=this.opts.tableBorderStyle,h=0;h<s.length;h++){var a=this.language.translate(s[h]);t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableBorderStyle" data-param1="'.concat(s[h],'" title="').concat(a,'">').concat(a,"</a></li>")}return t+="</ul>"},callback:function(t,s){var h=this.popups.get("table.tableProperties"),a=h.find(".fr-border-style").find(".fr-dropdown");a.find("> span").text(this.language.translate(s)),h.data("borderStyle",s),a.focus()},refreshOnShow:function(t,s){var h=this.popups.get("table.tableProperties").data("borderStyle");s.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),s.find('.fr-command[data-param1="'.concat(h,'"]')).addClass("fr-active").attr("aria-selected",!0)}}),o.DefineIcon("tableStyle",{NAME:"paint-brush",SVG_KEY:"tableStyle"}),o.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!0,undo:!0,displaySelectionWidth:"300",refreshAfterCallback:!0,displaySelection:function(t){var s=t.popups.get("table.edit");return s&&s.find(".fr-btn.fr-blink").attr("data-cmd")==="tableProperties"?t.opts.tableStyles:null},html:function(){var t,s='<ul class="fr-dropdown-list" role="presentation">',h=this.opts.tableStyles;for(t in h)h.hasOwnProperty(t)&&(s+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'.concat(t,'" title="').concat(this.language.translate(h[t]),'">').concat(this.language.translate(h[t]),"</a></li>"));return s+="</ul>"},callback:function(t,s){var h,a,y,j=this.popups.get("table.tableProperties");j&&j.isVisible()?(h=j.find(".fr-table-style").find(".fr-dropdown"),y=this.opts.tableStyles,!this.opts.tableMultipleStyles&&j.data("tableStyle")&&j.removeData("tableStyle"),(a=j.data("tableStyle")||{})[s]?delete a[s]:a[s]=y[s],j.data("tableStyle",a),y=Object.keys(a).length?Object.values(a).join(", "):" ",h.find("> span").text(y),h.focus()):this.table.applyStyle(s,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(t,s){var h=this,a=this.$el.find(".fr-selected-cell").closest("table"),y=this.popups.get("table.tableProperties");a&&s.find(".fr-command").each(function(j,P){var ne=h.$(P).data("param1"),ne=y&&y.isVisible()?y.data("tableStyle")&&y.data("tableStyle")[ne]:a.hasClass(ne);ne&&h.$(P).toggleClass("fr-active",ne).attr("aria-selected",ne)})}}),o.RegisterCommand("onColorClear",{undo:!0,focus:!1,callback:function(){var t=this.popups.get("table.colors"),s=t.data("type");
1s==="tableCellBackground"?this.table.setBackground(""):(this.table.back(s),t.find("#fr-table-colors-hex-layer-text").val(""),this.table.updateSelectedColor(""))}}),o.RegisterCommand("applyTableProperties",{title:"Apply Table Properties",undo:!0,focus:!0,callback:function(){var v=this.popups.get("table.tableProperties"),t=v.find("#fr-table-bg").val(),s=v.find("#fr-table-border-color").val(),h=this.table.selectedTable(),a=v.find("#fr-table-width").val(),y=v.find("#fr-table-height").val(),j=v.find("#fr-table-border-width").val(),P=v.data("borderStyle"),ne=v.data("tableAlign"),ue=v.data("tableStyle"),v=(h.css("background-color",!t||t==="REMOVE"||t==="transparent"||t==="rgba(0, 0, 0, 0)"?"":t),!s||s==="REMOVE"||s==="transparent"||s==="rgba(0, 0, 0, 0)"),g=(h.css("border-color",v?"":s),function(E){return E===""||(E=E.trim(),/^-?\d+(\.\d+)?$/.test(E)&&(E+="px"),/^-?\d+(\.\d+)?(px|%)$/.test(E)?E:null)});if(a&&g(a)?h.css("width",g(a)):h.css("width",""),y&&g(y)?h.css("height",g(y)):h.css("height",""),j&&g(j)?h.css("border-width",g(j)):h.css("border-width",""),P&&h.css("border-style",P),ne==="center"?(h.css("margin","auto"),h.css("float","")):(h.parent().is("li")&&h.parent().css("display","list-item flow-root"),h.css("float",ne),h.css("margin","")),h.removeAttr("class"),ue&&0<Object.keys(ue).length)for(var I in ue)ue.hasOwnProperty(I)&&h.addClass(I);this.popups.hide("table.tableProperties")}}),o.RegisterCommand("tableCellProperties",{title:"Cell Properties",icon:"tableCellProperties",undo:!1,focus:!1,popup:!0,callback:function(){this.table.showCellPropertiesPopup()},refresh:function(t){var s=0<this.table.selectedCells().length;t.toggleClass("fr-disabled",!s).attr("aria-disabled",!s)}}),o.RegisterCommand("applyCellProperties",{title:"Apply Cell Properties",undo:!0,focus:!1,callback:function(){var t=this.$,s=this.popups.get("table.cellProperties"),h=function(k,E,Q,x){k=t(k),Q?(x&&k.attr(x,Q),Q!==k[0].style[E]&&(["width","height"].includes(E)&&k.removeAttr(E),k.css(E,Q))):(k.css(E,""),x&&k.removeAttr(x),["width","height"].includes(E)&&k.removeAttr(E))},a=s.find("#fr-cell-bg").val(),y=s.find("#fr-cell-width").val(),j=s.find("#fr-cell-height").val(),P=s.find("#fr-cell-padding").val(),ne=s.data("bg-modified")===!0,ue=s.data("width-modified")===!0,v=s.data("height-modified")===!0,g=s.data("padding-modified")===!0;
1this.table.selectedCells().forEach(function(I){var k=t(I),E=(ne&&k.css("background-color",!a||a==="REMOVE"||a==="transparent"||a==="rgba(0, 0, 0, 0)"?"":a),function(x){return x===""||(x=x.trim(),/^-?\d+(\.\d+)?$/.test(x)&&(x+="px"),/^-?\d+(\.\d+)?(px|%)$/.test(x)?x:null)});ue&&E(y)&&h(I,"width",y,"data-cell-width"),v&&E(j)&&h(I,"height",j,"data-cell-height"),g&&E(P)&&h(I,"padding",P,"data-cell-padding")}),this.table.resetAll(),this.popups.hide("table.cellProperties")}}),o.DefineIcon("insertTable",{NAME:"table",SVG_KEY:"insertTable"}),o.RegisterCommand("insertTable",{title:"Insert Table",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("table.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("table.insert")):this.table.showInsertPopup()},plugin:"table"}),o.RegisterCommand("tableInsert",{callback:function(t,s,h){this.table.insert(s,h),this.popups.hide("table.insert")}}),o.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading",SVG_KEY:"tableHeader"}),o.RegisterCommand("tableHeader",{title:"Table Header",focus:!1,toggle:!0,callback:function(){this.popups.get("table.edit").find('.fr-command[data-cmd="tableHeader"]').hasClass("fr-active")?this.table.removeHeader():this.table.addHeader()},refresh:function(t){var s=this.table.selectedTable();0<s.length&&(s.find("> thead").length===0?t.removeClass("fr-active").attr("aria-pressed",!1):t.addClass("fr-active").attr("aria-pressed",!0))}}),o.DefineIcon("tableFooter",{NAME:"table",FA5NAME:"table",SVG_KEY:"tableFooter"}),o.RegisterCommand("tableFooter",{title:"Table Footer",focus:!1,toggle:!0,callback:function(){this.popups.get("table.edit").find('.fr-command[data-cmd="tableFooter"]').hasClass("fr-active")?this.table.removeFooter():this.table.addFooter()},refresh:function(t){var s=this.table.selectedTable();0<s.length&&(s.find("tfoot").length===0?t.removeClass("fr-active").attr("aria-pressed",!1):t.addClass("fr-active").attr("aria-pressed",!0))}}),o.DefineIcon("tableRows",{NAME:"bars",SVG_KEY:"row"}),o.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below",delete:"Delete row"},html:function(){var t,s='<ul class="fr-dropdown-list" role="presentation">',h=o.COMMANDS.tableRows.options;for(t in h)h.hasOwnProperty(t)&&(s+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+t+'" title="'+this.language.translate(h[t])+'">'+this.language.translate(h[t])+"</a></li>");return s+="</ul>"},callback:function(t,s){s=="above"||s=="below"?this.table.insertRow(s):this.table.deleteRow()}}),o.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90",SVG_KEY:"columns"}),o.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after",delete:"Delete column"},html:function(){var t,s='<ul class="fr-dropdown-list" role="presentation">',h=o.COMMANDS.tableColumns.options;for(t in h)h.hasOwnProperty(t)&&(s+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'.concat(t,'" title="').concat(this.language.translate(h[t]),'">').concat(this.language.translate(h[t]),"</a></li>"));return s+="</ul>"},callback:function(t,s){s=="before"||s=="after"?this.table.insertColumn(s):this.table.deleteColumn()}}),o.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square",SVG_KEY:"cellOptions"}),o.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var t,s='<ul class="fr-dropdown-list" role="presentation">',h=o.COMMANDS.tableCells.options;for(t in h)h.hasOwnProperty(t)&&(s+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'.concat(t,'" title="').concat(this.language.translate(h[t]),'">').concat(this.language.translate(h[t]),"</a></li>"));return s+="</ul>"},callback:function(t,s){s=="merge"?this.table.mergeCells():s=="vertical-split"?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(t,s){(1<this.$el.find(".fr-selected-cell").length?(s.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),s.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",!0),s.find('a[data-param1="merge"]')):(s.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),s.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),s.find('a[data-param1="horizontal-split"]'))).removeClass("fr-disabled").attr("aria-disabled",!1)}}),o.DefineIcon("tableRemove",{NAME:"trash",SVG_KEY:"removeTable"}),o.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}}),o.DefineIcon("tableBack",{NAME:"arrow-left",SVG_KEY:"back"}),o.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){var t=this.popups.get("table.colors"),t=t&&t.length?t.data("type"):null;
vendor: 3,382 bytes, line 1
1this.table.back(t=t==="tableCellBackground"?null:t)}}),o.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"verticalAlignMiddle"}),o.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var t,s='<ul class="fr-dropdown-list" role="presentation">',h=o.COMMANDS.tableCellVerticalAlign.options;for(t in h)h.hasOwnProperty(t)&&(s+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'.concat(t.toLowerCase(),'" title="').concat(this.language.translate(h[t]),'">').concat(this.language.translate(t),"</a></li>"));return s+="</ul>"},callback:function(t,s){this.table.verticalAlign(s)},refreshOnShow:function(t,s){s.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),o.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left",SVG_KEY:"alignLeft"}),o.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),o.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),o.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"}),o.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"}),o.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var t,s='<ul class="fr-dropdown-list" role="presentation">',h=o.COMMANDS.tableCellHorizontalAlign.options;for(t in h)h.hasOwnProperty(t)&&(s+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'.concat(t,'" title="').concat(this.language.translate(h[t]),'">').concat(this.icon.create("align-".concat(t)),'<span class="fr-sr-only">').concat(this.language.translate(h[t]),"</span></a></li>"));return s+="</ul>"},callback:function(t,s){this.table.horizontalAlign(s)},refresh:function(t){var s=this.table.selectedCells(),h=this.$;s.length&&t.find("> *").first().replaceWith(this.icon.create("align-".concat(this.helpers.getAlignment(h(s[0])))))},refreshOnShow:function(t,s){s.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell").first())+'"]').addClass("fr-active").attr("aria-selected",!0)}}),o.DefineIcon("tableCellStyle",{NAME:"magic",SVG_KEY:"cellStyle"}),o.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var t,s='<ul class="fr-dropdown-list" role="presentation">',h=this.opts.tableCellStyles;for(t in h)h.hasOwnProperty(t)&&(s+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'.concat(t,'" title="').concat(this.language.translate(h[t]),'">').concat(this.language.translate(h[t]),"</a></li>"));return s+="</ul>"},callback:function(t,s){this.table.applyStyle(s,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(t,s){var h=this.$,a=this.$el.find(".fr-selected-cell").first();a&&s.find(".fr-command").each(function(){var y=h(this).data("param1"),y=a.hasClass(y);h(this).toggleClass("fr-active",y).attr("aria-selected",y)})}}
1),o.DefineIcon("tableCellBackground",{NAME:"tint",SVG_KEY:"cellBackground"}),o.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup("tableCellBackground")}}),o.DefineIcon("tableColorRemove",{NAME:"eraser",SVG_KEY:"remove"}),o.DefineIcon("tableCellProperties",{template:"svgMultiplePath",PATHS:'\n <path fill-rule="evenodd" clip-rule="evenodd" d="M19.513 3.25C20.9736 3.25 22.1577 4.43408 22.1577 5.89471V12.6517L22.1546 12.6526C21.8784 12.4577 21.6084 12.2933 21.3448 12.1593C21.1821 12.0767 21.0123 11.9963 20.8353 11.9183V8.53928H15.546V12.2584C15.3417 12.3719 15.1339 12.5033 14.9223 12.6526L12.7375 11.9949L11.6254 13.8287H8.93418V16.4735H12.9027C12.893 16.6127 12.8882 16.7519 12.8882 16.891C12.8882 17.1927 12.911 17.4943 12.9565 17.7959H3.64471C2.18408 17.7959 1 16.6118 1 15.1512V5.89471C1 4.43408 2.18408 3.25 3.64471 3.25H19.513ZM19.513 4.57235H15.546V7.21692H20.8353V5.89471C20.8353 5.16439 20.2433 4.57235 19.513 4.57235ZM8.93418 4.57235H14.2236V
17.21692H8.93418V4.57235ZM3.64471 4.57235H7.61183V7.21692H2.32235V5.89471C2.32235 5.16439 2.91439 4.57235 3.64471 4.57235ZM2.32235 12.5063V8.53928H7.61183V12.5063H2.32235ZM2.32235 15.1512V13.8287H7.61183V16.4735H3.64471C2.91439 16.4735 2.32235 15.8815 2.32235 15.1512Z" fill="#333333"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.102 20.6423L17.4335 22.25H19.6434L19.9749 20.6423C20.1959 20.553 20.4031 20.4592 20.5964 20.361C20.7898 20.2627 20.9878 20.1421 21.1903 19.9992L22.7925 20.4815L23.8974 18.6595L22.6268 17.5877C22.6636 17.3555 22.682 17.1232 22.682 16.891C22.682 16.6588 22.6636 16.4266 22.6268 16.1944L23.8974 15.1226L22.7925 13.3005L21.1903 13.7828C20.9878 13.6399 20.7898 13.5193 20.5964 13.4211C20.4031 13.3228 20.1959 13.2291 19.9749 13.1397L19.6434 11.5321H17.4335L17.102 13.1397C16.881 13.2291 16.6739 13.3228 16.4805 13.4211C16.2871 13.5193 16.0892 13.6399 15.8866 13.7828L14.2844 13.3005L13.1795 15.1226L14.4502 16.1944C14.4133 16.4266 14.3949 16.6588 14.3949 16.891C14.3949 17.1232 14.4133 17.3555 14.4502 17.5877L13.1795 18.6595L14.2844 20.4815L15.8866 19.9992C16.0892 20.1421 16.2871 20.2627 16.4805 20.361C16.6739 20.4592 16.881 20.553 17.102 20.6423ZM20.0992 18.4049C19.6664 18.8247 19.1462 19.0346 18.5385 19.0346C17.9307 19.0346 17.4105 18.8247 16.9777 18.4049C16.545 17.9851 16.3286 17.4805 16.3286 16.891C16.3286 16.3015 16.545 15.7969 16.9777 15.3771C17.4105 14.9573 17.9307 14.7474 18.5385 14.7474C19.1462 14.7474 19.6664 14.9573 20.0992 15.3771C20.532 15.7969 20.7483 16.3015 20.7483 16.891C20.7483 17.4805 20.532 17.9851 20.0992 18.4049Z" fill="#333333"/>\n '}),o.DefineIcon("tablePropertiesIcon",{template:"svgMultiplePath",viewBox:"0 0 24 24",PATHS:'\n <path fill-rule="evenodd" clip-rule="evenodd" d="M22.1577 5.89471C22.1577 4.43408 20.9736 3.25 19.513 3.25H3.64471C2.18408 3.25 1 4.43408 1 5.89471V15.1512C1 16.6118 2.18408 17.7959 3.64471 17.7959H12.9565C12.911 17.4943 12.8882 17.1927 12.8882 16.891C12.8882 16.7519 12.893 16.6127 12.9027 16.4735H8.93418V13.8287H11.6254L12.4273 12.5063H8.93418V8.53928H14.2236V12.4422L14.9223 12.6526C15.1339 12.5033 15.3417 12.3719 15.546 12.2584V8.53928H20.8353V11.9183C21.0123 11.9963 21.1821 12.0767 21.3448 12.1593C21.6084 12.2933 21.8784 12.4577 22.1546 12.6526L22.1577 12.6517V5.89471ZM15.546 4.57235H19.513C20.2433 4.57235 20.8353 5.16439 20.8353 5.89471V7.21692H15.546V4.57235ZM14.2236 4.57235H8.93418V7.21692H14.2236V4.57235ZM7.61183 4.57235H3.64471C2.91439 4.57235 2.32235 5.16439 2.32235 5.89471V7.21692H7.61183V4.57235ZM2.32235 8.53928V12.5063H7.61183V8.53928H2.32235ZM2.32235 13.8287V15.1512C2.32235 15.8815 2.91439 16.4735 3.64471 16.4735H7.61183V13.8287H2.32235Z" fill="#333333"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.102 20.6423L17.4335 22.25H19.6434L19.9749 20.6423C20.1959 20.553 20.4031 20.4592 20.5964 20.361C20.7898 20.2627 20.9878 20.1421 21.1903 19.9992L22.7925 20.4815L23.8974 18.6595L22.6268 17.5877C22.6636 17.3555 22.682 17.1232 22.682 16.891C22.682 16.6588 22.6636 16.4266 22.6268 16.1944L23.8974 15.1226L22.7925 13.3005L21.1903 13.7828C20.9878 13.6399 20.7898 13.5193 20.5964 13.4211C20.4031 13.3228 20.1959 13.2291 19.9749 13.1397L19.6434 11.5321H17.4335L17.102 13.1397C16.881 13.2291 16.6739 13.3228 16.4805 13.4211C16.2871 13.5193 16.0892 13.6399 15.8866 13.7828L14.2844 13.3005L13.1795 15.1226L14.4502 16.1944C14.4133 16.4266 14.3949 16.6588 14.3949 16.891C14.3949 17.1232 14.4133 17.3555 14.4502 17.5877L13.1795 18.6595L14.2844 20.4815L15.8866 19.9992C16.0892 20.1421 16.2871 20.2627 16.4805 20.361C16.6739 20.4592 16.881 20.553 17.102 20.6423ZM20.0992 18.4049C19.6664 18.8247 19.1462 19.0346 18.5385 19.0346C17.9307 19.0346 17.4105 18.8247 16.9777 18.4049C16.545 17.9851 16.3286 17.4805 16.3286 16.891C16.3286 16.3015 16.545 15.7969 16.9777 15.3771C17.4105 14.9573 17.9307 14.7474 18.5385 14.7474C19.1462 14.7474 19.6664 14.9573 20.0992 15.3771C20.532 15.7969 20.7483 16.3015 20.7483 16.891C20.7483 17.4805 20.532 17.9851 20.0992 18.4049Z" fill="#333333"/>\n '}),o.DefineIcon("leftTableAlign",{template:"svgMultiplePath",viewBox:"0 0 24 24",PATHS:'\n <path d="M18.3333 3V4.33333H1V3H18.3333Z" fill="#999998"/>\n <path d="M18.3333 15V16.3333H1V15H18.3333Z" fill="#999998"/>\n <path d="M18.3333 6.45801V7.79134H13V6.45801H18.3333Z" fill="#999998"/>\n <path d="M18.3333 9.12467V10.458H13V9.12467H18.3333Z" fill="#999998"/>\n <path d="M18.3333 11.7913V13.1247H13V11.7913H18.3333Z" fill="#999998"/>\n <path d="M10.3333 12.3333V13.6667H2.33333V12.3333H10.3333ZM10.3333 7H2.33333V13.6667C1.6431 13.6667 1.07495 13.1422 1.00651 12.4701L1 12.3333V7C1 6.26362 1.59695 5.66667 2.33333 5.66667H10.3333C11.0697 5.66667 11.6667 6.26362 11.6667 7V12.3333L11.6602 12.4701C11.5917 13.1422 11.0236 13.6667 10.3333 13.6667V7Z" fill="#333333"/>\n '}),o.DefineIcon("leftTableAlignActive",{template:"svgMultiplePath",viewBox:"0 0 24 24",PATHS:'\n <path d="M18.8333 3.5V4.83333H1.5V3.5H18.8333Z" fill="#90B7FF"/>\n <path d="M18.8333 15.5V16.8333H1.5V15.5H18.8333Z" fill="#90B7FF"/>\n <path d="M18.8333 6.95801V8.29134H13.5V6.95801H18.8333Z" fill="#90B7FF"/>\n <path d="M18.8333 9.62467V10.958H13.5V9.62467H18.8333Z" fill="#90B7FF"/>\n <path d="M18.8333 12.2913V13.6247H13.5V12.2913H18.8333Z" fill="#90B7FF"/>\n <path d="M10.8333 12.8333V14.1667H2.83333V12.8333H10.8333ZM10.8333 7.5H2.83333V14.1667C2.1431 14.1667 1.57495 13.6422 1.50651 12.9701L1.5 12.8333V7.5C1.5 6.76362 2.09695 6.16667 2.83333 6.16667H10.8333C11.5697 6.16667 12.1667 6.76362 12.1667 7.5V12.8333L12.1602 12.9701C12.0917 13.6422 11.5236 14.1667 10.8333 14.1667V7.5Z" fill="#2A77FF"/>\n '}),o.DefineIcon("centerTableAlign",{template:"svgMultiplePath",viewBox:"0 0 24 24",PATHS:'\n <path d="M18.3333 3V4.33333H1V3H18.3333Z" fill="#999998"/>\n <path d="M18.3333 15V16.3333H1V15H18.3333Z" fill="#999998"/>\n <path d="M13 12.3333V13.6667H6.33333V12.3333H13ZM13 7H6.33333V13.6667L6.19661 13.6602C5.56938 13.5963 5.07038 13.0973 5.006
151 12.4701L5 12.3333V7C5 6.26362 5.59695 5.66667 6.33333 5.66667H13C13.7364 5.66667 14.3333 6.26362 14.3333 7V12.3333L14.3268 12.4701C14.263 13.0973 13.764 13.5963 13.1367 13.6602L13 13.6667V7Z" fill="#333333"/>\n '}),o.DefineIcon("centerTableAlignActive",{template:"svgMultiplePath",viewBox:"0 0 24 24",PATHS:'\n <path d="M18.8333 3.5V4.83333H1.5V3.5H18.8333Z" fill="#90B7FF"/>\n <path d="M18.8333 15.5V16.8333H1.5V15.5H18.8333Z" fill="#90B7FF"/>\n <path d="M13.5 12.8333V14.1667H6.83333V12.8333H13.5ZM13.5 7.5H6.83333V14.1667L6.69661 14.1602C6.06938 14.0963 5.57038 13.5973 5.50651 12.9701L5.5 12.8333V7.5C5.5 6.76362 6.09695 6.16667 6.83333 6.16667H13.5C14.2364 6.16667 14.8333 6.76362 14.8333 7.5V12.8333L14.8268 12.9701C14.763 13.5973 14.264 14.0963 13.6367 14.1602L13.5 14.1667V7.5Z" fill="#2A77FF"/>\n '}),o.DefineIcon("rightTableAlignActive",{template:"svgMultiplePath",viewBox:"0 0 24 24",PATHS:'\n <path d="M18.8333 3.5V4.83333H1.5V3.5H18.8333Z" fill="#90B7FF"/>\n <path d="M18.8333 15.5V16.8333H1.5V15.5H18.8333Z" fill="#90B7FF"/>\n <path d="M6.83333 6.95801V8.29134H1.5V6.95801H6.83333Z" fill="#90B7FF"/>\n <path d="M6.83333 9.62467V10.958H1.5V9.62467H6.83333Z" fill="#90B7FF"/>\n <path d="M6.83333 12.2913V13.6247H1.5V12.2913H6.83333Z" fill="#90B7FF"/>\n <path d="M17.5 12.8333V14.1667H9.5V12.8333H17.5ZM17.5 7.5H9.5V14.1667C8.80976 14.1667 8.24162 13.6422 8.17318 12.9701L8.16667 12.8333V7.5C8.16667 6.76362 8.76362 6.16667 9.5 6.16667H17.5C18.2364 6.16667 18.8333 6.76362 18.8333 7.5V12.8333L18.8268 12.9701C18.7584 13.6422 18.1902 14.1667 17.5 14.1667V7.5Z" fill="#2A77FF"/>\n '}),o.DefineIcon("rightTableAlign",{template:"svgMultiplePath",viewBox:"0 0 24 24",PATHS:'\n <path d="M18.3333 3V4.33333H1V3H18.3333Z" fill="#999998"/>\n <path d="M18.3333 15V16.3333H1V15H18.3333Z" fill="#999998"/>\n <path d="M6.33333 6.45801V7.79134H1V6.45801H6.33333Z" fill="#999998"/>\n <path d="M6.33333 9.12468V10.458H1V9.12468H6.33333Z" fill="#999998"/>\n <path d="M6.33333 11.7913V13.1247H1V11.7913H6.33333Z" fill="#999998"/>\n <path d="M17 12.3333V13.6667H9V12.3333H17ZM17 7H9V13.6667C8.30976 13.6667 7.74162 13.1422 7.67318 12.4701L7.66667 12.3333V7C7.66667 6.26362 8.26362 5.66667 9 5.66667H17C17.7364 5.66667 18.3333 6.26362 18.3333 7V12.3333L18.3268 12.4701C18.2584 13.1422 17.6902 13.6667 17 13.6667V7Z" fill="#333333"/>\n '})})});var Eo=Ba((bi,So)=>{"use strict";(function(o,e){typeof bi=="object"&&typeof So<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(bi,function(o){"use strict";o.URLRegEx="(^| |\\u00A0)(".concat(o.LinkRegEx,"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$"),o.PLUGINS.url=function(e){var d=e.$,t=null;function s(P,ne,ue){for(var v="";ue.length&&ue[ue.length-1]==".";)v+=".",ue=ue.substring(0,ue.length-1);var g=ue;if(e.opts.linkConvertEmailAddress)e.helpers.isEmail(g)&&!/^mailto:.*/i.test(g)&&(g="mailto:".concat(g));else if(e.helpers.isEmail(g))return ne+ue;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(g)||(g="//".concat(g)),(ne||"")+"<a".concat(e.opts.linkAlwaysBlank?' target="_blank"':"").concat(t?' rel="'.concat(t,'"'):"",' data-fr-linked="true" href="').concat(g,'">').concat(ue.replace(/&/g,"&").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"</a>").concat(v)}var h=function(){return new RegExp(o.URLRegEx,"gi")};function a(P){return e.opts.linkAlwaysNoFollow&&(t="nofollow"),e.opts.linkAlwaysBlank&&(e.opts.linkNoOpener&&(t?t+=" noopener":t="noopener"),e.opts.linkNoReferrer)&&(t?t+=" noreferrer":t="noreferrer"),P.replace(h(),s)}function y(P){return P=P.split(" "),P[P.length-1]}function j(){var P,ne=e.selection.ranges(0),ue=ne.startContainer;if(ue.nodeType===Node.TEXT_NODE){if(!ue||ne.startOffset!==(ue.textContent||"").length){e.markers.insert();var ne=e.$el.find(".fr-marker"),v=ue.textContent.match(/(^| |\u00A0)(((([a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,})(\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))|((ftp|http|https):\/\/[a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,})|(www\.[a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,}\.[a-z0-9-]{2,24})|((ftp|http|https):\/\/[\u0021-\uffff]{1,}@[a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,}))((:[0-9]{1,5})|)(((\/|\?|#)[a-z\u00a1-\uffff0-9@?\|!^=%&\/~+#-\'*-_{}]*)|())|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\.[a-z0-9+-_]{1,}))$/gi);if(ne.remove(),!v)return}!(function g(I){return!!I&&(I.tagName==="A"||!(!I.parentNode||I.parentNode==e.el)&&g(I.parentNode))})(ue)&&(h().test(y(ue.textContent))?(0<(ne=ue.textContent.length)&&ue.textContent.charAt(ne-1)===","?(d(ue).before(a(ue.textContent.substring(0,ne-1))),(P=d(ue.parentNode).find("a[data-fr-linked]")).removeAttr("data-fr-linked"),ue.textContent=",",(v=e.win.getSelection().getRangeAt(0)).setStart(ue,1),v.setEnd(ue,1)):(d(ue).before(a(ue.textContent)),(P=d(ue.parentNode).find("a[data-fr-linked]")).removeAttr("data-fr-linked"),ue.parentNode.removeChild(ue)),e.events.trigger("url.linked",[P.get(0)])):ue.textContent.split(" ").length<=2&&ue.previousSibling&&ue.previousSibling.tagName==="A"&&(ne=ue.previousSibling.innerText+ue.textContent,v=ue.textContent.length,h().test(y(ne)))&&ue.textContent.charAt(v-1)!==","&&(P=new DOMParser().parseFromString(a(ne),"text/html").body.childNodes,ue.parentNode.replaceChild(P[0],ue.previousSibling),P.length&&d(ue).before(P[0]),ue.parentNode.removeChild(ue)))}}return{_init:function(){e.events.on("keypress",function(P){!e.selection.isCollapsed()||P.key!=")"&&P.key!="("||j()},!0),e.events.on("keydown",function(P){P=P.which,!e.selection.isCollapsed()||P!=o.KEYCODE.ENTER&&P!=o.KEYCODE.SPACE||j()},!0),e.events.on("paste.beforeCleanup",function(P){if(e.helpers.isURL(P)&&!e.$el[0].getAttribute("plainpaste"))return ne=null,e.opts.linkAlwaysBlank&&(e.opts.linkNoOpener&&(ne?ne+=" noopener":ne="noopener"),e.opts.linkNoReferrer)&&(ne?ne+=" noreferrer":ne="noreferrer"),"<a".concat(e.opts.linkAlwaysBlank?' target="_blank"':"").concat(ne?' rel="'.concat(ne,'"'):"",' href="').concat(P,'" >').concat(P,"</a>");if(e.$el[0].getAttribute("plainpaste")){var ne=P;if(typeof ne=="string")return(ne=ne.replace(/&/g,"&")).replace(/(?:https?|ftp|file):\/\/(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.'\u2019"`()[\]{}\\]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.'\u2019"`()[\]{}\\])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.'\u2019"`()[\]{}\\]*\)|[-A-Z0-9+&@#\/%=~_|$'\u2019"`()[\]{}\\])|www\.(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.'\u2019"`()[\]{}\\]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.'\u2019"`()[\]{}\\])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.'\u2019"`()[\]{}\\]*\)|[-A-Z0-9+&@#\/%=~_|$'\u2019"`()[\]{}\\])|(?:[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,})|(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}(?:\/[^\s<]*)?/gim,a)}})}}}})});var To=Ba((_i,Ao)=>{"use strict";(function(o,e){typeof _i=="object"&&typeof Ao<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(_i,function(o){"use strict";Object.assign(o.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Object.assign(o.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg","mp3","mpeg","url"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","videoDisplay","videoAlign","videoSize","autoplay"],videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoResponsive:!1,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},videoUploadToS3:!1,videoUploadToAzure:!1,videoUploadURL:null}),o.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\/?((shorts\/)|(v=))?([^#\&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/|shorts\/)?([0-9a-zA-Z_\-]+)(.*)?/g,url_text:"https://www.youtube.com/embed/$1?$2",html:'<iframe width="640" height="360" src="{url}&wmode=opaque&rel=0" frameborder="0" allowfullscreen></iframe>',provider:"youtube"},{test_regex:/^https?:\/\/(www\.)?vimeo\.com\/(event\/\d+(\/embed\/[A-Za-z0-9]+)?|\d+)/i,url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo\.com\/(?:(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/\d+\/video\/|video\/|event\/\d+\/embed\/)?([0-9]+)(?:\/[a-zA-Z0-9_\-]+)?(\?.*)?)/i,url_text:function(e){var d,t;return(!e.includes("/event/")||!e.includes("/embed/"))&&(t=e.match(/vimeo\.com\/(\d+)(\?.*)?/))?(d=t[1],t=t[2]||"","https://player.vimeo.com/video/".concat(d).concat(t)):e},html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,url_text:"https://www.dailymotion.com/embed/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'<iframe width="640" height="360" src="{url}?format=embed" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,url_text:"https://rutube.ru/play/embed/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vidyard"}],o.VIDEO_EMBED_REGEX=/^\W*(<div[^>]*>\s*<iframe[^>]*>.*?<\/iframe>\s*<\/div>(\s*<script[^>]*>.*?<\/script>)?|<iframe[^>]*>.*?<\/iframe>|<embed(.|\n)*>)\W*$/i,o.PLUGINS.video=function(e){var d,t,s,h,a,y,j=e.$,P="https://i.froala.com/upload",ne=2,ue=3,v=4,g=5,I=6,k={};function E(){var O=e.popups.get("video.insert"),we=(O.find(".fr-video-by-url-layer input").val("").trigger("change"),O.find(".fr-video-embed-layer textarea"));we.val("").trigger("change"),(we=O.find(".fr-video-upload-layer input")).val("").trigger("change")}function Q(){var O,we,Le,Ge;(e.popups.get("video.edit")||(function(){var Ft="";return 0<e.opts.videoEditButtons.length?(e.opts.videoResponsive&&(-1<e.opts.videoEditButtons.indexOf("videoSize")&&e.opts.videoEditButtons.splice(e.opts.videoEditButtons.indexOf("videoSize"),1),-1<e.opts.videoEditButtons.indexOf("videoDisplay")&&e.opts.videoEditButtons.splice(e.opts.videoEditButtons.indexOf("videoDisplay"),
vendor: 5,566 bytes, line 1
11),-1<e.opts.videoEditButtons.indexOf("videoAlign"))&&e.opts.videoEditButtons.splice(e.opts.videoEditButtons.indexOf("videoAlign"),1),Ft={buttons:Ft+='<div class="fr-buttons"> \n '.concat(e.button.buildList(e.opts.videoEditButtons)," \n </div>")},Ft=e.popups.create("video.edit",Ft),e.events.$on(e.$wp,"scroll.video-edit",function(){h&&e.popups.isVisible("video.edit")&&(e.events.disableBlur(),be(h))}),Ft):!1})())&&(e.popups.setContainer("video.edit",e.$sc),e.popups.refresh("video.edit"),we=(O=h.find("iframe, embed, ".concat(h.find("iframe, embed, audio").get(0)?"audio":"video"))).offset().left+O.outerWidth()/2,Le=O.offset().top+O.outerHeight(),Ge=!(!(Ge=(Ge=(Ge=O.get(0).src?O.get(0).src:O.get(0).currentSrc).split("."))[Ge.length-1]).includes("pdf")&&!Ge.includes("txt")),O.hasClass("fr-file")||Ge||h.find("audio").get(0)?(document.getElementById("autoplay-".concat(e.id))&&(document.getElementById("autoplay-".concat(e.id)).style.display="none"),document.getElementById("videoReplace-".concat(e.id))&&(document.getElementById("videoReplace-".concat(e.id)).style.display="none")):(document.getElementById("autoplay-".concat(e.id))&&(document.getElementById("autoplay-".concat(e.id)).style.display=""),document.getElementById("videoReplace-".concat(e.id))&&(document.getElementById("videoReplace-".concat(e.id)).style.display="")),e.popups.show("video.edit",we,Le,O.outerHeight(),!0))}function x(O){var we,Le,Ge,Ft,qt,Tt,ht,yt;return O?(e.popups.onRefresh("video.insert",E),e.popups.onHide("video.insert",ft),!0):(O="",e.opts.videoUpload||e.opts.videoInsertButtons.indexOf("videoUpload")===-1||e.opts.videoInsertButtons.splice(e.opts.videoInsertButtons.indexOf("videoUpload"),1),(Ft=e.button.buildList(e.opts.videoInsertButtons))!==""&&(O='<div class="fr-buttons">'+Ft+"</div>"),Ft="",we=e.opts.videoInsertButtons.indexOf("videoUpload"),Le=e.opts.videoInsertButtons.indexOf("videoByURL"),ht=e.opts.videoInsertButtons.indexOf("videoEmbed"),0<=Le&&(Ge=" fr-active",Ft='<div class="fr-video-by-url-layer fr-layer'.concat(Ge=we<Le&&0<=we||ht<Le&&0<=ht?"":Ge,'" id="fr-video-by-url-layer-').concat(e.id,'"><div class="fr-input-line"><input id="fr-video-by-url-layer-text-').concat(e.id,'" type="text" placeholder="').concat(e.language.translate("Paste in a video URL"),'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><span style=\'float:left\'><div class="fr-checkbox-line fr-autoplay-margin"><span class="fr-checkbox"> <input id=\'videoPluginAutoplay\' data-checked="_blank" type="checkbox" aria-label="').concat(e.language.translate("Autoplay"),'"><span>').concat('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg>','</span></span> <label id="fr-label-target-').concat(e.id,'">').concat(e.language.translate("Autoplay"),'</label></div> </span><button type="button" class="fr-command fr-submit" data-cmd="videoInsertByURL" tabIndex="2" role="button">').concat(e.language.translate("Insert"),"</button></div></div>")),qt="",0<=ht&&(Ge=" fr-active",qt='<div class="fr-video-embed-layer fr-layer'.concat(Ge=we<ht&&0<=we||Le<ht&&0<=Le?"":Ge,'" id="fr-video-embed-layer-').concat(e.id,'"><div class="fr-input-line"><textarea id="fr-video-embed-layer-text').concat(e.id,'" type="text" placeholder="').concat(e.language.translate("Embedded Code"),'" tabIndex="1" aria-required="true" rows="5"></textarea></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertEmbed" tabIndex="2" role="button">').concat(e.language.translate("Insert"),"</button></div></div>")),Tt="",0<=we&&(Ge=" fr-active",Tt='<div class="fr-video-upload-layer fr-layer'.concat(Ge=ht<we&&0<=ht||Le<we&&0<=Le?"":Ge,'" id="fr-video-upload-layer-').concat(e.id,'"><strong>').concat(e.language.translate("Drop video"),"</strong><br>(").concat(e.language.translate("or click"),')<div class="fr-form"><input type="file" accept="video/').concat(e.opts.videoAllowedTypes.join(", video/").toLowerCase(),'" tabIndex="-1" aria-labelledby="fr-video-upload-layer-').concat(e.id,'" role="button"></div></div>')),ht=e.popups.create("video.insert",{buttons:O,by_url_layer:Ft,embed_layer:qt,upload_layer:Tt,progress_bar:'<div class="fr-video-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="videoDismissError" tabIndex="2" role="button">OK</button></div></div>'}),yt=ht,e.events.$on(yt,"dragover dragenter",".fr-video-upload-layer",function(){return j(this).addClass("fr-drop"),!1},!0),e.events.$on(yt,"dragleave dragend",".fr-video-upload-layer",function(){return j(this).removeClass("fr-drop"),!1},!0),e.events.$on(yt,"drop",".fr-video-upload-layer",function(Pt){Pt.preventDefault(),Pt.stopPropagation(),j(this).removeClass("fr-drop");var ta,Pt=Pt.originalEvent.dataTransfer;Pt&&Pt.files&&((ta=yt.data("instance")||e).events.disableBlur(),ta.video.upload(Pt.files),ta.events.enableBlur())},!0),e.helpers.isIOS()&&e.events.$on(yt,"touchstart",'.fr-video-upload-layer input[type="file"]',function(){j(this).trigger("click")},!0),e.events.$on(yt,"change",'.fr-video-upload-layer input[type="file"]',function(){var Yt;this.files&&((Yt=yt.data("instance")||e).events.disableBlur(),yt.find("input:focus").blur(),Yt.events.enableBlur(),Yt.video.upload(this.files)),j(this).val("")},!0),ht)}
1function te(O){e.events.focus(!0),e.selection.restore();var we=!1,Le=(h&&(He(),we=!0),e.opts.trackChangesEnabled?(e.edit.on(),e.events.focus(!0),e.selection.restore(),e.undo.saveStep(),e.markers.insert(),e.html.wrap(),Le=e.$el.find(".fr-marker"),e.node.isLastSibling(Le)&&Le.parent().hasClass("fr-deletable")&&Le.insertAfter(Le.parent()),Le.replaceWith('<span contenteditable="false" draggable="true" class="fr-jiv fr-video fr-deletable">'.concat(O,"</span>")),e.selection.clear()):e.html.insert('<span contenteditable="false" draggable="true" class="fr-jiv fr-video fr-deletable">'.concat(O,"</span>"),!1,e.opts.videoSplitHTML),e.popups.hide("video.insert"),e.$el.find(".fr-jiv"));Le.removeClass("fr-jiv"),Le.toggleClass("fr-rv",e.opts.videoResponsive),bt(Le,e.opts.videoDefaultDisplay,e.opts.videoDefaultAlign),Le.toggleClass("fr-draggable",e.opts.videoMove),e.events.trigger(we?"video.replaced":"video.inserted",[Le])}function Ke(){var O=j(this);e.popups.hide("video.insert"),O.removeClass("fr-uploading"),O.parent().next().is("br")&&O.parent().next().remove(),be(O.parent()),e.events.trigger("video.loaded",[O.parent()])}function q(O,we,Le,Ge,Ft,qt){e.edit.off(),Oe("Loading video"),we&&(O=e.helpers.sanitizeURL(O));var Tt=function(){var yt,Yt;if(Ge){e.undo.canDo()||Ge.find("video").hasClass("fr-uploading")||e.undo.saveStep();var ta=Ge.find("video").data("fr-old-src"),Pt=Ge.data("fr-replaced");if(Ge.data("fr-replaced",!1),0<Ge.find("iframe").length)Ge.remove(),yt=Vt(O,Le,Ke);else{e.$wp?((yt=Ge.clone(!0)).find("video").removeData("fr-old-src").removeClass("fr-uploading"),yt.find("video").off("canplay"),ta&&Ge.find("video").attr("src",ta),Ge.replaceWith(yt)):yt=Ge;for(var fa=yt.find("video").get(0).attributes,ga=0;ga<fa.length;ga++){var ua=fa[ga];ua.nodeName.indexOf("data-")===0&&yt.find("video").removeAttr(ua.nodeName)}if(Le!==void 0)for(Yt in Le)Le.hasOwnProperty(Yt)&&Yt!="link"&&yt.find("video").attr("data-".concat(Yt),Le[Yt]);yt.find("video").on("canplay",Ke),yt.find("video").attr("src",O)}e.edit.on(),Pe(),e.undo.saveStep(),e.$el.blur(),e.events.trigger(Pt?"video.replaced":"video.inserted",[yt,Ft])}else yt=Vt(O,Le,Ke,qt),Pe(),e.undo.saveStep(),e.events.trigger("video.inserted",[yt,Ft])};ge("Loading video"),Tt()}function ge(O){var we,Le,Ge=e.popups.get("video.insert");(Ge=Ge||x()).find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),Ge.find(".fr-video-progress-bar-layer").addClass("fr-active"),Ge.find(".fr-buttons").hide(),h&&(Ge=h.find("iframe, embed, ".concat(h.find("iframe, embed, audio").get(0)?"audio":"video")),e.popups.setContainer("video.insert",e.$sc),we=Ge.offset().left,Le=Ge.offset().top+Ge.height(),e.popups.show("video.insert",we,Le,Ge.outerHeight())),O===void 0&&Oe(e.language.translate("Uploading"),0)}function U(O){var we=e.popups.get("video.insert");we&&(we.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),we.find(".fr-video-progress-bar-layer").removeClass("fr-active"),we.find(".fr-buttons").show(),O||e.$el.find("video.fr-error").length)&&(e.events.focus(),e.$el.find("video.fr-error").length&&(e.$el.find("video.fr-error").parent().remove(),e.undo.saveStep(),e.undo.run(),e.undo.dropRedo()),!e.$wp&&h&&(we=h,R(!0),e.selection.setAfter(we.find("video").get(0)),e.selection.restore()),e.popups.hide("video.insert"))}function Oe(O,we){var Le=e.popups.get("video.insert");Le&&((Le=Le.find(".fr-video-progress-bar-layer")).find("h3").text(O+(we?" ".concat(we,"%"):"")),Le.removeClass("fr-error"),we?(Le.find("div").removeClass("fr-indeterminate"),Le.find("div > span").css("width","".concat(we,"%"))):Le.find("div").addClass("fr-indeterminate"))}function J(O){ge();var we=e.popups.get("video.insert").find(".fr-video-progress-bar-layer"),we=(we.addClass("fr-error"),we.find("h3"));we.text(O),e.events.disableBlur(),we.focus()}function be(O){me.call(O.get(0))}function Ne(O,we,Le){Oe("Loading video");var Ge,Ft,qt=this.status,Tt=this.response,ht=this.responseXML,yt=this.responseText;try{if(e.opts.videoUploadToS3||e.opts.videoUploadToAzure)if(qt==201){if(e.opts.videoUploadToAzure){if(e.events.trigger("video.uploadedToAzure",[this.responseURL,Le,Tt],!0)===!1)return e.edit.on(),!1;Ft=we}else Ft=(function(Yt){try{var ta=j(Yt).find("Location").text(),Pt=j(Yt).find("Key").text();return e.events.trigger("video.uploadedToS3",[ta,Pt,Yt],!0)===!1?(e.edit.on(),!1):ta}catch(fa){return pt(v,Yt),!1}})(ht);Ft&&q(Ft,!1,[],O,Tt||ht)}else pt(v,Tt||ht);else 200<=qt&&qt<300?(Ge=(function(Yt){try{var ta;return e.events.trigger("video.uploaded",[Yt],!0)===!1?(e.edit.on(),!1):(ta=JSON.parse(Yt)).link?ta:(pt(ne,Yt),!1)}catch(Pt){return pt(v,Yt),!1}})(yt))&&q(Ge.link,!1,Ge,O,Tt||yt):pt(ue,Tt||yt)}catch(Yt){pt(v,Tt||yt)}}function u(){pt(v,this.response||this.responseText||this.responseXML)}function it(O){O.lengthComputable&&(O=O.loaded/O.total*100|0,Oe(e.language.translate("Uploading"),O))}function De(){e.edit.on(),U(!0)}function Vt(O,we,Le,Ge){var Ft,qt="";if(we&&we!==void 0)for(Ft in we)we.hasOwnProperty(Ft)&&Ft!="link"&&(qt+=" ".concat(Ft,'="').concat(we[Ft],'"'));
vendor: 4,110 bytes, line 1
1var Tt=e.opts.videoDefaultWidth,Tt=(Tt&&Tt!="auto"&&(Tt="".concat(Tt,"px")),e.helpers.isMobile()&&e.browser.safari&&(qt+=" autoplay playsinline"),(O=Ge=="audio"?j(document.createElement("span")).attr("contenteditable","false").attr("draggable","true").attr("class","fr-video fr-dv"+e.opts.videoDefaultDisplay[0]+(e.opts.videoDefaultAlign!="center"?" fr-fv"+e.opts.videoDefaultAlign[0]:"")).html('<audio src="'+O+'" '+qt+" controls>"+e.language.translate("Your browser does not support HTML5 video.")+"</audio>"):j(document.createElement("span")).attr("contenteditable","false").attr("draggable","true").attr("class","fr-video fr-dv"+e.opts.videoDefaultDisplay[0]+(e.opts.videoDefaultAlign!="center"?" fr-fv"+e.opts.videoDefaultAlign[0]:"")).html('<video src="'+O+'" '+qt+(Tt?' style="width: '+Tt+';" ':"")+" controls>"+e.language.translate("Your browser does not support HTML5 video.")+"</video>")).toggleClass("fr-draggable",e.opts.videoMove),e.edit.on(),e.events.focus(!0),e.selection.restore(),e.undo.saveStep(),e.opts.videoSplitHTML?e.markers.split():(e.cursor.enter(),e.markers.insert()),e.html.wrap(),e.$el.find(".fr-marker"));return e.node.isLastSibling(Tt)&&Tt.parent().hasClass("fr-deletable")&&Tt.insertAfter(Tt.parent()),Tt.replaceWith(O),e.selection.clear(),Ge!=="audio"&&(O.find("video").get(0).readyState>O.find("video").get(0).HAVE_FUTURE_DATA||e.helpers.isIOS()?Le.call(O.find("video").get(0)):O.find("video").on("canplaythrough load",Le)),O}function Y(O){if(!e.core.sameInstance(s))return!0;O.preventDefault(),O.stopPropagation();var we=O.pageX||(O.originalEvent.touches?O.originalEvent.touches[0].pageX:null),Le=O.pageY||(O.originalEvent.touches?O.originalEvent.touches[0].pageY:null);if(!we||!Le)return!1;if(O.type=="mousedown"){var Ge=e.$oel.get(0).ownerDocument,Ge=Ge.defaultView||Ge.parentWindow,Ft=!1;try{Ft=Ge.location!=Ge.parent.location&&!(Ge.$&&Ge.$.FE)}catch(qt){}Ft&&Ge.frameElement&&(we+=e.helpers.getPX(j(Ge.frameElement).offset().left)+Ge.frameElement.clientLeft,Le=O.clientY+e.helpers.getPX(j(Ge.frameElement).offset().top)+Ge.frameElement.clientTop)}e.undo.canDo()||e.undo.saveStep(),(t=j(this)).data("start-x",we),t.data("start-y",Le),d.show(),e.popups.hideAll(),nt()}function Ye(O){if(!e.core.sameInstance(s))return!0;if(t){O.preventDefault();var we=O.pageX||(O.originalEvent.touches?O.originalEvent.touches[0].pageX:null),O=O.pageY||(O.originalEvent.touches?O.originalEvent.touches[0].pageY:null);if(!we||!O)return!1;var Le=t.data("start-x"),Ge=t.data("start-y"),we=(t.data("start-x",we),t.data("start-y",O),we-Le),Le=O-Ge,O=h.find("iframe, embed, ".concat(h.find("iframe, embed, audio").get(0)?"audio":"video")),Ge=O.width(),Ft=O.height();(t.hasClass("fr-hnw")||t.hasClass("fr-hsw"))&&(we=0-we),(t.hasClass("fr-hnw")||t.hasClass("fr-hne"))&&(Le=0-Le),O.css("width",Ge+we),O.css("height",Ft+Le),O.removeAttr("width"),O.removeAttr("height"),qe()}}function Ae(O){if(!e.core.sameInstance(s))return!0;t&&h&&(O&&O.stopPropagation(),t=null,d.hide(),qe(),Q(),e.undo.saveStep())}function dt(O){return'<div class="fr-handler fr-h'.concat(O,'"></div>')}function je(O,we,Le,Ge){return O.pageX=we,O.pageY=we,Y.call(this,O),O.pageX=O.pageX+Le*Math.floor(Math.pow(1.1,Ge)),O.pageY=O.pageY+Le*Math.floor(Math.pow(1.1,Ge)),Ye.call(this,O),Ae.call(this,O),++Ge}function Pe(){for(var O=Array.prototype.slice.call(e.el.querySelectorAll("video, .fr-video > *")),we=[],Le=0;Le<O.length;Le++)we.push(O[Le].getAttribute("src")),j(O[Le]).toggleClass("fr-draggable",e.opts.videoMove),O[Le].getAttribute("class")===""&&O[Le].removeAttribute("class"),O[Le].getAttribute("style")===""&&O[Le].removeAttribute("style");if(a)for(Le=0;Le<a.length;Le++)we.indexOf(a[Le].getAttribute("src"))<0&&e.events.trigger("video.removed",[j(a[Le])]);a=O}function qe(){s||(e.shared.$video_resizer?(s=e.shared.$video_resizer,d=e.shared.$vid_overlay,e.events.on("destroy",function(){j("body").first().append(s.removeClass("fr-active"))},!0)):(e.shared.$video_resizer=j(document.createElement("div")).attr("class","fr-video-resizer"),s=e.shared.$video_resizer,e.events.$on(s,"mousedown",function(Tt){Tt.stopPropagation()}
1,!0),e.opts.videoResize&&(s.append(dt("nw")+dt("ne")+dt("sw")+dt("se")),e.shared.$vid_overlay=j(document.createElement("div")).attr("class","fr-video-overlay"),d=e.shared.$vid_overlay,Ge=s.get(0).ownerDocument,j(Ge).find("body").first().append(d))),e.events.on("shared.destroy",function(){s.html("").removeData().remove(),s=null,e.opts.videoResize&&(d.remove(),d=null)},!0),e.helpers.isMobile()||e.events.$on(j(e.o_win),"resize.video",function(){R(!0)}),e.opts.videoResize&&(Ge=s.get(0).ownerDocument,e.events.$on(s,e._mousedown,".fr-handler",Y),e.events.$on(j(Ge),e._mousemove,Ye),e.events.$on(j(Ge.defaultView||Ge.parentWindow),e._mouseup,Ae),e.events.$on(d,"mouseleave",Ae),O=1,we=null,Le=0,e.events.on("keydown",function(Tt){var ht,yt;h&&(ht=navigator.userAgent.indexOf("Mac OS X")!=-1?Tt.metaKey:Tt.ctrlKey,((yt=Tt.which)!==we||200<Tt.timeStamp-Le)&&(O=1),(yt==o.KEYCODE.EQUALS||e.browser.mozilla&&yt==o.KEYCODE.FF_EQUALS)&&ht&&!Tt.altKey?O=je.call(this,Tt,1,1,O):(yt==o.KEYCODE.HYPHEN||e.browser.mozilla&&yt==o.KEYCODE.FF_HYPHEN)&&ht&&!Tt.altKey&&(O=je.call(this,Tt,2,-1,O)),we=yt,Le=Tt.timeStamp)}),e.events.on("keyup",function(){O=1}))),(e.$wp||e.$sc).append(s),s.data("instance",e);var O,we,Le,Ge=h.find("iframe, embed, ".concat(h.find("iframe, embed, audio").get(0)?"audio":"video")),Ft=0,qt=0;e.opts.iframe&&(qt=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),Ft=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-left"))),s.css("top",(e.opts.iframe?Ge.offset().top+qt-1:Ge.offset().top-e.$wp.offset().top-1)+e.$wp.scrollTop()).css("left",(e.opts.iframe?Ge.offset().left+Ft-1:Ge.offset().left-e.$wp.offset().left-1)+e.$wp.scrollLeft()).css("width",Ge.get(0).getBoundingClientRect().width).css("height",Ge.get(0).getBoundingClientRect().height).addClass("fr-active")}function me(O){if(O&&O.type=="touchend"&&y)return!0;if(O&&e.edit.isDisabled())return O.stopPropagation(),O.preventDefault(),!1;if(e.edit.isDisabled())return!1;for(var we=0;we<o.INSTANCES.length;we++)o.INSTANCES[we]!=e&&o.INSTANCES[we].events.trigger("video.hideResizer");e.toolbar.disable(),e.helpers.isMobile()&&(e.events.disableBlur(),e.$el.blur(),e.events.enableBlur()),e.$el.find(".fr-video.fr-active").removeClass("fr-active"),(h=j(this)).addClass("fr-active"),e.opts.iframe&&e.size.syncIframe(),da(),qe(),Q(),e.selection.clear(),e.button.bulkRefresh(),e.events.trigger("image.hideResizer")}function R(O){h&&(e.shared.vid_exit_flag||O===!0)&&(s.removeClass("fr-active"),e.toolbar.enable(),h.removeClass("fr-active"),h=null,nt())}function xe(){e.shared.vid_exit_flag=!0}function nt(){e.shared.vid_exit_flag=!1}function ut(O){var we=O.originalEvent.dataTransfer;if(we&&we.files&&we.files.length){var Le=we.files[0];if(Le&&Le.type&&Le.type.indexOf("video")!==-1)return e.opts.videoUpload?(e.markers.remove(),e.markers.insertAtPoint(O.originalEvent),e.$el.find(".fr-marker").replaceWith(o.MARKERS),e.popups.hideAll(),e.popups.get("video.insert")||x(),e.popups.setContainer("video.insert",e.$sc),e.popups.show("video.insert",O.originalEvent.pageX,O.originalEvent.pageY),ge(),0<=e.opts.videoAllowedTypes.indexOf(Le.type.replace(/video\//g,""))?ke(we.files):pt(I),O.preventDefault(),O.stopPropagation()):(O.preventDefault(),O.stopPropagation()),!1}}function ke(O){if(O!==void 0&&0<O.length){if(e.events.trigger("video.beforeUpload",[O])===!1)return!1;var we,Le,O=O[0];if(!(e.opts.videoUploadURL!==null&&e.opts.videoUploadURL!=P||e.opts.videoUploadToS3||e.opts.videoUploadToAzure))return Pt=O,h&&h.find("iframe")&&h.find("iframe").length&&He(),(fa=new FileReader).onload=function(){fa.result;for(var ua=atob(fa.result.split(",")[1]),qa=[],Wt=0;Wt<ua.length;Wt++)qa.push(ua.charCodeAt(Wt));q(window.URL.createObjectURL(new Blob([new Uint8Array(qa)],{type:Pt.type})),!1,null,h)},ge(),fa.readAsDataURL(Pt),!1;if(O.size>e.opts.videoMaxSize)return pt(g),!1;if(e.opts.videoAllowedTypes.indexOf(O.type.replace(/video\//g,""))<0)return pt(I),!1;if(we=e.drag_support.formdata?e.drag_support.formdata?new FormData:null:we){if(e.opts.videoUploadToS3!==!1)for(Le in we.append("key",e.opts.videoUploadToS3.keyStart+new Date().getTime()+"-"+(O.
1name||"untitled")),we.append("success_action_status","201"),we.append("X-Requested-With","xhr"),we.append("Content-Type",O.type),e.opts.videoUploadToS3.params)e.opts.videoUploadToS3.params.hasOwnProperty(Le)&&we.append(Le,e.opts.videoUploadToS3.params[Le]);for(Le in e.opts.videoUploadParams)e.opts.videoUploadParams.hasOwnProperty(Le)&&we.append(Le,e.opts.videoUploadParams[Le]);we.append(e.opts.videoUploadParam,O);var Ge,Ft=e.opts.videoUploadURL,qt=(e.opts.videoUploadToS3&&(Ft=e.opts.videoUploadToS3.uploadURL||"https://".concat(e.opts.videoUploadToS3.region,".amazonaws.com/").concat(e.opts.videoUploadToS3.bucket)),e.opts.videoUploadMethod),Tt=(e.opts.videoUploadToAzure&&(Ft=e.opts.videoUploadToAzure.uploadURL?"".concat(e.opts.videoUploadToAzure.uploadURL,"/").concat(O.name):encodeURI("https://".concat(e.opts.videoUploadToAzure.account,".blob.core.windows.net/").concat(e.opts.videoUploadToAzure.container,"/").concat(O.name)),Ge=Ft,e.opts.videoUploadToAzure.SASToken&&(Ft+=e.opts.videoUploadToAzure.SASToken),qt="PUT"),e.core.getXHR(Ft,qt));if(e.opts.videoUploadToAzure){var ht,yt,Yt,Ft=new Date().toUTCString();for(Le in!e.opts.videoUploadToAzure.SASToken&&e.opts.videoUploadToAzure.accessKey&&(ht=e.opts.videoUploadToAzure.account,ta=e.opts.videoUploadToAzure.container,e.opts.videoUploadToAzure.uploadURL&&(ta=(yt=e.opts.videoUploadToAzure.uploadURL.split("/")).pop(),ht=yt.pop().split(".")[0]),yt="x-ms-blob-type:BlockBlob\nx-ms-date:".concat(Ft,"\nx-ms-version:2019-07-07"),ta=encodeURI("/"+ht+"/"+ta+"/"+O.name),qt=qt+"\n\n\n"+O.size+"\n\n"+O.type+"\n\n\n\n\n\n\n"+yt+"\n"+ta,yt=e.cryptoJSPlugin.cryptoJS.HmacSHA256(qt,e.cryptoJSPlugin.cryptoJS.enc.Base64.parse(e.opts.videoUploadToAzure.accessKey)).toString(e.cryptoJSPlugin.cryptoJS.enc.Base64),Yt=yt,Tt.setRequestHeader("Authorization","SharedKey "+ht+":"+yt)),Tt.setRequestHeader("x-ms-version","2019-07-07"),Tt.setRequestHeader("x-ms-date",Ft),Tt.setRequestHeader("Content-Type",O.type),Tt.setRequestHeader("x-ms-blob-type","BlockBlob"),e.opts.videoUploadParams)e.opts.videoUploadParams.hasOwnProperty(Le)&&Tt.setRequestHeader(Le,e.opts.videoUploadParams[Le]);for(Le in e.opts.videoUploadToAzure.params)e.opts.videoUploadToAzure.params.hasOwnProperty(Le)&&Tt.setRequestHeader(Le,e.opts.videoUploadToAzure.params[Le])}Tt.onload=function(){Ne.call(Tt,h,Ge,Yt)},Tt.onerror=u,Tt.upload.onprogress=it,Tt.onabort=De,ge(),e.events.disableBlur(),e.edit.off(),e.events.enableBlur();var ta=e.popups.get("video.insert");ta&&j(ta.off("abortUpload")).on("abortUpload",function(){Tt.readyState!=4&&Tt.abort()}),Tt.send(e.opts.videoUploadToAzure?O:we)}}var Pt,fa}function pt(O,we){e.edit.on(),h&&h.find("video").addClass("fr-error"),J(e.language.translate("Something went wrong. Please try again.")),e.events.trigger("video.error",[{code:O,message:k[O]},we])}function Bt(){var O,we;h&&(O=e.popups.get("video.size"),we=h.find("iframe, embed, ".concat(h.find("iframe, embed, audio").get(0)?"audio":"video")),O.find('input[name="width"]').val(we.get(0).style.width||we.attr("width")).trigger("change"),O.find('input[name="height"]').val(we.get(0).style.height||we.attr("height")).trigger("change"))}function Dt(O){var we;return O?(e.popups.onRefresh("video.size",Bt),!0):(O="",O='<div class="fr-buttons fr-tabs">'.concat(e.button.buildList(e.opts.videoSizeButtons),"</div>"),we="",we='<div class="fr-video-size-layer fr-layer fr-active" id="fr-video-size-layer-'.concat(e.id,'"><div class="fr-video-group"><div class="fr-input-line"><input id="fr-video-size-layer-width-').concat(e.id,'" type="text" name="width" placeholder="').concat(e.language.translate("Width"),'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-video-size-layer-height-').concat(e.id,'" type="text" name="height" placeholder="').concat(e.language.translate("Height"),'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoSetSize" tabIndex="2" role="button">').concat(e.language.translate("Update"),"</button></div></div>"),O=e.popups.create("video.size",{buttons:O,size_layer:we}),e.events.$on(e.$wp,"scroll",function(){h&&e.popups.isVisible("video.size")&&(e.events.disableBlur(),be(h))}),O)}function Et(O){if(O=O===void 0?h:O){if(O.hasClass("fr-fvl"))return"left";if(O.hasClass("fr-fvr"))return"right";if(O.hasClass("fr-dvb")||O.hasClass("fr-dvi"))return"center";if(O.css("display")=="block"){if(O.css("text-algin")=="left")return"left";if(O.css("text-align")=="right")return"right"}else{if(O.css("float")=="left")return"left";if(O.css("float")=="right")return"right"}}return"center"}function Kt(O){var we=(O=O===void 0?h:O).css("float");return O.css("float","none"),O.css("display")=="block"?(O.css("float",""),O.css("float")!=we&&O.css("float",we),"block"):(O.css("float",""),O.css("float")!=we&&O.css("float",we),"inline")}function He(){var O;h&&e.events.trigger("video.beforeRemove",[h])!==!1&&(O=h,e.popups.hideAll(),R(!0),!e.opts.trackChangesEnabled||O[0].parentNode&&O[0].parentNode.tagName==="SPAN"&&O[0].parentNode.hasAttribute("data-tracking")?(e.selection.setBefore(O.get(0))||e.selection.setAfter(O.get(0)),O.remove(),e.selection.restore(
vendor: 7,931 bytes, line 1
1),e.html.fillEmptyBlocks()):e.track_changes.removeSpecialItem(O))}function ft(){U()}function bt(O,we,Le){!e.opts.htmlUntouched&&e.opts.useClasses?(O.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),O.addClass("fr-fv".concat(Le[0]," fr-dv").concat(we[0]))):we=="inline"?(O.css({display:"inline-block"}),Le=="center"?O.css({float:"none"}):Le=="left"?O.css({float:"left"}):O.css({float:"right"})):(O.css({display:"block",clear:"both"}),Le=="left"?O.css({textAlign:"left"}):Le=="right"?O.css({textAlign:"right"}):O.css({textAlign:"center"}))}function la(){var O=e.$el.find("video").filter(function(){return j(this).parents("span.fr-video").length===0});if(O.length!=0){O.wrap(j(document.createElement("span")).attr("class","fr-video fr-deletable").attr("contenteditable","false")),e.$el.find("embed, iframe").filter(function(){if(e.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),!(0<j(this).parents("span.fr-video").length))for(var Tt=j(this).attr("src"),ht=0;ht<o.VIDEO_PROVIDERS.length;ht++){var yt=o.VIDEO_PROVIDERS[ht];if(yt.test_regex.test(Tt)&&new RegExp(e.opts.videoAllowedProviders.join("|")).test(yt.provider))return!0}return!1}).map(function(){return j(this).parents("object").length===0?this:j(this).parents("object").get(0)}).wrap(j(document.createElement("span")).attr("class","fr-video").attr("contenteditable","false"));for(var we,Le,Ge=e.$el.find("span.fr-video, video"),Ft=0;Ft<Ge.length;Ft++){var qt=j(Ge[Ft]);!e.opts.htmlUntouched&&e.opts.useClasses?((Le=qt).hasClass("fr-dvi")||Le.hasClass("fr-dvb")||(Le.addClass("fr-fv".concat(Et(Le)[0])),Le.addClass("fr-dv".concat(Kt(Le)[0]))),e.opts.videoTextNear||qt.removeClass("fr-dvi").addClass("fr-dvb")):e.opts.htmlUntouched||e.opts.useClasses||(we=Le=void 0,Le=(qt=qt).hasClass("fr-dvb")?"block":qt.hasClass("fr-dvi")?"inline":null,we=qt.hasClass("fr-fvl")?"left":qt.hasClass("fr-fvr")?"right":Et(qt),bt(qt,Le,we),qt.removeClass("fr-dvb fr-dvi fr-fvr fr-fvl"))}Ge.toggleClass("fr-draggable",e.opts.videoMove)}}function ia(O){document.getElementById("autoplay-".concat(e.id)).style.cssText="background:".concat(O)}function da(){var O;h&&(e.selection.clear(),(O=e.doc.createRange()).selectNode(h.get(0)),e.selection.get().addRange(O))}return k[1]="Video cannot be loaded from the passed link.",k[ne]="No link in upload response.",k[ue]="Error during file upload.",k[v]="Parsing response failed.",k[g]="File is too large.",k[I]="Video file type is invalid.",e.shared.vid_exit_flag=!(k[7]="Files can be uploaded only to same domain in IE 8 and IE 9."),{_init:function(){e.opts.videoResponsive&&(e.opts.videoResize=!1),e.events.on("drop",ut,!0),e.events.on("mousedown window.mousedown",xe),e.events.on("window.touchmove",nt),e.events.on("mouseup window.mouseup",R),e.events.on("commands.mousedown",function(O){0<O.parents(".fr-toolbar").length&&R()}),e.events.on("video.hideResizer commands.undo commands.redo element.dropped",function(){R(!0)}),e.events.on("filestack-init-video",function(){x()}),e.helpers.isMobile()&&(e.events.$on(e.$el,"touchstart","span.fr-video",function(){y=!1}),e.events.$on(e.$el,"touchmove",function(){y=!0})),e.events.on("html.set",la),la(),e.events.$on(e.$el,"mousedown","span.fr-video",function(O){O.stopPropagation(),!e.browser.msie&&!e.browser.edge||O.target.innerText||(O.target.dragDrop(),me.call(this,O))}),e.events.$on(e.$el,"click touchend","span.fr-video",function(O){if(O.target.innerText.length||j(this).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable")=="false")return!0;me.call(this,O)}),e.events.on("keydown",function(O){var we=O.which;return!h||we!=o.KEYCODE.BACKSPACE&&we!=o.KEYCODE.DELETE?h&&we==o.KEYCODE.ESC?(R(!0),O.preventDefault(),!1):h&&we!=o.KEYCODE.F10&&!e.keys.isBrowserAction(O)?(O.preventDefault(),!1):void 0:(O.preventDefault(),He(),e.undo.saveStep(),!1)},!0),e.events.on("toolbar.esc",function(){if(h)return e.events.disableBlur(),e.events.focus(),!1},!0),e.events.on("toolbar.focusEditor",function(){if(h)return!1},!0),e.events.on("keydown",function(){e.$el.find("span.fr-video:empty").remove()}),e.$wp&&(Pe(),e.events.on("contentChanged",Pe)),x(!0),Dt(!0)},showInsertPopup:function(){var O,we,Le=e.$tb.find('.fr-command[data-cmd="insertVideo"]'),Ge=(Ge=e.popups.get("video.insert"))||x();U(),Ge.hasClass("fr-active")||(e.popups.refresh("video.insert"),e.popups.setContainer("video.insert",e.$tb),Le.isVisible()?(we=(O=e.button.getPosition(Le)).left,e.popups.show("video.insert",we,O.top,Le.outerHeight())):(e.position.forSelection(Ge),e.popups.show("video.insert")))},showLayer:function(O){var we,Le,Ge=e.popups.get("video.insert");h||e.opts.toolbarInline||(we=(Le=e.$tb.find('.fr-command[data-cmd="insertVideo"]')).offset().left,Le=Le.offset().top+(e.opts.toolbarBottom?10:Le.outerHeight()-10)),e.opts.toolbarInline&&(Le=Ge.offset().top-e.helpers.getPX(Ge.css("margin-top")),Ge.hasClass("fr-above"))&&(Le+=Ge.outerHeight()),Ge.find(".fr-layer").removeClass("fr-active"),Ge.find(".fr-".concat(O,"-layer")).addClass("fr-active"),e.popups.show("video.insert",we,Le,0),e.accessibility.focusPopup(Ge)},refreshByURLButton:function(O){var we=e.popups.get("video.insert");we&&we.find(".fr-video-by-url-layer").hasClass("fr-active")&&O.addClass("fr-active").attr("aria-pressed",!0)},refreshEmbedButton:function(O){var we=e.popups.get("video.insert");we&&we.find(".fr-video-embed-layer").hasClass("fr-active")&&O.addClass("fr-active").attr("aria-pressed",!0)},refreshUploadButton:function(O){var we=e.popups.get("video.insert");we&&we.find(".fr-video-upload-layer").hasClass("fr-active")&&O.addClass("fr-active").attr("aria-pressed",!0)},upload:ke,insertByURL:function(O){var we,Le,Ge,Ft=!!document.getElementById("videoPluginAutoplay")&&document.getElementById("videoPluginAutoplay").checked,qt=(O===void 0&&(O=(e.popups.get("video.insert").find('.fr-video-by-url-layer input[type="text"]').val()||"").trim(),/vimeo\.com\/event\/\d+\/embed\/[a-zA-Z0-9]+/i.test(O)||((we=O.match(/^(https?:\/\/)?(www\.)?vimeo\.com\/(\d{6,11})(\?.+)?$/))?(Le=we[3],we=we[4]||"",O="https://vimeo.com/".concat(Le).concat(we)):(Le=O.match(/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/?(showcase\/)*([0-9])([a-z]*\/)*([0-9]{6,11})[?]?.*/))&&Le.length==7&&(we=Le[6],Le=O.substring(0,O.lastIndexOf("/")),(Ge=O.substring(O.lastIndexOf("/")+1,O.length)).includes("?h=")||Ge.includes("?v=")||we===Ge?O=("".concat(Le,"/").concat(Ge)||"").trim():Ge.includes("?")||(O=("".concat(Le,"?h=").concat(Ge)||"").trim())))),null);if(/^http/.test(O)||(O="https://".concat(O)),e.helpers.isURL(O))for(var Tt=0;Tt<o.VIDEO_PROVIDERS.length;Tt++){var ht,yt=o.VIDEO_PROVIDERS[Tt],Yt="autoplay=1&mute=1";if(yt.html.includes("autoplay=1")&&document.getElementById("videoPluginAutoplay").checked?(yt.html=yt.html,document.getElementById("videoPluginAutoplay").checked=!1):Ft?(ht=yt.html.indexOf("{url}")+5,yt.html=[yt.html.slice(0,ht),Yt,yt.html.slice(ht)].join(""),Ft=!1,document.getElementById("videoPluginAutoplay").checked=!1):(yt=o.VIDEO_PROVIDERS[Tt]).html=yt.html.replace(Yt,""),yt.test_regex.test(O)&&new RegExp(e.opts.videoAllowedProviders.join("|")).test(yt.provider)){qt=O.replace(yt.url_regex,yt.url_text),qt=yt.html.replace(/\{url\}/,qt);break}}qt?te(qt):(J(e.language.translate("Something went wrong. Please try again.")),e.events.trigger("video.linkError",[O]))},insertEmbed:function(O){(O=O===void 0?e.popups.get("video.insert").find(".fr-video-embed-layer textarea").val()||"":O).length!==0&&o.VIDEO_EMBED_REGEX.test(O)?te(O):(J(e.language.translate("Something went wrong. Please try again.")),e.events.trigger("video.codeError",[O]))},insert:te,align:function(O){h.removeClass("fr-fvr fr-fvl"),!e.opts.htmlUntouched&&e.opts.useClasses?O=="left"?h.addClass("fr-fvl"):O=="right"&&h.addClass("fr-fvr"):bt(h,Kt(),O),da(),qe(),Q(),e.selection.clear()},refreshAlign:function(O){if(!h)return!1;O.find(">*").first().replaceWith(e.icon.create("video-align-".concat(Et())))}
vendor: 5,976 bytes, line 1
1,refreshAlignOnShow:function(O,we){h&&we.find('.fr-command[data-param1="'.concat(Et(),'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(O){h.removeClass("fr-dvi fr-dvb"),!e.opts.htmlUntouched&&e.opts.useClasses?O=="inline"?h.addClass("fr-dvi"):O=="block"&&h.addClass("fr-dvb"):bt(h,O,Et()),da(),qe(),Q(),e.selection.clear()},refreshDisplayOnShow:function(O,we){h&&we.find('.fr-command[data-param1="'.concat(Kt(),'"]')).addClass("fr-active").attr("aria-selected",!0)},remove:He,hideProgressBar:U,showSizePopup:function(){e.popups.get("video.size")||Dt(),U(),e.popups.refresh("video.size"),e.popups.setContainer("video.size",e.$sc);var O=h.find("iframe, embed, ".concat(h.find("iframe, embed, audio").get(0)?"audio":"video")),we=O.offset().left+O.outerWidth()/2,Le=O.offset().top+O.height();e.popups.show("video.size",we,Le,O.height(),!0)},replace:function(){e.popups.get("video.insert")||x(),e.popups.isVisible("video.insert")||(U(),e.popups.refresh("video.insert"),e.popups.setContainer("video.insert",e.$sc));var O=h.offset().left+h.outerWidth()/2,we=h.offset().top+h.height();e.popups.show("video.insert",O,we,h.outerHeight(),!0)},back:function(){h?(e.events.disableBlur(),h[0].click()):(e.events.disableBlur(),e.selection.restore(),e.events.enableBlur(),e.popups.hide("video.insert"),e.toolbar.showInline())},setSize:function(O,we){var Le,Ge;h&&(Le=e.popups.get("video.size"),(Ge=h.find("iframe, embed, ".concat(h.find("iframe, embed, audio").get(0)?"audio":"video"))).css("width",O||Le.find('input[name="width"]').val()),Ge.css("height",we||Le.find('input[name="height"]').val()),Ge.get(0).style.width&&Ge.removeAttr("width"),Ge.get(0).style.height&&Ge.removeAttr("height"),Le.find("input:focus").blur(),setTimeout(function(){h.trigger("click")},e.helpers.isAndroid()?50:0))},get:function(){return h},showProgressBar:ge,_editVideo:be,setAutoplay:function(){var O,we;h.find("iframe, embed, audio").get(0)?(we=h.find("iframe, embed, audio")).get(0).src.includes("autoplay=1")?(ia("#FFFFFF"),we.get(0).src=we.get(0).src.replace("&autoplay=1","")):(ia("#D6D6D6"),we.get(0).src=we.get(0).src+"&autoplay=1"):(we=h.find("iframe, embed, video")).get(0).outerHTML.includes("autoplay")?(ia("#FFFFFF"),we.get(0).outerHTML=we.get(0).outerHTML.replace("autoplay","")):(ia("#D6D6D6"),O=we.get(0).outerHTML.indexOf("class")-1,we.get(0).outerHTML=[we.get(0).outerHTML.slice(0,O),"autoplay",we.get(0).outerHTML.slice(O)].join(""))},insertHtmlVideo:q}},o.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"}),o.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera",SVG_KEY:"insertVideo"}),o.DefineIcon("videoByURL",{NAME:"link",SVG_KEY:"insertLink"}),o.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(e){this.video.refreshByURLButton(e)}}),o.DefineIcon("videoEmbed",{NAME:"code",SVG_KEY:"codeView"}),o.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(e){this.video.refreshEmbedButton(e)}}),o.DefineIcon("videoUpload",{NAME:"upload",SVG_KEY:"upload"}),o.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(e){this.video.refreshUploadButton(e)}}),o.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()}}),o.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),o.DefineIcon("videoDisplay",{NAME:"star",SVG_KEY:"star"}),o.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,d){this.video.display(d)},refresh:function(e){this.opts.videoTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,d){this.video.refreshDisplayOnShow(e,d)}}),o.DefineIcon("video-align",{NAME:"align-left",SVG_KEY:"align Left"}),o.DefineIcon("video-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),o.DefineIcon("video-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),o.DefineIcon("video-align-center",{NAME:"align-justify",SVG_KEY:"alignJustify"}),o.DefineIcon("videoAlign",{NAME:"align-center",SVG_KEY:"alignCenter"}),o.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var e,d='<ul class="fr-dropdown-list" role="presentation">',t=o.COMMANDS.videoAlign.options;for(e in t)t.hasOwnProperty(e)&&(d+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="videoAlign" data-param1="'.concat(e,'" title="').concat(this.language.translate(t[e]),'">').concat(this.icon.create("video-align-".concat(e)),'<span class="fr-sr-only">').concat(this.language.translate(t[e]),"</span></a></li>"));return d+="</ul>"},callback:function(e,d){this.video.align(d)},refresh:function(e){this.video.refreshAlign(e)},refreshOnShow:function(e,d){this.video.refreshAlignOnShow(e,d)}}),o.DefineIcon("videoReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),o.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),o.DefineIcon("videoRemove",{NAME:"trash",SVG_KEY:"remove"}),o.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),o.DefineIcon("autoplay",{NAME:"autoplay",SVG_KEY:"autoplay"}),o.RegisterCommand("autoplay",{undo:!1,focus:!1,popup:!0,title:"Autoplay",callback:function(){this.video.setAutoplay()}}),o.DefineIcon("videoSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}
1),o.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),o.DefineIcon("videoBack",{NAME:"arrow-left",SVG_KEY:"back"}),o.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(e){this.video.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next().hasClass("fr-separator")&&e.next().removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next().hasClass("fr-separator")&&e.next().addClass("fr-hidden"))}}),o.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),o.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})})});var Ro=Ba((vi,ko)=>{"use strict";(function(o,e){typeof vi=="object"&&typeof ko<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(vi,function(o){"use strict";function e(t,s){(s==null||s>t.length)&&(s=t.length);for(var h=0,a=Array(s);h<s;h++)a[h]=t[h];return a}function d(t){return(function(s){if(Array.isArray(s))return e(s)})(t)||(function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)})(t)||(function(s,h){{var a;if(s)return typeof s=="string"?e(s,h):(a=(a={}.toString.call(s).slice(8,-1))==="Object"&&s.constructor?s.constructor.name:a)==="Map"||a==="Set"?Array.from(s):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(s,h):void 0}})(t)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}Object.assign(o.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style","text-indent","border","border-.*","line-height","list-style-type","text-transform"],wordPasteModal:!0,wordPasteKeepFormatting:!0}),o.PLUGINS.wordPaste=function(t){var s,h,a,y=t.$,j="word_paste",P={},ne=!0;function ue(Ae){var Ye=t.opts.wordAllowedStyleProps,Ae=(Ae||(t.opts.wordAllowedStyleProps=["list-style-type","margin-left"]),h=Vt(h=(h=h.indexOf("<colgroup>")===0?"<table>"+h+"</table>":h).replace(/<span[\n\r ]*style='mso-spacerun:yes'>([\r\n\u00a0 ]*)<\/span>/g,function(dt,je){for(var Pe="",qe=0;qe++<je.length;)Pe+=" ";return Pe}),t.paste.getRtfClipboard()),t.doc.createElement("DIV"));Ae.innerHTML=h,t.html.cleanBlankSpaces(Ae),h=Ae.innerHTML,h=(h=t.paste.cleanEmptyTagsAndDivs(h)).replace(/\u200b/g,""),t.modals.hide(j),t.helpers.isMobile()&&t.events.focus(),t.paste.clean(h,!0,!0),t.opts.wordAllowedStyleProps=Ye}function v(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function g(Y,Ye){if(Ye(Y))for(var Ae=Y.firstChild;Ae;){var dt=Ae,je=Ae.previousSibling,Ae=Ae.nextSibling;g(dt,Ye),dt.previousSibling||dt.nextSibling||dt.parentNode||!Ae||je===Ae.previousSibling||!Ae.parentNode?dt.previousSibling||dt.nextSibling||dt.parentNode||!Ae||Ae.previousSibling||Ae.nextSibling||Ae.parentNode||(je?Ae=dt.childNodes.length?je.nextSibling:je.nextSibling?je.nextSibling.nextSibling:null:Y.firstChild&&(Ae=Y.firstChild.nextSibling)):Ae=je?je.nextSibling:Y.firstChild}}function I(Y){return y(Y).hasClass("ListContainerWrapper")&&0<y(Y).find("ol").length}function k(Y){return y(Y).hasClass("ListContainerWrapper")&&0<y(Y).find("ul").length}function E(Y){if(I(Y)||k(Y))return 1;
1if(Y.getAttribute("style")&&/mso-list:[\s]*l/gi.test(Y.getAttribute("style").replace(/\n/gi,""))){try{if(!Y.querySelector('[style="mso-list:Ignore"]'))return!!(Y.outerHTML&&0<=Y.outerHTML.indexOf("<!--[if !supportLists]-->"))}catch(Ye){return}return 1}}var Q=null,x={};function te(Y){var Ye;if(I(Y)||k(Y))Ye=y(Y).find("li").attr("data-aria-level");else{var Ae=((Ae=Y.getAttribute("style"))==null?void 0:Ae.replace(/\n/g,""))||"",dt=Q&&((dt=Q.getAttribute("style"))==null?void 0:dt.replace(/\n/g,""))||"",je=Ae.match(/mso-list:(\s*l([0-9]+)\s*level([0-9]+)\s*)lfo([0-9]+)/i),Pe=dt.match(/mso-list:(\s*l([0-9]+)\s*level([0-9]+)\s*)lfo([0-9]+)/i);if(je){if(x[je[1]])return Q=Y,x[je[1]].toString();var qe=Pe&&Pe[2],me=je[2],dt=dt&&x[Pe[1]]||0,me=qe&&qe!==me&&parseFloat(((qe=Q)==null||(qe=qe.style)==null?void 0:qe.marginLeft)||0)<parseFloat(Y.style.marginLeft||0)?dt+parseInt(je[3],10):parseInt(je[3],10);!Pe||Pe[4]===je[4]&&Pe[3]===je[3]||me!==parseInt(je[3],10)||(me+=1),Ye=me.toString(),x[je[1]]=me}else Ye=Ae.replace(/.*level([0-9]+?).*/gi,"$1")}return Q=Y,Ye}function Ke(Y,Ye,Ae,dt){var je,Pe,qe,me,R,xe,nt,ut=navigator.userAgent.toLowerCase(),ke=(ut.indexOf("safari")!=-1&&(ut=-1<ut.indexOf("chrome")?1:"safari"),Y.innerHTML.includes("mso-list:\nIgnore")&&(Y.innerHTML=Y.innerHTML.replace(/mso-list:\nIgnore/gi,"mso-list:Ignore")),/[0-9a-zA-Z\u0590-\u05FF]./gi),pt="",Bt=I(Y),Dt=(Dt=y(Y).find("ol"))==null||(Dt=Dt.attr("style"))==null||(Dt=Dt.split(";"))==null?void 0:Dt.find(function(Ft){return Ft.trim().startsWith("list-style-type")});if(Dt==null&&k(Y)&&(Dt=(bt=y(Y).find("ul"))==null||(bt=bt.attr("style"))==null||(bt=bt.split(";"))==null?void 0:bt.find(function(Ft){return Ft.trim().startsWith("list-style-type")})),Bt)me="ol",R=Dt?"list-style-type: "+Dt.replace("list-style-type:","").trim()+";":"";else if(k(Y))me="ul",R=Dt?"list-style-type: "+Dt.replace("list-style-type:","").trim()+";":"";else{var Et=Y.querySelector('span[style="mso-list:Ignore"]');if(!Et){for(var Kt=Y.querySelectorAll('span[style*="mso-list"]'),He=0;He<Kt.length;He++)if(Kt[He].getAttribute("style").replace(/[\n\r\s]+/g,"")==="mso-list:Ignore"){Et=Kt[He];break}}var ft,bt=!1;(Et=Et==null&&ut=="safari"?Y.querySelector('span[lang="PT-BR"]'):Et)&&(bt=bt||ke.test(Et.textContent),bt=Et.textContent.trim()!=="o"&&bt),Et!==null&&(ft=Et.textContent.trim().split(".")[0]),me=bt==1?(ft=(ft=Et.textContent.trim().split(".")[0]).replace(/\(([^)]+)\)|[)]$/g,"$1"),isNaN(parseInt(ft))?/^(m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3}))$/.test(ft)?(R="lower-roman;",Y.nextElementSibling&&Y.nextElementSibling.textContent.trim().split(".")[0].length===1&&(R="lower-alpha;")):/^(M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3}))$/.test(ft)?(R="upper-roman;",Y.nextElementSibling&&Y.nextElementSibling.textContent.trim().split(".")[0].length===1&&(R="upper-alpha;")):/^[\u0590-\u05FF]$/.test(ft)?R="hebrew;":ft.match(/^v$/)||(ft.match(/^[a-z]$/)||ft.match(/^[a-z]\)$/)?R="lower-alpha;":(ft.match(/^[A-Z]$/)||ft.match(/^[A-Z]\)$/))&&(R="upper-alpha;")):R="decimal;",R=R?"list-style-type: "+R:"","ol"):((ft=Et!=null?Et.textContent.trim().split(".")[0]:ft)=="\xA7"?R="square;":ft=="\xB7"?R="disc;":ft=="o"&&(R="circle;"),R=R?"list-style-type: "+R:"","ul"),Et==null||Et.textContent==null||isNaN(parseInt(Et.textContent.trim().split(".")[1],10))||(pt=' class="decimal_type" ')}for(var Dt=1,ut="",bt=(te(Y),Y.style.marginLeft),la="",ia=(function(ht){return ht=ht?ht.match(/margin-left\s*:\s*([^;]+)/i):null,ht?ht[1].trim():""})(Ye[Y.tagName.toLowerCase()+"."+Y.className]),ia=ia||0,da=(bt&&parseFloat(bt)!==parseFloat(ia)&&(bt.includes("in")?(la="in",bt=parseFloat(bt)-.5):bt.includes("pt")?(la="px",bt=parseFloat(bt)-10):bt.includes("cm")&&(la="cm",bt=parseFloat(bt)-1),nt=" margin-left: "+bt+la+";"),Dt=R=="list-style-type: upper-alpha;"?Bt?parseInt(y(Y).find("ol").attr("start")):ft.charCodeAt(0)-64:R=="list-style-type: lower-alpha;"?Bt?parseInt(y(Y).find("ol").attr("start")):ft.charCodeAt(0)-96:R=="list-style-type: upper-roman;"||R=="list-style-type: lower-roman;"?Bt?parseInt(y(Y).find("ol").attr("start")):(function(ht){for(var yt={I:1,V:5,X:10,L:50,C:100,D:500,M:1e3,i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},Yt=0,ta=0,Pt=ht.length-1;0<=Pt;Pt--){var fa=yt[ht[Pt]];ta<=fa?Yt+=fa:Yt-=fa,ta=fa}return Yt})(ft):R==="list-style-type: hebrew;"?Bt?parseInt(y(Y).find("ol").attr("start")):ft.charCodeAt(0)-1488+1:parseInt(Bt?y(Y).find("ol").attr("start"):ft),ut=ut+(R||"")+(nt||""),xe="<"+me,Y.style.display==="none"&&(xe+=' class="fr-mso-hidden"'),xe=(xe=(xe+=pt||"")+(me!="ol"||Dt==1||isNaN(Dt)?"":' start = "'+Dt+'"'))+(ut?' style = "'+ut+'"':"")+">",!1);Y;){if(!E(Y)){if(Y.outerHTML&&0<Y.outerHTML.indexOf("mso-bookmark")&&(Y.textContent||"").length==0){Y=Y.nextElementSibling;continue}break}var O=te(Y);if((Ae=Ae||O)<O)xe+=(qe=Ke(Y,Ye,O,Y.style.marginLeft)).el.outerHTML,Y=qe.currentNode;else{if(O<Ae)break;var Ge=I(Y),Le=Pe&&I(Pe);if(Pe&&Ge!==Le)break;Y.firstElementChild&&Y.firstElementChild.firstElementChild&&Y.firstElementChild.firstElementChild.firstChild&&(ke.lastIndex=0),Pe&&Pe.firstElementChild&&Pe.firstElementChild.firstElementChild&&Pe.firstElementChild.firstElementChild.firstChild&&(ke.lastIndex=0,je=ke.test(Pe.firstElementChild.firstElementChild.firstChild.data||Pe.firstElementChild.firstElementChild.firstChild.firstChild&&Pe.firstElementChild.firstElementChild.firstChild.firstChild.data||""));var we,Ge=!1,Le=Pe&&te(Pe),Ge=((!dt&&!Y.style.marginLeft||dt&&Y.style.marginLeft&&dt===Y.style.marginLeft||Le&&Le===O)&&(Ge=!0),dt=Y.style.marginLeft,Ge||je===void 0?(Le=(function(ht,yt){var Yt=ht.cloneNode(!0),ta=(["H1","H2","H3","H4","H5","H6"].indexOf(ht.tagName)!==-1&&((qa=document.createElement(ht.tagName.toLowerCase())).setAttribute("style",ht.getAttribute("style")),qa.innerHTML=Yt.innerHTML,Yt.innerHTML=qa.outerHTML),g(Yt,function(Wt){if(Wt.nodeType==Node.COMMENT_NODE&&(t.browser.msie||t.browser.safari||t.browser.edge))try{if(Wt.data==="[if !supportLists]"){for(Wt=Wt.nextSibling;Wt&&Wt.nodeType!==Node.COMMENT_NODE;){var b=Wt.nextSibling;Wt.parentNode.removeChild(Wt),Wt=b}Wt&&Wt.nodeType==Node.COMMENT_NODE&&Wt.parentNode.removeChild(Wt)}}catch(S){return!1}return Wt.nodeType===Node.ELEMENT_NODE&&(Wt.getAttribute("style")&&Wt.getAttribute("style").replace(/[\n\r\s]+/g,"")==="mso-list:Ignore"&&Wt.parentNode.removeChild(Wt),Wt.setAttribute("style",q(Wt)),De(Wt,yt)),!0}),(I(ht)?y(ht).find("li").get(0):Yt).innerHTML);if(I(ht)||k(ht))for(var ta="",Pt=y(ht).find("li"),fa=0;fa<Pt.length;fa++){var ga=y(Pt.get(fa).innerHTML),ua=(ga.find("span").each(function(){y(this).html()===" "&&(0<y(this).prev().text().trim().length?y(this).remove():y(this).html("​"))}),Pt[fa].style.marginLeft);ua?(ua=parseFloat(parseFloat(ua).toFixed(2))+ua.match(/[a-zA-Z]+/g)[0],ta+='<li style = "margin-left: '.concat(ua,';">').concat(ga.get(0).innerHTML,"</li>")):ta+="<li >".concat(ga.get(0).innerHTML,"</li>")}else{var qa,Yt=(qa=y(ht).find("p").get(0))==null?void 0:qa.style.marginLeft;ta=(Yt?(Yt=parseFloat(parseFloat(Yt).toFixed(2))+Yt.match(/[a-zA-Z]+/g)[0],'<li style = "margin-left: '.concat(Yt,';">')):"<li>").concat(ta,"</li>")}return ta=ta.replace(/<!--[\s\S]*?-->/gi,"")}
1)(Y,Ye),!Y.nextSibling||Y.nextSibling.innerText==null||Y.nextSibling.innerText==null||xe.includes('class="decimal_type"')||isNaN(parseInt(Y.nextSibling.innerText.trim().split(".")[1],10))||(xe=xe.substring(3,0)+' class="decimal_type"'+xe.substring(3,xe.length)),xe+=Le):(O==1&&(xe+="</"+me+">",da=!0,Pe=null),xe+=(qe=Ke(Y,Ye,O,Y.style.marginLeft)).el.outerHTML,Y=qe.currentNode),Y&&Y.nextElementSibling);if(Ge&&(Pe=Ge.previousElementSibling),Y&&!E(Y)){if(Y.outerHTML&&0<Y.outerHTML.indexOf("mso-bookmark")&&(Y.textContent||"").length==0){Y=Y.nextElementSibling;continue}break}Y&&Y.parentNode&&Y.parentNode.removeChild(Y),Ge&&E(Ge)&&(Le=(we=function(yt){return yt=yt.match(/mso-list:\s*l(\d+)/),yt?parseInt(yt[1]):null})(Y.getAttribute("style")||""),O=we(Ge.getAttribute("style")||""),Ge=Le!==null&&Le===O?Ge:null),Y=Ge}}return da||(xe+="</"+me+">"),ia=document.createElement("div"),ia.innerHTML=xe,{el:ia,currentNode:Y}}function q(Y,dt){var dt=1<arguments.length&&dt!==void 0?dt:null,Ae="",dt=["line-height","font-family","font-size","color","background"].concat(d(dt||[])),je=Y.getAttribute("style");return je&&dt.forEach(function(Pe){var qe=je.split(";").find(function(me){return me.trim().includes(Pe+":")});qe&&(qe=qe.includes("mso")?qe.match(new RegExp(Pe+":.*(;|)"))[0]:qe).trim().startsWith(Pe)&&(Ae+=qe+";")}),Ae}function ge(Y,Ye){for(var Ae=document.createElement(Ye),dt=0;dt<Y.attributes.length;dt++){var je=Y.attributes[dt].name;Y.tagName==="FONT"&&(t.browser.msie&&["id","class","style"].indexOf(je)<0||!t.browser.msie&&CSS.supports(je,Y.getAttribute(je)))?y(Ae).css(je,Y.getAttribute(je)):Ae.setAttribute(je,Y.getAttribute(je))}return Ae.innerHTML=Y.innerHTML,Y.parentNode.replaceChild(Ae,Y),Ae}function U(Y,Ye){t.node.clearAttributes(Y);for(var Ae=Y.firstElementChild,dt=0,je=!1,Pe=null;Ae;){if(Ae.firstElementChild&&Ae.firstElementChild.tagName.indexOf("W:")!==-1)for(var qe=0;qe<Ae.children.length;qe++)Ae.children[qe]=="<('[^']*'|\"[^\"]*\"|[^\"'>])*>"&&(Ae.innerHTML+=Ae.children[qe]);(Pe=(Pe=Ae.getAttribute("width"))||Ae.style.width)||(je=je||!0),dt+=parseInt(Pe,10),Ae.firstChild&&(Ae.firstChild,Ae.firstChild.data!==o.UNICODE_NBSP)||(Ae.firstChild&&v(Ae.firstChild),Ae.innerHTML="<br>");for(var me=Ae.firstElementChild,R=Ae.children.length===1;me;)me.tagName!=="P"||E(me)||R&&Oe(me),me=me.nextElementSibling;Ye&&((xe=Ae.getAttribute("class"))&&(xe=(xe=J(xe)).match(/xl[0-9]+/gi))&&Ye[xe="."+xe[0]]&&be(Ae,Ye[xe]),Ye.td)&&be(Ae,Ye.td);var xe=Ae.getAttribute("style"),nt=((xe=xe&&J(xe))&&xe.slice(-1)!==";"&&(xe+=";"),Ae.getAttribute("valign")),ut=(!nt&&xe&&(ut=xe.match(/vertical-align:.+?[; "]{1,1}/gi))&&(nt=ut[ut.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1")),null),ke=(xe&&(ut=(ke=xe.match(/text-align:.+?[; "]{1,1}/gi))?ke[ke.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1"):ut)==="general"&&(ut=null),null),pt=(xe&&(pt=xe.match(/background:.+?[; "]{1,1}/gi))&&(ke=pt[pt.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1")),Ae.getAttribute("colspan")),Bt=Ae.getAttribute("rowspan");pt&&Ae.setAttribute("colspan",pt),Bt&&Ae.setAttribute("rowspan",Bt),nt&&(Ae.style["vertical-align"]=nt),ut&&(Ae.style["text-align"]=ut),ke&&(Ae.style["background-color"]=ke),Pe&&Ae.setAttribute("width",Pe),Ae=Ae.nextElementSibling}for(Ae=Y.firstElementChild;Ae;)Pe=Ae.getAttribute("width"),je&&Ae.removeAttribute("width"),Ae=Ae.nextElementSibling;if(Y.previousSibling?a!=dt&&(ne=!1):a=dt,!Y.nextElementSibling){for(var Dt,Et=Y,Y=Et.closest("table"),Kt=0,He=function(){var la=0;Array.from(Et.children).forEach(function(ia){ia=parseInt(ia.getAttribute("width"),10),isNaN(ia)||(la+=ia)}),Kt<la&&(Kt=la),ne?Array.from(Et.children).forEach(function(ia){var da=parseInt(ia.getAttribute("width"),10);!isNaN(da)&&0<la&&(da=100*da/la,ia.setAttribute("width","".concat(da,"%")))}):Array.from(Et.children).forEach(function(ia){var da=parseInt(ia.getAttribute("width"),10);isNaN(da)||ia.setAttribute("width","".concat(da,"px"))}),Et=Et.previousElementSibling};Et;)He();Y&&0<Kt&&!(Y.getAttribute("width")||"").trim().endsWith("%")&&(Dt=parseInt(Y.style.width,10),isNaN(Dt)||Dt===0)&&(Y.style.width="".concat(Kt,"px"))}}function Oe(Y){var Ye=Y.getAttribute("align");Ye&&(Y.style["text-align"]=Ye,Y.removeAttribute("align"))}function J(Y){return Y.replace(/\n|\r|\n\r|"/g,"")}function be(Y,Ye){var Ae;Ye&&((Ae=Y.getAttribute("style"))&&Ae.slice(-1)!==";"&&(Ae+=";"),Ye&&Ye.slice(-1)!==";"&&(Ye+=";"),Ye=Ye.replace(/\n/gi,""),Y.setAttribute("style",Ye+(Ae||"")))}var Ne=null;function u(Y,Ye,Ae){for(var dt=Y.split(Ae),je=1;je<dt.length;je++)if(1<(Pe=(Pe=dt[je]).split("shplid")).length){for(var Pe=Pe[1],qe="",me=0;me<Pe.length&&Pe[me]!=="\\"&&Pe[me]!=="{"&&Pe[me]!==" "&&Pe[me]!=="\r"&&Pe[me]!=="\n";)qe+=Pe[me],me++;var R=Pe.split("bliptag");if(!(R&&R.length<2)){var xe=null;if(R[0].indexOf("pngblip")!==-1?xe="image/png":R[0].indexOf("jpegblip")!==-1&&(xe="image/jpeg"),xe&&(R=R[1].split("}"),!(R&&R.length<2))){var nt=void 0;if(2<R.length&&R[0].indexOf("blipuid")!==-1)nt=R[1].split(" ");else{if((nt=R[0].split(" "))&&nt.length<2)continue;nt.shift()}R=nt.join(""),Ne[Ye+qe]={image_hex:R,image_type:xe}}}}}function it(Y,Ye){if(Ye){if(Y.tagName==="IMG"){var Ae=Y.getAttribute("src");if(!Ae||Ae.indexOf("file://")===-1)return;if(Ae.indexOf("file://")===0&&t.helpers.isURL(Y.getAttribute("alt")))return void Y.setAttribute("src",Y.getAttribute("alt"));(Ae=P[Y.getAttribute("v:shapes")])||(Ae=Y.getAttribute("v:shapes"),Y.parentNode&&Y.parentNode.parentNode&&0<=Y.parentNode.parentNode.innerHTML.indexOf("msEquation")&&(Ae=null))}else Ae=Y.parentNode.getAttribute("o:spid");Y.removeAttribute("height"),Ae&&(Ne={},u(Ye=Ye,"i","\\shppict"),u(Ye,"s","\\shp{"),Ye=Ne[Ae.substring(7)])&&(Ae=(function(dt){for(var je=dt.match(/[0-9a-f]{2}/gi),Pe=[],qe=0;qe<je.length;qe++)Pe.push(String.fromCharCode(parseInt(je[qe],16)));return dt=Pe.join(""),btoa(dt)})(Ye.image_hex),Ye="data:"+Ye.image_type+";base64,"+Ae,Y.tagName==="IMG"?(Y.src=Ye,Y.setAttribute("data-fr-image-pasted",!0)):y(Y).parent().before('<img data-fr-image-pasted="true" src="'.concat(Ye,'" style="').concat(Y.parentNode.getAttribute("style"),'">')).remove())}}function De(Y,Ye){var Ae=Y.tagName,dt=Ae.toLowerCase();if(Y.firstElementChild&&(Y.firstElementChild.tagName==="I"?ge(Y.firstElementChild,"em"):Y.firstElementChild.tagName==="B"&&ge(Y.firstElementChild,"strong")),["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"].indexOf(Ae)!==-1)return v(Y),!1;for(var je=["META","LINK","XML","ST1:","O:","W:","FONT"],Pe=0;Pe<je.length;Pe++)if(Ae.indexOf(je[Pe])!==-1)return Y.innerHTML&&(Y.outerHTML=Y.innerHTML),v(Y),!1;if(Ae!=="TD"){var qe=Y.getAttribute("class")||"MsoNormal";if(Ye&&qe){for(var me=(qe=J(qe)).split(" "),R=0;R<me.length;R++){var xe=[],nt="."+me[R];xe.push(nt),xe.push(dt+nt);for(var ut=0;ut<xe.length;ut++)Ye[xe[ut]]&&be(Y,Ye[xe[ut]])}Y.removeAttribute("class")}Ye&&Ye[dt]&&be(Y,Ye[dt])}if(["P","H1","H2","H3","H4","H5","H6","PRE"].indexOf(Ae)!==-1&&((qe=Y.getAttribute("class"))&&(Ye&&Ye[Ae.toLowerCase()+"."+qe]&&be(Y,Ye[Ae.toLowerCase()+"."+qe]),qe.toLowerCase().indexOf("mso")!==-1)&&((qe=(qe=J(qe)).replace(/[0-9a-z-_]*mso[0-9a-z-_]*/gi,""))?Y.setAttribute("class",qe):Y.removeAttribute("class")),(qe=Y.getAttribute("style"))&&(qe=qe.match(/text-align:.+?[; "]{1,1}/gi))&&qe[qe.length-1].replace(/(text-align:.+?[; "]{1,1})/gi,"$1"),Oe(Y)),Ae==="TR"&&U(Y,Ye),Ae!=="A"||Y.attributes.getNamedItem("href")||Y.attributes.getNamedItem("name")||!Y.innerHTML||(Y.outerHTML=Y.innerHTML),Ae=="A"&&Y.getAttribute("href")&&Y.querySelector("img"))for(var ke=Y.querySelectorAll("span"),pt=0;pt<ke.length;pt++)ke[pt].innerText||(ke[pt].outerHTML=ke[pt].innerHTML);return Ae!=="TD"&&Ae!=="TH"||Y.innerHTML||(Y.innerHTML="<br>"),Y.getAttribute("lang")&&Y.removeAttribute("lang"),Y.getAttribute("style")&&Y.getAttribute("style").toLowerCase().indexOf("mso")!==-1&&((qe=(qe=J(Y.getAttribute("style"))).replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,"").replace("line-height:107%",""))?Y.setAttribute("style",qe):Y.removeAttribute("style")),!0}function Vt(R,Ye){for(var Ae=(R=(R=0<=R.indexOf("<html")?R.replace(/[.\s\S\w\W<>]*(<html[^>]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1"):R).replace(/ /g," ")).match(/(MSFontService|class="?Mso|class='?Mso|class="?Xl|class='?Xl|class=Xl|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument|LibreOffice)/gi),dt=R.split("v:shape"),je=1;je<dt.length;je++){var Pe=dt[je],qe=Pe.split(' id="')[1];qe&&1<qe.length&&(qe=qe.split('"')[0],Pe=Pe.split(' o:spid="')[1])&&1<Pe.length&&(Pe=Pe.split('"')[0],P[qe]=Pe)}var R=new DOMParser().parseFromString(R,"text/html"),me=R.head,R=R.body,xe=(function(ke){var pt={};if((ke=ke.getElementsByTagName("style")).length){var Bt=ke[0].innerHTML.match(/[\S ]+\s+{[\s\S]+?}/gi);if(Bt)for(var Dt=0;Dt<Bt.length;Dt++){var Et=Bt[Dt],Kt=Et.replace(/([\S ]+\s+){[\s\S]+?}/gi,"$1"),He=Et.replace(/[\S ]+\s+{([\s\S]+?)}/gi,"$1"),Kt=Kt.replace(/^[\s]|[\s]$/gm,""),He=He.replace(/^[\s]|[\s]$/gm,"");Kt=Kt.replace(/\n|\r|\n\r/g,""),He=He.replace(/\n|\r|\n\r/g,"");for(var ft=Kt.split(", "),bt=0;bt<ft.length;bt++)pt[ft[bt]]=He}}return pt})(me);g(R,function(ke){var pt;return ke.nodeType===Node.ELEMENT_NODE&&ke.hasAttribute("style")&&(pt=ke.getAttribute("style"),ke.setAttribute("style",pt),ke.style.fontFamily||ke.setAttribute("style",pt.replace(/mso-(bidi|fareast|fareast-theme)-font-family/g,"font-family"))),!0}),g(R,function(ke){if(ke.nodeType===Node.TEXT_NODE&&/\n|\u00a0|\r/.test(ke.data)){if
1(!/\S| /.test(ke.data)&&!/[\u00a0]+/.test(ke.data))return ke.data===o.UNICODE_NBSP?(ke.data="\u200B",!0):ke.data.length===1&&ke.data.charCodeAt(0)===10?(ke.data=" ",!0):(v(ke),!1);ke.data=ke.data.replace(/\n|\r/gi," ")}return!0}),g(R,function(ke){return ke.nodeType!==Node.ELEMENT_NODE||ke.tagName!=="V:IMAGEDATA"&&ke.tagName!=="IMG"||it(ke,Ye),!0}),R.querySelectorAll('a[class*="msocomoff"]').forEach(function(ke){var pt=ke.getAttribute("href").split("#_msoanchor_")[1];ke.setAttribute("name","_msocom_".concat(pt))}),t.browser.safari&&R.querySelectorAll('a[name^="_mso"]').forEach(function(ke){var pt=ke.getAttribute("href");pt&&(pt=pt.split("#")[1],ke.setAttribute("href","#".concat(pt)))});for(var nt=R.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),ut=nt.length-1;0<=ut;ut--)nt[ut].previousElementSibling&&nt[ut].previousElementSibling.tagName==="LI"&&nt[ut].previousElementSibling.appendChild(nt[ut]);return g(R,function(ke){if(ke.nodeType===Node.TEXT_NODE)ke.data=ke.data.replace(/<br>(\n|\r)/gi,"<br>");else{var pt,Bt,Dt,Et,Kt;if(ke.nodeType===Node.ELEMENT_NODE)return E(ke)?(pt=ke.parentNode,Et=ke.previousSibling,Bt=Ke(ke,xe).el,Dt=null,(Dt=Et?Et.nextSibling:pt.firstChild)?pt.insertBefore(Bt,Dt):pt.appendChild(Bt),!1):(ke.tagName==="FONT"&&(Ae&&Ae[0]==="LibreOffice"||xe["."+ke.getAttribute("class")])?ke=ge(ke,"span"):Ae&&Ae[0]==="<!--StartFragment-->"&&ke.tagName==="UL"&&(y(ke).find("li span").each(function(){y(this).html()===" "&&(0<y(this).prev().text().trim().length?y(this).remove():y(this).html("​"))}),y(ke).is("ul")&&ke.setAttribute("style",q(ke,["margin","margin-left","list-style-type"])),y(ke).find("ul").each(function(){this.setAttribute("style",q(this,["margin","margin-left","list-style-type"]))})),ke.tagName.toLowerCase()!=="img"&&(Kt=ke,Array.from(Kt.attributes).map(function(ft){return ft.name}).filter(function(ft){return ft.toLowerCase().startsWith("data-")||ft.toLowerCase().startsWith("xml:")}).forEach(function(ft){y(Kt).removeAttr(ft)})),De(ke,xe));if(ke.nodeType!==Node.COMMENT_NODE)return!0;if(-1<ke.data.indexOf("[if !supportLineBreakNewLine]"))for(var He=ke.nextSibling;He;)(He=ke.nextSibling)&&v(He),He.data&&-1<He.data.indexOf("[endif]")&&(He=null);-1<ke.data.indexOf("[if supportFields]")&&-1<ke.data.indexOf("FORMCHECKBOX")&&((Et=document.createElement("input")).type="checkbox",ke.parentNode.insertBefore(Et,ke.nextSibling)),v(ke)}return!1}),Q=null,x={},g(R,function(ke){if(ke.nodeType===Node.ELEMENT_NODE&&ke.tagName==="SPAN"){var pt=ke.innerHTML||"";if((pt=pt.replace(/ /g," ")).trim()==="")return ke.outerHTML=pt,!1}return!0}),R.innerHTML=(function(ke){for(var pt=y(document.createElement("div")).attr("id","top-level"),Bt=(pt.html(ke),pt[0].querySelectorAll("ol, ul")),Dt=0;Dt<Bt.length;Dt++)if(y(Bt[Dt]).parentsUntil("#top-level","ol, ul").length){Bt[Dt].style.removeProperty("margin-left");for(var Et=Bt[Dt].children,Kt=0;Kt<Et.length;Kt++)Et[Kt].tagName=="LI"&&Et[Kt].style.removeProperty("margin-left")}return pt[0].innerHTML})(R.innerHTML),g(R,function(ke){if(ke.nodeType===Node.ELEMENT_NODE){var Dt=ke.tagName;if(!ke.innerHTML&&["BR","IMG","INPUT"].indexOf(Dt)===-1){for(var pt=ke.parentNode;pt&&(v(ke),!(ke=pt).innerHTML)&&ke.parentNode.tagName!=="TD";)pt=ke.parentNode;return!1}var Bt=ke,Dt=Bt.getAttribute("style");if(Dt){(Dt=J(Dt))&&Dt.slice(-1)!==";"&&(Dt+=";");var Et=Dt.match(/(^|\S+?):.+?;{1,1}/gi);if(Et){for(var Kt={},He=0;He<Et.length;He++){var ft=Et[He].split(":");ft.length!==2||ft[0]==="text-align"&&Bt.tagName==="SPAN"||(Kt[ft[0]]=ft[1])}var bt,la="";for(bt in Kt)if(Kt.hasOwnProperty(bt)){if(bt==="font-size"&&Kt[bt].slice(-3)==="pt;"){var ia,da=null;try{da=parseFloat(Kt[bt].slice(0,-3),10)}catch(O){da=null}da&&((ia=t.opts.fontSizeUnit)==="px"?(da=Math.round(1.33*da),Kt[bt]=da+"px;"):ia==="pt"&&(da=Math.round(da),Kt[bt]=da+"pt;"))}la+=bt+":"+Kt[bt]}la&&Bt.setAttribute("style",la)}}}return!0}),g(R,function(ke){if(ke&&ke.nodeName==="A"){if(ke.hasAttribute("name")&&ke.getAttribute("name").startsWith("_Toc")&&ke.parentNode&&(ke.parentNode.id=ke.getAttribute("name")),ke.href===""){for(var pt=document.createDocumentFragment();ke.firstChild;)pt.appendChild(ke.firstChild);ke.parentNode.replaceChild(pt,ke)}ke.hasAttribute("href")&&ke.getAttribute("href").startsWith("#_Toc")&&(ke.removeChild(ke.lastChild),ke.removeChild(ke.lastChild))}return!0}),g(R,function(ke){return ke&&ke.tagName==="P"&&ke.parentNode.tagName==="DIV"&&ke.parentNode.children.length==1&&y(ke).unwrap(),!0}),g(R,function(ke){if(ke&&ke.tagName==="SPAN")for(;ke.nextSibling&&ke.nextSibling.nodeType===Node.ELEMENT_NODE&&ke.nextSibling.tagName==="SPAN"&&ke.getAttribute("style")===ke.nextSibling.getAttribute("style");)y(ke).append(ke.nextSibling.innerHTML),y(ke.nextSibling).remove();return!0}),g(R,function(ke){var pt;return ke.nodeType===Node.ELEMENT_NODE&&ke.tagName==="BR"&&((pt=ke.getAttribute("style")||"").includes("page-break-before")||pt.includes("page-break-after"))&&t.pageBreak.insert(ke),!0}),me=R.outerHTML,R=t.opts.htmlAllowedStyleProps,t.opts.htmlAllowedStyleProps=t.opts.wordAllowedStyleProps,me=t.clean.html(me,t.opts.wordDeniedTags,t.opts.wordDeniedAttrs,!1),t.opts.htmlAllowedStyleProps=R,me}return{_init:function(){t.events.on("paste.wordPaste",function(Y){var Ye;return h=Y,t.opts.wordPasteModal?(s||(Y='<h4><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74.95 73.23" style="height: 25px; vertical-align: text-bottom; margin-right: 5px; display: inline-block"><defs><style>.a{fill:#2a5699;}.b{fill:#fff;}</style></defs><path class="a" d="M615.15,827.22h5.09V834c9.11.05,18.21-.09,27.32.05a2.93,2.93,0,0,1,3.29,3.25c.14,16.77,0,33.56.09,50.33-.09,1.72.17,3.63-.83,5.15-1.24.89-2.85.78-4.3.84-8.52,0-17,0-25.56,0v6.81h-5.32c-13-2.37-26-4.54-38.94-6.81q0-29.8,0-59.59c13.05-2.28,26.11-4.5,39.17-6.83Z" transform="translate(-575.97 -827.22)"/><path class="b" d="M620.24,836.59h28.1v54.49h-28.1v-6.81h22.14v-3.41H620.24v-4.26h22.14V873.2H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24V846h22.14v-3.41H620.24Zm-26.67,15c1.62-.09,3.24-.16,4.85-.25,1.13,5.75,2.29,11.49,3.52,17.21,1-5.91,2-11.8,3.06-17.7,1.7-.06,3.41-.15,5.1-.26-1.92,8.25-3.61,16.57-5.71,24.77-1.42.74-3.55,0-5.24.09-1.13-5.64-2.45-11.24-3.47-16.9-1,5.5-2.29,10.95-3.43,16.42q-2.45-.13-4.92-.3c-1.41-7.49-3.07-14.93-4.39-22.44l4.38-.18c.88,5.42,1.87,10.82,2.64,16.25,1.2-5.57,2.43-11.14,3.62-16.71Z" transform="translate(-575.97 -827.22)"/></svg> '+t.language.translate("Word Paste Detected")+"</h4>",Ye=(function(){var Ae='<div class="fr-word-paste-modal" style="padding: 20px 20px 10px 20px;">';return Ae=(Ae+='<p style="text-align: left;">'+t.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"</p>")+'<div style="text-align: right; margin-top: 50px;"><button class="fr-remove-word fr-command">'+t.language.translate("Clean")+'</button> <button class="fr-keep-word fr-command">'+t.language.translate("Keep")+"</button></div></div>"})(),Y=t.modals.create(j,Y,Ye),Ye=Y.$body,(s=Y.$modal).addClass("fr-middle"),t.events.bindClick(Ye,"button.fr-remove-word",function(){(s.data("instance")||t).wordPaste.clean()}),t.events.bindClick(Ye,"button.fr-keep-word",function(){(s.data("instance")||t).wordPaste.clean(!0)}),t.events.$on(y(t.o_win),"resize",function(){t.modals.resize(j)})),t.modals.show(j),t.modals.resize(j)):ue(t.opts.wordPasteKeepFormatting),!1})},clean:ue,_wordClean:Vt}}})});var Mo=Ba((yi,Bo)=>{"use strict";(function(o,e){typeof yi=="object"&&typeof Bo<"u"?e(_a()):typeof define=="function"&&define.amd?define(["froala-editor"],e):e((typeof globalThis<"u"?globalThis:o||self).FroalaEditor)})(yi,function(o){"use strict";function e(d){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(d)}if(Object.assign(o.DEFAULTS,{imageTUIOptions:{includeUI:{theme:{"menu.normalIcon.path":"https://cdn.jsdelivr.net/npm/[email protected]/dist/svg/icon-d.svg","menu.activeIcon.path":"https://cdn.jsdelivr.net/npm/[email protected]/dist/svg/icon-b.svg","menu.disabledIcon.path":"https://cdn.jsdelivr.net/npm/[email protected]/dist/svg/icon-a.svg","menu.hoverIcon.path":"https://cdn.jsdelivr.net/npm/[email protected]/dist/svg/icon-c.svg","submenu.normalIcon.path":"https://cdn.jsdelivr.net/npm/[email protected]/dist/svg/icon-d.svg","submenu.normalIcon.name":"icon-d","submenu.activeIcon.path":"https://cdn.jsdelivr.net/npm/[email protected]/dist/svg/icon-c.svg","submenu.activeIcon.name":"icon-c"},initMenu:"filter",menuBarPosition:"left"}},tui:window.tui}),o.PLUGINS.imageTUI=function(d){var t=d.$,s=!0;function h(y,j){t("#tuieditor").remove(),y.style.display="none",s||j===void 0||j.filesManager.setChildWindowState(!1)}function a(y,j,P,ne,ue){for(var y=y.toDataURL(),v=atob(y.split(",")[1]),g=[],I=0;I<v.length;I++)g.push(v.charCodeAt(I));y=new Blob([new Uint8Array(g)],{type:"image/png"}),ne?(j.image.edit(P),j.image.upload([y])):(j.filesManager.saveImage([y]),ue!=null?(j.filesManager.upload(y,[y],null,ue),j.filesManager.getFileThumbn
1ail(ue,y,!0)):j.filesManager.upload(y,[y],null,P))}return{_init:function(){var y=d.o_doc.body,j=d.o_doc.createElement("div");j.setAttribute("id","tuiContainer"),j.style.cssText="position: fixed; top: 0;left: 0;margin: 0;padding: 0;width: 100%;height: 100%;background: rgba(0,0,0,.5);z-index: 9998;display:none",y.appendChild(j)},launch:function(y,j,P){var ne,ue,v,g,I;s=j,e(d.opts.tui)==="object"&&((I=d.o_doc.createElement("div")).setAttribute("id","tuieditor"),(ue=d.o_doc.getElementById("tuiContainer")).appendChild(I),ue.style.display="block",I=(j?(ne=y.image.get())[0]:ne=y.filesManager.get()).src,(v=d.opts.imageTUIOptions).includeUI.loadImage={path:I,name:" "},g=new d.opts.tui.ImageEditor(d.o_doc.querySelector("#tuieditor"),v),(I=d.o_doc.getElementById("tuieditor")).style.minHeight="590px",I.style.width="94%",I.style.height="94%",I.style.margin="auto",t(".tui-image-editor-header-buttons").html('<button class="tui-editor-cancel-btn" data-cmd="cancel_tui_image">Cancel</button> <button class="tui-editor-save-btn">Save</button>'),t(".tui-editor-cancel-btn")[0].addEventListener("click",function(k){h(ue,y)}),t(".tui-editor-save-btn")[0].addEventListener("click",function(k){P!=null?a(g,y,ne,j,P):a(g,y,ne,j),h(ue,y)}))}}},o.DefineIcon("imageTUI",{NAME:"sliders",FA5NAME:"sliders-h",SVG_KEY:"advancedImageEditor"}),o.RegisterCommand("imageTUI",{title:"Advanced Edit",undo:!1,focus:!1,callback:function(d,t){this.imageTUI.launch(this,!0)},plugin:"imageTUI"}),!o.PLUGINS.image)throw new Error("TUI image editor plugin requires image plugin.");o.DEFAULTS.imageEditButtons.push("imageTUI")})});var Fo=Ba((wi,Si)=>{"use strict";(function(o,e){typeof wi=="object"&&typeof Si<"u"?Si.exports=e():typeof define=="function"&&define.amd?define(e):o.MicRecorder=e()})(wi,function(){function o(Z){return new Int16Array(Z)}function e(Z){return new Int32Array(Z)}function d(Z){return new Float32Array(Z)}var t={fill:function(Z,le,Fe,Ce){if(arguments.length==2)for(var st=0;st<Z.length;st++)Z[st]=arguments[1];else for(st=le;st<Fe;st++)Z[st]=Ce}},s={arraycopy:function(Z,le,Fe,Ce,st){for(var Qe=le+st;le<Qe;)Fe[Ce++]=Z[le++]}},h={};function a(Z){this.ordinal=Z}h.SQRT2=1.4142135623730951,h.FAST_LOG10=function(Z){return Math.log10(Z)},h.FAST_LOG10_X=function(Z,le){return Math.log10(Z)*le},a.short_block_allowed=new a(0),a.short_block_coupled=new a(1),a.short_block_dispensed=new a(2),a.short_block_forced=new a(3);var y={};function j(Z){this.ordinal=Z}y.MAX_VALUE=34028235e31,j.vbr_off=new j(0),j.vbr_mt=new j(1),j.vbr_rh=new j(2),j.vbr_abr=new j(3),j.vbr_mtrh=new j(4),j.vbr_default=j.vbr_mtrh;var P={System:s,VbrMode:j,Float:y,ShortBlock:a,Util:h,Arrays:t,new_array_n:function Z(le){if(le.length==1)return new Array(le[0]);var Fe=le[0];le=le.slice(1);for(var Ce=[],st=0;st<Fe;st++)Ce.push(Z(le));return Ce},new_byte:function(Z){return new Int8Array(Z)},new_double:function(Z){return new Float64Array(Z)},new_float:d,new_float_n:function Z(le){if(le.length==1)return d(le[0]);var Fe=le[0];le=le.slice(1);for(var Ce=[],st=0;st<Fe;st++)Ce.push(Z(le));return Ce},new_int:e,new_int_n:function Z(le){if(le.length==1)return e(le[0]);var Fe=le[0];le=le.slice(1);for(var Ce=[],st=0;st<Fe;st++)Ce.push(Z(le));return Ce},new_short:o,new_short_n:function Z(le){if(le.length==1)return o(le[0]);var Fe=le[0];le=le.slice(1);for(var Ce=[],st=0;st<Fe;st++)Ce.push(Z(le));return Ce},assert:function(Z){}},ne=P.System,ue=P.Util,v=P.Arrays,g=P.new_float,I=function(){var Z=[-.1482523854003001,32.308141959636465,296.40344946382766,883.1344870032432,11113.947376231741,1057.2713659324597,305.7402417275812,30.825928907280012,3.8533188138216365,59.42900443849514,709.5899960123345,5281.91112291017,-5829.66483675846,-817.6293103748613,-76.91656988279972,-4.594269939176596,.9063471690191471,.1960342806591213,-.15466694054279598,34.324387823855965,301.8067566458425,817.599602898885,11573.795901679885,1181.2520595540152,321.59731579894424,31.232021761053772,3.7107095756221318,53.650946155329365,684.167428119626,5224.56624370173,-6366.391851890084,-908.9766368219582,-89.83068876699639,-5.411397422890401,.8206787908286602,.3901806440322567,-.16070888947830023,36.147034243915876,304.11815768187864,732.7429163887613,11989.60988270091,1300.012278487897,335.28490093152146,31.48816102859945,3.373875931311736,47.232241542899175,652.7371796173471,5132.414255594984,-6909.087078780055,-1001.9990371107289,-103.62185754286375,-6.104916304710272,.7416505462720353,.5805693545089249,-.16636367662261495,37.751650073343995,303.01103387567713,627.9747488785183,12358.763425278165,1412.2779918482834,346.7496836825721,31.598286663170416,3.1598635433980946,40.57878626349686,616.1671130880391,5007.833007176154,-7454.040671756168,-1095.796034186711
vendor: 6,178 bytes, line 1
15,-118.24411666465777,-6.818469345853504,.6681786379192989,.7653668647301797,-.1716176790982088,39.11551877123304,298.3413246578966,503.5259106886539,12679.589408408976,1516.5821921214542,355.9850766329023,31.395241710249053,2.9164211881972335,33.79716964664243,574.8943997801362,4853.234992253242,-7997.57021486075,-1189.7624067269965,-133.6444792601766,-7.7202770609839915,.5993769336819237,.9427934736519954,-.17645823955292173,40.21879108166477,289.9982036694474,359.3226160751053,12950.259102786438,1612.1013903507662,362.85067106591504,31.045922092242872,2.822222032597987,26.988862316190684,529.8996541764288,4671.371946949588,-8535.899136645805,-1282.5898586244496,-149.58553632943463,-8.643494270763135,.5345111359507916,1.111140466039205,-.36174739330527045,41.04429910497807,277.5463268268618,195.6386023135583,13169.43812144731,1697.6433561479398,367.40983966190305,30.557037410382826,2.531473372857427,20.070154905927314,481.50208566532336,4464.970341588308,-9065.36882077239,-1373.62841526722,-166.1660487028118,-9.58289321133207,.4729647758913199,1.268786568327291,-.36970682634889585,41.393213350082036,261.2935935556502,12.935476055240873,13336.131683328815,1772.508612059496,369.76534388639965,29.751323653701338,2.4023193045459172,13.304795348228817,430.5615775526625,4237.0568611071185,-9581.931701634761,-1461.6913552409758,-183.12733958476446,-10.718010163869403,.41421356237309503,1.414213562373095,-.37677560326535325,41.619486213528496,241.05423794991074,-187.94665032361226,13450.063605744153,1836.153896465782,369.4908799925761,29.001847876923147,2.0714759319987186,6.779591200894186,377.7767837205709,3990.386575512536,-10081.709459700915,-1545.947424837898,-200.3762958015653,-11.864482073055006,.3578057213145241,1.546020906725474,-.3829366947518991,41.1516456456653,216.47684307105183,-406.1569483347166,13511.136535077321,1887.8076599260432,367.3025214564151,28.136213436723654,1.913880671464418,.3829366947518991,323.85365704338597,3728.1472257487526,-10561.233882199509,-1625.2025997821418,-217.62525175416,-13.015432208941645,.3033466836073424,1.66293922460509,-.5822628872992417,40.35639251440489,188.20071124269245,-640.2706748618148,13519.21490106562,1927.6022433578062,362.8197642637487,26.968821921868447,1.7463817695935329,-5.62650678237171,269.3016715297017,3453.386536448852,-11016.145278780888,-1698.6569643425091,-234.7658734267683,-14.16351421663124,.2504869601913055,1.76384252869671,-.5887180101749253,39.23429103868072,155.76096234403798,-889.2492977967378,13475.470561874661,1955.0535223723712,356.4450994756727,25.894952980042156,1.5695032905781554,-11.181939564328772,214.80884394039484,3169.1640829158237,-11443.321309975563,-1765.1588461316153,-251.68908574481912,-15.49755935939164,.198912367379658,1.847759065022573,-.7912582233652842,37.39369355329111,119.699486012458,-1151.0956593239027,13380.446257078214,1970.3952110853447,348.01959814116185,24.731487364283044,1.3850130831637748,-16.421408865300393,161.05030052864092,2878.3322807850063,-11838.991423510031,-1823.985884688674,-268.2854986386903,-16.81724543849939,.1483359875383474,1.913880671464418,-.7960642926861912,35.2322109610459,80.01928065061526,-1424.0212633405113,13235.794061869668,1973.804052543835,337.9908651258184,23.289159354463873,1.3934255946442087,-21.099669467133474,108.48348407242611,2583.700758091299,-12199.726194855148,-1874.2780658979746,-284.2467154529415,-18.11369784385905,.09849140335716425,1.961570560806461,-.998795456205172,32.56307803611191,36.958364584370486,-1706.075448829146,13043.287458812016,1965.3831106103316,326.43182772364605,22.175018750622293,1.198638339011324,-25.371248002043963,57.53505923036915,2288.41886619975,-12522.674544337233,-1914.8400385312243,-299.26241273417224,-19.37805630698734,.04912684976946725,1.990369453344394,.035780907*ue.SQRT2*.5/2384e-9,.017876148*ue.SQRT2*.5/2384e-9,.003134727*ue.SQRT2*.5/2384e-9,.002457142*ue.SQRT2*.5/2384e-9,971317e-9*ue.SQRT2*.5/2384e-9,218868e-9*ue.SQRT2*.5/2384e-9,101566e-9*ue.SQRT2*.5/2384e-9,13828e-9*ue.SQRT2*.5/2384e-9,12804.797818791945,1945.5515939597317,313.4244966442953,20.801593959731544,1995.1556208053692,9.000838926174497,-29.20218120805369],le=[[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,940084909404969e-27,6423305872147839e-28,2382191739347918e-28,5456116108943412e-27,4878985199565852e-27,4240448995017367e-27,3559909094758252e-27,2858043359288075e-27,2156177623817898e-27,1475637723558783e-27,8371015190102974e-28,2599706096327376e-28,-5456116108943412e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758252e-27,-2858043359288076e-27,-2156177623817898e-27,-1475637723558783e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347923e-28,-6423305872147843e-28,-9400849094049696e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049694e-28,-642330587214784e-27,-2382191739347918e-28],[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,9400849094049688e-28,6423305872147841e-28,2382191739347918e-28,5456116108943413e-27,4878985199565852e-27,4240448995017367e-27,3559909094758253e-27,2858043359288075e-27,2156177623817898e-27,1475637723558782e-27,8371015190102975e-28,2599706096327376e-28,-5461314069809755e-27,-4921085770524055e-27,-4343405037091838e-27,-3732668368707687e-27,-3093523840190885e-27,-2430835727329465e-27,-1734679010007751e-27,-974825365660928e-27,-2797435120168326e-28,0,0,0,0,0,0,-2283748241799531e-28,-4037858874020686e-28,-2146547464825323e-28],[.1316524975873958,.414213562373095,.7673269879789602,1.091308501069271,1.303225372841206,1.56968557711749,1.920982126971166,2.414213562373094,3.171594802363212,4.510708503662055,7.595754112725146,22.90376554843115,.984807753012208,.6427876096865394,.3420201433256688,.9396926207859084,-.1736481776669303,-.7660444431189779,.8660254037844387,.5,-.5144957554275265,-.4717319685649723,-.3133774542039019,-.1819131996109812,-.09457419252642064,-.04096558288530405,-.01419856857247115,-.003699974673760037,.8574929257125442,.8817419973177052,.9496286491027329,.9833145924917901,.99551
178160675857,.9991605581781475,.999899195244447,.9999931550702802],[0,0,0,0,0,0,2283748241799531e-28,4037858874020686e-28,2146547464825323e-28,5461314069809755e-27,4921085770524055e-27,4343405037091838e-27,3732668368707687e-27,3093523840190885e-27,2430835727329466e-27,1734679010007751e-27,974825365660928e-27,2797435120168326e-28,-5456116108943413e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758253e-27,-2858043359288075e-27,-2156177623817898e-27,-1475637723558782e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347913e-28,-6423305872147834e-28,-9400849094049688e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049688e-28,-6423305872147841e-28,-2382191739347918e-28]],Fe=le[u.SHORT_TYPE],Ce=le[u.SHORT_TYPE],st=le[u.SHORT_TYPE],Qe=le[u.SHORT_TYPE],ze=[0,1,16,17,8,9,24,25,4,5,20,21,12,13,28,29,2,3,18,19,10,11,26,27,6,7,22,23,14,15,30,31];function kt(m,w,i){for(var re,Se,r,T=10,D=w+238-14-286,X=-15;X<0;X++){var L,f,p;L=Z[T+-10],f=m[D+-224]*L,p=m[w+224]*L,L=Z[T+-9],f+=m[D+-160]*L,p+=m[w+160]*L,L=Z[T+-8],f+=m[D+-96]*L,p+=m[w+96]*L,L=Z[T+-7],f+=m[D+-32]*L,p+=m[w+32]*L,L=Z[T+-6],f+=m[D+32]*L,p+=m[w+-32]*L,L=Z[T+-5],f+=m[D+96]*L,p+=m[w+-96]*L,L=Z[T+-4],f+=m[D+160]*L,p+=m[w+-160]*L,L=Z[T+-3],f+=m[D+224]*L,p+=m[w+-224]*L,L=Z[T+-2],f+=m[w+-256]*L,p-=m[D+256]*L,L=Z[T+-1],f+=m[w+-192]*L,p-=m[D+192]*L,L=Z[T+0],f+=m[w+-128]*L,p-=m[D+128]*L,L=Z[T+1],f+=m[w+-64]*L,p-=m[D+64]*L,L=Z[T+2],f+=m[w+0]*L,p-=m[D+0]*L,L=Z[T+3],f+=m[w+64]*L,p-=m[D+-64]*L,L=Z[T+4],f+=m[w+128]*L,p-=m[D+-128]*L,L=Z[T+5],f+=m[w+192]*L,L=(p-=m[D+-192]*L)-(f*=Z[T+6]),i[30+2*X]=p+f,i[31+2*X]=Z[T+7]*L,T+=18,w--,D++}p=m[w+-16]*Z[T+-10],f=m[w+-32]*Z[T+-2],p+=(m[w+-48]-m[w+16])*Z[T+-9],f+=m[w+-96]*Z[T+-1],p+=(m[w+-80]+m[w+48])*Z[T+-8],f+=m[w+-160]*Z[T+0],p+=(m[w+-112]-m[w+80])*Z[T+-7],f+=m[w+-224]*Z[T+1],p+=(m[w+-144]+m[w+112])*Z[T+-6],f-=m[w+32]*Z[T+2],p+=(m[w+-176]-m[w+144])*Z[T+-5],f-=m[w+96]*Z[T+3],p+=(m[
1w+-208]+m[w+176])*Z[T+-4],f-=m[w+160]*Z[T+4],p+=(m[w+-240]-m[w+208])*Z[T+-3],re=(f-=m[w+224])-p,Se=f+p,p=i[14],f=i[15]-p,i[31]=Se+p,i[30]=re+f,i[15]=re-f,i[14]=Se-p,r=i[28]-i[0],i[0]+=i[28],i[28]=r*Z[T+-36+7],r=i[29]-i[1],i[1]+=i[29],i[29]=r*Z[T+-36+7],r=i[26]-i[2],i[2]+=i[26],i[26]=r*Z[T+-72+7],r=i[27]-i[3],i[3]+=i[27],i[27]=r*Z[T+-72+7],r=i[24]-i[4],i[4]+=i[24],i[24]=r*Z[T+-108+7],r=i[25]-i[5],i[5]+=i[25],i[25]=r*Z[T+-108+7],r=i[22]-i[6],i[6]+=i[22],i[22]=r*ue.SQRT2,r=i[23]-i[7],i[7]+=i[23],i[23]=r*ue.SQRT2-i[7],i[7]-=i[6],i[22]-=i[7],i[23]-=i[22],r=i[6],i[6]=i[31]-r,i[31]=i[31]+r,r=i[7],i[7]=i[30]-r,i[30]=i[30]+r,r=i[22],i[22]=i[15]-r,i[15]=i[15]+r,r=i[23],i[23]=i[14]-r,i[14]=i[14]+r,r=i[20]-i[8],i[8]+=i[20],i[20]=r*Z[T+-180+7],r=i[21]-i[9],i[9]+=i[21],i[21]=r*Z[T+-180+7],r=i[18]-i[10],i[10]+=i[18],i[18]=r*Z[T+-216+7],r=i[19]-i[11],i[11]+=i[19],i[19]=r*Z[T+-216+7],r=i[16]-i[12],i[12]+=i[16],i[16]=r*Z[T+-252+7],r=i[17]-i[13],i[13]+=i[17],i[17]=r*Z[T+-252+7],r=-i[20]+i[24],i[20]+=i[24],i[24]=r*Z[T+-216+7],r=-i[21]+i[25],i[21]+=i[25],i[25]=r*Z[T+-216+7],r=i[4]-i[8],i[4]+=i[8],i[8]=r*Z[T+-216+7],r=i[5]-i[9],i[5]+=i[9],i[9]=r*Z[T+-216+7],r=i[0]-i[12],i[0]+=i[12],i[12]=r*Z[T+-72+7],r=i[1]-i[13],i[1]+=i[13],i[13]=r*Z[T+-72+7],r=i[16]-i[28],i[16]+=i[28],i[28]=r*Z[T+-72+7],r=-i[17]+i[29],i[17]+=i[29],i[29]=r*Z[T+-72+7],r=ue.SQRT2*(i[2]-i[10]),i[2]+=i[10],i[10]=r,r=ue.SQRT2*(i[3]-i[11]),i[3]+=i[11],i[11]=r,r=ue.SQRT2*(-i[18]+i[26]),i[18]+=i[26],i[26]=r-i[18],r=ue.SQRT2*(-i[19]+i[27]),i[19]+=i[27],i[27]=r-i[19],r=i[2],i[19]-=i[3],i[3]-=r,i[2]=i[31]-r,i[31]+=r,r=i[3],i[11]-=i[19],i[18]-=r,i[3]=i[30]-r,i[30]+=r,r=i[18],i[27]-=i[11],i[19]-=r,i[18]=i[15]-r,i[15]+=r,r=i[19],i[10]-=r,i[19]=i[14]-r,i[14]+=r,r=i[10],i[11]-=r,i[10]=i[23]-r,i[23]+=r,r=i[11],i[26]-=r,i[11]=i[22]-r,i[22]+=r,r=i[26],i[27]-=r,i[26]=i[7]-r,i[7]+=r,r=i[27],i[27]=i[6]-r,i[6]+=r,r=ue.SQRT2*(i[0]-i[4]),i[0]+=i[4],i[4]=r,r=ue.SQRT2*(i[1]-i[5]),i[1]+=i[5],i[5]=r,r=ue.SQRT2*(i[16]-i[20]),i[16]+=i[20],i[20]=r,r=ue.SQRT2*(i[17]-i[21]),i[17]+=i[21],i[21]=r,r=-ue.SQRT2*(i[8]-i[12]),i[8]+=i[12],i[12]=r-i[8],r=-ue.SQRT2*(i[9]-i[13]),i[9]+=i[13],i[13]=r-i[9],r=-ue.SQRT2*(i[25]-i[29]),i[25]+=i[29],i[29]=r-i[25],r=-ue.SQRT2*(i[24]+i[28]),i[24]-=i[28],i[28]=r-i[24],r=i[24]-i[16],i[24]=r,r=i[20]-r,i[20]=r,r=i[28]-r,i[28]=r,r=i[25]-i[17],i[25]=r,r=i[21]-r,i[21]=r,r=i[29]-r,i[29]=r,r=i[17]-i[1],i[17]=r,r=i[9]-r,i[9]=r,r=i[25]-r,i[25]=r,r=i[5]-r,i[5]=r,r=i[21]-r,i[21]=r,r=i[13]-r,i[13]=r,r=i[29]-r,i[29]=r,r=i[1]-i[0],i[1]=r,r=i[16]-r,i[16]=r,r=i[17]-r,i[17]=r,r=i[8]-r,i[8]=r,r=i[9]-r,i[9]=r,r=i[24]-r,i[24]=r,r=i[25]-r,i[25]=r,r=i[4]-r,i[4]=r,r=i[5]-r,i[5]=r,r=i[20]-r,i[20]=r,r=i[21]-r,i[21]=r,r=i[12]-r,i[12]=r,r=i[13]-r,i[13]=r,r=i[28]-r,i[28]=r,r=i[29]-r,i[29]=r,r=i[0],i[0]+=i[31],i[31]-=r,r=i[1],i[1]+=i[30],i[30]-=r,r=i[16],i[16]+=i[15],i[15]-=r,r=i[17],i[17]+=i[14],i[14]-=r,r=i[8],i[8]+=i[23],i[23]-=r,r=i[9],i[9]+=i[22],i[22]-=r,r=i[24],i[24]+=i[7],i[7]-=r,r=i[25],i[25]+=i[6],i[6]-=r,r=i[4],i[4]+=i[27],i[27]-=r,r=i[5],i[5]+=i[26],i[26]-=r,r=i[20],i[20]+=i[11],i[11]-=r,r=i[21],i[21]+=i[10],i[10]-=r,r=i[12],i[12]+=i[19],i[19]-=r,r=i[13],i[13]+=i[18],i[18]-=r,r=i[28],i[28]+=i[3],i[3]-=r,r=i[29],i[29]+=i[2],i[2]-=r}function fe(m,w){for(var i=0;i<3;i++){var re,Se,r,T,D,X;Se=(T=m[w+6]*le[u.SHORT_TYPE][0]-m[w+15])+(re=m[w+0]*le[u.SHORT_TYPE][2]-m[w+9]),r=T-re,D=(T=m[w+15]*le[u.SHORT_TYPE][0]+m[w+6])+(re=m[w+9]*le[u.SHORT_TYPE][2]+m[w+0]),X=-T+re,re=2069978111953089e-26*(m[w+3]*le[u.SHORT_TYPE][1]-m[w+12]),T=2069978111953089e-26*(m[w+12]*le[u.SHORT_TYPE][1]+m[w+3]),m[w+0]=190752519173728e-25*Se+re,m[w+15]=190752519173728e-25*-D+T,r=.8660254037844387*r*1907525191737281e-26,D=.5*D*1907525191737281e-26+T,m[w+3]=r-D,m[w+6]=r+D,Se=.5*Se*1907525191737281e-26-re,X=.8660254037844387*X*1907525191737281e-26,m[w+9]=Se+X,m[w+12]=Se-X,w++}}this.mdct_sub48=function(m,w,i){for(var re,Se,r,T,D,X,L,f,p,A,N,F,M,ce,W,c,K,oe,G,H,Me,Ee=w,ve=286,Xe=0;Xe<m.channels_out;Xe++){for(var Re=0;Re<m.mode_gr;Re++){for(var Ie,gt=m.l3_side.tt[Re][Xe],We=gt.xr,rt=0,Ot=m.sb_sample[Xe][1-Re],ea=0,vt=0;vt<9;vt++)for(kt(Ee,ve,Ot[ea]),kt(Ee,ve+32,Ot[ea+1]),ea+=2,ve+=64,Ie=1;Ie<32;Ie+=2)Ot[ea-1][Ie]*=-1;for(Ie=0;Ie<32;Ie++,rt+=18){var It=gt.block_type,Ue=m.sb_sample[Xe][Re],Zt=m.sb_sample[Xe][1-Re];if(gt.mixed_block_flag!=0&&Ie<2&&(It=0),m.amp_filter[Ie]<1e-12)v.fill(We,rt+0,rt+18,0);else{if(m.amp_filter[Ie]<1)for(vt=0;vt<18;vt++)Zt[vt][ze[Ie]]*=m.amp_filter[Ie];if(It==u.SHORT_TYPE){for(vt=-3;vt<0;vt++){var oa=le[u.SHORT_TYPE][vt+3];We[rt+3*vt+9]=Ue[9+vt][ze[Ie]]*oa-Ue[8-vt][ze[Ie]],We[rt+3*vt+18]=Ue[14-vt][ze[Ie]]*oa+Ue[15+vt][ze[Ie]],We[rt+3*vt+10]=Ue[15+vt][ze[Ie]]*oa-Ue[14-vt][ze[Ie]],We[rt+3*vt+19]=Zt[2-vt][ze[Ie]]*oa+Zt[3+vt][ze[Ie]],We[rt+3*vt+11]=Zt[3+vt][ze[Ie]]*oa-Zt[2-vt][ze[Ie]],We[rt+3*vt+20]=Zt[8-vt][ze[Ie]]*oa+Zt[9+vt][ze[Ie]]}fe(We,rt)}else{var wa=g(18);for(vt=-9;vt<0;vt++){var Gt,Aa;Gt=le[It][vt+27]*Zt[vt+9][ze[Ie]]+le[It][vt+36]*Zt[8-vt][ze[Ie]],Aa=le[It][vt+9]*Ue[vt+9][ze[Ie]]-le[It][vt+18]*Ue[8-vt][ze[Ie]],wa[vt+9]=Gt-Aa*Fe[3+vt+9],wa[vt+18]=Gt*Fe[3+vt+9]+Aa}re=We,Se=rt,T=void 0,D=void 0,X=void 0,L=void 0,f=void 0,p=void 0,A=void 0,N=void 0,F=void 0,M=void 0,ce=void 0,W=void 0,c=void 0,K=void 0,oe=void 0,G=void 0,H=void 0,Me=void 0,X=(r=wa)[17]-r[9],f=r[15]-r[11],p=r[14]-r[12],A=r[0]+r[8],N=r[1]+r[7],F=r[2]+r[6],M=r[3]+r[5],re[Se+17]=A+F-M-(N-r[4]),D=(A+F-M)*Ce[19]+(N-r[4]),T=(X-f-p)*Ce[18],re[Se+5]=T+D,re[Se+6]=T-D,L=(r[16]-r[10])*Ce[18],N=N*Ce[19]+r[4],T=X*Ce[12]+L+f*Ce[13]+p*Ce[14],D=-A*Ce[16]+N-F*Ce[17]+M*Ce[15],re[Se+1]=T+D,re[Se+2]=T-D,T=X*Ce[13]-L-f*Ce[14]+p*Ce[12],D=-A*Ce[17]+N-F*Ce[15]+M*Ce[16],re[Se+9]=T+D,re[Se+10]=T-D,T=X*Ce[14]-L+f*Ce[12]-p*Ce[13],D=A*Ce[15]-N+F*Ce[16]-M*Ce[17],re[Se+13]=T+D,re[Se+14]=T-D,ce=r[8]-r[0],c=r[6]-r[2],K=r[5]-r[3],oe=r[17]+r[9],G=r[16]+r[10],H=r[15]+r[11],Me=r[14]+r[12],re[Se+0]=oe+H+Me+(G+r[13]),T=(oe+H+Me)*Ce[19]-(G+r[13]),D=(ce-c+K)*Ce[18],re[Se+11]=T+D,re[Se+12]=T-D,W=(r[7]-r[1])*Ce[18],G=r[13]-G*Ce[19],T=oe*Ce[15]-G+H*Ce[16]+Me*Ce[17],D=ce*Ce[14]+W+c*Ce[12]+K*Ce[13],re[
1Se+3]=T+D,re[Se+4]=T-D,T=-oe*Ce[17]+G-H*Ce[15]-Me*Ce[16],D=ce*Ce[13]+W-c*Ce[14]-K*Ce[12],re[Se+7]=T+D,re[Se+8]=T-D,T=-oe*Ce[16]+G-H*Ce[17]-Me*Ce[15],D=ce*Ce[12]-W+c*Ce[13]-K*Ce[14],re[Se+15]=T+D,re[Se+16]=T-D}}if(It!=u.SHORT_TYPE&&Ie!=0)for(vt=7;vt>=0;--vt){var Ma,Ca;Ma=We[rt+vt]*st[20+vt]+We[rt+-1-vt]*Qe[28+vt],Ca=We[rt+vt]*Qe[28+vt]-We[rt+-1-vt]*st[20+vt],We[rt+-1-vt]=Ma,We[rt+vt]=Ca}}}if(Ee=i,ve=286,m.mode_gr==1)for(var Ta=0;Ta<18;Ta++)ne.arraycopy(m.sb_sample[Xe][1][Ta],0,m.sb_sample[Xe][0][Ta],0,32)}}},k=P.System,E=P.new_float,Q=P.new_float_n,x=function(){this.l=E(u.SBMAX_l),this.s=Q([u.SBMAX_s,3]);var Z=this;this.assign=function(le){k.arraycopy(le.l,0,Z.l,0,u.SBMAX_l);for(var Fe=0;Fe<u.SBMAX_s;Fe++)for(var Ce=0;Ce<3;Ce++)Z.s[Fe][Ce]=le.s[Fe][Ce]}},te=function(){this.thm=new x,this.en=new x},Ke=P.System,q=P.VbrMode,ge=P.new_array_n,U=P.new_float,Oe=P.new_float_n,J=P.new_int,be=P.assert;function Ne(){var Z=I,le=te,Fe=Ne.FFTOFFSET,Ce=Ne.MPG_MD_MS_LR,st=null;this.psy=null;var Qe=null,ze=null,kt=null;this.setModules=function(m,w,i,re){st=m,this.psy=w,Qe=w,ze=re,kt=i};var fe=new Z;this.lame_encode_mp3_frame=function(m,w,i,re,Se,r){var T,D=ge([2,2]);D[0][0]=new le,D[0][1]=new le,D[1][0]=new le,D[1][1]=new le;var X,L=ge([2,2]);L[0][0]=new le,L[0][1]=new le,L[1][0]=new le,L[1][1]=new le;var f,p,A,N=[null,null],F=m.internal_flags,M=Oe([2,4]),ce=[.5,.5],W=[[0,0],[0,0]],c=[[0,0],[0,0]];if(N[0]=w,N[1]=i,F.lame_encode_frame_init==0&&(function(We,rt){var Ot,ea,vt=We.internal_flags;if(vt.lame_encode_frame_init==0){var It,Ue,Zt=U(2014),oa=U(2014);for(vt.lame_encode_frame_init=1,It=0,Ue=0;It<286+576*(1+vt.mode_gr);++It)It<576*vt.mode_gr?(Zt[It]=0,vt.channels_out==2&&(oa[It]=0)):(Zt[It]=rt[0][Ue],vt.channels_out==2&&(oa[It]=rt[1][Ue]),++Ue);for(ea=0;ea<vt.mode_gr;ea++)for(Ot=0;Ot<vt.channels_out;Ot++)vt.l3_side.tt[ea][Ot].block_type=Ne.SHORT_TYPE;fe.mdct_sub48(vt,Zt,oa),be(576>=Ne.FFTOFFSET),be(vt.mf_size>=Ne.BLKSIZE+We.framesize-Ne.FFTOFFSET),be(vt.mf_size>=512+We.framesize-32)}})(m,N),F.padding=0,(F.slot_lag-=F.frac_SpF)<0&&(F.slot_lag+=m.out_samplerate,F.padding=1),F.psymodel!=0){var K=[null,null],oe=0,G=J(2);for(A=0;A<F.mode_gr;A++){for(p=0;p<F.channels_out;p++)K[p]=N[p],oe=576+576*A-Ne.FFTOFFSET;if((m.VBR==q.vbr_mtrh||m.VBR==q.vbr_mt?Qe.L3psycho_anal_vbr(m,K,oe,A,D,L,W[A],c[A],M[A],G):Qe.L3psycho_anal_ns(m,K,oe,A,D,L,W[A],c[A],M[A],G))!=0)return-4;for(m.mode==Ka.JOINT_STEREO&&(ce[A]=M[A][2]+M[A][3],ce[A]>0&&(ce[A]=M[A][3]/ce[A])),p=0;p<F.channels_out;p++){var H=F.l3_side.tt[A][p];H.block_type=G[p],H.mixed_block_flag=0}}}else for(A=0;A<F.mode_gr;A++)for(p=0;p<F.channels_out;p++)F.l3_side.tt[A][p].block_type=Ne.NORM_TYPE,F.l3_side.tt[A][p].mixed_block_flag=0,c[A][p]=W[A][p]=700;if((function(We){var rt,Ot;if(We.ATH.useAdjust!=0)if(Ot=We.loudness_sq[0][0],rt=We.loudness_sq[1][0],We.channels_out==2?(Ot+=We.loudness_sq[0][1],rt+=We.loudness_sq[1][1]):(Ot+=Ot,rt+=rt),We.mode_gr==2&&(Ot=Math.max(Ot,rt)),Ot*=.5,(Ot*=We.ATH.aaSensitivityP)>.03125)We.ATH.adjust>=1?We.ATH.adjust=1:We.ATH.adjust<We.ATH.adjustLimit&&(We.ATH.adjust=We.ATH.adjustLimit),We.ATH.adjustLimit=1;else{var ea=31.98*Ot+625e-6;We.ATH.adjust>=ea?(We.ATH.adjust*=.075*ea+.925,We.ATH.adjust<ea&&(We.ATH.adjust=ea)):We.ATH.adjustLimit>=ea?We.ATH.adjust=ea:We.ATH.adjust<We.ATH.adjustLimit&&(We.ATH.adjust=We.ATH.adjustLimit),We.ATH.adjustLimit=ea}else We.ATH.adjust=1})(F),fe.mdct_sub48(F,N[0],N[1]),F.mode_ext=Ne.MPG_MD_LR_LR,m.force_ms)F.mode_ext=Ne.MPG_MD_MS_LR;else if(m.mode==Ka.JOINT_STEREO){var Me=0,Ee=0;for(A=0;A<F.mode_gr;A++)for(p=0;p<F.channels_out;p++)Me+=c[A][p],Ee+=W[A][p];if(Me<=1*Ee){var ve=F.l3_side.tt[0],Xe=F.l3_side.tt[F.mode_gr-1];ve[0].block_type==ve[1].block_type&&Xe[0].block_type==Xe[1].block_type&&(F.mode_ext=Ne.MPG_MD_MS_LR)}}if(F.mode_ext==Ce?(X=L,f=c):(X=D,f=W),m.analysis&&F.pinfo!=null)for(A=0;A<F.mode_gr;A++)for(p=0;p<F.channels_out;p++)F.pinfo.ms_ratio[A]=F.ms_ratio[A],F.pinfo.ms_ener_ratio[A]=ce[A],F.pinfo.blocktype[A][p]=F.l3_side.tt[A][p].block_type,F.pinfo.pe[A][p]=f[A][p],Ke.arraycopy(F.l3_side.tt[A][p].xr,0,F.pinfo.xr[A][p],0,576),F.mode_ext==Ce&&(F.pinfo.ers[A][p]=F.pinfo.ers[A][p+2],Ke.arraycopy(F.pinfo.energy[A][p+2],0,F.pinfo.energy[A][p],0,F.pinfo.energy[A][p].length));if(m.VBR==q.vbr_off||m.VBR==q.vbr_abr){var Re,Ie;for(Re=0;Re<18;Re++)F.nsPsy.pefirbuf[Re]=F.nsPsy.pefirbuf[Re+1];for(Ie=0,A=0;A<F.mode_gr;A++)for(p=0;p<F.channels_out;p++)Ie+=f[A][p];for(F.nsPsy.pefirbuf[18]=Ie,Ie=F.nsPsy.pefirbuf[9],Re=0;Re<9;Re++)Ie+=(F.nsPsy.pefirbuf[Re]+F.nsPsy.pefirbuf[18-Re])*Ne.fircoef[Re];for(Ie=3350*F.mode_gr*F.channels_out/Ie,A=0;A<F.mode_gr;A++)for(p=0;p<F.channels_out;p++)f[A][p]*=Ie}if(F.iteration_loop.iteration_loop(m,f,ce,X),st.format_bitstream(m),T=st.copy_buffer(F,re,Se,r,1),m.bWriteVbrTag&&ze.addVbrFrame
1(m),m.analysis&&F.pinfo!=null){for(p=0;p<F.channels_out;p++){var gt;for(gt=0;gt<Fe;gt++)F.pinfo.pcmdata[p][gt]=F.pinfo.pcmdata[p][gt+m.framesize];for(gt=Fe;gt<1600;gt++)F.pinfo.pcmdata[p][gt]=N[p][gt-Fe]}kt.set_frame_pinfo(m,X)}return(function(We){var rt,Ot;for(be(0<=We.bitrate_index&&We.bitrate_index<16),be(0<=We.mode_ext&&We.mode_ext<4),We.bitrate_stereoMode_Hist[We.bitrate_index][4]++,We.bitrate_stereoMode_Hist[15][4]++,We.channels_out==2&&(We.bitrate_stereoMode_Hist[We.bitrate_index][We.mode_ext]++,We.bitrate_stereoMode_Hist[15][We.mode_ext]++),rt=0;rt<We.mode_gr;++rt)for(Ot=0;Ot<We.channels_out;++Ot){var ea=0|We.l3_side.tt[rt][Ot].block_type;We.l3_side.tt[rt][Ot].mixed_block_flag!=0&&(ea=4),We.bitrate_blockType_Hist[We.bitrate_index][ea]++,We.bitrate_blockType_Hist[We.bitrate_index][5]++,We.bitrate_blockType_Hist[15][ea]++,We.bitrate_blockType_Hist[15][5]++}})(F),T}}Ne.ENCDELAY=576,Ne.POSTDELAY=1152,Ne.MDCTDELAY=48,Ne.FFTOFFSET=224+Ne.MDCTDELAY,Ne.DECDELAY=528,Ne.SBLIMIT=32,Ne.CBANDS=64,Ne.SBPSY_l=21,Ne.SBPSY_s=12,Ne.SBMAX_l=22,Ne.SBMAX_s=13,Ne.PSFB21=6,Ne.PSFB12=6,Ne.BLKSIZE=1024,Ne.HBLKSIZE=Ne.BLKSIZE/2+1,Ne.BLKSIZE_s=256,Ne.HBLKSIZE_s=Ne.BLKSIZE_s/2+1,Ne.NORM_TYPE=0,Ne.START_TYPE=1,Ne.SHORT_TYPE=2,Ne.STOP_TYPE=3,Ne.MPG_MD_LR_LR=0,Ne.MPG_MD_LR_I=1,Ne.MPG_MD_MS_LR=2,Ne.MPG_MD_MS_I=3,Ne.fircoef=[-.1039435,-.1892065,5*-.0432472,-.155915,3898045e-23,.0467745*5,.50455,.756825,.187098*5];var u=Ne,it=P.Util,De=P.new_float,Vt=function(){var Z=De(u.BLKSIZE),le=De(u.BLKSIZE_s/2),Fe=[.9238795325112867,.3826834323650898,.9951847266721969,.0980171403295606,.9996988186962042,.02454122852291229,.9999811752826011,.006135884649154475];function Ce(Qe,ze,kt){var fe,m,w,i=0,re=ze+(kt<<=1);fe=4;do{var Se,r,T,D,X,L,f;f=fe>>1,L=(X=fe<<1)+(D=fe),fe=X<<1,w=(m=ze)+f;do W=Qe[m+0]-Qe[m+D],ce=Qe[m+0]+Qe[m+D],G=Qe[m+X]-Qe[m+L],K=Qe[m+X]+Qe[m+L],Qe[m+X]=ce-K,Qe[m+0]=ce+K,Qe[m+L]=W-G,Qe[m+D]=W+G,W=Qe[w+0]-Qe[w+D],ce=Qe[w+0]+Qe[w+D],G=it.SQRT2*Qe[w+L],K=it.SQRT2*Qe[w+X],Qe[w+X]=ce-K,Qe[w+0]=ce+K,Qe[w+L]=W-G,Qe[w+D]=W+G,w+=fe,m+=fe;while(m<re);for(r=Fe[i+0],Se=Fe[i+1],T=1;T<f;T++){var p,A;p=1-2*Se*Se,A=2*Se*r,m=ze+T,w=ze+D-T;do{var N,F,M,ce,W,c,K,oe,G,H;F=A*Qe[m+D]-p*Qe[w+D],N=p*Qe[m+D]+A*Qe[w+D],W=Qe[m+0]-N,ce=Qe[m+0]+N,c=Qe[w+0]-F,M=Qe[w+0]+F,F=A*Qe[m+L]-p*Qe[w+L],N=p*Qe[m+L]+A*Qe[w+L],G=Qe[m+X]-N,K=Qe[m+X]+N,H=Qe[w+X]-F,oe=Qe[w+X]+F,F=Se*K-r*H,N=r*K+Se*H,Qe[m+X]=ce-N,Qe[m+0]=ce+N,Qe[w+L]=c-F,Qe[w+D]=c+F,F=r*oe-Se*G,N=Se*oe+r*G,Qe[w+X]=M-N,Qe[w+0]=M+N,Qe[m+L]=W-F,Qe[m+D]=W+F,w+=fe,m+=fe}while(m<re);r=(p=r)*Fe[i+0]-Se*Fe[i+1],Se=p*Fe[i+1]+Se*Fe[i+0]}i+=2}while(fe<kt)}var st=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254];this.fft_short=function(Qe,ze,kt,fe,m){for(var w=0;w<3;w++){var i=u.BLKSIZE_s/2,re=65535&192*(w+1),Se=u.BLKSIZE_s/8-1;do{var r,T,D,X,L,f=255&st[Se<<2];T=(r=le[f]*fe[kt][m+f+re])-(L=le[127-f]*fe[kt][m+f+re+128]),r+=L,X=(D=le[f+64]*fe[kt][m+f+re+64])-(L=le[63-f]*fe[kt][m+f+re+192]),D+=L,i-=4,ze[w][i+0]=r+D,ze[w][i+2]=r-D,ze[w][i+1]=T+X,ze[w][i+3]=T-X,T=(r=le[f+1]*fe[kt][m+f+re+1])-(L=le[126-f]*fe[kt][m+f+re+129]),r+=L,X=(D=le[f+65]*fe[kt][m+f+re+65])-(L=le[62-f]*fe[kt][m+f+re+193]),D+=L,ze[w][i+u.BLKSIZE_s/2+0]=r+D,ze[w][i+u.BLKSIZE_s/2+2]=r-D,ze[w][i+u.BLKSIZE_s/2+1]=T+X,ze[w][i+u.BLKSIZE_s/2+3]=T-X}while(--Se>=0);Ce(ze[w],i,u.BLKSIZE_s/2)}},this.fft_long=function(Qe,ze,kt,fe,m){var w=u.BLKSIZE/8-1,i=u.BLKSIZE/2;do{var re,Se,r,T,D,X=255&st[w];Se=(re=Z[X]*fe[kt][m+X])-(D=Z[X+512]*fe[kt][m+X+512]),re+=D,T=(r=Z[X+256]*fe[kt][m+X+256])-(D=Z[X+768]*fe[kt][m+X+768]),r+=D,ze[0+(i-=4)]=re+r,ze[i+2]=re-r,ze[i+1]=Se+T,ze[i+3]=Se-T,Se=(re=Z[X+1]*fe[kt][m+X+1])-(D=Z[X+513]*fe[kt][m+X+513]),re+=D,T=(r=Z[X+257]*fe[kt][m+X+257])-(D=Z[X+769]*fe[kt][m+X+769]),r+=D,ze[i+u.BLKSIZE/2+0]=re+r,ze[i+u.BLKSIZE/2+2]=re-r,ze[i+u.BLKSIZE/2+1]=Se+T,ze[i+u.BLKSIZE/2+3]=Se-T}while(--w>=0);Ce(ze,i,u.BLKSIZE/2)},this.init_fft=function(Qe){for(var ze=0;ze<u.BLKSIZE;ze++)Z[ze]=.42-.5*Math.cos(2*Math.PI*(ze+.5)/u.BLKSIZE)+.08*Math.cos(4*Math.PI*(ze+.5)/u.BLKSIZE);for(ze=0;ze<u.BLKSIZE_s/2;ze++)le[ze]=.5*(1-Math.cos(2*Math.PI*(ze+.5)/u.BLKSIZE_s))}},Y=P.VbrMode,Ye=P.Float,Ae=P.ShortBlock,dt=P.Util,je=P.Arrays,Pe=P.new_float,qe=P.new_float_n,me=P.new_int,R=P.assert,xe=function(){var Z=new Vt,le=2.302585092994046,Fe=2,Ce=16,st=2,Qe=16,ze=.34,kt=1/217621504/(u.BLKSIZE/2),fe=.3,m=21,w=.2302585093;function i(ae){return ae}function re(ae,de){for(var tt=0,se=0;se<u.BLKSIZE/2;++se)tt+=ae[se]*de.ATH.eql_w[se];return tt*=kt}function Se(ae,de,tt,se,Je,ye,Ve,at,$e,mt,Rt){var Ze=ae.internal_flags;if($e<2)Z.fft_long(Ze,se[Je],$e,mt,Rt),Z.fft_short(Ze,ye[Ve],$e,mt,Rt);else if($e==2){for(var _t=u.BLKSIZE-1;_t>=0;--_t){var lt=se[Je+0][_t],wt=se[Je+1][_t];se[Je+0][_t]=(lt+wt)*dt.SQRT2*.5,se[Je+1][_t]=(lt-wt)*dt.SQRT2*.5}for(var $t=2;$t>=0;--$t)for(_t=u.BLKSIZE_s-1;_t>=0;--_t)lt=ye[Ve+0][$t][_t],wt=ye[Ve+1][$t][_t],ye[Ve+0][$t][_t]=(lt+wt)*dt.SQRT2*.5,ye[Ve+1][$t][_t]=(lt-wt)*dt.SQRT2*.5}for(de[0]=se[Je+0][0],de[0]*=de[0],_t=u.BLKSIZE/2-1;_t>=0;--_t){var Ht=se[Je+0][u.BLKSIZE/2-_t],zt=se[Je+0][u.BLKSIZE/2+_t];de[u.BLKSIZE/2-_t]=.5*(Ht*Ht+zt*zt)}for($t=2;$t>=0;--$t)for(tt[$t][0]=ye[Ve+0][$t][0],tt[$t][0]*=tt[$t][0],_t=u.BLKSIZE_s/2-1;_t>=0;--_t)Ht=ye[Ve+0][$t][u.BLKSIZE_s/2-_t],zt=ye[Ve+0][$t][u.BLKSIZE_s/2+_t],tt[$t][u.BLKSIZE_s/2-_t]=.5*(Ht*Ht+zt*zt);var ra=0;for(_t=11;_t<u.HBLKSIZE;_t++)ra+=de[_t];if(Ze.tot_ener[$e]=ra,ae.analysis){for(_t=0;_t<u.HBLKSIZE;_t++)Ze.pinfo.energy[at][$e][_t]=Ze.pinfo.energy_save[$e][_t],Ze.pinfo.energy_save[$e][_t]=de[_t];Ze.pinfo.pe[at][$e]=Ze.pe[$e]}ae.athaa_loudapprox==2&&$e<2&&(Ze.loudness_sq[at][$e]=Ze.loudness_sq_save[$e],Ze.loudness_sq_save[$e]=re(de,Ze))}var r,T,D,X=8,L=23,f=15,p=[1,.79433,.63096,.63096,.63096,.63096,.63096,.25119,.11749],A=[3.3246*3.3246,3.23837*3.23837,9.9500500969,9.0247369744,8.1854926609,7.0440875649,2.46209*2.46209,2.284*2.284,4.4892710641,1.96552*1.96552,1.82335*1.82335,1.69146*1.69146,2.4621061921,2.1508568964,1.37074*1.37074,1.31036*1.31036,1.5691069696,1.45559399
104,1.16203*1.16203,1.2715945225,1.09428*1.09428,1.0659*1.0659,1.0779838276,1.0382591025,1],N=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1],F=[5.5396212496,2.29259*2.29259,4.9868695969,2.12675*2.12675,2.02545*2.02545,1.87894*1.87894,1.74303*1.74303,1.61695*1.61695,2.2499700001,1.39148*1.39148,1.29083*1.29083,1.19746*1.19746,1.2339655056,1.0779838276];function M(ae,de,tt,se,Je,ye){var Ve,at,$e;if(de>ae){if(!(de<ae*T))return ae+de;Ve=de/ae}else{if(ae>=de*T)return ae+de;Ve=ae/de}if(R(ae>=0),R(de>=0),ae+=de,se+3<=6){if(Ve>=r)return ae;var mt=0|dt.FAST_LOG10_X(Ve,16);return ae*N[mt]}return mt=0|dt.FAST_LOG10_X(Ve,16),de=ye!=0?Je.ATH.cb_s[tt]*Je.ATH.adjust:Je.ATH.cb_l[tt]*Je.ATH.adjust,R(de>=0),ae<D*de?ae>de?(at=1,mt<=13&&(at=F[mt]),$e=dt.FAST_LOG10_X(ae/de,10/15),ae*((A[mt]-at)*$e+at)):mt>13?ae:ae*F[mt]:ae*A[mt]}var ce=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1];function W(ae,de,tt){var se;if(ae<0&&(ae=0),de<0&&(de=0),ae<=0)return de;if(de<=0)return ae;if(se=de>ae?de/ae:ae/de,-2<=tt&&tt<=2){if(se>=r)return ae+de;var Je=0|dt.FAST_LOG10_X(se,16);return(ae+de)*ce[Je]}return se<T?ae+de:(ae<de&&(ae=de),ae)}function c(ae,de,tt,se,Je){var ye,Ve,at=0,$e=0;for(ye=Ve=0;ye<u.SBMAX_s;++Ve,++ye){for(var mt=ae.bo_s[ye],Rt=ae.npart_s,Ze=mt<Rt?mt:Rt;Ve<Ze;)R(de[Ve]>=0),R(tt[Ve]>=0),at+=de[Ve],$e+=tt[Ve],Ve++;if(ae.en[se].s[ye][Je]=at,ae.thm[se].s[ye][Je]=$e,Ve>=Rt){++ye;break}R(de[Ve]>=0),R(tt[Ve]>=0);var _t=ae.PSY.bo_s_weight[ye],lt=1-_t;at=_t*de[Ve],$e=_t*tt[Ve],ae.en[se].s[ye][Je]+=at,ae.thm[se].s[ye][Je]+=$e,at=lt*de[Ve],$e=lt*tt[Ve]}for(;ye<u.SBMAX_s;++ye)ae.en[se].s[ye][Je]=0,ae.thm[se].s[ye][Je]=0}function K(ae,de,tt,se){var Je,ye,Ve=0,at=0;for(Je=ye=0;Je<u.SBMAX_l;++ye,++Je){for(var $e=ae.bo_l[Je],mt=ae.npart_l,Rt=$e<mt?$e:mt;ye<Rt;)R(de[ye]>=0),R(tt[ye]>=0),Ve+=de[ye],at+=tt[ye],ye++;if(ae.en[se].l[Je]=Ve,ae.thm[se].l[Je]=at,ye>=mt){++Je;break}R(de[ye]>=0),R(tt[ye]>=0);var Ze=ae.PSY.bo_l_weight[Je],_t=1-Ze;Ve=Ze*de[ye],at=Ze*tt[ye],ae.en[se].l[Je]+=Ve,ae.thm[se].l[Je]+=at,Ve=_t*de[ye],at=_t*tt[ye]}for(;Je<u.SBMAX_l;++Je)ae.en[se].l[Je]=0,ae.thm[se].l[Je]=0}function oe(ae,de,tt,se,Je,ye){var Ve,at,$e=ae.internal_flags;for(at=Ve=0;at<$e.npart_s;++at){for(var mt=0,Rt=0,Ze=$e.numlines_s[at],_t=0;_t<Ze;++_t,++Ve){var lt=de[ye][Ve];mt+=lt,Rt<lt&&(Rt=lt)}tt[at]=mt}for(R(at==$e.npart_s),R(Ve==129),Ve=at=0;at<$e.npart_s;at++){var wt=$e.s3ind_s[at][0],$t=$e.s3_ss[Ve++]*tt[wt];for(++wt;wt<=$e.s3ind_s[at][1];)$t+=$e.s3_ss[Ve]*tt[wt],++Ve,++wt;var Ht=st*$e.nb_s1[Je][at];if(se[at]=Math.min($t,Ht),$e.blocktype_old[1&Je]==u.SHORT_TYPE){Ht=Qe*$e.nb_s2[Je][at];var zt=se[at];se[at]=Math.min(Ht,zt)}$e.nb_s2[Je][at]=$e.nb_s1[Je][at],$e.nb_s1[Je][at]=$t,R(se[at]>=0)}for(;at<=u.CBANDS;++at)tt[at]=0,se[at]=0}function G(ae,de,tt){return tt>=1?ae:tt<=0?de:de>0?Math.pow(ae/de,tt)*de:0}var H=[11.8,13.6,17.2,32,46.5,51.3,57.5,67.1,71.5,84.6,97.6,130];function Me(ae,de){for(var tt=309.07,se=0;se<u.SBMAX_s-1;se++)for(var Je=0;Je<3;Je++){var ye=ae.thm.s[se][Je];if(R(se<H.length),ye>0){var Ve=ye*de,at=ae.en.s[se][Je];at>Ve&&(at>1e10*Ve?tt+=H[se]*(10*le):(R(Ve>0),tt+=H[se]*dt.FAST_LOG10(at/Ve)))}}return tt}var Ee=[6.8,5.8,5.8,6.4,6.5,9.9,12.1,14.4,15,18.9,21.6,26.9,34.2,40.2,46.8,56.5,60.7,73.9,85.7,93.4,126.1];function ve(ae,de){for(var tt=281.0575,se=0;se<u.SBMAX_l-1;se++){var Je=ae.thm.l[se];if(R(se<Ee.length),Je>0){var ye=Je*de,Ve=ae.en.l[se];Ve>ye&&(Ve>1e10*ye?tt+=Ee[se]*(10*le):(R(ye>0),tt+=Ee[se]*dt.FAST_LOG10(Ve/ye)))}}return tt}function Xe(ae,de,tt,se,Je){var ye,Ve;for(ye=Ve=0;ye<ae.npart_l;++ye){var at,$e=0,mt=0;for(at=0;at<ae.numlines_l[ye];++at,++Ve){var Rt=de[Ve];R(Rt>=0),$e+=Rt,mt<Rt&&(mt=Rt)}tt[ye]=$e,se[ye]=mt,Je[ye]=$e*ae.rnumlines_l[ye],R(ae.rnumlines_l[ye]>=0),R($e>=0),R(tt[ye]>=0),R(se[ye]>=0),R(Je[ye]>=0)}}function Re(ae,de,tt,se){var Je=p.length-1,ye=0,Ve=tt[ye]+tt[ye+1];for(R(Ve>=0),Ve>0?((at=de[ye])<de[ye+1]&&(at=de[ye+1]),R(ae.numlines_l[ye]+ae.numlines_l[ye+1]-1>0),($e=0|(Ve=20*(2*at-Ve)/(Ve*(ae.numlines_l[ye]+ae.numlines_l[ye+1]-1))))>Je&&($e=Je),se[ye]=$e):se[ye]=0,ye=1;ye<ae.npart_l-1;ye++){var at,$e;Ve=tt[ye-1]+tt[ye]+tt[ye+1],R(Ve>=0),Ve>0?((at=de[ye-1])<de[ye]&&(at=de[ye]),at<de[ye+1]&&(at=de[ye+1]),R(ae.numlines_l[ye-1]+ae.numlines_l[ye]+ae.numlines_l[ye+1]-1>0),($e=0|(Ve=20*(3*at-Ve)/(Ve*(ae.numlines_l[ye-1]+ae.numlines_l[ye]+ae.numlines_l[ye+1]-1))))>Je&&($e=Je),se[ye]=$e):se[ye]=0}R(ye>0),R(ye==ae.npart_l-1),Ve=tt[ye-1]+tt[ye],R(Ve>=0),Ve>0?((at=de[ye-1])<de[ye]&&(at=de[ye]),R(ae.numlines_l[ye-1]+ae.numlines_l[ye]-1>0),($e=0|(Ve=20*(2*at-Ve)/(Ve*(ae.numlines_l[ye-1]+ae.numlines_l[ye]-1))))>Je&&($e=Je),se[ye]=$e):se[ye]=0,R(ye==ae.npart_l-1)}var Ie=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-2
11,.1863476,-1104424e-22,-.627638];function gt(ae,de,tt,se,Je,ye,Ve,at){var $e=ae.internal_flags;if(se<2)Z.fft_long($e,Ve[at],se,de,tt);else if(se==2)for(var mt=u.BLKSIZE-1;mt>=0;--mt){var Rt=Ve[at+0][mt],Ze=Ve[at+1][mt];Ve[at+0][mt]=(Rt+Ze)*dt.SQRT2*.5,Ve[at+1][mt]=(Rt-Ze)*dt.SQRT2*.5}for(ye[0]=Ve[at+0][0],ye[0]*=ye[0],mt=u.BLKSIZE/2-1;mt>=0;--mt){var _t=Ve[at+0][u.BLKSIZE/2-mt],lt=Ve[at+0][u.BLKSIZE/2+mt];ye[u.BLKSIZE/2-mt]=.5*(_t*_t+lt*lt)}var wt=0;for(mt=11;mt<u.HBLKSIZE;mt++)wt+=ye[mt];if($e.tot_ener[se]=wt,ae.analysis){for(mt=0;mt<u.HBLKSIZE;mt++)$e.pinfo.energy[Je][se][mt]=$e.pinfo.energy_save[se][mt],$e.pinfo.energy_save[se][mt]=ye[mt];$e.pinfo.pe[Je][se]=$e.pe[se]}}function We(ae,de,tt,se,Je,ye,Ve,at){var $e=ae.internal_flags;if(Je==0&&se<2&&Z.fft_short($e,Ve[at],se,de,tt),se==2)for(var mt=u.BLKSIZE_s-1;mt>=0;--mt){var Rt=Ve[at+0][Je][mt],Ze=Ve[at+1][Je][mt];Ve[at+0][Je][mt]=(Rt+Ze)*dt.SQRT2*.5,Ve[at+1][Je][mt]=(Rt-Ze)*dt.SQRT2*.5}for(ye[Je][0]=Ve[at+0][Je][0],ye[Je][0]*=ye[Je][0],mt=u.BLKSIZE_s/2-1;mt>=0;--mt){var _t=Ve[at+0][Je][u.BLKSIZE_s/2-mt],lt=Ve[at+0][Je][u.BLKSIZE_s/2+mt];ye[Je][u.BLKSIZE_s/2-mt]=.5*(_t*_t+lt*lt)}}function rt(ae,de,tt,se){var Je=ae.internal_flags;ae.athaa_loudapprox==2&&tt<2&&(Je.loudness_sq[de][tt]=Je.loudness_sq_save[tt],Je.loudness_sq_save[tt]=re(se,Je))}this.L3psycho_anal_ns=function(ae,de,tt,se,Je,ye,Ve,at,$e,mt){var Rt,Ze,_t,lt,wt,$t,Ht,zt,ra,Lt,Mt=ae.internal_flags,At=qe([2,u.BLKSIZE]),aa=qe([2,3,u.BLKSIZE_s]),Na=Pe(u.CBANDS+1),ca=Pe(u.CBANDS+1),Ha=Pe(u.CBANDS+2),ka=me(2),Da=me(2),Pa=qe([2,576]),Xt=me(u.CBANDS+2),Ia=me(u.CBANDS+2);for(je.fill(Ia,0),Rt=Mt.channels_out,ae.mode==Ka.JOINT_STEREO&&(Rt=4),ra=ae.VBR==Y.vbr_off?Mt.ResvMax==0?0:Mt.ResvSize/Mt.ResvMax*.5:ae.VBR==Y.vbr_rh||ae.VBR==Y.vbr_mtrh||ae.VBR==Y.vbr_mt?.6:1,Ze=0;Ze<Mt.channels_out;Ze++){var Ua=de[Ze],za=tt+576-350-m+192;for(R(Ie.length==(m-1)/2),lt=0;lt<576;lt++){var ja,Za;for(ja=Ua[za+lt+10],Za=0,wt=0;wt<(m-1)/2-1;wt+=2)ja+=Ie[wt]*(Ua[za+lt+wt]+Ua[za+lt+m-wt]),Za+=Ie[wt+1]*(Ua[za+lt+wt+1]+Ua[za+lt+m-wt-1]);Pa[Ze][lt]=ja+Za}Je[se][Ze].en.assign(Mt.en[Ze]),Je[se][Ze].thm.assign(Mt.thm[Ze]),Rt>2&&(ye[se][Ze].en.assign(Mt.en[Ze+2]),ye[se][Ze].thm.assign(Mt.thm[Ze+2]))}for(Ze=0;Ze<Rt;Ze++){var _n,ha=Pe(12),Fa=[0,0,0,0],en=Pe(12),Dn=1,zn=Pe(u.CBANDS),xa=Pe(u.CBANDS),Ra=[0,0,0,0],pn=Pe(u.HBLKSIZE),$a=qe([3,u.HBLKSIZE_s]);for(R(Mt.npart_s<=u.CBANDS),R(Mt.npart_l<=u.CBANDS),lt=0;lt<3;lt++)ha[lt]=Mt.nsPsy.last_en_subshort[Ze][lt+6],R(Mt.nsPsy.last_en_subshort[Ze][lt+4]>0),en[lt]=ha[lt]/Mt.nsPsy.last_en_subshort[Ze][lt+4],Fa[0]+=ha[lt];if(Ze==2)for(lt=0;lt<576;lt++){var Fn,Cn;Fn=Pa[0][lt],Cn=Pa[1][lt],Pa[0][lt]=Fn+Cn,Pa[1][lt]=Fn-Cn}var Qt=Pa[1&Ze],nn=0;for(lt=0;lt<9;lt++){for(var xt=nn+64,Va=1;nn<xt;nn++)Va<Math.abs(Qt[nn])&&(Va=Math.abs(Qt[nn]));Mt.nsPsy.last_en_subshort[Ze][lt]=ha[lt+3]=Va,Fa[1+lt/3]+=Va,Va>ha[lt+3-2]?(R(ha[lt+3-2]>0),Va/=ha[lt+3-2]):ha[lt+3-2]>10*Va?(R(Va>0),Va=ha[lt+3-2]/(10*Va)):Va=0,en[lt+3]=Va}if(ae.analysis){var Tn=en[0];for(lt=1;lt<12;lt++)Tn<en[lt]&&(Tn=en[lt]);Mt.pinfo.ers[se][Ze]=Mt.pinfo.ers_save[Ze],Mt.pinfo.ers_save[Ze]=Tn}for(_n=Ze==3?Mt.nsPsy.attackthre_s:Mt.nsPsy.attackthre,lt=0;lt<12;lt++)Ra[lt/3]==0&&en[lt]>_n&&(Ra[lt/3]=lt%3+1);for(lt=1;lt<4;lt++){var Xa;Fa[lt-1]>Fa[lt]?(R(Fa[lt]>0),Xa=Fa[lt-1]/Fa[lt]):(R(Fa[lt-1]>
10),Xa=Fa[lt]/Fa[lt-1]),Xa<1.7&&(Ra[lt]=0,lt==1&&(Ra[0]=0))}for(Ra[0]!=0&&Mt.nsPsy.lastAttacks[Ze]!=0&&(Ra[0]=0),Mt.nsPsy.lastAttacks[Ze]!=3&&Ra[0]+Ra[1]+Ra[2]+Ra[3]==0||(Dn=0,Ra[1]!=0&&Ra[0]!=0&&(Ra[1]=0),Ra[2]!=0&&Ra[1]!=0&&(Ra[2]=0),Ra[3]!=0&&Ra[2]!=0&&(Ra[3]=0)),Ze<2?Da[Ze]=Dn:Dn==0&&(Da[0]=Da[1]=0),$e[Ze]=Mt.tot_ener[Ze],Se(ae,pn,$a,At,1&Ze,aa,1&Ze,se,Ze,de,tt),Xe(Mt,pn,Na,zn,xa),Re(Mt,zn,xa,Xt),zt=0;zt<3;zt++){var sn,Sa;for(oe(ae,$a,ca,Ha,Ze,zt),c(Mt,ca,Ha,Ze,zt),Ht=0;Ht<u.SBMAX_s;Ht++){if(Sa=Mt.thm[Ze].s[Ht][zt],Sa*=.8,Ra[zt]>=2||Ra[zt+1]==1){var ln=zt!=0?zt-1:2;Va=G(Mt.thm[Ze].s[Ht][ln],Sa,.6*ra),Sa=Math.min(Sa,Va)}Ra[zt]==1?(ln=zt!=0?zt-1:2,Va=G(Mt.thm[Ze].s[Ht][ln],Sa,fe*ra),Sa=Math.min(Sa,Va)):(zt!=0&&Ra[zt-1]==3||zt==0&&Mt.nsPsy.lastAttacks[Ze]==3)&&(ln=zt!=2?zt+1:0,Va=G(Mt.thm[Ze].s[Ht][ln],Sa,fe*ra),Sa=Math.min(Sa,Va)),sn=ha[3*zt+3]+ha[3*zt+4]+ha[3*zt+5],6*ha[3*zt+5]<sn&&(Sa*=.5,6*ha[3*zt+4]<sn&&(Sa*=.5)),Mt.thm[Ze].s[Ht][zt]=Sa}}for(Mt.nsPsy.lastAttacks[Ze]=Ra[2],$t=0,_t=0;_t<Mt.npart_l;_t++){for(var cn=Mt.s3ind[_t][0],hn=Na[cn]*p[Xt[cn]],gn=Mt.s3_ll[$t++]*hn;++cn<=Mt.s3ind[_t][1];)hn=Na[cn]*p[Xt[cn]],gn=M(gn,Mt.s3_ll[$t++]*hn,cn,cn-_t,Mt,0);gn*=.158489319246111,Mt.blocktype_old[1&Ze]==u.SHORT_TYPE?Ha[_t]=gn:Ha[_t]=G(Math.min(gn,Math.min(Fe*Mt.nb_1[Ze][_t],Ce*Mt.nb_2[Ze][_t])),gn,ra),Mt.nb_2[Ze][_t]=Mt.nb_1[Ze][_t],Mt.nb_1[Ze][_t]=gn}for(;_t<=u.CBANDS;++_t)Na[_t]=0,Ha[_t]=0;K(Mt,Na,Ha,Ze)}for(ae.mode!=Ka.STEREO&&ae.mode!=Ka.JOINT_STEREO||ae.interChRatio>0&&(function(Nt,Jt){var La=Nt.internal_flags;if(La.channels_out>1){for(var Ea=0;Ea<u.SBMAX_l;Ea++){var Oa=La.thm[0].l[Ea],Ut=La.thm[1].l[Ea];La.thm[0].l[Ea]+=Ut*Jt,La.thm[1].l[Ea]+=Oa*Jt}for(Ea=0;Ea<u.SBMAX_s;Ea++)for(var Wa=0;Wa<3;Wa++)Oa=La.thm[0].s[Ea][Wa],Ut=La.thm[1].s[Ea][Wa],La.thm[0].s[Ea][Wa]+=Ut*Jt,La.thm[1].s[Ea][Wa]+=Oa*Jt}})(ae,ae.interChRatio),ae.mode==Ka.JOINT_STEREO&&((function(Nt){for(var Jt=0;Jt<u.SBMAX_l;Jt++)if(!(Nt.thm[0].l[Jt]>1.58*Nt.thm[1].l[Jt]||Nt.thm[1].l[Jt]>1.58*Nt.thm[0].l[Jt])){var La=Nt.mld_l[Jt]*Nt.en[3].l[Jt],Ea=Math.max(Nt.thm[2].l[Jt],Math.min(Nt.thm[3].l[Jt],La));La=Nt.mld_l[Jt]*Nt.en[2].l[Jt];var Oa=Math.max(Nt.thm[3].l[Jt],Math.min(Nt.thm[2].l[Jt],La));Nt.thm[2].l[Jt]=Ea,Nt.thm[3].l[Jt]=Oa}for(Jt=0;Jt<u.SBMAX_s;Jt++)for(var Ut=0;Ut<3;Ut++)Nt.thm[0].s[Jt][Ut]>1.58*Nt.thm[1].s[Jt][Ut]||Nt.thm[1].s[Jt][Ut]>1.58*Nt.thm[0].s[Jt][Ut]||(La=Nt.mld_s[Jt]*Nt.en[3].s[Jt][Ut],Ea=Math.max(Nt.thm[2].s[Jt][Ut],Math.min(Nt.thm[3].s[Jt][Ut],La)),La=Nt.mld_s[Jt]*Nt.en[2].s[Jt][Ut],Oa=Math.max(Nt.thm[3].s[Jt][Ut],Math.min(Nt.thm[2].s[Jt][Ut],La)),Nt.thm[2].s[Jt][Ut]=Ea,Nt.thm[3].s[Jt][Ut]=Oa)})(Mt),Lt=ae.msfix,Math.abs(Lt)>0&&(function(Nt,Jt,La){var Ea=Jt,Oa=Math.pow(10,La);Jt*=2,Ea*=2;for(var Ut=0;Ut<u.SBMAX_l;Ut++)dn=Nt.ATH.cb_l[Nt.bm_l[Ut]]*Oa,($n=Math.min(Math.max(Nt.thm[0].l[Ut],dn),Math.max(Nt.thm[1].l[Ut],dn)))*Jt<(vn=Math.max(Nt.thm[2].l[Ut],dn))+(yn=Math.max(Nt.thm[3].l[Ut],dn))&&R((vn*=Gn=$n*Ea/(vn+yn))+(yn*=Gn)>0),Nt.thm[2].l[Ut]=Math.min(vn,Nt.thm[2].l[Ut]),Nt.thm[3].l[Ut]=Math.min(yn,Nt.thm[3].l[Ut]);for(Oa*=u.BLKSIZE_s/u.BLKSIZE,Ut=0;Ut<u.SBMAX_s;Ut++)for(var Wa=0;Wa<3;Wa++){var $n,vn,yn,dn,Gn;dn=Nt.ATH.cb_s[Nt.bm_s[Ut]]*Oa,($n=Math.min(Math.max(Nt.thm[0].s[Ut][Wa],dn),Math.max(Nt.thm[1].s[Ut][Wa],dn)))*Jt<(vn=Math.max(Nt.thm[2].s[Ut][Wa],dn))+(yn=Math.max(Nt.thm[3].s[Ut][Wa],dn))&&R((vn*=Gn=$n*Jt/(vn+yn))+(yn*=Gn)>0),Nt.thm[2].s[Ut][Wa]=Math.min(Nt.thm[2].s[Ut][Wa],vn),Nt.thm[3].s[Ut][Wa]=Math.min(Nt.thm[3].s[Ut][Wa],yn)}})(Mt,Lt,ae.ATHlower*Mt.ATH.adjust)),(function(Nt,Jt,La,Ea){var Oa=Nt.internal_flags;Nt.short_blocks!=Ae.short_block_coupled||Jt[0]!=0&&Jt[1]!=0||(Jt[0]=Jt[1]=0);for(var Ut=0;Ut<Oa.channels_out;Ut++)Ea[Ut]=u.NORM_TYPE,Nt.short_blocks==Ae.short_block_dispensed&&(Jt[Ut]=1),Nt.short_blocks==Ae.short_block_forced&&(Jt[Ut]=0),Jt[Ut]!=0?(R(Oa.blocktype_old[Ut]!=u.START_TYPE),Oa.blocktype_old[Ut]==u.SHORT_TYPE&&(Ea[Ut]=u.STOP_TYPE)):(Ea[Ut]=u.SHORT_TYPE,Oa.blocktype_old[Ut]==u.NORM_TYPE&&(Oa.blocktype_old[Ut]=u.START_TYPE),Oa.blocktype_old[Ut]==u.STOP_TYPE&&(Oa.blocktype_old[Ut]=u.SHORT_TYPE)),La[Ut]=Oa.blocktype_old[Ut],Oa.blocktype_old[Ut]=Ea[Ut]}
1)(ae,Da,mt,ka),Ze=0;Ze<Rt;Ze++){var mn,kn,Rn,Bn=0;Ze>1?(mn=at,Bn=-2,kn=u.NORM_TYPE,mt[0]!=u.SHORT_TYPE&&mt[1]!=u.SHORT_TYPE||(kn=u.SHORT_TYPE),Rn=ye[se][Ze-2]):(mn=Ve,Bn=0,kn=mt[Ze],Rn=Je[se][Ze]),kn==u.SHORT_TYPE?mn[Bn+Ze]=Me(Rn,Mt.masking_lower):mn[Bn+Ze]=ve(Rn,Mt.masking_lower),ae.analysis&&(Mt.pinfo.pe[se][Ze]=mn[Bn+Ze])}return 0};var Ot=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function ea(ae,de,tt){if(tt==0)for(var se=0;se<ae.npart_s;se++)ae.nb_s2[de][se]=ae.nb_s1[de][se],ae.nb_s1[de][se]=0}function vt(ae,de){for(var tt=0;tt<ae.npart_l;tt++)ae.nb_2[de][tt]=ae.nb_1[de][tt],ae.nb_1[de][tt]=0}function It(ae,de,tt,se,Je,ye){var Ve,at,$e,mt=ae.internal_flags,Rt=new float[u.CBANDS],Ze=Pe(u.CBANDS),_t=new int[u.CBANDS];for($e=at=0;$e<mt.npart_s;++$e){var lt=0,wt=0,$t=mt.numlines_s[$e];for(Ve=0;Ve<$t;++Ve,++at){var Ht=de[ye][at];lt+=Ht,wt<Ht&&(wt=Ht)}tt[$e]=lt,R(lt>=0),Rt[$e]=wt,R($t>0),Ze[$e]=lt/$t,R(Ze[$e]>=0)}for(R($e==mt.npart_s),R(at==129);$e<u.CBANDS;++$e)Rt[$e]=0,Ze[$e]=0;for((function(ca,Ha,ka,Da){var Pa=p.length-1,Xt=0,Ia=ka[Xt]+ka[Xt+1];for(R(Ia>=0),Ia>0?((Ua=Ha[Xt])<Ha[Xt+1]&&(Ua=Ha[Xt+1]),R(ca.numlines_s[Xt]+ca.numlines_s[Xt+1]-1>0),(za=0|(Ia=20*(2*Ua-Ia)/(Ia*(ca.numlines_s[Xt]+ca.numlines_s[Xt+1]-1))))>Pa&&(za=Pa),Da[Xt]=za):Da[Xt]=0,Xt=1;Xt<ca.npart_s-1;Xt++){var Ua,za;Ia=ka[Xt-1]+ka[Xt]+ka[Xt+1],R(Xt+1<ca.npart_s),R(Ia>=0),Ia>0?((Ua=Ha[Xt-1])<Ha[Xt]&&(Ua=Ha[Xt]),Ua<Ha[Xt+1]&&(Ua=Ha[Xt+1]),R(ca.numlines_s[Xt-1]+ca.numlines_s[Xt]+ca.numlines_s[Xt+1]-1>0),(za=0|(Ia=20*(3*Ua-Ia)/(Ia*(ca.numlines_s[Xt-1]+ca.numlines_s[Xt]+ca.numlines_s[Xt+1]-1))))>Pa&&(za=Pa),Da[Xt]=za):Da[Xt]=0}R(Xt>0),R(Xt==ca.npart_s-1),Ia=ka[Xt-1]+ka[Xt],R(Ia>=0),Ia>0?((Ua=Ha[Xt-1])<Ha[Xt]&&(Ua=Ha[Xt]),R(ca.numlines_s[Xt-1]+ca.numlines_s[Xt]-1>0),(za=0|(Ia=20*(2*Ua-Ia)/(Ia*(ca.numlines_s[Xt-1]+ca.numlines_s[Xt]-1))))>Pa&&(za=Pa),Da[Xt]=za):Da[Xt]=0,R(Xt==ca.npart_s-1)})(mt,Rt,Ze,_t),at=$e=0;$e<mt.npart_s;$e++){var zt,ra,Lt,Mt,At,aa=mt.s3ind_s[$e][0],Na=mt.s3ind_s[$e][1];for(zt=_t[aa],ra=1,Mt=mt.s3_ss[at]*tt[aa]*p[_t[aa]],++at,++aa;aa<=Na;)zt+=_t[aa],ra+=1,Mt=W(Mt,Lt=mt.s3_ss[at]*tt[aa]*p[_t[aa]],aa-$e),++at,++aa;Mt*=At=.5*p[zt=(1+2*zt)/(2*ra)],se[$e]=Mt,mt.nb_s2[Je][$e]=mt.nb_s1[Je][$e],mt.nb_s1[Je][$e]=Mt,Lt=Rt[$e],Lt*=mt.minval_s[$e],Lt*=At,se[$e]>Lt&&(se[$e]=Lt),mt.masking_lower>1&&(se[$e]*=mt.masking_lower),se[$e]>tt[$e]&&(se[$e]=tt[$e]),mt.masking_lower<1&&(se[$e]*=mt.masking_lower),R(se[$e]>=0)}for(;$e<u.CBANDS;++$e)tt[$e]=0,se[$e]=0}function Ue(ae,de,tt,se,Je){var ye,Ve=Pe(u.CBANDS),at=Pe(u.CBANDS),$e=me(u.CBANDS+2);Xe(ae,de,tt,Ve,at),Re(ae,Ve,at,$e);var mt=0;for(ye=0;ye<ae.npart_l;ye++){var Rt,Ze,_t,lt=ae.s3ind[ye][0],wt=ae.s3ind[ye][1],$t=0,Ht=0;for($t=$e[lt],Ht+=1,Ze=ae.s3_ll[mt]*tt[lt]*p[$e[lt]],++mt,++lt;lt<=wt;)$t+=$e[lt],Ht+=1,Ze=W(Ze,Rt=ae.s3_ll[mt]*tt[lt]*p[$e[lt]],lt-ye),++mt,++lt;if(Ze*=_t=.5*p[$t=(1+2*$t)/(2*Ht)],ae.blocktype_old[1&Je]==u.SHORT_TYPE){var zt=Fe*ae.nb_1[Je][ye];se[ye]=zt>0?Math.min(Ze,zt):Math.min(Ze,tt[ye]*fe)}else{var ra=Ce*ae.nb_2[Je][ye],Lt=Fe*ae.nb_1[Je][ye];ra<=0&&(ra=Ze),Lt<=0&&(Lt=Ze),zt=ae.blocktype_old[1&Je]==u.NORM_TYPE?Math.min(Lt,ra):Lt,se[ye]=Math.min(Ze,zt)}ae.nb_2[Je][ye]=ae.nb_1[Je][ye],ae.nb_1[Je][ye]=Ze,Rt=Ve[ye],Rt*=ae.minval_l[ye],Rt*=_t,se[ye]>Rt&&(se[ye]=Rt),ae.masking_lower>1&&(se[ye]*=ae.masking_lower),se[ye]>tt[ye]&&(se[ye]=tt[ye]),ae.masking_lower<1&&(se[ye]*=ae.masking_lower),R(se[ye]>=0)}for(;ye<u.CBANDS;++ye)tt[ye]=0,se[ye]=0}function Zt(ae,de,tt,se,Je,ye,Ve){for(var at,$e,mt=2*ye,Rt=ye>0?Math.pow(10,Je):1,Ze=0;Ze<Ve;++Ze){var _t=ae[2][Ze],lt=ae[3][Ze],wt=de[0][Ze],$t=de[1][Ze],Ht=de[2][Ze],zt=de[3][Ze];if(wt<=1.58*$t&&$t<=1.58*wt){var ra=tt[Ze]*lt,Lt=tt[Ze]*_t;$e=Math.max(Ht,Math.min(zt,ra)),at=Math.max(zt,Math.min(Ht,Lt))}else $e=Ht,at=zt;if(ye>0){var Mt,At,aa=se[Ze]*Rt;if(Mt=Math.min(Math.max(wt,aa),Math.max($t,aa)),(At=(Ht=Math.max($e,aa))+(zt=Math.max(at,aa)))>0&&Mt*mt<At){var Na=Mt*mt/At;Ht*=Na,zt*=Na,R(At>0)}$e=Math.min(Ht,$e),at=Math.min(zt,at)}$e>_t&&($e=_t),at>lt&&(at=lt),de[2][Ze]=$e,de[3][Ze]=at}}function oa(ae,de){var tt;return(tt=ae>=0?27*-ae:ae*de)<=-72?0:Math.exp(tt*w)}function wa(ae){var de,tt,se,Je,ye=0;for(ye=0;oa(ye,ae)>1e-20;ye-=1);for(se=ye,Je=0;Math.abs(Je-se)>1e-12;)oa(ye=(Je+se)/2,ae)>0?Je=ye:se=ye;for(de=se,ye=0,ye=0;oa(ye,ae)>1e-20;ye+=1);for(se=0,Je=ye;Math.abs(Je-se)>1e-12;)oa(ye=(Je+se)/2,ae)>0?se=ye:Je=ye;tt=Je;var Ve,at=0;for(Ve=0;Ve<=1e3;++Ve)at+=oa(ye=de+Ve*(tt-de)/1e3,ae);return 1001/(at*(tt-de))}function Gt(ae){return ae<0&&(ae=0),ae*=.001,13*Math.atan(.76*ae)+3.5*Math.atan(ae*ae/56.25)}function Aa(ae,de,tt,se,Je,ye,Ve,at,$e,mt,Rt,Ze){var _t,lt=Pe(u.CBANDS+1),wt=at/(Ze>15?1152:384),$t=me(u.HBLKSIZE);at/=$e;var Ht=0,zt=0;for(_t=0;_t<u.CBANDS;_t++){var ra;for(Da=Gt(at*Ht),lt[_t]=at*Ht,ra=Ht;Gt(at*ra)-Da<ze&&ra<=$e/2;ra++);for(ae[_t]=ra-Ht,zt=_t+1;Ht<ra;)R(Ht<u.HBLKSIZE),$t[Ht++]=_t;if(Ht>$e/2){Ht=$e/2,++_t;break}}R(_t<u.CBANDS),lt[_t]=at*Ht;for(var Lt=0;Lt<Ze;Lt++){var Mt,At,aa,Na,ca;aa=mt[Lt],Na=mt[Lt+1],(Mt=0|Math.floor(.5+Rt*(aa-.5)))<0&&(Mt=0),(At=0|Math.floor(.5+Rt*(Na-.5)))>
1$e/2&&(At=$e/2),tt[Lt]=($t[Mt]+$t[At])/2,de[Lt]=$t[At];var Ha=wt*Na;Ve[Lt]=(Ha-lt[de[Lt]])/(lt[de[Lt]+1]-lt[de[Lt]]),Ve[Lt]<0?Ve[Lt]=0:Ve[Lt]>1&&(Ve[Lt]=1),ca=Gt(at*mt[Lt]*Rt),ca=Math.min(ca,15.5)/15.5,ye[Lt]=Math.pow(10,1.25*(1-Math.cos(Math.PI*ca))-2.5)}Ht=0;for(var ka=0;ka<zt;ka++){var Da,Pa,Xt=ae[ka];Da=Gt(at*Ht),Pa=Gt(at*(Ht+Xt-1)),se[ka]=.5*(Da+Pa),Da=Gt(at*(Ht-.5)),Pa=Gt(at*(Ht+Xt-.5)),Je[ka]=Pa-Da,Ht+=Xt}return zt}function Ma(ae,de,tt,se,Je,ye){var Ve,at,$e,mt,Rt,Ze,_t=qe([u.CBANDS,u.CBANDS]),lt=0;if(ye)for(var wt=0;wt<de;wt++)for(Ve=0;Ve<de;Ve++){var $t=(at=tt[wt]-tt[Ve],$e=void 0,mt=void 0,Rt=void 0,Ze=void 0,$e=at,mt=($e*=$e>=0?3:1.5)>=.5&&$e<=2.5?8*((Ze=$e-.5)*Ze-2*Ze):0,((Rt=15.811389+7.5*($e+=.474)-17.5*Math.sqrt(1+$e*$e))<=-60?0:($e=Math.exp((mt+Rt)*w),$e/=.6609193))*se[Ve]);_t[wt][Ve]=$t*Je[wt]}else for(Ve=0;Ve<de;Ve++){var Ht=15+Math.min(21/tt[Ve],12),zt=wa(Ht);for(wt=0;wt<de;wt++)$t=zt*oa(tt[wt]-tt[Ve],Ht)*se[Ve],_t[wt][Ve]=$t*Je[wt]}for(wt=0;wt<de;wt++){for(Ve=0;Ve<de&&!(_t[wt][Ve]>0);Ve++);for(ae[wt][0]=Ve,Ve=de-1;Ve>0&&!(_t[wt][Ve]>0);Ve--);ae[wt][1]=Ve,lt+=ae[wt][1]-ae[wt][0]+1}var ra=Pe(lt),Lt=0;for(wt=0;wt<de;wt++)for(Ve=ae[wt][0];Ve<=ae[wt][1];Ve++)ra[Lt++]=_t[wt][Ve];return ra}function Ca(ae){var de=Gt(ae);return de=Math.min(de,15.5)/15.5,Math.pow(10,1.25*(1-Math.cos(Math.PI*de))-2.5)}function Ta(ae,de){return ae<-.3&&(ae=3410),ae/=1e3,ae=Math.max(.1,ae),3.64*Math.pow(ae,-.8)-6.8*Math.exp(-.6*Math.pow(ae-3.4,2))+6*Math.exp(-.15*Math.pow(ae-8.7,2))+.001*(.6+.04*de)*Math.pow(ae,4)}this.L3psycho_anal_vbr=function(ae,de,tt,se,Je,ye,Ve,at,$e,mt){var Rt=ae.internal_flags,Ze=Pe(u.HBLKSIZE),_t=qe([3,u.HBLKSIZE_s]),lt=qe([2,u.BLKSIZE]),wt=qe([2,3,u.BLKSIZE_s]),$t=qe([4,u.CBANDS]),Ht=qe([4,u.CBANDS]),zt=qe([4,3]),ra=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],Lt=me(2),Mt=ae.mode==Ka.JOINT_STEREO?4:Rt.channels_out;(function(ja,Za,_n,ha,Fa,en,Dn,zn,xa,Ra){for(var pn=qe([2,576]),$a=ja.internal_flags,Fn=$a.channels_out,Cn=ja.mode==Ka.JOINT_STEREO?4:Fn,Qt=0;Qt<Fn;Qt++){firbuf=Za[Qt];var nn=_n+576-350-m+192;R(Ot.length==(m-1)/2);for(var xt=0;xt<576;xt++){var Va,Tn;Va=firbuf[nn+xt+10],Tn=0;for(var Xa=0;Xa<(m-1)/2-1;Xa+=2)Va+=Ot[Xa]*(firbuf[nn+xt+Xa]+firbuf[nn+xt+m-Xa]),Tn+=Ot[Xa+1]*(firbuf[nn+xt+Xa+1]+firbuf[nn+xt+m-Xa-1]);pn[Qt][xt]=Va+Tn}Fa[ha][Qt].en.assign($a.en[Qt]),Fa[ha][Qt].thm.assign($a.thm[Qt]),Cn>2&&(en[ha][Qt].en.assign($a.en[Qt+2]),en[ha][Qt].thm.assign($a.thm[Qt+2]))}for(Qt=0;Qt<Cn;Qt++){var sn=Pe(12),Sa=Pe(12),ln=[0,0,0,0],cn=pn[1&Qt],hn=0,gn=Qt==3?$a.nsPsy.attackthre_s:$a.nsPsy.attackthre,mn=1;if(Qt==2)for(xt=0,Xa=576;Xa>0;++xt,--Xa){var kn=pn[0][xt],Rn=pn[1][xt];pn[0][xt]=kn+Rn,pn[1][xt]=kn-Rn}for(xt=0;xt<3;xt++)Sa[xt]=$a.nsPsy.last_en_subshort[Qt][xt+6],R($a.nsPsy.last_en_subshort[Qt][xt+4]>0),sn[xt]=Sa[xt]/$a.nsPsy.last_en_subshort[Qt][xt+4],ln[0]+=Sa[xt];for(xt=0;xt<9;xt++){for(var Bn=hn+64,Nt=1;hn<Bn;hn++)Nt<Math.abs(cn[hn])&&(Nt=Math.abs(cn[hn]));$a.nsPsy.last_en_subshort[Qt][xt]=Sa[xt+3]=Nt,ln[1+xt/3]+=Nt,Nt>Sa[xt+3-2]?(R(Sa[xt+3-2]>0),Nt/=Sa[xt+3-2]):Sa[xt+3-2]>10*Nt?(R(Nt>0),Nt=Sa[xt+3-2]/(10*Nt)):Nt=0,sn[xt+3]=Nt}for(xt=0;xt<3;++xt){var Jt=Sa[3*xt+3]+Sa[3*xt+4]+Sa[3*xt+5],La=1;6*Sa[3*xt+5]<Jt&&(La*=.5,6*Sa[3*xt+4]<Jt&&(La*=.5)),zn[Qt][xt]=La}if(ja.analysis){var Ea=sn[0];for(xt=1;xt<12;xt++)Ea<sn[xt]&&(Ea=sn[xt]);$a.pinfo.ers[ha][Qt]=$a.pinfo.ers_save[Qt],$a.pinfo.ers_save[Qt]=Ea}for(xt=0;xt<12;xt++)xa[Qt][xt/3]==0&&sn[xt]>gn&&(xa[Qt][xt/3]=xt%3+1);for(xt=1;xt<4;xt++){var Oa=ln[xt-1],Ut=ln[xt];Math.max(Oa,Ut)<4e4&&Oa<1.7*Ut&&Ut<1.7*Oa&&(xt==1&&xa[Qt][0]<=xa[Qt][xt]&&(xa[Qt][0]=0),xa[Qt][xt]=0)}xa[Qt][0]<=$a.nsPsy.lastAttacks[Qt]&&(xa[Qt][0]=0),$a.nsPsy.lastAttacks[Qt]!=3&&xa[Qt][0]+xa[Qt][1]+xa[Qt][2]+xa[Qt][3]==0||(mn=0,xa[Qt][1]!=0&&xa[Qt][0]!=0&&(xa[Qt][1]=0),xa[Qt][2]!=0&&xa[Qt][1]!=0&&(xa[Qt][2]=0),xa[Qt][3]!=0&&xa[Qt][2]!=0&&(xa[Qt][3]=0)),Qt<2?Ra[Qt]=mn:mn==0&&(Ra[0]=Ra[1]=0),Dn[Qt]=$a.tot_ener[Qt]}})(ae,de,tt,se,Je,ye,$e,zt,ra,Lt),(function(ja,Za){var _n=ja.internal_flags;ja.short_blocks!=Ae.short_block_coupled||Za[0]!=0&&Za[1]!=0||(Za[0]=Za[1]=0);for(var ha=0;ha<_n.channels_out;ha++)ja.short_blocks==Ae.short_block_dispensed&&(Za[ha]=1),ja.short_blocks==Ae.short_block_forced&&(Za[ha]=0)})(ae,Lt);for(var At=0;At<Mt;At++)gt(ae,de,tt,At,se,Ze,lt,Na=1&At),rt(ae,se,At,Ze),Lt[Na]!=0?Ue(Rt,Ze,$t[At],Ht[At],At):vt(Rt,At);for(Lt[0]+Lt[1]==2&&ae.mode==Ka.JOINT_STEREO&&Zt($t,Ht,Rt.mld_cb_l,Rt.ATH.cb_l,ae.ATHlower*Rt.ATH.adjust,ae.msfix,Rt.npart_l),At=0;At<Mt;At++)Lt[Na=1&At]!=0&&K(Rt,$t[At],Ht[At],At);for(var aa=0;aa<3;aa++){for(At=0;At<Mt;++At)Lt[Na=1&At]!=0?ea(Rt,At,aa):(We(ae,de,tt,At,aa,_t,wt,Na),It(ae,_t,$t[At],Ht[At],At,aa));for(Lt[0]+Lt[1]==0&&ae.mode==Ka.JOINT_STEREO&&Zt($t,Ht,Rt.mld_cb_s,Rt.ATH.cb_s,ae.ATHlower*Rt.ATH.adjust,ae.msfix,Rt.npart_s),At=0;At<Mt;++At)Lt[Na=1&At]==0&&c(Rt,$t[At],Ht[At],At,aa)}for(At=0;At<Mt;At++){var Na;if(Lt[Na=1&At]==0)for(var ca=0;ca<u.SBMAX_s;ca++){var Ha=Pe(3);for(aa=0;aa<3;aa++){var ka=Rt.thm[At].s[ca][aa];if(ka*=.8,ra[At][aa]>=2||ra[At][aa+1]==1){var Da=aa!=0?aa-1:2,Pa=G(Rt.thm[At].s[ca][Da],ka,.36);ka=Math.min(ka,Pa)}else ra[At][aa]==1?(Da=aa!=0?aa-1:2,Pa=G(Rt.thm[At].s[ca][Da],ka,.6*fe),ka=Math.min(ka,Pa)):(aa!=0&&ra[At][aa-1]==3||aa==0&&Rt.nsPsy.lastAttacks[At]==3)&&(Da=aa!=2?aa+1:0,Pa=G(Rt.thm[At].s[ca][Da],ka,.6*fe),ka=Math.min(ka,Pa));ka*=zt[At][aa],Ha[aa]=ka}for(aa=0;aa<3;
1aa++)Rt.thm[At].s[ca][aa]=Ha[aa]}}for(At=0;At<Mt;At++)Rt.nsPsy.lastAttacks[At]=ra[At][2];for((function(ja,Za,_n){for(var ha=ja.internal_flags,Fa=0;Fa<ha.channels_out;Fa++){var en=u.NORM_TYPE;Za[Fa]!=0?(R(ha.blocktype_old[Fa]!=u.START_TYPE),ha.blocktype_old[Fa]==u.SHORT_TYPE&&(en=u.STOP_TYPE)):(en=u.SHORT_TYPE,ha.blocktype_old[Fa]==u.NORM_TYPE&&(ha.blocktype_old[Fa]=u.START_TYPE),ha.blocktype_old[Fa]==u.STOP_TYPE&&(ha.blocktype_old[Fa]=u.SHORT_TYPE)),_n[Fa]=ha.blocktype_old[Fa],ha.blocktype_old[Fa]=en}})(ae,Lt,mt),At=0;At<Mt;At++){var Xt,Ia,Ua,za;At>1?(Xt=at,Ia=-2,Ua=u.NORM_TYPE,mt[0]!=u.SHORT_TYPE&&mt[1]!=u.SHORT_TYPE||(Ua=u.SHORT_TYPE),za=ye[se][At-2]):(Xt=Ve,Ia=0,Ua=mt[At],za=Je[se][At]),Ua==u.SHORT_TYPE?Xt[Ia+At]=Me(za,Rt.masking_lower):Xt[Ia+At]=ve(za,Rt.masking_lower),ae.analysis&&(Rt.pinfo.pe[se][At]=Xt[Ia+At])}return 0},this.psymodel_init=function(ae){var de,tt,se=ae.internal_flags,Je=!0,ye=13,Ve=0,at=0,$e=-8.25,mt=-4.5,Rt=Pe(u.CBANDS),Ze=Pe(u.CBANDS),_t=Pe(u.CBANDS),lt=ae.out_samplerate;switch(ae.experimentalZ){default:case 0:Je=!0;break;case 1:Je=ae.VBR!=Y.vbr_mtrh&&ae.VBR!=Y.vbr_mt;break;case 2:Je=!1;break;case 3:ye=8,Ve=-1.75,at=-.0125,$e=-8.25,mt=-2.25}for(se.ms_ener_ratio_old=.25,se.blocktype_old[0]=se.blocktype_old[1]=u.NORM_TYPE,de=0;de<4;++de){for(var wt=0;wt<u.CBANDS;++wt)se.nb_1[de][wt]=1e20,se.nb_2[de][wt]=1e20,se.nb_s1[de][wt]=se.nb_s2[de][wt]=1;for(var $t=0;$t<u.SBMAX_l;$t++)se.en[de].l[$t]=1e20,se.thm[de].l[$t]=1e20;for(wt=0;wt<3;++wt){for($t=0;$t<u.SBMAX_s;$t++)se.en[de].s[$t][wt]=1e20,se.thm[de].s[$t][wt]=1e20;se.nsPsy.lastAttacks[de]=0}for(wt=0;wt<9;wt++)se.nsPsy.last_en_subshort[de][wt]=10}for(se.loudness_sq_save[0]=se.loudness_sq_save[1]=0,se.npart_l=Aa(se.numlines_l,se.bo_l,se.bm_l,Rt,Ze,se.mld_l,se.PSY.bo_l_weight,lt,u.BLKSIZE,se.scalefac_band.l,u.BLKSIZE/1152,u.SBMAX_l),R(se.npart_l<u.CBANDS),de=0;de<se.npart_l;de++){var Ht=Ve;Rt[de]>=ye&&(Ht=at*(Rt[de]-ye)/(24-ye)+Ve*(24-Rt[de])/(24-ye)),_t[de]=Math.pow(10,Ht/10),se.numlines_l[de]>0?se.rnumlines_l[de]=1/se.numlines_l[de]:se.rnumlines_l[de]=0}for(se.s3_ll=Ma(se.s3ind,se.npart_l,Rt,Ze,_t,Je),wt=0,de=0;de<se.npart_l;de++){Lt=Ye.MAX_VALUE;for(var zt=0;zt<se.numlines_l[de];zt++,wt++){var ra=lt*wt/(1e3*u.BLKSIZE);Mt=this.ATHformula(1e3*ra,ae)-20,Mt=Math.pow(10,.1*Mt),Lt>(Mt*=se.numlines_l[de])&&(Lt=Mt)}se.ATH.cb_l[de]=Lt,(Lt=20*Rt[de]/10-20)>6&&(Lt=100),Lt<-15&&(Lt=-15),Lt-=8,se.minval_l[de]=Math.pow(10,Lt/10)*se.numlines_l[de]}for(se.npart_s=Aa(se.numlines_s,se.bo_s,se.bm_s,Rt,Ze,se.mld_s,se.PSY.bo_s_weight,lt,u.BLKSIZE_s,se.scalefac_band.s,u.BLKSIZE_s/384,u.SBMAX_s),R(se.npart_s<u.CBANDS),wt=0,de=0;de<se.npart_s;de++){var Lt;for(Ht=$e,Rt[de]>=ye&&(Ht=mt*(Rt[de]-ye)/(24-ye)+$e*(24-Rt[de])/(24-ye)),_t[de]=Math.pow(10,Ht/10),Lt=Ye.MAX_VALUE,zt=0;zt<se.numlines_s[de];zt++,wt++){var Mt;ra=lt*wt/(1e3*u.BLKSIZE_s),Mt=this.ATHformula(1e3*ra,ae)-20,Mt=Math.pow(10,.1*Mt),Lt>(Mt*=se.numlines_s[de])&&(Lt=Mt)}se.ATH.cb_s[de]=Lt,Lt=7*Rt[de]/12-7,Rt[de]>12&&(Lt*=1+3.1*Math.log(1+Lt)),Rt[de]<12&&(Lt*=1+2.3*Math.log(1-Lt)),Lt<-15&&(Lt=-15),Lt-=8,se.minval_s[de]=Math.pow(10,Lt/10)*se.numlines_s[de]}se.s3_ss=Ma(se.s3ind_s,se.npart_s,Rt,Ze,_t,Je),r=Math.pow(10,(X+1)/16),T=Math.pow(10,(L+1)/16),D=Math.pow(10,f/10),Z.init_fft(se),se.decay=Math.exp(-1*le/(.01*lt/192)),tt=3.5,(2&ae.exp_nspsytune)!=0&&(tt=1),Math.abs(ae.msfix)>0&&(tt=ae.msfix),ae.msfix=tt;for(var At=0;At<se.npart_l;At++)se.s3ind[At][1]>se.npart_l-1&&(se.s3ind[At][1]=se.npart_l-1);var aa=576*se.mode_gr/lt;if(se.ATH.decay=Math.pow(10,-1.2*aa),se.ATH.adjust=.01,se.ATH.adjustLimit=1,R(se.bo_l[u.SBMAX_l-1]<=se.npart_l),R(se.bo_s[u.SBMAX_s-1]<=se.npart_s),ae.ATHtype!=-1){var Na=ae.out_samplerate/u.BLKSIZE,ca=0;for(ra=0,de=0;de<u.BLKSIZE/2;++de)ra+=Na,se.ATH.eql_w[de]=1/Math.pow(10,this.ATHformula(ra,ae)/10),ca+=se.ATH.eql_w[de];for(ca=1/ca,de=u.BLKSIZE/2;--de>=0;)se.ATH.eql_w[de]*=ca}for(At=wt=0;At<se.npart_s;++At)for(de=0;de<se.numlines_s[At];++de)++wt;for(R(wt==129),At=wt=0;At<se.npart_l;++At)for(de=0;de<se.numlines_l[At];++de)++wt;for(R(wt==513),wt=0,de=0;de<se.npart_l;de++)ra=lt*(wt+se.numlines_l[de]/2)/(1*u.BLKSIZE),se.mld_cb_l[de]=Ca(ra),wt+=se.numlines_l[de];for(;de<u.CBANDS;++de)se.mld_cb_l[de]=1;for(wt=0,de=0;de<se.npart_s;de++)ra=lt*(wt+se.numlines_s[de]/2)/(1*u.BLKSIZE_s),se.mld_cb_s[de]=Ca(ra),wt+=se.numlines_s[de];for(;de<u.CBANDS;++de)se.mld_cb_s[de]=1;return 0},this.ATHformula=function(ae,de){var tt;switch(de.ATHtype){case 0:tt=Ta(ae,9);break;case 1:tt=Ta(ae,-1);break;case 2:tt=Ta(ae,0);break;case 3:tt=Ta(ae,1)+6;break;case 4:tt=Ta(ae,de.ATHcurve);break;default:tt=Ta(ae,0)}return tt}};function nt(Z){var le=Z;this.ordinal=function(){return le}}nt.STEREO=new nt(0),nt.JOINT_STEREO=new nt(1),nt.DUAL_CHANNEL=new nt(2),nt.MONO=new nt(3),nt.NOT_SET=new nt(4);var ut=nt,ke=function(){this.class_id=0,this.num_samples=0,this.num_channels=0,this.in_samplerate=0,this.out_samplerate=0,this.scale=0,this.scale_left=0,this.scale_right=0,this.analysis=!1,this.bWriteVbrTag=!1,this.decode_only=!1,this.qual
1ity=0,this.mode=ut.STEREO,this.force_ms=!1,this.free_format=!1,this.findReplayGain=!1,this.decode_on_the_fly=!1,this.write_id3tag_automatic=!1,this.brate=0,this.compression_ratio=0,this.copyright=0,this.original=0,this.extension=0,this.emphasis=0,this.error_protection=0,this.strict_ISO=!1,this.disable_reservoir=!1,this.quant_comp=0,this.quant_comp_short=0,this.experimentalY=!1,this.experimentalZ=0,this.exp_nspsytune=0,this.preset=0,this.VBR=null,this.VBR_q_frac=0,this.VBR_q=0,this.VBR_mean_bitrate_kbps=0,this.VBR_min_bitrate_kbps=0,this.VBR_max_bitrate_kbps=0,this.VBR_hard_min=0,this.lowpassfreq=0,this.highpassfreq=0,this.lowpasswidth=0,this.highpasswidth=0,this.maskingadjust=0,this.maskingadjust_short=0,this.ATHonly=!1,this.ATHshort=!1,this.noATH=!1,this.ATHtype=0,this.ATHcurve=0,this.ATHlower=0,this.athaa_type=0,this.athaa_loudapprox=0,this.athaa_sensitivity=0,this.short_blocks=null,this.useTemporal=!1,this.interChRatio=0,this.msfix=0,this.tune=!1,this.tune_value_a=0,this.version=0,this.encoder_delay=0,this.encoder_padding=0,this.framesize=0,this.frameNum=0,this.lame_allocated_gfp=0,this.internal_flags=null},pt={};pt.SFBMAX=3*u.SBMAX_s;var Bt=pt,Dt=P.new_float,Et=P.new_int,Kt=function(){this.xr=Dt(576),this.l3_enc=Et(576),this.scalefac=Et(Bt.SFBMAX),this.xrpow_max=0,this.part2_3_length=0,this.big_values=0,this.count1=0,this.global_gain=0,this.scalefac_compress=0,this.block_type=0,this.mixed_block_flag=0,this.table_select=Et(3),this.subblock_gain=Et(4),this.region0_count=0,this.region1_count=0,this.preflag=0,this.scalefac_scale=0,this.count1table_select=0,this.part2_length=0,this.sfb_lmax=0,this.sfb_smin=0,this.psy_lmax=0,this.sfbmax=0,this.psymax=0,this.sfbdivide=0,this.width=Et(Bt.SFBMAX),this.window=Et(Bt.SFBMAX),this.count1bits=0,this.sfb_partition_table=null,this.slen=Et(4),this.max_nonzero_coeff=0;var Z=this;function le(Fe){return new Int32Array(Fe)}this.assign=function(Fe){var Ce;Z.xr=(Ce=Fe.xr,new Float32Array(Ce)),Z.l3_enc=le(Fe.l3_enc),Z.scalefac=le(Fe.scalefac),Z.xrpow_max=Fe.xrpow_max,Z.part2_3_length=Fe.part2_3_length,Z.big_values=Fe.big_values,Z.count1=Fe.count1,Z.global_gain=Fe.global_gain,Z.scalefac_compress=Fe.scalefac_compress,Z.block_type=Fe.block_type,Z.mixed_block_flag=Fe.mixed_block_flag,Z.table_select=le(Fe.table_select),Z.subblock_gain=le(Fe.subblock_gain),Z.region0_count=Fe.region0_count,Z.region1_count=Fe.region1_count,Z.preflag=Fe.preflag,Z.scalefac_scale=Fe.scalefac_scale,Z.count1table_select=Fe.count1table_select,Z.part2_length=Fe.part2_length,Z.sfb_lmax=Fe.sfb_lmax,Z.sfb_smin=Fe.sfb_smin,Z.psy_lmax=Fe.psy_lmax,Z.sfbmax=Fe.sfbmax,Z.psymax=Fe.psymax,Z.sfbdivide=Fe.sfbdivide,Z.width=le(Fe.width),Z.window=le(Fe.window),Z.count1bits=Fe.count1bits,Z.sfb_partition_table=Fe.sfb_partition_table.slice(0),Z.slen=le(Fe.slen),Z.max_nonzero_coeff=Fe.max_nonzero_coeff}},He=P.new_int,ft=function(){this.tt=[[null,null],[null,null]],this.main_data_begin=0,this.private_bits=0,this.resvDrain_pre=0,this.resvDrain_post=0,this.scfsi=[He(4),He(4)];for(var Z=0;Z<2;Z++)for(var le=0;le<2;le++)this.tt[Z][le]=new Kt},bt=P.System,la=P.new_int,ia=function(Z,le,Fe,Ce){this.l=la(1+u.SBMAX_l),this.s=la(1+u.SBMAX_s),this.psfb21=la(1+u.PSFB21),this.psfb12=la(1+u.PSFB12);var st=this.l,Qe=this.s;arguments.length==4&&(this.arrL=arguments[0],this.arrS=arguments[1],this.arr21=arguments[2],this.arr12=arguments[3],bt.arraycopy(this.arrL,0,st,0,Math.min(this.arrL.length,this.l.length)),bt.arraycopy(this.arrS,0,Qe,0,Math.min(this.arrS.length,this.s.length)),bt.arraycopy(this.arr21,0,this.psfb21,0,Math.min(this.arr21.length,this.psfb21.length)),bt.arraycopy(this.arr12,0,this.psfb12,0,Math.min(this.arr12.length,this.psfb12.length)))},da=P.new_float,O=P.new_float_n,we=P.new_int,Le=function(){this.last_en_subshort=O([4,9]),this.lastAttacks=we(4),this.pefirbuf=da(19),this.longfact=da(u.SBMAX_l),this.shortfact=da(u.SBMAX_s),this.attackthre=0,this.attackthre_s=0},Ge=function(){this.sum=0,this.seen=0,this.want=0,this.pos=0,this.size=0,this.bag=null,this.nVbrNumFrames=0,this.nBytesWritten=0,this.TotalFrameSize=0},Ft=P.new_byte,qt=P.new_double,Tt=P.new_float,ht=P.new_float_n,yt=P.new_int,Yt=P.new_int_n;function ta(){var Z=40;function le(){this.write_timing=0,this.ptr=0,this.buf=Ft(Z)}this.Class_ID=0,this.lame_encode_frame_init=0,this.iteration_init_init=0,this.fill_buffer_resample_init=0,this.mfbuf=ht([2,ta.MFSIZE]),this.mode_gr=0,this.channels_in=0,this.channels_out=0,this.resample_ratio=0,this.mf_samples_to_encode=0,this.mf_size=0,this.VBR_min_bitrate=0,this.VBR_max_bitrate=0,this.bitrate_index=0,this.samplerate_index=0,this.mode_ext=0,this.lowpass1=0,this.lowpass2=0,this.highpass1=0,this.highpass2=0,this.noise_shaping=0,this.noise_shaping_amp=0,this.substep_shaping=0,this.psymodel=0,this.noise_shaping_stop=0,this.subblock_gain=0,this.use_best_huffman=0,this.full_outer_loop=0,this.l3_side=new ft,this.ms_ratio=Tt(2),this.padding=0,this.frac_SpF=0,this.slot_lag=0,this.tag_spec=null,this.nMusicCRC=0,this.OldValue=yt(2),this.CurrentStep=yt(2),this.masking_lower=0,this.bv_scf=yt(576),this.pseudohalf=yt(Bt.SFBMAX),this.sfb21_extra=!1,this.inbuf_old=new Array(2),this.blackfilt=new Array(2*ta.BPC+1),this.itime=qt(2),this.sideinfo_len=0,this.sb_sample=ht([2,2,18,u.SBLIMIT]),this.amp_filter=Tt(32),this.header=new Array(ta.MAX_HEADER_BUF),this.h_ptr=0,this.w_ptr=0,this.ancillary_flag=0,this.ResvSize=0,this.ResvMax=0,this.scalefac_band=new ia,this.minval_l=Tt(u.CBANDS),this.minval_s=Tt(u.CBANDS),this.nb_1=ht([4,u.CBANDS]),this.nb_2=ht([4,u.CBANDS]),this.nb_s1=ht([4,u.CBANDS]),this.nb_s2=ht([4,u.CBANDS]),this.s3_ss=null,this.s3_ll=null,this.decay=0,this.thm=new Array(4),this.en=new Array(4),this.tot_ener=Tt(4),this.loudness_sq=ht([2,2]),this.loudness_sq_save=Tt(2),this.mld_l=Tt(u.SBMAX_l),this.mld_s=Tt(u.SBMAX_s),this.bm_l=yt(u.SBMAX_l),this.bo_l=yt(u.SBMAX_l),this.bm_s=yt(u.SBMAX_s),this.bo_s=yt(u.SBMAX_s),this.npart_l=0,this.npart_s=0,this.s3ind=Yt([u.CBANDS,2]),this.s3ind_s=Yt([u.CBANDS,2]),this.numlines_s=yt(u.CBANDS),this.numlines_l=yt(u.CBANDS),this.rnumlines_l=Tt(u.CBANDS),this.mld_cb_l=Tt(u.CBANDS),this.mld_cb_s=Tt(u.CBANDS),this.numlines_s_num1=0,this.numlines_l_num1=0,this.pe=Tt(4),this.ms_ratio_s_old=0,this.ms_ratio_l_old=0,this.ms_ener_ratio_old=0,this.blocktype_old=yt(2),this.nsPsy=new Le,this.VBR_seek_table=new Ge,this.ATH=null,this.PSY=null,this.nogap_total=0,this.nogap_current=0,this.decode_on_the_fly=!0,this.findReplayGain=!0,this.findPeakSample=!0,this.PeakSample=0,this.RadioGain=0,this.AudiophileGain=0,this.rgdata=null,this.noclipGainChange=0,this.noclipScale=0,this.bitrate_stereoMode_Hist=Yt([16,5]),this.bitrate_blockType_Hist=Yt([16,6]),this.pinfo=null,this.hip=null,this.in_buffer_nsamples=0,this.in_buffer_0=null,this.in_buffer_1=null,this.iteration_loop=null;for(var Fe=0;Fe<this.en.length;Fe++)this.en[Fe]=new x;for(Fe=0;Fe<this.thm.length;Fe++)this.thm[Fe]=new x;for(Fe=0;Fe<this.header.length;Fe++)this.header[Fe]=new le}ta.MFSIZE=3456+u.ENCDELAY-u.MDCTDELAY,ta.MAX_HEADER_BUF=256,ta.MAX_BITS_PER_CHANNEL=4095,ta.MAX_BITS_PER_GRANULE=7680,ta.BPC=320;var Pt=ta,fa=P.new_float,ga=function(){this.useAdjust=0,this.aaSensitivityP=0,this.adjust=0,this.adjustLimit=0,this.decay=0,this.floor=0,this.l=fa(u.SBMAX_l),this.s=fa(u.SBMAX_s),this.psfb21=fa(u.PSFB21),this.psfb12=fa(u.PSFB12),this.cb_l=fa(u.CBANDS),this.cb_s=fa(u.CBANDS),this.eql_w=fa(u.BLKSIZE/2)},ua=P.System,qa=P.Arrays;function Wt(){var Z=64.82,le=(Wt.YULE_ORDER,.95),Fe=(Wt.MAX_SAMP_FREQ,Wt.RMS_WINDOW_TIME_NUMERATOR),Ce=Wt.RMS_WINDOW_TIME_DENOMINATOR,st=(Wt.MAX_SAMPLES_PER_WINDOW,[[.038575994352,-3.84664617118067,-.02160367184185,7.81501653005538,-.00123395316851,-11.34170355132042,-9291677959e-14,13.05504219327545,-.01655260341619,-12.28759895145294,.02161526843274,9.4829380631979,-.02074045215285,-5.87257861775999,.00594298065125,2.75465861874613,.00306428023191,-.86984376593551,.00012025322027,.13919314567432,.00288463683916],[.0541865640643,-3.47845948550071,-.02911007808948,6.36317777566148,-.00848709379851,-8.54751527471874,-.00851165645469,9.4769360780128,-.00834990904936,-8.81498681370155,.02245293253339,6.85401540936998,-.02596338512915,-4.39470996079559,.01624864962975,2.19611684890774,-.00240879051584,-.75104302451432,.00674613682247,.13149317958808,-.00187763777362],[.15457299681924,-2.37898834973084,-.09331049056315,2.84868151156327,-.06247880153653,-2.64577170229825,.02163541888798,2.23697657451713,-.05588393329856,-1.67148153367602,.04781476674921,1.00595954808547,.00222312597743,-.45953458054983,.03174092540049,.16378164858596,-.01390589421898,-.05032077717131,.00651420667831,.0234789740702,-.00881362733839],[.30296907319327,-1.61273165137247,-.22613988682123,1.0797749225997,-.08587323730772,-.2565625775407,.03282930172664,-.1627671912044,-.00915702933434,-.22638893773906,-.02364141202522,.39120800788284,-.00584456039913,-.22138138954925,.06276101321749,.04500235387352,-828086748e-14,.02005851806501,.00205861885564,.00302439095741,-.02950134983287],[.33642304856132,-1.49858979367799,-.2557224142557,.87350271418188,-.11828570177555,.12205022308084,.11921148675203,-.80774944671438,-.07834489609479,.47854794562326,-.0046997791438,-.12453458140019,-.0058950022444,-.04067510197014,.05724228140351,.08333755284107,.00832043980773,-.04237348025746,-.0163538138454,.02977207319925,-.0176017656815],[.4491525660845,-.62820619233671,-.14351757464547,.29661783706366,-.22784394429749,-.372563729424,-.01419140100551,.00213767857124,.04078262797139,-.42029820170918,-.12398163381748,.22199650564824,.04097565135648,.00613424350682,.10478503600251,.06747620744683,-.01863887810927,.05784820375801,-.03193428438915,.03222754072173,.00541907748707],[.56619470757641,-1.04800335126349,-.75464456939302,.29156311971249,.1624213774223,-.26806001042947,.16744243493672,.00819999645858,-.18901604199609,.45054734505008,.3093178284183,-.33032403314006,-.27562961986224,.0673936833311,.00647310677246,-.04784254229033,.08647503780351,.01639907836189,-.0378898455484,.01807364323573,-.00588215443421],[.58100494960553,-.51035327095184,-.53174909058578,-.31863563325245,-.14289799034253,-.20256413484477,.17520704835522,.1472815413433,.02377945217615,.38952639978999,.15558449135573,-.23313271880868,-.25344790059353,-.05246019024463,.01628462406333,-.02505961724053,.06920467763959,.02442357316099,-.03721611395801,.01818801111503,-.00749618797172],[.53648789255105,-.2504987195602,-.42163034350696,-.43193942311114,-.00275953611929,-.03424681017675,.04267842219415,-.04678328784242,-.10214864179676,.264083
100200955,.14590772289388,.15113130533216,-.02459864859345,-.17556493366449,-.11202315195388,-.18823009262115,-.04060034127,.05477720428674,.0478866554818,.0470440968812,-.02217936801134]]),Qe=[[.98621192462708,-1.97223372919527,-1.97242384925416,.97261396931306,.98621192462708],[.98500175787242,-1.96977855582618,-1.97000351574484,.9702284756635,.98500175787242],[.97938932735214,-1.95835380975398,-1.95877865470428,.95920349965459,.97938932735214],[.97531843204928,-1.95002759149878,-1.95063686409857,.95124613669835,.97531843204928],[.97316523498161,-1.94561023566527,-1.94633046996323,.94705070426118,.97316523498161],[.96454515552826,-1.92783286977036,-1.92909031105652,.93034775234268,.96454515552826],[.96009142950541,-1.91858953033784,-1.92018285901082,.92177618768381,.96009142950541],[.95856916599601,-1.9154210807478,-1.91713833199203,.91885558323625,.95856916599601],[.94597685600279,-1.88903307939452,-1.89195371200558,.89487434461664,.94597685600279]];function ze(m,w,i,re,Se,r){for(;Se--!=0;)i[re]=1e-10+m[w+0]*r[0]-i[re-1]*r[1]+m[w-1]*r[2]-i[re-2]*r[3]+m[w-2]*r[4]-i[re-3]*r[5]+m[w-3]*r[6]-i[re-4]*r[7]+m[w-4]*r[8]-i[re-5]*r[9]+m[w-5]*r[10]-i[re-6]*r[11]+m[w-6]*r[12]-i[re-7]*r[13]+m[w-7]*r[14]-i[re-8]*r[15]+m[w-8]*r[16]-i[re-9]*r[17]+m[w-9]*r[18]-i[re-10]*r[19]+m[w-10]*r[20],++re,++w}function kt(m,w,i,re,Se,r){for(;Se--!=0;)i[re]=m[w+0]*r[0]-i[re-1]*r[1]+m[w-1]*r[2]-i[re-2]*r[3]+m[w-2]*r[4],++re,++w}function fe(m){return m*m}this.InitGainAnalysis=function(m,w){return(function(i,re){for(var Se=0;Se<MAX_ORDER;Se++)i.linprebuf[Se]=i.lstepbuf[Se]=i.loutbuf[Se]=i.rinprebuf[Se]=i.rstepbuf[Se]=i.routbuf[Se]=0;switch(0|re){case 48e3:i.reqindex=0;break;case 44100:i.reqindex=1;break;case 32e3:i.reqindex=2;break;case 24e3:i.reqindex=3;break;case 22050:i.reqindex=4;break;case 16e3:i.reqindex=5;break;case 12e3:i.reqindex=6;break;case 11025:i.reqindex=7;break;case 8e3:i.reqindex=8;break;default:return INIT_GAIN_ANALYSIS_ERROR}return i.sampleWindow=0|(re*Fe+Ce-1)/Ce,i.lsum=0,i.rsum=0,i.totsamp=0,qa.ill(i.A,0),INIT_GAIN_ANALYSIS_OK})(m,w)!=INIT_GAIN_ANALYSIS_OK?INIT_GAIN_ANALYSIS_ERROR:(m.linpre=MAX_ORDER,m.rinpre=MAX_ORDER,m.lstep=MAX_ORDER,m.rstep=MAX_ORDER,m.lout=MAX_ORDER,m.rout=MAX_ORDER,qa.fill(m.B,0),INIT_GAIN_ANALYSIS_OK)},this.AnalyzeSamples=function(m,w,i,re,Se,r,T){var D,X,L,f,p,A,N;if(r==0)return GAIN_ANALYSIS_OK;switch(N=0,p=r,T){case 1:re=w,Se=i;break;case 2:break;default:return GAIN_ANALYSIS_ERROR}for(r<MAX_ORDER?(ua.arraycopy(w,i,m.linprebuf,MAX_ORDER,r),ua.arraycopy(re,Se,m.rinprebuf,MAX_ORDER,r)):(ua.arraycopy(w,i,m.linprebuf,MAX_ORDER,MAX_ORDER),ua.arraycopy(re,Se,m.rinprebuf,MAX_ORDER,MAX_ORDER));p>0;){A=p>m.sampleWindow-m.totsamp?m.sampleWindow-m.totsamp:p,N<MAX_ORDER?(D=m.linpre+N,X=m.linprebuf,L=m.rinpre+N,f=m.rinprebuf,A>MAX_ORDER-N&&(A=MAX_ORDER-N)):(D=i+N,X=w,L=Se+N,f=re),ze(X,D,m.lstepbuf,m.lstep+m.totsamp,A,st[m.reqindex]),ze(f,L,m.rstepbuf,m.rstep+m.totsamp,A,st[m.reqindex]),kt(m.lstepbuf,m.lstep+m.totsamp,m.loutbuf,m.lout+m.totsamp,A,Qe[m.reqindex]),kt(m.rstepbuf,m.rstep+m.totsamp,m.routbuf,m.rout+m.totsamp,A,Qe[m.reqindex]),D=m.lout+m.totsamp,X=m.loutbuf,L=m.rout+m.totsamp,f=m.routbuf;for(var F=A%8;F--!=0;)m.lsum+=fe(X[D++]),m.rsum+=fe(f[L++]);for(F=A/8;F--!=0;)m.lsum+=fe(X[D+0])+fe(X[D+1])+fe(X[D+2])+fe(X[D+3])+fe(X[D+4])+fe(X[D+5])+fe(X[D+6])+fe(X[D+7]),D+=8,m.rsum+=fe(f[L+0])+fe(f[L+1])+fe(f[L+2])+fe(f[L+3])+fe(f[L+4])+fe(f[L+5])+fe(f[L+6])+fe(f[L+7]),L+=8;if(p-=A,N+=A,m.totsamp+=A,m.totsamp==m.sampleWindow){var M=10*Wt.STEPS_per_dB*Math.log10((m.lsum+m.rsum)/m.totsamp*.5+1e-37),ce=M<=0?0:0|M;ce>=m.A.length&&(ce=m.A.length-1),m.A[ce]++,m.lsum=m.rsum=0,ua.arraycopy(m.loutbuf,m.totsamp,m.loutbuf,0,MAX_ORDER),ua.arraycopy(m.routbuf,m.totsamp,m.routbuf,0,MAX_ORDER),ua.arraycopy(m.lstepbuf,m.totsamp,m.lstepbuf,0,MAX_ORDER),ua.arraycopy(m.rstepbuf,m.totsamp,m.rstepbuf,0,MAX_ORDER),m.totsamp=0}if(m.totsamp>m.sampleWindow)return GAIN_ANALYSIS_ERROR}return r<MAX_ORDER?(ua.arraycopy(m.linprebuf,r,m.linprebuf,0,MAX_ORDER-r),ua.arraycopy(m.rinprebuf,r,m.rinprebuf,0,MAX_ORDER-r),ua.arraycopy(w,i,m.linprebuf,MAX_ORDER-r,r),ua.arraycopy(re,Se,m.rinprebuf,MAX_ORDER-r,r)):(ua.arraycopy(w,i+r-MAX_ORDER,m.linprebuf,0,MAX_ORDER),ua.arraycopy(re,Se+r-MAX_ORDER,m.rinprebuf,0,MAX_ORDER)),GAIN_ANALYSIS_OK},this.GetTitleGain=function(m){for(var w=(function(re,Se){var r,T=0;for(r=0;r<Se;r++)T+=re[r];if(T==0)return GAIN_NOT_ENOUGH_SAMPLES;var D=0|Math.ceil(T*(1-le));for(r=Se;r-- >0&&!((D-=re[r])<=0););return Z-r/Wt.STEPS_per_dB})(m.A,m.A.length),i=0;i<m.A.length;i++)m.B[i]+=m.A[i],m.A[i]=0;for(i=0;i<MAX_ORDER;i++)m.linprebuf[i]=m.lstepbuf[i]=m.loutbuf[i]=m.rinprebuf[i]=m.rstepbuf[i]=m.routbuf[i]=0;return m.totsamp=0,m.lsum=m.rsum=0,w}}Wt.STEPS_per_dB=100,Wt.MAX_dB=120,Wt.GAIN_NOT_ENOUGH_SAMPLES=-24601,Wt.GAIN_ANALYSIS_ERROR=0,Wt.GAIN_ANALYSIS_OK=1,Wt.INIT_GAIN_ANALYSIS_ERROR=0,Wt.INIT_GAIN_ANALYSIS_OK=1,Wt.YULE_ORDER=10,Wt.MAX_ORDER=Wt.YULE_ORDER,Wt.MAX_SAMP_FREQ=48e3,Wt.RMS_WINDOW_TIME_NUMERATOR=1,Wt.RMS_WINDOW_TIME_DENOMINATOR=20,Wt.MAX_SAMPLES_PER_WINDOW=Wt.MAX_SAMP_FREQ*Wt.RMS_WINDOW_TIME_NUMERATOR/Wt.RMS_WINDOW_TIME_DENOMINATOR+1;var b=Wt,S=P.new_float,C=P.new_int,B=function(){this.linprebuf=S(2*b.MAX_ORDER),this.linpre=0,this.lstepbuf=S(b.MAX_SAMPLES_PER_WINDOW+b.MAX_ORDER),this.lstep=0,this.loutbuf=S(b.MAX_SAMPLES_PER_WINDOW+b.MAX_ORDER),this.lout=0,this.rinprebuf=S(2*b.MAX_ORDER),this.rinpre=0,this.rstepbuf=S(b.MAX_SAMPLES_PER_WINDOW+b.MAX_ORDER),this.rstep=0,this.routbuf=S(b.MAX_SAMPLES_PER_WINDOW+b.MAX_ORDER),this.rout=0,this.sampleWindow=0,this.totsamp=0,this.lsum=0,this.rsum=0,this.freqindex=0,this.first=0,this.A=C(0|b.STEPS_per_dB*b.MAX_dB),this.B=C(0|b.STEPS_per_dB*b.MAX_dB)},V=function(Z){this.bits=Z},ie=P.new_float,pe=P.new_int,he=P.assert,ee=function(Z){var le=Z;this.quantize=le,this.iteration_loop=function(Fe,Ce,st,Qe){var ze,kt=Fe.internal_flags,fe=ie(Bt.SFBMAX),m=ie(576),w=pe(2),i=0,re=kt.l3_side,Se=new V(i);this.quantize.rv.ResvFrameBegin(Fe,Se),i=Se.bits;for(var r=0;r<kt.mode_gr;r++){ze=this.quantize.qupvt.on_pe(Fe,Ce,w,i,r,r),kt.mode_ext==u.MPG_MD_MS_LR&&(this.quantize.ms_convert(kt.l3_side,r),this.quantize.qupvt.reduce_side(w,st[r],i,ze));for(var T=0;T<kt.channels_out;T++){var D,X,L=re.tt[r][T];L.block_type!=u.SHORT_TYPE?(D=0,X=kt.PSY.mask_adjust-D):(D=0,X=kt.PSY.mask_adjust_short-D),kt.masking_lower=Math.pow(10,.1*X),this.quantize.init_outer_loop(kt,L),this.quantize.init_xrpow(kt,L,m)&&(this.quantize.qupvt.calc_xmin(Fe,Qe[r][T],L,fe),this.quantize.outer_loop(Fe,L,fe,m,T,w[T])),this.quantize.iteration_finish_one(kt,r,T),he(L.part2_3_length<=Pt.MAX_BITS_PER_CHANNEL),he(L.part2_3_length<=w[T])}}this.quantize.rv.ResvFrameEnd(kt,i)}};function n(Z,le,Fe,Ce){this.xlen=Z,this.linmax=le,this.table=Fe,this.hlen=Ce}var l={t1HB:[1,1,1,0],t2HB:[1,2,1,3,1,1,3,2,0],t3HB:[3,2,1,1,1,1,3,2,0],t5HB:[1,2,6,5,3,1,4,4,7,5,7,1,6,1,1,0],t6HB:[7,3,5,1,6,2,3,2,5,4,4,1,3,3,2,0],t7HB:[1,2,10,19,16,10,3,3,7,10,5,3,11,4,13,17,8,4,12,11,18,15,11,2,7,6,9,14,3,1,6,4,5,3,2,0],t8HB:[3,4,6,18,12,5,5,1,2,16,9,3,7,3,5,14,7,3,19,17,15,13,10,4,13,5,8,11,5,1,12,4,4,1,1,0],t9HB:[7,5,9,14,15,7,6,4,5,5,6,7,7,6,8,8,8,5,15,6,9,10,5,1,11,7,9,6,4,1,14,4,6,2,6,0],t10HB:[1,2,10,23,35,30,12,17,3,3,8,12,18,21,12,7,11,9,15,21,32,40,19,6,14,13,22,34,46,23,18,7,20,19,33,47,27,22,9,3,31,22,41,26,21,20,5,3,14,13,10,11,16,6,5,1,9,8,7,8,4,4,2,0],t11HB:[3,4,10,24,34,33,21,15,5,3,4,10,32,17,11,10,11,7,13,18,30,31,20,5,25,11,19,59,27,18,12,5,35,33,31,58,30,16,7,5,28,26,32,19,17,15,8,14,14,12,9,13,14,9,4,1,11,4,6,6,6,3,2,0],t12HB:[9,6,16,33,41,39,38,26,7,5,6,9,23,16,26,11,17,7,11,14,21,30,10,7,17,10,15,12,18,28,14,5,32,13,22,19,18,16,9,5,40,17,31,29,17,13,4,2,27,12,11,15,10,7,4,1,27,12,8,12,6,3,1,0],t13HB:[1,5,14,21,34,51,46,71,42,52,68,52,67,44,43,19,3,4,12,19,31,26,44,33,31,24,32,24,31,35,22,14,15,13,23,36,59,49,77,65,29,40,30,40,27,33,42,16,22,20,37,61,56,79,73,64,43,76,56,37,26,31,25,14,35,16,60,57,97,75,114,91,54,73,55,41,48,53,23,24,58,27,50,96,76,70,93,84,77,58,79,29,74,49,41,17,47,45,78,74,115,94,90,79,69,83,71,50,59,38,36,15,72,34,56,95,92,85,91,90,86,73,77,65,51,44,43,42,43,20,30,44,55,78,72,87,78,61,46,54,37,30,20,16,53,25,41,37,44,59,54,81,66,76,57,54,37,18,39,11,35,33,31,57,42,82,72,80,47,58,55,21,22,26,38,22,53,25,23,38,70,60,51,36,55,26,34,23,27,14,9,7,34,32,28,39,49,75,30,52,48,40,52,28,18,17,9,5,45,21,34,64,56,50,49,45,31,19,12,15,10,7,6,3,48,23,20,39,36,35,53,21,16,23,13,10,6,1,4,2,16,15,17,27,25,20,29,11,17,12,16,8,1,1,0,1],t15HB:[7,12,18,53,47,76,124,108,89,123,108,119,107,81,122,63,13,5,16,27,46,36,61,51,42,70,52,83,65,41,59,36,19,17,15,24,41,34,59,48,40,64,50,78,62,80,56,33,29,28,25,43,39,63,55,93,76,59,93,72,54,75,50,29,52,22,42,40,67,57,95,79,72,57,89,69,49,66,46,27,77,37,35,66,58,52,91,74,62,48,79,63,90,62,40,38,125,32,60,56,50,92,78,65,55,87,71,51,73,51,70,30,109,53,49,94,88,75,66,122,91,73,56,42,64,44,21,25,90,43,41,77,73,63,56,92,77,66,47,67,48,53,36,20,71,34,67,60,58,49,88,76,67,106,71,54,38,39,23,15,109,53,51,47,90,82,58,57,48,72,57,41,23,27,62,9,86,42,40,37,70,64,52,43,70,55,42,25,29,18,11,11,118,68,30,55,50,46,74,65,49,39,24,16,22,13,14,7,91,44,39,38,34,63,52,45,31,52,28,19,14,8,9,3,123,60,58,53,47,43,32,22,37,24,17,12,15,10,2,1,71,37,34,30,28,20,17,26,21,16,10,6,8,6,2,0],t16HB:[1,5,14,44,74,63,110,93,172,149,138,242,225,195,376,17,3,4,12,20,35,62,53,47,83,75,68,119,201,107,207,9,15,13,23,38,67,58,103,90,161,72,127,117,110,209,206,16,45,21,39,69,64,114,99,87,158,140,252,212,199,387,365,26,75,36,68,65,115,101,179,164,155,264,246,226,395,382,362,9,66,30,59,56,102,185,173,265,142,253,232,400,388,378,445,16,111,54,52,100,184,178,160,133,257,244,228,217,385,366,715,10,98,48,91,88,165,157,148,261,248,407,397,372,380,889,884,8,85,84,81,159,156,143,260,249,427,401,392,383,727,713,708,7,154,76,73,141,131,256,245,426,406,394,384,735,359,710,352,11,139,129,67,125,247,233,229,219,393,743,737,720,885,882,439,4,243,120,118,115,227,223,396,746,742,736,721,712,706,223,436,6,202,224,222,218,216,389,386,381,364,888,443,707,440,437,1728,4,747,211,210,208,370,379,734,723,714,1735,883,877,876,3459,8
vendor: 10,371 bytes, line 1
165,2,377,369,102,187,726,722,358,711,709,866,1734,871,3458,870,434,0,12,10,7,11,10,17,11,9,13,12,10,7,5,3,1,3],t24HB:[15,13,46,80,146,262,248,434,426,669,653,649,621,517,1032,88,14,12,21,38,71,130,122,216,209,198,327,345,319,297,279,42,47,22,41,74,68,128,120,221,207,194,182,340,315,295,541,18,81,39,75,70,134,125,116,220,204,190,178,325,311,293,271,16,147,72,69,135,127,118,112,210,200,188,352,323,306,285,540,14,263,66,129,126,119,114,214,202,192,180,341,317,301,281,262,12,249,123,121,117,113,215,206,195,185,347,330,308,291,272,520,10,435,115,111,109,211,203,196,187,353,332,313,298,283,531,381,17,427,212,208,205,201,193,186,177,169,320,303,286,268,514,377,16,335,199,197,191,189,181,174,333,321,305,289,275,521,379,371,11,668,184,183,179,175,344,331,314,304,290,277,530,383,373,366,10,652,346,171,168,164,318,309,299,287,276,263,513,375,368,362,6,648,322,316,312,307,302,292,284,269,261,512,376,370,364,359,4,620,300,296,294,288,282,273,266,515,380,374,369,365,361,357,2,1033,280,278,274,267,264,259,382,378,372,367,363,360,358,356,0,43,20,19,17,15,13,11,9,7,6,4,7,5,3,1,3],t32HB:[1,10,8,20,12,20,16,32,14,12,24,0,28,16,24,16],t33HB:[15,28,26,48,22,40,36,64,14,24,20,32,12,16,8,0],t1l:[1,4,3,5],t2l:[1,4,7,4,5,7,6,7,8],t3l:[2,3,7,4,4,7,6,7,8],t5l:[1,4,7,8,4,5,8,9,7,8,9,10,8,8,9,10],t6l:[3,4,6,8,4,4,6,7,5,6,7,8,7,7,8,9],t7l:[1,4,7,9,9,10,4,6,8,9,9,10,7,7,9,10,10,11,8,9,10,11,11,11,8,9,10,11,11,12,9,10,11,12,12,12],t8l:[2,4,7,9,9,10,4,4,6,10,10,10,7,6,8,10,10,11,9,10,10,11,11,12,9,9,10,11,12,12,10,10,11,11,13,13],t9l:[3,4,6,7,9,10,4,5,6,7,8,10,5,6,7,8,9,10,7,7,8,9,9,10,8,8,9,9,10,11,9,9,10,10,11,11],t10l:[1,4,7,9,10,10,10,11,4,6,8,9,10,11,10,10,7,8,9,10,11,12,11,11,8,9,10,11,12,12,11,12,9,10,11,12,12,12,12,12,10,11,12,12,13,13,12,13,9,10,11,12,12,12,13,13,10,10,11,12,12,13,13,13],t11l:[2,4,6,8,9,10,9,10,4,5,6,8,10,10,9,10,6,7,8,9,10,11,10,10,8,8,9,11,10,12,10,11,9,10,10,11,11,12,11,12,9,10,11,12,12,13,12,13,9,9,9,10,11,12,12,12,9,9,10,11,12,12,12,12],t12l:[4,4,6,8,9,10,10,10,4,5,6,7,9,9,10,10,6,6,7,8,9,10,9,10,7,7,8,8,9,10,10,10,8,8,9,9,10,10,10,11,9,9,10,10,10,11,10,11,9,9,9,10,10,11,11,12,10,10,10,11,11,11,11,12],t13l:[1,5,7,8,9,10,10,11,10,11,12,12,13,13,14,14,4,6,8,9,10,10,11,11,11,11,12,12,13,14,14,14,7,8,9,10,11,11,12,12,11,12,12,13,13,14,15,15,8,9,10,11,11,12,12,12,12,13,13,13,13,14,15,15,9,9,11,11,12,12,13,13,12,13,13,14,14,15,15,16,10,10,11,12,12,12,13,13,13,13,14,13,15,15,16,16,10,11,12,12,13,13,13,13,13,14,14,14,15,15,16,16,11,11,12,13,13,13,14,14,14,14,15,15,15,16,18,18,10,10,11,12,12,13,13,14,14,14,14,15,15,16,17,17,11,11,12,12,13,13,13,15,14,15,15,16,16,16,18,17,11,12,12,13,13,14,14,15,14,15,16,15,16,17,18,19,12,12,12,13,14,14,14,14,15,15,15,16,17,17,17,18,12,13,13,14,14,15,14,15,16,16,17,17,17,18,18,18,13,13,14,15,15,15,16,16,16,16,16,17,18,17,18,18,14,14,14,15,15,15,17,16,16,19,17,17,17,19,18,18,13,14,15,16,16,16,17,16,17,17,18,18,21,20,21,18],t15l:[3,5,6,8,8,9,10,10,10,11,11,12,12,12,13,14,5,5,7,8,9,9,10,10,10,11,11,12,12,12,13,13,6,7,7,8,9,9,10,10,10,11,11,12,12,13,13,13,7,8,8,9,9,10,10,11,11,11,12,12,12,13,13,13,8,8,9,9,10,10,11,11,11,11,12,12,12,13,13,13,9,9,9,10,10,10,11,11,11,11,12,12,13,13,13,14,10,9,10,10,10,11,11,11,11,12,12,12,13,13,14,14,10,10,10,11,11,11,11,12,12,12,12,12,13,13,13,14,10,10,10,11,11,11,11,12,12,12,12,13,13,14,14,14,10,10,11,11,11,11,12,12,12,13,13,13,13,14,14,14,11,11,11,11,12,12,12,12,12,13,13,13,13,14,15,14,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,15,12,12,11,12,12,12,13,13,13,13,13,13,14,14,15,15,12,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,13,13,13,13,13,13,13,13,14,14,14,14,15,15,14,15,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15],t16_5l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,11,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,11,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,12,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,13,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,12,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,13,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,13,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,13,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,13,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,14,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,13,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,14,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,14,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,14,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,14,11,11,11,12,12,13,13,13,14,14,14,14,14,14,14,12],t16l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,10,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,10,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,11,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,12,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,11,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,12,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,12,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,12,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,12,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,13,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,12,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,13,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,13,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,13,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,13,10,10,10,11,11,12,12,12,13,13,13,13,13,13,13,10],t24l:[4,5,7,8,9,10,10,11,11,12,12,12,12,12,13,10,5,6,7,8,9,10,10,11,11,11,12,12,12,12,12,10,7,7,8,9,9,10,10,11,11,11,11,12,12,12,13,9,8,8,9,9,10,10,10,11,11,11,11,12,12,12,12,9,9,9,9,10,10,10,10,11,11,11,12,12,12,12,13,9,10,9,10,10,10,10,11,11,11,11,12,12,12,12,12,9,10,10,10,10,10,11,11,11,11,12,12,12,12,12,13,9,11,10,10,10,11,11,11,11,12,12,12,12,12,13,13,10,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,10,11,11,11,11,11,11,11,12,12,12,12,12,13,13,13,10,12,11,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,10,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,10,13,12,12,12,12,12,12,13,13,13,13,13,13,13,13,10,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,6],t32l:[1,5,5,7,5,8,7,9,5,7,7,9,7,9,9,10],t33l:[4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8]};l.ht=[new n(0,0,null,null),new n(2,0,l.t1HB,l.t1l),new n(3,0,l.t2HB,l.t2l),new n(3,0,l.t3HB,l.t3l),new n(0,0,null,null),new n(4,0,l.t5HB,l.t5l),new n(4,0,l.t6HB,l.t6l),new n(6,0,l.t7HB,l.t7l),new n(6,0,l.t8HB,l.t8l),new n(6,0,l.t9HB,l.t9l),new n(8,0,l.t10HB,l.t10l),new n(8,0,l.t11HB,l.t11l),new n(8,0,l.t12HB,l.t12l),new n(16,0,l.t13HB,l.t13l),new n(0,0,null,l.t16_5l),new n(16,0,l.t15HB,l.t15l),new n(1,1,l.t16HB,l.t16l),new n(2,3,l.t16HB,l.t16l),new n(3,7,l.t16HB,l.t16l),new n(4,15,l.t16HB,l.t16l),new n(6,63,l.t16HB,l.t16l),new n(8,255,l.t16HB,l.t16l),new n(10,1023,l.t16HB,l.t16l),new n(13,8191,l.t16HB,l.t16l),new n(4,15,l.t24HB,l.t24l),new n(5,31,l.t24HB,l.t24l),new n(6,63,l.t24HB,l.t24l),new n(7,127,l.t24HB,l.t24l),new n(8,255,l.t24HB,l.t24l),new n(9,511,l.t24HB,l.t24l),new n(11,2047,l.t24HB,l.t24l),new n(13,8191,l.t24HB,l.t24l),new n(0,0,l.t32HB,l.t32l),new n(0,0,l.t33HB,l.t33l)],l.largetbl=[65540,327685,458759,589832,655369,655370,720906,720907,786443,786444,786444,851980,851980,851980,917517,655370,262149,393222,524295,589832,655369,720906,720906,720907,786443,786443,786444,851980,917516,851980,917516,655370,458759,524295,589832,655369,720905,720906,786442,786443,851979,786443,851979,851980,851980,917516,917517,720905,589832,589832,655369,720905,720906,786442,786442,786443,851979,851979,917515,917516,917516,983052,983052,786441,655369,655369,720905,720906,786442,786442,851978,851979,851979,917515,917516,917516,983052,983052,983053,720905,655370,655369,720906,720906,786442,851978,851979,917515,851979,917515,917516,983052,983052,983052,1048588,786441,720906,720906,720906,786442,851978,851979,851979,851979,917515,917516,917516,917516,983052,983052,1048589,786441,720907,720906,786442,786442,851979,851979,851979,917515,917516,983052,983052,983052,983052,1114125,1114125,786442,720907,786443,786443,851979,851979,851979,917515,917515,983051,983052,983052,983052,1048588,1048589,1048589,786442,786443,786443,786443,851979,851979,917515,917515,983052,983052,983052,983052,1048588,983053,1048589,983053,851978,786444,851979,786443,851979,917515,917516,917516,917516,983052,1048588,1048588,1048589,1114125,1114125,1048589,786442,851980,851980,851979,851979,917515,917516,983052,1048588,1048588,1048588,1048588,1048589,1048589,983053,1048589,851978,851980,917516,917516,917516,917516,983052,983052,983052,983052,1114124,1048589,1048589,1048589,1048589,1179661,851978,983052,917516,917516,917516,983052,983052,1048588,1048588,1048589,1179661,1114125,1114125,1114125,1245197,1114125,851978,917517,983052,851980,917516,1048588,1048588,983052,1048589,1048589,1114125,1179661,1114125,1245197,1114125,1048589,851978,655369,655369,655369,720905,720905,786441,786441,786441,851977,851977,851977,851978,851978,851978,851978,655366],l.table23=[65538,262147,458759,262148,327684,458759,393222,458759,524296],l.table56=[65539,262148,458758,524296,262148,327684,524294,589831,458757,524294,589831,655368,524295,524295,589832,655369],l.bitrate_table=[[0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,-1],[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],[0,8,16,24,32,40,48,56,64,-1,-1,-1,-1,-1,-1,-1]],l.samplerate_table=[[22050,24e3,16e3,-1],[44100,48e3,32e3,-1],[11025,12e3,8e3,-1]],l.scfsi_band=[0,6,11,16,21];var _=l,z=P.VbrMode,_e=P.Float,Be=P.Util,Te=P.new_float,et=P.new_int,St=P.assert;function ot(){var Z=null,le=null,Fe=null;this.setModules=function(r,T,D){Z=r,le=T,Fe=D},this.IPOW20=function(r){return St(0<=r&&r<ot.Q_MAX),m[r]};var Ce=ot.IXMAX_VAL+2,st=ot.Q_MAX,Qe=ot.Q_MAX2,ze=(ot.LARGE_BITS,100);this.nr_of_sfb_block=[[[6,5,5,5],[9,9,9,9],[6,9,9,9]],[[6,5,7,3],[9,9,12,6],[6,9,12,6]],[[11,10,0,0],[18,18,0,0],[15,18,0,0]],[[7,7,7,0],[12,12,12,0],[6,15,12,0]],[[6,6,6,3],[12,9,9,6],[6,12,9,6]],[[8,8,5,0],[15,12,9,0],[6,18,9,0]]];var kt=[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,3,3,3,2,0];this.pretab=kt,this.sfBandIndex=[new ia([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,24,32,42,56,74,100,132,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,6,12,18,24,30,36,44,54,66,80,96,114,136,162,194,232,278,332,394,464,540,576],[0,4,8,12,18,26,36,48,62,80,104,136,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,4,8,12,16,20,24,30,36,44,52,62,74,90,110,
1134,162,196,238,288,342,418,576],[0,4,8,12,16,22,30,40,52,66,84,106,136,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,4,8,12,16,20,24,30,36,42,50,60,72,88,106,128,156,190,230,276,330,384,576],[0,4,8,12,16,22,28,38,50,64,80,100,126,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,4,8,12,16,20,24,30,36,44,54,66,82,102,126,156,194,240,296,364,448,550,576],[0,4,8,12,16,22,30,42,58,78,104,138,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new ia([0,12,24,36,48,60,72,88,108,132,160,192,232,280,336,400,476,566,568,570,572,574,576],[0,8,16,24,36,52,72,96,124,160,162,164,166,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0])];var fe=Te(st+Qe+1),m=Te(st),w=Te(Ce),i=Te(Ce);function re(r,T){var D=Fe.ATHformula(T,r);return D-=ze,D=Math.pow(10,D/10+r.ATHlower)}function Se(r){this.s=r}this.adj43=i,this.iteration_init=function(r){var T,D=r.internal_flags,X=D.l3_side;if(D.iteration_init_init==0){for(D.iteration_init_init=1,X.main_data_begin=0,(function(F){for(var M=F.internal_flags.ATH.l,ce=F.internal_flags.ATH.psfb21,W=F.internal_flags.ATH.s,c=F.internal_flags.ATH.psfb12,K=F.internal_flags,oe=F.out_samplerate,G=0;G<u.SBMAX_l;G++){var H=K.scalefac_band.l[G],Me=K.scalefac_band.l[G+1];M[G]=_e.MAX_VALUE;for(var Ee=H;Ee<Me;Ee++){var ve=re(F,Ee*oe/1152);M[G]=Math.min(M[G],ve)}}for(G=0;G<u.PSFB21;G++)for(H=K.scalefac_band.psfb21[G],Me=K.scalefac_band.psfb21[G+1],ce[G]=_e.MAX_VALUE,Ee=H;Ee<Me;Ee++)ve=re(F,Ee*oe/1152),ce[G]=Math.min(ce[G],ve);for(G=0;G<u.SBMAX_s;G++){for(H=K.scalefac_band.s[G],Me=K.scalefac_band.s[G+1],W[G]=_e.MAX_VALUE,Ee=H;Ee<Me;Ee++)ve=re(F,Ee*oe/384),W[G]=Math.min(W[G],ve);W[G]*=K.scalefac_band.s[G+1]-K.scalefac_band.s[G]}for(G=0;G<u.PSFB12;G++){for(H=K.scalefac_band.psfb12[G],Me=K.scalefac_band.psfb12[G+1],c[G]=_e.MAX_VALUE,Ee=H;Ee<Me;Ee++)ve=re(F,Ee*oe/384),c[G]=Math.min(c[G],ve);c[G]*=K.scalefac_band.s[13]-K.scalefac_band.s[12]}if(F.noATH){for(G=0;G<u.SBMAX_l;G++)M[G]=1e-20;for(G=0;G<u.PSFB21;G++)ce[G]=1e-20;for(G=0;G<u.SBMAX_s;G++)W[G]=1e-20;for(G=0;G<u.PSFB12;G++)c[G]=1e-20}K.ATH.floor=10*Math.log10(re(F,-1))})(r),w[0]=0,T=1;T<Ce;T++)w[T]=Math.pow(T,4/3);for(T=0;T<Ce-1;T++)i[T]=T+1-Math.pow(.5*(w[T]+w[T+1]),.75);for(i[T]=.5,T=0;T<st;T++)m[T]=Math.pow(2,-.1875*(T-210));for(T=0;T<=st+Qe;T++)fe[T]=Math.pow(2,.25*(T-210-Qe));var L,f,p,A;for(Z.huffman_init(D),(T=r.exp_nspsytune>>2&63)>=32&&(T-=64),L=Math.pow(10,T/4/10),(T=r.exp_nspsytune>>8&63)>=32&&(T-=64),f=Math.pow(10,T/4/10),(T=r.exp_nspsytune>>14&63)>=32&&(T-=64),p=Math.pow(10,T/4/10),(T=r.exp_nspsytune>>20&63)>=32&&(T-=64),A=p*Math.pow(10,T/4/10),T=0;T<u.SBMAX_l;T++)N=T<=6?L:T<=13?f:T<=20?p:A,D.nsPsy.longfact[T]=N;for(T=0;T<u.SBMAX_s;T++){var N;N=T<=5?L:T<=10?f:T<=11?p:A,D.nsPsy.shortfact[T]=N}}},this.on_pe=function(r,T,D,X,L,f){var p,A,N=r.internal_flags,F=0,M=et(2),ce=new V(F),W=le.ResvMaxBits(r,X,ce,f),c=(F=ce.bits)+W;for(c>Pt.MAX_BITS_PER_GRANULE&&(c=Pt.MAX_BITS_PER_GRANULE),p=0,A=0;A<N.channels_out;++A)D[A]=Math.min(Pt.MAX_BITS_PER_CHANNEL,F/N.channels_out),M[A]=0|D[A]*T[L][A]/700-D[A],M[A]>
13*X/4&&(M[A]=3*X/4),M[A]<0&&(M[A]=0),M[A]+D[A]>Pt.MAX_BITS_PER_CHANNEL&&(M[A]=Math.max(0,Pt.MAX_BITS_PER_CHANNEL-D[A])),p+=M[A];if(p>W)for(A=0;A<N.channels_out;++A)M[A]=W*M[A]/p;for(A=0;A<N.channels_out;++A)D[A]+=M[A],W-=M[A];for(p=0,A=0;A<N.channels_out;++A)p+=D[A];if(p>Pt.MAX_BITS_PER_GRANULE){var K=0;for(A=0;A<N.channels_out;++A)D[A]*=Pt.MAX_BITS_PER_GRANULE,D[A]/=p,K+=D[A];St(K<=Pt.MAX_BITS_PER_GRANULE)}return c},this.reduce_side=function(r,T,D,X){St(X<=Pt.MAX_BITS_PER_GRANULE),St(r[0]+r[1]<=Pt.MAX_BITS_PER_GRANULE);var L=.33*(.5-T)/.5;L<0&&(L=0),L>.5&&(L=.5);var f=0|.5*L*(r[0]+r[1]);f>Pt.MAX_BITS_PER_CHANNEL-r[0]&&(f=Pt.MAX_BITS_PER_CHANNEL-r[0]),f<0&&(f=0),r[1]>=125&&(r[1]-f>125?(r[0]<D&&(r[0]+=f),r[1]-=f):(r[0]+=r[1]-125,r[1]=125)),(f=r[0]+r[1])>X&&(r[0]=X*r[0]/f,r[1]=X*r[1]/f),St(r[0]<=Pt.MAX_BITS_PER_CHANNEL),St(r[1]<=Pt.MAX_BITS_PER_CHANNEL),St(r[0]+r[1]<=Pt.MAX_BITS_PER_GRANULE)},this.athAdjust=function(r,T,D){var X=90.30873362,L=Be.FAST_LOG10_X(T,10),f=r*r,p=0;return L-=D,f>1e-20&&(p=1+Be.FAST_LOG10_X(f,10/X)),p<0&&(p=0),L*=p,L+=D+X-94.82444863,Math.pow(10,.1*L)},this.calc_xmin=function(r,T,D,X){var L,f=0,p=r.internal_flags,A=0,N=0,F=p.ATH,M=D.xr,ce=r.VBR==z.vbr_mtrh?1:0,W=p.masking_lower;for(r.VBR!=z.vbr_mtrh&&r.VBR!=z.vbr_mt||(W=1),L=0;L<D.psy_lmax;L++){ve=(Ee=r.VBR==z.vbr_rh||r.VBR==z.vbr_mtrh?athAdjust(F.adjust,F.l[L],F.floor):F.adjust*F.l[L])/(G=D.width[L]),Xe=2220446049250313e-31,We=G>>1,gt=0;do gt+=rt=M[A]*M[A],Xe+=rt<ve?rt:ve,gt+=Ot=M[++A]*M[A],Xe+=Ot<ve?Ot:ve,A++;while(--We>0);gt>Ee&&N++,L==u.SBPSY_l&&Xe<(Ie=Ee*p.nsPsy.longfact[L])&&(Xe=Ie),ce!=0&&(Ee=Xe),!r.ATHonly&&(Re=T.en.l[L])>0&&(Ie=gt*T.thm.l[L]*W/Re,ce!=0&&(Ie*=p.nsPsy.longfact[L]),Ee<Ie&&(Ee=Ie)),X[f++]=ce!=0?Ee:Ee*p.nsPsy.longfact[L]}var c=575;if(D.block_type!=u.SHORT_TYPE)for(var K=576;K--!=0&&un.EQ(M[K],0);)c=K;D.max_nonzero_coeff=c;for(var oe=D.sfb_smin;L<D.psymax;oe++,L+=3){var G,H,Me;for(Me=r.VBR==z.vbr_rh||r.VBR==z.vbr_mtrh?athAdjust(F.adjust,F.s[oe],F.floor):F.adjust*F.s[oe],G=D.width[L],H=0;H<3;H++){var Ee,ve,Xe,Re,Ie,gt=0,We=G>>1;ve=Me/G,Xe=2220446049250313e-31;do{var rt,Ot;gt+=rt=M[A]*M[A],Xe+=rt<ve?rt:ve,gt+=Ot=M[++A]*M[A],Xe+=Ot<ve?Ot:ve,A++}while(--We>0);gt>Me&&N++,oe==u.SBPSY_s&&Xe<(Ie=Me*p.nsPsy.shortfact[oe])&&(Xe=Ie),Ee=ce!=0?Xe:Me,!r.ATHonly&&!r.ATHshort&&(Re=T.en.s[oe][H])>0&&(Ie=gt*T.thm.s[oe][H]*W/Re,ce!=0&&(Ie*=p.nsPsy.shortfact[oe]),Ee<Ie&&(Ee=Ie)),X[f++]=ce!=0?Ee:Ee*p.nsPsy.shortfact[oe]}r.useTemporal&&(X[f-3]>X[f-3+1]&&(X[f-3+1]+=(X[f-3]-X[f-3+1])*p.decay),X[f-3+1]>X[f-3+2]&&(X[f-3+2]+=(X[f-3+1]-X[f-3+2])*p.decay))}return N},this.calc_noise_core=function(r,T,D,X){var L=0,f=T.s,p=r.l3_enc;if(f>r.count1)for(;D--!=0;)N=r.xr[f],f++,L+=N*N,N=r.xr[f],f++,L+=N*N;else if(f>r.big_values){var A=Te(2);for(A[0]=0,A[1]=X;D--!=0;)N=Math.abs(r.xr[f])-A[p[f]],f++,L+=N*N,N=Math.abs(r.xr[f])-A[p[f]],f++,L+=N*N}else for(;D--!=0;){var N;N=Math.abs(r.xr[f])-w[p[f]]*X,f++,L+=N*N,N=Math.abs(r.xr[f])-w[p[f]]*X,f++,L+=N*N}return T.s=f,L},this.calc_noise=function(r,T,D,X,L){var f,p,A,N=0,F=0,M=0,ce=0,W=0,c=-20,K=0,oe=r.scalefac,G=0;for(X.over_SSD=0,f=0;f<r.psymax;f++){var H,Me=r.global_gain-(oe[G++]+(r.preflag!=0?kt[f]:0)<<r.scalefac_scale+1)-8*r.subblock_gain[r.window[f]],Ee=0;if(L!=null&&L.step[f]==Me)Ee=L.noise[f],K+=r.width[f],D[N++]=Ee/T[F++],Ee=L.noise_log[f];else{var ve,Xe=(St(0<=(A=Me)+ot.Q_MAX2&&A<ot.Q_MAX),fe[A+ot.Q_MAX2]);p=r.width[f]>>1,K+r.width[f]>r.max_nonzero_coeff&&(p=(ve=r.max_nonzero_coeff-K+1)>0?ve>>1:0);var Re=new Se(K);Ee=this.calc_noise_core(r,Re,p,Xe),K=Re.s,L!=null&&(L.step[f]=Me,L.noise[f]=Ee),Ee=D[N++]=Ee/T[F++],Ee=Be.FAST_LOG10(Math.max(Ee,1e-20)),L!=null&&(L.noise_log[f]=Ee)}L!=null&&(L.global_gain=r.global_gain),W+=Ee,Ee>0&&(H=Math.max(0|10*Ee+.5,1),X.over_SSD+=H*H,M++,ce+=Ee),c=Math.max(c,Ee)}return X.over_count=M,X.tot_noise=W,X.over_noise=ce,X.max_noise=c,M},this.set_pinfo=function(r,T,D,X,L){var f,p,A,N,F,M=r.internal_flags,ce=T.scalefac_scale==0?.5:1,W=T.scalefac,c=Te(L3Side.SFBMAX),K=Te(L3Side.SFBMAX),oe=new CalcNoiseResult;calc_xmin(r,D,T,c),calc_noise(T,c,K,oe,null);var G=0;for(p=T.sfb_lmax,T.block_type!=u.SHORT_TYPE&&T.mixed_block_flag==0&&(p=22),f=0;f<p;f++){var H=M.scalefac_band.l[f],Me=(Ee=M.scalefac_band.l[f+1])-H;for(N=0;G<Ee;G++)N+=T.xr[G]*T.xr[G];N/=Me,F=1e15,M.pinfo.en[X][L][f]=F*N,M.pinfo.xfsf[X][L][f]=F*c[f]*K[f]/Me,D.en.l[f]>0&&!r.ATHonly?N/=D.en.l[f]:N=0,M.pinfo.thr[X][L][f]=F*Math.max(N*D.thm.l[f],M.ATH.l[f]),M.pinfo.LAMEsfb[X][L][f]=0,T.preflag!=0&&f>=11&&(M.pinfo.LAMEsfb[X][L][f]=-ce*kt[f]),f<u.SBPSY_l&&(St(W[f]>=0),M.pinfo.LAMEsfb[X][L][f]-=ce*W[f])}if(T.block_type==u.SHORT_TYPE)for(p=f,f=T.sfb_smin;f<u.SBMAX_s;f++){H=M.scalefac_band.s[f],Me=(Ee=M.scalefac_band.s[f+1])-H;for(var Ee,ve=0;ve<3;ve++){for(N=0,A=H;A<Ee;A++)N+=T.xr[G]*T.xr[G],G++;N=Math.max(N/Me,1e-20),F=1e15,M.pinfo.en_s[X][L][3*f+ve]=F*N,M.pinfo.xfsf_s[X][L][3*f+ve]=F*c[p]*K[p]/Me,D.en.s[f][ve]>0?N/=D.en.s[f][ve]:N=0,(r.ATHonly||r.ATHshort)&&(N=0),M.pinfo.thr_s[X][L][3*f+ve]=F*Math.max(N*D.thm.s[f][ve],M.ATH.s[f]),M.pinfo.LAMEsfb_s[X][L][3*f+ve]=-2*T.subblock_gain[ve],f<u.SBPSY_s&&(M.pinfo.LAMEsfb_s[X][L][3*f+ve]-=ce*W[p]
1),p++}}M.pinfo.LAMEqss[X][L]=T.global_gain,M.pinfo.LAMEmainbits[X][L]=T.part2_3_length+T.part2_length,M.pinfo.LAMEsfbits[X][L]=T.part2_length,M.pinfo.over[X][L]=oe.over_count,M.pinfo.max_noise[X][L]=10*oe.max_noise,M.pinfo.over_noise[X][L]=10*oe.over_noise,M.pinfo.tot_noise[X][L]=10*oe.tot_noise,M.pinfo.over_SSD[X][L]=oe.over_SSD}}ot.Q_MAX=257,ot.Q_MAX2=116,ot.LARGE_BITS=1e5,ot.IXMAX_VAL=8206;var ct=ot,Ct=P.System,jt=P.Arrays,va=P.new_int,sa=P.assert,pa=function Z(){var le=null;function Fe(L){this.bits=0|L}this.qupvt=null,this.setModules=function(L){this.qupvt=L,le=L};var Ce=[[0,0],[0,0],[0,0],[0,0],[0,0],[0,1],[1,1],[1,1],[1,2],[2,2],[2,3],[2,3],[3,4],[3,4],[3,4],[4,5],[4,5],[4,6],[5,6],[5,6],[5,7],[6,7],[6,7]];function st(L,f,p,A,N,F){var M=.5946/f;for(sa(L>0),L>>=1;L--!=0;)N[F++]=M>p[A++]?0:1,N[F++]=M>p[A++]?0:1}function Qe(L,f,p,A,N,F){sa(L>0);var M=(L>>=1)%2;for(L>>=1;L--!=0;){var ce,W,c,K,oe,G,H,Me;ce=p[A++]*f,W=p[A++]*f,oe=0|ce,c=p[A++]*f,G=0|W,K=p[A++]*f,H=0|c,ce+=le.adj43[oe],Me=0|K,W+=le.adj43[G],N[F++]=0|ce,c+=le.adj43[H],N[F++]=0|W,K+=le.adj43[Me],N[F++]=0|c,N[F++]=0|K}M!=0&&(oe=0|(ce=p[A++]*f),G=0|(W=p[A++]*f),ce+=le.adj43[oe],W+=le.adj43[G],N[F++]=0|ce,N[F++]=0|W)}var ze=[1,2,5,7,7,10,10,13,13,13,13,13,13,13,13];function kt(L,f,p,A){var N=(function(ce,W,c){var K=0,oe=0;do{var G=ce[W++],H=ce[W++];K<G&&(K=G),oe<H&&(oe=H)}while(W<c);return K<oe&&(K=oe),K})(L,f,p);switch(N){case 0:return N;case 1:return(function(ce,W,c,K){var oe=0,G=_.ht[1].hlen;do{var H=2*ce[W+0]+ce[W+1];W+=2,oe+=G[H]}while(W<c);return K.bits+=oe,1})(L,f,p,A);case 2:case 3:return(function(ce,W,c,K,oe){var G,H,Me=0,Ee=_.ht[K].xlen;H=K==2?_.table23:_.table56;do{var ve=ce[W+0]*Ee+ce[W+1];W+=2,Me+=H[ve]}while(W<c);return G=65535&Me,(Me>>=16)>G&&(Me=G,K++),oe.bits+=Me,K})(L,f,p,ze[N-1],A);case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:return(function(ce,W,c,K,oe){var G=0,H=0,Me=0,Ee=_.ht[K].xlen,ve=_.ht[K].hlen,Xe=_.ht[K+1].hlen,Re=_.ht[K+2].hlen;do{var Ie=ce[W+0]*Ee+ce[W+1];W+=2,G+=ve[Ie],H+=Xe[Ie],Me+=Re[Ie]}while(W<c);var gt=K;return G>H&&(G=H,gt++),G>Me&&(G=Me,gt=K+2),oe.bits+=G,gt})(L,f,p,ze[N-1],A);default:if(N>ct.IXMAX_VAL)return A.bits=ct.LARGE_BITS,-1;var F,M;for(N-=15,F=24;F<32&&!(_.ht[F].linmax>=N);F++);for(M=F-8;M<24&&!(_.ht[M].linmax>=N);M++);return(function(ce,W,c,K,oe,G){var H,Me=65536*_.ht[K].xlen+_.ht[oe].xlen,Ee=0;do{var ve=ce[W++],Xe=ce[W++];ve!=0&&(ve>14&&(ve=15,Ee+=Me),ve*=16),Xe!=0&&(Xe>14&&(Xe=15,Ee+=Me),ve+=Xe),Ee+=_.largetbl[ve]}while(W<c);return H=65535&Ee,(Ee>>=16)>H&&(Ee=H,K=oe),G.bits+=Ee,K})(L,f,p,M,F,A)}}function fe(L,f,p,A,N,F,M,ce){for(var W=f.big_values,c=2;c<u.SBMAX_l+1;c++){var K=L.scalefac_band.l[c];if(K>=W)break;var oe=N[c-2]+f.count1bits;if(p.part2_3_length<=oe)break;var G=new Fe(oe),H=kt(A,K,W,G);oe=G.bits,p.part2_3_length<=oe||(p.assign(f),p.part2_3_length=oe,p.region0_count=F[c-2],p.region1_count=c-2-F[c-2],p.table_select[0]=M[c-2],p.table_select[1]=ce[c-2],p.table_select[2]=H)}}this.noquant_count_bits=function(L,f,p){var A=f.l3_enc,N=Math.min(576,f.max_nonzero_coeff+2>>1<<1);for(p!=null&&(p.sfb_count1=0);N>1&&(A[N-1]|A[N-2])==0;N-=2);f.count1=N;for(var F=0,M=0;N>3;N-=4){var ce;if((2147483647&(A[N-1]|A[N-2]|A[N-3]|A[N-4]))>1)break;ce=2*(2*(2*A[N-4]+A[N-3])+A[N-2])+A[N-1],F+=_.t32l[ce],M+=_.t33l[ce]}var W=F;if(f.count1table_select=0,F>M&&(W=M,f.count1table_select=1),f.count1bits=W,f.big_values=N,N==0)return W;if(f.block_type==u.SHORT_TYPE)(F=3*L.scalefac_band.s[3])>f.big_values&&(F=f.big_values),M=f.big_values;else if(f.block_type==u.NORM_TYPE){if(sa(N<=576),F=f.region0_count=L.bv_scf[N-2],M=f.region1_count=L.bv_scf[N-1],sa(F+M+2<u.SBPSY_l),M=L.scalefac_band.l[F+M+2],F=L.scalefac_band.l[F+1],M<N){var c=new Fe(W);f.table_select[2]=kt(A,M,N,c),W=c.bits}}else f.region0_count=7,f.region1_count=u.SBMAX_l-1-7-1,(F=L.scalefac_band.l[8])>(M=N)&&(F=M);if(F=Math.min(F,N),M=Math.min(M,N),sa(F>=0),sa(M>=0),0<F&&(c=new Fe(W),f.table_select[0]=kt(A,0,F,c),W=c.bits),F<M&&(c=new Fe(W),f.table_select[1]=kt(A,F,M,
1c),W=c.bits),L.use_best_huffman==2&&(f.part2_3_length=W,best_huffman_divide(L,f),W=f.part2_3_length),p!=null&&f.block_type==u.NORM_TYPE){for(var K=0;L.scalefac_band.l[K]<f.big_values;)K++;p.sfb_count1=K}return W},this.count_bits=function(L,f,p,A){var N=p.l3_enc,F=ct.IXMAX_VAL/le.IPOW20(p.global_gain);if(p.xrpow_max>F)return ct.LARGE_BITS;if((function(G,H,Me,Ee,ve){var Xe,Re,Ie,gt=0,We=0,rt=0,Ot=0,ea=H,vt=0,It=ea,Ue=0,Zt=G,oa=0;for(Ie=ve!=null&&Ee.global_gain==ve.global_gain,Re=Ee.block_type==u.SHORT_TYPE?38:21,Xe=0;Xe<=Re;Xe++){var wa=-1;if((Ie||Ee.block_type==u.NORM_TYPE)&&(wa=Ee.global_gain-(Ee.scalefac[Xe]+(Ee.preflag!=0?le.pretab[Xe]:0)<<Ee.scalefac_scale+1)-8*Ee.subblock_gain[Ee.window[Xe]]),sa(Ee.width[Xe]>=0),Ie&&ve.step[Xe]==wa)We!=0&&(Qe(We,Me,Zt,oa,It,Ue),We=0),rt!=0&&(st(rt,Me,Zt,oa,It,Ue),rt=0);else{var Gt,Aa=Ee.width[Xe];if(gt+Ee.width[Xe]>Ee.max_nonzero_coeff&&(Gt=Ee.max_nonzero_coeff-gt+1,jt.fill(H,Ee.max_nonzero_coeff,576,0),(Aa=Gt)<0&&(Aa=0),Xe=Re+1),We==0&&rt==0&&(It=ea,Ue=vt,Zt=G,oa=Ot),ve!=null&&ve.sfb_count1>0&&Xe>=ve.sfb_count1&&ve.step[Xe]>0&&wa>=ve.step[Xe]?(We!=0&&(Qe(We,Me,Zt,oa,It,Ue),We=0,It=ea,Ue=vt,Zt=G,oa=Ot),rt+=Aa):(rt!=0&&(st(rt,Me,Zt,oa,It,Ue),rt=0,It=ea,Ue=vt,Zt=G,oa=Ot),We+=Aa),Aa<=0){rt!=0&&(st(rt,Me,Zt,oa,It,Ue),rt=0),We!=0&&(Qe(We,Me,Zt,oa,It,Ue),We=0);break}}Xe<=Re&&(vt+=Ee.width[Xe],Ot+=Ee.width[Xe],gt+=Ee.width[Xe])}We!=0&&(Qe(We,Me,Zt,oa,It,Ue),We=0),rt!=0&&(st(rt,Me,Zt,oa,It,Ue),rt=0)})(f,N,le.IPOW20(p.global_gain),p,A),(2&L.substep_shaping)!=0)for(var M=0,ce=p.global_gain+p.scalefac_scale,W=.634521682242439/le.IPOW20(ce),c=0;c<p.sfbmax;c++){var K,oe=p.width[c];if(sa(oe>=0),L.pseudohalf[c]==0)M+=oe;else for(K=M,M+=oe;K<M;++K)N[K]=f[K]>=W?N[K]:0}return this.noquant_count_bits(L,p,A)},this.best_huffman_divide=function(L,f){var p=new Kt,A=f.l3_enc,N=va(23),F=va(23),M=va(23),ce=va(23);if(f.block_type!=u.SHORT_TYPE||L.mode_gr!=1){p.assign(f),f.block_type==u.NORM_TYPE&&((function(H,Me,Ee,ve,Xe,Re,Ie){for(var gt=Me.big_values,We=0;We<=22;We++)ve[We]=ct.LARGE_BITS;for(We=0;We<16;We++){var rt=H.scalefac_band.l[We+1];if(rt>=gt)break;var Ot=0,ea=new Fe(Ot),vt=kt(Ee,0,rt,ea);Ot=ea.bits;for(var It=0;It<8;It++){var Ue=H.scalefac_band.l[We+It+2];if(Ue>=gt)break;var Zt=Ot,oa=kt(Ee,rt,Ue,ea=new Fe(Zt));Zt=ea.bits,ve[We+It]>Zt&&(ve[We+It]=Zt,Xe[We+It]=We,Re[We+It]=vt,Ie[We+It]=oa)}}})(L,f,A,N,F,M,ce),fe(L,p,f,A,N,F,M,ce));var W=p.big_values;if(!(W==0||(A[W-2]|A[W-1])>1||(W=f.count1+2)>576)){p.assign(f),p.count1=W;var c=0,K=0;for(sa(W<=576);W>p.big_values;W-=4){var oe=2*(2*(2*A[W-4]+A[W-3])+A[W-2])+A[W-1];c+=_.t32l[oe],K+=_.t33l[oe]}if(p.big_values=W,p.count1table_select=0,c>K&&(c=K,p.count1table_select=1),p.count1bits=c,p.block_type==u.NORM_TYPE)fe(L,p,f,A,N,F,M,ce);else{if(p.part2_3_length=c,(c=L.scalefac_band.l[8])>W&&(c=W),c>0){var G=new Fe(p.part2_3_length);p.table_select[0]=kt(A,0,c,G),p.part2_3_length=G.bits}W>c&&(G=new Fe(p.part2_3_length),p.table_select[1]=kt(A,c,W,G),p.part2_3_length=G.bits),f.part2_3_length>p.part2_3_length&&f.assign(p)}}}};var m=[1,1,1,1,8,2,2,2,4,4,4,8,8,8,16,16],w=[1,2,4,8,1,2,4,8,2,4,8,2,4,8,4,8],i=[0,0,0,0,3,1,1,1,2,2,2,3,3,3,4,4],re=[0,1,2,3,0,1,2,3,1,2,3,1,2,3,2,3];Z.slen1_tab=i,Z.slen2_tab=re,this.best_scalefac_store=function(L,f,p,A){var N,F,M,ce,W=A.tt[f][p],c=0;for(M=0,N=0;N<W.sfbmax;N++){var K=W.width[N];for(sa(K>=0),M+=K,ce=-K;ce<0&&W.l3_enc[ce+M]==0;ce++);ce==0&&(W.scalefac[N]=c=-2)}
1if(W.scalefac_scale==0&&W.preflag==0){var oe=0;for(N=0;N<W.sfbmax;N++)W.scalefac[N]>0&&(oe|=W.scalefac[N]);if((1&oe)==0&&oe!=0){for(N=0;N<W.sfbmax;N++)W.scalefac[N]>0&&(W.scalefac[N]>>=1);W.scalefac_scale=c=1}}if(W.preflag==0&&W.block_type!=u.SHORT_TYPE&&L.mode_gr==2){for(N=11;N<u.SBPSY_l&&!(W.scalefac[N]<le.pretab[N]&&W.scalefac[N]!=-2);N++);if(N==u.SBPSY_l){for(N=11;N<u.SBPSY_l;N++)W.scalefac[N]>0&&(W.scalefac[N]-=le.pretab[N]);W.preflag=c=1}}for(F=0;F<4;F++)A.scfsi[p][F]=0;for(L.mode_gr==2&&f==1&&A.tt[0][p].block_type!=u.SHORT_TYPE&&A.tt[1][p].block_type!=u.SHORT_TYPE&&((function(G,H){for(var Me,Ee=H.tt[1][G],ve=H.tt[0][G],Xe=0;Xe<_.scfsi_band.length-1;Xe++){for(Me=_.scfsi_band[Xe];Me<_.scfsi_band[Xe+1]&&!(ve.scalefac[Me]!=Ee.scalefac[Me]&&Ee.scalefac[Me]>=0);Me++);if(Me==_.scfsi_band[Xe+1]){for(Me=_.scfsi_band[Xe];Me<_.scfsi_band[Xe+1];Me++)Ee.scalefac[Me]=-1;H.scfsi[G][Xe]=1}}var Re=0,Ie=0;for(Me=0;Me<11;Me++)Ee.scalefac[Me]!=-1&&(Ie++,Re<Ee.scalefac[Me]&&(Re=Ee.scalefac[Me]));for(var gt=0,We=0;Me<u.SBPSY_l;Me++)Ee.scalefac[Me]!=-1&&(We++,gt<Ee.scalefac[Me]&&(gt=Ee.scalefac[Me]));for(Xe=0;Xe<16;Xe++)if(Re<m[Xe]&><w[Xe]){var rt=i[Xe]*Ie+re[Xe]*We;Ee.part2_length>rt&&(Ee.part2_length=rt,Ee.scalefac_compress=Xe)}})(p,A),c=0),N=0;N<W.sfbmax;N++)W.scalefac[N]==-2&&(W.scalefac[N]=0);c!=0&&(L.mode_gr==2?this.scale_bitcount(W):this.scale_bitcount_lsf(L,W))};var Se=[0,18,36,54,54,36,54,72,54,72,90,72,90,108,108,126],r=[0,18,36,54,51,35,53,71,52,70,88,69,87,105,104,122],T=[0,10,20,30,33,21,31,41,32,42,52,43,53,63,64,74];this.scale_bitcount=function(L){var f,p,A,N=0,F=0,M=L.scalefac;if(sa((function(ce,W){for(var c=0;c<W;++c)if(ce[c]<0)return!1;return!0})(M,L.sfbmax)),L.block_type==u.SHORT_TYPE)A=Se,L.mixed_block_flag!=0&&(A=r);else if(A=T,L.preflag==0){for(p=11;p<u.SBPSY_l&&!(M[p]<le.pretab[p]);p++);if(p==u.SBPSY_l)for(L.preflag=1,p=11;p<u.SBPSY_l;p++)M[p]-=le.pretab[p]}for(p=0;p<L.sfbdivide;p++)N<M[p]&&(N=M[p]);for(;p<L.sfbmax;p++)F<M[p]&&(F=M[p]);for(L.part2_length=ct.LARGE_BITS,f=0;f<16;f++)N<m[f]&&F<w[f]&&L.part2_length>A[f]&&(L.part2_length=A[f],L.scalefac_compress=f);return L.part2_length==ct.LARGE_BITS};var D=[[15,15,7,7],[15,15,7,0],[7,3,0,0],[15,31,31,0],[7,7,7,0],[3,3,0,0]];this.scale_bitcount_lsf=function(L,f){var p,A,N,F,M,ce,W,c,K=va(4),oe=f.scalefac;for(p=f.preflag!=0?2:0,W=0;W<4;W++)K[W]=0;if(f.block_type==u.SHORT_TYPE){A=1;var G=le.nr_of_sfb_block[p][A];for(c=0,N=0;N<4;N++)for(F=G[N]/3,W=0;W<F;W++,c++)for(M=0;M<3;M++)oe[3*c+M]>K[N]&&(K[N]=oe[3*c+M])}else for(A=0,G=le.nr_of_sfb_block[p][A],c=0,N=0;N<4;N++)for(F=G[N],W=0;W<F;W++,c++)oe[c]>K[N]&&(K[N]=oe[c]);for(ce=!1,N=0;N<4;N++)K[N]>D[p][N]&&(ce=!0);if(!ce){var H,Me,Ee,ve;for(f.sfb_partition_table=le.nr_of_sfb_block[p][A],N=0;N<4;N++)f.slen[N]=X[K[N]];switch(H=f.slen[0],Me=f.slen[1],Ee=f.slen[2],ve=f.slen[3],p){case 0:f.scalefac_compress=(5*H+Me<<4)+(Ee<<2)+ve;break;case 1:f.scalefac_compress=400+(5*H+Me<<2)+Ee;break;case 2:f.scalefac_compress=500+3*H+Me;break;default:Ct.err.printf("intensity stereo not implemented yet\n")}}if(!ce)for(sa(f.sfb_partition_table!=null),f.part2_length=0,N=0;N<4;N++)f.part2_length+=f.slen[N]*f.sfb_partition_table[N];return ce};var X=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4];this.huffman_init=function(L){for(var f=2;f<=576;f+=2){for(var p,A=0;L.scalefac_band.l[++A]<f;);for(p=Ce[A][0];L.scalefac_band.l[p+1]>f;)p--;for(p<0&&(p=Ce[A][0]),L.bv_scf[f-2]=p,p=Ce[A][1];L.scalefac_band.l[p+L.bv_scf[f-2]+2]>f;)p--;p<0&&(p=Ce[A][1]),L.bv_scf[f-1]=p}}},Ga=P.System,Hn=P.Arrays,fn=P.new_byte,In=P.new_float_n,Sn=P.new_int,na=P.assert;function Qa(){var Z=this,le=32773,Fe=32,Ce=null,st=null,Qe=null,ze=null;this.setModules=function(F,M,ce,W){Ce=F,st=M,Qe=ce,ze=W};var kt=null,fe=0,m=0,w=0;function i(F){Ga.arraycopy(F.header[F.w_ptr].buf,0,kt,m,F.sideinfo_len),m+=F.sideinfo_len,fe+=8*F.sideinfo_len,F.w_ptr=F.w_ptr+1&Pt.MAX_HEADER_BUF-1}function re(F,M,ce){for(na(ce<Fe-2);ce>0;){var W;w==0&&(w=8,na(++m<ya.LAME_MAXMP3BUFFER),na(F.header[F.w_ptr].write_timing>=fe),F.header[F.w_ptr].write_timing==fe&&i(F),kt[m]=0),W=Math.min(ce,w),w-=W,na((ce-=W)<Fe),na(w<Fe),kt[m]|=M>>ce<<w,fe+=W}}function Se(F,M,ce){for(na(ce<Fe-2);ce>0;){var W;w==0&&(w=8,na(++m<ya.LAME_MAXMP3BUFFER),kt[m]=0),W=Math.min(ce,w),w-=W,na((ce-=W)<Fe),na(w<Fe),kt[m]|=M>>ce<<w,fe+=W}}function r(F,M){var ce,W=F.internal_flags;if(na(M>=0),M>=8&&(re(W,76,8),M-=8),M>=8&&(re(W,65,8),M-=8),M>=8&&(re(W,77,8),M-=8),M>=8&&(re(W,69,8),M-=8),M>=32){var c=Qe.getLameShortVersion();if(M>=32)for(ce=0;ce<c.length&&M>=8;++ce)M-=8,re(W,c.charAt(ce),8)}for(;M>=1;M-=1)re(W,W.ancillary_flag,1),W.ancillary_flag^=F.disable_reservoir?0:1;na(M==0)}function T(F,M,ce){for(var W=F.header[F.h_ptr].ptr;ce>0;){var c=Math.min(ce,8-(7&W));na((ce-=c)<Fe),F.header[F.h_ptr].buf[W>>3]|=M>>ce<<8-(7&W)-c,W+=c}F.header[F.h_ptr].ptr=W}function D(F,M){F<<=8;for(var ce=0;ce<8;ce++)(65536&((M<<=1)^(F<<=1)))!=0&&(M^=le);return M}function X(F,M){var ce,W=_.ht[M.count1table_select+32],c=0,K=M.big_values,oe=M.big_values;for(na(M.count1table_select<2),ce=(M.count1-M.big_values)/4;ce>0;--ce){var G,H=0,Me=0;(G=M.l3_enc[K+0])!=0&&(Me+=8,M.xr[oe+0]<0&&H++,na(G<=1)),(G=M.l3_enc[K+1])!=0&&(Me+=4,H*=2,M.xr[oe+1]<0&&H++,na(G<=1)),(G=M.l3_enc[K+2])!=0&&(Me+=2,H*=2,M.xr[oe+2]<0&&H++,na(G<=1)),(G=M.l3_enc[K+3])!=0&&(Me++,H*=2,M.xr[oe+3]<0&&H++,na(G<=1)),K+=4,oe+=4,re(F,H+W.table[Me],W.hlen[Me]),c+=W.hlen[Me]}return c}function L(F,M,ce,W,c){var K=_.ht[M],oe=0;if(na(M<32),M==0)return oe;for(var G=ce;G<W;G+=2){var H=0,Me=0,Ee=K.xlen,ve=K.xlen,Xe=0,Re=c.l3_enc[G],Ie=c.l3_enc[G+1];if(Re!=0&&(c.xr[G]<0&&Xe++,H--),M>15){if(Re>14){var gt=Re-15;
1na(gt<=K.linmax),Xe|=gt<<1,Me=Ee,Re=15}if(Ie>14){var We=Ie-15;na(We<=K.linmax),Xe<<=Ee,Xe|=We,Me+=Ee,Ie=15}ve=16}Ie!=0&&(Xe<<=1,c.xr[G+1]<0&&Xe++,H--),na((Re|Ie)<16),Re=Re*ve+Ie,Me-=H,H+=K.hlen[Re],na(H<=Fe),na(Me<=Fe),re(F,K.table[Re],H),re(F,Xe,Me),oe+=H+Me}return oe}function f(F,M){var ce=3*F.scalefac_band.s[3];ce>M.big_values&&(ce=M.big_values);var W=L(F,M.table_select[0],0,ce,M);return W+=L(F,M.table_select[1],ce,M.big_values,M)}function p(F,M){var ce,W,c,K;ce=M.big_values,na(0<=ce&&ce<=576);var oe=M.region0_count+1;return na(0<=oe),na(oe<F.scalefac_band.l.length),c=F.scalefac_band.l[oe],oe+=M.region1_count+1,na(0<=oe),na(oe<F.scalefac_band.l.length),c>ce&&(c=ce),(K=F.scalefac_band.l[oe])>ce&&(K=ce),W=L(F,M.table_select[0],0,c,M),W+=L(F,M.table_select[1],c,K,M),W+=L(F,M.table_select[2],K,ce,M)}function A(){this.total=0}function N(F,M){var ce,W,c,K,oe,G=F.internal_flags;return oe=G.w_ptr,(K=G.h_ptr-1)==-1&&(K=Pt.MAX_HEADER_BUF-1),ce=G.header[K].write_timing-fe,M.total=ce,ce>=0&&(W=1+K-oe,K<oe&&(W=1+K-oe+Pt.MAX_HEADER_BUF),ce-=8*W*G.sideinfo_len),ce+=c=Z.getframebits(F),M.total+=c,M.total%8!=0?M.total=1+M.total/8:M.total=M.total/8,M.total+=m+1,ce<0&&Ga.err.println("strange error flushing buffer ... \n"),ce}this.getframebits=function(F){var M,ce=F.internal_flags;return M=ce.bitrate_index!=0?_.bitrate_table[F.version][ce.bitrate_index]:F.brate,na(8<=M&&M<=640),8*(0|72e3*(
1F.version+1)*M/F.out_samplerate+ce.padding)},this.CRC_writeheader=function(F,M){var ce=65535;ce=D(255&M[2],ce),ce=D(255&M[3],ce);for(var W=6;W<F.sideinfo_len;W++)ce=D(255&M[W],ce);M[4]=byte(ce>>8),M[5]=byte(255&ce)},this.flush_bitstream=function(F){var M,ce,W=F.internal_flags,c=W.h_ptr-1;if(c==-1&&(c=Pt.MAX_HEADER_BUF-1),M=W.l3_side,!((ce=N(F,new A))<0)){if(r(F,ce),na(W.header[c].write_timing+this.getframebits(F)==fe),W.ResvSize=0,M.main_data_begin=0,W.findReplayGain){var K=Ce.GetTitleGain(W.rgdata);na(NEQ(K,Nn.GAIN_NOT_ENOUGH_SAMPLES)),W.RadioGain=0|Math.floor(10*K+.5)}W.findPeakSample&&(W.noclipGainChange=0|Math.ceil(20*Math.log10(W.PeakSample/32767)*10),W.noclipGainChange>0&&(EQ(F.scale,1)||EQ(F.scale,0))?W.noclipScale=Math.floor(32767/W.PeakSample*100)/100:W.noclipScale=-1)}},this.add_dummy_byte=function(F,M,ce){for(var W,c=F.internal_flags;ce-- >0;)for(Se(0,M,8),W=0;W<Pt.MAX_HEADER_BUF;++W)c.header[W].write_timing+=8},this.format_bitstream=function(F){var M,ce=F.internal_flags;M=ce.l3_side;var W=this.getframebits(F);r(F,M.resvDrain_pre),(function(oe,G){var H,Me,Ee,ve=oe.internal_flags;if(H=ve.l3_side,ve.header[ve.h_ptr].ptr=0,Hn.fill(ve.header[ve.h_ptr].buf,0,ve.sideinfo_len,0),oe.out_samplerate<16e3?T(ve,4094,12):T(ve,4095,12),T(ve,oe.version,1),T(ve,1,2),T(ve,oe.error_protection?0:1,1),T(ve,ve.bitrate_index,4),T(ve,ve.samplerate_index,2),T(ve,ve.padding,1),T(ve,oe.extension,1),T(ve,oe.mode.ordinal(),2),T(ve,ve.mode_ext,2),T(ve,oe.copyright,1),T(ve,oe.original,1),T(ve,oe.emphasis,2),oe.error_protection&&T(ve,0,16),oe.version==1){for(na(H.main_data_begin>=0),T(ve,H.main_data_begin,9),ve.channels_out==2?T(ve,H.private_bits,3):T(ve,H.private_bits,5),Ee=0;Ee<ve.channels_out;Ee++){var Xe;for(Xe=0;Xe<4;Xe++)T(ve,H.scfsi[Ee][Xe],1)}for(Me=0;Me<2;Me++)for(Ee=0;Ee<ve.channels_out;Ee++)T(ve,(Re=H.tt[Me][Ee]).part2_3_length+Re.part2_length,12),T(ve,Re.big_values/2,9),T(ve,Re.global_gain,8),T(ve,Re.scalefac_compress,4),Re.block_type!=u.NORM_TYPE?(T(ve,1,1),T(ve,Re.block_type,2),T(ve,Re.mixed_block_flag,1),Re.table_select[0]==14&&(Re.table_select[0]=16),T(ve,Re.table_select[0],5),Re.table_select[1]==14&&(Re.table_select[1]=16),T(ve,Re.table_select[1],5),T(ve,Re.subblock_gain[0],3),T(ve,Re.subblock_gain[1],3),T(ve,Re.subblock_gain[2],3)):(T(ve,0,1),Re.table_select[0]==14&&(Re.table_select[0]=16),T(ve,Re.table_select[0],5),Re.table_select[1]==14&&(Re.table_select[1]=16),T(ve,Re.table_select[1],5),Re.table_select[2]==14&&(Re.table_select[2]=16),T(ve,Re.table_select[2],5),na(0<=Re.region0_count&&Re.region0_count<16),na(0<=Re.region1_count&&Re.region1_count<8),T(ve,Re.region0_count,4),T(ve,Re.region1_count,3)),T(ve,Re.preflag,1),T(ve,Re.scalefac_scale,1),T(ve,Re.count1table_select,1)}else for(na(H.main_data_begin>=0),T(ve,H.main_data_begin,8),T(ve,H.private_bits,ve.channels_out),Me=0,Ee=0;Ee<ve.channels_out;Ee++){var Re;T(ve,(Re=H.tt[Me][Ee]).part2_3_length+Re.part2_length,12),T(ve,Re.big_values/2,9),T(ve,Re.global_gain,8),T(ve,Re.scalefac_compress,9),Re.block_type!=u.NORM_TYPE?(T(ve,1,1),T(ve,Re.block_type,2),T(ve,Re.mixed_block_flag,1),Re.table_select[0]==14&&(Re.table_select[0]=16),T(ve,Re.table_select[0],5),Re.table_select[1]==14&&(Re.table_select[1]=16),T(ve,Re.table_select[1],5),T(ve,Re.subblock_gain[0],3),T(ve,Re.subblock_gain[1],3),T(ve,Re.subblock_gain[2],3)):(T(ve,0,1),Re.table_select[0]==14&&(Re.table_select[0]=16),T(ve,Re.table_select[0],5),Re.table_select[1]==14&&(Re.table_select[1]=16),T(ve,Re.table_select[1],5),Re.table_select[2]==14&&(Re.table_select[2]=16),T(ve,Re.table_select[2],5),na(0<=Re.region0_count&&Re.region0_count<16),na(0<=Re.region1_count&&Re.region1_count<8),T(ve,Re.region0_count,4),T(ve,Re.region1_count,3)),T(ve,Re.scalefac_scale,1),T(ve,Re.count1table_select,1)}oe.error_protection&&CRC_writeheader(ve,ve.header[ve.h_ptr].buf);var Ie=ve.h_ptr;na(ve.header[Ie].ptr==8*ve.sideinfo_len),ve.h_ptr=Ie+1&Pt.MAX_HEADER_BUF-1,ve.header[ve.h_ptr].write_timing=ve.header[Ie].write_timing+G,ve.h_ptr==ve.w_ptr&&Ga.err.println("Error: MAX_HEADER_BUF too small in bitstream.c \n")})(F,W);var c=8*ce.sideinfo_len;if(c+=(function(oe){var G,H,Me,Ee,ve=0,Xe=oe.internal_flags,Re=Xe.l3_side;if(oe.version==1)for(G=0;G<2;G++)for(H=0;H<Xe.channels_out;H++){var Ie=Re.tt[G][H],gt=pa.slen1_tab[Ie.scalefac_compress],We=pa.slen2_tab[Ie.scalefac_compress];for(Ee=0,Me=0;Me<Ie.sfbdivide;Me++)Ie.scalefac[Me]!=-1&&(re(Xe,Ie.scalefac[Me],gt),Ee+=gt);for(;Me<Ie.sfbmax;Me++)Ie.scalefac[Me]!=-1&&(re(Xe,Ie.scalefac[Me],We),Ee+=We);na(Ee==Ie.part2_length),Ie.block_type==u.SHORT_TYPE?Ee+=f(Xe,Ie):Ee+=p(Xe,Ie),Ee+=X(Xe,Ie),na(Ee==Ie.part2_3_length+Ie.part2_length),ve+=Ee}else for(G=0,H=0;H<Xe.channels_out;H++){Ie=Re.tt[G][H];var rt,Ot,ea=0;if(na(Ie.sfb_partition_table!=null),Ee=0,Me=0,Ot=0,Ie.block_type==u.SHORT_TYPE){for(;Ot<4;Ot++){var vt=Ie.sfb_partition_table[Ot]/3,It=Ie.slen[Ot];for(rt=0;rt<vt;rt++,Me++)re(Xe,Math.max(Ie.scalefac[3*Me+0],0),It),re(Xe,Math.max(Ie.scalefac[3*Me+1],0),It),re(Xe,Math.max(Ie.scalefac[3*Me+2],0),It),ea+=3*It}Ee+=f(Xe,Ie)}else{for(;Ot<4;Ot++)for(vt=Ie.sfb_partition_table[Ot],It=Ie.slen[Ot],rt=0;rt<vt;rt++,Me++)re(Xe,Math.max(Ie.scalefac[Me],0),It),ea+=It;Ee+=p(Xe,Ie)}Ee+=X(Xe,Ie),na(Ee==Ie.part2_3_length),na(ea==Ie.part2_length),ve+=ea+Ee}return ve})(F),r(F,M.resvDrain_post),c+=M.resvDrain_post,M.main_data_begin+=(W-c)/8,N(F,new A)!=ce.ResvSize&&Ga.err.println("Internal buffer inconsistency. flushbits <> ResvSize"),8*M.main_data_begin!=ce.ResvSize&&(Ga.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size: %d \nresv drain (post) %d \nresv drain (pre) %d \nheader and sideinfo: %d \ndata bits: %d \ntotal bits: %d (remainder: %d) \nbitsperframe: %d \n",8*M.main_data_begin,ce.ResvSize,M.resvDrain_post,M.resvDrain_pre,8*ce.sideinfo_len,c-M.resvDrain_post-8*ce.sideinfo_len,c,c%8,W),Ga.err.println("This is a fatal error. It has several possible causes:"),Ga.err.println("90%% LAME compiled with buggy version of gcc using advanced optimizations"),Ga.err.println(" 9%% Your system is overclocked"),Ga.err.println(" 1%% bug in LAME encoding library"),ce.ResvSize=8*M.main_data_begin),na(fe%8==0),fe>1e9){var K;for(K=0;K<Pt.MAX_HEADER_BUF;++K)ce.header[K].write_timing-=fe;fe=0}return 0},this.copy_buffer=function(F,M,ce,W,c){var K=m+1;
1if(K<=0)return 0;if(W!=0&&K>W)return-1;if(Ga.arraycopy(kt,0,M,ce,K),m=-1,w=0,c!=0){var oe=Sn(1);if(oe[0]=F.nMusicCRC,ze.updateMusicCRC(oe,M,ce,K),F.nMusicCRC=oe[0],K>0&&(F.VBR_seek_table.nBytesWritten+=K),F.decode_on_the_fly){for(var G,H=In([2,1152]),Me=K,Ee=-1;Ee!=0;)if(Ee=st.hip_decode1_unclipped(F.hip,M,ce,Me,H[0],H[1]),Me=0,Ee==-1&&(Ee=0),Ee>0){if(na(Ee<=1152),F.findPeakSample){for(G=0;G<Ee;G++)H[0][G]>F.PeakSample?F.PeakSample=H[0][G]:-H[0][G]>F.PeakSample&&(F.PeakSample=-H[0][G]);if(F.channels_out>1)for(G=0;G<Ee;G++)H[1][G]>F.PeakSample?F.PeakSample=H[1][G]:-H[1][G]>F.PeakSample&&(F.PeakSample=-H[1][G])}if(F.findReplayGain&&Ce.AnalyzeSamples(F.rgdata,H[0],0,H[1],0,Ee,F.channels_out)==Nn.GAIN_ANALYSIS_ERROR)return-6}}}return K},this.init_bit_stream_w=function(F){kt=fn(ya.LAME_MAXMP3BUFFER),F.h_ptr=F.w_ptr=0,F.header[F.h_ptr].write_timing=0,m=-1,w=0,fe=0}}Qa.EQ=function(Z,le){return Math.abs(Z)>Math.abs(le)?Math.abs(Z-le)<=1e-6*Math.abs(Z):Math.abs(Z-le)<=1e-6*Math.abs(le)},Qa.NEQ=function(Z,le){return!Qa.EQ(Z,le)};var Ya=Qa,En=P.System,ma=P.VbrMode,an=P.ShortBlock,An=P.new_float,Ei=P.new_int_n,Do=P.new_short_n,Ja=P.assert,Po=function Z(){var le=this;Z.V9=410,Z.V8=420,Z.V7=430,Z.V6=440,Z.V5=450,Z.V4=460,Z.V3=470,Z.V2=480,Z.V1=490,Z.V0=500,Z.R3MIX=1e3,Z.STANDARD=1001,Z.EXTREME=1002,Z.INSANE=1003,Z.STANDARD_FAST=1004,Z.EXTREME_FAST=1005,Z.MEDIUM=1006,Z.MEDIUM_FAST=1007;var Fe,Ce,st,Qe,ze;Z.LAME_MAXMP3BUFFER=147456;var kt,fe,m,w=new xe;function i(){this.mask_adjust=0,this.mask_adjust_short=0,this.bo_l_weight=An(u.SBMAX_l),this.bo_s_weight=An(u.SBMAX_s)}function re(){this.lowerlimit=0}function Se(c,K){this.lowpass=K}this.enc=new u,this.setModules=function(c,K,oe,G,H,Me,Ee,ve,Xe){Fe=c,Ce=K,st=oe,Qe=G,ze=H,kt=Me,fe=ve,m=Xe,this.enc.setModules(Ce,w,Qe,kt)};var r=4294479419;function T(c){return c>1?0:c<=0?1:Math.cos(Math.PI/2*c)}function D(c,K){switch(c){case 44100:return K.version=1,0;case 48e3:return K.version=1,1;case 32e3:return K.version=1,2;case 22050:return K.version=0,0;case 24e3:return K.version=0,1;case 16e3:return K.version=0,2;case 11025:return K.version=0,0;case 12e3:return K.version=0,1;case 8e3:return K.version=0,2;default:return K.version=0,-1}}function X(c,K,oe){oe<16e3&&(K=2);for(var G=_.bitrate_table[K][1],H=2;H<=14;H++)_.bitrate_table[K][H]>0&&Math.abs(_.bitrate_table[K][H]-c)<Math.abs(G-c)&&(G=_.bitrate_table[K][H]);return G}function L(c,K,oe){oe<16e3&&(K=2);for(var G=0;G<=14;G++)if(_.bitrate_table[K][G]>0&&_.bitrate_table[K][G]==c)return G;return-1}function f(c,K){var oe=[new Se(8,2e3),new Se(16,3700),new Se(24,3900),new Se(32,5500),new Se(40,7e3),new Se(48,7500),new Se(56,1e4),new Se(64,11e3),new Se(80,13500),new Se(96,15100),new Se(112,15600),new Se(128,17e3),new Se(160,17500),new Se(192,18600),new Se(224,19400),new Se(256,19700),new Se(320,20500)],G=le.nearestBitrateFullIndex(K);c.lowerlimit=oe[G].lowpass}function p(c){var K=u.BLKSIZE+c.framesize-u.FFTOFFSET;return K=Math.max(K,512+c.framesize-32),Ja(Pt.MFSIZE>=K),K}function A(c,K,oe,G,H,Me){var Ee=le.enc.lame_encode_mp3_frame(c,K,oe,G,H,Me);return c.frameNum++,Ee}function N(){this.n_in=0,this.n_out=0}function F(){this.num_used=0}function M(c,K,oe){var G=Math.PI*K;(c/=oe)<0&&(c=0),c>1&&(c=1);var H=c-.5,Me=.42-.5*Math.cos(2*c*Math.PI)+.08*Math.cos(4*c*Math.PI);return Math.abs(H)<1e-9?G/Math.PI:Me*Math.sin(oe*G*H)/(Math.PI*oe*H)}function ce(c,K,oe,G,H,Me,Ee,ve,Xe){var Re,Ie,gt=c.internal_flags,We=0,rt=c.out_samplerate/(function Ta(ae,de){return de!=0?Ta(de,ae%de):ae})(c.out_samplerate,c.in_samplerate);rt>Pt.BPC&&(rt=Pt.BPC);var Ot=Math.abs(gt.resample_ratio-Math.floor(.5+gt.resample_ratio))<1e-4?1:0,ea=1/gt.resample_ratio;ea>1&&(ea=1);var vt=31;vt%2==0&&--vt;var It=(vt+=Ot)+1;if(gt.fill_buffer_resample_init==0){for(gt.inbuf_old[0]=An(It),gt.inbuf_old[1]=An(It),Re=0;Re<=2*rt;++Re)gt.blackfilt[Re]=An(It);for(gt.itime[0]=0,gt.itime[1]=0,We=0;We<=2*rt;We++){var Ue=0,Zt=(We-rt)/(2*rt);for(Re=0;Re<=vt;Re++)Ue+=gt.blackfilt[We][Re]=M(Re-Zt,ea,vt);for(Re=0;Re<=vt;Re++)gt.blackfilt[We][Re]/=Ue}gt.fill_buffer_resample_init=1}var oa=gt.inbuf_old[Xe];for(Ie=0;Ie<G;Ie++){var wa,Gt;if(wa=Ie*gt.resample_ratio,vt+(We=0|Math.floor(wa-gt.itime[Xe]))-vt/2>=Ee)break;Zt=wa-gt.itime[Xe]-(We+vt%2*.5),Ja(Math.abs(Zt)<=.501),Gt=0|Math.floor(2*Zt*rt+rt+.5);var Aa=0;for(Re=0;Re<=vt;++Re){var Ma=Re+We-vt/2;Ja(Ma<Ee),Ja(Ma+It>=0),Aa+=(Ma<0?oa[It+Ma]:H[Me+Ma])*gt.blackfilt[Gt][Re]}K[oe+Ie]=Aa}
1if(ve.num_used=Math.min(Ee,vt+We-vt/2),gt.itime[Xe]+=ve.num_used-Ie*gt.resample_ratio,ve.num_used>=It)for(Re=0;Re<It;Re++)oa[Re]=H[Me+ve.num_used+Re-It];else{var Ca=It-ve.num_used;for(Re=0;Re<Ca;++Re)oa[Re]=oa[Re+ve.num_used];for(We=0;Re<It;++Re,++We)oa[Re]=H[Me+We];Ja(We==ve.num_used)}return Ie}function W(c,K,oe,G,H,Me){var Ee=c.internal_flags;if(Ee.resample_ratio<.9999||Ee.resample_ratio>1.0001)for(var ve=0;ve<Ee.channels_out;ve++){var Xe=new F;Me.n_out=ce(c,K[ve],Ee.mf_size,c.framesize,oe[ve],G,H,Xe,ve),Me.n_in=Xe.num_used}else{Me.n_out=Math.min(c.framesize,H),Me.n_in=Me.n_out;for(var Re=0;Re<Me.n_out;++Re)K[0][Ee.mf_size+Re]=oe[0][G+Re],Ee.channels_out==2&&(K[1][Ee.mf_size+Re]=oe[1][G+Re])}}this.lame_init=function(){var c=new ke;return(function(K){var oe;return K.class_id=r,oe=K.internal_flags=new Pt,K.mode=Ka.NOT_SET,K.original=1,K.in_samplerate=44100,K.num_channels=2,K.num_samples=-1,K.bWriteVbrTag=!0,K.quality=-1,K.short_blocks=null,oe.subblock_gain=-1,K.lowpassfreq=0,K.highpassfreq=0,K.lowpasswidth=-1,K.highpasswidth=-1,K.VBR=ma.vbr_off,K.VBR_q=4,K.ATHcurve=-1,K.VBR_mean_bitrate_kbps=128,K.VBR_min_bitrate_kbps=0,K.VBR_max_bitrate_kbps=0,K.VBR_hard_min=0,oe.VBR_min_bitrate=1,oe.VBR_max_bitrate=13,K.quant_comp=-1,K.quant_comp_short=-1,K.msfix=-1,oe.resample_ratio=1,oe.OldValue[0]=180,oe.OldValue[1]=180,oe.CurrentStep[0]=4,oe.CurrentStep[1]=4,oe.masking_lower=1,oe.nsPsy.attackthre=-1,oe.nsPsy.attackthre_s=-1,K.scale=-1,K.athaa_type=-1,K.ATHtype=-1,K.athaa_loudapprox=-1,K.athaa_sensitivity=0,K.useTemporal=null,K.interChRatio=-1,oe.mf_samples_to_encode=u.ENCDELAY+u.POSTDELAY,K.encoder_padding=0,oe.mf_size=u.ENCDELAY-u.MDCTDELAY,K.findReplayGain=!1,K.decode_on_the_fly=!1,oe.decode_on_the_fly=!1,oe.findReplayGain=!1,oe.findPeakSample=!1,oe.RadioGain=0,oe.AudiophileGain=0,oe.noclipGainChange=0,oe.noclipScale=-1,K.preset=0,K.write_id3tag_automatic=!0,0})(c)!=0?null:(c.lame_allocated_gfp=1,c)},this.nearestBitrateFullIndex=function(c){var K=[8,16,24,32,40,48,56,64,80,96,112,128,160,192,224,256,320],oe=0,G=0,H=0,Me=0;Me=K[16],H=16,G=K[16],oe=16;for(var Ee=0;Ee<16;Ee++)if(Math.max(c,K[Ee+1])!=c){Me=K[Ee+1],H=Ee+1,G=K[Ee],oe=Ee;break}return Me-c>c-G?oe:H},this.lame_init_params=function(c){var K,oe,G,H=c.internal_flags;if(H.Class_ID=0,H.ATH==null&&(H.ATH=new ga),H.PSY==null&&(H.PSY=new i),H.rgdata==null&&(H.rgdata=new B),H.channels_in=c.num_channels,H.channels_in==1&&(c.mode=Ka.MONO),H.channels_out=c.mode==Ka.MONO?1:2,H.mode_ext=u.MPG_MD_MS_LR,c.mode==Ka.MONO&&(c.force_ms=!1),c.VBR==ma.vbr_off&&c.VBR_mean_bitrate_kbps!=128&&c.brate==0&&(c.brate=c.VBR_mean_bitrate_kbps),c.VBR==ma.vbr_off||c.VBR==ma.vbr_mtrh||c.VBR==ma.vbr_mt||(c.free_format=!1),c.VBR==ma.vbr_off&&c.brate==0&&Ya.EQ(c.compression_ratio,0)&&(c.compression_ratio=11.025),c.VBR==ma.vbr_off&&c.compression_ratio>0&&(c.out_samplerate==0&&(c.out_samplerate=map2MP3Frequency(int(.97*c.in_samplerate))),c.brate=0|16*c.out_samplerate*H.channels_out/(1e3*c.compression_ratio),H.samplerate_index=D(c.out_samplerate,c),c.free_format||(c.brate=X(c.brate,c.version,c.out_samplerate))),c.out_samplerate!=0&&(c.out_samplerate<16e3?(c.VBR_mean_bitrate_kbps=Math.max(c.VBR_mean_bitrate_kbps,8),c.VBR_mean_bitrate_kbps=Math.min(c.VBR_mean_bitrate_kbps,64)):c.out_samplerate<32e3?(c.VBR_mean_bitrate_kbps=Math.max(c.VBR_mean_bitrate_kbps,8),c.VBR_mean_bitrate_kbps=Math.min(c.VBR_mean_bitrate_kbps,160)):(c.VBR_mean_bitrate_kbps=Math.max(c.VBR_mean_bitrate_kbps,32),c.VBR_mean_bitrate_kbps=Math.min(c.VBR_mean_bitrate_kbps,320))),c.lowpassfreq==0){var Me=16e3;switch(c.VBR){case ma.vbr_off:f(Ee=new re,c.brate),Me=Ee.lowerlimit;break;case ma.vbr_abr:var Ee;f(Ee=new re,c.VBR_mean_bitrate_kbps),Me=Ee.lowerlimit;break;case ma.vbr_rh:var ve=[19500,19e3,18600,18e3,17500,16e3,15600,14900,12500,1e4,3950];if(0<=c.VBR_q&&c.VBR_q<=9){var Xe=ve[c.VBR_q],Re=ve[c.VBR_q+1],Ie=c.VBR_q_frac;Me=linear_int(Xe,Re,Ie)}else Me=19500;break;
1default:ve=[19500,19e3,18500,18e3,17500,16500,15500,14500,12500,9500,3950],0<=c.VBR_q&&c.VBR_q<=9?(Xe=ve[c.VBR_q],Re=ve[c.VBR_q+1],Ie=c.VBR_q_frac,Me=linear_int(Xe,Re,Ie)):Me=19500}c.mode!=Ka.MONO||c.VBR!=ma.vbr_off&&c.VBR!=ma.vbr_abr||(Me*=1.5),c.lowpassfreq=0|Me}if(c.out_samplerate==0&&(2*c.lowpassfreq>c.in_samplerate&&(c.lowpassfreq=c.in_samplerate/2),c.out_samplerate=(K=0|c.lowpassfreq,oe=c.in_samplerate,G=44100,oe>=48e3?G=48e3:oe>=44100?G=44100:oe>=32e3?G=32e3:oe>=24e3?G=24e3:oe>=22050?G=22050:oe>=16e3?G=16e3:oe>=12e3?G=12e3:oe>=11025?G=11025:oe>=8e3&&(G=8e3),K==-1?G:(K<=15960&&(G=44100),K<=15250&&(G=32e3),K<=11220&&(G=24e3),K<=9970&&(G=22050),K<=7230&&(G=16e3),K<=5420&&(G=12e3),K<=4510&&(G=11025),K<=3970&&(G=8e3),oe<G?oe>44100?48e3:oe>32e3?44100:oe>24e3?32e3:oe>22050?24e3:oe>16e3?22050:oe>12e3?16e3:oe>11025?12e3:oe>8e3?11025:8e3:G))),c.lowpassfreq=Math.min(20500,c.lowpassfreq),c.lowpassfreq=Math.min(c.out_samplerate/2,c.lowpassfreq),c.VBR==ma.vbr_off&&(c.compression_ratio=16*c.out_samplerate*H.channels_out/(1e3*c.brate)),c.VBR==ma.vbr_abr&&(c.compression_ratio=16*c.out_samplerate*H.channels_out/(1e3*c.VBR_mean_bitrate_kbps)),c.bWriteVbrTag||(c.findReplayGain=!1,c.decode_on_the_fly=!1,H.findPeakSample=!1),H.findReplayGain=c.findReplayGain,H.decode_on_the_fly=c.decode_on_the_fly,H.decode_on_the_fly&&(H.findPeakSample=!0),H.findReplayGain&&Fe.InitGainAnalysis(H.rgdata,c.out_samplerate)==Nn.INIT_GAIN_ANALYSIS_ERROR)return c.internal_flags=null,-6;switch(H.decode_on_the_fly&&!c.decode_only&&(H.hip!=null&&m.hip_decode_exit(H.hip),H.hip=m.hip_decode_init()),H.mode_gr=c.out_samplerate<=24e3?1:2,c.framesize=576*H.mode_gr,c.encoder_delay=u.ENCDELAY,H.resample_ratio=c.in_samplerate/c.out_samplerate,c.VBR){case ma.vbr_mt:case ma.vbr_rh:case ma.vbr_mtrh:c.compression_ratio=[5.7,6.5,7.3,8.2,10,11.9,13,14,15,16.5][c.VBR_q];break;case ma.vbr_abr:c.compression_ratio=16*c.out_samplerate*H.channels_out/(1e3*c.VBR_mean_bitrate_kbps);break;default:c.compression_ratio=16*c.out_samplerate*H.channels_out/(1e3*c.brate)}if(c.mode==Ka.NOT_SET&&(c.mode=Ka.JOINT_STEREO),c.highpassfreq>0?(H.highpass1=2*c.highpassfreq,c.highpasswidth>=0?H.highpass2=2*(c.highpassfreq+c.highpasswidth):H.highpass2=2*c.highpassfreq,H.highpass1/=c.out_samplerate,H.highpass2/=c.out_samplerate):(H.highpass1=0,H.highpass2=0),c.lowpassfreq>0?(H.lowpass2=2*c.lowpassfreq,c.lowpasswidth>=0?(H.lowpass1=2*(c.lowpassfreq-c.lowpasswidth),H.lowpass1<0&&(H.lowpass1=0)):H.lowpass1=2*c.lowpassfreq,H.lowpass1/=c.out_samplerate,H.lowpass2/=c.out_samplerate):(H.lowpass1=0,H.lowpass2=0),(function(It){var Ue=It.internal_flags,Zt=32,oa=-1;if(Ue.lowpass1>0){for(var wa=999,Gt=0;Gt<=31;Gt++)(Ta=Gt/31)>=Ue.lowpass2&&(Zt=Math.min(Zt,Gt)),Ue.lowpass1<Ta&&Ta<Ue.lowpass2&&(wa=Math.min(wa,Gt));Ue.lowpass1=wa==999?(Zt-.75)/31:(wa-.75)/31,Ue.lowpass2=Zt/31}if(Ue.highpass2>0&&Ue.highpass2<.75/31*.9&&(Ue.highpass1=0,Ue.highpass2=0,En.err.println("Warning: highpass filter disabled. highpass frequency too small\n")),Ue.highpass2>0){var Aa=-1;for(Gt=0;Gt<=31;Gt++)(Ta=Gt/31)<=Ue.highpass1&&(oa=Math.max(oa,Gt)),Ue.highpass1<Ta&&Ta<Ue.highpass2&&(Aa=Math.max(Aa,Gt));Ue.highpass1=oa/31,Ue.highpass2=Aa==-1?(oa+.75)/31:(Aa+.75)/31}for(Gt=0;Gt<32;Gt++){var Ma,Ca,Ta=Gt/31;Ma=Ue.highpass2>Ue.highpass1?T((Ue.highpass2-Ta)/(Ue.highpass2-Ue.highpass1+1e-20)):1,Ca=Ue.lowpass2>Ue.lowpass1?T((Ta-Ue.lowpass1)/(Ue.lowpass2-Ue.lowpass1+1e-20)):1,Ue.amp_filter[Gt]=Ma*Ca}})(c),H.samplerate_index=D(c.out_samplerate,c),H.samplerate_index<0)return c.internal_flags=null,-1;if(c.VBR==ma.vbr_off){if(c.free_format)H.bitrate_index=0;else if(c.brate=X(c.brate,c.version,c.out_samplerate),H.bitrate_index=L(c.brate,c.version,c.out_samplerate),H.bitrate_index<=0)return c.internal_flags=null,-1}else H.bitrate_index=1;c.analysis&&(c.bWriteVbrTag=!1),H.pinfo!=null&&(c.bWriteVbrTag=!1),Ce.init_bit_stream_w(H);for(var gt,We=H.samplerate_index+3*c.version+6*(c.out_samplerate<16e3?1:0),rt=0;rt<u.SBMAX_l+1;rt++)H.scalefac_band.l[rt]=Qe.sfBandIndex[We].l[rt];for(rt=0;rt<u.PSFB21+1;rt++){var Ot=(H.scalefac_band.l[22]-H.scalefac_band.l[21])/u.PSFB21,ea=H.scalefac_band.l[21]+rt*Ot;H.scalefac_band.psfb21[rt]=ea}for(H.scalefac_band.psfb21[u.PSFB21]=576,rt=0;rt<u.SBMAX_s+1;rt++)H.scalefac_band.s[rt]=Qe.sfBandIndex[We].s[rt];for(rt=0;rt<u.PSFB12+1;rt++)Ot=(H.scalefac_band.s[13]-H.scalefac_band.s[12])/u.PSFB12,ea=H.scalefac_band.s[12]+rt*Ot,H.scalefac_band.psfb12[rt]=ea;for(H.scalefac_band.psfb12[u.PSFB12]=192,c.version==1?H.sideinfo_len=H.channels_out==1?21:36:H.sideinfo_len=H.channels_out==1?13:21,c.error_protection&&(H.sideinfo_len+=2),(function(It){var Ue=It.internal_flags;It.frameNum=0,It.write_id3tag_automatic&&fe.id3tag_write_v2(It),Ue.bitrate_stereoMode_Hist=Ei([16,5]),Ue.bitrate_blockType_Hist=Ei([16,6]),Ue.PeakSample=0,It.bWriteVbrTag&&kt.InitVbrTag(It)})(c),H.Class_ID=r,gt=0;gt<19;gt++)H.nsPsy.pefirbuf[gt]=700*H.mode_gr*H.channels_out;switch(c.ATHtype==-1&&(c.ATHtype=4),Ja(c.VBR_q<=9),Ja(c.VBR_q>=0),c.VBR){case ma.vbr_mt:c.VBR=ma.vbr_mtrh;case ma.vbr_mtrh:c.useTemporal==null&&(c.useTemporal=!1),st.apply_preset(c,500-10*c.VBR_q,0),c.quality<0&&(c.qual
1ity=LAME_DEFAULT_QUALITY),c.quality<5&&(c.quality=0),c.quality>5&&(c.quality=5),H.PSY.mask_adjust=c.maskingadjust,H.PSY.mask_adjust_short=c.maskingadjust_short,c.experimentalY?H.sfb21_extra=!1:H.sfb21_extra=c.out_samplerate>44e3,H.iteration_loop=new VBRNewIterationLoop(ze);break;case ma.vbr_rh:st.apply_preset(c,500-10*c.VBR_q,0),H.PSY.mask_adjust=c.maskingadjust,H.PSY.mask_adjust_short=c.maskingadjust_short,c.experimentalY?H.sfb21_extra=!1:H.sfb21_extra=c.out_samplerate>44e3,c.quality>6&&(c.quality=6),c.quality<0&&(c.quality=LAME_DEFAULT_QUALITY),H.iteration_loop=new VBROldIterationLoop(ze);break;default:var vt;H.sfb21_extra=!1,c.quality<0&&(c.quality=LAME_DEFAULT_QUALITY),(vt=c.VBR)==ma.vbr_off&&(c.VBR_mean_bitrate_kbps=c.brate),st.apply_preset(c,c.VBR_mean_bitrate_kbps,0),c.VBR=vt,H.PSY.mask_adjust=c.maskingadjust,H.PSY.mask_adjust_short=c.maskingadjust_short,vt==ma.vbr_off?H.iteration_loop=new ee(ze):H.iteration_loop=new ABRIterationLoop(ze)}if(Ja(c.scale>=0),c.VBR!=ma.vbr_off){if(H.VBR_min_bitrate=1,H.VBR_max_bitrate=14,c.out_samplerate<16e3&&(H.VBR_max_bitrate=8),c.VBR_min_bitrate_kbps!=0&&(c.VBR_min_bitrate_kbps=X(c.VBR_min_bitrate_kbps,c.version,c.out_samplerate),H.VBR_min_bitrate=L(c.VBR_min_bitrate_kbps,c.version,c.out_samplerate),H.VBR_min_bitrate<0)||c.VBR_max_bitrate_kbps!=0&&(c.VBR_max_bitrate_kbps=X(c.VBR_max_bitrate_kbps,c.version,c.out_samplerate),H.VBR_max_bitrate=L(c.VBR_max_bitrate_kbps,c.version,c.out_samplerate),H.VBR_max_bitrate<0))return-1;c.VBR_min_bitrate_kbps=_.bitrate_table[c.version][H.VBR_min_bitrate],c.VBR_max_bitrate_kbps=_.bitrate_table[c.version][H.VBR_max_bitrate],c.VBR_mean_bitrate_kbps=Math.min(_.bitrate_table[c.version][H.VBR_max_bitrate],c.VBR_mean_bitrate_kbps),c.VBR_mean_bitrate_kbps=Math.max(_.bitrate_table[c.version][H.VBR_min_bitrate],c.VBR_mean_bitrate_kbps)}return c.tune&&(H.PSY.mask_adjust+=c.tune_value_a,H.PSY.mask_adjust_short+=c.tune_value_a),(function(It){var Ue=It.internal_flags;switch(It.quality){default:case 9:Ue.psymodel=0,Ue.noise_shaping=0,Ue.noise_shaping_amp=0,Ue.noise_shaping_stop=0,Ue.use_best_huffman=0,Ue.full_outer_loop=0;break;case 8:It.quality=7;case 7:Ue.psymodel=1,Ue.noise_shaping=0,Ue.noise_shaping_amp=0,Ue.noise_shaping_stop=0,Ue.use_best_huffman=0,Ue.full_outer_loop=0;break;case 6:case 5:Ue.psymodel=1,Ue.noise_shaping==0&&(Ue.noise_shaping=1),Ue.noise_shaping_amp=0,Ue.noise_shaping_stop=0,Ue.subblock_gain==-1&&(Ue.subblock_gain=1),Ue.use_best_huffman=0,Ue.full_outer_loop=0;break;case 4:Ue.psymodel=1,Ue.noise_shaping==0&&(Ue.noise_shaping=1),Ue.noise_shaping_amp=0,Ue.noise_shaping_stop=0,Ue.subblock_gain==-1&&(Ue.subblock_gain=1),Ue.use_best_huffman=1,Ue.full_outer_loop=0;break;case 3:Ue.psymodel=1,Ue.noise_shaping==0&&(Ue.noise_shaping=1),Ue.noise_shaping_amp=1,Ue.noise_shaping_stop=1,Ue.subblock_gain==-1&&(Ue.subblock_gain=1),Ue.use_best_huffman=1,Ue.full_outer_loop=0;break;case 2:Ue.psymodel=1,Ue.noise_shaping==0&&(Ue.noise_shaping=1),Ue.substep_shaping==0&&(Ue.substep_shaping=2),Ue.noise_shaping_amp=1,Ue.noise_shaping_stop=1,Ue.subblock_gain==-1&&(Ue.subblock_gain=1),Ue.use_best_huffman=1,Ue.full_outer_loop=0;break;case 1:case 0:Ue.psymodel=1,Ue.noise_shaping==0&&(Ue.noise_shaping=1),Ue.substep_shaping==0&&(Ue.substep_shaping=2),Ue.noise_shaping_amp=2,Ue.noise_shaping_stop=1,Ue.subblock_gain==-1&&(Ue.subblock_gain=1),Ue.use_best_huffman=1,Ue.full_outer_loop=0}})(c),Ja(c.scale>=0),c.athaa_type<0?H.ATH.useAdjust=3:H.ATH.useAdjust=c.athaa_type,H.ATH.aaSensitivityP=Math.pow(10,c.athaa_sensitivity/-10),c.short_blocks==null&&(c.short_blocks=an.short_block_allowed),c.short_blocks!=an.short_block_allowed||c.mode!=Ka.JOINT_STEREO&&c.mode!=Ka.STEREO||(c.short_blocks=an.short_block_coupled),c.quant_comp<0&&(c.quant_comp=1),c.quant_comp_short<0&&(c.quant_comp_short=0),c.msfix<0&&(c.msfix=0),c.exp_nspsytune=1|c.exp_nspsytune,c.internal_flags.nsPsy.attackthre<0&&(c.internal_flags.nsPsy.attackthre=xe.NSATTACKTHRE),c.internal_flags.nsPsy.attackthre_s<0&&(c.internal_flags.nsPsy.attackthre_s=xe.NSATTACKTHRE_S),Ja(c.scale>=0),c.scale<0&&(c.scale=1),c.ATHtype<0&&(c.ATHtype=4),c.ATHcurve<0&&(c.ATHcurve=4),c.athaa_loudapprox<0&&(c.athaa_loudapprox=2),c.interChRatio<0&&(c.interChRatio=0),c.useTemporal==null&&(c.useTemporal=!0),H.slot_lag=H.frac_SpF=0,c.VBR==ma.vbr_off&&(H.slot_lag=H.frac_SpF=72e3*(c.version+1)*c.brate%c.out_samplerate|0),Qe.iteration_init(c),w.psymodel_init(c),Ja(c.scale>=0),0},this.lame_encode_flush=function(c,K,oe,G){var H,Me,Ee,ve,Xe=c.internal_flags,Re=Do([2,1152]),Ie=0,gt=Xe.mf_samples_to_encode-u.POSTDELAY,We=p(c);if(Xe.mf_samples_to_encode<1)return 0;for(H=0,c.in_samplerate!=c.out_samplerate&&(gt+=16*c.out_samplerate/c.in_samplerate),(Ee=c.framesize-gt%c.framesize)<576&&(Ee+=c.framesize),c.encoder_padding=Ee,ve=(gt+Ee)/c.framesize;ve>0&&Ie>=0;){var rt=We-Xe.mf_size,Ot=c.frameNum;rt*=c.in_samplerate,(rt/=c.out_samplerate)>1152&&(rt=1152),rt<1&&(rt=1),Me=G-H,G==0&&(Me=0),oe+=Ie=this.lame_encode_buffer(c,Re[0],Re[1],rt,K,oe,Me),H+=Ie,ve-=Ot!=c.frameNum?1:0}if(Xe.mf_samples_to_encode=0,Ie<0||(Me=G-H,G==0&&(Me=0),Ce.flush_bitstream(c),(Ie=Ce.copy_buffer(Xe,K,oe,Me,1))<0))return Ie;if(oe+=Ie,Me=G-(H+=Ie),G==0&&(Me=0),c.write_id3tag_automatic){if(fe.id3tag_write_v1(c),(Ie=Ce.copy_buffer(Xe,K,oe,Me,0))<0)return Ie;H+=Ie}return H},this.lame_encode_buffer=function(c,K,oe,G,H,Me,Ee){var ve=c.internal_flags,Xe=[null,
1null];if(ve.Class_ID!=r)return-3;if(G==0)return 0;(function(Ie,gt){(Ie.in_buffer_0==null||Ie.in_buffer_nsamples<gt)&&(Ie.in_buffer_0=An(gt),Ie.in_buffer_1=An(gt),Ie.in_buffer_nsamples=gt)})(ve,G),Xe[0]=ve.in_buffer_0,Xe[1]=ve.in_buffer_1;for(var Re=0;Re<G;Re++)Xe[0][Re]=K[Re],ve.channels_in>1&&(Xe[1][Re]=oe[Re]);return(function(Ie,gt,We,rt,Ot,ea,vt){var It,Ue,Zt,oa,wa,Gt=Ie.internal_flags,Aa=0,Ma=[null,null],Ca=[null,null];if(Gt.Class_ID!=r)return-3;if(rt==0)return 0;if((wa=Ce.copy_buffer(Gt,Ot,ea,vt,0))<0)return wa;if(ea+=wa,Aa+=wa,Ca[0]=gt,Ca[1]=We,Ya.NEQ(Ie.scale,0)&&Ya.NEQ(Ie.scale,1))for(Ue=0;Ue<rt;++Ue)Ca[0][Ue]*=Ie.scale,Gt.channels_out==2&&(Ca[1][Ue]*=Ie.scale);if(Ya.NEQ(Ie.scale_left,0)&&Ya.NEQ(Ie.scale_left,1))for(Ue=0;Ue<rt;++Ue)Ca[0][Ue]*=Ie.scale_left;if(Ya.NEQ(Ie.scale_right,0)&&Ya.NEQ(Ie.scale_right,1))for(Ue=0;Ue<rt;++Ue)Ca[1][Ue]*=Ie.scale_right;if(Ie.num_channels==2&&Gt.channels_out==1)for(Ue=0;Ue<rt;++Ue)Ca[0][Ue]=.5*(Ca[0][Ue]+Ca[1][Ue]),Ca[1][Ue]=0;oa=p(Ie),Ma[0]=Gt.mfbuf[0],Ma[1]=Gt.mfbuf[1];for(var Ta=0;rt>0;){var ae=[null,null],de=0,tt=0;ae[0]=Ca[0],ae[1]=Ca[1];var se=new N;if(W(Ie,Ma,ae,Ta,rt,se),de=se.n_in,tt=se.n_out,Gt.findReplayGain&&!Gt.decode_on_the_fly&&Fe.AnalyzeSamples(Gt.rgdata,Ma[0],Gt.mf_size,Ma[1],Gt.mf_size,tt,Gt.channels_out)==Nn.GAIN_ANALYSIS_ERROR)return-6;if(rt-=de,Ta+=de,Gt.channels_out,Gt.mf_size+=tt,Ja(Gt.mf_size<=Pt.MFSIZE),Gt.mf_samples_to_encode<1&&(Gt.mf_samples_to_encode=u.ENCDELAY+u.POSTDELAY),Gt.mf_samples_to_encode+=tt,Gt.mf_size>=oa){var Je=vt-Aa;if(vt==0&&(Je=0),(It=A(Ie,Ma[0],Ma[1],Ot,ea,Je))<0)return It;for(ea+=It,Aa+=It,Gt.mf_size-=Ie.framesize,Gt.mf_samples_to_encode-=Ie.framesize,Zt=0;Zt<Gt.channels_out;Zt++)for(Ue=0;Ue<Gt.mf_size;Ue++)Ma[Zt][Ue]=Ma[Zt][Ue+Ie.framesize]}}return Ja(rt==0),Aa})(c,Xe[0],Xe[1],G,H,Me,Ee)}},on=P.VbrMode,xo=function(){function Z(fe,m,w,i,re,Se,r,T,D,X,L,f,p,A,N){this.vbr_q=fe,this.quant_comp=m,this.quant_comp_s=w,this.expY=i,this.st_lrm=re,this.st_s=Se,this.masking_adj=r,this.masking_adj_short=T,this.ath_lower=D,this.ath_curve=X,this.ath_sensitivity=L,this.interch=f,this.safejoint=p,this.sfb21mod=A,this.msfix=N}function le(fe,m,w,i,re,Se,r,T,D,X,L,f,p,A){this.quant_comp=m,this.quant_comp_s=w,this.safejoint=i,this.nsmsfix=re,this.st_lrm=Se,this.st_s=r,this.nsbass=T,this.scale=D,this.masking_adj=X,this.ath_lower=L,this.ath_curve=f,this.interch=p,this.sfscale=A}var Fe;this.setModules=function(fe){Fe=fe};var Ce=[new Z(0,9,9,0,5.2,125,-4.2,-6.3,4.8,1,0,0,2,21,.97),new Z(1,9,9,0,5.3,125,-3.6,-5.6,4.5,1.5,0,0,2,21,1.35),new Z(2,9,9,0,5.6,125,-2.2,-3.5,2.8,2,0,0,2,21,1.49),new Z(3,9,9,1,5.8,130,-1.8,-2.8,2.6,3,-4,0,2,20,1.64),new Z(4,9,9,1,6,135,-.7,-1.1,1.1,3.5,-8,0,2,0,1.79),new Z(5,9,9,1,6.4,140,.5,.4,-7.5,4,-12,2e-4,0,0,1.95),new Z(6,9,9,1,6.6,145,.67,.65,-14.7,6.5,-19,4e-4,0,0,2.3),new Z(7,9,9,1,6.6,145,.8,.75,-19.7,8,-22,6e-4,0,0,2.7),new Z(8,9,9,1,6.6,145,1.2,1.15,-27.5,10,-23,7e-4,0,0,0),new Z(9,9,9,1,6.6,145,1.6,1.6,-36,11,-25,8e-4,0,0,0),new Z(10,9,9,1,6.6,145,2,2,-36,12,-25,8e-4,0,0,0)],st=[new Z(0,9,9,0,4.2,25,-7,-4,7.5,1,0,0,2,26,.97),new Z(1,9,9,0,4.2,25,-5.6,-3.6,4.5,1.5,0,0,2,21,1.35),new Z(2,9,9,0,4.2,25,-4.4,-1.8,2,2,0,0,2,18,1.49),new Z(3,9,9,1,4.2,25,-3.4,-1.25,1.1,3,-4,0,2,15,1.64),new Z(4,9,9,1,4.2,25,-2.2,.1,0,3.5,-8,0,2,0,1.79),new Z(5,9,9,1,4.2,25,-1,1.65,-7.7,4,-12,2e-4,0,0,1.95),new Z(6,9,9,1,4.2,25,-0,2.47,-7.7,6.5,-19,4e-4,0,0,2),new Z(7,9,9,1,4.2,25,.5,2,-14.5,8,-22,6e-4,0,0,2),new Z(8,9,9,1,4.2,25,1,2.4,-22,10,-23,7e-4,0,0,2),new Z(9,9,9,1,4.2,25,1.5,2.95,-30,11,-25,8e-4,0,0,2),new Z(10,9,9,1,4.2,25,2,2.95,-36,12,-30,8e-4,0,0,2)];function Qe(fe,m,w){var i=fe.VBR==on.vbr_rh?Ce:st,re=fe.VBR_q_frac,Se=i[m],r=i[m+1],T=Se;Se.st_lrm=Se.st_lrm+re*(r.st_lrm-Se.st_lrm),Se.st_s=Se.st_s+re*(r.st_s-Se.st_s),Se.masking_adj=Se.masking_adj+re*(r.masking_adj-Se.masking_adj),Se.masking_adj_short=Se.masking_adj_short+re*(r.masking_adj_short-Se.masking_adj_short),Se.ath_lower=Se.ath_lower+re*(r.ath_lower-Se.ath_lower),Se.ath_curve=Se.ath_curve+re*(r.ath_curve-Se.ath_curve),Se.ath_sensitivity=Se.ath_sensitivity+re*(r.ath_sensitivity-Se.ath_sensitivity),Se.interch=Se.interch+re*(r.interch-Se.interch),Se.msfix=Se.msfix+re*(r.msfix-Se.msfix),(function(D,X){0>X&&(X=0),9<X&&(X=9),D.VBR_q=X,D.VBR_q_frac=0})(fe,T.vbr_q),w!=0?fe.quant_comp=T.quant_comp:Math.abs(fe.quant_comp- -1)>0||(fe.quant_comp=T.quant_comp),w!=0?fe.quant_comp_short=T.quant_comp_s:Math.abs(fe.quant_comp_short- -1)>0||(fe.quant_comp_short=T.quant_comp_s),T.expY!=0&&(fe.experimentalY=T.expY!=0),w!=0?fe.internal_flags.nsPsy.attackthre=T.st_lrm:Math.abs(fe.internal_flags.nsPsy.attackthre- -1)>0||(fe.internal_flags.nsPsy.attackthre=T.st_lrm),w!=0?fe.internal_flags.nsPsy.attackthre_s=T.st_s:Math.abs(fe.internal_flags.nsPsy.attackthre_s- -1)>0||(fe.internal_flags.nsPsy.attackthre_s=T.st_s),w!=0?fe.maskingadjust=T.masking_adj:Math.abs(fe.maskingadjust-0)>0||(fe.maskingadjust=T.masking_adj),w!=0?fe.maskingadjust_short=T.masking_adj_short:Math.abs(fe.maskingadjust_short-0)>0||(fe.maskingadjust_short=T.masking_adj_short),w!=0?fe.ATHlower=-T.ath_lower/10:Math.abs(10*-fe.ATHlower-0)>0||(fe.ATHlower=-T.ath_lower/10),w!=0?fe.ATHcurve=T.ath_curve:Math.abs(fe.ATHcurve- -1)>0||(fe.ATHcurve=T.ath_curve),w!=0?fe.athaa_sensitivity=T.ath_sensitivity:Math.abs(fe.athaa_sensitivity- -1)>0||(fe.athaa_sensitivity=T.ath_sensitivity),T.interch>0&&(w!=0?fe.interChRatio=T.interch:Math.abs(fe.interChRatio- -1)>0||(fe.interChRatio=T.interch)),T.safejoint>0&&(fe.exp_nspsytune=fe.exp_nspsytune|T.safejoint),T.sfb21mod>0&&(fe.exp_nspsytune=fe.exp_nspsytune|T.sfb21mod<<20),w!=0?fe.msfix=T.msfix:Math.abs(fe.msfix- -1)>0||(fe.msfix=T.msfix),w==0&&(fe.VBR_q=m,fe.VBR_q_frac=re)}var ze=[new le(8,9,9,0,0,6.6,145,0,.95,0,-30,11,.0012,1),new le(16,9,9,0,0,6.6,145,0,.95,0,-25,11,.001,1),new le(24,9,9,0,0,6.6,145,0,.95,0,-20,11,.001,1),new le(32,9,9,0,0,6.6,145,0,.95,0,-15,11,.001,1),new le(40,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new le(48,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new le(56,9,9,0,0,6.6,145,0,.95,0,-6,11,8e-4,1),new le(64,9,9,0,0,6.6,145,0,.95,0,-2,11,8e-4,1),new le(80,9,9,0,0,6.6,145,0,.95,0,0,8,7e-4,1),new le(96,9,9,0,2.5,6.6,145,0,.95,0,1,5.5,6e-4,1),new le(112,9,9,0,2.25,6.6,145,0,.95,0,2,4.5,5e-4,1),new le(128,9,9,0,1.95,6.4,140,0,.95,0,3,4,2e-4,1),new le(160,9,9,1,1.79,6,135,
10,.95,-2,5,3.5,0,1),new le(192,9,9,1,1.49,5.6,125,0,.97,-4,7,3,0,0),new le(224,9,9,1,1.25,5.2,125,0,.98,-6,9,2,0,0),new le(256,9,9,1,.97,5.2,125,0,1,-8,10,1,0,0),new le(320,9,9,1,.9,5.2,125,0,1,-10,12,0,0,0)];function kt(fe,m,w){var i=m,re=Fe.nearestBitrateFullIndex(m);if(fe.VBR=on.vbr_abr,fe.VBR_mean_bitrate_kbps=i,fe.VBR_mean_bitrate_kbps=Math.min(fe.VBR_mean_bitrate_kbps,320),fe.VBR_mean_bitrate_kbps=Math.max(fe.VBR_mean_bitrate_kbps,8),fe.brate=fe.VBR_mean_bitrate_kbps,fe.VBR_mean_bitrate_kbps>320&&(fe.disable_reservoir=!0),ze[re].safejoint>0&&(fe.exp_nspsytune=2|fe.exp_nspsytune),ze[re].sfscale>0&&(fe.internal_flags.noise_shaping=2),Math.abs(ze[re].nsbass)>0){var Se=int(4*ze[re].nsbass);Se<0&&(Se+=64),fe.exp_nspsytune=fe.exp_nspsytune|Se<<2}return w!=0?fe.quant_comp=ze[re].quant_comp:Math.abs(fe.quant_comp- -1)>0||(fe.quant_comp=ze[re].quant_comp),w!=0?fe.quant_comp_short=ze[re].quant_comp_s:Math.abs(fe.quant_comp_short- -1)>0||(fe.quant_comp_short=ze[re].quant_comp_s),w!=0?fe.msfix=ze[re].nsmsfix:Math.abs(fe.msfix- -1)>0||(fe.msfix=ze[re].nsmsfix),w!=0?fe.internal_flags.nsPsy.attackthre=ze[re].st_lrm:Math.abs(fe.internal_flags.nsPsy.attackthre- -1)>0||(fe.internal_flags.nsPsy.attackthre=ze[re].st_lrm),w!=0?fe.internal_flags.nsPsy.attackthre_s=ze[re].st_s:Math.abs(fe.internal_flags.nsPsy.attackthre_s- -1)>0||(fe.internal_flags.nsPsy.attackthre_s=ze[re].st_s),w!=0?fe.scale=ze[re].scale:Math.abs(fe.scale- -1)>0||(fe.scale=ze[re].scale),w!=0?fe.maskingadjust=ze[re].masking_adj:Math.abs(fe.maskingadjust-0)>0||(fe.maskingadjust=ze[re].masking_adj),ze[re].masking_adj>0?w!=0?fe.maskingadjust_short=.9*ze[re].masking_adj:Math.abs(fe.maskingadjust_short-0)>0||(fe.maskingadjust_short=.9*ze[re].masking_adj):w!=0?fe.maskingadjust_short=1.1*ze[re].masking_adj:Math.abs(fe.maskingadjust_short-0)>0||(fe.maskingadjust_short=1.1*ze[re].masking_adj),w!=0?fe.ATHlower=-ze[re].ath_lower/10:Math.abs(10*-fe.ATHlower-0)>0||(fe.ATHlower=-ze[re].ath_lower/10),w!=0?fe.ATHcurve=ze[re].ath_curve:Math.abs(fe.ATHcurve- -1)>0||(fe.ATHcurve=ze[re].ath_curve),w!=0?fe.interChRatio=ze[re].interch:Math.abs(fe.interChRatio- -1)>0||(fe.interChRatio=ze[re].interch),m}this.apply_preset=function(fe,m,w){switch(m){case ya.R3MIX:m=ya.V3,fe.VBR=on.vbr_mtrh;break;case ya.MEDIUM:m=ya.V4,fe.VBR=on.vbr_rh;break;case ya.MEDIUM_FAST:m=ya.V4,fe.VBR=on.vbr_mtrh;break;case ya.STANDARD:m=ya.V2,fe.VBR=on.vbr_rh;break;case ya.STANDARD_FAST:m=ya.V2,fe.VBR=on.vbr_mtrh;break;case ya.EXTREME:m=ya.V0,fe.VBR=on.vbr_rh;break;case ya.EXTREME_FAST:m=ya.V0,fe.VBR=on.vbr_mtrh;break;case ya.INSANE:return m=320,fe.preset=m,kt(fe,m,w),fe.VBR=on.vbr_off,m}switch(fe.preset=m,m){case ya.V9:return Qe(fe,9,w),m;case ya.V8:return Qe(fe,8,w),m;case ya.V7:return Qe(fe,7,w),m;case ya.V6:return Qe(fe,6,w),m;case ya.V5:return Qe(fe,5,w),m;case ya.V4:return Qe(fe,4,w),m;case ya.V3:return Qe(fe,3,w),m;case ya.V2:return Qe(fe,2,w),m;case ya.V1:return Qe(fe,1,w),m;case ya.V0:return Qe(fe,0,w),m}return 8<=m&&m<=320?kt(fe,m,w):(fe.preset=0,m)}},Ho=function(){this.setModules=function(Z,le){}},Wn=function(){this.over_noise=0,this.tot_noise=0,this.max_noise=0,this.over_count=0,this.over_SSD=0,this.bits=0},Ai=P.new_float,Uo=P.new_int,Vo=function(){this.global_gain=0,this.sfb_count1=0,this.step=Uo(39),this.noise=Ai(39),this.noise_log=Ai(39)},bn=P.System,Ti=P.VbrMode,qn=P.Util,Mn=P.Arrays,Ln=P.new_float,tn=P.assert,Ko=function(){var Z,le,Fe;this.rv=null,this.qupvt=null;var Ce,st=new Ho;function Qe(m){this.ordinal=m}function ze(m){for(var w=0;w<m.sfbmax;w++)if(m.scalefac[w]+m.subblock_gain[m.window[w]]==0)return!1;return!0}function kt(m,w,i,re,Se){var r;switch(m){default:case 9:w.over_count>0?(r=i.over_SSD<=w.over_SSD,i.over_SSD==w.over_SSD&&(r=i.bits<w.bits)):r=i.max_noise<0&&10*i.max_noise+i.bits<=10*w.max_noise+w.bits;break;case 0:r=i.over_count<w.over_count||i.over_count==w.over_count&&i.over_noise<w.over_noise||i.over_count==w.over_count&&un.EQ(i.over_noise,w.over_noise)&&i.tot_noise<w.tot_noise;break;case 8:i.max_noise=(function(T,D){for(var X,L=1e-37,f=0;f<D.psymax;f++)L+=(X=T[f],qn.FAST_LOG10(.368+.632*X*X*X));return Math.max(1e-20,L)})(Se,re);
1case 1:r=i.max_noise<w.max_noise;break;case 2:r=i.tot_noise<w.tot_noise;break;case 3:r=i.tot_noise<w.tot_noise&&i.max_noise<w.max_noise;break;case 4:r=i.max_noise<=0&&w.max_noise>.2||i.max_noise<=0&&w.max_noise<0&&w.max_noise>i.max_noise-.2&&i.tot_noise<w.tot_noise||i.max_noise<=0&&w.max_noise>0&&w.max_noise>i.max_noise-.2&&i.tot_noise<w.tot_noise+w.over_noise||i.max_noise>0&&w.max_noise>-.05&&w.max_noise>i.max_noise-.1&&i.tot_noise+i.over_noise<w.tot_noise+w.over_noise||i.max_noise>0&&w.max_noise>-.1&&w.max_noise>i.max_noise-.15&&i.tot_noise+i.over_noise+i.over_noise<w.tot_noise+w.over_noise+w.over_noise;break;case 5:r=i.over_noise<w.over_noise||un.EQ(i.over_noise,w.over_noise)&&i.tot_noise<w.tot_noise;break;case 6:r=i.over_noise<w.over_noise||un.EQ(i.over_noise,w.over_noise)&&(i.max_noise<w.max_noise||un.EQ(i.max_noise,w.max_noise)&&i.tot_noise<=w.tot_noise);break;case 7:r=i.over_count<w.over_count||i.over_noise<w.over_noise}return w.over_count==0&&(r=r&&i.bits<w.bits),r}function fe(m,w,i,re,Se){var r=m.internal_flags;(function(D,X,L,f,p){var A,N=D.internal_flags;A=X.scalefac_scale==0?1.2968395546510096:1.6817928305074292;for(var F=0,M=0;M<X.sfbmax;M++)F<L[M]&&(F=L[M]);var ce=N.noise_shaping_amp;switch(ce==3&&(ce=p?2:1),ce){case 2:break;case 1:F>1?F=Math.pow(F,.5):F*=.95;break;case 0:default:F>1?F=1:F*=.95}var W=0;for(M=0;M<X.sfbmax;M++){var c,K=X.width[M];if(W+=K,!(L[M]<F)){if((2&N.substep_shaping)!=0&&(N.pseudohalf[M]=N.pseudohalf[M]==0?1:0,N.pseudohalf[M]==0&&N.noise_shaping_amp==2))return;for(X.scalefac[M]++,c=-K;c<0;c++)f[W+c]*=A,f[W+c]>X.xrpow_max&&(X.xrpow_max=f[W+c]);if(N.noise_shaping_amp==2)return}}})(m,w,i,re,Se);var T=ze(w);return!(T||(T=r.mode_gr==2?Ce.scale_bitcount(w):Ce.scale_bitcount_lsf(r,w))&&(r.noise_shaping>1&&(Mn.fill(r.pseudohalf,0),w.scalefac_scale==0?((function(D,X){for(var L=0,f=0;f<D.sfbmax;f++){var p=D.width[f],A=D.scalefac[f];if(D.preflag!=0&&(A+=Fe.pretab[f]),L+=p,(1&A)!=0){A++;for(var N=-p;N<0;N++)X[L+N]*=1.2968395546510096,X[L+N]>D.xrpow_max&&(D.xrpow_max=X[L+N])}D.scalefac[f]=A>>1}D.preflag=0,D.scalefac_scale=1})(w,re),T=!1):w.block_type==u.SHORT_TYPE&&r.subblock_gain>0&&(T=(function(D,X,L){var f,p=X.scalefac;for(f=0;f<X.sfb_lmax;f++)if(p[f]>=16)return!0;for(var A=0;A<3;A++){var N=0,F=0;for(f=X.sfb_lmax+A;f<X.sfbdivide;f+=3)N<p[f]&&(N=p[f]);for(;f<X.sfbmax;f+=3)F<p[f]&&(F=p[f]);if(!(N<16&&F<8)){if(X.subblock_gain[A]>=7)return!0;X.subblock_gain[A]++;var M=D.scalefac_band.l[X.sfb_lmax];for(f=X.sfb_lmax+A;f<X.sfbmax;f+=3){var ce=X.width[f],W=p[f];if(tn(W>=0),(W-=4>>X.scalefac_scale)>=0)p[f]=W,M+=3*ce;else{p[f]=0;var c=210+(W<<X.scalefac_scale+1);oe=Fe.IPOW20(c),M+=ce*(A+1);for(var K=-ce;K<0;K++)L[M+K]*=oe,L[M+K]>X.xrpow_max&&(X.xrpow_max=L[M+K]);M+=ce*(3-A-1)}}var oe=Fe.IPOW20(202);for(M+=X.width[f]*(A+1),K=-X.width[f];K<0;K++)L[M+K]*=oe,L[M+K]>X.xrpow_max&&(X.xrpow_max=L[M+K])}}return!1})(r,w,re)||ze(w))),T||(T=r.mode_gr==2?Ce.scale_bitcount(w):Ce.scale_bitcount_lsf(r,w)),T))}this.setModules=function(m,w,i,re){Z=m,le=w,this.rv=w,Fe=i,this.qupvt=i,Ce=re,st.setModules(Fe,Ce)},this.ms_convert=function(m,w){for(var i=0;i<576;++i){var re=m.tt[w][0].xr[i],Se=m.tt[w][1].xr[i];m.tt[w][0].xr[i]=(re+Se)*(.5*qn.SQRT2),m.tt[w][1].xr[i]=(re-Se)*(.5*qn.SQRT2)}},this.init_xrpow=function(m,w,i){var re=0,Se=0|w.max_nonzero_coeff;if(tn(i!=null),w.xrpow_max=0,tn(0<=Se&&Se<=575),Mn.fill(i,Se,576,0),(re=(function(D,X,L,f){f=0;for(var p=0;p<=L;++p){var A=Math.abs(D.xr[p]);f+=A,X[p]=Math.sqrt(A*Math.sqrt(A)),X[p]>D.xrpow_max&&(D.xrpow_max=X[p])}return f})(w,i,Se,re))>1e-20){var r=0;(2&m.substep_shaping)!=0&&(r=1);for(var T=0;T<w.psymax;T++)m.pseudohalf[T]=r;return!0}return Mn.fill(w.l3_enc,0,576,0),!1},this.init_outer_loop=function(m,w){w.part2_3_length=0,w.big_values=0,w.count1=0,w.global_gain=210,w.scalefac_compress=0,w.table_select[0]=0,w.table_select[1]=0,w.table_select[2]=0,w.subblock_gain[0]=0,w.subblock_gain[1]=0,w.subblock_gain[2]=0,w.subblock_gain[3]=0,w.region0_count=0,w.region1_count=0,w.preflag=0,w.scalefac_scale=0,w.count1table_select=0,w.part2_length=0,w.sfb_lmax=u.SBPSY_l,w.sfb_smin=u.SBPSY_s,w.psy_lmax=m.sfb21_extra?u.SBMAX_l:u.SBPSY_l,w.psymax=w.psy_lmax,w.sfbmax=w.sfb_lmax,w.sfbdivide=11;for(var i=0;i<u.SBMAX_l;i++)w.width[i]=m.scalefac_band.l[i+1]-m.scalefac_band.l[i],w.window[i]=3;if(w.block_type==u.SHORT_TYPE){var re=Ln(576);w.sfb_smin=0,w.sfb_lmax=0,w.mixed_block_flag!=0&&(w.sfb_smin=3,w.sfb_lmax=2*m.mode_gr+4),w.psymax=w.sfb_lmax+3*((m.sfb21_extra?u.SBMAX_s:u.SBPSY_s)-w.sfb_smin),w.sfbmax=w.sfb_lmax+3*(u.SBPSY_s-w.sfb_smin),w.sfbdivide=w.sfbmax-18,w.psy_lmax=w.sfb_lmax;var Se=m.scalefac_band.l[w.sfb_lmax];for(bn.arraycopy(w.xr,0,re,0,576),i=w.sfb_smin;i<u.SBMAX_s;i++)for(var r=m.scalefac_band.s[i],T=m.scalefac_band.s[i+1],D=0;D<3;D++)for(var X=r;X<T;X++)w.xr[Se++]=re[3*X+D];var L=w.sfb_lmax;for(i=w.sfb_smin;i<u.SBMAX_s;i++)w.width[L]=w.width[L+1]=w.width[L+2]=m.scalefac_band.s[i+1]-m.scalefac_band.s[i],w.window[L]=0,w.window[L+1]=1,w.window[L+2]=2,L+=3}w.count1bits=0,w.sfb_partition_table=Fe.nr_of_sfb_block[0][0],w.slen[0]=0,w.slen[1]=0,w.slen[2]=0,w.slen[3]=0,w.max_nonzero_coeff=575,Mn.fill(w.scalefac,0),(function(f,p){var A=f.ATH,N=p.xr;if(p.block_type!=u.SHORT_TYPE)for(var F=!1,M=u.PSFB21-1;M>=0&&!F;
1M--){var ce=f.scalefac_band.psfb21[M],W=f.scalefac_band.psfb21[M+1],c=Fe.athAdjust(A.adjust,A.psfb21[M],A.floor);f.nsPsy.longfact[21]>1e-12&&(c*=f.nsPsy.longfact[21]);for(var K=W-1;K>=ce;K--){if(!(Math.abs(N[K])<c)){F=!0;break}N[K]=0}}else for(var oe=0;oe<3;oe++)for(F=!1,M=u.PSFB12-1;M>=0&&!F;M--){W=(ce=3*f.scalefac_band.s[12]+(f.scalefac_band.s[13]-f.scalefac_band.s[12])*oe+(f.scalefac_band.psfb12[M]-f.scalefac_band.psfb12[0]))+(f.scalefac_band.psfb12[M+1]-f.scalefac_band.psfb12[M]);var G=Fe.athAdjust(A.adjust,A.psfb12[M],A.floor);for(f.nsPsy.shortfact[12]>1e-12&&(G*=f.nsPsy.shortfact[12]),K=W-1;K>=ce;K--){if(!(Math.abs(N[K])<G)){F=!0;break}N[K]=0}}})(m,w)},Qe.BINSEARCH_NONE=new Qe(0),Qe.BINSEARCH_UP=new Qe(1),Qe.BINSEARCH_DOWN=new Qe(2),this.trancate_smallspectrums=function(m,w,i,re){var Se=Ln(Bt.SFBMAX);if(((4&m.substep_shaping)!=0||w.block_type!=u.SHORT_TYPE)&&(128&m.substep_shaping)==0){Fe.calc_noise(w,i,Se,new Wn,null);for(var r=0;r<576;r++){var T=0;w.l3_enc[r]!=0&&(T=Math.abs(w.xr[r])),re[r]=T}r=0;var D=8;w.block_type==u.SHORT_TYPE&&(D=6);do{var X,L,f,p,A=w.width[D];if(r+=A,!(Se[D]>=1||(Mn.sort(re,r-A,A),un.EQ(re[r-1],0)))){X=(1-Se[D])*i[D],L=0,p=0;do{var N;for(f=1;p+f<A&&!un.NEQ(re[p+r-A],re[p+r+f-A]);f++);if(X<(N=re[p+r-A]*re[p+r-A]*f)){p!=0&&(L=re[p+r-A-1]);break}X-=N,p+=f}while(p<A);if(!un.EQ(L,0))do Math.abs(w.xr[r-A])<=L&&(w.l3_enc[r-A]=0);while(--A>0)}}while(++D<w.psymax);w.part2_3_length=Ce.noquant_count_bits(m,w,null)}},this.outer_loop=function(m,w,i,re,Se,r){var T=m.internal_flags,D=new Kt,X=Ln(576),L=Ln(Bt.SFBMAX),f=new Wn,p=new Vo,A=9999999,N=!1,F=!1,M=0;if((function(G,H,Me,Ee,ve){var Xe,Re=G.CurrentStep[Ee],Ie=!1,gt=G.OldValue[Ee],We=Qe.BINSEARCH_NONE;for(H.global_gain=gt,Me-=H.part2_length,tn(Re!=0);;){var rt;if(Xe=Ce.count_bits(G,ve,H,null),Re==1||Xe==Me)break;Xe>Me?(We==Qe.BINSEARCH_DOWN&&(Ie=!0),Ie&&(Re/=2),We=Qe.BINSEARCH_UP,rt=Re):(We==Qe.BINSEARCH_UP&&(Ie=!0),Ie&&(Re/=2),We=Qe.BINSEARCH_DOWN,rt=-Re),H.global_gain+=rt,H.global_gain<0&&(H.global_gain=0,Ie=!0),H.global_gain>255&&(H.global_gain=255,Ie=!0)}for(tn(H.global_gain>=0),tn(H.global_gain<256);Xe>Me&&H.global_gain<255;)H.global_gain++,Xe=Ce.count_bits(G,ve,H,null);G.CurrentStep[Ee]=gt-H.global_gain>=4?4:2,G.OldValue[Ee]=H.global_gain,H.part2_3_length=Xe})(T,w,r,Se,re),T.noise_shaping==0)return 100;Fe.calc_noise(w,i,L,f,p),f.bits=w.part2_3_length,D.assign(w);var ce=0;for(bn.arraycopy(re,0,X,0,576);!N;){do{var W,c=new Wn,K=255;if(W=(2&T.substep_shaping)!=0?20:3,T.sfb21_extra&&(L[D.sfbmax]>1||D.block_type==u.SHORT_TYPE&&(L[D.sfbmax+1]>1||L[D.sfbmax+2]>1))||!fe(m,D,L,re,F))break;D.scalefac_scale!=0&&(K=254);var oe=r-D.part2_length;if(oe<=0)break;for(;(D.part2_3_length=Ce.count_bits(T,re,D,p))>oe&&D.global_gain<=K;)D.global_gain++;if(D.global_gain>K)break;if(f.over_count==0){for(;(D.part2_3_length=Ce.count_bits(T,re,D,p))>A&&D.global_gain<=K;)D.global_gain++;if(D.global_gain>K)break}if(Fe.calc_noise(D,i,L,c,p),c.bits=D.part2_3_length,(kt(w.block_type!=u.SHORT_TYPE?m.quant_comp:m.quant_comp_short,f,c,D,L)?1:0)!=0)A=w.part2_3_length,f=c,w.assign(D),ce=0,bn.arraycopy(re,0,X,0,576);else if(T.full_outer_loop==0&&(++ce>W&&f.over_count==0||T.noise_shaping_amp==3&&F&&ce>30||T.noise_shaping_amp==3&&F&&D.global_gain-M>15))break}while(D.global_gain+D.scalefac_scale<255);T.noise_shaping_amp==3?F?N=!0:(D.assign(w),bn.arraycopy(X,0,re,0,576),ce=0,M=D.global_gain,F=!0):N=!0}return tn(w.global_gain+w.scalefac_scale<=255),m.VBR==Ti.vbr_rh||m.VBR==Ti.vbr_mtrh?bn.arraycopy(X,0,re,0,576):(1&T.substep_shaping)!=0&&trancate_smallspectrums(T,w,i,re),f.over_count},this.iteration_finish_one=function(m,w,i){var re=m.l3_side,Se=re.tt[w][i];Ce.best_scalefac_store(m,w,i,re),m.use_best_huffman==1&&Ce.best_huffman_divide(m,Se),le.ResvAdjust(m,Se)},this.VBR_encode_granule=function(m,w,i,re,Se,r,T){var D,X=m.internal_flags,L=new Kt,f=Ln(576),p=T,A=T+1,N=(T+r)/2,F=0,M=X.sfb21_extra;tn(p<=LameInternalFlags.MAX_BITS_PER_CHANNEL),Mn.fill(L.l3_enc,0);do tn(N>=r),tn(N<=T),tn(r<=T),X.sfb21_extra=!(N>p-42)&&M,outer_loop(m,w,i,re,Se,N)<=0?(F=1,A=w.part2_3_length,L.assign(w),bn.arraycopy(re,0,f,0,576),D=(T=A-32)-r,N=(T+r)/2):(D=T-(r=N+32),N=(T+r)/2,F!=0&&(F=2,w.assign(L),bn.arraycopy(f,0,re,0,576)));while(D>12);X.sfb21_extra=M,F==2&&bn.arraycopy(L.l3_enc,0,w.l3_enc,0,576),tn(w.part2_3_length<=p)},this.get_framebits=function(m,w){var i=m.internal_flags;i.bitrate_index=i.VBR_min_bitrate;var re=Z.getframebits(m);i.bitrate_index=1,re=Z.getframebits(m);for(var Se=1;Se<=i.VBR_max_bitrate;
1Se++){i.bitrate_index=Se;var r=new MeanBits(re);w[Se]=le.ResvFrameBegin(m,r),re=r.bits}},this.VBR_old_prepare=function(m,w,i,re,Se,r,T,D,X){var L,f=m.internal_flags,p=0,A=1,N=0;f.bitrate_index=f.VBR_max_bitrate;var F=le.ResvFrameBegin(m,new MeanBits(0))/f.mode_gr;get_framebits(m,r);for(var M=0;M<f.mode_gr;M++){var ce=Fe.on_pe(m,w,D[M],F,M,0);f.mode_ext==u.MPG_MD_MS_LR&&(ms_convert(f.l3_side,M),Fe.reduce_side(D[M],i[M],F,ce));for(var W=0;W<f.channels_out;++W){var c=f.l3_side.tt[M][W];c.block_type!=u.SHORT_TYPE?(p=1.28/(1+Math.exp(3.5-w[M][W]/300))-.05,L=f.PSY.mask_adjust-p):(p=2.56/(1+Math.exp(3.5-w[M][W]/300))-.14,L=f.PSY.mask_adjust_short-p),f.masking_lower=Math.pow(10,.1*L),init_outer_loop(f,c),X[M][W]=Fe.calc_xmin(m,re[M][W],c,Se[M][W]),X[M][W]!=0&&(A=0),T[M][W]=126,N+=D[M][W]}}for(M=0;M<f.mode_gr;M++)for(W=0;W<f.channels_out;W++)N>r[f.VBR_max_bitrate]&&(D[M][W]*=r[f.VBR_max_bitrate],D[M][W]/=N),T[M][W]>D[M][W]&&(T[M][W]=D[M][W]);return A},this.bitpressure_strategy=function(m,w,i,re){for(var Se=0;Se<m.mode_gr;Se++)for(var r=0;r<m.channels_out;r++){for(var T=m.l3_side.tt[Se][r],D=w[Se][r],X=0,L=0;L<T.psy_lmax;L++)D[X++]*=1+.029*L*L/u.SBMAX_l/u.SBMAX_l;if(T.block_type==u.SHORT_TYPE)for(L=T.sfb_smin;L<u.SBMAX_s;L++)D[X++]*=1+.029*L*L/u.SBMAX_s/u.SBMAX_s,D[X++]*=1+.029*L*L/u.SBMAX_s/u.SBMAX_s,D[X++]*=1+.029*L*L/u.SBMAX_s/u.SBMAX_s;re[Se][r]=0|Math.max(i[Se][r],.9*re[Se][r])}},this.VBR_new_prepare=function(m,w,i,re,Se,r){var T,D=m.internal_flags,X=1,L=0,f=0;if(m.free_format)D.bitrate_index=0,p=new MeanBits(L),T=le.ResvFrameBegin(m,p),L=p.bits,Se[0]=T;else{D.bitrate_index=D.VBR_max_bitrate;var p=new MeanBits(L);le.ResvFrameBegin(m,p),L=p.bits,get_framebits(m,Se),T=Se[D.VBR_max_bitrate]}for(var A=0;A<D.mode_gr;A++){Fe.on_pe(m,w,r[A],L,A,0),D.mode_ext==u.MPG_MD_MS_LR&&ms_convert(D.l3_side,A);for(var N=0;N<D.channels_out;++N){var F=D.l3_side.tt[A][N];D.masking_lower=Math.pow(10,.1*D.PSY.mask_adjust),init_outer_loop(D,F),Fe.calc_xmin(m,i[A][N],F,re[A][N])!=0&&(X=0),f+=r[A][N]}}for(A=0;A<D.mode_gr;A++)for(N=0;N<D.channels_out;N++)f>T&&(r[A][N]*=T,r[A][N]/=f);return X},this.calc_target_bits=function(m,w,i,re,Se,r){var T,D,X,L,f=m.internal_flags,p=f.l3_side,A=0;f.bitrate_index=f.VBR_max_bitrate;var N=new MeanBits(A);for(r[0]=le.ResvFrameBegin(m,N),A=N.bits,f.bitrate_index=1,A=Z.getframebits(m)-8*f.sideinfo_len,Se[0]=A/(f.mode_gr*f.channels_out),A=m.VBR_mean_bitrate_kbps*m.framesize*1e3,(1&f.substep_shaping)!=0&&(A*=1.09),A/=m.out_samplerate,A-=8*f.sideinfo_len,A/=f.mode_gr*f.channels_out,(T=.93+.07*(11-m.compression_ratio)/5.5)<.9&&(T=.9),T>1&&(T=1),D=0;D<f.mode_gr;D++){var F=0;for(X=0;X<f.channels_out;X++){if(re[D][X]=int(T*A),w[D][X]>700){var M=int((w[D][X]-700)/1.4),ce=p.tt[D][X];re[D][X]=int(T*A),ce.block_type==u.SHORT_TYPE&&M<A/2&&(M=A/2),M>3*A/2?M=3*A/2:M<0&&(M=0),re[D][X]+=M}re[D][X]>LameInternalFlags.MAX_BITS_PER_CHANNEL&&(re[D][X]=LameInternalFlags.MAX_BITS_PER_CHANNEL),F+=re[D][X]}if(F>LameInternalFlags.MAX_BITS_PER_GRANULE)for(X=0;X<f.channels_out;++X)re[D][X]*=LameInternalFlags.MAX_BITS_PER_GRANULE,re[D][X]/=F}if(f.mode_ext==u.MPG_MD_MS_LR)for(D=0;D<f.mode_gr;D++)Fe.reduce_side(re[D],i[D],A*f.channels_out,LameInternalFlags.MAX_BITS_PER_GRANULE);for(L=0,D=0;D<f.mode_gr;D++)for(X=0;X<f.channels_out;X++)re[D][X]>LameInternalFlags.MAX_BITS_PER_CHANNEL&&(re[D][X]=LameInternalFlags.MAX_BITS_PER_CHANNEL),L+=re[D][X];if(L>r[0])for(D=0;D<f.mode_gr;D++)for(X=0;X<f.channels_out;X++)re[D][X]*=r[0],re[D][X]/=L}},Un=P.assert,zo=function(){var Z;this.setModules=function(le){Z=le},this.ResvFrameBegin=function(le,Fe){var Ce,st=le.internal_flags,Qe=st.l3_side,ze=Z.getframebits(le);Fe.bits=(ze-8*st.sideinfo_len)/st.mode_gr;var kt=2048*st.mode_gr-8;le.brate>320?Ce=8*int(1e3*le.brate/(le.out_samplerate/1152)/8+.5):(Ce=11520,le.strict_ISO&&(Ce=8*int(32e4/(le.out_samplerate/1152)/8+.5))),st.ResvMax=Ce-ze,st.ResvMax>kt&&(st.ResvMax=kt),(st.ResvMax<0||le.disable_reservoir)&&(st.ResvMax=0);var fe=Fe.bits*st.mode_gr+Math.min(st.ResvSize,st.ResvMax);return fe>Ce&&(fe=Ce),Un(st.ResvMax%8==0),Un(st.ResvMax>=0),Qe.resvDrain_pre=0,st.pinfo!=null&&(st.pinfo.mean_bits=Fe.bits/2,st.pinfo.resvsize=st.ResvSize),fe},this.ResvMaxBits=function(le,Fe,Ce,st){var Qe,ze=le.internal_flags,kt=ze.ResvSize,fe=ze.ResvMax;st!=0&&(kt+=Fe),(1&ze.substep_shaping)!=0&&(fe*=.9),Ce.bits=Fe,10*kt>9*fe?(Qe=kt-9*fe/10,Ce.bits+=Qe,ze.substep_shaping|=128):(Qe=0,ze.substep_shaping&=127,le.disable_reservoir||(1&ze.substep_shaping)!=0||(Ce.bits-=.1*Fe));var m=kt<6*ze.ResvMax/10?kt:6*ze.ResvMax/10;return(m-=Qe)<0&&(m=0),m},this.ResvAdjust=function(le,Fe){le.ResvSize-=Fe.part2_3_length+Fe.part2_length}
1,this.ResvFrameEnd=function(le,Fe){var Ce,st=le.l3_side;le.ResvSize+=Fe*le.mode_gr;var Qe=0;st.resvDrain_post=0,st.resvDrain_pre=0,(Ce=le.ResvSize%8)!=0&&(Qe+=Ce),(Ce=le.ResvSize-Qe-le.ResvMax)>0&&(Un(Ce%8==0),Un(Ce>=0),Qe+=Ce);var ze=Math.min(8*st.main_data_begin,Qe)/8;st.resvDrain_pre+=8*ze,Qe-=8*ze,le.ResvSize-=8*ze,st.main_data_begin-=ze,st.resvDrain_post+=Qe,le.ResvSize-=Qe}},$o=function(){this.getLameVersion=function(){return"3.98.4"},this.getLameShortVersion=function(){return"3.98.4"},this.getLameVeryShortVersion=function(){return"LAME3.98r"},this.getPsyVersion=function(){return"0.93"},this.getLameUrl=function(){return"http://www.mp3dev.org/"},this.getLameOsBitness=function(){return"32bits"}},Go=P.System,Yn=P.VbrMode,ki=P.ShortBlock,Wo=P.Arrays,Vn=P.new_byte,qo=P.assert;function On(){var Z,le,Fe;this.setModules=function(f,p,A){Z=f,le=p,Fe=A};var Ce=On.NUMTOCENTRIES,st=On.MAXFRAMESIZE,Qe=Ce+4+4+4+4+4+9+1+1+8+1+1+3+1+1+2+4+2+2,ze=128,kt=64,fe=32,m=null,w="Xing",i="Info",re=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];function Se(f,p){var A=255&f[p+0];return A<<=8,A|=255&f[p+1],A<<=8,A|=255&f[p+2],A<<=8,A|=255&f[p+3]}function r(f,p,A){f[p+0]=255&A>>24,f[p+1]=255&A>>16,f[p+2]=255&A>>8,f[p+3]=255&A}function T(f,p,A){f[p+0]=255&A>>8,f[p+1]=255&A}function D(f,p,A){return 255&(f<<p|A&~(-1<<p))}function X(f,p){var A=f.internal_flags;p[0]=D(p[0],8,255),p[1]=D(p[1],3,7),p[1]=D(p[1],1,f.out_samplerate<16e3?0:1),p[1]=D(p[1],1,f.version),p[1]=D(p[1],2,1),p[1]=D(p[1],1,f.error_protection?0:1),p[2]=D(p[2],4,A.bitrate_index),p[2]=D(p[2],2,A.samplerate_index),p[2]=D(p[2],1,0),p[2]=D(p[2],1,f.extension),p[3]=D(p[3],2,f.mode.ordinal()),p[3]=D(p[3],2,A.mode_ext),p[3]=D(p[3],1,f.copyright),p[3]=D(p[3],1,f.original),p[3]=D(p[3],2,f.emphasis),p[0]=255;var N,F,M=241&p[1];N=f.version==1?ze:f.out_samplerate<16e3?fe:kt,f.VBR==Yn.vbr_off&&(N=f.brate),F=f.free_format?0:255&16*Z.BitrateIndex(N,f.version,f.out_samplerate),f.version==1?(p[1]=255&(10|M),M=13&p[2],p[2]=255&(F|M)):(p[1]=255&(2|M),M=13&p[2],p[2]=255&(F|M))}function L(f,p){return p=p>>8^re[255&(p^f)]}this.addVbrFrame=function(f){var p=f.internal_flags,A=Tables.bitrate_table[f.version][p.bitrate_index];qo(p.VBR_seek_table.bag!=null),(function(N,F){if(N.nVbrNumFrames++,N.sum+=F,N.seen++,!(N.seen<N.want)&&(N.pos<N.size&&(N.bag[N.pos]=N.sum,N.pos++,N.seen=0),N.pos==N.size)){for(var M=1;M<N.size;M+=2)N.bag[M/2]=N.bag[M];N.want*=2,N.pos/=2}})(p.VBR_seek_table,A)},this.getVbrTag=function(f){var p=new VBRTagData,A=0;p.flags=0;var N=f[A+1]>>3&1,F=f[A+2]>>2&3,M=f[A+3]>>6&3,ce=f[A+2]>>4&15;if(ce=Tables.bitrate_table[N][ce],f[A+1]>>4==14?p.samprate=Tables.samplerate_table[2][F]:p.samprate=Tables.samplerate_table[N][F],!(function(G,H){return new String(G,H,w.length(),m).equals(w)||new String(G,H,i.length(),m).equals(i)})(f,A+=N!=0?M!=3?36:21:M!=3?21:13))return null;A+=4,p.hId=N;var W=p.flags=Se(f,A);if(A+=4,(1&W)!=0&&(p.frames=Se(f,A),A+=4),(2&W)!=0&&(p.bytes=Se(f,A),A+=4),(4&W)!=0){if(p.toc!=null)for(var c=0;c<Ce;c++)p.toc[c]=f[A+c];A+=Ce}p.vbrScale=-1,(8&W)!=0&&(p.vbrScale=Se(f,A),A+=4),p.headersize=72e3*(N+1)*ce/p.samprate;var K=f[(A+=21)+0]<<4;K+=f[A+1]>>4;var oe=(15&f[A+1])<<8;return(K<0||K>3e3)&&(K=-1),((oe+=255&f[A+2])<0||oe>3e3)&&(oe=-1),p.encDelay=K,p.encPadding=oe,p},this.InitVbrTag=function(f){var p,A=f.internal_flags;p=f.version==1?ze:f.out_samplerate<16e3?fe:kt,f.VBR==Yn.vbr_off&&(p=f.brate);var N=72e3*(f.version+1)*p/f.out_samplerate,F=A.sideinfo_len+Qe;if(A.VBR_seek_table.TotalFrameSize=N,N<F||N>st)f.bWriteVbrTag=!1;
1else{A.VBR_seek_table.nVbrNumFrames=0,A.VBR_seek_table.nBytesWritten=0,A.VBR_seek_table.sum=0,A.VBR_seek_table.seen=0,A.VBR_seek_table.want=1,A.VBR_seek_table.pos=0,A.VBR_seek_table.bag==null&&(A.VBR_seek_table.bag=new int[400],A.VBR_seek_table.size=400);var M=Vn(st);X(f,M);for(var ce=A.VBR_seek_table.TotalFrameSize,W=0;W<ce;++W)le.add_dummy_byte(f,255&M[W],1)}},this.updateMusicCRC=function(f,p,A,N){for(var F=0;F<N;++F)f[0]=L(p[A+F],f[0])},this.getLameTagFrame=function(f,p){var A=f.internal_flags;if(!f.bWriteVbrTag||A.Class_ID!=ya.LAME_ID||A.VBR_seek_table.pos<=0)return 0;if(p.length<A.VBR_seek_table.TotalFrameSize)return A.VBR_seek_table.TotalFrameSize;Wo.fill(p,0,A.VBR_seek_table.TotalFrameSize,0),X(f,p);var N=Vn(Ce);if(f.free_format)for(var F=1;F<Ce;++F)N[F]=255&255*F/100;else(function(c,K){if(!(c.pos<=0))for(var oe=1;oe<Ce;++oe){var G=oe/Ce,H=0|Math.floor(G*c.pos);H>c.pos-1&&(H=c.pos-1);var Me=0|256*c.bag[H]/c.sum;Me>255&&(Me=255),K[oe]=255&Me}})(A.VBR_seek_table,N);var M=A.sideinfo_len;f.error_protection&&(M-=2),f.VBR==Yn.vbr_off?(p[M++]=255&i.charAt(0),p[M++]=255&i.charAt(1),p[M++]=255&i.charAt(2),p[M++]=255&i.charAt(3)):(p[M++]=255&w.charAt(0),p[M++]=255&w.charAt(1),p[M++]=255&w.charAt(2),p[M++]=255&w.charAt(3)),r(p,M,15),r(p,M+=4,A.VBR_seek_table.nVbrNumFrames),M+=4;var ce=A.VBR_seek_table.nBytesWritten+A.VBR_seek_table.TotalFrameSize;r(p,M,0|ce),M+=4,Go.arraycopy(N,0,p,M,N.length),M+=N.length,f.error_protection&&le.CRC_writeheader(A,p);var W=0;for(F=0;F<M;F++)W=L(p[F],W);return M+=(function(c,K,oe,G,H){var Me,Ee,ve,Xe,Re,Ie=c.internal_flags,gt=0,We=c.encoder_delay,rt=c.encoder_padding,Ot=100-10*c.VBR_q-c.quality,ea=Fe.getLameVeryShortVersion(),vt=[1,5,3,2,4,0,3],It=0|(c.lowpassfreq/100+.5>255?255:c.lowpassfreq/100+.5),Ue=0,Zt=0,oa=c.internal_flags.noise_shaping,wa=0,Gt=0,Aa=0,Ma=(1&c.exp_nspsytune)!=0,Ca=(2&c.exp_nspsytune)!=0,Ta=!1,ae=!1,de=c.internal_flags.nogap_total,tt=c.internal_flags.nogap_current,se=c.ATHtype;switch(c.VBR){case vbr_abr:Re=c.VBR_mean_bitrate_kbps;break;case vbr_off:Re=c.brate;break;default:Re=c.VBR_min_bitrate_kbps}switch(Me=0+(c.VBR.ordinal()<vt.length?vt[c.VBR.ordinal()]:0),Ie.findReplayGain&&(Ie.RadioGain>510&&(Ie.RadioGain=510),Ie.RadioGain<-510&&(Ie.RadioGain=-510),Zt=8192,Zt|=3072,Ie.RadioGain>=0?Zt|=Ie.RadioGain:(Zt|=512,Zt|=-Ie.RadioGain)),Ie.findPeakSample&&(Ue=Math.abs(0|Ie.PeakSample/32767*Math.pow(2,23)+.5)),de!=-1&&(tt>0&&(ae=!0),tt<de-1&&(Ta=!0)),Xe=se+((Ma?1:0)<<4)+((Ca?1:0)<<5)+((Ta?1:0)<<6)+((ae?1:0)<<7),Ot<0&&(Ot=0),c.mode){case MONO:wa=0;break;case STEREO:wa=1;break;case DUAL_CHANNEL:wa=2;break;case JOINT_STEREO:wa=c.force_ms?4:3;break;case NOT_SET:default:wa=7}Aa=c.in_samplerate<=32e3?0:c.in_samplerate==48e3?2:c.in_samplerate>48e3?3:1,(c.short_blocks==ki.short_block_forced||c.short_blocks==ki.short_block_dispensed||c.lowpassfreq==-1&&c.highpassfreq==-1||c.scale_left<c.scale_right||c.scale_left>c.scale_right||c.disable_reservoir&&c.brate<320||c.noATH||c.ATHonly||se==0||c.in_samplerate<=32e3)&&(Gt=1),Ee=oa+(wa<<2)+(Gt<<5)+(Aa<<6),ve=Ie.nMusicCRC,r(oe,G+gt,Ot),gt+=4;for(var Je=0;Je<9;Je++)oe[G+gt+Je]=255&ea.charAt(Je);oe[G+(gt+=9)]=255&Me,oe[G+ ++gt]=255&It,r(oe,G+ ++gt,Ue),T(oe,G+(gt+=4),Zt),T(oe,G+(gt+=2),0),oe[G+(gt+=2)]=255&Xe,oe[G+ ++gt]=Re>=255?255:255&Re,oe[G+ ++gt]=255&We>>4,oe[G+gt+1]=255&(We<<4)+(rt>>8),oe[G+gt+2]=255&rt,oe[G+(gt+=3)]=255&Ee,gt++,oe[G+gt++]=0,T(oe,G+gt,c.preset),r(oe,G+(gt+=2),K),T(oe,G+(gt+=4),ve),gt+=2;for(var ye=0;ye<gt;ye++)H=L(oe[G+ye],H);return T(oe,G+gt,H),gt+=2})(f,ce,p,M,W),A.VBR_seek_table.TotalFrameSize},this.putVbrTag=function(f,p){if(f.internal_flags.VBR_seek_table.pos<=0||(p.seek(p.length()),p.length()==0))return-1;var A=(function(M){M.seek(0);var ce=Vn(10);return M.readFully(ce),new String(ce,"ISO-8859-1").startsWith("ID3")?0:((127&ce[6])<<21|(127&ce[7])<<14|(127&ce[8])<<7|127&ce[9])+ce.length})(p);p.seek(A);var N=Vn(st),F=getLameTagFrame(f,N);return F>N.length?-1:(F<1||p.write(N,0,F),0)}}On.NUMTOCENTRIES=100,On.MAXFRAMESIZE=2880;var Yo=On,Ri=P.new_byte,Bi=P.assert,ya=Po,Xo=xo,Nn=b,jo=ct,Zo=Ko,Qo=pa,Jo=zo,Ka=ut,un=Ya;function er(){this.setModules=function(Z,le){}}function tr(){this.setModules=function(Z,le,Fe){}}function ar(){}function nr(){this.setModules=function(Z,le){}}function rn(){this.dataOffset=0,this.dataLen=0,this.channels=0,this.sampleRate=0}function Kn(Z){return Z.charCodeAt(0)<<24|Z.charCodeAt(1)<<16|Z.charCodeAt(2)<<8|Z.charCodeAt(3)}rn.RIFF=Kn("RIFF"),rn.WAVE=Kn("WAVE"),rn.fmt_=Kn("fmt "),rn.data=Kn("data"),rn.readHeader=function(Z){var le=new rn,Fe=Z.getUint32(0,!1);if(rn.RIFF==Fe&&(Z.getUint32(4,!0),rn.WAVE==Z.getUint32(8,!1)&&rn.fmt_==Z.getUint32(12,!1))){var Ce=Z.getUint32(16,!0),st=20;switch(Ce){case 16:case 18:le.channels=Z.getUint16(st+2,!0),le.sampleRate=Z.getUint32(st+4,!0);break;default:throw"extended fmt chunk not implemented"}st+=Ce;for(var Qe=rn.data,ze=0;Qe!=Fe&&(Fe=Z.getUint32(st,!1),ze=Z.getUint32(st+4,!0),Qe!=Fe);)st+=ze+8;return le.dataLen=ze,le.dataOffset=st+8,le}};var ir=function(Z,le,Fe){arguments.length!=3&&(console.error("WARN: Mp3Encoder(channels, samplerate, kbps) not specified"),Z=1,le=44100,Fe=128);var Ce=new ya,st=new er,Qe=new Nn,ze=new un,kt=new Xo,fe=new jo,m=new Zo,w=new Yo,i=new $o,re=ne
1w nr,Se=new Jo,r=new Qo,T=new tr,D=new ar;Ce.setModules(Qe,ze,kt,fe,m,w,i,re,D),ze.setModules(Qe,D,i,w),re.setModules(ze,i),kt.setModules(Ce),m.setModules(ze,Se,fe,r),fe.setModules(r,Se,Ce.enc.psy),Se.setModules(ze),r.setModules(fe),w.setModules(Ce,ze,i),st.setModules(T,D),T.setModules(i,re,kt);var X=Ce.lame_init();X.num_channels=Z,X.in_samplerate=le,X.brate=Fe,X.mode=Ka.STEREO,X.quality=3,X.bWriteVbrTag=!1,X.disable_reservoir=!0,X.write_id3tag_automatic=!1;var L=Ce.lame_init_params(X);Bi(L==0);var f=1152,p=0|1.25*f+7200,A=Ri(p);this.encodeBuffer=function(N,F){Z==1&&(F=N),Bi(N.length==F.length),N.length>f&&(f=N.length,A=Ri(p=0|1.25*f+7200));var M=Ce.lame_encode_buffer(X,N,F,N.length,A,0,p);return new Int8Array(A.subarray(0,M))},this.flush=function(){var N=Ce.lame_encode_flush(X,A,0,p);return new Int8Array(A.subarray(0,N))}},Mi=function(Z,le){if(!(Z instanceof le))throw new TypeError("Cannot call a class as a function")},Fi=(function(){function Z(le,Fe){for(var Ce=0;Ce<Fe.length;Ce++){var st=Fe[Ce];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(le,st.key,st)}}return function(le,Fe,Ce){return Fe&&Z(le.prototype,Fe),Ce&&Z(le,Ce),le}})(),or=(function(){function Z(le){Mi(this,Z),this.config={sampleRate:44100,bitRate:128},Object.assign(this.config,le),this.mp3Encoder=new ir(1,this.config.sampleRate,this.config.bitRate),this.maxSamples=1152,this.samplesMono=null,this.clearBuffer()}return Fi(Z,[{key:"clearBuffer",value:function(){this.dataBuffer=[]}},{key:"appendToBuffer",value:function(le){this.dataBuffer.push(new Int8Array(le))}},{key:"floatTo16BitPCM",value:function(le,Fe){for(var Ce=0;Ce<le.length;Ce++){var st=Math.max(-1,Math.min(1,le[Ce]));Fe[Ce]=st<0?32768*st:32767*st}}},{key:"convertBuffer",value:function(le){var Fe=new Float32Array(le),Ce=new Int16Array(le.length);return this.floatTo16BitPCM(Fe,Ce),Ce}},{key:"encode",value:function(le){this.samplesMono=this.convertBuffer(le);for(var Fe=this.samplesMono.length,Ce=0;Fe>=0;Ce+=this.maxSamples){var st=this.samplesMono.subarray(Ce,Ce+this.maxSamples),Qe=this.mp3Encoder.encodeBuffer(st);this.appendToBuffer(Qe),Fe-=this.maxSamples}}},{key:"finish",value:function(){return this.appendToBuffer(this.mp3Encoder.flush()),this.dataBuffer}}]),Z})();return(function(){function Z(le){Mi(this,Z),this.config={bitRate:128,startRecordingAt:300,deviceId:null},this.activeStream=null,this.context=null,this.microphone=null,this.processor=null,this.startTime=0,Object.assign(this.config,le)}return Fi(Z,[{key:"addMicrophoneListener",value:function(le){var Fe=this;this.activeStream=le,this.timerToStart=setTimeout(function(){delete Fe.timerToStart},this.config.startRecordingAt),this.microphone=this.context.createMediaStreamSource(le),this.processor=this.context.createScriptProcessor(0,1,1),this.processor.onaudioprocess=function(Ce){Fe.timerToStart||Fe.lameEncoder.encode(Ce.inputBuffer.getChannelData(0))},this.microphone.connect(this.processor),this.processor.connect(this.context.destination)}},{key:"stop",value:function(){return this.processor&&this.microphone&&(this.microphone.disconnect(),this.processor.disconnect(),this.context&&this.context.state!=="closed"&&this.context.close(),this.processor.onaudioprocess=null,this.activeStream.getAudioTracks().forEach(function(le){return le.stop()})),this}},{key:"start",value:function(){var le=this,Fe=window.AudioContext||window.webkitAudioContext;this.context=new Fe,this.config.sampleRate=this.context.sampleRate,this.lameEncoder=new or(this.config);var Ce=!this.config.deviceId||{deviceId:{exact:this.config.deviceId}};return new Promise(function(st,Qe){navigator.mediaDevices.getUserMedia({audio:Ce}).then(function(ze){le.addMicrophoneListener(ze),st(ze)}).catch(function(ze){Qe(ze)})})}},{key:"getMp3",value:function(){var le=this,Fe=this.lameEncoder.finish();return new Promise(function(Ce,st){Fe.length===0?st(new Error("No buffer to send")):(Ce([Fe,new Blob(Fe,{type:"audio/mp3"})]),le.lameEncoder.clearBuffer())})}}]),Z})()})});var dr=ba(Ii()),fr=ba(Oi()),ur=ba(Di()),pr=ba(xi()),hr=ba(Ui()),gr=ba(Ki()),mr=ba($i()),br=ba(Wi()),_r=ba(Yi()),vr=ba(ji()),yr=ba(Qi()),wr=ba(eo()),Sr=ba(ao()),Er=ba(io()),Ar=ba(ro()),Tr=ba(lo()),kr=ba(fo()),Rr=ba(po()),Br=ba(go()),Mr=ba(bo()),Fr=ba(vo()),Cr=ba(wo()),Ir=ba(Eo()),Lr=ba(To()),Or=ba(Ro()),Nr=ba(Mo());var Co=ba(_a());var rr=Fo();(function(o){let e="audioCustom.insert";o.POPUP_TEMPLATES=xn(Pn({},o.POPUP_TEMPLATES),{"audioCustom.insert":"[_BUTTONS_][_MICROPHONE_LAYER_][_BY_URL_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","audioCustom.edit":"[_BUTTONS_]"}),o.DEFAULTS=xn(Pn({},o.DEFAULTS),{audioAllowedTypes:["mp3","mpeg","x-m4a","wav"],audioEditButtons:["audioRemove","align"],audioButtons:["microphone","audioByURL","audioUpload"],audioMove:!0,audioUpload:!0}),o.PLUGINS.audioCustom=function(d){var t;window.AudioContext=window.AudioContext||window.webkitAudioContext;var s=new rr({bitRate:128}),h=1,a=2,y=(t={},t[h]="No link in upload response.",t[a]="Unsupported file type - please provide an audio file.",t),j=null,P=function(ge){ge||(ge=d.$el.find(".fr-audio")),ge.length&&(d.toolbar.enable(),ge.removeClass("fr-active"),j=null)},ne=function(U){"";d.events.$on(U,"dragover dragenter",".fr-audio-upload-layer",function(){return $(this).addClass("fr-drop"),!1},!0),d.events.$on(U,"dragleave dragend",".fr-audio-upload-layer",function(){return $(this).removeClass("fr-drop"),!1},!0),d.events.$on(U,"drop",".fr-audio-upload-layer",function(Oe){Oe.preventDefault(),Oe.stopPropagation(),$(this).removeClass("fr-drop");var J=Oe.originalEvent.dataTransfer;if(J&&J.files){var be=U.data("instance")||d;be.events.disableBlur(),be.audioCustom.upload(J.files),be.events.enableBlur()}},!0),d.helpers.isIOS()&&d.events.$on(U,"touchstart",'.fr-audio-upload-layer input[type="file"]',function(){$(this).trigger("click")},!0),d.events.$on(U,"change",'.fr-audio-upload-layer input[type="file"]',function(){if(this.files){var Oe=U.data("instance")||d;Oe.events.disableBlur(),U.find("input:focus").blur(),Oe.events.enableBlur(),Oe.audioCustom.upload(this.files)}$(this).val("")},!0)},ue=function(){d.popups.onHide(e,d.audioCustom.hideProgressBar);var U=d.opts.audioButtons,Oe=U.length<2?"":'<div class="fr-buttons">'+d.button.buildList(U)+"</div>",J='\n <div class="fr-audio-microphone-layer fr-layer" id="fr-audio-microphone-layer-'+d.id+'">\n <div class="fr-action-buttons">\n <button \n id="startRecord"\n type="button"\n class="fr-command fr-submit fr-start-record visible"\n data-cmd="audioStartRecord"\n role="button">\n '+d.language.translate("Start recording")+'\n </button>\n <button \n id="stopRecord"\n type="button"\n class="fr-command fr-submit fr-stop-record hidden"\n data-cmd="audioStopRecord"\n role="button">\n '+d.language.translate("Stop recording")+"\n </button>\n </div>\n </div>",be='\n <div class="fr-audio-by-url-layer fr-layer" id="fr-audio-by-url-layer
1-'+d.id+'">\n <div class="fr-input-line">\n <input \n id="fr-audio-by-url-text-'+d.id+'" \n type="text" \n placeholder="'+d.language.translate("Paste in an audio URL")+'"\n tabIndex="1"\n aria-required="true" />\n </div>\n <div class="fr-action-buttons">\n <button \n type="button"\n class="fr-command fr-submit"\n data-cmd="audioInsertByURL"\n tabIndex="2"\n role="button">\n '+d.language.translate("Insert")+"\n </button>\n </div>\n </div>",Ne=d.opts.audioAllowedTypes.map(function(Vt){return"audio/"+Vt}).join(","),u='\n <div \n class="fr-audio-upload-layer fr-file-upload-layer fr-layer"\n id="fr-audio-upload-layer-'+d.id+'">\n <strong>\n '+d.language.translate("Drop audio")+"\n </strong>\n <br />\n "+d.language.translate("or click")+'\n <div class="fr-form">\n <input \n type="file" \n accept="'+Ne+'"\n tabIndex="-1"\n aria-labelledby="fr-audio-upload-layer-'+d.id+'"\n role="button" />\n </div>\n </div>',it='\n <div class="fr-audio-progress-bar-layer fr-layer">\n <h3 tabIndex="-1" class="fr-message">\n '+d.language.translate("Uploading")+'\n </h3>\n <div class="fr-loader">\n <span class="fr-progress"></span>\n </div>\n <div class="fr-action-buttons">\n <button type="button" class="fr-command fr-dismiss" data-cmd="audioDismissError" tabIndex="2" role="button">\n '+d.language.translate("OK")+"\n </button>\n </div>\n </div>",De=d.popups.create(e,{buttons:Oe,by_url_layer:be,microphone_layer:J,upload_layer:u,progress_bar:it});return ne(De),De},v=function(){var ge=d.opts.audioEditButtons,U=ge.length<1?"":'<div class="fr-buttons">\n '+d.button.buildList(ge)+"\n </div>";return d.popups.create("audioCustom.edit",{buttons:U})},g=function(U){var Oe=d.popups.get(e)||ue();Oe.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),Oe.find(".fr-audio-progress-bar-layer").addClass("fr-active"),Oe.find(".fr-buttons").hide(),U&&E(U,0)},I=function(ge){g();var U=d.popups.get(e),Oe=U.find(".fr-audio-progress-bar-layer");Oe.addClass("fr-error");var J=Oe.find("h3");J.text(d.language.translate(ge)),d.events.disableBlur(),J.focus()},k=function(ge,U){d.edit.on(),I(y[ge])},E=function(U,Oe){var J=d.popups.get(e);if(J){var be=J.find(".fr-audio-progress-bar-layer");be.find("h3").text(d.language.translate(U)+(Oe?" "+Oe+"%":"")),be.removeClass("fr-error"),Oe?(be.find("div").removeClass("fr-indeterminate"),be.find("div > span").css("width",Oe+"%")):be.find("div").addClass("fr-indeterminate")}},Q=function(U){if(!U)return!1;if(d.events.trigger("audioCustom.uploaded",[U],!0)===!1)return d.edit.on(),!1;var Oe=JSON.parse(U);return Oe.link?Oe:(k(h,U),!1)},x=function(U,Oe){var J=Q(Oe)||{},be=$('\n <span contenteditable="false" draggable="true" class="fr-audio fr-uploading">\n <audio controls="controls" controlsList="nodownload"></audio>\n </span>');be.toggleClass("fr-draggable",d.opts.audioMove),d.events.focus(!0),d.selection.restore(),d.undo.saveStep(),d.markers.insert(),d.html.wrap();var Ne=d.$el.find(".fr-marker");d.node.isLastSibling(Ne)&&Ne.parent().hasClass("fr-deletable")&&Ne.insertAfter(Ne.parent()),Ne.replaceWith(be),d.selection.clear();var u=be.find("audio");return u.text(d.language.translate("Your browser does not support HTML5 audio.")).on("canplaythrough loadeddata",function(){d.popups.hide(e),be.removeClass("fr-uploading")}).on("error",function(it){d.popups.hide(e),be.addClass("fr-error").removeClass("fr-uploading")}).attr({"data-link":J.link}).attr({src:Oe?J.link:U}),be},te=function(U,Oe){d.edit.on(),E("Loading audio"),g("Loading audio");var J=x(U,Oe);d.undo.saveStep()},Ke=!1,q=function(U){var Oe=$(this);if(Ke&&U&&U.type==="touchend")return!0;
1if(d.edit.isDisabled())return U&&(U.stopPropagation(),U.preventDefault()),!1;d.toolbar.disable(),d.helpers.isMobile()&&(d.events.disableBlur(),d.$el.blur(),d.events.enableBlur()),j&&j.removeClass("fr-active"),j=Oe,Oe.addClass("fr-active"),d.opts.iframe&&d.size.syncIframe(),d.audioCustom.showEditPopup(Oe),d.selection.clear();var J=d.doc.createRange();return J.selectNode(Oe[0]),d.selection.get().addRange(J),d.button.bulkRefresh(),!0};return{_init:function(){d.helpers.isMobile()&&(d.events.$on(d.$el,"touchstart","span.fr-audio",function(){Ke=!1}),d.events.$on(d.$el,"touchmove",function(){Ke=!0})),d.events.$on(d.$el,"click touchend","span.fr-audio",q),d.events.on("mouseup window.mouseup",function(){return P()}),d.events.on("commands.mousedown",function(ge){ge.parents(".fr-toolbar").length&&P()})},startRecord:function(){$("#startRecord").removeClass("visible").addClass("hidden"),$("#stopRecord").removeClass("hidden").addClass("visible"),s.start().then(function(U){}).catch(function(U){console.error(U)})},stopRecord:function(){$("#startRecord").removeClass("hidden").addClass("visible"),$("#stopRecord").removeClass("visible").addClass("hidden"),s.stop().getMp3().then(function(U){var Oe=U[0],J=U[1],be=new File(Oe,"audio.mp3",{type:J.type,lastModified:Date.now()});if(be){var Ne=d.popups.get(e).data("instance");d.events.disableBlur(),Ne.audioCustom.upload([be]),Ne.events.enableBlur()}}).catch(function(U){alert("We could not retrieve your message"),console.log(U)})},showInsertPopup:function(){d.popups.get(e)||ue(),d.opts.audioButtons.some(function(U){return U==="microphone"?(d.audioCustom.showLayer("audio-microphone"),!0):U==="audioByURL"?(d.audioCustom.showLayer("audio-by-url"),!0):U==="audioUpload"?(d.audioCustom.showLayer("audio-upload"),!0):!1})},showEditPopup:function(U){var Oe="audioCustom.edit";d.popups.get(Oe)||v(),d.popups.setContainer(Oe,d.$sc),d.popups.refresh(Oe);var J=U.find("audio"),be=J.offset(),Ne=be.left,u=be.top,it=J.outerHeight();d.popups.show(Oe,Ne+J.outerWidth()/2,u+it,it)},refreshMicrophoneButton:function(U){var Oe=d.popups.get(e);Oe.find(".fr-audio-microphone-layer").hasClass("fr-active")&&U.addClass("fr-active").attr("aria-pressed",!0)},refreshByURLButton:function(U){var Oe=d.popups.get(e);Oe.find(".fr-audio-by-url-layer").hasClass("fr-active")&&U.addClass("fr-active").attr("aria-pressed",!0)},refreshUploadButton:function(U){var Oe=d.popups.get(e);Oe.find(".fr-audio-upload-layer").hasClass("fr-active")&&U.addClass("fr-active").attr("aria-pressed",!0)},showLayer:function(U){var Oe=d.popups.get(e);d.popups.setContainer(e,j?d.$sc:d.$tb);var J,be,Ne=0;if(j){var u=j.find("audio");Ne=u.outerHeight();var it=u.offset();J=it.left+u.width()/2,be=it.top+Ne}else if(d.opts.toolbarInline)be=Oe.offset().top-d.helpers.getPX(Oe.css("margin-top")),Oe.hasClass("fr-above")&&(be+=Oe.outerHeight());else{var De=d.$tb.find('.fr-command[data-cmd="audioCustom"]'),Vt=De.offset();J=Vt.left+De.outerWidth()/2,be=Vt.top+(d.opts.toolbarBottom?10:De.outerHeight()-10)}Oe.find(".fr-layer").removeClass("fr-active"),Oe.find(".fr-"+U+"-layer").addClass("fr-active"),d.popups.show(e,J,be,Ne),d.accessibility.focusPopup(Oe),d.popups.refresh(e)},hideProgressBar:function(U){var Oe=d.popups.get(e);if(Oe){Oe.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),Oe.find(".fr-audio-progress-bar-layer").removeClass("fr-active"),Oe.find(".fr-buttons").show();var J=d.$el.find("audio.fr-error");(U||J.length)&&(d.events.focus(),J.length&&(J.parent().remove(),d.undo.saveStep(),d.undo.run(),d.undo.dropRedo()),d.popups.hide(e))}},upload:function(U){if(console.log(U),!(U&&U.length))return!1;var Oe=U[0],J=Oe.type.replace(/audio\//g,"");return d.opts.audioAllowedTypes.includes(J)?d.events.trigger("audio.beforeUpload",[U])!==!1:(k(a),!1)},insertByURL:function(U){if(!U){var Oe=d.popups.get(e);U=(Oe.find('.fr-audio-by-url-layer input[type="text"]').val()||"").trim()}/^http/.test(U)||(U="https://"+U),te(U)},remove:function(){if(j){var ge=j;if(d.events.trigger("audio.beforeRemove",[ge])!==!1){d.popups.hideAll();var U=ge[0];d.selection.setBefore(U)||d.selection.setAfter(U),ge.remove(),d.selection.restore(
1),d.html.fillEmptyBlocks(),d.events.trigger("audio.removed",[ge]),P(ge)}}}}},o.DefineIconTemplate("fontawesome_design",'<i class="fas fa-[NAME]"></i>'),o.DefineIcon("audioCustom",{NAME:"volume-up",template:"fontawesome_design"}),o.RegisterCommand("audioCustom",{title:"Insert Audio",focus:!1,undo:!1,refreshAfterCallback:!1,callback:function(){return this.popups.isVisible(e)?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide(e)):this.audioCustom.showInsertPopup()}}),o.DefineIcon("microphone",{NAME:"microphone",template:"fontawesome_design"}),o.RegisterCommand("microphone",{title:"Record Audio Message",focus:!1,undo:!1,callback:function(){this.audioCustom.showLayer("audio-microphone")},refresh:function(t){this.audioCustom.refreshMicrophoneButton(t)}}),o.DefineIcon("audioByURL",{NAME:"link",template:"fontawesome_design"}),o.RegisterCommand("audioByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.audioCustom.showLayer("audio-by-url")},refresh:function(t){this.audioCustom.refreshByURLButton(t)}}),o.DefineIcon("audioUpload",{NAME:"upload",template:"fontawesome_design"}),o.RegisterCommand("audioUpload",{title:"Upload Audio",undo:!1,focus:!1,toggle:!0,callback:function(){this.audioCustom.showLayer("audio-upload")},refresh:function(t){this.audioCustom.refreshUploadButton(t)}}),o.RegisterCommand("audioDismissError",{title:"OK",undo:!1,callback:function(){this.audioCustom.hideProgressBar(!0)}}),o.RegisterCommand("audioInsertByURL",{undo:!0,focus:!0,callback:function(){this.audioCustom.insertByURL()}}),o.RegisterCommand("audioStartRecord",{undo:!0,focus:!0,callback:function(){this.audioCustom.startRecord()}}),o.RegisterCommand("audioStopRecord",{undo:!0,focus:!0,callback:function(){this.audioCustom.stopRecord()}}),o.DefineIcon("audioRemove",{NAME:"trash",template:"fontawesome_design"}),o.RegisterCommand("audioRemove",{title:"Remove",callback:function(){this.audioCustom.remove()}})})(Co.default);var wn=ba(_a()),sr=wn.default.MODULES.helpers;wn.default.MODULES.helpers=function(){let o=sr.apply(this,arguments);return o.screenSize=function(){return window.innerWidth>=1350?wn.default.LG:window.innerWidth>=996?wn.default.MD:window.innerWidth>992&&window.innerWidth<996?wn.default.SM:window.innerWidth>=768?wn.default.MD:wn.default.XS},o};var Io=ba(_a());(function(o){o.POPUP_TEMPLATES=xn(Pn({},o.POPUP_TEMPLATES),{"customUpload.progressbar":"[_PROGRESS_BAR_]","customUpload.error":"[_CUSTOM_MSG_]","customUpload.videoSizeError":"[_VIDEO_SIZE_ERROR_]"}),o.RegisterCommand("uploadErrorPopupClose",{title:"Close",undo:!1,focus:!1,callback:function(){this.customUpload.hideImageUploadErrorPopup()}}),o.RegisterCommand("videoSizeErrorPopupClose",{title:"Close",undo:!1,focus:!1,callback:function(){this.customUpload.hideVideoSizeErrorPopup()}}),o.PLUGINS.customUpload=function(d){let t='<div class="fr-image-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader fr-indeterminate"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="imageDismissError" tabIndex="2" role="button">OK</button></div></div>';function s(){var k=d.popups.create("customUpload.progressbar",{progress_bar:t});return d.popups.setContainer("customUpload.progressbar",d.$sc),k}function h(){var E=d.popups.create("customUpload.error",{custom_msg:'<div style="text-align: center;">\n <h3 class="fr-message" style="padding: 1em;">Upload error</h3>\n <p>Please check your network connection and try again.</p>\n <div class="fr-action-buttons">\n <button type="button" class="fr-command fr-dismiss ui floated basic button small editor-cancel-btn"\n data-cmd="uploadErrorPopupClose" tabIndex="2" role="button"\n style="margin-right: 40%; margin-left: 40%;">OK</button>\n </div>\n </div>'});return d.popups.setContainer("customUpload.error",d.$box),E}function a(){var E=d.popups.create("customUpload.videoSizeError",{video_size_error:'<div style="text-align: center;">\n <h3 class="fr-message" style="padding: 1em;">Video Upload Error</h3>\n <p>Video file is too large. Maximum size allowed is 32 MB.</p>\n <div class="fr-action-buttons">\n <button type="button" class="fr-command fr-dismiss ui floated basic button small editor-cancel-btn"\n data-cmd="videoSizeErrorPopupClose" tabIndex="2" role="button"\n style="margin-right: 40%; margin-left: 40%;">OK</button>\n </div>\n </div>'});return d.popups.setContainer("customUpload.videoSizeError",d.$box),E}function y(k){var te,Ke,q,ge,U,Oe,J;var E=d.popups.get("customUpload.progressbar");E||(E=s()),E.find(".fr-image-progress-bar-layer").addClass("fr-active");
1var Q=((Ke=(te=k==null?void 0:k.offset())==null?void 0:te.left)!=null?Ke:0)+((q=k==null?void 0:k.outerWidth())!=null?q:0)/2,x=((U=(ge=k==null?void 0:k.offset())==null?void 0:ge.top)!=null?U:0)+(d.opts.toolbarBottom?10:((Oe=k==null?void 0:k.outerHeight())!=null?Oe:100)-10);d.popups.show("customUpload.progressbar",Q,x,(J=k==null?void 0:k.outerHeight())!=null?J:10)}function j(){var te,Ke,q,ge,U,Oe;let k=d.$el.find("p");var E=d.popups.get("customUpload.error");E||(E=h());var Q=((Ke=(te=k==null?void 0:k.offset())==null?void 0:te.left)!=null?Ke:0)+((q=k==null?void 0:k.outerWidth())!=null?q:0)/2,x=((U=(ge=k==null?void 0:k.offset())==null?void 0:ge.top)!=null?U:0)+(d.opts.toolbarBottom?10:((Oe=k==null?void 0:k.outerHeight())!=null?Oe:100)-10);d.popups.show("customUpload.error",d.$sc.offset().left,d.$sc.offset().top)}function P(){let k=d.$el.find("p");var E=d.popups.get("customUpload.videoSizeError");E||(E=a()),d.popups.show("customUpload.videoSizeError",d.$sc.offset().left,d.$sc.offset().top)}function ne(){y(d.$el.find("p"))}function ue(){y(d.$tb.find('.fr-command[data-cmd="insertFile"]'))}function v(){d.el.addEventListener("paste",function(k){var E=k.clipboardData;if(!(!E||!E.items))for(var Q=0;Q<E.items.length;Q++){var x=E.items[Q];if(x.kind==="file"){var te=x.getAsFile();if(te&&te.type&&te.type.indexOf("image/")!==0){d._pastedNonImageFile=te;return}}}},!0),d.events.on("audio.beforeUpload",function(k,E){return d.events.trigger("customUpload.onAudiosUpload",[k,k[0]&&k[0].type&&!E],!0),!1}),d.events.on("paste.before",function(k){var E=k.clipboardData;if(E&&E.files.length){var Q=E.files[0],x=Q.type&&Q.type.indexOf("image/")===0;if(!x)return ne(),d.events.trigger("customUpload.onFilesUpload",[E.files],!0),!1}return!0}),d.events.on("file.beforeUpload",function(k){d.events.trigger("customUpload.onFilesUpload",[k],!0);let E=d.$el.find('a[class="fr-file"]');for(let Q=0;Q<E.length;Q++)E[Q].nextSibling&&E[Q].nextSibling.localName!=="br"&&E[Q].insertAdjacentHTML("afterEnd","<br>");return ue(),!1}),d.events.on("image.beforePasteUpload",function(k){k&&k.parentNode.removeChild(k)}),d.events.on("video.beforeUpload",function(k){return k&&k[0]&&k[0].size>32*1024*1024?(P(),!1):!0})}function g(k){d.popups.hide("audioCustom.insert"),d.audioCustom.insertByURL(k)}function I(k,E){d.popups.hide("customUpload.progressbar"),d.file.insert(k,E)}return{_init:v,onFileInsert:I,onAudioInsert:g,showImageUploadingPopup:ne,hideImageUploadingPopup:function(){d.popups.hide("customUpload.progressbar")},showImageUploadErrorPopup:j,hideImageUploadErrorPopup:function(){d.popups.hide("customUpload.error")},showVideoSizeErrorPopup:P,hideVideoSizeErrorPopup:function(){d.popups.hide("customUpload.videoSizeError")}}}})(Io.default);var Lo=ba(_a());(function(o){o.LANGUAGE.de.translation["Insert Page Break"]="Seitenumbruch einf\xFCgen",o.LANGUAGE.fr.translation["Insert Page Break"]="Ins\xE9rer un saut de page",o.DefineIcon("pageBreak",{FA5NAME:"grip-lines",template:"font_awesome_5"}),o.RegisterCommand("pageBreak",{title:"Insert Page Break",focus:!0,undo:!0,refreshAfterCallback:!1,callback:function(){this.html.insert('<hr class="page-break" />')}})})(Lo.default);var Oo=ba(_a());(function(o){o.DefineIcon("signature",{FA5NAME:"signature",template:"font_awesome_5"}),o.RegisterCommand("signature",{title:"Insert Signature",focus:!0,undo:!0,refreshAfterCallback:!1,callback:function(){let e="sig-".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),d='<hz-signature id="'.concat(e,'" width="300" height="150"></hz-signature>'),t=this,s=t.selection.save();t.html.insert(d,!1),t.selection.restore(s),window.dispatchEvent(new CustomEvent("hzSignatureInserted",{detail:{id:e}})),setTimeout(()=>{let h=t.$el.find('hz-signature[id="'.concat(e,'"]'));if(h.length){let a=h.prev();a.is("p")&&(a.html()===" "||a.html().trim()===""||a.html()==="<br>")&&a.remove();let y=h.next();y.is("p")&&(y.html()===" "||y.html().trim()===""||y.html()==="<br>")&&y.remove()}},10)}})})(Oo.default);var No=ba(_a());(function(o){o.POPUP_TEMPLATES["bpmn.choice"]="[_CUSTOM_LAYER_]",o.RegisterCommand("bpmnVisualEditorButton",{title:"Visual Editor",callback:function(){this.bpmn.openVisualEditor()}}),o.RegisterCommand("bpmnChoiceCancelButton",{title:"Cancel",callback:function(){this.bpmn.hideChoicePopup()}}),o.PLUGINS.bpmn=function(e){let d=null;function t(){let v='\n <div class="fr-bpmn-choice-layer fr-layer fr-active" id="fr-bpmn-choice-layer-'.concat(e.id,'" style="padding: 2.5em; min-width: 400px;">\n <h3 class="ui header" style="margin-top: 0; text-align: center;">\n <i class="sitemap icon"></i>\n <div class="content">\n Edit BPMN Diagram\n </div>\n </h3>\n <div style="display: flex; gap: 1em; justify-content: center; margin-top: 2em; margin-bottom: 2em;">\n <button type="button" class="fr-command ui button large icon labeled teal" data-cmd="bpmnVisualEditorButton" tabindex="1" style="min-width: 160px;">\n <i class="edit icon"></i> Visual Editor\n </button>\n </div>\n <div style="text-align: center; padding-top: 1em; border-top: 1px solid #e0e0e0;">\n <button type="button" class="fr-command ui button basic" data-cmd="bpmnChoiceCancelButton" tabindex="2">\n <i class="times icon"></i> Cancel\n </button>\n </div>\n </div>\n ');return e.popups.create("bpmn.choice",{custom_layer:v})}function s(v){let g=e.popups.get("bpmn.choice");g||(g=t()),d=v,e.popups.show("bpmn.choice",null,null,null)}function h(){e.popups.hide("bpmn.choice")}let a='<?xml version="1.0" encoding="UTF-8"?>\n<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">\n <bpmn:process id="Process_1" isExecutable="false">\n <bpmn:startEvent id="StartEvent_1" name="Start">\n <bpmn:outgoing>Flow_1</bpmn:outgoing>\n </bpmn:startEvent>\n <bpmn:task id="Task_1" name="Simple Task">\n <bpmn:incoming>Flow_1</bpmn:incoming>\n <bpmn:outgoing>Flow_2</bpmn:outgoing>\n </bpmn:task>
1\n <bpmn:endEvent id="EndEvent_1" name="End">\n <bpmn:incoming>Flow_2</bpmn:incoming>\n </bpmn:endEvent>\n <bpmn:sequenceFlow id="Flow_1" sourceRef="StartEvent_1" targetRef="Task_1" />\n <bpmn:sequenceFlow id="Flow_2" sourceRef="Task_1" targetRef="EndEvent_1" />\n </bpmn:process>\n <bpmndi:BPMNDiagram id="BPMNDiagram_1">\n <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">\n <bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">\n <dc:Bounds x="152" y="102" width="36" height="36" />\n <bpmndi:BPMNLabel>\n <dc:Bounds x="158" y="145" width="25" height="14" />\n </bpmndi:BPMNLabel>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id="Task_1_di" bpmnElement="Task_1">\n <dc:Bounds x="240" y="80" width="100" height="80" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id="EndEvent_1_di" bpmnElement="EndEvent_1">\n <dc:Bounds x="392" y="102" width="36" height="36" />\n <bpmndi:BPMNLabel>\n <dc:Bounds x="400" y="145" width="20" height="14" />\n </bpmndi:BPMNLabel>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">\n <di:waypoint x="188" y="120" />\n <di:waypoint x="240" y="120" />\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2">\n <di:waypoint x="340" y="120" />\n <di:waypoint x="392" y="120" />\n </bpmndi:BPMNEdge>\n </bpmndi:BPMNPlane>\n </bpmndi:BPMNDiagram>\n</bpmn:definitions>';function y(){let v=new CustomEvent("openBpmnInsertModal",{detail:{editor:e,defaultXml:a}});window.dispatchEvent(v)}function j(v){if(!v){alert("Please provide BPMN XML");return}try{let g=encodeURIComponent(v),I='<div class="bpmn" contenteditable="false" data-original-xml="'.concat(g,'">').concat(v,"</div><p><br></p>");e.html.insert(I),e.events.trigger("contentChanged")}catch(g){alert("Error inserting BPMN diagram: "+g.message)}}function P(){h();let v=d?decodeURIComponent(d.getAttribute("data-original-xml")||""):"",g=new CustomEvent("openBpmnVisualEditor",{detail:{xml:v,element:d}});window.dispatchEvent(g)}function ne(){e.events.on("click",function(g){if(g.target&&g.target.closest){let I=g.target.closest(".bpmn");I&&!e.codeView.isActive()&&(g.preventDefault(),g.stopPropagation(),d=I,P())}});let v=function(g){let{element:I,encodedXml:k,xml:E}=g.detail,Q=e.el;if(!Q||!I||!Q.contains(I))return;I.setAttribute("data-original-xml",k),I.removeAttribute("data-processed"),I.innerHTML=E;let x=e.html.get();e.html.set(x),e.undo.saveStep(),e.events.trigger("contentChanged"),e.edit&&e.edit.on&&e.edit.on()};window.addEventListener("bpmnDiagramUpdatedFromModal",v),e.events.on("destroy",function(){window.removeEventListener("bpmnDiagramUpdatedFromModal",v)})}let ue=function(v){let{xml:g}=v.detail;j(g)};return window.addEventListener("bpmnInsertFromModal",ue),e.events.on("destroy",function(){window.removeEventListener("bpmnInsertFromModal",ue)}),{_init:ne,showChoicePopup:s,hideChoicePopup:h,showInsertPopup:y,insertFromXML:j,openVisualEditor:P}},o.DefineIconTemplate("fontawesome_design",'<i class="fas fa-[NAME]"></i>'),o.DefineIcon("insertBpmn",{NAME:"sitemap",template:"fontawesome_design"}),o.RegisterCommand("insertBpmn",{title:"Insert BPMN Diagram",focus:!1,undo:!1,refreshAfterCallback:!1,callback:function(){this.bpmn.showInsertPopup()}})})(No.default);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.