1function registerBootstrapModalStreamActions(){window.Turbo&&window.Turbo.StreamActions&&(window.Turbo.StreamActions.close_bs_modal_and_visit||(window.Turbo.StreamActions.close_bs_modal_and_visit=function(){var e=document.querySelector(this.dataset.modal),t=this.dataset.location;e?(e.addEventListener("hidden.bs.modal",function(){window.Turbo.visit(t)},{once:!0}),bootstrap.Modal.getOrCreateInstance(e).hide()):window.Turbo.visit(t)}))}function generateLinegraph(e,t,n){e.empty();var i={top:10,right:130,bottom:51,left:40},o=e.width()-i.left-i.left;t=t-i.top-i.bottom;var s=d3.timeParse("%Y-%m-%d %H:%M:%S"),r=d3.timeFormat("%B %d, %Y"),a=d3.bisector(function(e){return e.date}).left,l=d3.format(",.2f"),c=function(e){return"$"+l(e)},u=d3.scaleTime().range([0,o]),d=d3.scaleLinear().range([t,0]),p=d3.line().x(function(e){return u(e.date)}).y(function(e){return d(e.total)}),h=d3.select(e[0]).append("svg").attr("width",o+i.left+i.right).attr("height",t+i.top+i.bottom).append("g").attr("transform","translate("+i.left+","+i.top+")");d3.json(n).then(function(e){e.forEach(function(e){e.date=s(e.date),e.total=e.total/1e6}),e.sort(function(e,t){return e.date-t.date}),u.domain(d3.extent(e,function(e){return e.date})),d.domain([0,d3.max(e,function(e){return e.total})]);var n=d3.axisBottom(u).ticks(30).tickSize(-t,0,0).tickFormat(d3.timeFormat("%b %d")),i=d3.axisLeft(d).tickSize(-o,100,100);h.append("g").attr("class","x axis").attr("transform","translate(0,"+t+")").call(n).selectAll("text").style("text-anchor","end").attr("dx","-1em").attr("dy","0.5em").attr("transform","rotate(-65)"),h.append("g").attr("class","y axis").call(function(e){e.call(i),e.select(".domain").remove()}).selectAll("text").attr("dx","-1em").attr("dy","0.1em"),h.append("path").datum(e).attr("class","line").attr("d",p).style("fill","none").style("stroke","#333f6e").style("stroke-width","2px");h.selectAll(".circle").data(e).enter().append("circle").attr("class","circle").attr("r",3).style("fill","white").style("stroke","#333f6e").style("stroke-width","2px").attr("cx",function(e){return u(e.date)}).attr("cy",function(e){return d(e.total)});var l=h.append("g").attr("class","ttip").style("display","none");l.append("rect").attr("x",10).attr("width",140).attr("height",50).attr("rx",4).attr("ry",4),l.append("text").attr("class","date").attr("x",20).attr("dy","1.5em"),l.append("text").attr("class","spent").attr("x",20).attr("dy","3.2em").style("font","12px Montserrat");var f=h.append("g").attr("class","focus").style("display","none");f.append("circle").attr("r",5).style("fill","rgb(235, 57, 108)").style("stroke","#fff").style("stroke-width","2px"),f.append("line").attr("class","x").attr("y1",-t).style("stroke","rgb(235, 57, 108)").style("stroke-width","1.5px"),h.append("rect").attr("class","overlay").attr("width",o).attr("height",t).style("fill","none").style("pointer-events","all").on("mouseover",function(){f.style("display",null),l.style("display",null)}).on("mouseout",function(){f.style("display","none"),l.style("display","none")}).on("mousemove",function(){var n=u.invert(d3.mouse(this)[0]),i=a(e,n,1),o=e[i-1],s=e[i],p=n-o.date>s.date-n?s:o,h=u(p.date),m=d(p.total),g=d3.mouse(this);l.attr("transform","translate("+h+","+g[1]+")"),f.attr("transform","translate("+h+","+m+")"),l.select("text.date").text(r(p.date)),l.select("text.spent").text("Spent: "+c(p.total)),f.select("line").attr("y2",t-m)})})}function generateBargraph(e,t,n){e.empty();var i={top:10,right:200,bottom:51,left:40},o=e.width()-i.left-i.left-150;t=t-i.top-i.bottom;var s=d3.select(e[0]).append("svg").attr("width",o+i.left+i.right).attr("height",t+i.top+i.bottom).append("g").attr("transform","translate("+i.left+","+i.top+")"),r=d3.timeParse("%Y-%m-%d %H:%M:%S"),a=d3.timeFormat("%B %d, %Y"),l=d3.format(",.2f"),c=function(e){return"$"+l(e)},u=d3.scaleBand().rangeRound([0,o]).paddingInner(.05).align(.1),d=d3.scaleLinear().rangeRound([t,0]);d3.json(n).then(function(e){for(var n=Object.keys(e).sort(),i=[],l=[],p=0;p<n.length;p++){var h=Object.keys(e[n[p]]);h.length&&(i=i.concat(h),e[n[p]].date=r(n[p]),e[n[p]].dateClean=n[p],l.push(e[n[p
1]]))}var f=i.filter(function(e,t,n){return n.indexOf(e)===t}),m=d3.stack().keys(f).value(function(e,t){return e.hasOwnProperty(t)?Number(e[t])/1e6:0})(l);u.domain(n),d.domain([0,d3.max(m,function(e){return d3.max(e,function(e){return e[1]})})]).nice();var g="#5b658b",v="#eaebf0",y=d3.scaleLinear().domain([1,f.length]).interpolate(d3.interpolateHcl).range([g,v]),b=d3.axisBottom(u).tickSize(-t,0,0).tickFormat(function(e){return d3.timeFormat("%b %d")(r(e))}),_=d3.axisLeft(d).tickSize(-o,0,0).tickFormat(function(e){return e});s.append("g").attr("class","y axis").call(_),s.append("g").attr("class","x axis").attr("transform","translate(0,"+t+")").call(b).selectAll("text").style("text-anchor","end").attr("dx","-1em").attr("dy","-.1em").attr("transform","rotate(-65)");var w=s.selectAll("g.cost").data(m).enter().append("g").attr("class","cost").style("fill",function(e,t){return y(t)}),x=(w.selectAll("rect").data(function(e){return e}).enter().append("rect").attr("x",function(e){return u(e.data.dateClean)}).attr("y",function(e){return d(e[1])}).attr("height",function(e){return d(e[0])-d(e[1])}).attr("width",u.bandwidth()).on("mouseover",function(){A.style("display",null)}).on("mouseout",function(){A.style("display","none")}),s.selectAll("rect.behind").data(n).enter().append("rect").attr("class","behind").attr("height",t).attr("width",u.bandwidth()).attr("x",function(e){return u(e)}).on("mouseout",function(){A.style("display","none")}).on("mousemove",function(e,t){const n=l.find(function(t){return t.dateClean===e});if(!n)return;A.style("display",null);e={data:n},d3.mouse(this)[0];var i=u(e.data.dateClean),o=d3.mouse(this);A.attr("transform","translate("+i+","+o[1]+")");const s=A.select("text.date"),r=a(e.data.date);if(s.text()===r)return;s.text(a(e.data.date));const d=Object.keys(e.data);var p=20;A.select("g.values").remove();const h=A.append("g").attr("class","values"),m=17*d.length;A.select("rect.back").attr("height",m);for(t=0;t<d.length;t++){const n=e.data[d[t]],i=d[t];f.indexOf(i)<0||(h.append("rect").attr("class",i).attr("x",20).attr("y",p+=12).attr("width",10).attr("height",10).style("fill",y(f.indexOf(i))),h.append("text").attr("class",i).attr("x",35).attr("y",p+=5).attr("dy",".35em").style("font-size","0.8em").text(i+": "+c(n/1e6)))}}),s.selectAll(".legend").data(f).enter().append("g").attr("class","legend").attr("transform",function(e,t){return"translate(30,"+19*t+")"}));x.append("rect").attr("x",o-18).attr("width",18).attr("height",18).style("fill",function(e,t){return y(t)}),x.append("text").attr("x",o+5).attr("y",9).attr("dy",".35em").style("text-anchor","start").text(function(e){return e});var A=s.append("g").attr("class","ttip").style("display","none");A.append("rect").attr("class","back").attr("x",10).attr("width",210).attr("height",40).attr("rx",4).attr("ry",4),A.append("text").attr("class","date").attr("x",20).attr("dy","1.5em")})}function captureFormState(e){const t=e.querySelector("[data-track-dirty]")?e.querySelector("form"):null;if(!t)return void(e._isDirty=()=>!1);const n=()=>{const e={};return t.querySelectorAll("input, select, textarea").forEach(t=>{t.name&&!IGNORED_FORM_FIELDS.includes(t.name)&&("checkbox"===t.type?e[t.name]=t.checked:"radio"===t.type?t.checked&&(e[t.name]=t.value):e[t.name]=t.value)}),JSON.stringify(e)},i=n();e._isDirty=()=>n()!==i}function confirmCloseIfDirty(e){return!e._isDirty||!e._isDirty()||window.confirm(DISCARD_CHANGES_CONFIRMATION)}function attachCancelListener(e){e.dataset.cancelListenerAttached||(e.dataset.cancelListenerAttached="true",e.addEventListener("cancel",t=>{t.preventDefault(),confirmCloseIfDirty(e)&&e.close()}))}function captureModalFormStateOnFrameLoad(e){const t=e.target.closest("dialog");t&&(captureFormState(t),attachCancelListener(t))}function initOpenDialogModals(){document.querySelectorAll("[data-dialog-modal-show]").forEach(e=>{e.addEventListener("click",t=>{e.dataset.turboFrame||t.preventDefault();const n=e.dataset.dialogModalShow,i=document.querySelector(`${n}`);i.showModal(),initModalSettings(i,{captureFormStateNow:!e.dataset.turboFrame})})})}function initModalSettings(e,{captureFormStateNow:t=!0}={}){const n=({target:e})=>{"DIALOG"===e.nodeName&&e.close()};"false"==e.dataset.staticBackdrop&&e.addEventListener("click",n),"false"==e.dataset.keyboard&&e.addEventListener("keydown",e=>{"Escape"===e.key&&e.preventDefault()}),t&&captureFormState(e),attachCancelListener(e)}function initCloseDialogModals(){document.querySelectorAll("[data-dialog-modal-close]").forEach(e
1=>{if(e.dataset.closeListenerAttached)return;e.dataset.closeListenerAttached="true";const t=e.dataset.dialogModalClose,n=document.querySelector(`${t}`);e.addEventListener("click",()=>{confirmCloseIfDirty(n)&&n.close("")})})}function initCancelNavButtons(){document.querySelectorAll("[data-modal-confirm-cancel]").forEach(e=>{e.dataset.confirmCancelListenerAttached||(e.dataset.confirmCancelListenerAttached="true",e.addEventListener("click",t=>{const n=e.closest("dialog");n&&!confirmCloseIfDirty(n)&&(t.preventDefault(),t.stopImmediatePropagation())}))})}function registerCloseModalAndVisitStreamAction(){window.Turbo&&window.Turbo.StreamActions&&(window.Turbo.StreamActions.close_modal_and_visit||(window.Turbo.StreamActions.close_modal_and_visit=function(){document.querySelector(this.dataset.modal).close(),window.Turbo.visit(this.dataset.location)}))}function activate_otp_fields(e){const t=document.querySelectorAll(`${e}`);if(t[0]){t[0].closest("form").querySelector(".mfa-submit").setAttribute("disabled","")}for(let e=0;e<t.length;e++){const n=t[e];n.getAttribute("data-event-listener-added")||(n.setAttribute("data-event-listener-added",1),n.addEventListener("click",e=>{e.target.select()}),n.addEventListener("input",()=>{1==n.value.length&&e+1<t.length&&(t[e+1].focus(),t[e+1].select()),n.value=n.value.replace(/[^0-9]/g,"");const i=n.closest("form"),o=i.querySelector(".mfa-submit");if(o.setAttribute("disabled",""),e+1==t.length&&null!==t[e].value){i.checkValidity()?o.removeAttribute("disabled"):o.setAttribute("disabled",""),o.click()}if(n.value.length>1){const i=n.value.split("");for(let n=0;n<i.length&&!(n+e>=t.length);n++){let o=t[n+e];o.value=i[n],o.dispatchEvent(new Event("input"))}let o=Math.min(t.length-1,e+i.length);t[o].focus()}}),n.addEventListener("keydown",i=>{if(i.keyCode==BACKSPACE_KEY&&""==n.value&&0!=e){for(let n=e;n<t.length-1;n++)t[n].value=t[n+1].value;t[e-1].value="",t[e-1].focus()}if(i.keyCode==DELETE_KEY&&e!=t.length-1){for(let n=e;n<t.length-1;n++)t[n].value=t[n+1].value;t[t.length-1].value="",n.select(),i.preventDefault()}i.keyCode==LEFT_KEY&&e>0&&(i.preventDefault(),t[e-1].focus(),t[e-1].select()),i.keyCode==RIGHT_KEY&&e+1<t.length&&(i.preventDefault(),t[e+1].focus(),t[e+1].select())}))}t[0]&&t[0].focus()}function handleSidebarNav(){if(window.matchMedia("(min-width: 768px)").matches){const e=document.querySelector("#navExpand");e&&bootstrap.Offcanvas.getOrCreateInstance(e).hide()}}function initSupportForm(e){function t(e){e.preventDefault(),n();const t=e.target.action,o=new FormData(e.target);fetch(t,{method:"POST",body:o}).finally(()=>{i()})}function n(){o.classList.add("element-loading")}function i(){o.classList.remove("element-loading"),o.classList.add("d-none"),s.classList.remove("d-none")}const o=document.querySelector(e),s=document.querySelector(".support-form-result");o.classList.remove("d-none"),s.classList.add("d-none"),o.addEventListener("submit",t)}function readPxGap(e){const t=getComputedStyle(e),n=parseFloat(t.columnGap||t.gap);return Number.isFinite(n)?n:TAB_OVERFLOW.GAP_FALLBACK_PX}function selectedIndexOf(e){const t=e.items.find(e=>"true"===e.button.getAttribute("aria-selected"));return t?t.index:null}function ensureInterruptDivider(e){if(!e.interruptEl){const t=document.createElement("li");t.className=TAB_OVERFLOW.CLASS.interrupt,t.setAttribute("role","separator"),t.setAttribute("aria-hidden","true"),t.textContent=TAB_OVERFLOW.ELLIPSIS_LABEL,e.interruptEl=t}return e.interruptEl}function removeInterruptDivider(e){e.interruptEl&&e.interruptEl.parentNode&&e.interruptEl.parentNode.removeChild(e.interruptEl)}function resetToNatural(e){removeInterruptDivider(e),e.items.forEach(e=>e.li.classList.remove(TAB_OVERFLOW.CLASS.hiddenItem)),e.listEl.classList.remove(TAB_OVERFLOW.CLASS.overflowMode),closeMenu(e),e.menuContainer.classList.add(TAB_OVERFLOW.CLASS.hidden),e.toggleBtn.tabIndex=-1}function layoutOverflow(e){const{barEl:t,listEl:n,items:i,menuContainer:o,toggleBtn:s}=e;if(window.innerWidth<TAB_OVERFLOW.SM_BREAKPOINT_PX)return void resetToNatural(e);removeInterruptDivider(e),i.forEach(e=>e.li.classList.remove(TAB_OVERFLOW.CLASS.hiddenItem)),n.classList.add(TAB_OVERFLOW.CLASS.overflowMode);const r=t.clientWidth;if(r<=0)return void resetToNatural(e);const a=readPxGap(n);o.classList.remove(TAB_OVERFLOW.CLASS.hidden),o.style.flex="0 0 auto";const l=o.offsetWidth||TAB_OVERFLOW.MORE_BUTTON_FALLBACK_PX;
1o.style.flex="",i.forEach(e=>{e.width=e.li.offsetWidth});let c=0,u=!0;if(i.forEach((e,t)=>{c+=e.width+(t>0?a:0),c>r&&(u=!1)}),u)return n.classList.remove(TAB_OVERFLOW.CLASS.overflowMode),o.classList.add(TAB_OVERFLOW.CLASS.hidden),s.setAttribute("aria-expanded","false"),void(s.tabIndex=-1);const d=r-l-a,p=[];c=0;for(let e=0;e<i.length;e++){const t=i[e].width+(p.length>0?a:0);if(!(c+t<=d))break;c+=t,p.push(e)}0===p.length&&(p.push(0),c=i[0].width);const h=selectedIndexOf(e);let f=!1;if(null!=h&&!p.includes(h)){f=!0;const e=i[h].width+a+TAB_OVERFLOW.INTERRUPT_DIVIDER_RESERVE_PX;for(;p.length>0&&c+e>d;){const e=p.pop();c-=i[e].width+(p.length>0?a:0)}p.push(h)}applyVisibility(e,p,f,h),buildMenu(e,p,h),o.classList.remove(TAB_OVERFLOW.CLASS.hidden),s.tabIndex=0}function applyVisibility(e,t,n,i){const o=new Set(t);if(e.items.forEach(e=>{e.li.classList.toggle(TAB_OVERFLOW.CLASS.hiddenItem,!o.has(e.index))}),n&&null!=i){const t=ensureInterruptDivider(e);e.listEl.insertBefore(t,e.items[i].li)}}function buildMenu(e,t,n){const i=new Set(t),o=e.items.map(e=>e.index).filter(e=>!i.has(e)),s=t.slice().sort((e,t)=>e-t);if(e.menuEl.innerHTML="",o.forEach(t=>e.menuEl.appendChild(menuItemFor(e,t,n))),o.length>0&&s.length>0){const t=document.createElement("li");t.setAttribute("role","separator"),t.setAttribute("aria-hidden","true");const n=document.createElement("hr");n.className=TAB_OVERFLOW.CLASS.divider,t.appendChild(n),e.menuEl.appendChild(t)}s.forEach(t=>e.menuEl.appendChild(menuItemFor(e,t,n)))}function menuItemFor(e,t,n){const i=e.items[t],o=document.createElement("li");o.setAttribute("role","none");const s=document.createElement("button");return s.type="button",s.className=TAB_OVERFLOW.CLASS.menuItem,s.setAttribute("role","menuitem"),s.tabIndex=-1,s.dataset.targetTab=i.button.id,s.textContent=i.button.textContent,t===n&&(s.classList.add(TAB_OVERFLOW.CLASS.menuItemActive),s.setAttribute("aria-current","true")),o.appendChild(s),o}function activateTab(e){bootstrap.Tab.getOrCreateInstance(e).show()}function openMenu(e){e.menuEl.classList.add(TAB_OVERFLOW.CLASS.menuOpen),e.toggleBtn.setAttribute("aria-expanded","true");const t=e.menuEl.querySelector("[role='menuitem']");t&&t.focus()}function closeMenu(e){e.menuEl.classList.remove(TAB_OVERFLOW.CLASS.menuOpen),e.toggleBtn.setAttribute("aria-expanded","false")}function isMenuOpen(e){return e.menuEl.classList.contains(TAB_OVERFLOW.CLASS.menuOpen)}function wireKeyboard(e){e.toggleBtn.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),openMenu(e))}),e.menuEl.addEventListener("keydown",t=>{const n=Array.from(e.menuEl.querySelectorAll("[role='menuitem']")),i=n.indexOf(t.target);if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault();n[(i+("ArrowDown"===t.key?1:-1)+n.length)%n.length].focus()}else"Escape"===t.key?(t.preventDefault(),closeMenu(e),e.toggleBtn.focus()):"Tab"===t.key&&closeMenu(e)})}function wireClicks(e){e.toggleBtn.addEventListener("click",()=>{isMenuOpen(e)?closeMenu(e):openMenu(e)}),e.menuEl.addEventListener("click",t=>{const n=t.target.closest("[role='menuitem']");if(!n)return;const i=document.getElementById(n.dataset.targetTab);i&&activateTab(i),closeMenu(e)})}function closeMenusOnOutsideClick(e){document.querySelectorAll(TAB_OVERFLOW.SELECTOR.bar).forEach(t=>{const n=t.__tabOverflow;n&&isMenuOpen(n)&&!n.menuContainer.contains(e.target)&&closeMenu(n)})}function applyDeepLink(e){const t=new URLSearchParams(window.location.search).get(TAB_OVERFLOW.PARAM);if(!t)return;const n=e.items.find(e=>parameterize(e.button.dataset.destination)===t);n&&(e.suppressPush=!0,activateTab(n.button),e.suppressPush=!1)}function wireTabSelection(e){e.listEl.addEventListener("shown.bs.tab",t=>{const n=t.target;if(layoutOverflow(e),e.suppressPush)return;const i=new URL(window.location);i.searchParams.set(TAB_OVERFLOW.PARAM,parameterize(n.dataset.destination)),window.history.pushState("tab","",i.toString()),n.focus()})}function buildPanel(e){const t=e.querySelector(TAB_OVERFLOW.SELECTOR.list),n=e.querySelector(TAB_OVERFLOW.SELECTOR.menuContainer),i=Array.from(t.querySelectorAll(TAB_OVERFLOW.SELECTOR.item)).map(e=>({index:Number(e.querySelector(TAB_OVERFLOW.SELECTOR.tab).dataset.tabIndex),li:e,button:e.querySelector(TAB_OVERFLOW.SELECTOR.tab),width:0}));return{barEl:e,listEl:t,items:i,menuContainer:n,menuEl:n.querySelector(TAB_OVERFLOW.SELECTOR.menu),toggleBtn:n.querySelector(TAB_OVERFLOW.SELECTOR.toggle),interruptEl:null,suppressPush:!1,resizeObserver:null}}function initTabOverflow(e){(e&&e.querySelectorAll?e:document).querySelectorAll(TAB_OVERFLOW.SELECTOR.bar).forEach(e
1=>{if(e.__tabOverflow)return;if(!e.querySelector(TAB_OVERFLOW.SELECTOR.list))return;const t=buildPanel(e);e.__tabOverflow=t,wireKeyboard(t),wireClicks(t),wireTabSelection(t),applyDeepLink(t),t.resizeObserver=new ResizeObserver(sw_throttle(()=>layoutOverflow(t),TAB_OVERFLOW.RESIZE_THROTTLE_MS)),t.resizeObserver.observe(e),layoutOverflow(t),document.fonts&&document.fonts.ready&&document.fonts.ready.then(()=>layoutOverflow(t))})}function teardownTabOverflow(){document.querySelectorAll(TAB_OVERFLOW.SELECTOR.bar).forEach(e=>{const t=e.__tabOverflow;t&&(t.resizeObserver&&t.resizeObserver.disconnect(),removeInterruptDivider(t),closeMenu(t),t.menuContainer.classList.add(TAB_OVERFLOW.CLASS.hidden),delete e.__tabOverflow)})}function sw_debounce(e,t=300,n){var i;return function(){var o=this,s=arguments,r=function(){i=null,n||e.apply(o,s)},a=n&&!i;clearTimeout(i),i=setTimeout(r,t),a&&e.apply(o,s)}}function checkIsValid(e,t){e.checkValidity()?t.removeAttribute("disabled"):t.setAttribute("disabled","")}async function initPhoneNumberSearchInput(e,t=null,n,i="Choose a Phone Number",o="",{usePhoneRoutes:s=!0,useVerifiedCallerIds:r=!0,onClickEvenetListener:a}){const l=$(e);let c=null;t&&(c=$(t));const u=n,d=e=>{l.val(e),l.trigger("change")},p=e=>{let t=[];return i&&(t=[...t,{id:-1,name:i,number:i}]),s&&e.phone_routes&&(t=[...t,...e.phone_routes]),r&&e.verified_caller_ids&&(t=[...t,...e.verified_caller_ids]),t=t.map(e=>({id:e.phone_number,name:e.name,phone_number:e.phone_number,formatted_phone_number:e.formatted_phone_number,record:e})),{results:t}},h=e=>{if(e.loading)return e.text;let t,n,o,s;return e.id&&(t=e.id),e.name&&(n=e.name),e.phone_number&&(o=e.phone_number),e.formatted_phone_number&&(s=e.formatted_phone_number),n===i?`\n <div data-id="${t}" data-number="${n}">\n <div class="value">\n ${n}\n </div>\n </div>\n `:n&&o?`\n <div data-id="${t}" data-number="${o}">\n <div class="value">\n ${n}\n </div>\n <div class="text-accessible-text">\n (${s})\n </div>\n </div>\n `:o?`\n <div data-id="${t}" data-number="${o}">\n <div class="value">\n ${s}\n </div>\n </div>\n `:"\n <div>\n No Phone Numbers Found\n </div>\n "},f=e=>{if(!e.id||e.name===i)return i;let t,n,o;return e.name&&(t=e.name),e.phone_number&&(n=e.phone_number),e.formatted_phone_number&&(o=e.formatted_phone_number),a&&a(e),t&&n?`${t} (${o})`:n?`${o}`:void 0},m=`${n}?phone_routes=${s}&verified_caller_ids=${r}`,g=async()=>{try{const e=await fetch(m);return e.ok?p(await e.json()):p({})}catch(e){return p({})}},v=await g();l.select2({data:v.results,escapeMarkup:e=>e,minimumInputLength:0,allowClear:!0,dropdownParent:c,placeholder:i?{id:"-1",name:i,number:i}:{},ajax:{url:u,dataType:"json",type:"GET",delay:250,cache:!0,data:e=>{if(e.term)return{search:e.term,phone_routes:s,verified_caller_ids:r}},processResults:p},templateResult:h,templateSelection:f});const y=v.results.filter(({phone_number:e})=>e===o);y&&y.length&&d(y[0].phone_number)}function parameterize(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function sw_throttle(e,t,n){var i,o,s,r=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),r=null,s=e.apply(i,o),r||(i=o=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var u=t-(c-a);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),a=c,s=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),s}}function initCopyableTrigger(e,t){const n=e.closest(".modal")||e.closest("dialog"),i={};n&&(i.container=n);const o=bootstrap.Tooltip.getOrCreateInstance(e,i);e.addEventListener("click",n=>{n.preventDefault();const i=document.querySelector(t);if(!i)return;navigator.clipboard.writeText(i.textContent);const s=e.dataset.bsOriginalTitle;e.addEventListener("hidden.bs.tooltip",()=>{o.setContent({".tooltip-inner":s})},{once:!0}),o.setContent({".tooltip-inner":"Copied"}),o.show()})}function copyableContents(){document.querySelectorAll(".copyable-container").forEach(e
1=>{if(boundCopyables.has(e))return;const t=e.querySelector(".copyable-contents");if(!t)return;const n=e.dataset.target||t.dataset.target;if(n)if(boundCopyables.add(e),t.classList.contains("invisible")&&(e.addEventListener("mouseover",()=>{t.classList.remove("invisible")}),e.addEventListener("mouseleave",()=>{t.classList.add("invisible")})),e.dataset.target){const i=e.getAttribute("title")||e.getAttribute("data-bs-original-title")||t.getAttribute("title")||t.getAttribute("data-bs-original-title")||"Copy",o=bootstrap.Tooltip.getInstance(t);o&&o.dispose(),["title","data-bs-original-title","data-bs-title","data-bs-toggle","data-toggle","data-bs-trigger"].forEach(e=>{t.removeAttribute(e)}),e.setAttribute("title",i),initCopyableTrigger(e,n)}else initCopyableTrigger(t,n)}),document.querySelectorAll(".copyable-contents").forEach(e=>{boundCopyables.has(e)||e.closest(".copyable-container")||e.dataset.target&&(boundCopyables.add(e),initCopyableTrigger(e,e.dataset.target))})}function readDashboardUsageChartTheme(){const e=getComputedStyle(document.documentElement),t=(t,n)=>e.getPropertyValue(t).trim()||n;return{series:[t("--sw-chart-usage-series-1","#09a996"),t("--sw-chart-usage-series-2","#ffae11"),t("--sw-chart-usage-series-3","#8a939f"),t("--sw-chart-usage-series-4","#c638f8")],axisLabel:t("--sw-chart-axis-label","#6e7079"),text:t("--sw-chart-text","#333333"),tooltipBg:t("--sw-chart-tooltip-bg","#ffffff"),tooltipColor:t("--sw-chart-tooltip-color","#666666"),tooltipBorder:t("--sw-chart-tooltip-border","#cccccc")}}function applyDashboardUsageChartTheme(e,t){return e.color=t.series,e.legend=Object.assign({},e.legend,{textStyle:Object.assign({},e.legend&&e.legend.textStyle,{color:t.text})}),e.tooltip=Object.assign({},e.tooltip,{backgroundColor:t.tooltipBg,borderColor:t.tooltipBorder,textStyle:Object.assign({},e.tooltip&&e.tooltip.textStyle,{color:t.tooltipColor})}),[].concat(e.xAxis||[],e.yAxis||[]).forEach(function(e){e.axisLabel=Object.assign({},e.axisLabel,{color:t.axisLabel}),e.nameTextStyle=Object.assign({},e.nameTextStyle,{color:t.axisLabel})}),e}function ensureEmptyInputValue(e,t){document.querySelector(e).addEventListener("focusout",e=>{e.target.value||(e.target.value=t)})}
1function generateAndInitializeInputTooltip(e,t,n){const i=document.querySelector(e),o=i.cloneNode(!0),s=`${i.htmlFor}_tooltip_id`,r=document.createElement("div");r.className="d-flex flex-row gap-2";const a=document.createElement("div");a.id=s,a.className="d-flex align-items-center justify-content-center gap-1 tooltip-trigger",a.dataset.bsHtml="true",a.dataset.bsTrigger="hover",a.dataset.bsTitle=t,n&&(a.dataset.bsContainer=n);const l=document.createElement("i");l.className="far fa-question-circle",a.appendChild(l),r.appendChild(o),r.appendChild(a),i.parentNode.replaceChild(r,i),initializeTooltip(`#${s}`)}function initializeResourcePickerSelection(e,t){const n=document.querySelector(e);n?n.addEventListener("turbo:frame-load",()=>{document.querySelectorAll(t).forEach(e=>{e.addEventListener("click",()=>{const t=document.querySelector(`[name="${e.dataset.idInputToUpdate}"]`),n=document.querySelector(".addressable-name"),i=e.dataset.resourceId,o=e.dataset.name;t.value=i,n.innerText=o})})}):console.error("initializeResourcePickerSelection: Cannot find turbo frame element")}function initializeAddressPickerSelection(e,t){const n=document.querySelector(e);n?n.addEventListener("turbo:frame-load",()=>{document.querySelectorAll(t).forEach(e=>{e.addEventListener("click",()=>{const t=document.querySelector(`[name="${e.dataset.idInputToUpdate}"]`),n=document.querySelector(e.dataset.nameElementToUpdate),i=e.dataset.addressId,o=(e.dataset.displayName,e.dataset.name||"");t.value=i,n.textContent=o})})}):console.error("initializeAddressPickerSelection: Cannot find turbo frame element")}function initializeAdvancedAiAgentFunctionSearch(){const e=document.querySelector(".functions-search #search_term"),t=e.closest("form"),n=sw_debounce(()=>{t.requestSubmit()});e.addEventListener("input",n),e.addEventListener("keypress",function(e){"Enter"===e.key&&e.preventDefault()});document.querySelector(".functions-search .search-input-clear-button").addEventListener("click",n=>{n.preventDefault(),e.value="",t.requestSubmit(),e.focus()})}function initializeAdvancedDropdownComponent(e,t,n){const i=document.querySelector(t),o=document.querySelector(n),s=[...i.children];i.remove();const r=e=>e?s.find(t=>t.dataset.value.match(new RegExp(e))):"";$(e).select2({escapeMarkup:e=>e,templateResult:e=>{let t,n;e.element&&(null!=e.element.dataset.description&&(n=e.element.dataset.description),t=e.element.textContent);const i=r(t);if(i)return i.outerHTML},matcher:(e,t)=>{const n=e.term,i=t.text;return null==n||""===n.trim()?t:void 0===i?null:i?.match(new RegExp(n,"i"))?t:null}});const a=e=>{if(!e)return;const t=r(e),n=t?t.attributes["data-description"].nodeValue:null;e&&t&&n?(o.innerText=n,o.classList.remove("d-none")):(o.innerText="",o.classList.add("d-none"))};$(e).on("select2:select",e=>{e.target.closest("form").dispatchEvent(new Event("input")),e.target.value&&a(e.target.value)})}function initializeApplicationCallHandlerSwitcher(e){function t(){"script"===n.value?(l(),c()):(a(),u())}const n=document.querySelector(e),i=document.querySelector("#call_url_div"),o=document.querySelector("#call_script_div"),s=document.querySelector("#fallback_row_div"),r="d-none";n.addEventListener("change",()=>{t()});const a=()=>{i.classList.remove(r),o.classList.add(r)},l=()=>{i.classList.add(r),o.classList.remove(r)},c=()=>{s.classList.add(r)},u=()=>{s.classList.remove(r)};t()}function initializeBrowserBackTrigger(e){document.querySelector(e).addEventListener("click",e=>{e.preventDefault(),history.back()})}function initializeCxmlScriptCallHandlerSwitcher(e){function t(){"script"===n.value?(l(),c()):(a(),u())}const n=document.querySelector(e),i=document.querySelector("#call_url_div"),o=document.querySelector("#call_script_div"),s=document.querySelector("#fallback_row_div"),r="d-none";n.addEventListener("change",()=>{t()});const a=()=>{i.classList.remove(r),o.classList.add(r)},l=()=>{i.classList.add(r),o.classList.remove(r)},c=()=>{s.classList.add(r)},u=()=>{s.classList.remove(r)};t()}function initializeDeveloperResourcesComponent(e=!1){function t(){function e(){document.documentElement.style.setProperty("--sw-developer-resources-height",`${r.offsetHeight}px`)}r.addEventListener("shown.bs.collapse",e),r.addEventListener("hidden.bs.collapse",e),window.addEventListener("resize",()=>sw_throttle(e(),100)),e()}const n=("boolean"==typeof e||"string"==typeof e)&&"true"===e.toString(),i=document.querySelector(".developer-resources-toggle"),o=i.querySelector(".tooltip-container"),s=bootstrap.Tooltip.getOrCreateInstance(o),r=document.querySelector(".developer-resources-wrapper");i.addEventListener("click",()=>{i.classList.contains("collapsed")?s.setContent({".tooltip-inner":"Expand"}):s.setContent({".tooltip-inner":"Collapse"}),t()}),t(),n&&i.click()}function initializeDialogflowWelcomeMessage(e,t){const n=document.querySelector(e);
1"false"===t&&n.classList.add("d-none")}function initializeDynamicAddressGeneration(e,t){function n(){return`/${u()}/${c()}`}const i=document.querySelector(t),o=i.getElementsByTagName("input")[0],s=i.getElementsByTagName("input")[1],r=document.querySelector(e),a=r.parentNode.getElementsByTagName("small")[0];i.addEventListener("change",()=>{l()}),r.addEventListener("keyup",()=>{l()});const l=()=>{a.innerHTML=n()},c=()=>""===r.value?r.placeholder:r.value,u=()=>o.checked?o.value:s.value}function initializeFooter(){function e(){const e=document.querySelector(".helium-footer"),t=document.querySelector(".developer-resources-wrapper-placeholder"),n=document.querySelector(".developer-resources-wrapper"),i=document.documentElement.scrollHeight,{innerHeight:o,scrollY:s}=window;o+s>=i?(t&&t.classList.add("d-none"),e&&(e.classList.add("-at-bottom"),document.documentElement.style.setProperty("--sw-footer-height",`${e.offsetHeight}px`)),n&&(n.classList.add("-at-bottom"),n.style.bottom=`${e.clientHeight+2}px`)):(t&&t.classList.remove("d-none"),e&&(e.classList.remove("-at-bottom"),document.documentElement.style.setProperty("--sw-footer-height","0px")),n?(n.classList.remove("-at-bottom"),n.style.bottom="0px"):document.documentElement.style.setProperty("--sw-developer-resources-height","0px"))}document.addEventListener("scroll",()=>sw_throttle(e(),250)),window.addEventListener("resize",()=>sw_throttle(e(),250)),e()}function initializeFormLocalStorageCache(e){const t=document.querySelectorAll(`form[data-cache-key='${e}']`),n="form-cache-",i=["_method","authenticity_token","relay_sip_endpoint[call_handler]",""];let o;const s=()=>{const t=window.localStorage.getItem(n+e);return t?JSON.parse(t).data:{}},r=t=>{window.localStorage.setItem(n+e,JSON.stringify({url:window.location.href,data:t}))},a=()=>{window.localStorage.removeItem(n+e)},l=e=>(i.forEach(t=>{delete e[t]}),JSON.stringify(Object.fromEntries(Object.entries(e).sort()))),c=e=>{const t={},n=n=>{if(i.includes(n.name))return;let o=n.value;"checkbox"===n.type&&(o=new FormData(e).getAll(n.name).filter(e=>e)),t[n.name]=o};return e.querySelectorAll("input, select, textarea").forEach(e=>n(e)),t},u=e=>{const t=s(),n=Object.keys(t).length>0;if(l(t)==l(c(e))||!n)return;const i=e=>{const n=t[e.name];"password"!==e.type&&(Array.isArray(n)?(n.includes(e.value)?e.checked="checked":e.removeAttribute("checked"),e.dispatchEvent(new Event("input"))):n&&(e.value=n))};e.querySelectorAll("input").forEach(e=>i(e));e.querySelectorAll("select").forEach(e=>i(e));e.querySelectorAll("textarea").forEach(e=>i(e)),null===document.querySelector("#toast-container")&&toastr.success("Restored previous form changes",null,{showMethod:"slideDown",progressBar:!0})},d=e=>{const t=s(),n=n=>{if(i.includes(n.name))return;let o=n.value;"checkbox"===n.type&&(o=new FormData(e).getAll(n.name).filter(e=>e)),t[n.name]=o};e.querySelectorAll("input, select, textarea").forEach(t=>{t.form==e&&n(t)});l(o)==l(t)?a():r(t)},p=()=>(s()&&a(),!0);t.forEach(e=>{o=c(e),u(e),e.dispatchEvent(new Event("localStorageValuesRestored")),e.addEventListener("click",()=>{d(e)}),e.addEventListener("input",()=>{d(e)}),e.addEventListener("submit",()=>{p(e)})})}function initializeLanguageFilter(e,t,n){const i="disabled",o="d-none",s="change";if(!e||!e.data)return void console.error("languagesJson.data is undefined");e&&t&&(e.selected=t);const r=document.getElementById("provider_select"),a=document.getElementById("language_select"),l=document.getElementById("voice_select"),c=document.getElementById("language-submit"),u=document.querySelector(".premium-message"),d=$(n),p=Object.keys(e.data),h=[...p.reduce((t,n)=>t.union(new Set(e.data[n].map(e=>e.provider))),new Set)].sort(),f=p.reduce((t,n)=>t.concat(n,e.data[n]),[]),m=e=>{e&&e.dispatchEvent(new Event(s))},g=e=>{e&&e.setAttribute(i,!0)},v=e=>{e&&e.removeAttribute(i)},y=e=>{ 2e&&(e.options.length=0,e.options[0]=new Option("- Select -",""))},b=(e,t)=>{e.value=t,m(e)},_=()=>{if(!e.selected)return;const{provider:t,language:n,voice:i}=e.selected;b(r,t),b(a,n),b(l,i)},w=()=>{h.forEach(e=>{const t=e.charAt(0).toUpperCase()+String(e).slice(1);r.options[r.options.length]=new Option(t,e)})},x=t=>{p.forEach(n=>{e.data[n].map(e=>e.provider).includes(t)&&(a.options[a.options.length]=new Option(n,n))})},A=(e,t)=>
2{t.forEach(t=>{if(t.provider===e){const{friendly_name:e,voice:n}=t;l.options[l.options.length]=new Option(e,n)}}),l.options.length>1&&v(l)},E=e=>{const t=f.find(t=>t.voice===e);return t&&1==t.premium},S=()=>{y(a),g(a),m(a)},C=()=>{y(l),g(l),m(l)},L=e=>{const t=e.target.value;S(),C(),t&&(x(t),v(a))},O=t=>{const n=t.target.value;C();const i=e.data[n];i&&Array.isArray(i)&&A(r.value,i)},T=()=>{l.value?(v(c),E(l.value)?u.classList.remove(o):u.classList.add(o)):g(c),l.querySelectorAll("option:not([value]), option[value='']").length>0&&l.querySelectorAll("option:not([value]), option[value='']").forEach(e=>{e.style="display: none"})};(()=>{y(r),v(r),y(a),g(a),y(l),g(l),g(c)})(),w(),r.addEventListener(s,L),a.addEventListener(s,O),l.addEventListener(s,T),_(),d.select2({tags:!0,placeholder:'Type a filler such as "hrm.." and press enter'})}function initializeNewDatasphereDocumentForm(){const e=document.querySelector("#datasphere_document_file"),t=document.querySelector("#datasphere_document_filename");e.addEventListener("change",n=>{const i=n.target.files[0].name;!t.value&&i&&(t.value=i);const o="#{{DatasphereDocument::MAXIMUM_SIZE / 1.megabyte}}",s=e.form.querySelector("button[type='submit']");if(n.target.files[0])return n.target.files[0].size/1024/1024>o?(alert(`This file exceeds the limit of ${o} MB. Please choose a smaller file.`),s.setAttribute("disabled","disabled"),e.value="",!1):(s.removeAttribute("disabled"),!0)});let n=document.querySelector(".new_datasphere_document");n||(n=document.querySelector(".edit_datasphere_document")),n.addEventListener("submit",()=>{const e=document.querySelector('input[name="datasphere_document[chunk_size]"]'),t=document.querySelector('input[name="datasphere_document[overlap_size]"]'),n=document.querySelector('input[name="datasphere_document[max_sentences_per_chunk]"]'),i=document.querySelector('input[name="datasphere_document[split_newlines]"]');switch(document.querySelector("#datasphere_document_chunking_strategy").value){case"sentence":return e.value="",void(t.value="");case"paragraph":case"page":return e.value="",t.value="",n.value="",void(i.value=!1);case"sliding":return n.value="",void(i.value=!1)}});const i="#chunk-size",o="#overlap-size",s="#max-sentences-per-chunk",r="#split-newlines",a=[i,o],l=[s,r],c=[],u=[];selectVisibility("#datasphere_document_chunking_strategy",[i,o,s,r],"change",e=>{switch(e.target.value){case"sentence":return l;case"paragraph":return c;case"page":return u;case"sliding":return a;default:return!1}},!0);if(document.querySelector(".edit_datasphere_document")){const e=document.querySelector(".reupload-file-section-button");e&&e.addEventListener("click",()=>{document.querySelector(".reupload-file-section-button").classList.add("d-none")})}}function initializeOnClickHistoryPushState(e,t,{forwardQueryParams:n=!0}={}){if(!e)return void console.error("initializeOnClickHistoryPushState is missing the elementSelector argument: ",e);const i=document.querySelector(e);if(!i)return console.error(`initializeOnClickHistoryPushState: There is no DOM Element Found ${i}`);i.addEventListener("click",()=>{if(n){const e=new URLSearchParams(window.location.search);"object"==typeof t&&(t=t.pathname);const n=new URL(window.location.origin+t);n.search=e,t=n}history.pushState({},"",t)})}function initializePasswordInputMatching(e,t,n){function i(){o.value&&s.value&&(o.value!==s.value?(p(),u(),m()):(h(),d(),f()))}const o=document.querySelector(e),s=document.querySelector(t);if(!o||!s)return void console.warn("Could not find matching password elements: ",{passwordElementOne:o,passwordElementTwo:s});const r=document.querySelectorAll(n),a=document.querySelector(".deploy-button");o.addEventListener("change",()=>{i()}),o.addEventListener("keyup",()=>{i()}),s.addEventListener("change",()=>{i()}),s.addEventListener("keyup",()=>{i()});const l="is-invalid",c="d-none",u=()=>{r.forEach(e=>e.classList.remove(c))},d=()=>{r.forEach(e=>e.classList.add(c))},p=()=>{o.classList.add(l),s.classList.add(l)},h=()=>{o.classList.remove(l),s.classList.remove(l)},f=()=>{a&&a.removeAttribute("disabled")},m=()=>{a&&a.setAttribute("disabled","true")}}function initializePasswordInput(e,t){document.querySelector(e).value=t}async function initializePhoneNumberSearchInput(e,t,n="Use Default Behavior",i="",{usePhoneRoutes:o=!0,useVerifiedCallerIds:s=!0}={}){const r=()=>{const t=document.querySelector(e);return!(!t||t.tomselect)||(console.error("initializePhoneNumberSearchInput: there was an error creating the dropdown"),!1)};if(!r())return;const a="",l="phone_routes",c="verified_caller_ids",u=[];o&&u.push({value:l,label:"Purchased Numbers"}),s&&u.push({value:c,label:"Verified Caller IDs"});const d=e=>{let t=[];return n&&(t=[...t,{name:n,phone_number:a}]),o&&e.phone_routes&&(t=[...t,...e.phone_routes.map(e=>({...e,optgroup:l}))]),s&&e.verified_caller_ids&&(t=[...t,...e.verified_caller_ids.map(e=>({...e,optgroup:c}))]),t=t.map(e=>({name:e.name,phone_number:e.phone_number,formatted_phone_number:e.formatted_phone_number,optgroup:e.optgroup})),t},p=async(e="")=>{let n=`${t}?phone_routes=${encodeURIComponent(o)}&verified_caller_ids=${encodeURIComponent(s)}`;e&&(n=`${n}&search=${encodeURIComponent(e)}`);try{const e=await fetch(n);return e.ok?d(await e.json()):d({})}catch(e){return d({})}},h=(e,t)=>`\n <div class="d-flex flex-column gap-2">\n ${e.name?`<div class="value">\n ${t(e.name)}
2\n </div>`:`<div class="value">\n ${t(e.formatted_phone_number)}\n </div>`}\n </div>\n `,f=(e,t)=>`\n <div class="d-flex flex-column gap-2">\n <div class="value">\n ${t(e.name||e.formatted_phone_number)}\n </div>\n ${e.name&&e.formatted_phone_number&&e.name!==e.formatted_phone_number?`<div class="text-accessible-text">\n (${t(e.formatted_phone_number)})\n </div>`:""}\n </div>\n `,m=await p(),g=m.some(e=>e.phone_number===i);if(i!==a&&!g){const e=await p(i);m.push(e.find(e=>e.phone_number===i)||{name:null,phone_number:i,formatted_phone_number:i,optgroup:o?l:c})}const v={plugins:["dropdown_input"],maxItems:1,create:!1,preload:!0,allowEmptyOption:!0,valueField:"phone_number",searchField:["name","phone_number","formatted_phone_number"],score:function(e){const t=e=>(e||"").toString().toLowerCase().replace(/[^a-z0-9]/g,""),n=t(e);return e=>{if(!n)return 1;return t([e.name,e.phone_number,e.formatted_phone_number].join(" ")).includes(n)?1:0}},options:m,optgroups:u,optgroupField:"optgroup",optgroupValueField:"value",optgroupLabelField:"label",lockOptgroupOrder:!0,placeholder:"Search...",load:async function(e,t){t(await p(e))},render:{option:function(e,t){return f(e,t)},item:function(e,t){return h(e,t)},optgroup_header:function(e,t){return`<div class="optgroup-header">${t(e.label)}</div>`}},onBlur:function(){this.items.length||this.setValue(a,!0)}};if(!r())return;new TomSelect(e,v).setValue(i,!0)}function initializePricingUpdate(){function e(){const e=t.value,r=n.value;if(e&&r){if("undefined"!=typeof languagesJson){const t=Object.values(languagesJson.data).flat().find(e=>e.voice===r);if(t&&1==t.premium){o.classList.remove("d-none");const t=document.querySelector('meta[name="csrf-token"]')?.getAttribute("content"),n=new URLSearchParams({provider:e});fetch(`${s}?${n}`,{method:"GET",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-Token":t}}).then(e=>{if(!e.ok)throw new Error(`Network response was not ok: ${e.status}`);return e.json()}).then(e=>{e.message&&(i.textContent=e.message)})}else o.classList.add("d-none")}}else o.classList.add("d-none")}const t=document.getElementById("provider_select"),n=document.getElementById("voice_select"),i=document.getElementById("premium-message-content"),o=document.getElementById("premium-message-wrapper");if(!(t&&n&&i&&o))return;const s=o.dataset.pricingPath;s&&(t.addEventListener("change",e),n.addEventListener("change",e),"undefined"!=typeof selected&&selected&&t.value&&n.value&&setTimeout(e,100))}function initializePstTransitionDemoDialog(e,t=!0,n=!1){const i=e=>"string"==typeof e&&"true"===e||"boolean"==typeof e&&!0===e;if(i(n))return;const o=()=>document.querySelector(e),s=()=>o().querySelector("form").querySelector("input[type=checkbox]"),r=()=>{if(o()){s().checked&&window.location.reload()}},a=()=>{const e=o();if(e&&!e.open){e.showModal(),e.addEventListener("close",()=>{r()});s().addEventListener("click",()=>{formElementForDoNotShowAgain.submit()})}};i(t)&&a()}function initializeRangeSliderInput(e,t){const n=document.querySelector(e),i=document.querySelector(t),o=e=>{n.value=e.target.value},s=e=>{i.value=e.target.value};n.addEventListener("input",s),i.addEventListener("change",o),n.value=i.value,setTimeout(()=>{n.value=i.value},500)}function initializeSideNavMinimize(){function e(){o.classList.add(a),localStorage.setItem(l,"true")}function t(){o.classList.remove(a),localStorage.removeItem(l)}function n(){o.classList.contains(a)?t():e()}function i(){const e=localStorage.getItem(l);e&&"true"===e?o.classList.add(a):o.classList.remove(a),"true"==localStorage.getItem("side-nav-menu-pin")?c.classList.add("side-nav-menu-pin"):c.classList.remove("side-nav-menu-pin")}const o=document.querySelector(".helium-nav"),s=document.querySelector(".side-nav-collapse-button"),r=document.querySelector(".side-nav-expand-button"),a="-collapse",l="signalwire-side-nav-collapsed",c=document.querySelector(".side-nav-menu");s.addEventListener("click",n),r.addEventListener("click",n),i(),c.addEventListener("mouseenter",()=>{localStorage.setItem("side-nav-menu-pin","true"),c.classList.add("side-nav-menu-pin")}),c.addEventListener("mouseleave",()=>{localStorage.removeItem("side-nav-menu-pin"),c.classList.remove("side-nav-menu-pin")})}function readSmoothLineChartTheme(){const e=getComputedStyle(document.documentElement),t=(t,n)=>e.getPropertyValue(t).trim()||n;
2return{axisLabel:t("--sw-chart-axis-label","#6e7079"),axisLine:t("--sw-chart-axis-line","#6e7079"),splitLine:t("--sw-chart-split-line","#e0e6f1"),text:t("--sw-chart-text","#333333"),tooltipBg:t("--sw-chart-tooltip-bg","#ffffff"),tooltipColor:t("--sw-chart-tooltip-color","#666666"),tooltipBorder:t("--sw-chart-tooltip-border","#cccccc"),pointerLabelBg:t("--sw-chart-pointer-label-bg","#6a7985")}}function initializeSmoothLineChartComponent(e,t,n=[[]],i=""){if("string"==typeof t&&(t=t.replaceAll(""",'"'),t=JSON.parse(t)),!Array.isArray(t)||"string"!=typeof t[0])return void console.error("initializeSmoothLineChartComponent: keys is not Array or have string values");if("string"==typeof n&&(n=n.replaceAll(""",'"'),n=JSON.parse(n)),!Array.isArray(n)&&!Array.isArray(n[0]))return void console.error("initializeSmoothLineChartComponent: vector2Data is not a 2D Array");const o=document.querySelector(e);if(!o)return void console.error("initializeSmoothLineChartComponent: chartElement was not found with: ",e);o.style.width="100%";const s=echarts.init(o),r=n.map(e=>e[0]),a=n.map(e=>{const n=e[1];return Array.isArray(n)?[...n,...new Array(t.length-n.length).fill(null)].slice(0,t.length):new Array(t.length).fill(null)});let l=[];t.forEach((e,t)=>{l=[...l,{name:e,data:a.map(e=>{const n=e[t],i="string"==typeof n?parseFloat(n):n;return Number.isFinite(i)&&0!==i?i:null}),type:"line",smooth:!0,showSymbol:a.length<=2,symbolSize:a.length<=2?10:4,connectNulls:!0,emphasis:{focus:"series"}}]});const c=()=>{const e=readSmoothLineChartTheme();return{title:{text:i,textStyle:{color:e.text}},tooltip:{trigger:"axis",backgroundColor:e.tooltipBg,borderColor:e.tooltipBorder,textStyle:{color:e.tooltipColor},axisPointer:{type:"cross",label:{backgroundColor:e.pointerLabelBg}}},legend:{data:[...t],textStyle:{color:e.text}},toolbox:{show:!0,feature:{saveAsImage:{},magicType:{type:["line","bar"]},restore:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:r,axisLine:{lineStyle:{color:e.axisLine}},axisLabel:{color:e.axisLabel}},yAxis:{type:"value",axisLabel:{color:e.axisLabel},axisLine:{lineStyle:{color:e.axisLine}},splitLine:{lineStyle:{color:e.splitLine}}},series:l}},u=()=>s.setOption(c());document.addEventListener("turbo:load",()=>{u()}),document.addEventListener("turbo:frame-load",()=>{u()}),window.addEventListener("resize",()=>{u(),setTimeout(()=>{s.resize()},150)});new IntersectionObserver(()=>{u(),setTimeout(()=>{s.resize()},50)},{root:document.documentElement}).observe(o);new MutationObserver(()=>u()).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-appearance"]})}function initializeSpaceAndProjectSwitchers(){const e=document.querySelector(".navigation-wrapper"),t=document.querySelector(".space-switcher-show"),n=document.querySelector(".space-switcher-hide"),i=document.querySelector(".space-switcher-wrapper"),o=document.querySelector(".project-switcher-show"),s=document.querySelector(".project-switcher-hide"),r=document.querySelector(".project-switcher-wrapper");t.addEventListener("click",t=>{t.preventDefault(),e.classList.add("d-none"),i.classList.remove("d-none")}),n.addEventListener("click",t=>{t.preventDefault(),e.classList.remove("d-none"),i.classList.add("d-none")}),o.addEventListener("click",t=>{t.preventDefault(),e.classList.add("d-none"),r.classList.remove("d-none")}),s.addEventListener("click",t=>{t.preventDefault(),e.classList.remove("d-none"),r.classList.add("d-none")})}function initializeSpaceIdSearch(e,t,n,i=null){function o(e,t){fetch(a(e)).then(e=>e.json()).then(e=>{t(e.results)}).catch(()=>{t()})}const s=document.querySelector(e);if(!s||s.tomselect)return void console.error("initializeSpaceIdSearch: there was an error creating the dropdown");const r="company_by_id",a=e=>{const t=new URL(n,window.location.origin);return t.searchParams.append("search[term]",e),t.searchParams.append("search[type]",r),t},l=(e,n)=>`<div>\n ${n(e.text)}.${t} -\n <span class="text-medium-text small">${n(e.id)}</span>\n </div>`,c=new TomSelect(e,{valueField:"id",labelField:"text",searchField:"id",plugins:["dropdown_input"],placeholder:"Search by Space ID",load:function(e,t){o(e,t)},render:{option:l,item:l}});i&&fetch(a(i)).then(e=>e.json()).then(e=>{const t=(e.results||[]).find(e=>String(e.id)===String(i));t&&(c.options[t.id]?c.updateOption(t.id,t):c.addOption(t),c.addItem(t.id,!0))}).catch(()=>{console.error("initializeSpaceIdSearch: could not load the selected option")})}function initializeTooltip(e){document.querySelectorAll(e).forEach(e
2=>{if(bootstrap.Tooltip.getInstance(e))return;const t={delay:0,customClass:`tooltip-html ${e.dataset.tooltipClass||"tooltip-trigger"}`,container:!1},n=e.closest(".modal")||e.closest("dialog");null==n&&null==n||(t.container=n);const i=bootstrap.Tooltip.getOrCreateInstance(e,t);"true"==e.dataset.hideOnClick&&e.addEventListener("click",()=>{bootstrap.Tooltip.getOrCreateInstance(e).hide()}),e.addEventListener("shown.bs.tooltip",function(){const t=i.hide,n=bootstrap.Tooltip.getInstance(e).tip;n.addEventListener("mouseenter",()=>i.hide=()=>!0),n.addEventListener("mouseleave",()=>{i.hide=t,i.hide()})})})}function initializeUnsavedWarningModal(e,t,n){const i=document.querySelector(e),o=document.querySelector(t),s=document.querySelector(n),r=()=>{const e=[],t=[];for(let t in localStorage)t.match(/^form-cache-/gi)&&e.push(t);for(let n in e){const i=localStorage.getItem(e[n]);i&&t.push(JSON.parse(i))}return{keys:e,data:t}},a=e=>{const{keys:t,data:n}=r(),a=document.querySelectorAll("[data-cache-key]"),l=[];a.forEach(e=>{l.push(`form-cache-${e.dataset.cacheKey}`)});if(!t.some(e=>l.includes(e)))return;const c=new URL(e.detail.url),u=new URL(n[0].url);if(c.pathname===u.pathname)return!0;e.preventDefault(),i.showModal(),s.addEventListener("click",()=>{i.close()}),o.addEventListener("click",()=>{t.forEach(e=>localStorage.removeItem(e)),i.close(),Turbo.visit(c,{action:"replace"})})};document.addEventListener("turbo:before-visit",a),document.addEventListener("turbo:load",()=>document.querySelectorAll("[data-cache-key]"))}function initializeUserIdSearch(e,t,n=null){function i(e,t){fetch(r(e)).then(e=>e.json()).then(e=>{t(e.results)}).catch(()=>{t()})}const o=document.querySelector(e);if(!o||o.tomselect)return void console.error("initializeUserIdSearch: there was an error creating the dropdown");const s="user_by_id",r=e=>{const n=new URL(t,window.location.origin);return n.searchParams.append("search[term]",e),n.searchParams.append("search[type]",s),n},a=(e,t)=>`<div>\n ${t(e.text)} -\n <span class="text-medium-text small">${t(String(e.id))}</span>\n </div>`,l=new TomSelect(e,{valueField:"id",labelField:"text",searchField:"id",plugins:["dropdown_input"],placeholder:"Search by User ID",load:function(e,t){i(e,t)},render:{option:a,item:a}});n&&fetch(r(n)).then(e=>e.json()).then(e=>{const t=(e.results||[]).find(e=>String(e.id)===String(n));t&&(l.options[t.id]?l.updateOption(t.id,t):l.addOption(t),l.addItem(t.id,!0))}).catch(()=>{console.error("initializeUserIdSearch: could not load the selected option")})}function initializeVideoPreviewAppearanceEdit(e){const t=e=>"true"==e.dataset.dark?"dark":"light",n=n=>{const i=document.querySelectorAll("input[type='color']"),o=document.querySelector(`#${e}`),s=new URL(o.src),r=s.searchParams.get("theme_color"),a=t(n.target);r===a&&(i.forEach(e=>{r===t(e)&&s.searchParams.set(e.dataset.for,e.value)}),s.searchParams.set("theme_color",r),o.src=s.toString())};document.querySelectorAll("input[type='color']").forEach(e=>{e.addEventListener("input",n)})}function initResourceFilters(e="#search"){function t(){document.querySelector(e);document.querySelectorAll(".submit-on-click").forEach(e=>{e.addEventListener("change",()=>{e.closest("form").requestSubmit(),i()})})}function n(){document.querySelector(".filter-clear-all").addEventListener("click",()=>{document.querySelectorAll(".filter-dropdown-checkboxes-wrapper input[type='checkbox']").forEach(e=>e.checked=!1),i()})}function i(){const e=document.querySelector(".state-selected-filters");if(!e)return;const t=document.querySelectorAll(".filter-dropdown-checkboxes-wrapper input[type='checkbox']:checked");e.innerHTML="",t.forEach(t=>{const n=document.createElement("i");n.classList.add("fal","fa-times","sw-mt-2","pe-none");const i=document.createElement("button");i.classList.add("btn","btn-outline-confirm","btn-sm","d-flex","gap-2","align-items-center"),i.innerHTML=t.dataset.name,i.appendChild(n),i.dataset.resource=t.value,i.addEventListener("click",e=>{e.preventDefault();const t=document.querySelector(`.filter-dropdown-checkboxes-wrapper input[type='checkbox'][value='${e.target.dataset.resource}']`);t.checked=!1,t.dispatchEvent(new Event("change"))}),e.appendChild(i)})}t(),n(),i()}function initListFilters(e){const t=document.querySelector(`${e} .filter-clear-all`),n=document.querySelector(`${e} .filter-select-all`),i=document.querySelectorAll(`${e} .submit-on-click`),o=document.querySelector(`${e} #search_term`).closest("form");
2i.forEach(e=>{e.addEventListener("change",()=>{o.requestSubmit()})}),filterCheckboxes=document.querySelectorAll(`${e} .filter-dropdown-checkboxes-wrapper input[type='checkbox']`),t.addEventListener("click",()=>{filterCheckboxes.forEach(e=>{e.checked=!1})}),n.addEventListener("click",()=>{filterCheckboxes.forEach(e=>{e.checked=!0})})}function initListSearch(e){const t=document.querySelector(`${e} #search_term`),n=t.closest("form"),i=window.__listSearchFocusRestore;if(i&&i.searchWrapper===e&&(window.__listSearchFocusRestore=null,t.focus(),"number"==typeof i.selectionStart&&t.setSelectionRange(i.selectionStart,i.selectionEnd)),n.dataset.searchInitialized)return;n.dataset.searchInitialized="true";const o=sw_debounce(()=>{window.__listSearchFocusRestore={searchWrapper:e,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd},n.requestSubmit()});t.addEventListener("input",o),t.addEventListener("keypress",function(e){"Enter"===e.key&&e.preventDefault()});document.querySelector(`${e} .search-input-clear-button`).addEventListener("click",i=>{i.preventDefault(),t.value="",window.__listSearchFocusRestore={searchWrapper:e,selectionStart:0,selectionEnd:0},n.requestSubmit()})}function loadCallFlowBuilder(e,t,n,i,o){document.addEventListener("turbo:load",()=>{const e=document.querySelector(".helium-top").offsetHeight,t=document.querySelector(".helium-footer").offsetHeight;document.querySelector(":root").style.setProperty("--sw-header-and-footer-height",`${e+t}px`)});const s=document.getElementById("script")||document.createElement("script");s.setAttribute("src",e),s.setAttribute("async","true"),document.head.insertBefore(s,document.head.firstElementChild),s.addEventListener("load",()=>{CFB.main({rootElementId:"root",backButtonHref:t,getFlowURL:n,updateFlowURL:i,deployFlowURL:o})})}function replaceVisibility(e,t){const n="d-none",i=document.querySelector(e),o=()=>{document.querySelector(t).classList.remove(n),i.classList.add(n)};i.addEventListener("click",o)}function neonScrollToInvalid(e){for(var t=(e&&e.querySelector?e:document).querySelectorAll(".is-invalid"),n=0;n<t.length;n++)if(!t[n].closest("[data-scroll-to-invalid='off']"))return void t[n].scrollIntoView({behavior:"smooth",block:"center"})}function selectVisibility(e,t,n,i,o=!1){const s="d-none",r=n=>{if(!Array.isArray(t))return void console.error(`\n selectVisibility: elementSelectorsToToggleSelectorArray is not an array...\n elementThatTriggersSelectors: ${e}\n elementSelectorsToToggleSelectorArray: ${t}\n `);const o=i(n,t);t.forEach(e=>{const t=document.querySelector(e);Array.isArray(o)&&o.includes(e)||e===o?t.classList.remove(s):t.classList.add(s)})},a=e=>{e.addEventListener(n,r)};let l=[];Array.isArray(e)?e.forEach(e=>{const t=document.querySelectorAll(e);l=[...l,...t]}):l=document.querySelectorAll(e),l.forEach(e=>{a(e)}),o&&l.forEach(e=>{r({target:e})})}function smoothScrollTo(e,t,n="click",i="100px"){const o=document.querySelector(e);if(!o)return;const s=()=>{const e=document.querySelector(t);e&&(e.style["scroll-margin-top"]=i,e.scrollIntoView({alignToTop:!0,behavior:"smooth"}))};o.addEventListener(n,s)}function initTimeago(){$("time[data-time-ago]").timeago()}function toggleOnClickVisibility(e,t,n=!1){const i=document.querySelector(e),o=document.querySelector(t),s="d-none",r=()=>{o.classList.includes(s)?o.classList.remove(s):o.classList.add(s)};i.addEventListener("click",r),(n||"true"===n)&&o.classList.remove(s)}function toggleOnHoverVisibility(e,t){const n=document.querySelector(e),i=document.querySelector(t),o="d-none",s=()=>{n.classList.remove(o),i.classList.add(o)},r=()=>{n.classList.add(o),i.classList.remove(o)},a=e=>{"mouseover"===e.type?r():(e.type,s())};n.addEventListener("mouseover",a),i.addEventListener("mouseleave",a),s()}function toggleVisibility(e,t){function n(){!0===i.checked?a():r()}const i=document.querySelector(e),o=document.querySelector(t),s="d-none";document.addEventListener("turbo:frame-load",function(){n()}),i.addEventListener("click",()=>{n()});const r=()=>{o.classList.add(s)},a=()=>{o.classList.remove(s)}}function initTooltips(){[...getTooltipElements()].map(e=>{bootstrap.Tooltip.getInstance(e)||new bootstrap.Tooltip(e)})}function getTooltipElements(){return document.querySelectorAll('[data-bs-toggle="tooltip"], [data-toggle="tooltip"]')}function initializeLinkedinTracking(){_linkedin_partner_id="1253362",window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[],window._linkedin_data_partner_ids.push(_linkedin_partner_id),function(){window.lintrk||(window.lintrk=function(e,t){window.lintrk.q.push([e,t])},window.lintrk.q=[]);var e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://snap.licdn.com/li.lms-analytics/insight.min.js",e.parentNode.insertBefore(t,e)}()}function initializeRedditPixel(){if(!window.rdt){let e=window.rdt=function(){e.sendEvent?e.sendEvent.apply(e,arguments):e.callQueue.push(arguments)};e.callQueue=[];let t=document.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js",t.async=!0;let n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}window.rdt("init","a2_evln8ggmmwem"),window.rdt("track","SignUp")}function initializeWhatsAppSignupEmbed(e,t,n,i,o){let s,r,a;const l=()=>{FB.init({appId:e,cookie:!0,xfbml:!0,version:t}),FB.login(e=>{if(console.log("Auth Callback Response received:",e),e.authResponse){const t=e.authResponse.code;fetch(`https://id.${i}/api/provider_callback/whatsapp/embedded_signup/post_processing`,{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({project_id:o,exchangeable_token:t,business_phone_number_id:s,waba_id:r,business_portfolio_id:a,processing_stage:"auth_callback"})}).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}`);console.log("Auth callback processed successfully")}).catch(e=>{console.error("Error processing auth callback:",e)})}},{config_id:n,response_type:"code",override_default_response_type:!0,extras:{setup:{},featureType:"",sessionInfoVersion:"3"}})},c=()=>{var e,t,n,i,o;window.FB?l():(window.fbAsyncInit=l,e=document,t="script",n="facebook-jssdk",o=e.getElementsByTagName(t)[0],e.getElementById(n)||((i=e.createElement(t)).id=n,i.async=!0,i.defer=!0,i.crossorigin="anonymous",i.src="https://connect.facebook.net/en_US/sdk.js",o.parentNode.insertBefore(i,o)))},u=e=>{if(e.origin.endsWith("facebook.com"))try{const t="string"==typeof e.data?JSON.parse(e.data):e.data;if(console.log("Received message from Meta:",t),"WA_EMBEDDED_SIGNUP"===t.type&&"FINISH"===t.event&&t.data){const e=t.data;s=e.phone_number_id,r=e.waba_id,a=e.business_id,fetch(`https://id.${i}/api/provider_callback/whatsapp/embedded_signup/post_processing`,{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({project_id:o,waba_id:e.waba_id,business_portfolio_id:a,business_phone_number_id:s,processing_stage:"signup_callback"})}).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}`);console.log("Signup callback processed successfully"),window.location.href=`https://id.${i}/whatsapp_embedded_redirect?state=${o}`}).catch(e=>{console.error("Error processing signup callback:",e),alert("Error completing WhatsApp Business setup")})}else"WA_EMBEDDED_SIGNUP"===t.type&&"FINISH"!==t.event&&(console.log("WhatsApp signup cancelled or failed:",t),alert("WhatsApp signup was cancelled or failed"))}catch(e){console.error("Error parsing message from Meta:",e)}};currentWhatsAppOnMessage&&window.removeEventListener("message",currentWhatsAppOnMessage),currentWhatsAppOnMessage=u,window.addEventListener("message",u),setTimeout(()=>c(),500)}function initializeWhatsAppEmbededSignupOnClick(e,t,n,i,o,s){document.querySelector(e).addEventListener("click",e=>{e.preventDefault(),initializeWhatsAppSignupEmbed(t,n,i,o,s)})}function initializeModalSearch(){const e=document.getElementById("userSearchInput"),t=document.getElementById("userSearchResults");if(e&&t){const n=Array.from(t.getElementsByTagName("li")).filter(e=>!e.classList.contains("search-header"));e.addEventListener("input",function(){const e=this.value.toLowerCase().trim();let i=0;
2n.forEach(function(t){const n=(t.dataset.userName||"").toLowerCase(),o=(t.dataset.userEmail||"").toLowerCase(),s=t.textContent.toLowerCase();""===e||n.includes(e)||o.includes(e)||s.includes(e)?(t.classList.remove("d-none"),t.style.display="",i++):t.classList.add("d-none")});let o=t.querySelector(".no-results-message");0===i&&""!==e?(o||(o=document.createElement("li"),o.className="list-group-item no-results-message text-muted text-center",o.textContent="No users found matching your search.",t.appendChild(o)),o.style.display=""):o&&(o.style.display="none")});const i=document.getElementById("addUserModal");i&&i.addEventListener("hidden.bs.modal",function(){e.value="",n.forEach(function(e){e.classList.remove("d-none"),e.style.display=""});const i=t.querySelector(".no-results-message");i&&(i.style.display="none")})}}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){var i,o,s=(n=n||_e).createElement("script");if(s.text=e,t)for(i in we)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,o);n.head.appendChild(s).parentNode.removeChild(s)}function i(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?pe[he.call(e)]||"object":typeof e}function o(e){var t=!!e&&"length"in e&&e.length,n=i(e);return!ye(e)&&!be(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function s(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function r(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function a(e,t,n){return ye(t)?Ee.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?Ee.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Ee.grep(e,function(e){return de.call(t,e)>-1!==n}):Ee.filter(t,e,n)}function l(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){var t={};return Ee.each(e.match(Be)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function d(e){throw e}function p(e,t,n,i){var o;try{e&&ye(o=e.promise)?o.call(e).done(t).fail(n):e&&ye(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}function h(){_e.removeEventListener("DOMContentLoaded",h),e.removeEventListener("load",h),Ee.ready()}function f(e,t){return t.toUpperCase()}function m(e){return e.replace(Ve,"ms-").replace(Ue,f)}function g(){this.expando=Ee.expando+g.uid++}function v(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ge.test(e)?JSON.parse(e):e)}function y(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Qe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=v(n)}catch(e){}Ke.set(e,t,n)}else n=void 0;return n}function b(e,t,n,i){var o,s,r=20,a=i?function(){return i.cur()}:function(){return Ee.css(e,t,"")},l=a(),c=n&&n[3]||(Ee.cssNumber[t]?"":"px"),u=e.nodeType&&(Ee.cssNumber[t]||"px"!==c&&+l)&&Ze.exec(Ee.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;r--;)Ee.style(e,t,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(r=0),u/=s;u*=2,Ee.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}function _(e){var t,n=e.ownerDocument,i=e.nodeName,o=st[i];return o||(t=n.body.appendChild(n.createElement(i)),o=Ee.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),st[i]=o,o)}function w(e,t){for(var n,i,o=[],s=0,r=e.length;s<r;s++)(i=e[s]).style&&(n=i.style.display,t?("none"===n&&(o[s]=Xe.get(i,"display")||null,o[s]||(i.style.display="")),""===i.style.display&&ot(i)&&(o[s]=_(i))):"none"!==n&&(o[s]="none",Xe.set(i,"display",n)));for(s=0;s<r;s++)null!=o[s]&&(e[s].style.display=o[s]);return e}function x(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&s(e,t)?Ee.merge([e],n):n}function A(e,t){for(var n=0,i=e.length;n<i;n++)Xe.set(e[n],"globalEval",!t||Xe.get(t[n],"globalEval"))}function E(e,t,n,o,s){for(var r,a,l,c,u,d,p=t.createDocumentFragment(),h=[],f=0,m=e.length;f<m;f++)if((r=e[f])||0===r)if("object"===i(r))Ee.merge(h,r.nodeType?[r]:r);else if(pt.test(r)){for(a=a||p.appendChild(t.createElement("div")),l=(ct.exec(r)||["",""])[1].toLowerCase(),c=dt[l]||dt._default,a.innerHTML=c[1]+Ee.htmlPrefilter(r)+c[2],d=c[0];d--;)a=a.lastChild;Ee.merge(h,a.childNodes),(a=p.firstChild).textContent=""}else h.push(t.createTextNode(r));for(p.textContent="",f=0;r=h[f++];
vendor: 4,109 bytes, lines 2-3
2)if(o&&Ee.inArray(r,o)>-1)s&&s.push(r);else if(u=nt(r),a=x(p.appendChild(r),"script"),u&&A(a),n)for(d=0;r=a[d++];)ut.test(r.type||"")&&n.push(r);return p}function S(){return!0}function C(){return!1}function L(e,t,n,i,o,s){var r,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)L(e,a,n,i,t[a],s);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=C;else if(!o)return e;return 1===s&&(r=o,o=function(e){return Ee().off(e),r.apply(this,arguments)},o.guid=r.guid||(r.guid=Ee.guid++)), 3e.each(function(){Ee.event.add(this,t,o,i,n)})}function O(e,t,n){n?(Xe.set(e,t,!1),Ee.event.add(e,t,{namespace:!1,handler:function(e){var n,i=Xe.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(Ee.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=le.call(arguments),Xe.set(this,t,i),this[t](),n=Xe.get(this,t),Xe.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(Xe.set(this,t,Ee.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=S)}})):void 0===Xe.get(e,t)&&Ee.event.add(e,t,S)}function T(e,t){return s(e,"table")&&s(11!==t.nodeType?t:t.firstChild,"tr")&&Ee(e).children("tbody")[0]||e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function I(e,t){var n,i,o,s,r,a;if(1===t.nodeType){if(Xe.hasData(e)&&(a=Xe.get(e).events))for(o in Xe.remove(t,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)Ee.event.add(t,o,a[o][n]);Ke.hasData(e)&&(s=Ke.access(e),r=Ee.extend({},s),Ke.set(t,r))}}function D(e,t){var n=t.nodeName.toLowerCase();"input"===n&<.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function j(e,t,i,o){t=ce(t);var s,r,a,l,c,u,d=0,p=e.length,h=p-1,f=t[0],m=ye(f);if(m||p>1&&"string"==typeof f&&!ve.checkClone&&mt.test(f))return e.each(function(n){var s=e.eq(n);m&&(t[0]=f.call(this,n,s.html())),j(s,t,i,o)});if(p&&(r=(s=E(t,e[0].ownerDocument,!1,e,o)).firstChild,1===s.childNodes.length&&(s=r),r||o)){for(l=(a=Ee.map(x(s,"script"),k)).length;d<p;d++)c=s,d!==h&&(c=Ee.clone(c,!0,!0),l&&Ee.merge(a,x(c,"script"))),i.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,Ee.map(a,$),d=0;d<l;d++)c=a[d],ut.test(c.type||"")&&!Xe.access(c,"globalEval")&&Ee.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?Ee._evalUrl&&!c.noModule&&Ee._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):n(c.textContent.replace(gt,""),c,u))}return e}function P(e,t,n){for(var i,o=t?Ee.filter(t,e):e,s=0;null!=(i=o[s]);s++)n||1!==i.nodeType||Ee.cleanData(x(i)),i.parentNode&&(n&&nt(i)&&A(x(i,"script")),i.parentNode.removeChild(i));return e}function q(e,t,n){var i,o,s,r,a=yt.test(t),l=e.style;return(n=n||bt(e))&&(r=n.getPropertyValue(t)||n[t],a&&r&&(r=r.replace(Te,"$1")||void 0),""!==r||nt(e)||(r=Ee.style(e,t)),!ve.pixelBoxStyles()&&vt.test(r)&&wt.test(t)&&(i=l.width,o=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=n.width,l.width=i,l.minWidth=o,l.maxWidth=s)),void 0!==r?r+"":r}function N(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function F(e){for(var t=e[0].toUpperCase()+e.slice(1),n=xt.length;n--;)if((e=xt[n]+t)in At)return e}function M(e){var t=Ee.cssProps[e]||Et[e];return t||(e in At?e:Et[e]=F(e)||e)}function R(e,t,n){var i=Ze.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function B(e,t,n,i,o,s){var r="width"===t?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(c+=Ee.css(e,n+et[r],!0,o)),i?("content"===n&&(l-=Ee.css(e,"padding"+et[r],!0,o)),"margin"!==n&&(l-=Ee.css(e,"border"+et[r]+"Width",!0,o))):(l+=Ee.css(e,"padding"+et[r],!0,o),"padding"!==n?l+=Ee.css(e,"border"+et[r]+"Width",!0,o):a+=Ee.css(e,"border"+et[r]+"Width",!0,o));return!i&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l+c}function H(e,t,n){var i=bt(e),o=(!ve.boxSizingReliable()||n)&&"border-box"===Ee.css(e,"boxSizing",!1,i),r
vendor: 1,385 bytes, line 3
3=o,a=q(e,t,i),l="offset"+t[0].toUpperCase()+t.slice(1);if(vt.test(a)){if(!n)return a;a="auto"}return(!ve.boxSizingReliable()&&o||!ve.reliableTrDimensions()&&s(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===Ee.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===Ee.css(e,"boxSizing",!1,i),(r=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+B(e,t,n||(o?"border":"content"),r,i,a)+"px"}function z(e,t,n,i,o){return new z.prototype.init(e,t,n,i,o)}function W(){Tt&&(!1===_e.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(W):e.setTimeout(W,Ee.fx.interval),Ee.fx.tick())}function V(){return e.setTimeout(function(){Ot=void 0}),Ot=Date.now()}function U(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=et[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Y(e,t,n){for(var i,o=(G.tweeners[t]||[]).concat(G.tweeners["*"]),s=0,r=o.length;s<r;s++)if(i=o[s].call(n,t,e))return i}function X(e,t,n){var i,o,s,r,a,l,c,u,d="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&ot(e),g=Xe.get(e,"fxshow");for(i in n.queue||(null==(r=Ee._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,p.always(function(){p.always(function(){r.unqueued--,Ee.queue(e,"fx").length||r.empty.fire()})})),t)if(o=t[i],kt.test(o)){if(delete t[i],s=s||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||
vendor: 4,773 bytes, line 3
3!g||void 0===g[i])continue;m=!0}h[i]=g&&g[i]||Ee.style(e,i)}if((l=!Ee.isEmptyObject(t))||!Ee.isEmptyObject(h))for(i in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=Xe.get(e,"display")),"none"===(u=Ee.css(e,"display"))&&(c?u=c:(w([e],!0),c=e.style.display||c,u=Ee.css(e,"display"),w([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===Ee.css(e,"float")&&(l||(p.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(m=g.hidden):g=Xe.access(e,"fxshow",{display:c}),s&&(g.hidden=!m),m&&w([e],!0),p.done(function(){for(i in m||w([e]),Xe.remove(e,"fxshow"),h)Ee.style(e,i,h[i])})),l=Y(m?g[i]:0,i,p),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}function K(e,t){var n,i,o,s,r;for(n in e)if(o=t[i=m(n)],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),(r=Ee.cssHooks[i])&&"expand"in r)for(n in s=r.expand(s),delete e[i],s)n in e||(e[n]=s[n],t[n]=o);else t[i]=o}function G(e,t,n){var i,o,s=0,r=G.prefilters.length,a=Ee.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Ot||V(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),s=0,r=c.tweens.length;s<r;s++)c.tweens[s].run(i);return a.notifyWith(e,[c,i,n]),i<1&&r?n:(r||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:Ee.extend({},t),opts:Ee.extend(!0,{specialEasing:{},easing:Ee.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ot||V(),duration:n.duration,tweens:[],createTween:function(t,n){var i=Ee.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(K(u,c.opts.specialEasing);s<r;s++)if(i=G.prefilters[s].call(c,e,u,c.opts))return ye(i.stop)&&(Ee._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return Ee.map(u,Y,c),ye(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),Ee.fx.timer(Ee.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}function Q(e){return(e.match(Be)||[]).join(" ")}function J(e){return e.getAttribute&&e.getAttribute("class")||""}function Z(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Be)||[]}function ee(e,t,n,o){var s;if(Array.isArray(t))Ee.each(t,function(t,i){n||Ht.test(e)?o(e,i):ee(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,o)});else if(n||"object"!==i(t))o(e,t);else for(s in t)ee(e+"["+s+"]",t[s],n,o)}function te(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,s=t.toLowerCase().match(Be)||[];if(ye(n))for(;i=s[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function ne(e,t,n,i){function o(a){var l;return s[a]=!0,Ee.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||r||s[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),l}var s={},r=e===en;return o(t.dataTypes[0])||!s["*"]&&o("*")}function ie(e,t){var n,i,o=Ee.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&Ee.extend(!0,e,i),e}function oe(e,t,n){for(var i,o,s,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)s=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),n[s]}function se(e,t,n,i){var o,s,r,a,l,c={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if((a=o.split(" "))[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}var re=[],ae=Object.getPrototypeOf,le=re.slice,ce=re.flat?function(e){return re.flat.call(e)}:function(e){return re.concat.apply([],e)},ue=re.push,de=re.indexOf,pe={},he=pe.toString,fe=pe.hasOwnProperty,me=fe.toString,ge=me.call(Object),ve={},ye=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},be=function(e){return null!=e&&e===e.window}
vendor: 5,160 bytes, line 3
3,_e=e.document,we={type:!0,src:!0,nonce:!0,noModule:!0},xe="3.7.1",Ae=/HTML$/i,Ee=function(e,t){return new Ee.fn.init(e,t)};Ee.fn=Ee.prototype={jquery:xe,constructor:Ee,length:0,toArray:function(){return le.call(this)},get:function(e){return null==e?le.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Ee.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Ee.each(this,e)},map:function(e){return this.pushStack(Ee.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(le.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Ee.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Ee.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ue,sort:re.sort,splice:re.splice},Ee.extend=Ee.fn.extend=function(){var e,t,n,i,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||ye(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&r!==i&&(c&&i&&(Ee.isPlainObject(i)||(o=Array.isArray(i)))?(n=r[t],s=o&&!Array.isArray(n)?[]:o||Ee.isPlainObject(n)?n:{},o=!1,r[t]=Ee.extend(c,s,i)):void 0!==i&&(r[t]=i));return r},Ee.extend({expando:"jQuery"+(xe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==he.call(e))&&(!(t=ae(e))||"function"==typeof(n=fe.call(t,"constructor")&&t.constructor)&&me.call(n)===ge)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){n(e,{nonce:t&&t.nonce},i)},each:function(e,t){var n,i=0;if(o(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,o=e.nodeType;if(!o)for(;t=e[i++];)n+=Ee.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(o(Object(e))?Ee.merge(n,"string"==typeof e?[e]:e):ue.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:de.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Ae.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,s=e.length,r=!n;o<s;o++)!t(e[o],o)!==r&&i.push(e[o]);return i},map:function(e,t,n){var i,s,r=0,a=[];if(o(e))for(i=e.length;r<i;r++)null!=(s=t(e[r],r,n))&&a.push(s);else for(r in e)null!=(s=t(e[r],r,n))&&a.push(s);return ce(a)},guid:1,support:ve}),"function"==typeof Symbol&&(Ee.fn[Symbol.iterator]=re[Symbol.iterator]),Ee.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){pe["[object "+t+"]"]=t.toLowerCase()});var Se=re.pop,Ce=re.sort,Le=re.splice,Oe="[\\x20\\t\\r\\n\\f]",Te=new RegExp("^"+Oe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Oe+"+$","g");Ee.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var ke=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;Ee.escapeSelector=function(e){return(e+"").replace(ke,r)};var $e=_e,Ie=ue;!function(){function t(){try{return k.activeElement}catch(e){}}function n(e,t,i,o){var s,r,a,l,c,u,h,g=t&&t.ownerDocument,v=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return i;if(!o&&(p(t),t=t||k,I)){if(11!==v&&(c=ie.exec(e)))if(s=c[1]){if(9===v){if(!(a=t.getElementById(s)))return i;if(a.id===s)return P.call(i,a),i}else if(g&&(a=g.getElementById(s))&&n.contains(t,a)&&a.id===s)return P.call(i,a),i}else{if(c[2])return P.apply(i,t.getElementsByTagName(e)),i;if((s=c[3])&&t.getElementsByClassName)return P.apply(i,t.getElementsByClassName(s)),i}if(!(H[e+" "]||D&&D.test(e))){if(h=e,g=t,1===v&&(Q.test(e)||G.test(e))){for((g=oe.test(e)&&d(t.parentNode)||t)==t&&ve.scope||((l=t.getAttribute("id"))?l=Ee.escapeSelector(l):t.setAttribute("id",l=q)),r=(u=f(e)).length;r--;)u[r]=(l?"#"+l:":scope")+" "+m(u[r]);h=u.join(",")}try{return P.apply(i,g.querySelectorAll(h)),i}catch(t){H(e,!0)}finally{l===q&&t.removeAttribute("id")}}}return E(e.replace(Te,"$1"),t,i,o)}function i(){function e(n,i){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function o(e){return e[q]=!0,e}function r(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e){return function(t){return s(t,"input")&&t.type===e}}function l(e){return function(t){return(s(t,"input")||s(t,"button"))&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ue(t)===e
vendor: 4,178 bytes, line 3
3:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return o(function(t){return t=+t,o(function(n,i){for(var o,s=e([],n.length,t),r=s.length;r--;)n[o=s[r]]&&(n[o]=!(i[o]=n[o]))})})}function d(e){return e&&void 0!==e.getElementsByTagName&&e}function p(e){var t,i=e?e.ownerDocument||e:$e;return i!=k&&9===i.nodeType&&i.documentElement?($=(k=i).documentElement,I=!Ee.isXMLDoc(k),j=$.matches||$.webkitMatchesSelector||$.msMatchesSelector,$.msMatchesSelector&&$e!=k&&(t=k.defaultView)&&t.top!==t&&t.addEventListener("unload",ce),ve.getById=r(function(e){return $.appendChild(e).id=Ee.expando,!k.getElementsByName||!k.getElementsByName(Ee.expando).length}),ve.disconnectedMatch=r(function(e){return j.call(e,"*")}),ve.scope=r(function(){return k.querySelectorAll(":scope")}),ve.cssHas=r(function(){try{return k.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),ve.getById?(C.filter.ID=function(e){var t=e.replace(se,ae);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&I){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(se,ae);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&I){var n,i,o,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(o=t.getElementsByName(e),i=0;s=o[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),C.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},C.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&I)return t.getElementsByClassName(e)},D=[],r(function(e){var t;$.appendChild(e).innerHTML="<a id='"+q+"' href='' disabled='disabled'></a><select id='"+q+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||D.push("\\["+Oe+"*(?:value|"+W+")"),e.querySelectorAll("[id~="+q+"-]").length||D.push("~="),e.querySelectorAll("a#"+q+"+*").length||D.push(".#.+[+~]"),e.querySelectorAll(":checked").length||D.push(":checked"),(t=k.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),$.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&D.push(":enabled",":disabled"),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||D.push("\\["+Oe+"*name"+Oe+"*="+Oe+"*(?:''|\"\")")}),ve.cssHas||D.push(":has"),D=D.length&&new RegExp(D.join("|")),z=function(e,t){if(e===t)return T=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ve.sortDetached&&t.compareDocumentPosition(e)===i?e===k||e.ownerDocument==$e&&n.contains($e,e)?-1:t===k||t.ownerDocument==$e&&n.contains($e,t)?1:O?de.call(O,e)-de.call(O,t):0:4&i?-1:1)},k):k}function h(){}function f(e,t){var i,o,s,r,a,l,c,u=R[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=C.preFilter;a;){for(r in i&&!(o=K.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),i=!1,(o=G.exec(a))&&(i=o.shift(),s.push({value:i,type:o[0].replace(Te," ")}),a=a.slice(i.length)),C.filter)!(o=ee[r].exec(a))||c[r]&&!(o=c[r](o))||(i=o.shift(),s.push({value:i,type:r,matches:o}),a=a.slice(i.length));if(!i)break}return t?a.length:a?n.error(e):R(e,l).slice(0)}function m(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function g(e,t,n){var i=t.dir,o=t.next,r=o||i,a=n&&"parentNode"===r,l=F++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,c){var u,d,p=[N,l];if(c){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(d=t[q]||(t[q]={}),o&&s(t,o))t=t[i]||t;else{if((u=d[r])&&u[0]===N&&u[1]===l)return p[2]=u[2];if(d[r]=p,p[2]=e(t,n,c))return!0}return!1}}function v(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function y(e,t,i){for(var o=0,s=t.length;o<s;o++)n(e,t[o],i);return i}function b(e,t,n,i,o){for(var s,r=[],a=0,l=e.length,c=null!=t;a<l;
vendor: 4,297 bytes, line 3
3a++)(s=e[a])&&(n&&!n(s,i,o)||(r.push(s),c&&t.push(a)));return r}function _(e,t,n,i,s,r){return i&&!i[q]&&(i=_(i)),s&&!s[q]&&(s=_(s,r)),o(function(o,r,a,l){var c,u,d,p,h=[],f=[],m=r.length,g=o||y(t||"*",a.nodeType?[a]:a,[]),v=!e||!o&&t?g:b(g,h,e,a,l);if(n?n(v,p=s||(o?e:m||i)?[]:r,a,l):p=v,i)for(c=b(p,f),i(c,[],a,l),u=c.length;u--;)(d=c[u])&&(p[f[u]]=!(v[f[u]]=d));if(o){if(s||e){if(s){for(c=[],u=p.length;u--;)(d=p[u])&&c.push(v[u]=d);s(null,p=[],c,l)}for(u=p.length;u--;)(d=p[u])&&(c=s?de.call(o,d):h[u])>-1&&(o[c]=!(r[c]=d))}}else p=b(p===r?p.splice(m,p.length):p),s?s(null,r,p,l):P.apply(r,p)})}function w(e){for(var t,n,i,o=e.length,s=C.relative[e[0].type],r=s||C.relative[" "],a=s?1:0,l=g(function(e){return e===t},r,!0),c=g(function(e){return de.call(t,e)>-1},r,!0),u=[function(e,n,i){var o=!s&&(i||n!=L)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,o}];a<o;a++)if(n=C.relative[e[a].type])u=[g(v(u),n)];else{if((n=C.filter[e[a].type].apply(null,e[a].matches))[q]){for(i=++a;i<o&&!C.relative[e[i].type];i++);return _(a>1&&v(u),a>1&&m(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(Te,"$1"),n,a<i&&w(e.slice(a,i)),i<o&&w(e=e.slice(i)),i<o&&m(e))}u.push(n)}return v(u)}function x(e,t){var n=t.length>0,i=e.length>0,s=function(o,s,r,a,l){var c,u,d,h=0,f="0",m=o&&[],g=[],v=L,y=o||i&&C.find.TAG("*",l),_=N+=null==v?1:Math.random()||.1,w=y.length;for(l&&(L=s==k||s||l);f!==w&&null!=(c=y[f]);f++){if(i&&c){for(u=0,s||c.ownerDocument==k||(p(c),r=!I);d=e[u++];)if(d(c,s||k,r)){P.call(a,c);break}l&&(N=_)}n&&((c=!d&&c)&&h--,o&&m.push(c))}if(h+=f,n&&f!==h){for(u=0;d=t[u++];)d(m,g,s,r);if(o){if(h>0)for(;f--;)m[f]||g[f]||(g[f]=Se.call(a));g=b(g)}P.apply(a,g),l&&!o&&g.length>0&&h+t.length>1&&Ee.uniqueSort(a)}return l&&(N=_,L=v),m};return n?o(s):s}function A(e,t){var n,i=[],o=[],s=B[e+" "];if(!s){for(t||(t=f(e)),n=t.length;n--;)(s=w(t[n]))[q]?i.push(s):o.push(s);(s=B(e,x(o,i))).selector=e}return s}function E(e,t,n,i){var o,s,r,a,l,c="function"==typeof e&&e,u=!i&&f(e=c.selector||e);if(n=n||[],1===u.length){if((s=u[0]=u[0].slice(0)).length>2&&"ID"===(r=s[0]).type&&9===t.nodeType&&I&&C.relative[s[1].type]){if(!(t=(C.find.ID(r.matches[0].replace(se,ae),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=ee.needsContext.test(e)?0:s.length;o--&&(r=s[o],!C.relative[a=r.type]);)if((l=C.find[a])&&(i=l(r.matches[0].replace(se,ae),oe.test(s[0].type)&&d(t.parentNode)||t))){if(s.splice(o,1),!(e=i.length&&m(s)))return P.apply(n,i),n;break}}return(c||A(e,u))(i,t,!I,n,!t||oe.test(e)&&d(t.parentNode)||t),n}var S,C,L,O,T,k,$,I,D,j,P=Ie,q=Ee.expando,N=0,F=0,M=i(),R=i(),B=i(),H=i(),z=function(e,t){return e===t&&(T=!0),0},W="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",V="(?:\\\\[\\da-fA-F]{1,6}"+Oe+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+Oe+"*("+V+")(?:"+Oe+"*([*^$|!~]?=)"+Oe+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+V+"))|)"+Oe+"*\\]",Y=":("+V+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",X=new RegExp(Oe+"+","g"),K=new RegExp("^"+Oe+"*,"+Oe+"*"),G=new RegExp("^"+Oe+"*([>+~]|"+Oe+")"+Oe+"*"),Q=new RegExp(Oe+"|>"),J=new RegExp(Y),Z=new RegExp("^"+V+"$"),ee={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Oe+"*(even|odd|(([+-]|)(\\d*)n|)"+Oe+"*(?:([+-]|)"+Oe+"*(\\d+)|))"+Oe+"*\\)|)","i"),bool:new RegExp("^(?:"+W+")$","i"),needsContext:new RegExp("^"+Oe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Oe+"*((?:-\\d)?\\d*)"+Oe+"*\\)|)(?=[^-]|$)","i")},te=/^(?:input|select|textarea|button)$/i,ne=/^h\d$/i,ie=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,oe=/[+~]/,se=new RegExp("\\\\[\\da-fA-F]{1,6}"+Oe+"?|\\\\([^\\r\\n\\f])","g"),ae=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ce=function(){p()},ue=g(function(e){return!0===e.disabled&&s(e,"fieldset")},{dir:"parentNode",next:"legend"});try{P.apply(re=le.call($e.childNodes),$e.childNodes),re[$e.childNodes.length].nodeType}catch(e){P={apply:function(e,t){Ie.apply(e,le.call(t))}
vendor: 4,814 bytes, line 3
3,call:function(e){Ie.apply(e,le.call(arguments,1))}}}for(S in n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if(p(e),I&&!H[t+" "]&&(!D||!D.test(t)))try{var i=j.call(e,t);if(i||ve.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){H(t,!0)}return n(t,k,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!=k&&p(e),Ee.contains(e,t)},n.attr=function(e,t){(e.ownerDocument||e)!=k&&p(e);var n=C.attrHandle[t.toLowerCase()],i=n&&fe.call(C.attrHandle,t.toLowerCase())?n(e,t,!I):void 0;return void 0!==i?i:e.getAttribute(t)},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Ee.uniqueSort=function(e){var t,n=[],i=0,o=0;if(T=!ve.sortStable,O=!ve.sortStable&&le.call(e,0),Ce.call(e,z),T){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)Le.call(e,n[i],1)}return O=null,e},Ee.fn.uniqueSort=function(){return this.pushStack(Ee.uniqueSort(le.apply(this)))},C=Ee.expr={cacheLength:50,createPseudo:o,match:ee,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(se,ae),e[3]=(e[3]||e[4]||e[5]||"").replace(se,ae),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ee.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&J.test(n)&&(t=f(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(se,ae).toLowerCase();return"*"===e?function(){return!0}:function(e){return s(e,t)}},CLASS:function(e){var t=M[e+" "];return t||(t=new RegExp("(^|"+Oe+")"+e+"("+Oe+"|$)"))&&M(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(o){var s=n.attr(o,e);return null==s?"!="===t:!t||(s+="","="===t?s===i:"!="===t?s!==i:"^="===t?i&&0===s.indexOf(i):"*="===t?i&&s.indexOf(i)>-1:"$="===t?i&&s.slice(-i.length)===i:"~="===t?(" "+s.replace(X," ")+" ").indexOf(i)>-1:"|="===t&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var u,d,p,h,f,m=r!==a?"nextSibling":"previousSibling",g=t.parentNode,v=l&&t.nodeName.toLowerCase(),y=!c&&!l,b=!1;if(g){if(r){for(;m;){for(p=t;p=p[m];)if(l?s(p,v):1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(b=(h=(u=(d=g[q]||(g[q]={}))[e]||[])[0]===N&&u[1])&&u[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){d[e]=[N,h,b];break}}else if(y&&(b=h=(u=(d=t[q]||(t[q]={}))[e]||[])[0]===N&&u[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&(!(l?s(p,v):1===p.nodeType)||!++b||(y&&((d=p[q]||(p[q]={}))[e]=[N,b]),p!==t)););return(b-=o)===i||b%i===0&&b/i>=0}}},PSEUDO:function(e,t){var i,s=C.pseudos[e]||C.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return s[q]?s(t):s.length>1?(i=[e,e,"",t],C.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,n){for(var i,o=s(e,t),r=o.length;r--;)e[i=de.call(e,o[r])]=!(n[i]=o[r])}):function(e){return s(e,0,i)}):s}},pseudos:{not:o(function(e){var t=[],n=[],i=A(e.replace(Te,"$1"));return i[q]?o(function(e,t,n,o){for(var s,r=i(e,null,o,[]),a=e.length;a--;)(s=r[a])&&(e[a]=!(t[a]=s))}):function(e,o,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}}),has:o(function(e){return function(t){return n(e,t).length>0}}),contains:o(function(e){return e=e.replace(se,ae),function(t){return(t.textContent||Ee.text(t)).indexOf(e)>-1}}),lang:o(function(e){return Z.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(se,ae).toLowerCase(),function(t){var n;do{if(n=I?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===$},focus:function(e){return e===t()&&k.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){return s(e,"input")&&!!e.checked||s(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ne.test(e.nodeName)}
vendor: 6,120 bytes, lines 3-4
3,input:function(e){return te.test(e.nodeName)},button:function(e){return s(e,"input")&&"button"===e.type||s(e,"button")},text:function(e){var t;return s(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:u(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},C.pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[S]=a(S);for(S in{submit:!0,reset:!0})C.pseudos[S]=l(S);h.prototype=C.filters=C.pseudos,C.setFilters=new h,ve.sortStable=q.split("").sort(z).join("")===q,p(),ve.sortDetached=r(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),Ee.find=n,Ee.expr[":"]=Ee.expr.pseudos,Ee.unique=Ee.uniqueSort,n.compile=A,n.select=E,n.setDocument=p,n.tokenize=f,n.escape=Ee.escapeSelector,n.getText=Ee.text,n.isXML=Ee.isXMLDoc,n.selectors=Ee.expr,n.support=Ee.support,n.uniqueSort=Ee.uniqueSort}();var De=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&Ee(e).is(n))break;i.push(e)}return i},je=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Pe=Ee.expr.match.needsContext,qe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Ee.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Ee.find.matchesSelector(i,e)?[i]:[]:Ee.find.matches(e,Ee.grep(t,function(e){return 1===e.nodeType}))},Ee.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(Ee(e).filter(function(){for(t=0;t<i;t++)if(Ee.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)Ee.find(e,o[t],n);return i>1?Ee.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&Pe.test(e)?Ee(e):e||[],!1).length}});var Ne,Fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Ee.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||Ne,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Fe.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof Ee?t[0]:t,Ee.merge(this,Ee.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:_e,!0)),qe.test(i[1])&&Ee.isPlainObject(t))for(i in t)ye(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=_e.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ye(e)?void 0!==n.ready?n.ready(e):e(Ee):Ee.makeArray(e,this)}).prototype=Ee.fn,Ne=Ee(_e);var Me=/^(?:parents|prev(?:Until|All))/,Re={children:!0,contents:!0,next:!0,prev:!0};Ee.fn.extend({has:function(e){var t=Ee(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(Ee.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,s=[],r="string"!=typeof e&&Ee(e);if(!Pe.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&Ee.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?Ee.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?de.call(Ee(e),this[0]):de.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Ee.uniqueSort(Ee.merge(this.get(),Ee(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Ee.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return De(e,"parentNode")},parentsUntil:function(e,t,n){return De(e,"parentNode",n)},next:function(e){return l(e,"nextSibling")},prev:function(e){return l(e,"previousSibling")},nextAll:function(e){return De(e,"nextSibling")},prevAll:function(e){return De(e,"previousSibling")},nextUntil:function(e,t,n){return De(e,"nextSibling",n)},prevUntil:function(e,t,n){return De(e,"previousSibling",n)},siblings:function(e){return je((e.parentNode||{}).firstChild,e)},children:function(e){return je(e.firstChild)},contents:function(e){return null!=e.contentDocument&&ae(e.contentDocument)?e.contentDocument:(s(e,"template")&&(e=e.content||e),Ee.merge([],e.childNodes))}},function(e,t){Ee.fn[e]=function(n,i){var o=Ee.map(this,t,n) 4;return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=Ee.filter(i,o)),this.length>1&&(Re[e]||Ee.uniqueSort(o),Me.test(e)&&o.reverse()),this.pushStack(o)}});var Be=/[^\x20\t\r\n\f]+/g;Ee.Callbacks=function(e){e="string"==typeof e?c(e):Ee.extend({},e);var t,n,o,s,r=[],a=[],l=-1,u=function(){for(s=s||e.once,o=t=!0;a.length;l=-1)for(n=a.shift();++l<r.length;)!1===r[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=r.length,n=!1);e.memory||(n=!1),t=!1,s&&(r=n?[]:"")},d={add:function(){return r&&(n&&!t&&(l=r.length-1,a.push(n)),function t(n){Ee.each(n,function(n,o){ye(o)?e.unique&&d.has(o)||r.push(o):o&&o.length&&"string"!==i(o)&&t(o)})}(arguments),n&&!t&&u()),this},remove:function(){return Ee.each(arguments,function(e,t){for(var n;(n=Ee.inArray(t,r,n))>-1;)r.splice(n,1),n<=l&&l--}),this},has:function(e){return e?Ee.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return s=a=[],n||t||(r=n=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},Ee.extend({Deferred:function(t){var n=[["notify","progress",Ee.Callbacks("memory"),Ee.Callbacks("memory"),2],["resolve","done",Ee.Callbacks("once memory"),Ee.Callbacks("once memory"),0,"resolved"],["reject","fail",Ee.Callbacks("once memory"),Ee.Callbacks("once memory"),1,"rejected"]],i="pe
4nding",o={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return Ee.Deferred(function(t){Ee.each(n,function(n,i){var o=ye(e[i[4]])&&e[i[4]];s[i[1]](function(){var e=o&&o.apply(this,arguments);e&&ye(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,i,o){function s(t,n,i,o){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<r)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,ye(c)?o?c.call(e,s(r,n,u,o),s(r,n,d,o)):(r++,c.call(e,s(r,n,u,o),s(r,n,d,o),s(r,n,u,n.notifyWith))):(i!==u&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},p=o?c:function(){try{c()}catch(e){Ee.Deferred.exceptionHook&&Ee.Deferred.exceptionHook(e,p.error),t+1>=r&&(i!==d&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?p():(Ee.Deferred.getErrorHook?p.error=Ee.Deferred.getErrorHook():Ee.Deferred.getStackHook&&(p.error=Ee.Deferred.getStackHook()),e.setTimeout(p))}}var r=0;return Ee.Deferred(function(e){n[0][3].add(s(0,e,ye(o)?o:u,e.notifyWith)),n[1][3].add(s(0,e,ye(t)?t:u)),n[2][3].add(s(0,e,ye(i)?i:d))}).promise()},promise:function(e){return null!=e?Ee.extend(e,o):o}},s={};return Ee.each(n,function(e,t){var r=t[2],a=t[5];o[t[1]]=r.add,a&&r.add(function(){i=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),r.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=r.fireWith}),o.promise(s),t&&t.call(s,s),s},when:function(e){var t=arguments.length,n=t,i=Array(n),o=le.call(arguments),s=Ee.Deferred(),r=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?le.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(p(e,s.done(r(n)).resolve,s.reject,!t),"pending"===s.state()||ye(o[n]&&o[n].then)))return s.then();for(;n--;)p(o[n],r(n),s.reject);return s.promise()}});var He=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Ee.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&He.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Ee.readyException=function(t){e.setTimeout(function(){throw t})};var ze=Ee.Deferred();Ee.fn.ready=function(e){return ze.then(e).catch(function(e){Ee.readyException(e)}),this},Ee.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Ee.readyWait:Ee.isReady)||(Ee.isReady=!0,!0!==e&&--Ee.readyWait>0||ze.resolveWith(_e,[Ee]))}}),Ee.ready.then=ze.then,"complete"===_e.readyState||"loading"!==_e.readyState&&!_e.documentElement.doScroll?e.setTimeout(Ee.ready):(_e.addEventListener("DOMContentLoaded",h),e.addEventListener("load",h));var We=function(e,t,n,o,s,r,a){var l=0,c=e.length,u=null==n;if("object"===i(n))for(l in s=!0,n)We(e,t,l,n[l],!0,r,a);else if(void 0!==o&&(s=!0,ye(o)||(a=!0),u&&(a?(t.call(e,o),t=null):(u=t,t=function(e,t,n){return u.call(Ee(e),n)})),t))for(;l<c;l++)t(e[l],n,a?o:o.call(e[l],l,t(e[l],n)));return s?e:u?t.call(e):c?t(e[0],n):r},Ve=/^-ms-/,Ue=/-([a-z])/g,Ye=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};g.uid=1,g.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Ye(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[m(t)]=n;else for(i in t)o[m(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][m(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(m):(t=m(t))in i?[t]:t.match(Be)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||Ee.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!Ee.isEmptyObject(t)}};var Xe=new g,Ke=new g,Ge=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Qe=/[A-Z]/g;Ee.extend({hasData:function(e){return Ke.hasData(e)||Xe.hasData(e)},data:function(e,t,n){return Ke.access(e,t,n)},removeData:function(e,t){Ke.remove(e,t)},_data:function(e,t,n){return Xe.access(e,t,n)},_removeData:function(e,t){Xe.remove(e,t)}}),Ee.fn.extend({data:function(e,t){var n,i,o,s=this[0],r=s&&s.attributes;if(void 0===e){if(this.length&&(o=Ke.get(s),1===s.nodeType&&!Xe.get(s,"hasDataAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&(i=m(i.slice(5)),y(s,i,o[i]));Xe.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Ke.set(this,e)}):We(this,function(t){var n;if(s&&void 0===t)return void 0!==(n=Ke.get(s,e))||void 0!==(n=y(s,e))?n:void 0;this.each(function(){Ke.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ke.remove(this,e)})}}),Ee.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Xe.get(e,t),n&&(!i||Array.isArray(n)?i=Xe.access(e,t,Ee.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Ee.queue(e,t),i=n.length,o=n.shift(),s=Ee._queueHooks(e,t),r=function(){Ee.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete s.stop,o.call(e,r,s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Xe.get(e,n)||Xe.access(e,n,{empty:Ee.Callbacks("once memory").add(function(){Xe.remove(e,[t+"queue",n])})})}}),Ee.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Ee.queue(this[0],e):void 0===t?this:this.each(function(){var n=Ee.queue(this,e,t);Ee._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Ee.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Ee.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=Ee.Deferred(),s=this,r=this.length,a=function(){--i||o.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(n=Xe.get(s[r],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var Je=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ze=new RegExp("^(?:([+-])=|)("+Je+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],tt=_e.documentElement,nt=function(e){return Ee.contains(e.ownerDocument,e)},it={composed:!0};tt.getRootNode&&(nt=function(e){return Ee.contains(e.ownerDocument,e)||e.getRootNode(it)===e.ownerDocument});var ot=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&nt(e)&&"none"===Ee.css(e,"display")},st={};Ee.fn.extend({show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ot(this)?Ee(this).show():Ee(this).hide()})}});var rt,at,lt=/^(?:checkbox|radio)$/i,ct=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ut=/^$|^module$|\/(?:java|ecma)script/i;rt=_e.createDocumentFragment().appendChild(_e.createElement("div")),(at=_e.createElement("input")).setAttribute("type","radio"),at.setAttribute("checked","checked"),at.setAttribute("name","t"),rt.appendChild(at),ve.checkClone
vendor: 6,043 bytes, line 4
4=rt.cloneNode(!0).cloneNode(!0).lastChild.checked,rt.innerHTML="<textarea>x</textarea>",ve.noCloneChecked=!!rt.cloneNode(!0).lastChild.defaultValue,rt.innerHTML="<option></option>",ve.option=!!rt.lastChild;var dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,ve.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var pt=/<|&#?\w+;/,ht=/^([^.]*)(?:\.(.+)|)/;Ee.event={global:{},add:function(e,t,n,i,o){var s,r,a,l,c,u,d,p,h,f,m,g=Xe.get(e);if(Ye(e))for(n.handler&&(n=(s=n).handler,o=s.selector),o&&Ee.find.matchesSelector(tt,o),n.guid||(n.guid=Ee.guid++),(l=g.events)||(l=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(t){return void 0!==Ee&&Ee.event.triggered!==t.type?Ee.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Be)||[""]).length;c--;)h=m=(a=ht.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h&&(d=Ee.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=Ee.event.special[h]||{},u=Ee.extend({type:h,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&Ee.expr.match.needsContext.test(o),namespace:f.join(".")},s),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,r)||e.addEventListener&&e.addEventListener(h,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),Ee.event.global[h]=!0)},remove:function(e,t,n,i,o){var s,r,a,l,c,u,d,p,h,f,m,g=Xe.hasData(e)&&Xe.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Be)||[""]).length;c--;)if(h=m=(a=ht.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h){for(d=Ee.event.special[h]||{},p=l[h=(i?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=p.length;s--;)u=p[s],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(s,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));r&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||Ee.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)Ee.event.remove(e,h+t[c],n,i,!0);Ee.isEmptyObject(l)&&Xe.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,r,a=new Array(arguments.length),l=Ee.event.fix(e),c=(Xe.get(this,"events")||Object.create(null))[l.type]||[],u=Ee.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(r=Ee.event.handlers.call(this,l,c),t=0;(o=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(s=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(i=((Ee.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,o,s,r,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],r={},n=0;n<l;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?Ee(o,this).index(c)>-1:Ee.find(o,this,null,[c]).length),r[o]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(Ee.Event.prototype,e,{enumerable:!0,configurable:!0,get:ye(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Ee.expando]?e:new Ee.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return lt.test(t.type)&&t.click&&s(t,"input")&&O(t,"click",!0),!1},trigger:function(e){var t=this||e;return lt.test(t.type)&&t.click&&s(t,"input")&&O(t,"click"),!0},_default:function(e){var t=e.target;return lt.test(t.type)&&t.click&&s(t,"input")&&Xe.get(t,"click")||s(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Ee.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Ee.Event=function(e,t){if(!(this instanceof Ee.Event))return new Ee.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?S:C,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Ee.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[Ee.expando]=!0},Ee.Event.prototype={constructor:Ee.Event,isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=S,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=S,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=S,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Ee.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Ee.event.addProp),Ee.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(_e.documentMode){var n=Xe.get(this,"handle"),i=Ee.event.fix(e);
vendor: 1,040 bytes, line 4
4i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else Ee.event.simulate(t,e.target,Ee.event.fix(e))}Ee.event.special[e]={setup:function(){var i;if(O(this,e,!0),!_e.documentMode)return!1;(i=Xe.get(this,t))||this.addEventListener(t,n),Xe.set(this,t,(i||0)+1)},trigger:function(){return O(this,e),!0},teardown:function(){var e;if(!_e.documentMode)return!1;(e=Xe.get(this,t)-1)?Xe.set(this,t,e):(this.removeEventListener(t,n),Xe.remove(this,t))},_default:function(t){return Xe.get(t.target,e)},delegateType:t},Ee.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=_e.documentMode?this:i,s=Xe.get(o,t);s||(_e.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),Xe.set(o,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=_e.documentMode?this:i,s=Xe.get(o,t)-1;s?Xe.set(o,t,s):(_e.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),Xe.remove(o,t))}}}),Ee.each({mouseenter:"mouseover",mouseleave:"mou
4seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Ee.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,o=e.relatedTarget,s=e.handleObj;return o&&(o===i||Ee.contains(i,o))||(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),Ee.fn.extend({on:function(e,t,n,i){return L(this,e,t,n,i)},one:function(e,t,n,i){return L(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,Ee(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=C),this.each(function(){Ee.event.remove(this,e,n,t)})}});var ft=/<script|<style|<link/i,mt=/checked\s*(?:[^=]|=\s*.checked.)/i,gt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Ee.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,r,a=e.cloneNode(!0),l=nt(e);if(!(ve.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Ee.isXMLDoc(e)))for(r=x(a),i=0,o=(s=x(e)).length;i<o;i++)D(s[i],r[i]);if(t)if(n)for(s=s||x(e),r=r||x(a),i=0,o=s.length;i<o;i++)I(s[i],r[i]);else I(e,a);return(r=x(a,"script")).length>0&&A(r,!l&&x(e,"script")),a},cleanData:function(e){for(var t,n,i,o=Ee.event.special,s=0;void 0!==(n=e[s]);s++)if(Ye(n)){if(t=n[Xe.expando]){if(t.events)for(i in t.events)
vendor: 3,579 bytes, line 4
4o[i]?Ee.event.remove(n,i):Ee.removeEvent(n,i,t.handle);n[Xe.expando]=void 0}n[Ke.expando]&&(n[Ke.expando]=void 0)}}}),Ee.fn.extend({detach:function(e){return P(this,e,!0)},remove:function(e){return P(this,e)},text:function(e){return We(this,function(e){return void 0===e?Ee.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return j(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||T(this,e).appendChild(e)})},prepend:function(){return j(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return j(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return j(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Ee.cleanData(x(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Ee.clone(this,e,t)})},html:function(e){return We(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ft.test(e)&&!dt[(ct.exec(e)||["",""])[1].toLowerCase()]){e=Ee.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(Ee.cleanData(x(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return j(this,arguments,function(t){var n=this.parentNode;Ee.inArray(this,e)<0&&(Ee.cleanData(x(this)),n&&n.replaceChild(t,this))},e)}}),Ee.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Ee.fn[e]=function(e){for(var n,i=[],o=Ee(e),s=o.length-1,r=0;r<=s;r++)n=r===s?this:this.clone(!0),Ee(o[r])[t](n),ue.apply(i,n.get());return this.pushStack(i)}});var vt=new RegExp("^("+Je+")(?!px)[a-z%]+$","i"),yt=/^--/,bt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},_t=function(e,t,n){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.call(e),t)e.style[o]=s[o];return i},wt=new RegExp(et.join("|"),"i");!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",tt.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);i="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",r=36===n(t.right),o=36===n(t.width),u.style.position="absolute",s=12===n(u.offsetWidth/3),tt.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var i,o,s,r,a,l,c=_e.createElement("div"),u=_e.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",ve.clearCloneStyle="content-box"===u.style.backgroundClip,Ee.extend(ve,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,n,i,o;return null==a&&(t=_e.createElement("table"),n=_e.createElement("tr"),i=_e.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;
4border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",tt.appendChild(t).appendChild(n).appendChild(i),o=e.getComputedStyle(n),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,tt.removeChild(t)),a}}))}();var xt=["Webkit","Moz","ms"],At=_e.createElement("div").style,Et={},St=/^(none|table(?!-c[ea]).+)/,Ct={position:"absolute",visibility:"hidden",display:"block"},Lt={letterSpacing:"0",fontWeight:"400"};Ee.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=q(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,r,a=m(t),l=yt.test(t),c=e.style;if(l||(t=M(a)),r=Ee.cssHooks[t]||Ee.cssHooks[a],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:c[t];"string"===(s=typeof n)&&(o=Ze.exec(n))&&o[1]&&(n=b(e,t,o),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=o&&o[3]||(Ee.cssNumber[a]?"":"px")),ve.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(n=r.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,s,r,a=m(t);return yt.test(t)||(t=M(a)),(r=Ee.cssHooks[t]||Ee.cssHooks[a])&&"get"in r&&(o=r.get(e,!0,n)),void 0===o&&(o=q(e,t,i)),"normal"===o&&t in Lt&&(o=Lt[t]),""===n||n?(s=parseFloat(o),!0===n||isFinite(s)?s||0:o):o}}),Ee.each(["height","width"],function(e,t){Ee.cssHooks[t]={get:function(e,n,i){if(n)return!St.test(Ee.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?H(e,t,i):_t(e,Ct,function(){return H(e,t,i)})},set:function(e,n,i){var o,s=bt(e),r=!ve.scrollboxSize()&&"absolute"===s.position,a=(r||i)&&"border-box"===Ee.css(e,"boxSizing",!1,s),l=i?B(e,t,i,a,s):0;return a&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-B(e,t,"border",!1,s)-.5)),l&&(o=Ze.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=Ee.css(e,t)),R(e,n,l)}}}),Ee.cssHooks.marginLeft=N(ve.reliableMarginLeft,function(e,t){if(t)return(parseFloat(q(e,"marginLeft"))||e.getBoundingClientRect().left-_t(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),Ee.each({margin:"",padding:"",border:"Width"},function(e,t){Ee.cssHooks[e+t]={expand:function(n){for(var i=0,o={},s="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+et[i]+t]=s[i]||s[i-2]||s[0];return o}},"margin"!==e&&(Ee.cssHooks[e+t].set=R)}),Ee.fn.extend({css:function(e,t){return We(this,function(e,t,n){var i,o,s={},r=0;if(Array.isArray(t)){for(i=bt(e),o=t.length;r<o;r++)s[t[r]]=Ee.css(e,t[r],!1,i);return s}return void 0!==n?Ee.style(e,t,n):Ee.css(e,t)},e,t,arguments.length>1)}}),Ee.Tween=z,z.prototype={constructor:z,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||Ee.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(Ee.cssNumber[n]?"":"px")},cur:function(){var e=z.propHooks[this.prop];return e&&e.get?e.get(this):z.propHooks._default.get(this)},run:function(e){var t,n=z.propHooks[this.prop];return this.options.duration?this.pos=t=Ee.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Ee.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){Ee.fx.step[e.prop]?Ee.fx.step[e.prop](e):1!==e.elem.nodeType||!Ee.cssHooks[e.prop]&&null==e.elem.style[M(e.prop)]?e.elem[e.prop]=e.now:Ee.style(e.elem,e.prop,e.now+e.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Ee.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Ee.fx=z.prototype.init,Ee.fx.step={};var Ot,Tt,kt=/^(?:toggle|show|hide)$/,$t=/queueHooks$/;Ee.Animation=Ee.extend(G,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return b(n.elem,e,Ze.exec(t),n),n}]},tweener:function(e,t){ye(e)?(t=e,e=["*"]):e=e.match(Be);for(var n,i=0,o=e.length;i<o;i++)n=e[i],G.tweeners[n]=G.tweeners[n]||[],G.tweeners[n].unshift(t)},prefilters:[X],prefilter:function(e,t){t?G.prefilters.unshift(e):G.prefilters.push(e)}}),Ee.speed=function(e,t,n){var i=e&&"object"==typeof e?Ee.extend({},e):{complete:n||!n&&t||ye(e)&&e,duration:e,easing:n&&t||t&&!ye(t)&&t};return Ee.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in Ee.fx.speeds?i.duration=Ee.fx.speeds[i.duration]:i.duration=Ee.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ye(i.old)&&i.old.call(this),i.queue&&Ee.dequeue(this,i.queue)},i},Ee.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ot).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=Ee.isEmptyObject(e),s=Ee.speed(t,n,i),r=function(){var t=G(this,Ee.extend({},e),s);(o||Xe.get(this,"finish"))&&t.stop(!0)};return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",s=Ee.timers,r=Xe.get(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&&$t.test(o)&&i(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=e&&s[o].queue!==e||(s[o].anim.stop(n),t=!1,s.splice(o,1));!t&&n||Ee.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Xe.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],s=Ee.timers,r=i?i.length:0;for(n.finish=!0,Ee.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1)
vendor: 10,155 bytes, lines 4-5
4);for(t=0;t<r;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),Ee.each(["toggle","show","hide"],function(e,t){var n=Ee.fn[t];Ee.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(U(t,!0),e,i,o)}}),Ee.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Ee.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),Ee.timers=[],Ee.fx.tick=function(){var e,t=0,n=Ee.timers;for(Ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||Ee.fx.stop(),Ot=void 0},Ee.fx.timer=function(e){Ee.timers.push(e),Ee.fx.start()},Ee.fx.interval=13,Ee.fx.start=function(){Tt||(Tt=!0,W())},Ee.fx.stop=function(){Tt=null},Ee.fx.speeds={slow:600,fast:200,_default:400},Ee.fn.delay=function(t,n){return t=Ee.fx&&Ee.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}})},function(){var e=_e.createElement("input"),t=_e.createElement("select").appendChild(_e.createElement("option"));e.type="checkbox",ve.checkOn=""!==e.value,ve.optSelected=t.selected,(e=_e.createElement("input")).value="t",e.type="radio",ve.radioValue="t"===e.value}();var It,Dt=Ee.expr.attrHandle;Ee.fn.extend({attr:function(e,t){return We(this,Ee.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Ee.removeAttr(this,e)})}}),Ee.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?Ee.prop(e,t,n):(1===s&&Ee.isXMLDoc(e)||(o=Ee.attrHooks[t.toLowerCase()]||(Ee.expr.match.bool.test(t)?It:void 0)),void 0!==n?null===n?void Ee.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=Ee.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!ve.radioValue&&"radio"===t&&s(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(Be);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),It={set:function(e,t,n){return!1===t?Ee.removeAttr(e,n):e.setAttribute(n,n),n}},Ee.each(Ee.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Dt[t]||Ee.find.attr;Dt[t]=function(e,t,i){var o,s,r=t.toLowerCase();return i||(s=Dt[r],Dt[r]=o,o=null!=n(e,t,i)?r:null,Dt[r]=s),o}});var jt=/^(?:input|select|textarea|button)$/i,Pt=/^(?:a|area)$/i;Ee.fn.extend({prop:function(e,t){return We(this,Ee.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Ee.propFix[e]||e]})}}),Ee.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&Ee.isXMLDoc(e)||(t=Ee.propFix[t]||t,o=Ee.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=Ee.find.attr(e,"tabindex");return t?parseInt(t,10):jt.test(e.nodeName)||Pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ve.optSelected||(Ee.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Ee.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Ee.propFix[this.toLowerCase()]=this}),Ee.fn.extend({addClass:function(e){var t,n,i,o,s,r;return ye(e)?this.each(function(t){Ee(this).addClass(e.call(this,t,J(this)))}):(t=Z(e)).length?this.each(function(){if(i=J(this),n=1===this.nodeType&&" "+Q(i)+" "){for(s=0;s<t.length;s++)o=t[s],n.indexOf(" "+o+" ")<0&&(n+=o+" ");r=Q(n),i!==r&&this.setAttribute("class",r)}}):this},removeClass:function(e){var t,n,i,o,s,r;return ye(e)?this.each(function(t){Ee(this).removeClass(e.call(this,t,J(this)))}):arguments.length?(t=Z(e)).length?this.each(function(){if(i=J(this),n=1===this.nodeType&&" "+Q(i)+" "){for(s=0;s<t.length;s++)for(o=t[s];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r=Q(n),i!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,i,o,s,r=typeof e,a="string"===r||Array.isArray(e);return ye(e)?this.each(function(n){Ee(this).toggleClass(e.call(this,n,J(this),t),t)}):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=Z(e),this.each(function(){if(a)for(s=Ee(this),o=0;o<n.length;o++)i=n[o],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==e&&"boolean"!==r||((i=J(this))&&Xe.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":Xe.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+Q(J(n))+" ").indexOf(t)>-1)return!0;return!1}});var qt=/\r/g;Ee.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=ye(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,Ee(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=Ee.map(o,function(e){return null==e?"":e+""})),(t=Ee.valHooks[this.type]||Ee.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=Ee.valHooks[o.type]||Ee.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(qt,""):null==n?"":n:void 0}}),Ee.extend({valHooks:{option:{get:function(e){var t=Ee.find.attr(e,"value");return null!=t?t:Q(Ee.text(e))}},select:{get:function(e){ 5var t,n,i,o=e.options,r=e.selectedIndex,a="select-one"===e.type,l=a?null:[],c=a?r+1:o.length;for(i=r<0?c:a?r:0;i<c;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!s(n.parentNode,"optgroup"))){if(t=Ee(n).val(),a)return t;l.push(t)}return l},set:function(e,t){for(var n,i,o=e.options,s=Ee.makeArray(t),r=o.length;r--;)((i=o[r]).selected=Ee.inArray(Ee.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),Ee.each(["radio","checkbox"],function(){Ee.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=Ee.inArray(Ee(e).val(),t)>-1}},ve.checkOn||(Ee.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Nt=e.location,Ft={guid:Date.now()},Mt=/\?/;Ee.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||Ee.error("Invalid XML: "+(i?Ee.map(i.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Rt=/^(?:focusinfocus|focusoutblur)$/,Bt=function(e){e.stopPropagation()};Ee.extend(Ee.event,{trigger:function(t,n,i,o){var s,r,a,l,c,u,d,p,h=[i||_e],f=fe.call(t,"type")?t.type:t,m=fe.call(t,"namespace")?t.namespace.split("."):[];if(r=p=a=i=i||_e,3!==i.nodeType&&8!==i.nodeType&&!Rt.test(f+Ee.event.triggered)&&(f.indexOf(".")>-1&&(m=f.split("."),f=m.shift(),m.sort()),c=f.indexOf(":")<0&&"on"+f,(t=t[Ee.expando]?t:new Ee.Event(f,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:Ee.makeArray(n,[t]),d=Ee.event.special[f]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!be(i)){for(l=d.delegateType||f,Rt.test(l+f)||(r=r.parentNode);r;r=r.parentNode)h.push(r),a=r;a===(i.ownerDocument||_e)&&h.push(a.defaultView||a.parentWindow||e)}for(s=0;(r=h[s++])&&!t.isPropagationStopped();)p=r,t.type=s>1?l:d.bindType||f,(u=(Xe.get(r,"events")||Object.create(null))[t.type]&&Xe.get(r,"handle"))&&u.apply(r,n),(u=c&&r[c])&&u.apply&&Ye(r)&&(t.result=u.apply(r,n),!1===t.result&&t.preventDefault());return t.type=f,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),n)||!Ye(i)||c&&ye(i[f])&&!be(i)&&((a=i[c])&&(i[c]=null),Ee.event.triggered=f,t.isPropagationStopped()&&p.addEventListener(f,Bt),i[f](),t.isPropagationStopped()&&p.removeEventListener(f,Bt),Ee.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(e,t,n){var i=Ee.extend(new Ee.Event,n,{type:e,isSimulated:!0});Ee.event.trigger(i,null,t)}}),Ee.fn.extend({trigger:function(e,t){return this.each(function(){Ee.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Ee.event.trigger(e,t,n,!0)}});var Ht=/\[\]$/,zt=/\r?\n/g,Wt=/^(?:submit|button|image|reset|file)$/i,Vt=/^(?:input|select|textarea|keygen)/i;Ee.param=function(e,t){var n,i=[],o=function(e,t){var n=ye(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Ee.isPlainObject(e))Ee.each(e,function(){o(this.name,this.value)});else for(n in e)ee(n,e[n],t,o);return i.join("&")},Ee.fn.extend({serialize:function(){return Ee.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Ee.prop(this,"elements");return e?Ee.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Ee(this).is(":disabled")&&Vt.test(this.nodeName)&&!Wt.test(e)&&(this.checked||!lt.test(e))}).map(function(e,t){var n=Ee(this).val();return null==n?null:Array.isArray(n)?Ee.map(n,function(e){return{name:t.name,value:e.replace(zt,"\r\n")}}):{name:t.name,value:n.replace(zt,"\r\n")}}).get()}});var Ut=/%20/g,Yt=/#.*$/,Xt=/([?&])_=[^&]*/,Kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Qt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Zt={},en={},tn="*/".concat("*"),nn=_e.createElement("a");nn.href=Nt.href,Ee.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nt.href,type:"GET",isLocal:Gt.test(Nt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Ee.parseXML}
vendor: 14,143 bytes, line 5
5,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,Ee.ajaxSettings),t):ie(Ee.ajaxSettings,e)},ajaxPrefilter:te(Zt),ajaxTransport:te(en),ajax:function(t,n){function i(t,n,i,a){var c,p,h,_,w,x=n;u||(u=!0,l&&e.clearTimeout(l),o=void 0,r=a||"",A.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(_=oe(f,A,i)),!c&&Ee.inArray("script",f.dataTypes)>-1&&Ee.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=se(f,_,A,c),c?(f.ifModified&&((w=A.getResponseHeader("Last-Modified"))&&(Ee.lastModified[s]=w),(w=A.getResponseHeader("etag"))&&(Ee.etag[s]=w)),204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=_.state,p=_.data,c=!(h=_.error))):(h=x,!t&&x||(x="error",t<0&&(t=0))),A.status=t,A.statusText=(n||x)+"",c?v.resolveWith(m,[p,x,A]):v.rejectWith(m,[A,x,h]),A.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[A,f,c?p:h]),y.fireWith(m,[A,x]),d&&(g.trigger("ajaxComplete",[A,f]),--Ee.active||Ee.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,s,r,a,l,c,u,d,p,h,f=Ee.ajaxSetup({},n),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?Ee(m):Ee.event,v=Ee.Deferred(),y=Ee.Callbacks("once memory"),b=f.statusCode||{},_={},w={},x="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Kt.exec(r);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)A.always(e[A.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return o&&o.abort(t),i(0,t),this}};if(v.promise(A),f.url=((t||f.url||Nt.href)+"").replace(Jt,Nt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Be)||[""],null==f.crossDomain){c=_e.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=nn.protocol+"//"+nn.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Ee.param(f.data,f.traditional)),ne(Zt,f,n,A),u)return A;for(p in(d=Ee.event&&f.global)&&0===Ee.active++&&Ee.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Qt.test(f.type),s=f.url.replace(Yt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ut,"+")):(h=f.url.slice(s.length),f.data&&(f.processData||"string"==typeof f.data)&&(s+=(Mt.test(s)?"&":"?")+f.data,delete f.data),!1===f.cache&&(s=s.replace(Xt,"$1"),h=(Mt.test(s)?"&":"?")+"_="+Ft.guid+++h),f.url=s+h),f.ifModified&&(Ee.lastModified[s]&&A.setRequestHeader("If-Modified-Since",Ee.lastModified[s]),Ee.etag[s]&&A.setRequestHeader("If-None-Match",Ee.etag[s])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&A.setRequestHeader("Content-Type",f.contentType),A.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+tn+"; q=0.01":""):f.accepts["*"]),f.headers)A.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(m,A,f)||u))return A.abort();if(x="abort",y.add(f.complete),A.done(f.success),A.fail(f.error),o=ne(en,f,n,A)){if(A.readyState=1,d&&g.trigger("ajaxSend",[A,f]),u)return A;f.async&&f.timeout>0&&(l=e.setTimeout(function(){A.abort("timeout")},f.timeout));try{u=!1,o.send(_,i)}catch(e){if(u)throw e;i(-1,e)}}else i(-1,"No Transport");return A},getJSON:function(e,t,n){return Ee.get(e,t,n,"json")},getScript:function(e,t){return Ee.get(e,void 0,t,"script")}}),Ee.each(["get","post"],function(e,t){Ee[t]=function(e,n,i,o){return ye(n)&&(o=o||i,i=n,n=void 0),Ee.ajax(Ee.extend({url:e,type:t,dataType:o,data:n,success:i},Ee.isPlainObject(e)&&e))}}),Ee.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),Ee._evalUrl=function(e,t,n){return Ee.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Ee.globalEval(e,t,n)}})},Ee.fn.extend({wrapAll:function(e){var t;return this[0]&&(ye(e)&&(e=e.call(this[0])),t=Ee(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ye(e)?this.each(function(t){Ee(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Ee(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ye(e);return this.each(function(n){Ee(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Ee(this).replaceWith(this.childNodes)}),this}}),Ee.expr.pseudos.hidden=function(e){return!Ee.expr.pseudos.visible(e)},Ee.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Ee.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var on={0:200,1223:204},sn=Ee.ajaxSettings.xhr();ve.cors=!!sn&&"withCredentials"in sn,ve.ajax=sn=!!sn,Ee.ajaxTransport(function(t){var n,i;if(ve.cors||sn&&!t.crossDomain)return{send:function(o,s){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];for(r in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(r,o[r]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(on[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),Ee.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Ee.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Ee.globalEval(e),e}}}),Ee.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Ee.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=Ee("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),_e.head.appendChild(t[0])},abort:function(){n&&n()}}});var rn,an=[],ln=/(=)\?(?=&|$)|\?\?/;Ee.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=an.pop()||Ee.expando+"_"+Ft.guid++;return this[e]=!0,e}}),Ee.ajaxPrefilter("json jsonp",function(t,n,i){var o,s,r,a=!1!==t.jsonp&&(ln.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ln.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=ye(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(ln,"$1"+o):!1!==t.jsonp&&(t.url+=(Mt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return r||Ee.error(o+" was not called"),r[0]},t.dataTypes[0]="json",s=e[o],e[o]=function(){r=arguments},i.always(function(){void 0===s?Ee(e).removeProp(o):e[o]=s,t[o]&&(t.jsonpCallback=n.jsonpCallback,an.push(o)),r&&ye(s)&&s(r[0]),r=s=void 0}),"script"}),ve.createHTMLDocument=((rn=_e.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===rn.childNodes.length),Ee.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ve.createHTMLDocument?((i=(t=_e.implementation.createHTMLDocument("")).createElement("base")).href=_e.location.href,t.head.appendChild(i)):t=_e),s=!n&&[],(o=qe.exec(e))?[t.createElement(o[1])]:(o=E([e],t,s),s&&s.length&&Ee(s).remove(),Ee.merge([],o.childNodes)));var i,o,s},Ee.fn.load=function(e,t,n){var i,o,s,r=this,a=e.indexOf(" ");return a>-1&&(i=Q(e.slice(a)),e=e.slice(0,a)),ye(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),r.length>0&&Ee.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){s=arguments,r.html(i?Ee("<div>").append(Ee.parseHTML(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,s||[e.responseText,t,e])})}),this},Ee.expr.pseudos.animated=function(e){return Ee.grep(Ee.timers,function(t){return e===t.elem}).length},Ee.offset={setOffset:function(e,t,n){var i,o,s,r,a,l,c=Ee.css(e,"position"),u=Ee(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=Ee.css(e,"top"),l=Ee.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(r=(i=u.position()).top,o=i.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),ye(t)&&(t=t.call(e,n,Ee.extend({},a))),null!=t.top&&(d.top=t.top-a.top+r),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):u.css(d)}},Ee.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Ee.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===Ee.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Ee.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=Ee(e).offset()).top+=Ee.css(e,"borderTopWidth",!0),o.left+=Ee.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-Ee.css(i,"marginTop",!0),left:t.left-o.left-Ee.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Ee.css(e,"position");)e=e.offsetParent;return e||tt})}}),Ee.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;Ee.fn[e]=function(i){return We(this,function(e,i,o){var s;if(be(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===o)return s?s[t]:e[i];s?s.scrollTo(n?s.pageXOffset:o,n?o:s.pageYOffset):e[i]=o},e,i,arguments.length)}}),Ee.each(["top","left"],function(e,t){Ee.cssHooks[t]=N(ve.pixelPosition,function(e,n){if(n)return n=q(e,t),vt.test(n)?Ee(e).position()[t]+"px":n})}),Ee.each({Height:"height",Width:"width"},function(e,t){Ee.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){Ee.fn[i]=function(o,s){var r=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===s?"margin":"border");return We(this,function(t,n,o){var s;return be(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===o?Ee.css(t,n,a):Ee.style(t,n,o,a)},t,r?o:void 0,r)}})}),Ee.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Ee.fn[t]=function(e){return this.on(t,e)}}),Ee.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),Ee.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){Ee.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var cn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Ee.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),ye(e))return i=le.call(arguments,2),o=function(){return e.apply(t||this,i.concat(le.call(arguments)))},o.guid=e.guid=e.guid||Ee.guid++,o},Ee.holdReady=function(e){e?Ee.readyWait++:Ee.ready(!0)},Ee.isArray=Array.isArray,Ee.parseJSON=JSON.parse,Ee.nodeName=s,Ee.isFunction=ye,Ee.isWindow=be,Ee.camelCase=m,Ee.type=i,Ee.now=Date.now,Ee.isNumeric=function(e){var t=Ee.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Ee.trim=function(e){return null==e?"":(e+"").replace(cn,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Ee});var un=e.jQuery,dn=e.$;return Ee.noConflict=function(t){return e.$===Ee&&(e.$=dn),t&&e.jQuery===Ee&&(e.jQuery=un),Ee},void 0===t&&(e.jQuery=e.$=Ee),Ee}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function i(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}function s(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function r(){return!/^((?!chrome|android).)*safari/i.test(s())}function a(e,o,s){void 0===o&&(o=!1),void 0===s&&(s=!1);var a=e.getBoundingClientRect(),l=1,c=1;o&&i(e)&&(l=e.offsetWidth>0&&V(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&V(a.height)/e.offsetHeight||1);
vendor: 4,158 bytes, line 5
5var u=(n(e)?t(e):window).visualViewport,d=!r()&&s,p=(a.left+(d&&u?u.offsetLeft:0))/l,h=(a.top+(d&&u?u.offsetTop:0))/c,f=a.width/l,m=a.height/c;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}function l(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function c(e){return e?(e.nodeName||"").toLowerCase():null}function u(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function d(e){return a(u(e)).left+l(e).scrollLeft}function p(e){return t(e).getComputedStyle(e)}function h(e){var t=p(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function f(e,n,o){void 0===o&&(o=!1);var s,r,p=i(n),f=i(n)&&function(e){var t=e.getBoundingClientRect(),n=V(t.width)/e.offsetWidth||1,i=V(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(n),m=u(n),g=a(e,f,o),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(p||!p&&!o)&&(("body"!==c(n)||h(m))&&(v=(s=n)!==t(s)&&i(s)?{scrollLeft:(r=s).scrollLeft,scrollTop:r.scrollTop}:l(s)),i(n)?((y=a(n,!0)).x+=n.clientLeft,y.y+=n.clientTop):m&&(y.x=d(m))),{x:g.left+v.scrollLeft-y.x,y:g.top+v.scrollTop-y.y,width:g.width,height:g.height}}function m(e){var t=a(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function g(e){return"html"===c(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||u(e)}function v(e){return["html","body","#document"].indexOf(c(e))>=0?e.ownerDocument.body:i(e)&&h(e)?e:v(g(e))}function y(e,n){var i;void 0===n&&(n=[]);var o=v(e),s=o===(null==(i=e.ownerDocument)?void 0:i.body),r=t(o),a=s?[r].concat(r.visualViewport||[],h(o)?o:[]):o,l=n.concat(a);return s?l:l.concat(y(g(a)))}function b(e){return["table","td","th"].indexOf(c(e))>=0}function _(e){return i(e)&&"fixed"!==p(e).position?e.offsetParent:null}function w(e){for(var n=t(e),r=_(e);r&&b(r)&&"static"===p(r).position;)r=_(r);return r&&("html"===c(r)||"body"===c(r)&&"static"===p(r).position)?n:r||function(e){var t=/firefox/i.test(s());if(/Trident/i.test(s())&&i(e)&&"fixed"===p(e).position)return null;var n=g(e);for(o(n)&&(n=n.host);i(n)&&["html","body"].indexOf(c(n))<0;){var r=p(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||n}function x(e){function t(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var o=n.get(e);o&&t(o)}}),o.push(e)}var n=new Map,i=new Set,o=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||t(e)}),o}function A(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function E(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function S(e,i,o){return i===ee?E(function(e,n){var i=t(e),o=u(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,p=0;if(s){a=s.width,l=s.height;var h=r();(h||!h&&"fixed"===n)&&(c=s.offsetLeft,p=s.offsetTop)}return{width:a,height:l,x:c+d(e),y:p}}(e,o)):n(i)?function(e,t){var n=a(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(i,o):E(function(e){var t,n=u(e),i=l(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=z(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=z(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+d(e),c=-i.scrollTop;return"rtl"===p(o||n).direction&&(a+=z(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:c}}(u(e)))}function C(e,t,o,s){var r="clippingParents"===t?function(e){var t=y(g(e)),o=["absolute","fixed"].indexOf(p(e).position)>=0&&i(e)?w(e):e;return n(o)?t.filter(function(e){return n(e)&&A(e,o)&&"body"!==c(e)}):[]}(e):[].concat(t),a=[].concat(r,[o]),l=a[0],u=a.reduce(function(t,n){var i=S(e,n,s);
5return t.top=z(i.top,t.top),t.right=W(i.right,t.right),t.bottom=W(i.bottom,t.bottom),t.left=z(i.left,t.left),t},S(e,l,s));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function L(e){return e.split("-")[0]}function O(e){return e.split("-")[1]}function T(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function k(e){var t,n=e.reference,i=e.element,o=e.placement,s=o?L(o):null,r=o?O(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case U:t={x:a,y:n.y-i.height};break;case Y:t={x:a,y:n.y+n.height};break;case X:t={x:n.x+n.width,y:l};break;case K:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?T(s):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case J:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Z:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function $(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function I(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function D(e,t){void 0===t&&(t={});var i=t,o=i.placement,s=void 0===o?e.placement:o,r=i.strategy,l=void 0===r?e.strategy:r,c=i.boundary,d=void 0===c?"clippingParents":c,p=i.rootBoundary,h=void 0===p?ee:p,f=i.elementContext,m=void 0===f?te:f,g=i.altBoundary,v=void 0!==g&&g,y=i.padding,b=void 0===y?0:y,_=$("number"!=typeof b?b:I(b,Q)),w=m===te?"reference":te,x=e.rects.popper,A=e.elements[v?w:m],S=C(n(A)?A:A.contextElement||u(e.elements.popper),d,h,l),L=a(e.elements.reference),O=k({reference:L,element:x,strategy:"absolute",placement:s}),T=E(Object.assign({},x,O)),D=m===te?T:L,j={top:S.top-D.top+_.top,bottom:D.bottom-S.bottom+_.bottom,left:S.left-D.left+_.left,right:D.right-S.right+_.right},P=e.modifiersData.offset;if(m===te&&P){var q=P[s];Object.keys(j).forEach(function(e){var t=[X,Y].indexOf(e)>=0?1:-1,n=[U,Y].indexOf(e)>=0?"y":"x";j[e]+=q[n]*t})}return j}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function P(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,o=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?se:s;return function(e,t,i){function s(){u.forEach(function(e){return e()}),u=[]}void 0===i&&(i=r);var a,l,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},se,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],d=!1,p={state:c,setOptions:function(i){var a="function"==typeof i?i(c.options):i;s(),c.options=Object.assign({},r,c.options,a),c.scrollParents={reference:n(e)?y(e):e.contextElement?y(e.contextElement):[],popper:y(t)};var l,d,h=function(e){var t=x(e);return oe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((l=[].concat(o,c.options.modifiers),d=l.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return c.orderedModifiers=h.filter(function(e){return e.enabled}),c.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:c,name:t,instance:p,options:i}),r=function(){};u.push(s||r)}}),p.update()},forceUpdate:function(){if(!d){var e=c.elements,t=e.reference,n=e.popper;if(j(t,n)){c.rects={reference:f(t,w(n),"fixed"===c.options.strategy),popper:m(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(e){return c.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<c.orderedModifiers.length;i++)if(!0!==c.reset){var o=c.orderedModifiers[i],s=o.fn,r=o.options,a=void 0===r?{}:r,l=o.name;"function"==typeof s&&(c=s({state:c,options:a,name:l,instance:p})||c)}else c.reset=!1,i=-1}}},update:(a=function(){return new Promise(function(e){p.forceUpdate(),e(c)})},function(){return l||(l=new Promise(function(e){Promise.resolve().then(function(){l=void 0,e(a())})})),l}),destroy:function(){s(),d=!0}};return j(e,t)?(p.setOptions(i).then(function(e){!d&&i.onFirstUpdate&&i.onFirstUpdate(e)}),p):p}}function q(e){var n,i=e.popper,o=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,f=e.isFixed,m=a.x,g=void 0===m?0:m,v=a.y,y=void 0===v?0:v,b="function"==typeof h?h({x:g,y:y}):{x:g,y:y};g=b.x,y=b.y;var _=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),A=K,E=U,S=window;if(d){var C=w(i),L="clientHeight",O="clientWidth";C===t(i)&&"static"!==p(C=u(i)).position&&"absolute"===l&&(L="scrollHeight",O="scrollWidth"),(s===U||(s===K||s===X)&&r===Z)&&(E=Y,y-=(f&&C===S&&S.visualVie
vendor: 10,027 bytes, lines 5-6
5wport?S.visualViewport.height:C[L])-o.height,y*=c?1:-1),s!==K&&(s!==U&&s!==Y||r!==Z)||(A=X,g-=(f&&C===S&&S.visualViewport?S.visualViewport.width:C[O])-o.width,g*=c?1:-1)}var T,k=Object.assign({position:l},d&&ce),$=!0===h?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:V(n*o)/o||0,y:V(i*o)/o||0}}({x:g,y:y},t(i)):{x:g,y:y};return g=$.x,y=$.y,c?Object.assign({},k,((T={})[E]=x?"0":"",T[A]=_?"0":"",T.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",T)):Object.assign({},k,((n={})[E]=x?y+"px":"",n[A]=_?g+"px":"",n.transform="",n))}function N(e){return e.replace(/left|right|bottom|top/g,function(e){return he[e]})}function F(e){return e.replace(/start|end/g,function(e){return fe[e]})}function M(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ie:l,u=O(i),d=u?a?ne:ne.filter(function(e){return O(e)===u}):Q,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var h=p.reduce(function(t,n){return t[n]=D(e,{placement:n,boundary:o,rootBoundary:s,padding:r})[L(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}function R(e,t,n){return z(e,W(t,n))}function B(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function H(e){return[U,X,Y,K].some(function(t){return e[t]>=0})}var z=Math.max,W=Math.min,V=Math.round,U="top",Y="bottom",X="right",K="left",G="auto",Q=[U,Y,X,K],J="start",Z="end",ee="viewport",te="popper",ne=Q.reduce(function(e,t){return e.concat([t+"-"+J,t+"-"+Z])},[]),ie=[].concat(Q,[G]).reduce(function(e,t){return e.concat([t,t+"-"+J,t+"-"+Z])},[]),oe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],se={placement:"bottom",modifiers:[],strategy:"absolute"},re={passive:!0},ae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,i=e.instance,o=e.options,s=o.scroll,r=void 0===s||s,a=o.resize,l=void 0===a||a,c=t(n.elements.popper),u=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&u.forEach(function(e){e.addEventListener("scroll",i.update,re)}),l&&c.addEventListener("resize",i.update,re),function(){r&&u.forEach(function(e){e.removeEventListener("scroll",i.update,re)}),l&&c.removeEventListener("resize",i.update,re)}},data:{}},le={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=k({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ce={top:"auto",right:"auto",bottom:"auto",left:"auto"},ue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,s=n.adaptive,r=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,c={placement:L(t.placement),variation:O(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,q(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,q(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},de={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},s=t.elements[e];i(s)&&c(s)&&(Object.assign(s.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});i(o)&&c(o)&&(Object.assign(o.style,r),Object.keys(s).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]},pe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=void 0===o?[0,0]:o,r=ie.reduce(function(e,n){return e[n]=function(e,t,n){var i=L(e),o=[K,U].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[K,X].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,s),e},{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}},he={left:"right",right:"left",bottom:"top",top:"bottom"},fe={start:"end",end:"start"},me={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){ 6for(var o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=L(g),y=l||(v!==g&&f?function(e){if(L(e)===G)return[];var t=N(e);return[F(e),t,F(t)]}(g):[N(g)]),b=[g].concat(y).reduce(function(e,n){return e.concat(L(n)===G?M(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,w=t.rects.popper,x=new Map,A=!0,E=b[0],S=0;S<b.length;S++){var C=b[S],T=L(C),k=O(C)===J,$=[U,Y].indexOf(T)>=0,I=$?"width":"height",j=D(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=$?k?X:K:k?Y:U;_[I]>w[I]&&(P=N(P));var q=N(P),R=[];if(s&&R.push(j[T]<=0),a&&R.push(j[P]<=0,j[q]<=0),R.every(function(e){return e})){E=C,A=!1;break}x.set(C,R)}if(A)for(var B=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},H=f?3:1;H>0&&"break"!==B(H);H--);t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,g=void 0===f?0:f,v=D(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=L(t.placement),b=O(t.placement),_=!b,x=T(y),A="x"===x?"y":"x",E=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,$="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(E){if(s){var P,q="y"===x?U:K,N="y"===x?Y:X,F="y"===x?"height":"width",M=E[x],B=M+v[q],H=M-v[N],V=h?-C[F]/2:0,G=b===J?S[F]:C[F],Q=b===J?-C[F]:-S[F],Z=t.elements.arrow,ee=h&&Z?m(Z):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ne=te[q],ie=te[N],oe=R(0,S[F],ee[F]),se=_?S[F]/2-V-oe-ne-$.mainAxis:G-oe-ne-$.mainAxis,re=_?-S[F]/2+V+oe+ie+$.mainAxis:Q+oe+ie+$.mainAxis,ae=t.elements.arrow&&w(t.elements.arrow),le=ae?"y"===x?ae.clientTop||0:ae.clientLeft||0:0,ce=null!=(P=null==I?void 0:I[x])?P:0,ue=M+re-ce,de=R(h?W(B,M+se-ce-le):B,M,h?z(H,ue):H);E[x]=de,j[x]=de-M}if(a){var pe,he="x"===x?U:K,fe="x"===x?Y:X,me=E[A],ge="y"===A?"height":"width",ve=me+v[he],ye=me-v[fe],be=-1!==[U,K].indexOf(y),_e=null!=(pe=null==I?void 0:I[A])?pe:0,we=be?ve:me-S[ge]-C[ge]-_e+$.altAxis,xe=be?me+S[ge]+C[ge]-_e-$.altAxis:ye,Ae=h&&be?function(e,t,n){var i=R(e,t,n);return i>n?n:i}(we,me,xe):R(h?we:ve,me,h?xe:ye);E[A]=Ae,j[A]=Ae-me}t.modifiersData[i]=j}},requiresIfExists:["offset"]},ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,r=n.modifiersData.popperOffsets,a=L(n.placement),l=T(a),c=[K,X].indexOf(a)>=0?"height":"width";if(s&&r){var u=function(e,t){return $("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:I(e,Q))}(o.padding,n),d=m(s),p="y"===l?U:K,h="y"===l?Y:X,f=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],v=w(s),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=f/2-g/2,_=u[p],x=y-d[c]-u[h],A=y/2-d[c]/2+b,E=R(_,A,x),S=l;n.modifiersData[i]=((t={})[S]=E,t.centerOffset=E-A,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&A(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=D(t,{elementContext:"reference"}),a=D(t,{altBoundary:!0}),l=B(r,i),c=B(a,o,s),u=H(l),d=H(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},be=P({defaultModifiers:[ae,le,ue,de]}),_e=[ae,le,ue,de,pe,me,ge,ve,ye],we=P({defaultModifiers:_e});e.applyStyles=de,e.arrow=ve,e.computeStyles=ue,e.createPopper=we,e.createPopperLite=be,e.defaultModifiers=_e,e.detectOverflow=D,e.eventListeners=ae,e.flip=me,e.hide=ye,e.offset=pe,e.popperGenerator=P,e.popperOffsets=le,e.preventOverflow=ge,Object.defineProperty(e,"__esMo
6dule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(this,function(e){"use strict";function t(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}function n(e,t){return t&&`${t}::${U++}`||e.uidEvent||U++}function i(e){const t=n(e);return e.uidEvent=t,V[t]=V[t]||{},V[t]}function o(e,t){return function n(i){return p(i,{delegateTarget:e}),n.oneOff&&K.off(e,i.type,t),t.apply(e,[i])}}function s(e,t,n){return function i(o){const s=e.querySelectorAll(t);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(const a of s)if(a===r)return p(o,{delegateTarget:r}),i.oneOff&&K.off(e,o.type,t,n),n.apply(r,[o])}}function r(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function a(e,t,n){const i="string"==typeof t,o=i?n:t||n;let s=d(e);return X.has(s)||(s=e),[i,o,s]}function l(e,t,l,c,u){if("string"!=typeof t||!e)return;let[d,p,h]=a(t,l,c);if(t in Y){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};p=e(p)}const f=i(e),m=f[h]||(f[h]={}),g=r(m,p,d?l:null);if(g)return void(g.oneOff=g.oneOff&&u);const v=n(p,t.replace(H,"")),y=d?s(e,l,p):o(e,p);y.delegationSelector=d?l:null,y.callable=p,y.oneOff=u,y.uidEvent=v,m[v]=y,e.addEventListener(h,y,d)}function c(e,t,n,i,o){const s=r(t[n],i,o);s&&(e.removeEventListener(n,s,Boolean(o)),delete t[n][s.uidEvent])}function u(e,t,n,i){const o=t[n]||{};for(const[s,r]of Object.entries(o))s.includes(i)&&c(e,t,n,r.callable,r.delegationSelector)}function d(e){return e=e.replace(z,""),Y[e]||e}function p(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function h(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function f(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function m(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const e of o){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),o=[].concat(t["*"]||[],t[n]||[]);for(const t of i)Di(t,o)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}const g=t(e),v=new Map,y={set(e,t,n){v.has(e)||v.set(e,new Map);const i=v.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>v.has(e)&&v.get(e).get(t)||null,remove(e,t){if(!v.has(e))return;const n=v.get(e);n.delete(t),0===n.size&&v.delete(e)}},b=1e6,_=1e3,w="transitionend",x=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),A=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),E=e=>{do{e+=Math.floor(Math.random()*b)}while(document.getElementById(e));return e},S=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),o=Number.parseFloat(n);return i||o?(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*_):0},C=e=>{e.dispatchEvent(new Event(w))},L=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),O=e=>L(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(x(e)):null,T=e=>{if(!L(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},k=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),$=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?$(e.parentNode):null},I=()=>{},D=e=>{e.offsetHeight},j=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,P=[],q=e=>{"loading"===document.readyState?(P.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of P)e()}),P.push(e)):e()},N=()=>"rtl"===document.documentElement.dir,F=e=>{q(()=>{const t=j();if(t){const n=e.NAME,i=t.fn[n];
vendor: 4,471 bytes, line 6
6t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}})},M=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,R=(e,t,n=!0)=>{if(!n)return void M(e);const i=5,o=S(t)+i;let s=!1;const r=({target:n})=>{n===t&&(s=!0,t.removeEventListener(w,r),M(e))};t.addEventListener(w,r),setTimeout(()=>{s||C(t)},o)},B=(e,t,n,i)=>{const o=e.length;let s=e.indexOf(t);return-1===s?!n&&i?e[o-1]:e[0]:(s+=n?1:-1,i&&(s=(s+o)%o),e[Math.max(0,Math.min(s,o-1))])},H=/[^.]*(?=\..*)\.|.*/,z=/\..*/,W=/::\d+$/,V={};let U=1;const Y={mouseenter:"mouseover",mouseleave:"mouseout"},X=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]),K={on(e,t,n,i){l(e,t,n,i,!1)},one(e,t,n,i){l(e,t,n,i,!0)},off(e,t,n,o){if("string"!=typeof t||!e)return;const[s,r,l]=a(t,n,o),d=l!==t,p=i(e),h=p[l]||{},f=t.startsWith(".");if(void 0===r){if(f)for(const n of Object.keys(p))u(e,p,n,t.slice(1));for(const[n,i]of Object.entries(h)){const o=n.replace(W,"");d&&!t.includes(o)||c(e,p,l,i.callable,i.delegationSelector)}}else{if(!Object.keys(h).length)return;c(e,p,l,r,s?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=j();let o=null,s=!0,r=!0,a=!1;t!==d(t)&&i&&(o=i.Event(t,n),i(e).trigger(o),s=!o.isPropagationStopped(),r=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=p(new Event(t,{bubbles:s,cancelable:!0}),n);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}},G={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${f(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${f(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=h(e.dataset[i])}return t},getDataAttribute:(e,t)=>h(e.getAttribute(`data-bs-${f(t)}`))};class Q{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=L(t)?G.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...L(t)?G.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,i]of Object.entries(t)){const t=e[n],o=L(t)?"element":A(t);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${i}".`)}}}const J="5.3.8";class Z extends Q{constructor(e,t){super(),(e=O(e))&&(this._element=e,this._config=this._getConfig(t),y.set(this._element,this.constructor.DATA_KEY,this))}dispose(){y.remove(this._element,this.constructor.DATA_KEY),K.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){R(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return y.get(O(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return J}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const ee=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map(e=>x(e)).join(","):null},te={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>
6[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!k(e)&&T(e))},getSelectorFromElement(e){const t=ee(e);return t&&te.findOne(t)?t:null},getElementFromSelector(e){const t=ee(e);return t?te.findOne(t):null},getMultipleElementsFromSelector(e){const t=ee(e);return t?te.find(t):[]}},ne=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;K.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),k(this))return;const o=te.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(o)[t]()})},ie="alert",oe=`.${"bs.alert"}`,se=`close${oe}`,re=`closed${oe}`,ae="fade",le="show";class ce extends Z{static get NAME(){return ie}close(){if(K.trigger(this._element,se).defaultPrevented)return;this._element.classList.remove(le);const e=this._element.classList.contains(ae);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),K.trigger(this._element,re),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=ce.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne(ce,"close"),F(ce);const ue="button",de="active",pe='[data-bs-toggle="button"]',he=`click${`.${"bs.button"}`}${".data-api"}`;class fe extends Z{static get NAME(){return ue}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(de))}static jQueryInterface(e){return this.each(function(){const t=fe.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}K.on(document,he,pe,e=>{e.preventDefault();const t=e.target.closest(pe);fe.getOrCreateInstance(t).toggle()}),F(fe);const me="swipe",ge=".bs.swipe",ve=`touchstart${ge}`,ye=`touchmove${ge}`,be=`touchend${ge}`,_e=`pointerdown${ge}`,we=`pointerup${ge}`,xe="touch",Ae="pen",Ee="pointer-event",Se=40,Ce={endCallback:null,leftCallback:null,rightCallback:null},Le={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Oe extends Q{constructor(e,t){super(),this._element=e,e&&Oe.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ce}static get DefaultType(){return Le}static get NAME(){return me}dispose(){K.off(this._element,ge)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),M(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Se)return;const t=e/this._deltaX;this._deltaX=0,t&&M(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(K.on(this._element,_e,e=>this._start(e)),K.on(this._element,we,e=>this._end(e)),this._element.classList.add(Ee)):(K.on(this._element,ve,e=>this._start(e)),K.on(this._element,ye,e=>this._move(e)),K.on(this._element,be,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Ae||e.pointerType===xe)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Te="carousel",ke=`.${"bs.carousel"}`,$e=".data-api",Ie="ArrowLeft",De="ArrowRight",je=500,Pe="next",qe="prev",Ne="left",Fe="right",Me=`slide${ke}`,Re=`slid${ke}`,Be=`keydown${ke}`,He=`mouseenter${ke}`,ze=`mouseleave${ke}`,We=`dragstart${ke}`,Ve=`load${ke}${$e}`,Ue=`click${ke}${$e}`,Ye="carousel",Xe="active",Ke="slide",Ge="carousel-item-end",Qe="carousel-item-start",Je="carousel-item-next",Ze="carousel-item-prev",et=".active",tt=".carousel-item",nt=et+tt,it=".carousel-item img",ot=".carousel-indicators",st="[data-bs-slide], [data-bs-slide-to]",rt='[data-bs-ride="carousel"]',at={[Ie]:Fe,[De]:Ne},lt={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ct={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ut extends Z{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=te.findOne(ot,this._element),this._addEventListeners(),this._config.ride===Ye&&this.cycle()}static get Default(){return lt}static get DefaultType(){return ct}static get NAME(){return Te}next(){this._slide(Pe)}nextWhenVisible(){!document.hidden&&T(this._element)&&this.next()}prev(){this._slide(qe)}pause(){this._isSliding&&C(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?K.one(this._element,Re,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void K.one(this._element,Re,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?Pe:qe;this._slide(i,t[e])}
vendor: 8,850 bytes, line 6
6dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&K.on(this._element,Be,e=>this._keydown(e)),"hover"===this._config.pause&&(K.on(this._element,He,()=>this.pause()),K.on(this._element,ze,()=>this._maybeEnableCycle())),this._config.touch&&Oe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of te.find(it,this._element))K.on(e,We,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Ne)),rightCallback:()=>this._slide(this._directionToOrder(Fe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),je+this._config.interval))}};this._swipeHelper=new Oe(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=at[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=te.findOne(et,this._indicatorsElement);t.classList.remove(Xe),t.removeAttribute("aria-current");const n=te.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Xe),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===Pe,o=t||B(this._getItems(),n,i,this._config.wrap);if(o===n)return;const s=this._getItemIndex(o),r=t=>K.trigger(this._element,t,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(r(Me).defaultPrevented)return;if(!n||!o)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=o;const l=i?Qe:Ge,c=i?Je:Ze;o.classList.add(c),D(o),n.classList.add(l),o.classList.add(l);const u=()=>{o.classList.remove(l,c),o.classList.add(Xe),n.classList.remove(Xe,c,l),this._isSliding=!1,r(Re)};this._queueCallback(u,n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains(Ke)}_getActive(){return te.findOne(nt,this._element)}_getItems(){return te.find(tt,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return N()?e===Ne?qe:Pe:e===Ne?Pe:qe}_orderToDirection(e){return N()?e===qe?Ne:Fe:e===qe?Fe:Ne}static jQueryInterface(e){return this.each(function(){const t=ut.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}K.on(document,Ue,st,function(e){const t=te.getElementFromSelector(this);if(!t||!t.classList.contains(Ye))return;e.preventDefault();const n=ut.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===G.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),K.on(window,Ve,()=>{const e=te.find(rt);for(const t of e)ut.getOrCreateInstance(t)}),F(ut);const dt="collapse",pt=`.${"bs.collapse"}`,ht=`show${pt}`,ft=`shown${pt}`,mt=`hide${pt}`,gt=`hidden${pt}`,vt=`click${pt}${".data-api"}`,yt="show",bt="collapse",_t="collapsing",wt="collapsed",xt=`:scope .${bt} .${bt}`,At="collapse-horizontal",Et="width",St="height",Ct=".collapse.show, .collapse.collapsing",Lt='[data-bs-toggle="collapse"]',Ot={parent:null,toggle:!0},Tt={parent:"(null|element)",toggle:"boolean"};class kt extends Z{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=te.find(Lt);for(const e of n){const t=te.getSelectorFromElement(e),n=te.find(t).filter(e=>e===this._element);null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ot}static get DefaultType(){return Tt}static get NAME(){return dt}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Ct).filter(e=>e!==this._element).map(e=>kt.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(K.trigger(this._element,ht).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(bt),this._element.classList.add(_t),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(_t),this._element.classList.add(bt,yt),this._element.style[t]="",K.trigger(this._element,ft)},i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(K.trigger(this._element,mt).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,D(this._element),this._element.classList.add(_t),this._element.classList.remove(bt,yt);for(const e of this._triggerArray){const t=te.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const t=()=>{this._isTransitioning=!1,this._element.classList.remove(_t),this._element.classList.add(bt),K.trigger(this._element,gt)};this._element.style[e]="",this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(yt)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=O(e.parent),e}_getDimension(){return this._element.classList.contains(At)?Et:St}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Lt);for(const t of e){const e=te.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=te.find(xt,this._config.parent);return te.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle(wt,!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=kt.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}K.on(document,vt,Lt,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of te.getMultipleElementsFromSelector(this))kt.getOrCreateInstance(e,{toggle:!1}).toggle()}),F(kt);const $t="dropdown",It=`.${"bs.dropdown"}`,Dt=".data-api",jt="Escape",Pt="Tab",qt="ArrowUp",Nt="ArrowDown",Ft=2,Mt=`hide${It}`,Rt=`hidden${It}`,Bt=`show${It}`,Ht=`shown${It}`,zt=`click${It}${Dt}`,Wt=`keydown${It}${Dt}`,Vt=`keyup${It}${Dt}`,Ut="show",Yt="dropup",Xt="dropend",Kt="dropstart",Gt="dropup-center",Qt="dropdown-center",Jt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Zt=`${Jt}.${Ut}`,en=".dropdown-menu",tn=".navbar",nn=".navbar-nav",on=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",sn=N()?"top-end":"top-start",rn=N()?"top-start":"top-end",an=N()?"bottom-end":"bottom-start",ln=N()?"bottom-start":"bottom-end",cn=N()?"left-start":"right-start",un=N()?"right-start":"left-start",dn="top",pn="bottom",hn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},fn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class mn extends Z{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=te.next(this._element,en)[0]||te.prev(this._element,en)[0]||te.findOne(en,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return hn}static get DefaultType(){return fn}static get NAME(){return $t}toggle(){return this._isShown()?this.hide():this.show()}show(){if(k(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!K.trigger(this._element,Bt,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(nn))for(const e of[].concat(...document.body.children))K.on(e,"mouseover",I);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ut),this._element.classList.add(Ut),K.trigger(this._element,Ht,e)}}
vendor: 7,072 bytes, lines 6-7
6hide(){if(k(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!K.trigger(this._element,Mt,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))K.off(e,"mouseover",I);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ut),this._element.classList.remove(Ut),this._element.setAttribute("aria-expanded","false"),G.removeDataAttribute(this._menu,"popper"),K.trigger(this._element,Rt,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!L(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${$t.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===g)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:L(this._config.reference)?e=O(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=g.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ut)}_getPlacement(){const e=this._parent;if(e.classList.contains(Xt))return cn;if(e.classList.contains(Kt))return un;if(e.classList.contains(Gt))return dn;if(e.classList.contains(Qt))return pn;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(Yt)?t?rn:sn:t?ln:an}_detectNavbar(){return null!==this._element.closest(tn)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(G.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...M(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=te.find(on,this._menu).filter(e=>T(e));n.length&&B(n,t,e===Nt,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=mn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===Ft||"keyup"===e.type&&e.key!==Pt)return;const t=te.find(Zt);for(const n of t){const t=mn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),o=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!o||"outside"===t._config.autoClose&&o)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===Pt||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const s={relatedTarget:t._element};"click"===e.type&&(s.clickEvent=e),t._completeHide(s)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key===jt,i=[qt,Nt].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(Jt)?this:te.prev(this,Jt)[0]||te.next(this,Jt)[0]||te.findOne(Jt,e.delegateTarget.parentNode),s=mn.getOrCreateInstance(o);if(i)return e.stopPropagation(),s.show(),void s._selectMenuItem(e);s._isShown()&&(e.stopPropagation(),s.hide(),o.focus())}}K.on(document,Wt,Jt,mn.dataApiKeydownHandler),K.on(document,Wt,en,mn.dataApiKeydownHandler),K.on(document,zt,mn.clearMenus),K.on(document,Vt,mn.clearMenus),K.on(document,zt,Jt,function(e){e.preventDefault(),mn.getOrCreateInstance(this).toggle()}),F(mn) 7;const gn="backdrop",vn="fade",yn="show",bn=`mousedown.bs.${gn}`,_n={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},wn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class xn extends Q{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return _n}static get DefaultType(){return wn}static get NAME(){return gn}show(e){if(!this._config.isVisible)return void M(e);this._append();const t=this._getElement();this._config.isAnimated&&D(t),t.classList.add(yn),this._emulateAnimation(()=>{M(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(yn),this._emulateAnimation(()=>{this.dispose(),M(e)})):M(e)}dispose(){this._isAppended&&(K.off(this._element,bn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(vn),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=O(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),K.on(e,bn,()=>{M(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){R(e,this._getElement(),this._config.isAnimated)}}const An="focustrap",En=`.${"bs.focustrap"}`,Sn=`focusin${En}`,Cn=`keydown.tab${En}`,Ln="Tab",On="forward",Tn="backward",kn={autofocus:!0,trapElement:null},$n={autofocus:"boolean",trapElement:"element"};class In extends Q{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return kn}static get DefaultType(){return $n}static get NAME(){return An}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),K.off(document,En),K.on(document,Sn,e=>this._handleFocusin(e)),K.on(document,Cn,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,K.off(document,En))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=te.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===Tn?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===Ln&&(this._lastTabNavDirection=e.shiftKey?Tn:On)}}const Dn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jn=".sticky-top",Pn="padding-right",qn="margin-right";class Nn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Pn,t=>t+e),this._setElementAttributes(Dn,Pn,t=>t+e),this._setElementAttributes(jn,qn,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Pn),this._resetElementAttributes(Dn,Pn),this._resetElementAttributes(jn,qn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}
vendor: 4,523 bytes, line 7
7_setElementAttributes(e,t,n){const i=this.getWidth(),o=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const o=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(o))}px`)};this._applyManipulationCallback(e,o)}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&G.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){const n=e=>{const n=G.getDataAttribute(e,t);null!==n?(G.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,t){if(L(e))t(e);else for(const n of te.find(e,this._element))t(n)}}const Fn="modal",Mn=`.${"bs.modal"}`,Rn="Escape",Bn=`hide${Mn}`,Hn=`hidePrevented${Mn}`,zn=`hidden${Mn}`,Wn=`show${Mn}`,Vn=`shown${Mn}`,Un=`resize${Mn}`,Yn=`click.dismiss${Mn}`,Xn=`mousedown.dismiss${Mn}`,Kn=`keydown.dismiss${Mn}`,Gn=`click${Mn}${".data-api"}`,Qn="modal-open",Jn="fade",Zn="show",ei="modal-static",ti=".modal.show",ni=".modal-dialog",ii=".modal-body",oi='[data-bs-toggle="modal"]',si={backdrop:!0,focus:!0,keyboard:!0},ri={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ai extends Z{constructor(e,t){super(e,t),this._dialog=te.findOne(ni,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Nn,this._addEventListeners()}static get Default(){return si}static get DefaultType(){return ri}static get NAME(){return Fn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;K.trigger(this._element,Wn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Qn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning)return;K.trigger(this._element,Bn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Zn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){K.off(window,Mn),K.off(this._dialog,Mn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new xn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new In({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=te.findOne(ii,this._dialog);t&&(t.scrollTop=0),D(this._element),this._element.classList.add(Zn);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,K.trigger(this._element,Vn,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){K.on(this._element,Kn,e=>{e.key===Rn&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),K.on(window,Un,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),K.on(this._element,Xn,e=>{K.one(this._element,Yn,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Qn),this._resetAdjustments(),this._scrollBar.reset(),K.trigger(this._element,zn)})}_isAnimated(){return this._element.classList.contains(Jn)}_triggerBackdropTransition(){if(K.trigger(this._element,Hn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ei)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ei),this._queueCallback(()=>{this._element.classList.remove(ei),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;
7if(n&&!e){const e=N()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=N()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=ai.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}K.on(document,Gn,oi,function(e){const t=te.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),K.one(t,Wn,e=>{e.defaultPrevented||K.one(t,zn,()=>{T(this)&&this.focus()})});const n=te.findOne(ti);n&&ai.getInstance(n).hide();ai.getOrCreateInstance(t).toggle(this)}),ne(ai),F(ai);const li="offcanvas",ci=`.${"bs.offcanvas"}`,ui=".data-api",di=`load${ci}${ui}`,pi="Escape",hi="show",fi="showing",mi="hiding",gi="offcanvas-backdrop",vi=".offcanvas.show",yi=`show${ci}`,bi=`shown${ci}`,_i=`hide${ci}`,wi=`hidePrevented${ci}`,xi=`hidden${ci}`,Ai=`resize${ci}`,Ei=`click${ci}${ui}`,Si=`keydown.dismiss${ci}`,Ci='[data-bs-toggle="offcanvas"]',Li={backdrop:!0,keyboard:!0,scroll:!1},Oi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ti extends Z{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Li}static get DefaultType(){return Oi}static get NAME(){return li}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(K.trigger(this._element,yi,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Nn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(fi);const t=()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(hi),this._element.classList.remove(fi),K.trigger(this._element,bi,{relatedTarget:e})};this._queueCallback(t,this._element,!0)}hide(){if(!this._isShown)return;if(K.trigger(this._element,_i).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(mi),this._backdrop.hide();const e=()=>{this._element.classList.remove(hi,mi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Nn).reset(),K.trigger(this._element,xi)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{"static"!==this._config.backdrop?this.hide():K.trigger(this._element,wi)},t=Boolean(this._config.backdrop);return new xn({className:gi,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new In({trapElement:this._element})}_addEventListeners(){K.on(this._element,Si,e=>{e.key===pi&&(this._config.keyboard?this.hide():K.trigger(this._element,wi))})}static jQueryInterface(e){return this.each(function(){const t=Ti.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}K.on(document,Ei,Ci,function(e){const t=te.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),k(this))return;K.one(t,xi,()=>{T(this)&&this.focus()});const n=te.findOne(vi);n&&n!==t&&Ti.getInstance(n).hide();Ti.getOrCreateInstance(t).toggle(this)}),K.on(window,di,()=>{for(const e of te.find(vi))Ti.getOrCreateInstance(e).show()}),K.on(window,Ai,()=>{for(const e of te.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Ti.getOrCreateInstance(e).hide()}),ne(Ti),F(Ti);const ki={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},$i=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ii=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Di=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!$i.has(n)||Boolean(Ii.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))},ji="TemplateFactory",Pi={allowList:ki,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ni={entry:"(string|element|function|null)",selector:"(string|element)"};class Fi extends Q{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Pi}static get DefaultType(){return qi}static get NAME(){return ji}getContent(){return Object.values(this._config.content).map(e=>
vendor: 4,308 bytes, line 7
7this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Ni)}_setContent(e,t,n){const i=te.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?L(t)?this._putElementInTemplate(O(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?m(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return M(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Mi="tooltip",Ri=new Set(["sanitize","allowList","sanitizeFn"]),Bi="fade",Hi="show",zi=".tooltip-inner",Wi=`.${"modal"}`,Vi="hide.bs.modal",Ui="hover",Yi="focus",Xi="click",Ki="manual",Gi="hide",Qi="hidden",Ji="show",Zi="shown",eo="inserted",to="click",no="focusin",io="focusout",oo="mouseenter",so="mouseleave",ro={AUTO:"auto",TOP:"top",RIGHT:N()?"left":"right",BOTTOM:"bottom",LEFT:N()?"right":"left"},ao={allowList:ki,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},lo={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class co extends Z{constructor(e,t){if(void 0===g)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ao}static get DefaultType(){return lo}static get NAME(){return Mi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),K.off(this._element.closest(Wi),Vi,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=K.trigger(this._element,this.constructor.eventName(Ji)),t=($(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),K.trigger(this._element,this.constructor.eventName(eo))),this._popper=this._createPopper(n),n.classList.add(Hi),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))K.on(e,"mouseover",I);const o=()=>{K.trigger(this._element,this.constructor.eventName(Zi)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}
vendor: 5,353 bytes, line 7
7hide(){if(!this._isShown())return;if(K.trigger(this._element,this.constructor.eventName(Gi)).defaultPrevented)return;if(this._getTipElement().classList.remove(Hi),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))K.off(e,"mouseover",I);this._activeTrigger[Xi]=!1,this._activeTrigger[Yi]=!1,this._activeTrigger[Ui]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),K.trigger(this._element,this.constructor.eventName(Qi)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Bi,Hi),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=E(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Bi),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Fi({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[zi]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Bi)}_isShown(){return this.tip&&this.tip.classList.contains(Hi)}_createPopper(e){const t=M(this._config.placement,[this,e,this._element]),n=ro[t.toUpperCase()];return g.createPopper(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return M(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...M(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)K.on(this._element,this.constructor.eventName(to),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[Xi]=!(t._isShown()&&t._activeTrigger[Xi]),t.toggle()});else if(t!==Ki){const e=t===Ui?this.constructor.eventName(oo):this.constructor.eventName(no),n=t===Ui?this.constructor.eventName(so):this.constructor.eventName(io);K.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Yi:Ui]=!0,t._enter()}),K.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Yi:Ui]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},K.on(this._element.closest(Wi),Vi,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=G.getDataAttributes(this._element);for(const e of Object.keys(t))Ri.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:O(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=co.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method n
7amed "${e}"`);t[e]()}})}}F(co);const uo="popover",po=".popover-header",ho=".popover-body",fo={...co.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},mo={...co.DefaultType,content:"(null|string|element|function)"};class go extends co{static get Default(){return fo}static get DefaultType(){return mo}static get NAME(){return uo}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[po]:this._getTitle(),[ho]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=go.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}F(go);const vo="scrollspy",yo=`.${"bs.scrollspy"}`,bo=`activate${yo}`,_o=`click${yo}`,wo=`load${yo}${".data-api"}`,xo="dropdown-item",Ao="active",Eo='[data-bs-spy="scroll"]',So="[href]",Co=".nav, .list-group",Lo=".nav-link",Oo=`${Lo}, ${".nav-item"} > ${Lo}, ${".list-group-item"}`,To=".dropdown",ko=".dropdown-toggle",$o={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Io={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Do extends Z{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return $o}static get DefaultType(){return Io}static get NAME(){return vo}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=O(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(K.off(this._config.target,_o),K.on(this._config.target,_o,So,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const e=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&e){if(n(s),!i)return}else o||e||n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=te.find(So,this._config.target);for(const t of e){if(!t.hash||k(t))continue;const e=te.findOne(decodeURI(t.hash),this._element);T(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ao),this._activateParents(e),K.trigger(this._element,bo,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(xo))te.findOne(ko,e.closest(To)).classList.add(Ao);else for(const t of te.parents(e,Co))for(const e of te.prev(t,Oo))e.classList.add(Ao)}_clearActiveClass(e){e.classList.remove(Ao);const t=te.find(`${So}.${Ao}`,e);for(const e of t)e.classList.remove(Ao)}static jQueryInterface(e){return this.each(function(){const t=Do.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
7amed "${e}"`);t[e]()}})}}K.on(window,wo,()=>{for(const e of te.find(Eo))Do.getOrCreateInstance(e)}),F(Do);const jo="tab",Po=`.${"bs.tab"}`,qo=`hide${Po}`,No=`hidden${Po}`,Fo=`show${Po}`,Mo=`shown${Po}`,Ro=`click${Po}`,Bo=`keydown${Po}`,Ho=`load${Po}`,zo="ArrowLeft",Wo="ArrowRight",Vo="ArrowUp",Uo="ArrowDown",Yo="Home",Xo="End",Ko="active",Go="fade",Qo="show",Jo="dropdown",Zo=".dropdown-toggle",es=".dropdown-menu",ts=`:not(${Zo})`,ns='.list-group, .nav, [role="tablist"]',is=".nav-item, .list-group-item",os='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ss=`${`.nav-link${ts}, .list-group-item${ts}, [role="tab"]${ts}`}, ${os}`,rs=`.${Ko}[data-bs-toggle="tab"], .${Ko}[data-bs-toggle="pill"], .${Ko}[data-bs-toggle="list"]`;class as extends Z{constructor(e){super(e),this._parent=this._element.closest(ns),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),K.on(this._element,Bo,e=>this._keydown(e)))}static get NAME(){return jo}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?K.trigger(t,qo,{relatedTarget:e}):null;K.trigger(e,Fo,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Ko),this._activate(te.getElementFromSelector(e));const n=()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),K.trigger(e,Mo,{relatedTarget:t})):e.classList.add(Qo)};this._queueCallback(n,e,e.classList.contains(Go))}_deactivate(e,t){if(!e)return;e.classList.remove(Ko),e.blur(),this._deactivate(te.getElementFromSelector(e));const n=()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),K.trigger(e,No,{relatedTarget:t})):e.classList.remove(Qo)};this._queueCallback(n,e,e.classList.contains(Go))}_keydown(e){if(![zo,Wo,Vo,Uo,Yo,Xo].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!k(e));let n;if([Yo,Xo].includes(e.key))n=t[e.key===Yo?0:t.length-1];else{const i=[Wo,Uo].includes(e.key);n=B(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),as.getOrCreateInstance(n).show())}_getChildren(){return te.find(ss,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=te.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains(Jo))return;const i=(e,i)=>{const o=te.findOne(e,n);o&&o.classList.toggle(i,t)};i(Zo,Ko),i(es,Qo),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Ko)}_getInnerElement(e){return e.matches(ss)?e:te.findOne(ss,e)}_getOuterElement(e){return e.closest(is)||e}static jQueryInterface(e){return this.each(function(){const t=as.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}K.on(document,Ro,os,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),k(this)||as.getOrCreateInstance(this).show()}),K.on(window,Ho,()=>{for(const e of te.find(rs))as.getOrCreateInstance(e)}),F(as);const ls="toast",cs=`.${"bs.toast"}`,us=`mouseover${cs}`,ds=`mouseout${cs}`,ps=`focusin${cs}`,hs=`focusout${cs}`,fs=`hide${cs}`,ms=`hidden${cs}`,gs=`show${cs}`,vs=`shown${cs}`,ys="fade",bs="hide",_s="show",ws="showing",xs={animation:"boolean",autohide:"boolean",delay:"number"},As={animation:!0,autohide:!0,delay:5e3};class Es extends Z{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return As}static get DefaultType(){return xs}static get NAME(){return ls}show(){if(K.trigger(this._element,gs).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ys);const e=()=>{this._element.classList.remove(ws),K.trigger(this._element,vs),this._maybeScheduleHide()};this._element.classList.remove(bs),D(this._element),this._element.classList.add(_s,ws),this._queueCallback(e,this._element,this._config.animation)}
7hide(){if(!this.isShown())return;if(K.trigger(this._element,fs).defaultPrevented)return;const e=()=>{this._element.classList.add(bs),this._element.classList.remove(ws,_s),K.trigger(this._element,ms)};this._element.classList.add(ws),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(_s),super.dispose()}isShown(){return this._element.classList.contains(_s)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){K.on(this._element,us,e=>this._onInteraction(e,!0)),K.on(this._element,ds,e=>this._onInteraction(e,!1)), 8K.on(this._element,ps,e=>this._onInteraction(e,!0)),K.on(this._element,hs,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Es.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne(Es),F(Es);return{Alert:ce,Button:fe,Carousel:ut,Collapse:kt,Dropdown:mn,Modal:ai,Offcanvas:Ti,Popover:go,ScrollSpy:Do,Tab:as,Toast:Es,Tooltip:co}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?e(require("jquery")):e(jQuery)}(function(e){function t(){var t=s.settings;if(t.autoDispose&&!e.contains(document.documentElement,this))return e(this).timeago("dispose"),this;var r=n(this);return isNaN(r.datetime)||(0===t.cutoff||Math.abs(o(r.datetime))<t.cutoff?e(this).text(i(r.datetime,e(this).attr("lang")?e(this).attr("lang"):s.settings.lang)):e(this).attr("title").length>0&&e(this).text(e(this).attr("title"))),this}function n(t){if(!(t=e(t)).data("timeago")){t.data("timeago",{datetime:s.datetime(t)});var n=e.trim(t.text());s.settings.localeTitle?t.attr("title",t.data("timeago").datetime.toLocaleString()):!(n.length>0)||s.isTime(t)&&t.attr("title")||t.attr("title",n)}return t.data("timeago")}function i(e,t){return s.inWords(o(e),t)}function o(e){return(new Date).getTime()-e.getTime()}e.timeago=function(t){return t instanceof Date?i(t):i("string"==typeof t?e.timeago.parse(t):"number"==typeof t?new Date(t):e.timeago.datetime(t))};var s=e.timeago;e.extend(e.timeago,{settings:{refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,autoDispose:!0,lang:"en",strings:{en:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:"any moment now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}}},inWords:function(t,n){function i(n,i){var s=e.isFunction(n)?n(i,t):n,r=o.numbers&&o.numbers[i]||i;return s.replace(/%d/i,r)}if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";var o=this.settings.strings[n]||this.settings.strings[this.settings.lang]||this.settings.strings.en,s=o.prefixAgo,r=o.suffixAgo;if(this.settings.allowFuture&&t<0&&(s=o.prefixFromNow,r=o.suffixFromNow),!this.settings.allowPast&&t>=0)return o.inPast;var a=Math.abs(t)/1e3,l=a/60,c=l/60,u=c/24,d=u/365,p=a<45&&i(o.seconds,Math.round(a))||a<90&&i(o.minute,1)||l<45&&i(o.minutes,Math.round(l))||l<90&&i(o.hour,1)||c<24&&i(o.hours,Math.round(c))||c<42&&i(o.day,1)||u<30&&i(o.days,Math.round(u))||u<45&&i(o.month,1)||u<365&&i(o.months,Math.round(u/30))||d<1.5&&i(o.year,1)||i(o.years,Math.round(d)),h=o.wordSeparator||"";return void 0===o.wordSeparator&&(h=" "),e.trim([s,p,r].join(h))},parse:function(t){var n=e.trim(t);return n=(n=(n=(n=(n=n.replace(/\.\d+/,"")).replace(/-/,"/").replace(/-/,"/")).replace(/T/," ").replace(/Z/," UTC")).replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2")).replace(/([\+\-]\d\d)$/," $100"),new Date(n)},datetime:function(t){var n=s.isTime(t)?e(t).attr("datetime"):e(t).attr("title");return s.parse(n)},isTime:function(t){return"time"===e(t).get(0).tagName.toLowerCase()}});var r={init:function(){r.dispose.call(this);var n=e.proxy(t,this);n();var i=s.settings;i.refreshMillis>0&&(this._timeagoInterval=setInterval(n,i.refreshMillis))},update:function(n){var i=n instanceof Date?n:s.parse(n);e(this).data("timeago",{datetime:i}
8),s.settings.localeTitle&&e(this).attr("title",i.toLocaleString()),t.apply(this)},updateFromDOM:function(){e(this).data("timeago",{datetime:s.parse(s.isTime(this)?e(this).attr("datetime"):e(this).attr("title"))}),t.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};e.fn.timeago=function(e,t){var n=e?r[e]:r.init;if(!n)throw new Error("Unknown function name '"+e+"' for timeago");return this.each(function(){n.call(this,t)}),this},document.createElement("abbr"),document.createElement("time")}),function(e){var t=function(){e("time[data-time-ago]").timeago()};e(t),e(document).on("turbolinks:load page:load ajax:success ajaxSuccess",t)}(jQuery);var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(e){return e.raw=e},$jscomp.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},$jscomp.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}},$jscomp.makeIterator=function(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):$jscomp.arrayIterator(e)},$jscomp.arrayFromIterator=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n},$jscomp.arrayFromIterable=function(e){return e instanceof Array?e:$jscomp.arrayFromIterator($jscomp.makeIterator(e))},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(e){var t=function(){};return t.prototype=e,new t},$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(e,t){var n=$jscomp.propertyToPolyfillSymbol[t];return null==n?e[t]:void 0!==(n=e[n])?n:e[t]};$jscomp.polyfill=function(e,t,n,i){t&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,t,n,i):$jscomp.polyfillUnisolated(e,t,n,i))},$jscomp.polyfillUnisolated=function(e,t,n,i){for(n=$jscomp.global,e=e.split("."),i=0;i<e.length-1;i++){var o=e[i];if(!(o in n))return;n=n[o]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},$jscomp.polyfillIsolated=function(e,t,n,i){var o=e.split(".");e=1===o.length,i=o[0],i=!e&&i in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var s=0;s<o.length-1;s++){var r=o[s];if(!(r in i))return;i=i[r]}o=o[o.length-1],null!=(t=t(n=$jscomp.IS_SYMBOL_NATIVE&&"es6"===n?i[o]:null))&&(e?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==n&&(void 0===$jscomp.propertyToPolyfillSymbol[o]&&(n=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+n+"$"+o),$jscomp.defineProperty(i,$jscomp.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))},$jscomp.getConstructImplementation=function(){function e(){function e(){}return new e,Reflect.construct(e,[],function(){}),new e instanceof e}if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(e,n,i){return e=t(e,n),i&&Reflect.setPrototypeOf(e,i.prototype),e}}return function(e,t,n){return void 0===n&&(n=e),n=$jscomp.objectCreate(n.prototype||Ob
8ject.prototype),Function.prototype.apply.call(e,n,t)||n}},$jscomp.construct=$jscomp.getConstructImplementation(),$jscomp.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch(e){}return!1},$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null,$jscomp.inherits=function(e,t){if(e.prototype=$jscomp.objectCreate(t.prototype),e.prototype.constructor=e,$jscomp.setPrototypeOf){var n=$jscomp.setPrototypeOf;n(e,t)}else for(n in t)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.superClass_=t.prototype};var DOM={select:function(e,t){return(t=void 0===t?document:t).querySelector(e)},selectAll:function(e,t){return(t=void 0===t?document:t).querySelectorAll(e)},children:function(e,t){for(var n=[],i=e.children,o=i.length,s=0;s<o;++s){var r=i[s];r.matches(t)&&n.push(r)}return n},parents:function(e,t){for(var n=[];e&&e!==document;e=e.parentNode)t?e.matches(t)&&n.push(e):n.push(e);return n},rect:function(e){var t=window,n=void 0!==t.pageYOffset?t.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;return{left:(e=e.getBoundingClientRect()).left+t.pageXOffset,top:e.top+n,height:e.height,width:e.width}}},Emitter=function(){};Emitter.prototype.on=function(e,t,n){"string"==typeof e?(this.listeners=this.listeners||{},this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)):e.addEventListener(t,n,!1)},Emitter.prototype.off=function(e,t,n){"string"==typeof e?(this.listeners=this.listeners||{},!1!=e in this.listeners&&this.listeners[e].splice(this.listeners[e].indexOf(t),1)):e.removeEventListener(t,n)},Emitter.prototype.emit=function(e){if(this.listeners=this.listeners||{},!1!=e in this.listeners)for(var t=0;t<this.listeners[e].length;t++)this.listeners[e][t].apply(this,Array.prototype.slice.call(arguments,1))};var Nestable=function(e,t){return Emitter.call(this),this.defaultConfig={threshold:40,animation:0,collapseButtonContent:"\u2013",expandButtonContent:"+",includeContent:!1,maxDepth:3,showPlaceholderOnMove:!1,nodes:{list:"ol",item:"li"},classes:{list:"nst-list",item:"nst-item",content:"nst-content",parent:"nst-parent",dragging:"nst-dragging",handle:"nst-handle",placeholder:"nst-placeholder",container:"nst-container",button:"nst-button",collapsed:"nst-collapsed",disabled:"nst-disabled",error:"nst-error",moving:"nst-moving"}},this.config=Object.assign({},this.defaultConfig,t),t&&(t.nodes&&(this.config.nodes=Object.assign({},this.defaultConfig.nodes,t.nodes)),t.classes&&(this.config.classes=Object.assign({},this.defaultConfig.classes,t.classes))),this.parent="string"==typeof e?DOM.select(e):e,this.parent?this.parent._nestable?console.error("There is already a Nestable instance active on this node."):(this.initialised=!1,this.disabled=!0,this.last={x:0,y:0},void this.init()):console.error("Node ("+e+") not found.")};$jscomp.inherits(Nestable,Emitter),Nestable.prototype.init=function(e){var t=this;if(!this.initialised){this.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,e&&(this.config=Object.assign({},this.defaultConfig,e)),this.dragDepth=0,this.parent.classList.add(this.config.classes.list),this.parent.classList.add(this.config.classes.parent),e=DOM.children(this.parent,this.config.nodes.item);for(var n=(e=$jscomp.makeIterator(e)).next();!n.done;n=e.next())this._nest(n.value);if(this.placeholder=document.createElement(this.config.nodes.item),this.placeholder.classList.add(this.config.classes.placeholder),this._getData(),this.parent._nestable=this,window._nestableInstances?(window._nestableInstances+=1,this.id=window._nestableInstances):this.id=window._nestableInstances=1,this.enable(),this._getData(),setTimeout(function(){t.emit("init")},10),this.initialised=!0,this.config.data){var i=new XMLHttpRequest;i.responseType="json",i.open("GET",this.config.data,!0),i.onload=function(){t.load(i)},i.send(null)}}},Nestable.prototype.load=function(e){var t=this;this.removeAll(),"response"in e&&(e=e.response);for(var n=function(e){var i=document.createElement(t.config.nodes.item);if(i.textContent=e.content,e.children){var o=document.createElement(t.config.nodes.list);i.appendChild(o);for(var s=(e=$jscomp.makeIterator(e.children)).next();!s.done;s=e.next())o.appendChild(n(s.value))}return i},i=(e=$jscomp.makeIterator(e)).next();!i.done;i=e.next())this._nest(this.parent.appendChild(n(i.value)));
8this.emit("loaded")},Nestable.prototype.destroy=function(){var e=this;if(this.initialised){this.initialised=!1,this.disable(),this.parent.classList.remove(this.config.classes.list),this.parent.classList.remove(this.config.classes.parent),delete this.parent._nestable,window._nestableInstances&&--window._nestableInstances;for(var t=function(n){n.classList.remove(e.config.classes.item),n.classList.remove(e.config.classes.collapsed);var i=n.querySelector(e.config.nodes.list),o=n.querySelector("."+e.config.classes.content);n.querySelector("."+e.config.classes.handle);var s=n.querySelector("."+e.config.classes.button);o.classList.contains(e.config.classes.handle);for(var r=document.createDocumentFragment(),a=o.childNodes.length-1;0<=a;a--)r.insertBefore(o.childNodes[a],r.firstChild);if(n.insertBefore(r,o),n.removeChild(o),i)for(i.classList.remove(e.config.classes.list),n.removeChild(s),n=DOM.children(i,e.config.nodes.item),i=(n=$jscomp.makeIterator(n)).next();!i.done;i=n.next())t(i.value)},n=DOM.children(this.parent,this.config.nodes.item),i=(n=$jscomp.makeIterator(n)).next();!i.done;i=n.next())t(i.value);this.emit("destroy",this.parent)}},Nestable.prototype.bind=function(){this.events={start:this._onMouseDown.bind(this),move:this._onMouseMove.bind(this),end:this._onMouseUp.bind(this)},this.touch?(this.parent.addEventListener("touchstart",this.events.start,!1),document.addEventListener("touchmove",this.events.move,!1),document.addEventListener("touchend",this.events.end,!1),document.addEventListener("touchcancel",this.events.end,!1)):(this.parent.addEventListener("mousedown",this.events.start,!1),document.addEventListener("mousemove",this.events.move,!1),document.addEventListener("mouseup",this.events.end,!1))},Nestable.prototype.unbind=function(){this.parent.removeEventListener("mousedown",this.events.start),document.removeEventListener("mousemove",this.events.move),document.removeEventListener("mouseup",this.events.end)},Nestable.prototype.enable=function(){this.disabled&&(this.bind(),this.parent.classList.remove(this.config.classes.disabled),this.disabled=!1)},Nestable.prototype.disable=function(){this.disabled||(this.unbind(),this.parent.classList.add(this.config.classes.disabled),this.disabled=!0)},Nestable.prototype.serialise=function(){this.serialize()},Nestable.prototype.serialize=function(){return this._getData("data")},Nestable.prototype.collapseAll=function(){for(var e=DOM.selectAll("."+this.config.classes.item,this.parent),t=(e=$jscomp.makeIterator(e)).next();!t.done;t=e.next())if(!(t=t.value).classList.contains(this.config.classes.collapsed)){var n=t.querySelector("."+this.config.classes.button);n&&this._collapseList(t,n)}},Nestable.prototype.expandAll=function(){for(var e=DOM.selectAll("."+this.config.classes.item,this.parent),t=(e=$jscomp.makeIterator(e)).next();!t.done;t=e.next())if((t=t.value).classList.contains(this.config.classes.collapsed)){var n=t.querySelector("."+this.config.classes.button);n&&this._expandList(t,n)}},Nestable.prototype.add=function(e,t){if(t||(t=this.parent),this._nest(e),t!==this.parent){var n=DOM.select(this.config.nodes.list,t);t=n||this._makeParent(t)}t.appendChild(e),this.update()},Nestable.prototype.remove=function(e,t){t=void 0===t||t;var n=e.closest(this.config.nodes.list);if(t)n.removeChild(e);else{var i=e.querySelector("."+this.config.classes.list);if(i&&(i=DOM.children(i,this.config.nodes.item)).length){for(var o=document.createDocumentFragment(),s=i.length-1;0<=s;s--)o.insertBefore(i[s],o.firstElementChild);n.replaceChild(o,e)}}this.update()},Nestable.prototype.removeAll=function(){for(var e=this.parent.children,t=e.length-1;0<=t;t--)this.parent.removeChild(e[t])},Nestable.prototype.update=function(){this._getData("nodes"),this.emit("update")},Nestable.prototype._nest=function(e){var t=e.querySelector("."+this.config.classes.handle),n=document.createElement("div");n.classList.add(this.config.classes.content);var i=e.childNodes;if(t)for(s=i.length-1;0<=s;s--){var o=i[s];o!==t&&o.nodeName.toLowerCase()!==this.config.nodes.list&&n.insertBefore(o,n.firstChild)}else{n.classList.add(this.config.classes.handle);for(var s=i.length-1;0<=s;s--)(t=i[s]).nodeName.toLowerCase()!==this.config.nodes.list&&n.insertBefore(t,n.firstChild)}if(e.classList.add(this.config.classes.item),i=e.querySelector(this.config.nodes.list))for(e.insertBefore(n,i),n=this._makeParent(e),n=DOM.children(n,this.config.nodes.item),e.classList.contains(this.config.classes.collapsed)&&this._collapseList(e),n=(e=$jscomp.makeIterator(n)).next();!n.done;n=e.next())this._nest(n.value);else e.appendChild(n)},Nestable.prototype._isDisabled=function(e,t){return t=void 0===t?"disabled":t,null!==e&&!!("nestableDisabled"in e.dataset&&("disabled"===t&&(!e.dataset.nestableDisabled.length||"disabled"===e.dataset.nestableDisabled)||"dragging"===t&&"dragging"===e.dataset.nestableDisabled||"nesting"===t&&"nesting"===e.dataset.nestableDisabled)||e.classList.contains(this.config.classes.disabled)||DOM.parents(e,"."+this.config.classes.disabled).length)},Nestable.prototype._getEvent=function(e){return this.touch?"touchend"===e.type?e.changedTouches[0]:e.touches[0]:e},Nestable.prototype._onMouseDown=function(e){var t=this._getEvent(e),n=e.target.closest("."+this.config.classes.button),i=e.target.closest("."+this.config.classes.item);if(n)return this._toggleList(i,n);if(!e.target.closest("."+this.config.classes.handle))return!1;if(i){if(this._isDisabled(i)||this._isDisabled(i.parentNode.closest("."+this.config.classes.item)))return!1;
8if(this._isDisabled(i,"dragging"))return this.emit("error.dragging.disabled",i),!1;e.preventDefault(),this.parent.classList.add(this.config.classes.moving),i.classList.add(this.config.classes.dragging),e=DOM.rect(i),this.origin={x:t.pageX,y:t.pageY,original:{x:t.pageX,y:t.pageY}},this.hierarchy={movedNode:i,originalParent:i.parentNode,originalParentItem:i.parentNode.closest("."+this.config.classes.item)},this.active={maxDepth:!1,collapsedParent:!1,disabledParent:!1,confinedParent:!1,node:i,rect:e,parent:!1,axis:!1},"nestableParent"in i.dataset&&(t=document.getElementById(i.dataset.nestableParent))&&(this.active.parent=t),"nestableAxis"in i.dataset&&("x"===(t=i.dataset.nestableAxis)?this.active.axis="x":"y"===t&&(this.active.axis="y")),this.placeholder.style.height=e.height+"px",this.config.showPlaceholderOnMove&&(this.placeholder.style.opacity=0),this.container||(this.container=document.createElement(this.config.nodes.list),this.container.classList.add(this.config.classes.list),this.container.classList.add(this.config.classes.container),this.container.id="nestable_"+this.id),this.container.style.left=e.left+"px",this.container.style.top=e.top+"px",this.container.style.height=e.height+"px",this.container.style.width=e.width+"px",i.parentNode.insertBefore(this.placeholder,i),document.body.appendChild(this.container),this.container.appendChild(i),this.newParent=!1,this.dragDepth=0,i=DOM.selectAll(this.config.nodes.item,i);for(t=0;t<i.length;t++)(e=DOM.parents(i[t],this.config.nodes.list).length-1)>this.dragDepth&&(this.dragDepth=e);this.emit("start",this.active)}},Nestable.prototype._onMouseMove=function(e){if(this.active){this.config.showPlaceholderOnMove&&(this.placeholder.style.opacity=1);var t=(e=this._getEvent(e)).pageX-this.origin.x,n=e.pageY-this.origin.y;e.pageY>this.last.y?this.last.dirY=1:e.pageY<this.last.y&&(this.last.dirY=-1),e.pageX>this.last.x?this.last.dirX=1:e.pageX<this.last.x&&(this.last.dirX=-1);var i=!1;if(Math.abs(t)>Math.abs(n)?i="x":Math.abs(t)<Math.abs(n)&&(i="y"),n=document.elementsFromPoint(e.pageX,e.pageY-(void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop)),"x"===i&&"y"!==this.active.axis)if(0<this.last.dirX&&t>this.config.threshold){if(i=this.placeholder.previousElementSibling)if(i.classList.contains(this.config.classes.collapsed))this.active.collapsedParent||(this.emit
8("error.collapsed",this.active.node,i),this.active.collapsedParent=!0);else if(n=this._isDisabled(i),t=this._isDisabled(i,"nesting"),n)this.active.disabledParent||(this.emit("error.disabled"),this.active.disabledParent=!0);else{var o=DOM.parents(this.placeholder,this.config.nodes.list).length+this.dragDepth<=this.config.maxDepth;n=i.querySelector(this.config.nodes.list),t?this.active.nestDisabled||(this.emit("error.nesting.disabled",this.active.node),this.active.nestDisabled=!0):o?(this.active.maxDepth=!1,t=this.placeholder.closest("."+this.config.classes.list),n||(n=this._makeParent(i)),this._moveElement(this.placeholder,{parent:n,type:"appendChild"}),this.emit("nest",n,t),this.origin.x=e.pageX):this.active.maxDepth||(this.emit("error.maxdepth",this.active.node,this.config.maxDepth),this.active.maxDepth=!0)}}else 0>this.last.dirX&&t<-this.config.threshold&&(this.active.maxDepth=!1,this.active.nestDisabled=!1,this.active.disabledParent=!1,this.active.collapsedParent=!1,(i=(t=this.placeholder.closest(this.config.nodes.list)).closest(this.config.nodes.item))&&(1<t.childElementCount&&this.placeholder!==t.firstElementChild||2>t.childElementCount&&this.placeholder===t.firstElementChild)&&(t=i.nextElementSibling,n=this.placeholder.closest("."+this.config.classes.list),t?(o=t.closest(this.config.nodes.list),this._moveElement(this.placeholder,{parent:o,type:"insertBefore",sibling:t})):this._moveElement(this.placeholder,{parent:i.closest(this.config.nodes.list),type:"appendChild"}),this.origin.x=e.pageX,this.emit("unnest",i,n)));else for(n=(t=$jscomp.makeIterator(n)).next();!n.done;n=t.next())(n=n.value)!==this.active.node&&!this.active.node.contains(n)&&n.classList.contains(this.config.classes.content)&&"x"!==this.active.axis&&((n=n.closest("."+this.config.classes.item))&&"y"===i&&(n.querySelector(this.config.nodes.list)&&!n.classList.contains(this.config.classes.collapsed)?0<this.last.dirY?this._moveElement(this.placeholder,{parent:n.lastElementChild,type:"insertBefore",sibling:n.lastElementChild.firstElementChild,animatable:n.querySelector("."+this.config.classes.content)}):0>this.last.dirY&&this._moveElement(this.placeholder,{parent:n.parentNode,type:"insertBefore",sibling:n,animatable:n.querySelector("."+this.config.classes.content)}):0<this.last.dirY?(o=n.nextElementSibling)?this._moveElement(this.placeholder,{parent:n.parentNode,type:"insertBefore",sibling:o,animatable:n.querySelector("."+this.config.classes.content)}):this._moveElement(this.placeholder,{parent:n.closest(this.config.nodes.list),type:"appendChild",animatable:n.querySelector("."+this.config.classes.content)}):0>this.last.dirY&&this._moveElement(this.placeholder,{parent:n.parentNode,type:"insertBefore",sibling:n,animatable:n.querySelector("."+this.config.classes.content)}),this.emit("reorder")),(n=n.closest("."+this.config.classes.parent))&&n!==this.parent&&n._nestable&&(this.newParent=n));this.placeholder.classList.toggle(this.config.classes.error,this.active.disabledParent||this.active.maxDepth||this.active.collapsedParent||this.active.confinedParent),i=e.pageX-this.origin.original.x,t=e.pageY-this.origin.original.y,this.active.axis&&("x"===this.active.axis?t=0:"y"===this.active.axis&&(i=0)),this.container.style.transform="translate3d("+i+"px, "+t+"px, 0)",this.lastParent=this.placeholder.parentNode,this.hierarchy.newParent=this.lastParent,this.hierarchy.newParentItem=this.lastParent.closest("."+this.config.classes.item),this.emit("move",this.active)}this.last={x:e.pageX,y:e.pageY}},Nestable.prototype._moveElement=function(e,t){var n=!1,i=!1;if(this._isDisabled(t.parent)||this._isDisabled(t.parent.closest("."+this.config.classes.item)))return!1;if(this.active.parent&&!DOM.parents(t.parent,"#"+this.active.parent.id).includes(this.active.parent))return this.active.confinedParent||(this.emit
8("error.confined",e,this.active.parent,t.parent),this.active.confinedParent=!0),!1;var o=e.closest(this.config.nodes.list);0<this.config.animation&&(n=DOM.rect(this.placeholder),t.animatable&&(i=DOM.rect(t.animatable))),"insertBefore"===t.type?t.parent.insertBefore(e,t.sibling):"appendChild"===t.type&&t.parent.appendChild(e),o.childElementCount||this._unmakeParent(o.parentNode),this.emit("order.change",this.active.node,t.parent,o),0<this.config.animation&&(this._animateElement(this.placeholder,n),t.animatable&&i&&this._animateElement(t.animatable,i))},Nestable.prototype._animateElement=function(e,t){var n=e.style,i=DOM.rect(e);n.transform="translate3d("+(t.left-i.left)+"px, "+(t.top-i.top)+"px, 0px)",this._repaint(e),n.transform="translate3d(0px, 0px, 0px)",n.transition="transform "+this.config.animation+"ms",setTimeout(function(){n.transform="",n.transition=""},this.config.animation)},Nestable.prototype._repaint=function(e){return e.offsetHeight},Nestable.prototype._onMouseUp=function(e){this.active&&(this.config.showPlaceholderOnMove&&(this.placeholder.style.opacity=0),this._getEvent(e),e=DOM.rect(this.active.node),this.container.removeAttribute("style"),this.parent.classList.remove(this.config.classes.moving),this.placeholder.parentNode.replaceChild(this.active.node,this.placeholder),this._animateElement(this.active.node,e),this.placeholder.classList.remove(this.config.classes.error),this.active.node.classList.remove(this.config.classes.dragging),this.active=!1,document.body.removeChild(this.container),this._getData(),this.newParent&&(this.hierarchy.newInstance=this.newParent._nestable,this.newParent._nestable._getData()),this.hierarchy.hierarchy=this.data,this.emit("stop",this.hierarchy),this.update())},Nestable.prototype._toggleList=function(e,t){e.classList.contains(this.config.classes.collapsed)?this._expandList(e,t):this._collapseList(e,t)},Nestable.prototype._collapseList=function(e,t){t||(t=e.querySelector("."+this.config.classes.button)),t.textContent=this.config.expandButtonContent,e.classList.add(this.config.classes.collapsed),this.emit("list.collapse",e)},Nestable.prototype._expandList=function(e,t){t||(t=e.querySelector("."+this.config.classes.button)),t.textContent=this.config.collapseButtonContent,e.classList.remove(this.config.classes.collapsed),this.emit("list.expand",e)},Nestable.prototype._makeParent=function(e){var t=e.querySelector(this.config.nodes.list);t?t.classList.add(this.config.classes.list):((t=document.createElement(this.config.nodes.list)).classList.add(this.config.classes.list),e.appendChild(t));var n=document.createElement("button");return n.classList.add(this.config.classes.button),n.type="button",n.textContent=this.config.collapseButtonContent,e.insertBefore(n,e.firstElementChild),t},Nestable.prototype._unmakeParent=function(e){var t=e.querySelector(this.config.nodes.list),n=e.querySelector("button");t&&e.removeChild(t),n&&e.removeChild(n)},Nestable.prototype._getData=function(e,t){var n=this;e=void 0===e?"nodes":e;var i=[],o=function(t){var i=[];return DOM.children(t,n.config.nodes.item).forEach(function(t){var s={};if("nodes"===e)s.node=t;else if(s.data=Object.assign({},t.dataset),n.config.includeContent){var r=t.querySelector("."+n.config.classes.content);r&&(s.content=r.innerHTML)}(t=t.querySelector(n.config.nodes.list))&&(s.children=o(t)),i.push(s)}),i};return console.log(t,this.parent),i=o(void 0!==t?t:this.parent),"nodes"===e&&(this.data=i),i},function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){function o(e,t){return w.call(e,t)}function s(e,t){var n,i,o,s,r,a,l,c,u,d,p,h=t&&t.split("/"),f=b.map,m=f&&f["*"]||{};if(e){for(r=(e=e.split("/")).length-1,b.nodeIdCompat&&A.test(e[r])&&(e[r]=e[r].replace(A,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||m)&&f){for(u=(n=e.split("/")).length;u>0;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if((o=f[h.slice(0,d).join("/")])&&(o=o[i])){s=o,a=u;break}if(s)break;!l&&m&&m[i]&&(l=m[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function r(e,n){return function(){var i=x.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),f.apply(t,i.concat([e,n]))}}function a(e){return function(t){return s(t,e)}}function l(e){return function(t){v[e]=t}}function c(e){if(o(y,e)){var n=y[e];delete y[e],_[e]=!0,h.apply(t,n)}if(!o(v,e)&&!o(_,e))throw new Error("No "+e);return v[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return e?u(e):[]}function p(e){return function(){return b&&b.config&&b.config[e]||{}}}var h,f,m,g,v={},y={},b={},_={},w=Object.prototype.hasOwnProperty,x=[].slice,A=/\.js$/;m=function(e,t){var n,i=u(e),o=i[0],r=t[1];return e=i[1],o&&(n=c(o=s(o,r))),o?e=n&&n.normalize?n.normalize(e,a(r)):s(e,r):(o=(i=u(e=s(e,r)))[0],e=i[1],o&&(n=c(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return r(e)},exports:function(e){var t=v[e];return void 0!==t?t:v[e]={}},module:function(e){return{id:e,uri:"",exports:v[e],config:p(e)}}},h=function(e,n,i,s){var a,u,p,h,f,b,w,x=[],A=typeof i;if(b=d(s=s||e),"undefined"===A||"function"===A){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(u=(h=m(n[f],b)).f))x[f]=g.require(e);else if("exports"===u)x[f]=g.exports(e),w=!0;else if("module"===u)a=x[f]=g.module(e);else if(o(v,u)||o(y,u)||o(_,u))x[f]=c(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,r(s,!0),l(u),{}),x[f]=v[u]}p=i?i.apply(v[e],x):void 0,e&&(a&&a.exports!==t&&a.exports!==v[e]?v[e]=a.exports:p===t&&w||(v[e]=p))}else e&&(v[e]=i)}
8,e=n=f=function(e,n,i,o,s){if("string"==typeof e)return g[e]?g[e](n):c(m(e,d(n)).f);if(!e.splice){if((b=e).deps&&f(b.deps,b.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=o,o=s),o?h(t,e,n,i):setTimeout(function(){h(t,e,n,i)},4),f},f.config=function(e){return f(e)},e._defined=v,i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),o(v,e)||o(y,e)||(y[e]=[e,t,n])},i.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i)}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}var n={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var o in t)i.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,o=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),o=n.prototype.constructor),o.apply(this,arguments)}function o(){this.constructor=i}var s=t(n),r=t(e);n.displayName=e.displayName,i.prototype=new o;for(var a=0;a<r.length;a++){var l=r[a];i.prototype[l]=e.prototype[l]}for(var c=function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var o=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),o.apply(this,arguments)}},u=0;u<s.length;u++){var d=s[u];i.prototype[d]=c(d)}return i}},i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)), 9"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var s=n[o];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),o==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},n.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,s=n.style.overflowY;return(o!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===o||"scroll"===s||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},n.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var t=e(this),n=e.data(this,"data"),o=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(o,i)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var i={role:"treeitem","aria-selected":"false"};for(var o in t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==t.id&&delete i["aria-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]),i){var s=i[o];n.setAttribute(o,s)}if(t.children){var r=e(n),a=document.createElement("strong");a.className="select2-results__group",e(a),this.template(t,a);for(var l=[],c=0;c<t.children.length;c++){var u=t.children[c],d=this.option(u);l.push(d)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),r.append(a),r.append(p)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t){var n=this,i=t.id+"-results";this.$results.attr("id",i),t.on("results:all",function(e){n.clear(),n.append(e.data),t.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),t.on("results:append",function(e){n.append(e.data),t.isOpen()&&n.setClasses()}),t.on("query",function(e){n.hideMessages(),n.showLoading(e)}
vendor: 4,716 bytes, line 9
9),t.on("select",function(){t.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),t.on("open",function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()}),t.on("close",function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=n.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e);if(0!==i){var o=i-1;0===e.length&&(o=0);var s=t.eq(o);s.trigger("mouseenter");var r=n.$results.offset().top,a=s.offset().top,l=n.$results.scrollTop()+(a-r);0===o?n.$results.scrollTop(0):a-r<0&&n.$results.scrollTop(l)}}),t.on("results:next",function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e)+1;if(!(i>=t.length)){var o=t.eq(i);o.trigger("mouseenter");var s=n.$results.offset().top+n.$results.outerHeight(!1),r=o.offset().top+o.outerHeight(!1),a=n.$results.scrollTop()+r-s;0===i?n.$results.scrollTop(0):r>s&&n.$results.scrollTop(a)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){n.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,s=e.deltaY<0&&i<=n.$results.height();o?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var i=e(this),o=i.data("data");"true"!==i.attr("aria-selected")?n.trigger("select",{originalEvent:t,data:o}):n.options.get("multiple")?n.trigger("unselect",{originalEvent:t,data:o}):n.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=e(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:t,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),s=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),s=i(t,n);null==s?n.style.display="none":"string"==typeof s?n.innerHTML=o(s):e(n).append(s)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e){var t=this,i=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){t.trigger("focus",e)}),this.$selection.on("blur",function(e){t._handleBlur(e)}),this.$selection.on("keydown",function(e){t.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){t.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){t.update(e.data)}),e.on("open",function(){t.$selection.attr("aria-expanded","true"),t.$selection.attr("aria-owns",i),t._attachCloseHandler(e)}),e.on("close",function(){t.$selection.attr("aria-expanded","fal
9se"),t.$selection.removeAttr("aria-activedescendant"),t.$selection.removeAttr("aria-owns"),t.$selection.focus(),t._detachCloseHandler(e)}),e.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)}),e.on("disable",function(){t.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target).closest(".select2");e(".select2.select2-container--open").each(function(){var t=e(this);this!=n[0]&&t.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var o=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o),this.$selection.attr("aria-labelledby",o),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),e.on("focus",function(){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(e){n.update(e.data)})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)}else this.clear()},i}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,n){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.options.get("disabled")){var n=e(this).parent().data("data");o.trigger("unselect",{originalEvent:t,data:n})}})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],s=this.selectionContainer(),r=this.display(o,s);s.append(r),s.prop("title",o.title||o.text),s.data("data",o),t.push(s)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}
9),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var s={data:i[o]};if(this.trigger("unselect",s),s.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=e('<span class="select2-selection__clear">×</span>');i.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var o=this;e.call(this,t,i),t.on("open",function(){o.$search.trigger("focus")}),t.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),t.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),t.on("disable",function(){o.$search.prop("disabled",!0)}),t.on("focus",function(){o.$search.trigger("focus")}),t.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var t=o.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var i=t.data("data");o.searchRemoveChoice(i),e.preventDefault()}}});var s=document.documentMode,r=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){r?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(r&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}})},i.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting"],r=["opening","closing","selecting","unselecting"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,s)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,r)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={}
9,n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"\xe2\u2019\xb6":"A","\xef\xbc\xa1":"A","\xc3\u20ac":"A","\xc3\x81":"A","\xc3\u201a":"A","\xe1\xba\xa6":"A","\xe1\xba\xa4":"A","\xe1\xba\xaa":"A","\xe1\xba\xa8":"A","\xc3\u0192":"A","\xc4\u20ac":"A","\xc4\u201a":"A","\xe1\xba\xb0":"A","\xe1\xba\xae":"A","\xe1\xba\xb4":"A","\xe1\xba\xb2":"A","\xc8\xa6":"A","\xc7 ":"A","\xc3\u201e":"A","\xc7\u017e":"A","\xe1\xba\xa2":"A","\xc3\u2026":"A","\xc7\xba":"A","\xc7\x8d":"A","\xc8\u20ac":"A","\xc8\u201a":"A","\xe1\xba ":"A","\xe1\xba\xac":"A","\xe1\xba\xb6":"A","\xe1\xb8\u20ac":"A","\xc4\u201e":"A","\xc8\xba":"A","\xe2\xb1\xaf":"A","\xea\u0153\xb2":"AA","\xc3\u2020":"AE","\xc7\xbc":"AE","\xc7\xa2":"AE","\xea\u0153\xb4":"AO","\xea\u0153\xb6":"AU","\xea\u0153\xb8":"AV","\xea\u0153\xba":"AV","\xea\u0153\xbc":"AY","\xe2\u2019\xb7":"B","\xef\xbc\xa2":"B","\xe1\xb8\u201a":"B","\xe1\xb8\u201e":"B","\xe1\xb8\u2020":"B","\xc9\u0192":"B","\xc6\u201a":"B","\xc6\x81":"B","\xe2\u2019\xb8":"C","\xef\xbc\xa3":"C","\xc4\u2020":"C","\xc4\u02c6":"C","\xc4\u0160":"C","\xc4\u0152":"C","\xc3\u2021":"C","\xe1\xb8\u02c6":"C","\xc6\u2021":"C","\xc8\xbb":"C","\xea\u0153\xbe":"C","\xe2\u2019\xb9":"D","\xef\xbc\xa4":"D","\xe1\xb8\u0160":"D","\xc4\u017d":"D","\xe1\xb8\u0152":"D","\xe1\xb8\x90":"D","\xe1\xb8\u2019":"D","\xe1\xb8\u017d":"D","\xc4\x90":"D","\xc6\u2039":"D","\xc6\u0160":"D","\xc6\u2030":"D","\xea\x9d\xb9":"D","\xc7\xb1":"DZ","\xc7\u201e":"DZ","\xc7\xb2":"Dz","\xc7\u2026":"Dz","\xe2\u2019\xba":"E","\xef\xbc\xa5":"E","\xc3\u02c6":"E","\xc3\u2030":"E","\xc3\u0160":"E","\xe1\xbb\u20ac":"E","\xe1\xba\xbe":"E","\xe1\xbb\u201e":"E","\xe1\xbb\u201a":"E","\xe1\xba\xbc":"E","\xc4\u2019":"E","\xe1\xb8\u201d":"E","\xe1\xb8\u2013":"E","\xc4\u201d":"E","\xc4\u2013":"E","\xc3\u2039":"E","\xe1\xba\xba":"E","\xc4\u0161":"E","\xc8\u201e":"E","\xc8\u2020":"E","\xe1\xba\xb8":"E","\xe1\xbb\u2020":"E","\xc8\xa8":"E","\xe1\xb8\u0153":"E","\xc4\u02dc":"E","\xe1\xb8\u02dc":"E","\xe1\xb8\u0161":"E","\xc6\x90":"E","\xc6\u017d":"E","\xe2\u2019\xbb":"F","\xef\xbc\xa6":"F","\xe1\xb8\u017e":"F","\xc6\u2018":"F","\xea\x9d\xbb":"F","\xe2\u2019\xbc":"G","\xef\xbc\xa7":"G","\xc7\xb4":"G","\xc4\u0153":"G","\xe1\xb8 ":"G","\xc4\u017e":"G","\xc4 ":"G","\xc7\xa6":"G","\xc4\xa2":"G","\xc7\xa4":"G","\xc6\u201c":"G","\xea\u017e ":"G","\xea\x9d\xbd":"G","\xea\x9d\xbe":"G","\xe2\u2019\xbd":"H","\xef\xbc\xa8":"H","\xc4\xa4":"H","\xe1\xb8\xa2":"H","\xe1\xb8\xa6":"H","\xc8\u017e":"H","\xe1\xb8\xa4":"H","\xe1\xb8\xa8":"H","\xe1\xb8\xaa":"H","\xc4\xa6":"H","\xe2\xb1\xa7":"H","\xe2\xb1\xb5":"H","\xea\u017e\x8d":"H","\xe2\u2019\xbe":"I","\xef\xbc\xa9":"I","\xc3\u0152":"I","\xc3\x8d":"I","\xc3\u017d":"I","\xc4\xa8":"I","\xc4\xaa":"I","\xc4\xac":"I","\xc4\xb0":"I","\xc3\x8f":"I","\xe1\xb8\xae":"I","\xe1\xbb\u02c6":"I","\xc7\x8f":"I","\xc8\u02c6":"I","\xc8\u0160":"I","\xe1\xbb\u0160":"I","\xc4\xae":"I","\xe1\xb8\xac":"I","\xc6\u2014":"I","\xe2\u2019\xbf":"J","\xef\xbc\xaa":"J","\xc4\xb4":"J","\xc9\u02c6":"J","\xe2\u201c\u20ac":"K","\xef\xbc\xab":"K","\xe1\xb8\xb0":"K","\xc7\xa8":"K","\xe1\xb8\xb2":"K","\xc4\xb6":"K","\xe1\xb8\xb4":"K","\xc6\u02dc":"K","\xe2\xb1\xa9":"K","\xea\x9d\u20ac":"K","\xea\x9d\u201a":"K","\xea\x9d\u201e":"K","\xea\u017e\xa2":"K","\xe2\u201c\x81":"L","\xef\xbc\xac":"L","\xc4\xbf":"L","\xc4\xb9":"L","\xc4\xbd":"L","\xe1\xb8\xb6":"L","\xe1\xb8\xb8":"L","\xc4\xbb":"L","\xe1\xb8\xbc":"L","\xe1\xb8\xba":"L","\xc5\x81":"L","\xc8\xbd":"L","\xe2\xb1\xa2":"L","\xe2\xb1 ":"L","\xea\x9d\u02c6":"L","\xea\x9d\u2020":"L","\xea\u017e\u20ac":"L","\xc7\u2021":"LJ","\xc7\u02c6":"Lj","\xe2\u201c\u201a":"M","\xef\xbc\xad":"M","\xe1\xb8\xbe":"M","\xe1\xb9\u20ac":"M","\xe1\xb9\u201a":"M","\xe2\xb1\xae":"M","\xc6\u0153":"M","\xe2\u201c\u0192":"N","\xef\xbc\xae":"N","\xc7\xb8":"N","\xc5\u0192":"N","\xc3\u2018":"N","\xe1\xb9\u201e":"N","\xc5\u2021":"N","\xe1\xb9\u2020":"N","\xc5\u2026":"N","\xe1\xb9\u0160":"N","\xe1\xb9\u02c6":"N","\xc8 ":"N","\xc6\x9d":"N","\xea\u017e\x90":"N","\xea\u017e\xa4":"N","\xc7\u0160":"NJ","\xc7\u2039":"Nj","\xe2\u201c\u201e":"O","\xef\xbc\xaf":"O","\xc3\u2019":"O","\xc3\u201c":"O","\xc3\u201d":"O","\xe1\xbb\u2019":"O","\xe1\xbb\x90":"O","\xe1\xbb\u2013":"O","\xe1\xbb\u201d":"O","\xc3\u2022":"O","\xe1\xb9\u0152":"O","\xc8\xac":"O","\xe1\xb9\u017d":"O","\xc5\u0152":"O","\xe1\xb9\x90":"O","\xe1\xb9\u2019":"O","\xc5\u017d":"O","\xc8\xae":"O","\xc8\xb0":"O","\xc3\u2013":"O","\xc8\xaa":"O","\xe1\xbb\u017d":"O","\xc5\x90":"O","\xc7\u2018":"O","\xc8\u0152":"O","\xc8\u017d":"O","\xc6 ":"O","\xe1\xbb\u0153":"O","\xe1\xbb\u0161":"O","\xe1\xbb ":"O","\xe1\xbb\u017e":"O","\xe1\xbb\xa2":"O","\xe1\xbb\u0152":"O","\xe1\xbb\u02dc":"O","\xc7\xaa":"O","\xc7\xac":"O","\xc3\u02dc":"O","\xc7\xbe":"O","\xc6\u2020":"O","\xc6\u0178":"O","\xea\x9d\u0160":"O","\xea\x9d\u0152":"O","\xc6\xa2":"OI","\xea\x9d\u017d":"OO","\xc8\xa2":"OU","\xe2\u201c\u2026":"P","\xef\xbc\xb0":"P","\xe1\xb9\u201d":"P","\xe1\xb9\u2013":"P","\xc6\xa4":"P","\xe2\xb1\xa3":"P","\xea\x9d\x90":"P","\xea\x9d\u2019":"P","\xea\x9d\u201d":"P","\xe2\u201c\u2020":"Q","\xef\xbc\xb1":"Q","\xea\x9d\u2013":"Q","\xea\x9d\u02dc":"Q","\xc9\u0160":"Q","\xe2\u201c\u2021":"R","\xef\xbc\xb2":"R","\xc5\u201d":"R","\xe1\xb9\u02dc":"R","\xc5\u02dc":"R","\xc8\x90":"R","\xc8\u2019":"R","\xe1\xb9\u0161":"R","\xe1\xb9\u0153":"R","\xc5\u2013":"R","\xe1\xb9\u017e":"R","\xc9\u0152":"R","\xe2\xb1\xa4":"R","\xea\x9d\u0161":"R","\xea\u017e\xa6":"R","\xea\u017e\u201a":"R","\xe2\u201c\u02c6":"S","\xef\xbc\xb3":"S","\xe1\xba\u017e":"S","\xc5\u0161":"S","\xe1\xb9\xa4":"S","\xc5\u0153":"S","\xe1\xb9 ":"S","\xc5 ":"S","\xe1\xb9\xa6":"S","\xe1\xb9\xa2":"S","\xe1\xb9\xa8":"S","\xc8\u02dc":"S","\xc5\u017e":"S","\xe2\xb1\xbe":"S","\xea\u017e\xa8":"S","\xea\u017e\u201e":"S","\xe2\u201c\u2030":"T","\xef\xbc\xb4":"T","\xe1\xb9\xaa":"T","\xc5\xa4":"T","\xe1\xb9\xac":"T","\xc8\u0161":"T","\xc5\xa2":"T","\xe1\xb9\xb0":"T","\xe1\xb9\xae":"T","\xc5\xa6":"T","\xc6\xac":"T","\xc6\xae":"T","\xc8\xbe":"T","\xea\u017e\u2020":"T","\xea\u0153\xa8":"TZ","\xe2\u201c\u0160":"U","\xef\xbc\xb5":"U","\xc3\u2122":"U","\xc3\u0161":"U","\xc3\u203a":"U","\xc5\xa8":"U","\xe1\xb9\xb8":"U","\xc5\xaa":"U","\xe1\xb9\xba":"U","\xc5\xac":"U","\xc3\u0153":"U","\xc7\u203a":"U","\xc7\u2014":"U","\xc7\u2022":"U","\xc7\u2122":"U","\xe1\xbb\xa6":"U","\xc5\xae":"U","\xc5\xb0":"U","\xc7\u201c":"U","\xc8\u201d":"U","\xc8\u2013":"U","\xc6\xaf":"U","\xe1\xbb\xaa":"U","\xe1\xbb\xa8":"U","\xe1\xbb\xae":"U","\xe1\xbb\xac":"U","\xe1\xbb\xb0":"U","\xe1\xbb\xa4":"U","\xe1\xb9\xb2":"U","\xc5\xb2":"U","\xe1\xb9\xb6":"U","\xe1\xb9\xb4":"U","\xc9\u201e":"U","\xe2\u201c\u2039":"V","\xef\xbc\xb6":"V","\xe1\xb9\xbc":"V","\xe1\xb9\xbe":"V","\xc6\xb2":"V","\xea\x9d\u017e":"V","\xc9\u2026":"V","\xea\x9d ":"VY","\xe2\u201c\u0152":"W","\xef\xbc\xb7":"W","\xe1\xba\u20ac":"W","\xe1\xba\u201a":"W","\xc5\xb4":"W","\xe1\xba\u2020":"W","\xe1\xba\u201e":"W","\xe1\xba\u02c6":"W","\xe2\xb1\xb2":"W","\xe2\u201c\x8d":"X","\xef\xbc\xb8":"X","\xe1\xba\u0160":"X","\xe1\xba\u0152":"X","\xe2\u201c\u017d":"Y","\xef\xbc\xb9":"Y","\xe1\xbb\xb2":"Y","\xc3\x9d":"Y","\xc5\xb6":"Y","\xe1\xbb\xb8":"Y","\xc8\xb2":"Y","\xe1\xba\u017d":"Y","\xc5\xb8":"Y","\xe1\xbb\xb6":"Y","\xe1\xbb\xb4":"Y","\xc6\xb3":"Y","\xc9\u017d":"Y","\xe1\xbb\xbe":"Y","\xe2\u201c\x8f":"Z","\xef\xbc\xba":"Z","\xc5\xb9":"Z","\xe1\xba\x90":"Z","\xc5\xbb":"Z","\xc5\xbd":"Z","\xe1\xba\u2019":"Z","\xe1\xba\u201d":"Z","\xc6\xb5":"Z","\xc8\xa4":"Z","\xe2\xb1\xbf":"Z","\xe2\xb1\xab":"Z","\xea\x9d\xa2":"Z","\xe2\u201c\x90":"a","\xef\xbd\x81":"a","\xe1\xba\u0161":"a","\xc3 ":"a","\xc3\xa1":"a","\xc3\xa2":"a","\xe1\xba\xa7":"a","\xe1\xba\xa5":"a","\xe1\xba\xab":"a","\xe1\xba\xa9":"a","\xc3\xa3":"a","\xc4\x81":"a","\xc4\u0192"
9:"a","\xe1\xba\xb1":"a","\xe1\xba\xaf":"a","\xe1\xba\xb5":"a","\xe1\xba\xb3":"a","\xc8\xa7":"a","\xc7\xa1":"a","\xc3\xa4":"a","\xc7\u0178":"a","\xe1\xba\xa3":"a","\xc3\xa5":"a","\xc7\xbb":"a","\xc7\u017d":"a","\xc8\x81":"a","\xc8\u0192":"a","\xe1\xba\xa1":"a","\xe1\xba\xad":"a","\xe1\xba\xb7":"a","\xe1\xb8\x81":"a","\xc4\u2026":"a","\xe2\xb1\xa5":"a","\xc9\x90":"a","\xea\u0153\xb3":"aa","\xc3\xa6":"ae","\xc7\xbd":"ae","\xc7\xa3":"ae","\xea\u0153\xb5":"ao","\xea\u0153\xb7":"au","\xea\u0153\xb9":"av","\xea\u0153\xbb":"av","\xea\u0153\xbd":"ay","\xe2\u201c\u2018":"b","\xef\xbd\u201a":"b","\xe1\xb8\u0192":"b","\xe1\xb8\u2026":"b","\xe1\xb8\u2021":"b","\xc6\u20ac":"b","\xc6\u0192":"b","\xc9\u201c":"b","\xe2\u201c\u2019":"c","\xef\xbd\u0192":"c","\xc4\u2021":"c","\xc4\u2030":"c","\xc4\u2039":"c","\xc4\x8d":"c","\xc3\xa7":"c","\xe1\xb8\u2030":"c","\xc6\u02c6":"c","\xc8\xbc":"c","\xea\u0153\xbf":"c","\xe2\u2020\u201e":"c","\xe2\u201c\u201c":"d","\xef\xbd\u201e":"d","\xe1\xb8\u2039":"d","\xc4\x8f":"d","\xe1\xb8\x8d":"d","\xe1\xb8\u2018":"d","\xe1\xb8\u201c":"d","\xe1\xb8\x8f":"d","\xc4\u2018":"d","\xc6\u0152":"d","\xc9\u2013":"d","\xc9\u2014":"d","\xea\x9d\xba":"d","\xc7\xb3":"dz","\xc7\u2020":"dz","\xe2\u201c\u201d":"e","\xef\xbd\u2026":"e","\xc3\xa8":"e","\xc3\xa9":"e","\xc3\xaa":"e","\xe1\xbb\x81":"e","\xe1\xba\xbf":"e","\xe1\xbb\u2026":"e","\xe1\xbb\u0192":"e","\xe1\xba\xbd":"e","\xc4\u201c":"e","\xe1\xb8\u2022":"e","\xe1\xb8\u2014":"e","\xc4\u2022":"e","\xc4\u2014":"e","\xc3\xab":"e","\xe1\xba\xbb":"e","\xc4\u203a":"e","\xc8\u2026":"e","\xc8\u2021":"e","\xe1\xba\xb9":"e","\xe1\xbb\u2021":"e","\xc8\xa9":"e","\xe1\xb8\x9d":"e","\xc4\u2122":"e","\xe1\xb8\u2122":"e","\xe1\xb8\u203a":"e","\xc9\u2021":"e","\xc9\u203a":"e","\xc7\x9d":"e","\xe2\u201c\u2022":"f","\xef\xbd\u2020":"f","\xe1\xb8\u0178":"f","\xc6\u2019":"f","\xea\x9d\xbc":"f","\xe2\u201c\u2013":"g","\xef\xbd\u2021":"g","\xc7\xb5":"g","\xc4\x9d":"g","\xe1\xb8\xa1":"g","\xc4\u0178":"g","\xc4\xa1":"g","\xc7\xa7":"g","\xc4\xa3":"g","\xc7\xa5":"g","\xc9 ":"g","\xea\u017e\xa1":"g","\xe1\xb5\xb9":"g","\xea\x9d\xbf":"g","\xe2\u201c\u2014":"h","\xef\xbd\u02c6":"h","\xc4\xa5":"h","\xe1\xb8\xa3":"h","\xe1\xb8\xa7":"h","\xc8\u0178":"h","\xe1\xb8\xa5":"h","\xe1\xb8\xa9":"h","\xe1\xb8\xab":"h","\xe1\xba\u2013":"h","\xc4\xa7":"h","\xe2\xb1\xa8":"h","\xe2\xb1\xb6":"h","\xc9\xa5":"h","\xc6\u2022":"hv","\xe2\u201c\u02dc":"i","\xef\xbd\u2030":"i","\xc3\xac":"i","\xc3\xad":"i","\xc3\xae":"i","\xc4\xa9":"i","\xc4\xab":"i","\xc4\xad":"i","\xc3\xaf":"i","\xe1\xb8\xaf":"i","\xe1\xbb\u2030":"i","\xc7\x90":"i","\xc8\u2030":"i","\xc8\u2039":"i","\xe1\xbb\u2039":"i","\xc4\xaf":"i","\xe1\xb8\xad":"i","\xc9\xa8":"i","\xc4\xb1":"i","\xe2\u201c\u2122":"j","\xef\xbd\u0160":"j","\xc4\xb5":"j","\xc7\xb0":"j","\xc9\u2030":"j","\xe2\u201c\u0161":"k","\xef\xbd\u2039":"k","\xe1\xb8\xb1":"k","\xc7\xa9":"k","\xe1\xb8\xb3":"k","\xc4\xb7":"k","\xe1\xb8\xb5":"k","\xc6\u2122":"k","\xe2\xb1\xaa":"k","\xea\x9d\x81":"k","\xea\x9d\u0192":"k","\xea\x9d\u2026":"k","\xea\u017e\xa3":"k","\xe2\u201c\u203a":"l","\xef\xbd\u0152":"l","\xc5\u20ac":"l","\xc4\xba":"l","\xc4\xbe":"l","\xe1\xb8\xb7":"l","\xe1\xb8\xb9":"l","\xc4\xbc":"l","\xe1\xb8\xbd":"l","\xe1\xb8\xbb":"l","\xc5\xbf":"l","\xc5\u201a":"l","\xc6\u0161":"l","\xc9\xab":"l","\xe2\xb1\xa1":"l","\xea\x9d\u2030":"l","\xea\u017e\x81":"l","\xea\x9d\u2021":"l","\xc7\u2030":"lj","\xe2\u201c\u0153":"m","\xef\xbd\x8d":"m","\xe1\xb8\xbf":"m","\xe1\xb9\x81":"m","\xe1\xb9\u0192":"m","\xc9\xb1":"m","\xc9\xaf":"m","\xe2\u201c\x9d":"n","\xef\xbd\u017d":"n","\xc7\xb9":"n","\xc5\u201e":"n","\xc3\xb1":"n","\xe1\xb9\u2026":"n","\xc5\u02c6":"n","\xe1\xb9\u2021":"n","\xc5\u2020":"n","\xe1\xb9\u2039":"n","\xe1\xb9\u2030":"n","\xc6\u017e":"n","\xc9\xb2":"n","\xc5\u2030":"n","\xea\u017e\u2018":"n","\xea\u017e\xa5":"n","\xc7\u0152":"nj","\xe2\u201c\u017e":"o","\xef\xbd\x8f":"o","\xc3\xb2":"o","\xc3\xb3":"o","\xc3\xb4":"o","\xe1\xbb\u201c":"o","\xe1\xbb\u2018":"o","\xe1\xbb\u2014":"o","\xe1\xbb\u2022":"o","\xc3\xb5":"o","\xe1\xb9\x8d":"o","\xc8\xad":"o","\xe1\xb9\x8f":"o","\xc5\x8d":"o","\xe1\xb9\u2018":"o","\xe1\xb9\u201c":"o","\xc5\x8f":"o","\xc8\xaf":"o","\xc8\xb1":"o","\xc3\xb6":"o","\xc8\xab":"o","\xe1\xbb\x8f":"o","\xc5\u2018":"o","\xc7\u2019":"o","\xc8\x8d":"o","\xc8\x8f":"o","\xc6\xa1":"o","\xe1\xbb\x9d":"o","\xe1\xbb\u203a":"o","\xe1\xbb\xa1":"o","\xe1\xbb\u0178":"o","\xe1\xbb\xa3":"o","\xe1\xbb\x8d":"o","\xe1\xbb\u2122":"o","\xc7\xab":"o","\xc7\xad":"o","\xc3\xb8":"o","\xc7\xbf":"o","\xc9\u201d":"o","\xea\x9d\u2039":"o","\xea\x9d\x8d":"o","\xc9\xb5":"o","\xc6\xa3":"oi","\xc8\xa3":"ou","\xea\x9d\x8f":"oo","\xe2\u201c\u0178":"p","\xef\xbd\x90":"p","\xe1\xb9\u2022":"p","\xe1\xb9\u2014":"p","\xc6\xa5":"p","\xe1\xb5\xbd":"p","\xea\x9d\u2018":"p","\xea\x9d\u201c":"p","\xea\x9d\u2022":"p","\xe2\u201c ":"q","\xef\xbd\u2018":"q","\xc9\u2039":"q","\xea\x9d\u2014":"q","\xea\x9d\u2122":"q","\xe2\u201c\xa1":"r","\xef\xbd\u2019":"r","\xc5\u2022":"r","\xe1\xb9\u2122":"r","\xc5\u2122":"r","\xc8\u2018":"r","\xc8\u201c":"r","\xe1\xb9\u203a":"r","\xe1\xb9\x9d":"r","\xc5\u2014":"r","\xe1\xb9\u0178":"r","\xc9\x8d":"r","\xc9\xbd":"r","\xea\x9d\u203a":"r","\xea\u017e\xa7":"r","\xea\u017e\u0192":"r","\xe2\u201c\xa2":"s","\xef\xbd\u201c":"s","\xc3\u0178":"s","\xc5\u203a":"s","\xe1\xb9\xa5":"s","\xc5\x9d":"s","\xe1\xb9\xa1":"s","\xc5\xa1":"s","\xe1\xb9\xa7":"s","\xe1\xb9\xa3":"s","\xe1\xb9\xa9":"s","\xc8\u2122":"s","\xc5\u0178":"s","\xc8\xbf":"s","\xea\u017e\xa9":"s","\xea\u017e\u2026":"s","\xe1\xba\u203a":"s","\xe2\u201c\xa3":"t","\xef\xbd\u201d":"t","\xe1\xb9\xab":"t","\xe1\xba\u2014":"t","\xc5\xa5":"t","\xe1\xb9\xad":"t","\xc8\u203a":"t","\xc5\xa3":"t","\xe1\xb9\xb1":"t","\xe1\xb9\xaf":"t","\xc5\xa7":"t","\xc6\xad":"t","\xca\u02c6":"t","\xe2\xb1\xa6":"t","\xea\u017e\u2021":"t","\xea\u0153\xa9":"tz","\xe2\u201c\xa4":"u","\xef\xbd\u2022":"u","\xc3\xb9":"u","\xc3\xba":"u","\xc3\xbb":"u","\xc5\xa9":"u","\xe1\xb9\xb9":"u","\xc5\xab":"u","\xe1\xb9\xbb":"u","\xc5\xad":"u","\xc3\xbc":"u", 10"\xc7\u0153":"u","\xc7\u02dc":"u","\xc7\u2013":"u","\xc7\u0161":"u","\xe1\xbb\xa7":"u","\xc5\xaf":"u","\xc5\xb1":"u","\xc7\u201d":"u","\xc8\u2022":"u","\xc8\u2014":"u","\xc6\xb0":"u","\xe1\xbb\xab":"u","\xe1\xbb\xa9"
vendor: 9,146 bytes, line 10
10:"u","\xe1\xbb\xaf":"u","\xe1\xbb\xad":"u","\xe1\xbb\xb1":"u","\xe1\xbb\xa5":"u","\xe1\xb9\xb3":"u","\xc5\xb3":"u","\xe1\xb9\xb7":"u","\xe1\xb9\xb5":"u","\xca\u2030":"u","\xe2\u201c\xa5":"v","\xef\xbd\u2013":"v","\xe1\xb9\xbd":"v","\xe1\xb9\xbf":"v","\xca\u2039":"v","\xea\x9d\u0178":"v","\xca\u0152":"v","\xea\x9d\xa1":"vy","\xe2\u201c\xa6":"w","\xef\xbd\u2014":"w","\xe1\xba\x81":"w","\xe1\xba\u0192":"w","\xc5\xb5":"w","\xe1\xba\u2021":"w","\xe1\xba\u2026":"w","\xe1\xba\u02dc":"w","\xe1\xba\u2030":"w","\xe2\xb1\xb3":"w","\xe2\u201c\xa7":"x","\xef\xbd\u02dc":"x","\xe1\xba\u2039":"x","\xe1\xba\x8d":"x","\xe2\u201c\xa8":"y","\xef\xbd\u2122":"y","\xe1\xbb\xb3":"y","\xc3\xbd":"y","\xc5\xb7":"y","\xe1\xbb\xb9":"y","\xc8\xb3":"y","\xe1\xba\x8f":"y","\xc3\xbf":"y","\xe1\xbb\xb7":"y","\xe1\xba\u2122":"y","\xe1\xbb\xb5":"y","\xc6\xb4":"y","\xc9\x8f":"y","\xe1\xbb\xbf":"y","\xe2\u201c\xa9":"z","\xef\xbd\u0161":"z","\xc5\xba":"z","\xe1\xba\u2018":"z","\xc5\xbc":"z","\xc5\xbe":"z","\xe1\xba\u201c":"z","\xe1\xba\u2022":"z","\xc6\xb6":"z","\xc8\xa5":"z","\xc9\u20ac":"z","\xe2\xb1\xac":"z","\xea\x9d\xa3":"z","\xce\u2020":"\xce\u2018","\xce\u02c6":"\xce\u2022","\xce\u2030":"\xce\u2014","\xce\u0160":"\xce\u2122","\xce\xaa":"\xce\u2122","\xce\u0152":"\xce\u0178","\xce\u017d":"\xce\xa5","\xce\xab":"\xce\xa5","\xce\x8f":"\xce\xa9","\xce\xac":"\xce\xb1","\xce\xad":"\xce\xb5","\xce\xae":"\xce\xb7","\xce\xaf":"\xce\xb9","\xcf\u0160":"\xce\xb9","\xce\x90":"\xce\xb9","\xcf\u0152":"\xce\xbf","\xcf\x8d":"\xcf\u2026","\xcf\u2039":"\xcf\u2026","\xce\xb0":"\xcf\u2026","\xcf\u2030":"\xcf\u2030","\xcf\u201a":"\xcf\u0192"}}),t.define("select2/data/base",["../utils"],function(e){function t(){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var o=[];(e=[e]).push.apply(e,i);for(var s=0;s<e.length;s++){var r=e[s].id;-1===n.inArray(r,o)&&o.push(r)}t.$element.val(o),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var o=[],s=0;s<i.length;s++){var r=i[s].id;r!==e.id&&-1===n.inArray(r,o)&&o.push(r)}t.$element.val(o),t.$element.trigger("change")})}},i.prototype.bind=function(e){var t=this;this.container=e,e.on("select",function(e){t.select(e.data)}),e.on("unselect",function(e){t.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var s=o.item(t),r=o.matches(e,s);null!==r&&i.push(r)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),o=this._normalizeItem(e);return o.element=t,n.data(t,"data",o),i},i.prototype.item=function(e){var t={};if(null!=(t=n.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),o=[],s=0;s<i.length;s++){var r=n(i[s]),a=this.item(r);o.push(a)}t.children=o}return(t=this._normalizeItem(t)).element=e[0],n.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){function i(e){return function(){return n(this).val()==e.id}}for(var o=this,s=this.$element.find("option"),r=s.map(function(){return o.item(n(this)).id}).get(),a=[],l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=s.filter(i(c)),d=this.item(u),p=n.extend(!0,{},c,d),h=this.option(p);u.replaceWith(h)}else{var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);t.appendMany(f,m)}a.push(f)}}return a},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var i=s.transport(s,function(i){var s=o.processResults(i,e);o.options.get("debug")&&window.console&&console.error&&(s&&s.results&&n.isArray(s.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(s)},function(){i.status&&"0"===i.status||o.trigger("results:message",{message:"errorLoading"})});o._request=i}var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var s=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof s.url&&(s.url=s.url.call(this.$element,e)),"function"==typeof s.data&&(s.data=s.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var o=i.get("tags"),s=i.get("createTag");void 0!==s&&(this.createTag=s);var r=i.get("insertTag");if(void 0!==r&&(this.insertTag=r),t.call(this,n,i),e.isArray(o))for(var a=0;a<o.length;a++){var l=o[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){function i(e,s){for(var r=e.results,a=0;a<r.length;a++){var l=r[a],c=null!=l.children&&!i({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!s&&(e.data=r,void n(e))}if(s)return!0;var u=o.createTag(t);if(null!=u){var d=o.option(u);d.attr("data-select2-tag",!0),o.addOptions([d]),o.insertTag(r,u)}e.results=r,n(e)}var o=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,i):e.call(this,t,n)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(){this._lastTag,this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){function o(t){var n=r._normalizeItem(t);if(!r.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}s(n)}function s(e){r.trigger("select",{data:e})}
10var r=this;n.term=n.term||"";var a=this.tokenizer(n,this.options,o);a.term!==n.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),n.term=a.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var s=i.get("tokenSeparators")||[],r=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<r.length;){var c=r[a];if(-1!==e.inArray(c,s)){var u=r.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(o(d),r=r.substr(a+1)||"",a=0):a++}else a++}return{term:r}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var s=null!=o?o.length:0;i.maximumSelectionLength>0&&s>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val("")}),n.on("focus",function(){n.isOpen()||o.$search.focus()}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&t&&o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore()})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var o=this,s="scroll.
10select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(s,function(){var t=e(this).data("select2-scroll-position");e(this).scrollTop(t.y)}),e(window).on(s+" "+r+" "+a,function(){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,s="resize.select2."+i.id,r="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+s+" "+r)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=s.top,r.bottom=s.top+r.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<s.top-a.height,u=l.bottom>s.bottom+a.height,d={left:s.left,top:r.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();d.top-=h.top,d.left-=h.left,n||i||(o="below"),u||!c||n?!c&&u&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(d.top=r.top-h.top-a.height),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data("data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results\xe2\u20ac\xa6"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching..."}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,o,s,r,a,l,c,u,d,p,h,f,m,g,v,y,b,_,w,x,A,E,S,C,L,O){function T(){this.reset()}return T.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null!=d.query){var O=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,O)}if(null!=d.initSelection){var T=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,T)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,A)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,C))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=_;else{var k=c.Decorate(_,w);d.dropdownAdapter=k}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,S)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,L)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var $=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,$)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,E)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s
vendor: 1,109 bytes, line 10
10)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var I=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,I)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var D=d.language.split("-")[0];d.language=[d.language,D]}else d.language=[d.language];if(e.isArray(d.language)){var j=new u;d.language.push("en");for(var P=d.language,q=0;q<P.length;q++){var N=P[q],F={};try{F=u.loadPath(N)}catch(e){try{N=this.defaults.amdLanguageBase+N,F=u.loadPath(N)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+N+'" could not be automatically loaded. A fallback will be used instead.');continue}}j.extend(F)}d.translations=j}else{var M=u.loadPath(this.defaults.amdLanguageBase+"en"),R=new u(d.language);R.extend(M),d.translations=R}return d},T.prototype.reset=function(){function t(e){function t(e){return d[e]||e}
vendor: 7,554 bytes, line 10
10return e.replace(/[^\u0000-\u007E]/g,t)}function n(i,o){if(""===e.trim(i.term))return o;if(o.children&&o.children.length>0){for(var s=e.extend(!0,{},o),r=o.children.length-1;r>=0;r--)null==n(i,o.children[r])&&s.children.splice(r,1);return s.children.length>0?s:n(i,s)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:O,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},T.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(this.defaults,o)},new T}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var s=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,s)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var o={};o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var s=t.extend(!0,{},o);for(var r in s=i._convertData(s))t.inArray(r,n)>-1||(t.isPlainObject(this.options[r])?t.extend(this.options[r],s[r]):this.options[r]=s[r]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),o.__super__.constructor.call(this);var i=e.attr("tabindex")||0;e.data("old-tabindex",i),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var r=this.render();this._placeContainer(r);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var s=e.attr("style");if("string"!=typeof s)return null;for(var r=s.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}
vendor: 4,666 bytes, lines 10-11
10),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var s=i[e],r={prevented:!1,name:e,args:t};if(n.call(this,s,r),r.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))}, 11o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},o}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,i){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,s=Array.prototype.slice.call(arguments,1
11);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=n[t].apply(n,s)}),e.inArray(t,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n}),function(e){e(["jquery"],function(e){return function(){function t(e,t,n){return f({type:w.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),(v=e("#"+t.containerId)).length||n&&(v=d(t)),v}function i(e,t,n){return f({type:w.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function o(e){y=e}function s(e,t,n){return f({type:w.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function r(e,t,n){return f({type:w.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function a(e,t){var i=m();v||n(i),u(e,i,t)||c(i)}function l(t){var i=m();return v||n(i),t&&0===e(":focus",t).length?void g(t):void(v.children().length&&v.remove())}function c(t){for(var n=v.children(),i=n.length-1;i>=0;i--)u(e(n[i]),t)}function u(t,n,i){var o=!(!i||!i.force)&&i.force;return!(!t||!o&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){g(t)}}),0))}function d(t){return(v=e("<div/>").attr("id",t.containerId).addClass(t.positionClass)).appendTo(e(t.target)),v}function p(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function h(e){y&&y(e)}function f(t){function i(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function o(){l(),u(),d(),p(),f(),y(),c(),s()}function s(){var e="";switch(t.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}T.attr("aria-live",e)}function r(){C.closeOnHover&&T.hover(E,A),!C.onclick&&C.tapToDismiss&&T.click(x),C.closeButton&&D&&D.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),C.onCloseClick&&C.onCloseClick(e),x(!0)}),C.onclick&&T.click(function(e){C.onclick(e),x()})}function a(){T.hide(),T[C.showMethod]({duration:C.showDuration,easing:C.showEasing,complete:C.onShown}),C.timeOut>0&&(O=setTimeout(x,C.timeOut),j.maxHideTime=parseFloat(C.timeOut),j.hideEta=(new Date).getTime()+j.maxHideTime,C.progressBar&&(j.intervalId=setInterval(S,10)))}function l(){t.iconClass&&T.addClass(C.toastClass).addClass(L)}function c(){C.newestOnTop?v.prepend(T):v.append(T)}function u(){if(t.title){var e=t.title;C.escapeHtml&&(e=i(t.title)),k.append(e).addClass(C.titleClass),T.append(k)}}function d(){if(t.message){var e=t.message;C.escapeHtml&&(e=i(t.message)),$.append(e).addClass(C.messageClass),T.append($)}}function p(){C.closeButton&&(D.addClass(C.closeClass).attr("role","button"),T.prepend(D))}function f(){C.progressBar&&(I.addClass(C.progressClass),T.prepend(I))}function y(){C.rtl&&T.addClass("rtl")}function w(e,t){if(e.preventDuplicates){if(t.message===b)return!0;b=t.message}return!1}function x(t){var n=t&&!1!==C.closeMethod?C.closeMethod:C.hideMethod,i=t&&!1!==C.closeDuration?C.closeDuration:C.hideDuration,o=t&&!1!==C.closeEasing?C.closeEasing:C.hideEasing;if(!e(":focus",T).length||t)return clearTimeout(j.intervalId),T[n]({duration:i,easing:o,complete:function(){g(T),clearTimeout(O),C.onHidden&&"hidden"
11!==P.state&&C.onHidden(),P.state="hidden",P.endTime=new Date,h(P)}})}function A(){(C.timeOut>0||C.extendedTimeOut>0)&&(O=setTimeout(x,C.extendedTimeOut),j.maxHideTime=parseFloat(C.extendedTimeOut),j.hideEta=(new Date).getTime()+j.maxHideTime)}function E(){clearTimeout(O),j.hideEta=0,T.stop(!0,!0)[C.showMethod]({duration:C.showDuration,easing:C.showEasing})}function S(){var e=(j.hideEta-(new Date).getTime())/j.maxHideTime*100;I.width(e+"%")}var C=m(),L=t.iconClass||C.iconClass;if(void 0!==t.optionsOverride&&(C=e.extend(C,t.optionsOverride),L=t.optionsOverride.iconClass||L),!w(C,t)){_++,v=n(C,!0);var O=null,T=e("<div/>"),k=e("<div/>"),$=e("<div/>"),I=e("<div/>"),D=e(C.closeHtml),j={intervalId:null,hideEta:null,maxHideTime:null},P={toastId:_,state:"visible",startTime:new Date,options:C,map:t};return o(),a(),r(),h(P),C.debug&&console&&console.log(P),T}}function m(){return e.extend({},p(),x.options)}function g(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),b=void 0))}var v,y,b,_=0,w={error:"error",info:"info",success:"success",warning:"warning"},x={clear:a,remove:l,error:t,getContainer:n,info:i,options:{},subscribe:o,success:s,version:"2.1.3",warning:r};return x}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TomSelect=t()}(this,function(){"use strict";function e(e,t){e.split(/\s+/).forEach(e=>{t(e)})}function t(e,t){var n=Object.assign({},ae,t),i=n.dataAttr,o=n.labelField,s=n.valueField,r=n.disabledField,a=n.optgroupField,l=n.optgroupLabelField,c=n.optgroupValueField,u=e.tagName.toLowerCase(),d=e.getAttribute("placeholder")||e.getAttribute("data-placeholder");if(!d&&!n.allowEmptyOption){let t=e.querySelector('option[value=""]');t&&(d=t.textContent)}var p={placeholder:d,options:[],optgroups:[],items:[],maxItems:null};return"select"===u?(()=>{var t,u=p.options,d={},h=1;let f=0;var m=e=>{var t=Object.assign({},e.dataset),n=i&&t[i];return"string"==typeof n&&n.length&&(t=Object.assign(t,JSON.parse(n))),t},g=(e,t)=>{var i=j(e.value);if(null!=i&&(i||n.allowEmptyOption)){if(d.hasOwnProperty(i)){if(t){var l=d[i][a];l?Array.isArray(l)?l.push(t):d[i][a]=[l,t]:d[i][a]=t}}else{var c=m(e);c[o]=c[o]||e.textContent,c[s]=c[s]||i,c[r]=c[r]||e.disabled,c[a]=c[a]||t,c.$option=e,c.$order=c.$order||++f,d[i]=c,u.push(c)}e.selected&&p.items.push(i)}};p.maxItems=e.hasAttribute("multiple")?null:1,V(e.children,e=>{var n,i,o;"optgroup"===(t=e.tagName.toLowerCase())?((o=m(n=e))[l]=o[l]||n.getAttribute("label")||"",o[c]=o[c]||h++,o[r]=o[r]||n.disabled,o.$order=o.$order||++f,p.optgroups.push(o),i=o[c],V(n.children,e=>{g(e,i)})):"option"===t&&g(e)})})():(()=>{const t=e.getAttribute(i);if(t)p.options=JSON.parse(t),V(p.options,e=>{p.items.push(e[s])});else{var r=e.value.trim()||"";if(!n.allowEmptyOption&&!r.length)return;const t=r.split(n.delimiter);V(t,e=>{const t={};t[o]=e,t[s]=e,p.options.push(t)}),p.items=t}})(),Object.assign({},ae,p,t)}class n{constructor(){this._events={}}on(t,n){e(t,e=>{const t=this._events[e]||[];t.push(n),this._events[e]=t})}off(t,n){var i=arguments.length;0!==i?e(t,e=>{if(1===i)return void delete this._events[e];const t=this._events[e];void 0!==t&&(t.splice(t.indexOf(n),1),this._events[e]=t)}):this._events={}}trigger(t,...n){var i=this;e(t,e=>{const t=i._events[e];void 0!==t&&t.forEach(e=>{e.apply(i,n)})})}}const i=e=>(e=e.filter(Boolean)).length<2?e[0]||"":1==l(e)?"["+e.join("")+"]":"(?:"+e.join("|")+")",o=e=>{if(!r(e))return e.join("");let t="",n=0;const i=()=>{n>1&&(t+="{"+n+"}")};return e.forEach((o,s)=>{o!==e[s-1]?(i(),t+=o,n=1):n++}),i(),t},s=e=>{let t=Array.from(e);return i(t)},r=e=>new Set(e).size!==e.length,a=e=>(e+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),l=e=>e.reduce((e,t)=>Math.max(e,c(t)),0),c=e=>Array.from(e).length,u=e=>{if(1===e.length)return[[e]];let t=[];const n=e.substring(1);
vendor: 45,834 bytes, lines 11-12
11return u(n).forEach(function(n){let i=n.slice(0);i[0]=e.charAt(0)+i[0],t.push(i),i=n.slice(0),i.unshift(e.charAt(0)),t.push(i)}),t},d=[[0,65535]];let p,h;const f={},m={"/":"\u2044\u2215",0:"\u07c0",a:"\u2c65\u0250\u0251",aa:"\ua733",ae:"\xe6\u01fd\u01e3",ao:"\ua735",au:"\ua737",av:"\ua739\ua73b",ay:"\ua73d",b:"\u0180\u0253\u0183",c:"\ua73f\u0188\u023c\u2184",d:"\u0111\u0257\u0256\u1d05\u018c\uabb7\u0501\u0266",e:"\u025b\u01dd\u1d07\u0247",f:"\ua77c\u0192",g:"\u01e5\u0260\ua7a1\u1d79\ua77f\u0262",h:"\u0127\u2c68\u2c76\u0265",i:"\u0268\u0131",j:"\u0249\u0237",k:"\u0199\u2c6a\ua741\ua743\ua745\ua7a3",l:"\u0142\u019a\u026b\u2c61\ua749\ua747\ua781\u026d",m:"\u0271\u026f\u03fb",n:"\ua7a5\u019e\u0272\ua791\u1d0e\u043b\u0509",o:"\xf8\u01ff\u0254\u0275\ua74b\ua74d\u1d11",oe:"\u0153",oi:"\u01a3",oo:"\ua74f",ou:"\u0223",p:"\u01a5\u1d7d\ua751\ua753\ua755\u03c1",q:"\ua757\ua759\u024b",r:"\u024d\u027d\ua75b\ua7a7\ua783",s:"\xdf\u023f\ua7a9\ua785\u0282",t:"\u0167\u01ad\u0288\u2c66\ua787",th:"\xfe",tz:"\ua729",u:"\u0289",v:"\u028b\ua75f\u028c",vy:"\ua761",w:"\u2c73",y:"\u01b4\u024f\u1eff",z:"\u01b6\u0225\u0240\u2c6c\ua763",hv:"\u0195"};for(let e in m){let t=m[e]||"";for(let n=0;n<t.length;n++){let i=t.substring(n,n+1);f[i]=e}}const g=new RegExp(Object.keys(f).join("|")+"|[\u0300-\u036f\xb7\u02be\u02bc]","gu"),v=(e,t="NFKD")=>e.normalize(t),y=e=>Array.from(e).reduce((e,t)=>e+b(t),""),b=e=>(e=v(e).toLowerCase().replace(g,e=>f[e]||""),v(e,"NFC")),_=e=>{const t={},n=(e,n)=>{const i=t[e]||new Set,o=new RegExp("^"+s(i)+"$","iu");n.match(o)||(i.add(a(n)),t[e]=i)};for(let t of function*(e){for(const[t,n]of e)for(let e=t;e<=n;e++){let t=String.fromCharCode(e),n=y(t);n!=t.toLowerCase()&&(n.length>3||0!=n.length&&(yield{folded:n,composed:t,code_point:e}))}}(e))n(t.folded,t.folded),n(t.folded,t.composed);return t},w=e=>{const t=_(e),n={};let o=[];for(let e in t){let i=t[e];i&&(n[e]=s(i)),e.length>1&&o.push(a(e))}o.sort((e,t)=>t.length-e.length);const r=i(o);return h=new RegExp("^"+r,"u"),n},x=(e,t=1)=>(t=Math.max(t,e.length-1),i(u(e).map(e=>((e,t=1)=>{let n=0;return e=e.map(e=>(p[e]&&(n+=e.length),p[e]||e)),n>=t?o(e):""})(e,t)))),A=(e,t=!0)=>{let n=e.length>1?1:0;return i(e.map(e=>{let i=[];const s=t?e.length():e.length()-1;for(let t=0;t<s;t++)i.push(x(e.substrs[t]||"",n));return o(i)}))},E=(e,t)=>{for(const n of t){if(n.start!=e.start||n.end!=e.end)continue;if(n.substrs.join("")!==e.substrs.join(""))continue;let t=e.parts;const i=e=>{for(const n of t){if(n.start===e.start&&n.substr===e.substr)return!1;if(1!=e.length&&1!=n.length){if(e.start<n.start&&e.end>n.start)return!0;if(n.start<e.start&&n.end>e.start)return!0}}return!1};if(!(n.parts.filter(i).length>0))return!0}return!1};class S{parts;substrs;start;end;constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(e){e&&(this.parts.push(e),this.substrs.push(e.substr),this.start=Math.min(e.start,this.start),this.end=Math.max(e.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(e,t){let n=new S,i=JSON.parse(JSON.stringify(this.parts)),o=i.pop();for(const e of i)n.add(e);let s=t.substr.substring(0,e-o.start),r=s.length;return n.add({start:o.start,end:o.start+r,length:r,substr:s}),n}}const C=e=>{void 0===p&&(p=w(d)),e=y(e);let t="",n=[new S];for(let i=0;i<e.length;i++){let o=e.substring(i).match(h);const s=e.substring(i,i+1),r=o?o[0]:null;let a=[],l=new Set;for(const e of n){const t=e.last();if(!t||1==t.length||t.end<=i)if(r){const t=r.length;e.add({start:i,end:i+t,length:t,substr:r}),l.add("1")}else e.add({start:i,end:i+1,length:1,substr:s}),l.add("2");else if(r){let n=e.clone(i,t);const o=r.length;n.add({start:i,end:i+o,length:o,substr:r}),a.push(n)}else l.add("3")}if(a.length>0){a=a.sort((e,t)=>e.length()-t.length());for(let e of a)E(e,n)||n.push(e)}else if(i>0&&1==l.size&&!l.has("3")){t+=A(n,!1);let e=new S;const i=n[0];i&&e.add(i.last()),n=[e]}}return t+=A(n,!0),t},L=(e,t)=>{if(e)return e[t]},O=(e,t)=>{if(e){for(var n,i=t.split(".");(n=i.shift())&&(e=e[n]););return e}},T=(e,t,n)=>{var i,o;return e?(e+="",null==t.regex||-1===(o=e.search(t.regex))?0:(i=t.string.length/e.length,0===o&&(i+=.5),i*n)):0},k=(e,t)=>{var n=e[t];if("function"==typeof n)return n;n&&!Array.isArray(n)&&(e[t]=[n])},$=(e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},I=(e,t)=>"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=y(e+"").toLowerCase())>(t=y(t+"").toLowerCase())?1:t>e?-1:0;class D{items;settings;constructor(e,t){this.items=e,this.settings=t||{diacritics:!0}}tokenize(e,t,n){if(!e||!e.length)return[];const i=[],o=e.split(/\s+/);var s;return n&&(s=new RegExp("^("+Object.keys(n).map(a).join("|")+"):(.*)$")),o.forEach(e=>{let n,o=null,r=null;s&&(n=e.match(s))&&(o=n[1],e=n[2]),e.length>0&&(r=this.settings.diacritics?C(e)||null:a(e),r&&t&&(r="\\b"+r)),i.push({string:e,regex:r?new RegExp(r,"iu"):null,field:o})}),i}getScoreFunction(e,t){var n=this.prepareSearch(e,t);return this._getScoreFunction(n)}_getScoreFunction(e){const t=e.tokens,n=t.length;if(!n)return function(){return 0};const i=e.options.fields,o=e.weights,s=i.length,r=e.getAttrFn;if(!s)return function(){return 1};const a=1===s?function(e,t){const n=i[0].field;return T(r(t,n),e,o[n]||1)}:function(e,t){var n=0;if(e.field){const i=r(t,e.field);!e.regex&&i?n+=1/s:n+=T(i,e,1)}else $(o,(i,o)=>{n+=T(r(t,o),e,i)});return n/s};return 1===n?function(e){return a(t[0],e)}:"and"===e.options.conjunction?function(e){var i,o=0;for(let n of t){if((i=a(n,e))<=0)return 0;o+=i}return o/n}:function(e){var i=0;return $(t,t=>{i+=a(t,e)}),i/n}}getSortFunction(e,t){var n=this.prepareSearch(e,t);return this._getSortFunction(n)}_getSortFunction(e){var t,n=[];const i=this,o=e.options,s=!e.query&&o.sort_empty?o.sort_empty:o.sort;if("function"==typeof s)return s.bind(this);const r=function(t,n){return"$score"===t?n.score:e.getAttrFn(i.items[n.id],t)};if(s)for(let t of s)(e.query||"$score"!==t.field)&&n.push(t);if(e.query){t=!0;for(let e of n)if("$score"===e.field){t=!1;break}t&&n.unshift({field:"$score",direction:"desc"})}else n=n.filter(e=>"$score"!==e.field);return n.length?function(e,t){var i,o;for(let s of n)if(o=s.field,i=("desc"===s.direction?-1:1)*I(r(o,e),r(o,t)))return i;return 0}:null}prepareSearch(e,t){const n={};var i=Object.assign({},t);if(k(i,"sort"),k(i,"sort_empty"),i.fields){k(i,"fields");const e=[];i.fields.forEach(t=>{"string"==typeof t&&(t={field:t,weight:1}),e.push(t),n[t.field]="weight"in t?t.weight:1}),i.fields=e}return{options:i,query:e.toLowerCase().trim(),tokens:this.tokenize(e,i.respect_word_boundaries,n),total:0,items:[],weights:n,getAttrFn:i.nesting?O:L}}search(e,t){var n,i,o=this;i=this.prepareSearch(e,t),t=i.options,e=i.query;const s=t.score||o._getScoreFunction(i);e.length?$(o.items,(e,o)=>{n=s(e),(!1===t.filter||n>0)&&i.items.push({score:n,id:o})}):$(o.items,(e,t)=>{i.items.push({score:1,id:t})});const r=o._getSortFunction(i);return r&&i.items.sort(r),i.total=i.items.length,"number"==typeof t.limit&&(i.items=i.items.slice(0,t.limit)),i}}const j=e=>null==e?null:P(e),P=e=>"boolean"==typeof e?e?"1":"0":e+"",q=e=>(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),N=(e,t)=>{var n;return function(i,o){var s=this;n&&(s.loading=Math.max(s.loading-1,0),clearTimeout(n)),n=setTimeout(function(){n=null,s.loadedSearches[i]=!0,e.call(s,i,o)},t)}},F=(e,t,n)=>{var i,o=e.trigger,s={};for(i of(e.trigger=function(){var n=arguments[0];if(-1===t.indexOf(n))return o.apply(e,arguments);s[n]=arguments},n.apply(e,[]),e.trigger=o,t))i in s&&o.apply(e,s[i])},M=(e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())},R=(e,t,n,i)=>{e.addEventListener(t,n,i)},B=(e,t)=>!!t&&!!t[e]&&1==(t.altKey?1:0)+(t.ctrlKey?1:0)+(t.shiftKey?1:0)+(t.metaKey?1:0),H=(e,t)=>e.getAttribute("id")||(e.setAttribute("id",t),t),z=e=>e.replace(/[\\"']/g,"\\$&"),W=(e,t)=>{t&&e.append(t)},V=(e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},U=e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(Y(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)},Y=e=>"string"==typeof e&&e.indexOf("<")>-1,X=(e,t)=>{var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!1),e.dispatchEvent(n)},K=(e,t)=>{Object.assign(e.style,t)},G=(e,...t)=>{var n=J(t);(e=Z(e)).map(e=>{n.map(t=>{e.classList.add(t)})})},Q=(e,...t)=>{var n=J(t);(e=Z(e)).map(e=>{n.map(t=>{e.classList.remove(t)})})},J=e=>{var t=[];return V(e,e=>{"string"==typeof e&&(e=e.trim().split(/[\t\n\f\r\s]/)),Array.isArray(e)&&(t=t.concat(e))}),t.filter(Boolean)},Z=e=>(Array.isArray(e)||(e=[e]),e),ee=(e,t,n)=>{if(!n||n.contains(e))for(;e&&e.matches;){if(e.matches(t))return e;e=e.parentNode}},te=(e,t=0)=>t>0?e[e.length-1]:e[0],ne=(e,t)=>{if(!e)return-1;t=t||e.nodeName;for(var n=0;e=e.previousElementSibling;)e.matches(t)&&n++;return n},ie=(e,t)=>{V(t,(t,n)=>{null==t?e.removeAttribute(n):e.setAttribute(n,""+t)})},oe=(e,t)=>{e.parentNode&&e.parentNode.replaceChild(t,e)},se=(e,t)=>{if(null===t)return;if("string"==typeof t){if(!t.length)return;t=new RegExp(t,"i")}const n=e=>3===e.nodeType?(e=>{var n=e.data.match(t);if(n&&e.data.length>0){var i=document.createElement("span");i.className="highlight";var o=e.splitText(n.index);o.splitText(n[0].length);var s=o.cloneNode(!0);return i.appendChild(s),oe(o,i),1}return 0})(e):((e=>{1!==e.nodeType||!e.childNodes||/(script|style)/i.test(e.tagName)||"highlight"===e.className&&"SPAN"===e.tagName||Array.from(e.childNodes).forEach(e=>{n(e)})})(e),0);n(e)},re="undefined"!=typeof navigator&&/Mac/.test(navigator.userAgent)?"metaKey":"ctrlKey";var ae={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:null,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,shouldOpen:null,maxOptions:50,maxItems:null,hideSelected:null,duplicates:!1,addPrecedence:!1,selectOnTab:!1,preload:null,allowEmptyOption:!1,refreshThrottle:300,loadThrottle:300,loadingClass:"loading",dataAttr:null,optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"ts-wrapper",controlClass:"ts-control",dropdownClass:"ts-dropdown",dropdownContentClass:"ts-dropdown-content",itemClass:"item",optionClass:"option",dropdownParent:null,controlInput:'<input type="text" autocomplete="off" size="1" />',copyClassesToDropdown:!1,placeholder:null,hidePlaceholder:null,shouldLoad:function(e){return e.length>0},render:{}},le=0;class ce extends(function(e){return e.plugins={},class extends e{constructor(...e){super(...e),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(t,n){e.plugins[t]={name:t,fn:n}}initializePlugins(e){var t,n;const i=this,o=[];if(Array.isArray(e))e.forEach(e=>{"string"==typeof e?o.push(e):(i.plugins.settings[e.name]=e.options,o.push(e.name))});else if(e)for(t in e)e.hasOwnProperty(t)&&(i.plugins.settings[t]=e[t],o.push(t));for(;n=o.shift();)i.require(n)}loadPlugin(t){var n=this,i=n.plugins,o=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');i.requested[t]=!0,i.loaded[t]=o.fn.apply(n,[n.plugins.settings[t]||{}]),i.names.push(t)}require(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]}}}(n)){constructor(e,n){var i;super(),this.order=0,this.isOpen=!1,this.isDisabled=!1,this.isReadOnly=!1,this.isInvalid=!1,this.isValid=!0,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.ignoreFocus=!1,this.ignoreHover=!1,this.hasOptions=!1,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],this.refreshTimeout=null,le++;var o=U(e);if(o.tomselect)throw new Error("Tom Select already initialized on this element");o.tomselect=this,i=(window.getComputedStyle&&window.getComputedStyle(o,null)).getPropertyValue("direction");const s=t(o,n);this.settings=s,this.input=o,this.tabIndex=o.tabIndex||0,this.is_select_tag="select"===o.tagName.toLowerCase(),this.rtl=/rtl/i.test(i),this.inputId=H(o,"tomselect-"+le),this.isRequired=o.required,this.sifter=new D(this.options,{diacritics:s.diacritics}),s.mode=s.mode||(1===s.maxItems?"single":"multi"),"boolean"!=typeof s.hideSelected&&(s.hideSelected="multi"===s.mode),"boolean"!=typeof s.hidePlaceholder&&(s.hidePlaceholder="multi"!==s.mode);var r=s.createFilter;"function"!=typeof r&&("string"==typeof r&&(r=new RegExp(r)),r instanceof RegExp?s.createFilter=e=>r.test(e):s.createFilter=e=>this.settings.duplicates||!this.options[e]),this.initializePlugins(s.plugins),this.setupCallbacks(),this.setupTemplates();const a=U("<div>"),l=U("<div>"),c=this._render("dropdown"),u=U('<div role="listbox" tabindex="-1">'),d=this.input.getAttribute("class")||"",p=s.mode;var h;G(a,s.wrapperClass,d,p),G(l,s.controlClass),W(a,l),G(c,s.dropdownClass,p),s.copyClassesToDropdown&&G(c,d),G(u,s.dropdownContentClass),W(c,u),U(s.dropdownParent||a).appendChild(c),Y(s.controlInput)?(h=U(s.controlInput),V(["autocorrect","autocapitalize","autocomplete","spellcheck"],e=>{o.getAttribute(e)&&ie(h,{[e]:o.getAttribute(e)})}),h.tabIndex=-1,l.appendChild(h),this.focus_node=h):s.controlInput?(h=U(s.controlInput),this.focus_node=h):(h=U("<input/>"),this.focus_node=l),this.wrapper=a,this.dropdown=c,this.dropdown_content=u,this.control=l,this.control_input=h,this.setup()}setup(){const e=this,t=e.settings,n=e.control_input,i=e.dropdown,o=e.dropdown_content,s=e.wrapper,r=e.control,l=e.input,c=e.focus_node,u={passive:!0},d=e.inputId+"-ts-dropdown";ie(o,{id:d}),ie(c,{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false","aria-controls":d});const p=H(c,e.inputId+"-ts-control"),h="label[for='"+(e=>e.replace(/['"\\]/g,"\\$&"))(e.inputId)+"']",f=document.querySelector(h),m=e.focus.bind(e);if(f){R(f,"click",m),ie(f,{for:p});const t=H(f,e.inputId+"-ts-label");ie(c,{"aria-labelledby":t}),ie(o,{"aria-labelledby":t})}if(s.style.width=l.style.width,e.plugins.names.length){const t="plugin-"+e.plugins.names.join(" plugin-");G([s,i],t)}(null===t.maxItems||t.maxItems>1)&&e.is_select_tag&&ie(l,{multiple:"multiple"}),t.placeholder&&ie(n,{placeholder:t.placeholder}),!t.splitOn&&t.delimiter&&(t.splitOn=new RegExp("\\s*"+a(t.delimiter)+"+\\s*")),t.load&&t.loadThrottle&&(t.load=N(t.load,t.loadThrottle)),R(i,"mousemove",()=>{e.ignoreHover=!1}),R(i,"mouseenter",t=>{var n=ee(t.target,"[data-selectable]",i);n&&e.onOptionHover(t,n)},{capture:!0}),R(i,"click",t=>{const n=ee(t.target,"[data-selectable]");n&&(e.onOptionSelect(t,n),M(t,!0))}),R(r,"click",t=>{var i=ee(t.target,"[data-ts-item]",r);i&&e.onItemSelect(t,i)?M(t,!0):""==n.value&&(e.onClick(),M(t,!0))}),R(c,"keydown",t=>e.onKeyDown(t)),R(n,"keypress",t=>e.onKeyPress(t)),R(n,"input",t=>e.onInput(t)),R(c,"blur",t=>e.onBlur(t)),R(c,"focus",t=>e.onFocus(t)),R(n,"paste",t=>e.onPaste(t));const g=t=>{const o=t.composedPath()[0];if(!s.contains(o)&&!i.contains(o))return e.isFocused&&e.blur(),void e.inputState();o==n&&e.isOpen?t.stopPropagation():M(t,!0)},v=()=>{e.isOpen&&e.positionDropdown()};R(document,"mousedown",g),R(window,"scroll",v,u),R(window,"resize",v,u),this._destroy=()=>{document.removeEventListener("mousedown",g),window.removeEventListener("scroll",v),window.removeEventListener("resize",v),f&&f.removeEventListener("click",m)},this.revertSettings={innerHTML:l.innerHTML,tabIndex:l.tabIndex},l.tabIndex=-1,l.insertAdjacentElement("afterend",e.wrapper),e.sync(!1),t.items=[],delete t.optgroups,delete t.options,R(l,"invalid",()=>{e.isValid&&(e.isValid=!1,e.isInvalid=!0,e.refreshState())}),e.updateOriginalInput(),e.refreshItems(),e.close(!1),e.inputState(),e.isSetup=!0,l.disabled?e.disable():l.readOnly?e.setReadOnly(!0):e.enable(),e.on("change",this.onChange),G(l,"tomselected","ts-hidden-accessible"),e.trigger("initialize"),!0===t.preload&&e.preload()}setupOptions(e=[],t=[]){this.addOptions(e),V(t,e=>{this.registerOptionGroup(e)})}setupTemplates(){var e=this,t=e.settings.labelField,n=e.settings.optgroupLabelField,i={optgroup:e=>{let t=document.createElement("div");return t.className="optgroup",t.appendChild(e.options),t},optgroup_header:(e,t)=>'<div class="optgroup-header">'+t(e[n])+"</div>",option:(e,n)=>"<div>"+n(e[t])+"</div>",item:(e,n)=>"<div>"+n(e[t])+"</div>",option_create:(e,t)=>'<div class="create">Add <strong>'+t(e.input)+"</strong>…</div>",no_results:()=>'<div class="no-results">No results found</div>',loading:()=>'<div class="spinner"></div>',not_loading:()=>{},dropdown:()=>"<div></div>"};e.settings.render=Object.assign({},i,e.settings.render)}setupCallbacks(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)(t=this.settings[n[e]])&&this.on(e,t)}sync(e=!0){const n=this,i=e?t(n.input,{delimiter:n.settings.delimiter}):n.settings;n.setupOptions(i.options,i.optgroups),n.setValue(i.items||[],!0),n.lastQuery=null}onClick(){var e=this;if(e.activeItems.length>0)return e.clearActiveItems(),void e.focus();e.isFocused&&e.isOpen?e.blur():e.focus()}onMouseDown(){}onChange(){X(this.input,"input"),X(this.input,"change")}onPaste(e){var t=this;t.isInputHidden||t.isLocked?M(e):t.settings.splitOn&&setTimeout(()=>{var e=t.inputValue();if(e.match(t.settings.splitOn)){var n=e.trim().split(t.settings.splitOn);V(n,e=>{j(e)&&(this.options[e]?t.addItem(e):t.createItem(e))})}},0)}onKeyPress(e){var t=this;if(!t.isLocked){var n=String.fromCharCode(e.keyCode||e.which);return t.settings.create&&"multi"===t.settings.mode&&n===t.settings.delimiter?(t.createItem(),void M(e)):void 0}M(e)}onKeyDown(e){var t=this;if(t.ignoreHover=!0,t.isLocked)9!==e.keyCode&&M(e);else{switch(e.keyCode){case 65:if(B(re,e)&&""==t.control_input.value)return M(e),void t.selectAll();break;case 27:return t.isOpen&&(M(e,!0),t.close()),void t.clearActiveItems();case 40:if(!t.isOpen&&t.hasOptions)t.open();else if(t.activeOption){let e=t.getAdjacent(t.activeOption,1);e&&t.setActiveOption(e)}return void M(e);case 38:if(t.activeOption){let e=t.getAdjacent(t.activeOption,-1);e&&t.setActiveOption(e)}return void M(e);case 13:return void(t.canSelect(t.activeOption)?(t.onOptionSelect(e,t.activeOption),M(e)):(t.settings.create&&t.createItem()||document.activeElement==t.control_input&&t.isOpen)&&M(e));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return void(t.settings.selectOnTab&&(t.canSelect(t.activeOption)&&(t.onOptionSelect(e,t.activeOption),M(e)),t.settings.create&&t.createItem()&&M(e)));case 8:case 46:return void t.deleteSelection(e)}t.isInputHidden&&!B(re,e)&&M(e)}}onInput(e){if(this.isLocked)return;const t=this.inputValue();this.lastValue!==t&&(this.lastValue=t,""!=t?(this.refreshTimeout&&window.clearTimeout(this.refreshTimeout),this.refreshTimeout=((e,t)=>t>0?window.setTimeout(e,t):(e.call(null),null))(()=>{this.refreshTimeout=null,this._onInput()},this.settings.refreshThrottle)):this._onInput())}_onInput(){const e=this.lastValue;this.settings.shouldLoad.call(this,e)&&this.load(e),this.refreshOptions(),this.trigger("type",e)}onOptionHover(e,t){this.ignoreHover||this.setActiveOption(t,!1)}onFocus(e){var t=this,n=t.isFocused;if(t.isDisabled||t.isReadOnly)return t.blur(),void M(e);t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.preload(),n||t.trigger("focus"),t.activeItems.length||(t.inputState(),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())}onBlur(e){if(!1!==document.hasFocus()){var t=this;if(t.isFocused){t.isFocused=!1,t.ignoreFocus=!1;var n=()=>{t.close(),t.setActiveItem(),t.setCaret(t.items.length),t.trigger("blur")};t.settings.create&&t.settings.createOnBlur?t.createItem(null,n):n()}}}onOptionSelect(e,t){var n,i=this;t.parentElement&&t.parentElement.matches("[data-disabled]")||(t.classList.contains("create")?i.createItem(null,()=>{i.settings.closeAfterSelect&&i.close()}):void 0!==(n=t.dataset.value)&&(i.lastQuery=null,i.addItem(n),i.settings.closeAfterSelect&&i.close(),!i.settings.hideSelected&&e.type&&/click/.test(e.type)&&i.setActiveOption(t)))}canSelect(e){return!!(this.isOpen&&e&&this.dropdown_content.contains(e))}onItemSelect(e,t){var n=this;return!n.isLocked&&"multi"===n.settings.mode&&(M(e),n.setActiveItem(t,e),!0)}canLoad(e){return!!this.settings.load&&!this.loadedSearches.hasOwnProperty(e)}load(e){const t=this;if(!t.canLoad(e))return;G(t.wrapper,t.settings.loadingClass),t.loading++;const n=t.loadCallback.bind(t);t.settings.load.call(t,e,n)}loadCallback(e,t){const n=this;n.loading=Math.max(n.loading-1,0),n.lastQuery=null,n.clearActiveOption(),n.setupOptions(e,t),n.refreshOptions(n.isFocused&&!n.isInputHidden),n.loading||Q(n.wrapper,n.settings.loadingClass),n.trigger("load",e,t)}preload(){var e=this.wrapper.classList;e.contains("preloaded")||(e.add("preloaded"),this.load(""))}setTextboxValue(e=""){var t=this.control_input;t.value!==e&&(t.value=e,X(t,"update"),this.lastValue=e)}getValue(){ 12return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(e,t){F(this,t?[]:["change"],()=>{this.clear(t),this.addItems(e,t)})}setMaxItems(e){0===e&&(e=null),this.settings.maxItems=e,this.refreshState()}setActiveItem(e,t){var n,i,o,s,r,a,l=this;if("single"!==l.settings.mode){if(!e)return l.clearActiveItems(),void(l.isFocused&&l.inputState());if("click"===(n=t&&t.type.toLowerCase())&&B("shiftKey",t)&&l.activeItems.length){for(a=l.getLastActive(),(o=Array.prototype.indexOf.call(l.control.children,a))>(s=Array.prototype.indexOf.call(l.control.children,e))&&(r=o,o=s,s=r),i=o;i<=s;i++)e=l.control.children[i],-1===l.activeItems.indexOf(e)&&l.setActiveItemClass(e);M(t)}else"click"===n&&B(re,t)||"keydown"===n&&B("shiftKey",t)?e.classList.contains("active")?l.removeActiveItem(e):l.setActiveItemClass(e):(l.clearActiveItems(),l.setActiveItemClass(e));l.inputState(),l.isFocused||l.focus()}}setActiveItemClass(e){const t=this,n=t.control.querySelector(".last-active");n&&Q(n,"last-active"),G(e,"active last-active"),t.trigger("item_select",e),-1==t.activeItems.indexOf(e)&&t.activeItems.push(e)}removeActiveItem(e){var t=this.activeItems.indexOf(e);this.activeItems.splice(t,1),Q(e,"active")}clearActiveItems(){Q(this.activeItems,"active"),this.activeItems=[]}setActiveOption(e,t=!0){e!==this.activeOption&&(this.clearActiveOption(),e&&(this.activeOption=e,ie(this.focus_node,{"aria-activedescendant":e.getAttribute("id")}),ie(e,{"aria-selected":"true"}),G(e,"active"),t&&this.scrollToOption(e)))}scrollToOption(e,t){if(!e)return;const n=this.dropdown_content,i=n.clientHeight,o=n.scrollTop||0,s=e.offsetHeight,r=e.getBoundingClientRect().top-n.getBoundingClientRect().top+o;r+s>i+o?this.scroll(r-i+s,t):r<o&&this.scroll(r,t)}scroll(e,t){const n=this.dropdown_content;t&&(n.style.scrollBehavior=t),n.scrollTop=e,n.style.scrollBehavior=""}clearActiveOption(){this.activeOption&&(Q(this.activeOption,"active"),ie(this.activeOption,{"aria-selected":null})),this.activeOption=null,ie(this.focus_node,{"aria-activedescendant":null})}selectAll(){const e=this;if("single"===e.settings.mode)return;const t=e.controlChildren();t.length&&(e.inputState(),e.close(),e.activeItems=t,V(t,t=>{e.setActiveItemClass(t)}))}inputState(){var e=this;e.control.contains(e.control_input)&&(ie(e.control_input,{placeholder:e.settings.placeholder}),e.activeItems.length>0||!e.isFocused&&e.settings.hidePlaceholder&&e.items.length>0?(e.setTextboxValue(),e.isInputHidden=!0):(e.settings.hidePlaceholder&&e.items.length>0&&ie(e.control_input,{placeholder:""}),e.isInputHidden=!1),e.wrapper.classList.toggle("input-hidden",e.isInputHidden))}inputValue(){return this.control_input.value.trim()}focus(){var e=this;e.isDisabled||e.isReadOnly||(e.ignoreFocus=!0,e.control_input.offsetWidth?e.control_input.focus():e.focus_node.focus(),setTimeout(()=>{e.ignoreFocus=!1,e.onFocus()},0))}blur(){this.focus_node.blur(),this.onBlur()}getScoreFunction(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())}getSearchOptions(){var e=this.settings,t=e.sortField;return"string"==typeof e.sortField&&(t=[{field:e.sortField}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t,nesting:e.nesting}}search(e){var t,n,i=this,o=this.getSearchOptions();if(i.settings.score&&"function"!=typeof(n=i.settings.score.call(i,e)))throw new Error('Tom Select "score" setting must be a function that returns a function');return e!==i.lastQuery?(i.lastQuery=e,t=i.sifter.search(e,Object.assign(o,{score:n})),i.currentResults=t):t=Object.assign({},i.currentResults),i.settings.hideSelected&&(t.items=t.items.filter(e=>{let t=j(e.id);return!(t&&-1!==i.items.indexOf(t))})),t}refreshOptions(e=!0){var t,n,i,o,s,r,a,l,c,u;const d={},p=[];var h=this,f=h.inputValue();const m=f===h.lastQuery||""==f&&null==h.lastQuery;var g=h.search(f),v=null,y=h.settings.shouldOpen||!1,b=h.dropdown_content;m&&(v=h.activeOption)&&(c=v.closest("[data-group]")),o=g.items.length,"number"==typeof h.settings.maxOptions&&(o=Math.min(o,h.settings.maxOptions)),o>0&&(y=!0);const _=(e,t)=>{let n=d[e];if(void 0!==n){let e=p[n];if(void 0!==e)return[n,e.fragment]}let i=document.createDocumentFragment();return n=p.length,p.push({fragment:i,order:t,optgroup:e}),[n,i]};for(t=0;t<o;t++){let e=g.items[t];if(!e)continue;let o=e.id,a=h.options[o];if(void 0===a)continue;let l=P(o),u=h.getOption(l,!0);for(h.settings.hideSelected||u.classList.toggle("selected",h.items.includes(l)),s=a[h.settings.optgroupField]||"",n=0,i=(r=Array.isArray(s)?s:[s])&&r.length;n<i;n++){s=r[n];let e=a.$order,t=h.optgroups[s];void 0===t?s="":e=t.$order;const[i,l]=_(s,e);n>0&&(u=u.cloneNode(!0),ie(u,{id:a.$id+"-clone-"+n,"aria-selected":null}),u.classList.add("ts-cloned"),Q(u,"active"),h.activeOption&&h.activeOption.dataset.value==o&&c&&c.dataset.group===s.toString()&&(v=u)),l.appendChild(u),""!=s&&(d[s]=i)}}var w;h.settings.lockOptgroupOrder&&p.sort((e,t)=>e.order-t.order),a=document.createDocumentFragment(),V(p,e=>{let t=e.fragment,n=e.optgroup;if(!t||!t.children.length)return;let i=h.optgroups[n];if(void 0!==i){let e=document.createDocumentFragment(),n=h.render("optgroup_header",i);W(e,n),W(e,t);let o=h.render("optgroup",{group:i,options:e});W(a,o)}else W(a,t)}),b.innerHTML="",W(b,a),h.settings.highlight&&(w=b.querySelectorAll("span.highlight"),Array.prototype.forEach.call(w,function(e){var t=e.parentNode;t.replaceChild(e.firstChild,e),t.normalize()}),g.query.length&&g.tokens.length&&V(g.tokens,e=>{se(b,e.regex)}));var x=e=>{let t=h.render(e,{input:f});return t&&(y=!0,b.insertBefore(t,b.firstChild)),t};if(h.loading?x("loading"):h.settings.shouldLoad.call(h,f)?0===g.items.length&&x("no_results"):x("not_loading"),(l=h.canCreate(f))&&(u=x("option_create")),h.hasOptions=g.items.length>0||l,y){if(g.items.length>0){if(v||"single"!==h.settings.mode||null==h.items[0]||(v=h.getOption(h.items[0])),!b.contains(v)){let e=0;u&&!h.settings.addPrecedence&&(e=1),v=h.selectable()[e]}}else u&&(v=u);e&&!h.isOpen&&(h.open(),h.scrollToOption(v,"auto")),h.setActiveOption(v)}else h.clearActiveOption(),e&&h.isOpen&&h.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}addOption(e,t=!1){const n=this;if(Array.isArray(e))return n.addOptions(e,t),!1;const i=j(e[n.settings.valueField]);return null!==i&&!n.options.hasOwnProperty(i)&&(e.$order=e.$order||++n.order,e.$id=n.inputId+"-opt-"+e.$order,n.options[i]=e,n.lastQuery=null,t&&(n.userOptions[i]=t,n.trigger("option_add",i,e)),i)}addOptions(e,t=!1){V(e,e=>{this.addOption(e,t)})}registerOption(e){return this.addOption(e)}registerOptionGroup(e){var t=j(e[this.settings.optgroupValueField]);return null!==t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)}addOptionGroup(e,t){var n;t[this.settings.optgroupValueField]=e,(n=this.registerOptionGroup(t))&&this.trigger("optgroup_add",n,t)}removeOptionGroup(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.clearCache(),this.trigger("optgroup_remove",e))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(e,t){const n=this;var i,o;const s=j(e),r=j(t[n.settings.valueField]);if(null===s)return;const a=n.options[s];if(null==a)return;if("string"!=typeof r)throw new Error("Value must be set in option data");const l=n.getOption(s),c=n.getItem(s);if(t.$order=t.$order||a.$order,delete n.options[s],n.uncacheValue(r),n.options[r]=t,l){if(n.dropdown_content.contains(l)){const e=n._render("option",t);oe(l,e),n.activeOption===l&&n.setActiveOption(e)}l.remove()}c&&(-1!==(o=n.items.indexOf(s))&&n.items.splice(o,1,r),i=n._render("item",t),c.classList.contains("active")&&G(i,"active"),oe(c,i)),n.lastQuery=null}removeOption(e,t){const n=this;e=P(e),n.uncacheValue(e),delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)}clearOptions(e){const t=(e||this.clearFilter).bind(this);this.loadedSearches={},this.userOptions={},this.clearCache();const n={};V(this.options,(e,i)=>{t(e,i)&&(n[i]=e)}),this.options=this.sifter.items=n,this.lastQuery=null,this.trigger("option_clear")}clearFilter(e,t){return this.items.indexOf(t)>=0}getOption(e,t=!1){const n=j(e);if(null===n)return null;const i=this.options[n];if(null!=i){if(i.$div)return i.$div;if(t)return this._render("option",i)}return null}getAdjacent(e,t,n="option"){var i;if(!e)return null;i="item"==n?this.controlChildren():this.dropdown_content.querySelectorAll("[data-selectable]");for(let n=0;n<i.length;n++)if(i[n]==e)return t>0?i[n+1]:i[n-1];return null}getItem(e){if("object"==typeof e)return e;var t=j(e);return null!==t?this.control.querySelector(`[data-value="${z(t)}"]`):null}addItems(e,t){var n=this,i=Array.isArray(e)?e:[e];const o=(i=i.filter(e=>-1===n.items.indexOf(e)))[i.length-1];i.forEach(e=>{n.isPending=e!==o,n.addItem(e,t)})}addItem(e,t){F(this,t?[]:["change","dropdown_close"],()=>{var n,i;const o=this,s=o.settings.mode,r=j(e);if((!r||-1===o.items.indexOf(r)||("single"===s&&o.close(),"single"!==s&&o.settings.duplicates))&&null!==r&&o.options.hasOwnProperty(r)&&("single"===s&&o.clear(t),"multi"!==s||!o.isFull())){if(n=o._render("item",o.options[r]),o.control.contains(n)&&(n=n.cloneNode(!0)),i=o.isFull(),o.items.splice(o.caretPos,0,r),o.insertAtCaret(n),o.isSetup){if(!o.isPending&&o.settings.hideSelected){let e=o.getOption(r),t=o.getAdjacent(e,1);t&&o.setActiveOption(t)}o.isPending||o.settings.closeAfterSelect||o.refreshOptions(o.isFocused&&"single"!==s),0!=o.settings.closeAfterSelect&&o.isFull()?o.close():o.isPending||o.positionDropdown(),o.trigger("item_add",r,n),o.isPending||o.updateOriginalInput({silent:t})}(!o.isPending||!i&&o.isFull())&&(o.inputState(),o.refreshState())}})}removeItem(e=null,t){const n=this;if(!(e=n.getItem(e)))return;var i,o;const s=e.dataset.value;i=ne(e),e.remove(),e.classList.contains("active")&&(o=n.activeItems.indexOf(e),n.activeItems.splice(o,1),Q(e,"active")),n.items.splice(i,1),n.lastQuery=null,!n.settings.persist&&n.userOptions.hasOwnProperty(s)&&n.removeOption(s,t),i<n.caretPos&&n.setCaret(n.caretPos-1),n.updateOriginalInput({silent:t}),n.refreshState(),n.positionDropdown(),n.trigger("item_remove",s,e)}createItem(e=null,t=()=>{}){3===arguments.length&&(t=arguments[2]),"function"!=typeof t&&(t=()=>{});var n,i=this,o=i.caretPos;if(e=e||i.inputValue(),!i.canCreate(e))return t(),!1;i.lock();var s=!1,r=e=>{if(i.unlock(),!e||"object"!=typeof e)return t();var n=j(e[i.settings.valueField]);if("string"!=typeof n)return t();i.setTextboxValue(),i.addOption(e,!0),i.setCaret(o),i.addItem(n),t(e),s=!0};return n="function"==typeof i.settings.create?i.settings.create.call(this,e,r):{[i.settings.labelField]:e,[i.settings.valueField]:e},s||r(n),!0}refreshItems(){var e=this;e.lastQuery=null,e.isSetup&&e.addItems(e.items),e.updateOriginalInput(),e.refreshState()}refreshState(){const e=this;e.refreshValidityState();const t=e.isFull(),n=e.isLocked;e.wrapper.classList.toggle("rtl",e.rtl);const i=e.wrapper.classList;var o;i.toggle("focus",e.isFocused),i.toggle("disabled",e.isDisabled),i.toggle("readonly",e.isReadOnly),i.toggle("required",e.isRequired),i.toggle("invalid",!e.isValid),i.toggle("locked",n),i.toggle("full",t),i.toggle("input-active",e.isFocused&&!e.isInputHidden),i.toggle("dropdown-active",e.isOpen),i.toggle("has-options",(o=e.options,0===Object.keys(o).length)),i.toggle("has-items",e.items.length>0)}refreshValidityState(){var e=this;e.input.validity&&(e.isValid=e.input.validity.valid,e.isInvalid=!e.isValid)}isFull(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems}updateOriginalInput(e={}){const t=this;var n,i;const o=t.input.querySelector('option[value=""]');if(t.is_select_tag){const s=[],r=t.input.querySelectorAll("option:checked").length;function a(e,n,i){return e||(e=U('<option value="'+q(n)+'">'+q(i)+"</option>")),e!=o&&t.input.append(e),s.push(e),(e!=o||r>0)&&(e.selected=!0),e}t.input.querySelectorAll("option:checked").forEach(e=>{e.selected=!1}),0==t.items.length&&"single"==t.settings.mode?a(o,"",""):t.items.forEach(e=>{n=t.options[e],i=n[t.settings.labelField]||"",s.includes(n.$option)?a(t.input.querySelector(`option[value="${z(e)}"]:not(:checked)`),e,i):n.$option=a(n.$option,e,i)})}else t.input.value=t.getValue();t.isSetup&&(e.silent||t.trigger("change",t.getValue()))}open(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.isOpen=!0,ie(e.focus_node,{"aria-expanded":"true"}),e.refreshState(),K(e.dropdown,{visibility:"hidden",display:"block"}),e.positionDropdown(),K(e.dropdown,{visibility:"visible",display:"block"}),e.focus(),e.trigger("dropdown_open",e.dropdown))}close(e=!0){var t=this,n=t.isOpen;e&&(t.setTextboxValue(),"single"===t.settings.mode&&t.items.length&&t.inputState()),t.isOpen=!1,ie(t.focus_node,{"aria-expanded":"false"}),K(t.dropdown,{display:"none"}),t.settings.hideSelected&&t.clearActiveOption(),t.refreshState(),n&&t.trigger("dropdown_close",t.dropdown)}positionDropdown(){if("body"===this.settings.dropdownParent){var e=this.control,t=e.getBoundingClientRect(),n=e.offsetHeight+t.top+window.scrollY,i=t.left+window.scrollX;K(this.dropdown,{width:t.width+"px",top:n+"px",left:i+"px"})}}clear(e){var t=this;if(t.items.length){var n=t.controlChildren();V(n,e=>{t.removeItem(e,!0)}),t.inputState(),e||t.updateOriginalInput(),t.trigger("clear")}}insertAtCaret(e){const t=this,n=t.caretPos,i=t.control;i.insertBefore(e,i.children[n]||null),t.setCaret(n+1)}deleteSelection(e){var t,n,i,o,s,r=this;t=e&&8===e.keyCode?-1:1,n={start:(s=r.control_input).selectionStart||0,length:(s.selectionEnd||0)-(s.selectionStart||0)};const a=[];if(r.activeItems.length)o=te(r.activeItems,t),i=ne(o),t>0&&i++,V(r.activeItems,e=>a.push(e));else if((r.isFocused||"single"===r.settings.mode)&&r.items.length){const e=r.controlChildren();let i;t<0&&0===n.start&&0===n.length?i=e[r.caretPos-1]:t>0&&n.start===r.inputValue().length&&(i=e[r.caretPos]),void 0!==i&&a.push(i)}if(!r.shouldDelete(a,e))return!1;for(M(e,!0),void 0!==i&&r.setCaret(i);a.length;)r.removeItem(a.pop());return r.inputState(),r.positionDropdown(),r.refreshOptions(!1),!0}shouldDelete(e,t){const n=e.map(e=>e.dataset.value);return!(!n.length||"function"==typeof this.settings.onDelete&&!1===this.settings.onDelete(n,t))}advanceSelection(e,t){var n,i,o=this;o.rtl&&(e*=-1),o.inputValue().length||(B(re,t)||B("shiftKey",t)?(i=(n=o.getLastActive(e))?n.classList.contains("active")?o.getAdjacent(n,e,"item"):n:e>0?o.control_input.nextElementSibling:o.control_input.previousElementSibling)&&(i.classList.contains("active")&&o.removeActiveItem(n),o.setActiveItemClass(i)):o.moveCaret(e))}moveCaret(e){}getLastActive(e){let t=this.control.querySelector(".last-active");if(t)return t;var n=this.control.querySelectorAll(".active");return n?te(n,e):void 0}setCaret(e){this.caretPos=this.items.length}controlChildren(){return Array.from(this.control.querySelectorAll("[data-ts-item]"))}lock(){this.setLocked(!0)}unlock(){this.setLocked(!1)}setLocked(e=this.isReadOnly||this.isDisabled){this.isLocked=e,this.refreshState()}disable(){this.setDisabled(!0),this.close()}enable(){this.setDisabled(!1)}setDisabled(e){this.focus_node.tabIndex=e?-1:this.tabIndex,this.isDisabled=e,this.input.disabled=e,this.control_input.disabled=e,this.setLocked()}setReadOnly(e){this.isReadOnly=e,this.input.readOnly=e,this.control_input.readOnly=e,this.setLocked()}destroy(){var e=this,t=e.revertSettings;e.trigger("destroy"),e.off(),e.wrapper.remove(),e.dropdown.remove(),e.input.innerHTML=t.innerHTML,e.input.tabIndex=t.tabIndex,Q(e.input,"tomselected","ts-hidden-accessible"),e._destroy(),delete e.input.tomselect}render(e,t){var n,i;const o=this;if("function"!=typeof this.settings.render[e])return null;if(!(i=o.settings.render[e].call(this,t,q)))return null;if(i=U(i),"option"===e||"option_create"===e?t[o.settings.disabledField]?ie(i,{"aria-disabled":"true"}):ie(i,{"data-selectable":""}):"optgroup"===e&&(n=t.group[o.settings.optgroupValueField],ie(i,{"data-group":n}),t.group[o.settings.disabledField]&&ie(i,{"data-disabled":""})),"option"===e||"item"===e){const n=P(t[o.settings.valueField]);ie(i,{"data-value":n}),"item"===e?(G(i,o.settings.itemClass),ie(i,{"data-ts-item":""})):(G(i,o.settings.optionClass),ie(i,{role:"option",id:t.$id}),t.$div=i,o.options[n]=t)}return i}_render(e,t){const n=this.render(e,t);if(null==n)throw"HTMLElement expected";return n}clearCache(){V(this.options,e=>{e.$div&&(e.$div.remove(),delete e.$div)})}uncacheValue(e){const t=this.getOption(e);t&&t.remove()}canCreate(e){return this.settings.create&&e.length>0&&this.settings.createFilter.call(this,e)}hook(e,t,n){var i=this,o=i[t];i[t]=function(){var t,s;return"after"===e&&(t=o.apply(i,arguments)),s=n.apply(i,arguments),"instead"===e?s:("before"===e&&(t=o.apply(i,arguments)),t)}}}return ce.define("change_listener",function(){R(this.input,"change",()=>{this.sync()})}),ce.define("checkbox_options",function(e){var t=this,n=t.onOptionSelect;t.settings.hideSelected=!1;const i=Object.assign({className:"tomselect-checkbox",checkedClassNames:void 0,uncheckedClassNames:void 0},e);var o=function(e,t){t?(e.checked=!0,i.uncheckedClassNames&&e.classList.remove(...i.uncheckedClassNames),i.checkedClassNames&&e.classList.add(...i.checkedClassNames)):(e.checked=!1,i.checkedClassNames&&e.classList.remove(...i.checkedClassNames),i.uncheckedClassNames&&e.classList.add(...i.uncheckedClassNames))},s=function(e){setTimeout(()=>{var t=e.querySelector("input."+i.className);t instanceof HTMLInputElement&&o(t,e.classList.contains("selected"))},1)};t.hook("after","setupTemplates",()=>{var e=t.settings.render.option;t.settings.render.option=(n,s)=>{var r=U(e.call(t,n,s)),a=document.createElement("input");i.className&&a.classList.add(i.className),a.addEventListener("click",function(e){M(e)}),a.type="checkbox";const l=j(n[t.settings.valueField]);return o(a,!!(l&&t.items.indexOf(l)>-1)),r.prepend(a),r}}),t.on("item_remove",e=>{var n=t.getOption(e);n&&(n.classList.remove("selected"),s(n))}),t.on("item_add",e=>{var n=t.getOption(e);n&&s(n)}),t.hook("instead","onOptionSelect",(e,i)=>{if(i.classList.contains("selected"))return i.classList.remove("selected"),t.removeItem(i.dataset.value),t.refreshOptions(),void M(e,!0);n.call(t,e,i),s(i)})}),ce.define("clear_button",function(e){const t=this,n=Object.assign({className:"clear-button",title:"Clear All",html:e=>`<div class="${e.className}" title="${e.title}">⨯</div>`},e);t.on("initialize",()=>{var e=U(n.html(n));e.addEventListener("click",e=>{t.isLocked||(t.clear(),"single"===t.settings.mode&&t.settings.allowEmptyOption&&t.addItem(""),e.preventDefault(),e.stopPropagation())}),t.control.appendChild(e)})}),ce.define("drag_drop",function(){var e=this;if("multi"!==e.settings.mode)return;var t=e.lock,n=e.unlock;let i,o=!0;e.hook("after","setupTemplates",()=>{var t=e.settings.render.item;e.settings.render.item=(n,s)=>{const r=U(t.call(e,n,s));ie(r,{draggable:"true"});const a=e=>{e.preventDefault(),r.classList.add("ts-drag-over"),l(r,i)},l=(e,t)=>{var n,i,o;void 0!==t&&(((e,t)=>{do{var n;if(e==(t=null==(n=t)?void 0:n.previousElementSibling))return!0}while(t&&t.previousElementSibling);return!1})(t,r)?(i=t,null==(o=(n=e).parentNode)||o.insertBefore(i,n.nextSibling)):((e,t)=>{var n;null==(n=e.parentNode)||n.insertBefore(t,e)})(e,t))};return R(r,"mousedown",e=>{o||M(e),e.stopPropagation()}),R(r,"dragstart",()=>{i=r,setTimeout(()=>{r.classList.add("ts-dragging")},0)}),R(r,"dragenter",a),R(r,"dragover",a),R(r,"dragleave",()=>{r.classList.remove("ts-drag-over")}),R(r,"dragend",()=>{var t;document.querySelectorAll(".ts-drag-over").forEach(e=>e.classList.remove("ts-drag-over")),null==(t=i)||t.classList.remove("ts-dragging"),i=void 0;var n=[];e.control.querySelectorAll("[data-value]").forEach(e=>{if(e.dataset.value){let t=e.dataset.value;t&&n.push(t)}}),e.setValue(n)}),r}}),e.hook("instead","lock",()=>(o=!1,t.call(e))),e.hook("instead","unlock",()=>(o=!0,n.call(e)))}),ce.define("dropdown_header",function(e){const t=this,n=Object.assign({title:"Untitled",headerClass:"dropdown-header",titleRowClass:"dropdown-header-title",labelClass:"dropdown-header-label",closeClass:"dropdown-header-close",html:e=>'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a class="'+e.closeClass+'">×</a></div></div>'},e);t.on("initialize",()=>{var e=U(n.html(n)),i=e.querySelector("."+n.closeClass);i&&i.addEventListener("click",e=>{M(e,!0),t.close()}),t.dropdown.insertBefore(e,t.dropdown.firstChild)})}),ce.define("caret_position",function(){var e=this;e.hook("instead","setCaret",t=>{"single"!==e.settings.mode&&e.control.contains(e.control_input)?(t=Math.max(0,Math.min(e.items.length,t)))==e.caretPos||e.isPending||e.controlChildren().forEach((n,i)=>{i<t?e.control_input.insertAdjacentElement("beforebegin",n):e.control.appendChild(n)}):t=e.items.length,e.caretPos=t}),e.hook("instead","moveCaret",t=>{if(!e.isFocused)return;const n=e.getLastActive(t);if(n){const i=ne(n);e.setCaret(t>0?i+1:i),e.setActiveItem(),Q(n,"last-active")}else e.setCaret(e.caretPos+t)})}),ce.define("dropdown_input",function(){const e=this;e.settings.shouldOpen=!0,e.hook("before","setup",()=>{e.focus_node=e.control,G(e.control_input,"dropdown-input");const t=U('<div class="dropdown-input-wrap">');t.append(e.control_input),e.dropdown.insertBefore(t,e.dropdown.firstChild);const n=U('<input class="items-placeholder" tabindex="-1" />');n.placeholder=e.settings.placeholder||"",e.control.append(n)}),e.on("initialize",()=>{e.control_input.addEventListener("keydown",t=>{switch(t.keyCode){case 27:return e.isOpen&&(M(t,!0),e.close()),void e.clearActiveItems();case 9:e.focus_node.tabIndex=-1}return e.onKeyDown.call(e,t)}),e.on("blur",()=>{e.focus_node.tabIndex=e.isDisabled?-1:e.tabIndex}),e.on("dropdown_open",()=>{e.control_input.focus()});const t=e.onBlur;e.hook("instead","onBlur",n=>{if(!n||n.relatedTarget!=e.control_input)return t.call(e)}),R(e.control_input,"blur",()=>e.onBlur()),e.hook("before","close",()=>{e.isOpen&&e.focus_node.focus({preventScroll:!0})})})}),ce.define("input_autogrow",function(){var e=this;e.on("initialize",()=>{var t=document.createElement("span"),n=e.control_input;t.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",e.wrapper.appendChild(t);for(const e of["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"])t.style[e]=n.style[e];var i=()=>{t.textContent=n.value,n.style.width=t.clientWidth+"px"};i(),e.on("update item_add item_remove",i),R(n,"input",i),R(n,"keyup",i),R(n,"blur",i),R(n,"update",i)})}),ce.define("no_backspace_delete",function(){var e=this,t=e.deleteSelection;this.hook("instead","deleteSelection",n=>!!e.activeItems.length&&t.call(e,n))}),ce.define("no_active_items",function(){this.hook("instead","setActiveItem",()=>{}),this.hook("instead","selectAll",()=>{})}),ce.define("optgroup_columns",function(){var e=this,t=e.onKeyDown;e.hook("instead","onKeyDown",n=>{var i,o,s,r;if(!e.isOpen||37!==n.keyCode&&39!==n.keyCode)return t.call(e,n);e.ignoreHover=!0,r=ee(e.activeOption,"[data-group]"),i=ne(e.activeOption,"[data-selectable]"),r&&(r=37===n.keyCode?r.previousSibling:r.nextSibling)&&(o=(s=r.querySelectorAll("[data-selectable]"))[Math.min(s.length-1,i)])&&e.setActiveOption(o)})}),ce.define("remove_button",function(e){const t=Object.assign({label:"×",title:"Remove",className:"remove",append:!0},e);var n=this;if(t.append){var i='<a href="javascript:void(0)" class="'+t.className+'" tabindex="-1" title="'+q(t.title)+'">'+t.label+"</a>";n.hook("after","setupTemplates",()=>{var e=n.settings.render.item;n.settings.render.item=(t,o)=>{var s=U(e.call(n,t,o)),r=U(i);return s.appendChild(r),R(r,"mousedown",e=>{M(e,!0)}),R(r,"click",e=>{n.isLocked||(M(e,!0),n.isLocked||n.shouldDelete([s],e)&&(n.removeItem(s),n.refreshOptions(!1),n.inputState()))}),s}})}}),ce.define("restore_on_backspace",function(e){const t=this,n=Object.assign({text:e=>e[t.settings.labelField]},e);t.on("item_remove",function(e){if(t.isFocused&&""===t.control_input.value.trim()){var i=t.options[e];i&&t.setTextboxValue(n.text.call(t,i))}})}),ce.define("virtual_scroll",function(){const e=this,t=e.canLoad,n=e.clearActiveOption,i=e.loadCallback;var o,s,r={},a=!1,l=[];
12if(e.settings.shouldLoadMore||(e.settings.shouldLoadMore=()=>{if(o.clientHeight/(o.scrollHeight-o.scrollTop)>.9)return!0;if(e.activeOption){var t=e.selectable();if(Array.from(t).indexOf(e.activeOption)>=t.length-2)return!0}return!1}),!e.settings.firstUrl)throw"virtual_scroll plugin requires a firstUrl() method";e.settings.sortField=[{field:"$order"},{field:"$score"}];const c=t=>!("number"==typeof e.settings.maxOptions&&o.children.length>=e.settings.maxOptions||!(t in r)||!r[t]),u=(t,n)=>e.items.indexOf(n)>=0||l.indexOf(n)>=0;e.setNextUrl=(e,t)=>{r[e]=t},e.getUrl=t=>{if(t in r){const e=r[t];return r[t]=!1,e}return e.clearPagination(),e.settings.firstUrl.call(e,t)},e.clearPagination=()=>{r={}},e.hook("instead","clearActiveOption",()=>{if(!a)return n.call(e)}),e.hook("instead","canLoad",n=>n in r?c(n):t.call(e,n)),e.hook("instead","loadCallback",(t,n)=>{if(a){if(s){const n=t[0];void 0!==n&&(s.dataset.value=n[e.settings.valueField])}}else e.clearOptions(u);i.call(e,t,n),a=!1}),e.hook("after","refreshOptions",()=>{const t=e.lastValue;var n;c(t)?(n=e.render("loading_more",{query:t}))&&(n.setAttribute("data-selectable",""),s=n):t in r&&!o.querySelector(".no-results")&&(n=e.render("no_more_results",{query:t})),n&&(G(n,e.settings.optionClass),o.append(n))}),e.on("initialize",()=>{l=Object.keys(e.options),o=e.dropdown_content,e.settings.render=Object.assign({},{loading_more:()=>'<div class="loading-more-results">Loading more results ... </div>',no_more_results:()=>'<div class="no-more-results">No more results</div>'},e.settings.render),o.addEventListener("scroll",()=>{e.settings.shouldLoadMore.call(e)&&c(e.lastValue)&&(a||(a=!0,e.load.call(e,e.lastValue)))})})}),ce});var tomSelect=function(e,t){return new TomSelect(e,t)};document.addEventListener("DOMContentLoaded",registerBootstrapModalStreamActions),document.addEventListener("turbo:load",registerBootstrapModalStreamActions),document.addEventListener("turbo:load",()=>{document.querySelectorAll("code[class^='language-']").length&&Prism.highlightAll()});const DISCARD_CHANGES_CONFIRMATION="Are you sure?",IGNORED_FORM_FIELDS=["_method","authenticity_token"];document.addEventListener("turbo:load",initOpenDialogModals),document.addEventListener("turbo:load",initCloseDialogModals),document.addEventListener("turbo:load",initCancelNavButtons),document.addEventListener("turbo:frame-load",initOpenDialogModals),document.addEventListener("turbo:frame-load",initCloseDialogModals),document.addEventListener("turbo:frame-load",initCancelNavButtons),document.addEventListener("turbo:frame-load",captureModalFormStateOnFrameLoad),document.addEventListener("DOMContentLoaded",registerCloseModalAndVisitStreamAction),document.addEventListener("turbo:load",registerCloseModalAndVisitStreamAction),$(document).on("click","#event-log .show-event-details",{},function(e){e.preventDefault(),detail_container=$(this).closest("tr, .list-group-item").find(".event-details"),detail_container.hasClass("d-none")?detail_container.hide().removeClass("d-none").slideDown():detail_container.slideUp(function(){detail_container.addClass("d-none")})});
12var BACKSPACE_KEY=8,DELETE_KEY=46,LEFT_KEY=37,RIGHT_KEY=39;const getPhoneNumberPlaceholder=(e,t)=>{if(libphonenumber.isSupportedCountry(e)){return libphonenumber.parsePhoneNumber(t,e).format("NATIONAL")}return libphonenumber.parsePhoneNumber(t,"US").format("NATIONAL")},formatToPhone=(e,t)=>libphonenumber.isSupportedCountry(e)?new libphonenumber.AsYouType(e).input(t):new libphonenumber.AsYouType("US").input(t);$(document).on("turbo:load",function(){document.querySelectorAll('[data-toggle="rt-popover"]').forEach(e=>{const t=document.querySelector(`${e.dataset.segment}`).innerHTML;new bootstrap.Popover(e,{html:!0,trigger:"hover",placement:"top",container:"body",content:t})})}),window.onresize=sw_throttle(()=>{handleSidebarNav()},100),document.addEventListener("turbo:load",handleSidebarNav);const TAB_OVERFLOW={RESIZE_THROTTLE_MS:100,SM_BREAKPOINT_PX:576,MORE_BUTTON_FALLBACK_PX:96,GAP_FALLBACK_PX:8,INTERRUPT_DIVIDER_RESERVE_PX:24,ELLIPSIS_LABEL:"\u2026",SELECTOR:{bar:"[data-tab-overflow]",list:"[data-tab-overflow-list]",item:"[data-tab-overflow-item]",menuContainer:"[data-tab-overflow-menu-container]",menu:"[data-tab-overflow-menu]",toggle:"[data-tab-overflow-toggle]",tab:"[role='tab']"},CLASS:{overflowMode:"tab-panel__tabs--overflow",hiddenItem:"is-hidden",interrupt:"tab-panel__interrupt",menuItem:"dropdown-item tab-panel__overflow-menu-item",menuItemActive:"active",divider:"dropdown-divider",hidden:"d-none",menuOpen:"show"},PARAM:"t"};document.addEventListener("turbo:load",()=>initTabOverflow()),document.addEventListener("turbo:frame-load",e=>initTabOverflow(e.target)),document.addEventListener("turbo:before-cache",teardownTabOverflow),document.addEventListener("click",closeMenusOnOutsideClick),document.addEventListener("turbo:load",function(){document.querySelectorAll("[data-toggle='tooltip']").forEach(function(e){new bootstrap.Tooltip(e)})}),document.addEventListener("turbo:before-cache",function(){document.querySelectorAll("[data-toggle='tooltip']").forEach(function(e){tooltipEl=bootstrap.Tooltip.getInstance(e),tooltipEl&&tooltipEl.hide()})}),document.addEventListener("turbo:load",function(){document.querySelectorAll("[data-toggle='tooltip-html']").forEach(e=>{let t=new bootstrap.Tooltip(e,{delay:{show:0,hide:500}});e.addEventListener("shown.bs.tooltip",function(){let n=t.hide,i=bootstrap.Tooltip.getInstance(e).tip;i.addEventListener("mouseenter",()=>t.hide=()=>1),i.addEventListener("mouseleave",()=>{t.hide=n,t.hide()})})})}),$(document).on("turbo:before-cache",function(){$(".select2-hidden-accessible").select2("destroy")});const disableFormSubmitUnlessValid=(e,t)=>{let n,i;n="object"==typeof e?e:document.querySelector(e),i="object"==typeof t?t:document.querySelector(t),i.setAttribute("disabled",""),n.addEventListener("input",()=>{checkIsValid(n,i)}),document.addEventListener("turbo:load",()=>{checkIsValid(n,i)})},boundCopyables=new WeakSet;document.addEventListener("turbo:load",copyableContents),document.addEventListener("turbo:frame-load",copyableContents);const disableDeployButtonUnlessFormChanges=(e,t)=>{const n=document.querySelector(e),i=document.querySelector(t);i.setAttribute("disabled","true");const{isFormChanged:o}=FormChangeNotifier(n),s=()=>{const e=i.closest(".tooltip-trigger"),t=bootstrap.Tooltip.getOrCreateInstance(e);o(n)?(i.removeAttribute("disabled"),t.disable()):(i.setAttribute("disabled","true"),t.enable())};n.addEventListener("input",s),n.addEventListener("localStorageValuesRestored",s)},disableLinks=()=>{const e=document.querySelectorAll("a[disabled]"),t=e=>e.preventDefault();e.forEach(e=>{e.addEventListener("click",t)})};document.addEventListener("turbo:load",disableLinks),document.addEventListener("turbo:frame-load",disableLinks);const FormChangeNotifier=(e=null,t=null)=>{const n=e||document.querySelector(t),i=e=>{let t={};t=new FormData(e);return["","_method","authenticity_token"].forEach(e=>{t.delete(e)}),t},o=i(n),s=e=>{const t={};for(let[n,i]of e.entries()){n.match(/\[\]/)?(Array.isArray(t[n])||(t[n]=[]),t[n].push(i)):t[n]=i}return JSON.stringify(t)},r=(e=null,t=null)=>{const n=e||document.querySelector(t),r=i(n),a=s(r);return s(o)!==a};return{isFormChanged:r}};document.addEventListener("turbo:load",function(){neonScrollToInvalid(document)}),document.addEventListener("turbo:frame-load",function(e){neonScrollToInvalid(e.target)}),document.addEventListener("turbo:load",initTimeago),document.addEventListener("turbo:frame-load",initTimeago),document.addEventListener("turbo:load",initTooltips),document.addEventListener("turbo:frame-load",initTooltips),document.addEventListener("turbo:before-stream-render",e=>{const t=e.detail.render;e.detail.render=e=>{t(e),initTooltips()}}),document.addEventListener("turbo:load",()=>{document.getElementById("toast-container")||document.querySelectorAll("script").forEach(script=>{/toastr\.(success|error)/.test(script.textContent)&&(eval(script.textContent),script.remove())})}),document.addEventListener("turbo:frame-load",e=>{const t=new URL(e.target.src).searchParams,n=t.get("notice"),i=t.get("alert"),o=t.get("target")||"body";n&&toastr.success(n,null,{showMethod:"slideDown",progressBar:!0,target:o}),i&&toastr.error(i,null,{showMethod:"slideDown",progressBar:!0,timeOut:2e4})}),document.addEventListener("turbo:frame-missing",function(e){e.preventDefault(),e.detail.visit(e.detail.response)}),document.addEventListener("turbo:frame-load",e=>{ 13const t=new URL(e.target.src).searchParams.get("frame_reload");if(t){document.querySelector(`${t}`).reload()}}),document.addEventListener("keydown",function(e){"Escape"===e.key&&document.querySelectorAll(".krypton-tooltip").forEach(function(e){const t=bootstrap.Tooltip.getInstance(e);t&&t.hide()})});let currentWhatsAppOnMessage=null;document.addEventListener("DOMContentLoaded",initializeModalSearch),document.addEventListener("turbo:load",initializeModalSearch),document.addEventListener("shown.bs.modal",function(e){"addUserModal"===e.target.id&&setTimeout(initializeModalSearch,100)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ActionCable={})}(this,function(e){"use strict";function t(e){if("function"==typeof e&&(e=e()),e&&!/^wss?:/i.test(e)){const t=document.createElement("a");return t.href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}return e}function n(e=i("url")||c.default_mount_path){return new b(e)}function i(e){const t=document.head.querySelector(`meta[name='action-cable-${e}']`);if(t)return t.getAttribute("content")}var o={logger:"undefined"!=typeof console?console:void 0,WebSocket:"undefined"!=typeof WebSocket?WebSocket:void 0},s={log(...e){this.enabled&&(e.push(Date.now()),o.logger.log("[ActionCable]",...e))}};const r=()=>(new Date).getTime(),a=e=>(r()-e)/1e3;class l{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=r(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),s.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=r(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordMessage(){this.pingedAt=r()}recordConnect(){this.reconnectAttempts=0,delete this.disconnectedAt,s.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=r(),s.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:t}=this.constructor;return 1e3*e*Math.pow(1+t,Math.min(this.reconnectAttempts,10))*(1+(0===this.reconnectAttempts?1:t)*Math.random())}reconnectIfStale(){this.connectionIsStale()&&(s.log(`ConnectionMonitor detected stale c
13onnection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${a(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?s.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${a(this.disconnectedAt)} s`):(s.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return a(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&a(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){"visible"===document.visibilityState&&setTimeout(()=>{!this.connectionIsStale()&&this.connection.isOpen()||(s.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}l.staleThreshold=6,l.reconnectionBackoffRate=.15;var c={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:u,protocols:d}=c,p=d.slice(0,d.length-1),h=[].indexOf;class f{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new l(this),this.disconnected=!0}send(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)}open(){if(this.isActive())return s.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...d,...this.consumer.subprotocols||[]];return s.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new o.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(s.log(`Reopening WebSocket, current state is ${this.getState()}`),!this.isActive())return this.open();try{return this.close()}catch(e){s.log("Failed to reopen WebSocket",e)}finally{s.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return h.call(p,this.getProtocol())>=0}isState(...e){return h.call(e,this.getState())>=0}getState(){if(this.webSocket)for(let e in o.WebSocket)if(o.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase();return null}installEventHandlers(){for(let e in this.events){const t=this.events[e].bind(this);this.webSocket[`on${e}`]=t}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}f.reopenDelay=500,f.prototype.events={message(e){if(!this.isProtocolSupported())return;const{identifier:t,message:n,reason:i,reconnect:o,type:r}=JSON.parse(e.data);switch(this.monitor.recordMessage(),r){case u.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case u.disconnect:return s.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:o});case u.ping:return null;case u.confirmation:return this.subscriptions.confirmSubscription(t),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(t,"connected",{reconnected:!0})):this.subscriptions.notify(t,"connected",{reconnected:!1});case u.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",n)}},open(){if(s.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return s.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(e){if(s.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){s.log("WebSocket onerror event")}};const m=function(e,t){if(null!=t)for(let n in t){const i=t[n];e[n]=i}return e};class g{constructor(e,t={},n){this.consumer=e,this.identifier=JSON.stringify(t),m(this,n)}perform(e,t={}){return t.action=e,this.send(t)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class v{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){-1==this.pendingSubscriptions.indexOf(e)?(s.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):s.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){s.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(t=>t!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&"function"==typeof this.subscriptions.subscribe&&this.pendingSubscriptions.map(e=>{s.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class y{constructor(e){this.consumer=e,this.guarantor=new v(this),this.subscriptions=[]}create(e,t){const n="object"==typeof e?e:{channel:e},i=new g(this.consumer,n,t);return this.add(i)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(e=>(this.forget(e),this.notify(e,"rejected"),e))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(t=>t!==e),e}findAll(e){return this.subscriptions.filter(t=>t.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...t){return this.subscriptions.map(n=>this.notify(n,e,...t))}notify(e,t,...n){let i;return i="string"==typeof e?this.findAll(e):[e],i.map(e=>"function"==typeof e[t]?e[t](...n):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){s.log(`Subscription confirmed ${e}`),this.findAll(e).map(e=>this.guarantor.forget(e))}sendCommand(e,t){const{identifier:n}=e;return this.consumer.send({command:t,identifier:n})}}class b{constructor(e){this._url=e,this.subscriptions=new y(this),this.connection=new f(this),this.subprotocols=[]}get url(){return t(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}e.Connection=f,e.ConnectionMonitor=l,e.Consumer=b,e.INTERNAL=c,e.Subscription=g,e.SubscriptionGuarantor=v,e.Subscriptions=y,e.adapters=o,e.createConsumer=n,e.createWebSocketURL=t,e.getConfig=i,e.logger=s,Object.defineProperty(e,"__esMo
13dule",{value:!0})}),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),$(document).on("turbo:load",function(){App.dialogflow_call&&(App.cable.subscriptions.remove(App.dialogflow_call),App.dialogflow_call=null),$("meta[name='aclisten-dialogflow_call']").length>0&&(App.dialogflow_call=App.cable.subscriptions.create({channel:"DialogflowCallChannel",dialogflow_call_id:document.querySelector("meta[name='aclisten-dialogflow_call']").getAttribute("content")},{received:function(e){exEl=$('#event-log li[data-event-id="'+e.event_id+'"]'),exEl.length?exEl.replaceWith(e.rendered_event):($(e.rendered_event).appendTo($("#event-log .list-group")).hide().css("animation","yellowfade 1s").slideDown(250),$("time").timeago(),$('[data-toggle="tooltip"]').tooltip(),scrollTo=$("#event-log-end").offset().top-$(window).height()+150,$("html, body").animate({scrollTop:scrollTo},250))}}))}),$(document).on("turbo:load",function(){$("meta[name='aclisten-dialogflow_calls']").length>0?App.dialogflow_calls||(App.dialogflow_calls=App.cable.subscriptions.create({channel:"DialogflowCallsChannel",project_id:document.querySelector("meta[name='aclisten-dialogflow_calls']").getAttribute("content")},{received:function(e){instanceId=e.call_id,elRow=$('[data-instance-id="'+instanceId+'"]'),elRow.length?(el_status=elRow.find('[data-col="status"]'),el_status.text(e.status).css("animation","yellowfade 1s"),el_status.on("webkitAnimationEnd",function(){$(this).css("animation","none")})):"true"==document.querySelector("meta[name='acparams-first-page']").getAttribute("content")&&($('#new-instances-list div[data-instances-new-id="'+instanceId+'"]').length||($("<div/>",{"data-instances-new-id":instanceId}).appendTo("#new-instances-list"),el_link=$("#new-instances-link"),el_count=el_link.find(".count"),currentCount=parseInt(el_count.text())||0,el_count.text(currentCount+1),0==currentCount?el_link.find(".resource").text("New Call"):el_link.find(".resource").text("New Calls"),el_link.removeClass("d-none").addClass("d-block")))}})):App.dialogflow_calls&&(App.cable.subscriptions.remove(App.dialogflow_calls),App.dialogflow_calls=null)}),$(document).on("turbo:load",function(){App.laml_call&&(App.cable.subscriptions.remove(App.laml_call),App.laml_call=null),$("meta[name='aclisten-laml_call']").length>0&&(App.laml_call=App.cable.subscriptions.create({channel:"LamlCallChannel",call_id:document.querySelector("meta[name='aclisten-laml_call']").getAttribute("content")},{received:function(e){$(e.rendered_event).appendTo($("#event-log .list-group")).hide().css("animation","yellowfade 1s").slideDown(),$("time").timeago(),$('[data-toggle="tooltip"]').tooltip()}}))}),$(document).on("turbo:load",function(){$("meta[name='aclisten-laml_calls']").length>0?App.laml_calls||(App.laml_calls=App.cable.subscriptions.create({channel:"LamlCallsChannel",project_id:document.querySelector("meta[name='aclisten-laml_calls']").getAttribute("content")},{received:function(e){instanceId=e.call_id,elRow=$('[data-instance-id="'+instanceId+'"]'),elRow.length?(el_status=elRow.find('[data-col="status"]'),el_status.text(e.status).css("animation","yellowfade 1s"),el_status.on("webkitAnimationEnd",function(){$(this).css("animation","none")})):"true"==document.querySelector("meta[name='acparams-first-page']").getAttribute("content")&&($('#new-instances-list div[data-instances-new-id="'+instanceId+'"]').length||($("<div/>",{"data-instances-new-id":instanceId}).appendTo("#new-instances-list"),el_link=$("#new-instances-link"),el_count=el_link.find(".count"),currentCount=parseInt(el_count.text())||0,el_count.text(currentCount+1),0==currentCount?el_link.find(".resource").text("New Call"):el_link.find(".resource").text("New Calls"),el_link.removeClass("d-none").addClass("d-block")))}})):App.laml_calls&&(App.cable.subscriptions.remove(App.laml_calls),App.laml_calls=null)}),$(document).on("turbo:load",function(){App.laml_conference&&(App.cable.subscriptions.remove(App.laml_conference),App.laml_conference=null),$("meta[name='aclisten-laml_conference']").length>0&&(App.laml_conference=App.cable.subscriptions.create({channel:"LamlConferenceChannel",conference_id:document.querySelector("meta[name='aclisten-laml_conference']").getAttribute("content")},{received:function(e){$(e.rendered_event).appendTo($("#event-log .list-group")).hide().css("animation","yellowfade 1s").slideDown(),el_status=$("body").find('[data-col="status"]'),e.status!=el_status.text()&&(el_status.text(e.status).css("animation","yellowfade 1s"),el_status.on("webkitAnimationEnd",function(){$(this).css("animation","none")})),el_count=$("body").find('[data-col="participants"]'),el_count.text(e.count).css("animation","yellowfade 1s"),el_count.on("webkitAnimationEnd",function(){$(this).css("animation","none")}),$("time").timeago(),$('[data-toggle="tooltip"]').tooltip()}}))}),$(document).on("turbo:load",function(){$("meta[name='aclisten-laml_conferences']").length>0?App.laml_conferences||(App.laml_conferences=App.cable.subscriptions.create({channel:"LamlConferencesChannel",project_id:document.querySelector("meta[name='aclisten-laml_conferences']").getAttribute("content")},{received:function(e){instanceId=e.conference_id,elRow=$('[data-instance-id="'+instanceId+'"]'),elRow.length?(el_status=elRow.find('[data-col="status"]'),e.status!=el_status.text()&&(el_status.text(e.status).css("animation","yellowfade 1s"),el_status.on("webkitAnimationEnd",function(){$(this).css("animation","none")})),el_count=elRow.find('[data-col="participants"]'),el_count.text(e.count).css("animation","yellowfade 1s"),el_count.on("webkitAnimationEnd",function(){$(this).css("animation","none")})):"true"==document.querySelector("meta[name='acparams-first-page']").getAttribute("content")&&($('#new-instances-list div[data-instances-new-id="'+instanceId+'"]').length||($("<div/>",{"data-instances-new-id":instanceId}).appendTo("#new-instances-list"),el_link=$("#new-instances-link"),el_count=el_link.find(".count"),currentCount=parseInt(el_count.text())||0,el_count.text(currentCount+1),0==currentCount?el_link.find(".resource").text("New Conference"):el_link.find(".resource").text("New Conferences"),el_link.removeClass("d-none").addClass("d-block")))}})):App.laml_conferences&&(App.cable.subscriptions.remove(App.laml_conferences),App.laml_conferences=null)}),$(document).on("turbo:load",function(){App.laml_fax&&(App.cable.subscriptions.remove(App.laml_fax),App.laml_fax=null),$("meta[name='aclisten-laml_fax']").length>0&&(App.laml_fax=App.cable.subscriptions.create({channel:"LamlFaxChannel",call_id:document.querySelector("meta[name='aclisten-laml_fax']").getAttribute("content")},{received:function(e){$(e.rendered_event).appendTo($("#event-log .list-group")).hide().css("animation","yellowfade 1s").slideDown(),$("time").timeago(),$('[data-toggle="tooltip"]').tooltip()}}))}),$(document).on("turbo:load",function(){$("meta[name='aclisten-laml_faxes']").length>0?App.laml_faxes||(App.laml_faxes=App.cable.subscriptions.create({channel:"LamlFaxesChannel",project_id:document.querySelector("meta[name='aclisten-laml_faxes']").getAttribute("content")},{received:function(e){instanceId=e.call_id,elRow=$('[data-instance-id="'+instanceId+'"]'),elRow.length?(el_status=elRow.find('[data-col="status"]'),el_status.text(e.status).css("animation","yellowfade 1s"),el_status.on("webkitAnimationEnd",function(){$(this).css("animation","none")})):"true"==document.querySelector("meta[name='acparams-first-page']").getAttribute("content")&&($('#new-instances-list div[data-instances-new-id="'+instanceId+'"]').length||($("<div/>",{"data-instances-new-id":instanceId}).appendTo("#new-instances-list"),el_link=$("#new-instances-link"),el_count=el_link.find(".count"),currentCount=parseInt(el_count.text())||0,el_count.text(currentCount+1),0==currentCount?el_link.find(".resource").text("New Fax"):el_link.find(".resource").text("New Faxes"),el_link.removeClass("d-none").addClass("d-block")))}})):App.laml_faxes&&(App.cable.subscriptions.remove(App.laml_faxes),App.laml_faxes=null)}),$(document).on("turbo:load",function(){App.laml_message&&(App.cable.subscriptions.remove(App.laml_message),App.laml_message=null),$("meta[name='aclisten-laml_message']").length>0&&(App.laml_message=App.cable.subscriptions.create({channel:"LamlMessageChannel",message_id:document.querySelector("meta[name='aclisten-laml_message']").getAttribute("content")},{received:function(e){$(e.rendered_event).appendTo($("#event-log .list-group")).hide().css("animation","yellowfade 1s").slideDown(),$("time").timeago(),$('[data-toggle="tooltip"]').tooltip()}}))}),$(document).on("turbo:load",function(){$("meta[name='aclisten-laml_messages']").length>0?App.laml_messages||(App.laml_messages=App.cable.subscriptions.create({channel:"LamlMessagesChannel",project_id:document.querySelector("meta[name='aclisten-laml_messages']").getAttribute("content")},{received:function(e){instanceId=e.message_id,elRow=$('[data-instance-id="'+instanceId+'"]'),elRow.length?(el_status=elRow.find('[data-col="status"]'),el_status.text(e.status).css("animation","yellowfade 1s"),el_status.on("webkitAnimationEnd",function(){$(this).css("animation","none")})):"true"==document.querySelector("meta[name='acparams-first-page']").getAttribute("content")&&($('#new-instances-list div[data-instances-new-id="'+instanceId+'"]').length||($("<div/>",{"data-instances-new-id":instanceId}).appendTo("#new-instances-list"),el_link=$("#new-instances-link"),el_count=el_link.find(".count"),currentCount=parseInt(el_count.text())||0,el_count.text(currentCount+1),0==currentCount?el_link.find(".resource").text("New Message"):el_link.find(".resource").text("New Messages"),el_link.removeClass("d-none").addClass("d-block")))}})):App.laml_messages&&(App.cable.subscriptions.remove(App.laml_messages),App.laml_messages=null)}),$(document).on("turbo:load",function(){App.laml_queue&&(App.cable.subscriptions.remove(App.laml_queue),App.laml_queue=null),$("meta[name='aclisten-laml_queue']").length>0&&(App.laml_queue=App.cable.subscriptions.create({channel:"LamlQueueChannel",queue_id:document.querySelector("meta[name='aclisten-laml_queue']").getAttribute("content")},{received:function(e){el_count=$("body").find('[data-col="size"]'),el_count.text(e.count).css("animation","yellowfade 1s"),el_count.on("webkitAnimationEnd",function(){$(this).css("animation","none")})}}))}),$(document).on("turbo:load",function(){$("meta[name='aclisten-laml_queues']").length>0?App.laml_queues||(App.laml_queues=App.cable.subscriptions.create({channel:"LamlQueuesChannel",project_id:document.querySelector("meta[name='aclisten-laml_queues']").getAttribute("content")},{received:function(e){instanceId=e.queue_id,elRow=$('[data-instance-id="'+instanceId+'"]'),elRow.length?(el_count=elRow.find('[data-col="size"]'),el_count.text(e.count).css("animation","yellowfade 1s"),el_count.on("webkitAnimationEnd",function(){$(this).css("animation","none")})):"true"==document.querySelector("meta[name='acparams-first-page']").getAttribute("content")&&($('#new-instances-list div[data-instances-new-id="'+instanceId+'"]').length||($("<div/>",{"data-instances-new-id":instanceId}).appendTo("#new-instances-list"),el_link=$("#new-instances-link"),el_count=el_link.find(".count"),currentCount=parseInt(el_count.text())||0,el_count.text(currentCount+1),0==currentCount?el_link.find(".resource").text("New Queue"):el_link.find(".resource").text("New Queues"),el_link.removeClass("d-none").addClass("d-block")))}})):App.laml_queues&&(App.cable.subscriptions.remove(App.laml_queues),App.laml_queues=null)});var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(e){function t(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function n(e,t,n,i){e.lastIndex=t;var o=e.exec(n);if(o&&i&&o[1]){var s=o[1].length;o.index+=s,o[0]=o[0].slice(s)}return o}function i(e,o,a,l,c,u){for(var p in a)if(a.hasOwnProperty(p)&&a[p]){var h=a[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(u&&u.cause==p+","+f)return;var m=h[f],g=m.inside,v=!!m.lookbehind,y=!!m.greedy,b=m.alias;if(y&&!m.pattern.global){var _=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,_+"g")}for(var w=m.pattern||m,x=l.next,A=c;x!==o.tail&&!(u&&A>=u.reach);A+=x.value.length,x=x.next){var E=x.value;if(o.length>e.length)return;if(!(E instanceof t)){var S,C=1;if(y){if(!(S=n(w,A,e,v))||S.index>=e.length)break;var L=S.index,O=S.index+S[0].length,T=A;for(T+=x.value.length;L>=T;)T+=(x=x.next).value.length;if(A=T-=x.value.length,x.value instanceof t)continue;for(var k=x;k!==o.tail&&(T<O||"string"==typeof k.value);k=k.next)C++,T+=k.value.length;C--,E=e.slice(A,T),S.index-=A}else if(!(S=n(w,0,E,v)))continue;L=S.index;var $=S[0],I=E.slice(0,L),D=E.slice(L+$.length),j=A+E.length;u&&j>u.reach&&(u.reach=j);var P=x.prev;if(I&&(P=s(o,P,I),A+=I.length),r(o,P,C),x=s(o,P,new t(p,g?d.tokenize($,g):$,b,$)),D&&s(o,x,D),C>1){var q={cause:p+","+f,reach:j};i(e,o,a,x.prev,A,q),u&&q.reach>u.reach&&(u.reach=q.reach)}}}}}}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var i=t.next,o={value:n,prev:t,next:i};return t.next=o,i.prev=o,e.length++,o}function r(e,t,n){for(var i=t.next,o=0;o<n&&i!==e.tail;o++)i=i.next;t.next=i,i.prev=t,e.length-=o}function a(){d.manual||d.highlightAll()}var l=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,c=0,u={},d={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof t?new t(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++c}),e.__id},clone:function e(t,n){var i,o;switch(n=n||{},d.util.type(t)){case"Object":if(o=d.util.objId(t),n[o])return n[o];for(var s in i={},n[o]=i,t)t.hasOwnProperty(s)&&(i[s]=e(t[s],n));return i;case"Array":return o=d.util.objId(t),n[o]?n[o]:(i=[],n[o]=i,t.forEach(function(t,o){i[o]=e(t,n)}),i);default:return t}},getLanguage:function(e){for(;e;){var t=l.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(l,"gi"),""),e.classList.add("language-"+t)}
vendor: 4,695 bytes, line 13
13,currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var i="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(i))return!1;e=e.parentElement}return!!n}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(e,t){var n=d.util.clone(d.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var o=(i=i||d.languages)[e],s={};for(var r in o)if(o.hasOwnProperty(r)){if(r==t)for(var a in n)n.hasOwnProperty(a)&&(s[a]=n[a]);n.hasOwnProperty(r)||(s[r]=o[r])}var l=i[e];return i[e]=s,d.languages.DFS(d.languages,function(t,n){n===l&&t!=e&&(this[t]=s)}),s},DFS:function e(t,n,i,o){o=o||{};var s=d.util.objId;for(var r in t)if(t.hasOwnProperty(r)){n.call(t,r,t[r],i||r);var a=t[r],l=d.util.type(a);"Object"!==l||o[s(a)]?"Array"!==l||o[s(a)]||(o[s(a)]=!0,e(a,n,r,o)):(o[s(a)]=!0,e(a,n,null,o))}}},plugins:{},highlightAll:function(e,t){d.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};d.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),d.hooks.run("before-all-elements-highlight",i);for(var o,s=0;o=i.elements[s++];)d.highlightElement(o,!0===t,i.callback)},highlightElement:function(t,n,i){function o(e){l.highlightedCode=e,d.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,d.hooks.run("after-highlight",l),d.hooks.run("complete",l),i&&i.call(l.element)}var s=d.util.getLanguage(t),r=d.languages[s];d.util.setLanguage(t,s);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&d.util.setLanguage(a,s);var l={element:t,language:s,grammar:r,code:t.textContent};if(d.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return d.hooks.run("complete",l),void(i&&i.call(l.element));if(d.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var c=new Worker(d.filename);c.onmessage=function(e){o(e.data)},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else o(d.highlight(l.code,l.grammar,l.language));else o(d.util.encode(l.code))},highlight:function(e,n,i){var o={code:e,grammar:n,language:i};if(d.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=d.tokenize(o.code,o.grammar),d.hooks.run("after-tokenize",o),t.stringify(d.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new o;return s(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=d.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=d.hooks.all[e];if(n&&n.length)for(var i,o=0;i=n[o++];)i(t)}},Token:t};if(e.Prism=d,t.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach(function(t){i+=e(t,n)}),i}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(o.classes,s):o.classes.push(s)),d.hooks.run("wrap",o);var r="";for(var a in o.attributes)r+=" "+a+'="'+(o.attributes[a]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+r+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(d.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),i=n.language,o=n.code,s=n.immediateClose;e.postMessage(d.highlight(o,d.languages[i],i)),s&&e.close()},!1),d):d;var p=d.util.currentScript();if(p&&(d.filename=p.src,p.hasAttribute("data-manual")&&(d.manual=!0)),!d.manual){var h=document.readyState;"loading"===h||"interactive"===h&&p&&p.defer?document.addEventListener("DOMContentLoaded",a):window.requestAnimationFrame?window.requestAnimationFrame(a):window.setTimeout(a,16)}return d}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}
vendor: 4,226 bytes, lines 13-14
13],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/(?:(?:\\[(?:[^\\]\\\\\r\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|/\\*(?:[^*]|\\*(?!/))*\\*/)*(?:$|[\r\n,.;:})\\]]|//))"),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript 14},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2}
14)*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)","javascript")),Prism.languages.js=Prism.languages.javascript,function(e){function t(e,t){t=(t||"").replace(/m/g,"")+"m";var n="([:\\-,[{]\\s*(?:\\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\\]|\\}|(?:[\r\n]\\s*)?#))".replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}var n=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+i.source+"(?:[ \t]+"+n.source+")?|"+n.source+"(?:[ \t]+"+i.source+")?)",s="(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g,function(){return"[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"}),r="\"(?:[^\"\\\\\r\n]|\\\\.)*\"|'(?:[^'\\\\\r\n]|\\\\.)*'";e.languages.yaml={scalar:{pattern:RegExp("([\\-:]\\s*(?:\\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\\S[^\r\n]*(?:\\2[^\r\n]+)*)".replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp("((?:^|[:\\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\\s*:\\s)".replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+r+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:t("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),lookbehind:!0,alias:"number"},boolean:{pattern:t("false|true","i"),lookbehind:!0,alias:"important"},null:{pattern:t("null|~","i"),lookbehind:!0,alias:"important"},string:{pattern:t(r),lookbehind:!0,greedy:!0},number:{pattern:t("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)","i"),lookbehind:!0},tag:i,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.