/*! * Cosmos v1.48.0 * * Documentação: https://cosmos.info.ufrn.br * * Copyright 2019-2025 */ !function(e){"use strict";var t;const n="Cosmos";if(window[n]=null!==(t=window[n])&&void 0!==t?t:{},void 0===window[n].urlBase){const e="https://static.info.ufrn.br/release/";console.warn(`${n}.urlBase not defined, defaulting to ${e}`),window[n].urlBase=e}function r(e,t){e?window[n][e]=t:window[n]=Object.assign(window[n],t)}const a=window[n],o=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}};function i(e,t,n,r=0){const a=Object.getPrototypeOf(e);if(Object.prototype.hasOwnProperty.call(a,t)){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,{get(...e){var t;return o&&(null===(t=o.get)||void 0===t?void 0:t.apply(this,e))},set(...e){var a;const i=this[t];o&&(null===(a=o.set)||void 0===a||a.apply(this,e));const s=this[t];"function"==typeof n&&setTimeout(n.bind(this,i,s),r)}})}}function s(e,t=1){let n;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)){n=e.substring(1).split(""),3===n.length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]);const r=`0x${n.join("")}`;return`rgba(${[r>>16&255,r>>8&255,255&r].join(",")},${t})`}throw new Error("Bad Hex")}var c=Object.freeze({__proto__:null,debounce:o,hexToRgba:s,observeElement:i});!function(e){var t={observeElement:i,debounce:o,hexToRgba:s};e.utils=t}(window.Cosmos);const l="container-conteudo__overlay",u=`.${l}`;const d=()=>document.querySelector(u);const f={show:function(e){let t=d()||function(){const e=document.createElement("div");return e.classList.add(l),e}();if(t.style.display="block",!t.parentElement){(e||document.querySelector(".container-conteudo")||document.body).appendChild(t)}return t},hide:function(){var e;null===(e=d())||void 0===e||e.remove()}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;T(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function q(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){q(o,r,a,i,s,"next",e)}function s(e){q(o,r,a,i,s,"throw",e)}i(void 0)}))}}function T(e){return function(e){if(Array.isArray(e))return I(e)}(e)||j(e)||M(e)||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 M(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function j(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function be(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function ye(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){be(o,r,a,i,s,"next",e)}function s(e){be(o,r,a,i,s,"throw",e)}i(void 0)}))}}function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function Ee(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return we(e,t)}(e)||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 we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Ce(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function qe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qe=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new O(r||[]);return a(i,"_invoke",{value:k(e,n,s)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function b(){}function y(){}function g(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,L=w&&w(w(T([])));L&&L!==n&&r.call(L,i)&&(E=L);var x=g.prototype=b.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(a,o,i,s){var c=d(e[a],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==_e(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(u).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function k(t,n,r){var a=f;return function(o,i){if(a===h)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var c=C(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===f)throw a=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=h;var l=d(t,n,r);if("normal"===l.type){if(a=r.done?m:p,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=m,r.method="throw",r.arg=l.arg)}}}function C(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=d(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Oe(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function Te(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Oe(o,r,a,i,s,"next",e)}function s(e){Oe(o,r,a,i,s,"throw",e)}i(void 0)}))}}function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e,t,n){var r;return r=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Me(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e){return function(e){if(Array.isArray(e))return Pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pe(e,t)}(e)||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 Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function Ge(e,t){if(e){if("string"==typeof e)return We(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Ze(e){return function(e){if(Array.isArray(e))return at(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rt(e)||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 et(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function tt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){et(o,r,a,i,s,"next",e)}function s(e){et(o,r,a,i,s,"throw",e)}i(void 0)}))}}function nt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||rt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e,t){if(e){if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"",n='\n
\n \n
\n
\n
');return(new DOMParser).parseFromString(n,"text/html").body.firstElementChild}}],(n=null)&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),n=0,r=1,a=2,o=3,i=4,s=5,c=6,l=7,u=8,d=10;function f(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(n){return 0===n.text.toLowerCase().indexOf(e.toLowerCase())&&t.indexOf(n.text)<0}))}var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.el=e,this.comboEl=e.querySelector("[role=combobox]"),this.listboxEl=e.querySelector("[role=listbox]"),this.originalEl=n,this.idBase=this.comboEl.id||"combo",this.options=t,this.activeIndex=0,this.open=!1,this.searchString="",this.searchTimeout=null,e&&this.comboEl&&this.listboxEl&&this.init()};p.prototype.init=function(){var t=this,n=this.listboxEl.getAttribute("aria-labelledby");if(n){var r=document.querySelector("#".concat(n));r&&r.setAttribute("for",this.comboEl.id)}if(this.options.forEach((function(e,n){var r=t.createOption(e,n);t.listboxEl.appendChild(r)})),this.updateDisabled(),this.updateFilledState(),this.updateInvalidState(),this.selectOption(this.originalEl&&this.originalEl.selectedIndex||0),this.onOptionChange(this.originalEl&&this.originalEl.selectedIndex||0),this.comboEl.addEventListener("blur",this.onComboBlur.bind(this)),this.comboEl.addEventListener("focus",this.onComboFocus.bind(this)),this.listboxEl.addEventListener("focusout",this.onComboBlur.bind(this)),this.comboEl.addEventListener("click",this.onComboClick.bind(this)),this.comboEl.addEventListener("keydown",this.onComboKeyDown.bind(this)),this.observer=new MutationObserver((function(e){t.handleMutations(e)})),this.observer.observe(this.originalEl,{attributes:!0,childList:!0,characterData:!0,attributeFilter:["disabled","class"]}),this.originalEl){var a=function(e,n){e!==n&&(t.selectOption(t.originalEl.selectedIndex),t.onOptionChange(t.originalEl.selectedIndex))};e.utils.observeElement(this.originalEl,"value",a),e.utils.observeElement(this.originalEl,"selectedIndex",a)}},p.prototype.handleMutations=function(e){var t=this;e.forEach((function(e){"childList"!==e.type&&"characterData"!==e.type||t.updateOptions(),"attributes"===e.type&&("disabled"===e.attributeName&&t.updateDisabled(),"class"===e.attributeName&&t.updateInvalidState())}))},p.prototype.updateInvalidState=function(){this.originalEl&&(this.originalEl.classList.contains("is-invalid")?(this.el.classList.add("is-invalid"),this.comboEl.classList.add("is-invalid"),this.comboEl.setAttribute("aria-invalid","true")):(this.el.classList.remove("is-invalid"),this.comboEl.classList.remove("is-invalid"),this.comboEl.removeAttribute("aria-invalid")))},p.prototype.updateFilledState=function(){this.originalEl&&(""!==this.originalEl.value.trim()?this.comboEl.classList.add("filled"):this.comboEl.classList.remove("filled"))},p.prototype.updateOptions=function(){var e=this;this.originalEl&&(this.listboxEl.innerHTML="",this.options=h(this.originalEl.options).map((function(e){return{text:e.innerText,value:e.value}})),this.options.forEach((function(t,n){var r=e.createOption(t,n);e.listboxEl.appendChild(r)})))},p.prototype.updateDisabled=function(){this.originalEl&&(this.originalEl.disabled?(this.el.classList.add("disabled"),this.comboEl.setAttribute("disabled","true"),this.comboEl.setAttribute("aria-disabled","true"),this.listboxEl.setAttribute("aria-disabled","true")):(this.el.classList.remove("disabled"),this.comboEl.removeAttribute("disabled"),this.comboEl.removeAttribute("aria-disabled"),this.listboxEl.removeAttribute("aria-disabled")))},p.prototype.addOptionHandler=function(e,t){var n=this;e.addEventListener("click",(function(e){e.stopPropagation(),n.onOptionClick(t)})),e.addEventListener("mousedown",this.onOptionMouseDown.bind(this))},p.prototype.createOption=function(e,t){var n=document.createElement("div");return n.setAttribute("role","option"),n.setAttribute("value",e.value),n.id="".concat(this.idBase,"-").concat(t),n.className="combo-option",n.innerText=e.text,this.originalEl&&(this.originalEl.options[t].hasAttribute("data-placeholder")&&n.setAttribute("data-placeholder","true"),this.originalEl.options[t].disabled&&(n.setAttribute("disabled","true"),n.setAttribute("aria-disabled","true"))),this.addOptionHandler(n,t),n},p.prototype.getSearchString=function(e){var t=this;return"number"==typeof this.searchTimeout&&window.clearTimeout(this.searchTimeout),this.searchTimeout=window.setTimeout((function(){t.searchString=""}),500),this.searchString+=e,this.searchString},p.prototype.onComboFocus=function(){if(!this.isDisabled()){var e=this.el.closest(".form-group");e&&e.classList.add("focused")}},p.prototype.onComboBlur=function(e){if(this.ignoreBlur)this.ignoreBlur=!1;else if(!this.listboxEl.contains(e.relatedTarget)){this.open&&(this.shouldSelectOption(this.activeIndex)&&this.selectOption(this.activeIndex),this.updateMenuState(!1,!1));var t=this.el.closest(".form-group");t&&t.classList.remove("focused"),this.updateFilledState()}},p.prototype.onComboClick=function(e){if(!this.shouldOpenListbox())return e.preventDefault(),void e.stopPropagation();this.updateMenuState(!this.open,!1)},p.prototype.onComboKeyDown=function(e){if(this.shouldOpenListbox()){var t=e.key,f=this.options.length-1,p=function(e,t){var f=e.key,p=e.altKey,h=e.ctrlKey,m=e.metaKey;if(!t&&["ArrowDown","ArrowUp","Enter"," "].includes(f))return s;if("Home"===f)return a;if("End"===f)return o;if("Backspace"===f||"Clear"===f||1===f.length&&" "!==f&&!p&&!h&&!m)return d;if(t){if("ArrowUp"===f&&p)return r;if("ArrowDown"===f&&!p)return i;if("ArrowUp"===f)return u;if("PageUp"===f)return l;if("PageDown"===f)return c;if("Escape"===f)return n;if("Enter"===f||" "===f)return r}}(e,this.open);switch(p){case o:case a:this.updateMenuState(!0,!1);case i:case u:case l:case c:return e.preventDefault(),this.onOptionChange(function(e,t,n){switch(n){case a:return 0;case o:return t;case u:return Math.max(0,e-1);case i:return Math.min(t,e+1);case l:return Math.max(0,e-10);case c:return Math.min(t,e+10);default:return e}}(this.activeIndex,f,p));case r:if(e.preventDefault(),this.shouldSelectOption(this.activeIndex))return this.selectOption(this.activeIndex),this.updateMenuState(!1,!1);break;case n:return e.preventDefault(),this.updateMenuState(!1);case d:return this.onComboType(t);case s:return e.preventDefault(),this.updateMenuState(!0)}}else e.stopPropagation()},p.prototype.onComboType=function(e){this.updateMenuState(!0);var t=this.getSearchString(e),n=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=[].concat(h(e.slice(r)),h(e.slice(0,r))),o=f(a,t)[0];if(o)return e.indexOf(o);if((n=t.split("")).every((function(e){return e===n[0]}))){var i=f(a,t[0]);return e.indexOf(i[0])}return-1}(this.options,t,this.activeIndex+1);n>=0?this.onOptionChange(n):(window.clearTimeout(this.searchTimeout),this.searchString="")},p.prototype.updateOptionActive=function(){var e,t,n,r,a,o,i,s,c=this.el.querySelectorAll("[role=option]");h(c).forEach((function(e){e.classList.remove("option-current")})),c[this.activeIndex].classList.add("option-current"),(s=this.listboxEl)&&s.clientHeighto+a,r=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(c[this.activeIndex])||c[this.activeIndex].scrollIntoView({behavior:"smooth",block:"nearest"})},p.prototype.onOptionChange=function(e){this.activeIndex=e,this.comboEl.setAttribute("aria-activedescendant","".concat(this.idBase,"-").concat(e)),this.updateOptionActive()},p.prototype.onOptionClick=function(e){if(!this.shouldSelectOption(e))return this.ignoreBlur=!0,void this.comboEl.focus();this.onOptionChange(e),this.selectOption(e),this.updateMenuState(!1)},p.prototype.onOptionMouseDown=function(){this.ignoreBlur=!0},p.prototype.selectOption=function(e){this.activeIndex=e;var t=this.options[e];this.comboEl.innerHTML=t.text;var n=this.el.querySelectorAll("[role=option]");h(n).forEach((function(e){e.setAttribute("aria-selected","false");var t=e.getAttribute("aria-label");t&&t.startsWith("Selecionado: ")&&e.setAttribute("aria-label",t.replace("Selecionado: ",""))})),n[e].setAttribute("aria-selected","true"),n[e].hasAttribute("data-placeholder")||(n[e].hasAttribute("aria-label")?n[e].setAttribute("aria-label","Selecionado: ".concat(n[e].getAttribute("aria-label"))):n[e].setAttribute("aria-label","Selecionado: ".concat(this.options[e].text))),this.dispatchChangeEvent(t)},p.prototype.dispatchChangeEvent=function(e){var t=new CustomEvent("change",{bubbles:!0,detail:{value:e.value,text:e.text}});this.originalEl&&this.originalEl.value!==e.value&&(this.originalEl.value=e.value,this.originalEl.dispatchEvent(t)),this.comboEl.dispatchEvent(t)},p.prototype.shouldSelectOption=function(e){return!this.listboxEl.querySelectorAll("[role=option]")[e].hasAttribute("disabled")},p.prototype.shouldOpenListbox=function(){return!this.isDisabled()},p.prototype.isDisabled=function(){return this.originalEl.hasAttribute("aria-disabled")||this.originalEl.disabled},p.prototype.updateMenuState=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.open!==e){this.open=e,this.comboEl.setAttribute("aria-expanded","".concat(e)),e?(this.el.classList.add("open"),this.onOptionChange(this.activeIndex)):this.el.classList.remove("open");var n=e?"".concat(this.idBase,"-").concat(this.activeIndex):"";this.comboEl.setAttribute("aria-activedescendant",n),t&&this.comboEl.focus()}};var m=function(e){(e instanceof HTMLElement?e:document).querySelectorAll(["select.custom-select:not([data-cosmos])"]).forEach((function(e){var n=e.id||"custom-select-".concat(Math.floor(1e3*Math.random()));e.setAttribute("data-cosmos","true"),e.setAttribute("hidden","true"),e.setAttribute("aria-hidden","true");var r=Array.from(e.options).map((function(e){return{value:e.getAttribute("value"),text:e.innerText}})),a=document.querySelector('label[for="'.concat(n,'"]'));a&&a.setAttribute("id",a.id||"".concat(n,"-label"));var o=t.createCombobox("".concat(n,"-custom"),a&&a.id);e.insertAdjacentElement("afterend",o),new p(o,r,e)}))};window.addEventListener("load",(function(){m()}));var b="CustomSelect",y={Select:p,init:m};e[b]=y,e[b].init()}(window.Cosmos),Element.prototype.newAddEventListener||(Element.prototype.newAddEventListener=Element.prototype.addEventListener,Element.prototype.addEventListener=function(e,t,n){n||(n=!1),this.newAddEventListener(e,t,n),this.eventListenerList||(this.eventListenerList={}),this.eventListenerList[e]||(this.eventListenerList[e]=[]),this.eventListenerList[e].push({listener:t,useCapture:n})},Element.prototype.getEventListeners=function(e){return this.eventListenerList||(this.eventListenerList={}),e?this.eventListenerList[e]:this.eventListenerList},Element.prototype.clearEventListeners=function(e){var t=this;if(this.eventListenerList||(this.eventListenerList={}),e){var n=this.getEventListeners(e);if(n)for(var r=n.length-1;r>=0;r-=1){var a=n[r];this.removeEventListener(e,a.listener,a.useCapture)}}else Object.keys(this.getEventListeners()).forEach((function(e){t.clearEventListeners(e)}))},Element.prototype.newRemoveEventListener=Element.prototype.removeEventListener,Element.prototype.removeEventListener=function(e,t,n){n||(n=!1),this.newRemoveEventListener(e,t,n),this.eventListenerList||(this.eventListenerList={}),this.eventListenerList[e]||(this.eventListenerList[e]=[]);for(var r=0;r992?(o&&n&&(n.classList.add("d-none"),o.classList.remove("d-none")),t.classList.contains("expanded")&&t.classList.remove("expanded"),r.classList.contains("nav-open")&&r.classList.remove("nav-open"),a&&a.classList.contains("d-block")&&a.classList.remove("d-block")):o&&n&&(o.classList.add("d-none"),n.classList.remove("d-none"))}))}));var o=document.querySelectorAll("header button#toggle-menu"),i=null!==document.querySelector("header button#toggle-header-mobile"),s=function(t){var r=t.parentElement,a=r.previousElementSibling,o=i;t.classList.contains("expanded")?t.classList.remove("expanded"):(t.classList.add("expanded"),t.focus({preventScroll:!0})),i&&(o=r.nextElementSibling.nextElementSibling);var s=t.querySelectorAll("[aria-expanded]"),c=t.querySelector(".menu-lateral__item");if(window.innerWidth>992)if(r.classList.contains(".nav-open")&&r.classList.remove(".nav-open"),c.classList.contains("nav-go-right")||c.classList.contains("nav-go-center")){var l=Array.from(c.children).find((function(e){return!e.classList.contains("d-none")})),u=Array.from(l.getElementsByClassName("submenu_itens")).find((function(e){return!e.classList.contains("nav-go-right")})),d=u.getElementsByClassName("back-menu")[0];for(s.forEach((function(e){e.setAttribute("aria-expanded","false")}));u!==c;){d.click(),d=y((u=u.parentElement.parentElement.parentElement).getElementsByClassName("back-menu"),1)[0]}if(u===c){var f=u.querySelectorAll("li button"),p=u.querySelectorAll("li a");u.setAttribute("aria-expanded","false"),f.forEach((function(e){return e.setAttribute("aria-expanded","false")})),p.forEach((function(e){return e.setAttribute("aria-expanded","false")}))}}else s.forEach((function(e){"true"===e.getAttribute("aria-expanded")?e.setAttribute("aria-expanded","false"):e.setAttribute("aria-expanded","true")}));else s.forEach((function(e){e.setAttribute("aria-expanded","true")})),i?r.classList.contains("nav-open")?n():o.classList.contains("nav-open")?(e.MenuNavRight.closeMenu(),r.classList.add("nav-open"),a.classList.add("d-block")):(r.classList.add("nav-open"),a.classList.add("d-block")):r.classList.contains("nav-open")?n():(r.classList.add("nav-open"),a.classList.add("d-block"))};document.querySelectorAll(".menu-lateral").forEach((function(e){e.toggleMenu=function(){s(e)}})),o.forEach((function(e){e.addEventListener("click",(function(){var e=document.querySelectorAll(".menu-lateral");e&&e.forEach((function(e){s(e)}))}))}));var c=document.querySelector(".container-conteudo__overlay.overlay-nav");c&&c.addEventListener("click",(function(){document.querySelector("header button#toggle-menu").click()}));document.querySelectorAll(".menu-lateral").forEach((function(e){if(void 0!==e.dataset.collapsible){e.parentElement.classList.add("menu-lateral-collapsible");var t=e.querySelector(".btn-collapsible");t&&"true"===t.getAttribute("aria-expanded")&&e.parentElement.classList.add("menu-lateral-collapsible-expanded")}var n=e.getElementsByClassName("menu-lateral__item")[0];n.querySelectorAll("button.submenu").forEach((function(e){e.addEventListener("click",(function(){var t=e.parentElement.parentElement,r=e.parentElement,a=e.nextElementSibling,o=t.querySelectorAll(".back-menu");a.querySelectorAll(".submenu_itens li").forEach((function(e){"false"===e.children[0].getAttribute("aria-expanded")&&e.children[0].setAttribute("aria-expanded","true")})),o.forEach((function(e){"false"===e.getAttribute("aria-expanded")&&e.setAttribute("aria-expanded","true")})),"false"===t.getAttribute("aria-expanded")&&(t.setAttribute("aria-expanded","true"),r.setAttribute("aria-expanded","true")),t.classList.add("nav-go-right"),a.classList.add("nav-go-center"),n.classList.contains("w-268px")||n.classList.add("w-268px"),setTimeout((function(){Array.from(t.children).forEach((function(e){e!==r&&e.classList.add("d-none")}))}),200)}))})),n.querySelectorAll("button.back-menu").forEach((function(e){e.addEventListener("click",(function(){var t=e.parentElement.parentElement.parentElement.parentElement,r=e.parentElement.parentElement,a=t.querySelectorAll("li button"),o=t.querySelectorAll("li a");e.parentElement.parentElement.parentElement.parentElement.parentElement.className.includes("menu-lateral__content")&&(a.forEach((function(e){return e.setAttribute("aria-expanded","true")})),o.forEach((function(e){return e.setAttribute("aria-expanded","true")})),t.setAttribute("aria-expanded","true")),Array.from(t.children).forEach((function(e){e.classList.remove("d-none")})),t.classList.contains("menu-lateral__item")&&n.classList.remove("w-268px"),r.classList.add("d-none"),r.classList.remove("nav-go-center"),t.classList.remove("nav-go-right"),r.classList.remove("d-none")}))})),n.querySelectorAll("a.nav-link").forEach((function(e){e.addEventListener("click",(function(){var t=e.parentElement;e.classList.contains("active")||(n.querySelectorAll(".active").forEach((function(e){e.classList.remove("active")})),a(t.children[0]))}))}))}));var l=function(){var e=".menu-lateral[data-collapsible] ",t=".menu-lateral__item",n=document.querySelectorAll(e);var r=new MutationObserver((function(n){n.forEach((function(n){"attributes"===n.type&&function(e){var n=e.querySelectorAll(".btn-action"),r=e.querySelector(t),a=e.querySelector(".btn-collapsible"),o=e.querySelector(".btn-collapsible__icon"),i=e.querySelector(".btn-collapsible__text"),s=e.querySelector(".menu-lateral__item"),c=e.querySelectorAll("ul.submenu_itens a.active"),l=e.parentElement.classList.contains("container-conteudo__nav")?e.parentElement:void 0;"false"===r.getAttribute("aria-expanded")&&(l&&l.classList.remove("menu-lateral-collapsible-expanded"),a.setAttribute("aria-label","Clique para expandir o menu"),a.setAttribute("aria-pressed","false"),a.setAttribute("aria-expanded","false"),o.classList.replace("fa-chevron-left","fa-chevron-right"),i.innerHTML="Expandir menu",n.forEach((function(e){e&&(e.classList.remove("btn-primary"),e.classList.remove("rounded-pill"))}))),"true"===r.getAttribute("aria-expanded")&&(l&&l.classList.add("menu-lateral-collapsible-expanded"),a.setAttribute("aria-label","Clique para recolher o menu"),a.setAttribute("aria-pressed","true"),a.setAttribute("aria-expanded","true"),o.classList.replace("fa-chevron-right","fa-chevron-left"),i.innerHTML="Recolher menu",n.forEach((function(e){e&&(e.classList.replace("nav-link","btn-primary"),e.classList.add("rounded-pill","btn-primary"))}))),(c.length>0&&s.classList.contains("nav-go-center")||s.classList.contains("nav-go-right"))&&a.setAttribute("aria-expanded","true"),c.length<0&&a.setAttribute("aria-expanded","false")}(n.target.closest(e))}))})),a=function(e,t){s(t);var n=t.querySelectorAll("[aria-expanded]"),r=t.querySelector(".menu-lateral__item");if(e.classList.contains("nav-open")||e.classList.contains("nav-go-right")||e.classList.contains("nav-go-center")){var a=Array.from(r.children).find((function(e){return!e.classList.contains("d-none")})),o=Array.from(a.getElementsByClassName("submenu_itens")).find((function(e){return!e.classList.contains("nav-go-right")||!e.classList.contains("nav-go-center")})),i=o.getElementsByClassName("back-menu")[0];for(n.forEach((function(e){e.setAttribute("aria-expanded","false")}));o!==r;){i.click(),i=y((o=o.parentElement.parentElement.parentElement).getElementsByClassName("back-menu"),1)[0]}if(o===r){var c=o.querySelectorAll("li button"),l=o.querySelectorAll("li a");o.setAttribute("aria-expanded","false"),c.forEach((function(e){return e.setAttribute("aria-expanded","false")})),l.forEach((function(e){return e.setAttribute("aria-expanded","false")}))}}};n.forEach((function(e){var o=e.querySelector(t),i=function(){var e=document.createElement("div"),r=document.createElement("i"),a=document.createElement("span");return n.forEach((function(n){"true"===n.querySelector(t).getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","true"),a.innerHTML="Recolher menu",e.setAttribute("aria-label","Clique para recolher o menu"),r.classList.add("btn-collapsible__icon","fa-solid","fa-fw","fa-chevron-left")):(e.setAttribute("aria-expanded","false"),a.innerHTML="Expandir menu",e.setAttribute("aria-label","Clique para expandir o menu"),r.classList.add("btn-collapsible__icon","fa-solid","fa-fw","fa-chevron-right"))})),e.classList.add("btn-collapsible","writing-vertical-lr"),e.setAttribute("role","button"),r.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","0"),a.setAttribute("aria-hidden","true"),a.classList.add("btn-collapsible__text","writing-sideways-lr"),e.appendChild(r),e.appendChild(a),e}();if(window.innerWidth>992){var s=document.querySelector("#toggle-menu");s&&s.classList.add("d-none")}e.prepend(i),i.addEventListener("keypress",(function(t){"Enter"===t.key&&a(o,e)})),i.addEventListener("click",(function(){a(o,e)}));r.observe(o,{attributes:!0})}))};window.innerWidth>992&&l();var u=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,d={attributes:!0},f=document.querySelector("header button#toggle-menu"),p=document.querySelectorAll(".menu-lateral"),h=new u((function(e){e.forEach((function(e){"data-collapsible"===e.attributeName&&window.innerWidth>992&&("true"===e.target.dataset.collapsible||""===e.target.dataset.collapsible?(l(),i&&f.classList.add("d-none")):e.target.children[0].className.includes("btn-collapsible")&&(e.target.children[0].remove(),i&&f.classList.remove("d-none")))}))}));p.forEach((function(e){return h.observe(e,d)}));var m={closeMenu:n};e.MenuNavLateral=m,document.querySelectorAll("nav.menu-lateral").forEach((function(e){if(e){e.querySelectorAll(".active").forEach((function(e){e.classList.remove("active")})),e.querySelectorAll("a.nav-link").forEach((function(e){a(e)}));var t=e.querySelectorAll(".active");t.forEach((function(n,r){rn;e.style.display=r?"flex":"none",r?e.classList.add("show"):e.classList.remove("show")}),{capture:!0}),e.addEventListener("click",(function(e){e.preventDefault(),t.scrollTo({top:0,behavior:"smooth"})}))}}(),document.querySelectorAll('[class^="tela-erro"]:not([class*="_"])').forEach((function(e){var t=e.querySelector(".tela-erro__robot > img"),n=e.querySelector(".tela-erro__content__info > p"),r=t.cloneNode(),a=document.createElement("div");a.classList.add("tela-erro__content__info__robot"),a.appendChild(r),n.insertAdjacentElement("beforebegin",a)})),document.documentElement.setAttribute("data-browser",navigator.userAgent),function(){var e=document.querySelector("html"),t=document.querySelector(".container-principal");if(t){var n=t.querySelector(".header__logo > a > svg > defs > style"),r={academica:"#70c7cc;",administrativa:"#72a8e5;",social:"#85cc3d;"},a=function(t){var a=t.detail,o=a?a.palette:e.getAttribute("paleta"),i=a&&a.oldPalette;o!==i&&(i&&function(e){n.innerHTML=n.innerHTML.replace(".a{fill:".concat(r[e],"}"),"")}(i),function(e){var t=document.querySelector("head"),n=t.querySelector('meta[name="theme-color"]');n||((n=document.createElement("meta")).name="theme-color",t.append(n)),n.content=r[e]}(o),e.setAttribute("paleta",o),n&&!n.innerHTML.includes(".a{fill:".concat(r[o],"}"))&&(n.innerHTML+=".a{fill:".concat(r[o],"}")))};e.getAttribute("paleta")||e.setAttribute("paleta","administrativa"),a({detail:{palette:e.getAttribute("paleta")}}),e.addEventListener("paletteChanged",a)}}(),function(){var e=document.querySelector("div.dropdown-menu.ac");if(e&&!e.dataset.testMode){var t=document.querySelector("html"),n=document.body,r=e.querySelector("ul > li > button"),a=e.querySelector("button.branco-azul"),o=e.querySelector("button.azul-amarelo"),i=e.querySelector("button.preto-amarelo"),s=e.querySelector("button.preto-azul"),c=document.querySelector(".header__logo > a > svg > defs > style"),l=document.querySelector("#login-form > .login-system-logo > svg > defs > style"),u=document.querySelector(".rodape__logo > a > svg > g"),d=t.getAttribute("paleta"),f="#a4b2c8",p={"branco-azul":{bodyBg:"white",font:"preta",bg:"branco",headerColor:"#3737e2",footerColor:"#000000",robotColor:"azul_branco"},"azul-amarelo":{bodyBg:"blue",font:"branca",bg:"azul",headerColor:"#ffff00",footerColor:"#ffffff",robotColor:"amarelo"},"preto-amarelo":{bodyBg:"black",font:"branca",bg:"preto",headerColor:"#ffff00",footerColor:"#ffffff",robotColor:"amarelo"},"preto-azul":{bodyBg:"black",font:"branca",bg:"preto",headerColor:"#00f3f3",footerColor:"#ffffff",robotColor:"azul"}},h=function(){var e=localStorage.getItem("acMode");return"false"!==e&&e?e:"off"},m=function(e){localStorage.setItem("acMode",e),t.dispatchEvent(new CustomEvent("contrastChange",{detail:{ac:e}}))},v=function(){r.classList.remove("selected"),a.classList.remove("selected"),o.classList.remove("selected"),i.classList.remove("selected"),s.classList.remove("selected")},b=function(e){switch(t.getAttribute("paleta")!==d&&(d=t.getAttribute("paleta")),v(),e){case"branco-azul":a.classList.add("selected");break;case"azul-amarelo":o.classList.add("selected");break;case"preto-amarelo":i.classList.add("selected");break;case"preto-azul":s.classList.add("selected")}if(n.classList.add("bg-".concat(p[e].bodyBg)),n.setAttribute("data-ac-activated",e),c){var r=".a,.b{fill:".concat(p[e].headerColor,"}");document.getElementById("logo-ufrn")&&!c.innerHTML.includes(".a-ufrn,.b-ufrn,.c-ufrn,.d-ufrn{fill:".concat(p[e].footerColor,"}"))?c.innerHTML+=".a-ufrn,.b-ufrn,.c-ufrn,.d-ufrn{fill:".concat(p[e].footerColor,"}"):c.innerHTML.includes(r)||(c.innerHTML+=r)}if(l){var h=".a,.b{fill:".concat(p[e].headerColor,"}");l.innerHTML.includes(h)||(l.innerHTML+=h)}u&&(u.innerHTML=u.innerHTML.replace(new RegExp(f,"g"),p[e].footerColor))},y=function(e){"off"!==e&&(v(),r.classList.add("selected"),n.className=n.className.replace(/bg-\w+/g,"").trim(),n.removeAttribute("data-ac-activated"),c&&(document.getElementById("logo-ufrn")?c.innerHTML=c.innerHTML.replace(".a-ufrn,.b-ufrn,.c-ufrn,.d-ufrn{fill:".concat(p[e].footerColor,"}"),""):c.innerHTML=c.innerHTML.replace(".a,.b{fill:".concat(p[e].headerColor,"}"),"")),l&&(l.innerHTML=l.innerHTML.replace(".a,.b{fill:".concat(p[e].headerColor,"}"),"")),u&&(u.innerHTML=u.innerHTML.replace(new RegExp(p[e].footerColor,"g"),f)))};r.addEventListener("click",(function(){y(h()),m("off"),window.closeDropdown(r)})),a.addEventListener("click",(function(){var e="branco-azul";e!==h()&&(y(h()),m(e),b(e),window.closeDropdown(a))})),o.addEventListener("click",(function(){var e="azul-amarelo";e!==h()&&(y(h()),m(e),b(e),window.closeDropdown(o))})),i.addEventListener("click",(function(){var e="preto-amarelo";e!==h()&&(y(h()),m(e),b(e),window.closeDropdown(i))})),s.addEventListener("click",(function(){var e="preto-azul";e!==h()&&(y(h()),m(e),b(e),window.closeDropdown(s))}));var g=h();"off"!==g?b(g):r.classList.add("selected"),t.addEventListener("acChange",(function(){var e=document.body.dataset.acActivated;b(e)}))}}(),window.emitChangePalette=function(){var e=document.querySelector("html");e.dispatchEvent(new CustomEvent("paletteChanged")),document.body.dataset.acActivated&&e.dispatchEvent(new CustomEvent("acChange"))},function(){document.querySelectorAll(".dropdown-tag-selection .dropdown-menu").forEach((function(e){e.addEventListener("click",(function(e){e.stopPropagation()}))}));var e=function(e){$(e).dropdown("update")};window.updateDropdownPosition=e;window.closeDropdown=function(e){$(e).click()};var t=function(e){var t=new MutationObserver((function(e){e.forEach((function(e){var t=e.target,n=t.previousElementSibling;t.style.left="".concat(n.offsetWidth/2-t.offsetWidth/2,"px")}))}));t.observe(e,{attributes:!0,attributeFilter:["style"]}),e.observer=t};window.addDropdownToMutation=t;var n=function(e){e.observer.disconnect()};window.removeDropdownToMutation=n;window.removeAlignmentCentered=function(r,a,o){var i=function(r,a,o,i){var s=window.innerWidth,c=window.screen.width;s=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(a.s();!(n=a.n()).done;){"checked"===n.value.attributeName&&(t.checked=null!==t.getAttribute("checked"))}}catch(e){a.e(e)}finally{a.f()}r()})).observe(t,{attributes:!0,attributeFilters:["checked","disabled","class"]}),e.utils.observeElement(t,"checked",r)}t.forEach((function(e){e.addEventListener("focus",(function(){if(!e.disabled&&!e.classList.contains("disabled")){var t=e.closest(".form-group");t&&t.classList.add("focused")}})),e.addEventListener("blur",(function(){var t=e.closest(".form-group");t&&t.classList.remove("focused")}))})),y.forEach((function(e){var t,n,r=e.querySelector("label"),a=e.querySelector('input[type="checkbox"], input[type="radio"]');a&&("checkbox"===a.type?r.classList.add("label-checkbox"):"radio"===a.type&&r.classList.add("label-radio"),n=e,(t=a).checked&&n.classList.add("checked"),t.addEventListener("change",(function(){!function(e){if("radio"===e.type){var t=e.closest("fieldset");t&&t.querySelectorAll(".form-check").forEach((function(e){e.classList.remove("checked")}))}}(t),C(t,n)})),q(a,e),I(a,e),function(e,t){e.addEventListener("focus",(function(){t.classList.add("focused")})),e.addEventListener("blur",(function(){t.classList.remove("focused")}))}(a,e),N(a,e))}));var P,D=function(e){if(void 0!==Intl.Segmenter){var t=new Intl.Segmenter("pt-br",{granularity:"grapheme"});return Array.from(t.segment(e)).length}return"undefined"!=typeof GraphemeSplitter?(new GraphemeSplitter).splitGraphemes(e).length:(console.warn("ATENÇÃO: Para contabilizar corretamente os caracteres de emoji é necessário adicionar a biblioteca Grapheme. \nConsulte a documentação do Design System."),e.length)},B=function(e){var t=e.parentElement.querySelector(".form__label--counter");if(t)return t;var n=crypto.randomUUID(),r=document.createElement("span");r.classList.add("form__label--counter"),r.setAttribute("aria-describedby",n),r.setAttribute("aria-hidden",!0),e.insertAdjacentElement("afterend",r);var a=document.createElement("div");return a.id=n,a.classList.add("sr-only"),a.role="status",a.ariaLive="polite",e.insertAdjacentElement("afterend",a),r},z=function(e){var t=B(e),n=t.parentElement.querySelector("[role=status]"),r=e.getAttribute("data-max-size"),a=D(e.value);t.innerText="".concat(a,"/").concat(r);var o=r-a,i="Você tem ".concat(o," de ").concat(r," caracteres restantes");a>r&&(i="Você excedeu em ".concat(Math.abs(o)," de ").concat(r," caracteres permitidos")),n.innerHTML=i};n.forEach((function(t){e.utils.observeElement(t,"value",(function(e,t){""===t&&e!==t&&this.reset()})),z(t);var n=function(){B(t).style.display="block",window.deactivateError(t)};t.reset=function(){t.value="",z(t),n(),"TEXTAREA"===t.tagName&&t.originalHeight&&(t.style.height="".concat(t.originalHeight,"px"))};$(t).on("keyup input",(function(){D(t.value)>t.getAttribute("data-max-size")?function(){var e=B(t),n=t.getAttribute("data-max-size");e.style.display="none",window.activateError(t,"Limite de caracteres excedido: ".concat(n),!0)}():n(),z(t)}))})),u.forEach((function(e){e.attributes.rows||(e.rows=1);var t=e.offsetHeight-e.clientHeight;e.originalHeight=e.offsetHeight;var n=e.form;function r(n){n.style.height=1===n.rows?"1.8rem":"auto";var r=n.scrollHeight+t;if(r>e.originalHeight){var a=e.dataset.maxHeight;a&&(e.classList.add("custom-scroll"),r>a?(r=a,e.style.overflowY="auto"):e.style.overflowY="hidden"),n.style.height="".concat(r,"px")}}$(n).one("shown.bs.collapse",(function(){e.originalHeight=e.offsetHeight})),e.updateHeight=function(){return r(e)},$(e).on("keyup input",(function(){return r(e)})),r(e)})),t.forEach((function(e){$(e).on("keyup input",(function(){e.value?e.classList.add("filled"):e.classList.remove("filled")}))})),l.forEach(function(){var e=O(_().mark((function e(t){var n,r,a,o,i,s,c,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=function(){n.querySelectorAll(".dropdown.bootstrap-select > .dropdown-menu > .inner > .dropdown-menu.inner > li").forEach((function(e){e.setAttribute("role","presentation"),$(e).on("keyup click",(function(){n.querySelector("button.btn.dropdown-toggle").classList.add("selected")}))}))},n=t.parentElement,r=t.dataset.api,a=t.dataset.value||"id",o=t.dataset.text||"option",!r){e.next=15;break}return e.next=8,fetch(r);case 8:return i=e.sent,e.next=11,i.json();case 11:s=e.sent,c=s.map((function(e){var t=e[a],n=e[o],r=document.createElement("option");return r.value=t,r.innerText=n,r})),t.append.apply(t,T(c)),$(t).selectpicker("refresh");case 15:$(t).one("shown.bs.select",l);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.forEach((function(e){e.nextElementSibling.setAttribute("disabled","disabled")})),s.forEach(E),c.forEach(A),v.forEach(A),b.forEach(E),r.forEach((function(e){$(e).mask("00/00/0000")}));var H=function(){clearTimeout(P),P=setTimeout((function(){document.querySelectorAll(".datepicker.datepicker-dropdown.dropdown-menu").forEach((function(e){e.remove()}))}),100)};o.forEach((function(e){e.addEventListener("blur",H),e.addEventListener("mousedown",(function(e){e.preventDefault(),clearTimeout(P)}))})),r.forEach((function(e){e.addEventListener("focus",(function(){clearTimeout(P);var e=document.querySelectorAll(".datepicker.datepicker-dropdown.dropdown-menu");e.length>1&&e[0].remove()}))}));var F={createEmptyResult:function(){var e=document.createElement("li");return e.setAttribute("class","no_result"),e.setAttribute("style","cursor:default"),e.setAttribute("tabindex","1"),e.innerHTML="Não foi encontrado nenhum resultado",e},createSpinner:function(){var e=document.createElement("div");return e.classList.add("spinner-border"),e.classList.add("spinner-border-sm"),e.classList.add("ml-auto"),e}},R=function(){function e(){S(this,e),this.listaAutocomplete=[]}return k(e,[{key:"get",value:function(e){var t=[e];return"string"==typeof e&&(t=document.querySelector(e)),this.listaAutocomplete.filter((function(e){return-1!==Array.from(t).findIndex((function(t){return t===e.input}))}))}},{key:"add",value:function(e){this.listaAutocomplete.push(e)}},{key:"remove",value:function(e){var t=this.get(e);this.listaAutocomplete=this.listaAutocomplete.filter((function(e){return-1===Array.from(t).findIndex((function(t){return t===e}))||(e.unInit(),!1)}))}},{key:"update",value:function(e){this.remove(e);var t=e.parentElement.querySelector(".autocomplete_list");t&&t.remove(),this.iniciar(e)}},{key:"getSpinner",value:function(e){return(e.closest(".formGroup")||e.parentElement).querySelector(".spinner-border")}},{key:"removeSpinner",value:function(e){var t=this.getSpinner(e);t&&t.remove()}},{key:"getListDOM",value:function(e){var t,n=document.querySelector(e),r=null==n||null===(t=n.closest(".form-group"))||void 0===t?void 0:t.querySelector(".autocomplete_list");return null==r?void 0:r.children}},{key:"clearListDOM",value:function(e){var t=this.getListDOM(e);t&&t.length>0&&Array.from(t).forEach((function(e){e.remove()}))}},{key:"iniciar",value:function(e){var t=this;"string"==typeof e&&(e=document.querySelector(e));var n,r=void 0===e.dataset.minSize?3:e.dataset.minSize,a=e.dataset.api,o=e.getAttribute("data-keys").split(",")[0];if(a){var i=new AbortController,s=new autoComplete({selector:function(){return e},data:{src:(n=O(_().mark((function t(n){var r,o;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.abort(),i=new AbortController,t.prev=2,a=e.dataset.api,"true"!=e.dataset.externa){t.next=10;break}return t.next=7,fetch(a+n,{signal:i.signal});case 7:t.t0=t.sent,t.next=13;break;case 10:return t.next=12,fetch(a,{signal:i.signal});case 12:t.t0=t.sent;case 13:return r=t.t0,t.next=16,r.json();case 16:return(o=t.sent).sort((function(e,t){return e[n]>t[n]?1:e[n]0?r:0,debounce:1e3,searchEngine:"strict",diacritics:!0,resultsList:{tag:"ul",tabSelect:!0,class:"autocomplete_list list_categorias",position:"afterend",maxResults:void 0===e.dataset.elements?6:parseInt(e.dataset.elements,10),render:!0,element:function(n,r){if(n.removeAttribute("id"),0===r.results.length){var a=F.createEmptyResult();n.appendChild(a)}t.removeSpinner(e)},noResults:!0},resultItem:{tag:"li",class:"autoComplete_result",element:function(e,t){e.innerHTML=t.match},highlight:"autoComplete_highlighted"},events:{input:{selection:function(t){var n=t.detail;if(n.results&&0!==n.results.length){var r=n.selection.value[n.selection.key];e.value=r}}}},wrapper:!1});e.addEventListener("input",(function(n){var a=!!t.getSpinner(e);if(n.target.value.length>=r&&!a){var o=F.createSpinner();e.after(o),e.classList.add("pr-4"),s.close()}n.target.value.length0&&Array.from(t).forEach((function(e){e.remove()}))}},{key:"iniciar",value:function(e){var t,n=this,r=void 0===e.dataset.minSize?3:e.dataset.minSize,a=e.getAttribute("data-keys").split(","),o=e.getAttribute("data-categorias").split(","),i=e.dataset.api;if(i){var s=new AbortController,c=new autoComplete({selector:function(){return e},data:{src:(t=O(_().mark((function t(n){var r,a;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,s.abort(),s=new AbortController,"true"!=e.dataset.externa){t.next=9;break}return t.next=6,fetch(i+n,{signal:s.signal});case 6:t.t0=t.sent,t.next=12;break;case 9:return t.next=11,fetch(i,{signal:s.signal});case 11:t.t0=t.sent;case 12:return r=t.t0,t.next=15,r.json();case 15:return(a=t.sent).sort((function(e,t){return e[n]>t[n]?1:e[n]0?r:0,debounce:1e3,searchEngine:"strict",diacritics:!0,resultsList:{tag:"ul",class:"autocomplete_list list_categorias",position:"afterend",maxResults:void 0===e.dataset.elements?6:parseInt(e.dataset.elements,10),render:!0,element:function(t,r){if(t.removeAttribute("id"),0===r.results.length){var a=F.createEmptyResult();t.appendChild(a)}n.removeSpinner(e)},noResults:!0},wrapper:!1,resultItem:{tag:"li",class:"autoComplete_result",element:function(e,t){e.innerHTML=t.match,e.setAttribute("name",t.key)},highlight:"autoComplete_highlighted"},events:{input:{selection:function(t){if("autoComplete_result"===t.detail.event.target.className){var n=t.detail.event.target.innerText;e.value=n}},results:function(t){var n=e.parentElement.getElementsByClassName("list_categorias")[0];n.innerHTML="",t.detail.query.length>=r>0&&r&&setTimeout((function(){var t=e.nextElementSibling;t.style.visibility="visible",t.children[0]&&!t.children[0].classList.contains("no_result")&&l(n,t)}),0)}}}}),l=function(e,t){var n=t,r=e;a.forEach((function(e,t){var a=!1,i="";Array.from(n.children).reverse().forEach((function(n){e===n.getAttribute("name")&&(a?i.insertAdjacentElement("afterend",n):((i=document.createElement("li")).classList.add("autoComplete_catg"),i.innerHTML="-- ".concat(o[t]," --"),i.setAttribute("disabled","disabled"),i.id=e,r.appendChild(i),i.insertAdjacentElement("afterend",n),a=!0))}))}))};e.addEventListener("input",(function(t){var a=!!n.getSpinner(e);if(t.target.value.length>=r&&!a){var o=F.createSpinner();e.after(o),e.classList.add("pr-4"),c.close()}t.target.value.length0&&(n.insertAdjacentElement("afterend",i),i.addEventListener("click",(function(){t.value="",i.remove()}),{once:!0}))})),t.addEventListener("change",(function(){t.files.length?o():(t.classList.remove("filled"),n.classList.remove("filled"),n.innerText=r)})),e.utils.observeElement(t,"value",(function(e,n){n||function(e,t){var n=e.parentElement.querySelector(".custom-file-label");n.classList.remove("filled"),n.innerText=t}(t,r)})),W.observe(t,{attributes:!0,attributeFilter:["disabled"]});t.addEventListener("focus",(function(){a&&a.classList.add("focused")})),t.addEventListener("blur",(function(){a&&a.classList.remove("focused")}))}));e.initInputTags=function(e){(e instanceof HTMLElement?e:document).querySelectorAll(h).forEach((function(e){var t=w($(e).parents(".tags"),1)[0],n=t.querySelector("input.tags-value");n&&(n.classList.add("d-none"),n.setAttribute("type","text"),n.setAttribute("aria-hidden","true"));var r=function(){var t=e.parentElement.querySelector(".tags-container");if(t)return t;var n=document.createElement("div");return n.classList.add("tags-container"),e.insertAdjacentElement("beforebegin",n),n},a=function(e){var t=document.createElement("button");t.classList.add("tag-filtro","darker"),t.type="button",t.innerText=e;var n=document.createElement("i");n.classList.add("fas","fa-times");var r=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<4;n++)t+=e[Math.floor(62*Math.random())];return t}();return t.id=r,t.append(n),t},o=function(){""===n.value.trim()?t.classList.remove("filled"):t.classList.add("filled"),function(){if(r().innerHTML="",""!==n.value.trim()){var e=n.value.split(","),t=e.filter((function(t,n){return e.indexOf(t)===n}));n.value=t.join(","),t.map((function(e){return i(e)}))}}()},i=function(e){var t,i=a(e);(t=i).addEventListener("click",(function(){var e=n.value.split(",");n.value=e.filter((function(e){return e!==t.innerText})).join(","),o()})),r().appendChild(i)},s=function(t){if(8===t.keyCode&&!e.value){t.preventDefault();var r=n.value.split(","),a=r.pop(),i=r.filter((function(e){return e!==a}));n.value=i.join(","),o()}};function c(e,t){return l.apply(this,arguments)}function l(){return(l=O(_().mark((function e(t,n){var r,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve(n(t));case 3:if(!0===(r=e.sent)){e.next=7;break}throw new Error("string"==typeof r?r:"Tag inválida");case 7:return e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(0),a=e.t0.message||e.t0,e.abrupt("return",a);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function u(){return(u=O(_().mark((function t(r){var a,i,s,l;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(13!==r.keyCode){t.next=14;break}if(r.preventDefault(),u=r.target,!(a=u.validate||window[u.dataset.validate])){t.next=10;break}return t.next=6,c(r.target.value,a);case 6:if(!0===(i=t.sent)){t.next=10;break}return window.activateError(r.target,i),t.abrupt("return");case 10:s=e.value.trim(),window.deactivateError(r.target),s&&(""===n.value?n.value=s:(l=n.value.split(",")).includes(s)||(l.push(s),n.value=l.join(",")),o()),e.value="";case 14:case"end":return t.stop()}var u}),t)})))).apply(this,arguments)}o();var d=e.value;$(e).on("keyup",(function(t){8!==t.keyCode||e.value||d||$(e).one("keyup",s),d=e.value})),$(e).keypress((function(e){return u.apply(this,arguments)})),n.addTags=function(){for(var e=arguments.length,t=new Array(e),n=0;n\n Mensagem de erro: \n \n \n ';var a=function(e,t){var a=function(e){return e.parentElement.className.includes("tags")?e.parentElement.parentElement:e.closest(".form-group")||e.parentElement}(e),o=a.querySelector(".invalid-feedback");if(o&&o.remove(),o=function(e){var t=r.content.cloneNode(!0).querySelector(".invalid-feedback"),n=crypto.randomUUID();return t.id=n,t.querySelector(".feedback-message").innerHTML=e,t}(t),e.classList.contains("custom-select")){var i=a.querySelector(".combo-input");i&&i.setAttribute("aria-describedby",o.id)}else e.setAttribute("aria-describedby",o.id);var s=a.querySelector(".form-text");if(s)n(s,"beforebegin",o);else{var c=a.querySelector(".tags");c?n(c,"afterend",o):n(a,"beforeend",o)}},o=function(e,t){var n=e.closest(".form-input-group");if(n){var r=n.querySelector(".input-action > button");r&&(t?r.classList.add("btn-danger"):r.classList.remove("btn-danger"))}};window.activateError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="Campo não preenchido";if(t=t||r,e.className.includes("fieldset-group"))return function(e,t){e.classList.add("is-invalid"),e.querySelectorAll("input").forEach((function(e){e.classList.add("is-invalid")})),a(e,t)}(e,t);e.classList.contains("tags-value")&&(e=e.parentNode.querySelector(".form-control"));var i,s=e.closest(".form-group");if(e.className.includes("custom-select")){if(s){var c=s.querySelector(".combo");c&&c.classList.add("is-invalid");var l=s.querySelector(".combo-input");l&&(l.classList.add("is-invalid"),l.setAttribute("aria-invalid","true"))}t===r&&(t="Campo não selecionado")}if(e.activateError&&e.activateError(),e.classList.add("is-invalid"),e.setAttribute("aria-invalid","true"),n&&e.setCustomValidity(t),s){s.classList.add("is-invalid");var u=s.querySelector(".tooltip-group");u&&u.classList.add("is-invalid")}return("file"===(i=e).type||i.parentElement.className.includes("tags"))&&i.parentElement.classList.add("is-invalid"),a(e,t),o(e,!0),0},window.deactivateError=function(e){(e.className.includes("fieldset-group")||e.className.includes("form-check"))&&function(e){e.classList.remove("is-invalid"),e.querySelectorAll("input").forEach((function(e){e.classList.remove("is-invalid")}));var t=e.querySelector(".invalid-feedback");t&&t.remove()}(e);var t,n=e.closest(".form-group");if(e.className.includes("custom-select")&&n){var r=n.querySelector(".combo");r&&r.classList.remove("is-invalid");var a=n.querySelector(".combo-input");a&&(a.classList.remove("is-invalid"),a.removeAttribute("aria-invalid","true"))}if(e.deactivateError&&e.deactivateError(),e.classList.remove("is-invalid"),e.removeAttribute("aria-invalid"),e.setCustomValidity(""),n){n.classList.remove("is-invalid");var i=n.querySelector(".tooltip-group");i&&i.classList.remove("is-invalid");var s=n.querySelector(".invalid-feedback");s&&s.remove()}("file"===(t=e).type||t.parentElement.className.includes("tags"))&&t.parentElement.classList.remove("is-invalid"),o(e,!1)}}(window.Cosmos),window.updateComponents=function(){window.emitChangePalette&&window.emitChangePalette(),window.renderForm()},$((function(){$(".customMultipleSelect li").CustomMultipleSelect({}),$(".sizedCustomMultipleSelect li").CustomMultipleSelect(),$().reSize("sizedMS1")})),function(e){e.fn.reSize=function(t){var n=e("#".concat(t)),r=n.children().length,a=n.attr("size");if(a){a<=0&&(a=1);var o=.6+1.375*a;a>=r&&(o=.6+1.375*r);var i="height:".concat(o,"rem !important");e(".sized-customMS#".concat(t)).attr("style",i)}},e.fn.CustomMultipleSelect=function(){var t=0;e(this).keyup((function(t){13===t.keyCode&&e(this).click()})),e(this).click((function(){!0===e(this).hasClass("active-multiple-select")?(e(this).removeClass("active-multiple-select"),(t-=1)<=0&&e(this).parent().parent().removeClass("isOnFocus")):(e(this).addClass("active-multiple-select"),t+=1,e(this).parent().parent().addClass("isOnFocus"))}))}}(jQuery),function(){var e=["RobozinhoEITA","RobozinhoHEY","RobozinhoOPA","RobozinhoVISH"],t=document.querySelectorAll([".tela-erro--vixe",'[class^="tela-erro--vixe--contraste"]']);t.forEach((function(t){var n,r,a=t.querySelectorAll("img"),o=e[(n=0,r=e.length,Math.floor(Math.random()*r+n))];a.forEach((function(e,t){var n=e.src.slice(e.src.indexOf("Robozinho"),e.src.lastIndexOf("-"));e.style.display="block",e.src=e.src.replace(n,o),0===t&&$(e).on("load",(function(){var t=e.height-e.naturalHeight,n=1;t>10&&t<=15?n=1.1:t>15&&t<=20?n=1.2:t>20&&t<=35?n=1.3:t>35&&(n=1.4),e.style.transform="scale(".concat(n,")")}))}))}));var n=document.getElementById("go-back");n&&n.addEventListener("click",(function(){return window.history.back()}))}(),H(),function(){document.querySelectorAll('table[data-toggle="table"]').forEach((function(e,t){var n=function(e){var t=D($(e).parents(".bootstrap-table"),1)[0].querySelector(".fixed-table-pagination div.pagination");t&&(t.classList.remove("pagination"),t.classList.add("pagination-container"))};if($(e).one("post-body.bs.table",(function(){var t=D($(e).parents(".fixed-table-body"),1)[0];t.classList.add("custom-scroll"),t.style.overflowX="unset",t.style.overflowY="unset",setTimeout((function(){t.style.cssText=""}),200)})),"true"===e.dataset.pagination){e.dataset.paginationPreText='',e.dataset.paginationNextText='';$(e).on("post-body.bs.table",(function(){n(e)}))}if("true"===e.dataset.clickToSelect){var r=e.querySelector('th[data-checkbox="true"]');r&&(r.dataset.clickToSelect="false")}"true"===e.dataset.search&&$(e).one("post-body.bs.table",(function(){var t=D($(e).parents(".bootstrap-table"),1)[0],n=t.querySelector(".search.btn-group"),r=t.querySelector("input.search-input"),a=document.createElement("div");a.classList.add("form-group","m-0"),r.setAttribute("name","searchInput"),a.append(r),n.append(a)})),"true"===e.dataset.showColumns&&$(e).one("post-body.bs.table",(function(){var n=D($(e).parents(".bootstrap-table"),1)[0],r=n.querySelector(".fixed-table-toolbar .columns button.btn"),a=n.querySelector(".fixed-table-toolbar .columns .dropdown-menu");(r&&r.classList.add("btn-secondary"),a)&&a.querySelectorAll(".dropdown-item").forEach((function(e,n){var r=e.querySelector('input[type="checkbox"]');r.id="column-checkbox-".concat(t,"-").concat(n),r.classList.add("form-check-input");var a=document.createElement("div");a.classList.add("form-check");var o=document.createElement("label");o.classList.add("form-check-label","label-checkbox"),o.setAttribute("for","column-checkbox-".concat(t,"-").concat(n)),a.append(r,o),e.append(a);var i=e.querySelector("span");e.append(i)}))})),$(e).one("post-body.bs.table",(function(){var n=function(){if(Array.from(e.querySelectorAll("thead th")).find((function(e){return e.querySelector('input[type="checkbox"]')}))){var n=e.querySelectorAll(".bs-checkbox");e.classList.add("table-icon"),n.forEach((function(e,n){var r=e.querySelector('input[type="checkbox"]');if(r){r.id="checkbox-".concat(t,"-").concat(n),r.classList.add("form-check-input"),r.setAttribute("aria-label","checkbox-".concat(t,"-").concat(n)),r.parentElement.remove();var a=document.createElement("div");a.classList.add("form-check");var o=document.createElement("label");if(o.classList.add("form-check-label","label-checkbox"),o.setAttribute("for","checkbox-".concat(t,"-").concat(n)),a.append(r,o),"TH"===e.tagName)e.querySelector(".th-inner").append(a);else"TD"===e.tagName&&e.append(a)}}))}};n(),$(e).on("post-body.bs.table",n)})),$(e).one("post-body.bs.table",(function(){var n=function(){Array.from(e.querySelectorAll("thead th.bs-checkbox")).find((function(e){return!e.querySelector('input[type="checkbox"]')}))&&$(e).one("post-body.bs.table",(function(){e.querySelectorAll(".bs-checkbox").forEach((function(e,n){var r=e.querySelector('input[type="radio"]');if(r){r.id="radio-".concat(t,"-").concat(n),r.classList.add("form-check-input"),r.parentElement.remove();var a=document.createElement("div");a.classList.add("form-check");var o=document.createElement("label");o.classList.add("form-check-label","label-radio"),o.setAttribute("for","radio-".concat(t,"-").concat(n)),a.append(r,o),e.append(a)}}))}))};n(),$(e).on("post-body.bs.table",n)})),$(e).one("post-body.bs.table",(function(){$(e).on("all.bs.table",(function(){"true"===e.dataset.pagination&&n(e),window.emitChangePalette()}))}))}));window.linkFormatter=function(e){return'').concat(e,"")}}(),(W=document.getElementById("barra-brasil"))&&($.ajaxSetup({cache:!0}),$.getScript("https://barra.brasil.gov.br/barra.js").done((function(){for(var e=$("#barra-brasil a"),t=0;t a"))&&new MutationObserver((function(e){e.forEach((function(e){var t=pe(e.addedNodes,1)[0],n=pe(e.removedNodes,1)[0],r=e.target;t&&t.tagName&&"vlibraswidget"===t.tagName.toLowerCase()&&r.replaceChild(n,t)}))})).observe(U,{subtree:!0,childList:!0}),function(){window.getCheck=function(e){var t=e.closest(".card-retangular");t&&(e.checked,t.classList.toggle("checked"))};var e=new Date,t=document.querySelectorAll("p.timer");t.forEach((function(t){e.getHours()<10?e.getMinutes()<10?t.innerHTML="0".concat(e.getHours().toString(),":0").concat(e.getMinutes().toString()):t.innerHTML="0".concat(e.getHours().toString(),":").concat(e.getMinutes().toString()):e.getMinutes()<10?t.innerHTML="".concat(e.getHours().toString(),":0").concat(e.getMinutes().toString()):t.innerHTML="".concat(e.getHours().toString(),":").concat(e.getMinutes().toString())})),setInterval((function(){e=new Date,t.forEach((function(t){e.getHours()<10?e.getMinutes()<10?t.innerHTML="0".concat(e.getHours().toString(),":0").concat(e.getMinutes().toString()):t.innerHTML="0".concat(e.getHours().toString(),":").concat(e.getMinutes().toString()):e.getMinutes()<10?t.innerHTML="".concat(e.getHours().toString(),":0").concat(e.getMinutes().toString()):t.innerHTML="".concat(e.getHours().toString(),":").concat(e.getMinutes().toString())}))}),6e4)}(),ye(ve().mark((function e(){var t,n,r,a,o,i,s,c,l,u,d,f;return ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f=function(){return(f=ye(ve().mark((function e(t){var n,r;return ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return n=e.sent,e.next=5,n.json();case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)},d=function(e){return f.apply(this,arguments)},t=function(e,t){var n=e;t.mes<10?n.innerHTML="".concat(t.dia.toString(),"/0").concat(t.mes.toString()," ").concat(t.evento):n.innerHTML="".concat(t.dia.toString(),"/").concat(t.mes.toString()," ").concat(t.evento)},n=function(e){return e.date.getMonth()+1<10?e.date.getDate()<10?"0".concat(e.date.getDate(),"/0").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):"".concat(e.date.getDate(),"/0").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):e.date.getDate()<10?"0".concat(e.date.getDate(),"/").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):"".concat(e.date.getDate(),"/").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear())},r=function(e,n){var r=e.tipo.toLowerCase(),a=document.createElement("li"),o=n;return a.classList.add(r),t(a,e),o.append(a),r},a=function(e,t,n){var a="";return n.innerHTML="",e.forEach((function(e){e.mes===t.getMonth()+1&&e.ano===t.getFullYear()&&(a=r(e,n))})),a},o=function(e){return e.tipo.toLowerCase()},i=function(e,t){var n="";return e.forEach((function(e){e.ano===t.getFullYear()&&e.mes===t.getMonth()+1&&e.dia===t.getDate()&&(n=o(e))})),n},s=document.querySelectorAll(".calendar-builds"),c=document.querySelectorAll(".calendar-input"),l=document.querySelectorAll(".input-datepicker.date"),u="",s.forEach(function(){var e=ye(ve().mark((function e(t){var r,o,s,c,l,f,p;return ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.dataset.api,o=[],!r){e.next=6;break}return e.next=5,d(r);case 5:o=e.sent;case 6:s=document.createElement("ul"),(c=document.createElement("hr")).setAttribute("aria-hidden",!0),l="true"===t.getAttribute("data-show-list")||!t.hasAttribute("data-show-list"),f=new Date,$(t).datepicker({language:"pt-BR",todayHighlight:!0,keyboardNavigation:!0,templates:{leftArrow:'',rightArrow:''},beforeShowDay:function(e){var n=t.getElementsByClassName("datepicker-days"),r={classes:u=i(o,e)},a=t.querySelectorAll(".datepicker-days thead .dow");(Array.from(a).forEach((function(e,t){if(null===e.querySelector(".day__weekend__min")){var n=document.createElement("span");n.setAttribute("aria-hidden",!0),n.classList.add("day__weekend__min"),n.textContent=e.textContent,e.textContent="",e.appendChild(n.cloneNode(!0))}if(null===e.querySelector(".day__wekend__hid")){var r=$.fn.datepicker.dates["pt-BR"].days,a=document.createElement("span");a.classList.add("day__wekend__hid"),a.setAttribute("aria-label",r[t]),e.appendChild(a.cloneNode(!0))}})),"none"!==n[0].style.display)?e.getDate()===(new Date).getDate()&&(r.tooltip="hoje"):s.innerHTML="";return r},beforeShowMonth:function(e){return e.getMonth()===f.getMonth()&&(u=a(o,e,s)),{classes:u}}}).on("changeDate",(function(e){var r=new CustomEvent("datePickerChangeDate",{detail:e.date});t.dispatchEvent(r),f=e.date,$(t).datepicker("update",n(e))})).on("changeMonth",(function(e){f=e.date})),!0===l&&(p=function(){s.innerHTML=""},t.append(c),t.append(s),Array.from(t.querySelectorAll("th.next")).forEach((function(e){e.addEventListener("click",p)})),Array.from(t.querySelectorAll("th.prev")).forEach((function(e){e.addEventListener("click",p)})),Array.from(t.querySelectorAll("th.datepicker-switch")).forEach((function(e){e.addEventListener("click",p)})));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),l.forEach((function(e){var t=document.querySelector(e.dataset.container)||void 0;t&&(t.style.position="relative"),e.parentElement.style.position="relative",$(e).datepicker({language:"pt-BR",todayHighlight:!0,autoclose:!0,orientation:"bottom",container:t,templates:{leftArrow:'',rightArrow:''}}).on("changeDate",(function(e){var t="";t=e.date.getMonth()+1<10?e.date.getDate()<10?"0".concat(e.date.getDate(),"/0").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):"".concat(e.date.getDate(),"/0").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):e.date.getDate()<10?"0".concat(e.date.getDate(),"/").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):"".concat(e.date.getDate(),"/").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear());var n=e.currentTarget.querySelector("input");n.value=t,n.classList.add("filled"),n.focus()}));var n=e.querySelectorAll(".datepicker-days thead .dow");n&&Array.from(n).forEach((function(e,t){if(null===e.querySelector(".day__weekend__min")){var n=document.createElement("span");n.setAttribute("aria-hidden",!0),n.classList.add("day__weekend__min"),n.textContent=e.textContent,e.textContent="",e.appendChild(n.cloneNode(!0))}if(null===e.querySelector(".day__wekend__hid")){var r=$.fn.datepicker.dates["pt-BR"].days,a=document.createElement("span");a.classList.add("day__wekend__hid"),a.setAttribute("aria-label",r[t]),e.appendChild(a.cloneNode(!0))}}))})),c.forEach((function(e){$(e).datepicker({language:"pt-BR",todayHighlight:!0,templates:{leftArrow:'',rightArrow:''}}).on("changeDate",(function(e){var t="";t=e.date.getMonth()+1<10?e.date.getDate()<10?"0".concat(e.date.getDate(),"/0").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):"".concat(e.date.getDate(),"/0").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):e.date.getDate()<10?"0".concat(e.date.getDate(),"/").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear()):"".concat(e.date.getDate(),"/").concat(e.date.getMonth()+1,"/").concat(e.date.getFullYear());var n=e.currentTarget.parentElement.parentElement.parentElement,r=n.querySelector("input");r.value=t,r.classList.add("filled");var a=n.querySelector("button");a&&a.setAttribute("aria-expanded","false"),n.classList.remove("show"),n.querySelector(".dropdown-menu").classList.remove("show")}));var t=e.querySelectorAll(".datepicker-days thead .dow");t&&Array.from(t).forEach((function(e,t){if(null===e.querySelector(".day__weekend__min")){var n=document.createElement("span");n.setAttribute("aria-hidden",!0),n.classList.add("day__weekend__min"),n.textContent=e.textContent,e.textContent="",e.appendChild(n.cloneNode(!0))}if(null===e.querySelector(".day__wekend__hid")){var r=$.fn.datepicker.dates["pt-BR"].days,a=document.createElement("span");a.classList.add("day__wekend__hid"),a.setAttribute("aria-label",r[t]),e.appendChild(a.cloneNode(!0))}}))}));case 15:case"end":return e.stop()}}),e)})))(),function(){var e=document.getElementById("user-container");if(e){var t=e.querySelector(".header__user img"),n=function(){t.style.display="none"};t&&(t.complete&&0!==t.naturalWidth||n(),t.addEventListener("load",(function(){0!==t.naturalWidth?t.style.display="":n()})))}}(),(Y=document.querySelectorAll("header.header"))&&Y.forEach((function(e){var t=e.querySelector(".header__right");if(t){var n=Array.from(t.querySelectorAll([".header-mob-out"]));if(n){var r=n.map((function(e){if("user-container"===e.id){var t=e.querySelector(".header__user__info__title").innerText,n=e.querySelector(".header__user__info__detail")||e.querySelector(".header__user__info .p3"),r="Nenhum cargo informado";null!==n&&(r=n.innerText);var a=Array.from(e.querySelectorAll(".dropdown-item")),o=a.filter((function(e){return!e.innerText.toLowerCase().includes("sair")})).map((function(e){var t=!!e.href;return xe({label:e.innerText,listeners:t?[]:e.getEventListeners()},t?{link:{href:e.href}}:{})})),i=a.find((function(e){return e.innerText.toLowerCase().includes("sair")}));return{user:xe({name:t,role:r,title:e.title,dropdownSize:a.length,items:o},i?{logout:{label:i.innerText,listeners:i.getEventListeners?i.getEventListeners():[],href:i.href||null}}:{})}}var s=e.querySelector('i[class^="fa"]'),c="modal"===e.dataset.toggle,l=!!e.href;if("notification-dropdown"===e.id){var u=e.querySelector("button.icon"),d=e.querySelector("span")?e.querySelector("span").innerText:null,f=e.querySelector("a.link").href,p={label:u.title,icon:s.className,link:f,listeners:e.getEventListeners?e.getEventListeners():[]};return null!==d&&(p.notification={quantity:d}),p}return e.dataset.toggleLibras?{type:"toggleModeLibras",dataset:e.dataset,label:e.title,icon:s.className,link:null,listeners:[]}:xe(xe({label:e.title||e.innerText,icon:s.className,tag:e.tagName,listeners:e.getEventListeners?e.getEventListeners():[]},c?{modal:{target:e.dataset.target}}:{}),l?{link:{href:e.href}}:{})})),a=e.parentElement.querySelector(".header-mobile__item");if(a){a&&(a.setAttribute("role","menu"),r.length&&r.forEach((function(e){var t=document.createElement("li");t.classList.add("nav-item"),t.setAttribute("role","none");var n=document.createElement("i");if(n.className=e.icon,e.user){n.className="fas fa-user";var r=document.createElement("button");r.classList.add("nav-link","submenu"),r.setAttribute("aria-expanded","false"),r.setAttribute("aria-haspopup","menu"),r.setAttribute("tabindex","0"),r.setAttribute("role","menuitem");var o=document.createElement("span");o.innerText="Perfil do(a) usuário(a)";var i=document.createElement("i");i.classList.add("fas","fa-chevron-right"),r.append(n,o,i);var s=document.createElement("div");s.classList.add("submenu__content");var c=document.createElement("ul");c.classList.add("nav","flex-column","submenu_itens"),c.setAttribute("aria-describedby","submenu-title"),c.setAttribute("aria-label","perfil"),c.setAttribute("role","menu");var l=document.createElement("button");l.type="button",l.classList.add("link-normal","back-menu"),l.setAttribute("role","menuitem");var u=document.createElement("li");u.classList.add("nav-item"),u.setAttribute("role","none");var d=document.createElement("i");d.classList.add("fas","fa-chevron-left");var f=document.createElement("span");f.innerText="Voltar ao menu",l.append(d,f),u.append(l);var p=document.createElement("h3");p.setAttribute("id","submenu-title"),p.setAttribute("role","none"),p.setAttribute("aria-hidden","true"),p.innerText="Perfil do(a) usuário(a)";var h=e.user.items.map((function(e){var t=document.createElement("li");t.classList.add("nav-item"),t.setAttribute("role","none");var n=document.createElement("a");n.classList.add("nav-link"),n.setAttribute("tabindex","0"),n.setAttribute("role","menuitem"),e.link&&(n.href=e.link.href);var r=document.createElement("span");return r.innerText=e.label,Object.keys(e.listeners).forEach((function(t){e.listeners[t].forEach((function(e){var r=e.listener;n.addEventListener(t,r)}))})),n.append(r),t.append(n),t}));if(c.append.apply(c,[u,p].concat(Ee(h))),e.user.dropdownSize<=1){var m=document.createElement("p");m.innerText=e.user.name,c.append(m)}return s.append(c),t.append(r,s),void a.append(t)}var v=document.createElement("a");v.classList.add("nav-link"),v.setAttribute("tabindex","0"),v.setAttribute("role","menuitem"),"A"===e.tag&&v.setAttribute("target","blank"),Object.keys(e.listeners).forEach((function(t){e.listeners[t].forEach((function(e){var n=e.listener;v.addEventListener(t,n)}))})),e.modal&&(v.dataset.toggle="modal",v.dataset.target=e.modal.target),e.link&&(v.href=e.link);var b=document.createElement("span");if(b.innerText=e.label,v.append(n,b),"toggleModeLibras"===e.type&&(v.dataset.toggleLibras=e.dataset.toggleLibras,v.dataset.post=e.dataset.post),e.notification){var y=document.createElement("span");y.classList.add("tag-rotulo","dark","notification-span"),y.innerText=e.notification.quantity,v.href=e.link,v.append(y)}t.append(v),a.append(t)})));var o=r.find((function(e){return e.user}));if(o&&o.user.logout){var i=document.createElement("li");i.classList.add("nav-item"),i.setAttribute("role","none");var s=document.createElement("i");s.className="fas fa-sign-out-alt";var c=document.createElement("a");c.classList.add("nav-link"),c.setAttribute("tabindex","0"),c.setAttribute("role","menuitem"),o.user.logout.href&&(c.href=o.user.logout.href),Object.keys(o.user.logout.listeners).forEach((function(e){o.user.logout.listeners[e].forEach((function(t){var n=t.listener;c.addEventListener(e,n)}))}));var l=document.createElement("span");l.innerText=o.user.logout.label,c.append(s,l),i.append(c),a.append(i)}}}}})),document.querySelectorAll("header.header").forEach((function(e){var t=e.querySelector(".header__title");if(e.querySelector(".header__right .header-mob-in"),t){var n={},r="dropdownTitle"===t.id,a=t.querySelector("h1").innerText;n={text:a},r&&(n={text:a,link:t.nextElementSibling.querySelector("a.link").href});var o=document.querySelector(".header-mobile__item"),i=document.createElement("li");if(i.classList.add("area-modulo"),i.setAttribute("role","none"),r){var s=document.createElement("a");s.classList.add("link-normal"),s.setAttribute("title","Alterar módulo"),s.innerText=n.text,s.href=n.link,i.append(s)}else{var c=document.createElement("p");c.innerText=n.text,i.append(c)}null!==o&&o.prepend(i)}})),function(){var e=window.location.href,t=document.querySelector("nav.header-mobile");if(t&&t.parentElement.classList.contains("container-conteudo__nav_right")){t.querySelectorAll("a.nav-link").forEach((function(n){if(n.href===e){var r=!1,a=n.parentElement,o=a.parentElement;for(t.querySelectorAll(".active").forEach((function(e){e.classList.remove("active")}));!r;)a.children[0].classList.add("active"),o.classList.contains("header-mobile__item")?r=!0:o=(a=o.parentElement.parentElement).parentElement}}));var n=t.querySelectorAll(".active");n.forEach((function(e,r){r\n \t
\n \t
\n ')),i||c.on("shown.bs.tooltip",(function(){var e=r.nextElementSibling;J.observe(e,{attributes:!0,attributeFilter:["x-out-of-boundaries"]})})),c.tooltip(s),c.off("keypress",X),c.off("focusout",K),c.on("keypress",X),c.on("focusout",K)}))},window.addEventListener("resize",(function(){$('[data-toggle="tooltip"]').tooltip("dispose"),Q()})),window.document.body.addEventListener("scroll",(function(){$('[data-toggle="tooltip"][data-container]').tooltip("hide")})),V.initTooltip=Q,V.initTooltip(),document.querySelectorAll(".navegacao-lateral").forEach((function(e){"false"!==e.dataset.breakpoint&&window.attachResizeRedirect(e.dataset.breakpoint?parseFloat(e.dataset.breakpoint):767.98,e.dataset.url),e.querySelectorAll(".list-group .menu-item button").forEach((function(t){t.addEventListener("click",(function(){e.querySelector(".menu-item.active").classList.remove("active"),t.parentElement.parentElement.classList.add("active");var n=t.getAttribute("href"),r=e.querySelector(".menu-conteudo");r.querySelector(":scope > .tab-pane.show.active").classList.remove("show","active"),r.querySelector(n).classList.add("show","active"),e.dispatchEvent(new CustomEvent("navigate",{bubbles:!0,detail:n}))}))}))})),function(){var e=document.querySelectorAll(".nvg");if(e){e.forEach((function(e){if(Array.from(e.querySelectorAll(".nvg-menu-list"))){var t=e.querySelectorAll(".nvg-menu-button");if(t){t.forEach((function(t,n){t.addEventListener("focus",(function(){Array.isArray(window.mySwiper)?window.mySwiper.forEach((function(e){e.el.scrollLeft=0,e.slideTo(n)})):(window.mySwiper.scrollLeft=0,window.mySwiper.slideTo(n))})),t.addEventListener("click",(function(){var n=t.getAttribute("href"),r=e.querySelector(".nvg-content-tab");r&&(r.querySelector(":scope > .tab-pane.fade.show.active").classList.remove("show","active"),r.querySelector(n).classList.add("show","active"),e.dispatchEvent(new CustomEvent("navigate",{bubbles:!0,detail:n})))}))}))}}}))}}(),function(){function e(){document.querySelectorAll(".swiper-wrapper").forEach((function(e){e.removeAttribute("style"),Ne(e.children).forEach((function(e){e.removeAttribute("style")}))}))}function t(t){Array.isArray(t)?t.forEach((function(t){t.translateTo(32,0),t.enable(),window.innerWidth>991.98&&(t.disable(),e())})):(t.translateTo(32,0),t.enable(),window.innerWidth>991.98&&(t.disable(),e()))}if(window.Swiper){var n=new window.Swiper(".swiper",{on:{resize:function(){t(n)}},a11y:{prevSlideMessage:"Anterior",nextSlideMessage:"Próximo"},centerInsufficientSlides:!0,centeredSlides:!0,centeredSlidesBounds:!0,direction:"horizontal",freeMode:{enabled:!1},keyboard:{enabled:!0,onlyInViewport:!0,pageUpDown:!0},mousewheel:{invert:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},preventClicks:!0,scrollbar:{el:".swiper-scrollbar",draggable:!0,hide:!1},slidesOffsetAfter:32,slidesOffsetBefore:32,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,watchOverflow:!0});window.mySwiper=n,t(n)}}(),(Z=Ye(Be().mark((function e(t){var n,r,a,o,i,s,c,l,u,d,f,p,h,m,v,b,y,g;return Be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g=function(e,t){var n=e.querySelector(t);if(n){var r=n.getAttribute("aria-describedby");if(r){var a=e.querySelector("#".concat(r));a&&(a.style.display="none"),n.removeAttribute("aria-describedby")}}},y=function(e,t,n){var r=e.querySelector(t);if(r){var a="input-error-message";r.setAttribute("aria-describedby",a);var o=e.querySelector("#".concat(a));if(!o){(o=document.createElement("div")).className="invalid-feedback",o.id=a,o.innerHTML='\n Mensagem de erro:\n \n ");var i=e.querySelector(".tox-form__controls-h-stack");i&&i.insertAdjacentElement("afterend",o)}o.style.display="block"}},b=function(e,t){var n=e.querySelector(t);n&&n.classList.remove("is-invalid")},v=function(e,t){var n=e.querySelector(t);n&&n.classList.add("is-invalid")},m=function(e,t){if(e){var n=e.querySelector(".tox-dialog__title");n&&"Inserir/editar imagem"===n.textContent&&(p(e,t),h(e,t))}},h=function(e,t){var n=e.querySelector(".tox-dialog__body-content");if(n){var r=new MutationObserver((function(){p(e,t)}));r.observe(n,{childList:!0});var a=new MutationObserver((function(){document.body.contains(e)||(r.disconnect(),a.disconnect())}));a.observe(document.body,{childList:!0,subtree:!0})}},p=function(e,t){var n=e.querySelector(".tox-form"),r=e.querySelector('.tox-tab[aria-selected="true"]'),a=r?r.textContent.trim():"";"Geral"!==a&&"Carregar"!==a||f(n,t)},f=function(e,t){if(e&&!e.querySelector(".image-upload-limit-message")){var n=e.querySelector(".tox-form__group");if(n){var r=document.createElement("small");r.className="form-text image-upload-limit-message",r.textContent="A imagem deve ter no máximo ".concat(t,"MB."),n.appendChild(r)}}},d=function(e){var t=e.target.editorContainer.closest(".form-group");t&&t.classList.remove("focused")},u=function(e){var t=e.target.editorContainer.closest(".form-group");t&&t.classList.add("focused")},l=function(e){""===e.getContent()?e.editorContainer.classList.remove("filled"):e.editorContainer.classList.add("filled")},n=function(e){var t=e.getAttribute("data-tinymce-options");if(!t)return{};try{var n=t.replace(/:\s*"([^"]*)"/g,(function(e,t){return': "'.concat(t.replace(/:/g,"@colon@"),'"')})).replace(/:\s*'([^']*)'/g,(function(e,t){return': "'.concat(t.replace(/:/g,"@colon@"),'"')})).replace(/(['"])?([a-z0-9A-Z_]+)(['"])?\s*:/g,'"$2": ').replace(/@colon@/g,":");return JSON.parse(n)}catch(e){console.error("data-tinymce-options com formato inválido")}return{}},r=function(e,t){var n={"branco-azul":{bodyBg:"white"},"azul-amarelo":{bodyBg:"blue"},"preto-amarelo":{bodyBg:"black"},"preto-azul":{bodyBg:"black"}};for(var r in n){var a=n[r].bodyBg;e.classList.remove("bg-".concat(a)),t.classList.remove("bg-".concat(a))}var o=document.querySelector("body").getAttribute("data-ac-activated");if(o){var i=n[o].bodyBg;t.classList.add("bg-".concat(i)),e.classList.add("mce-content-body","bg-".concat(i)),e.setAttribute("data-ac-activated",o)}else e.classList.add("mce-content-body","bg-white"),e.removeAttribute("data-ac-activated"),t.classList.add("bg-white")},a=function(e,t){var n=document.querySelector("body");n&&new MutationObserver((function(n){var a,o=Re(n);try{for(o.s();!(a=o.n()).done;){var i=a.value;"attributes"===i.type&&"data-ac-activated"===i.attributeName&&r(e,t)}}catch(e){o.e(e)}finally{o.f()}})).observe(n,{attributes:!0})},o=new MutationObserver((function(e){e.forEach((function(e){var t=e.target;if(t.classList.contains("tox-collection__item--active")){var n=$e($(t).parents(".tox-menu"),1)[0].nextElementSibling;if(n&&!n.style.bottom){var r=-1*($e($(n).parents(".tox.tox-tinymce-aux"),1)[0].getBoundingClientRect().top-t.getBoundingClientRect().top);n.style.top="".concat(r,"px")}}}))})),i=new MutationObserver((function(e){e.forEach((function(e){var t=e.target;if("true"===t.getAttribute("aria-expanded")){var n=$e($(t).parents(".tox-menu"),1)[0].nextElementSibling;if(n&&!n.style.bottom){var r=-1*($e($(n).parents(".tox.tox-tinymce-aux"),1)[0].getBoundingClientRect().top-t.getBoundingClientRect().top);n.style.top="".concat(r,"px")}n&&n.querySelectorAll("[aria-expanded]").forEach((function(e){o.observe(e,{attributes:!0,attributeFilter:["class"]})}))}}))})),s=new MutationObserver((function(e){e.forEach((function(e){var t=e.target;if("true"===t.getAttribute("aria-expanded")){var n=document.querySelector(".tox-menu");if(n&&!n.style.bottom){var r=$e($(n).parents(".tox.tox-tinymce-aux"),1)[0].getBoundingClientRect().top,a=t.getBoundingClientRect(),o=-1*(r-a.top-a.height);n.style.top="".concat(o,"px")}n&&n.querySelectorAll("[aria-expanded]").forEach((function(e){i.observe(e,{attributes:!0,attributeFilter:["aria-expanded"]})}))}}))})),c='
\n

Navegação por teclado na interface do editor

\n\n

Ativando a navegação por teclado

\n\n

As seções da interface externa do editor - a barra de menus, a barra de ferramentas, a barra lateral e o rodapé - são todas navegáveis por teclado. Como tal, existem várias maneiras de ativar a navegação por teclado:

\n
    \n
  • Focar na barra de menus: Alt + F9 (Windows) ou ⌥F9 (MacOS)
  • \n
  • Focar na barra de ferramentas: Alt + F10 (Windows) ou ⌥F10 (MacOS)
  • \n
  • Focar no rodapé: Alt + F11 (Windows) ou ⌥F11 (MacOS)
  • \n
\n\n

Ao focar na barra de menus ou na barra de ferramentas, a navegação por teclado começará no primeiro item da barra de menus ou da barra de ferramentas, que será destacado com um fundo cinza. Ao focar no rodapé, a navegação por teclado começará no primeiro item no caminho do elemento, que será destacado com um sublinhado.

\n\n

Movendo-se entre as seções da interface

\n\n

Quando a navegação por teclado estiver ativa, pressionar a tecla Tab moverá o foco para a próxima seção principal da interface, quando aplicável. Essas seções são:

\n
    \n
  • a barra de menus
  • \n
  • cada grupo da barra de ferramentas
  • \n
  • a barra lateral
  • \n
  • o caminho do elemento no rodapé
  • \n
  • o botão de alternância de contagem de palavras no rodapé
  • \n
  • o link de marca no rodapé
  • \n
  • a alça de redimensionamento do editor no rodapé
  • \n
\n\n

Ao pressionar Shift + Tab, você se moverá para trás nas mesmas seções, exceto ao passar do rodapé para a barra de ferramentas. Ao focar no caminho do elemento e, em seguida, pressionar Shift + Tab, o foco será movido para o primeiro grupo da barra de ferramentas, não para o último.

\n\n

Movendo-se dentro das seções da interface

\n\n

A navegação por teclado dentro das seções da interface geralmente pode ser feita usando as teclas de seta esquerda e direita. Isso inclui:

\n
    \n
  • mover-se entre os menus na barra de menus
  • \n
  • mover-se entre os botões em um grupo da barra de ferramentas
  • \n
  • mover-se entre os itens no caminho do elemento
  • \n
\n\n

Em todas essas seções da interface, a navegação por teclado ciclará dentro da seção. Por exemplo, ao focar no último botão em um grupo da barra de ferramentas e, em seguida, pressionar a tecla de seta para a direita, o foco será movido para o primeiro item no mesmo grupo da barra de ferramentas.

\n\n

Executando botões

\n\n

Para executar um botão, navegue até o botão desejado e pressione a tecla de espaço ou enter.

\n\n

Abrindo, navegando e fechando menus

\n\n

Ao focar em um botão da barra de menus ou um botão da barra de ferramentas com um menu, pressionar espaço, enter ou a seta para baixo abrirá o menu. Quando o menu é aberto, o primeiro item será selecionado. Para se mover para cima ou para baixo no menu, pressione as teclas de seta para cima ou para baixo, respectivamente. O mesmo vale para submenus, que também podem ser abertos e fechados usando as teclas de seta esquerda e direita.

\n\n

Para fechar qualquer menu ativo, pressione a tecla de escape. Quando um menu é fechado, a seleção será restaurada para a seleção anterior. Isso também funciona para fechar submenus.

\n\n

Barras de ferramentas e menus de contexto

\n\n

Para focar uma barra de ferramentas de contexto aberta, como a barra de ferramentas de tabela, pressione Ctrl + F9 (Windows) ou ⌃F9 (MacOS).

\n\n

A navegação na barra de ferramentas de contexto é a mesma da navegação na barra de ferramentas padrão, e a navegação no menu de contexto é a mesma da navegação em menus normais.

\n\n

Navegação em diálogos

\n\n

Existem dois tipos de interfaces de diálogo no TinyMCE: diálogos com guias e diálogos sem guias.

\n\n

Quando um diálogo sem guias é aberto, o primeiro componente interativo no diálogo será focado. Os usuários podem navegar entre os componentes interativos pressionando a tecla Tab. Isso inclui quaisquer botões no rodapé. A navegação ciclará de volta para o primeiro componente do diálogo se a tecla Tab for pressionada enquanto o último componente do diálogo estiver em foco. Pressionar Shift + Tab navegará em ordem inversa.

\n\n

Quando um diálogo com guias é aberto, o primeiro botão no menu de guias é focado. Pressionar a tecla Tab navegará para o primeiro componente interativo naquela guia e ciclará pelos componentes da guia, pelos botões do rodapé e, em seguida, de volta para o botão da guia. Para alternar para outra guia, focalize o botão da guia para a guia atual e, em seguida, use as teclas de seta para navegar pelos botões das guias.

\n
\n',document.querySelectorAll('textarea[data-tinymce="basic"]').forEach(function(){var e=Ye(Be().mark((function e(o,i){var f,p,h;return Be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.setAttribute("id","".concat(o.getAttribute("id"),"-").concat(i+1)),"undefined"!=typeof tinymce){e.next=4;break}return console.error("O TinyMCE não está definido"),e.abrupt("return");case 4:f=n(o),p={selector:"textarea#".concat(o.getAttribute("id"),'[data-tinymce="basic"]'),height:200,branding:!1,skin:!1,min_height:200,language:"pt_BR",plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],menubar:!1,toolbar:"undo redo | bold italic underline removeformat | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link | help",link_class_list:[{title:"Padrão",value:"link-text"},{title:"Sem Sublinhado",value:"link-normal"},{title:"Fundo Destacado",value:"link"}],content_css:"".concat(t.urlBase,"css/base.css, ").concat(t.urlBase,"css/alto_contraste.css"),content_style:"body { padding: 0 10px; font-size: 14px } ul {margin-left: 20px;}",toolbar_mode:"sliding",fontsize_formats:"12px 14px 16px 18px 20px 24px 36px",setup:function(e){e.on("focus",u),e.on("blur",d),e.on("keyup",(function(){return l(e)})),e.on("change",(function(){return l(e)})),e.on("init",(function(){o.nextElementSibling.querySelectorAll("[aria-expanded]").forEach((function(e){s.observe(e,{attributes:!0,attributeFilter:["aria-expanded"]})}));var t=$(o).next(".tox-tinymce").contents().find("iframe").contents().find("body")[0],n=$(o).next(".tox-tinymce").contents().find("iframe").contents().find("html")[0];n.setAttribute("paleta",document.querySelector("html").getAttribute("paleta")),n.classList.add("bg-white"),t.classList.add("bg-white"),t.classList.add("fix-ul-li"),r(t,n),a(t,n),e.plugins.help.addTab({name:"keyboardnav",title:"Navegação por teclado",items:[{type:"htmlpanel",html:c}]}),l(e)}))}},h=He(He({},p),f),tinymce.init(h);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),document.querySelectorAll('textarea[data-tinymce="intermediate"]').forEach(function(){var e=Ye(Be().mark((function e(o,i){var f,p,h;return Be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.setAttribute("id","".concat(o.getAttribute("id"),"-").concat(i+1)),"undefined"!=typeof tinymce){e.next=4;break}return console.error("O TinyMCE não está definido"),e.abrupt("return");case 4:f=n(o),p={selector:"textarea#".concat(o.getAttribute("id"),'[data-tinymce="intermediate"]'),height:200,min_height:200,branding:!1,skin:!1,language:"pt_BR",plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],menubar:"false",toolbar:"undo redo | bold italic underline removeformat | strikethrough superscript subscript | fontsizeselect forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table | media image link | code | help ",link_class_list:[{title:"Padrão",value:"link-text"},{title:"Sem Sublinhado",value:"link-normal"},{title:"Fundo Destacado",value:"link"}],content_css:"".concat(t.urlBase,"css/base.css, ").concat(t.urlBase,"css/alto_contraste.css"),content_style:"body { padding: 0 10px; font-size: 14px } ul {margin-left: 20px;}",toolbar_mode:"sliding",fontsize_formats:"12px 14px 16px 18px 20px 24px 36px",file_picker_callback:function(e){var t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","image/*"),t.onchange=function(){var t=this.files[0],n=o.getAttribute("data-image-size-limit")||1,r=1024*parseFloat(n)*1024,a=document.querySelector(".tox-icon.tox-control-wrap__status-icon-invalid"),i=a.closest(".tox-form__group");if(t.size=t)r.classList.remove("d-none");else{var s=function(e,t){var r=document.createElement("div"),a=document.createElement("button"),o=document.createElement("i"),i=document.createElement("p");return o.classList.add("fas","fa-times"),a.classList.add("tag-filtro","darker"),a.type="button",a.innerText=e,a.appendChild(o),a.addEventListener("click",(function(){n(a,e,t)})),i.innerText=t,i.classList.add("p3"),r.classList.add("info-tag"),r.appendChild(a),r.appendChild(i),r.tagCode=e,r}(e.name,e.descricao);i.appendChild(s);var c=o.tagsRemovedOnThisOpening.findIndex((function(e){return e.tagCode===s.tagCode}));-1!==c?o.tagsRemovedOnThisOpening.splice(c,1):o.tagsSelectedOnThisOpening.push(s),i.children[0].classList.contains("d-none")||i.children[0].classList.add("d-none"),a.classList.add("d-none")}})),window.tooltipMouseMove(a),a},document.querySelectorAll(".action.checkpoint").forEach(function(){var e=tt(Qe().mark((function e(t){var a,o,i,s,c,l,d,f,p,h,m,v,b,y,g,E,w,L;return Qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.dataset.api,o=t.dataset.json,i=t.dataset.maxSelected,!a&&!o){e.next=33;break}if(s=[],!a){e.next=14;break}return e.next=8,fetch(a);case 8:return c=e.sent,e.next=11,c.json();case 11:s=e.sent,e.next=15;break;case 14:o&&(s=JSON.parse(o));case 15:(l=t.nextElementSibling).tagsSelectedOnThisOpening=[],l.tagsRemovedOnThisOpening=[],d=l.getElementsByClassName("checkpoint-tag")[0],f=l.getElementsByClassName("checkpoint-info")[0],p=l.getElementsByClassName("checkpoint-button")[0],h=$(t).parents(".add-comment-container"),m=nt(h,1),(v=m[0])&&(b=v.querySelector("form"))&&(y=function(){b.querySelectorAll('button[data-belongs="checkpoint"]').forEach((function(e){e.click()}))},b.resetCheckpointTagsDataState=y),(g=l.querySelector(".tags-warn"))&&(E=g.querySelector(".tags-qnt"),g.classList.add("d-none"),E.innerText=i),w=function(e){var t=e.label,r=e.meaning;f.querySelectorAll(".info-tag").forEach((function(e){var a=e.querySelector(".tag-filtro");a.innerText===t&&n(a,t,r)}))},u.checkpoint.updateDropdown=w,L=function(){var e=Array.from(f.querySelectorAll(".info-tag")).map((function(e){return{label:e.querySelector(".tag-filtro").innerText,meaning:e.querySelector("p").innerText}}));e.reverse(),nt($(f).parents("form"),1)[0].dispatchEvent(new CustomEvent("updatetags",{detail:{tags:e,belongs:"checkpoint"}}))},s.forEach((function(e){var t=r(e,Number(i),g);d.appendChild(t)})),p.getElementsByClassName("btn-secondary")[0].addEventListener("click",(function(){Array.from(d.children).forEach((function(e){l.tagsSelectedOnThisOpening.find((function(t){return t.tagCode===e.tagCode}))&&e.classList.contains("d-none")&&e.classList.remove("d-none"),l.tagsRemovedOnThisOpening.find((function(t){return t.tagCode===e.tagCode}))&&!e.classList.contains("d-none")&&e.classList.add("d-none")})),f.children.length>1&&Array.from(f.children).forEach((function(e){l.tagsSelectedOnThisOpening.includes(e)&&e.remove()})),f.append.apply(f,Ze(l.tagsRemovedOnThisOpening));var e=f.querySelector(".info-titulo");1===f.children.length?e.classList.remove("d-none"):e.classList.add("d-none"),g&&g.classList.add("d-none"),l.tagsSelectedOnThisOpening=[],l.tagsRemovedOnThisOpening=[],window.closeDropdown(t)})),p.getElementsByClassName("btn-primary")[0].addEventListener("click",(function(){f&&L(),g&&g.classList.add("d-none"),l.tagsSelectedOnThisOpening=[],l.tagsRemovedOnThisOpening=[],window.closeDropdown(t)}));case 33:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a=function(e){e.dataset.activeted="false";var t=nt($(e).parents(".dropdown-menu"),1)[0],n=nt(t.getElementsByClassName("iniciativa-selecionados"),1)[0],r=nt(n.children,1)[0];t.quantidadeIESelecionadas-=1;var a=t.tagsSelectedOnThisOpening.findIndex((function(t){return t.tagCode===e.tagCode}));-1!==a?t.tagsSelectedOnThisOpening.splice(a,1):t.tagsRemovedOnThisOpening.push(e),t.quantidadeIESelecionadas<10?(r.innerText="0".concat(t.quantidadeIESelecionadas),0===t.quantidadeIESelecionadas&&n.classList.add("d-none")):r.innerText="".concat(t.quantidadeIESelecionadas)},o=function(e){var t=nt(e.getElementsByClassName("iniciativa-selecionados"),1)[0],n=nt(t.children,1)[0];0!==e.quantidadeIESelecionadas?(t.classList.remove("d-none"),e.quantidadeIESelecionadas<10?n.innerText="0".concat(e.quantidadeIESelecionadas):n.innerText="".concat(e.quantidadeIESelecionadas)):t.classList.add("d-none")},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=document.createElement("span");n.classList.add("tag-conteudo__head");var r=document.createElement("p");r.innerText=e.name,r.classList.add("name"),n.appendChild(r);var i=document.createElement("span");i.classList.add("tag-conteudo__body");var s=document.createElement("p");s.innerText=e.descricao,s.classList.add("descricao"),i.appendChild(s);var c=document.createElement("span");c.classList.add("tag-conteudo__footer");var l=document.createElement("i");l.classList.add("fas","fa-check"),c.appendChild(l);var u=document.createElement("span");u.append(n,i,c);var d=document.createElement("button");return d.type="button",d.classList.add("tag-conteudo"),d.setAttribute("data-activeted","false"),d.tagCode=e.name,d.appendChild(u),window.tagConteudoIconChangeFeatures(d),d.addEventListener("click",(function(){var e=nt($(d).parents(".dropdown-menu"),1)[0],n=e.querySelector(".tags-warn");if("true"===d.getAttribute("data-activeted")){if(e.quantidadeIESelecionadas>=t)return n.classList.remove("d-none"),void(d.dataset.activeted="false");e.quantidadeIESelecionadas+=1;var r=e.tagsRemovedOnThisOpening.findIndex((function(e){return e.tagCode===d.tagCode}));-1!==r?e.tagsRemovedOnThisOpening.splice(r,1):e.tagsSelectedOnThisOpening.push(d),o(e)}else n.classList.add("d-none"),a(d)})),d},s=function(e){return"".concat(e,1===e?" iniciativa estratégica":" iniciativas estratégicas")},document.querySelectorAll(".action.iniciativa").forEach(function(){var e=tt(Qe().mark((function e(t){var n,r,c,l,d,f,p,h,m,v,b,y,g,E,w,L,x,S,A,k,C,_;return Qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.dataset.api,r=t.dataset.json,c=t.dataset.maxSelected,!n&&!r){e.next=39;break}if(l=[],!n){e.next=14;break}return e.next=8,fetch(n);case 8:return d=e.sent,e.next=11,d.json();case 11:l=e.sent,e.next=15;break;case 14:r&&(l=JSON.parse(r));case 15:(f=t.nextElementSibling).quantidadeIESelecionadas=0,f.tagsSelectedOnThisOpening=[],f.tagsRemovedOnThisOpening=[],p=f.getElementsByClassName("iniciativa-busca")[0],h=f.getElementsByClassName("iniciativa-info")[0],m=f.getElementsByClassName("iniciativa-button")[0],v=$(t).parents(".add-comment-container"),b=nt(v,1),(y=b[0])&&(g=y.querySelector("form"))&&(E=function(){g.querySelectorAll('button[data-belongs="iniciativa"]').forEach((function(e){e.click()}))},g.resetVincularIniciativaTagsDataState=E),(w=f.querySelector(".tags-warn"))&&(L=w.querySelector(".tags-qnt"),w.classList.add("d-none"),L.innerText=c),l.forEach((function(e){h.appendChild(i(e,c))})),x=p.getElementsByClassName("ie-total"),S=nt(x,1),(A=S[0]).innerText=s(l.length),(k=new List(f,{valueNames:["name","descricao"]})).on("searchComplete",(function(){A.innerText=s(k.matchingItems.length)})),C=function(e){var t=e.label,n=k.items.find((function(e){return e.elm.querySelector(".tag-conteudo__head p").innerText===t}));a(n.elm)},u.iniciativa.updateDropdown=C,_=function(){var e=k.items.filter((function(e){return"true"===e.elm.dataset.activeted})).map((function(e){return e.elm})),n=nt($(t).parents("form"),1)[0],r=e.map((function(e){return{label:e.querySelector(".tag-conteudo__head p").innerText,meaning:e.querySelector(".tag-conteudo__body p").innerText}}));n.dispatchEvent(new CustomEvent("updatetags",{detail:{tags:r,belongs:"iniciativa"}}))},m.getElementsByClassName("btn-secondary")[0].addEventListener("click",(function(){if(p.getElementsByClassName("form-control")[0].value="",k.items.forEach((function(e){return e.show()})),f.quantidadeIESelecionadas=0,Array.from(h.children).forEach((function(e){var t=f.tagsSelectedOnThisOpening.find((function(t){return t.tagCode===e.tagCode})),n=f.tagsRemovedOnThisOpening.find((function(t){return t.tagCode===e.tagCode}));(t||n)&&e.click()})),f.quantidadeIESelecionadas=f.querySelectorAll('button[data-activeted="true"]').length,o(f),w){var e=w.querySelector(".tags-qnt");w.classList.add("d-none"),e.innerText=c}f.tagsSelectedOnThisOpening=[],f.tagsRemovedOnThisOpening=[],A.innerText=s(l.length),h.scroll({top:0}),window.closeDropdown(t)})),m.getElementsByClassName("btn-primary")[0].addEventListener("click",(function(){if(_(),w){var e=w.querySelector(".tags-qnt");w.classList.add("d-none"),e.innerText=c}f.tagsSelectedOnThisOpening=[],f.tagsRemovedOnThisOpening=[],A.innerText=s(l.length),h.scroll({top:0}),window.closeDropdown(t)}));case 39:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),document.querySelectorAll(".add-comment-container").forEach((function(e){var t=e.querySelector("#text-input-add-comment"),n=e.querySelector(".buttons-container"),r=e.querySelector("form"),a=function(){n.classList.remove("show")};if(t&&n){var o=n.querySelector("button.cancel"),i=e.querySelector(".selections");t.addEventListener("focus",(function(){n.classList.add("show")})),t.addEventListener("focusout",(function(){t.value||0!==i.children.length||a()})),o.addEventListener("click",(function(){t.value="",t.classList.remove("filled"),t.updateHeight&&t.updateHeight(),r.resetFilesDataState(),r.resetCheckpointTagsDataState(),r.resetVincularIniciativaTagsDataState(),a()}))}})),document.querySelectorAll(".add-comment-container").forEach((function(e){var t=e.querySelector("label.action");if(t){var n=t.querySelector('input[type="file"]'),r=t.querySelector("button"),a=e.querySelector("#file-data"),o=e.querySelector("form"),i=[],s=function(){a.value=JSON.stringify(i)},c=function(){var t=e.querySelector(".selections").querySelector(".file-selections");t&&0===t.childElementCount&&(t.remove(),n.value="")},l=function(e){var t,n=document.createElement("p"),r=document.createElement("button");r.type="button",r.classList.add("link-normal","delete-file"),function(e,t){e.addEventListener("click",(function(){var e=nt($(t).parents(".file-selections"),1)[0],n=Array.from(e.querySelectorAll(":scope > p")).findIndex((function(e){return e===t}));i.splice(n,1),s()}))}(r,n),t=n,r.addEventListener("click",(function(){t.remove(),c()}));var a=document.createElement("i");return a.classList.add("fas","fa-trash"),r.append(a,"Excluir"),n.append(e,r),n};o.resetFilesDataState=function(){var t=e.querySelector(".selections").querySelector(".file-selections");t&&t.querySelectorAll("button.delete-file").forEach((function(e){e.click()}))},r.addEventListener("click",(function(){n.click()})),n.addEventListener("change",(function(){!function(){var t=e.querySelector(".selections");if(t){var r=t.querySelector(".file-selections");r||((r=document.createElement("div")).classList.add("file-selections"),t.append(r));var a=n.files,o=Array.from(a),c=o.map((function(e){return{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type}}));i.push.apply(i,Ze(c)),s();var u,d=o.map((function(e){return l(e.name)}));d.length&&(u=r).append.apply(u,Ze(d))}}()}))}})),c=document.querySelectorAll(".add-comment-container"),l=new MutationObserver((function(e){e.forEach((function(e){var t=e.target,n=nt($(t).parents("form"),1)[0];if(n){var r=n.querySelector("#tags-input");if(t.classList.contains("tag-selections")){var a=Array.from(t.querySelectorAll("button.tag-filtro")).map((function(e){return e.innerText})).join(",");r.value=a}}}))})),c.forEach((function(e){var t=e.querySelector("form");if(t){var n=t.querySelector(".selections"),r=t.querySelector("#tags-input");n&&l.observe(n,{childList:!0,subtree:!0});var a=function(){var e=n.querySelector(".tag-selections");e&&0===e.childElementCount&&(e.remove(),r.value="")},o=function(e){var t=e.label,n=e.meaning,r=e.belongs,o=document.createElement("button");o.classList.add("tag-filtro","darker"),o.type="button",o.dataset.belongs=r;var i=document.createElement("i");i.classList.add("fas","fa-times");var s=document.createElement("span");return s.classList.add("title"),s.innerText=n,o.append(t,i,s),window.tooltipMouseMove(o),o.addEventListener("click",(function(){return function(e){var t=e.tag,n=e.label,r=e.meaning,o=t.dataset.belongs;u[o].updateDropdown({label:n,meaning:r}),t.remove(),a()}({tag:o,label:t,meaning:n})})),o},i=function(e){var t;t=e.belongs,n.querySelectorAll("[data-belongs=".concat(t,"]")).forEach((function(e){return e.remove()}));var r=e.tags.map((function(t){return o(Xe(Xe({},t),{},{belongs:e.belongs}))})),i=n.querySelector(".tag-selections");i||(i=function(){var e=document.createElement("div");return e.classList.add("tag-selections"),e}(),n.insertAdjacentElement("afterbegin",i)),r.forEach((function(e){var t=e.dataset.belongs;i.insertAdjacentElement(u[t].insert,e)})),a()};t.addEventListener("updatetags",(function(e){i(e.detail)}))}})),function(){var n=document.querySelector(".siedi");if(n){var r=function(e){var t=nt($(e).siblings(".goal-entry"),1)[0],n=nt($(e).siblings(".progress-value"),1)[0],r=nt($(e).siblings(".progress"),1)[0],a=nt($(r).children(".progress-bar"),1)[0],o=Number(t.dataset.maxLength)||4;e.addEventListener("click",(function(){e.classList.add("d-none"),t.classList.remove("d-none"),t.focus(),n&&(n.innerText=a.style.width||"0%")})),t.addEventListener("focusout",(function(){var r=t.isPercentaged,a=r&&"%"===t.value,o=!r&&!t.value;(a||o)&&(t.classList.add("d-none"),e.classList.remove("d-none"),e.focus(),n&&(n.innerText=""))})),t.addEventListener("input",(function(e){t.isPercentaged&&"deleteContentBackward"===e.inputType&&(t.value=t.value.slice(0,t.value.length-1)),t.value=t.value.replace(/(^,)|[^0-9,]/g,""),t.value.split(",").length>2&&(t.value=t.value.substr(0,t.value.length-1)),t.value.length>o&&(t.value=t.value.slice(0,t.value.length-1))}))};n.querySelectorAll("button.add-goal").forEach(r),e[t].register.addGoalButton=r}}(),function(){var n=document.querySelector(".siedi");if(n){var r=n.querySelectorAll('input[type="checkbox"]'),a=n.querySelectorAll('input.check-atividades-sistemas[type="checkbox"]'),o=function(e){var t=nt($(e).siblings("label.form-switch-label"),1)[0];t&&e.addEventListener("change",(function(){var n="Habilitar";e.checked&&(n="Desabilitar"),t.innerText="".concat(n," porcentagem")}))},i=function(e){var t=nt($(e).siblings("label.form-switch-label"),1)[0];t&&e.addEventListener("change",(function(){var n="ocultados";e.checked&&(n="visiveis"),t.innerText="Detalhes ".concat(n)}))};r.forEach(o),a.forEach(i),e[t].register.percentageCheckboxLabel=o,e[t].register.atividadeCheckboxLabel=i}}(),function(){var n=document.querySelector(".siedi");if(n){var r=function(e){var t=nt($(e).parents(".form-check"),1)[0],n=nt($(t).siblings(".card-container"),1)[0].querySelectorAll(".goal-entry"),r=function(e){e.target.value="".concat(e.target.value,"%")};e.addEventListener("change",(function(){e.checked?n.forEach((function(e){e.isPercentaged=!0,e.value="".concat(e.value,"%"),e.addEventListener("input",r)})):n.forEach((function(e){e.isPercentaged=!1,e.value=e.value.replace("%",""),e.removeEventListener("input",r)}))}))};n.querySelectorAll('input[type="checkbox"].switch-percentage').forEach(r),e[t].register.percentageCheckbox=r}}(),function(){if(document.querySelector(".siedi")){var n=function(e){var t=e.querySelector("i"),n=nt($(e).siblings(".editor-container"),1)[0],r=n.querySelector(".editor-container__buttons button.cancel"),a=function(){t.classList.toggle("fa-flip-both"),n.classList.toggle("show")};e.addEventListener("click",a),r&&r.addEventListener("click",(function(){tinymce.get().find((function(e){var t=e.targetElm,r=nt($(t).parents(".editor-container"),1)[0];return!(!r||r!==n)})).setContent(""),a()}))};document.querySelectorAll("button.open-editor").forEach(n),e[t].register.openEditorButton=n}}(),function(){var n=document.querySelector(".siedi");if(n){var r=function(e){var t=e.querySelector("button.cancel"),n=e.querySelectorAll("input.form-control"),r=[];$(e).on("show.bs.dropdown",(function(){n.forEach((function(e){r.push(e.value)}))})),n.forEach((function(e){var t=Number(e.dataset.maxLength)||10;e.addEventListener("input",(function(n){var r=void 0!==e.dataset.percentage;r&&"deleteContentBackward"===n.inputType&&(e.value=e.value.slice(0,e.value.length-1),!e.value)||(e.value=e.value.replace(/(^,)|[^0-9,-]/g,""),(e.value.split(",").length>2||e.value.split("-").length>2)&&(e.value=e.value.substr(0,e.value.length-1)),r&&(e.value="".concat(e.value,"%")),e.value.length>t&&(e.value=r?"".concat(e.value.slice(0,e.value.length-2),"%"):e.value.slice(0,e.value.length-1)))}))})),t.addEventListener("click",(function(){$(e).dropdown("hide"),n.forEach((function(e){var t=r[0];t?e.classList.add("filled"):e.classList.remove("filled"),e.value=t,r.shift()}))}))};n.querySelectorAll(".card-simple.current-year .card-footer .dropdown").forEach(r),e[t].register.checkpointDropdown=r;var a=n.querySelectorAll(".card-simple .card-footer .dropdown"),o=new MutationObserver((function(e){e.forEach((function(e){var t=e.target,n=t.querySelector(".dropdown-menu-arrow");if(window.innerWidth<=d)n.style.cssText="";else{var r=t.getBoundingClientRect(),a=document.getElementById(t.getAttribute("aria-labelledby")).getBoundingClientRect(),o=a.left-r.left+a.width/2;n.style.right="0",n.style.marginLeft="0",n.style.marginRight="0",n.style.left="".concat(o+-6,"px")}}))}));a.forEach((function(e){var t=e.querySelector(".dropdown-menu");o.observe(t,{attributes:!0,attributeFilter:["style"]})}))}}(),function(){var n=document.querySelector(".siedi");if(n){var r=function(e){var t=e.dataset.widthRightOffset,n=void 0===t?0:t,r=e.querySelectorAll(".card-item"),a=e.querySelector(".carousel-left"),o=e.querySelector(".carousel-right"),i=r.length,s=e.offsetWidth,c=0,l=0,u=2,f=function(){n&&r.forEach((function(e){e.style.marginRight="".concat(n,"px")}))},p=function(e){r.forEach((function(t){t.style.width="".concat(e,"px")}))},h=function(e){e.classList.add("hide")},m=function(e){e.classList.remove("hide")},v=function(t){a.style.transform="translate(".concat(t,"px, -50%)"),o.style.transform="translate(".concat(t,"px, -50%)"),u+=1,e.style.zIndex=u},b=function(){r.forEach((function(e){e.style.marginRight=""})),h(a),m(o),c=0,l=0,v(0),e.style.transform="",u=2};window.innerWidth<=d&&(p(s),f()),h(a),i<=1&&h(o),window.addEventListener("resize",(function(){window.innerWidth>d?b():(s=e.offsetWidth,p(s),f())})),a.addEventListener("click",(function(){var t;c<=0||(1===c&&h(a),m(o),c-=1,l=t=l-s-n,v(t),e.style.transform="translate3d(".concat(-1*t,"px, 0px, 0px)"))})),o.addEventListener("click",(function(){var t;c>=i-1||(c===i-2&&h(o),m(a),l=t=s*(c+=1)+n*c,v(t),e.style.transform="translate3d(".concat(-1*t,"px, 0px, 0px)"))}))};n.querySelectorAll(".card-container.visualization").forEach(r),e[t].register.visualizationCardContainerSlider=r}}(),function(){var n=document.querySelector(".siedi");if(n){var r=function(e){var t=Array.from(e.querySelectorAll(".card-item")).filter((function(e){return e.querySelector(".dropdown")})),n=function(){var t=Number(e.style.zIndex);e.style.zIndex=t+1},r=function(){t.forEach((function(e){var t=e.querySelector(".dropdown");$(t).on("shown.bs.dropdown",n)}))},a=function(){t.forEach((function(e){var t=e.querySelector(".dropdown-menu");if(t.classList.contains("dropdown-menu-right"))return t.classList.remove("dropdown-menu-right"),t.classList.add("dropdown-menu-right-waiting"),t.classList.add("dropdown-menu-center"),void window.addDropdownToMutation(t);t.classList.contains("dropdown-menu")&&!t.classList.contains("dropdown-menu-right")&&!t.classList.contains("dropdown-menu-center")&&(t.classList.add("dropdown-menu-left-waiting"),t.classList.add("dropdown-menu-center"),window.addDropdownToMutation(t))}))};window.innerWidth<=d&&(a(),r()),window.addEventListener("resize",(function(){if(window.innerWidth<=d)return a(),void r();t.forEach((function(e){var t=e.querySelector(".dropdown-menu");if(t.classList.contains("dropdown-menu-right-waiting"))return t.classList.add("dropdown-menu-right"),t.classList.remove("dropdown-menu-right-waiting"),t.classList.remove("dropdown-menu-center"),void window.removeDropdownToMutation(t);t.classList.contains("dropdown-menu-left-waiting")&&(t.classList.remove("dropdown-menu-left-waiting"),t.classList.remove("dropdown-menu-center"),window.removeDropdownToMutation(t))})),t.forEach((function(e){var t=e.querySelector(".dropdown");$(t).off("shown.bs.dropdown",n)}))}))};n.querySelectorAll(".card-container.visualization").forEach(r),e[t].register.visualizationCardContainerAlignment=r}}(),function(){if(document.querySelector(".siedi")){var n=function(e){var t=document.createElement("button");t.classList.add("tag-conteudo","visual","mb-1"),t.setAttribute("data-activeted","false");var n=document.createElement("span");t.appendChild(n);var r=document.createElement("span");r.classList.add("tag-conteudo__head"),n.appendChild(r);var a=document.createElement("p");a.innerText=e.sigla,r.appendChild(a);var o=document.createElement("span");o.classList.add("tag-conteudo__body"),n.appendChild(o);var i=document.createElement("span");i.classList.add("tag-rotulo","dark"),""===e.tag?i.classList.add("d-none"):i.innerText=e.tag,o.appendChild(i);var s=document.createElement("p");s.innerText=e.conteudo,o.appendChild(s);var c=document.createElement("span");c.classList.add("tag-conteudo__footer"),n.appendChild(c);var l=document.createElement("i");return l.classList.add("fas","fa-check"),c.appendChild(l),tagConteudoIconChangeFeatures(t),t},r=function(){var e=tt(Qe().mark((function e(t){var r,a,o,i,s,c,l,u,d,f,p,h,m;return Qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.getElementsByClassName("ie-head")[0],a=r.children[0],o=t.getElementsByClassName("ie-body")[0],i=t.getElementsByClassName("ie-footer")[0],s=Array.from(r.getElementsByClassName("nav-link")),c=Array.from(o.getElementsByClassName("ie-edit")),l=i.getElementsByClassName("adicionar-ie")[0],u=Array.from(o.getElementsByClassName("tab-pane")),d=Array.from(i.getElementsByClassName("ie-cancel")),f=Array.from(i.getElementsByClassName("ie-save")),!(p=t.dataset.api)){e.next=19;break}return e.next=14,fetch(p);case 14:return h=e.sent,e.next=17,h.json();case 17:m=e.sent,u.forEach((function(e,t){var r=e.getElementsByClassName("ie-body__tags")[0],o=r.previousElementSibling.children[0];m.forEach((function(a){var o=n(a);(0===t||e.getAttribute("data-pagina")===a.ano)&&(r.children[0].classList.contains("no-tags")&&r.children[0].remove(),r.appendChild(o))})),0===t?(o.innerText="".concat(r.children.length," Iniciativas estratégicas"),a.innerHTML="Iniciativas Estratégicas (".concat(r.children.length,")")):r.children[0].classList.contains("no-tags")||(o.innerText="".concat(r.children.length," Iniciativas estratégicas utilizadas nesse ano"))}));case 19:s.forEach((function(e){e.addEventListener("click",(function(){e.classList.contains("active")||(c.forEach((function(e){if(e.classList.contains("d-none")){e.classList.remove("d-none");var t=e.parentElement,n=t.nextElementSibling;n.children[0].classList.contains("no-tags")&&(n.children[0].classList.remove("d-none"),t.children[0].innerText="0 Iniciativas estratégicas utilizadas nesse ano",Array.from(n.children).forEach((function(e,t){t>0&&e.remove()})))}})),l.classList.contains("d-none")||l.classList.add("d-none"))}))})),c.forEach((function(e){e.addEventListener("click",(function(){l.classList.remove("d-none"),e.classList.add("d-none");var t=e.parentElement,n=t.nextElementSibling,r=Array.from(u[0].getElementsByClassName("ie-body__tags")[0].children);n.children[0].classList.contains("no-tags")&&(n.children[0].classList.add("d-none"),r.forEach((function(e){var t=document.createElement("button");t.innerHTML=e.innerHTML,t.classList=e.classList,t.classList.remove("visual"),t.setAttribute("data-activeted",e.getAttribute("data-activeted")),tagConteudoIconChangeFeatures(t),n.appendChild(t)}))),t.children[0].innerText="Selecione as iniciativas que estarão presentes no ano:"}))})),d.forEach((function(e){e.addEventListener("click",(function(){l.classList.add("d-none"),c.forEach((function(e){if(e.classList.contains("d-none")){e.classList.remove("d-none");var t=e.parentElement,n=t.nextElementSibling;n.children[0].classList.contains("no-tags")&&(n.children[0].classList.remove("d-none"),t.children[0].innerText="0 Iniciativas estratégicas utilizadas nesse ano",Array.from(n.children).forEach((function(e,t){t>0&&e.remove()})))}}))}))})),f.forEach((function(e){e.addEventListener("click",(function(){}))}));case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();document.querySelectorAll(".ie").forEach(r),e[t].register.buildingIEWithAPI=r}}(),function(){var n=document.querySelector(".siedi");if(n){var r=document.querySelectorAll(".atividades"),a=n.querySelectorAll('input.check-atividades-sistemas[type="checkbox"]'),o=function(e){var t=document.createElement("div");t.classList.add("card-comentario","mb-2"),e.logSistema&&t.classList.add("log-sistema");var n=document.createElement("img");n.setAttribute("src",e.foto),n.setAttribute("alt","Foto representando ".concat(e.nome));var r=document.createElement("img");r.setAttribute("src",e.foto),r.setAttribute("alt","Foto representando ".concat(e.nome));var a=document.createElement("div");a.classList.add("card-header"),a.appendChild(n),t.appendChild(a);var o=document.createElement("div");o.classList.add("card-body"),t.appendChild(o);var i=document.createElement("div");i.classList.add("card-label"),i.appendChild(r),o.appendChild(i);var s=document.createElement("p");s.classList.add("name"),s.innerText=e.nome,i.appendChild(s);var c=document.createElement("p");c.classList.add("hora"),c.innerText=e.data,i.appendChild(c),e.siglas.forEach((function(e){var n=document.createElement("button");n.classList.add("tag-filtro","darker"),n.innerText=e.label;var r=document.createElement("span");r.classList.add("title"),r.innerText="Tradução: ".concat(e.title),n.appendChild(r),i.appendChild(n),n.addEventListener("mousemove",(function(e){var a=n.getBoundingClientRect();if(window.addEventListener("resize",(function(){r.overflowedRight=!1,r.style.width=""})),r.getBoundingClientRect().right>t.getBoundingClientRect().right||r.overflowedRight){var o=t.getBoundingClientRect().width/2,i=r.getBoundingClientRect().width/2;o0&&e.pdf.forEach((function(e){var t=document.createElement("div");t.classList.add("arquivo");var n=document.createElement("a");n.classList.add("link-normal","dark");var r=document.createElement("i");r.classList.add("far","fa-file-pdf"),n.appendChild(r),n.innerText="".concat(e),t.appendChild(n),d.appendChild(t)})),o.appendChild(d);var f=document.createElement("div");return f.classList.add("card-footer"),t.appendChild(f),t},i=function(){var e=tt(Qe().mark((function e(t){var n,r,a,i,s;return Qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getElementsByClassName("atividades__top")[0],r=t.getElementsByClassName("atividades__cards")[0],a=t.getElementsByClassName("atividades__button")[0],!(i=t.dataset.api)){e.next=12;break}return e.next=7,fetch(i);case 7:return s=e.sent,e.next=10,s.json();case 10:e.sent.forEach((function(e){var t=o(e);r.appendChild(t)}));case 12:r.children.length>1?(r.children[0].classList.add("d-none"),n.children[1].classList.remove("d-none"),a.classList.remove("d-none")):(r.children[0].classList.remove("d-none"),n.children[1].classList.add("d-none"),a.classList.add("d-none"));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(e){var t=e.parentElement.parentElement.parentElement.nextElementSibling;e.addEventListener("change",(function(){e.checked?Array.from(t.children).forEach((function(e){e.classList.contains("log-sistema")&&e.classList.remove("d-none")})):Array.from(t.children).forEach((function(e){e.classList.contains("log-sistema")&&e.classList.add("d-none")}))}))};r.forEach(i),a.forEach(s),e[t].register.buildingActivityCardsCommentsWithAPI=i,e[t].register.atividadeCheckbox=s}}(),function(){if(document.querySelector(".siedi")){var n=document.querySelectorAll(".chefe-unidade"),r=function(e){var t=e.getElementsByClassName("chefe-unidade__progress")[0];Array.from(t.getElementsByClassName("chart")).forEach((function(e,t){!function(e,t,n){if(e){var r=e.getContext("2d");new Chart(r,{type:"line",data:{labels:t,datasets:[{label:n.label,data:n.data}]}})}}(e.children[1],["checkpoint 1","checkpoint 2","checkpoint 3","checkpoint 4"],{label:"Progresso",data:["10","".concat(10*t+35),"".concat(10*t+55),"100"]})}))};n.forEach(r),e[t].register.buildGraficsInChefeUnidade=r}}()}(window.Cosmos),"undefined"!=typeof Chart){"undefined"!=typeof ChartDataLabels&&Chart.plugins.unregister(ChartDataLabels);var ct=function(){Chart.defaults.global.defaultFontColor="#5c6473",Chart.defaults.bar.scales.yAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.gridLines.color="#d8e1ea",e.gridLines.zeroLineColor="#bdc4cc"})),Chart.defaults.horizontalBar.scales.xAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.gridLines.color="#d8e1ea",e.gridLines.zeroLineColor="#bdc4cc"})),Chart.defaults.line.scales.xAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.gridLines.color="#d8e1ea",e.gridLines.zeroLineColor="#d8e1ea"})),Chart.defaults.line.scales.yAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.gridLines.color="#d8e1ea",e.gridLines.zeroLineColor="#bdc4cc"})),Chart.defaults.radar.scale.gridLines=Chart.defaults.radar.scale.gridLines||{},Chart.defaults.radar.scale.gridLines.color="#d8e1ea",Chart.defaults.radar.scale.angleLines=Chart.defaults.radar.scale.angleLines||{},Chart.defaults.radar.scale.angleLines.color="#d8e1ea",Chart.defaults.radar.scale.ticks=Chart.defaults.radar.scale.ticks||{},Chart.defaults.radar.scale.ticks.backdropColor="#fff",Chart.defaults.radar.scale.ticks.fontColor="#5c6473"};ct(),Chart.defaults.global.defaultFontFamily='"Open Sans", sans-serif',Chart.defaults.global.datasets.bar.barPercentage=1,Chart.defaults.global.datasets.horizontalBar.barPercentage=1,Chart.defaults.global.datasets.pie=Chart.defaults.global.datasets.pie||{},Chart.defaults.global.datasets.pie.borderWidth=1,Chart.defaults.global.datasets.doughnut=Chart.defaults.global.datasets.doughnut||{},Chart.defaults.global.datasets.doughnut.borderWidth=1,Chart.defaults.global.datasets.line=Chart.defaults.global.datasets.line||{},Chart.defaults.global.datasets.line.fill=!1,Chart.defaults.global.datasets.radar=Chart.defaults.global.datasets.radar||{},Chart.defaults.global.datasets.radar.pointRadius=0,Chart.defaults.global.datasets.area={},Chart.defaults.global.datasets.area.fill="start",Chart.defaults.bar.scales.xAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.gridLines.display=!1})),Chart.defaults.bar.scales.yAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.ticks=e.ticks||{},e.gridLines.zeroLineWidth=2,e.ticks.padding=5})),Chart.defaults.horizontalBar.scales.xAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.ticks=e.ticks||{},e.gridLines.zeroLineWidth=2,e.ticks.padding=5})),Chart.defaults.horizontalBar.scales.yAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.gridLines.display=!1})),Chart.defaults.pie.plugins=Chart.defaults.pie.plugins||{},Chart.defaults.pie.plugins.datalabels={formatter:function(e){return"".concat(e,"%")},backgroundColor:"#fff",color:"#5b6372",borderRadius:5,font:{weight:600,size:14},padding:{top:2,bottom:0}},Chart.defaults.doughnut.plugins=Chart.defaults.doughnut.plugins||{},Chart.defaults.doughnut.plugins.datalabels={formatter:function(e){return"".concat(e,"%")},backgroundColor:"#fff",color:"#5b6372",borderRadius:5,font:{weight:600,size:14},padding:{top:2,bottom:0}},Chart.defaults.line.elements=Chart.defaults.line.elements||{},Chart.defaults.line.elements.point={radius:0},Chart.defaults.line.tooltips={mode:"index",intersect:!1},Chart.defaults.line.hover={mode:"intersect",intersect:!0},Chart.defaults.line.scales.xAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.gridLines.drawOnChartArea=!1})),Chart.defaults.line.scales.yAxes.forEach((function(e){e.gridLines=e.gridLines||{},e.ticks=e.ticks||{},e.gridLines.zeroLineWidth=2,e.ticks.padding=5})),Chart.defaults.area=function(e){for(var t=1;t0;t-=1){var n=Math.floor(Math.random()*(t+1)),r=[e[n],e[t]];e[t]=r[0],e[n]=r[1]}}(e),e},re=function(e,t){Chart.defaults.global.defaultFontColor=te[t][1].backgroundColor;var n=e.data.datasets,r=ne();if("bar"!==e.config.type&&"horizontalBar"!==e.config.type&&"line"!==e.config.type&&"area"!==e.config.type||(e.scales&&e.scales["x-axis-0"]&&(e.scales["x-axis-0"].options.gridLines.color=te[t][1].backgroundColor,e.scales["x-axis-0"].options.gridLines.zeroLineColor=te[t][1].backgroundColor),e.scales&&e.scales["y-axis-0"]&&(e.scales["y-axis-0"].options.gridLines.color=te[t][1].backgroundColor,e.scales["y-axis-0"].options.gridLines.zeroLineColor=te[t][1].backgroundColor),n.forEach((function(n,a){var o=a%te["azul-amarelo"].length;"line"===e.config.type&&2===o&&(o-=1),n.backgroundColor=pattern.draw(r[a],te[t][o].backgroundColor,te[t][o].patternColor),n.borderColor=pattern.draw(r[a],te[t][o].backgroundColor,te[t][o].patternColor)}))),"pie"===e.config.type||"doughnut"===e.config.type){var a=e.$plugins.descriptors.find((function(e){return"datalabels"===e.plugin.id}));a.options.color=te[t][1].patternColor,a.options.backgroundColor=te[t][1].backgroundColor,n.forEach((function(e){e.backgroundColor=e.data.map((function(e,n){var a=te["azul-amarelo"].length,o=n===a?1:n%a;return pattern.draw(r[n],te[t][o].backgroundColor,te[t][o].patternColor)}))}))}"radar"===e.config.type&&(e.config.options.scale.angleLines.color=s(te[t][1].backgroundColor,.8),e.config.options.scale.gridLines.color=s(te[t][1].backgroundColor,.8),e.config.options.scale.ticks.backdropColor=te[t][1].backgroundColor,e.config.options.scale.ticks.fontColor=te[t][1].patternColor,e.config.options.scale.ticks.fontSize=16,n.forEach((function(e){e.backgroundColor=te[t][0].backgroundColor,e.borderColor=te[t][0].backgroundColor})))},ae=document.documentElement,oe=document.body,Chart.pluginService.register({id:"tintCosmosCharts",afterRender:function(e){var t=function(){"bar"!==e.config.type&&"horizontalBar"!==e.config.type&&"line"!==e.config.type&&"area"!==e.config.type&&"radar"!==e.config.type||e.data.datasets.forEach((function(e,t){e.initial?(e.backgroundColor=e.backgroundColorInitial,e.borderColor=e.backgroundColorInitial):(e.backgroundColor||(e.backgroundColor=ee[t],e.borderColor=ee[t]),e.backgroundColorInitial=e.backgroundColor,e.initial=!0)})),"pie"!==e.config.type&&"doughnut"!==e.config.type||e.data.datasets.forEach((function(e){e.backgroundColor=e.data.map((function(e,t){return ee[t]}))}))};e.renderedOnce||t(),ae.addEventListener("contrastChange",(function(n){var r=n.detail;"off"===r.ac?(function(e){if(ct(),"bar"!==e.config.type&&"horizontalBar"!==e.config.type&&"line"!==e.config.type&&"area"!==e.config.type||(e.scales&&e.scales["x-axis-0"]&&(e.scales["x-axis-0"].options.gridLines.color="#d8e1ea",e.scales["x-axis-0"].options.gridLines.zeroLineColor="#bdc4cc"),e.scales&&e.scales["y-axis-0"]&&(e.scales["y-axis-0"].options.gridLines.color="#d8e1ea",e.scales["y-axis-0"].options.gridLines.zeroLineColor="#bdc4cc")),"pie"===e.config.type||"doughnut"===e.config.type){var t=e.$plugins.descriptors.find((function(e){return"datalabels"===e.plugin.id}));t.options.color="#5b6372",t.options.backgroundColor="#fff"}"radar"===e.config.type&&(e.config.options.scale.angleLines.color="#d8e1ea",e.config.options.scale.gridLines.color="#d8e1ea",e.config.options.scale.ticks.backdropColor="#fff",e.config.options.scale.ticks.fontColor="#5c6473",e.config.options.scale.ticks.fontSize=14)}(e),t()):re(e,r.ac),e.update(),e.update()})),e.activateHighContrast=function(t){re(e,t),e.update(),e.update()};var n=oe.dataset.acActivated;e.renderedOnce||ae.dispatchEvent(new CustomEvent("contrastChange",{detail:{ac:n||"off"}})),e.renderedOnce=!0}})}function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=100&&(s.innerText=r)):s.classList.add("d-none"))}(o,i),i||""===i)e.classList.add("not-apply");else if(o){var l=c.find((function(e){var t=lt(e.range,2),n=t[0],r=t[1];return n<=o&&o<=r}));e.classList.add(l.theme)}};u(Number(l)),i.observe(e,{attributes:!0,attributeFilter:["style","data-not-apply"]}),e.setProperTheme=u};o.forEach(s);var c={register:{progressBarRanged:s}};e.progress=c}(window.Cosmos),function(e){e.openAccordionAssinadorUfrn=function(e){var t=e.lastElementChild,n=e.parentElement;t.classList.contains("rotate-arrow")?(t.classList.remove("rotate-arrow"),setTimeout((function(){n.classList.remove("open-accordion")}),250)):(t.classList.add("rotate-arrow"),setTimeout((function(){n.classList.add("open-accordion")}),10))}}(window),function(){var e=document.getElementById("autenticacao-form");if(e){var t=e.querySelector("input");t.addEventListener("input",(function(){if(t.value=t.value.trim(),t.value)return document.getElementById("btn-autenticacao").disabled=!1,void window.deactivateError(t);window.activateError(t)}))}}(),ie=document.querySelectorAll(".memorial_eternos"),se=document.querySelector(".container-conteudo__memorial .container__list"),ce=function(){for(var e=se.querySelectorAll(".card-memorial"),t=0,n=0,r=0,a=0;an?t:n,window.innerWidth<992&&(r=t+n-50),se.style.height="".concat(r+60,"px")},se&&(ie.forEach(ce),window.addEventListener("resize",ce)),document.querySelectorAll(".timeline[data-detail-collapsable]").forEach((function(e){var t=e.parentNode,n=document.createElement("div");n.classList.add("timeline-wrapper"),t.replaceChild(n,e),n.appendChild(e);var r=document.createElement("button");r.classList.add("font-weight-semibold","link-normal","ml-4","mt-2");var a="collapsed",o=e.dataset.collapseLabel||"Expandir detalhes",i=e.dataset.collapseExpandLabel||"Recolher detalhes";e.parentNode.append(r);var s=function(){var t=e.classList.contains(a)?o:i,n=e.classList.contains(a)?"down":"up";r.innerHTML="".concat(t,' ')};r.addEventListener("click",(function(){e.classList.contains(a)?e.classList.remove("collapsed"):e.classList.add("collapsed"),s()})),s()})),document.querySelectorAll("[data-js-pagination]").forEach((function(e){e.querySelectorAll("[data-page]").forEach((function(t){var n=new CustomEvent("pagination:page",{detail:{page:t.getAttribute("data-page")}});t.addEventListener("click",(function(t){t.preventDefault(),e.dispatchEvent(n)}))}))})),le=function(){function e(t){bt(this,e),this._value=t,this.observers=[]}return gt(e,[{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.notify(e))}},{key:"subscribe",value:function(e){this.observers.push(e)}},{key:"unsubscribe",value:function(e){this.observers=this.observers.filter((function(t){return t!==e}))}},{key:"notify",value:function(e){this.observers.forEach((function(t){return t(e)}))}}]),e}(),ue=".page-info .page-item",de=function(){var e=document.createElement("template");e.innerHTML='
  • ';var t=document.createElement("template");t.innerHTML='
  • ';var n=document.createElement("template");function r(t){var n=e.content.cloneNode(!0).firstChild;return n.querySelector(".page-link").classList.add(t),n}return t.innerHTML='
  • ',{createStepLabel:function(e,t){var n=mt(e.querySelectorAll(".page-info"),2),a=n[0],o=n[1];"prev"===t&&a&&a.firstChild.before(r("prev-step")),"next"===t&&o&&o.appendChild(r("next-step"))},createStepIndicator:function(e,r,a){var o=e.querySelector(".page-position");if(o){var i=(r?t:n).content.cloneNode(!0).firstChild;a&&i.classList.add("active"),o.appendChild(i)}},clearStepIndicators:function(e){var t=e.querySelector(".page-position");t&&(t.innerHTML="")}}}(),fe=function(){function e(t,n){bt(this,e);var r={stepNames:void 0,finish:void 0,controlIndicator:!0,initialStepIndex:0};this.el=t,this.options=pt(pt({},r),n);var a=this.el.dataset.steps;this.options.stepNames=a&&a.split(",")||r.stepNames,this.options.finish=this.el.dataset.submit,this.options.controlIndicator=this.el.dataset.controlIndicator||r.controlIndicator,this.pagePositionItems=this.el.querySelectorAll(".page-position .page-item"),this.stepIndexObservable=new le(this.options.initialStepIndex),this.prepareLabelsAndIndicators(),this.prevStepLabel=this.el.querySelector("".concat(ue," .prev-step")),this.nextStepLabel=this.el.querySelector("".concat(ue," .next-step")),this.btnPrev=this.el.querySelector(".button-prev"),this.btnNext=this.el.querySelector(".button-next"),this.lastItemIndex=this.pagePositionItems.length-1,this.init()}return gt(e,[{key:"prepareLabelsAndIndicators",value:function(){var e=this,t=this.el;function n(e){return t.querySelector(".page-info .page-item .".concat(e,"-step"))}n("prev")||de.createStepLabel(t,"prev"),n("next")||de.createStepLabel(t,"next"),function(){if(!1===(t.querySelector(".page-position")?e.options.stepNames&&e.pagePositionItems.length===e.options.stepNames.length:null)){de.clearStepIndicators(t);var n=e.options,r=n.stepNames,a=n.controlIndicator;r.forEach((function(n,r){de.createStepIndicator(t,a,r===e.stepIndexObservable.value)})),e.pagePositionItems=t.querySelectorAll(".page-position .page-item")}}()}},{key:"updateWidget",value:function(e){this.updateStepIndicator(e),this.updateStateButtons(e),this.updateLabels(e)}},{key:"updateLabels",value:function(e){if(this.options.stepNames){if(0===e&&this.prevStepLabel.classList.add("d-none"),e===this.lastItemIndex)null!=this.options.finish?(this.nextStepLabel.classList.add("d-none"),this.btnNext.classList.remove("btn-primary-icon"),this.btnNext.classList.add("btn-primary"),this.btnNext.innerText=this.options.finish):this.nextStepLabel.classList.add("d-none");else{if(this.btnNext.classList.contains("btn-primary")){this.btnNext.classList.remove("btn-primary"),this.btnNext.innerText="",this.btnNext.classList.add("btn-primary-icon");var t=document.createElement("i");t.classList.add("fas","fa-chevron-right"),this.btnNext.appendChild(t)}this.nextStepLabel.textContent=this.options.stepNames[e+1],this.nextStepLabel.classList.remove("d-none")}this.prevStepLabel.textContent=this.options.stepNames[e-1],this.prevStepLabel.classList.remove("d-none")}}},{key:"updateStepIndicator",value:function(e){Array.from(this.pagePositionItems).forEach((function(t,n){n===e?t.classList.add("active"):t.classList.remove("active")}))}},{key:"updateStateButtons",value:function(e){var t=function(e){e.removeAttribute("disabled"),e.classList.remove("disabled")},n=function(e){e.classList.add("disabled"),e.setAttribute("disabled","disabled")};0===e?n(this.btnPrev):t(this.btnPrev);var r=e===this.lastItemIndex,a=null!=this.options.finish;r&&!a?n(this.btnNext):t(this.btnNext)}},{key:"init",value:function(){var e=this,t=this;function n(e,t){return new CustomEvent("pagination-slide:".concat(t),{detail:{index:e},cancelable:!0})}this.stepIndexObservable.subscribe((function(e){return t.updateWidget(e)})),this.updateLabels(this.stepIndexObservable.value);var r=new CustomEvent("pagination-slide:submit"),a=this.el;Array.from(this.pagePositionItems).forEach((function(e,r){var o=e.querySelector(".page-link");"false"!==a.dataset.controlIndicator&&o.addEventListener("click",(function(e){e.preventDefault(),a.dispatchEvent(n(r,"page"))&&(t.stepIndexObservable.value=r)}))})),this.btnPrev.addEventListener("click",(function(t){t.preventDefault();var r=Math.max(0,e.stepIndexObservable.value-1);e.el.dispatchEvent(n(r,"previous"))&&(e.stepIndexObservable.value=r)})),this.btnNext.addEventListener("click",(function(t){if(t.preventDefault(),e.stepIndexObservable.value===e.lastItemIndex&&null!=e.options.finish)e.el.dispatchEvent(r);else{var a=Math.min(e.lastItemIndex,e.stepIndexObservable.value+1);e.el.dispatchEvent(n(a,"next"))&&(e.stepIndexObservable.value=a)}}))}}]),e}(),document.querySelectorAll("[data-pagination-slide]").forEach((function(e){new fe(e)})),function(e){var t="buttonLoading",n={init:function(e){var t=(e instanceof HTMLElement?e:document).querySelectorAll("button[data-loading], a[data-loading]"),n=function(e,t){"true"===e.getAttribute("data-loading")&&function(e){var t=e.querySelector("[data-icon]"),n=e.querySelector("[data-text]"),r=e.dataset.loadingText;n&&r&&(n.dataset.originalText=n.textContent,n.textContent=r),e.classList.add("disabled"),e.setAttribute("aria-disabled","true"),t&&t.classList.add("d-none");var a=document.createElement("i");a.classList.add("fas","fa-circle-notch","fa-spin","loading-icon"),e.querySelector(".loading-icon")||e.prepend(a)}(e),"false"===e.getAttribute("data-loading")&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.querySelector("[data-icon]"),r=e.querySelector("i.loading-icon"),a=e.querySelector("[data-text]");a&&a.dataset.originalText&&(a.textContent=a.dataset.originalText,delete a.dataset.originalText),n&&n.classList.remove("d-none"),t||(e.classList.remove("disabled"),e.removeAttribute("aria-disabled")),r&&r.remove()}(e,t)},r=function(e){e.forEach((function(e){"attributes"===e.type&&"data-loading"===e.attributeName&&n(e.target)}))};t.forEach((function(e){e.LoadingStatus||(e.LoadingStatus={start:function(){return e.setAttribute("data-loading","true")},stop:function(){return e.setAttribute("data-loading","false")},isBusy:function(){return"true"===e.getAttribute("data-loading")}},n(e,!0),e.addEventListener("click",(function(e){if("manual"!==e.currentTarget.dataset.trigger){if(e.currentTarget.LoadingStatus.isBusy()||"true"===e.currentTarget.ariaDisabled)return e.preventDefault(),void e.stopImmediatePropagation();e.currentTarget.LoadingStatus.start()}})),new MutationObserver(r).observe(e,{attributes:!0,attributeOldValue:!0}))}))},stopAll:function(){document.querySelectorAll("button[data-loading]").forEach((function(e){e.LoadingStatus.stop()}))}};e[t]=n,e[t].init(),window.addEventListener("pageshow",(function(n){n.persisted&&e[t].stopAll()}))}(window.Cosmos),function(e){var t=function(){return $(window).width()<767.98},n=t();function r(e){$(e).find('[data-toggle="popover"]').popover({placement:function(e,n){var r=n.dataset.placement;return t()?"bottom":r||"right"}})}function a(e){$(e.target).popover("toggle")}e.initPopover=function(e){var o=e||document;r(o);var i=$(o).find('[data-toggle="popover"]');i.on("keypress",a),window.addEventListener("resize",(function(){t()!==n&&(!function(e){e.popover("dispose")}(i),r(o),n=t())}))},e.initPopover()}(window.Cosmos),function(e){e.initToast=function(){$(".toast").toast()},e.initToast()}(window.Cosmos),function(e){var t=function(e,t){var n,r,a=(n=e,(r=JSON.parse(localStorage.getItem(n)))?{consentDate:new Date(r.consent_date),policyVersion:r.policy_version,expireAt:r.expire_at?new Date(r.expire_at):null}:{});return!!a&&(!(a.expireAt&&new Date>a.expireAt)&&a.policyVersion===t.policyVersion)};var n={init:function(e,n){var r;e||(e="cookies-consent"),n=xt(xt({},{policyVersion:"1.0.0",expiration:null,consentText:'Nós usamos cookies para melhorar sua experiência de navegação no portal. Ao utilizar o sistema,\n você concorda com a política de monitoramento de cookies. Para ter mais informações sobre como isso é feito e como remover,\n acesse a Política de Cookies.\n Para saber como a UFRN trata os dados, acesse a\n Política de Privacidade.\n Se você concorda, clique em "Ciente".'}),n),t(e,n)||(r=e,localStorage.removeItem(r),function(e,t){var n=document.createElement("div");Object.assign(n,{role:"dialog",className:"cookies-consent-dialog",ariaLabel:"termo de consentimento do uso de cookies",tabIndex:"-1"}),n.innerHTML='

    '.concat(e,"

    ");var r=document.createElement("button");Object.assign(r,{className:"btn-quaternary consent-button",innerHTML:"Ciente"}),n.append(r),document.body.prepend(n),n.focus(),r.addEventListener("click",(function(){t(),n.remove()}))}(n.consentText,(function(){!function(e,t,n){if(Number.isInteger(n)){var r=new Date;r.setDate(r.getDate()+n),n=r.toISOString()}n instanceof Date&&(n=n.toISOString());var a={consent_date:new Date,policy_version:t,expire_at:n};localStorage.setItem(e,JSON.stringify(a))}(e,n.policyVersion,n.expiration)})))}};e.consentDialog=n}(window.Cosmos),function(e){e.BlockLoading=function(e){var t=e instanceof HTMLElement?e:document.querySelector("body");t.ariaBusy=!0;var n,r=t.querySelector(".loading-overlay");t&&!r&&t.prepend(((n=document.createElement("div")).className="loading-overlay",n.innerHTML='\n \n ',n)),e||t.classList.add("position-fixed");return{destroy:function(){var e=t.querySelector(".loading-overlay");t.ariaBusy=!1,"BODY"===t.tagName.toLocaleUpperCase()&&t.classList.remove("position-fixed"),e.querySelector(".loading-text").textContent="Processamento concluido.",e.ariaBusy=!1,setTimeout((function(){e&&e.remove()}),300)}}}}(window.Cosmos),document.querySelectorAll('.skip-menu a[href^="#"]').forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=document.querySelector(e.getAttribute("href"));n&&(window.location.href=window.location.origin+window.location.pathname+e.getAttribute("href"),n.scrollIntoView({behavior:"smooth"}),n.focus({preventScroll:!0}))}))})),function(){var e=document.querySelectorAll(".step");if(e.length){e.forEach((function(e){var t=e.querySelector(".step-ordered"),n=e.classList.contains("step-texto");(t||n)&&e.querySelectorAll(".step-progress-item").forEach((function(e){var t=e.classList.contains("step-success")||e.classList.contains("step-danger"),n=e.getAttribute("step-num");!t&&n&&e.style.setProperty("--step-num",'"'.concat(n,'"'))}))})),t(),window.addEventListener("resize",t)}function t(){var t=window.innerWidth,n=e[0],r=n.querySelector(".step-progress"),a=n.classList.contains("step-slide")||n.classList.contains("step-texto");t<576&&!a?(n.classList.add("step-vertical"),r.setAttribute("aria-orientation","vertical")):(n.classList.remove("step-vertical"),r.setAttribute("aria-orientation","horizontal"))}}(),function(){var e=document.querySelector(".wizard");if(e){var t,n,r,a,o,i=document.querySelector(".wizard-toggle"),s=document.querySelector(".wizard-btn-back"),c=document.querySelector(".wizard-btn-next"),l=document.querySelectorAll(".wizard-body-content"),u=document.querySelector(".wizard-header"),d=e.querySelector(".wizard-desktop-vertical"),f="",p="";h(),g(),w(),b(),t=new MutationObserver((function(e){var t,n=At(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("attributes"===r.type){if("class"===r.attributeName&&(-1!==Array.from(l).findIndex((function(e){return e.classList.contains("active")}))&&(w(),g(),b()),r.target.classList.contains("step-progress-item")&&r.target.classList.contains("active")&&r.target.classList.contains("step-danger"))){var a=document.querySelector(".wizard-status");E(r.target,a)}r.target===c&&"data-loading"===r.attributeName&&L()}}}catch(e){n.e(e)}finally{n.f()}})),l.forEach((function(e){t.observe(e,{attributes:!0})})),document.querySelectorAll(".step-progress-item").forEach((function(e){t.observe(e,{attributes:!0})})),t.observe(c,{attributes:!0}),i&&(i.addEventListener("click",(function(e){e.stopPropagation();var t=i.classList.toggle("wizard-toggle-expanded");i.setAttribute("aria-expanded",t),u.style.display=t?"block":"none",function(e){e?i.querySelector("i").classList.replace("fa-chevron-down","fa-chevron-up"):i.querySelector("i").classList.replace("fa-chevron-up","fa-chevron-down")}(t)})),document.addEventListener("click",(function(){i.classList.contains("wizard-toggle-expanded")&&y()}))),n=e.querySelectorAll(".combo-input"),r=e.querySelector(".wizard-body"),a=getComputedStyle(r),o=parseFloat(a.marginBottom),n.forEach((function(e){e.addEventListener("click",(function(){var t=e.getBoundingClientRect(),n=r.getBoundingClientRect(),a=t.top-n.top+r.scrollTop;r.scrollTo({top:a-r.clientHeight/2+o,behavior:"smooth"})}))})),window.addEventListener("resize",h)}function h(){e.querySelector(".step");var t,n=window.innerWidth,r=null;(r=n<768&&d||n<576?"mobile":"desktop")!==f&&(f=r,"mobile"===r?function(){if(e.classList.add("wizard-vertical"),i.style.display="flex",u.style.display="none",s.innerHTML='',c.innerHTML='',c.hasAttribute("data-loading")){c.querySelector("i").setAttribute("data-icon","true")}"true"===c.getAttribute("data-loading")&&m();v("btn-secondary","btn-secondary-icon"),v("btn-primary","btn-primary-icon")}():function(){e.classList.remove("wizard-vertical"),i.style.display="none",i.classList.contains("wizard-toggle-expanded")&&y();u.style.display="block",s.innerHTML="Voltar",c.hasAttribute("data-loading-text")?c.innerHTML='Avançar':c.innerHTML="Avançar";"true"===c.getAttribute("data-loading")&&m();b(),v("btn-secondary-icon","btn-secondary"),v("btn-primary-icon","btn-primary")}()),t=e.querySelector(".step"),d&&t.classList.add("step-vertical")}function m(){if("mobile"==f)c.innerHTML='';else if(c.querySelector(".loading-icon")||(c.innerHTML=' '.concat(c.innerHTML)),c.hasAttribute("data-loading-text")){var e=c.getAttribute("data-loading-text"),t=c.querySelector('span[data-text="true"]');t||((t=document.createElement("span")).setAttribute("data-text","true"),t.textContent=c.textContent.trim(),c.textContent="",c.appendChild(t)),p=t.textContent.trim()!==e?t.textContent.trim():"Avançar",t.textContent=e}}function v(e,t){s.classList.replace(e,t),c.classList.replace(e,t)}function b(){var t=e.querySelector(".step-progress-item.active"),n=e.querySelectorAll(".step-progress-item"),r=c.closest(".wizard").classList.contains("wizard-vertical");if(Array.from(n).indexOf(t)===n.length-1&&c.hasAttribute("data-last-label")&&!r){var a=c.getAttribute("data-last-label");c.hasAttribute("data-loading-text")?c.innerHTML=''.concat(a,""):c.textContent=a}else"desktop"==f&&(c.hasAttribute("data-loading-text")?c.innerHTML='Avançar':c.textContent="Avançar");"true"===c.getAttribute("data-loading")&&m()}function y(){i.classList.remove("wizard-toggle-expanded"),i.setAttribute("aria-expanded","false"),i.querySelector("i").classList.replace("fa-chevron-up","fa-chevron-down"),u.style.display="none"}function g(){var t=document.querySelector(".step-progress-item.active"),n=document.querySelector(".wizard-status");if(t&&n){n.className="wizard-status",E(t,n);var r=e.querySelector(".step-progress ");r&&r.classList.contains("step-ordered")&&function(e){var t=document.querySelector(".wizard-status.wizard-item");if(e&&t){var n=e.getAttribute("step-num");t.setAttribute("step-num",n)}}(t)}}function E(t,n){var r=t.querySelector(".step-icon");if(r)r.classList.forEach((function(e){n.classList.add(e),n.classList.remove("step-icon")}));else{var a=e.querySelector(".step-progress ");a&&a.classList.contains("step-ordered")?n.classList.add("wizard-ordered"):n.classList.add("wizard-bullet")}t.classList.contains("step-success")?n.classList.add("wizard-success"):t.classList.contains("step-warning")?n.classList.add("wizard-warning"):t.classList.contains("step-danger")&&n.classList.add("wizard-danger"),(n.classList.contains("wizard-success")||n.classList.contains("wizard-warning")||n.classList.contains("wizard-danger")||n.classList.contains("wizard-bullet")||n.classList.contains("wizard-ordered"))&&n.classList.add("wizard-item")}function w(){var e=document.querySelector(".step-progress-item.active .step-label"),t=document.querySelector(".wizard-text");e&&t&&(t.textContent=e.textContent)}function L(){if("mobile"==f)"false"===c.getAttribute("data-loading")&&(c.innerHTML='');else{var e=c.querySelector('span[data-text="true"]');if(!e)return;if("true"===c.getAttribute("data-loading")&&c.hasAttribute("data-loading-text")){var t=c.getAttribute("data-loading-text");e.textContent=t}else c.innerHTML=''.concat(p,"")}}}();const Ct="Datepicker";function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],t=document.createElement("div");t.classList.add("datepicker__header");var n,r=function(){var e=document.createElement("i");e.classList.add("fa-solid"),e.classList.add("fa-angle-left");var t=document.createElement("button");return t.classList.add("header__buttons"),t.classList.add("header__previous"),t.setAttribute("type","button"),t.appendChild(e),t}(),a=e?((n=document.createElement("h3")).classList.add("header__currentPeriod"),n.setAttribute("aria-live","polite"),n):function(){var e=document.createElement("button");return e.classList.add("header__currentMonthYear"),e.setAttribute("type","button"),e}(),o=function(){var e=document.createElement("i");e.classList.add("fa-solid"),e.classList.add("fa-angle-right");var t=document.createElement("button");return t.classList.add("header__buttons"),t.classList.add("header__next"),t.setAttribute("type","button"),t.appendChild(e),t}();return t.appendChild(r),t.appendChild(a),t.appendChild(o),t}function Tt(){var e=document.createElement("table");e.classList.add("datepicker__dateTable"),e.setAttribute("role","grid");var t=function(){var e=document.createElement("thead");e.classList.add("datepicker__dateTable__tableHeader");var t=document.createElement("tr");return t.setAttribute("role","presentation"),["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"].forEach((function(e){var n=document.createElement("th");n.setAttribute("scope","col"),n.setAttribute("abbr","".concat(e)),n.setAttribute("title","".concat(e)),n.textContent="".concat(e.substring(0,3)),t.appendChild(n)})),e.appendChild(t),e}(),n=function(){var e=document.createElement("tbody");e.classList.add("datepicker__dateTable__tableBody");for(var t=0;t<6;t++){for(var n=document.createElement("tr"),r=0;r<7;r++){var a=document.createElement("td");a.setAttribute("tabindex","-1"),n.appendChild(a)}e.appendChild(n)}return e}();return e.appendChild(t),e.appendChild(n),e}function Mt(){var e=document.createElement("table");e.classList.add("datepicker__monthsPeriodTable"),e.setAttribute("role","grid");var t=document.createElement("tbody");t.classList.add("datepicker__monthsPeriodTable__tableBody");for(var n=0;n<3;n++){for(var r=document.createElement("tr"),a=0;a<4;a++){var o=document.createElement("td");o.classList.add("datepicker__monthsPeriodTable__item"),o.setAttribute("tabindex","-1"),r.appendChild(o)}t.appendChild(r)}return e.appendChild(t),e}function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return It(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return It(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:1).getDay()}(e,t),o=0;o0,s=!isNaN(r)&&r>0&&r<=12,c=!isNaN(a)&&a>0&&a<2200&&4===a.length;return i&&s&&c}function Vt(e){var t=e;if(!e.includes("/"))if(6===e.length){var n=e.substr(0,1),r=e.substr(1,1),a=e.substr(2,4);t="0".concat(n,"/0").concat(r,"/").concat(a)}else if(8===e.length){var o=e.substr(0,2),i=e.substr(2,2),s=e.substr(4,4);t="".concat(o,"/").concat(i,"/").concat(s)}return t}function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function Xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||Kt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kt(e,t){if(e){if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(e,t):void 0}}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if("attributes"===a.type)switch(a.attributeName){case"readonly":n.updateReadonly();break;case"disabled":n.updateDisabled()}}}catch(e){r.e(e)}finally{r.f()}})),this.observer.observe(this.el,{attributes:!0,attributeFilter:["disabled","readonly"]})}}var n,r,o;return n=t,r=[{key:"toggleModal",value:function(){this.datepickerModal?this.closeModal():this.openModal()}},{key:"closeModal",value:function(){this.datepickerModal&&(this.datepickerModal.remove(),this.datepickerModal=null,this.inputEditable.setAttribute("aria-expanded","false"))}},{key:"openModal",value:function(){this.renderCalendarModal(this.getInputDateValue()||this.currentDate),this.inputEditable.setAttribute("aria-expanded","true"),this.setModalPosition()}},{key:"clickAway",value:function(e){var t=this.inputEditableWrapper.querySelector(an);this.datepickerModal&&(e.composedPath().includes(this.datepickerModal)||e.composedPath().includes(t)||this.closeModal())}},{key:"markSelectedDateOnModal",value:function(e){if(e){var t=function(e,t){return e.getFullYear()===(null==t?void 0:t.getFullYear())&&e.getMonth()===(null==t?void 0:t.getMonth())}(e,this.selectedDate);if(t){var n=Bt(this.selectedDate),r=this.datepickerModal.querySelector('[data-date="'.concat(n,'"]'));if(r){r.setAttribute("aria-selected","true");var a=r.getAttribute("aria-label")||"";r.setAttribute("aria-label","Selecionado: ".concat(a))}}}}},{key:"setCursorPositionToEnd",value:function(){var e=document.createRange(),t=window.getSelection();e.setStart(this.inputEditable.childNodes[0],this.inputEditable.textContent.length),e.collapse(!0),t.removeAllRanges(),t.addRange(e)}},{key:"setModalPosition",value:function(){new e(this.inputEditableWrapper,this.datepickerModal,{placement:"bottom-start",modifiers:{preventOverflow:{enabled:!1,padding:1},hide:{enabled:!1},offset:{enabled:!0,offset:"0, 10"}}})}},{key:"updateDisabled",value:function(){var e=this.inputEditableWrapper.querySelector(an);if(this.el.hasAttribute("disabled")){this.inputEditable.setAttribute("contenteditable","false"),this.inputEditable.setAttribute("aria-disabled","true"),this.inputEditable.setAttribute("role","textbox"),this.inputEditable.setAttribute("tabindex","-1"),this.inputEditable.classList.add("disabled");var t="Escolha de data desabilitada";e.setAttribute("aria-label",t),e.setAttribute("title",t),e.setAttribute("disabled","true")}else{this.inputEditable.setAttribute("contenteditable","true"),this.inputEditable.removeAttribute("aria-disabled"),this.inputEditable.setAttribute("role","combobox"),this.inputEditable.setAttribute("tabindex","0"),this.inputEditable.classList.remove("disabled");var n="Escolha uma data";e.setAttribute("aria-label",n),e.setAttribute("title",n),e.removeAttribute("disabled")}}},{key:"updateReadonly",value:function(){var e=this.inputEditableWrapper.querySelector(an);if(this.el.hasAttribute("readonly")){this.inputEditable.removeAttribute("aria-haspopup"),this.inputEditable.setAttribute("contenteditable","false"),this.inputEditable.setAttribute("tabindex","0"),this.inputEditable.setAttribute("role","textbox"),this.inputEditable.setAttribute("aria-readonly","true");var t="Escolha de data desabilitada";e.setAttribute("aria-label",t),e.setAttribute("title",t),e.setAttribute("disabled","true")}else this.inputEditable.removeAttribute("aria-readonly"),this.inputEditable.setAttribute("contenteditable","true"),this.inputEditable.setAttribute("role","combobox"),this.inputEditable.setAttribute("aria-haspopup","dialog"),e.removeAttribute("disabled")}},{key:"clearsModal",value:function(){this.datepickerModal.innerHTML=""}},{key:"selectDate",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.el.classList.contains("is-invalid")&&(window.deactivateError(this.el),this.inputEditable.removeAttribute("aria-invalid"),this.inputEditable.removeAttribute("aria-describedby")),this.closeModal(),this.el.value="dd/mm/yyyy"===this.outputFormat?zt(e):e,this.selectedDate=Dt(e),this.inputEditable.innerText=zt(e),t&&this.inputEditable.focus()}},{key:"getInputDateValue",value:function(){var e=this.inputEditable.textContent;return e&&Yt(e)?Dt(e):null}},{key:"activateError",value:function(){this.inputEditable.classList.add("is-invalid")}},{key:"deactivateError",value:function(){this.inputEditable.classList.remove("is-invalid")}},{key:"syncToInputValue",value:function(){this.el.value=null;var e=this.getInputDateValue();e&&("dd/mm/yyyy"===this.outputFormat?this.el.value=this.inputEditable.innerText:this.el.value=Bt(e))}},{key:"syncToContentEditableText",value:function(){var e,t;Yt("dd/mm/yyyy"===this.outputFormat?null===(e=this.el)||void 0===e?void 0:e.value:zt(null===(t=this.el)||void 0===t?void 0:t.value))?"dd/mm/yyyy"===this.outputFormat?(this.el.value=Vt(this.el.value),this.inputEditable.textContent=this.el.value):this.inputEditable.textContent=zt(this.el.value):(this.el.value="",this.inputEditable.textContent="")}},{key:"focusOnDay",value:function(e,t){var n,r=this.datepickerModal.querySelectorAll("td[data-date]"),a=Array.from(r).indexOf(e),o=Dt(e.getAttribute("data-date")),i=o.getMonth(),s=o.getFullYear(),c=Rt(s,i),l=a+1,u=Gt(s,i),d=function(e,t){return Rt(11===t?e+1:e,11===t?0:t+1)}(s,i),f=c-l+d,p=e.getAttribute("aria-label").split(",")[0],h=Pt.indexOf(p);switch(t){case"right":n=1;break;case"left":n=-1;break;case"up":n=-7;break;case"down":n=7;break;case"home":n=-h;break;case"end":n=6-h;break;case"pageUp":n=ud?f:c}var m=r[a+n];if(m)e.setAttribute("tabindex","-1"),m.setAttribute("tabindex","0"),m.focus();else{var v=Dt(e.getAttribute("data-date"));v.setDate(v.getDate()+n),this.dispatchNextMonthEvent(v)}}},{key:"focusOnTd",value:function(e,t){var n,r=this.datepickerModal.querySelectorAll(on),a=Array.from(r).indexOf(e);switch(t){case"right":n=r[a+1]||r[0];break;case"left":n=r[a-1]||r[r.length-1];break;case"up":n=r[a-4]||r[a+8];break;case"down":n=r[a+4]||r[a-8]}e.setAttribute("tabindex","-1"),n.setAttribute("tabindex","0"),n.focus()}},{key:"keepFocusOnHeaderArrowButton",value:function(e){var t=this.datepickerModal.querySelector(on),n=this.datepickerModal.querySelector(cn),r=this.datepickerModal.querySelector("button.header__next");null==t||t.setAttribute("tabindex","0"),e?r.focus():n.focus()}},{key:"focusOnCurrentDay",value:function(e){var t=Bt(e),n=this.datepickerModal.querySelector('td[data-date="'.concat(t,'"]'));n.setAttribute("tabindex","0"),n.focus()}},{key:"focusOncurrentYear",value:function(e){var t=this.datepickerModal.querySelector('td[data-year="'.concat(e,'"]'));t.setAttribute("tabindex","0"),t.focus()}},{key:"dispatchNextMonthEvent",value:function(e,t){var n=new CustomEvent(un,{detail:{date:e,arrowbutton:t}});this.el.dispatchEvent(n)}},{key:"handleInputButtonEvents",value:function(){var e=this;this.inputEditableWrapper.querySelector(an).addEventListener("click",(function(t){t.preventDefault(),e.inputEditable.textContent=Vt(e.inputEditable.textContent),e.toggleModal()}))}},{key:"addInputEvents",value:function(){var e=this;this.el.addEventListener("change",(function(){e.syncToContentEditableText()}))}},{key:"addContentEditableEvents",value:function(){var e=this,t=/^\d{1,2}$/,n=/^\d{1,2}\/\d{1,2}$/;this.inputEditable.addEventListener("keydown",(function(r){var a,o;(" "!==r.key||e.el.hasAttribute("readonly")||(r.preventDefault(),e.inputEditable.textContent=Vt(e.inputEditable.textContent),e.openModal()),"Backspace"!==r.key||e.el.hasAttribute("readonly")||e.el.value&&(e.el.value=null),"Escape"===r.key&&e.closeModal(),"/"!==r.key||!t.test(e.inputEditable.textContent)&&!n.test(e.inputEditable.textContent))&&(-1==["Backspace","Delete","Home","End","ArrowLeft","ArrowRight","Tab"].indexOf(r.key)&&(((o=(a=(a=r)||window.event).which?a.which:a.keyCode)<48||o>57)&&(o<96||o>105)||!(e.inputEditable.textContent.length<10))&&r.preventDefault())})),this.inputEditable.addEventListener("blur",(function(){if(e.el.parentElement.classList.contains("focused")&&e.el.parentElement.classList.remove("focused"),!e.datepickerModal)if(e.syncToInputValue(),Yt(e.inputEditable.textContent)){var t=Dt(e.inputEditable.textContent);e.inputEditable.textContent&&e.selectDate(Bt(t),!1),e.inputEditable.textContent=Vt(e.inputEditable.textContent)}else window.activateError(e.el,"Data Inválida"),e.inputEditable.setAttribute("aria-invalid","true"),e.inputEditable.setAttribute("aria-describedby","".concat(e.el.getAttribute("aria-describedby")))})),this.inputEditable.addEventListener("focus",(function(){e.el.hasAttribute("disabled")||(e.inputEditable.textContent&&e.setCursorPositionToEnd(),e.el.parentElement.classList.add("focused"))})),this.inputEditable.addEventListener("input",(function(){Yt(e.inputEditable.textContent)&&(e.selectedDate=Dt(e.inputEditable.textContent)),e.el.classList.contains("is-invalid")&&(window.deactivateError(e.el),e.inputEditable.removeAttribute("aria-invalid"),e.inputEditable.removeAttribute("aria-describedby"))}))}},{key:"handleDaysEvents",value:function(e){var t=this;e.addEventListener("keydown",(function(n){switch(n.key){case"ArrowRight":n.preventDefault(),t.focusOnDay(e,"right");break;case"ArrowLeft":n.preventDefault(),t.focusOnDay(e,"left");break;case"ArrowDown":n.preventDefault(),t.focusOnDay(e,"down");break;case"ArrowUp":n.preventDefault(),t.focusOnDay(e,"up");break;case"Home":n.preventDefault(),t.focusOnDay(e,"home");break;case"End":n.preventDefault(),t.focusOnDay(e,"end");break;case"PageUp":n.preventDefault(),t.focusOnDay(e,"pageUp");break;case"PageDown":n.preventDefault(),t.focusOnDay(e,"pageDown");break;case"Enter":case" ":n.preventDefault(),t.selectDate(e.getAttribute("data-date"));break;case"Tab":n.preventDefault(),t.datepickerModal.querySelector(cn).focus();break;case"Escape":t.closeModal(),t.inputEditable.focus()}})),e.addEventListener("click",(function(n){n.preventDefault(),t.selectDate(e.getAttribute("data-date"))}))}},{key:"handleKeyDownEventHeader",value:function(){var e=this,t=this.datepickerModal.querySelectorAll(sn),n=this.datepickerModal.querySelector(".datepicker__header"),r=function(e,t){return(e%t+t)%t};n.addEventListener("keydown",(function(n){var a=Array.from(t).indexOf(n.target);switch(n.key){case"ArrowRight":case"ArrowDown":n.preventDefault(),t[r(a+1,t.length)].focus();break;case"ArrowLeft":case"ArrowUp":n.preventDefault(),t[r(a-1,t.length)].focus();break;case"Escape":e.closeModal(),e.inputEditable.focus()}}))}},{key:"handleCalendarHeaderEvents",value:function(e,t){var n=this,r=Xt(this.datepickerModal.querySelectorAll(sn),3),a=r[0],o=r[1],i=r[2];this.handleKeyDownEventHeader(),a.addEventListener("click",(function(){var r=new Date(t,e);r.setMonth(r.getMonth()-1),n.dispatchNextMonthEvent(r,"isPrev")})),i.addEventListener("click",(function(){var r=new Date(t,e);r.setMonth(r.getMonth()+1),n.dispatchNextMonthEvent(r,"isNext")})),o.addEventListener("click",(function(){n.renderMonthsModal(t)}))}},{key:"handleMonthsHeaderEvents",value:function(e){var t=this,n=Xt(this.datepickerModal.querySelectorAll(sn),3),r=n[0],a=n[1],o=n[2];this.handleKeyDownEventHeader(),r.addEventListener("click",(function(){var n=e-=1;t.renderMonthsModal(n)})),o.addEventListener("click",(function(){var n=e+=1;t.renderMonthsModal(n,!0)})),a.addEventListener("click",(function(){t.renderPeriodModal(e,Ht(e))}))}},{key:"handlePeriodHeaderEvents",value:function(e){var t=this,n=Xt(this.datepickerModal.querySelectorAll(sn),2),r=n[0],a=n[1];this.handleKeyDownEventHeader();var o=Xt(Ft(e),2),i=o[0],s=o[1];r.addEventListener("click",(function(){t.renderPeriodModal(i,Ht(i))})),a.addEventListener("click",(function(){t.renderPeriodModal(s,Ht(s),!0)}))}},{key:"handleTableMonthsPeriodEvents",value:function(e){var t=this,n=this.datepickerModal.querySelector(ln);e.addEventListener("keydown",(function(r){switch(r.key){case"ArrowRight":r.preventDefault(),t.focusOnTd(e,"right");break;case"ArrowLeft":r.preventDefault(),t.focusOnTd(e,"left");break;case"ArrowDown":r.preventDefault(),t.focusOnTd(e,"down");break;case"ArrowUp":r.preventDefault(),t.focusOnTd(e,"up");break;case"Enter":case" ":r.preventDefault(),e.hasAttribute("data-month")?t.dispatchNextMonthEvent(new Date(n.textContent,Nt.indexOf(e.getAttribute("data-month")),1)):e.hasAttribute("data-year")&&t.renderMonthsModal(e.getAttribute("data-year"));break;case"Tab":r.preventDefault(),t.datepickerModal.querySelector(cn).focus();break;case"Escape":r.preventDefault(),t.closeModal(),t.inputEditable.focus()}})),e.addEventListener("click",(function(){e.hasAttribute("data-month")?t.dispatchNextMonthEvent(new Date(n.textContent,Nt.indexOf(e.getAttribute("data-month")),1)):e.hasAttribute("data-year")&&t.renderMonthsModal(e.getAttribute("data-year"))}))}},{key:"renderCalendarModal",value:function(e,t){var n;this.datepickerModal||(this.datepickerModal=((n=document.createElement("div")).classList.add("datepicker__modal__wrapper","open"),n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","selecione a data"),n),this.el.parentElement.appendChild(this.datepickerModal)),this.clearsModal(),this.fillCalendarModalHeader(e),this.fillCalendarTable(e),this.fillModalFooter(),e&&this.markSelectedDateOnModal(e),this.focusOnCurrentDay(e),"isNext"===t?this.keepFocusOnHeaderArrowButton(!0):"isPrev"===t&&this.keepFocusOnHeaderArrowButton(!1)}},{key:"renderMonthsModal",value:function(e,t){this.clearsModal(),this.fillMonthsModalHeader(e),this.fillMonthsTable(),this.keepFocusOnHeaderArrowButton(t)}},{key:"renderPeriodModal",value:function(e,t,n){this.clearsModal(),this.fillPeriodModalHeader(e),this.fillPeriodTable(t),this.focusOncurrentYear(e),this.keepFocusOnHeaderArrowButton(n)}},{key:"fillCalendarModalHeader",value:function(e){var t=e.getMonth(),n=e.getFullYear(),r=function(){var e=Ot(),t=_t(e.querySelectorAll("button"),3),n=t[0],r=t[1],a=t[2];return r.setAttribute("aria-label","escolha um mês"),r.setAttribute("title","escolha um mês"),n.setAttribute("aria-label","mês anterior"),n.setAttribute("title","mês anterior"),a.setAttribute("aria-label","mês posterior"),a.setAttribute("title","mês posterior"),e}();r.querySelector(ln).textContent="".concat(Nt[t]," ").concat(n),this.datepickerModal.appendChild(r),this.handleCalendarHeaderEvents(t,n)}},{key:"fillMonthsModalHeader",value:function(e){var t=function(){var e=Ot(),t=_t(e.querySelectorAll("button"),3),n=t[0],r=t[1],a=t[2];return r.setAttribute("aria-label","escolha um período"),r.setAttribute("title","escolha um período"),n.setAttribute("aria-label","ano anterior"),n.setAttribute("title","ano anterior"),a.setAttribute("aria-label","ano posterior"),a.setAttribute("title","ano posterior"),e}();t.querySelector(ln).textContent="".concat(e),this.datepickerModal.appendChild(t),this.handleMonthsHeaderEvents(+e)}},{key:"fillPeriodModalHeader",value:function(e){var t=function(){var e=Ot(!0),t=_t(e.querySelectorAll("button"),2),n=t[0],r=t[1];return n.setAttribute("aria-label","período anterior"),n.setAttribute("title","período anterior"),r.setAttribute("aria-label","período posterior"),r.setAttribute("title","período posterior"),e}();t.querySelector(".header__currentPeriod").textContent="".concat(e-6," - ").concat(e+5),this.datepickerModal.appendChild(t),this.handlePeriodHeaderEvents(e)}},{key:"fillMonthsTable",value:function(){var e=this,t=Mt(),n=this.datepickerModal.querySelector(".header__currentMonthYear").textContent;t.setAttribute("aria-label","ano ".concat(n));var r=t.querySelectorAll(on),a=Nt;r.forEach((function(t,n){t.textContent=a[n].substring(0,3),t.setAttribute("data-month",a[n]),t.setAttribute("aria-label",a[n]),t.setAttribute("title",a[n]),e.handleTableMonthsPeriodEvents(t)})),this.datepickerModal.appendChild(t)}},{key:"fillPeriodTable",value:function(e){var t=this,n=Mt();n.setAttribute("aria-label","ano ".concat(e[0]," a ano ").concat(e[11])),n.querySelectorAll(on).forEach((function(n,r){n.textContent=e[r],n.setAttribute("data-year",e[r]),n.setAttribute("aria-label",e[r]),n.addEventListener("click",(function(){t.renderMonthsModal(e[r])})),t.handleTableMonthsPeriodEvents(n)})),this.datepickerModal.appendChild(n)}},{key:"fillModalFooter",value:function(){var e=function(){var e=document.createElement("div");return e.classList.add("modal__messages"),e.classList.add("sr-only"),e.setAttribute("aria-live","polite"),e.textContent="Navegue entre as datas usando as setas",e}();this.datepickerModal.appendChild(e)}},{key:"fillCalendarTable",value:function(e){var t=Tt();this.fillCalendarTableBody(t,e),this.datepickerModal.appendChild(t)}},{key:"fillCalendarTableBody",value:function(e,t){var n=this,r=new Date,a=t.getFullYear(),o=t.getMonth(),i=Rt(a,o),s=1,c=1,l=Ut(a,o).reverse();e.querySelectorAll(".datepicker__dateTable__tableBody tr td").forEach((function(e,t){if(t{new hn(e)}))},...pn};r(Ct,mn);const vn="ModeLibras",bn=`ds.${vn}.change`,yn="Ativar modo libras",gn="Modo libras desativado",En={mode:"off",title:yn,label:gn},wn=[],Ln=e=>{En.mode=e,En.title=An()?"Desativar modo libras":yn,En.label=An()?"Modo libras ativado":gn,wn.forEach((e=>{e(En)})),document.dispatchEvent(new CustomEvent(bn,{detail:{active:An(),...En}}))},xn=()=>Ln("on"),Sn=()=>Ln("off"),An=()=>"on"===En.mode;var kn={value:()=>En,toggle:()=>"on"===En.mode?Sn():xn(),isEnabled:An,subscribe:e=>wn.push(e),unsubscribe:e=>wn.splice(wn.indexOf(e),1),enable:xn,disable:Sn};class Cn{constructor(e){this.element=e,this.element.ToggleModeLibras||(this.element.ToggleModeLibras=kn,this.init())}async enable(){kn.enable()}async disable(){kn.disable()}async toggle(){kn.toggle()}async update(){var e;this.element.dataset.mode=kn.value().mode,this.adjustA11y(),this.element.LoadingStatus&&(null===(e=this.element.LoadingStatus)||void 0===e?void 0:e.isBusy())||this.element.dataset.post&&await this.handlePostLibraMode()}init(){if(this.element.dataset.mode)"on"===this.element.dataset.mode?this.enable():this.disable();else if(this.element.dataset.toggleLibras&&""!==this.element.dataset.toggleLibras){const e=document.querySelector(this.element.dataset.toggleLibras);"true"===(null==e?void 0:e.dataset.libras)?this.enable():this.disable()}kn.subscribe((async()=>{await this.update()})),this.element.addEventListener("click",(()=>{var e;this.element.LoadingStatus&&(null===(e=this.element.LoadingStatus)||void 0===e?void 0:e.isBusy())||this.toggle()}))}adjustA11y(){const e={active:kn.isEnabled(),...kn.value()};if(this.element.ariaLabel=e.label,this.element.title=e.title,this.element.classList.contains("nav-link")){this.element.title="";const t=this.element.querySelector("span");t&&(t.innerText=e.title)}}async handlePostLibraMode(){var e,t;const n=this.element.dataset.post;if(n){null===(e=this.element.LoadingStatus)||void 0===e||e.start();try{await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preference:this.element.dataset.preference||"acessibilidade_libras",value:kn.isEnabled()})})}catch(e){console.error("Não foi possível salvar a configuração do modo libras")}finally{null===(t=this.element.LoadingStatus)||void 0===t||t.stop()}}}}const _n={init:function(){document.querySelectorAll("[data-toggle-libras]").forEach((e=>{new Cn(e)}))},...kn};r(vn,_n);const qn="nav.header-mobile",On=()=>document.querySelector(".container-conteudo__nav_right"),Tn=()=>document.querySelector(qn),Mn=()=>{var e;null===(e=On())||void 0===e||e.classList.remove("nav-open"),f.hide()};class jn{constructor(e){this.element=e,this.ToggleButtonRightMenu=this,this.expanded=!1,this.init()}init(){this.element.addEventListener("click",(()=>{var e,t;const n=window.innerWidth;(()=>{const e=document.querySelector(".sidebar .menu"),t=document.querySelector(".menu[data-libras]");t&&t.MenuNavLibras.close(),e&&window.Cosmos.MenuNavLateral.closeMenu()})();const r=Tn();if(!r)return void console.error(`${qn} not found`);const a=On(),o=r.querySelectorAll("[aria-expanded]"),i=r.querySelector(".header-mobile__item"),s=r.querySelectorAll("ul.submenu_itens a.active");if(n>992)if((null==a?void 0:a.classList.contains("nav-open"))&&(a.classList.remove("nav-open"),a.classList.add("d-block")),s.length>0&&(null==i?void 0:i.classList.contains("nav-go-right"))){const n=Array.from(i.children).find((e=>!e.classList.contains("d-none")));let r=Array.from((null==n?void 0:n.getElementsByClassName("submenu_itens"))||[]).find((e=>!e.classList.contains("nav-go-right"))),a=null==r?void 0:r.getElementsByClassName("back-menu")[0];for(o.forEach((e=>{e.setAttribute("aria-expanded","false")}));r!==i;)null==a||a.click(),r=(null===(t=null===(e=null==r?void 0:r.parentElement)||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)||void 0,[a]=(null==r?void 0:r.getElementsByClassName("back-menu"))||[]}else o.forEach((e=>{"true"===e.getAttribute("aria-expanded")?e.setAttribute("aria-expanded","false"):e.setAttribute("aria-expanded","true")}));else o.forEach((e=>{e.setAttribute("aria-expanded","false")})),(null==a?void 0:a.classList.contains("nav-open"))?this.close():this.open()})),window.addEventListener("resize",(()=>{this.handleResizeWindow()}))}toggle(){this.expanded?this.close():this.open()}close(){this.expanded=!1;const e=On();if(!e)return;null==e||e.classList.remove("nav-open"),null==e||e.classList.add("d-none");const t=document.querySelector(".submenu__content.nav-go-center .back-menu");t&&t.click(),f.hide()}open(){this.expanded=!0;const e=On();e&&(e.classList.add("nav-open"),e.classList.remove("d-none"),this.showOverlay())}handleResizeWindow(){window.innerWidth>992?f.hide():!0===this.expanded&&this.showOverlay()}showOverlay(){f.show().addEventListener("click",(()=>{this.close()}))}}(()=>{const e=document.querySelector("button#toggle-header-mobile");e&&new jn(e)})();const In=Tn();In&&(e=>{const t=e.getElementsByClassName("header-mobile__item")[0];t.querySelectorAll("button.submenu").forEach((e=>{e.addEventListener("click",(()=>{var n;const r=null===(n=e.parentElement)||void 0===n?void 0:n.parentElement,a=e.parentElement,o=e.nextElementSibling;null==r||r.classList.add("nav-go-right"),null==o||o.classList.add("nav-go-center"),t.classList.contains("w-268px")||t.classList.add("w-268px"),setTimeout((()=>{e.setAttribute("disabled","disabled"),e.setAttribute("aria-expanded","true"),Array.from((null==r?void 0:r.children)||[]).forEach((e=>{e!==a&&e.classList.add("d-none")}))}),200)}))})),t.querySelectorAll("button.back-menu").forEach((e=>{e.addEventListener("click",(()=>{const n=e.closest(".header-mobile__item"),r=e.closest(".submenu__content"),a=null==r?void 0:r.previousElementSibling;Array.from((null==n?void 0:n.children)||[]).forEach((e=>{e.classList.remove("d-none")})),null==a||a.removeAttribute("disabled"),null==a||a.setAttribute("aria-expanded","false"),(null==n?void 0:n.classList.contains("menu-lateral__item"))&&t.classList.remove("w-268px"),null==r||r.classList.add("d-none"),null==r||r.classList.remove("nav-go-center"),null==n||n.classList.remove("nav-go-right"),null==r||r.classList.remove("d-none")}))})),t.querySelectorAll("a.nav-link").forEach((e=>{e.addEventListener("click",(()=>{var n;let r=!1,a=e.parentElement,o=null==a?void 0:a.parentElement;if(!e.classList.contains("active"))for(t.querySelectorAll(".active").forEach((e=>{e.classList.remove("active")}));!r;)null==a||a.children[0].classList.add("active"),(null==o?void 0:o.classList.contains("header-mobile__item"))?r=!0:(a=null===(n=null==o?void 0:o.parentElement)||void 0===n?void 0:n.parentElement,o=null==a?void 0:a.parentElement)}))}))})(In);const Nn=window.location.href,Pn=Tn();if(null==Pn?void 0:Pn.closest("container-conteudo__nav_right")){Pn.querySelectorAll("a.nav-link").forEach((e=>{var t;if(e.href===Nn){let n=!1,r=e.parentElement,a=null==r?void 0:r.parentElement;for(Pn.querySelectorAll(".active").forEach((e=>{e.classList.remove("active")}));!n;)null==r||r.children[0].classList.add("active"),(null==a?void 0:a.classList.contains("header-mobile__item"))?n=!0:(r=null===(t=null==a?void 0:a.parentElement)||void 0===t?void 0:t.parentElement,a=null==r?void 0:r.parentElement)}}));const e=Pn.querySelectorAll(".active");e.forEach(((t,n)=>{n{var e,n;const r=(null===(e=$(t).offset())||void 0===e?void 0:e.top)||0,a=Pn.getElementsByClassName("header-mobile__content")[0],o=r-((null===(n=$(a).offset())||void 0===n?void 0:n.top)||0);$(a).animate({scrollTop:o},1e3)}),500)}))}r("MenuNavRight",{closeMenu:Mn});class Dn{static createVideo(e=""){const t=document.createElement("div");t.classList.add("menu__video");const n=document.createElement("video"),r={with:"100%",height:"100%",muted:"muted"};Object.keys(r).forEach((e=>{n.setAttribute(e,r[e])}));const a=document.createElement("source"),o={src:e,type:"video/mp4"};return a.innerText="Seu navegador não suporta a tag video.",Object.keys(o).forEach((e=>{n.setAttribute(e,o[e])})),t.appendChild(n),n.appendChild(a),t}static createOverlay(){const e=document.createElement("div");return e.classList.add("container-conteudo__overlay","overlay-nav-libras","d-block"),e}}const Bn={FALSE:"false",START:"start",EXACT:"exact",PATH:"path"};class zn{constructor(e){var t;this.menuAux=[],this.expanded=!1,this.selectedItemIndex=0,this.element=e,this.element.MenuNavLibras||(this.element.MenuNavLibras=this,this.menuAux=Array.from((null===(t=this.element.querySelector(".menu__list:not(submenu)"))||void 0===t?void 0:t.children)||[]),this.menuItem=this.element.querySelectorAll(".menu__item"),this.expanded=!1,this.buttonsNextSubMenus=this.element.querySelectorAll(".open-submenu"),this.itemList=this.element.querySelectorAll(".menu__item"),this.links=this.element.querySelectorAll("a.menu__link"),this.menuItemsLinks=this.element.querySelectorAll(".menu__link"),this.selectedItemIndex=0,this.init())}showOverlay(){f.show().addEventListener("click",(()=>{this.toggleMenu()}))}createButtonBackMenu(){const e=document.createElement("li"),t=document.createElement("button"),n=document.createElement("span"),r=document.createElement("i");return e.classList.add("menu__item"),e.setAttribute("role","none"),n.textContent="Voltar ao menu",r.classList.add("fas","fa-chevron-left"),t.classList.add("link-normal","back-menu","menu__link"),t.appendChild(r),t.appendChild(n),t.ariaLabel="Voltar para o menu anterior",e.appendChild(t),t.addEventListener("click",(e=>this.handleSubMenuPrev(e))),e}addTabindexInLinks(){var e;null===(e=this.menuItemsLinks)||void 0===e||e.forEach((e=>{e.setAttribute("tabindex","-1")})),this.menuItemsLinks[0].setAttribute("tabindex","0")}loadingHandler(e){const t=document.createElement("div");t.classList.add("loading-video"),t.innerHTML='
    ';const n=e.closest(".menu__video");e.onwaiting=function(){document.querySelector(".loading-video")||null==n||n.insertBefore(t,e)},e.oncanplay=function(){var e;null===(e=document.querySelector(".loading-video"))||void 0===e||e.remove()}}handlerPlayVideo(e){const t=this.element.querySelector("video");t&&(e&&(t.src=e,t.play().catch((()=>{console.error("Não foi possível exibir o video")}))),this.loadingHandler(t))}createIconHands(){const e=document.createElement("i");return e.classList.add("menu__item__icon"),e.setAttribute("aria-hidden","true"),e}createTitleSubmenu(e){const t=document.createElement("li");t.classList.add("menu__item--goback"),t.setAttribute("role","none");const n=document.createElement("span");if(n.classList.add("menu__title"),n.textContent=e.textContent,n.setAttribute("aria-hidden","false"),t.appendChild(n),"true"===this.element.dataset.libras){const n=this.createIconHands();n.setAttribute("data-src",e.getAttribute("data-src")||""),t.prepend(n)}return t}removeClassActive(){this.element.querySelectorAll(".active").forEach((e=>{e.classList.remove("active"),e.removeAttribute("aria-current")}))}handleLiSubmenuActive(e,t){var n;const r=e.querySelectorAll(".active");t.focus(),r.length>0&&(t.classList.add("active"),null===(n=t.closest("li"))||void 0===n||n.classList.add("active"))}handleLinkActive(e){const t=e.closest("li");if(e.getAttribute("data-autoactive")&&!(null==t?void 0:t.classList.contains("active")))return this.removeClassActive(),void this.updateAttributeAutoActivate(e);(null==t?void 0:t.classList.contains("active"))||(this.removeClassActive(),null==t||t.classList.add("active"),e.classList.add("active"),e.setAttribute("aria-current","page"))}activeElement(e){e.classList.add("active"),!e.parentElement||"menu"==e.role&&e.dataset.libras||this.activeElement(e.parentElement)}updateAttributeAutoActivate(e){if("A"!==e.tagName)return;let t=e.getAttribute("data-autoactive")||Bn.EXACT;const n=window.location.href;if(t&&!Object.values(Bn).includes(t)&&(console.warn(`Valor inválido para data-autoactive: ${t}. Será assumido o valor padrão: 'exact'`),t=Bn.EXACT),t!==Bn.FALSE)if(t!==Bn.PATH)if(t!==Bn.START)t===Bn.EXACT&&e.href===n&&this.activeElement(e);else{const{pathname:t,hash:r,searchParams:a}=new URL(e.href),{pathname:o,hash:i,searchParams:s}=new URL(n);t!==o||""!==r&&r!==i||!((e,t)=>e.every((e=>t.includes(e))))(Array.from(a.values()),Array.from(s.values()))||this.activeElement(e)}else{const{pathname:t}=new URL(e.href),{pathname:r}=new URL(n);t===r&&this.activeElement(e)}}handleActiveCurrentPage(){this.element.querySelectorAll(".menu__item").forEach((e=>{const t=e.querySelector(".menu__link");this.updateAttributeAutoActivate(t)}))}handleNavRight(){const e=document.querySelector(".container-conteudo__nav_right.nav-open"),t=document.querySelector(".overlay-header.d-block");e&&t&&(e.classList.remove("nav-open"),t.classList.remove("d-block"))}toggleMenu(){this.expanded?this.close():this.open()}open(){Mn(),this.expanded=!0;const e=this.element.closest(".sidebar");e&&(e.classList.add("expanded"),e.focus({preventScroll:!0}),this.showOverlay())}close(){if(!this.expanded)return;this.expanded=!1,f.hide();const e=this.element.closest(".sidebar");null==e||e.classList.remove("expanded")}handleResizeWindow(){window.innerWidth>992?f.hide():this.expanded&&this.showOverlay()}handleSubMenuNext(e,t=!0){var n,r;const a=e.closest(".menu__list");e.setAttribute("aria-expanded","true"),a.classList.add("menu__list--expanded");const o=null===(n=e.parentElement)||void 0===n?void 0:n.querySelector("ul.submenu");if("true"===a.getAttribute("aria-expanded")&&(a.setAttribute("aria-expanded","false"),e.setAttribute("tabindex","-1")),null==o||o.classList.add("menu__list--expanded"),null==o||o.setAttribute("aria-expanded","true"),null===(null==o?void 0:o.querySelector("li .menu__title"))){const t=this.createTitleSubmenu(e);o.prepend(t),t.addEventListener("click",(({target:e})=>{this.handlerPlayVideo(null==e?void 0:e.dataset.src)}))}if(null===(null==o?void 0:o.querySelector("li .back-menu"))){const n=this.createButtonBackMenu(),a=n.querySelector("button");o.prepend(n),setTimeout((()=>{t&&(null==a||a.focus(),null==a||a.setAttribute("tabindex","0"))}),250),(null===(r=null==e?void 0:e.closest(".menu__list"))||void 0===r?void 0:r.classList.contains("submenu"))?null==a||a.setAttribute("aria-label",`Voltar para o menu de ${e.textContent}`):null==a||a.setAttribute("aria-label","Voltar para o menu principal")}this.menuAux=Array.from((null==o?void 0:o.children)||[]).filter((e=>!!e.classList.contains("menu__item")&&e)),this.selectedItemIndex=0}handleSubMenuPrev(e){var t,n;const r=e.target,a=r.closest(".menu__list");if(!a)return;a.classList.remove("menu__list--expanded"),a.setAttribute("aria-expanded","false");const o=a.closest(".menu__list.menu__list--expanded");if(!o)return;o&&o.classList.contains("submenu")?(o.setAttribute("aria-expanded","true"),r.setAttribute("tabindex","-1")):(o.classList.remove("menu__list--expanded"),r.setAttribute("tabindex","-1"));const i=null==r?void 0:r.closest(".submenu");if(!i)return;const s=null===(t=i.closest(".menu__item"))||void 0===t?void 0:t.querySelector(".open-submenu");s&&(s.setAttribute("aria-expanded","false"),s.setAttribute("tabindex","0"),this.handleLiSubmenuActive(a,s),null===(n=r.closest(".menu__item"))||void 0===n||n.remove(),r.remove(),s.focus(),this.menuAux=Array.from(o.children).filter((e=>!!e.classList.contains("menu__item")&&e)),this.selectedItemIndex=this.menuAux.length-1)}navigateArrow(e){const t=this.menuAux;if("up"===e){this.selectedItemIndex-=1;let e=this.selectedItemIndex+1;this.selectedItemIndex<0&&(this.selectedItemIndex=t.length-1,e=0);const n=t[this.selectedItemIndex].querySelector(".menu__link"),r=t[e].querySelector(".menu__link");n&&(n.setAttribute("tabindex","0"),r.setAttribute("tabindex","-1"),n.focus())}if("down"===e){this.selectedItemIndex+=1;let e=this.selectedItemIndex-1;this.selectedItemIndex>=t.length&&(this.selectedItemIndex=0,e=t.length-1);const n=t[this.selectedItemIndex].querySelector(".menu__link"),r=t[e].querySelector(".menu__link");n&&(n.setAttribute("tabindex","0"),r.setAttribute("tabindex","-1"),n.focus())}}observerAttributes(){new MutationObserver((e=>{e.forEach((e=>{if("attributes"===e.type&&"data-libras"===e.attributeName){if("false"===this.element.getAttribute(e.attributeName))return void this.deactivateLibras();this.activateLibras()}}))})).observe(this.element,{attributes:!0})}deactivateLibras(){const e=this.element.querySelector(".menu__video");e&&e.remove(),this.element.querySelectorAll(".menu__item__icon").forEach((e=>{e.remove()}))}activateLibras(){var e,t;if(!this.element.querySelector(".menu__video")){null===(e=this.element.querySelector(".menu__content"))||void 0===e||e.prepend(Dn.createVideo(this.element.dataset.librasDefault||""));const t=this.element.querySelector("video");null==t||t.play().catch((()=>{console.error("Não foi possível exibir o video")}))}null===(t=this.itemList)||void 0===t||t.forEach((e=>{var t,n;const r=this.createIconHands();r.setAttribute("data-src",(null===(t=e.querySelector(".menu__link"))||void 0===t?void 0:t.getAttribute("data-src"))||""),e.querySelector(".menu__item__icon")&&(null===(n=e.querySelector(".menu__item__icon"))||void 0===n||n.remove()),e.prepend(r.cloneNode(!0));const a=e.querySelector(".menu__item__icon");null==a||a.addEventListener("click",(()=>{const e=a.getAttribute("data-src");e&&this.handlerPlayVideo(e)}))}))}checkActiveSubmenu(){var e;let t=this.element.querySelector('.menu__list.active > .menu__item.active .open-submenu[aria-expanded="false"]');for(;t;)this.handleSubMenuNext(t,!1),t=null===(e=t.parentElement)||void 0===e?void 0:e.querySelector('.menu__list.submenu > .menu__item.active .open-submenu[aria-expanded="false"]')}isLibraActive(){return"true"===this.element.dataset.libras}toggleLibras(){this.isLibraActive()?this.disableModeLibras():this.enableModeLibras()}enableModeLibras(){this.element.dataset.libras="true"}disableModeLibras(){this.element.dataset.libras="false"}init(){var e,t;kn.subscribe((e=>{"on"===e.mode?this.enableModeLibras():this.disableModeLibras()})),this.observerAttributes(),null===(e=this.buttonsNextSubMenus)||void 0===e||e.forEach((e=>{e.addEventListener("click",(()=>this.handleSubMenuNext(e)))}));this.menuAux.forEach((e=>{e.addEventListener("keydown",(e=>{"ArrowDown"===e.key&&(this.navigateArrow("down"),e.preventDefault()),"ArrowUp"===e.key&&(this.navigateArrow("up"),e.preventDefault())}))})),null===(t=this.links)||void 0===t||t.forEach((e=>{e.addEventListener("click",(t=>{var n;this.handleLinkActive(e),Array.from((null===(n=t.target.closest(".menu__list"))||void 0===n?void 0:n.children)||[]).filter((e=>e.classList.contains("menu__item"))).forEach(((e,t)=>{e.classList.contains("active")&&(this.selectedItemIndex=t)}))}))})),"true"===this.element.dataset.libras?this.activateLibras():this.deactivateLibras(),this.handleActiveCurrentPage(),window.addEventListener("resize",(()=>this.handleResizeWindow())),this.addTabindexInLinks(),this.checkActiveSubmenu()}}class Hn{constructor(e,t){this.element=e,this.element.ToggleMenu=this,this.menu=t,this.menu?this.init():console.error(`não foi possível encontrar o menu com id = "${e.dataset.toggleMenu}".\nO botão deve ter o atributo data-toggle-menu="#idDoMenu"`)}init(){this.element.addEventListener("click",(()=>this.toggleMenu()))}toggleMenu(){var e,t;null===(t=null===(e=this.menu)||void 0===e?void 0:e.MenuNavLibras)||void 0===t||t.toggleMenu()}close(){var e,t;null===(t=null===(e=this.menu)||void 0===e?void 0:e.MenuNavLibras)||void 0===t||t.close()}}const Fn={init:function(){document.querySelectorAll(".menu[data-libras]").forEach((e=>{e.MenuNavLibras||new zn(e)})),document.querySelectorAll(".toggle-menu-libras, [data-toggle-menu]").forEach((e=>{let t=null;t=e.dataset.toggleMenu?document.querySelector(e.dataset.toggleMenu):document.querySelector(".menu"),new Hn(e,t)}))},ToggleMenu:Hn};r("MenuNavLibras",Fn);class $n{constructor(e){this.inputField=e,this.inputField?this.init():console.error("Não foi possível encontrar o campo de senha ou se a estrutura HTML atende ao padrão estabelecido.")}init(){this._setBehavior()}_setBehavior(){this._setFocusBehavior()}_setFocusBehavior(){if(!this.inputField.disabled){const e=e=>{this._handleFocus(e)};this.inputField.addEventListener("focus",e,!1),this.inputField.addEventListener("blur",e,!1)}}_handleFocus(e){const t=e.currentTarget.closest(".form-input-group");(null==t?void 0:t.classList.contains("focused"))?null==t||t.classList.remove("focused"):null==t||t.classList.add("focused")}}class Rn{constructor(e,t){this.passwordInputField=e,this.actionInputField=t,this.passwordInputField?this.actionInputField?this.init():console.error(`Não foi possível encontrar o botão no elemento fornecido.\nVerifique se o botão de ação possui o atributo data-"${t.dataset.toggleShowPassword}"\ne/ou se a estrutura HTML atende ao padrão estabelecido.`):console.error("Não foi possível encontrar o campo de senha ou se a estrutura HTML atende ao padrão estabelecido.")}init(){this._setBehavior()}_setBehavior(){this._setPasswordViewBehavior()}_setPasswordViewBehavior(){if(!this.passwordInputField.disabled){const e=e=>{this._toggleShowPassword(e)};this.actionInputField.addEventListener("click",e,!1)}}_toggleShowPassword(e){const t=e.currentTarget;for(const e of null==t?void 0:t.querySelectorAll(".fas, .fa-solid"))(null==e?void 0:e.classList.contains("fa-eye"))?(null==e||e.classList.replace("fa-eye","fa-eye-slash"),this.passwordInputField.setAttribute("type","text"),this.actionInputField.setAttribute("aria-checked","true")):(null==e?void 0:e.classList.contains("fa-eye-slash"))&&(this.passwordInputField.setAttribute("type","password"),this.actionInputField.setAttribute("aria-checked","false"),null==e||e.classList.replace("fa-eye-slash","fa-eye"))}}const Gn={init:function(){!function(){const e=document.querySelectorAll(".form-input-group input");e&&e.forEach((e=>{new $n(e)}))}(),function(){const e=document.querySelectorAll(".input-addon-wrapper");e?e.forEach((e=>{const t=e.querySelector('input[type="password"]'),n=e.querySelector("button[data-toggle-show-password]");n&&new Rn(t,n)})):console.error("Não foi possível identificar se a estrutura HTML atende ao padrão estabelecido para um campo de senha.")}()},InputField:$n,PasswordInputField:Rn},Wn=e=>{const t=e||document;_n.init(),Fn.init(),Gn.init(),mn.init(t),a.initPopover(t),a.initToast(t),a.initTooltip(t),window.updateComponents(),a.buttonLoading.init(t)};r(null,{init:Wn}),a.init()}(Popper); //# sourceMappingURL=scripts.js.map